Yoast SEO <= 26.5 - Insecure Direct Object Reference to Authenticated (Contributor+) Sensitive Information Exposure via 'post_id' Parameter
Description
The Yoast SEO plugin for WordPress is vulnerable to Insecure Direct Object References in all versions up to, and including, 26.5. This is due to insufficient authorization checks in the Meta Search REST API endpoint that fail to verify post ownership. This makes it possible for authenticated attackers, with Contributor-level access and above, to read sensitive SEO metadata from any post on the site via the 'post_id' parameter, including posts owned by other users, private posts, and draft posts.
CVSS Vector Breakdown
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:NTechnical Details
What Changed in the Fix
Changes introduced in v26.6
Source Code
WordPress.org SVN# Exploitation Research Plan - CVE-2025-14481 ## 1. Vulnerability Summary **CVE-2025-14481** is an Insecure Direct Object Reference (IDOR) vulnerability in the **Yoast SEO** plugin (versions <= 26.5). The vulnerability exists in the **Meta Search REST API endpoint** due to a failure to perform adeq…
Show full research plan
Exploitation Research Plan - CVE-2025-14481
1. Vulnerability Summary
CVE-2025-14481 is an Insecure Direct Object Reference (IDOR) vulnerability in the Yoast SEO plugin (versions <= 26.5). The vulnerability exists in the Meta Search REST API endpoint due to a failure to perform adequate authorization checks. While the endpoint is restricted to authenticated users with at least Contributor permissions, it does not verify if the requesting user has the authority to view the specific post identified by the post_id parameter. This allows an attacker to access sensitive SEO metadata (e.g., focus keywords, SEO titles, descriptions) for private posts, drafts, or posts belonging to other users.
2. Attack Vector Analysis
- Endpoint:
/wp-json/yoast/v1/meta-search(inferred from "Meta Search REST API endpoint" description). - HTTP Method:
GET - Vulnerable Parameter:
post_id - Authentication: Required (Contributor-level or higher).
- Required Headers:
X-WP-Nonce: A valid WordPress REST API nonce.Cookie: Authenticated session cookies for a Contributor user.
- Preconditions: The attacker must have a Contributor account and know (or brute-force) the ID of a target private/draft post.
3. Code Flow (Inferred)
- Registration: The plugin registers a REST route using
register_rest_routein theyoast/v1namespace. - Permission Callback: The
permission_callbackfor the route likely checks for a general capability likeedit_posts(which Contributors have). - Execution: The controller's callback function retrieves the
post_idfrom the request. - Processing: The code calls internal Yoast SEO functions or directly queries metadata for the specified
post_id. - Vulnerability Sink: The code returns the SEO metadata to the user without performing a secondary check such as
current_user_can( 'read_post', $post_id )or verifying that the post status ispublish.
4. Nonce Acquisition Strategy
The REST API requires a wp_rest nonce for authenticated requests. Since the agent has browser_eval, we will extract it from the WordPress admin dashboard.
- Shortcode/Context: The Yoast SEO scripts are enqueued on most post-editing pages and the main dashboard for users with SEO permissions.
- Page Navigation: Navigate to
/wp-admin/index.phpas the Contributor user. - Extraction: Use
browser_evalto access the localized data WordPress provides for the REST API. - JS Variable: WordPress core provides the nonce in the
wpApiSettingsobject.- Command:
browser_eval("window.wpApiSettings?.nonce")
- Command:
- Alternative: Yoast often localizes its own data. If
wpApiSettingsis missing, check:window.wpseoAdminL10n?.rest?.nonce
5. Exploitation Strategy
- Target Identification: Identify a sensitive post ID (e.g., a "Private" post created by an Admin).
- Authentication: Log in as a Contributor user.
- Nonce Retrieval: Navigate to the admin dashboard and extract the
wp_restnonce. - Malicious Request: Use the
http_requesttool to query the meta-search endpoint for the targetpost_id.
Targeted HTTP Request:
GET /wp-json/yoast/v1/meta-search?post_id=[TARGET_POST_ID] HTTP/1.1
Host: localhost:8080
X-WP-Nonce: [EXTRACTED_NONCE]
Cookie: [CONTRIBUTOR_COOKIES]
Content-Type: application/json
6. Test Data Setup
- Admin Actions:
- Log in as Administrator.
- Create a Private post (Post A).
- Title: "Top Secret Product Launch"
- Yoast Focus Keyword: "secret-project-x"
- Yoast SEO Title: "Confidential Project X Metadata"
- Note the Post ID (e.g.,
12).
- Create a Draft post (Post B).
- Title: "Unreleased Financial Report"
- Yoast Focus Keyword: "q4-losses"
- Note the Post ID (e.g.,
13).
- Contributor Actions:
- Create a Contributor user (e.g.,
attacker_contributor). - Log in as the Contributor.
- Create a Contributor user (e.g.,
7. Expected Results
- Success: The server returns a
200 OKresponse. The JSON body contains the SEO metadata for the private/draft post, including keys likefocuskw,title, ormetadesccontaining the sensitive strings set by the Admin. - Failure (Patched): The server returns a
403 Forbiddenor401 Unauthorizedbecause the user does not have permission to access that specificpost_id.
8. Verification Steps
- Check Response Content: Confirm the JSON response contains the specific strings "secret-project-x" or "q4-losses" which are not publicly visible.
- Verify Post Status via WP-CLI:
wp post get [TARGET_POST_ID] --field=post_status- Confirm it returns
privateordraft.
- Verify Contributor Permissions via WP-CLI:
wp user get attacker_contributor --field=roles- Confirm it returns
contributor.
9. Alternative Approaches
If /yoast/v1/meta-search is not the correct path:
- Search for REST Routes: Use
wp rest route list --access=activeto find all registered Yoast routes. Look for routes containing "meta", "search", or "indexable". - Indexable Endpoint: Yoast heavily uses "Indexables". If "Meta Search" fails, the vulnerability might reside in:
/wp-json/yoast/v1/indexables/post/[ID]
- Parameter variation: Try
idinstead ofpost_idif the initial request fails with a "missing parameter" error.
Summary
The Yoast SEO plugin (versions <= 26.5) contains an Insecure Direct Object Reference (IDOR) vulnerability in its Meta Search REST API endpoint. Authenticated users with Contributor-level access or higher can bypass ownership checks to retrieve sensitive SEO metadata, such as focus keywords and descriptions, from private or draft posts by manipulating the 'post_id' parameter.
Security Fix
@@ -36,7 +36,7 @@ * @return string The activation URL. Empty string if the current user doesn't have the proper capabilities. */ public static function get_activation_url( $slug ) { - if ( ! current_user_can( 'install_plugins' ) ) { + if ( ! current_user_can( 'activate_plugins' ) ) { return ''; } @@ -15,14 +15,14 @@ * * @var string */ - public const CURRENT_RELEASE = '22.1.2'; + public const CURRENT_RELEASE = '22.2.0'; /** * The minimally supported version of Gutenberg by the plugin. * * @var string */ - public const MINIMUM_SUPPORTED = '22.1.2'; + public const MINIMUM_SUPPORTED = '22.2.0'; /** * Holds the current version. @@ -244,6 +244,7 @@ 'enable_llms_txt', 'llms_txt_selection_mode', 'configuration_finished_steps', + 'enable_task_list', ]; /** Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: academy-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: academy-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: academy-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: academy-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: adminbar-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: adminbar-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: adminbar-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: adminbar-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: admin-global-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: admin-global-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: admin-global-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: admin-global-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: ai-fix-assessments-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: ai-fix-assessments-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: ai-fix-assessments-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: ai-fix-assessments-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: ai-frontend-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: ai-frontend-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: ai-frontend-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: ai-frontend-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: ai-generator-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: ai-generator-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: ai-generator-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: ai-generator-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: alerts-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: alerts-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: alerts-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: alerts-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: black-friday-banner-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: black-friday-banner-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: black-friday-banner-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: black-friday-banner-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: block-editor-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: block-editor-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: block-editor-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: block-editor-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: dashboard-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: dashboard-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: dashboard-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: dashboard-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: edit-page-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: edit-page-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: edit-page-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: edit-page-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: elementor-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: elementor-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: elementor-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: elementor-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: featured-image-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: featured-image-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: featured-image-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: featured-image-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: filter-explanation-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: filter-explanation-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: filter-explanation-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: filter-explanation-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: first-time-configuration-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: first-time-configuration-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: first-time-configuration-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: first-time-configuration-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: general-page-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: general-page-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: general-page-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: general-page-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: icons-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: icons-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: icons-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: icons-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: inside-editor-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: inside-editor-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: inside-editor-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: inside-editor-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: installation-success-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: installation-success-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: installation-success-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: installation-success-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: introductions-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: introductions-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: introductions-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: introductions-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: metabox-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: metabox-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: metabox-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: metabox-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: metabox-primary-category-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: metabox-primary-category-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: metabox-primary-category-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: metabox-primary-category-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: modal-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: modal-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: modal-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: modal-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: monorepo-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: monorepo-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: monorepo-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: monorepo-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: new-settings-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: new-settings-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: new-settings-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: new-settings-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: notifications-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: notifications-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: notifications-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: notifications-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: plans-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: plans-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: plans-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: plans-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: redirects-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: redirects-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: redirects-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: redirects-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: score_icon-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: score_icon-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: score_icon-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: score_icon-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: structured-data-blocks-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: structured-data-blocks-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: structured-data-blocks-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: structured-data-blocks-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: support-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: support-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: support-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: support-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: tailwind-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: tailwind-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: toggle-switch-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: toggle-switch-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: toggle-switch-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: toggle-switch-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: tooltips-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: tooltips-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: tooltips-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: tooltips-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: workouts-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: workouts-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: workouts-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: workouts-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: wpseo-dismissible-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: wpseo-dismissible-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: wpseo-dismissible-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: wpseo-dismissible-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: yst_plugin_tools-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: yst_plugin_tools-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: yst_plugin_tools-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: yst_plugin_tools-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: yst_seo_score-2650.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.5/css/dist: yst_seo_score-2650-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: yst_seo_score-2660.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/css/dist: yst_seo_score-2660-rtl.css Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/images: icon-task-list.svg @@ -317,7 +317,7 @@ /** * Checks if there are addon updates. * - * @param stdClass|mixed $data The current data for update_plugins. + * @param stdClass $data The current data for update_plugins. * * @return stdClass Extended data for update_plugins. */ @@ -8,6 +8,7 @@ use Yoast\WP\SEO\Conditionals\WooCommerce_Conditional; use Yoast\WP\SEO\Helpers\Product_Helper; use Yoast\WP\SEO\Helpers\Score_Icon_Helper; +use Yoast\WP\SEO\Integrations\Admin\Brand_Insights_Page; use Yoast\WP\SEO\Integrations\Support_Integration; use Yoast\WP\SEO\Models\Indexable; use Yoast\WP\SEO\Presenters\Admin\Premium_Badge_Presenter; @@ -290,6 +291,7 @@ } $this->add_premium_link( $wp_admin_bar ); + $this->add_brand_insights_link( $wp_admin_bar ); } /** @@ -589,21 +591,26 @@ * @return void */ protected function add_premium_link( WP_Admin_Bar $wp_admin_bar ) { - $link = $this->shortlinker->build_shortlink( 'https://yoa.st/admin-bar-get-premium' ); + // Don't show the Upgrade button if Yoast SEO WooCommerce addon is active. + $addon_manager = new WPSEO_Addon_Manager(); + if ( $addon_manager->is_installed( WPSEO_Addon_Manager::WOOCOMMERCE_SLUG ) ) { + return; + } + $has_woocommerce = ( new Woocommerce_Conditional() )->is_met(); - if ( $this->product_helper->is_premium() ) { - $link = $this->shortlinker->build_shortlink( 'https://yoa.st/admin-bar-get-ai-insights' ); + // Don't show the Upgrade button if Premium is active without the WooCommerce plugin. + if ( $this->product_helper->is_premium() && ! $has_woocommerce ) { + return; } - elseif ( $has_woocommerce ) { + + $link = $this->shortlinker->build_shortlink( 'https://yoa.st/admin-bar-get-premium' ); + + if ( $has_woocommerce ) { $link = $this->shortlinker->build_shortlink( 'https://yoa.st/admin-bar-get-premium-woocommerce' ); } $button_label = esc_html__( 'Upgrade', 'wordpress-seo' ); - $badge = ''; - if ( $this->product_helper->is_premium() ) { - $badge = '<div id="wpseo-new-badge-upgrade">' . __( 'New', 'wordpress-seo' ) . '</div>'; - } if ( YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-promotion' ) ) { $button_label = esc_html__( '30% off - BF Sale', 'wordpress-seo' ); @@ -614,10 +621,9 @@ 'id' => 'wpseo-get-premium', // Circumvent an issue in the WP admin bar API in order to pass `data` attributes. See https://core.trac.wordpress.org/ticket/38636. 'title' => sprintf( - '<a href="%1$s" target="_blank" data-action="load-nfd-ctb" data-ctb-id="f6a84663-465f-4cb5-8ba5-f7a6d72224b2">%2$s</a>%3$s', + '<a href="%1$s" target="_blank" data-action="load-nfd-ctb" data-ctb-id="f6a84663-465f-4cb5-8ba5-f7a6d72224b2">%2$s</a>', esc_url( $link ), - $button_label, - $badge, + $button_label ), 'meta' => [ 'tabindex' => '0', @@ -627,6 +633,38 @@ } /** + * Adds the Brand Insights link to the admin bar. + * + * @param WP_Admin_Bar $wp_admin_bar Admin bar instance to add the menu to. + * + * @return void + */ + protected function add_brand_insights_link( WP_Admin_Bar $wp_admin_bar ) { + $page = $this->product_helper->is_premium() ? 'wpseo_brand_insights_premium' : 'wpseo_brand_insights'; + + $button_content = 'AI Brand Insights'; + + $menu_title = '<span class="yoast-brand-insights-gradient-border">' + . '<span class="yoast-brand-insights-content">' + . $button_content + . Brand_Insights_Page::EXTERNAL_LINK_ICON + . '</span></span>'; + + $wp_admin_bar->add_menu( + [ + 'parent' => self::MENU_IDENTIFIER, + 'id' => $page, + 'title' => $menu_title, + 'href' => admin_url( 'admin.php?page=' . $page ), + 'meta' => [ + 'tabindex' => '0', + 'target' => '_blank', + ], + ] + ); + } + + /** * Adds the admin bar settings submenu. * * @param WP_Admin_Bar $wp_admin_bar Admin bar instance to add the menu to. @@ -659,6 +697,11 @@ continue; } + // Don't add the Brand Insights menu items (they're now in the main menu). + if ( $submenu_page[4] === 'wpseo_brand_insights' || $submenu_page[4] === 'wpseo_brand_insights_premium' ) { + continue; + } + $id = 'wpseo-' . str_replace( '_', '-', str_replace( 'wpseo_', '', $submenu_page[4] ) ); if ( $id === 'wpseo-dashboard' ) { $id = 'wpseo-general'; @@ -920,9 +963,9 @@ /** * Add submenu items to a menu item. * - * @param array $submenu_items Submenu items array. - * @param WP_Admin_Bar $wp_admin_bar Admin bar object. - * @param string $parent_id Parent menu item ID. + * @param array<array{id: string, title: string, href: string}> $submenu_items Submenu items array. + * @param WP_Admin_Bar $wp_admin_bar Admin bar object. + * @param string $parent_id Parent menu item ID. * * @return void */ @@ -154,6 +154,7 @@ 'default_seo_title' => [], 'default_seo_meta_desc' => [], 'first_activated_by' => 0, + 'enable_task_list' => true, ]; /** @@ -547,6 +548,7 @@ * 'site_kit_connected', * 'google_site_kit_feature_enabled', * 'enable_llms_txt', + * 'enable_task_list', * and most of the feature variables. */ default: @@ -617,6 +619,7 @@ 'algolia_integration_active' => false, 'google_site_kit_feature_enabled' => false, 'enable_llms_txt' => false, + 'enable_task_list' => false, ]; // We can reuse this logic from the base class with the above defaults to parse with the correct feature values. @@ -1 +1 @@ -(()=>{"use strict";var t={n:o=>{var a=o&&o.__esModule?()=>o.default:()=>o;return t.d(a,{a}),a},d:(o,a)=>{for(var e in a)t.o(a,e)&&!t.o(o,e)&&Object.defineProperty(o,e,{enumerable:!0,get:a[e]})},o:(t,o)=>Object.prototype.hasOwnProperty.call(t,o)};const o=window.jQuery;var a=t.n(o);!function(t){function o(t,o,e){const s=new FormData,n={action:"wpseo_set_ignore",option:t,_wpnonce:e};for(const[t,o]of Object.entries(n))s.append(t,o);return fetch(ajaxurl,{method:"POST",body:s}).then((e=>(e&&(a()("#"+o).hide(),a()("#hidden_ignore_"+t).val("ignore")),e)))}function e(){t("#wp-admin-bar-root-default > li").off("mouseenter.yoastalertpopup mouseleave.yoastalertpopup"),t(".yoast-issue-added").fadeOut(200)}function s(o,a){if(t(".yoast-notification-holder").off("click",".restore").off("click",".dismiss"),void 0!==a.html){a.html&&(o.closest(".yoast-container").html(a.html),n());var e=t("#wp-admin-bar-wpseo-menu"),s=e.find(".yoast-issue-counter");s.length||(e.find("> a:first-child").append('<div class="yoast-issue-counter"/>'),s=e.find(".yoast-issue-counter")),s.html(a.total),0===a.total?s.hide():s.show(),t("#toplevel_page_wpseo_dashboard .update-plugins").removeClass().addClass("update-plugins count-"+a.total),t("#toplevel_page_wpseo_dashboard .plugin-count").html(a.total)}}function n(){var o=t(".yoast-notification-holder");o.on("click",".dismiss",(function(){var o=t(this),a=o.closest(".yoast-notification-holder");o.closest(".yoast-container").append('<div class="yoast-container-disabled"/>'),t.post(ajaxurl,{action:"yoast_dismiss_notification",notification:a.attr("id"),nonce:a.data("nonce"),data:o.data("json")||a.data("json")},s.bind(this,a),"json")})),o.on("click",".restore",(function(){var o=t(this),a=o.closest(".yoast-notification-holder");o.closest(".yoast-container").append('<div class="yoast-container-disabled"/>'),t.post(ajaxurl,{action:"yoast_restore_notification",notification:a.attr("id"),nonce:a.data("nonce"),data:a.data("json")},s.bind(this,a),"json")}))}function i(t){t.is(":hidden")||(t.outerWidth()>t.parent().outerWidth()?(t.data("scrollHint").addClass("yoast-has-scroll"),t.data("scrollContainer").addClass("yoast-has-scroll")):(t.data("scrollHint").removeClass("yoast-has-scroll"),t.data("scrollContainer").removeClass("yoast-has-scroll")))}function l(){window.wpseoScrollableTables=t(".yoast-table-scrollable"),window.wpseoScrollableTables.length&&window.wpseoScrollableTables.each((function(){var o=t(this);if(!o.data("scrollContainer")){var a=t("<div />",{class:"yoast-table-scrollable__hintwrapper",html:"<span class='yoast-table-scrollable__hint' aria-hidden='true' />"}).insertBefore(o),e=t("<div />",{class:"yoast-table-scrollable__container",html:"<div class='yoast-table-scrollable__inner' />"}).insertBefore(o);a.find(".yoast-table-scrollable__hint").text(wpseoAdminGlobalL10n.scrollable_table_hint),o.data("scrollContainer",e),o.data("scrollHint",a),o.appendTo(e.find(".yoast-table-scrollable__inner")),i(o)}}))}a()(document).ready((function(){a()(".yoast-dismissible").on("click",".yoast-notice-dismiss",(function(){var t=a()(this).parent();return a().post(ajaxurl,{action:t.attr("id").replace(/-/g,"_"),_wpnonce:t.data("nonce"),data:t.data("json")}),a().post(ajaxurl,{action:"yoast_dismiss_notification",notification:t.attr("id"),nonce:t.data("nonce"),data:t.data("json")}),t.fadeTo(100,0,(function(){t.slideUp(100,(function(){t.remove()}))})),!1})),a()(".yoast-help-button").on("click",(function(){var t=a()(this),o=a()("#"+t.attr("aria-controls")),e=o.is(":visible");a()(o).slideToggle(200,(function(){t.attr("aria-expanded",!e)}))})),a()("button#robotsmessage-dismiss-button").on("click",(function(){o("search_engines_discouraged_notice","robotsmessage",a()(this).data("nonce")).then((()=>{window.location.href.includes("page=wpseo_dashboard")&&window.location.reload()}))}))})),window.wpseoSetIgnore=o,window.wpseoDismissLink=function(t){return a()('<a href="'+t+'" type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></a>')},t(window).on("wp-window-resized orientationchange",(function(){window.wpseoScrollableTables&&window.wpseoScrollableTables.length&&window.wpseoScrollableTables.each((function(){i(t(this))}))})),t(window).on({"Yoast:YoastTabsMounted":function(){setTimeout((function(){l()}),100)},"Yoast:YoastTabsSelected":function(){setTimeout((function(){l()}),100)}}),t(document).ready((function(){var o,s;t(".yoast-issue-added").on("mouseenter mouseleave",(function(t){t.stopPropagation(),e()})).fadeIn(),t("#wp-admin-bar-root-default > li").on("mouseenter.yoastalertpopup mouseleave.yoastalertpopup",e),setTimeout(e,3e3),n(),function(){const t=a()(".wpseo-js-premium-indicator"),o=t.find("svg");if(t.hasClass("wpseo-premium-indicator--no")){const a=o.find("path"),e=t.css("backgroundColor");a.css("fill",e)}o.css("display","block"),t.css({backgroundColor:"transparent",width:"20px",height:"20px"})}(),l(),function(){const t=a()(".yoast-issue-counter .yoast-issues-count").first(),o=a()("#toplevel_page_wpseo_dashboard .plugin-count");if(t.text()===o.first().text())return;const e=a()("#toplevel_page_wpseo_dashboard .update-plugins"),s=a()(".yoast-issue-counter .screen-reader-text").first(),n=a()("#toplevel_page_wpseo_dashboard .update-plugins .screen-reader-text");if(t.length)return o.text(t.text()),e.removeClass().addClass("update-plugins count-"+t.text()),void n.text(s.text());o.text("0"),e.removeClass().addClass("update-plugins count-0"),n.remove()}(),(o=t('a[href="admin.php?page=wpseo_upgrade_sidebar"]')).length&&o.attr("target","_blank"),(s=t("a[href$='admin.php?page=wpseo_brand_insights']")).length&&s.each((function(){t(this).attr("target","_blank")})),function(){var o=t("a[href$='admin.php?page=wpseo_brand_insights_premium']");o.length&&o.each((function(){t(this).attr("target","_blank")}))}()}))}(a())})(); \ No newline at end of file +(()=>{"use strict";var t={n:o=>{var e=o&&o.__esModule?()=>o.default:()=>o;return t.d(e,{a:e}),e},d:(o,e)=>{for(var a in e)t.o(e,a)&&!t.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:e[a]})},o:(t,o)=>Object.prototype.hasOwnProperty.call(t,o)};const o=window.jQuery;var e=t.n(o);const a={fresh:"#2c3338",light:"#fff",modern:"#1e1e1e",blue:"#4796b3",coffee:"#46403c",ectoplasm:"#413256",midnight:"#26292c",ocean:"#627c83",sunrise:"#be3631"},n="fresh";!function(t){function o(t,o,a){const n=new FormData,s={action:"wpseo_set_ignore",option:t,_wpnonce:a};for(const[t,o]of Object.entries(s))n.append(t,o);return fetch(ajaxurl,{method:"POST",body:n}).then((a=>(a&&(e()("#"+o).hide(),e()("#hidden_ignore_"+t).val("ignore")),a)))}function s(){t("#wp-admin-bar-root-default > li").off("mouseenter.yoastalertpopup mouseleave.yoastalertpopup"),t(".yoast-issue-added").fadeOut(200)}function i(o,e){if(t(".yoast-notification-holder").off("click",".restore").off("click",".dismiss"),void 0!==e.html){e.html&&(o.closest(".yoast-container").html(e.html),r());var a=t("#wp-admin-bar-wpseo-menu"),n=a.find(".yoast-issue-counter");n.length||(a.find("> a:first-child").append('<div class="yoast-issue-counter"/>'),n=a.find(".yoast-issue-counter")),n.html(e.total),0===e.total?n.hide():n.show(),t("#toplevel_page_wpseo_dashboard .update-plugins").removeClass().addClass("update-plugins count-"+e.total),t("#toplevel_page_wpseo_dashboard .plugin-count").html(e.total)}}function r(){var o=t(".yoast-notification-holder");o.on("click",".dismiss",(function(){var o=t(this),e=o.closest(".yoast-notification-holder");o.closest(".yoast-container").append('<div class="yoast-container-disabled"/>'),t.post(ajaxurl,{action:"yoast_dismiss_notification",notification:e.attr("id"),nonce:e.data("nonce"),data:o.data("json")||e.data("json")},i.bind(this,e),"json")})),o.on("click",".restore",(function(){var o=t(this),e=o.closest(".yoast-notification-holder");o.closest(".yoast-container").append('<div class="yoast-container-disabled"/>'),t.post(ajaxurl,{action:"yoast_restore_notification",notification:e.attr("id"),nonce:e.data("nonce"),data:e.data("json")},i.bind(this,e),"json")}))}function l(t){t.is(":hidden")||(t.outerWidth()>t.parent().outerWidth()?(t.data("scrollHint").addClass("yoast-has-scroll"),t.data("scrollContainer").addClass("yoast-has-scroll")):(t.data("scrollHint").removeClass("yoast-has-scroll"),t.data("scrollContainer").removeClass("yoast-has-scroll")))}function c(){window.wpseoScrollableTables=t(".yoast-table-scrollable"),window.wpseoScrollableTables.length&&window.wpseoScrollableTables.each((function(){var o=t(this);if(!o.data("scrollContainer")){var e=t("<div />",{class:"yoast-table-scrollable__hintwrapper",html:"<span class='yoast-table-scrollable__hint' aria-hidden='true' />"}).insertBefore(o),a=t("<div />",{class:"yoast-table-scrollable__container",html:"<div class='yoast-table-scrollable__inner' />"}).insertBefore(o);e.find(".yoast-table-scrollable__hint").text(wpseoAdminGlobalL10n.scrollable_table_hint),o.data("scrollContainer",a),o.data("scrollHint",e),o.appendTo(a.find(".yoast-table-scrollable__inner")),l(o)}}))}e()(document).ready((function(){e()(".yoast-dismissible").on("click",".yoast-notice-dismiss",(function(){var t=e()(this).parent();return e().post(ajaxurl,{action:t.attr("id").replace(/-/g,"_"),_wpnonce:t.data("nonce"),data:t.data("json")}),e().post(ajaxurl,{action:"yoast_dismiss_notification",notification:t.attr("id"),nonce:t.data("nonce"),data:t.data("json")}),t.fadeTo(100,0,(function(){t.slideUp(100,(function(){t.remove()}))})),!1})),e()(".yoast-help-button").on("click",(function(){var t=e()(this),o=e()("#"+t.attr("aria-controls")),a=o.is(":visible");e()(o).slideToggle(200,(function(){t.attr("aria-expanded",!a)}))})),e()("button#robotsmessage-dismiss-button").on("click",(function(){o("search_engines_discouraged_notice","robotsmessage",e()(this).data("nonce")).then((()=>{window.location.href.includes("page=wpseo_dashboard")&&window.location.reload()}))}))})),window.wpseoSetIgnore=o,window.wpseoDismissLink=function(t){return e()('<a href="'+t+'" type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></a>')},t(window).on("wp-window-resized orientationchange",(function(){window.wpseoScrollableTables&&window.wpseoScrollableTables.length&&window.wpseoScrollableTables.each((function(){l(t(this))}))})),t(window).on({"Yoast:YoastTabsMounted":function(){setTimeout((function(){c()}),100)},"Yoast:YoastTabsSelected":function(){setTimeout((function(){c()}),100)}}),t(document).ready((function(){var o,i;t(".yoast-issue-added").on("mouseenter mouseleave",(function(t){t.stopPropagation(),s()})).fadeIn(),t("#wp-admin-bar-root-default > li").on("mouseenter.yoastalertpopup mouseleave.yoastalertpopup",s),setTimeout(s,3e3),r(),function(){const t=(e=document.body.className,o=function(t){if("string"!=typeof t)return n;const o=t.match(/admin-color-(\w+)/);return o?o[1]:n}(e),a[o]||a[n]);var o,e;document.documentElement.style.setProperty("--yoast-adminbar-submenu-bg",t)}(),function(){const t=e()(".wpseo-js-premium-indicator"),o=t.find("svg");if(t.hasClass("wpseo-premium-indicator--no")){const e=o.find("path"),a=t.css("backgroundColor");e.css("fill",a)}o.css("display","block"),t.css({backgroundColor:"transparent",width:"20px",height:"20px"})}(),c(),function(){const t=e()(".yoast-issue-counter .yoast-issues-count").first(),o=e()("#toplevel_page_wpseo_dashboard .plugin-count");if(t.text()===o.first().text())return;const a=e()("#toplevel_page_wpseo_dashboard .update-plugins"),n=e()(".yoast-issue-counter .screen-reader-text").first(),s=e()("#toplevel_page_wpseo_dashboard .update-plugins .screen-reader-text");if(t.length)return o.text(t.text()),a.removeClass().addClass("update-plugins count-"+t.text()),void s.text(n.text());o.text("0"),a.removeClass().addClass("update-plugins count-0"),s.remove()}(),(o=t('a[href="admin.php?page=wpseo_upgrade_sidebar"]')).length&&o.attr("target","_blank"),(i=t("a[href$='admin.php?page=wpseo_brand_insights']")).length&&i.each((function(){t(this).attr("target","_blank")})),function(){var o=t("a[href$='admin.php?page=wpseo_brand_insights_premium']");o.length&&o.each((function(){t(this).attr("target","_blank")}))}()}))}(e())})(); \ No newline at end of file @@ -1,6 +1,5 @@ -(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var i=typeof s;if("string"===i||"number"===i)e.push(s);else if(Array.isArray(s)){if(s.length){var o=n.apply(null,s);o&&e.push(o)}}else if("object"===i){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var a in s)r.call(s,a)&&s[a]&&e.push(a)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(s=function(){return n}.apply(t,[]))||(e.exports=s)}()}},t={};function s(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,s),i.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.data,t=window.wp.domReady;var r=s.n(t);const n=window.wp.element,i=window.wp.i18n,o=window.yoast.uiLibrary;var a=s(4184),l=s.n(a);const c=window.lodash,d=window.yoast.reduxJsToolkit,u="adminUrl",p=(0,d.createSlice)({name:u,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),y=(p.getInitialState,{selectAdminUrl:e=>(0,c.get)(e,u,"")});y.selectAdminLink=(0,d.createSelector)([y.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),p.actions,p.reducer;const m=window.wp.apiFetch;var h=s.n(m);const g="hasConsent",w=`${g}/storeConsent`,f=(0,d.createSlice)({name:g,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),v=f.getInitialState,x={selectHasAiGeneratorConsent:e=>(0,c.get)(e,[g,"hasConsent"],f.getInitialState().hasConsent),selectAiGeneratorConsentEndpoint:e=>(0,c.get)(e,[g,"endpoint"],f.getInitialState().endpoint)},k={...f.actions,storeAiGeneratorConsent:function*(e,t){try{yield{type:w,payload:{consent:e,endpoint:t}}}catch(e){return!1}return yield{type:`${g}/giveAiGeneratorConsent`,payload:e},!0}},R={[w]:async({payload:e})=>await h()({path:e.endpoint,method:"POST",data:{consent:e.consent},parse:!1})},S=f.reducer,j=window.wp.url,b="linkParams",_=(0,d.createSlice)({name:b,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),C=_.getInitialState,L={selectLinkParam:(e,t,s={})=>(0,c.get)(e,`${b}.${t}`,s),selectLinkParams:e=>(0,c.get)(e,b,{})};L.selectLink=(0,d.createSelector)([L.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,j.addQueryArgs)(t,{...e,...s})));const q=_.actions,N=_.reducer,A=(0,d.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:r,description:n})=>({payload:{id:e||(0,d.nanoid)(),variant:t,size:s,title:r||"",description:n}})},removeNotification:(e,{payload:t})=>(0,c.omit)(e,t)}}),E=(A.getInitialState,A.actions,A.reducer,"pluginUrl"),P=(0,d.createSlice)({name:E,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),O=P.getInitialState,I={selectPluginUrl:e=>(0,c.get)(e,E,"")};I.selectImageLink=(0,d.createSelector)([I.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,c.trimEnd)(e,"/"),(0,c.trim)(t,"/"),(0,c.trimStart)(s,"/")].join("/")));const B=P.actions,M=P.reducer,G="loading",T="wistiaEmbedPermission",U=(0,d.createSlice)({name:T,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${T}/request`,(e=>{e.status=G})),e.addCase(`${T}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${T}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,c.get)(t,"error.code",500),message:(0,c.get)(t,"error.message","Unknown")}}))}});var z;U.getInitialState,U.actions,U.reducer;const $=(0,d.createSlice)({name:"documentTitle",initialState:(0,c.defaultTo)(null===(z=document)||void 0===z?void 0:z.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),F=($.getInitialState,$.actions,$.reducer,window.React),H=(F.forwardRef((function(e,t){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),F.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))})),(e,t)=>{try{return(0,n.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}}),Y=window.yoast.propTypes;var V=s.n(Y);const W=window.ReactJSXRuntime;V().string.isRequired,F.forwardRef((function(e,t){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),F.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))}));const D=F.forwardRef((function(e,t){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),F.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));V().string.isRequired,V().string.isRequired,V().shape({src:V().string.isRequired,width:V().string,height:V().string}).isRequired,V().shape({value:V().bool.isRequired,status:V().string.isRequired,set:V().func.isRequired}).isRequired,V().string,V().string,V().string;const J=({handleRefreshClick:e,supportLink:t})=>(0,W.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,W.jsx)(o.Button,{onClick:e,children:(0,i.__)("Refresh this page","wordpress-seo")}),(0,W.jsx)(o.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,i.__)("Contact support","wordpress-seo")})]});J.propTypes={handleRefreshClick:V().func.isRequired,supportLink:V().string.isRequired};const Q=({handleRefreshClick:e,supportLink:t})=>(0,W.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,W.jsx)(o.Button,{className:"yst-order-last",onClick:e,children:(0,i.__)("Refresh this page","wordpress-seo")}),(0,W.jsx)(o.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,i.__)("Contact support","wordpress-seo")})]});Q.propTypes={handleRefreshClick:V().func.isRequired,supportLink:V().string.isRequired};const X=({error:e,children:t=null})=>(0,W.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,W.jsx)(o.Title,{children:(0,i.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,W.jsx)("p",{children:(0,i.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,W.jsx)(o.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,i.__)("Undefined error message.","wordpress-seo")}),(0,W.jsx)("p",{children:(0,i.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});X.propTypes={error:V().object.isRequired,children:V().node},X.VerticalButtons=Q,X.HorizontalButtons=J;V().string,V().node.isRequired,V().node.isRequired,V().node,V().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const K=window.ReactDOM;var Z,ee,te;(ee=Z||(Z={})).Pop="POP",ee.Push="PUSH",ee.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(te||(te={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const se=["post","put","patch","delete"],re=(new Set(se),["get",...se]);new Set(re),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),F.Component,F.startTransition,new Promise((()=>{})),F.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var ne,ie,oe,ae;new Map,F.startTransition,K.flushSync,F.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(ae=ne||(ne={})).UseScrollRestoration="useScrollRestoration",ae.UseSubmit="useSubmit",ae.UseSubmitFetcher="useSubmitFetcher",ae.UseFetcher="useFetcher",ae.useViewTransitionState="useViewTransitionState",(oe=ie||(ie={})).UseFetcher="useFetcher",oe.UseFetchers="useFetchers",oe.UseScrollRestoration="useScrollRestoration",V().string.isRequired,V().string;const le=({href:e,children:t=null,...s})=>(0,W.jsxs)(o.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,W.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,i.__)("(Opens in a new browser tab)","wordpress-seo")})]});le.propTypes={href:V().string.isRequired,children:V().node};F.forwardRef((function(e,t){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),F.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),(0,i.__)("AI tools included","wordpress-seo"),(0,i.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ -(0,i.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,i.__)("24/7 support","wordpress-seo"),(0,i.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,i.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,i.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,i.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,i.__)("Internal links and redirect management, easy","wordpress-seo"),(0,i.__)("Access to friendly help when you need it, day or night","wordpress-seo");F.forwardRef((function(e,t){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),F.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}));V().string.isRequired,V().object.isRequired,V().func.isRequired,F.forwardRef((function(e,t){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),F.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),V().string.isRequired,V().object,V().func.isRequired,V().bool.isRequired,V().string.isRequired,V().object.isRequired,V().string.isRequired,V().func.isRequired,V().bool.isRequired;const ce=F.forwardRef((function(e,t){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),F.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))}));V().bool.isRequired,V().func,V().func,V().string.isRequired,V().string.isRequired,V().string.isRequired,V().string.isRequired;window.yoast.reactHelmet;V().string.isRequired,V().shape({src:V().string.isRequired,width:V().string,height:V().string}).isRequired,V().shape({value:V().bool.isRequired,status:V().string.isRequired,set:V().func.isRequired}).isRequired,V().bool,F.forwardRef((function(e,t){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),F.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),V().bool.isRequired,V().func.isRequired,V().func,V().string;const de=({onGiveConsent:e,learnMoreLink:t,privacyPolicyLink:s,termsOfServiceLink:r,imageLink:a})=>{const{onClose:l,initialFocus:c}=(0,o.useModalContext)(),[d,u]=(0,o.useToggleState)(!1),p=(0,n.useMemo)((()=>({src:a,width:"432",height:"244"})),[a]),y=H((0,i.sprintf)(/* translators: %1$s and %2$s are a set of anchor tags and %3$s and %4$s are a set of anchor tags. */ -(0,i.__)("I approve the %1$sTerms of Service%2$s & %3$sPrivacy Policy%4$s of the Yoast AI service. This includes consenting to the collection and use of data to improve user experience.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,W.jsx)(le,{href:r}),a2:(0,W.jsx)(le,{href:s})}),[m,h]=(0,o.useToggleState)(!1),g=(0,n.useCallback)((async()=>{h(),await e(),h()}),[e]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center",children:(0,W.jsx)("div",{className:"yst-relative yst-w-full",children:(0,W.jsx)("img",{className:"yst-w-full yst-h-auto yst-rounded-md yst-drop-shadow-md",alt:"",loading:"lazy",decoding:"async",...p})})}),(0,W.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,W.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,W.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,i.sprintf)(/* translators: %s expands to Yoast AI. */ -(0,i.__)("Grant consent for %s","wordpress-seo"),"Yoast AI")}),(0,W.jsx)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:H((0,i.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tag; %4$s is the arrow icon. */ -(0,i.__)("Enable AI-powered SEO! Use all Yoast AI features to boost your efficiency. Just give us the green light. %1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),{a:(0,W.jsx)(le,{href:t,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,W.jsx)(D,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,W.jsx)("br",{})})})]}),(0,W.jsx)("div",{className:"yst-flex yst-w-full yst-mt-6",children:(0,W.jsx)("hr",{className:"yst-w-full yst-text-gray-200"})}),(0,W.jsxs)("div",{className:"yst-flex yst-items-start yst-mt-4",children:[(0,W.jsx)("input",{type:"checkbox",id:"yst-ai-consent-checkbox",name:"yst-ai-consent-checkbox",checked:d,value:d?"true":"false",onChange:u,className:"yst-checkbox__input",ref:c}),(0,W.jsx)("label",{htmlFor:"yst-ai-consent-checkbox",className:"yst-label yst-checkbox__label yst-text-xs yst-font-normal yst-text-slate-500",children:y})]}),(0,W.jsx)("div",{className:"yst-w-full yst-flex yst-mt-4",children:(0,W.jsxs)(o.Button,{as:"button",className:"yst-grow",size:"large",disabled:!d,onClick:g,children:[m&&(0,W.jsx)(o.Spinner,{className:"yst-me-2"}),(0,i.__)("Grant consent","wordpress-seo")]})}),(0,W.jsx)(o.Button,{as:"button",className:"yst-mt-4",variant:"tertiary",onClick:l,children:(0,i.__)("Close","wordpress-seo")})]})]})};de.propTypes={onGiveConsent:V().func.isRequired,learnMoreLink:V().string.isRequired,privacyPolicyLink:V().string.isRequired,termsOfServiceLink:V().string.isRequired,imageLink:V().string.isRequired};const ue="yoast-seo/ai-consent",pe=({onStartGenerating:t})=>{const{termsOfServiceLink:s,privacyPolicyLink:r,learnMoreLink:i,imageLink:o,endpoint:a}=(0,e.useSelect)((e=>{const t=e(ue);return{termsOfServiceLink:t.selectLink("https://yoa.st/ai-fix-assessments-terms-of-service"),privacyPolicyLink:t.selectLink("https://yoa.st/ai-fix-assessments-privacy-policy"),learnMoreLink:t.selectLink("https://yoa.st/ai-fix-assessments-consent-learn-more"),imageLink:t.selectImageLink("ai-consent.png"),endpoint:t.selectAiGeneratorConsentEndpoint()}}),[]),{storeAiGeneratorConsent:l}=(0,e.useDispatch)(ue),c=(0,n.useCallback)((()=>{l(!0,a),t()}),[l,t]);return(0,W.jsx)(de,{imageLink:o,onGiveConsent:c,learnMoreLink:i,termsOfServiceLink:s,privacyPolicyLink:r})},ye=({onClose:t})=>{const{storeAiGeneratorConsent:s}=(0,e.useDispatch)(ue),r=(0,e.useSelect)((e=>e(ue).selectAiGeneratorConsentEndpoint()),[]),[a,l]=(0,n.useState)(!1),[c,d]=(0,n.useState)(!1),u=(0,n.useCallback)((async()=>{if(d(!1),l(!0),!1===(await s(!1,r)).consent)return d(!0),void l(!1);t(),l(!1)}),[s,l,t,r]);return(0,W.jsxs)("div",{className:"yst-flex yst-flex-row",children:[(0,W.jsx)("span",{className:"yst-shrink-0 yst-h-12 yst-w-12 yst-rounded-full yst-flex yst-justify-center yst-items-center yst-mb-3 yst-me-5 yst-bg-red-100",children:(0,W.jsx)(ce,{className:"yst-w-6 yst-h-6 yst-align-center yst-text-red-600"})}),(0,W.jsxs)("div",{children:[(0,W.jsx)(o.Modal.Title,{className:"yst-font-semibold",as:"h3",size:"4",children:(0,i.__)("Revoke AI consent","wordpress-seo")}),c&&(0,W.jsx)(o.Alert,{className:"yst-mt-2",variant:"error",children:(0,i.__)("Something went wrong, please try again later.","wordpress-seo")}),(0,W.jsx)("p",{className:"yst-mt-2 yst-text-slate-600",children:(0,i.__)("By revoking your consent, you will no longer have access to Yoast AI features. Are you sure you want to revoke your consent?","wordpress-seo")}),(0,W.jsxs)("footer",{className:"yst-mt-6 sm:yst-flex sm:yst-flex-row-reverse",children:[(0,W.jsx)(o.Button,{variant:"error",isLoading:a,className:"yst-w-full sm:yst-w-auto yst-revoke-button",onClick:u,children:(0,i.__)("Yes, revoke consent","wordpress-seo")}),(0,W.jsx)(o.Button,{variant:"secondary",className:"yst-w-full sm:yst-w-auto yst-me-3",onClick:t,children:(0,i.__)("Close","wordpress-seo")})]})]})]})};r()((()=>{((t={})=>{(0,e.register)((t=>(0,e.createReduxStore)(ue,{actions:{...k,...B,...q},selectors:{...x,...I,...L},initialState:(0,c.merge)({},{[g]:v(),[E]:O(),[b]:C()},t),reducer:(0,e.combineReducers)({[g]:S,[E]:M,[b]:N}),controls:{...R}}))(t))})({[g]:{hasConsent:"1"===(0,c.get)(window,"wpseoAiConsent.hasConsent",!1)},[E]:(0,c.get)(window,"wpseoAiConsent.pluginUrl",""),[b]:(0,c.get)(window,"wpseoAiConsent.linkParams",{})});const t=()=>{const t=(0,e.useSelect)((e=>e(ue).selectHasAiGeneratorConsent()),[]),[s,,,r,a]=(0,o.useToggleState)(!1),c=(0,n.useRef)(null),d=(0,n.useCallback)((e=>{e.preventDefault(),r()}),[r]);return(0,W.jsxs)(n.Fragment,{children:[(0,W.jsx)(o.Modal,{className:"yst-introduction-modal",isOpen:s,onClose:a,initialFocus:c,children:(0,W.jsxs)(o.Modal.Panel,{className:l()(!t&&"yst-p-0 yst-max-w-lg yst-rounded-3xl",t&&"yst-max-w-xl yst-rounded-lg"),children:[!t&&(0,W.jsx)(pe,{onStartGenerating:a,focusElementRef:c}),t&&(0,W.jsx)(ye,{onClose:a})]})}),(0,W.jsx)("button",{className:"button",id:"ai-generator-consent-button",onClick:d,children:t?(0,i.__)("Revoke consent","wordpress-seo"):(0,i.__)("Grant consent","wordpress-seo")})]})},s=document.getElementById("ai-generator-consent");s&&(0,n.render)((0,W.jsx)(t,{}),s)}))})()})(); \ No newline at end of file +(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var i=typeof s;if("string"===i||"number"===i)e.push(s);else if(Array.isArray(s)){if(s.length){var o=n.apply(null,s);o&&e.push(o)}}else if("object"===i){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var a in s)r.call(s,a)&&s[a]&&e.push(a)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(s=function(){return n}.apply(t,[]))||(e.exports=s)}()}},t={};function s(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,s),i.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.data,t=window.wp.domReady;var r=s.n(t);const n=window.wp.element,i=window.wp.i18n,o=window.yoast.uiLibrary;var a=s(4184),l=s.n(a);const c=window.lodash,d=window.yoast.reduxJsToolkit,u="adminUrl",p=(0,d.createSlice)({name:u,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),y=(p.getInitialState,{selectAdminUrl:e=>(0,c.get)(e,u,"")});y.selectAdminLink=(0,d.createSelector)([y.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),p.actions,p.reducer;const m=window.wp.apiFetch;var g=s.n(m);const h="hasConsent",w=`${h}/storeConsent`,f=(0,d.createSlice)({name:h,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),v=f.getInitialState,x={selectHasAiGeneratorConsent:e=>(0,c.get)(e,[h,"hasConsent"],f.getInitialState().hasConsent),selectAiGeneratorConsentEndpoint:e=>(0,c.get)(e,[h,"endpoint"],f.getInitialState().endpoint)},k={...f.actions,storeAiGeneratorConsent:function*(e,t){try{yield{type:w,payload:{consent:e,endpoint:t}}}catch(e){return!1}return yield{type:`${h}/giveAiGeneratorConsent`,payload:e},!0}},R={[w]:async({payload:e})=>await g()({path:e.endpoint,method:"POST",data:{consent:e.consent},parse:!1})},S=f.reducer,_=window.wp.url,j="linkParams",b=(0,d.createSlice)({name:j,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),C=b.getInitialState,L={selectLinkParam:(e,t,s={})=>(0,c.get)(e,`${j}.${t}`,s),selectLinkParams:e=>(0,c.get)(e,j,{})};L.selectLink=(0,d.createSelector)([L.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,_.addQueryArgs)(t,{...e,...s})));const q=b.actions,A=b.reducer,N=(0,d.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:r,description:n})=>({payload:{id:e||(0,d.nanoid)(),variant:t,size:s,title:r||"",description:n}})},removeNotification:(e,{payload:t})=>(0,c.omit)(e,t)}}),E=(N.getInitialState,N.actions,N.reducer,"pluginUrl"),O=(0,d.createSlice)({name:E,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),P=O.getInitialState,I={selectPluginUrl:e=>(0,c.get)(e,E,"")};I.selectImageLink=(0,d.createSelector)([I.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,c.trimEnd)(e,"/"),(0,c.trim)(t,"/"),(0,c.trimStart)(s,"/")].join("/")));const M=O.actions,B=O.reducer,G="loading",T="wistiaEmbedPermission",U=(0,d.createSlice)({name:T,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${T}/request`,(e=>{e.status=G})),e.addCase(`${T}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${T}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,c.get)(t,"error.code",500),message:(0,c.get)(t,"error.message","Unknown")}}))}});var z;U.getInitialState,U.actions,U.reducer;const $=(0,d.createSlice)({name:"documentTitle",initialState:(0,c.defaultTo)(null===(z=document)||void 0===z?void 0:z.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),F=($.getInitialState,$.actions,$.reducer,window.React),H=(F.forwardRef((function(e,t){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),F.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))})),(e,t)=>{try{return(0,n.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}}),V=window.yoast.propTypes;var W=s.n(V);const Y=window.ReactJSXRuntime;W().string.isRequired,F.forwardRef((function(e,t){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),F.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))}));const D=F.forwardRef((function(e,t){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),F.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));W().string.isRequired,W().string.isRequired,W().shape({src:W().string.isRequired,width:W().string,height:W().string}).isRequired,W().shape({value:W().bool.isRequired,status:W().string.isRequired,set:W().func.isRequired}).isRequired,W().string,W().string,W().string;const J=({handleRefreshClick:e,supportLink:t})=>(0,Y.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,Y.jsx)(o.Button,{onClick:e,children:(0,i.__)("Refresh this page","wordpress-seo")}),(0,Y.jsx)(o.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,i.__)("Contact support","wordpress-seo")})]});J.propTypes={handleRefreshClick:W().func.isRequired,supportLink:W().string.isRequired};const Q=({handleRefreshClick:e,supportLink:t})=>(0,Y.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,Y.jsx)(o.Button,{className:"yst-order-last",onClick:e,children:(0,i.__)("Refresh this page","wordpress-seo")}),(0,Y.jsx)(o.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,i.__)("Contact support","wordpress-seo")})]});Q.propTypes={handleRefreshClick:W().func.isRequired,supportLink:W().string.isRequired};const X=({error:e,children:t=null})=>(0,Y.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,Y.jsx)(o.Title,{children:(0,i.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,Y.jsx)("p",{children:(0,i.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,Y.jsx)(o.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,i.__)("Undefined error message.","wordpress-seo")}),(0,Y.jsx)("p",{children:(0,i.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});X.propTypes={error:W().object.isRequired,children:W().node},X.VerticalButtons=Q,X.HorizontalButtons=J;W().string,W().node.isRequired,W().node.isRequired,W().node,W().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const K=window.ReactDOM;var Z,ee,te;(ee=Z||(Z={})).Pop="POP",ee.Push="PUSH",ee.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(te||(te={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const se=["post","put","patch","delete"],re=(new Set(se),["get",...se]);new Set(re),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),F.Component,F.startTransition,new Promise((()=>{})),F.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var ne,ie,oe,ae;new Map,F.startTransition,K.flushSync,F.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(ae=ne||(ne={})).UseScrollRestoration="useScrollRestoration",ae.UseSubmit="useSubmit",ae.UseSubmitFetcher="useSubmitFetcher",ae.UseFetcher="useFetcher",ae.useViewTransitionState="useViewTransitionState",(oe=ie||(ie={})).UseFetcher="useFetcher",oe.UseFetchers="useFetchers",oe.UseScrollRestoration="useScrollRestoration",W().string.isRequired,W().string;const le=({href:e,children:t=null,...s})=>(0,Y.jsxs)(o.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,Y.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ +(0,i.__)("(Opens in a new browser tab)","wordpress-seo")})]});le.propTypes={href:W().string.isRequired,children:W().node};F.forwardRef((function(e,t){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),F.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),(0,i.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,i.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,i.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,i.__)("Optimize pages for multiple keywords with guidance","wordpress-seo"),(0,i.__)("Add product details to help your listings stand out","wordpress-seo"),(0,i.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,i.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,i.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo"),(0,i.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,i.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,i.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,i.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,i.__)("Internal links and redirect management, easy","wordpress-seo"),(0,i.__)("Access to friendly help when you need it, day or night","wordpress-seo");W().string.isRequired,W().object.isRequired,W().func.isRequired,F.forwardRef((function(e,t){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),F.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),W().string.isRequired,W().object,W().func.isRequired,W().bool.isRequired,W().string.isRequired,W().object.isRequired,W().string.isRequired,W().func.isRequired,W().bool.isRequired;const ce=F.forwardRef((function(e,t){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),F.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))}));W().bool.isRequired,W().func,W().func,W().string.isRequired,W().string.isRequired,W().string.isRequired,W().string.isRequired;window.yoast.reactHelmet;W().string.isRequired,W().shape({src:W().string.isRequired,width:W().string,height:W().string}).isRequired,W().shape({value:W().bool.isRequired,status:W().string.isRequired,set:W().func.isRequired}).isRequired,W().bool,F.forwardRef((function(e,t){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),F.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),W().bool.isRequired,W().func.isRequired,W().func,W().string;const de=({onGiveConsent:e,learnMoreLink:t,privacyPolicyLink:s,termsOfServiceLink:r,imageLink:a})=>{const{onClose:l,initialFocus:c}=(0,o.useModalContext)(),[d,u]=(0,o.useToggleState)(!1),p=(0,n.useMemo)((()=>({src:a,width:"432",height:"244"})),[a]),y=H((0,i.sprintf)(/* translators: %1$s and %2$s are a set of anchor tags and %3$s and %4$s are a set of anchor tags. */ +(0,i.__)("I approve the %1$sTerms of Service%2$s & %3$sPrivacy Policy%4$s of the Yoast AI service. This includes consenting to the collection and use of data to improve user experience.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,Y.jsx)(le,{href:r}),a2:(0,Y.jsx)(le,{href:s})}),[m,g]=(0,o.useToggleState)(!1),h=(0,n.useCallback)((async()=>{g(),await e(),g()}),[e]);return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center",children:(0,Y.jsx)("div",{className:"yst-relative yst-w-full",children:(0,Y.jsx)("img",{className:"yst-w-full yst-h-auto yst-rounded-md yst-drop-shadow-md",alt:"",loading:"lazy",decoding:"async",...p})})}),(0,Y.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,Y.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,Y.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,i.sprintf)(/* translators: %s expands to Yoast AI. */ +(0,i.__)("Grant consent for %s","wordpress-seo"),"Yoast AI")}),(0,Y.jsx)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:H((0,i.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tag; %4$s is the arrow icon. */ +(0,i.__)("Enable AI-powered SEO! Use all Yoast AI features to boost your efficiency. Just give us the green light. %1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),{a:(0,Y.jsx)(le,{href:t,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,Y.jsx)(D,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,Y.jsx)("br",{})})})]}),(0,Y.jsx)("div",{className:"yst-flex yst-w-full yst-mt-6",children:(0,Y.jsx)("hr",{className:"yst-w-full yst-text-gray-200"})}),(0,Y.jsxs)("div",{className:"yst-flex yst-items-start yst-mt-4",children:[(0,Y.jsx)("input",{type:"checkbox",id:"yst-ai-consent-checkbox",name:"yst-ai-consent-checkbox",checked:d,value:d?"true":"false",onChange:u,className:"yst-checkbox__input",ref:c}),(0,Y.jsx)("label",{htmlFor:"yst-ai-consent-checkbox",className:"yst-label yst-checkbox__label yst-text-xs yst-font-normal yst-text-slate-500",children:y})]}),(0,Y.jsx)("div",{className:"yst-w-full yst-flex yst-mt-4",children:(0,Y.jsxs)(o.Button,{as:"button",className:"yst-grow",size:"large",disabled:!d,onClick:h,children:[m&&(0,Y.jsx)(o.Spinner,{className:"yst-me-2"}),(0,i.__)("Grant consent","wordpress-seo")]})}),(0,Y.jsx)(o.Button,{as:"button",className:"yst-mt-4",variant:"tertiary",onClick:l,children:(0,i.__)("Close","wordpress-seo")})]})]})};de.propTypes={onGiveConsent:W().func.isRequired,learnMoreLink:W().string.isRequired,privacyPolicyLink:W().string.isRequired,termsOfServiceLink:W().string.isRequired,imageLink:W().string.isRequired};const ue="yoast-seo/ai-consent",pe=({onStartGenerating:t})=>{const{termsOfServiceLink:s,privacyPolicyLink:r,learnMoreLink:i,imageLink:o,endpoint:a}=(0,e.useSelect)((e=>{const t=e(ue);return{termsOfServiceLink:t.selectLink("https://yoa.st/ai-fix-assessments-terms-of-service"),privacyPolicyLink:t.selectLink("https://yoa.st/ai-fix-assessments-privacy-policy"),learnMoreLink:t.selectLink("https://yoa.st/ai-fix-assessments-consent-learn-more"),imageLink:t.selectImageLink("ai-consent.png"),endpoint:t.selectAiGeneratorConsentEndpoint()}}),[]),{storeAiGeneratorConsent:l}=(0,e.useDispatch)(ue),c=(0,n.useCallback)((()=>{l(!0,a),t()}),[l,t]);return(0,Y.jsx)(de,{imageLink:o,onGiveConsent:c,learnMoreLink:i,termsOfServiceLink:s,privacyPolicyLink:r})},ye=({onClose:t})=>{const{storeAiGeneratorConsent:s}=(0,e.useDispatch)(ue),r=(0,e.useSelect)((e=>e(ue).selectAiGeneratorConsentEndpoint()),[]),[a,l]=(0,n.useState)(!1),[c,d]=(0,n.useState)(!1),u=(0,n.useCallback)((async()=>{if(d(!1),l(!0),!1===(await s(!1,r)).consent)return d(!0),void l(!1);t(),l(!1)}),[s,l,t,r]);return(0,Y.jsxs)("div",{className:"yst-flex yst-flex-row",children:[(0,Y.jsx)("span",{className:"yst-shrink-0 yst-h-12 yst-w-12 yst-rounded-full yst-flex yst-justify-center yst-items-center yst-mb-3 yst-me-5 yst-bg-red-100",children:(0,Y.jsx)(ce,{className:"yst-w-6 yst-h-6 yst-align-center yst-text-red-600"})}),(0,Y.jsxs)("div",{children:[(0,Y.jsx)(o.Modal.Title,{className:"yst-font-semibold",as:"h3",size:"4",children:(0,i.__)("Revoke AI consent","wordpress-seo")}),c&&(0,Y.jsx)(o.Alert,{className:"yst-mt-2",variant:"error",children:(0,i.__)("Something went wrong, please try again later.","wordpress-seo")}),(0,Y.jsx)("p",{className:"yst-mt-2 yst-text-slate-600",children:(0,i.__)("By revoking your consent, you will no longer have access to Yoast AI features. Are you sure you want to revoke your consent?","wordpress-seo")}),(0,Y.jsxs)("footer",{className:"yst-mt-6 sm:yst-flex sm:yst-flex-row-reverse",children:[(0,Y.jsx)(o.Button,{variant:"error",isLoading:a,className:"yst-w-full sm:yst-w-auto yst-revoke-button",onClick:u,children:(0,i.__)("Yes, revoke consent","wordpress-seo")}),(0,Y.jsx)(o.Button,{variant:"secondary",className:"yst-w-full sm:yst-w-auto yst-me-3",onClick:t,children:(0,i.__)("Close","wordpress-seo")})]})]})]})};r()((()=>{((t={})=>{(0,e.register)((t=>(0,e.createReduxStore)(ue,{actions:{...k,...M,...q},selectors:{...x,...I,...L},initialState:(0,c.merge)({},{[h]:v(),[E]:P(),[j]:C()},t),reducer:(0,e.combineReducers)({[h]:S,[E]:B,[j]:A}),controls:{...R}}))(t))})({[h]:{hasConsent:"1"===(0,c.get)(window,"wpseoAiConsent.hasConsent",!1)},[E]:(0,c.get)(window,"wpseoAiConsent.pluginUrl",""),[j]:(0,c.get)(window,"wpseoAiConsent.linkParams",{})});const t=()=>{const t=(0,e.useSelect)((e=>e(ue).selectHasAiGeneratorConsent()),[]),[s,,,r,a]=(0,o.useToggleState)(!1),c=(0,n.useRef)(null),d=(0,n.useCallback)((e=>{e.preventDefault(),r()}),[r]);return(0,Y.jsxs)(n.Fragment,{children:[(0,Y.jsx)(o.Modal,{className:"yst-introduction-modal",isOpen:s,onClose:a,initialFocus:c,children:(0,Y.jsxs)(o.Modal.Panel,{className:l()(!t&&"yst-p-0 yst-max-w-lg yst-rounded-3xl",t&&"yst-max-w-xl yst-rounded-lg"),children:[!t&&(0,Y.jsx)(pe,{onStartGenerating:a,focusElementRef:c}),t&&(0,Y.jsx)(ye,{onClose:a})]})}),(0,Y.jsx)("button",{className:"button",id:"ai-generator-consent-button",onClick:d,children:t?(0,i.__)("Revoke consent","wordpress-seo"):(0,i.__)("Grant consent","wordpress-seo")})]})},s=document.getElementById("ai-generator-consent");s&&(0,n.render)((0,Y.jsx)(t,{}),s)}))})()})(); \ No newline at end of file @@ -1,6 +1,5 @@ (()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var o=typeof s;if("string"===o||"number"===o)e.push(s);else if(Array.isArray(s)){if(s.length){var a=i.apply(null,s);a&&e.push(a)}}else if("object"===o){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var n in s)r.call(s,n)&&s[n]&&e.push(n)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(s=function(){return i}.apply(t,[]))||(e.exports=s)}()}},t={};function s(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,s),o.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.components,t=window.wp.data,r=window.wp.hooks,i=window.yoast.uiLibrary,o=window.lodash,a=window.yoast.reduxJsToolkit,n="adminUrl",l=(0,a.createSlice)({name:n,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),c=(l.getInitialState,{selectAdminUrl:e=>(0,o.get)(e,n,"")});c.selectAdminLink=(0,a.createSelector)([c.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),l.actions,l.reducer;const d=window.wp.apiFetch;var u=s.n(d);const p="hasConsent",m=`${p}/storeConsent`,h=(0,a.createSlice)({name:p,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),g=h.getInitialState,y={selectHasAiGeneratorConsent:e=>(0,o.get)(e,[p,"hasConsent"],h.getInitialState().hasConsent),selectAiGeneratorConsentEndpoint:e=>(0,o.get)(e,[p,"endpoint"],h.getInitialState().endpoint)},x={...h.actions,storeAiGeneratorConsent:function*(e,t){try{yield{type:m,payload:{consent:e,endpoint:t}}}catch(e){return!1}return yield{type:`${p}/giveAiGeneratorConsent`,payload:e},!0}},w={[m]:async({payload:e})=>await u()({path:e.endpoint,method:"POST",data:{consent:e.consent},parse:!1})},f=h.reducer,v=window.wp.url,b="linkParams",S=(0,a.createSlice)({name:b,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),k=(S.getInitialState,{selectLinkParam:(e,t,s={})=>(0,o.get)(e,`${b}.${t}`,s),selectLinkParams:e=>(0,o.get)(e,b,{})});k.selectLink=(0,a.createSelector)([k.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,v.addQueryArgs)(t,{...e,...s}))),S.actions,S.reducer;const _=(0,a.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:r,description:i})=>({payload:{id:e||(0,a.nanoid)(),variant:t,size:s,title:r||"",description:i}})},removeNotification:(e,{payload:t})=>(0,o.omit)(e,t)}}),j=(_.getInitialState,_.actions,_.reducer,"pluginUrl"),C=(0,a.createSlice)({name:j,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),E=(C.getInitialState,{selectPluginUrl:e=>(0,o.get)(e,j,"")});E.selectImageLink=(0,a.createSelector)([E.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,o.trimEnd)(e,"/"),(0,o.trim)(t,"/"),(0,o.trimStart)(s,"/")].join("/"))),C.actions,C.reducer;const R="request",I="success",L="error",T="idle",P="loading",M="success",N="error",A="showPlay",$="askPermission",F="isPlaying",q="wistiaEmbedPermission",O=(0,a.createSlice)({name:q,initialState:{value:!1,status:T,error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${q}/${R}`,(e=>{e.status=P})),e.addCase(`${q}/${I}`,((e,{payload:t})=>{e.status=M,e.value=Boolean(t&&t.value)})),e.addCase(`${q}/${L}`,((e,{payload:t})=>{e.status=N,e.value=Boolean(t&&t.value),e.error={code:(0,o.get)(t,"error.code",500),message:(0,o.get)(t,"error.message","Unknown")}}))}});var U;O.getInitialState,O.actions,O.reducer;const W=(0,a.createSlice)({name:"documentTitle",initialState:(0,o.defaultTo)(null===(U=document)||void 0===U?void 0:U.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),B=(W.getInitialState,W.actions,W.reducer,window.React);var G=s.n(B);const D=B.forwardRef((function(e,t){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),B.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))})),H=window.wp.element,z=window.wp.i18n,V=window.yoast.aiFrontend,Y=window.yoast.propTypes;var K=s.n(Y);const Z="yoast-seo/ai-generator",X="yoast-seo/editor",J="google",Q="social",ee="twitter",te="title",se="description",re="post",ie="term",oe={post:"title",term:"term_title"},ae=(0,o.mapValues)(oe,(e=>`%%${e}%%`)),ne={mobile:"mobile",desktop:"desktop"},le={idle:"idle",loading:"loading",success:"success",error:"error"},ce="success",de="error",ue="abort",pe=window.yoast.analysis,me=(window.wp.sanitize,window.yoast.helpers),he=(e,t)=>{try{return(0,H.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},ge=window.ReactJSXRuntime,{stripHTMLTags:ye}=me.strings;let xe,we=!1;const fe=["_formal","_informal","_ao90"],ve=e=>{for(const t of fe)if(e.endsWith(t))return e.slice(0,-t.length);return e},be="\\–\\-\\(\\)_\\[\\]’‘“”〝〞〟‟„\"'.?!:;,¿¡«»‹›—×+&۔؟،؛。。!‼?⁇⁉⁈‥…・ー、〃〄〆〇〈〉《》「」『』【】〒〓〔〕〖〗〘〙〚〛〜〝〞〟〠〶〼〽{}|~⦅⦆「」、[]・¥$%@&'()*/:;<>\\\<>";be.split(""),new RegExp("^["+be+"]+"),new RegExp("["+be+"]+$");const Se=new RegExp("["+be+"#$%&*+/=@^`{|}~ -¿–-⁊ -₠-⃀]","g"),ke=e=>0===e.replace(Se,"").trim().length,_e=e=>{const t={...e};return""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(t.value="%%"+e.name+"%%"),t.badge=`<badge>${e.label}</badge>`,t},je=()=>{const e=(0,t.useSelect)((e=>e(X).getReplaceVars()),[]),s=(0,H.useMemo)((()=>e.map(_e)),[e]);return(0,H.useCallback)(((e,{key:t="value",overrides:r={},applyPluggable:i=!0,editType:a=te,contentType:n=re}={})=>{for(const i of s)e=e.replace(new RegExp("%%"+(0,o.escapeRegExp)(i.name)+"%%","g"),(0,o.get)(r,i.name,i[t]));return n===ie&&(e=e.replace(" Archives","")),i?((e,t=te)=>{const s=function(e){const t=(0,o.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,o.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=(0,o.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],o.identity);return{url:e.url,title:ye(t(e.title)),description:ye(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?ye(t(e.filteredSEOTitle)):""}}(e);const s=t._applyModifications.bind(t);return{url:e.url,title:ye(s("data_page_title",e.title)),description:ye(s("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?ye(s("data_page_title",e.filteredSEOTitle)):""}}({title:"",description:"",[t]:pe.languageProcessing.stripSpaces(e)});return(0,o.get)(s,t,e)})(e,a):e}),[s])},Ce={editType:te,previewType:J,postType:"post",contentType:re},Ee=(0,H.createContext)(Ce),Re=Ee.Provider,Ie=()=>(0,H.useContext)(Ee),Le=window.yoast.externals.contexts,Te=()=>(0,H.useContext)(Le.LocationContext),Pe=e=>{const t=(0,H.useRef)(null);return(0,H.useCallback)((s=>{(0,o.attempt)((()=>t.current&&t.current.disconnect())),null!==s&&(t.current=new ResizeObserver((t=>{(0,o.forEach)(t,(t=>e(t)))})),t.current.observe(s))}),[e])},Me=(0,a.createSlice)({name:"suggestions",initialState:{status:le.loading,error:{code:200,message:""},entities:[],selected:""},reducers:{setLoading:e=>{e.status=le.loading},setSuccess:(e,{payload:t})=>{e.status=le.success,e.selected=t[0],e.entities.push(...t)},setError:(e,{payload:t})=>{e.status=le.error,e.error=t},setSelected:(e,{payload:t})=>{e.selected=t}}}),Ne=e=>{switch(e){case Q:return"Facebook";case ee:return"Twitter";default:return"Google"}},Ae=window.yoast.searchMetadataPreviews,$e="usageCount",Fe="fetchUsageCount",qe=`${Fe}/${I}`,Oe=`${Fe}/${L}`,Ue={errorCode:null,errorIdentifier:null,errorMessage:null},We=(0,a.createSlice)({name:$e,initialState:{status:T,count:0,limit:10,endpoint:"yoast/v1/ai_generator/get_usage",error:Ue},reducers:{addUsageCount:(e,{payload:t=1})=>{e.count+=t},setUsageCount:(e,{payload:t})=>{e.count=t},setUsageCountEndpoint:(e,{payload:t})=>{e.endpoint=t},setUsageCountLimit:(e,{payload:t})=>{e.limit=t}},extraReducers:e=>{e.addCase(`${Fe}/${R}`,(e=>{e.status=P,e.error=Ue})),e.addCase(qe,((e,{payload:t})=>{e.status=M,e.count=t.count,e.limit=t.limit,e.error=Ue})),e.addCase(`${Fe}/${L}`,((e,{payload:t})=>{e.status=N,e.error={errorCode:502,...t}}))}}),Be=We.getInitialState,Ge={selectUsageCountStatus:e=>(0,o.get)(e,[$e,"status"],We.getInitialState()),selectUsageCount:e=>(0,o.get)(e,[$e,"count"],We.getInitialState().count),selectUsageCountLimit:e=>(0,o.get)(e,[$e,"limit"],We.getInitialState().limit),selectUsageCountEndpoint:e=>(0,o.get)(e,[$e,"endpoint"],We.getInitialState().endpoint),selectUsageCountError:e=>(0,o.get)(e,[$e,"error"],We.getInitialState().error)};Ge.selectUsageCountRemaining=(0,a.createSelector)([Ge.selectUsageCount,Ge.selectUsageCountLimit],((e,t)=>Math.max(t-e,0))),Ge.isUsageCountLimitReached=(0,a.createSelector)([Ge.selectUsageCount,Ge.selectUsageCountLimit,Ge.selectUsageCountError],((e,t,s)=>429===s.errorCode||e>=t));const De={...We.actions,fetchUsageCount:function*({endpoint:e,isWooProductEntity:t}){yield{type:`${Fe}/${R}`};try{const s=(e=>{const t=(0,o.get)(e,"totalUsed.license",null),s=(0,o.get)(e,"totalUsed.limit",null);if(!(0,o.isNumber)(t)||t<0)throw new Error("Invalid usage count: must be a number of zero or higher.");if(!(0,o.isNumber)(s)||s<-1||0===s)throw new Error("Invalid usage count limit: must be a number of -1 or higher than 1");return{count:t,limit:s}})(yield{type:Fe,payload:{endpoint:e,isWooProductEntity:t}});return{type:`${Fe}/${I}`,payload:s}}catch(e){return{type:`${Fe}/${L}`,payload:e}}}},He={[Fe]:async({payload:e})=>u()({method:"POST",path:e.endpoint,data:{is_woo_product_entity:e.isWooProductEntity}})},ze=We.reducer;B.forwardRef((function(e,t){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),B.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));K().string.isRequired;const Ve=B.forwardRef((function(e,t){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),B.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),Ye=B.forwardRef((function(e,t){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),B.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));K().string.isRequired,K().string.isRequired,K().shape({src:K().string.isRequired,width:K().string,height:K().string}).isRequired,K().shape({value:K().bool.isRequired,status:K().string.isRequired,set:K().func.isRequired}).isRequired,K().string,K().string,K().string;const Ke=({handleRefreshClick:e,supportLink:t})=>(0,ge.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,ge.jsx)(i.Button,{onClick:e,children:(0,z.__)("Refresh this page","wordpress-seo")}),(0,ge.jsx)(i.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,z.__)("Contact support","wordpress-seo")})]});Ke.propTypes={handleRefreshClick:K().func.isRequired,supportLink:K().string.isRequired};const Ze=({handleRefreshClick:e,supportLink:t})=>(0,ge.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,ge.jsx)(i.Button,{className:"yst-order-last",onClick:e,children:(0,z.__)("Refresh this page","wordpress-seo")}),(0,ge.jsx)(i.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,z.__)("Contact support","wordpress-seo")})]});Ze.propTypes={handleRefreshClick:K().func.isRequired,supportLink:K().string.isRequired};const Xe=({error:e,children:t=null})=>(0,ge.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,ge.jsx)(i.Title,{children:(0,z.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,ge.jsx)("p",{children:(0,z.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,ge.jsx)(i.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,z.__)("Undefined error message.","wordpress-seo")}),(0,ge.jsx)("p",{children:(0,z.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});Xe.propTypes={error:K().object.isRequired,children:K().node},Xe.VerticalButtons=Ze,Xe.HorizontalButtons=Ke;K().string,K().node.isRequired,K().node.isRequired,K().node,K().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const Je=window.ReactDOM;var Qe,et,tt;(et=Qe||(Qe={})).Pop="POP",et.Push="PUSH",et.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(tt||(tt={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const st=["post","put","patch","delete"],rt=(new Set(st),["get",...st]);new Set(rt),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),B.Component,B.startTransition,new Promise((()=>{})),B.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var it,ot,at,nt;new Map,B.startTransition,Je.flushSync,B.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(nt=it||(it={})).UseScrollRestoration="useScrollRestoration",nt.UseSubmit="useSubmit",nt.UseSubmitFetcher="useSubmitFetcher",nt.UseFetcher="useFetcher",nt.useViewTransitionState="useViewTransitionState",(at=ot||(ot={})).UseFetcher="useFetcher",at.UseFetchers="useFetchers",at.UseScrollRestoration="useScrollRestoration",K().string.isRequired,K().string;const lt=({href:e,children:t=null,...s})=>(0,ge.jsxs)(i.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,ge.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,z.__)("(Opens in a new browser tab)","wordpress-seo")})]});lt.propTypes={href:K().string.isRequired,children:K().node};B.forwardRef((function(e,t){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),B.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),(0,z.__)("AI tools included","wordpress-seo"),(0,z.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ -(0,z.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,z.__)("24/7 support","wordpress-seo"),(0,z.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,z.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,z.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,z.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,z.__)("Internal links and redirect management, easy","wordpress-seo"),(0,z.__)("Access to friendly help when you need it, day or night","wordpress-seo");B.forwardRef((function(e,t){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),B.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}));var ct=s(4184),dt=s.n(ct);K().string.isRequired,K().object.isRequired,K().func.isRequired,B.forwardRef((function(e,t){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),B.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),K().string.isRequired,K().object,K().func.isRequired,K().bool.isRequired,K().string.isRequired,K().object.isRequired,K().string.isRequired,K().func.isRequired,K().bool.isRequired,B.forwardRef((function(e,t){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),B.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),K().bool.isRequired,K().func,K().func,K().string.isRequired,K().string.isRequired,K().string.isRequired,K().string.isRequired;const ut=window.yoast.reactHelmet,pt=({videoId:e,thumbnail:t,wistiaEmbedPermission:s,className:r=""})=>{const[o,a]=(0,H.useState)(s.value?F:A),n=(0,H.useCallback)((()=>a(F)),[a]),l=(0,H.useCallback)((()=>{s.value?n():a($)}),[s.value,n,a]),c=(0,H.useCallback)((()=>a(A)),[a]),d=(0,H.useCallback)((()=>{s.set(!0),n()}),[s.set,n]);return(0,ge.jsxs)(ge.Fragment,{children:[s.value&&(0,ge.jsx)(ut.Helmet,{children:(0,ge.jsx)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})}),(0,ge.jsxs)("div",{className:dt()("yst-relative yst-w-full yst-h-0 yst-pt-[47.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white",r),children:[o===A&&(0,ge.jsx)("button",{type:"button",className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:l,children:(0,ge.jsx)("img",{className:"yst-w-full yst-h-auto yst-object-contain",alt:"",loading:"lazy",decoding:"async",...t})}),o===$&&(0,ge.jsxs)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white",children:[(0,ge.jsxs)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center",children:[s.status===P&&(0,ge.jsx)(i.Spinner,{}),s.status!==P&&(0,z.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */ +(0,z.__)("(Opens in a new browser tab)","wordpress-seo")})]});lt.propTypes={href:K().string.isRequired,children:K().node};B.forwardRef((function(e,t){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),B.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),(0,z.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,z.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,z.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,z.__)("Optimize pages for multiple keywords with guidance","wordpress-seo"),(0,z.__)("Add product details to help your listings stand out","wordpress-seo"),(0,z.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,z.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,z.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo"),(0,z.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,z.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,z.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,z.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,z.__)("Internal links and redirect management, easy","wordpress-seo"),(0,z.__)("Access to friendly help when you need it, day or night","wordpress-seo");var ct=s(4184),dt=s.n(ct);K().string.isRequired,K().object.isRequired,K().func.isRequired,B.forwardRef((function(e,t){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),B.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),K().string.isRequired,K().object,K().func.isRequired,K().bool.isRequired,K().string.isRequired,K().object.isRequired,K().string.isRequired,K().func.isRequired,K().bool.isRequired,B.forwardRef((function(e,t){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),B.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),K().bool.isRequired,K().func,K().func,K().string.isRequired,K().string.isRequired,K().string.isRequired,K().string.isRequired;const ut=window.yoast.reactHelmet,pt=({videoId:e,thumbnail:t,wistiaEmbedPermission:s,className:r=""})=>{const[o,a]=(0,H.useState)(s.value?F:A),n=(0,H.useCallback)((()=>a(F)),[a]),l=(0,H.useCallback)((()=>{s.value?n():a($)}),[s.value,n,a]),c=(0,H.useCallback)((()=>a(A)),[a]),d=(0,H.useCallback)((()=>{s.set(!0),n()}),[s.set,n]);return(0,ge.jsxs)(ge.Fragment,{children:[s.value&&(0,ge.jsx)(ut.Helmet,{children:(0,ge.jsx)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})}),(0,ge.jsxs)("div",{className:dt()("yst-relative yst-w-full yst-h-0 yst-pt-[47.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white",r),children:[o===A&&(0,ge.jsx)("button",{type:"button",className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:l,children:(0,ge.jsx)("img",{className:"yst-w-full yst-h-auto yst-object-contain",alt:"",loading:"lazy",decoding:"async",...t})}),o===$&&(0,ge.jsxs)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white",children:[(0,ge.jsxs)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center",children:[s.status===P&&(0,ge.jsx)(i.Spinner,{}),s.status!==P&&(0,z.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */ (0,z.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo"),"Yoast SEO","Wistia")]}),(0,ge.jsxs)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4",children:[(0,ge.jsx)(i.Button,{type:"button",variant:"secondary",onClick:c,disabled:s.status===P,children:(0,z.__)("Deny","wordpress-seo")}),(0,ge.jsx)(i.Button,{type:"button",variant:"primary",onClick:d,disabled:s.status===P,children:(0,z.__)("Allow","wordpress-seo")})]})]}),s.value&&o===F&&(0,ge.jsxs)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-right-0",children:[null===e&&(0,ge.jsx)(i.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,ge.jsx)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`})]})]})]})};pt.propTypes={videoId:K().string.isRequired,thumbnail:K().shape({src:K().string.isRequired,width:K().string,height:K().string}).isRequired,wistiaEmbedPermission:K().shape({value:K().bool.isRequired,status:K().string.isRequired,set:K().func.isRequired}).isRequired,hasPadding:K().bool},B.forwardRef((function(e,t){return B.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),B.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),K().bool.isRequired,K().func.isRequired,K().func,K().string;const mt=({onGiveConsent:e,learnMoreLink:t,privacyPolicyLink:s,termsOfServiceLink:r,imageLink:o})=>{const{onClose:a,initialFocus:n}=(0,i.useModalContext)(),[l,c]=(0,i.useToggleState)(!1),d=(0,H.useMemo)((()=>({src:o,width:"432",height:"244"})),[o]),u=he((0,z.sprintf)(/* translators: %1$s and %2$s are a set of anchor tags and %3$s and %4$s are a set of anchor tags. */ (0,z.__)("I approve the %1$sTerms of Service%2$s & %3$sPrivacy Policy%4$s of the Yoast AI service. This includes consenting to the collection and use of data to improve user experience.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,ge.jsx)(lt,{href:r}),a2:(0,ge.jsx)(lt,{href:s})}),[p,m]=(0,i.useToggleState)(!1),h=(0,H.useCallback)((async()=>{m(),await e(),m()}),[e]);return(0,ge.jsxs)(ge.Fragment,{children:[(0,ge.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center",children:(0,ge.jsx)("div",{className:"yst-relative yst-w-full",children:(0,ge.jsx)("img",{className:"yst-w-full yst-h-auto yst-rounded-md yst-drop-shadow-md",alt:"",loading:"lazy",decoding:"async",...d})})}),(0,ge.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,ge.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,ge.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,z.sprintf)(/* translators: %s expands to Yoast AI. */ (0,z.__)("Grant consent for %s","wordpress-seo"),"Yoast AI")}),(0,ge.jsx)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:he((0,z.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tag; %4$s is the arrow icon. */ @@ -15,8 +15,7 @@ fill: ${e=>e.seoScoreColor}; display: ${e=>e.isKeywordAnalysisActive?"inline":"none"}; } -`,w=({readabilityScoreColor:e="#000000",isContentAnalysisActive:t=!1,seoScoreColor:s="#000000",isKeywordAnalysisActive:i=!1,size:o=20,color:r="#000001",...n})=>(0,y.jsxs)(f,{readabilityScoreColor:e,isContentAnalysisActive:t,seoScoreColor:s,isKeywordAnalysisActive:i,size:o,color:r,...n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 646.66 456.27",children:[(0,y.jsx)("path",{d:"M73,405.26a68.53,68.53,0,0,1-12.82-4c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92q-2.64-2-5.08-4.19a68.26,68.26,0,0,1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24q-1.84-2.73-3.44-5.64a68.26,68.26,0,0,1-8.29-32.55V142.13a68.29,68.29,0,0,1,8.29-32.55,58.6,58.6,0,0,1,3.44-5.64,57.53,57.53,0,0,1,4-5.27A69.64,69.64,0,0,1,48.56,85.42,56.06,56.06,0,0,1,54.2,82,67.78,67.78,0,0,1,73,75.09,69.79,69.79,0,0,1,86.75,73.7H256.41L263,55.39H86.75A86.84,86.84,0,0,0,0,142.13V338.22A86.83,86.83,0,0,0,86.75,425H98.07V406.65H86.75A68.31,68.31,0,0,1,73,405.26ZM368.55,60.85l-1.41-.53L360.73,77.5l1.41.53a68.58,68.58,0,0,1,8.66,4,58.65,58.65,0,0,1,5.65,3.43A69.49,69.49,0,0,1,391,98.67c1.4,1.68,2.72,3.46,3.95,5.27s2.39,3.72,3.44,5.64a68.32,68.32,0,0,1,8.29,32.55V406.65H233.55l-.44.76c-3.07,5.37-6.26,10.48-9.49,15.19L222,425H425V142.13A87.19,87.19,0,0,0,368.55,60.85Z",fill:"#000001"}),(0,y.jsx)("path",{d:"M303.66,0l-96.8,268.87-47.58-149H101.1l72.72,186.78a73.61,73.61,0,0,1,0,53.73c-7.07,18.07-19.63,39.63-54.36,46l-1.56.29v49.57l2-.08c29-1.14,51.57-10.72,70.89-30.14,19.69-19.79,36.55-50.52,53-96.68L366.68,0Z",fill:"#000001"}),(0,y.jsx)("circle",{className:"yoast-icon-readability-score",cx:"561.26",cy:"142.43",r:"85.04",fill:"#000001",stroke:"#181716",strokeMiterlimit:"10",strokeWidth:"0.72"}),(0,y.jsx)("circle",{className:"yoast-icon-seo-score",cx:"561.26",cy:"341.96",r:"85.04",fill:"#000001",stroke:"#181716",strokeMiterlimit:"10",strokeWidth:"0.72"})]});w.propTypes={readabilityScoreColor:h().string,isContentAnalysisActive:h().bool,seoScoreColor:h().string,isKeywordAnalysisActive:h().bool,size:h().number,color:h().string};const b=w,x=window.wp.components,k=window.yoast.uiLibrary;function v(e){return void 0===e.length?e:(0,d.flatten)(e).sort(((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority))}const _=window.React;var j=s.n(_);_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));const S=(e,t)=>{try{return(0,o.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}};h().string.isRequired;const T=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),R=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));h().string.isRequired,h().string.isRequired,h().shape({src:h().string.isRequired,width:h().string,height:h().string}).isRequired,h().shape({value:h().bool.isRequired,status:h().string.isRequired,set:h().func.isRequired}).isRequired,h().string,h().string,h().string;const C=({handleRefreshClick:e,supportLink:t})=>(0,y.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,y.jsx)(k.Button,{onClick:e,children:(0,r.__)("Refresh this page","wordpress-seo")}),(0,y.jsx)(k.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,r.__)("Contact support","wordpress-seo")})]});C.propTypes={handleRefreshClick:h().func.isRequired,supportLink:h().string.isRequired};const E=({handleRefreshClick:e,supportLink:t})=>(0,y.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,y.jsx)(k.Button,{className:"yst-order-last",onClick:e,children:(0,r.__)("Refresh this page","wordpress-seo")}),(0,y.jsx)(k.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,r.__)("Contact support","wordpress-seo")})]});E.propTypes={handleRefreshClick:h().func.isRequired,supportLink:h().string.isRequired};const I=({error:e,children:t=null})=>(0,y.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,y.jsx)(k.Title,{children:(0,r.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,y.jsx)("p",{children:(0,r.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,y.jsx)(k.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,r.__)("Undefined error message.","wordpress-seo")}),(0,y.jsx)("p",{children:(0,r.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});I.propTypes={error:h().object.isRequired,children:h().node},I.VerticalButtons=E,I.HorizontalButtons=C;h().string,h().node.isRequired,h().node.isRequired,h().node,h().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const L=window.ReactDOM;var A,F,P;(F=A||(A={})).Pop="POP",F.Push="PUSH",F.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(P||(P={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const q=["post","put","patch","delete"],M=(new Set(q),["get",...q]);new Set(M),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),_.Component,_.startTransition,new Promise((()=>{})),_.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var O,N,D,U;new Map,_.startTransition,L.flushSync,_.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(U=O||(O={})).UseScrollRestoration="useScrollRestoration",U.UseSubmit="useSubmit",U.UseSubmitFetcher="useSubmitFetcher",U.UseFetcher="useFetcher",U.useViewTransitionState="useViewTransitionState",(D=N||(N={})).UseFetcher="useFetcher",D.UseFetchers="useFetchers",D.UseScrollRestoration="useScrollRestoration",h().string.isRequired,h().string;h().string.isRequired,h().node;_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),(0,r.__)("AI tools included","wordpress-seo"),(0,r.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ -(0,r.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,r.__)("24/7 support","wordpress-seo"),(0,r.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,r.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,r.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,r.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,r.__)("Internal links and redirect management, easy","wordpress-seo"),(0,r.__)("Access to friendly help when you need it, day or night","wordpress-seo");_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}));var W=s(4184),$=s.n(W);h().string.isRequired,h().object.isRequired,h().func.isRequired;const B=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}));var K;function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},H.apply(this,arguments)}const z=e=>_.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),K||(K=_.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));h().string.isRequired,h().object,h().func.isRequired,h().bool.isRequired,h().string.isRequired,h().object.isRequired,h().string.isRequired,h().func.isRequired,h().bool.isRequired,_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),h().bool.isRequired,h().func,h().func,h().string.isRequired,h().string.isRequired,h().string.isRequired,h().string.isRequired;window.yoast.reactHelmet;h().string.isRequired,h().shape({src:h().string.isRequired,width:h().string,height:h().string}).isRequired,h().shape({value:h().bool.isRequired,status:h().string.isRequired,set:h().func.isRequired}).isRequired,h().bool,_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),h().bool.isRequired,h().func.isRequired,h().func,h().string,h().func.isRequired,h().string.isRequired,h().string.isRequired,h().string.isRequired,h().string.isRequired;const Y=window.yoast.componentsNew,V=window.yoast.styleGuide,G=window.yoast.analysis;function Z(e){switch(e){case"loading":return{icon:"loading-spinner",color:V.colors.$color_green_medium_light};case"not-set":return{icon:"seo-score-none",color:V.colors.$color_score_icon};case"noindex":return{icon:"seo-score-none",color:V.colors.$color_noindex};case"good":return{icon:"seo-score-good",color:V.colors.$color_green_medium};case"ok":return{icon:"seo-score-ok",color:V.colors.$color_ok};default:return{icon:"seo-score-bad",color:V.colors.$color_red}}}function X({target:e,children:t}){let s=e;return"string"==typeof e&&(s=document.getElementById(e)),s?(0,o.createPortal)(t,s):null}X.propTypes={target:h().oneOfType([h().string,h().object]).isRequired,children:h().node.isRequired};const Q=({target:e,scoreIndicator:t})=>(0,y.jsx)(X,{target:e,children:(0,y.jsx)(Y.SvgIcon,{...Z(t)})});Q.propTypes={target:h().string.isRequired,scoreIndicator:h().string.isRequired};const J=Q,ee=({error:e})=>{const s=(0,o.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),i=(0,t.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/metabox-error-support")),[]),r=(0,t.useSelect)((e=>e("yoast-seo/editor").getPreference("isRtl",!1)),[]);return(0,o.useEffect)((()=>{document.querySelectorAll('[id^="wpseo-meta-tab-"]').forEach((e=>{!function(e){const t=document.querySelector(`#${e}`);null!==t&&(t.style.opacity="0.5",t.style.pointerEvents="none",t.setAttribute("aria-disabled","true"),t.classList.contains("yoast-active-tab")&&t.classList.remove("yoast-active-tab"))}(e.id)}))}),[]),(0,y.jsx)(k.Root,{context:{isRtl:r},children:(0,y.jsxs)(I,{error:e,children:[(0,y.jsx)(I.HorizontalButtons,{supportLink:i,handleRefreshClick:s}),(0,y.jsx)(J,{target:"wpseo-seo-score-icon",scoreIndicator:"not-set"}),(0,y.jsx)(J,{target:"wpseo-readability-score-icon",scoreIndicator:"not-set"}),(0,y.jsx)(J,{target:"wpseo-inclusive-language-score-icon",scoreIndicator:"not-set"})]})})};ee.propTypes={error:h().object.isRequired};const te=({theme:e,location:t,children:s})=>(0,y.jsx)(l.LocationProvider,{value:t,children:(0,y.jsx)(g.ThemeProvider,{theme:e,children:s})});te.propTypes={theme:h().object.isRequired,location:h().oneOf(["sidebar","metabox","modal"]).isRequired,children:h().node.isRequired};const se=te;function ie({theme:e}){return(0,y.jsx)(se,{theme:e,location:"metabox",children:(0,y.jsx)(k.ErrorBoundary,{FallbackComponent:ee,children:(0,y.jsx)(x.Slot,{name:"YoastMetabox",children:e=>v(e)})})})}const oe=window.wp.compose,re=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{d:"M2 11a1 1 0 011-1h2a1 1 0 011 1v5a1 1 0 01-1 1H3a1 1 0 01-1-1v-5zM8 7a1 1 0 011-1h2a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1V7zM14 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1h-2a1 1 0 01-1-1V4z"}))})),ne=(e=null)=>(0,_.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]),ae=({className:e="",...t})=>(0,y.jsx)("span",{className:$()("yst-grow yst-overflow-hidden yst-overflow-ellipsis yst-whitespace-nowrap yst-font-wp","yst-text-[#555] yst-text-base yst-leading-[normal] yst-subpixel-antialiased yst-text-start",e),...t});ae.displayName="MetaboxButton.Text",ae.propTypes={className:h().string};const le=({className:e="",...t})=>(0,y.jsx)("button",{type:"button",className:$()("yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pe-4 yst-ps-6 yst-space-x-2 rtl:yst-space-x-reverse","yst-border-t yst-border-t-[rgb(0,0,0,0.2)] yst-rounded-none yst-transition-all hover:yst-bg-[#f0f0f0]","focus:yst-outline focus:yst-outline-[1px] focus:yst-outline-[color:#0066cd] focus:-yst-outline-offset-1 focus:yst-shadow-[0_0_3px_rgba(8,74,103,0.8)]",e),...t});le.propTypes={className:h().string},le.Text=ae;const ce=window.yoast.helpers,de=m().div` +`,w=({readabilityScoreColor:e="#000000",isContentAnalysisActive:t=!1,seoScoreColor:s="#000000",isKeywordAnalysisActive:i=!1,size:o=20,color:r="#000001",...n})=>(0,y.jsxs)(f,{readabilityScoreColor:e,isContentAnalysisActive:t,seoScoreColor:s,isKeywordAnalysisActive:i,size:o,color:r,...n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 646.66 456.27",children:[(0,y.jsx)("path",{d:"M73,405.26a68.53,68.53,0,0,1-12.82-4c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92q-2.64-2-5.08-4.19a68.26,68.26,0,0,1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24q-1.84-2.73-3.44-5.64a68.26,68.26,0,0,1-8.29-32.55V142.13a68.29,68.29,0,0,1,8.29-32.55,58.6,58.6,0,0,1,3.44-5.64,57.53,57.53,0,0,1,4-5.27A69.64,69.64,0,0,1,48.56,85.42,56.06,56.06,0,0,1,54.2,82,67.78,67.78,0,0,1,73,75.09,69.79,69.79,0,0,1,86.75,73.7H256.41L263,55.39H86.75A86.84,86.84,0,0,0,0,142.13V338.22A86.83,86.83,0,0,0,86.75,425H98.07V406.65H86.75A68.31,68.31,0,0,1,73,405.26ZM368.55,60.85l-1.41-.53L360.73,77.5l1.41.53a68.58,68.58,0,0,1,8.66,4,58.65,58.65,0,0,1,5.65,3.43A69.49,69.49,0,0,1,391,98.67c1.4,1.68,2.72,3.46,3.95,5.27s2.39,3.72,3.44,5.64a68.32,68.32,0,0,1,8.29,32.55V406.65H233.55l-.44.76c-3.07,5.37-6.26,10.48-9.49,15.19L222,425H425V142.13A87.19,87.19,0,0,0,368.55,60.85Z",fill:"#000001"}),(0,y.jsx)("path",{d:"M303.66,0l-96.8,268.87-47.58-149H101.1l72.72,186.78a73.61,73.61,0,0,1,0,53.73c-7.07,18.07-19.63,39.63-54.36,46l-1.56.29v49.57l2-.08c29-1.14,51.57-10.72,70.89-30.14,19.69-19.79,36.55-50.52,53-96.68L366.68,0Z",fill:"#000001"}),(0,y.jsx)("circle",{className:"yoast-icon-readability-score",cx:"561.26",cy:"142.43",r:"85.04",fill:"#000001",stroke:"#181716",strokeMiterlimit:"10",strokeWidth:"0.72"}),(0,y.jsx)("circle",{className:"yoast-icon-seo-score",cx:"561.26",cy:"341.96",r:"85.04",fill:"#000001",stroke:"#181716",strokeMiterlimit:"10",strokeWidth:"0.72"})]});w.propTypes={readabilityScoreColor:h().string,isContentAnalysisActive:h().bool,seoScoreColor:h().string,isKeywordAnalysisActive:h().bool,size:h().number,color:h().string};const b=w,x=window.wp.components,k=window.yoast.uiLibrary;function v(e){return void 0===e.length?e:(0,d.flatten)(e).sort(((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority))}const _=window.React;var j=s.n(_);_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));const S=(e,t)=>{try{return(0,o.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}};h().string.isRequired;const T=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),R=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));h().string.isRequired,h().string.isRequired,h().shape({src:h().string.isRequired,width:h().string,height:h().string}).isRequired,h().shape({value:h().bool.isRequired,status:h().string.isRequired,set:h().func.isRequired}).isRequired,h().string,h().string,h().string;const C=({handleRefreshClick:e,supportLink:t})=>(0,y.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,y.jsx)(k.Button,{onClick:e,children:(0,r.__)("Refresh this page","wordpress-seo")}),(0,y.jsx)(k.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,r.__)("Contact support","wordpress-seo")})]});C.propTypes={handleRefreshClick:h().func.isRequired,supportLink:h().string.isRequired};const E=({handleRefreshClick:e,supportLink:t})=>(0,y.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,y.jsx)(k.Button,{className:"yst-order-last",onClick:e,children:(0,r.__)("Refresh this page","wordpress-seo")}),(0,y.jsx)(k.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,r.__)("Contact support","wordpress-seo")})]});E.propTypes={handleRefreshClick:h().func.isRequired,supportLink:h().string.isRequired};const I=({error:e,children:t=null})=>(0,y.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,y.jsx)(k.Title,{children:(0,r.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,y.jsx)("p",{children:(0,r.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,y.jsx)(k.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,r.__)("Undefined error message.","wordpress-seo")}),(0,y.jsx)("p",{children:(0,r.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});I.propTypes={error:h().object.isRequired,children:h().node},I.VerticalButtons=E,I.HorizontalButtons=C;h().string,h().node.isRequired,h().node.isRequired,h().node,h().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const L=window.ReactDOM;var A,F,P;(F=A||(A={})).Pop="POP",F.Push="PUSH",F.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(P||(P={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const q=["post","put","patch","delete"],M=(new Set(q),["get",...q]);new Set(M),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),_.Component,_.startTransition,new Promise((()=>{})),_.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var O,N,D,U;new Map,_.startTransition,L.flushSync,_.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(U=O||(O={})).UseScrollRestoration="useScrollRestoration",U.UseSubmit="useSubmit",U.UseSubmitFetcher="useSubmitFetcher",U.UseFetcher="useFetcher",U.useViewTransitionState="useViewTransitionState",(D=N||(N={})).UseFetcher="useFetcher",D.UseFetchers="useFetchers",D.UseScrollRestoration="useScrollRestoration",h().string.isRequired,h().string;h().string.isRequired,h().node;const W=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}));(0,r.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,r.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,r.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,r.__)("Optimize pages for multiple keywords with guidance","wordpress-seo"),(0,r.__)("Add product details to help your listings stand out","wordpress-seo"),(0,r.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,r.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,r.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo"),(0,r.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,r.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,r.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,r.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,r.__)("Internal links and redirect management, easy","wordpress-seo"),(0,r.__)("Access to friendly help when you need it, day or night","wordpress-seo");var $=s(4184),B=s.n($);var K;function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},H.apply(this,arguments)}h().string.isRequired,h().object.isRequired,h().func.isRequired,_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))}));const z=e=>_.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),K||(K=_.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));h().string.isRequired,h().object,h().func.isRequired,h().bool.isRequired,h().string.isRequired,h().object.isRequired,h().string.isRequired,h().func.isRequired,h().bool.isRequired,_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),h().bool.isRequired,h().func,h().func,h().string.isRequired,h().string.isRequired,h().string.isRequired,h().string.isRequired;window.yoast.reactHelmet;h().string.isRequired,h().shape({src:h().string.isRequired,width:h().string,height:h().string}).isRequired,h().shape({value:h().bool.isRequired,status:h().string.isRequired,set:h().func.isRequired}).isRequired,h().bool,_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),h().bool.isRequired,h().func.isRequired,h().func,h().string,h().func.isRequired,h().string.isRequired,h().string.isRequired,h().string.isRequired,h().string.isRequired;const Y=window.yoast.componentsNew,V=window.yoast.styleGuide,G=window.yoast.analysis;function Z(e){switch(e){case"loading":return{icon:"loading-spinner",color:V.colors.$color_green_medium_light};case"not-set":return{icon:"seo-score-none",color:V.colors.$color_score_icon};case"noindex":return{icon:"seo-score-none",color:V.colors.$color_noindex};case"good":return{icon:"seo-score-good",color:V.colors.$color_green_medium};case"ok":return{icon:"seo-score-ok",color:V.colors.$color_ok};default:return{icon:"seo-score-bad",color:V.colors.$color_red}}}function X({target:e,children:t}){let s=e;return"string"==typeof e&&(s=document.getElementById(e)),s?(0,o.createPortal)(t,s):null}X.propTypes={target:h().oneOfType([h().string,h().object]).isRequired,children:h().node.isRequired};const Q=({target:e,scoreIndicator:t})=>(0,y.jsx)(X,{target:e,children:(0,y.jsx)(Y.SvgIcon,{...Z(t)})});Q.propTypes={target:h().string.isRequired,scoreIndicator:h().string.isRequired};const J=Q,ee=({error:e})=>{const s=(0,o.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),i=(0,t.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/metabox-error-support")),[]),r=(0,t.useSelect)((e=>e("yoast-seo/editor").getPreference("isRtl",!1)),[]);return(0,o.useEffect)((()=>{document.querySelectorAll('[id^="wpseo-meta-tab-"]').forEach((e=>{!function(e){const t=document.querySelector(`#${e}`);null!==t&&(t.style.opacity="0.5",t.style.pointerEvents="none",t.setAttribute("aria-disabled","true"),t.classList.contains("yoast-active-tab")&&t.classList.remove("yoast-active-tab"))}(e.id)}))}),[]),(0,y.jsx)(k.Root,{context:{isRtl:r},children:(0,y.jsxs)(I,{error:e,children:[(0,y.jsx)(I.HorizontalButtons,{supportLink:i,handleRefreshClick:s}),(0,y.jsx)(J,{target:"wpseo-seo-score-icon",scoreIndicator:"not-set"}),(0,y.jsx)(J,{target:"wpseo-readability-score-icon",scoreIndicator:"not-set"}),(0,y.jsx)(J,{target:"wpseo-inclusive-language-score-icon",scoreIndicator:"not-set"})]})})};ee.propTypes={error:h().object.isRequired};const te=({theme:e,location:t,children:s})=>(0,y.jsx)(l.LocationProvider,{value:t,children:(0,y.jsx)(g.ThemeProvider,{theme:e,children:s})});te.propTypes={theme:h().object.isRequired,location:h().oneOf(["sidebar","metabox","modal"]).isRequired,children:h().node.isRequired};const se=te;function ie({theme:e}){return(0,y.jsx)(se,{theme:e,location:"metabox",children:(0,y.jsx)(k.ErrorBoundary,{FallbackComponent:ee,children:(0,y.jsx)(x.Slot,{name:"YoastMetabox",children:e=>v(e)})})})}const oe=window.wp.compose,re=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{d:"M2 11a1 1 0 011-1h2a1 1 0 011 1v5a1 1 0 01-1 1H3a1 1 0 01-1-1v-5zM8 7a1 1 0 011-1h2a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1V7zM14 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1h-2a1 1 0 01-1-1V4z"}))})),ne=(e=null)=>(0,_.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]),ae=({className:e="",...t})=>(0,y.jsx)("span",{className:B()("yst-grow yst-overflow-hidden yst-overflow-ellipsis yst-whitespace-nowrap yst-font-wp","yst-text-[#555] yst-text-base yst-leading-[normal] yst-subpixel-antialiased yst-text-start",e),...t});ae.displayName="MetaboxButton.Text",ae.propTypes={className:h().string};const le=({className:e="",...t})=>(0,y.jsx)("button",{type:"button",className:B()("yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pe-4 yst-ps-6 yst-space-x-2 rtl:yst-space-x-reverse","yst-border-t yst-border-t-[rgb(0,0,0,0.2)] yst-rounded-none yst-transition-all hover:yst-bg-[#f0f0f0]","focus:yst-outline focus:yst-outline-[1px] focus:yst-outline-[color:#0066cd] focus:-yst-outline-offset-1 focus:yst-shadow-[0_0_3px_rgba(8,74,103,0.8)]",e),...t});le.propTypes={className:h().string},le.Text=ae;const ce=window.yoast.helpers,de=m().div` min-width: 600px; @media screen and ( max-width: 680px ) { @@ -209,7 +208,7 @@ /* Translators: %1$s expands to the numeric Flesch reading ease score, %2$s expands to the easiness of reading (e.g. 'easy' or 'very difficult') */ (0,r.__)("The copy scores %1$s in the test, which is considered %2$s to read.","wordpress-seo"),e,function(e){switch(e){case G.DIFFICULTY.NO_DATA:return(0,r.__)("no data","wordpress-seo");case G.DIFFICULTY.VERY_EASY:return(0,r.__)("very easy","wordpress-seo");case G.DIFFICULTY.EASY:return(0,r.__)("easy","wordpress-seo");case G.DIFFICULTY.FAIRLY_EASY:return(0,r.__)("fairly easy","wordpress-seo");case G.DIFFICULTY.OKAY:return(0,r.__)("okay","wordpress-seo");case G.DIFFICULTY.FAIRLY_DIFFICULT:return(0,r.__)("fairly difficult","wordpress-seo");case G.DIFFICULTY.DIFFICULT:return(0,r.__)("difficult","wordpress-seo");case G.DIFFICULTY.VERY_DIFFICULT:return(0,r.__)("very difficult","wordpress-seo")}}(t))}const Ms=()=>{let e=(0,t.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseScore()),[]);const s=(0,o.useMemo)((()=>(0,d.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease","")),[]),i=(0,t.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseDifficulty()),[e]),n=(0,o.useMemo)((()=>{const t=(0,d.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease_article","");return function(e,t,s){const i=function(e){switch(e){case G.DIFFICULTY.FAIRLY_DIFFICULT:case G.DIFFICULTY.DIFFICULT:case G.DIFFICULTY.VERY_DIFFICULT:return(0,r.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case G.DIFFICULTY.NO_DATA:return(0,r.__)("Continue writing to get insight into the readability of your text!","wordpress-seo");default:return(0,r.__)("Good job!","wordpress-seo")}}(t);return(0,y.jsxs)("span",{children:[qs(e,t)," ",t>=G.DIFFICULTY.FAIRLY_DIFFICULT?(0,y.jsx)(Ps,{href:s,children:i+"."}):i]})}(e,i,t)}),[e,i]);return-1===e&&(e="?"),(0,y.jsx)(Y.InsightsCard,{amount:e,unit:(0,r.__)("out of 100","wordpress-seo"),title:(0,r.__)("Flesch reading ease","wordpress-seo"),linkTo:s -/* translators: Hidden accessibility text. */,linkText:(0,r.__)("Learn more about Flesch reading ease","wordpress-seo"),description:n})},Os=({data:e=[],itemScreenReaderText:t="",className:s="",...i})=>{const n=(0,o.useMemo)((()=>{var t,s;return null!==(t=null===(s=(0,d.maxBy)(e,"number"))||void 0===s?void 0:s.number)&&void 0!==t?t:0}),[e]);return(0,y.jsx)("ul",{className:$()("yoast-data-model",s),...i,children:e.map((({name:e,number:s})=>(0,y.jsxs)("li",{style:{"--yoast-width":s/n*100+"%"},children:[e,(0,y.jsx)("span",{children:s}),t&&(0,y.jsx)("span",{className:"screen-reader-text",children:(0,r.sprintf)(t,s)})]},`${e}_dataItem`)))})};Os.propTypes={data:h().arrayOf(h().shape({name:h().string.isRequired,number:h().number.isRequired})),itemScreenReaderText:h().string,className:h().string};const Ns=Os,Ds=window.wp.url,Us=(0,ce.makeOutboundLink)(),Ws=({location:e})=>{const s=(0,t.useSelect)((e=>{var t,s;return null===(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getPreference("isProminentWordsAvailable",!1))||void 0===t||t}),[]),i=(0,t.useSelect)((e=>e("yoast-seo/editor").getPreference("shouldUpsell",!1)),[]),n=(0,o.useMemo)((()=>(0,d.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-prominent_words`,"")),[e]),a=(0,o.useMemo)((()=>{const e=(0,d.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return S((0,r.sprintf)( +/* translators: Hidden accessibility text. */,linkText:(0,r.__)("Learn more about Flesch reading ease","wordpress-seo"),description:n})},Os=({data:e=[],itemScreenReaderText:t="",className:s="",...i})=>{const n=(0,o.useMemo)((()=>{var t,s;return null!==(t=null===(s=(0,d.maxBy)(e,"number"))||void 0===s?void 0:s.number)&&void 0!==t?t:0}),[e]);return(0,y.jsx)("ul",{className:B()("yoast-data-model",s),...i,children:e.map((({name:e,number:s})=>(0,y.jsxs)("li",{style:{"--yoast-width":s/n*100+"%"},children:[e,(0,y.jsx)("span",{children:s}),t&&(0,y.jsx)("span",{className:"screen-reader-text",children:(0,r.sprintf)(t,s)})]},`${e}_dataItem`)))})};Os.propTypes={data:h().arrayOf(h().shape({name:h().string.isRequired,number:h().number.isRequired})),itemScreenReaderText:h().string,className:h().string};const Ns=Os,Ds=window.wp.url,Us=(0,ce.makeOutboundLink)(),Ws=({location:e})=>{const s=(0,t.useSelect)((e=>{var t,s;return null===(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getPreference("isProminentWordsAvailable",!1))||void 0===t||t}),[]),i=(0,t.useSelect)((e=>e("yoast-seo/editor").getPreference("shouldUpsell",!1)),[]),n=(0,o.useMemo)((()=>(0,d.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-prominent_words`,"")),[e]),a=(0,o.useMemo)((()=>{const e=(0,d.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return S((0,r.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing <a> tags. (0,r.__)("Read our %1$sultimate guide to keyword research%2$s to learn more about keyword research and keyword strategy.","wordpress-seo"),"<a>","</a>"),{a:(0,y.jsx)(Us,{href:e})})}),[]),c=(0,o.useMemo)((()=>S((0,r.sprintf)( // translators: %1$s expands to a starting `b` tag, %1$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`. @@ -224,7 +223,7 @@ // Translators: %1$s expands to a starting `b` tag, %2$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`. (0,r.__)("%1$s%3$s%2$s will help you assess the formality level of your text.","wordpress-seo"),"<b>","</b>","Yoast SEO Premium"),{b:(0,y.jsx)("b",{})})),[]);return(0,y.jsx)(o.Fragment,{children:(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{children:s}),(0,y.jsxs)(Ks,{href:t,className:"yoast-button yoast-button-upsell",children:[(0,r.sprintf)( // Translators: %s expands to `Premium` (part of add-on name). -(0,r.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,y.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]})]})})};Hs.propTypes={location:h().string.isRequired};const zs=Hs,Ys=({location:e,name:s})=>{const i=(0,t.useSelect)((e=>e("yoast-seo/editor").isFormalitySupported()),[]),o=p().isPremium,n=o?(0,d.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):(0,d.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),a=(0,r.__)("Read more about text formality.","wordpress-seo");return i?(0,y.jsxs)("div",{className:"yoast-text-formality",children:[(0,y.jsxs)("div",{className:"yoast-field-group__title",children:[(0,y.jsx)("b",{children:(0,r.__)("Text formality","wordpress-seo")}),(0,y.jsx)(Y.HelpIcon,{linkTo:n,linkText:a})]}),o?(0,y.jsx)(x.Slot,{name:s}):(0,y.jsx)(zs,{location:e})]}):null};Ys.propTypes={location:h().string.isRequired,name:h().string.isRequired};const Vs=Ys,Gs=({location:e="metabox"})=>{const s=(0,t.useSelect)((e=>e("yoast-seo/editor").isFleschReadingEaseAvailable()),[]);return(0,y.jsxs)(As,{title:(0,r.__)("Insights","wordpress-seo"),id:`yoast-insights-collapsible-${e}`,className:"yoast-insights",children:[(0,y.jsx)($s,{location:e}),(0,y.jsxs)("div",{children:[s&&(0,y.jsx)("div",{className:"yoast-insights-row",children:(0,y.jsx)(Ms,{})}),(0,y.jsxs)("div",{className:"yoast-insights-row yoast-insights-row--columns",children:[(0,y.jsx)(Fs,{}),(0,y.jsx)(Bs,{})]}),(0,Is.isFeatureEnabled)("TEXT_FORMALITY")&&(0,y.jsx)(Vs,{location:e,name:"YoastTextFormalityMetabox"})]})]})};Gs.propTypes={location:h().string};const Zs=Gs,Xs=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))})),Qs=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}))})),Js=({isOpen:e,onClose:s,id:i,upsellLink:n,title:a="",description:l="",benefits:c=[],note:d="",ctbId:p="",modalTitle:u})=>{const{isBlackFriday:h,isWooCommerceActive:g,isProductEntity:m,isWooSEOActive:f}=(0,t.useSelect)((e=>{const t=e("yoast-seo/editor");return{isProductEntity:t.getIsProductEntity(),isWooCommerceActive:t.getIsWooCommerceActive(),isBlackFriday:t.isPromotionActive("black-friday-promotion"),isWooSEOActive:t.getIsWooSeoActive()}}),[]),w=(0,o.useMemo)((()=>g&&m),[g,m]),b=(0,o.useRef)(null);return(0,y.jsx)(k.Modal,{isOpen:e,onClose:s,id:i,initialFocus:b,children:(0,y.jsx)(k.Modal.Panel,{className:"yst-max-w-md yst-p-0",hasCloseButton:!1,children:(0,y.jsxs)(k.Modal.Container,{children:[(0,y.jsxs)(k.Modal.Container.Header,{className:"yst-p-6 yst-border-b-slate-200 yst-border-b yst-flex yst-justify-start yst-gap-3 yst-items-center",children:[w?(0,y.jsx)(Qs,{className:"yst-text-woo-light yst-w-6 yst-h-6 yst-scale-x-[-1]"}):(0,y.jsx)(ye,{className:"yst-fill-primary-500 yst-w-5 yst-h-5"}),(0,y.jsx)(k.Modal.Title,{as:"h3",className:$()(w?"yst-text-woo-light":"yst-text-primary-500","yst-text-base yst-font-normal"),children:u}),(0,y.jsx)(k.Modal.CloseButton,{className:"yst-top-2",onClick:s,screenReaderText:(0,r.__)("Close modal","wordpress-seo")})]}),(0,y.jsxs)(k.Modal.Container.Content,{className:"yst-p-0",children:[h&&(0,y.jsx)("div",{className:"yst-flex yst-font-semibold yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6",children:(0,y.jsx)("div",{className:"yst-mx-auto",children:(0,r.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})}),(0,y.jsxs)("div",{className:"yst-py-6 yst-px-12",children:[(0,y.jsx)(k.Title,{as:"h3",className:"yst-mb-1 yst-leading-5 yst-text-sm yst-font-medium yst-text-slate-800",children:a}),(0,y.jsx)("p",{className:"yst-mb-2",children:l}),Array.isArray(c)&&c.length>0&&(0,y.jsx)("ul",{className:"yst-my-2",children:c.map(((e,t)=>(0,y.jsxs)("li",{className:"yst-flex yst-gap-1 yst-mb-2",children:[(0,y.jsx)(B,{className:"yst-mr-1 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),(0,y.jsx)("p",{className:"yst-text-slate-600",children:e})]},`${i}-upsell-benefit-${t}`)))}),"function"==typeof c&&c(),(0,y.jsxs)("div",{className:"yst-text-center",children:[(0,y.jsxs)(k.Button,{as:"a",variant:"upsell",className:"yst-my-2 yst-gap-1.5 yst-w-full",href:n,target:"_blank","data-action":"load-nfd-ctb","data-ctb-id":p,ref:b,children:[(0,y.jsx)(T,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,r.sprintf)(/* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */ +(0,r.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,y.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]})]})})};Hs.propTypes={location:h().string.isRequired};const zs=Hs,Ys=({location:e,name:s})=>{const i=(0,t.useSelect)((e=>e("yoast-seo/editor").isFormalitySupported()),[]),o=p().isPremium,n=o?(0,d.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):(0,d.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),a=(0,r.__)("Read more about text formality.","wordpress-seo");return i?(0,y.jsxs)("div",{className:"yoast-text-formality",children:[(0,y.jsxs)("div",{className:"yoast-field-group__title",children:[(0,y.jsx)("b",{children:(0,r.__)("Text formality","wordpress-seo")}),(0,y.jsx)(Y.HelpIcon,{linkTo:n,linkText:a})]}),o?(0,y.jsx)(x.Slot,{name:s}):(0,y.jsx)(zs,{location:e})]}):null};Ys.propTypes={location:h().string.isRequired,name:h().string.isRequired};const Vs=Ys,Gs=({location:e="metabox"})=>{const s=(0,t.useSelect)((e=>e("yoast-seo/editor").isFleschReadingEaseAvailable()),[]);return(0,y.jsxs)(As,{title:(0,r.__)("Insights","wordpress-seo"),id:`yoast-insights-collapsible-${e}`,className:"yoast-insights",children:[(0,y.jsx)($s,{location:e}),(0,y.jsxs)("div",{children:[s&&(0,y.jsx)("div",{className:"yoast-insights-row",children:(0,y.jsx)(Ms,{})}),(0,y.jsxs)("div",{className:"yoast-insights-row yoast-insights-row--columns",children:[(0,y.jsx)(Fs,{}),(0,y.jsx)(Bs,{})]}),(0,Is.isFeatureEnabled)("TEXT_FORMALITY")&&(0,y.jsx)(Vs,{location:e,name:"YoastTextFormalityMetabox"})]})]})};Gs.propTypes={location:h().string};const Zs=Gs,Xs=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))})),Qs=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}))})),Js=({isOpen:e,onClose:s,id:i,upsellLink:n,title:a="",description:l="",benefits:c=[],note:d="",ctbId:p="",modalTitle:u})=>{const{isBlackFriday:h,isWooCommerceActive:g,isProductEntity:m,isWooSEOActive:f}=(0,t.useSelect)((e=>{const t=e("yoast-seo/editor");return{isProductEntity:t.getIsProductEntity(),isWooCommerceActive:t.getIsWooCommerceActive(),isBlackFriday:t.isPromotionActive("black-friday-promotion"),isWooSEOActive:t.getIsWooSeoActive()}}),[]),w=(0,o.useMemo)((()=>g&&m),[g,m]),b=(0,o.useRef)(null);return(0,y.jsx)(k.Modal,{isOpen:e,onClose:s,id:i,initialFocus:b,children:(0,y.jsx)(k.Modal.Panel,{className:"yst-max-w-md yst-p-0",hasCloseButton:!1,children:(0,y.jsxs)(k.Modal.Container,{children:[(0,y.jsxs)(k.Modal.Container.Header,{className:"yst-p-6 yst-border-b-slate-200 yst-border-b yst-flex yst-justify-start yst-gap-3 yst-items-center",children:[w?(0,y.jsx)(Qs,{className:"yst-text-woo-light yst-w-6 yst-h-6 yst-scale-x-[-1]"}):(0,y.jsx)(ye,{className:"yst-fill-primary-500 yst-w-5 yst-h-5"}),(0,y.jsx)(k.Modal.Title,{as:"h3",className:B()(w?"yst-text-woo-light":"yst-text-primary-500","yst-text-base yst-font-normal"),children:u}),(0,y.jsx)(k.Modal.CloseButton,{className:"yst-top-2",onClick:s,screenReaderText:(0,r.__)("Close modal","wordpress-seo")})]}),(0,y.jsxs)(k.Modal.Container.Content,{className:"yst-p-0",children:[h&&(0,y.jsx)("div",{className:"yst-flex yst-font-semibold yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6",children:(0,y.jsx)("div",{className:"yst-mx-auto",children:(0,r.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})}),(0,y.jsxs)("div",{className:"yst-py-6 yst-px-12",children:[(0,y.jsx)(k.Title,{as:"h3",className:"yst-mb-1 yst-leading-5 yst-text-sm yst-font-medium yst-text-slate-800",children:a}),(0,y.jsx)("p",{className:"yst-mb-2",children:l}),Array.isArray(c)&&c.length>0&&(0,y.jsx)("ul",{className:"yst-my-2",children:c.map(((e,t)=>(0,y.jsxs)("li",{className:"yst-flex yst-gap-1 yst-mb-2",children:[(0,y.jsx)(W,{className:"yst-mr-1 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),(0,y.jsx)("p",{className:"yst-text-slate-600",children:e})]},`${i}-upsell-benefit-${t}`)))}),"function"==typeof c&&c(),(0,y.jsxs)("div",{className:"yst-text-center",children:[(0,y.jsxs)(k.Button,{as:"a",variant:"upsell",className:"yst-my-2 yst-gap-1.5 yst-w-full",href:n,target:"_blank","data-action":"load-nfd-ctb","data-ctb-id":p,ref:b,children:[(0,y.jsx)(T,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,r.sprintf)(/* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */ (0,r.__)("Explore %s","wordpress-seo"),w&&!f?"Yoast WooCommerce SEO":"Yoast SEO Premium"),(0,y.jsx)("span",{className:"yst-sr-only",children:(0,r.__)("Opens in a new tab","wordpress-seo")})]}),(0,y.jsx)("div",{className:"yst-italic yst-text-slate-500 yst-mt-1",children:d})]})]})]})]})})})},ei=()=>{const[e,,,t,s]=(0,k.useToggleState)(!1),{locationContext:i}=(0,l.useRootContext)(),o=(0,k.useSvgAria)(),n=i.includes("sidebar"),a=i.includes("metabox"),c=n?"sidebar":"metabox",d=wpseoAdminL10n[n?"shortlinks.upsell.sidebar.internal_linking_suggestions":"shortlinks.upsell.metabox.internal_linking_suggestions"];return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Js,{isOpen:e,onClose:s,id:`yoast-internal-linking-suggestions-upsell-${c}`,upsellLink:(0,Ds.addQueryArgs)(d,{context:i}),modalTitle:(0,r.__)("Add smarter internal links with Premium","wordpress-seo"),title:(0,r.__)("Connect related content without the guesswork","wordpress-seo"),description:S((0,r.sprintf)(/* translators: %s expands to be tag. */ (0,r.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles. %sScans your content to:","wordpress-seo"),"<br />"),{br:(0,y.jsx)("br",{})}),benefits:[(0,r.__)("Suggest internal links based on your content’s main topics","wordpress-seo"),(0,r.__)("Build relevant internal links faster","wordpress-seo"),(0,r.__)("Strengthen your site’s structure","wordpress-seo"),(0,r.__)("Keep visitors exploring longer","wordpress-seo")],note:(0,r.__)("Upgrade to link your content with ease","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),n&&(0,y.jsx)(we,{id:"yoast-internal-linking-suggestions-sidebar-modal-open-button",title:(0,r.__)("Internal linking suggestions","wordpress-seo"),onClick:t,children:(0,y.jsx)("div",{className:"yst-root",children:(0,y.jsx)(k.Badge,{size:"small",variant:"upsell",children:(0,y.jsx)(Xs,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...o})})})}),a&&(0,y.jsx)("div",{className:"yst-root",children:(0,y.jsxs)(le,{id:"yoast-internal-linking-suggestions-metabox-modal-open-button",onClick:t,children:[(0,y.jsx)(le.Text,{children:(0,r.__)("Internal linking suggestions","wordpress-seo")}),(0,y.jsxs)(k.Badge,{size:"small",variant:"upsell",children:[(0,y.jsx)(Xs,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...o}),(0,y.jsx)("span",{children:"Premium"})]})]})})]})},ti=({children:e})=>(0,y.jsx)("div",{children:e});ti.propTypes={renderPriority:h().number.isRequired,children:h().node.isRequired};const si=ti,ii=({noIndex:e,onNoIndexChange:t,editorContext:s,isPrivateBlog:i=!1})=>{const n=(e=>{const t=(0,r.__)("No","wordpress-seo"),s=(0,r.__)("Yes","wordpress-seo"),i=e.noIndex?t:s;return window.wpseoScriptData.isPost?[{name:(0,r.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */ (0,r.__)("%1$s (current default for %2$s)","wordpress-seo"),i,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:s,value:"2"}]:[{name:(0,r.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */ @@ -473,7 +472,7 @@ (0,r.__)("You can change the default type for %1$s under Content types in the %2$sSettings%3$s.","wordpress-seo"),e,"<link>","</link>"))(e),{link:(0,y.jsx)("a",{href:t,target:"_blank",rel:"noreferrer"})}),Ao=({helpTextTitle:e,helpTextLink:t,helpTextDescription:s})=>(0,y.jsx)(Y.FieldGroup,{label:e,linkTo:t /* translators: Hidden accessibility text. */,linkText:(0,r.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:s});Ao.propTypes={helpTextTitle:h().string.isRequired,helpTextLink:h().string.isRequired,helpTextDescription:h().string.isRequired};const Fo=({schemaPageTypeChange:e=d.noop,schemaPageTypeSelected:s=null,pageTypeOptions:i,schemaArticleTypeChange:n=d.noop,schemaArticleTypeSelected:a=null,articleTypeOptions:l,showArticleTypeInput:c,additionalHelpTextLink:p,helpTextLink:u,helpTextTitle:h,helpTextDescription:g,postTypeName:m,displayFooter:f=!1,defaultPageType:w,defaultArticleType:b,location:x,isNewsEnabled:k=!1})=>{const v=Io(i,w,m),_=Io(l,b,m),j=(0,t.useSelect)((e=>e(Co).selectLink("https://yoa.st/product-schema-metabox")),[]),S=(0,t.useSelect)((e=>e(Co).getIsWooSeoUpsell()),[]),[T,R]=(0,o.useState)(a),C=(0,r.__)("Want your products stand out in search results with rich results like price, reviews and more?","wordpress-seo"),E=(0,t.useSelect)((e=>e(Co).getIsProduct()),[]),I=(0,t.useSelect)((e=>e(Co).getIsWooSeoActive()),[]),L=(0,t.useSelect)((e=>e(Co).selectAdminLink("?page=wpseo_page_settings")),[]),A=E&&I,F=(0,o.useCallback)(((e,t)=>{R(t)}),[]);return(0,o.useEffect)((()=>{F(null,a)}),[a]),(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)(Ao,{helpTextLink:u,helpTextTitle:h,helpTextDescription:g}),(0,y.jsx)(Y.FieldGroup,{label:(0,r.__)("What type of page or content is this?","wordpress-seo"),linkTo:p /* translators: Hidden accessibility text. */,linkText:(0,r.__)("Learn more about page or content types","wordpress-seo")}),S&&(0,y.jsx)(Ts,{link:j,text:C}),(0,y.jsx)(Y.Select,{id:(0,ce.join)(["yoast-schema-page-type",x]),options:v,label:(0,r.__)("Page type","wordpress-seo"),onChange:e,selected:A?"ItemPage":s,disabled:A}),c&&(0,y.jsx)(Y.Select,{id:(0,ce.join)(["yoast-schema-article-type",x]),options:_,label:(0,r.__)("Article type","wordpress-seo"),onChange:n,selected:a,onOptionFocus:F}),(0,y.jsx)(Eo,{location:x,show:!k&&(P=T,q=b,"NewsArticle"===P||""===P&&"NewsArticle"===q)}),f&&!A&&(0,y.jsx)("p",{children:Lo(m,L)}),A&&(0,y.jsx)("p",{children:(0,r.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */ -(0,r.__)("You have %1$s activated on your site, automatically setting the Page type for your products to 'Item Page'. As a result, the Page type selection is disabled.","wordpress-seo"),"Yoast WooCommerce SEO")})]});var P,q},Po=h().arrayOf(h().shape({name:h().string,value:h().string}));Fo.propTypes={schemaPageTypeChange:h().func,schemaPageTypeSelected:h().string,pageTypeOptions:Po.isRequired,schemaArticleTypeChange:h().func,schemaArticleTypeSelected:h().string,articleTypeOptions:Po.isRequired,showArticleTypeInput:h().bool.isRequired,additionalHelpTextLink:h().string.isRequired,helpTextLink:h().string.isRequired,helpTextTitle:h().string.isRequired,helpTextDescription:h().string.isRequired,postTypeName:h().string.isRequired,displayFooter:h().bool,defaultPageType:h().string.isRequired,defaultArticleType:h().string.isRequired,location:h().string.isRequired,isNewsEnabled:h().bool};const qo=({isMetabox:e,showArticleTypeInput:t=!1,articleTypeLabel:s="",additionalHelpTextLink:i="",pageTypeLabel:r,helpTextLink:n,helpTextTitle:a,helpTextDescription:l,postTypeName:c,displayFooter:d=!1,loadSchemaArticleData:p,loadSchemaPageData:u,location:h,...g})=>{const m=(0,y.jsx)(Fo,{showArticleTypeInput:t,articleTypeLabel:s,additionalHelpTextLink:i,pageTypeLabel:r,helpTextLink:n,helpTextTitle:a,helpTextDescription:l,postTypeName:c,displayFooter:d,loadSchemaArticleData:p,loadSchemaPageData:u,location:h,...g});return e?(0,o.createPortal)((0,y.jsx)(Ro,{children:m}),document.getElementById("wpseo-meta-section-schema")):m};qo.propTypes={isMetabox:h().bool.isRequired,showArticleTypeInput:h().bool,articleTypeLabel:h().string,additionalHelpTextLink:h().string,pageTypeLabel:h().string.isRequired,helpTextLink:h().string.isRequired,helpTextTitle:h().string.isRequired,helpTextDescription:h().string.isRequired,postTypeName:h().string.isRequired,displayFooter:h().bool,loadSchemaArticleData:h().func.isRequired,loadSchemaPageData:h().func.isRequired,location:h().string.isRequired};const Mo=qo;class Oo{static get articleTypeInput(){return document.getElementById("yoast_wpseo_schema_article_type")}static get defaultArticleType(){return Oo.articleTypeInput.getAttribute("data-default")}static get articleType(){return Oo.articleTypeInput.value}static set articleType(e){Oo.articleTypeInput.value=e}static get pageTypeInput(){return document.getElementById("yoast_wpseo_schema_page_type")}static get defaultPageType(){return Oo.pageTypeInput.getAttribute("data-default")}static get pageType(){return Oo.pageTypeInput.value}static set pageType(e){Oo.pageTypeInput.value=e}}const No=e=>{const t=null!==Oo.articleTypeInput;(0,o.useEffect)((()=>{e.loadSchemaPageData(),t&&e.loadSchemaArticleData()}),[]);const{pageTypeOptions:s,articleTypeOptions:i}=window.wpseoScriptData.metabox.schema,n={articleTypeLabel:(0,r.__)("Article type","wordpress-seo"),pageTypeLabel:(0,r.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,r.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,r.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:t,pageTypeOptions:s,articleTypeOptions:i},a={...e,...n,...(l=e.location,"metabox"===l?{helpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.page_type"],isMetabox:!0}:{helpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.page_type"],isMetabox:!1})};var l;return(0,y.jsx)(Mo,{...a})};No.propTypes={displayFooter:h().bool.isRequired,schemaPageTypeSelected:h().string.isRequired,schemaArticleTypeSelected:h().string.isRequired,defaultArticleType:h().string.isRequired,defaultPageType:h().string.isRequired,loadSchemaPageData:h().func.isRequired,loadSchemaArticleData:h().func.isRequired,schemaPageTypeChange:h().func.isRequired,schemaArticleTypeChange:h().func.isRequired,location:h().string.isRequired};const Do=(0,oe.compose)([(0,t.withSelect)((e=>{const{getPreferences:t,getPageType:s,getDefaultPageType:i,getArticleType:o,getDefaultArticleType:r}=e("yoast-seo/editor"),{displaySchemaSettingsFooter:n,isNewsEnabled:a}=t();return{displayFooter:n,isNewsEnabled:a,schemaPageTypeSelected:s(),schemaArticleTypeSelected:o(),defaultArticleType:r(),defaultPageType:i()}})),(0,t.withDispatch)((e=>{const{setPageType:t,setArticleType:s,getSchemaPageData:i,getSchemaArticleData:o}=e("yoast-seo/editor");return{loadSchemaPageData:i,loadSchemaArticleData:o,schemaPageTypeChange:t,schemaArticleTypeChange:s}})),ds()])(No),Uo=window.yoast.relatedKeyphraseSuggestions;function Wo({requestLimitReached:e,isSuccess:t,response:s,requestHasData:i,relatedKeyphrases:o}){return e?"requestLimitReached":!t&&function(e){return"invalid_json"===(null==e?void 0:e.code)||"fetch_error"===(null==e?void 0:e.code)||!(0,d.isEmpty)(e)&&"error"in e}(s)?"requestFailed":i?function(e){return e&&e.length>=4}(o)?"maxRelatedKeyphrases":null:"requestEmpty"}function $o({keyphrase:e="",relatedKeyphrases:t=[],renderAction:s=null,requestLimitReached:i=!1,countryCode:r,setCountry:n,newRequest:a,response:l={},isRtl:c=!1,userLocale:d="en_US",isPending:p=!1,isSuccess:u=!1,requestHasData:h=!0,isPremium:g=!1,semrushUpsellLink:m="",premiumUpsellLink:f=""}){var w,b;const[x,v]=(0,o.useState)(r),_=(0,o.useCallback)((async()=>{a(r,e),v(r)}),[r,e,a]);return(0,y.jsxs)(k.Root,{context:{isRtl:c},children:[!i&&!g&&(0,y.jsx)(Uo.PremiumUpsell,{url:f,className:"yst-mb-4"}),!i&&(0,y.jsx)(Uo.CountrySelector,{countryCode:r,activeCountryCode:x,onChange:n,onClick:_,className:"yst-mb-4",userLocale:d.split("_")[0]}),!p&&(0,y.jsx)(Uo.UserMessage,{variant:Wo({requestLimitReached:i,isSuccess:u,response:l,requestHasData:h,relatedKeyphrases:t}),upsellLink:m}),(0,y.jsx)(Uo.KeyphrasesTable,{relatedKeyphrases:t,columnNames:null==l||null===(w=l.results)||void 0===w?void 0:w.columnNames,data:null==l||null===(b=l.results)||void 0===b?void 0:b.rows,isPending:p,renderButton:s,className:"yst-mt-4"})]})}$o.propTypes={keyphrase:h().string,relatedKeyphrases:h().array,renderAction:h().func,requestLimitReached:h().bool,countryCode:h().string.isRequired,setCountry:h().func.isRequired,newRequest:h().func.isRequired,response:h().object,isRtl:h().bool,userLocale:h().string,isPending:h().bool,isSuccess:h().bool,requestHasData:h().bool,isPremium:h().bool,semrushUpsellLink:h().string,premiumUpsellLink:h().string};const Bo=(0,oe.compose)([(0,t.withSelect)((e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:s,getSEMrushRequestLimitReached:i,getSEMrushRequestResponse:o,getSEMrushRequestIsSuccess:r,getSEMrushIsRequestPending:n,getSEMrushRequestHasData:a,getPreference:l,getIsPremium:c,selectLinkParams:d}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:s(),requestLimitReached:i(),response:o(),isSuccess:r(),isPending:n(),requestHasData:a(),isRtl:l("isRtl",!1),userLocale:l("userLocale","en_US"),isPremium:c(),semrushUpsellLink:(0,Ds.addQueryArgs)("https://yoa.st/semrush-prices",d()),premiumUpsellLink:(0,Ds.addQueryArgs)("https://yoa.st/413",d())}})),(0,t.withDispatch)((e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:s}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{s(e,t)}}}))])($o),Ko=({isOpen:e,closeModal:t,id:s,upsellLink:i})=>(0,y.jsx)(Js,{isOpen:e,onClose:t,id:s,upsellLink:i,title:(0,r.__)("Cover more search intent with related keyphrases","wordpress-seo"),description:(0,r.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles - helping it get discovered by a wider audience.","wordpress-seo"),note:(0,r.__)("Fine-tune your content for every audience","wordpress-seo"),modalTitle:(0,r.__)("Add more keyphrases with Premium","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),Ho=()=>{const[e,,,t,s]=(0,k.useToggleState)(!1),i=(0,o.useContext)(l.LocationContext),{locationContext:n}=(0,l.useRootContext)(),a=(0,k.useSvgAria)(),c=wpseoAdminL10n["sidebar"===i.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Ko,{isOpen:e,closeModal:s,upsellLink:(0,Ds.addQueryArgs)(c,{context:n}),id:`yoast-additional-keyphrases-modal-${i}`}),"sidebar"===i&&(0,y.jsx)(we,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,r.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:V.colors.$color_grey_medium_dark},onClick:t,children:(0,y.jsx)("div",{className:"yst-root",children:(0,y.jsx)(k.Badge,{size:"small",variant:"upsell",children:(0,y.jsx)(Xs,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...a})})})}),"metabox"===i&&(0,y.jsx)("div",{className:"yst-root",children:(0,y.jsxs)(le,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:t,children:[(0,y.jsx)(Y.SvgIcon,{icon:"plus",color:V.colors.$color_grey_medium_dark}),(0,y.jsx)(le.Text,{children:(0,r.__)("Add related keyphrase","wordpress-seo")}),(0,y.jsxs)(k.Badge,{size:"small",variant:"upsell",children:[(0,y.jsx)(Xs,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...a}),(0,y.jsx)("span",{children:"Premium"})]})]})})]})},zo=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),Yo=({store:e="yoast-seo/editor",location:s="sidebar"})=>{const i="black-friday-promotion",n=(0,t.useSelect)((t=>t(e).getIsPremium()),[e]),a=(0,t.useSelect)((t=>t(e).selectLinkParams()),[e]),l=(0,t.useSelect)((t=>t(e).isPromotionActive(i)),[e]),c=(0,t.useSelect)((t=>t(e).getIsWooCommerceActive()),[e]),d=(0,t.useSelect)((t=>t(e).isAlertDismissed(i)),[e]),p=(0,t.useSelect)((t=>t(e).getIsElementorEditor()),[e]),u=(0,o.useCallback)((()=>{(0,t.dispatch)(e).dismissAlert(i)}),[e,i]),h=(0,Ds.addQueryArgs)("https://yoa.st/black-friday-sale",a),g=(0,k.useSvgAria)();return n||!l||d?null:(0,y.jsx)("div",{className:"yst-root",children:(0,y.jsxs)("div",{className:$()("sidebar"!==s||p?"yst-mx-4":"yst-mx-0","yst-border yst-rounded-lg yst-p-4 yst-max-w-md yst-mt-6 yst-relative yst-shadow-sm",c?"yst-border-woo-light":"yst-border-primary-200"),children:[(0,y.jsxs)(k.Badge,{size:"small",className:"yst-text-[10px] yst-bg-black yst-text-amber-300 yst-absolute yst--top-2",children:[(0,r.__)("BLACK FRIDAY","wordpress-seo")," "]}),(0,y.jsxs)("button",{className:"yst-absolute yst-top-4 yst-end-4",onClick:u,children:[(0,y.jsx)(zo,{className:"yst-w-4 yst-text-slate-400 yst-shrink-0 yst--mt-0.5"}),(0,y.jsx)("div",{className:"yst-sr-only",children:(0,r.__)("Dismiss","wordpress-seo")})]}),(0,y.jsxs)("div",{className:$()("sidebar"===s?"":"yst-flex yst-justify-between yst-gap-3"),children:[(0,y.jsxs)("div",{className:c?"yst-text-woo-light":"yst-text-primary-500",children:[(0,y.jsx)("div",{className:"yst-text-2xl yst-font-bold",children:(0,r.__)("30% OFF","wordpress-seo")}),(0,y.jsx)("div",{className:"yst-flex yst-gap-2 yst-font-semibold yst-text-tiny",children:c?(0,y.jsxs)(y.Fragment,{children:["Yoast WooCommerce SEO ",(0,y.jsx)(Qs,{className:"yst-w-4 yst-scale-x-[-1]",...g})]}):(0,y.jsxs)(y.Fragment,{children:[" Yoast SEO Premium ",(0,y.jsx)(z,{className:"yst-w-4",...g})]})})]}),(0,y.jsx)("div",{className:"yst-flex yst-items-end",children:(0,y.jsxs)(k.Button,{as:"a",className:$()("sidebar"===s?"yst-w-full":"yst-w-[140px]","yst-flex yst-gap-1 yst-w-[140px] yst-h-7 yst-mt-4"),variant:"upsell",href:h,target:"_blank",rel:"noreferrer",children:[(0,r.__)("Buy now!","wordpress-seo"),(0,y.jsx)(R,{className:"yst-w-4 rtl:yst-rotate-180",...g})]})})]})]})})};function Vo(){return window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor}Yo.propTypes={store:h().string,location:h().oneOf(["sidebar","metabox"])};const Go=()=>{const{editorMode:e,activeAIButtonId:s}=(0,t.useSelect)((e=>({editorMode:e("core/edit-post").getEditorMode(),activeAIButtonId:e("yoast-seo/editor").getActiveAIFixesButton()})),[]),{setMarkerStatus:i}=(0,t.useDispatch)("yoast-seo/editor");(0,o.useEffect)((()=>(i("visual"===e&&s||"text"===e?"disabled":"enabled"),()=>{i("disabled")})),[e,s])},Zo=(Xo=Yo,e=>!(()=>{var e,s;const i=(0,t.select)("yoast-seo/editor").getIsPremium(),o=(0,t.select)("yoast-seo/editor").getWarningMessage();return(i&&null!==(e=null===(s=(0,t.select)("yoast-seo-premium/editor"))||void 0===s?void 0:s.getMetaboxWarning())&&void 0!==e?e:[]).length>0||o.length>0})()&&(0,y.jsx)(Xo,{...e}));var Xo;function Qo({settings:e}){const{isTerm:s}=(0,t.useSelect)((e=>({isTerm:e("yoast-seo/editor").getIsTerm(),isProduct:e("yoast-seo/editor").getIsProduct(),isWooCommerceActive:e("yoast-seo/editor").getIsWooCommerceActive()})),[]),i=Vo();return i&&Go(),(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)(x.Fill,{name:"YoastMetabox",children:[(0,y.jsx)(si,{renderPriority:1,children:(0,y.jsx)(Es,{})},"warning"),(0,y.jsx)(si,{renderPriority:2,children:(0,y.jsx)(Zo,{location:"metabox"})},"time-constrained-notification"),e.isKeywordAnalysisActive&&(0,y.jsxs)(si,{renderPriority:8,children:[(0,y.jsx)(cs.KeywordInput,{isSEMrushIntegrationActive:e.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,y.jsx)(x.Fill,{name:"YoastRelatedKeyphrases",children:(0,y.jsx)(Bo,{})})]},"keyword-input"),(0,y.jsx)(si,{renderPriority:9,children:(0,y.jsx)(As,{id:"yoast-snippet-editor-metabox",title:(0,r.__)("Search appearance","wordpress-seo"),initialIsOpen:!0,children:(0,y.jsx)(Cs,{hasPaperStyle:!1})})},"search-appearance"),e.isContentAnalysisActive&&(0,y.jsx)(si,{renderPriority:10,children:(0,y.jsx)(cs.ReadabilityAnalysis,{shouldUpsell:e.shouldUpsell})},"readability-analysis"),e.isKeywordAnalysisActive&&(0,y.jsx)(si,{renderPriority:20,children:(0,y.jsx)(o.Fragment,{children:(0,y.jsx)(cs.SeoAnalysis,{shouldUpsell:e.shouldUpsell})})},"seo-analysis"),e.isInclusiveLanguageAnalysisActive&&(0,y.jsx)(si,{renderPriority:21,children:(0,y.jsx)(cs.InclusiveLanguageAnalysis,{})},"inclusive-language-analysis"),e.isKeywordAnalysisActive&&(0,y.jsx)(si,{renderPriority:22,children:e.shouldUpsell&&(0,y.jsx)(Ho,{})},"additional-keywords-upsell"),e.isKeywordAnalysisActive&&e.isWincherIntegrationActive&&(0,y.jsx)(si,{renderPriority:23,children:(0,y.jsx)(ls,{location:"metabox"})},"wincher-seo-performance"),e.shouldUpsell&&!s&&(0,y.jsx)(si,{renderPriority:25,children:(0,y.jsx)(ei,{})},"internal-linking-suggestions-upsell"),e.isCornerstoneActive&&(0,y.jsx)(si,{renderPriority:30,children:(0,y.jsx)(ps,{})},"cornerstone"),e.displayAdvancedTab&&(0,y.jsx)(si,{renderPriority:40,children:(0,y.jsx)(As,{id:"collapsible-advanced-settings",title:(0,r.__)("Advanced","wordpress-seo"),children:(0,y.jsx)(di,{})})},"advanced"),e.displaySchemaSettings&&(0,y.jsx)(si,{renderPriority:50,children:(0,y.jsx)(Do,{})},"schema"),i&&(0,y.jsx)(si,{renderPriority:24,children:(0,y.jsx)(cs.ContentBlocks,{})},"content-blocks"),(0,y.jsx)(si,{renderPriority:-1,children:(0,y.jsx)(So,{target:"wpseo-section-social"})},"social"),e.isInsightsEnabled&&(0,y.jsx)(si,{renderPriority:52,children:(0,y.jsx)(Zs,{location:"metabox"})},"insights")]})})}Qo.propTypes={settings:h().object.isRequired};const Jo=(0,oe.compose)([(0,t.withSelect)(((e,t)=>{const{getPreferences:s}=e("yoast-seo/editor");return{settings:s(),store:t.store}}))])(Qo);function er({target:e,store:t,theme:s}){return(0,y.jsxs)(X,{target:e,children:[(0,y.jsx)(ie,{store:t,theme:s}),(0,y.jsx)(Jo,{store:t,theme:s})]})}er.propTypes={target:h().string.isRequired,store:h().object.isRequired,theme:h().object.isRequired};const tr=({error:e})=>{const s=(0,o.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),i=(0,t.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/sidebar-error-support")),[]),r=(0,t.useSelect)((e=>e("yoast-seo/editor").getPreference("isRtl",!1)),[]);return(0,y.jsx)(k.Root,{context:{isRtl:r},children:(0,y.jsx)(I,{error:e,children:(0,y.jsx)(I.VerticalButtons,{supportLink:i,handleRefreshClick:s})})})};function sr({theme:e}){return(0,y.jsx)(se,{theme:e,location:"sidebar",children:(0,y.jsx)(k.ErrorBoundary,{FallbackComponent:tr,children:(0,y.jsx)(x.Slot,{name:"YoastSidebar",children:e=>v(e)})})})}function ir({score:e,label:t,scoreValue:s=""}){return(0,y.jsxs)("div",{className:"yoast-analysis-check",children:[(0,y.jsx)(Y.SvgIcon,{...Z(e)}),(0,y.jsxs)("span",{children:[" ",t," ",s&&(0,y.jsx)("strong",{children:s})]})]})}function or({checklist:e,onClick:t}){const s=e.every((e=>"good"===e.score));return(0,y.jsxs)(o.Fragment,{children:[e.map((e=>(0,y.jsx)(ir,{...e},e.label))),(0,y.jsx)("br",{}),!s&&(0,y.jsx)(Y.Button,{onClick:t,children:(0,r.__)("Improve your post with Yoast SEO","wordpress-seo")})]})}function rr(e){return(0,d.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,r.__)("Not available","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Not available","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Not available","wordpress-seo")};case"bad":return{className:"bad",screenReaderText:(0,r.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,r.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,r.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(G.interpreters.scoreToRating(e))}function nr(e,t){const{isKeywordAnalysisActive:s}=t.getPreferences();if(s){const s=rr(t.getReadabilityResults().overallScore);e.push({label:(0,r.__)("Readability analysis:","wordpress-seo"),score:s.className,scoreValue:s.screenReaderReadabilityText})}}function ar(e,t){const{isContentAnalysisActive:s}=t.getPreferences();if(s){const s=rr(t.getResultsForFocusKeyword().overallScore),i=p().isPremium;e.push({label:i?(0,r.__)("Premium SEO analysis:","wordpress-seo"):(0,r.__)("SEO analysis:","wordpress-seo"),score:s.className,scoreValue:s.screenReaderReadabilityText})}}function lr(e,t){const{isInclusiveLanguageAnalysisActive:s}=t.getPreferences();if(s){const s=rr(t.getInclusiveLanguageResults().overallScore);e.push({label:(0,r.__)("Inclusive language:","wordpress-seo"),score:s.className,scoreValue:s.screenReaderInclusiveLanguageText})}}tr.propTypes={error:h().object.isRequired},ir.propTypes={score:u.string.isRequired,label:u.string.isRequired,scoreValue:u.string},or.propTypes={checklist:h().array.isRequired,onClick:h().func.isRequired};const cr=(0,oe.compose)([(0,t.withSelect)((function(e){const t=e("yoast-seo/editor"),s=[];return ar(s,t),nr(s,t),lr(s,t),s.push(...Object.values(t.getChecklistItems())),{checklist:s}})),(0,t.withDispatch)((function(e){const{openGeneralSidebar:t}=e("core/edit-post");return{onClick:()=>{t("yoast-seo/seo-sidebar")}}}))])(or),dr=(0,oe.compose)([(0,t.withSelect)((e=>{const t=e("yoast-seo/editor"),s=rr(t.getResultsForFocusKeyword().overallScore),i=rr(t.getReadabilityResults().overallScore),{isKeywordAnalysisActive:o,isContentAnalysisActive:r}=t.getPreferences();let n,a;switch(i.className){case"good":n=V.colors.$color_good;break;case"ok":n=V.colors.$color_ok;break;default:n=V.colors.$color_bad}switch(s.className){case"good":a=V.colors.$color_good;break;case"ok":a=V.colors.$color_ok;break;default:a=V.colors.$color_bad}return{readabilityScoreColor:n,seoScoreColor:a,isKeywordAnalysisActive:o,isContentAnalysisActive:r}}))])(b);var pr;function ur(){return ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},ur.apply(this,arguments)}const hr=e=>_.createElement("svg",ur({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1600 1600"},e),pr||(pr=_.createElement("g",{fill:"none",fillRule:"evenodd"},_.createElement("path",{fill:"#1877f2",d:"M1600 800a800 800 0 1 0-925 790v-559H472V800h203V624c0-201 119-311 302-311 88 0 179 15 179 15v197h-101c-99 0-130 62-130 125v150h222l-36 231H925v559a800 800 0 0 0 675-790"}),_.createElement("path",{fill:"#fff",d:"M1147 800H925V650c0-63 31-125 130-125h101V328s-91-15-179-15c-183 0-302 110-302 311v176H472v231h203v559a806 806 0 0 0 250 0v-559h186z"}))));var gr;function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},mr.apply(this,arguments)}const yr=e=>_.createElement("svg",mr({xmlns:"http://www.w3.org/2000/svg",fill:"current",viewBox:"0 0 1200 1227"},e),gr||(gr=_.createElement("path",{d:"M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284h.026ZM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854v-.026Z"})));function fr({permalink:e}){const t=encodeURI(e);return(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)("div",{children:(0,r.__)("Share your post!","wordpress-seo")}),(0,y.jsxs)("ul",{className:"yoast-seo-social-share-buttons",children:[(0,y.jsx)("li",{children:(0,y.jsxs)("a",{href:"https://www.facebook.com/sharer/sharer.php?u="+t,target:"_blank",rel:"noopener noreferrer",children:[(0,y.jsx)(hr,{}),(0,r.__)("Facebook","wordpress-seo"),(0,y.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */ +(0,r.__)("You have %1$s activated on your site, automatically setting the Page type for your products to 'Item Page'. As a result, the Page type selection is disabled.","wordpress-seo"),"Yoast WooCommerce SEO")})]});var P,q},Po=h().arrayOf(h().shape({name:h().string,value:h().string}));Fo.propTypes={schemaPageTypeChange:h().func,schemaPageTypeSelected:h().string,pageTypeOptions:Po.isRequired,schemaArticleTypeChange:h().func,schemaArticleTypeSelected:h().string,articleTypeOptions:Po.isRequired,showArticleTypeInput:h().bool.isRequired,additionalHelpTextLink:h().string.isRequired,helpTextLink:h().string.isRequired,helpTextTitle:h().string.isRequired,helpTextDescription:h().string.isRequired,postTypeName:h().string.isRequired,displayFooter:h().bool,defaultPageType:h().string.isRequired,defaultArticleType:h().string.isRequired,location:h().string.isRequired,isNewsEnabled:h().bool};const qo=({isMetabox:e,showArticleTypeInput:t=!1,articleTypeLabel:s="",additionalHelpTextLink:i="",pageTypeLabel:r,helpTextLink:n,helpTextTitle:a,helpTextDescription:l,postTypeName:c,displayFooter:d=!1,loadSchemaArticleData:p,loadSchemaPageData:u,location:h,...g})=>{const m=(0,y.jsx)(Fo,{showArticleTypeInput:t,articleTypeLabel:s,additionalHelpTextLink:i,pageTypeLabel:r,helpTextLink:n,helpTextTitle:a,helpTextDescription:l,postTypeName:c,displayFooter:d,loadSchemaArticleData:p,loadSchemaPageData:u,location:h,...g});return e?(0,o.createPortal)((0,y.jsx)(Ro,{children:m}),document.getElementById("wpseo-meta-section-schema")):m};qo.propTypes={isMetabox:h().bool.isRequired,showArticleTypeInput:h().bool,articleTypeLabel:h().string,additionalHelpTextLink:h().string,pageTypeLabel:h().string.isRequired,helpTextLink:h().string.isRequired,helpTextTitle:h().string.isRequired,helpTextDescription:h().string.isRequired,postTypeName:h().string.isRequired,displayFooter:h().bool,loadSchemaArticleData:h().func.isRequired,loadSchemaPageData:h().func.isRequired,location:h().string.isRequired};const Mo=qo;class Oo{static get articleTypeInput(){return document.getElementById("yoast_wpseo_schema_article_type")}static get defaultArticleType(){return Oo.articleTypeInput.getAttribute("data-default")}static get articleType(){return Oo.articleTypeInput.value}static set articleType(e){Oo.articleTypeInput.value=e}static get pageTypeInput(){return document.getElementById("yoast_wpseo_schema_page_type")}static get defaultPageType(){return Oo.pageTypeInput.getAttribute("data-default")}static get pageType(){return Oo.pageTypeInput.value}static set pageType(e){Oo.pageTypeInput.value=e}}const No=e=>{const t=null!==Oo.articleTypeInput;(0,o.useEffect)((()=>{e.loadSchemaPageData(),t&&e.loadSchemaArticleData()}),[]);const{pageTypeOptions:s,articleTypeOptions:i}=window.wpseoScriptData.metabox.schema,n={articleTypeLabel:(0,r.__)("Article type","wordpress-seo"),pageTypeLabel:(0,r.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,r.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,r.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:t,pageTypeOptions:s,articleTypeOptions:i},a={...e,...n,...(l=e.location,"metabox"===l?{helpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.page_type"],isMetabox:!0}:{helpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.page_type"],isMetabox:!1})};var l;return(0,y.jsx)(Mo,{...a})};No.propTypes={displayFooter:h().bool.isRequired,schemaPageTypeSelected:h().string.isRequired,schemaArticleTypeSelected:h().string.isRequired,defaultArticleType:h().string.isRequired,defaultPageType:h().string.isRequired,loadSchemaPageData:h().func.isRequired,loadSchemaArticleData:h().func.isRequired,schemaPageTypeChange:h().func.isRequired,schemaArticleTypeChange:h().func.isRequired,location:h().string.isRequired};const Do=(0,oe.compose)([(0,t.withSelect)((e=>{const{getPreferences:t,getPageType:s,getDefaultPageType:i,getArticleType:o,getDefaultArticleType:r}=e("yoast-seo/editor"),{displaySchemaSettingsFooter:n,isNewsEnabled:a}=t();return{displayFooter:n,isNewsEnabled:a,schemaPageTypeSelected:s(),schemaArticleTypeSelected:o(),defaultArticleType:r(),defaultPageType:i()}})),(0,t.withDispatch)((e=>{const{setPageType:t,setArticleType:s,getSchemaPageData:i,getSchemaArticleData:o}=e("yoast-seo/editor");return{loadSchemaPageData:i,loadSchemaArticleData:o,schemaPageTypeChange:t,schemaArticleTypeChange:s}})),ds()])(No),Uo=window.yoast.relatedKeyphraseSuggestions;function Wo({requestLimitReached:e,isSuccess:t,response:s,requestHasData:i,relatedKeyphrases:o}){return e?"requestLimitReached":!t&&function(e){return"invalid_json"===(null==e?void 0:e.code)||"fetch_error"===(null==e?void 0:e.code)||!(0,d.isEmpty)(e)&&"error"in e}(s)?"requestFailed":i?function(e){return e&&e.length>=4}(o)?"maxRelatedKeyphrases":null:"requestEmpty"}function $o({keyphrase:e="",relatedKeyphrases:t=[],renderAction:s=null,requestLimitReached:i=!1,countryCode:r,setCountry:n,newRequest:a,response:l={},isRtl:c=!1,userLocale:d="en_US",isPending:p=!1,isSuccess:u=!1,requestHasData:h=!0,isPremium:g=!1,semrushUpsellLink:m="",premiumUpsellLink:f=""}){var w,b;const[x,v]=(0,o.useState)(r),_=(0,o.useCallback)((async()=>{a(r,e),v(r)}),[r,e,a]);return(0,y.jsxs)(k.Root,{context:{isRtl:c},children:[!i&&!g&&(0,y.jsx)(Uo.PremiumUpsell,{url:f,className:"yst-mb-4"}),!i&&(0,y.jsx)(Uo.CountrySelector,{countryCode:r,activeCountryCode:x,onChange:n,onClick:_,className:"yst-mb-4",userLocale:d.split("_")[0]}),!p&&(0,y.jsx)(Uo.UserMessage,{variant:Wo({requestLimitReached:i,isSuccess:u,response:l,requestHasData:h,relatedKeyphrases:t}),upsellLink:m}),(0,y.jsx)(Uo.KeyphrasesTable,{relatedKeyphrases:t,columnNames:null==l||null===(w=l.results)||void 0===w?void 0:w.columnNames,data:null==l||null===(b=l.results)||void 0===b?void 0:b.rows,isPending:p,renderButton:s,className:"yst-mt-4"})]})}$o.propTypes={keyphrase:h().string,relatedKeyphrases:h().array,renderAction:h().func,requestLimitReached:h().bool,countryCode:h().string.isRequired,setCountry:h().func.isRequired,newRequest:h().func.isRequired,response:h().object,isRtl:h().bool,userLocale:h().string,isPending:h().bool,isSuccess:h().bool,requestHasData:h().bool,isPremium:h().bool,semrushUpsellLink:h().string,premiumUpsellLink:h().string};const Bo=(0,oe.compose)([(0,t.withSelect)((e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:s,getSEMrushRequestLimitReached:i,getSEMrushRequestResponse:o,getSEMrushRequestIsSuccess:r,getSEMrushIsRequestPending:n,getSEMrushRequestHasData:a,getPreference:l,getIsPremium:c,selectLinkParams:d}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:s(),requestLimitReached:i(),response:o(),isSuccess:r(),isPending:n(),requestHasData:a(),isRtl:l("isRtl",!1),userLocale:l("userLocale","en_US"),isPremium:c(),semrushUpsellLink:(0,Ds.addQueryArgs)("https://yoa.st/semrush-prices",d()),premiumUpsellLink:(0,Ds.addQueryArgs)("https://yoa.st/413",d())}})),(0,t.withDispatch)((e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:s}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{s(e,t)}}}))])($o),Ko=({isOpen:e,closeModal:t,id:s,upsellLink:i})=>(0,y.jsx)(Js,{isOpen:e,onClose:t,id:s,upsellLink:i,title:(0,r.__)("Cover more search intent with related keyphrases","wordpress-seo"),description:(0,r.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles - helping it get discovered by a wider audience.","wordpress-seo"),note:(0,r.__)("Fine-tune your content for every audience","wordpress-seo"),modalTitle:(0,r.__)("Add more keyphrases with Premium","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),Ho=()=>{const[e,,,t,s]=(0,k.useToggleState)(!1),i=(0,o.useContext)(l.LocationContext),{locationContext:n}=(0,l.useRootContext)(),a=(0,k.useSvgAria)(),c=wpseoAdminL10n["sidebar"===i.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Ko,{isOpen:e,closeModal:s,upsellLink:(0,Ds.addQueryArgs)(c,{context:n}),id:`yoast-additional-keyphrases-modal-${i}`}),"sidebar"===i&&(0,y.jsx)(we,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,r.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:V.colors.$color_grey_medium_dark},onClick:t,children:(0,y.jsx)("div",{className:"yst-root",children:(0,y.jsx)(k.Badge,{size:"small",variant:"upsell",children:(0,y.jsx)(Xs,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...a})})})}),"metabox"===i&&(0,y.jsx)("div",{className:"yst-root",children:(0,y.jsxs)(le,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:t,children:[(0,y.jsx)(Y.SvgIcon,{icon:"plus",color:V.colors.$color_grey_medium_dark}),(0,y.jsx)(le.Text,{children:(0,r.__)("Add related keyphrase","wordpress-seo")}),(0,y.jsxs)(k.Badge,{size:"small",variant:"upsell",children:[(0,y.jsx)(Xs,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...a}),(0,y.jsx)("span",{children:"Premium"})]})]})})]})},zo=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),Yo=({store:e="yoast-seo/editor",location:s="sidebar"})=>{const i="black-friday-promotion",n=(0,t.useSelect)((t=>t(e).getIsPremium()),[e]),a=(0,t.useSelect)((t=>t(e).selectLinkParams()),[e]),l=(0,t.useSelect)((t=>t(e).isPromotionActive(i)),[e]),c=(0,t.useSelect)((t=>t(e).getIsWooCommerceActive()),[e]),d=(0,t.useSelect)((t=>t(e).isAlertDismissed(i)),[e]),p=(0,t.useSelect)((t=>t(e).getIsElementorEditor()),[e]),u=(0,o.useCallback)((()=>{(0,t.dispatch)(e).dismissAlert(i)}),[e,i]),h=(0,Ds.addQueryArgs)("https://yoa.st/black-friday-sale",a),g=(0,k.useSvgAria)();return n||!l||d?null:(0,y.jsx)("div",{className:"yst-root",children:(0,y.jsxs)("div",{className:B()("sidebar"!==s||p?"yst-mx-4":"yst-mx-0","yst-border yst-rounded-lg yst-p-4 yst-max-w-md yst-mt-6 yst-relative yst-shadow-sm",c?"yst-border-woo-light":"yst-border-primary-200"),children:[(0,y.jsxs)(k.Badge,{size:"small",className:"yst-text-[10px] yst-bg-black yst-text-amber-300 yst-absolute yst--top-2",children:[(0,r.__)("BLACK FRIDAY","wordpress-seo")," "]}),(0,y.jsxs)("button",{className:"yst-absolute yst-top-4 yst-end-4",onClick:u,children:[(0,y.jsx)(zo,{className:"yst-w-4 yst-text-slate-400 yst-shrink-0 yst--mt-0.5"}),(0,y.jsx)("div",{className:"yst-sr-only",children:(0,r.__)("Dismiss","wordpress-seo")})]}),(0,y.jsxs)("div",{className:B()("sidebar"===s?"":"yst-flex yst-justify-between yst-gap-3"),children:[(0,y.jsxs)("div",{className:c?"yst-text-woo-light":"yst-text-primary-500",children:[(0,y.jsx)("div",{className:"yst-text-2xl yst-font-bold",children:(0,r.__)("30% OFF","wordpress-seo")}),(0,y.jsx)("div",{className:"yst-flex yst-gap-2 yst-font-semibold yst-text-tiny",children:c?(0,y.jsxs)(y.Fragment,{children:["Yoast WooCommerce SEO ",(0,y.jsx)(Qs,{className:"yst-w-4 yst-scale-x-[-1]",...g})]}):(0,y.jsxs)(y.Fragment,{children:[" Yoast SEO Premium ",(0,y.jsx)(z,{className:"yst-w-4",...g})]})})]}),(0,y.jsx)("div",{className:"yst-flex yst-items-end",children:(0,y.jsxs)(k.Button,{as:"a",className:B()("sidebar"===s?"yst-w-full":"yst-w-[140px]","yst-flex yst-gap-1 yst-w-[140px] yst-h-7 yst-mt-4"),variant:"upsell",href:h,target:"_blank",rel:"noreferrer",children:[(0,r.__)("Buy now!","wordpress-seo"),(0,y.jsx)(R,{className:"yst-w-4 rtl:yst-rotate-180",...g})]})})]})]})})};function Vo(){return window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor}Yo.propTypes={store:h().string,location:h().oneOf(["sidebar","metabox"])};const Go=()=>{const{editorMode:e,activeAIButtonId:s}=(0,t.useSelect)((e=>({editorMode:e("core/edit-post").getEditorMode(),activeAIButtonId:e("yoast-seo/editor").getActiveAIFixesButton()})),[]),{setMarkerStatus:i}=(0,t.useDispatch)("yoast-seo/editor");(0,o.useEffect)((()=>(i("visual"===e&&s||"text"===e?"disabled":"enabled"),()=>{i("disabled")})),[e,s])},Zo=(Xo=Yo,e=>!(()=>{var e,s;const i=(0,t.select)("yoast-seo/editor").getIsPremium(),o=(0,t.select)("yoast-seo/editor").getWarningMessage();return(i&&null!==(e=null===(s=(0,t.select)("yoast-seo-premium/editor"))||void 0===s?void 0:s.getMetaboxWarning())&&void 0!==e?e:[]).length>0||o.length>0})()&&(0,y.jsx)(Xo,{...e}));var Xo;function Qo({settings:e}){const{isTerm:s}=(0,t.useSelect)((e=>({isTerm:e("yoast-seo/editor").getIsTerm(),isProduct:e("yoast-seo/editor").getIsProduct(),isWooCommerceActive:e("yoast-seo/editor").getIsWooCommerceActive()})),[]),i=Vo();return i&&Go(),(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)(x.Fill,{name:"YoastMetabox",children:[(0,y.jsx)(si,{renderPriority:1,children:(0,y.jsx)(Es,{})},"warning"),(0,y.jsx)(si,{renderPriority:2,children:(0,y.jsx)(Zo,{location:"metabox"})},"time-constrained-notification"),e.isKeywordAnalysisActive&&(0,y.jsxs)(si,{renderPriority:8,children:[(0,y.jsx)(cs.KeywordInput,{isSEMrushIntegrationActive:e.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,y.jsx)(x.Fill,{name:"YoastRelatedKeyphrases",children:(0,y.jsx)(Bo,{})})]},"keyword-input"),(0,y.jsx)(si,{renderPriority:9,children:(0,y.jsx)(As,{id:"yoast-snippet-editor-metabox",title:(0,r.__)("Search appearance","wordpress-seo"),initialIsOpen:!0,children:(0,y.jsx)(Cs,{hasPaperStyle:!1})})},"search-appearance"),e.isContentAnalysisActive&&(0,y.jsx)(si,{renderPriority:10,children:(0,y.jsx)(cs.ReadabilityAnalysis,{shouldUpsell:e.shouldUpsell})},"readability-analysis"),e.isKeywordAnalysisActive&&(0,y.jsx)(si,{renderPriority:20,children:(0,y.jsx)(o.Fragment,{children:(0,y.jsx)(cs.SeoAnalysis,{shouldUpsell:e.shouldUpsell})})},"seo-analysis"),e.isInclusiveLanguageAnalysisActive&&(0,y.jsx)(si,{renderPriority:21,children:(0,y.jsx)(cs.InclusiveLanguageAnalysis,{})},"inclusive-language-analysis"),e.isKeywordAnalysisActive&&(0,y.jsx)(si,{renderPriority:22,children:e.shouldUpsell&&(0,y.jsx)(Ho,{})},"additional-keywords-upsell"),e.isKeywordAnalysisActive&&e.isWincherIntegrationActive&&(0,y.jsx)(si,{renderPriority:23,children:(0,y.jsx)(ls,{location:"metabox"})},"wincher-seo-performance"),e.shouldUpsell&&!s&&(0,y.jsx)(si,{renderPriority:25,children:(0,y.jsx)(ei,{})},"internal-linking-suggestions-upsell"),e.isCornerstoneActive&&(0,y.jsx)(si,{renderPriority:30,children:(0,y.jsx)(ps,{})},"cornerstone"),e.displayAdvancedTab&&(0,y.jsx)(si,{renderPriority:40,children:(0,y.jsx)(As,{id:"collapsible-advanced-settings",title:(0,r.__)("Advanced","wordpress-seo"),children:(0,y.jsx)(di,{})})},"advanced"),e.displaySchemaSettings&&(0,y.jsx)(si,{renderPriority:50,children:(0,y.jsx)(Do,{})},"schema"),i&&(0,y.jsx)(si,{renderPriority:24,children:(0,y.jsx)(cs.ContentBlocks,{})},"content-blocks"),(0,y.jsx)(si,{renderPriority:-1,children:(0,y.jsx)(So,{target:"wpseo-section-social"})},"social"),e.isInsightsEnabled&&(0,y.jsx)(si,{renderPriority:52,children:(0,y.jsx)(Zs,{location:"metabox"})},"insights")]})})}Qo.propTypes={settings:h().object.isRequired};const Jo=(0,oe.compose)([(0,t.withSelect)(((e,t)=>{const{getPreferences:s}=e("yoast-seo/editor");return{settings:s(),store:t.store}}))])(Qo);function er({target:e,store:t,theme:s}){return(0,y.jsxs)(X,{target:e,children:[(0,y.jsx)(ie,{store:t,theme:s}),(0,y.jsx)(Jo,{store:t,theme:s})]})}er.propTypes={target:h().string.isRequired,store:h().object.isRequired,theme:h().object.isRequired};const tr=({error:e})=>{const s=(0,o.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),i=(0,t.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/sidebar-error-support")),[]),r=(0,t.useSelect)((e=>e("yoast-seo/editor").getPreference("isRtl",!1)),[]);return(0,y.jsx)(k.Root,{context:{isRtl:r},children:(0,y.jsx)(I,{error:e,children:(0,y.jsx)(I.VerticalButtons,{supportLink:i,handleRefreshClick:s})})})};function sr({theme:e}){return(0,y.jsx)(se,{theme:e,location:"sidebar",children:(0,y.jsx)(k.ErrorBoundary,{FallbackComponent:tr,children:(0,y.jsx)(x.Slot,{name:"YoastSidebar",children:e=>v(e)})})})}function ir({score:e,label:t,scoreValue:s=""}){return(0,y.jsxs)("div",{className:"yoast-analysis-check",children:[(0,y.jsx)(Y.SvgIcon,{...Z(e)}),(0,y.jsxs)("span",{children:[" ",t," ",s&&(0,y.jsx)("strong",{children:s})]})]})}function or({checklist:e,onClick:t}){const s=e.every((e=>"good"===e.score));return(0,y.jsxs)(o.Fragment,{children:[e.map((e=>(0,y.jsx)(ir,{...e},e.label))),(0,y.jsx)("br",{}),!s&&(0,y.jsx)(Y.Button,{onClick:t,children:(0,r.__)("Improve your post with Yoast SEO","wordpress-seo")})]})}function rr(e){return(0,d.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,r.__)("Not available","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Not available","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Not available","wordpress-seo")};case"bad":return{className:"bad",screenReaderText:(0,r.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,r.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,r.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(G.interpreters.scoreToRating(e))}function nr(e,t){const{isKeywordAnalysisActive:s}=t.getPreferences();if(s){const s=rr(t.getReadabilityResults().overallScore);e.push({label:(0,r.__)("Readability analysis:","wordpress-seo"),score:s.className,scoreValue:s.screenReaderReadabilityText})}}function ar(e,t){const{isContentAnalysisActive:s}=t.getPreferences();if(s){const s=rr(t.getResultsForFocusKeyword().overallScore),i=p().isPremium;e.push({label:i?(0,r.__)("Premium SEO analysis:","wordpress-seo"):(0,r.__)("SEO analysis:","wordpress-seo"),score:s.className,scoreValue:s.screenReaderReadabilityText})}}function lr(e,t){const{isInclusiveLanguageAnalysisActive:s}=t.getPreferences();if(s){const s=rr(t.getInclusiveLanguageResults().overallScore);e.push({label:(0,r.__)("Inclusive language:","wordpress-seo"),score:s.className,scoreValue:s.screenReaderInclusiveLanguageText})}}tr.propTypes={error:h().object.isRequired},ir.propTypes={score:u.string.isRequired,label:u.string.isRequired,scoreValue:u.string},or.propTypes={checklist:h().array.isRequired,onClick:h().func.isRequired};const cr=(0,oe.compose)([(0,t.withSelect)((function(e){const t=e("yoast-seo/editor"),s=[];return ar(s,t),nr(s,t),lr(s,t),s.push(...Object.values(t.getChecklistItems())),{checklist:s}})),(0,t.withDispatch)((function(e){const{openGeneralSidebar:t}=e("core/edit-post");return{onClick:()=>{t("yoast-seo/seo-sidebar")}}}))])(or),dr=(0,oe.compose)([(0,t.withSelect)((e=>{const t=e("yoast-seo/editor"),s=rr(t.getResultsForFocusKeyword().overallScore),i=rr(t.getReadabilityResults().overallScore),{isKeywordAnalysisActive:o,isContentAnalysisActive:r}=t.getPreferences();let n,a;switch(i.className){case"good":n=V.colors.$color_good;break;case"ok":n=V.colors.$color_ok;break;default:n=V.colors.$color_bad}switch(s.className){case"good":a=V.colors.$color_good;break;case"ok":a=V.colors.$color_ok;break;default:a=V.colors.$color_bad}return{readabilityScoreColor:n,seoScoreColor:a,isKeywordAnalysisActive:o,isContentAnalysisActive:r}}))])(b);var pr;function ur(){return ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},ur.apply(this,arguments)}const hr=e=>_.createElement("svg",ur({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1600 1600"},e),pr||(pr=_.createElement("g",{fill:"none",fillRule:"evenodd"},_.createElement("path",{fill:"#1877f2",d:"M1600 800a800 800 0 1 0-925 790v-559H472V800h203V624c0-201 119-311 302-311 88 0 179 15 179 15v197h-101c-99 0-130 62-130 125v150h222l-36 231H925v559a800 800 0 0 0 675-790"}),_.createElement("path",{fill:"#fff",d:"M1147 800H925V650c0-63 31-125 130-125h101V328s-91-15-179-15c-183 0-302 110-302 311v176H472v231h203v559a806 806 0 0 0 250 0v-559h186z"}))));var gr;function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},mr.apply(this,arguments)}const yr=e=>_.createElement("svg",mr({xmlns:"http://www.w3.org/2000/svg",fill:"current",viewBox:"0 0 1200 1227"},e),gr||(gr=_.createElement("path",{d:"M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284h.026ZM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854v-.026Z"})));function fr({permalink:e}){const t=encodeURI(e);return(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)("div",{children:(0,r.__)("Share your post!","wordpress-seo")}),(0,y.jsxs)("ul",{className:"yoast-seo-social-share-buttons",children:[(0,y.jsx)("li",{children:(0,y.jsxs)("a",{href:"https://www.facebook.com/sharer/sharer.php?u="+t,target:"_blank",rel:"noopener noreferrer",children:[(0,y.jsx)(hr,{}),(0,r.__)("Facebook","wordpress-seo"),(0,y.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */ (0,r.__)("(Opens in a new browser tab)","wordpress-seo")})]})}),(0,y.jsx)("li",{children:(0,y.jsxs)("a",{href:"https://twitter.com/share?url="+t,target:"_blank",rel:"noopener noreferrer",className:"x-share",children:[(0,y.jsx)(yr,{}),(0,r.__)("X","wordpress-seo"),(0,y.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */ (0,r.__)("(Opens in a new browser tab)","wordpress-seo")})]})})]})]})}fr.propTypes={permalink:h().string.isRequired};const wr=(0,oe.compose)([(0,t.withSelect)((e=>({permalink:e("core/editor").getPermalink()})))])(fr),br=_.forwardRef((function(e,t){return _.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),_.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),xr=window.wp.hooks,kr=e=>{var s,i;const r=null===(s=(0,t.useDispatch)("core/edit-post"))||void 0===s?void 0:s.openGeneralSidebar,n=null===(i=(0,t.useDispatch)("core/editor"))||void 0===i?void 0:i.closePublishSidebar,{openEditorModal:a}=(0,t.useDispatch)("yoast-seo/editor");return(0,o.useCallback)((()=>{n(),r("yoast-seo/seo-sidebar"),e&&a("yoast-search-appearance-modal")}),[n,r,a])},vr="yoast-seo/editor";function _r({isSeoDataDefault:e}){const s=(0,t.select)(vr).getPostType(),i=(0,o.useMemo)((()=>(null==e?void 0:e.isAllTitlesDefault)||!1),[e]),n=(0,o.useMemo)((()=>(null==e?void 0:e.isAllDescriptionsDefault)||!1),[e]),a=(0,o.useMemo)((()=>"post"===s&&(i||n)),[s,i,n]),l=(0,o.useMemo)((()=>i&&n?(0,r.__)("custom SEO titles and meta descriptions","wordpress-seo"):i?(0,r.__)("custom SEO titles","wordpress-seo"):n?(0,r.__)("custom meta descriptions","wordpress-seo"):void 0),[i,n]),c=(0,o.useMemo)((()=>i&&n?(0,r.__)("quick optimized SEO titles and meta descriptions","wordpress-seo"):i?(0,r.__)("quick optimized SEO titles","wordpress-seo"):n?(0,r.__)("quick optimized meta descriptions","wordpress-seo"):void 0),[i,n]),d=(0,o.useMemo)((()=>(0,r.sprintf)(/* translators: %1$s expands to "custom SEO titles" or "custom meta descriptions" or both. */ (0,r.__)("Stand out in the search results and attract more visitors by adding %1$s.","wordpress-seo"),l)),[l]),p=(0,o.useMemo)((()=>S((0,r.sprintf)( @@ -1,5 +1,4 @@ -(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var r=typeof s;if("string"===r||"number"===r)e.push(s);else if(Array.isArray(s)){if(s.length){var n=o.apply(null,s);n&&e.push(n)}}else if("object"===r){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var a in s)i.call(s,a)&&s[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(s=function(){return o}.apply(t,[]))||(e.exports=s)}()}},t={};function s(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.element,t=window.wp.components,i=window.yoast.propTypes;var o=s.n(i);const r=window.yoast.uiLibrary,n=window.lodash,a=window.wp.data;const l=window.React;var c=s.n(l);l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));const d=window.wp.i18n,p=(t,s)=>{try{return(0,e.createInterpolateElement)(t,s)}catch(e){return console.error("Error in translation for:",t,e),t}},u=window.ReactJSXRuntime;o().string.isRequired;const h=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),m=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));o().string.isRequired,o().string.isRequired,o().shape({src:o().string.isRequired,width:o().string,height:o().string}).isRequired,o().shape({value:o().bool.isRequired,status:o().string.isRequired,set:o().func.isRequired}).isRequired,o().string,o().string,o().string;const g=({handleRefreshClick:e,supportLink:t})=>(0,u.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,u.jsx)(r.Button,{onClick:e,children:(0,d.__)("Refresh this page","wordpress-seo")}),(0,u.jsx)(r.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,d.__)("Contact support","wordpress-seo")})]});g.propTypes={handleRefreshClick:o().func.isRequired,supportLink:o().string.isRequired};const y=({handleRefreshClick:e,supportLink:t})=>(0,u.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,u.jsx)(r.Button,{className:"yst-order-last",onClick:e,children:(0,d.__)("Refresh this page","wordpress-seo")}),(0,u.jsx)(r.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,d.__)("Contact support","wordpress-seo")})]});y.propTypes={handleRefreshClick:o().func.isRequired,supportLink:o().string.isRequired};const w=({error:e,children:t=null})=>(0,u.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,u.jsx)(r.Title,{children:(0,d.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,u.jsx)("p",{children:(0,d.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,u.jsx)(r.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,d.__)("Undefined error message.","wordpress-seo")}),(0,u.jsx)("p",{children:(0,d.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});w.propTypes={error:o().object.isRequired,children:o().node},w.VerticalButtons=y,w.HorizontalButtons=g;o().string,o().node.isRequired,o().node.isRequired,o().node,o().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const f=window.ReactDOM;var x,b,v;(b=x||(x={})).Pop="POP",b.Push="PUSH",b.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(v||(v={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const k=["post","put","patch","delete"],_=(new Set(k),["get",...k]);new Set(_),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),l.Component,l.startTransition,new Promise((()=>{})),l.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var T,R,j,S;new Map,l.startTransition,f.flushSync,l.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(S=T||(T={})).UseScrollRestoration="useScrollRestoration",S.UseSubmit="useSubmit",S.UseSubmitFetcher="useSubmitFetcher",S.UseFetcher="useFetcher",S.useViewTransitionState="useViewTransitionState",(j=R||(R={})).UseFetcher="useFetcher",j.UseFetchers="useFetchers",j.UseScrollRestoration="useScrollRestoration",o().string.isRequired,o().string;o().string.isRequired,o().node;l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),(0,d.__)("AI tools included","wordpress-seo"),(0,d.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ -(0,d.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,d.__)("24/7 support","wordpress-seo"),(0,d.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,d.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,d.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,d.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,d.__)("Internal links and redirect management, easy","wordpress-seo"),(0,d.__)("Access to friendly help when you need it, day or night","wordpress-seo");l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}));var I=s(4184),C=s.n(I);o().string.isRequired,o().object.isRequired,o().func.isRequired;const E=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}));var L;function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},A.apply(this,arguments)}const q=e=>l.createElement("svg",A({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),L||(L=l.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));o().string.isRequired,o().object,o().func.isRequired,o().bool.isRequired,o().string.isRequired,o().object.isRequired,o().string.isRequired,o().func.isRequired,o().bool.isRequired,l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),o().bool.isRequired,o().func,o().func,o().string.isRequired,o().string.isRequired,o().string.isRequired,o().string.isRequired;window.yoast.reactHelmet;o().string.isRequired,o().shape({src:o().string.isRequired,width:o().string,height:o().string}).isRequired,o().shape({value:o().bool.isRequired,status:o().string.isRequired,set:o().func.isRequired}).isRequired,o().bool,l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),o().bool.isRequired,o().func.isRequired,o().func,o().string,o().func.isRequired,o().string.isRequired,o().string.isRequired,o().string.isRequired,o().string.isRequired;const F=window.yoast.componentsNew,P=window.yoast.styleGuide,M=window.yoast.analysis;function D(e){switch(e){case"loading":return{icon:"loading-spinner",color:P.colors.$color_green_medium_light};case"not-set":return{icon:"seo-score-none",color:P.colors.$color_score_icon};case"noindex":return{icon:"seo-score-none",color:P.colors.$color_noindex};case"good":return{icon:"seo-score-good",color:P.colors.$color_green_medium};case"ok":return{icon:"seo-score-ok",color:P.colors.$color_ok};default:return{icon:"seo-score-bad",color:P.colors.$color_red}}}function O({target:t,children:s}){let i=t;return"string"==typeof t&&(i=document.getElementById(t)),i?(0,e.createPortal)(s,i):null}O.propTypes={target:o().oneOfType([o().string,o().object]).isRequired,children:o().node.isRequired};const N=({target:e,scoreIndicator:t})=>(0,u.jsx)(O,{target:e,children:(0,u.jsx)(F.SvgIcon,{...D(t)})});N.propTypes={target:o().string.isRequired,scoreIndicator:o().string.isRequired};const U=N,W=({error:t})=>{const s=(0,e.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),i=(0,a.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/metabox-error-support")),[]),o=(0,a.useSelect)((e=>e("yoast-seo/editor").getPreference("isRtl",!1)),[]);return(0,e.useEffect)((()=>{document.querySelectorAll('[id^="wpseo-meta-tab-"]').forEach((e=>{!function(e){const t=document.querySelector(`#${e}`);null!==t&&(t.style.opacity="0.5",t.style.pointerEvents="none",t.setAttribute("aria-disabled","true"),t.classList.contains("yoast-active-tab")&&t.classList.remove("yoast-active-tab"))}(e.id)}))}),[]),(0,u.jsx)(r.Root,{context:{isRtl:o},children:(0,u.jsxs)(w,{error:t,children:[(0,u.jsx)(w.HorizontalButtons,{supportLink:i,handleRefreshClick:s}),(0,u.jsx)(U,{target:"wpseo-seo-score-icon",scoreIndicator:"not-set"}),(0,u.jsx)(U,{target:"wpseo-readability-score-icon",scoreIndicator:"not-set"}),(0,u.jsx)(U,{target:"wpseo-inclusive-language-score-icon",scoreIndicator:"not-set"})]})})};W.propTypes={error:o().object.isRequired};const $=window.yoast.externals.contexts,B=window.yoast.styledComponents;var H=s.n(B);const K=({theme:e,location:t,children:s})=>(0,u.jsx)($.LocationProvider,{value:t,children:(0,u.jsx)(B.ThemeProvider,{theme:e,children:s})});K.propTypes={theme:o().object.isRequired,location:o().oneOf(["sidebar","metabox","modal"]).isRequired,children:o().node.isRequired};const Y=K;function V({theme:e}){return(0,u.jsx)(Y,{theme:e,location:"metabox",children:(0,u.jsx)(r.ErrorBoundary,{FallbackComponent:W,children:(0,u.jsx)(t.Slot,{name:"YoastMetabox",children:e=>{return void 0===(t=e).length?t:(0,n.flatten)(t).sort(((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority));var t}})})})}const z=window.wp.compose,G=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{d:"M2 11a1 1 0 011-1h2a1 1 0 011 1v5a1 1 0 01-1 1H3a1 1 0 01-1-1v-5zM8 7a1 1 0 011-1h2a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1V7zM14 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1h-2a1 1 0 01-1-1V4z"}))})),Z=({className:e="",...t})=>(0,u.jsx)("span",{className:C()("yst-grow yst-overflow-hidden yst-overflow-ellipsis yst-whitespace-nowrap yst-font-wp","yst-text-[#555] yst-text-base yst-leading-[normal] yst-subpixel-antialiased yst-text-start",e),...t});Z.displayName="MetaboxButton.Text",Z.propTypes={className:o().string};const X=({className:e="",...t})=>(0,u.jsx)("button",{type:"button",className:C()("yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pe-4 yst-ps-6 yst-space-x-2 rtl:yst-space-x-reverse","yst-border-t yst-border-t-[rgb(0,0,0,0.2)] yst-rounded-none yst-transition-all hover:yst-bg-[#f0f0f0]","focus:yst-outline focus:yst-outline-[1px] focus:yst-outline-[color:#0066cd] focus:-yst-outline-offset-1 focus:yst-shadow-[0_0_3px_rgba(8,74,103,0.8)]",e),...t});X.propTypes={className:o().string},X.Text=Z;const Q=window.yoast.helpers,J=H().div` +(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var r=typeof s;if("string"===r||"number"===r)e.push(s);else if(Array.isArray(s)){if(s.length){var n=o.apply(null,s);n&&e.push(n)}}else if("object"===r){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var a in s)i.call(s,a)&&s[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(s=function(){return o}.apply(t,[]))||(e.exports=s)}()}},t={};function s(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.element,t=window.wp.components,i=window.yoast.propTypes;var o=s.n(i);const r=window.yoast.uiLibrary,n=window.lodash,a=window.wp.data;const l=window.React;var c=s.n(l);l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));const d=window.wp.i18n,p=(t,s)=>{try{return(0,e.createInterpolateElement)(t,s)}catch(e){return console.error("Error in translation for:",t,e),t}},u=window.ReactJSXRuntime;o().string.isRequired;const h=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),g=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));o().string.isRequired,o().string.isRequired,o().shape({src:o().string.isRequired,width:o().string,height:o().string}).isRequired,o().shape({value:o().bool.isRequired,status:o().string.isRequired,set:o().func.isRequired}).isRequired,o().string,o().string,o().string;const m=({handleRefreshClick:e,supportLink:t})=>(0,u.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,u.jsx)(r.Button,{onClick:e,children:(0,d.__)("Refresh this page","wordpress-seo")}),(0,u.jsx)(r.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,d.__)("Contact support","wordpress-seo")})]});m.propTypes={handleRefreshClick:o().func.isRequired,supportLink:o().string.isRequired};const y=({handleRefreshClick:e,supportLink:t})=>(0,u.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,u.jsx)(r.Button,{className:"yst-order-last",onClick:e,children:(0,d.__)("Refresh this page","wordpress-seo")}),(0,u.jsx)(r.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,d.__)("Contact support","wordpress-seo")})]});y.propTypes={handleRefreshClick:o().func.isRequired,supportLink:o().string.isRequired};const w=({error:e,children:t=null})=>(0,u.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,u.jsx)(r.Title,{children:(0,d.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,u.jsx)("p",{children:(0,d.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,u.jsx)(r.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,d.__)("Undefined error message.","wordpress-seo")}),(0,u.jsx)("p",{children:(0,d.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});w.propTypes={error:o().object.isRequired,children:o().node},w.VerticalButtons=y,w.HorizontalButtons=m;o().string,o().node.isRequired,o().node.isRequired,o().node,o().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const f=window.ReactDOM;var x,b,v;(b=x||(x={})).Pop="POP",b.Push="PUSH",b.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(v||(v={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const k=["post","put","patch","delete"],_=(new Set(k),["get",...k]);new Set(_),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),l.Component,l.startTransition,new Promise((()=>{})),l.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var T,R,j,S;new Map,l.startTransition,f.flushSync,l.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(S=T||(T={})).UseScrollRestoration="useScrollRestoration",S.UseSubmit="useSubmit",S.UseSubmitFetcher="useSubmitFetcher",S.UseFetcher="useFetcher",S.useViewTransitionState="useViewTransitionState",(j=R||(R={})).UseFetcher="useFetcher",j.UseFetchers="useFetchers",j.UseScrollRestoration="useScrollRestoration",o().string.isRequired,o().string;o().string.isRequired,o().node;const I=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}));(0,d.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,d.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,d.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,d.__)("Optimize pages for multiple keywords with guidance","wordpress-seo"),(0,d.__)("Add product details to help your listings stand out","wordpress-seo"),(0,d.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,d.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,d.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo"),(0,d.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,d.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,d.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,d.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,d.__)("Internal links and redirect management, easy","wordpress-seo"),(0,d.__)("Access to friendly help when you need it, day or night","wordpress-seo");var C=s(4184),E=s.n(C);var L;function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},A.apply(this,arguments)}o().string.isRequired,o().object.isRequired,o().func.isRequired,l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))}));const q=e=>l.createElement("svg",A({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),L||(L=l.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));o().string.isRequired,o().object,o().func.isRequired,o().bool.isRequired,o().string.isRequired,o().object.isRequired,o().string.isRequired,o().func.isRequired,o().bool.isRequired,l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),o().bool.isRequired,o().func,o().func,o().string.isRequired,o().string.isRequired,o().string.isRequired,o().string.isRequired;window.yoast.reactHelmet;o().string.isRequired,o().shape({src:o().string.isRequired,width:o().string,height:o().string}).isRequired,o().shape({value:o().bool.isRequired,status:o().string.isRequired,set:o().func.isRequired}).isRequired,o().bool,l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),o().bool.isRequired,o().func.isRequired,o().func,o().string,o().func.isRequired,o().string.isRequired,o().string.isRequired,o().string.isRequired,o().string.isRequired;const F=window.yoast.componentsNew,P=window.yoast.styleGuide,M=window.yoast.analysis;function D(e){switch(e){case"loading":return{icon:"loading-spinner",color:P.colors.$color_green_medium_light};case"not-set":return{icon:"seo-score-none",color:P.colors.$color_score_icon};case"noindex":return{icon:"seo-score-none",color:P.colors.$color_noindex};case"good":return{icon:"seo-score-good",color:P.colors.$color_green_medium};case"ok":return{icon:"seo-score-ok",color:P.colors.$color_ok};default:return{icon:"seo-score-bad",color:P.colors.$color_red}}}function O({target:t,children:s}){let i=t;return"string"==typeof t&&(i=document.getElementById(t)),i?(0,e.createPortal)(s,i):null}O.propTypes={target:o().oneOfType([o().string,o().object]).isRequired,children:o().node.isRequired};const N=({target:e,scoreIndicator:t})=>(0,u.jsx)(O,{target:e,children:(0,u.jsx)(F.SvgIcon,{...D(t)})});N.propTypes={target:o().string.isRequired,scoreIndicator:o().string.isRequired};const U=N,W=({error:t})=>{const s=(0,e.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),i=(0,a.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/metabox-error-support")),[]),o=(0,a.useSelect)((e=>e("yoast-seo/editor").getPreference("isRtl",!1)),[]);return(0,e.useEffect)((()=>{document.querySelectorAll('[id^="wpseo-meta-tab-"]').forEach((e=>{!function(e){const t=document.querySelector(`#${e}`);null!==t&&(t.style.opacity="0.5",t.style.pointerEvents="none",t.setAttribute("aria-disabled","true"),t.classList.contains("yoast-active-tab")&&t.classList.remove("yoast-active-tab"))}(e.id)}))}),[]),(0,u.jsx)(r.Root,{context:{isRtl:o},children:(0,u.jsxs)(w,{error:t,children:[(0,u.jsx)(w.HorizontalButtons,{supportLink:i,handleRefreshClick:s}),(0,u.jsx)(U,{target:"wpseo-seo-score-icon",scoreIndicator:"not-set"}),(0,u.jsx)(U,{target:"wpseo-readability-score-icon",scoreIndicator:"not-set"}),(0,u.jsx)(U,{target:"wpseo-inclusive-language-score-icon",scoreIndicator:"not-set"})]})})};W.propTypes={error:o().object.isRequired};const $=window.yoast.externals.contexts,B=window.yoast.styledComponents;var H=s.n(B);const K=({theme:e,location:t,children:s})=>(0,u.jsx)($.LocationProvider,{value:t,children:(0,u.jsx)(B.ThemeProvider,{theme:e,children:s})});K.propTypes={theme:o().object.isRequired,location:o().oneOf(["sidebar","metabox","modal"]).isRequired,children:o().node.isRequired};const Y=K;function z({theme:e}){return(0,u.jsx)(Y,{theme:e,location:"metabox",children:(0,u.jsx)(r.ErrorBoundary,{FallbackComponent:W,children:(0,u.jsx)(t.Slot,{name:"YoastMetabox",children:e=>{return void 0===(t=e).length?t:(0,n.flatten)(t).sort(((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority));var t}})})})}const V=window.wp.compose,G=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{d:"M2 11a1 1 0 011-1h2a1 1 0 011 1v5a1 1 0 01-1 1H3a1 1 0 01-1-1v-5zM8 7a1 1 0 011-1h2a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1V7zM14 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1h-2a1 1 0 01-1-1V4z"}))})),Z=({className:e="",...t})=>(0,u.jsx)("span",{className:E()("yst-grow yst-overflow-hidden yst-overflow-ellipsis yst-whitespace-nowrap yst-font-wp","yst-text-[#555] yst-text-base yst-leading-[normal] yst-subpixel-antialiased yst-text-start",e),...t});Z.displayName="MetaboxButton.Text",Z.propTypes={className:o().string};const X=({className:e="",...t})=>(0,u.jsx)("button",{type:"button",className:E()("yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pe-4 yst-ps-6 yst-space-x-2 rtl:yst-space-x-reverse","yst-border-t yst-border-t-[rgb(0,0,0,0.2)] yst-rounded-none yst-transition-all hover:yst-bg-[#f0f0f0]","focus:yst-outline focus:yst-outline-[1px] focus:yst-outline-[color:#0066cd] focus:-yst-outline-offset-1 focus:yst-shadow-[0_0_3px_rgba(8,74,103,0.8)]",e),...t});X.propTypes={className:o().string},X.Text=Z;const Q=window.yoast.helpers,J=H().div` min-width: 600px; @media screen and ( max-width: 680px ) { @@ -23,7 +22,7 @@ height: 80px; } } -`,({title:e="Yoast SEO",className:s="yoast yoast-gutenberg-modal",showYoastIcon:i=!0,children:o=null,additionalClassName:r="",...n})=>{const a=i?(0,u.jsx)("span",{className:"yoast-icon"}):null;return(0,u.jsx)(t.Modal,{title:e,className:`${s} ${r}`,icon:a,...n,children:o})});ee.propTypes={title:o().string,className:o().string,showYoastIcon:o().bool,children:o().oneOfType([o().node,o().arrayOf(o().node)]),additionalClassName:o().string};const te=ee;var se,ie;function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},oe.apply(this,arguments)}const re=e=>l.createElement("svg",oe({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),se||(se=l.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),ie||(ie=l.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"}))),ne=({onClick:e,title:t,id:s="",subTitle:i="",suffixIcon:o=null,SuffixHeroIcon:r=null,prefixIcon:n=null,children:a=null})=>(0,u.jsx)("div",{className:"yoast components-panel__body",children:(0,u.jsx)("h2",{className:"components-panel__body-title",children:(0,u.jsxs)("button",{id:s,onClick:e,className:"components-button components-panel__body-toggle",type:"button",children:[n&&(0,u.jsx)("span",{className:"yoast-icon-span",style:{fill:`${n&&n.color||""}`},children:(0,u.jsx)(F.SvgIcon,{size:n.size,icon:n.icon})}),(0,u.jsxs)("span",{className:"yoast-title-container",children:[(0,u.jsx)("div",{className:"yoast-title",children:t}),(0,u.jsx)("div",{className:"yoast-subtitle",children:i})]}),a,o&&(0,u.jsx)(F.SvgIcon,{size:o.size,icon:o.icon}),r]})})}),ae=ne;ne.propTypes={onClick:o().func.isRequired,title:o().string.isRequired,id:o().string,subTitle:o().string,suffixIcon:o().object,SuffixHeroIcon:o().element,prefixIcon:o().object,children:o().node};const le=window.moment;var ce=s.n(le);const de=window.wp.apiFetch;var pe=s.n(de);async function ue(e,t,s,i=200){try{const o=await e();return!!o&&(o.status===i?t(o):s(o))}catch(e){console.error(e.message)}}async function he(e){try{return await pe()(e)}catch(e){return e.error&&e.status?e:e instanceof Response&&await e.json()}}async function me(e){return(0,n.isArray)(e)||(e=[e]),await he({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:e}})}const ge=({data:e,mapChartDataToTableData:t=null,dataTableCaption:s,dataTableHeaderLabels:i,isDataTableVisuallyHidden:o=!0})=>e.length!==i.length?(0,u.jsx)("p",{children:(0,d.__)("The number of headers and header labels don't match.","wordpress-seo")}):(0,u.jsx)("div",{className:o?"screen-reader-text":null,children:(0,u.jsxs)("table",{children:[(0,u.jsx)("caption",{children:s}),(0,u.jsx)("thead",{children:(0,u.jsx)("tr",{children:i.map(((e,t)=>(0,u.jsx)("th",{children:e},t)))})}),(0,u.jsx)("tbody",{children:(0,u.jsx)("tr",{children:e.map(((e,s)=>(0,u.jsx)("td",{children:t(e.y)},s)))})})]})});ge.propTypes={data:o().arrayOf(o().shape({x:o().number,y:o().number})).isRequired,mapChartDataToTableData:o().func,dataTableCaption:o().string.isRequired,dataTableHeaderLabels:o().array.isRequired,isDataTableVisuallyHidden:o().bool};const ye=ge,we=({data:t,width:s,height:i,fillColor:o=null,strokeColor:r="#000000",strokeWidth:n=1,className:a="",mapChartDataToTableData:l=null,dataTableCaption:c,dataTableHeaderLabels:d,isDataTableVisuallyHidden:p=!0})=>{const h=Math.max(1,Math.max(...t.map((e=>e.x)))),m=Math.max(1,Math.max(...t.map((e=>e.y)))),g=i-n,y=t.map((e=>`${e.x/h*s},${g-e.y/m*g+n}`)).join(" "),w=`0,${g+n} `+y+` ${s},${g+n}`;return(0,u.jsxs)(e.Fragment,{children:[(0,u.jsxs)("svg",{width:s,height:i,viewBox:`0 0 ${s} ${i}`,className:a,role:"img","aria-hidden":"true",focusable:"false",children:[(0,u.jsx)("polygon",{fill:o,points:w}),(0,u.jsx)("polyline",{fill:"none",stroke:r,strokeWidth:n,strokeLinejoin:"round",strokeLinecap:"round",points:y})]}),l&&(0,u.jsx)(ye,{data:t,mapChartDataToTableData:l,dataTableCaption:c,dataTableHeaderLabels:d,isDataTableVisuallyHidden:p})]})};we.propTypes={data:o().arrayOf(o().shape({x:o().number,y:o().number})).isRequired,width:o().number.isRequired,height:o().number.isRequired,fillColor:o().string,strokeColor:o().string,strokeWidth:o().number,className:o().string,mapChartDataToTableData:o().func,dataTableCaption:o().string.isRequired,dataTableHeaderLabels:o().array.isRequired,isDataTableVisuallyHidden:o().bool};const fe=we,xe=()=>(0,u.jsxs)("p",{className:"yoast-wincher-seo-performance-modal__loading-message",children:[(0,d.__)("Tracking the ranking position…","wordpress-seo")," ",(0,u.jsx)(F.SvgIcon,{icon:"loading-spinner"})]}),be=H()(F.SvgIcon)` +`,({title:e="Yoast SEO",className:s="yoast yoast-gutenberg-modal",showYoastIcon:i=!0,children:o=null,additionalClassName:r="",...n})=>{const a=i?(0,u.jsx)("span",{className:"yoast-icon"}):null;return(0,u.jsx)(t.Modal,{title:e,className:`${s} ${r}`,icon:a,...n,children:o})});ee.propTypes={title:o().string,className:o().string,showYoastIcon:o().bool,children:o().oneOfType([o().node,o().arrayOf(o().node)]),additionalClassName:o().string};const te=ee;var se,ie;function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},oe.apply(this,arguments)}const re=e=>l.createElement("svg",oe({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),se||(se=l.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),ie||(ie=l.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"}))),ne=({onClick:e,title:t,id:s="",subTitle:i="",suffixIcon:o=null,SuffixHeroIcon:r=null,prefixIcon:n=null,children:a=null})=>(0,u.jsx)("div",{className:"yoast components-panel__body",children:(0,u.jsx)("h2",{className:"components-panel__body-title",children:(0,u.jsxs)("button",{id:s,onClick:e,className:"components-button components-panel__body-toggle",type:"button",children:[n&&(0,u.jsx)("span",{className:"yoast-icon-span",style:{fill:`${n&&n.color||""}`},children:(0,u.jsx)(F.SvgIcon,{size:n.size,icon:n.icon})}),(0,u.jsxs)("span",{className:"yoast-title-container",children:[(0,u.jsx)("div",{className:"yoast-title",children:t}),(0,u.jsx)("div",{className:"yoast-subtitle",children:i})]}),a,o&&(0,u.jsx)(F.SvgIcon,{size:o.size,icon:o.icon}),r]})})}),ae=ne;ne.propTypes={onClick:o().func.isRequired,title:o().string.isRequired,id:o().string,subTitle:o().string,suffixIcon:o().object,SuffixHeroIcon:o().element,prefixIcon:o().object,children:o().node};const le=window.moment;var ce=s.n(le);const de=window.wp.apiFetch;var pe=s.n(de);async function ue(e,t,s,i=200){try{const o=await e();return!!o&&(o.status===i?t(o):s(o))}catch(e){console.error(e.message)}}async function he(e){try{return await pe()(e)}catch(e){return e.error&&e.status?e:e instanceof Response&&await e.json()}}async function ge(e){return(0,n.isArray)(e)||(e=[e]),await he({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:e}})}const me=({data:e,mapChartDataToTableData:t=null,dataTableCaption:s,dataTableHeaderLabels:i,isDataTableVisuallyHidden:o=!0})=>e.length!==i.length?(0,u.jsx)("p",{children:(0,d.__)("The number of headers and header labels don't match.","wordpress-seo")}):(0,u.jsx)("div",{className:o?"screen-reader-text":null,children:(0,u.jsxs)("table",{children:[(0,u.jsx)("caption",{children:s}),(0,u.jsx)("thead",{children:(0,u.jsx)("tr",{children:i.map(((e,t)=>(0,u.jsx)("th",{children:e},t)))})}),(0,u.jsx)("tbody",{children:(0,u.jsx)("tr",{children:e.map(((e,s)=>(0,u.jsx)("td",{children:t(e.y)},s)))})})]})});me.propTypes={data:o().arrayOf(o().shape({x:o().number,y:o().number})).isRequired,mapChartDataToTableData:o().func,dataTableCaption:o().string.isRequired,dataTableHeaderLabels:o().array.isRequired,isDataTableVisuallyHidden:o().bool};const ye=me,we=({data:t,width:s,height:i,fillColor:o=null,strokeColor:r="#000000",strokeWidth:n=1,className:a="",mapChartDataToTableData:l=null,dataTableCaption:c,dataTableHeaderLabels:d,isDataTableVisuallyHidden:p=!0})=>{const h=Math.max(1,Math.max(...t.map((e=>e.x)))),g=Math.max(1,Math.max(...t.map((e=>e.y)))),m=i-n,y=t.map((e=>`${e.x/h*s},${m-e.y/g*m+n}`)).join(" "),w=`0,${m+n} `+y+` ${s},${m+n}`;return(0,u.jsxs)(e.Fragment,{children:[(0,u.jsxs)("svg",{width:s,height:i,viewBox:`0 0 ${s} ${i}`,className:a,role:"img","aria-hidden":"true",focusable:"false",children:[(0,u.jsx)("polygon",{fill:o,points:w}),(0,u.jsx)("polyline",{fill:"none",stroke:r,strokeWidth:n,strokeLinejoin:"round",strokeLinecap:"round",points:y})]}),l&&(0,u.jsx)(ye,{data:t,mapChartDataToTableData:l,dataTableCaption:c,dataTableHeaderLabels:d,isDataTableVisuallyHidden:p})]})};we.propTypes={data:o().arrayOf(o().shape({x:o().number,y:o().number})).isRequired,width:o().number.isRequired,height:o().number.isRequired,fillColor:o().string,strokeColor:o().string,strokeWidth:o().number,className:o().string,mapChartDataToTableData:o().func,dataTableCaption:o().string.isRequired,dataTableHeaderLabels:o().array.isRequired,isDataTableVisuallyHidden:o().bool};const fe=we,xe=()=>(0,u.jsxs)("p",{className:"yoast-wincher-seo-performance-modal__loading-message",children:[(0,d.__)("Tracking the ranking position…","wordpress-seo")," ",(0,u.jsx)(F.SvgIcon,{icon:"loading-spinner"})]}),be=H()(F.SvgIcon)` margin-left: 2px; flex-shrink: 0; rotate: ${e=>e.isImproving?"-90deg":"90deg"}; @@ -64,7 +63,7 @@ align-items: center; `,Se=H().tr` background-color: ${e=>e.isEnabled?"#FFFFFF":"#F9F9F9"} !important; -`;function Ie(e){return Math.round(100*e)}function Ce({chartData:e={}}){if((0,n.isEmpty)(e)||(0,n.isEmpty)(e.position))return"?";const t=function(e){return Array.from({length:e.position.history.length},((e,t)=>t+1)).map((e=>(0,d.sprintf)((0,d._n)("%d day","%d days",e,"wordpress-seo"),e)))}(e),s=e.position.history.map(((e,t)=>({x:t,y:31-e.value})));return(0,u.jsx)(fe,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",mapChartDataToTableData:Ie,dataTableCaption:(0,d.__)("Keyphrase position in the last 90 days on a scale from 0 to 30.","wordpress-seo"),dataTableHeaderLabels:t})}function Ee({keyphrase:e,isEnabled:t,toggleAction:s,isLoading:i}){return i?(0,u.jsx)(F.SvgIcon,{icon:"loading-spinner"}):(0,u.jsx)(F.Toggle,{id:`toggle-keyphrase-tracking-${e}`,className:"wincher-toggle",isEnabled:t,onSetToggleState:s,showToggleStateLabel:!1})}function Le(e){return!e||!e.position||e.position.value>30?"> 30":e.position.value}Ce.propTypes={chartData:o().object};const Ae=e=>ce()(e).fromNow(),qe=({rowData:t={}})=>{var s;if(null==t||null===(s=t.position)||void 0===s||!s.change)return(0,u.jsx)(Ce,{chartData:t});const i=t.position.change<0;return(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)(Ce,{chartData:t}),(0,u.jsx)(ve,{isImproving:i,children:Math.abs(t.position.change)}),(0,u.jsx)(be,{icon:"caret-right",color:i?"#69AB56":"#DC3332",size:"14px",isImproving:i})]})};function Fe({rowData:t,websiteId:s,keyphrase:i,onSelectKeyphrases:o}){const r=(0,e.useCallback)((()=>{o([i])}),[o,i]),a=!(0,n.isEmpty)(t),l=t&&t.updated_at&&ce()(t.updated_at)>=ce()().subtract(7,"days"),c=t?`https://app.wincher.com/websites/${s}/keywords?serp=${t.id}&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast`:null;return a?l?(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)("td",{children:(0,u.jsxs)(Re,{children:[Le(t),(0,u.jsx)(F.ButtonStyledLink,{variant:"secondary",href:c,style:{height:28,marginLeft:12},rel:"noopener",target:"_blank",children:(0,d.__)("View","wordpress-seo")})]})}),(0,u.jsx)("td",{className:"yoast-table--nopadding",children:(0,u.jsx)(je,{type:"button",onClick:r,children:(0,u.jsx)(qe,{rowData:t})})}),(0,u.jsx)("td",{children:Ae(t.updated_at)})]}):(0,u.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,u.jsx)(xe,{})}):(0,u.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,u.jsx)("i",{children:(0,d.__)("Activate tracking to show the ranking position","wordpress-seo")})})}function Pe({keyphrase:t,rowData:s={},onTrackKeyphrase:i=n.noop,onUntrackKeyphrase:o=n.noop,isFocusKeyphrase:r=!1,isDisabled:a=!1,isLoading:l=!1,websiteId:c="",isSelected:d,onSelectKeyphrases:p}){var h;const m=!(0,n.isEmpty)(s),g=!(0,n.isEmpty)(null==s||null===(h=s.position)||void 0===h?void 0:h.history),y=(0,e.useCallback)((()=>{a||(m?o(t,s.id):i(t))}),[t,i,o,m,s,a]),w=(0,e.useCallback)((()=>{p((e=>d?e.filter((e=>e!==t)):e.concat(t)))}),[p,d,t]);return(0,u.jsxs)(Se,{isEnabled:m,children:[(0,u.jsx)(ke,{children:g&&(0,u.jsx)(F.Checkbox,{id:"select-"+t,onChange:w,checked:d,label:""})}),(0,u.jsxs)(_e,{children:[t,r&&(0,u.jsx)("span",{children:"*"})]}),Fe({rowData:s,websiteId:c,keyphrase:t,onSelectKeyphrases:p}),(0,u.jsx)(Te,{children:Ee({keyphrase:t,isEnabled:m,toggleAction:y,isLoading:l})})]})}qe.propTypes={rowData:o().object},Pe.propTypes={rowData:o().object,keyphrase:o().string.isRequired,onTrackKeyphrase:o().func,onUntrackKeyphrase:o().func,isFocusKeyphrase:o().bool,isDisabled:o().bool,isLoading:o().bool,websiteId:o().string,isSelected:o().bool.isRequired,onSelectKeyphrases:o().func.isRequired};const Me=(0,Q.makeOutboundLink)(),De=H().span` +`;function Ie(e){return Math.round(100*e)}function Ce({chartData:e={}}){if((0,n.isEmpty)(e)||(0,n.isEmpty)(e.position))return"?";const t=function(e){return Array.from({length:e.position.history.length},((e,t)=>t+1)).map((e=>(0,d.sprintf)((0,d._n)("%d day","%d days",e,"wordpress-seo"),e)))}(e),s=e.position.history.map(((e,t)=>({x:t,y:31-e.value})));return(0,u.jsx)(fe,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",mapChartDataToTableData:Ie,dataTableCaption:(0,d.__)("Keyphrase position in the last 90 days on a scale from 0 to 30.","wordpress-seo"),dataTableHeaderLabels:t})}function Ee({keyphrase:e,isEnabled:t,toggleAction:s,isLoading:i}){return i?(0,u.jsx)(F.SvgIcon,{icon:"loading-spinner"}):(0,u.jsx)(F.Toggle,{id:`toggle-keyphrase-tracking-${e}`,className:"wincher-toggle",isEnabled:t,onSetToggleState:s,showToggleStateLabel:!1})}function Le(e){return!e||!e.position||e.position.value>30?"> 30":e.position.value}Ce.propTypes={chartData:o().object};const Ae=e=>ce()(e).fromNow(),qe=({rowData:t={}})=>{var s;if(null==t||null===(s=t.position)||void 0===s||!s.change)return(0,u.jsx)(Ce,{chartData:t});const i=t.position.change<0;return(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)(Ce,{chartData:t}),(0,u.jsx)(ve,{isImproving:i,children:Math.abs(t.position.change)}),(0,u.jsx)(be,{icon:"caret-right",color:i?"#69AB56":"#DC3332",size:"14px",isImproving:i})]})};function Fe({rowData:t,websiteId:s,keyphrase:i,onSelectKeyphrases:o}){const r=(0,e.useCallback)((()=>{o([i])}),[o,i]),a=!(0,n.isEmpty)(t),l=t&&t.updated_at&&ce()(t.updated_at)>=ce()().subtract(7,"days"),c=t?`https://app.wincher.com/websites/${s}/keywords?serp=${t.id}&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast`:null;return a?l?(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)("td",{children:(0,u.jsxs)(Re,{children:[Le(t),(0,u.jsx)(F.ButtonStyledLink,{variant:"secondary",href:c,style:{height:28,marginLeft:12},rel:"noopener",target:"_blank",children:(0,d.__)("View","wordpress-seo")})]})}),(0,u.jsx)("td",{className:"yoast-table--nopadding",children:(0,u.jsx)(je,{type:"button",onClick:r,children:(0,u.jsx)(qe,{rowData:t})})}),(0,u.jsx)("td",{children:Ae(t.updated_at)})]}):(0,u.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,u.jsx)(xe,{})}):(0,u.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,u.jsx)("i",{children:(0,d.__)("Activate tracking to show the ranking position","wordpress-seo")})})}function Pe({keyphrase:t,rowData:s={},onTrackKeyphrase:i=n.noop,onUntrackKeyphrase:o=n.noop,isFocusKeyphrase:r=!1,isDisabled:a=!1,isLoading:l=!1,websiteId:c="",isSelected:d,onSelectKeyphrases:p}){var h;const g=!(0,n.isEmpty)(s),m=!(0,n.isEmpty)(null==s||null===(h=s.position)||void 0===h?void 0:h.history),y=(0,e.useCallback)((()=>{a||(g?o(t,s.id):i(t))}),[t,i,o,g,s,a]),w=(0,e.useCallback)((()=>{p((e=>d?e.filter((e=>e!==t)):e.concat(t)))}),[p,d,t]);return(0,u.jsxs)(Se,{isEnabled:g,children:[(0,u.jsx)(ke,{children:m&&(0,u.jsx)(F.Checkbox,{id:"select-"+t,onChange:w,checked:d,label:""})}),(0,u.jsxs)(_e,{children:[t,r&&(0,u.jsx)("span",{children:"*"})]}),Fe({rowData:s,websiteId:c,keyphrase:t,onSelectKeyphrases:p}),(0,u.jsx)(Te,{children:Ee({keyphrase:t,isEnabled:g,toggleAction:y,isLoading:l})})]})}qe.propTypes={rowData:o().object},Pe.propTypes={rowData:o().object,keyphrase:o().string.isRequired,onTrackKeyphrase:o().func,onUntrackKeyphrase:o().func,isFocusKeyphrase:o().bool,isDisabled:o().bool,isLoading:o().bool,websiteId:o().string,isSelected:o().bool.isRequired,onSelectKeyphrases:o().func.isRequired};const Me=(0,Q.makeOutboundLink)(),De=H().span` display: block; font-style: italic; @@ -85,9 +84,9 @@ } `,Ue=H().th` padding-left: 2px !important; -`,We=t=>{const s=(0,e.useRef)();return(0,e.useEffect)((()=>{s.current=t})),s.current},$e=(0,n.debounce)((async function(e=null,t=null,s=null,i){return await he({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:s,startAt:t},signal:i})}),500,{leading:!0}),Be=({addTrackedKeyphrase:t,isLoggedIn:s=!1,isNewlyAuthenticated:i=!1,keyphrases:o=[],newRequest:r,removeTrackedKeyphrase:a,setRequestFailed:l,setKeyphraseLimitReached:c,setRequestSucceeded:p,setTrackedKeyphrases:h,setHasTrackedAll:m,trackAll:g=!1,trackedKeyphrases:y=null,websiteId:w="",permalink:f,focusKeyphrase:x="",startAt:b=null,selectedKeyphrases:v,onSelectKeyphrases:k})=>{const _=(0,e.useRef)(),T=(0,e.useRef)(),R=(0,e.useRef)(!1),[j,S]=(0,e.useState)([]),I=(0,e.useCallback)((e=>{const t=e.toLowerCase();return y&&!(0,n.isEmpty)(y)&&y.hasOwnProperty(t)?y[t]:null}),[y]),C=(0,e.useMemo)((()=>async()=>{await ue((()=>(T.current&&T.current.abort(),T.current="undefined"==typeof AbortController?null:new AbortController,$e(o,b,f,T.current.signal))),(e=>{p(e),h(e.results)}),(e=>{l(e)}))}),[p,l,h,o,f,b]),E=(0,e.useCallback)((async e=>{const s=(Array.isArray(e)?e:[e]).map((e=>e.toLowerCase()));S((e=>[...e,...s])),await ue((()=>me(s)),(e=>{p(e),t(e.results),C()}),(e=>{400===e.status&&e.limit&&c(e.limit),l(e)}),201),S((e=>(0,n.without)(e,...s)))}),[p,l,c,t,C]),L=(0,e.useCallback)((async(e,t)=>{e=e.toLowerCase(),S((t=>[...t,e])),await ue((()=>async function(e){return await he({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}(t)),(t=>{p(t),a(e)}),(e=>{l(e)})),S((t=>(0,n.without)(t,e)))}),[p,a,l]),A=(0,e.useCallback)((async e=>{r(),await E(e)}),[r,E]),q=We(f),P=We(o),M=We(b),D=f&&b;(0,e.useEffect)((()=>{s&&D&&(f!==q||(0,n.difference)(o,P).length||b!==M)&&C()}),[s,f,q,o,P,C,D,b,M]),(0,e.useEffect)((()=>{if(s&&g&&null!==y){const e=o.filter((e=>!I(e)));e.length&&E(e),m()}}),[s,g,y,E,m,I,o]),(0,e.useEffect)((()=>{i&&!R.current&&(C(),R.current=!0)}),[i,C]),(0,e.useEffect)((()=>{if(s&&!(0,n.isEmpty)(y))return(0,n.filter)(y,(e=>(0,n.isEmpty)(e.updated_at))).length>0&&(_.current=setInterval((()=>{C()}),1e4)),()=>{clearInterval(_.current)}}),[s,y,C]);const O=s&&null===y,N=(0,e.useMemo)((()=>(0,n.isEmpty)(y)?[]:Object.values(y).filter((e=>{var t;return!(0,n.isEmpty)(null==e||null===(t=e.position)||void 0===t?void 0:t.history)})).map((e=>e.keyword))),[y]),U=(0,e.useMemo)((()=>v.length>0&&N.length>0&&N.every((e=>v.includes(e)))),[v,N]),W=(0,e.useCallback)((()=>{k(U?[]:N)}),[k,U,N]),$=(0,e.useMemo)((()=>(0,n.orderBy)(o,[e=>Object.values(y||{}).map((e=>e.keyword)).includes(e)],["desc"])),[o,y]);return o&&!(0,n.isEmpty)(o)&&(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)(Oe,{children:(0,u.jsxs)("table",{className:"yoast yoast-table",children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)(Ne,{isDisabled:0===N.length,children:(0,u.jsx)(F.Checkbox,{id:"select-all",onChange:W,checked:U,label:""})}),(0,u.jsx)(Ue,{scope:"col",abbr:(0,d.__)("Keyphrase","wordpress-seo"),children:(0,d.__)("Keyphrase","wordpress-seo")}),(0,u.jsx)("th",{scope:"col",abbr:(0,d.__)("Position","wordpress-seo"),children:(0,d.__)("Position","wordpress-seo")}),(0,u.jsx)("th",{scope:"col",abbr:(0,d.__)("Position over time","wordpress-seo"),children:(0,d.__)("Position over time","wordpress-seo")}),(0,u.jsx)("th",{scope:"col",abbr:(0,d.__)("Last updated","wordpress-seo"),children:(0,d.__)("Last updated","wordpress-seo")}),(0,u.jsx)("th",{scope:"col",abbr:(0,d.__)("Tracking","wordpress-seo"),children:(0,d.__)("Tracking","wordpress-seo")})]})}),(0,u.jsx)("tbody",{children:$.map(((e,t)=>(0,u.jsx)(Pe,{keyphrase:e,onTrackKeyphrase:A,onUntrackKeyphrase:L,rowData:I(e),isFocusKeyphrase:e===x.trim().toLowerCase(),websiteId:w,isDisabled:!s,isLoading:O||j.indexOf(e.toLowerCase())>=0,isSelected:v.includes(e),onSelectKeyphrases:k},`trackable-keyphrase-${t}`)))})]})}),(0,u.jsxs)("p",{style:{marginBottom:0,position:"relative"},children:[(0,u.jsx)(Me,{href:wpseoAdminGlobalL10n["links.wincher.login"],children:(0,d.sprintf)(/* translators: %s expands to Wincher */ -(0,d.__)("Get more insights over at %s","wordpress-seo"),"Wincher")}),(0,u.jsx)(De,{children:(0,d.__)("* focus keyphrase","wordpress-seo")})]})]})};Be.propTypes={addTrackedKeyphrase:o().func.isRequired,isLoggedIn:o().bool,isNewlyAuthenticated:o().bool,keyphrases:o().array,newRequest:o().func.isRequired,removeTrackedKeyphrase:o().func.isRequired,setRequestFailed:o().func.isRequired,setKeyphraseLimitReached:o().func.isRequired,setRequestSucceeded:o().func.isRequired,setTrackedKeyphrases:o().func.isRequired,setHasTrackedAll:o().func.isRequired,trackAll:o().bool,trackedKeyphrases:o().object,websiteId:o().string,permalink:o().string.isRequired,focusKeyphrase:o().string,startAt:o().string,selectedKeyphrases:o().arrayOf(o().string).isRequired,onSelectKeyphrases:o().func.isRequired};const He=Be,Ke=(0,z.compose)([(0,a.withSelect)((e=>{const{getWincherWebsiteId:t,getWincherTrackableKeyphrases:s,getWincherLoginStatus:i,getWincherPermalink:o,getFocusKeyphrase:r,isWincherNewlyAuthenticated:n,shouldWincherTrackAll:a}=e("yoast-seo/editor");return{focusKeyphrase:r(),keyphrases:s(),isLoggedIn:i(),trackAll:a(),websiteId:t(),isNewlyAuthenticated:n(),permalink:o()}})),(0,a.withDispatch)((e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:s,setWincherRequestFailed:i,setWincherSetKeyphraseLimitReached:o,setWincherTrackedKeyphrases:r,setWincherTrackingForKeyphrase:n,setWincherTrackAllKeyphrases:a,unsetWincherTrackingForKeyphrase:l}=e("yoast-seo/editor");return{newRequest:()=>{t()},setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{i(e)},setKeyphraseLimitReached:e=>{o(e)},addTrackedKeyphrase:e=>{n(e)},removeTrackedKeyphrase:e=>{l(e)},setTrackedKeyphrases:e=>{r(e)},setHasTrackedAll:()=>{a(!1)}}}))])(He);class Ye{constructor(e,t={},s={}){this.url=e,this.origin=new URL(e).origin,this.eventHandlers=Object.assign({success:{type:"",callback:()=>{}},error:{type:"",callback:()=>{}}},t),this.options=Object.assign({height:570,width:340,title:""},s),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}createPopup(){const{height:e,width:t,title:s}=this.options,i=["top="+(window.top.outerHeight/2+window.top.screenY-e/2),"left="+(window.top.outerWidth/2+window.top.screenX-t/2),"width="+t,"height="+e,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,s,i.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}async messageHandler(e){const{data:t,source:s,origin:i}=e;i===this.origin&&this.popup===s&&(t.type===this.eventHandlers.success.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.success.callback(t)),t.type===this.eventHandlers.error.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.error.callback(t)))}getPopup(){return this.popup}isClosed(){return!this.popup||this.popup.closed}focus(){this.isClosed()||this.popup.focus()}}const Ve=()=>(0,u.jsx)(F.Alert,{type:"info",children:(0,d.sprintf)(/* translators: %s: Expands to "Wincher". */ -(0,d.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher")}),ze=()=>(0,u.jsx)(F.Alert,{type:"success",children:(0,d.sprintf)(/* translators: %s: Expands to "Wincher". */ +`,We=t=>{const s=(0,e.useRef)();return(0,e.useEffect)((()=>{s.current=t})),s.current},$e=(0,n.debounce)((async function(e=null,t=null,s=null,i){return await he({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:s,startAt:t},signal:i})}),500,{leading:!0}),Be=({addTrackedKeyphrase:t,isLoggedIn:s=!1,isNewlyAuthenticated:i=!1,keyphrases:o=[],newRequest:r,removeTrackedKeyphrase:a,setRequestFailed:l,setKeyphraseLimitReached:c,setRequestSucceeded:p,setTrackedKeyphrases:h,setHasTrackedAll:g,trackAll:m=!1,trackedKeyphrases:y=null,websiteId:w="",permalink:f,focusKeyphrase:x="",startAt:b=null,selectedKeyphrases:v,onSelectKeyphrases:k})=>{const _=(0,e.useRef)(),T=(0,e.useRef)(),R=(0,e.useRef)(!1),[j,S]=(0,e.useState)([]),I=(0,e.useCallback)((e=>{const t=e.toLowerCase();return y&&!(0,n.isEmpty)(y)&&y.hasOwnProperty(t)?y[t]:null}),[y]),C=(0,e.useMemo)((()=>async()=>{await ue((()=>(T.current&&T.current.abort(),T.current="undefined"==typeof AbortController?null:new AbortController,$e(o,b,f,T.current.signal))),(e=>{p(e),h(e.results)}),(e=>{l(e)}))}),[p,l,h,o,f,b]),E=(0,e.useCallback)((async e=>{const s=(Array.isArray(e)?e:[e]).map((e=>e.toLowerCase()));S((e=>[...e,...s])),await ue((()=>ge(s)),(e=>{p(e),t(e.results),C()}),(e=>{400===e.status&&e.limit&&c(e.limit),l(e)}),201),S((e=>(0,n.without)(e,...s)))}),[p,l,c,t,C]),L=(0,e.useCallback)((async(e,t)=>{e=e.toLowerCase(),S((t=>[...t,e])),await ue((()=>async function(e){return await he({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}(t)),(t=>{p(t),a(e)}),(e=>{l(e)})),S((t=>(0,n.without)(t,e)))}),[p,a,l]),A=(0,e.useCallback)((async e=>{r(),await E(e)}),[r,E]),q=We(f),P=We(o),M=We(b),D=f&&b;(0,e.useEffect)((()=>{s&&D&&(f!==q||(0,n.difference)(o,P).length||b!==M)&&C()}),[s,f,q,o,P,C,D,b,M]),(0,e.useEffect)((()=>{if(s&&m&&null!==y){const e=o.filter((e=>!I(e)));e.length&&E(e),g()}}),[s,m,y,E,g,I,o]),(0,e.useEffect)((()=>{i&&!R.current&&(C(),R.current=!0)}),[i,C]),(0,e.useEffect)((()=>{if(s&&!(0,n.isEmpty)(y))return(0,n.filter)(y,(e=>(0,n.isEmpty)(e.updated_at))).length>0&&(_.current=setInterval((()=>{C()}),1e4)),()=>{clearInterval(_.current)}}),[s,y,C]);const O=s&&null===y,N=(0,e.useMemo)((()=>(0,n.isEmpty)(y)?[]:Object.values(y).filter((e=>{var t;return!(0,n.isEmpty)(null==e||null===(t=e.position)||void 0===t?void 0:t.history)})).map((e=>e.keyword))),[y]),U=(0,e.useMemo)((()=>v.length>0&&N.length>0&&N.every((e=>v.includes(e)))),[v,N]),W=(0,e.useCallback)((()=>{k(U?[]:N)}),[k,U,N]),$=(0,e.useMemo)((()=>(0,n.orderBy)(o,[e=>Object.values(y||{}).map((e=>e.keyword)).includes(e)],["desc"])),[o,y]);return o&&!(0,n.isEmpty)(o)&&(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)(Oe,{children:(0,u.jsxs)("table",{className:"yoast yoast-table",children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)(Ne,{isDisabled:0===N.length,children:(0,u.jsx)(F.Checkbox,{id:"select-all",onChange:W,checked:U,label:""})}),(0,u.jsx)(Ue,{scope:"col",abbr:(0,d.__)("Keyphrase","wordpress-seo"),children:(0,d.__)("Keyphrase","wordpress-seo")}),(0,u.jsx)("th",{scope:"col",abbr:(0,d.__)("Position","wordpress-seo"),children:(0,d.__)("Position","wordpress-seo")}),(0,u.jsx)("th",{scope:"col",abbr:(0,d.__)("Position over time","wordpress-seo"),children:(0,d.__)("Position over time","wordpress-seo")}),(0,u.jsx)("th",{scope:"col",abbr:(0,d.__)("Last updated","wordpress-seo"),children:(0,d.__)("Last updated","wordpress-seo")}),(0,u.jsx)("th",{scope:"col",abbr:(0,d.__)("Tracking","wordpress-seo"),children:(0,d.__)("Tracking","wordpress-seo")})]})}),(0,u.jsx)("tbody",{children:$.map(((e,t)=>(0,u.jsx)(Pe,{keyphrase:e,onTrackKeyphrase:A,onUntrackKeyphrase:L,rowData:I(e),isFocusKeyphrase:e===x.trim().toLowerCase(),websiteId:w,isDisabled:!s,isLoading:O||j.indexOf(e.toLowerCase())>=0,isSelected:v.includes(e),onSelectKeyphrases:k},`trackable-keyphrase-${t}`)))})]})}),(0,u.jsxs)("p",{style:{marginBottom:0,position:"relative"},children:[(0,u.jsx)(Me,{href:wpseoAdminGlobalL10n["links.wincher.login"],children:(0,d.sprintf)(/* translators: %s expands to Wincher */ +(0,d.__)("Get more insights over at %s","wordpress-seo"),"Wincher")}),(0,u.jsx)(De,{children:(0,d.__)("* focus keyphrase","wordpress-seo")})]})]})};Be.propTypes={addTrackedKeyphrase:o().func.isRequired,isLoggedIn:o().bool,isNewlyAuthenticated:o().bool,keyphrases:o().array,newRequest:o().func.isRequired,removeTrackedKeyphrase:o().func.isRequired,setRequestFailed:o().func.isRequired,setKeyphraseLimitReached:o().func.isRequired,setRequestSucceeded:o().func.isRequired,setTrackedKeyphrases:o().func.isRequired,setHasTrackedAll:o().func.isRequired,trackAll:o().bool,trackedKeyphrases:o().object,websiteId:o().string,permalink:o().string.isRequired,focusKeyphrase:o().string,startAt:o().string,selectedKeyphrases:o().arrayOf(o().string).isRequired,onSelectKeyphrases:o().func.isRequired};const He=Be,Ke=(0,V.compose)([(0,a.withSelect)((e=>{const{getWincherWebsiteId:t,getWincherTrackableKeyphrases:s,getWincherLoginStatus:i,getWincherPermalink:o,getFocusKeyphrase:r,isWincherNewlyAuthenticated:n,shouldWincherTrackAll:a}=e("yoast-seo/editor");return{focusKeyphrase:r(),keyphrases:s(),isLoggedIn:i(),trackAll:a(),websiteId:t(),isNewlyAuthenticated:n(),permalink:o()}})),(0,a.withDispatch)((e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:s,setWincherRequestFailed:i,setWincherSetKeyphraseLimitReached:o,setWincherTrackedKeyphrases:r,setWincherTrackingForKeyphrase:n,setWincherTrackAllKeyphrases:a,unsetWincherTrackingForKeyphrase:l}=e("yoast-seo/editor");return{newRequest:()=>{t()},setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{i(e)},setKeyphraseLimitReached:e=>{o(e)},addTrackedKeyphrase:e=>{n(e)},removeTrackedKeyphrase:e=>{l(e)},setTrackedKeyphrases:e=>{r(e)},setHasTrackedAll:()=>{a(!1)}}}))])(He);class Ye{constructor(e,t={},s={}){this.url=e,this.origin=new URL(e).origin,this.eventHandlers=Object.assign({success:{type:"",callback:()=>{}},error:{type:"",callback:()=>{}}},t),this.options=Object.assign({height:570,width:340,title:""},s),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}createPopup(){const{height:e,width:t,title:s}=this.options,i=["top="+(window.top.outerHeight/2+window.top.screenY-e/2),"left="+(window.top.outerWidth/2+window.top.screenX-t/2),"width="+t,"height="+e,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,s,i.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}async messageHandler(e){const{data:t,source:s,origin:i}=e;i===this.origin&&this.popup===s&&(t.type===this.eventHandlers.success.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.success.callback(t)),t.type===this.eventHandlers.error.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.error.callback(t)))}getPopup(){return this.popup}isClosed(){return!this.popup||this.popup.closed}focus(){this.isClosed()||this.popup.focus()}}const ze=()=>(0,u.jsx)(F.Alert,{type:"info",children:(0,d.sprintf)(/* translators: %s: Expands to "Wincher". */ +(0,d.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher")}),Ve=()=>(0,u.jsx)(F.Alert,{type:"success",children:(0,d.sprintf)(/* translators: %s: Expands to "Wincher". */ (0,d.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher")}),Ge=()=>(0,u.jsx)(F.Alert,{type:"info",children:(0,d.sprintf)(/* translators: %s: Expands to "Wincher". */ (0,d.__)("%s is currently tracking the ranking position(s) of your page. This may take a few minutes. Please wait or check back later.","wordpress-seo"),"Wincher")}),Ze=(0,Q.makeOutboundLink)(),Xe=(0,Q.makeOutboundLink)(),Qe=()=>{const e=(0,d.sprintf)(/* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */ (0,d.__)("With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"<wincherLink/>","<wincherReadMoreLink/>");return(0,u.jsx)("p",{children:p(e,{wincherLink:(0,u.jsx)(Ze,{href:wpseoAdminGlobalL10n["links.wincher.website"],children:"Wincher"}),wincherReadMoreLink:(0,u.jsx)(Xe,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"],children:(0,d.__)("Read more about keyphrase tracking with Wincher","wordpress-seo")})})})},Je=(0,Q.makeOutboundLink)(),et=({limit:e=10})=>{const t=(0,d.sprintf)(/* translators: %1$d expands to the amount of allowed keyphrases on a free account, %2$s expands to a link to Wincher plans. */ @@ -132,13 +131,13 @@ /* Translators: %1$s expands to the number of used keywords. * %2$s expands to the account keywords limit. */ -(0,d.__)("Keyphrases tracked: %1$s/%2$s","wordpress-seo"),t,e),l=s?a:n;return(0,u.jsxs)(at,{children:[s&&(0,u.jsx)(lt,{icon:"exclamation-triangle",color:P.colors.$color_pink_dark,size:"14px"}),l]})};ut.propTypes={limit:o().number.isRequired,usage:o().number.isRequired,isTitleShortened:o().bool,isFreeAccount:o().bool};const ht=(0,Q.makeOutboundLink)(),mt=({discount:e,months:t})=>{const s=(0,u.jsx)(ht,{href:wpseoAdminGlobalL10n["links.wincher.upgrade"],style:{fontWeight:600},children:(0,d.sprintf)(/* Translators: %s : Expands to "Wincher". */ +(0,d.__)("Keyphrases tracked: %1$s/%2$s","wordpress-seo"),t,e),l=s?a:n;return(0,u.jsxs)(at,{children:[s&&(0,u.jsx)(lt,{icon:"exclamation-triangle",color:P.colors.$color_pink_dark,size:"14px"}),l]})};ut.propTypes={limit:o().number.isRequired,usage:o().number.isRequired,isTitleShortened:o().bool,isFreeAccount:o().bool};const ht=(0,Q.makeOutboundLink)(),gt=({discount:e,months:t})=>{const s=(0,u.jsx)(ht,{href:wpseoAdminGlobalL10n["links.wincher.upgrade"],style:{fontWeight:600},children:(0,d.sprintf)(/* Translators: %s : Expands to "Wincher". */ (0,d.__)("Click here to upgrade your %s plan","wordpress-seo"),"Wincher")});if(!e||!t)return(0,u.jsx)(dt,{children:s});const i=100*e,o=(0,d.sprintf)( /* Translators: %1$s expands to upgrade account link. * %2$s expands to the upgrade discount value. * %3$s expands to the upgrade discount duration e.g. 2 months. */ -(0,d.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"<wincherAccountUpgradeLink/>",i+"%",t);return(0,u.jsx)(dt,{children:p(o,{wincherAccountUpgradeLink:s})})};mt.propTypes={discount:o().number,months:o().number};const gt=({onClose:t=null,isTitleShortened:s=!1,trackingInfo:i=null})=>{const o=(()=>{const[t,s]=(0,e.useState)(null);return(0,e.useEffect)((()=>{t||async function(){return await he({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}().then((e=>s(e)))}),[t]),t})();if(null===i)return null;const{limit:r,usage:n}=i;if(!(r&&n/r>=.8))return null;const a=Boolean(null==o?void 0:o.discount);return(0,u.jsxs)(pt,{isTitleShortened:s,children:[t&&(0,u.jsx)(ct,{type:"button","aria-label":(0,d.__)("Close the upgrade callout","wordpress-seo"),onClick:t,children:(0,u.jsx)(F.SvgIcon,{icon:"times-circle",color:P.colors.$color_pink_dark,size:"14px"})}),(0,u.jsx)(ut,{...i,isTitleShortened:s,isFreeAccount:a}),(0,u.jsx)(mt,{discount:null==o?void 0:o.discount,months:null==o?void 0:o.months})]})};gt.propTypes={onClose:o().func,isTitleShortened:o().bool,trackingInfo:o().object};const yt=gt,wt=window.yoast["chart.js"],ft="label";function xt(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function bt(e,t){e.labels=t}function vt(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ft;const i=[];e.datasets=t.map((t=>{const o=e.datasets.find((e=>e[s]===t[s]));return o&&t.data&&!i.includes(o)?(i.push(o),Object.assign(o,t),o):{...t}}))}function kt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ft;const s={labels:[],datasets:[]};return bt(s,e.labels),vt(s,e.datasets,t),s}function _t(e,t){const{height:s=150,width:i=300,redraw:o=!1,datasetIdKey:r,type:n,data:a,options:c,plugins:d=[],fallbackContent:p,updateMode:u,...h}=e,m=(0,l.useRef)(null),g=(0,l.useRef)(),y=()=>{m.current&&(g.current=new wt.Chart(m.current,{type:n,data:kt(a,r),options:c&&{...c},plugins:d}),xt(t,g.current))},w=()=>{xt(t,null),g.current&&(g.current.destroy(),g.current=null)};return(0,l.useEffect)((()=>{!o&&g.current&&c&&function(e,t){const s=e.options;s&&t&&Object.assign(s,t)}(g.current,c)}),[o,c]),(0,l.useEffect)((()=>{!o&&g.current&&bt(g.current.config.data,a.labels)}),[o,a.labels]),(0,l.useEffect)((()=>{!o&&g.current&&a.datasets&&vt(g.current.config.data,a.datasets,r)}),[o,a.datasets]),(0,l.useEffect)((()=>{g.current&&(o?(w(),setTimeout(y)):g.current.update(u))}),[o,c,a.labels,a.datasets,u]),(0,l.useEffect)((()=>{g.current&&(w(),setTimeout(y))}),[n]),(0,l.useEffect)((()=>(y(),()=>w())),[]),l.createElement("canvas",Object.assign({ref:m,role:"img",height:s,width:i},h),p)}const Tt=(0,l.forwardRef)(_t);function Rt(e,t){return wt.Chart.register(t),(0,l.forwardRef)(((t,s)=>l.createElement(Tt,Object.assign({},t,{ref:s,type:e}))))}const jt=Rt("line",wt.LineController),St={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};wt._adapters._date.override("function"==typeof ce()?{_id:"moment",formats:function(){return St},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=ce()(e,t):e instanceof ce()||(e=ce()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return ce()(e).format(t)},add:function(e,t,s){return ce()(e).add(t,s).valueOf()},diff:function(e,t,s){return ce()(e).diff(ce()(t),s)},startOf:function(e,t,s){return e=ce()(e),"isoWeek"===t?(s=Math.trunc(Math.min(Math.max(0,s),6)),e.isoWeekday(s).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return ce()(e).endOf(t).valueOf()}}:{}),Math.PI,Number.POSITIVE_INFINITY,Math.log10,Math.sign,"undefined"==typeof window||window.requestAnimationFrame,new Map,Object.create(null),Object.create(null),Number.EPSILON;const It=["top","right","bottom","left"];function Ct(e,t,s){const i={};s=s?"-"+s:"";for(let o=0;o<4;o++){const r=It[o];i[r]=parseFloat(e[t+"-"+r+s])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}!function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}}(),wt.Chart.register(wt.CategoryScale,wt.LineController,wt.LineElement,wt.PointElement,wt.LinearScale,wt.TimeScale,wt.Legend,wt.Tooltip);const Et=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function Lt({datasets:t,isChartShown:s,keyphrases:i}){if(!s)return null;const o=(0,e.useMemo)((()=>Object.fromEntries([...i].sort().map(((e,t)=>[e,Et[t%Et.length]])))),[i]),r=t.map((e=>{const t=o[e.label];return{...e,data:e.data.map((({datetime:e,value:t})=>({x:e,y:t}))),lineTension:0,pointRadius:1,pointHoverRadius:4,borderWidth:2,pointHitRadius:6,backgroundColor:t,borderColor:t}})).filter((e=>!1!==e.selected));return(0,u.jsx)(jt,{height:100,data:{datasets:r},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:n.noop},tooltip:{enabled:!0,callbacks:{title:e=>ce()(e[0].raw.x).utc().format("YYYY-MM-DD")},titleAlign:"center",mode:"xPoint",position:"nearest",usePointStyle:!0,boxHeight:7,boxWidth:7,boxPadding:2}},scales:{x:{bounds:"ticks",type:"time",time:{unit:"day",minUnit:"day"},grid:{display:!1},ticks:{autoSkipPadding:50,maxRotation:0,color:"black"}},y:{bounds:"ticks",offset:!0,reverse:!0,ticks:{precision:0,color:"black"},max:31}}}})}wt.Interaction.modes.xPoint=(e,t,s,i)=>{const o=function(e,t){if("native"in e)return e;const{canvas:s,currentDevicePixelRatio:i}=t,o=(h=s).ownerDocument.defaultView.getComputedStyle(h,null),r="border-box"===o.boxSizing,n=Ct(o,"padding"),a=Ct(o,"border","width"),{x:l,y:c,box:d}=function(e,t){const s=e.touches,i=s&&s.length?s[0]:e,{offsetX:o,offsetY:r}=i;let n,a,l=!1;if(((e,t,s)=>(e>0||t>0)&&(!s||!s.shadowRoot))(o,r,e.target))n=o,a=r;else{const e=t.getBoundingClientRect();n=i.clientX-e.left,a=i.clientY-e.top,l=!0}return{x:n,y:a,box:l}}(e,s),p=n.left+(d&&a.left),u=n.top+(d&&a.top);var h;let{width:m,height:g}=t;return r&&(m-=n.width+a.width,g-=n.height+a.height),{x:Math.round((l-p)/m*s.width/i),y:Math.round((c-u)/g*s.height/i)}}(t,e);let r=[];if(wt.Interaction.evaluateInteractionItems(e,"x",o,((e,t,s)=>{e.inXRange(o.x,i)&&r.push({element:e,datasetIndex:t,index:s})})),0===r.length)return r;const n=r.reduce(((e,t)=>Math.abs(o.x-e.element.x)<Math.abs(o.x-t.element.x)?e:t)).element.x;return r=r.filter((e=>e.element.x===n)),r.some((e=>Math.abs(e.element.y-o.y)<10))?r:[]},Lt.propTypes={datasets:o().arrayOf(o().shape({label:o().string.isRequired,data:o().arrayOf(o().shape({datetime:o().string.isRequired,value:o().number.isRequired})).isRequired,selected:o().bool})).isRequired,isChartShown:o().bool.isRequired,keyphrases:o().array.isRequired};const At=({response:e,onLogin:t})=>[401,403,404].includes(e.status)?(0,u.jsx)(rt,{onReconnect:t}):(0,u.jsx)(nt,{});At.propTypes={response:o().object.isRequired,onLogin:o().func.isRequired};const qt=({isSuccess:e,response:t={},allKeyphrasesMissRanking:s,onLogin:i,keyphraseLimitReached:o,limit:r})=>o?(0,u.jsx)(tt,{limit:r}):(0,n.isEmpty)(t)||e?s?(0,u.jsx)(Ge,{}):null:(0,u.jsx)(At,{response:t,onLogin:i});qt.propTypes={isSuccess:o().bool.isRequired,allKeyphrasesMissRanking:o().bool.isRequired,response:o().object,onLogin:o().func.isRequired,keyphraseLimitReached:o().bool.isRequired,limit:o().number.isRequired};let Ft=null;const Pt=async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r})=>{if(Ft&&!Ft.isClosed())return void Ft.focus();const{url:n}=await async function(){return await he({path:"yoast/v1/wincher/authorization-url",method:"GET"})}();Ft=new Ye(n,{success:{type:"wincher:oauth:success",callback:n=>(async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r},n)=>{await ue((()=>async function(e){const{code:t,websiteId:s}=e;return await he({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:s}})}(n)),(async a=>{e(!0,!0,n.websiteId.toString()),t(a);const l=(Array.isArray(i)?i:[i]).map((e=>e.toLowerCase()));await ue((()=>me(l)),(e=>{t(e),o(e.results)}),(e=>{400===e.status&&e.limit&&r(e.limit),s(e)}),201);const c=Ft.getPopup();c&&c.close()}),(async e=>s(e)))})({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r},n)},error:{type:"wincher:oauth:error",callback:()=>e(!1,!1)}},{title:"Wincher_login",width:500,height:700}),Ft.createPopup()},Mt=e=>e.isLoggedIn?null:(0,u.jsx)("p",{children:(0,u.jsx)(F.NewButton,{onClick:e.onLogin,variant:"primary",children:(0,d.sprintf)(/* translators: %s expands to Wincher */ +(0,d.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"<wincherAccountUpgradeLink/>",i+"%",t);return(0,u.jsx)(dt,{children:p(o,{wincherAccountUpgradeLink:s})})};gt.propTypes={discount:o().number,months:o().number};const mt=({onClose:t=null,isTitleShortened:s=!1,trackingInfo:i=null})=>{const o=(()=>{const[t,s]=(0,e.useState)(null);return(0,e.useEffect)((()=>{t||async function(){return await he({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}().then((e=>s(e)))}),[t]),t})();if(null===i)return null;const{limit:r,usage:n}=i;if(!(r&&n/r>=.8))return null;const a=Boolean(null==o?void 0:o.discount);return(0,u.jsxs)(pt,{isTitleShortened:s,children:[t&&(0,u.jsx)(ct,{type:"button","aria-label":(0,d.__)("Close the upgrade callout","wordpress-seo"),onClick:t,children:(0,u.jsx)(F.SvgIcon,{icon:"times-circle",color:P.colors.$color_pink_dark,size:"14px"})}),(0,u.jsx)(ut,{...i,isTitleShortened:s,isFreeAccount:a}),(0,u.jsx)(gt,{discount:null==o?void 0:o.discount,months:null==o?void 0:o.months})]})};mt.propTypes={onClose:o().func,isTitleShortened:o().bool,trackingInfo:o().object};const yt=mt,wt=window.yoast["chart.js"],ft="label";function xt(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function bt(e,t){e.labels=t}function vt(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ft;const i=[];e.datasets=t.map((t=>{const o=e.datasets.find((e=>e[s]===t[s]));return o&&t.data&&!i.includes(o)?(i.push(o),Object.assign(o,t),o):{...t}}))}function kt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ft;const s={labels:[],datasets:[]};return bt(s,e.labels),vt(s,e.datasets,t),s}function _t(e,t){const{height:s=150,width:i=300,redraw:o=!1,datasetIdKey:r,type:n,data:a,options:c,plugins:d=[],fallbackContent:p,updateMode:u,...h}=e,g=(0,l.useRef)(null),m=(0,l.useRef)(),y=()=>{g.current&&(m.current=new wt.Chart(g.current,{type:n,data:kt(a,r),options:c&&{...c},plugins:d}),xt(t,m.current))},w=()=>{xt(t,null),m.current&&(m.current.destroy(),m.current=null)};return(0,l.useEffect)((()=>{!o&&m.current&&c&&function(e,t){const s=e.options;s&&t&&Object.assign(s,t)}(m.current,c)}),[o,c]),(0,l.useEffect)((()=>{!o&&m.current&&bt(m.current.config.data,a.labels)}),[o,a.labels]),(0,l.useEffect)((()=>{!o&&m.current&&a.datasets&&vt(m.current.config.data,a.datasets,r)}),[o,a.datasets]),(0,l.useEffect)((()=>{m.current&&(o?(w(),setTimeout(y)):m.current.update(u))}),[o,c,a.labels,a.datasets,u]),(0,l.useEffect)((()=>{m.current&&(w(),setTimeout(y))}),[n]),(0,l.useEffect)((()=>(y(),()=>w())),[]),l.createElement("canvas",Object.assign({ref:g,role:"img",height:s,width:i},h),p)}const Tt=(0,l.forwardRef)(_t);function Rt(e,t){return wt.Chart.register(t),(0,l.forwardRef)(((t,s)=>l.createElement(Tt,Object.assign({},t,{ref:s,type:e}))))}const jt=Rt("line",wt.LineController),St={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};wt._adapters._date.override("function"==typeof ce()?{_id:"moment",formats:function(){return St},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=ce()(e,t):e instanceof ce()||(e=ce()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return ce()(e).format(t)},add:function(e,t,s){return ce()(e).add(t,s).valueOf()},diff:function(e,t,s){return ce()(e).diff(ce()(t),s)},startOf:function(e,t,s){return e=ce()(e),"isoWeek"===t?(s=Math.trunc(Math.min(Math.max(0,s),6)),e.isoWeekday(s).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return ce()(e).endOf(t).valueOf()}}:{}),Math.PI,Number.POSITIVE_INFINITY,Math.log10,Math.sign,"undefined"==typeof window||window.requestAnimationFrame,new Map,Object.create(null),Object.create(null),Number.EPSILON;const It=["top","right","bottom","left"];function Ct(e,t,s){const i={};s=s?"-"+s:"";for(let o=0;o<4;o++){const r=It[o];i[r]=parseFloat(e[t+"-"+r+s])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}!function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}}(),wt.Chart.register(wt.CategoryScale,wt.LineController,wt.LineElement,wt.PointElement,wt.LinearScale,wt.TimeScale,wt.Legend,wt.Tooltip);const Et=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function Lt({datasets:t,isChartShown:s,keyphrases:i}){if(!s)return null;const o=(0,e.useMemo)((()=>Object.fromEntries([...i].sort().map(((e,t)=>[e,Et[t%Et.length]])))),[i]),r=t.map((e=>{const t=o[e.label];return{...e,data:e.data.map((({datetime:e,value:t})=>({x:e,y:t}))),lineTension:0,pointRadius:1,pointHoverRadius:4,borderWidth:2,pointHitRadius:6,backgroundColor:t,borderColor:t}})).filter((e=>!1!==e.selected));return(0,u.jsx)(jt,{height:100,data:{datasets:r},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:n.noop},tooltip:{enabled:!0,callbacks:{title:e=>ce()(e[0].raw.x).utc().format("YYYY-MM-DD")},titleAlign:"center",mode:"xPoint",position:"nearest",usePointStyle:!0,boxHeight:7,boxWidth:7,boxPadding:2}},scales:{x:{bounds:"ticks",type:"time",time:{unit:"day",minUnit:"day"},grid:{display:!1},ticks:{autoSkipPadding:50,maxRotation:0,color:"black"}},y:{bounds:"ticks",offset:!0,reverse:!0,ticks:{precision:0,color:"black"},max:31}}}})}wt.Interaction.modes.xPoint=(e,t,s,i)=>{const o=function(e,t){if("native"in e)return e;const{canvas:s,currentDevicePixelRatio:i}=t,o=(h=s).ownerDocument.defaultView.getComputedStyle(h,null),r="border-box"===o.boxSizing,n=Ct(o,"padding"),a=Ct(o,"border","width"),{x:l,y:c,box:d}=function(e,t){const s=e.touches,i=s&&s.length?s[0]:e,{offsetX:o,offsetY:r}=i;let n,a,l=!1;if(((e,t,s)=>(e>0||t>0)&&(!s||!s.shadowRoot))(o,r,e.target))n=o,a=r;else{const e=t.getBoundingClientRect();n=i.clientX-e.left,a=i.clientY-e.top,l=!0}return{x:n,y:a,box:l}}(e,s),p=n.left+(d&&a.left),u=n.top+(d&&a.top);var h;let{width:g,height:m}=t;return r&&(g-=n.width+a.width,m-=n.height+a.height),{x:Math.round((l-p)/g*s.width/i),y:Math.round((c-u)/m*s.height/i)}}(t,e);let r=[];if(wt.Interaction.evaluateInteractionItems(e,"x",o,((e,t,s)=>{e.inXRange(o.x,i)&&r.push({element:e,datasetIndex:t,index:s})})),0===r.length)return r;const n=r.reduce(((e,t)=>Math.abs(o.x-e.element.x)<Math.abs(o.x-t.element.x)?e:t)).element.x;return r=r.filter((e=>e.element.x===n)),r.some((e=>Math.abs(e.element.y-o.y)<10))?r:[]},Lt.propTypes={datasets:o().arrayOf(o().shape({label:o().string.isRequired,data:o().arrayOf(o().shape({datetime:o().string.isRequired,value:o().number.isRequired})).isRequired,selected:o().bool})).isRequired,isChartShown:o().bool.isRequired,keyphrases:o().array.isRequired};const At=({response:e,onLogin:t})=>[401,403,404].includes(e.status)?(0,u.jsx)(rt,{onReconnect:t}):(0,u.jsx)(nt,{});At.propTypes={response:o().object.isRequired,onLogin:o().func.isRequired};const qt=({isSuccess:e,response:t={},allKeyphrasesMissRanking:s,onLogin:i,keyphraseLimitReached:o,limit:r})=>o?(0,u.jsx)(tt,{limit:r}):(0,n.isEmpty)(t)||e?s?(0,u.jsx)(Ge,{}):null:(0,u.jsx)(At,{response:t,onLogin:i});qt.propTypes={isSuccess:o().bool.isRequired,allKeyphrasesMissRanking:o().bool.isRequired,response:o().object,onLogin:o().func.isRequired,keyphraseLimitReached:o().bool.isRequired,limit:o().number.isRequired};let Ft=null;const Pt=async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r})=>{if(Ft&&!Ft.isClosed())return void Ft.focus();const{url:n}=await async function(){return await he({path:"yoast/v1/wincher/authorization-url",method:"GET"})}();Ft=new Ye(n,{success:{type:"wincher:oauth:success",callback:n=>(async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r},n)=>{await ue((()=>async function(e){const{code:t,websiteId:s}=e;return await he({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:s}})}(n)),(async a=>{e(!0,!0,n.websiteId.toString()),t(a);const l=(Array.isArray(i)?i:[i]).map((e=>e.toLowerCase()));await ue((()=>ge(l)),(e=>{t(e),o(e.results)}),(e=>{400===e.status&&e.limit&&r(e.limit),s(e)}),201);const c=Ft.getPopup();c&&c.close()}),(async e=>s(e)))})({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r},n)},error:{type:"wincher:oauth:error",callback:()=>e(!1,!1)}},{title:"Wincher_login",width:500,height:700}),Ft.createPopup()},Mt=e=>e.isLoggedIn?null:(0,u.jsx)("p",{children:(0,u.jsx)(F.NewButton,{onClick:e.onLogin,variant:"primary",children:(0,d.sprintf)(/* translators: %s expands to Wincher */ (0,d.__)("Connect with %s","wordpress-seo"),"Wincher")})});Mt.propTypes={isLoggedIn:o().bool.isRequired,onLogin:o().func.isRequired};const Dt=H().div` p { margin: 1em 0; @@ -156,12 +155,12 @@ margin-bottom: 14px; `,Wt=H().div` margin: 8px 0; -`,$t=ce().utc().startOf("day"),Bt=[{name:(0,d.__)("Last day","wordpress-seo"),value:ce()($t).subtract(1,"days").format(),defaultIndex:1},{name:(0,d.__)("Last week","wordpress-seo"),value:ce()($t).subtract(1,"week").format(),defaultIndex:2},{name:(0,d.__)("Last month","wordpress-seo"),value:ce()($t).subtract(1,"month").format(),defaultIndex:3},{name:(0,d.__)("Last year","wordpress-seo"),value:ce()($t).subtract(1,"year").format(),defaultIndex:0}],Ht=({onSelect:e,selected:t=null,options:s,isLoggedIn:i})=>i?s.length<1?null:(0,u.jsx)("select",{className:"components-select-control__input",id:"wincher-period-picker",value:(null==t?void 0:t.value)||s[0].value,onChange:e,children:s.map((e=>(0,u.jsx)("option",{value:e.value,children:e.name},e.name)))}):null;Ht.propTypes={onSelect:o().func.isRequired,selected:o().object,options:o().array.isRequired,isLoggedIn:o().bool.isRequired};const Kt=({trackedKeyphrases:t=null,isLoggedIn:s,keyphrases:i,shouldTrackAll:o,permalink:r,historyDaysLimit:a=0})=>{if(!r&&s)return(0,u.jsx)(it,{});if(0===i.length)return(0,u.jsx)(st,{});const l=ce()($t).subtract(a,"days"),c=Bt.filter((e=>ce()(e.value).isSameOrAfter(l))),p=(0,n.orderBy)(c,(e=>e.defaultIndex),"desc")[0],[h,m]=(0,e.useState)(p),[g,y]=(0,e.useState)([]),w=g.length>0,f=(0,z.usePrevious)(t);(0,e.useEffect)((()=>{if(!(0,n.isEmpty)(t)&&(0,n.difference)(Object.keys(t),Object.keys(f||[])).length){const e=Object.values(t).map((e=>e.keyword));y(e)}}),[t,f]),(0,e.useEffect)((()=>{m(p)}),[null==p?void 0:p.name]);const x=(0,e.useCallback)((e=>{const t=Bt.find((t=>t.value===e.target.value));t&&m(t)}),[m]),b=(0,e.useMemo)((()=>(0,n.isEmpty)(g)||(0,n.isEmpty)(t)?[]:Object.values(t).filter((e=>{var t;return!(null==e||null===(t=e.position)||void 0===t||!t.history)})).map((e=>{var t;return{label:e.keyword,data:e.position.history,selected:g.includes(e.keyword)&&!(0,n.isEmpty)(null===(t=e.position)||void 0===t?void 0:t.history)}}))),[g,t]);return(0,u.jsxs)(Ot,{isDisabled:!s,children:[(0,u.jsx)("p",{children:(0,d.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")}),s&&o&&(0,u.jsx)(Ve,{}),(0,u.jsx)(Ut,{children:(0,u.jsx)(Ht,{selected:h,onSelect:x,options:c,isLoggedIn:s})}),(0,u.jsx)(Wt,{children:(0,u.jsx)(Lt,{isChartShown:w,datasets:b,keyphrases:i})}),(0,u.jsx)(Ke,{startAt:null==h?void 0:h.value,selectedKeyphrases:g,onSelectKeyphrases:y,trackedKeyphrases:t})]})};function Yt({trackedKeyphrases:t=null,addTrackedKeyphrase:s,isLoggedIn:i=!1,isNewlyAuthenticated:o=!1,keyphrases:r=[],response:n={},shouldTrackAll:a=!1,permalink:l="",allKeyphrasesMissRanking:c,isSuccess:p,keyphraseLimitReached:h,limit:m,setRequestSucceeded:g,setRequestFailed:y,setKeyphraseLimitReached:w,onAuthentication:f}){const x=(0,e.useCallback)((()=>{Pt({onAuthentication:f,setRequestSucceeded:g,setRequestFailed:y,keyphrases:r,addTrackedKeyphrase:s,setKeyphraseLimitReached:w})}),[Pt,f,g,y,r,s,w]),b=(t=>{const[s,i]=(0,e.useState)(null);return(0,e.useEffect)((()=>{t&&!s&&async function(){return await he({path:"yoast/v1/wincher/account/limit",method:"GET"})}().then((e=>i(e)))}),[s]),s})(i);return(0,u.jsxs)(Dt,{children:[o&&(0,u.jsx)(ze,{}),i&&(0,u.jsx)(yt,{trackingInfo:b}),(0,u.jsxs)(Nt,{children:[(0,d.__)("SEO performance","wordpress-seo"),(0,u.jsx)(F.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"] -/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about the SEO performance feature.","wordpress-seo")})]}),(0,u.jsx)(Qe,{}),(0,u.jsx)(Mt,{isLoggedIn:i,onLogin:x}),(0,u.jsx)(qt,{isSuccess:p,response:n,allKeyphrasesMissRanking:c,keyphraseLimitReached:h,limit:m,onLogin:x}),(0,u.jsx)(Kt,{trackedKeyphrases:t,isLoggedIn:i,keyphrases:r,shouldTrackAll:a,permalink:l,historyDaysLimit:(null==b?void 0:b.historyDays)||31})]})}Kt.propTypes={trackedKeyphrases:o().object,keyphrases:o().array.isRequired,isLoggedIn:o().bool.isRequired,shouldTrackAll:o().bool.isRequired,permalink:o().string.isRequired,historyDaysLimit:o().number},Yt.propTypes={trackedKeyphrases:o().object,addTrackedKeyphrase:o().func.isRequired,isLoggedIn:o().bool,isNewlyAuthenticated:o().bool,keyphrases:o().array,response:o().object,shouldTrackAll:o().bool,permalink:o().string,allKeyphrasesMissRanking:o().bool.isRequired,isSuccess:o().bool.isRequired,keyphraseLimitReached:o().bool.isRequired,limit:o().number.isRequired,setRequestSucceeded:o().func.isRequired,setRequestFailed:o().func.isRequired,setKeyphraseLimitReached:o().func.isRequired,onAuthentication:o().func.isRequired};const Vt=(0,z.compose)([(0,a.withSelect)((e=>{const{isWincherNewlyAuthenticated:t,getWincherKeyphraseLimitReached:s,getWincherLimit:i,getWincherLoginStatus:o,getWincherRequestIsSuccess:r,getWincherRequestResponse:n,getWincherTrackableKeyphrases:a,getWincherTrackedKeyphrases:l,getWincherAllKeyphrasesMissRanking:c,getWincherPermalink:d,shouldWincherAutomaticallyTrackAll:p}=e("yoast-seo/editor");return{keyphrases:a(),trackedKeyphrases:l(),allKeyphrasesMissRanking:c(),isLoggedIn:o(),isNewlyAuthenticated:t(),isSuccess:r(),keyphraseLimitReached:s(),limit:i(),response:n(),shouldTrackAll:p(),permalink:d()}})),(0,a.withDispatch)((e=>{const{setWincherWebsiteId:t,setWincherRequestSucceeded:s,setWincherRequestFailed:i,setWincherTrackingForKeyphrase:o,setWincherSetKeyphraseLimitReached:r,setWincherLoginStatus:n}=e("yoast-seo/editor");return{setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{i(e)},addTrackedKeyphrase:e=>{o(e)},setKeyphraseLimitReached:e=>{r(e)},onAuthentication:(e,s,i)=>{t(i),n(e,s)}}}))])(Yt),zt=H()(G)` +`,$t=ce().utc().startOf("day"),Bt=[{name:(0,d.__)("Last day","wordpress-seo"),value:ce()($t).subtract(1,"days").format(),defaultIndex:1},{name:(0,d.__)("Last week","wordpress-seo"),value:ce()($t).subtract(1,"week").format(),defaultIndex:2},{name:(0,d.__)("Last month","wordpress-seo"),value:ce()($t).subtract(1,"month").format(),defaultIndex:3},{name:(0,d.__)("Last year","wordpress-seo"),value:ce()($t).subtract(1,"year").format(),defaultIndex:0}],Ht=({onSelect:e,selected:t=null,options:s,isLoggedIn:i})=>i?s.length<1?null:(0,u.jsx)("select",{className:"components-select-control__input",id:"wincher-period-picker",value:(null==t?void 0:t.value)||s[0].value,onChange:e,children:s.map((e=>(0,u.jsx)("option",{value:e.value,children:e.name},e.name)))}):null;Ht.propTypes={onSelect:o().func.isRequired,selected:o().object,options:o().array.isRequired,isLoggedIn:o().bool.isRequired};const Kt=({trackedKeyphrases:t=null,isLoggedIn:s,keyphrases:i,shouldTrackAll:o,permalink:r,historyDaysLimit:a=0})=>{if(!r&&s)return(0,u.jsx)(it,{});if(0===i.length)return(0,u.jsx)(st,{});const l=ce()($t).subtract(a,"days"),c=Bt.filter((e=>ce()(e.value).isSameOrAfter(l))),p=(0,n.orderBy)(c,(e=>e.defaultIndex),"desc")[0],[h,g]=(0,e.useState)(p),[m,y]=(0,e.useState)([]),w=m.length>0,f=(0,V.usePrevious)(t);(0,e.useEffect)((()=>{if(!(0,n.isEmpty)(t)&&(0,n.difference)(Object.keys(t),Object.keys(f||[])).length){const e=Object.values(t).map((e=>e.keyword));y(e)}}),[t,f]),(0,e.useEffect)((()=>{g(p)}),[null==p?void 0:p.name]);const x=(0,e.useCallback)((e=>{const t=Bt.find((t=>t.value===e.target.value));t&&g(t)}),[g]),b=(0,e.useMemo)((()=>(0,n.isEmpty)(m)||(0,n.isEmpty)(t)?[]:Object.values(t).filter((e=>{var t;return!(null==e||null===(t=e.position)||void 0===t||!t.history)})).map((e=>{var t;return{label:e.keyword,data:e.position.history,selected:m.includes(e.keyword)&&!(0,n.isEmpty)(null===(t=e.position)||void 0===t?void 0:t.history)}}))),[m,t]);return(0,u.jsxs)(Ot,{isDisabled:!s,children:[(0,u.jsx)("p",{children:(0,d.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")}),s&&o&&(0,u.jsx)(ze,{}),(0,u.jsx)(Ut,{children:(0,u.jsx)(Ht,{selected:h,onSelect:x,options:c,isLoggedIn:s})}),(0,u.jsx)(Wt,{children:(0,u.jsx)(Lt,{isChartShown:w,datasets:b,keyphrases:i})}),(0,u.jsx)(Ke,{startAt:null==h?void 0:h.value,selectedKeyphrases:m,onSelectKeyphrases:y,trackedKeyphrases:t})]})};function Yt({trackedKeyphrases:t=null,addTrackedKeyphrase:s,isLoggedIn:i=!1,isNewlyAuthenticated:o=!1,keyphrases:r=[],response:n={},shouldTrackAll:a=!1,permalink:l="",allKeyphrasesMissRanking:c,isSuccess:p,keyphraseLimitReached:h,limit:g,setRequestSucceeded:m,setRequestFailed:y,setKeyphraseLimitReached:w,onAuthentication:f}){const x=(0,e.useCallback)((()=>{Pt({onAuthentication:f,setRequestSucceeded:m,setRequestFailed:y,keyphrases:r,addTrackedKeyphrase:s,setKeyphraseLimitReached:w})}),[Pt,f,m,y,r,s,w]),b=(t=>{const[s,i]=(0,e.useState)(null);return(0,e.useEffect)((()=>{t&&!s&&async function(){return await he({path:"yoast/v1/wincher/account/limit",method:"GET"})}().then((e=>i(e)))}),[s]),s})(i);return(0,u.jsxs)(Dt,{children:[o&&(0,u.jsx)(Ve,{}),i&&(0,u.jsx)(yt,{trackingInfo:b}),(0,u.jsxs)(Nt,{children:[(0,d.__)("SEO performance","wordpress-seo"),(0,u.jsx)(F.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"] +/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about the SEO performance feature.","wordpress-seo")})]}),(0,u.jsx)(Qe,{}),(0,u.jsx)(Mt,{isLoggedIn:i,onLogin:x}),(0,u.jsx)(qt,{isSuccess:p,response:n,allKeyphrasesMissRanking:c,keyphraseLimitReached:h,limit:g,onLogin:x}),(0,u.jsx)(Kt,{trackedKeyphrases:t,isLoggedIn:i,keyphrases:r,shouldTrackAll:a,permalink:l,historyDaysLimit:(null==b?void 0:b.historyDays)||31})]})}Kt.propTypes={trackedKeyphrases:o().object,keyphrases:o().array.isRequired,isLoggedIn:o().bool.isRequired,shouldTrackAll:o().bool.isRequired,permalink:o().string.isRequired,historyDaysLimit:o().number},Yt.propTypes={trackedKeyphrases:o().object,addTrackedKeyphrase:o().func.isRequired,isLoggedIn:o().bool,isNewlyAuthenticated:o().bool,keyphrases:o().array,response:o().object,shouldTrackAll:o().bool,permalink:o().string,allKeyphrasesMissRanking:o().bool.isRequired,isSuccess:o().bool.isRequired,keyphraseLimitReached:o().bool.isRequired,limit:o().number.isRequired,setRequestSucceeded:o().func.isRequired,setRequestFailed:o().func.isRequired,setKeyphraseLimitReached:o().func.isRequired,onAuthentication:o().func.isRequired};const zt=(0,V.compose)([(0,a.withSelect)((e=>{const{isWincherNewlyAuthenticated:t,getWincherKeyphraseLimitReached:s,getWincherLimit:i,getWincherLoginStatus:o,getWincherRequestIsSuccess:r,getWincherRequestResponse:n,getWincherTrackableKeyphrases:a,getWincherTrackedKeyphrases:l,getWincherAllKeyphrasesMissRanking:c,getWincherPermalink:d,shouldWincherAutomaticallyTrackAll:p}=e("yoast-seo/editor");return{keyphrases:a(),trackedKeyphrases:l(),allKeyphrasesMissRanking:c(),isLoggedIn:o(),isNewlyAuthenticated:t(),isSuccess:r(),keyphraseLimitReached:s(),limit:i(),response:n(),shouldTrackAll:p(),permalink:d()}})),(0,a.withDispatch)((e=>{const{setWincherWebsiteId:t,setWincherRequestSucceeded:s,setWincherRequestFailed:i,setWincherTrackingForKeyphrase:o,setWincherSetKeyphraseLimitReached:r,setWincherLoginStatus:n}=e("yoast-seo/editor");return{setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{i(e)},addTrackedKeyphrase:e=>{o(e)},setKeyphraseLimitReached:e=>{r(e)},onAuthentication:(e,s,i)=>{t(i),n(e,s)}}}))])(Yt),Vt=H()(G)` width: 18px; height: 18px; margin: 3px; -`;function Gt({keyphrases:e,onNoKeyphraseSet:t,onOpen:s,location:i}){if(!e.length){let e=document.querySelector("#focus-keyword-input-metabox");return e||(e=document.querySelector("#focus-keyword-input-sidebar")),e.focus(),void t()}s(i)}function Zt({location:t="",whichModalOpen:s="none",shouldCloseOnClickOutside:i=!0,keyphrases:o,onNoKeyphraseSet:r,onOpen:n,onClose:a}){const c=(0,e.useCallback)((()=>{Gt({keyphrases:o,onNoKeyphraseSet:r,onOpen:n,location:t})}),[Gt,o,r,n,t]),p=(0,d.__)("Track SEO performance","wordpress-seo"),h=((e=null)=>(0,l.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]))();return(0,u.jsxs)(e.Fragment,{children:[s===t&&(0,u.jsx)(te,{title:p,onRequestClose:a,icon:(0,u.jsx)(re,{}),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:i,children:(0,u.jsx)(J,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content",children:(0,u.jsx)(Vt,{})})}),"sidebar"===t&&(0,u.jsx)(ae,{id:`wincher-open-button-${t}`,title:p,SuffixHeroIcon:(0,u.jsx)(zt,{className:"yst-text-slate-500",...h}),onClick:c}),"metabox"===t&&(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsxs)(X,{id:`wincher-open-button-${t}`,onClick:c,children:[(0,u.jsx)(X.Text,{children:p}),(0,u.jsx)(G,{className:"yst-h-5 yst-w-5 yst-text-slate-500",...h})]})})]})}Zt.propTypes={location:o().string,whichModalOpen:o().oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:o().bool,keyphrases:o().array.isRequired,onNoKeyphraseSet:o().func.isRequired,onOpen:o().func.isRequired,onClose:o().func.isRequired};const Xt=(0,z.compose)([(0,a.withSelect)((e=>{const{getWincherModalOpen:t,getWincherTrackableKeyphrases:s}=e("yoast-seo/editor");return{keyphrases:s(),whichModalOpen:t()}})),(0,a.withDispatch)((e=>{const{setWincherOpenModal:t,setWincherDismissModal:s,setWincherNoKeyphrase:i}=e("yoast-seo/editor");return{onOpen:e=>{t(e)},onClose:()=>{s()},onNoKeyphraseSet:()=>{i()}}}))])(Zt),Qt=window.yoast.externals.components;function Jt(){return(0,z.createHigherOrderComponent)((function(t){return(0,z.pure)((function(s){const i=(0,e.useContext)($.LocationContext);return(0,e.createElement)(t,{...s,location:i})}))}),"withLocation")}const es=(0,z.compose)([(0,a.withSelect)((e=>{const{isCornerstoneContent:t}=e("yoast-seo/editor");return{isCornerstone:t(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),(0,a.withDispatch)((e=>{const{toggleCornerstoneContent:t}=e("yoast-seo/editor");return{onChange:t}})),Jt()])(Qt.CollapsibleCornerstone),ts=window.yoast.searchMetadataPreviews,ss=H()(F.StyledSection)` +`;function Gt({keyphrases:e,onNoKeyphraseSet:t,onOpen:s,location:i}){if(!e.length){let e=document.querySelector("#focus-keyword-input-metabox");return e||(e=document.querySelector("#focus-keyword-input-sidebar")),e.focus(),void t()}s(i)}function Zt({location:t="",whichModalOpen:s="none",shouldCloseOnClickOutside:i=!0,keyphrases:o,onNoKeyphraseSet:r,onOpen:n,onClose:a}){const c=(0,e.useCallback)((()=>{Gt({keyphrases:o,onNoKeyphraseSet:r,onOpen:n,location:t})}),[Gt,o,r,n,t]),p=(0,d.__)("Track SEO performance","wordpress-seo"),h=((e=null)=>(0,l.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]))();return(0,u.jsxs)(e.Fragment,{children:[s===t&&(0,u.jsx)(te,{title:p,onRequestClose:a,icon:(0,u.jsx)(re,{}),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:i,children:(0,u.jsx)(J,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content",children:(0,u.jsx)(zt,{})})}),"sidebar"===t&&(0,u.jsx)(ae,{id:`wincher-open-button-${t}`,title:p,SuffixHeroIcon:(0,u.jsx)(Vt,{className:"yst-text-slate-500",...h}),onClick:c}),"metabox"===t&&(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsxs)(X,{id:`wincher-open-button-${t}`,onClick:c,children:[(0,u.jsx)(X.Text,{children:p}),(0,u.jsx)(G,{className:"yst-h-5 yst-w-5 yst-text-slate-500",...h})]})})]})}Zt.propTypes={location:o().string,whichModalOpen:o().oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:o().bool,keyphrases:o().array.isRequired,onNoKeyphraseSet:o().func.isRequired,onOpen:o().func.isRequired,onClose:o().func.isRequired};const Xt=(0,V.compose)([(0,a.withSelect)((e=>{const{getWincherModalOpen:t,getWincherTrackableKeyphrases:s}=e("yoast-seo/editor");return{keyphrases:s(),whichModalOpen:t()}})),(0,a.withDispatch)((e=>{const{setWincherOpenModal:t,setWincherDismissModal:s,setWincherNoKeyphrase:i}=e("yoast-seo/editor");return{onOpen:e=>{t(e)},onClose:()=>{s()},onNoKeyphraseSet:()=>{i()}}}))])(Zt),Qt=window.yoast.externals.components;function Jt(){return(0,V.createHigherOrderComponent)((function(t){return(0,V.pure)((function(s){const i=(0,e.useContext)($.LocationContext);return(0,e.createElement)(t,{...s,location:i})}))}),"withLocation")}const es=(0,V.compose)([(0,a.withSelect)((e=>{const{isCornerstoneContent:t}=e("yoast-seo/editor");return{isCornerstone:t(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),(0,a.withDispatch)((e=>{const{toggleCornerstoneContent:t}=e("yoast-seo/editor");return{onChange:t}})),Jt()])(Qt.CollapsibleCornerstone),ts=window.yoast.searchMetadataPreviews,ss=H()(F.StyledSection)` &${F.StyledSectionBase} { padding: 0; @@ -171,7 +170,7 @@ } } `,is=({children:e=null,title:t="",icon:s="",hasPaperStyle:i=!0,shoppingData:o=null})=>(0,u.jsx)(ss,{headingLevel:3,headingText:t,headingIcon:s,headingIconColor:"#555",hasPaperStyle:i,shoppingData:o,children:e});is.propTypes={children:o().element,title:o().string,icon:o().string,hasPaperStyle:o().bool,shoppingData:o().object};const os=is,rs=window.wp.sanitize,ns="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE";function as(e,t,s="",i=!1){const o="string"==typeof t?(0,Q.decodeHTML)(t):t;return{type:ns,name:e,value:o,label:s,hidden:i}}function ls(e){return e.charAt(0).toUpperCase()+e.slice(1)}const{stripHTMLTags:cs}=Q.strings,ds=["slug","content","contentImage","snippetPreviewImageURL"];function ps(e,t="_"){return e.replace(/\s/g,t)}const us=(0,n.memoize)(((e,t)=>0===e?n.noop:(0,n.debounce)((s=>t(s,e)),500))),hs=({link:e,text:t})=>(0,u.jsxs)(r.Root,{children:[(0,u.jsx)("p",{children:t}),(0,u.jsxs)(r.Button,{href:e,as:"a",className:"yst-gap-2 yst-mb-5 yst-mt-2",variant:"upsell",target:"_blank",rel:"noopener",children:[(0,u.jsx)(h,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,d.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */ -(0,d.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO")]})]});hs.propTypes={link:o().string.isRequired,text:o().string.isRequired};const ms=hs,gs=function(e,t){let s=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(s=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[s]&&(e.url=e.url.slice(0,s)+e.url.slice(s+1)),function(e){const t=(0,n.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,n.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=(0,n.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],n.identity);return{url:e.url,title:cs(t(e.title)),description:cs(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?cs(t(e.filteredSEOTitle)):""}}(e);const s=t._applyModifications.bind(t);return{url:e.url,title:cs(s("data_page_title",e.title)),description:cs(s("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?cs(s("data_page_title",e.filteredSEOTitle)):""}}(e)},ys=(0,z.compose)([(0,a.withSelect)((function(e){const{getBaseUrlFromSettings:t,getDateFromSettings:s,getFocusKeyphrase:i,getRecommendedReplaceVars:o,getReplaceVars:r,getShoppingData:n,getSiteIconUrlFromSettings:a,getSnippetEditorData:l,getSnippetEditorMode:c,getSnippetEditorPreviewImageUrl:d,getSnippetEditorWordsToHighlight:p,isCornerstoneContent:u,getIsTerm:h,getContentLocale:m,getSiteName:g}=e("yoast-seo/editor"),y=r();return y.forEach((e=>{""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")})),{baseUrl:t(),data:l(),date:s(),faviconSrc:a(),keyword:i(),mobileImageSrc:d(),mode:c(),recommendedReplacementVariables:o(),replacementVariables:y,shoppingData:n(),wordsToHighlight:p(),isCornerstone:u(),isTaxonomy:h(),locale:m(),siteName:g()}})),(0,a.withDispatch)((function(e,t,{select:s}){const{updateData:i,switchMode:o,updateAnalysisData:r,findCustomFields:n}=e("yoast-seo/editor"),a=e("core/editor"),l=s("yoast-seo/editor").getPostId();return{onChange:(e,t)=>{switch(e){case"mode":o(t);break;case"slug":i({slug:t}),a&&a.editPost({slug:t});break;default:i({[e]:t})}},onChangeAnalysisData:r,onReplacementVariableSearchChange:us(l,n)}}))])((e=>{const t=(0,a.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/product-google-preview-metabox")),[]),s=(0,a.useSelect)((e=>e("yoast-seo/editor").getIsWooSeoUpsell()),[]),i=(0,d.__)("Want an enhanced Google preview of how your WooCommerce products look in the search results?","wordpress-seo");return(0,u.jsx)($.LocationConsumer,{children:o=>(0,u.jsx)(os,{icon:"eye",hasPaperStyle:e.hasPaperStyle,children:(0,u.jsxs)(u.Fragment,{children:[s&&(0,u.jsx)(ms,{link:t,text:i}),(0,u.jsx)(ts.SnippetEditor,{...e,descriptionPlaceholder:(0,d.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:gs,showCloseButton:!1,idSuffix:o})]})})})})),ws=(0,a.withSelect)((e=>{const{getWarningMessage:t}=e("yoast-seo/editor");return{message:t()}}))(F.Warning),fs=window.yoast.featureFlag,xs=H()(F.Collapsible)` +(0,d.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO")]})]});hs.propTypes={link:o().string.isRequired,text:o().string.isRequired};const gs=hs,ms=function(e,t){let s=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(s=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[s]&&(e.url=e.url.slice(0,s)+e.url.slice(s+1)),function(e){const t=(0,n.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,n.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=(0,n.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],n.identity);return{url:e.url,title:cs(t(e.title)),description:cs(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?cs(t(e.filteredSEOTitle)):""}}(e);const s=t._applyModifications.bind(t);return{url:e.url,title:cs(s("data_page_title",e.title)),description:cs(s("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?cs(s("data_page_title",e.filteredSEOTitle)):""}}(e)},ys=(0,V.compose)([(0,a.withSelect)((function(e){const{getBaseUrlFromSettings:t,getDateFromSettings:s,getFocusKeyphrase:i,getRecommendedReplaceVars:o,getReplaceVars:r,getShoppingData:n,getSiteIconUrlFromSettings:a,getSnippetEditorData:l,getSnippetEditorMode:c,getSnippetEditorPreviewImageUrl:d,getSnippetEditorWordsToHighlight:p,isCornerstoneContent:u,getIsTerm:h,getContentLocale:g,getSiteName:m}=e("yoast-seo/editor"),y=r();return y.forEach((e=>{""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")})),{baseUrl:t(),data:l(),date:s(),faviconSrc:a(),keyword:i(),mobileImageSrc:d(),mode:c(),recommendedReplacementVariables:o(),replacementVariables:y,shoppingData:n(),wordsToHighlight:p(),isCornerstone:u(),isTaxonomy:h(),locale:g(),siteName:m()}})),(0,a.withDispatch)((function(e,t,{select:s}){const{updateData:i,switchMode:o,updateAnalysisData:r,findCustomFields:n}=e("yoast-seo/editor"),a=e("core/editor"),l=s("yoast-seo/editor").getPostId();return{onChange:(e,t)=>{switch(e){case"mode":o(t);break;case"slug":i({slug:t}),a&&a.editPost({slug:t});break;default:i({[e]:t})}},onChangeAnalysisData:r,onReplacementVariableSearchChange:us(l,n)}}))])((e=>{const t=(0,a.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/product-google-preview-metabox")),[]),s=(0,a.useSelect)((e=>e("yoast-seo/editor").getIsWooSeoUpsell()),[]),i=(0,d.__)("Want an enhanced Google preview of how your WooCommerce products look in the search results?","wordpress-seo");return(0,u.jsx)($.LocationConsumer,{children:o=>(0,u.jsx)(os,{icon:"eye",hasPaperStyle:e.hasPaperStyle,children:(0,u.jsxs)(u.Fragment,{children:[s&&(0,u.jsx)(gs,{link:t,text:i}),(0,u.jsx)(ts.SnippetEditor,{...e,descriptionPlaceholder:(0,d.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:ms,showCloseButton:!1,idSuffix:o})]})})})})),ws=(0,a.withSelect)((e=>{const{getWarningMessage:t}=e("yoast-seo/editor");return{message:t()}}))(F.Warning),fs=window.yoast.featureFlag,xs=H()(F.Collapsible)` h2 > button { padding-left: 24px; padding-top: 16px; @@ -192,31 +191,31 @@ /* Translators: %1$s expands to the numeric Flesch reading ease score, %2$s expands to the easiness of reading (e.g. 'easy' or 'very difficult') */ (0,d.__)("The copy scores %1$s in the test, which is considered %2$s to read.","wordpress-seo"),e,function(e){switch(e){case M.DIFFICULTY.NO_DATA:return(0,d.__)("no data","wordpress-seo");case M.DIFFICULTY.VERY_EASY:return(0,d.__)("very easy","wordpress-seo");case M.DIFFICULTY.EASY:return(0,d.__)("easy","wordpress-seo");case M.DIFFICULTY.FAIRLY_EASY:return(0,d.__)("fairly easy","wordpress-seo");case M.DIFFICULTY.OKAY:return(0,d.__)("okay","wordpress-seo");case M.DIFFICULTY.FAIRLY_DIFFICULT:return(0,d.__)("fairly difficult","wordpress-seo");case M.DIFFICULTY.DIFFICULT:return(0,d.__)("difficult","wordpress-seo");case M.DIFFICULTY.VERY_DIFFICULT:return(0,d.__)("very difficult","wordpress-seo")}}(t))}const Ts=()=>{let t=(0,a.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseScore()),[]);const s=(0,e.useMemo)((()=>(0,n.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease","")),[]),i=(0,a.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseDifficulty()),[t]),o=(0,e.useMemo)((()=>{const e=(0,n.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease_article","");return function(e,t,s){const i=function(e){switch(e){case M.DIFFICULTY.FAIRLY_DIFFICULT:case M.DIFFICULTY.DIFFICULT:case M.DIFFICULTY.VERY_DIFFICULT:return(0,d.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case M.DIFFICULTY.NO_DATA:return(0,d.__)("Continue writing to get insight into the readability of your text!","wordpress-seo");default:return(0,d.__)("Good job!","wordpress-seo")}}(t);return(0,u.jsxs)("span",{children:[_s(e,t)," ",t>=M.DIFFICULTY.FAIRLY_DIFFICULT?(0,u.jsx)(ks,{href:s,children:i+"."}):i]})}(t,i,e)}),[t,i]);return-1===t&&(t="?"),(0,u.jsx)(F.InsightsCard,{amount:t,unit:(0,d.__)("out of 100","wordpress-seo"),title:(0,d.__)("Flesch reading ease","wordpress-seo"),linkTo:s -/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about Flesch reading ease","wordpress-seo"),description:o})},Rs=({data:t=[],itemScreenReaderText:s="",className:i="",...o})=>{const r=(0,e.useMemo)((()=>{var e,s;return null!==(e=null===(s=(0,n.maxBy)(t,"number"))||void 0===s?void 0:s.number)&&void 0!==e?e:0}),[t]);return(0,u.jsx)("ul",{className:C()("yoast-data-model",i),...o,children:t.map((({name:e,number:t})=>(0,u.jsxs)("li",{style:{"--yoast-width":t/r*100+"%"},children:[e,(0,u.jsx)("span",{children:t}),s&&(0,u.jsx)("span",{className:"screen-reader-text",children:(0,d.sprintf)(s,t)})]},`${e}_dataItem`)))})};Rs.propTypes={data:o().arrayOf(o().shape({name:o().string.isRequired,number:o().number.isRequired})),itemScreenReaderText:o().string,className:o().string};const js=Rs,Ss=window.wp.url,Is=(0,Q.makeOutboundLink)(),Cs=({location:t})=>{const s=(0,a.useSelect)((e=>{var t,s;return null===(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getPreference("isProminentWordsAvailable",!1))||void 0===t||t}),[]),i=(0,a.useSelect)((e=>e("yoast-seo/editor").getPreference("shouldUpsell",!1)),[]),o=(0,e.useMemo)((()=>(0,n.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${t}-prominent_words`,"")),[t]),r=(0,e.useMemo)((()=>{const e=(0,n.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return p((0,d.sprintf)( +/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about Flesch reading ease","wordpress-seo"),description:o})},Rs=({data:t=[],itemScreenReaderText:s="",className:i="",...o})=>{const r=(0,e.useMemo)((()=>{var e,s;return null!==(e=null===(s=(0,n.maxBy)(t,"number"))||void 0===s?void 0:s.number)&&void 0!==e?e:0}),[t]);return(0,u.jsx)("ul",{className:E()("yoast-data-model",i),...o,children:t.map((({name:e,number:t})=>(0,u.jsxs)("li",{style:{"--yoast-width":t/r*100+"%"},children:[e,(0,u.jsx)("span",{children:t}),s&&(0,u.jsx)("span",{className:"screen-reader-text",children:(0,d.sprintf)(s,t)})]},`${e}_dataItem`)))})};Rs.propTypes={data:o().arrayOf(o().shape({name:o().string.isRequired,number:o().number.isRequired})),itemScreenReaderText:o().string,className:o().string};const js=Rs,Ss=window.wp.url,Is=(0,Q.makeOutboundLink)(),Cs=({location:t})=>{const s=(0,a.useSelect)((e=>{var t,s;return null===(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getPreference("isProminentWordsAvailable",!1))||void 0===t||t}),[]),i=(0,a.useSelect)((e=>e("yoast-seo/editor").getPreference("shouldUpsell",!1)),[]),o=(0,e.useMemo)((()=>(0,n.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${t}-prominent_words`,"")),[t]),r=(0,e.useMemo)((()=>{const e=(0,n.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return p((0,d.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing <a> tags. (0,d.__)("Read our %1$sultimate guide to keyword research%2$s to learn more about keyword research and keyword strategy.","wordpress-seo"),"<a>","</a>"),{a:(0,u.jsx)(Is,{href:e})})}),[]),l=(0,e.useMemo)((()=>p((0,d.sprintf)( // translators: %1$s expands to a starting `b` tag, %1$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`. (0,d.__)("With %1$s%3$s%2$s, this section will show you which words occur most often in your text. By checking these prominent words against your intended keyword(s), you'll know how to edit your text to be more focused.","wordpress-seo"),"<b>","</b>","Yoast SEO Premium"),{b:(0,u.jsx)("b",{})})),[]),c=(0,a.useSelect)((e=>{var t,s;return null!==(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getProminentWords())&&void 0!==t?t:[]}),[]),h=(0,e.useMemo)((()=>{const e=(0,d.sprintf)( // translators: %1$s expands to Yoast SEO Premium. -(0,d.__)("Get %s to enjoy the benefits of prominent words","wordpress-seo"),"Yoast SEO Premium").split(/\s+/);return e.map(((t,s)=>({name:t,number:e.length-s})))}),[]),m=(0,e.useMemo)((()=>i?h:c.map((({word:e,occurrence:t})=>({name:e,number:t})))),[c,h]);if(!s)return null;const{locationContext:g}=(0,$.useRootContext)();return(0,u.jsxs)("div",{className:"yoast-prominent-words",children:[(0,u.jsx)("div",{className:"yoast-field-group__title",children:(0,u.jsx)("b",{children:(0,d.__)("Prominent words","wordpress-seo")})}),!i&&(0,u.jsx)("p",{children:0===m.length?(0,d.__)("Once you add a bit more copy, we'll give you a list of words that occur the most in the content. These give an indication of what your content focuses on.","wordpress-seo"):(0,d.__)("The following words occur the most in the content. These give an indication of what your content focuses on. If the words differ a lot from your topic, you might want to rewrite your content accordingly.","wordpress-seo")}),i&&(0,u.jsx)("p",{children:l}),i&&(0,u.jsxs)(Is,{href:(0,Ss.addQueryArgs)(o,{context:g}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell",children:[(0,d.sprintf)( +(0,d.__)("Get %s to enjoy the benefits of prominent words","wordpress-seo"),"Yoast SEO Premium").split(/\s+/);return e.map(((t,s)=>({name:t,number:e.length-s})))}),[]),g=(0,e.useMemo)((()=>i?h:c.map((({word:e,occurrence:t})=>({name:e,number:t})))),[c,h]);if(!s)return null;const{locationContext:m}=(0,$.useRootContext)();return(0,u.jsxs)("div",{className:"yoast-prominent-words",children:[(0,u.jsx)("div",{className:"yoast-field-group__title",children:(0,u.jsx)("b",{children:(0,d.__)("Prominent words","wordpress-seo")})}),!i&&(0,u.jsx)("p",{children:0===g.length?(0,d.__)("Once you add a bit more copy, we'll give you a list of words that occur the most in the content. These give an indication of what your content focuses on.","wordpress-seo"):(0,d.__)("The following words occur the most in the content. These give an indication of what your content focuses on. If the words differ a lot from your topic, you might want to rewrite your content accordingly.","wordpress-seo")}),i&&(0,u.jsx)("p",{children:l}),i&&(0,u.jsxs)(Is,{href:(0,Ss.addQueryArgs)(o,{context:m}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell",children:[(0,d.sprintf)( // translators: %s expands to `Premium` (part of add-on name). -(0,d.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,u.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]}),(0,u.jsx)("p",{children:r}),(0,u.jsx)(js,{data:m,itemScreenReaderText:/* translators: Hidden accessibility text; %d expands to the number of occurrences. */ +(0,d.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,u.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]}),(0,u.jsx)("p",{children:r}),(0,u.jsx)(js,{data:g,itemScreenReaderText:/* translators: Hidden accessibility text; %d expands to the number of occurrences. */ (0,d.__)("%d occurrences","wordpress-seo"),"aria-label":(0,d.__)("Prominent words","wordpress-seo"),className:i?"yoast-data-model--upsell":null})]})};Cs.propTypes={location:o().string.isRequired};const Es=Cs,Ls=()=>{const t=(0,a.useSelect)((e=>e("yoast-seo/editor").getTextLength()),[]),s=(0,e.useMemo)((()=>(0,n.get)(window,"wpseoAdminL10n.shortlinks-insights-word_count","")),[]);let i=(0,d._n)("word","words",t.count,"wordpress-seo"),o=(0,d.__)("Word count","wordpress-seo"),r=(0,d.__)("Learn more about word count","wordpress-seo");return"character"===t.unit&&(i=(0,d._n)("character","characters",t.count,"wordpress-seo"),o=(0,d.__)("Character count","wordpress-seo"), /* translators: Hidden accessibility text. */ r=(0,d.__)("Learn more about character count","wordpress-seo")),(0,u.jsx)(F.InsightsCard,{amount:t.count,unit:i,title:o,linkTo:s,linkText:r})},As=(0,Q.makeOutboundLink)(),qs=({location:t})=>{const s=(0,e.useMemo)((()=>(0,n.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${t}-text_formality`,"")),[t]),i=(0,e.useMemo)((()=>p((0,d.sprintf)( // Translators: %1$s expands to a starting `b` tag, %2$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`. (0,d.__)("%1$s%3$s%2$s will help you assess the formality level of your text.","wordpress-seo"),"<b>","</b>","Yoast SEO Premium"),{b:(0,u.jsx)("b",{})})),[]);return(0,u.jsx)(e.Fragment,{children:(0,u.jsxs)("div",{children:[(0,u.jsx)("p",{children:i}),(0,u.jsxs)(As,{href:s,className:"yoast-button yoast-button-upsell",children:[(0,d.sprintf)( // Translators: %s expands to `Premium` (part of add-on name). -(0,d.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,u.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]})]})})};qs.propTypes={location:o().string.isRequired};const Fs=qs;function Ps(){return(0,n.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}const Ms=({location:e,name:s})=>{const i=(0,a.useSelect)((e=>e("yoast-seo/editor").isFormalitySupported()),[]),o=Ps().isPremium,r=o?(0,n.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):(0,n.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),l=(0,d.__)("Read more about text formality.","wordpress-seo");return i?(0,u.jsxs)("div",{className:"yoast-text-formality",children:[(0,u.jsxs)("div",{className:"yoast-field-group__title",children:[(0,u.jsx)("b",{children:(0,d.__)("Text formality","wordpress-seo")}),(0,u.jsx)(F.HelpIcon,{linkTo:r,linkText:l})]}),o?(0,u.jsx)(t.Slot,{name:s}):(0,u.jsx)(Fs,{location:e})]}):null};Ms.propTypes={location:o().string.isRequired,name:o().string.isRequired};const Ds=Ms,Os=({location:e="metabox"})=>{const t=(0,a.useSelect)((e=>e("yoast-seo/editor").isFleschReadingEaseAvailable()),[]);return(0,u.jsxs)(bs,{title:(0,d.__)("Insights","wordpress-seo"),id:`yoast-insights-collapsible-${e}`,className:"yoast-insights",children:[(0,u.jsx)(Es,{location:e}),(0,u.jsxs)("div",{children:[t&&(0,u.jsx)("div",{className:"yoast-insights-row",children:(0,u.jsx)(Ts,{})}),(0,u.jsxs)("div",{className:"yoast-insights-row yoast-insights-row--columns",children:[(0,u.jsx)(vs,{}),(0,u.jsx)(Ls,{})]}),(0,fs.isFeatureEnabled)("TEXT_FORMALITY")&&(0,u.jsx)(Ds,{location:e,name:"YoastTextFormalityMetabox"})]})]})};Os.propTypes={location:o().string};const Ns=Os,Us=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))})),Ws=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}))})),$s=({isOpen:t,onClose:s,id:i,upsellLink:o,title:n="",description:l="",benefits:c=[],note:p="",ctbId:m="",modalTitle:g})=>{const{isBlackFriday:y,isWooCommerceActive:w,isProductEntity:f,isWooSEOActive:x}=(0,a.useSelect)((e=>{const t=e("yoast-seo/editor");return{isProductEntity:t.getIsProductEntity(),isWooCommerceActive:t.getIsWooCommerceActive(),isBlackFriday:t.isPromotionActive("black-friday-promotion"),isWooSEOActive:t.getIsWooSeoActive()}}),[]),b=(0,e.useMemo)((()=>w&&f),[w,f]),v=(0,e.useRef)(null);return(0,u.jsx)(r.Modal,{isOpen:t,onClose:s,id:i,initialFocus:v,children:(0,u.jsx)(r.Modal.Panel,{className:"yst-max-w-md yst-p-0",hasCloseButton:!1,children:(0,u.jsxs)(r.Modal.Container,{children:[(0,u.jsxs)(r.Modal.Container.Header,{className:"yst-p-6 yst-border-b-slate-200 yst-border-b yst-flex yst-justify-start yst-gap-3 yst-items-center",children:[b?(0,u.jsx)(Ws,{className:"yst-text-woo-light yst-w-6 yst-h-6 yst-scale-x-[-1]"}):(0,u.jsx)(re,{className:"yst-fill-primary-500 yst-w-5 yst-h-5"}),(0,u.jsx)(r.Modal.Title,{as:"h3",className:C()(b?"yst-text-woo-light":"yst-text-primary-500","yst-text-base yst-font-normal"),children:g}),(0,u.jsx)(r.Modal.CloseButton,{className:"yst-top-2",onClick:s,screenReaderText:(0,d.__)("Close modal","wordpress-seo")})]}),(0,u.jsxs)(r.Modal.Container.Content,{className:"yst-p-0",children:[y&&(0,u.jsx)("div",{className:"yst-flex yst-font-semibold yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6",children:(0,u.jsx)("div",{className:"yst-mx-auto",children:(0,d.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})}),(0,u.jsxs)("div",{className:"yst-py-6 yst-px-12",children:[(0,u.jsx)(r.Title,{as:"h3",className:"yst-mb-1 yst-leading-5 yst-text-sm yst-font-medium yst-text-slate-800",children:n}),(0,u.jsx)("p",{className:"yst-mb-2",children:l}),Array.isArray(c)&&c.length>0&&(0,u.jsx)("ul",{className:"yst-my-2",children:c.map(((e,t)=>(0,u.jsxs)("li",{className:"yst-flex yst-gap-1 yst-mb-2",children:[(0,u.jsx)(E,{className:"yst-mr-1 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),(0,u.jsx)("p",{className:"yst-text-slate-600",children:e})]},`${i}-upsell-benefit-${t}`)))}),"function"==typeof c&&c(),(0,u.jsxs)("div",{className:"yst-text-center",children:[(0,u.jsxs)(r.Button,{as:"a",variant:"upsell",className:"yst-my-2 yst-gap-1.5 yst-w-full",href:o,target:"_blank","data-action":"load-nfd-ctb","data-ctb-id":m,ref:v,children:[(0,u.jsx)(h,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,d.sprintf)(/* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */ +(0,d.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,u.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]})]})})};qs.propTypes={location:o().string.isRequired};const Fs=qs;function Ps(){return(0,n.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}const Ms=({location:e,name:s})=>{const i=(0,a.useSelect)((e=>e("yoast-seo/editor").isFormalitySupported()),[]),o=Ps().isPremium,r=o?(0,n.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):(0,n.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),l=(0,d.__)("Read more about text formality.","wordpress-seo");return i?(0,u.jsxs)("div",{className:"yoast-text-formality",children:[(0,u.jsxs)("div",{className:"yoast-field-group__title",children:[(0,u.jsx)("b",{children:(0,d.__)("Text formality","wordpress-seo")}),(0,u.jsx)(F.HelpIcon,{linkTo:r,linkText:l})]}),o?(0,u.jsx)(t.Slot,{name:s}):(0,u.jsx)(Fs,{location:e})]}):null};Ms.propTypes={location:o().string.isRequired,name:o().string.isRequired};const Ds=Ms,Os=({location:e="metabox"})=>{const t=(0,a.useSelect)((e=>e("yoast-seo/editor").isFleschReadingEaseAvailable()),[]);return(0,u.jsxs)(bs,{title:(0,d.__)("Insights","wordpress-seo"),id:`yoast-insights-collapsible-${e}`,className:"yoast-insights",children:[(0,u.jsx)(Es,{location:e}),(0,u.jsxs)("div",{children:[t&&(0,u.jsx)("div",{className:"yoast-insights-row",children:(0,u.jsx)(Ts,{})}),(0,u.jsxs)("div",{className:"yoast-insights-row yoast-insights-row--columns",children:[(0,u.jsx)(vs,{}),(0,u.jsx)(Ls,{})]}),(0,fs.isFeatureEnabled)("TEXT_FORMALITY")&&(0,u.jsx)(Ds,{location:e,name:"YoastTextFormalityMetabox"})]})]})};Os.propTypes={location:o().string};const Ns=Os,Us=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))})),Ws=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}))})),$s=({isOpen:t,onClose:s,id:i,upsellLink:o,title:n="",description:l="",benefits:c=[],note:p="",ctbId:g="",modalTitle:m})=>{const{isBlackFriday:y,isWooCommerceActive:w,isProductEntity:f,isWooSEOActive:x}=(0,a.useSelect)((e=>{const t=e("yoast-seo/editor");return{isProductEntity:t.getIsProductEntity(),isWooCommerceActive:t.getIsWooCommerceActive(),isBlackFriday:t.isPromotionActive("black-friday-promotion"),isWooSEOActive:t.getIsWooSeoActive()}}),[]),b=(0,e.useMemo)((()=>w&&f),[w,f]),v=(0,e.useRef)(null);return(0,u.jsx)(r.Modal,{isOpen:t,onClose:s,id:i,initialFocus:v,children:(0,u.jsx)(r.Modal.Panel,{className:"yst-max-w-md yst-p-0",hasCloseButton:!1,children:(0,u.jsxs)(r.Modal.Container,{children:[(0,u.jsxs)(r.Modal.Container.Header,{className:"yst-p-6 yst-border-b-slate-200 yst-border-b yst-flex yst-justify-start yst-gap-3 yst-items-center",children:[b?(0,u.jsx)(Ws,{className:"yst-text-woo-light yst-w-6 yst-h-6 yst-scale-x-[-1]"}):(0,u.jsx)(re,{className:"yst-fill-primary-500 yst-w-5 yst-h-5"}),(0,u.jsx)(r.Modal.Title,{as:"h3",className:E()(b?"yst-text-woo-light":"yst-text-primary-500","yst-text-base yst-font-normal"),children:m}),(0,u.jsx)(r.Modal.CloseButton,{className:"yst-top-2",onClick:s,screenReaderText:(0,d.__)("Close modal","wordpress-seo")})]}),(0,u.jsxs)(r.Modal.Container.Content,{className:"yst-p-0",children:[y&&(0,u.jsx)("div",{className:"yst-flex yst-font-semibold yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6",children:(0,u.jsx)("div",{className:"yst-mx-auto",children:(0,d.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})}),(0,u.jsxs)("div",{className:"yst-py-6 yst-px-12",children:[(0,u.jsx)(r.Title,{as:"h3",className:"yst-mb-1 yst-leading-5 yst-text-sm yst-font-medium yst-text-slate-800",children:n}),(0,u.jsx)("p",{className:"yst-mb-2",children:l}),Array.isArray(c)&&c.length>0&&(0,u.jsx)("ul",{className:"yst-my-2",children:c.map(((e,t)=>(0,u.jsxs)("li",{className:"yst-flex yst-gap-1 yst-mb-2",children:[(0,u.jsx)(I,{className:"yst-mr-1 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),(0,u.jsx)("p",{className:"yst-text-slate-600",children:e})]},`${i}-upsell-benefit-${t}`)))}),"function"==typeof c&&c(),(0,u.jsxs)("div",{className:"yst-text-center",children:[(0,u.jsxs)(r.Button,{as:"a",variant:"upsell",className:"yst-my-2 yst-gap-1.5 yst-w-full",href:o,target:"_blank","data-action":"load-nfd-ctb","data-ctb-id":g,ref:v,children:[(0,u.jsx)(h,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,d.sprintf)(/* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */ (0,d.__)("Explore %s","wordpress-seo"),b&&!x?"Yoast WooCommerce SEO":"Yoast SEO Premium"),(0,u.jsx)("span",{className:"yst-sr-only",children:(0,d.__)("Opens in a new tab","wordpress-seo")})]}),(0,u.jsx)("div",{className:"yst-italic yst-text-slate-500 yst-mt-1",children:p})]})]})]})]})})})},Bs=()=>{const[e,,,t,s]=(0,r.useToggleState)(!1),{locationContext:i}=(0,$.useRootContext)(),o=(0,r.useSvgAria)(),n=i.includes("sidebar"),a=i.includes("metabox"),l=n?"sidebar":"metabox",c=wpseoAdminL10n[n?"shortlinks.upsell.sidebar.internal_linking_suggestions":"shortlinks.upsell.metabox.internal_linking_suggestions"];return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)($s,{isOpen:e,onClose:s,id:`yoast-internal-linking-suggestions-upsell-${l}`,upsellLink:(0,Ss.addQueryArgs)(c,{context:i}),modalTitle:(0,d.__)("Add smarter internal links with Premium","wordpress-seo"),title:(0,d.__)("Connect related content without the guesswork","wordpress-seo"),description:p((0,d.sprintf)(/* translators: %s expands to be tag. */ (0,d.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles. %sScans your content to:","wordpress-seo"),"<br />"),{br:(0,u.jsx)("br",{})}),benefits:[(0,d.__)("Suggest internal links based on your content’s main topics","wordpress-seo"),(0,d.__)("Build relevant internal links faster","wordpress-seo"),(0,d.__)("Strengthen your site’s structure","wordpress-seo"),(0,d.__)("Keep visitors exploring longer","wordpress-seo")],note:(0,d.__)("Upgrade to link your content with ease","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),n&&(0,u.jsx)(ae,{id:"yoast-internal-linking-suggestions-sidebar-modal-open-button",title:(0,d.__)("Internal linking suggestions","wordpress-seo"),onClick:t,children:(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsx)(r.Badge,{size:"small",variant:"upsell",children:(0,u.jsx)(Us,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...o})})})}),a&&(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsxs)(X,{id:"yoast-internal-linking-suggestions-metabox-modal-open-button",onClick:t,children:[(0,u.jsx)(X.Text,{children:(0,d.__)("Internal linking suggestions","wordpress-seo")}),(0,u.jsxs)(r.Badge,{size:"small",variant:"upsell",children:[(0,u.jsx)(Us,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...o}),(0,u.jsx)("span",{children:"Premium"})]})]})})]})},Hs=({children:e})=>(0,u.jsx)("div",{children:e});Hs.propTypes={renderPriority:o().number.isRequired,children:o().node.isRequired};const Ks=Hs,Ys=({noIndex:t,onNoIndexChange:s,editorContext:i,isPrivateBlog:o=!1})=>{const r=(e=>{const t=(0,d.__)("No","wordpress-seo"),s=(0,d.__)("Yes","wordpress-seo"),i=e.noIndex?t:s;return window.wpseoScriptData.isPost?[{name:(0,d.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */ (0,d.__)("%1$s (current default for %2$s)","wordpress-seo"),i,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:s,value:"2"}]:[{name:(0,d.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */ (0,d.__)("%1$s (current default for %2$s)","wordpress-seo"),i,e.postTypeNamePlural),value:"default"},{name:s,value:"index"},{name:t,value:"noindex"}]})(i);return(0,u.jsx)($.LocationConsumer,{children:i=>(0,u.jsxs)(e.Fragment,{children:[o&&(0,u.jsx)(F.Alert,{type:"warning",children:(0,d.__)("Even though you can set the meta robots setting here, the entire site is set to noindex in the sitewide privacy settings, so these settings won't have an effect.","wordpress-seo")}),(0,u.jsx)(F.Select,{label:(0,d.__)("Allow search engines to show this content in search results?","wordpress-seo"),onChange:s,id:(0,Q.join)(["yoast-meta-robots-noindex",i]),options:r,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"] -/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about the no-index setting on our help page.","wordpress-seo")})]})})};Ys.propTypes={noIndex:o().string.isRequired,onNoIndexChange:o().func.isRequired,editorContext:o().object.isRequired,isPrivateBlog:o().bool};const Vs=({noFollow:e,onNoFollowChange:t})=>(0,u.jsx)($.LocationConsumer,{children:s=>{const i=(0,Q.join)(["yoast-meta-robots-nofollow",s]);return(0,u.jsx)(F.RadioButtonGroup,{id:i,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:(0,d.__)("Should search engines follow links on this content?","wordpress-seo"),groupName:i,onChange:t,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"] -/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}});Vs.propTypes={noFollow:o().string.isRequired,onNoFollowChange:o().func.isRequired};const zs=({advanced:e,onAdvancedChange:t})=>(0,u.jsx)($.LocationConsumer,{children:s=>{const i=(0,Q.join)(["yoast-meta-robots-advanced",s]),o=`${i}-input`;return(0,u.jsx)(F.MultiSelect,{label:(0,d.__)("Meta robots advanced","wordpress-seo"),onChange:t,id:i,inputId:o,options:[{name:(0,d.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:(0,d.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:(0,d.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"] -/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}});zs.propTypes={advanced:o().array.isRequired,onAdvancedChange:o().func.isRequired};const Gs=({breadcrumbsTitle:e,onBreadcrumbsTitleChange:t})=>(0,u.jsx)($.LocationConsumer,{children:s=>(0,u.jsx)(F.TextInput,{label:(0,d.__)("Breadcrumbs Title","wordpress-seo"),id:(0,Q.join)(["yoast-breadcrumbs-title",s]),onChange:t,value:e,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"] +/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about the no-index setting on our help page.","wordpress-seo")})]})})};Ys.propTypes={noIndex:o().string.isRequired,onNoIndexChange:o().func.isRequired,editorContext:o().object.isRequired,isPrivateBlog:o().bool};const zs=({noFollow:e,onNoFollowChange:t})=>(0,u.jsx)($.LocationConsumer,{children:s=>{const i=(0,Q.join)(["yoast-meta-robots-nofollow",s]);return(0,u.jsx)(F.RadioButtonGroup,{id:i,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:(0,d.__)("Should search engines follow links on this content?","wordpress-seo"),groupName:i,onChange:t,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"] +/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}});zs.propTypes={noFollow:o().string.isRequired,onNoFollowChange:o().func.isRequired};const Vs=({advanced:e,onAdvancedChange:t})=>(0,u.jsx)($.LocationConsumer,{children:s=>{const i=(0,Q.join)(["yoast-meta-robots-advanced",s]),o=`${i}-input`;return(0,u.jsx)(F.MultiSelect,{label:(0,d.__)("Meta robots advanced","wordpress-seo"),onChange:t,id:i,inputId:o,options:[{name:(0,d.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:(0,d.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:(0,d.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"] +/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}});Vs.propTypes={advanced:o().array.isRequired,onAdvancedChange:o().func.isRequired};const Gs=({breadcrumbsTitle:e,onBreadcrumbsTitleChange:t})=>(0,u.jsx)($.LocationConsumer,{children:s=>(0,u.jsx)(F.TextInput,{label:(0,d.__)("Breadcrumbs Title","wordpress-seo"),id:(0,Q.join)(["yoast-breadcrumbs-title",s]),onChange:t,value:e,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"] /* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})});Gs.propTypes={breadcrumbsTitle:o().string.isRequired,onBreadcrumbsTitleChange:o().func.isRequired};const Zs=({canonical:e,onCanonicalChange:t})=>(0,u.jsx)($.LocationConsumer,{children:s=>(0,u.jsx)(F.TextInput,{label:(0,d.__)("Canonical URL","wordpress-seo"),id:(0,Q.join)(["yoast-canonical",s]),onChange:t,value:e,linkTo:"https://yoa.st/canonical-url" -/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})});Zs.propTypes={canonical:o().string.isRequired,onCanonicalChange:o().func.isRequired};const Xs=({noIndex:t,canonical:s,onNoIndexChange:i,onCanonicalChange:o,onLoad:r,isLoading:a,editorContext:l,isBreadcrumbsDisabled:c,advanced:d=[],onAdvancedChange:p=n.noop,noFollow:h="",onNoFollowChange:m=n.noop,breadcrumbsTitle:g="",onBreadcrumbsTitleChange:y=n.noop,isPrivateBlog:w=!1})=>{(0,e.useEffect)((()=>{setTimeout((()=>{a&&r()}))}));const f={noIndex:t,onNoIndexChange:i,editorContext:l,isPrivateBlog:w},x={noFollow:h,onNoFollowChange:m},b={advanced:d,onAdvancedChange:p},v={breadcrumbsTitle:g,onBreadcrumbsTitleChange:y},k={canonical:s,onCanonicalChange:o};return a?null:(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)(Ys,{...f}),l.isPost&&(0,u.jsx)(Vs,{...x}),l.isPost&&(0,u.jsx)(zs,{...b}),!c&&(0,u.jsx)(Gs,{...v}),(0,u.jsx)(Zs,{...k})]})};Xs.propTypes={noIndex:o().string.isRequired,canonical:o().string.isRequired,onNoIndexChange:o().func.isRequired,onCanonicalChange:o().func.isRequired,onLoad:o().func.isRequired,isLoading:o().bool.isRequired,editorContext:o().object.isRequired,isBreadcrumbsDisabled:o().bool.isRequired,isPrivateBlog:o().bool,advanced:o().array,onAdvancedChange:o().func,noFollow:o().string,onNoFollowChange:o().func,breadcrumbsTitle:o().string,onBreadcrumbsTitleChange:o().func};const Qs=Xs,Js=(0,z.compose)([(0,a.withSelect)((e=>{const{getNoIndex:t,getNoFollow:s,getAdvanced:i,getBreadcrumbsTitle:o,getCanonical:r,getIsLoading:n,getEditorContext:a,getPreferences:l}=e("yoast-seo/editor"),{isBreadcrumbsDisabled:c,isPrivateBlog:d}=l();return{noIndex:t(),noFollow:s(),advanced:i(),breadcrumbsTitle:o(),canonical:r(),isLoading:n(),editorContext:a(),isBreadcrumbsDisabled:c,isPrivateBlog:d}})),(0,a.withDispatch)((e=>{const{setNoIndex:t,setNoFollow:s,setAdvanced:i,setBreadcrumbsTitle:o,setCanonical:r,loadAdvancedSettingsData:n}=e("yoast-seo/editor");return{onNoIndexChange:t,onNoFollowChange:s,onAdvancedChange:i,onBreadcrumbsTitleChange:o,onCanonicalChange:r,onLoad:n}}))])(Qs),ei=H().p` +/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})});Zs.propTypes={canonical:o().string.isRequired,onCanonicalChange:o().func.isRequired};const Xs=({noIndex:t,canonical:s,onNoIndexChange:i,onCanonicalChange:o,onLoad:r,isLoading:a,editorContext:l,isBreadcrumbsDisabled:c,advanced:d=[],onAdvancedChange:p=n.noop,noFollow:h="",onNoFollowChange:g=n.noop,breadcrumbsTitle:m="",onBreadcrumbsTitleChange:y=n.noop,isPrivateBlog:w=!1})=>{(0,e.useEffect)((()=>{setTimeout((()=>{a&&r()}))}));const f={noIndex:t,onNoIndexChange:i,editorContext:l,isPrivateBlog:w},x={noFollow:h,onNoFollowChange:g},b={advanced:d,onAdvancedChange:p},v={breadcrumbsTitle:m,onBreadcrumbsTitleChange:y},k={canonical:s,onCanonicalChange:o};return a?null:(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)(Ys,{...f}),l.isPost&&(0,u.jsx)(zs,{...x}),l.isPost&&(0,u.jsx)(Vs,{...b}),!c&&(0,u.jsx)(Gs,{...v}),(0,u.jsx)(Zs,{...k})]})};Xs.propTypes={noIndex:o().string.isRequired,canonical:o().string.isRequired,onNoIndexChange:o().func.isRequired,onCanonicalChange:o().func.isRequired,onLoad:o().func.isRequired,isLoading:o().bool.isRequired,editorContext:o().object.isRequired,isBreadcrumbsDisabled:o().bool.isRequired,isPrivateBlog:o().bool,advanced:o().array,onAdvancedChange:o().func,noFollow:o().string,onNoFollowChange:o().func,breadcrumbsTitle:o().string,onBreadcrumbsTitleChange:o().func};const Qs=Xs,Js=(0,V.compose)([(0,a.withSelect)((e=>{const{getNoIndex:t,getNoFollow:s,getAdvanced:i,getBreadcrumbsTitle:o,getCanonical:r,getIsLoading:n,getEditorContext:a,getPreferences:l}=e("yoast-seo/editor"),{isBreadcrumbsDisabled:c,isPrivateBlog:d}=l();return{noIndex:t(),noFollow:s(),advanced:i(),breadcrumbsTitle:o(),canonical:r(),isLoading:n(),editorContext:a(),isBreadcrumbsDisabled:c,isPrivateBlog:d}})),(0,a.withDispatch)((e=>{const{setNoIndex:t,setNoFollow:s,setAdvanced:i,setBreadcrumbsTitle:o,setCanonical:r,loadAdvancedSettingsData:n}=e("yoast-seo/editor");return{onNoIndexChange:t,onNoFollowChange:s,onAdvancedChange:i,onBreadcrumbsTitleChange:o,onCanonicalChange:r,onLoad:n}}))])(Qs),ei=H().p` color: #606770; flex-shrink: 0; font-size: 12px; @@ -269,7 +268,7 @@ text-decoration: underline; font-size: 14px; cursor: pointer; -`;class mi extends l.Component{constructor(e){super(e),this.state={imageProperties:null,status:"loading"},this.socialMedium="Facebook",this.handleFacebookImage=this.handleFacebookImage.bind(this),this.setState=this.setState.bind(this)}async handleFacebookImage(){try{const e=await pi(this.props.src,this.socialMedium);this.setState(e),this.props.onImageLoaded(e.imageProperties.mode||"landscape")}catch(e){this.setState(e),this.props.onImageLoaded("landscape")}}componentDidUpdate(e){e.src!==this.props.src&&this.handleFacebookImage()}componentDidMount(){this.handleFacebookImage()}retrieveContainerDimensions(e){switch(e){case"square":return{height:ii.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:ii.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:ii.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:ii.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:ii.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:ii.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return(0,u.jsx)(hi,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,d.__)("Select image","wordpress-seo")});const s=this.retrieveContainerDimensions(e.mode);return(0,u.jsx)(ui,{mode:e.mode,dimensions:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick,children:(0,u.jsx)(ai,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:ii.FACEBOOK_IMAGE_SIZES.aspectRatio},width:e.width,height:e.height,imageMode:e.mode})})}}mi.propTypes={src:o().string,alt:o().string,onImageLoaded:o().func,onImageClick:o().func,onMouseEnter:o().func,onMouseLeave:o().func},mi.defaultProps={src:"",alt:"",onImageLoaded:n.noop,onImageClick:n.noop,onMouseEnter:n.noop,onMouseLeave:n.noop};const gi=mi,yi=H().span` +`;class gi extends l.Component{constructor(e){super(e),this.state={imageProperties:null,status:"loading"},this.socialMedium="Facebook",this.handleFacebookImage=this.handleFacebookImage.bind(this),this.setState=this.setState.bind(this)}async handleFacebookImage(){try{const e=await pi(this.props.src,this.socialMedium);this.setState(e),this.props.onImageLoaded(e.imageProperties.mode||"landscape")}catch(e){this.setState(e),this.props.onImageLoaded("landscape")}}componentDidUpdate(e){e.src!==this.props.src&&this.handleFacebookImage()}componentDidMount(){this.handleFacebookImage()}retrieveContainerDimensions(e){switch(e){case"square":return{height:ii.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:ii.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:ii.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:ii.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:ii.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:ii.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return(0,u.jsx)(hi,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,d.__)("Select image","wordpress-seo")});const s=this.retrieveContainerDimensions(e.mode);return(0,u.jsx)(ui,{mode:e.mode,dimensions:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick,children:(0,u.jsx)(ai,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:ii.FACEBOOK_IMAGE_SIZES.aspectRatio},width:e.width,height:e.height,imageMode:e.mode})})}}gi.propTypes={src:o().string,alt:o().string,onImageLoaded:o().func,onImageClick:o().func,onMouseEnter:o().func,onMouseLeave:o().func},gi.defaultProps={src:"",alt:"",onImageLoaded:n.noop,onImageClick:n.noop,onMouseEnter:n.noop,onMouseLeave:n.noop};const mi=gi,yi=H().span` line-height: ${20}px; min-height : ${20}px; color: #1d2129; @@ -324,7 +323,7 @@ justify-content: ${e=>"landscape"===e.mode?"flex-start":"center"}; font-size: 12px; overflow: hidden; -`;class vi extends l.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=c().createRef(),this.onImageLoaded=this.onImageLoaded.bind(this),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}onImageLoaded(e){this.setState({imageMode:e})}getTitleLineCount(){return this.facebookTitleRef.current.offsetHeight/20}maybeSetMaxLineCount(){const{imageMode:e,maxLineCount:t}=this.state,s="landscape"===e?2:5;s!==t&&this.setState({maxLineCount:s})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:t,imageMode:s}=this.state,i=this.getTitleLineCount();let o=t-i;"portrait"===s&&(o=5===i?0:4),o!==e&&this.setState({descriptionLineCount:o})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:t,descriptionLineCount:s}=this.state;return(0,u.jsxs)(xi,{id:"facebookPreview",mode:e,children:[(0,u.jsx)(gi,{src:this.props.imageUrl||this.props.imageFallbackUrl,alt:this.props.alt,onImageLoaded:this.onImageLoaded,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,u.jsxs)(bi,{mode:e,children:[(0,u.jsx)(si,{siteUrl:this.props.siteUrl,mode:e}),(0,u.jsx)(yi,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:t,children:this.props.title}),s>0&&(0,u.jsx)(wi,{maxWidth:fi(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:s,children:this.props.description})]})]})}}vi.propTypes={siteUrl:o().string.isRequired,title:o().string.isRequired,description:o().string,imageUrl:o().string,imageFallbackUrl:o().string,alt:o().string,onSelect:o().func,onImageClick:o().func,onMouseHover:o().func},vi.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const ki=vi,_i=H().div` +`;class vi extends l.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=c().createRef(),this.onImageLoaded=this.onImageLoaded.bind(this),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}onImageLoaded(e){this.setState({imageMode:e})}getTitleLineCount(){return this.facebookTitleRef.current.offsetHeight/20}maybeSetMaxLineCount(){const{imageMode:e,maxLineCount:t}=this.state,s="landscape"===e?2:5;s!==t&&this.setState({maxLineCount:s})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:t,imageMode:s}=this.state,i=this.getTitleLineCount();let o=t-i;"portrait"===s&&(o=5===i?0:4),o!==e&&this.setState({descriptionLineCount:o})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:t,descriptionLineCount:s}=this.state;return(0,u.jsxs)(xi,{id:"facebookPreview",mode:e,children:[(0,u.jsx)(mi,{src:this.props.imageUrl||this.props.imageFallbackUrl,alt:this.props.alt,onImageLoaded:this.onImageLoaded,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,u.jsxs)(bi,{mode:e,children:[(0,u.jsx)(si,{siteUrl:this.props.siteUrl,mode:e}),(0,u.jsx)(yi,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:t,children:this.props.title}),s>0&&(0,u.jsx)(wi,{maxWidth:fi(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:s,children:this.props.description})]})]})}}vi.propTypes={siteUrl:o().string.isRequired,title:o().string.isRequired,description:o().string,imageUrl:o().string,imageFallbackUrl:o().string,alt:o().string,onSelect:o().func,onImageClick:o().func,onMouseHover:o().func},vi.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const ki=vi,_i=H().div` text-transform: lowercase; color: rgb(83, 100, 113); white-space: nowrap; @@ -426,13 +425,13 @@ `,Oi=H()(Mi)` flex-direction: row; height: 125px; -`;class Ni extends l.Component{constructor(e){super(e),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}render(){const{isLarge:e,imageUrl:t,imageFallbackUrl:s,alt:i,title:o,description:r,siteUrl:n}=this.props,a=e?Di:Oi;return(0,u.jsxs)(a,{id:"twitterPreview",children:[(0,u.jsx)(Ei,{src:t||s,alt:i,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,u.jsxs)(qi,{children:[(0,u.jsx)(Ri,{siteUrl:n}),(0,u.jsx)(Fi,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,children:o}),(0,u.jsx)(Pi,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,children:r})]})]})}}Ni.propTypes={siteUrl:o().string.isRequired,title:o().string.isRequired,description:o().string,isLarge:o().bool,imageUrl:o().string,imageFallbackUrl:o().string,alt:o().string,onSelect:o().func,onImageClick:o().func,onMouseHover:o().func},Ni.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const Ui=Ni,Wi=window.yoast.replacementVariableEditor;class $i extends l.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?ki:Ui,this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},(()=>this.setEditorFocus(e)))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:e,onTitleChange:t,onSelectImageClick:s,onRemoveImageClick:i,socialMediumName:o,imageWarnings:r,siteUrl:n,description:a,descriptionInputPlaceholder:l,descriptionPreviewFallback:d,imageUrl:p,imageFallbackUrl:h,alt:m,title:g,titleInputPlaceholder:y,titlePreviewFallback:w,replacementVariables:f,recommendedReplacementVariables:x,applyReplacementVariables:b,onReplacementVariableSearchChange:v,isPremium:k,isLarge:_,socialPreviewLabel:T,idSuffix:R,activeMetaTabId:j}=this.props,S=b({title:g||w,description:a||d});return(0,u.jsxs)(c().Fragment,{children:[T&&(0,u.jsx)(F.SimulatedLabel,{children:T}),(0,u.jsx)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:s,siteUrl:n,title:S.title,description:S.description,imageUrl:p,imageFallbackUrl:h,alt:m,isLarge:_,activeMetaTabId:j}),(0,u.jsx)(ii.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:o,title:g,titleInputPlaceholder:y,onRemoveImageClick:i,imageSelected:!!p,imageUrl:p,imageFallbackUrl:h,onTitleChange:t,onSelectImageClick:s,description:a,descriptionInputPlaceholder:l,imageWarnings:r,replacementVariables:f,recommendedReplacementVariables:x,onReplacementVariableSearchChange:v,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:k,setEditorRef:this.setEditorRef,idSuffix:R})]})}}$i.propTypes={title:o().string.isRequired,onTitleChange:o().func.isRequired,description:o().string.isRequired,onDescriptionChange:o().func.isRequired,imageUrl:o().string.isRequired,imageFallbackUrl:o().string.isRequired,onSelectImageClick:o().func.isRequired,onRemoveImageClick:o().func.isRequired,socialMediumName:o().string.isRequired,alt:o().string,isPremium:o().bool,imageWarnings:o().array,isLarge:o().bool,siteUrl:o().string,descriptionInputPlaceholder:o().string,titleInputPlaceholder:o().string,descriptionPreviewFallback:o().string,titlePreviewFallback:o().string,replacementVariables:Wi.replacementVariablesShape,recommendedReplacementVariables:Wi.recommendedReplacementVariablesShape,applyReplacementVariables:o().func,onReplacementVariableSearchChange:o().func,socialPreviewLabel:o().string,idSuffix:o().string,activeMetaTabId:o().string},$i.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const Bi={},Hi=(e,t,{log:s=console.warn}={})=>{Bi[e]||(Bi[e]=!0,s(t))},Ki=(e,t=n.noop)=>{const s={};for(const i in e)Object.hasOwn(e,i)&&Object.defineProperty(s,i,{set:s=>{e[i]=s,t("set",i,s)},get:()=>(t("get",i),e[i])});return s};Ki({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},((e,t)=>Hi(`@yoast/social-metadata-previews/TWITTER_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "TWITTER_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`))),Ki({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},((e,t)=>Hi(`@yoast/social-metadata-previews/FACEBOOK_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "FACEBOOK_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`)));const Yi=H().div` +`;class Ni extends l.Component{constructor(e){super(e),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}render(){const{isLarge:e,imageUrl:t,imageFallbackUrl:s,alt:i,title:o,description:r,siteUrl:n}=this.props,a=e?Di:Oi;return(0,u.jsxs)(a,{id:"twitterPreview",children:[(0,u.jsx)(Ei,{src:t||s,alt:i,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,u.jsxs)(qi,{children:[(0,u.jsx)(Ri,{siteUrl:n}),(0,u.jsx)(Fi,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,children:o}),(0,u.jsx)(Pi,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,children:r})]})]})}}Ni.propTypes={siteUrl:o().string.isRequired,title:o().string.isRequired,description:o().string,isLarge:o().bool,imageUrl:o().string,imageFallbackUrl:o().string,alt:o().string,onSelect:o().func,onImageClick:o().func,onMouseHover:o().func},Ni.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const Ui=Ni,Wi=window.yoast.replacementVariableEditor;class $i extends l.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?ki:Ui,this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},(()=>this.setEditorFocus(e)))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:e,onTitleChange:t,onSelectImageClick:s,onRemoveImageClick:i,socialMediumName:o,imageWarnings:r,siteUrl:n,description:a,descriptionInputPlaceholder:l,descriptionPreviewFallback:d,imageUrl:p,imageFallbackUrl:h,alt:g,title:m,titleInputPlaceholder:y,titlePreviewFallback:w,replacementVariables:f,recommendedReplacementVariables:x,applyReplacementVariables:b,onReplacementVariableSearchChange:v,isPremium:k,isLarge:_,socialPreviewLabel:T,idSuffix:R,activeMetaTabId:j}=this.props,S=b({title:m||w,description:a||d});return(0,u.jsxs)(c().Fragment,{children:[T&&(0,u.jsx)(F.SimulatedLabel,{children:T}),(0,u.jsx)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:s,siteUrl:n,title:S.title,description:S.description,imageUrl:p,imageFallbackUrl:h,alt:g,isLarge:_,activeMetaTabId:j}),(0,u.jsx)(ii.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:o,title:m,titleInputPlaceholder:y,onRemoveImageClick:i,imageSelected:!!p,imageUrl:p,imageFallbackUrl:h,onTitleChange:t,onSelectImageClick:s,description:a,descriptionInputPlaceholder:l,imageWarnings:r,replacementVariables:f,recommendedReplacementVariables:x,onReplacementVariableSearchChange:v,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:k,setEditorRef:this.setEditorRef,idSuffix:R})]})}}$i.propTypes={title:o().string.isRequired,onTitleChange:o().func.isRequired,description:o().string.isRequired,onDescriptionChange:o().func.isRequired,imageUrl:o().string.isRequired,imageFallbackUrl:o().string.isRequired,onSelectImageClick:o().func.isRequired,onRemoveImageClick:o().func.isRequired,socialMediumName:o().string.isRequired,alt:o().string,isPremium:o().bool,imageWarnings:o().array,isLarge:o().bool,siteUrl:o().string,descriptionInputPlaceholder:o().string,titleInputPlaceholder:o().string,descriptionPreviewFallback:o().string,titlePreviewFallback:o().string,replacementVariables:Wi.replacementVariablesShape,recommendedReplacementVariables:Wi.recommendedReplacementVariablesShape,applyReplacementVariables:o().func,onReplacementVariableSearchChange:o().func,socialPreviewLabel:o().string,idSuffix:o().string,activeMetaTabId:o().string},$i.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const Bi={},Hi=(e,t,{log:s=console.warn}={})=>{Bi[e]||(Bi[e]=!0,s(t))},Ki=(e,t=n.noop)=>{const s={};for(const i in e)Object.hasOwn(e,i)&&Object.defineProperty(s,i,{set:s=>{e[i]=s,t("set",i,s)},get:()=>(t("get",i),e[i])});return s};Ki({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},((e,t)=>Hi(`@yoast/social-metadata-previews/TWITTER_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "TWITTER_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`))),Ki({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},((e,t)=>Hi(`@yoast/social-metadata-previews/FACEBOOK_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "FACEBOOK_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`)));const Yi=H().div` max-width: calc(527px + 1.5rem); -`,Vi=e=>{const t="X"===e.socialMediumName?(0,d.__)("X share preview","wordpress-seo"):(0,d.__)("Social share preview","wordpress-seo"),{locationContext:s}=(0,r.useRootContext)();return(0,u.jsx)(r.Root,{children:(0,u.jsx)(Yi,{children:(0,u.jsx)(r.FeatureUpsell,{shouldUpsell:!0,variant:"card",cardLink:(0,Ss.addQueryArgs)(wpseoAdminL10n["shortlinks.upsell.social_preview."+e.socialMediumName.toLowerCase()],{context:s}),cardText:(0,d.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */ -(0,d.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",children:(0,u.jsxs)("div",{className:"yst-grayscale yst-opacity-50",children:[(0,u.jsx)(r.Label,{children:t}),(0,u.jsx)(ki,{title:"",description:"",siteUrl:"",imageUrl:"",imageFallbackUrl:"",alt:"",onSelect:n.noop,onImageClick:n.noop,onMouseHover:n.noop})]})})})})};Vi.propTypes={socialMediumName:o().oneOf(["Social","Twitter","X"]).isRequired};const zi=Vi;class Gi extends e.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},(()=>this.setEditorFocus(e)))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:t,onTitleChange:s,onSelectImageClick:i,onRemoveImageClick:o,socialMediumName:r,imageWarnings:n,description:a,descriptionInputPlaceholder:l,imageUrl:c,imageFallbackUrl:d,alt:p,title:h,titleInputPlaceholder:m,replacementVariables:g,recommendedReplacementVariables:y,onReplacementVariableSearchChange:w,isPremium:f,location:x}=this.props;return(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)(zi,{socialMediumName:r}),(0,u.jsx)(ii.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:r,title:h,titleInputPlaceholder:m,onRemoveImageClick:o,imageSelected:!!c,imageUrl:c,imageFallbackUrl:d,imageAltText:p,onTitleChange:s,onSelectImageClick:i,description:a,descriptionInputPlaceholder:l,imageWarnings:n,replacementVariables:g,recommendedReplacementVariables:y,onReplacementVariableSearchChange:w,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:f,setEditorRef:this.setEditorRef,idSuffix:x})]})}}Gi.propTypes={title:o().string.isRequired,onTitleChange:o().func.isRequired,description:o().string.isRequired,onDescriptionChange:o().func.isRequired,imageUrl:o().string.isRequired,imageFallbackUrl:o().string,onSelectImageClick:o().func.isRequired,onRemoveImageClick:o().func.isRequired,socialMediumName:o().string.isRequired,isPremium:o().bool,imageWarnings:o().array,descriptionInputPlaceholder:o().string,titleInputPlaceholder:o().string,replacementVariables:Wi.replacementVariablesShape,recommendedReplacementVariables:Wi.recommendedReplacementVariablesShape,onReplacementVariableSearchChange:o().func,location:o().string,alt:o().string},Gi.defaultProps={imageWarnings:[],imageFallbackUrl:"",recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",onReplacementVariableSearchChange:null,location:"",alt:""};const Zi=Gi,Xi=(t,s,i)=>{const[o,r]=(0,e.useState)(!1),n=(0,d.sprintf)( +`,zi=e=>{const t="X"===e.socialMediumName?(0,d.__)("X share preview","wordpress-seo"):(0,d.__)("Social share preview","wordpress-seo"),{locationContext:s}=(0,r.useRootContext)();return(0,u.jsx)(r.Root,{children:(0,u.jsx)(Yi,{children:(0,u.jsx)(r.FeatureUpsell,{shouldUpsell:!0,variant:"card",cardLink:(0,Ss.addQueryArgs)(wpseoAdminL10n["shortlinks.upsell.social_preview."+e.socialMediumName.toLowerCase()],{context:s}),cardText:(0,d.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */ +(0,d.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",children:(0,u.jsxs)("div",{className:"yst-grayscale yst-opacity-50",children:[(0,u.jsx)(r.Label,{children:t}),(0,u.jsx)(ki,{title:"",description:"",siteUrl:"",imageUrl:"",imageFallbackUrl:"",alt:"",onSelect:n.noop,onImageClick:n.noop,onMouseHover:n.noop})]})})})})};zi.propTypes={socialMediumName:o().oneOf(["Social","Twitter","X"]).isRequired};const Vi=zi;class Gi extends e.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},(()=>this.setEditorFocus(e)))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:t,onTitleChange:s,onSelectImageClick:i,onRemoveImageClick:o,socialMediumName:r,imageWarnings:n,description:a,descriptionInputPlaceholder:l,imageUrl:c,imageFallbackUrl:d,alt:p,title:h,titleInputPlaceholder:g,replacementVariables:m,recommendedReplacementVariables:y,onReplacementVariableSearchChange:w,isPremium:f,location:x}=this.props;return(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)(Vi,{socialMediumName:r}),(0,u.jsx)(ii.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:r,title:h,titleInputPlaceholder:g,onRemoveImageClick:o,imageSelected:!!c,imageUrl:c,imageFallbackUrl:d,imageAltText:p,onTitleChange:s,onSelectImageClick:i,description:a,descriptionInputPlaceholder:l,imageWarnings:n,replacementVariables:m,recommendedReplacementVariables:y,onReplacementVariableSearchChange:w,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:f,setEditorRef:this.setEditorRef,idSuffix:x})]})}}Gi.propTypes={title:o().string.isRequired,onTitleChange:o().func.isRequired,description:o().string.isRequired,onDescriptionChange:o().func.isRequired,imageUrl:o().string.isRequired,imageFallbackUrl:o().string,onSelectImageClick:o().func.isRequired,onRemoveImageClick:o().func.isRequired,socialMediumName:o().string.isRequired,isPremium:o().bool,imageWarnings:o().array,descriptionInputPlaceholder:o().string,titleInputPlaceholder:o().string,replacementVariables:Wi.replacementVariablesShape,recommendedReplacementVariables:Wi.recommendedReplacementVariablesShape,onReplacementVariableSearchChange:o().func,location:o().string,alt:o().string},Gi.defaultProps={imageWarnings:[],imageFallbackUrl:"",recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",onReplacementVariableSearchChange:null,location:"",alt:""};const Zi=Gi,Xi=(t,s,i)=>{const[o,r]=(0,e.useState)(!1),n=(0,d.sprintf)( /* Translators: %1$s expands to the jpg format, %2$s expands to the png format, %3$s expands to the webp format, %4$s expands to the gif format. */ -(0,d.__)("No image was found that we can automatically set as your social image. Please use %1$s, %2$s, %3$s or %4$s formats to ensure it displays correctly on social media.","wordpress-seo"),"JPG","PNG","WEBP","GIF");return(0,e.useEffect)((()=>{r(""===s&&t.toLowerCase().endsWith(".avif"))}),[t,s]),o?[n]:i},Qi=({isPremium:s,onLoad:i,location:o,imageFallbackUrl:r="",imageUrl:n="",imageWarnings:a=[],...l})=>{const[c,d]=(0,e.useState)(""),p=Xi(r,n,a),h=(0,e.useCallback)((e=>{d(e.detail.metaTabId)}),[d]);(0,e.useEffect)((()=>(setTimeout(i),window.addEventListener("YoastSEO:metaTabChange",h),()=>{window.removeEventListener("YoastSEO:metaTabChange",h)})),[]);const m={isPremium:s,onLoad:i,location:o,imageFallbackUrl:r,imageUrl:n,imageWarnings:p,activeMetaTabId:c,...l};return s?(0,u.jsx)(t.Slot,{name:`YoastFacebookPremium${o.charAt(0).toUpperCase()+o.slice(1)}`,fillProps:m}):(0,u.jsx)(Zi,{...m})};Qi.propTypes={isPremium:o().bool.isRequired,onLoad:o().func.isRequired,location:o().string.isRequired,imageFallbackUrl:o().string,imageUrl:o().string,imageWarnings:o().array};const Ji=Qi;function eo(e){(function(e){const t=window.wp.media();return t.on("select",(()=>{const s=t.state().get("selection").first();var i;e({type:(i=s.attributes).subtype,width:i.width,height:i.height,url:i.url,id:i.id,sizes:i.sizes,alt:i.alt||i.title||i.name})})),t})(e).open()}const to=()=>{eo((e=>(0,a.dispatch)("yoast-seo/editor").setFacebookPreviewImage((e=>{const{width:t,height:s}=e,i=(0,ii.determineFacebookImageMode)({width:t,height:s}),o=ii.FACEBOOK_IMAGE_SIZES[i+"Width"],r=ii.FACEBOOK_IMAGE_SIZES[i+"Height"],n=Object.values(e.sizes).find((e=>e.width>=o&&e.height>=r));return{url:n?n.url:e.url,id:e.id,warnings:(0,Q.validateFacebookImage)(e),alt:e.alt||""}})(e))))},so=(0,z.compose)([(0,a.withSelect)((e=>{const{getFacebookDescription:t,getDescription:s,getFacebookTitle:i,getSeoTitle:o,getFacebookImageUrl:r,getImageFallback:n,getFacebookWarnings:a,getRecommendedReplaceVars:l,getReplaceVars:c,getSiteUrl:d,getSeoTitleTemplate:p,getSeoTitleTemplateNoFallback:u,getSocialTitleTemplate:h,getSeoDescriptionTemplate:m,getSocialDescriptionTemplate:g,getReplacedExcerpt:y,getFacebookAltText:w}=e("yoast-seo/editor");return{imageUrl:r(),imageFallbackUrl:n(),recommendedReplacementVariables:l(),replacementVariables:c(),description:t(),descriptionPreviewFallback:g()||s()||m()||y()||"",title:i(),titlePreviewFallback:h()||o()||u()||p()||"",imageWarnings:a(),siteUrl:d(),isPremium:!!Ps().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Social",alt:w()}})),(0,a.withDispatch)(((e,t,{select:s})=>{const{setFacebookPreviewTitle:i,setFacebookPreviewDescription:o,clearFacebookPreviewImage:r,loadFacebookPreviewData:n,findCustomFields:a}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:to,onRemoveImageClick:r,onDescriptionChange:o,onTitleChange:i,onLoad:n,onReplacementVariableSearchChange:us(l,a)}})),Jt()])(Ji),io=({isPremium:s,onLoad:i,location:o,imageFallbackUrl:r="",imageUrl:n="",imageWarnings:a=[],...l})=>{const c=Xi(r,n,a);(0,e.useEffect)((()=>{setTimeout(i)}),[]);const d={isPremium:s,onLoad:i,location:o,imageFallbackUrl:r,imageUrl:n,imageWarnings:c,...l};return s?(0,u.jsx)(t.Slot,{name:`YoastTwitterPremium${o.charAt(0).toUpperCase()+o.slice(1)}`,fillProps:d}):(0,u.jsx)(Zi,{...d})};io.propTypes={isPremium:o().bool.isRequired,onLoad:o().func.isRequired,location:o().string.isRequired,imageFallbackUrl:o().string,imageUrl:o().string,imageWarnings:o().array};const oo=io,ro=()=>{eo((e=>(0,a.dispatch)("yoast-seo/editor").setTwitterPreviewImage((e=>{const t="summary"!==(0,n.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",s=ii.TWITTER_IMAGE_SIZES[t+"Width"],i=ii.TWITTER_IMAGE_SIZES[t+"Height"],o=Object.values(e.sizes).find((e=>e.width>=s&&e.height>=i));return{url:o?o.url:e.url,id:e.id,warnings:(0,Q.validateTwitterImage)(e),alt:e.alt||""}})(e))))},no=(0,z.compose)([(0,a.withSelect)((e=>{const{getTwitterDescription:t,getTwitterTitle:s,getTwitterImageUrl:i,getFacebookImageUrl:o,getFacebookTitle:r,getFacebookDescription:n,getDescription:a,getSeoTitle:l,getTwitterWarnings:c,getTwitterImageType:d,getImageFallback:p,getRecommendedReplaceVars:u,getReplaceVars:h,getSiteUrl:m,getSeoTitleTemplate:g,getSeoTitleTemplateNoFallback:y,getSocialTitleTemplate:w,getSeoDescriptionTemplate:f,getSocialDescriptionTemplate:x,getReplacedExcerpt:b,getTwitterAltText:v}=e("yoast-seo/editor");return{imageUrl:i(),imageFallbackUrl:o()||p(),recommendedReplacementVariables:u(),replacementVariables:h(),description:t(),descriptionPreviewFallback:x()||n()||a()||f()||b()||"",title:s(),titlePreviewFallback:w()||r()||l()||y()||g()||"",imageWarnings:c(),siteUrl:m(),isPremium:!!Ps().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"X",alt:v()}})),(0,a.withDispatch)(((e,t,{select:s})=>{const{setTwitterPreviewTitle:i,setTwitterPreviewDescription:o,clearTwitterPreviewImage:r,loadTwitterPreviewData:n,findCustomFields:a}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:ro,onRemoveImageClick:r,onDescriptionChange:o,onTitleChange:i,onLoad:n,onReplacementVariableSearchChange:us(l,a)}})),Jt()])(oo),ao=H().legend` +(0,d.__)("No image was found that we can automatically set as your social image. Please use %1$s, %2$s, %3$s or %4$s formats to ensure it displays correctly on social media.","wordpress-seo"),"JPG","PNG","WEBP","GIF");return(0,e.useEffect)((()=>{r(""===s&&t.toLowerCase().endsWith(".avif"))}),[t,s]),o?[n]:i},Qi=({isPremium:s,onLoad:i,location:o,imageFallbackUrl:r="",imageUrl:n="",imageWarnings:a=[],...l})=>{const[c,d]=(0,e.useState)(""),p=Xi(r,n,a),h=(0,e.useCallback)((e=>{d(e.detail.metaTabId)}),[d]);(0,e.useEffect)((()=>(setTimeout(i),window.addEventListener("YoastSEO:metaTabChange",h),()=>{window.removeEventListener("YoastSEO:metaTabChange",h)})),[]);const g={isPremium:s,onLoad:i,location:o,imageFallbackUrl:r,imageUrl:n,imageWarnings:p,activeMetaTabId:c,...l};return s?(0,u.jsx)(t.Slot,{name:`YoastFacebookPremium${o.charAt(0).toUpperCase()+o.slice(1)}`,fillProps:g}):(0,u.jsx)(Zi,{...g})};Qi.propTypes={isPremium:o().bool.isRequired,onLoad:o().func.isRequired,location:o().string.isRequired,imageFallbackUrl:o().string,imageUrl:o().string,imageWarnings:o().array};const Ji=Qi;function eo(e){(function(e){const t=window.wp.media();return t.on("select",(()=>{const s=t.state().get("selection").first();var i;e({type:(i=s.attributes).subtype,width:i.width,height:i.height,url:i.url,id:i.id,sizes:i.sizes,alt:i.alt||i.title||i.name})})),t})(e).open()}const to=()=>{eo((e=>(0,a.dispatch)("yoast-seo/editor").setFacebookPreviewImage((e=>{const{width:t,height:s}=e,i=(0,ii.determineFacebookImageMode)({width:t,height:s}),o=ii.FACEBOOK_IMAGE_SIZES[i+"Width"],r=ii.FACEBOOK_IMAGE_SIZES[i+"Height"],n=Object.values(e.sizes).find((e=>e.width>=o&&e.height>=r));return{url:n?n.url:e.url,id:e.id,warnings:(0,Q.validateFacebookImage)(e),alt:e.alt||""}})(e))))},so=(0,V.compose)([(0,a.withSelect)((e=>{const{getFacebookDescription:t,getDescription:s,getFacebookTitle:i,getSeoTitle:o,getFacebookImageUrl:r,getImageFallback:n,getFacebookWarnings:a,getRecommendedReplaceVars:l,getReplaceVars:c,getSiteUrl:d,getSeoTitleTemplate:p,getSeoTitleTemplateNoFallback:u,getSocialTitleTemplate:h,getSeoDescriptionTemplate:g,getSocialDescriptionTemplate:m,getReplacedExcerpt:y,getFacebookAltText:w}=e("yoast-seo/editor");return{imageUrl:r(),imageFallbackUrl:n(),recommendedReplacementVariables:l(),replacementVariables:c(),description:t(),descriptionPreviewFallback:m()||s()||g()||y()||"",title:i(),titlePreviewFallback:h()||o()||u()||p()||"",imageWarnings:a(),siteUrl:d(),isPremium:!!Ps().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Social",alt:w()}})),(0,a.withDispatch)(((e,t,{select:s})=>{const{setFacebookPreviewTitle:i,setFacebookPreviewDescription:o,clearFacebookPreviewImage:r,loadFacebookPreviewData:n,findCustomFields:a}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:to,onRemoveImageClick:r,onDescriptionChange:o,onTitleChange:i,onLoad:n,onReplacementVariableSearchChange:us(l,a)}})),Jt()])(Ji),io=({isPremium:s,onLoad:i,location:o,imageFallbackUrl:r="",imageUrl:n="",imageWarnings:a=[],...l})=>{const c=Xi(r,n,a);(0,e.useEffect)((()=>{setTimeout(i)}),[]);const d={isPremium:s,onLoad:i,location:o,imageFallbackUrl:r,imageUrl:n,imageWarnings:c,...l};return s?(0,u.jsx)(t.Slot,{name:`YoastTwitterPremium${o.charAt(0).toUpperCase()+o.slice(1)}`,fillProps:d}):(0,u.jsx)(Zi,{...d})};io.propTypes={isPremium:o().bool.isRequired,onLoad:o().func.isRequired,location:o().string.isRequired,imageFallbackUrl:o().string,imageUrl:o().string,imageWarnings:o().array};const oo=io,ro=()=>{eo((e=>(0,a.dispatch)("yoast-seo/editor").setTwitterPreviewImage((e=>{const t="summary"!==(0,n.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",s=ii.TWITTER_IMAGE_SIZES[t+"Width"],i=ii.TWITTER_IMAGE_SIZES[t+"Height"],o=Object.values(e.sizes).find((e=>e.width>=s&&e.height>=i));return{url:o?o.url:e.url,id:e.id,warnings:(0,Q.validateTwitterImage)(e),alt:e.alt||""}})(e))))},no=(0,V.compose)([(0,a.withSelect)((e=>{const{getTwitterDescription:t,getTwitterTitle:s,getTwitterImageUrl:i,getFacebookImageUrl:o,getFacebookTitle:r,getFacebookDescription:n,getDescription:a,getSeoTitle:l,getTwitterWarnings:c,getTwitterImageType:d,getImageFallback:p,getRecommendedReplaceVars:u,getReplaceVars:h,getSiteUrl:g,getSeoTitleTemplate:m,getSeoTitleTemplateNoFallback:y,getSocialTitleTemplate:w,getSeoDescriptionTemplate:f,getSocialDescriptionTemplate:x,getReplacedExcerpt:b,getTwitterAltText:v}=e("yoast-seo/editor");return{imageUrl:i(),imageFallbackUrl:o()||p(),recommendedReplacementVariables:u(),replacementVariables:h(),description:t(),descriptionPreviewFallback:x()||n()||a()||f()||b()||"",title:s(),titlePreviewFallback:w()||r()||l()||y()||m()||"",imageWarnings:c(),siteUrl:g(),isPremium:!!Ps().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"X",alt:v()}})),(0,a.withDispatch)(((e,t,{select:s})=>{const{setTwitterPreviewTitle:i,setTwitterPreviewDescription:o,clearTwitterPreviewImage:r,loadTwitterPreviewData:n,findCustomFields:a}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:ro,onRemoveImageClick:r,onDescriptionChange:o,onTitleChange:i,onLoad:n,onReplacementVariableSearchChange:us(l,a)}})),Jt()])(oo),ao=H().legend` margin: 16px 0; padding: 0; color: ${P.colors.$color_headings}; @@ -447,13 +446,13 @@ `,co=H().div` padding: 16px; `,po=({useOpenGraphData:t,useTwitterData:s})=>(0,u.jsxs)(e.Fragment,{children:[s&&t&&(0,u.jsxs)(e.Fragment,{children:[(0,u.jsxs)(bs,{hasSeparator:!1 -/* translators: Social media appearance refers to a preview of how a page will be represented on social media. */,title:(0,d.__)("Social media appearance","wordpress-seo"),initialIsOpen:!0,children:[(0,u.jsx)(lo,{children:(0,d.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")}),(0,u.jsx)(so,{}),(0,u.jsx)(ao,{children:(0,d.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below. If you leave these settings untouched, the 'Social media appearance' settings mentioned above will also be applied for sharing on X.","wordpress-seo")})]}),(0,u.jsx)(bs,{title:(0,d.__)("X appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1,children:(0,u.jsx)(no,{})})]}),t&&!s&&(0,u.jsxs)(co,{children:[(0,u.jsx)(lo,{children:(0,d.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")}),(0,u.jsx)(so,{})]}),!t&&s&&(0,u.jsxs)(co,{children:[(0,u.jsx)(lo,{children:(0,d.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below.","wordpress-seo")}),(0,u.jsx)(no,{})]})]});po.propTypes={useOpenGraphData:o().bool.isRequired,useTwitterData:o().bool.isRequired};const uo=po,ho=(0,a.withSelect)((e=>{const{getPreferences:t}=e("yoast-seo/editor"),{useOpenGraphData:s,useTwitterData:i}=t();return{useOpenGraphData:s,useTwitterData:i}}))(uo);function mo({target:e}){return(0,u.jsx)(O,{target:e,children:(0,u.jsx)(ho,{})})}mo.propTypes={target:o().string.isRequired};const go=(0,Q.makeOutboundLink)(),yo=H().div` +/* translators: Social media appearance refers to a preview of how a page will be represented on social media. */,title:(0,d.__)("Social media appearance","wordpress-seo"),initialIsOpen:!0,children:[(0,u.jsx)(lo,{children:(0,d.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")}),(0,u.jsx)(so,{}),(0,u.jsx)(ao,{children:(0,d.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below. If you leave these settings untouched, the 'Social media appearance' settings mentioned above will also be applied for sharing on X.","wordpress-seo")})]}),(0,u.jsx)(bs,{title:(0,d.__)("X appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1,children:(0,u.jsx)(no,{})})]}),t&&!s&&(0,u.jsxs)(co,{children:[(0,u.jsx)(lo,{children:(0,d.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")}),(0,u.jsx)(so,{})]}),!t&&s&&(0,u.jsxs)(co,{children:[(0,u.jsx)(lo,{children:(0,d.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below.","wordpress-seo")}),(0,u.jsx)(no,{})]})]});po.propTypes={useOpenGraphData:o().bool.isRequired,useTwitterData:o().bool.isRequired};const uo=po,ho=(0,a.withSelect)((e=>{const{getPreferences:t}=e("yoast-seo/editor"),{useOpenGraphData:s,useTwitterData:i}=t();return{useOpenGraphData:s,useTwitterData:i}}))(uo);function go({target:e}){return(0,u.jsx)(O,{target:e,children:(0,u.jsx)(ho,{})})}go.propTypes={target:o().string.isRequired};const mo=(0,Q.makeOutboundLink)(),yo=H().div` padding: 16px; `,wo="yoast-seo/editor";function fo({location:e,show:t}){return t?(0,u.jsxs)(F.Alert,{type:"info",children:[(0,d.sprintf)(/* translators: %s Expands to "Yoast News SEO" */ -(0,d.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",(0,u.jsx)(go,{href:window.wpseoAdminL10n[`shortlinks.upsell.${e}.news`],children:(0,d.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */ +(0,d.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",(0,u.jsx)(mo,{href:window.wpseoAdminL10n[`shortlinks.upsell.${e}.news`],children:(0,d.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */ (0,d.__)("Buy %s now!","wordpress-seo"),"Yoast News SEO")})]}):null}fo.propTypes={show:o().bool.isRequired,location:o().string.isRequired};const xo=(e,t,s)=>{const i=(0,a.useSelect)((e=>e(wo).getIsProduct()),[]),o=(0,a.useSelect)((e=>e(wo).getIsWooSeoActive()),[]),r=i&&o?{name:(0,d.__)("Item Page","wordpress-seo"),value:"ItemPage"}:e.find((e=>e.value===t));return[{name:(0,d.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */ (0,d.__)("Default for %1$s (%2$s)","wordpress-seo"),s,r?r.name:""),value:""},...e]},bo=(e,t)=>p((e=>(0,d.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Settings page */ (0,d.__)("You can change the default type for %1$s under Content types in the %2$sSettings%3$s.","wordpress-seo"),e,"<link>","</link>"))(e),{link:(0,u.jsx)("a",{href:t,target:"_blank",rel:"noreferrer"})}),vo=({helpTextTitle:e,helpTextLink:t,helpTextDescription:s})=>(0,u.jsx)(F.FieldGroup,{label:e,linkTo:t -/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:s});vo.propTypes={helpTextTitle:o().string.isRequired,helpTextLink:o().string.isRequired,helpTextDescription:o().string.isRequired};const ko=({schemaPageTypeChange:t=n.noop,schemaPageTypeSelected:s=null,pageTypeOptions:i,schemaArticleTypeChange:o=n.noop,schemaArticleTypeSelected:r=null,articleTypeOptions:l,showArticleTypeInput:c,additionalHelpTextLink:p,helpTextLink:h,helpTextTitle:m,helpTextDescription:g,postTypeName:y,displayFooter:w=!1,defaultPageType:f,defaultArticleType:x,location:b,isNewsEnabled:v=!1})=>{const k=xo(i,f,y),_=xo(l,x,y),T=(0,a.useSelect)((e=>e(wo).selectLink("https://yoa.st/product-schema-metabox")),[]),R=(0,a.useSelect)((e=>e(wo).getIsWooSeoUpsell()),[]),[j,S]=(0,e.useState)(r),I=(0,d.__)("Want your products stand out in search results with rich results like price, reviews and more?","wordpress-seo"),C=(0,a.useSelect)((e=>e(wo).getIsProduct()),[]),E=(0,a.useSelect)((e=>e(wo).getIsWooSeoActive()),[]),L=(0,a.useSelect)((e=>e(wo).selectAdminLink("?page=wpseo_page_settings")),[]),A=C&&E,q=(0,e.useCallback)(((e,t)=>{S(t)}),[]);return(0,e.useEffect)((()=>{q(null,r)}),[r]),(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)(vo,{helpTextLink:h,helpTextTitle:m,helpTextDescription:g}),(0,u.jsx)(F.FieldGroup,{label:(0,d.__)("What type of page or content is this?","wordpress-seo"),linkTo:p -/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about page or content types","wordpress-seo")}),R&&(0,u.jsx)(ms,{link:T,text:I}),(0,u.jsx)(F.Select,{id:(0,Q.join)(["yoast-schema-page-type",b]),options:k,label:(0,d.__)("Page type","wordpress-seo"),onChange:t,selected:A?"ItemPage":s,disabled:A}),c&&(0,u.jsx)(F.Select,{id:(0,Q.join)(["yoast-schema-article-type",b]),options:_,label:(0,d.__)("Article type","wordpress-seo"),onChange:o,selected:r,onOptionFocus:q}),(0,u.jsx)(fo,{location:b,show:!v&&(P=j,M=x,"NewsArticle"===P||""===P&&"NewsArticle"===M)}),w&&!A&&(0,u.jsx)("p",{children:bo(y,L)}),A&&(0,u.jsx)("p",{children:(0,d.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */ -(0,d.__)("You have %1$s activated on your site, automatically setting the Page type for your products to 'Item Page'. As a result, the Page type selection is disabled.","wordpress-seo"),"Yoast WooCommerce SEO")})]});var P,M},_o=o().arrayOf(o().shape({name:o().string,value:o().string}));ko.propTypes={schemaPageTypeChange:o().func,schemaPageTypeSelected:o().string,pageTypeOptions:_o.isRequired,schemaArticleTypeChange:o().func,schemaArticleTypeSelected:o().string,articleTypeOptions:_o.isRequired,showArticleTypeInput:o().bool.isRequired,additionalHelpTextLink:o().string.isRequired,helpTextLink:o().string.isRequired,helpTextTitle:o().string.isRequired,helpTextDescription:o().string.isRequired,postTypeName:o().string.isRequired,displayFooter:o().bool,defaultPageType:o().string.isRequired,defaultArticleType:o().string.isRequired,location:o().string.isRequired,isNewsEnabled:o().bool};const To=({isMetabox:t,showArticleTypeInput:s=!1,articleTypeLabel:i="",additionalHelpTextLink:o="",pageTypeLabel:r,helpTextLink:n,helpTextTitle:a,helpTextDescription:l,postTypeName:c,displayFooter:d=!1,loadSchemaArticleData:p,loadSchemaPageData:h,location:m,...g})=>{const y=(0,u.jsx)(ko,{showArticleTypeInput:s,articleTypeLabel:i,additionalHelpTextLink:o,pageTypeLabel:r,helpTextLink:n,helpTextTitle:a,helpTextDescription:l,postTypeName:c,displayFooter:d,loadSchemaArticleData:p,loadSchemaPageData:h,location:m,...g});return t?(0,e.createPortal)((0,u.jsx)(yo,{children:y}),document.getElementById("wpseo-meta-section-schema")):y};To.propTypes={isMetabox:o().bool.isRequired,showArticleTypeInput:o().bool,articleTypeLabel:o().string,additionalHelpTextLink:o().string,pageTypeLabel:o().string.isRequired,helpTextLink:o().string.isRequired,helpTextTitle:o().string.isRequired,helpTextDescription:o().string.isRequired,postTypeName:o().string.isRequired,displayFooter:o().bool,loadSchemaArticleData:o().func.isRequired,loadSchemaPageData:o().func.isRequired,location:o().string.isRequired};const Ro=To;class jo{static get articleTypeInput(){return document.getElementById("yoast_wpseo_schema_article_type")}static get defaultArticleType(){return jo.articleTypeInput.getAttribute("data-default")}static get articleType(){return jo.articleTypeInput.value}static set articleType(e){jo.articleTypeInput.value=e}static get pageTypeInput(){return document.getElementById("yoast_wpseo_schema_page_type")}static get defaultPageType(){return jo.pageTypeInput.getAttribute("data-default")}static get pageType(){return jo.pageTypeInput.value}static set pageType(e){jo.pageTypeInput.value=e}}const So=t=>{const s=null!==jo.articleTypeInput;(0,e.useEffect)((()=>{t.loadSchemaPageData(),s&&t.loadSchemaArticleData()}),[]);const{pageTypeOptions:i,articleTypeOptions:o}=window.wpseoScriptData.metabox.schema,r={articleTypeLabel:(0,d.__)("Article type","wordpress-seo"),pageTypeLabel:(0,d.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,d.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,d.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:s,pageTypeOptions:i,articleTypeOptions:o},n={...t,...r,...(a=t.location,"metabox"===a?{helpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.page_type"],isMetabox:!0}:{helpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.page_type"],isMetabox:!1})};var a;return(0,u.jsx)(Ro,{...n})};So.propTypes={displayFooter:o().bool.isRequired,schemaPageTypeSelected:o().string.isRequired,schemaArticleTypeSelected:o().string.isRequired,defaultArticleType:o().string.isRequired,defaultPageType:o().string.isRequired,loadSchemaPageData:o().func.isRequired,loadSchemaArticleData:o().func.isRequired,schemaPageTypeChange:o().func.isRequired,schemaArticleTypeChange:o().func.isRequired,location:o().string.isRequired};const Io=(0,z.compose)([(0,a.withSelect)((e=>{const{getPreferences:t,getPageType:s,getDefaultPageType:i,getArticleType:o,getDefaultArticleType:r}=e("yoast-seo/editor"),{displaySchemaSettingsFooter:n,isNewsEnabled:a}=t();return{displayFooter:n,isNewsEnabled:a,schemaPageTypeSelected:s(),schemaArticleTypeSelected:o(),defaultArticleType:r(),defaultPageType:i()}})),(0,a.withDispatch)((e=>{const{setPageType:t,setArticleType:s,getSchemaPageData:i,getSchemaArticleData:o}=e("yoast-seo/editor");return{loadSchemaPageData:i,loadSchemaArticleData:o,schemaPageTypeChange:t,schemaArticleTypeChange:s}})),Jt()])(So),Co=window.yoast.relatedKeyphraseSuggestions;function Eo({requestLimitReached:e,isSuccess:t,response:s,requestHasData:i,relatedKeyphrases:o}){return e?"requestLimitReached":!t&&function(e){return"invalid_json"===(null==e?void 0:e.code)||"fetch_error"===(null==e?void 0:e.code)||!(0,n.isEmpty)(e)&&"error"in e}(s)?"requestFailed":i?function(e){return e&&e.length>=4}(o)?"maxRelatedKeyphrases":null:"requestEmpty"}function Lo({keyphrase:t="",relatedKeyphrases:s=[],renderAction:i=null,requestLimitReached:o=!1,countryCode:n,setCountry:a,newRequest:l,response:c={},isRtl:d=!1,userLocale:p="en_US",isPending:h=!1,isSuccess:m=!1,requestHasData:g=!0,isPremium:y=!1,semrushUpsellLink:w="",premiumUpsellLink:f=""}){var x,b;const[v,k]=(0,e.useState)(n),_=(0,e.useCallback)((async()=>{l(n,t),k(n)}),[n,t,l]);return(0,u.jsxs)(r.Root,{context:{isRtl:d},children:[!o&&!y&&(0,u.jsx)(Co.PremiumUpsell,{url:f,className:"yst-mb-4"}),!o&&(0,u.jsx)(Co.CountrySelector,{countryCode:n,activeCountryCode:v,onChange:a,onClick:_,className:"yst-mb-4",userLocale:p.split("_")[0]}),!h&&(0,u.jsx)(Co.UserMessage,{variant:Eo({requestLimitReached:o,isSuccess:m,response:c,requestHasData:g,relatedKeyphrases:s}),upsellLink:w}),(0,u.jsx)(Co.KeyphrasesTable,{relatedKeyphrases:s,columnNames:null==c||null===(x=c.results)||void 0===x?void 0:x.columnNames,data:null==c||null===(b=c.results)||void 0===b?void 0:b.rows,isPending:h,renderButton:i,className:"yst-mt-4"})]})}Lo.propTypes={keyphrase:o().string,relatedKeyphrases:o().array,renderAction:o().func,requestLimitReached:o().bool,countryCode:o().string.isRequired,setCountry:o().func.isRequired,newRequest:o().func.isRequired,response:o().object,isRtl:o().bool,userLocale:o().string,isPending:o().bool,isSuccess:o().bool,requestHasData:o().bool,isPremium:o().bool,semrushUpsellLink:o().string,premiumUpsellLink:o().string};const Ao=(0,z.compose)([(0,a.withSelect)((e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:s,getSEMrushRequestLimitReached:i,getSEMrushRequestResponse:o,getSEMrushRequestIsSuccess:r,getSEMrushIsRequestPending:n,getSEMrushRequestHasData:a,getPreference:l,getIsPremium:c,selectLinkParams:d}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:s(),requestLimitReached:i(),response:o(),isSuccess:r(),isPending:n(),requestHasData:a(),isRtl:l("isRtl",!1),userLocale:l("userLocale","en_US"),isPremium:c(),semrushUpsellLink:(0,Ss.addQueryArgs)("https://yoa.st/semrush-prices",d()),premiumUpsellLink:(0,Ss.addQueryArgs)("https://yoa.st/413",d())}})),(0,a.withDispatch)((e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:s}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{s(e,t)}}}))])(Lo),qo=({isOpen:e,closeModal:t,id:s,upsellLink:i})=>(0,u.jsx)($s,{isOpen:e,onClose:t,id:s,upsellLink:i,title:(0,d.__)("Cover more search intent with related keyphrases","wordpress-seo"),description:(0,d.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles - helping it get discovered by a wider audience.","wordpress-seo"),note:(0,d.__)("Fine-tune your content for every audience","wordpress-seo"),modalTitle:(0,d.__)("Add more keyphrases with Premium","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),Fo=()=>{const[t,,,s,i]=(0,r.useToggleState)(!1),o=(0,e.useContext)($.LocationContext),{locationContext:n}=(0,$.useRootContext)(),a=(0,r.useSvgAria)(),l=wpseoAdminL10n["sidebar"===o.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(qo,{isOpen:t,closeModal:i,upsellLink:(0,Ss.addQueryArgs)(l,{context:n}),id:`yoast-additional-keyphrases-modal-${o}`}),"sidebar"===o&&(0,u.jsx)(ae,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,d.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:P.colors.$color_grey_medium_dark},onClick:s,children:(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsx)(r.Badge,{size:"small",variant:"upsell",children:(0,u.jsx)(Us,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...a})})})}),"metabox"===o&&(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsxs)(X,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:s,children:[(0,u.jsx)(F.SvgIcon,{icon:"plus",color:P.colors.$color_grey_medium_dark}),(0,u.jsx)(X.Text,{children:(0,d.__)("Add related keyphrase","wordpress-seo")}),(0,u.jsxs)(r.Badge,{size:"small",variant:"upsell",children:[(0,u.jsx)(Us,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...a}),(0,u.jsx)("span",{children:"Premium"})]})]})})]})},Po=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),Mo=({store:t="yoast-seo/editor",location:s="sidebar"})=>{const i="black-friday-promotion",o=(0,a.useSelect)((e=>e(t).getIsPremium()),[t]),n=(0,a.useSelect)((e=>e(t).selectLinkParams()),[t]),l=(0,a.useSelect)((e=>e(t).isPromotionActive(i)),[t]),c=(0,a.useSelect)((e=>e(t).getIsWooCommerceActive()),[t]),p=(0,a.useSelect)((e=>e(t).isAlertDismissed(i)),[t]),h=(0,a.useSelect)((e=>e(t).getIsElementorEditor()),[t]),g=(0,e.useCallback)((()=>{(0,a.dispatch)(t).dismissAlert(i)}),[t,i]),y=(0,Ss.addQueryArgs)("https://yoa.st/black-friday-sale",n),w=(0,r.useSvgAria)();return o||!l||p?null:(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsxs)("div",{className:C()("sidebar"!==s||h?"yst-mx-4":"yst-mx-0","yst-border yst-rounded-lg yst-p-4 yst-max-w-md yst-mt-6 yst-relative yst-shadow-sm",c?"yst-border-woo-light":"yst-border-primary-200"),children:[(0,u.jsxs)(r.Badge,{size:"small",className:"yst-text-[10px] yst-bg-black yst-text-amber-300 yst-absolute yst--top-2",children:[(0,d.__)("BLACK FRIDAY","wordpress-seo")," "]}),(0,u.jsxs)("button",{className:"yst-absolute yst-top-4 yst-end-4",onClick:g,children:[(0,u.jsx)(Po,{className:"yst-w-4 yst-text-slate-400 yst-shrink-0 yst--mt-0.5"}),(0,u.jsx)("div",{className:"yst-sr-only",children:(0,d.__)("Dismiss","wordpress-seo")})]}),(0,u.jsxs)("div",{className:C()("sidebar"===s?"":"yst-flex yst-justify-between yst-gap-3"),children:[(0,u.jsxs)("div",{className:c?"yst-text-woo-light":"yst-text-primary-500",children:[(0,u.jsx)("div",{className:"yst-text-2xl yst-font-bold",children:(0,d.__)("30% OFF","wordpress-seo")}),(0,u.jsx)("div",{className:"yst-flex yst-gap-2 yst-font-semibold yst-text-tiny",children:c?(0,u.jsxs)(u.Fragment,{children:["Yoast WooCommerce SEO ",(0,u.jsx)(Ws,{className:"yst-w-4 yst-scale-x-[-1]",...w})]}):(0,u.jsxs)(u.Fragment,{children:[" Yoast SEO Premium ",(0,u.jsx)(q,{className:"yst-w-4",...w})]})})]}),(0,u.jsx)("div",{className:"yst-flex yst-items-end",children:(0,u.jsxs)(r.Button,{as:"a",className:C()("sidebar"===s?"yst-w-full":"yst-w-[140px]","yst-flex yst-gap-1 yst-w-[140px] yst-h-7 yst-mt-4"),variant:"upsell",href:y,target:"_blank",rel:"noreferrer",children:[(0,d.__)("Buy now!","wordpress-seo"),(0,u.jsx)(m,{className:"yst-w-4 rtl:yst-rotate-180",...w})]})})]})]})})};Mo.propTypes={store:o().string,location:o().oneOf(["sidebar","metabox"])};const Do=(Oo=Mo,e=>!(()=>{var e,t;const s=(0,a.select)("yoast-seo/editor").getIsPremium(),i=(0,a.select)("yoast-seo/editor").getWarningMessage();return(s&&null!==(e=null===(t=(0,a.select)("yoast-seo-premium/editor"))||void 0===t?void 0:t.getMetaboxWarning())&&void 0!==e?e:[]).length>0||i.length>0})()&&(0,u.jsx)(Oo,{...e}));var Oo;function No({settings:s}){const{isTerm:i}=(0,a.useSelect)((e=>({isTerm:e("yoast-seo/editor").getIsTerm(),isProduct:e("yoast-seo/editor").getIsProduct(),isWooCommerceActive:e("yoast-seo/editor").getIsWooCommerceActive()})),[]),o=window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor;return o&&(()=>{const{editorMode:t,activeAIButtonId:s}=(0,a.useSelect)((e=>({editorMode:e("core/edit-post").getEditorMode(),activeAIButtonId:e("yoast-seo/editor").getActiveAIFixesButton()})),[]),{setMarkerStatus:i}=(0,a.useDispatch)("yoast-seo/editor");(0,e.useEffect)((()=>(i("visual"===t&&s||"text"===t?"disabled":"enabled"),()=>{i("disabled")})),[t,s])})(),(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(t.Fill,{name:"YoastMetabox",children:[(0,u.jsx)(Ks,{renderPriority:1,children:(0,u.jsx)(ws,{})},"warning"),(0,u.jsx)(Ks,{renderPriority:2,children:(0,u.jsx)(Do,{location:"metabox"})},"time-constrained-notification"),s.isKeywordAnalysisActive&&(0,u.jsxs)(Ks,{renderPriority:8,children:[(0,u.jsx)(Qt.KeywordInput,{isSEMrushIntegrationActive:s.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,u.jsx)(t.Fill,{name:"YoastRelatedKeyphrases",children:(0,u.jsx)(Ao,{})})]},"keyword-input"),(0,u.jsx)(Ks,{renderPriority:9,children:(0,u.jsx)(bs,{id:"yoast-snippet-editor-metabox",title:(0,d.__)("Search appearance","wordpress-seo"),initialIsOpen:!0,children:(0,u.jsx)(ys,{hasPaperStyle:!1})})},"search-appearance"),s.isContentAnalysisActive&&(0,u.jsx)(Ks,{renderPriority:10,children:(0,u.jsx)(Qt.ReadabilityAnalysis,{shouldUpsell:s.shouldUpsell})},"readability-analysis"),s.isKeywordAnalysisActive&&(0,u.jsx)(Ks,{renderPriority:20,children:(0,u.jsx)(e.Fragment,{children:(0,u.jsx)(Qt.SeoAnalysis,{shouldUpsell:s.shouldUpsell})})},"seo-analysis"),s.isInclusiveLanguageAnalysisActive&&(0,u.jsx)(Ks,{renderPriority:21,children:(0,u.jsx)(Qt.InclusiveLanguageAnalysis,{})},"inclusive-language-analysis"),s.isKeywordAnalysisActive&&(0,u.jsx)(Ks,{renderPriority:22,children:s.shouldUpsell&&(0,u.jsx)(Fo,{})},"additional-keywords-upsell"),s.isKeywordAnalysisActive&&s.isWincherIntegrationActive&&(0,u.jsx)(Ks,{renderPriority:23,children:(0,u.jsx)(Xt,{location:"metabox"})},"wincher-seo-performance"),s.shouldUpsell&&!i&&(0,u.jsx)(Ks,{renderPriority:25,children:(0,u.jsx)(Bs,{})},"internal-linking-suggestions-upsell"),s.isCornerstoneActive&&(0,u.jsx)(Ks,{renderPriority:30,children:(0,u.jsx)(es,{})},"cornerstone"),s.displayAdvancedTab&&(0,u.jsx)(Ks,{renderPriority:40,children:(0,u.jsx)(bs,{id:"collapsible-advanced-settings",title:(0,d.__)("Advanced","wordpress-seo"),children:(0,u.jsx)(Js,{})})},"advanced"),s.displaySchemaSettings&&(0,u.jsx)(Ks,{renderPriority:50,children:(0,u.jsx)(Io,{})},"schema"),o&&(0,u.jsx)(Ks,{renderPriority:24,children:(0,u.jsx)(Qt.ContentBlocks,{})},"content-blocks"),(0,u.jsx)(Ks,{renderPriority:-1,children:(0,u.jsx)(mo,{target:"wpseo-section-social"})},"social"),s.isInsightsEnabled&&(0,u.jsx)(Ks,{renderPriority:52,children:(0,u.jsx)(Ns,{location:"metabox"})},"insights")]})})}No.propTypes={settings:o().object.isRequired};const Uo=(0,z.compose)([(0,a.withSelect)(((e,t)=>{const{getPreferences:s}=e("yoast-seo/editor");return{settings:s(),store:t.store}}))])(No);function Wo({target:e,store:t,theme:s}){return(0,u.jsxs)(O,{target:e,children:[(0,u.jsx)(V,{store:t,theme:s}),(0,u.jsx)(Uo,{store:t,theme:s})]})}Wo.propTypes={target:o().string.isRequired,store:o().object.isRequired,theme:o().object.isRequired};const $o=[];let Bo=null;class Ho extends e.Component{constructor(e){super(e),this.state={registeredComponents:[...$o]}}registerComponent(e,t){this.setState((s=>({...s,registeredComponents:[...s.registeredComponents,{key:e,Component:t}]})))}render(){return this.state.registeredComponents.map((({Component:e,key:t})=>(0,u.jsx)(e,{},t)))}}function Ko(e,t){null===Bo||null===Bo.current?$o.push({key:e,Component:t}):Bo.current.registerComponent(e,t)}const Yo=window.yoast.externals.redux,Vo=window.jQuery;var zo=s.n(Vo);function Go(e){let t="";var s;return t=!1===function(e){if("undefined"==typeof tinyMCE||void 0===tinyMCE.editors||0===tinyMCE.editors.length)return!1;const t=tinyMCE.get(e);return null!==t&&!t.isHidden()}(e)||0==(s=e,null!==document.getElementById(s+"_ifr"))?function(e){return document.getElementById(e)&&document.getElementById(e).value||""}(e):tinyMCE.get(e).getContent(),t}n.noop,n.noop,n.noop;const{removeMarks:Zo}=M.markers,{updateReplacementVariable:Xo,updateData:Qo,hideReplacementVariables:Jo,setContentImage:er,setEditorDataContent:tr,setEditorDataTitle:sr,setEditorDataExcerpt:ir,setEditorDataImageUrl:or,setEditorDataSlug:rr}=Yo.actions;window.yoast=window.yoast||{},window.yoast.initEditorIntegration=function(s){window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=Ko,function(s){const i=Ps();Bo=(0,e.createRef)();const o={isRtl:i.isRtl};(0,e.createRoot)(document.getElementById("wpseo-metabox-root")).render((0,u.jsxs)(t.SlotFillProvider,{children:[(0,u.jsx)($.Root,{context:{locationContext:"classic-metabox"},children:(0,u.jsx)(Wo,{target:"wpseo-metabox-root",store:s,theme:o})}),(0,u.jsx)(Ho,{ref:Bo})]}))}(s)},window.yoast.EditorData=class{constructor(e,t,s="content"){this._refresh=e,this._store=t,this._tinyMceId=s,this._previousData={},this._previousEditorData={},this.updateReplacementData=this.updateReplacementData.bind(this),this.refreshYoastSEO=this.refreshYoastSEO.bind(this)}initialize(e,t=[]){const s=this.getInitialData(e);var i,o;i=s,o=this._store,(0,n.forEach)(i,((e,t)=>{ds.includes(t)||o.dispatch(as(t,e))})),this._store.dispatch(Jo(t)),this._previousEditorData.content=s.content,this._store.dispatch(tr(s.content)),this._previousEditorData.contentImage=s.contentImage,this._store.dispatch(er(s.contentImage)),this.setImageInSnippetPreview(s.snippetPreviewImageURL||s.contentImage),this._previousEditorData.slug=s.slug,this._store.dispatch(rr(s.slug)),this.updateReplacementData({target:{value:s.title}},"title"),this.updateReplacementData({target:{value:s.excerpt}},"excerpt"),this.updateReplacementData({target:{value:s.excerpt_only}},"excerpt_only"),this.subscribeToElements(),this.subscribeToStore(),this.subscribeToSnippetPreviewImage(),this.subscribeToTinyMceEditor(),this.subscribeToSlug()}subscribeToTinyMceEditor(){const e=e=>{if((0,n.isString)(e)||(e=this.getContent()),this._previousEditorData.content===e)return;if(this._previousEditorData.content=e,this._store.dispatch(tr(e)),this.featuredImageIsSet)return;const t=this.getContentImage(e);this._previousEditorData.contentImage!==t&&(this._previousEditorData.contentImage=t,this._store.dispatch(er(t)),this.setImageInSnippetPreview(t))};zo()(document).on("tinymce-editor-init",((t,s)=>{s.id===this._tinyMceId&&(e(this.getContent()),["input","change","cut","paste"].forEach((t=>s.on(t,(0,n.debounce)(e,1e3)))))}));const t=document.getElementById("attachment_content");t&&(e(t.value),t.addEventListener("input",(t=>e(t.target.value))))}subscribeToSlug(){const e=e=>{this._previousEditorData.slug!==e&&(this._previousEditorData.slug=e,this._store.dispatch(rr(e)),this._store.dispatch(Qo({slug:e})))},t=document.getElementById("slug");t&&t.addEventListener("input",(t=>e(t.target.value)));const s=document.getElementById("post_name");s&&s.addEventListener("input",(t=>e(t.target.value)));const i=document.getElementById("edit-slug-buttons");i&&new MutationObserver(((t,s)=>t.forEach((t=>{t.addedNodes.forEach((t=>{var i,o;if(null==t||null===(i=t.classList)||void 0===i||!i.contains("edit-slug"))return;const r=null===(o=document.getElementById("editable-post-name-full"))||void 0===o?void 0:o.innerText;r&&(e(r),s.disconnect(),this.subscribeToSlug())}))})))).observe(i,{childList:!0})}subscribeToSnippetPreviewImage(){if((0,n.isUndefined)(wp.media)||(0,n.isUndefined)(wp.media.featuredImage))return;zo()("#postimagediv").on("click","#remove-post-thumbnail",(()=>{this.featuredImageIsSet=!1,this.setImageInSnippetPreview(this.getContentImage(this.getContent()))}));const e=wp.media.featuredImage.frame();var t,s,i;e.on("select",(()=>{const t=e.state().get("selection").first().attributes.url;t&&(this.featuredImageIsSet=!0,this.setImageInSnippetPreview(t))})),t=this._tinyMceId,s=["init"],i=()=>{const e=this.getContentImage(this.getContent()),t=this.getFeaturedImage()||e||"";this._store.dispatch(er(e)),this.setImageInSnippetPreview(t)},"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(e){const o=e.editor;o.id===t&&(0,n.forEach)(s,(function(e){o.on(e,i)}))}))}getFeaturedImage(){const e=zo()("#set-post-thumbnail img").attr("src");return e?(this.featuredImageIsSet=!0,e):(this.featuredImageIsSet=!1,null)}setImageInSnippetPreview(e){this._store.dispatch(or(e)),this._store.dispatch(Qo({snippetPreviewImageURL:e}))}getContentImage(e){if(this.featuredImageIsSet)return"";const t=M.languageProcessing.imageInText(e);if(0===t.length)return"";const s=zo().parseHTML(t.join(""));for(const e of s)if(e.src)return e.src;return""}getTitle(){const e=document.getElementById("title")||document.getElementById("name");return e&&e.value||""}getExcerpt(e=!0){const t=document.getElementById("excerpt"),s=t&&t.value||"",i="ja"===function(){const e=Ps();return(0,n.get)(e,"contentLocale","en_US")}()?80:156;return""!==s||!1===e?s:function(e,t=156){return(e=(e=(0,rs.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}(this.getContent(),i)}getSlug(){let e="";const t=document.getElementById("new-post-slug")||document.getElementById("slug");return t?e=t.value:null!==document.getElementById("editable-post-name-full")&&(e=document.getElementById("editable-post-name-full").textContent),e}getContent(){return Zo(Go(this._tinyMceId))}subscribeToElements(){this.subscribeToInputElement("title","title"),this.subscribeToInputElement("excerpt","excerpt"),this.subscribeToInputElement("excerpt","excerpt_only")}subscribeToInputElement(e,t){const s=document.getElementById(e);s&&s.addEventListener("input",(e=>{this.updateReplacementData(e,t)}))}updateReplacementData(e,t){let s=e.target.value;if("excerpt"===t&&""===s&&(s=this.getExcerpt()),this._previousEditorData[t]!==s){switch(this._previousEditorData[t]=s,t){case"title":this._store.dispatch(sr(s));break;case"excerpt":this._store.dispatch(ir(s))}this._store.dispatch(Xo(t,s))}}isShallowEqual(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e.hasOwnProperty(s)&&(!(s in t)||e[s]!==t[s]))return!1;return!0}refreshYoastSEO(){const e=this.getData();!this.isShallowEqual(this._previousData,e)&&(this.handleEditorChange(e),this._previousData=e,window.YoastSEO&&window.YoastSEO.app&&window.YoastSEO.app.refresh())}handleEditorChange(e){this._previousData.excerpt!==e.excerpt&&(this._store.dispatch(Xo("excerpt",e.excerpt)),this._store.dispatch(Xo("excerpt_only",e.excerpt_only))),this._previousData.snippetPreviewImageURL!==e.snippetPreviewImageURL&&this.setImageInSnippetPreview(e.snippetPreviewImageURL),this._previousData.slug!==e.slug&&this._store.dispatch(rr(e.slug)),this._previousData.title!==e.title&&this._store.dispatch(sr(e.title))}subscribeToStore(){this.subscriber=(0,n.debounce)(this.refreshYoastSEO,500),this._store.subscribe(this.subscriber)}getInitialData(e){e=function(e,t){if(!e.custom_taxonomies)return e;const s={};return(0,n.forEach)(e.custom_taxonomies,((e,t)=>{const{name:i,label:o,descriptionName:r,descriptionLabel:n}=function(e){const t=ps(e);return{name:"ct_"+t,label:ls(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:ls(e+" description (custom taxonomy)")}}(t),a="string"==typeof e.name?(0,Q.decodeHTML)(e.name):e.name,l="string"==typeof e.description?(0,Q.decodeHTML)(e.description):e.description;s[i]={value:a,label:o},s[r]={value:l,label:n}})),t.dispatch(function(e){return{type:"SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLES_BATCH",updatedVariables:e}}(s)),(0,n.omit)({...e},"custom_taxonomies")}(e=function(e,t){return e.custom_fields?((0,n.forEach)(e.custom_fields,((e,s)=>{const{name:i,label:o}=function(e){return{name:"cf_"+ps(e),label:ls(e+" (custom field)")}}(s);t.dispatch(as(i,e,o))})),(0,n.omit)({...e},"custom_fields")):e}(e,this._store),this._store);const t=this.getContent(),s=this.getFeaturedImage();return{...e,title:this.getTitle(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1),slug:this.getSlug(),content:t,snippetPreviewImageURL:s,contentImage:this.getContentImage(t)}}getData(){return{...this._store.getState().snippetEditor.data,title:this.getTitle(),content:this.getContent(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1)}}}})()})(); \ No newline at end of file +/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:s});vo.propTypes={helpTextTitle:o().string.isRequired,helpTextLink:o().string.isRequired,helpTextDescription:o().string.isRequired};const ko=({schemaPageTypeChange:t=n.noop,schemaPageTypeSelected:s=null,pageTypeOptions:i,schemaArticleTypeChange:o=n.noop,schemaArticleTypeSelected:r=null,articleTypeOptions:l,showArticleTypeInput:c,additionalHelpTextLink:p,helpTextLink:h,helpTextTitle:g,helpTextDescription:m,postTypeName:y,displayFooter:w=!1,defaultPageType:f,defaultArticleType:x,location:b,isNewsEnabled:v=!1})=>{const k=xo(i,f,y),_=xo(l,x,y),T=(0,a.useSelect)((e=>e(wo).selectLink("https://yoa.st/product-schema-metabox")),[]),R=(0,a.useSelect)((e=>e(wo).getIsWooSeoUpsell()),[]),[j,S]=(0,e.useState)(r),I=(0,d.__)("Want your products stand out in search results with rich results like price, reviews and more?","wordpress-seo"),C=(0,a.useSelect)((e=>e(wo).getIsProduct()),[]),E=(0,a.useSelect)((e=>e(wo).getIsWooSeoActive()),[]),L=(0,a.useSelect)((e=>e(wo).selectAdminLink("?page=wpseo_page_settings")),[]),A=C&&E,q=(0,e.useCallback)(((e,t)=>{S(t)}),[]);return(0,e.useEffect)((()=>{q(null,r)}),[r]),(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)(vo,{helpTextLink:h,helpTextTitle:g,helpTextDescription:m}),(0,u.jsx)(F.FieldGroup,{label:(0,d.__)("What type of page or content is this?","wordpress-seo"),linkTo:p +/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about page or content types","wordpress-seo")}),R&&(0,u.jsx)(gs,{link:T,text:I}),(0,u.jsx)(F.Select,{id:(0,Q.join)(["yoast-schema-page-type",b]),options:k,label:(0,d.__)("Page type","wordpress-seo"),onChange:t,selected:A?"ItemPage":s,disabled:A}),c&&(0,u.jsx)(F.Select,{id:(0,Q.join)(["yoast-schema-article-type",b]),options:_,label:(0,d.__)("Article type","wordpress-seo"),onChange:o,selected:r,onOptionFocus:q}),(0,u.jsx)(fo,{location:b,show:!v&&(P=j,M=x,"NewsArticle"===P||""===P&&"NewsArticle"===M)}),w&&!A&&(0,u.jsx)("p",{children:bo(y,L)}),A&&(0,u.jsx)("p",{children:(0,d.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */ +(0,d.__)("You have %1$s activated on your site, automatically setting the Page type for your products to 'Item Page'. As a result, the Page type selection is disabled.","wordpress-seo"),"Yoast WooCommerce SEO")})]});var P,M},_o=o().arrayOf(o().shape({name:o().string,value:o().string}));ko.propTypes={schemaPageTypeChange:o().func,schemaPageTypeSelected:o().string,pageTypeOptions:_o.isRequired,schemaArticleTypeChange:o().func,schemaArticleTypeSelected:o().string,articleTypeOptions:_o.isRequired,showArticleTypeInput:o().bool.isRequired,additionalHelpTextLink:o().string.isRequired,helpTextLink:o().string.isRequired,helpTextTitle:o().string.isRequired,helpTextDescription:o().string.isRequired,postTypeName:o().string.isRequired,displayFooter:o().bool,defaultPageType:o().string.isRequired,defaultArticleType:o().string.isRequired,location:o().string.isRequired,isNewsEnabled:o().bool};const To=({isMetabox:t,showArticleTypeInput:s=!1,articleTypeLabel:i="",additionalHelpTextLink:o="",pageTypeLabel:r,helpTextLink:n,helpTextTitle:a,helpTextDescription:l,postTypeName:c,displayFooter:d=!1,loadSchemaArticleData:p,loadSchemaPageData:h,location:g,...m})=>{const y=(0,u.jsx)(ko,{showArticleTypeInput:s,articleTypeLabel:i,additionalHelpTextLink:o,pageTypeLabel:r,helpTextLink:n,helpTextTitle:a,helpTextDescription:l,postTypeName:c,displayFooter:d,loadSchemaArticleData:p,loadSchemaPageData:h,location:g,...m});return t?(0,e.createPortal)((0,u.jsx)(yo,{children:y}),document.getElementById("wpseo-meta-section-schema")):y};To.propTypes={isMetabox:o().bool.isRequired,showArticleTypeInput:o().bool,articleTypeLabel:o().string,additionalHelpTextLink:o().string,pageTypeLabel:o().string.isRequired,helpTextLink:o().string.isRequired,helpTextTitle:o().string.isRequired,helpTextDescription:o().string.isRequired,postTypeName:o().string.isRequired,displayFooter:o().bool,loadSchemaArticleData:o().func.isRequired,loadSchemaPageData:o().func.isRequired,location:o().string.isRequired};const Ro=To;class jo{static get articleTypeInput(){return document.getElementById("yoast_wpseo_schema_article_type")}static get defaultArticleType(){return jo.articleTypeInput.getAttribute("data-default")}static get articleType(){return jo.articleTypeInput.value}static set articleType(e){jo.articleTypeInput.value=e}static get pageTypeInput(){return document.getElementById("yoast_wpseo_schema_page_type")}static get defaultPageType(){return jo.pageTypeInput.getAttribute("data-default")}static get pageType(){return jo.pageTypeInput.value}static set pageType(e){jo.pageTypeInput.value=e}}const So=t=>{const s=null!==jo.articleTypeInput;(0,e.useEffect)((()=>{t.loadSchemaPageData(),s&&t.loadSchemaArticleData()}),[]);const{pageTypeOptions:i,articleTypeOptions:o}=window.wpseoScriptData.metabox.schema,r={articleTypeLabel:(0,d.__)("Article type","wordpress-seo"),pageTypeLabel:(0,d.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,d.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,d.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:s,pageTypeOptions:i,articleTypeOptions:o},n={...t,...r,...(a=t.location,"metabox"===a?{helpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.page_type"],isMetabox:!0}:{helpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.page_type"],isMetabox:!1})};var a;return(0,u.jsx)(Ro,{...n})};So.propTypes={displayFooter:o().bool.isRequired,schemaPageTypeSelected:o().string.isRequired,schemaArticleTypeSelected:o().string.isRequired,defaultArticleType:o().string.isRequired,defaultPageType:o().string.isRequired,loadSchemaPageData:o().func.isRequired,loadSchemaArticleData:o().func.isRequired,schemaPageTypeChange:o().func.isRequired,schemaArticleTypeChange:o().func.isRequired,location:o().string.isRequired};const Io=(0,V.compose)([(0,a.withSelect)((e=>{const{getPreferences:t,getPageType:s,getDefaultPageType:i,getArticleType:o,getDefaultArticleType:r}=e("yoast-seo/editor"),{displaySchemaSettingsFooter:n,isNewsEnabled:a}=t();return{displayFooter:n,isNewsEnabled:a,schemaPageTypeSelected:s(),schemaArticleTypeSelected:o(),defaultArticleType:r(),defaultPageType:i()}})),(0,a.withDispatch)((e=>{const{setPageType:t,setArticleType:s,getSchemaPageData:i,getSchemaArticleData:o}=e("yoast-seo/editor");return{loadSchemaPageData:i,loadSchemaArticleData:o,schemaPageTypeChange:t,schemaArticleTypeChange:s}})),Jt()])(So),Co=window.yoast.relatedKeyphraseSuggestions;function Eo({requestLimitReached:e,isSuccess:t,response:s,requestHasData:i,relatedKeyphrases:o}){return e?"requestLimitReached":!t&&function(e){return"invalid_json"===(null==e?void 0:e.code)||"fetch_error"===(null==e?void 0:e.code)||!(0,n.isEmpty)(e)&&"error"in e}(s)?"requestFailed":i?function(e){return e&&e.length>=4}(o)?"maxRelatedKeyphrases":null:"requestEmpty"}function Lo({keyphrase:t="",relatedKeyphrases:s=[],renderAction:i=null,requestLimitReached:o=!1,countryCode:n,setCountry:a,newRequest:l,response:c={},isRtl:d=!1,userLocale:p="en_US",isPending:h=!1,isSuccess:g=!1,requestHasData:m=!0,isPremium:y=!1,semrushUpsellLink:w="",premiumUpsellLink:f=""}){var x,b;const[v,k]=(0,e.useState)(n),_=(0,e.useCallback)((async()=>{l(n,t),k(n)}),[n,t,l]);return(0,u.jsxs)(r.Root,{context:{isRtl:d},children:[!o&&!y&&(0,u.jsx)(Co.PremiumUpsell,{url:f,className:"yst-mb-4"}),!o&&(0,u.jsx)(Co.CountrySelector,{countryCode:n,activeCountryCode:v,onChange:a,onClick:_,className:"yst-mb-4",userLocale:p.split("_")[0]}),!h&&(0,u.jsx)(Co.UserMessage,{variant:Eo({requestLimitReached:o,isSuccess:g,response:c,requestHasData:m,relatedKeyphrases:s}),upsellLink:w}),(0,u.jsx)(Co.KeyphrasesTable,{relatedKeyphrases:s,columnNames:null==c||null===(x=c.results)||void 0===x?void 0:x.columnNames,data:null==c||null===(b=c.results)||void 0===b?void 0:b.rows,isPending:h,renderButton:i,className:"yst-mt-4"})]})}Lo.propTypes={keyphrase:o().string,relatedKeyphrases:o().array,renderAction:o().func,requestLimitReached:o().bool,countryCode:o().string.isRequired,setCountry:o().func.isRequired,newRequest:o().func.isRequired,response:o().object,isRtl:o().bool,userLocale:o().string,isPending:o().bool,isSuccess:o().bool,requestHasData:o().bool,isPremium:o().bool,semrushUpsellLink:o().string,premiumUpsellLink:o().string};const Ao=(0,V.compose)([(0,a.withSelect)((e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:s,getSEMrushRequestLimitReached:i,getSEMrushRequestResponse:o,getSEMrushRequestIsSuccess:r,getSEMrushIsRequestPending:n,getSEMrushRequestHasData:a,getPreference:l,getIsPremium:c,selectLinkParams:d}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:s(),requestLimitReached:i(),response:o(),isSuccess:r(),isPending:n(),requestHasData:a(),isRtl:l("isRtl",!1),userLocale:l("userLocale","en_US"),isPremium:c(),semrushUpsellLink:(0,Ss.addQueryArgs)("https://yoa.st/semrush-prices",d()),premiumUpsellLink:(0,Ss.addQueryArgs)("https://yoa.st/413",d())}})),(0,a.withDispatch)((e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:s}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{s(e,t)}}}))])(Lo),qo=({isOpen:e,closeModal:t,id:s,upsellLink:i})=>(0,u.jsx)($s,{isOpen:e,onClose:t,id:s,upsellLink:i,title:(0,d.__)("Cover more search intent with related keyphrases","wordpress-seo"),description:(0,d.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles - helping it get discovered by a wider audience.","wordpress-seo"),note:(0,d.__)("Fine-tune your content for every audience","wordpress-seo"),modalTitle:(0,d.__)("Add more keyphrases with Premium","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),Fo=()=>{const[t,,,s,i]=(0,r.useToggleState)(!1),o=(0,e.useContext)($.LocationContext),{locationContext:n}=(0,$.useRootContext)(),a=(0,r.useSvgAria)(),l=wpseoAdminL10n["sidebar"===o.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(qo,{isOpen:t,closeModal:i,upsellLink:(0,Ss.addQueryArgs)(l,{context:n}),id:`yoast-additional-keyphrases-modal-${o}`}),"sidebar"===o&&(0,u.jsx)(ae,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,d.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:P.colors.$color_grey_medium_dark},onClick:s,children:(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsx)(r.Badge,{size:"small",variant:"upsell",children:(0,u.jsx)(Us,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...a})})})}),"metabox"===o&&(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsxs)(X,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:s,children:[(0,u.jsx)(F.SvgIcon,{icon:"plus",color:P.colors.$color_grey_medium_dark}),(0,u.jsx)(X.Text,{children:(0,d.__)("Add related keyphrase","wordpress-seo")}),(0,u.jsxs)(r.Badge,{size:"small",variant:"upsell",children:[(0,u.jsx)(Us,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...a}),(0,u.jsx)("span",{children:"Premium"})]})]})})]})},Po=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),Mo=({store:t="yoast-seo/editor",location:s="sidebar"})=>{const i="black-friday-promotion",o=(0,a.useSelect)((e=>e(t).getIsPremium()),[t]),n=(0,a.useSelect)((e=>e(t).selectLinkParams()),[t]),l=(0,a.useSelect)((e=>e(t).isPromotionActive(i)),[t]),c=(0,a.useSelect)((e=>e(t).getIsWooCommerceActive()),[t]),p=(0,a.useSelect)((e=>e(t).isAlertDismissed(i)),[t]),h=(0,a.useSelect)((e=>e(t).getIsElementorEditor()),[t]),m=(0,e.useCallback)((()=>{(0,a.dispatch)(t).dismissAlert(i)}),[t,i]),y=(0,Ss.addQueryArgs)("https://yoa.st/black-friday-sale",n),w=(0,r.useSvgAria)();return o||!l||p?null:(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsxs)("div",{className:E()("sidebar"!==s||h?"yst-mx-4":"yst-mx-0","yst-border yst-rounded-lg yst-p-4 yst-max-w-md yst-mt-6 yst-relative yst-shadow-sm",c?"yst-border-woo-light":"yst-border-primary-200"),children:[(0,u.jsxs)(r.Badge,{size:"small",className:"yst-text-[10px] yst-bg-black yst-text-amber-300 yst-absolute yst--top-2",children:[(0,d.__)("BLACK FRIDAY","wordpress-seo")," "]}),(0,u.jsxs)("button",{className:"yst-absolute yst-top-4 yst-end-4",onClick:m,children:[(0,u.jsx)(Po,{className:"yst-w-4 yst-text-slate-400 yst-shrink-0 yst--mt-0.5"}),(0,u.jsx)("div",{className:"yst-sr-only",children:(0,d.__)("Dismiss","wordpress-seo")})]}),(0,u.jsxs)("div",{className:E()("sidebar"===s?"":"yst-flex yst-justify-between yst-gap-3"),children:[(0,u.jsxs)("div",{className:c?"yst-text-woo-light":"yst-text-primary-500",children:[(0,u.jsx)("div",{className:"yst-text-2xl yst-font-bold",children:(0,d.__)("30% OFF","wordpress-seo")}),(0,u.jsx)("div",{className:"yst-flex yst-gap-2 yst-font-semibold yst-text-tiny",children:c?(0,u.jsxs)(u.Fragment,{children:["Yoast WooCommerce SEO ",(0,u.jsx)(Ws,{className:"yst-w-4 yst-scale-x-[-1]",...w})]}):(0,u.jsxs)(u.Fragment,{children:[" Yoast SEO Premium ",(0,u.jsx)(q,{className:"yst-w-4",...w})]})})]}),(0,u.jsx)("div",{className:"yst-flex yst-items-end",children:(0,u.jsxs)(r.Button,{as:"a",className:E()("sidebar"===s?"yst-w-full":"yst-w-[140px]","yst-flex yst-gap-1 yst-w-[140px] yst-h-7 yst-mt-4"),variant:"upsell",href:y,target:"_blank",rel:"noreferrer",children:[(0,d.__)("Buy now!","wordpress-seo"),(0,u.jsx)(g,{className:"yst-w-4 rtl:yst-rotate-180",...w})]})})]})]})})};Mo.propTypes={store:o().string,location:o().oneOf(["sidebar","metabox"])};const Do=(Oo=Mo,e=>!(()=>{var e,t;const s=(0,a.select)("yoast-seo/editor").getIsPremium(),i=(0,a.select)("yoast-seo/editor").getWarningMessage();return(s&&null!==(e=null===(t=(0,a.select)("yoast-seo-premium/editor"))||void 0===t?void 0:t.getMetaboxWarning())&&void 0!==e?e:[]).length>0||i.length>0})()&&(0,u.jsx)(Oo,{...e}));var Oo;function No({settings:s}){const{isTerm:i}=(0,a.useSelect)((e=>({isTerm:e("yoast-seo/editor").getIsTerm(),isProduct:e("yoast-seo/editor").getIsProduct(),isWooCommerceActive:e("yoast-seo/editor").getIsWooCommerceActive()})),[]),o=window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor;return o&&(()=>{const{editorMode:t,activeAIButtonId:s}=(0,a.useSelect)((e=>({editorMode:e("core/edit-post").getEditorMode(),activeAIButtonId:e("yoast-seo/editor").getActiveAIFixesButton()})),[]),{setMarkerStatus:i}=(0,a.useDispatch)("yoast-seo/editor");(0,e.useEffect)((()=>(i("visual"===t&&s||"text"===t?"disabled":"enabled"),()=>{i("disabled")})),[t,s])})(),(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(t.Fill,{name:"YoastMetabox",children:[(0,u.jsx)(Ks,{renderPriority:1,children:(0,u.jsx)(ws,{})},"warning"),(0,u.jsx)(Ks,{renderPriority:2,children:(0,u.jsx)(Do,{location:"metabox"})},"time-constrained-notification"),s.isKeywordAnalysisActive&&(0,u.jsxs)(Ks,{renderPriority:8,children:[(0,u.jsx)(Qt.KeywordInput,{isSEMrushIntegrationActive:s.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,u.jsx)(t.Fill,{name:"YoastRelatedKeyphrases",children:(0,u.jsx)(Ao,{})})]},"keyword-input"),(0,u.jsx)(Ks,{renderPriority:9,children:(0,u.jsx)(bs,{id:"yoast-snippet-editor-metabox",title:(0,d.__)("Search appearance","wordpress-seo"),initialIsOpen:!0,children:(0,u.jsx)(ys,{hasPaperStyle:!1})})},"search-appearance"),s.isContentAnalysisActive&&(0,u.jsx)(Ks,{renderPriority:10,children:(0,u.jsx)(Qt.ReadabilityAnalysis,{shouldUpsell:s.shouldUpsell})},"readability-analysis"),s.isKeywordAnalysisActive&&(0,u.jsx)(Ks,{renderPriority:20,children:(0,u.jsx)(e.Fragment,{children:(0,u.jsx)(Qt.SeoAnalysis,{shouldUpsell:s.shouldUpsell})})},"seo-analysis"),s.isInclusiveLanguageAnalysisActive&&(0,u.jsx)(Ks,{renderPriority:21,children:(0,u.jsx)(Qt.InclusiveLanguageAnalysis,{})},"inclusive-language-analysis"),s.isKeywordAnalysisActive&&(0,u.jsx)(Ks,{renderPriority:22,children:s.shouldUpsell&&(0,u.jsx)(Fo,{})},"additional-keywords-upsell"),s.isKeywordAnalysisActive&&s.isWincherIntegrationActive&&(0,u.jsx)(Ks,{renderPriority:23,children:(0,u.jsx)(Xt,{location:"metabox"})},"wincher-seo-performance"),s.shouldUpsell&&!i&&(0,u.jsx)(Ks,{renderPriority:25,children:(0,u.jsx)(Bs,{})},"internal-linking-suggestions-upsell"),s.isCornerstoneActive&&(0,u.jsx)(Ks,{renderPriority:30,children:(0,u.jsx)(es,{})},"cornerstone"),s.displayAdvancedTab&&(0,u.jsx)(Ks,{renderPriority:40,children:(0,u.jsx)(bs,{id:"collapsible-advanced-settings",title:(0,d.__)("Advanced","wordpress-seo"),children:(0,u.jsx)(Js,{})})},"advanced"),s.displaySchemaSettings&&(0,u.jsx)(Ks,{renderPriority:50,children:(0,u.jsx)(Io,{})},"schema"),o&&(0,u.jsx)(Ks,{renderPriority:24,children:(0,u.jsx)(Qt.ContentBlocks,{})},"content-blocks"),(0,u.jsx)(Ks,{renderPriority:-1,children:(0,u.jsx)(go,{target:"wpseo-section-social"})},"social"),s.isInsightsEnabled&&(0,u.jsx)(Ks,{renderPriority:52,children:(0,u.jsx)(Ns,{location:"metabox"})},"insights")]})})}No.propTypes={settings:o().object.isRequired};const Uo=(0,V.compose)([(0,a.withSelect)(((e,t)=>{const{getPreferences:s}=e("yoast-seo/editor");return{settings:s(),store:t.store}}))])(No);function Wo({target:e,store:t,theme:s}){return(0,u.jsxs)(O,{target:e,children:[(0,u.jsx)(z,{store:t,theme:s}),(0,u.jsx)(Uo,{store:t,theme:s})]})}Wo.propTypes={target:o().string.isRequired,store:o().object.isRequired,theme:o().object.isRequired};const $o=[];let Bo=null;class Ho extends e.Component{constructor(e){super(e),this.state={registeredComponents:[...$o]}}registerComponent(e,t){this.setState((s=>({...s,registeredComponents:[...s.registeredComponents,{key:e,Component:t}]})))}render(){return this.state.registeredComponents.map((({Component:e,key:t})=>(0,u.jsx)(e,{},t)))}}function Ko(e,t){null===Bo||null===Bo.current?$o.push({key:e,Component:t}):Bo.current.registerComponent(e,t)}const Yo=window.yoast.externals.redux,zo=window.jQuery;var Vo=s.n(zo);function Go(e){let t="";var s;return t=!1===function(e){if("undefined"==typeof tinyMCE||void 0===tinyMCE.editors||0===tinyMCE.editors.length)return!1;const t=tinyMCE.get(e);return null!==t&&!t.isHidden()}(e)||0==(s=e,null!==document.getElementById(s+"_ifr"))?function(e){return document.getElementById(e)&&document.getElementById(e).value||""}(e):tinyMCE.get(e).getContent(),t}n.noop,n.noop,n.noop;const{removeMarks:Zo}=M.markers,{updateReplacementVariable:Xo,updateData:Qo,hideReplacementVariables:Jo,setContentImage:er,setEditorDataContent:tr,setEditorDataTitle:sr,setEditorDataExcerpt:ir,setEditorDataImageUrl:or,setEditorDataSlug:rr}=Yo.actions;window.yoast=window.yoast||{},window.yoast.initEditorIntegration=function(s){window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=Ko,function(s){const i=Ps();Bo=(0,e.createRef)();const o={isRtl:i.isRtl};(0,e.createRoot)(document.getElementById("wpseo-metabox-root")).render((0,u.jsxs)(t.SlotFillProvider,{children:[(0,u.jsx)($.Root,{context:{locationContext:"classic-metabox"},children:(0,u.jsx)(Wo,{target:"wpseo-metabox-root",store:s,theme:o})}),(0,u.jsx)(Ho,{ref:Bo})]}))}(s)},window.yoast.EditorData=class{constructor(e,t,s="content"){this._refresh=e,this._store=t,this._tinyMceId=s,this._previousData={},this._previousEditorData={},this.updateReplacementData=this.updateReplacementData.bind(this),this.refreshYoastSEO=this.refreshYoastSEO.bind(this)}initialize(e,t=[]){const s=this.getInitialData(e);var i,o;i=s,o=this._store,(0,n.forEach)(i,((e,t)=>{ds.includes(t)||o.dispatch(as(t,e))})),this._store.dispatch(Jo(t)),this._previousEditorData.content=s.content,this._store.dispatch(tr(s.content)),this._previousEditorData.contentImage=s.contentImage,this._store.dispatch(er(s.contentImage)),this.setImageInSnippetPreview(s.snippetPreviewImageURL||s.contentImage),this._previousEditorData.slug=s.slug,this._store.dispatch(rr(s.slug)),this.updateReplacementData({target:{value:s.title}},"title"),this.updateReplacementData({target:{value:s.excerpt}},"excerpt"),this.updateReplacementData({target:{value:s.excerpt_only}},"excerpt_only"),this.subscribeToElements(),this.subscribeToStore(),this.subscribeToSnippetPreviewImage(),this.subscribeToTinyMceEditor(),this.subscribeToSlug()}subscribeToTinyMceEditor(){const e=e=>{if((0,n.isString)(e)||(e=this.getContent()),this._previousEditorData.content===e)return;if(this._previousEditorData.content=e,this._store.dispatch(tr(e)),this.featuredImageIsSet)return;const t=this.getContentImage(e);this._previousEditorData.contentImage!==t&&(this._previousEditorData.contentImage=t,this._store.dispatch(er(t)),this.setImageInSnippetPreview(t))};Vo()(document).on("tinymce-editor-init",((t,s)=>{s.id===this._tinyMceId&&(e(this.getContent()),["input","change","cut","paste"].forEach((t=>s.on(t,(0,n.debounce)(e,1e3)))))}));const t=document.getElementById("attachment_content");t&&(e(t.value),t.addEventListener("input",(t=>e(t.target.value))))}subscribeToSlug(){const e=e=>{this._previousEditorData.slug!==e&&(this._previousEditorData.slug=e,this._store.dispatch(rr(e)),this._store.dispatch(Qo({slug:e})))},t=document.getElementById("slug");t&&t.addEventListener("input",(t=>e(t.target.value)));const s=document.getElementById("post_name");s&&s.addEventListener("input",(t=>e(t.target.value)));const i=document.getElementById("edit-slug-buttons");i&&new MutationObserver(((t,s)=>t.forEach((t=>{t.addedNodes.forEach((t=>{var i,o;if(null==t||null===(i=t.classList)||void 0===i||!i.contains("edit-slug"))return;const r=null===(o=document.getElementById("editable-post-name-full"))||void 0===o?void 0:o.innerText;r&&(e(r),s.disconnect(),this.subscribeToSlug())}))})))).observe(i,{childList:!0})}subscribeToSnippetPreviewImage(){if((0,n.isUndefined)(wp.media)||(0,n.isUndefined)(wp.media.featuredImage))return;Vo()("#postimagediv").on("click","#remove-post-thumbnail",(()=>{this.featuredImageIsSet=!1,this.setImageInSnippetPreview(this.getContentImage(this.getContent()))}));const e=wp.media.featuredImage.frame();var t,s,i;e.on("select",(()=>{const t=e.state().get("selection").first().attributes.url;t&&(this.featuredImageIsSet=!0,this.setImageInSnippetPreview(t))})),t=this._tinyMceId,s=["init"],i=()=>{const e=this.getContentImage(this.getContent()),t=this.getFeaturedImage()||e||"";this._store.dispatch(er(e)),this.setImageInSnippetPreview(t)},"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(e){const o=e.editor;o.id===t&&(0,n.forEach)(s,(function(e){o.on(e,i)}))}))}getFeaturedImage(){const e=Vo()("#set-post-thumbnail img").attr("src");return e?(this.featuredImageIsSet=!0,e):(this.featuredImageIsSet=!1,null)}setImageInSnippetPreview(e){this._store.dispatch(or(e)),this._store.dispatch(Qo({snippetPreviewImageURL:e}))}getContentImage(e){if(this.featuredImageIsSet)return"";const t=M.languageProcessing.imageInText(e);if(0===t.length)return"";const s=Vo().parseHTML(t.join(""));for(const e of s)if(e.src)return e.src;return""}getTitle(){const e=document.getElementById("title")||document.getElementById("name");return e&&e.value||""}getExcerpt(e=!0){const t=document.getElementById("excerpt"),s=t&&t.value||"",i="ja"===function(){const e=Ps();return(0,n.get)(e,"contentLocale","en_US")}()?80:156;return""!==s||!1===e?s:function(e,t=156){return(e=(e=(0,rs.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}(this.getContent(),i)}getSlug(){let e="";const t=document.getElementById("new-post-slug")||document.getElementById("slug");return t?e=t.value:null!==document.getElementById("editable-post-name-full")&&(e=document.getElementById("editable-post-name-full").textContent),e}getContent(){return Zo(Go(this._tinyMceId))}subscribeToElements(){this.subscribeToInputElement("title","title"),this.subscribeToInputElement("excerpt","excerpt"),this.subscribeToInputElement("excerpt","excerpt_only")}subscribeToInputElement(e,t){const s=document.getElementById(e);s&&s.addEventListener("input",(e=>{this.updateReplacementData(e,t)}))}updateReplacementData(e,t){let s=e.target.value;if("excerpt"===t&&""===s&&(s=this.getExcerpt()),this._previousEditorData[t]!==s){switch(this._previousEditorData[t]=s,t){case"title":this._store.dispatch(sr(s));break;case"excerpt":this._store.dispatch(ir(s))}this._store.dispatch(Xo(t,s))}}isShallowEqual(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e.hasOwnProperty(s)&&(!(s in t)||e[s]!==t[s]))return!1;return!0}refreshYoastSEO(){const e=this.getData();!this.isShallowEqual(this._previousData,e)&&(this.handleEditorChange(e),this._previousData=e,window.YoastSEO&&window.YoastSEO.app&&window.YoastSEO.app.refresh())}handleEditorChange(e){this._previousData.excerpt!==e.excerpt&&(this._store.dispatch(Xo("excerpt",e.excerpt)),this._store.dispatch(Xo("excerpt_only",e.excerpt_only))),this._previousData.snippetPreviewImageURL!==e.snippetPreviewImageURL&&this.setImageInSnippetPreview(e.snippetPreviewImageURL),this._previousData.slug!==e.slug&&this._store.dispatch(rr(e.slug)),this._previousData.title!==e.title&&this._store.dispatch(sr(e.title))}subscribeToStore(){this.subscriber=(0,n.debounce)(this.refreshYoastSEO,500),this._store.subscribe(this.subscriber)}getInitialData(e){e=function(e,t){if(!e.custom_taxonomies)return e;const s={};return(0,n.forEach)(e.custom_taxonomies,((e,t)=>{const{name:i,label:o,descriptionName:r,descriptionLabel:n}=function(e){const t=ps(e);return{name:"ct_"+t,label:ls(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:ls(e+" description (custom taxonomy)")}}(t),a="string"==typeof e.name?(0,Q.decodeHTML)(e.name):e.name,l="string"==typeof e.description?(0,Q.decodeHTML)(e.description):e.description;s[i]={value:a,label:o},s[r]={value:l,label:n}})),t.dispatch(function(e){return{type:"SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLES_BATCH",updatedVariables:e}}(s)),(0,n.omit)({...e},"custom_taxonomies")}(e=function(e,t){return e.custom_fields?((0,n.forEach)(e.custom_fields,((e,s)=>{const{name:i,label:o}=function(e){return{name:"cf_"+ps(e),label:ls(e+" (custom field)")}}(s);t.dispatch(as(i,e,o))})),(0,n.omit)({...e},"custom_fields")):e}(e,this._store),this._store);const t=this.getContent(),s=this.getFeaturedImage();return{...e,title:this.getTitle(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1),slug:this.getSlug(),content:t,snippetPreviewImageURL:s,contentImage:this.getContentImage(t)}}getData(){return{...this._store.getState().snippetEditor.data,title:this.getTitle(),content:this.getContent(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1)}}}})()})(); \ No newline at end of file @@ -1,13 +1,13 @@ -(()=>{var e={4184:(e,s)=>{var t;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],s=0;s<arguments.length;s++){var t=arguments[s];if(t){var i=typeof t;if("string"===i||"number"===i)e.push(t);else if(Array.isArray(t)){if(t.length){var a=o.apply(null,t);a&&e.push(a)}}else if("object"===i){if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]")){e.push(t.toString());continue}for(var n in t)r.call(t,n)&&t[n]&&e.push(n)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(t=function(){return o}.apply(s,[]))||(e.exports=t)}()}},s={};function t(r){var o=s[r];if(void 0!==o)return o.exports;var i=s[r]={exports:{}};return e[r](i,i.exports,t),i.exports}t.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return t.d(s,{a:s}),s},t.d=(e,s)=>{for(var r in s)t.o(s,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:s[r]})},t.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};t.r(e),t.d(e,{refreshDelay:()=>n});var s={};t.r(s),t.d(s,{default:()=>x,initializationDone:()=>f,sortResultsByIdentifier:()=>y});var r={};t.r(r),t.d(r,{default:()=>K,getIconForScore:()=>z});var o={};t.r(o),t.d(o,{doAjaxRequest:()=>ze});var i={};t.r(i),t.d(i,{applyReplaceUsingPlugin:()=>cs,createLabelFromName:()=>ss,excerptFromContent:()=>ls,fillReplacementVariables:()=>Xe,handlePrefixes:()=>es,mapCustomFields:()=>ns,mapCustomTaxonomies:()=>as,nonReplaceVars:()=>Je,prepareCustomFieldForDispatch:()=>os,prepareCustomTaxonomyForDispatch:()=>is,pushNewReplaceVar:()=>ts,replaceSpaces:()=>rs});const a=window.yoast.externals.contexts,n=500,l=window.lodash;function c(){return(0,l.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}const d=window.wp.i18n,u=window.yoast.analysis,p=window.wp.hooks,h=window.yoast.externals.redux;function m(){}let g=!1;function y(e){return e.sort(((e,s)=>e._identifier.localeCompare(s._identifier)))}function x(e,s,t,r,o){if(!g)return;const i=u.Paper.parse(s());e.analyze(i).then((a=>{const{result:{seo:n,readability:l,inclusiveLanguage:c}}=a;if(n){const e=n[""];e.results.forEach((e=>{e.getMarker=()=>()=>t(i,e.marks)})),e.results=y(e.results),r.dispatch(h.actions.setSeoResultsForKeyword(i.getKeyword(),e.results)),r.dispatch(h.actions.setOverallSeoScore(e.score,i.getKeyword())),r.dispatch(h.actions.refreshSnippetEditor()),o.saveScores(e.score,i.getKeyword())}l&&(l.results.forEach((e=>{e.getMarker=()=>()=>t(i,e.marks)})),l.results=y(l.results),r.dispatch(h.actions.setReadabilityResults(l.results)),r.dispatch(h.actions.setOverallReadabilityScore(l.score)),r.dispatch(h.actions.refreshSnippetEditor()),o.saveContentScore(l.score)),c&&(c.results.forEach((e=>{e.getMarker=()=>()=>t(i,e.marks)})),c.results=y(c.results),r.dispatch(h.actions.setInclusiveLanguageResults(c.results)),r.dispatch(h.actions.setOverallInclusiveLanguageScore(c.score)),r.dispatch(h.actions.refreshSnippetEditor()),o.saveInclusiveLanguageScore(c.score)),(0,p.doAction)("yoast.analysis.refresh",a,{paper:i,worker:e,collectData:s,applyMarks:t,store:r,dataCollector:o})})).catch(m)}function f(){g=!0}const w=window.wp.element,b=window.yoast.styledComponents;var v=t.n(b);const k=window.yoast.propTypes;var _=t.n(k);const j=window.yoast.componentsNew,S=window.yoast.helpers,R=window.yoast.styleGuide,C=window.ReactJSXRuntime,I=R.colors.$color_bad,E=R.colors.$palette_error_background,L=R.colors.$color_grey_text_light,N=R.colors.$palette_error_text,M=v().div` +(()=>{var e={4184:(e,s)=>{var t;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],s=0;s<arguments.length;s++){var t=arguments[s];if(t){var i=typeof t;if("string"===i||"number"===i)e.push(t);else if(Array.isArray(t)){if(t.length){var a=o.apply(null,t);a&&e.push(a)}}else if("object"===i){if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]")){e.push(t.toString());continue}for(var n in t)r.call(t,n)&&t[n]&&e.push(n)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(t=function(){return o}.apply(s,[]))||(e.exports=t)}()}},s={};function t(r){var o=s[r];if(void 0!==o)return o.exports;var i=s[r]={exports:{}};return e[r](i,i.exports,t),i.exports}t.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return t.d(s,{a:s}),s},t.d=(e,s)=>{for(var r in s)t.o(s,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:s[r]})},t.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};t.r(e),t.d(e,{refreshDelay:()=>n});var s={};t.r(s),t.d(s,{default:()=>x,initializationDone:()=>f,sortResultsByIdentifier:()=>y});var r={};t.r(r),t.d(r,{default:()=>K,getIconForScore:()=>z});var o={};t.r(o),t.d(o,{doAjaxRequest:()=>ze});var i={};t.r(i),t.d(i,{applyReplaceUsingPlugin:()=>cs,createLabelFromName:()=>ss,excerptFromContent:()=>ls,fillReplacementVariables:()=>Xe,handlePrefixes:()=>es,mapCustomFields:()=>ns,mapCustomTaxonomies:()=>as,nonReplaceVars:()=>Je,prepareCustomFieldForDispatch:()=>os,prepareCustomTaxonomyForDispatch:()=>is,pushNewReplaceVar:()=>ts,replaceSpaces:()=>rs});const a=window.yoast.externals.contexts,n=500,l=window.lodash;function c(){return(0,l.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}const d=window.wp.i18n,u=window.yoast.analysis,p=window.wp.hooks,h=window.yoast.externals.redux;function m(){}let g=!1;function y(e){return e.sort(((e,s)=>e._identifier.localeCompare(s._identifier)))}function x(e,s,t,r,o){if(!g)return;const i=u.Paper.parse(s());e.analyze(i).then((a=>{const{result:{seo:n,readability:l,inclusiveLanguage:c}}=a;if(n){const e=n[""];e.results.forEach((e=>{e.getMarker=()=>()=>t(i,e.marks)})),e.results=y(e.results),r.dispatch(h.actions.setSeoResultsForKeyword(i.getKeyword(),e.results)),r.dispatch(h.actions.setOverallSeoScore(e.score,i.getKeyword())),r.dispatch(h.actions.refreshSnippetEditor()),o.saveScores(e.score,i.getKeyword())}l&&(l.results.forEach((e=>{e.getMarker=()=>()=>t(i,e.marks)})),l.results=y(l.results),r.dispatch(h.actions.setReadabilityResults(l.results)),r.dispatch(h.actions.setOverallReadabilityScore(l.score)),r.dispatch(h.actions.refreshSnippetEditor()),o.saveContentScore(l.score)),c&&(c.results.forEach((e=>{e.getMarker=()=>()=>t(i,e.marks)})),c.results=y(c.results),r.dispatch(h.actions.setInclusiveLanguageResults(c.results)),r.dispatch(h.actions.setOverallInclusiveLanguageScore(c.score)),r.dispatch(h.actions.refreshSnippetEditor()),o.saveInclusiveLanguageScore(c.score)),(0,p.doAction)("yoast.analysis.refresh",a,{paper:i,worker:e,collectData:s,applyMarks:t,store:r,dataCollector:o})})).catch(m)}function f(){g=!0}const w=window.wp.element,b=window.yoast.styledComponents;var v=t.n(b);const k=window.yoast.propTypes;var _=t.n(k);const S=window.yoast.componentsNew,j=window.yoast.helpers,R=window.yoast.styleGuide,C=window.ReactJSXRuntime,I=R.colors.$color_bad,E=R.colors.$palette_error_background,L=R.colors.$color_grey_text_light,N=R.colors.$palette_error_text,M=v().div` display: flex; flex-direction: column; `,T=v().label` font-size: var(--yoast-font-size-default); font-weight: var(--yoast-font-weight-bold); - ${(0,S.getDirectionalStyle)("margin-right: 4px","margin-left: 4px")}; + ${(0,j.getDirectionalStyle)("margin-right: 4px","margin-left: 4px")}; `,P=v().span` margin-bottom: 0.5em; -`,A=v()(j.InputField)` +`,A=v()(S.InputField)` flex: 1 !important; box-sizing: border-box; max-width: 100%; @@ -35,7 +35,7 @@ `,q=v().li` color: ${N}; margin: 0 0 0.5em 0; -`,O=(0,j.addFocusStyle)(v().button` +`,O=(0,S.addFocusStyle)(v().button` border: 1px solid transparent; box-shadow: none; background: none; @@ -44,7 +44,7 @@ max-width: 32px; padding: 0; cursor: pointer; - `);O.propTypes={type:_().string,focusColor:_().string,focusBackgroundColor:_().string,focusBorderColor:_().string},O.defaultProps={type:"button",focusColor:R.colors.$color_button_text_hover,focusBackgroundColor:"transparent",focusBorderColor:R.colors.$color_blue};const $=v()(j.SvgIcon)` + `);O.propTypes={type:_().string,focusColor:_().string,focusBackgroundColor:_().string,focusBorderColor:_().string},O.defaultProps={type:"button",focusColor:R.colors.$color_button_text_hover,focusBackgroundColor:"transparent",focusBorderColor:R.colors.$color_blue};const $=v()(S.SvgIcon)` margin-top: 4px; `,B=v().div` display: flex; @@ -53,14 +53,14 @@ &.has-remove-keyword-button { ${A} { - ${(0,S.getDirectionalStyle)("padding-right: 40px","padding-left: 40px")}; + ${(0,j.getDirectionalStyle)("padding-right: 40px","padding-left: 40px")}; } ${O} { - ${(0,S.getDirectionalStyle)("margin-left: -32px","margin-right: -32px")}; + ${(0,j.getDirectionalStyle)("margin-left: -32px","margin-right: -32px")}; } } -`;class U extends w.Component{constructor(e){super(e),this.handleChange=this.handleChange.bind(this)}handleChange(e){this.props.onChange(e.target.value)}renderLabel(){const{id:e,label:s,helpLink:t}=this.props;return(0,C.jsxs)(P,{children:[(0,C.jsx)(T,{htmlFor:e,children:s}),t]})}renderErrorMessages(){const e=[...this.props.errorMessages];return!(0,l.isEmpty)(e)&&(0,C.jsx)(F,{children:e.map(((e,s)=>(0,C.jsx)(q,{children:(0,C.jsx)("span",{role:"alert",children:e})},s)))})}render(){const{id:e,showLabel:s,keyword:t,onRemoveKeyword:r,onBlurKeyword:o,onFocusKeyword:i,hasError:a}=this.props,n=!s,c=r!==l.noop;return(0,C.jsxs)(M,{children:[s&&this.renderLabel(),a&&this.renderErrorMessages(),(0,C.jsxs)(B,{className:c?"has-remove-keyword-button":null,children:[(0,C.jsx)(A,{"aria-label":n?this.props.label:null,type:"text",id:e,className:a?"has-error":null,onChange:this.handleChange,onFocus:i,onBlur:o,value:t,autoComplete:"off"}),c&&(0,C.jsx)(O,{onClick:r,focusBoxShadowColor:"#084A67",children:(0,C.jsx)($,{size:"18px",icon:"times-circle",color:L})})]})]})}}U.propTypes={id:_().string.isRequired,showLabel:_().bool,keyword:_().string,onChange:_().func.isRequired,onRemoveKeyword:_().func,onBlurKeyword:_().func,onFocusKeyword:_().func,label:_().string.isRequired,helpLink:_().node,hasError:_().bool,errorMessages:_().arrayOf(_().string)},U.defaultProps={showLabel:!0,keyword:"",onRemoveKeyword:l.noop,onBlurKeyword:l.noop,onFocusKeyword:l.noop,helpLink:null,hasError:!1,errorMessages:[]};const H=U;function D(e,s=""){const t=e.getIdentifier(),r={score:e.score,rating:u.interpreters.scoreToRating(e.score),hasMarks:e.hasMarks(),marker:e.getMarker(),id:t,text:e.text,markerId:s.length>0?`${s}:${t}`:t,hasBetaBadge:e.hasBetaBadge(),hasJumps:e.hasJumps(),hasAIFixes:e.hasAIFixes(),editFieldName:e.editFieldName,editFieldAriaLabel:e.editFieldAriaLabel};return"ok"===r.rating&&(r.rating="OK"),r}function W(e,s){switch(e.rating){case"error":s.errorsResults.push(e);break;case"feedback":s.considerationsResults.push(e);break;case"bad":s.problemsResults.push(e);break;case"OK":s.improvementsResults.push(e);break;case"good":s.goodResults.push(e)}return s}function z(e){switch(e){case"loading":return{icon:"loading-spinner",color:R.colors.$color_green_medium_light};case"not-set":return{icon:"seo-score-none",color:R.colors.$color_score_icon};case"noindex":return{icon:"seo-score-none",color:R.colors.$color_noindex};case"good":return{icon:"seo-score-good",color:R.colors.$color_green_medium};case"ok":return{icon:"seo-score-ok",color:R.colors.$color_ok};default:return{icon:"seo-score-bad",color:R.colors.$color_red}}}function K(e,s=""){let t={errorsResults:[],problemsResults:[],improvementsResults:[],goodResults:[],considerationsResults:[]};if(!e)return t;for(let r=0;r<e.length;r++){const o=e[r];o.text&&(t=W(D(o,s),t))}return t}const G=(0,S.makeOutboundLink)(v().a` +`;class U extends w.Component{constructor(e){super(e),this.handleChange=this.handleChange.bind(this)}handleChange(e){this.props.onChange(e.target.value)}renderLabel(){const{id:e,label:s,helpLink:t}=this.props;return(0,C.jsxs)(P,{children:[(0,C.jsx)(T,{htmlFor:e,children:s}),t]})}renderErrorMessages(){const e=[...this.props.errorMessages];return!(0,l.isEmpty)(e)&&(0,C.jsx)(F,{children:e.map(((e,s)=>(0,C.jsx)(q,{children:(0,C.jsx)("span",{role:"alert",children:e})},s)))})}render(){const{id:e,showLabel:s,keyword:t,onRemoveKeyword:r,onBlurKeyword:o,onFocusKeyword:i,hasError:a}=this.props,n=!s,c=r!==l.noop;return(0,C.jsxs)(M,{children:[s&&this.renderLabel(),a&&this.renderErrorMessages(),(0,C.jsxs)(B,{className:c?"has-remove-keyword-button":null,children:[(0,C.jsx)(A,{"aria-label":n?this.props.label:null,type:"text",id:e,className:a?"has-error":null,onChange:this.handleChange,onFocus:i,onBlur:o,value:t,autoComplete:"off"}),c&&(0,C.jsx)(O,{onClick:r,focusBoxShadowColor:"#084A67",children:(0,C.jsx)($,{size:"18px",icon:"times-circle",color:L})})]})]})}}U.propTypes={id:_().string.isRequired,showLabel:_().bool,keyword:_().string,onChange:_().func.isRequired,onRemoveKeyword:_().func,onBlurKeyword:_().func,onFocusKeyword:_().func,label:_().string.isRequired,helpLink:_().node,hasError:_().bool,errorMessages:_().arrayOf(_().string)},U.defaultProps={showLabel:!0,keyword:"",onRemoveKeyword:l.noop,onBlurKeyword:l.noop,onFocusKeyword:l.noop,helpLink:null,hasError:!1,errorMessages:[]};const H=U;function D(e,s=""){const t=e.getIdentifier(),r={score:e.score,rating:u.interpreters.scoreToRating(e.score),hasMarks:e.hasMarks(),marker:e.getMarker(),id:t,text:e.text,markerId:s.length>0?`${s}:${t}`:t,hasBetaBadge:e.hasBetaBadge(),hasJumps:e.hasJumps(),hasAIFixes:e.hasAIFixes(),editFieldName:e.editFieldName,editFieldAriaLabel:e.editFieldAriaLabel};return"ok"===r.rating&&(r.rating="OK"),r}function W(e,s){switch(e.rating){case"error":s.errorsResults.push(e);break;case"feedback":s.considerationsResults.push(e);break;case"bad":s.problemsResults.push(e);break;case"OK":s.improvementsResults.push(e);break;case"good":s.goodResults.push(e)}return s}function z(e){switch(e){case"loading":return{icon:"loading-spinner",color:R.colors.$color_green_medium_light};case"not-set":return{icon:"seo-score-none",color:R.colors.$color_score_icon};case"noindex":return{icon:"seo-score-none",color:R.colors.$color_noindex};case"good":return{icon:"seo-score-good",color:R.colors.$color_green_medium};case"ok":return{icon:"seo-score-ok",color:R.colors.$color_ok};default:return{icon:"seo-score-bad",color:R.colors.$color_red}}}function K(e,s=""){let t={errorsResults:[],problemsResults:[],improvementsResults:[],goodResults:[],considerationsResults:[]};if(!e)return t;for(let r=0;r<e.length;r++){const o=e[r];o.text&&(t=W(D(o,s),t))}return t}const G=(0,j.makeOutboundLink)(v().a` display: inline-block; position: relative; outline: none; @@ -90,7 +90,7 @@ padding: 2px; content: "\f223"; } -`),V=v()(j.Collapsible)` +`),V=v()(S.Collapsible)` h2 > button { padding-left: 24px; padding-top: 16px; @@ -106,19 +106,18 @@ border-top: 1px solid rgba(0,0,0,0.2); } -`,Y=window.wp.components,Z=({title:e="Yoast SEO",className:s="yoast yoast-gutenberg-modal",showYoastIcon:t=!0,children:r=null,additionalClassName:o="",...i})=>{const a=t?(0,C.jsx)("span",{className:"yoast-icon"}):null;return(0,C.jsx)(Y.Modal,{title:e,className:`${s} ${o}`,icon:a,...i,children:r})};Z.propTypes={title:_().string,className:_().string,showYoastIcon:_().bool,children:_().oneOfType([_().node,_().arrayOf(_().node)]),additionalClassName:_().string};const Q=Z,J=window.yoast.socialMetadataForms,X=e=>({type:e.subtype,width:e.width,height:e.height,url:e.url,id:e.id,sizes:e.sizes,alt:e.alt||e.title||e.name});const ee=({hiddenField:e,hiddenFieldImageId:s="",hiddenFieldFallbackImageId:t="",hasImageValidation:r=!1,...o})=>{const[i,a]=(0,w.useState)(null!==document.getElementById(t)),n=(0,w.useMemo)((()=>document.getElementById(e))),l=(0,w.useMemo)((()=>document.getElementById(s)));let c=null;c=t&&document.getElementById(t)?(0,w.useMemo)((()=>document.getElementById(t))):l;const[d,u]=(0,w.useState)({url:n?n.value:"",id:c?parseInt(c.value,10):"",alt:""}),[p,h]=(0,w.useState)([]),m=(0,w.useCallback)((e=>{n&&(n.value=e.url),c&&(c.value=e.id)})),g=(0,w.useCallback)((()=>{(function(e){const s=window.wp.media();return s.on("select",(()=>{const t=s.state().get("selection").first();e(X(t.attributes))})),s})((e=>{c=l,u(e),m(e),r&&h((0,S.validateFacebookImage)(e)),a(!1)})).open()}),[r,m]),y=(0,w.useCallback)((()=>{c=l;const e={url:"",id:"",alt:""};u(e),m(e),h([]),a(!0)}),[m]);return(0,w.useEffect)((()=>{var e;d.id&&!d.alt&&(e=d.id,new Promise(((s,t)=>{window.wp.media.attachment||t(),window.wp.media.attachment(e).fetch().then((e=>{s(X(e))})).catch((()=>t()))}))).then((e=>u(e)))}),[d]),(0,C.jsx)(j.ImageSelect,{...o,usingFallback:i,imageUrl:d.url,imageId:d.id,imageAltText:d.alt,onClick:g,onRemoveImageClick:y,warnings:p})};ee.propTypes={hiddenField:_().string.isRequired,hiddenFieldImageId:_().string,hiddenFieldFallbackImageId:_().string,hasImageValidation:_().bool};const se=ee;function te({target:e,children:s}){let t=e;return"string"==typeof e&&(t=document.getElementById(e)),t?(0,w.createPortal)(s,t):null}function re({target:e,label:s,hasPreview:t,hiddenField:r,hiddenFieldImageId:o="",hiddenFieldFallbackImageId:i="",selectImageButtonId:a="",replaceImageButtonId:n="",removeImageButtonId:l="",hasNewBadge:c=!1,isDisabled:d=!1,hasPremiumBadge:u=!1,hasImageValidation:p=!1}){return(0,C.jsx)(te,{target:e,children:(0,C.jsx)(se,{label:s,hasPreview:t,hiddenField:r,hiddenFieldImageId:o,hiddenFieldFallbackImageId:i,selectImageButtonId:a,replaceImageButtonId:n,removeImageButtonId:l,hasNewBadge:c,isDisabled:d,hasPremiumBadge:u,hasImageValidation:p})})}te.propTypes={target:_().oneOfType([_().string,_().object]).isRequired,children:_().node.isRequired},re.propTypes={target:_().string.isRequired,label:_().string.isRequired,hasPreview:_().bool.isRequired,hiddenField:_().string.isRequired,hiddenFieldImageId:_().string,hiddenFieldFallbackImageId:_().string,selectImageButtonId:_().string,replaceImageButtonId:_().string,removeImageButtonId:_().string,hasNewBadge:_().bool,isDisabled:_().bool,hasPremiumBadge:_().bool,hasImageValidation:_().bool};const oe=({target:e,scoreIndicator:s})=>(0,C.jsx)(te,{target:e,children:(0,C.jsx)(j.SvgIcon,{...z(s)})});oe.propTypes={target:_().string.isRequired,scoreIndicator:_().string.isRequired};const ie=oe,ae=({title:e,children:s,prefixIcon:t=null,subTitle:r="",hasBetaBadgeLabel:o=!1,hasNewBadgeLabel:i=!1,buttonId:a=null,renderNewBadgeLabel:n=(()=>{})})=>{const[l,c]=(0,w.useState)(!1),d=(0,w.useCallback)((()=>{c((e=>!e))}),[c]);return(0,C.jsxs)("div",{className:"yoast components-panel__body "+(l?"is-opened":""),children:[(0,C.jsx)("h2",{className:"components-panel__body-title",children:(0,C.jsxs)("button",{onClick:d,className:"components-button components-panel__body-toggle",type:"button",id:a,children:[(0,C.jsx)("span",{className:"yoast-icon-span",style:{fill:`${t&&t.color||""}`},children:t&&(0,C.jsx)(j.SvgIcon,{icon:t.icon,color:t.color,size:t.size})}),!i&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("span",{className:"yoast-title-container",children:[(0,C.jsx)("div",{className:"yoast-title",children:e}),r&&(0,C.jsx)("div",{className:"yoast-subtitle",children:r})]}),o&&(0,C.jsx)(j.BetaBadge,{})]}),i&&(0,C.jsxs)("div",{className:"yst-flex-grow yst-flex yst-items-center yst-gap-2",children:[(0,C.jsxs)("span",{className:"yst-overflow-x-hidden yst-leading-normal",children:[(0,C.jsx)("div",{className:"yoast-title",children:e}),r&&(0,C.jsx)("div",{className:"yoast-subtitle",children:r})]}),n()]}),(0,C.jsx)("span",{className:"yoast-chevron","aria-hidden":"true"})]})}),l&&s]})},ne=ae;ae.propTypes={title:_().string.isRequired,children:_().oneOfType([_().node,_().arrayOf(_().node)]).isRequired,prefixIcon:_().object,subTitle:_().string,hasBetaBadgeLabel:_().bool,hasNewBadgeLabel:_().bool,buttonId:_().string,renderNewBadgeLabel:_().func};const le=({children:e})=>(0,C.jsx)("div",{children:e});le.propTypes={renderPriority:_().number.isRequired,children:_().node.isRequired};const ce=le,de=({theme:e,location:s,children:t})=>(0,C.jsx)(a.LocationProvider,{value:s,children:(0,C.jsx)(b.ThemeProvider,{theme:e,children:t})});de.propTypes={theme:_().object.isRequired,location:_().oneOf(["sidebar","metabox","modal"]).isRequired,children:_().node.isRequired};const ue=de,pe=window.wp.compose,he=window.wp.data,me=({onClick:e,title:s,id:t="",subTitle:r="",suffixIcon:o=null,SuffixHeroIcon:i=null,prefixIcon:a=null,children:n=null})=>(0,C.jsx)("div",{className:"yoast components-panel__body",children:(0,C.jsx)("h2",{className:"components-panel__body-title",children:(0,C.jsxs)("button",{id:t,onClick:e,className:"components-button components-panel__body-toggle",type:"button",children:[a&&(0,C.jsx)("span",{className:"yoast-icon-span",style:{fill:`${a&&a.color||""}`},children:(0,C.jsx)(j.SvgIcon,{size:a.size,icon:a.icon})}),(0,C.jsxs)("span",{className:"yoast-title-container",children:[(0,C.jsx)("div",{className:"yoast-title",children:s}),(0,C.jsx)("div",{className:"yoast-subtitle",children:r})]}),n,o&&(0,C.jsx)(j.SvgIcon,{size:o.size,icon:o.icon}),i]})})}),ge=me;me.propTypes={onClick:_().func.isRequired,title:_().string.isRequired,id:_().string,subTitle:_().string,suffixIcon:_().object,SuffixHeroIcon:_().element,prefixIcon:_().object,children:_().node};const ye=({id:e,postTypeName:s,children:t,title:r,isOpen:o,open:i,close:n,shouldCloseOnClickOutside:l=!0,showChangesWarning:c=!0,SuffixHeroIcon:u=null})=>(0,C.jsxs)(w.Fragment,{children:[o&&(0,C.jsx)(a.LocationProvider,{value:"modal",children:(0,C.jsxs)(Q,{title:r,onRequestClose:n,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:l,children:[(0,C.jsx)("div",{className:"yoast-content-container",children:(0,C.jsx)("div",{className:"yoast-modal-content",children:t})}),(0,C.jsxs)("div",{className:"yoast-notice-container",children:[(0,C.jsx)("hr",{}),(0,C.jsxs)("div",{className:"yoast-button-container",children:[c&&(0,C.jsx)("p",{children:/* Translators: %s translates to the Post Label in singular form */ +`,Y=window.wp.components,Z=({title:e="Yoast SEO",className:s="yoast yoast-gutenberg-modal",showYoastIcon:t=!0,children:r=null,additionalClassName:o="",...i})=>{const a=t?(0,C.jsx)("span",{className:"yoast-icon"}):null;return(0,C.jsx)(Y.Modal,{title:e,className:`${s} ${o}`,icon:a,...i,children:r})};Z.propTypes={title:_().string,className:_().string,showYoastIcon:_().bool,children:_().oneOfType([_().node,_().arrayOf(_().node)]),additionalClassName:_().string};const Q=Z,J=window.yoast.socialMetadataForms,X=e=>({type:e.subtype,width:e.width,height:e.height,url:e.url,id:e.id,sizes:e.sizes,alt:e.alt||e.title||e.name});const ee=({hiddenField:e,hiddenFieldImageId:s="",hiddenFieldFallbackImageId:t="",hasImageValidation:r=!1,...o})=>{const[i,a]=(0,w.useState)(null!==document.getElementById(t)),n=(0,w.useMemo)((()=>document.getElementById(e))),l=(0,w.useMemo)((()=>document.getElementById(s)));let c=null;c=t&&document.getElementById(t)?(0,w.useMemo)((()=>document.getElementById(t))):l;const[d,u]=(0,w.useState)({url:n?n.value:"",id:c?parseInt(c.value,10):"",alt:""}),[p,h]=(0,w.useState)([]),m=(0,w.useCallback)((e=>{n&&(n.value=e.url),c&&(c.value=e.id)})),g=(0,w.useCallback)((()=>{(function(e){const s=window.wp.media();return s.on("select",(()=>{const t=s.state().get("selection").first();e(X(t.attributes))})),s})((e=>{c=l,u(e),m(e),r&&h((0,j.validateFacebookImage)(e)),a(!1)})).open()}),[r,m]),y=(0,w.useCallback)((()=>{c=l;const e={url:"",id:"",alt:""};u(e),m(e),h([]),a(!0)}),[m]);return(0,w.useEffect)((()=>{var e;d.id&&!d.alt&&(e=d.id,new Promise(((s,t)=>{window.wp.media.attachment||t(),window.wp.media.attachment(e).fetch().then((e=>{s(X(e))})).catch((()=>t()))}))).then((e=>u(e)))}),[d]),(0,C.jsx)(S.ImageSelect,{...o,usingFallback:i,imageUrl:d.url,imageId:d.id,imageAltText:d.alt,onClick:g,onRemoveImageClick:y,warnings:p})};ee.propTypes={hiddenField:_().string.isRequired,hiddenFieldImageId:_().string,hiddenFieldFallbackImageId:_().string,hasImageValidation:_().bool};const se=ee;function te({target:e,children:s}){let t=e;return"string"==typeof e&&(t=document.getElementById(e)),t?(0,w.createPortal)(s,t):null}function re({target:e,label:s,hasPreview:t,hiddenField:r,hiddenFieldImageId:o="",hiddenFieldFallbackImageId:i="",selectImageButtonId:a="",replaceImageButtonId:n="",removeImageButtonId:l="",hasNewBadge:c=!1,isDisabled:d=!1,hasPremiumBadge:u=!1,hasImageValidation:p=!1}){return(0,C.jsx)(te,{target:e,children:(0,C.jsx)(se,{label:s,hasPreview:t,hiddenField:r,hiddenFieldImageId:o,hiddenFieldFallbackImageId:i,selectImageButtonId:a,replaceImageButtonId:n,removeImageButtonId:l,hasNewBadge:c,isDisabled:d,hasPremiumBadge:u,hasImageValidation:p})})}te.propTypes={target:_().oneOfType([_().string,_().object]).isRequired,children:_().node.isRequired},re.propTypes={target:_().string.isRequired,label:_().string.isRequired,hasPreview:_().bool.isRequired,hiddenField:_().string.isRequired,hiddenFieldImageId:_().string,hiddenFieldFallbackImageId:_().string,selectImageButtonId:_().string,replaceImageButtonId:_().string,removeImageButtonId:_().string,hasNewBadge:_().bool,isDisabled:_().bool,hasPremiumBadge:_().bool,hasImageValidation:_().bool};const oe=({target:e,scoreIndicator:s})=>(0,C.jsx)(te,{target:e,children:(0,C.jsx)(S.SvgIcon,{...z(s)})});oe.propTypes={target:_().string.isRequired,scoreIndicator:_().string.isRequired};const ie=oe,ae=({title:e,children:s,prefixIcon:t=null,subTitle:r="",hasBetaBadgeLabel:o=!1,hasNewBadgeLabel:i=!1,buttonId:a=null,renderNewBadgeLabel:n=(()=>{})})=>{const[l,c]=(0,w.useState)(!1),d=(0,w.useCallback)((()=>{c((e=>!e))}),[c]);return(0,C.jsxs)("div",{className:"yoast components-panel__body "+(l?"is-opened":""),children:[(0,C.jsx)("h2",{className:"components-panel__body-title",children:(0,C.jsxs)("button",{onClick:d,className:"components-button components-panel__body-toggle",type:"button",id:a,children:[(0,C.jsx)("span",{className:"yoast-icon-span",style:{fill:`${t&&t.color||""}`},children:t&&(0,C.jsx)(S.SvgIcon,{icon:t.icon,color:t.color,size:t.size})}),!i&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("span",{className:"yoast-title-container",children:[(0,C.jsx)("div",{className:"yoast-title",children:e}),r&&(0,C.jsx)("div",{className:"yoast-subtitle",children:r})]}),o&&(0,C.jsx)(S.BetaBadge,{})]}),i&&(0,C.jsxs)("div",{className:"yst-flex-grow yst-flex yst-items-center yst-gap-2",children:[(0,C.jsxs)("span",{className:"yst-overflow-x-hidden yst-leading-normal",children:[(0,C.jsx)("div",{className:"yoast-title",children:e}),r&&(0,C.jsx)("div",{className:"yoast-subtitle",children:r})]}),n()]}),(0,C.jsx)("span",{className:"yoast-chevron","aria-hidden":"true"})]})}),l&&s]})},ne=ae;ae.propTypes={title:_().string.isRequired,children:_().oneOfType([_().node,_().arrayOf(_().node)]).isRequired,prefixIcon:_().object,subTitle:_().string,hasBetaBadgeLabel:_().bool,hasNewBadgeLabel:_().bool,buttonId:_().string,renderNewBadgeLabel:_().func};const le=({children:e})=>(0,C.jsx)("div",{children:e});le.propTypes={renderPriority:_().number.isRequired,children:_().node.isRequired};const ce=le,de=({theme:e,location:s,children:t})=>(0,C.jsx)(a.LocationProvider,{value:s,children:(0,C.jsx)(b.ThemeProvider,{theme:e,children:t})});de.propTypes={theme:_().object.isRequired,location:_().oneOf(["sidebar","metabox","modal"]).isRequired,children:_().node.isRequired};const ue=de,pe=window.wp.compose,he=window.wp.data,me=({onClick:e,title:s,id:t="",subTitle:r="",suffixIcon:o=null,SuffixHeroIcon:i=null,prefixIcon:a=null,children:n=null})=>(0,C.jsx)("div",{className:"yoast components-panel__body",children:(0,C.jsx)("h2",{className:"components-panel__body-title",children:(0,C.jsxs)("button",{id:t,onClick:e,className:"components-button components-panel__body-toggle",type:"button",children:[a&&(0,C.jsx)("span",{className:"yoast-icon-span",style:{fill:`${a&&a.color||""}`},children:(0,C.jsx)(S.SvgIcon,{size:a.size,icon:a.icon})}),(0,C.jsxs)("span",{className:"yoast-title-container",children:[(0,C.jsx)("div",{className:"yoast-title",children:s}),(0,C.jsx)("div",{className:"yoast-subtitle",children:r})]}),n,o&&(0,C.jsx)(S.SvgIcon,{size:o.size,icon:o.icon}),i]})})}),ge=me;me.propTypes={onClick:_().func.isRequired,title:_().string.isRequired,id:_().string,subTitle:_().string,suffixIcon:_().object,SuffixHeroIcon:_().element,prefixIcon:_().object,children:_().node};const ye=({id:e,postTypeName:s,children:t,title:r,isOpen:o,open:i,close:n,shouldCloseOnClickOutside:l=!0,showChangesWarning:c=!0,SuffixHeroIcon:u=null})=>(0,C.jsxs)(w.Fragment,{children:[o&&(0,C.jsx)(a.LocationProvider,{value:"modal",children:(0,C.jsxs)(Q,{title:r,onRequestClose:n,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:l,children:[(0,C.jsx)("div",{className:"yoast-content-container",children:(0,C.jsx)("div",{className:"yoast-modal-content",children:t})}),(0,C.jsxs)("div",{className:"yoast-notice-container",children:[(0,C.jsx)("hr",{}),(0,C.jsxs)("div",{className:"yoast-button-container",children:[c&&(0,C.jsx)("p",{children:/* Translators: %s translates to the Post Label in singular form */ (0,d.sprintf)((0,d.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),s)}),(0,C.jsx)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:n,children:/* Translators: %s translates to the Post Label in singular form */ -(0,d.sprintf)((0,d.__)("Return to your %s","wordpress-seo"),s)})]})]})]})}),(0,C.jsx)(ge,{id:e+"-open-button",title:r,SuffixHeroIcon:u,suffixIcon:u?null:{size:"20px",icon:"pencil-square"},onClick:i})]});ye.propTypes={id:_().string.isRequired,postTypeName:_().string.isRequired,children:_().oneOfType([_().node,_().arrayOf(_().node)]).isRequired,title:_().string.isRequired,isOpen:_().bool.isRequired,open:_().func.isRequired,close:_().func.isRequired,shouldCloseOnClickOutside:_().bool,showChangesWarning:_().bool,SuffixHeroIcon:_().element};const xe=ye,fe=(0,pe.compose)([(0,he.withSelect)(((e,s)=>{const{getPostOrPageString:t,getIsModalOpen:r}=e("yoast-seo/editor");return{postTypeName:t(),isOpen:r(s.id)}})),(0,he.withDispatch)(((e,s)=>{const{openEditorModal:t,closeEditorModal:r}=e("yoast-seo/editor");return{open:()=>t(s.id),close:r}}))])(xe),we=(0,pe.compose)([(0,he.withSelect)(((e,s)=>{const{isAlertDismissed:t}=e(s.store||"yoast-seo/editor");return{isAlertDismissed:t(s.alertKey)}})),(0,he.withDispatch)(((e,s)=>{const{dismissAlert:t}=e(s.store||"yoast-seo/editor");return{onDismissed:()=>t(s.alertKey)}}))])(j.Alert),be=window.yoast.analysisReport,ve=window.yoast.uiLibrary,ke=window.React;var _e=t.n(ke);const je=ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))})),Se=window.wp.url,Re=(e,s)=>{try{return(0,w.createInterpolateElement)(e,s)}catch(s){return console.error("Error in translation for:",e,s),e}};var Ce,Ie;function Ee(){return Ee=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ee.apply(this,arguments)}const Le=e=>ke.createElement("svg",Ee({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),Ce||(Ce=ke.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),Ie||(Ie=ke.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"}))),Ne=ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),Me=ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}))})),Te=ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}));var Pe=t(4184),Ae=t.n(Pe);const Fe=({isOpen:e,onClose:s,id:t,upsellLink:r,title:o="",description:i="",benefits:a=[],note:n="",ctbId:l="",modalTitle:c})=>{const{isBlackFriday:u,isWooCommerceActive:p,isProductEntity:h,isWooSEOActive:m}=(0,he.useSelect)((e=>{const s=e("yoast-seo/editor");return{isProductEntity:s.getIsProductEntity(),isWooCommerceActive:s.getIsWooCommerceActive(),isBlackFriday:s.isPromotionActive("black-friday-promotion"),isWooSEOActive:s.getIsWooSeoActive()}}),[]),g=(0,w.useMemo)((()=>p&&h),[p,h]),y=(0,w.useRef)(null);return(0,C.jsx)(ve.Modal,{isOpen:e,onClose:s,id:t,initialFocus:y,children:(0,C.jsx)(ve.Modal.Panel,{className:"yst-max-w-md yst-p-0",hasCloseButton:!1,children:(0,C.jsxs)(ve.Modal.Container,{children:[(0,C.jsxs)(ve.Modal.Container.Header,{className:"yst-p-6 yst-border-b-slate-200 yst-border-b yst-flex yst-justify-start yst-gap-3 yst-items-center",children:[g?(0,C.jsx)(Me,{className:"yst-text-woo-light yst-w-6 yst-h-6 yst-scale-x-[-1]"}):(0,C.jsx)(Le,{className:"yst-fill-primary-500 yst-w-5 yst-h-5"}),(0,C.jsx)(ve.Modal.Title,{as:"h3",className:Ae()(g?"yst-text-woo-light":"yst-text-primary-500","yst-text-base yst-font-normal"),children:c}),(0,C.jsx)(ve.Modal.CloseButton,{className:"yst-top-2",onClick:s,screenReaderText:(0,d.__)("Close modal","wordpress-seo")})]}),(0,C.jsxs)(ve.Modal.Container.Content,{className:"yst-p-0",children:[u&&(0,C.jsx)("div",{className:"yst-flex yst-font-semibold yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6",children:(0,C.jsx)("div",{className:"yst-mx-auto",children:(0,d.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})}),(0,C.jsxs)("div",{className:"yst-py-6 yst-px-12",children:[(0,C.jsx)(ve.Title,{as:"h3",className:"yst-mb-1 yst-leading-5 yst-text-sm yst-font-medium yst-text-slate-800",children:o}),(0,C.jsx)("p",{className:"yst-mb-2",children:i}),Array.isArray(a)&&a.length>0&&(0,C.jsx)("ul",{className:"yst-my-2",children:a.map(((e,s)=>(0,C.jsxs)("li",{className:"yst-flex yst-gap-1 yst-mb-2",children:[(0,C.jsx)(Te,{className:"yst-mr-1 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),(0,C.jsx)("p",{className:"yst-text-slate-600",children:e})]},`${t}-upsell-benefit-${s}`)))}),"function"==typeof a&&a(),(0,C.jsxs)("div",{className:"yst-text-center",children:[(0,C.jsxs)(ve.Button,{as:"a",variant:"upsell",className:"yst-my-2 yst-gap-1.5 yst-w-full",href:r,target:"_blank","data-action":"load-nfd-ctb","data-ctb-id":l,ref:y,children:[(0,C.jsx)(Ne,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,d.sprintf)(/* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */ -(0,d.__)("Explore %s","wordpress-seo"),g&&!m?"Yoast WooCommerce SEO":"Yoast SEO Premium"),(0,C.jsx)("span",{className:"yst-sr-only",children:(0,d.__)("Opens in a new tab","wordpress-seo")})]}),(0,C.jsx)("div",{className:"yst-italic yst-text-slate-500 yst-mt-1",children:n})]})]})]})]})})})},qe=({isOpen:e,closeModal:s,id:t,upsellLink:r})=>{const{locationContext:o}=(0,a.useRootContext)(),i=(0,Se.addQueryArgs)(wpseoAdminL10n[r],{context:o}),n=[Re((0,d.sprintf)(/* translators: %1$s and %2$s are opening and closing span tags. */ +(0,d.sprintf)((0,d.__)("Return to your %s","wordpress-seo"),s)})]})]})]})}),(0,C.jsx)(ge,{id:e+"-open-button",title:r,SuffixHeroIcon:u,suffixIcon:u?null:{size:"20px",icon:"pencil-square"},onClick:i})]});ye.propTypes={id:_().string.isRequired,postTypeName:_().string.isRequired,children:_().oneOfType([_().node,_().arrayOf(_().node)]).isRequired,title:_().string.isRequired,isOpen:_().bool.isRequired,open:_().func.isRequired,close:_().func.isRequired,shouldCloseOnClickOutside:_().bool,showChangesWarning:_().bool,SuffixHeroIcon:_().element};const xe=ye,fe=(0,pe.compose)([(0,he.withSelect)(((e,s)=>{const{getPostOrPageString:t,getIsModalOpen:r}=e("yoast-seo/editor");return{postTypeName:t(),isOpen:r(s.id)}})),(0,he.withDispatch)(((e,s)=>{const{openEditorModal:t,closeEditorModal:r}=e("yoast-seo/editor");return{open:()=>t(s.id),close:r}}))])(xe),we=(0,pe.compose)([(0,he.withSelect)(((e,s)=>{const{isAlertDismissed:t}=e(s.store||"yoast-seo/editor");return{isAlertDismissed:t(s.alertKey)}})),(0,he.withDispatch)(((e,s)=>{const{dismissAlert:t}=e(s.store||"yoast-seo/editor");return{onDismissed:()=>t(s.alertKey)}}))])(S.Alert),be=window.yoast.analysisReport,ve=window.yoast.uiLibrary,ke=window.React;var _e=t.n(ke);const Se=ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))})),je=window.wp.url,Re=(e,s)=>{try{return(0,w.createInterpolateElement)(e,s)}catch(s){return console.error("Error in translation for:",e,s),e}};var Ce,Ie;function Ee(){return Ee=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ee.apply(this,arguments)}const Le=e=>ke.createElement("svg",Ee({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),Ce||(Ce=ke.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),Ie||(Ie=ke.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"}))),Ne=ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),Me=ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}))})),Te=ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}));var Pe=t(4184),Ae=t.n(Pe);const Fe=({isOpen:e,onClose:s,id:t,upsellLink:r,title:o="",description:i="",benefits:a=[],note:n="",ctbId:l="",modalTitle:c})=>{const{isBlackFriday:u,isWooCommerceActive:p,isProductEntity:h,isWooSEOActive:m}=(0,he.useSelect)((e=>{const s=e("yoast-seo/editor");return{isProductEntity:s.getIsProductEntity(),isWooCommerceActive:s.getIsWooCommerceActive(),isBlackFriday:s.isPromotionActive("black-friday-promotion"),isWooSEOActive:s.getIsWooSeoActive()}}),[]),g=(0,w.useMemo)((()=>p&&h),[p,h]),y=(0,w.useRef)(null);return(0,C.jsx)(ve.Modal,{isOpen:e,onClose:s,id:t,initialFocus:y,children:(0,C.jsx)(ve.Modal.Panel,{className:"yst-max-w-md yst-p-0",hasCloseButton:!1,children:(0,C.jsxs)(ve.Modal.Container,{children:[(0,C.jsxs)(ve.Modal.Container.Header,{className:"yst-p-6 yst-border-b-slate-200 yst-border-b yst-flex yst-justify-start yst-gap-3 yst-items-center",children:[g?(0,C.jsx)(Me,{className:"yst-text-woo-light yst-w-6 yst-h-6 yst-scale-x-[-1]"}):(0,C.jsx)(Le,{className:"yst-fill-primary-500 yst-w-5 yst-h-5"}),(0,C.jsx)(ve.Modal.Title,{as:"h3",className:Ae()(g?"yst-text-woo-light":"yst-text-primary-500","yst-text-base yst-font-normal"),children:c}),(0,C.jsx)(ve.Modal.CloseButton,{className:"yst-top-2",onClick:s,screenReaderText:(0,d.__)("Close modal","wordpress-seo")})]}),(0,C.jsxs)(ve.Modal.Container.Content,{className:"yst-p-0",children:[u&&(0,C.jsx)("div",{className:"yst-flex yst-font-semibold yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6",children:(0,C.jsx)("div",{className:"yst-mx-auto",children:(0,d.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})}),(0,C.jsxs)("div",{className:"yst-py-6 yst-px-12",children:[(0,C.jsx)(ve.Title,{as:"h3",className:"yst-mb-1 yst-leading-5 yst-text-sm yst-font-medium yst-text-slate-800",children:o}),(0,C.jsx)("p",{className:"yst-mb-2",children:i}),Array.isArray(a)&&a.length>0&&(0,C.jsx)("ul",{className:"yst-my-2",children:a.map(((e,s)=>(0,C.jsxs)("li",{className:"yst-flex yst-gap-1 yst-mb-2",children:[(0,C.jsx)(Te,{className:"yst-mr-1 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),(0,C.jsx)("p",{className:"yst-text-slate-600",children:e})]},`${t}-upsell-benefit-${s}`)))}),"function"==typeof a&&a(),(0,C.jsxs)("div",{className:"yst-text-center",children:[(0,C.jsxs)(ve.Button,{as:"a",variant:"upsell",className:"yst-my-2 yst-gap-1.5 yst-w-full",href:r,target:"_blank","data-action":"load-nfd-ctb","data-ctb-id":l,ref:y,children:[(0,C.jsx)(Ne,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,d.sprintf)(/* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */ +(0,d.__)("Explore %s","wordpress-seo"),g&&!m?"Yoast WooCommerce SEO":"Yoast SEO Premium"),(0,C.jsx)("span",{className:"yst-sr-only",children:(0,d.__)("Opens in a new tab","wordpress-seo")})]}),(0,C.jsx)("div",{className:"yst-italic yst-text-slate-500 yst-mt-1",children:n})]})]})]})]})})})},qe=({isOpen:e,closeModal:s,id:t,upsellLink:r})=>{const{locationContext:o}=(0,a.useRootContext)(),i=(0,je.addQueryArgs)(wpseoAdminL10n[r],{context:o}),n=[Re((0,d.sprintf)(/* translators: %1$s and %2$s are opening and closing span tags. */ (0,d.__)("%1$sKeyphrase distribution:%2$s See if your keywords are spread evenly so search engines understand your topic","wordpress-seo"),"<span>","</span>"),{span:(0,C.jsx)("span",{className:"yst-font-medium yst-text-slate-800"})}),Re((0,d.sprintf)(/* translators: %1$s and %2$s are opening and closing span tags. */ (0,d.__)("%1$sTitle check:%2$s Instantly spot missing titles and fix them for better click-through rates","wordpress-seo"),"<span>","</span>"),{span:(0,C.jsx)("span",{className:"yst-font-medium yst-text-slate-800"})}),Re((0,d.sprintf)(/* translators: %1$s and %2$s are opening and closing span tags. */ -(0,d.__)("%1$sSynonyms:%2$s Include synonyms of your keyphrase for a more natural flow and smarter suggestions","wordpress-seo"),"<span>","</span>"),{span:(0,C.jsx)("span",{className:"yst-font-medium yst-text-slate-800"})})];return(0,C.jsx)(Fe,{isOpen:e,onClose:s,id:t,modalTitle:(0,d.__)("Get deeper SEO insights with Premium","wordpress-seo"),title:(0,d.__)("Find new ways to grow your rankings.","wordpress-seo"),description:(0,d.__)("Premium gives you advanced content checks that reveal new ranking opportunities and help you reach more readers.","wordpress-seo"),upsellLink:i,benefits:n,note:(0,d.__)("Upgrade to optimize with precision","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"})};qe.propTypes={isOpen:_().bool.isRequired,closeModal:_().func.isRequired,id:_().string.isRequired,upsellLink:_().string.isRequired};class Oe extends w.Component{constructor(e){super(e);const s=this.props.results;this.state={mappedResults:{}},null!==s&&(this.state={mappedResults:K(s,this.props.keywordKey)}),this.handleMarkButtonClick=this.handleMarkButtonClick.bind(this),this.handleEditButtonClick=this.handleEditButtonClick.bind(this),this.handleResultsChange=this.handleResultsChange.bind(this),this.renderHighlightingUpsell=this.renderHighlightingUpsell.bind(this),this.createMarkButton=this.createMarkButton.bind(this)}componentDidUpdate(e){null!==this.props.results&&this.props.results!==e.results&&this.setState({mappedResults:K(this.props.results,this.props.keywordKey)})}createMarkButton({ariaLabel:e,id:s,className:t,status:r,onClick:o,isPressed:i}){return(0,C.jsxs)(w.Fragment,{children:[(0,C.jsx)(j.IconButtonToggle,{marksButtonStatus:r,className:t,onClick:o,id:s,icon:"eye",pressed:i,ariaLabel:e}),this.props.shouldUpsellHighlighting&&(0,C.jsx)("div",{className:"yst-root",children:(0,C.jsx)(ve.Badge,{className:"yst-absolute yst-px-[3px] yst-py-[3px] yst--end-[6.5px] yst--top-[6.5px]",size:"small",variant:"upsell",children:(0,C.jsx)(je,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",role:"img","aria-hidden":!0,focusable:!1})})})]})}deactivateMarker(){this.props.setActiveMarker(null),this.props.setMarkerPauseStatus(!1),this.removeMarkers()}activateMarker(e,s){this.props.setActiveMarker(e),s()}handleMarkButtonClick(e,s){const t=this.props.keywordKey.length>0?`${this.props.keywordKey}:${e}`:e;this.props.activeAIFixesButton&&this.props.setActiveAIFixesButton(null),t===this.props.activeMarker?this.deactivateMarker():this.activateMarker(t,s)}handleResultsChange(e,s,t){const r=this.props.keywordKey.length>0?`${this.props.keywordKey}:${e}`:e;r===this.props.activeMarker&&(t?(0,l.isUndefined)(s)||this.activateMarker(r,s):this.deactivateMarker())}focusOnKeyphraseField(e){const s=this.props.keywordKey,t=""===s?"focus-keyword-input-"+e:"yoast-keyword-input-"+s+"-"+e,r=document.getElementById(t);r.focus(),r.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}focusOnGooglePreviewField(e,s){const t=document.getElementById("yoast-google-preview-"+e+"-"+s);t.focus(),t.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}handleEditButtonClick(e,s){var t;null==s||null===(t=s.currentTarget)||void 0===t||t.blur();const r=this.props.location;"keyphrase"!==e?(["description","title","slug"].includes(e)&&this.handleGooglePreviewFocus(r,e),(0,p.doAction)("yoast.focus.input",e)):this.focusOnKeyphraseField(r)}handleGooglePreviewFocus(e,s){if("sidebar"===e)document.getElementById("yoast-search-appearance-modal-open-button").click(),setTimeout((()=>this.focusOnGooglePreviewField(s,"modal")),500);else{const t=document.getElementById("yoast-snippet-editor-metabox");t&&"false"===t.getAttribute("aria-expanded")?(t.click(),setTimeout((()=>this.focusOnGooglePreviewField(s,e)),100)):this.focusOnGooglePreviewField(s,e)}}removeMarkers(){window.YoastSEO.analysis.applyMarks(new u.Paper("",{}),[])}renderHighlightingUpsell(e,s){const t=(0,d.__)("Highlight areas of improvement in your text, no more searching for a needle in a haystack, straight to optimizing! Now also in Elementor!","wordpress-seo");return(0,C.jsx)(qe,{isOpen:e,closeModal:s,id:"yoast-premium-seo-analysis-highlighting-modal",upsellLink:this.props.highlightingUpsellLink,description:t})}render(){const{mappedResults:e}=this.state,{errorsResults:s,improvementsResults:t,goodResults:r,considerationsResults:o,problemsResults:i}=e,{upsellResults:a,resultCategoryLabels:n}=this.props,l={errors:(0,d.__)("Errors","wordpress-seo"),problems:(0,d.__)("Problems","wordpress-seo"),improvements:(0,d.__)("Improvements","wordpress-seo"),considerations:(0,d.__)("Considerations","wordpress-seo"),goodResults:(0,d.__)("Good results","wordpress-seo")},c=Object.assign(l,n);let u=this.props.marksButtonStatus;return"enabled"===u&&this.props.shortcodesForParsing.length>0&&(u="disabled"),(0,C.jsx)(w.Fragment,{children:(0,C.jsx)(be.ContentAnalysis,{errorsResults:s,problemsResults:i,upsellResults:a,improvementsResults:t,considerationsResults:o,goodResults:r,activeMarker:this.props.activeMarker,onMarkButtonClick:this.handleMarkButtonClick,onEditButtonClick:this.handleEditButtonClick,marksButtonClassName:this.props.marksButtonClassName,editButtonClassName:this.props.editButtonClassName,marksButtonStatus:u,headingLevel:3,keywordKey:this.props.keywordKey,isPremium:this.props.isPremium,resultCategoryLabels:c,onResultChange:this.handleResultsChange,shouldUpsellHighlighting:this.props.shouldUpsellHighlighting,renderAIOptimizeButton:this.props.renderAIOptimizeButton,renderHighlightingUpsell:this.renderHighlightingUpsell,markButtonFactory:this.createMarkButton})})}}Oe.propTypes={results:_().array,upsellResults:_().array,marksButtonClassName:_().string,editButtonClassName:_().string,marksButtonStatus:_().oneOf(["enabled","disabled","hidden"]),setActiveMarker:_().func.isRequired,setMarkerPauseStatus:_().func.isRequired,setActiveAIFixesButton:_().func.isRequired,activeMarker:_().string,activeAIFixesButton:_().string,keywordKey:_().string,location:_().string,isPremium:_().bool,resultCategoryLabels:_().shape({errors:_().string,problems:_().string,improvements:_().string,considerations:_().string,goodResults:_().string}),shortcodesForParsing:_().array,shouldUpsellHighlighting:_().bool,highlightingUpsellLink:_().string,renderAIOptimizeButton:_().func},Oe.defaultProps={results:null,upsellResults:[],marksButtonStatus:"enabled",marksButtonClassName:"",editButtonClassName:"",activeMarker:null,activeAIFixesButton:null,keywordKey:"",location:"",isPremium:!1,resultCategoryLabels:{},shortcodesForParsing:[],shouldUpsellHighlighting:!1,highlightingUpsellLink:"",renderAIOptimizeButton:()=>{}};const $e=Oe,Be=(0,pe.compose)([(0,he.withSelect)((e=>{const{getActiveMarker:s,getIsPremium:t,getShortcodesForParsing:r,getActiveAIFixesButton:o}=e("yoast-seo/editor");return{activeMarker:s(),isPremium:t(),shortcodesForParsing:r(),activeAIFixesButton:o()}})),(0,he.withDispatch)((e=>{const{setActiveMarker:s,setMarkerPauseStatus:t,setActiveAIFixesButton:r}=e("yoast-seo/editor");return{setActiveMarker:s,setMarkerPauseStatus:t,setActiveAIFixesButton:r}}))])($e),Ue=window.yoast.relatedKeyphraseSuggestions;function He({requestLimitReached:e,isSuccess:s,response:t,requestHasData:r,relatedKeyphrases:o}){return e?"requestLimitReached":!s&&function(e){return"invalid_json"===(null==e?void 0:e.code)||"fetch_error"===(null==e?void 0:e.code)||!(0,l.isEmpty)(e)&&"error"in e}(t)?"requestFailed":r?function(e){return e&&e.length>=4}(o)?"maxRelatedKeyphrases":null:"requestEmpty"}function De({keyphrase:e="",relatedKeyphrases:s=[],renderAction:t=null,requestLimitReached:r=!1,countryCode:o,setCountry:i,newRequest:a,response:n={},isRtl:l=!1,userLocale:c="en_US",isPending:d=!1,isSuccess:u=!1,requestHasData:p=!0,isPremium:h=!1,semrushUpsellLink:m="",premiumUpsellLink:g=""}){var y,x;const[f,b]=(0,w.useState)(o),v=(0,w.useCallback)((async()=>{a(o,e),b(o)}),[o,e,a]);return(0,C.jsxs)(ve.Root,{context:{isRtl:l},children:[!r&&!h&&(0,C.jsx)(Ue.PremiumUpsell,{url:g,className:"yst-mb-4"}),!r&&(0,C.jsx)(Ue.CountrySelector,{countryCode:o,activeCountryCode:f,onChange:i,onClick:v,className:"yst-mb-4",userLocale:c.split("_")[0]}),!d&&(0,C.jsx)(Ue.UserMessage,{variant:He({requestLimitReached:r,isSuccess:u,response:n,requestHasData:p,relatedKeyphrases:s}),upsellLink:m}),(0,C.jsx)(Ue.KeyphrasesTable,{relatedKeyphrases:s,columnNames:null==n||null===(y=n.results)||void 0===y?void 0:y.columnNames,data:null==n||null===(x=n.results)||void 0===x?void 0:x.rows,isPending:d,renderButton:t,className:"yst-mt-4"})]})}De.propTypes={keyphrase:_().string,relatedKeyphrases:_().array,renderAction:_().func,requestLimitReached:_().bool,countryCode:_().string.isRequired,setCountry:_().func.isRequired,newRequest:_().func.isRequired,response:_().object,isRtl:_().bool,userLocale:_().string,isPending:_().bool,isSuccess:_().bool,requestHasData:_().bool,isPremium:_().bool,semrushUpsellLink:_().string,premiumUpsellLink:_().string};const We=(0,pe.compose)([(0,he.withSelect)((e=>{const{getFocusKeyphrase:s,getSEMrushSelectedCountry:t,getSEMrushRequestLimitReached:r,getSEMrushRequestResponse:o,getSEMrushRequestIsSuccess:i,getSEMrushIsRequestPending:a,getSEMrushRequestHasData:n,getPreference:l,getIsPremium:c,selectLinkParams:d}=e("yoast-seo/editor");return{keyphrase:s(),countryCode:t(),requestLimitReached:r(),response:o(),isSuccess:i(),isPending:a(),requestHasData:n(),isRtl:l("isRtl",!1),userLocale:l("userLocale","en_US"),isPremium:c(),semrushUpsellLink:(0,Se.addQueryArgs)("https://yoa.st/semrush-prices",d()),premiumUpsellLink:(0,Se.addQueryArgs)("https://yoa.st/413",d())}})),(0,he.withDispatch)((e=>{const{setSEMrushChangeCountry:s,setSEMrushNewRequest:t}=e("yoast-seo/editor");return{setCountry:e=>{s(e)},newRequest:(e,s)=>{t(e,s)}}}))])(De);function ze(e,s,t,r){return new Promise(((o,i)=>{jQuery.ajax({type:e,url:s,beforeSend:t?e=>{e.setRequestHeader("X-WP-Nonce",t)}:null,data:r,dataType:"json",success:o,error:i})}))}const Ke=window.wp.sanitize,Ge="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE",Ve="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLES_BATCH";function Ye(e,s,t="",r=!1){const o="string"==typeof s?(0,S.decodeHTML)(s):s;return{type:Ge,name:e,value:o,label:t,hidden:r}}function Ze(e){return e.charAt(0).toUpperCase()+e.slice(1)}const{stripHTMLTags:Qe}=S.strings,Je=["slug","content","contentImage","snippetPreviewImageURL"];function Xe(e,s){(0,l.forEach)(e,((e,t)=>{Je.includes(t)||s.dispatch(Ye(t,e))}))}function es(e){if(!["ct_","cf_","pt_"].includes(e.substring(0,3)))return e.replace(/_/g," ");const s=e.slice(0,3);switch(-1!==(e=e.slice(3)).indexOf("desc_")&&(e=e.slice(5)+" description"),s){case"ct_":e+=" (custom taxonomy)";break;case"cf_":e+=" (custom field)";break;case"pt_":e="Post type ("+(e=e.replace("single","singular"))+")"}return e}function ss(e){return Ze(e=es(e))}function ts(e,s){return e.push({name:s.name,label:s.label||ss(s.name),value:s.value}),e}function rs(e,s="_"){return e.replace(/\s/g,s)}function os(e){return{name:"cf_"+rs(e),label:Ze(e+" (custom field)")}}function is(e){const s=rs(e);return{name:"ct_"+s,label:Ze(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+s,descriptionLabel:Ze(e+" description (custom taxonomy)")}}function as(e,s){if(!e.custom_taxonomies)return e;const t={};return(0,l.forEach)(e.custom_taxonomies,((e,s)=>{const{name:r,label:o,descriptionName:i,descriptionLabel:a}=is(s),n="string"==typeof e.name?(0,S.decodeHTML)(e.name):e.name,l="string"==typeof e.description?(0,S.decodeHTML)(e.description):e.description;t[r]={value:n,label:o},t[i]={value:l,label:a}})),s.dispatch(function(e){return{type:Ve,updatedVariables:e}}(t)),(0,l.omit)({...e},"custom_taxonomies")}function ns(e,s){return e.custom_fields?((0,l.forEach)(e.custom_fields,((e,t)=>{const{name:r,label:o}=os(t);s.dispatch(Ye(r,e,o))})),(0,l.omit)({...e},"custom_fields")):e}function ls(e,s=156){return(e=(e=(0,Ke.stripTags)(e)).trim()).length<=s||(e=e.substring(0,s),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}const cs=function(e){const s=(0,l.get)(window,["YoastSEO","app","pluggable"],!1);if(!s||!(0,l.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const s=(0,l.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],l.identity);return{url:e.url,title:Qe(s(e.title)),description:Qe(s(e.description)),filteredSEOTitle:e.filteredSEOTitle?Qe(s(e.filteredSEOTitle)):""}}(e);const t=s._applyModifications.bind(s);return{url:e.url,title:Qe(t("data_page_title",e.title)),description:Qe(t("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?Qe(t("data_page_title",e.filteredSEOTitle)):""}};var ds="score-text",us="image yoast-logo svg",ps=jQuery;function hs(e,s,t=null){var r,o,i,a,n;if(null!==t)return(0,l.get)(t,s,"");const c=(0,he.select)("yoast-seo/editor").getIsPremium(),u={na:(0,d.__)("Not available","wordpress-seo"),bad:(0,d.__)("Needs improvement","wordpress-seo"),ok:(0,d.__)("OK","wordpress-seo"),good:(0,d.__)("Good","wordpress-seo")},p={keyword:{label:c?(0,d.__)("Premium SEO analysis:","wordpress-seo"):(0,d.__)("SEO analysis:","wordpress-seo"),anchor:"yoast-seo-analysis-collapsible-metabox",status:u},content:{label:(0,d.__)("Readability analysis:","wordpress-seo"),anchor:"yoast-readability-analysis-collapsible-metabox",status:u},"inclusive-language":{label:(0,d.__)("Inclusive language:","wordpress-seo"),anchor:"yoast-inclusive-language-analysis-collapsible-metabox",status:{...u,ok:(0,d.__)("Potentially non-inclusive","wordpress-seo")}}};return null!=p&&null!==(r=p[e])&&void 0!==r&&null!==(o=r.status)&&void 0!==o&&o[s]?`<a href="#${null===(i=p[e])||void 0===i?void 0:i.anchor}">${null===(a=p[e])||void 0===a?void 0:a.label}</a> <strong>${null===(n=p[e])||void 0===n?void 0:n.status[s]}</strong>`:""}ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));_().string.isRequired;const ms=ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));_().string.isRequired,_().string.isRequired,_().shape({src:_().string.isRequired,width:_().string,height:_().string}).isRequired,_().shape({value:_().bool.isRequired,status:_().string.isRequired,set:_().func.isRequired}).isRequired,_().string,_().string,_().string;const gs=({handleRefreshClick:e,supportLink:s})=>(0,C.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,C.jsx)(ve.Button,{onClick:e,children:(0,d.__)("Refresh this page","wordpress-seo")}),(0,C.jsx)(ve.Button,{variant:"secondary",as:"a",href:s,target:"_blank",rel:"noopener",children:(0,d.__)("Contact support","wordpress-seo")})]});gs.propTypes={handleRefreshClick:_().func.isRequired,supportLink:_().string.isRequired};const ys=({handleRefreshClick:e,supportLink:s})=>(0,C.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,C.jsx)(ve.Button,{className:"yst-order-last",onClick:e,children:(0,d.__)("Refresh this page","wordpress-seo")}),(0,C.jsx)(ve.Button,{variant:"secondary",as:"a",href:s,target:"_blank",rel:"noopener",children:(0,d.__)("Contact support","wordpress-seo")})]});ys.propTypes={handleRefreshClick:_().func.isRequired,supportLink:_().string.isRequired};const xs=({error:e,children:s=null})=>(0,C.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,C.jsx)(ve.Title,{children:(0,d.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,C.jsx)("p",{children:(0,d.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,C.jsx)(ve.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,d.__)("Undefined error message.","wordpress-seo")}),(0,C.jsx)("p",{children:(0,d.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),s]});xs.propTypes={error:_().object.isRequired,children:_().node},xs.VerticalButtons=ys,xs.HorizontalButtons=gs;const fs={variant:{lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}},ws=({id:e,children:s,title:t,description:r=null,variant:o="2xl"})=>(0,C.jsxs)("section",{id:e,className:fs.variant[o].grid,children:[(0,C.jsx)("div",{className:fs.variant[o].col1,children:(0,C.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,C.jsx)(ve.Title,{as:"h2",size:"4",children:t}),r&&(0,C.jsx)("p",{className:"yst-mt-2",children:r})]})}),(0,C.jsxs)("fieldset",{className:`yst-min-w-0 yst-mt-8 ${fs.variant[o].col2}`,children:[(0,C.jsx)("legend",{className:"yst-sr-only",children:t}),(0,C.jsx)("div",{className:"yst-space-y-8",children:s})]})]});ws.propTypes={id:_().string,children:_().node.isRequired,title:_().node.isRequired,description:_().node,variant:_().oneOf(Object.keys(fs.variant))};const bs=window.ReactDOM;var vs,ks,_s;(ks=vs||(vs={})).Pop="POP",ks.Push="PUSH",ks.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(_s||(_s={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const js=["post","put","patch","delete"],Ss=(new Set(js),["get",...js]);new Set(Ss),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),ke.Component,ke.startTransition,new Promise((()=>{})),ke.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var Rs,Cs,Is,Es;new Map,ke.startTransition,bs.flushSync,ke.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(Es=Rs||(Rs={})).UseScrollRestoration="useScrollRestoration",Es.UseSubmit="useSubmit",Es.UseSubmitFetcher="useSubmitFetcher",Es.UseFetcher="useFetcher",Es.useViewTransitionState="useViewTransitionState",(Is=Cs||(Cs={})).UseFetcher="useFetcher",Is.UseFetchers="useFetchers",Is.UseScrollRestoration="useScrollRestoration",_().string.isRequired,_().string;const Ls=({href:e,children:s=null,...t})=>(0,C.jsxs)(ve.Link,{target:"_blank",rel:"noopener noreferrer",...t,href:e,children:[s,(0,C.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,d.__)("(Opens in a new browser tab)","wordpress-seo")})]});Ls.propTypes={href:_().string.isRequired,children:_().node};ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),(0,d.__)("AI tools included","wordpress-seo"),(0,d.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ -(0,d.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,d.__)("24/7 support","wordpress-seo"),(0,d.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,d.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,d.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,d.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,d.__)("Internal links and redirect management, easy","wordpress-seo"),(0,d.__)("Access to friendly help when you need it, day or night","wordpress-seo");ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}));_().string.isRequired,_().object.isRequired,_().func.isRequired,_().string.isRequired,_().object,_().func.isRequired,_().bool.isRequired,_().string.isRequired,_().object.isRequired,_().string.isRequired,_().func.isRequired,_().bool.isRequired;const Ns=ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),Ms=({isOpen:e,onClose:s=l.noop,onDiscard:t=l.noop,title:r,description:o,dismissLabel:i,discardLabel:a})=>{const n=(0,ve.useSvgAria)();return(0,C.jsx)(ve.Modal,{isOpen:e,onClose:s,children:(0,C.jsxs)(ve.Modal.Panel,{closeButtonScreenReaderText:(0,d.__)("Close","wordpress-seo"),children:[(0,C.jsxs)("div",{className:"sm:yst-flex sm:yst-items-start",children:[(0,C.jsx)("div",{className:"yst-mx-auto yst-flex-shrink-0 yst-flex yst-items-center yst-justify-center yst-h-12 yst-w-12 yst-rounded-full yst-bg-red-100 sm:yst-mx-0 sm:yst-h-10 sm:yst-w-10",children:(0,C.jsx)(Ns,{className:"yst-h-6 yst-w-6 yst-text-red-600",...n})}),(0,C.jsxs)("div",{className:"yst-mt-3 yst-text-center sm:yst-mt-0 sm:yst-ms-4 sm:yst-text-start",children:[(0,C.jsx)(ve.Modal.Title,{className:"yst-text-lg yst-leading-6 yst-font-medium yst-text-slate-900 yst-mb-3",children:r}),(0,C.jsx)(ve.Modal.Description,{className:"yst-text-sm yst-text-slate-500",children:o})]})]}),(0,C.jsxs)("div",{className:"yst-flex yst-flex-col sm:yst-flex-row-reverse yst-gap-3 yst-mt-6",children:[(0,C.jsx)(ve.Button,{type:"button",variant:"error",onClick:t,className:"yst-block",children:a}),(0,C.jsx)(ve.Button,{type:"button",variant:"secondary",onClick:s,className:"yst-block",children:i})]})]})})};Ms.propTypes={isOpen:_().bool.isRequired,onClose:_().func,onDiscard:_().func,title:_().string.isRequired,description:_().string.isRequired,dismissLabel:_().string.isRequired,discardLabel:_().string.isRequired};const Ts=window.yoast.reactHelmet,Ps="error",As="loading",Fs="showPlay",qs="askPermission",Os="isPlaying",$s=({videoId:e,thumbnail:s,wistiaEmbedPermission:t,className:r=""})=>{const[o,i]=(0,w.useState)(t.value?Os:Fs),a=(0,w.useCallback)((()=>i(Os)),[i]),n=(0,w.useCallback)((()=>{t.value?a():i(qs)}),[t.value,a,i]),l=(0,w.useCallback)((()=>i(Fs)),[i]),c=(0,w.useCallback)((()=>{t.set(!0),a()}),[t.set,a]);return(0,C.jsxs)(C.Fragment,{children:[t.value&&(0,C.jsx)(Ts.Helmet,{children:(0,C.jsx)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})}),(0,C.jsxs)("div",{className:Ae()("yst-relative yst-w-full yst-h-0 yst-pt-[47.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white",r),children:[o===Fs&&(0,C.jsx)("button",{type:"button",className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:n,children:(0,C.jsx)("img",{className:"yst-w-full yst-h-auto yst-object-contain",alt:"",loading:"lazy",decoding:"async",...s})}),o===qs&&(0,C.jsxs)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white",children:[(0,C.jsxs)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center",children:[t.status===As&&(0,C.jsx)(ve.Spinner,{}),t.status!==As&&(0,d.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */ +(0,d.__)("%1$sSynonyms:%2$s Include synonyms of your keyphrase for a more natural flow and smarter suggestions","wordpress-seo"),"<span>","</span>"),{span:(0,C.jsx)("span",{className:"yst-font-medium yst-text-slate-800"})})];return(0,C.jsx)(Fe,{isOpen:e,onClose:s,id:t,modalTitle:(0,d.__)("Get deeper SEO insights with Premium","wordpress-seo"),title:(0,d.__)("Find new ways to grow your rankings.","wordpress-seo"),description:(0,d.__)("Premium gives you advanced content checks that reveal new ranking opportunities and help you reach more readers.","wordpress-seo"),upsellLink:i,benefits:n,note:(0,d.__)("Upgrade to optimize with precision","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"})};qe.propTypes={isOpen:_().bool.isRequired,closeModal:_().func.isRequired,id:_().string.isRequired,upsellLink:_().string.isRequired};class Oe extends w.Component{constructor(e){super(e);const s=this.props.results;this.state={mappedResults:{}},null!==s&&(this.state={mappedResults:K(s,this.props.keywordKey)}),this.handleMarkButtonClick=this.handleMarkButtonClick.bind(this),this.handleEditButtonClick=this.handleEditButtonClick.bind(this),this.handleResultsChange=this.handleResultsChange.bind(this),this.renderHighlightingUpsell=this.renderHighlightingUpsell.bind(this),this.createMarkButton=this.createMarkButton.bind(this)}componentDidUpdate(e){null!==this.props.results&&this.props.results!==e.results&&this.setState({mappedResults:K(this.props.results,this.props.keywordKey)})}createMarkButton({ariaLabel:e,id:s,className:t,status:r,onClick:o,isPressed:i}){return(0,C.jsxs)(w.Fragment,{children:[(0,C.jsx)(S.IconButtonToggle,{marksButtonStatus:r,className:t,onClick:o,id:s,icon:"eye",pressed:i,ariaLabel:e}),this.props.shouldUpsellHighlighting&&(0,C.jsx)("div",{className:"yst-root",children:(0,C.jsx)(ve.Badge,{className:"yst-absolute yst-px-[3px] yst-py-[3px] yst--end-[6.5px] yst--top-[6.5px]",size:"small",variant:"upsell",children:(0,C.jsx)(Se,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",role:"img","aria-hidden":!0,focusable:!1})})})]})}deactivateMarker(){this.props.setActiveMarker(null),this.props.setMarkerPauseStatus(!1),this.removeMarkers()}activateMarker(e,s){this.props.setActiveMarker(e),s()}handleMarkButtonClick(e,s){const t=this.props.keywordKey.length>0?`${this.props.keywordKey}:${e}`:e;this.props.activeAIFixesButton&&this.props.setActiveAIFixesButton(null),t===this.props.activeMarker?this.deactivateMarker():this.activateMarker(t,s)}handleResultsChange(e,s,t){const r=this.props.keywordKey.length>0?`${this.props.keywordKey}:${e}`:e;r===this.props.activeMarker&&(t?(0,l.isUndefined)(s)||this.activateMarker(r,s):this.deactivateMarker())}focusOnKeyphraseField(e){const s=this.props.keywordKey,t=""===s?"focus-keyword-input-"+e:"yoast-keyword-input-"+s+"-"+e,r=document.getElementById(t);r.focus(),r.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}focusOnGooglePreviewField(e,s){const t=document.getElementById("yoast-google-preview-"+e+"-"+s);t.focus(),t.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}handleEditButtonClick(e,s){var t;null==s||null===(t=s.currentTarget)||void 0===t||t.blur();const r=this.props.location;"keyphrase"!==e?(["description","title","slug"].includes(e)&&this.handleGooglePreviewFocus(r,e),(0,p.doAction)("yoast.focus.input",e)):this.focusOnKeyphraseField(r)}handleGooglePreviewFocus(e,s){if("sidebar"===e)document.getElementById("yoast-search-appearance-modal-open-button").click(),setTimeout((()=>this.focusOnGooglePreviewField(s,"modal")),500);else{const t=document.getElementById("yoast-snippet-editor-metabox");t&&"false"===t.getAttribute("aria-expanded")?(t.click(),setTimeout((()=>this.focusOnGooglePreviewField(s,e)),100)):this.focusOnGooglePreviewField(s,e)}}removeMarkers(){window.YoastSEO.analysis.applyMarks(new u.Paper("",{}),[])}renderHighlightingUpsell(e,s){const t=(0,d.__)("Highlight areas of improvement in your text, no more searching for a needle in a haystack, straight to optimizing! Now also in Elementor!","wordpress-seo");return(0,C.jsx)(qe,{isOpen:e,closeModal:s,id:"yoast-premium-seo-analysis-highlighting-modal",upsellLink:this.props.highlightingUpsellLink,description:t})}render(){const{mappedResults:e}=this.state,{errorsResults:s,improvementsResults:t,goodResults:r,considerationsResults:o,problemsResults:i}=e,{upsellResults:a,resultCategoryLabels:n}=this.props,l={errors:(0,d.__)("Errors","wordpress-seo"),problems:(0,d.__)("Problems","wordpress-seo"),improvements:(0,d.__)("Improvements","wordpress-seo"),considerations:(0,d.__)("Considerations","wordpress-seo"),goodResults:(0,d.__)("Good results","wordpress-seo")},c=Object.assign(l,n);let u=this.props.marksButtonStatus;return"enabled"===u&&this.props.shortcodesForParsing.length>0&&(u="disabled"),(0,C.jsx)(w.Fragment,{children:(0,C.jsx)(be.ContentAnalysis,{errorsResults:s,problemsResults:i,upsellResults:a,improvementsResults:t,considerationsResults:o,goodResults:r,activeMarker:this.props.activeMarker,onMarkButtonClick:this.handleMarkButtonClick,onEditButtonClick:this.handleEditButtonClick,marksButtonClassName:this.props.marksButtonClassName,editButtonClassName:this.props.editButtonClassName,marksButtonStatus:u,headingLevel:3,keywordKey:this.props.keywordKey,isPremium:this.props.isPremium,resultCategoryLabels:c,onResultChange:this.handleResultsChange,shouldUpsellHighlighting:this.props.shouldUpsellHighlighting,renderAIOptimizeButton:this.props.renderAIOptimizeButton,renderHighlightingUpsell:this.renderHighlightingUpsell,markButtonFactory:this.createMarkButton})})}}Oe.propTypes={results:_().array,upsellResults:_().array,marksButtonClassName:_().string,editButtonClassName:_().string,marksButtonStatus:_().oneOf(["enabled","disabled","hidden"]),setActiveMarker:_().func.isRequired,setMarkerPauseStatus:_().func.isRequired,setActiveAIFixesButton:_().func.isRequired,activeMarker:_().string,activeAIFixesButton:_().string,keywordKey:_().string,location:_().string,isPremium:_().bool,resultCategoryLabels:_().shape({errors:_().string,problems:_().string,improvements:_().string,considerations:_().string,goodResults:_().string}),shortcodesForParsing:_().array,shouldUpsellHighlighting:_().bool,highlightingUpsellLink:_().string,renderAIOptimizeButton:_().func},Oe.defaultProps={results:null,upsellResults:[],marksButtonStatus:"enabled",marksButtonClassName:"",editButtonClassName:"",activeMarker:null,activeAIFixesButton:null,keywordKey:"",location:"",isPremium:!1,resultCategoryLabels:{},shortcodesForParsing:[],shouldUpsellHighlighting:!1,highlightingUpsellLink:"",renderAIOptimizeButton:()=>{}};const $e=Oe,Be=(0,pe.compose)([(0,he.withSelect)((e=>{const{getActiveMarker:s,getIsPremium:t,getShortcodesForParsing:r,getActiveAIFixesButton:o}=e("yoast-seo/editor");return{activeMarker:s(),isPremium:t(),shortcodesForParsing:r(),activeAIFixesButton:o()}})),(0,he.withDispatch)((e=>{const{setActiveMarker:s,setMarkerPauseStatus:t,setActiveAIFixesButton:r}=e("yoast-seo/editor");return{setActiveMarker:s,setMarkerPauseStatus:t,setActiveAIFixesButton:r}}))])($e),Ue=window.yoast.relatedKeyphraseSuggestions;function He({requestLimitReached:e,isSuccess:s,response:t,requestHasData:r,relatedKeyphrases:o}){return e?"requestLimitReached":!s&&function(e){return"invalid_json"===(null==e?void 0:e.code)||"fetch_error"===(null==e?void 0:e.code)||!(0,l.isEmpty)(e)&&"error"in e}(t)?"requestFailed":r?function(e){return e&&e.length>=4}(o)?"maxRelatedKeyphrases":null:"requestEmpty"}function De({keyphrase:e="",relatedKeyphrases:s=[],renderAction:t=null,requestLimitReached:r=!1,countryCode:o,setCountry:i,newRequest:a,response:n={},isRtl:l=!1,userLocale:c="en_US",isPending:d=!1,isSuccess:u=!1,requestHasData:p=!0,isPremium:h=!1,semrushUpsellLink:m="",premiumUpsellLink:g=""}){var y,x;const[f,b]=(0,w.useState)(o),v=(0,w.useCallback)((async()=>{a(o,e),b(o)}),[o,e,a]);return(0,C.jsxs)(ve.Root,{context:{isRtl:l},children:[!r&&!h&&(0,C.jsx)(Ue.PremiumUpsell,{url:g,className:"yst-mb-4"}),!r&&(0,C.jsx)(Ue.CountrySelector,{countryCode:o,activeCountryCode:f,onChange:i,onClick:v,className:"yst-mb-4",userLocale:c.split("_")[0]}),!d&&(0,C.jsx)(Ue.UserMessage,{variant:He({requestLimitReached:r,isSuccess:u,response:n,requestHasData:p,relatedKeyphrases:s}),upsellLink:m}),(0,C.jsx)(Ue.KeyphrasesTable,{relatedKeyphrases:s,columnNames:null==n||null===(y=n.results)||void 0===y?void 0:y.columnNames,data:null==n||null===(x=n.results)||void 0===x?void 0:x.rows,isPending:d,renderButton:t,className:"yst-mt-4"})]})}De.propTypes={keyphrase:_().string,relatedKeyphrases:_().array,renderAction:_().func,requestLimitReached:_().bool,countryCode:_().string.isRequired,setCountry:_().func.isRequired,newRequest:_().func.isRequired,response:_().object,isRtl:_().bool,userLocale:_().string,isPending:_().bool,isSuccess:_().bool,requestHasData:_().bool,isPremium:_().bool,semrushUpsellLink:_().string,premiumUpsellLink:_().string};const We=(0,pe.compose)([(0,he.withSelect)((e=>{const{getFocusKeyphrase:s,getSEMrushSelectedCountry:t,getSEMrushRequestLimitReached:r,getSEMrushRequestResponse:o,getSEMrushRequestIsSuccess:i,getSEMrushIsRequestPending:a,getSEMrushRequestHasData:n,getPreference:l,getIsPremium:c,selectLinkParams:d}=e("yoast-seo/editor");return{keyphrase:s(),countryCode:t(),requestLimitReached:r(),response:o(),isSuccess:i(),isPending:a(),requestHasData:n(),isRtl:l("isRtl",!1),userLocale:l("userLocale","en_US"),isPremium:c(),semrushUpsellLink:(0,je.addQueryArgs)("https://yoa.st/semrush-prices",d()),premiumUpsellLink:(0,je.addQueryArgs)("https://yoa.st/413",d())}})),(0,he.withDispatch)((e=>{const{setSEMrushChangeCountry:s,setSEMrushNewRequest:t}=e("yoast-seo/editor");return{setCountry:e=>{s(e)},newRequest:(e,s)=>{t(e,s)}}}))])(De);function ze(e,s,t,r){return new Promise(((o,i)=>{jQuery.ajax({type:e,url:s,beforeSend:t?e=>{e.setRequestHeader("X-WP-Nonce",t)}:null,data:r,dataType:"json",success:o,error:i})}))}const Ke=window.wp.sanitize,Ge="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE",Ve="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLES_BATCH";function Ye(e,s,t="",r=!1){const o="string"==typeof s?(0,j.decodeHTML)(s):s;return{type:Ge,name:e,value:o,label:t,hidden:r}}function Ze(e){return e.charAt(0).toUpperCase()+e.slice(1)}const{stripHTMLTags:Qe}=j.strings,Je=["slug","content","contentImage","snippetPreviewImageURL"];function Xe(e,s){(0,l.forEach)(e,((e,t)=>{Je.includes(t)||s.dispatch(Ye(t,e))}))}function es(e){if(!["ct_","cf_","pt_"].includes(e.substring(0,3)))return e.replace(/_/g," ");const s=e.slice(0,3);switch(-1!==(e=e.slice(3)).indexOf("desc_")&&(e=e.slice(5)+" description"),s){case"ct_":e+=" (custom taxonomy)";break;case"cf_":e+=" (custom field)";break;case"pt_":e="Post type ("+(e=e.replace("single","singular"))+")"}return e}function ss(e){return Ze(e=es(e))}function ts(e,s){return e.push({name:s.name,label:s.label||ss(s.name),value:s.value}),e}function rs(e,s="_"){return e.replace(/\s/g,s)}function os(e){return{name:"cf_"+rs(e),label:Ze(e+" (custom field)")}}function is(e){const s=rs(e);return{name:"ct_"+s,label:Ze(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+s,descriptionLabel:Ze(e+" description (custom taxonomy)")}}function as(e,s){if(!e.custom_taxonomies)return e;const t={};return(0,l.forEach)(e.custom_taxonomies,((e,s)=>{const{name:r,label:o,descriptionName:i,descriptionLabel:a}=is(s),n="string"==typeof e.name?(0,j.decodeHTML)(e.name):e.name,l="string"==typeof e.description?(0,j.decodeHTML)(e.description):e.description;t[r]={value:n,label:o},t[i]={value:l,label:a}})),s.dispatch(function(e){return{type:Ve,updatedVariables:e}}(t)),(0,l.omit)({...e},"custom_taxonomies")}function ns(e,s){return e.custom_fields?((0,l.forEach)(e.custom_fields,((e,t)=>{const{name:r,label:o}=os(t);s.dispatch(Ye(r,e,o))})),(0,l.omit)({...e},"custom_fields")):e}function ls(e,s=156){return(e=(e=(0,Ke.stripTags)(e)).trim()).length<=s||(e=e.substring(0,s),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}const cs=function(e){const s=(0,l.get)(window,["YoastSEO","app","pluggable"],!1);if(!s||!(0,l.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const s=(0,l.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],l.identity);return{url:e.url,title:Qe(s(e.title)),description:Qe(s(e.description)),filteredSEOTitle:e.filteredSEOTitle?Qe(s(e.filteredSEOTitle)):""}}(e);const t=s._applyModifications.bind(s);return{url:e.url,title:Qe(t("data_page_title",e.title)),description:Qe(t("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?Qe(t("data_page_title",e.filteredSEOTitle)):""}};var ds="score-text",us="image yoast-logo svg",ps=jQuery;function hs(e,s,t=null){var r,o,i,a,n;if(null!==t)return(0,l.get)(t,s,"");const c=(0,he.select)("yoast-seo/editor").getIsPremium(),u={na:(0,d.__)("Not available","wordpress-seo"),bad:(0,d.__)("Needs improvement","wordpress-seo"),ok:(0,d.__)("OK","wordpress-seo"),good:(0,d.__)("Good","wordpress-seo")},p={keyword:{label:c?(0,d.__)("Premium SEO analysis:","wordpress-seo"):(0,d.__)("SEO analysis:","wordpress-seo"),anchor:"yoast-seo-analysis-collapsible-metabox",status:u},content:{label:(0,d.__)("Readability analysis:","wordpress-seo"),anchor:"yoast-readability-analysis-collapsible-metabox",status:u},"inclusive-language":{label:(0,d.__)("Inclusive language:","wordpress-seo"),anchor:"yoast-inclusive-language-analysis-collapsible-metabox",status:{...u,ok:(0,d.__)("Potentially non-inclusive","wordpress-seo")}}};return null!=p&&null!==(r=p[e])&&void 0!==r&&null!==(o=r.status)&&void 0!==o&&o[s]?`<a href="#${null===(i=p[e])||void 0===i?void 0:i.anchor}">${null===(a=p[e])||void 0===a?void 0:a.label}</a> <strong>${null===(n=p[e])||void 0===n?void 0:n.status[s]}</strong>`:""}ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));_().string.isRequired;const ms=ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));_().string.isRequired,_().string.isRequired,_().shape({src:_().string.isRequired,width:_().string,height:_().string}).isRequired,_().shape({value:_().bool.isRequired,status:_().string.isRequired,set:_().func.isRequired}).isRequired,_().string,_().string,_().string;const gs=({handleRefreshClick:e,supportLink:s})=>(0,C.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,C.jsx)(ve.Button,{onClick:e,children:(0,d.__)("Refresh this page","wordpress-seo")}),(0,C.jsx)(ve.Button,{variant:"secondary",as:"a",href:s,target:"_blank",rel:"noopener",children:(0,d.__)("Contact support","wordpress-seo")})]});gs.propTypes={handleRefreshClick:_().func.isRequired,supportLink:_().string.isRequired};const ys=({handleRefreshClick:e,supportLink:s})=>(0,C.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,C.jsx)(ve.Button,{className:"yst-order-last",onClick:e,children:(0,d.__)("Refresh this page","wordpress-seo")}),(0,C.jsx)(ve.Button,{variant:"secondary",as:"a",href:s,target:"_blank",rel:"noopener",children:(0,d.__)("Contact support","wordpress-seo")})]});ys.propTypes={handleRefreshClick:_().func.isRequired,supportLink:_().string.isRequired};const xs=({error:e,children:s=null})=>(0,C.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,C.jsx)(ve.Title,{children:(0,d.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,C.jsx)("p",{children:(0,d.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,C.jsx)(ve.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,d.__)("Undefined error message.","wordpress-seo")}),(0,C.jsx)("p",{children:(0,d.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),s]});xs.propTypes={error:_().object.isRequired,children:_().node},xs.VerticalButtons=ys,xs.HorizontalButtons=gs;const fs={variant:{lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}},ws=({id:e,children:s,title:t,description:r=null,variant:o="2xl"})=>(0,C.jsxs)("section",{id:e,className:fs.variant[o].grid,children:[(0,C.jsx)("div",{className:fs.variant[o].col1,children:(0,C.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,C.jsx)(ve.Title,{as:"h2",size:"4",children:t}),r&&(0,C.jsx)("p",{className:"yst-mt-2",children:r})]})}),(0,C.jsxs)("fieldset",{className:`yst-min-w-0 yst-mt-8 ${fs.variant[o].col2}`,children:[(0,C.jsx)("legend",{className:"yst-sr-only",children:t}),(0,C.jsx)("div",{className:"yst-space-y-8",children:s})]})]});ws.propTypes={id:_().string,children:_().node.isRequired,title:_().node.isRequired,description:_().node,variant:_().oneOf(Object.keys(fs.variant))};const bs=window.ReactDOM;var vs,ks,_s;(ks=vs||(vs={})).Pop="POP",ks.Push="PUSH",ks.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(_s||(_s={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const Ss=["post","put","patch","delete"],js=(new Set(Ss),["get",...Ss]);new Set(js),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),ke.Component,ke.startTransition,new Promise((()=>{})),ke.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var Rs,Cs,Is,Es;new Map,ke.startTransition,bs.flushSync,ke.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(Es=Rs||(Rs={})).UseScrollRestoration="useScrollRestoration",Es.UseSubmit="useSubmit",Es.UseSubmitFetcher="useSubmitFetcher",Es.UseFetcher="useFetcher",Es.useViewTransitionState="useViewTransitionState",(Is=Cs||(Cs={})).UseFetcher="useFetcher",Is.UseFetchers="useFetchers",Is.UseScrollRestoration="useScrollRestoration",_().string.isRequired,_().string;const Ls=({href:e,children:s=null,...t})=>(0,C.jsxs)(ve.Link,{target:"_blank",rel:"noopener noreferrer",...t,href:e,children:[s,(0,C.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ +(0,d.__)("(Opens in a new browser tab)","wordpress-seo")})]});Ls.propTypes={href:_().string.isRequired,children:_().node};(0,d.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,d.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,d.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,d.__)("Optimize pages for multiple keywords with guidance","wordpress-seo"),(0,d.__)("Add product details to help your listings stand out","wordpress-seo"),(0,d.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,d.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,d.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo"),(0,d.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,d.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,d.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,d.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,d.__)("Internal links and redirect management, easy","wordpress-seo"),(0,d.__)("Access to friendly help when you need it, day or night","wordpress-seo");_().string.isRequired,_().object.isRequired,_().func.isRequired,ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),_().string.isRequired,_().object,_().func.isRequired,_().bool.isRequired,_().string.isRequired,_().object.isRequired,_().string.isRequired,_().func.isRequired,_().bool.isRequired;const Ns=ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),Ms=({isOpen:e,onClose:s=l.noop,onDiscard:t=l.noop,title:r,description:o,dismissLabel:i,discardLabel:a})=>{const n=(0,ve.useSvgAria)();return(0,C.jsx)(ve.Modal,{isOpen:e,onClose:s,children:(0,C.jsxs)(ve.Modal.Panel,{closeButtonScreenReaderText:(0,d.__)("Close","wordpress-seo"),children:[(0,C.jsxs)("div",{className:"sm:yst-flex sm:yst-items-start",children:[(0,C.jsx)("div",{className:"yst-mx-auto yst-flex-shrink-0 yst-flex yst-items-center yst-justify-center yst-h-12 yst-w-12 yst-rounded-full yst-bg-red-100 sm:yst-mx-0 sm:yst-h-10 sm:yst-w-10",children:(0,C.jsx)(Ns,{className:"yst-h-6 yst-w-6 yst-text-red-600",...n})}),(0,C.jsxs)("div",{className:"yst-mt-3 yst-text-center sm:yst-mt-0 sm:yst-ms-4 sm:yst-text-start",children:[(0,C.jsx)(ve.Modal.Title,{className:"yst-text-lg yst-leading-6 yst-font-medium yst-text-slate-900 yst-mb-3",children:r}),(0,C.jsx)(ve.Modal.Description,{className:"yst-text-sm yst-text-slate-500",children:o})]})]}),(0,C.jsxs)("div",{className:"yst-flex yst-flex-col sm:yst-flex-row-reverse yst-gap-3 yst-mt-6",children:[(0,C.jsx)(ve.Button,{type:"button",variant:"error",onClick:t,className:"yst-block",children:a}),(0,C.jsx)(ve.Button,{type:"button",variant:"secondary",onClick:s,className:"yst-block",children:i})]})]})})};Ms.propTypes={isOpen:_().bool.isRequired,onClose:_().func,onDiscard:_().func,title:_().string.isRequired,description:_().string.isRequired,dismissLabel:_().string.isRequired,discardLabel:_().string.isRequired};const Ts=window.yoast.reactHelmet,Ps="error",As="loading",Fs="showPlay",qs="askPermission",Os="isPlaying",$s=({videoId:e,thumbnail:s,wistiaEmbedPermission:t,className:r=""})=>{const[o,i]=(0,w.useState)(t.value?Os:Fs),a=(0,w.useCallback)((()=>i(Os)),[i]),n=(0,w.useCallback)((()=>{t.value?a():i(qs)}),[t.value,a,i]),l=(0,w.useCallback)((()=>i(Fs)),[i]),c=(0,w.useCallback)((()=>{t.set(!0),a()}),[t.set,a]);return(0,C.jsxs)(C.Fragment,{children:[t.value&&(0,C.jsx)(Ts.Helmet,{children:(0,C.jsx)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})}),(0,C.jsxs)("div",{className:Ae()("yst-relative yst-w-full yst-h-0 yst-pt-[47.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white",r),children:[o===Fs&&(0,C.jsx)("button",{type:"button",className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:n,children:(0,C.jsx)("img",{className:"yst-w-full yst-h-auto yst-object-contain",alt:"",loading:"lazy",decoding:"async",...s})}),o===qs&&(0,C.jsxs)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white",children:[(0,C.jsxs)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center",children:[t.status===As&&(0,C.jsx)(ve.Spinner,{}),t.status!==As&&(0,d.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */ (0,d.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo"),"Yoast SEO","Wistia")]}),(0,C.jsxs)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4",children:[(0,C.jsx)(ve.Button,{type:"button",variant:"secondary",onClick:l,disabled:t.status===As,children:(0,d.__)("Deny","wordpress-seo")}),(0,C.jsx)(ve.Button,{type:"button",variant:"primary",onClick:c,disabled:t.status===As,children:(0,d.__)("Allow","wordpress-seo")})]})]}),t.value&&o===Os&&(0,C.jsxs)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-right-0",children:[null===e&&(0,C.jsx)(ve.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,C.jsx)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`})]})]})]})};var Bs,Us;function Hs(){return Hs=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Hs.apply(this,arguments)}$s.propTypes={videoId:_().string.isRequired,thumbnail:_().shape({src:_().string.isRequired,width:_().string,height:_().string}).isRequired,wistiaEmbedPermission:_().shape({value:_().bool.isRequired,status:_().string.isRequired,set:_().func.isRequired}).isRequired,hasPadding:_().bool},ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),_().bool.isRequired,_().func.isRequired,_().func,_().string;const Ds=({onGiveConsent:e,learnMoreLink:s,privacyPolicyLink:t,termsOfServiceLink:r,imageLink:o})=>{const{onClose:i,initialFocus:a}=(0,ve.useModalContext)(),[n,l]=(0,ve.useToggleState)(!1),c=(0,w.useMemo)((()=>({src:o,width:"432",height:"244"})),[o]),u=Re((0,d.sprintf)(/* translators: %1$s and %2$s are a set of anchor tags and %3$s and %4$s are a set of anchor tags. */ (0,d.__)("I approve the %1$sTerms of Service%2$s & %3$sPrivacy Policy%4$s of the Yoast AI service. This includes consenting to the collection and use of data to improve user experience.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,C.jsx)(Ls,{href:r}),a2:(0,C.jsx)(Ls,{href:t})}),[p,h]=(0,ve.useToggleState)(!1),m=(0,w.useCallback)((async()=>{h(),await e(),h()}),[e]);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center",children:(0,C.jsx)("div",{className:"yst-relative yst-w-full",children:(0,C.jsx)("img",{className:"yst-w-full yst-h-auto yst-rounded-md yst-drop-shadow-md",alt:"",loading:"lazy",decoding:"async",...c})})}),(0,C.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,C.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,C.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,d.sprintf)(/* translators: %s expands to Yoast AI. */ (0,d.__)("Grant consent for %s","wordpress-seo"),"Yoast AI")}),(0,C.jsx)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:Re((0,d.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tag; %4$s is the arrow icon. */ -(0,d.__)("Enable AI-powered SEO! Use all Yoast AI features to boost your efficiency. Just give us the green light. %1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),{a:(0,C.jsx)(Ls,{href:s,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,C.jsx)(ms,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,C.jsx)("br",{})})})]}),(0,C.jsx)("div",{className:"yst-flex yst-w-full yst-mt-6",children:(0,C.jsx)("hr",{className:"yst-w-full yst-text-gray-200"})}),(0,C.jsxs)("div",{className:"yst-flex yst-items-start yst-mt-4",children:[(0,C.jsx)("input",{type:"checkbox",id:"yst-ai-consent-checkbox",name:"yst-ai-consent-checkbox",checked:n,value:n?"true":"false",onChange:l,className:"yst-checkbox__input",ref:a}),(0,C.jsx)("label",{htmlFor:"yst-ai-consent-checkbox",className:"yst-label yst-checkbox__label yst-text-xs yst-font-normal yst-text-slate-500",children:u})]}),(0,C.jsx)("div",{className:"yst-w-full yst-flex yst-mt-4",children:(0,C.jsxs)(ve.Button,{as:"button",className:"yst-grow",size:"large",disabled:!n,onClick:m,children:[p&&(0,C.jsx)(ve.Spinner,{className:"yst-me-2"}),(0,d.__)("Grant consent","wordpress-seo")]})}),(0,C.jsx)(ve.Button,{as:"button",className:"yst-mt-4",variant:"tertiary",onClick:i,children:(0,d.__)("Close","wordpress-seo")})]})]})};Ds.propTypes={onGiveConsent:_().func.isRequired,learnMoreLink:_().string.isRequired,privacyPolicyLink:_().string.isRequired,termsOfServiceLink:_().string.isRequired,imageLink:_().string.isRequired};ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))})),window.yoast.aiFrontend;const Ws="yoast-seo/ai-generator",zs="yoast-seo/editor",Ks="google",Gs="social",Vs="twitter",Ys="title",Zs="description",Qs="post",Js="term",Xs={post:"title",term:"term_title"},et=(0,l.mapValues)(Xs,(e=>`%%${e}%%`)),st={mobile:"mobile",desktop:"desktop"},tt={idle:"idle",loading:"loading",success:"success",error:"error"},rt="success",ot="error",it="abort",at=window.wp.apiFetch;var nt=t.n(at);let lt,ct=!1;const dt=["_formal","_informal","_ao90"],ut=e=>{for(const s of dt)if(e.endsWith(s))return e.slice(0,-s.length);return e},pt=async({endpoint:e,data:s})=>{let t;const r=1e3*(0,l.get)(window,"wpseoAiGenerator.requestTimeout",30);try{lt&<.abort(),lt=new AbortController,ct=!1,t=setTimeout((()=>{ct=!0,lt.abort()}),r);const o=await nt()({path:e,method:"POST",data:s,parse:!1,signal:lt.signal}),i=await o.json();return{status:rt,payload:i}}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return ct?{status:ot,payload:{message:"timeout",code:408}}:{status:it};const{message:s,missingLicenses:t,errorIdentifier:r}=await(async e=>{try{const s=e.body.getReader(),{value:t}=await s.read(),r=new TextDecoder("utf-8").decode(t);return console.error(r),JSON.parse(r)}catch(e){return{message:"Unknown"}}})(e);return{status:ot,payload:{message:s,code:e.status||500,missingLicenses:t,errorIdentifier:r}}}finally{clearTimeout(t)}},ht="\\–\\-\\(\\)_\\[\\]’‘“”〝〞〟‟„\"'.?!:;,¿¡«»‹›—×+&۔؟،؛。。!‼?⁇⁉⁈‥…・ー、〃〄〆〇〈〉《》「」『』【】〒〓〔〕〖〗〘〙〚〛〜〝〞〟〠〶〼〽{}|~⦅⦆「」、[]・¥$%@&'()*/:;<>\\\<>";ht.split(""),new RegExp("^["+ht+"]+"),new RegExp("["+ht+"]+$");new RegExp("["+ht+"#$%&*+/=@^`{|}~ -¿–-⁊ -₠-⃀]","g");const mt=e=>{const s={...e};return""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(s.value="%%"+e.name+"%%"),s.badge=`<badge>${e.label}</badge>`,s},gt={editType:Ys,previewType:Ks,postType:"post",contentType:Qs},yt=(0,w.createContext)(gt),xt=(yt.Provider,()=>(0,w.useContext)(yt)),ft=()=>(0,w.useContext)(a.LocationContext),wt=e=>{const s=(0,w.useRef)(null);return(0,w.useCallback)((t=>{(0,l.attempt)((()=>s.current&&s.current.disconnect())),null!==t&&(s.current=new ResizeObserver((s=>{(0,l.forEach)(s,(s=>e(s)))})),s.current.observe(t))}),[e])},bt=window.yoast.reduxJsToolkit,vt=(0,bt.createSlice)({name:"suggestions",initialState:{status:tt.loading,error:{code:200,message:""},entities:[],selected:""},reducers:{setLoading:e=>{e.status=tt.loading},setSuccess:(e,{payload:s})=>{e.status=tt.success,e.selected=s[0],e.entities.push(...s)},setError:(e,{payload:s})=>{e.status=tt.error,e.error=s},setSelected:(e,{payload:s})=>{e.selected=s}}}),kt=e=>{switch(e){case Gs:return"Facebook";case Vs:return"Twitter";default:return"Google"}},_t=window.yoast.searchMetadataPreviews,jt="usageCount",St="fetchUsageCount",Rt=`${St}/success`,Ct={errorCode:null,errorIdentifier:null,errorMessage:null},It=(0,bt.createSlice)({name:jt,initialState:{status:"idle",count:0,limit:10,endpoint:"yoast/v1/ai_generator/get_usage",error:Ct},reducers:{addUsageCount:(e,{payload:s=1})=>{e.count+=s},setUsageCount:(e,{payload:s})=>{e.count=s},setUsageCountEndpoint:(e,{payload:s})=>{e.endpoint=s},setUsageCountLimit:(e,{payload:s})=>{e.limit=s}},extraReducers:e=>{e.addCase(`${St}/request`,(e=>{e.status=As,e.error=Ct})),e.addCase(Rt,((e,{payload:s})=>{e.status="success",e.count=s.count,e.limit=s.limit,e.error=Ct})),e.addCase(`${St}/${Ps}`,((e,{payload:s})=>{e.status="error",e.error={errorCode:502,...s}}))}}),Et=(It.getInitialState,{selectUsageCountStatus:e=>(0,l.get)(e,[jt,"status"],It.getInitialState()),selectUsageCount:e=>(0,l.get)(e,[jt,"count"],It.getInitialState().count),selectUsageCountLimit:e=>(0,l.get)(e,[jt,"limit"],It.getInitialState().limit),selectUsageCountEndpoint:e=>(0,l.get)(e,[jt,"endpoint"],It.getInitialState().endpoint),selectUsageCountError:e=>(0,l.get)(e,[jt,"error"],It.getInitialState().error)});Et.selectUsageCountRemaining=(0,bt.createSelector)([Et.selectUsageCount,Et.selectUsageCountLimit],((e,s)=>Math.max(s-e,0))),Et.isUsageCountLimitReached=(0,bt.createSelector)([Et.selectUsageCount,Et.selectUsageCountLimit,Et.selectUsageCountError],((e,s,t)=>429===t.errorCode||e>=s)),It.actions,It.reducer;const Lt=()=>{const e=(0,he.useSelect)((e=>e(zs).selectLink("https://yoa.st/ai-common-errors")),[]),s=(0,he.useSelect)((e=>e(zs).selectAdminLink("?page=wpseo_page_support")),[]);return(0,C.jsxs)(ve.Alert,{variant:"error",children:[(0,C.jsx)("span",{className:"yst-block yst-font-medium",children:(0,d.__)("Something went wrong","wordpress-seo")}),(0,C.jsx)("p",{className:"yst-mt-2",children:Re((0,d.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */ +(0,d.__)("Enable AI-powered SEO! Use all Yoast AI features to boost your efficiency. Just give us the green light. %1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),{a:(0,C.jsx)(Ls,{href:s,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,C.jsx)(ms,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,C.jsx)("br",{})})})]}),(0,C.jsx)("div",{className:"yst-flex yst-w-full yst-mt-6",children:(0,C.jsx)("hr",{className:"yst-w-full yst-text-gray-200"})}),(0,C.jsxs)("div",{className:"yst-flex yst-items-start yst-mt-4",children:[(0,C.jsx)("input",{type:"checkbox",id:"yst-ai-consent-checkbox",name:"yst-ai-consent-checkbox",checked:n,value:n?"true":"false",onChange:l,className:"yst-checkbox__input",ref:a}),(0,C.jsx)("label",{htmlFor:"yst-ai-consent-checkbox",className:"yst-label yst-checkbox__label yst-text-xs yst-font-normal yst-text-slate-500",children:u})]}),(0,C.jsx)("div",{className:"yst-w-full yst-flex yst-mt-4",children:(0,C.jsxs)(ve.Button,{as:"button",className:"yst-grow",size:"large",disabled:!n,onClick:m,children:[p&&(0,C.jsx)(ve.Spinner,{className:"yst-me-2"}),(0,d.__)("Grant consent","wordpress-seo")]})}),(0,C.jsx)(ve.Button,{as:"button",className:"yst-mt-4",variant:"tertiary",onClick:i,children:(0,d.__)("Close","wordpress-seo")})]})]})};Ds.propTypes={onGiveConsent:_().func.isRequired,learnMoreLink:_().string.isRequired,privacyPolicyLink:_().string.isRequired,termsOfServiceLink:_().string.isRequired,imageLink:_().string.isRequired};ke.forwardRef((function(e,s){return ke.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ke.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))})),window.yoast.aiFrontend;const Ws="yoast-seo/ai-generator",zs="yoast-seo/editor",Ks="google",Gs="social",Vs="twitter",Ys="title",Zs="description",Qs="post",Js="term",Xs={post:"title",term:"term_title"},et=(0,l.mapValues)(Xs,(e=>`%%${e}%%`)),st={mobile:"mobile",desktop:"desktop"},tt={idle:"idle",loading:"loading",success:"success",error:"error"},rt="success",ot="error",it="abort",at=window.wp.apiFetch;var nt=t.n(at);let lt,ct=!1;const dt=["_formal","_informal","_ao90"],ut=e=>{for(const s of dt)if(e.endsWith(s))return e.slice(0,-s.length);return e},pt=async({endpoint:e,data:s})=>{let t;const r=1e3*(0,l.get)(window,"wpseoAiGenerator.requestTimeout",30);try{lt&<.abort(),lt=new AbortController,ct=!1,t=setTimeout((()=>{ct=!0,lt.abort()}),r);const o=await nt()({path:e,method:"POST",data:s,parse:!1,signal:lt.signal}),i=await o.json();return{status:rt,payload:i}}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return ct?{status:ot,payload:{message:"timeout",code:408}}:{status:it};const{message:s,missingLicenses:t,errorIdentifier:r}=await(async e=>{try{const s=e.body.getReader(),{value:t}=await s.read(),r=new TextDecoder("utf-8").decode(t);return console.error(r),JSON.parse(r)}catch(e){return{message:"Unknown"}}})(e);return{status:ot,payload:{message:s,code:e.status||500,missingLicenses:t,errorIdentifier:r}}}finally{clearTimeout(t)}},ht="\\–\\-\\(\\)_\\[\\]’‘“”〝〞〟‟„\"'.?!:;,¿¡«»‹›—×+&۔؟،؛。。!‼?⁇⁉⁈‥…・ー、〃〄〆〇〈〉《》「」『』【】〒〓〔〕〖〗〘〙〚〛〜〝〞〟〠〶〼〽{}|~⦅⦆「」、[]・¥$%@&'()*/:;<>\\\<>";ht.split(""),new RegExp("^["+ht+"]+"),new RegExp("["+ht+"]+$");new RegExp("["+ht+"#$%&*+/=@^`{|}~ -¿–-⁊ -₠-⃀]","g");const mt=e=>{const s={...e};return""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(s.value="%%"+e.name+"%%"),s.badge=`<badge>${e.label}</badge>`,s},gt={editType:Ys,previewType:Ks,postType:"post",contentType:Qs},yt=(0,w.createContext)(gt),xt=(yt.Provider,()=>(0,w.useContext)(yt)),ft=()=>(0,w.useContext)(a.LocationContext),wt=e=>{const s=(0,w.useRef)(null);return(0,w.useCallback)((t=>{(0,l.attempt)((()=>s.current&&s.current.disconnect())),null!==t&&(s.current=new ResizeObserver((s=>{(0,l.forEach)(s,(s=>e(s)))})),s.current.observe(t))}),[e])},bt=window.yoast.reduxJsToolkit,vt=(0,bt.createSlice)({name:"suggestions",initialState:{status:tt.loading,error:{code:200,message:""},entities:[],selected:""},reducers:{setLoading:e=>{e.status=tt.loading},setSuccess:(e,{payload:s})=>{e.status=tt.success,e.selected=s[0],e.entities.push(...s)},setError:(e,{payload:s})=>{e.status=tt.error,e.error=s},setSelected:(e,{payload:s})=>{e.selected=s}}}),kt=e=>{switch(e){case Gs:return"Facebook";case Vs:return"Twitter";default:return"Google"}},_t=window.yoast.searchMetadataPreviews,St="usageCount",jt="fetchUsageCount",Rt=`${jt}/success`,Ct={errorCode:null,errorIdentifier:null,errorMessage:null},It=(0,bt.createSlice)({name:St,initialState:{status:"idle",count:0,limit:10,endpoint:"yoast/v1/ai_generator/get_usage",error:Ct},reducers:{addUsageCount:(e,{payload:s=1})=>{e.count+=s},setUsageCount:(e,{payload:s})=>{e.count=s},setUsageCountEndpoint:(e,{payload:s})=>{e.endpoint=s},setUsageCountLimit:(e,{payload:s})=>{e.limit=s}},extraReducers:e=>{e.addCase(`${jt}/request`,(e=>{e.status=As,e.error=Ct})),e.addCase(Rt,((e,{payload:s})=>{e.status="success",e.count=s.count,e.limit=s.limit,e.error=Ct})),e.addCase(`${jt}/${Ps}`,((e,{payload:s})=>{e.status="error",e.error={errorCode:502,...s}}))}}),Et=(It.getInitialState,{selectUsageCountStatus:e=>(0,l.get)(e,[St,"status"],It.getInitialState()),selectUsageCount:e=>(0,l.get)(e,[St,"count"],It.getInitialState().count),selectUsageCountLimit:e=>(0,l.get)(e,[St,"limit"],It.getInitialState().limit),selectUsageCountEndpoint:e=>(0,l.get)(e,[St,"endpoint"],It.getInitialState().endpoint),selectUsageCountError:e=>(0,l.get)(e,[St,"error"],It.getInitialState().error)});Et.selectUsageCountRemaining=(0,bt.createSelector)([Et.selectUsageCount,Et.selectUsageCountLimit],((e,s)=>Math.max(s-e,0))),Et.isUsageCountLimitReached=(0,bt.createSelector)([Et.selectUsageCount,Et.selectUsageCountLimit,Et.selectUsageCountError],((e,s,t)=>429===t.errorCode||e>=s)),It.actions,It.reducer;const Lt=()=>{const e=(0,he.useSelect)((e=>e(zs).selectLink("https://yoa.st/ai-common-errors")),[]),s=(0,he.useSelect)((e=>e(zs).selectAdminLink("?page=wpseo_page_support")),[]);return(0,C.jsxs)(ve.Alert,{variant:"error",children:[(0,C.jsx)("span",{className:"yst-block yst-font-medium",children:(0,d.__)("Something went wrong","wordpress-seo")}),(0,C.jsx)("p",{className:"yst-mt-2",children:Re((0,d.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */ (0,d.__)("Please try again later. If this issue persists, you can learn more about possible reasons for this error on our page about %1$scommon AI feature problems and errors%2$s. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,C.jsx)(Ls,{variant:"error",href:e}),a2:(0,C.jsx)(Ls,{variant:"error",href:s})})})]})},Nt=()=>{const e=(0,he.useSelect)((e=>e(zs).selectLink("https://yoa.st/ai-common-errors")),[]),s=(0,he.useSelect)((e=>e(zs).selectAdminLink("?page=wpseo_page_support")),[]);return(0,C.jsxs)(ve.Alert,{variant:"error",children:[(0,C.jsx)("span",{className:"yst-block yst-font-medium",children:(0,d.__)("Not enough content","wordpress-seo")}),(0,C.jsx)("p",{className:"yst-mt-2",children:Re((0,d.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */ (0,d.__)("Please add more content to ensure a valuable AI suggestion. Learn more on our page about %1$scommon AI feature problems and errors%2$s. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,C.jsx)(Ls,{variant:"error",href:e}),a2:(0,C.jsx)(Ls,{variant:"error",href:s})})})]})},Mt=()=>{const e=(0,he.useSelect)((e=>e(zs).selectAdminLink("?page=wpseo_page_settings#/site-features#card-wpseo-keyword_analysis_active")),[]),s=(0,w.useCallback)((()=>{window.location.reload()}),[]),{onClose:t}=(0,ve.useModalContext)();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(ve.Alert,{variant:"error",children:[(0,C.jsx)("span",{className:"yst-block yst-font-medium",children:(0,d.__)("SEO analysis required","wordpress-seo")}),(0,C.jsx)("p",{className:"yst-mt-2",children:Re((0,d.sprintf)( /** @@ -151,7 +150,7 @@ (0,d.__)("Generated %s titles","wordpress-seo"),t);case Zs:return s===Ks&&(t="meta"),(0,d.sprintf)(/* translators: %s is the type of description. */ (0,d.__)("Generated %s descriptions","wordpress-seo"),t)}})(),c=(()=>{const{editType:e,previewType:s}=xt();let t="SEO";switch(s){case Gs:t="social";break;case Vs:t="X"}switch(e){case Ys:return(0,d.sprintf)(/* translators: %s is the type of title. */ (0,d.__)("Apply %s title","wordpress-seo"),t);case Zs:return s===Ks&&(t="meta"),(0,d.sprintf)(/* translators: %s is the type of description. */ -(0,d.__)("Apply %s description","wordpress-seo"),t)}})(),p=ft(),{suggestions:h,fetchSuggestions:m,setSelectedSuggestion:g}=(()=>{const[e,s]=(0,w.useReducer)(vt.reducer,vt.getInitialState()),{editType:t,previewType:r,postType:o,contentType:i}=xt(),a=(0,he.useSelect)((e=>e(Ws).selectPromptContent()),[]),{contentLocale:n,focusKeyphrase:l,isWooCommerceActive:c,isGutenberg:d,isElementor:p}=(0,he.useSelect)((e=>({contentLocale:e(zs).getContentLocale(),focusKeyphrase:e(zs).getFocusKeyphrase(),isWooCommerceActive:e(zs).getIsWooCommerceActive(),isGutenberg:e(zs).getIsBlockEditor(),isElementor:e(zs).getIsElementorEditor()})),[]);let h,m=u.languageProcessing.helpers.processExactMatchRequest(l).keyphrase;m.length>191&&(m=m.slice(0,191)),h=p?"elementor":d?"gutenberg":"classic";const g=((e,s,t,r)=>{const o=e===Zs?"meta-description":"seo-title";let i=((e,s)=>{if(e)switch(s){case"product":return"product-";case"product_cat":case"product_tag":return"product-taxonomy-"}return""})(s,t);return i&&s||r!==Js||(i="taxonomy-"),`${i}${o}`})(t,c,o,i);return{suggestions:e,fetchSuggestions:(0,w.useCallback)((async(e=!0)=>{s(vt.actions.setLoading());const{status:t,payload:o}=await pt({endpoint:"yoast/v1/ai_generator/get_suggestions/",canAbort:e,data:{type:g,prompt_content:a,focus_keyphrase:m,platform:kt(r),language:ut(n).replace("_","-"),editor:h}});switch(t){case it:break;case ot:s(vt.actions.setError(o));break;case rt:s(vt.actions.setSuccess(o))}return t}),[s]),setSelectedSuggestion:(0,w.useCallback)((e=>s(vt.actions.setSelected(e))),[s])}})(),y=(()=>{const{previewType:e}=xt();switch(e){case Gs:return sr;case Vs:return oo;default:return Yt}})(),{addAppliedSuggestion:x,addUsageCount:f}=(0,he.useDispatch)(Ws),{isUsageCountLimitReached:b,isWooProductEntity:v,hasValidPremiumSubscription:k,hasValidWooSubscription:_}=(0,he.useSelect)((e=>{const s=e(Ws),t=e(zs);return{isUsageCountLimitReached:s.isUsageCountLimitReached(),isPremium:t.getIsPremium(),isWooProductEntity:t.getIsWooProductEntity(),isWooSeoActive:t.getIsWooSeoActive(),hasValidPremiumSubscription:s.selectPremiumSubscription(),hasValidWooSubscription:s.selectWooCommerceSubscription()}}),[]),j=(0,w.useMemo)((()=>h.status===tt.loading||!(_||!b||!v)||!(k||!b)),[k,b,h.status,v,_]),S=(0,ve.usePrevious)(e),R=h.status===tt.success?e:S,I=`calc(${0===R?"50%":R/2+"px"} - 40vh)`,[E,L]=(0,w.useState)(!1),N=(0,w.useCallback)((e=>{L(e.target.offsetHeight!==e.target.scrollHeight)}),[L]),M=wt(N),T=(()=>{const{editType:e,previewType:s,contentType:t}=xt(),r=(()=>{const{previewType:e}=xt();return(0,w.useMemo)((()=>{switch(e){case Ks:return()=>(0,he.select)(zs).getSnippetEditorData().title;case Gs:return(0,he.select)(zs).getFacebookTitleOrFallback;case Vs:return(0,he.select)(zs).getTwitterTitleOrFallback;default:return(0,l.constant)("")}}),[e])})(),o=(0,he.useSelect)((t=>t(Ws).selectAppliedSuggestionFor({editType:e,previewType:s})),[e,s]);return(0,w.useMemo)((()=>{let s=r();return e===Zs?s:(o&&(s=s.replace(o,et[t])),((e,s)=>e.includes(et[s])?e:et[s])(s,t))}),[e,r])})(),P=(()=>{const e=(()=>{const{previewType:e}=xt();return(0,w.useMemo)((()=>{switch(e){case Ks:return()=>(0,he.select)(zs).getSnippetEditorData().description;case Gs:return(0,he.select)(zs).getFacebookDescriptionOrFallback;case Vs:return(0,he.select)(zs).getTwitterDescriptionOrFallback;default:return(0,l.constant)("")}}),[e])})();return(0,w.useMemo)(e,[e])})(),A=(()=>{const e=(0,he.useSelect)((e=>e(zs).getReplaceVars()),[]),s=(0,w.useMemo)((()=>e.map(mt)),[e]);return(0,w.useCallback)(((e,{key:t="value",overrides:r={},applyPluggable:o=!0,editType:i=Ys,contentType:a=Qs}={})=>{for(const o of s)e=e.replace(new RegExp("%%"+(0,l.escapeRegExp)(o.name)+"%%","g"),(0,l.get)(r,o.name,o[t]));return a===Js&&(e=e.replace(" Archives","")),o?((e,s=Ys)=>{const t=cs({title:"",description:"",[s]:u.languageProcessing.stripSpaces(e)});return(0,l.get)(t,s,e)})(e,i):e}),[s])})(),F=(0,w.useMemo)((()=>o===Ys?{[Xs[a]]:h.selected}:{}),[o,a,h.selected]),q=(0,w.useMemo)((()=>A(T,{overrides:F,contentType:a})),[A,T,o,a,h.selected]),O=(0,w.useMemo)((()=>A(T,{overrides:{...F,sep:"",sitename:""},contentType:a})),[A,T,o,a,h.selected]),$=(0,w.useMemo)((()=>o===Zs?h.selected:A(P,{editType:Zs})),[A,P,o,h.selected]),B=(0,w.useCallback)((e=>A(T,{overrides:{[Xs[a]]:e},key:"badge",applyPluggable:!1,contentType:a})),[A,T,a]),{currentPage:U,setCurrentPage:H,isOnLastPage:D,totalPages:W,getItemsOnCurrentPage:z}=(({totalItems:e=0,perPage:s=5})=>{const[t,r]=(0,w.useState)(1),o=(0,w.useMemo)((()=>Math.ceil(e/s)),[e,s]),i=(0,w.useMemo)((()=>t*s),[t,s]),a=(0,w.useMemo)((()=>i-s),[i,s]),n=(0,w.useMemo)((()=>1===t),[t]),c=(0,w.useMemo)((()=>t===o),[t,o]),d=(0,w.useCallback)((()=>{t>1&&r(t-1)}),[t,r]),u=(0,w.useCallback)((()=>{t<o&&r(t+1)}),[t,r,o]),p=(0,w.useCallback)((e=>(0,l.slice)(e,a,i)),[a,i]);return{currentPage:t,setCurrentPage:r,totalPages:o,isOnFirstPage:n,isOnLastPage:c,previousPage:d,nextPage:u,firstOnPage:a,lastOnPage:i,getItemsOnCurrentPage:p}})({totalItems:h.status===tt.loading||h.status===tt.error?h.entities.length+5:h.entities.length,perPage:5}),K=(0,w.useMemo)((()=>(0,l.map)(z(h.entities),(e=>{let s=e;return o===Ys&&(s=B(e),s=s.replace(Kt,((e,s,t,r,o,i,{start:a,wrap:n,end:l})=>{const c=n.trim();return 0===c.length?`${a}${n}${l}`:`${a}<span>${c}</span>${l}`})),s=Re(s,{badge:(0,C.jsx)(ve.Badge,{className:"yst-me-2 last:yst-me-0",variant:"plain",children:" "}),span:(0,C.jsx)("span",{className:"yst-flex yst-items-center yst-me-2 last:yst-me-0"})})),{value:e,label:s}}))),[h.entities,z,o,B]),G=(0,w.useMemo)((()=>h.status!==tt.error||h.status===tt.error&&!D),[h.status,D]),V=(0,w.useMemo)((()=>h.status===tt.loading&&D),[h.status,D]),Y=(0,w.useMemo)((()=>h.status===tt.error&&D),[h.status,D]),Z=(0,w.useCallback)((()=>{j||(H(h.status===tt.error?W:W+1),m().then((e=>{e===rt&&f()})))}),[m,h.status,W,H,g,b]),Q=(0,w.useCallback)((()=>t("")),[t]),J=(()=>{const{editType:e}=xt();switch(e){case Ys:return(()=>{const{previewType:e}=xt(),{updateData:s,setFacebookPreviewTitle:t,setTwitterPreviewTitle:r}=(0,he.useDispatch)(zs);return(0,w.useMemo)((()=>{switch(e){case Ks:return e=>s({title:e});case Gs:return t;case Vs:return r;default:return l.noop}}),[e,s,t,r])})();case Zs:return(()=>{const{previewType:e}=xt(),{updateData:s,setFacebookPreviewDescription:t,setTwitterPreviewDescription:r}=(0,he.useDispatch)(zs);return(0,w.useMemo)((()=>{switch(e){case Ks:return e=>s({description:e});case Gs:return t;case Vs:return r;default:return l.noop}}),[e,s,t,r])})();default:return l.noop}})(),X=zt(!0),ee=(0,w.useCallback)((()=>{const e=o===Ys?T.replace(new RegExp(et[a]+"( Archives)?"),h.selected):h.selected;J(e),x({editType:o,previewType:i,suggestion:h.selected}),r(),"pre-publish"===p&&X()}),[J,o,i,h.selected,T,r,x,X,p]);return((e,s=[])=>{const t=(0,w.useRef)(!1);(0,w.useEffect)((()=>{t.current||(t.current=!0,e().finally((()=>{t.current=!1})))}),[e,s])})((()=>""===s?m().then((e=>{t(e),e===rt&&f()})):Promise.resolve()),[s,f,m]),s===ot||h.status===tt.error&&402===h.error.code?(0,C.jsx)("div",{className:"yst-flex yst-flex-col yst-space-y-6 yst-mt-6",children:(0,C.jsx)(Zr,{errorCode:h.error.code,errorIdentifier:h.error.errorIdentifier,invalidSubscriptions:h.error.missingLicenses,showActions:!0,onRetry:Q,errorMessage:h.error.message})}):(0,C.jsxs)(w.Fragment,{children:[(0,C.jsxs)(ve.Modal.Container.Content,{ref:M,className:"yst-flex yst-flex-col yst-py-6 yst-space-y-2",children:[(0,C.jsx)(y,{title:q,description:$,status:h.status,titleForLength:O,showPreviewSkeleton:""===s,showLengthProgress:!V}),G&&(V?(0,C.jsx)(so,{idSuffix:p,suggestionClassNames:o===Ys?[["yst-h-3 yst-w-9/12"],["yst-h-3 yst-w-7/12"],["yst-h-3 yst-w-10/12"],["yst-h-3 yst-w-11/12"],["yst-h-3 yst-w-8/12"]]:void 0}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:"yst-flex yst-space-y-4",children:[(0,C.jsx)(ve.Label,{as:"span",className:"yst-flex-grow yst-cursor-default yst-mt-auto",children:n}),(0,C.jsxs)(ve.Button,{variant:"secondary",size:"small",onClick:h.status===tt.loading?l.noop:Z,isLoading:h.status===tt.loading,disabled:j,children:[h.status!==tt.loading&&(0,C.jsx)(Dt,{className:"yst--ms-1 yst-me-2 yst-h-4 yst-w-4 yst-text-gray-400"}),(0,d.__)("Generate 5 more","wordpress-seo")]})]}),(0,C.jsx)(Xr,{idSuffix:p,suggestions:K,selected:h.selected,onChange:g}),(0,C.jsx)(Gt,{current:U,total:W,onNavigate:H,disabled:h.status===tt.loading||Y})]})),h.status===tt.error&&D&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"yst-mt-8"}),(0,C.jsx)(Zr,{errorCode:h.error.code,errorIdentifier:h.error.errorIdentifier,invalidSubscriptions:h.error.missingLicenses,errorMessage:h.error.message}),(0,C.jsx)(Gt,{current:U,total:W,onNavigate:H,disabled:h.status===tt.loading})]})]}),(0,C.jsxs)(ve.Modal.Container.Footer,{children:[E&&(0,C.jsx)("div",{className:"yst-absolute yst-inset-x-0 yst--mt-10 yst-me-[calc(2.5rem-1px)] yst-h-10 yst-pointer-events-none yst-bg-gradient-to-t yst-from-slate-50"}),(0,C.jsx)("hr",{className:"yst-mb-6 yst--mx-6"}),(0,C.jsxs)("div",{className:"sm:yst-flex sm:yst-justify-end sm:yst-space-x-2 sm:rtl:yst-space-x-reverse",children:[(0,C.jsx)("div",{className:"yst-hidden sm:yst-inline",children:(0,C.jsx)(ve.Button,{variant:"secondary",onClick:r,children:(0,d.__)("Close","wordpress-seo")})}),(0,C.jsx)("div",{className:"yst-block sm:yst-inline",children:(0,C.jsxs)(ve.Button,{className:"yst-w-full sm:yst-w-auto",variant:"primary",onClick:ee,disabled:""===h.selected||h.status===tt.loading||Y,children:[(0,C.jsx)(Wt,{className:"yst--ms-1 yst-me-1 yst-h-4 yst-w-4 yst-text-white"}),c]})}),(0,C.jsx)("div",{className:"yst-mt-3 sm:yst-hidden",children:(0,C.jsx)(ve.Button,{variant:"secondary",onClick:r,className:"yst-w-full sm:yst-w-auto",children:(0,d.__)("Close","wordpress-seo")})})]})]}),(0,C.jsxs)(ve.Notifications,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all",style:{marginTop:I},position:"bottom-left",children:[h.status!==tt.loading&&(0,C.jsx)(po,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all"}),(h.status===tt.success||h.status===tt.loading)&&(0,C.jsx)(ro,{})]})]})};Vt.propTypes={height:_().number.isRequired};_().func.isRequired;const Yt=({title:e,description:s,status:t,titleForLength:r,showPreviewSkeleton:o,showLengthProgress:i})=>{const a=(0,he.useSelect)((e=>e(zs).getSnippetEditorMode()),[]),[n,l]=(0,w.useState)(a),{editType:c}=xt(),u=ft(),p=(({editType:e,title:s,description:t})=>{const r=(0,he.useSelect)((e=>e(zs).getDateFromSettings()),[]),o=(0,he.useSelect)((e=>e(zs).getContentLocale()),[]),i=(0,he.useSelect)((e=>e(zs).isCornerstoneContent()),[]),a=(0,he.useSelect)((e=>e(zs).getIsTerm()),[]);return(0,w.useMemo)((()=>e===Zs?(0,_t.getDescriptionProgress)(t,r,i,a,o):(0,_t.getTitleProgress)(s)),[e,s,t,r,i,a,o])})({editType:c,title:r,description:s});return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:"yst-mb-2 lg:yst-flex",children:[(0,C.jsx)(ve.Label,{as:"span",className:"yst-flex-grow yst-cursor-default",children:(0,d.__)("Google preview","wordpress-seo")}),(0,C.jsx)(er,{mode:n,idSuffix:u,onChange:l,disabled:t===tt.loading})]}),o?(0,C.jsx)(Jt,{}):(0,C.jsx)(Qt,{mode:n,title:e,description:s}),(0,C.jsxs)("div",{className:"yst-pt-4",children:[(0,C.jsx)(ve.Label,{as:"span",className:"yst-flex-grow yst-cursor-default",children:c===Ys?(0,d.__)("SEO title width","wordpress-seo"):(0,d.__)("Meta description length","wordpress-seo")}),(0,C.jsx)(Xt,{className:"yst-mt-2",progress:i?p.actual:0,min:0,max:p.max,score:p.score})]})]})};Yt.propTypes={title:_().string.isRequired,description:_().string.isRequired,status:_().oneOf(Object.keys(tt)).isRequired,titleForLength:_().string.isRequired,showPreviewSkeleton:_().bool.isRequired,showLengthProgress:_().bool.isRequired};const Zt=/mobi/i,Qt=({mode:e,title:s,description:t})=>{var r,o;const i=(0,he.useSelect)((e=>e(zs).getBaseUrlFromSettings()),[]),a=(0,he.useSelect)((e=>e(zs).getSnippetEditorData().slug||""),[]),n=(0,he.useSelect)((e=>e(zs).getDateFromSettings()),[]),c=(0,he.useSelect)((e=>e(zs).getFocusKeyphrase()),[]),d=(0,he.useSelect)((e=>e(zs).getSnippetEditorPreviewImageUrl()),[]),u=(0,he.useSelect)((e=>e(zs).getSiteIconUrlFromSettings()),[]),p=(0,he.useSelect)((e=>e(zs).getShoppingData()),[]),h=(0,he.useSelect)((e=>e(zs).getSnippetEditorWordsToHighlight()),[]),m=(0,he.useSelect)((e=>e(zs).getSiteName()),[]),g=(0,he.useSelect)((e=>e(zs).getContentLocale()),[]),y=(0,w.useMemo)((()=>i+a),[i,a]),x=(0,w.useMemo)((()=>{var e,s;return Zt.test(null===(e=window)||void 0===e||null===(s=e.navigator)||void 0===s?void 0:s.userAgent)}),[null===(r=window)||void 0===r||null===(o=r.navigator)||void 0===o?void 0:o.userAgent]);return(0,C.jsx)("div",{className:`yst-bg-slate-200 yst--mx-6 ${e}${x?" yst-user-agent__mobile":""}`,children:(0,C.jsx)(_t.SnippetPreview,{title:s,description:t,mode:e,url:y,keyword:c,date:n,faviconSrc:u,mobileImageSrc:d,wordsToHighlight:h,siteName:m,locale:g,shoppingData:p,onMouseUp:l.noop})})};Qt.propTypes={mode:_().oneOf(Object.keys(st)).isRequired,title:_().string.isRequired,description:_().string.isRequired};const Jt=()=>(0,C.jsxs)("div",{className:"yst-max-w-[400px] yst-py-4 yst-px-3 yst-border yst-rounded-lg yst-w-full yst-mx-auto",children:[(0,C.jsxs)("div",{className:"yst-flex yst-gap-x-3",children:[(0,C.jsx)(ve.SkeletonLoader,{className:"yst-flex-shrink-0 yst-h-7 yst-w-7 yst-rounded-full"}),(0,C.jsxs)("div",{className:"yst-flex yst-flex-col yst-w-full yst-gap-y-1",children:[(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-3 yst-w-1/3"}),(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-2.5 yst-w-10/12"})]})]}),(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-4 yst-w-full yst-mt-6 yst-mb-4"}),(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-3 yst-w-full"}),(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-3 yst-w-10/12 yst-mt-2.5"})]}),Xt=({className:e="",progress:s,max:t,score:r})=>{const o=(0,w.useMemo)((()=>(e=>e>=7?"yst-score-good":e>=5?"yst-score-ok":"yst-score-bad")(r)),[r]);return(0,C.jsx)(ve.ProgressBar,{className:Ae()("yst-length-progress-bar",o,e),progress:s,min:0,max:t})};Xt.propTypes={className:_().string,progress:_().number.isRequired,max:_().number.isRequired,score:_().number.isRequired};const er=({idSuffix:e,mode:s,onChange:t,disabled:r})=>{const o=(0,w.useCallback)((({target:e})=>e.checked&&t(e.value)),[t]);return(0,C.jsxs)(ve.RadioGroup,{id:`yst-ai-mode__${e}`,className:"yst-ai-mode yst-pt-2 lg:yst-pt-0",disabled:r,children:[(0,C.jsx)(ve.RadioGroup.Radio,{id:`yst-ai-mode__mobile__${e}`,name:`yst-ai-mode__${e}`,label:(0,d.__)("Mobile result","wordpress-seo"),value:st.mobile,checked:s===st.mobile,onChange:o,disabled:r}),(0,C.jsx)(ve.RadioGroup.Radio,{id:`yst-ai-mode__desktop__${e}`,name:`yst-ai-mode__${e}`,label:(0,d.__)("Desktop result","wordpress-seo"),value:st.desktop,checked:s===st.desktop,onChange:o,disabled:r})]})};er.propTypes={idSuffix:_().string.isRequired,mode:_().oneOf(Object.keys(st)).isRequired,onChange:_().func.isRequired,disabled:_().bool.isRequired};const sr=({title:e,description:s,showPreviewSkeleton:t})=>(0,C.jsxs)("div",{children:[(0,C.jsx)("div",{className:"yst-flex yst-mb-6",children:(0,C.jsx)(ve.Label,{as:"span",className:"yst-flex-grow yst-cursor-default",children:(0,d.__)("Social preview","wordpress-seo")})}),t?(0,C.jsx)(Vr,{}):(0,C.jsx)(Gr,{title:e,description:s})]});sr.propTypes={title:_().string.isRequired,description:_().string.isRequired,showPreviewSkeleton:_().bool.isRequired};const tr=v().p` +(0,d.__)("Apply %s description","wordpress-seo"),t)}})(),p=ft(),{suggestions:h,fetchSuggestions:m,setSelectedSuggestion:g}=(()=>{const[e,s]=(0,w.useReducer)(vt.reducer,vt.getInitialState()),{editType:t,previewType:r,postType:o,contentType:i}=xt(),a=(0,he.useSelect)((e=>e(Ws).selectPromptContent()),[]),{contentLocale:n,focusKeyphrase:l,isWooCommerceActive:c,isGutenberg:d,isElementor:p}=(0,he.useSelect)((e=>({contentLocale:e(zs).getContentLocale(),focusKeyphrase:e(zs).getFocusKeyphrase(),isWooCommerceActive:e(zs).getIsWooCommerceActive(),isGutenberg:e(zs).getIsBlockEditor(),isElementor:e(zs).getIsElementorEditor()})),[]);let h,m=u.languageProcessing.helpers.processExactMatchRequest(l).keyphrase;m.length>191&&(m=m.slice(0,191)),h=p?"elementor":d?"gutenberg":"classic";const g=((e,s,t,r)=>{const o=e===Zs?"meta-description":"seo-title";let i=((e,s)=>{if(e)switch(s){case"product":return"product-";case"product_cat":case"product_tag":return"product-taxonomy-"}return""})(s,t);return i&&s||r!==Js||(i="taxonomy-"),`${i}${o}`})(t,c,o,i);return{suggestions:e,fetchSuggestions:(0,w.useCallback)((async(e=!0)=>{s(vt.actions.setLoading());const{status:t,payload:o}=await pt({endpoint:"yoast/v1/ai_generator/get_suggestions/",canAbort:e,data:{type:g,prompt_content:a,focus_keyphrase:m,platform:kt(r),language:ut(n).replace("_","-"),editor:h}});switch(t){case it:break;case ot:s(vt.actions.setError(o));break;case rt:s(vt.actions.setSuccess(o))}return t}),[s]),setSelectedSuggestion:(0,w.useCallback)((e=>s(vt.actions.setSelected(e))),[s])}})(),y=(()=>{const{previewType:e}=xt();switch(e){case Gs:return sr;case Vs:return oo;default:return Yt}})(),{addAppliedSuggestion:x,addUsageCount:f}=(0,he.useDispatch)(Ws),{isUsageCountLimitReached:b,isWooProductEntity:v,hasValidPremiumSubscription:k,hasValidWooSubscription:_}=(0,he.useSelect)((e=>{const s=e(Ws),t=e(zs);return{isUsageCountLimitReached:s.isUsageCountLimitReached(),isPremium:t.getIsPremium(),isWooProductEntity:t.getIsWooProductEntity(),isWooSeoActive:t.getIsWooSeoActive(),hasValidPremiumSubscription:s.selectPremiumSubscription(),hasValidWooSubscription:s.selectWooCommerceSubscription()}}),[]),S=(0,w.useMemo)((()=>h.status===tt.loading||!(_||!b||!v)||!(k||!b)),[k,b,h.status,v,_]),j=(0,ve.usePrevious)(e),R=h.status===tt.success?e:j,I=`calc(${0===R?"50%":R/2+"px"} - 40vh)`,[E,L]=(0,w.useState)(!1),N=(0,w.useCallback)((e=>{L(e.target.offsetHeight!==e.target.scrollHeight)}),[L]),M=wt(N),T=(()=>{const{editType:e,previewType:s,contentType:t}=xt(),r=(()=>{const{previewType:e}=xt();return(0,w.useMemo)((()=>{switch(e){case Ks:return()=>(0,he.select)(zs).getSnippetEditorData().title;case Gs:return(0,he.select)(zs).getFacebookTitleOrFallback;case Vs:return(0,he.select)(zs).getTwitterTitleOrFallback;default:return(0,l.constant)("")}}),[e])})(),o=(0,he.useSelect)((t=>t(Ws).selectAppliedSuggestionFor({editType:e,previewType:s})),[e,s]);return(0,w.useMemo)((()=>{let s=r();return e===Zs?s:(o&&(s=s.replace(o,et[t])),((e,s)=>e.includes(et[s])?e:et[s])(s,t))}),[e,r])})(),P=(()=>{const e=(()=>{const{previewType:e}=xt();return(0,w.useMemo)((()=>{switch(e){case Ks:return()=>(0,he.select)(zs).getSnippetEditorData().description;case Gs:return(0,he.select)(zs).getFacebookDescriptionOrFallback;case Vs:return(0,he.select)(zs).getTwitterDescriptionOrFallback;default:return(0,l.constant)("")}}),[e])})();return(0,w.useMemo)(e,[e])})(),A=(()=>{const e=(0,he.useSelect)((e=>e(zs).getReplaceVars()),[]),s=(0,w.useMemo)((()=>e.map(mt)),[e]);return(0,w.useCallback)(((e,{key:t="value",overrides:r={},applyPluggable:o=!0,editType:i=Ys,contentType:a=Qs}={})=>{for(const o of s)e=e.replace(new RegExp("%%"+(0,l.escapeRegExp)(o.name)+"%%","g"),(0,l.get)(r,o.name,o[t]));return a===Js&&(e=e.replace(" Archives","")),o?((e,s=Ys)=>{const t=cs({title:"",description:"",[s]:u.languageProcessing.stripSpaces(e)});return(0,l.get)(t,s,e)})(e,i):e}),[s])})(),F=(0,w.useMemo)((()=>o===Ys?{[Xs[a]]:h.selected}:{}),[o,a,h.selected]),q=(0,w.useMemo)((()=>A(T,{overrides:F,contentType:a})),[A,T,o,a,h.selected]),O=(0,w.useMemo)((()=>A(T,{overrides:{...F,sep:"",sitename:""},contentType:a})),[A,T,o,a,h.selected]),$=(0,w.useMemo)((()=>o===Zs?h.selected:A(P,{editType:Zs})),[A,P,o,h.selected]),B=(0,w.useCallback)((e=>A(T,{overrides:{[Xs[a]]:e},key:"badge",applyPluggable:!1,contentType:a})),[A,T,a]),{currentPage:U,setCurrentPage:H,isOnLastPage:D,totalPages:W,getItemsOnCurrentPage:z}=(({totalItems:e=0,perPage:s=5})=>{const[t,r]=(0,w.useState)(1),o=(0,w.useMemo)((()=>Math.ceil(e/s)),[e,s]),i=(0,w.useMemo)((()=>t*s),[t,s]),a=(0,w.useMemo)((()=>i-s),[i,s]),n=(0,w.useMemo)((()=>1===t),[t]),c=(0,w.useMemo)((()=>t===o),[t,o]),d=(0,w.useCallback)((()=>{t>1&&r(t-1)}),[t,r]),u=(0,w.useCallback)((()=>{t<o&&r(t+1)}),[t,r,o]),p=(0,w.useCallback)((e=>(0,l.slice)(e,a,i)),[a,i]);return{currentPage:t,setCurrentPage:r,totalPages:o,isOnFirstPage:n,isOnLastPage:c,previousPage:d,nextPage:u,firstOnPage:a,lastOnPage:i,getItemsOnCurrentPage:p}})({totalItems:h.status===tt.loading||h.status===tt.error?h.entities.length+5:h.entities.length,perPage:5}),K=(0,w.useMemo)((()=>(0,l.map)(z(h.entities),(e=>{let s=e;return o===Ys&&(s=B(e),s=s.replace(Kt,((e,s,t,r,o,i,{start:a,wrap:n,end:l})=>{const c=n.trim();return 0===c.length?`${a}${n}${l}`:`${a}<span>${c}</span>${l}`})),s=Re(s,{badge:(0,C.jsx)(ve.Badge,{className:"yst-me-2 last:yst-me-0",variant:"plain",children:" "}),span:(0,C.jsx)("span",{className:"yst-flex yst-items-center yst-me-2 last:yst-me-0"})})),{value:e,label:s}}))),[h.entities,z,o,B]),G=(0,w.useMemo)((()=>h.status!==tt.error||h.status===tt.error&&!D),[h.status,D]),V=(0,w.useMemo)((()=>h.status===tt.loading&&D),[h.status,D]),Y=(0,w.useMemo)((()=>h.status===tt.error&&D),[h.status,D]),Z=(0,w.useCallback)((()=>{S||(H(h.status===tt.error?W:W+1),m().then((e=>{e===rt&&f()})))}),[m,h.status,W,H,g,b]),Q=(0,w.useCallback)((()=>t("")),[t]),J=(()=>{const{editType:e}=xt();switch(e){case Ys:return(()=>{const{previewType:e}=xt(),{updateData:s,setFacebookPreviewTitle:t,setTwitterPreviewTitle:r}=(0,he.useDispatch)(zs);return(0,w.useMemo)((()=>{switch(e){case Ks:return e=>s({title:e});case Gs:return t;case Vs:return r;default:return l.noop}}),[e,s,t,r])})();case Zs:return(()=>{const{previewType:e}=xt(),{updateData:s,setFacebookPreviewDescription:t,setTwitterPreviewDescription:r}=(0,he.useDispatch)(zs);return(0,w.useMemo)((()=>{switch(e){case Ks:return e=>s({description:e});case Gs:return t;case Vs:return r;default:return l.noop}}),[e,s,t,r])})();default:return l.noop}})(),X=zt(!0),ee=(0,w.useCallback)((()=>{const e=o===Ys?T.replace(new RegExp(et[a]+"( Archives)?"),h.selected):h.selected;J(e),x({editType:o,previewType:i,suggestion:h.selected}),r(),"pre-publish"===p&&X()}),[J,o,i,h.selected,T,r,x,X,p]);return((e,s=[])=>{const t=(0,w.useRef)(!1);(0,w.useEffect)((()=>{t.current||(t.current=!0,e().finally((()=>{t.current=!1})))}),[e,s])})((()=>""===s?m().then((e=>{t(e),e===rt&&f()})):Promise.resolve()),[s,f,m]),s===ot||h.status===tt.error&&402===h.error.code?(0,C.jsx)("div",{className:"yst-flex yst-flex-col yst-space-y-6 yst-mt-6",children:(0,C.jsx)(Zr,{errorCode:h.error.code,errorIdentifier:h.error.errorIdentifier,invalidSubscriptions:h.error.missingLicenses,showActions:!0,onRetry:Q,errorMessage:h.error.message})}):(0,C.jsxs)(w.Fragment,{children:[(0,C.jsxs)(ve.Modal.Container.Content,{ref:M,className:"yst-flex yst-flex-col yst-py-6 yst-space-y-2",children:[(0,C.jsx)(y,{title:q,description:$,status:h.status,titleForLength:O,showPreviewSkeleton:""===s,showLengthProgress:!V}),G&&(V?(0,C.jsx)(so,{idSuffix:p,suggestionClassNames:o===Ys?[["yst-h-3 yst-w-9/12"],["yst-h-3 yst-w-7/12"],["yst-h-3 yst-w-10/12"],["yst-h-3 yst-w-11/12"],["yst-h-3 yst-w-8/12"]]:void 0}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:"yst-flex yst-space-y-4",children:[(0,C.jsx)(ve.Label,{as:"span",className:"yst-flex-grow yst-cursor-default yst-mt-auto",children:n}),(0,C.jsxs)(ve.Button,{variant:"secondary",size:"small",onClick:h.status===tt.loading?l.noop:Z,isLoading:h.status===tt.loading,disabled:S,children:[h.status!==tt.loading&&(0,C.jsx)(Dt,{className:"yst--ms-1 yst-me-2 yst-h-4 yst-w-4 yst-text-gray-400"}),(0,d.__)("Generate 5 more","wordpress-seo")]})]}),(0,C.jsx)(Xr,{idSuffix:p,suggestions:K,selected:h.selected,onChange:g}),(0,C.jsx)(Gt,{current:U,total:W,onNavigate:H,disabled:h.status===tt.loading||Y})]})),h.status===tt.error&&D&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"yst-mt-8"}),(0,C.jsx)(Zr,{errorCode:h.error.code,errorIdentifier:h.error.errorIdentifier,invalidSubscriptions:h.error.missingLicenses,errorMessage:h.error.message}),(0,C.jsx)(Gt,{current:U,total:W,onNavigate:H,disabled:h.status===tt.loading})]})]}),(0,C.jsxs)(ve.Modal.Container.Footer,{children:[E&&(0,C.jsx)("div",{className:"yst-absolute yst-inset-x-0 yst--mt-10 yst-me-[calc(2.5rem-1px)] yst-h-10 yst-pointer-events-none yst-bg-gradient-to-t yst-from-slate-50"}),(0,C.jsx)("hr",{className:"yst-mb-6 yst--mx-6"}),(0,C.jsxs)("div",{className:"sm:yst-flex sm:yst-justify-end sm:yst-space-x-2 sm:rtl:yst-space-x-reverse",children:[(0,C.jsx)("div",{className:"yst-hidden sm:yst-inline",children:(0,C.jsx)(ve.Button,{variant:"secondary",onClick:r,children:(0,d.__)("Close","wordpress-seo")})}),(0,C.jsx)("div",{className:"yst-block sm:yst-inline",children:(0,C.jsxs)(ve.Button,{className:"yst-w-full sm:yst-w-auto",variant:"primary",onClick:ee,disabled:""===h.selected||h.status===tt.loading||Y,children:[(0,C.jsx)(Wt,{className:"yst--ms-1 yst-me-1 yst-h-4 yst-w-4 yst-text-white"}),c]})}),(0,C.jsx)("div",{className:"yst-mt-3 sm:yst-hidden",children:(0,C.jsx)(ve.Button,{variant:"secondary",onClick:r,className:"yst-w-full sm:yst-w-auto",children:(0,d.__)("Close","wordpress-seo")})})]})]}),(0,C.jsxs)(ve.Notifications,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all",style:{marginTop:I},position:"bottom-left",children:[h.status!==tt.loading&&(0,C.jsx)(po,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all"}),(h.status===tt.success||h.status===tt.loading)&&(0,C.jsx)(ro,{})]})]})};Vt.propTypes={height:_().number.isRequired};_().func.isRequired;const Yt=({title:e,description:s,status:t,titleForLength:r,showPreviewSkeleton:o,showLengthProgress:i})=>{const a=(0,he.useSelect)((e=>e(zs).getSnippetEditorMode()),[]),[n,l]=(0,w.useState)(a),{editType:c}=xt(),u=ft(),p=(({editType:e,title:s,description:t})=>{const r=(0,he.useSelect)((e=>e(zs).getDateFromSettings()),[]),o=(0,he.useSelect)((e=>e(zs).getContentLocale()),[]),i=(0,he.useSelect)((e=>e(zs).isCornerstoneContent()),[]),a=(0,he.useSelect)((e=>e(zs).getIsTerm()),[]);return(0,w.useMemo)((()=>e===Zs?(0,_t.getDescriptionProgress)(t,r,i,a,o):(0,_t.getTitleProgress)(s)),[e,s,t,r,i,a,o])})({editType:c,title:r,description:s});return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:"yst-mb-2 lg:yst-flex",children:[(0,C.jsx)(ve.Label,{as:"span",className:"yst-flex-grow yst-cursor-default",children:(0,d.__)("Google preview","wordpress-seo")}),(0,C.jsx)(er,{mode:n,idSuffix:u,onChange:l,disabled:t===tt.loading})]}),o?(0,C.jsx)(Jt,{}):(0,C.jsx)(Qt,{mode:n,title:e,description:s}),(0,C.jsxs)("div",{className:"yst-pt-4",children:[(0,C.jsx)(ve.Label,{as:"span",className:"yst-flex-grow yst-cursor-default",children:c===Ys?(0,d.__)("SEO title width","wordpress-seo"):(0,d.__)("Meta description length","wordpress-seo")}),(0,C.jsx)(Xt,{className:"yst-mt-2",progress:i?p.actual:0,min:0,max:p.max,score:p.score})]})]})};Yt.propTypes={title:_().string.isRequired,description:_().string.isRequired,status:_().oneOf(Object.keys(tt)).isRequired,titleForLength:_().string.isRequired,showPreviewSkeleton:_().bool.isRequired,showLengthProgress:_().bool.isRequired};const Zt=/mobi/i,Qt=({mode:e,title:s,description:t})=>{var r,o;const i=(0,he.useSelect)((e=>e(zs).getBaseUrlFromSettings()),[]),a=(0,he.useSelect)((e=>e(zs).getSnippetEditorData().slug||""),[]),n=(0,he.useSelect)((e=>e(zs).getDateFromSettings()),[]),c=(0,he.useSelect)((e=>e(zs).getFocusKeyphrase()),[]),d=(0,he.useSelect)((e=>e(zs).getSnippetEditorPreviewImageUrl()),[]),u=(0,he.useSelect)((e=>e(zs).getSiteIconUrlFromSettings()),[]),p=(0,he.useSelect)((e=>e(zs).getShoppingData()),[]),h=(0,he.useSelect)((e=>e(zs).getSnippetEditorWordsToHighlight()),[]),m=(0,he.useSelect)((e=>e(zs).getSiteName()),[]),g=(0,he.useSelect)((e=>e(zs).getContentLocale()),[]),y=(0,w.useMemo)((()=>i+a),[i,a]),x=(0,w.useMemo)((()=>{var e,s;return Zt.test(null===(e=window)||void 0===e||null===(s=e.navigator)||void 0===s?void 0:s.userAgent)}),[null===(r=window)||void 0===r||null===(o=r.navigator)||void 0===o?void 0:o.userAgent]);return(0,C.jsx)("div",{className:`yst-bg-slate-200 yst--mx-6 ${e}${x?" yst-user-agent__mobile":""}`,children:(0,C.jsx)(_t.SnippetPreview,{title:s,description:t,mode:e,url:y,keyword:c,date:n,faviconSrc:u,mobileImageSrc:d,wordsToHighlight:h,siteName:m,locale:g,shoppingData:p,onMouseUp:l.noop})})};Qt.propTypes={mode:_().oneOf(Object.keys(st)).isRequired,title:_().string.isRequired,description:_().string.isRequired};const Jt=()=>(0,C.jsxs)("div",{className:"yst-max-w-[400px] yst-py-4 yst-px-3 yst-border yst-rounded-lg yst-w-full yst-mx-auto",children:[(0,C.jsxs)("div",{className:"yst-flex yst-gap-x-3",children:[(0,C.jsx)(ve.SkeletonLoader,{className:"yst-flex-shrink-0 yst-h-7 yst-w-7 yst-rounded-full"}),(0,C.jsxs)("div",{className:"yst-flex yst-flex-col yst-w-full yst-gap-y-1",children:[(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-3 yst-w-1/3"}),(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-2.5 yst-w-10/12"})]})]}),(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-4 yst-w-full yst-mt-6 yst-mb-4"}),(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-3 yst-w-full"}),(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-3 yst-w-10/12 yst-mt-2.5"})]}),Xt=({className:e="",progress:s,max:t,score:r})=>{const o=(0,w.useMemo)((()=>(e=>e>=7?"yst-score-good":e>=5?"yst-score-ok":"yst-score-bad")(r)),[r]);return(0,C.jsx)(ve.ProgressBar,{className:Ae()("yst-length-progress-bar",o,e),progress:s,min:0,max:t})};Xt.propTypes={className:_().string,progress:_().number.isRequired,max:_().number.isRequired,score:_().number.isRequired};const er=({idSuffix:e,mode:s,onChange:t,disabled:r})=>{const o=(0,w.useCallback)((({target:e})=>e.checked&&t(e.value)),[t]);return(0,C.jsxs)(ve.RadioGroup,{id:`yst-ai-mode__${e}`,className:"yst-ai-mode yst-pt-2 lg:yst-pt-0",disabled:r,children:[(0,C.jsx)(ve.RadioGroup.Radio,{id:`yst-ai-mode__mobile__${e}`,name:`yst-ai-mode__${e}`,label:(0,d.__)("Mobile result","wordpress-seo"),value:st.mobile,checked:s===st.mobile,onChange:o,disabled:r}),(0,C.jsx)(ve.RadioGroup.Radio,{id:`yst-ai-mode__desktop__${e}`,name:`yst-ai-mode__${e}`,label:(0,d.__)("Desktop result","wordpress-seo"),value:st.desktop,checked:s===st.desktop,onChange:o,disabled:r})]})};er.propTypes={idSuffix:_().string.isRequired,mode:_().oneOf(Object.keys(st)).isRequired,onChange:_().func.isRequired,disabled:_().bool.isRequired};const sr=({title:e,description:s,showPreviewSkeleton:t})=>(0,C.jsxs)("div",{children:[(0,C.jsx)("div",{className:"yst-flex yst-mb-6",children:(0,C.jsx)(ve.Label,{as:"span",className:"yst-flex-grow yst-cursor-default",children:(0,d.__)("Social preview","wordpress-seo")})}),t?(0,C.jsx)(Vr,{}):(0,C.jsx)(Gr,{title:e,description:s})]});sr.propTypes={title:_().string.isRequired,description:_().string.isRequired,showPreviewSkeleton:_().bool.isRequired};const tr=v().p` color: #606770; flex-shrink: 0; font-size: 12px; @@ -259,7 +258,7 @@ justify-content: ${e=>"landscape"===e.mode?"flex-start":"center"}; font-size: 12px; overflow: hidden; -`;class kr extends ke.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=_e().createRef(),this.onImageLoaded=this.onImageLoaded.bind(this),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}onImageLoaded(e){this.setState({imageMode:e})}getTitleLineCount(){return this.facebookTitleRef.current.offsetHeight/20}maybeSetMaxLineCount(){const{imageMode:e,maxLineCount:s}=this.state,t="landscape"===e?2:5;t!==s&&this.setState({maxLineCount:t})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:s,imageMode:t}=this.state,r=this.getTitleLineCount();let o=s-r;"portrait"===t&&(o=5===r?0:4),o!==e&&this.setState({descriptionLineCount:o})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:s,descriptionLineCount:t}=this.state;return(0,C.jsxs)(br,{id:"facebookPreview",mode:e,children:[(0,C.jsx)(yr,{src:this.props.imageUrl||this.props.imageFallbackUrl,alt:this.props.alt,onImageLoaded:this.onImageLoaded,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,C.jsxs)(vr,{mode:e,children:[(0,C.jsx)(or,{siteUrl:this.props.siteUrl,mode:e}),(0,C.jsx)(xr,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:s,children:this.props.title}),t>0&&(0,C.jsx)(fr,{maxWidth:wr(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:t,children:this.props.description})]})]})}}kr.propTypes={siteUrl:_().string.isRequired,title:_().string.isRequired,description:_().string,imageUrl:_().string,imageFallbackUrl:_().string,alt:_().string,onSelect:_().func,onImageClick:_().func,onMouseHover:_().func},kr.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const _r=kr,jr=v().div` +`;class kr extends ke.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=_e().createRef(),this.onImageLoaded=this.onImageLoaded.bind(this),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}onImageLoaded(e){this.setState({imageMode:e})}getTitleLineCount(){return this.facebookTitleRef.current.offsetHeight/20}maybeSetMaxLineCount(){const{imageMode:e,maxLineCount:s}=this.state,t="landscape"===e?2:5;t!==s&&this.setState({maxLineCount:t})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:s,imageMode:t}=this.state,r=this.getTitleLineCount();let o=s-r;"portrait"===t&&(o=5===r?0:4),o!==e&&this.setState({descriptionLineCount:o})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:s,descriptionLineCount:t}=this.state;return(0,C.jsxs)(br,{id:"facebookPreview",mode:e,children:[(0,C.jsx)(yr,{src:this.props.imageUrl||this.props.imageFallbackUrl,alt:this.props.alt,onImageLoaded:this.onImageLoaded,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,C.jsxs)(vr,{mode:e,children:[(0,C.jsx)(or,{siteUrl:this.props.siteUrl,mode:e}),(0,C.jsx)(xr,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:s,children:this.props.title}),t>0&&(0,C.jsx)(fr,{maxWidth:wr(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:t,children:this.props.description})]})]})}}kr.propTypes={siteUrl:_().string.isRequired,title:_().string.isRequired,description:_().string,imageUrl:_().string,imageFallbackUrl:_().string,alt:_().string,onSelect:_().func,onImageClick:_().func,onMouseHover:_().func},kr.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const _r=kr,Sr=v().div` text-transform: lowercase; color: rgb(83, 100, 113); white-space: nowrap; @@ -270,7 +269,7 @@ display: flex; flex-direction: row; align-items: flex-end; -`,Sr=e=>(0,C.jsx)(jr,{children:(0,C.jsx)("span",{children:e.siteUrl})});Sr.propTypes={siteUrl:_().string.isRequired};const Rr=Sr,Cr=(e,s=!0)=>e?`\n\t\t\tmax-width: ${J.TWITTER_IMAGE_SIZES.landscapeWidth}px;\n\t\t\t${s?"border-bottom: 1px solid #E1E8ED;":""}\n\t\t\tborder-radius: 14px 14px 0 0;\n\t\t\t`:`\n\t\twidth: ${J.TWITTER_IMAGE_SIZES.squareWidth}px;\n\t\t${s?"border-right: 1px solid #E1E8ED;":""}\n\t\tborder-radius: 14px 0 0 14px;\n\t\t`,Ir=v().div` +`,jr=e=>(0,C.jsx)(Sr,{children:(0,C.jsx)("span",{children:e.siteUrl})});jr.propTypes={siteUrl:_().string.isRequired};const Rr=jr,Cr=(e,s=!0)=>e?`\n\t\t\tmax-width: ${J.TWITTER_IMAGE_SIZES.landscapeWidth}px;\n\t\t\t${s?"border-bottom: 1px solid #E1E8ED;":""}\n\t\t\tborder-radius: 14px 14px 0 0;\n\t\t\t`:`\n\t\twidth: ${J.TWITTER_IMAGE_SIZES.squareWidth}px;\n\t\t${s?"border-right: 1px solid #E1E8ED;":""}\n\t\tborder-radius: 14px 0 0 14px;\n\t\t`,Ir=v().div` position: relative; box-sizing: content-box; overflow: hidden; @@ -361,7 +360,7 @@ `,$r=v()(qr)` flex-direction: row; height: 125px; -`;class Br extends ke.Component{constructor(e){super(e),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}render(){const{isLarge:e,imageUrl:s,imageFallbackUrl:t,alt:r,title:o,description:i,siteUrl:a}=this.props,n=e?Or:$r;return(0,C.jsxs)(n,{id:"twitterPreview",children:[(0,C.jsx)(Nr,{src:s||t,alt:r,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,C.jsxs)(Pr,{children:[(0,C.jsx)(Rr,{siteUrl:a}),(0,C.jsx)(Ar,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,children:o}),(0,C.jsx)(Fr,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,children:i})]})]})}}Br.propTypes={siteUrl:_().string.isRequired,title:_().string.isRequired,description:_().string,isLarge:_().bool,imageUrl:_().string,imageFallbackUrl:_().string,alt:_().string,onSelect:_().func,onImageClick:_().func,onMouseHover:_().func},Br.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const Ur=Br,Hr=window.yoast.replacementVariableEditor;class Dr extends ke.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?_r:Ur,this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},(()=>this.setEditorFocus(e)))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,s){switch(e){case"title":this.titleEditorRef=s;break;case"description":this.descriptionEditorRef=s}}render(){const{onDescriptionChange:e,onTitleChange:s,onSelectImageClick:t,onRemoveImageClick:r,socialMediumName:o,imageWarnings:i,siteUrl:a,description:n,descriptionInputPlaceholder:l,descriptionPreviewFallback:c,imageUrl:d,imageFallbackUrl:u,alt:p,title:h,titleInputPlaceholder:m,titlePreviewFallback:g,replacementVariables:y,recommendedReplacementVariables:x,applyReplacementVariables:f,onReplacementVariableSearchChange:w,isPremium:b,isLarge:v,socialPreviewLabel:k,idSuffix:_,activeMetaTabId:S}=this.props,R=f({title:h||g,description:n||c});return(0,C.jsxs)(_e().Fragment,{children:[k&&(0,C.jsx)(j.SimulatedLabel,{children:k}),(0,C.jsx)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:t,siteUrl:a,title:R.title,description:R.description,imageUrl:d,imageFallbackUrl:u,alt:p,isLarge:v,activeMetaTabId:S}),(0,C.jsx)(J.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:o,title:h,titleInputPlaceholder:m,onRemoveImageClick:r,imageSelected:!!d,imageUrl:d,imageFallbackUrl:u,onTitleChange:s,onSelectImageClick:t,description:n,descriptionInputPlaceholder:l,imageWarnings:i,replacementVariables:y,recommendedReplacementVariables:x,onReplacementVariableSearchChange:w,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:b,setEditorRef:this.setEditorRef,idSuffix:_})]})}}Dr.propTypes={title:_().string.isRequired,onTitleChange:_().func.isRequired,description:_().string.isRequired,onDescriptionChange:_().func.isRequired,imageUrl:_().string.isRequired,imageFallbackUrl:_().string.isRequired,onSelectImageClick:_().func.isRequired,onRemoveImageClick:_().func.isRequired,socialMediumName:_().string.isRequired,alt:_().string,isPremium:_().bool,imageWarnings:_().array,isLarge:_().bool,siteUrl:_().string,descriptionInputPlaceholder:_().string,titleInputPlaceholder:_().string,descriptionPreviewFallback:_().string,titlePreviewFallback:_().string,replacementVariables:Hr.replacementVariablesShape,recommendedReplacementVariables:Hr.recommendedReplacementVariablesShape,applyReplacementVariables:_().func,onReplacementVariableSearchChange:_().func,socialPreviewLabel:_().string,idSuffix:_().string,activeMetaTabId:_().string},Dr.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const Wr={},zr=(e,s,{log:t=console.warn}={})=>{Wr[e]||(Wr[e]=!0,t(s))},Kr=(e,s=l.noop)=>{const t={};for(const r in e)Object.hasOwn(e,r)&&Object.defineProperty(t,r,{set:t=>{e[r]=t,s("set",r,t)},get:()=>(s("get",r),e[r])});return t};Kr({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},((e,s)=>zr(`@yoast/social-metadata-previews/TWITTER_IMAGE_SIZES/${e}/${s}`,`[@yoast/social-metadata-previews] "TWITTER_IMAGE_SIZES.${s}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`))),Kr({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},((e,s)=>zr(`@yoast/social-metadata-previews/FACEBOOK_IMAGE_SIZES/${e}/${s}`,`[@yoast/social-metadata-previews] "FACEBOOK_IMAGE_SIZES.${s}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`)));const Gr=({title:e,description:s})=>{const t=(0,he.useSelect)((e=>e(zs).getSiteUrl()),[]),r=(0,he.useSelect)((e=>e(zs).getFacebookImageUrl()),[]),o=(0,he.useSelect)((e=>e(zs).getEditorDataImageFallback()),[]),i=(0,he.useSelect)((e=>e(zs).getFacebookAltText()),[]);return(0,C.jsx)("div",{className:"yst-bg-slate-200 yst-p-2 yst--mx-6 yst-mx-auto",children:(0,C.jsx)(_r,{title:e,description:s,siteUrl:t,imageUrl:r,imageFallbackUrl:o,alt:i,onSelect:l.noop,onImageClick:l.noop,onMouseHover:l.noop})})};Gr.propTypes={title:_().string.isRequired,description:_().string.isRequired};const Vr=()=>(0,C.jsxs)("div",{className:"yst-flex yst-flex-col yst-w-[527px] yst-border yst-mx-auto",children:[(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-[273px] yst-w-full yst-rounded-none yst-border yst-border-dashed"}),(0,C.jsxs)("div",{className:"yst-w-full yst-p-4 yst-space-y-1",children:[(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-3 yst-w-1/3"}),(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-5 yst-w-10/12"}),(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-3 yst-w-full"})]})]}),Yr=({children:e,onRetry:s})=>{const{onClose:t}=(0,ve.useModalContext)();return(0,C.jsxs)(w.Fragment,{children:[e,(0,C.jsxs)("div",{className:"yst-mt-6 yst-mb-1 yst-flex yst-space-x-3 rtl:yst-space-x-reverse yst-place-content-end",children:[(0,C.jsx)(ve.Button,{variant:"secondary",onClick:t,children:(0,d.__)("Close","wordpress-seo")}),(0,C.jsx)(ve.Button,{variant:"primary",onClick:s,children:(0,d.__)("Try again","wordpress-seo")})]})]})};Yr.propTypes={children:_().node.isRequired,onRetry:_().func.isRequired};const Zr=({errorCode:e,errorIdentifier:s,invalidSubscriptions:t=[],showActions:r=!1,onRetry:o=l.noop,errorMessage:i=""})=>{switch(e){case 400:switch(s){case"AI_CONTENT_FILTER":return(0,C.jsx)(Ft,{});case"NOT_ENOUGH_CONTENT":return(0,C.jsx)(Nt,{});case"SITE_UNREACHABLE":return(0,C.jsx)($t,{});case"WP_HTTP_REQUEST_ERROR":return r?(0,C.jsx)(Yr,{onRetry:o,children:(0,C.jsx)(qt,{errorMessage:i})}):(0,C.jsx)(qt,{errorMessage:i});default:return r?(0,C.jsx)(Yr,{onRetry:o,children:(0,C.jsx)(Lt,{})}):(0,C.jsx)(Lt,{})}case 402:return(0,C.jsx)(Pt,{invalidSubscriptions:t});case 408:return r?(0,C.jsx)(Yr,{onRetry:o,children:(0,C.jsx)(At,{})}):(0,C.jsx)(At,{});case 429:return"USAGE_LIMIT_REACHED"===s?(0,C.jsx)(Pt,{invalidSubscriptions:t}):(0,C.jsx)(Tt,{});case 410:return(0,C.jsx)(Ot,{});default:return r?(0,C.jsx)(Yr,{onRetry:o,children:(0,C.jsx)(Lt,{})}):(0,C.jsx)(Lt,{})}};Zr.propTypes={errorCode:_().number.isRequired,errorIdentifier:_().string.isRequired,invalidSubscriptions:_().array,showActions:_().bool,onRetry:_().func,errorMessage:_().string};const Qr=_().shape({value:_().string.isRequired,label:_().node.isRequired}),Jr=({id:e,name:s,suggestion:t,isChecked:r,onChange:o})=>{const i=(0,w.useCallback)((()=>o(t.value)),[t,o]);return(0,C.jsxs)("label",{htmlFor:e,className:Ae()("yst-flex yst-p-4 yst-items-center yst-border first:yst-rounded-t-md last:yst-rounded-b-md",r&&"yst-z-10 yst-border-primary-500"),children:[(0,C.jsx)("input",{type:"radio",id:e,name:s,className:"yst-radio__input",value:t.value,checked:r,onChange:i}),(0,C.jsx)("div",{className:Ae()("yst-label yst-radio__label yst-flex yst-flex-wrap yst-items-center",!r&&"yst-text-slate-600"),children:t.label})]})};Jr.propTypes={id:_().string.isRequired,name:_().string.isRequired,suggestion:Qr.isRequired,isChecked:_().bool.isRequired,onChange:_().func.isRequired};const Xr=({idSuffix:e,suggestions:s,selected:t,onChange:r})=>(0,C.jsx)("div",{children:(0,C.jsx)(ve.RadioGroup,{className:"yst-suggestions-radio-group yst-flex yst-flex-col",id:`yst-ai-suggestions-radio-group__${e}`,children:s.map(((s,o)=>(0,C.jsx)(Jr,{id:`yst-ai-suggestions-radio-${e}__${o}`,name:`ai-suggestion__${e}`,isChecked:s.value===t,onChange:r,suggestion:s},`yst-ai-suggestions-radio-${e}__${o}`)))})});Xr.propTypes={idSuffix:_().string.isRequired,suggestions:_().arrayOf(Qr).isRequired,selected:_().string.isRequired,onChange:_().func.isRequired};const eo=[["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-9/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-7/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-10/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-11/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-8/12"]],so=({suggestionClassNames:e=eo})=>(0,C.jsx)("div",{className:"yst-flex yst-flex-col yst--space-y-[1px]",children:e.map(((e,s)=>(0,C.jsxs)("div",{className:"yst-flex yst-p-4 yst-gap-x-3 yst-items-center yst-border first:yst-rounded-t-md last:yst-rounded-b-md",children:[(0,C.jsx)("input",{type:"radio",disabled:!0,className:"yst-my-0.5"}),(0,C.jsx)("div",{className:"yst-flex yst-flex-col yst-w-full",children:e.map(((e,t)=>(0,C.jsx)(ve.SkeletonLoader,{className:e},`yst-ai-suggestion-radio-skeleton-${s}__${t}`)))})]},`yst-ai-suggestion-radio-skeleton__${s}`)))});so.propTypes={suggestionClassNames:_().arrayOf(_().arrayOf(_().string))};const to="ai_generator_tip_notification",ro=()=>{const e=(0,he.useSelect)((e=>e(zs).isAlertDismissed(to)),[]),s=(0,he.useSelect)((e=>e(zs).getEditorDataContent()),[]),t=(0,he.useSelect)((e=>e(zs).getIsWooProductEntity()),[]),[r,,,o]=(0,ve.useToggleState)(!1),{editType:i,contentType:a}=xt(),{dismissAlert:n}=(0,he.useDispatch)(zs),l=(0,w.useCallback)((()=>{n(to)}),[n]),c=(0,w.useMemo)((()=>i===Zs?(0,d.__)("%1$sTip%2$s: Improve the accuracy of your generated AI descriptions by writing more content in your page.","wordpress-seo"):(0,d.__)("%1$sTip%2$s: Improve the accuracy of your generated AI titles by writing more content in your page.","wordpress-seo") +`;class Br extends ke.Component{constructor(e){super(e),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}render(){const{isLarge:e,imageUrl:s,imageFallbackUrl:t,alt:r,title:o,description:i,siteUrl:a}=this.props,n=e?Or:$r;return(0,C.jsxs)(n,{id:"twitterPreview",children:[(0,C.jsx)(Nr,{src:s||t,alt:r,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,C.jsxs)(Pr,{children:[(0,C.jsx)(Rr,{siteUrl:a}),(0,C.jsx)(Ar,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,children:o}),(0,C.jsx)(Fr,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,children:i})]})]})}}Br.propTypes={siteUrl:_().string.isRequired,title:_().string.isRequired,description:_().string,isLarge:_().bool,imageUrl:_().string,imageFallbackUrl:_().string,alt:_().string,onSelect:_().func,onImageClick:_().func,onMouseHover:_().func},Br.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const Ur=Br,Hr=window.yoast.replacementVariableEditor;class Dr extends ke.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?_r:Ur,this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},(()=>this.setEditorFocus(e)))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,s){switch(e){case"title":this.titleEditorRef=s;break;case"description":this.descriptionEditorRef=s}}render(){const{onDescriptionChange:e,onTitleChange:s,onSelectImageClick:t,onRemoveImageClick:r,socialMediumName:o,imageWarnings:i,siteUrl:a,description:n,descriptionInputPlaceholder:l,descriptionPreviewFallback:c,imageUrl:d,imageFallbackUrl:u,alt:p,title:h,titleInputPlaceholder:m,titlePreviewFallback:g,replacementVariables:y,recommendedReplacementVariables:x,applyReplacementVariables:f,onReplacementVariableSearchChange:w,isPremium:b,isLarge:v,socialPreviewLabel:k,idSuffix:_,activeMetaTabId:j}=this.props,R=f({title:h||g,description:n||c});return(0,C.jsxs)(_e().Fragment,{children:[k&&(0,C.jsx)(S.SimulatedLabel,{children:k}),(0,C.jsx)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:t,siteUrl:a,title:R.title,description:R.description,imageUrl:d,imageFallbackUrl:u,alt:p,isLarge:v,activeMetaTabId:j}),(0,C.jsx)(J.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:o,title:h,titleInputPlaceholder:m,onRemoveImageClick:r,imageSelected:!!d,imageUrl:d,imageFallbackUrl:u,onTitleChange:s,onSelectImageClick:t,description:n,descriptionInputPlaceholder:l,imageWarnings:i,replacementVariables:y,recommendedReplacementVariables:x,onReplacementVariableSearchChange:w,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:b,setEditorRef:this.setEditorRef,idSuffix:_})]})}}Dr.propTypes={title:_().string.isRequired,onTitleChange:_().func.isRequired,description:_().string.isRequired,onDescriptionChange:_().func.isRequired,imageUrl:_().string.isRequired,imageFallbackUrl:_().string.isRequired,onSelectImageClick:_().func.isRequired,onRemoveImageClick:_().func.isRequired,socialMediumName:_().string.isRequired,alt:_().string,isPremium:_().bool,imageWarnings:_().array,isLarge:_().bool,siteUrl:_().string,descriptionInputPlaceholder:_().string,titleInputPlaceholder:_().string,descriptionPreviewFallback:_().string,titlePreviewFallback:_().string,replacementVariables:Hr.replacementVariablesShape,recommendedReplacementVariables:Hr.recommendedReplacementVariablesShape,applyReplacementVariables:_().func,onReplacementVariableSearchChange:_().func,socialPreviewLabel:_().string,idSuffix:_().string,activeMetaTabId:_().string},Dr.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const Wr={},zr=(e,s,{log:t=console.warn}={})=>{Wr[e]||(Wr[e]=!0,t(s))},Kr=(e,s=l.noop)=>{const t={};for(const r in e)Object.hasOwn(e,r)&&Object.defineProperty(t,r,{set:t=>{e[r]=t,s("set",r,t)},get:()=>(s("get",r),e[r])});return t};Kr({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},((e,s)=>zr(`@yoast/social-metadata-previews/TWITTER_IMAGE_SIZES/${e}/${s}`,`[@yoast/social-metadata-previews] "TWITTER_IMAGE_SIZES.${s}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`))),Kr({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},((e,s)=>zr(`@yoast/social-metadata-previews/FACEBOOK_IMAGE_SIZES/${e}/${s}`,`[@yoast/social-metadata-previews] "FACEBOOK_IMAGE_SIZES.${s}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`)));const Gr=({title:e,description:s})=>{const t=(0,he.useSelect)((e=>e(zs).getSiteUrl()),[]),r=(0,he.useSelect)((e=>e(zs).getFacebookImageUrl()),[]),o=(0,he.useSelect)((e=>e(zs).getEditorDataImageFallback()),[]),i=(0,he.useSelect)((e=>e(zs).getFacebookAltText()),[]);return(0,C.jsx)("div",{className:"yst-bg-slate-200 yst-p-2 yst--mx-6 yst-mx-auto",children:(0,C.jsx)(_r,{title:e,description:s,siteUrl:t,imageUrl:r,imageFallbackUrl:o,alt:i,onSelect:l.noop,onImageClick:l.noop,onMouseHover:l.noop})})};Gr.propTypes={title:_().string.isRequired,description:_().string.isRequired};const Vr=()=>(0,C.jsxs)("div",{className:"yst-flex yst-flex-col yst-w-[527px] yst-border yst-mx-auto",children:[(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-[273px] yst-w-full yst-rounded-none yst-border yst-border-dashed"}),(0,C.jsxs)("div",{className:"yst-w-full yst-p-4 yst-space-y-1",children:[(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-3 yst-w-1/3"}),(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-5 yst-w-10/12"}),(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-3 yst-w-full"})]})]}),Yr=({children:e,onRetry:s})=>{const{onClose:t}=(0,ve.useModalContext)();return(0,C.jsxs)(w.Fragment,{children:[e,(0,C.jsxs)("div",{className:"yst-mt-6 yst-mb-1 yst-flex yst-space-x-3 rtl:yst-space-x-reverse yst-place-content-end",children:[(0,C.jsx)(ve.Button,{variant:"secondary",onClick:t,children:(0,d.__)("Close","wordpress-seo")}),(0,C.jsx)(ve.Button,{variant:"primary",onClick:s,children:(0,d.__)("Try again","wordpress-seo")})]})]})};Yr.propTypes={children:_().node.isRequired,onRetry:_().func.isRequired};const Zr=({errorCode:e,errorIdentifier:s,invalidSubscriptions:t=[],showActions:r=!1,onRetry:o=l.noop,errorMessage:i=""})=>{switch(e){case 400:switch(s){case"AI_CONTENT_FILTER":return(0,C.jsx)(Ft,{});case"NOT_ENOUGH_CONTENT":return(0,C.jsx)(Nt,{});case"SITE_UNREACHABLE":return(0,C.jsx)($t,{});case"WP_HTTP_REQUEST_ERROR":return r?(0,C.jsx)(Yr,{onRetry:o,children:(0,C.jsx)(qt,{errorMessage:i})}):(0,C.jsx)(qt,{errorMessage:i});default:return r?(0,C.jsx)(Yr,{onRetry:o,children:(0,C.jsx)(Lt,{})}):(0,C.jsx)(Lt,{})}case 402:return(0,C.jsx)(Pt,{invalidSubscriptions:t});case 408:return r?(0,C.jsx)(Yr,{onRetry:o,children:(0,C.jsx)(At,{})}):(0,C.jsx)(At,{});case 429:return"USAGE_LIMIT_REACHED"===s?(0,C.jsx)(Pt,{invalidSubscriptions:t}):(0,C.jsx)(Tt,{});case 410:return(0,C.jsx)(Ot,{});default:return r?(0,C.jsx)(Yr,{onRetry:o,children:(0,C.jsx)(Lt,{})}):(0,C.jsx)(Lt,{})}};Zr.propTypes={errorCode:_().number.isRequired,errorIdentifier:_().string.isRequired,invalidSubscriptions:_().array,showActions:_().bool,onRetry:_().func,errorMessage:_().string};const Qr=_().shape({value:_().string.isRequired,label:_().node.isRequired}),Jr=({id:e,name:s,suggestion:t,isChecked:r,onChange:o})=>{const i=(0,w.useCallback)((()=>o(t.value)),[t,o]);return(0,C.jsxs)("label",{htmlFor:e,className:Ae()("yst-flex yst-p-4 yst-items-center yst-border first:yst-rounded-t-md last:yst-rounded-b-md",r&&"yst-z-10 yst-border-primary-500"),children:[(0,C.jsx)("input",{type:"radio",id:e,name:s,className:"yst-radio__input",value:t.value,checked:r,onChange:i}),(0,C.jsx)("div",{className:Ae()("yst-label yst-radio__label yst-flex yst-flex-wrap yst-items-center",!r&&"yst-text-slate-600"),children:t.label})]})};Jr.propTypes={id:_().string.isRequired,name:_().string.isRequired,suggestion:Qr.isRequired,isChecked:_().bool.isRequired,onChange:_().func.isRequired};const Xr=({idSuffix:e,suggestions:s,selected:t,onChange:r})=>(0,C.jsx)("div",{children:(0,C.jsx)(ve.RadioGroup,{className:"yst-suggestions-radio-group yst-flex yst-flex-col",id:`yst-ai-suggestions-radio-group__${e}`,children:s.map(((s,o)=>(0,C.jsx)(Jr,{id:`yst-ai-suggestions-radio-${e}__${o}`,name:`ai-suggestion__${e}`,isChecked:s.value===t,onChange:r,suggestion:s},`yst-ai-suggestions-radio-${e}__${o}`)))})});Xr.propTypes={idSuffix:_().string.isRequired,suggestions:_().arrayOf(Qr).isRequired,selected:_().string.isRequired,onChange:_().func.isRequired};const eo=[["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-9/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-7/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-10/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-11/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-8/12"]],so=({suggestionClassNames:e=eo})=>(0,C.jsx)("div",{className:"yst-flex yst-flex-col yst--space-y-[1px]",children:e.map(((e,s)=>(0,C.jsxs)("div",{className:"yst-flex yst-p-4 yst-gap-x-3 yst-items-center yst-border first:yst-rounded-t-md last:yst-rounded-b-md",children:[(0,C.jsx)("input",{type:"radio",disabled:!0,className:"yst-my-0.5"}),(0,C.jsx)("div",{className:"yst-flex yst-flex-col yst-w-full",children:e.map(((e,t)=>(0,C.jsx)(ve.SkeletonLoader,{className:e},`yst-ai-suggestion-radio-skeleton-${s}__${t}`)))})]},`yst-ai-suggestion-radio-skeleton__${s}`)))});so.propTypes={suggestionClassNames:_().arrayOf(_().arrayOf(_().string))};const to="ai_generator_tip_notification",ro=()=>{const e=(0,he.useSelect)((e=>e(zs).isAlertDismissed(to)),[]),s=(0,he.useSelect)((e=>e(zs).getEditorDataContent()),[]),t=(0,he.useSelect)((e=>e(zs).getIsWooProductEntity()),[]),[r,,,o]=(0,ve.useToggleState)(!1),{editType:i,contentType:a}=xt(),{dismissAlert:n}=(0,he.useDispatch)(zs),l=(0,w.useCallback)((()=>{n(to)}),[n]),c=(0,w.useMemo)((()=>i===Zs?(0,d.__)("%1$sTip%2$s: Improve the accuracy of your generated AI descriptions by writing more content in your page.","wordpress-seo"):(0,d.__)("%1$sTip%2$s: Improve the accuracy of your generated AI titles by writing more content in your page.","wordpress-seo") /* translators: %1$s and %2$s expand to opening and closing of a span in order to emphasise the word. */),[i]),u=(0,w.useMemo)((()=>((e,s)=>e||s===Js?150:300)(t,a)),[a,t]);return e||r||s.length>u?null:(0,C.jsxs)(ve.Notifications.Notification,{id:"ai-generator-content-tip",variant:"info",dismissScreenReaderLabel:(0,d.__)("Dismiss","wordpress-seo"),children:[Re((0,d.sprintf)(c,"<span>","</span>"),{span:(0,C.jsx)("span",{className:"yst-font-medium yst-text-slate-800"})}),(0,C.jsxs)("div",{className:"yst-flex yst-mt-3 yst--ms-3 yst-gap-1",children:[(0,C.jsx)(ve.Button,{type:"button",variant:"tertiary",onClick:l,children:(0,d.__)("Don’t show again","wordpress-seo")}),(0,C.jsx)(ve.Button,{type:"button",variant:"tertiary",className:"yst-text-slate-800",onClick:o,children:(0,d.__)("Dismiss","wordpress-seo")})]})]})},oo=({title:e,description:s,showPreviewSkeleton:t})=>(0,C.jsxs)("div",{children:[(0,C.jsx)("div",{className:"yst-flex yst-mb-6",children:(0,C.jsx)(ve.Label,{as:"span",className:"yst-flex-grow yst-cursor-default",children:(0,d.__)("X preview","wordpress-seo")})}),t?(0,C.jsx)(ao,{}):(0,C.jsx)(io,{title:e,description:s})]});oo.propTypes={title:_().string.isRequired,description:_().string.isRequired,showPreviewSkeleton:_().bool.isRequired};const io=({title:e,description:s})=>{const t=(0,he.useSelect)((e=>e(zs).getSiteUrl()),[]),r=(0,he.useSelect)((e=>e(zs).getTwitterImageUrl()),[]),o=(0,he.useSelect)((e=>e(zs).getFacebookImageUrl()),[]),i=(0,he.useSelect)((e=>e(zs).getEditorDataImageFallback()),[]),a=(0,he.useSelect)((e=>e(zs).getTwitterImageType()),[]),n=(0,he.useSelect)((e=>e(zs).getTwitterAltText()),[]);return(0,C.jsx)("div",{className:"yst-bg-slate-200 yst-p-2 yst--mx-6",children:(0,C.jsx)(Ur,{title:e,description:s,siteUrl:t,imageUrl:r,imageFallbackUrl:o||i,isLarge:"summary"!==a,alt:n,onSelect:l.noop,onImageClick:l.noop,onMouseHover:l.noop})})};io.propTypes={title:_().string.isRequired,description:_().string.isRequired};const ao=()=>(0,C.jsxs)("div",{className:"yst-flex yst-flex-col yst-max-h-[370px] yst-w-[507px] yst-border yst-rounded-t-[14px] yst-overflow-hidden yst-mx-auto",children:[(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-[265px] yst-w-full yst-rounded-none yst-border yst-border-dashed"}),(0,C.jsxs)("div",{className:"yst-w-full yst-p-4 yst-space-y-1",children:[(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-3 yst-w-1/3"}),(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-5 yst-w-10/12"}),(0,C.jsx)(ve.SkeletonLoader,{className:"yst-h-3 yst-w-full"})]})]}),no="yst-mt-1 yst-mb-3",lo="yst-flex yst-justify-end yst--me-8 yst-gap-3 yst--ms-2",co=({onClose:e})=>(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("p",{className:no,children:(0,d.__)("As long as this is a beta feature, you get unlimited sparks.","wordpress-seo")}),(0,C.jsx)("div",{className:lo,children:(0,C.jsx)(ve.Button,{type:"button",variant:"primary",size:"small",onClick:e,children:(0,d.__)("Got it!","wordpress-seo")})})]}),uo=({onClose:e,upsellLink:s,isWooProductEntity:t=!1,ctbId:r="f6a84663-465f-4cb5-8ba5-f7a6d72224b2"})=>{const o=(0,ve.useSvgAria)();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("p",{className:no,children:(0,d.sprintf)(/* translators: %s expands to Yoast SEO Premium or Yoast WooCommerce SEO. */ (0,d.__)("Keep the momentum going, unlock unlimited sparks with %s!","wordpress-seo"),t?"Yoast WooCommerce SEO":"Yoast SEO Premium")}),(0,C.jsxs)("div",{className:lo,children:[(0,C.jsx)(ve.Button,{type:"button",variant:"tertiary",size:"small",onClick:e,children:(0,d.__)("Close","wordpress-seo")}),(0,C.jsxs)(ve.Button,{as:"a",size:"small",variant:"upsell",href:s,target:"_blank",rel:"noopener noreferrer","data-action":"load-nfd-ctb","data-ctb-id":r,children:[(0,C.jsx)(Ne,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-me-2 yst-shrink-0",...o}),(0,d.sprintf)(/* translators: %1$s expands to Yoast SEO Premium or Yoast WooCommerce SEO. */ (0,d.__)("Unlock with %1$s","wordpress-seo"),t?"Yoast WooCommerce SEO":"Yoast SEO Premium"),(0,C.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ @@ -1,22 +1,21 @@ -(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var r=typeof s;if("string"===r||"number"===r)e.push(s);else if(Array.isArray(s)){if(s.length){var n=o.apply(null,s);n&&e.push(n)}}else if("object"===r){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var a in s)i.call(s,a)&&s[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(s=function(){return o}.apply(t,[]))||(e.exports=s)}()}},t={};function s(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};s.r(e),s.d(e,{DISMISS_ALERT:()=>rl,NEW_REQUEST:()=>al,SNIPPET_EDITOR_FIND_CUSTOM_FIELDS:()=>nl,wistiaEmbedPermission:()=>ll});var t={};s.r(t),s.d(t,{loadSnippetEditorData:()=>hl,updateData:()=>ul});var i={};s.r(i),s.d(i,{getSnippetEditorData:()=>vl,getSnippetEditorSlug:()=>_l});var o={};s.r(o),s.d(o,{getAnalysisData:()=>Il});var r={};s.r(r),s.d(r,{getWincherPermalink:()=>pc});var n={};s.r(n),s.d(n,{authorFirstName:()=>uc,authorLastName:()=>hc,category:()=>wc,categoryTitle:()=>fc,currentDate:()=>gc,currentDay:()=>mc,currentMonth:()=>yc,currentYear:()=>bc,date:()=>xc,excerpt:()=>_c,focusKeyphrase:()=>vc,id:()=>kc,modified:()=>Sc,name:()=>Rc,page:()=>Tc,pageNumber:()=>Ec,pageTotal:()=>jc,permalink:()=>Cc,postContent:()=>Ic,postDay:()=>Lc,postMonth:()=>Ac,postTypeNamePlural:()=>Dc,postTypeNameSingular:()=>Fc,postYear:()=>Pc,primaryCategory:()=>Oc,searchPhrase:()=>Mc,separator:()=>qc,siteDescription:()=>Nc,siteName:()=>Uc,tag:()=>Wc,term404:()=>$c,termDescription:()=>Bc,termHierarchy:()=>Kc,termTitle:()=>Hc,title:()=>Yc,userDescription:()=>Vc});const a=window.wp.data,l=window.wp.hooks,c=window.lodash,d=window.yoast.analysis;function p(){}const u=window.yoast.externals.redux;function h(e){return e.sort(((e,t)=>e._identifier.localeCompare(t._identifier)))}function g(){return(0,c.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}function m(){const e=g();return(0,c.get)(e,"contentLocale","en_US")}function y(){const e=g();return!0===(0,c.get)(e,"contentAnalysisActive",!1)}function w(){const e=g();return!0===(0,c.get)(e,"keywordAnalysisActive",!1)}function f(){const e=g();return!0===(0,c.get)(e,"inclusiveLanguageAnalysisActive",!1)}const b=window.yoast.featureFlag;class x{constructor(e){this.refresh=e,this.loaded=!1,this.preloadThreshold=3e3,this.plugins={},this.modifications={},this._registerPlugin=this._registerPlugin.bind(this),this._ready=this._ready.bind(this),this._reloaded=this._reloaded.bind(this),this._registerModification=this._registerModification.bind(this),this._registerAssessment=this._registerAssessment.bind(this),this._applyModifications=this._applyModifications.bind(this),setTimeout(this._pollLoadingPlugins.bind(this),1500)}_registerPlugin(e,t){return(0,c.isString)(e)?(0,c.isUndefined)(t)||(0,c.isObject)(t)?!1===this._validateUniqueness(e)?(console.error("Failed to register plugin. Plugin with name "+e+" already exists"),!1):(this.plugins[e]=t,!0):(console.error("Failed to register plugin "+e+". Expected parameters `options` to be a object."),!1):(console.error("Failed to register plugin. Expected parameter `pluginName` to be a string."),!1)}_ready(e){return(0,c.isString)(e)?(0,c.isUndefined)(this.plugins[e])?(console.error("Failed to modify status for plugin "+e+". The plugin was not properly registered."),!1):(this.plugins[e].status="ready",!0):(console.error("Failed to modify status for plugin "+e+". Expected parameter `pluginName` to be a string."),!1)}_reloaded(e){return(0,c.isString)(e)?(0,c.isUndefined)(this.plugins[e])?(console.error("Failed to reload Content Analysis for plugin "+e+". The plugin was not properly registered."),!1):(this.refresh(),!0):(console.error("Failed to reload Content Analysis for "+e+". Expected parameter `pluginName` to be a string."),!1)}_registerModification(e,t,s,i){if(!(0,c.isString)(e))return console.error("Failed to register modification for plugin "+s+". Expected parameter `modification` to be a string."),!1;if(!(0,c.isFunction)(t))return console.error("Failed to register modification for plugin "+s+". Expected parameter `callable` to be a function."),!1;if(!(0,c.isString)(s))return console.error("Failed to register modification for plugin "+s+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(s))return console.error("Failed to register modification for plugin "+s+". The integration has not finished loading yet."),!1;const o={callable:t,origin:s,priority:(0,c.isNumber)(i)?i:10};return(0,c.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(o),!0}_registerAssessment(e,t,s,i){return(0,c.isString)(t)?(0,c.isObject)(s)?(0,c.isString)(i)?(t=i+"-"+t,e.addAssessment(t,s),!0):(console.error("Failed to register assessment for plugin "+i+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+i+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+i+". Expected parameter `name` to be a string."),!1)}_applyModifications(e,t,s){let i=this.modifications[e];return!(0,c.isArray)(i)||i.length<1||(i=this._stripIllegalModifications(i),i.sort(((e,t)=>e.priority-t.priority)),(0,c.forEach)(i,(function(i){const o=i.callable(t,s);typeof o==typeof t?t=o:console.error("Modification with name "+e+" performed by plugin with name "+i.origin+" was ignored because the data that was returned by it was of a different type than the data we had passed it.")}))),t}_pollLoadingPlugins(e){e=(0,c.isUndefined)(e)?0:e,!0===this._allReady()?(this.loaded=!0,this.refresh()):e>=this.preloadThreshold?(this._pollTimeExceeded(),this.loaded=!0,this.refresh()):(e+=50,setTimeout(this._pollLoadingPlugins.bind(this,e),50))}_allReady(){return(0,c.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}_pollTimeExceeded(){(0,c.forEach)(this.plugins,(function(e,t){(0,c.isUndefined)(e.options)||"ready"===e.options.status||(console.error("Error: Plugin "+t+". did not finish loading in time."),delete this.plugins[t])}))}_stripIllegalModifications(e){return(0,c.forEach)(e,((t,s)=>{!1===this._validateOrigin(t.origin)&&delete e[s]})),e}_validateOrigin(e){return"ready"===this.plugins[e].status}_validateUniqueness(e){return(0,c.isUndefined)(this.plugins[e])}}let _=null;const v=()=>{if(null===_){const e=(0,a.dispatch)("yoast-seo/editor").runAnalysis;_=window.YoastSEO.app&&window.YoastSEO.app.pluggable?window.YoastSEO.app.pluggable:new x(e)}return _},k=e=>v()._ready(e),S=e=>v()._reloaded(e),R=(e,t,s,i)=>v()._registerModification(e,t,s,i),T=(e,t)=>v()._registerPlugin(e,t),E=(e,t,s)=>v().loaded?v()._applyModifications(e,t,s):t,j="yoastmark";function C(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function I(e,t,s){const i=e.dom;let o=e.getContent();if(o=d.markers.removeMarks(o),(0,c.isEmpty)(s))return void e.setContent(o);o=s[0].hasPosition()?function(e,t){if(!t)return"";for(let s=(e=(0,c.orderBy)(e,(e=>e._properties.position.startOffset),["asc"])).length-1;s>=0;s--){const i=e[s];C(i,t)||(t=i.applyWithPosition(t))}return t}(s,o):function(e,t,s,i){const{fieldsToMark:o,selectedHTML:r}=d.languageProcessing.getFieldsToMark(s,i);return(0,c.forEach)(s,(function(t){"acf_content"!==e.id&&(t._properties.marked=d.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=d.languageProcessing.normalizeHTML(t._properties.original)),o.length>0?r.forEach((e=>{const s=t.applyWithReplace(e);i=i.replace(e,s)})):i=t.applyWithReplace(i)})),i}(e,0,s,o),e.setContent(o),function(e){let t=e.getContent();t=t.replace(new RegExp("<yoastmark.+?>","g"),"").replace(new RegExp("</yoastmark>","g"),""),e.setContent(t)}(e);const r=i.select(j);(0,c.forEach)(r,(function(e){e.setAttribute("data-mce-bogus","1")}))}function L(e){return window.test=e,I.bind(null,e)}c.noop,c.noop,c.noop;const A="content";function P(e){if("undefined"==typeof tinyMCE||void 0===tinyMCE.editors||0===tinyMCE.editors.length)return!1;const t=tinyMCE.get(e);return null!==t&&!t.isHidden()}window.wp.annotations;const D=function(e){return(0,c.uniq)((0,c.flatten)(e.map((e=>{if(!(0,c.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()}))))},F=window.wp.richText,O=/(<([a-z]|\/)[^<>]+>)/gi,{htmlEntitiesRegex:M}=d.helpers.htmlEntities,q=e=>{let t=0;return(0,c.forEachRight)(e,(e=>{const[s]=e;let i=s.length;/^<\/?br/.test(s)&&(i-=1),t+=i})),t},N="<yoastmark class='yoast-text-mark'>",U="</yoastmark>",W='<yoastmark class="yoast-text-mark">';function $(e,t,s,i,o){const r=i.clientId,n=(0,F.create)({html:e,multilineTag:s.multilineTag,multilineWrapperTag:s.multilineWrapperTag}).text;return(0,c.flatMap)(o,(s=>{let o;return o=s.hasBlockPosition&&s.hasBlockPosition()?function(e,t,s,i,o){if(t===e.getBlockClientId()){let t=e.getBlockPositionStart(),r=e.getBlockPositionEnd();if(e.isMarkForFirstBlockSection()){const e=((e,t,s)=>{const i="yoast/faq-block"===s?'<strong class="schema-faq-question">':'<strong class="schema-how-to-step-name">';return{blockStartOffset:e-=i.length,blockEndOffset:t-=i.length}})(t,r,s);t=e.blockStartOffset,r=e.blockEndOffset}if(i.slice(t,r)===o.slice(t,r))return[{startOffset:t,endOffset:r}];const n=((e,t,s)=>{const i=s.slice(0,e),o=s.slice(0,t),r=((e,t,s,i)=>{const o=[...e.matchAll(O)];s-=q(o);const r=[...t.matchAll(O)];return{blockStartOffset:s,blockEndOffset:i-=q(r)}})(i,o,e,t),n=((e,t,s,i)=>{let o=[...e.matchAll(M)];return(0,c.forEachRight)(o,(e=>{const[,t]=e;s-=t.length})),o=[...t.matchAll(M)],(0,c.forEachRight)(o,(e=>{const[,t]=e;i-=t.length})),{blockStartOffset:s,blockEndOffset:i}})(i,o,e=r.blockStartOffset,t=r.blockEndOffset);return{blockStartOffset:e=n.blockStartOffset,blockEndOffset:t=n.blockEndOffset}})(t,r,i);return[{startOffset:n.blockStartOffset,endOffset:n.blockEndOffset}]}return[]}(s,r,i.name,e,n):function(e,t){const s=t.getOriginal().replace(/(<([^>]+)>)/gi,""),i=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),o=function(e,t,s=!0){const i=[];if(0===e.length)return i;let o,r=0;for(s||(t=t.toLowerCase(),e=e.toLowerCase());(o=e.indexOf(t,r))>-1;)i.push(o),r=o+t.length;return i}(e,s);if(0===o.length)return[];const r=function(e){let t=e.indexOf(N);const s=t>=0;s||(t=e.indexOf(W));let i=null;const o=[];for(;t>=0;){if(i=(e=s?e.replace(N,""):e.replace(W,"")).indexOf(U),i<t)return[];e=e.replace(U,""),o.push({startOffset:t,endOffset:i}),t=s?e.indexOf(N):e.indexOf(W),i=null}return o}(i),n=[];return r.forEach((e=>{o.forEach((i=>{const o=i+e.startOffset;let r=i+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(r=i+s.length),n.push({startOffset:o,endOffset:r})}))})),n}(n,s),o?o.map((e=>({...e,block:r,richTextIdentifier:t}))):[]}))}const B=e=>e[0].toUpperCase()+e.slice(1),K=(e,t,s,i,o)=>(e=e.map((e=>{const r=`${e.id}-${o[0]}`,n=`${e.id}-${o[1]}`,a=B(o[0]),l=B(o[1]),c=e[`json${a}`],d=e[`json${l}`],{marksForFirstSection:p,marksForSecondSection:u}=((e,t)=>({marksForFirstSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&e.isMarkForFirstBlockSection():e)),marksForSecondSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&!e.isMarkForFirstBlockSection():e))}))(t,e),h=$(c,r,s,i,p),g=$(d,n,s,i,u);return h.concat(g)})),(0,c.flattenDeep)(e)),H="yoast";let Y=[];const V={"core/paragraph":[{key:"content"}],"core/list":[{key:"values",multilineTag:"li",multilineWrapperTag:["ul","ol"]}],"core/list-item":[{key:"content"}],"core/heading":[{key:"content"}],"core/audio":[{key:"caption"}],"core/embed":[{key:"caption"}],"core/gallery":[{key:"caption"}],"core/image":[{key:"caption"}],"core/table":[{key:"caption"}],"core/video":[{key:"caption"}],"yoast/faq-block":[{key:"questions"}],"yoast/how-to-block":[{key:"steps"},{key:"jsonDescription"}]};function z(){const e=Y.shift();e&&((0,a.dispatch)("core/annotations").__experimentalAddAnnotation(e),G())}function G(){(0,c.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(z,{timeout:1e3}):setTimeout(z,150)}const Z=(e,t)=>{return(0,c.flatMap)((s=e.name,V.hasOwnProperty(s)?V[s]:[]),(s=>"yoast/faq-block"===e.name?((e,t,s)=>{const i=t.attributes[e.key];return 0===i.length?[]:K(i,s,e,t,["question","answer"])})(s,e,t):"yoast/how-to-block"===e.name?((e,t,s)=>{const i=t.attributes[e.key];if(i&&0===i.length)return[];const o=[];return"steps"===e.key&&o.push(K(i,s,e,t,["name","text"])),"jsonDescription"===e.key&&(s=s.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?!e.getBlockAttributeId():e)),o.push($(i,"description",e,t,s))),(0,c.flattenDeep)(o)})(s,e,t):function(e,t,s){const i=e.key,o=((e,t)=>{const s=e.attributes[t];return"string"==typeof s?s:(s||"").toString()})(t,i);return $(o,i,e,t,s)}(s,e,t)));var s};function Q(e,t){return(0,c.flatMap)(e,(e=>{const s=function(e){return e.innerBlocks.length>0}(e)?Q(e.innerBlocks,t):[];return Z(e,t).concat(s)}))}function X(e){Y=[],(0,a.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource(H);const t=D(e);if(0===e.length)return;let s=(0,a.select)("core/block-editor").getBlocks();var i;t.length>0&&(s=s.filter((e=>t.some((t=>"core/"+t===e.name))))),i=Q(s,e),Y=i.map((e=>({blockClientId:e.block,source:H,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}))),G()}function J(e,t){let s;P(A)&&((0,c.isUndefined)(s)&&(s=L(tinyMCE.get(A))),s(e,t)),(0,a.select)("core/block-editor")&&(0,c.isFunction)((0,a.select)("core/block-editor").getBlocks)&&(0,a.select)("core/annotations")&&(0,c.isFunction)((0,a.dispatch)("core/annotations").__experimentalAddAnnotation)&&(function(e,t){tinyMCE.editors.map((e=>L(e))).forEach((s=>s(e,t)))}(e,t),X(t)),(0,l.doAction)("yoast.analysis.applyMarks",t)}function ee(){const e=(0,a.select)("yoast-seo/editor").isMarkingAvailable(),t=(0,a.select)("yoast-seo/editor").getMarkerPauseStatus();return!e||t?c.noop:J}const te=(0,c.debounce)((async function(e,t){const{text:s,...i}=t,o=new d.Paper(s,i);try{const t=await e.analyze(o),{seo:s,readability:i,inclusiveLanguage:r}=t.result;if(s){const e=s[""];e.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(o,e.marks)})),e.results=h(e.results),(0,a.dispatch)("yoast-seo/editor").setSeoResultsForKeyword(o.getKeyword(),e.results),(0,a.dispatch)("yoast-seo/editor").setOverallSeoScore(e.score,o.getKeyword())}i&&(i.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(o,e.marks)})),i.results=h(i.results),(0,a.dispatch)("yoast-seo/editor").setReadabilityResults(i.results),(0,a.dispatch)("yoast-seo/editor").setOverallReadabilityScore(i.score)),r&&(r.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(o,e.marks)})),r.results=h(r.results),(0,a.dispatch)("yoast-seo/editor").setInclusiveLanguageResults(r.results),(0,a.dispatch)("yoast-seo/editor").setOverallInclusiveLanguageScore(r.score)),(0,l.doAction)("yoast.analysis.run",t,{paper:o})}catch(e){}}),500);function se(){const{getAnalysisData:e,getEditorDataTitle:t,getIsFrontPage:s}=(0,a.select)("yoast-seo/editor");let i=e();i={...i,textTitle:t(),isFrontPage:s()};const o=function(e){return e.title=E("data_page_title",e.title),e.title=E("title",e.title),e.description=E("data_meta_desc",e.description),e.text=E("content",e.text),e}(i);return(0,l.applyFilters)("yoast.analysis.data",o)}const ie=()=>{const{getContentLocale:e}=(0,a.select)("yoast-seo/editor"),t=((...e)=>()=>e.map((e=>e())))(e,se),s=(()=>{const{setEstimatedReadingTime:e,setFleschReadingEase:t,setTextLength:s}=(0,a.dispatch)("yoast-seo/editor"),i=(0,c.get)(window,"YoastSEO.analysis.worker.runResearch",c.noop);return()=>{const o=d.Paper.parse(se());i("readingTime",o).then((t=>e(t.result))),i("getFleschReadingScore",o).then((e=>{e.result&&t(e.result)})),i("wordCountInText",o).then((e=>s(e.result)))}})();return setTimeout(s,1500),((e,t)=>{let s=e();return()=>{const i=e();(0,c.isEqual)(i,s)||(s=i,t((0,c.clone)(i)))}})(t,s)},oe=window.wp.components,re=window.wp.element,ne=window.yoast.externals.contexts,ae=window.yoast.propTypes;var le=s.n(ae);const ce=window.yoast.styledComponents;var de=s.n(ce);const pe=window.ReactJSXRuntime,ue=({theme:e,location:t,children:s})=>(0,pe.jsx)(ne.LocationProvider,{value:t,children:(0,pe.jsx)(ce.ThemeProvider,{theme:e,children:s})});ue.propTypes={theme:le().object.isRequired,location:le().oneOf(["sidebar","metabox","modal"]).isRequired,children:le().node.isRequired};const he=ue,ge=[];let me=null;class ye extends re.Component{constructor(e){super(e),this.state={registeredComponents:[...ge]}}registerComponent(e,t){this.setState((s=>({...s,registeredComponents:[...s.registeredComponents,{key:e,Component:t}]})))}render(){return this.state.registeredComponents.map((({Component:e,key:t})=>(0,pe.jsx)(e,{},t)))}}function we(e,t){null===me||null===me.current?ge.push({key:e,Component:t}):me.current.registerComponent(e,t)}const fe=()=>!0;class be extends $e.modules.hookUI.Base{constructor(e,t,s,i=fe){super(),this.command=e,this.id=t,this.callback=s,this.conditions=i}getCommand(){return this.command}getId(){return this.id}getConditions(...e){return this.conditions(...e)}apply(...e){return this.callback(...e)}}class xe extends $e.modules.hookData.Base{constructor(e,t,s,i=fe){super(),this.command=e,this.id=t,this.callback=s,this.conditions=i.bind(this)}getCommand(){return this.command}getId(){return this.id}getConditions(...e){return this.conditions(...e)}apply(...e){return this.callback(...e)}}function _e(e,t,s,i=fe){return $e.hooks.registerUIAfter(new be(e,t,s,i))}function ve(e,t,s,i=fe){return $e.hooks.registerUIBefore(new be(e,t,s,i))}function ke(e,t,s,i=fe){return $e.hooks.registerDataAfter(new xe(e,t,s,i))}const Se=e=>{return parseInt(null===(t=document.getElementById("post_ID"))||void 0===t?void 0:t.value,10)===e;var t},Re=()=>{var e;return Se(null===(e=elementor.documents.getCurrent())||void 0===e?void 0:e.id)},Te=["yoast_wpseo_linkdex","yoast_wpseo_content_score","yoast_wpseo_inclusive_language_score","yoast_wpseo_words_for_linking","yoast_wpseo_estimated-reading-time-minutes"],Ee=["yoast_wpseo_focuskeywords","hidden_wpseo_focuskeywords"],je=window.wp.i18n,Ce=e=>{let t="";e&&(t=(0,je.sprintf)(/* translators: %1$s translates to the Post Label in singular form */ -(0,je.__)("Unfortunately we cannot save changes to your SEO settings while you are working on a draft of an already-published %1$s. If you want to save your SEO changes, make sure to click 'Update', or wait to make your SEO changes until you are ready to update the %1$s.","wordpress-seo"),wpseoAdminL10n.postTypeNameSingular.toLowerCase())),"draft"===elementor.settings.page.model.get("post_status")&&(t=""),(0,a.select)("yoast-seo/editor").getWarningMessage()!==t&&(0,a.dispatch)("yoast-seo/editor").setWarningMessage(t)},Ie=(e,t,s)=>null===t?null:(0,re.createPortal)(e,t,s),Le=({id:e,children:t})=>{const s=(0,re.useRef)(document.getElementById(e)),[i,o]=(0,re.useState)((()=>Ie(t,s.current,e))),r=(0,re.useCallback)((()=>{const i=document.getElementById(e);i!==s.current&&(s.current=i,o(Ie(t,i,e)))}),[e,t]);return((e,t,s={childList:!0,subtree:!0})=>{(0,re.useEffect)((()=>{const i=new MutationObserver(t);return i.observe(e,s),()=>i.disconnect()}),[e,t])})(document.body,r),i},Ae=window.yoast.uiLibrary,Pe=window.React;var De=s.n(Pe);Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));const Fe=(e,t)=>{try{return(0,re.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}};le().string.isRequired;const Oe=Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),Me=Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));le().string.isRequired,le().string.isRequired,le().shape({src:le().string.isRequired,width:le().string,height:le().string}).isRequired,le().shape({value:le().bool.isRequired,status:le().string.isRequired,set:le().func.isRequired}).isRequired,le().string,le().string,le().string;const qe=({handleRefreshClick:e,supportLink:t})=>(0,pe.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,pe.jsx)(Ae.Button,{onClick:e,children:(0,je.__)("Refresh this page","wordpress-seo")}),(0,pe.jsx)(Ae.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,je.__)("Contact support","wordpress-seo")})]});qe.propTypes={handleRefreshClick:le().func.isRequired,supportLink:le().string.isRequired};const Ne=({handleRefreshClick:e,supportLink:t})=>(0,pe.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,pe.jsx)(Ae.Button,{className:"yst-order-last",onClick:e,children:(0,je.__)("Refresh this page","wordpress-seo")}),(0,pe.jsx)(Ae.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,je.__)("Contact support","wordpress-seo")})]});Ne.propTypes={handleRefreshClick:le().func.isRequired,supportLink:le().string.isRequired};const Ue=({error:e,children:t=null})=>(0,pe.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,pe.jsx)(Ae.Title,{children:(0,je.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,pe.jsx)("p",{children:(0,je.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,pe.jsx)(Ae.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,je.__)("Undefined error message.","wordpress-seo")}),(0,pe.jsx)("p",{children:(0,je.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});Ue.propTypes={error:le().object.isRequired,children:le().node},Ue.VerticalButtons=Ne,Ue.HorizontalButtons=qe;le().string,le().node.isRequired,le().node.isRequired,le().node,le().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const We=window.ReactDOM;var Be,Ke,He;(Ke=Be||(Be={})).Pop="POP",Ke.Push="PUSH",Ke.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(He||(He={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const Ye=["post","put","patch","delete"],Ve=(new Set(Ye),["get",...Ye]);new Set(Ve),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),Pe.Component,Pe.startTransition,new Promise((()=>{})),Pe.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var ze,Ge,Ze,Qe;new Map,Pe.startTransition,We.flushSync,Pe.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(Qe=ze||(ze={})).UseScrollRestoration="useScrollRestoration",Qe.UseSubmit="useSubmit",Qe.UseSubmitFetcher="useSubmitFetcher",Qe.UseFetcher="useFetcher",Qe.useViewTransitionState="useViewTransitionState",(Ze=Ge||(Ge={})).UseFetcher="useFetcher",Ze.UseFetchers="useFetchers",Ze.UseScrollRestoration="useScrollRestoration",le().string.isRequired,le().string;le().string.isRequired,le().node;Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),(0,je.__)("AI tools included","wordpress-seo"),(0,je.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ -(0,je.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,je.__)("24/7 support","wordpress-seo"),(0,je.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,je.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,je.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,je.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,je.__)("Internal links and redirect management, easy","wordpress-seo"),(0,je.__)("Access to friendly help when you need it, day or night","wordpress-seo");Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}));var Xe=s(4184),Je=s.n(Xe);le().string.isRequired,le().object.isRequired,le().func.isRequired;const et=Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}));var tt;function st(){return st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},st.apply(this,arguments)}const it=e=>Pe.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),tt||(tt=Pe.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));le().string.isRequired,le().object,le().func.isRequired,le().bool.isRequired,le().string.isRequired,le().object.isRequired,le().string.isRequired,le().func.isRequired,le().bool.isRequired,Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),le().bool.isRequired,le().func,le().func,le().string.isRequired,le().string.isRequired,le().string.isRequired,le().string.isRequired;window.yoast.reactHelmet;const ot="idle",rt="loading";le().string.isRequired,le().shape({src:le().string.isRequired,width:le().string,height:le().string}).isRequired,le().shape({value:le().bool.isRequired,status:le().string.isRequired,set:le().func.isRequired}).isRequired,le().bool,Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),le().bool.isRequired,le().func.isRequired,le().func,le().string,le().func.isRequired,le().string.isRequired,le().string.isRequired,le().string.isRequired,le().string.isRequired;const nt=({error:e})=>{const t=(0,re.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),s=(0,a.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/elementor-error-support")),[]),i=(0,a.useSelect)((e=>e("yoast-seo/editor").getPreference("isRtl",!1)),[]);return(0,pe.jsx)(Ae.Root,{context:{isRtl:i},children:(0,pe.jsx)(Ue,{error:e,children:(0,pe.jsx)(Ue.VerticalButtons,{supportLink:s,handleRefreshClick:t})})})};function at(){return(0,pe.jsx)(Ae.ErrorBoundary,{FallbackComponent:nt,children:(0,pe.jsx)(oe.Slot,{name:"YoastElementor",children:e=>{return void 0===(t=e).length?t:(0,c.flatten)(t).sort(((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority));var t}})})}nt.propTypes={error:le().object.isRequired};const lt=window.wp.compose,ct=Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))})),dt=window.wp.url,pt=({className:e="",...t})=>(0,pe.jsx)("span",{className:Je()("yst-grow yst-overflow-hidden yst-overflow-ellipsis yst-whitespace-nowrap yst-font-wp","yst-text-[#555] yst-text-base yst-leading-[normal] yst-subpixel-antialiased yst-text-start",e),...t});pt.displayName="MetaboxButton.Text",pt.propTypes={className:le().string};const ut=({className:e="",...t})=>(0,pe.jsx)("button",{type:"button",className:Je()("yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pe-4 yst-ps-6 yst-space-x-2 rtl:yst-space-x-reverse","yst-border-t yst-border-t-[rgb(0,0,0,0.2)] yst-rounded-none yst-transition-all hover:yst-bg-[#f0f0f0]","focus:yst-outline focus:yst-outline-[1px] focus:yst-outline-[color:#0066cd] focus:-yst-outline-offset-1 focus:yst-shadow-[0_0_3px_rgba(8,74,103,0.8)]",e),...t});ut.propTypes={className:le().string},ut.Text=pt;const ht=window.yoast.componentsNew,gt=({onClick:e,title:t,id:s="",subTitle:i="",suffixIcon:o=null,SuffixHeroIcon:r=null,prefixIcon:n=null,children:a=null})=>(0,pe.jsx)("div",{className:"yoast components-panel__body",children:(0,pe.jsx)("h2",{className:"components-panel__body-title",children:(0,pe.jsxs)("button",{id:s,onClick:e,className:"components-button components-panel__body-toggle",type:"button",children:[n&&(0,pe.jsx)("span",{className:"yoast-icon-span",style:{fill:`${n&&n.color||""}`},children:(0,pe.jsx)(ht.SvgIcon,{size:n.size,icon:n.icon})}),(0,pe.jsxs)("span",{className:"yoast-title-container",children:[(0,pe.jsx)("div",{className:"yoast-title",children:t}),(0,pe.jsx)("div",{className:"yoast-subtitle",children:i})]}),a,o&&(0,pe.jsx)(ht.SvgIcon,{size:o.size,icon:o.icon}),r]})})}),mt=gt;var yt,wt;function ft(){return ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},ft.apply(this,arguments)}gt.propTypes={onClick:le().func.isRequired,title:le().string.isRequired,id:le().string,subTitle:le().string,suffixIcon:le().object,SuffixHeroIcon:le().element,prefixIcon:le().object,children:le().node};const bt=e=>Pe.createElement("svg",ft({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),yt||(yt=Pe.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),wt||(wt=Pe.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"}))),xt=Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}))})),_t=({isOpen:e,onClose:t,id:s,upsellLink:i,title:o="",description:r="",benefits:n=[],note:l="",ctbId:c="",modalTitle:d})=>{const{isBlackFriday:p,isWooCommerceActive:u,isProductEntity:h,isWooSEOActive:g}=(0,a.useSelect)((e=>{const t=e("yoast-seo/editor");return{isProductEntity:t.getIsProductEntity(),isWooCommerceActive:t.getIsWooCommerceActive(),isBlackFriday:t.isPromotionActive("black-friday-promotion"),isWooSEOActive:t.getIsWooSeoActive()}}),[]),m=(0,re.useMemo)((()=>u&&h),[u,h]),y=(0,re.useRef)(null);return(0,pe.jsx)(Ae.Modal,{isOpen:e,onClose:t,id:s,initialFocus:y,children:(0,pe.jsx)(Ae.Modal.Panel,{className:"yst-max-w-md yst-p-0",hasCloseButton:!1,children:(0,pe.jsxs)(Ae.Modal.Container,{children:[(0,pe.jsxs)(Ae.Modal.Container.Header,{className:"yst-p-6 yst-border-b-slate-200 yst-border-b yst-flex yst-justify-start yst-gap-3 yst-items-center",children:[m?(0,pe.jsx)(xt,{className:"yst-text-woo-light yst-w-6 yst-h-6 yst-scale-x-[-1]"}):(0,pe.jsx)(bt,{className:"yst-fill-primary-500 yst-w-5 yst-h-5"}),(0,pe.jsx)(Ae.Modal.Title,{as:"h3",className:Je()(m?"yst-text-woo-light":"yst-text-primary-500","yst-text-base yst-font-normal"),children:d}),(0,pe.jsx)(Ae.Modal.CloseButton,{className:"yst-top-2",onClick:t,screenReaderText:(0,je.__)("Close modal","wordpress-seo")})]}),(0,pe.jsxs)(Ae.Modal.Container.Content,{className:"yst-p-0",children:[p&&(0,pe.jsx)("div",{className:"yst-flex yst-font-semibold yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6",children:(0,pe.jsx)("div",{className:"yst-mx-auto",children:(0,je.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})}),(0,pe.jsxs)("div",{className:"yst-py-6 yst-px-12",children:[(0,pe.jsx)(Ae.Title,{as:"h3",className:"yst-mb-1 yst-leading-5 yst-text-sm yst-font-medium yst-text-slate-800",children:o}),(0,pe.jsx)("p",{className:"yst-mb-2",children:r}),Array.isArray(n)&&n.length>0&&(0,pe.jsx)("ul",{className:"yst-my-2",children:n.map(((e,t)=>(0,pe.jsxs)("li",{className:"yst-flex yst-gap-1 yst-mb-2",children:[(0,pe.jsx)(et,{className:"yst-mr-1 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),(0,pe.jsx)("p",{className:"yst-text-slate-600",children:e})]},`${s}-upsell-benefit-${t}`)))}),"function"==typeof n&&n(),(0,pe.jsxs)("div",{className:"yst-text-center",children:[(0,pe.jsxs)(Ae.Button,{as:"a",variant:"upsell",className:"yst-my-2 yst-gap-1.5 yst-w-full",href:i,target:"_blank","data-action":"load-nfd-ctb","data-ctb-id":c,ref:y,children:[(0,pe.jsx)(Oe,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,je.sprintf)(/* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */ +(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var r=typeof s;if("string"===r||"number"===r)e.push(s);else if(Array.isArray(s)){if(s.length){var n=o.apply(null,s);n&&e.push(n)}}else if("object"===r){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var a in s)i.call(s,a)&&s[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(s=function(){return o}.apply(t,[]))||(e.exports=s)}()}},t={};function s(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};s.r(e),s.d(e,{DISMISS_ALERT:()=>rl,NEW_REQUEST:()=>al,SNIPPET_EDITOR_FIND_CUSTOM_FIELDS:()=>nl,wistiaEmbedPermission:()=>ll});var t={};s.r(t),s.d(t,{loadSnippetEditorData:()=>hl,updateData:()=>ul});var i={};s.r(i),s.d(i,{getSnippetEditorData:()=>vl,getSnippetEditorSlug:()=>_l});var o={};s.r(o),s.d(o,{getAnalysisData:()=>Il});var r={};s.r(r),s.d(r,{getWincherPermalink:()=>pc});var n={};s.r(n),s.d(n,{authorFirstName:()=>uc,authorLastName:()=>hc,category:()=>wc,categoryTitle:()=>fc,currentDate:()=>gc,currentDay:()=>mc,currentMonth:()=>yc,currentYear:()=>bc,date:()=>xc,excerpt:()=>_c,focusKeyphrase:()=>vc,id:()=>kc,modified:()=>Sc,name:()=>Rc,page:()=>Tc,pageNumber:()=>Ec,pageTotal:()=>jc,permalink:()=>Cc,postContent:()=>Ic,postDay:()=>Lc,postMonth:()=>Ac,postTypeNamePlural:()=>Dc,postTypeNameSingular:()=>Fc,postYear:()=>Pc,primaryCategory:()=>Oc,searchPhrase:()=>Mc,separator:()=>qc,siteDescription:()=>Nc,siteName:()=>Uc,tag:()=>Wc,term404:()=>$c,termDescription:()=>Bc,termHierarchy:()=>Kc,termTitle:()=>Hc,title:()=>zc,userDescription:()=>Vc});const a=window.wp.data,l=window.wp.hooks,c=window.lodash,d=window.yoast.analysis;function p(){}const u=window.yoast.externals.redux;function h(e){return e.sort(((e,t)=>e._identifier.localeCompare(t._identifier)))}function g(){return(0,c.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}function m(){const e=g();return(0,c.get)(e,"contentLocale","en_US")}function y(){const e=g();return!0===(0,c.get)(e,"contentAnalysisActive",!1)}function w(){const e=g();return!0===(0,c.get)(e,"keywordAnalysisActive",!1)}function f(){const e=g();return!0===(0,c.get)(e,"inclusiveLanguageAnalysisActive",!1)}const b=window.yoast.featureFlag;class x{constructor(e){this.refresh=e,this.loaded=!1,this.preloadThreshold=3e3,this.plugins={},this.modifications={},this._registerPlugin=this._registerPlugin.bind(this),this._ready=this._ready.bind(this),this._reloaded=this._reloaded.bind(this),this._registerModification=this._registerModification.bind(this),this._registerAssessment=this._registerAssessment.bind(this),this._applyModifications=this._applyModifications.bind(this),setTimeout(this._pollLoadingPlugins.bind(this),1500)}_registerPlugin(e,t){return(0,c.isString)(e)?(0,c.isUndefined)(t)||(0,c.isObject)(t)?!1===this._validateUniqueness(e)?(console.error("Failed to register plugin. Plugin with name "+e+" already exists"),!1):(this.plugins[e]=t,!0):(console.error("Failed to register plugin "+e+". Expected parameters `options` to be a object."),!1):(console.error("Failed to register plugin. Expected parameter `pluginName` to be a string."),!1)}_ready(e){return(0,c.isString)(e)?(0,c.isUndefined)(this.plugins[e])?(console.error("Failed to modify status for plugin "+e+". The plugin was not properly registered."),!1):(this.plugins[e].status="ready",!0):(console.error("Failed to modify status for plugin "+e+". Expected parameter `pluginName` to be a string."),!1)}_reloaded(e){return(0,c.isString)(e)?(0,c.isUndefined)(this.plugins[e])?(console.error("Failed to reload Content Analysis for plugin "+e+". The plugin was not properly registered."),!1):(this.refresh(),!0):(console.error("Failed to reload Content Analysis for "+e+". Expected parameter `pluginName` to be a string."),!1)}_registerModification(e,t,s,i){if(!(0,c.isString)(e))return console.error("Failed to register modification for plugin "+s+". Expected parameter `modification` to be a string."),!1;if(!(0,c.isFunction)(t))return console.error("Failed to register modification for plugin "+s+". Expected parameter `callable` to be a function."),!1;if(!(0,c.isString)(s))return console.error("Failed to register modification for plugin "+s+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(s))return console.error("Failed to register modification for plugin "+s+". The integration has not finished loading yet."),!1;const o={callable:t,origin:s,priority:(0,c.isNumber)(i)?i:10};return(0,c.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(o),!0}_registerAssessment(e,t,s,i){return(0,c.isString)(t)?(0,c.isObject)(s)?(0,c.isString)(i)?(t=i+"-"+t,e.addAssessment(t,s),!0):(console.error("Failed to register assessment for plugin "+i+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+i+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+i+". Expected parameter `name` to be a string."),!1)}_applyModifications(e,t,s){let i=this.modifications[e];return!(0,c.isArray)(i)||i.length<1||(i=this._stripIllegalModifications(i),i.sort(((e,t)=>e.priority-t.priority)),(0,c.forEach)(i,(function(i){const o=i.callable(t,s);typeof o==typeof t?t=o:console.error("Modification with name "+e+" performed by plugin with name "+i.origin+" was ignored because the data that was returned by it was of a different type than the data we had passed it.")}))),t}_pollLoadingPlugins(e){e=(0,c.isUndefined)(e)?0:e,!0===this._allReady()?(this.loaded=!0,this.refresh()):e>=this.preloadThreshold?(this._pollTimeExceeded(),this.loaded=!0,this.refresh()):(e+=50,setTimeout(this._pollLoadingPlugins.bind(this,e),50))}_allReady(){return(0,c.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}_pollTimeExceeded(){(0,c.forEach)(this.plugins,(function(e,t){(0,c.isUndefined)(e.options)||"ready"===e.options.status||(console.error("Error: Plugin "+t+". did not finish loading in time."),delete this.plugins[t])}))}_stripIllegalModifications(e){return(0,c.forEach)(e,((t,s)=>{!1===this._validateOrigin(t.origin)&&delete e[s]})),e}_validateOrigin(e){return"ready"===this.plugins[e].status}_validateUniqueness(e){return(0,c.isUndefined)(this.plugins[e])}}let _=null;const v=()=>{if(null===_){const e=(0,a.dispatch)("yoast-seo/editor").runAnalysis;_=window.YoastSEO.app&&window.YoastSEO.app.pluggable?window.YoastSEO.app.pluggable:new x(e)}return _},k=e=>v()._ready(e),S=e=>v()._reloaded(e),R=(e,t,s,i)=>v()._registerModification(e,t,s,i),T=(e,t)=>v()._registerPlugin(e,t),E=(e,t,s)=>v().loaded?v()._applyModifications(e,t,s):t,j="yoastmark";function C(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function I(e,t,s){const i=e.dom;let o=e.getContent();if(o=d.markers.removeMarks(o),(0,c.isEmpty)(s))return void e.setContent(o);o=s[0].hasPosition()?function(e,t){if(!t)return"";for(let s=(e=(0,c.orderBy)(e,(e=>e._properties.position.startOffset),["asc"])).length-1;s>=0;s--){const i=e[s];C(i,t)||(t=i.applyWithPosition(t))}return t}(s,o):function(e,t,s,i){const{fieldsToMark:o,selectedHTML:r}=d.languageProcessing.getFieldsToMark(s,i);return(0,c.forEach)(s,(function(t){"acf_content"!==e.id&&(t._properties.marked=d.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=d.languageProcessing.normalizeHTML(t._properties.original)),o.length>0?r.forEach((e=>{const s=t.applyWithReplace(e);i=i.replace(e,s)})):i=t.applyWithReplace(i)})),i}(e,0,s,o),e.setContent(o),function(e){let t=e.getContent();t=t.replace(new RegExp("<yoastmark.+?>","g"),"").replace(new RegExp("</yoastmark>","g"),""),e.setContent(t)}(e);const r=i.select(j);(0,c.forEach)(r,(function(e){e.setAttribute("data-mce-bogus","1")}))}function L(e){return window.test=e,I.bind(null,e)}c.noop,c.noop,c.noop;const A="content";function P(e){if("undefined"==typeof tinyMCE||void 0===tinyMCE.editors||0===tinyMCE.editors.length)return!1;const t=tinyMCE.get(e);return null!==t&&!t.isHidden()}window.wp.annotations;const D=function(e){return(0,c.uniq)((0,c.flatten)(e.map((e=>{if(!(0,c.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()}))))},F=window.wp.richText,O=/(<([a-z]|\/)[^<>]+>)/gi,{htmlEntitiesRegex:M}=d.helpers.htmlEntities,q=e=>{let t=0;return(0,c.forEachRight)(e,(e=>{const[s]=e;let i=s.length;/^<\/?br/.test(s)&&(i-=1),t+=i})),t},N="<yoastmark class='yoast-text-mark'>",U="</yoastmark>",W='<yoastmark class="yoast-text-mark">';function $(e,t,s,i,o){const r=i.clientId,n=(0,F.create)({html:e,multilineTag:s.multilineTag,multilineWrapperTag:s.multilineWrapperTag}).text;return(0,c.flatMap)(o,(s=>{let o;return o=s.hasBlockPosition&&s.hasBlockPosition()?function(e,t,s,i,o){if(t===e.getBlockClientId()){let t=e.getBlockPositionStart(),r=e.getBlockPositionEnd();if(e.isMarkForFirstBlockSection()){const e=((e,t,s)=>{const i="yoast/faq-block"===s?'<strong class="schema-faq-question">':'<strong class="schema-how-to-step-name">';return{blockStartOffset:e-=i.length,blockEndOffset:t-=i.length}})(t,r,s);t=e.blockStartOffset,r=e.blockEndOffset}if(i.slice(t,r)===o.slice(t,r))return[{startOffset:t,endOffset:r}];const n=((e,t,s)=>{const i=s.slice(0,e),o=s.slice(0,t),r=((e,t,s,i)=>{const o=[...e.matchAll(O)];s-=q(o);const r=[...t.matchAll(O)];return{blockStartOffset:s,blockEndOffset:i-=q(r)}})(i,o,e,t),n=((e,t,s,i)=>{let o=[...e.matchAll(M)];return(0,c.forEachRight)(o,(e=>{const[,t]=e;s-=t.length})),o=[...t.matchAll(M)],(0,c.forEachRight)(o,(e=>{const[,t]=e;i-=t.length})),{blockStartOffset:s,blockEndOffset:i}})(i,o,e=r.blockStartOffset,t=r.blockEndOffset);return{blockStartOffset:e=n.blockStartOffset,blockEndOffset:t=n.blockEndOffset}})(t,r,i);return[{startOffset:n.blockStartOffset,endOffset:n.blockEndOffset}]}return[]}(s,r,i.name,e,n):function(e,t){const s=t.getOriginal().replace(/(<([^>]+)>)/gi,""),i=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),o=function(e,t,s=!0){const i=[];if(0===e.length)return i;let o,r=0;for(s||(t=t.toLowerCase(),e=e.toLowerCase());(o=e.indexOf(t,r))>-1;)i.push(o),r=o+t.length;return i}(e,s);if(0===o.length)return[];const r=function(e){let t=e.indexOf(N);const s=t>=0;s||(t=e.indexOf(W));let i=null;const o=[];for(;t>=0;){if(i=(e=s?e.replace(N,""):e.replace(W,"")).indexOf(U),i<t)return[];e=e.replace(U,""),o.push({startOffset:t,endOffset:i}),t=s?e.indexOf(N):e.indexOf(W),i=null}return o}(i),n=[];return r.forEach((e=>{o.forEach((i=>{const o=i+e.startOffset;let r=i+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(r=i+s.length),n.push({startOffset:o,endOffset:r})}))})),n}(n,s),o?o.map((e=>({...e,block:r,richTextIdentifier:t}))):[]}))}const B=e=>e[0].toUpperCase()+e.slice(1),K=(e,t,s,i,o)=>(e=e.map((e=>{const r=`${e.id}-${o[0]}`,n=`${e.id}-${o[1]}`,a=B(o[0]),l=B(o[1]),c=e[`json${a}`],d=e[`json${l}`],{marksForFirstSection:p,marksForSecondSection:u}=((e,t)=>({marksForFirstSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&e.isMarkForFirstBlockSection():e)),marksForSecondSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&!e.isMarkForFirstBlockSection():e))}))(t,e),h=$(c,r,s,i,p),g=$(d,n,s,i,u);return h.concat(g)})),(0,c.flattenDeep)(e)),H="yoast";let z=[];const V={"core/paragraph":[{key:"content"}],"core/list":[{key:"values",multilineTag:"li",multilineWrapperTag:["ul","ol"]}],"core/list-item":[{key:"content"}],"core/heading":[{key:"content"}],"core/audio":[{key:"caption"}],"core/embed":[{key:"caption"}],"core/gallery":[{key:"caption"}],"core/image":[{key:"caption"}],"core/table":[{key:"caption"}],"core/video":[{key:"caption"}],"yoast/faq-block":[{key:"questions"}],"yoast/how-to-block":[{key:"steps"},{key:"jsonDescription"}]};function Y(){const e=z.shift();e&&((0,a.dispatch)("core/annotations").__experimentalAddAnnotation(e),G())}function G(){(0,c.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(Y,{timeout:1e3}):setTimeout(Y,150)}const Z=(e,t)=>{return(0,c.flatMap)((s=e.name,V.hasOwnProperty(s)?V[s]:[]),(s=>"yoast/faq-block"===e.name?((e,t,s)=>{const i=t.attributes[e.key];return 0===i.length?[]:K(i,s,e,t,["question","answer"])})(s,e,t):"yoast/how-to-block"===e.name?((e,t,s)=>{const i=t.attributes[e.key];if(i&&0===i.length)return[];const o=[];return"steps"===e.key&&o.push(K(i,s,e,t,["name","text"])),"jsonDescription"===e.key&&(s=s.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?!e.getBlockAttributeId():e)),o.push($(i,"description",e,t,s))),(0,c.flattenDeep)(o)})(s,e,t):function(e,t,s){const i=e.key,o=((e,t)=>{const s=e.attributes[t];return"string"==typeof s?s:(s||"").toString()})(t,i);return $(o,i,e,t,s)}(s,e,t)));var s};function Q(e,t){return(0,c.flatMap)(e,(e=>{const s=function(e){return e.innerBlocks.length>0}(e)?Q(e.innerBlocks,t):[];return Z(e,t).concat(s)}))}function X(e){z=[],(0,a.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource(H);const t=D(e);if(0===e.length)return;let s=(0,a.select)("core/block-editor").getBlocks();var i;t.length>0&&(s=s.filter((e=>t.some((t=>"core/"+t===e.name))))),i=Q(s,e),z=i.map((e=>({blockClientId:e.block,source:H,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}))),G()}function J(e,t){let s;P(A)&&((0,c.isUndefined)(s)&&(s=L(tinyMCE.get(A))),s(e,t)),(0,a.select)("core/block-editor")&&(0,c.isFunction)((0,a.select)("core/block-editor").getBlocks)&&(0,a.select)("core/annotations")&&(0,c.isFunction)((0,a.dispatch)("core/annotations").__experimentalAddAnnotation)&&(function(e,t){tinyMCE.editors.map((e=>L(e))).forEach((s=>s(e,t)))}(e,t),X(t)),(0,l.doAction)("yoast.analysis.applyMarks",t)}function ee(){const e=(0,a.select)("yoast-seo/editor").isMarkingAvailable(),t=(0,a.select)("yoast-seo/editor").getMarkerPauseStatus();return!e||t?c.noop:J}const te=(0,c.debounce)((async function(e,t){const{text:s,...i}=t,o=new d.Paper(s,i);try{const t=await e.analyze(o),{seo:s,readability:i,inclusiveLanguage:r}=t.result;if(s){const e=s[""];e.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(o,e.marks)})),e.results=h(e.results),(0,a.dispatch)("yoast-seo/editor").setSeoResultsForKeyword(o.getKeyword(),e.results),(0,a.dispatch)("yoast-seo/editor").setOverallSeoScore(e.score,o.getKeyword())}i&&(i.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(o,e.marks)})),i.results=h(i.results),(0,a.dispatch)("yoast-seo/editor").setReadabilityResults(i.results),(0,a.dispatch)("yoast-seo/editor").setOverallReadabilityScore(i.score)),r&&(r.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(o,e.marks)})),r.results=h(r.results),(0,a.dispatch)("yoast-seo/editor").setInclusiveLanguageResults(r.results),(0,a.dispatch)("yoast-seo/editor").setOverallInclusiveLanguageScore(r.score)),(0,l.doAction)("yoast.analysis.run",t,{paper:o})}catch(e){}}),500);function se(){const{getAnalysisData:e,getEditorDataTitle:t,getIsFrontPage:s}=(0,a.select)("yoast-seo/editor");let i=e();i={...i,textTitle:t(),isFrontPage:s()};const o=function(e){return e.title=E("data_page_title",e.title),e.title=E("title",e.title),e.description=E("data_meta_desc",e.description),e.text=E("content",e.text),e}(i);return(0,l.applyFilters)("yoast.analysis.data",o)}const ie=()=>{const{getContentLocale:e}=(0,a.select)("yoast-seo/editor"),t=((...e)=>()=>e.map((e=>e())))(e,se),s=(()=>{const{setEstimatedReadingTime:e,setFleschReadingEase:t,setTextLength:s}=(0,a.dispatch)("yoast-seo/editor"),i=(0,c.get)(window,"YoastSEO.analysis.worker.runResearch",c.noop);return()=>{const o=d.Paper.parse(se());i("readingTime",o).then((t=>e(t.result))),i("getFleschReadingScore",o).then((e=>{e.result&&t(e.result)})),i("wordCountInText",o).then((e=>s(e.result)))}})();return setTimeout(s,1500),((e,t)=>{let s=e();return()=>{const i=e();(0,c.isEqual)(i,s)||(s=i,t((0,c.clone)(i)))}})(t,s)},oe=window.wp.components,re=window.wp.element,ne=window.yoast.externals.contexts,ae=window.yoast.propTypes;var le=s.n(ae);const ce=window.yoast.styledComponents;var de=s.n(ce);const pe=window.ReactJSXRuntime,ue=({theme:e,location:t,children:s})=>(0,pe.jsx)(ne.LocationProvider,{value:t,children:(0,pe.jsx)(ce.ThemeProvider,{theme:e,children:s})});ue.propTypes={theme:le().object.isRequired,location:le().oneOf(["sidebar","metabox","modal"]).isRequired,children:le().node.isRequired};const he=ue,ge=[];let me=null;class ye extends re.Component{constructor(e){super(e),this.state={registeredComponents:[...ge]}}registerComponent(e,t){this.setState((s=>({...s,registeredComponents:[...s.registeredComponents,{key:e,Component:t}]})))}render(){return this.state.registeredComponents.map((({Component:e,key:t})=>(0,pe.jsx)(e,{},t)))}}function we(e,t){null===me||null===me.current?ge.push({key:e,Component:t}):me.current.registerComponent(e,t)}const fe=()=>!0;class be extends $e.modules.hookUI.Base{constructor(e,t,s,i=fe){super(),this.command=e,this.id=t,this.callback=s,this.conditions=i}getCommand(){return this.command}getId(){return this.id}getConditions(...e){return this.conditions(...e)}apply(...e){return this.callback(...e)}}class xe extends $e.modules.hookData.Base{constructor(e,t,s,i=fe){super(),this.command=e,this.id=t,this.callback=s,this.conditions=i.bind(this)}getCommand(){return this.command}getId(){return this.id}getConditions(...e){return this.conditions(...e)}apply(...e){return this.callback(...e)}}function _e(e,t,s,i=fe){return $e.hooks.registerUIAfter(new be(e,t,s,i))}function ve(e,t,s,i=fe){return $e.hooks.registerUIBefore(new be(e,t,s,i))}function ke(e,t,s,i=fe){return $e.hooks.registerDataAfter(new xe(e,t,s,i))}const Se=e=>{return parseInt(null===(t=document.getElementById("post_ID"))||void 0===t?void 0:t.value,10)===e;var t},Re=()=>{var e;return Se(null===(e=elementor.documents.getCurrent())||void 0===e?void 0:e.id)},Te=["yoast_wpseo_linkdex","yoast_wpseo_content_score","yoast_wpseo_inclusive_language_score","yoast_wpseo_words_for_linking","yoast_wpseo_estimated-reading-time-minutes"],Ee=["yoast_wpseo_focuskeywords","hidden_wpseo_focuskeywords"],je=window.wp.i18n,Ce=e=>{let t="";e&&(t=(0,je.sprintf)(/* translators: %1$s translates to the Post Label in singular form */ +(0,je.__)("Unfortunately we cannot save changes to your SEO settings while you are working on a draft of an already-published %1$s. If you want to save your SEO changes, make sure to click 'Update', or wait to make your SEO changes until you are ready to update the %1$s.","wordpress-seo"),wpseoAdminL10n.postTypeNameSingular.toLowerCase())),"draft"===elementor.settings.page.model.get("post_status")&&(t=""),(0,a.select)("yoast-seo/editor").getWarningMessage()!==t&&(0,a.dispatch)("yoast-seo/editor").setWarningMessage(t)},Ie=(e,t,s)=>null===t?null:(0,re.createPortal)(e,t,s),Le=({id:e,children:t})=>{const s=(0,re.useRef)(document.getElementById(e)),[i,o]=(0,re.useState)((()=>Ie(t,s.current,e))),r=(0,re.useCallback)((()=>{const i=document.getElementById(e);i!==s.current&&(s.current=i,o(Ie(t,i,e)))}),[e,t]);return((e,t,s={childList:!0,subtree:!0})=>{(0,re.useEffect)((()=>{const i=new MutationObserver(t);return i.observe(e,s),()=>i.disconnect()}),[e,t])})(document.body,r),i},Ae=window.yoast.uiLibrary,Pe=window.React;var De=s.n(Pe);Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));const Fe=(e,t)=>{try{return(0,re.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}};le().string.isRequired;const Oe=Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),Me=Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));le().string.isRequired,le().string.isRequired,le().shape({src:le().string.isRequired,width:le().string,height:le().string}).isRequired,le().shape({value:le().bool.isRequired,status:le().string.isRequired,set:le().func.isRequired}).isRequired,le().string,le().string,le().string;const qe=({handleRefreshClick:e,supportLink:t})=>(0,pe.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,pe.jsx)(Ae.Button,{onClick:e,children:(0,je.__)("Refresh this page","wordpress-seo")}),(0,pe.jsx)(Ae.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,je.__)("Contact support","wordpress-seo")})]});qe.propTypes={handleRefreshClick:le().func.isRequired,supportLink:le().string.isRequired};const Ne=({handleRefreshClick:e,supportLink:t})=>(0,pe.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,pe.jsx)(Ae.Button,{className:"yst-order-last",onClick:e,children:(0,je.__)("Refresh this page","wordpress-seo")}),(0,pe.jsx)(Ae.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,je.__)("Contact support","wordpress-seo")})]});Ne.propTypes={handleRefreshClick:le().func.isRequired,supportLink:le().string.isRequired};const Ue=({error:e,children:t=null})=>(0,pe.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,pe.jsx)(Ae.Title,{children:(0,je.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,pe.jsx)("p",{children:(0,je.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,pe.jsx)(Ae.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,je.__)("Undefined error message.","wordpress-seo")}),(0,pe.jsx)("p",{children:(0,je.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});Ue.propTypes={error:le().object.isRequired,children:le().node},Ue.VerticalButtons=Ne,Ue.HorizontalButtons=qe;le().string,le().node.isRequired,le().node.isRequired,le().node,le().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const We=window.ReactDOM;var Be,Ke,He;(Ke=Be||(Be={})).Pop="POP",Ke.Push="PUSH",Ke.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(He||(He={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const ze=["post","put","patch","delete"],Ve=(new Set(ze),["get",...ze]);new Set(Ve),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),Pe.Component,Pe.startTransition,new Promise((()=>{})),Pe.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var Ye,Ge,Ze,Qe;new Map,Pe.startTransition,We.flushSync,Pe.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(Qe=Ye||(Ye={})).UseScrollRestoration="useScrollRestoration",Qe.UseSubmit="useSubmit",Qe.UseSubmitFetcher="useSubmitFetcher",Qe.UseFetcher="useFetcher",Qe.useViewTransitionState="useViewTransitionState",(Ze=Ge||(Ge={})).UseFetcher="useFetcher",Ze.UseFetchers="useFetchers",Ze.UseScrollRestoration="useScrollRestoration",le().string.isRequired,le().string;le().string.isRequired,le().node;const Xe=Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}));(0,je.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,je.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,je.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,je.__)("Optimize pages for multiple keywords with guidance","wordpress-seo"),(0,je.__)("Add product details to help your listings stand out","wordpress-seo"),(0,je.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,je.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,je.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo"),(0,je.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,je.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,je.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,je.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,je.__)("Internal links and redirect management, easy","wordpress-seo"),(0,je.__)("Access to friendly help when you need it, day or night","wordpress-seo");var Je=s(4184),et=s.n(Je);var tt;function st(){return st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},st.apply(this,arguments)}le().string.isRequired,le().object.isRequired,le().func.isRequired,Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))}));const it=e=>Pe.createElement("svg",st({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),tt||(tt=Pe.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));le().string.isRequired,le().object,le().func.isRequired,le().bool.isRequired,le().string.isRequired,le().object.isRequired,le().string.isRequired,le().func.isRequired,le().bool.isRequired,Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),le().bool.isRequired,le().func,le().func,le().string.isRequired,le().string.isRequired,le().string.isRequired,le().string.isRequired;window.yoast.reactHelmet;const ot="idle",rt="loading";le().string.isRequired,le().shape({src:le().string.isRequired,width:le().string,height:le().string}).isRequired,le().shape({value:le().bool.isRequired,status:le().string.isRequired,set:le().func.isRequired}).isRequired,le().bool,Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),le().bool.isRequired,le().func.isRequired,le().func,le().string,le().func.isRequired,le().string.isRequired,le().string.isRequired,le().string.isRequired,le().string.isRequired;const nt=({error:e})=>{const t=(0,re.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),s=(0,a.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/elementor-error-support")),[]),i=(0,a.useSelect)((e=>e("yoast-seo/editor").getPreference("isRtl",!1)),[]);return(0,pe.jsx)(Ae.Root,{context:{isRtl:i},children:(0,pe.jsx)(Ue,{error:e,children:(0,pe.jsx)(Ue.VerticalButtons,{supportLink:s,handleRefreshClick:t})})})};function at(){return(0,pe.jsx)(Ae.ErrorBoundary,{FallbackComponent:nt,children:(0,pe.jsx)(oe.Slot,{name:"YoastElementor",children:e=>{return void 0===(t=e).length?t:(0,c.flatten)(t).sort(((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority));var t}})})}nt.propTypes={error:le().object.isRequired};const lt=window.wp.compose,ct=Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))})),dt=window.wp.url,pt=({className:e="",...t})=>(0,pe.jsx)("span",{className:et()("yst-grow yst-overflow-hidden yst-overflow-ellipsis yst-whitespace-nowrap yst-font-wp","yst-text-[#555] yst-text-base yst-leading-[normal] yst-subpixel-antialiased yst-text-start",e),...t});pt.displayName="MetaboxButton.Text",pt.propTypes={className:le().string};const ut=({className:e="",...t})=>(0,pe.jsx)("button",{type:"button",className:et()("yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pe-4 yst-ps-6 yst-space-x-2 rtl:yst-space-x-reverse","yst-border-t yst-border-t-[rgb(0,0,0,0.2)] yst-rounded-none yst-transition-all hover:yst-bg-[#f0f0f0]","focus:yst-outline focus:yst-outline-[1px] focus:yst-outline-[color:#0066cd] focus:-yst-outline-offset-1 focus:yst-shadow-[0_0_3px_rgba(8,74,103,0.8)]",e),...t});ut.propTypes={className:le().string},ut.Text=pt;const ht=window.yoast.componentsNew,gt=({onClick:e,title:t,id:s="",subTitle:i="",suffixIcon:o=null,SuffixHeroIcon:r=null,prefixIcon:n=null,children:a=null})=>(0,pe.jsx)("div",{className:"yoast components-panel__body",children:(0,pe.jsx)("h2",{className:"components-panel__body-title",children:(0,pe.jsxs)("button",{id:s,onClick:e,className:"components-button components-panel__body-toggle",type:"button",children:[n&&(0,pe.jsx)("span",{className:"yoast-icon-span",style:{fill:`${n&&n.color||""}`},children:(0,pe.jsx)(ht.SvgIcon,{size:n.size,icon:n.icon})}),(0,pe.jsxs)("span",{className:"yoast-title-container",children:[(0,pe.jsx)("div",{className:"yoast-title",children:t}),(0,pe.jsx)("div",{className:"yoast-subtitle",children:i})]}),a,o&&(0,pe.jsx)(ht.SvgIcon,{size:o.size,icon:o.icon}),r]})})}),mt=gt;var yt,wt;function ft(){return ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},ft.apply(this,arguments)}gt.propTypes={onClick:le().func.isRequired,title:le().string.isRequired,id:le().string,subTitle:le().string,suffixIcon:le().object,SuffixHeroIcon:le().element,prefixIcon:le().object,children:le().node};const bt=e=>Pe.createElement("svg",ft({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),yt||(yt=Pe.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),wt||(wt=Pe.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"}))),xt=Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}))})),_t=({isOpen:e,onClose:t,id:s,upsellLink:i,title:o="",description:r="",benefits:n=[],note:l="",ctbId:c="",modalTitle:d})=>{const{isBlackFriday:p,isWooCommerceActive:u,isProductEntity:h,isWooSEOActive:g}=(0,a.useSelect)((e=>{const t=e("yoast-seo/editor");return{isProductEntity:t.getIsProductEntity(),isWooCommerceActive:t.getIsWooCommerceActive(),isBlackFriday:t.isPromotionActive("black-friday-promotion"),isWooSEOActive:t.getIsWooSeoActive()}}),[]),m=(0,re.useMemo)((()=>u&&h),[u,h]),y=(0,re.useRef)(null);return(0,pe.jsx)(Ae.Modal,{isOpen:e,onClose:t,id:s,initialFocus:y,children:(0,pe.jsx)(Ae.Modal.Panel,{className:"yst-max-w-md yst-p-0",hasCloseButton:!1,children:(0,pe.jsxs)(Ae.Modal.Container,{children:[(0,pe.jsxs)(Ae.Modal.Container.Header,{className:"yst-p-6 yst-border-b-slate-200 yst-border-b yst-flex yst-justify-start yst-gap-3 yst-items-center",children:[m?(0,pe.jsx)(xt,{className:"yst-text-woo-light yst-w-6 yst-h-6 yst-scale-x-[-1]"}):(0,pe.jsx)(bt,{className:"yst-fill-primary-500 yst-w-5 yst-h-5"}),(0,pe.jsx)(Ae.Modal.Title,{as:"h3",className:et()(m?"yst-text-woo-light":"yst-text-primary-500","yst-text-base yst-font-normal"),children:d}),(0,pe.jsx)(Ae.Modal.CloseButton,{className:"yst-top-2",onClick:t,screenReaderText:(0,je.__)("Close modal","wordpress-seo")})]}),(0,pe.jsxs)(Ae.Modal.Container.Content,{className:"yst-p-0",children:[p&&(0,pe.jsx)("div",{className:"yst-flex yst-font-semibold yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6",children:(0,pe.jsx)("div",{className:"yst-mx-auto",children:(0,je.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})}),(0,pe.jsxs)("div",{className:"yst-py-6 yst-px-12",children:[(0,pe.jsx)(Ae.Title,{as:"h3",className:"yst-mb-1 yst-leading-5 yst-text-sm yst-font-medium yst-text-slate-800",children:o}),(0,pe.jsx)("p",{className:"yst-mb-2",children:r}),Array.isArray(n)&&n.length>0&&(0,pe.jsx)("ul",{className:"yst-my-2",children:n.map(((e,t)=>(0,pe.jsxs)("li",{className:"yst-flex yst-gap-1 yst-mb-2",children:[(0,pe.jsx)(Xe,{className:"yst-mr-1 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),(0,pe.jsx)("p",{className:"yst-text-slate-600",children:e})]},`${s}-upsell-benefit-${t}`)))}),"function"==typeof n&&n(),(0,pe.jsxs)("div",{className:"yst-text-center",children:[(0,pe.jsxs)(Ae.Button,{as:"a",variant:"upsell",className:"yst-my-2 yst-gap-1.5 yst-w-full",href:i,target:"_blank","data-action":"load-nfd-ctb","data-ctb-id":c,ref:y,children:[(0,pe.jsx)(Oe,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,je.sprintf)(/* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */ (0,je.__)("Explore %s","wordpress-seo"),m&&!g?"Yoast WooCommerce SEO":"Yoast SEO Premium"),(0,pe.jsx)("span",{className:"yst-sr-only",children:(0,je.__)("Opens in a new tab","wordpress-seo")})]}),(0,pe.jsx)("div",{className:"yst-italic yst-text-slate-500 yst-mt-1",children:l})]})]})]})]})})})},vt=()=>{const[e,,,t,s]=(0,Ae.useToggleState)(!1),{locationContext:i}=(0,ne.useRootContext)(),o=(0,Ae.useSvgAria)(),r=i.includes("sidebar"),n=i.includes("metabox"),a=r?"sidebar":"metabox",l=wpseoAdminL10n[r?"shortlinks.upsell.sidebar.internal_linking_suggestions":"shortlinks.upsell.metabox.internal_linking_suggestions"];return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(_t,{isOpen:e,onClose:s,id:`yoast-internal-linking-suggestions-upsell-${a}`,upsellLink:(0,dt.addQueryArgs)(l,{context:i}),modalTitle:(0,je.__)("Add smarter internal links with Premium","wordpress-seo"),title:(0,je.__)("Connect related content without the guesswork","wordpress-seo"),description:Fe((0,je.sprintf)(/* translators: %s expands to be tag. */ -(0,je.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles. %sScans your content to:","wordpress-seo"),"<br />"),{br:(0,pe.jsx)("br",{})}),benefits:[(0,je.__)("Suggest internal links based on your content’s main topics","wordpress-seo"),(0,je.__)("Build relevant internal links faster","wordpress-seo"),(0,je.__)("Strengthen your site’s structure","wordpress-seo"),(0,je.__)("Keep visitors exploring longer","wordpress-seo")],note:(0,je.__)("Upgrade to link your content with ease","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),r&&(0,pe.jsx)(mt,{id:"yoast-internal-linking-suggestions-sidebar-modal-open-button",title:(0,je.__)("Internal linking suggestions","wordpress-seo"),onClick:t,children:(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsx)(Ae.Badge,{size:"small",variant:"upsell",children:(0,pe.jsx)(ct,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...o})})})}),n&&(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)(ut,{id:"yoast-internal-linking-suggestions-metabox-modal-open-button",onClick:t,children:[(0,pe.jsx)(ut.Text,{children:(0,je.__)("Internal linking suggestions","wordpress-seo")}),(0,pe.jsxs)(Ae.Badge,{size:"small",variant:"upsell",children:[(0,pe.jsx)(ct,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...o}),(0,pe.jsx)("span",{children:"Premium"})]})]})})]})},kt=window.yoast.externals.components;function St(){return(0,lt.createHigherOrderComponent)((function(e){return(0,lt.pure)((function(t){const s=(0,re.useContext)(ne.LocationContext);return(0,re.createElement)(e,{...t,location:s})}))}),"withLocation")}const Rt=(0,lt.compose)([(0,a.withSelect)((e=>{const{isCornerstoneContent:t}=e("yoast-seo/editor");return{isCornerstone:t(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),(0,a.withDispatch)((e=>{const{toggleCornerstoneContent:t}=e("yoast-seo/editor");return{onChange:t}})),St()])(kt.CollapsibleCornerstone),Tt=Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),Et=({store:e="yoast-seo/editor",location:t="sidebar"})=>{const s="black-friday-promotion",i=(0,a.useSelect)((t=>t(e).getIsPremium()),[e]),o=(0,a.useSelect)((t=>t(e).selectLinkParams()),[e]),r=(0,a.useSelect)((t=>t(e).isPromotionActive(s)),[e]),n=(0,a.useSelect)((t=>t(e).getIsWooCommerceActive()),[e]),l=(0,a.useSelect)((t=>t(e).isAlertDismissed(s)),[e]),c=(0,a.useSelect)((t=>t(e).getIsElementorEditor()),[e]),d=(0,re.useCallback)((()=>{(0,a.dispatch)(e).dismissAlert(s)}),[e,s]),p=(0,dt.addQueryArgs)("https://yoa.st/black-friday-sale",o),u=(0,Ae.useSvgAria)();return i||!r||l?null:(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)("div",{className:Je()("sidebar"!==t||c?"yst-mx-4":"yst-mx-0","yst-border yst-rounded-lg yst-p-4 yst-max-w-md yst-mt-6 yst-relative yst-shadow-sm",n?"yst-border-woo-light":"yst-border-primary-200"),children:[(0,pe.jsxs)(Ae.Badge,{size:"small",className:"yst-text-[10px] yst-bg-black yst-text-amber-300 yst-absolute yst--top-2",children:[(0,je.__)("BLACK FRIDAY","wordpress-seo")," "]}),(0,pe.jsxs)("button",{className:"yst-absolute yst-top-4 yst-end-4",onClick:d,children:[(0,pe.jsx)(Tt,{className:"yst-w-4 yst-text-slate-400 yst-shrink-0 yst--mt-0.5"}),(0,pe.jsx)("div",{className:"yst-sr-only",children:(0,je.__)("Dismiss","wordpress-seo")})]}),(0,pe.jsxs)("div",{className:Je()("sidebar"===t?"":"yst-flex yst-justify-between yst-gap-3"),children:[(0,pe.jsxs)("div",{className:n?"yst-text-woo-light":"yst-text-primary-500",children:[(0,pe.jsx)("div",{className:"yst-text-2xl yst-font-bold",children:(0,je.__)("30% OFF","wordpress-seo")}),(0,pe.jsx)("div",{className:"yst-flex yst-gap-2 yst-font-semibold yst-text-tiny",children:n?(0,pe.jsxs)(pe.Fragment,{children:["Yoast WooCommerce SEO ",(0,pe.jsx)(xt,{className:"yst-w-4 yst-scale-x-[-1]",...u})]}):(0,pe.jsxs)(pe.Fragment,{children:[" Yoast SEO Premium ",(0,pe.jsx)(it,{className:"yst-w-4",...u})]})})]}),(0,pe.jsx)("div",{className:"yst-flex yst-items-end",children:(0,pe.jsxs)(Ae.Button,{as:"a",className:Je()("sidebar"===t?"yst-w-full":"yst-w-[140px]","yst-flex yst-gap-1 yst-w-[140px] yst-h-7 yst-mt-4"),variant:"upsell",href:p,target:"_blank",rel:"noreferrer",children:[(0,je.__)("Buy now!","wordpress-seo"),(0,pe.jsx)(Me,{className:"yst-w-4 rtl:yst-rotate-180",...u})]})})]})]})})};Et.propTypes={store:le().string,location:le().oneOf(["sidebar","metabox"])};const jt=window.yoast.helpers,Ct=(0,lt.compose)([(0,a.withSelect)(((e,t)=>{const{isAlertDismissed:s}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:s(t.alertKey)}})),(0,a.withDispatch)(((e,t)=>{const{dismissAlert:s}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>s(t.alertKey)}}))]),It=({children:e,id:t,hasIcon:s=!0,title:i,image:o=null,isAlertDismissed:r,onDismissed:n})=>r?null:(0,pe.jsxs)("div",{id:t,className:"notice-yoast yoast is-dismissible yoast-webinar-dashboard yoast-general-page-notices",children:[(0,pe.jsxs)("div",{className:"notice-yoast__container",children:[(0,pe.jsxs)("div",{children:[(0,pe.jsxs)("div",{className:"notice-yoast__header",children:[s&&(0,pe.jsx)("span",{className:"yoast-icon"}),(0,pe.jsx)("h2",{className:"notice-yoast__header-heading yoast-notice-migrated-header",children:i})]}),(0,pe.jsx)("div",{className:"notice-yoast-content",children:(0,pe.jsx)("p",{children:e})})]}),o&&(0,pe.jsx)(o,{height:"60"})]}),(0,pe.jsx)("button",{type:"button",className:"notice-dismiss",onClick:n,children:(0,pe.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */ -(0,je.__)("Dismiss this notice.","wordpress-seo")})})]});It.propTypes={children:le().node.isRequired,id:le().string.isRequired,hasIcon:le().bool,title:le().any.isRequired,image:le().elementType,isAlertDismissed:le().bool.isRequired,onDismissed:le().func.isRequired};const Lt=Ct(It),At="trustpilot-review-notification",Pt="yoast-seo/editor";const Dt=()=>{const e=(0,a.useSelect)((e=>e(Pt).getIsPremium()),[]),t=(0,a.useSelect)((e=>e(Pt).isAlertDismissed(At)),[]),{overallScore:s}=(0,a.useSelect)((e=>e(Pt).getResultsForFocusKeyword()),[]),{dismissAlert:i}=(0,a.useDispatch)(Pt),o=(0,re.useCallback)((()=>i(At)),[i]),[r,n]=(0,re.useState)(!1);return(0,re.useEffect)((()=>{var e,t;"good"===(null===(t=s,(0,c.isNil)(t)||(t/=10),e=function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,je.__)("Not available","wordpress-seo"),screenReaderReadabilityText:(0,je.__)("Not available","wordpress-seo"),screenReaderInclusiveLanguageText:(0,je.__)("Not available","wordpress-seo")};case"bad":return{className:"bad",screenReaderText:(0,je.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,je.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,je.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,je.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,je.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,je.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,je.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,je.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,je.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(d.interpreters.scoreToRating(t)))||void 0===e?void 0:e.className)&&n(!0)}),[s]),{shouldShow:!e&&!t&&r,dismiss:o}},Ft=(0,jt.makeOutboundLink)(),Ot=()=>{const{shouldShow:e,dismiss:t}=Dt(),{locationContext:s}=(0,ne.useRootContext)(),i=(0,a.useSelect)((e=>e(Pt).selectLink("https://yoa.st/trustpilot-review",{context:s})),[s]);return(0,pe.jsxs)(It,{alertKey:At,store:Pt,id:At,title:(0,je.__)("Show Yoast SEO some love!","wordpress-seo"),hasIcon:!1,isAlertDismissed:!e,onDismissed:t,children:[(0,je.__)("Happy with the plugin?","wordpress-seo")," ",(0,pe.jsx)(Ft,{href:i,rel:"noopener noreferrer",children:(0,je.__)("Leave a quick review","wordpress-seo")}),"."]})};var Mt,qt,Nt,Ut,Wt,$t,Bt,Kt,Ht,Yt,Vt,zt,Gt,Zt,Qt,Xt,Jt,es,ts,ss,is,os,rs,ns,as,ls,cs,ds,ps,us,hs,gs,ms,ys,ws,fs,bs,xs,_s,vs,ks,Ss,Rs,Ts,Es,js,Cs;function Is(){return Is=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Is.apply(this,arguments)}const Ls=e=>Pe.createElement("svg",Is({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),Mt||(Mt=Pe.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),qt||(qt=Pe.createElement("path",{fill:"#fbd2a6",d:"M173.53 189.38s-35.47-5.3-41.78-11c-9.39-24.93-29.61-48-35.47-66.21-.71-2.24 3.72-11.39 3.53-15.41s-5.34-11.64-5.23-14-.09-15.27-.09-15.27l-4.75-.72s-5.13 6.07-3.56 9.87c-1.73-4.19 4.3 7.93.5 9.35 0 0-6-5.94-11.76-8.27s-19.57-3.65-19.57-3.65L43.19 73l-4.42.6L31 69.7l-2.85 5.12 7.53 5.29L40.86 92l17.19 10.2 10.2 10.56 9.86 3.56s26.49 79.67 45 92c17 11.33 37.23 15.92 37.23 15.92z"})),Nt||(Nt=Pe.createElement("path",{fill:"#a4286a",d:"M270.52 345.13c2.76-14.59 15.94-35.73 30.24-54.58 16.22-21.39 14-79.66-33.19-91.46-17.3-4.32-52.25-1-59.85-3.41C186.54 189 170 187 168 190.17c-5 10.51-7.73 27.81-5.51 36.26 1.18 4.73 3.54 5.91 20.49 13.4-5.12 15-16.35 26.3-22.86 37s7.88 27.2 7.1 33.51c-.48 3.8-4.26 21.13-7.18 34.25a149.47 149.47 0 0 0 110.3 8.66 25.66 25.66 0 0 1 .18-8.12z"})),Ut||(Ut=Pe.createElement("path",{fill:"#9a5815",d:"M206.76 66.43c-5 14.4-1.42 25.67-3.93 40.74-10 60.34-24.08 43.92-31.44 93.6 7.24-14.19 14.32-15.82 20.63-23.11-.83 3.09-10.25 13.75-8.05 34.81 9.85-8.51 6.35-8.75 11.86-8.54.36 3.25 3.53 3.22-3.59 10.53 2.52.69 17.42-14.32 20.16-12.66s0 5.72-6 7.76c2.15 2.2 30.47-3.87 43.81-14.71 4.93-4 10-13.16 13.38-18.2 7.17-10.62 12.38-24.77 17.71-36.6 8.94-19.87 15.09-39.34 16.11-61.31.53-10.44-3.41-18.44-4.41-28.86-2.57-27.8-67.63-37.26-86.24 16.55z"})),Wt||(Wt=Pe.createElement("path",{fill:"#efb17c",d:"M277.74 179.06c.62-.79 1.24-1.59 1.84-2.39-.85 2.59-1.52 3.73-1.84 2.39z"})),$t||($t=Pe.createElement("path",{fill:"#fbd2a6",d:"M216.1 206.72c3.69-5.42 8.28-3.35 15.57-8.28 3.76-3.06 1.57-9.46 1.77-11.82 18.25 4.56 37.38-1.18 49.07-16 .62 5.16-2.77 22.27-.2 27 4.73 8.67 13.4 18.92 13.4 18.92-35.47-2.76-63.45 39-89.86 44.54 5.52-28.74-2.36-35.84 10.25-54.36z"})),Bt||(Bt=Pe.createElement("path",{fill:"#f6b488",d:"m235.21 167.9 53.21-25.23s-3.65 24-6.5 32.72c-64.05 62.66-46.47-7.33-46.71-7.49z"})),Kt||(Kt=Pe.createElement("path",{fill:"#fbd2a6",d:"M226.86 50.64C215 59.31 206.37 93.21 204 95.57c-19.46 19.47-3.59 41.39-3.94 51.24-.2 5.52-4.14 25.42 5.72 29.36 22.22 8.89 60-3.48 67.19-12.61 13.28-16.75 40.89-94.78 17.74-108.19-7.92-4.58-42.78-20.18-63.85-4.73z"})),Ht||(Ht=Pe.createElement("path",{fill:"#e5766c",d:"M243.69 143.66c-10.7-6.16-8.56-6.73-19.76-12.71-3.86-2.07-3.94.64-6.32 0-2.91-.79-1.39-2.74-5.37-3.48-6.52-1.21-3.67 3.63-3.15 6 1.32 6.15-8.17 17.3 3.26 21.42 12.65 4.55 21.38-9.41 31.34-11.23z"})),Yt||(Yt=Pe.createElement("path",{fill:"#fff",d:"M240.68 143.9c-11.49-5.53-11.65-8.17-24.64-11.69-8.6-2.32-5.53 1-5.69 4.42-.2 4.16-1.26 9.87 4.9 12.66 9 4.09 18.16-6.02 25.43-5.39zm.7-40.9c-.16 1.26-.06 4.9 5.46 8.25 11.43-4.73 16.36-2.56 17-3.33 1.48-1.76-2-8.87-7.88-9.85-5.58-.94-14.14 1.24-14.58 4.93z"})),Vt||(Vt=Pe.createElement("path",{fill:"#000001",d:"M263.53 108.19c-4.32-4.33-6.85-6.24-12.26-8.21-2.77-1-6.18.18-8.65 1.67a3.65 3.65 0 0 0-1.24 1.23h-.12a3.73 3.73 0 0 1 1-1.52 12.53 12.53 0 0 1 11.93-3c4.73 1 9.43 4.63 9.42 9.82z"})),zt||(zt=Pe.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),Gt||(Gt=Pe.createElement("path",{fill:"#fff",d:"M225.26 99.22c-.29 1-6.6 3.45-10.92 1.48-1.15-3.24-5-6.43-5.25-6.71-.5-2.86 5.55-8 10.06-6.3a10.21 10.21 0 0 1 6.11 11.53z"})),Zt||(Zt=Pe.createElement("path",{fill:"#000001",d:"M209.29 94.21c-.19-2.34 1.84-4.1 3.65-5.2 7-3.87 13.18 3 12.43 10h-.12c-.14-4-2.38-8.44-6.47-9.11a3.19 3.19 0 0 0-2.42.31c-1.37.85-2.38 2-3.89 2.56-1 .45-1.92.42-3 1.4h-.22z"})),Qt||(Qt=Pe.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),Xt||(Xt=Pe.createElement("path",{fill:"#efb17c",d:"M218.66 120.27a27.32 27.32 0 0 0 4.54 3.45c-2.29-.72-4.28-.69-6.32-2.27-2.53-2-3.39-5.16-.73-7.72 10.24-9.82 12.56-13.82 14.77-24.42-1 12.37-6 17.77-10.63 23.18-2.53 2.97-4.68 5.06-1.63 7.78z"})),Jt||(Jt=Pe.createElement("path",{fill:"#a57c52",d:"M231.22 69.91c-.67-3.41-8.78-2.83-11.06-1.93-3.48 1.39-6.08 5.22-7.13 8.53 2.9-4.3 6.74-8.12 12.46-6 1.16.42 3.18 2.35 4.48 1.85s1.03-2.2 1.25-2.45zm32.16 8.56c-2.75-1.66-12.24-5.08-12.18.82 2.56.24 5-.19 7.64.95 11.22 4.76 12.77 17.61 12.85 17.86.2-.53.1 1.26.23.7-.02.2.95-12.12-8.54-20.33z"})),es||(es=Pe.createElement("path",{fill:"#fbd2a6",d:"M53.43 250.73c6.29 0-.6-.17 7.34 0 1.89.05-2.38-.7 0-.69 4.54-4.2 12.48-.74 20.6-2.45 4.55.35 3.93 1.35 5.59 4.19 4.89 8.38 4.78 14.21 14 19.56 16.42 8.38 66 12.92 88.49 18.86 5.52.83 42.64-20.15 61-23.75 6.51 10.74 11.46 28.68 8.39 34.93-6.54 13.3-57.07 25.4-75.91 25.15C156.47 326.18 94 294 92.2 293c-.94-.57.7-.7-7.68 0s-10.15.72-17.47-1.4c-3-.87-4.61-1.33-6.33-3.54-2 .22-3.39.2-4.78-1-3.15-2.74-4.84-6.61-2.73-10.06h-.12c-3.35-2.48-6.54-7.69-3.08-11.72 1-1.18 6.06-1.94 7.77-2.28-1.58-.29-6.37.19-7.49-.72-3.06-2.5-4.96-11.55 3.14-11.55z"})),ts||(ts=Pe.createElement("path",{fill:"#a4286a",d:"M303.22 237.52c-9.87-11.88-41.59 8.19-47.8 12.34s-14.89 17.95-14.89 17.95c6 9.43 8.36 31 5.65 46.34l30.51-3s18-15.62 22.59-28.7 6.3-42.54 6.3-42.54"})),ss||(ss=Pe.createElement("path",{fill:"#cb9833",d:"M278.63 31.67c-6.08 0-22.91 4.07-22.93 12.91 0 11 47.9 38.38 16.14 85.85 10.21-.79 10.79-8.12 14.92-14.93-3.66 77-49.38 93.58-40.51 142.25 7.68-25.81 20.3-11.62 38.13-33.84 3.45 4.88 9 18.28-9.46 33.78 50-31.26 57.31-56.6 51.92-95C319.93 113.53 348.7 42 278.63 31.67z"})),is||(is=Pe.createElement("path",{fill:"#fbd2a6",d:"M283.64 126.83c-2.42 9.67-8 15.76-1.48 16.46A21.26 21.26 0 0 0 302 132.6c5.17-8.52 3.93-16.44-2.46-18s-13.48 2.56-15.9 12.23z"})),os||(os=Pe.createElement("path",{fill:"#efb17c",d:"M38 73.45c1.92 2 4.25 9.21 6.32 10.91 2.25 1.85 5.71 2.12 8.1 4.45 3.66-2 6-8.72 10-9.31-2.59 1.31-4.42 3.5-6.93 4.88-1.42.8-3 1.31-4.38 2.25-2.16-1.46-4.27-1.77-6.26-3.38-2.52-2.02-5.31-8-6.85-9.8z"})),rs||(rs=Pe.createElement("path",{fill:"#efb17c",d:"M39 74.4c4.83 1.1 12.52 6.44 15.89 10-3.22-1.34-14.73-6.15-15.89-10zm.62-1.5c6.71-.79 18 1.54 23.29 5.9-3.85-.2-5.42-1.48-9-2.94-4.08-1.69-8.83-2.03-14.29-2.96zm46.43 14.58c-3.72-1.32-10.52-1.13-13.22 3.52 2-1.16 1.84-2.11 4.18-1.72-3.81-4.15 8.16-.74 11.6-.24m-2.78 13.15c.56-3.29-8-7.81-10.58-9.17-6.25-3.29-12.16 1.36-19.33-4.53 5.94 6.1 14.23 2.5 19.55 5.76 3.06 1.88 8.65 6.09 9.35 9.38-.23-.4 1.29-1.44 1.01-1.44z"})),ns||(ns=Pe.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),as||(as=Pe.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),ls||(ls=Pe.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),cs||(cs=Pe.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),ds||(ds=Pe.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),ps||(ps=Pe.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),us||(us=Pe.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),hs||(hs=Pe.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),gs||(gs=Pe.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),ms||(ms=Pe.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),ys||(ys=Pe.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),ws||(ws=Pe.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),fs||(fs=Pe.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),bs||(bs=Pe.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),xs||(xs=Pe.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),_s||(_s=Pe.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),vs||(vs=Pe.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),ks||(ks=Pe.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),Ss||(Ss=Pe.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),Rs||(Rs=Pe.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),Ts||(Ts=Pe.createElement("path",{fill:"#71b026",d:"M78.58 178.43C54.36 167.26 32 198.93 5 198.93c19.56 20.49 63.53 1.52 69 15.5 1.48-14.01 4.11-30.9 4.58-36z"})),Es||(Es=Pe.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3z"})),js||(js=Pe.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),Cs||(Cs=Pe.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),As=({store:e="yoast-seo/editor",image:t=Ls,url:s,...i})=>(0,a.useSelect)((t=>t(e).getIsPremium()))?null:(0,pe.jsxs)(Lt,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,je.__)("Join our FREE webinar for SEO success","wordpress-seo"),image:t,url:s,...i,children:[(0,je.__)("Feeling lost when it comes to optimizing your site for the search engines? Join our FREE webinar to gain the confidence that you need in order to start optimizing like a pro! You'll obtain the knowledge and tools to start effectively implementing SEO.","wordpress-seo")," ",(0,pe.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",children:(0,je.__)("Sign up today!","wordpress-seo")})]});As.propTypes={store:le().string,image:le().elementType,url:le().string.isRequired};const Ps=As,Ds=(e="yoast-seo/editor")=>{const t=(0,a.select)(e).isPromotionActive("black-friday-promotion"),s=(0,a.select)(e).isAlertDismissed("black-friday-promotion");return!t||s},Fs=Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{d:"M11 3a1 1 0 10-2 0v1a1 1 0 102 0V3zM15.657 5.757a1 1 0 00-1.414-1.414l-.707.707a1 1 0 001.414 1.414l.707-.707zM18 10a1 1 0 01-1 1h-1a1 1 0 110-2h1a1 1 0 011 1zM5.05 6.464A1 1 0 106.464 5.05l-.707-.707a1 1 0 00-1.414 1.414l.707.707zM5 10a1 1 0 01-1 1H3a1 1 0 110-2h1a1 1 0 011 1zM8 16v-1h4v1a2 2 0 11-4 0zM12 14c.015-.34.208-.646.477-.859a4 4 0 10-4.954 0c.27.213.462.519.476.859h4.002z"}))})),Os=(e=null)=>(0,Pe.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]),Ms=({title:e="Yoast SEO",className:t="yoast yoast-gutenberg-modal",showYoastIcon:s=!0,children:i=null,additionalClassName:o="",...r})=>{const n=s?(0,pe.jsx)("span",{className:"yoast-icon"}):null;return(0,pe.jsx)(oe.Modal,{title:e,className:`${t} ${o}`,icon:n,...r,children:i})};Ms.propTypes={title:le().string,className:le().string,showYoastIcon:le().bool,children:le().oneOfType([le().node,le().arrayOf(le().node)]),additionalClassName:le().string};const qs=Ms,Ns=({id:e,postTypeName:t,children:s,title:i,isOpen:o,open:r,close:n,shouldCloseOnClickOutside:a=!0,showChangesWarning:l=!0,SuffixHeroIcon:c=null})=>(0,pe.jsxs)(re.Fragment,{children:[o&&(0,pe.jsx)(ne.LocationProvider,{value:"modal",children:(0,pe.jsxs)(qs,{title:i,onRequestClose:n,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:a,children:[(0,pe.jsx)("div",{className:"yoast-content-container",children:(0,pe.jsx)("div",{className:"yoast-modal-content",children:s})}),(0,pe.jsxs)("div",{className:"yoast-notice-container",children:[(0,pe.jsx)("hr",{}),(0,pe.jsxs)("div",{className:"yoast-button-container",children:[l&&(0,pe.jsx)("p",{children:/* Translators: %s translates to the Post Label in singular form */ +(0,je.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles. %sScans your content to:","wordpress-seo"),"<br />"),{br:(0,pe.jsx)("br",{})}),benefits:[(0,je.__)("Suggest internal links based on your content’s main topics","wordpress-seo"),(0,je.__)("Build relevant internal links faster","wordpress-seo"),(0,je.__)("Strengthen your site’s structure","wordpress-seo"),(0,je.__)("Keep visitors exploring longer","wordpress-seo")],note:(0,je.__)("Upgrade to link your content with ease","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),r&&(0,pe.jsx)(mt,{id:"yoast-internal-linking-suggestions-sidebar-modal-open-button",title:(0,je.__)("Internal linking suggestions","wordpress-seo"),onClick:t,children:(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsx)(Ae.Badge,{size:"small",variant:"upsell",children:(0,pe.jsx)(ct,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...o})})})}),n&&(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)(ut,{id:"yoast-internal-linking-suggestions-metabox-modal-open-button",onClick:t,children:[(0,pe.jsx)(ut.Text,{children:(0,je.__)("Internal linking suggestions","wordpress-seo")}),(0,pe.jsxs)(Ae.Badge,{size:"small",variant:"upsell",children:[(0,pe.jsx)(ct,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...o}),(0,pe.jsx)("span",{children:"Premium"})]})]})})]})},kt=window.yoast.externals.components;function St(){return(0,lt.createHigherOrderComponent)((function(e){return(0,lt.pure)((function(t){const s=(0,re.useContext)(ne.LocationContext);return(0,re.createElement)(e,{...t,location:s})}))}),"withLocation")}const Rt=(0,lt.compose)([(0,a.withSelect)((e=>{const{isCornerstoneContent:t}=e("yoast-seo/editor");return{isCornerstone:t(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),(0,a.withDispatch)((e=>{const{toggleCornerstoneContent:t}=e("yoast-seo/editor");return{onChange:t}})),St()])(kt.CollapsibleCornerstone),Tt=Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),Et=({store:e="yoast-seo/editor",location:t="sidebar"})=>{const s="black-friday-promotion",i=(0,a.useSelect)((t=>t(e).getIsPremium()),[e]),o=(0,a.useSelect)((t=>t(e).selectLinkParams()),[e]),r=(0,a.useSelect)((t=>t(e).isPromotionActive(s)),[e]),n=(0,a.useSelect)((t=>t(e).getIsWooCommerceActive()),[e]),l=(0,a.useSelect)((t=>t(e).isAlertDismissed(s)),[e]),c=(0,a.useSelect)((t=>t(e).getIsElementorEditor()),[e]),d=(0,re.useCallback)((()=>{(0,a.dispatch)(e).dismissAlert(s)}),[e,s]),p=(0,dt.addQueryArgs)("https://yoa.st/black-friday-sale",o),u=(0,Ae.useSvgAria)();return i||!r||l?null:(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)("div",{className:et()("sidebar"!==t||c?"yst-mx-4":"yst-mx-0","yst-border yst-rounded-lg yst-p-4 yst-max-w-md yst-mt-6 yst-relative yst-shadow-sm",n?"yst-border-woo-light":"yst-border-primary-200"),children:[(0,pe.jsxs)(Ae.Badge,{size:"small",className:"yst-text-[10px] yst-bg-black yst-text-amber-300 yst-absolute yst--top-2",children:[(0,je.__)("BLACK FRIDAY","wordpress-seo")," "]}),(0,pe.jsxs)("button",{className:"yst-absolute yst-top-4 yst-end-4",onClick:d,children:[(0,pe.jsx)(Tt,{className:"yst-w-4 yst-text-slate-400 yst-shrink-0 yst--mt-0.5"}),(0,pe.jsx)("div",{className:"yst-sr-only",children:(0,je.__)("Dismiss","wordpress-seo")})]}),(0,pe.jsxs)("div",{className:et()("sidebar"===t?"":"yst-flex yst-justify-between yst-gap-3"),children:[(0,pe.jsxs)("div",{className:n?"yst-text-woo-light":"yst-text-primary-500",children:[(0,pe.jsx)("div",{className:"yst-text-2xl yst-font-bold",children:(0,je.__)("30% OFF","wordpress-seo")}),(0,pe.jsx)("div",{className:"yst-flex yst-gap-2 yst-font-semibold yst-text-tiny",children:n?(0,pe.jsxs)(pe.Fragment,{children:["Yoast WooCommerce SEO ",(0,pe.jsx)(xt,{className:"yst-w-4 yst-scale-x-[-1]",...u})]}):(0,pe.jsxs)(pe.Fragment,{children:[" Yoast SEO Premium ",(0,pe.jsx)(it,{className:"yst-w-4",...u})]})})]}),(0,pe.jsx)("div",{className:"yst-flex yst-items-end",children:(0,pe.jsxs)(Ae.Button,{as:"a",className:et()("sidebar"===t?"yst-w-full":"yst-w-[140px]","yst-flex yst-gap-1 yst-w-[140px] yst-h-7 yst-mt-4"),variant:"upsell",href:p,target:"_blank",rel:"noreferrer",children:[(0,je.__)("Buy now!","wordpress-seo"),(0,pe.jsx)(Me,{className:"yst-w-4 rtl:yst-rotate-180",...u})]})})]})]})})};Et.propTypes={store:le().string,location:le().oneOf(["sidebar","metabox"])};const jt=window.yoast.helpers,Ct=(0,lt.compose)([(0,a.withSelect)(((e,t)=>{const{isAlertDismissed:s}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:s(t.alertKey)}})),(0,a.withDispatch)(((e,t)=>{const{dismissAlert:s}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>s(t.alertKey)}}))]),It=({children:e,id:t,hasIcon:s=!0,title:i,image:o=null,isAlertDismissed:r,onDismissed:n})=>r?null:(0,pe.jsxs)("div",{id:t,className:"notice-yoast yoast is-dismissible yoast-webinar-dashboard yoast-general-page-notices",children:[(0,pe.jsxs)("div",{className:"notice-yoast__container",children:[(0,pe.jsxs)("div",{children:[(0,pe.jsxs)("div",{className:"notice-yoast__header",children:[s&&(0,pe.jsx)("span",{className:"yoast-icon"}),(0,pe.jsx)("h2",{className:"notice-yoast__header-heading yoast-notice-migrated-header",children:i})]}),(0,pe.jsx)("div",{className:"notice-yoast-content",children:(0,pe.jsx)("p",{children:e})})]}),o&&(0,pe.jsx)(o,{height:"60"})]}),(0,pe.jsx)("button",{type:"button",className:"notice-dismiss",onClick:n,children:(0,pe.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */ +(0,je.__)("Dismiss this notice.","wordpress-seo")})})]});It.propTypes={children:le().node.isRequired,id:le().string.isRequired,hasIcon:le().bool,title:le().any.isRequired,image:le().elementType,isAlertDismissed:le().bool.isRequired,onDismissed:le().func.isRequired};const Lt=Ct(It),At="trustpilot-review-notification",Pt="yoast-seo/editor";const Dt=()=>{const e=(0,a.useSelect)((e=>e(Pt).getIsPremium()),[]),t=(0,a.useSelect)((e=>e(Pt).isAlertDismissed(At)),[]),{overallScore:s}=(0,a.useSelect)((e=>e(Pt).getResultsForFocusKeyword()),[]),{dismissAlert:i}=(0,a.useDispatch)(Pt),o=(0,re.useCallback)((()=>i(At)),[i]),[r,n]=(0,re.useState)(!1);return(0,re.useEffect)((()=>{var e,t;"good"===(null===(t=s,(0,c.isNil)(t)||(t/=10),e=function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,je.__)("Not available","wordpress-seo"),screenReaderReadabilityText:(0,je.__)("Not available","wordpress-seo"),screenReaderInclusiveLanguageText:(0,je.__)("Not available","wordpress-seo")};case"bad":return{className:"bad",screenReaderText:(0,je.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,je.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,je.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,je.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,je.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,je.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,je.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,je.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,je.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(d.interpreters.scoreToRating(t)))||void 0===e?void 0:e.className)&&n(!0)}),[s]),{shouldShow:!e&&!t&&r,dismiss:o}},Ft=(0,jt.makeOutboundLink)(),Ot=()=>{const{shouldShow:e,dismiss:t}=Dt(),{locationContext:s}=(0,ne.useRootContext)(),i=(0,a.useSelect)((e=>e(Pt).selectLink("https://yoa.st/trustpilot-review",{context:s})),[s]);return(0,pe.jsxs)(It,{alertKey:At,store:Pt,id:At,title:(0,je.__)("Show Yoast SEO some love!","wordpress-seo"),hasIcon:!1,isAlertDismissed:!e,onDismissed:t,children:[(0,je.__)("Happy with the plugin?","wordpress-seo")," ",(0,pe.jsx)(Ft,{href:i,rel:"noopener noreferrer",children:(0,je.__)("Leave a quick review","wordpress-seo")}),"."]})};var Mt,qt,Nt,Ut,Wt,$t,Bt,Kt,Ht,zt,Vt,Yt,Gt,Zt,Qt,Xt,Jt,es,ts,ss,is,os,rs,ns,as,ls,cs,ds,ps,us,hs,gs,ms,ys,ws,fs,bs,xs,_s,vs,ks,Ss,Rs,Ts,Es,js,Cs;function Is(){return Is=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Is.apply(this,arguments)}const Ls=e=>Pe.createElement("svg",Is({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),Mt||(Mt=Pe.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),qt||(qt=Pe.createElement("path",{fill:"#fbd2a6",d:"M173.53 189.38s-35.47-5.3-41.78-11c-9.39-24.93-29.61-48-35.47-66.21-.71-2.24 3.72-11.39 3.53-15.41s-5.34-11.64-5.23-14-.09-15.27-.09-15.27l-4.75-.72s-5.13 6.07-3.56 9.87c-1.73-4.19 4.3 7.93.5 9.35 0 0-6-5.94-11.76-8.27s-19.57-3.65-19.57-3.65L43.19 73l-4.42.6L31 69.7l-2.85 5.12 7.53 5.29L40.86 92l17.19 10.2 10.2 10.56 9.86 3.56s26.49 79.67 45 92c17 11.33 37.23 15.92 37.23 15.92z"})),Nt||(Nt=Pe.createElement("path",{fill:"#a4286a",d:"M270.52 345.13c2.76-14.59 15.94-35.73 30.24-54.58 16.22-21.39 14-79.66-33.19-91.46-17.3-4.32-52.25-1-59.85-3.41C186.54 189 170 187 168 190.17c-5 10.51-7.73 27.81-5.51 36.26 1.18 4.73 3.54 5.91 20.49 13.4-5.12 15-16.35 26.3-22.86 37s7.88 27.2 7.1 33.51c-.48 3.8-4.26 21.13-7.18 34.25a149.47 149.47 0 0 0 110.3 8.66 25.66 25.66 0 0 1 .18-8.12z"})),Ut||(Ut=Pe.createElement("path",{fill:"#9a5815",d:"M206.76 66.43c-5 14.4-1.42 25.67-3.93 40.74-10 60.34-24.08 43.92-31.44 93.6 7.24-14.19 14.32-15.82 20.63-23.11-.83 3.09-10.25 13.75-8.05 34.81 9.85-8.51 6.35-8.75 11.86-8.54.36 3.25 3.53 3.22-3.59 10.53 2.52.69 17.42-14.32 20.16-12.66s0 5.72-6 7.76c2.15 2.2 30.47-3.87 43.81-14.71 4.93-4 10-13.16 13.38-18.2 7.17-10.62 12.38-24.77 17.71-36.6 8.94-19.87 15.09-39.34 16.11-61.31.53-10.44-3.41-18.44-4.41-28.86-2.57-27.8-67.63-37.26-86.24 16.55z"})),Wt||(Wt=Pe.createElement("path",{fill:"#efb17c",d:"M277.74 179.06c.62-.79 1.24-1.59 1.84-2.39-.85 2.59-1.52 3.73-1.84 2.39z"})),$t||($t=Pe.createElement("path",{fill:"#fbd2a6",d:"M216.1 206.72c3.69-5.42 8.28-3.35 15.57-8.28 3.76-3.06 1.57-9.46 1.77-11.82 18.25 4.56 37.38-1.18 49.07-16 .62 5.16-2.77 22.27-.2 27 4.73 8.67 13.4 18.92 13.4 18.92-35.47-2.76-63.45 39-89.86 44.54 5.52-28.74-2.36-35.84 10.25-54.36z"})),Bt||(Bt=Pe.createElement("path",{fill:"#f6b488",d:"m235.21 167.9 53.21-25.23s-3.65 24-6.5 32.72c-64.05 62.66-46.47-7.33-46.71-7.49z"})),Kt||(Kt=Pe.createElement("path",{fill:"#fbd2a6",d:"M226.86 50.64C215 59.31 206.37 93.21 204 95.57c-19.46 19.47-3.59 41.39-3.94 51.24-.2 5.52-4.14 25.42 5.72 29.36 22.22 8.89 60-3.48 67.19-12.61 13.28-16.75 40.89-94.78 17.74-108.19-7.92-4.58-42.78-20.18-63.85-4.73z"})),Ht||(Ht=Pe.createElement("path",{fill:"#e5766c",d:"M243.69 143.66c-10.7-6.16-8.56-6.73-19.76-12.71-3.86-2.07-3.94.64-6.32 0-2.91-.79-1.39-2.74-5.37-3.48-6.52-1.21-3.67 3.63-3.15 6 1.32 6.15-8.17 17.3 3.26 21.42 12.65 4.55 21.38-9.41 31.34-11.23z"})),zt||(zt=Pe.createElement("path",{fill:"#fff",d:"M240.68 143.9c-11.49-5.53-11.65-8.17-24.64-11.69-8.6-2.32-5.53 1-5.69 4.42-.2 4.16-1.26 9.87 4.9 12.66 9 4.09 18.16-6.02 25.43-5.39zm.7-40.9c-.16 1.26-.06 4.9 5.46 8.25 11.43-4.73 16.36-2.56 17-3.33 1.48-1.76-2-8.87-7.88-9.85-5.58-.94-14.14 1.24-14.58 4.93z"})),Vt||(Vt=Pe.createElement("path",{fill:"#000001",d:"M263.53 108.19c-4.32-4.33-6.85-6.24-12.26-8.21-2.77-1-6.18.18-8.65 1.67a3.65 3.65 0 0 0-1.24 1.23h-.12a3.73 3.73 0 0 1 1-1.52 12.53 12.53 0 0 1 11.93-3c4.73 1 9.43 4.63 9.42 9.82z"})),Yt||(Yt=Pe.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),Gt||(Gt=Pe.createElement("path",{fill:"#fff",d:"M225.26 99.22c-.29 1-6.6 3.45-10.92 1.48-1.15-3.24-5-6.43-5.25-6.71-.5-2.86 5.55-8 10.06-6.3a10.21 10.21 0 0 1 6.11 11.53z"})),Zt||(Zt=Pe.createElement("path",{fill:"#000001",d:"M209.29 94.21c-.19-2.34 1.84-4.1 3.65-5.2 7-3.87 13.18 3 12.43 10h-.12c-.14-4-2.38-8.44-6.47-9.11a3.19 3.19 0 0 0-2.42.31c-1.37.85-2.38 2-3.89 2.56-1 .45-1.92.42-3 1.4h-.22z"})),Qt||(Qt=Pe.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),Xt||(Xt=Pe.createElement("path",{fill:"#efb17c",d:"M218.66 120.27a27.32 27.32 0 0 0 4.54 3.45c-2.29-.72-4.28-.69-6.32-2.27-2.53-2-3.39-5.16-.73-7.72 10.24-9.82 12.56-13.82 14.77-24.42-1 12.37-6 17.77-10.63 23.18-2.53 2.97-4.68 5.06-1.63 7.78z"})),Jt||(Jt=Pe.createElement("path",{fill:"#a57c52",d:"M231.22 69.91c-.67-3.41-8.78-2.83-11.06-1.93-3.48 1.39-6.08 5.22-7.13 8.53 2.9-4.3 6.74-8.12 12.46-6 1.16.42 3.18 2.35 4.48 1.85s1.03-2.2 1.25-2.45zm32.16 8.56c-2.75-1.66-12.24-5.08-12.18.82 2.56.24 5-.19 7.64.95 11.22 4.76 12.77 17.61 12.85 17.86.2-.53.1 1.26.23.7-.02.2.95-12.12-8.54-20.33z"})),es||(es=Pe.createElement("path",{fill:"#fbd2a6",d:"M53.43 250.73c6.29 0-.6-.17 7.34 0 1.89.05-2.38-.7 0-.69 4.54-4.2 12.48-.74 20.6-2.45 4.55.35 3.93 1.35 5.59 4.19 4.89 8.38 4.78 14.21 14 19.56 16.42 8.38 66 12.92 88.49 18.86 5.52.83 42.64-20.15 61-23.75 6.51 10.74 11.46 28.68 8.39 34.93-6.54 13.3-57.07 25.4-75.91 25.15C156.47 326.18 94 294 92.2 293c-.94-.57.7-.7-7.68 0s-10.15.72-17.47-1.4c-3-.87-4.61-1.33-6.33-3.54-2 .22-3.39.2-4.78-1-3.15-2.74-4.84-6.61-2.73-10.06h-.12c-3.35-2.48-6.54-7.69-3.08-11.72 1-1.18 6.06-1.94 7.77-2.28-1.58-.29-6.37.19-7.49-.72-3.06-2.5-4.96-11.55 3.14-11.55z"})),ts||(ts=Pe.createElement("path",{fill:"#a4286a",d:"M303.22 237.52c-9.87-11.88-41.59 8.19-47.8 12.34s-14.89 17.95-14.89 17.95c6 9.43 8.36 31 5.65 46.34l30.51-3s18-15.62 22.59-28.7 6.3-42.54 6.3-42.54"})),ss||(ss=Pe.createElement("path",{fill:"#cb9833",d:"M278.63 31.67c-6.08 0-22.91 4.07-22.93 12.91 0 11 47.9 38.38 16.14 85.85 10.21-.79 10.79-8.12 14.92-14.93-3.66 77-49.38 93.58-40.51 142.25 7.68-25.81 20.3-11.62 38.13-33.84 3.45 4.88 9 18.28-9.46 33.78 50-31.26 57.31-56.6 51.92-95C319.93 113.53 348.7 42 278.63 31.67z"})),is||(is=Pe.createElement("path",{fill:"#fbd2a6",d:"M283.64 126.83c-2.42 9.67-8 15.76-1.48 16.46A21.26 21.26 0 0 0 302 132.6c5.17-8.52 3.93-16.44-2.46-18s-13.48 2.56-15.9 12.23z"})),os||(os=Pe.createElement("path",{fill:"#efb17c",d:"M38 73.45c1.92 2 4.25 9.21 6.32 10.91 2.25 1.85 5.71 2.12 8.1 4.45 3.66-2 6-8.72 10-9.31-2.59 1.31-4.42 3.5-6.93 4.88-1.42.8-3 1.31-4.38 2.25-2.16-1.46-4.27-1.77-6.26-3.38-2.52-2.02-5.31-8-6.85-9.8z"})),rs||(rs=Pe.createElement("path",{fill:"#efb17c",d:"M39 74.4c4.83 1.1 12.52 6.44 15.89 10-3.22-1.34-14.73-6.15-15.89-10zm.62-1.5c6.71-.79 18 1.54 23.29 5.9-3.85-.2-5.42-1.48-9-2.94-4.08-1.69-8.83-2.03-14.29-2.96zm46.43 14.58c-3.72-1.32-10.52-1.13-13.22 3.52 2-1.16 1.84-2.11 4.18-1.72-3.81-4.15 8.16-.74 11.6-.24m-2.78 13.15c.56-3.29-8-7.81-10.58-9.17-6.25-3.29-12.16 1.36-19.33-4.53 5.94 6.1 14.23 2.5 19.55 5.76 3.06 1.88 8.65 6.09 9.35 9.38-.23-.4 1.29-1.44 1.01-1.44z"})),ns||(ns=Pe.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),as||(as=Pe.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),ls||(ls=Pe.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),cs||(cs=Pe.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),ds||(ds=Pe.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),ps||(ps=Pe.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),us||(us=Pe.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),hs||(hs=Pe.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),gs||(gs=Pe.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),ms||(ms=Pe.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),ys||(ys=Pe.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),ws||(ws=Pe.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),fs||(fs=Pe.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),bs||(bs=Pe.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),xs||(xs=Pe.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),_s||(_s=Pe.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),vs||(vs=Pe.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),ks||(ks=Pe.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),Ss||(Ss=Pe.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),Rs||(Rs=Pe.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),Ts||(Ts=Pe.createElement("path",{fill:"#71b026",d:"M78.58 178.43C54.36 167.26 32 198.93 5 198.93c19.56 20.49 63.53 1.52 69 15.5 1.48-14.01 4.11-30.9 4.58-36z"})),Es||(Es=Pe.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3z"})),js||(js=Pe.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),Cs||(Cs=Pe.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),As=({store:e="yoast-seo/editor",image:t=Ls,url:s,...i})=>(0,a.useSelect)((t=>t(e).getIsPremium()))?null:(0,pe.jsxs)(Lt,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,je.__)("Join our FREE webinar for SEO success","wordpress-seo"),image:t,url:s,...i,children:[(0,je.__)("Feeling lost when it comes to optimizing your site for the search engines? Join our FREE webinar to gain the confidence that you need in order to start optimizing like a pro! You'll obtain the knowledge and tools to start effectively implementing SEO.","wordpress-seo")," ",(0,pe.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",children:(0,je.__)("Sign up today!","wordpress-seo")})]});As.propTypes={store:le().string,image:le().elementType,url:le().string.isRequired};const Ps=As,Ds=(e="yoast-seo/editor")=>{const t=(0,a.select)(e).isPromotionActive("black-friday-promotion"),s=(0,a.select)(e).isAlertDismissed("black-friday-promotion");return!t||s},Fs=Pe.forwardRef((function(e,t){return Pe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),Pe.createElement("path",{d:"M11 3a1 1 0 10-2 0v1a1 1 0 102 0V3zM15.657 5.757a1 1 0 00-1.414-1.414l-.707.707a1 1 0 001.414 1.414l.707-.707zM18 10a1 1 0 01-1 1h-1a1 1 0 110-2h1a1 1 0 011 1zM5.05 6.464A1 1 0 106.464 5.05l-.707-.707a1 1 0 00-1.414 1.414l.707.707zM5 10a1 1 0 01-1 1H3a1 1 0 110-2h1a1 1 0 011 1zM8 16v-1h4v1a2 2 0 11-4 0zM12 14c.015-.34.208-.646.477-.859a4 4 0 10-4.954 0c.27.213.462.519.476.859h4.002z"}))})),Os=(e=null)=>(0,Pe.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]),Ms=({title:e="Yoast SEO",className:t="yoast yoast-gutenberg-modal",showYoastIcon:s=!0,children:i=null,additionalClassName:o="",...r})=>{const n=s?(0,pe.jsx)("span",{className:"yoast-icon"}):null;return(0,pe.jsx)(oe.Modal,{title:e,className:`${t} ${o}`,icon:n,...r,children:i})};Ms.propTypes={title:le().string,className:le().string,showYoastIcon:le().bool,children:le().oneOfType([le().node,le().arrayOf(le().node)]),additionalClassName:le().string};const qs=Ms,Ns=({id:e,postTypeName:t,children:s,title:i,isOpen:o,open:r,close:n,shouldCloseOnClickOutside:a=!0,showChangesWarning:l=!0,SuffixHeroIcon:c=null})=>(0,pe.jsxs)(re.Fragment,{children:[o&&(0,pe.jsx)(ne.LocationProvider,{value:"modal",children:(0,pe.jsxs)(qs,{title:i,onRequestClose:n,additionalClassName:"yoast-collapsible-modal yoast-post-settings-modal",id:"id",shouldCloseOnClickOutside:a,children:[(0,pe.jsx)("div",{className:"yoast-content-container",children:(0,pe.jsx)("div",{className:"yoast-modal-content",children:s})}),(0,pe.jsxs)("div",{className:"yoast-notice-container",children:[(0,pe.jsx)("hr",{}),(0,pe.jsxs)("div",{className:"yoast-button-container",children:[l&&(0,pe.jsx)("p",{children:/* Translators: %s translates to the Post Label in singular form */ (0,je.sprintf)((0,je.__)("Make sure to save your %s for changes to take effect","wordpress-seo"),t)}),(0,pe.jsx)("button",{className:"yoast-button yoast-button--primary yoast-button--post-settings-modal",type:"button",onClick:n,children:/* Translators: %s translates to the Post Label in singular form */ (0,je.sprintf)((0,je.__)("Return to your %s","wordpress-seo"),t)})]})]})]})}),(0,pe.jsx)(mt,{id:e+"-open-button",title:i,SuffixHeroIcon:c,suffixIcon:c?null:{size:"20px",icon:"pencil-square"},onClick:r})]});Ns.propTypes={id:le().string.isRequired,postTypeName:le().string.isRequired,children:le().oneOfType([le().node,le().arrayOf(le().node)]).isRequired,title:le().string.isRequired,isOpen:le().bool.isRequired,open:le().func.isRequired,close:le().func.isRequired,shouldCloseOnClickOutside:le().bool,showChangesWarning:le().bool,SuffixHeroIcon:le().element};const Us=Ns,Ws=(0,lt.compose)([(0,a.withSelect)(((e,t)=>{const{getPostOrPageString:s,getIsModalOpen:i}=e("yoast-seo/editor");return{postTypeName:s(),isOpen:i(t.id)}})),(0,a.withDispatch)(((e,t)=>{const{openEditorModal:s,closeEditorModal:i}=e("yoast-seo/editor");return{open:()=>s(t.id),close:i}}))])(Us),$s=()=>{const e=(0,a.useSelect)((e=>e("yoast-seo/editor").getEstimatedReadingTime()),[]),t=(0,re.useMemo)((()=>(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-estimated_reading_time","")),[]);return(0,pe.jsx)(ht.InsightsCard,{amount:e,unit:(0,je._n)("minute","minutes",e,"wordpress-seo"),title:(0,je.__)("Reading time","wordpress-seo"),linkTo:t /* translators: Hidden accessibility text. */,linkText:(0,je.__)("Learn more about reading time","wordpress-seo")})},Bs=(0,jt.makeOutboundLink)();function Ks(e,t){return-1===e?(0,je.__)("Your text should be slightly longer to calculate your Flesch reading ease score.","wordpress-seo"):(0,je.sprintf)( /* Translators: %1$s expands to the numeric Flesch reading ease score, %2$s expands to the easiness of reading (e.g. 'easy' or 'very difficult') */ (0,je.__)("The copy scores %1$s in the test, which is considered %2$s to read.","wordpress-seo"),e,function(e){switch(e){case d.DIFFICULTY.NO_DATA:return(0,je.__)("no data","wordpress-seo");case d.DIFFICULTY.VERY_EASY:return(0,je.__)("very easy","wordpress-seo");case d.DIFFICULTY.EASY:return(0,je.__)("easy","wordpress-seo");case d.DIFFICULTY.FAIRLY_EASY:return(0,je.__)("fairly easy","wordpress-seo");case d.DIFFICULTY.OKAY:return(0,je.__)("okay","wordpress-seo");case d.DIFFICULTY.FAIRLY_DIFFICULT:return(0,je.__)("fairly difficult","wordpress-seo");case d.DIFFICULTY.DIFFICULT:return(0,je.__)("difficult","wordpress-seo");case d.DIFFICULTY.VERY_DIFFICULT:return(0,je.__)("very difficult","wordpress-seo")}}(t))}const Hs=()=>{let e=(0,a.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseScore()),[]);const t=(0,re.useMemo)((()=>(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease","")),[]),s=(0,a.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseDifficulty()),[e]),i=(0,re.useMemo)((()=>{const t=(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease_article","");return function(e,t,s){const i=function(e){switch(e){case d.DIFFICULTY.FAIRLY_DIFFICULT:case d.DIFFICULTY.DIFFICULT:case d.DIFFICULTY.VERY_DIFFICULT:return(0,je.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case d.DIFFICULTY.NO_DATA:return(0,je.__)("Continue writing to get insight into the readability of your text!","wordpress-seo");default:return(0,je.__)("Good job!","wordpress-seo")}}(t);return(0,pe.jsxs)("span",{children:[Ks(e,t)," ",t>=d.DIFFICULTY.FAIRLY_DIFFICULT?(0,pe.jsx)(Bs,{href:s,children:i+"."}):i]})}(e,s,t)}),[e,s]);return-1===e&&(e="?"),(0,pe.jsx)(ht.InsightsCard,{amount:e,unit:(0,je.__)("out of 100","wordpress-seo"),title:(0,je.__)("Flesch reading ease","wordpress-seo"),linkTo:t -/* translators: Hidden accessibility text. */,linkText:(0,je.__)("Learn more about Flesch reading ease","wordpress-seo"),description:i})},Ys=({data:e=[],itemScreenReaderText:t="",className:s="",...i})=>{const o=(0,re.useMemo)((()=>{var t,s;return null!==(t=null===(s=(0,c.maxBy)(e,"number"))||void 0===s?void 0:s.number)&&void 0!==t?t:0}),[e]);return(0,pe.jsx)("ul",{className:Je()("yoast-data-model",s),...i,children:e.map((({name:e,number:s})=>(0,pe.jsxs)("li",{style:{"--yoast-width":s/o*100+"%"},children:[e,(0,pe.jsx)("span",{children:s}),t&&(0,pe.jsx)("span",{className:"screen-reader-text",children:(0,je.sprintf)(t,s)})]},`${e}_dataItem`)))})};Ys.propTypes={data:le().arrayOf(le().shape({name:le().string.isRequired,number:le().number.isRequired})),itemScreenReaderText:le().string,className:le().string};const Vs=Ys,zs=(0,jt.makeOutboundLink)(),Gs=({location:e})=>{const t=(0,a.useSelect)((e=>{var t,s;return null===(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getPreference("isProminentWordsAvailable",!1))||void 0===t||t}),[]),s=(0,a.useSelect)((e=>e("yoast-seo/editor").getPreference("shouldUpsell",!1)),[]),i=(0,re.useMemo)((()=>(0,c.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-prominent_words`,"")),[e]),o=(0,re.useMemo)((()=>{const e=(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return Fe((0,je.sprintf)( +/* translators: Hidden accessibility text. */,linkText:(0,je.__)("Learn more about Flesch reading ease","wordpress-seo"),description:i})},zs=({data:e=[],itemScreenReaderText:t="",className:s="",...i})=>{const o=(0,re.useMemo)((()=>{var t,s;return null!==(t=null===(s=(0,c.maxBy)(e,"number"))||void 0===s?void 0:s.number)&&void 0!==t?t:0}),[e]);return(0,pe.jsx)("ul",{className:et()("yoast-data-model",s),...i,children:e.map((({name:e,number:s})=>(0,pe.jsxs)("li",{style:{"--yoast-width":s/o*100+"%"},children:[e,(0,pe.jsx)("span",{children:s}),t&&(0,pe.jsx)("span",{className:"screen-reader-text",children:(0,je.sprintf)(t,s)})]},`${e}_dataItem`)))})};zs.propTypes={data:le().arrayOf(le().shape({name:le().string.isRequired,number:le().number.isRequired})),itemScreenReaderText:le().string,className:le().string};const Vs=zs,Ys=(0,jt.makeOutboundLink)(),Gs=({location:e})=>{const t=(0,a.useSelect)((e=>{var t,s;return null===(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getPreference("isProminentWordsAvailable",!1))||void 0===t||t}),[]),s=(0,a.useSelect)((e=>e("yoast-seo/editor").getPreference("shouldUpsell",!1)),[]),i=(0,re.useMemo)((()=>(0,c.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-prominent_words`,"")),[e]),o=(0,re.useMemo)((()=>{const e=(0,c.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return Fe((0,je.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing <a> tags. -(0,je.__)("Read our %1$sultimate guide to keyword research%2$s to learn more about keyword research and keyword strategy.","wordpress-seo"),"<a>","</a>"),{a:(0,pe.jsx)(zs,{href:e})})}),[]),r=(0,re.useMemo)((()=>Fe((0,je.sprintf)( +(0,je.__)("Read our %1$sultimate guide to keyword research%2$s to learn more about keyword research and keyword strategy.","wordpress-seo"),"<a>","</a>"),{a:(0,pe.jsx)(Ys,{href:e})})}),[]),r=(0,re.useMemo)((()=>Fe((0,je.sprintf)( // translators: %1$s expands to a starting `b` tag, %1$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`. (0,je.__)("With %1$s%3$s%2$s, this section will show you which words occur most often in your text. By checking these prominent words against your intended keyword(s), you'll know how to edit your text to be more focused.","wordpress-seo"),"<b>","</b>","Yoast SEO Premium"),{b:(0,pe.jsx)("b",{})})),[]),n=(0,a.useSelect)((e=>{var t,s;return null!==(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getProminentWords())&&void 0!==t?t:[]}),[]),l=(0,re.useMemo)((()=>{const e=(0,je.sprintf)( // translators: %1$s expands to Yoast SEO Premium. -(0,je.__)("Get %s to enjoy the benefits of prominent words","wordpress-seo"),"Yoast SEO Premium").split(/\s+/);return e.map(((t,s)=>({name:t,number:e.length-s})))}),[]),d=(0,re.useMemo)((()=>s?l:n.map((({word:e,occurrence:t})=>({name:e,number:t})))),[n,l]);if(!t)return null;const{locationContext:p}=(0,ne.useRootContext)();return(0,pe.jsxs)("div",{className:"yoast-prominent-words",children:[(0,pe.jsx)("div",{className:"yoast-field-group__title",children:(0,pe.jsx)("b",{children:(0,je.__)("Prominent words","wordpress-seo")})}),!s&&(0,pe.jsx)("p",{children:0===d.length?(0,je.__)("Once you add a bit more copy, we'll give you a list of words that occur the most in the content. These give an indication of what your content focuses on.","wordpress-seo"):(0,je.__)("The following words occur the most in the content. These give an indication of what your content focuses on. If the words differ a lot from your topic, you might want to rewrite your content accordingly.","wordpress-seo")}),s&&(0,pe.jsx)("p",{children:r}),s&&(0,pe.jsxs)(zs,{href:(0,dt.addQueryArgs)(i,{context:p}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell",children:[(0,je.sprintf)( +(0,je.__)("Get %s to enjoy the benefits of prominent words","wordpress-seo"),"Yoast SEO Premium").split(/\s+/);return e.map(((t,s)=>({name:t,number:e.length-s})))}),[]),d=(0,re.useMemo)((()=>s?l:n.map((({word:e,occurrence:t})=>({name:e,number:t})))),[n,l]);if(!t)return null;const{locationContext:p}=(0,ne.useRootContext)();return(0,pe.jsxs)("div",{className:"yoast-prominent-words",children:[(0,pe.jsx)("div",{className:"yoast-field-group__title",children:(0,pe.jsx)("b",{children:(0,je.__)("Prominent words","wordpress-seo")})}),!s&&(0,pe.jsx)("p",{children:0===d.length?(0,je.__)("Once you add a bit more copy, we'll give you a list of words that occur the most in the content. These give an indication of what your content focuses on.","wordpress-seo"):(0,je.__)("The following words occur the most in the content. These give an indication of what your content focuses on. If the words differ a lot from your topic, you might want to rewrite your content accordingly.","wordpress-seo")}),s&&(0,pe.jsx)("p",{children:r}),s&&(0,pe.jsxs)(Ys,{href:(0,dt.addQueryArgs)(i,{context:p}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell",children:[(0,je.sprintf)( // translators: %s expands to `Premium` (part of add-on name). (0,je.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,pe.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]}),(0,pe.jsx)("p",{children:o}),(0,pe.jsx)(Vs,{data:d,itemScreenReaderText:/* translators: Hidden accessibility text; %d expands to the number of occurrences. */ (0,je.__)("%d occurrences","wordpress-seo"),"aria-label":(0,je.__)("Prominent words","wordpress-seo"),className:s?"yoast-data-model--upsell":null})]})};Gs.propTypes={location:le().string.isRequired};const Zs=Gs,Qs=(0,jt.makeOutboundLink)(),Xs=({location:e})=>{const t=(0,re.useMemo)((()=>(0,c.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${e}-text_formality`,"")),[e]),s=(0,re.useMemo)((()=>Fe((0,je.sprintf)( @@ -96,7 +95,7 @@ text-decoration: underline; font-size: 14px; cursor: pointer; -`;class Hi extends Pe.Component{constructor(e){super(e),this.state={imageProperties:null,status:"loading"},this.socialMedium="Facebook",this.handleFacebookImage=this.handleFacebookImage.bind(this),this.setState=this.setState.bind(this)}async handleFacebookImage(){try{const e=await $i(this.props.src,this.socialMedium);this.setState(e),this.props.onImageLoaded(e.imageProperties.mode||"landscape")}catch(e){this.setState(e),this.props.onImageLoaded("landscape")}}componentDidUpdate(e){e.src!==this.props.src&&this.handleFacebookImage()}componentDidMount(){this.handleFacebookImage()}retrieveContainerDimensions(e){switch(e){case"square":return{height:Pi.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:Pi.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:Pi.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:Pi.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:Pi.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:Pi.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return(0,pe.jsx)(Ki,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,je.__)("Select image","wordpress-seo")});const s=this.retrieveContainerDimensions(e.mode);return(0,pe.jsx)(Bi,{mode:e.mode,dimensions:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick,children:(0,pe.jsx)(qi,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:Pi.FACEBOOK_IMAGE_SIZES.aspectRatio},width:e.width,height:e.height,imageMode:e.mode})})}}Hi.propTypes={src:le().string,alt:le().string,onImageLoaded:le().func,onImageClick:le().func,onMouseEnter:le().func,onMouseLeave:le().func},Hi.defaultProps={src:"",alt:"",onImageLoaded:c.noop,onImageClick:c.noop,onMouseEnter:c.noop,onMouseLeave:c.noop};const Yi=Hi,Vi=de().span` +`;class Hi extends Pe.Component{constructor(e){super(e),this.state={imageProperties:null,status:"loading"},this.socialMedium="Facebook",this.handleFacebookImage=this.handleFacebookImage.bind(this),this.setState=this.setState.bind(this)}async handleFacebookImage(){try{const e=await $i(this.props.src,this.socialMedium);this.setState(e),this.props.onImageLoaded(e.imageProperties.mode||"landscape")}catch(e){this.setState(e),this.props.onImageLoaded("landscape")}}componentDidUpdate(e){e.src!==this.props.src&&this.handleFacebookImage()}componentDidMount(){this.handleFacebookImage()}retrieveContainerDimensions(e){switch(e){case"square":return{height:Pi.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:Pi.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:Pi.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:Pi.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:Pi.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:Pi.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return(0,pe.jsx)(Ki,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,je.__)("Select image","wordpress-seo")});const s=this.retrieveContainerDimensions(e.mode);return(0,pe.jsx)(Bi,{mode:e.mode,dimensions:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick,children:(0,pe.jsx)(qi,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:Pi.FACEBOOK_IMAGE_SIZES.aspectRatio},width:e.width,height:e.height,imageMode:e.mode})})}}Hi.propTypes={src:le().string,alt:le().string,onImageLoaded:le().func,onImageClick:le().func,onMouseEnter:le().func,onMouseLeave:le().func},Hi.defaultProps={src:"",alt:"",onImageLoaded:c.noop,onImageClick:c.noop,onMouseEnter:c.noop,onMouseLeave:c.noop};const zi=Hi,Vi=de().span` line-height: ${20}px; min-height : ${20}px; color: #1d2129; @@ -112,7 +111,7 @@ -webkit-line-clamp: ${e=>e.lineCount}; -webkit-box-orient: vertical; overflow: hidden; -`,zi=de().p` +`,Yi=de().p` line-height: ${16}px; min-height : ${16}px; color: #606770; @@ -151,7 +150,7 @@ justify-content: ${e=>"landscape"===e.mode?"flex-start":"center"}; font-size: 12px; overflow: hidden; -`;class Xi extends Pe.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=De().createRef(),this.onImageLoaded=this.onImageLoaded.bind(this),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}onImageLoaded(e){this.setState({imageMode:e})}getTitleLineCount(){return this.facebookTitleRef.current.offsetHeight/20}maybeSetMaxLineCount(){const{imageMode:e,maxLineCount:t}=this.state,s="landscape"===e?2:5;s!==t&&this.setState({maxLineCount:s})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:t,imageMode:s}=this.state,i=this.getTitleLineCount();let o=t-i;"portrait"===s&&(o=5===i?0:4),o!==e&&this.setState({descriptionLineCount:o})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:t,descriptionLineCount:s}=this.state;return(0,pe.jsxs)(Zi,{id:"facebookPreview",mode:e,children:[(0,pe.jsx)(Yi,{src:this.props.imageUrl||this.props.imageFallbackUrl,alt:this.props.alt,onImageLoaded:this.onImageLoaded,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,pe.jsxs)(Qi,{mode:e,children:[(0,pe.jsx)(Ai,{siteUrl:this.props.siteUrl,mode:e}),(0,pe.jsx)(Vi,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:t,children:this.props.title}),s>0&&(0,pe.jsx)(zi,{maxWidth:Gi(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:s,children:this.props.description})]})]})}}Xi.propTypes={siteUrl:le().string.isRequired,title:le().string.isRequired,description:le().string,imageUrl:le().string,imageFallbackUrl:le().string,alt:le().string,onSelect:le().func,onImageClick:le().func,onMouseHover:le().func},Xi.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const Ji=Xi,eo=de().div` +`;class Xi extends Pe.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=De().createRef(),this.onImageLoaded=this.onImageLoaded.bind(this),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}onImageLoaded(e){this.setState({imageMode:e})}getTitleLineCount(){return this.facebookTitleRef.current.offsetHeight/20}maybeSetMaxLineCount(){const{imageMode:e,maxLineCount:t}=this.state,s="landscape"===e?2:5;s!==t&&this.setState({maxLineCount:s})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:t,imageMode:s}=this.state,i=this.getTitleLineCount();let o=t-i;"portrait"===s&&(o=5===i?0:4),o!==e&&this.setState({descriptionLineCount:o})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:t,descriptionLineCount:s}=this.state;return(0,pe.jsxs)(Zi,{id:"facebookPreview",mode:e,children:[(0,pe.jsx)(zi,{src:this.props.imageUrl||this.props.imageFallbackUrl,alt:this.props.alt,onImageLoaded:this.onImageLoaded,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,pe.jsxs)(Qi,{mode:e,children:[(0,pe.jsx)(Ai,{siteUrl:this.props.siteUrl,mode:e}),(0,pe.jsx)(Vi,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:t,children:this.props.title}),s>0&&(0,pe.jsx)(Yi,{maxWidth:Gi(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:s,children:this.props.description})]})]})}}Xi.propTypes={siteUrl:le().string.isRequired,title:le().string.isRequired,description:le().string,imageUrl:le().string,imageFallbackUrl:le().string,alt:le().string,onSelect:le().func,onImageClick:le().func,onMouseHover:le().func},Xi.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const Ji=Xi,eo=de().div` text-transform: lowercase; color: rgb(83, 100, 113); white-space: nowrap; @@ -292,10 +291,10 @@ height: 18px; margin: 3px; `,Ko=e=>{const{useOpenGraphData:t,useTwitterData:s}=e;if(!t&&!s)return;const i=Os();return(0,pe.jsxs)(Ws -/* translators: Social media appearance refers to a preview of how a page will be represented on social media. */,{title:(0,je.__)("Social media appearance","wordpress-seo"),id:"yoast-social-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,pe.jsx)(Bo,{className:"yst-text-slate-500",...i}),children:[t&&(0,pe.jsxs)(re.Fragment,{children:[(0,pe.jsx)($o,{children:(0,je.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")}),(0,pe.jsx)(Do,{}),s&&(0,pe.jsx)(Wo,{children:(0,je.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below. If you leave these settings untouched, the 'Social media appearance' settings mentioned above will also be applied for sharing on X.","wordpress-seo")})]}),t&&s&&(0,pe.jsx)(Uo,{title:(0,je.__)("X appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1,children:(0,pe.jsx)(qo,{})}),!t&&s&&(0,pe.jsxs)(re.Fragment,{children:[(0,pe.jsx)($o,{children:(0,je.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below.","wordpress-seo")}),(0,pe.jsx)(qo,{})]})]})};Ko.propTypes={useOpenGraphData:le().bool.isRequired,useTwitterData:le().bool.isRequired};const Ho=Ko,Yo=({title:e,children:t,prefixIcon:s=null,subTitle:i="",hasBetaBadgeLabel:o=!1,hasNewBadgeLabel:r=!1,buttonId:n=null,renderNewBadgeLabel:a=(()=>{})})=>{const[l,c]=(0,re.useState)(!1),d=(0,re.useCallback)((()=>{c((e=>!e))}),[c]);return(0,pe.jsxs)("div",{className:"yoast components-panel__body "+(l?"is-opened":""),children:[(0,pe.jsx)("h2",{className:"components-panel__body-title",children:(0,pe.jsxs)("button",{onClick:d,className:"components-button components-panel__body-toggle",type:"button",id:n,children:[(0,pe.jsx)("span",{className:"yoast-icon-span",style:{fill:`${s&&s.color||""}`},children:s&&(0,pe.jsx)(ht.SvgIcon,{icon:s.icon,color:s.color,size:s.size})}),!r&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsxs)("span",{className:"yoast-title-container",children:[(0,pe.jsx)("div",{className:"yoast-title",children:e}),i&&(0,pe.jsx)("div",{className:"yoast-subtitle",children:i})]}),o&&(0,pe.jsx)(ht.BetaBadge,{})]}),r&&(0,pe.jsxs)("div",{className:"yst-flex-grow yst-flex yst-items-center yst-gap-2",children:[(0,pe.jsxs)("span",{className:"yst-overflow-x-hidden yst-leading-normal",children:[(0,pe.jsx)("div",{className:"yoast-title",children:e}),i&&(0,pe.jsx)("div",{className:"yoast-subtitle",children:i})]}),a()]}),(0,pe.jsx)("span",{className:"yoast-chevron","aria-hidden":"true"})]})}),l&&t]})},Vo=Yo;Yo.propTypes={title:le().string.isRequired,children:le().oneOfType([le().node,le().arrayOf(le().node)]).isRequired,prefixIcon:le().object,subTitle:le().string,hasBetaBadgeLabel:le().bool,hasNewBadgeLabel:le().bool,buttonId:le().string,renderNewBadgeLabel:le().func};const zo=(0,jt.makeOutboundLink)(),Go=de().div` +/* translators: Social media appearance refers to a preview of how a page will be represented on social media. */,{title:(0,je.__)("Social media appearance","wordpress-seo"),id:"yoast-social-appearance-modal",shouldCloseOnClickOutside:!1,SuffixHeroIcon:(0,pe.jsx)(Bo,{className:"yst-text-slate-500",...i}),children:[t&&(0,pe.jsxs)(re.Fragment,{children:[(0,pe.jsx)($o,{children:(0,je.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")}),(0,pe.jsx)(Do,{}),s&&(0,pe.jsx)(Wo,{children:(0,je.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below. If you leave these settings untouched, the 'Social media appearance' settings mentioned above will also be applied for sharing on X.","wordpress-seo")})]}),t&&s&&(0,pe.jsx)(Uo,{title:(0,je.__)("X appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1,children:(0,pe.jsx)(qo,{})}),!t&&s&&(0,pe.jsxs)(re.Fragment,{children:[(0,pe.jsx)($o,{children:(0,je.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below.","wordpress-seo")}),(0,pe.jsx)(qo,{})]})]})};Ko.propTypes={useOpenGraphData:le().bool.isRequired,useTwitterData:le().bool.isRequired};const Ho=Ko,zo=({title:e,children:t,prefixIcon:s=null,subTitle:i="",hasBetaBadgeLabel:o=!1,hasNewBadgeLabel:r=!1,buttonId:n=null,renderNewBadgeLabel:a=(()=>{})})=>{const[l,c]=(0,re.useState)(!1),d=(0,re.useCallback)((()=>{c((e=>!e))}),[c]);return(0,pe.jsxs)("div",{className:"yoast components-panel__body "+(l?"is-opened":""),children:[(0,pe.jsx)("h2",{className:"components-panel__body-title",children:(0,pe.jsxs)("button",{onClick:d,className:"components-button components-panel__body-toggle",type:"button",id:n,children:[(0,pe.jsx)("span",{className:"yoast-icon-span",style:{fill:`${s&&s.color||""}`},children:s&&(0,pe.jsx)(ht.SvgIcon,{icon:s.icon,color:s.color,size:s.size})}),!r&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsxs)("span",{className:"yoast-title-container",children:[(0,pe.jsx)("div",{className:"yoast-title",children:e}),i&&(0,pe.jsx)("div",{className:"yoast-subtitle",children:i})]}),o&&(0,pe.jsx)(ht.BetaBadge,{})]}),r&&(0,pe.jsxs)("div",{className:"yst-flex-grow yst-flex yst-items-center yst-gap-2",children:[(0,pe.jsxs)("span",{className:"yst-overflow-x-hidden yst-leading-normal",children:[(0,pe.jsx)("div",{className:"yoast-title",children:e}),i&&(0,pe.jsx)("div",{className:"yoast-subtitle",children:i})]}),a()]}),(0,pe.jsx)("span",{className:"yoast-chevron","aria-hidden":"true"})]})}),l&&t]})},Vo=zo;zo.propTypes={title:le().string.isRequired,children:le().oneOfType([le().node,le().arrayOf(le().node)]).isRequired,prefixIcon:le().object,subTitle:le().string,hasBetaBadgeLabel:le().bool,hasNewBadgeLabel:le().bool,buttonId:le().string,renderNewBadgeLabel:le().func};const Yo=(0,jt.makeOutboundLink)(),Go=de().div` padding: 16px; `,Zo="yoast-seo/editor";function Qo({location:e,show:t}){return t?(0,pe.jsxs)(ht.Alert,{type:"info",children:[(0,je.sprintf)(/* translators: %s Expands to "Yoast News SEO" */ -(0,je.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",(0,pe.jsx)(zo,{href:window.wpseoAdminL10n[`shortlinks.upsell.${e}.news`],children:(0,je.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */ +(0,je.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",(0,pe.jsx)(Yo,{href:window.wpseoAdminL10n[`shortlinks.upsell.${e}.news`],children:(0,je.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */ (0,je.__)("Buy %s now!","wordpress-seo"),"Yoast News SEO")})]}):null}Qo.propTypes={show:le().bool.isRequired,location:le().string.isRequired};const Xo=(e,t,s)=>{const i=(0,a.useSelect)((e=>e(Zo).getIsProduct()),[]),o=(0,a.useSelect)((e=>e(Zo).getIsWooSeoActive()),[]),r=i&&o?{name:(0,je.__)("Item Page","wordpress-seo"),value:"ItemPage"}:e.find((e=>e.value===t));return[{name:(0,je.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */ (0,je.__)("Default for %1$s (%2$s)","wordpress-seo"),s,r?r.name:""),value:""},...e]},Jo=(e,t)=>Fe((e=>(0,je.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Settings page */ (0,je.__)("You can change the default type for %1$s under Content types in the %2$sSettings%3$s.","wordpress-seo"),e,"<link>","</link>"))(e),{link:(0,pe.jsx)("a",{href:t,target:"_blank",rel:"noreferrer"})}),er=({helpTextTitle:e,helpTextLink:t,helpTextDescription:s})=>(0,pe.jsx)(ht.FieldGroup,{label:e,linkTo:t @@ -373,7 +372,7 @@ align-items: center; `,Wr=de().tr` background-color: ${e=>e.isEnabled?"#FFFFFF":"#F9F9F9"} !important; -`;function $r(e){return Math.round(100*e)}function Br({chartData:e={}}){if((0,c.isEmpty)(e)||(0,c.isEmpty)(e.position))return"?";const t=function(e){return Array.from({length:e.position.history.length},((e,t)=>t+1)).map((e=>(0,je.sprintf)((0,je._n)("%d day","%d days",e,"wordpress-seo"),e)))}(e),s=e.position.history.map(((e,t)=>({x:t,y:31-e.value})));return(0,pe.jsx)(Ar,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",mapChartDataToTableData:$r,dataTableCaption:(0,je.__)("Keyphrase position in the last 90 days on a scale from 0 to 30.","wordpress-seo"),dataTableHeaderLabels:t})}function Kr({keyphrase:e,isEnabled:t,toggleAction:s,isLoading:i}){return i?(0,pe.jsx)(ht.SvgIcon,{icon:"loading-spinner"}):(0,pe.jsx)(ht.Toggle,{id:`toggle-keyphrase-tracking-${e}`,className:"wincher-toggle",isEnabled:t,onSetToggleState:s,showToggleStateLabel:!1})}function Hr(e){return!e||!e.position||e.position.value>30?"> 30":e.position.value}Br.propTypes={chartData:le().object};const Yr=e=>kr()(e).fromNow(),Vr=({rowData:e={}})=>{var t;if(null==e||null===(t=e.position)||void 0===t||!t.change)return(0,pe.jsx)(Br,{chartData:e});const s=e.position.change<0;return(0,pe.jsxs)(re.Fragment,{children:[(0,pe.jsx)(Br,{chartData:e}),(0,pe.jsx)(Fr,{isImproving:s,children:Math.abs(e.position.change)}),(0,pe.jsx)(Dr,{icon:"caret-right",color:s?"#69AB56":"#DC3332",size:"14px",isImproving:s})]})};function zr({rowData:e,websiteId:t,keyphrase:s,onSelectKeyphrases:i}){const o=(0,re.useCallback)((()=>{i([s])}),[i,s]),r=!(0,c.isEmpty)(e),n=e&&e.updated_at&&kr()(e.updated_at)>=kr()().subtract(7,"days"),a=e?`https://app.wincher.com/websites/${t}/keywords?serp=${e.id}&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast`:null;return r?n?(0,pe.jsxs)(re.Fragment,{children:[(0,pe.jsx)("td",{children:(0,pe.jsxs)(Nr,{children:[Hr(e),(0,pe.jsx)(ht.ButtonStyledLink,{variant:"secondary",href:a,style:{height:28,marginLeft:12},rel:"noopener",target:"_blank",children:(0,je.__)("View","wordpress-seo")})]})}),(0,pe.jsx)("td",{className:"yoast-table--nopadding",children:(0,pe.jsx)(Ur,{type:"button",onClick:o,children:(0,pe.jsx)(Vr,{rowData:e})})}),(0,pe.jsx)("td",{children:Yr(e.updated_at)})]}):(0,pe.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,pe.jsx)(Pr,{})}):(0,pe.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,pe.jsx)("i",{children:(0,je.__)("Activate tracking to show the ranking position","wordpress-seo")})})}function Gr({keyphrase:e,rowData:t={},onTrackKeyphrase:s=c.noop,onUntrackKeyphrase:i=c.noop,isFocusKeyphrase:o=!1,isDisabled:r=!1,isLoading:n=!1,websiteId:a="",isSelected:l,onSelectKeyphrases:d}){var p;const u=!(0,c.isEmpty)(t),h=!(0,c.isEmpty)(null==t||null===(p=t.position)||void 0===p?void 0:p.history),g=(0,re.useCallback)((()=>{r||(u?i(e,t.id):s(e))}),[e,s,i,u,t,r]),m=(0,re.useCallback)((()=>{d((t=>l?t.filter((t=>t!==e)):t.concat(e)))}),[d,l,e]);return(0,pe.jsxs)(Wr,{isEnabled:u,children:[(0,pe.jsx)(Or,{children:h&&(0,pe.jsx)(ht.Checkbox,{id:"select-"+e,onChange:m,checked:l,label:""})}),(0,pe.jsxs)(Mr,{children:[e,o&&(0,pe.jsx)("span",{children:"*"})]}),zr({rowData:t,websiteId:a,keyphrase:e,onSelectKeyphrases:d}),(0,pe.jsx)(qr,{children:Kr({keyphrase:e,isEnabled:u,toggleAction:g,isLoading:n})})]})}Vr.propTypes={rowData:le().object},Gr.propTypes={rowData:le().object,keyphrase:le().string.isRequired,onTrackKeyphrase:le().func,onUntrackKeyphrase:le().func,isFocusKeyphrase:le().bool,isDisabled:le().bool,isLoading:le().bool,websiteId:le().string,isSelected:le().bool.isRequired,onSelectKeyphrases:le().func.isRequired};const Zr=(0,jt.makeOutboundLink)(),Qr=de().span` +`;function $r(e){return Math.round(100*e)}function Br({chartData:e={}}){if((0,c.isEmpty)(e)||(0,c.isEmpty)(e.position))return"?";const t=function(e){return Array.from({length:e.position.history.length},((e,t)=>t+1)).map((e=>(0,je.sprintf)((0,je._n)("%d day","%d days",e,"wordpress-seo"),e)))}(e),s=e.position.history.map(((e,t)=>({x:t,y:31-e.value})));return(0,pe.jsx)(Ar,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",mapChartDataToTableData:$r,dataTableCaption:(0,je.__)("Keyphrase position in the last 90 days on a scale from 0 to 30.","wordpress-seo"),dataTableHeaderLabels:t})}function Kr({keyphrase:e,isEnabled:t,toggleAction:s,isLoading:i}){return i?(0,pe.jsx)(ht.SvgIcon,{icon:"loading-spinner"}):(0,pe.jsx)(ht.Toggle,{id:`toggle-keyphrase-tracking-${e}`,className:"wincher-toggle",isEnabled:t,onSetToggleState:s,showToggleStateLabel:!1})}function Hr(e){return!e||!e.position||e.position.value>30?"> 30":e.position.value}Br.propTypes={chartData:le().object};const zr=e=>kr()(e).fromNow(),Vr=({rowData:e={}})=>{var t;if(null==e||null===(t=e.position)||void 0===t||!t.change)return(0,pe.jsx)(Br,{chartData:e});const s=e.position.change<0;return(0,pe.jsxs)(re.Fragment,{children:[(0,pe.jsx)(Br,{chartData:e}),(0,pe.jsx)(Fr,{isImproving:s,children:Math.abs(e.position.change)}),(0,pe.jsx)(Dr,{icon:"caret-right",color:s?"#69AB56":"#DC3332",size:"14px",isImproving:s})]})};function Yr({rowData:e,websiteId:t,keyphrase:s,onSelectKeyphrases:i}){const o=(0,re.useCallback)((()=>{i([s])}),[i,s]),r=!(0,c.isEmpty)(e),n=e&&e.updated_at&&kr()(e.updated_at)>=kr()().subtract(7,"days"),a=e?`https://app.wincher.com/websites/${t}/keywords?serp=${e.id}&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast`:null;return r?n?(0,pe.jsxs)(re.Fragment,{children:[(0,pe.jsx)("td",{children:(0,pe.jsxs)(Nr,{children:[Hr(e),(0,pe.jsx)(ht.ButtonStyledLink,{variant:"secondary",href:a,style:{height:28,marginLeft:12},rel:"noopener",target:"_blank",children:(0,je.__)("View","wordpress-seo")})]})}),(0,pe.jsx)("td",{className:"yoast-table--nopadding",children:(0,pe.jsx)(Ur,{type:"button",onClick:o,children:(0,pe.jsx)(Vr,{rowData:e})})}),(0,pe.jsx)("td",{children:zr(e.updated_at)})]}):(0,pe.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,pe.jsx)(Pr,{})}):(0,pe.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,pe.jsx)("i",{children:(0,je.__)("Activate tracking to show the ranking position","wordpress-seo")})})}function Gr({keyphrase:e,rowData:t={},onTrackKeyphrase:s=c.noop,onUntrackKeyphrase:i=c.noop,isFocusKeyphrase:o=!1,isDisabled:r=!1,isLoading:n=!1,websiteId:a="",isSelected:l,onSelectKeyphrases:d}){var p;const u=!(0,c.isEmpty)(t),h=!(0,c.isEmpty)(null==t||null===(p=t.position)||void 0===p?void 0:p.history),g=(0,re.useCallback)((()=>{r||(u?i(e,t.id):s(e))}),[e,s,i,u,t,r]),m=(0,re.useCallback)((()=>{d((t=>l?t.filter((t=>t!==e)):t.concat(e)))}),[d,l,e]);return(0,pe.jsxs)(Wr,{isEnabled:u,children:[(0,pe.jsx)(Or,{children:h&&(0,pe.jsx)(ht.Checkbox,{id:"select-"+e,onChange:m,checked:l,label:""})}),(0,pe.jsxs)(Mr,{children:[e,o&&(0,pe.jsx)("span",{children:"*"})]}),Yr({rowData:t,websiteId:a,keyphrase:e,onSelectKeyphrases:d}),(0,pe.jsx)(qr,{children:Kr({keyphrase:e,isEnabled:u,toggleAction:g,isLoading:n})})]})}Vr.propTypes={rowData:le().object},Gr.propTypes={rowData:le().object,keyphrase:le().string.isRequired,onTrackKeyphrase:le().func,onUntrackKeyphrase:le().func,isFocusKeyphrase:le().bool,isDisabled:le().bool,isLoading:le().bool,websiteId:le().string,isSelected:le().bool.isRequired,onSelectKeyphrases:le().func.isRequired};const Zr=(0,jt.makeOutboundLink)(),Qr=de().span` display: block; font-style: italic; @@ -447,7 +446,7 @@ * %2$s expands to the upgrade discount value. * %3$s expands to the upgrade discount duration e.g. 2 months. */ -(0,je.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"<wincherAccountUpgradeLink/>",i+"%",t);return(0,pe.jsx)(Tn,{children:Fe(o,{wincherAccountUpgradeLink:s})})};In.propTypes={discount:le().number,months:le().number};const Ln=({onClose:e=null,isTitleShortened:t=!1,trackingInfo:s=null})=>{const i=(()=>{const[e,t]=(0,re.useState)(null);return(0,re.useEffect)((()=>{e||async function(){return await Er({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}().then((e=>t(e)))}),[e]),e})();if(null===s)return null;const{limit:o,usage:r}=s;if(!(o&&r/o>=.8))return null;const n=Boolean(null==i?void 0:i.discount);return(0,pe.jsxs)(En,{isTitleShortened:t,children:[e&&(0,pe.jsx)(Rn,{type:"button","aria-label":(0,je.__)("Close the upgrade callout","wordpress-seo"),onClick:e,children:(0,pe.jsx)(ht.SvgIcon,{icon:"times-circle",color:Di.colors.$color_pink_dark,size:"14px"})}),(0,pe.jsx)(jn,{...s,isTitleShortened:t,isFreeAccount:n}),(0,pe.jsx)(In,{discount:null==i?void 0:i.discount,months:null==i?void 0:i.months})]})};Ln.propTypes={onClose:le().func,isTitleShortened:le().bool,trackingInfo:le().object};const An=Ln,Pn=window.yoast["chart.js"],Dn="label";function Fn(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function On(e,t){e.labels=t}function Mn(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dn;const i=[];e.datasets=t.map((t=>{const o=e.datasets.find((e=>e[s]===t[s]));return o&&t.data&&!i.includes(o)?(i.push(o),Object.assign(o,t),o):{...t}}))}function qn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dn;const s={labels:[],datasets:[]};return On(s,e.labels),Mn(s,e.datasets,t),s}function Nn(e,t){const{height:s=150,width:i=300,redraw:o=!1,datasetIdKey:r,type:n,data:a,options:l,plugins:c=[],fallbackContent:d,updateMode:p,...u}=e,h=(0,Pe.useRef)(null),g=(0,Pe.useRef)(),m=()=>{h.current&&(g.current=new Pn.Chart(h.current,{type:n,data:qn(a,r),options:l&&{...l},plugins:c}),Fn(t,g.current))},y=()=>{Fn(t,null),g.current&&(g.current.destroy(),g.current=null)};return(0,Pe.useEffect)((()=>{!o&&g.current&&l&&function(e,t){const s=e.options;s&&t&&Object.assign(s,t)}(g.current,l)}),[o,l]),(0,Pe.useEffect)((()=>{!o&&g.current&&On(g.current.config.data,a.labels)}),[o,a.labels]),(0,Pe.useEffect)((()=>{!o&&g.current&&a.datasets&&Mn(g.current.config.data,a.datasets,r)}),[o,a.datasets]),(0,Pe.useEffect)((()=>{g.current&&(o?(y(),setTimeout(m)):g.current.update(p))}),[o,l,a.labels,a.datasets,p]),(0,Pe.useEffect)((()=>{g.current&&(y(),setTimeout(m))}),[n]),(0,Pe.useEffect)((()=>(m(),()=>y())),[]),Pe.createElement("canvas",Object.assign({ref:h,role:"img",height:s,width:i},u),d)}const Un=(0,Pe.forwardRef)(Nn);function Wn(e,t){return Pn.Chart.register(t),(0,Pe.forwardRef)(((t,s)=>Pe.createElement(Un,Object.assign({},t,{ref:s,type:e}))))}const $n=Wn("line",Pn.LineController),Bn={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Pn._adapters._date.override("function"==typeof kr()?{_id:"moment",formats:function(){return Bn},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=kr()(e,t):e instanceof kr()||(e=kr()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return kr()(e).format(t)},add:function(e,t,s){return kr()(e).add(t,s).valueOf()},diff:function(e,t,s){return kr()(e).diff(kr()(t),s)},startOf:function(e,t,s){return e=kr()(e),"isoWeek"===t?(s=Math.trunc(Math.min(Math.max(0,s),6)),e.isoWeekday(s).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return kr()(e).endOf(t).valueOf()}}:{}),Math.PI,Number.POSITIVE_INFINITY,Math.log10,Math.sign,"undefined"==typeof window||window.requestAnimationFrame,new Map,Object.create(null),Object.create(null),Number.EPSILON;const Kn=["top","right","bottom","left"];function Hn(e,t,s){const i={};s=s?"-"+s:"";for(let o=0;o<4;o++){const r=Kn[o];i[r]=parseFloat(e[t+"-"+r+s])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}!function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}}(),Pn.Chart.register(Pn.CategoryScale,Pn.LineController,Pn.LineElement,Pn.PointElement,Pn.LinearScale,Pn.TimeScale,Pn.Legend,Pn.Tooltip);const Yn=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function Vn({datasets:e,isChartShown:t,keyphrases:s}){if(!t)return null;const i=(0,re.useMemo)((()=>Object.fromEntries([...s].sort().map(((e,t)=>[e,Yn[t%Yn.length]])))),[s]),o=e.map((e=>{const t=i[e.label];return{...e,data:e.data.map((({datetime:e,value:t})=>({x:e,y:t}))),lineTension:0,pointRadius:1,pointHoverRadius:4,borderWidth:2,pointHitRadius:6,backgroundColor:t,borderColor:t}})).filter((e=>!1!==e.selected));return(0,pe.jsx)($n,{height:100,data:{datasets:o},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:c.noop},tooltip:{enabled:!0,callbacks:{title:e=>kr()(e[0].raw.x).utc().format("YYYY-MM-DD")},titleAlign:"center",mode:"xPoint",position:"nearest",usePointStyle:!0,boxHeight:7,boxWidth:7,boxPadding:2}},scales:{x:{bounds:"ticks",type:"time",time:{unit:"day",minUnit:"day"},grid:{display:!1},ticks:{autoSkipPadding:50,maxRotation:0,color:"black"}},y:{bounds:"ticks",offset:!0,reverse:!0,ticks:{precision:0,color:"black"},max:31}}}})}Pn.Interaction.modes.xPoint=(e,t,s,i)=>{const o=function(e,t){if("native"in e)return e;const{canvas:s,currentDevicePixelRatio:i}=t,o=(h=s).ownerDocument.defaultView.getComputedStyle(h,null),r="border-box"===o.boxSizing,n=Hn(o,"padding"),a=Hn(o,"border","width"),{x:l,y:c,box:d}=function(e,t){const s=e.touches,i=s&&s.length?s[0]:e,{offsetX:o,offsetY:r}=i;let n,a,l=!1;if(((e,t,s)=>(e>0||t>0)&&(!s||!s.shadowRoot))(o,r,e.target))n=o,a=r;else{const e=t.getBoundingClientRect();n=i.clientX-e.left,a=i.clientY-e.top,l=!0}return{x:n,y:a,box:l}}(e,s),p=n.left+(d&&a.left),u=n.top+(d&&a.top);var h;let{width:g,height:m}=t;return r&&(g-=n.width+a.width,m-=n.height+a.height),{x:Math.round((l-p)/g*s.width/i),y:Math.round((c-u)/m*s.height/i)}}(t,e);let r=[];if(Pn.Interaction.evaluateInteractionItems(e,"x",o,((e,t,s)=>{e.inXRange(o.x,i)&&r.push({element:e,datasetIndex:t,index:s})})),0===r.length)return r;const n=r.reduce(((e,t)=>Math.abs(o.x-e.element.x)<Math.abs(o.x-t.element.x)?e:t)).element.x;return r=r.filter((e=>e.element.x===n)),r.some((e=>Math.abs(e.element.y-o.y)<10))?r:[]},Vn.propTypes={datasets:le().arrayOf(le().shape({label:le().string.isRequired,data:le().arrayOf(le().shape({datetime:le().string.isRequired,value:le().number.isRequired})).isRequired,selected:le().bool})).isRequired,isChartShown:le().bool.isRequired,keyphrases:le().array.isRequired};const zn=({response:e,onLogin:t})=>[401,403,404].includes(e.status)?(0,pe.jsx)(xn,{onReconnect:t}):(0,pe.jsx)(vn,{});zn.propTypes={response:le().object.isRequired,onLogin:le().func.isRequired};const Gn=({isSuccess:e,response:t={},allKeyphrasesMissRanking:s,onLogin:i,keyphraseLimitReached:o,limit:r})=>o?(0,pe.jsx)(yn,{limit:r}):(0,c.isEmpty)(t)||e?s?(0,pe.jsx)(dn,{}):null:(0,pe.jsx)(zn,{response:t,onLogin:i});Gn.propTypes={isSuccess:le().bool.isRequired,allKeyphrasesMissRanking:le().bool.isRequired,response:le().object,onLogin:le().func.isRequired,keyphraseLimitReached:le().bool.isRequired,limit:le().number.isRequired};let Zn=null;const Qn=async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r})=>{if(Zn&&!Zn.isClosed())return void Zn.focus();const{url:n}=await async function(){return await Er({path:"yoast/v1/wincher/authorization-url",method:"GET"})}();Zn=new an(n,{success:{type:"wincher:oauth:success",callback:n=>(async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r},n)=>{await Tr((()=>async function(e){const{code:t,websiteId:s}=e;return await Er({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:s}})}(n)),(async a=>{e(!0,!0,n.websiteId.toString()),t(a);const l=(Array.isArray(i)?i:[i]).map((e=>e.toLowerCase()));await Tr((()=>jr(l)),(e=>{t(e),o(e.results)}),(e=>{400===e.status&&e.limit&&r(e.limit),s(e)}),201);const c=Zn.getPopup();c&&c.close()}),(async e=>s(e)))})({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r},n)},error:{type:"wincher:oauth:error",callback:()=>e(!1,!1)}},{title:"Wincher_login",width:500,height:700}),Zn.createPopup()},Xn=e=>e.isLoggedIn?null:(0,pe.jsx)("p",{children:(0,pe.jsx)(ht.NewButton,{onClick:e.onLogin,variant:"primary",children:(0,je.sprintf)(/* translators: %s expands to Wincher */ +(0,je.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"<wincherAccountUpgradeLink/>",i+"%",t);return(0,pe.jsx)(Tn,{children:Fe(o,{wincherAccountUpgradeLink:s})})};In.propTypes={discount:le().number,months:le().number};const Ln=({onClose:e=null,isTitleShortened:t=!1,trackingInfo:s=null})=>{const i=(()=>{const[e,t]=(0,re.useState)(null);return(0,re.useEffect)((()=>{e||async function(){return await Er({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}().then((e=>t(e)))}),[e]),e})();if(null===s)return null;const{limit:o,usage:r}=s;if(!(o&&r/o>=.8))return null;const n=Boolean(null==i?void 0:i.discount);return(0,pe.jsxs)(En,{isTitleShortened:t,children:[e&&(0,pe.jsx)(Rn,{type:"button","aria-label":(0,je.__)("Close the upgrade callout","wordpress-seo"),onClick:e,children:(0,pe.jsx)(ht.SvgIcon,{icon:"times-circle",color:Di.colors.$color_pink_dark,size:"14px"})}),(0,pe.jsx)(jn,{...s,isTitleShortened:t,isFreeAccount:n}),(0,pe.jsx)(In,{discount:null==i?void 0:i.discount,months:null==i?void 0:i.months})]})};Ln.propTypes={onClose:le().func,isTitleShortened:le().bool,trackingInfo:le().object};const An=Ln,Pn=window.yoast["chart.js"],Dn="label";function Fn(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function On(e,t){e.labels=t}function Mn(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dn;const i=[];e.datasets=t.map((t=>{const o=e.datasets.find((e=>e[s]===t[s]));return o&&t.data&&!i.includes(o)?(i.push(o),Object.assign(o,t),o):{...t}}))}function qn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dn;const s={labels:[],datasets:[]};return On(s,e.labels),Mn(s,e.datasets,t),s}function Nn(e,t){const{height:s=150,width:i=300,redraw:o=!1,datasetIdKey:r,type:n,data:a,options:l,plugins:c=[],fallbackContent:d,updateMode:p,...u}=e,h=(0,Pe.useRef)(null),g=(0,Pe.useRef)(),m=()=>{h.current&&(g.current=new Pn.Chart(h.current,{type:n,data:qn(a,r),options:l&&{...l},plugins:c}),Fn(t,g.current))},y=()=>{Fn(t,null),g.current&&(g.current.destroy(),g.current=null)};return(0,Pe.useEffect)((()=>{!o&&g.current&&l&&function(e,t){const s=e.options;s&&t&&Object.assign(s,t)}(g.current,l)}),[o,l]),(0,Pe.useEffect)((()=>{!o&&g.current&&On(g.current.config.data,a.labels)}),[o,a.labels]),(0,Pe.useEffect)((()=>{!o&&g.current&&a.datasets&&Mn(g.current.config.data,a.datasets,r)}),[o,a.datasets]),(0,Pe.useEffect)((()=>{g.current&&(o?(y(),setTimeout(m)):g.current.update(p))}),[o,l,a.labels,a.datasets,p]),(0,Pe.useEffect)((()=>{g.current&&(y(),setTimeout(m))}),[n]),(0,Pe.useEffect)((()=>(m(),()=>y())),[]),Pe.createElement("canvas",Object.assign({ref:h,role:"img",height:s,width:i},u),d)}const Un=(0,Pe.forwardRef)(Nn);function Wn(e,t){return Pn.Chart.register(t),(0,Pe.forwardRef)(((t,s)=>Pe.createElement(Un,Object.assign({},t,{ref:s,type:e}))))}const $n=Wn("line",Pn.LineController),Bn={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Pn._adapters._date.override("function"==typeof kr()?{_id:"moment",formats:function(){return Bn},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=kr()(e,t):e instanceof kr()||(e=kr()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return kr()(e).format(t)},add:function(e,t,s){return kr()(e).add(t,s).valueOf()},diff:function(e,t,s){return kr()(e).diff(kr()(t),s)},startOf:function(e,t,s){return e=kr()(e),"isoWeek"===t?(s=Math.trunc(Math.min(Math.max(0,s),6)),e.isoWeekday(s).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return kr()(e).endOf(t).valueOf()}}:{}),Math.PI,Number.POSITIVE_INFINITY,Math.log10,Math.sign,"undefined"==typeof window||window.requestAnimationFrame,new Map,Object.create(null),Object.create(null),Number.EPSILON;const Kn=["top","right","bottom","left"];function Hn(e,t,s){const i={};s=s?"-"+s:"";for(let o=0;o<4;o++){const r=Kn[o];i[r]=parseFloat(e[t+"-"+r+s])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}!function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}}(),Pn.Chart.register(Pn.CategoryScale,Pn.LineController,Pn.LineElement,Pn.PointElement,Pn.LinearScale,Pn.TimeScale,Pn.Legend,Pn.Tooltip);const zn=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function Vn({datasets:e,isChartShown:t,keyphrases:s}){if(!t)return null;const i=(0,re.useMemo)((()=>Object.fromEntries([...s].sort().map(((e,t)=>[e,zn[t%zn.length]])))),[s]),o=e.map((e=>{const t=i[e.label];return{...e,data:e.data.map((({datetime:e,value:t})=>({x:e,y:t}))),lineTension:0,pointRadius:1,pointHoverRadius:4,borderWidth:2,pointHitRadius:6,backgroundColor:t,borderColor:t}})).filter((e=>!1!==e.selected));return(0,pe.jsx)($n,{height:100,data:{datasets:o},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:c.noop},tooltip:{enabled:!0,callbacks:{title:e=>kr()(e[0].raw.x).utc().format("YYYY-MM-DD")},titleAlign:"center",mode:"xPoint",position:"nearest",usePointStyle:!0,boxHeight:7,boxWidth:7,boxPadding:2}},scales:{x:{bounds:"ticks",type:"time",time:{unit:"day",minUnit:"day"},grid:{display:!1},ticks:{autoSkipPadding:50,maxRotation:0,color:"black"}},y:{bounds:"ticks",offset:!0,reverse:!0,ticks:{precision:0,color:"black"},max:31}}}})}Pn.Interaction.modes.xPoint=(e,t,s,i)=>{const o=function(e,t){if("native"in e)return e;const{canvas:s,currentDevicePixelRatio:i}=t,o=(h=s).ownerDocument.defaultView.getComputedStyle(h,null),r="border-box"===o.boxSizing,n=Hn(o,"padding"),a=Hn(o,"border","width"),{x:l,y:c,box:d}=function(e,t){const s=e.touches,i=s&&s.length?s[0]:e,{offsetX:o,offsetY:r}=i;let n,a,l=!1;if(((e,t,s)=>(e>0||t>0)&&(!s||!s.shadowRoot))(o,r,e.target))n=o,a=r;else{const e=t.getBoundingClientRect();n=i.clientX-e.left,a=i.clientY-e.top,l=!0}return{x:n,y:a,box:l}}(e,s),p=n.left+(d&&a.left),u=n.top+(d&&a.top);var h;let{width:g,height:m}=t;return r&&(g-=n.width+a.width,m-=n.height+a.height),{x:Math.round((l-p)/g*s.width/i),y:Math.round((c-u)/m*s.height/i)}}(t,e);let r=[];if(Pn.Interaction.evaluateInteractionItems(e,"x",o,((e,t,s)=>{e.inXRange(o.x,i)&&r.push({element:e,datasetIndex:t,index:s})})),0===r.length)return r;const n=r.reduce(((e,t)=>Math.abs(o.x-e.element.x)<Math.abs(o.x-t.element.x)?e:t)).element.x;return r=r.filter((e=>e.element.x===n)),r.some((e=>Math.abs(e.element.y-o.y)<10))?r:[]},Vn.propTypes={datasets:le().arrayOf(le().shape({label:le().string.isRequired,data:le().arrayOf(le().shape({datetime:le().string.isRequired,value:le().number.isRequired})).isRequired,selected:le().bool})).isRequired,isChartShown:le().bool.isRequired,keyphrases:le().array.isRequired};const Yn=({response:e,onLogin:t})=>[401,403,404].includes(e.status)?(0,pe.jsx)(xn,{onReconnect:t}):(0,pe.jsx)(vn,{});Yn.propTypes={response:le().object.isRequired,onLogin:le().func.isRequired};const Gn=({isSuccess:e,response:t={},allKeyphrasesMissRanking:s,onLogin:i,keyphraseLimitReached:o,limit:r})=>o?(0,pe.jsx)(yn,{limit:r}):(0,c.isEmpty)(t)||e?s?(0,pe.jsx)(dn,{}):null:(0,pe.jsx)(Yn,{response:t,onLogin:i});Gn.propTypes={isSuccess:le().bool.isRequired,allKeyphrasesMissRanking:le().bool.isRequired,response:le().object,onLogin:le().func.isRequired,keyphraseLimitReached:le().bool.isRequired,limit:le().number.isRequired};let Zn=null;const Qn=async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r})=>{if(Zn&&!Zn.isClosed())return void Zn.focus();const{url:n}=await async function(){return await Er({path:"yoast/v1/wincher/authorization-url",method:"GET"})}();Zn=new an(n,{success:{type:"wincher:oauth:success",callback:n=>(async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r},n)=>{await Tr((()=>async function(e){const{code:t,websiteId:s}=e;return await Er({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:s}})}(n)),(async a=>{e(!0,!0,n.websiteId.toString()),t(a);const l=(Array.isArray(i)?i:[i]).map((e=>e.toLowerCase()));await Tr((()=>jr(l)),(e=>{t(e),o(e.results)}),(e=>{400===e.status&&e.limit&&r(e.limit),s(e)}),201);const c=Zn.getPopup();c&&c.close()}),(async e=>s(e)))})({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r},n)},error:{type:"wincher:oauth:error",callback:()=>e(!1,!1)}},{title:"Wincher_login",width:500,height:700}),Zn.createPopup()},Xn=e=>e.isLoggedIn?null:(0,pe.jsx)("p",{children:(0,pe.jsx)(ht.NewButton,{onClick:e.onLogin,variant:"primary",children:(0,je.sprintf)(/* translators: %s expands to Wincher */ (0,je.__)("Connect with %s","wordpress-seo"),"Wincher")})});Xn.propTypes={isLoggedIn:le().bool.isRequired,onLogin:le().func.isRequired};const Jn=de().div` p { margin: 1em 0; @@ -470,4 +469,4 @@ width: 18px; height: 18px; margin: 3px; -`;function pa({keyphrases:e,onNoKeyphraseSet:t,onOpen:s,location:i}){if(!e.length){let e=document.querySelector("#focus-keyword-input-metabox");return e||(e=document.querySelector("#focus-keyword-input-sidebar")),e.focus(),void t()}s(i)}function ua({location:e="",whichModalOpen:t="none",shouldCloseOnClickOutside:s=!0,keyphrases:i,onNoKeyphraseSet:o,onOpen:r,onClose:n}){const a=(0,re.useCallback)((()=>{pa({keyphrases:i,onNoKeyphraseSet:o,onOpen:r,location:e})}),[pa,i,o,r,e]),l=(0,je.__)("Track SEO performance","wordpress-seo"),c=Os();return(0,pe.jsxs)(re.Fragment,{children:[t===e&&(0,pe.jsx)(qs,{title:l,onRequestClose:n,icon:(0,pe.jsx)(bt,{}),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:s,children:(0,pe.jsx)(_r,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content",children:(0,pe.jsx)(ca,{})})}),"sidebar"===e&&(0,pe.jsx)(mt,{id:`wincher-open-button-${e}`,title:l,SuffixHeroIcon:(0,pe.jsx)(da,{className:"yst-text-slate-500",...c}),onClick:a}),"metabox"===e&&(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)(ut,{id:`wincher-open-button-${e}`,onClick:a,children:[(0,pe.jsx)(ut.Text,{children:l}),(0,pe.jsx)(xr,{className:"yst-h-5 yst-w-5 yst-text-slate-500",...c})]})})]})}ua.propTypes={location:le().string,whichModalOpen:le().oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:le().bool,keyphrases:le().array.isRequired,onNoKeyphraseSet:le().func.isRequired,onOpen:le().func.isRequired,onClose:le().func.isRequired};const ha=(0,lt.compose)([(0,a.withSelect)((e=>{const{getWincherModalOpen:t,getWincherTrackableKeyphrases:s}=e("yoast-seo/editor");return{keyphrases:s(),whichModalOpen:t()}})),(0,a.withDispatch)((e=>{const{setWincherOpenModal:t,setWincherDismissModal:s,setWincherNoKeyphrase:i}=e("yoast-seo/editor");return{onOpen:e=>{t(e)},onClose:()=>{s()},onNoKeyphraseSet:()=>{i()}}}))])(ua),ga=({isOpen:e,closeModal:t,id:s,upsellLink:i})=>(0,pe.jsx)(_t,{isOpen:e,onClose:t,id:s,upsellLink:i,title:(0,je.__)("Cover more search intent with related keyphrases","wordpress-seo"),description:(0,je.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles - helping it get discovered by a wider audience.","wordpress-seo"),note:(0,je.__)("Fine-tune your content for every audience","wordpress-seo"),modalTitle:(0,je.__)("Add more keyphrases with Premium","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),ma=()=>{const[e,,,t,s]=(0,Ae.useToggleState)(!1),i=(0,re.useContext)(ne.LocationContext),{locationContext:o}=(0,ne.useRootContext)(),r=(0,Ae.useSvgAria)(),n=wpseoAdminL10n["sidebar"===i.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(ga,{isOpen:e,closeModal:s,upsellLink:(0,dt.addQueryArgs)(n,{context:o}),id:`yoast-additional-keyphrases-modal-${i}`}),"sidebar"===i&&(0,pe.jsx)(mt,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,je.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:Di.colors.$color_grey_medium_dark},onClick:t,children:(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsx)(Ae.Badge,{size:"small",variant:"upsell",children:(0,pe.jsx)(ct,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...r})})})}),"metabox"===i&&(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)(ut,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:t,children:[(0,pe.jsx)(ht.SvgIcon,{icon:"plus",color:Di.colors.$color_grey_medium_dark}),(0,pe.jsx)(ut.Text,{children:(0,je.__)("Add related keyphrase","wordpress-seo")}),(0,pe.jsxs)(Ae.Badge,{size:"small",variant:"upsell",children:[(0,pe.jsx)(ct,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...r}),(0,pe.jsx)("span",{children:"Premium"})]})]})})]})};function ya({isLoading:e,onLoad:t,settings:s}){const i=(({webinarIntroUrl:e})=>{const{shouldShow:t}=Dt(),s=(e=>{for(const t of e)if(null!=t&&t.getIsEligible())return t;return null})([{getIsEligible:()=>t,component:Ot},{getIsEligible:Ds,component:()=>(0,pe.jsx)(Ps,{hasIcon:!1,image:null,url:e})},{getIsEligible:()=>!0,component:()=>(0,pe.jsx)(Et,{})}]);return(null==s?void 0:s.component)||null})({webinarIntroUrl:(0,a.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/webinar-intro-elementor")),[])});return(0,re.useEffect)((()=>{setTimeout((()=>{e&&t()}))})),e?null:(0,pe.jsx)(pe.Fragment,{children:(0,pe.jsxs)(oe.Fill,{name:"YoastElementor",children:[(0,pe.jsxs)(ci,{renderPriority:1,children:[(0,pe.jsx)(ai,{}),i&&(0,pe.jsx)("div",{className:"yst-inline-block yst-px-1.5",children:(0,pe.jsx)(i,{})})]}),s.isKeywordAnalysisActive&&(0,pe.jsxs)(ci,{renderPriority:8,children:[(0,pe.jsx)(kt.KeywordInput,{isSEMrushIntegrationActive:s.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,pe.jsx)(oe.Fill,{name:"YoastRelatedKeyphrases",children:(0,pe.jsx)(br,{})})]}),s.isKeywordAnalysisActive&&(0,pe.jsx)(ci,{renderPriority:10,children:(0,pe.jsx)(re.Fragment,{children:(0,pe.jsx)(kt.SeoAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellHighlighting:s.shouldUpsell})})}),s.isContentAnalysisActive&&(0,pe.jsx)(ci,{renderPriority:15,children:(0,pe.jsx)(kt.ReadabilityAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellHighlighting:s.shouldUpsell})}),s.isInclusiveLanguageAnalysisActive&&(0,pe.jsx)(ci,{renderPriority:19,children:(0,pe.jsx)(kt.InclusiveLanguageAnalysis,{shouldUpsellHighlighting:s.shouldUpsell})}),s.isKeywordAnalysisActive&&(0,pe.jsx)(ci,{renderPriority:22,children:s.shouldUpsell&&(0,pe.jsx)(ma,{})},"additional-keywords-upsell"),s.isKeywordAnalysisActive&&s.isWincherIntegrationActive&&(0,pe.jsx)(ci,{renderPriority:23,children:(0,pe.jsx)(ha,{location:"sidebar",shouldCloseOnClickOutside:!1})},"wincher-seo-performance"),s.shouldUpsell&&(0,pe.jsx)(ci,{renderPriority:24,children:(0,pe.jsx)(vt,{})},"internal-linking-suggestions-upsell"),(0,pe.jsx)(ci,{renderPriority:25,children:(0,pe.jsx)(ji,{})}),(s.useOpenGraphData||s.useTwitterData)&&(0,pe.jsx)(ci,{renderPriority:26,children:(0,pe.jsx)(Ho,{useOpenGraphData:s.useOpenGraphData,useTwitterData:s.useTwitterData})},"social-appearance"),s.displaySchemaSettings&&(0,pe.jsx)(ci,{renderPriority:28,children:(0,pe.jsx)(Vo,{title:(0,je.__)("Schema","wordpress-seo"),children:(0,pe.jsx)(ar,{})})}),s.displayAdvancedTab&&(0,pe.jsx)(ci,{renderPriority:29,children:(0,pe.jsx)(Vo,{title:(0,je.__)("Advanced","wordpress-seo"),buttonId:"yoast-seo-elementor-advanced-button",children:(0,pe.jsx)(mr,{location:"sidebar"})})}),s.isCornerstoneActive&&(0,pe.jsx)(ci,{renderPriority:30,children:(0,pe.jsx)(Rt,{})}),s.isInsightsEnabled&&(0,pe.jsx)(ci,{renderPriority:32,children:(0,pe.jsx)(ri,{location:"elementor"})})]})})}ya.propTypes={isLoading:le().bool.isRequired,onLoad:le().func.isRequired,settings:le().object.isRequired};const wa=(0,lt.compose)([(0,a.withSelect)((e=>{const{getPreferences:t,getSnippetEditorIsLoading:s}=e("yoast-seo/editor");return{settings:t(),isLoading:s()}})),(0,a.withDispatch)((e=>{const{loadSnippetEditorData:t}=e("yoast-seo/editor");return{onLoad:t}}))])(ya),fa=window.jQuery;var ba=s.n(fa);const xa=window.Marionette,_a="#elementor-panel-elements-search-area",va=s.n(xa)().ItemView.extend({template:!1,id:"yoast-elementor-react-panel",className:"yoast yoast-elementor-panel__fills",initialize(){ba()(_a).hide()},onShow(){Ta()},onDestroy(){ba()(_a).show()}}),ka="yoast-seo-tab",Sa="panel/elements",Ra="yoast-elementor-react-panel",Ta=()=>{let e=document.getElementById(Ra);if(!e){const t=document.getElementById("elementor-panel-elements-navigation");if(!t)return;e=document.createElement("div"),e.id=Ra,e.className="yoast yoast-elementor-panel__content",t.parentNode.insertBefore(e,t.nextSibling)}e.style.display="block";const t=document.getElementById("elementor-panel-elements-search-area");t&&(t.style.display="none")},Ea=()=>{const e=window.$e.components.get(Sa);e.hasTab(ka)||e.addTab(ka,{title:"Yoast SEO"})},ja=e=>(e[ka]={region:e.global.region,view:va,options:{}},e),Ca="yoast-elementor-react-tab",Ia="yoast-seo-tab",La="Yoast SEO",Aa="panel/page-settings",Pa=()=>{const{settings:e}=elementor.documents.getCurrent().config;e.tabs[Ia]||(e.tabs=(0,c.reduce)(e.tabs,((e,t,s)=>(e[s]=t,"settings"===s&&(e[Ia]=La),e)),{})),$e.components.get(Aa).hasTab(Ia)||$e.components.get(Aa).addTab(Ia,{title:La})};let Da=!1,Fa=!1;const Oa=(0,c.debounce)(Ce,500,{trailing:!0}),Ma=()=>{const e=document.getElementById("yoast-form");if(!e)return void console.error("Yoast form not found!");window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=we,(()=>{const e=document.createElement("div");e.id="yoast-elementor-react-root",document.body.appendChild(e),function(e,t){const s=g();me=(0,re.createRef)();const i={isRtl:s.isRtl};(0,re.createRoot)(document.getElementById(e)).render((0,pe.jsx)(he,{theme:i,location:"sidebar",children:(0,pe.jsx)(oe.SlotFillProvider,{children:(0,pe.jsxs)(re.Fragment,{children:[t,(0,pe.jsx)(ye,{ref:me})]})})}))}(e.id,(0,pe.jsxs)(ne.Root,{context:{locationContext:"elementor-sidebar"},children:[(0,pe.jsxs)(Le,{id:Ca,children:[(0,pe.jsx)(at,{}),(0,pe.jsx)(wa,{})]}),(0,pe.jsxs)(Le,{id:Ra,children:[(0,pe.jsx)(at,{}),(0,pe.jsx)(wa,{})]})]}))})(),ke("editor/documents/load","yoast-seo/register-tab",Pa,(({config:e})=>Se(e.id))),$e.routes.on("run:after",((e,t)=>{t===`${Aa}/${Ia}`&&(()=>{if(document.getElementById(Ca))return;const e=document.getElementById("elementor-panel-page-settings-controls");if(!e)return;const t=e.querySelector(".elementor-control-yoast-seo-section");t&&(t.style.display="none");const s=document.createElement("div");s.id=Ca,s.className="yoast yoast-elementor-panel__fills",e.appendChild(s)})()})),Pa(),elementor.getPanelView().getPages("menu").view.addItem({name:"yoast",icon:"yoast yoast-element-menu-icon",title:La,type:"page",callback:()=>{try{$e.route(`${Aa}/${Ia}`)}catch(e){$e.route(`${Aa}/settings`),$e.route(`${Aa}/${Ia}`)}}},"more"),((e,t=500)=>{const s=(0,c.debounce)(e,t,{trailing:!0});_e("document/elements/settings","yoast-seo/document/post-status",(({settings:e})=>s(e.post_status)),(({container:e,settings:t})=>{var s;return!!Se((null==e||null===(s=e.document)||void 0===s?void 0:s.id)||elementor.documents.getCurrent().id)&&Boolean(null==t?void 0:t.post_status)}))})((()=>Oa(Da)));const t=((e,t=500)=>{const s={},i=Array.from(e.querySelectorAll("input[name^='yoast']")),o=i.reduce(((e,{name:t,value:s})=>(e[t]=s,e)),{}),r={...o},n=new MutationObserver((0,c.debounce)((e=>{const t=[];e.forEach((e=>{"value"===e.attributeName&&e.target.name.startsWith("yoast")&&e.target.value!==o[e.target.name]&&(t.push({input:e.target,name:e.target.name,value:e.target.value,previousValue:o[e.target.name],snapshotValue:r[e.target.name]}),o[e.target.name]=e.target.value)})),t.length>0&&(0,c.forEach)(s,(e=>e(t)))}),t));return{start:()=>n.observe(e,{attributes:!0,subtree:!0}),stop:()=>n.disconnect(),subscribe:e=>{const t=(0,c.uniqueId)("yoast-form-listener");return s[t]=e,()=>delete s[t]},takeSnapshot:()=>{i.forEach((({name:e,value:t})=>{r[e]=t}))},restoreSnapshot:()=>{i.forEach((e=>{e.value=r[e.name],o[e.name]=r[e.name]}))}}})(e);t.subscribe((e=>{e.some((e=>{return t=e.name,s=e.value,i=e.previousValue,!(Te.includes(t)||Ee.includes(t)&&((e,t)=>{if(t===e)return!0;if(""===t||""===e)return!1;let s,i;try{s=JSON.parse(t),i=JSON.parse(e)}catch(e){return!0}return s.length===i.length&&s.every(((e,t)=>e.keyword===i[t].keyword))})(i,s)||s===i);var t,s,i}))&&(Da=!0,Oa(Da),$e.internal("document/save/set-is-modified",{status:!0}))})),t.start(),ve("editor/documents/open","yoast-seo/document/open",(()=>{YoastSEO.store._freeze(!1),t.start(),(0,l.doAction)("yoast.elementor.toggleFreeze",{isFreeze:!1,isDiscard:!1})}),(({id:e})=>Se(e))),_e("editor/documents/close","yoast-seo/document/close",(0,c.throttle)((({mode:e})=>{t.stop(),"discard"===e&&(YoastSEO.store._restoreSnapshot(),t.restoreSnapshot(),Da=!1,Ce(Da));const s=()=>{YoastSEO.store._freeze(!0),(0,l.doAction)("yoast.elementor.toggleFreeze",{isFreeze:!0,isDiscard:"discard"===e}),(0,l.removeAction)("yoast.elementor.save.success","yoast/yoast-seo/finishClosingDocument"),(0,l.removeAction)("yoast.elementor.save.failure","yoast/yoast-seo/finishClosingDocument")};if(Fa)return(0,l.addAction)("yoast.elementor.save.success","yoast/yoast-seo/finishClosingDocument",s),void(0,l.addAction)("yoast.elementor.save.failure","yoast/yoast-seo/finishClosingDocument",s);s()}),500,{leading:!0,trailing:!1}),(({id:e})=>Se(e))),ke("document/save/save","yoast-seo/document/save",(async({document:s})=>{if(Fa=!0,!Se(s.id))return;if(s.id!==elementor.config.document.revisions.current_id)return;Da=!1;const{success:i,formData:o,data:r,xhr:n}=await(e=>new Promise((t=>{const s=jQuery(e).serializeArray().reduce(((e,{name:t,value:s})=>(e[t]=s,e)),{});jQuery.post(e.getAttribute("action"),s).done((({success:e,data:i},o,r)=>t({success:e,formData:s,data:i,xhr:r}))).fail((e=>t({success:!1,formData:s,xhr:e})))})))(e);if(!i)return Da=!0,Fa=!1,void(0,l.doAction)("yoast.elementor.save.failure");r.slug&&r.slug!==o.slug&&(0,a.dispatch)("yoast-seo/editor").updateData({slug:r.slug}),(0,a.dispatch)("yoast-seo/editor").setEditorDataSlug(r.slug),Ce(Da),(0,l.doAction)("yoast.elementor.save.success",n),YoastSEO.store._takeSnapshot(),t.takeSnapshot(),Fa=!1}),(({document:e})=>Se((null==e?void 0:e.id)||elementor.documents.getCurrent().id))),setTimeout((()=>{YoastSEO.store._takeSnapshot(),t.takeSnapshot()}),2e3)},qa=window.yoast.reduxJsToolkit,Na="adminUrl",Ua=(0,qa.createSlice)({name:Na,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),Wa=(Ua.getInitialState,{selectAdminUrl:e=>(0,c.get)(e,Na,"")});Wa.selectAdminLink=(0,qa.createSelector)([Wa.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),Ua.actions,Ua.reducer;const $a="hasConsent",Ba=(0,qa.createSlice)({name:$a,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),Ka=(Ba.getInitialState,Ba.actions,Ba.reducer,"linkParams"),Ha=(0,qa.createSlice)({name:Ka,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),Ya=(Ha.getInitialState,{selectLinkParam:(e,t,s={})=>(0,c.get)(e,`${Ka}.${t}`,s),selectLinkParams:e=>(0,c.get)(e,Ka,{})});Ya.selectLink=(0,qa.createSelector)([Ya.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,dt.addQueryArgs)(t,{...e,...s}))),Ha.actions,Ha.reducer;const Va=(0,qa.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:i,description:o})=>({payload:{id:e||(0,qa.nanoid)(),variant:t,size:s,title:i||"",description:o}})},removeNotification:(e,{payload:t})=>(0,c.omit)(e,t)}}),za=(Va.getInitialState,Va.actions,Va.reducer,"pluginUrl"),Ga=(0,qa.createSlice)({name:za,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),Za=(Ga.getInitialState,{selectPluginUrl:e=>(0,c.get)(e,za,"")});Za.selectImageLink=(0,qa.createSelector)([Za.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,c.trimEnd)(e,"/"),(0,c.trim)(t,"/"),(0,c.trimStart)(s,"/")].join("/"))),Ga.actions,Ga.reducer;const Qa="wistiaEmbedPermission",Xa=(0,qa.createSlice)({name:Qa,initialState:{value:!1,status:ot,error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${Qa}/request`,(e=>{e.status=rt})),e.addCase(`${Qa}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${Qa}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,c.get)(t,"error.code",500),message:(0,c.get)(t,"error.message","Unknown")}}))}}),Ja=(Xa.getInitialState,{selectWistiaEmbedPermission:e=>(0,c.get)(e,Qa,{value:!1,status:ot}),selectWistiaEmbedPermissionValue:e=>(0,c.get)(e,[Qa,"value"],!1),selectWistiaEmbedPermissionStatus:e=>(0,c.get)(e,[Qa,"status"],ot),selectWistiaEmbedPermissionError:e=>(0,c.get)(e,[Qa,"error"],{})}),el=(Xa.actions,{[Qa]:async({payload:e})=>Rr()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:Boolean(e)}})});var tl;Xa.reducer;const sl="documentTitle",il=(0,qa.createSlice)({name:sl,initialState:(0,c.defaultTo)(null===(tl=document)||void 0===tl?void 0:tl.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),ol=(il.getInitialState,{selectDocumentTitle:e=>(0,c.get)(e,sl,""),selectDocumentFullTitle:(e,{prefix:t=""}={})=>{const s=(0,c.get)(e,sl,"");return s.startsWith(t)?s:`${t} ‹ ${s}`}});function rl({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}function nl({query:e,postId:t}){return new Promise((s=>{wpseoApi.get("meta/search",{query:e,post_id:t},(e=>{s(e.meta)}))}))}il.actions,il.reducer;const al=async({countryCode:e,keyphrase:t})=>(Rr()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}}),Rr()({path:(0,dt.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:e})})),ll=el[Qa];class cl{static get titleElement(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_title":"hidden_wpseo_title")}static get descriptionElement(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_metadesc":"hidden_wpseo_desc")}static get slugElement(){return document.getElementById("yoast_wpseo_slug")}static get title(){return cl.titleElement.value}static set title(e){cl.titleElement.value=e}static get description(){return cl.descriptionElement.value}static set description(e){cl.descriptionElement.value=e}static get slug(){return cl.slugElement.value}static set slug(e){cl.slugElement.value=e}}const{UPDATE_DATA:dl,LOAD_SNIPPET_EDITOR_DATA:pl}=u.actions;function ul(e){if(e.hasOwnProperty("title")){let t=e.title;e.title===(0,c.get)(window,"wpseoScriptData.metabox.title_template","")&&(t=""),cl.title=t}if(e.hasOwnProperty("description")){let t=e.description;e.description===(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template","")&&(t=""),cl.description=t}return e.hasOwnProperty("slug")&&(cl.slug=e.slug),{type:dl,data:e}}const hl=()=>{const e=(0,c.get)(window,"wpseoScriptData.metabox.title_template",""),t=(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template","");return{type:pl,data:{title:cl.title||e,description:cl.description||t,slug:cl.slug},templates:{title:e,description:t}}},gl="yoast-measurement-element";function ml(e){let t=document.getElementById(gl);return t||(t=function(){const e=document.createElement("div");return e.id=gl,e.style.position="absolute",e.style.left="-9999em",e.style.top=0,e.style.height=0,e.style.overflow="hidden",e.style.fontFamily="arial, sans-serif",e.style.fontSize="20px",e.style.fontWeight="400",document.body.appendChild(e),e}()),t.innerText=e,t.offsetWidth}const{getEditorDataSlug:yl,getEditorDataTitle:wl,getSnippetEditorDescription:fl,getSnippetEditorSlug:bl,getSnippetEditorTitle:xl}=u.selectors,_l=(0,qa.createSelector)([yl,bl,wl,()=>(0,c.get)(window,"elementor.documents.currentDocument.id",0)],((e,t,s,i)=>t||e||(0,dt.cleanForSlug)(s)||String(i))),vl=(0,qa.createSelector)([xl,fl,_l],((e,t,s)=>({title:e,description:t,slug:s}))),{getBaseUrlFromSettings:kl,getContentLocale:Sl,getEditorDataContent:Rl,getFocusKeyphrase:Tl,getSnippetEditorDescriptionWithTemplate:El,getSnippetEditorTitleWithTemplate:jl,getDateFromSettings:Cl}=u.selectors,Il=e=>{let t=jl(e),s=El(e),i=_l(e);const o=kl(e);return t=jt.strings.stripHTMLTags(E("data_page_title",t)),s=jt.strings.stripHTMLTags(E("data_meta_desc",s)),i=i.trim().replace(/\s+/g,"-"),{text:Rl(e),title:t,keyword:Tl(e),description:s,locale:Sl(e),titleWidth:ml(t),slug:i,permalink:o+i,date:Cl(e)}};function Ll(e){return(0,c.get)(e,"editorContext.postType")}const Al=(0,qa.createSelector)([Ll],(e=>"product"===e)),Pl=(0,qa.createSelector)([Ll],(e=>["product_cat","product_tag"].includes(e))),Dl=(0,qa.createSelector)([Al,Pl],((e,t)=>e||t)),Fl=e=>{let t=(0,c.get)(e,"editorData.excerpt","");if(""===t){const s="ja"===m()?80:156;t=wi((0,c.get)(e,"editorData.content",""),s)}return t},Ol=e=>(0,c.get)(e,"analysisData.snippet.title",""),Ml=e=>(0,c.get)(e,"analysisData.snippet.description",""),ql=()=>(0,c.get)(window,"wpseoScriptData.metabox.title_template",""),Nl=()=>(0,c.get)(window,"wpseoScriptData.metabox.title_template_no_fallback",""),Ul=()=>(0,c.get)(window,"wpseoScriptData.metabox.social_title_template",""),Wl=()=>(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template",""),$l=()=>(0,c.get)(window,"wpseoScriptData.metabox.social_description_template",""),Bl=e=>{let t="";return(0,c.get)(e,"snippetEditor.replacementVariables",[]).forEach((e=>{"excerpt"===e.name&&(t=e.value)})),t},Kl=e=>(0,c.get)(e,"facebookEditor.title",""),Hl=e=>(0,c.get)(e,"facebookEditor.description",""),Yl=(0,qa.createSelector)([Ul,Ol,Nl,ql],((...e)=>e.find(Boolean)||"")),Vl=((0,qa.createSelector)([Kl,Yl],((e,t)=>e||t)),(0,qa.createSelector)([$l,Ml,Wl,Bl,Fl],((...e)=>{var t;return null!==(t=e.find(Boolean))&&void 0!==t?t:""}))),zl=((0,qa.createSelector)([Hl,Vl],((e,t)=>e||t)),(e,t,s=null)=>(0,c.get)(e,`preferences.${t}`,s)),Gl=e=>zl(e,"isWooCommerceActive",!1),Zl=e=>zl(e,"isWooCommerceSeoActive",!1);(0,qa.createSelector)([Zl,Gl,Dl],((e,t,s)=>!e&&t&&s)),(0,qa.createSelector)([Zl,Gl,Pl],((e,t,s)=>!e&&t&&s)),(0,qa.createSelector)([Dl,Gl],((e,t)=>t&&e));const Ql=(0,qa.createSelector)([Ul,Kl,Ol,Nl,ql],((...e)=>e.find(Boolean)||"")),Xl=((0,qa.createSelector)([e=>(0,c.get)(e,"twitterEditor.title",""),Ql],((e,t)=>e||t)),(0,qa.createSelector)([$l,Hl,Ml,Wl,Bl,Fl],((...e)=>{var t;return null!==(t=e.find(Boolean))&&void 0!==t?t:""})));(0,qa.createSelector)([e=>(0,c.get)(e,"twitterEditor.description",""),Xl],((e,t)=>e||t));const{selectAdminUrl:Jl,selectAdminLink:ec}=Wa,{selectLinkParams:tc,selectLinkParam:sc,selectLink:ic}=Ya,{selectDocumentFullTitle:oc}=ol,{selectPluginUrl:rc,selectImageLink:nc}=Za,{selectWistiaEmbedPermission:ac,selectWistiaEmbedPermissionValue:lc,selectWistiaEmbedPermissionStatus:cc,selectWistiaEmbedPermissionError:dc}=Ja,pc=(0,qa.createSelector)([e=>(0,c.get)(e,"settings.snippetEditor.baseUrl",""),_l],((e,t)=>e+t)),uc={name:"author_first_name",label:"Author first name",placeholder:"%%author_first_name%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_first_name","")},regexp:new RegExp("%%author_first_name%%","g")},hc={name:"author_last_name",label:"Author last name",placeholder:"%%author_last_name%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_last_name","")},regexp:new RegExp("%%author_last_name%%","g")},gc={name:"currentdate",label:"Current date",placeholder:"%%currentdate%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentdate","")},regexp:new RegExp("%%currentdate%%","g")},mc={name:"currentday",label:"Current day",placeholder:"%%currentday%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentday","")},regexp:new RegExp("%%currentday%%","g")},yc={name:"currentmonth",label:"Current month",placeholder:"%%currentmonth%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentmonth","")},regexp:new RegExp("%%currentmonth%%","g")},wc={name:"category",label:"Category",placeholder:"%%category%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category","")},regexp:new RegExp("%%category%%","g")},fc={name:"category_title",label:"Category Title",placeholder:"%%category_title%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category_title","")},regexp:new RegExp("%%category_title%%","g")},bc={name:"currentyear",label:"Current year",placeholder:"%%currentyear%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentyear","")},regexp:new RegExp("%%currentyear%%","g")},xc={name:"date",label:"Date",placeholder:"%%date%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.date","")},regexp:new RegExp("%%date%%","g")},_c={name:"excerpt",label:"Excerpt",placeholder:"%%excerpt%%",aliases:[{name:"excerpt_only",label:"Excerpt only",placeholder:"%%excerpt_only%%"}],getReplacement:function(){return(0,a.select)("yoast-seo/editor").getEditorDataExcerptWithFallback()},regexp:new RegExp("%%excerpt%%|%%excerpt_only%%","g")},vc={name:"focuskw",label:"Focus keyphrase",placeholder:"%%focuskw%%",aliases:[],getReplacement:function(){return(0,a.select)("yoast-seo/editor").getFocusKeyphrase()},regexp:new RegExp("%%focuskw%%|%%keyword%%","g")},kc={name:"id",label:"ID",placeholder:"%%id%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.id","")},regexp:new RegExp("%%id%%","g")},Sc={name:"modified",label:"Modified",placeholder:"%%modified%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.modified","")},regexp:new RegExp("%%modified%%","g")},Rc={name:"name",label:"Name",placeholder:"%%name%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.name","")},regexp:new RegExp("%%name%%","g")},Tc={name:"page",label:"Page",placeholder:"%%page%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.page","")},regexp:new RegExp("%%page%%","g")},Ec={name:"pagenumber",label:"Pagenumber",placeholder:"%%pagenumber%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagenumber","")},regexp:new RegExp("%%pagenumber%%","g")},jc={name:"pagetotal",label:"Pagetotal",placeholder:"%%pagetotal%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagetotal","")},regexp:new RegExp("%%pagetotal%%","g")},Cc={name:"permalink",label:"Permalink",placeholder:"%%permalink%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.permalink","")},regexp:new RegExp("%%permalink%%","g")},Ic={name:"post_content",label:"Post Content",placeholder:"%%post_content%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_content","")},regexp:new RegExp("%%post_content%%","g")},Lc={name:"post_day",label:"Post Day",placeholder:"%%post_day%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_day","")},regexp:new RegExp("%%post_day%%","g")},Ac={name:"post_month",label:"Post Month",placeholder:"%%post_month%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_month","")},regexp:new RegExp("%%post_month%%","g")},Pc={name:"post_year",label:"Post Year",placeholder:"%%post_year%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_year","")},regexp:new RegExp("%%post_year%%","g")},Dc={name:"pt_plural",label:"Post type (plural)",placeholder:"%%pt_plural%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_plural","")},regexp:new RegExp("%%pt_plural%%","g")},Fc={name:"pt_single",label:"Post type (singular)",placeholder:"%%pt_single%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_single","")},regexp:new RegExp("%%pt_single%%","g")},Oc={name:"primary_category",label:"Primary category",placeholder:"%%primary_category%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.primary_category","")},regexp:new RegExp("%%primary_category%%","g")},Mc={name:"searchphrase",label:"Search phrase",placeholder:"%%searchphrase%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.searchphrase","")},regexp:new RegExp("%%searchphrase%%","g")},qc={name:"sep",label:"Separator",placeholder:"%%sep%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sep","")},regexp:new RegExp("%%sep%%(\\s*%%sep%%)*","g")},Nc={name:"sitedesc",label:"Tagline",placeholder:"%%sitedesc%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitedesc","")},regexp:new RegExp("%%sitedesc%%","g")},Uc={name:"sitename",label:"Site title",placeholder:"%%sitename%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitename","")},regexp:new RegExp("%%sitename%%","g")},Wc={name:"tag",label:"Tag",placeholder:"%%tag%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.tag","")},regexp:new RegExp("%%tag%%","g")},$c={name:"term404",label:"Term404",placeholder:"%%term404%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term404","")},regexp:new RegExp("%%term404%%","g")},Bc={name:"term_description",label:"Term description",placeholder:"%%term_description%%",aliases:[{name:"tag_description",label:"Tag description",placeholder:"%%tag_description%%"},{name:"category_description",label:"Category description",placeholder:"%%category_description%%"}],getReplacement:function(){return(0,c.get)(window,"YoastSEO.app.rawData.text","")},regexp:new RegExp("%%term_description%%|%%tag_description%%|%%category_description%%","g")},Kc={name:"term_hierarchy",label:"Term hierarchy",placeholder:"%%term_hierarchy%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_hierarchy","")},regexp:new RegExp("%%term_hierarchy%%","g")},Hc={name:"term_title",label:"Term title",placeholder:"%%term_title%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_title","")},regexp:new RegExp("%%term_title%%","g")},Yc={name:"title",label:"Title",placeholder:"%%title%%",aliases:[],getReplacement:function(){return(0,a.select)("yoast-seo/editor").getEditorDataTitle()},regexp:new RegExp("%%title%%","g")},Vc={name:"user_description",label:"User description",placeholder:"%%user_description%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.user_description","")},regexp:new RegExp("%%user_description%%","g")};var zc={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},Gc=function(e,t,s){this.placeholder=e,this.replacement=t,this.options=(0,c.defaults)(s,zc)};Gc.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},Gc.prototype.setSource=function(e){this.options.source=e},Gc.prototype.hasScope=function(){return!(0,c.isEmpty)(this.options.scope)},Gc.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},Gc.prototype.inScope=function(e){return!this.hasScope()||(0,c.indexOf)(this.options.scope,e)>-1},Gc.prototype.hasAlias=function(){return!(0,c.isEmpty)(this.options.aliases)},Gc.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},Gc.prototype.getAliases=function(){return this.options.aliases};const Zc=Gc,Qc="replaceVariablePlugin";let Xc=null,Jc=null;const ed=e=>{["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"].forEach((t=>{R(t,e,Qc,10)}))},td=(e="")=>{switch(""===e&&(e=(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.scope","")),e){case"post":case"page":return["authorFirstName","authorLastName","category","categoryTitle","currentDate","currentDay","currentMonth","currentYear","date","excerpt","id","focusKeyphrase","modified","name","page","primaryCategory","pageNumber","pageTotal","permalink","postContent","postDay","postMonth","postYear","postTypeNamePlural","postTypeNameSingular","searchPhrase","separator","siteDescription","siteName","tag","title","userDescription"]}return[]},sd=e=>ed((t=>t.replace(new RegExp(e.placeholder,"g"),e.replacement))),id=()=>{if(null===Jc){Jc=[];const e=(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.hidden_replace_vars",[]);(null===Xc&&(Xc=td().map((e=>null==n?void 0:n[e])).filter(Boolean)),Xc).forEach((t=>{const s=e.includes(t.name);Jc.push({name:t.name,label:t.label,value:t.placeholder,hidden:s}),t.aliases.forEach((e=>{Jc.push({name:e.name,label:e.label,value:e.placeholder,hidden:s})}))}))}return Jc};const od={content:"",title:"",excerpt:"",slug:"",imageUrl:"",featuredImage:"",contentImage:"",excerptOnly:""},rd="yoastmark";function nd(e=elementor.documents.getCurrent()){var t,s;let i=null===(t=e.$element)||void 0===t?void 0:t.find(".elementor-widget-container");var o;return null!==(s=i)&&void 0!==s&&s.length||(i=null===(o=e.$element)||void 0===o?void 0:o.find(".elementor-widget").children().not(".elementor-background-overlay, .elementor-element-overlay, .ui-resizable-handle")),i}function ad(e,t=!1){let s=elementor.settings.page.model.get("post_excerpt");return t?s||"":(s||(s=wi(e,"ja"===m()?80:156)),s)}function ld(){const e=elementor.documents.getCurrent();if(!Re())return;if(!["wp-post","wp-page"].includes(e.config.type))return;if((0,a.select)("yoast-seo/editor").getActiveMarker())return;const t=function(e){const t=function(e){var t;const s=[];return null===(t=nd(e))||void 0===t||t.each(((e,t)=>{const i=t.innerHTML.replace(/[\n\t]/g,"").trim();s.push(i)})),s.join("")}(e),s=(0,c.get)(elementor.settings.page.model.get("post_featured_image"),"url",""),i=function(e){const t=d.languageProcessing.imageInText(e);if(0===t.length)return"";const s=jQuery.parseHTML(t.join(""));for(const e of s)if(e.src)return e.src;return""}(t);return{content:t,title:elementor.settings.page.model.get("post_title"),excerpt:ad(t),excerptOnly:ad(t,!0),imageUrl:s||i,featuredImage:s,contentImage:i,status:elementor.settings.page.model.get("post_status")}}(e);t.content!==od.content&&(od.content=t.content,(0,a.dispatch)("yoast-seo/editor").setEditorDataContent(od.content)),t.title!==od.title&&(od.title=t.title,(0,a.dispatch)("yoast-seo/editor").setEditorDataTitle(od.title)),t.excerpt!==od.excerpt&&(od.excerpt=t.excerpt,od.excerptOnly=t.excerptOnly,(0,a.dispatch)("yoast-seo/editor").setEditorDataExcerpt(od.excerpt),(0,a.dispatch)("yoast-seo/editor").updateReplacementVariable("excerpt",od.excerpt),(0,a.dispatch)("yoast-seo/editor").updateReplacementVariable("excerpt_only",od.excerptOnly)),t.imageUrl!==od.imageUrl&&(od.imageUrl=t.imageUrl,(0,a.dispatch)("yoast-seo/editor").setEditorDataImageUrl(od.imageUrl)),t.contentImage!==od.contentImage&&(od.contentImage=t.contentImage,(0,a.dispatch)("yoast-seo/editor").setContentImage(od.contentImage)),t.featuredImage!==od.featuredImage&&(od.featuredImage=t.featuredImage,(0,a.dispatch)("yoast-seo/editor").updateData({snippetPreviewImageURL:od.featuredImage}))}function cd(){nd().each(((e,t)=>{-1!==t.innerHTML.indexOf("<"+rd)&&(t.innerHTML=d.markers.removeMarks(t.innerHTML))})),(0,a.dispatch)("yoast-seo/editor").setActiveMarker(null),(0,a.dispatch)("yoast-seo/editor").setMarkerPauseStatus(!1),YoastSEO.analysis.applyMarks(new d.Paper("",{}),[])}const dd=(0,c.debounce)(ld,500);function pd(e,t){const{updateWordsToHighlight:s}=(0,a.dispatch)("yoast-seo/editor");e("morphology",new d.Paper("",{keyword:t})).then((({result:{keyphraseForms:e}})=>{s((0,c.uniq)((0,c.flatten)(e)))})).catch((()=>{s([])}))}const ud=(0,c.debounce)(pd,500);var hd=jQuery;function gd(e,t,s,i,o){this._scriptUrl=i,this._options={usedKeywords:t.keyword_usage,usedKeywordsPostTypes:t.keyword_usage_post_types,searchUrl:t.search_url,postUrl:t.post_edit_url},this._keywordUsage=t.keyword_usage,this._usedKeywordsPostTypes=t.keyword_usage_post_types,this._postID=hd("#post_ID, [name=tag_ID]").val(),this._taxonomy=hd("[name=taxonomy]").val()||"",this._nonce=o,this._ajaxAction=e,this._refreshAnalysis=s,this._initialized=!1}function md(){window.YoastSEO=window.YoastSEO||{},window.YoastSEO.store=function(){const{snapshotReducer:s,takeSnapshot:n,restoreSnapshot:l}=((e,t)=>{let s,i=!1,o=!1;return{snapshotReducer:(o=t,r)=>i?(i=!1,s):e(o,r),takeSnapshot:(e,t)=>{t({type:"CREATE_SNAPSHOT"}),s=(0,c.cloneDeep)(e()),o=!0},restoreSnapshot:e=>{o&&(i=!0,e({type:"RESTORE_SNAPSHOT"}))}}})((0,a.combineReducers)(u.reducers)),{freezeReducer:d,toggleFreeze:p}=((e,t)=>{let s=!1,i=null;return{freezeReducer:(o=t,r)=>s?i:e(o,r),toggleFreeze:(e,t=!s)=>{i=t?(0,c.cloneDeep)(e()):null,s=Boolean(t)}}})(s),h=(0,a.registerStore)("yoast-seo/editor",{reducer:d,selectors:{...u.selectors,...o,...i,...r},actions:(0,c.pickBy)({...u.actions,...t},(e=>"function"==typeof e)),controls:e,initialState:{snippetEditor:{mode:"mobile",data:{title:"",description:"",slug:""},wordsToHighlight:[],replacementVariables:[{name:"date",label:(0,je.__)("Date","wordpress-seo"),value:""},{name:"id",label:(0,je.__)("ID","wordpress-seo"),value:""},{name:"page",label:(0,je.__)("Page","wordpress-seo"),value:""},{name:"searchphrase",label:(0,je.__)("Search phrase","wordpress-seo"),value:""},{name:"sitedesc",label:(0,je.__)("Tagline","wordpress-seo"),value:""},{name:"sitename",label:(0,je.__)("Site title","wordpress-seo"),value:""},{name:"category",label:(0,je.__)("Category","wordpress-seo"),value:""},{name:"focuskw",label:(0,je.__)("Focus keyphrase","wordpress-seo"),value:""},{name:"title",label:(0,je.__)("Title","wordpress-seo"),value:""},{name:"parent_title",label:(0,je.__)("Parent title","wordpress-seo"),value:""},{name:"excerpt",label:(0,je.__)("Excerpt","wordpress-seo"),value:""},{name:"primary_category",label:(0,je.__)("Primary category","wordpress-seo"),value:""},{name:"sep",label:(0,je.__)("Separator","wordpress-seo"),value:""},{name:"excerpt_only",label:(0,je.__)("Excerpt only","wordpress-seo"),value:""},{name:"category_description",label:(0,je.__)("Category description","wordpress-seo"),value:""},{name:"tag_description",label:(0,je.__)("Tag description","wordpress-seo"),value:""},{name:"term_description",label:(0,je.__)("Term description","wordpress-seo"),value:""},{name:"currentyear",label:(0,je.__)("Current year","wordpress-seo"),value:""}],uniqueRefreshValue:"",templates:{title:"",description:""},isLoading:!0,replacementVariables:id()}}});return(e=>{e.dispatch(u.actions.loadCornerstoneContent()),e.dispatch(u.actions.loadFocusKeyword()),e.dispatch(u.actions.setMarkerStatus(window.wpseoScriptData.metabox.elementorMarkerStatus)),e.dispatch(u.actions.setSettings({socialPreviews:{sitewideImage:window.wpseoScriptData.sitewideSocialImage,siteName:window.wpseoScriptData.metabox.site_name,contentImage:window.wpseoScriptData.metabox.first_content_image,twitterCardType:window.wpseoScriptData.metabox.twitterCardType},snippetEditor:{baseUrl:window.wpseoScriptData.metabox.base_url,date:window.wpseoScriptData.metabox.metaDescriptionDate,recommendedReplacementVariables:window.wpseoScriptData.analysis.plugins.replaceVars.recommended_replace_vars,siteIconUrl:window.wpseoScriptData.metabox.siteIconUrl}}));const{facebook:t,twitter:s}=window.wpseoScriptData.metabox.showSocial;t&&e.dispatch(u.actions.loadFacebookPreviewData()),s&&e.dispatch(u.actions.loadTwitterPreviewData()),e.dispatch(u.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(u.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(u.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(u.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(u.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases)),e.dispatch(u.actions.setDismissedAlerts((0,c.get)(window,"wpseoScriptData.dismissedAlerts",{}))),e.dispatch(u.actions.setCurrentPromotions((0,c.get)(window,"wpseoScriptData.currentPromotions",{}))),e.dispatch(u.actions.setIsPremium(Boolean((0,c.get)(window,"wpseoScriptData.metabox.isPremium",!1)))),e.dispatch(u.actions.setAdminUrl((0,c.get)(window,"wpseoScriptData.adminUrl",""))),e.dispatch(u.actions.setLinkParams((0,c.get)(window,"wpseoScriptData.linkParams",{}))),e.dispatch(u.actions.setPluginUrl((0,c.get)(window,"wpseoScriptData.pluginUrl",""))),e.dispatch(u.actions.setWistiaEmbedPermissionValue("1"===(0,c.get)(window,"wpseoScriptData.wistiaEmbedPermission",!1)));const i=document.getElementById("yoast_wpseo_slug");i&&e.dispatch(u.actions.setEditorDataSlug(i.value))})(h),h._freeze=p.bind(null,h.getState),h._takeSnapshot=n.bind(null,h.getState,h.dispatch),h._restoreSnapshot=l.bind(null,h.dispatch),h}(),function(){ve("panel/editor/open","yoast-seo/marks/reset-on-edit",(0,c.debounce)(cd,500),Re),ve("document/save/save","yoast-seo/marks/reset-on-save",cd,(({document:e})=>Se((null==e?void 0:e.id)||elementor.documents.getCurrent().id)));const e=(e=>{const t=new MutationObserver(e);return(e=document)=>(t.observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),()=>t.disconnect())})(dd);let t=c.noop;_e("editor/documents/close","yoast-seo/content-scraper/stop",(()=>{t(),t=c.noop,dd.cancel()}),(({id:e})=>Se(e))),_e("editor/documents/attach-preview","yoast-seo/content-scraper/start",(()=>{t=e()}),Re),_e("document/save/set-is-modified","yoast-seo/content-scraper/on-modified",dd,(({document:e})=>Se((null==e?void 0:e.id)||elementor.documents.getCurrent().id))),ld()}(),window.YoastSEO.pluginReady=k,window.YoastSEO.pluginReloaded=S,window.YoastSEO.registerModification=R,window.YoastSEO.registerPlugin=T,window.YoastSEO.applyModifications=E,window.YoastSEO.analysis=window.YoastSEO.analysis||{},window.YoastSEO.analysis.run=(0,a.dispatch)("yoast-seo/editor").runAnalysis,window.YoastSEO.analysis.worker=function(){const{getAnalysisTimestamp:e,isCornerstoneContent:t}=(0,a.select)("yoast-seo/editor"),s=function(){const e=(0,c.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=(0,d.createWorker)(e),s=(0,c.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),i=[];for(const e in s){if(!Object.prototype.hasOwnProperty.call(s,e))continue;const t=window.document.getElementById(`${e}-js-translations`);if(!t)continue;const o=t.innerHTML.slice(214),r=o.indexOf(","),n=o.slice(0,r-1);try{const e=JSON.parse(o.slice(r+1,-4));i.push([n,e])}catch(t){console.warn(`Failed to parse translation data for ${e} to send to the Yoast SEO worker`);continue}}return t.postMessage({dependencies:s,translations:i}),new d.AnalysisWorkerWrapper(t)}();s.initialize(function(e={}){const t={locale:m(),contentAnalysisActive:y(),keywordAnalysisActive:w(),inclusiveLanguageAnalysisActive:f(),defaultQueryParams:(0,c.get)(window,["wpseoAdminL10n","default_query_params"],{}),logLevel:(0,c.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:(0,b.enabledFeatures)()};return(0,c.merge)(t,e)}({useCornerstone:t(),marker:ee()})).catch(p),window.YoastSEO.analysis.applyMarks=(e,t)=>ee()(e,t);let i=se(),o=t(),r=e();return(0,a.subscribe)((()=>{const n=t(),a=se(),l=e();if(n!==o)return o=n,i=a,void s.initialize({useCornerstone:n}).then((()=>te(s,a))).catch(p);l===r&&!1!==(0,c.isEqual)(a,i)||(i=a,r=l,te(s,a))})),s}(),window.YoastSEO.analysis.collectData=se,T(Qc,{status:"ready"}),td().forEach((e=>{const t=null==n?void 0:n[e];if(t){const e=(({getReplacement:e,regexp:t})=>s=>s.replace(t,e()))(t);ed(e)}})),window.YoastSEO.wp=window.YoastSEO.wp||{},window.YoastSEO.wp.replaceVarsPlugin={addReplacement:sd,ReplaceVar:Zc},function(){const e=g(),t=(0,c.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),s=(0,c.get)(window,["wpseoScriptData","usedKeywordsNonce"],""),i=new gd("get_focus_keyword_usage_and_post_types",e,(0,a.dispatch)("yoast-seo/editor").runAnalysis,t,s);i.init();let o="";(0,a.subscribe)((()=>{const e=(0,a.select)("yoast-seo/editor").getFocusKeyphrase();e!==o&&(o=e,i.setKeyword(e))}))}(),(()=>{if((0,a.select)("yoast-seo/editor").getPreference("isInsightsEnabled",!1))(0,a.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),(0,a.subscribe)((0,c.debounce)(ie(),1500,{maxWait:3e3}))})(),function(e){const{getFocusKeyphrase:t}=(0,a.select)("yoast-seo/editor");let s=t();pd(e,s),(0,a.subscribe)((()=>{const i=t();s!==i&&(s=i,ud(e,i))}))}(window.YoastSEO.analysis.worker.runResearch),"1"===window.wpseoScriptData.isAlwaysIntroductionV2||window.elementorFrontend.config.experimentalFeatures.editor_v2?function(){var e,t,s,i;const o="yoast-introduction-editor-v2";if(null!==(e=window.elementor)&&void 0!==e&&null!==(t=e.config)&&void 0!==t&&null!==(s=t.user)&&void 0!==s&&null!==(i=s.introduction)&&void 0!==i&&i[o])return;const r=new window.elementorModules.editor.utils.Introduction({introductionKey:o,dialogType:"buttons",dialogOptions:{id:o,className:"elementor-right-click-introduction yoast-elementor-introduction",headerMessage:(0,je.__)("Yoast SEO for Elementor","wordpress-seo"),message:(0,je.__)("Get started with Yoast SEO's content analysis for Elementor!","wordpress-seo"),position:{my:"center top",at:"center bottom+12",autoRefresh:!0,using(e,t){const s=t.target.left-t.element.left+t.target.width/2-8;this.style.setProperty("--yoast-elementor-introduction-arrow",s+"px");const i=t.target.element.closest("#elementor-panel-inner header"),o=i?i.offsetHeight:0;o&&o>e.top-12?this.style.top=o+20+"px":this.style.top=e.top+"px",this.style.left=e.left+"px"}},hide:{onOutsideClick:!1}},onDialogInitCallback(e){window.$e.routes.on("run:after",((t,s)=>{r.introductionViewed||"panel/elements/yoast-seo-tab"!==s&&s.startsWith("panel/elements")||(e.hide(),r.setViewed())})),window.elementor.channels.dataEditMode.on("switch",(t=>{"preview"!==t||r.introductionViewed||(e.hide(),r.setViewed())})),e.addButton({name:"ok",text:(0,je.__)("Got it","wordpress-seo"),classes:"elementor-button elementor-button-success",callback:()=>{e.hide(),r.setViewed()}})}});setTimeout((function e(){if(r.introductionViewed)return;const t=document.querySelector("button[data-tab='yoast-seo-tab']");t?(r.getDialog().setSettings("position",{...r.getDialog().getSettings("position"),of:t}),r.show(t)):setTimeout(e,100)}),100)}():function(){if(!0===window.elementor.config.user.introduction["yoast-introduction"])return;const e=new window.elementorModules.editor.utils.Introduction({introductionKey:"yoast-introduction",dialogOptions:{id:"yoast-introduction",className:"elementor-right-click-introduction yoast-elementor-introduction",headerMessage:(0,je.__)("New: Yoast SEO for Elementor","wordpress-seo"),message:(0,je.__)("Get started with Yoast SEO's content analysis for Elementor!","wordpress-seo"),position:{my:"left top",at:"right top",autoRefresh:!0},hide:{onOutsideClick:!1}},onDialogInitCallback:t=>{window.$e.routes.on("run:after",(function(e,s){"panel/menu"===s&&t.getElements("ok").trigger("click")})),t.addButton({name:"ok",text:(0,je.__)("Got it","wordpress-seo"),callback:()=>e.setViewed()}),t.getElements("ok").addClass("elementor-button elementor-button-success")}});setTimeout((function t(){try{e.show(window.elementor.getPanelView().header.currentView.ui.menuButton[0])}catch(e){setTimeout(t,100)}}),100)}(),Ma(),ke("editor/documents/load","yoast-seo/add-elements-tab",Ea,(({config:e})=>Se(e.id))),window.elementor.hooks.addFilter("panel/elements/regionViews",ja),window.$e&&window.$e.routes&&window.$e.routes.on("run:after",((e,t)=>{t===`${Sa}/${ka}`&&Ta()})),Ea(),(0,l.doAction)("yoast.elementor.loaded")}gd.prototype.init=function(){const{worker:e}=window.YoastSEO.analysis;this.requestKeywordUsage=(0,c.debounce)(this.requestKeywordUsage.bind(this),500),e.loadScript(this._scriptUrl).then((()=>{e.sendMessage("initialize",this._options,"used-keywords-assessment")})).then((()=>{this._initialized=!0,(0,c.isEqual)(this._options.usedKeywords,this._keywordUsage)?this._refreshAnalysis():e.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then((()=>this._refreshAnalysis()))})).catch((e=>console.error(e)))},gd.prototype.setKeyword=function(e){(0,c.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},gd.prototype.requestKeywordUsage=function(e){hd.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy,nonce:this._nonce},this.updateKeywordUsage.bind(this,e),"json")},gd.prototype.updateKeywordUsage=function(e,t){const{worker:s}=window.YoastSEO.analysis,i=t.keyword_usage,o=t.post_types;i&&(0,c.isArray)(i)&&(this._keywordUsage[e]=i,this._usedKeywordsPostTypes[e]=o,this._initialized&&s.sendMessage("updateKeywordUsage",{usedKeywords:this._keywordUsage,usedKeywordsPostTypes:this._usedKeywordsPostTypes},"used-keywords-assessment").then((()=>this._refreshAnalysis())))},jQuery(window).on("elementor:init",(()=>{window.elementor.on("panel:init",(()=>{setTimeout(md)}))}))})()})(); \ No newline at end of file +`;function pa({keyphrases:e,onNoKeyphraseSet:t,onOpen:s,location:i}){if(!e.length){let e=document.querySelector("#focus-keyword-input-metabox");return e||(e=document.querySelector("#focus-keyword-input-sidebar")),e.focus(),void t()}s(i)}function ua({location:e="",whichModalOpen:t="none",shouldCloseOnClickOutside:s=!0,keyphrases:i,onNoKeyphraseSet:o,onOpen:r,onClose:n}){const a=(0,re.useCallback)((()=>{pa({keyphrases:i,onNoKeyphraseSet:o,onOpen:r,location:e})}),[pa,i,o,r,e]),l=(0,je.__)("Track SEO performance","wordpress-seo"),c=Os();return(0,pe.jsxs)(re.Fragment,{children:[t===e&&(0,pe.jsx)(qs,{title:l,onRequestClose:n,icon:(0,pe.jsx)(bt,{}),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:s,children:(0,pe.jsx)(_r,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content",children:(0,pe.jsx)(ca,{})})}),"sidebar"===e&&(0,pe.jsx)(mt,{id:`wincher-open-button-${e}`,title:l,SuffixHeroIcon:(0,pe.jsx)(da,{className:"yst-text-slate-500",...c}),onClick:a}),"metabox"===e&&(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)(ut,{id:`wincher-open-button-${e}`,onClick:a,children:[(0,pe.jsx)(ut.Text,{children:l}),(0,pe.jsx)(xr,{className:"yst-h-5 yst-w-5 yst-text-slate-500",...c})]})})]})}ua.propTypes={location:le().string,whichModalOpen:le().oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:le().bool,keyphrases:le().array.isRequired,onNoKeyphraseSet:le().func.isRequired,onOpen:le().func.isRequired,onClose:le().func.isRequired};const ha=(0,lt.compose)([(0,a.withSelect)((e=>{const{getWincherModalOpen:t,getWincherTrackableKeyphrases:s}=e("yoast-seo/editor");return{keyphrases:s(),whichModalOpen:t()}})),(0,a.withDispatch)((e=>{const{setWincherOpenModal:t,setWincherDismissModal:s,setWincherNoKeyphrase:i}=e("yoast-seo/editor");return{onOpen:e=>{t(e)},onClose:()=>{s()},onNoKeyphraseSet:()=>{i()}}}))])(ua),ga=({isOpen:e,closeModal:t,id:s,upsellLink:i})=>(0,pe.jsx)(_t,{isOpen:e,onClose:t,id:s,upsellLink:i,title:(0,je.__)("Cover more search intent with related keyphrases","wordpress-seo"),description:(0,je.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles - helping it get discovered by a wider audience.","wordpress-seo"),note:(0,je.__)("Fine-tune your content for every audience","wordpress-seo"),modalTitle:(0,je.__)("Add more keyphrases with Premium","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),ma=()=>{const[e,,,t,s]=(0,Ae.useToggleState)(!1),i=(0,re.useContext)(ne.LocationContext),{locationContext:o}=(0,ne.useRootContext)(),r=(0,Ae.useSvgAria)(),n=wpseoAdminL10n["sidebar"===i.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(ga,{isOpen:e,closeModal:s,upsellLink:(0,dt.addQueryArgs)(n,{context:o}),id:`yoast-additional-keyphrases-modal-${i}`}),"sidebar"===i&&(0,pe.jsx)(mt,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,je.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:Di.colors.$color_grey_medium_dark},onClick:t,children:(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsx)(Ae.Badge,{size:"small",variant:"upsell",children:(0,pe.jsx)(ct,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...r})})})}),"metabox"===i&&(0,pe.jsx)("div",{className:"yst-root",children:(0,pe.jsxs)(ut,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:t,children:[(0,pe.jsx)(ht.SvgIcon,{icon:"plus",color:Di.colors.$color_grey_medium_dark}),(0,pe.jsx)(ut.Text,{children:(0,je.__)("Add related keyphrase","wordpress-seo")}),(0,pe.jsxs)(Ae.Badge,{size:"small",variant:"upsell",children:[(0,pe.jsx)(ct,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...r}),(0,pe.jsx)("span",{children:"Premium"})]})]})})]})};function ya({isLoading:e,onLoad:t,settings:s}){const i=(({webinarIntroUrl:e})=>{const{shouldShow:t}=Dt(),s=(e=>{for(const t of e)if(null!=t&&t.getIsEligible())return t;return null})([{getIsEligible:()=>t,component:Ot},{getIsEligible:Ds,component:()=>(0,pe.jsx)(Ps,{hasIcon:!1,image:null,url:e})},{getIsEligible:()=>!0,component:()=>(0,pe.jsx)(Et,{})}]);return(null==s?void 0:s.component)||null})({webinarIntroUrl:(0,a.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/webinar-intro-elementor")),[])});return(0,re.useEffect)((()=>{setTimeout((()=>{e&&t()}))})),e?null:(0,pe.jsx)(pe.Fragment,{children:(0,pe.jsxs)(oe.Fill,{name:"YoastElementor",children:[(0,pe.jsxs)(ci,{renderPriority:1,children:[(0,pe.jsx)(ai,{}),i&&(0,pe.jsx)("div",{className:"yst-inline-block yst-px-1.5",children:(0,pe.jsx)(i,{})})]}),s.isKeywordAnalysisActive&&(0,pe.jsxs)(ci,{renderPriority:8,children:[(0,pe.jsx)(kt.KeywordInput,{isSEMrushIntegrationActive:s.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,pe.jsx)(oe.Fill,{name:"YoastRelatedKeyphrases",children:(0,pe.jsx)(br,{})})]}),s.isKeywordAnalysisActive&&(0,pe.jsx)(ci,{renderPriority:10,children:(0,pe.jsx)(re.Fragment,{children:(0,pe.jsx)(kt.SeoAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellHighlighting:s.shouldUpsell})})}),s.isContentAnalysisActive&&(0,pe.jsx)(ci,{renderPriority:15,children:(0,pe.jsx)(kt.ReadabilityAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellHighlighting:s.shouldUpsell})}),s.isInclusiveLanguageAnalysisActive&&(0,pe.jsx)(ci,{renderPriority:19,children:(0,pe.jsx)(kt.InclusiveLanguageAnalysis,{shouldUpsellHighlighting:s.shouldUpsell})}),s.isKeywordAnalysisActive&&(0,pe.jsx)(ci,{renderPriority:22,children:s.shouldUpsell&&(0,pe.jsx)(ma,{})},"additional-keywords-upsell"),s.isKeywordAnalysisActive&&s.isWincherIntegrationActive&&(0,pe.jsx)(ci,{renderPriority:23,children:(0,pe.jsx)(ha,{location:"sidebar",shouldCloseOnClickOutside:!1})},"wincher-seo-performance"),s.shouldUpsell&&(0,pe.jsx)(ci,{renderPriority:24,children:(0,pe.jsx)(vt,{})},"internal-linking-suggestions-upsell"),(0,pe.jsx)(ci,{renderPriority:25,children:(0,pe.jsx)(ji,{})}),(s.useOpenGraphData||s.useTwitterData)&&(0,pe.jsx)(ci,{renderPriority:26,children:(0,pe.jsx)(Ho,{useOpenGraphData:s.useOpenGraphData,useTwitterData:s.useTwitterData})},"social-appearance"),s.displaySchemaSettings&&(0,pe.jsx)(ci,{renderPriority:28,children:(0,pe.jsx)(Vo,{title:(0,je.__)("Schema","wordpress-seo"),children:(0,pe.jsx)(ar,{})})}),s.displayAdvancedTab&&(0,pe.jsx)(ci,{renderPriority:29,children:(0,pe.jsx)(Vo,{title:(0,je.__)("Advanced","wordpress-seo"),buttonId:"yoast-seo-elementor-advanced-button",children:(0,pe.jsx)(mr,{location:"sidebar"})})}),s.isCornerstoneActive&&(0,pe.jsx)(ci,{renderPriority:30,children:(0,pe.jsx)(Rt,{})}),s.isInsightsEnabled&&(0,pe.jsx)(ci,{renderPriority:32,children:(0,pe.jsx)(ri,{location:"elementor"})})]})})}ya.propTypes={isLoading:le().bool.isRequired,onLoad:le().func.isRequired,settings:le().object.isRequired};const wa=(0,lt.compose)([(0,a.withSelect)((e=>{const{getPreferences:t,getSnippetEditorIsLoading:s}=e("yoast-seo/editor");return{settings:t(),isLoading:s()}})),(0,a.withDispatch)((e=>{const{loadSnippetEditorData:t}=e("yoast-seo/editor");return{onLoad:t}}))])(ya),fa=window.jQuery;var ba=s.n(fa);const xa=window.Marionette,_a="#elementor-panel-elements-search-area",va=s.n(xa)().ItemView.extend({template:!1,id:"yoast-elementor-react-panel",className:"yoast yoast-elementor-panel__fills",initialize(){ba()(_a).hide()},onShow(){Ta()},onDestroy(){ba()(_a).show()}}),ka="yoast-seo-tab",Sa="panel/elements",Ra="yoast-elementor-react-panel",Ta=()=>{let e=document.getElementById(Ra);if(!e){const t=document.getElementById("elementor-panel-elements-navigation");if(!t)return;e=document.createElement("div"),e.id=Ra,e.className="yoast yoast-elementor-panel__content",t.parentNode.insertBefore(e,t.nextSibling)}e.style.display="block";const t=document.getElementById("elementor-panel-elements-search-area");t&&(t.style.display="none")},Ea=()=>{const e=window.$e.components.get(Sa);e.hasTab(ka)||e.addTab(ka,{title:"Yoast SEO"})},ja=e=>(e[ka]={region:e.global.region,view:va,options:{}},e),Ca="yoast-elementor-react-tab",Ia="yoast-seo-tab",La="Yoast SEO",Aa="panel/page-settings",Pa=()=>{const{settings:e}=elementor.documents.getCurrent().config;e.tabs[Ia]||(e.tabs=(0,c.reduce)(e.tabs,((e,t,s)=>(e[s]=t,"settings"===s&&(e[Ia]=La),e)),{})),$e.components.get(Aa).hasTab(Ia)||$e.components.get(Aa).addTab(Ia,{title:La})};let Da=!1,Fa=!1;const Oa=(0,c.debounce)(Ce,500,{trailing:!0}),Ma=()=>{const e=document.getElementById("yoast-form");if(!e)return void console.error("Yoast form not found!");window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=we,(()=>{const e=document.createElement("div");e.id="yoast-elementor-react-root",document.body.appendChild(e),function(e,t){const s=g();me=(0,re.createRef)();const i={isRtl:s.isRtl};(0,re.createRoot)(document.getElementById(e)).render((0,pe.jsx)(he,{theme:i,location:"sidebar",children:(0,pe.jsx)(oe.SlotFillProvider,{children:(0,pe.jsxs)(re.Fragment,{children:[t,(0,pe.jsx)(ye,{ref:me})]})})}))}(e.id,(0,pe.jsxs)(ne.Root,{context:{locationContext:"elementor-sidebar"},children:[(0,pe.jsxs)(Le,{id:Ca,children:[(0,pe.jsx)(at,{}),(0,pe.jsx)(wa,{})]}),(0,pe.jsxs)(Le,{id:Ra,children:[(0,pe.jsx)(at,{}),(0,pe.jsx)(wa,{})]})]}))})(),ke("editor/documents/load","yoast-seo/register-tab",Pa,(({config:e})=>Se(e.id))),$e.routes.on("run:after",((e,t)=>{t===`${Aa}/${Ia}`&&(()=>{if(document.getElementById(Ca))return;const e=document.getElementById("elementor-panel-page-settings-controls");if(!e)return;const t=e.querySelector(".elementor-control-yoast-seo-section");t&&(t.style.display="none");const s=document.createElement("div");s.id=Ca,s.className="yoast yoast-elementor-panel__fills",e.appendChild(s)})()})),Pa(),elementor.getPanelView().getPages("menu").view.addItem({name:"yoast",icon:"yoast yoast-element-menu-icon",title:La,type:"page",callback:()=>{try{$e.route(`${Aa}/${Ia}`)}catch(e){$e.route(`${Aa}/settings`),$e.route(`${Aa}/${Ia}`)}}},"more"),((e,t=500)=>{const s=(0,c.debounce)(e,t,{trailing:!0});_e("document/elements/settings","yoast-seo/document/post-status",(({settings:e})=>s(e.post_status)),(({container:e,settings:t})=>{var s;return!!Se((null==e||null===(s=e.document)||void 0===s?void 0:s.id)||elementor.documents.getCurrent().id)&&Boolean(null==t?void 0:t.post_status)}))})((()=>Oa(Da)));const t=((e,t=500)=>{const s={},i=Array.from(e.querySelectorAll("input[name^='yoast']")),o=i.reduce(((e,{name:t,value:s})=>(e[t]=s,e)),{}),r={...o},n=new MutationObserver((0,c.debounce)((e=>{const t=[];e.forEach((e=>{"value"===e.attributeName&&e.target.name.startsWith("yoast")&&e.target.value!==o[e.target.name]&&(t.push({input:e.target,name:e.target.name,value:e.target.value,previousValue:o[e.target.name],snapshotValue:r[e.target.name]}),o[e.target.name]=e.target.value)})),t.length>0&&(0,c.forEach)(s,(e=>e(t)))}),t));return{start:()=>n.observe(e,{attributes:!0,subtree:!0}),stop:()=>n.disconnect(),subscribe:e=>{const t=(0,c.uniqueId)("yoast-form-listener");return s[t]=e,()=>delete s[t]},takeSnapshot:()=>{i.forEach((({name:e,value:t})=>{r[e]=t}))},restoreSnapshot:()=>{i.forEach((e=>{e.value=r[e.name],o[e.name]=r[e.name]}))}}})(e);t.subscribe((e=>{e.some((e=>{return t=e.name,s=e.value,i=e.previousValue,!(Te.includes(t)||Ee.includes(t)&&((e,t)=>{if(t===e)return!0;if(""===t||""===e)return!1;let s,i;try{s=JSON.parse(t),i=JSON.parse(e)}catch(e){return!0}return s.length===i.length&&s.every(((e,t)=>e.keyword===i[t].keyword))})(i,s)||s===i);var t,s,i}))&&(Da=!0,Oa(Da),$e.internal("document/save/set-is-modified",{status:!0}))})),t.start(),ve("editor/documents/open","yoast-seo/document/open",(()=>{YoastSEO.store._freeze(!1),t.start(),(0,l.doAction)("yoast.elementor.toggleFreeze",{isFreeze:!1,isDiscard:!1})}),(({id:e})=>Se(e))),_e("editor/documents/close","yoast-seo/document/close",(0,c.throttle)((({mode:e})=>{t.stop(),"discard"===e&&(YoastSEO.store._restoreSnapshot(),t.restoreSnapshot(),Da=!1,Ce(Da));const s=()=>{YoastSEO.store._freeze(!0),(0,l.doAction)("yoast.elementor.toggleFreeze",{isFreeze:!0,isDiscard:"discard"===e}),(0,l.removeAction)("yoast.elementor.save.success","yoast/yoast-seo/finishClosingDocument"),(0,l.removeAction)("yoast.elementor.save.failure","yoast/yoast-seo/finishClosingDocument")};if(Fa)return(0,l.addAction)("yoast.elementor.save.success","yoast/yoast-seo/finishClosingDocument",s),void(0,l.addAction)("yoast.elementor.save.failure","yoast/yoast-seo/finishClosingDocument",s);s()}),500,{leading:!0,trailing:!1}),(({id:e})=>Se(e))),ke("document/save/save","yoast-seo/document/save",(async({document:s})=>{if(Fa=!0,!Se(s.id))return;if(s.id!==elementor.config.document.revisions.current_id)return;Da=!1;const{success:i,formData:o,data:r,xhr:n}=await(e=>new Promise((t=>{const s=jQuery(e).serializeArray().reduce(((e,{name:t,value:s})=>(e[t]=s,e)),{});jQuery.post(e.getAttribute("action"),s).done((({success:e,data:i},o,r)=>t({success:e,formData:s,data:i,xhr:r}))).fail((e=>t({success:!1,formData:s,xhr:e})))})))(e);if(!i)return Da=!0,Fa=!1,void(0,l.doAction)("yoast.elementor.save.failure");r.slug&&r.slug!==o.slug&&(0,a.dispatch)("yoast-seo/editor").updateData({slug:r.slug}),(0,a.dispatch)("yoast-seo/editor").setEditorDataSlug(r.slug),Ce(Da),(0,l.doAction)("yoast.elementor.save.success",n),YoastSEO.store._takeSnapshot(),t.takeSnapshot(),Fa=!1}),(({document:e})=>Se((null==e?void 0:e.id)||elementor.documents.getCurrent().id))),setTimeout((()=>{YoastSEO.store._takeSnapshot(),t.takeSnapshot()}),2e3)},qa=window.yoast.reduxJsToolkit,Na="adminUrl",Ua=(0,qa.createSlice)({name:Na,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),Wa=(Ua.getInitialState,{selectAdminUrl:e=>(0,c.get)(e,Na,"")});Wa.selectAdminLink=(0,qa.createSelector)([Wa.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),Ua.actions,Ua.reducer;const $a="hasConsent",Ba=(0,qa.createSlice)({name:$a,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),Ka=(Ba.getInitialState,Ba.actions,Ba.reducer,"linkParams"),Ha=(0,qa.createSlice)({name:Ka,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),za=(Ha.getInitialState,{selectLinkParam:(e,t,s={})=>(0,c.get)(e,`${Ka}.${t}`,s),selectLinkParams:e=>(0,c.get)(e,Ka,{})});za.selectLink=(0,qa.createSelector)([za.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,dt.addQueryArgs)(t,{...e,...s}))),Ha.actions,Ha.reducer;const Va=(0,qa.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:i,description:o})=>({payload:{id:e||(0,qa.nanoid)(),variant:t,size:s,title:i||"",description:o}})},removeNotification:(e,{payload:t})=>(0,c.omit)(e,t)}}),Ya=(Va.getInitialState,Va.actions,Va.reducer,"pluginUrl"),Ga=(0,qa.createSlice)({name:Ya,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),Za=(Ga.getInitialState,{selectPluginUrl:e=>(0,c.get)(e,Ya,"")});Za.selectImageLink=(0,qa.createSelector)([Za.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,c.trimEnd)(e,"/"),(0,c.trim)(t,"/"),(0,c.trimStart)(s,"/")].join("/"))),Ga.actions,Ga.reducer;const Qa="wistiaEmbedPermission",Xa=(0,qa.createSlice)({name:Qa,initialState:{value:!1,status:ot,error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${Qa}/request`,(e=>{e.status=rt})),e.addCase(`${Qa}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${Qa}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,c.get)(t,"error.code",500),message:(0,c.get)(t,"error.message","Unknown")}}))}}),Ja=(Xa.getInitialState,{selectWistiaEmbedPermission:e=>(0,c.get)(e,Qa,{value:!1,status:ot}),selectWistiaEmbedPermissionValue:e=>(0,c.get)(e,[Qa,"value"],!1),selectWistiaEmbedPermissionStatus:e=>(0,c.get)(e,[Qa,"status"],ot),selectWistiaEmbedPermissionError:e=>(0,c.get)(e,[Qa,"error"],{})}),el=(Xa.actions,{[Qa]:async({payload:e})=>Rr()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:Boolean(e)}})});var tl;Xa.reducer;const sl="documentTitle",il=(0,qa.createSlice)({name:sl,initialState:(0,c.defaultTo)(null===(tl=document)||void 0===tl?void 0:tl.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),ol=(il.getInitialState,{selectDocumentTitle:e=>(0,c.get)(e,sl,""),selectDocumentFullTitle:(e,{prefix:t=""}={})=>{const s=(0,c.get)(e,sl,"");return s.startsWith(t)?s:`${t} ‹ ${s}`}});function rl({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}function nl({query:e,postId:t}){return new Promise((s=>{wpseoApi.get("meta/search",{query:e,post_id:t},(e=>{s(e.meta)}))}))}il.actions,il.reducer;const al=async({countryCode:e,keyphrase:t})=>(Rr()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}}),Rr()({path:(0,dt.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:e})})),ll=el[Qa];class cl{static get titleElement(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_title":"hidden_wpseo_title")}static get descriptionElement(){return document.getElementById(window.wpseoScriptData.isPost?"yoast_wpseo_metadesc":"hidden_wpseo_desc")}static get slugElement(){return document.getElementById("yoast_wpseo_slug")}static get title(){return cl.titleElement.value}static set title(e){cl.titleElement.value=e}static get description(){return cl.descriptionElement.value}static set description(e){cl.descriptionElement.value=e}static get slug(){return cl.slugElement.value}static set slug(e){cl.slugElement.value=e}}const{UPDATE_DATA:dl,LOAD_SNIPPET_EDITOR_DATA:pl}=u.actions;function ul(e){if(e.hasOwnProperty("title")){let t=e.title;e.title===(0,c.get)(window,"wpseoScriptData.metabox.title_template","")&&(t=""),cl.title=t}if(e.hasOwnProperty("description")){let t=e.description;e.description===(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template","")&&(t=""),cl.description=t}return e.hasOwnProperty("slug")&&(cl.slug=e.slug),{type:dl,data:e}}const hl=()=>{const e=(0,c.get)(window,"wpseoScriptData.metabox.title_template",""),t=(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template","");return{type:pl,data:{title:cl.title||e,description:cl.description||t,slug:cl.slug},templates:{title:e,description:t}}},gl="yoast-measurement-element";function ml(e){let t=document.getElementById(gl);return t||(t=function(){const e=document.createElement("div");return e.id=gl,e.style.position="absolute",e.style.left="-9999em",e.style.top=0,e.style.height=0,e.style.overflow="hidden",e.style.fontFamily="arial, sans-serif",e.style.fontSize="20px",e.style.fontWeight="400",document.body.appendChild(e),e}()),t.innerText=e,t.offsetWidth}const{getEditorDataSlug:yl,getEditorDataTitle:wl,getSnippetEditorDescription:fl,getSnippetEditorSlug:bl,getSnippetEditorTitle:xl}=u.selectors,_l=(0,qa.createSelector)([yl,bl,wl,()=>(0,c.get)(window,"elementor.documents.currentDocument.id",0)],((e,t,s,i)=>t||e||(0,dt.cleanForSlug)(s)||String(i))),vl=(0,qa.createSelector)([xl,fl,_l],((e,t,s)=>({title:e,description:t,slug:s}))),{getBaseUrlFromSettings:kl,getContentLocale:Sl,getEditorDataContent:Rl,getFocusKeyphrase:Tl,getSnippetEditorDescriptionWithTemplate:El,getSnippetEditorTitleWithTemplate:jl,getDateFromSettings:Cl}=u.selectors,Il=e=>{let t=jl(e),s=El(e),i=_l(e);const o=kl(e);return t=jt.strings.stripHTMLTags(E("data_page_title",t)),s=jt.strings.stripHTMLTags(E("data_meta_desc",s)),i=i.trim().replace(/\s+/g,"-"),{text:Rl(e),title:t,keyword:Tl(e),description:s,locale:Sl(e),titleWidth:ml(t),slug:i,permalink:o+i,date:Cl(e)}};function Ll(e){return(0,c.get)(e,"editorContext.postType")}const Al=(0,qa.createSelector)([Ll],(e=>"product"===e)),Pl=(0,qa.createSelector)([Ll],(e=>["product_cat","product_tag"].includes(e))),Dl=(0,qa.createSelector)([Al,Pl],((e,t)=>e||t)),Fl=e=>{let t=(0,c.get)(e,"editorData.excerpt","");if(""===t){const s="ja"===m()?80:156;t=wi((0,c.get)(e,"editorData.content",""),s)}return t},Ol=e=>(0,c.get)(e,"analysisData.snippet.title",""),Ml=e=>(0,c.get)(e,"analysisData.snippet.description",""),ql=()=>(0,c.get)(window,"wpseoScriptData.metabox.title_template",""),Nl=()=>(0,c.get)(window,"wpseoScriptData.metabox.title_template_no_fallback",""),Ul=()=>(0,c.get)(window,"wpseoScriptData.metabox.social_title_template",""),Wl=()=>(0,c.get)(window,"wpseoScriptData.metabox.metadesc_template",""),$l=()=>(0,c.get)(window,"wpseoScriptData.metabox.social_description_template",""),Bl=e=>{let t="";return(0,c.get)(e,"snippetEditor.replacementVariables",[]).forEach((e=>{"excerpt"===e.name&&(t=e.value)})),t},Kl=e=>(0,c.get)(e,"facebookEditor.title",""),Hl=e=>(0,c.get)(e,"facebookEditor.description",""),zl=(0,qa.createSelector)([Ul,Ol,Nl,ql],((...e)=>e.find(Boolean)||"")),Vl=((0,qa.createSelector)([Kl,zl],((e,t)=>e||t)),(0,qa.createSelector)([$l,Ml,Wl,Bl,Fl],((...e)=>{var t;return null!==(t=e.find(Boolean))&&void 0!==t?t:""}))),Yl=((0,qa.createSelector)([Hl,Vl],((e,t)=>e||t)),(e,t,s=null)=>(0,c.get)(e,`preferences.${t}`,s)),Gl=e=>Yl(e,"isWooCommerceActive",!1),Zl=e=>Yl(e,"isWooCommerceSeoActive",!1);(0,qa.createSelector)([Zl,Gl,Dl],((e,t,s)=>!e&&t&&s)),(0,qa.createSelector)([Zl,Gl,Pl],((e,t,s)=>!e&&t&&s)),(0,qa.createSelector)([Dl,Gl],((e,t)=>t&&e));const Ql=(0,qa.createSelector)([Ul,Kl,Ol,Nl,ql],((...e)=>e.find(Boolean)||"")),Xl=((0,qa.createSelector)([e=>(0,c.get)(e,"twitterEditor.title",""),Ql],((e,t)=>e||t)),(0,qa.createSelector)([$l,Hl,Ml,Wl,Bl,Fl],((...e)=>{var t;return null!==(t=e.find(Boolean))&&void 0!==t?t:""})));(0,qa.createSelector)([e=>(0,c.get)(e,"twitterEditor.description",""),Xl],((e,t)=>e||t));const{selectAdminUrl:Jl,selectAdminLink:ec}=Wa,{selectLinkParams:tc,selectLinkParam:sc,selectLink:ic}=za,{selectDocumentFullTitle:oc}=ol,{selectPluginUrl:rc,selectImageLink:nc}=Za,{selectWistiaEmbedPermission:ac,selectWistiaEmbedPermissionValue:lc,selectWistiaEmbedPermissionStatus:cc,selectWistiaEmbedPermissionError:dc}=Ja,pc=(0,qa.createSelector)([e=>(0,c.get)(e,"settings.snippetEditor.baseUrl",""),_l],((e,t)=>e+t)),uc={name:"author_first_name",label:"Author first name",placeholder:"%%author_first_name%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_first_name","")},regexp:new RegExp("%%author_first_name%%","g")},hc={name:"author_last_name",label:"Author last name",placeholder:"%%author_last_name%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.author_last_name","")},regexp:new RegExp("%%author_last_name%%","g")},gc={name:"currentdate",label:"Current date",placeholder:"%%currentdate%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentdate","")},regexp:new RegExp("%%currentdate%%","g")},mc={name:"currentday",label:"Current day",placeholder:"%%currentday%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentday","")},regexp:new RegExp("%%currentday%%","g")},yc={name:"currentmonth",label:"Current month",placeholder:"%%currentmonth%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentmonth","")},regexp:new RegExp("%%currentmonth%%","g")},wc={name:"category",label:"Category",placeholder:"%%category%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category","")},regexp:new RegExp("%%category%%","g")},fc={name:"category_title",label:"Category Title",placeholder:"%%category_title%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.category_title","")},regexp:new RegExp("%%category_title%%","g")},bc={name:"currentyear",label:"Current year",placeholder:"%%currentyear%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.currentyear","")},regexp:new RegExp("%%currentyear%%","g")},xc={name:"date",label:"Date",placeholder:"%%date%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.date","")},regexp:new RegExp("%%date%%","g")},_c={name:"excerpt",label:"Excerpt",placeholder:"%%excerpt%%",aliases:[{name:"excerpt_only",label:"Excerpt only",placeholder:"%%excerpt_only%%"}],getReplacement:function(){return(0,a.select)("yoast-seo/editor").getEditorDataExcerptWithFallback()},regexp:new RegExp("%%excerpt%%|%%excerpt_only%%","g")},vc={name:"focuskw",label:"Focus keyphrase",placeholder:"%%focuskw%%",aliases:[],getReplacement:function(){return(0,a.select)("yoast-seo/editor").getFocusKeyphrase()},regexp:new RegExp("%%focuskw%%|%%keyword%%","g")},kc={name:"id",label:"ID",placeholder:"%%id%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.id","")},regexp:new RegExp("%%id%%","g")},Sc={name:"modified",label:"Modified",placeholder:"%%modified%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.modified","")},regexp:new RegExp("%%modified%%","g")},Rc={name:"name",label:"Name",placeholder:"%%name%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.name","")},regexp:new RegExp("%%name%%","g")},Tc={name:"page",label:"Page",placeholder:"%%page%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.page","")},regexp:new RegExp("%%page%%","g")},Ec={name:"pagenumber",label:"Pagenumber",placeholder:"%%pagenumber%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagenumber","")},regexp:new RegExp("%%pagenumber%%","g")},jc={name:"pagetotal",label:"Pagetotal",placeholder:"%%pagetotal%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pagetotal","")},regexp:new RegExp("%%pagetotal%%","g")},Cc={name:"permalink",label:"Permalink",placeholder:"%%permalink%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.permalink","")},regexp:new RegExp("%%permalink%%","g")},Ic={name:"post_content",label:"Post Content",placeholder:"%%post_content%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_content","")},regexp:new RegExp("%%post_content%%","g")},Lc={name:"post_day",label:"Post Day",placeholder:"%%post_day%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_day","")},regexp:new RegExp("%%post_day%%","g")},Ac={name:"post_month",label:"Post Month",placeholder:"%%post_month%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_month","")},regexp:new RegExp("%%post_month%%","g")},Pc={name:"post_year",label:"Post Year",placeholder:"%%post_year%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.post_year","")},regexp:new RegExp("%%post_year%%","g")},Dc={name:"pt_plural",label:"Post type (plural)",placeholder:"%%pt_plural%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_plural","")},regexp:new RegExp("%%pt_plural%%","g")},Fc={name:"pt_single",label:"Post type (singular)",placeholder:"%%pt_single%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.pt_single","")},regexp:new RegExp("%%pt_single%%","g")},Oc={name:"primary_category",label:"Primary category",placeholder:"%%primary_category%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.primary_category","")},regexp:new RegExp("%%primary_category%%","g")},Mc={name:"searchphrase",label:"Search phrase",placeholder:"%%searchphrase%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.searchphrase","")},regexp:new RegExp("%%searchphrase%%","g")},qc={name:"sep",label:"Separator",placeholder:"%%sep%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sep","")},regexp:new RegExp("%%sep%%(\\s*%%sep%%)*","g")},Nc={name:"sitedesc",label:"Tagline",placeholder:"%%sitedesc%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitedesc","")},regexp:new RegExp("%%sitedesc%%","g")},Uc={name:"sitename",label:"Site title",placeholder:"%%sitename%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.sitename","")},regexp:new RegExp("%%sitename%%","g")},Wc={name:"tag",label:"Tag",placeholder:"%%tag%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.tag","")},regexp:new RegExp("%%tag%%","g")},$c={name:"term404",label:"Term404",placeholder:"%%term404%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term404","")},regexp:new RegExp("%%term404%%","g")},Bc={name:"term_description",label:"Term description",placeholder:"%%term_description%%",aliases:[{name:"tag_description",label:"Tag description",placeholder:"%%tag_description%%"},{name:"category_description",label:"Category description",placeholder:"%%category_description%%"}],getReplacement:function(){return(0,c.get)(window,"YoastSEO.app.rawData.text","")},regexp:new RegExp("%%term_description%%|%%tag_description%%|%%category_description%%","g")},Kc={name:"term_hierarchy",label:"Term hierarchy",placeholder:"%%term_hierarchy%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_hierarchy","")},regexp:new RegExp("%%term_hierarchy%%","g")},Hc={name:"term_title",label:"Term title",placeholder:"%%term_title%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.term_title","")},regexp:new RegExp("%%term_title%%","g")},zc={name:"title",label:"Title",placeholder:"%%title%%",aliases:[],getReplacement:function(){return(0,a.select)("yoast-seo/editor").getEditorDataTitle()},regexp:new RegExp("%%title%%","g")},Vc={name:"user_description",label:"User description",placeholder:"%%user_description%%",aliases:[],getReplacement:function(){return(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.replace_vars.user_description","")},regexp:new RegExp("%%user_description%%","g")};var Yc={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},Gc=function(e,t,s){this.placeholder=e,this.replacement=t,this.options=(0,c.defaults)(s,Yc)};Gc.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},Gc.prototype.setSource=function(e){this.options.source=e},Gc.prototype.hasScope=function(){return!(0,c.isEmpty)(this.options.scope)},Gc.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},Gc.prototype.inScope=function(e){return!this.hasScope()||(0,c.indexOf)(this.options.scope,e)>-1},Gc.prototype.hasAlias=function(){return!(0,c.isEmpty)(this.options.aliases)},Gc.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},Gc.prototype.getAliases=function(){return this.options.aliases};const Zc=Gc,Qc="replaceVariablePlugin";let Xc=null,Jc=null;const ed=e=>{["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"].forEach((t=>{R(t,e,Qc,10)}))},td=(e="")=>{switch(""===e&&(e=(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.scope","")),e){case"post":case"page":return["authorFirstName","authorLastName","category","categoryTitle","currentDate","currentDay","currentMonth","currentYear","date","excerpt","id","focusKeyphrase","modified","name","page","primaryCategory","pageNumber","pageTotal","permalink","postContent","postDay","postMonth","postYear","postTypeNamePlural","postTypeNameSingular","searchPhrase","separator","siteDescription","siteName","tag","title","userDescription"]}return[]},sd=e=>ed((t=>t.replace(new RegExp(e.placeholder,"g"),e.replacement))),id=()=>{if(null===Jc){Jc=[];const e=(0,c.get)(window,"wpseoScriptData.analysis.plugins.replaceVars.hidden_replace_vars",[]);(null===Xc&&(Xc=td().map((e=>null==n?void 0:n[e])).filter(Boolean)),Xc).forEach((t=>{const s=e.includes(t.name);Jc.push({name:t.name,label:t.label,value:t.placeholder,hidden:s}),t.aliases.forEach((e=>{Jc.push({name:e.name,label:e.label,value:e.placeholder,hidden:s})}))}))}return Jc};const od={content:"",title:"",excerpt:"",slug:"",imageUrl:"",featuredImage:"",contentImage:"",excerptOnly:""},rd="yoastmark";function nd(e=elementor.documents.getCurrent()){var t,s;let i=null===(t=e.$element)||void 0===t?void 0:t.find(".elementor-widget-container");var o;return null!==(s=i)&&void 0!==s&&s.length||(i=null===(o=e.$element)||void 0===o?void 0:o.find(".elementor-widget").children().not(".elementor-background-overlay, .elementor-element-overlay, .ui-resizable-handle")),i}function ad(e,t=!1){let s=elementor.settings.page.model.get("post_excerpt");return t?s||"":(s||(s=wi(e,"ja"===m()?80:156)),s)}function ld(){const e=elementor.documents.getCurrent();if(!Re())return;if(!["wp-post","wp-page"].includes(e.config.type))return;if((0,a.select)("yoast-seo/editor").getActiveMarker())return;const t=function(e){const t=function(e){var t;const s=[];return null===(t=nd(e))||void 0===t||t.each(((e,t)=>{const i=t.innerHTML.replace(/[\n\t]/g,"").trim();s.push(i)})),s.join("")}(e),s=(0,c.get)(elementor.settings.page.model.get("post_featured_image"),"url",""),i=function(e){const t=d.languageProcessing.imageInText(e);if(0===t.length)return"";const s=jQuery.parseHTML(t.join(""));for(const e of s)if(e.src)return e.src;return""}(t);return{content:t,title:elementor.settings.page.model.get("post_title"),excerpt:ad(t),excerptOnly:ad(t,!0),imageUrl:s||i,featuredImage:s,contentImage:i,status:elementor.settings.page.model.get("post_status")}}(e);t.content!==od.content&&(od.content=t.content,(0,a.dispatch)("yoast-seo/editor").setEditorDataContent(od.content)),t.title!==od.title&&(od.title=t.title,(0,a.dispatch)("yoast-seo/editor").setEditorDataTitle(od.title)),t.excerpt!==od.excerpt&&(od.excerpt=t.excerpt,od.excerptOnly=t.excerptOnly,(0,a.dispatch)("yoast-seo/editor").setEditorDataExcerpt(od.excerpt),(0,a.dispatch)("yoast-seo/editor").updateReplacementVariable("excerpt",od.excerpt),(0,a.dispatch)("yoast-seo/editor").updateReplacementVariable("excerpt_only",od.excerptOnly)),t.imageUrl!==od.imageUrl&&(od.imageUrl=t.imageUrl,(0,a.dispatch)("yoast-seo/editor").setEditorDataImageUrl(od.imageUrl)),t.contentImage!==od.contentImage&&(od.contentImage=t.contentImage,(0,a.dispatch)("yoast-seo/editor").setContentImage(od.contentImage)),t.featuredImage!==od.featuredImage&&(od.featuredImage=t.featuredImage,(0,a.dispatch)("yoast-seo/editor").updateData({snippetPreviewImageURL:od.featuredImage}))}function cd(){nd().each(((e,t)=>{-1!==t.innerHTML.indexOf("<"+rd)&&(t.innerHTML=d.markers.removeMarks(t.innerHTML))})),(0,a.dispatch)("yoast-seo/editor").setActiveMarker(null),(0,a.dispatch)("yoast-seo/editor").setMarkerPauseStatus(!1),YoastSEO.analysis.applyMarks(new d.Paper("",{}),[])}const dd=(0,c.debounce)(ld,500);function pd(e,t){const{updateWordsToHighlight:s}=(0,a.dispatch)("yoast-seo/editor");e("morphology",new d.Paper("",{keyword:t})).then((({result:{keyphraseForms:e}})=>{s((0,c.uniq)((0,c.flatten)(e)))})).catch((()=>{s([])}))}const ud=(0,c.debounce)(pd,500);var hd=jQuery;function gd(e,t,s,i,o){this._scriptUrl=i,this._options={usedKeywords:t.keyword_usage,usedKeywordsPostTypes:t.keyword_usage_post_types,searchUrl:t.search_url,postUrl:t.post_edit_url},this._keywordUsage=t.keyword_usage,this._usedKeywordsPostTypes=t.keyword_usage_post_types,this._postID=hd("#post_ID, [name=tag_ID]").val(),this._taxonomy=hd("[name=taxonomy]").val()||"",this._nonce=o,this._ajaxAction=e,this._refreshAnalysis=s,this._initialized=!1}function md(){window.YoastSEO=window.YoastSEO||{},window.YoastSEO.store=function(){const{snapshotReducer:s,takeSnapshot:n,restoreSnapshot:l}=((e,t)=>{let s,i=!1,o=!1;return{snapshotReducer:(o=t,r)=>i?(i=!1,s):e(o,r),takeSnapshot:(e,t)=>{t({type:"CREATE_SNAPSHOT"}),s=(0,c.cloneDeep)(e()),o=!0},restoreSnapshot:e=>{o&&(i=!0,e({type:"RESTORE_SNAPSHOT"}))}}})((0,a.combineReducers)(u.reducers)),{freezeReducer:d,toggleFreeze:p}=((e,t)=>{let s=!1,i=null;return{freezeReducer:(o=t,r)=>s?i:e(o,r),toggleFreeze:(e,t=!s)=>{i=t?(0,c.cloneDeep)(e()):null,s=Boolean(t)}}})(s),h=(0,a.registerStore)("yoast-seo/editor",{reducer:d,selectors:{...u.selectors,...o,...i,...r},actions:(0,c.pickBy)({...u.actions,...t},(e=>"function"==typeof e)),controls:e,initialState:{snippetEditor:{mode:"mobile",data:{title:"",description:"",slug:""},wordsToHighlight:[],replacementVariables:[{name:"date",label:(0,je.__)("Date","wordpress-seo"),value:""},{name:"id",label:(0,je.__)("ID","wordpress-seo"),value:""},{name:"page",label:(0,je.__)("Page","wordpress-seo"),value:""},{name:"searchphrase",label:(0,je.__)("Search phrase","wordpress-seo"),value:""},{name:"sitedesc",label:(0,je.__)("Tagline","wordpress-seo"),value:""},{name:"sitename",label:(0,je.__)("Site title","wordpress-seo"),value:""},{name:"category",label:(0,je.__)("Category","wordpress-seo"),value:""},{name:"focuskw",label:(0,je.__)("Focus keyphrase","wordpress-seo"),value:""},{name:"title",label:(0,je.__)("Title","wordpress-seo"),value:""},{name:"parent_title",label:(0,je.__)("Parent title","wordpress-seo"),value:""},{name:"excerpt",label:(0,je.__)("Excerpt","wordpress-seo"),value:""},{name:"primary_category",label:(0,je.__)("Primary category","wordpress-seo"),value:""},{name:"sep",label:(0,je.__)("Separator","wordpress-seo"),value:""},{name:"excerpt_only",label:(0,je.__)("Excerpt only","wordpress-seo"),value:""},{name:"category_description",label:(0,je.__)("Category description","wordpress-seo"),value:""},{name:"tag_description",label:(0,je.__)("Tag description","wordpress-seo"),value:""},{name:"term_description",label:(0,je.__)("Term description","wordpress-seo"),value:""},{name:"currentyear",label:(0,je.__)("Current year","wordpress-seo"),value:""}],uniqueRefreshValue:"",templates:{title:"",description:""},isLoading:!0,replacementVariables:id()}}});return(e=>{e.dispatch(u.actions.loadCornerstoneContent()),e.dispatch(u.actions.loadFocusKeyword()),e.dispatch(u.actions.setMarkerStatus(window.wpseoScriptData.metabox.elementorMarkerStatus)),e.dispatch(u.actions.setSettings({socialPreviews:{sitewideImage:window.wpseoScriptData.sitewideSocialImage,siteName:window.wpseoScriptData.metabox.site_name,contentImage:window.wpseoScriptData.metabox.first_content_image,twitterCardType:window.wpseoScriptData.metabox.twitterCardType},snippetEditor:{baseUrl:window.wpseoScriptData.metabox.base_url,date:window.wpseoScriptData.metabox.metaDescriptionDate,recommendedReplacementVariables:window.wpseoScriptData.analysis.plugins.replaceVars.recommended_replace_vars,siteIconUrl:window.wpseoScriptData.metabox.siteIconUrl}}));const{facebook:t,twitter:s}=window.wpseoScriptData.metabox.showSocial;t&&e.dispatch(u.actions.loadFacebookPreviewData()),s&&e.dispatch(u.actions.loadTwitterPreviewData()),e.dispatch(u.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(u.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(u.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(u.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(u.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases)),e.dispatch(u.actions.setDismissedAlerts((0,c.get)(window,"wpseoScriptData.dismissedAlerts",{}))),e.dispatch(u.actions.setCurrentPromotions((0,c.get)(window,"wpseoScriptData.currentPromotions",{}))),e.dispatch(u.actions.setIsPremium(Boolean((0,c.get)(window,"wpseoScriptData.metabox.isPremium",!1)))),e.dispatch(u.actions.setAdminUrl((0,c.get)(window,"wpseoScriptData.adminUrl",""))),e.dispatch(u.actions.setLinkParams((0,c.get)(window,"wpseoScriptData.linkParams",{}))),e.dispatch(u.actions.setPluginUrl((0,c.get)(window,"wpseoScriptData.pluginUrl",""))),e.dispatch(u.actions.setWistiaEmbedPermissionValue("1"===(0,c.get)(window,"wpseoScriptData.wistiaEmbedPermission",!1)));const i=document.getElementById("yoast_wpseo_slug");i&&e.dispatch(u.actions.setEditorDataSlug(i.value))})(h),h._freeze=p.bind(null,h.getState),h._takeSnapshot=n.bind(null,h.getState,h.dispatch),h._restoreSnapshot=l.bind(null,h.dispatch),h}(),function(){ve("panel/editor/open","yoast-seo/marks/reset-on-edit",(0,c.debounce)(cd,500),Re),ve("document/save/save","yoast-seo/marks/reset-on-save",cd,(({document:e})=>Se((null==e?void 0:e.id)||elementor.documents.getCurrent().id)));const e=(e=>{const t=new MutationObserver(e);return(e=document)=>(t.observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),()=>t.disconnect())})(dd);let t=c.noop;_e("editor/documents/close","yoast-seo/content-scraper/stop",(()=>{t(),t=c.noop,dd.cancel()}),(({id:e})=>Se(e))),_e("editor/documents/attach-preview","yoast-seo/content-scraper/start",(()=>{t=e()}),Re),_e("document/save/set-is-modified","yoast-seo/content-scraper/on-modified",dd,(({document:e})=>Se((null==e?void 0:e.id)||elementor.documents.getCurrent().id))),ld()}(),window.YoastSEO.pluginReady=k,window.YoastSEO.pluginReloaded=S,window.YoastSEO.registerModification=R,window.YoastSEO.registerPlugin=T,window.YoastSEO.applyModifications=E,window.YoastSEO.analysis=window.YoastSEO.analysis||{},window.YoastSEO.analysis.run=(0,a.dispatch)("yoast-seo/editor").runAnalysis,window.YoastSEO.analysis.worker=function(){const{getAnalysisTimestamp:e,isCornerstoneContent:t}=(0,a.select)("yoast-seo/editor"),s=function(){const e=(0,c.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=(0,d.createWorker)(e),s=(0,c.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),i=[];for(const e in s){if(!Object.prototype.hasOwnProperty.call(s,e))continue;const t=window.document.getElementById(`${e}-js-translations`);if(!t)continue;const o=t.innerHTML.slice(214),r=o.indexOf(","),n=o.slice(0,r-1);try{const e=/}}\s*\);/.exec(o).index+2,t=JSON.parse(o.slice(r+1,e));i.push([n,t])}catch(t){console.warn(`Failed to parse translation data for ${e} to send to the Yoast SEO worker`);continue}}return t.postMessage({dependencies:s,translations:i}),new d.AnalysisWorkerWrapper(t)}();s.initialize(function(e={}){const t={locale:m(),contentAnalysisActive:y(),keywordAnalysisActive:w(),inclusiveLanguageAnalysisActive:f(),defaultQueryParams:(0,c.get)(window,["wpseoAdminL10n","default_query_params"],{}),logLevel:(0,c.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:(0,b.enabledFeatures)()};return(0,c.merge)(t,e)}({useCornerstone:t(),marker:ee()})).catch(p),window.YoastSEO.analysis.applyMarks=(e,t)=>ee()(e,t);let i=se(),o=t(),r=e();return(0,a.subscribe)((()=>{const n=t(),a=se(),l=e();if(n!==o)return o=n,i=a,void s.initialize({useCornerstone:n}).then((()=>te(s,a))).catch(p);l===r&&!1!==(0,c.isEqual)(a,i)||(i=a,r=l,te(s,a))})),s}(),window.YoastSEO.analysis.collectData=se,T(Qc,{status:"ready"}),td().forEach((e=>{const t=null==n?void 0:n[e];if(t){const e=(({getReplacement:e,regexp:t})=>s=>s.replace(t,e()))(t);ed(e)}})),window.YoastSEO.wp=window.YoastSEO.wp||{},window.YoastSEO.wp.replaceVarsPlugin={addReplacement:sd,ReplaceVar:Zc},function(){const e=g(),t=(0,c.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),s=(0,c.get)(window,["wpseoScriptData","usedKeywordsNonce"],""),i=new gd("get_focus_keyword_usage_and_post_types",e,(0,a.dispatch)("yoast-seo/editor").runAnalysis,t,s);i.init();let o="";(0,a.subscribe)((()=>{const e=(0,a.select)("yoast-seo/editor").getFocusKeyphrase();e!==o&&(o=e,i.setKeyword(e))}))}(),(()=>{if((0,a.select)("yoast-seo/editor").getPreference("isInsightsEnabled",!1))(0,a.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),(0,a.subscribe)((0,c.debounce)(ie(),1500,{maxWait:3e3}))})(),function(e){const{getFocusKeyphrase:t}=(0,a.select)("yoast-seo/editor");let s=t();pd(e,s),(0,a.subscribe)((()=>{const i=t();s!==i&&(s=i,ud(e,i))}))}(window.YoastSEO.analysis.worker.runResearch),"1"===window.wpseoScriptData.isAlwaysIntroductionV2||window.elementorFrontend.config.experimentalFeatures.editor_v2?function(){var e,t,s,i;const o="yoast-introduction-editor-v2";if(null!==(e=window.elementor)&&void 0!==e&&null!==(t=e.config)&&void 0!==t&&null!==(s=t.user)&&void 0!==s&&null!==(i=s.introduction)&&void 0!==i&&i[o])return;const r=new window.elementorModules.editor.utils.Introduction({introductionKey:o,dialogType:"buttons",dialogOptions:{id:o,className:"elementor-right-click-introduction yoast-elementor-introduction",headerMessage:(0,je.__)("Yoast SEO for Elementor","wordpress-seo"),message:(0,je.__)("Get started with Yoast SEO's content analysis for Elementor!","wordpress-seo"),position:{my:"center top",at:"center bottom+12",autoRefresh:!0,using(e,t){const s=t.target.left-t.element.left+t.target.width/2-8;this.style.setProperty("--yoast-elementor-introduction-arrow",s+"px");const i=t.target.element.closest("#elementor-panel-inner header"),o=i?i.offsetHeight:0;o&&o>e.top-12?this.style.top=o+20+"px":this.style.top=e.top+"px",this.style.left=e.left+"px"}},hide:{onOutsideClick:!1}},onDialogInitCallback(e){window.$e.routes.on("run:after",((t,s)=>{r.introductionViewed||"panel/elements/yoast-seo-tab"!==s&&s.startsWith("panel/elements")||(e.hide(),r.setViewed())})),window.elementor.channels.dataEditMode.on("switch",(t=>{"preview"!==t||r.introductionViewed||(e.hide(),r.setViewed())})),e.addButton({name:"ok",text:(0,je.__)("Got it","wordpress-seo"),classes:"elementor-button elementor-button-success",callback:()=>{e.hide(),r.setViewed()}})}});setTimeout((function e(){if(r.introductionViewed)return;const t=document.querySelector("button[data-tab='yoast-seo-tab']");t?(r.getDialog().setSettings("position",{...r.getDialog().getSettings("position"),of:t}),r.show(t)):setTimeout(e,100)}),100)}():function(){if(!0===window.elementor.config.user.introduction["yoast-introduction"])return;const e=new window.elementorModules.editor.utils.Introduction({introductionKey:"yoast-introduction",dialogOptions:{id:"yoast-introduction",className:"elementor-right-click-introduction yoast-elementor-introduction",headerMessage:(0,je.__)("New: Yoast SEO for Elementor","wordpress-seo"),message:(0,je.__)("Get started with Yoast SEO's content analysis for Elementor!","wordpress-seo"),position:{my:"left top",at:"right top",autoRefresh:!0},hide:{onOutsideClick:!1}},onDialogInitCallback:t=>{window.$e.routes.on("run:after",(function(e,s){"panel/menu"===s&&t.getElements("ok").trigger("click")})),t.addButton({name:"ok",text:(0,je.__)("Got it","wordpress-seo"),callback:()=>e.setViewed()}),t.getElements("ok").addClass("elementor-button elementor-button-success")}});setTimeout((function t(){try{e.show(window.elementor.getPanelView().header.currentView.ui.menuButton[0])}catch(e){setTimeout(t,100)}}),100)}(),Ma(),ke("editor/documents/load","yoast-seo/add-elements-tab",Ea,(({config:e})=>Se(e.id))),window.elementor.hooks.addFilter("panel/elements/regionViews",ja),window.$e&&window.$e.routes&&window.$e.routes.on("run:after",((e,t)=>{t===`${Sa}/${ka}`&&Ta()})),Ea(),(0,l.doAction)("yoast.elementor.loaded")}gd.prototype.init=function(){const{worker:e}=window.YoastSEO.analysis;this.requestKeywordUsage=(0,c.debounce)(this.requestKeywordUsage.bind(this),500),e.loadScript(this._scriptUrl).then((()=>{e.sendMessage("initialize",this._options,"used-keywords-assessment")})).then((()=>{this._initialized=!0,(0,c.isEqual)(this._options.usedKeywords,this._keywordUsage)?this._refreshAnalysis():e.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then((()=>this._refreshAnalysis()))})).catch((e=>console.error(e)))},gd.prototype.setKeyword=function(e){(0,c.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},gd.prototype.requestKeywordUsage=function(e){hd.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy,nonce:this._nonce},this.updateKeywordUsage.bind(this,e),"json")},gd.prototype.updateKeywordUsage=function(e,t){const{worker:s}=window.YoastSEO.analysis,i=t.keyword_usage,o=t.post_types;i&&(0,c.isArray)(i)&&(this._keywordUsage[e]=i,this._usedKeywordsPostTypes[e]=o,this._initialized&&s.sendMessage("updateKeywordUsage",{usedKeywords:this._keywordUsage,usedKeywordsPostTypes:this._usedKeywordsPostTypes},"used-keywords-assessment").then((()=>this._refreshAnalysis())))},jQuery(window).on("elementor:init",(()=>{window.elementor.on("panel:init",(()=>{setTimeout(md)}))}))})()})(); \ No newline at end of file @@ -1,5 +1,7 @@ -(()=>{var e={20841:(e,t)=>{var a;!function(){"use strict";var r={}.hasOwnProperty;function s(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=n(e,o(a)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return s.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var a in e)r.call(e,a)&&e[a]&&(t=n(t,a));return t}function n(e,t){return t?e?e+" "+t:e+t:e}e.exports?(s.default=s,e.exports=s):void 0===(a=function(){return s}.apply(t,[]))||(e.exports=a)}()}},t={};function a(r){var s=t[r];if(void 0!==s)return s.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,a),o.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";a.r(r),a.d(r,{ComparisonMetricsDataFormatter:()=>ct,Dashboard:()=>Xe,DataFormatterInterface:()=>lt,DataProvider:()=>Ct,OrganicSessionsWidget:()=>be,PlainMetricsDataFormatter:()=>it,RemoteCachedDataProvider:()=>wt,RemoteDataProvider:()=>pt,ScoreWidget:()=>Ye,SearchRankingCompareWidget:()=>X,TopPagesWidget:()=>M,TopQueriesWidget:()=>z,Widget:()=>E,WidgetDataSources:()=>f,WidgetErrorBoundary:()=>v,WidgetFactory:()=>jt,WidgetTitle:()=>g,WidgetTooltip:()=>h,fetchJson:()=>$e,useFetch:()=>Be});const e=window.React,t=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}))})),s=window.wp.i18n,o=window.yoast.uiLibrary,n=window.wp.element;var l=a(20841),i=a.n(l);const c=(e,t)=>{try{return(0,n.createInterpolateElement)((0,s.sprintf)(e,"<link>","</link>"),{link:t})}catch(t){return(0,s.sprintf)(e,"","")}},d=({error:e,supportLink:t,className:a=""})=>{if(!e)return null;const r=React.createElement(o.Link,{variant:"error",href:t}," ");return React.createElement(o.Alert,{variant:"error",className:i()("yst-max-w-2xl",a)},((e,t)=>{switch(!0){case 408===e.status||"TimeoutError"===e.name:return c(/* translators: %1$s expands to an anchor start tag, %2$s to an anchor end tag. */ -(0,s.__)("The request timed out. Try refreshing the page. If the problem persists, please check our %1$sSupport page%2$s.","wordpress-seo"),t);case 403===e.status:return c(/* translators: %1$s expands to an anchor start tag, %2$s to an anchor end tag. */ -(0,s.__)("You don’t have permission to access this resource. Please contact your admin for access. In case you need further help, please check our %1$sSupport page%2$s.","wordpress-seo"),t);default:return c(/* translators: %1$s expands to an anchor start tag, %2$s to an anchor end tag. */ -(0,s.__)("Something went wrong. Try refreshing the page. If the problem persists, please check our %1$sSupport page%2$s.","wordpress-seo"),t)}})(e,r))},m=({className:e="yst-mt-4"})=>React.createElement("p",{className:e},(0,s.__)("No data to display: Your site hasn't received any visitors yet.","wordpress-seo"));function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u.apply(this,arguments)}const p=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))})),y=({children:e})=>React.createElement(o.TooltipContainer,{as:"div",className:"yst-h-fit yst-leading-[0]"},React.createElement(o.TooltipTrigger,null,React.createElement(p,{className:"yst-w-5 yst-h-5 yst-text-slate-400"})),React.createElement(o.TooltipWithContext,{variant:"light",className:"yst-leading-normal yst-max-w-80 yst-p-4 yst-shadow-md",position:"left"},e)),g=({children:e,...t})=>React.createElement(o.Title,u({as:"h2"},t),e);g.displayName="Widget.Title";const h=({content:e,children:t})=>React.createElement(y,null,React.createElement("p",{className:"yst-mb-2 yst-text-slate-600"},e),t);h.displayName="Widget.Tooltip";const f=({dataSources:e})=>React.createElement("div",{className:"yst-border-t yst-mt-3 yst-border-slate-200 yst-italic yst-text-xxs"},React.createElement("div",{className:"yst-mt-3 yst-font-semibold yst-text-slate-800"},(0,s.__)("Data provided by:","wordpress-seo")),React.createElement("ul",null,e.map(((e,t)=>React.createElement("li",{className:"yst-text-slate-500",key:t},e.feature?React.createElement(React.Fragment,null,React.createElement("span",{className:"yst-font-medium"},e.source," - "),e.feature):e.source)))));f.displayName="Widget.DataSources";const v=({className:t="yst-mt-4",supportLink:a,children:r,...s})=>{const n=(0,e.useCallback)((({error:e})=>React.createElement(d,{error:e,className:t,supportLink:a})),[t,a]);return React.createElement(o.ErrorBoundary,u({},s,{FallbackComponent:n}),r)};v.displayName="Widget.ErrorBoundary";const E=({className:e="yst-paper__content",title:t,tooltip:a,dataSources:r,children:s,errorSupportLink:n})=>React.createElement(o.Paper,{className:i()("yst-shadow-md",e)},(t||a)&&React.createElement("div",{className:"yst-flex yst-justify-between"},t&&React.createElement(g,null,t),a&&React.createElement(h,{content:a},r&&r.length>0&&React.createElement(f,{dataSources:r}))),n?React.createElement(v,{supportLink:n},s):s),R={good:{label:(0,s.__)("Good","wordpress-seo"),color:"yst-bg-analysis-good",hex:"#7ad03a"},ok:{label:(0,s.__)("OK","wordpress-seo"),color:"yst-bg-analysis-ok",hex:"#ee7c1b"},bad:{label:(0,s.__)("Needs improvement","wordpress-seo"),color:"yst-bg-analysis-bad",hex:"#dc3232"},notAnalyzed:{label:(0,s.__)("Not analyzed","wordpress-seo"),color:"yst-bg-analysis-na",hex:"#cbd5e1"}},b={seo:{good:(0,s.__)("Most of your content has a good SEO score. Well done!","wordpress-seo"),ok:(0,s.__)("Your content has an average SEO score. Time to find opportunities for improvement!","wordpress-seo"),bad:(0,s.__)("Some of your content could use a little extra care. Take a look and start improving!","wordpress-seo"),notAnalyzed:(0,s.__)("Some of your content hasn't been analyzed yet. Please open it in your editor, ensure a focus keyphrase is entered, and save it so we can start the analysis.","wordpress-seo")},readability:{good:(0,s.__)("Most of your content has a good readability score. Well done!","wordpress-seo"),ok:(0,s.__)("Your content has an average readability score. Time to find opportunities for improvement!","wordpress-seo"),bad:(0,s.__)("Some of your content could use a little extra care. Take a look and start improving!","wordpress-seo"),notAnalyzed:(0,s.__)("Some of your content hasn't been analyzed yet. Please open it and save it in your editor so we can start the analysis.","wordpress-seo")}},w={seo:{notAnalyzed:(0,s.__)("We haven’t analyzed this content yet. Please open it in your editor, ensure a focus keyphrase is entered, and save it so we can start the analysis.","wordpress-seo")},readability:{notAnalyzed:(0,s.__)("We haven’t analyzed this content yet. Please open it in your editor and save it so we can start the analysis.","wordpress-seo")}},k=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),S=({tooltip:e,id:t})=>React.createElement(o.TooltipContainer,{className:"yst-h-4"},React.createElement(o.TooltipTrigger,{ariaDescribedby:t},React.createElement(k,{className:"yst-w-4 yst-h-4 yst-text-slate-400"}),React.createElement("span",{className:"yst-sr-only"},(0,s.__)("Disabled","wordpress-seo"))),e&&React.createElement(o.TooltipWithContext,{position:"left",id:t},e)),_=({score:e,id:t})=>{var a;return React.createElement(o.TooltipContainer,{className:"yst-h-4 yst-flex yst-items-center yst-justify-center"},React.createElement(o.TooltipTrigger,{ariaDescribedby:t},React.createElement("div",{className:i()("yst-shrink-0 yst-w-3 yst-aspect-square yst-rounded-full",R[e].color)},React.createElement("span",{className:"yst-sr-only"},R[e].label))),(null===(a=R[e])||void 0===a?void 0:a.tooltip)&&React.createElement(o.TooltipWithContext,{position:"left",id:t},"notAnalyzed"===e?(0,s.__)("Content analysis hasn't started. Please open this page in your editor, enter a focus keyphrase and save.","wordpress-seo"):R[e].tooltip))},N=({score:e,isIndexablesEnabled:t,isSeoAnalysisEnabled:a,isEditable:r,id:o})=>t&&a?r?React.createElement(_,{score:e,id:o}):React.createElement(S,{id:o,tooltip:(0,s.__)("We can’t provide an SEO score for this page.","wordpress-seo")}):React.createElement(S,{id:o}),x=({children:e})=>React.createElement("div",{className:"yst-overflow-auto"},React.createElement(o.Table,{variant:"minimal"},e));x.Head=({children:e})=>React.createElement(o.Table.Head,null,React.createElement(o.Table.Row,null,React.createElement(o.Table.Header,{className:"yst-px-0 yst-w-5"},""),e)),x.Row=({children:e,index:t})=>React.createElement(o.Table.Row,null,React.createElement(o.Table.Cell,{className:"yst-px-0 yst-text-slate-500"},t+1,". "),e),x.Cell=o.Table.Cell,x.Header=o.Table.Header,x.Body=o.Table.Body;const C=window.yoast.reduxJsToolkit,P=window.lodash,T=(0,C.createSlice)({name:"data",initialState:{data:void 0,error:void 0,isPending:!0},reducers:{setData(e,t){e.data=t.payload,e.error=void 0,e.isPending=!1},setError(e,t){e.error=t.payload,e.isPending=!1},setIsPending(e,t){e.isPending=Boolean(t.payload)}}}),L=(t,a=P.identity)=>{const[r,s]=(0,e.useReducer)(T.reducer,{},T.getInitialState),o=(0,e.useRef)();return(0,e.useEffect)((()=>{var e,r;return null===(e=o.current)||void 0===e||e.abort(),o.current=new AbortController,s(T.actions.setIsPending(!0)),t({signal:null===(r=o.current)||void 0===r?void 0:r.signal}).then((e=>s(T.actions.setData(a(e))))).catch((e=>{"AbortError"!==(null==e?void 0:e.name)&&s(T.actions.setError(e))})),()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.abort()}}),[t]),r},F=({isIndexablesEnabled:e,isSeoAnalysisEnabled:t})=>{if(e&&t)return React.createElement(React.Fragment,null,"Yoast",React.createElement("br",null),(0,s.__)("SEO score","wordpress-seo"));let a;return e?t||(a=(0,s.__)("We can’t provide SEO scores, because the SEO analysis is disabled for your site.","wordpress-seo")):a=(0,s.__)("We can’t analyze your content, because you’re in a non-production environment.","wordpress-seo"),React.createElement(o.TooltipContainer,{className:"yst-inline-block"},React.createElement(o.TooltipTrigger,{ariaDescribedby:"yst-disabled-score-header-tooltip",className:"yst-cursor-help yst-underline yst-decoration-dotted yst-underline-offset-4"},"Yoast",React.createElement("br",null),(0,s.__)("SEO score","wordpress-seo")),React.createElement(o.TooltipWithContext,{position:"bottom",id:"yst-disabled-score-header-tooltip",className:"yst-w-52"},a))},D=({index:e})=>React.createElement(x.Row,{index:e},React.createElement(x.Cell,null,React.createElement(o.SkeletonLoader,null,"https://example.com/page")),React.createElement(x.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"10")),React.createElement(x.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"100")),React.createElement(x.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"0.12")),React.createElement(x.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"12.34")),React.createElement(x.Cell,null,React.createElement("div",{className:"yst-flex yst-justify-center"},React.createElement(o.SkeletonLoader,{className:"yst-shrink-0 yst-w-3 yst-aspect-square yst-rounded-full"}))),React.createElement(x.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"Edit"))),j=({data:e,children:a,isIndexablesEnabled:r=!0,isSeoAnalysisEnabled:n=!0})=>React.createElement(x,null,React.createElement(x.Head,null,React.createElement(x.Header,null,(0,s.__)("Landing page","wordpress-seo")),React.createElement(x.Header,{className:"yst-text-end"},(0,s.__)("Clicks","wordpress-seo")),React.createElement(x.Header,{className:"yst-text-end"},(0,s.__)("Impressions","wordpress-seo")),React.createElement(x.Header,{className:"yst-text-end"},(0,s.__)("CTR","wordpress-seo")),React.createElement(x.Header,{className:"yst-text-end"},(0,s.__)("Average position","wordpress-seo")),React.createElement(x.Header,{className:"yst-text-center"},React.createElement(F,{isIndexablesEnabled:r,isSeoAnalysisEnabled:n})),React.createElement(x.Header,{className:"yst-text-end"},(0,s.__)("Actions","wordpress-seo"))),React.createElement(x.Body,null,a||e.map((({subject:e,clicks:a,impressions:l,ctr:i,position:c,seoScore:d,links:m},u)=>React.createElement(x.Row,{key:`most-popular-content-${u}`,index:u},React.createElement(x.Cell,{className:"yst-text-slate-900 yst-font-medium"},e),React.createElement(x.Cell,{className:"yst-text-end"},a),React.createElement(x.Cell,{className:"yst-text-end"},l),React.createElement(x.Cell,{className:"yst-text-end"},i),React.createElement(x.Cell,{className:"yst-text-end"},c),React.createElement(x.Cell,null,React.createElement("div",{className:"yst-flex yst-justify-center"},React.createElement(N,{id:`yst-top-pages-widget__seo-score-${u}`,score:d,isIndexablesEnabled:r,isSeoAnalysisEnabled:n,isEditable:null==m?void 0:m.edit}))),React.createElement(x.Cell,{className:"yst-text-end"},React.createElement(o.Button,{variant:"tertiary",size:"small",as:"a",href:null==m?void 0:m.edit,className:"yst-px-0 yst-me-1",disabled:!(null!=m&&m.edit),"aria-disabled":!(null!=m&&m.edit),role:"link"},React.createElement(t,{className:"yst-w-4 yst-h-4 yst-me-1.5"}),(0,s.__)("Edit","wordpress-seo")))))))),W=({dataProvider:t,remoteDataProvider:a,dataFormatter:r,limit:s})=>{const{data:o,isPending:n,error:l}=(({dataProvider:t,remoteDataProvider:a,dataFormatter:r,limit:s=5})=>{const o=(0,e.useCallback)((e=>a.fetchJson(t.getEndpoint("timeBasedSeoMetrics"),{limit:s.toString(10),options:{widget:"page"}},e)),[t,s]),n=(0,e.useMemo)((()=>(e=>(t=[])=>t.map((t=>({subject:e.format(t.subject,"subject",{widget:"topPages"}),clicks:e.format(t.clicks,"clicks",{widget:"topPages"}),impressions:e.format(t.impressions,"impressions",{widget:"topPages"}),ctr:e.format(t.ctr,"ctr",{widget:"topPages"}),position:e.format(t.position,"position",{widget:"topPages"}),seoScore:e.format(t.seoScore,"seoScore",{widget:"topPages"}),links:e.format(t.links,"links",{widget:"topPages"})}))))(r)),[r]);return L(o,n)})({dataProvider:t,remoteDataProvider:a,dataFormatter:r,limit:s});return n?React.createElement(j,null,Array.from({length:s},((e,t)=>React.createElement(D,{key:`top-pages-table--row__${t}`,index:t})))):l?React.createElement(d,{error:l,supportLink:t.getLink("errorSupport"),className:"yst-mt-4"}):0===o.length?React.createElement(m,null):React.createElement(j,{data:o,isIndexablesEnabled:t.hasFeature("indexables"),isSeoAnalysisEnabled:t.hasFeature("seoAnalysis")})},M=({dataProvider:e,remoteDataProvider:t,dataFormatter:a,limit:r=5})=>React.createElement(E,{className:"yst-paper__content yst-col-span-4",title:(0,s.__)("Top 5 most popular content","wordpress-seo"),tooltip:(0,s.__)("The top 5 URLs on your website with the highest number of clicks over the last 28 days.","wordpress-seo"),dataSources:[{source:"Site Kit by Google",feature:(0,s.__)("Clicks, Impressions, CTR, Position","wordpress-seo")},{source:"Yoast SEO",feature:(0,s.sprintf)(/* translators: 1: Yoast SEO. */ -(0,s.__)("%1$s score","wordpress-seo"),"Yoast SEO")}],errorSupportLink:e.getLink("errorSupport")},React.createElement(W,{dataProvider:e,remoteDataProvider:t,dataFormatter:a,limit:r})),O=({index:e})=>React.createElement(x.Row,{index:e},React.createElement(x.Cell,null,React.createElement(o.SkeletonLoader,null,"focus keyphrase")),React.createElement(x.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"10")),React.createElement(x.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"100")),React.createElement(x.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"0.12")),React.createElement(x.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"12.34"))),A=({data:e,children:t})=>React.createElement(x,null,React.createElement(x.Head,null,React.createElement(x.Header,null,(0,s.__)("Query","wordpress-seo")),React.createElement(x.Header,{className:"yst-text-end"},(0,s.__)("Clicks","wordpress-seo")),React.createElement(x.Header,{className:"yst-text-end"},(0,s.__)("Impressions","wordpress-seo")),React.createElement(x.Header,{className:"yst-text-end"},(0,s.__)("CTR","wordpress-seo")),React.createElement(x.Header,null,React.createElement("div",{className:"yst-flex yst-justify-end"},React.createElement("div",{className:"yst-w-min yst-text-end"},(0,s.__)("Average position","wordpress-seo"))))),React.createElement(x.Body,null,t||e.map((({subject:e,clicks:t,impressions:a,ctr:r,position:s},o)=>React.createElement(x.Row,{key:`most-popular-content-${o}`,index:o},React.createElement(x.Cell,{className:"yst-text-slate-900 yst-font-medium"},e),React.createElement(x.Cell,{className:"yst-text-end"},t),React.createElement(x.Cell,{className:"yst-text-end"},a),React.createElement(x.Cell,{className:"yst-text-end"},r),React.createElement(x.Cell,{className:"yst-text-end"},s)))))),I=({dataProvider:t,remoteDataProvider:a,dataFormatter:r,limit:s=5})=>{const{data:o,error:n,isPending:l}=(({dataProvider:t,remoteDataProvider:a,dataFormatter:r,limit:s})=>{const o=(0,e.useCallback)((e=>a.fetchJson(t.getEndpoint("timeBasedSeoMetrics"),{limit:s.toString(10),options:{widget:"query"}},e)),[t,s]),n=(0,e.useMemo)((()=>(e=>(t=[])=>t.map((t=>({subject:e.format(t.subject,"subject",{widget:"topQueries"}),clicks:e.format(t.clicks,"clicks",{widget:"topQueries"}),impressions:e.format(t.impressions,"impressions",{widget:"topQueries"}),ctr:e.format(t.ctr,"ctr",{widget:"topQueries"}),position:e.format(t.position,"position",{widget:"topQueries"})}))))(r)),[r]);return L(o,n)})({dataProvider:t,remoteDataProvider:a,dataFormatter:r,limit:s});return l?React.createElement(A,null,Array.from({length:s},((e,t)=>React.createElement(O,{key:`top-queries-table--row__${t}`,index:t})))):n?React.createElement(d,{error:n,supportLink:t.getLink("errorSupport"),className:"yst-mt-4"}):0===o.length?React.createElement(m,null):React.createElement(A,{data:o})},z=({dataProvider:e,remoteDataProvider:t,dataFormatter:a,limit:r=5})=>React.createElement(E,{className:"yst-paper__content yst-col-span-4",title:(0,s.__)("Top 5 search queries","wordpress-seo"),tooltip:(0,s.__)("The top 5 search queries on your website with the highest number of clicks over the last 28 days.","wordpress-seo"),dataSources:[{source:"Site Kit by Google"}],errorSupportLink:e.getLink("errorSupport")},React.createElement(I,{dataProvider:e,remoteDataProvider:t,dataFormatter:a,limit:r})),G=({value:e,formattedValue:t,moreIsGood:a})=>{if(!e)return null;const r=e>=0,s=a?"yst-text-green-600":"yst-text-red-600",o=a?"yst-text-red-600":"yst-text-green-600";return React.createElement("div",{className:i()("yst-flex yst-items-center yst-font-semibold",r?s:o)},[r?"+":"",t].join(""))},H=({className:e,children:t})=>React.createElement("div",{className:i()("yst-flex yst-gap-4 yst-justify-center yst-bg-white","yst-col-span-4 @lg:yst-col-span-2 @3xl:yst-col-span-1","yst-ps-0 yst-pe-0 yst-pt-4 yst-pb-4 first:yst-pt-0 last:yst-pb-0","@lg:yst-ps-0 @lg:yst-pe-0 @lg:yst-pt-0 @lg:yst-pb-0","@3xl:yst-ps-4 @3xl:yst-pe-4 @3xl:yst-pt-0 @3xl:yst-pb-0 @3xl:first:yst-ps-0 @3xl:last:yst-pe-0",e)},t),$=({children:e})=>React.createElement("div",{className:"yst-flex yst-flex-col yst-items-center yst-min-w-28 @3xl:yst-min-w-0"},e),B=({className:e,tooltipLocalizedContent:t,dataSources:a})=>React.createElement(H,{className:e},React.createElement("div",{className:"yst-w-5"}),React.createElement($,null,React.createElement(o.SkeletonLoader,{className:"yst-text-center yst-text-2xl yst-font-bold yst-text-slate-900"},"12345"),React.createElement(o.SkeletonLoader,{className:"yst-text-center yst-text-sm yst-mt-2"},"Dummy"),React.createElement(o.SkeletonLoader,{className:"yst-text-center yst-text-sm yst-mt-2 yst-font-semibold"},"- 13%")),React.createElement("div",{className:"yst-mt-2"},React.createElement(h,{content:t},React.createElement(f,{dataSources:a})))),Q=({className:e,metricName:t,data:a,dataSources:r,tooltipLocalizedContent:s,moreIsGood:o})=>React.createElement(H,{className:e},React.createElement("div",{className:"yst-w-5"}),React.createElement($,null,React.createElement("div",{className:"yst-text-center yst-text-2xl yst-font-bold yst-text-slate-900"},a.formattedValue),React.createElement("div",{className:"yst-text-center"},t),React.createElement("div",{className:"yst-text-center yst-mt-2"},React.createElement(G,{value:a.delta,formattedValue:a.formattedDelta,moreIsGood:o}))),React.createElement("div",{className:"yst-mt-2"},React.createElement(h,{content:s},React.createElement(f,{dataSources:r})))),V=e=>!e&&0!==e,J=(e,t)=>V(e)||V(t)?NaN:e===t?0:0===t?1:(e-t)/t,q={impressions:{name:(0,s._x)("Impressions","The number of times your website appeared in the Google search results","wordpress-seo"),tooltip:(0,s.__)("The number of times your website appeared in the Google search results over the last 28 days.","wordpress-seo"),dataSources:[{source:(0,s.__)("Site Kit by Google","wordpress-seo")}]},clicks:{name:(0,s._x)("Clicks","The number of times users clicked on your website's link in the Google search results","wordpress-seo"),tooltip:(0,s.__)("The number of times users clicked on your website's link in the Google search results over the last 28 days.","wordpress-seo"),dataSources:[{source:(0,s.__)("Site Kit by Google","wordpress-seo")}]},ctr:{name:(0,s._x)("Average CTR","Click-through-rate for your website in the Google search results","wordpress-seo"),tooltip:(0,s.__)("The average click-through-rate for your website in the Google search results over the last 28 days.","wordpress-seo"),dataSources:[{source:(0,s.__)("Site Kit by Google","wordpress-seo")}]},position:{name:(0,s._x)("Average position","Average position of your website in the Google search results","wordpress-seo"),tooltip:(0,s.__)("The average position of your website in the Google search results over the last 28 days.","wordpress-seo"),dataSources:[{source:(0,s.__)("Site Kit by Google","wordpress-seo")}]}},U=({children:e})=>React.createElement("div",{className:"yst-grid yst-grid-cols-4 yst-gap-px yst-bg-slate-200"},e),K=()=>React.createElement(U,null,React.createElement(B,{className:"@lg:yst-pe-4 @lg:yst-pb-4",tooltipLocalizedContent:q.impressions.tooltip,dataSources:q.impressions.dataSources}),React.createElement(B,{className:"@lg:yst-ps-4 @lg:yst-pb-4",tooltipLocalizedContent:q.clicks.tooltip,dataSources:q.clicks.dataSources}),React.createElement(B,{className:"@lg:yst-pe-4 @lg:yst-pt-4",tooltipLocalizedContent:q.ctr.tooltip,dataSources:q.ctr.dataSources}),React.createElement(B,{className:"@lg:yst-ps-4 @lg:yst-pt-4",tooltipLocalizedContent:q.position.tooltip,dataSources:q.position.dataSources})),Y=({dataProvider:t,remoteDataProvider:a,dataFormatter:r,setShowTitle:s})=>{const{data:o,error:n,isPending:l}=(({dataProvider:t,remoteDataProvider:a,dataFormatter:r})=>{const s=(0,e.useCallback)((e=>a.fetchJson(t.getEndpoint("timeBasedSeoMetrics"),{options:{widget:"searchRankingCompare"}},e)),[t]),o=(0,e.useMemo)((()=>e=>(e=>t=>null===t?null:{impressions:e.format(t.impressions,"impressions"),clicks:e.format(t.clicks,"clicks"),ctr:e.format(t.ctr,"ctr"),position:e.format(t.position,"position")})(r)((e=>{if(0===e.length)return null;const t={impressions:{value:e[0].current.total_impressions,delta:J(e[0].current.total_impressions,e[0].previous.total_impressions)},clicks:{value:e[0].current.total_clicks,delta:J(e[0].current.total_clicks,e[0].previous.total_clicks)},ctr:null,position:null};return e[0].current.average_ctr&&(t.ctr={value:e[0].current.average_ctr,delta:J(e[0].current.average_ctr,e[0].previous.average_ctr)}),e[0].current.average_position&&(t.position={value:e[0].current.average_position,delta:e[0].current.average_position-e[0].previous.average_position}),t})(e))),[r]);return L(s,o)})({dataProvider:t,remoteDataProvider:a,dataFormatter:r});return(0,e.useEffect)((()=>{s(!l&&(n||null===o))}),[o,n,l,s]),l?React.createElement(K,null):n?React.createElement(d,{error:n,supportLink:t.getLink("errorSupport"),className:"yst-mt-4"}):null===o?React.createElement(m,null):React.createElement(U,null,React.createElement(Q,{className:"@lg:yst-pe-4 @lg:yst-pb-4",metricName:q.impressions.name,data:o.impressions,tooltipLocalizedContent:q.impressions.tooltip,dataSources:q.impressions.dataSources,moreIsGood:!0}),React.createElement(Q,{className:"@lg:yst-ps-4 @lg:yst-pb-4",metricName:q.clicks.name,data:o.clicks,tooltipLocalizedContent:q.clicks.tooltip,dataSources:q.clicks.dataSources,moreIsGood:!0}),React.createElement(Q,{className:"@lg:yst-pe-4 @lg:yst-pt-4",metricName:q.ctr.name,data:o.ctr,tooltipLocalizedContent:q.ctr.tooltip,dataSources:q.ctr.dataSources,moreIsGood:!0}),React.createElement(Q,{className:"@lg:yst-ps-4 @lg:yst-pt-4",metricName:q.position.name,data:o.position,tooltipLocalizedContent:q.position.tooltip,dataSources:q.position.dataSources,moreIsGood:!1}))},X=({dataProvider:t,remoteDataProvider:a,dataFormatter:r})=>{const[n,l]=(0,e.useState)(!1),[i,,,c]=(0,o.useToggleState)(!1);return React.createElement(E,{className:"yst-paper__content yst-col-span-4",title:(n||i)&&(0,s.__)("Impressions, Clicks, Site CTR, Average position","wordpress-seo")},React.createElement(v,{supportLink:t.getLink("errorSupport"),onError:c},React.createElement(Y,{dataProvider:t,remoteDataProvider:a,dataFormatter:r,setShowTitle:l})))},Z=({children:e})=>React.createElement("div",{className:"yst-flex yst-flex-col yst-gap-1"},React.createElement("div",{className:"yst-flex yst-gap-3"},e),React.createElement("span",null,(0,s.__)("Last 28 days","wordpress-seo"))),ee=({data:e,isPending:t,error:a,supportLink:r})=>t?React.createElement(Z,null,React.createElement(o.SkeletonLoader,{className:"yst-title yst-title--1"},"10_000"),React.createElement(o.SkeletonLoader,null,"^ +100%")):a?React.createElement(d,{error:a,supportLink:r}):React.createElement(Z,null,React.createElement(o.Title,{as:"h2",size:"1",className:"yst-font-bold"},e.sessions),React.createElement(G,{value:e.difference,formattedValue:e.formattedDifference,moreIsGood:!0})),te=window.yoast["chart.js"],ae="label";function re(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function se(e,t){e.labels=t}function oe(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ae;const r=[];e.datasets=t.map((t=>{const s=e.datasets.find((e=>e[a]===t[a]));return s&&t.data&&!r.includes(s)?(r.push(s),Object.assign(s,t),s):{...t}}))}function ne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ae;const a={labels:[],datasets:[]};return se(a,e.labels),oe(a,e.datasets,t),a}function le(t,a){const{height:r=150,width:s=300,redraw:o=!1,datasetIdKey:n,type:l,data:i,options:c,plugins:d=[],fallbackContent:m,updateMode:u,...p}=t,y=(0,e.useRef)(null),g=(0,e.useRef)(),h=()=>{y.current&&(g.current=new te.Chart(y.current,{type:l,data:ne(i,n),options:c&&{...c},plugins:d}),re(a,g.current))},f=()=>{re(a,null),g.current&&(g.current.destroy(),g.current=null)};return(0,e.useEffect)((()=>{!o&&g.current&&c&&function(e,t){const a=e.options;a&&t&&Object.assign(a,t)}(g.current,c)}),[o,c]),(0,e.useEffect)((()=>{!o&&g.current&&se(g.current.config.data,i.labels)}),[o,i.labels]),(0,e.useEffect)((()=>{!o&&g.current&&i.datasets&&oe(g.current.config.data,i.datasets,n)}),[o,i.datasets]),(0,e.useEffect)((()=>{g.current&&(o?(f(),setTimeout(h)):g.current.update(u))}),[o,c,i.labels,i.datasets,u]),(0,e.useEffect)((()=>{g.current&&(f(),setTimeout(h))}),[l]),(0,e.useEffect)((()=>(h(),()=>f())),[]),e.createElement("canvas",Object.assign({ref:y,role:"img",height:r,width:s},p),m)}const ie=(0,e.forwardRef)(le);function ce(t,a){return te.Chart.register(a),(0,e.forwardRef)(((a,r)=>e.createElement(ie,Object.assign({},a,{ref:r,type:t}))))}const de=ce("line",te.LineController),me=ce("doughnut",te.DoughnutController);var ue,pe;te.Chart.register(te.Filler,te.CategoryScale,te.LinearScale,te.LineElement,te.PointElement,te.Tooltip);const ye="rgba(166, 30, 105, 1)",ge="transparent",he=null===(ue=document.createElement("canvas"))||void 0===ue||null===(pe=ue.getContext("2d"))||void 0===pe?void 0:pe.createLinearGradient(0,0,0,225);null==he||he.addColorStop(0,"rgba(166, 30, 105, 0.2)"),null==he||he.addColorStop(1,"rgba(166, 30, 105, 0)");const fe={parsing:{xAxisKey:"date",yAxisKey:"sessions"},elements:{point:{radius:5,borderWidth:2,borderColor:"white",backgroundColor:ye},line:{tension:.3,borderWidth:3,borderColor:ye,backgroundColor:he||ge}},layout:{padding:{left:-20}},scales:{x:{grid:{color:"oklch(0.869 0.022 252.894)",drawTicks:!1},ticks:{font:{size:12,weight:400},padding:12,maxRotation:0,maxTicksLimit:14}},y:{grid:{color:e=>e.tick.value%1?ge:"oklch(0.929 0.013 255.508)",drawTicks:!1},ticks:{color:"oklch(0.554 0.046 257.417)",font:{size:14,weight:400},padding:20,callback:function(e){return e%1?"":this.getLabelForValue(e)}}}},responsive:!0,maintainAspectRatio:!1,plugins:{legend:!1,tooltip:{displayColors:!1,callbacks:{title:()=>"",label:e=>`${e.label}: ${null==e?void 0:e.formattedValue}`}}}},ve=({data:e})=>React.createElement(React.Fragment,null,React.createElement("div",{className:"yst-w-full yst-h-60"},React.createElement(de,{"aria-hidden":!0,options:fe,data:e})),React.createElement("table",{className:"yst-sr-only yst-table-fixed"},React.createElement("caption",null,(0,s.__)("Organic sessions chart","wordpress-seo")),React.createElement("thead",null,React.createElement("tr",null,e.labels.map((e=>React.createElement("th",{key:e},e))))),React.createElement("tbody",null,React.createElement("tr",null,e.datasets[0].data.map((({date:e,sessions:t})=>React.createElement("td",{key:e},String(t)))))))),Ee=({data:e,isPending:t,error:a,supportLink:r})=>t?React.createElement(o.SkeletonLoader,{className:"yst-w-full yst-h-52 yst-mt-8"}):a?React.createElement(d,{className:"yst-mt-4",error:a,supportLink:r}):React.createElement(ve,{data:e}),Re=({dataProvider:t,remoteDataProvider:a,dataFormatter:r})=>{var s;const o=t.getLink("errorSupport"),n=((t,a,r)=>{const s=(0,e.useCallback)((e=>a.fetchJson(t.getEndpoint("timeBasedSeoMetrics"),{options:{widget:"organicSessionsDaily"}},e)),[t]),o=(0,e.useMemo)((()=>(e=[])=>{return t=(e=>(t=[])=>t.map((t=>({date:e.format(t.date,"date",{widget:"organicSessions"}),sessions:Number(t.sessions)}))))(r)(e),{labels:t.map((({date:e})=>e)),datasets:[{fill:"origin",data:t}]};var t}),[r]);return L(s,o)})(t,a,r),l=((t,a,r)=>{const s=(0,e.useCallback)((e=>a.fetchJson(t.getEndpoint("timeBasedSeoMetrics"),{options:{widget:"organicSessionsCompare"}},e)),[t]),o=(0,e.useMemo)((()=>(e=>([t])=>{var a,r;const s=(null==t||null===(a=t.current)||void 0===a?void 0:a.sessions)||NaN,o=J(s,(null==t||null===(r=t.previous)||void 0===r?void 0:r.sessions)||NaN);return{sessions:e.format(s,"sessions",{widget:"organicSessions"}),difference:o,formattedDifference:e.format(o,"difference",{widget:"organicSessions"})}})(r)),[r]);return L(s,o)})(t,a,r);return l.error&&n.error&&(0,P.isEqual)(l.error,n.error)?React.createElement(d,{className:"yst-mt-4",error:l.error,supportLink:o}):0===(null===(s=n.data)||void 0===s?void 0:s.labels.length)?React.createElement(m,null):React.createElement(React.Fragment,null,React.createElement("div",{className:"yst-flex yst-justify-between yst-mt-4"},React.createElement(ee,{data:l.data,error:l.error,isPending:l.isPending,supportLink:o})),React.createElement(Ee,{data:n.data,error:n.error,isPending:n.isPending,supportLink:o}))},be=({dataProvider:e,remoteDataProvider:t,dataFormatter:a})=>React.createElement(E,{className:"yst-paper__content yst-col-span-4",title:(0,s.__)("Organic sessions","wordpress-seo"),tooltip:(0,s.__)("The number of organic sessions that began on your website.","wordpress-seo"),dataSources:[{source:"Site Kit by Google"}],errorSupportLink:e.getLink("errorSupport")},React.createElement(Re,{dataProvider:e,remoteDataProvider:t,dataFormatter:a})),we=new RegExp("�?39;","g");function ke(e){return(0,P.replace)((0,P.unescape)(e),we,"'")}const Se=({idSuffix:t,contentTypes:a,selected:r,onChange:n})=>{const[l,i]=(0,e.useState)((()=>a)),c=(0,e.useCallback)((e=>{n(a.find((({name:t})=>t===e)))}),[a]),d=(0,e.useCallback)((e=>{const t=e.target.value.trim().toLowerCase();i(t?a.filter((({name:e,label:a})=>a.toLowerCase().includes(t)||e.toLowerCase().includes(t))):a)}),[a]);return React.createElement(o.AutocompleteField,{id:`content-type--${t}`,label:(0,s.__)("Content type","wordpress-seo"),value:null==r?void 0:r.name,selectedLabel:ke(null==r?void 0:r.label)||"",onChange:c,onQueryChange:d},l.map((({name:e,label:t})=>{const a=ke(t);return React.createElement(o.AutocompleteField.Option,{key:e,value:e},a)})))},_e=({scores:e,descriptions:t})=>{const a=(0,P.maxBy)(e,"amount");return React.createElement("p",{className:"yst-max-w-2xl"},t[null==a?void 0:a.name]||"")};te.Chart.register(te.ArcElement,te.Tooltip);const Ne=e=>({labels:e.map((({name:e})=>R[e].label)),datasets:[{cutout:"82%",data:e.map((({amount:e})=>e)),backgroundColor:e.map((({name:e})=>R[e].hex)),borderWidth:0,offset:0,hoverOffset:5,spacing:1,weight:1,animation:{animateRotate:!0}}]}),xe={plugins:{legend:!1,tooltip:{displayColors:!1,callbacks:{title:()=>"",label:e=>`${e.label}: ${null==e?void 0:e.formattedValue}`}}},layout:{padding:5}},Ce=({className:e})=>React.createElement("div",{className:i()(e,"yst-relative")},React.createElement(o.SkeletonLoader,{className:"yst-w-full yst-aspect-square yst-rounded-full"}),React.createElement("div",{className:"yst-absolute yst-inset-5 yst-aspect-square yst-bg-white yst-rounded-full"})),Pe=({className:e,scores:t})=>React.createElement("div",{className:e},React.createElement(me,{options:xe,data:Ne(t)})),Te="yst-flex yst-items-center yst-py-3 first:yst-pt-0 last:yst-pb-0 yst-border-b last:yst-border-b-0",Le="yst-shrink-0 yst-w-3 yst-aspect-square yst-rounded-full",Fe="yst-ms-3 yst-me-2",De=({className:e})=>React.createElement("ul",{className:e},Object.entries(R).map((([e,{label:t}])=>React.createElement("li",{key:`skeleton-loader--${e}`,className:Te},React.createElement(o.SkeletonLoader,{className:Le}),React.createElement(o.SkeletonLoader,{className:Fe},t),React.createElement(o.SkeletonLoader,{className:"yst-w-7 yst-me-3"},"1"),React.createElement(o.SkeletonLoader,{className:"yst-ms-auto yst-button yst-button--small"},(0,s.__)("View","wordpress-seo")))))),je=({score:e})=>React.createElement(React.Fragment,null,React.createElement("span",{className:i()(Le,R[e.name].color)}),React.createElement(o.Label,{as:"span",className:i()(Fe,"yst-leading-4 yst-py-1.5")},R[e.name].label),React.createElement(o.Badge,{variant:"plain",className:i()(e.links.view&&"yst-me-3")},e.amount)),We=({score:e,idSuffix:t,tooltip:a})=>{const r=`tooltip--${t}__${e.name}`;return React.createElement(o.TooltipContainer,null,React.createElement(o.TooltipTrigger,{className:"yst-flex yst-items-center",ariaDescribedby:r},React.createElement(je,{score:e})),React.createElement(o.TooltipWithContext,{id:r,className:"max-[784px]:yst-max-w-full"},a))},Me=({score:e,idSuffix:t,tooltips:a})=>{const r=a[e.name]?We:je;return React.createElement("li",{className:Te},React.createElement(r,{score:e,idSuffix:t,tooltip:a[e.name]}),e.links.view&&React.createElement(o.Button,{as:"a",variant:"secondary",size:"small",href:e.links.view,className:"yst-ms-auto"},(0,s.__)("View","wordpress-seo")))},Oe=({className:e,scores:t,idSuffix:a,tooltips:r})=>React.createElement("ul",{className:e},t.map((e=>React.createElement(Me,{key:e.name,score:e,idSuffix:a,tooltips:r})))),Ae="yst-flex yst-flex-col @md:yst-flex-row yst-gap-12 yst-mt-6",Ie="yst-grow",ze="yst-w-[calc(11.5rem+3px)] yst-aspect-square",Ge=()=>React.createElement(React.Fragment,null,React.createElement(o.SkeletonLoader,{className:"yst-w-full"}," "),React.createElement("div",{className:Ae},React.createElement(De,{className:Ie}),React.createElement(Ce,{className:ze}))),He=({scores:e=[],isLoading:t,descriptions:a,tooltips:r,idSuffix:s})=>t?React.createElement(Ge,null):React.createElement(React.Fragment,null,React.createElement(_e,{scores:e,descriptions:a}),React.createElement("div",{className:Ae},e&&React.createElement(Oe,{className:Ie,scores:e,idSuffix:s,tooltips:r}),e&&React.createElement(Pe,{className:ze,scores:e}))),$e=async(e,t)=>{try{const a=await fetch(e,t);if(!a.ok){const e=new Error(a.statusText);throw e.status=a.status,e}return a.json()}catch(e){return Promise.reject(e)}},Be=({dependencies:t,url:a,options:r,prepareData:s=P.identity,doFetch:o=$e,fetchDelay:n=200})=>{const[l,i]=(0,e.useState)(!0),[c,d]=(0,e.useState)(),[m,u]=(0,e.useState)(),p=(0,e.useRef)(),y=(0,e.useCallback)((0,P.debounce)(((...e)=>{o(...e).then((e=>{u(s(e)),d(void 0)})).catch((e=>{"AbortError"!==(null==e?void 0:e.name)&&d(e)})).finally((()=>{i(!1)}))}),n),[]);return(0,e.useEffect)((()=>{var e;return i(!0),null===(e=p.current)||void 0===e||e.abort(),p.current=new AbortController,y(a,{signal:p.current.signal,...r}),()=>{var e;return null===(e=p.current)||void 0===e?void 0:e.abort()}}),t),{data:m,error:c,isPending:l}},Qe=(e,t)=>{const a=new URL(e);return a.searchParams.set("search",t),a.searchParams.set("_fields",["id","name"]),a},Ve=e=>({name:String(e.id),label:(0,P.unescape)(e.name)}),Je=({terms:e})=>0===e.length?React.createElement("div",{className:"yst-autocomplete__option"},(0,s.__)("Nothing found","wordpress-seo")):e.map((({name:e,label:t})=>React.createElement(o.AutocompleteField.Option,{key:e,value:e},t))),qe=({idSuffix:t,taxonomy:a,selected:r,onChange:n})=>{const[l,i]=(0,e.useState)(""),{data:c=[],error:d,isPending:m}=Be({dependencies:[a.links.search,l],url:Qe(a.links.search,l),options:{headers:{"Content-Type":"application/json"}},prepareData:e=>e.map(Ve)}),u=(0,e.useCallback)((e=>{null===e&&i(""),n(c.find((({name:t})=>t===e)))}),[c]),p=(0,e.useCallback)((e=>{var t,a,r;i((null==e||null===(t=e.target)||void 0===t||null===(a=t.value)||void 0===a||null===(r=a.trim())||void 0===r?void 0:r.toLowerCase())||"")}),[]);return React.createElement(o.AutocompleteField,{id:`term--${t}`,label:a.label,value:(null==r?void 0:r.name)||"",selectedLabel:(null==r?void 0:r.label)||l,onChange:u,onQueryChange:p,placeholder:(0,s.__)("All","wordpress-seo"),nullable:!0,clearButtonScreenReaderText:(0,s.__)("Clear filter","wordpress-seo"),validation:d&&{variant:"error",message:(0,s.__)("Something went wrong.","wordpress-seo")}},m&&React.createElement("div",{className:"yst-autocomplete__option"},React.createElement(o.Spinner,null)),!m&&React.createElement(Je,{terms:c}))},Ue=e=>null==e?void 0:e.scores,Ke=({analysisType:t,contentTypes:a,dataProvider:r,remoteDataProvider:s})=>{var o,n;const[l,i]=(0,e.useState)(a[0]),[c,m]=(0,e.useState)(),u=(0,e.useCallback)((e=>s.fetchJson(r.getEndpoint(t+"Scores"),((e,t)=>{var a;const r={contentType:null==e?void 0:e.name};return null!=e&&null!==(a=e.taxonomy)&&void 0!==a&&a.name&&null!=t&&t.name&&(r.taxonomy=e.taxonomy.name,r.term=t.name),r})(l,c),e)),[r,t,l,c]),{data:p,error:y,isPending:g}=L(u,Ue);return(0,e.useEffect)((()=>{m(void 0)}),[null==l?void 0:l.name]),React.createElement(React.Fragment,null,React.createElement("div",{className:"yst-grid yst-grid-cols-1 @md:yst-grid-cols-2 yst-gap-6 yst-mt-4"},React.createElement(Se,{idSuffix:t,contentTypes:a,selected:l,onChange:i}),l.taxonomy&&(null===(o=l.taxonomy)||void 0===o||null===(n=o.links)||void 0===n?void 0:n.search)&&React.createElement(qe,{idSuffix:t,taxonomy:l.taxonomy,selected:c,onChange:m})),React.createElement("div",{className:"yst-mt-6"},React.createElement(d,{error:y,supportLink:r.getLink("errorSupport")}),!y&&React.createElement(He,{scores:p,isLoading:g,descriptions:b[t],tooltips:w[t],idSuffix:t})))},Ye=({analysisType:t,dataProvider:a,remoteDataProvider:r})=>{const[o,n]=(0,e.useState)((()=>a.getContentTypes()));return(0,e.useEffect)((()=>{n(a.getContentTypes())}),[a]),null!=o&&o.length?React.createElement(E,{className:"yst-paper__content yst-@container @3xl:yst-col-span-2 yst-col-span-4",title:"readability"===t?(0,s.__)("Readability scores","wordpress-seo"):(0,s.__)("SEO scores","wordpress-seo"),errorSupportLink:a.getLink("errorSupport")},React.createElement(Ke,{analysisType:t,contentTypes:o,dataProvider:a,remoteDataProvider:r})):null},Xe=({widgetFactory:e})=>React.createElement(React.Fragment,null,(0,P.values)(e.types).map((t=>e.createWidget(t))));function Ze(e){return Ze="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},Ze(e)}function et(e,t,a){return r=function(e,t){if("object"!=Ze(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,"string");if("object"!=Ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==Ze(r)?r:String(r))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e;var r}function tt(e,t,a){if(!t.has(e))throw new TypeError("attempted to "+a+" private field on non-instance");return t.get(e)}function at(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,tt(e,t,"get"))}function rt(e,t,a){return function(e,t,a){if(t.set)t.set.call(e,a);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=a}}(e,tt(e,t,"set"),a),a}function st(e,t,a){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,a)}var ot=new WeakMap,nt=new WeakMap;class lt{constructor({locale:e="en-US"}={}){if(st(this,ot,{writable:!0,value:void 0}),st(this,nt,{writable:!0,value:{}}),new.target===lt)throw new Error("DataFormatterInterface cannot be instantiated directly.");rt(this,ot,e),at(this,nt).nonFractional=new Intl.NumberFormat(e,{maximumFractionDigits:0}),at(this,nt).compactNonFractional=new Intl.NumberFormat(e,{maximumFractionDigits:0,notation:"compact",compactDisplay:"short"}),at(this,nt).percentage=new Intl.NumberFormat(e,{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}),at(this,nt).twoFractions=new Intl.NumberFormat(e,{maximumFractionDigits:2,minimumFractionDigits:2})}get numberFormat(){return at(this,nt)}get locale(){return at(this,ot)}format(e,t,a={}){throw new Error("You must implement the format() method before using it.")}}et(lt,"safeUrl",(e=>{try{return new URL(e)}catch{return null}})),et(lt,"safeNumberFormat",((e,t)=>{try{return t.format(e)}catch{return e.toString(10)}}));class it extends lt{formatLandingPage(e){const t=lt.safeUrl(e);return null===t?e:decodeURI(t.pathname)}format(e,t,a={}){switch(t){case"subject":switch(a.widget){case"topPages":return this.formatLandingPage(e);case"topQueries":return String(e);default:return e}case"clicks":case"impressions":return lt.safeNumberFormat(e,this.numberFormat.nonFractional);case"ctr":return lt.safeNumberFormat(e,this.numberFormat.percentage);case"position":return lt.safeNumberFormat(e,this.numberFormat.twoFractions);case"seoScore":return Object.keys(R).includes(e)?e:"notAnalyzed";default:return e}}}class ct extends lt{format(e,t,a={}){switch(t){case"impressions":case"clicks":return{formattedValue:lt.safeNumberFormat(e.value,this.numberFormat.nonFractional),delta:e.delta,formattedDelta:lt.safeNumberFormat(e.delta,this.numberFormat.percentage)};case"ctr":return null===e?{formattedValue:"-",delta:null,formattedDelta:"-"}:{formattedValue:lt.safeNumberFormat(e.value,this.numberFormat.percentage),delta:e.delta,formattedDelta:lt.safeNumberFormat(e.delta,this.numberFormat.percentage)};case"position":return null===e?{formattedValue:"-",delta:null,formattedDelta:"-"}:{formattedValue:lt.safeNumberFormat(e.value,this.numberFormat.twoFractions),delta:e.delta,formattedDelta:lt.safeNumberFormat(e.delta,this.numberFormat.twoFractions)};case"date":return new Date(Date.UTC(e.slice(0,4),e.slice(4,6)-1,e.slice(6,8))).toLocaleDateString(this.locale,{month:"short",day:"numeric"});case"sessions":return lt.safeNumberFormat(e||0,this.numberFormat.nonFractional);case"difference":return lt.safeNumberFormat(e,this.numberFormat.percentage);default:return e}}}function dt(e,t,a){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,a)}var mt=new WeakMap,ut=new WeakMap;class pt{constructor(e,t=$e){dt(this,mt,{writable:!0,value:void 0}),dt(this,ut,{writable:!0,value:void 0}),rt(this,mt,e),rt(this,ut,t)}getOptions(){return at(this,mt)}getUrl(e,t){const a=new URL(e);return(0,P.forEach)(t,((e,t)=>{"object"==typeof e?(0,P.forEach)(e,((e,r)=>{a.searchParams.append(`${t}[${r}]`,e)})):a.searchParams.append(t,e)})),a}async fetchJson(e,t,a){return at(this,ut).call(this,this.getUrl(e,t),(0,P.defaultsDeep)(a,at(this,mt),{headers:{"Content-Type":"application/json"}}))}}let yt,gt=["sessionStorage","localStorage"];const ht=e=>{const t=a.g[e];if(!t)return!1;try{const e="__storage_test__";return t.setItem(e,e),t.removeItem(e),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==t.length}},ft=()=>{if(void 0!==yt)return yt;for(const e of gt)yt||ht(e)&&(yt=a.g[e]);return void 0===yt&&(yt=null),yt};function vt(e,t,a){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,a)}var Et=new WeakMap,Rt=new WeakMap,bt=new WeakMap;class wt extends pt{constructor(e,t,a,r){if(super(e),vt(this,Et,{writable:!0,value:void 0}),vt(this,Rt,{writable:!0,value:void 0}),vt(this,bt,{writable:!0,value:void 0}),rt(this,Et,t),rt(this,Rt,a),!Number.isInteger(r)||r<=0)throw new TypeError("The TTL provided must be a positive integer.");rt(this,bt,r)}async fetchJson(e,t,r){const s="yoastseo_"+at(this,Rt)+"_"+at(this,Et)+"_"+t.options.widget,{cacheHit:o,value:n}=(e=>{const t=ft();if(t){const a=t.getItem(e);if(a){const e=JSON.parse(a),{timestamp:t,ttl:r,value:s}=e;if(t&&(!r||Math.round(Date.now()/1e3)-t<r))return{cacheHit:!0,value:s}}}return{cacheHit:!1,value:void 0}})(s);if(o)return n;const l=await super.fetchJson(e,t,r);return((e,t,{ttl:r=3600,timestamp:s=Math.round(Date.now()/1e3)}={})=>{const o=ft();if(o)try{return o.setItem(e,JSON.stringify({timestamp:s,ttl:r,value:t})),!0}catch(e){return a.g.console.warn("Encountered an unexpected storage error:",e),!1}})(s,l,{ttl:at(this,bt)}),l}}function kt(e,t,a){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,a)}var St=new WeakMap,_t=new WeakMap,Nt=new WeakMap,xt=new WeakMap;class Ct{constructor({contentTypes:e,features:t,endpoints:a,links:r}){kt(this,St,{writable:!0,value:void 0}),kt(this,_t,{writable:!0,value:void 0}),kt(this,Nt,{writable:!0,value:void 0}),kt(this,xt,{writable:!0,value:void 0}),rt(this,St,e),rt(this,_t,t),rt(this,Nt,a),rt(this,xt,r)}getContentTypes(){return at(this,St)}hasFeature(e){var t;return!0===(null===(t=at(this,_t))||void 0===t?void 0:t[e])}getEndpoint(e){var t;return null===(t=at(this,Nt))||void 0===t?void 0:t[e]}getLink(e){var t;return null===(t=at(this,xt))||void 0===t?void 0:t[e]}}function Pt(e,t,a){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,a)}var Tt=new WeakMap,Lt=new WeakMap,Ft=new WeakMap,Dt=new WeakMap;class jt{constructor(e,t,a,r){Pt(this,Tt,{writable:!0,value:void 0}),Pt(this,Lt,{writable:!0,value:void 0}),Pt(this,Ft,{writable:!0,value:void 0}),Pt(this,Dt,{writable:!0,value:void 0}),rt(this,Tt,e),rt(this,Lt,t),rt(this,Ft,a),rt(this,Dt,r)}getRemoteDataProvider(e){var t;return null!==(t=at(this,Ft)[e])&&void 0!==t?t:at(this,Lt)}get types(){return{searchRankingCompare:"searchRankingCompare",organicSessions:"organicSessions",topPages:"topPages",topQueries:"topQueries",seoScores:"seoScores",readabilityScores:"readabilityScores"}}createWidget(e){switch(e){case this.types.seoScores:return at(this,Tt).hasFeature("indexables")&&at(this,Tt).hasFeature("seoAnalysis")?React.createElement(Ye,{key:e,analysisType:"seo",dataProvider:at(this,Tt),remoteDataProvider:this.getRemoteDataProvider(e)}):null;case this.types.readabilityScores:return at(this,Tt).hasFeature("indexables")&&at(this,Tt).hasFeature("readabilityAnalysis")?React.createElement(Ye,{key:e,analysisType:"readability",dataProvider:at(this,Tt),remoteDataProvider:this.getRemoteDataProvider(e)}):null;case this.types.topPages:return React.createElement(M,{key:e,dataProvider:at(this,Tt),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:at(this,Dt).plainMetricsDataFormatter});case this.types.topQueries:return React.createElement(z,{key:e,dataProvider:at(this,Tt),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:at(this,Dt).plainMetricsDataFormatter});case this.types.searchRankingCompare:return React.createElement(X,{key:e,dataProvider:at(this,Tt),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:at(this,Dt).comparisonMetricsDataFormatter});case this.types.organicSessions:return React.createElement(be,{key:e,dataProvider:at(this,Tt),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:at(this,Dt).comparisonMetricsDataFormatter});default:return null}}}})(),(window.yoast=window.yoast||{}).dashboardFrontend=r})(); \ No newline at end of file +(()=>{var e={20841:(e,t)=>{var a;!function(){"use strict";var s={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=n(e,o(a)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var a in e)s.call(e,a)&&e[a]&&(t=n(t,a));return t}function n(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(a=function(){return r}.apply(t,[]))||(e.exports=a)}()}},t={};function a(s){var r=t[s];if(void 0!==r)return r.exports;var o=t[s]={exports:{}};return e[s](o,o.exports,a),o.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var s in t)a.o(t,s)&&!a.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};(()=>{"use strict";a.r(s),a.d(s,{ComparisonMetricsDataFormatter:()=>yt,Dashboard:()=>st,DataFormatterInterface:()=>ut,DataProvider:()=>Dt,GetTasksErrorRow:()=>ga,OrganicSessionsWidget:()=>ve,PlainMetricsDataFormatter:()=>pt,RemoteCachedDataProvider:()=>St,RemoteDataProvider:()=>Et,ScoreWidget:()=>at,SearchRankingCompareWidget:()=>X,TASK_LIST_NAME:()=>ha,TaskModal:()=>aa,TaskRow:()=>ca,TasksProgressBar:()=>ua,TopPagesWidget:()=>A,TopQueriesWidget:()=>B,Widget:()=>w,WidgetDataSources:()=>f,WidgetErrorBoundary:()=>E,WidgetFactory:()=>It,WidgetTitle:()=>g,WidgetTooltip:()=>h,fetchJson:()=>Je,getInitialTaskListState:()=>wa,taskListActions:()=>va,taskListControls:()=>ba,taskListReducer:()=>ka,taskListSelectors:()=>Ra,useFetch:()=>Ue});const e=window.React,t=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}))})),r=window.wp.i18n,o=window.yoast.uiLibrary,n=window.wp.element;var l=a(20841),c=a.n(l);const i=(e,t)=>{try{return(0,n.createInterpolateElement)((0,r.sprintf)(e,"<link>","</link>"),{link:t})}catch(t){return(0,r.sprintf)(e,"","")}},m=({error:e,supportLink:t,className:a=""})=>{if(!e)return null;const s=React.createElement(o.Link,{variant:"error",href:t}," ");return React.createElement(o.Alert,{variant:"error",className:c()("yst-max-w-2xl",a)},((e,t)=>{switch(!0){case 408===e.status||"TimeoutError"===e.name:return i(/* translators: %1$s expands to an anchor start tag, %2$s to an anchor end tag. */ +(0,r.__)("The request timed out. Try refreshing the page. If the problem persists, please check our %1$sSupport page%2$s.","wordpress-seo"),t);case 403===e.status:return i(/* translators: %1$s expands to an anchor start tag, %2$s to an anchor end tag. */ +(0,r.__)("You don’t have permission to access this resource. Please contact your admin for access. In case you need further help, please check our %1$sSupport page%2$s.","wordpress-seo"),t);default:return i(/* translators: %1$s expands to an anchor start tag, %2$s to an anchor end tag. */ +(0,r.__)("Something went wrong. Try refreshing the page. If the problem persists, please check our %1$sSupport page%2$s.","wordpress-seo"),t)}})(e,s))},d=({className:e="yst-mt-4"})=>React.createElement("p",{className:e},(0,r.__)("No data to display: Your site hasn't received any visitors yet.","wordpress-seo"));function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},u.apply(this,arguments)}const p=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))})),y=({children:e})=>React.createElement(o.TooltipContainer,{as:"div",className:"yst-h-fit yst-leading-[0]"},React.createElement(o.TooltipTrigger,null,React.createElement(p,{className:"yst-w-5 yst-h-5 yst-text-slate-400"})),React.createElement(o.TooltipWithContext,{variant:"light",className:"yst-leading-normal yst-max-w-80 yst-p-4 yst-shadow-md",position:"left"},e)),g=({children:e,...t})=>React.createElement(o.Title,u({as:"h2"},t),e);g.displayName="Widget.Title";const h=({content:e,children:t})=>React.createElement(y,null,React.createElement("p",{className:"yst-mb-2 yst-text-slate-600"},e),t);h.displayName="Widget.Tooltip";const f=({dataSources:e})=>React.createElement("div",{className:"yst-border-t yst-mt-3 yst-border-slate-200 yst-italic yst-text-xxs"},React.createElement("div",{className:"yst-mt-3 yst-font-semibold yst-text-slate-800"},(0,r.__)("Data provided by:","wordpress-seo")),React.createElement("ul",null,e.map(((e,t)=>React.createElement("li",{className:"yst-text-slate-500",key:t},e.feature?React.createElement(React.Fragment,null,React.createElement("span",{className:"yst-font-medium"},e.source," - "),e.feature):e.source)))));f.displayName="Widget.DataSources";const E=({className:t="yst-mt-4",supportLink:a,children:s,...r})=>{const n=(0,e.useCallback)((({error:e})=>React.createElement(m,{error:e,className:t,supportLink:a})),[t,a]);return React.createElement(o.ErrorBoundary,u({},r,{FallbackComponent:n}),s)};E.displayName="Widget.ErrorBoundary";const w=({className:e="yst-paper__content",title:t,tooltip:a,dataSources:s,children:r,errorSupportLink:n})=>React.createElement(o.Paper,{className:c()("yst-shadow-md",e)},(t||a)&&React.createElement("div",{className:"yst-flex yst-justify-between"},t&&React.createElement(g,null,t),a&&React.createElement(h,{content:a},s&&s.length>0&&React.createElement(f,{dataSources:s}))),n?React.createElement(E,{supportLink:n},r):r),R={good:{label:(0,r.__)("Good","wordpress-seo"),color:"yst-bg-analysis-good",hex:"#7ad03a"},ok:{label:(0,r.__)("OK","wordpress-seo"),color:"yst-bg-analysis-ok",hex:"#ee7c1b"},bad:{label:(0,r.__)("Needs improvement","wordpress-seo"),color:"yst-bg-analysis-bad",hex:"#dc3232"},notAnalyzed:{label:(0,r.__)("Not analyzed","wordpress-seo"),color:"yst-bg-analysis-na",hex:"#cbd5e1"}},v={seo:{good:(0,r.__)("Most of your content has a good SEO score. Well done!","wordpress-seo"),ok:(0,r.__)("Your content has an average SEO score. Time to find opportunities for improvement!","wordpress-seo"),bad:(0,r.__)("Some of your content could use a little extra care. Take a look and start improving!","wordpress-seo"),notAnalyzed:(0,r.__)("Some of your content hasn't been analyzed yet. Please open it in your editor, ensure a focus keyphrase is entered, and save it so we can start the analysis.","wordpress-seo")},readability:{good:(0,r.__)("Most of your content has a good readability score. Well done!","wordpress-seo"),ok:(0,r.__)("Your content has an average readability score. Time to find opportunities for improvement!","wordpress-seo"),bad:(0,r.__)("Some of your content could use a little extra care. Take a look and start improving!","wordpress-seo"),notAnalyzed:(0,r.__)("Some of your content hasn't been analyzed yet. Please open it and save it in your editor so we can start the analysis.","wordpress-seo")}},b={seo:{notAnalyzed:(0,r.__)("We haven’t analyzed this content yet. Please open it in your editor, ensure a focus keyphrase is entered, and save it so we can start the analysis.","wordpress-seo")},readability:{notAnalyzed:(0,r.__)("We haven’t analyzed this content yet. Please open it in your editor and save it so we can start the analysis.","wordpress-seo")}},k=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),x=({tooltip:e,id:t})=>React.createElement(o.TooltipContainer,{className:"yst-h-4"},React.createElement(o.TooltipTrigger,{ariaDescribedby:t},React.createElement(k,{className:"yst-w-4 yst-h-4 yst-text-slate-400"}),React.createElement("span",{className:"yst-sr-only"},(0,r.__)("Disabled","wordpress-seo"))),e&&React.createElement(o.TooltipWithContext,{position:"left",id:t},e)),N=({score:e,id:t})=>{var a;return React.createElement(o.TooltipContainer,{className:"yst-h-4 yst-flex yst-items-center yst-justify-center"},React.createElement(o.TooltipTrigger,{ariaDescribedby:t},React.createElement("div",{className:c()("yst-shrink-0 yst-w-3 yst-aspect-square yst-rounded-full",R[e].color)},React.createElement("span",{className:"yst-sr-only"},R[e].label))),(null===(a=R[e])||void 0===a?void 0:a.tooltip)&&React.createElement(o.TooltipWithContext,{position:"left",id:t},"notAnalyzed"===e?(0,r.__)("Content analysis hasn't started. Please open this page in your editor, enter a focus keyphrase and save.","wordpress-seo"):R[e].tooltip))},_=({score:e,isIndexablesEnabled:t,isSeoAnalysisEnabled:a,isEditable:s,id:o})=>t&&a?s?React.createElement(N,{score:e,id:o}):React.createElement(x,{id:o,tooltip:(0,r.__)("We can’t provide an SEO score for this page.","wordpress-seo")}):React.createElement(x,{id:o}),S=({children:e})=>React.createElement("div",{className:"yst-overflow-auto"},React.createElement(o.Table,{variant:"minimal"},e));S.Head=({children:e})=>React.createElement(o.Table.Head,null,React.createElement(o.Table.Row,null,React.createElement(o.Table.Header,{className:"yst-px-0 yst-w-5"},""),e)),S.Row=({children:e,index:t})=>React.createElement(o.Table.Row,null,React.createElement(o.Table.Cell,{className:"yst-px-0 yst-text-slate-500"},t+1,". "),e),S.Cell=o.Table.Cell,S.Header=o.Table.Header,S.Body=o.Table.Body;const C=window.yoast.reduxJsToolkit,L=window.lodash,T=(0,C.createSlice)({name:"data",initialState:{data:void 0,error:void 0,isPending:!0},reducers:{setData(e,t){e.data=t.payload,e.error=void 0,e.isPending=!1},setError(e,t){e.error=t.payload,e.isPending=!1},setIsPending(e,t){e.isPending=Boolean(t.payload)}}}),P=(t,a=L.identity)=>{const[s,r]=(0,e.useReducer)(T.reducer,{},T.getInitialState),o=(0,e.useRef)();return(0,e.useEffect)((()=>{var e,s;return null===(e=o.current)||void 0===e||e.abort(),o.current=new AbortController,r(T.actions.setIsPending(!0)),t({signal:null===(s=o.current)||void 0===s?void 0:s.signal}).then((e=>r(T.actions.setData(a(e))))).catch((e=>{"AbortError"!==(null==e?void 0:e.name)&&r(T.actions.setError(e))})),()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.abort()}}),[t]),s},F=({isIndexablesEnabled:e,isSeoAnalysisEnabled:t})=>{if(e&&t)return React.createElement(React.Fragment,null,"Yoast",React.createElement("br",null),(0,r.__)("SEO score","wordpress-seo"));let a;return e?t||(a=(0,r.__)("We can’t provide SEO scores, because the SEO analysis is disabled for your site.","wordpress-seo")):a=(0,r.__)("We can’t analyze your content, because you’re in a non-production environment.","wordpress-seo"),React.createElement(o.TooltipContainer,{className:"yst-inline-block"},React.createElement(o.TooltipTrigger,{ariaDescribedby:"yst-disabled-score-header-tooltip",className:"yst-cursor-help yst-underline yst-decoration-dotted yst-underline-offset-4"},"Yoast",React.createElement("br",null),(0,r.__)("SEO score","wordpress-seo")),React.createElement(o.TooltipWithContext,{position:"bottom",id:"yst-disabled-score-header-tooltip",className:"yst-w-52"},a))},D=({index:e})=>React.createElement(S.Row,{index:e},React.createElement(S.Cell,null,React.createElement(o.SkeletonLoader,null,"https://example.com/page")),React.createElement(S.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"10")),React.createElement(S.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"100")),React.createElement(S.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"0.12")),React.createElement(S.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"12.34")),React.createElement(S.Cell,null,React.createElement("div",{className:"yst-flex yst-justify-center"},React.createElement(o.SkeletonLoader,{className:"yst-shrink-0 yst-w-3 yst-aspect-square yst-rounded-full"}))),React.createElement(S.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"Edit"))),j=({data:e,children:a,isIndexablesEnabled:s=!0,isSeoAnalysisEnabled:n=!0})=>React.createElement(S,null,React.createElement(S.Head,null,React.createElement(S.Header,null,(0,r.__)("Landing page","wordpress-seo")),React.createElement(S.Header,{className:"yst-text-end"},(0,r.__)("Clicks","wordpress-seo")),React.createElement(S.Header,{className:"yst-text-end"},(0,r.__)("Impressions","wordpress-seo")),React.createElement(S.Header,{className:"yst-text-end"},(0,r.__)("CTR","wordpress-seo")),React.createElement(S.Header,{className:"yst-text-end"},(0,r.__)("Average position","wordpress-seo")),React.createElement(S.Header,{className:"yst-text-center"},React.createElement(F,{isIndexablesEnabled:s,isSeoAnalysisEnabled:n})),React.createElement(S.Header,{className:"yst-text-end"},(0,r.__)("Actions","wordpress-seo"))),React.createElement(S.Body,null,a||e.map((({subject:e,clicks:a,impressions:l,ctr:c,position:i,seoScore:m,links:d},u)=>React.createElement(S.Row,{key:`most-popular-content-${u}`,index:u},React.createElement(S.Cell,{className:"yst-text-slate-900 yst-font-medium"},e),React.createElement(S.Cell,{className:"yst-text-end"},a),React.createElement(S.Cell,{className:"yst-text-end"},l),React.createElement(S.Cell,{className:"yst-text-end"},c),React.createElement(S.Cell,{className:"yst-text-end"},i),React.createElement(S.Cell,null,React.createElement("div",{className:"yst-flex yst-justify-center"},React.createElement(_,{id:`yst-top-pages-widget__seo-score-${u}`,score:m,isIndexablesEnabled:s,isSeoAnalysisEnabled:n,isEditable:null==d?void 0:d.edit}))),React.createElement(S.Cell,{className:"yst-text-end"},React.createElement(o.Button,{variant:"tertiary",size:"small",as:"a",href:null==d?void 0:d.edit,className:"yst-px-0 yst-me-1",disabled:!(null!=d&&d.edit),"aria-disabled":!(null!=d&&d.edit),role:"link"},React.createElement(t,{className:"yst-w-4 yst-h-4 yst-me-1.5"}),(0,r.__)("Edit","wordpress-seo")))))))),M=({dataProvider:t,remoteDataProvider:a,dataFormatter:s,limit:r})=>{const{data:o,isPending:n,error:l}=(({dataProvider:t,remoteDataProvider:a,dataFormatter:s,limit:r=5})=>{const o=(0,e.useCallback)((e=>a.fetchJson(t.getEndpoint("timeBasedSeoMetrics"),{limit:r.toString(10),options:{widget:"page"}},e)),[t,r]),n=(0,e.useMemo)((()=>(e=>(t=[])=>t.map((t=>({subject:e.format(t.subject,"subject",{widget:"topPages"}),clicks:e.format(t.clicks,"clicks",{widget:"topPages"}),impressions:e.format(t.impressions,"impressions",{widget:"topPages"}),ctr:e.format(t.ctr,"ctr",{widget:"topPages"}),position:e.format(t.position,"position",{widget:"topPages"}),seoScore:e.format(t.seoScore,"seoScore",{widget:"topPages"}),links:e.format(t.links,"links",{widget:"topPages"})}))))(s)),[s]);return P(o,n)})({dataProvider:t,remoteDataProvider:a,dataFormatter:s,limit:r});return n?React.createElement(j,null,Array.from({length:r},((e,t)=>React.createElement(D,{key:`top-pages-table--row__${t}`,index:t})))):l?React.createElement(m,{error:l,supportLink:t.getLink("errorSupport"),className:"yst-mt-4"}):0===o.length?React.createElement(d,null):React.createElement(j,{data:o,isIndexablesEnabled:t.hasFeature("indexables"),isSeoAnalysisEnabled:t.hasFeature("seoAnalysis")})},A=({dataProvider:e,remoteDataProvider:t,dataFormatter:a,limit:s=5})=>React.createElement(w,{className:"yst-paper__content yst-col-span-4",title:(0,r.__)("Top 5 most popular content","wordpress-seo"),tooltip:(0,r.__)("The top 5 URLs on your website with the highest number of clicks over the last 28 days.","wordpress-seo"),dataSources:[{source:"Site Kit by Google",feature:(0,r.__)("Clicks, Impressions, CTR, Position","wordpress-seo")},{source:"Yoast SEO",feature:(0,r.sprintf)(/* translators: 1: Yoast SEO. */ +(0,r.__)("%1$s score","wordpress-seo"),"Yoast SEO")}],errorSupportLink:e.getLink("errorSupport")},React.createElement(M,{dataProvider:e,remoteDataProvider:t,dataFormatter:a,limit:s})),O=({index:e})=>React.createElement(S.Row,{index:e},React.createElement(S.Cell,null,React.createElement(o.SkeletonLoader,null,"focus keyphrase")),React.createElement(S.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"10")),React.createElement(S.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"100")),React.createElement(S.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"0.12")),React.createElement(S.Cell,null,React.createElement(o.SkeletonLoader,{className:"yst-ms-auto"},"12.34"))),W=({data:e,children:t})=>React.createElement(S,null,React.createElement(S.Head,null,React.createElement(S.Header,null,(0,r.__)("Query","wordpress-seo")),React.createElement(S.Header,{className:"yst-text-end"},(0,r.__)("Clicks","wordpress-seo")),React.createElement(S.Header,{className:"yst-text-end"},(0,r.__)("Impressions","wordpress-seo")),React.createElement(S.Header,{className:"yst-text-end"},(0,r.__)("CTR","wordpress-seo")),React.createElement(S.Header,null,React.createElement("div",{className:"yst-flex yst-justify-end"},React.createElement("div",{className:"yst-w-min yst-text-end"},(0,r.__)("Average position","wordpress-seo"))))),React.createElement(S.Body,null,t||e.map((({subject:e,clicks:t,impressions:a,ctr:s,position:r},o)=>React.createElement(S.Row,{key:`most-popular-content-${o}`,index:o},React.createElement(S.Cell,{className:"yst-text-slate-900 yst-font-medium"},e),React.createElement(S.Cell,{className:"yst-text-end"},t),React.createElement(S.Cell,{className:"yst-text-end"},a),React.createElement(S.Cell,{className:"yst-text-end"},s),React.createElement(S.Cell,{className:"yst-text-end"},r)))))),I=({dataProvider:t,remoteDataProvider:a,dataFormatter:s,limit:r=5})=>{const{data:o,error:n,isPending:l}=(({dataProvider:t,remoteDataProvider:a,dataFormatter:s,limit:r})=>{const o=(0,e.useCallback)((e=>a.fetchJson(t.getEndpoint("timeBasedSeoMetrics"),{limit:r.toString(10),options:{widget:"query"}},e)),[t,r]),n=(0,e.useMemo)((()=>(e=>(t=[])=>t.map((t=>({subject:e.format(t.subject,"subject",{widget:"topQueries"}),clicks:e.format(t.clicks,"clicks",{widget:"topQueries"}),impressions:e.format(t.impressions,"impressions",{widget:"topQueries"}),ctr:e.format(t.ctr,"ctr",{widget:"topQueries"}),position:e.format(t.position,"position",{widget:"topQueries"})}))))(s)),[s]);return P(o,n)})({dataProvider:t,remoteDataProvider:a,dataFormatter:s,limit:r});return l?React.createElement(W,null,Array.from({length:r},((e,t)=>React.createElement(O,{key:`top-queries-table--row__${t}`,index:t})))):n?React.createElement(m,{error:n,supportLink:t.getLink("errorSupport"),className:"yst-mt-4"}):0===o.length?React.createElement(d,null):React.createElement(W,{data:o})},B=({dataProvider:e,remoteDataProvider:t,dataFormatter:a,limit:s=5})=>React.createElement(w,{className:"yst-paper__content yst-col-span-4",title:(0,r.__)("Top 5 search queries","wordpress-seo"),tooltip:(0,r.__)("The top 5 search queries on your website with the highest number of clicks over the last 28 days.","wordpress-seo"),dataSources:[{source:"Site Kit by Google"}],errorSupportLink:e.getLink("errorSupport")},React.createElement(I,{dataProvider:e,remoteDataProvider:t,dataFormatter:a,limit:s})),z=({value:e,formattedValue:t,moreIsGood:a})=>{if(!e)return null;const s=e>=0,r=a?"yst-text-green-600":"yst-text-red-600",o=a?"yst-text-red-600":"yst-text-green-600";return React.createElement("div",{className:c()("yst-flex yst-items-center yst-font-semibold",s?r:o)},[s?"+":"",t].join(""))},$=({className:e,children:t})=>React.createElement("div",{className:c()("yst-flex yst-gap-4 yst-justify-center yst-bg-white","yst-col-span-4 @lg:yst-col-span-2 @3xl:yst-col-span-1","yst-ps-0 yst-pe-0 yst-pt-4 yst-pb-4 first:yst-pt-0 last:yst-pb-0","@lg:yst-ps-0 @lg:yst-pe-0 @lg:yst-pt-0 @lg:yst-pb-0","@3xl:yst-ps-4 @3xl:yst-pe-4 @3xl:yst-pt-0 @3xl:yst-pb-0 @3xl:first:yst-ps-0 @3xl:last:yst-pe-0",e)},t),H=({children:e})=>React.createElement("div",{className:"yst-flex yst-flex-col yst-items-center yst-min-w-28 @3xl:yst-min-w-0"},e),G=({className:e,tooltipLocalizedContent:t,dataSources:a})=>React.createElement($,{className:e},React.createElement("div",{className:"yst-w-5"}),React.createElement(H,null,React.createElement(o.SkeletonLoader,{className:"yst-text-center yst-text-2xl yst-font-bold yst-text-slate-900"},"12345"),React.createElement(o.SkeletonLoader,{className:"yst-text-center yst-text-sm yst-mt-2"},"Dummy"),React.createElement(o.SkeletonLoader,{className:"yst-text-center yst-text-sm yst-mt-2 yst-font-semibold"},"- 13%")),React.createElement("div",{className:"yst-mt-2"},React.createElement(h,{content:t},React.createElement(f,{dataSources:a})))),V=({className:e,metricName:t,data:a,dataSources:s,tooltipLocalizedContent:r,moreIsGood:o})=>React.createElement($,{className:e},React.createElement("div",{className:"yst-w-5"}),React.createElement(H,null,React.createElement("div",{className:"yst-text-center yst-text-2xl yst-font-bold yst-text-slate-900"},a.formattedValue),React.createElement("div",{className:"yst-text-center"},t),React.createElement("div",{className:"yst-text-center yst-mt-2"},React.createElement(z,{value:a.delta,formattedValue:a.formattedDelta,moreIsGood:o}))),React.createElement("div",{className:"yst-mt-2"},React.createElement(h,{content:r},React.createElement(f,{dataSources:s})))),Q=e=>!e&&0!==e,q=(e,t)=>Q(e)||Q(t)?NaN:e===t?0:0===t?1:(e-t)/t,J={impressions:{name:(0,r._x)("Impressions","The number of times your website appeared in the Google search results","wordpress-seo"),tooltip:(0,r.__)("The number of times your website appeared in the Google search results over the last 28 days.","wordpress-seo"),dataSources:[{source:(0,r.__)("Site Kit by Google","wordpress-seo")}]},clicks:{name:(0,r._x)("Clicks","The number of times users clicked on your website's link in the Google search results","wordpress-seo"),tooltip:(0,r.__)("The number of times users clicked on your website's link in the Google search results over the last 28 days.","wordpress-seo"),dataSources:[{source:(0,r.__)("Site Kit by Google","wordpress-seo")}]},ctr:{name:(0,r._x)("Average CTR","Click-through-rate for your website in the Google search results","wordpress-seo"),tooltip:(0,r.__)("The average click-through-rate for your website in the Google search results over the last 28 days.","wordpress-seo"),dataSources:[{source:(0,r.__)("Site Kit by Google","wordpress-seo")}]},position:{name:(0,r._x)("Average position","Average position of your website in the Google search results","wordpress-seo"),tooltip:(0,r.__)("The average position of your website in the Google search results over the last 28 days.","wordpress-seo"),dataSources:[{source:(0,r.__)("Site Kit by Google","wordpress-seo")}]}},U=({children:e})=>React.createElement("div",{className:"yst-grid yst-grid-cols-4 yst-gap-px yst-bg-slate-200"},e),K=()=>React.createElement(U,null,React.createElement(G,{className:"@lg:yst-pe-4 @lg:yst-pb-4",tooltipLocalizedContent:J.impressions.tooltip,dataSources:J.impressions.dataSources}),React.createElement(G,{className:"@lg:yst-ps-4 @lg:yst-pb-4",tooltipLocalizedContent:J.clicks.tooltip,dataSources:J.clicks.dataSources}),React.createElement(G,{className:"@lg:yst-pe-4 @lg:yst-pt-4",tooltipLocalizedContent:J.ctr.tooltip,dataSources:J.ctr.dataSources}),React.createElement(G,{className:"@lg:yst-ps-4 @lg:yst-pt-4",tooltipLocalizedContent:J.position.tooltip,dataSources:J.position.dataSources})),Y=({dataProvider:t,remoteDataProvider:a,dataFormatter:s,setShowTitle:r})=>{const{data:o,error:n,isPending:l}=(({dataProvider:t,remoteDataProvider:a,dataFormatter:s})=>{const r=(0,e.useCallback)((e=>a.fetchJson(t.getEndpoint("timeBasedSeoMetrics"),{options:{widget:"searchRankingCompare"}},e)),[t]),o=(0,e.useMemo)((()=>e=>(e=>t=>null===t?null:{impressions:e.format(t.impressions,"impressions"),clicks:e.format(t.clicks,"clicks"),ctr:e.format(t.ctr,"ctr"),position:e.format(t.position,"position")})(s)((e=>{if(0===e.length)return null;const t={impressions:{value:e[0].current.total_impressions,delta:q(e[0].current.total_impressions,e[0].previous.total_impressions)},clicks:{value:e[0].current.total_clicks,delta:q(e[0].current.total_clicks,e[0].previous.total_clicks)},ctr:null,position:null};return e[0].current.average_ctr&&(t.ctr={value:e[0].current.average_ctr,delta:q(e[0].current.average_ctr,e[0].previous.average_ctr)}),e[0].current.average_position&&(t.position={value:e[0].current.average_position,delta:e[0].current.average_position-e[0].previous.average_position}),t})(e))),[s]);return P(r,o)})({dataProvider:t,remoteDataProvider:a,dataFormatter:s});return(0,e.useEffect)((()=>{r(!l&&(n||null===o))}),[o,n,l,r]),l?React.createElement(K,null):n?React.createElement(m,{error:n,supportLink:t.getLink("errorSupport"),className:"yst-mt-4"}):null===o?React.createElement(d,null):React.createElement(U,null,React.createElement(V,{className:"@lg:yst-pe-4 @lg:yst-pb-4",metricName:J.impressions.name,data:o.impressions,tooltipLocalizedContent:J.impressions.tooltip,dataSources:J.impressions.dataSources,moreIsGood:!0}),React.createElement(V,{className:"@lg:yst-ps-4 @lg:yst-pb-4",metricName:J.clicks.name,data:o.clicks,tooltipLocalizedContent:J.clicks.tooltip,dataSources:J.clicks.dataSources,moreIsGood:!0}),React.createElement(V,{className:"@lg:yst-pe-4 @lg:yst-pt-4",metricName:J.ctr.name,data:o.ctr,tooltipLocalizedContent:J.ctr.tooltip,dataSources:J.ctr.dataSources,moreIsGood:!0}),React.createElement(V,{className:"@lg:yst-ps-4 @lg:yst-pt-4",metricName:J.position.name,data:o.position,tooltipLocalizedContent:J.position.tooltip,dataSources:J.position.dataSources,moreIsGood:!1}))},X=({dataProvider:t,remoteDataProvider:a,dataFormatter:s})=>{const[n,l]=(0,e.useState)(!1),[c,,,i]=(0,o.useToggleState)(!1);return React.createElement(w,{className:"yst-paper__content yst-col-span-4",title:(n||c)&&(0,r.__)("Impressions, Clicks, Site CTR, Average position","wordpress-seo")},React.createElement(E,{supportLink:t.getLink("errorSupport"),onError:i},React.createElement(Y,{dataProvider:t,remoteDataProvider:a,dataFormatter:s,setShowTitle:l})))},Z=({children:e})=>React.createElement("div",{className:"yst-flex yst-flex-col yst-gap-1"},React.createElement("div",{className:"yst-flex yst-gap-3"},e),React.createElement("span",null,(0,r.__)("Last 28 days","wordpress-seo"))),ee=({data:e,isPending:t,error:a,supportLink:s})=>t?React.createElement(Z,null,React.createElement(o.SkeletonLoader,{className:"yst-title yst-title--1"},"10_000"),React.createElement(o.SkeletonLoader,null,"^ +100%")):a?React.createElement(m,{error:a,supportLink:s}):React.createElement(Z,null,React.createElement(o.Title,{as:"h2",size:"1",className:"yst-font-bold"},e.sessions),React.createElement(z,{value:e.difference,formattedValue:e.formattedDifference,moreIsGood:!0})),te=window.yoast["chart.js"],ae="label";function se(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function re(e,t){e.labels=t}function oe(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ae;const s=[];e.datasets=t.map((t=>{const r=e.datasets.find((e=>e[a]===t[a]));return r&&t.data&&!s.includes(r)?(s.push(r),Object.assign(r,t),r):{...t}}))}function ne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ae;const a={labels:[],datasets:[]};return re(a,e.labels),oe(a,e.datasets,t),a}function le(t,a){const{height:s=150,width:r=300,redraw:o=!1,datasetIdKey:n,type:l,data:c,options:i,plugins:m=[],fallbackContent:d,updateMode:u,...p}=t,y=(0,e.useRef)(null),g=(0,e.useRef)(),h=()=>{y.current&&(g.current=new te.Chart(y.current,{type:l,data:ne(c,n),options:i&&{...i},plugins:m}),se(a,g.current))},f=()=>{se(a,null),g.current&&(g.current.destroy(),g.current=null)};return(0,e.useEffect)((()=>{!o&&g.current&&i&&function(e,t){const a=e.options;a&&t&&Object.assign(a,t)}(g.current,i)}),[o,i]),(0,e.useEffect)((()=>{!o&&g.current&&re(g.current.config.data,c.labels)}),[o,c.labels]),(0,e.useEffect)((()=>{!o&&g.current&&c.datasets&&oe(g.current.config.data,c.datasets,n)}),[o,c.datasets]),(0,e.useEffect)((()=>{g.current&&(o?(f(),setTimeout(h)):g.current.update(u))}),[o,i,c.labels,c.datasets,u]),(0,e.useEffect)((()=>{g.current&&(f(),setTimeout(h))}),[l]),(0,e.useEffect)((()=>(h(),()=>f())),[]),e.createElement("canvas",Object.assign({ref:y,role:"img",height:s,width:r},p),d)}const ce=(0,e.forwardRef)(le);function ie(t,a){return te.Chart.register(a),(0,e.forwardRef)(((a,s)=>e.createElement(ce,Object.assign({},a,{ref:s,type:t}))))}const me=ie("line",te.LineController),de=ie("doughnut",te.DoughnutController);var ue,pe;te.Chart.register(te.Filler,te.CategoryScale,te.LinearScale,te.LineElement,te.PointElement,te.Tooltip);const ye="rgba(166, 30, 105, 1)",ge="transparent",he=null===(ue=document.createElement("canvas"))||void 0===ue||null===(pe=ue.getContext("2d"))||void 0===pe?void 0:pe.createLinearGradient(0,0,0,225);null==he||he.addColorStop(0,"rgba(166, 30, 105, 0.2)"),null==he||he.addColorStop(1,"rgba(166, 30, 105, 0)");const fe={parsing:{xAxisKey:"date",yAxisKey:"sessions"},elements:{point:{radius:5,borderWidth:2,borderColor:"white",backgroundColor:ye},line:{tension:.3,borderWidth:3,borderColor:ye,backgroundColor:he||ge}},layout:{padding:{left:-20}},scales:{x:{grid:{color:"oklch(0.869 0.022 252.894)",drawTicks:!1},ticks:{font:{size:12,weight:400},padding:12,maxRotation:0,maxTicksLimit:14}},y:{grid:{color:e=>e.tick.value%1?ge:"oklch(0.929 0.013 255.508)",drawTicks:!1},ticks:{color:"oklch(0.554 0.046 257.417)",font:{size:14,weight:400},padding:20,callback:function(e){return e%1?"":this.getLabelForValue(e)}}}},responsive:!0,maintainAspectRatio:!1,plugins:{legend:!1,tooltip:{displayColors:!1,callbacks:{title:()=>"",label:e=>`${e.label}: ${null==e?void 0:e.formattedValue}`}}}},Ee=({data:e})=>React.createElement(React.Fragment,null,React.createElement("div",{className:"yst-w-full yst-h-60"},React.createElement(me,{"aria-hidden":!0,options:fe,data:e})),React.createElement("table",{className:"yst-sr-only yst-table-fixed"},React.createElement("caption",null,(0,r.__)("Organic sessions chart","wordpress-seo")),React.createElement("thead",null,React.createElement("tr",null,e.labels.map((e=>React.createElement("th",{key:e},e))))),React.createElement("tbody",null,React.createElement("tr",null,e.datasets[0].data.map((({date:e,sessions:t})=>React.createElement("td",{key:e},String(t)))))))),we=({data:e,isPending:t,error:a,supportLink:s})=>t?React.createElement(o.SkeletonLoader,{className:"yst-w-full yst-h-52 yst-mt-8"}):a?React.createElement(m,{className:"yst-mt-4",error:a,supportLink:s}):React.createElement(Ee,{data:e}),Re=({dataProvider:t,remoteDataProvider:a,dataFormatter:s})=>{var r;const o=t.getLink("errorSupport"),n=((t,a,s)=>{const r=(0,e.useCallback)((e=>a.fetchJson(t.getEndpoint("timeBasedSeoMetrics"),{options:{widget:"organicSessionsDaily"}},e)),[t]),o=(0,e.useMemo)((()=>(e=[])=>{return t=(e=>(t=[])=>t.map((t=>({date:e.format(t.date,"date",{widget:"organicSessions"}),sessions:Number(t.sessions)}))))(s)(e),{labels:t.map((({date:e})=>e)),datasets:[{fill:"origin",data:t}]};var t}),[s]);return P(r,o)})(t,a,s),l=((t,a,s)=>{const r=(0,e.useCallback)((e=>a.fetchJson(t.getEndpoint("timeBasedSeoMetrics"),{options:{widget:"organicSessionsCompare"}},e)),[t]),o=(0,e.useMemo)((()=>(e=>([t])=>{var a,s;const r=(null==t||null===(a=t.current)||void 0===a?void 0:a.sessions)||NaN,o=q(r,(null==t||null===(s=t.previous)||void 0===s?void 0:s.sessions)||NaN);return{sessions:e.format(r,"sessions",{widget:"organicSessions"}),difference:o,formattedDifference:e.format(o,"difference",{widget:"organicSessions"})}})(s)),[s]);return P(r,o)})(t,a,s);return l.error&&n.error&&(0,L.isEqual)(l.error,n.error)?React.createElement(m,{className:"yst-mt-4",error:l.error,supportLink:o}):0===(null===(r=n.data)||void 0===r?void 0:r.labels.length)?React.createElement(d,null):React.createElement(React.Fragment,null,React.createElement("div",{className:"yst-flex yst-justify-between yst-mt-4"},React.createElement(ee,{data:l.data,error:l.error,isPending:l.isPending,supportLink:o})),React.createElement(we,{data:n.data,error:n.error,isPending:n.isPending,supportLink:o}))},ve=({dataProvider:e,remoteDataProvider:t,dataFormatter:a})=>React.createElement(w,{className:"yst-paper__content yst-col-span-4",title:(0,r.__)("Organic sessions","wordpress-seo"),tooltip:(0,r.__)("The number of organic sessions that began on your website.","wordpress-seo"),dataSources:[{source:"Site Kit by Google"}],errorSupportLink:e.getLink("errorSupport")},React.createElement(Re,{dataProvider:e,remoteDataProvider:t,dataFormatter:a})),be=new RegExp("�?39;","g");function ke(e){return(0,L.replace)((0,L.unescape)(e),be,"'")}const xe=({idSuffix:t,contentTypes:a,selected:s,onChange:n})=>{const[l,c]=(0,e.useState)((()=>a)),i=(0,e.useCallback)((e=>{n(a.find((({name:t})=>t===e)))}),[a]),m=(0,e.useCallback)((e=>{const t=e.target.value.trim().toLowerCase();c(t?a.filter((({name:e,label:a})=>a.toLowerCase().includes(t)||e.toLowerCase().includes(t))):a)}),[a]);return React.createElement(o.AutocompleteField,{id:`content-type--${t}`,label:(0,r.__)("Content type","wordpress-seo"),value:null==s?void 0:s.name,selectedLabel:ke(null==s?void 0:s.label)||"",onChange:i,onQueryChange:m},l.map((({name:e,label:t})=>{const a=ke(t);return React.createElement(o.AutocompleteField.Option,{key:e,value:e},a)})))},Ne=({scores:e,descriptions:t})=>{const a=(0,L.maxBy)(e,"amount");return React.createElement("p",{className:"yst-max-w-2xl"},t[null==a?void 0:a.name]||"")};te.Chart.register(te.ArcElement,te.Tooltip);const _e=e=>({labels:e.map((({name:e})=>R[e].label)),datasets:[{cutout:"82%",data:e.map((({amount:e})=>e)),backgroundColor:e.map((({name:e})=>R[e].hex)),borderWidth:0,offset:0,hoverOffset:5,spacing:1,weight:1,animation:{animateRotate:!0}}]}),Se={plugins:{legend:!1,tooltip:{displayColors:!1,callbacks:{title:()=>"",label:e=>`${e.label}: ${null==e?void 0:e.formattedValue}`}}},layout:{padding:5}},Ce=({className:e})=>React.createElement("div",{className:c()(e,"yst-relative")},React.createElement(o.SkeletonLoader,{className:"yst-w-full yst-aspect-square yst-rounded-full"}),React.createElement("div",{className:"yst-absolute yst-inset-5 yst-aspect-square yst-bg-white yst-rounded-full"})),Le=({className:e,scores:t})=>React.createElement("div",{className:e},React.createElement(de,{options:Se,data:_e(t)})),Te="yst-flex yst-items-center yst-py-3 first:yst-pt-0 last:yst-pb-0 yst-border-b last:yst-border-b-0",Pe="yst-shrink-0 yst-w-3 yst-aspect-square yst-rounded-full",Fe="yst-ms-3 yst-me-2",De=({className:e})=>React.createElement("ul",{className:e},Object.entries(R).map((([e,{label:t}])=>React.createElement("li",{key:`skeleton-loader--${e}`,className:Te},React.createElement(o.SkeletonLoader,{className:Pe}),React.createElement(o.SkeletonLoader,{className:Fe},t),React.createElement(o.SkeletonLoader,{className:"yst-w-7 yst-me-3"},"1"),React.createElement(o.SkeletonLoader,{className:"yst-ms-auto yst-button yst-button--small"},(0,r.__)("View","wordpress-seo")))))),je=({score:e})=>React.createElement(React.Fragment,null,React.createElement("span",{className:c()(Pe,R[e.name].color)}),React.createElement(o.Label,{as:"span",className:c()(Fe,"yst-leading-4 yst-py-1.5")},R[e.name].label),React.createElement(o.Badge,{variant:"plain",className:c()(e.links.view&&"yst-me-3")},e.amount)),Me=({score:e,idSuffix:t,tooltip:a})=>{const s=`tooltip--${t}__${e.name}`;return React.createElement(o.TooltipContainer,null,React.createElement(o.TooltipTrigger,{className:"yst-flex yst-items-center",ariaDescribedby:s},React.createElement(je,{score:e})),React.createElement(o.TooltipWithContext,{id:s,className:"max-[784px]:yst-max-w-full"},a))},Ae=({score:e,idSuffix:t,tooltips:a})=>{const s=a[e.name]?Me:je;return React.createElement("li",{className:Te},React.createElement(s,{score:e,idSuffix:t,tooltip:a[e.name]}),e.links.view&&React.createElement(o.Button,{as:"a",variant:"secondary",size:"small",href:e.links.view,className:"yst-ms-auto"},(0,r.__)("View","wordpress-seo")))},Oe=({className:e,scores:t,idSuffix:a,tooltips:s})=>React.createElement("ul",{className:e},t.map((e=>React.createElement(Ae,{key:e.name,score:e,idSuffix:a,tooltips:s})))),We="yst-flex yst-flex-col @md:yst-flex-row yst-gap-12 yst-mt-6",Ie="yst-grow",Be="yst-w-[calc(11.5rem+3px)] yst-aspect-square",ze=()=>React.createElement(React.Fragment,null,React.createElement(o.SkeletonLoader,{className:"yst-w-full"}," "),React.createElement("div",{className:We},React.createElement(De,{className:Ie}),React.createElement(Ce,{className:Be}))),$e=({scores:e=[],isLoading:t,descriptions:a,tooltips:s,idSuffix:r})=>t?React.createElement(ze,null):React.createElement(React.Fragment,null,React.createElement(Ne,{scores:e,descriptions:a}),React.createElement("div",{className:We},e&&React.createElement(Oe,{className:Ie,scores:e,idSuffix:r,tooltips:s}),e&&React.createElement(Le,{className:Be,scores:e}))),He="idle",Ge="error",Ve="request",Qe="success",qe="error",Je=async(e,t)=>{try{const a=await fetch(e,t);if(!a.ok){const e=new Error(a.statusText);throw e.status=a.status,e}return a.json()}catch(e){return Promise.reject(e)}},Ue=({dependencies:t,url:a,options:s,prepareData:r=L.identity,doFetch:o=Je,fetchDelay:n=200})=>{const[l,c]=(0,e.useState)(!0),[i,m]=(0,e.useState)(),[d,u]=(0,e.useState)(),p=(0,e.useRef)(),y=(0,e.useCallback)((0,L.debounce)(((...e)=>{o(...e).then((e=>{u(r(e)),m(void 0)})).catch((e=>{"AbortError"!==(null==e?void 0:e.name)&&m(e)})).finally((()=>{c(!1)}))}),n),[]);return(0,e.useEffect)((()=>{var e;return c(!0),null===(e=p.current)||void 0===e||e.abort(),p.current=new AbortController,y(a,{signal:p.current.signal,...s}),()=>{var e;return null===(e=p.current)||void 0===e?void 0:e.abort()}}),t),{data:d,error:i,isPending:l}},Ke=(e,t)=>{const a=new URL(e);return a.searchParams.set("search",t),a.searchParams.set("_fields",["id","name"]),a},Ye=e=>({name:String(e.id),label:(0,L.unescape)(e.name)}),Xe=({terms:e})=>0===e.length?React.createElement("div",{className:"yst-autocomplete__option"},(0,r.__)("Nothing found","wordpress-seo")):e.map((({name:e,label:t})=>React.createElement(o.AutocompleteField.Option,{key:e,value:e},t))),Ze=({idSuffix:t,taxonomy:a,selected:s,onChange:n})=>{const[l,c]=(0,e.useState)(""),{data:i=[],error:m,isPending:d}=Ue({dependencies:[a.links.search,l],url:Ke(a.links.search,l),options:{headers:{"Content-Type":"application/json"}},prepareData:e=>e.map(Ye)}),u=(0,e.useCallback)((e=>{null===e&&c(""),n(i.find((({name:t})=>t===e)))}),[i]),p=(0,e.useCallback)((e=>{var t,a,s;c((null==e||null===(t=e.target)||void 0===t||null===(a=t.value)||void 0===a||null===(s=a.trim())||void 0===s?void 0:s.toLowerCase())||"")}),[]);return React.createElement(o.AutocompleteField,{id:`term--${t}`,label:a.label,value:(null==s?void 0:s.name)||"",selectedLabel:(null==s?void 0:s.label)||l,onChange:u,onQueryChange:p,placeholder:(0,r.__)("All","wordpress-seo"),nullable:!0,clearButtonScreenReaderText:(0,r.__)("Clear filter","wordpress-seo"),validation:m&&{variant:"error",message:(0,r.__)("Something went wrong.","wordpress-seo")}},d&&React.createElement("div",{className:"yst-autocomplete__option"},React.createElement(o.Spinner,null)),!d&&React.createElement(Xe,{terms:i}))},et=e=>null==e?void 0:e.scores,tt=({analysisType:t,contentTypes:a,dataProvider:s,remoteDataProvider:r})=>{var o,n;const[l,c]=(0,e.useState)(a[0]),[i,d]=(0,e.useState)(),u=(0,e.useCallback)((e=>r.fetchJson(s.getEndpoint(t+"Scores"),((e,t)=>{var a;const s={contentType:null==e?void 0:e.name};return null!=e&&null!==(a=e.taxonomy)&&void 0!==a&&a.name&&null!=t&&t.name&&(s.taxonomy=e.taxonomy.name,s.term=t.name),s})(l,i),e)),[s,t,l,i]),{data:p,error:y,isPending:g}=P(u,et);return(0,e.useEffect)((()=>{d(void 0)}),[null==l?void 0:l.name]),React.createElement(React.Fragment,null,React.createElement("div",{className:"yst-grid yst-grid-cols-1 @md:yst-grid-cols-2 yst-gap-6 yst-mt-4"},React.createElement(xe,{idSuffix:t,contentTypes:a,selected:l,onChange:c}),l.taxonomy&&(null===(o=l.taxonomy)||void 0===o||null===(n=o.links)||void 0===n?void 0:n.search)&&React.createElement(Ze,{idSuffix:t,taxonomy:l.taxonomy,selected:i,onChange:d})),React.createElement("div",{className:"yst-mt-6"},React.createElement(m,{error:y,supportLink:s.getLink("errorSupport")}),!y&&React.createElement($e,{scores:p,isLoading:g,descriptions:v[t],tooltips:b[t],idSuffix:t})))},at=({analysisType:t,dataProvider:a,remoteDataProvider:s})=>{const[o,n]=(0,e.useState)((()=>a.getContentTypes()));return(0,e.useEffect)((()=>{n(a.getContentTypes())}),[a]),null!=o&&o.length?React.createElement(w,{className:"yst-paper__content yst-@container @3xl:yst-col-span-2 yst-col-span-4",title:"readability"===t?(0,r.__)("Readability scores","wordpress-seo"):(0,r.__)("SEO scores","wordpress-seo"),errorSupportLink:a.getLink("errorSupport")},React.createElement(tt,{analysisType:t,contentTypes:o,dataProvider:a,remoteDataProvider:s})):null},st=({widgetFactory:e})=>React.createElement(React.Fragment,null,(0,L.values)(e.types).map((t=>e.createWidget(t))));function rt(e){return rt="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},rt(e)}function ot(e,t,a){return s=function(e,t){if("object"!=rt(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var s=a.call(e,"string");if("object"!=rt(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==rt(s)?s:String(s))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e;var s}function nt(e,t,a){if(!t.has(e))throw new TypeError("attempted to "+a+" private field on non-instance");return t.get(e)}function lt(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,nt(e,t,"get"))}function ct(e,t,a){return function(e,t,a){if(t.set)t.set.call(e,a);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=a}}(e,nt(e,t,"set"),a),a}function it(e,t,a){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,a)}var mt=new WeakMap,dt=new WeakMap;class ut{constructor({locale:e="en-US"}={}){if(it(this,mt,{writable:!0,value:void 0}),it(this,dt,{writable:!0,value:{}}),new.target===ut)throw new Error("DataFormatterInterface cannot be instantiated directly.");ct(this,mt,e),lt(this,dt).nonFractional=new Intl.NumberFormat(e,{maximumFractionDigits:0}),lt(this,dt).compactNonFractional=new Intl.NumberFormat(e,{maximumFractionDigits:0,notation:"compact",compactDisplay:"short"}),lt(this,dt).percentage=new Intl.NumberFormat(e,{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}),lt(this,dt).twoFractions=new Intl.NumberFormat(e,{maximumFractionDigits:2,minimumFractionDigits:2})}get numberFormat(){return lt(this,dt)}get locale(){return lt(this,mt)}format(e,t,a={}){throw new Error("You must implement the format() method before using it.")}}ot(ut,"safeUrl",(e=>{try{return new URL(e)}catch{return null}})),ot(ut,"safeNumberFormat",((e,t)=>{try{return t.format(e)}catch{return e.toString(10)}}));class pt extends ut{formatLandingPage(e){const t=ut.safeUrl(e);return null===t?e:decodeURI(t.pathname)}format(e,t,a={}){switch(t){case"subject":switch(a.widget){case"topPages":return this.formatLandingPage(e);case"topQueries":return String(e);default:return e}case"clicks":case"impressions":return ut.safeNumberFormat(e,this.numberFormat.nonFractional);case"ctr":return ut.safeNumberFormat(e,this.numberFormat.percentage);case"position":return ut.safeNumberFormat(e,this.numberFormat.twoFractions);case"seoScore":return Object.keys(R).includes(e)?e:"notAnalyzed";default:return e}}}class yt extends ut{format(e,t,a={}){switch(t){case"impressions":case"clicks":return{formattedValue:ut.safeNumberFormat(e.value,this.numberFormat.nonFractional),delta:e.delta,formattedDelta:ut.safeNumberFormat(e.delta,this.numberFormat.percentage)};case"ctr":return null===e?{formattedValue:"-",delta:null,formattedDelta:"-"}:{formattedValue:ut.safeNumberFormat(e.value,this.numberFormat.percentage),delta:e.delta,formattedDelta:ut.safeNumberFormat(e.delta,this.numberFormat.percentage)};case"position":return null===e?{formattedValue:"-",delta:null,formattedDelta:"-"}:{formattedValue:ut.safeNumberFormat(e.value,this.numberFormat.twoFractions),delta:e.delta,formattedDelta:ut.safeNumberFormat(e.delta,this.numberFormat.twoFractions)};case"date":return new Date(Date.UTC(e.slice(0,4),e.slice(4,6)-1,e.slice(6,8))).toLocaleDateString(this.locale,{month:"short",day:"numeric"});case"sessions":return ut.safeNumberFormat(e||0,this.numberFormat.nonFractional);case"difference":return ut.safeNumberFormat(e,this.numberFormat.percentage);default:return e}}}function gt(e,t,a){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,a)}var ht=new WeakMap,ft=new WeakMap;class Et{constructor(e,t=Je){gt(this,ht,{writable:!0,value:void 0}),gt(this,ft,{writable:!0,value:void 0}),ct(this,ht,e),ct(this,ft,t)}getOptions(){return lt(this,ht)}getUrl(e,t){const a=new URL(e);return(0,L.forEach)(t,((e,t)=>{"object"==typeof e?(0,L.forEach)(e,((e,s)=>{a.searchParams.append(`${t}[${s}]`,e)})):a.searchParams.append(t,e)})),a}async fetchJson(e,t,a){return lt(this,ft).call(this,this.getUrl(e,t),(0,L.defaultsDeep)(a,lt(this,ht),{headers:{"Content-Type":"application/json"}}))}}let wt,Rt=["sessionStorage","localStorage"];const vt=e=>{const t=a.g[e];if(!t)return!1;try{const e="__storage_test__";return t.setItem(e,e),t.removeItem(e),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==t.length}},bt=()=>{if(void 0!==wt)return wt;for(const e of Rt)wt||vt(e)&&(wt=a.g[e]);return void 0===wt&&(wt=null),wt};function kt(e,t,a){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,a)}var xt=new WeakMap,Nt=new WeakMap,_t=new WeakMap;class St extends Et{constructor(e,t,a,s){if(super(e),kt(this,xt,{writable:!0,value:void 0}),kt(this,Nt,{writable:!0,value:void 0}),kt(this,_t,{writable:!0,value:void 0}),ct(this,xt,t),ct(this,Nt,a),!Number.isInteger(s)||s<=0)throw new TypeError("The TTL provided must be a positive integer.");ct(this,_t,s)}async fetchJson(e,t,s){const r="yoastseo_"+lt(this,Nt)+"_"+lt(this,xt)+"_"+t.options.widget,{cacheHit:o,value:n}=(e=>{const t=bt();if(t){const a=t.getItem(e);if(a){const e=JSON.parse(a),{timestamp:t,ttl:s,value:r}=e;if(t&&(!s||Math.round(Date.now()/1e3)-t<s))return{cacheHit:!0,value:r}}}return{cacheHit:!1,value:void 0}})(r);if(o)return n;const l=await super.fetchJson(e,t,s);return((e,t,{ttl:s=3600,timestamp:r=Math.round(Date.now()/1e3)}={})=>{const o=bt();if(o)try{return o.setItem(e,JSON.stringify({timestamp:r,ttl:s,value:t})),!0}catch(e){return a.g.console.warn("Encountered an unexpected storage error:",e),!1}})(r,l,{ttl:lt(this,_t)}),l}}function Ct(e,t,a){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,a)}var Lt=new WeakMap,Tt=new WeakMap,Pt=new WeakMap,Ft=new WeakMap;class Dt{constructor({contentTypes:e,features:t,endpoints:a,links:s}){Ct(this,Lt,{writable:!0,value:void 0}),Ct(this,Tt,{writable:!0,value:void 0}),Ct(this,Pt,{writable:!0,value:void 0}),Ct(this,Ft,{writable:!0,value:void 0}),ct(this,Lt,e),ct(this,Tt,t),ct(this,Pt,a),ct(this,Ft,s)}getContentTypes(){return lt(this,Lt)}hasFeature(e){var t;return!0===(null===(t=lt(this,Tt))||void 0===t?void 0:t[e])}getEndpoint(e){var t;return null===(t=lt(this,Pt))||void 0===t?void 0:t[e]}getLink(e){var t;return null===(t=lt(this,Ft))||void 0===t?void 0:t[e]}}function jt(e,t,a){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,a)}var Mt=new WeakMap,At=new WeakMap,Ot=new WeakMap,Wt=new WeakMap;class It{constructor(e,t,a,s){jt(this,Mt,{writable:!0,value:void 0}),jt(this,At,{writable:!0,value:void 0}),jt(this,Ot,{writable:!0,value:void 0}),jt(this,Wt,{writable:!0,value:void 0}),ct(this,Mt,e),ct(this,At,t),ct(this,Ot,a),ct(this,Wt,s)}getRemoteDataProvider(e){var t;return null!==(t=lt(this,Ot)[e])&&void 0!==t?t:lt(this,At)}get types(){return{searchRankingCompare:"searchRankingCompare",organicSessions:"organicSessions",topPages:"topPages",topQueries:"topQueries",seoScores:"seoScores",readabilityScores:"readabilityScores"}}createWidget(e){switch(e){case this.types.seoScores:return lt(this,Mt).hasFeature("indexables")&<(this,Mt).hasFeature("seoAnalysis")?React.createElement(at,{key:e,analysisType:"seo",dataProvider:lt(this,Mt),remoteDataProvider:this.getRemoteDataProvider(e)}):null;case this.types.readabilityScores:return lt(this,Mt).hasFeature("indexables")&<(this,Mt).hasFeature("readabilityAnalysis")?React.createElement(at,{key:e,analysisType:"readability",dataProvider:lt(this,Mt),remoteDataProvider:this.getRemoteDataProvider(e)}):null;case this.types.topPages:return React.createElement(A,{key:e,dataProvider:lt(this,Mt),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:lt(this,Wt).plainMetricsDataFormatter});case this.types.topQueries:return React.createElement(B,{key:e,dataProvider:lt(this,Mt),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:lt(this,Wt).plainMetricsDataFormatter});case this.types.searchRankingCompare:return React.createElement(X,{key:e,dataProvider:lt(this,Mt),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:lt(this,Wt).comparisonMetricsDataFormatter});case this.types.organicSessions:return React.createElement(ve,{key:e,dataProvider:lt(this,Mt),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:lt(this,Wt).comparisonMetricsDataFormatter});default:return null}}}const Bt=e=>React.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 425 456.27",role:"img","aria-hidden":"true",focusable:"false"},e),React.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"}),React.createElement("path",{d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z",stroke:"#000",strokeMiterlimit:"10",strokeWidth:"3.81"})),zt=e=>React.createElement("svg",u({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),React.createElement("path",{d:"M7.61333 10.1133L11.5 14C11.8333 14.3227 12.2801 14.5014 12.7441 14.4976C13.208 14.4939 13.6518 14.3079 13.9799 13.9799C14.3079 13.6518 14.4939 13.208 14.4976 12.7441C14.5014 12.2801 14.3227 11.8333 14 11.5L10.082 7.582M7.61333 10.1133L9.27733 8.09333C9.48866 7.83733 9.77066 7.676 10.0827 7.58267C10.4493 7.47333 10.858 7.45733 11.2447 7.48933C11.7659 7.53409 12.2897 7.44177 12.7643 7.22154C13.2388 7.00131 13.6475 6.66083 13.9498 6.23387C14.2521 5.80691 14.4374 5.30833 14.4875 4.7876C14.5376 4.26687 14.4507 3.74209 14.2353 3.26533L12.0513 5.45C11.6859 5.36551 11.3516 5.18011 11.0864 4.91492C10.8212 4.64973 10.6358 4.3154 10.5513 3.95L12.7353 1.766C12.2586 1.55064 11.7338 1.4637 11.2131 1.51379C10.6923 1.56388 10.1938 1.74927 9.76679 2.05157C9.33984 2.35386 8.99935 2.76254 8.77912 3.23706C8.55889 3.71159 8.46657 4.23545 8.51133 4.75667C8.572 5.474 8.464 6.266 7.90866 6.72333L7.84066 6.78M7.61333 10.1133L4.51 13.882C4.35959 14.0653 4.17247 14.2152 3.96066 14.3218C3.74886 14.4285 3.51707 14.4896 3.28022 14.5012C3.04337 14.5129 2.8067 14.4748 2.58544 14.3895C2.36419 14.3042 2.16326 14.1734 1.99557 14.0058C1.82789 13.8381 1.69718 13.6371 1.61184 13.4159C1.52651 13.1946 1.48844 12.958 1.5001 12.7211C1.51176 12.4843 1.57288 12.2525 1.67953 12.0407C1.78618 11.8289 1.93599 11.6417 2.11933 11.4913L6.67733 7.738L3.93933 5H3L1.5 2.5L2.5 1.5L5 3V3.93933L7.84 6.77933L6.67666 7.73733M12.25 12.25L10.5 10.5M3.24466 12.75H3.25V12.7553H3.24466V12.75Z",stroke:"#94A3B8",strokeLinecap:"round",strokeLinejoin:"round"})),$t=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))})),Ht=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4v16m8-8H4"}))})),Gt=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))})),Vt=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),Qt=({type:e,label:t,href:a,onClick:s,taskId:l,disabled:c=!1,isLoading:i=!1})=>{const m=((e,t,a,s,r,o)=>{const n="link"!==e&&"add"!==e&&!r&&o,l={variant:"primary",id:`cta-button-${s}`,className:n?"yst-flex yst-items-center":"yst-flex yst-items-center yst-gap-1",disabled:r,isLoading:n};return["link","add"].includes(e)&&a?l.href=a:l.onClick=t,l})(e,(0,n.useCallback)((()=>{s&&s(l)}),[s,l]),a,l,c,i);return"add"===e?React.createElement(o.Button,u({},m,{as:c?"button":"a"}),React.createElement(Ht,{className:"yst-w-4 yst-text-white"}),t):"delete"===e?React.createElement(o.Button,u({},m,{variant:"error"}),m.isLoading?null:React.createElement(Gt,{className:"yst-w-4 yst-text-white"}),m.isLoading?(0,r.__)("Deleting…","wordpress-seo"):t):"link"===e?React.createElement(o.Button,u({},m,{as:c?"button":"a"}),t,React.createElement(Vt,{className:"yst-w-4 yst-text-white rtl:yst-rotate-180"})):React.createElement(o.Button,m,m.isLoading?(0,r.__)("Generating…","wordpress-seo"):t)},qt=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 11l7-7 7 7M5 19l7-7 7 7"}))})),Jt=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 8h16M4 16h16"}))})),Ut=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 13l-7 7-7-7m14-8l-7 7-7-7"}))})),Kt={low:(0,r.__)("Low","wordpress-seo"),medium:(0,r.__)("Medium","wordpress-seo"),high:(0,r.__)("High","wordpress-seo")},Yt=({level:e="low",isLoading:t=!1,className:a=""})=>{const s=(0,o.useSvgAria)();return React.createElement("span",{className:c()("yst-text-xs yst-text-slate-600 yst-flex yst-gap-1",a)},t?React.createElement(React.Fragment,null,React.createElement(Jt,u({className:"yst-w-4 yst-text-slate-400"},s)),React.createElement(o.SkeletonLoader,{className:"yst-w-11 yst-h-[18px]"})):React.createElement(React.Fragment,null,(e=>{const t=(0,o.useSvgAria)();switch(e){case"high":return React.createElement(qt,u({className:"yst-w-4 yst-text-red-600"},t));case"medium":return React.createElement(Jt,u({className:"yst-w-4 yst-text-amber-500"},t));default:return React.createElement(Ut,u({className:"yst-w-4 yst-text-slate-400"},t))}})(e),React.createElement("span",{className:"sm:yst-inline-block yst-hidden"},Kt[e])))},Xt=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"}))})),Zt=({minutes:e,isLoading:t=!1})=>{const a=(0,o.useSvgAria)();return React.createElement("span",{className:"yst-text-xs yst-text-slate-600 yst-flex yst-gap-0.5 yst-items-center"},React.createElement(Xt,u({className:"yst-w-4 yst-text-slate-400"},a)),t?React.createElement(o.SkeletonLoader,{className:"yst-w-8 yst-h-[18px] yst-ms-0.5"}):React.createElement(React.Fragment,null,e,/* translators: This is a unit abbreviation for minutes. */ +(0,r._x)("m","Abbreviation for minutes","wordpress-seo")))},ea=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),ta=()=>{const e=(0,o.useSvgAria)();return React.createElement("span",{className:"yst-text-xs yst-text-slate-600 yst-flex yst-gap-0.5 yst-items-center"},React.createElement(ea,u({className:"yst-w-4 yst-text-green-500"},e)),(0,r.__)("Completed","wordpress-seo"))},aa=({isOpen:e,onClose:t,callToAction:a,title:s,duration:n,priority:l,why:c,how:i,taskId:m,isCompleted:d,isLoading:p=!1,isError:y=!1,errorMessage:g})=>{const h=(0,o.useSvgAria)();return React.createElement(o.Modal,{isOpen:e,onClose:t,position:"center"},React.createElement(o.Modal.Panel,{className:"yst-p-0"},React.createElement(o.Modal.Container,null,React.createElement(o.Modal.Container.Header,{className:"yst-p-6 yst-flex yst-gap-3 yst-border-b yst-border-slate-200 yst-items-start"},React.createElement(Bt,u({className:"yst-w-4 yst-fill-primary-500 yst-pt-1 lg:yst-pt-0.5"},h)),React.createElement("div",null,React.createElement(o.Modal.Title,{as:"h3",className:"yst-mb-2 yst-text-lg "+(d?"yst-text-slate-500":"")},s),React.createElement("div",{className:"yst-flex yst-gap-1"},d&&React.createElement(React.Fragment,null,React.createElement(ta,null),"·"),React.createElement(Zt,{minutes:n}),"· ",React.createElement(Yt,{level:l})))),React.createElement(o.Modal.Container.Content,{className:"yst-py-2 yst-px-12"},y&&React.createElement(o.Alert,{role:"alert",variant:"error",className:"yst-mt-4 yst-mb-2"},React.createElement("p",{className:"yst-font-medium yst-mb-2"},(0,r.__)("Oops! Something went wrong.","wordpress-seo")),React.createElement("p",null,g||(0,r.__)("Please try again.","wordpress-seo")," ",(0,r.__)("If the issue continues, our support team is here to help!","wordpress-seo"))),React.createElement("ul",null,React.createElement("li",{className:"yst-flex yst-flex-col yst-py-4 yst-items-start last:yst-border-b-0 yst-border-b yst-border-slate-200"},React.createElement("div",{className:"yst-flex yst-gap-1 yst-items-center yst-mb-1"},React.createElement($t,u({},h,{className:"yst-w-4 yst-text-slate-400 yst-flex-shrink-0"})),React.createElement(o.Title,{as:"h4",className:"yst-text-sm yst-font-medium yst-text-slate-800"},(0,r.__)("Why this matters","wordpress-seo"))),React.createElement("p",{className:"yst-text-xs yst-text-slate-600"},c)),i&&React.createElement("li",{className:"yst-flex yst-flex-col yst-py-4 yst-items-start"},React.createElement("div",{className:"yst-flex yst-gap-1 yst-items-center yst-mb-1"},React.createElement(zt,u({},h,{className:"yst-w-4 yst-text-slate-400 yst-flex-shrink-0"})),React.createElement(o.Title,{as:"h4",className:"yst-text-sm yst-font-medium yst-text-slate-800"},(0,r.__)("How to solve","wordpress-seo"))),React.createElement("p",{className:"yst-text-xs yst-text-slate-600"},i)))),React.createElement(o.Modal.Container.Footer,{className:"yst-flex yst-justify-end yst-gap-2 yst-p-6 yst-border-t yst-border-slate-200"},React.createElement(o.Button,{variant:"secondary",onClick:t},(0,r.__)("Close","wordpress-seo")),React.createElement(Qt,u({},a,{taskId:m,disabled:d,isLoading:p}))))))},sa=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"}))})),ra={premium:{label:"Premium",variant:"upsell"},woo:{label:"Woo SEO",variant:"info"},ai:{label:"AI+",variant:"ai"}},oa=({type:e})=>React.createElement(o.Badge,{variant:ra[e].variant,size:"small",className:"yst-no-underline"},ra[e].label),na=e=>React.createElement("svg",u({},e,{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),React.createElement("circle",{cx:"6.4",cy:"6.4",r:"6.4",fill:"currentColor"})),la=["premium","woo","ai"],ca=({title:t,duration:a,priority:s,badge:n,isCompleted:l,onClick:i,children:m})=>{const d=(0,o.useSvgAria)(),[p,,,y,g]=(0,o.useToggleState)(!1),h=(0,e.useMemo)((()=>p?"yst-bg-slate-50":"group-hover:yst-bg-slate-50"),[p]);return React.createElement(o.Table.Row,{className:"yst-cursor-pointer yst-group",onClick:i,"aria-label":(0,r.__)("Open task modal","wordpress-seo")},React.createElement(o.Table.Cell,{className:h},React.createElement("div",{className:"yst-flex yst-items-center yst-gap-2"},l?React.createElement(ea,u({className:"yst-w-4 yst-text-green-500 yst-shrink-0"},d)):React.createElement(na,u({className:"yst-w-4 yst-text-slate-200 yst-shrink-0"},d)),React.createElement("button",{"aria-haspopup":"dialog",type:"button",className:c()("yst-font-medium focus:yst-outline-none focus-visible:yst-outline-none yst-text-start",l?"yst-text-slate-500":"yst-text-slate-800 hover:yst-text-slate-900",p?"yst-underline":"group-hover:yst-underline"),onFocus:y,onBlur:g},t,React.createElement("span",{className:"yst-sr-only"},l?(0,r.__)("(Completed)","wordpress-seo"):(0,r.__)("(Not completed)","wordpress-seo"))),la.includes(n)&&React.createElement(oa,{type:n}))),React.createElement(o.Table.Cell,{className:c()(h,l?"yst-opacity-50":"")},React.createElement(Zt,{minutes:a})),React.createElement(o.Table.Cell,{className:c()("yst-pe-5",h)},React.createElement("div",{className:"yst-flex yst-justify-between"},React.createElement(Yt,{level:s,className:l?"yst-opacity-50":""}),React.createElement(sa,u({className:c()("yst-w-4 yst-text-slate-600 rtl:yst-rotate-180 yst-transition yst-duration-300 yst-ease-in-out yst-shrink-0",p?"yst-text-slate-800 yst-translate-x-2":"group-hover:yst-text-slate-800 group-hover:yst-translate-x-2")},d))),m))};ca.Loading=({title:e})=>{const t=(0,o.useSvgAria)();return React.createElement(o.Table.Row,null,React.createElement(o.Table.Cell,{className:"yst-font-medium yst-text-slate-800"},React.createElement("div",{className:"yst-flex yst-items-center yst-gap-2"},React.createElement(na,u({className:"yst-w-4 yst-text-slate-200"},t)),React.createElement(o.SkeletonLoader,{className:"yst-h-[18px]"},e))),React.createElement(o.Table.Cell,null,React.createElement(Zt,{isLoading:!0})),React.createElement(o.Table.Cell,null,React.createElement("div",{className:"yst-flex yst-justify-between"},React.createElement(Yt,{isLoading:!0}),React.createElement(sa,u({className:"yst-w-4 yst-text-slate-600 rtl:yst-rotate-180"},t)))))};const ia=()=>React.createElement(React.Fragment,null,React.createElement(o.SkeletonLoader,{className:"yst-w-[184px] yst-h-1.5"}),React.createElement(o.SkeletonLoader,{className:"yst-w-9 yst-h-5"})),ma=()=>React.createElement(React.Fragment,null,React.createElement("div",{className:"yst-w-[184px] yst-h-1.5 yst-bg-slate-200 yst-rounded"}),React.createElement("span",{className:"yst-w-9 yst-h-5 yst-bg-slate-200 yst-rounded"})),da=({children:e})=>React.createElement("div",null,React.createElement(o.Title,{as:"h2",className:"yst-text-lg yst-font-medium yst-text-slate-900 yst-mb-2"},(0,r.__)("Tasks","wordpress-seo")),React.createElement("div",{className:"yst-flex yst-gap-3 yst-items-center"},e)),ua=({completedTasks:e,totalTasks:t,isLoading:a})=>{if(a)return React.createElement(da,null,React.createElement(ia,null));if(!t||e>t)return React.createElement(da,null,React.createElement(ma,null));const s=(0,r.sprintf)(/* translators: %1$d expands to the number of completed tasks, %2$d expands to the total number of tasks. */ +(0,r.__)("%1$d out of %2$d tasks completed","wordpress-seo"),e,t);return React.createElement(da,null,React.createElement(o.ProgressBar,{label:(0,r.__)("Tasks Progress","wordpress-seo"),progress:e,min:0,max:t,className:"yst-w-[184px] yst-h-1.5",progressClassName:"yst-bg-green-500"}),React.createElement("span",{className:"yst-sr-only"},s),React.createElement("span",{className:"yst-text-tiny yst-font-medium yst-leading-5"},React.createElement("span",{className:"yst-text-slate-600"},e),React.createElement("span",{className:"yst-text-slate-500"},"/",t)))},pa=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),ya=e.forwardRef((function(t,a){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"}))})),ga=({message:e})=>{const t=(0,n.useCallback)((()=>{window.location.reload()}),[]);return(0,n.useEffect)((()=>{e&&console.error("Error fetching tasks:",e)}),[e]),React.createElement(o.Table.Row,null,React.createElement(o.Table.Cell,{colSpan:3,className:"yst-text-center lg:yst-py-[155px] yst-py-10"},React.createElement("div",{className:"yst-flex yst-justify-center yst-items-center yst-flex-col yst-max-w-[300px] yst-m-auto"},React.createElement("div",{className:"yst-rounded-full yst-bg-red-100 yst-p-2 yst-w-12 yst-h-12 yst-flex yst-items-center yst-justify-center yst-mb-4 yst-m-auto"},React.createElement(pa,{className:"yst-h-7 yst-w-7 yst-text-red-600"})),React.createElement(o.Title,{className:"yst-mb-2",size:"2",as:"h3"},(0,r.__)("Oops! Something went wrong","wordpress-seo")),React.createElement("p",null,(0,r.__)("Please refresh the page. If the issue continues, our support team is here to help!","wordpress-seo")),React.createElement(o.Button,{className:"yst-mt-6 yst-ps-2 yst-flex yst-items-center yst-gap-1.5",onClick:t},React.createElement(ya,{className:"yst-w-4 yst-h-4"}),(0,r.__)("Refresh Page","wordpress-seo")))))},ha="taskList",fa="completeTask",Ea=(0,C.createSlice)({name:ha,initialState:{enabled:!1,tasks:{},endpoints:{completeTask:"",getTasks:""},nonce:""},reducers:{setTasks(e,{payload:t}){(0,L.keys)(t).forEach((e=>{t[e].status=He,t[e].error=null,t[e].badge=null})),e.tasks=t},setTaskCompleted(e,{payload:t}){e.tasks[t]&&(e.tasks[t].isCompleted=!0)},resetTaskError(e,{payload:t}){e.tasks[t]&&e.tasks[t].status===Ge&&(e.tasks[t].error=null,e.tasks[t].status=He)}},extraReducers:e=>{e.addCase(`${fa}/${Ve}`,((e,{payload:{id:t}})=>{e.tasks[t].status="loading"})),e.addCase(`${fa}/${Qe}`,((e,{payload:{id:t}})=>{e.tasks[t].status="success",e.tasks[t].error=null,e.tasks[t].isCompleted=!0})),e.addCase(`${fa}/${qe}`,((e,{payload:{error:t,id:a}})=>{e.tasks[a].status=Ge,e.tasks[a].error=t.message}))}}),wa=Ea.getInitialState,Ra={selectIsTaskListEnabled:e=>(0,L.get)(e,[ha,"enabled"],!1),selectTasks:e=>(0,L.get)(e,[ha,"tasks"],{}),selectTaskStatus:(e,t)=>(0,L.get)(e,[ha,"tasks",t,"status"],He),selectTaskError:(e,t)=>(0,L.get)(e,[ha,"tasks",t,"error"],null),selectTasksEndpoints:e=>(0,L.get)(e,[ha,"endpoints"],{}),selectNonce:e=>(0,L.get)(e,[ha,"nonce"],""),selectIsTaskCompleted:(e,t)=>(0,L.get)(e,[ha,"tasks",t,"isCompleted"],null)},va={...Ea.actions,completeTask:function*(e,t,a){yield{type:`${fa}/${Ve}`,payload:{id:e}};try{const s=yield{type:fa,payload:{id:e,nonce:a,endpoint:t}};if(!s.success)throw new Error(s.error);return{type:`${fa}/${Qe}`,payload:{id:e}}}catch(t){return{type:`${fa}/${qe}`,payload:{error:t,id:e}}}}},ba={[fa]:async({payload:e})=>{const t=new URLSearchParams({"options[task]":e.id}),a=`${e.endpoint}?${t.toString()}`;try{const t=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":e.nonce}});return await t.json()}catch(e){return e}}},ka=Ea.reducer})(),(window.yoast=window.yoast||{}).dashboardFrontend=s})(); \ No newline at end of file @@ -1 +1 @@ -(()=>{var e={94184:(e,t)=>{var n;!function(){"use strict";var a={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var s=typeof n;if("string"===s||"number"===s)e.push(n);else if(Array.isArray(n)){if(n.length){var o=r.apply(null,n);o&&e.push(o)}}else if("object"===s){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var i in n)a.call(n,i)&&n[i]&&e.push(i)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},35800:function(e,t,n){!function(e,t){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=n(t);function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var s={error:null},o=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a))||this).state=s,t.resetErrorBoundary=function(){for(var e,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];null==t.props.onReset||(e=t.props).onReset.apply(e,a),t.reset()},t}var n,o;o=e,(n=t).prototype=Object.create(o.prototype),n.prototype.constructor=n,r(n,o),t.getDerivedStateFromError=function(e){return{error:e}};var i=t.prototype;return i.reset=function(){this.setState(s)},i.componentDidCatch=function(e,t){var n,a;null==(n=(a=this.props).onError)||n.call(a,e,t)},i.componentDidUpdate=function(e,t){var n,a,r,s,o=this.state.error,i=this.props.resetKeys;null!==o&&null!==t.error&&(void 0===(r=e.resetKeys)&&(r=[]),void 0===(s=i)&&(s=[]),r.length!==s.length||r.some((function(e,t){return!Object.is(e,s[t])})))&&(null==(n=(a=this.props).onResetKeysChange)||n.call(a,e.resetKeys,i),this.reset())},i.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,r=t.FallbackComponent,s=t.fallback;if(null!==e){var o={error:e,resetErrorBoundary:this.resetErrorBoundary};if(a.isValidElement(s))return s;if("function"==typeof n)return n(o);if(r)return a.createElement(r,o);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(a.Component);e.ErrorBoundary=o,e.useErrorHandler=function(e){var t=a.useState(null),n=t[0],r=t[1];if(null!=e)throw e;if(null!=n)throw n;return r},e.withErrorBoundary=function(e,t){var n=function(n){return a.createElement(o,t,a.createElement(e,n))},r=e.displayName||e.name||"Unknown";return n.displayName="withErrorBoundary("+r+")",n},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(99196))},99196:e=>{"use strict";e.exports=window.React}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var s=t[a]={exports:{}};return e[a].call(s.exports,s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(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=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{"use strict";function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},e.apply(this,arguments)}n.r(a),n.d(a,{Alert:()=>O,Autocomplete:()=>Bt,AutocompleteField:()=>_a,Badge:()=>$t,Button:()=>Pt,Card:()=>Da,Checkbox:()=>Wt,CheckboxGroup:()=>Aa,ChildrenLimiter:()=>Wa,Code:()=>Yt,DropdownMenu:()=>Ao,ErrorBoundary:()=>Xt,FILE_IMPORT_STATUS:()=>nr,FeatureUpsell:()=>Xa,FileImport:()=>ir,Label:()=>Ut,Link:()=>en,Modal:()=>ts,Notifications:()=>ls,Pagination:()=>Ns,Paper:()=>on,Popover:()=>Ps,ProgressBar:()=>cn,Radio:()=>dn,RadioGroup:()=>Is,Root:()=>Ds,Select:()=>Mn,SelectField:()=>As,SidebarNavigation:()=>ao,SkeletonLoader:()=>qn,Spinner:()=>Ct,Stepper:()=>zo,Table:()=>Kn,TagField:()=>so,TagInput:()=>Yn,TextField:()=>io,TextInput:()=>Zn,Textarea:()=>ea,TextareaField:()=>co,Title:()=>aa,Toast:()=>da,Toggle:()=>wa,ToggleField:()=>po,Tooltip:()=>Sa,TooltipContainer:()=>yo,TooltipTrigger:()=>vo,TooltipWithContext:()=>bo,VALIDATION_ICON_MAP:()=>v,VALIDATION_VARIANTS:()=>y,ValidationIcon:()=>h,ValidationInput:()=>It,ValidationMessage:()=>x,useBeforeUnload:()=>$o,useDescribedBy:()=>Pa,useKeydown:()=>Vo,useMediaQuery:()=>Wo,useModalContext:()=>Qr,useNavigationContext:()=>to,useNotificationsContext:()=>as,usePopoverContext:()=>Rs,usePrevious:()=>Uo,useRootContext:()=>Ko,useSvgAria:()=>u,useToastContext:()=>sa,useToggleState:()=>Ua,useTooltipContext:()=>fo});var t=n(94184),r=n.n(t);const s=window.yoast.propTypes;var o=n.n(s),i=n(99196),l=n.n(i);const c=window.lodash,u=(e=null)=>(0,i.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]),d=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),p=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),m=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"}))})),f=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),y={success:"success",warning:"warning",info:"info",error:"error"},v={success:d,warning:p,info:m,error:f},b={variant:{success:"yst-validation-icon--success",warning:"yst-validation-icon--warning",info:"yst-validation-icon--info",error:"yst-validation-icon--error"}},g=({variant:t="info",className:n="",...a})=>{const s=(0,i.useMemo)((()=>v[t]),[t]),o=u();return s?l().createElement(s,e({},o,a,{className:r()("yst-validation-icon",b.variant[t],n)})):null};g.propTypes={variant:o().oneOf((0,c.values)(y)),className:o().string};const h=g,N={variant:{success:"yst-validation-message--success",warning:"yst-validation-message--warning",info:"yst-validation-message--info",error:"yst-validation-message--error"}},E=({as:t="p",variant:n="info",children:a,className:s="",...o})=>l().createElement(t,e({},o,{className:r()("yst-validation-message",N.variant[n],s)}),a);E.propTypes={as:o().elementType,variant:o().oneOf((0,c.keys)(N.variant)),message:o().node,className:o().string,children:o().node.isRequired};const x=E,R={variant:{info:"yst-alert--info",warning:"yst-alert--warning",success:"yst-alert--success",error:"yst-alert--error"}},w={alert:"alert",status:"status"},T=(0,i.forwardRef)((({children:t,role:n="status",as:a="span",variant:s="info",className:o="",...i},c)=>l().createElement(a,e({ref:c,className:r()("yst-alert",R.variant[s],o),role:w[n]},i),l().createElement(h,{variant:s,className:"yst-alert__icon"}),l().createElement(x,{as:"div",variant:s,className:"yst-alert__message"},t)))),C={children:o().node.isRequired,as:o().elementType,variant:o().oneOf(Object.keys(R.variant)),className:o().string,role:o().oneOf(Object.keys(w))};T.displayName="Alert",T.propTypes=C,T.defaultProps={as:"span",variant:"info",className:"",role:"status"};const O=T;var S=Object.defineProperty,P=(e,t,n)=>(((e,t,n)=>{t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let k=new class{constructor(){P(this,"current",this.detect()),P(this,"handoffState","pending"),P(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},_=(e,t)=>{k.isServer?(0,i.useEffect)(e,t):(0,i.useLayoutEffect)(e,t)};function I(e){let t=(0,i.useRef)(e);return _((()=>{t.current=e}),[e]),t}function L(e,t){let[n,a]=(0,i.useState)(e),r=I(e);return _((()=>a(r.current)),[r,a,...t]),n}function F(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function M(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener:(e,t,a,r)=>(e.addEventListener(t,a,r),n.add((()=>e.removeEventListener(t,a,r)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return F((()=>{t.current&&e[0]()})),n.add((()=>{t.current=!1}))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function D(){let[e]=(0,i.useState)(M);return(0,i.useEffect)((()=>()=>e.dispose()),[e]),e}let q=function(e){let t=I(e);return i.useCallback(((...e)=>t.current(...e)),[t])};function A(){let[e,t]=(0,i.useState)(k.isHandoffComplete);return e&&!1===k.isHandoffComplete&&t(!1),(0,i.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,i.useEffect)((()=>k.handoff()),[]),e}var B;let j=null!=(B=i.useId)?B:function(){let e=A(),[t,n]=i.useState(e?()=>k.nextId():null);return _((()=>{null===t&&n(k.nextId())}),[t]),null!=t?""+t:void 0};function H(e,t,...n){if(e in t){let a=t[e];return"function"==typeof a?a(...n):a}let a=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,H),a}function z(e){return k.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let $=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var V,U,K=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(K||{}),W=((U=W||{})[U.Error=0]="Error",U[U.Overflow=1]="Overflow",U[U.Success=2]="Success",U[U.Underflow=3]="Underflow",U),G=((V=G||{})[V.Previous=-1]="Previous",V[V.Next=1]="Next",V);function Q(e=document.body){return null==e?[]:Array.from(e.querySelectorAll($)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var Y=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Y||{});function X(e,t=0){var n;return e!==(null==(n=z(e))?void 0:n.body)&&H(t,{0:()=>e.matches($),1(){let t=e;for(;null!==t;){if(t.matches($))return!0;t=t.parentElement}return!1}})}function Z(e){let t=z(e);M().nextFrame((()=>{t&&!X(t.activeElement,0)&&J(e)}))}function J(e){null==e||e.focus({preventScroll:!0})}let ee=["textarea","input"].join(",");function te(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let a=t(e),r=t(n);if(null===a||null===r)return 0;let s=a.compareDocumentPosition(r);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function ne(e,t,{sorted:n=!0,relativeTo:a=null,skipElements:r=[]}={}){let s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?n?te(e):e:Q(e);r.length>0&&o.length>1&&(o=o.filter((e=>!r.includes(e)))),a=null!=a?a:s.activeElement;let i,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,o.indexOf(a))-1;if(4&t)return Math.max(0,o.indexOf(a))+1;if(8&t)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=o.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}i=o[e],null==i||i.focus(u),d+=l}while(i!==s.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,ee))&&n}(i)&&i.select(),i.hasAttribute("tabindex")||i.setAttribute("tabindex","0"),2}function ae(e,t,n){let a=I(t);(0,i.useEffect)((()=>{function t(e){a.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function re(e,t,n=!0){let a=(0,i.useRef)(!1);function r(n,r){if(!a.current||n.defaultPrevented)return;let s=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),o=r(n);if(null!==o&&o.getRootNode().contains(o)){for(let e of s){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(o)||n.composed&&n.composedPath().includes(t))return}return!X(o,Y.Loose)&&-1!==o.tabIndex&&n.preventDefault(),t(n,o)}}(0,i.useEffect)((()=>{requestAnimationFrame((()=>{a.current=n}))}),[n]);let s=(0,i.useRef)(null);ae("mousedown",(e=>{var t,n;a.current&&(s.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),ae("click",(e=>{!s.current||(r(e,(()=>s.current)),s.current=null)}),!0),ae("blur",(e=>r(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function se(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function oe(e,t){let[n,a]=(0,i.useState)((()=>se(e)));return _((()=>{a(se(e))}),[e.type,e.as]),_((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&a("button")}),[n,t]),n}let ie=Symbol();function le(e,t=!0){return Object.assign(e,{[ie]:t})}function ce(...e){let t=(0,i.useRef)(e);(0,i.useEffect)((()=>{t.current=e}),[e]);let n=q((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[ie])))?void 0:n}function ue({container:e,accept:t,walk:n,enabled:a=!0}){let r=(0,i.useRef)(t),s=(0,i.useRef)(n);(0,i.useEffect)((()=>{r.current=t,s.current=n}),[t,n]),_((()=>{if(!e||!a)return;let t=z(e);if(!t)return;let n=r.current,o=s.current,i=Object.assign((e=>n(e)),{acceptNode:n}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,i,!1);for(;l.nextNode();)o(l.currentNode)}),[e,a,r,s])}var de=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(de||{});function pe(e,t){let n=t.resolveItems();if(n.length<=0)return null;let a=t.resolveActiveIndex(),r=null!=a?a:-1,s=(()=>{switch(e.focus){case 0:return n.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=n.slice().reverse().findIndex(((e,n,a)=>!(-1!==r&&a.length-n-1>=r||t.resolveDisabled(e))));return-1===e?e:n.length-1-e}case 2:return n.findIndex(((e,n)=>!(n<=r||t.resolveDisabled(e))));case 3:{let e=n.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 4:return n.findIndex((n=>t.resolveId(n)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===s?a:s}function me(...e){return e.filter(Boolean).join(" ")}var fe,ye=((fe=ye||{})[fe.None=0]="None",fe[fe.RenderStrategy=1]="RenderStrategy",fe[fe.Static=2]="Static",fe),ve=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ve||{});function be({ourProps:e,theirProps:t,slot:n,defaultTag:a,features:r,visible:s=!0,name:o}){let i=he(t,e);if(s)return ge(i,n,a,o);let l=null!=r?r:0;if(2&l){let{static:e=!1,...t}=i;if(e)return ge(t,n,a,o)}if(1&l){let{unmount:e=!0,...t}=i;return H(e?0:1,{0:()=>null,1:()=>ge({...t,hidden:!0,style:{display:"none"}},n,a,o)})}return ge(i,n,a,o)}function ge(e,t={},n,a){var r;let{as:s=n,children:o,refName:l="ref",...c}=xe(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof o?o(t):o;c.className&&"function"==typeof c.className&&(c.className=c.className(t));let p={};if(t){let e=!1,n=[];for(let[a,r]of Object.entries(t))"boolean"==typeof r&&(e=!0),!0===r&&n.push(a);e&&(p["data-headlessui-state"]=n.join(" "))}if(s===i.Fragment&&Object.keys(Ee(c)).length>0){if(!(0,i.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${a} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=me(null==(r=d.props)?void 0:r.className,c.className),t=e?{className:e}:{};return(0,i.cloneElement)(d,Object.assign({},he(d.props,Ee(xe(c,["ref"]))),p,u,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(d.ref,u.ref),t))}return(0,i.createElement)(s,Object.assign({},xe(c,["ref"]),s!==i.Fragment&&u,s!==i.Fragment&&p),d)}function he(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let a of e)for(let e in a)e.startsWith("on")&&"function"==typeof a[e]?(null!=n[e]||(n[e]=[]),n[e].push(a[e])):t[e]=a[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...a){let r=n[e];for(let e of r){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...a)}}});return t}function Ne(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Ee(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function xe(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function Re(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let a=""===(null==t?void 0:t.getAttribute("disabled"));return(!a||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&a}function we(e={},t=null,n=[]){for(let[a,r]of Object.entries(e))Ce(n,Te(t,a),r);return n}function Te(e,t){return e?e+"["+t+"]":t}function Ce(e,t,n){if(Array.isArray(n))for(let[a,r]of n.entries())Ce(e,Te(t,a.toString()),r);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):we(n,t,e)}var Oe=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Oe||{});let Se=Ne((function(e,t){let{features:n=1,...a}=e;return be({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:a,slot:{},defaultTag:"div",name:"Hidden"})})),Pe=(0,i.createContext)(null);Pe.displayName="OpenClosedContext";var ke=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ke||{});function _e(){return(0,i.useContext)(Pe)}function Ie({value:e,children:t}){return i.createElement(Pe.Provider,{value:e},t)}var Le=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Le||{});function Fe(e,t,n){let[a,r]=(0,i.useState)(n),s=void 0!==e,o=(0,i.useRef)(s),l=(0,i.useRef)(!1),c=(0,i.useRef)(!1);return!s||o.current||l.current?!s&&o.current&&!c.current&&(c.current=!0,o.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,o.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[s?e:a,q((e=>(s||r(e),null==t?void 0:t(e))))]}function Me(e,t){let n=(0,i.useRef)([]),a=q(e);(0,i.useEffect)((()=>{let e=[...n.current];for(let[r,s]of t.entries())if(n.current[r]!==s){let r=a(t,e);return n.current=t,r}}),[a,...t])}function De(e){return[e.screenX,e.screenY]}function qe(){let e=(0,i.useRef)([-1,-1]);return{wasMoved(t){let n=De(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=De(t)}}}var Ae=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ae||{}),Be=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Be||{}),je=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(je||{}),He=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(He||{});function ze(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,a=te(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),r=n?a.indexOf(n):null;return-1===r&&(r=null),{options:a,activeOptionIndex:r}}let $e={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,a=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==a&&(t=a),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let a=ze(e);if(null===a.activeOptionIndex){let e=a.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(a.activeOptionIndex=e)}let r=pe(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...a,activeOptionIndex:r,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},a=ze(e,(e=>[...e,n]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(n));let r={...e,...a,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(r.activeOptionIndex=0),r},4:(e,t)=>{let n=ze(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},Ve=(0,i.createContext)(null);function Ue(e){let t=(0,i.useContext)(Ve);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ue),t}return t}Ve.displayName="ComboboxActionsContext";let Ke=(0,i.createContext)(null);function We(e){let t=(0,i.useContext)(Ke);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,We),t}return t}function Ge(e,t){return H(t.type,$e,e,t)}Ke.displayName="ComboboxDataContext";let Qe=i.Fragment,Ye=Ne((function(e,t){let{value:n,defaultValue:a,onChange:r,name:s,by:o=((e,t)=>e===t),disabled:l=!1,__demoMode:c=!1,nullable:u=!1,multiple:d=!1,...p}=e,[m=(d?[]:void 0),f]=Fe(n,r,a),[y,v]=(0,i.useReducer)(Ge,{dataRef:(0,i.createRef)(),comboboxState:c?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),b=(0,i.useRef)(!1),g=(0,i.useRef)({static:!1,hold:!1}),h=(0,i.useRef)(null),N=(0,i.useRef)(null),E=(0,i.useRef)(null),x=(0,i.useRef)(null),R=q("string"==typeof o?(e,t)=>{let n=o;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:o),w=(0,i.useCallback)((e=>H(T.mode,{1:()=>m.some((t=>R(t,e))),0:()=>R(m,e)})),[m]),T=(0,i.useMemo)((()=>({...y,optionsPropsRef:g,labelRef:h,inputRef:N,buttonRef:E,optionsRef:x,value:m,defaultValue:a,disabled:l,mode:d?1:0,get activeOptionIndex(){if(b.current&&null===y.activeOptionIndex&&y.options.length>0){let e=y.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return y.activeOptionIndex},compare:R,isSelected:w,nullable:u,__demoMode:c})),[m,a,l,d,u,c,y]);_((()=>{y.dataRef.current=T}),[T]),re([T.buttonRef,T.inputRef,T.optionsRef],(()=>A.closeCombobox()),0===T.comboboxState);let C=(0,i.useMemo)((()=>({open:0===T.comboboxState,disabled:l,activeIndex:T.activeOptionIndex,activeOption:null===T.activeOptionIndex?null:T.options[T.activeOptionIndex].dataRef.current.value,value:m})),[T,l,m]),O=q((e=>{let t=T.options.find((t=>t.id===e));!t||M(t.dataRef.current.value)})),S=q((()=>{if(null!==T.activeOptionIndex){let{dataRef:e,id:t}=T.options[T.activeOptionIndex];M(e.current.value),A.goToOption(de.Specific,t)}})),P=q((()=>{v({type:0}),b.current=!0})),k=q((()=>{v({type:1}),b.current=!1})),I=q(((e,t,n)=>(b.current=!1,e===de.Specific?v({type:2,focus:de.Specific,id:t,trigger:n}):v({type:2,focus:e,trigger:n})))),L=q(((e,t)=>(v({type:3,id:e,dataRef:t}),()=>v({type:4,id:e})))),F=q((e=>(v({type:5,id:e}),()=>v({type:5,id:null})))),M=q((e=>H(T.mode,{0:()=>null==f?void 0:f(e),1(){let t=T.value.slice(),n=t.findIndex((t=>R(t,e)));return-1===n?t.push(e):t.splice(n,1),null==f?void 0:f(t)}}))),A=(0,i.useMemo)((()=>({onChange:M,registerOption:L,registerLabel:F,goToOption:I,closeCombobox:k,openCombobox:P,selectActiveOption:S,selectOption:O})),[]),B=null===t?{}:{ref:t},j=(0,i.useRef)(null),z=D();return(0,i.useEffect)((()=>{!j.current||void 0!==a&&z.addEventListener(j.current,"reset",(()=>{M(a)}))}),[j,M]),i.createElement(Ve.Provider,{value:A},i.createElement(Ke.Provider,{value:T},i.createElement(Ie,{value:H(T.comboboxState,{0:ke.Open,1:ke.Closed})},null!=s&&null!=m&&we({[s]:m}).map((([e,t],n)=>i.createElement(Se,{features:Oe.Hidden,ref:0===n?e=>{var t;j.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...Ee({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),be({ourProps:B,theirProps:p,slot:C,defaultTag:Qe,name:"Combobox"}))))})),Xe=Ne((function(e,t){var n,a,r,s;let o=j(),{id:l=`headlessui-combobox-input-${o}`,onChange:c,displayValue:u,type:d="text",...p}=e,m=We("Combobox.Input"),f=Ue("Combobox.Input"),y=ce(m.inputRef,t),v=(0,i.useRef)(!1),b=D();var g;Me((([e,t],[n,a])=>{v.current||!m.inputRef.current||(0===a&&1===t||e!==n)&&(m.inputRef.current.value=e)}),["function"==typeof u&&void 0!==m.value?null!=(g=u(m.value))?g:"":"string"==typeof m.value?m.value:"",m.comboboxState]),Me((([e],[t])=>{if(0===e&&1===t){let e=m.inputRef.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:a,selectionDirection:r}=e;e.value="",e.value=t,null!==r?e.setSelectionRange(n,a,r):e.setSelectionRange(n,a)}}),[m.comboboxState]);let h=(0,i.useRef)(!1),N=q((()=>{h.current=!0})),E=q((()=>{setTimeout((()=>{h.current=!1}))})),x=q((e=>{switch(v.current=!0,e.key){case Le.Backspace:case Le.Delete:if(0!==m.mode||!m.nullable)return;let t=e.currentTarget;b.requestAnimationFrame((()=>{""===t.value&&(f.onChange(null),m.optionsRef.current&&(m.optionsRef.current.scrollTop=0),f.goToOption(de.Nothing))}));break;case Le.Enter:if(v.current=!1,0!==m.comboboxState||h.current)return;if(e.preventDefault(),e.stopPropagation(),null===m.activeOptionIndex)return void f.closeCombobox();f.selectActiveOption(),0===m.mode&&f.closeCombobox();break;case Le.ArrowDown:return v.current=!1,e.preventDefault(),e.stopPropagation(),H(m.comboboxState,{0:()=>{f.goToOption(de.Next)},1:()=>{f.openCombobox()}});case Le.ArrowUp:return v.current=!1,e.preventDefault(),e.stopPropagation(),H(m.comboboxState,{0:()=>{f.goToOption(de.Previous)},1:()=>{f.openCombobox(),b.nextFrame((()=>{m.value||f.goToOption(de.Last)}))}});case Le.Home:if(e.shiftKey)break;return v.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(de.First);case Le.PageUp:return v.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(de.First);case Le.End:if(e.shiftKey)break;return v.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(de.Last);case Le.PageDown:return v.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(de.Last);case Le.Escape:return v.current=!1,0!==m.comboboxState?void 0:(e.preventDefault(),m.optionsRef.current&&!m.optionsPropsRef.current.static&&e.stopPropagation(),f.closeCombobox());case Le.Tab:if(v.current=!1,0!==m.comboboxState)return;0===m.mode&&f.selectActiveOption(),f.closeCombobox()}})),R=q((e=>{f.openCombobox(),null==c||c(e)})),w=q((()=>{v.current=!1})),T=L((()=>{if(m.labelId)return[m.labelId].join(" ")}),[m.labelId]),C=(0,i.useMemo)((()=>({open:0===m.comboboxState,disabled:m.disabled})),[m]);return be({ourProps:{ref:y,id:l,role:"combobox",type:d,"aria-controls":null==(n=m.optionsRef.current)?void 0:n.id,"aria-expanded":m.disabled?void 0:0===m.comboboxState,"aria-activedescendant":null===m.activeOptionIndex||null==(a=m.options[m.activeOptionIndex])?void 0:a.id,"aria-multiselectable":1===m.mode||void 0,"aria-labelledby":T,"aria-autocomplete":"list",defaultValue:null!=(s=null!=(r=e.defaultValue)?r:void 0!==m.defaultValue?null==u?void 0:u(m.defaultValue):null)?s:m.defaultValue,disabled:m.disabled,onCompositionStart:N,onCompositionEnd:E,onKeyDown:x,onChange:R,onBlur:w},theirProps:p,slot:C,defaultTag:"input",name:"Combobox.Input"})})),Ze=Ne((function(e,t){var n;let a=We("Combobox.Button"),r=Ue("Combobox.Button"),s=ce(a.buttonRef,t),o=j(),{id:l=`headlessui-combobox-button-${o}`,...c}=e,u=D(),d=q((e=>{switch(e.key){case Le.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===a.comboboxState&&r.openCombobox(),u.nextFrame((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Le.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===a.comboboxState&&(r.openCombobox(),u.nextFrame((()=>{a.value||r.goToOption(de.Last)}))),u.nextFrame((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Le.Escape:return 0!==a.comboboxState?void 0:(e.preventDefault(),a.optionsRef.current&&!a.optionsPropsRef.current.static&&e.stopPropagation(),r.closeCombobox(),u.nextFrame((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),p=q((e=>{if(Re(e.currentTarget))return e.preventDefault();0===a.comboboxState?r.closeCombobox():(e.preventDefault(),r.openCombobox()),u.nextFrame((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),m=L((()=>{if(a.labelId)return[a.labelId,l].join(" ")}),[a.labelId,l]),f=(0,i.useMemo)((()=>({open:0===a.comboboxState,disabled:a.disabled,value:a.value})),[a]);return be({ourProps:{ref:s,id:l,type:oe(e,a.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(n=a.optionsRef.current)?void 0:n.id,"aria-expanded":a.disabled?void 0:0===a.comboboxState,"aria-labelledby":m,disabled:a.disabled,onClick:p,onKeyDown:d},theirProps:c,slot:f,defaultTag:"button",name:"Combobox.Button"})})),Je=Ne((function(e,t){let n=j(),{id:a=`headlessui-combobox-label-${n}`,...r}=e,s=We("Combobox.Label"),o=Ue("Combobox.Label"),l=ce(s.labelRef,t);_((()=>o.registerLabel(a)),[a]);let c=q((()=>{var e;return null==(e=s.inputRef.current)?void 0:e.focus({preventScroll:!0})})),u=(0,i.useMemo)((()=>({open:0===s.comboboxState,disabled:s.disabled})),[s]);return be({ourProps:{ref:l,id:a,onClick:c},theirProps:r,slot:u,defaultTag:"label",name:"Combobox.Label"})})),et=ye.RenderStrategy|ye.Static,tt=Ne((function(e,t){let n=j(),{id:a=`headlessui-combobox-options-${n}`,hold:r=!1,...s}=e,o=We("Combobox.Options"),l=ce(o.optionsRef,t),c=_e(),u=null!==c?c===ke.Open:0===o.comboboxState;_((()=>{var t;o.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[o.optionsPropsRef,e.static]),_((()=>{o.optionsPropsRef.current.hold=r}),[o.optionsPropsRef,r]),ue({container:o.optionsRef.current,enabled:0===o.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let d=L((()=>{var e,t;return null!=(t=o.labelId)?t:null==(e=o.buttonRef.current)?void 0:e.id}),[o.labelId,o.buttonRef.current]);return be({ourProps:{"aria-labelledby":d,role:"listbox",id:a,ref:l},theirProps:s,slot:(0,i.useMemo)((()=>({open:0===o.comboboxState})),[o]),defaultTag:"ul",features:et,visible:u,name:"Combobox.Options"})})),nt=Ne((function(e,t){var n,a;let r=j(),{id:s=`headlessui-combobox-option-${r}`,disabled:o=!1,value:l,...c}=e,u=We("Combobox.Option"),d=Ue("Combobox.Option"),p=null!==u.activeOptionIndex&&u.options[u.activeOptionIndex].id===s,m=u.isSelected(l),f=(0,i.useRef)(null),y=I({disabled:o,value:l,domRef:f,textValue:null==(a=null==(n=f.current)?void 0:n.textContent)?void 0:a.toLowerCase()}),v=ce(t,f),b=q((()=>d.selectOption(s)));_((()=>d.registerOption(s,y)),[y,s]);let g=(0,i.useRef)(!u.__demoMode);_((()=>{if(!u.__demoMode)return;let e=M();return e.requestAnimationFrame((()=>{g.current=!0})),e.dispose}),[]),_((()=>{if(0!==u.comboboxState||!p||!g.current||0===u.activationTrigger)return;let e=M();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[f,p,u.comboboxState,u.activationTrigger,u.activeOptionIndex]);let h=q((e=>{if(o)return e.preventDefault();b(),0===u.mode&&d.closeCombobox()})),N=q((()=>{if(o)return d.goToOption(de.Nothing);d.goToOption(de.Specific,s)})),E=qe(),x=q((e=>E.update(e))),R=q((e=>{!E.wasMoved(e)||o||p||d.goToOption(de.Specific,s,0)})),w=q((e=>{!E.wasMoved(e)||o||!p||u.optionsPropsRef.current.hold||d.goToOption(de.Nothing)})),T=(0,i.useMemo)((()=>({active:p,selected:m,disabled:o})),[p,m,o]);return be({ourProps:{id:s,ref:v,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":m,disabled:void 0,onClick:h,onFocus:N,onPointerEnter:x,onMouseEnter:x,onPointerMove:R,onMouseMove:R,onPointerLeave:w,onMouseLeave:w},theirProps:c,slot:T,defaultTag:"li",name:"Combobox.Option"})})),at=Object.assign(Ye,{Input:Xe,Button:Ze,Label:Je,Options:tt,Option:nt});function rt(){let e=(0,i.useRef)(!1);return _((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function st(e,...t){e&&t.length>0&&e.classList.add(...t)}function ot(e,...t){e&&t.length>0&&e.classList.remove(...t)}function it(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let lt=(0,i.createContext)(null);lt.displayName="TransitionContext";var ct=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ct||{});let ut=(0,i.createContext)(null);function dt(e){return"children"in e?dt(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function pt(e,t){let n=I(e),a=(0,i.useRef)([]),r=rt(),s=D(),o=q(((e,t=ve.Hidden)=>{let o=a.current.findIndex((({el:t})=>t===e));-1!==o&&(H(t,{[ve.Unmount](){a.current.splice(o,1)},[ve.Hidden](){a.current[o].state="hidden"}}),s.microTask((()=>{var e;!dt(a)&&r.current&&(null==(e=n.current)||e.call(n))})))})),l=q((e=>{let t=a.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):a.current.push({el:e,state:"visible"}),()=>o(e,ve.Unmount)})),c=(0,i.useRef)([]),u=(0,i.useRef)(Promise.resolve()),d=(0,i.useRef)({enter:[],leave:[],idle:[]}),p=q(((e,n,a)=>{c.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(d.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?u.current=u.current.then((()=>null==t?void 0:t.wait.current)).then((()=>a(n))):a(n)})),m=q(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>n(t)))}));return(0,i.useMemo)((()=>({children:a,register:l,unregister:o,onStart:p,onStop:m,wait:u,chains:d})),[l,o,a,p,m,d,u])}function mt(){}ut.displayName="NestingContext";let ft=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function yt(e){var t;let n={};for(let a of ft)n[a]=null!=(t=e[a])?t:mt;return n}let vt=ye.RenderStrategy,bt=Ne((function(e,t){let{beforeEnter:n,afterEnter:a,beforeLeave:r,afterLeave:s,enter:o,enterFrom:l,enterTo:c,entered:u,leave:d,leaveFrom:p,leaveTo:m,...f}=e,y=(0,i.useRef)(null),v=ce(y,t),b=f.unmount?ve.Unmount:ve.Hidden,{show:g,appear:h,initial:N}=function(){let e=(0,i.useContext)(lt);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[E,x]=(0,i.useState)(g?"visible":"hidden"),R=function(){let e=(0,i.useContext)(ut);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:w,unregister:T}=R,C=(0,i.useRef)(null);(0,i.useEffect)((()=>w(y)),[w,y]),(0,i.useEffect)((()=>{if(b===ve.Hidden&&y.current)return g&&"visible"!==E?void x("visible"):H(E,{hidden:()=>T(y),visible:()=>w(y)})}),[E,y,w,T,g,b]);let O=I({enter:it(o),enterFrom:it(l),enterTo:it(c),entered:it(u),leave:it(d),leaveFrom:it(p),leaveTo:it(m)}),S=function(e){let t=(0,i.useRef)(yt(e));return(0,i.useEffect)((()=>{t.current=yt(e)}),[e]),t}({beforeEnter:n,afterEnter:a,beforeLeave:r,afterLeave:s}),P=A();(0,i.useEffect)((()=>{if(P&&"visible"===E&&null===y.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[y,E,P]);let L=N&&!h,F=!P||L||C.current===g?"idle":g?"enter":"leave",B=q((e=>H(e,{enter:()=>S.current.beforeEnter(),leave:()=>S.current.beforeLeave(),idle:()=>{}}))),j=q((e=>H(e,{enter:()=>S.current.afterEnter(),leave:()=>S.current.afterLeave(),idle:()=>{}}))),z=pt((()=>{x("hidden"),T(y)}),R);(function({container:e,direction:t,classes:n,onStart:a,onStop:r}){let s=rt(),o=D(),i=I(t);_((()=>{let t=M();o.add(t.dispose);let l=e.current;if(l&&"idle"!==i.current&&s.current)return t.dispose(),a.current(i.current),t.add(function(e,t,n,a){let r=n?"enter":"leave",s=M(),o=void 0!==a?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(a):()=>{};"enter"===r&&(e.removeAttribute("hidden"),e.style.display="");let i=H(r,{enter:()=>t.enter,leave:()=>t.leave}),l=H(r,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=H(r,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ot(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),st(e,...i,...c),s.nextFrame((()=>{ot(e,...c),st(e,...l),function(e,t){let n=M();if(!e)return n.dispose;let{transitionDuration:a,transitionDelay:r}=getComputedStyle(e),[s,o]=[a,r].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(s+o!==0){let a=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),a())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(ot(e,...i),st(e,...t.entered),o())))})),s.dispose}(l,n.current,"enter"===i.current,(()=>{t.dispose(),r.current(i.current)}))),t.dispose}),[t])})({container:y,classes:O,direction:F,onStart:I((e=>{z.onStart(y,e,B)})),onStop:I((e=>{z.onStop(y,e,j),"leave"===e&&!dt(z)&&(x("hidden"),T(y))}))}),(0,i.useEffect)((()=>{!L||(b===ve.Hidden?C.current=null:C.current=g)}),[g,L,E]);let $=f,V={ref:v};return h&&g&&k.isServer&&($={...$,className:me(f.className,...O.current.enter,...O.current.enterFrom)}),i.createElement(ut.Provider,{value:z},i.createElement(Ie,{value:H(E,{visible:ke.Open,hidden:ke.Closed})},be({ourProps:V,theirProps:$,defaultTag:"div",features:vt,visible:"visible"===E,name:"Transition.Child"})))})),gt=Ne((function(e,t){let{show:n,appear:a=!1,unmount:r,...s}=e,o=(0,i.useRef)(null),l=ce(o,t);A();let c=_e();if(void 0===n&&null!==c&&(n=H(c,{[ke.Open]:!0,[ke.Closed]:!1})),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=(0,i.useState)(n?"visible":"hidden"),p=pt((()=>{d("hidden")})),[m,f]=(0,i.useState)(!0),y=(0,i.useRef)([n]);_((()=>{!1!==m&&y.current[y.current.length-1]!==n&&(y.current.push(n),f(!1))}),[y,n]);let v=(0,i.useMemo)((()=>({show:n,appear:a,initial:m})),[n,a,m]);(0,i.useEffect)((()=>{if(n)d("visible");else if(dt(p)){let e=o.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&d("hidden")}else d("hidden")}),[n,p]);let b={unmount:r};return i.createElement(ut.Provider,{value:p},i.createElement(lt.Provider,{value:v},be({ourProps:{...b,as:i.Fragment,children:i.createElement(bt,{ref:l,...b,...s})},theirProps:{},defaultTag:i.Fragment,features:vt,visible:"visible"===u,name:"Transition"})))})),ht=Ne((function(e,t){let n=null!==(0,i.useContext)(lt),a=null!==_e();return i.createElement(i.Fragment,null,!n&&a?i.createElement(gt,{ref:t,...e}):i.createElement(bt,{ref:t,...e}))})),Nt=Object.assign(gt,{Child:ht,Root:gt});const Et=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))})),xt=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))})),Rt=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}))})),wt={variant:{default:"",primary:"yst-text-primary-500",white:"yst-text-white"},size:{3:"yst-w-3 yst-h-3",4:"yst-w-4 yst-h-4",8:"yst-w-8 yst-h-8"}},Tt=(0,i.forwardRef)((({variant:t,size:n,className:a},s)=>{const o=u();return l().createElement("svg",e({ref:s,xmlns:"http://www.w3.org/2000/svg/",fill:"none",viewBox:"0 0 24 24",className:r()("yst-animate-spin",wt.variant[t],wt.size[n],a)},o),l().createElement("circle",{className:"yst-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),l().createElement("path",{className:"yst-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}))}));Tt.displayName="Spinner",Tt.propTypes={variant:o().oneOf((0,c.keys)(wt.variant)),size:o().oneOf((0,c.keys)(wt.size)),className:o().string},Tt.defaultProps={variant:"default",size:"4",className:""};const Ct=Tt,Ot={variant:{primary:"yst-button--primary",secondary:"yst-button--secondary",tertiary:"yst-button--tertiary",error:"yst-button--error",upsell:"yst-button--upsell"},size:{default:"",small:"yst-button--small",large:"yst-button--large","extra-large":"yst-button--extra-large"}},St=(0,i.forwardRef)((({children:t,as:n,type:a,variant:s,size:o,isLoading:i,disabled:c,className:u,...d},p)=>l().createElement(n,e({type:a||"button"===n&&"button"||void 0,disabled:c,ref:p,className:r()("yst-button",Ot.variant[s],Ot.size[o],i&&"yst-cursor-wait",c&&"yst-button--disabled",u)},d),i&&l().createElement(Ct,{size:"small"===o?"3":"4",className:"yst-button--loading"}),t)));St.displayName="Button",St.propTypes={children:o().node.isRequired,as:o().elementType,type:o().oneOf(["button","submit","reset"]),variant:o().oneOf((0,c.keys)(Ot.variant)),size:o().oneOf((0,c.keys)(Ot.size)),isLoading:o().bool,disabled:o().bool,className:o().string},St.defaultProps={as:"button",type:void 0,variant:"primary",size:"default",isLoading:!1,disabled:!1,className:""};const Pt=St,kt={variant:{success:"yst-validation-input--success",warning:"yst-validation-input--warning",info:"yst-validation-input--info",error:"yst-validation-input--error"}},_t=(0,i.forwardRef)((({as:t,validation:n={},className:a="",...s},o)=>l().createElement("div",{className:r()("yst-validation-input",(null==n?void 0:n.message)&&kt.variant[null==n?void 0:n.variant])},l().createElement(t,e({ref:o},s,{className:r()("yst-validation-input__input",a)})),(null==n?void 0:n.message)&&l().createElement(h,{variant:null==n?void 0:n.variant,className:"yst-validation-input__icon"}))));_t.displayName="ValidationInput",_t.propTypes={as:o().elementType.isRequired,validation:o().shape({variant:o().string,message:o().node}),className:o().string},_t.defaultProps={validation:{},className:""};const It=_t,Lt=(0,i.forwardRef)(((t,n)=>l().createElement(at.Button,e({as:"div",ref:n},t))));Lt.displayName="AutocompleteButton";const Ft=({children:t=null,value:n})=>{const a=u(),s=(0,i.useCallback)((({active:e,selected:t})=>r()("yst-autocomplete__option",t&&"yst-autocomplete__option--selected",e&&!t&&"yst-autocomplete__option--active")),[]);return l().createElement(at.Option,{className:s,value:n},(({selected:n})=>l().createElement(l().Fragment,null,l().createElement("span",{className:r()("yst-autocomplete__option-label",n&&"yst-font-semibold")},t),n&&l().createElement(xt,e({className:"yst-autocomplete__option-check"},a)))))},Mt={children:o().node,value:o().oneOfType([o().string,o().number,o().bool]).isRequired};Ft.propTypes=Mt;const Dt=({onClear:t,svgAriaProps:n,screenReaderText:a})=>{const r=(0,i.useCallback)((e=>{e.preventDefault(),t(null)}),[t]);return l().createElement(Pt,{variant:"tertiary",className:"yst-autocomplete__clear-action",onClick:r},l().createElement("span",{className:"yst-sr-only"},a),l().createElement(Et,e({className:"yst-autocomplete__action-icon"},n)))};Dt.propTypes={onClear:o().func.isRequired,svgAriaProps:o().object.isRequired,screenReaderText:o().string.isRequired};const qt=(0,i.forwardRef)((({id:t,value:n,children:a,selectedLabel:s,label:o,labelProps:d,labelSuffix:p,onChange:m,onQueryChange:f,onClear:y,validation:v,placeholder:b,className:g,buttonProps:h,clearButtonScreenReaderText:N,nullable:E,disabled:x,...R},w)=>{const T=(0,i.useCallback)((0,c.constant)(s),[s]),C=u(),O=E&&s,S=!(null!=v&&v.message),P=O||S;return l().createElement(at,e({ref:w,as:"div",value:n,onChange:m,className:r()("yst-autocomplete",x&&"yst-autocomplete--disabled",g),disabled:x},R),o&&l().createElement("div",{className:"yst-flex yst-items-center yst-mb-2"},l().createElement(at.Label,d,o),p),l().createElement("div",{className:"yst-relative"},l().createElement(It,e({as:Lt,"data-id":t,validation:v,className:"yst-autocomplete__button"},h),l().createElement(at.Input,{className:"yst-autocomplete__input",autoComplete:"off",placeholder:b,displayValue:T,onChange:f}),P&&l().createElement("div",{className:"yst-autocomplete__action-container"},O&&l().createElement(l().Fragment,null,l().createElement(Dt,{onClear:y||m,svgAriaProps:C,screenReaderText:N}),l().createElement("hr",{className:"yst-autocomplete__action-separator"})),S&&l().createElement(Rt,e({className:"yst-autocomplete__action-icon yst-pointer-events-none"},C)))),l().createElement(Nt,{as:i.Fragment,enter:"yst-transition yst-duration-100 yst-ease-out",enterFrom:"yst-transform yst-scale-95 yst-opacity-0",enterTo:"yst-transform yst-scale-100 yst-opacity-100",leave:"yst-transition yst-duration-75 yst-ease-out",leaveFrom:"yst-transform yst-scale-100 yst-opacity-100",leaveTo:"yst-transform yst-scale-95 yst-opacity-0"},l().createElement(at.Options,{className:"yst-autocomplete__options"},a))))})),At={id:o().string.isRequired,value:o().oneOfType([o().string,o().number,o().bool]),children:o().node,selectedLabel:o().string,label:o().string,labelProps:o().object,labelSuffix:o().node,onChange:o().func.isRequired,onQueryChange:o().func.isRequired,validation:o().shape({variant:o().string,message:o().node}),placeholder:o().string,className:o().string,buttonProps:o().object,clearButtonScreenReaderText:o().string,nullable:o().bool,onClear:o().func,disabled:o().bool};qt.displayName="Autocomplete",qt.propTypes=At,qt.defaultProps={children:null,value:null,selectedLabel:"",label:"",labelProps:{},labelSuffix:null,validation:{},placeholder:"",className:"",buttonProps:{},clearButtonScreenReaderText:"Clear",nullable:!1,onClear:null,disabled:!1},qt.Option=Ft,qt.Option.displayName="Autocomplete.Option";const Bt=qt,jt={variant:{info:"yst-badge--info",upsell:"yst-badge--upsell",plain:"yst-badge--plain",success:"yst-badge--success",error:"yst-badge--error"},size:{default:"",small:"yst-badge--small",large:"yst-badge--large"}},Ht=(0,i.forwardRef)((({children:t,as:n,variant:a,size:s,className:o,...i},c)=>l().createElement(n,e({ref:c,className:r()("yst-badge",jt.variant[a],jt.size[s],o)},i),t))),zt={children:o().node.isRequired,as:o().elementType,variant:o().oneOf(Object.keys(jt.variant)),size:o().oneOf(Object.keys(jt.size)),className:o().string};Ht.displayName="Badge",Ht.propTypes=zt,Ht.defaultProps={as:"span",variant:"info",size:"default",className:""};const $t=Ht,Vt=(0,i.forwardRef)((({as:t,className:n,label:a,children:s,...o},i)=>l().createElement(t,e({ref:i,className:r()("yst-label",n)},o),a||s||null)));Vt.displayName="Label",Vt.propTypes={label:o().string,children:o().string,as:o().elementType,className:o().string},Vt.defaultProps={label:"",children:"",as:"label",className:""};const Ut=Vt,Kt=(0,i.forwardRef)((({id:t,name:n,value:a,label:s="",disabled:o=!1,className:i="",...c},u)=>l().createElement("div",{className:r()("yst-checkbox",o&&"yst-checkbox--disabled",i)},l().createElement("input",e({ref:u,type:"checkbox",id:t,name:n,value:a,disabled:o,className:"yst-checkbox__input"},c)),s&&l().createElement(Ut,{htmlFor:t,className:"yst-checkbox__label",label:s}))));Kt.displayName="Checkbox",Kt.propTypes={id:o().string.isRequired,name:o().string.isRequired,value:o().string.isRequired,label:o().string,className:o().string,disabled:o().bool},Kt.defaultProps={className:"",disabled:!1,label:""};const Wt=Kt,Gt={variant:{default:"",block:"yst-code--block"}},Qt=(0,i.forwardRef)((({children:t,variant:n="default",className:a="",...s},o)=>l().createElement("code",e({ref:o,className:r()("yst-code",Gt.variant[n],a)},s),t)));Qt.displayName="Code",Qt.propTypes={children:o().node.isRequired,variant:o().oneOf(Object.keys(Gt.variant)),className:o().string},Qt.defaultProps={variant:"default",className:""};const Yt=Qt,Xt=n(35800).ErrorBoundary,Zt={variant:{default:"yst-link--default",primary:"yst-link--primary",error:"yst-link--error"}},Jt=(0,i.forwardRef)((({as:t,variant:n,className:a,children:s,...o},i)=>l().createElement(t,e({ref:i,className:r()("yst-link",Zt.variant[n],a)},o),s)));Jt.displayName="Link",Jt.propTypes={children:o().node.isRequired,variant:o().oneOf(Object.keys(Zt.variant)),as:o().elementType,className:o().string},Jt.defaultProps={as:"a",variant:"default",className:""};const en=Jt,tn=({as:e="div",className:t="",children:n})=>l().createElement(e,{className:r()("yst-paper__content",t)},n);tn.propTypes={as:o().node,className:o().string,children:o().node.isRequired};const nn=tn,an=({as:e="header",className:t="",children:n})=>l().createElement(e,{className:r()("yst-paper__header",t)},n);an.propTypes={as:o().node,className:o().string,children:o().node.isRequired};const rn=an,sn=(0,i.forwardRef)((({as:e="div",className:t="",children:n},a)=>l().createElement(e,{ref:a,className:r()("yst-paper",t)},n)));sn.displayName="Paper",sn.propTypes={as:o().node,className:o().string,children:o().node.isRequired},sn.defaultProps={as:"div",className:""},sn.Header=rn,sn.Header.displayName="Paper.Header",sn.Content=nn,sn.Content.displayName="Paper.Content";const on=sn,ln=(0,i.forwardRef)((({min:t,max:n,progress:a,className:s,...o},c)=>{const u=(0,i.useMemo)((()=>a/(n-t)*100),[t,n,a]);return l().createElement("div",e({ref:c,"aria-hidden":"true",className:r()("yst-progress-bar",s)},o),l().createElement("div",{className:"yst-progress-bar__progress",style:{width:`${u}%`}}))}));ln.displayName="ProgressBar",ln.propTypes={min:o().number.isRequired,max:o().number.isRequired,progress:o().number.isRequired,className:o().string},ln.defaultProps={className:""};const cn=ln,un=(0,i.forwardRef)((({id:t,name:n,value:a,label:s,screenReaderLabel:o,variant:i,disabled:c,className:p,isLabelDangerousHtml:m,...f},y)=>{const v=u();return"inline-block"===i?l().createElement("div",{className:r()("yst-radio","yst-radio--inline-block",c&&"yst-radio--disabled",p)},l().createElement("input",e({type:"radio",id:t,name:n,value:a,disabled:c,className:"yst-radio__input","aria-label":o},f)),l().createElement("span",{className:"yst-radio__content"},l().createElement(Ut,{htmlFor:t,className:"yst-radio__label",label:m?null:s,dangerouslySetInnerHTML:m?{__html:s}:null}),l().createElement(d,e({className:"yst-radio__check"},v)))):l().createElement("div",{className:r()("yst-radio",c&&"yst-radio--disabled",p)},l().createElement("input",e({ref:y,type:"radio",id:t,name:n,value:a,disabled:c,className:"yst-radio__input"},f)),l().createElement(Ut,{htmlFor:t,className:"yst-radio__label",label:m?null:s,dangerouslySetInnerHTML:m?{__html:s}:null}))}));un.displayName="Radio",un.propTypes={name:o().string.isRequired,id:o().string.isRequired,value:o().string.isRequired,label:o().string.isRequired,isLabelDangerousHtml:o().bool,screenReaderLabel:o().string,variant:o().oneOf(Object.keys({default:"","inline-block":"yst-radio--inline-block"})),disabled:o().bool,className:o().string},un.defaultProps={screenReaderLabel:"",variant:"default",disabled:!1,className:"",isLabelDangerousHtml:!1};const dn=un;var pn=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(pn||{}),mn=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(mn||{}),fn=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(fn||{}),yn=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(yn||{});function vn(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,a=te(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),r=n?a.indexOf(n):null;return-1===r&&(r=null),{options:a,activeOptionIndex:r}}let bn={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,a=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==a&&(t=a),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let a=vn(e),r=pe(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...a,searchQuery:"",activeOptionIndex:r,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,a=e.searchQuery+t.value.toLowerCase(),r=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(a))})),s=r?e.options.indexOf(r):-1;return-1===s||s===e.activeOptionIndex?{...e,searchQuery:a}:{...e,searchQuery:a,activeOptionIndex:s,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},a=vn(e,(e=>[...e,n]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(n)),{...e,...a}},6:(e,t)=>{let n=vn(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},gn=(0,i.createContext)(null);function hn(e){let t=(0,i.useContext)(gn);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,hn),t}return t}gn.displayName="ListboxActionsContext";let Nn=(0,i.createContext)(null);function En(e){let t=(0,i.useContext)(Nn);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,En),t}return t}function xn(e,t){return H(t.type,bn,e,t)}Nn.displayName="ListboxDataContext";let Rn=i.Fragment,wn=Ne((function(e,t){let{value:n,defaultValue:a,name:r,onChange:s,by:o=((e,t)=>e===t),disabled:l=!1,horizontal:c=!1,multiple:u=!1,...d}=e;const p=c?"horizontal":"vertical";let m=ce(t),[f=(u?[]:void 0),y]=Fe(n,s,a),[v,b]=(0,i.useReducer)(xn,{dataRef:(0,i.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),g=(0,i.useRef)({static:!1,hold:!1}),h=(0,i.useRef)(null),N=(0,i.useRef)(null),E=(0,i.useRef)(null),x=q("string"==typeof o?(e,t)=>{let n=o;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:o),R=(0,i.useCallback)((e=>H(w.mode,{1:()=>f.some((t=>x(t,e))),0:()=>x(f,e)})),[f]),w=(0,i.useMemo)((()=>({...v,value:f,disabled:l,mode:u?1:0,orientation:p,compare:x,isSelected:R,optionsPropsRef:g,labelRef:h,buttonRef:N,optionsRef:E})),[f,l,u,v]);_((()=>{v.dataRef.current=w}),[w]),re([w.buttonRef,w.optionsRef],((e,t)=>{var n;b({type:1}),X(t,Y.Loose)||(e.preventDefault(),null==(n=w.buttonRef.current)||n.focus())}),0===w.listboxState);let T=(0,i.useMemo)((()=>({open:0===w.listboxState,disabled:l,value:f})),[w,l,f]),C=q((e=>{let t=w.options.find((t=>t.id===e));!t||F(t.dataRef.current.value)})),O=q((()=>{if(null!==w.activeOptionIndex){let{dataRef:e,id:t}=w.options[w.activeOptionIndex];F(e.current.value),b({type:2,focus:de.Specific,id:t})}})),S=q((()=>b({type:0}))),P=q((()=>b({type:1}))),k=q(((e,t,n)=>e===de.Specific?b({type:2,focus:de.Specific,id:t,trigger:n}):b({type:2,focus:e,trigger:n}))),I=q(((e,t)=>(b({type:5,id:e,dataRef:t}),()=>b({type:6,id:e})))),L=q((e=>(b({type:7,id:e}),()=>b({type:7,id:null})))),F=q((e=>H(w.mode,{0:()=>null==y?void 0:y(e),1(){let t=w.value.slice(),n=t.findIndex((t=>x(t,e)));return-1===n?t.push(e):t.splice(n,1),null==y?void 0:y(t)}}))),M=q((e=>b({type:3,value:e}))),A=q((()=>b({type:4}))),B=(0,i.useMemo)((()=>({onChange:F,registerOption:I,registerLabel:L,goToOption:k,closeListbox:P,openListbox:S,selectActiveOption:O,selectOption:C,search:M,clearSearch:A})),[]),j={ref:m},z=(0,i.useRef)(null),$=D();return(0,i.useEffect)((()=>{!z.current||void 0!==a&&$.addEventListener(z.current,"reset",(()=>{F(a)}))}),[z,F]),i.createElement(gn.Provider,{value:B},i.createElement(Nn.Provider,{value:w},i.createElement(Ie,{value:H(w.listboxState,{0:ke.Open,1:ke.Closed})},null!=r&&null!=f&&we({[r]:f}).map((([e,t],n)=>i.createElement(Se,{features:Oe.Hidden,ref:0===n?e=>{var t;z.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...Ee({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),be({ourProps:j,theirProps:d,slot:T,defaultTag:Rn,name:"Listbox"}))))})),Tn=Ne((function(e,t){var n;let a=j(),{id:r=`headlessui-listbox-button-${a}`,...s}=e,o=En("Listbox.Button"),l=hn("Listbox.Button"),c=ce(o.buttonRef,t),u=D(),d=q((e=>{switch(e.key){case Le.Space:case Le.Enter:case Le.ArrowDown:e.preventDefault(),l.openListbox(),u.nextFrame((()=>{o.value||l.goToOption(de.First)}));break;case Le.ArrowUp:e.preventDefault(),l.openListbox(),u.nextFrame((()=>{o.value||l.goToOption(de.Last)}))}})),p=q((e=>{e.key===Le.Space&&e.preventDefault()})),m=q((e=>{if(Re(e.currentTarget))return e.preventDefault();0===o.listboxState?(l.closeListbox(),u.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),l.openListbox())})),f=L((()=>{if(o.labelId)return[o.labelId,r].join(" ")}),[o.labelId,r]),y=(0,i.useMemo)((()=>({open:0===o.listboxState,disabled:o.disabled,value:o.value})),[o]);return be({ourProps:{ref:c,id:r,type:oe(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=o.optionsRef.current)?void 0:n.id,"aria-expanded":o.disabled?void 0:0===o.listboxState,"aria-labelledby":f,disabled:o.disabled,onKeyDown:d,onKeyUp:p,onClick:m},theirProps:s,slot:y,defaultTag:"button",name:"Listbox.Button"})})),Cn=Ne((function(e,t){let n=j(),{id:a=`headlessui-listbox-label-${n}`,...r}=e,s=En("Listbox.Label"),o=hn("Listbox.Label"),l=ce(s.labelRef,t);_((()=>o.registerLabel(a)),[a]);let c=q((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),u=(0,i.useMemo)((()=>({open:0===s.listboxState,disabled:s.disabled})),[s]);return be({ourProps:{ref:l,id:a,onClick:c},theirProps:r,slot:u,defaultTag:"label",name:"Listbox.Label"})})),On=ye.RenderStrategy|ye.Static,Sn=Ne((function(e,t){var n;let a=j(),{id:r=`headlessui-listbox-options-${a}`,...s}=e,o=En("Listbox.Options"),l=hn("Listbox.Options"),c=ce(o.optionsRef,t),u=D(),d=D(),p=_e(),m=null!==p?p===ke.Open:0===o.listboxState;(0,i.useEffect)((()=>{var e;let t=o.optionsRef.current;!t||0===o.listboxState&&t!==(null==(e=z(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[o.listboxState,o.optionsRef]);let f=q((e=>{switch(d.dispose(),e.key){case Le.Space:if(""!==o.searchQuery)return e.preventDefault(),e.stopPropagation(),l.search(e.key);case Le.Enter:if(e.preventDefault(),e.stopPropagation(),null!==o.activeOptionIndex){let{dataRef:e}=o.options[o.activeOptionIndex];l.onChange(e.current.value)}0===o.mode&&(l.closeListbox(),M().nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case H(o.orientation,{vertical:Le.ArrowDown,horizontal:Le.ArrowRight}):return e.preventDefault(),e.stopPropagation(),l.goToOption(de.Next);case H(o.orientation,{vertical:Le.ArrowUp,horizontal:Le.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),l.goToOption(de.Previous);case Le.Home:case Le.PageUp:return e.preventDefault(),e.stopPropagation(),l.goToOption(de.First);case Le.End:case Le.PageDown:return e.preventDefault(),e.stopPropagation(),l.goToOption(de.Last);case Le.Escape:return e.preventDefault(),e.stopPropagation(),l.closeListbox(),u.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case Le.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(l.search(e.key),d.setTimeout((()=>l.clearSearch()),350))}})),y=L((()=>{var e,t,n;return null!=(n=null==(e=o.labelRef.current)?void 0:e.id)?n:null==(t=o.buttonRef.current)?void 0:t.id}),[o.labelRef.current,o.buttonRef.current]),v=(0,i.useMemo)((()=>({open:0===o.listboxState})),[o]);return be({ourProps:{"aria-activedescendant":null===o.activeOptionIndex||null==(n=o.options[o.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===o.mode||void 0,"aria-labelledby":y,"aria-orientation":o.orientation,id:r,onKeyDown:f,role:"listbox",tabIndex:0,ref:c},theirProps:s,slot:v,defaultTag:"ul",features:On,visible:m,name:"Listbox.Options"})})),Pn=Ne((function(e,t){let n=j(),{id:a=`headlessui-listbox-option-${n}`,disabled:r=!1,value:s,...o}=e,l=En("Listbox.Option"),c=hn("Listbox.Option"),u=null!==l.activeOptionIndex&&l.options[l.activeOptionIndex].id===a,d=l.isSelected(s),p=(0,i.useRef)(null),m=I({disabled:r,value:s,domRef:p,get textValue(){var e,t;return null==(t=null==(e=p.current)?void 0:e.textContent)?void 0:t.toLowerCase()}}),f=ce(t,p);_((()=>{if(0!==l.listboxState||!u||0===l.activationTrigger)return;let e=M();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[p,u,l.listboxState,l.activationTrigger,l.activeOptionIndex]),_((()=>c.registerOption(a,m)),[m,a]);let y=q((e=>{if(r)return e.preventDefault();c.onChange(s),0===l.mode&&(c.closeListbox(),M().nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),v=q((()=>{if(r)return c.goToOption(de.Nothing);c.goToOption(de.Specific,a)})),b=qe(),g=q((e=>b.update(e))),h=q((e=>{!b.wasMoved(e)||r||u||c.goToOption(de.Specific,a,0)})),N=q((e=>{!b.wasMoved(e)||r||!u||c.goToOption(de.Nothing)})),E=(0,i.useMemo)((()=>({active:u,selected:d,disabled:r})),[u,d,r]);return be({ourProps:{id:a,ref:f,role:"option",tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,"aria-selected":d,disabled:void 0,onClick:y,onFocus:v,onPointerEnter:g,onMouseEnter:g,onPointerMove:h,onMouseMove:h,onPointerLeave:N,onMouseLeave:N},theirProps:o,slot:E,defaultTag:"li",name:"Listbox.Option"})})),kn=Object.assign(wn,{Button:Tn,Label:Cn,Options:Sn,Option:Pn});const In={value:o().oneOfType([o().string,o().number,o().bool]).isRequired,label:o().string.isRequired},Ln=({value:t,label:n})=>{const a=u(),s=(0,i.useCallback)((({active:e,selected:t})=>r()("yst-select__option",e&&"yst-select__option--active",t&&"yst-select__option--selected")),[]);return l().createElement(kn.Option,{value:t,className:s},(({selected:t})=>l().createElement(l().Fragment,null,l().createElement("span",{className:r()("yst-select__option-label",t&&"yst-font-semibold")},n),t&&l().createElement(xt,e({className:"yst-select__option-check"},a)))))};Ln.propTypes=In;const Fn=(0,i.forwardRef)((({id:t,value:n,options:a,children:s,selectedLabel:o,label:c,labelProps:d,labelSuffix:p,onChange:m,disabled:f,validation:y,className:v,buttonProps:b,...g},h)=>{const N=(0,i.useMemo)((()=>a.find((e=>n===(null==e?void 0:e.value)))||a[0]),[n,a]),E=u();return l().createElement(kn,e({ref:h,as:"div",value:n,onChange:m,disabled:f,className:r()("yst-select",f&&"yst-select--disabled",v)},g),c&&l().createElement("div",{className:"yst-flex yst-items-center yst-mb-2"},l().createElement(kn.Label,e({as:Ut},d),c),p),l().createElement(It,e({as:kn.Button,"data-id":t,className:"yst-select__button",validation:y},b),l().createElement("span",{className:"yst-select__button-label"},o||(null==N?void 0:N.label)||""),!(null!=y&&y.message)&&l().createElement(Rt,e({className:"yst-select__button-icon"},E))),l().createElement(Nt,{as:i.Fragment,enter:"yst-transition yst-duration-100 yst-ease-out",enterFrom:"yst-transform yst-scale-95 yst-opacity-0",enterTo:"yst-transform yst-scale-100 yst-opacity-100",leave:"yst-transition yst-duration-75 yst-ease-out",leaveFrom:"yst-transform yst-scale-100 yst-opacity-100",leaveTo:"yst-transform yst-scale-95 yst-opacity-0"},l().createElement(kn.Options,{className:"yst-select__options"},s||a.map((t=>l().createElement(Ln,e({key:t.value},t)))))))}));Fn.displayName="Select",Fn.propTypes={id:o().string.isRequired,value:o().oneOfType([o().string,o().number,o().bool]).isRequired,options:o().arrayOf(o().shape(In)),children:o().node,selectedLabel:o().string,label:o().string,labelProps:o().object,labelSuffix:o().node,onChange:o().func.isRequired,disabled:o().bool,validation:o().shape({variant:o().string,message:o().node}),className:o().string,buttonProps:o().object},Fn.defaultProps={options:[],children:null,selectedLabel:"",label:"",labelProps:{},labelSuffix:null,disabled:!1,validation:{},className:"",buttonProps:{}},Fn.Option=Ln,Fn.Option.displayName="Select.Option";const Mn=Fn,Dn=({as:e="span",className:t="",children:n=null})=>l().createElement(e,{className:r()("yst-skeleton-loader",t)},n&&l().createElement("div",{className:"yst-pointer-events-none yst-invisible"},n));Dn.propTypes={as:o().elementType,className:o().string,children:o().node};const qn=Dn,An={variant:{striped:"[&>*]:even:yst-bg-slate-50 [&>*]:odd:yst-bg-white",plain:""}},Bn=({children:t,className:n="",...a})=>l().createElement("td",e({className:r()("yst-table-cell",n)},a),t);Bn.propTypes={children:o().node.isRequired,className:o().string};const jn=({children:t,variant:n="plain",className:a="",...s})=>l().createElement("tr",e({className:r()("yst-table-row",An.variant[n],a)},s),t);jn.propTypes={children:o().node.isRequired,variant:o().oneOf(Object.keys(An.variant)),className:o().string};const Hn=({children:t,className:n="",...a})=>l().createElement("th",e({className:r()("yst-table-header",n)},a),t);Hn.propTypes={children:o().node.isRequired,className:o().string};const zn=({children:t,className:n="",...a})=>l().createElement("thead",e({className:n},a),t);zn.propTypes={children:o().node.isRequired,className:o().string};const $n=({children:t,className:n="",...a})=>l().createElement("tbody",e({className:n},a),t);$n.propTypes={children:o().node.isRequired,className:o().string};const Vn={default:"yst-table--default",minimal:"yst-table--minimal"},Un=(0,i.forwardRef)((({children:t,className:n="",variant:a="default",...s},o)=>l().createElement("div",{className:r()("yst-table-wrapper",Vn[a])},l().createElement("table",e({className:n},s,{ref:o}),t))));Un.displayName="Table",Un.propTypes={children:o().node.isRequired,className:o().string,variant:o().oneOf(Object.keys(Vn))},Un.defaultProps={className:"",variant:"default"},Un.Head=zn,Un.Head.displayName="Table.Head",Un.Body=$n,Un.Body.displayName="Table.Body",Un.Header=Hn,Un.Header.displayName="Table.Header",Un.Row=jn,Un.Row.displayName="Table.Row",Un.Cell=Bn,Un.Cell.displayName="Table.Cell";const Kn=Un,Wn=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),Gn=({tag:t,index:n,disabled:a=!1,onRemoveTag:r,screenReaderRemoveTag:s,...o})=>{const c=(0,i.useCallback)((e=>{if(!a)switch(null==e?void 0:e.key){case"Delete":case"Backspace":return r(n),e.preventDefault(),!0}}),[n,a,r]),u=(0,i.useCallback)((e=>{if(!a)return r(n),e.preventDefault(),!0}),[n,a,r]);return l().createElement($t,e({onKeyDown:c},o,{variant:"plain",className:"yst-tag-input__tag"}),l().createElement("span",{className:"yst-mb-px"},t),l().createElement("button",{type:"button",onClick:u,className:"yst-tag-input__remove-tag"},l().createElement("span",{className:"yst-sr-only"},s),l().createElement(Wn,{className:"yst-h-3 yst-w-3"})))};Gn.propTypes={tag:o().string.isRequired,index:o().number.isRequired,disabled:o().bool,onRemoveTag:o().func.isRequired,screenReaderRemoveTag:o().string.isRequired};const Qn=(0,i.forwardRef)((({tags:t=[],children:n,className:a,disabled:s,onAddTag:o,onRemoveTag:u,onSetTags:d,onBlur:p,screenReaderRemoveTag:m,...f},y)=>{const[v,b]=(0,i.useState)(""),g=(0,i.useCallback)((e=>{var t;(0,c.isString)(null==e||null===(t=e.target)||void 0===t?void 0:t.value)&&b(e.target.value)}),[b]),h=(0,i.useCallback)((e=>{switch(e.key){case",":case"Enter":return v.length>0&&(o(v),b("")),e.preventDefault(),!0;case"Backspace":if(0!==v.length||0===t.length)break;return u(t.length-1),e.ctrlKey&&d([]),e.preventDefault(),!0}}),[v,t,b,o]),N=(0,i.useCallback)((e=>{v.length>0&&(o(v),b("")),p(e)}),[v,o,b,p]);return l().createElement("div",{className:r()("yst-tag-input",s&&"yst-tag-input--disabled",a)},n||(0,c.map)(t,((e,t)=>l().createElement(Gn,{key:`tag-${t}`,tag:e,index:t,disabled:s,onRemoveTag:u,screenReaderRemoveTag:m}))),l().createElement("input",e({ref:y,type:"text",disabled:s,className:"yst-tag-input__input",onKeyDown:h},f,{onChange:g,onBlur:N,value:v})))}));Qn.displayName="TagInput",Qn.propTypes={tags:o().arrayOf(o().string),children:o().node,className:o().string,disabled:o().bool,onAddTag:o().func,onRemoveTag:o().func,onSetTags:o().func,onBlur:o().func,screenReaderRemoveTag:o().string},Qn.defaultProps={tags:[],children:null,className:"",disabled:!1,onAddTag:c.noop,onRemoveTag:c.noop,onSetTags:c.noop,onBlur:c.noop,screenReaderRemoveTag:"Remove tag"},Qn.Tag=Gn,Qn.Tag.displayName="TagInput.Tag";const Yn=Qn,Xn=(0,i.forwardRef)((({type:t,className:n,disabled:a,readOnly:s,...o},i)=>l().createElement("input",e({ref:i,type:t,className:r()("yst-text-input",a&&"yst-text-input--disabled",s&&"yst-text-input--read-only",n),disabled:a,readOnly:s},o))));Xn.displayName="TextInput",Xn.propTypes={type:o().string,className:o().string,disabled:o().bool,readOnly:o().bool},Xn.defaultProps={type:"text",className:"",disabled:!1,readOnly:!1};const Zn=Xn,Jn=(0,i.forwardRef)((({disabled:t,cols:n,rows:a,className:s,...o},i)=>l().createElement("textarea",e({ref:i,disabled:t,cols:n,rows:a,className:r()("yst-textarea",t&&"yst-textarea--disabled",s)},o))));Jn.displayName="Textarea",Jn.propTypes={className:o().string,disabled:o().bool,cols:o().number,rows:o().number},Jn.defaultProps={className:"",disabled:!1,cols:20,rows:2};const ea=Jn,ta={size:{1:"yst-title--1",2:"yst-title--2",3:"yst-title--3",4:"yst-title--4",5:"yst-title--5"}},na=(0,i.forwardRef)((({children:t,as:n,size:a,className:s,...o},i)=>l().createElement(n,e({ref:i,className:r()("yst-title",ta.size[a||n[1]],s)},o),t)));na.displayName="Title",na.propTypes={children:o().node.isRequired,as:o().elementType,size:o().oneOf(Object.keys(ta.size)),className:o().string},na.defaultProps={as:"h1",size:void 0,className:""};const aa=na,ra=(0,i.createContext)({handleDismiss:c.noop}),sa=()=>(0,i.useContext)(ra),oa={position:{"bottom-center":"yst-translate-y-full","bottom-left":"yst-translate-y-full","top-center":"yst--translate-y-full"}},ia=({dismissScreenReaderLabel:e})=>{const{handleDismiss:t}=sa();return l().createElement("div",{className:"yst-flex-shrink-0 yst-flex yst-self-start"},l().createElement("button",{type:"button",onClick:t,className:"yst-bg-transparent yst-rounded-md yst-inline-flex yst-text-slate-400 hover:yst-text-slate-500 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-offset-2 focus:yst-ring-primary-500"},l().createElement("span",{className:"yst-sr-only"},e),l().createElement(Et,{className:"yst-h-5 yst-w-5"})))};ia.propTypes={dismissScreenReaderLabel:o().string.isRequired};const la=({description:e=null,className:t=""})=>(0,c.isArray)(e)?l().createElement("ul",{className:r()("yst-list-disc yst-ms-4",t)},e.map(((e,t)=>l().createElement("li",{className:"yst-pt-1",key:`${e}-${t}`},e)))):l().createElement("p",{className:t},e);la.propTypes={description:o().oneOfType([o().node,o().arrayOf(o().node)]),className:o().string};const ca=({title:e,className:t=""})=>l().createElement("p",{className:r()("yst-text-sm yst-font-medium yst-text-slate-800",t)},e);ca.propTypes={title:o().string.isRequired,className:o().string};const ua=({children:e=null,id:t,className:n="",position:a="bottom-left",onDismiss:s=c.noop,autoDismiss:o=null,isVisible:u,setIsVisible:d})=>{const p=(0,i.useCallback)((()=>{d(!1),setTimeout((()=>{s(t)}),150)}),[s,t]);return(0,i.useEffect)((()=>{let e;return d(!0),o&&(e=setTimeout((()=>{p()}),o)),()=>clearTimeout(e)}),[]),l().createElement(ra.Provider,{value:{handleDismiss:p}},l().createElement(Nt,{show:u,enter:"yst-transition yst-ease-in-out yst-duration-150",enterFrom:r()("yst-opacity-0",oa.position[a]),enterTo:"yst-translate-y-0",leave:"yst-transition yst-ease-in-out yst-duration-150",leaveFrom:"yst-translate-y-0",leaveTo:r()("yst-opacity-0",oa.position[a]),className:r()("yst-toast",n),role:"alert"},e))};ua.propTypes={children:o().node,id:o().string.isRequired,className:o().string,position:o().oneOf(Object.keys(oa.position)),onDismiss:o().func,autoDismiss:o().number,isVisible:o().bool.isRequired,setIsVisible:o().func.isRequired},ua.Close=ia,ua.Description=la,ua.Title=ca;const da=ua;let pa=(0,i.createContext)(null);function ma(){let e=(0,i.useContext)(pa);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,ma),e}return e}let fa=Ne((function(e,t){let n=j(),{id:a=`headlessui-label-${n}`,passive:r=!1,...s}=e,o=ma(),i=ce(t);_((()=>o.register(a)),[a,o.register]);let l={ref:i,...o.props,id:a};return r&&("onClick"in l&&delete l.onClick,"onClick"in s&&delete s.onClick),be({ourProps:l,theirProps:s,slot:o.slot||{},defaultTag:"label",name:o.name||"Label"})})),ya=(0,i.createContext)(null);function va(){let e=(0,i.useContext)(ya);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,va),e}return e}function ba(){let[e,t]=(0,i.useState)([]);return[e.length>0?e.join(" "):void 0,(0,i.useMemo)((()=>function(e){let n=q((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),a=n.indexOf(e);return-1!==a&&n.splice(a,1),n}))))),a=(0,i.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return i.createElement(ya.Provider,{value:a},e.children)}),[t])]}let ga=Ne((function(e,t){let n=j(),{id:a=`headlessui-description-${n}`,...r}=e,s=va(),o=ce(t);return _((()=>s.register(a)),[a,s.register]),be({ourProps:{ref:o,...s.props,id:a},theirProps:r,slot:s.slot||{},defaultTag:"p",name:s.name||"Description"})})),ha=(0,i.createContext)(null);ha.displayName="GroupContext";let Na=i.Fragment,Ea=Ne((function(e,t){let n=j(),{id:a=`headlessui-switch-${n}`,checked:r,defaultChecked:s=!1,onChange:o,name:l,value:c,...u}=e,d=(0,i.useContext)(ha),p=(0,i.useRef)(null),m=ce(p,t,null===d?null:d.setSwitch),[f,y]=Fe(r,o,s),v=q((()=>null==y?void 0:y(!f))),b=q((e=>{if(Re(e.currentTarget))return e.preventDefault();e.preventDefault(),v()})),g=q((e=>{e.key===Le.Space?(e.preventDefault(),v()):e.key===Le.Enter&&function(e){var t;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n)for(let e of n.elements)if("INPUT"===e.tagName&&"submit"===e.type||"BUTTON"===e.tagName&&"submit"===e.type||"INPUT"===e.nodeName&&"image"===e.type)return void e.click()}(e.currentTarget)})),h=q((e=>e.preventDefault())),N=(0,i.useMemo)((()=>({checked:f})),[f]),E={id:a,ref:m,role:"switch",type:oe(e,p),tabIndex:0,"aria-checked":f,"aria-labelledby":null==d?void 0:d.labelledby,"aria-describedby":null==d?void 0:d.describedby,onClick:b,onKeyUp:g,onKeyPress:h},x=D();return(0,i.useEffect)((()=>{var e;let t=null==(e=p.current)?void 0:e.closest("form");!t||void 0!==s&&x.addEventListener(t,"reset",(()=>{y(s)}))}),[p,y]),i.createElement(i.Fragment,null,null!=l&&f&&i.createElement(Se,{features:Oe.Hidden,...Ee({as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:f,name:l,value:c})}),be({ourProps:E,theirProps:u,slot:N,defaultTag:"button",name:"Switch"}))})),xa=Object.assign(Ea,{Group:function(e){let[t,n]=(0,i.useState)(null),[a,r]=function(){let[e,t]=(0,i.useState)([]);return[e.length>0?e.join(" "):void 0,(0,i.useMemo)((()=>function(e){let n=q((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),a=n.indexOf(e);return-1!==a&&n.splice(a,1),n}))))),a=(0,i.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return i.createElement(pa.Provider,{value:a},e.children)}),[t])]}(),[s,o]=ba(),l=(0,i.useMemo)((()=>({switch:t,setSwitch:n,labelledby:a,describedby:s})),[t,n,a,s]),c=e;return i.createElement(o,{name:"Switch.Description"},i.createElement(r,{name:"Switch.Label",props:{onClick(){!t||(t.click(),t.focus({preventScroll:!0}))}}},i.createElement(ha.Provider,{value:l},be({ourProps:{},theirProps:c,defaultTag:Na,name:"Switch.Group"}))))},Label:fa,Description:ga});const Ra=(0,i.forwardRef)((({id:t,as:n,checked:a,screenReaderLabel:s,onChange:o,disabled:i,className:d,type:p,...m},f)=>{const y=u();return l().createElement(xa,e({ref:f,as:n,checked:a,disabled:i,onChange:i?c.noop:o,className:r()("yst-toggle",a&&"yst-toggle--checked",i&&"yst-toggle--disabled",d),"data-id":t},m,{type:"button"===n?"button":p}),l().createElement("span",{className:"yst-sr-only"},s),l().createElement("span",{className:"yst-toggle__handle"},l().createElement(Nt,{show:a,unmount:!1,as:"span","aria-hidden":!a,enter:"",enterFrom:"yst-opacity-0 yst-hidden",enterTo:"yst-opacity-100",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0 yst-hidden"},l().createElement(xt,e({className:"yst-toggle__icon yst-toggle__icon--check"},y))),l().createElement(Nt,{show:!a,unmount:!1,as:"span","aria-hidden":a,enterFrom:"yst-opacity-0 yst-hidden",enterTo:"yst-opacity-100",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0 yst-hidden"},l().createElement(Wn,e({className:"yst-toggle__icon yst-toggle__icon--x"},y)))))}));Ra.displayName="Toggle",Ra.propTypes={as:o().elementType,id:o().string.isRequired,checked:o().bool,screenReaderLabel:o().string.isRequired,onChange:o().func.isRequired,disabled:o().bool,type:o().string,className:o().string},Ra.defaultProps={as:"button",checked:!1,disabled:!1,type:"",className:""};const wa=Ra,Ta={top:"yst-tooltip--top",right:"yst-tooltip--right",bottom:"yst-tooltip--bottom",left:"yst-tooltip--left"},Ca={light:"yst-tooltip--light",dark:""},Oa=(0,i.forwardRef)((({children:t,as:n,className:a,position:s,...o},i)=>l().createElement(n,e({ref:i,className:r()("yst-tooltip",Ta[s],Ca[o.variant],a),role:"tooltip"},o),t)));Oa.displayName="Tooltip",Oa.propTypes={as:o().elementType,children:o().node,className:o().string,position:o().oneOf(Object.keys(Ta)),variant:o().oneOf(Object.keys(Ca))},Oa.defaultProps={as:"div",children:null,className:"",position:"top",variant:"dark"};const Sa=Oa,Pa=(e,t)=>{const n=(0,i.useMemo)((()=>(0,c.reduce)(t,((t,n,a)=>n?(t[a]=`${e}__${a}`,t):t),{})),[e,t]),a=(0,i.useMemo)((()=>(0,c.values)(n).join(" ")||null),[n]);return{ids:n,describedBy:a}},ka=(0,i.forwardRef)((({id:t,label:n,disabled:a,description:s,validation:o,className:i,...c},u)=>{const{ids:d,describedBy:p}=Pa(t,{validation:null==o?void 0:o.message,description:s});return l().createElement("div",{className:r()("yst-autocomplete-field",a&&"yst-autocomplete-field--disabled",i)},l().createElement(Bt,e({ref:u,id:t,label:n,labelProps:{as:"label",className:"yst-label yst-autocomplete-field__label"},validation:o,className:"yst-autocomplete-field__select",buttonProps:{"aria-describedby":p},disabled:a},c)),(null==o?void 0:o.message)&&l().createElement(x,{variant:null==o?void 0:o.variant,id:d.validation,className:"yst-autocomplete-field__validation"},o.message),s&&l().createElement("div",{id:d.description,className:"yst-autocomplete-field__description"},s))}));ka.displayName="AutocompleteField",ka.propTypes={id:o().string.isRequired,label:o().string.isRequired,disabled:o().bool,description:o().node,validation:o().shape({variant:o().string,message:o().node}),className:o().string},ka.defaultProps={disabled:!1,description:null,validation:{},className:""},ka.Option=Bt.Option,ka.Option.displayName="AutocompleteField.Option";const _a=ka,Ia=({as:t="div",children:n,className:a="",...s})=>l().createElement(t,e({},s,{className:r()("yst-card__header",a)}),n);Ia.propTypes={as:s.PropTypes.element,children:s.PropTypes.node.isRequired,className:s.PropTypes.string};const La=({as:t="div",children:n,className:a="",...s})=>l().createElement(t,e({},s,{className:r()("yst-card__content",a)}),n);La.propTypes={as:s.PropTypes.element,children:s.PropTypes.node.isRequired,className:s.PropTypes.string};const Fa=({as:t="div",children:n,className:a="",...s})=>l().createElement(t,e({},s,{className:r()("yst-card__footer",a)}),n);Fa.propTypes={as:s.PropTypes.element,children:s.PropTypes.node.isRequired,className:s.PropTypes.string};const Ma=(0,i.forwardRef)((({as:t,children:n,className:a,...s},o)=>l().createElement(t,e({},s,{className:r()("yst-card",a),ref:o}),n)));Ma.displayName="Card",Ma.propTypes={as:s.PropTypes.elementType,children:s.PropTypes.node.isRequired,className:s.PropTypes.string},Ma.defaultProps={as:"div",className:""},Ma.Header=Ia,Ma.Header.displayName="Card.Header",Ma.Content=La,Ma.Content.displayName="Card.Content",Ma.Footer=Fa,Ma.Footer.displayName="Card.Footer";const Da=Ma,qa=({children:t=null,id:n="",name:a="",values:s=[],label:o="",description:u="",disabled:d=!1,options:p=[],onChange:m=c.noop,className:f="",...y})=>{const v=(0,i.useCallback)((({target:e})=>{if(e.checked&&!(0,c.includes)(s,e.value))return m([...s,e.value]);m((0,c.without)(s,e.value))}),[s,m]);return l().createElement("fieldset",{id:`checkbox-group-${n}`,className:r()("yst-checkbox-group",d&&"yst-checkbox-group--disabled",f)},l().createElement(Ut,{as:"legend",className:"yst-checkbox-group__label",label:o}),u&&l().createElement("div",{className:"yst-checkbox-group__description"},u),l().createElement("div",{className:"yst-checkbox-group__options"},t||p.map(((t,r)=>{const o=`checkbox-${n}-${r}`;return l().createElement(Wt,e({key:o,id:o,name:a,value:t.value,label:t.label,checked:(0,c.includes)(s,t.value),disabled:d,onChange:v},y))}))))};qa.propTypes={children:o().node,id:o().string,name:o().string,values:o().arrayOf(o().string),label:o().string,disabled:o().bool,description:o().string,options:o().arrayOf(o().shape({value:o().string.isRequired,label:o().string.isRequired})),onChange:o().func,className:o().string},(qa.Checkbox=Wt).displayName="CheckboxGroup.Checkbox";const Aa=qa,Ba=window.yoast.reduxJsToolkit;function ja(e){return"string"==typeof e&&"%"===e[e.length-1]&&function(e){const t=parseFloat(e);return!isNaN(t)&&isFinite(t)}(e.substring(0,e.length-1))}function Ha(e,t){0===t&&(null==e?void 0:e.style)&&(e.style.display="none")}const za={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"};function $a(e,t){return[e.static,0===t&&e.staticHeightZero,t>0&&e.staticHeightSpecific,"auto"===t&&e.staticHeightAuto].filter((e=>e)).join(" ")}const Va=e=>{var{animateOpacity:t=!1,animationStateClasses:n={},applyInlineTransitions:a=!0,children:r,className:s="",contentClassName:o,delay:l=0,duration:c=500,easing:u="ease",height:d,onHeightAnimationEnd:p,onHeightAnimationStart:m,style:f}=e,y=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&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(e,["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style"]);const v=(0,i.useRef)(d),b=(0,i.useRef)(null),g=(0,i.useRef)(),h=(0,i.useRef)(),N=(0,i.useRef)(Object.assign(Object.assign({},za),n)),E="undefined"!=typeof window,x=(0,i.useRef)(!(!E||!window.matchMedia)&&window.matchMedia("(prefers-reduced-motion)").matches),R=x.current?0:l,w=x.current?0:c;let T=d,C="visible";"number"==typeof T?(T=d<0?0:d,C="hidden"):ja(T)&&(T="0%"===d?0:d,C="hidden");const[O,S]=(0,i.useState)(T),[P,k]=(0,i.useState)(C),[_,I]=(0,i.useState)(!1),[L,F]=(0,i.useState)($a(N.current,d));(0,i.useEffect)((()=>{Ha(b.current,O)}),[]),(0,i.useEffect)((()=>{if(d!==v.current&&b.current){!function(e,t){0===t&&(null==e?void 0:e.style)&&(e.style.display="")}(b.current,v.current),b.current.style.overflow="hidden";const e=b.current.offsetHeight;b.current.style.overflow="";const t=w+R;let n,a,r,s="hidden";const o="auto"===v.current;"number"==typeof d?(n=d<0?0:d,a=n):ja(d)?(n="0%"===d?0:d,a=n):(n=e,a="auto",s=void 0),o&&(a=n,n=e);const i=[N.current.animating,("auto"===v.current||d<v.current)&&N.current.animatingUp,("auto"===d||d>v.current)&&N.current.animatingDown,0===a&&N.current.animatingToHeightZero,"auto"===a&&N.current.animatingToHeightAuto,a>0&&N.current.animatingToHeightSpecific].filter((e=>e)).join(" "),l=$a(N.current,a);S(n),k("hidden"),I(!o),F(i),clearTimeout(h.current),clearTimeout(g.current),o?(r=!0,h.current=setTimeout((()=>{S(a),k(s),I(r),null==m||m(a)}),50),g.current=setTimeout((()=>{I(!1),F(l),Ha(b.current,a),null==p||p(a)}),t)):(null==m||m(n),h.current=setTimeout((()=>{S(a),k(s),I(!1),F(l),"auto"!==d&&Ha(b.current,n),null==p||p(n)}),t))}return v.current=d,()=>{clearTimeout(h.current),clearTimeout(g.current)}}),[d]);const M=Object.assign(Object.assign({},f),{height:O,overflow:P||(null==f?void 0:f.overflow)});_&&a&&(M.transition=`height ${w}ms ${u} ${R}ms`,(null==f?void 0:f.transition)&&(M.transition=`${f.transition}, ${M.transition}`),M.WebkitTransition=M.transition);const D={};t&&(D.transition=`opacity ${w}ms ${u} ${R}ms`,D.WebkitTransition=D.transition,0===O&&(D.opacity=0));const q=void 0!==y["aria-hidden"]?y["aria-hidden"]:0===d;return i.createElement("div",Object.assign({},y,{"aria-hidden":q,className:`${L} ${s}`,style:M}),i.createElement("div",{className:o,style:D,ref:b},r))},Ua=(e=!0)=>{const[t,n]=(0,i.useState)(e),a=(0,i.useCallback)((()=>n(!t)),[t,n]),r=(0,i.useCallback)((()=>n(!0)),[n]),s=(0,i.useCallback)((()=>n(!1)),[n]);return[t,a,n,r,s]},Ka=({limit:e,children:t,renderButton:n,initialShow:a=!1,id:r=""})=>{const[s,o]=Ua(a),u=(0,i.useMemo)((()=>(0,c.flatten)(t)),[t]),d=(0,i.useMemo)((()=>(0,c.slice)(u,0,e)),[u]),p=(0,i.useMemo)((()=>(0,c.slice)(u,e)),[u]),m=(0,i.useMemo)((()=>r||`yst-animate-height-${(0,Ba.nanoid)()}`),[r]),f=(0,i.useMemo)((()=>({"aria-expanded":s,"aria-controls":m})),[s,m]);return e<0||u.length<=e?t:l().createElement(l().Fragment,null,d,l().createElement(Va,{id:m,easing:"ease-in-out",duration:300,height:s?"auto":0,animateOpacity:!0},p),n({show:s,toggle:o,ariaProps:f}))};Ka.propTypes={limit:o().number.isRequired,children:o().arrayOf(o().node).isRequired,renderButton:o().func.isRequired,initialShow:o().bool,id:o().string};const Wa=Ka,Ga=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),Qa={variant:{default:"yst-feature-upsell--default",card:"yst-feature-upsell--card"}},Ya=({children:t,shouldUpsell:n=!0,className:a="",variant:s="card",cardLink:o="",cardText:i="",...c})=>{const d=u();return n?l().createElement("div",{className:r()("yst-feature-upsell",Qa.variant[s],a)},l().createElement("div",{className:"yst-space-y-8 yst-grayscale"},t),l().createElement("div",{className:"yst-absolute yst-inset-0 yst-ring-1 yst-ring-black yst-ring-opacity-5 yst-shadow-lg yst-rounded-md"}),l().createElement("div",{className:"yst-absolute yst-inset-0 yst-flex yst-items-center yst-justify-center"},l().createElement(Pt,e({as:"a",className:"yst-gap-2 yst-shadow-lg yst-shadow-amber-700/30",variant:"upsell",href:o,target:"_blank",rel:"noopener"},c),l().createElement(Ga,e({className:r()("yst-w-5 yst-h-5 yst-shrink-0",i&&"yst--ms-1")},d)),i))):t};Ya.propTypes={children:o().node.isRequired,shouldUpsell:o().bool,className:o().string,variant:o().oneOf(Object.keys(Qa.variant)),cardLink:o().string,cardText:o().string};const Xa=Ya,Za=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))})),Ja=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))})),er=(0,i.forwardRef)((({id:t,name:n,value:a,selectLabel:s,dropLabel:o,screenReaderLabel:u,selectDescription:d,disabled:p,iconAs:m,onChange:f,onDrop:y,className:v,...b},g)=>{const[h,N]=(0,i.useState)(!1),E=(0,i.useCallback)((e=>{e.preventDefault(),(0,c.isEmpty)(e.dataTransfer.items)||N(!0)}),[N]),x=(0,i.useCallback)((e=>{e.preventDefault(),N(!1)}),[N]),R=(0,i.useCallback)((e=>{e.preventDefault()}),[]),w=(0,i.useCallback)((e=>{e.preventDefault(),N(!1),y(e)}),[N,y]);return l().createElement("div",{onDragEnter:E,onDragLeave:x,onDragOver:R,onDrop:w,className:r()("yst-file-input",{"yst-is-drag-over":h,"yst-is-disabled":p,className:v})},l().createElement("div",{className:"yst-file-input__content"},l().createElement(m,{className:"yst-file-input__icon"}),l().createElement("div",{className:"yst-file-input__labels"},l().createElement("input",e({ref:g,type:"file",id:t,name:n,value:a,onChange:f,className:"yst-file-input__input","aria-labelledby":u,disabled:p},b)),l().createElement(en,{as:"label",htmlFor:t,className:"yst-file-input__select-label"},s),l().createElement("span",null," "),o),d&&l().createElement("span",null,d)))}));er.displayName="FileInput",er.propTypes={id:o().string.isRequired,name:o().string.isRequired,value:o().string.isRequired,selectLabel:o().string.isRequired,dropLabel:o().string.isRequired,screenReaderLabel:o().string.isRequired,selectDescription:o().string,disabled:o().bool,iconAs:o().elementType,onChange:o().func.isRequired,onDrop:o().func,className:o().string},er.defaultProps={selectDescription:"",disabled:!1,iconAs:Ja,className:"",onDrop:c.noop};const tr=er,nr={idle:"idle",selected:"selected",loading:"loading",success:"success",aborted:"aborted",error:"error"},ar=(0,i.createContext)({status:nr.idle}),rr={enter:"yst-transition-opacity yst-ease-in-out yst-duration-1000 yst-delay-200",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",leave:"yst-transition-opacity yst-ease-in-out yst-duration-200",leaveFrom:"yst-opacity-0",leaveTo:"yst-opacity-100",className:"yst-absolute"},sr=e=>{const t=({children:t=null})=>{const{status:n}=(0,i.useContext)(ar);return l().createElement(Nt,{show:n===e,enter:"yst-transition-opacity yst-ease-in-out yst-duration-1000 yst-delay-200",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",className:"yst-mt-6"},t)};return t.propTypes={children:o().node},t.displayName=`FileImport.${(0,c.capitalize)(e)}`,t},or=(0,i.forwardRef)((({children:t="",id:n,name:a,selectLabel:r,dropLabel:s,screenReaderLabel:o,abortScreenReaderLabel:u,selectDescription:d,status:p,onChange:m,onAbort:f,feedbackTitle:y,feedbackDescription:v,progressMin:b,progressMax:g,progress:N},E)=>{const x=(0,i.useMemo)((()=>p===nr.selected),[p]),R=(0,i.useMemo)((()=>p===nr.loading),[p]),w=(0,i.useMemo)((()=>p===nr.success),[p]),T=(0,i.useMemo)((()=>p===nr.aborted),[p]),C=(0,i.useMemo)((()=>p===nr.error),[p]),O=(0,i.useMemo)((()=>(0,c.includes)([nr.selected,nr.loading,nr.success,nr.aborted,nr.error],p)),[p]),S=(0,i.useCallback)((e=>{(0,c.isEmpty)(e.target.files)||m(e.target.files[0])}),[m]),P=(0,i.useCallback)((e=>{if(!(0,c.isEmpty)(e.dataTransfer.files)){const t=e.dataTransfer.files[0];t&&m(t)}}),[m]);return l().createElement(ar.Provider,{value:{status:p}},l().createElement("div",{className:"yst-file-import"},l().createElement(tr,{ref:E,id:n,name:a,value:"",onChange:S,onDrop:P,className:"yst-file-import__input","aria-labelledby":o,disabled:R,selectLabel:r,dropLabel:s,screenReaderLabel:o,selectDescription:d}),l().createElement(Nt,{show:O,enter:"yst-transition-opacity yst-ease-in-out yst-duration-1000 yst-delay-200",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100"},l().createElement("div",{className:"yst-file-import__feedback"},l().createElement("header",{className:"yst-file-import__feedback-header"},l().createElement("div",{className:"yst-file-import__feedback-figure"},l().createElement(Za,null)),l().createElement("div",{className:"yst-flex-1"},l().createElement("span",{className:"yst-file-import__feedback-title"},y),l().createElement("p",{className:"yst-file-import__feedback-description"},v),!(0,c.isNull)(N)&&l().createElement(cn,{min:b,max:g,progress:N,className:"yst-mt-1.5"})),l().createElement("div",{className:"yst-relative yst-h-5 yst-w-5"},l().createElement(Nt,e({show:x},rr),l().createElement(h,{variant:"info",className:"yst-w-5 yst-h-5"})),l().createElement(Nt,e({show:R},rr),l().createElement("button",{type:"button",onClick:f,className:"yst-file-import__abort-button"},l().createElement("span",{className:"yst-sr-only"},u),l().createElement(Et,null))),l().createElement(Nt,e({show:w},rr),l().createElement(h,{variant:"success",className:"yst-w-5 yst-h-5"})),l().createElement(Nt,e({show:T},rr),l().createElement(h,{variant:"warning",className:"yst-w-5 yst-h-5"})),l().createElement(Nt,e({show:C},rr),l().createElement(h,{variant:"error",className:"yst-w-5 yst-h-5"})))),t))))}));or.displayName="FileImport",or.propTypes={children:o().node,id:o().string.isRequired,name:o().string.isRequired,selectLabel:o().string.isRequired,dropLabel:o().string.isRequired,screenReaderLabel:o().string.isRequired,abortScreenReaderLabel:o().string.isRequired,selectDescription:o().string,feedbackTitle:o().string.isRequired,feedbackDescription:o().string,progressMin:o().number,progressMax:o().number,progress:o().number,status:o().oneOf((0,c.values)(nr)),onChange:o().func.isRequired,onAbort:o().func.isRequired},or.defaultProps={children:null,selectDescription:"",feedbackDescription:"",progressMin:null,progressMax:null,progress:null,status:nr.idle},or.Selected=sr(nr.selected),or.Loading=sr(nr.loading),or.Success=sr(nr.success),or.Aborted=sr(nr.aborted),or.Error=sr(nr.error);const ir=or;var lr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(lr||{});function cr(...e){return(0,i.useMemo)((()=>z(...e)),[...e])}function ur(e,t,n,a){let r=I(n);(0,i.useEffect)((()=>{function n(e){r.current(e)}return(e=null!=e?e:window).addEventListener(t,n,a),()=>e.removeEventListener(t,n,a)}),[e,t,a])}var dr=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(dr||{});let pr=Object.assign(Ne((function(e,t){let n=(0,i.useRef)(null),a=ce(n,t),{initialFocus:r,containers:s,features:o=30,...l}=e;A()||(o=1);let c=cr(n);!function({ownerDocument:e},t){let n=(0,i.useRef)(null);ur(null==e?void 0:e.defaultView,"focusout",(e=>{!t||n.current||(n.current=e.target)}),!0),Me((()=>{t||((null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&J(n.current),n.current=null)}),[t]);let a=(0,i.useRef)(!1);(0,i.useEffect)((()=>(a.current=!1,()=>{a.current=!0,F((()=>{!a.current||(J(n.current),n.current=null)}))})),[])}({ownerDocument:c},Boolean(16&o));let u=function({ownerDocument:e,container:t,initialFocus:n},a){let r=(0,i.useRef)(null),s=rt();return Me((()=>{if(!a)return;let o=t.current;!o||F((()=>{if(!s.current)return;let t=null==e?void 0:e.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===t)return void(r.current=t)}else if(o.contains(t))return void(r.current=t);null!=n&&n.current?J(n.current):ne(o,K.First)===W.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),r.current=null==e?void 0:e.activeElement}))}),[a]),r}({ownerDocument:c,container:n,initialFocus:r},Boolean(2&o));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:a},r){let s=rt();ur(null==e?void 0:e.defaultView,"focus",(e=>{if(!r||!s.current)return;let o=new Set(null==n?void 0:n.current);o.add(t);let i=a.current;if(!i)return;let l=e.target;l&&l instanceof HTMLElement?mr(o,l)?(a.current=l,J(l)):(e.preventDefault(),e.stopPropagation(),J(i)):J(a.current)}),!0)}({ownerDocument:c,container:n,containers:s,previousActiveElement:u},Boolean(8&o));let d=function(){let e=(0,i.useRef)(0);return function(e,t,n){let a=I(t);(0,i.useEffect)((()=>{function t(e){a.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),p=q((e=>{let t=n.current;t&&H(d.current,{[lr.Forwards]:()=>{ne(t,K.First,{skipElements:[e.relatedTarget]})},[lr.Backwards]:()=>{ne(t,K.Last,{skipElements:[e.relatedTarget]})}})})),m=D(),f=(0,i.useRef)(!1),y={ref:a,onKeyDown(e){"Tab"==e.key&&(f.current=!0,m.requestAnimationFrame((()=>{f.current=!1})))},onBlur(e){let t=new Set(null==s?void 0:s.current);t.add(n);let a=e.relatedTarget;a instanceof HTMLElement&&"true"!==a.dataset.headlessuiFocusGuard&&(mr(t,a)||(f.current?ne(n.current,H(d.current,{[lr.Forwards]:()=>K.Next,[lr.Backwards]:()=>K.Previous})|K.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&J(e.target)))}};return i.createElement(i.Fragment,null,Boolean(4&o)&&i.createElement(Se,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Oe.Focusable}),be({ourProps:y,theirProps:l,defaultTag:"div",name:"FocusTrap"}),Boolean(4&o)&&i.createElement(Se,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Oe.Focusable}))})),{features:dr});function mr(e,t){var n;for(let a of e)if(null!=(n=a.current)&&n.contains(t))return!0;return!1}let fr=new Set,yr=new Map;function vr(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function br(e){let t=yr.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}const gr=window.ReactDOM;let hr=(0,i.createContext)(!1);function Nr(){return(0,i.useContext)(hr)}function Er(e){return i.createElement(hr.Provider,{value:e.force},e.children)}let xr=i.Fragment,Rr=Ne((function(e,t){let n=e,a=(0,i.useRef)(null),r=ce(le((e=>{a.current=e})),t),s=cr(a),o=function(e){let t=Nr(),n=(0,i.useContext)(Tr),a=cr(e),[r,s]=(0,i.useState)((()=>{if(!t&&null!==n||k.isServer)return null;let e=null==a?void 0:a.getElementById("headlessui-portal-root");if(e)return e;if(null===a)return null;let r=a.createElement("div");return r.setAttribute("id","headlessui-portal-root"),a.body.appendChild(r)}));return(0,i.useEffect)((()=>{null!==r&&(null!=a&&a.body.contains(r)||null==a||a.body.appendChild(r))}),[r,a]),(0,i.useEffect)((()=>{t||null!==n&&s(n.current)}),[n,s,t]),r}(a),[l]=(0,i.useState)((()=>{var e;return k.isServer?null:null!=(e=null==s?void 0:s.createElement("div"))?e:null})),c=A(),u=(0,i.useRef)(!1);return _((()=>{if(u.current=!1,o&&l)return o.contains(l)||(l.setAttribute("data-headlessui-portal",""),o.appendChild(l)),()=>{u.current=!0,F((()=>{var e;!u.current||!o||!l||(l instanceof Node&&o.contains(l)&&o.removeChild(l),o.childNodes.length<=0&&(null==(e=o.parentElement)||e.removeChild(o)))}))}}),[o,l]),c&&o&&l?(0,gr.createPortal)(be({ourProps:{ref:r},theirProps:n,defaultTag:xr,name:"Portal"}),l):null})),wr=i.Fragment,Tr=(0,i.createContext)(null),Cr=Ne((function(e,t){let{target:n,...a}=e,r={ref:ce(t)};return i.createElement(Tr.Provider,{value:n},be({ourProps:r,theirProps:a,defaultTag:wr,name:"Popover.Group"}))})),Or=Object.assign(Rr,{Group:Cr}),Sr=(0,i.createContext)((()=>{}));Sr.displayName="StackContext";var Pr=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Pr||{});function kr({children:e,onUpdate:t,type:n,element:a,enabled:r}){let s=(0,i.useContext)(Sr),o=q(((...e)=>{null==t||t(...e),s(...e)}));return _((()=>{let e=void 0===r||!0===r;return e&&o(0,n,a),()=>{e&&o(1,n,a)}}),[o,n,a,r]),i.createElement(Sr.Provider,{value:o},e)}var _r=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(_r||{}),Ir=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Ir||{});let Lr={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},Fr=(0,i.createContext)(null);function Mr(e){let t=(0,i.useContext)(Fr);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Mr),t}return t}function Dr(e,t){return H(t.type,Lr,e,t)}Fr.displayName="DialogContext";let qr=ye.RenderStrategy|ye.Static,Ar=Ne((function(e,t){let n=j(),{id:a=`headlessui-dialog-${n}`,open:r,onClose:s,initialFocus:o,__demoMode:l=!1,...c}=e,[u,d]=(0,i.useState)(0),p=_e();void 0===r&&null!==p&&(r=H(p,{[ke.Open]:!0,[ke.Closed]:!1}));let m=(0,i.useRef)(new Set),f=(0,i.useRef)(null),y=ce(f,t),v=(0,i.useRef)(null),b=cr(f),g=e.hasOwnProperty("open")||null!==p,h=e.hasOwnProperty("onClose");if(!g&&!h)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!g)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!h)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof r)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${r}`);if("function"!=typeof s)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);let N=r?0:1,[E,x]=(0,i.useReducer)(Dr,{titleId:null,descriptionId:null,panelRef:(0,i.createRef)()}),R=q((()=>s(!1))),w=q((e=>x({type:0,id:e}))),T=!!A()&&!l&&0===N,C=u>1,O=null!==(0,i.useContext)(Fr),S=C?"parent":"leaf";!function(e,t=!0){_((()=>{if(!t||!e.current)return;let n=e.current,a=z(n);if(a){fr.add(n);for(let e of yr.keys())e.contains(n)&&(br(e),yr.delete(e));return a.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement){for(let t of fr)if(e.contains(t))return;1===fr.size&&(yr.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),vr(e))}})),()=>{if(fr.delete(n),fr.size>0)a.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement&&!yr.has(e)){for(let t of fr)if(e.contains(t))return;yr.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),vr(e)}}));else for(let e of yr.keys())br(e),yr.delete(e)}}}),[t])}(f,!!C&&T);let P=q((()=>{var e,t;return[...Array.from(null!=(e=null==b?void 0:b.querySelectorAll("html > *, body > *, [data-headlessui-portal]"))?e:[]).filter((e=>!(e===document.body||e===document.head||!(e instanceof HTMLElement)||e.contains(v.current)||E.panelRef.current&&e.contains(E.panelRef.current)))),null!=(t=E.panelRef.current)?t:f.current]}));re((()=>P()),R,T&&!C),ur(null==b?void 0:b.defaultView,"keydown",(e=>{e.defaultPrevented||e.key===Le.Escape&&0===N&&(C||(e.preventDefault(),e.stopPropagation(),R()))})),function(e,t,n=(()=>[document.body])){(0,i.useEffect)((()=>{var a;if(!t||!e)return;let r=M(),s=window.pageYOffset;function o(e,t,n){let a=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),r.add((()=>{Object.assign(e.style,{[t]:a})}))}let i=e.documentElement,l=(null!=(a=e.defaultView)?a:window).innerWidth-i.clientWidth;if(o(i,"overflow","hidden"),l>0&&o(i,"paddingRight",l-(i.clientWidth-i.offsetWidth)+"px"),/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0){o(e.body,"marginTop",`-${s}px`),window.scrollTo(0,0);let t=null;r.addEventListener(e,"click",(a=>{if(a.target instanceof HTMLElement)try{let r=a.target.closest("a");if(!r)return;let{hash:s}=new URL(r.href),o=e.querySelector(s);o&&!n().some((e=>e.contains(o)))&&(t=o)}catch{}}),!0),r.addEventListener(e,"touchmove",(e=>{e.target instanceof HTMLElement&&!n().some((t=>t.contains(e.target)))&&e.preventDefault()}),{passive:!1}),r.add((()=>{window.scrollTo(0,window.pageYOffset+s),t&&t.isConnected&&(t.scrollIntoView({block:"nearest"}),t=null)}))}return r.dispose}),[e,t])}(b,0===N&&!O,P),(0,i.useEffect)((()=>{if(0!==N||!f.current)return;let e=new IntersectionObserver((e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&R()}));return e.observe(f.current),()=>e.disconnect()}),[N,f,R]);let[k,I]=ba(),L=(0,i.useMemo)((()=>[{dialogState:N,close:R,setTitleId:w},E]),[N,E,R,w]),F=(0,i.useMemo)((()=>({open:0===N})),[N]),D={ref:y,id:a,role:"dialog","aria-modal":0===N||void 0,"aria-labelledby":E.titleId,"aria-describedby":k};return i.createElement(kr,{type:"Dialog",enabled:0===N,element:f,onUpdate:q(((e,t,n)=>{"Dialog"===t&&H(e,{[Pr.Add](){m.current.add(n),d((e=>e+1))},[Pr.Remove](){m.current.add(n),d((e=>e-1))}})}))},i.createElement(Er,{force:!0},i.createElement(Or,null,i.createElement(Fr.Provider,{value:L},i.createElement(Or.Group,{target:f},i.createElement(Er,{force:!1},i.createElement(I,{slot:F,name:"Dialog.Description"},i.createElement(pr,{initialFocus:o,containers:m,features:T?H(S,{parent:pr.features.RestoreFocus,leaf:pr.features.All&~pr.features.FocusLock}):pr.features.None},be({ourProps:D,theirProps:c,slot:F,defaultTag:"div",features:qr,visible:0===N,name:"Dialog"})))))))),i.createElement(Se,{features:Oe.Hidden,ref:v}))})),Br=Ne((function(e,t){let n=j(),{id:a=`headlessui-dialog-overlay-${n}`,...r}=e,[{dialogState:s,close:o}]=Mr("Dialog.Overlay");return be({ourProps:{ref:ce(t),id:a,"aria-hidden":!0,onClick:q((e=>{if(e.target===e.currentTarget){if(Re(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),o()}}))},theirProps:r,slot:(0,i.useMemo)((()=>({open:0===s})),[s]),defaultTag:"div",name:"Dialog.Overlay"})})),jr=Ne((function(e,t){let n=j(),{id:a=`headlessui-dialog-backdrop-${n}`,...r}=e,[{dialogState:s},o]=Mr("Dialog.Backdrop"),l=ce(t);(0,i.useEffect)((()=>{if(null===o.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[o.panelRef]);let c=(0,i.useMemo)((()=>({open:0===s})),[s]);return i.createElement(Er,{force:!0},i.createElement(Or,null,be({ourProps:{ref:l,id:a,"aria-hidden":!0},theirProps:r,slot:c,defaultTag:"div",name:"Dialog.Backdrop"})))})),Hr=Ne((function(e,t){let n=j(),{id:a=`headlessui-dialog-panel-${n}`,...r}=e,[{dialogState:s},o]=Mr("Dialog.Panel"),l=ce(t,o.panelRef),c=(0,i.useMemo)((()=>({open:0===s})),[s]);return be({ourProps:{ref:l,id:a,onClick:q((e=>{e.stopPropagation()}))},theirProps:r,slot:c,defaultTag:"div",name:"Dialog.Panel"})})),zr=Ne((function(e,t){let n=j(),{id:a=`headlessui-dialog-title-${n}`,...r}=e,[{dialogState:s,setTitleId:o}]=Mr("Dialog.Title"),l=ce(t);(0,i.useEffect)((()=>(o(a),()=>o(null))),[a,o]);let c=(0,i.useMemo)((()=>({open:0===s})),[s]);return be({ourProps:{ref:l,id:a},theirProps:r,slot:c,defaultTag:"h2",name:"Dialog.Title"})})),$r=Object.assign(Ar,{Backdrop:jr,Panel:Hr,Overlay:Br,Title:zr,Description:ga});const Vr=(0,i.forwardRef)((({children:e,className:t},n)=>l().createElement("div",{ref:n,className:r()("yst-modal__container-header",t)},e)));Vr.displayName="Modal.Container.Header",Vr.propTypes={children:o().node.isRequired,className:o().string},Vr.defaultProps={className:""};const Ur=(0,i.forwardRef)((({children:e,className:t},n)=>l().createElement("div",{ref:n,className:r()("yst-modal__container-content",t)},e)));Ur.displayName="Modal.Container.Content",Ur.propTypes={children:o().node.isRequired,className:o().string},Ur.defaultProps={className:""};const Kr=(0,i.forwardRef)((({children:e,className:t},n)=>l().createElement("div",{ref:n,className:r()("yst-modal__container-footer",t)},e)));Kr.displayName="Modal.Container.Footer",Kr.propTypes={children:o().node.isRequired,className:o().string},Kr.defaultProps={className:""};const Wr=(0,i.forwardRef)((({children:e,className:t},n)=>l().createElement("div",{ref:n,className:r()("yst-modal__container",t)},e)));Wr.displayName="Modal.Container",Wr.propTypes={children:o().node.isRequired,className:o().string},Wr.defaultProps={className:""},Wr.Header=Vr,Wr.Content=Ur,Wr.Footer=Kr;const Gr=(0,i.createContext)({isOpen:!1,onClose:c.noop}),Qr=()=>(0,i.useContext)(Gr),Yr=(0,i.forwardRef)((({children:t,size:n,className:a,as:s,...o},i)=>l().createElement($r.Title,e({as:s,ref:i,className:r()("yst-title",n?ta.size[n]:"",a)},o),t)));Yr.displayName="Modal.Title",Yr.propTypes={size:o().oneOf(Object.keys(ta.size)),className:o().string,children:o().node.isRequired,as:o().elementType},Yr.defaultProps={size:void 0,className:"",as:"h1"};const Xr=(0,i.forwardRef)((({className:t,onClick:n,screenReaderText:a,children:s,...o},i)=>{const{onClose:c}=Qr(),d=u();return l().createElement("div",{className:"yst-modal__close"},l().createElement("button",e({ref:i,type:"button",onClick:n||c,className:r()("yst-modal__close-button",t)},o),s||l().createElement(l().Fragment,null,l().createElement("span",{className:"yst-sr-only"},a),l().createElement(Et,e({className:"yst-h-6 yst-w-6"},d)))))}));Xr.displayName="Modal.CloseButton",Xr.propTypes={className:o().string,onClick:o().func,screenReaderText:o().string,children:o().node},Xr.defaultProps={className:"",onClick:void 0,screenReaderText:"Close",children:void 0};const Zr=(0,i.forwardRef)((({children:t,className:n="",hasCloseButton:a=!0,closeButtonScreenReaderText:s="Close",...o},i)=>l().createElement($r.Panel,e({ref:i,className:r()("yst-modal__panel",n)},o),a&&l().createElement(Xr,{screenReaderText:s}),t)));Zr.displayName="Modal.Panel",Zr.propTypes={children:o().node.isRequired,className:o().string,hasCloseButton:o().bool,closeButtonScreenReaderText:o().string},Zr.defaultProps={className:"",hasCloseButton:!0,closeButtonScreenReaderText:"Close"};const Jr={position:{center:"yst-modal--center","top-center":"yst-modal--top-center"}},es=(0,i.forwardRef)((({isOpen:t,onClose:n,children:a,className:s="",position:o="center",initialFocus:c=null,...u},d)=>l().createElement(Gr.Provider,{value:{isOpen:t,onClose:n,initialFocus:c}},l().createElement(Nt.Root,{show:t,as:i.Fragment},l().createElement($r,e({as:"div",ref:d,className:"yst-root",open:t,onClose:n,initialFocus:c},u),l().createElement("div",{className:r()("yst-modal",Jr.position[o],s)},l().createElement(Nt.Child,{as:i.Fragment,enter:"yst-ease-out yst-duration-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",leave:"yst-ease-in yst-duration-200",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0"},l().createElement("div",{className:"yst-modal__overlay"})),l().createElement("div",{className:"yst-modal__layout"},l().createElement(Nt.Child,{as:i.Fragment,enter:"yst-ease-out yst-duration-300",enterFrom:"yst-opacity-0 yst-translate-y-4 sm:yst-translate-y-0 sm:yst-scale-95",enterTo:"yst-opacity-100 yst-translate-y-0 sm:yst-scale-100",leave:"yst-ease-in yst-duration-200",leaveFrom:"yst-opacity-100 yst-translate-y-0 sm:yst-scale-100",leaveTo:"yst-opacity-0 yst-translate-y-4 sm:yst-translate-y-0 sm:yst-scale-95"},a))))))));es.displayName="Modal",es.propTypes={isOpen:o().bool.isRequired,onClose:o().func.isRequired,children:o().node.isRequired,className:o().string,position:o().oneOf(Object.keys(Jr.position)),initialFocus:o().oneOfType([o().func,o().object])},es.defaultProps={className:"",position:"center",initialFocus:null},es.Panel=Zr,es.Title=Yr,es.CloseButton=Xr,es.Description=$r.Description,es.Description.displayName="Modal.Description",es.Container=Wr;const ts=es,ns=(0,i.createContext)({position:"bottom-left"}),as=()=>(0,i.useContext)(ns),rs={variant:{info:"yst-notification--info",warning:"yst-notification--warning",success:"yst-notification--success",error:"yst-notification--error"},size:{default:"",large:"yst-notification--large"}},ss=({children:e=null,id:t,variant:n="info",size:a="default",title:s="",description:o="",onDismiss:u=c.noop,autoDismiss:d=null,dismissScreenReaderLabel:p})=>{const{position:m}=as(),[f,y]=(0,i.useState)(!1);return l().createElement(da,{id:t,className:r()("yst-notification",rs.variant[n],rs.size[a]),position:m,size:a,onDismiss:u,autoDismiss:d,dismissScreenReaderLabel:p,isVisible:f,setIsVisible:y},l().createElement("div",{className:"yst-flex yst-items-start yst-gap-3"},l().createElement("div",{className:"yst-flex-shrink-0"},l().createElement(h,{variant:n,className:"yst-notification__icon"})),l().createElement("div",{className:"yst-w-0 yst-flex-1"},s&&l().createElement(da.Title,{title:s}),e||o&&l().createElement(da.Description,{description:o})),u&&l().createElement(da.Close,{dismissScreenReaderLabel:p})))};ss.propTypes={children:o().node,id:o().string.isRequired,variant:o().oneOf((0,c.keys)(rs.variant)),size:o().oneOf((0,c.keys)(rs.size)),title:o().string,description:o().oneOfType([o().node,o().arrayOf(o().node)]),onDismiss:o().func,autoDismiss:o().number,dismissScreenReaderLabel:o().string.isRequired};const os={position:{"bottom-center":"yst-notifications--bottom-center","bottom-left":"yst-notifications--bottom-left","top-center":"yst-notifications--top-center"}},is=({children:t=null,className:n="",position:a="bottom-left",...s})=>l().createElement(ns.Provider,{value:{position:a}},l().createElement("aside",e({className:r()("yst-notifications",os.position[a],n)},s),t));is.propTypes={children:o().node,className:o().string,position:o().oneOf((0,c.keys)(os.position))},(is.Notification=ss).displayName="Notifications.Notification";const ls=is,cs=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"}))})),us=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))})),ds=({className:t="",children:n,active:a=!1,disabled:s=!1,...o})=>l().createElement("button",e({type:"button",className:r()("yst-pagination__button",t,a&&!s&&"yst-pagination__button--active",s&&"yst-pagination__button--disabled"),disabled:s},o),n);ds.displayName="Pagination.Button",ds.propTypes={className:o().string,children:o().node.isRequired,active:o().bool,disabled:o().bool};const ps=ds,ms=()=>l().createElement("span",{className:"yst-pagination-display__truncated"},"..."),fs=({current:e,total:t,onNavigate:n,maxPageButtons:a,disabled:r})=>{const s=(0,i.useMemo)((()=>(0,c.clamp)(t,1,a)),[t,a]),o=(0,i.useMemo)((()=>(0,c.round)(s/2,0)),[s]),u=(0,i.useMemo)((()=>t>a&&a>1&&e!==o+1),[t,a,o]),d=(0,i.useMemo)((()=>t-(s-o)+1),[t,s,o]),p=(0,i.useMemo)((()=>e>o&&e<d),[e,o,d]);return l().createElement(l().Fragment,null,(0,c.range)(o).map((t=>{const a=t+1;return l().createElement(ps,{key:a,className:"yst-px-4",onClick:n,"data-page":a,active:a===e,disabled:r},a)})),u&&l().createElement(ms,null),p&&l().createElement(l().Fragment,null,l().createElement(ps,{className:"yst-px-4",onClick:n,"data-page":e,active:!0,disabled:r},e),e!==d-1&&l().createElement(ms,null)),(0,c.rangeRight)(s-o).map((a=>{const s=t-a;return l().createElement(ps,{key:s,className:"yst-px-4",onClick:n,"data-page":s,active:s===e,disabled:r},s)})))};fs.displayName="Pagination.DisplayButtons",fs.propTypes={current:o().number.isRequired,total:o().number.isRequired,onNavigate:o().func.isRequired,maxPageButtons:o().number.isRequired,disabled:o().bool.isRequired};const ys=fs,vs=({current:e,total:t})=>l().createElement("bdo",{dir:"ltr",className:"yst-pagination-display__text"},l().createElement("span",{className:"yst-pagination-display__current-text"},e)," / ",t);vs.displayName="Pagination.DisplayText",vs.propTypes={current:o().number.isRequired,total:o().number.isRequired};const bs=vs,gs={buttons:"buttons",text:"text"},hs=({className:t="",current:n,total:a,onNavigate:s,variant:o=gs.buttons,maxPageButtons:d=6,disabled:p=!1,screenReaderTextPrevious:m,screenReaderTextNext:f,...y})=>{const v=u(),b=(0,i.useCallback)((({target:e})=>s((0,c.parseInt)(e.dataset.page))),[s]);return l().createElement("nav",e({className:r()("yst-pagination",t)},y),l().createElement(ps,{className:"yst-rounded-s-md",onClick:b,"data-page":n-1,disabled:p||n-1<1},l().createElement("span",{className:"yst-pointer-events-none yst-sr-only"},m),l().createElement(cs,e({className:"yst-pointer-events-none yst-h-5 yst-w-5"},v))),o===gs.text&&l().createElement(bs,{current:n,total:a}),o===gs.buttons&&l().createElement(ys,{current:n,total:a,maxPageButtons:d,onNavigate:b,disabled:p}),l().createElement(ps,{className:"yst-rounded-e-md",onClick:b,"data-page":n+1,disabled:p||n+1>a},l().createElement("span",{className:"yst-pointer-events-none yst-sr-only"},f),l().createElement(us,e({className:"yst-pointer-events-none yst-h-5 yst-w-5"},v))))};hs.propTypes={className:o().string,current:o().number.isRequired,total:o().number.isRequired,onNavigate:o().func.isRequired,variant:o().oneOf(Object.keys(gs)),maxPageButtons:o().number,disabled:o().bool,screenReaderTextPrevious:o().string.isRequired,screenReaderTextNext:o().string.isRequired};const Ns=hs,Es=(0,i.createContext)({handleDismiss:c.noop}),xs={"no-arrow":"yst-popover--no-arrow",top:"yst-popover--top","top-left":"yst-popover--top-left","top-right":"yst-popover--top-right",right:"yst-popover--right",bottom:"yst-popover--bottom",left:"yst-popover--left","bottom-left":"yst-popover--bottom-left","bottom-right":"yst-popover--bottom-right"},Rs=()=>(0,i.useContext)(Es),ws=(0,i.forwardRef)((({screenReaderLabel:t="Close",onClick:n=null,className:a="",children:s=null,...o},i)=>{const{handleDismiss:c}=Rs(),d=u();return l().createElement("div",{className:"yst-popover__close"},l().createElement("button",e({type:"button",ref:i,onClick:n||c,className:r()("yst-popover__close-button",a)},o),s||l().createElement(l().Fragment,null,l().createElement("span",{className:"yst-sr-only"},t),l().createElement(Et,e({className:"yst-h-5 yst-w-5"},d)))))}));ws.displayName="Popover.CloseButton",ws.propTypes={screenReaderLabel:o().string,onClick:o().func,children:o().node,className:o().string};const Ts=({className:t="",children:n=null,...a})=>l().createElement(aa,e({className:r()("yst-popover__title",t),size:"5"},a),n);Ts.displayName="Popover.Title",Ts.propTypes={children:o().node,className:o().string};const Cs=({children:t=null,as:n="p",className:a="",...s})=>l().createElement(n,e({className:r()("yst-popover__content",a)},s),t);Cs.displayName="Popover.Content",Cs.propTypes={className:o().string,as:o().elementType,children:o().oneOfType([o().node,o().arrayOf(o().node)])};const Os=({className:t="",isVisible:n,...a})=>l().createElement(Nt,e({as:"div",show:n,appear:!0,unmount:!0,enter:r()("yst-popover__backdrop yst-transition yst-duration-150 yst-ease-in",t),enterFrom:"yst-bg-opacity-0",enterTo:"yst-bg-opacity-75",entered:r()("yst-popover__backdrop",t),leave:r()("yst-popover__backdrop yst-transition yst-duration-150 yst-ease-in",t),leaveFrom:"yst-bg-opacity-75",leaveTo:"yst-bg-opacity-0"},a));Os.displayName="Popover.Backdrop",Os.propTypes={className:o().string,isVisible:o().bool.isRequired};const Ss=(0,i.forwardRef)((({children:t,role:n="dialog",as:a="div",className:s="",isVisible:o=!1,setIsVisible:u=c.noop,position:d="no-arrow",hasBackdrop:p=!1,...m},f)=>{const y=(0,i.useCallback)((()=>{u(!1)}),[u]);return l().createElement(Es.Provider,{value:{handleDismiss:y}},p&&l().createElement(Os,{isVisible:o}),l().createElement(Nt,{as:i.Fragment,show:o,appear:!0,enter:"yst-transition yst-ease-in-out yst-duration-50",enterFrom:"yst-bg-opacity-0",enterTo:"yst-bg-opacity-100",leave:"yst-transition yst-ease-in-out yst-duration-50",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",unmount:!0},l().createElement(a,e({ref:f,role:n,"aria-modal":"true",className:r()("yst-popover",xs[d],s)},m),t)))}));Ss.displayName="Popover",Ss.propTypes={as:o().elementType,children:o().node.isRequired,role:o().string,className:o().string,isVisible:o().bool,setIsVisible:o().func,position:o().oneOf(Object.keys(xs)),hasBackdrop:o().bool},Ss.Title=Ts,Ss.CloseButton=ws,Ss.Content=Cs,Ss.Backdrop=Os;const Ps=Ss,ks={variant:{default:"","inline-block":"yst-radio-group--inline-block"}},_s=({children:t=null,id:n="",name:a="",value:s="",label:o="",description:u="",options:d=[],onChange:p=c.noop,variant:m="default",disabled:f=!1,className:y="",...v})=>{const b=(0,i.useCallback)((({target:e})=>e.checked&&p(e.value)),[p]);return l().createElement("fieldset",{id:`radio-group-${n}`,className:r()("yst-radio-group",f&&"yst-radio-group--disabled",ks.variant[m],y)},o&&l().createElement(Ut,{as:"legend",className:"yst-radio-group__label",label:o}),u&&l().createElement("div",{className:"yst-radio-group__description"},u),l().createElement("div",{className:"yst-radio-group__options"},t||d.map(((t,r)=>{const o=`radio-${n}-${r}`;return l().createElement(dn,e({key:o,id:o,name:a,value:t.value,label:t.label,screenReaderLabel:t.screenReaderLabel,variant:m,checked:s===t.value,onChange:b,disabled:f},v))}))))};_s.propTypes={children:o().node,id:o().string,name:o().string,value:o().string,label:o().string,description:o().string,options:o().arrayOf(o().shape({value:o().string.isRequired,label:o().string.isRequired,screenReaderLabel:o().string})),onChange:o().func,variant:o().oneOf(Object.keys(ks.variant)),disabled:o().bool,className:o().string},(_s.Radio=dn).displayName="RadioGroup.Radio";const Is=_s,Ls={isRtl:!1},Fs=(0,i.createContext)(Ls),Ms=({children:t,context:n={},...a})=>l().createElement(Fs.Provider,{value:{...Ls,...n}},l().createElement("div",e({className:"yst-root"},a),t));Ms.propTypes={children:o().node.isRequired,context:o().shape({isRtl:o().bool})};const Ds=Ms,qs=(0,i.forwardRef)((({id:t,label:n,description:a,disabled:s,validation:o,className:i,...c},u)=>{const{ids:d,describedBy:p}=Pa(t,{validation:null==o?void 0:o.message,description:a});return l().createElement("div",{className:r()("yst-select-field",s&&"yst-select-field--disabled",i)},l().createElement(Mn,e({ref:u,id:t,label:n,labelProps:{as:"label",className:"yst-label yst-select-field__label"},disabled:s,validation:o,className:"yst-select-field__select",buttonProps:{"aria-describedby":p}},c)),(null==o?void 0:o.message)&&l().createElement(x,{variant:null==o?void 0:o.variant,id:d.validation,className:"yst-select-field__validation"},o.message),a&&l().createElement("div",{id:d.description,className:"yst-select-field__description"},a))}));qs.displayName="SelectField",qs.propTypes={id:o().string.isRequired,label:o().string.isRequired,description:o().node,disabled:o().bool,validation:o().shape({variant:o().string,message:o().node}),className:o().string},qs.defaultProps={description:null,disabled:!1,validation:{},className:""},qs.Option=Mn.Option,qs.Option.displayName="SelectField.Option";const As=qs,Bs=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"}))})),js=({as:t="span",children:n=null,className:a="",...s})=>l().createElement(t,e({className:r()("yst-sidebar-navigation__icon",a)},s),n);js.displayName="SidebarNavigation.Icon",js.propTypes={as:o().elementType,children:o().node,className:o().string};const Hs=({as:t="div",label:n,icon:a=null,children:s=null,defaultOpen:o=!0,id:c,...u})=>{const{history:d,addToHistory:p,removeFromHistory:m}=to(),[f,y,,v]=Ua(o),b=(0,i.useCallback)((()=>{y(),f?m(c):p(c)}),[y,c,f,p,m]);return(0,i.useEffect)((()=>{d.includes(c)&&v()}),[d,c,v]),l().createElement(t,{className:"yst-sidebar-navigation__collapsible"},l().createElement("button",e({type:"button",className:"yst-sidebar-navigation__collapsible-button yst-group",onClick:b,"aria-expanded":f},u),a&&l().createElement(js,{as:a,className:"yst-h-6 yst-w-6"}),n,l().createElement(js,{as:Bs,className:r()("yst-ms-auto yst-h-4 yst-w-4 yst-stroke-3",f&&"yst-rotate-180")})),f&&s)};Hs.displayName="SidebarNavigation.Collapsible",Hs.propTypes={as:o().elementType,icon:o().elementType,label:o().string.isRequired,defaultOpen:o().bool,children:o().node,id:o().string.isRequired};const zs=({as:t="li",children:n=null,className:a="",...s})=>l().createElement(t,e({className:r()("yst-sidebar-navigation__item",a)},s),n);zs.displayName="SidebarNavigation.Item",zs.propTypes={as:o().elementType,children:o().node,className:o().string};const $s=({as:t="a",pathProp:n="href",children:a=null,className:s="",onClick:o=null,...c})=>{const{activePath:u,setMobileMenuOpen:d}=to(),p=(0,i.useCallback)((()=>{d(!1),null==o||o()}),[d]);return l().createElement(t,e({className:r()("yst-sidebar-navigation__link yst-group",u===(null==c?void 0:c[n])&&"yst-sidebar-navigation__item--active",s),"aria-current":u===(null==c?void 0:c[n])?"page":null},c,{onClick:p}),a)};$s.displayName="SidebarNavigation.Link",$s.propTypes={as:o().elementType,pathProp:o().string,children:o().node,className:o().string,onClick:o().func};const Vs=({as:t="ul",children:n=null,isIndented:a=!1,className:s="",...o})=>l().createElement(t,e({role:"list",className:r()("yst-sidebar-navigation__list",a&&"yst-sidebar-navigation__list--indented",s)},o),n);Vs.displayName="SidebarNavigation.List",Vs.propTypes={as:o().elementType,children:o().node,isIndented:o().bool,className:o().string};const Us=({label:t,icon:n=null,children:a=null,defaultOpen:r=!0,id:s,...o})=>l().createElement(Hs,e({label:t,icon:n,defaultOpen:r,id:s},o),l().createElement(Vs,{isIndented:!0},a));Us.propTypes={label:o().string.isRequired,icon:o().elementType,defaultOpen:o().bool,children:o().node,id:o().string.isRequired};const Ks=Us,Ws=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h7"}))})),Gs=({children:e,openButtonId:t=null,closeButtonId:n=null,openButtonScreenReaderText:a="Open",closeButtonScreenReaderText:r="Close","aria-label":s=""})=>{const{isMobileMenuOpen:o,setMobileMenuOpen:c}=to(),u=(0,i.useCallback)((()=>c(!0)),[c]),d=(0,i.useCallback)((()=>c(!1)),[c]);return l().createElement(l().Fragment,null,l().createElement($r,{className:"yst-root",open:o,onClose:d,"aria-label":s},l().createElement("div",{className:"yst-mobile-navigation__dialog"},l().createElement("div",{className:"yst-fixed yst-inset-0 yst-bg-slate-600 yst-bg-opacity-75 yst-z-30","aria-hidden":"true"}),l().createElement($r.Panel,{className:"yst-relative yst-flex yst-flex-1 yst-flex-col yst-max-w-xs yst-w-full yst-z-40 yst-bg-slate-100"},l().createElement("div",{className:"yst-absolute yst-top-0 yst-end-0 yst--me-14 yst-p-1"},l().createElement("button",{type:"button",id:n,className:"yst-flex yst-h-12 yst-w-12 yst-items-center yst-justify-center yst-rounded-full focus:yst-outline-none yst-bg-slate-600 focus:yst-ring-2 focus:yst-ring-inset focus:yst-ring-primary-500",onClick:d},l().createElement("span",{className:"yst-sr-only"},r),l().createElement(Et,{className:"yst-h-6 yst-w-6 yst-text-white"}))),l().createElement("div",{className:"yst-flex-1 yst-h-0 yst-overflow-y-auto"},l().createElement("nav",{className:"yst-h-full yst-flex yst-flex-col yst-py-6 yst-px-2"},e))))),l().createElement("div",{className:"yst-mobile-navigation__top"},l().createElement("div",{className:"yst-flex yst-relative yst-flex-shrink-0 yst-h-16 yst-z-10 yst-bg-white yst-border-b yst-border-slate-200"},l().createElement("button",{type:"button",id:t,className:"yst-px-4 yst-border-r yst-border-slate-200 yst-text-slate-500 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-inset focus:yst-ring-primary-500",onClick:u},l().createElement("span",{className:"yst-sr-only"},a),l().createElement(Ws,{className:"yst-w-6 yst-h-6"})))))};Gs.propTypes={children:o().node.isRequired,openButtonId:o().string,closeButtonId:o().string,openButtonScreenReaderText:o().string,closeButtonScreenReaderText:o().string,"aria-label":o().string};const Qs=Gs,Ys=({children:e,className:t=""})=>l().createElement("nav",{className:r()("yst-sidebar-navigation__sidebar",t)},e);Ys.propTypes={children:o().node.isRequired,className:o().string};const Xs=Ys,Zs=({as:t="a",pathProp:n="href",label:a,...r})=>l().createElement(zs,null,l().createElement($s,e({as:t,pathProp:n},r),a));Zs.propTypes={as:o().elementType,pathProp:o().string,label:o().node.isRequired,isActive:o().bool};const Js=Zs,eo=(0,i.createContext)({activePath:"",isMobileMenuOpen:!1,setMobileMenuOpen:c.noop,history:[],setHistory:c.noop,removeFromHistory:c.noop,addToHistory:c.noop}),to=()=>(0,i.useContext)(eo),no=({activePath:e="",children:t})=>{const[n,a]=(0,i.useState)(!1),[r,s]=(0,i.useState)([]),o=(0,i.useCallback)((e=>{s((0,c.uniq)([...r,e]))}),[r]),u=(0,i.useCallback)((e=>{s(r.filter((t=>t!==e)))}),[r]);return l().createElement(eo.Provider,{value:{activePath:e,isMobileMenuOpen:n,setMobileMenuOpen:a,history:r,setHistory:s,removeFromHistory:u,addToHistory:o}},t)};no.propTypes={activePath:o().string,children:o().node.isRequired},(no.Sidebar=Xs).displayName="SidebarNavigation.Sidebar",(no.Mobile=Qs).displayName="SidebarNavigation.Mobile",(no.MenuItem=Ks).displayName="SidebarNavigation.MenuItem",(no.SubmenuItem=Js).displayName="SidebarNavigation.SubmenuItem",no.List=Vs,no.Item=zs,no.Collapsible=Hs,no.Link=$s,no.Icon=js;const ao=no,ro=(0,i.forwardRef)((({id:t,label:n,labelSuffix:a,disabled:s,className:o,description:i,validation:c,...u},d)=>{const{ids:p,describedBy:m}=Pa(t,{validation:null==c?void 0:c.message,description:i});return l().createElement("div",{className:r()("yst-tag-field",s&&"yst-tag-field--disabled",o)},l().createElement("div",{className:"yst-flex yst-items-center yst-mb-2"},l().createElement(Ut,{className:"yst-tag-field__label",htmlFor:t,label:n}),a),l().createElement(It,e({as:Yn,ref:d,id:t,disabled:s,className:"yst-tag-field__input","aria-describedby":m,validation:c},u)),(null==c?void 0:c.message)&&l().createElement(x,{variant:null==c?void 0:c.variant,id:p.validation,className:"yst-tag-field__validation"},c.message),i&&l().createElement("p",{id:p.description,className:"yst-tag-field__description"},i))}));ro.displayName="TagField",ro.propTypes={id:o().string.isRequired,label:o().string.isRequired,labelSuffix:o().node,disabled:o().bool,className:o().string,description:o().node,validation:o().shape({variant:o().string,message:o().node})},ro.defaultProps={labelSuffix:null,disabled:!1,className:"",description:null,validation:{}};const so=ro,oo=(0,i.forwardRef)((({id:t,onChange:n,label:a,labelSuffix:s,disabled:o,readOnly:i,className:c,description:u,validation:d,...p},m)=>{const{ids:f,describedBy:y}=Pa(t,{validation:null==d?void 0:d.message,description:u});return l().createElement("div",{className:r()("yst-text-field",o&&"yst-text-field--disabled",i&&"yst-text-field--read-only",c)},l().createElement("div",{className:"yst-flex yst-items-center yst-mb-2"},l().createElement(Ut,{className:"yst-text-field__label",htmlFor:t},a),s),l().createElement(It,e({as:Zn,ref:m,id:t,onChange:n,disabled:o,readOnly:i,className:"yst-text-field__input","aria-describedby":y,validation:d},p)),(null==d?void 0:d.message)&&l().createElement(x,{variant:null==d?void 0:d.variant,id:f.validation,className:"yst-text-field__validation"},d.message),u&&l().createElement("p",{id:f.description,className:"yst-text-field__description"},u))}));oo.displayName="TextField",oo.propTypes={id:o().string.isRequired,onChange:o().func.isRequired,label:o().string.isRequired,labelSuffix:o().node,disabled:o().bool,readOnly:o().bool,className:o().string,description:o().node,validation:o().shape({variant:o().string,message:o().node})},oo.defaultProps={labelSuffix:null,disabled:!1,readOnly:!1,className:"",description:null,validation:{}};const io=oo,lo=(0,i.forwardRef)((({id:t,label:n,className:a="",description:s="",validation:o={},disabled:i,readOnly:c,...u},d)=>{const{ids:p,describedBy:m}=Pa(t,{validation:null==o?void 0:o.message,description:s});return l().createElement("div",{className:r()("yst-textarea-field",i&&"yst-textarea-field--disabled",c&&"yst-textarea-field--read-only",a)},l().createElement("div",{className:"yst-flex yst-items-center yst-mb-2"},l().createElement(Ut,{className:"yst-textarea-field__label",htmlFor:t},n)),l().createElement(It,e({as:ea,ref:d,id:t,className:"yst-textarea-field__input","aria-describedby":m,validation:o,disabled:i,readOnly:c},u)),(null==o?void 0:o.message)&&l().createElement(x,{variant:null==o?void 0:o.variant,id:p.validation,className:"yst-textarea-field__validation"},o.message),s&&l().createElement("p",{id:p.description,className:"yst-textarea-field__description"},s))}));lo.displayName="TextareaField",lo.propTypes={id:o().string.isRequired,label:o().string.isRequired,className:o().string,description:o().node,disabled:o().bool,readOnly:o().bool,validation:o().shape({variant:o().string,message:o().node})},lo.defaultProps={className:"",description:null,disabled:!1,readOnly:!1,validation:{}};const co=lo,uo=(0,i.forwardRef)((({id:t,children:n,label:a,labelSuffix:s,description:o,checked:i,disabled:c,onChange:u,className:d,"aria-label":p,...m},f)=>l().createElement(xa.Group,{as:"div",className:r()("yst-toggle-field",c&&"yst-toggle-field--disabled",d)},l().createElement("div",{className:"yst-toggle-field__header"},a&&l().createElement("div",{className:"yst-toggle-field__label-wrapper"},l().createElement(Ut,{as:xa.Label,className:"yst-toggle-field__label",label:a,"aria-label":p}),s),l().createElement(wa,e({id:t,ref:f,checked:i,onChange:u,screenReaderLabel:a,disabled:c},m))),(o||n)&&l().createElement(xa.Description,{as:"div",className:"yst-toggle-field__description"},o||n))));uo.displayName="ToggleField",uo.propTypes={id:o().string.isRequired,children:o().node,label:o().string.isRequired,labelSuffix:o().node,description:o().node,checked:o().bool.isRequired,disabled:o().bool,onChange:o().func.isRequired,className:o().string,"aria-label":o().string},uo.defaultProps={children:null,labelSuffix:null,description:null,disabled:!1,className:"","aria-label":null};const po=uo,mo=(0,i.createContext)({isVisible:!1,show:c.noop,hide:c.noop,tooltipPosition:{},setTooltipPosition:c.noop}),fo=()=>(0,i.useContext)(mo),yo=({as:e="span",className:t="",children:n=null})=>{const[a,,,s,o]=Ua(!1),[c,u]=(0,i.useState)({}),d=(0,i.useCallback)((e=>{"Escape"===e.key&&a&&(o(),e.stopPropagation())}),[a,o]),p=(0,i.useMemo)((()=>({isVisible:a,show:s,hide:o,tooltipPosition:c,setTooltipPosition:u})),[a,s,o,c]);return l().createElement(mo.Provider,{value:p},l().createElement(e,{className:r()("yst-tooltip-container",t),onKeyDown:d},n))};yo.propTypes={as:o().elementType,children:o().node,className:o().string};const vo=({as:t="button",className:n="",children:a=null,ariaDescribedby:s=null,...o})=>{const{show:u,hide:d,tooltipPosition:p,isVisible:m}=fo(),f=(0,i.useRef)();return(0,i.useEffect)((()=>{const e=(0,c.debounce)((e=>{const t=f.current.getBoundingClientRect(),n=t.top-10,a=t.right+10,r=t.bottom+10,s=t.left-10,o=e.clientX,i=e.clientY,l=o<p.left||o>p.right||i<p.top||i>p.bottom;(o<s||o>a||i<n||i>r)&&document.activeElement!==f.current&&l?d():u()}),100);return document.addEventListener("pointermove",e),()=>{document.removeEventListener("pointermove",e),e.cancel()}}),[u,d,f.current,p,m]),l().createElement(t,e({ref:f,className:r()("yst-tooltip-trigger",n),"aria-describedby":s,"aria-disabled":!0},o),a)};vo.propTypes={as:o().elementType,children:o().node,className:o().string,ariaDescribedby:o().string};const bo=({className:t="",children:n=null,...a})=>{const{isVisible:s,setTooltipPosition:o}=fo(),c=(0,i.useRef)();return(0,i.useEffect)((()=>{const e=c.current.getBoundingClientRect();o({top:e.top,right:e.right,bottom:e.bottom,left:e.left})}),[c.current,o,s]),l().createElement(Sa,e({ref:c,className:r()(t,{"yst-hidden":!s})},a),n)};bo.propTypes={className:o().string,children:o().node};const go=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"}))}));var ho=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ho||{}),No=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(No||{}),Eo=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(Eo||{});function xo(e,t=(e=>e)){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,a=te(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),r=n?a.indexOf(n):null;return-1===r&&(r=null),{items:a,activeItemIndex:r}}let Ro={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,menuState:0},2:(e,t)=>{var n;let a=xo(e),r=pe(t,{resolveItems:()=>a.items,resolveActiveIndex:()=>a.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...a,searchQuery:"",activeItemIndex:r,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,a=e.searchQuery+t.value.toLowerCase(),r=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(a))&&!e.dataRef.current.disabled})),s=r?e.items.indexOf(r):-1;return-1===s||s===e.activeItemIndex?{...e,searchQuery:a}:{...e,searchQuery:a,activeItemIndex:s,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=xo(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...n}},6:(e,t)=>{let n=xo(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}}},wo=(0,i.createContext)(null);function To(e){let t=(0,i.useContext)(wo);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,To),t}return t}function Co(e,t){return H(t.type,Ro,e,t)}wo.displayName="MenuContext";let Oo=i.Fragment,So=Ne((function(e,t){let n=(0,i.useReducer)(Co,{menuState:1,buttonRef:(0,i.createRef)(),itemsRef:(0,i.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:a,itemsRef:r,buttonRef:s},o]=n,l=ce(t);re([s,r],((e,t)=>{var n;o({type:1}),X(t,Y.Loose)||(e.preventDefault(),null==(n=s.current)||n.focus())}),0===a);let c=q((()=>{o({type:1})})),u=(0,i.useMemo)((()=>({open:0===a,close:c})),[a,c]),d=e,p={ref:l};return i.createElement(wo.Provider,{value:n},i.createElement(Ie,{value:H(a,{0:ke.Open,1:ke.Closed})},be({ourProps:p,theirProps:d,slot:u,defaultTag:Oo,name:"Menu"})))})),Po=Ne((function(e,t){var n;let a=j(),{id:r=`headlessui-menu-button-${a}`,...s}=e,[o,l]=To("Menu.Button"),c=ce(o.buttonRef,t),u=D(),d=q((e=>{switch(e.key){case Le.Space:case Le.Enter:case Le.ArrowDown:e.preventDefault(),e.stopPropagation(),l({type:0}),u.nextFrame((()=>l({type:2,focus:de.First})));break;case Le.ArrowUp:e.preventDefault(),e.stopPropagation(),l({type:0}),u.nextFrame((()=>l({type:2,focus:de.Last})))}})),p=q((e=>{e.key===Le.Space&&e.preventDefault()})),m=q((t=>{if(Re(t.currentTarget))return t.preventDefault();e.disabled||(0===o.menuState?(l({type:1}),u.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(t.preventDefault(),l({type:0})))})),f=(0,i.useMemo)((()=>({open:0===o.menuState})),[o]);return be({ourProps:{ref:c,id:r,type:oe(e,o.buttonRef),"aria-haspopup":"menu","aria-controls":null==(n=o.itemsRef.current)?void 0:n.id,"aria-expanded":e.disabled?void 0:0===o.menuState,onKeyDown:d,onKeyUp:p,onClick:m},theirProps:s,slot:f,defaultTag:"button",name:"Menu.Button"})})),ko=ye.RenderStrategy|ye.Static,_o=Ne((function(e,t){var n,a;let r=j(),{id:s=`headlessui-menu-items-${r}`,...o}=e,[l,c]=To("Menu.Items"),u=ce(l.itemsRef,t),d=cr(l.itemsRef),p=D(),m=_e(),f=null!==m?m===ke.Open:0===l.menuState;(0,i.useEffect)((()=>{let e=l.itemsRef.current;!e||0===l.menuState&&e!==(null==d?void 0:d.activeElement)&&e.focus({preventScroll:!0})}),[l.menuState,l.itemsRef,d]),ue({container:l.itemsRef.current,enabled:0===l.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let y=q((e=>{var t,n;switch(p.dispose(),e.key){case Le.Space:if(""!==l.searchQuery)return e.preventDefault(),e.stopPropagation(),c({type:3,value:e.key});case Le.Enter:if(e.preventDefault(),e.stopPropagation(),c({type:1}),null!==l.activeItemIndex){let{dataRef:e}=l.items[l.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}Z(l.buttonRef.current);break;case Le.ArrowDown:return e.preventDefault(),e.stopPropagation(),c({type:2,focus:de.Next});case Le.ArrowUp:return e.preventDefault(),e.stopPropagation(),c({type:2,focus:de.Previous});case Le.Home:case Le.PageUp:return e.preventDefault(),e.stopPropagation(),c({type:2,focus:de.First});case Le.End:case Le.PageDown:return e.preventDefault(),e.stopPropagation(),c({type:2,focus:de.Last});case Le.Escape:e.preventDefault(),e.stopPropagation(),c({type:1}),M().nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case Le.Tab:e.preventDefault(),e.stopPropagation(),c({type:1}),M().nextFrame((()=>{!function(e,t){ne(Q(),t,{relativeTo:e})}(l.buttonRef.current,e.shiftKey?K.Previous:K.Next)}));break;default:1===e.key.length&&(c({type:3,value:e.key}),p.setTimeout((()=>c({type:4})),350))}})),v=q((e=>{e.key===Le.Space&&e.preventDefault()})),b=(0,i.useMemo)((()=>({open:0===l.menuState})),[l]);return be({ourProps:{"aria-activedescendant":null===l.activeItemIndex||null==(n=l.items[l.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(a=l.buttonRef.current)?void 0:a.id,id:s,onKeyDown:y,onKeyUp:v,role:"menu",tabIndex:0,ref:u},theirProps:o,slot:b,defaultTag:"div",features:ko,visible:f,name:"Menu.Items"})})),Io=i.Fragment,Lo=Ne((function(e,t){let n=j(),{id:a=`headlessui-menu-item-${n}`,disabled:r=!1,...s}=e,[o,l]=To("Menu.Item"),c=null!==o.activeItemIndex&&o.items[o.activeItemIndex].id===a,u=(0,i.useRef)(null),d=ce(t,u);_((()=>{if(0!==o.menuState||!c||0===o.activationTrigger)return;let e=M();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=u.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[u,c,o.menuState,o.activationTrigger,o.activeItemIndex]);let p=(0,i.useRef)({disabled:r,domRef:u});_((()=>{p.current.disabled=r}),[p,r]),_((()=>{var e,t;p.current.textValue=null==(t=null==(e=u.current)?void 0:e.textContent)?void 0:t.toLowerCase()}),[p,u]),_((()=>(l({type:5,id:a,dataRef:p}),()=>l({type:6,id:a}))),[p,a]);let m=q((()=>{l({type:1})})),f=q((e=>{if(r)return e.preventDefault();l({type:1}),Z(o.buttonRef.current)})),y=q((()=>{if(r)return l({type:2,focus:de.Nothing});l({type:2,focus:de.Specific,id:a})})),v=qe(),b=q((e=>v.update(e))),g=q((e=>{!v.wasMoved(e)||r||c||l({type:2,focus:de.Specific,id:a,trigger:0})})),h=q((e=>{!v.wasMoved(e)||r||!c||l({type:2,focus:de.Nothing})})),N=(0,i.useMemo)((()=>({active:c,disabled:r,close:m})),[c,r,m]);return be({ourProps:{id:a,ref:d,role:"menuitem",tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,disabled:void 0,onClick:f,onFocus:y,onPointerEnter:b,onMouseEnter:b,onPointerMove:g,onMouseMove:g,onPointerLeave:h,onMouseLeave:h},theirProps:s,slot:N,defaultTag:Io,name:"Menu.Item"})})),Fo=Object.assign(So,{Button:Po,Items:_o,Item:Lo});const Mo=({children:t,className:n="",...a})=>l().createElement(Fo.Item,null,(({active:s})=>l().createElement(Pt,e({variant:"tertiary"},a,{className:r()("yst-dropdown-menu__item--button",s?"yst-bg-slate-100":"",n)}),t)));Mo.propTypes={children:o().node.isRequired,className:o().string};const Do=({className:t="",screenReaderTriggerLabel:n,Icon:a=go,...s})=>l().createElement(Fo.Button,e({},s,{className:r()("yst-dropdown-menu__icon-trigger",t)}),(({open:e})=>l().createElement(l().Fragment,null,l().createElement(a,{className:r()("yst-h-6 yst-w-6 hover:yst-text-slate-600",e?"yst-text-slate-600":"")}),l().createElement("span",{className:"yst-sr-only"},n))));Do.propTypes={className:o().string,screenReaderTriggerLabel:o().string.isRequired,Icon:o().node};const qo=({children:t,className:n="",...a})=>l().createElement(Nt,{as:i.Fragment,enter:"yst-transition yst-ease-out yst-duration-100",enterFrom:"yst-transform yst-opacity-0 yst-scale-95",enterTo:"yst-transform yst-opacity-100 yst-scale-100",leave:"yst-transition yst-ease-in yst-duration-75",leaveFrom:"yst-transform yst-opacity-100 yst-scale-100",leaveTo:"yst-transform yst-opacity-0 yst-scale-95"},l().createElement(Fo.Items,e({},a,{className:r()("yst-dropdown-menu__list",n)}),t));qo.propTypes={children:o().node.isRequired,className:o().string};const Ao=({children:e,...t})=>l().createElement(Fo,t,e);Ao.propTypes={children:o().node.isRequired},Ao.Item=Fo.Item,Ao.Item.displayName="DropdownMenu.Item",Ao.ButtonItem=Mo,Ao.ButtonItem.displayName="DropdownMenu.ButtonItem",Ao.IconTrigger=Do,Ao.IconTrigger.displayName="DropdownMenu.IconTrigger",Ao.Trigger=Fo.Button,Ao.Trigger.displayName="DropdownMenu.Trigger",Ao.List=qo,Ao.List.displayName="DropdownMenu.List",Ao.displayName="DropdownMenu";const Bo=(0,i.createContext)({addStepRef:c.noop,currentStep:0}),jo=({as:t=cn,...n})=>l().createElement(t,e({className:"yst-absolute yst-top-3 yst-w-auto yst-h-0.5",min:0,max:100},n));jo.displayName="Stepper.ProgressBar",jo.propTypes={as:o().elementType};const Ho=({children:e,index:t,id:n})=>{const{addStepRef:a,currentStep:s}=(0,i.useContext)(Bo),o=t===s,c=t<s;return l().createElement("div",{ref:a,className:r()("yst-step",c&&"yst-step--complete",o&&"yst-step--active"),id:n},l().createElement("div",{className:"yst-step__circle"},l().createElement("div",{className:r()("yst-step__icon yst-bg-primary-500 yst-w-2 yst-h-2 yst-rounded-full yst-delay-500",!c&&o?"yst-opacity-100":"yst-opacity-0")}),c&&l().createElement(xt,{className:"yst-step__icon yst-w-4"})),l().createElement("div",{className:"yst-font-semibold yst-text-xxs yst-mt-3"},e))};Ho.displayName="Stepper.Step",Ho.propTypes={children:o().node.isRequired,index:o().number.isRequired,id:o().string.isRequired};const zo=(0,i.forwardRef)((({children:e,currentStep:t=0,className:n="",steps:a=[],ProgressBar:s=jo},o)=>{const[c,u]=(0,i.useState)({left:0,right:0,stepsLengthPercentage:[]}),[d,p]=(0,i.useState)([]);(0,i.useLayoutEffect)((()=>{let t=[];a.length>0&&(t=a.map((e=>d.find((t=>t&&t.id===e.id))))),e&&(t=l().Children.map(e,(e=>d.find((t=>t&&t.id===e.props.id))))),p(t.filter(Boolean))}),[a,e,t]),(0,i.useLayoutEffect)((()=>{if(0===d.length)return void u({left:0,right:0,stepsLengthPercentage:[]});const e=d[0].getBoundingClientRect(),t=d[d.length-1].getBoundingClientRect(),n=((e,t)=>t.right-e.left-e.width/2-t.width/2)(e,t),a=((e,t,n)=>{const a=t.left+t.width/2;return e.map(((t,r)=>0===r?0:r>=e.length-1?100:((null==t?void 0:t.getBoundingClientRect().right)-a-(null==t?void 0:t.getBoundingClientRect().width)/2)/n*100))})(d,e,n);u({left:e.width/2,right:t.width/2,stepsLengthPercentage:a})}),[d]);const m=(0,i.useCallback)((e=>{e&&!d.includes(e)&&p((t=>[...t,e]))}),[d]);return 0!==a.length||e?l().createElement(Bo.Provider,{value:{addStepRef:m,currentStep:t}},l().createElement("div",{className:r()(n,"yst-stepper"),ref:o},l().createElement(s,{style:{right:c.right,left:c.left},progress:(f=c.stepsLengthPercentage,y=t,y&&f?null!==(v=f[y])&&void 0!==v?v:100:0)}),e||a.map(((e,t)=>l().createElement(Ho,{key:`${e.id}-step`,index:t,id:e.id},e.children))))):null;var f,y,v}));zo.displayName="Stepper",zo.propTypes={currentStep:o().number,children:o().node,className:o().string,steps:o().arrayOf(o().shape({id:o().string.isRequired,children:o().node.isRequired})),ProgressBar:o().elementType},zo.defaultProps={className:"",steps:[],children:void 0,currentStep:0,ProgressBar:jo},zo.Context=Bo,zo.ProgressBar=jo,zo.Step=Ho;const $o=(e,t=!0)=>{const n=(0,i.useCallback)((e=>((e||window.event).returnValue=t,t)),[t]);(0,i.useEffect)((()=>(e&&window.addEventListener("beforeunload",n),()=>window.removeEventListener("beforeunload",n))),[e,n])},Vo=(e,t)=>{(0,i.useEffect)((()=>(t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)})),[e])},Uo=e=>{const t=(0,i.useRef)(e);return(0,i.useEffect)((()=>{t.current=e}),[e]),t.current},Ko=()=>(0,i.useContext)(Fs),Wo=e=>{const t=(0,i.useMemo)((()=>window.matchMedia(e)),[e]),[n,a]=(0,i.useState)(t.matches),r=(0,i.useCallback)((e=>{a(e.matches)}),[a]);return(0,i.useEffect)((()=>(t.addEventListener("change",r),()=>{t.removeEventListener("change",r)})),[t,r]),{matches:n}}})(),(window.yoast=window.yoast||{}).uiLibrary=a})(); \ No newline at end of file +(()=>{var e={94184:(e,t)=>{var n;!function(){"use strict";var a={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var s=typeof n;if("string"===s||"number"===s)e.push(n);else if(Array.isArray(n)){if(n.length){var o=r.apply(null,n);o&&e.push(o)}}else if("object"===s){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var i in n)a.call(n,i)&&n[i]&&e.push(i)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},35800:function(e,t,n){!function(e,t){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=n(t);function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var s={error:null},o=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a))||this).state=s,t.resetErrorBoundary=function(){for(var e,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];null==t.props.onReset||(e=t.props).onReset.apply(e,a),t.reset()},t}var n,o;o=e,(n=t).prototype=Object.create(o.prototype),n.prototype.constructor=n,r(n,o),t.getDerivedStateFromError=function(e){return{error:e}};var i=t.prototype;return i.reset=function(){this.setState(s)},i.componentDidCatch=function(e,t){var n,a;null==(n=(a=this.props).onError)||n.call(a,e,t)},i.componentDidUpdate=function(e,t){var n,a,r,s,o=this.state.error,i=this.props.resetKeys;null!==o&&null!==t.error&&(void 0===(r=e.resetKeys)&&(r=[]),void 0===(s=i)&&(s=[]),r.length!==s.length||r.some((function(e,t){return!Object.is(e,s[t])})))&&(null==(n=(a=this.props).onResetKeysChange)||n.call(a,e.resetKeys,i),this.reset())},i.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,r=t.FallbackComponent,s=t.fallback;if(null!==e){var o={error:e,resetErrorBoundary:this.resetErrorBoundary};if(a.isValidElement(s))return s;if("function"==typeof n)return n(o);if(r)return a.createElement(r,o);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(a.Component);e.ErrorBoundary=o,e.useErrorHandler=function(e){var t=a.useState(null),n=t[0],r=t[1];if(null!=e)throw e;if(null!=n)throw n;return r},e.withErrorBoundary=function(e,t){var n=function(n){return a.createElement(o,t,a.createElement(e,n))},r=e.displayName||e.name||"Unknown";return n.displayName="withErrorBoundary("+r+")",n},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(99196))},99196:e=>{"use strict";e.exports=window.React}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var s=t[a]={exports:{}};return e[a].call(s.exports,s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(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=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{"use strict";function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},e.apply(this,arguments)}n.r(a),n.d(a,{Alert:()=>O,Autocomplete:()=>Bt,AutocompleteField:()=>_a,Badge:()=>$t,Button:()=>Pt,Card:()=>Da,Checkbox:()=>Wt,CheckboxGroup:()=>Aa,ChildrenLimiter:()=>Wa,Code:()=>Yt,DropdownMenu:()=>Ao,ErrorBoundary:()=>Xt,FILE_IMPORT_STATUS:()=>nr,FeatureUpsell:()=>Xa,FileImport:()=>ir,Label:()=>Ut,Link:()=>en,Modal:()=>ts,Notifications:()=>ls,Pagination:()=>Ns,Paper:()=>on,Popover:()=>Ps,ProgressBar:()=>cn,Radio:()=>dn,RadioGroup:()=>Is,Root:()=>Ds,Select:()=>Mn,SelectField:()=>As,SidebarNavigation:()=>ao,SkeletonLoader:()=>qn,Spinner:()=>Ct,Stepper:()=>zo,Table:()=>Kn,TagField:()=>so,TagInput:()=>Yn,TextField:()=>io,TextInput:()=>Zn,Textarea:()=>ea,TextareaField:()=>co,Title:()=>aa,Toast:()=>da,Toggle:()=>wa,ToggleField:()=>po,Tooltip:()=>Sa,TooltipContainer:()=>yo,TooltipTrigger:()=>vo,TooltipWithContext:()=>bo,VALIDATION_ICON_MAP:()=>v,VALIDATION_VARIANTS:()=>y,ValidationIcon:()=>h,ValidationInput:()=>It,ValidationMessage:()=>x,useBeforeUnload:()=>$o,useDescribedBy:()=>Pa,useKeydown:()=>Vo,useMediaQuery:()=>Wo,useModalContext:()=>Qr,useNavigationContext:()=>to,useNotificationsContext:()=>as,usePopoverContext:()=>Rs,usePrevious:()=>Uo,useRootContext:()=>Ko,useSvgAria:()=>u,useToastContext:()=>sa,useToggleState:()=>Ua,useTooltipContext:()=>fo});var t=n(94184),r=n.n(t);const s=window.yoast.propTypes;var o=n.n(s),i=n(99196),l=n.n(i);const c=window.lodash,u=(e=null)=>(0,i.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]),d=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),p=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),m=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"}))})),f=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),y={success:"success",warning:"warning",info:"info",error:"error"},v={success:d,warning:p,info:m,error:f},b={variant:{success:"yst-validation-icon--success",warning:"yst-validation-icon--warning",info:"yst-validation-icon--info",error:"yst-validation-icon--error"}},g=({variant:t="info",className:n="",...a})=>{const s=(0,i.useMemo)((()=>v[t]),[t]),o=u();return s?l().createElement(s,e({},o,a,{className:r()("yst-validation-icon",b.variant[t],n)})):null};g.propTypes={variant:o().oneOf((0,c.values)(y)),className:o().string};const h=g,N={variant:{success:"yst-validation-message--success",warning:"yst-validation-message--warning",info:"yst-validation-message--info",error:"yst-validation-message--error"}},E=({as:t="p",variant:n="info",children:a,className:s="",...o})=>l().createElement(t,e({},o,{className:r()("yst-validation-message",N.variant[n],s)}),a);E.propTypes={as:o().elementType,variant:o().oneOf((0,c.keys)(N.variant)),message:o().node,className:o().string,children:o().node.isRequired};const x=E,R={variant:{info:"yst-alert--info",warning:"yst-alert--warning",success:"yst-alert--success",error:"yst-alert--error"}},w={alert:"alert",status:"status"},T=(0,i.forwardRef)((({children:t,role:n="status",as:a="span",variant:s="info",className:o="",...i},c)=>l().createElement(a,e({ref:c,className:r()("yst-alert",R.variant[s],o),role:w[n]},i),l().createElement(h,{variant:s,className:"yst-alert__icon"}),l().createElement(x,{as:"div",variant:s,className:"yst-alert__message"},t)))),C={children:o().node.isRequired,as:o().elementType,variant:o().oneOf(Object.keys(R.variant)),className:o().string,role:o().oneOf(Object.keys(w))};T.displayName="Alert",T.propTypes=C,T.defaultProps={as:"span",variant:"info",className:"",role:"status"};const O=T;var S=Object.defineProperty,P=(e,t,n)=>(((e,t,n)=>{t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let k=new class{constructor(){P(this,"current",this.detect()),P(this,"handoffState","pending"),P(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},_=(e,t)=>{k.isServer?(0,i.useEffect)(e,t):(0,i.useLayoutEffect)(e,t)};function I(e){let t=(0,i.useRef)(e);return _((()=>{t.current=e}),[e]),t}function L(e,t){let[n,a]=(0,i.useState)(e),r=I(e);return _((()=>a(r.current)),[r,a,...t]),n}function F(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function M(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener:(e,t,a,r)=>(e.addEventListener(t,a,r),n.add((()=>e.removeEventListener(t,a,r)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return F((()=>{t.current&&e[0]()})),n.add((()=>{t.current=!1}))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function D(){let[e]=(0,i.useState)(M);return(0,i.useEffect)((()=>()=>e.dispose()),[e]),e}let q=function(e){let t=I(e);return i.useCallback(((...e)=>t.current(...e)),[t])};function A(){let[e,t]=(0,i.useState)(k.isHandoffComplete);return e&&!1===k.isHandoffComplete&&t(!1),(0,i.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,i.useEffect)((()=>k.handoff()),[]),e}var B;let j=null!=(B=i.useId)?B:function(){let e=A(),[t,n]=i.useState(e?()=>k.nextId():null);return _((()=>{null===t&&n(k.nextId())}),[t]),null!=t?""+t:void 0};function H(e,t,...n){if(e in t){let a=t[e];return"function"==typeof a?a(...n):a}let a=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,H),a}function z(e){return k.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let $=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var V,U,K=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(K||{}),W=((U=W||{})[U.Error=0]="Error",U[U.Overflow=1]="Overflow",U[U.Success=2]="Success",U[U.Underflow=3]="Underflow",U),G=((V=G||{})[V.Previous=-1]="Previous",V[V.Next=1]="Next",V);function Q(e=document.body){return null==e?[]:Array.from(e.querySelectorAll($)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var Y=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Y||{});function X(e,t=0){var n;return e!==(null==(n=z(e))?void 0:n.body)&&H(t,{0:()=>e.matches($),1(){let t=e;for(;null!==t;){if(t.matches($))return!0;t=t.parentElement}return!1}})}function Z(e){let t=z(e);M().nextFrame((()=>{t&&!X(t.activeElement,0)&&J(e)}))}function J(e){null==e||e.focus({preventScroll:!0})}let ee=["textarea","input"].join(",");function te(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let a=t(e),r=t(n);if(null===a||null===r)return 0;let s=a.compareDocumentPosition(r);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function ne(e,t,{sorted:n=!0,relativeTo:a=null,skipElements:r=[]}={}){let s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?n?te(e):e:Q(e);r.length>0&&o.length>1&&(o=o.filter((e=>!r.includes(e)))),a=null!=a?a:s.activeElement;let i,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,o.indexOf(a))-1;if(4&t)return Math.max(0,o.indexOf(a))+1;if(8&t)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=o.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}i=o[e],null==i||i.focus(u),d+=l}while(i!==s.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,ee))&&n}(i)&&i.select(),i.hasAttribute("tabindex")||i.setAttribute("tabindex","0"),2}function ae(e,t,n){let a=I(t);(0,i.useEffect)((()=>{function t(e){a.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function re(e,t,n=!0){let a=(0,i.useRef)(!1);function r(n,r){if(!a.current||n.defaultPrevented)return;let s=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),o=r(n);if(null!==o&&o.getRootNode().contains(o)){for(let e of s){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(o)||n.composed&&n.composedPath().includes(t))return}return!X(o,Y.Loose)&&-1!==o.tabIndex&&n.preventDefault(),t(n,o)}}(0,i.useEffect)((()=>{requestAnimationFrame((()=>{a.current=n}))}),[n]);let s=(0,i.useRef)(null);ae("mousedown",(e=>{var t,n;a.current&&(s.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),ae("click",(e=>{!s.current||(r(e,(()=>s.current)),s.current=null)}),!0),ae("blur",(e=>r(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function se(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function oe(e,t){let[n,a]=(0,i.useState)((()=>se(e)));return _((()=>{a(se(e))}),[e.type,e.as]),_((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&a("button")}),[n,t]),n}let ie=Symbol();function le(e,t=!0){return Object.assign(e,{[ie]:t})}function ce(...e){let t=(0,i.useRef)(e);(0,i.useEffect)((()=>{t.current=e}),[e]);let n=q((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[ie])))?void 0:n}function ue({container:e,accept:t,walk:n,enabled:a=!0}){let r=(0,i.useRef)(t),s=(0,i.useRef)(n);(0,i.useEffect)((()=>{r.current=t,s.current=n}),[t,n]),_((()=>{if(!e||!a)return;let t=z(e);if(!t)return;let n=r.current,o=s.current,i=Object.assign((e=>n(e)),{acceptNode:n}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,i,!1);for(;l.nextNode();)o(l.currentNode)}),[e,a,r,s])}var de=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(de||{});function pe(e,t){let n=t.resolveItems();if(n.length<=0)return null;let a=t.resolveActiveIndex(),r=null!=a?a:-1,s=(()=>{switch(e.focus){case 0:return n.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=n.slice().reverse().findIndex(((e,n,a)=>!(-1!==r&&a.length-n-1>=r||t.resolveDisabled(e))));return-1===e?e:n.length-1-e}case 2:return n.findIndex(((e,n)=>!(n<=r||t.resolveDisabled(e))));case 3:{let e=n.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 4:return n.findIndex((n=>t.resolveId(n)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===s?a:s}function me(...e){return e.filter(Boolean).join(" ")}var fe,ye=((fe=ye||{})[fe.None=0]="None",fe[fe.RenderStrategy=1]="RenderStrategy",fe[fe.Static=2]="Static",fe),ve=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ve||{});function be({ourProps:e,theirProps:t,slot:n,defaultTag:a,features:r,visible:s=!0,name:o}){let i=he(t,e);if(s)return ge(i,n,a,o);let l=null!=r?r:0;if(2&l){let{static:e=!1,...t}=i;if(e)return ge(t,n,a,o)}if(1&l){let{unmount:e=!0,...t}=i;return H(e?0:1,{0:()=>null,1:()=>ge({...t,hidden:!0,style:{display:"none"}},n,a,o)})}return ge(i,n,a,o)}function ge(e,t={},n,a){var r;let{as:s=n,children:o,refName:l="ref",...c}=xe(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof o?o(t):o;c.className&&"function"==typeof c.className&&(c.className=c.className(t));let p={};if(t){let e=!1,n=[];for(let[a,r]of Object.entries(t))"boolean"==typeof r&&(e=!0),!0===r&&n.push(a);e&&(p["data-headlessui-state"]=n.join(" "))}if(s===i.Fragment&&Object.keys(Ee(c)).length>0){if(!(0,i.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${a} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=me(null==(r=d.props)?void 0:r.className,c.className),t=e?{className:e}:{};return(0,i.cloneElement)(d,Object.assign({},he(d.props,Ee(xe(c,["ref"]))),p,u,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(d.ref,u.ref),t))}return(0,i.createElement)(s,Object.assign({},xe(c,["ref"]),s!==i.Fragment&&u,s!==i.Fragment&&p),d)}function he(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let a of e)for(let e in a)e.startsWith("on")&&"function"==typeof a[e]?(null!=n[e]||(n[e]=[]),n[e].push(a[e])):t[e]=a[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...a){let r=n[e];for(let e of r){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...a)}}});return t}function Ne(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Ee(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function xe(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function Re(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let a=""===(null==t?void 0:t.getAttribute("disabled"));return(!a||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&a}function we(e={},t=null,n=[]){for(let[a,r]of Object.entries(e))Ce(n,Te(t,a),r);return n}function Te(e,t){return e?e+"["+t+"]":t}function Ce(e,t,n){if(Array.isArray(n))for(let[a,r]of n.entries())Ce(e,Te(t,a.toString()),r);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):we(n,t,e)}var Oe=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Oe||{});let Se=Ne((function(e,t){let{features:n=1,...a}=e;return be({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:a,slot:{},defaultTag:"div",name:"Hidden"})})),Pe=(0,i.createContext)(null);Pe.displayName="OpenClosedContext";var ke=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ke||{});function _e(){return(0,i.useContext)(Pe)}function Ie({value:e,children:t}){return i.createElement(Pe.Provider,{value:e},t)}var Le=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Le||{});function Fe(e,t,n){let[a,r]=(0,i.useState)(n),s=void 0!==e,o=(0,i.useRef)(s),l=(0,i.useRef)(!1),c=(0,i.useRef)(!1);return!s||o.current||l.current?!s&&o.current&&!c.current&&(c.current=!0,o.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,o.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[s?e:a,q((e=>(s||r(e),null==t?void 0:t(e))))]}function Me(e,t){let n=(0,i.useRef)([]),a=q(e);(0,i.useEffect)((()=>{let e=[...n.current];for(let[r,s]of t.entries())if(n.current[r]!==s){let r=a(t,e);return n.current=t,r}}),[a,...t])}function De(e){return[e.screenX,e.screenY]}function qe(){let e=(0,i.useRef)([-1,-1]);return{wasMoved(t){let n=De(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=De(t)}}}var Ae=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ae||{}),Be=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Be||{}),je=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(je||{}),He=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(He||{});function ze(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,a=te(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),r=n?a.indexOf(n):null;return-1===r&&(r=null),{options:a,activeOptionIndex:r}}let $e={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,a=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==a&&(t=a),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let a=ze(e);if(null===a.activeOptionIndex){let e=a.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(a.activeOptionIndex=e)}let r=pe(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...a,activeOptionIndex:r,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},a=ze(e,(e=>[...e,n]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(n));let r={...e,...a,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(r.activeOptionIndex=0),r},4:(e,t)=>{let n=ze(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},Ve=(0,i.createContext)(null);function Ue(e){let t=(0,i.useContext)(Ve);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ue),t}return t}Ve.displayName="ComboboxActionsContext";let Ke=(0,i.createContext)(null);function We(e){let t=(0,i.useContext)(Ke);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,We),t}return t}function Ge(e,t){return H(t.type,$e,e,t)}Ke.displayName="ComboboxDataContext";let Qe=i.Fragment,Ye=Ne((function(e,t){let{value:n,defaultValue:a,onChange:r,name:s,by:o=((e,t)=>e===t),disabled:l=!1,__demoMode:c=!1,nullable:u=!1,multiple:d=!1,...p}=e,[m=(d?[]:void 0),f]=Fe(n,r,a),[y,v]=(0,i.useReducer)(Ge,{dataRef:(0,i.createRef)(),comboboxState:c?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),b=(0,i.useRef)(!1),g=(0,i.useRef)({static:!1,hold:!1}),h=(0,i.useRef)(null),N=(0,i.useRef)(null),E=(0,i.useRef)(null),x=(0,i.useRef)(null),R=q("string"==typeof o?(e,t)=>{let n=o;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:o),w=(0,i.useCallback)((e=>H(T.mode,{1:()=>m.some((t=>R(t,e))),0:()=>R(m,e)})),[m]),T=(0,i.useMemo)((()=>({...y,optionsPropsRef:g,labelRef:h,inputRef:N,buttonRef:E,optionsRef:x,value:m,defaultValue:a,disabled:l,mode:d?1:0,get activeOptionIndex(){if(b.current&&null===y.activeOptionIndex&&y.options.length>0){let e=y.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return y.activeOptionIndex},compare:R,isSelected:w,nullable:u,__demoMode:c})),[m,a,l,d,u,c,y]);_((()=>{y.dataRef.current=T}),[T]),re([T.buttonRef,T.inputRef,T.optionsRef],(()=>A.closeCombobox()),0===T.comboboxState);let C=(0,i.useMemo)((()=>({open:0===T.comboboxState,disabled:l,activeIndex:T.activeOptionIndex,activeOption:null===T.activeOptionIndex?null:T.options[T.activeOptionIndex].dataRef.current.value,value:m})),[T,l,m]),O=q((e=>{let t=T.options.find((t=>t.id===e));!t||M(t.dataRef.current.value)})),S=q((()=>{if(null!==T.activeOptionIndex){let{dataRef:e,id:t}=T.options[T.activeOptionIndex];M(e.current.value),A.goToOption(de.Specific,t)}})),P=q((()=>{v({type:0}),b.current=!0})),k=q((()=>{v({type:1}),b.current=!1})),I=q(((e,t,n)=>(b.current=!1,e===de.Specific?v({type:2,focus:de.Specific,id:t,trigger:n}):v({type:2,focus:e,trigger:n})))),L=q(((e,t)=>(v({type:3,id:e,dataRef:t}),()=>v({type:4,id:e})))),F=q((e=>(v({type:5,id:e}),()=>v({type:5,id:null})))),M=q((e=>H(T.mode,{0:()=>null==f?void 0:f(e),1(){let t=T.value.slice(),n=t.findIndex((t=>R(t,e)));return-1===n?t.push(e):t.splice(n,1),null==f?void 0:f(t)}}))),A=(0,i.useMemo)((()=>({onChange:M,registerOption:L,registerLabel:F,goToOption:I,closeCombobox:k,openCombobox:P,selectActiveOption:S,selectOption:O})),[]),B=null===t?{}:{ref:t},j=(0,i.useRef)(null),z=D();return(0,i.useEffect)((()=>{!j.current||void 0!==a&&z.addEventListener(j.current,"reset",(()=>{M(a)}))}),[j,M]),i.createElement(Ve.Provider,{value:A},i.createElement(Ke.Provider,{value:T},i.createElement(Ie,{value:H(T.comboboxState,{0:ke.Open,1:ke.Closed})},null!=s&&null!=m&&we({[s]:m}).map((([e,t],n)=>i.createElement(Se,{features:Oe.Hidden,ref:0===n?e=>{var t;j.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...Ee({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),be({ourProps:B,theirProps:p,slot:C,defaultTag:Qe,name:"Combobox"}))))})),Xe=Ne((function(e,t){var n,a,r,s;let o=j(),{id:l=`headlessui-combobox-input-${o}`,onChange:c,displayValue:u,type:d="text",...p}=e,m=We("Combobox.Input"),f=Ue("Combobox.Input"),y=ce(m.inputRef,t),v=(0,i.useRef)(!1),b=D();var g;Me((([e,t],[n,a])=>{v.current||!m.inputRef.current||(0===a&&1===t||e!==n)&&(m.inputRef.current.value=e)}),["function"==typeof u&&void 0!==m.value?null!=(g=u(m.value))?g:"":"string"==typeof m.value?m.value:"",m.comboboxState]),Me((([e],[t])=>{if(0===e&&1===t){let e=m.inputRef.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:a,selectionDirection:r}=e;e.value="",e.value=t,null!==r?e.setSelectionRange(n,a,r):e.setSelectionRange(n,a)}}),[m.comboboxState]);let h=(0,i.useRef)(!1),N=q((()=>{h.current=!0})),E=q((()=>{setTimeout((()=>{h.current=!1}))})),x=q((e=>{switch(v.current=!0,e.key){case Le.Backspace:case Le.Delete:if(0!==m.mode||!m.nullable)return;let t=e.currentTarget;b.requestAnimationFrame((()=>{""===t.value&&(f.onChange(null),m.optionsRef.current&&(m.optionsRef.current.scrollTop=0),f.goToOption(de.Nothing))}));break;case Le.Enter:if(v.current=!1,0!==m.comboboxState||h.current)return;if(e.preventDefault(),e.stopPropagation(),null===m.activeOptionIndex)return void f.closeCombobox();f.selectActiveOption(),0===m.mode&&f.closeCombobox();break;case Le.ArrowDown:return v.current=!1,e.preventDefault(),e.stopPropagation(),H(m.comboboxState,{0:()=>{f.goToOption(de.Next)},1:()=>{f.openCombobox()}});case Le.ArrowUp:return v.current=!1,e.preventDefault(),e.stopPropagation(),H(m.comboboxState,{0:()=>{f.goToOption(de.Previous)},1:()=>{f.openCombobox(),b.nextFrame((()=>{m.value||f.goToOption(de.Last)}))}});case Le.Home:if(e.shiftKey)break;return v.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(de.First);case Le.PageUp:return v.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(de.First);case Le.End:if(e.shiftKey)break;return v.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(de.Last);case Le.PageDown:return v.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(de.Last);case Le.Escape:return v.current=!1,0!==m.comboboxState?void 0:(e.preventDefault(),m.optionsRef.current&&!m.optionsPropsRef.current.static&&e.stopPropagation(),f.closeCombobox());case Le.Tab:if(v.current=!1,0!==m.comboboxState)return;0===m.mode&&f.selectActiveOption(),f.closeCombobox()}})),R=q((e=>{f.openCombobox(),null==c||c(e)})),w=q((()=>{v.current=!1})),T=L((()=>{if(m.labelId)return[m.labelId].join(" ")}),[m.labelId]),C=(0,i.useMemo)((()=>({open:0===m.comboboxState,disabled:m.disabled})),[m]);return be({ourProps:{ref:y,id:l,role:"combobox",type:d,"aria-controls":null==(n=m.optionsRef.current)?void 0:n.id,"aria-expanded":m.disabled?void 0:0===m.comboboxState,"aria-activedescendant":null===m.activeOptionIndex||null==(a=m.options[m.activeOptionIndex])?void 0:a.id,"aria-multiselectable":1===m.mode||void 0,"aria-labelledby":T,"aria-autocomplete":"list",defaultValue:null!=(s=null!=(r=e.defaultValue)?r:void 0!==m.defaultValue?null==u?void 0:u(m.defaultValue):null)?s:m.defaultValue,disabled:m.disabled,onCompositionStart:N,onCompositionEnd:E,onKeyDown:x,onChange:R,onBlur:w},theirProps:p,slot:C,defaultTag:"input",name:"Combobox.Input"})})),Ze=Ne((function(e,t){var n;let a=We("Combobox.Button"),r=Ue("Combobox.Button"),s=ce(a.buttonRef,t),o=j(),{id:l=`headlessui-combobox-button-${o}`,...c}=e,u=D(),d=q((e=>{switch(e.key){case Le.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===a.comboboxState&&r.openCombobox(),u.nextFrame((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Le.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===a.comboboxState&&(r.openCombobox(),u.nextFrame((()=>{a.value||r.goToOption(de.Last)}))),u.nextFrame((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Le.Escape:return 0!==a.comboboxState?void 0:(e.preventDefault(),a.optionsRef.current&&!a.optionsPropsRef.current.static&&e.stopPropagation(),r.closeCombobox(),u.nextFrame((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),p=q((e=>{if(Re(e.currentTarget))return e.preventDefault();0===a.comboboxState?r.closeCombobox():(e.preventDefault(),r.openCombobox()),u.nextFrame((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),m=L((()=>{if(a.labelId)return[a.labelId,l].join(" ")}),[a.labelId,l]),f=(0,i.useMemo)((()=>({open:0===a.comboboxState,disabled:a.disabled,value:a.value})),[a]);return be({ourProps:{ref:s,id:l,type:oe(e,a.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(n=a.optionsRef.current)?void 0:n.id,"aria-expanded":a.disabled?void 0:0===a.comboboxState,"aria-labelledby":m,disabled:a.disabled,onClick:p,onKeyDown:d},theirProps:c,slot:f,defaultTag:"button",name:"Combobox.Button"})})),Je=Ne((function(e,t){let n=j(),{id:a=`headlessui-combobox-label-${n}`,...r}=e,s=We("Combobox.Label"),o=Ue("Combobox.Label"),l=ce(s.labelRef,t);_((()=>o.registerLabel(a)),[a]);let c=q((()=>{var e;return null==(e=s.inputRef.current)?void 0:e.focus({preventScroll:!0})})),u=(0,i.useMemo)((()=>({open:0===s.comboboxState,disabled:s.disabled})),[s]);return be({ourProps:{ref:l,id:a,onClick:c},theirProps:r,slot:u,defaultTag:"label",name:"Combobox.Label"})})),et=ye.RenderStrategy|ye.Static,tt=Ne((function(e,t){let n=j(),{id:a=`headlessui-combobox-options-${n}`,hold:r=!1,...s}=e,o=We("Combobox.Options"),l=ce(o.optionsRef,t),c=_e(),u=null!==c?c===ke.Open:0===o.comboboxState;_((()=>{var t;o.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[o.optionsPropsRef,e.static]),_((()=>{o.optionsPropsRef.current.hold=r}),[o.optionsPropsRef,r]),ue({container:o.optionsRef.current,enabled:0===o.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let d=L((()=>{var e,t;return null!=(t=o.labelId)?t:null==(e=o.buttonRef.current)?void 0:e.id}),[o.labelId,o.buttonRef.current]);return be({ourProps:{"aria-labelledby":d,role:"listbox",id:a,ref:l},theirProps:s,slot:(0,i.useMemo)((()=>({open:0===o.comboboxState})),[o]),defaultTag:"ul",features:et,visible:u,name:"Combobox.Options"})})),nt=Ne((function(e,t){var n,a;let r=j(),{id:s=`headlessui-combobox-option-${r}`,disabled:o=!1,value:l,...c}=e,u=We("Combobox.Option"),d=Ue("Combobox.Option"),p=null!==u.activeOptionIndex&&u.options[u.activeOptionIndex].id===s,m=u.isSelected(l),f=(0,i.useRef)(null),y=I({disabled:o,value:l,domRef:f,textValue:null==(a=null==(n=f.current)?void 0:n.textContent)?void 0:a.toLowerCase()}),v=ce(t,f),b=q((()=>d.selectOption(s)));_((()=>d.registerOption(s,y)),[y,s]);let g=(0,i.useRef)(!u.__demoMode);_((()=>{if(!u.__demoMode)return;let e=M();return e.requestAnimationFrame((()=>{g.current=!0})),e.dispose}),[]),_((()=>{if(0!==u.comboboxState||!p||!g.current||0===u.activationTrigger)return;let e=M();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[f,p,u.comboboxState,u.activationTrigger,u.activeOptionIndex]);let h=q((e=>{if(o)return e.preventDefault();b(),0===u.mode&&d.closeCombobox()})),N=q((()=>{if(o)return d.goToOption(de.Nothing);d.goToOption(de.Specific,s)})),E=qe(),x=q((e=>E.update(e))),R=q((e=>{!E.wasMoved(e)||o||p||d.goToOption(de.Specific,s,0)})),w=q((e=>{!E.wasMoved(e)||o||!p||u.optionsPropsRef.current.hold||d.goToOption(de.Nothing)})),T=(0,i.useMemo)((()=>({active:p,selected:m,disabled:o})),[p,m,o]);return be({ourProps:{id:s,ref:v,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":m,disabled:void 0,onClick:h,onFocus:N,onPointerEnter:x,onMouseEnter:x,onPointerMove:R,onMouseMove:R,onPointerLeave:w,onMouseLeave:w},theirProps:c,slot:T,defaultTag:"li",name:"Combobox.Option"})})),at=Object.assign(Ye,{Input:Xe,Button:Ze,Label:Je,Options:tt,Option:nt});function rt(){let e=(0,i.useRef)(!1);return _((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function st(e,...t){e&&t.length>0&&e.classList.add(...t)}function ot(e,...t){e&&t.length>0&&e.classList.remove(...t)}function it(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let lt=(0,i.createContext)(null);lt.displayName="TransitionContext";var ct=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ct||{});let ut=(0,i.createContext)(null);function dt(e){return"children"in e?dt(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function pt(e,t){let n=I(e),a=(0,i.useRef)([]),r=rt(),s=D(),o=q(((e,t=ve.Hidden)=>{let o=a.current.findIndex((({el:t})=>t===e));-1!==o&&(H(t,{[ve.Unmount](){a.current.splice(o,1)},[ve.Hidden](){a.current[o].state="hidden"}}),s.microTask((()=>{var e;!dt(a)&&r.current&&(null==(e=n.current)||e.call(n))})))})),l=q((e=>{let t=a.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):a.current.push({el:e,state:"visible"}),()=>o(e,ve.Unmount)})),c=(0,i.useRef)([]),u=(0,i.useRef)(Promise.resolve()),d=(0,i.useRef)({enter:[],leave:[],idle:[]}),p=q(((e,n,a)=>{c.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(d.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?u.current=u.current.then((()=>null==t?void 0:t.wait.current)).then((()=>a(n))):a(n)})),m=q(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>n(t)))}));return(0,i.useMemo)((()=>({children:a,register:l,unregister:o,onStart:p,onStop:m,wait:u,chains:d})),[l,o,a,p,m,d,u])}function mt(){}ut.displayName="NestingContext";let ft=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function yt(e){var t;let n={};for(let a of ft)n[a]=null!=(t=e[a])?t:mt;return n}let vt=ye.RenderStrategy,bt=Ne((function(e,t){let{beforeEnter:n,afterEnter:a,beforeLeave:r,afterLeave:s,enter:o,enterFrom:l,enterTo:c,entered:u,leave:d,leaveFrom:p,leaveTo:m,...f}=e,y=(0,i.useRef)(null),v=ce(y,t),b=f.unmount?ve.Unmount:ve.Hidden,{show:g,appear:h,initial:N}=function(){let e=(0,i.useContext)(lt);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[E,x]=(0,i.useState)(g?"visible":"hidden"),R=function(){let e=(0,i.useContext)(ut);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:w,unregister:T}=R,C=(0,i.useRef)(null);(0,i.useEffect)((()=>w(y)),[w,y]),(0,i.useEffect)((()=>{if(b===ve.Hidden&&y.current)return g&&"visible"!==E?void x("visible"):H(E,{hidden:()=>T(y),visible:()=>w(y)})}),[E,y,w,T,g,b]);let O=I({enter:it(o),enterFrom:it(l),enterTo:it(c),entered:it(u),leave:it(d),leaveFrom:it(p),leaveTo:it(m)}),S=function(e){let t=(0,i.useRef)(yt(e));return(0,i.useEffect)((()=>{t.current=yt(e)}),[e]),t}({beforeEnter:n,afterEnter:a,beforeLeave:r,afterLeave:s}),P=A();(0,i.useEffect)((()=>{if(P&&"visible"===E&&null===y.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[y,E,P]);let L=N&&!h,F=!P||L||C.current===g?"idle":g?"enter":"leave",B=q((e=>H(e,{enter:()=>S.current.beforeEnter(),leave:()=>S.current.beforeLeave(),idle:()=>{}}))),j=q((e=>H(e,{enter:()=>S.current.afterEnter(),leave:()=>S.current.afterLeave(),idle:()=>{}}))),z=pt((()=>{x("hidden"),T(y)}),R);(function({container:e,direction:t,classes:n,onStart:a,onStop:r}){let s=rt(),o=D(),i=I(t);_((()=>{let t=M();o.add(t.dispose);let l=e.current;if(l&&"idle"!==i.current&&s.current)return t.dispose(),a.current(i.current),t.add(function(e,t,n,a){let r=n?"enter":"leave",s=M(),o=void 0!==a?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(a):()=>{};"enter"===r&&(e.removeAttribute("hidden"),e.style.display="");let i=H(r,{enter:()=>t.enter,leave:()=>t.leave}),l=H(r,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=H(r,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ot(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),st(e,...i,...c),s.nextFrame((()=>{ot(e,...c),st(e,...l),function(e,t){let n=M();if(!e)return n.dispose;let{transitionDuration:a,transitionDelay:r}=getComputedStyle(e),[s,o]=[a,r].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(s+o!==0){let a=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),a())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(ot(e,...i),st(e,...t.entered),o())))})),s.dispose}(l,n.current,"enter"===i.current,(()=>{t.dispose(),r.current(i.current)}))),t.dispose}),[t])})({container:y,classes:O,direction:F,onStart:I((e=>{z.onStart(y,e,B)})),onStop:I((e=>{z.onStop(y,e,j),"leave"===e&&!dt(z)&&(x("hidden"),T(y))}))}),(0,i.useEffect)((()=>{!L||(b===ve.Hidden?C.current=null:C.current=g)}),[g,L,E]);let $=f,V={ref:v};return h&&g&&k.isServer&&($={...$,className:me(f.className,...O.current.enter,...O.current.enterFrom)}),i.createElement(ut.Provider,{value:z},i.createElement(Ie,{value:H(E,{visible:ke.Open,hidden:ke.Closed})},be({ourProps:V,theirProps:$,defaultTag:"div",features:vt,visible:"visible"===E,name:"Transition.Child"})))})),gt=Ne((function(e,t){let{show:n,appear:a=!1,unmount:r,...s}=e,o=(0,i.useRef)(null),l=ce(o,t);A();let c=_e();if(void 0===n&&null!==c&&(n=H(c,{[ke.Open]:!0,[ke.Closed]:!1})),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=(0,i.useState)(n?"visible":"hidden"),p=pt((()=>{d("hidden")})),[m,f]=(0,i.useState)(!0),y=(0,i.useRef)([n]);_((()=>{!1!==m&&y.current[y.current.length-1]!==n&&(y.current.push(n),f(!1))}),[y,n]);let v=(0,i.useMemo)((()=>({show:n,appear:a,initial:m})),[n,a,m]);(0,i.useEffect)((()=>{if(n)d("visible");else if(dt(p)){let e=o.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&d("hidden")}else d("hidden")}),[n,p]);let b={unmount:r};return i.createElement(ut.Provider,{value:p},i.createElement(lt.Provider,{value:v},be({ourProps:{...b,as:i.Fragment,children:i.createElement(bt,{ref:l,...b,...s})},theirProps:{},defaultTag:i.Fragment,features:vt,visible:"visible"===u,name:"Transition"})))})),ht=Ne((function(e,t){let n=null!==(0,i.useContext)(lt),a=null!==_e();return i.createElement(i.Fragment,null,!n&&a?i.createElement(gt,{ref:t,...e}):i.createElement(bt,{ref:t,...e}))})),Nt=Object.assign(gt,{Child:ht,Root:gt});const Et=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))})),xt=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))})),Rt=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}))})),wt={variant:{default:"",primary:"yst-text-primary-500",white:"yst-text-white"},size:{3:"yst-w-3 yst-h-3",4:"yst-w-4 yst-h-4",8:"yst-w-8 yst-h-8"}},Tt=(0,i.forwardRef)((({variant:t,size:n,className:a},s)=>{const o=u();return l().createElement("svg",e({ref:s,xmlns:"http://www.w3.org/2000/svg/",fill:"none",viewBox:"0 0 24 24",className:r()("yst-animate-spin",wt.variant[t],wt.size[n],a)},o),l().createElement("circle",{className:"yst-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),l().createElement("path",{className:"yst-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}))}));Tt.displayName="Spinner",Tt.propTypes={variant:o().oneOf((0,c.keys)(wt.variant)),size:o().oneOf((0,c.keys)(wt.size)),className:o().string},Tt.defaultProps={variant:"default",size:"4",className:""};const Ct=Tt,Ot={variant:{primary:"yst-button--primary",secondary:"yst-button--secondary",tertiary:"yst-button--tertiary",error:"yst-button--error",upsell:"yst-button--upsell"},size:{default:"",small:"yst-button--small",large:"yst-button--large","extra-large":"yst-button--extra-large"}},St=(0,i.forwardRef)((({children:t,as:n,type:a,variant:s,size:o,isLoading:i,disabled:c,className:u,...d},p)=>l().createElement(n,e({type:a||"button"===n&&"button"||void 0,disabled:c,ref:p,className:r()("yst-button",Ot.variant[s],Ot.size[o],i&&"yst-cursor-wait",c&&"yst-button--disabled",u)},d),i&&l().createElement(Ct,{size:"small"===o?"3":"4",className:"yst-button--loading"}),t)));St.displayName="Button",St.propTypes={children:o().node.isRequired,as:o().elementType,type:o().oneOf(["button","submit","reset"]),variant:o().oneOf((0,c.keys)(Ot.variant)),size:o().oneOf((0,c.keys)(Ot.size)),isLoading:o().bool,disabled:o().bool,className:o().string},St.defaultProps={as:"button",type:void 0,variant:"primary",size:"default",isLoading:!1,disabled:!1,className:""};const Pt=St,kt={variant:{success:"yst-validation-input--success",warning:"yst-validation-input--warning",info:"yst-validation-input--info",error:"yst-validation-input--error"}},_t=(0,i.forwardRef)((({as:t,validation:n={},className:a="",...s},o)=>l().createElement("div",{className:r()("yst-validation-input",(null==n?void 0:n.message)&&kt.variant[null==n?void 0:n.variant])},l().createElement(t,e({ref:o},s,{className:r()("yst-validation-input__input",a)})),(null==n?void 0:n.message)&&l().createElement(h,{variant:null==n?void 0:n.variant,className:"yst-validation-input__icon"}))));_t.displayName="ValidationInput",_t.propTypes={as:o().elementType.isRequired,validation:o().shape({variant:o().string,message:o().node}),className:o().string},_t.defaultProps={validation:{},className:""};const It=_t,Lt=(0,i.forwardRef)(((t,n)=>l().createElement(at.Button,e({as:"div",ref:n},t))));Lt.displayName="AutocompleteButton";const Ft=({children:t=null,value:n})=>{const a=u(),s=(0,i.useCallback)((({active:e,selected:t})=>r()("yst-autocomplete__option",t&&"yst-autocomplete__option--selected",e&&!t&&"yst-autocomplete__option--active")),[]);return l().createElement(at.Option,{className:s,value:n},(({selected:n})=>l().createElement(l().Fragment,null,l().createElement("span",{className:r()("yst-autocomplete__option-label",n&&"yst-font-semibold")},t),n&&l().createElement(xt,e({className:"yst-autocomplete__option-check"},a)))))},Mt={children:o().node,value:o().oneOfType([o().string,o().number,o().bool]).isRequired};Ft.propTypes=Mt;const Dt=({onClear:t,svgAriaProps:n,screenReaderText:a})=>{const r=(0,i.useCallback)((e=>{e.preventDefault(),t(null)}),[t]);return l().createElement(Pt,{variant:"tertiary",className:"yst-autocomplete__clear-action",onClick:r},l().createElement("span",{className:"yst-sr-only"},a),l().createElement(Et,e({className:"yst-autocomplete__action-icon"},n)))};Dt.propTypes={onClear:o().func.isRequired,svgAriaProps:o().object.isRequired,screenReaderText:o().string.isRequired};const qt=(0,i.forwardRef)((({id:t,value:n,children:a,selectedLabel:s,label:o,labelProps:d,labelSuffix:p,onChange:m,onQueryChange:f,onClear:y,validation:v,placeholder:b,className:g,buttonProps:h,clearButtonScreenReaderText:N,nullable:E,disabled:x,...R},w)=>{const T=(0,i.useCallback)((0,c.constant)(s),[s]),C=u(),O=E&&s,S=!(null!=v&&v.message),P=O||S;return l().createElement(at,e({ref:w,as:"div",value:n,onChange:m,className:r()("yst-autocomplete",x&&"yst-autocomplete--disabled",g),disabled:x},R),o&&l().createElement("div",{className:"yst-flex yst-items-center yst-mb-2"},l().createElement(at.Label,d,o),p),l().createElement("div",{className:"yst-relative"},l().createElement(It,e({as:Lt,"data-id":t,validation:v,className:"yst-autocomplete__button"},h),l().createElement(at.Input,{className:"yst-autocomplete__input",autoComplete:"off",placeholder:b,displayValue:T,onChange:f}),P&&l().createElement("div",{className:"yst-autocomplete__action-container"},O&&l().createElement(l().Fragment,null,l().createElement(Dt,{onClear:y||m,svgAriaProps:C,screenReaderText:N}),l().createElement("hr",{className:"yst-autocomplete__action-separator"})),S&&l().createElement(Rt,e({className:"yst-autocomplete__action-icon yst-pointer-events-none"},C)))),l().createElement(Nt,{as:i.Fragment,enter:"yst-transition yst-duration-100 yst-ease-out",enterFrom:"yst-transform yst-scale-95 yst-opacity-0",enterTo:"yst-transform yst-scale-100 yst-opacity-100",leave:"yst-transition yst-duration-75 yst-ease-out",leaveFrom:"yst-transform yst-scale-100 yst-opacity-100",leaveTo:"yst-transform yst-scale-95 yst-opacity-0"},l().createElement(at.Options,{className:"yst-autocomplete__options"},a))))})),At={id:o().string.isRequired,value:o().oneOfType([o().string,o().number,o().bool]),children:o().node,selectedLabel:o().string,label:o().string,labelProps:o().object,labelSuffix:o().node,onChange:o().func.isRequired,onQueryChange:o().func.isRequired,validation:o().shape({variant:o().string,message:o().node}),placeholder:o().string,className:o().string,buttonProps:o().object,clearButtonScreenReaderText:o().string,nullable:o().bool,onClear:o().func,disabled:o().bool};qt.displayName="Autocomplete",qt.propTypes=At,qt.defaultProps={children:null,value:null,selectedLabel:"",label:"",labelProps:{},labelSuffix:null,validation:{},placeholder:"",className:"",buttonProps:{},clearButtonScreenReaderText:"Clear",nullable:!1,onClear:null,disabled:!1},qt.Option=Ft,qt.Option.displayName="Autocomplete.Option";const Bt=qt,jt={variant:{info:"yst-badge--info",upsell:"yst-badge--upsell",plain:"yst-badge--plain",success:"yst-badge--success",error:"yst-badge--error",ai:"yst-badge--ai"},size:{default:"",small:"yst-badge--small",large:"yst-badge--large"}},Ht=(0,i.forwardRef)((({children:t,as:n,variant:a,size:s,className:o,...i},c)=>l().createElement(n,e({ref:c,className:r()("yst-badge",jt.variant[a],jt.size[s],o)},i),t))),zt={children:o().node.isRequired,as:o().elementType,variant:o().oneOf(Object.keys(jt.variant)),size:o().oneOf(Object.keys(jt.size)),className:o().string};Ht.displayName="Badge",Ht.propTypes=zt,Ht.defaultProps={as:"span",variant:"info",size:"default",className:""};const $t=Ht,Vt=(0,i.forwardRef)((({as:t,className:n,label:a,children:s,...o},i)=>l().createElement(t,e({ref:i,className:r()("yst-label",n)},o),a||s||null)));Vt.displayName="Label",Vt.propTypes={label:o().string,children:o().string,as:o().elementType,className:o().string},Vt.defaultProps={label:"",children:"",as:"label",className:""};const Ut=Vt,Kt=(0,i.forwardRef)((({id:t,name:n,value:a,label:s="",disabled:o=!1,className:i="",...c},u)=>l().createElement("div",{className:r()("yst-checkbox",o&&"yst-checkbox--disabled",i)},l().createElement("input",e({ref:u,type:"checkbox",id:t,name:n,value:a,disabled:o,className:"yst-checkbox__input"},c)),s&&l().createElement(Ut,{htmlFor:t,className:"yst-checkbox__label",label:s}))));Kt.displayName="Checkbox",Kt.propTypes={id:o().string.isRequired,name:o().string.isRequired,value:o().string.isRequired,label:o().string,className:o().string,disabled:o().bool},Kt.defaultProps={className:"",disabled:!1,label:""};const Wt=Kt,Gt={variant:{default:"",block:"yst-code--block"}},Qt=(0,i.forwardRef)((({children:t,variant:n="default",className:a="",...s},o)=>l().createElement("code",e({ref:o,className:r()("yst-code",Gt.variant[n],a)},s),t)));Qt.displayName="Code",Qt.propTypes={children:o().node.isRequired,variant:o().oneOf(Object.keys(Gt.variant)),className:o().string},Qt.defaultProps={variant:"default",className:""};const Yt=Qt,Xt=n(35800).ErrorBoundary,Zt={variant:{default:"yst-link--default",primary:"yst-link--primary",error:"yst-link--error"}},Jt=(0,i.forwardRef)((({as:t,variant:n,className:a,children:s,...o},i)=>l().createElement(t,e({ref:i,className:r()("yst-link",Zt.variant[n],a)},o),s)));Jt.displayName="Link",Jt.propTypes={children:o().node.isRequired,variant:o().oneOf(Object.keys(Zt.variant)),as:o().elementType,className:o().string},Jt.defaultProps={as:"a",variant:"default",className:""};const en=Jt,tn=({as:e="div",className:t="",children:n})=>l().createElement(e,{className:r()("yst-paper__content",t)},n);tn.propTypes={as:o().node,className:o().string,children:o().node.isRequired};const nn=tn,an=({as:e="header",className:t="",children:n})=>l().createElement(e,{className:r()("yst-paper__header",t)},n);an.propTypes={as:o().node,className:o().string,children:o().node.isRequired};const rn=an,sn=(0,i.forwardRef)((({as:e="div",className:t="",children:n},a)=>l().createElement(e,{ref:a,className:r()("yst-paper",t)},n)));sn.displayName="Paper",sn.propTypes={as:o().node,className:o().string,children:o().node.isRequired},sn.defaultProps={as:"div",className:""},sn.Header=rn,sn.Header.displayName="Paper.Header",sn.Content=nn,sn.Content.displayName="Paper.Content";const on=sn,ln=(0,i.forwardRef)((({min:t,max:n,progress:a,className:s="",progressClassName:o="",...c},u)=>{const d=(0,i.useMemo)((()=>a/(n-t)*100),[t,n,a]);return l().createElement("div",e({ref:u,"aria-hidden":"true",className:r()("yst-progress-bar",s)},c),l().createElement("div",{className:r()("yst-progress-bar__progress",o),style:{width:`${d}%`}}))}));ln.displayName="ProgressBar",ln.propTypes={min:o().number.isRequired,max:o().number.isRequired,progress:o().number.isRequired,progressClassName:o().string,className:o().string},ln.defaultProps={className:""};const cn=ln,un=(0,i.forwardRef)((({id:t,name:n,value:a,label:s,screenReaderLabel:o,variant:i,disabled:c,className:p,isLabelDangerousHtml:m,...f},y)=>{const v=u();return"inline-block"===i?l().createElement("div",{className:r()("yst-radio","yst-radio--inline-block",c&&"yst-radio--disabled",p)},l().createElement("input",e({type:"radio",id:t,name:n,value:a,disabled:c,className:"yst-radio__input","aria-label":o},f)),l().createElement("span",{className:"yst-radio__content"},l().createElement(Ut,{htmlFor:t,className:"yst-radio__label",label:m?null:s,dangerouslySetInnerHTML:m?{__html:s}:null}),l().createElement(d,e({className:"yst-radio__check"},v)))):l().createElement("div",{className:r()("yst-radio",c&&"yst-radio--disabled",p)},l().createElement("input",e({ref:y,type:"radio",id:t,name:n,value:a,disabled:c,className:"yst-radio__input"},f)),l().createElement(Ut,{htmlFor:t,className:"yst-radio__label",label:m?null:s,dangerouslySetInnerHTML:m?{__html:s}:null}))}));un.displayName="Radio",un.propTypes={name:o().string.isRequired,id:o().string.isRequired,value:o().string.isRequired,label:o().string.isRequired,isLabelDangerousHtml:o().bool,screenReaderLabel:o().string,variant:o().oneOf(Object.keys({default:"","inline-block":"yst-radio--inline-block"})),disabled:o().bool,className:o().string},un.defaultProps={screenReaderLabel:"",variant:"default",disabled:!1,className:"",isLabelDangerousHtml:!1};const dn=un;var pn=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(pn||{}),mn=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(mn||{}),fn=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(fn||{}),yn=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(yn||{});function vn(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,a=te(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),r=n?a.indexOf(n):null;return-1===r&&(r=null),{options:a,activeOptionIndex:r}}let bn={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,a=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==a&&(t=a),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let a=vn(e),r=pe(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...a,searchQuery:"",activeOptionIndex:r,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,a=e.searchQuery+t.value.toLowerCase(),r=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(a))})),s=r?e.options.indexOf(r):-1;return-1===s||s===e.activeOptionIndex?{...e,searchQuery:a}:{...e,searchQuery:a,activeOptionIndex:s,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},a=vn(e,(e=>[...e,n]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(n)),{...e,...a}},6:(e,t)=>{let n=vn(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},gn=(0,i.createContext)(null);function hn(e){let t=(0,i.useContext)(gn);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,hn),t}return t}gn.displayName="ListboxActionsContext";let Nn=(0,i.createContext)(null);function En(e){let t=(0,i.useContext)(Nn);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,En),t}return t}function xn(e,t){return H(t.type,bn,e,t)}Nn.displayName="ListboxDataContext";let Rn=i.Fragment,wn=Ne((function(e,t){let{value:n,defaultValue:a,name:r,onChange:s,by:o=((e,t)=>e===t),disabled:l=!1,horizontal:c=!1,multiple:u=!1,...d}=e;const p=c?"horizontal":"vertical";let m=ce(t),[f=(u?[]:void 0),y]=Fe(n,s,a),[v,b]=(0,i.useReducer)(xn,{dataRef:(0,i.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),g=(0,i.useRef)({static:!1,hold:!1}),h=(0,i.useRef)(null),N=(0,i.useRef)(null),E=(0,i.useRef)(null),x=q("string"==typeof o?(e,t)=>{let n=o;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:o),R=(0,i.useCallback)((e=>H(w.mode,{1:()=>f.some((t=>x(t,e))),0:()=>x(f,e)})),[f]),w=(0,i.useMemo)((()=>({...v,value:f,disabled:l,mode:u?1:0,orientation:p,compare:x,isSelected:R,optionsPropsRef:g,labelRef:h,buttonRef:N,optionsRef:E})),[f,l,u,v]);_((()=>{v.dataRef.current=w}),[w]),re([w.buttonRef,w.optionsRef],((e,t)=>{var n;b({type:1}),X(t,Y.Loose)||(e.preventDefault(),null==(n=w.buttonRef.current)||n.focus())}),0===w.listboxState);let T=(0,i.useMemo)((()=>({open:0===w.listboxState,disabled:l,value:f})),[w,l,f]),C=q((e=>{let t=w.options.find((t=>t.id===e));!t||F(t.dataRef.current.value)})),O=q((()=>{if(null!==w.activeOptionIndex){let{dataRef:e,id:t}=w.options[w.activeOptionIndex];F(e.current.value),b({type:2,focus:de.Specific,id:t})}})),S=q((()=>b({type:0}))),P=q((()=>b({type:1}))),k=q(((e,t,n)=>e===de.Specific?b({type:2,focus:de.Specific,id:t,trigger:n}):b({type:2,focus:e,trigger:n}))),I=q(((e,t)=>(b({type:5,id:e,dataRef:t}),()=>b({type:6,id:e})))),L=q((e=>(b({type:7,id:e}),()=>b({type:7,id:null})))),F=q((e=>H(w.mode,{0:()=>null==y?void 0:y(e),1(){let t=w.value.slice(),n=t.findIndex((t=>x(t,e)));return-1===n?t.push(e):t.splice(n,1),null==y?void 0:y(t)}}))),M=q((e=>b({type:3,value:e}))),A=q((()=>b({type:4}))),B=(0,i.useMemo)((()=>({onChange:F,registerOption:I,registerLabel:L,goToOption:k,closeListbox:P,openListbox:S,selectActiveOption:O,selectOption:C,search:M,clearSearch:A})),[]),j={ref:m},z=(0,i.useRef)(null),$=D();return(0,i.useEffect)((()=>{!z.current||void 0!==a&&$.addEventListener(z.current,"reset",(()=>{F(a)}))}),[z,F]),i.createElement(gn.Provider,{value:B},i.createElement(Nn.Provider,{value:w},i.createElement(Ie,{value:H(w.listboxState,{0:ke.Open,1:ke.Closed})},null!=r&&null!=f&&we({[r]:f}).map((([e,t],n)=>i.createElement(Se,{features:Oe.Hidden,ref:0===n?e=>{var t;z.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...Ee({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),be({ourProps:j,theirProps:d,slot:T,defaultTag:Rn,name:"Listbox"}))))})),Tn=Ne((function(e,t){var n;let a=j(),{id:r=`headlessui-listbox-button-${a}`,...s}=e,o=En("Listbox.Button"),l=hn("Listbox.Button"),c=ce(o.buttonRef,t),u=D(),d=q((e=>{switch(e.key){case Le.Space:case Le.Enter:case Le.ArrowDown:e.preventDefault(),l.openListbox(),u.nextFrame((()=>{o.value||l.goToOption(de.First)}));break;case Le.ArrowUp:e.preventDefault(),l.openListbox(),u.nextFrame((()=>{o.value||l.goToOption(de.Last)}))}})),p=q((e=>{e.key===Le.Space&&e.preventDefault()})),m=q((e=>{if(Re(e.currentTarget))return e.preventDefault();0===o.listboxState?(l.closeListbox(),u.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),l.openListbox())})),f=L((()=>{if(o.labelId)return[o.labelId,r].join(" ")}),[o.labelId,r]),y=(0,i.useMemo)((()=>({open:0===o.listboxState,disabled:o.disabled,value:o.value})),[o]);return be({ourProps:{ref:c,id:r,type:oe(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=o.optionsRef.current)?void 0:n.id,"aria-expanded":o.disabled?void 0:0===o.listboxState,"aria-labelledby":f,disabled:o.disabled,onKeyDown:d,onKeyUp:p,onClick:m},theirProps:s,slot:y,defaultTag:"button",name:"Listbox.Button"})})),Cn=Ne((function(e,t){let n=j(),{id:a=`headlessui-listbox-label-${n}`,...r}=e,s=En("Listbox.Label"),o=hn("Listbox.Label"),l=ce(s.labelRef,t);_((()=>o.registerLabel(a)),[a]);let c=q((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),u=(0,i.useMemo)((()=>({open:0===s.listboxState,disabled:s.disabled})),[s]);return be({ourProps:{ref:l,id:a,onClick:c},theirProps:r,slot:u,defaultTag:"label",name:"Listbox.Label"})})),On=ye.RenderStrategy|ye.Static,Sn=Ne((function(e,t){var n;let a=j(),{id:r=`headlessui-listbox-options-${a}`,...s}=e,o=En("Listbox.Options"),l=hn("Listbox.Options"),c=ce(o.optionsRef,t),u=D(),d=D(),p=_e(),m=null!==p?p===ke.Open:0===o.listboxState;(0,i.useEffect)((()=>{var e;let t=o.optionsRef.current;!t||0===o.listboxState&&t!==(null==(e=z(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[o.listboxState,o.optionsRef]);let f=q((e=>{switch(d.dispose(),e.key){case Le.Space:if(""!==o.searchQuery)return e.preventDefault(),e.stopPropagation(),l.search(e.key);case Le.Enter:if(e.preventDefault(),e.stopPropagation(),null!==o.activeOptionIndex){let{dataRef:e}=o.options[o.activeOptionIndex];l.onChange(e.current.value)}0===o.mode&&(l.closeListbox(),M().nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case H(o.orientation,{vertical:Le.ArrowDown,horizontal:Le.ArrowRight}):return e.preventDefault(),e.stopPropagation(),l.goToOption(de.Next);case H(o.orientation,{vertical:Le.ArrowUp,horizontal:Le.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),l.goToOption(de.Previous);case Le.Home:case Le.PageUp:return e.preventDefault(),e.stopPropagation(),l.goToOption(de.First);case Le.End:case Le.PageDown:return e.preventDefault(),e.stopPropagation(),l.goToOption(de.Last);case Le.Escape:return e.preventDefault(),e.stopPropagation(),l.closeListbox(),u.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case Le.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(l.search(e.key),d.setTimeout((()=>l.clearSearch()),350))}})),y=L((()=>{var e,t,n;return null!=(n=null==(e=o.labelRef.current)?void 0:e.id)?n:null==(t=o.buttonRef.current)?void 0:t.id}),[o.labelRef.current,o.buttonRef.current]),v=(0,i.useMemo)((()=>({open:0===o.listboxState})),[o]);return be({ourProps:{"aria-activedescendant":null===o.activeOptionIndex||null==(n=o.options[o.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===o.mode||void 0,"aria-labelledby":y,"aria-orientation":o.orientation,id:r,onKeyDown:f,role:"listbox",tabIndex:0,ref:c},theirProps:s,slot:v,defaultTag:"ul",features:On,visible:m,name:"Listbox.Options"})})),Pn=Ne((function(e,t){let n=j(),{id:a=`headlessui-listbox-option-${n}`,disabled:r=!1,value:s,...o}=e,l=En("Listbox.Option"),c=hn("Listbox.Option"),u=null!==l.activeOptionIndex&&l.options[l.activeOptionIndex].id===a,d=l.isSelected(s),p=(0,i.useRef)(null),m=I({disabled:r,value:s,domRef:p,get textValue(){var e,t;return null==(t=null==(e=p.current)?void 0:e.textContent)?void 0:t.toLowerCase()}}),f=ce(t,p);_((()=>{if(0!==l.listboxState||!u||0===l.activationTrigger)return;let e=M();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[p,u,l.listboxState,l.activationTrigger,l.activeOptionIndex]),_((()=>c.registerOption(a,m)),[m,a]);let y=q((e=>{if(r)return e.preventDefault();c.onChange(s),0===l.mode&&(c.closeListbox(),M().nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),v=q((()=>{if(r)return c.goToOption(de.Nothing);c.goToOption(de.Specific,a)})),b=qe(),g=q((e=>b.update(e))),h=q((e=>{!b.wasMoved(e)||r||u||c.goToOption(de.Specific,a,0)})),N=q((e=>{!b.wasMoved(e)||r||!u||c.goToOption(de.Nothing)})),E=(0,i.useMemo)((()=>({active:u,selected:d,disabled:r})),[u,d,r]);return be({ourProps:{id:a,ref:f,role:"option",tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,"aria-selected":d,disabled:void 0,onClick:y,onFocus:v,onPointerEnter:g,onMouseEnter:g,onPointerMove:h,onMouseMove:h,onPointerLeave:N,onMouseLeave:N},theirProps:o,slot:E,defaultTag:"li",name:"Listbox.Option"})})),kn=Object.assign(wn,{Button:Tn,Label:Cn,Options:Sn,Option:Pn});const In={value:o().oneOfType([o().string,o().number,o().bool]).isRequired,label:o().string.isRequired},Ln=({value:t,label:n})=>{const a=u(),s=(0,i.useCallback)((({active:e,selected:t})=>r()("yst-select__option",e&&"yst-select__option--active",t&&"yst-select__option--selected")),[]);return l().createElement(kn.Option,{value:t,className:s},(({selected:t})=>l().createElement(l().Fragment,null,l().createElement("span",{className:r()("yst-select__option-label",t&&"yst-font-semibold")},n),t&&l().createElement(xt,e({className:"yst-select__option-check"},a)))))};Ln.propTypes=In;const Fn=(0,i.forwardRef)((({id:t,value:n,options:a,children:s,selectedLabel:o,label:c,labelProps:d,labelSuffix:p,onChange:m,disabled:f,validation:y,className:v,buttonProps:b,...g},h)=>{const N=(0,i.useMemo)((()=>a.find((e=>n===(null==e?void 0:e.value)))||a[0]),[n,a]),E=u();return l().createElement(kn,e({ref:h,as:"div",value:n,onChange:m,disabled:f,className:r()("yst-select",f&&"yst-select--disabled",v)},g),c&&l().createElement("div",{className:"yst-flex yst-items-center yst-mb-2"},l().createElement(kn.Label,e({as:Ut},d),c),p),l().createElement(It,e({as:kn.Button,"data-id":t,className:"yst-select__button",validation:y},b),l().createElement("span",{className:"yst-select__button-label"},o||(null==N?void 0:N.label)||""),!(null!=y&&y.message)&&l().createElement(Rt,e({className:"yst-select__button-icon"},E))),l().createElement(Nt,{as:i.Fragment,enter:"yst-transition yst-duration-100 yst-ease-out",enterFrom:"yst-transform yst-scale-95 yst-opacity-0",enterTo:"yst-transform yst-scale-100 yst-opacity-100",leave:"yst-transition yst-duration-75 yst-ease-out",leaveFrom:"yst-transform yst-scale-100 yst-opacity-100",leaveTo:"yst-transform yst-scale-95 yst-opacity-0"},l().createElement(kn.Options,{className:"yst-select__options"},s||a.map((t=>l().createElement(Ln,e({key:t.value},t)))))))}));Fn.displayName="Select",Fn.propTypes={id:o().string.isRequired,value:o().oneOfType([o().string,o().number,o().bool]).isRequired,options:o().arrayOf(o().shape(In)),children:o().node,selectedLabel:o().string,label:o().string,labelProps:o().object,labelSuffix:o().node,onChange:o().func.isRequired,disabled:o().bool,validation:o().shape({variant:o().string,message:o().node}),className:o().string,buttonProps:o().object},Fn.defaultProps={options:[],children:null,selectedLabel:"",label:"",labelProps:{},labelSuffix:null,disabled:!1,validation:{},className:"",buttonProps:{}},Fn.Option=Ln,Fn.Option.displayName="Select.Option";const Mn=Fn,Dn=({as:e="span",className:t="",children:n=null})=>l().createElement(e,{className:r()("yst-skeleton-loader",t)},n&&l().createElement("div",{className:"yst-pointer-events-none yst-invisible"},n));Dn.propTypes={as:o().elementType,className:o().string,children:o().node};const qn=Dn,An={variant:{striped:"[&>*]:even:yst-bg-slate-50 [&>*]:odd:yst-bg-white",plain:""}},Bn=({children:t,className:n="",...a})=>l().createElement("td",e({className:r()("yst-table-cell",n)},a),t);Bn.propTypes={children:o().node.isRequired,className:o().string};const jn=({children:t,variant:n="plain",className:a="",...s})=>l().createElement("tr",e({className:r()("yst-table-row",An.variant[n],a)},s),t);jn.propTypes={children:o().node.isRequired,variant:o().oneOf(Object.keys(An.variant)),className:o().string};const Hn=({children:t,className:n="",...a})=>l().createElement("th",e({className:r()("yst-table-header",n)},a),t);Hn.propTypes={children:o().node.isRequired,className:o().string};const zn=({children:t,className:n="",...a})=>l().createElement("thead",e({className:n},a),t);zn.propTypes={children:o().node.isRequired,className:o().string};const $n=({children:t,className:n="",...a})=>l().createElement("tbody",e({className:n},a),t);$n.propTypes={children:o().node.isRequired,className:o().string};const Vn={default:"yst-table--default",minimal:"yst-table--minimal"},Un=(0,i.forwardRef)((({children:t,className:n="",variant:a="default",...s},o)=>l().createElement("div",{className:r()("yst-table-wrapper",Vn[a])},l().createElement("table",e({className:n},s,{ref:o}),t))));Un.displayName="Table",Un.propTypes={children:o().node.isRequired,className:o().string,variant:o().oneOf(Object.keys(Vn))},Un.defaultProps={className:"",variant:"default"},Un.Head=zn,Un.Head.displayName="Table.Head",Un.Body=$n,Un.Body.displayName="Table.Body",Un.Header=Hn,Un.Header.displayName="Table.Header",Un.Row=jn,Un.Row.displayName="Table.Row",Un.Cell=Bn,Un.Cell.displayName="Table.Cell";const Kn=Un,Wn=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),Gn=({tag:t,index:n,disabled:a=!1,onRemoveTag:r,screenReaderRemoveTag:s,...o})=>{const c=(0,i.useCallback)((e=>{if(!a)switch(null==e?void 0:e.key){case"Delete":case"Backspace":return r(n),e.preventDefault(),!0}}),[n,a,r]),u=(0,i.useCallback)((e=>{if(!a)return r(n),e.preventDefault(),!0}),[n,a,r]);return l().createElement($t,e({onKeyDown:c},o,{variant:"plain",className:"yst-tag-input__tag"}),l().createElement("span",{className:"yst-mb-px"},t),l().createElement("button",{type:"button",onClick:u,className:"yst-tag-input__remove-tag"},l().createElement("span",{className:"yst-sr-only"},s),l().createElement(Wn,{className:"yst-h-3 yst-w-3"})))};Gn.propTypes={tag:o().string.isRequired,index:o().number.isRequired,disabled:o().bool,onRemoveTag:o().func.isRequired,screenReaderRemoveTag:o().string.isRequired};const Qn=(0,i.forwardRef)((({tags:t=[],children:n,className:a,disabled:s,onAddTag:o,onRemoveTag:u,onSetTags:d,onBlur:p,screenReaderRemoveTag:m,...f},y)=>{const[v,b]=(0,i.useState)(""),g=(0,i.useCallback)((e=>{var t;(0,c.isString)(null==e||null===(t=e.target)||void 0===t?void 0:t.value)&&b(e.target.value)}),[b]),h=(0,i.useCallback)((e=>{switch(e.key){case",":case"Enter":return v.length>0&&(o(v),b("")),e.preventDefault(),!0;case"Backspace":if(0!==v.length||0===t.length)break;return u(t.length-1),e.ctrlKey&&d([]),e.preventDefault(),!0}}),[v,t,b,o]),N=(0,i.useCallback)((e=>{v.length>0&&(o(v),b("")),p(e)}),[v,o,b,p]);return l().createElement("div",{className:r()("yst-tag-input",s&&"yst-tag-input--disabled",a)},n||(0,c.map)(t,((e,t)=>l().createElement(Gn,{key:`tag-${t}`,tag:e,index:t,disabled:s,onRemoveTag:u,screenReaderRemoveTag:m}))),l().createElement("input",e({ref:y,type:"text",disabled:s,className:"yst-tag-input__input",onKeyDown:h},f,{onChange:g,onBlur:N,value:v})))}));Qn.displayName="TagInput",Qn.propTypes={tags:o().arrayOf(o().string),children:o().node,className:o().string,disabled:o().bool,onAddTag:o().func,onRemoveTag:o().func,onSetTags:o().func,onBlur:o().func,screenReaderRemoveTag:o().string},Qn.defaultProps={tags:[],children:null,className:"",disabled:!1,onAddTag:c.noop,onRemoveTag:c.noop,onSetTags:c.noop,onBlur:c.noop,screenReaderRemoveTag:"Remove tag"},Qn.Tag=Gn,Qn.Tag.displayName="TagInput.Tag";const Yn=Qn,Xn=(0,i.forwardRef)((({type:t,className:n,disabled:a,readOnly:s,...o},i)=>l().createElement("input",e({ref:i,type:t,className:r()("yst-text-input",a&&"yst-text-input--disabled",s&&"yst-text-input--read-only",n),disabled:a,readOnly:s},o))));Xn.displayName="TextInput",Xn.propTypes={type:o().string,className:o().string,disabled:o().bool,readOnly:o().bool},Xn.defaultProps={type:"text",className:"",disabled:!1,readOnly:!1};const Zn=Xn,Jn=(0,i.forwardRef)((({disabled:t,cols:n,rows:a,className:s,...o},i)=>l().createElement("textarea",e({ref:i,disabled:t,cols:n,rows:a,className:r()("yst-textarea",t&&"yst-textarea--disabled",s)},o))));Jn.displayName="Textarea",Jn.propTypes={className:o().string,disabled:o().bool,cols:o().number,rows:o().number},Jn.defaultProps={className:"",disabled:!1,cols:20,rows:2};const ea=Jn,ta={size:{1:"yst-title--1",2:"yst-title--2",3:"yst-title--3",4:"yst-title--4",5:"yst-title--5"}},na=(0,i.forwardRef)((({children:t,as:n,size:a,className:s,...o},i)=>l().createElement(n,e({ref:i,className:r()("yst-title",ta.size[a||n[1]],s)},o),t)));na.displayName="Title",na.propTypes={children:o().node.isRequired,as:o().elementType,size:o().oneOf(Object.keys(ta.size)),className:o().string},na.defaultProps={as:"h1",size:void 0,className:""};const aa=na,ra=(0,i.createContext)({handleDismiss:c.noop}),sa=()=>(0,i.useContext)(ra),oa={position:{"bottom-center":"yst-translate-y-full","bottom-left":"yst-translate-y-full","top-center":"yst--translate-y-full"}},ia=({dismissScreenReaderLabel:e})=>{const{handleDismiss:t}=sa();return l().createElement("div",{className:"yst-flex-shrink-0 yst-flex yst-self-start"},l().createElement("button",{type:"button",onClick:t,className:"yst-bg-transparent yst-rounded-md yst-inline-flex yst-text-slate-400 hover:yst-text-slate-500 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-offset-2 focus:yst-ring-primary-500"},l().createElement("span",{className:"yst-sr-only"},e),l().createElement(Et,{className:"yst-h-5 yst-w-5"})))};ia.propTypes={dismissScreenReaderLabel:o().string.isRequired};const la=({description:e=null,className:t=""})=>(0,c.isArray)(e)?l().createElement("ul",{className:r()("yst-list-disc yst-ms-4",t)},e.map(((e,t)=>l().createElement("li",{className:"yst-pt-1",key:`${e}-${t}`},e)))):l().createElement("p",{className:t},e);la.propTypes={description:o().oneOfType([o().node,o().arrayOf(o().node)]),className:o().string};const ca=({title:e,className:t=""})=>l().createElement("p",{className:r()("yst-text-sm yst-font-medium yst-text-slate-800",t)},e);ca.propTypes={title:o().string.isRequired,className:o().string};const ua=({children:e=null,id:t,className:n="",position:a="bottom-left",onDismiss:s=c.noop,autoDismiss:o=null,isVisible:u,setIsVisible:d})=>{const p=(0,i.useCallback)((()=>{d(!1),setTimeout((()=>{s(t)}),150)}),[s,t]);return(0,i.useEffect)((()=>{let e;return d(!0),o&&(e=setTimeout((()=>{p()}),o)),()=>clearTimeout(e)}),[]),l().createElement(ra.Provider,{value:{handleDismiss:p}},l().createElement(Nt,{show:u,enter:"yst-transition yst-ease-in-out yst-duration-150",enterFrom:r()("yst-opacity-0",oa.position[a]),enterTo:"yst-translate-y-0",leave:"yst-transition yst-ease-in-out yst-duration-150",leaveFrom:"yst-translate-y-0",leaveTo:r()("yst-opacity-0",oa.position[a]),className:r()("yst-toast",n),role:"alert"},e))};ua.propTypes={children:o().node,id:o().string.isRequired,className:o().string,position:o().oneOf(Object.keys(oa.position)),onDismiss:o().func,autoDismiss:o().number,isVisible:o().bool.isRequired,setIsVisible:o().func.isRequired},ua.Close=ia,ua.Description=la,ua.Title=ca;const da=ua;let pa=(0,i.createContext)(null);function ma(){let e=(0,i.useContext)(pa);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,ma),e}return e}let fa=Ne((function(e,t){let n=j(),{id:a=`headlessui-label-${n}`,passive:r=!1,...s}=e,o=ma(),i=ce(t);_((()=>o.register(a)),[a,o.register]);let l={ref:i,...o.props,id:a};return r&&("onClick"in l&&delete l.onClick,"onClick"in s&&delete s.onClick),be({ourProps:l,theirProps:s,slot:o.slot||{},defaultTag:"label",name:o.name||"Label"})})),ya=(0,i.createContext)(null);function va(){let e=(0,i.useContext)(ya);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,va),e}return e}function ba(){let[e,t]=(0,i.useState)([]);return[e.length>0?e.join(" "):void 0,(0,i.useMemo)((()=>function(e){let n=q((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),a=n.indexOf(e);return-1!==a&&n.splice(a,1),n}))))),a=(0,i.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return i.createElement(ya.Provider,{value:a},e.children)}),[t])]}let ga=Ne((function(e,t){let n=j(),{id:a=`headlessui-description-${n}`,...r}=e,s=va(),o=ce(t);return _((()=>s.register(a)),[a,s.register]),be({ourProps:{ref:o,...s.props,id:a},theirProps:r,slot:s.slot||{},defaultTag:"p",name:s.name||"Description"})})),ha=(0,i.createContext)(null);ha.displayName="GroupContext";let Na=i.Fragment,Ea=Ne((function(e,t){let n=j(),{id:a=`headlessui-switch-${n}`,checked:r,defaultChecked:s=!1,onChange:o,name:l,value:c,...u}=e,d=(0,i.useContext)(ha),p=(0,i.useRef)(null),m=ce(p,t,null===d?null:d.setSwitch),[f,y]=Fe(r,o,s),v=q((()=>null==y?void 0:y(!f))),b=q((e=>{if(Re(e.currentTarget))return e.preventDefault();e.preventDefault(),v()})),g=q((e=>{e.key===Le.Space?(e.preventDefault(),v()):e.key===Le.Enter&&function(e){var t;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n)for(let e of n.elements)if("INPUT"===e.tagName&&"submit"===e.type||"BUTTON"===e.tagName&&"submit"===e.type||"INPUT"===e.nodeName&&"image"===e.type)return void e.click()}(e.currentTarget)})),h=q((e=>e.preventDefault())),N=(0,i.useMemo)((()=>({checked:f})),[f]),E={id:a,ref:m,role:"switch",type:oe(e,p),tabIndex:0,"aria-checked":f,"aria-labelledby":null==d?void 0:d.labelledby,"aria-describedby":null==d?void 0:d.describedby,onClick:b,onKeyUp:g,onKeyPress:h},x=D();return(0,i.useEffect)((()=>{var e;let t=null==(e=p.current)?void 0:e.closest("form");!t||void 0!==s&&x.addEventListener(t,"reset",(()=>{y(s)}))}),[p,y]),i.createElement(i.Fragment,null,null!=l&&f&&i.createElement(Se,{features:Oe.Hidden,...Ee({as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:f,name:l,value:c})}),be({ourProps:E,theirProps:u,slot:N,defaultTag:"button",name:"Switch"}))})),xa=Object.assign(Ea,{Group:function(e){let[t,n]=(0,i.useState)(null),[a,r]=function(){let[e,t]=(0,i.useState)([]);return[e.length>0?e.join(" "):void 0,(0,i.useMemo)((()=>function(e){let n=q((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),a=n.indexOf(e);return-1!==a&&n.splice(a,1),n}))))),a=(0,i.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return i.createElement(pa.Provider,{value:a},e.children)}),[t])]}(),[s,o]=ba(),l=(0,i.useMemo)((()=>({switch:t,setSwitch:n,labelledby:a,describedby:s})),[t,n,a,s]),c=e;return i.createElement(o,{name:"Switch.Description"},i.createElement(r,{name:"Switch.Label",props:{onClick(){!t||(t.click(),t.focus({preventScroll:!0}))}}},i.createElement(ha.Provider,{value:l},be({ourProps:{},theirProps:c,defaultTag:Na,name:"Switch.Group"}))))},Label:fa,Description:ga});const Ra=(0,i.forwardRef)((({id:t,as:n,checked:a,screenReaderLabel:s,onChange:o,disabled:i,className:d,type:p,...m},f)=>{const y=u();return l().createElement(xa,e({ref:f,as:n,checked:a,disabled:i,onChange:i?c.noop:o,className:r()("yst-toggle",a&&"yst-toggle--checked",i&&"yst-toggle--disabled",d),"data-id":t},m,{type:"button"===n?"button":p}),l().createElement("span",{className:"yst-sr-only"},s),l().createElement("span",{className:"yst-toggle__handle"},l().createElement(Nt,{show:a,unmount:!1,as:"span","aria-hidden":!a,enter:"",enterFrom:"yst-opacity-0 yst-hidden",enterTo:"yst-opacity-100",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0 yst-hidden"},l().createElement(xt,e({className:"yst-toggle__icon yst-toggle__icon--check"},y))),l().createElement(Nt,{show:!a,unmount:!1,as:"span","aria-hidden":a,enterFrom:"yst-opacity-0 yst-hidden",enterTo:"yst-opacity-100",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0 yst-hidden"},l().createElement(Wn,e({className:"yst-toggle__icon yst-toggle__icon--x"},y)))))}));Ra.displayName="Toggle",Ra.propTypes={as:o().elementType,id:o().string.isRequired,checked:o().bool,screenReaderLabel:o().string.isRequired,onChange:o().func.isRequired,disabled:o().bool,type:o().string,className:o().string},Ra.defaultProps={as:"button",checked:!1,disabled:!1,type:"",className:""};const wa=Ra,Ta={top:"yst-tooltip--top",right:"yst-tooltip--right",bottom:"yst-tooltip--bottom",left:"yst-tooltip--left"},Ca={light:"yst-tooltip--light",dark:""},Oa=(0,i.forwardRef)((({children:t,as:n,className:a,position:s,...o},i)=>l().createElement(n,e({ref:i,className:r()("yst-tooltip",Ta[s],Ca[o.variant],a),role:"tooltip"},o),t)));Oa.displayName="Tooltip",Oa.propTypes={as:o().elementType,children:o().node,className:o().string,position:o().oneOf(Object.keys(Ta)),variant:o().oneOf(Object.keys(Ca))},Oa.defaultProps={as:"div",children:null,className:"",position:"top",variant:"dark"};const Sa=Oa,Pa=(e,t)=>{const n=(0,i.useMemo)((()=>(0,c.reduce)(t,((t,n,a)=>n?(t[a]=`${e}__${a}`,t):t),{})),[e,t]),a=(0,i.useMemo)((()=>(0,c.values)(n).join(" ")||null),[n]);return{ids:n,describedBy:a}},ka=(0,i.forwardRef)((({id:t,label:n,disabled:a,description:s,validation:o,className:i,...c},u)=>{const{ids:d,describedBy:p}=Pa(t,{validation:null==o?void 0:o.message,description:s});return l().createElement("div",{className:r()("yst-autocomplete-field",a&&"yst-autocomplete-field--disabled",i)},l().createElement(Bt,e({ref:u,id:t,label:n,labelProps:{as:"label",className:"yst-label yst-autocomplete-field__label"},validation:o,className:"yst-autocomplete-field__select",buttonProps:{"aria-describedby":p},disabled:a},c)),(null==o?void 0:o.message)&&l().createElement(x,{variant:null==o?void 0:o.variant,id:d.validation,className:"yst-autocomplete-field__validation"},o.message),s&&l().createElement("div",{id:d.description,className:"yst-autocomplete-field__description"},s))}));ka.displayName="AutocompleteField",ka.propTypes={id:o().string.isRequired,label:o().string.isRequired,disabled:o().bool,description:o().node,validation:o().shape({variant:o().string,message:o().node}),className:o().string},ka.defaultProps={disabled:!1,description:null,validation:{},className:""},ka.Option=Bt.Option,ka.Option.displayName="AutocompleteField.Option";const _a=ka,Ia=({as:t="div",children:n,className:a="",...s})=>l().createElement(t,e({},s,{className:r()("yst-card__header",a)}),n);Ia.propTypes={as:s.PropTypes.element,children:s.PropTypes.node.isRequired,className:s.PropTypes.string};const La=({as:t="div",children:n,className:a="",...s})=>l().createElement(t,e({},s,{className:r()("yst-card__content",a)}),n);La.propTypes={as:s.PropTypes.element,children:s.PropTypes.node.isRequired,className:s.PropTypes.string};const Fa=({as:t="div",children:n,className:a="",...s})=>l().createElement(t,e({},s,{className:r()("yst-card__footer",a)}),n);Fa.propTypes={as:s.PropTypes.element,children:s.PropTypes.node.isRequired,className:s.PropTypes.string};const Ma=(0,i.forwardRef)((({as:t,children:n,className:a,...s},o)=>l().createElement(t,e({},s,{className:r()("yst-card",a),ref:o}),n)));Ma.displayName="Card",Ma.propTypes={as:s.PropTypes.elementType,children:s.PropTypes.node.isRequired,className:s.PropTypes.string},Ma.defaultProps={as:"div",className:""},Ma.Header=Ia,Ma.Header.displayName="Card.Header",Ma.Content=La,Ma.Content.displayName="Card.Content",Ma.Footer=Fa,Ma.Footer.displayName="Card.Footer";const Da=Ma,qa=({children:t=null,id:n="",name:a="",values:s=[],label:o="",description:u="",disabled:d=!1,options:p=[],onChange:m=c.noop,className:f="",...y})=>{const v=(0,i.useCallback)((({target:e})=>{if(e.checked&&!(0,c.includes)(s,e.value))return m([...s,e.value]);m((0,c.without)(s,e.value))}),[s,m]);return l().createElement("fieldset",{id:`checkbox-group-${n}`,className:r()("yst-checkbox-group",d&&"yst-checkbox-group--disabled",f)},l().createElement(Ut,{as:"legend",className:"yst-checkbox-group__label",label:o}),u&&l().createElement("div",{className:"yst-checkbox-group__description"},u),l().createElement("div",{className:"yst-checkbox-group__options"},t||p.map(((t,r)=>{const o=`checkbox-${n}-${r}`;return l().createElement(Wt,e({key:o,id:o,name:a,value:t.value,label:t.label,checked:(0,c.includes)(s,t.value),disabled:d,onChange:v},y))}))))};qa.propTypes={children:o().node,id:o().string,name:o().string,values:o().arrayOf(o().string),label:o().string,disabled:o().bool,description:o().string,options:o().arrayOf(o().shape({value:o().string.isRequired,label:o().string.isRequired})),onChange:o().func,className:o().string},(qa.Checkbox=Wt).displayName="CheckboxGroup.Checkbox";const Aa=qa,Ba=window.yoast.reduxJsToolkit;function ja(e){return"string"==typeof e&&"%"===e[e.length-1]&&function(e){const t=parseFloat(e);return!isNaN(t)&&isFinite(t)}(e.substring(0,e.length-1))}function Ha(e,t){0===t&&(null==e?void 0:e.style)&&(e.style.display="none")}const za={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"};function $a(e,t){return[e.static,0===t&&e.staticHeightZero,t>0&&e.staticHeightSpecific,"auto"===t&&e.staticHeightAuto].filter((e=>e)).join(" ")}const Va=e=>{var{animateOpacity:t=!1,animationStateClasses:n={},applyInlineTransitions:a=!0,children:r,className:s="",contentClassName:o,delay:l=0,duration:c=500,easing:u="ease",height:d,onHeightAnimationEnd:p,onHeightAnimationStart:m,style:f}=e,y=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&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(e,["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style"]);const v=(0,i.useRef)(d),b=(0,i.useRef)(null),g=(0,i.useRef)(),h=(0,i.useRef)(),N=(0,i.useRef)(Object.assign(Object.assign({},za),n)),E="undefined"!=typeof window,x=(0,i.useRef)(!(!E||!window.matchMedia)&&window.matchMedia("(prefers-reduced-motion)").matches),R=x.current?0:l,w=x.current?0:c;let T=d,C="visible";"number"==typeof T?(T=d<0?0:d,C="hidden"):ja(T)&&(T="0%"===d?0:d,C="hidden");const[O,S]=(0,i.useState)(T),[P,k]=(0,i.useState)(C),[_,I]=(0,i.useState)(!1),[L,F]=(0,i.useState)($a(N.current,d));(0,i.useEffect)((()=>{Ha(b.current,O)}),[]),(0,i.useEffect)((()=>{if(d!==v.current&&b.current){!function(e,t){0===t&&(null==e?void 0:e.style)&&(e.style.display="")}(b.current,v.current),b.current.style.overflow="hidden";const e=b.current.offsetHeight;b.current.style.overflow="";const t=w+R;let n,a,r,s="hidden";const o="auto"===v.current;"number"==typeof d?(n=d<0?0:d,a=n):ja(d)?(n="0%"===d?0:d,a=n):(n=e,a="auto",s=void 0),o&&(a=n,n=e);const i=[N.current.animating,("auto"===v.current||d<v.current)&&N.current.animatingUp,("auto"===d||d>v.current)&&N.current.animatingDown,0===a&&N.current.animatingToHeightZero,"auto"===a&&N.current.animatingToHeightAuto,a>0&&N.current.animatingToHeightSpecific].filter((e=>e)).join(" "),l=$a(N.current,a);S(n),k("hidden"),I(!o),F(i),clearTimeout(h.current),clearTimeout(g.current),o?(r=!0,h.current=setTimeout((()=>{S(a),k(s),I(r),null==m||m(a)}),50),g.current=setTimeout((()=>{I(!1),F(l),Ha(b.current,a),null==p||p(a)}),t)):(null==m||m(n),h.current=setTimeout((()=>{S(a),k(s),I(!1),F(l),"auto"!==d&&Ha(b.current,n),null==p||p(n)}),t))}return v.current=d,()=>{clearTimeout(h.current),clearTimeout(g.current)}}),[d]);const M=Object.assign(Object.assign({},f),{height:O,overflow:P||(null==f?void 0:f.overflow)});_&&a&&(M.transition=`height ${w}ms ${u} ${R}ms`,(null==f?void 0:f.transition)&&(M.transition=`${f.transition}, ${M.transition}`),M.WebkitTransition=M.transition);const D={};t&&(D.transition=`opacity ${w}ms ${u} ${R}ms`,D.WebkitTransition=D.transition,0===O&&(D.opacity=0));const q=void 0!==y["aria-hidden"]?y["aria-hidden"]:0===d;return i.createElement("div",Object.assign({},y,{"aria-hidden":q,className:`${L} ${s}`,style:M}),i.createElement("div",{className:o,style:D,ref:b},r))},Ua=(e=!0)=>{const[t,n]=(0,i.useState)(e),a=(0,i.useCallback)((()=>n(!t)),[t,n]),r=(0,i.useCallback)((()=>n(!0)),[n]),s=(0,i.useCallback)((()=>n(!1)),[n]);return[t,a,n,r,s]},Ka=({limit:e,children:t,renderButton:n,initialShow:a=!1,id:r=""})=>{const[s,o]=Ua(a),u=(0,i.useMemo)((()=>(0,c.flatten)(t)),[t]),d=(0,i.useMemo)((()=>(0,c.slice)(u,0,e)),[u]),p=(0,i.useMemo)((()=>(0,c.slice)(u,e)),[u]),m=(0,i.useMemo)((()=>r||`yst-animate-height-${(0,Ba.nanoid)()}`),[r]),f=(0,i.useMemo)((()=>({"aria-expanded":s,"aria-controls":m})),[s,m]);return e<0||u.length<=e?t:l().createElement(l().Fragment,null,d,l().createElement(Va,{id:m,easing:"ease-in-out",duration:300,height:s?"auto":0,animateOpacity:!0},p),n({show:s,toggle:o,ariaProps:f}))};Ka.propTypes={limit:o().number.isRequired,children:o().arrayOf(o().node).isRequired,renderButton:o().func.isRequired,initialShow:o().bool,id:o().string};const Wa=Ka,Ga=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),Qa={variant:{default:"yst-feature-upsell--default",card:"yst-feature-upsell--card"}},Ya=({children:t,shouldUpsell:n=!0,className:a="",variant:s="card",cardLink:o="",cardText:i="",...c})=>{const d=u();return n?l().createElement("div",{className:r()("yst-feature-upsell",Qa.variant[s],a)},l().createElement("div",{className:"yst-space-y-8 yst-grayscale"},t),l().createElement("div",{className:"yst-absolute yst-inset-0 yst-ring-1 yst-ring-black yst-ring-opacity-5 yst-shadow-lg yst-rounded-md"}),l().createElement("div",{className:"yst-absolute yst-inset-0 yst-flex yst-items-center yst-justify-center"},l().createElement(Pt,e({as:"a",className:"yst-gap-2 yst-shadow-lg yst-shadow-amber-700/30",variant:"upsell",href:o,target:"_blank",rel:"noopener"},c),l().createElement(Ga,e({className:r()("yst-w-5 yst-h-5 yst-shrink-0",i&&"yst--ms-1")},d)),i))):t};Ya.propTypes={children:o().node.isRequired,shouldUpsell:o().bool,className:o().string,variant:o().oneOf(Object.keys(Qa.variant)),cardLink:o().string,cardText:o().string};const Xa=Ya,Za=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))})),Ja=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))})),er=(0,i.forwardRef)((({id:t,name:n,value:a,selectLabel:s,dropLabel:o,screenReaderLabel:u,selectDescription:d,disabled:p,iconAs:m,onChange:f,onDrop:y,className:v,...b},g)=>{const[h,N]=(0,i.useState)(!1),E=(0,i.useCallback)((e=>{e.preventDefault(),(0,c.isEmpty)(e.dataTransfer.items)||N(!0)}),[N]),x=(0,i.useCallback)((e=>{e.preventDefault(),N(!1)}),[N]),R=(0,i.useCallback)((e=>{e.preventDefault()}),[]),w=(0,i.useCallback)((e=>{e.preventDefault(),N(!1),y(e)}),[N,y]);return l().createElement("div",{onDragEnter:E,onDragLeave:x,onDragOver:R,onDrop:w,className:r()("yst-file-input",{"yst-is-drag-over":h,"yst-is-disabled":p,className:v})},l().createElement("div",{className:"yst-file-input__content"},l().createElement(m,{className:"yst-file-input__icon"}),l().createElement("div",{className:"yst-file-input__labels"},l().createElement("input",e({ref:g,type:"file",id:t,name:n,value:a,onChange:f,className:"yst-file-input__input","aria-labelledby":u,disabled:p},b)),l().createElement(en,{as:"label",htmlFor:t,className:"yst-file-input__select-label"},s),l().createElement("span",null," "),o),d&&l().createElement("span",null,d)))}));er.displayName="FileInput",er.propTypes={id:o().string.isRequired,name:o().string.isRequired,value:o().string.isRequired,selectLabel:o().string.isRequired,dropLabel:o().string.isRequired,screenReaderLabel:o().string.isRequired,selectDescription:o().string,disabled:o().bool,iconAs:o().elementType,onChange:o().func.isRequired,onDrop:o().func,className:o().string},er.defaultProps={selectDescription:"",disabled:!1,iconAs:Ja,className:"",onDrop:c.noop};const tr=er,nr={idle:"idle",selected:"selected",loading:"loading",success:"success",aborted:"aborted",error:"error"},ar=(0,i.createContext)({status:nr.idle}),rr={enter:"yst-transition-opacity yst-ease-in-out yst-duration-1000 yst-delay-200",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",leave:"yst-transition-opacity yst-ease-in-out yst-duration-200",leaveFrom:"yst-opacity-0",leaveTo:"yst-opacity-100",className:"yst-absolute"},sr=e=>{const t=({children:t=null})=>{const{status:n}=(0,i.useContext)(ar);return l().createElement(Nt,{show:n===e,enter:"yst-transition-opacity yst-ease-in-out yst-duration-1000 yst-delay-200",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",className:"yst-mt-6"},t)};return t.propTypes={children:o().node},t.displayName=`FileImport.${(0,c.capitalize)(e)}`,t},or=(0,i.forwardRef)((({children:t="",id:n,name:a,selectLabel:r,dropLabel:s,screenReaderLabel:o,abortScreenReaderLabel:u,selectDescription:d,status:p,onChange:m,onAbort:f,feedbackTitle:y,feedbackDescription:v,progressMin:b,progressMax:g,progress:N},E)=>{const x=(0,i.useMemo)((()=>p===nr.selected),[p]),R=(0,i.useMemo)((()=>p===nr.loading),[p]),w=(0,i.useMemo)((()=>p===nr.success),[p]),T=(0,i.useMemo)((()=>p===nr.aborted),[p]),C=(0,i.useMemo)((()=>p===nr.error),[p]),O=(0,i.useMemo)((()=>(0,c.includes)([nr.selected,nr.loading,nr.success,nr.aborted,nr.error],p)),[p]),S=(0,i.useCallback)((e=>{(0,c.isEmpty)(e.target.files)||m(e.target.files[0])}),[m]),P=(0,i.useCallback)((e=>{if(!(0,c.isEmpty)(e.dataTransfer.files)){const t=e.dataTransfer.files[0];t&&m(t)}}),[m]);return l().createElement(ar.Provider,{value:{status:p}},l().createElement("div",{className:"yst-file-import"},l().createElement(tr,{ref:E,id:n,name:a,value:"",onChange:S,onDrop:P,className:"yst-file-import__input","aria-labelledby":o,disabled:R,selectLabel:r,dropLabel:s,screenReaderLabel:o,selectDescription:d}),l().createElement(Nt,{show:O,enter:"yst-transition-opacity yst-ease-in-out yst-duration-1000 yst-delay-200",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100"},l().createElement("div",{className:"yst-file-import__feedback"},l().createElement("header",{className:"yst-file-import__feedback-header"},l().createElement("div",{className:"yst-file-import__feedback-figure"},l().createElement(Za,null)),l().createElement("div",{className:"yst-flex-1"},l().createElement("span",{className:"yst-file-import__feedback-title"},y),l().createElement("p",{className:"yst-file-import__feedback-description"},v),!(0,c.isNull)(N)&&l().createElement(cn,{min:b,max:g,progress:N,className:"yst-mt-1.5"})),l().createElement("div",{className:"yst-relative yst-h-5 yst-w-5"},l().createElement(Nt,e({show:x},rr),l().createElement(h,{variant:"info",className:"yst-w-5 yst-h-5"})),l().createElement(Nt,e({show:R},rr),l().createElement("button",{type:"button",onClick:f,className:"yst-file-import__abort-button"},l().createElement("span",{className:"yst-sr-only"},u),l().createElement(Et,null))),l().createElement(Nt,e({show:w},rr),l().createElement(h,{variant:"success",className:"yst-w-5 yst-h-5"})),l().createElement(Nt,e({show:T},rr),l().createElement(h,{variant:"warning",className:"yst-w-5 yst-h-5"})),l().createElement(Nt,e({show:C},rr),l().createElement(h,{variant:"error",className:"yst-w-5 yst-h-5"})))),t))))}));or.displayName="FileImport",or.propTypes={children:o().node,id:o().string.isRequired,name:o().string.isRequired,selectLabel:o().string.isRequired,dropLabel:o().string.isRequired,screenReaderLabel:o().string.isRequired,abortScreenReaderLabel:o().string.isRequired,selectDescription:o().string,feedbackTitle:o().string.isRequired,feedbackDescription:o().string,progressMin:o().number,progressMax:o().number,progress:o().number,status:o().oneOf((0,c.values)(nr)),onChange:o().func.isRequired,onAbort:o().func.isRequired},or.defaultProps={children:null,selectDescription:"",feedbackDescription:"",progressMin:null,progressMax:null,progress:null,status:nr.idle},or.Selected=sr(nr.selected),or.Loading=sr(nr.loading),or.Success=sr(nr.success),or.Aborted=sr(nr.aborted),or.Error=sr(nr.error);const ir=or;var lr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(lr||{});function cr(...e){return(0,i.useMemo)((()=>z(...e)),[...e])}function ur(e,t,n,a){let r=I(n);(0,i.useEffect)((()=>{function n(e){r.current(e)}return(e=null!=e?e:window).addEventListener(t,n,a),()=>e.removeEventListener(t,n,a)}),[e,t,a])}var dr=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(dr||{});let pr=Object.assign(Ne((function(e,t){let n=(0,i.useRef)(null),a=ce(n,t),{initialFocus:r,containers:s,features:o=30,...l}=e;A()||(o=1);let c=cr(n);!function({ownerDocument:e},t){let n=(0,i.useRef)(null);ur(null==e?void 0:e.defaultView,"focusout",(e=>{!t||n.current||(n.current=e.target)}),!0),Me((()=>{t||((null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&J(n.current),n.current=null)}),[t]);let a=(0,i.useRef)(!1);(0,i.useEffect)((()=>(a.current=!1,()=>{a.current=!0,F((()=>{!a.current||(J(n.current),n.current=null)}))})),[])}({ownerDocument:c},Boolean(16&o));let u=function({ownerDocument:e,container:t,initialFocus:n},a){let r=(0,i.useRef)(null),s=rt();return Me((()=>{if(!a)return;let o=t.current;!o||F((()=>{if(!s.current)return;let t=null==e?void 0:e.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===t)return void(r.current=t)}else if(o.contains(t))return void(r.current=t);null!=n&&n.current?J(n.current):ne(o,K.First)===W.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),r.current=null==e?void 0:e.activeElement}))}),[a]),r}({ownerDocument:c,container:n,initialFocus:r},Boolean(2&o));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:a},r){let s=rt();ur(null==e?void 0:e.defaultView,"focus",(e=>{if(!r||!s.current)return;let o=new Set(null==n?void 0:n.current);o.add(t);let i=a.current;if(!i)return;let l=e.target;l&&l instanceof HTMLElement?mr(o,l)?(a.current=l,J(l)):(e.preventDefault(),e.stopPropagation(),J(i)):J(a.current)}),!0)}({ownerDocument:c,container:n,containers:s,previousActiveElement:u},Boolean(8&o));let d=function(){let e=(0,i.useRef)(0);return function(e,t,n){let a=I(t);(0,i.useEffect)((()=>{function t(e){a.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),p=q((e=>{let t=n.current;t&&H(d.current,{[lr.Forwards]:()=>{ne(t,K.First,{skipElements:[e.relatedTarget]})},[lr.Backwards]:()=>{ne(t,K.Last,{skipElements:[e.relatedTarget]})}})})),m=D(),f=(0,i.useRef)(!1),y={ref:a,onKeyDown(e){"Tab"==e.key&&(f.current=!0,m.requestAnimationFrame((()=>{f.current=!1})))},onBlur(e){let t=new Set(null==s?void 0:s.current);t.add(n);let a=e.relatedTarget;a instanceof HTMLElement&&"true"!==a.dataset.headlessuiFocusGuard&&(mr(t,a)||(f.current?ne(n.current,H(d.current,{[lr.Forwards]:()=>K.Next,[lr.Backwards]:()=>K.Previous})|K.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&J(e.target)))}};return i.createElement(i.Fragment,null,Boolean(4&o)&&i.createElement(Se,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Oe.Focusable}),be({ourProps:y,theirProps:l,defaultTag:"div",name:"FocusTrap"}),Boolean(4&o)&&i.createElement(Se,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Oe.Focusable}))})),{features:dr});function mr(e,t){var n;for(let a of e)if(null!=(n=a.current)&&n.contains(t))return!0;return!1}let fr=new Set,yr=new Map;function vr(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function br(e){let t=yr.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}const gr=window.ReactDOM;let hr=(0,i.createContext)(!1);function Nr(){return(0,i.useContext)(hr)}function Er(e){return i.createElement(hr.Provider,{value:e.force},e.children)}let xr=i.Fragment,Rr=Ne((function(e,t){let n=e,a=(0,i.useRef)(null),r=ce(le((e=>{a.current=e})),t),s=cr(a),o=function(e){let t=Nr(),n=(0,i.useContext)(Tr),a=cr(e),[r,s]=(0,i.useState)((()=>{if(!t&&null!==n||k.isServer)return null;let e=null==a?void 0:a.getElementById("headlessui-portal-root");if(e)return e;if(null===a)return null;let r=a.createElement("div");return r.setAttribute("id","headlessui-portal-root"),a.body.appendChild(r)}));return(0,i.useEffect)((()=>{null!==r&&(null!=a&&a.body.contains(r)||null==a||a.body.appendChild(r))}),[r,a]),(0,i.useEffect)((()=>{t||null!==n&&s(n.current)}),[n,s,t]),r}(a),[l]=(0,i.useState)((()=>{var e;return k.isServer?null:null!=(e=null==s?void 0:s.createElement("div"))?e:null})),c=A(),u=(0,i.useRef)(!1);return _((()=>{if(u.current=!1,o&&l)return o.contains(l)||(l.setAttribute("data-headlessui-portal",""),o.appendChild(l)),()=>{u.current=!0,F((()=>{var e;!u.current||!o||!l||(l instanceof Node&&o.contains(l)&&o.removeChild(l),o.childNodes.length<=0&&(null==(e=o.parentElement)||e.removeChild(o)))}))}}),[o,l]),c&&o&&l?(0,gr.createPortal)(be({ourProps:{ref:r},theirProps:n,defaultTag:xr,name:"Portal"}),l):null})),wr=i.Fragment,Tr=(0,i.createContext)(null),Cr=Ne((function(e,t){let{target:n,...a}=e,r={ref:ce(t)};return i.createElement(Tr.Provider,{value:n},be({ourProps:r,theirProps:a,defaultTag:wr,name:"Popover.Group"}))})),Or=Object.assign(Rr,{Group:Cr}),Sr=(0,i.createContext)((()=>{}));Sr.displayName="StackContext";var Pr=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Pr||{});function kr({children:e,onUpdate:t,type:n,element:a,enabled:r}){let s=(0,i.useContext)(Sr),o=q(((...e)=>{null==t||t(...e),s(...e)}));return _((()=>{let e=void 0===r||!0===r;return e&&o(0,n,a),()=>{e&&o(1,n,a)}}),[o,n,a,r]),i.createElement(Sr.Provider,{value:o},e)}var _r=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(_r||{}),Ir=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Ir||{});let Lr={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},Fr=(0,i.createContext)(null);function Mr(e){let t=(0,i.useContext)(Fr);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Mr),t}return t}function Dr(e,t){return H(t.type,Lr,e,t)}Fr.displayName="DialogContext";let qr=ye.RenderStrategy|ye.Static,Ar=Ne((function(e,t){let n=j(),{id:a=`headlessui-dialog-${n}`,open:r,onClose:s,initialFocus:o,__demoMode:l=!1,...c}=e,[u,d]=(0,i.useState)(0),p=_e();void 0===r&&null!==p&&(r=H(p,{[ke.Open]:!0,[ke.Closed]:!1}));let m=(0,i.useRef)(new Set),f=(0,i.useRef)(null),y=ce(f,t),v=(0,i.useRef)(null),b=cr(f),g=e.hasOwnProperty("open")||null!==p,h=e.hasOwnProperty("onClose");if(!g&&!h)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!g)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!h)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof r)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${r}`);if("function"!=typeof s)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);let N=r?0:1,[E,x]=(0,i.useReducer)(Dr,{titleId:null,descriptionId:null,panelRef:(0,i.createRef)()}),R=q((()=>s(!1))),w=q((e=>x({type:0,id:e}))),T=!!A()&&!l&&0===N,C=u>1,O=null!==(0,i.useContext)(Fr),S=C?"parent":"leaf";!function(e,t=!0){_((()=>{if(!t||!e.current)return;let n=e.current,a=z(n);if(a){fr.add(n);for(let e of yr.keys())e.contains(n)&&(br(e),yr.delete(e));return a.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement){for(let t of fr)if(e.contains(t))return;1===fr.size&&(yr.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),vr(e))}})),()=>{if(fr.delete(n),fr.size>0)a.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement&&!yr.has(e)){for(let t of fr)if(e.contains(t))return;yr.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),vr(e)}}));else for(let e of yr.keys())br(e),yr.delete(e)}}}),[t])}(f,!!C&&T);let P=q((()=>{var e,t;return[...Array.from(null!=(e=null==b?void 0:b.querySelectorAll("html > *, body > *, [data-headlessui-portal]"))?e:[]).filter((e=>!(e===document.body||e===document.head||!(e instanceof HTMLElement)||e.contains(v.current)||E.panelRef.current&&e.contains(E.panelRef.current)))),null!=(t=E.panelRef.current)?t:f.current]}));re((()=>P()),R,T&&!C),ur(null==b?void 0:b.defaultView,"keydown",(e=>{e.defaultPrevented||e.key===Le.Escape&&0===N&&(C||(e.preventDefault(),e.stopPropagation(),R()))})),function(e,t,n=(()=>[document.body])){(0,i.useEffect)((()=>{var a;if(!t||!e)return;let r=M(),s=window.pageYOffset;function o(e,t,n){let a=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),r.add((()=>{Object.assign(e.style,{[t]:a})}))}let i=e.documentElement,l=(null!=(a=e.defaultView)?a:window).innerWidth-i.clientWidth;if(o(i,"overflow","hidden"),l>0&&o(i,"paddingRight",l-(i.clientWidth-i.offsetWidth)+"px"),/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0){o(e.body,"marginTop",`-${s}px`),window.scrollTo(0,0);let t=null;r.addEventListener(e,"click",(a=>{if(a.target instanceof HTMLElement)try{let r=a.target.closest("a");if(!r)return;let{hash:s}=new URL(r.href),o=e.querySelector(s);o&&!n().some((e=>e.contains(o)))&&(t=o)}catch{}}),!0),r.addEventListener(e,"touchmove",(e=>{e.target instanceof HTMLElement&&!n().some((t=>t.contains(e.target)))&&e.preventDefault()}),{passive:!1}),r.add((()=>{window.scrollTo(0,window.pageYOffset+s),t&&t.isConnected&&(t.scrollIntoView({block:"nearest"}),t=null)}))}return r.dispose}),[e,t])}(b,0===N&&!O,P),(0,i.useEffect)((()=>{if(0!==N||!f.current)return;let e=new IntersectionObserver((e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&R()}));return e.observe(f.current),()=>e.disconnect()}),[N,f,R]);let[k,I]=ba(),L=(0,i.useMemo)((()=>[{dialogState:N,close:R,setTitleId:w},E]),[N,E,R,w]),F=(0,i.useMemo)((()=>({open:0===N})),[N]),D={ref:y,id:a,role:"dialog","aria-modal":0===N||void 0,"aria-labelledby":E.titleId,"aria-describedby":k};return i.createElement(kr,{type:"Dialog",enabled:0===N,element:f,onUpdate:q(((e,t,n)=>{"Dialog"===t&&H(e,{[Pr.Add](){m.current.add(n),d((e=>e+1))},[Pr.Remove](){m.current.add(n),d((e=>e-1))}})}))},i.createElement(Er,{force:!0},i.createElement(Or,null,i.createElement(Fr.Provider,{value:L},i.createElement(Or.Group,{target:f},i.createElement(Er,{force:!1},i.createElement(I,{slot:F,name:"Dialog.Description"},i.createElement(pr,{initialFocus:o,containers:m,features:T?H(S,{parent:pr.features.RestoreFocus,leaf:pr.features.All&~pr.features.FocusLock}):pr.features.None},be({ourProps:D,theirProps:c,slot:F,defaultTag:"div",features:qr,visible:0===N,name:"Dialog"})))))))),i.createElement(Se,{features:Oe.Hidden,ref:v}))})),Br=Ne((function(e,t){let n=j(),{id:a=`headlessui-dialog-overlay-${n}`,...r}=e,[{dialogState:s,close:o}]=Mr("Dialog.Overlay");return be({ourProps:{ref:ce(t),id:a,"aria-hidden":!0,onClick:q((e=>{if(e.target===e.currentTarget){if(Re(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),o()}}))},theirProps:r,slot:(0,i.useMemo)((()=>({open:0===s})),[s]),defaultTag:"div",name:"Dialog.Overlay"})})),jr=Ne((function(e,t){let n=j(),{id:a=`headlessui-dialog-backdrop-${n}`,...r}=e,[{dialogState:s},o]=Mr("Dialog.Backdrop"),l=ce(t);(0,i.useEffect)((()=>{if(null===o.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[o.panelRef]);let c=(0,i.useMemo)((()=>({open:0===s})),[s]);return i.createElement(Er,{force:!0},i.createElement(Or,null,be({ourProps:{ref:l,id:a,"aria-hidden":!0},theirProps:r,slot:c,defaultTag:"div",name:"Dialog.Backdrop"})))})),Hr=Ne((function(e,t){let n=j(),{id:a=`headlessui-dialog-panel-${n}`,...r}=e,[{dialogState:s},o]=Mr("Dialog.Panel"),l=ce(t,o.panelRef),c=(0,i.useMemo)((()=>({open:0===s})),[s]);return be({ourProps:{ref:l,id:a,onClick:q((e=>{e.stopPropagation()}))},theirProps:r,slot:c,defaultTag:"div",name:"Dialog.Panel"})})),zr=Ne((function(e,t){let n=j(),{id:a=`headlessui-dialog-title-${n}`,...r}=e,[{dialogState:s,setTitleId:o}]=Mr("Dialog.Title"),l=ce(t);(0,i.useEffect)((()=>(o(a),()=>o(null))),[a,o]);let c=(0,i.useMemo)((()=>({open:0===s})),[s]);return be({ourProps:{ref:l,id:a},theirProps:r,slot:c,defaultTag:"h2",name:"Dialog.Title"})})),$r=Object.assign(Ar,{Backdrop:jr,Panel:Hr,Overlay:Br,Title:zr,Description:ga});const Vr=(0,i.forwardRef)((({children:e,className:t},n)=>l().createElement("div",{ref:n,className:r()("yst-modal__container-header",t)},e)));Vr.displayName="Modal.Container.Header",Vr.propTypes={children:o().node.isRequired,className:o().string},Vr.defaultProps={className:""};const Ur=(0,i.forwardRef)((({children:e,className:t},n)=>l().createElement("div",{ref:n,className:r()("yst-modal__container-content",t)},e)));Ur.displayName="Modal.Container.Content",Ur.propTypes={children:o().node.isRequired,className:o().string},Ur.defaultProps={className:""};const Kr=(0,i.forwardRef)((({children:e,className:t},n)=>l().createElement("div",{ref:n,className:r()("yst-modal__container-footer",t)},e)));Kr.displayName="Modal.Container.Footer",Kr.propTypes={children:o().node.isRequired,className:o().string},Kr.defaultProps={className:""};const Wr=(0,i.forwardRef)((({children:e,className:t},n)=>l().createElement("div",{ref:n,className:r()("yst-modal__container",t)},e)));Wr.displayName="Modal.Container",Wr.propTypes={children:o().node.isRequired,className:o().string},Wr.defaultProps={className:""},Wr.Header=Vr,Wr.Content=Ur,Wr.Footer=Kr;const Gr=(0,i.createContext)({isOpen:!1,onClose:c.noop}),Qr=()=>(0,i.useContext)(Gr),Yr=(0,i.forwardRef)((({children:t,size:n,className:a,as:s,...o},i)=>l().createElement($r.Title,e({as:s,ref:i,className:r()("yst-title",n?ta.size[n]:"",a)},o),t)));Yr.displayName="Modal.Title",Yr.propTypes={size:o().oneOf(Object.keys(ta.size)),className:o().string,children:o().node.isRequired,as:o().elementType},Yr.defaultProps={size:void 0,className:"",as:"h1"};const Xr=(0,i.forwardRef)((({className:t,onClick:n,screenReaderText:a,children:s,...o},i)=>{const{onClose:c}=Qr(),d=u();return l().createElement("div",{className:"yst-modal__close"},l().createElement("button",e({ref:i,type:"button",onClick:n||c,className:r()("yst-modal__close-button",t)},o),s||l().createElement(l().Fragment,null,l().createElement("span",{className:"yst-sr-only"},a),l().createElement(Et,e({className:"yst-h-6 yst-w-6"},d)))))}));Xr.displayName="Modal.CloseButton",Xr.propTypes={className:o().string,onClick:o().func,screenReaderText:o().string,children:o().node},Xr.defaultProps={className:"",onClick:void 0,screenReaderText:"Close",children:void 0};const Zr=(0,i.forwardRef)((({children:t,className:n="",hasCloseButton:a=!0,closeButtonScreenReaderText:s="Close",...o},i)=>l().createElement($r.Panel,e({ref:i,className:r()("yst-modal__panel",n)},o),a&&l().createElement(Xr,{screenReaderText:s}),t)));Zr.displayName="Modal.Panel",Zr.propTypes={children:o().node.isRequired,className:o().string,hasCloseButton:o().bool,closeButtonScreenReaderText:o().string},Zr.defaultProps={className:"",hasCloseButton:!0,closeButtonScreenReaderText:"Close"};const Jr={position:{center:"yst-modal--center","top-center":"yst-modal--top-center"}},es=(0,i.forwardRef)((({isOpen:t,onClose:n,children:a,className:s="",position:o="center",initialFocus:c=null,...u},d)=>l().createElement(Gr.Provider,{value:{isOpen:t,onClose:n,initialFocus:c}},l().createElement(Nt.Root,{show:t,as:i.Fragment},l().createElement($r,e({as:"div",ref:d,className:"yst-root",open:t,onClose:n,initialFocus:c},u),l().createElement("div",{className:r()("yst-modal",Jr.position[o],s)},l().createElement(Nt.Child,{as:i.Fragment,enter:"yst-ease-out yst-duration-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",leave:"yst-ease-in yst-duration-200",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0"},l().createElement("div",{className:"yst-modal__overlay"})),l().createElement("div",{className:"yst-modal__layout"},l().createElement(Nt.Child,{as:i.Fragment,enter:"yst-ease-out yst-duration-300",enterFrom:"yst-opacity-0 yst-translate-y-4 sm:yst-translate-y-0 sm:yst-scale-95",enterTo:"yst-opacity-100 yst-translate-y-0 sm:yst-scale-100",leave:"yst-ease-in yst-duration-200",leaveFrom:"yst-opacity-100 yst-translate-y-0 sm:yst-scale-100",leaveTo:"yst-opacity-0 yst-translate-y-4 sm:yst-translate-y-0 sm:yst-scale-95"},a))))))));es.displayName="Modal",es.propTypes={isOpen:o().bool.isRequired,onClose:o().func.isRequired,children:o().node.isRequired,className:o().string,position:o().oneOf(Object.keys(Jr.position)),initialFocus:o().oneOfType([o().func,o().object])},es.defaultProps={className:"",position:"center",initialFocus:null},es.Panel=Zr,es.Title=Yr,es.CloseButton=Xr,es.Description=$r.Description,es.Description.displayName="Modal.Description",es.Container=Wr;const ts=es,ns=(0,i.createContext)({position:"bottom-left"}),as=()=>(0,i.useContext)(ns),rs={variant:{info:"yst-notification--info",warning:"yst-notification--warning",success:"yst-notification--success",error:"yst-notification--error"},size:{default:"",large:"yst-notification--large"}},ss=({children:e=null,id:t,variant:n="info",size:a="default",title:s="",description:o="",onDismiss:u=c.noop,autoDismiss:d=null,dismissScreenReaderLabel:p})=>{const{position:m}=as(),[f,y]=(0,i.useState)(!1);return l().createElement(da,{id:t,className:r()("yst-notification",rs.variant[n],rs.size[a]),position:m,size:a,onDismiss:u,autoDismiss:d,dismissScreenReaderLabel:p,isVisible:f,setIsVisible:y},l().createElement("div",{className:"yst-flex yst-items-start yst-gap-3"},l().createElement("div",{className:"yst-flex-shrink-0"},l().createElement(h,{variant:n,className:"yst-notification__icon"})),l().createElement("div",{className:"yst-w-0 yst-flex-1"},s&&l().createElement(da.Title,{title:s}),e||o&&l().createElement(da.Description,{description:o})),u&&l().createElement(da.Close,{dismissScreenReaderLabel:p})))};ss.propTypes={children:o().node,id:o().string.isRequired,variant:o().oneOf((0,c.keys)(rs.variant)),size:o().oneOf((0,c.keys)(rs.size)),title:o().string,description:o().oneOfType([o().node,o().arrayOf(o().node)]),onDismiss:o().func,autoDismiss:o().number,dismissScreenReaderLabel:o().string.isRequired};const os={position:{"bottom-center":"yst-notifications--bottom-center","bottom-left":"yst-notifications--bottom-left","top-center":"yst-notifications--top-center"}},is=({children:t=null,className:n="",position:a="bottom-left",...s})=>l().createElement(ns.Provider,{value:{position:a}},l().createElement("aside",e({className:r()("yst-notifications",os.position[a],n)},s),t));is.propTypes={children:o().node,className:o().string,position:o().oneOf((0,c.keys)(os.position))},(is.Notification=ss).displayName="Notifications.Notification";const ls=is,cs=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"}))})),us=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))})),ds=({className:t="",children:n,active:a=!1,disabled:s=!1,...o})=>l().createElement("button",e({type:"button",className:r()("yst-pagination__button",t,a&&!s&&"yst-pagination__button--active",s&&"yst-pagination__button--disabled"),disabled:s},o),n);ds.displayName="Pagination.Button",ds.propTypes={className:o().string,children:o().node.isRequired,active:o().bool,disabled:o().bool};const ps=ds,ms=()=>l().createElement("span",{className:"yst-pagination-display__truncated"},"..."),fs=({current:e,total:t,onNavigate:n,maxPageButtons:a,disabled:r})=>{const s=(0,i.useMemo)((()=>(0,c.clamp)(t,1,a)),[t,a]),o=(0,i.useMemo)((()=>(0,c.round)(s/2,0)),[s]),u=(0,i.useMemo)((()=>t>a&&a>1&&e!==o+1),[t,a,o]),d=(0,i.useMemo)((()=>t-(s-o)+1),[t,s,o]),p=(0,i.useMemo)((()=>e>o&&e<d),[e,o,d]);return l().createElement(l().Fragment,null,(0,c.range)(o).map((t=>{const a=t+1;return l().createElement(ps,{key:a,className:"yst-px-4",onClick:n,"data-page":a,active:a===e,disabled:r},a)})),u&&l().createElement(ms,null),p&&l().createElement(l().Fragment,null,l().createElement(ps,{className:"yst-px-4",onClick:n,"data-page":e,active:!0,disabled:r},e),e!==d-1&&l().createElement(ms,null)),(0,c.rangeRight)(s-o).map((a=>{const s=t-a;return l().createElement(ps,{key:s,className:"yst-px-4",onClick:n,"data-page":s,active:s===e,disabled:r},s)})))};fs.displayName="Pagination.DisplayButtons",fs.propTypes={current:o().number.isRequired,total:o().number.isRequired,onNavigate:o().func.isRequired,maxPageButtons:o().number.isRequired,disabled:o().bool.isRequired};const ys=fs,vs=({current:e,total:t})=>l().createElement("bdo",{dir:"ltr",className:"yst-pagination-display__text"},l().createElement("span",{className:"yst-pagination-display__current-text"},e)," / ",t);vs.displayName="Pagination.DisplayText",vs.propTypes={current:o().number.isRequired,total:o().number.isRequired};const bs=vs,gs={buttons:"buttons",text:"text"},hs=({className:t="",current:n,total:a,onNavigate:s,variant:o=gs.buttons,maxPageButtons:d=6,disabled:p=!1,screenReaderTextPrevious:m,screenReaderTextNext:f,...y})=>{const v=u(),b=(0,i.useCallback)((({target:e})=>s((0,c.parseInt)(e.dataset.page))),[s]);return l().createElement("nav",e({className:r()("yst-pagination",t)},y),l().createElement(ps,{className:"yst-rounded-s-md",onClick:b,"data-page":n-1,disabled:p||n-1<1},l().createElement("span",{className:"yst-pointer-events-none yst-sr-only"},m),l().createElement(cs,e({className:"yst-pointer-events-none yst-h-5 yst-w-5"},v))),o===gs.text&&l().createElement(bs,{current:n,total:a}),o===gs.buttons&&l().createElement(ys,{current:n,total:a,maxPageButtons:d,onNavigate:b,disabled:p}),l().createElement(ps,{className:"yst-rounded-e-md",onClick:b,"data-page":n+1,disabled:p||n+1>a},l().createElement("span",{className:"yst-pointer-events-none yst-sr-only"},f),l().createElement(us,e({className:"yst-pointer-events-none yst-h-5 yst-w-5"},v))))};hs.propTypes={className:o().string,current:o().number.isRequired,total:o().number.isRequired,onNavigate:o().func.isRequired,variant:o().oneOf(Object.keys(gs)),maxPageButtons:o().number,disabled:o().bool,screenReaderTextPrevious:o().string.isRequired,screenReaderTextNext:o().string.isRequired};const Ns=hs,Es=(0,i.createContext)({handleDismiss:c.noop}),xs={"no-arrow":"yst-popover--no-arrow",top:"yst-popover--top","top-left":"yst-popover--top-left","top-right":"yst-popover--top-right",right:"yst-popover--right",bottom:"yst-popover--bottom",left:"yst-popover--left","bottom-left":"yst-popover--bottom-left","bottom-right":"yst-popover--bottom-right"},Rs=()=>(0,i.useContext)(Es),ws=(0,i.forwardRef)((({screenReaderLabel:t="Close",onClick:n=null,className:a="",children:s=null,...o},i)=>{const{handleDismiss:c}=Rs(),d=u();return l().createElement("div",{className:"yst-popover__close"},l().createElement("button",e({type:"button",ref:i,onClick:n||c,className:r()("yst-popover__close-button",a)},o),s||l().createElement(l().Fragment,null,l().createElement("span",{className:"yst-sr-only"},t),l().createElement(Et,e({className:"yst-h-5 yst-w-5"},d)))))}));ws.displayName="Popover.CloseButton",ws.propTypes={screenReaderLabel:o().string,onClick:o().func,children:o().node,className:o().string};const Ts=({className:t="",children:n=null,...a})=>l().createElement(aa,e({className:r()("yst-popover__title",t),size:"5"},a),n);Ts.displayName="Popover.Title",Ts.propTypes={children:o().node,className:o().string};const Cs=({children:t=null,as:n="p",className:a="",...s})=>l().createElement(n,e({className:r()("yst-popover__content",a)},s),t);Cs.displayName="Popover.Content",Cs.propTypes={className:o().string,as:o().elementType,children:o().oneOfType([o().node,o().arrayOf(o().node)])};const Os=({className:t="",isVisible:n,...a})=>l().createElement(Nt,e({as:"div",show:n,appear:!0,unmount:!0,enter:r()("yst-popover__backdrop yst-transition yst-duration-150 yst-ease-in",t),enterFrom:"yst-bg-opacity-0",enterTo:"yst-bg-opacity-75",entered:r()("yst-popover__backdrop",t),leave:r()("yst-popover__backdrop yst-transition yst-duration-150 yst-ease-in",t),leaveFrom:"yst-bg-opacity-75",leaveTo:"yst-bg-opacity-0"},a));Os.displayName="Popover.Backdrop",Os.propTypes={className:o().string,isVisible:o().bool.isRequired};const Ss=(0,i.forwardRef)((({children:t,role:n="dialog",as:a="div",className:s="",isVisible:o=!1,setIsVisible:u=c.noop,position:d="no-arrow",hasBackdrop:p=!1,...m},f)=>{const y=(0,i.useCallback)((()=>{u(!1)}),[u]);return l().createElement(Es.Provider,{value:{handleDismiss:y}},p&&l().createElement(Os,{isVisible:o}),l().createElement(Nt,{as:i.Fragment,show:o,appear:!0,enter:"yst-transition yst-ease-in-out yst-duration-50",enterFrom:"yst-bg-opacity-0",enterTo:"yst-bg-opacity-100",leave:"yst-transition yst-ease-in-out yst-duration-50",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",unmount:!0},l().createElement(a,e({ref:f,role:n,"aria-modal":"true",className:r()("yst-popover",xs[d],s)},m),t)))}));Ss.displayName="Popover",Ss.propTypes={as:o().elementType,children:o().node.isRequired,role:o().string,className:o().string,isVisible:o().bool,setIsVisible:o().func,position:o().oneOf(Object.keys(xs)),hasBackdrop:o().bool},Ss.Title=Ts,Ss.CloseButton=ws,Ss.Content=Cs,Ss.Backdrop=Os;const Ps=Ss,ks={variant:{default:"","inline-block":"yst-radio-group--inline-block"}},_s=({children:t=null,id:n="",name:a="",value:s="",label:o="",description:u="",options:d=[],onChange:p=c.noop,variant:m="default",disabled:f=!1,className:y="",...v})=>{const b=(0,i.useCallback)((({target:e})=>e.checked&&p(e.value)),[p]);return l().createElement("fieldset",{id:`radio-group-${n}`,className:r()("yst-radio-group",f&&"yst-radio-group--disabled",ks.variant[m],y)},o&&l().createElement(Ut,{as:"legend",className:"yst-radio-group__label",label:o}),u&&l().createElement("div",{className:"yst-radio-group__description"},u),l().createElement("div",{className:"yst-radio-group__options"},t||d.map(((t,r)=>{const o=`radio-${n}-${r}`;return l().createElement(dn,e({key:o,id:o,name:a,value:t.value,label:t.label,screenReaderLabel:t.screenReaderLabel,variant:m,checked:s===t.value,onChange:b,disabled:f},v))}))))};_s.propTypes={children:o().node,id:o().string,name:o().string,value:o().string,label:o().string,description:o().string,options:o().arrayOf(o().shape({value:o().string.isRequired,label:o().string.isRequired,screenReaderLabel:o().string})),onChange:o().func,variant:o().oneOf(Object.keys(ks.variant)),disabled:o().bool,className:o().string},(_s.Radio=dn).displayName="RadioGroup.Radio";const Is=_s,Ls={isRtl:!1},Fs=(0,i.createContext)(Ls),Ms=({children:t,context:n={},...a})=>l().createElement(Fs.Provider,{value:{...Ls,...n}},l().createElement("div",e({className:"yst-root"},a),t));Ms.propTypes={children:o().node.isRequired,context:o().shape({isRtl:o().bool})};const Ds=Ms,qs=(0,i.forwardRef)((({id:t,label:n,description:a,disabled:s,validation:o,className:i,...c},u)=>{const{ids:d,describedBy:p}=Pa(t,{validation:null==o?void 0:o.message,description:a});return l().createElement("div",{className:r()("yst-select-field",s&&"yst-select-field--disabled",i)},l().createElement(Mn,e({ref:u,id:t,label:n,labelProps:{as:"label",className:"yst-label yst-select-field__label"},disabled:s,validation:o,className:"yst-select-field__select",buttonProps:{"aria-describedby":p}},c)),(null==o?void 0:o.message)&&l().createElement(x,{variant:null==o?void 0:o.variant,id:d.validation,className:"yst-select-field__validation"},o.message),a&&l().createElement("div",{id:d.description,className:"yst-select-field__description"},a))}));qs.displayName="SelectField",qs.propTypes={id:o().string.isRequired,label:o().string.isRequired,description:o().node,disabled:o().bool,validation:o().shape({variant:o().string,message:o().node}),className:o().string},qs.defaultProps={description:null,disabled:!1,validation:{},className:""},qs.Option=Mn.Option,qs.Option.displayName="SelectField.Option";const As=qs,Bs=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"}))})),js=({as:t="span",children:n=null,className:a="",...s})=>l().createElement(t,e({className:r()("yst-sidebar-navigation__icon",a)},s),n);js.displayName="SidebarNavigation.Icon",js.propTypes={as:o().elementType,children:o().node,className:o().string};const Hs=({as:t="div",label:n,icon:a=null,children:s=null,defaultOpen:o=!0,id:c,...u})=>{const{history:d,addToHistory:p,removeFromHistory:m}=to(),[f,y,,v]=Ua(o),b=(0,i.useCallback)((()=>{y(),f?m(c):p(c)}),[y,c,f,p,m]);return(0,i.useEffect)((()=>{d.includes(c)&&v()}),[d,c,v]),l().createElement(t,{className:"yst-sidebar-navigation__collapsible"},l().createElement("button",e({type:"button",className:"yst-sidebar-navigation__collapsible-button yst-group",onClick:b,"aria-expanded":f},u),a&&l().createElement(js,{as:a,className:"yst-h-6 yst-w-6"}),n,l().createElement(js,{as:Bs,className:r()("yst-ms-auto yst-h-4 yst-w-4 yst-stroke-3",f&&"yst-rotate-180")})),f&&s)};Hs.displayName="SidebarNavigation.Collapsible",Hs.propTypes={as:o().elementType,icon:o().elementType,label:o().string.isRequired,defaultOpen:o().bool,children:o().node,id:o().string.isRequired};const zs=({as:t="li",children:n=null,className:a="",...s})=>l().createElement(t,e({className:r()("yst-sidebar-navigation__item",a)},s),n);zs.displayName="SidebarNavigation.Item",zs.propTypes={as:o().elementType,children:o().node,className:o().string};const $s=({as:t="a",pathProp:n="href",children:a=null,className:s="",onClick:o=null,...c})=>{const{activePath:u,setMobileMenuOpen:d}=to(),p=(0,i.useCallback)((()=>{d(!1),null==o||o()}),[d]);return l().createElement(t,e({className:r()("yst-sidebar-navigation__link yst-group",u===(null==c?void 0:c[n])&&"yst-sidebar-navigation__item--active",s),"aria-current":u===(null==c?void 0:c[n])?"page":null},c,{onClick:p}),a)};$s.displayName="SidebarNavigation.Link",$s.propTypes={as:o().elementType,pathProp:o().string,children:o().node,className:o().string,onClick:o().func};const Vs=({as:t="ul",children:n=null,isIndented:a=!1,className:s="",...o})=>l().createElement(t,e({role:"list",className:r()("yst-sidebar-navigation__list",a&&"yst-sidebar-navigation__list--indented",s)},o),n);Vs.displayName="SidebarNavigation.List",Vs.propTypes={as:o().elementType,children:o().node,isIndented:o().bool,className:o().string};const Us=({label:t,icon:n=null,children:a=null,defaultOpen:r=!0,id:s,...o})=>l().createElement(Hs,e({label:t,icon:n,defaultOpen:r,id:s},o),l().createElement(Vs,{isIndented:!0},a));Us.propTypes={label:o().string.isRequired,icon:o().elementType,defaultOpen:o().bool,children:o().node,id:o().string.isRequired};const Ks=Us,Ws=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h7"}))})),Gs=({children:e,openButtonId:t=null,closeButtonId:n=null,openButtonScreenReaderText:a="Open",closeButtonScreenReaderText:r="Close","aria-label":s=""})=>{const{isMobileMenuOpen:o,setMobileMenuOpen:c}=to(),u=(0,i.useCallback)((()=>c(!0)),[c]),d=(0,i.useCallback)((()=>c(!1)),[c]);return l().createElement(l().Fragment,null,l().createElement($r,{className:"yst-root",open:o,onClose:d,"aria-label":s},l().createElement("div",{className:"yst-mobile-navigation__dialog"},l().createElement("div",{className:"yst-fixed yst-inset-0 yst-bg-slate-600 yst-bg-opacity-75 yst-z-30","aria-hidden":"true"}),l().createElement($r.Panel,{className:"yst-relative yst-flex yst-flex-1 yst-flex-col yst-max-w-xs yst-w-full yst-z-40 yst-bg-slate-100"},l().createElement("div",{className:"yst-absolute yst-top-0 yst-end-0 yst--me-14 yst-p-1"},l().createElement("button",{type:"button",id:n,className:"yst-flex yst-h-12 yst-w-12 yst-items-center yst-justify-center yst-rounded-full focus:yst-outline-none yst-bg-slate-600 focus:yst-ring-2 focus:yst-ring-inset focus:yst-ring-primary-500",onClick:d},l().createElement("span",{className:"yst-sr-only"},r),l().createElement(Et,{className:"yst-h-6 yst-w-6 yst-text-white"}))),l().createElement("div",{className:"yst-flex-1 yst-h-0 yst-overflow-y-auto"},l().createElement("nav",{className:"yst-h-full yst-flex yst-flex-col yst-py-6 yst-px-2"},e))))),l().createElement("div",{className:"yst-mobile-navigation__top"},l().createElement("div",{className:"yst-flex yst-relative yst-flex-shrink-0 yst-h-16 yst-z-10 yst-bg-white yst-border-b yst-border-slate-200"},l().createElement("button",{type:"button",id:t,className:"yst-px-4 yst-border-r yst-border-slate-200 yst-text-slate-500 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-inset focus:yst-ring-primary-500",onClick:u},l().createElement("span",{className:"yst-sr-only"},a),l().createElement(Ws,{className:"yst-w-6 yst-h-6"})))))};Gs.propTypes={children:o().node.isRequired,openButtonId:o().string,closeButtonId:o().string,openButtonScreenReaderText:o().string,closeButtonScreenReaderText:o().string,"aria-label":o().string};const Qs=Gs,Ys=({children:e,className:t=""})=>l().createElement("nav",{className:r()("yst-sidebar-navigation__sidebar",t)},e);Ys.propTypes={children:o().node.isRequired,className:o().string};const Xs=Ys,Zs=({as:t="a",pathProp:n="href",label:a,...r})=>l().createElement(zs,null,l().createElement($s,e({as:t,pathProp:n},r),a));Zs.propTypes={as:o().elementType,pathProp:o().string,label:o().node.isRequired,isActive:o().bool};const Js=Zs,eo=(0,i.createContext)({activePath:"",isMobileMenuOpen:!1,setMobileMenuOpen:c.noop,history:[],setHistory:c.noop,removeFromHistory:c.noop,addToHistory:c.noop}),to=()=>(0,i.useContext)(eo),no=({activePath:e="",children:t})=>{const[n,a]=(0,i.useState)(!1),[r,s]=(0,i.useState)([]),o=(0,i.useCallback)((e=>{s((0,c.uniq)([...r,e]))}),[r]),u=(0,i.useCallback)((e=>{s(r.filter((t=>t!==e)))}),[r]);return l().createElement(eo.Provider,{value:{activePath:e,isMobileMenuOpen:n,setMobileMenuOpen:a,history:r,setHistory:s,removeFromHistory:u,addToHistory:o}},t)};no.propTypes={activePath:o().string,children:o().node.isRequired},(no.Sidebar=Xs).displayName="SidebarNavigation.Sidebar",(no.Mobile=Qs).displayName="SidebarNavigation.Mobile",(no.MenuItem=Ks).displayName="SidebarNavigation.MenuItem",(no.SubmenuItem=Js).displayName="SidebarNavigation.SubmenuItem",no.List=Vs,no.Item=zs,no.Collapsible=Hs,no.Link=$s,no.Icon=js;const ao=no,ro=(0,i.forwardRef)((({id:t,label:n,labelSuffix:a,disabled:s,className:o,description:i,validation:c,...u},d)=>{const{ids:p,describedBy:m}=Pa(t,{validation:null==c?void 0:c.message,description:i});return l().createElement("div",{className:r()("yst-tag-field",s&&"yst-tag-field--disabled",o)},l().createElement("div",{className:"yst-flex yst-items-center yst-mb-2"},l().createElement(Ut,{className:"yst-tag-field__label",htmlFor:t,label:n}),a),l().createElement(It,e({as:Yn,ref:d,id:t,disabled:s,className:"yst-tag-field__input","aria-describedby":m,validation:c},u)),(null==c?void 0:c.message)&&l().createElement(x,{variant:null==c?void 0:c.variant,id:p.validation,className:"yst-tag-field__validation"},c.message),i&&l().createElement("p",{id:p.description,className:"yst-tag-field__description"},i))}));ro.displayName="TagField",ro.propTypes={id:o().string.isRequired,label:o().string.isRequired,labelSuffix:o().node,disabled:o().bool,className:o().string,description:o().node,validation:o().shape({variant:o().string,message:o().node})},ro.defaultProps={labelSuffix:null,disabled:!1,className:"",description:null,validation:{}};const so=ro,oo=(0,i.forwardRef)((({id:t,onChange:n,label:a,labelSuffix:s,disabled:o,readOnly:i,className:c,description:u,validation:d,...p},m)=>{const{ids:f,describedBy:y}=Pa(t,{validation:null==d?void 0:d.message,description:u});return l().createElement("div",{className:r()("yst-text-field",o&&"yst-text-field--disabled",i&&"yst-text-field--read-only",c)},l().createElement("div",{className:"yst-flex yst-items-center yst-mb-2"},l().createElement(Ut,{className:"yst-text-field__label",htmlFor:t},a),s),l().createElement(It,e({as:Zn,ref:m,id:t,onChange:n,disabled:o,readOnly:i,className:"yst-text-field__input","aria-describedby":y,validation:d},p)),(null==d?void 0:d.message)&&l().createElement(x,{variant:null==d?void 0:d.variant,id:f.validation,className:"yst-text-field__validation"},d.message),u&&l().createElement("p",{id:f.description,className:"yst-text-field__description"},u))}));oo.displayName="TextField",oo.propTypes={id:o().string.isRequired,onChange:o().func.isRequired,label:o().string.isRequired,labelSuffix:o().node,disabled:o().bool,readOnly:o().bool,className:o().string,description:o().node,validation:o().shape({variant:o().string,message:o().node})},oo.defaultProps={labelSuffix:null,disabled:!1,readOnly:!1,className:"",description:null,validation:{}};const io=oo,lo=(0,i.forwardRef)((({id:t,label:n,className:a="",description:s="",validation:o={},disabled:i,readOnly:c,...u},d)=>{const{ids:p,describedBy:m}=Pa(t,{validation:null==o?void 0:o.message,description:s});return l().createElement("div",{className:r()("yst-textarea-field",i&&"yst-textarea-field--disabled",c&&"yst-textarea-field--read-only",a)},l().createElement("div",{className:"yst-flex yst-items-center yst-mb-2"},l().createElement(Ut,{className:"yst-textarea-field__label",htmlFor:t},n)),l().createElement(It,e({as:ea,ref:d,id:t,className:"yst-textarea-field__input","aria-describedby":m,validation:o,disabled:i,readOnly:c},u)),(null==o?void 0:o.message)&&l().createElement(x,{variant:null==o?void 0:o.variant,id:p.validation,className:"yst-textarea-field__validation"},o.message),s&&l().createElement("p",{id:p.description,className:"yst-textarea-field__description"},s))}));lo.displayName="TextareaField",lo.propTypes={id:o().string.isRequired,label:o().string.isRequired,className:o().string,description:o().node,disabled:o().bool,readOnly:o().bool,validation:o().shape({variant:o().string,message:o().node})},lo.defaultProps={className:"",description:null,disabled:!1,readOnly:!1,validation:{}};const co=lo,uo=(0,i.forwardRef)((({id:t,children:n,label:a,labelSuffix:s,description:o,checked:i,disabled:c,onChange:u,className:d,"aria-label":p,...m},f)=>l().createElement(xa.Group,{as:"div",className:r()("yst-toggle-field",c&&"yst-toggle-field--disabled",d)},l().createElement("div",{className:"yst-toggle-field__header"},a&&l().createElement("div",{className:"yst-toggle-field__label-wrapper"},l().createElement(Ut,{as:xa.Label,className:"yst-toggle-field__label",label:a,"aria-label":p}),s),l().createElement(wa,e({id:t,ref:f,checked:i,onChange:u,screenReaderLabel:a,disabled:c},m))),(o||n)&&l().createElement(xa.Description,{as:"div",className:"yst-toggle-field__description"},o||n))));uo.displayName="ToggleField",uo.propTypes={id:o().string.isRequired,children:o().node,label:o().string.isRequired,labelSuffix:o().node,description:o().node,checked:o().bool.isRequired,disabled:o().bool,onChange:o().func.isRequired,className:o().string,"aria-label":o().string},uo.defaultProps={children:null,labelSuffix:null,description:null,disabled:!1,className:"","aria-label":null};const po=uo,mo=(0,i.createContext)({isVisible:!1,show:c.noop,hide:c.noop,tooltipPosition:{},setTooltipPosition:c.noop}),fo=()=>(0,i.useContext)(mo),yo=({as:e="span",className:t="",children:n=null})=>{const[a,,,s,o]=Ua(!1),[c,u]=(0,i.useState)({}),d=(0,i.useCallback)((e=>{"Escape"===e.key&&a&&(o(),e.stopPropagation())}),[a,o]),p=(0,i.useMemo)((()=>({isVisible:a,show:s,hide:o,tooltipPosition:c,setTooltipPosition:u})),[a,s,o,c]);return l().createElement(mo.Provider,{value:p},l().createElement(e,{className:r()("yst-tooltip-container",t),onKeyDown:d},n))};yo.propTypes={as:o().elementType,children:o().node,className:o().string};const vo=({as:t="button",className:n="",children:a=null,ariaDescribedby:s=null,...o})=>{const{show:u,hide:d,tooltipPosition:p,isVisible:m}=fo(),f=(0,i.useRef)();return(0,i.useEffect)((()=>{const e=(0,c.debounce)((e=>{const t=f.current.getBoundingClientRect(),n=t.top-10,a=t.right+10,r=t.bottom+10,s=t.left-10,o=e.clientX,i=e.clientY,l=o<p.left||o>p.right||i<p.top||i>p.bottom;(o<s||o>a||i<n||i>r)&&document.activeElement!==f.current&&l?d():u()}),100);return document.addEventListener("pointermove",e),()=>{document.removeEventListener("pointermove",e),e.cancel()}}),[u,d,f.current,p,m]),l().createElement(t,e({ref:f,className:r()("yst-tooltip-trigger",n),"aria-describedby":s,"aria-disabled":!0},o),a)};vo.propTypes={as:o().elementType,children:o().node,className:o().string,ariaDescribedby:o().string};const bo=({className:t="",children:n=null,...a})=>{const{isVisible:s,setTooltipPosition:o}=fo(),c=(0,i.useRef)();return(0,i.useEffect)((()=>{const e=c.current.getBoundingClientRect();o({top:e.top,right:e.right,bottom:e.bottom,left:e.left})}),[c.current,o,s]),l().createElement(Sa,e({ref:c,className:r()(t,{"yst-hidden":!s})},a),n)};bo.propTypes={className:o().string,children:o().node};const go=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"}))}));var ho=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ho||{}),No=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(No||{}),Eo=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(Eo||{});function xo(e,t=(e=>e)){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,a=te(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),r=n?a.indexOf(n):null;return-1===r&&(r=null),{items:a,activeItemIndex:r}}let Ro={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,menuState:0},2:(e,t)=>{var n;let a=xo(e),r=pe(t,{resolveItems:()=>a.items,resolveActiveIndex:()=>a.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...a,searchQuery:"",activeItemIndex:r,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,a=e.searchQuery+t.value.toLowerCase(),r=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(a))&&!e.dataRef.current.disabled})),s=r?e.items.indexOf(r):-1;return-1===s||s===e.activeItemIndex?{...e,searchQuery:a}:{...e,searchQuery:a,activeItemIndex:s,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=xo(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...n}},6:(e,t)=>{let n=xo(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}}},wo=(0,i.createContext)(null);function To(e){let t=(0,i.useContext)(wo);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,To),t}return t}function Co(e,t){return H(t.type,Ro,e,t)}wo.displayName="MenuContext";let Oo=i.Fragment,So=Ne((function(e,t){let n=(0,i.useReducer)(Co,{menuState:1,buttonRef:(0,i.createRef)(),itemsRef:(0,i.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:a,itemsRef:r,buttonRef:s},o]=n,l=ce(t);re([s,r],((e,t)=>{var n;o({type:1}),X(t,Y.Loose)||(e.preventDefault(),null==(n=s.current)||n.focus())}),0===a);let c=q((()=>{o({type:1})})),u=(0,i.useMemo)((()=>({open:0===a,close:c})),[a,c]),d=e,p={ref:l};return i.createElement(wo.Provider,{value:n},i.createElement(Ie,{value:H(a,{0:ke.Open,1:ke.Closed})},be({ourProps:p,theirProps:d,slot:u,defaultTag:Oo,name:"Menu"})))})),Po=Ne((function(e,t){var n;let a=j(),{id:r=`headlessui-menu-button-${a}`,...s}=e,[o,l]=To("Menu.Button"),c=ce(o.buttonRef,t),u=D(),d=q((e=>{switch(e.key){case Le.Space:case Le.Enter:case Le.ArrowDown:e.preventDefault(),e.stopPropagation(),l({type:0}),u.nextFrame((()=>l({type:2,focus:de.First})));break;case Le.ArrowUp:e.preventDefault(),e.stopPropagation(),l({type:0}),u.nextFrame((()=>l({type:2,focus:de.Last})))}})),p=q((e=>{e.key===Le.Space&&e.preventDefault()})),m=q((t=>{if(Re(t.currentTarget))return t.preventDefault();e.disabled||(0===o.menuState?(l({type:1}),u.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(t.preventDefault(),l({type:0})))})),f=(0,i.useMemo)((()=>({open:0===o.menuState})),[o]);return be({ourProps:{ref:c,id:r,type:oe(e,o.buttonRef),"aria-haspopup":"menu","aria-controls":null==(n=o.itemsRef.current)?void 0:n.id,"aria-expanded":e.disabled?void 0:0===o.menuState,onKeyDown:d,onKeyUp:p,onClick:m},theirProps:s,slot:f,defaultTag:"button",name:"Menu.Button"})})),ko=ye.RenderStrategy|ye.Static,_o=Ne((function(e,t){var n,a;let r=j(),{id:s=`headlessui-menu-items-${r}`,...o}=e,[l,c]=To("Menu.Items"),u=ce(l.itemsRef,t),d=cr(l.itemsRef),p=D(),m=_e(),f=null!==m?m===ke.Open:0===l.menuState;(0,i.useEffect)((()=>{let e=l.itemsRef.current;!e||0===l.menuState&&e!==(null==d?void 0:d.activeElement)&&e.focus({preventScroll:!0})}),[l.menuState,l.itemsRef,d]),ue({container:l.itemsRef.current,enabled:0===l.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let y=q((e=>{var t,n;switch(p.dispose(),e.key){case Le.Space:if(""!==l.searchQuery)return e.preventDefault(),e.stopPropagation(),c({type:3,value:e.key});case Le.Enter:if(e.preventDefault(),e.stopPropagation(),c({type:1}),null!==l.activeItemIndex){let{dataRef:e}=l.items[l.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}Z(l.buttonRef.current);break;case Le.ArrowDown:return e.preventDefault(),e.stopPropagation(),c({type:2,focus:de.Next});case Le.ArrowUp:return e.preventDefault(),e.stopPropagation(),c({type:2,focus:de.Previous});case Le.Home:case Le.PageUp:return e.preventDefault(),e.stopPropagation(),c({type:2,focus:de.First});case Le.End:case Le.PageDown:return e.preventDefault(),e.stopPropagation(),c({type:2,focus:de.Last});case Le.Escape:e.preventDefault(),e.stopPropagation(),c({type:1}),M().nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case Le.Tab:e.preventDefault(),e.stopPropagation(),c({type:1}),M().nextFrame((()=>{!function(e,t){ne(Q(),t,{relativeTo:e})}(l.buttonRef.current,e.shiftKey?K.Previous:K.Next)}));break;default:1===e.key.length&&(c({type:3,value:e.key}),p.setTimeout((()=>c({type:4})),350))}})),v=q((e=>{e.key===Le.Space&&e.preventDefault()})),b=(0,i.useMemo)((()=>({open:0===l.menuState})),[l]);return be({ourProps:{"aria-activedescendant":null===l.activeItemIndex||null==(n=l.items[l.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(a=l.buttonRef.current)?void 0:a.id,id:s,onKeyDown:y,onKeyUp:v,role:"menu",tabIndex:0,ref:u},theirProps:o,slot:b,defaultTag:"div",features:ko,visible:f,name:"Menu.Items"})})),Io=i.Fragment,Lo=Ne((function(e,t){let n=j(),{id:a=`headlessui-menu-item-${n}`,disabled:r=!1,...s}=e,[o,l]=To("Menu.Item"),c=null!==o.activeItemIndex&&o.items[o.activeItemIndex].id===a,u=(0,i.useRef)(null),d=ce(t,u);_((()=>{if(0!==o.menuState||!c||0===o.activationTrigger)return;let e=M();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=u.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[u,c,o.menuState,o.activationTrigger,o.activeItemIndex]);let p=(0,i.useRef)({disabled:r,domRef:u});_((()=>{p.current.disabled=r}),[p,r]),_((()=>{var e,t;p.current.textValue=null==(t=null==(e=u.current)?void 0:e.textContent)?void 0:t.toLowerCase()}),[p,u]),_((()=>(l({type:5,id:a,dataRef:p}),()=>l({type:6,id:a}))),[p,a]);let m=q((()=>{l({type:1})})),f=q((e=>{if(r)return e.preventDefault();l({type:1}),Z(o.buttonRef.current)})),y=q((()=>{if(r)return l({type:2,focus:de.Nothing});l({type:2,focus:de.Specific,id:a})})),v=qe(),b=q((e=>v.update(e))),g=q((e=>{!v.wasMoved(e)||r||c||l({type:2,focus:de.Specific,id:a,trigger:0})})),h=q((e=>{!v.wasMoved(e)||r||!c||l({type:2,focus:de.Nothing})})),N=(0,i.useMemo)((()=>({active:c,disabled:r,close:m})),[c,r,m]);return be({ourProps:{id:a,ref:d,role:"menuitem",tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,disabled:void 0,onClick:f,onFocus:y,onPointerEnter:b,onMouseEnter:b,onPointerMove:g,onMouseMove:g,onPointerLeave:h,onMouseLeave:h},theirProps:s,slot:N,defaultTag:Io,name:"Menu.Item"})})),Fo=Object.assign(So,{Button:Po,Items:_o,Item:Lo});const Mo=({children:t,className:n="",...a})=>l().createElement(Fo.Item,null,(({active:s})=>l().createElement(Pt,e({variant:"tertiary"},a,{className:r()("yst-dropdown-menu__item--button",s?"yst-bg-slate-100":"",n)}),t)));Mo.propTypes={children:o().node.isRequired,className:o().string};const Do=({className:t="",screenReaderTriggerLabel:n,Icon:a=go,...s})=>l().createElement(Fo.Button,e({},s,{className:r()("yst-dropdown-menu__icon-trigger",t)}),(({open:e})=>l().createElement(l().Fragment,null,l().createElement(a,{className:r()("yst-h-6 yst-w-6 hover:yst-text-slate-600",e?"yst-text-slate-600":"")}),l().createElement("span",{className:"yst-sr-only"},n))));Do.propTypes={className:o().string,screenReaderTriggerLabel:o().string.isRequired,Icon:o().node};const qo=({children:t,className:n="",...a})=>l().createElement(Nt,{as:i.Fragment,enter:"yst-transition yst-ease-out yst-duration-100",enterFrom:"yst-transform yst-opacity-0 yst-scale-95",enterTo:"yst-transform yst-opacity-100 yst-scale-100",leave:"yst-transition yst-ease-in yst-duration-75",leaveFrom:"yst-transform yst-opacity-100 yst-scale-100",leaveTo:"yst-transform yst-opacity-0 yst-scale-95"},l().createElement(Fo.Items,e({},a,{className:r()("yst-dropdown-menu__list",n)}),t));qo.propTypes={children:o().node.isRequired,className:o().string};const Ao=({children:e,...t})=>l().createElement(Fo,t,e);Ao.propTypes={children:o().node.isRequired},Ao.Item=Fo.Item,Ao.Item.displayName="DropdownMenu.Item",Ao.ButtonItem=Mo,Ao.ButtonItem.displayName="DropdownMenu.ButtonItem",Ao.IconTrigger=Do,Ao.IconTrigger.displayName="DropdownMenu.IconTrigger",Ao.Trigger=Fo.Button,Ao.Trigger.displayName="DropdownMenu.Trigger",Ao.List=qo,Ao.List.displayName="DropdownMenu.List",Ao.displayName="DropdownMenu";const Bo=(0,i.createContext)({addStepRef:c.noop,currentStep:0}),jo=({as:t=cn,...n})=>l().createElement(t,e({className:"yst-absolute yst-top-3 yst-w-auto yst-h-0.5",min:0,max:100},n));jo.displayName="Stepper.ProgressBar",jo.propTypes={as:o().elementType};const Ho=({children:e,index:t,id:n})=>{const{addStepRef:a,currentStep:s}=(0,i.useContext)(Bo),o=t===s,c=t<s;return l().createElement("div",{ref:a,className:r()("yst-step",c&&"yst-step--complete",o&&"yst-step--active"),id:n},l().createElement("div",{className:"yst-step__circle"},l().createElement("div",{className:r()("yst-step__icon yst-bg-primary-500 yst-w-2 yst-h-2 yst-rounded-full yst-delay-500",!c&&o?"yst-opacity-100":"yst-opacity-0")}),c&&l().createElement(xt,{className:"yst-step__icon yst-w-4"})),l().createElement("div",{className:"yst-font-semibold yst-text-xxs yst-mt-3"},e))};Ho.displayName="Stepper.Step",Ho.propTypes={children:o().node.isRequired,index:o().number.isRequired,id:o().string.isRequired};const zo=(0,i.forwardRef)((({children:e,currentStep:t=0,className:n="",steps:a=[],ProgressBar:s=jo},o)=>{const[c,u]=(0,i.useState)({left:0,right:0,stepsLengthPercentage:[]}),[d,p]=(0,i.useState)([]);(0,i.useLayoutEffect)((()=>{let t=[];a.length>0&&(t=a.map((e=>d.find((t=>t&&t.id===e.id))))),e&&(t=l().Children.map(e,(e=>d.find((t=>t&&t.id===e.props.id))))),p(t.filter(Boolean))}),[a,e,t]),(0,i.useLayoutEffect)((()=>{if(0===d.length)return void u({left:0,right:0,stepsLengthPercentage:[]});const e=d[0].getBoundingClientRect(),t=d[d.length-1].getBoundingClientRect(),n=((e,t)=>t.right-e.left-e.width/2-t.width/2)(e,t),a=((e,t,n)=>{const a=t.left+t.width/2;return e.map(((t,r)=>0===r?0:r>=e.length-1?100:((null==t?void 0:t.getBoundingClientRect().right)-a-(null==t?void 0:t.getBoundingClientRect().width)/2)/n*100))})(d,e,n);u({left:e.width/2,right:t.width/2,stepsLengthPercentage:a})}),[d]);const m=(0,i.useCallback)((e=>{e&&!d.includes(e)&&p((t=>[...t,e]))}),[d]);return 0!==a.length||e?l().createElement(Bo.Provider,{value:{addStepRef:m,currentStep:t}},l().createElement("div",{className:r()(n,"yst-stepper"),ref:o},l().createElement(s,{style:{right:c.right,left:c.left},progress:(f=c.stepsLengthPercentage,y=t,y&&f?null!==(v=f[y])&&void 0!==v?v:100:0)}),e||a.map(((e,t)=>l().createElement(Ho,{key:`${e.id}-step`,index:t,id:e.id},e.children))))):null;var f,y,v}));zo.displayName="Stepper",zo.propTypes={currentStep:o().number,children:o().node,className:o().string,steps:o().arrayOf(o().shape({id:o().string.isRequired,children:o().node.isRequired})),ProgressBar:o().elementType},zo.defaultProps={className:"",steps:[],children:void 0,currentStep:0,ProgressBar:jo},zo.Context=Bo,zo.ProgressBar=jo,zo.Step=Ho;const $o=(e,t=!0)=>{const n=(0,i.useCallback)((e=>((e||window.event).returnValue=t,t)),[t]);(0,i.useEffect)((()=>(e&&window.addEventListener("beforeunload",n),()=>window.removeEventListener("beforeunload",n))),[e,n])},Vo=(e,t)=>{(0,i.useEffect)((()=>(t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)})),[e])},Uo=e=>{const t=(0,i.useRef)(e);return(0,i.useEffect)((()=>{t.current=e}),[e]),t.current},Ko=()=>(0,i.useContext)(Fs),Wo=e=>{const t=(0,i.useMemo)((()=>window.matchMedia(e)),[e]),[n,a]=(0,i.useState)(t.matches),r=(0,i.useCallback)((e=>{a(e.matches)}),[a]);return(0,i.useEffect)((()=>(t.addEventListener("change",r),()=>{t.removeEventListener("change",r)})),[t,r]),{matches:n}}})(),(window.yoast=window.yoast||{}).uiLibrary=a})(); \ No newline at end of file @@ -124,8 +124,7 @@ (0,s.__)("Optimize your SEO content with %s","wordpress-seo"),"Yoast AI")}),(0,u.jsx)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:he((0,s.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */ (0,s.__)("Make content editing a breeze! Optimize your SEO content with quick, actionable suggestions at the click of a button.%1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),d)})]}),(0,u.jsx)("div",{className:"yst-w-full yst-flex yst-mt-6",children:(0,u.jsxs)(le.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:o,target:"_blank",ref:c,"data-action":"load-nfd-ctb","data-ctb-id":a,children:[(0,u.jsx)(we,{className:"yst--ms-1 yst-me-2 yst-h-5 yst-w-5"}),i,(0,u.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,s.__)("(Opens in a new browser tab)","wordpress-seo")})]})}),(0,u.jsx)(le.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:l,children:(0,s.__)("Close","wordpress-seo")})]})]})};bs.propTypes={learnMoreLink:a().string.isRequired,upsellLink:a().string.isRequired,thumbnail:a().shape({src:a().string.isRequired,width:a().string,height:a().string}).isRequired,wistiaEmbedPermission:a().shape({value:a().bool.isRequired,status:a().string.isRequired,set:a().func.isRequired}).isRequired,upsellLabel:a().string,newToText:a().string,ctbId:a().string};const fs=({handleRefreshClick:e,supportLink:t})=>(0,u.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,u.jsx)(le.Button,{onClick:e,children:(0,s.__)("Refresh this page","wordpress-seo")}),(0,u.jsx)(le.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,s.__)("Contact support","wordpress-seo")})]});fs.propTypes={handleRefreshClick:a().func.isRequired,supportLink:a().string.isRequired};const vs=({handleRefreshClick:e,supportLink:t})=>(0,u.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,u.jsx)(le.Button,{className:"yst-order-last",onClick:e,children:(0,s.__)("Refresh this page","wordpress-seo")}),(0,u.jsx)(le.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,s.__)("Contact support","wordpress-seo")})]});vs.propTypes={handleRefreshClick:a().func.isRequired,supportLink:a().string.isRequired};const ks=({error:e,children:t=null})=>(0,u.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,u.jsx)(le.Title,{children:(0,s.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,u.jsx)("p",{children:(0,s.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,u.jsx)(le.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,s.__)("Undefined error message.","wordpress-seo")}),(0,u.jsx)("p",{children:(0,s.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});ks.propTypes={error:a().object.isRequired,children:a().node},ks.VerticalButtons=vs,ks.HorizontalButtons=fs;a().string,a().node.isRequired,a().node.isRequired,a().node,a().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const _s=window.ReactDOM;var js,Ss,Cs;(Ss=js||(js={})).Pop="POP",Ss.Push="PUSH",Ss.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(Cs||(Cs={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const Rs=["post","put","patch","delete"],Es=(new Set(Rs),["get",...Rs]);new Set(Es),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),ce.Component,ce.startTransition,new Promise((()=>{})),ce.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var Ls,Ns,Ms,Is;new Map,ce.startTransition,_s.flushSync,ce.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(Is=Ls||(Ls={})).UseScrollRestoration="useScrollRestoration",Is.UseSubmit="useSubmit",Is.UseSubmitFetcher="useSubmitFetcher",Is.UseFetcher="useFetcher",Is.useViewTransitionState="useViewTransitionState",(Ms=Ns||(Ns={})).UseFetcher="useFetcher",Ms.UseFetchers="useFetchers",Ms.UseScrollRestoration="useScrollRestoration",a().string.isRequired,a().string;const Ts=({href:e,children:t=null,...r})=>(0,u.jsxs)(le.Link,{target:"_blank",rel:"noopener noreferrer",...r,href:e,children:[t,(0,u.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,s.__)("(Opens in a new browser tab)","wordpress-seo")})]});Ts.propTypes={href:a().string.isRequired,children:a().node};ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),(0,s.__)("AI tools included","wordpress-seo"),(0,s.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ -(0,s.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,s.__)("24/7 support","wordpress-seo"),(0,s.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,s.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,s.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,s.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,s.__)("Internal links and redirect management, easy","wordpress-seo"),(0,s.__)("Access to friendly help when you need it, day or night","wordpress-seo");ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}));var Ps;function As(){return As=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},As.apply(this,arguments)}a().string.isRequired,a().object.isRequired,a().func.isRequired;const Bs=e=>ce.createElement("svg",As({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),Ps||(Ps=ce.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));a().string.isRequired,a().object,a().func.isRequired,a().bool.isRequired,a().string.isRequired,a().object.isRequired,a().string.isRequired,a().func.isRequired,a().bool.isRequired,ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),a().bool.isRequired,a().func,a().func,a().string.isRequired,a().string.isRequired,a().string.isRequired,a().string.isRequired;const Os=window.yoast.reactHelmet,Fs=({videoId:e,thumbnail:t,wistiaEmbedPermission:r,className:o=""})=>{const[i,n]=(0,l.useState)(r.value?ds:ls),a=(0,l.useCallback)((()=>n(ds)),[n]),c=(0,l.useCallback)((()=>{r.value?a():n(cs)}),[r.value,a,n]),d=(0,l.useCallback)((()=>n(ls)),[n]),p=(0,l.useCallback)((()=>{r.set(!0),a()}),[r.set,a]);return(0,u.jsxs)(u.Fragment,{children:[r.value&&(0,u.jsx)(Os.Helmet,{children:(0,u.jsx)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})}),(0,u.jsxs)("div",{className:ke()("yst-relative yst-w-full yst-h-0 yst-pt-[47.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white",o),children:[i===ls&&(0,u.jsx)("button",{type:"button",className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:c,children:(0,u.jsx)("img",{className:"yst-w-full yst-h-auto yst-object-contain",alt:"",loading:"lazy",decoding:"async",...t})}),i===cs&&(0,u.jsxs)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white",children:[(0,u.jsxs)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center",children:[r.status===as&&(0,u.jsx)(le.Spinner,{}),r.status!==as&&(0,s.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */ +(0,s.__)("(Opens in a new browser tab)","wordpress-seo")})]});Ts.propTypes={href:a().string.isRequired,children:a().node};(0,s.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,s.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,s.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,s.__)("Optimize pages for multiple keywords with guidance","wordpress-seo"),(0,s.__)("Add product details to help your listings stand out","wordpress-seo"),(0,s.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,s.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,s.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo"),(0,s.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,s.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,s.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,s.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,s.__)("Internal links and redirect management, easy","wordpress-seo"),(0,s.__)("Access to friendly help when you need it, day or night","wordpress-seo");var Ps;function As(){return As=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},As.apply(this,arguments)}a().string.isRequired,a().object.isRequired,a().func.isRequired,ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))}));const Bs=e=>ce.createElement("svg",As({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),Ps||(Ps=ce.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));a().string.isRequired,a().object,a().func.isRequired,a().bool.isRequired,a().string.isRequired,a().object.isRequired,a().string.isRequired,a().func.isRequired,a().bool.isRequired,ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),a().bool.isRequired,a().func,a().func,a().string.isRequired,a().string.isRequired,a().string.isRequired,a().string.isRequired;const Os=window.yoast.reactHelmet,Fs=({videoId:e,thumbnail:t,wistiaEmbedPermission:r,className:o=""})=>{const[i,n]=(0,l.useState)(r.value?ds:ls),a=(0,l.useCallback)((()=>n(ds)),[n]),c=(0,l.useCallback)((()=>{r.value?a():n(cs)}),[r.value,a,n]),d=(0,l.useCallback)((()=>n(ls)),[n]),p=(0,l.useCallback)((()=>{r.set(!0),a()}),[r.set,a]);return(0,u.jsxs)(u.Fragment,{children:[r.value&&(0,u.jsx)(Os.Helmet,{children:(0,u.jsx)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})}),(0,u.jsxs)("div",{className:ke()("yst-relative yst-w-full yst-h-0 yst-pt-[47.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white",o),children:[i===ls&&(0,u.jsx)("button",{type:"button",className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:c,children:(0,u.jsx)("img",{className:"yst-w-full yst-h-auto yst-object-contain",alt:"",loading:"lazy",decoding:"async",...t})}),i===cs&&(0,u.jsxs)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white",children:[(0,u.jsxs)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center",children:[r.status===as&&(0,u.jsx)(le.Spinner,{}),r.status!==as&&(0,s.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */ (0,s.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo"),"Yoast SEO","Wistia")]}),(0,u.jsxs)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4",children:[(0,u.jsx)(le.Button,{type:"button",variant:"secondary",onClick:d,disabled:r.status===as,children:(0,s.__)("Deny","wordpress-seo")}),(0,u.jsx)(le.Button,{type:"button",variant:"primary",onClick:p,disabled:r.status===as,children:(0,s.__)("Allow","wordpress-seo")})]})]}),r.value&&i===ds&&(0,u.jsxs)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-right-0",children:[null===e&&(0,u.jsx)(le.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,u.jsx)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`})]})]})]})};Fs.propTypes={videoId:a().string.isRequired,thumbnail:a().shape({src:a().string.isRequired,width:a().string,height:a().string}).isRequired,wistiaEmbedPermission:a().shape({value:a().bool.isRequired,status:a().string.isRequired,set:a().func.isRequired}).isRequired,hasPadding:a().bool},ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),a().bool.isRequired,a().func.isRequired,a().func,a().string;const $s=({onGiveConsent:e,learnMoreLink:t,privacyPolicyLink:r,termsOfServiceLink:o,imageLink:i})=>{const{onClose:n,initialFocus:a}=(0,le.useModalContext)(),[c,d]=(0,le.useToggleState)(!1),p=(0,l.useMemo)((()=>({src:i,width:"432",height:"244"})),[i]),h=he((0,s.sprintf)(/* translators: %1$s and %2$s are a set of anchor tags and %3$s and %4$s are a set of anchor tags. */ (0,s.__)("I approve the %1$sTerms of Service%2$s & %3$sPrivacy Policy%4$s of the Yoast AI service. This includes consenting to the collection and use of data to improve user experience.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,u.jsx)(Ts,{href:o}),a2:(0,u.jsx)(Ts,{href:r})}),[m,g]=(0,le.useToggleState)(!1),y=(0,l.useCallback)((async()=>{g(),await e(),g()}),[e]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center",children:(0,u.jsx)("div",{className:"yst-relative yst-w-full",children:(0,u.jsx)("img",{className:"yst-w-full yst-h-auto yst-rounded-md yst-drop-shadow-md",alt:"",loading:"lazy",decoding:"async",...p})})}),(0,u.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,u.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,u.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,s.sprintf)(/* translators: %s expands to Yoast AI. */ (0,s.__)("Grant consent for %s","wordpress-seo"),"Yoast AI")}),(0,u.jsx)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:he((0,s.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tag; %4$s is the arrow icon. */ @@ -1,16 +1,15 @@ -(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var a=typeof s;if("string"===a||"number"===a)e.push(s);else if(Array.isArray(s)){if(s.length){var o=n.apply(null,s);o&&e.push(o)}}else if("object"===a){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var i in s)r.call(s,i)&&s[i]&&e.push(i)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(s=function(){return n}.apply(t,[]))||(e.exports=s)}()},8133:(e,t,s)=>{"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},a=function(){function e(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,s,r){return s&&e(t.prototype,s),r&&e(t,r),t}}(),o=c(s(9196)),i=c(s(5890)),l=c(s(4306));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var u={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"},p=["animateOpacity","animationStateClasses","applyInlineTransitions","children","contentClassName","delay","duration","easing","height","onAnimationEnd","onAnimationStart"];function m(e){for(var t=arguments.length,s=Array(t>1?t-1:0),r=1;r<t;r++)s[r-1]=arguments[r];if(!s.length)return e;for(var n={},a=Object.keys(e),o=0;o<a.length;o++){var i=a[o];-1===s.indexOf(i)&&(n[i]=e[i])}return n}function h(e){e.forEach((function(e){return cancelAnimationFrame(e)}))}function f(e){return!isNaN(parseFloat(e))&&isFinite(e)}function y(e){return"string"==typeof e&&e.search("%")===e.length-1&&f(e.substr(0,e.length-1))}function g(e,t){e&&"function"==typeof e&&e(t)}var v=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));s.animationFrameIDs=[];var r="auto",a="visible";f(e.height)?(r=e.height<0||"0"===e.height?0:e.height,a="hidden"):y(e.height)&&(r="0%"===e.height?0:e.height,a="hidden"),s.animationStateClasses=n({},u,e.animationStateClasses);var o=s.getStaticStateClasses(r);return s.state={animationStateClasses:o,height:r,overflow:a,shouldUseTransitions:!1},s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this.state.height;this.contentElement&&this.contentElement.style&&this.hideContent(e)}},{key:"componentDidUpdate",value:function(e,t){var s,r,n=this,a=this.props,o=a.delay,i=a.duration,c=a.height,u=a.onAnimationEnd,p=a.onAnimationStart;if(this.contentElement&&c!==e.height){var m;this.showContent(t.height),this.contentElement.style.overflow="hidden";var v=this.contentElement.offsetHeight;this.contentElement.style.overflow="";var b=i+o,x=null,w={height:null,overflow:"hidden"},S="auto"===t.height;f(c)?(x=c<0||"0"===c?0:c,w.height=x):y(c)?(x="0%"===c?0:c,w.height=x):(x=v,w.height="auto",w.overflow=null),S&&(w.height=x,x=v);var _=(0,l.default)((d(m={},this.animationStateClasses.animating,!0),d(m,this.animationStateClasses.animatingUp,"auto"===e.height||c<e.height),d(m,this.animationStateClasses.animatingDown,"auto"===c||c>e.height),d(m,this.animationStateClasses.animatingToHeightZero,0===w.height),d(m,this.animationStateClasses.animatingToHeightAuto,"auto"===w.height),d(m,this.animationStateClasses.animatingToHeightSpecific,w.height>0),m)),E=this.getStaticStateClasses(w.height);this.setState({animationStateClasses:_,height:x,overflow:"hidden",shouldUseTransitions:!S}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),S?(w.shouldUseTransitions=!0,h(this.animationFrameIDs),this.animationFrameIDs=(s=function(){n.setState(w),g(p,{newHeight:w.height})},(r=[])[0]=requestAnimationFrame((function(){r[1]=requestAnimationFrame((function(){s()}))})),r),this.animationClassesTimeoutID=setTimeout((function(){n.setState({animationStateClasses:E,shouldUseTransitions:!1}),n.hideContent(w.height),g(u,{newHeight:w.height})}),b)):(g(p,{newHeight:x}),this.timeoutID=setTimeout((function(){w.animationStateClasses=E,w.shouldUseTransitions=!1,n.setState(w),"auto"!==c&&n.hideContent(x),g(u,{newHeight:x})}),b))}}},{key:"componentWillUnmount",value:function(){h(this.animationFrameIDs),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null,this.animationClassesTimeoutID=null,this.animationStateClasses=null}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,l.default)((d(t={},this.animationStateClasses.static,!0),d(t,this.animationStateClasses.staticHeightZero,0===e),d(t,this.animationStateClasses.staticHeightSpecific,e>0),d(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,s=this.props,r=s.animateOpacity,a=s.applyInlineTransitions,i=s.children,c=s.className,u=s.contentClassName,h=s.delay,f=s.duration,y=s.easing,g=s.id,v=s.style,b=this.state,x=b.height,w=b.overflow,S=b.animationStateClasses,_=b.shouldUseTransitions,E=n({},v,{height:x,overflow:w||v.overflow});_&&a&&(E.transition="height "+f+"ms "+y+" "+h+"ms",v.transition&&(E.transition=v.transition+", "+E.transition),E.WebkitTransition=E.transition);var j={};r&&(j.transition="opacity "+f+"ms "+y+" "+h+"ms",j.WebkitTransition=j.transition,0===x&&(j.opacity=0));var C=(0,l.default)((d(e={},S,!0),d(e,c,c),e)),k=void 0!==this.props["aria-hidden"]?this.props["aria-hidden"]:0===x;return o.default.createElement("div",n({},m.apply(void 0,[this.props].concat(p)),{"aria-hidden":k,className:C,id:g,style:E}),o.default.createElement("div",{className:u,style:j,ref:function(e){return t.contentElement=e}},i))}}]),t}(o.default.Component);v.propTypes={"aria-hidden":i.default.bool,animateOpacity:i.default.bool,animationStateClasses:i.default.object,applyInlineTransitions:i.default.bool,children:i.default.any.isRequired,className:i.default.string,contentClassName:i.default.string,delay:i.default.number,duration:i.default.number,easing:i.default.string,height:function(e,t,s){var n=e[t];return"number"==typeof n&&n>=0||y(n)||"auto"===n?null:new TypeError('value "'+n+'" of type "'+(void 0===n?"undefined":r(n))+'" is invalid type for '+t+" in "+s+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},id:i.default.string,onAnimationEnd:i.default.func,onAnimationStart:i.default.func,style:i.default.object},v.defaultProps={animateOpacity:!1,animationStateClasses:u,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.Z=v},4306:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var a=typeof s;if("string"===a||"number"===a)e.push(s);else if(Array.isArray(s)&&s.length){var o=n.apply(null,s);o&&e.push(o)}else if("object"===a)for(var i in s)r.call(s,i)&&s[i]&&e.push(i)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(s=function(){return n}.apply(t,[]))||(e.exports=s)}()},591:e=>{for(var t=[],s=0;s<256;++s)t[s]=(s+256).toString(16).substr(1);e.exports=function(e,s){var r=s||0,n=t;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}},9176:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var s=new Uint8Array(16);e.exports=function(){return t(s),s}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},3409:(e,t,s)=>{var r=s(9176),n=s(591);e.exports=function(e,t,s){var a=t&&s||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[a+i]=o[i];return t||n(o)}},9196:e=>{"use strict";e.exports=window.React},5890:e=>{"use strict";e.exports=window.yoast.propTypes}},t={};function s(r){var n=t[r];if(void 0!==n)return n.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,s),a.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};s.r(e),s.d(e,{DISMISS_ALERT:()=>vp});const t=window.wp.components,r=window.wp.data,n=window.wp.domReady;var a=s.n(n);const o=window.wp.element,i=window.yoast.dashboardFrontend,l=window.yoast.uiLibrary,c=window.lodash;var d=s(9196),u=s.n(d);const p=window.ReactDOM;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},m.apply(this,arguments)}var h;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(h||(h={}));const f="popstate";function y(e,t){if(!1===e||null==e)throw new Error(t)}function g(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function v(e,t){return{usr:e.state,key:e.key,idx:t}}function b(e,t,s,r){return void 0===s&&(s=null),m({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?w(t):t,{state:s,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function x(e){let{pathname:t="/",search:s="",hash:r=""}=e;return s&&"?"!==s&&(t+="?"===s.charAt(0)?s:"?"+s),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function w(e){let t={};if(e){let s=e.indexOf("#");s>=0&&(t.hash=e.substr(s),e=e.substr(0,s));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function S(e,t,s,r){void 0===r&&(r={});let{window:n=document.defaultView,v5Compat:a=!1}=r,o=n.history,i=h.Pop,l=null,c=d();function d(){return(o.state||{idx:null}).idx}function u(){i=h.Pop;let e=d(),t=null==e?null:e-c;c=e,l&&l({action:i,location:g.location,delta:t})}function p(e){let t="null"!==n.location.origin?n.location.origin:n.location.href,s="string"==typeof e?e:x(e);return s=s.replace(/ $/,"%20"),y(t,"No window.location.(origin|href) available to create URL for href: "+s),new URL(s,t)}null==c&&(c=0,o.replaceState(m({},o.state,{idx:c}),""));let g={get action(){return i},get location(){return e(n,o)},listen(e){if(l)throw new Error("A history only accepts one active listener");return n.addEventListener(f,u),l=e,()=>{n.removeEventListener(f,u),l=null}},createHref:e=>t(n,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){i=h.Push;let r=b(g.location,e,t);s&&s(r,e),c=d()+1;let u=v(r,c),p=g.createHref(r);try{o.pushState(u,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;n.location.assign(p)}a&&l&&l({action:i,location:g.location,delta:1})},replace:function(e,t){i=h.Replace;let r=b(g.location,e,t);s&&s(r,e),c=d();let n=v(r,c),u=g.createHref(r);o.replaceState(n,"",u),a&&l&&l({action:i,location:g.location,delta:0})},go:e=>o.go(e)};return g}var _;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(_||(_={}));const E=new Set(["lazy","caseSensitive","path","id","index","children"]);function j(e,t,s,r){return void 0===s&&(s=[]),void 0===r&&(r={}),e.map(((e,n)=>{let a=[...s,String(n)],o="string"==typeof e.id?e.id:a.join("-");if(y(!0!==e.index||!e.children,"Cannot specify children on an index route"),y(!r[o],'Found a route id collision on id "'+o+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let s=m({},e,t(e),{id:o});return r[o]=s,s}{let s=m({},e,t(e),{id:o,children:void 0});return r[o]=s,e.children&&(s.children=j(e.children,t,a,r)),s}}))}function C(e,t,s){return void 0===s&&(s="/"),k(e,t,s,!1)}function k(e,t,s,r){let n=B(("string"==typeof t?w(t):t).pathname||"/",s);if(null==n)return null;let a=R(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let s=e.length===t.length&&e.slice(0,-1).every(((e,s)=>e===t[s]));return s?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let o=null;for(let e=0;null==o&&e<a.length;++e){let t=U(n);o=F(a[e],t,r)}return o}function R(e,t,s,r){void 0===t&&(t=[]),void 0===s&&(s=[]),void 0===r&&(r="");let n=(e,n,a)=>{let o={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:n,route:e};o.relativePath.startsWith("/")&&(y(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));let i=W([r,o.relativePath]),l=s.concat(o);e.children&&e.children.length>0&&(y(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+i+'".'),R(e.children,t,l,i)),(null!=e.path||e.index)&&t.push({path:i,score:D(i,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var s;if(""!==e.path&&null!=(s=e.path)&&s.includes("?"))for(let s of O(e.path))n(e,t,s);else n(e,t)})),t}function O(e){let t=e.split("/");if(0===t.length)return[];let[s,...r]=t,n=s.endsWith("?"),a=s.replace(/\?$/,"");if(0===r.length)return n?[a,""]:[a];let o=O(r.join("/")),i=[];return i.push(...o.map((e=>""===e?a:[a,e].join("/")))),n&&i.push(...o),i.map((t=>e.startsWith("/")&&""===t?"/":t))}const N=/^:[\w-]+$/,P=3,T=2,L=1,M=10,A=-2,I=e=>"*"===e;function D(e,t){let s=e.split("/"),r=s.length;return s.some(I)&&(r+=A),t&&(r+=T),s.filter((e=>!I(e))).reduce(((e,t)=>e+(N.test(t)?P:""===t?L:M)),r)}function F(e,t,s){void 0===s&&(s=!1);let{routesMeta:r}=e,n={},a="/",o=[];for(let e=0;e<r.length;++e){let i=r[e],l=e===r.length-1,c="/"===a?t:t.slice(a.length)||"/",d=z({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},c),u=i.route;if(!d&&l&&s&&!r[r.length-1].route.index&&(d=z({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},c)),!d)return null;Object.assign(n,d.params),o.push({params:n,pathname:W([a,d.pathname]),pathnameBase:G(W([a,d.pathnameBase])),route:u}),"/"!==d.pathnameBase&&(a=W([a,d.pathnameBase]))}return o}function z(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[s,r]=function(e,t,s){void 0===t&&(t=!1),void 0===s&&(s=!0),g("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,s)=>(r.push({paramName:t,isOptional:null!=s}),s?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),n+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?n+="\\/*$":""!==e&&"/"!==e&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),n=t.match(s);if(!n)return null;let a=n[0],o=a.replace(/(.)\/+$/,"$1"),i=n.slice(1);return{params:r.reduce(((e,t,s)=>{let{paramName:r,isOptional:n}=t;if("*"===r){let e=i[s]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=i[s];return e[r]=n&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:o,pattern:e}}function U(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return g(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function B(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let s=t.endsWith("/")?t.length-1:t.length,r=e.charAt(s);return r&&"/"!==r?null:e.slice(s)||"/"}function q(e,t,s,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+s+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function $(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function H(e,t){let s=$(e);return t?s.map(((e,t)=>t===s.length-1?e.pathname:e.pathnameBase)):s.map((e=>e.pathnameBase))}function V(e,t,s,r){let n;void 0===r&&(r=!1),"string"==typeof e?n=w(e):(n=m({},e),y(!n.pathname||!n.pathname.includes("?"),q("?","pathname","search",n)),y(!n.pathname||!n.pathname.includes("#"),q("#","pathname","hash",n)),y(!n.search||!n.search.includes("#"),q("#","search","hash",n)));let a,o=""===e||""===n.pathname,i=o?"/":n.pathname;if(null==i)a=s;else{let e=t.length-1;if(!r&&i.startsWith("..")){let t=i.split("/");for(;".."===t[0];)t.shift(),e-=1;n.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:s,search:r="",hash:n=""}="string"==typeof e?w(e):e,a=s?s.startsWith("/")?s:function(e,t){let s=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?s.length>1&&s.pop():"."!==e&&s.push(e)})),s.length>1?s.join("/"):"/"}(s,t):t;return{pathname:a,search:K(r),hash:Y(n)}}(n,a),c=i&&"/"!==i&&i.endsWith("/"),d=(o||"."===i)&&s.endsWith("/");return l.pathname.endsWith("/")||!c&&!d||(l.pathname+="/"),l}const W=e=>e.join("/").replace(/\/\/+/g,"/"),G=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),K=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Y=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class Z{constructor(e,t,s,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}}function J(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const Q=["post","put","patch","delete"],X=new Set(Q),ee=["get",...Q],te=new Set(ee),se=new Set([301,302,303,307,308]),re=new Set([307,308]),ne={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ae={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oe={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,le=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ce="remix-router-transitions";function de(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,s=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,r=!s;let n;if(y(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)n=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;n=e=>({hasErrorBoundary:t(e)})}else n=le;let a,o,i,l={},c=j(e.routes,n,void 0,l),d=e.basename||"/",u=e.unstable_dataStrategy||ve,p=e.unstable_patchRoutesOnNavigation,f=m({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),v=null,x=new Set,w=1e3,S=new Set,R=null,O=null,N=null,P=null!=e.hydrationData,T=C(c,e.history.location,d),L=null;if(null==T&&!p){let t=Ne(404,{pathname:e.history.location.pathname}),{matches:s,route:r}=Oe(c);T=s,L={[r.id]:t}}if(T&&!e.hydrationData&&pt(T,c,e.history.location.pathname).active&&(T=null),T)if(T.some((e=>e.route.lazy)))o=!1;else if(T.some((e=>e.route.loader)))if(f.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,s=e.hydrationData?e.hydrationData.errors:null,r=e=>!e.route.loader||("function"!=typeof e.route.loader||!0!==e.route.loader.hydrate)&&(t&&void 0!==t[e.route.id]||s&&void 0!==s[e.route.id]);if(s){let e=T.findIndex((e=>void 0!==s[e.route.id]));o=T.slice(0,e+1).every(r)}else o=T.every(r)}else o=null!=e.hydrationData;else o=!0;else if(o=!1,T=[],f.v7_partialHydration){let t=pt(null,c,e.history.location.pathname);t.active&&t.matches&&(T=t.matches)}let M,A,I={historyAction:e.history.action,location:e.history.location,matches:T,initialized:o,navigation:ne,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||L,fetchers:new Map,blockers:new Map},D=h.Pop,F=!1,z=!1,U=new Map,q=null,$=!1,H=!1,V=[],W=new Set,G=new Map,K=0,Y=-1,Z=new Map,Q=new Set,X=new Map,ee=new Map,te=new Set,se=new Map,de=new Map,he=new Map;function fe(e,t){void 0===t&&(t={}),I=m({},I,e);let s=[],r=[];f.v7_fetcherPersist&&I.fetchers.forEach(((e,t)=>{"idle"===e.state&&(te.has(t)?r.push(t):s.push(t))})),[...x].forEach((e=>e(I,{deletedFetchers:r,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),f.v7_fetcherPersist&&(s.forEach((e=>I.fetchers.delete(e))),r.forEach((e=>Xe(e))))}function _e(t,s,r){var n,o;let i,{flushSync:l}=void 0===r?{}:r,d=null!=I.actionData&&null!=I.navigation.formMethod&&ze(I.navigation.formMethod)&&"loading"===I.navigation.state&&!0!==(null==(n=t.state)?void 0:n._isRedirect);i=s.actionData?Object.keys(s.actionData).length>0?s.actionData:null:d?I.actionData:null;let u=s.loaderData?Ce(I.loaderData,s.loaderData,s.matches||[],s.errors):I.loaderData,p=I.blockers;p.size>0&&(p=new Map(p),p.forEach(((e,t)=>p.set(t,oe))));let f,y=!0===F||null!=I.navigation.formMethod&&ze(I.navigation.formMethod)&&!0!==(null==(o=t.state)?void 0:o._isRedirect);if(a&&(c=a,a=void 0),$||D===h.Pop||(D===h.Push?e.history.push(t,t.state):D===h.Replace&&e.history.replace(t,t.state)),D===h.Pop){let e=U.get(I.location.pathname);e&&e.has(t.pathname)?f={currentLocation:I.location,nextLocation:t}:U.has(t.pathname)&&(f={currentLocation:t,nextLocation:I.location})}else if(z){let e=U.get(I.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),U.set(I.location.pathname,e)),f={currentLocation:I.location,nextLocation:t}}fe(m({},s,{actionData:i,loaderData:u,historyAction:D,location:t,initialized:!0,navigation:ne,revalidation:"idle",restoreScrollPosition:ut(t,s.matches||I.matches),preventScrollReset:y,blockers:p}),{viewTransitionOpts:f,flushSync:!0===l}),D=h.Pop,F=!1,z=!1,$=!1,H=!1,V=[]}async function Ee(t,s,r){M&&M.abort(),M=null,D=t,$=!0===(r&&r.startUninterruptedRevalidation),function(e,t){if(R&&N){let s=dt(e,t);R[s]=N()}}(I.location,I.matches),F=!0===(r&&r.preventScrollReset),z=!0===(r&&r.enableViewTransition);let n=a||c,o=r&&r.overrideNavigation,i=C(n,s,d),l=!0===(r&&r.flushSync),u=pt(i,n,s.pathname);if(u.active&&u.matches&&(i=u.matches),!i){let{error:e,notFoundMatches:t,route:r}=it(s.pathname);return void _e(s,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l})}if(I.initialized&&!H&&(p=I.location,y=s,p.pathname===y.pathname&&p.search===y.search&&(""===p.hash?""!==y.hash:p.hash===y.hash||""!==y.hash))&&!(r&&r.submission&&ze(r.submission.formMethod)))return void _e(s,{matches:i},{flushSync:l});var p,y;M=new AbortController;let g,v=Se(e.history,s,M.signal,r&&r.submission);if(r&&r.pendingError)g=[Re(i).route.id,{type:_.error,error:r.pendingError}];else if(r&&r.submission&&ze(r.submission.formMethod)){let t=await async function(e,t,s,r,n,a){void 0===a&&(a={}),Ye();let o,i=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(t,s);if(fe({navigation:i},{flushSync:!0===a.flushSync}),n){let s=await mt(r,t.pathname,e.signal);if("aborted"===s.type)return{shortCircuited:!0};if("error"===s.type){let{boundaryId:e,error:r}=lt(t.pathname,s);return{matches:s.partialMatches,pendingActionResult:[e,{type:_.error,error:r}]}}if(!s.matches){let{notFoundMatches:e,error:s,route:r}=it(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:_.error,error:s}]}}r=s.matches}let l=He(r,t);if(l.route.action||l.route.lazy){if(o=(await Fe("action",I,e,[l],r,null))[l.route.id],e.signal.aborted)return{shortCircuited:!0}}else o={type:_.error,error:Ne(405,{method:e.method,pathname:t.pathname,routeId:l.route.id})};if(Ie(o)){let t;return t=a&&null!=a.replace?a.replace:we(o.response.headers.get("Location"),new URL(e.url),d)===I.location.pathname+I.location.search,await De(e,o,!0,{submission:s,replace:t}),{shortCircuited:!0}}if(Me(o))throw Ne(400,{type:"defer-action"});if(Ae(o)){let e=Re(r,l.route.id);return!0!==(a&&a.replace)&&(D=h.Push),{matches:r,pendingActionResult:[e.route.id,o]}}return{matches:r,pendingActionResult:[l.route.id,o]}}(v,s,r.submission,i,u.active,{replace:r.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Ae(r)&&J(r.error)&&404===r.error.status)return M=null,void _e(s,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}i=t.matches||i,g=t.pendingActionResult,o=We(s,r.submission),l=!1,u.active=!1,v=Se(e.history,v.url,v.signal)}let{shortCircuited:b,matches:x,loaderData:w,errors:S}=await async function(t,s,r,n,o,i,l,u,p,h,y){let g=o||We(s,i),v=i||l||Ve(g),b=!($||f.v7_partialHydration&&p);if(n){if(b){let e=Te(y);fe(m({navigation:g},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=await mt(r,s.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let{boundaryId:t,error:r}=lt(s.pathname,e);return{matches:e.partialMatches,loaderData:{},errors:{[t]:r}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=it(s.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}r=e.matches}let x=a||c,[w,S]=me(e.history,I,r,v,s,f.v7_partialHydration&&!0===p,f.v7_skipActionErrorRevalidation,H,V,W,te,X,Q,x,d,y);if(ct((e=>!(r&&r.some((t=>t.route.id===e)))||w&&w.some((t=>t.route.id===e)))),Y=++K,0===w.length&&0===S.length){let e=st();return _e(s,m({matches:r,loaderData:{},errors:y&&Ae(y[1])?{[y[0]]:y[1].error}:null},ke(y),e?{fetchers:new Map(I.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(b){let e={};if(!n){e.navigation=g;let t=Te(y);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=I.fetchers.get(e.key),s=Ge(void 0,t?t.data:void 0);I.fetchers.set(e.key,s)})),new Map(I.fetchers)}(S)),fe(e,{flushSync:h})}S.forEach((e=>{G.has(e.key)&&et(e.key),e.controller&&G.set(e.key,e.controller)}));let _=()=>S.forEach((e=>et(e.key)));M&&M.signal.addEventListener("abort",_);let{loaderResults:E,fetcherResults:j}=await $e(I,r,w,S,t);if(t.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",_),S.forEach((e=>G.delete(e.key)));let C=Pe(E);if(C)return await De(t,C.result,!0,{replace:u}),{shortCircuited:!0};if(C=Pe(j),C)return Q.add(C.key),await De(t,C.result,!0,{replace:u}),{shortCircuited:!0};let{loaderData:k,errors:R}=je(I,r,0,E,y,S,j,se);se.forEach(((e,t)=>{e.subscribe((s=>{(s||e.done)&&se.delete(t)}))})),f.v7_partialHydration&&p&&I.errors&&Object.entries(I.errors).filter((e=>{let[t]=e;return!w.some((e=>e.route.id===t))})).forEach((e=>{let[t,s]=e;R=Object.assign(R||{},{[t]:s})}));let O=st(),N=rt(Y),P=O||N||S.length>0;return m({matches:r,loaderData:k,errors:R},P?{fetchers:new Map(I.fetchers)}:{})}(v,s,i,u.active,o,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&!0===r.initialHydration,l,g);b||(M=null,_e(s,m({matches:x||i},ke(g),{loaderData:w,errors:S})))}function Te(e){return e&&!Ae(e[1])?{[e[0]]:e[1].data}:I.actionData?0===Object.keys(I.actionData).length?null:I.actionData:void 0}async function De(r,n,a,o){let{submission:i,fetcherSubmission:l,replace:c}=void 0===o?{}:o;n.response.headers.has("X-Remix-Revalidate")&&(H=!0);let u=n.response.headers.get("Location");y(u,"Expected a Location header on the redirect Response"),u=we(u,new URL(r.url),d);let p=b(I.location,u,{_isRedirect:!0});if(s){let s=!1;if(n.response.headers.has("X-Remix-Reload-Document"))s=!0;else if(ie.test(u)){const r=e.history.createURL(u);s=r.origin!==t.location.origin||null==B(r.pathname,d)}if(s)return void(c?t.location.replace(u):t.location.assign(u))}M=null;let f=!0===c||n.response.headers.has("X-Remix-Replace")?h.Replace:h.Push,{formMethod:g,formAction:v,formEncType:x}=I.navigation;!i&&!l&&g&&v&&x&&(i=Ve(I.navigation));let w=i||l;if(re.has(n.response.status)&&w&&ze(w.formMethod))await Ee(f,p,{submission:m({},w,{formAction:u}),preventScrollReset:F,enableViewTransition:a?z:void 0});else{let e=We(p,i);await Ee(f,p,{overrideNavigation:e,fetcherSubmission:l,preventScrollReset:F,enableViewTransition:a?z:void 0})}}async function Fe(e,t,s,r,a,o){let i,c={};try{i=await async function(e,t,s,r,n,a,o,i,l,c){let d=a.map((e=>e.route.lazy?async function(e,t,s){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let n=s[e.id];y(n,"No route found in manifest");let a={};for(let e in r){let t=void 0!==n[e]&&"hasErrorBoundary"!==e;g(!t,'Route "'+n.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||E.has(e)||(a[e]=r[e])}Object.assign(n,a),Object.assign(n,m({},t(n),{lazy:void 0}))}(e.route,l,i):void 0)),u=a.map(((e,s)=>{let a=d[s],o=n.some((t=>t.route.id===e.route.id));return m({},e,{shouldLoad:o,resolve:async s=>(s&&"GET"===r.method&&(e.route.lazy||e.route.loader)&&(o=!0),o?async function(e,t,s,r,n,a){let o,i,l=r=>{let o,l=new Promise(((e,t)=>o=t));i=()=>o(),t.signal.addEventListener("abort",i);let c=n=>"function"!=typeof r?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+s.route.id+"]")):r({request:t,params:s.params,context:a},...void 0!==n?[n]:[]),d=(async()=>{try{return{type:"data",result:await(n?n((e=>c(e))):c())}}catch(e){return{type:"error",result:e}}})();return Promise.race([d,l])};try{let n=s.route[e];if(r)if(n){let e,[t]=await Promise.all([l(n).catch((t=>{e=t})),r]);if(void 0!==e)throw e;o=t}else{if(await r,n=s.route[e],!n){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Ne(405,{method:t.method,pathname:r,routeId:s.route.id})}return{type:_.data,result:void 0}}o=await l(n)}else{if(!n){let e=new URL(t.url);throw Ne(404,{pathname:e.pathname+e.search})}o=await l(n)}y(void 0!==o.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+s.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:_.error,result:e}}finally{i&&t.signal.removeEventListener("abort",i)}return o}(t,r,e,a,s,c):Promise.resolve({type:_.data,result:void 0}))})})),p=await e({matches:u,request:r,params:a[0].params,fetcherKey:o,context:c});try{await Promise.all(d)}catch(e){}return p}(u,e,0,s,r,a,o,l,n)}catch(e){return r.forEach((t=>{c[t.route.id]={type:_.error,error:e}})),c}for(let[e,t]of Object.entries(i))if(Le(t)){let r=t.result;c[e]={type:_.redirect,response:xe(r,s,e,a,d,f.v7_relativeSplatPath)}}else c[e]=await be(t);return c}async function $e(t,s,r,n,a){let o=t.matches,i=Fe("loader",0,a,r,s,null),l=Promise.all(n.map((async t=>{if(t.matches&&t.match&&t.controller){let s=(await Fe("loader",0,Se(e.history,t.path,t.controller.signal),[t.match],t.matches,t.key))[t.match.route.id];return{[t.key]:s}}return Promise.resolve({[t.key]:{type:_.error,error:Ne(404,{pathname:t.path})}})}))),c=await i,d=(await l).reduce(((e,t)=>Object.assign(e,t)),{});return await Promise.all([Ue(s,c,a.signal,o,t.loaderData),Be(s,d,n)]),{loaderResults:c,fetcherResults:d}}function Ye(){H=!0,V.push(...ct()),X.forEach(((e,t)=>{G.has(t)&&(W.add(t),et(t))}))}function Ze(e,t,s){void 0===s&&(s={}),I.fetchers.set(e,t),fe({fetchers:new Map(I.fetchers)},{flushSync:!0===(s&&s.flushSync)})}function Je(e,t,s,r){void 0===r&&(r={});let n=Re(I.matches,t);Xe(e),fe({errors:{[n.route.id]:s},fetchers:new Map(I.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Qe(e){return f.v7_fetcherPersist&&(ee.set(e,(ee.get(e)||0)+1),te.has(e)&&te.delete(e)),I.fetchers.get(e)||ae}function Xe(e){let t=I.fetchers.get(e);!G.has(e)||t&&"loading"===t.state&&Z.has(e)||et(e),X.delete(e),Z.delete(e),Q.delete(e),te.delete(e),W.delete(e),I.fetchers.delete(e)}function et(e){let t=G.get(e);y(t,"Expected fetch controller: "+e),t.abort(),G.delete(e)}function tt(e){for(let t of e){let e=Ke(Qe(t).data);I.fetchers.set(t,e)}}function st(){let e=[],t=!1;for(let s of Q){let r=I.fetchers.get(s);y(r,"Expected fetcher: "+s),"loading"===r.state&&(Q.delete(s),e.push(s),t=!0)}return tt(e),t}function rt(e){let t=[];for(let[s,r]of Z)if(r<e){let e=I.fetchers.get(s);y(e,"Expected fetcher: "+s),"loading"===e.state&&(et(s),Z.delete(s),t.push(s))}return tt(t),t.length>0}function nt(e){I.blockers.delete(e),de.delete(e)}function at(e,t){let s=I.blockers.get(e)||oe;y("unblocked"===s.state&&"blocked"===t.state||"blocked"===s.state&&"blocked"===t.state||"blocked"===s.state&&"proceeding"===t.state||"blocked"===s.state&&"unblocked"===t.state||"proceeding"===s.state&&"unblocked"===t.state,"Invalid blocker state transition: "+s.state+" -> "+t.state);let r=new Map(I.blockers);r.set(e,t),fe({blockers:r})}function ot(e){let{currentLocation:t,nextLocation:s,historyAction:r}=e;if(0===de.size)return;de.size>1&&g(!1,"A router only supports one blocker at a time");let n=Array.from(de.entries()),[a,o]=n[n.length-1],i=I.blockers.get(a);return i&&"proceeding"===i.state?void 0:o({currentLocation:t,nextLocation:s,historyAction:r})?a:void 0}function it(e){let t=Ne(404,{pathname:e}),s=a||c,{matches:r,route:n}=Oe(s);return ct(),{notFoundMatches:r,route:n,error:t}}function lt(e,t){return{boundaryId:Re(t.partialMatches).route.id,error:Ne(400,{type:"route-discovery",pathname:e,message:null!=t.error&&"message"in t.error?t.error:String(t.error)})}}function ct(e){let t=[];return se.forEach(((s,r)=>{e&&!e(r)||(s.cancel(),t.push(r),se.delete(r))})),t}function dt(e,t){return O&&O(e,t.map((e=>function(e,t){let{route:s,pathname:r,params:n}=e;return{id:s.id,pathname:r,params:n,data:t[s.id],handle:s.handle}}(e,I.loaderData))))||e.key}function ut(e,t){if(R){let s=dt(e,t),r=R[s];if("number"==typeof r)return r}return null}function pt(e,t,s){if(p){if(S.has(s))return{active:!1,matches:e};if(!e)return{active:!0,matches:k(t,s,d,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:k(t,s,d,!0)}}return{active:!1,matches:null}}async function mt(e,t,s){let r=e;for(;;){let e=null==a,o=a||c;try{await ye(p,t,r,o,l,n,he,s)}catch(e){return{type:"error",error:e,partialMatches:r}}finally{e&&(c=[...c])}if(s.aborted)return{type:"aborted"};let i=C(o,t,d);if(i)return ht(t,S),{type:"success",matches:i};let u=k(o,t,d,!0);if(!u||r.length===u.length&&r.every(((e,t)=>e.route.id===u[t].route.id)))return ht(t,S),{type:"success",matches:null};r=u}}function ht(e,t){if(t.size>=w){let e=t.values().next().value;t.delete(e)}t.add(e)}return i={get basename(){return d},get future(){return f},get state(){return I},get routes(){return c},get window(){return t},initialize:function(){if(v=e.history.listen((t=>{let{action:s,location:r,delta:n}=t;if(A)return A(),void(A=void 0);g(0===de.size||null!=n,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let a=ot({currentLocation:I.location,nextLocation:r,historyAction:s});if(a&&null!=n){let t=new Promise((e=>{A=e}));return e.history.go(-1*n),void at(a,{state:"blocked",location:r,proceed(){at(a,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then((()=>e.history.go(n)))},reset(){let e=new Map(I.blockers);e.set(a,oe),fe({blockers:e})}})}return Ee(s,r)})),s){!function(e,t){try{let s=e.sessionStorage.getItem(ce);if(s){let e=JSON.parse(s);for(let[s,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(s,new Set(r||[]))}}catch(e){}}(t,U);let e=()=>function(e,t){if(t.size>0){let s={};for(let[e,r]of t)s[e]=[...r];try{e.sessionStorage.setItem(ce,JSON.stringify(s))}catch(e){g(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,U);t.addEventListener("pagehide",e),q=()=>t.removeEventListener("pagehide",e)}return I.initialized||Ee(h.Pop,I.location,{initialHydration:!0}),i},subscribe:function(e){return x.add(e),()=>x.delete(e)},enableScrollRestoration:function(e,t,s){if(R=e,N=t,O=s||null,!P&&I.navigation===ne){P=!0;let e=ut(I.location,I.matches);null!=e&&fe({restoreScrollPosition:e})}return()=>{R=null,N=null,O=null}},navigate:async function t(s,r){if("number"==typeof s)return void e.history.go(s);let n=ue(I.location,I.matches,d,f.v7_prependBasename,s,f.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:a,submission:o,error:i}=pe(f.v7_normalizeFormMethod,!1,n,r),l=I.location,c=b(I.location,a,r&&r.state);c=m({},c,e.history.encodeLocation(c));let u=r&&null!=r.replace?r.replace:void 0,p=h.Push;!0===u?p=h.Replace:!1===u||null!=o&&ze(o.formMethod)&&o.formAction===I.location.pathname+I.location.search&&(p=h.Replace);let y=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,g=!0===(r&&r.unstable_flushSync),v=ot({currentLocation:l,nextLocation:c,historyAction:p});if(!v)return await Ee(p,c,{submission:o,pendingError:i,preventScrollReset:y,replace:r&&r.replace,enableViewTransition:r&&r.unstable_viewTransition,flushSync:g});at(v,{state:"blocked",location:c,proceed(){at(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),t(s,r)},reset(){let e=new Map(I.blockers);e.set(v,oe),fe({blockers:e})}})},fetch:function(t,s,n,o){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");G.has(t)&&et(t);let i=!0===(o&&o.unstable_flushSync),l=a||c,u=ue(I.location,I.matches,d,f.v7_prependBasename,n,f.v7_relativeSplatPath,s,null==o?void 0:o.relative),p=C(l,u,d),m=pt(p,l,u);if(m.active&&m.matches&&(p=m.matches),!p)return void Je(t,s,Ne(404,{pathname:u}),{flushSync:i});let{path:h,submission:g,error:v}=pe(f.v7_normalizeFormMethod,!0,u,o);if(v)return void Je(t,s,v,{flushSync:i});let b=He(p,h);F=!0===(o&&o.preventScrollReset),g&&ze(g.formMethod)?async function(t,s,r,n,o,i,l,u){function p(e){if(!e.route.action&&!e.route.lazy){let e=Ne(405,{method:u.formMethod,pathname:r,routeId:s});return Je(t,s,e,{flushSync:l}),!0}return!1}if(Ye(),X.delete(t),!i&&p(n))return;let m=I.fetchers.get(t);Ze(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(u,m),{flushSync:l});let h=new AbortController,g=Se(e.history,r,h.signal,u);if(i){let e=await mt(o,r,g.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:n}=lt(r,e);return void Je(t,s,n,{flushSync:l})}if(!e.matches)return void Je(t,s,Ne(404,{pathname:r}),{flushSync:l});if(p(n=He(o=e.matches,r)))return}G.set(t,h);let v=K,b=(await Fe("action",0,g,[n],o,t))[n.route.id];if(g.signal.aborted)return void(G.get(t)===h&&G.delete(t));if(f.v7_fetcherPersist&&te.has(t)){if(Ie(b)||Ae(b))return void Ze(t,Ke(void 0))}else{if(Ie(b))return G.delete(t),Y>v?void Ze(t,Ke(void 0)):(Q.add(t),Ze(t,Ge(u)),De(g,b,!1,{fetcherSubmission:u}));if(Ae(b))return void Je(t,s,b.error)}if(Me(b))throw Ne(400,{type:"defer-action"});let x=I.navigation.location||I.location,w=Se(e.history,x,h.signal),S=a||c,_="idle"!==I.navigation.state?C(S,I.navigation.location,d):I.matches;y(_,"Didn't find any matches after fetcher action");let E=++K;Z.set(t,E);let j=Ge(u,b.data);I.fetchers.set(t,j);let[k,R]=me(e.history,I,_,u,x,!1,f.v7_skipActionErrorRevalidation,H,V,W,te,X,Q,S,d,[n.route.id,b]);R.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,s=I.fetchers.get(t),r=Ge(void 0,s?s.data:void 0);I.fetchers.set(t,r),G.has(t)&&et(t),e.controller&&G.set(t,e.controller)})),fe({fetchers:new Map(I.fetchers)});let O=()=>R.forEach((e=>et(e.key)));h.signal.addEventListener("abort",O);let{loaderResults:N,fetcherResults:P}=await $e(I,_,k,R,w);if(h.signal.aborted)return;h.signal.removeEventListener("abort",O),Z.delete(t),G.delete(t),R.forEach((e=>G.delete(e.key)));let T=Pe(N);if(T)return De(w,T.result,!1);if(T=Pe(P),T)return Q.add(T.key),De(w,T.result,!1);let{loaderData:L,errors:A}=je(I,_,0,N,void 0,R,P,se);if(I.fetchers.has(t)){let e=Ke(b.data);I.fetchers.set(t,e)}rt(E),"loading"===I.navigation.state&&E>Y?(y(D,"Expected pending action"),M&&M.abort(),_e(I.navigation.location,{matches:_,loaderData:L,errors:A,fetchers:new Map(I.fetchers)})):(fe({errors:A,loaderData:Ce(I.loaderData,L,_,A),fetchers:new Map(I.fetchers)}),H=!1)}(t,s,h,b,p,m.active,i,g):(X.set(t,{routeId:s,path:h}),async function(t,s,r,n,a,o,i,l){let c=I.fetchers.get(t);Ze(t,Ge(l,c?c.data:void 0),{flushSync:i});let d=new AbortController,u=Se(e.history,r,d.signal);if(o){let e=await mt(a,r,u.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:n}=lt(r,e);return void Je(t,s,n,{flushSync:i})}if(!e.matches)return void Je(t,s,Ne(404,{pathname:r}),{flushSync:i});n=He(a=e.matches,r)}G.set(t,d);let p=K,m=(await Fe("loader",0,u,[n],a,t))[n.route.id];if(Me(m)&&(m=await qe(m,u.signal,!0)||m),G.get(t)===d&&G.delete(t),!u.signal.aborted){if(!te.has(t))return Ie(m)?Y>p?void Ze(t,Ke(void 0)):(Q.add(t),void await De(u,m,!1)):void(Ae(m)?Je(t,s,m.error):(y(!Me(m),"Unhandled fetcher deferred data"),Ze(t,Ke(m.data))));Ze(t,Ke(void 0))}}(t,s,h,b,p,m.active,i,g))},revalidate:function(){Ye(),fe({revalidation:"loading"}),"submitting"!==I.navigation.state&&("idle"!==I.navigation.state?Ee(D||I.historyAction,I.navigation.location,{overrideNavigation:I.navigation,enableViewTransition:!0===z}):Ee(I.historyAction,I.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Qe,deleteFetcher:function(e){if(f.v7_fetcherPersist){let t=(ee.get(e)||0)-1;t<=0?(ee.delete(e),te.add(e)):ee.set(e,t)}else Xe(e);fe({fetchers:new Map(I.fetchers)})},dispose:function(){v&&v(),q&&q(),x.clear(),M&&M.abort(),I.fetchers.forEach(((e,t)=>Xe(t))),I.blockers.forEach(((e,t)=>nt(t)))},getBlocker:function(e,t){let s=I.blockers.get(e)||oe;return de.get(e)!==t&&de.set(e,t),s},deleteBlocker:nt,patchRoutes:function(e,t){let s=null==a;ge(e,t,a||c,l,n),s&&(c=[...c],fe({}))},_internalFetchControllers:G,_internalActiveDeferreds:se,_internalSetRoutes:function(e){l={},a=j(e,n,void 0,l)}},i}function ue(e,t,s,r,n,a,o,i){let l,c;if(o){l=[];for(let e of t)if(l.push(e),e.route.id===o){c=e;break}}else l=t,c=t[t.length-1];let d=V(n||".",H(l,a),B(e.pathname,s)||e.pathname,"path"===i);return null==n&&(d.search=e.search,d.hash=e.hash),null!=n&&""!==n&&"."!==n||!c||!c.route.index||$e(d.search)||(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==s&&(d.pathname="/"===d.pathname?s:W([s,d.pathname])),x(d)}function pe(e,t,s,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:s};if(r.formMethod&&(n=r.formMethod,!te.has(n.toLowerCase())))return{path:s,error:Ne(405,{method:r.formMethod})};var n;let a,o,i=()=>({path:s,error:Ne(400,{type:"invalid-body"})}),l=r.formMethod||"get",c=e?l.toUpperCase():l.toLowerCase(),d=Te(s);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!ze(c))return i();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce(((e,t)=>{let[s,r]=t;return""+e+s+"="+r+"\n"}),""):String(r.body);return{path:s,submission:{formMethod:c,formAction:d,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!ze(c))return i();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:s,submission:{formMethod:c,formAction:d,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(y("function"==typeof FormData,"FormData is not available in this environment"),r.formData)a=_e(r.formData),o=r.formData;else if(r.body instanceof FormData)a=_e(r.body),o=r.body;else if(r.body instanceof URLSearchParams)a=r.body,o=Ee(a);else if(null==r.body)a=new URLSearchParams,o=new FormData;else try{a=new URLSearchParams(r.body),o=Ee(a)}catch(e){return i()}let u={formMethod:c,formAction:d,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(ze(u.formMethod))return{path:s,submission:u};let p=w(s);return t&&p.search&&$e(p.search)&&a.append("index",""),p.search="?"+a,{path:x(p),submission:u}}function me(e,t,s,r,n,a,o,i,l,c,d,u,p,h,f,y){let g=y?Ae(y[1])?y[1].error:y[1].data:void 0,v=e.createURL(t.location),b=e.createURL(n),x=y&&Ae(y[1])?y[0]:void 0,w=x?function(e,t){let s=e;if(t){let r=e.findIndex((e=>e.route.id===t));r>=0&&(s=e.slice(0,r))}return s}(s,x):s,S=y?y[1].statusCode:void 0,_=o&&S&&S>=400,E=w.filter(((e,s)=>{let{route:n}=e;if(n.lazy)return!0;if(null==n.loader)return!1;if(a)return!("function"==typeof n.loader&&!n.loader.hydrate&&(void 0!==t.loaderData[n.id]||t.errors&&void 0!==t.errors[n.id]));if(function(e,t,s){let r=!t||s.route.id!==t.route.id,n=void 0===e[s.route.id];return r||n}(t.loaderData,t.matches[s],e)||l.some((t=>t===e.route.id)))return!0;let o=t.matches[s],c=e;return fe(e,m({currentUrl:v,currentParams:o.params,nextUrl:b,nextParams:c.params},r,{actionResult:g,actionStatus:S,defaultShouldRevalidate:!_&&(i||v.pathname+v.search===b.pathname+b.search||v.search!==b.search||he(o,c))}))})),j=[];return u.forEach(((e,n)=>{if(a||!s.some((t=>t.route.id===e.routeId))||d.has(n))return;let o=C(h,e.path,f);if(!o)return void j.push({key:n,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let l=t.fetchers.get(n),u=He(o,e.path),y=!1;p.has(n)?y=!1:c.has(n)?(c.delete(n),y=!0):y=l&&"idle"!==l.state&&void 0===l.data?i:fe(u,m({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:s[s.length-1].params},r,{actionResult:g,actionStatus:S,defaultShouldRevalidate:!_&&i})),y&&j.push({key:n,routeId:e.routeId,path:e.path,matches:o,match:u,controller:new AbortController})})),[E,j]}function he(e,t){let s=e.route.path;return e.pathname!==t.pathname||null!=s&&s.endsWith("*")&&e.params["*"]!==t.params["*"]}function fe(e,t){if(e.route.shouldRevalidate){let s=e.route.shouldRevalidate(t);if("boolean"==typeof s)return s}return t.defaultShouldRevalidate}async function ye(e,t,s,r,n,a,o,i){let l=[t,...s.map((e=>e.route.id))].join("-");try{let d=o.get(l);d||(d=e({path:t,matches:s,patch:(e,t)=>{i.aborted||ge(e,t,r,n,a)}}),o.set(l,d)),d&&"object"==typeof(c=d)&&null!=c&&"then"in c&&await d}finally{o.delete(l)}var c}function ge(e,t,s,r,n){if(e){var a;let s=r[e];y(s,"No route found to patch children into: routeId = "+e);let o=j(t,n,[e,"patch",String((null==(a=s.children)?void 0:a.length)||"0")],r);s.children?s.children.push(...o):s.children=o}else{let e=j(t,n,["patch",String(s.length||"0")],r);s.push(...e)}}async function ve(e){let{matches:t}=e,s=t.filter((e=>e.shouldLoad));return(await Promise.all(s.map((e=>e.resolve())))).reduce(((e,t,r)=>Object.assign(e,{[s[r].route.id]:t})),{})}async function be(e){let{result:t,type:s}=e;if(Fe(t)){let e;try{let s=t.headers.get("Content-Type");e=s&&/\bapplication\/json\b/.test(s)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:_.error,error:e}}return s===_.error?{type:_.error,error:new Z(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:_.data,data:e,statusCode:t.status,headers:t.headers}}if(s===_.error){if(De(t)){var r,n;if(t.data instanceof Error)return{type:_.error,error:t.data,statusCode:null==(n=t.init)?void 0:n.status};t=new Z((null==(r=t.init)?void 0:r.status)||500,void 0,t.data)}return{type:_.error,error:t,statusCode:J(t)?t.status:void 0}}var a,o,i,l;return function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:_.deferred,deferredData:t,statusCode:null==(a=t.init)?void 0:a.status,headers:(null==(o=t.init)?void 0:o.headers)&&new Headers(t.init.headers)}:De(t)?{type:_.data,data:t.data,statusCode:null==(i=t.init)?void 0:i.status,headers:null!=(l=t.init)&&l.headers?new Headers(t.init.headers):void 0}:{type:_.data,data:t}}function xe(e,t,s,r,n,a){let o=e.headers.get("Location");if(y(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!ie.test(o)){let i=r.slice(0,r.findIndex((e=>e.route.id===s))+1);o=ue(new URL(t.url),i,n,!0,o,a),e.headers.set("Location",o)}return e}function we(e,t,s){if(ie.test(e)){let r=e,n=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=null!=B(n.pathname,s);if(n.origin===t.origin&&a)return n.pathname+n.search+n.hash}return e}function Se(e,t,s,r){let n=e.createURL(Te(t)).toString(),a={signal:s};if(r&&ze(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=_e(r.formData):a.body=r.formData}return new Request(n,a)}function _e(e){let t=new URLSearchParams;for(let[s,r]of e.entries())t.append(s,"string"==typeof r?r:r.name);return t}function Ee(e){let t=new FormData;for(let[s,r]of e.entries())t.append(s,r);return t}function je(e,t,s,r,n,a,o,i){let{loaderData:l,errors:c}=function(e,t,s,r,n){let a,o={},i=null,l=!1,c={},d=s&&Ae(s[1])?s[1].error:void 0;return e.forEach((s=>{if(!(s.route.id in t))return;let u=s.route.id,p=t[u];if(y(!Ie(p),"Cannot handle redirect results in processLoaderData"),Ae(p)){let t=p.error;if(void 0!==d&&(t=d,d=void 0),i=i||{},n)i[u]=t;else{let s=Re(e,u);null==i[s.route.id]&&(i[s.route.id]=t)}o[u]=void 0,l||(l=!0,a=J(p.error)?p.error.status:500),p.headers&&(c[u]=p.headers)}else Me(p)?(r.set(u,p.deferredData),o[u]=p.deferredData.data,null==p.statusCode||200===p.statusCode||l||(a=p.statusCode),p.headers&&(c[u]=p.headers)):(o[u]=p.data,p.statusCode&&200!==p.statusCode&&!l&&(a=p.statusCode),p.headers&&(c[u]=p.headers))})),void 0!==d&&s&&(i={[s[0]]:d},o[s[0]]=void 0),{loaderData:o,errors:i,statusCode:a||200,loaderHeaders:c}}(t,r,n,i,!1);return a.forEach((t=>{let{key:s,match:r,controller:n}=t,a=o[s];if(y(a,"Did not find corresponding fetcher result"),!n||!n.signal.aborted)if(Ae(a)){let t=Re(e.matches,null==r?void 0:r.route.id);c&&c[t.route.id]||(c=m({},c,{[t.route.id]:a.error})),e.fetchers.delete(s)}else if(Ie(a))y(!1,"Unhandled fetcher revalidation redirect");else if(Me(a))y(!1,"Unhandled fetcher deferred data");else{let t=Ke(a.data);e.fetchers.set(s,t)}})),{loaderData:l,errors:c}}function Ce(e,t,s,r){let n=m({},t);for(let a of s){let s=a.route.id;if(t.hasOwnProperty(s)?void 0!==t[s]&&(n[s]=t[s]):void 0!==e[s]&&a.route.loader&&(n[s]=e[s]),r&&r.hasOwnProperty(s))break}return n}function ke(e){return e?Ae(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Re(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function Oe(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ne(e,t){let{pathname:s,routeId:r,method:n,type:a,message:o}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="Bad Request","route-discovery"===a?l='Unable to match URL "'+s+'" - the `unstable_patchRoutesOnNavigation()` function threw the following error:\n'+o:n&&s&&r?l="You made a "+n+' request to "'+s+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===a?l="defer() is not supported in actions":"invalid-body"===a&&(l="Unable to encode submission body")):403===e?(i="Forbidden",l='Route "'+r+'" does not match URL "'+s+'"'):404===e?(i="Not Found",l='No route matches URL "'+s+'"'):405===e&&(i="Method Not Allowed",n&&s&&r?l="You made a "+n.toUpperCase()+' request to "'+s+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':n&&(l='Invalid request method "'+n.toUpperCase()+'"')),new Z(e||500,i,new Error(l),!0)}function Pe(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[s,r]=t[e];if(Ie(r))return{key:s,result:r}}}function Te(e){return x(m({},"string"==typeof e?w(e):e,{hash:""}))}function Le(e){return Fe(e.result)&&se.has(e.result.status)}function Me(e){return e.type===_.deferred}function Ae(e){return e.type===_.error}function Ie(e){return(e&&e.type)===_.redirect}function De(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Fe(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function ze(e){return X.has(e.toLowerCase())}async function Ue(e,t,s,r,n){let a=Object.entries(t);for(let o=0;o<a.length;o++){let[i,l]=a[o],c=e.find((e=>(null==e?void 0:e.route.id)===i));if(!c)continue;let d=r.find((e=>e.route.id===c.route.id)),u=null!=d&&!he(d,c)&&void 0!==(n&&n[c.route.id]);Me(l)&&u&&await qe(l,s,!1).then((e=>{e&&(t[i]=e)}))}}async function Be(e,t,s){for(let r=0;r<s.length;r++){let{key:n,routeId:a,controller:o}=s[r],i=t[n];e.find((e=>(null==e?void 0:e.route.id)===a))&&Me(i)&&(y(o,"Expected an AbortController for revalidating fetcher deferred result"),await qe(i,o.signal,!0).then((e=>{e&&(t[n]=e)})))}}async function qe(e,t,s){if(void 0===s&&(s=!1),!await e.deferredData.resolveData(t)){if(s)try{return{type:_.data,data:e.deferredData.unwrappedData}}catch(e){return{type:_.error,error:e}}return{type:_.data,data:e.deferredData.data}}}function $e(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function He(e,t){let s="string"==typeof t?w(t).search:t.search;if(e[e.length-1].route.index&&$e(s||""))return e[e.length-1];let r=$(e);return r[r.length-1]}function Ve(e){let{formMethod:t,formAction:s,formEncType:r,text:n,formData:a,json:o}=e;if(t&&s&&r)return null!=n?{formMethod:t,formAction:s,formEncType:r,formData:void 0,json:void 0,text:n}:null!=a?{formMethod:t,formAction:s,formEncType:r,formData:a,json:void 0,text:void 0}:void 0!==o?{formMethod:t,formAction:s,formEncType:r,formData:void 0,json:o,text:void 0}:void 0}function We(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ge(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ke(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Ye(){return Ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ye.apply(this,arguments)}Symbol("deferred");const Ze=d.createContext(null),Je=d.createContext(null),Qe=d.createContext(null),Xe=d.createContext(null),et=d.createContext({outlet:null,matches:[],isDataRoute:!1}),tt=d.createContext(null);function st(){return null!=d.useContext(Xe)}function rt(){return st()||y(!1),d.useContext(Xe).location}function nt(e){d.useContext(Qe).static||d.useLayoutEffect(e)}function at(){let{isDataRoute:e}=d.useContext(et);return e?function(){let{router:e}=ft(mt.UseNavigateStable),t=gt(ht.UseNavigateStable),s=d.useRef(!1);return nt((()=>{s.current=!0})),d.useCallback((function(r,n){void 0===n&&(n={}),s.current&&("number"==typeof r?e.navigate(r):e.navigate(r,Ye({fromRouteId:t},n)))}),[e,t])}():function(){st()||y(!1);let e=d.useContext(Ze),{basename:t,future:s,navigator:r}=d.useContext(Qe),{matches:n}=d.useContext(et),{pathname:a}=rt(),o=JSON.stringify(H(n,s.v7_relativeSplatPath)),i=d.useRef(!1);return nt((()=>{i.current=!0})),d.useCallback((function(s,n){if(void 0===n&&(n={}),!i.current)return;if("number"==typeof s)return void r.go(s);let l=V(s,JSON.parse(o),a,"path"===n.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:W([t,l.pathname])),(n.replace?r.replace:r.push)(l,n.state,n)}),[t,r,o,a,e])}()}const ot=d.createContext(null);function it(e,t){let{relative:s}=void 0===t?{}:t,{future:r}=d.useContext(Qe),{matches:n}=d.useContext(et),{pathname:a}=rt(),o=JSON.stringify(H(n,r.v7_relativeSplatPath));return d.useMemo((()=>V(e,JSON.parse(o),a,"path"===s)),[e,o,a,s])}function lt(e,t,s,r){st()||y(!1);let{navigator:n}=d.useContext(Qe),{matches:a}=d.useContext(et),o=a[a.length-1],i=o?o.params:{},l=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;let c,u=rt();if(t){var p;let e="string"==typeof t?w(t):t;"/"===l||(null==(p=e.pathname)?void 0:p.startsWith(l))||y(!1),c=e}else c=u;let m=c.pathname||"/",f=m;if("/"!==l){let e=l.replace(/^\//,"").split("/");f="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=C(e,{pathname:f}),v=function(e,t,s,r){var n;if(void 0===t&&(t=[]),void 0===s&&(s=null),void 0===r&&(r=null),null==e){var a;if(!s)return null;if(s.errors)e=s.matches;else{if(!(null!=(a=r)&&a.v7_partialHydration&&0===t.length&&!s.initialized&&s.matches.length>0))return null;e=s.matches}}let o=e,i=null==(n=s)?void 0:n.errors;if(null!=i){let e=o.findIndex((e=>e.route.id&&void 0!==(null==i?void 0:i[e.route.id])));e>=0||y(!1),o=o.slice(0,Math.min(o.length,e+1))}let l=!1,c=-1;if(s&&r&&r.v7_partialHydration)for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=s,n=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||n){l=!0,o=c>=0?o.slice(0,c+1):[o[0]];break}}}return o.reduceRight(((e,r,n)=>{let a,u=!1,p=null,m=null;var h;s&&(a=i&&r.route.id?i[r.route.id]:void 0,p=r.route.errorElement||dt,l&&(c<0&&0===n?(xt[h="route-fallback"]||(xt[h]=!0),u=!0,m=null):c===n&&(u=!0,m=r.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,n+1)),y=()=>{let t;return t=a?p:u?m:r.route.Component?d.createElement(r.route.Component,null):r.route.element?r.route.element:e,d.createElement(pt,{match:r,routeContext:{outlet:e,matches:f,isDataRoute:null!=s},children:t})};return s&&(r.route.ErrorBoundary||r.route.errorElement||0===n)?d.createElement(ut,{location:s.location,revalidation:s.revalidation,component:p,error:a,children:y(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):y()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},i,e.params),pathname:W([l,n.encodeLocation?n.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:W([l,n.encodeLocation?n.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,s,r);return t&&v?d.createElement(Xe.Provider,{value:{location:Ye({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:h.Pop}},v):v}function ct(){let e=vt(),t=J(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),s=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),s?d.createElement("pre",{style:r},s):null,null)}const dt=d.createElement(ct,null);class ut extends d.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?d.createElement(et.Provider,{value:this.props.routeContext},d.createElement(tt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function pt(e){let{routeContext:t,match:s,children:r}=e,n=d.useContext(Ze);return n&&n.static&&n.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=s.route.id),d.createElement(et.Provider,{value:t},r)}var mt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(mt||{}),ht=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ht||{});function ft(e){let t=d.useContext(Ze);return t||y(!1),t}function yt(e){let t=d.useContext(Je);return t||y(!1),t}function gt(e){let t=function(e){let t=d.useContext(et);return t||y(!1),t}(),s=t.matches[t.matches.length-1];return s.route.id||y(!1),s.route.id}function vt(){var e;let t=d.useContext(tt),s=yt(ht.UseRouteError),r=gt(ht.UseRouteError);return void 0!==t?t:null==(e=s.errors)?void 0:e[r]}let bt=0;const xt={};function wt(e){let{to:t,replace:s,state:r,relative:n}=e;st()||y(!1);let{future:a,static:o}=d.useContext(Qe),{matches:i}=d.useContext(et),{pathname:l}=rt(),c=at(),u=V(t,H(i,a.v7_relativeSplatPath),l,"path"===n),p=JSON.stringify(u);return d.useEffect((()=>c(JSON.parse(p),{replace:s,state:r,relative:n})),[c,p,n,s,r]),null}function St(e){return function(e){let t=d.useContext(et).outlet;return t?d.createElement(ot.Provider,{value:e},t):t}(e.context)}function _t(e){y(!1)}function Et(e){let{basename:t="/",children:s=null,location:r,navigationType:n=h.Pop,navigator:a,static:o=!1,future:i}=e;st()&&y(!1);let l=t.replace(/^\/*/,"/"),c=d.useMemo((()=>({basename:l,navigator:a,static:o,future:Ye({v7_relativeSplatPath:!1},i)})),[l,i,a,o]);"string"==typeof r&&(r=w(r));let{pathname:u="/",search:p="",hash:m="",state:f=null,key:g="default"}=r,v=d.useMemo((()=>{let e=B(u,l);return null==e?null:{location:{pathname:e,search:p,hash:m,state:f,key:g},navigationType:n}}),[l,u,p,m,f,g,n]);return null==v?null:d.createElement(Qe.Provider,{value:c},d.createElement(Xe.Provider,{children:s,value:v}))}function jt(e,t){void 0===t&&(t=[]);let s=[];return d.Children.forEach(e,((e,r)=>{if(!d.isValidElement(e))return;let n=[...t,r];if(e.type===d.Fragment)return void s.push.apply(s,jt(e.props.children,n));e.type!==_t&&y(!1),e.props.index&&e.props.children&&y(!1);let a={id:e.props.id||n.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=jt(e.props.children,n)),s.push(a)})),s}function Ct(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function kt(){return kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},kt.apply(this,arguments)}d.startTransition,new Promise((()=>{})),d.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Rt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch($a){}function Ot(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=kt({},t,{errors:Nt(t.errors)})),t}function Nt(e){if(!e)return null;let t=Object.entries(e),s={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)s[e]=new Z(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let n=new t(r.message);n.stack="",s[e]=n}catch(e){}}if(null==s[e]){let t=new Error(r.message);t.stack="",s[e]=t}}else s[e]=r;return s}const Pt=d.createContext({isTransitioning:!1}),Tt=d.createContext(new Map),Lt=d.startTransition,Mt=p.flushSync;function At(e){Mt?Mt(e):e()}d.useId;class It{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}function Dt(e){let{fallbackElement:t,router:s,future:r}=e,[n,a]=d.useState(s.state),[o,i]=d.useState(),[l,c]=d.useState({isTransitioning:!1}),[u,p]=d.useState(),[m,h]=d.useState(),[f,y]=d.useState(),g=d.useRef(new Map),{v7_startTransition:v}=r||{},b=d.useCallback((e=>{v?function(e){Lt?Lt(e):e()}(e):e()}),[v]),x=d.useCallback(((e,t)=>{let{deletedFetchers:r,unstable_flushSync:n,unstable_viewTransitionOpts:o}=t;r.forEach((e=>g.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)}));let l=null==s.window||null==s.window.document||"function"!=typeof s.window.document.startViewTransition;if(o&&!l){if(n){At((()=>{m&&(u&&u.resolve(),m.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})}));let t=s.window.document.startViewTransition((()=>{At((()=>a(e)))}));return t.finished.finally((()=>{At((()=>{p(void 0),h(void 0),i(void 0),c({isTransitioning:!1})}))})),void At((()=>h(t)))}m?(u&&u.resolve(),m.skipTransition(),y({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(i(e),c({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else n?At((()=>a(e))):b((()=>a(e)))}),[s.window,m,u,g,b]);d.useLayoutEffect((()=>s.subscribe(x)),[s,x]),d.useEffect((()=>{l.isTransitioning&&!l.flushSync&&p(new It)}),[l]),d.useEffect((()=>{if(u&&o&&s.window){let e=o,t=u.promise,r=s.window.document.startViewTransition((async()=>{b((()=>a(e))),await t}));r.finished.finally((()=>{p(void 0),h(void 0),i(void 0),c({isTransitioning:!1})})),h(r)}}),[b,o,u,s.window]),d.useEffect((()=>{u&&o&&n.location.key===o.location.key&&u.resolve()}),[u,m,n.location,o]),d.useEffect((()=>{!l.isTransitioning&&f&&(i(f.state),c({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}),y(void 0))}),[l.isTransitioning,f]),d.useEffect((()=>{}),[]);let w=d.useMemo((()=>({createHref:s.createHref,encodeLocation:s.encodeLocation,go:e=>s.navigate(e),push:(e,t,r)=>s.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>s.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})})),[s]),S=s.basename||"/",_=d.useMemo((()=>({router:s,navigator:w,static:!1,basename:S})),[s,w,S]),E=d.useMemo((()=>({v7_relativeSplatPath:s.future.v7_relativeSplatPath})),[s.future.v7_relativeSplatPath]);return d.createElement(d.Fragment,null,d.createElement(Ze.Provider,{value:_},d.createElement(Je.Provider,{value:n},d.createElement(Tt.Provider,{value:g.current},d.createElement(Pt.Provider,{value:l},d.createElement(Et,{basename:S,location:n.location,navigationType:n.historyAction,navigator:w,future:E},n.initialized||s.future.v7_partialHydration?d.createElement(Ft,{routes:s.routes,future:s.future,state:n}):t))))),null)}const Ft=d.memo(zt);function zt(e){let{routes:t,future:s,state:r}=e;return lt(t,void 0,r,s)}const Ut="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Bt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qt=d.forwardRef((function(e,t){let s,{onClick:r,relative:n,reloadDocument:a,replace:o,state:i,target:l,to:c,preventScrollReset:u,unstable_viewTransition:p}=e,m=function(e,t){if(null==e)return{};var s,r,n={},a=Object.keys(e);for(r=0;r<a.length;r++)s=a[r],t.indexOf(s)>=0||(n[s]=e[s]);return n}(e,Rt),{basename:h}=d.useContext(Qe),f=!1;if("string"==typeof c&&Bt.test(c)&&(s=c,Ut))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),s=B(t.pathname,h);t.origin===e.origin&&null!=s?c=s+t.search+t.hash:f=!0}catch(e){}let g=function(e,t){let{relative:s}=void 0===t?{}:t;st()||y(!1);let{basename:r,navigator:n}=d.useContext(Qe),{hash:a,pathname:o,search:i}=it(e,{relative:s}),l=o;return"/"!==r&&(l="/"===o?r:W([r,o])),n.createHref({pathname:l,search:i,hash:a})}(c,{relative:n}),v=function(e,t){let{target:s,replace:r,state:n,preventScrollReset:a,relative:o,unstable_viewTransition:i}=void 0===t?{}:t,l=at(),c=rt(),u=it(e,{relative:o});return d.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,s)){t.preventDefault();let s=void 0!==r?r:x(c)===x(u);l(e,{replace:s,state:n,preventScrollReset:a,relative:o,unstable_viewTransition:i})}}),[c,l,u,r,n,s,e,a,o,i])}(c,{replace:o,state:i,target:l,preventScrollReset:u,relative:n,unstable_viewTransition:p});return d.createElement("a",kt({},m,{href:s||g,onClick:f||a?r:function(e){r&&r(e),e.defaultPrevented||v(e)},ref:t,target:l}))}));var $t,Ht;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($t||($t={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Ht||(Ht={}));const Vt=window.wp.i18n,Wt=(e,t)=>{try{return(0,o.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},Gt=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));var Kt=s(5890),Yt=s.n(Kt);const Zt=window.ReactJSXRuntime,Jt=({link:e})=>{const t=(0,o.useMemo)((()=>Wt((0,Vt.sprintf)(/* translators: %1$s expands to "Yoast SEO" academy, which is a clickable link. */ +(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var a=typeof s;if("string"===a||"number"===a)e.push(s);else if(Array.isArray(s)){if(s.length){var o=n.apply(null,s);o&&e.push(o)}}else if("object"===a){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var i in s)r.call(s,i)&&s[i]&&e.push(i)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(s=function(){return n}.apply(t,[]))||(e.exports=s)}()},8133:(e,t,s)=>{"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},a=function(){function e(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,s,r){return s&&e(t.prototype,s),r&&e(t,r),t}}(),o=c(s(9196)),i=c(s(5890)),l=c(s(4306));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var u={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"},p=["animateOpacity","animationStateClasses","applyInlineTransitions","children","contentClassName","delay","duration","easing","height","onAnimationEnd","onAnimationStart"];function m(e){for(var t=arguments.length,s=Array(t>1?t-1:0),r=1;r<t;r++)s[r-1]=arguments[r];if(!s.length)return e;for(var n={},a=Object.keys(e),o=0;o<a.length;o++){var i=a[o];-1===s.indexOf(i)&&(n[i]=e[i])}return n}function h(e){e.forEach((function(e){return cancelAnimationFrame(e)}))}function f(e){return!isNaN(parseFloat(e))&&isFinite(e)}function y(e){return"string"==typeof e&&e.search("%")===e.length-1&&f(e.substr(0,e.length-1))}function g(e,t){e&&"function"==typeof e&&e(t)}var v=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));s.animationFrameIDs=[];var r="auto",a="visible";f(e.height)?(r=e.height<0||"0"===e.height?0:e.height,a="hidden"):y(e.height)&&(r="0%"===e.height?0:e.height,a="hidden"),s.animationStateClasses=n({},u,e.animationStateClasses);var o=s.getStaticStateClasses(r);return s.state={animationStateClasses:o,height:r,overflow:a,shouldUseTransitions:!1},s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this.state.height;this.contentElement&&this.contentElement.style&&this.hideContent(e)}},{key:"componentDidUpdate",value:function(e,t){var s,r,n=this,a=this.props,o=a.delay,i=a.duration,c=a.height,u=a.onAnimationEnd,p=a.onAnimationStart;if(this.contentElement&&c!==e.height){var m;this.showContent(t.height),this.contentElement.style.overflow="hidden";var v=this.contentElement.offsetHeight;this.contentElement.style.overflow="";var b=i+o,x=null,w={height:null,overflow:"hidden"},S="auto"===t.height;f(c)?(x=c<0||"0"===c?0:c,w.height=x):y(c)?(x="0%"===c?0:c,w.height=x):(x=v,w.height="auto",w.overflow=null),S&&(w.height=x,x=v);var _=(0,l.default)((d(m={},this.animationStateClasses.animating,!0),d(m,this.animationStateClasses.animatingUp,"auto"===e.height||c<e.height),d(m,this.animationStateClasses.animatingDown,"auto"===c||c>e.height),d(m,this.animationStateClasses.animatingToHeightZero,0===w.height),d(m,this.animationStateClasses.animatingToHeightAuto,"auto"===w.height),d(m,this.animationStateClasses.animatingToHeightSpecific,w.height>0),m)),E=this.getStaticStateClasses(w.height);this.setState({animationStateClasses:_,height:x,overflow:"hidden",shouldUseTransitions:!S}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),S?(w.shouldUseTransitions=!0,h(this.animationFrameIDs),this.animationFrameIDs=(s=function(){n.setState(w),g(p,{newHeight:w.height})},(r=[])[0]=requestAnimationFrame((function(){r[1]=requestAnimationFrame((function(){s()}))})),r),this.animationClassesTimeoutID=setTimeout((function(){n.setState({animationStateClasses:E,shouldUseTransitions:!1}),n.hideContent(w.height),g(u,{newHeight:w.height})}),b)):(g(p,{newHeight:x}),this.timeoutID=setTimeout((function(){w.animationStateClasses=E,w.shouldUseTransitions=!1,n.setState(w),"auto"!==c&&n.hideContent(x),g(u,{newHeight:x})}),b))}}},{key:"componentWillUnmount",value:function(){h(this.animationFrameIDs),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null,this.animationClassesTimeoutID=null,this.animationStateClasses=null}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,l.default)((d(t={},this.animationStateClasses.static,!0),d(t,this.animationStateClasses.staticHeightZero,0===e),d(t,this.animationStateClasses.staticHeightSpecific,e>0),d(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,s=this.props,r=s.animateOpacity,a=s.applyInlineTransitions,i=s.children,c=s.className,u=s.contentClassName,h=s.delay,f=s.duration,y=s.easing,g=s.id,v=s.style,b=this.state,x=b.height,w=b.overflow,S=b.animationStateClasses,_=b.shouldUseTransitions,E=n({},v,{height:x,overflow:w||v.overflow});_&&a&&(E.transition="height "+f+"ms "+y+" "+h+"ms",v.transition&&(E.transition=v.transition+", "+E.transition),E.WebkitTransition=E.transition);var j={};r&&(j.transition="opacity "+f+"ms "+y+" "+h+"ms",j.WebkitTransition=j.transition,0===x&&(j.opacity=0));var k=(0,l.default)((d(e={},S,!0),d(e,c,c),e)),C=void 0!==this.props["aria-hidden"]?this.props["aria-hidden"]:0===x;return o.default.createElement("div",n({},m.apply(void 0,[this.props].concat(p)),{"aria-hidden":C,className:k,id:g,style:E}),o.default.createElement("div",{className:u,style:j,ref:function(e){return t.contentElement=e}},i))}}]),t}(o.default.Component);v.propTypes={"aria-hidden":i.default.bool,animateOpacity:i.default.bool,animationStateClasses:i.default.object,applyInlineTransitions:i.default.bool,children:i.default.any.isRequired,className:i.default.string,contentClassName:i.default.string,delay:i.default.number,duration:i.default.number,easing:i.default.string,height:function(e,t,s){var n=e[t];return"number"==typeof n&&n>=0||y(n)||"auto"===n?null:new TypeError('value "'+n+'" of type "'+(void 0===n?"undefined":r(n))+'" is invalid type for '+t+" in "+s+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},id:i.default.string,onAnimationEnd:i.default.func,onAnimationStart:i.default.func,style:i.default.object},v.defaultProps={animateOpacity:!1,animationStateClasses:u,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.Z=v},4306:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var a=typeof s;if("string"===a||"number"===a)e.push(s);else if(Array.isArray(s)&&s.length){var o=n.apply(null,s);o&&e.push(o)}else if("object"===a)for(var i in s)r.call(s,i)&&s[i]&&e.push(i)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(s=function(){return n}.apply(t,[]))||(e.exports=s)}()},591:e=>{for(var t=[],s=0;s<256;++s)t[s]=(s+256).toString(16).substr(1);e.exports=function(e,s){var r=s||0,n=t;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}},9176:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var s=new Uint8Array(16);e.exports=function(){return t(s),s}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},3409:(e,t,s)=>{var r=s(9176),n=s(591);e.exports=function(e,t,s){var a=t&&s||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[a+i]=o[i];return t||n(o)}},9196:e=>{"use strict";e.exports=window.React},5890:e=>{"use strict";e.exports=window.yoast.propTypes}},t={};function s(r){var n=t[r];if(void 0!==n)return n.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,s),a.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};s.r(e),s.d(e,{DISMISS_ALERT:()=>gp});const t=window.wp.components,r=window.wp.data,n=window.wp.domReady;var a=s.n(n);const o=window.wp.element,i=window.yoast.dashboardFrontend,l=window.yoast.uiLibrary,c=window.lodash;var d=s(9196),u=s.n(d);const p=window.ReactDOM;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},m.apply(this,arguments)}var h;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(h||(h={}));const f="popstate";function y(e,t){if(!1===e||null==e)throw new Error(t)}function g(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function v(e,t){return{usr:e.state,key:e.key,idx:t}}function b(e,t,s,r){return void 0===s&&(s=null),m({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?w(t):t,{state:s,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function x(e){let{pathname:t="/",search:s="",hash:r=""}=e;return s&&"?"!==s&&(t+="?"===s.charAt(0)?s:"?"+s),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function w(e){let t={};if(e){let s=e.indexOf("#");s>=0&&(t.hash=e.substr(s),e=e.substr(0,s));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function S(e,t,s,r){void 0===r&&(r={});let{window:n=document.defaultView,v5Compat:a=!1}=r,o=n.history,i=h.Pop,l=null,c=d();function d(){return(o.state||{idx:null}).idx}function u(){i=h.Pop;let e=d(),t=null==e?null:e-c;c=e,l&&l({action:i,location:g.location,delta:t})}function p(e){let t="null"!==n.location.origin?n.location.origin:n.location.href,s="string"==typeof e?e:x(e);return s=s.replace(/ $/,"%20"),y(t,"No window.location.(origin|href) available to create URL for href: "+s),new URL(s,t)}null==c&&(c=0,o.replaceState(m({},o.state,{idx:c}),""));let g={get action(){return i},get location(){return e(n,o)},listen(e){if(l)throw new Error("A history only accepts one active listener");return n.addEventListener(f,u),l=e,()=>{n.removeEventListener(f,u),l=null}},createHref:e=>t(n,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){i=h.Push;let r=b(g.location,e,t);s&&s(r,e),c=d()+1;let u=v(r,c),p=g.createHref(r);try{o.pushState(u,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;n.location.assign(p)}a&&l&&l({action:i,location:g.location,delta:1})},replace:function(e,t){i=h.Replace;let r=b(g.location,e,t);s&&s(r,e),c=d();let n=v(r,c),u=g.createHref(r);o.replaceState(n,"",u),a&&l&&l({action:i,location:g.location,delta:0})},go:e=>o.go(e)};return g}var _;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(_||(_={}));const E=new Set(["lazy","caseSensitive","path","id","index","children"]);function j(e,t,s,r){return void 0===s&&(s=[]),void 0===r&&(r={}),e.map(((e,n)=>{let a=[...s,String(n)],o="string"==typeof e.id?e.id:a.join("-");if(y(!0!==e.index||!e.children,"Cannot specify children on an index route"),y(!r[o],'Found a route id collision on id "'+o+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let s=m({},e,t(e),{id:o});return r[o]=s,s}{let s=m({},e,t(e),{id:o,children:void 0});return r[o]=s,e.children&&(s.children=j(e.children,t,a,r)),s}}))}function k(e,t,s){return void 0===s&&(s="/"),C(e,t,s,!1)}function C(e,t,s,r){let n=B(("string"==typeof t?w(t):t).pathname||"/",s);if(null==n)return null;let a=R(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let s=e.length===t.length&&e.slice(0,-1).every(((e,s)=>e===t[s]));return s?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let o=null;for(let e=0;null==o&&e<a.length;++e){let t=U(n);o=F(a[e],t,r)}return o}function R(e,t,s,r){void 0===t&&(t=[]),void 0===s&&(s=[]),void 0===r&&(r="");let n=(e,n,a)=>{let o={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:n,route:e};o.relativePath.startsWith("/")&&(y(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));let i=W([r,o.relativePath]),l=s.concat(o);e.children&&e.children.length>0&&(y(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+i+'".'),R(e.children,t,l,i)),(null!=e.path||e.index)&&t.push({path:i,score:D(i,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var s;if(""!==e.path&&null!=(s=e.path)&&s.includes("?"))for(let s of N(e.path))n(e,t,s);else n(e,t)})),t}function N(e){let t=e.split("/");if(0===t.length)return[];let[s,...r]=t,n=s.endsWith("?"),a=s.replace(/\?$/,"");if(0===r.length)return n?[a,""]:[a];let o=N(r.join("/")),i=[];return i.push(...o.map((e=>""===e?a:[a,e].join("/")))),n&&i.push(...o),i.map((t=>e.startsWith("/")&&""===t?"/":t))}const P=/^:[\w-]+$/,O=3,T=2,L=1,M=10,A=-2,I=e=>"*"===e;function D(e,t){let s=e.split("/"),r=s.length;return s.some(I)&&(r+=A),t&&(r+=T),s.filter((e=>!I(e))).reduce(((e,t)=>e+(P.test(t)?O:""===t?L:M)),r)}function F(e,t,s){void 0===s&&(s=!1);let{routesMeta:r}=e,n={},a="/",o=[];for(let e=0;e<r.length;++e){let i=r[e],l=e===r.length-1,c="/"===a?t:t.slice(a.length)||"/",d=z({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},c),u=i.route;if(!d&&l&&s&&!r[r.length-1].route.index&&(d=z({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},c)),!d)return null;Object.assign(n,d.params),o.push({params:n,pathname:W([a,d.pathname]),pathnameBase:G(W([a,d.pathnameBase])),route:u}),"/"!==d.pathnameBase&&(a=W([a,d.pathnameBase]))}return o}function z(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[s,r]=function(e,t,s){void 0===t&&(t=!1),void 0===s&&(s=!0),g("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,s)=>(r.push({paramName:t,isOptional:null!=s}),s?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),n+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?n+="\\/*$":""!==e&&"/"!==e&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),n=t.match(s);if(!n)return null;let a=n[0],o=a.replace(/(.)\/+$/,"$1"),i=n.slice(1);return{params:r.reduce(((e,t,s)=>{let{paramName:r,isOptional:n}=t;if("*"===r){let e=i[s]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=i[s];return e[r]=n&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:o,pattern:e}}function U(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return g(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function B(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let s=t.endsWith("/")?t.length-1:t.length,r=e.charAt(s);return r&&"/"!==r?null:e.slice(s)||"/"}function q(e,t,s,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+s+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function $(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function H(e,t){let s=$(e);return t?s.map(((e,t)=>t===s.length-1?e.pathname:e.pathnameBase)):s.map((e=>e.pathnameBase))}function V(e,t,s,r){let n;void 0===r&&(r=!1),"string"==typeof e?n=w(e):(n=m({},e),y(!n.pathname||!n.pathname.includes("?"),q("?","pathname","search",n)),y(!n.pathname||!n.pathname.includes("#"),q("#","pathname","hash",n)),y(!n.search||!n.search.includes("#"),q("#","search","hash",n)));let a,o=""===e||""===n.pathname,i=o?"/":n.pathname;if(null==i)a=s;else{let e=t.length-1;if(!r&&i.startsWith("..")){let t=i.split("/");for(;".."===t[0];)t.shift(),e-=1;n.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:s,search:r="",hash:n=""}="string"==typeof e?w(e):e,a=s?s.startsWith("/")?s:function(e,t){let s=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?s.length>1&&s.pop():"."!==e&&s.push(e)})),s.length>1?s.join("/"):"/"}(s,t):t;return{pathname:a,search:K(r),hash:Y(n)}}(n,a),c=i&&"/"!==i&&i.endsWith("/"),d=(o||"."===i)&&s.endsWith("/");return l.pathname.endsWith("/")||!c&&!d||(l.pathname+="/"),l}const W=e=>e.join("/").replace(/\/\/+/g,"/"),G=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),K=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Y=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class Z{constructor(e,t,s,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}}function J(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const Q=["post","put","patch","delete"],X=new Set(Q),ee=["get",...Q],te=new Set(ee),se=new Set([301,302,303,307,308]),re=new Set([307,308]),ne={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ae={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oe={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,le=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ce="remix-router-transitions";function de(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,s=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,r=!s;let n;if(y(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)n=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;n=e=>({hasErrorBoundary:t(e)})}else n=le;let a,o,i,l={},c=j(e.routes,n,void 0,l),d=e.basename||"/",u=e.unstable_dataStrategy||ve,p=e.unstable_patchRoutesOnNavigation,f=m({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),v=null,x=new Set,w=1e3,S=new Set,R=null,N=null,P=null,O=null!=e.hydrationData,T=k(c,e.history.location,d),L=null;if(null==T&&!p){let t=Pe(404,{pathname:e.history.location.pathname}),{matches:s,route:r}=Ne(c);T=s,L={[r.id]:t}}if(T&&!e.hydrationData&&pt(T,c,e.history.location.pathname).active&&(T=null),T)if(T.some((e=>e.route.lazy)))o=!1;else if(T.some((e=>e.route.loader)))if(f.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,s=e.hydrationData?e.hydrationData.errors:null,r=e=>!e.route.loader||("function"!=typeof e.route.loader||!0!==e.route.loader.hydrate)&&(t&&void 0!==t[e.route.id]||s&&void 0!==s[e.route.id]);if(s){let e=T.findIndex((e=>void 0!==s[e.route.id]));o=T.slice(0,e+1).every(r)}else o=T.every(r)}else o=null!=e.hydrationData;else o=!0;else if(o=!1,T=[],f.v7_partialHydration){let t=pt(null,c,e.history.location.pathname);t.active&&t.matches&&(T=t.matches)}let M,A,I={historyAction:e.history.action,location:e.history.location,matches:T,initialized:o,navigation:ne,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||L,fetchers:new Map,blockers:new Map},D=h.Pop,F=!1,z=!1,U=new Map,q=null,$=!1,H=!1,V=[],W=new Set,G=new Map,K=0,Y=-1,Z=new Map,Q=new Set,X=new Map,ee=new Map,te=new Set,se=new Map,de=new Map,he=new Map;function fe(e,t){void 0===t&&(t={}),I=m({},I,e);let s=[],r=[];f.v7_fetcherPersist&&I.fetchers.forEach(((e,t)=>{"idle"===e.state&&(te.has(t)?r.push(t):s.push(t))})),[...x].forEach((e=>e(I,{deletedFetchers:r,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),f.v7_fetcherPersist&&(s.forEach((e=>I.fetchers.delete(e))),r.forEach((e=>Xe(e))))}function _e(t,s,r){var n,o;let i,{flushSync:l}=void 0===r?{}:r,d=null!=I.actionData&&null!=I.navigation.formMethod&&ze(I.navigation.formMethod)&&"loading"===I.navigation.state&&!0!==(null==(n=t.state)?void 0:n._isRedirect);i=s.actionData?Object.keys(s.actionData).length>0?s.actionData:null:d?I.actionData:null;let u=s.loaderData?ke(I.loaderData,s.loaderData,s.matches||[],s.errors):I.loaderData,p=I.blockers;p.size>0&&(p=new Map(p),p.forEach(((e,t)=>p.set(t,oe))));let f,y=!0===F||null!=I.navigation.formMethod&&ze(I.navigation.formMethod)&&!0!==(null==(o=t.state)?void 0:o._isRedirect);if(a&&(c=a,a=void 0),$||D===h.Pop||(D===h.Push?e.history.push(t,t.state):D===h.Replace&&e.history.replace(t,t.state)),D===h.Pop){let e=U.get(I.location.pathname);e&&e.has(t.pathname)?f={currentLocation:I.location,nextLocation:t}:U.has(t.pathname)&&(f={currentLocation:t,nextLocation:I.location})}else if(z){let e=U.get(I.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),U.set(I.location.pathname,e)),f={currentLocation:I.location,nextLocation:t}}fe(m({},s,{actionData:i,loaderData:u,historyAction:D,location:t,initialized:!0,navigation:ne,revalidation:"idle",restoreScrollPosition:ut(t,s.matches||I.matches),preventScrollReset:y,blockers:p}),{viewTransitionOpts:f,flushSync:!0===l}),D=h.Pop,F=!1,z=!1,$=!1,H=!1,V=[]}async function Ee(t,s,r){M&&M.abort(),M=null,D=t,$=!0===(r&&r.startUninterruptedRevalidation),function(e,t){if(R&&P){let s=dt(e,t);R[s]=P()}}(I.location,I.matches),F=!0===(r&&r.preventScrollReset),z=!0===(r&&r.enableViewTransition);let n=a||c,o=r&&r.overrideNavigation,i=k(n,s,d),l=!0===(r&&r.flushSync),u=pt(i,n,s.pathname);if(u.active&&u.matches&&(i=u.matches),!i){let{error:e,notFoundMatches:t,route:r}=it(s.pathname);return void _e(s,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l})}if(I.initialized&&!H&&(p=I.location,y=s,p.pathname===y.pathname&&p.search===y.search&&(""===p.hash?""!==y.hash:p.hash===y.hash||""!==y.hash))&&!(r&&r.submission&&ze(r.submission.formMethod)))return void _e(s,{matches:i},{flushSync:l});var p,y;M=new AbortController;let g,v=Se(e.history,s,M.signal,r&&r.submission);if(r&&r.pendingError)g=[Re(i).route.id,{type:_.error,error:r.pendingError}];else if(r&&r.submission&&ze(r.submission.formMethod)){let t=await async function(e,t,s,r,n,a){void 0===a&&(a={}),Ye();let o,i=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(t,s);if(fe({navigation:i},{flushSync:!0===a.flushSync}),n){let s=await mt(r,t.pathname,e.signal);if("aborted"===s.type)return{shortCircuited:!0};if("error"===s.type){let{boundaryId:e,error:r}=lt(t.pathname,s);return{matches:s.partialMatches,pendingActionResult:[e,{type:_.error,error:r}]}}if(!s.matches){let{notFoundMatches:e,error:s,route:r}=it(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:_.error,error:s}]}}r=s.matches}let l=He(r,t);if(l.route.action||l.route.lazy){if(o=(await Fe("action",I,e,[l],r,null))[l.route.id],e.signal.aborted)return{shortCircuited:!0}}else o={type:_.error,error:Pe(405,{method:e.method,pathname:t.pathname,routeId:l.route.id})};if(Ie(o)){let t;return t=a&&null!=a.replace?a.replace:we(o.response.headers.get("Location"),new URL(e.url),d)===I.location.pathname+I.location.search,await De(e,o,!0,{submission:s,replace:t}),{shortCircuited:!0}}if(Me(o))throw Pe(400,{type:"defer-action"});if(Ae(o)){let e=Re(r,l.route.id);return!0!==(a&&a.replace)&&(D=h.Push),{matches:r,pendingActionResult:[e.route.id,o]}}return{matches:r,pendingActionResult:[l.route.id,o]}}(v,s,r.submission,i,u.active,{replace:r.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Ae(r)&&J(r.error)&&404===r.error.status)return M=null,void _e(s,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}i=t.matches||i,g=t.pendingActionResult,o=We(s,r.submission),l=!1,u.active=!1,v=Se(e.history,v.url,v.signal)}let{shortCircuited:b,matches:x,loaderData:w,errors:S}=await async function(t,s,r,n,o,i,l,u,p,h,y){let g=o||We(s,i),v=i||l||Ve(g),b=!($||f.v7_partialHydration&&p);if(n){if(b){let e=Te(y);fe(m({navigation:g},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=await mt(r,s.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let{boundaryId:t,error:r}=lt(s.pathname,e);return{matches:e.partialMatches,loaderData:{},errors:{[t]:r}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=it(s.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}r=e.matches}let x=a||c,[w,S]=me(e.history,I,r,v,s,f.v7_partialHydration&&!0===p,f.v7_skipActionErrorRevalidation,H,V,W,te,X,Q,x,d,y);if(ct((e=>!(r&&r.some((t=>t.route.id===e)))||w&&w.some((t=>t.route.id===e)))),Y=++K,0===w.length&&0===S.length){let e=st();return _e(s,m({matches:r,loaderData:{},errors:y&&Ae(y[1])?{[y[0]]:y[1].error}:null},Ce(y),e?{fetchers:new Map(I.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(b){let e={};if(!n){e.navigation=g;let t=Te(y);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=I.fetchers.get(e.key),s=Ge(void 0,t?t.data:void 0);I.fetchers.set(e.key,s)})),new Map(I.fetchers)}(S)),fe(e,{flushSync:h})}S.forEach((e=>{G.has(e.key)&&et(e.key),e.controller&&G.set(e.key,e.controller)}));let _=()=>S.forEach((e=>et(e.key)));M&&M.signal.addEventListener("abort",_);let{loaderResults:E,fetcherResults:j}=await $e(I,r,w,S,t);if(t.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",_),S.forEach((e=>G.delete(e.key)));let k=Oe(E);if(k)return await De(t,k.result,!0,{replace:u}),{shortCircuited:!0};if(k=Oe(j),k)return Q.add(k.key),await De(t,k.result,!0,{replace:u}),{shortCircuited:!0};let{loaderData:C,errors:R}=je(I,r,0,E,y,S,j,se);se.forEach(((e,t)=>{e.subscribe((s=>{(s||e.done)&&se.delete(t)}))})),f.v7_partialHydration&&p&&I.errors&&Object.entries(I.errors).filter((e=>{let[t]=e;return!w.some((e=>e.route.id===t))})).forEach((e=>{let[t,s]=e;R=Object.assign(R||{},{[t]:s})}));let N=st(),P=rt(Y),O=N||P||S.length>0;return m({matches:r,loaderData:C,errors:R},O?{fetchers:new Map(I.fetchers)}:{})}(v,s,i,u.active,o,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&!0===r.initialHydration,l,g);b||(M=null,_e(s,m({matches:x||i},Ce(g),{loaderData:w,errors:S})))}function Te(e){return e&&!Ae(e[1])?{[e[0]]:e[1].data}:I.actionData?0===Object.keys(I.actionData).length?null:I.actionData:void 0}async function De(r,n,a,o){let{submission:i,fetcherSubmission:l,replace:c}=void 0===o?{}:o;n.response.headers.has("X-Remix-Revalidate")&&(H=!0);let u=n.response.headers.get("Location");y(u,"Expected a Location header on the redirect Response"),u=we(u,new URL(r.url),d);let p=b(I.location,u,{_isRedirect:!0});if(s){let s=!1;if(n.response.headers.has("X-Remix-Reload-Document"))s=!0;else if(ie.test(u)){const r=e.history.createURL(u);s=r.origin!==t.location.origin||null==B(r.pathname,d)}if(s)return void(c?t.location.replace(u):t.location.assign(u))}M=null;let f=!0===c||n.response.headers.has("X-Remix-Replace")?h.Replace:h.Push,{formMethod:g,formAction:v,formEncType:x}=I.navigation;!i&&!l&&g&&v&&x&&(i=Ve(I.navigation));let w=i||l;if(re.has(n.response.status)&&w&&ze(w.formMethod))await Ee(f,p,{submission:m({},w,{formAction:u}),preventScrollReset:F,enableViewTransition:a?z:void 0});else{let e=We(p,i);await Ee(f,p,{overrideNavigation:e,fetcherSubmission:l,preventScrollReset:F,enableViewTransition:a?z:void 0})}}async function Fe(e,t,s,r,a,o){let i,c={};try{i=await async function(e,t,s,r,n,a,o,i,l,c){let d=a.map((e=>e.route.lazy?async function(e,t,s){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let n=s[e.id];y(n,"No route found in manifest");let a={};for(let e in r){let t=void 0!==n[e]&&"hasErrorBoundary"!==e;g(!t,'Route "'+n.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||E.has(e)||(a[e]=r[e])}Object.assign(n,a),Object.assign(n,m({},t(n),{lazy:void 0}))}(e.route,l,i):void 0)),u=a.map(((e,s)=>{let a=d[s],o=n.some((t=>t.route.id===e.route.id));return m({},e,{shouldLoad:o,resolve:async s=>(s&&"GET"===r.method&&(e.route.lazy||e.route.loader)&&(o=!0),o?async function(e,t,s,r,n,a){let o,i,l=r=>{let o,l=new Promise(((e,t)=>o=t));i=()=>o(),t.signal.addEventListener("abort",i);let c=n=>"function"!=typeof r?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+s.route.id+"]")):r({request:t,params:s.params,context:a},...void 0!==n?[n]:[]),d=(async()=>{try{return{type:"data",result:await(n?n((e=>c(e))):c())}}catch(e){return{type:"error",result:e}}})();return Promise.race([d,l])};try{let n=s.route[e];if(r)if(n){let e,[t]=await Promise.all([l(n).catch((t=>{e=t})),r]);if(void 0!==e)throw e;o=t}else{if(await r,n=s.route[e],!n){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Pe(405,{method:t.method,pathname:r,routeId:s.route.id})}return{type:_.data,result:void 0}}o=await l(n)}else{if(!n){let e=new URL(t.url);throw Pe(404,{pathname:e.pathname+e.search})}o=await l(n)}y(void 0!==o.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+s.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:_.error,result:e}}finally{i&&t.signal.removeEventListener("abort",i)}return o}(t,r,e,a,s,c):Promise.resolve({type:_.data,result:void 0}))})})),p=await e({matches:u,request:r,params:a[0].params,fetcherKey:o,context:c});try{await Promise.all(d)}catch(e){}return p}(u,e,0,s,r,a,o,l,n)}catch(e){return r.forEach((t=>{c[t.route.id]={type:_.error,error:e}})),c}for(let[e,t]of Object.entries(i))if(Le(t)){let r=t.result;c[e]={type:_.redirect,response:xe(r,s,e,a,d,f.v7_relativeSplatPath)}}else c[e]=await be(t);return c}async function $e(t,s,r,n,a){let o=t.matches,i=Fe("loader",0,a,r,s,null),l=Promise.all(n.map((async t=>{if(t.matches&&t.match&&t.controller){let s=(await Fe("loader",0,Se(e.history,t.path,t.controller.signal),[t.match],t.matches,t.key))[t.match.route.id];return{[t.key]:s}}return Promise.resolve({[t.key]:{type:_.error,error:Pe(404,{pathname:t.path})}})}))),c=await i,d=(await l).reduce(((e,t)=>Object.assign(e,t)),{});return await Promise.all([Ue(s,c,a.signal,o,t.loaderData),Be(s,d,n)]),{loaderResults:c,fetcherResults:d}}function Ye(){H=!0,V.push(...ct()),X.forEach(((e,t)=>{G.has(t)&&(W.add(t),et(t))}))}function Ze(e,t,s){void 0===s&&(s={}),I.fetchers.set(e,t),fe({fetchers:new Map(I.fetchers)},{flushSync:!0===(s&&s.flushSync)})}function Je(e,t,s,r){void 0===r&&(r={});let n=Re(I.matches,t);Xe(e),fe({errors:{[n.route.id]:s},fetchers:new Map(I.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Qe(e){return f.v7_fetcherPersist&&(ee.set(e,(ee.get(e)||0)+1),te.has(e)&&te.delete(e)),I.fetchers.get(e)||ae}function Xe(e){let t=I.fetchers.get(e);!G.has(e)||t&&"loading"===t.state&&Z.has(e)||et(e),X.delete(e),Z.delete(e),Q.delete(e),te.delete(e),W.delete(e),I.fetchers.delete(e)}function et(e){let t=G.get(e);y(t,"Expected fetch controller: "+e),t.abort(),G.delete(e)}function tt(e){for(let t of e){let e=Ke(Qe(t).data);I.fetchers.set(t,e)}}function st(){let e=[],t=!1;for(let s of Q){let r=I.fetchers.get(s);y(r,"Expected fetcher: "+s),"loading"===r.state&&(Q.delete(s),e.push(s),t=!0)}return tt(e),t}function rt(e){let t=[];for(let[s,r]of Z)if(r<e){let e=I.fetchers.get(s);y(e,"Expected fetcher: "+s),"loading"===e.state&&(et(s),Z.delete(s),t.push(s))}return tt(t),t.length>0}function nt(e){I.blockers.delete(e),de.delete(e)}function at(e,t){let s=I.blockers.get(e)||oe;y("unblocked"===s.state&&"blocked"===t.state||"blocked"===s.state&&"blocked"===t.state||"blocked"===s.state&&"proceeding"===t.state||"blocked"===s.state&&"unblocked"===t.state||"proceeding"===s.state&&"unblocked"===t.state,"Invalid blocker state transition: "+s.state+" -> "+t.state);let r=new Map(I.blockers);r.set(e,t),fe({blockers:r})}function ot(e){let{currentLocation:t,nextLocation:s,historyAction:r}=e;if(0===de.size)return;de.size>1&&g(!1,"A router only supports one blocker at a time");let n=Array.from(de.entries()),[a,o]=n[n.length-1],i=I.blockers.get(a);return i&&"proceeding"===i.state?void 0:o({currentLocation:t,nextLocation:s,historyAction:r})?a:void 0}function it(e){let t=Pe(404,{pathname:e}),s=a||c,{matches:r,route:n}=Ne(s);return ct(),{notFoundMatches:r,route:n,error:t}}function lt(e,t){return{boundaryId:Re(t.partialMatches).route.id,error:Pe(400,{type:"route-discovery",pathname:e,message:null!=t.error&&"message"in t.error?t.error:String(t.error)})}}function ct(e){let t=[];return se.forEach(((s,r)=>{e&&!e(r)||(s.cancel(),t.push(r),se.delete(r))})),t}function dt(e,t){return N&&N(e,t.map((e=>function(e,t){let{route:s,pathname:r,params:n}=e;return{id:s.id,pathname:r,params:n,data:t[s.id],handle:s.handle}}(e,I.loaderData))))||e.key}function ut(e,t){if(R){let s=dt(e,t),r=R[s];if("number"==typeof r)return r}return null}function pt(e,t,s){if(p){if(S.has(s))return{active:!1,matches:e};if(!e)return{active:!0,matches:C(t,s,d,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:C(t,s,d,!0)}}return{active:!1,matches:null}}async function mt(e,t,s){let r=e;for(;;){let e=null==a,o=a||c;try{await ye(p,t,r,o,l,n,he,s)}catch(e){return{type:"error",error:e,partialMatches:r}}finally{e&&(c=[...c])}if(s.aborted)return{type:"aborted"};let i=k(o,t,d);if(i)return ht(t,S),{type:"success",matches:i};let u=C(o,t,d,!0);if(!u||r.length===u.length&&r.every(((e,t)=>e.route.id===u[t].route.id)))return ht(t,S),{type:"success",matches:null};r=u}}function ht(e,t){if(t.size>=w){let e=t.values().next().value;t.delete(e)}t.add(e)}return i={get basename(){return d},get future(){return f},get state(){return I},get routes(){return c},get window(){return t},initialize:function(){if(v=e.history.listen((t=>{let{action:s,location:r,delta:n}=t;if(A)return A(),void(A=void 0);g(0===de.size||null!=n,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let a=ot({currentLocation:I.location,nextLocation:r,historyAction:s});if(a&&null!=n){let t=new Promise((e=>{A=e}));return e.history.go(-1*n),void at(a,{state:"blocked",location:r,proceed(){at(a,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then((()=>e.history.go(n)))},reset(){let e=new Map(I.blockers);e.set(a,oe),fe({blockers:e})}})}return Ee(s,r)})),s){!function(e,t){try{let s=e.sessionStorage.getItem(ce);if(s){let e=JSON.parse(s);for(let[s,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(s,new Set(r||[]))}}catch(e){}}(t,U);let e=()=>function(e,t){if(t.size>0){let s={};for(let[e,r]of t)s[e]=[...r];try{e.sessionStorage.setItem(ce,JSON.stringify(s))}catch(e){g(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,U);t.addEventListener("pagehide",e),q=()=>t.removeEventListener("pagehide",e)}return I.initialized||Ee(h.Pop,I.location,{initialHydration:!0}),i},subscribe:function(e){return x.add(e),()=>x.delete(e)},enableScrollRestoration:function(e,t,s){if(R=e,P=t,N=s||null,!O&&I.navigation===ne){O=!0;let e=ut(I.location,I.matches);null!=e&&fe({restoreScrollPosition:e})}return()=>{R=null,P=null,N=null}},navigate:async function t(s,r){if("number"==typeof s)return void e.history.go(s);let n=ue(I.location,I.matches,d,f.v7_prependBasename,s,f.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:a,submission:o,error:i}=pe(f.v7_normalizeFormMethod,!1,n,r),l=I.location,c=b(I.location,a,r&&r.state);c=m({},c,e.history.encodeLocation(c));let u=r&&null!=r.replace?r.replace:void 0,p=h.Push;!0===u?p=h.Replace:!1===u||null!=o&&ze(o.formMethod)&&o.formAction===I.location.pathname+I.location.search&&(p=h.Replace);let y=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,g=!0===(r&&r.unstable_flushSync),v=ot({currentLocation:l,nextLocation:c,historyAction:p});if(!v)return await Ee(p,c,{submission:o,pendingError:i,preventScrollReset:y,replace:r&&r.replace,enableViewTransition:r&&r.unstable_viewTransition,flushSync:g});at(v,{state:"blocked",location:c,proceed(){at(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),t(s,r)},reset(){let e=new Map(I.blockers);e.set(v,oe),fe({blockers:e})}})},fetch:function(t,s,n,o){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");G.has(t)&&et(t);let i=!0===(o&&o.unstable_flushSync),l=a||c,u=ue(I.location,I.matches,d,f.v7_prependBasename,n,f.v7_relativeSplatPath,s,null==o?void 0:o.relative),p=k(l,u,d),m=pt(p,l,u);if(m.active&&m.matches&&(p=m.matches),!p)return void Je(t,s,Pe(404,{pathname:u}),{flushSync:i});let{path:h,submission:g,error:v}=pe(f.v7_normalizeFormMethod,!0,u,o);if(v)return void Je(t,s,v,{flushSync:i});let b=He(p,h);F=!0===(o&&o.preventScrollReset),g&&ze(g.formMethod)?async function(t,s,r,n,o,i,l,u){function p(e){if(!e.route.action&&!e.route.lazy){let e=Pe(405,{method:u.formMethod,pathname:r,routeId:s});return Je(t,s,e,{flushSync:l}),!0}return!1}if(Ye(),X.delete(t),!i&&p(n))return;let m=I.fetchers.get(t);Ze(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(u,m),{flushSync:l});let h=new AbortController,g=Se(e.history,r,h.signal,u);if(i){let e=await mt(o,r,g.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:n}=lt(r,e);return void Je(t,s,n,{flushSync:l})}if(!e.matches)return void Je(t,s,Pe(404,{pathname:r}),{flushSync:l});if(p(n=He(o=e.matches,r)))return}G.set(t,h);let v=K,b=(await Fe("action",0,g,[n],o,t))[n.route.id];if(g.signal.aborted)return void(G.get(t)===h&&G.delete(t));if(f.v7_fetcherPersist&&te.has(t)){if(Ie(b)||Ae(b))return void Ze(t,Ke(void 0))}else{if(Ie(b))return G.delete(t),Y>v?void Ze(t,Ke(void 0)):(Q.add(t),Ze(t,Ge(u)),De(g,b,!1,{fetcherSubmission:u}));if(Ae(b))return void Je(t,s,b.error)}if(Me(b))throw Pe(400,{type:"defer-action"});let x=I.navigation.location||I.location,w=Se(e.history,x,h.signal),S=a||c,_="idle"!==I.navigation.state?k(S,I.navigation.location,d):I.matches;y(_,"Didn't find any matches after fetcher action");let E=++K;Z.set(t,E);let j=Ge(u,b.data);I.fetchers.set(t,j);let[C,R]=me(e.history,I,_,u,x,!1,f.v7_skipActionErrorRevalidation,H,V,W,te,X,Q,S,d,[n.route.id,b]);R.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,s=I.fetchers.get(t),r=Ge(void 0,s?s.data:void 0);I.fetchers.set(t,r),G.has(t)&&et(t),e.controller&&G.set(t,e.controller)})),fe({fetchers:new Map(I.fetchers)});let N=()=>R.forEach((e=>et(e.key)));h.signal.addEventListener("abort",N);let{loaderResults:P,fetcherResults:O}=await $e(I,_,C,R,w);if(h.signal.aborted)return;h.signal.removeEventListener("abort",N),Z.delete(t),G.delete(t),R.forEach((e=>G.delete(e.key)));let T=Oe(P);if(T)return De(w,T.result,!1);if(T=Oe(O),T)return Q.add(T.key),De(w,T.result,!1);let{loaderData:L,errors:A}=je(I,_,0,P,void 0,R,O,se);if(I.fetchers.has(t)){let e=Ke(b.data);I.fetchers.set(t,e)}rt(E),"loading"===I.navigation.state&&E>Y?(y(D,"Expected pending action"),M&&M.abort(),_e(I.navigation.location,{matches:_,loaderData:L,errors:A,fetchers:new Map(I.fetchers)})):(fe({errors:A,loaderData:ke(I.loaderData,L,_,A),fetchers:new Map(I.fetchers)}),H=!1)}(t,s,h,b,p,m.active,i,g):(X.set(t,{routeId:s,path:h}),async function(t,s,r,n,a,o,i,l){let c=I.fetchers.get(t);Ze(t,Ge(l,c?c.data:void 0),{flushSync:i});let d=new AbortController,u=Se(e.history,r,d.signal);if(o){let e=await mt(a,r,u.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:n}=lt(r,e);return void Je(t,s,n,{flushSync:i})}if(!e.matches)return void Je(t,s,Pe(404,{pathname:r}),{flushSync:i});n=He(a=e.matches,r)}G.set(t,d);let p=K,m=(await Fe("loader",0,u,[n],a,t))[n.route.id];if(Me(m)&&(m=await qe(m,u.signal,!0)||m),G.get(t)===d&&G.delete(t),!u.signal.aborted){if(!te.has(t))return Ie(m)?Y>p?void Ze(t,Ke(void 0)):(Q.add(t),void await De(u,m,!1)):void(Ae(m)?Je(t,s,m.error):(y(!Me(m),"Unhandled fetcher deferred data"),Ze(t,Ke(m.data))));Ze(t,Ke(void 0))}}(t,s,h,b,p,m.active,i,g))},revalidate:function(){Ye(),fe({revalidation:"loading"}),"submitting"!==I.navigation.state&&("idle"!==I.navigation.state?Ee(D||I.historyAction,I.navigation.location,{overrideNavigation:I.navigation,enableViewTransition:!0===z}):Ee(I.historyAction,I.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Qe,deleteFetcher:function(e){if(f.v7_fetcherPersist){let t=(ee.get(e)||0)-1;t<=0?(ee.delete(e),te.add(e)):ee.set(e,t)}else Xe(e);fe({fetchers:new Map(I.fetchers)})},dispose:function(){v&&v(),q&&q(),x.clear(),M&&M.abort(),I.fetchers.forEach(((e,t)=>Xe(t))),I.blockers.forEach(((e,t)=>nt(t)))},getBlocker:function(e,t){let s=I.blockers.get(e)||oe;return de.get(e)!==t&&de.set(e,t),s},deleteBlocker:nt,patchRoutes:function(e,t){let s=null==a;ge(e,t,a||c,l,n),s&&(c=[...c],fe({}))},_internalFetchControllers:G,_internalActiveDeferreds:se,_internalSetRoutes:function(e){l={},a=j(e,n,void 0,l)}},i}function ue(e,t,s,r,n,a,o,i){let l,c;if(o){l=[];for(let e of t)if(l.push(e),e.route.id===o){c=e;break}}else l=t,c=t[t.length-1];let d=V(n||".",H(l,a),B(e.pathname,s)||e.pathname,"path"===i);return null==n&&(d.search=e.search,d.hash=e.hash),null!=n&&""!==n&&"."!==n||!c||!c.route.index||$e(d.search)||(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==s&&(d.pathname="/"===d.pathname?s:W([s,d.pathname])),x(d)}function pe(e,t,s,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:s};if(r.formMethod&&(n=r.formMethod,!te.has(n.toLowerCase())))return{path:s,error:Pe(405,{method:r.formMethod})};var n;let a,o,i=()=>({path:s,error:Pe(400,{type:"invalid-body"})}),l=r.formMethod||"get",c=e?l.toUpperCase():l.toLowerCase(),d=Te(s);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!ze(c))return i();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce(((e,t)=>{let[s,r]=t;return""+e+s+"="+r+"\n"}),""):String(r.body);return{path:s,submission:{formMethod:c,formAction:d,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!ze(c))return i();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:s,submission:{formMethod:c,formAction:d,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(y("function"==typeof FormData,"FormData is not available in this environment"),r.formData)a=_e(r.formData),o=r.formData;else if(r.body instanceof FormData)a=_e(r.body),o=r.body;else if(r.body instanceof URLSearchParams)a=r.body,o=Ee(a);else if(null==r.body)a=new URLSearchParams,o=new FormData;else try{a=new URLSearchParams(r.body),o=Ee(a)}catch(e){return i()}let u={formMethod:c,formAction:d,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(ze(u.formMethod))return{path:s,submission:u};let p=w(s);return t&&p.search&&$e(p.search)&&a.append("index",""),p.search="?"+a,{path:x(p),submission:u}}function me(e,t,s,r,n,a,o,i,l,c,d,u,p,h,f,y){let g=y?Ae(y[1])?y[1].error:y[1].data:void 0,v=e.createURL(t.location),b=e.createURL(n),x=y&&Ae(y[1])?y[0]:void 0,w=x?function(e,t){let s=e;if(t){let r=e.findIndex((e=>e.route.id===t));r>=0&&(s=e.slice(0,r))}return s}(s,x):s,S=y?y[1].statusCode:void 0,_=o&&S&&S>=400,E=w.filter(((e,s)=>{let{route:n}=e;if(n.lazy)return!0;if(null==n.loader)return!1;if(a)return!("function"==typeof n.loader&&!n.loader.hydrate&&(void 0!==t.loaderData[n.id]||t.errors&&void 0!==t.errors[n.id]));if(function(e,t,s){let r=!t||s.route.id!==t.route.id,n=void 0===e[s.route.id];return r||n}(t.loaderData,t.matches[s],e)||l.some((t=>t===e.route.id)))return!0;let o=t.matches[s],c=e;return fe(e,m({currentUrl:v,currentParams:o.params,nextUrl:b,nextParams:c.params},r,{actionResult:g,actionStatus:S,defaultShouldRevalidate:!_&&(i||v.pathname+v.search===b.pathname+b.search||v.search!==b.search||he(o,c))}))})),j=[];return u.forEach(((e,n)=>{if(a||!s.some((t=>t.route.id===e.routeId))||d.has(n))return;let o=k(h,e.path,f);if(!o)return void j.push({key:n,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let l=t.fetchers.get(n),u=He(o,e.path),y=!1;p.has(n)?y=!1:c.has(n)?(c.delete(n),y=!0):y=l&&"idle"!==l.state&&void 0===l.data?i:fe(u,m({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:s[s.length-1].params},r,{actionResult:g,actionStatus:S,defaultShouldRevalidate:!_&&i})),y&&j.push({key:n,routeId:e.routeId,path:e.path,matches:o,match:u,controller:new AbortController})})),[E,j]}function he(e,t){let s=e.route.path;return e.pathname!==t.pathname||null!=s&&s.endsWith("*")&&e.params["*"]!==t.params["*"]}function fe(e,t){if(e.route.shouldRevalidate){let s=e.route.shouldRevalidate(t);if("boolean"==typeof s)return s}return t.defaultShouldRevalidate}async function ye(e,t,s,r,n,a,o,i){let l=[t,...s.map((e=>e.route.id))].join("-");try{let d=o.get(l);d||(d=e({path:t,matches:s,patch:(e,t)=>{i.aborted||ge(e,t,r,n,a)}}),o.set(l,d)),d&&"object"==typeof(c=d)&&null!=c&&"then"in c&&await d}finally{o.delete(l)}var c}function ge(e,t,s,r,n){if(e){var a;let s=r[e];y(s,"No route found to patch children into: routeId = "+e);let o=j(t,n,[e,"patch",String((null==(a=s.children)?void 0:a.length)||"0")],r);s.children?s.children.push(...o):s.children=o}else{let e=j(t,n,["patch",String(s.length||"0")],r);s.push(...e)}}async function ve(e){let{matches:t}=e,s=t.filter((e=>e.shouldLoad));return(await Promise.all(s.map((e=>e.resolve())))).reduce(((e,t,r)=>Object.assign(e,{[s[r].route.id]:t})),{})}async function be(e){let{result:t,type:s}=e;if(Fe(t)){let e;try{let s=t.headers.get("Content-Type");e=s&&/\bapplication\/json\b/.test(s)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:_.error,error:e}}return s===_.error?{type:_.error,error:new Z(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:_.data,data:e,statusCode:t.status,headers:t.headers}}if(s===_.error){if(De(t)){var r,n;if(t.data instanceof Error)return{type:_.error,error:t.data,statusCode:null==(n=t.init)?void 0:n.status};t=new Z((null==(r=t.init)?void 0:r.status)||500,void 0,t.data)}return{type:_.error,error:t,statusCode:J(t)?t.status:void 0}}var a,o,i,l;return function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:_.deferred,deferredData:t,statusCode:null==(a=t.init)?void 0:a.status,headers:(null==(o=t.init)?void 0:o.headers)&&new Headers(t.init.headers)}:De(t)?{type:_.data,data:t.data,statusCode:null==(i=t.init)?void 0:i.status,headers:null!=(l=t.init)&&l.headers?new Headers(t.init.headers):void 0}:{type:_.data,data:t}}function xe(e,t,s,r,n,a){let o=e.headers.get("Location");if(y(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!ie.test(o)){let i=r.slice(0,r.findIndex((e=>e.route.id===s))+1);o=ue(new URL(t.url),i,n,!0,o,a),e.headers.set("Location",o)}return e}function we(e,t,s){if(ie.test(e)){let r=e,n=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=null!=B(n.pathname,s);if(n.origin===t.origin&&a)return n.pathname+n.search+n.hash}return e}function Se(e,t,s,r){let n=e.createURL(Te(t)).toString(),a={signal:s};if(r&&ze(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=_e(r.formData):a.body=r.formData}return new Request(n,a)}function _e(e){let t=new URLSearchParams;for(let[s,r]of e.entries())t.append(s,"string"==typeof r?r:r.name);return t}function Ee(e){let t=new FormData;for(let[s,r]of e.entries())t.append(s,r);return t}function je(e,t,s,r,n,a,o,i){let{loaderData:l,errors:c}=function(e,t,s,r,n){let a,o={},i=null,l=!1,c={},d=s&&Ae(s[1])?s[1].error:void 0;return e.forEach((s=>{if(!(s.route.id in t))return;let u=s.route.id,p=t[u];if(y(!Ie(p),"Cannot handle redirect results in processLoaderData"),Ae(p)){let t=p.error;if(void 0!==d&&(t=d,d=void 0),i=i||{},n)i[u]=t;else{let s=Re(e,u);null==i[s.route.id]&&(i[s.route.id]=t)}o[u]=void 0,l||(l=!0,a=J(p.error)?p.error.status:500),p.headers&&(c[u]=p.headers)}else Me(p)?(r.set(u,p.deferredData),o[u]=p.deferredData.data,null==p.statusCode||200===p.statusCode||l||(a=p.statusCode),p.headers&&(c[u]=p.headers)):(o[u]=p.data,p.statusCode&&200!==p.statusCode&&!l&&(a=p.statusCode),p.headers&&(c[u]=p.headers))})),void 0!==d&&s&&(i={[s[0]]:d},o[s[0]]=void 0),{loaderData:o,errors:i,statusCode:a||200,loaderHeaders:c}}(t,r,n,i,!1);return a.forEach((t=>{let{key:s,match:r,controller:n}=t,a=o[s];if(y(a,"Did not find corresponding fetcher result"),!n||!n.signal.aborted)if(Ae(a)){let t=Re(e.matches,null==r?void 0:r.route.id);c&&c[t.route.id]||(c=m({},c,{[t.route.id]:a.error})),e.fetchers.delete(s)}else if(Ie(a))y(!1,"Unhandled fetcher revalidation redirect");else if(Me(a))y(!1,"Unhandled fetcher deferred data");else{let t=Ke(a.data);e.fetchers.set(s,t)}})),{loaderData:l,errors:c}}function ke(e,t,s,r){let n=m({},t);for(let a of s){let s=a.route.id;if(t.hasOwnProperty(s)?void 0!==t[s]&&(n[s]=t[s]):void 0!==e[s]&&a.route.loader&&(n[s]=e[s]),r&&r.hasOwnProperty(s))break}return n}function Ce(e){return e?Ae(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Re(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function Ne(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Pe(e,t){let{pathname:s,routeId:r,method:n,type:a,message:o}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="Bad Request","route-discovery"===a?l='Unable to match URL "'+s+'" - the `unstable_patchRoutesOnNavigation()` function threw the following error:\n'+o:n&&s&&r?l="You made a "+n+' request to "'+s+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===a?l="defer() is not supported in actions":"invalid-body"===a&&(l="Unable to encode submission body")):403===e?(i="Forbidden",l='Route "'+r+'" does not match URL "'+s+'"'):404===e?(i="Not Found",l='No route matches URL "'+s+'"'):405===e&&(i="Method Not Allowed",n&&s&&r?l="You made a "+n.toUpperCase()+' request to "'+s+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':n&&(l='Invalid request method "'+n.toUpperCase()+'"')),new Z(e||500,i,new Error(l),!0)}function Oe(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[s,r]=t[e];if(Ie(r))return{key:s,result:r}}}function Te(e){return x(m({},"string"==typeof e?w(e):e,{hash:""}))}function Le(e){return Fe(e.result)&&se.has(e.result.status)}function Me(e){return e.type===_.deferred}function Ae(e){return e.type===_.error}function Ie(e){return(e&&e.type)===_.redirect}function De(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Fe(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function ze(e){return X.has(e.toLowerCase())}async function Ue(e,t,s,r,n){let a=Object.entries(t);for(let o=0;o<a.length;o++){let[i,l]=a[o],c=e.find((e=>(null==e?void 0:e.route.id)===i));if(!c)continue;let d=r.find((e=>e.route.id===c.route.id)),u=null!=d&&!he(d,c)&&void 0!==(n&&n[c.route.id]);Me(l)&&u&&await qe(l,s,!1).then((e=>{e&&(t[i]=e)}))}}async function Be(e,t,s){for(let r=0;r<s.length;r++){let{key:n,routeId:a,controller:o}=s[r],i=t[n];e.find((e=>(null==e?void 0:e.route.id)===a))&&Me(i)&&(y(o,"Expected an AbortController for revalidating fetcher deferred result"),await qe(i,o.signal,!0).then((e=>{e&&(t[n]=e)})))}}async function qe(e,t,s){if(void 0===s&&(s=!1),!await e.deferredData.resolveData(t)){if(s)try{return{type:_.data,data:e.deferredData.unwrappedData}}catch(e){return{type:_.error,error:e}}return{type:_.data,data:e.deferredData.data}}}function $e(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function He(e,t){let s="string"==typeof t?w(t).search:t.search;if(e[e.length-1].route.index&&$e(s||""))return e[e.length-1];let r=$(e);return r[r.length-1]}function Ve(e){let{formMethod:t,formAction:s,formEncType:r,text:n,formData:a,json:o}=e;if(t&&s&&r)return null!=n?{formMethod:t,formAction:s,formEncType:r,formData:void 0,json:void 0,text:n}:null!=a?{formMethod:t,formAction:s,formEncType:r,formData:a,json:void 0,text:void 0}:void 0!==o?{formMethod:t,formAction:s,formEncType:r,formData:void 0,json:o,text:void 0}:void 0}function We(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ge(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ke(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Ye(){return Ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ye.apply(this,arguments)}Symbol("deferred");const Ze=d.createContext(null),Je=d.createContext(null),Qe=d.createContext(null),Xe=d.createContext(null),et=d.createContext({outlet:null,matches:[],isDataRoute:!1}),tt=d.createContext(null);function st(){return null!=d.useContext(Xe)}function rt(){return st()||y(!1),d.useContext(Xe).location}function nt(e){d.useContext(Qe).static||d.useLayoutEffect(e)}function at(){let{isDataRoute:e}=d.useContext(et);return e?function(){let{router:e}=ft(mt.UseNavigateStable),t=gt(ht.UseNavigateStable),s=d.useRef(!1);return nt((()=>{s.current=!0})),d.useCallback((function(r,n){void 0===n&&(n={}),s.current&&("number"==typeof r?e.navigate(r):e.navigate(r,Ye({fromRouteId:t},n)))}),[e,t])}():function(){st()||y(!1);let e=d.useContext(Ze),{basename:t,future:s,navigator:r}=d.useContext(Qe),{matches:n}=d.useContext(et),{pathname:a}=rt(),o=JSON.stringify(H(n,s.v7_relativeSplatPath)),i=d.useRef(!1);return nt((()=>{i.current=!0})),d.useCallback((function(s,n){if(void 0===n&&(n={}),!i.current)return;if("number"==typeof s)return void r.go(s);let l=V(s,JSON.parse(o),a,"path"===n.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:W([t,l.pathname])),(n.replace?r.replace:r.push)(l,n.state,n)}),[t,r,o,a,e])}()}const ot=d.createContext(null);function it(e,t){let{relative:s}=void 0===t?{}:t,{future:r}=d.useContext(Qe),{matches:n}=d.useContext(et),{pathname:a}=rt(),o=JSON.stringify(H(n,r.v7_relativeSplatPath));return d.useMemo((()=>V(e,JSON.parse(o),a,"path"===s)),[e,o,a,s])}function lt(e,t,s,r){st()||y(!1);let{navigator:n}=d.useContext(Qe),{matches:a}=d.useContext(et),o=a[a.length-1],i=o?o.params:{},l=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;let c,u=rt();if(t){var p;let e="string"==typeof t?w(t):t;"/"===l||(null==(p=e.pathname)?void 0:p.startsWith(l))||y(!1),c=e}else c=u;let m=c.pathname||"/",f=m;if("/"!==l){let e=l.replace(/^\//,"").split("/");f="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=k(e,{pathname:f}),v=function(e,t,s,r){var n;if(void 0===t&&(t=[]),void 0===s&&(s=null),void 0===r&&(r=null),null==e){var a;if(!s)return null;if(s.errors)e=s.matches;else{if(!(null!=(a=r)&&a.v7_partialHydration&&0===t.length&&!s.initialized&&s.matches.length>0))return null;e=s.matches}}let o=e,i=null==(n=s)?void 0:n.errors;if(null!=i){let e=o.findIndex((e=>e.route.id&&void 0!==(null==i?void 0:i[e.route.id])));e>=0||y(!1),o=o.slice(0,Math.min(o.length,e+1))}let l=!1,c=-1;if(s&&r&&r.v7_partialHydration)for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=s,n=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||n){l=!0,o=c>=0?o.slice(0,c+1):[o[0]];break}}}return o.reduceRight(((e,r,n)=>{let a,u=!1,p=null,m=null;var h;s&&(a=i&&r.route.id?i[r.route.id]:void 0,p=r.route.errorElement||dt,l&&(c<0&&0===n?(xt[h="route-fallback"]||(xt[h]=!0),u=!0,m=null):c===n&&(u=!0,m=r.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,n+1)),y=()=>{let t;return t=a?p:u?m:r.route.Component?d.createElement(r.route.Component,null):r.route.element?r.route.element:e,d.createElement(pt,{match:r,routeContext:{outlet:e,matches:f,isDataRoute:null!=s},children:t})};return s&&(r.route.ErrorBoundary||r.route.errorElement||0===n)?d.createElement(ut,{location:s.location,revalidation:s.revalidation,component:p,error:a,children:y(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):y()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},i,e.params),pathname:W([l,n.encodeLocation?n.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:W([l,n.encodeLocation?n.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,s,r);return t&&v?d.createElement(Xe.Provider,{value:{location:Ye({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:h.Pop}},v):v}function ct(){let e=vt(),t=J(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),s=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),s?d.createElement("pre",{style:r},s):null,null)}const dt=d.createElement(ct,null);class ut extends d.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?d.createElement(et.Provider,{value:this.props.routeContext},d.createElement(tt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function pt(e){let{routeContext:t,match:s,children:r}=e,n=d.useContext(Ze);return n&&n.static&&n.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=s.route.id),d.createElement(et.Provider,{value:t},r)}var mt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(mt||{}),ht=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ht||{});function ft(e){let t=d.useContext(Ze);return t||y(!1),t}function yt(e){let t=d.useContext(Je);return t||y(!1),t}function gt(e){let t=function(e){let t=d.useContext(et);return t||y(!1),t}(),s=t.matches[t.matches.length-1];return s.route.id||y(!1),s.route.id}function vt(){var e;let t=d.useContext(tt),s=yt(ht.UseRouteError),r=gt(ht.UseRouteError);return void 0!==t?t:null==(e=s.errors)?void 0:e[r]}let bt=0;const xt={};function wt(e){let{to:t,replace:s,state:r,relative:n}=e;st()||y(!1);let{future:a,static:o}=d.useContext(Qe),{matches:i}=d.useContext(et),{pathname:l}=rt(),c=at(),u=V(t,H(i,a.v7_relativeSplatPath),l,"path"===n),p=JSON.stringify(u);return d.useEffect((()=>c(JSON.parse(p),{replace:s,state:r,relative:n})),[c,p,n,s,r]),null}function St(e){return function(e){let t=d.useContext(et).outlet;return t?d.createElement(ot.Provider,{value:e},t):t}(e.context)}function _t(e){y(!1)}function Et(e){let{basename:t="/",children:s=null,location:r,navigationType:n=h.Pop,navigator:a,static:o=!1,future:i}=e;st()&&y(!1);let l=t.replace(/^\/*/,"/"),c=d.useMemo((()=>({basename:l,navigator:a,static:o,future:Ye({v7_relativeSplatPath:!1},i)})),[l,i,a,o]);"string"==typeof r&&(r=w(r));let{pathname:u="/",search:p="",hash:m="",state:f=null,key:g="default"}=r,v=d.useMemo((()=>{let e=B(u,l);return null==e?null:{location:{pathname:e,search:p,hash:m,state:f,key:g},navigationType:n}}),[l,u,p,m,f,g,n]);return null==v?null:d.createElement(Qe.Provider,{value:c},d.createElement(Xe.Provider,{children:s,value:v}))}function jt(e,t){void 0===t&&(t=[]);let s=[];return d.Children.forEach(e,((e,r)=>{if(!d.isValidElement(e))return;let n=[...t,r];if(e.type===d.Fragment)return void s.push.apply(s,jt(e.props.children,n));e.type!==_t&&y(!1),e.props.index&&e.props.children&&y(!1);let a={id:e.props.id||n.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=jt(e.props.children,n)),s.push(a)})),s}function kt(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ct.apply(this,arguments)}d.startTransition,new Promise((()=>{})),d.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Rt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(Aa){}function Nt(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ct({},t,{errors:Pt(t.errors)})),t}function Pt(e){if(!e)return null;let t=Object.entries(e),s={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)s[e]=new Z(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let n=new t(r.message);n.stack="",s[e]=n}catch(e){}}if(null==s[e]){let t=new Error(r.message);t.stack="",s[e]=t}}else s[e]=r;return s}const Ot=d.createContext({isTransitioning:!1}),Tt=d.createContext(new Map),Lt=d.startTransition,Mt=p.flushSync;function At(e){Mt?Mt(e):e()}d.useId;class It{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}function Dt(e){let{fallbackElement:t,router:s,future:r}=e,[n,a]=d.useState(s.state),[o,i]=d.useState(),[l,c]=d.useState({isTransitioning:!1}),[u,p]=d.useState(),[m,h]=d.useState(),[f,y]=d.useState(),g=d.useRef(new Map),{v7_startTransition:v}=r||{},b=d.useCallback((e=>{v?function(e){Lt?Lt(e):e()}(e):e()}),[v]),x=d.useCallback(((e,t)=>{let{deletedFetchers:r,unstable_flushSync:n,unstable_viewTransitionOpts:o}=t;r.forEach((e=>g.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)}));let l=null==s.window||null==s.window.document||"function"!=typeof s.window.document.startViewTransition;if(o&&!l){if(n){At((()=>{m&&(u&&u.resolve(),m.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})}));let t=s.window.document.startViewTransition((()=>{At((()=>a(e)))}));return t.finished.finally((()=>{At((()=>{p(void 0),h(void 0),i(void 0),c({isTransitioning:!1})}))})),void At((()=>h(t)))}m?(u&&u.resolve(),m.skipTransition(),y({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(i(e),c({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else n?At((()=>a(e))):b((()=>a(e)))}),[s.window,m,u,g,b]);d.useLayoutEffect((()=>s.subscribe(x)),[s,x]),d.useEffect((()=>{l.isTransitioning&&!l.flushSync&&p(new It)}),[l]),d.useEffect((()=>{if(u&&o&&s.window){let e=o,t=u.promise,r=s.window.document.startViewTransition((async()=>{b((()=>a(e))),await t}));r.finished.finally((()=>{p(void 0),h(void 0),i(void 0),c({isTransitioning:!1})})),h(r)}}),[b,o,u,s.window]),d.useEffect((()=>{u&&o&&n.location.key===o.location.key&&u.resolve()}),[u,m,n.location,o]),d.useEffect((()=>{!l.isTransitioning&&f&&(i(f.state),c({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}),y(void 0))}),[l.isTransitioning,f]),d.useEffect((()=>{}),[]);let w=d.useMemo((()=>({createHref:s.createHref,encodeLocation:s.encodeLocation,go:e=>s.navigate(e),push:(e,t,r)=>s.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>s.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})})),[s]),S=s.basename||"/",_=d.useMemo((()=>({router:s,navigator:w,static:!1,basename:S})),[s,w,S]),E=d.useMemo((()=>({v7_relativeSplatPath:s.future.v7_relativeSplatPath})),[s.future.v7_relativeSplatPath]);return d.createElement(d.Fragment,null,d.createElement(Ze.Provider,{value:_},d.createElement(Je.Provider,{value:n},d.createElement(Tt.Provider,{value:g.current},d.createElement(Ot.Provider,{value:l},d.createElement(Et,{basename:S,location:n.location,navigationType:n.historyAction,navigator:w,future:E},n.initialized||s.future.v7_partialHydration?d.createElement(Ft,{routes:s.routes,future:s.future,state:n}):t))))),null)}const Ft=d.memo(zt);function zt(e){let{routes:t,future:s,state:r}=e;return lt(t,void 0,r,s)}const Ut="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Bt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qt=d.forwardRef((function(e,t){let s,{onClick:r,relative:n,reloadDocument:a,replace:o,state:i,target:l,to:c,preventScrollReset:u,unstable_viewTransition:p}=e,m=function(e,t){if(null==e)return{};var s,r,n={},a=Object.keys(e);for(r=0;r<a.length;r++)s=a[r],t.indexOf(s)>=0||(n[s]=e[s]);return n}(e,Rt),{basename:h}=d.useContext(Qe),f=!1;if("string"==typeof c&&Bt.test(c)&&(s=c,Ut))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),s=B(t.pathname,h);t.origin===e.origin&&null!=s?c=s+t.search+t.hash:f=!0}catch(e){}let g=function(e,t){let{relative:s}=void 0===t?{}:t;st()||y(!1);let{basename:r,navigator:n}=d.useContext(Qe),{hash:a,pathname:o,search:i}=it(e,{relative:s}),l=o;return"/"!==r&&(l="/"===o?r:W([r,o])),n.createHref({pathname:l,search:i,hash:a})}(c,{relative:n}),v=function(e,t){let{target:s,replace:r,state:n,preventScrollReset:a,relative:o,unstable_viewTransition:i}=void 0===t?{}:t,l=at(),c=rt(),u=it(e,{relative:o});return d.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,s)){t.preventDefault();let s=void 0!==r?r:x(c)===x(u);l(e,{replace:s,state:n,preventScrollReset:a,relative:o,unstable_viewTransition:i})}}),[c,l,u,r,n,s,e,a,o,i])}(c,{replace:o,state:i,target:l,preventScrollReset:u,relative:n,unstable_viewTransition:p});return d.createElement("a",Ct({},m,{href:s||g,onClick:f||a?r:function(e){r&&r(e),e.defaultPrevented||v(e)},ref:t,target:l}))}));var $t,Ht;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($t||($t={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Ht||(Ht={}));const Vt=window.wp.i18n,Wt=(e,t)=>{try{return(0,o.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},Gt=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));var Kt=s(5890),Yt=s.n(Kt);const Zt=window.ReactJSXRuntime,Jt=({link:e})=>{const t=(0,o.useMemo)((()=>Wt((0,Vt.sprintf)(/* translators: %1$s expands to "Yoast SEO" academy, which is a clickable link. */ (0,Vt.__)("Want to learn SEO from Team Yoast? Check out our %1$s!","wordpress-seo"),"<link/>"),{link:(0,Zt.jsx)("a",{href:e,target:"_blank",rel:"noopener",children:"Yoast SEO academy"})})),[]);return(0,Zt.jsxs)(l.Paper,{as:"div",className:"yst-p-6 yst-space-y-3",children:[(0,Zt.jsx)(l.Title,{as:"h2",size:"4",className:"yst-text-base yst-text-primary-500",children:(0,Vt.__)("Learn SEO","wordpress-seo")}),(0,Zt.jsxs)("p",{children:[t,(0,Zt.jsx)("br",{}),(0,Vt.__)("We have both free and premium online courses to learn everything you need to know about SEO.","wordpress-seo")]}),(0,Zt.jsxs)(l.Link,{href:e,className:"yst-block yst-font-medium",target:"_blank",rel:"noopener",children:[(0,Vt.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ (0,Vt.__)("Check out %1$s","wordpress-seo"),"Yoast SEO academy"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(Gt,{className:"yst-w-3 yst-h-3 yst-mb-[1px] yst-icon-rtl yst-inline-block"})]})]})};Jt.propTypes={link:Yt().string.isRequired};const Qt=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))}));d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),Yt().string.isRequired,Yt().string.isRequired,Yt().shape({src:Yt().string.isRequired,width:Yt().string,height:Yt().string}).isRequired,Yt().shape({value:Yt().bool.isRequired,status:Yt().string.isRequired,set:Yt().func.isRequired}).isRequired,Yt().string,Yt().string,Yt().string;const Xt=({handleRefreshClick:e,supportLink:t})=>(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,Zt.jsx)(l.Button,{onClick:e,children:(0,Vt.__)("Refresh this page","wordpress-seo")}),(0,Zt.jsx)(l.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Vt.__)("Contact support","wordpress-seo")})]});Xt.propTypes={handleRefreshClick:Yt().func.isRequired,supportLink:Yt().string.isRequired};const es=({handleRefreshClick:e,supportLink:t})=>(0,Zt.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,Zt.jsx)(l.Button,{className:"yst-order-last",onClick:e,children:(0,Vt.__)("Refresh this page","wordpress-seo")}),(0,Zt.jsx)(l.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Vt.__)("Contact support","wordpress-seo")})]});es.propTypes={handleRefreshClick:Yt().func.isRequired,supportLink:Yt().string.isRequired};const ts=({error:e,children:t=null})=>(0,Zt.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,Zt.jsx)(l.Title,{children:(0,Vt.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,Zt.jsx)("p",{children:(0,Vt.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,Zt.jsx)(l.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,Vt.__)("Undefined error message.","wordpress-seo")}),(0,Zt.jsx)("p",{children:(0,Vt.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});ts.propTypes={error:Yt().object.isRequired,children:Yt().node},ts.VerticalButtons=es,ts.HorizontalButtons=Xt;var ss;function rs(){return rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},rs.apply(this,arguments)}Yt().string,Yt().node.isRequired,Yt().node.isRequired,Yt().node,Yt().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const ns=e=>d.createElement("svg",rs({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1000 1000"},e),ss||(ss=d.createElement("path",{fill:"#fff",d:"M500 0C223.9 0 0 223.9 0 500s223.9 500 500 500 500-223.9 500-500S776.1 0 500 0Zm87.2 412.4c0-21.9 4.3-40.2 13.1-54.4s24-27.1 45.9-38.2l10.1-4.9c17.8-9 22.4-16.7 22.4-26 0-11.1-9.5-19.1-25-19.1-18.3 0-32.2 9.5-41.8 28.9l-24.7-24.8c5.4-11.6 14.1-20.9 25.8-28.1a70.8 70.8 0 0 1 38.9-11.1c17.8 0 33.3 4.6 45.9 14.2s19.4 22.7 19.4 39.4c0 26.6-15 42.9-43.1 57.3l-15.7 8c-16.8 8.5-25.1 16-27.4 29.4h85.4v35.4H587.2Zm-82.1 373.3c-157.8 0-285.7-127.9-285.7-285.7s127.9-285.7 285.7-285.7a286.4 286.4 0 0 1 55.9 5.5l-55.9 116.9c-90 0-163.3 73.3-163.3 163.3s73.3 163.3 163.3 163.3a162.8 162.8 0 0 0 106.4-39.6l61.8 107.2a283.9 283.9 0 0 1-168.2 54.8ZM705 704.1l-70.7-122.5H492.9l70.7-122.4H705l70.7 122.4Z"}))),as=({to:e,idSuffix:t="",...s})=>{const r=(0,o.useMemo)((()=>(0,c.replace)((0,c.replace)(`link-${e}`,"/","-"),"--","-")),[e]);return(0,Zt.jsx)(l.SidebarNavigation.SubmenuItem,{as:qt,pathProp:"to",id:`${r}${t}`,to:e,...s})};as.propTypes={to:Yt().string.isRequired,idSuffix:Yt().string};const os=({href:e,children:t=null,...s})=>(0,Zt.jsxs)(l.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")})]});os.propTypes={href:Yt().string.isRequired,children:Yt().node};const is=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),ls=[(0,Vt.__)("AI tools included","wordpress-seo"),(0,Vt.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ -(0,Vt.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,Vt.__)("24/7 support","wordpress-seo")],cs=[(0,Vt.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,Vt.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,Vt.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,Vt.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,Vt.__)("Internal links and redirect management, easy","wordpress-seo"),(0,Vt.__)("Access to friendly help when you need it, day or night","wordpress-seo")],ds=(e=!1)=>e?ls:cs,us=(e=!1)=>{if(e)return ls;const t=[...cs];return t[1]=(0,Vt.__)("Boost visibility for your products, from 10 or 10,000+","wordpress-seo"),t};var ps,ms,hs;function fs(){return fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},fs.apply(this,arguments)}const ys=e=>d.createElement("svg",fs({xmlns:"http://www.w3.org/2000/svg",id:"star-rating-half_svg__Layer_1","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),ps||(ps=d.createElement("defs",null,d.createElement("style",null,".star-rating-half_svg__cls-1{fill:#fbbf24}"))),ms||(ms=d.createElement("path",{d:"M250 392.04 98.15 471.87l29-169.09L4.3 183.03l169.77-24.67L250 4.52l75.93 153.84 169.77 24.67-122.85 119.75 29 169.09L250 392.04z",className:"star-rating-half_svg__cls-1"})),hs||(hs=d.createElement("path",{d:"m250 9.04 73.67 149.27.93 1.88 2.08.3 164.72 23.94-119.19 116.19-1.51 1.47.36 2.07 28.14 164.06-147.34-77.46-1.86-1-1.86 1-147.34 77.46 28.14-164.06.36-2.07-1.51-1.47L8.6 184.43l164.72-23.9 2.08-.3.93-1.88L250 9.04m0-9-77.25 156.49L0 181.64l125 121.89-29.51 172L250 394.3l154.51 81.23-29.51-172 125-121.89-172.75-25.11L250 0Z",className:"star-rating-half_svg__cls-1"})),d.createElement("path",{d:"m500 181.64-172.75-25.11L250 0v394.3l154.51 81.23L375 303.48l125-121.84z",style:{fill:"#f3f4f6"}}));function gs(){return gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},gs.apply(this,arguments)}const vs=e=>d.createElement("svg",gs({xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),d.createElement("path",{d:"m250 0 77.25 156.53L500 181.64 375 303.48l29.51 172.05L250 394.3 95.49 475.53 125 303.48 0 181.64l172.75-25.11L250 0z",style:{fill:"#fbbf24"}}));var bs,xs,ws;function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ss.apply(this,arguments)}const _s=e=>d.createElement("svg",Ss({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),bs||(bs=d.createElement("g",{clipPath:"url(#yoast-premium-logo-new_svg__a)"},d.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__b)",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),d.createElement("path",{fill:"#6C2548",d:"m56.016.125-36.06 63.75H64v-53.76c0-4.88-3.414-8.96-7.984-9.987",opacity:.35}),d.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),d.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),d.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),d.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),d.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),d.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),d.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),d.createElement("path",{fill:"#CD82AB",d:"M57.402 58.086H43.888v1.197h13.514v-1.197ZM53.75 53.366l-3.103-5.76v.004l-.004-.004-3.104 5.76-4.777-3.42 1.126 7.702h13.514l1.126-7.702-4.777 3.42Z"}))),xs||(xs=d.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),ws||(ws=d.createElement("defs",null,d.createElement("linearGradient",{id:"yoast-premium-logo-new_svg__b",x1:-2.912,x2:68.509,y1:25.843,y2:38.438,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#5D237A"}),d.createElement("stop",{offset:.08,stopColor:"#702175"}),d.createElement("stop",{offset:.22,stopColor:"#872070"}),d.createElement("stop",{offset:.36,stopColor:"#981E6C"}),d.createElement("stop",{offset:.51,stopColor:"#A21E69"}),d.createElement("stop",{offset:.7,stopColor:"#A61E69"})),d.createElement("clipPath",{id:"yoast-premium-logo-new_svg__a"},d.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"})))));var Es,js,Cs;function ks(){return ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},ks.apply(this,arguments)}const Rs=e=>d.createElement("svg",ks({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),Es||(Es=d.createElement("g",{clipPath:"url(#woo-seo-logo-new_svg__a)"},d.createElement("path",{fill:"#0E1E65",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),d.createElement("path",{fill:"#0075B3",d:"M56.016.253 19.956 64H64V10.24c0-4.88-3.414-8.96-7.984-9.987Z"}),d.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),d.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),d.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),d.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),d.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),d.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),d.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),d.createElement("path",{fill:"#A1CCE3",d:"M58.102 46.806a1.26 1.26 0 0 0-1.219.938l-.157.582a40.97 40.97 0 0 0-10.857 1.261c-.013 0-.023.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.86c.083.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.011h10.592a.507.507 0 0 0 .506-.505c0-1.149-.775-2.15-1.888-2.442L57.862 48a.25.25 0 0 1 .243-.186h.932a.507.507 0 0 0 0-1.01h-.931l-.004.002ZM57.018 59.92a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Z"}))),js||(js=d.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),Cs||(Cs=d.createElement("defs",null,d.createElement("clipPath",{id:"woo-seo-logo-new_svg__a"},d.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"}))))),Os=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}));var Ns=s(4184),Ps=s.n(Ns);const Ts=({link:e,linkProps:t,isPromotionActive:s,isWooCommerceActive:r})=>{const n=r?us:ds,a=(0,o.useMemo)((()=>r?(0,Vt.__)("SEO that scales with your product catalog.","wordpress-seo"):(0,Vt.__)("Now with Local, News & Video SEO + 1 Google Docs seat!","wordpress-seo")),[r]);let i=(0,Vt.__)("Buy now","wordpress-seo");const c=Wt(r?(0,Vt.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ +(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(Gt,{className:"yst-w-3 yst-h-3 yst-mb-[1px] yst-icon-rtl yst-inline-block"})]})]})};Jt.propTypes={link:Yt().string.isRequired};const Qt=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),Xt=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));Yt().string.isRequired,Yt().string.isRequired,Yt().shape({src:Yt().string.isRequired,width:Yt().string,height:Yt().string}).isRequired,Yt().shape({value:Yt().bool.isRequired,status:Yt().string.isRequired,set:Yt().func.isRequired}).isRequired,Yt().string,Yt().string,Yt().string;const es=({handleRefreshClick:e,supportLink:t})=>(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,Zt.jsx)(l.Button,{onClick:e,children:(0,Vt.__)("Refresh this page","wordpress-seo")}),(0,Zt.jsx)(l.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Vt.__)("Contact support","wordpress-seo")})]});es.propTypes={handleRefreshClick:Yt().func.isRequired,supportLink:Yt().string.isRequired};const ts=({handleRefreshClick:e,supportLink:t})=>(0,Zt.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,Zt.jsx)(l.Button,{className:"yst-order-last",onClick:e,children:(0,Vt.__)("Refresh this page","wordpress-seo")}),(0,Zt.jsx)(l.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Vt.__)("Contact support","wordpress-seo")})]});ts.propTypes={handleRefreshClick:Yt().func.isRequired,supportLink:Yt().string.isRequired};const ss=({error:e,children:t=null})=>(0,Zt.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,Zt.jsx)(l.Title,{children:(0,Vt.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,Zt.jsx)("p",{children:(0,Vt.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,Zt.jsx)(l.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,Vt.__)("Undefined error message.","wordpress-seo")}),(0,Zt.jsx)("p",{children:(0,Vt.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});ss.propTypes={error:Yt().object.isRequired,children:Yt().node},ss.VerticalButtons=ts,ss.HorizontalButtons=es;Yt().string,Yt().node.isRequired,Yt().node.isRequired,Yt().node,Yt().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const rs=({to:e,idSuffix:t="",...s})=>{const r=(0,o.useMemo)((()=>(0,c.replace)((0,c.replace)(`link-${e}`,"/","-"),"--","-")),[e]);return(0,Zt.jsx)(l.SidebarNavigation.SubmenuItem,{as:qt,pathProp:"to",id:`${r}${t}`,to:e,...s})};rs.propTypes={to:Yt().string.isRequired,idSuffix:Yt().string};const ns=({href:e,children:t=null,...s})=>(0,Zt.jsxs)(l.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ +(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")})]});ns.propTypes={href:Yt().string.isRequired,children:Yt().node};const as=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),os=[(0,Vt.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,Vt.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,Vt.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,Vt.__)("Optimize pages for multiple keywords with guidance","wordpress-seo")],is=[(0,Vt.__)("Add product details to help your listings stand out","wordpress-seo"),(0,Vt.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,Vt.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,Vt.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo")],ls=[(0,Vt.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,Vt.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,Vt.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,Vt.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,Vt.__)("Internal links and redirect management, easy","wordpress-seo"),(0,Vt.__)("Access to friendly help when you need it, day or night","wordpress-seo")],cs=(e=!1)=>e?os:ls,ds=(e=!1)=>{if(e)return is;const t=[...ls];return t[1]=(0,Vt.__)("Boost visibility for your products, from 10 or 10,000+","wordpress-seo"),t};var us,ps,ms;function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},hs.apply(this,arguments)}const fs=e=>d.createElement("svg",hs({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),us||(us=d.createElement("g",{clipPath:"url(#yoast-premium-logo-new_svg__a)"},d.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__b)",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),d.createElement("path",{fill:"#6C2548",d:"m56.016.125-36.06 63.75H64v-53.76c0-4.88-3.414-8.96-7.984-9.987",opacity:.35}),d.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),d.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),d.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),d.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),d.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),d.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),d.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),d.createElement("path",{fill:"#CD82AB",d:"M57.402 58.086H43.888v1.197h13.514v-1.197ZM53.75 53.366l-3.103-5.76v.004l-.004-.004-3.104 5.76-4.777-3.42 1.126 7.702h13.514l1.126-7.702-4.777 3.42Z"}))),ps||(ps=d.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),ms||(ms=d.createElement("defs",null,d.createElement("linearGradient",{id:"yoast-premium-logo-new_svg__b",x1:-2.912,x2:68.509,y1:25.843,y2:38.438,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#5D237A"}),d.createElement("stop",{offset:.08,stopColor:"#702175"}),d.createElement("stop",{offset:.22,stopColor:"#872070"}),d.createElement("stop",{offset:.36,stopColor:"#981E6C"}),d.createElement("stop",{offset:.51,stopColor:"#A21E69"}),d.createElement("stop",{offset:.7,stopColor:"#A61E69"})),d.createElement("clipPath",{id:"yoast-premium-logo-new_svg__a"},d.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"})))));var ys,gs,vs;function bs(){return bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},bs.apply(this,arguments)}const xs=e=>d.createElement("svg",bs({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),ys||(ys=d.createElement("g",{clipPath:"url(#woo-seo-logo-new_svg__a)"},d.createElement("path",{fill:"#0E1E65",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),d.createElement("path",{fill:"#0075B3",d:"M56.016.253 19.956 64H64V10.24c0-4.88-3.414-8.96-7.984-9.987Z"}),d.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),d.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),d.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),d.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),d.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),d.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),d.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),d.createElement("path",{fill:"#A1CCE3",d:"M58.102 46.806a1.26 1.26 0 0 0-1.219.938l-.157.582a40.97 40.97 0 0 0-10.857 1.261c-.013 0-.023.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.86c.083.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.011h10.592a.507.507 0 0 0 .506-.505c0-1.149-.775-2.15-1.888-2.442L57.862 48a.25.25 0 0 1 .243-.186h.932a.507.507 0 0 0 0-1.01h-.931l-.004.002ZM57.018 59.92a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Z"}))),gs||(gs=d.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),vs||(vs=d.createElement("defs",null,d.createElement("clipPath",{id:"woo-seo-logo-new_svg__a"},d.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"})))));var ws=s(4184),Ss=s.n(ws);const _s=({link:e,linkProps:t,isPromotionActive:s,isWooCommerceActive:r})=>{const n=r?ds:cs,a=(0,o.useMemo)((()=>r?(0,Vt.__)("Grow your store's visibility!","wordpress-seo"):(0,Vt.__)("Spend less time on SEO tasks!","wordpress-seo")),[r]),i=(0,o.useMemo)((()=>r?(0,Vt.__)("Help ready-to-buy shoppers and search engines find your product.","wordpress-seo"):(0,Vt.__)("Optimize your site faster, smarter, and with more confidence.","wordpress-seo")),[r]);let c=(0,Vt.__)("Buy now","wordpress-seo");const d=(0,o.useMemo)((()=>r?(0,Vt.__)("Less friction. Smarter optimization.","wordpress-seo"):(0,Vt.__)("Less friction. Faster publishing.","wordpress-seo")),[r]),u=Wt(r?(0,Vt.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ (0,Vt.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast WooCommerce SEO"):(0,Vt.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ -(0,Vt.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,Zt.jsx)("span",{className:"yst-whitespace-nowrap"})}),d=s("black-friday-promotion");return d&&(i=(0,Vt.__)("Buy now for 30% off","wordpress-seo")),(0,Zt.jsxs)("div",{className:Ps()("yst-p-6 yst-rounded-lg yst-text-white yst-shadow",r?"yst-bg-woo-dark":"yst-bg-primary-500"),children:[(0,Zt.jsx)("figure",{className:"yst-logo-square yst-w-16 yst-h-16 yst-mx-auto yst-overflow-hidden yst-relative yst-z-10 yst-mt-[-2.6rem]",children:r?(0,Zt.jsx)(Rs,{}):(0,Zt.jsx)(_s,{})}),d&&(0,Zt.jsx)("div",{className:"sidebar__sale_banner_container",children:(0,Zt.jsx)("div",{className:"sidebar__sale_banner",children:(0,Zt.jsx)("span",{className:"banner_text",children:(0,Vt.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})})}),(0,Zt.jsx)(l.Title,{as:"h2",className:"yst-mt-6 yst-text-base yst-font-extrabold yst-text-white",children:c}),(0,Zt.jsx)("p",{className:"yst-mt-2 yst-font-medium",children:a}),(0,Zt.jsx)("ul",{className:"yst-list-outside yst-text-white yst-mt-2",children:n(!0).map(((e,t)=>(0,Zt.jsxs)("li",{className:"yst-flex yst-items-center yst-gap-2",children:[(0,Zt.jsx)(Os,{className:"yst-w-4 yst-h-4 yst-text-green-400"}),(0,Zt.jsx)("span",{children:e})]},`upsell-benefit-${t}`)))}),(0,Zt.jsxs)(l.Button,{as:"a",variant:"upsell",href:e,target:"_blank",rel:"noopener",className:"yst-flex yst-justify-center yst-gap-2 yst-mt-4 focus:yst-ring-offset-primary-500",...t,children:[(0,Zt.jsx)("span",{children:i}),(0,Zt.jsx)(is,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})]}),(0,Zt.jsx)("p",{className:"yst-text-center yst-text-xs yst-mx-2 yst-font-normal yst-leading-5 yst-italic yst-mt-2",children:(0,Vt.__)("30-day money back guarantee","wordpress-seo")}),(0,Zt.jsx)("hr",{className:"yst-border-t yst-border-primary-300 yst-my-4"}),(0,Zt.jsx)("a",{className:"yst-block yst-mt-4 yst-no-underline",href:"https://www.g2.com/products/yoast-yoast/reviews",target:"_blank",rel:"noopener noreferrer",children:(0,Zt.jsxs)("span",{className:"yst-flex yst-gap-2 yst-mt-2 yst-items-center",children:[(0,Zt.jsx)(ns,{className:"yst-w-5 yst-h-5"}),(0,Zt.jsxs)("span",{className:"yst-flex yst-gap-1",children:[(0,Zt.jsx)(vs,{className:"yst-w-5 yst-h-5"}),(0,Zt.jsx)(vs,{className:"yst-w-5 yst-h-5"}),(0,Zt.jsx)(vs,{className:"yst-w-5 yst-h-5"}),(0,Zt.jsx)(vs,{className:"yst-w-5 yst-h-5"}),(0,Zt.jsx)(ys,{className:"yst-w-5 yst-h-5"})]}),(0,Zt.jsx)("span",{className:"yst-text-sm yst-font-semibold yst-text-white",children:"4.6 / 5"})]})})]})};Ts.propTypes={link:Yt().string.isRequired,linkProps:Yt().object.isRequired,isPromotionActive:Yt().func.isRequired};const Ls=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}));var Ms;function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},As.apply(this,arguments)}const Is=e=>d.createElement("svg",As({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),Ms||(Ms=d.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));var Ds;function Fs(){return Fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Fs.apply(this,arguments)}const zs=e=>d.createElement("svg",Fs({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),Ds||(Ds=d.createElement("path",{fill:"#0075B3",d:"M12.613.445a1.26 1.26 0 0 0-1.22.937l-.156.583A40.97 40.97 0 0 0 .379 3.225c-.013 0-.022.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.861c.084.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.01h10.592a.507.507 0 0 0 .506-.505c0-1.149-.774-2.15-1.888-2.441l1.722-6.452a.25.25 0 0 1 .243-.185h.931a.507.507 0 0 0 0-1.011h-.931l-.003.003Zm-1.085 13.114a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Z"}))),Us=({premiumLink:e,premiumUpsellConfig:t={},isPromotionActive:s,isWooCommerceActive:r})=>{const n=s("black-friday-promotion"),a=r?us:ds,o=[...r?["Yoast SEO Premium"]:[],"Local SEO","News SEO","Video SEO",(0,Vt.__)("Google Docs add-on (1 seat)","wordpress-seo")],i=r?Ps()("yst-bg-woo-light","yst-text-[#006499]"):Ps()("yst-bg-primary-500","yst-text-primary-500");let c=r?(0,Vt.sprintf)(/* translators: %s expands to "Yoast WooCommerce SEO" */ +(0,Vt.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,Zt.jsx)("span",{className:"yst-whitespace-nowrap"})}),p=s("black-friday-promotion");return p&&(c=(0,Vt.__)("Buy now for 30% off","wordpress-seo")),(0,Zt.jsxs)("div",{className:Ss()("yst-p-6 yst-rounded-lg yst-text-slate-600 yst-bg-white yst-shadow yst-border",r?"yst-border-woo-light yst-border-opacity-50":"yst-border-primary-300"),children:[(0,Zt.jsx)("figure",{className:"yst-logo-square yst-w-16 yst-h-16 yst-mx-auto yst-overflow-hidden yst-relative yst-z-10 yst-mt-[-2.6rem]",children:r?(0,Zt.jsx)(xs,{}):(0,Zt.jsx)(fs,{})}),p&&(0,Zt.jsx)("div",{className:"sidebar__sale_banner_container",children:(0,Zt.jsx)("div",{className:"sidebar__sale_banner",children:(0,Zt.jsx)("span",{className:"banner_text",children:(0,Vt.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})})}),(0,Zt.jsx)(l.Title,{as:"h2",className:Ss()("yst-mt-6 yst-text-xl yst-font-semibold",r?"yst-text-woo-light":"yst-text-primary-500"),children:u}),(0,Zt.jsx)("p",{className:"yst-mt-3 yst-font-medium yst-text-slate-800",children:a}),(0,Zt.jsx)("p",{className:"yst-mt-1 yst-font-normal",children:i}),(0,Zt.jsx)("ul",{className:"yst-list-outside yst-text-slate-600 yst-mt-4 yst-flex yst-flex-col yst-gap-2",children:n(!0).map(((e,t)=>(0,Zt.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,Zt.jsx)(as,{className:"yst-mr-2 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),e]},`upsell-benefit-${t}`)))}),(0,Zt.jsxs)(l.Button,{as:"a",variant:"upsell",href:e,target:"_blank",rel:"noopener",className:"yst-flex yst-justify-center yst-gap-2 yst-mt-4 focus:yst-ring-offset-primary-500",...t,children:[(0,Zt.jsx)("span",{children:c}),(0,Zt.jsx)(Xt,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"})]}),(0,Zt.jsx)("p",{className:"yst-text-center yst-text-xs yst-font-normal yst-leading-5 yst-text-slate-500 yst-italic yst-mt-3 yst-mb-2",children:d}),(0,Zt.jsx)("hr",{className:"yst-border-t yst-border-slate-200 yst-my-4"}),(0,Zt.jsxs)("ul",{className:"yst-text-center yst-text-xs yst-font-medium yst-text-slate-800 yst-list-none",children:[(0,Zt.jsx)("li",{children:(0,Vt.__)("30-day money back guarantee","wordpress-seo")}),(0,Zt.jsx)("li",{children:(0,Vt.__)("24/7 support","wordpress-seo")})]})]})};_s.propTypes={link:Yt().string.isRequired,linkProps:Yt().object.isRequired,isPromotionActive:Yt().func.isRequired};const Es=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))}));var js;function ks(){return ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},ks.apply(this,arguments)}const Cs=e=>d.createElement("svg",ks({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),js||(js=d.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));var Rs;function Ns(){return Ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ns.apply(this,arguments)}const Ps=e=>d.createElement("svg",Ns({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),Rs||(Rs=d.createElement("path",{fill:"#0075B3",d:"M12.613.445a1.26 1.26 0 0 0-1.22.937l-.156.583A40.97 40.97 0 0 0 .379 3.225c-.013 0-.022.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.861c.084.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.01h10.592a.507.507 0 0 0 .506-.505c0-1.149-.774-2.15-1.888-2.441l1.722-6.452a.25.25 0 0 1 .243-.185h.931a.507.507 0 0 0 0-1.011h-.931l-.003.003Zm-1.085 13.114a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Z"}))),Os=({premiumLink:e,premiumUpsellConfig:t={},isPromotionActive:s,isWooCommerceActive:r})=>{const n=s("black-friday-promotion"),a=r?ds:cs,o=[...r?["Yoast SEO Premium"]:[],"Local SEO","News SEO","Video SEO",(0,Vt.__)("Google Docs add-on (1 seat)","wordpress-seo")],i=r?Ss()("yst-bg-woo-light","yst-text-[#006499]"):Ss()("yst-bg-primary-500","yst-text-primary-500");let c=r?(0,Vt.sprintf)(/* translators: %s expands to "Yoast WooCommerce SEO" */ (0,Vt.__)("Explore %s now!","wordpress-seo"),"Yoast WooCommerce SEO"):(0,Vt.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ -(0,Vt.__)("Explore %s now!","wordpress-seo"),"Yoast SEO Premium");return n&&(c=(0,Vt.__)("Get 30% off now!","wordpress-seo")),(0,Zt.jsxs)(l.Paper,{as:"div",className:"yst-max-w-4xl",children:[n&&(0,Zt.jsxs)("div",{className:"yst-rounded-t-lg yst-h-9 yst-flex yst-justify-between yst-items-center yst-bg-black yst-text-amber-300 yst-px-4 yst-text-lg yst-border-b yst-border-amber-300 yst-border-solid yst-font-medium",children:[(0,Zt.jsx)("div",{children:(0,Vt.__)("30% OFF","wordpress-seo")}),(0,Zt.jsx)("div",{children:(0,Vt.__)("BLACK FRIDAY","wordpress-seo")})]}),(0,Zt.jsxs)("div",{className:"yst-p-6 yst-flex yst-flex-col",children:[(0,Zt.jsx)("div",{className:"yst-flex yst-items-center",children:r?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(l.Title,{as:"h2",size:"4",className:"yst-text-xl "+(r?"yst-text-woo-light":"yst-text-primary-500 "),children:(0,Vt.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ -(0,Vt.__)("Upgrade to %s","wordpress-seo"),"Yoast WooCommerce SEO")}),(0,Zt.jsx)(zs,{className:"yst-ml-2 yst-w-4 yst-h-3"})]}):(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(l.Title,{as:"h2",size:"4",className:"yst-text-xl "+(r?"yst-text-woo-light":"yst-text-primary-500 "),children:(0,Vt.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ -(0,Vt.__)("Upgrade to %s","wordpress-seo"),"Yoast SEO Premium")}),(0,Zt.jsx)(Is,{className:"yst-ml-2 yst-w-4 yst-h-3"})]})}),(0,Zt.jsxs)("div",{className:"yst-font-medium yst-text-slate-800 yst-text-xs yst-leading-7 yst-mt-2",children:[(0,Zt.jsx)("span",{className:"yst-mr-2",children:(0,Vt.__)("Now includes:","wordpress-seo")}),(0,Zt.jsx)("div",{className:"yst-inline-block",children:o.map(((e,t)=>(0,Zt.jsx)(l.Badge,{size:"small",variant:"plain",className:Ps()("yst-mr-2 yst-bg-opacity-15",i),children:e},`now-including-${t}`)))})]}),(0,Zt.jsx)("ul",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 yst-gap-x-6 yst-gap-y-2 yst-list-none yst-list-outside yst-text-slate-600 yst-mt-4",children:a().map(((e,t)=>(0,Zt.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,Zt.jsx)(Ls,{className:"yst-mr-2 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),e]},`upsell-benefit-${t}`)))}),(0,Zt.jsxs)(l.Button,{as:"a",variant:"upsell",size:"extra-large",href:e,className:"yst-gap-2 yst-mt-6 sm:yst-max-w-sm",target:"_blank",rel:"noopener",...t,children:[c,(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(is,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})]})]})]})};Us.propTypes={premiumLink:Yt().string.isRequired,premiumUpsellConfig:Yt().object,isPromotionActive:Yt().func.isRequired,isWooCommerceActive:Yt().bool.isRequired};const Bs=({premiumLink:e,premiumUpsellConfig:t,academyLink:s,isPromotionActive:r,isWooCommerceActive:n})=>(0,Zt.jsxs)("div",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 xl:yst-grid-cols-1 yst-gap-4",children:[(0,Zt.jsx)(Ts,{link:e,linkProps:t,isPromotionActive:r,isWooCommerceActive:n}),(0,Zt.jsx)(Jt,{link:s})]});Bs.propTypes={premiumLink:Yt().string.isRequired,premiumUpsellConfig:Yt().object.isRequired,academyLink:Yt().string.isRequired,isPromotionActive:Yt().func.isRequired,isWooCommerceActive:Yt().bool.isRequired};const qs=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),$s=({isOpen:e,onClose:t=c.noop,onDiscard:s=c.noop,title:r,description:n,dismissLabel:a,discardLabel:o})=>{const i=(0,l.useSvgAria)();return(0,Zt.jsx)(l.Modal,{isOpen:e,onClose:t,children:(0,Zt.jsxs)(l.Modal.Panel,{closeButtonScreenReaderText:(0,Vt.__)("Close","wordpress-seo"),children:[(0,Zt.jsxs)("div",{className:"sm:yst-flex sm:yst-items-start",children:[(0,Zt.jsx)("div",{className:"yst-mx-auto yst-flex-shrink-0 yst-flex yst-items-center yst-justify-center yst-h-12 yst-w-12 yst-rounded-full yst-bg-red-100 sm:yst-mx-0 sm:yst-h-10 sm:yst-w-10",children:(0,Zt.jsx)(qs,{className:"yst-h-6 yst-w-6 yst-text-red-600",...i})}),(0,Zt.jsxs)("div",{className:"yst-mt-3 yst-text-center sm:yst-mt-0 sm:yst-ms-4 sm:yst-text-start",children:[(0,Zt.jsx)(l.Modal.Title,{className:"yst-text-lg yst-leading-6 yst-font-medium yst-text-slate-900 yst-mb-3",children:r}),(0,Zt.jsx)(l.Modal.Description,{className:"yst-text-sm yst-text-slate-500",children:n})]})]}),(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col sm:yst-flex-row-reverse yst-gap-3 yst-mt-6",children:[(0,Zt.jsx)(l.Button,{type:"button",variant:"error",onClick:s,className:"yst-block",children:o}),(0,Zt.jsx)(l.Button,{type:"button",variant:"secondary",onClick:t,className:"yst-block",children:a})]})]})})};$s.propTypes={isOpen:Yt().bool.isRequired,onClose:Yt().func,onDiscard:Yt().func,title:Yt().string.isRequired,description:Yt().string.isRequired,dismissLabel:Yt().string.isRequired,discardLabel:Yt().string.isRequired};const Hs=window.yoast.reactHelmet,Vs="request",Ws="success",Gs="error",Ks="loading";var Ys,Zs;function Js(){return Js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Js.apply(this,arguments)}Yt().string.isRequired,Yt().shape({src:Yt().string.isRequired,width:Yt().string,height:Yt().string}).isRequired,Yt().shape({value:Yt().bool.isRequired,status:Yt().string.isRequired,set:Yt().func.isRequired}).isRequired,Yt().bool;const Qs=e=>d.createElement("svg",Js({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"yoast-logo_svg__w-40",viewBox:"0 0 842 224"},e),Ys||(Ys=d.createElement("path",{fill:"#a61e69",d:"M166.55 54.09c-38.69 0-54.17 25.97-54.17 54.88s15.25 56.02 54.17 56.02 54.07-27.19 54-54.26c-.09-32.97-16.77-56.65-54-56.65Zm-23.44 56.52c.94-38.69 30.66-38.65 40.59-24.79 9.05 12.63 10.9 55.81-17.14 55.5-12.92-.14-23.06-8.87-23.44-30.71Zm337.25 27.55V82.11h20.04V57.78h-20.04V28.39h-30.95v29.39h-15.7v24.33h15.7v52.87c0 30.05 20.95 47.91 43.06 51.61l9.24-24.88c-12.89-1.63-21.23-11.27-21.35-23.54Zm-156.15-8.87V87.16c0-1.54-.1-2.98-.25-4.39-2.68-34.04-51.02-33.97-88.46-20.9l10.82 21.78c24.38-11.58 38.97-8.59 44.07-2.89.13.15.26.29.38.45.01.02.03.04.04.06 2.6 3.51 1.98 9.05 1.98 13.41-31.86 0-65.77 4.23-65.77 39.17 0 26.56 33.28 43.65 68.06 18.33l5.16 12.45h29.81c-2.66-14.62-5.85-27.14-5.85-35.34Zm-31.18-.23c-24.51 27.43-46.96 1.61-23.97-9.65 6.77-2.31 15.95-2.41 23.97-2.41v12.06Zm78.75-44.17c0-10.38 16.61-15.23 42.82-3.27l9.06-22.01c-35.27-10.66-83.44-11.62-83.75 25.28-.15 17.68 11.19 27.19 27.52 33.26 11.31 4.2 27.64 6.38 27.59 15.39-.06 11.77-25.38 13.57-48.42-2.26l-9.31 23.87c31.43 15.64 89.87 16.08 89.56-23.12-.31-38.76-55.08-32.11-55.08-47.14ZM99.3 1 54.44 125.61 32.95 58.32H1l35.78 91.89a33.49 33.49 0 0 1 0 24.33c-4 10.25-10.65 19.03-26.87 21.21v27.24c31.58 0 48.65-19.41 63.88-61.96L133.48 1H99.3ZM598.64 139.05c0 8.17-2.96 14.58-8.87 19.23-5.91 4.65-14.07 6.98-24.47 6.98s-18.92-1.61-25.54-4.84v-14.2c4.19 1.97 8.65 3.52 13.37 4.65 4.72 1.13 9.11 1.7 13.18 1.7 5.95 0 10.35-1.13 13.18-3.39 2.83-2.26 4.25-5.3 4.25-9.11 0-3.43-1.3-6.35-3.9-8.74-2.6-2.39-7.97-5.22-16.1-8.48-8.39-3.39-14.3-7.27-17.74-11.63-3.44-4.36-5.16-9.59-5.16-15.71 0-7.67 2.72-13.7 8.18-18.1 5.45-4.4 12.77-6.6 21.95-6.6s17.57 1.93 26.29 5.78l-4.78 12.26c-8.18-3.43-15.47-5.15-21.89-5.15-4.87 0-8.55 1.06-11.07 3.17-2.52 2.12-3.77 4.91-3.77 8.39 0 2.39.5 4.43 1.51 6.13s2.66 3.3 4.97 4.81c2.3 1.51 6.46 3.5 12.45 5.97 6.75 2.81 11.7 5.43 14.85 7.86 3.15 2.43 5.45 5.18 6.92 8.23 1.46 3.06 2.2 6.66 2.2 10.81Zm68.53 24.96h-52.02V72.12h52.02v12.7h-36.99v25.01h34.66v12.57h-34.66v28.85h36.99v12.76Zm100.24-46.07c0 14.96-3.74 26.59-11.23 34.88-7.49 8.3-18.08 12.44-31.8 12.44s-24.54-4.12-31.99-12.35c-7.44-8.23-11.17-19.93-11.17-35.1s3.74-26.82 11.23-34.95c7.49-8.13 18.17-12.19 32.05-12.19s24.24 4.13 31.7 12.38c7.47 8.26 11.2 19.88 11.2 34.88Zm-70.2 0c0 11.31 2.29 19.89 6.86 25.74 4.57 5.85 11.35 8.77 20.32 8.77s15.67-2.89 20.22-8.67c4.55-5.78 6.82-14.39 6.82-25.83s-2.25-19.82-6.76-25.64-11.23-8.74-20.16-8.74-15.82 2.91-20.41 8.74c-4.59 5.82-6.89 14.37-6.89 25.64Z"})),Zs||(Zs=d.createElement("path",{fill:"#77b227",d:"m790.45 165.35 36.05-94.96H840l-36.02 94.96h-13.53z"}))),Xs=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));var er,tr,sr,rr,nr,ar,or,ir,lr,cr,dr,ur,pr,mr,hr,fr,yr,gr,vr,br,xr,wr,Sr,_r,Er,jr,Cr,kr,Rr,Or,Nr,Pr,Tr,Lr,Mr,Ar,Ir,Dr,Fr,zr,Ur,Br,qr,$r,Hr,Vr,Wr,Gr,Kr,Yr,Zr,Jr,Qr,Xr,en,tn,sn,rn,nn,an,on,ln,cn,dn,un,pn,mn,hn,fn;function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},yn.apply(this,arguments)}const gn=e=>d.createElement("svg",yn({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none",viewBox:"0 0 252 60"},e),er||(er=d.createElement("linearGradient",{id:"yoast-connect-google-site-kit_svg__a"},d.createElement("stop",{offset:0,stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610b39"}),d.createElement("stop",{offset:.15,stopColor:"#79164b"}),d.createElement("stop",{offset:.29,stopColor:"#8c1e59"}),d.createElement("stop",{offset:.44,stopColor:"#9a2463"}),d.createElement("stop",{offset:.63,stopColor:"#a22768"}),d.createElement("stop",{offset:1,stopColor:"#a4286a"}))),tr||(tr=d.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__b",x1:49.556,x2:49.556,y1:36.267,y2:23.152,gradientUnits:"userSpaceOnUse"})),sr||(sr=d.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__c",x1:82.801,x2:82.801,y1:38.819,y2:20.113,gradientUnits:"userSpaceOnUse"})),rr||(rr=d.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__d",x1:62.504,x2:62.504,y1:36.222,y2:23.113,gradientUnits:"userSpaceOnUse"})),nr||(nr=d.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__e",x1:73.951,x2:73.951,y1:36.276,y2:23.046,gradientUnits:"userSpaceOnUse"})),ar||(ar=d.createElement("linearGradient",{id:"yoast-connect-google-site-kit_svg__f",x1:25.237,x2:25.237,y1:16.169,y2:36.914,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:0,stopColor:"#77b227"}),d.createElement("stop",{offset:.47,stopColor:"#75b027"}),d.createElement("stop",{offset:.64,stopColor:"#6eab27"}),d.createElement("stop",{offset:.75,stopColor:"#63a027"}),d.createElement("stop",{offset:.85,stopColor:"#529228"}),d.createElement("stop",{offset:.93,stopColor:"#3c8028"}),d.createElement("stop",{offset:1,stopColor:"#246b29"}))),or||(or=d.createElement("clipPath",{id:"yoast-connect-google-site-kit_svg__g"},d.createElement("path",{d:"M169.334 22h14.973v15.909h-14.973z"}))),ir||(ir=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__b)",fillRule:"evenodd",d:"M36.765 29.643c0-3.42 1.83-6.49 6.405-6.49 4.402 0 6.375 2.8 6.386 6.698.008 3.2-1.785 6.416-6.386 6.416-4.602 0-6.405-3.072-6.405-6.624zm8.432-2.74c-1.174-1.64-4.688-1.64-4.8 2.932.046 2.582 1.245 3.614 2.773 3.63 3.316.039 3.092-5.067 2.027-6.562z",clipRule:"evenodd"})),lr||(lr=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__c)",d:"M80.278 33.094v-6.631h2.368v-2.874h-2.368v-3.476h-3.66v3.476h-1.856v2.876h1.857v6.258c0 3.553 2.477 5.665 5.092 6.102l1.092-2.948c-1.524-.194-2.51-1.333-2.525-2.783z"})),cr||(cr=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__d)",fillRule:"evenodd",d:"M61.81 27.062v4.981c0 .7.196 1.67.426 2.803.088.436.182.897.27 1.376h-3.523l-.611-1.472c-4.118 2.994-8.053.974-8.053-2.168 0-4.131 4.01-4.632 7.777-4.632l.003-.249c.01-.465.02-.985-.24-1.336v-.007l-.034-.04-.011-.013c-.602-.675-2.327-1.028-5.21.341l-1.283-2.575c4.428-1.546 10.143-1.555 10.46 2.47.019.174.028.347.03.52zm-6.52 3.81c-2.718 1.331-.064 4.384 2.835 1.14v-1.425c-.949 0-2.035.012-2.835.284z",clipRule:"evenodd"})),dr||(dr=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__e)",d:"M67.439 26.794c0-1.227 1.966-1.8 5.064-.386l1.072-2.605c-4.17-1.262-9.866-1.371-9.904 2.991-.017 2.091 1.324 3.216 3.255 3.934 1.337.497 3.268.754 3.262 1.82-.007 1.391-3 1.604-5.725-.268l-1.101 2.823c3.716 1.85 10.627 1.902 10.59-2.734-.03-4.583-6.513-3.798-6.513-5.575z"})),ur||(ur=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__f)",d:"m35.218 16.875-5.305 14.734-2.54-7.956h-3.779l4.23 10.866a3.956 3.956 0 0 1 0 2.877c-.474 1.213-1.26 2.25-3.177 2.508v3.221c3.734 0 5.753-2.295 7.554-7.326l7.06-18.924z"})),pr||(pr=d.createElement("path",{fill:"#f0ecf0",d:"M124.088 57.357c15.427 0 27.934-12.506 27.934-27.933S139.515 1.49 124.088 1.49 96.155 13.997 96.155 29.424s12.506 27.933 27.933 27.933z"})),mr||(mr=d.createElement("path",{fill:"#9e005d",d:"M122.68 23.422c5.075-5.662 3.282-.196 13.081-2.26 2.792-.587 7.802-1.905 9.067.833 1.427 3.092 4.014 3.471 3.211 5.47-1.412 3.512-6.46 4.52-7.887.556-1.819-1.232-8.98 2.24-11.167 2.775-.813.198-.868-2.038-1.675-2.168-.529-.085-.462-.17-.939-.575-4.613-3.918-4.904-3.277-5.22-4.126.482-.115.95-.396 1.531-.503z"})),hr||(hr=d.createElement("path",{fill:"#6c2548",d:"M145.465 25.27c-1.744-.556-3.859.788-3.015 2.668.204.456 1.233 2.392 1.665 2.536 1.633.552 5.651-2.227 1.35-5.204z"})),fr||(fr=d.createElement("path",{fill:"#ffc399",d:"M145.972 26.652c-.452-.226-2.526.313-2.3 1.188.281 1.084.758 1.655 1.395 1.998 1.627.875 1.365 2.531 3.684 2.5 1.12-.015 4.022-1.557 4.118-.456.157 1.823.464 3.564.792 3.17.792-.951 1.109-1.03 1.188-4.2.021-.887-2.14-1.506-3.013-2.854-.473-.733-2.932-.714-5.866-1.348z"})),yr||(yr=d.createElement("path",{fill:"#be1e2d",d:"M109.348 16.345c-2.102-1.797-8.454 4.23-7.974 6.137.479-.51 1.186-1.505 1.973-1.316-2.719 1.838-3.191 6.484-1.784 9.259.158-.735.439-1.525.897-2.123-.778 3.037.466 8.256 4.271 10.873-.26-1.915-1.201-5.028.477-6.267 2.485-1.836 5.651-2.398 7.153-5.43 3.716-7.506-7.675-12.913-5.013-11.135z"})),gr||(gr=d.createElement("path",{fill:"#9e005d",d:"M111.503 27.227c-1.65.136-7.152 11.633.475 20.362 1.067 1.222 2.372 3.568 3.92 3.78 3.256.442 11.848-1.813 15.059-3.189 12.146-5.202 1.267-10.842-.308-16.792-1.421-5.366-1.725-8.762-7.928-8.997-2.92-.11-11.15 1.768-11.95 5.058-.224.108-.109-.08.732-.224z"})),vr||(vr=d.createElement("path",{fill:"#6c2548",d:"M123.196 23.817c3.828 1.233 6.256 5.375 7.755 8.771-1.38-4.316-2.059-8.262-7.932-8.95-.013-.072.419-.694.177.18z"})),br||(br=d.createElement("path",{fill:"#6c2548",d:"M127.718 23.362c1.071.893 1.961 2.794 2.438 3.984.522 1.306.088 3.329.571 4.638-1.292-3.232-1.307-5.14-3.007-8.622z"})),xr||(xr=d.createElement("path",{fill:"#ffc399",d:"M125.772 33.468c-1.058.375-2.898.677-4.103 1.248-2.187 1.037-4.936-1.725-7.313-1.188-.858.194-3.845-.873-4.082-1.942-.293-1.325-.745-1.352-.078-2.22 2.619-3.402 2.815-1.566 2.932-6.896.019-.886-.2-1.312.079-2.061.279-.75.21.017 1.09-.143.879-.16 2.996-1.05 3.869-.652 1.533.699.513 3.972 1.61 5.107 1.139 1.177 3.841-.028 4.989 1.128 1.439 1.45 1.324 6.848 1.005 7.621z"})),wr||(wr=d.createElement("path",{fill:"#e57c57",d:"M123.021 27.88c.285-.57.221-1.564-.026-2.586-1.175-.034-2.504.164-3.217-.575-.65-.671-.558-2.085-.692-3.277a3.502 3.502 0 0 1-.607-.122c-1.263-.372-2.67-.835-4.069-1.077-.039.008-.077.017-.111.023-.405.075-.605-.057-.733-.143l-.213-.017c-.04.05-.085.141-.144.303-.271.728-.073 1.156-.079 1.995 1.386 3.614 6.644 11.98 9.895 5.477z"})),Sr||(Sr=d.createElement("path",{fill:"#f1f2f2",d:"M116.06 33.648c7.293 3.488 11.969 5.47 13.635 9.989-1.031-4.757-.893-8.622-4.459-15.161.675 7.425-8.761 5.37-9.176 5.172z"})),_r||(_r=d.createElement("path",{fill:"#6c2548",d:"M129.697 43.002c.157-3.884-1.057-18.564-4.44-20.057-1.056-.466-10.726 1.174-7.768 1.348 4.625.27 7.293 2.775 7.928 4.28.792 1.11 3.081 8.599 4.28 14.427z"})),Er||(Er=d.createElement("path",{fill:"#9e005d",d:"M129.616 43.001c.157-3.884-1.93-18.723-5.311-20.214-1.056-.467-9.776 1.333-6.819 1.505 4.626.27 7.294 2.775 7.928 4.28.792 1.11 3.003 8.599 4.202 14.427z"})),jr||(jr=d.createElement("path",{fill:"#ffc399",d:"M126.288 12.877c.555 2.457-.397 1.902.078 3.488.375 1.25.729 2.066.635 3.488-.241 3.656-2.983 6.876-3.086 6.978-1.45 1.45-3.132 1.295-5.476.077-4.364-2.266-6.898-4.994-7.532-11.823-.471-5.072 3.763-8.847 9.014-8.313 3.249.332 5.449 2.04 6.367 6.103z"})),Cr||(Cr=d.createElement("path",{fill:"#be1e2d",d:"M114.461 9.389c3.944-.179 3.02 1.925 6.539 2.973 2.794.832 5.707-1.012 5.173 3.745-.475 4.212 9.401-4.116 1.46-7.591-1.269-.556-1.137-1.414-2.378-3.013-2.598-3.343-11.337-7.055-15.061-.873-.944 1.567 2.657 4.101 4.265 4.757z"})),kr||(kr=d.createElement("path",{fill:"#be1e2d",d:"M114.282 9.508c.912 3.597-.161 4.23-.653 5.47-.541 1.364-.803 2.65-1.487 3.925-.992-2.07-2.184-.317-5.276-4.36-5.537-7.24 9.782-16.915 7.416-5.035z"})),Rr||(Rr=d.createElement("path",{fill:"#ffc399",d:"M112.336 19.497c.617-1.633-4.029-4.43-3.599-1.043.209 1.642 1.516 2.574 2.913 3.152 2.294.945 1.195-1.676.569-3.058l.119.952z"})),Or||(Or=d.createElement("path",{fill:"#be1e2d",d:"M113.168 14.026c.309 1.25-.03 6.814 1.785 8.997-3.152-1.714-2.37-5.13-1.785-8.997z"})),Nr||(Nr=d.createElement("path",{fill:"#be1e2d",d:"M112.691 15.573c-.728.415-1.441 3.388-.323 5.705.006-.021.483-4.91.323-5.705z"})),Pr||(Pr=d.createElement("path",{fill:"#9e005d",d:"M117.012 34.121c-2.877-1.74-5.509-2.068-4.725-7.2.867-1.004.747-1.897.807-3.383-1.109.396-4.086 1.948-5.434 2.655-1.985 1.04-4.361 3.41-2.458 5.39.703.73-1.758 1.923.937 6.759 1.506-2.617 2.711-4.855 3.661-4.934 3.33-.079 4.431 1.667 7.372 2.378 7.214 1.744 11.654 6.501 12.525 8.164.036-1.051-1.269-4.914-12.683-9.829z"})),Tr||(Tr=d.createElement("path",{fill:"#9e005d",d:"M108.45 34.202c-8.258 11.429 2.709 12.432 5.351 22.998.119.48.656 1.17 1.503 1.322 5.051.903 10.884-1.744 15.862-6.92 1.408-1.463.247-4.902-1.546-5.648-2.319-1.546-7.378 4.023-13.006 2.992-.677-1.02-1.505-13.477-8.164-14.744z"})),Lr||(Lr=d.createElement("path",{fill:"#a0c9cb",d:"m155.213 40.425-.27 9.99-6.399-1.368-.094-9.712z"})),Mr||(Mr=d.createElement("path",{fill:"#75b0b3",d:"m155.48 50.235-.509.238c.085-11.096-.171-10.3.509-10.166v9.93z"})),Ar||(Ar=d.createElement("path",{fill:"#66a7ab",d:"M150.965 40.959c2.473.277 3.211 6.54 2.498 9.037-.119-.12-3.567-.833-3.686-.713-1.718-1.964-.992-8.57 1.188-8.324z"})),Ir||(Ir=d.createElement("path",{fill:"#467d7f",d:"M154.983 40.783s.153-1.902 0-2.02c-.153-.12-6.641-.655-6.641-.655-.776 1.706-.431 1.282 6.641 2.675z"})),Dr||(Dr=d.createElement("path",{fill:"#67a8ac",d:"m152.371 30.436 2.881 8.443-6.729-1.15-3.307-9.016z"})),Fr||(Fr=d.createElement("path",{fill:"#55989b",d:"m152.988 32.518.101.02-.716-2.1-7.155-1.725.656 1.786z"})),zr||(zr=d.createElement("path",{fill:"#519093",d:"m148.766 37.79-1.127.713-2.679-8.541 1.25-.893z"})),Ur||(Ur=d.createElement("path",{fill:"#b1d3d4",d:"m152.794 30.08-.922 1.069-6.552-1.01.869-1.011z"})),Br||(Br=d.createElement("path",{fill:"#a0c9cb",d:"M155.648 39.988c0 1.052-1.046 1.052-1.046 0s1.046-1.052 1.046 0z"})),qr||(qr=d.createElement("path",{fill:"#a0c9cb",d:"M147.639 38.502c1.501-.95.058-.881 7.713.317-1.38 1.189-.053 1.07-7.713-.317z"})),$r||($r=d.createElement("path",{fill:"#75b0b3",d:"m155.354 38.879-1.037.832-2.444-8.681.922-1.07z"})),Hr||(Hr=d.createElement("path",{fill:"#6b1523",d:"M117.374 55.11c1.071-.299.06-1.962.713-4.862-1.972 4.042-1.699 5.134-.713 4.862z"})),Vr||(Vr=d.createElement("path",{fill:"#6b1523",d:"M119.989 48.095c.059-.594-2.913-8.918-9.097-9.276 3.448.12 10.494 9.176 8.452 9.395-1.853.535-6.076 2.32-4.41 3.925 1.307.773 1.605-3.152 4.627-3.895 4.567.882 7.438-3.94 10.415-1.874-2.809-3.503-5.362 2.14-9.989 1.725z"})),Wr||(Wr=d.createElement("path",{fill:"#6c2548",d:"M127.793 46.647c.309-.639 1.427-.396 2.336-1.56.449-.576.948-.203 1.687-.222 1.541-.043 2.544 2.996 1.737 4.15-.445.635-2.745 1.297-3.62 1.518-1.771.445-3.511-3.036-2.14-3.884z"})),Gr||(Gr=d.createElement("path",{fill:"#c44c31",d:"M123.081 15.099c-.993 1.109 1.35 4.64.988 6.262-.284 1.27-1.827.705-2.617-.157.694.027 1.78.445 1.982.078.76-1.384-1.539-4.914-.353-6.183z"})),Kr||(Kr=d.createElement("path",{fill:"#be1e2d",d:"M124.031 23.074c-2.5.504-4.483.504-5.69-.194.579.55 1.976 1.906 3.268 1.887 1.293-.02 1.235-.569 1.355-1.11.076-.206.528-.326 1.064-.586z"})),Yr||(Yr=d.createElement("path",{fill:"#e57c57",d:"M117.389 23.045c0-.616.545-.83 1.075-.93-.441.295-.092.88-.098.904-.481-.272-.62-.174-.977.026z"})),Zr||(Zr=d.createElement("path",{fill:"#35602c",d:"m150.614 40.5-2.973-.396.428 8.839 2.736-.024c2.241-.23 2.479-8.077-.191-8.42z"})),Jr||(Jr=d.createElement("path",{fill:"#569d48",d:"M149.867 44.427c.285 5.88-3.738 6.075-4.023.194-.285-5.88 3.737-6.075 4.023-.194z"})),Qr||(Qr=d.createElement("path",{fill:"#e57c57",d:"M136.434 42.288c5.055-.658 5.866-2.932 6.341-1.11.315.786-1.069 1.442-1.903 1.755-.443.164-1.044-.055-1.551-.104-1.12-.109-1.822.562-2.885.65-.123-.631.296-1.046 0-1.189z"})),Xr||(Xr=d.createElement("path",{fill:"#35602c",d:"M139.873 43.184c.168-.905 5.647-1.784 7.051-1.867 1.803-.107 2.161 6.066.475 6.184-2.362.164-4.487.357-6.872-.392-1.388-.435-1.904-.588-1.927-2.106-.017-1.12.749-2.068 1.273-1.819z"})),en||(en=d.createElement("g",{fill:"#ffc399"},d.createElement("path",{d:"M131.123 45.597c3.759-1.073 7.006-4.783 7.689-4.023 1.091 1.212-.543 2.16-1.06 3.489-.698 1.797 1.054-.037-.403 1.784-.634.792-1.961.179-2.793.179-.556.157-1.863 1.328-2.498 1.486-1.031-.158-2.364-2.042-.937-2.913z"}),d.createElement("path",{d:"M138.898 41.243c3.239.682 4.923-.098 5.189 1.152.181.856 1.606 3.358 1.559 4.323-1.725.462-2.504-2.683-3.13-3.156-.426-.321-2.909.188-3.733.077-.824-.111-1.378-2.191.115-2.396z"}),d.createElement("path",{d:"M141.004 43.042c.573 1.983 2.144 3.145 1.51 3.79-.848.863-1.691 1.404-2.013 1.263-1.976-.87.322-1.169-.004-1.496-.326-.328-1.995-2.12-2.34-2.198.24-.924-.094-1.263-.303-2.212.211.07 2.865.35 3.152.853z"}),d.createElement("path",{d:"M137.707 42.446c.958-.115 1.457 1.48 1.546 1.784.166.567 1.348 1.806 1.427 2.379.179 1.277-1.071 1.188-1.755 1.456-.564.298-1.991-.743-.683-1.576-.935-.019-3.073-1.497-2.694-2.016.241-.004 1.148-2.383 2.157-2.025z"}),d.createElement("path",{d:"M137.599 43.08c.556 1.11 1.03 3.964.873 4.28-.271.544-.865 1.07-1.51 1.34s-1.026-.943-1.978-1.893c.792-.713 1.691-.128 1.665.239-.03.438.079-.318.396-.239-.238-.317-.884-1.365-1.188-1.982-.434-.88.635-2.536 1.744-1.744zM143.91 28.315c.475 1.744-.187 2.5-.238 3.092-.085.99.758 1.205 1.348 1.901.873 1.031.792 2.22 1.505 2.775 1.983-.873.015-3.264-.193-3.786-.158-.396.034-2.875 2.016-3.032-1.348-1.665-3.249-2.22-4.44-.952z"}))),tn||(tn=d.createElement("path",{fill:"#6b1523",d:"M112.653 25.483c-1.903.93-5.883 2.474-6.737 4.518-.599 1.431 5.707 1.11 13.081 5.31-3.805-2.774-9.996-4.01-10.307-4.992-.106-.335 2.715-4.87 3.963-4.836zM105.279 31.507c.839 1.118 2.3 1.11 4.202 1.586-.878-.434-4.779.837-4.361 0 .157-.317-.167-.875.157-1.586z"})),sn||(sn=d.createElement("path",{fill:"#f1f2f2",d:"M116.341 17.639c.007-.03.462-.848 2.206-1.014.678-.064 1.896.509 1.795 1.169-1.007.43-1.888.675-4.001-.155z"})),rn||(rn=d.createElement("path",{fill:"#231f20",d:"M120.347 17.688c-.062-.337-.441-.754-.918-.767-.526-.015-1.035.55-1.044.897-.004.153.086.276.224.37.684.015 1.19-.162 1.733-.394a.422.422 0 0 0 .005-.106z"})),nn||(nn=d.createElement("path",{fill:"#231f20",d:"M120.368 17.667c-.102-.768-1.512-1.3-2.404-1.303-1.244 0-1.491 1.171-2.272.735.177.703 1.141.928 1.801.933-2.327-.695 2.14-2.302 2.875-.365z"})),an||(an=d.createElement("path",{fill:"#f1f2f2",d:"M123.27 17.549c.977.332 2.076-.19 2.44-.741.592-.899-1.629-2.066-2.44.74z"})),on||(on=d.createElement("path",{fill:"#231f20",d:"M124.226 17.238a.33.33 0 0 0 .122.373c.604-.115 1.132-.452 1.365-.803a.576.576 0 0 0 .093-.245c-.323-.585-1.245-.539-1.58.675z"})),ln||(ln=d.createElement("path",{fill:"#231f20",d:"M123.249 17.568c.092-.724.417-1.478 1.329-1.887 1.175-.528 1.537.92 1.938-.268-.147 1.467-.592 1.476-1.523 1.987 1.022-.356.958-1.906-.373-1.403-1.062.402-1.196 1.152-1.369 1.571z"})),cn||(cn=d.createElement("path",{fill:"#be1e2d",d:"M126.024 14.621c.517.586-.337-.17-1.304-.06-.321.039-.841.352-1.122.365.554-1.076 1.663-1.17 2.426-.305zM119.708 14.939c-3.103-.776-3.531.176-4.685 1.79 2.238-2.446 3.518-.587 5.132-1.94-.245.024-.473.103-.447.15z"})),dn||(dn=d.createElement("path",{fill:"#6b1523",d:"M106.375 37.808c.416-1.427 1.651-3.48 2.315-3.607 4.108-.792 14.097 5.034 17.246 5.866-5.053-1.248-12.544-5.41-17.122-4.876-.586.192-2.081 1.901-2.439 2.617z"})),un||(un=d.createElement("path",{fill:"#642243",d:"M140.501 28.713c-.421-1.256-1.179-2.587-.805-4.042.379-1.475 2.232-2.05 2.815-3.43-1.65-.713-1.58 1.923-2.468 2.349-.038-.782-.142-1.516-.129-2.324-1.54 2.028-.703 4.913.589 7.45zM127.184 21.222c7.849.713 7.253 7.135 12.485 6.303-5.471 1.426-7.017-6.303-12.485-6.303z"})),pn||(pn=d.createElement("path",{fill:"#c44c31",d:"M120.525 19.497c0 .236-.594.236-.594 0s.594-.237.594 0zM118.622 19.852c0 .236-.358.236-.358 0s.358-.236.358 0zM124.39 19.02c0 .316-.474.316-.474 0 0-.315.474-.315.474 0zM125.28 19.972c0 .237-.475.237-.475 0s.475-.236.475 0zM125.638 18.784c0 .236-.474.236-.474 0 0-.237.474-.237.474 0zM120.406 20.685c0 .236-.475.236-.475 0s.475-.236.475 0z"})),mn||(mn=d.createElement("path",{fill:"#569d48",d:"M136.975 46.802c-.364-.268-.53-.656-.498-1.16-4.862.762-12.996 10.236-26.102 8.07.919.613 1.743 1.082 2.706 1.382 10.638 1.337 19.676-7.331 23.896-8.292z"})),hn||(hn=d.createElement("path",{fill:"#5f6368",d:"M238.632 23.565h2.267v.074l-5.066 5.844 5.405 7.63v.075h-2.151l-4.437-6.357-2.094 2.419v3.94h-1.754V23.564h1.754v7.027h.074zm5.892 1.084c0 .339-.124.637-.364.877s-.529.364-.877.364c-.34 0-.638-.124-.877-.364a1.198 1.198 0 0 1-.365-.877c0-.348.124-.637.365-.878.239-.24.53-.364.877-.364.339 0 .637.124.877.364.248.249.364.538.364.878zm-.355 3.22v9.327h-1.755v-9.328zm5.604 9.477c-.762 0-1.392-.232-1.896-.704-.505-.472-.762-1.126-.77-1.962v-5.215h-1.639v-1.597h1.639v-2.856h1.754v2.856h2.285v1.597h-2.284v4.644c0 .62.124 1.043.364 1.266.24.224.513.332.819.332.141 0 .273-.017.414-.05a2.19 2.19 0 0 0 .373-.124l.554 1.564c-.471.166-1.001.249-1.613.249zm-55.489-.878c-.969-.704-1.631-1.697-1.995-2.972l2.151-.878c.216.803.597 1.448 1.151 1.962.547.505 1.209.761 1.978.761.721 0 1.324-.182 1.829-.554.505-.373.754-.886.754-1.531 0-.596-.224-1.085-.662-1.474-.439-.389-1.209-.778-2.31-1.167l-.91-.323c-.977-.338-1.796-.827-2.459-1.464-.662-.637-.992-1.473-.992-2.515 0-.721.198-1.383.587-1.995.389-.613.935-1.093 1.639-1.458.695-.355 1.482-.538 2.367-.538 1.275 0 2.293.306 3.046.927.761.621 1.266 1.308 1.522 2.087l-2.051.868c-.15-.464-.43-.87-.853-1.217-.421-.356-.96-.53-1.622-.53s-1.224.166-1.68.505c-.455.34-.679.77-.679 1.3 0 .504.207.91.612 1.241.406.323 1.043.638 1.913.935l.911.306c1.249.431 2.209 1.002 2.896 1.698.687.695 1.027 1.63 1.027 2.797 0 .952-.241 1.747-.729 2.383a4.482 4.482 0 0 1-1.862 1.433 5.981 5.981 0 0 1-2.326.463c-1.209 0-2.293-.348-3.253-1.05zm9.924-11.571a1.45 1.45 0 0 1-.439-1.067c0-.423.149-.779.439-1.069a1.444 1.444 0 0 1 1.067-.439c.422 0 .778.15 1.067.44.291.289.439.645.439 1.067 0 .422-.149.778-.438 1.067a1.455 1.455 0 0 1-1.067.44c-.423-.01-.779-.15-1.068-.44zm-.05 1.937h2.234v10.362h-2.234zm7.093 10.304a2.898 2.898 0 0 1-.993-.588c-.579-.579-.878-1.373-.878-2.375v-5.372h-1.812v-1.97h1.812v-2.92h2.235v2.93h2.517v1.97h-2.517v4.874c0 .555.108.952.323 1.176.207.273.555.405 1.06.405.231 0 .43-.033.612-.091.174-.058.364-.157.571-.298v2.177c-.447.207-.985.306-1.622.306a3.735 3.735 0 0 1-1.308-.224zm6.133-.33a4.946 4.946 0 0 1-1.887-1.962c-.455-.836-.679-1.771-.679-2.814 0-.994.224-1.904.662-2.756.439-.845 1.052-1.523 1.838-2.02s1.68-.754 2.682-.754c1.043 0 1.945.232 2.714.688a4.572 4.572 0 0 1 1.747 1.887c.397.803.596 1.697.596 2.707 0 .19-.017.43-.058.711h-7.946c.083.96.423 1.706 1.026 2.227.58.512 1.33.79 2.103.778.637 0 1.192-.141 1.655-.439a3.185 3.185 0 0 0 1.126-1.192l1.887.894c-.488.853-1.126 1.523-1.912 2.011-.786.489-1.73.729-2.823.729-1.018.016-1.927-.215-2.731-.695zm5.397-6.01a2.497 2.497 0 0 0-.348-1.084 2.486 2.486 0 0 0-.927-.902c-.413-.24-.918-.364-1.515-.364-.72 0-1.324.215-1.821.637-.496.422-.836 1.001-1.026 1.714z"})),fn||(fn=d.createElement("g",{fillRule:"evenodd",clipPath:"url(#yoast-connect-google-site-kit_svg__g)",clipRule:"evenodd"},d.createElement("path",{fill:"#fbbc05",d:"m170.119 26.56 2.576 1.97a4.563 4.563 0 0 0 0 2.85l-2.576 1.97a7.667 7.667 0 0 1-.785-3.395c0-1.22.283-2.373.785-3.394z"}),d.createElement("path",{fill:"#ea4335",d:"m172.696 28.53-2.577-1.97a7.64 7.64 0 0 1 6.877-4.266c1.95 0 3.691.731 5.049 1.915l-2.229 2.229a4.428 4.428 0 0 0-2.82-1.01 4.518 4.518 0 0 0-4.3 3.103z"}),d.createElement("path",{fill:"#34a853",d:"m170.118 33.347 2.576-1.975a4.514 4.514 0 0 0 4.301 3.11c2.124 0 3.726-1.08 4.109-2.96h-4.109v-2.96h7.139c.104.452.174.94.174 1.392 0 4.875-3.482 7.661-7.313 7.661a7.637 7.637 0 0 1-6.877-4.268z"}),d.createElement("path",{fill:"#4285f4",d:"m181.988 35.707-2.446-1.893c.8-.505 1.357-1.284 1.562-2.293h-4.109v-2.96h7.138c.105.453.175.94.175 1.393 0 2.497-.914 4.446-2.32 5.753z"})))),vn=({isOpen:e,onClose:t,onGrantConsent:s=null,learnMoreLink:r=""})=>{const n=(0,l.useSvgAria)();return(0,Zt.jsx)(l.Modal,{isOpen:e,onClose:t,children:(0,Zt.jsxs)(l.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl",hasCloseButton:!1,children:[(0,Zt.jsx)(l.Modal.CloseButton,{className:"yst-bg-transparent yst-text-gray-500 focus:yst-ring-offset-0",onClick:t,screenReaderText:(0,Vt.__)("Close","wordpress-seo")}),(0,Zt.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-bg-gradient-to-b yst-from-primary-500/25 yst-to-[80%]",children:(0,Zt.jsx)(gn,{className:"yst-aspect-video yst-max-w-[432px] yst-p-7 yst-bg-white yst-rounded-md yst-drop-shadow-md"})}),(0,Zt.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,Zt.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,Zt.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,Vt.__)("Grant consent to connect with Site Kit by Google","wordpress-seo")}),(0,Zt.jsxs)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:[(0,Vt.__)("Give us permission to access your Site Kit data, allowing insights from tools like Google Analytics and Search Console to be displayed directly on your dashboard.","wordpress-seo")," ",(0,Zt.jsxs)(os,{className:"yst-no-underline yst-font-medium",variant:"primary",href:r,children:[(0,Vt.__)("Learn more","wordpress-seo"),(0,Zt.jsx)(Xs,{className:"yst-inline yst-h-4 yst-w-4 yst-ms-1 rtl:yst-rotate-180",...n})]})]})]}),(0,Zt.jsx)("div",{className:"yst-w-full yst-flex yst-mt-10",children:(0,Zt.jsx)(l.Button,{className:"yst-grow",size:"extra-large",variant:"primary",onClick:s||t,children:(0,Vt.__)("Grant consent","wordpress-seo")})}),(0,Zt.jsx)(l.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:t,children:(0,Vt.__)("Close","wordpress-seo")})]})]})})};vn.propTypes={isOpen:Yt().bool.isRequired,onClose:Yt().func.isRequired,onGrantConsent:Yt().func,learnMoreLink:Yt().string},Yt().func.isRequired,Yt().string.isRequired,Yt().string.isRequired,Yt().string.isRequired,Yt().string.isRequired;const bn=({userName:e,features:t,links:s,sitekitFeatureEnabled:r})=>{ +(0,Vt.__)("Explore %s now!","wordpress-seo"),"Yoast SEO Premium");return n&&(c=(0,Vt.__)("Get 30% off now!","wordpress-seo")),(0,Zt.jsxs)(l.Paper,{as:"div",className:"yst-max-w-4xl",children:[n&&(0,Zt.jsxs)("div",{className:"yst-rounded-t-lg yst-h-9 yst-flex yst-justify-between yst-items-center yst-bg-black yst-text-amber-300 yst-px-4 yst-text-lg yst-border-b yst-border-amber-300 yst-border-solid yst-font-medium",children:[(0,Zt.jsx)("div",{children:(0,Vt.__)("30% OFF","wordpress-seo")}),(0,Zt.jsx)("div",{children:(0,Vt.__)("BLACK FRIDAY","wordpress-seo")})]}),(0,Zt.jsxs)("div",{className:"yst-p-6 yst-flex yst-flex-col",children:[(0,Zt.jsx)("div",{className:"yst-flex yst-items-center",children:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(l.Title,{as:"h2",size:"4",className:"yst-text-xl yst-font-semibold "+(r?"yst-text-woo-light":"yst-text-primary-500 "),children:r?(0,Vt.sprintf)(/* translators: %s expands to "Yoast WooCommerce SEO */ +(0,Vt.__)("Upgrade to %s","wordpress-seo"),"Yoast WooCommerce SEO"):(0,Vt.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ +(0,Vt.__)("Upgrade to %s","wordpress-seo"),"Yoast SEO Premium")}),r?(0,Zt.jsx)(Ps,{className:"yst-ml-2 yst-w-4 yst-h-3"}):(0,Zt.jsx)(Cs,{className:"yst-ml-2 yst-w-4 yst-h-3"})]})}),(0,Zt.jsxs)("div",{className:"yst-font-medium yst-text-slate-800 yst-text-xs yst-leading-7 yst-mt-2",children:[(0,Zt.jsx)("span",{className:"yst-mr-2",children:(0,Vt.__)("Now includes:","wordpress-seo")}),(0,Zt.jsx)("div",{className:"yst-inline-block",children:o.map(((e,t)=>(0,Zt.jsx)(l.Badge,{size:"small",variant:"plain",className:Ss()("yst-mr-2 yst-bg-opacity-15",i),children:e},`now-including-${t}`)))})]}),(0,Zt.jsx)("ul",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 yst-gap-x-6 yst-gap-y-2 yst-list-none yst-list-outside yst-text-slate-600 yst-mt-4",children:a().map(((e,t)=>(0,Zt.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,Zt.jsx)(as,{className:"yst-mr-2 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),e]},`upsell-benefit-${t}`)))}),(0,Zt.jsxs)(l.Button,{as:"a",variant:"upsell",size:"extra-large",href:e,className:"yst-gap-2 yst-mt-6 sm:yst-max-w-sm",target:"_blank",rel:"noopener",...t,children:[c,(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ +(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(Es,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})]})]})]})};Os.propTypes={premiumLink:Yt().string.isRequired,premiumUpsellConfig:Yt().object,isPromotionActive:Yt().func.isRequired,isWooCommerceActive:Yt().bool.isRequired};const Ts=({premiumLink:e,premiumUpsellConfig:t,academyLink:s,isPromotionActive:r,isWooCommerceActive:n})=>(0,Zt.jsxs)("div",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 xl:yst-grid-cols-1 yst-gap-4",children:[(0,Zt.jsx)(_s,{link:e,linkProps:t,isPromotionActive:r,isWooCommerceActive:n}),(0,Zt.jsx)(Jt,{link:s})]});Ts.propTypes={premiumLink:Yt().string.isRequired,premiumUpsellConfig:Yt().object.isRequired,academyLink:Yt().string.isRequired,isPromotionActive:Yt().func.isRequired,isWooCommerceActive:Yt().bool.isRequired};const Ls=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),Ms=({isOpen:e,onClose:t=c.noop,onDiscard:s=c.noop,title:r,description:n,dismissLabel:a,discardLabel:o})=>{const i=(0,l.useSvgAria)();return(0,Zt.jsx)(l.Modal,{isOpen:e,onClose:t,children:(0,Zt.jsxs)(l.Modal.Panel,{closeButtonScreenReaderText:(0,Vt.__)("Close","wordpress-seo"),children:[(0,Zt.jsxs)("div",{className:"sm:yst-flex sm:yst-items-start",children:[(0,Zt.jsx)("div",{className:"yst-mx-auto yst-flex-shrink-0 yst-flex yst-items-center yst-justify-center yst-h-12 yst-w-12 yst-rounded-full yst-bg-red-100 sm:yst-mx-0 sm:yst-h-10 sm:yst-w-10",children:(0,Zt.jsx)(Ls,{className:"yst-h-6 yst-w-6 yst-text-red-600",...i})}),(0,Zt.jsxs)("div",{className:"yst-mt-3 yst-text-center sm:yst-mt-0 sm:yst-ms-4 sm:yst-text-start",children:[(0,Zt.jsx)(l.Modal.Title,{className:"yst-text-lg yst-leading-6 yst-font-medium yst-text-slate-900 yst-mb-3",children:r}),(0,Zt.jsx)(l.Modal.Description,{className:"yst-text-sm yst-text-slate-500",children:n})]})]}),(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col sm:yst-flex-row-reverse yst-gap-3 yst-mt-6",children:[(0,Zt.jsx)(l.Button,{type:"button",variant:"error",onClick:s,className:"yst-block",children:o}),(0,Zt.jsx)(l.Button,{type:"button",variant:"secondary",onClick:t,className:"yst-block",children:a})]})]})})};Ms.propTypes={isOpen:Yt().bool.isRequired,onClose:Yt().func,onDiscard:Yt().func,title:Yt().string.isRequired,description:Yt().string.isRequired,dismissLabel:Yt().string.isRequired,discardLabel:Yt().string.isRequired};const As=window.yoast.reactHelmet,Is="request",Ds="success",Fs="error",zs="loading",Us="error";var Bs,qs;function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},$s.apply(this,arguments)}Yt().string.isRequired,Yt().shape({src:Yt().string.isRequired,width:Yt().string,height:Yt().string}).isRequired,Yt().shape({value:Yt().bool.isRequired,status:Yt().string.isRequired,set:Yt().func.isRequired}).isRequired,Yt().bool;const Hs=e=>d.createElement("svg",$s({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"yoast-logo_svg__w-40",viewBox:"0 0 842 224"},e),Bs||(Bs=d.createElement("path",{fill:"#a61e69",d:"M166.55 54.09c-38.69 0-54.17 25.97-54.17 54.88s15.25 56.02 54.17 56.02 54.07-27.19 54-54.26c-.09-32.97-16.77-56.65-54-56.65Zm-23.44 56.52c.94-38.69 30.66-38.65 40.59-24.79 9.05 12.63 10.9 55.81-17.14 55.5-12.92-.14-23.06-8.87-23.44-30.71Zm337.25 27.55V82.11h20.04V57.78h-20.04V28.39h-30.95v29.39h-15.7v24.33h15.7v52.87c0 30.05 20.95 47.91 43.06 51.61l9.24-24.88c-12.89-1.63-21.23-11.27-21.35-23.54Zm-156.15-8.87V87.16c0-1.54-.1-2.98-.25-4.39-2.68-34.04-51.02-33.97-88.46-20.9l10.82 21.78c24.38-11.58 38.97-8.59 44.07-2.89.13.15.26.29.38.45.01.02.03.04.04.06 2.6 3.51 1.98 9.05 1.98 13.41-31.86 0-65.77 4.23-65.77 39.17 0 26.56 33.28 43.65 68.06 18.33l5.16 12.45h29.81c-2.66-14.62-5.85-27.14-5.85-35.34Zm-31.18-.23c-24.51 27.43-46.96 1.61-23.97-9.65 6.77-2.31 15.95-2.41 23.97-2.41v12.06Zm78.75-44.17c0-10.38 16.61-15.23 42.82-3.27l9.06-22.01c-35.27-10.66-83.44-11.62-83.75 25.28-.15 17.68 11.19 27.19 27.52 33.26 11.31 4.2 27.64 6.38 27.59 15.39-.06 11.77-25.38 13.57-48.42-2.26l-9.31 23.87c31.43 15.64 89.87 16.08 89.56-23.12-.31-38.76-55.08-32.11-55.08-47.14ZM99.3 1 54.44 125.61 32.95 58.32H1l35.78 91.89a33.49 33.49 0 0 1 0 24.33c-4 10.25-10.65 19.03-26.87 21.21v27.24c31.58 0 48.65-19.41 63.88-61.96L133.48 1H99.3ZM598.64 139.05c0 8.17-2.96 14.58-8.87 19.23-5.91 4.65-14.07 6.98-24.47 6.98s-18.92-1.61-25.54-4.84v-14.2c4.19 1.97 8.65 3.52 13.37 4.65 4.72 1.13 9.11 1.7 13.18 1.7 5.95 0 10.35-1.13 13.18-3.39 2.83-2.26 4.25-5.3 4.25-9.11 0-3.43-1.3-6.35-3.9-8.74-2.6-2.39-7.97-5.22-16.1-8.48-8.39-3.39-14.3-7.27-17.74-11.63-3.44-4.36-5.16-9.59-5.16-15.71 0-7.67 2.72-13.7 8.18-18.1 5.45-4.4 12.77-6.6 21.95-6.6s17.57 1.93 26.29 5.78l-4.78 12.26c-8.18-3.43-15.47-5.15-21.89-5.15-4.87 0-8.55 1.06-11.07 3.17-2.52 2.12-3.77 4.91-3.77 8.39 0 2.39.5 4.43 1.51 6.13s2.66 3.3 4.97 4.81c2.3 1.51 6.46 3.5 12.45 5.97 6.75 2.81 11.7 5.43 14.85 7.86 3.15 2.43 5.45 5.18 6.92 8.23 1.46 3.06 2.2 6.66 2.2 10.81Zm68.53 24.96h-52.02V72.12h52.02v12.7h-36.99v25.01h34.66v12.57h-34.66v28.85h36.99v12.76Zm100.24-46.07c0 14.96-3.74 26.59-11.23 34.88-7.49 8.3-18.08 12.44-31.8 12.44s-24.54-4.12-31.99-12.35c-7.44-8.23-11.17-19.93-11.17-35.1s3.74-26.82 11.23-34.95c7.49-8.13 18.17-12.19 32.05-12.19s24.24 4.13 31.7 12.38c7.47 8.26 11.2 19.88 11.2 34.88Zm-70.2 0c0 11.31 2.29 19.89 6.86 25.74 4.57 5.85 11.35 8.77 20.32 8.77s15.67-2.89 20.22-8.67c4.55-5.78 6.82-14.39 6.82-25.83s-2.25-19.82-6.76-25.64-11.23-8.74-20.16-8.74-15.82 2.91-20.41 8.74c-4.59 5.82-6.89 14.37-6.89 25.64Z"})),qs||(qs=d.createElement("path",{fill:"#77b227",d:"m790.45 165.35 36.05-94.96H840l-36.02 94.96h-13.53z"}))),Vs=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));var Ws,Gs,Ks,Ys,Zs,Js,Qs,Xs,er,tr,sr,rr,nr,ar,or,ir,lr,cr,dr,ur,pr,mr,hr,fr,yr,gr,vr,br,xr,wr,Sr,_r,Er,jr,kr,Cr,Rr,Nr,Pr,Or,Tr,Lr,Mr,Ar,Ir,Dr,Fr,zr,Ur,Br,qr,$r,Hr,Vr,Wr,Gr,Kr,Yr,Zr,Jr,Qr,Xr,en,tn,sn,rn,nn,an,on;function ln(){return ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},ln.apply(this,arguments)}const cn=e=>d.createElement("svg",ln({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none",viewBox:"0 0 252 60"},e),Ws||(Ws=d.createElement("linearGradient",{id:"yoast-connect-google-site-kit_svg__a"},d.createElement("stop",{offset:0,stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610b39"}),d.createElement("stop",{offset:.15,stopColor:"#79164b"}),d.createElement("stop",{offset:.29,stopColor:"#8c1e59"}),d.createElement("stop",{offset:.44,stopColor:"#9a2463"}),d.createElement("stop",{offset:.63,stopColor:"#a22768"}),d.createElement("stop",{offset:1,stopColor:"#a4286a"}))),Gs||(Gs=d.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__b",x1:49.556,x2:49.556,y1:36.267,y2:23.152,gradientUnits:"userSpaceOnUse"})),Ks||(Ks=d.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__c",x1:82.801,x2:82.801,y1:38.819,y2:20.113,gradientUnits:"userSpaceOnUse"})),Ys||(Ys=d.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__d",x1:62.504,x2:62.504,y1:36.222,y2:23.113,gradientUnits:"userSpaceOnUse"})),Zs||(Zs=d.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__e",x1:73.951,x2:73.951,y1:36.276,y2:23.046,gradientUnits:"userSpaceOnUse"})),Js||(Js=d.createElement("linearGradient",{id:"yoast-connect-google-site-kit_svg__f",x1:25.237,x2:25.237,y1:16.169,y2:36.914,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:0,stopColor:"#77b227"}),d.createElement("stop",{offset:.47,stopColor:"#75b027"}),d.createElement("stop",{offset:.64,stopColor:"#6eab27"}),d.createElement("stop",{offset:.75,stopColor:"#63a027"}),d.createElement("stop",{offset:.85,stopColor:"#529228"}),d.createElement("stop",{offset:.93,stopColor:"#3c8028"}),d.createElement("stop",{offset:1,stopColor:"#246b29"}))),Qs||(Qs=d.createElement("clipPath",{id:"yoast-connect-google-site-kit_svg__g"},d.createElement("path",{d:"M169.334 22h14.973v15.909h-14.973z"}))),Xs||(Xs=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__b)",fillRule:"evenodd",d:"M36.765 29.643c0-3.42 1.83-6.49 6.405-6.49 4.402 0 6.375 2.8 6.386 6.698.008 3.2-1.785 6.416-6.386 6.416-4.602 0-6.405-3.072-6.405-6.624zm8.432-2.74c-1.174-1.64-4.688-1.64-4.8 2.932.046 2.582 1.245 3.614 2.773 3.63 3.316.039 3.092-5.067 2.027-6.562z",clipRule:"evenodd"})),er||(er=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__c)",d:"M80.278 33.094v-6.631h2.368v-2.874h-2.368v-3.476h-3.66v3.476h-1.856v2.876h1.857v6.258c0 3.553 2.477 5.665 5.092 6.102l1.092-2.948c-1.524-.194-2.51-1.333-2.525-2.783z"})),tr||(tr=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__d)",fillRule:"evenodd",d:"M61.81 27.062v4.981c0 .7.196 1.67.426 2.803.088.436.182.897.27 1.376h-3.523l-.611-1.472c-4.118 2.994-8.053.974-8.053-2.168 0-4.131 4.01-4.632 7.777-4.632l.003-.249c.01-.465.02-.985-.24-1.336v-.007l-.034-.04-.011-.013c-.602-.675-2.327-1.028-5.21.341l-1.283-2.575c4.428-1.546 10.143-1.555 10.46 2.47.019.174.028.347.03.52zm-6.52 3.81c-2.718 1.331-.064 4.384 2.835 1.14v-1.425c-.949 0-2.035.012-2.835.284z",clipRule:"evenodd"})),sr||(sr=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__e)",d:"M67.439 26.794c0-1.227 1.966-1.8 5.064-.386l1.072-2.605c-4.17-1.262-9.866-1.371-9.904 2.991-.017 2.091 1.324 3.216 3.255 3.934 1.337.497 3.268.754 3.262 1.82-.007 1.391-3 1.604-5.725-.268l-1.101 2.823c3.716 1.85 10.627 1.902 10.59-2.734-.03-4.583-6.513-3.798-6.513-5.575z"})),rr||(rr=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__f)",d:"m35.218 16.875-5.305 14.734-2.54-7.956h-3.779l4.23 10.866a3.956 3.956 0 0 1 0 2.877c-.474 1.213-1.26 2.25-3.177 2.508v3.221c3.734 0 5.753-2.295 7.554-7.326l7.06-18.924z"})),nr||(nr=d.createElement("path",{fill:"#f0ecf0",d:"M124.088 57.357c15.427 0 27.934-12.506 27.934-27.933S139.515 1.49 124.088 1.49 96.155 13.997 96.155 29.424s12.506 27.933 27.933 27.933z"})),ar||(ar=d.createElement("path",{fill:"#9e005d",d:"M122.68 23.422c5.075-5.662 3.282-.196 13.081-2.26 2.792-.587 7.802-1.905 9.067.833 1.427 3.092 4.014 3.471 3.211 5.47-1.412 3.512-6.46 4.52-7.887.556-1.819-1.232-8.98 2.24-11.167 2.775-.813.198-.868-2.038-1.675-2.168-.529-.085-.462-.17-.939-.575-4.613-3.918-4.904-3.277-5.22-4.126.482-.115.95-.396 1.531-.503z"})),or||(or=d.createElement("path",{fill:"#6c2548",d:"M145.465 25.27c-1.744-.556-3.859.788-3.015 2.668.204.456 1.233 2.392 1.665 2.536 1.633.552 5.651-2.227 1.35-5.204z"})),ir||(ir=d.createElement("path",{fill:"#ffc399",d:"M145.972 26.652c-.452-.226-2.526.313-2.3 1.188.281 1.084.758 1.655 1.395 1.998 1.627.875 1.365 2.531 3.684 2.5 1.12-.015 4.022-1.557 4.118-.456.157 1.823.464 3.564.792 3.17.792-.951 1.109-1.03 1.188-4.2.021-.887-2.14-1.506-3.013-2.854-.473-.733-2.932-.714-5.866-1.348z"})),lr||(lr=d.createElement("path",{fill:"#be1e2d",d:"M109.348 16.345c-2.102-1.797-8.454 4.23-7.974 6.137.479-.51 1.186-1.505 1.973-1.316-2.719 1.838-3.191 6.484-1.784 9.259.158-.735.439-1.525.897-2.123-.778 3.037.466 8.256 4.271 10.873-.26-1.915-1.201-5.028.477-6.267 2.485-1.836 5.651-2.398 7.153-5.43 3.716-7.506-7.675-12.913-5.013-11.135z"})),cr||(cr=d.createElement("path",{fill:"#9e005d",d:"M111.503 27.227c-1.65.136-7.152 11.633.475 20.362 1.067 1.222 2.372 3.568 3.92 3.78 3.256.442 11.848-1.813 15.059-3.189 12.146-5.202 1.267-10.842-.308-16.792-1.421-5.366-1.725-8.762-7.928-8.997-2.92-.11-11.15 1.768-11.95 5.058-.224.108-.109-.08.732-.224z"})),dr||(dr=d.createElement("path",{fill:"#6c2548",d:"M123.196 23.817c3.828 1.233 6.256 5.375 7.755 8.771-1.38-4.316-2.059-8.262-7.932-8.95-.013-.072.419-.694.177.18z"})),ur||(ur=d.createElement("path",{fill:"#6c2548",d:"M127.718 23.362c1.071.893 1.961 2.794 2.438 3.984.522 1.306.088 3.329.571 4.638-1.292-3.232-1.307-5.14-3.007-8.622z"})),pr||(pr=d.createElement("path",{fill:"#ffc399",d:"M125.772 33.468c-1.058.375-2.898.677-4.103 1.248-2.187 1.037-4.936-1.725-7.313-1.188-.858.194-3.845-.873-4.082-1.942-.293-1.325-.745-1.352-.078-2.22 2.619-3.402 2.815-1.566 2.932-6.896.019-.886-.2-1.312.079-2.061.279-.75.21.017 1.09-.143.879-.16 2.996-1.05 3.869-.652 1.533.699.513 3.972 1.61 5.107 1.139 1.177 3.841-.028 4.989 1.128 1.439 1.45 1.324 6.848 1.005 7.621z"})),mr||(mr=d.createElement("path",{fill:"#e57c57",d:"M123.021 27.88c.285-.57.221-1.564-.026-2.586-1.175-.034-2.504.164-3.217-.575-.65-.671-.558-2.085-.692-3.277a3.502 3.502 0 0 1-.607-.122c-1.263-.372-2.67-.835-4.069-1.077-.039.008-.077.017-.111.023-.405.075-.605-.057-.733-.143l-.213-.017c-.04.05-.085.141-.144.303-.271.728-.073 1.156-.079 1.995 1.386 3.614 6.644 11.98 9.895 5.477z"})),hr||(hr=d.createElement("path",{fill:"#f1f2f2",d:"M116.06 33.648c7.293 3.488 11.969 5.47 13.635 9.989-1.031-4.757-.893-8.622-4.459-15.161.675 7.425-8.761 5.37-9.176 5.172z"})),fr||(fr=d.createElement("path",{fill:"#6c2548",d:"M129.697 43.002c.157-3.884-1.057-18.564-4.44-20.057-1.056-.466-10.726 1.174-7.768 1.348 4.625.27 7.293 2.775 7.928 4.28.792 1.11 3.081 8.599 4.28 14.427z"})),yr||(yr=d.createElement("path",{fill:"#9e005d",d:"M129.616 43.001c.157-3.884-1.93-18.723-5.311-20.214-1.056-.467-9.776 1.333-6.819 1.505 4.626.27 7.294 2.775 7.928 4.28.792 1.11 3.003 8.599 4.202 14.427z"})),gr||(gr=d.createElement("path",{fill:"#ffc399",d:"M126.288 12.877c.555 2.457-.397 1.902.078 3.488.375 1.25.729 2.066.635 3.488-.241 3.656-2.983 6.876-3.086 6.978-1.45 1.45-3.132 1.295-5.476.077-4.364-2.266-6.898-4.994-7.532-11.823-.471-5.072 3.763-8.847 9.014-8.313 3.249.332 5.449 2.04 6.367 6.103z"})),vr||(vr=d.createElement("path",{fill:"#be1e2d",d:"M114.461 9.389c3.944-.179 3.02 1.925 6.539 2.973 2.794.832 5.707-1.012 5.173 3.745-.475 4.212 9.401-4.116 1.46-7.591-1.269-.556-1.137-1.414-2.378-3.013-2.598-3.343-11.337-7.055-15.061-.873-.944 1.567 2.657 4.101 4.265 4.757z"})),br||(br=d.createElement("path",{fill:"#be1e2d",d:"M114.282 9.508c.912 3.597-.161 4.23-.653 5.47-.541 1.364-.803 2.65-1.487 3.925-.992-2.07-2.184-.317-5.276-4.36-5.537-7.24 9.782-16.915 7.416-5.035z"})),xr||(xr=d.createElement("path",{fill:"#ffc399",d:"M112.336 19.497c.617-1.633-4.029-4.43-3.599-1.043.209 1.642 1.516 2.574 2.913 3.152 2.294.945 1.195-1.676.569-3.058l.119.952z"})),wr||(wr=d.createElement("path",{fill:"#be1e2d",d:"M113.168 14.026c.309 1.25-.03 6.814 1.785 8.997-3.152-1.714-2.37-5.13-1.785-8.997z"})),Sr||(Sr=d.createElement("path",{fill:"#be1e2d",d:"M112.691 15.573c-.728.415-1.441 3.388-.323 5.705.006-.021.483-4.91.323-5.705z"})),_r||(_r=d.createElement("path",{fill:"#9e005d",d:"M117.012 34.121c-2.877-1.74-5.509-2.068-4.725-7.2.867-1.004.747-1.897.807-3.383-1.109.396-4.086 1.948-5.434 2.655-1.985 1.04-4.361 3.41-2.458 5.39.703.73-1.758 1.923.937 6.759 1.506-2.617 2.711-4.855 3.661-4.934 3.33-.079 4.431 1.667 7.372 2.378 7.214 1.744 11.654 6.501 12.525 8.164.036-1.051-1.269-4.914-12.683-9.829z"})),Er||(Er=d.createElement("path",{fill:"#9e005d",d:"M108.45 34.202c-8.258 11.429 2.709 12.432 5.351 22.998.119.48.656 1.17 1.503 1.322 5.051.903 10.884-1.744 15.862-6.92 1.408-1.463.247-4.902-1.546-5.648-2.319-1.546-7.378 4.023-13.006 2.992-.677-1.02-1.505-13.477-8.164-14.744z"})),jr||(jr=d.createElement("path",{fill:"#a0c9cb",d:"m155.213 40.425-.27 9.99-6.399-1.368-.094-9.712z"})),kr||(kr=d.createElement("path",{fill:"#75b0b3",d:"m155.48 50.235-.509.238c.085-11.096-.171-10.3.509-10.166v9.93z"})),Cr||(Cr=d.createElement("path",{fill:"#66a7ab",d:"M150.965 40.959c2.473.277 3.211 6.54 2.498 9.037-.119-.12-3.567-.833-3.686-.713-1.718-1.964-.992-8.57 1.188-8.324z"})),Rr||(Rr=d.createElement("path",{fill:"#467d7f",d:"M154.983 40.783s.153-1.902 0-2.02c-.153-.12-6.641-.655-6.641-.655-.776 1.706-.431 1.282 6.641 2.675z"})),Nr||(Nr=d.createElement("path",{fill:"#67a8ac",d:"m152.371 30.436 2.881 8.443-6.729-1.15-3.307-9.016z"})),Pr||(Pr=d.createElement("path",{fill:"#55989b",d:"m152.988 32.518.101.02-.716-2.1-7.155-1.725.656 1.786z"})),Or||(Or=d.createElement("path",{fill:"#519093",d:"m148.766 37.79-1.127.713-2.679-8.541 1.25-.893z"})),Tr||(Tr=d.createElement("path",{fill:"#b1d3d4",d:"m152.794 30.08-.922 1.069-6.552-1.01.869-1.011z"})),Lr||(Lr=d.createElement("path",{fill:"#a0c9cb",d:"M155.648 39.988c0 1.052-1.046 1.052-1.046 0s1.046-1.052 1.046 0z"})),Mr||(Mr=d.createElement("path",{fill:"#a0c9cb",d:"M147.639 38.502c1.501-.95.058-.881 7.713.317-1.38 1.189-.053 1.07-7.713-.317z"})),Ar||(Ar=d.createElement("path",{fill:"#75b0b3",d:"m155.354 38.879-1.037.832-2.444-8.681.922-1.07z"})),Ir||(Ir=d.createElement("path",{fill:"#6b1523",d:"M117.374 55.11c1.071-.299.06-1.962.713-4.862-1.972 4.042-1.699 5.134-.713 4.862z"})),Dr||(Dr=d.createElement("path",{fill:"#6b1523",d:"M119.989 48.095c.059-.594-2.913-8.918-9.097-9.276 3.448.12 10.494 9.176 8.452 9.395-1.853.535-6.076 2.32-4.41 3.925 1.307.773 1.605-3.152 4.627-3.895 4.567.882 7.438-3.94 10.415-1.874-2.809-3.503-5.362 2.14-9.989 1.725z"})),Fr||(Fr=d.createElement("path",{fill:"#6c2548",d:"M127.793 46.647c.309-.639 1.427-.396 2.336-1.56.449-.576.948-.203 1.687-.222 1.541-.043 2.544 2.996 1.737 4.15-.445.635-2.745 1.297-3.62 1.518-1.771.445-3.511-3.036-2.14-3.884z"})),zr||(zr=d.createElement("path",{fill:"#c44c31",d:"M123.081 15.099c-.993 1.109 1.35 4.64.988 6.262-.284 1.27-1.827.705-2.617-.157.694.027 1.78.445 1.982.078.76-1.384-1.539-4.914-.353-6.183z"})),Ur||(Ur=d.createElement("path",{fill:"#be1e2d",d:"M124.031 23.074c-2.5.504-4.483.504-5.69-.194.579.55 1.976 1.906 3.268 1.887 1.293-.02 1.235-.569 1.355-1.11.076-.206.528-.326 1.064-.586z"})),Br||(Br=d.createElement("path",{fill:"#e57c57",d:"M117.389 23.045c0-.616.545-.83 1.075-.93-.441.295-.092.88-.098.904-.481-.272-.62-.174-.977.026z"})),qr||(qr=d.createElement("path",{fill:"#35602c",d:"m150.614 40.5-2.973-.396.428 8.839 2.736-.024c2.241-.23 2.479-8.077-.191-8.42z"})),$r||($r=d.createElement("path",{fill:"#569d48",d:"M149.867 44.427c.285 5.88-3.738 6.075-4.023.194-.285-5.88 3.737-6.075 4.023-.194z"})),Hr||(Hr=d.createElement("path",{fill:"#e57c57",d:"M136.434 42.288c5.055-.658 5.866-2.932 6.341-1.11.315.786-1.069 1.442-1.903 1.755-.443.164-1.044-.055-1.551-.104-1.12-.109-1.822.562-2.885.65-.123-.631.296-1.046 0-1.189z"})),Vr||(Vr=d.createElement("path",{fill:"#35602c",d:"M139.873 43.184c.168-.905 5.647-1.784 7.051-1.867 1.803-.107 2.161 6.066.475 6.184-2.362.164-4.487.357-6.872-.392-1.388-.435-1.904-.588-1.927-2.106-.017-1.12.749-2.068 1.273-1.819z"})),Wr||(Wr=d.createElement("g",{fill:"#ffc399"},d.createElement("path",{d:"M131.123 45.597c3.759-1.073 7.006-4.783 7.689-4.023 1.091 1.212-.543 2.16-1.06 3.489-.698 1.797 1.054-.037-.403 1.784-.634.792-1.961.179-2.793.179-.556.157-1.863 1.328-2.498 1.486-1.031-.158-2.364-2.042-.937-2.913z"}),d.createElement("path",{d:"M138.898 41.243c3.239.682 4.923-.098 5.189 1.152.181.856 1.606 3.358 1.559 4.323-1.725.462-2.504-2.683-3.13-3.156-.426-.321-2.909.188-3.733.077-.824-.111-1.378-2.191.115-2.396z"}),d.createElement("path",{d:"M141.004 43.042c.573 1.983 2.144 3.145 1.51 3.79-.848.863-1.691 1.404-2.013 1.263-1.976-.87.322-1.169-.004-1.496-.326-.328-1.995-2.12-2.34-2.198.24-.924-.094-1.263-.303-2.212.211.07 2.865.35 3.152.853z"}),d.createElement("path",{d:"M137.707 42.446c.958-.115 1.457 1.48 1.546 1.784.166.567 1.348 1.806 1.427 2.379.179 1.277-1.071 1.188-1.755 1.456-.564.298-1.991-.743-.683-1.576-.935-.019-3.073-1.497-2.694-2.016.241-.004 1.148-2.383 2.157-2.025z"}),d.createElement("path",{d:"M137.599 43.08c.556 1.11 1.03 3.964.873 4.28-.271.544-.865 1.07-1.51 1.34s-1.026-.943-1.978-1.893c.792-.713 1.691-.128 1.665.239-.03.438.079-.318.396-.239-.238-.317-.884-1.365-1.188-1.982-.434-.88.635-2.536 1.744-1.744zM143.91 28.315c.475 1.744-.187 2.5-.238 3.092-.085.99.758 1.205 1.348 1.901.873 1.031.792 2.22 1.505 2.775 1.983-.873.015-3.264-.193-3.786-.158-.396.034-2.875 2.016-3.032-1.348-1.665-3.249-2.22-4.44-.952z"}))),Gr||(Gr=d.createElement("path",{fill:"#6b1523",d:"M112.653 25.483c-1.903.93-5.883 2.474-6.737 4.518-.599 1.431 5.707 1.11 13.081 5.31-3.805-2.774-9.996-4.01-10.307-4.992-.106-.335 2.715-4.87 3.963-4.836zM105.279 31.507c.839 1.118 2.3 1.11 4.202 1.586-.878-.434-4.779.837-4.361 0 .157-.317-.167-.875.157-1.586z"})),Kr||(Kr=d.createElement("path",{fill:"#f1f2f2",d:"M116.341 17.639c.007-.03.462-.848 2.206-1.014.678-.064 1.896.509 1.795 1.169-1.007.43-1.888.675-4.001-.155z"})),Yr||(Yr=d.createElement("path",{fill:"#231f20",d:"M120.347 17.688c-.062-.337-.441-.754-.918-.767-.526-.015-1.035.55-1.044.897-.004.153.086.276.224.37.684.015 1.19-.162 1.733-.394a.422.422 0 0 0 .005-.106z"})),Zr||(Zr=d.createElement("path",{fill:"#231f20",d:"M120.368 17.667c-.102-.768-1.512-1.3-2.404-1.303-1.244 0-1.491 1.171-2.272.735.177.703 1.141.928 1.801.933-2.327-.695 2.14-2.302 2.875-.365z"})),Jr||(Jr=d.createElement("path",{fill:"#f1f2f2",d:"M123.27 17.549c.977.332 2.076-.19 2.44-.741.592-.899-1.629-2.066-2.44.74z"})),Qr||(Qr=d.createElement("path",{fill:"#231f20",d:"M124.226 17.238a.33.33 0 0 0 .122.373c.604-.115 1.132-.452 1.365-.803a.576.576 0 0 0 .093-.245c-.323-.585-1.245-.539-1.58.675z"})),Xr||(Xr=d.createElement("path",{fill:"#231f20",d:"M123.249 17.568c.092-.724.417-1.478 1.329-1.887 1.175-.528 1.537.92 1.938-.268-.147 1.467-.592 1.476-1.523 1.987 1.022-.356.958-1.906-.373-1.403-1.062.402-1.196 1.152-1.369 1.571z"})),en||(en=d.createElement("path",{fill:"#be1e2d",d:"M126.024 14.621c.517.586-.337-.17-1.304-.06-.321.039-.841.352-1.122.365.554-1.076 1.663-1.17 2.426-.305zM119.708 14.939c-3.103-.776-3.531.176-4.685 1.79 2.238-2.446 3.518-.587 5.132-1.94-.245.024-.473.103-.447.15z"})),tn||(tn=d.createElement("path",{fill:"#6b1523",d:"M106.375 37.808c.416-1.427 1.651-3.48 2.315-3.607 4.108-.792 14.097 5.034 17.246 5.866-5.053-1.248-12.544-5.41-17.122-4.876-.586.192-2.081 1.901-2.439 2.617z"})),sn||(sn=d.createElement("path",{fill:"#642243",d:"M140.501 28.713c-.421-1.256-1.179-2.587-.805-4.042.379-1.475 2.232-2.05 2.815-3.43-1.65-.713-1.58 1.923-2.468 2.349-.038-.782-.142-1.516-.129-2.324-1.54 2.028-.703 4.913.589 7.45zM127.184 21.222c7.849.713 7.253 7.135 12.485 6.303-5.471 1.426-7.017-6.303-12.485-6.303z"})),rn||(rn=d.createElement("path",{fill:"#c44c31",d:"M120.525 19.497c0 .236-.594.236-.594 0s.594-.237.594 0zM118.622 19.852c0 .236-.358.236-.358 0s.358-.236.358 0zM124.39 19.02c0 .316-.474.316-.474 0 0-.315.474-.315.474 0zM125.28 19.972c0 .237-.475.237-.475 0s.475-.236.475 0zM125.638 18.784c0 .236-.474.236-.474 0 0-.237.474-.237.474 0zM120.406 20.685c0 .236-.475.236-.475 0s.475-.236.475 0z"})),nn||(nn=d.createElement("path",{fill:"#569d48",d:"M136.975 46.802c-.364-.268-.53-.656-.498-1.16-4.862.762-12.996 10.236-26.102 8.07.919.613 1.743 1.082 2.706 1.382 10.638 1.337 19.676-7.331 23.896-8.292z"})),an||(an=d.createElement("path",{fill:"#5f6368",d:"M238.632 23.565h2.267v.074l-5.066 5.844 5.405 7.63v.075h-2.151l-4.437-6.357-2.094 2.419v3.94h-1.754V23.564h1.754v7.027h.074zm5.892 1.084c0 .339-.124.637-.364.877s-.529.364-.877.364c-.34 0-.638-.124-.877-.364a1.198 1.198 0 0 1-.365-.877c0-.348.124-.637.365-.878.239-.24.53-.364.877-.364.339 0 .637.124.877.364.248.249.364.538.364.878zm-.355 3.22v9.327h-1.755v-9.328zm5.604 9.477c-.762 0-1.392-.232-1.896-.704-.505-.472-.762-1.126-.77-1.962v-5.215h-1.639v-1.597h1.639v-2.856h1.754v2.856h2.285v1.597h-2.284v4.644c0 .62.124 1.043.364 1.266.24.224.513.332.819.332.141 0 .273-.017.414-.05a2.19 2.19 0 0 0 .373-.124l.554 1.564c-.471.166-1.001.249-1.613.249zm-55.489-.878c-.969-.704-1.631-1.697-1.995-2.972l2.151-.878c.216.803.597 1.448 1.151 1.962.547.505 1.209.761 1.978.761.721 0 1.324-.182 1.829-.554.505-.373.754-.886.754-1.531 0-.596-.224-1.085-.662-1.474-.439-.389-1.209-.778-2.31-1.167l-.91-.323c-.977-.338-1.796-.827-2.459-1.464-.662-.637-.992-1.473-.992-2.515 0-.721.198-1.383.587-1.995.389-.613.935-1.093 1.639-1.458.695-.355 1.482-.538 2.367-.538 1.275 0 2.293.306 3.046.927.761.621 1.266 1.308 1.522 2.087l-2.051.868c-.15-.464-.43-.87-.853-1.217-.421-.356-.96-.53-1.622-.53s-1.224.166-1.68.505c-.455.34-.679.77-.679 1.3 0 .504.207.91.612 1.241.406.323 1.043.638 1.913.935l.911.306c1.249.431 2.209 1.002 2.896 1.698.687.695 1.027 1.63 1.027 2.797 0 .952-.241 1.747-.729 2.383a4.482 4.482 0 0 1-1.862 1.433 5.981 5.981 0 0 1-2.326.463c-1.209 0-2.293-.348-3.253-1.05zm9.924-11.571a1.45 1.45 0 0 1-.439-1.067c0-.423.149-.779.439-1.069a1.444 1.444 0 0 1 1.067-.439c.422 0 .778.15 1.067.44.291.289.439.645.439 1.067 0 .422-.149.778-.438 1.067a1.455 1.455 0 0 1-1.067.44c-.423-.01-.779-.15-1.068-.44zm-.05 1.937h2.234v10.362h-2.234zm7.093 10.304a2.898 2.898 0 0 1-.993-.588c-.579-.579-.878-1.373-.878-2.375v-5.372h-1.812v-1.97h1.812v-2.92h2.235v2.93h2.517v1.97h-2.517v4.874c0 .555.108.952.323 1.176.207.273.555.405 1.06.405.231 0 .43-.033.612-.091.174-.058.364-.157.571-.298v2.177c-.447.207-.985.306-1.622.306a3.735 3.735 0 0 1-1.308-.224zm6.133-.33a4.946 4.946 0 0 1-1.887-1.962c-.455-.836-.679-1.771-.679-2.814 0-.994.224-1.904.662-2.756.439-.845 1.052-1.523 1.838-2.02s1.68-.754 2.682-.754c1.043 0 1.945.232 2.714.688a4.572 4.572 0 0 1 1.747 1.887c.397.803.596 1.697.596 2.707 0 .19-.017.43-.058.711h-7.946c.083.96.423 1.706 1.026 2.227.58.512 1.33.79 2.103.778.637 0 1.192-.141 1.655-.439a3.185 3.185 0 0 0 1.126-1.192l1.887.894c-.488.853-1.126 1.523-1.912 2.011-.786.489-1.73.729-2.823.729-1.018.016-1.927-.215-2.731-.695zm5.397-6.01a2.497 2.497 0 0 0-.348-1.084 2.486 2.486 0 0 0-.927-.902c-.413-.24-.918-.364-1.515-.364-.72 0-1.324.215-1.821.637-.496.422-.836 1.001-1.026 1.714z"})),on||(on=d.createElement("g",{fillRule:"evenodd",clipPath:"url(#yoast-connect-google-site-kit_svg__g)",clipRule:"evenodd"},d.createElement("path",{fill:"#fbbc05",d:"m170.119 26.56 2.576 1.97a4.563 4.563 0 0 0 0 2.85l-2.576 1.97a7.667 7.667 0 0 1-.785-3.395c0-1.22.283-2.373.785-3.394z"}),d.createElement("path",{fill:"#ea4335",d:"m172.696 28.53-2.577-1.97a7.64 7.64 0 0 1 6.877-4.266c1.95 0 3.691.731 5.049 1.915l-2.229 2.229a4.428 4.428 0 0 0-2.82-1.01 4.518 4.518 0 0 0-4.3 3.103z"}),d.createElement("path",{fill:"#34a853",d:"m170.118 33.347 2.576-1.975a4.514 4.514 0 0 0 4.301 3.11c2.124 0 3.726-1.08 4.109-2.96h-4.109v-2.96h7.139c.104.452.174.94.174 1.392 0 4.875-3.482 7.661-7.313 7.661a7.637 7.637 0 0 1-6.877-4.268z"}),d.createElement("path",{fill:"#4285f4",d:"m181.988 35.707-2.446-1.893c.8-.505 1.357-1.284 1.562-2.293h-4.109v-2.96h7.138c.105.453.175.94.175 1.393 0 2.497-.914 4.446-2.32 5.753z"})))),dn=({isOpen:e,onClose:t,onGrantConsent:s=null,learnMoreLink:r=""})=>{const n=(0,l.useSvgAria)();return(0,Zt.jsx)(l.Modal,{isOpen:e,onClose:t,children:(0,Zt.jsxs)(l.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl",hasCloseButton:!1,children:[(0,Zt.jsx)(l.Modal.CloseButton,{className:"yst-bg-transparent yst-text-gray-500 focus:yst-ring-offset-0",onClick:t,screenReaderText:(0,Vt.__)("Close","wordpress-seo")}),(0,Zt.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-bg-gradient-to-b yst-from-primary-500/25 yst-to-[80%]",children:(0,Zt.jsx)(cn,{className:"yst-aspect-video yst-max-w-[432px] yst-p-7 yst-bg-white yst-rounded-md yst-drop-shadow-md"})}),(0,Zt.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,Zt.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,Zt.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,Vt.__)("Grant consent to connect with Site Kit by Google","wordpress-seo")}),(0,Zt.jsxs)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:[(0,Vt.__)("Give us permission to access your Site Kit data, allowing insights from tools like Google Analytics and Search Console to be displayed directly on your dashboard.","wordpress-seo")," ",(0,Zt.jsxs)(ns,{className:"yst-no-underline yst-font-medium",variant:"primary",href:r,children:[(0,Vt.__)("Learn more","wordpress-seo"),(0,Zt.jsx)(Vs,{className:"yst-inline yst-h-4 yst-w-4 yst-ms-1 rtl:yst-rotate-180",...n})]})]})]}),(0,Zt.jsx)("div",{className:"yst-w-full yst-flex yst-mt-10",children:(0,Zt.jsx)(l.Button,{className:"yst-grow",size:"extra-large",variant:"primary",onClick:s||t,children:(0,Vt.__)("Grant consent","wordpress-seo")})}),(0,Zt.jsx)(l.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:t,children:(0,Vt.__)("Close","wordpress-seo")})]})]})})};dn.propTypes={isOpen:Yt().bool.isRequired,onClose:Yt().func.isRequired,onGrantConsent:Yt().func,learnMoreLink:Yt().string},Yt().func.isRequired,Yt().string.isRequired,Yt().string.isRequired,Yt().string.isRequired,Yt().string.isRequired;const un=({userName:e,features:t,links:s,sitekitFeatureEnabled:r})=>{ /** * translators: %1$s and %2$s expand to an opening and closing anchor tag, to the site features page. * %3$s and %4$s expand to an opening and closing anchor tag, to the user profile page. @@ -21,49 +20,50 @@ * %3$s and %4$s expand to an opening and closing anchor tag, to the user profile page. **/return(0,Zt.jsx)(l.Paper,{className:"yst-shadow-md",children:(0,Zt.jsxs)(l.Paper.Content,{className:"yst-flex yst-flex-col yst-gap-y-4 yst-max-w-screen-sm",children:[(0,Zt.jsx)(l.Title,{as:"h1",children:(0,Vt.sprintf)(/* translators: %s expands to the username */ (0,Vt.__)("Hi %s,","wordpress-seo"),e)}),(0,Zt.jsx)("p",{className:"yst-text-tiny",children:!t.indexables||t.seoAnalysis||t.readabilityAnalysis?Wt((0,Vt.sprintf)(/* translators: %1$s and %2$s expand to an opening and closing anchor tag. */ -(0,Vt.__)("Welcome to your dashboard! Check your content's SEO performance, readability, and overall strengths and opportunities. %1$sLearn more about the dashboard%2$s.","wordpress-seo"),"<link>","</link>"),{link:(0,Zt.jsx)(os,{href:s.dashboardLearnMore,children:" "})}):Wt((0,Vt.sprintf)(o,"<link>","</link>","<profilelink>","</profilelink>"),{link:(0,Zt.jsx)(l.Link,{href:"admin.php?page=wpseo_page_settings#/site-features",children:" "}),profilelink:(0,Zt.jsx)(l.Link,{href:"profile.php",children:" "})})}),!t.indexables&&(0,Zt.jsx)(l.Alert,{type:"info",children:i})]})})},xn=({widgetFactory:e,userName:t,features:s,links:r,sitekitFeatureEnabled:n,dataProvider:a})=>{const l=(0,o.useCallback)((()=>a.getSiteKitConfiguration()),[a]),c=(0,o.useCallback)((e=>a.subscribe(e)),[a]);return(0,o.useSyncExternalStore)(c,l),(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(bn,{userName:t,features:s,links:r,sitekitFeatureEnabled:n}),(0,Zt.jsx)("div",{className:"yst-@container yst-grid yst-grid-cols-4 yst-gap-6 yst-my-6",children:(0,Zt.jsx)(i.Dashboard,{widgetFactory:e})})]})};function wn(e,t){return e.get(function(e,t,s){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:s;throw new TypeError("Private element is not present on this object")}(e,t))}function Sn(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,wn(t,e))}function En(e,t,s){return function(e,t,s){if(t.set)t.set.call(e,s);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=s}}(e,wn(t,e),s),s}function jn(e,t,s){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,s)}var Cn=new WeakMap,kn=new WeakMap,Rn=new WeakMap,On=new WeakMap,Nn=new WeakMap,Pn=new WeakMap,Tn=new WeakMap,Ln=new WeakMap;class Mn{constructor({contentTypes:e,userName:t,features:s,endpoints:r,headers:n,links:a,siteKitConfiguration:o}){jn(this,Cn,{writable:!0,value:void 0}),jn(this,kn,{writable:!0,value:void 0}),jn(this,Rn,{writable:!0,value:void 0}),jn(this,On,{writable:!0,value:void 0}),jn(this,Nn,{writable:!0,value:void 0}),jn(this,Pn,{writable:!0,value:void 0}),jn(this,Tn,{writable:!0,value:void 0}),jn(this,Ln,{writable:!0,value:new Set}),En(this,Cn,e),En(this,kn,t),En(this,Rn,s),En(this,On,r),En(this,Nn,n),En(this,Pn,a),En(this,Tn,o)}subscribe(e){return Sn(this,Ln).add(e),()=>Sn(this,Ln).delete(e)}notifySubscribers(){Sn(this,Ln).forEach((e=>e()))}getContentTypes(){return Sn(this,Cn)}getUserName(){return Sn(this,kn)}getStepsStatuses(){return[Sn(this,Tn).connectionStepsStatuses.isInstalled,Sn(this,Tn).connectionStepsStatuses.isActive,Sn(this,Tn).connectionStepsStatuses.isSetupCompleted,Sn(this,Tn).connectionStepsStatuses.isConsentGranted]}hasFeature(e){var t;return!0===(null===(t=Sn(this,Rn))||void 0===t?void 0:t[e])}getEndpoint(e){var t;return null===(t=Sn(this,On))||void 0===t?void 0:t[e]}getHeaders(){return Sn(this,Nn)}getLink(e){var t;return null===(t=Sn(this,Pn))||void 0===t?void 0:t[e]}getSiteKitConfiguration(){return Sn(this,Tn)}getSiteKitCurrentConnectionStep(){return this.getStepsStatuses().findIndex((e=>!e))}isSiteKitConnectionCompleted(){return-1===this.getSiteKitCurrentConnectionStep()}setSiteKitConsentGranted(e){const t=(0,c.cloneDeep)(Sn(this,Tn));t.connectionStepsStatuses.isConsentGranted=e,En(this,Tn,t),this.notifySubscribers()}setSiteKitConfigurationDismissed(e){En(this,Tn,{...Sn(this,Tn),isSetupWidgetDismissed:e}),this.notifySubscribers()}}function An(e,t,s){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,s)}var In=new WeakMap,Dn=new WeakMap,Fn=new WeakMap;class zn{constructor(e,t){An(this,In,{writable:!0,value:void 0}),An(this,Dn,{writable:!0,value:void 0}),An(this,Fn,{writable:!0,value:void 0}),En(this,In,e.data),En(this,Dn,e.endpoint),En(this,Fn,t)}getTrackingElement(e){var t;return null===(t=Sn(this,In))||void 0===t?void 0:t[e]}track(e){const t=(0,c.cloneDeep)(Sn(this,In));let s=!1;Object.entries(e).forEach((([e,r])=>{void 0!==t[e]&&t[e]!==r&&(t[e]=r,s=!0)})),s&&(En(this,In,t),this.storeData(t))}storeData(e,t){Sn(this,Fn).fetchJson(Sn(this,Dn),e,{...t,method:"POST"}).catch(c.noop)}}const Un=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))})),Bn=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))}));var qn,$n,Hn,Vn,Wn,Gn,Kn,Yn,Zn,Jn;function Qn(){return Qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Qn.apply(this,arguments)}const Xn=e=>d.createElement("svg",Qn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 252 60"},e),qn||(qn=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__a)",fillRule:"evenodd",d:"M36.962 29.643c0-3.42 1.83-6.49 6.405-6.49 4.403 0 6.375 2.8 6.386 6.698.008 3.2-1.785 6.416-6.386 6.416-4.602 0-6.405-3.072-6.405-6.624Zm8.432-2.74c-1.173-1.64-4.688-1.64-4.8 2.932.046 2.582 1.245 3.614 2.773 3.63 3.317.039 3.093-5.067 2.027-6.562Z",clipRule:"evenodd"})),$n||($n=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__b)",d:"M80.475 33.094v-6.63h2.369v-2.875h-2.369v-3.475h-3.659v3.475H74.96v2.877h1.856v6.258c0 3.552 2.477 5.665 5.092 6.102L83 35.877c-1.524-.193-2.51-1.332-2.525-2.783Z"})),Hn||(Hn=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__c)",fillRule:"evenodd",d:"M62.008 27.062v4.981c0 .7.196 1.67.425 2.803.089.436.182.897.27 1.376H59.18l-.611-1.472c-4.117 2.994-8.052.974-8.052-2.168 0-4.131 4.01-4.632 7.776-4.632l.003-.249c.01-.465.02-.985-.24-1.336v-.007c-.01-.014-.022-.027-.034-.04l-.011-.013c-.602-.675-2.327-1.028-5.21.341l-1.283-2.575c4.428-1.546 10.144-1.555 10.461 2.47.018.174.028.347.029.52Zm-6.521 3.81c-2.718 1.331-.064 4.384 2.835 1.14v-1.425c-.949 0-2.035.012-2.835.284Z",clipRule:"evenodd"})),Vn||(Vn=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__d)",d:"M67.636 26.794c0-1.227 1.966-1.801 5.065-.386l1.071-2.606c-4.17-1.262-9.866-1.37-9.904 2.992-.016 2.09 1.324 3.216 3.255 3.933 1.337.498 3.269.755 3.263 1.82-.007 1.392-3.001 1.605-5.726-.267l-1.1 2.823c3.715 1.85 10.627 1.901 10.59-2.734-.03-4.583-6.514-3.798-6.514-5.575Z"})),Wn||(Wn=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__e)",d:"M35.415 16.875 30.11 31.609l-2.54-7.956h-3.779l4.23 10.866a3.957 3.957 0 0 1 0 2.877c-.473 1.213-1.26 2.25-3.177 2.508v3.221c3.734 0 5.753-2.295 7.554-7.326l7.06-18.924h-4.043Z"})),Gn||(Gn=d.createElement("circle",{cx:126,cy:30,r:30,fill:"#DCFCE7"})),Kn||(Kn=d.createElement("path",{stroke:"#16A34A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"m117.045 31.25 5 5 12.5-12.5"})),Yn||(Yn=d.createElement("path",{fill:"#5F6368",d:"M238.632 23.565h2.267v.074l-5.066 5.844 5.405 7.63v.075h-2.151l-4.437-6.357-2.094 2.419v3.94h-1.754V23.564h1.754v7.027h.074l6.002-7.027Zm5.892 1.084c0 .339-.124.637-.364.877a1.19 1.19 0 0 1-.877.364c-.34 0-.638-.124-.877-.364a1.198 1.198 0 0 1-.365-.877c0-.348.124-.637.365-.878.239-.24.53-.364.877-.364.339 0 .637.124.877.364.248.249.364.538.364.878Zm-.355 3.22v9.328h-1.755v-9.329h1.755Zm5.604 9.477c-.762 0-1.392-.232-1.896-.704-.505-.472-.762-1.126-.77-1.962v-5.215h-1.639v-1.597h1.639v-2.856h1.754v2.856h2.285v1.597h-2.284v4.644c0 .62.124 1.043.364 1.266.24.224.513.332.819.332.141 0 .273-.017.414-.05a2.19 2.19 0 0 0 .373-.124l.554 1.564c-.471.166-1.001.249-1.613.249Zm-55.489-.878c-.969-.704-1.631-1.697-1.995-2.972l2.151-.878c.216.803.597 1.448 1.151 1.962.547.505 1.209.761 1.978.761.721 0 1.324-.182 1.829-.554.505-.373.754-.886.754-1.531 0-.596-.224-1.085-.662-1.474-.439-.389-1.209-.777-2.31-1.167l-.91-.323c-.977-.338-1.796-.827-2.459-1.464-.662-.637-.992-1.473-.992-2.515 0-.721.198-1.383.587-1.995.389-.613.935-1.093 1.639-1.458.695-.355 1.482-.537 2.367-.537 1.275 0 2.293.305 3.046.927.761.62 1.266 1.307 1.522 2.086l-2.051.868c-.15-.464-.43-.87-.853-1.217-.421-.356-.96-.53-1.622-.53-.662 0-1.224.166-1.68.505-.455.34-.679.77-.679 1.3 0 .505.207.91.612 1.241.406.323 1.043.638 1.913.935l.911.306c1.249.431 2.209 1.002 2.896 1.698.687.695 1.027 1.63 1.027 2.797 0 .952-.241 1.747-.729 2.383a4.482 4.482 0 0 1-1.862 1.433 5.981 5.981 0 0 1-2.326.463c-1.209 0-2.293-.348-3.253-1.05Zm9.924-11.571a1.45 1.45 0 0 1-.439-1.067c0-.423.149-.779.439-1.069a1.444 1.444 0 0 1 1.067-.438c.422 0 .779.149 1.067.438.291.29.439.646.439 1.068 0 .422-.149.778-.438 1.067a1.455 1.455 0 0 1-1.067.44c-.423-.01-.779-.15-1.068-.44Zm-.05 1.937h2.234v10.362h-2.234V26.834Zm7.093 10.304a2.898 2.898 0 0 1-.993-.588c-.579-.579-.878-1.373-.878-2.375v-5.372h-1.812v-1.97h1.812v-2.92h2.235v2.93h2.517v1.97h-2.517v4.874c0 .555.108.952.323 1.176.207.273.555.405 1.06.405.231 0 .43-.033.612-.091.174-.058.364-.157.571-.298v2.177c-.447.207-.985.306-1.622.306a3.735 3.735 0 0 1-1.308-.224Zm6.133-.33a4.946 4.946 0 0 1-1.887-1.962c-.455-.836-.679-1.771-.679-2.814 0-.994.224-1.904.662-2.756a5.157 5.157 0 0 1 1.838-2.02c.786-.497 1.68-.754 2.682-.754 1.043 0 1.945.232 2.714.688a4.572 4.572 0 0 1 1.747 1.887c.397.803.596 1.697.596 2.707 0 .19-.017.43-.058.711h-7.946c.083.96.423 1.706 1.026 2.227.58.512 1.33.79 2.103.778.637 0 1.192-.141 1.655-.439a3.185 3.185 0 0 0 1.126-1.192l1.887.894c-.488.853-1.126 1.523-1.912 2.011-.786.489-1.73.729-2.823.729-1.018.016-1.927-.215-2.731-.695Zm5.397-6.01a2.497 2.497 0 0 0-.348-1.084 2.486 2.486 0 0 0-.927-.902c-.413-.24-.918-.364-1.515-.364-.72 0-1.324.215-1.821.637-.496.422-.836 1.001-1.026 1.713h5.637Z"})),Zn||(Zn=d.createElement("g",{fillRule:"evenodd",clipPath:"url(#yoast-connect-google-site-kit-success_svg__f)",clipRule:"evenodd"},d.createElement("path",{fill:"#FBBC05",d:"m170.119 26.56 2.576 1.97a4.563 4.563 0 0 0 0 2.85l-2.576 1.97a7.667 7.667 0 0 1-.785-3.395c0-1.22.283-2.373.785-3.394Z"}),d.createElement("path",{fill:"#EA4335",d:"m172.696 28.53-2.577-1.97a7.64 7.64 0 0 1 6.877-4.266c1.95 0 3.691.731 5.049 1.915l-2.229 2.229a4.428 4.428 0 0 0-2.82-1.01 4.518 4.518 0 0 0-4.3 3.102Z"}),d.createElement("path",{fill:"#34A853",d:"m170.118 33.347 2.576-1.975a4.514 4.514 0 0 0 4.301 3.11c2.124 0 3.726-1.08 4.109-2.96h-4.109v-2.96h7.139c.104.452.174.94.174 1.392 0 4.875-3.482 7.661-7.313 7.661a7.637 7.637 0 0 1-6.877-4.268Z"}),d.createElement("path",{fill:"#4285F4",d:"m181.988 35.707-2.446-1.893c.8-.505 1.357-1.283 1.562-2.293h-4.109v-2.96h7.138c.105.453.175.94.175 1.393 0 2.497-.914 4.446-2.32 5.753Z"}))),Jn||(Jn=d.createElement("defs",null,d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__a",x1:49.753,x2:49.753,y1:36.267,y2:23.152,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610B39"}),d.createElement("stop",{offset:.15,stopColor:"#79164B"}),d.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),d.createElement("stop",{offset:.44,stopColor:"#9A2463"}),d.createElement("stop",{offset:.63,stopColor:"#A22768"}),d.createElement("stop",{offset:1,stopColor:"#A4286A"})),d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__b",x1:82.999,x2:82.999,y1:38.82,y2:20.114,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610B39"}),d.createElement("stop",{offset:.15,stopColor:"#79164B"}),d.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),d.createElement("stop",{offset:.44,stopColor:"#9A2463"}),d.createElement("stop",{offset:.63,stopColor:"#A22768"}),d.createElement("stop",{offset:1,stopColor:"#A4286A"})),d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__c",x1:62.701,x2:62.701,y1:36.222,y2:23.113,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610B39"}),d.createElement("stop",{offset:.15,stopColor:"#79164B"}),d.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),d.createElement("stop",{offset:.44,stopColor:"#9A2463"}),d.createElement("stop",{offset:.63,stopColor:"#A22768"}),d.createElement("stop",{offset:1,stopColor:"#A4286A"})),d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__d",x1:74.149,x2:74.149,y1:36.275,y2:23.046,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610B39"}),d.createElement("stop",{offset:.15,stopColor:"#79164B"}),d.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),d.createElement("stop",{offset:.44,stopColor:"#9A2463"}),d.createElement("stop",{offset:.63,stopColor:"#A22768"}),d.createElement("stop",{offset:1,stopColor:"#A4286A"})),d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__e",x1:25.434,x2:25.434,y1:16.169,y2:36.914,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#77B227"}),d.createElement("stop",{offset:.47,stopColor:"#75B027"}),d.createElement("stop",{offset:.64,stopColor:"#6EAB27"}),d.createElement("stop",{offset:.75,stopColor:"#63A027"}),d.createElement("stop",{offset:.85,stopColor:"#529228"}),d.createElement("stop",{offset:.93,stopColor:"#3C8028"}),d.createElement("stop",{offset:1,stopColor:"#246B29"})),d.createElement("clipPath",{id:"yoast-connect-google-site-kit-success_svg__f"},d.createElement("path",{fill:"#fff",d:"M169.334 22h14.973v15.909h-14.973z"}))))),ea=[{children:(0,Vt.__)("INSTALL","wordpress-seo"),id:"install"},{children:(0,Vt.__)("ACTIVATE","wordpress-seo"),id:"activate"},{children:(0,Vt.__)("SET UP","wordpress-seo"),id:"setup"},{children:(0,Vt.__)("CONNECT","wordpress-seo"),id:"connect"}],ta={install:0,activate:1,setup:2,grantConsent:3,successfullyConnected:-1},sa=(e,t)=>[ta.setup,ta.grantConsent,ta.successfullyConnected].includes(e)&&!t,ra=({isSiteKitConnectionCompleted:e})=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(l.Title,{size:"2",className:"yst-mb-4",children:e?(0,Vt.__)("You’ve successfully connected your site with Site Kit by Google!","wordpress-seo"):(0,Vt.__)("Expand your dashboard with insights from Google!","wordpress-seo")}),!e&&(0,Zt.jsx)("p",{className:"yst-mb-4",children:(0,Vt.__)("Bring together powerful tools like Google Analytics and Search Console for a complete overview of your website's performance, all in one seamless dashboard.","wordpress-seo")})]}),na=({capabilities:e,currentStep:t,isVersionSupported:s,isConsentGranted:r})=>{const n="yst-mt-6";return sa(t,s)?r?(0,Zt.jsx)(l.Alert,{className:n,variant:"error",children:(0,Vt.__)("Your current version of the Site Kit by Google plugin is no longer compatible with Yoast SEO. Please update to the latest version to restore the connection.","wordpress-seo")}):(0,Zt.jsx)(l.Alert,{className:n,children:(0,Vt.__)("You are using an outdated version of the Site Kit by Google plugin. Please update to the latest version to connect Yoast SEO with Site Kit by Google.","wordpress-seo")}):t===ta.successfullyConnected?null:!e.installPlugins&&t<ta.grantConsent?(0,Zt.jsx)(l.Alert,{className:n,children:(0,Vt.__)("Please contact your WordPress admin to install, activate, and set up the Site Kit by Google plugin.","wordpress-seo")}):e.viewSearchConsoleData||t!==ta.grantConsent?void 0:(0,Zt.jsx)(l.Alert,{className:n,children:(0,Vt.__)("You don’t have view access to Site Kit by Google. Please contact the admin who set it up.","wordpress-seo")})},aa=({dashboardUrl:e})=>(0,Zt.jsx)(l.Alert,{className:"yst-mb-4",children:Wt((0,Vt.sprintf)(/* translators: %1$s and %2$s: Expands to an opening and closing link tag. */ -(0,Vt.__)("You’re back in Yoast SEO. If you still have tasks to finish in Site Kit by Google, you can %1$s return to their dashboard%2$s anytime.","wordpress-seo"),"<a>","</a>"),{a:(0,Zt.jsx)("a",{href:e})})}),oa=({currentStep:e,config:t,isConnectionCompleted:s,onDismissWidget:r,onShowConsent:n})=>{const a=(0,o.useCallback)(((e,s="installPlugins")=>{var r;return null!==(r=t.capabilities)&&void 0!==r&&r[s]?e:null}),[t.capabilities]);if(sa(e,t.isVersionSupported))return(0,Zt.jsx)(l.Button,{as:"a",href:t.updateUrl,children:(0,Vt.__)("Update Site Kit by Google","wordpress-seo")});if(s)return(0,Zt.jsx)(l.Button,{onClick:r,children:(0,Vt.__)("Got it!","wordpress-seo")});switch(e){case ta.install:return(0,Zt.jsx)(l.Button,{as:"a",href:a(t.installUrl),disabled:!t.capabilities.installPlugins,"aria-disabled":!t.capabilities.installPlugins,children:(0,Vt.__)("Install Site Kit by Google","wordpress-seo")});case ta.activate:return(0,Zt.jsx)(l.Button,{as:"a",href:a(t.activateUrl),disabled:!t.capabilities.installPlugins,"aria-disabled":!t.capabilities.installPlugins,children:(0,Vt.__)("Activate Site Kit by Google","wordpress-seo")});case ta.setup:return(0,Zt.jsx)(l.Button,{as:"a",href:a(t.setupUrl),disabled:!t.capabilities.installPlugins,"aria-disabled":!t.capabilities.installPlugins,children:(0,Vt.__)("Set up Site Kit by Google","wordpress-seo")});case ta.grantConsent:return(0,Zt.jsx)(l.Button,{disabled:!t.capabilities.viewSearchConsoleData,onClick:n,children:(0,Vt.__)("Connect Site Kit by Google","wordpress-seo")})}return null},ia=({dataProvider:e,remoteDataProvider:t,dataTracker:s})=>{const{grantConsent:r,dismissPermanently:n}=((e,t)=>({grantConsent:(0,o.useCallback)((s=>{t.fetchJson(e.getEndpoint("siteKitConsentManagement"),{consent:String(!0)},{...s,method:"POST"}).then((({success:t})=>{t&&e.setSiteKitConsentGranted(!0)})).catch(c.noop)}),[e,t]),dismissPermanently:(0,o.useCallback)((s=>{t.fetchJson(e.getEndpoint("siteKitConfigurationDismissal"),{is_dismissed:String(!0)},{...s,method:"POST"}).catch(c.noop),e.setSiteKitConfigurationDismissed(!0)}),[t,e])}))(e,t),a=e.getSiteKitCurrentConnectionStep(),d=e.getSiteKitConfiguration(),u=e.isSiteKitConnectionCompleted()&&d.isVersionSupported;((e,t)=>{(0,o.useEffect)((()=>{const s=(r=t,null===(n=Object.entries(ta).find((([,e])=>e===r)))||void 0===n?void 0:n[0]);var r,n;"no"===e.getTrackingElement("setupWidgetLoaded")?e.track({setupWidgetLoaded:"yes",firstInteractionStage:s,lastInteractionStage:s}):"yes"===e.getTrackingElement("setupWidgetLoaded")&&e.track({lastInteractionStage:s})}),[e,t])})(s,a);const p=(0,o.useCallback)((()=>{e.setSiteKitConfigurationDismissed(!0)}),[e]),m=(0,o.useCallback)((()=>{p(),s.track({setupWidgetTemporarilyDismissed:"yes"})}),[s,p]),[h,,,f,y]=(0,l.useToggleState)(!1),g=(0,o.useCallback)((()=>{n(),s.track({setupWidgetPermanentlyDismissed:"yes"})}),[s,a]),v=e.getLink("siteKitLearnMore"),b=e.getLink("siteKitConsentLearnMore");return(0,Zt.jsxs)(i.Widget,{className:"yst-paper__content yst-relative @3xl:yst-col-span-2 yst-col-span-4",children:[(0,Zt.jsx)("div",{className:"yst-flex yst-justify-center yst-mb-6 yst-mt-4",children:u?(0,Zt.jsx)(Xn,{className:"yst-aspect-[21/5] yst-max-w-[252px]"}):(0,Zt.jsx)(gn,{className:"yst-aspect-[21/5] yst-max-w-[252px]"})}),!sa(a,d.isVersionSupported)&&(0,Zt.jsx)(l.Stepper,{steps:ea,currentStep:a===ta.successfullyConnected?ea.length:a,className:"yst-mb-6"}),(0,Zt.jsxs)(l.DropdownMenu,{as:"span",className:"yst-absolute yst-top-4 yst-end-4",children:[(0,Zt.jsx)(l.DropdownMenu.IconTrigger,{screenReaderTriggerLabel:(0,Vt.__)("Open Site Kit widget dropdown menu","wordpress-seo"),className:"yst-float-end"}),(0,Zt.jsxs)(l.DropdownMenu.List,{className:"yst-mt-8 yst-w-56",children:[(0,Zt.jsxs)(l.DropdownMenu.ButtonItem,{className:"yst-text-slate-600 yst-border-b yst-border-slate-200 yst-flex yst-py-2 yst-justify-start yst-gap-2 yst-px-4 yst-font-normal",onClick:m,children:[(0,Zt.jsx)(Un,{className:"yst-w-4 yst-text-slate-400 yst-shrink-0"}),(0,Vt.__)("Remove until next visit","wordpress-seo")]}),(0,Zt.jsxs)(l.DropdownMenu.ButtonItem,{className:"yst-text-red-500 yst-flex yst-py-2 yst-justify-start yst-gap-2 yst-px-4 yst-font-normal",onClick:g,children:[(0,Zt.jsx)(Bn,{className:"yst-w-4 yst-shrink-0"}),(0,Vt.__)("Remove permanently","wordpress-seo")]})]})]}),(0,Zt.jsx)("hr",{className:"yst-bg-slate-200 yst-mb-6"}),d.isRedirectedFromSiteKit&&(0,Zt.jsx)(aa,{dashboardUrl:d.dashboardUrl}),(0,Zt.jsxs)("div",{className:"yst-max-w-2xl",children:[(0,Zt.jsx)(ra,{isSiteKitConnectionCompleted:u}),(0,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium",children:u?(0,Vt.__)("You're all set, here are some benefits:","wordpress-seo"):(0,Vt.__)("Here's what you'll unlock:","wordpress-seo")}),(0,Zt.jsxs)("ul",{children:[(0,Zt.jsxs)("li",{className:"yst-gap-2 yst-flex yst-mt-2 yst-items-start",children:[(0,Zt.jsx)(Ls,{className:"yst-w-5 yst-text-green-400 yst-shrink-0"}),(0,Vt.__)("Grow your audience with actionable SEO and user behavior insights.","wordpress-seo")]}),(0,Zt.jsxs)("li",{className:"yst-gap-2 yst-flex yst-mt-2 yst-items-start",children:[(0,Zt.jsx)(Ls,{className:"yst-w-5 yst-text-green-400 yst-shrink-0"}),(0,Vt.__)("Fine-tune your SEO and optimize your content using key performance metrics (KPI).","wordpress-seo")]})]}),(0,Zt.jsx)(na,{capabilities:d.capabilities,currentStep:a,isVersionSupported:d.isVersionSupported,isConsentGranted:d.connectionStepsStatuses.isConsentGranted})]}),(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-1.5 yst-mt-6 yst-items-center",children:[(0,Zt.jsx)(oa,{currentStep:a,config:d,isConnectionCompleted:u,onDismissWidget:p,onShowConsent:f}),!u&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(l.Button,{as:"a",href:v,variant:"tertiary",className:"yst-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",target:"_blank",rel:"noopener",children:[(0,Vt.__)("Learn more","wordpress-seo"),(0,Zt.jsx)(is,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")})]}),(0,Zt.jsx)(vn,{isOpen:a===ta.grantConsent&&h,onClose:y,onGrantConsent:r,learnMoreLink:b})]})]})]})};function la(e,t,s){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,s)}var ca=new WeakMap,da=new WeakMap,ua=new WeakMap,pa=new WeakMap,ma=new WeakMap;class ha{constructor(e,t,s,r,n){la(this,ca,{writable:!0,value:void 0}),la(this,da,{writable:!0,value:void 0}),la(this,ua,{writable:!0,value:void 0}),la(this,pa,{writable:!0,value:void 0}),la(this,ma,{writable:!0,value:void 0}),En(this,ca,e),En(this,da,t),En(this,ua,s),En(this,pa,r),En(this,ma,n)}getRemoteDataProvider(e){var t;return null!==(t=Sn(this,ua)[e])&&void 0!==t?t:Sn(this,da)}get types(){return{siteKitSetup:"siteKitSetup",searchRankingCompare:"searchRankingCompare",organicSessions:"organicSessions",topPages:"topPages",topQueries:"topQueries",seoScores:"seoScores",readabilityScores:"readabilityScores"}}createWidget(e){const{isFeatureEnabled:t,isSetupWidgetDismissed:s,isAnalyticsConnected:r,capabilities:n,isVersionSupported:a}=Sn(this,ca).getSiteKitConfiguration(),o=Sn(this,ca).isSiteKitConnectionCompleted(),l=t&&o&&a,c=l&&n.viewSearchConsoleData,d=l&&r&&n.viewAnalyticsData;switch(e){case this.types.seoScores:return Sn(this,ca).hasFeature("indexables")&&Sn(this,ca).hasFeature("seoAnalysis")?(0,Zt.jsx)(i.ScoreWidget,{analysisType:"seo",dataProvider:Sn(this,ca),remoteDataProvider:this.getRemoteDataProvider(e)},e):null;case this.types.readabilityScores:return Sn(this,ca).hasFeature("indexables")&&Sn(this,ca).hasFeature("readabilityAnalysis")?(0,Zt.jsx)(i.ScoreWidget,{analysisType:"readability",dataProvider:Sn(this,ca),remoteDataProvider:this.getRemoteDataProvider(e)},e):null;case this.types.topPages:return c?(0,Zt.jsx)(i.TopPagesWidget,{dataProvider:Sn(this,ca),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:Sn(this,pa).plainMetricsDataFormatter},e):null;case this.types.siteKitSetup:return!t||s?null:(0,Zt.jsx)(ia,{dataProvider:Sn(this,ca),remoteDataProvider:this.getRemoteDataProvider(e),dataTracker:Sn(this,ma).setupWidgetDataTracker},e);case this.types.topQueries:return c?(0,Zt.jsx)(i.TopQueriesWidget,{dataProvider:Sn(this,ca),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:Sn(this,pa).plainMetricsDataFormatter},e):null;case this.types.searchRankingCompare:return c?(0,Zt.jsx)(i.SearchRankingCompareWidget,{dataProvider:Sn(this,ca),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:Sn(this,pa).comparisonMetricsDataFormatter},e):null;case this.types.organicSessions:return d?(0,Zt.jsx)(i.OrganicSessionsWidget,{dataProvider:Sn(this,ca),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:Sn(this,pa).comparisonMetricsDataFormatter},e):null;default:return null}}}const fa=window.yoast.reduxJsToolkit,ya="adminUrl",ga=(0,fa.createSlice)({name:ya,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),va=ga.getInitialState,ba={selectAdminUrl:e=>(0,c.get)(e,ya,"")};ba.selectAdminLink=(0,fa.createSelector)([ba.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}}));const xa=ga.actions,wa=ga.reducer,Sa=window.wp.apiFetch;var _a=s.n(Sa);const Ea="hasConsent",ja=(0,fa.createSlice)({name:Ea,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),Ca=(ja.getInitialState,ja.actions,ja.reducer,window.wp.url),ka="linkParams",Ra=(0,fa.createSlice)({name:ka,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),Oa=Ra.getInitialState,Na={selectLinkParam:(e,t,s={})=>(0,c.get)(e,`${ka}.${t}`,s),selectLinkParams:e=>(0,c.get)(e,ka,{})};Na.selectLink=(0,fa.createSelector)([Na.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,Ca.addQueryArgs)(t,{...e,...s})));const Pa=Ra.actions,Ta=Ra.reducer,La=(0,fa.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:r,description:n})=>({payload:{id:e||(0,fa.nanoid)(),variant:t,size:s,title:r||"",description:n}})},removeNotification:(e,{payload:t})=>(0,c.omit)(e,t)}}),Ma=(La.getInitialState,La.actions,La.reducer,"pluginUrl"),Aa=(0,fa.createSlice)({name:Ma,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),Ia=(Aa.getInitialState,{selectPluginUrl:e=>(0,c.get)(e,Ma,"")});Ia.selectImageLink=(0,fa.createSelector)([Ia.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,c.trimEnd)(e,"/"),(0,c.trim)(t,"/"),(0,c.trimStart)(s,"/")].join("/"))),Aa.actions,Aa.reducer;const Da="wistiaEmbedPermission",Fa=(0,fa.createSlice)({name:Da,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${Da}/${Vs}`,(e=>{e.status=Ks})),e.addCase(`${Da}/${Ws}`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${Da}/${Gs}`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,c.get)(t,"error.code",500),message:(0,c.get)(t,"error.message","Unknown")}}))}});var za;Fa.getInitialState,Fa.actions,Fa.reducer;const Ua=(0,fa.createSlice)({name:"documentTitle",initialState:(0,c.defaultTo)(null===(za=document)||void 0===za?void 0:za.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}});function Ba(...e){return e.filter(Boolean).join(" ")}function qa(e,t,...s){if(e in t){let r=t[e];return"function"==typeof r?r(...s):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,qa),r}Ua.getInitialState,Ua.actions,Ua.reducer;var $a,Ha,Va=((Ha=Va||{})[Ha.None=0]="None",Ha[Ha.RenderStrategy=1]="RenderStrategy",Ha[Ha.Static=2]="Static",Ha),Wa=(($a=Wa||{})[$a.Unmount=0]="Unmount",$a[$a.Hidden=1]="Hidden",$a);function Ga({ourProps:e,theirProps:t,slot:s,defaultTag:r,features:n,visible:a=!0,name:o}){let i=Ya(t,e);if(a)return Ka(i,s,r,o);let l=null!=n?n:0;if(2&l){let{static:e=!1,...t}=i;if(e)return Ka(t,s,r,o)}if(1&l){let{unmount:e=!0,...t}=i;return qa(e?0:1,{0:()=>null,1:()=>Ka({...t,hidden:!0,style:{display:"none"}},s,r,o)})}return Ka(i,s,r,o)}function Ka(e,t={},s,r){var n;let{as:a=s,children:o,refName:i="ref",...l}=Qa(e,["unmount","static"]),c=void 0!==e.ref?{[i]:e.ref}:{},u="function"==typeof o?o(t):o;l.className&&"function"==typeof l.className&&(l.className=l.className(t));let p={};if(t){let e=!1,s=[];for(let[r,n]of Object.entries(t))"boolean"==typeof n&&(e=!0),!0===n&&s.push(r);e&&(p["data-headlessui-state"]=s.join(" "))}if(a===d.Fragment&&Object.keys(Ja(l)).length>0){if(!(0,d.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=Ba(null==(n=u.props)?void 0:n.className,l.className),t=e?{className:e}:{};return(0,d.cloneElement)(u,Object.assign({},Ya(u.props,Ja(Qa(l,["ref"]))),p,c,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let s of e)null!=s&&("function"==typeof s?s(t):s.current=t)}}}(u.ref,c.ref),t))}return(0,d.createElement)(a,Object.assign({},Qa(l,["ref"]),a!==d.Fragment&&c,a!==d.Fragment&&p),u)}function Ya(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},s={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=s[e]||(s[e]=[]),s[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(s).map((e=>[e,void 0]))));for(let e in s)Object.assign(t,{[e](t,...r){let n=s[e];for(let e of n){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function Za(e){var t;return Object.assign((0,d.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Ja(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Qa(e,t=[]){let s=Object.assign({},e);for(let e of t)e in s&&delete s[e];return s}let Xa=(0,d.createContext)(null);Xa.displayName="OpenClosedContext";var eo=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(eo||{});function to(){return(0,d.useContext)(Xa)}function so({value:e,children:t}){return d.createElement(Xa.Provider,{value:e},t)}var ro=Object.defineProperty,no=(e,t,s)=>(((e,t,s)=>{t in e?ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s})(e,"symbol"!=typeof t?t+"":t,s),s);let ao=new class{constructor(){no(this,"current",this.detect()),no(this,"handoffState","pending"),no(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},oo=(e,t)=>{ao.isServer?(0,d.useEffect)(e,t):(0,d.useLayoutEffect)(e,t)};function io(){let e=(0,d.useRef)(!1);return oo((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function lo(e){let t=(0,d.useRef)(e);return oo((()=>{t.current=e}),[e]),t}function co(){let[e,t]=(0,d.useState)(ao.isHandoffComplete);return e&&!1===ao.isHandoffComplete&&t(!1),(0,d.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,d.useEffect)((()=>ao.handoff()),[]),e}let uo=function(e){let t=lo(e);return d.useCallback(((...e)=>t.current(...e)),[t])},po=Symbol();function mo(e,t=!0){return Object.assign(e,{[po]:t})}function ho(...e){let t=(0,d.useRef)(e);(0,d.useEffect)((()=>{t.current=e}),[e]);let s=uo((e=>{for(let s of t.current)null!=s&&("function"==typeof s?s(e):s.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[po])))?void 0:s}function fo(){let e=[],t=[],s={enqueue(e){t.push(e)},addEventListener:(e,t,r,n)=>(e.addEventListener(t,r,n),s.add((()=>e.removeEventListener(t,r,n)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return s.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>s.requestAnimationFrame((()=>s.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return s.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{t.current&&e[0]()})),s.add((()=>{t.current=!1}))},add:t=>(e.push(t),()=>{let s=e.indexOf(t);if(s>=0){let[t]=e.splice(s,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return s}function yo(e,...t){e&&t.length>0&&e.classList.add(...t)}function go(e,...t){e&&t.length>0&&e.classList.remove(...t)}function vo(){let[e]=(0,d.useState)(fo);return(0,d.useEffect)((()=>()=>e.dispose()),[e]),e}function bo({container:e,direction:t,classes:s,onStart:r,onStop:n}){let a=io(),o=vo(),i=lo(t);oo((()=>{let t=fo();o.add(t.dispose);let l=e.current;if(l&&"idle"!==i.current&&a.current)return t.dispose(),r.current(i.current),t.add(function(e,t,s,r){let n=s?"enter":"leave",a=fo(),o=void 0!==r?function(e){let t={called:!1};return(...s)=>{if(!t.called)return t.called=!0,e(...s)}}(r):()=>{};"enter"===n&&(e.removeAttribute("hidden"),e.style.display="");let i=qa(n,{enter:()=>t.enter,leave:()=>t.leave}),l=qa(n,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=qa(n,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return go(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),yo(e,...i,...c),a.nextFrame((()=>{go(e,...c),yo(e,...l),function(e,t){let s=fo();if(!e)return s.dispose;let{transitionDuration:r,transitionDelay:n}=getComputedStyle(e),[a,o]=[r,n].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(a+o!==0){let r=s.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();s.add((()=>t())),s.dispose}(e,(()=>(go(e,...i),yo(e,...t.entered),o())))})),a.dispose}(l,s.current,"enter"===i.current,(()=>{t.dispose(),n.current(i.current)}))),t.dispose}),[t])}function xo(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let wo=(0,d.createContext)(null);wo.displayName="TransitionContext";var So=(e=>(e.Visible="visible",e.Hidden="hidden",e))(So||{});let _o=(0,d.createContext)(null);function Eo(e){return"children"in e?Eo(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function jo(e,t){let s=lo(e),r=(0,d.useRef)([]),n=io(),a=vo(),o=uo(((e,t=Wa.Hidden)=>{let o=r.current.findIndex((({el:t})=>t===e));-1!==o&&(qa(t,{[Wa.Unmount](){r.current.splice(o,1)},[Wa.Hidden](){r.current[o].state="hidden"}}),a.microTask((()=>{var e;!Eo(r)&&n.current&&(null==(e=s.current)||e.call(s))})))})),i=uo((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>o(e,Wa.Unmount)})),l=(0,d.useRef)([]),c=(0,d.useRef)(Promise.resolve()),u=(0,d.useRef)({enter:[],leave:[],idle:[]}),p=uo(((e,s,r)=>{l.current.splice(0),t&&(t.chains.current[s]=t.chains.current[s].filter((([t])=>t!==e))),null==t||t.chains.current[s].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[s].push([e,new Promise((e=>{Promise.all(u.current[s].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===s?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(s))):r(s)})),m=uo(((e,t,s)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>s(t)))}));return(0,d.useMemo)((()=>({children:r,register:i,unregister:o,onStart:p,onStop:m,wait:c,chains:u})),[i,o,r,p,m,u,c])}function Co(){}_o.displayName="NestingContext";let ko=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ro(e){var t;let s={};for(let r of ko)s[r]=null!=(t=e[r])?t:Co;return s}let Oo=Va.RenderStrategy,No=Za((function(e,t){let{beforeEnter:s,afterEnter:r,beforeLeave:n,afterLeave:a,enter:o,enterFrom:i,enterTo:l,entered:c,leave:u,leaveFrom:p,leaveTo:m,...h}=e,f=(0,d.useRef)(null),y=ho(f,t),g=h.unmount?Wa.Unmount:Wa.Hidden,{show:v,appear:b,initial:x}=function(){let e=(0,d.useContext)(wo);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[w,S]=(0,d.useState)(v?"visible":"hidden"),_=function(){let e=(0,d.useContext)(_o);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:E,unregister:j}=_,C=(0,d.useRef)(null);(0,d.useEffect)((()=>E(f)),[E,f]),(0,d.useEffect)((()=>{if(g===Wa.Hidden&&f.current)return v&&"visible"!==w?void S("visible"):qa(w,{hidden:()=>j(f),visible:()=>E(f)})}),[w,f,E,j,v,g]);let k=lo({enter:xo(o),enterFrom:xo(i),enterTo:xo(l),entered:xo(c),leave:xo(u),leaveFrom:xo(p),leaveTo:xo(m)}),R=function(e){let t=(0,d.useRef)(Ro(e));return(0,d.useEffect)((()=>{t.current=Ro(e)}),[e]),t}({beforeEnter:s,afterEnter:r,beforeLeave:n,afterLeave:a}),O=co();(0,d.useEffect)((()=>{if(O&&"visible"===w&&null===f.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[f,w,O]);let N=x&&!b,P=!O||N||C.current===v?"idle":v?"enter":"leave",T=uo((e=>qa(e,{enter:()=>R.current.beforeEnter(),leave:()=>R.current.beforeLeave(),idle:()=>{}}))),L=uo((e=>qa(e,{enter:()=>R.current.afterEnter(),leave:()=>R.current.afterLeave(),idle:()=>{}}))),M=jo((()=>{S("hidden"),j(f)}),_);bo({container:f,classes:k,direction:P,onStart:lo((e=>{M.onStart(f,e,T)})),onStop:lo((e=>{M.onStop(f,e,L),"leave"===e&&!Eo(M)&&(S("hidden"),j(f))}))}),(0,d.useEffect)((()=>{!N||(g===Wa.Hidden?C.current=null:C.current=v)}),[v,N,w]);let A=h,I={ref:y};return b&&v&&ao.isServer&&(A={...A,className:Ba(h.className,...k.current.enter,...k.current.enterFrom)}),d.createElement(_o.Provider,{value:M},d.createElement(so,{value:qa(w,{visible:eo.Open,hidden:eo.Closed})},Ga({ourProps:I,theirProps:A,defaultTag:"div",features:Oo,visible:"visible"===w,name:"Transition.Child"})))})),Po=Za((function(e,t){let{show:s,appear:r=!1,unmount:n,...a}=e,o=(0,d.useRef)(null),i=ho(o,t);co();let l=to();if(void 0===s&&null!==l&&(s=qa(l,{[eo.Open]:!0,[eo.Closed]:!1})),![!0,!1].includes(s))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=(0,d.useState)(s?"visible":"hidden"),p=jo((()=>{u("hidden")})),[m,h]=(0,d.useState)(!0),f=(0,d.useRef)([s]);oo((()=>{!1!==m&&f.current[f.current.length-1]!==s&&(f.current.push(s),h(!1))}),[f,s]);let y=(0,d.useMemo)((()=>({show:s,appear:r,initial:m})),[s,r,m]);(0,d.useEffect)((()=>{if(s)u("visible");else if(Eo(p)){let e=o.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[s,p]);let g={unmount:n};return d.createElement(_o.Provider,{value:p},d.createElement(wo.Provider,{value:y},Ga({ourProps:{...g,as:d.Fragment,children:d.createElement(No,{ref:i,...g,...a})},theirProps:{},defaultTag:d.Fragment,features:Oo,visible:"visible"===c,name:"Transition"})))})),To=Za((function(e,t){let s=null!==(0,d.useContext)(wo),r=null!==to();return d.createElement(d.Fragment,null,!s&&r?d.createElement(Po,{ref:t,...e}):d.createElement(No,{ref:t,...e}))})),Lo=Object.assign(Po,{Child:To,Root:Po});const Mo=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"}),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"}))})),Ao=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"}))})),Io=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"}))})),Do=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"}))})),Fo=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"}))})),zo="@yoast/general",Uo=(0,o.createContext)({Icon:null,bulletClass:"",iconClass:""}),Bo=(e,t,s)=>{const r=e.querySelector(t);return r&&(r.textContent=s),r},qo=(e,t=[],...s)=>(0,r.useSelect)((t=>{var r,n;return null===(r=(n=t(zo))[e])||void 0===r?void 0:r.call(n,...s)}),t),$o=(e,t,s)=>{const r=[e,"wordpress-seo"];return t&&r.push("wordpress-seo-premium"),null!=s&&s.isWooSeoActive&&r.push("wpseo-woocommerce"),null!=s&&s.isLocalSEOActive&&r.push("wpseo-local"),null!=s&&s.isVideoSEOActive&&r.push("wpseo-video"),null!=s&&s.isNewsSEOActive&&r.push("wpseo-news"),null!=s&&s.isDuplicatePostActive&&r.push("duplicate-post"),r},Ho=({id:e,dismissed:t,message:s,resolveNonce:n})=>{const[a,i]=(0,o.useState)(!1),[d,u]=(0,o.useState)(""),{removeAlert:p,setResolveSuccessMessage:m}=(0,r.useDispatch)(zo),h=qo("selectPreference",[],"isPremium"),f=qo("selectPreference",[],"addonsStatus"),y=(0,o.useRef)(),g=(0,o.useCallback)((()=>{u("")}),[]),v=(0,o.useCallback)((async()=>{const t=y.current,s=t?t.value.trim():"";if((0,Ca.isEmail)(s)){i(!0),u("");try{const t=await async function(e,t,s){const r=$o("recapture",t,s);return(await fetch("https://my.yoast.com/api/Mailing-list/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({customerDetails:{firstName:"",email:e},list:"Yoast newsletter",source:r})})).json()}(s,h,f);if("subscribed"!==t.status)return void u((0,Vt.__)("Failed to subscribe to mailing list.","wordpress-seo"));const o=await async function(e,t){const s=new FormData;s.append("action","wpseo_resolve_alert"),s.append("alertId",e),s.append("_ajax_nonce",t);const n=(0,r.select)(zo).selectPreference("ajaxUrl");return(await fetch(n,{method:"POST",body:s})).json()}(e,n);var a;if(!o.success)return void u((null===(a=o.data)||void 0===a?void 0:a.message)||(0,Vt.__)("Failed to resolve alert.","wordpress-seo"));m((0,Vt.__)("Successfully subscribed!","wordpress-seo")),p(e)}catch(e){u((0,Vt.__)("An error occurred. Please try again.","wordpress-seo")),console.error("Error in handleSendClick:",e)}finally{i(!1)}}else u((0,Vt.__)("Please enter a valid email address.","wordpress-seo"))}),[e,n,i,u,p,m]);return(0,Zt.jsxs)("div",{className:Ps()("yst-text-sm yst-text-slate-600 yst-grow",t&&"yst-opacity-50"),children:[(0,Zt.jsx)("div",{dangerouslySetInnerHTML:{__html:s}}),(0,Zt.jsxs)("div",{className:"yst-flex yst-items-end yst-gap-2 yst-mt-2",children:[(0,Zt.jsx)(l.TextField,{type:"email",name:e+"-input-field",id:e+"-input-field",label:"",placeholder:(0,Vt.__)("E.g. example@email.com","wordpress-seo"),className:"yst-flex-1",disabled:a||t,onInput:g,ref:y,onChange:c.noop}),(0,Zt.jsxs)(l.Button,{variant:"primary",size:"large",onClick:v,isLoading:a,disabled:a||t,children:[(0,Vt.__)("Send","wordpress-seo"),(0,Zt.jsx)("div",{className:"yst-ml-2 yst-w-4",children:(0,Zt.jsx)(is,{className:"yst-w-4 yst-text-white"})})]})]}),d&&(0,Zt.jsx)("p",{className:"yst-text-red-600 yst-text-xs yst-mt-1",children:d}),(0,Zt.jsx)("p",{className:"yst-text-slate-600 yst-text-xxs yst-leading-4 yst-mt-1",children:Wt((0,Vt.sprintf)( +(0,Vt.__)("Welcome to your dashboard! Check your content's SEO performance, readability, and overall strengths and opportunities. %1$sLearn more about the dashboard%2$s.","wordpress-seo"),"<link>","</link>"),{link:(0,Zt.jsx)(ns,{href:s.dashboardLearnMore,children:" "})}):Wt((0,Vt.sprintf)(o,"<link>","</link>","<profilelink>","</profilelink>"),{link:(0,Zt.jsx)(l.Link,{href:"admin.php?page=wpseo_page_settings#/site-features",children:" "}),profilelink:(0,Zt.jsx)(l.Link,{href:"profile.php",children:" "})})}),!t.indexables&&(0,Zt.jsx)(l.Alert,{type:"info",children:i})]})})},pn=({widgetFactory:e,userName:t,features:s,links:r,sitekitFeatureEnabled:n,dataProvider:a})=>{const l=(0,o.useCallback)((()=>a.getSiteKitConfiguration()),[a]),c=(0,o.useCallback)((e=>a.subscribe(e)),[a]);return(0,o.useSyncExternalStore)(c,l),(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(un,{userName:t,features:s,links:r,sitekitFeatureEnabled:n}),(0,Zt.jsx)("div",{className:"yst-@container yst-grid yst-grid-cols-4 yst-gap-6 yst-my-6",children:(0,Zt.jsx)(i.Dashboard,{widgetFactory:e})})]})};function mn(e,t){return e.get(function(e,t,s){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:s;throw new TypeError("Private element is not present on this object")}(e,t))}function hn(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,mn(t,e))}function fn(e,t,s){return function(e,t,s){if(t.set)t.set.call(e,s);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=s}}(e,mn(t,e),s),s}function yn(e,t,s){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,s)}var gn=new WeakMap,vn=new WeakMap,bn=new WeakMap,xn=new WeakMap,wn=new WeakMap,Sn=new WeakMap,En=new WeakMap,jn=new WeakMap;class kn{constructor({contentTypes:e,userName:t,features:s,endpoints:r,headers:n,links:a,siteKitConfiguration:o}){yn(this,gn,{writable:!0,value:void 0}),yn(this,vn,{writable:!0,value:void 0}),yn(this,bn,{writable:!0,value:void 0}),yn(this,xn,{writable:!0,value:void 0}),yn(this,wn,{writable:!0,value:void 0}),yn(this,Sn,{writable:!0,value:void 0}),yn(this,En,{writable:!0,value:void 0}),yn(this,jn,{writable:!0,value:new Set}),fn(this,gn,e),fn(this,vn,t),fn(this,bn,s),fn(this,xn,r),fn(this,wn,n),fn(this,Sn,a),fn(this,En,o)}subscribe(e){return hn(this,jn).add(e),()=>hn(this,jn).delete(e)}notifySubscribers(){hn(this,jn).forEach((e=>e()))}getContentTypes(){return hn(this,gn)}getUserName(){return hn(this,vn)}getStepsStatuses(){return[hn(this,En).connectionStepsStatuses.isInstalled,hn(this,En).connectionStepsStatuses.isActive,hn(this,En).connectionStepsStatuses.isSetupCompleted,hn(this,En).connectionStepsStatuses.isConsentGranted]}hasFeature(e){var t;return!0===(null===(t=hn(this,bn))||void 0===t?void 0:t[e])}getEndpoint(e){var t;return null===(t=hn(this,xn))||void 0===t?void 0:t[e]}getHeaders(){return hn(this,wn)}getLink(e){var t;return null===(t=hn(this,Sn))||void 0===t?void 0:t[e]}getSiteKitConfiguration(){return hn(this,En)}getSiteKitCurrentConnectionStep(){return this.getStepsStatuses().findIndex((e=>!e))}isSiteKitConnectionCompleted(){return-1===this.getSiteKitCurrentConnectionStep()}setSiteKitConsentGranted(e){const t=(0,c.cloneDeep)(hn(this,En));t.connectionStepsStatuses.isConsentGranted=e,fn(this,En,t),this.notifySubscribers()}setSiteKitConfigurationDismissed(e){fn(this,En,{...hn(this,En),isSetupWidgetDismissed:e}),this.notifySubscribers()}}function Cn(e,t,s){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,s)}var Rn=new WeakMap,Nn=new WeakMap,Pn=new WeakMap;class On{constructor(e,t){Cn(this,Rn,{writable:!0,value:void 0}),Cn(this,Nn,{writable:!0,value:void 0}),Cn(this,Pn,{writable:!0,value:void 0}),fn(this,Rn,e.data),fn(this,Nn,e.endpoint),fn(this,Pn,t)}getTrackingElement(e){var t;return null===(t=hn(this,Rn))||void 0===t?void 0:t[e]}track(e){const t=(0,c.cloneDeep)(hn(this,Rn));let s=!1;Object.entries(e).forEach((([e,r])=>{void 0!==t[e]&&t[e]!==r&&(t[e]=r,s=!0)})),s&&(fn(this,Rn,t),this.storeData(t))}storeData(e,t){hn(this,Pn).fetchJson(hn(this,Nn),e,{...t,method:"POST"}).catch(c.noop)}}const Tn=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))})),Ln=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))}));var Mn,An,In,Dn,Fn,zn,Un,Bn,qn,$n;function Hn(){return Hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Hn.apply(this,arguments)}const Vn=e=>d.createElement("svg",Hn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 252 60"},e),Mn||(Mn=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__a)",fillRule:"evenodd",d:"M36.962 29.643c0-3.42 1.83-6.49 6.405-6.49 4.403 0 6.375 2.8 6.386 6.698.008 3.2-1.785 6.416-6.386 6.416-4.602 0-6.405-3.072-6.405-6.624Zm8.432-2.74c-1.173-1.64-4.688-1.64-4.8 2.932.046 2.582 1.245 3.614 2.773 3.63 3.317.039 3.093-5.067 2.027-6.562Z",clipRule:"evenodd"})),An||(An=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__b)",d:"M80.475 33.094v-6.63h2.369v-2.875h-2.369v-3.475h-3.659v3.475H74.96v2.877h1.856v6.258c0 3.552 2.477 5.665 5.092 6.102L83 35.877c-1.524-.193-2.51-1.332-2.525-2.783Z"})),In||(In=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__c)",fillRule:"evenodd",d:"M62.008 27.062v4.981c0 .7.196 1.67.425 2.803.089.436.182.897.27 1.376H59.18l-.611-1.472c-4.117 2.994-8.052.974-8.052-2.168 0-4.131 4.01-4.632 7.776-4.632l.003-.249c.01-.465.02-.985-.24-1.336v-.007c-.01-.014-.022-.027-.034-.04l-.011-.013c-.602-.675-2.327-1.028-5.21.341l-1.283-2.575c4.428-1.546 10.144-1.555 10.461 2.47.018.174.028.347.029.52Zm-6.521 3.81c-2.718 1.331-.064 4.384 2.835 1.14v-1.425c-.949 0-2.035.012-2.835.284Z",clipRule:"evenodd"})),Dn||(Dn=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__d)",d:"M67.636 26.794c0-1.227 1.966-1.801 5.065-.386l1.071-2.606c-4.17-1.262-9.866-1.37-9.904 2.992-.016 2.09 1.324 3.216 3.255 3.933 1.337.498 3.269.755 3.263 1.82-.007 1.392-3.001 1.605-5.726-.267l-1.1 2.823c3.715 1.85 10.627 1.901 10.59-2.734-.03-4.583-6.514-3.798-6.514-5.575Z"})),Fn||(Fn=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__e)",d:"M35.415 16.875 30.11 31.609l-2.54-7.956h-3.779l4.23 10.866a3.957 3.957 0 0 1 0 2.877c-.473 1.213-1.26 2.25-3.177 2.508v3.221c3.734 0 5.753-2.295 7.554-7.326l7.06-18.924h-4.043Z"})),zn||(zn=d.createElement("circle",{cx:126,cy:30,r:30,fill:"#DCFCE7"})),Un||(Un=d.createElement("path",{stroke:"#16A34A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"m117.045 31.25 5 5 12.5-12.5"})),Bn||(Bn=d.createElement("path",{fill:"#5F6368",d:"M238.632 23.565h2.267v.074l-5.066 5.844 5.405 7.63v.075h-2.151l-4.437-6.357-2.094 2.419v3.94h-1.754V23.564h1.754v7.027h.074l6.002-7.027Zm5.892 1.084c0 .339-.124.637-.364.877a1.19 1.19 0 0 1-.877.364c-.34 0-.638-.124-.877-.364a1.198 1.198 0 0 1-.365-.877c0-.348.124-.637.365-.878.239-.24.53-.364.877-.364.339 0 .637.124.877.364.248.249.364.538.364.878Zm-.355 3.22v9.328h-1.755v-9.329h1.755Zm5.604 9.477c-.762 0-1.392-.232-1.896-.704-.505-.472-.762-1.126-.77-1.962v-5.215h-1.639v-1.597h1.639v-2.856h1.754v2.856h2.285v1.597h-2.284v4.644c0 .62.124 1.043.364 1.266.24.224.513.332.819.332.141 0 .273-.017.414-.05a2.19 2.19 0 0 0 .373-.124l.554 1.564c-.471.166-1.001.249-1.613.249Zm-55.489-.878c-.969-.704-1.631-1.697-1.995-2.972l2.151-.878c.216.803.597 1.448 1.151 1.962.547.505 1.209.761 1.978.761.721 0 1.324-.182 1.829-.554.505-.373.754-.886.754-1.531 0-.596-.224-1.085-.662-1.474-.439-.389-1.209-.777-2.31-1.167l-.91-.323c-.977-.338-1.796-.827-2.459-1.464-.662-.637-.992-1.473-.992-2.515 0-.721.198-1.383.587-1.995.389-.613.935-1.093 1.639-1.458.695-.355 1.482-.537 2.367-.537 1.275 0 2.293.305 3.046.927.761.62 1.266 1.307 1.522 2.086l-2.051.868c-.15-.464-.43-.87-.853-1.217-.421-.356-.96-.53-1.622-.53-.662 0-1.224.166-1.68.505-.455.34-.679.77-.679 1.3 0 .505.207.91.612 1.241.406.323 1.043.638 1.913.935l.911.306c1.249.431 2.209 1.002 2.896 1.698.687.695 1.027 1.63 1.027 2.797 0 .952-.241 1.747-.729 2.383a4.482 4.482 0 0 1-1.862 1.433 5.981 5.981 0 0 1-2.326.463c-1.209 0-2.293-.348-3.253-1.05Zm9.924-11.571a1.45 1.45 0 0 1-.439-1.067c0-.423.149-.779.439-1.069a1.444 1.444 0 0 1 1.067-.438c.422 0 .779.149 1.067.438.291.29.439.646.439 1.068 0 .422-.149.778-.438 1.067a1.455 1.455 0 0 1-1.067.44c-.423-.01-.779-.15-1.068-.44Zm-.05 1.937h2.234v10.362h-2.234V26.834Zm7.093 10.304a2.898 2.898 0 0 1-.993-.588c-.579-.579-.878-1.373-.878-2.375v-5.372h-1.812v-1.97h1.812v-2.92h2.235v2.93h2.517v1.97h-2.517v4.874c0 .555.108.952.323 1.176.207.273.555.405 1.06.405.231 0 .43-.033.612-.091.174-.058.364-.157.571-.298v2.177c-.447.207-.985.306-1.622.306a3.735 3.735 0 0 1-1.308-.224Zm6.133-.33a4.946 4.946 0 0 1-1.887-1.962c-.455-.836-.679-1.771-.679-2.814 0-.994.224-1.904.662-2.756a5.157 5.157 0 0 1 1.838-2.02c.786-.497 1.68-.754 2.682-.754 1.043 0 1.945.232 2.714.688a4.572 4.572 0 0 1 1.747 1.887c.397.803.596 1.697.596 2.707 0 .19-.017.43-.058.711h-7.946c.083.96.423 1.706 1.026 2.227.58.512 1.33.79 2.103.778.637 0 1.192-.141 1.655-.439a3.185 3.185 0 0 0 1.126-1.192l1.887.894c-.488.853-1.126 1.523-1.912 2.011-.786.489-1.73.729-2.823.729-1.018.016-1.927-.215-2.731-.695Zm5.397-6.01a2.497 2.497 0 0 0-.348-1.084 2.486 2.486 0 0 0-.927-.902c-.413-.24-.918-.364-1.515-.364-.72 0-1.324.215-1.821.637-.496.422-.836 1.001-1.026 1.713h5.637Z"})),qn||(qn=d.createElement("g",{fillRule:"evenodd",clipPath:"url(#yoast-connect-google-site-kit-success_svg__f)",clipRule:"evenodd"},d.createElement("path",{fill:"#FBBC05",d:"m170.119 26.56 2.576 1.97a4.563 4.563 0 0 0 0 2.85l-2.576 1.97a7.667 7.667 0 0 1-.785-3.395c0-1.22.283-2.373.785-3.394Z"}),d.createElement("path",{fill:"#EA4335",d:"m172.696 28.53-2.577-1.97a7.64 7.64 0 0 1 6.877-4.266c1.95 0 3.691.731 5.049 1.915l-2.229 2.229a4.428 4.428 0 0 0-2.82-1.01 4.518 4.518 0 0 0-4.3 3.102Z"}),d.createElement("path",{fill:"#34A853",d:"m170.118 33.347 2.576-1.975a4.514 4.514 0 0 0 4.301 3.11c2.124 0 3.726-1.08 4.109-2.96h-4.109v-2.96h7.139c.104.452.174.94.174 1.392 0 4.875-3.482 7.661-7.313 7.661a7.637 7.637 0 0 1-6.877-4.268Z"}),d.createElement("path",{fill:"#4285F4",d:"m181.988 35.707-2.446-1.893c.8-.505 1.357-1.283 1.562-2.293h-4.109v-2.96h7.138c.105.453.175.94.175 1.393 0 2.497-.914 4.446-2.32 5.753Z"}))),$n||($n=d.createElement("defs",null,d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__a",x1:49.753,x2:49.753,y1:36.267,y2:23.152,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610B39"}),d.createElement("stop",{offset:.15,stopColor:"#79164B"}),d.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),d.createElement("stop",{offset:.44,stopColor:"#9A2463"}),d.createElement("stop",{offset:.63,stopColor:"#A22768"}),d.createElement("stop",{offset:1,stopColor:"#A4286A"})),d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__b",x1:82.999,x2:82.999,y1:38.82,y2:20.114,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610B39"}),d.createElement("stop",{offset:.15,stopColor:"#79164B"}),d.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),d.createElement("stop",{offset:.44,stopColor:"#9A2463"}),d.createElement("stop",{offset:.63,stopColor:"#A22768"}),d.createElement("stop",{offset:1,stopColor:"#A4286A"})),d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__c",x1:62.701,x2:62.701,y1:36.222,y2:23.113,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610B39"}),d.createElement("stop",{offset:.15,stopColor:"#79164B"}),d.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),d.createElement("stop",{offset:.44,stopColor:"#9A2463"}),d.createElement("stop",{offset:.63,stopColor:"#A22768"}),d.createElement("stop",{offset:1,stopColor:"#A4286A"})),d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__d",x1:74.149,x2:74.149,y1:36.275,y2:23.046,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610B39"}),d.createElement("stop",{offset:.15,stopColor:"#79164B"}),d.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),d.createElement("stop",{offset:.44,stopColor:"#9A2463"}),d.createElement("stop",{offset:.63,stopColor:"#A22768"}),d.createElement("stop",{offset:1,stopColor:"#A4286A"})),d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__e",x1:25.434,x2:25.434,y1:16.169,y2:36.914,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#77B227"}),d.createElement("stop",{offset:.47,stopColor:"#75B027"}),d.createElement("stop",{offset:.64,stopColor:"#6EAB27"}),d.createElement("stop",{offset:.75,stopColor:"#63A027"}),d.createElement("stop",{offset:.85,stopColor:"#529228"}),d.createElement("stop",{offset:.93,stopColor:"#3C8028"}),d.createElement("stop",{offset:1,stopColor:"#246B29"})),d.createElement("clipPath",{id:"yoast-connect-google-site-kit-success_svg__f"},d.createElement("path",{fill:"#fff",d:"M169.334 22h14.973v15.909h-14.973z"}))))),Wn=[{children:(0,Vt.__)("INSTALL","wordpress-seo"),id:"install"},{children:(0,Vt.__)("ACTIVATE","wordpress-seo"),id:"activate"},{children:(0,Vt.__)("SET UP","wordpress-seo"),id:"setup"},{children:(0,Vt.__)("CONNECT","wordpress-seo"),id:"connect"}],Gn={install:0,activate:1,setup:2,grantConsent:3,successfullyConnected:-1},Kn=(e,t)=>[Gn.setup,Gn.grantConsent,Gn.successfullyConnected].includes(e)&&!t,Yn=({isSiteKitConnectionCompleted:e})=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(l.Title,{size:"2",className:"yst-mb-4",children:e?(0,Vt.__)("You’ve successfully connected your site with Site Kit by Google!","wordpress-seo"):(0,Vt.__)("Expand your dashboard with insights from Google!","wordpress-seo")}),!e&&(0,Zt.jsx)("p",{className:"yst-mb-4",children:(0,Vt.__)("Bring together powerful tools like Google Analytics and Search Console for a complete overview of your website's performance, all in one seamless dashboard.","wordpress-seo")})]}),Zn=({capabilities:e,currentStep:t,isVersionSupported:s,isConsentGranted:r})=>{const n="yst-mt-6";return Kn(t,s)?r?(0,Zt.jsx)(l.Alert,{className:n,variant:"error",children:(0,Vt.__)("Your current version of the Site Kit by Google plugin is no longer compatible with Yoast SEO. Please update to the latest version to restore the connection.","wordpress-seo")}):(0,Zt.jsx)(l.Alert,{className:n,children:(0,Vt.__)("You are using an outdated version of the Site Kit by Google plugin. Please update to the latest version to connect Yoast SEO with Site Kit by Google.","wordpress-seo")}):t===Gn.successfullyConnected?null:!e.installPlugins&&t<Gn.grantConsent?(0,Zt.jsx)(l.Alert,{className:n,children:(0,Vt.__)("Please contact your WordPress admin to install, activate, and set up the Site Kit by Google plugin.","wordpress-seo")}):e.viewSearchConsoleData||t!==Gn.grantConsent?void 0:(0,Zt.jsx)(l.Alert,{className:n,children:(0,Vt.__)("You don’t have view access to Site Kit by Google. Please contact the admin who set it up.","wordpress-seo")})},Jn=({dashboardUrl:e})=>(0,Zt.jsx)(l.Alert,{className:"yst-mb-4",children:Wt((0,Vt.sprintf)(/* translators: %1$s and %2$s: Expands to an opening and closing link tag. */ +(0,Vt.__)("You’re back in Yoast SEO. If you still have tasks to finish in Site Kit by Google, you can %1$s return to their dashboard%2$s anytime.","wordpress-seo"),"<a>","</a>"),{a:(0,Zt.jsx)("a",{href:e})})}),Qn=({currentStep:e,config:t,isConnectionCompleted:s,onDismissWidget:r,onShowConsent:n})=>{const a=(0,o.useCallback)(((e,s="installPlugins")=>{var r;return null!==(r=t.capabilities)&&void 0!==r&&r[s]?e:null}),[t.capabilities]);if(Kn(e,t.isVersionSupported))return(0,Zt.jsx)(l.Button,{as:"a",href:t.updateUrl,children:(0,Vt.__)("Update Site Kit by Google","wordpress-seo")});if(s)return(0,Zt.jsx)(l.Button,{onClick:r,children:(0,Vt.__)("Got it!","wordpress-seo")});switch(e){case Gn.install:return(0,Zt.jsx)(l.Button,{as:"a",href:a(t.installUrl),disabled:!t.capabilities.installPlugins,"aria-disabled":!t.capabilities.installPlugins,children:(0,Vt.__)("Install Site Kit by Google","wordpress-seo")});case Gn.activate:return(0,Zt.jsx)(l.Button,{as:"a",href:a(t.activateUrl),disabled:!t.capabilities.installPlugins,"aria-disabled":!t.capabilities.installPlugins,children:(0,Vt.__)("Activate Site Kit by Google","wordpress-seo")});case Gn.setup:return(0,Zt.jsx)(l.Button,{as:"a",href:a(t.setupUrl),disabled:!t.capabilities.installPlugins,"aria-disabled":!t.capabilities.installPlugins,children:(0,Vt.__)("Set up Site Kit by Google","wordpress-seo")});case Gn.grantConsent:return(0,Zt.jsx)(l.Button,{disabled:!t.capabilities.viewSearchConsoleData,onClick:n,children:(0,Vt.__)("Connect Site Kit by Google","wordpress-seo")})}return null},Xn=({dataProvider:e,remoteDataProvider:t,dataTracker:s})=>{const{grantConsent:r,dismissPermanently:n}=((e,t)=>({grantConsent:(0,o.useCallback)((s=>{t.fetchJson(e.getEndpoint("siteKitConsentManagement"),{consent:String(!0)},{...s,method:"POST"}).then((({success:t})=>{t&&e.setSiteKitConsentGranted(!0)})).catch(c.noop)}),[e,t]),dismissPermanently:(0,o.useCallback)((s=>{t.fetchJson(e.getEndpoint("siteKitConfigurationDismissal"),{is_dismissed:String(!0)},{...s,method:"POST"}).catch(c.noop),e.setSiteKitConfigurationDismissed(!0)}),[t,e])}))(e,t),a=e.getSiteKitCurrentConnectionStep(),d=e.getSiteKitConfiguration(),u=e.isSiteKitConnectionCompleted()&&d.isVersionSupported;((e,t)=>{(0,o.useEffect)((()=>{const s=(r=t,null===(n=Object.entries(Gn).find((([,e])=>e===r)))||void 0===n?void 0:n[0]);var r,n;"no"===e.getTrackingElement("setupWidgetLoaded")?e.track({setupWidgetLoaded:"yes",firstInteractionStage:s,lastInteractionStage:s}):"yes"===e.getTrackingElement("setupWidgetLoaded")&&e.track({lastInteractionStage:s})}),[e,t])})(s,a);const p=(0,o.useCallback)((()=>{e.setSiteKitConfigurationDismissed(!0)}),[e]),m=(0,o.useCallback)((()=>{p(),s.track({setupWidgetTemporarilyDismissed:"yes"})}),[s,p]),[h,,,f,y]=(0,l.useToggleState)(!1),g=(0,o.useCallback)((()=>{n(),s.track({setupWidgetPermanentlyDismissed:"yes"})}),[s,a]),v=e.getLink("siteKitLearnMore"),b=e.getLink("siteKitConsentLearnMore");return(0,Zt.jsxs)(i.Widget,{className:"yst-paper__content yst-relative @3xl:yst-col-span-2 yst-col-span-4",children:[(0,Zt.jsx)("div",{className:"yst-flex yst-justify-center yst-mb-6 yst-mt-4",children:u?(0,Zt.jsx)(Vn,{className:"yst-aspect-[21/5] yst-max-w-[252px]"}):(0,Zt.jsx)(cn,{className:"yst-aspect-[21/5] yst-max-w-[252px]"})}),!Kn(a,d.isVersionSupported)&&(0,Zt.jsx)(l.Stepper,{steps:Wn,currentStep:a===Gn.successfullyConnected?Wn.length:a,className:"yst-mb-6"}),(0,Zt.jsxs)(l.DropdownMenu,{as:"span",className:"yst-absolute yst-top-4 yst-end-4",children:[(0,Zt.jsx)(l.DropdownMenu.IconTrigger,{screenReaderTriggerLabel:(0,Vt.__)("Open Site Kit widget dropdown menu","wordpress-seo"),className:"yst-float-end"}),(0,Zt.jsxs)(l.DropdownMenu.List,{className:"yst-mt-8 yst-w-56",children:[(0,Zt.jsxs)(l.DropdownMenu.ButtonItem,{className:"yst-text-slate-600 yst-border-b yst-border-slate-200 yst-flex yst-py-2 yst-justify-start yst-gap-2 yst-px-4 yst-font-normal",onClick:m,children:[(0,Zt.jsx)(Tn,{className:"yst-w-4 yst-text-slate-400 yst-shrink-0"}),(0,Vt.__)("Remove until next visit","wordpress-seo")]}),(0,Zt.jsxs)(l.DropdownMenu.ButtonItem,{className:"yst-text-red-500 yst-flex yst-py-2 yst-justify-start yst-gap-2 yst-px-4 yst-font-normal",onClick:g,children:[(0,Zt.jsx)(Ln,{className:"yst-w-4 yst-shrink-0"}),(0,Vt.__)("Remove permanently","wordpress-seo")]})]})]}),(0,Zt.jsx)("hr",{className:"yst-bg-slate-200 yst-mb-6"}),d.isRedirectedFromSiteKit&&(0,Zt.jsx)(Jn,{dashboardUrl:d.dashboardUrl}),(0,Zt.jsxs)("div",{className:"yst-max-w-2xl",children:[(0,Zt.jsx)(Yn,{isSiteKitConnectionCompleted:u}),(0,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium",children:u?(0,Vt.__)("You're all set, here are some benefits:","wordpress-seo"):(0,Vt.__)("Here's what you'll unlock:","wordpress-seo")}),(0,Zt.jsxs)("ul",{children:[(0,Zt.jsxs)("li",{className:"yst-gap-2 yst-flex yst-mt-2 yst-items-start",children:[(0,Zt.jsx)(as,{className:"yst-w-5 yst-text-green-400 yst-shrink-0"}),(0,Vt.__)("Grow your audience with actionable SEO and user behavior insights.","wordpress-seo")]}),(0,Zt.jsxs)("li",{className:"yst-gap-2 yst-flex yst-mt-2 yst-items-start",children:[(0,Zt.jsx)(as,{className:"yst-w-5 yst-text-green-400 yst-shrink-0"}),(0,Vt.__)("Fine-tune your SEO and optimize your content using key performance metrics (KPI).","wordpress-seo")]})]}),(0,Zt.jsx)(Zn,{capabilities:d.capabilities,currentStep:a,isVersionSupported:d.isVersionSupported,isConsentGranted:d.connectionStepsStatuses.isConsentGranted})]}),(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-1.5 yst-mt-6 yst-items-center",children:[(0,Zt.jsx)(Qn,{currentStep:a,config:d,isConnectionCompleted:u,onDismissWidget:p,onShowConsent:f}),!u&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(l.Button,{as:"a",href:v,variant:"tertiary",className:"yst-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",target:"_blank",rel:"noopener",children:[(0,Vt.__)("Learn more","wordpress-seo"),(0,Zt.jsx)(Es,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ +(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")})]}),(0,Zt.jsx)(dn,{isOpen:a===Gn.grantConsent&&h,onClose:y,onGrantConsent:r,learnMoreLink:b})]})]})]})};function ea(e,t,s){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,s)}var ta=new WeakMap,sa=new WeakMap,ra=new WeakMap,na=new WeakMap,aa=new WeakMap;class oa{constructor(e,t,s,r,n){ea(this,ta,{writable:!0,value:void 0}),ea(this,sa,{writable:!0,value:void 0}),ea(this,ra,{writable:!0,value:void 0}),ea(this,na,{writable:!0,value:void 0}),ea(this,aa,{writable:!0,value:void 0}),fn(this,ta,e),fn(this,sa,t),fn(this,ra,s),fn(this,na,r),fn(this,aa,n)}getRemoteDataProvider(e){var t;return null!==(t=hn(this,ra)[e])&&void 0!==t?t:hn(this,sa)}get types(){return{siteKitSetup:"siteKitSetup",searchRankingCompare:"searchRankingCompare",organicSessions:"organicSessions",topPages:"topPages",topQueries:"topQueries",seoScores:"seoScores",readabilityScores:"readabilityScores"}}createWidget(e){const{isFeatureEnabled:t,isSetupWidgetDismissed:s,isAnalyticsConnected:r,capabilities:n,isVersionSupported:a}=hn(this,ta).getSiteKitConfiguration(),o=hn(this,ta).isSiteKitConnectionCompleted(),l=t&&o&&a,c=l&&n.viewSearchConsoleData,d=l&&r&&n.viewAnalyticsData;switch(e){case this.types.seoScores:return hn(this,ta).hasFeature("indexables")&&hn(this,ta).hasFeature("seoAnalysis")?(0,Zt.jsx)(i.ScoreWidget,{analysisType:"seo",dataProvider:hn(this,ta),remoteDataProvider:this.getRemoteDataProvider(e)},e):null;case this.types.readabilityScores:return hn(this,ta).hasFeature("indexables")&&hn(this,ta).hasFeature("readabilityAnalysis")?(0,Zt.jsx)(i.ScoreWidget,{analysisType:"readability",dataProvider:hn(this,ta),remoteDataProvider:this.getRemoteDataProvider(e)},e):null;case this.types.topPages:return c?(0,Zt.jsx)(i.TopPagesWidget,{dataProvider:hn(this,ta),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:hn(this,na).plainMetricsDataFormatter},e):null;case this.types.siteKitSetup:return!t||s?null:(0,Zt.jsx)(Xn,{dataProvider:hn(this,ta),remoteDataProvider:this.getRemoteDataProvider(e),dataTracker:hn(this,aa).setupWidgetDataTracker},e);case this.types.topQueries:return c?(0,Zt.jsx)(i.TopQueriesWidget,{dataProvider:hn(this,ta),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:hn(this,na).plainMetricsDataFormatter},e):null;case this.types.searchRankingCompare:return c?(0,Zt.jsx)(i.SearchRankingCompareWidget,{dataProvider:hn(this,ta),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:hn(this,na).comparisonMetricsDataFormatter},e):null;case this.types.organicSessions:return d?(0,Zt.jsx)(i.OrganicSessionsWidget,{dataProvider:hn(this,ta),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:hn(this,na).comparisonMetricsDataFormatter},e):null;default:return null}}}const ia=window.yoast.reduxJsToolkit,la="adminUrl",ca=(0,ia.createSlice)({name:la,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),da=ca.getInitialState,ua={selectAdminUrl:e=>(0,c.get)(e,la,"")};ua.selectAdminLink=(0,ia.createSelector)([ua.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}}));const pa=ca.actions,ma=ca.reducer,ha=window.wp.apiFetch;var fa=s.n(ha);const ya="hasConsent",ga=(0,ia.createSlice)({name:ya,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),va=(ga.getInitialState,ga.actions,ga.reducer,window.wp.url),ba="linkParams",xa=(0,ia.createSlice)({name:ba,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),wa=xa.getInitialState,Sa={selectLinkParam:(e,t,s={})=>(0,c.get)(e,`${ba}.${t}`,s),selectLinkParams:e=>(0,c.get)(e,ba,{})};Sa.selectLink=(0,ia.createSelector)([Sa.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,va.addQueryArgs)(t,{...e,...s})));const _a=xa.actions,Ea=xa.reducer,ja=(0,ia.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:r,description:n})=>({payload:{id:e||(0,ia.nanoid)(),variant:t,size:s,title:r||"",description:n}})},removeNotification:(e,{payload:t})=>(0,c.omit)(e,t)}}),ka=(ja.getInitialState,ja.actions,ja.reducer,"pluginUrl"),Ca=(0,ia.createSlice)({name:ka,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),Ra=(Ca.getInitialState,{selectPluginUrl:e=>(0,c.get)(e,ka,"")});Ra.selectImageLink=(0,ia.createSelector)([Ra.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,c.trimEnd)(e,"/"),(0,c.trim)(t,"/"),(0,c.trimStart)(s,"/")].join("/"))),Ca.actions,Ca.reducer;const Na="wistiaEmbedPermission",Pa=(0,ia.createSlice)({name:Na,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${Na}/${Is}`,(e=>{e.status=zs})),e.addCase(`${Na}/${Ds}`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${Na}/${Fs}`,((e,{payload:t})=>{e.status=Us,e.value=Boolean(t&&t.value),e.error={code:(0,c.get)(t,"error.code",500),message:(0,c.get)(t,"error.message","Unknown")}}))}});var Oa;Pa.getInitialState,Pa.actions,Pa.reducer;const Ta=(0,ia.createSlice)({name:"documentTitle",initialState:(0,c.defaultTo)(null===(Oa=document)||void 0===Oa?void 0:Oa.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}});function La(...e){return e.filter(Boolean).join(" ")}function Ma(e,t,...s){if(e in t){let r=t[e];return"function"==typeof r?r(...s):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Ma),r}Ta.getInitialState,Ta.actions,Ta.reducer;var Aa,Ia,Da=((Ia=Da||{})[Ia.None=0]="None",Ia[Ia.RenderStrategy=1]="RenderStrategy",Ia[Ia.Static=2]="Static",Ia),Fa=((Aa=Fa||{})[Aa.Unmount=0]="Unmount",Aa[Aa.Hidden=1]="Hidden",Aa);function za({ourProps:e,theirProps:t,slot:s,defaultTag:r,features:n,visible:a=!0,name:o}){let i=Ba(t,e);if(a)return Ua(i,s,r,o);let l=null!=n?n:0;if(2&l){let{static:e=!1,...t}=i;if(e)return Ua(t,s,r,o)}if(1&l){let{unmount:e=!0,...t}=i;return Ma(e?0:1,{0:()=>null,1:()=>Ua({...t,hidden:!0,style:{display:"none"}},s,r,o)})}return Ua(i,s,r,o)}function Ua(e,t={},s,r){var n;let{as:a=s,children:o,refName:i="ref",...l}=Ha(e,["unmount","static"]),c=void 0!==e.ref?{[i]:e.ref}:{},u="function"==typeof o?o(t):o;l.className&&"function"==typeof l.className&&(l.className=l.className(t));let p={};if(t){let e=!1,s=[];for(let[r,n]of Object.entries(t))"boolean"==typeof n&&(e=!0),!0===n&&s.push(r);e&&(p["data-headlessui-state"]=s.join(" "))}if(a===d.Fragment&&Object.keys($a(l)).length>0){if(!(0,d.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=La(null==(n=u.props)?void 0:n.className,l.className),t=e?{className:e}:{};return(0,d.cloneElement)(u,Object.assign({},Ba(u.props,$a(Ha(l,["ref"]))),p,c,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let s of e)null!=s&&("function"==typeof s?s(t):s.current=t)}}}(u.ref,c.ref),t))}return(0,d.createElement)(a,Object.assign({},Ha(l,["ref"]),a!==d.Fragment&&c,a!==d.Fragment&&p),u)}function Ba(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},s={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=s[e]||(s[e]=[]),s[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(s).map((e=>[e,void 0]))));for(let e in s)Object.assign(t,{[e](t,...r){let n=s[e];for(let e of n){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function qa(e){var t;return Object.assign((0,d.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function $a(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Ha(e,t=[]){let s=Object.assign({},e);for(let e of t)e in s&&delete s[e];return s}let Va=(0,d.createContext)(null);Va.displayName="OpenClosedContext";var Wa=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Wa||{});function Ga(){return(0,d.useContext)(Va)}function Ka({value:e,children:t}){return d.createElement(Va.Provider,{value:e},t)}var Ya=Object.defineProperty,Za=(e,t,s)=>(((e,t,s)=>{t in e?Ya(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s})(e,"symbol"!=typeof t?t+"":t,s),s);let Ja=new class{constructor(){Za(this,"current",this.detect()),Za(this,"handoffState","pending"),Za(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},Qa=(e,t)=>{Ja.isServer?(0,d.useEffect)(e,t):(0,d.useLayoutEffect)(e,t)};function Xa(){let e=(0,d.useRef)(!1);return Qa((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function eo(e){let t=(0,d.useRef)(e);return Qa((()=>{t.current=e}),[e]),t}function to(){let[e,t]=(0,d.useState)(Ja.isHandoffComplete);return e&&!1===Ja.isHandoffComplete&&t(!1),(0,d.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,d.useEffect)((()=>Ja.handoff()),[]),e}let so=function(e){let t=eo(e);return d.useCallback(((...e)=>t.current(...e)),[t])},ro=Symbol();function no(e,t=!0){return Object.assign(e,{[ro]:t})}function ao(...e){let t=(0,d.useRef)(e);(0,d.useEffect)((()=>{t.current=e}),[e]);let s=so((e=>{for(let s of t.current)null!=s&&("function"==typeof s?s(e):s.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[ro])))?void 0:s}function oo(){let e=[],t=[],s={enqueue(e){t.push(e)},addEventListener:(e,t,r,n)=>(e.addEventListener(t,r,n),s.add((()=>e.removeEventListener(t,r,n)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return s.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>s.requestAnimationFrame((()=>s.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return s.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{t.current&&e[0]()})),s.add((()=>{t.current=!1}))},add:t=>(e.push(t),()=>{let s=e.indexOf(t);if(s>=0){let[t]=e.splice(s,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return s}function io(e,...t){e&&t.length>0&&e.classList.add(...t)}function lo(e,...t){e&&t.length>0&&e.classList.remove(...t)}function co(){let[e]=(0,d.useState)(oo);return(0,d.useEffect)((()=>()=>e.dispose()),[e]),e}function uo({container:e,direction:t,classes:s,onStart:r,onStop:n}){let a=Xa(),o=co(),i=eo(t);Qa((()=>{let t=oo();o.add(t.dispose);let l=e.current;if(l&&"idle"!==i.current&&a.current)return t.dispose(),r.current(i.current),t.add(function(e,t,s,r){let n=s?"enter":"leave",a=oo(),o=void 0!==r?function(e){let t={called:!1};return(...s)=>{if(!t.called)return t.called=!0,e(...s)}}(r):()=>{};"enter"===n&&(e.removeAttribute("hidden"),e.style.display="");let i=Ma(n,{enter:()=>t.enter,leave:()=>t.leave}),l=Ma(n,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Ma(n,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return lo(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),io(e,...i,...c),a.nextFrame((()=>{lo(e,...c),io(e,...l),function(e,t){let s=oo();if(!e)return s.dispose;let{transitionDuration:r,transitionDelay:n}=getComputedStyle(e),[a,o]=[r,n].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(a+o!==0){let r=s.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();s.add((()=>t())),s.dispose}(e,(()=>(lo(e,...i),io(e,...t.entered),o())))})),a.dispose}(l,s.current,"enter"===i.current,(()=>{t.dispose(),n.current(i.current)}))),t.dispose}),[t])}function po(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let mo=(0,d.createContext)(null);mo.displayName="TransitionContext";var ho=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ho||{});let fo=(0,d.createContext)(null);function yo(e){return"children"in e?yo(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function go(e,t){let s=eo(e),r=(0,d.useRef)([]),n=Xa(),a=co(),o=so(((e,t=Fa.Hidden)=>{let o=r.current.findIndex((({el:t})=>t===e));-1!==o&&(Ma(t,{[Fa.Unmount](){r.current.splice(o,1)},[Fa.Hidden](){r.current[o].state="hidden"}}),a.microTask((()=>{var e;!yo(r)&&n.current&&(null==(e=s.current)||e.call(s))})))})),i=so((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>o(e,Fa.Unmount)})),l=(0,d.useRef)([]),c=(0,d.useRef)(Promise.resolve()),u=(0,d.useRef)({enter:[],leave:[],idle:[]}),p=so(((e,s,r)=>{l.current.splice(0),t&&(t.chains.current[s]=t.chains.current[s].filter((([t])=>t!==e))),null==t||t.chains.current[s].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[s].push([e,new Promise((e=>{Promise.all(u.current[s].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===s?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(s))):r(s)})),m=so(((e,t,s)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>s(t)))}));return(0,d.useMemo)((()=>({children:r,register:i,unregister:o,onStart:p,onStop:m,wait:c,chains:u})),[i,o,r,p,m,u,c])}function vo(){}fo.displayName="NestingContext";let bo=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function xo(e){var t;let s={};for(let r of bo)s[r]=null!=(t=e[r])?t:vo;return s}let wo=Da.RenderStrategy,So=qa((function(e,t){let{beforeEnter:s,afterEnter:r,beforeLeave:n,afterLeave:a,enter:o,enterFrom:i,enterTo:l,entered:c,leave:u,leaveFrom:p,leaveTo:m,...h}=e,f=(0,d.useRef)(null),y=ao(f,t),g=h.unmount?Fa.Unmount:Fa.Hidden,{show:v,appear:b,initial:x}=function(){let e=(0,d.useContext)(mo);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[w,S]=(0,d.useState)(v?"visible":"hidden"),_=function(){let e=(0,d.useContext)(fo);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:E,unregister:j}=_,k=(0,d.useRef)(null);(0,d.useEffect)((()=>E(f)),[E,f]),(0,d.useEffect)((()=>{if(g===Fa.Hidden&&f.current)return v&&"visible"!==w?void S("visible"):Ma(w,{hidden:()=>j(f),visible:()=>E(f)})}),[w,f,E,j,v,g]);let C=eo({enter:po(o),enterFrom:po(i),enterTo:po(l),entered:po(c),leave:po(u),leaveFrom:po(p),leaveTo:po(m)}),R=function(e){let t=(0,d.useRef)(xo(e));return(0,d.useEffect)((()=>{t.current=xo(e)}),[e]),t}({beforeEnter:s,afterEnter:r,beforeLeave:n,afterLeave:a}),N=to();(0,d.useEffect)((()=>{if(N&&"visible"===w&&null===f.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[f,w,N]);let P=x&&!b,O=!N||P||k.current===v?"idle":v?"enter":"leave",T=so((e=>Ma(e,{enter:()=>R.current.beforeEnter(),leave:()=>R.current.beforeLeave(),idle:()=>{}}))),L=so((e=>Ma(e,{enter:()=>R.current.afterEnter(),leave:()=>R.current.afterLeave(),idle:()=>{}}))),M=go((()=>{S("hidden"),j(f)}),_);uo({container:f,classes:C,direction:O,onStart:eo((e=>{M.onStart(f,e,T)})),onStop:eo((e=>{M.onStop(f,e,L),"leave"===e&&!yo(M)&&(S("hidden"),j(f))}))}),(0,d.useEffect)((()=>{!P||(g===Fa.Hidden?k.current=null:k.current=v)}),[v,P,w]);let A=h,I={ref:y};return b&&v&&Ja.isServer&&(A={...A,className:La(h.className,...C.current.enter,...C.current.enterFrom)}),d.createElement(fo.Provider,{value:M},d.createElement(Ka,{value:Ma(w,{visible:Wa.Open,hidden:Wa.Closed})},za({ourProps:I,theirProps:A,defaultTag:"div",features:wo,visible:"visible"===w,name:"Transition.Child"})))})),_o=qa((function(e,t){let{show:s,appear:r=!1,unmount:n,...a}=e,o=(0,d.useRef)(null),i=ao(o,t);to();let l=Ga();if(void 0===s&&null!==l&&(s=Ma(l,{[Wa.Open]:!0,[Wa.Closed]:!1})),![!0,!1].includes(s))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=(0,d.useState)(s?"visible":"hidden"),p=go((()=>{u("hidden")})),[m,h]=(0,d.useState)(!0),f=(0,d.useRef)([s]);Qa((()=>{!1!==m&&f.current[f.current.length-1]!==s&&(f.current.push(s),h(!1))}),[f,s]);let y=(0,d.useMemo)((()=>({show:s,appear:r,initial:m})),[s,r,m]);(0,d.useEffect)((()=>{if(s)u("visible");else if(yo(p)){let e=o.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[s,p]);let g={unmount:n};return d.createElement(fo.Provider,{value:p},d.createElement(mo.Provider,{value:y},za({ourProps:{...g,as:d.Fragment,children:d.createElement(So,{ref:i,...g,...a})},theirProps:{},defaultTag:d.Fragment,features:wo,visible:"visible"===c,name:"Transition"})))})),Eo=qa((function(e,t){let s=null!==(0,d.useContext)(mo),r=null!==Ga();return d.createElement(d.Fragment,null,!s&&r?d.createElement(_o,{ref:t,...e}):d.createElement(So,{ref:t,...e}))})),jo=Object.assign(_o,{Child:Eo,Root:_o});const ko=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"}),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"}))})),Co=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"}))})),Ro=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"}))})),No=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"}))})),Po=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"}))})),Oo=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"}))})),To="@yoast/general",Lo=(0,o.createContext)({Icon:null,bulletClass:"",iconClass:""}),Mo=(e,t,s)=>{const r=e.querySelector(t);return r&&(r.textContent=s),r},Ao=(e,t=[],...s)=>(0,r.useSelect)((t=>{var r,n;return null===(r=(n=t(To))[e])||void 0===r?void 0:r.call(n,...s)}),t),Io=(e,t,s)=>{const r=[e,"wordpress-seo"];return t&&r.push("wordpress-seo-premium"),null!=s&&s.isWooSeoActive&&r.push("wpseo-woocommerce"),null!=s&&s.isLocalSEOActive&&r.push("wpseo-local"),null!=s&&s.isVideoSEOActive&&r.push("wpseo-video"),null!=s&&s.isNewsSEOActive&&r.push("wpseo-news"),null!=s&&s.isDuplicatePostActive&&r.push("duplicate-post"),r},Do=({id:e,dismissed:t,message:s,resolveNonce:n})=>{const[a,i]=(0,o.useState)(!1),[d,u]=(0,o.useState)(""),{removeAlert:p,setResolveSuccessMessage:m}=(0,r.useDispatch)(To),h=Ao("selectPreference",[],"isPremium"),f=Ao("selectPreference",[],"addonsStatus"),y=(0,o.useRef)(),g=(0,o.useCallback)((()=>{u("")}),[]),v=(0,o.useCallback)((async()=>{const t=y.current,s=t?t.value.trim():"";if((0,va.isEmail)(s)){i(!0),u("");try{const t=await async function(e,t,s){const r=Io("recapture",t,s);return(await fetch("https://my.yoast.com/api/Mailing-list/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({customerDetails:{firstName:"",email:e},list:"Yoast newsletter",source:r})})).json()}(s,h,f);if("subscribed"!==t.status)return void u((0,Vt.__)("Failed to subscribe to mailing list.","wordpress-seo"));const o=await async function(e,t){const s=new FormData;s.append("action","wpseo_resolve_alert"),s.append("alertId",e),s.append("_ajax_nonce",t);const n=(0,r.select)(To).selectPreference("ajaxUrl");return(await fetch(n,{method:"POST",body:s})).json()}(e,n);var a;if(!o.success)return void u((null===(a=o.data)||void 0===a?void 0:a.message)||(0,Vt.__)("Failed to resolve alert.","wordpress-seo"));m((0,Vt.__)("Successfully subscribed!","wordpress-seo")),p(e)}catch(e){u((0,Vt.__)("An error occurred. Please try again.","wordpress-seo")),console.error("Error in handleSendClick:",e)}finally{i(!1)}}else u((0,Vt.__)("Please enter a valid email address.","wordpress-seo"))}),[e,n,i,u,p,m]);return(0,Zt.jsxs)("div",{className:Ss()("yst-text-sm yst-text-slate-600 yst-grow",t&&"yst-opacity-50"),children:[(0,Zt.jsx)("div",{dangerouslySetInnerHTML:{__html:s}}),(0,Zt.jsxs)("div",{className:"yst-flex yst-items-end yst-gap-2 yst-mt-2",children:[(0,Zt.jsx)(l.TextField,{type:"email",name:e+"-input-field",id:e+"-input-field",label:"",placeholder:(0,Vt.__)("E.g. example@email.com","wordpress-seo"),className:"yst-flex-1",disabled:a||t,onInput:g,ref:y,onChange:c.noop}),(0,Zt.jsxs)(l.Button,{variant:"primary",size:"large",onClick:v,isLoading:a,disabled:a||t,children:[(0,Vt.__)("Send","wordpress-seo"),(0,Zt.jsx)("div",{className:"yst-ml-2 yst-w-4",children:(0,Zt.jsx)(Es,{className:"yst-w-4 yst-text-white"})})]})]}),d&&(0,Zt.jsx)("p",{className:"yst-text-red-600 yst-text-xs yst-mt-1",children:d}),(0,Zt.jsx)("p",{className:"yst-text-slate-600 yst-text-xxs yst-leading-4 yst-mt-1",children:Wt((0,Vt.sprintf)( /** * translators: %1$s and %2$s expand to opening and closing <a> tags. */ -(0,Vt.__)("Yoast respects your privacy. Read %1$sour privacy policy%2$s on how we handle your personal information.","wordpress-seo"),"<a>","</a>"),{a:(0,Zt.jsx)("a",{href:(0,r.select)(zo).selectLink("https://yoa.st/gdpr-config-workout"),target:"_blank",rel:"noopener"})})})]})};Ho.propTypes={id:Yt().string.isRequired,dismissed:Yt().bool.isRequired,message:Yt().string.isRequired,resolveNonce:Yt().string.isRequired};const Vo=({dismissed:e,message:t})=>(0,Zt.jsx)("div",{className:Ps()("yst-text-sm yst-text-slate-600 yst-grow",e&&"yst-opacity-50"),dangerouslySetInnerHTML:{__html:t}});Vo.propTypes={dismissed:Yt().bool.isRequired,message:Yt().string.isRequired};const Wo=({id:e,dismissed:t,message:s,resolveNonce:r})=>"wpseo-ping-other-admins"===e?(0,Zt.jsx)(Ho,{id:e,dismissed:t,message:s,resolveNonce:r}):(0,Zt.jsx)(Vo,{dismissed:t,message:s});Wo.propTypes={id:Yt().string.isRequired,dismissed:Yt().bool.isRequired,message:Yt().string.isRequired,resolveNonce:Yt().string.isRequired};const Go=({id:e="",nonce:t="",dismissed:s=!1,message:n="",resolveNonce:a=""})=>{const{bulletClass:i=""}=(0,o.useContext)(Uo),{toggleAlertStatus:c}=(0,r.useDispatch)(zo),d=s?Do:Fo,u=(0,o.useCallback)((async()=>{c(e,t,s)}),[e,t,s,c]);return(0,Zt.jsxs)("li",{className:"yst-flex yst-justify-between yst-gap-x-5 yst-border-b yst-border-slate-200 last:yst-border-b-0 yst-py-6 first:yst-pt-0 last:yst-pb-0",children:[(0,Zt.jsx)("div",{className:Ps()("yst-mt-1",s&&"yst-opacity-50"),children:(0,Zt.jsx)("svg",{width:"11",height:"11",className:i,children:(0,Zt.jsx)("circle",{cx:"5.5",cy:"5.5",r:"5.5"})})}),(0,Zt.jsx)(Wo,{id:e,dismissed:s,message:n,resolveNonce:a}),(0,Zt.jsx)(l.Button,{variant:"secondary",size:"small",className:"yst-self-center yst-h-8",onClick:u,children:(0,Zt.jsx)(d,{className:"yst-w-4 yst-h-4 yst-text-neutral-700"})})]},e)};Go.propTypes={id:Yt().string,nonce:Yt().string,dismissed:Yt().bool,message:Yt().string,resolveNonce:Yt().string};const Ko=({className:e="",items:t=[]})=>0===t.length?null:(0,Zt.jsx)("ul",{className:e,children:t.map((e=>(0,Zt.jsx)(Go,{id:e.id,nonce:e.nonce,dismissed:e.dismissed,message:e.message,resolveNonce:e.resolveNonce||""},e.id)))});Ko.propTypes={className:Yt().string,items:Yt().arrayOf(Yt().shape({message:Yt().string,id:Yt().string,nonce:Yt().string,dismissed:Yt().bool,resolveNonce:Yt().string}))};const Yo=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))})),Zo=({title:e,counts:t=0,children:s=null})=>{const{Icon:r=Yo,iconClass:n=""}=(0,o.useContext)(Uo);return(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-justify-between yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(r,{className:Ps()("yst-w-6 yst-h-6",n)}),(0,Zt.jsxs)(l.Title,{className:"yst-grow",as:"h2",size:"2",children:[e," ",`(${t})`]})]}),s]})};var Jo;Zo.propTypes={title:Yt().string.isRequired,counts:Yt().number,children:Yt().node};let Qo=null!=(Jo=d.useId)?Jo:function(){let e=co(),[t,s]=d.useState(e?()=>ao.nextId():null);return oo((()=>{null===t&&s(ao.nextId())}),[t]),null!=t?""+t:void 0};var Xo=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Xo||{});function ei(e){let t=e.parentElement,s=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(s=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(s))&&r}function ti(e){var t;if(e.type)return e.type;let s=null!=(t=e.as)?t:"button";return"string"==typeof s&&"button"===s.toLowerCase()?"button":void 0}function si(e,t){let[s,r]=(0,d.useState)((()=>ti(e)));return oo((()=>{r(ti(e))}),[e.type,e.as]),oo((()=>{s||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[s,t]),s}function ri(e){return ao.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}var ni,ai=((ni=ai||{})[ni.Open=0]="Open",ni[ni.Closed=1]="Closed",ni),oi=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.LinkPanel=4]="LinkPanel",e[e.UnlinkPanel=5]="UnlinkPanel",e))(oi||{});let ii={0:e=>({...e,disclosureState:qa(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},li=(0,d.createContext)(null);function ci(e){let t=(0,d.useContext)(li);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ci),t}return t}li.displayName="DisclosureContext";let di=(0,d.createContext)(null);function ui(e){let t=(0,d.useContext)(di);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ui),t}return t}di.displayName="DisclosureAPIContext";let pi=(0,d.createContext)(null);function mi(e,t){return qa(t.type,ii,e,t)}pi.displayName="DisclosurePanelContext";let hi=d.Fragment,fi=Za((function(e,t){let{defaultOpen:s=!1,...r}=e,n=(0,d.useRef)(null),a=ho(t,mo((e=>{n.current=e}),void 0===e.as||e.as===d.Fragment)),o=(0,d.useRef)(null),i=(0,d.useRef)(null),l=(0,d.useReducer)(mi,{disclosureState:s?0:1,linkedPanel:!1,buttonRef:i,panelRef:o,buttonId:null,panelId:null}),[{disclosureState:c,buttonId:u},p]=l,m=uo((e=>{p({type:1});let t=ri(n);if(!t||!u)return;let s=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(u):t.getElementById(u);null==s||s.focus()})),h=(0,d.useMemo)((()=>({close:m})),[m]),f=(0,d.useMemo)((()=>({open:0===c,close:m})),[c,m]),y={ref:a};return d.createElement(li.Provider,{value:l},d.createElement(di.Provider,{value:h},d.createElement(so,{value:qa(c,{0:eo.Open,1:eo.Closed})},Ga({ourProps:y,theirProps:r,slot:f,defaultTag:hi,name:"Disclosure"}))))})),yi=Za((function(e,t){let s=Qo(),{id:r=`headlessui-disclosure-button-${s}`,...n}=e,[a,o]=ci("Disclosure.Button"),i=(0,d.useContext)(pi),l=null!==i&&i===a.panelId,c=(0,d.useRef)(null),u=ho(c,t,l?null:a.buttonRef);(0,d.useEffect)((()=>{if(!l)return o({type:2,buttonId:r}),()=>{o({type:2,buttonId:null})}}),[r,o,l]);let p=uo((e=>{var t;if(l){if(1===a.disclosureState)return;switch(e.key){case Xo.Space:case Xo.Enter:e.preventDefault(),e.stopPropagation(),o({type:0}),null==(t=a.buttonRef.current)||t.focus()}}else switch(e.key){case Xo.Space:case Xo.Enter:e.preventDefault(),e.stopPropagation(),o({type:0})}})),m=uo((e=>{e.key===Xo.Space&&e.preventDefault()})),h=uo((t=>{var s;ei(t.currentTarget)||e.disabled||(l?(o({type:0}),null==(s=a.buttonRef.current)||s.focus()):o({type:0}))})),f=(0,d.useMemo)((()=>({open:0===a.disclosureState})),[a]),y=si(e,c);return Ga({ourProps:l?{ref:u,type:y,onKeyDown:p,onClick:h}:{ref:u,id:r,type:y,"aria-expanded":e.disabled?void 0:0===a.disclosureState,"aria-controls":a.linkedPanel?a.panelId:void 0,onKeyDown:p,onKeyUp:m,onClick:h},theirProps:n,slot:f,defaultTag:"button",name:"Disclosure.Button"})})),gi=Va.RenderStrategy|Va.Static,vi=Za((function(e,t){let s=Qo(),{id:r=`headlessui-disclosure-panel-${s}`,...n}=e,[a,o]=ci("Disclosure.Panel"),{close:i}=ui("Disclosure.Panel"),l=ho(t,a.panelRef,(e=>{o({type:e?4:5})}));(0,d.useEffect)((()=>(o({type:3,panelId:r}),()=>{o({type:3,panelId:null})})),[r,o]);let c=to(),u=null!==c?c===eo.Open:0===a.disclosureState,p=(0,d.useMemo)((()=>({open:0===a.disclosureState,close:i})),[a,i]),m={ref:l,id:r};return d.createElement(pi.Provider,{value:a.panelId},Ga({ourProps:m,theirProps:n,slot:p,defaultTag:"div",features:gi,visible:u,name:"Disclosure.Panel"}))})),bi=Object.assign(fi,{Button:yi,Panel:vi});const xi=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"}))})),wi=({label:e,children:t})=>(0,Zt.jsx)(bi,{children:({open:s})=>(0,Zt.jsxs)("div",{className:"yst-shadow-sm yst-border-slate-300 yst-rounded-md yst-border",children:[(0,Zt.jsxs)(bi.Button,{className:"yst-w-full yst-flex yst-justify-between yst-py-4 yst-pe-4 yst-ps-6 yst-items-center",children:[(0,Zt.jsx)("div",{className:"yst-font-medium",children:e}),(0,Zt.jsx)(xi,{className:Ps()("yst-h-5 yst-w-5 flex-shrink-0 yst-text-slate-400",s?"yst-rotate-180":"")})]}),(0,Zt.jsx)(bi.Panel,{className:"yst-px-6",children:t})]})});function Si({title:e,id:t,isDismissable:s,children:n,className:a=""}){const i=(0,l.useSvgAria)(),{dismissNotice:c}=(0,r.useDispatch)(zo),d=(0,o.useCallback)((()=>{setTimeout((()=>{c(t)}),0)}),[c,t]);return(0,Zt.jsxs)("div",{id:t,className:Ps()("yst-p-3 yst-rounded-md yoast-general-page-notice",a),children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-row yst-items-center yst-min-h-[24px]",children:[(0,Zt.jsx)("span",{className:"yoast-icon"}),e&&(0,Zt.jsx)("div",{className:"yst-text-sm yst-font-medium",dangerouslySetInnerHTML:{__html:e}}),s&&(0,Zt.jsx)("div",{className:"yst-relative yst-ms-auto",children:(0,Zt.jsxs)("button",{type:"button",className:"notice-dismiss",onClick:d,children:[(0,Zt.jsx)("span",{className:"yst-sr-only",children:(0,Vt.__)("Close","wordpress-seo")}),(0,Zt.jsx)(Un,{className:"yst-h-5 yst-w-5",...i})]})})]}),n&&(0,Zt.jsx)("div",{className:"yst-flex-1 yst-text-sm yst-max-w-[600px] yst-ps-[29px]",dangerouslySetInnerHTML:{__html:n}})]})}wi.propTypes={label:Yt().string.isRequired,children:Yt().node.isRequired},Si.propTypes={title:Yt().string.isRequired,id:Yt().string.isRequired,isDismissable:Yt().bool.isRequired,children:Yt().string.isRequired,className:Yt().string};const _i=()=>{const e=(0,r.useSelect)((e=>e(zo).selectActiveNotifications()),[]),t=(0,r.useSelect)((e=>e(zo).selectDismissedNotifications()),[]),s=(0,r.useSelect)((e=>e(zo).selectResolveSuccessMessage()),[]),n=t.length,a=(0,Vt._n)("hidden notification","hidden notifications",n,"wordpress-seo"),o={Icon:Ao,bulletClass:"yst-fill-blue-500",iconClass:"yst-text-blue-500"};return(0,Zt.jsx)(l.Paper,{children:(0,Zt.jsx)(l.Paper.Content,{className:"yst-max-w-[600px] yst-flex yst-flex-col yst-gap-y-6",children:(0,Zt.jsxs)(Uo.Provider,{value:{...o},children:[(0,Zt.jsxs)(Zo,{counts:e.length,title:(0,Vt.__)("Notifications","wordpress-seo"),children:[s&&(0,Zt.jsx)(l.Alert,{variant:"success",className:"yst-mt-6",children:s}),0===e.length&&(0,Zt.jsx)("p",{className:"yst-mt-2 yst-text-sm",children:(0,Vt.__)("No new notifications.","wordpress-seo")})]}),(0,Zt.jsx)(Ko,{items:e}),n>0&&(0,Zt.jsx)(wi,{label:`${n} ${a}`,children:(0,Zt.jsx)(Ko,{className:"yst-pb-6",items:t})})]})})})},Ei=()=>{const e=(0,r.useSelect)((e=>e(zo).selectActiveProblems()),[]),t=(0,r.useSelect)((e=>e(zo).selectDismissedProblems()),[]),s=t.length,n=(0,Vt._n)("hidden problem","hidden problems",s,"wordpress-seo"),a={Icon:Yo,bulletClass:"yst-fill-red-500",iconClass:"yst-text-red-500"};return(0,Zt.jsx)(l.Paper,{children:(0,Zt.jsx)(l.Paper.Content,{className:"yst-max-w-[600px] yst-flex yst-flex-col yst-gap-y-6",children:(0,Zt.jsxs)(Uo.Provider,{value:{...a},children:[(0,Zt.jsx)(Zo,{title:(0,Vt.__)("Problems","wordpress-seo"),counts:e.length,children:(0,Zt.jsx)("p",{className:"yst-mt-2 yst-text-sm",children:e.length>0?(0,Vt.__)("We have detected the following issues that affect the SEO of your site.","wordpress-seo"):(0,Vt.__)("Good job! We could detect no serious SEO problems.","wordpress-seo")})}),(0,Zt.jsx)(Ko,{items:e}),s>0&&(0,Zt.jsx)(wi,{label:`${s} ${n}`,children:(0,Zt.jsx)(Ko,{className:"yst-pb-6",items:t})})]})})})},ji=({className:e=""})=>{const t=(0,o.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),s=qo("selectLink",[],"https://yoa.st/general-error-support"),r=vt();return(0,Zt.jsx)(l.Paper,{className:e,children:(0,Zt.jsx)(ts,{error:r,children:(0,Zt.jsx)(ts.HorizontalButtons,{handleRefreshClick:t,supportLink:s})})})};ji.propTypes={className:Yt().string};var Ci={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},ki=function(e){var t=e.message,s=e["aria-live"];return u().createElement("div",{style:Ci,role:"log","aria-live":s},t||"")};ki.propTypes={};const Ri=ki;function Oi(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Ni=function(e){function t(){var s,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,a=Array(n),o=0;o<n;o++)a[o]=arguments[o];return s=r=Oi(this,e.call.apply(e,[this].concat(a))),r.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},Oi(r,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.getDerivedStateFromProps=function(e,t){var s=t.oldPolitemessage,r=t.oldPoliteMessageId,n=t.oldAssertiveMessage,a=t.oldAssertiveMessageId,o=e.politeMessage,i=e.politeMessageId,l=e.assertiveMessage,c=e.assertiveMessageId;return s!==o||r!==i?{politeMessage1:t.setAlternatePolite?"":o,politeMessage2:t.setAlternatePolite?o:"",oldPolitemessage:o,oldPoliteMessageId:i,setAlternatePolite:!t.setAlternatePolite}:n!==l||a!==c?{assertiveMessage1:t.setAlternateAssertive?"":l,assertiveMessage2:t.setAlternateAssertive?l:"",oldAssertiveMessage:l,oldAssertiveMessageId:c,setAlternateAssertive:!t.setAlternateAssertive}:null},t.prototype.render=function(){var e=this.state,t=e.assertiveMessage1,s=e.assertiveMessage2,r=e.politeMessage1,n=e.politeMessage2;return u().createElement("div",null,u().createElement(Ri,{"aria-live":"assertive",message:t}),u().createElement(Ri,{"aria-live":"assertive",message:s}),u().createElement(Ri,{"aria-live":"polite",message:r}),u().createElement(Ri,{"aria-live":"polite",message:n}))},t}(d.Component);Ni.propTypes={};const Pi=Ni;function Ti(){console.warn("Announcement failed, LiveAnnouncer context is missing")}const Li=u().createContext({announceAssertive:Ti,announcePolite:Ti}),Mi=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.announcePolite=function(e,t){r.setState({announcePoliteMessage:e,politeMessageId:t||""})},r.announceAssertive=function(e,t){r.setState({announceAssertiveMessage:e,assertiveMessageId:t||""})},r.state={announcePoliteMessage:"",politeMessageId:"",announceAssertiveMessage:"",assertiveMessageId:"",updateFunctions:{announcePolite:r.announcePolite,announceAssertive:r.announceAssertive}},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.state,t=e.announcePoliteMessage,s=e.politeMessageId,r=e.announceAssertiveMessage,n=e.assertiveMessageId,a=e.updateFunctions;return u().createElement(Li.Provider,{value:a},this.props.children,u().createElement(Pi,{assertiveMessage:r,assertiveMessageId:n,politeMessage:t,politeMessageId:s}))},t}(d.Component);var Ai=s(3409),Ii=s.n(Ai);function Di(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Fi=function(e){function t(){var s,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,a=Array(n),o=0;o<n;o++)a[o]=arguments[o];return s=r=Di(this,e.call.apply(e,[this].concat(a))),r.announce=function(){var e=r.props,t=e.message,s=e["aria-live"],n=e.announceAssertive,a=e.announcePolite;"assertive"===s&&n(t||"",Ii()()),"polite"===s&&a(t||"",Ii()())},Di(r,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.announce()},t.prototype.componentDidUpdate=function(e){this.props.message!==e.message&&this.announce()},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.clearOnUnmount,s=e.announceAssertive,r=e.announcePolite;!0!==t&&"true"!==t||(s(""),r(""))},t.prototype.render=function(){return null},t}(d.Component);Fi.propTypes={};const zi=Fi;var Ui=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Bi=function(e){return u().createElement(Li.Consumer,null,(function(t){return u().createElement(zi,Ui({},t,e))}))};Bi.propTypes={};const qi=Bi;const $i=({children:e,title:t,description:s=null})=>{const r=(0,Vt.sprintf)(/* translators: 1: Settings' section title, 2: Yoast SEO */ -(0,Vt.__)("%1$s Dashboard - %2$s","wordpress-seo"),t,"Yoast SEO");return(0,Zt.jsxs)(Mi,{children:[(0,Zt.jsx)(qi,{message:r,"aria-live":"polite"}),(0,Zt.jsx)(Hs.Helmet,{children:(0,Zt.jsx)("title",{children:"Dashboard"})}),(0,Zt.jsx)("header",{className:"yst-p-8 yst-border-b yst-border-slate-200",children:(0,Zt.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,Zt.jsx)(l.Title,{children:t}),s&&(0,Zt.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:s})]})}),e]})};var Hi,Vi;function Wi(){return Wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Wi.apply(this,arguments)}$i.propTypes={children:Yt().node.isRequired,title:Yt().string.isRequired,description:Yt().node};const Gi=e=>d.createElement("svg",Wi({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),Hi||(Hi=d.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),Vi||(Vi=d.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"}))),Ki=()=>{const{handleDismiss:e}=(0,l.useToastContext)(),t=(0,l.useSvgAria)(),s=qo("selectAdminLink",[],"?page=wpseo_page_settings#/llms-txt"),r=(0,o.useCallback)((async()=>{var t;e(),null===(t=sessionStorage)||void 0===t||t.setItem("yoast-highlight-setting","llm-txt"),window.location.href=s}),[s]);return(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-3 yst-justify-end yst-mt-3",children:[(0,Zt.jsx)(l.Button,{size:"small",variant:"tertiary",onClick:e,children:(0,Vt.__)("Dismiss","wordpress-seo")}),(0,Zt.jsxs)(l.Button,{size:"small",className:"yst-gap-1",onClick:r,children:[(0,Vt.__)("Show me","wordpress-seo"),(0,Zt.jsx)(is,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180",...t})]})]})},Yi=()=>{const{setOptInNotificationSeen:e,hideOptInNotification:t}=(0,r.useDispatch)(zo),s=(0,l.useSvgAria)(),[n,a,i]=(0,l.useToggleState)(!1);return(0,o.useEffect)((()=>(e("wpseo_seen_llm_txt_opt_in_notification"),a(),()=>{t("wpseo_seen_llm_txt_opt_in_notification")})),[]),(0,Zt.jsx)(l.Toast,{id:"wpseo_seen_llm_txt_opt_in_notification",isVisible:n,className:"yst-w-96",position:"bottom-left",setIsVisible:i,onDismiss:t,children:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-3",children:[(0,Zt.jsx)("div",{className:"yst-flex-shrink-0",children:(0,Zt.jsx)(Gi,{className:"yst-w-5 yst-h-5 yst-fill-primary-500",...s})}),(0,Zt.jsxs)("div",{className:"yst-flex-1",children:[(0,Zt.jsx)(l.Toast.Title,{title:(0,Vt.__)("New: Prepare your site for AI-driven discovery!","wordpress-seo"),className:"yst-mb-1"}),(0,Zt.jsx)("p",{children:(0,Vt.__)("Automatically generate an llms.txt file that highlights key content for AI systems.","wordpress-seo")})]}),(0,Zt.jsx)("div",{children:(0,Zt.jsx)(l.Toast.Close,{dismissScreenReaderLabel:(0,Vt.__)("Dismiss","wordpress-seo")})})]}),(0,Zt.jsx)(Ki,{})]})})},Zi=((0,Vt.__)("E.g. https://www.facebook.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.instagram.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.linkedin.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.myspace.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.pinterest.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.soundcloud.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.tumblr.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.twitter.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.youtube.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.wikipedia.com/yoast","wordpress-seo"),e=>`error-${e}`),Ji=(e,{isVisible:t})=>t?{"aria-invalid":!0,"aria-describedby":Zi(e)}:{};function Qi({active:e,selected:t}){return Ps()("yst-relative yst-cursor-default yst-select-none yst-py-2 yst-ps-3 yst-pe-9 yst-my-0",t&&"yst-bg-primary-500 yst-text-white",e&&!t&&"yst-bg-primary-200 yst-text-slate-700",!e&&!t&&"yst-text-slate-700")}function Xi(e,t){const s=function(e,t){return e.includes(t)?[...e]:[...e,t]}(e.editedSteps,t);return{...e,editedSteps:s}}function el(e,t){let s=(0,c.cloneDeep)(e);switch(t.type){case"SET_COMPANY_OR_PERSON":return s=Xi(s,2),s.companyOrPerson=t.payload,s.companyOrPersonLabel=s.companyOrPersonOptions.filter((e=>e.value===t.payload)).pop().label,s;case"CHANGE_COMPANY_NAME":return s=Xi(s,2),s.companyName=t.payload,s;case"SET_COMPANY_LOGO":return s=Xi(s,2),s.companyLogo=t.payload.url,s.companyLogoId=t.payload.id,s;case"REMOVE_COMPANY_LOGO":return s=Xi(s,2),s.companyLogo="",s.companyLogoId="",s;case"CHANGE_WEBSITE_NAME":return s=Xi(s,2),s.websiteName=t.payload,s;case"SET_PERSON_LOGO":return s=Xi(s,2),s.personLogo=t.payload.url,s.personLogoId=t.payload.id,s;case"REMOVE_PERSON_LOGO":return s=Xi(s,2),s.personLogo="",s.personLogoId="",s;case"SET_PERSON":return s=Xi(s,2),s.personId=t.payload.value,s.personName=t.payload.label,s;case"SET_CAN_EDIT_USER":return s=Xi(s,2),s.canEditUser=!0===t.payload?1:0,s;case"CHANGE_SOCIAL_PROFILE":return s=Xi(s,3),s.socialProfiles[t.payload.socialMedium]=t.payload.value,s.errorFields=s.errorFields.filter((e=>"facebookUrl"===t.payload.socialMedium?"facebook_site"!==e:"twitterUsername"!==t.payload.socialMedium||"twitter_site"!==e)),s;case"CHANGE_OTHERS_SOCIAL_PROFILE":return s=Xi(s,3),s.socialProfiles.otherSocialUrls[t.payload.index]=t.payload.value,s.errorFields=s.errorFields.filter((e=>e!==`other_social_urls-${t.payload.index}`)),s;case"ADD_OTHERS_SOCIAL_PROFILE":return s=Xi(s,3),s.socialProfiles.otherSocialUrls=[...s.socialProfiles.otherSocialUrls,t.payload.value],s;case"REMOVE_OTHERS_SOCIAL_PROFILE":return s=Xi(s,3),s.socialProfiles.otherSocialUrls.splice(t.payload.index,1),s.errorFields=(r=s.errorFields,n=t.payload.index,r.map((e=>{const t=parseInt(e.replace("other_social_urls-",""),10);return t===n?"remove":t>n?"other_social_urls-"+(t-1):e})).filter((e=>"remove"!==e))),s;case"SET_ERROR_FIELDS":return s.errorFields=t.payload,s;case"SET_STEP_ERROR":return s.stepErrors[t.payload.step]=t.payload.message,s;case"REMOVE_STEP_ERROR":return s.stepErrors=(0,c.pickBy)(s.stepErrors,((e,s)=>s!==t.payload)),s;case"SET_TRACKING":return s=Xi(s,4),s.tracking=t.payload,s;default:return s}var r,n}const tl=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"}))})),sl=({items:e,onAddProfile:t,onRemoveProfile:s,onChangeProfile:r,errorFields:n=[],fieldType:a,addButtonChildren:i=(0,Vt.__)("Add another profile","wordpress-seo")})=>{const c=(0,o.useCallback)((e=>{s(parseInt(e.currentTarget.dataset.index,10))}),[s]);return(0,Zt.jsxs)("div",{children:[e.map(((e,t)=>(0,Zt.jsx)("div",{children:(0,Zt.jsxs)("div",{className:"yst-w-full yst-flex yst-items-start yst-mt-4",children:[(0,Zt.jsx)(a,{className:"yst-grow",label:(0,Vt.__)("Other social profile","wordpress-seo"),id:`social-input-other-url-${t}`,value:e,socialMedium:"other",index:t,onChange:r,placeholder:(0,Vt.__)("E.g. https://social-platform.com/yoast","wordpress-seo"),feedback:{type:"error",isVisible:n.includes("other_social_urls-"+t),message:[(0,Vt.__)("Could not save this value. Please check the URL.","wordpress-seo")]}}),(0,Zt.jsxs)("button",{type:"button",className:"yst-mt-[27.5px] yst-ml-2 yst-p-3 yst-text-slate-500 yst-rounded-md hover:yst-text-primary-500 focus:yst-text-primary-500 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-primary-500 yst-no-underline;",id:`remove-profile-${t}`,"data-index":t,onClick:c,children:[(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,Vt.__)("Delete item","wordpress-seo")}),(0,Zt.jsx)(Bn,{className:"yst-w-5 yst-h-5"})]})]})},`url-${t}`))),(0,Zt.jsxs)(l.Button,{id:"add-profile",variant:"secondary",className:"yst-items-center yst-mt-8",onClick:t,"data-hiive-event-name":"clicked_add_profile",children:[(0,Zt.jsx)(tl,{className:"yst-w-5 yst-h-5 yst-me-1 yst-text-slate-400"}),i]})]})};sl.propTypes={fieldType:Yt().elementType.isRequired,items:Yt().array.isRequired,onAddProfile:Yt().func.isRequired,onRemoveProfile:Yt().func.isRequired,onChangeProfile:Yt().func.isRequired,errorFields:Yt().array,addButtonChildren:Yt().node};const rl=sl,nl=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),al=({texts:e,id:t,as:s="p",...r})=>{const n=(0,o.useMemo)((()=>(0,c.last)(e)),[e]);return(0,Zt.jsx)(s,{id:t,...r,children:e.map(((e,s)=>(0,Zt.jsxs)(o.Fragment,{children:[e,n!==e&&(0,Zt.jsx)("br",{})]},`${t}-text-${s}`)))})};al.propTypes={texts:Yt().arrayOf(Yt().string).isRequired,id:Yt().string.isRequired,as:Yt().oneOfType([Yt().string,Yt().elementType])};const ol=al;function il({hasError:e=!1,hasSuccess:t=!1}){return e?(0,Zt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-3",children:(0,Zt.jsx)(nl,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"})}):t?(0,Zt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-3",children:(0,Zt.jsx)(Ls,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-emerald-600"})}):null}function ll({className:e="",id:t,label:s="",description:r=null,value:n="",onChange:a,placeholder:i="",feedback:l={message:[],isVisible:!1},type:c="text",...d}){const u=c||"text",p=(0,o.useMemo)((()=>l.isVisible&&"error"===l.type),[l.isVisible,l.type]),m=(0,o.useMemo)((()=>l.isVisible&&"success"===l.type),[l.isVisible,l.type]);return(0,Zt.jsxs)("div",{className:e,children:[s&&(0,Zt.jsx)("label",{className:"yst-block yst-mb-2 yst-font-medium yst-text-slate-800",htmlFor:t,children:s}),(0,Zt.jsxs)("div",{className:"yst-relative",children:[(0,Zt.jsx)("input",{id:t,type:u,value:n,className:Ps()("yst-block yst-w-full yst-h-[40px] yst-input focus:yst-ring-1",{"yst-border-red-300 yst-text-red-900 focus:yst-ring-red-500 focus:yst-border-red-500":p,"yst-border-emerald-600 yst-text-slate-700 focus:yst-ring-emerald-600 focus:yst-border-emerald-600":m,"yst-text-slate-700 yst-border-slate-300 focus:yst-ring-primary-500 focus:yst-border-primary-500":!p&&!m}),onChange:a,placeholder:i,...Ji(t,l),...d}),(0,Zt.jsx)(il,{hasError:p,hasSuccess:m})]}),l.isVisible&&(0,Zt.jsx)(ol,{id:`${p?"error-":"success-"}${t}`,className:Ps()("yst-mt-2 yst-text-sm",{"yst-text-red-600":p,"yst-text-emerald-600":m}),texts:l.message}),r]})}function cl({id:e,onChange:t,socialMedium:s="",isDisabled:r=!1,...n}){const a=(0,o.useCallback)((e=>{t(e.target.value,"other"===s?n.index:s)}),[s,n.index]);return(0,Zt.jsx)(ll,{onChange:a,disabled:r,id:e,...n})}function dl({socialProfiles:e,errorFields:t=[],dispatch:s}){const r=(0,o.useCallback)(((e,t)=>{s({type:"CHANGE_SOCIAL_PROFILE",payload:{socialMedium:t,value:e}})}),[]),n=(0,o.useCallback)(((e,t)=>{s({type:"CHANGE_OTHERS_SOCIAL_PROFILE",payload:{index:t,value:e}})}),[]),a=(0,o.useCallback)((()=>{s({type:"ADD_OTHERS_SOCIAL_PROFILE",payload:{value:""}})}),[]),i=(0,o.useCallback)((e=>{s({type:"REMOVE_OTHERS_SOCIAL_PROFILE",payload:{index:e}})}),[]);return(0,Zt.jsx)(ul,{socialProfiles:e,onChangeHandler:r,onChangeOthersHandler:n,onAddProfileHandler:a,onRemoveProfileHandler:i,errorFields:t})}function ul({socialProfiles:e,onChangeHandler:t,onChangeOthersHandler:s,onAddProfileHandler:r,onRemoveProfileHandler:n,errorFields:a}){return(0,Zt.jsxs)("div",{id:"social-input-section",children:[(0,Zt.jsx)(cl,{className:"yst-mt-4",label:(0,Vt.__)("Facebook","wordpress-seo"),id:"social-input-facebook-url",value:e.facebookUrl,socialMedium:"facebookUrl",onChange:t,placeholder:(0,Vt.__)("E.g. https://facebook.com/yoast","wordpress-seo"),feedback:{message:[(0,Vt.__)("Could not save this value. Please check the URL.","wordpress-seo")],isVisible:a.includes("facebook_site"),type:"error"}}),(0,Zt.jsx)(cl,{className:"yst-mt-4",label:(0,Vt.__)("X","wordpress-seo"),id:"social-input-twitter-url",value:e.twitterUsername,socialMedium:"twitterUsername",onChange:t,placeholder:(0,Vt.__)("E.g. https://x.com/yoast","wordpress-seo"),feedback:{message:[(0,Vt.__)("Could not save this value. Please check the URL or username.","wordpress-seo")],isVisible:a.includes("twitter_site"),type:"error"}}),(0,Zt.jsx)(rl,{items:e.otherSocialUrls,onAddProfile:r,onRemoveProfile:n,onChangeProfile:s,errorFields:a,fieldType:cl})]})}il.propTypes={hasError:Kt.PropTypes.bool,hasSuccess:Kt.PropTypes.bool},ll.propTypes={className:Kt.PropTypes.string,id:Kt.PropTypes.string.isRequired,label:Kt.PropTypes.string,description:Kt.PropTypes.node,value:Kt.PropTypes.string,onChange:Kt.PropTypes.func.isRequired,placeholder:Kt.PropTypes.string,feedback:Kt.PropTypes.shape({type:Kt.PropTypes.string,message:Kt.PropTypes.array,isVisible:Kt.PropTypes.bool}),type:Kt.PropTypes.string},cl.propTypes={id:Yt().string.isRequired,onChange:Yt().func.isRequired,socialMedium:Yt().string,isDisabled:Yt().bool},dl.propTypes={socialProfiles:Yt().object.isRequired,dispatch:Yt().func.isRequired,errorFields:Yt().array},ul.propTypes={socialProfiles:Yt().object.isRequired,onChangeHandler:Yt().func.isRequired,onChangeOthersHandler:Yt().func.isRequired,onAddProfileHandler:Yt().func.isRequired,onRemoveProfileHandler:Yt().func.isRequired,errorFields:Yt().array.isRequired};const pl=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"}))})),ml=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),hl=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))}));var fl=s(8133);function yl({type:e="info",children:t,className:s=""}){let r,n;switch(e){case"info":r=(0,Zt.jsx)(pl,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-blue-500"}),n="yst-bg-blue-100 yst-text-blue-800";break;case"warning":r=(0,Zt.jsx)(ml,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-yellow-500"}),n="yst-bg-yellow-100 yst-text-yellow-800";break;case"error":r=(0,Zt.jsx)(hl,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-red-500"}),n="yst-bg-red-100 yst-text-red-800";break;case"success":r=(0,Zt.jsx)(Ls,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-emerald-600"}),n="yst-bg-green-100 yst-text-green-800"}return(0,Zt.jsxs)("div",{className:Ps()("yst-flex yst-p-4 yst-rounded-md",n,s),children:[r,(0,Zt.jsx)("div",{className:"yst-flex-1 yst-ms-3 yst-text-sm",children:t})]})}function gl({id:e,isVisible:t,expandDuration:s=400,type:r="info",children:n,className:a=""}){const[i,l]=(0,o.useState)(t?"yst-opacity-100":"yst-opacity-0"),c=(0,o.useCallback)((()=>{l("yst-opacity-100")}),[]);return(0,Zt.jsx)(fl.Z,{id:e,height:t?"auto":0,easing:"linear",duration:s,onAnimationEnd:c,children:(0,Zt.jsx)(yl,{type:r,className:Ps()("yst-transition-opacity yst-duration-300 yst-mt-4",i,a),children:n})})}function vl({state:e,dispatch:t,setErrorFields:s}){const r=(0,Vt.__)("If you select a Person to represent this site, we will use the social profiles from the selected user's profile page.","wordpress-seo"),n=Wt((0,Vt.sprintf)( +(0,Vt.__)("Yoast respects your privacy. Read %1$sour privacy policy%2$s on how we handle your personal information.","wordpress-seo"),"<a>","</a>"),{a:(0,Zt.jsx)("a",{href:(0,r.select)(To).selectLink("https://yoa.st/gdpr-config-workout"),target:"_blank",rel:"noopener"})})})]})};Do.propTypes={id:Yt().string.isRequired,dismissed:Yt().bool.isRequired,message:Yt().string.isRequired,resolveNonce:Yt().string.isRequired};const Fo=({dismissed:e,message:t})=>(0,Zt.jsx)("div",{className:Ss()("yst-text-sm yst-text-slate-600 yst-grow",e&&"yst-opacity-50"),dangerouslySetInnerHTML:{__html:t}});Fo.propTypes={dismissed:Yt().bool.isRequired,message:Yt().string.isRequired};const zo=({id:e,dismissed:t,message:s,resolveNonce:r})=>"wpseo-ping-other-admins"===e?(0,Zt.jsx)(Do,{id:e,dismissed:t,message:s,resolveNonce:r}):(0,Zt.jsx)(Fo,{dismissed:t,message:s});zo.propTypes={id:Yt().string.isRequired,dismissed:Yt().bool.isRequired,message:Yt().string.isRequired,resolveNonce:Yt().string.isRequired};const Uo=({id:e="",nonce:t="",dismissed:s=!1,message:n="",resolveNonce:a=""})=>{const{bulletClass:i=""}=(0,o.useContext)(Lo),{toggleAlertStatus:c}=(0,r.useDispatch)(To),d=s?Po:Oo,u=(0,o.useCallback)((async()=>{c(e,t,s)}),[e,t,s,c]);return(0,Zt.jsxs)("li",{className:"yst-flex yst-justify-between yst-gap-x-5 yst-border-b yst-border-slate-200 last:yst-border-b-0 yst-py-6 first:yst-pt-0 last:yst-pb-0",children:[(0,Zt.jsx)("div",{className:Ss()("yst-mt-1",s&&"yst-opacity-50"),children:(0,Zt.jsx)("svg",{width:"11",height:"11",className:i,children:(0,Zt.jsx)("circle",{cx:"5.5",cy:"5.5",r:"5.5"})})}),(0,Zt.jsx)(zo,{id:e,dismissed:s,message:n,resolveNonce:a}),(0,Zt.jsx)(l.Button,{variant:"secondary",size:"small",className:"yst-self-center yst-h-8",onClick:u,children:(0,Zt.jsx)(d,{className:"yst-w-4 yst-h-4 yst-text-neutral-700"})})]},e)};Uo.propTypes={id:Yt().string,nonce:Yt().string,dismissed:Yt().bool,message:Yt().string,resolveNonce:Yt().string};const Bo=({className:e="",items:t=[]})=>0===t.length?null:(0,Zt.jsx)("ul",{className:e,children:t.map((e=>(0,Zt.jsx)(Uo,{id:e.id,nonce:e.nonce,dismissed:e.dismissed,message:e.message,resolveNonce:e.resolveNonce||""},e.id)))});Bo.propTypes={className:Yt().string,items:Yt().arrayOf(Yt().shape({message:Yt().string,id:Yt().string,nonce:Yt().string,dismissed:Yt().bool,resolveNonce:Yt().string}))};const qo=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))})),$o=({title:e,counts:t=0,children:s=null})=>{const{Icon:r=qo,iconClass:n=""}=(0,o.useContext)(Lo);return(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-justify-between yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(r,{className:Ss()("yst-w-6 yst-h-6",n)}),(0,Zt.jsxs)(l.Title,{className:"yst-grow",as:"h2",size:"2",children:[e," ",`(${t})`]})]}),s]})};var Ho;$o.propTypes={title:Yt().string.isRequired,counts:Yt().number,children:Yt().node};let Vo=null!=(Ho=d.useId)?Ho:function(){let e=to(),[t,s]=d.useState(e?()=>Ja.nextId():null);return Qa((()=>{null===t&&s(Ja.nextId())}),[t]),null!=t?""+t:void 0};var Wo=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Wo||{});function Go(e){let t=e.parentElement,s=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(s=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(s))&&r}function Ko(e){var t;if(e.type)return e.type;let s=null!=(t=e.as)?t:"button";return"string"==typeof s&&"button"===s.toLowerCase()?"button":void 0}function Yo(e,t){let[s,r]=(0,d.useState)((()=>Ko(e)));return Qa((()=>{r(Ko(e))}),[e.type,e.as]),Qa((()=>{s||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[s,t]),s}function Zo(e){return Ja.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}var Jo,Qo=((Jo=Qo||{})[Jo.Open=0]="Open",Jo[Jo.Closed=1]="Closed",Jo),Xo=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.LinkPanel=4]="LinkPanel",e[e.UnlinkPanel=5]="UnlinkPanel",e))(Xo||{});let ei={0:e=>({...e,disclosureState:Ma(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},ti=(0,d.createContext)(null);function si(e){let t=(0,d.useContext)(ti);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,si),t}return t}ti.displayName="DisclosureContext";let ri=(0,d.createContext)(null);function ni(e){let t=(0,d.useContext)(ri);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ni),t}return t}ri.displayName="DisclosureAPIContext";let ai=(0,d.createContext)(null);function oi(e,t){return Ma(t.type,ei,e,t)}ai.displayName="DisclosurePanelContext";let ii=d.Fragment,li=qa((function(e,t){let{defaultOpen:s=!1,...r}=e,n=(0,d.useRef)(null),a=ao(t,no((e=>{n.current=e}),void 0===e.as||e.as===d.Fragment)),o=(0,d.useRef)(null),i=(0,d.useRef)(null),l=(0,d.useReducer)(oi,{disclosureState:s?0:1,linkedPanel:!1,buttonRef:i,panelRef:o,buttonId:null,panelId:null}),[{disclosureState:c,buttonId:u},p]=l,m=so((e=>{p({type:1});let t=Zo(n);if(!t||!u)return;let s=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(u):t.getElementById(u);null==s||s.focus()})),h=(0,d.useMemo)((()=>({close:m})),[m]),f=(0,d.useMemo)((()=>({open:0===c,close:m})),[c,m]),y={ref:a};return d.createElement(ti.Provider,{value:l},d.createElement(ri.Provider,{value:h},d.createElement(Ka,{value:Ma(c,{0:Wa.Open,1:Wa.Closed})},za({ourProps:y,theirProps:r,slot:f,defaultTag:ii,name:"Disclosure"}))))})),ci=qa((function(e,t){let s=Vo(),{id:r=`headlessui-disclosure-button-${s}`,...n}=e,[a,o]=si("Disclosure.Button"),i=(0,d.useContext)(ai),l=null!==i&&i===a.panelId,c=(0,d.useRef)(null),u=ao(c,t,l?null:a.buttonRef);(0,d.useEffect)((()=>{if(!l)return o({type:2,buttonId:r}),()=>{o({type:2,buttonId:null})}}),[r,o,l]);let p=so((e=>{var t;if(l){if(1===a.disclosureState)return;switch(e.key){case Wo.Space:case Wo.Enter:e.preventDefault(),e.stopPropagation(),o({type:0}),null==(t=a.buttonRef.current)||t.focus()}}else switch(e.key){case Wo.Space:case Wo.Enter:e.preventDefault(),e.stopPropagation(),o({type:0})}})),m=so((e=>{e.key===Wo.Space&&e.preventDefault()})),h=so((t=>{var s;Go(t.currentTarget)||e.disabled||(l?(o({type:0}),null==(s=a.buttonRef.current)||s.focus()):o({type:0}))})),f=(0,d.useMemo)((()=>({open:0===a.disclosureState})),[a]),y=Yo(e,c);return za({ourProps:l?{ref:u,type:y,onKeyDown:p,onClick:h}:{ref:u,id:r,type:y,"aria-expanded":e.disabled?void 0:0===a.disclosureState,"aria-controls":a.linkedPanel?a.panelId:void 0,onKeyDown:p,onKeyUp:m,onClick:h},theirProps:n,slot:f,defaultTag:"button",name:"Disclosure.Button"})})),di=Da.RenderStrategy|Da.Static,ui=qa((function(e,t){let s=Vo(),{id:r=`headlessui-disclosure-panel-${s}`,...n}=e,[a,o]=si("Disclosure.Panel"),{close:i}=ni("Disclosure.Panel"),l=ao(t,a.panelRef,(e=>{o({type:e?4:5})}));(0,d.useEffect)((()=>(o({type:3,panelId:r}),()=>{o({type:3,panelId:null})})),[r,o]);let c=Ga(),u=null!==c?c===Wa.Open:0===a.disclosureState,p=(0,d.useMemo)((()=>({open:0===a.disclosureState,close:i})),[a,i]),m={ref:l,id:r};return d.createElement(ai.Provider,{value:a.panelId},za({ourProps:m,theirProps:n,slot:p,defaultTag:"div",features:di,visible:u,name:"Disclosure.Panel"}))})),pi=Object.assign(li,{Button:ci,Panel:ui});const mi=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"}))})),hi=({label:e,children:t})=>(0,Zt.jsx)(pi,{children:({open:s})=>(0,Zt.jsxs)("div",{className:"yst-shadow-sm yst-border-slate-300 yst-rounded-md yst-border",children:[(0,Zt.jsxs)(pi.Button,{className:"yst-w-full yst-flex yst-justify-between yst-py-4 yst-pe-4 yst-ps-6 yst-items-center",children:[(0,Zt.jsx)("div",{className:"yst-font-medium",children:e}),(0,Zt.jsx)(mi,{className:Ss()("yst-h-5 yst-w-5 flex-shrink-0 yst-text-slate-400",s?"yst-rotate-180":"")})]}),(0,Zt.jsx)(pi.Panel,{className:"yst-px-6",children:t})]})});function fi({title:e,id:t,isDismissable:s,children:n,className:a=""}){const i=(0,l.useSvgAria)(),{dismissNotice:c}=(0,r.useDispatch)(To),d=(0,o.useCallback)((()=>{setTimeout((()=>{c(t)}),0)}),[c,t]);return(0,Zt.jsxs)("div",{id:t,className:Ss()("yst-p-3 yst-rounded-md yoast-general-page-notice",a),children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-row yst-items-center yst-min-h-[24px]",children:[(0,Zt.jsx)("span",{className:"yoast-icon"}),e&&(0,Zt.jsx)("div",{className:"yst-text-sm yst-font-medium",dangerouslySetInnerHTML:{__html:e}}),s&&(0,Zt.jsx)("div",{className:"yst-relative yst-ms-auto",children:(0,Zt.jsxs)("button",{type:"button",className:"notice-dismiss",onClick:d,children:[(0,Zt.jsx)("span",{className:"yst-sr-only",children:(0,Vt.__)("Close","wordpress-seo")}),(0,Zt.jsx)(Tn,{className:"yst-h-5 yst-w-5",...i})]})})]}),n&&(0,Zt.jsx)("div",{className:"yst-flex-1 yst-text-sm yst-max-w-[600px] yst-ps-[29px]",dangerouslySetInnerHTML:{__html:n}})]})}hi.propTypes={label:Yt().string.isRequired,children:Yt().node.isRequired},fi.propTypes={title:Yt().string.isRequired,id:Yt().string.isRequired,isDismissable:Yt().bool.isRequired,children:Yt().string.isRequired,className:Yt().string};const yi=()=>{const e=(0,r.useSelect)((e=>e(To).selectActiveNotifications()),[]),t=(0,r.useSelect)((e=>e(To).selectDismissedNotifications()),[]),s=(0,r.useSelect)((e=>e(To).selectResolveSuccessMessage()),[]),n=t.length,a=(0,Vt._n)("hidden notification","hidden notifications",n,"wordpress-seo"),o={Icon:Ro,bulletClass:"yst-fill-blue-500",iconClass:"yst-text-blue-500"};return(0,Zt.jsx)(l.Paper,{children:(0,Zt.jsx)(l.Paper.Content,{className:"yst-max-w-[600px] yst-flex yst-flex-col yst-gap-y-6",children:(0,Zt.jsxs)(Lo.Provider,{value:{...o},children:[(0,Zt.jsxs)($o,{counts:e.length,title:(0,Vt.__)("Notifications","wordpress-seo"),children:[s&&(0,Zt.jsx)(l.Alert,{variant:"success",className:"yst-mt-6",children:s}),0===e.length&&(0,Zt.jsx)("p",{className:"yst-mt-2 yst-text-sm",children:(0,Vt.__)("No new notifications.","wordpress-seo")})]}),(0,Zt.jsx)(Bo,{items:e}),n>0&&(0,Zt.jsx)(hi,{label:`${n} ${a}`,children:(0,Zt.jsx)(Bo,{className:"yst-pb-6",items:t})})]})})})},gi=()=>{const e=(0,r.useSelect)((e=>e(To).selectActiveProblems()),[]),t=(0,r.useSelect)((e=>e(To).selectDismissedProblems()),[]),s=t.length,n=(0,Vt._n)("hidden problem","hidden problems",s,"wordpress-seo"),a={Icon:qo,bulletClass:"yst-fill-red-500",iconClass:"yst-text-red-500"};return(0,Zt.jsx)(l.Paper,{children:(0,Zt.jsx)(l.Paper.Content,{className:"yst-max-w-[600px] yst-flex yst-flex-col yst-gap-y-6",children:(0,Zt.jsxs)(Lo.Provider,{value:{...a},children:[(0,Zt.jsx)($o,{title:(0,Vt.__)("Problems","wordpress-seo"),counts:e.length,children:(0,Zt.jsx)("p",{className:"yst-mt-2 yst-text-sm",children:e.length>0?(0,Vt.__)("We have detected the following issues that affect the SEO of your site.","wordpress-seo"):(0,Vt.__)("Good job! We could detect no serious SEO problems.","wordpress-seo")})}),(0,Zt.jsx)(Bo,{items:e}),s>0&&(0,Zt.jsx)(hi,{label:`${s} ${n}`,children:(0,Zt.jsx)(Bo,{className:"yst-pb-6",items:t})})]})})})},vi=({className:e=""})=>{const t=(0,o.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),s=Ao("selectLink",[],"https://yoa.st/general-error-support"),r=vt();return(0,Zt.jsx)(l.Paper,{className:e,children:(0,Zt.jsx)(ss,{error:r,children:(0,Zt.jsx)(ss.HorizontalButtons,{handleRefreshClick:t,supportLink:s})})})};vi.propTypes={className:Yt().string};var bi={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},xi=function(e){var t=e.message,s=e["aria-live"];return u().createElement("div",{style:bi,role:"log","aria-live":s},t||"")};xi.propTypes={};const wi=xi;function Si(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var _i=function(e){function t(){var s,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,a=Array(n),o=0;o<n;o++)a[o]=arguments[o];return s=r=Si(this,e.call.apply(e,[this].concat(a))),r.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},Si(r,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.getDerivedStateFromProps=function(e,t){var s=t.oldPolitemessage,r=t.oldPoliteMessageId,n=t.oldAssertiveMessage,a=t.oldAssertiveMessageId,o=e.politeMessage,i=e.politeMessageId,l=e.assertiveMessage,c=e.assertiveMessageId;return s!==o||r!==i?{politeMessage1:t.setAlternatePolite?"":o,politeMessage2:t.setAlternatePolite?o:"",oldPolitemessage:o,oldPoliteMessageId:i,setAlternatePolite:!t.setAlternatePolite}:n!==l||a!==c?{assertiveMessage1:t.setAlternateAssertive?"":l,assertiveMessage2:t.setAlternateAssertive?l:"",oldAssertiveMessage:l,oldAssertiveMessageId:c,setAlternateAssertive:!t.setAlternateAssertive}:null},t.prototype.render=function(){var e=this.state,t=e.assertiveMessage1,s=e.assertiveMessage2,r=e.politeMessage1,n=e.politeMessage2;return u().createElement("div",null,u().createElement(wi,{"aria-live":"assertive",message:t}),u().createElement(wi,{"aria-live":"assertive",message:s}),u().createElement(wi,{"aria-live":"polite",message:r}),u().createElement(wi,{"aria-live":"polite",message:n}))},t}(d.Component);_i.propTypes={};const Ei=_i;function ji(){console.warn("Announcement failed, LiveAnnouncer context is missing")}const ki=u().createContext({announceAssertive:ji,announcePolite:ji}),Ci=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.announcePolite=function(e,t){r.setState({announcePoliteMessage:e,politeMessageId:t||""})},r.announceAssertive=function(e,t){r.setState({announceAssertiveMessage:e,assertiveMessageId:t||""})},r.state={announcePoliteMessage:"",politeMessageId:"",announceAssertiveMessage:"",assertiveMessageId:"",updateFunctions:{announcePolite:r.announcePolite,announceAssertive:r.announceAssertive}},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.state,t=e.announcePoliteMessage,s=e.politeMessageId,r=e.announceAssertiveMessage,n=e.assertiveMessageId,a=e.updateFunctions;return u().createElement(ki.Provider,{value:a},this.props.children,u().createElement(Ei,{assertiveMessage:r,assertiveMessageId:n,politeMessage:t,politeMessageId:s}))},t}(d.Component);var Ri=s(3409),Ni=s.n(Ri);function Pi(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Oi=function(e){function t(){var s,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,a=Array(n),o=0;o<n;o++)a[o]=arguments[o];return s=r=Pi(this,e.call.apply(e,[this].concat(a))),r.announce=function(){var e=r.props,t=e.message,s=e["aria-live"],n=e.announceAssertive,a=e.announcePolite;"assertive"===s&&n(t||"",Ni()()),"polite"===s&&a(t||"",Ni()())},Pi(r,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.announce()},t.prototype.componentDidUpdate=function(e){this.props.message!==e.message&&this.announce()},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.clearOnUnmount,s=e.announceAssertive,r=e.announcePolite;!0!==t&&"true"!==t||(s(""),r(""))},t.prototype.render=function(){return null},t}(d.Component);Oi.propTypes={};const Ti=Oi;var Li=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Mi=function(e){return u().createElement(ki.Consumer,null,(function(t){return u().createElement(Ti,Li({},t,e))}))};Mi.propTypes={};const Ai=Mi;const Ii=({children:e,title:t,description:s=null})=>{const r=(0,Vt.sprintf)(/* translators: 1: Settings' section title, 2: Yoast SEO */ +(0,Vt.__)("%1$s Dashboard - %2$s","wordpress-seo"),t,"Yoast SEO");return(0,Zt.jsxs)(Ci,{children:[(0,Zt.jsx)(Ai,{message:r,"aria-live":"polite"}),(0,Zt.jsx)(As.Helmet,{children:(0,Zt.jsx)("title",{children:"Dashboard"})}),(0,Zt.jsx)("header",{className:"yst-p-8 yst-border-b yst-border-slate-200",children:(0,Zt.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,Zt.jsx)(l.Title,{children:t}),s&&(0,Zt.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:s})]})}),e]})};var Di,Fi;function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},zi.apply(this,arguments)}Ii.propTypes={children:Yt().node.isRequired,title:Yt().string.isRequired,description:Yt().node};const Ui=e=>d.createElement("svg",zi({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),Di||(Di=d.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),Fi||(Fi=d.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"}))),Bi=()=>{const{handleDismiss:e}=(0,l.useToastContext)(),t=(0,l.useSvgAria)(),s=Ao("selectAdminLink",[],"?page=wpseo_page_settings#/llms-txt"),r=(0,o.useCallback)((async()=>{var t;e(),null===(t=sessionStorage)||void 0===t||t.setItem("yoast-highlight-setting","llm-txt"),window.location.href=s}),[s]);return(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-3 yst-justify-end yst-mt-3",children:[(0,Zt.jsx)(l.Button,{size:"small",variant:"tertiary",onClick:e,children:(0,Vt.__)("Dismiss","wordpress-seo")}),(0,Zt.jsxs)(l.Button,{size:"small",className:"yst-gap-1",onClick:r,children:[(0,Vt.__)("Show me","wordpress-seo"),(0,Zt.jsx)(Es,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180",...t})]})]})},qi=()=>{const{setOptInNotificationSeen:e,hideOptInNotification:t}=(0,r.useDispatch)(To),s=(0,l.useSvgAria)(),[n,a,i]=(0,l.useToggleState)(!1);return(0,o.useEffect)((()=>(e("wpseo_seen_llm_txt_opt_in_notification"),a(),()=>{t("wpseo_seen_llm_txt_opt_in_notification")})),[]),(0,Zt.jsx)(l.Toast,{id:"wpseo_seen_llm_txt_opt_in_notification",isVisible:n,className:"yst-w-96",position:"bottom-left",setIsVisible:i,onDismiss:t,children:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-3",children:[(0,Zt.jsx)("div",{className:"yst-flex-shrink-0",children:(0,Zt.jsx)(Ui,{className:"yst-w-5 yst-h-5 yst-fill-primary-500",...s})}),(0,Zt.jsxs)("div",{className:"yst-flex-1",children:[(0,Zt.jsx)(l.Toast.Title,{title:(0,Vt.__)("New: Prepare your site for AI-driven discovery!","wordpress-seo"),className:"yst-mb-1"}),(0,Zt.jsx)("p",{children:(0,Vt.__)("Automatically generate an llms.txt file that highlights key content for AI systems.","wordpress-seo")})]}),(0,Zt.jsx)("div",{children:(0,Zt.jsx)(l.Toast.Close,{dismissScreenReaderLabel:(0,Vt.__)("Dismiss","wordpress-seo")})})]}),(0,Zt.jsx)(Bi,{})]})})},$i=((0,Vt.__)("E.g. https://www.facebook.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.instagram.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.linkedin.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.myspace.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.pinterest.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.soundcloud.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.tumblr.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.twitter.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.youtube.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.wikipedia.com/yoast","wordpress-seo"),e=>`error-${e}`),Hi=(e,{isVisible:t})=>t?{"aria-invalid":!0,"aria-describedby":$i(e)}:{};function Vi({active:e,selected:t}){return Ss()("yst-relative yst-cursor-default yst-select-none yst-py-2 yst-ps-3 yst-pe-9 yst-my-0",t&&"yst-bg-primary-500 yst-text-white",e&&!t&&"yst-bg-primary-200 yst-text-slate-700",!e&&!t&&"yst-text-slate-700")}function Wi(e,t){const s=function(e,t){return e.includes(t)?[...e]:[...e,t]}(e.editedSteps,t);return{...e,editedSteps:s}}function Gi(e,t){let s=(0,c.cloneDeep)(e);switch(t.type){case"SET_COMPANY_OR_PERSON":return s=Wi(s,2),s.companyOrPerson=t.payload,s.companyOrPersonLabel=s.companyOrPersonOptions.filter((e=>e.value===t.payload)).pop().label,s;case"CHANGE_COMPANY_NAME":return s=Wi(s,2),s.companyName=t.payload,s;case"SET_COMPANY_LOGO":return s=Wi(s,2),s.companyLogo=t.payload.url,s.companyLogoId=t.payload.id,s;case"REMOVE_COMPANY_LOGO":return s=Wi(s,2),s.companyLogo="",s.companyLogoId="",s;case"CHANGE_WEBSITE_NAME":return s=Wi(s,2),s.websiteName=t.payload,s;case"SET_PERSON_LOGO":return s=Wi(s,2),s.personLogo=t.payload.url,s.personLogoId=t.payload.id,s;case"REMOVE_PERSON_LOGO":return s=Wi(s,2),s.personLogo="",s.personLogoId="",s;case"SET_PERSON":return s=Wi(s,2),s.personId=t.payload.value,s.personName=t.payload.label,s;case"SET_CAN_EDIT_USER":return s=Wi(s,2),s.canEditUser=!0===t.payload?1:0,s;case"CHANGE_SOCIAL_PROFILE":return s=Wi(s,3),s.socialProfiles[t.payload.socialMedium]=t.payload.value,s.errorFields=s.errorFields.filter((e=>"facebookUrl"===t.payload.socialMedium?"facebook_site"!==e:"twitterUsername"!==t.payload.socialMedium||"twitter_site"!==e)),s;case"CHANGE_OTHERS_SOCIAL_PROFILE":return s=Wi(s,3),s.socialProfiles.otherSocialUrls[t.payload.index]=t.payload.value,s.errorFields=s.errorFields.filter((e=>e!==`other_social_urls-${t.payload.index}`)),s;case"ADD_OTHERS_SOCIAL_PROFILE":return s=Wi(s,3),s.socialProfiles.otherSocialUrls=[...s.socialProfiles.otherSocialUrls,t.payload.value],s;case"REMOVE_OTHERS_SOCIAL_PROFILE":return s=Wi(s,3),s.socialProfiles.otherSocialUrls.splice(t.payload.index,1),s.errorFields=(r=s.errorFields,n=t.payload.index,r.map((e=>{const t=parseInt(e.replace("other_social_urls-",""),10);return t===n?"remove":t>n?"other_social_urls-"+(t-1):e})).filter((e=>"remove"!==e))),s;case"SET_ERROR_FIELDS":return s.errorFields=t.payload,s;case"SET_STEP_ERROR":return s.stepErrors[t.payload.step]=t.payload.message,s;case"REMOVE_STEP_ERROR":return s.stepErrors=(0,c.pickBy)(s.stepErrors,((e,s)=>s!==t.payload)),s;case"SET_TRACKING":return s=Wi(s,4),s.tracking=t.payload,s;default:return s}var r,n}const Ki=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"}))})),Yi=({items:e,onAddProfile:t,onRemoveProfile:s,onChangeProfile:r,errorFields:n=[],fieldType:a,addButtonChildren:i=(0,Vt.__)("Add another profile","wordpress-seo")})=>{const c=(0,o.useCallback)((e=>{s(parseInt(e.currentTarget.dataset.index,10))}),[s]);return(0,Zt.jsxs)("div",{children:[e.map(((e,t)=>(0,Zt.jsx)("div",{children:(0,Zt.jsxs)("div",{className:"yst-w-full yst-flex yst-items-start yst-mt-4",children:[(0,Zt.jsx)(a,{className:"yst-grow",label:(0,Vt.__)("Other social profile","wordpress-seo"),id:`social-input-other-url-${t}`,value:e,socialMedium:"other",index:t,onChange:r,placeholder:(0,Vt.__)("E.g. https://social-platform.com/yoast","wordpress-seo"),feedback:{type:"error",isVisible:n.includes("other_social_urls-"+t),message:[(0,Vt.__)("Could not save this value. Please check the URL.","wordpress-seo")]}}),(0,Zt.jsxs)("button",{type:"button",className:"yst-mt-[27.5px] yst-ml-2 yst-p-3 yst-text-slate-500 yst-rounded-md hover:yst-text-primary-500 focus:yst-text-primary-500 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-primary-500 yst-no-underline;",id:`remove-profile-${t}`,"data-index":t,onClick:c,children:[(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ +(0,Vt.__)("Delete item","wordpress-seo")}),(0,Zt.jsx)(Ln,{className:"yst-w-5 yst-h-5"})]})]})},`url-${t}`))),(0,Zt.jsxs)(l.Button,{id:"add-profile",variant:"secondary",className:"yst-items-center yst-mt-8",onClick:t,"data-hiive-event-name":"clicked_add_profile",children:[(0,Zt.jsx)(Ki,{className:"yst-w-5 yst-h-5 yst-me-1 yst-text-slate-400"}),i]})]})};Yi.propTypes={fieldType:Yt().elementType.isRequired,items:Yt().array.isRequired,onAddProfile:Yt().func.isRequired,onRemoveProfile:Yt().func.isRequired,onChangeProfile:Yt().func.isRequired,errorFields:Yt().array,addButtonChildren:Yt().node};const Zi=Yi,Ji=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),Qi=({texts:e,id:t,as:s="p",...r})=>{const n=(0,o.useMemo)((()=>(0,c.last)(e)),[e]);return(0,Zt.jsx)(s,{id:t,...r,children:e.map(((e,s)=>(0,Zt.jsxs)(o.Fragment,{children:[e,n!==e&&(0,Zt.jsx)("br",{})]},`${t}-text-${s}`)))})};Qi.propTypes={texts:Yt().arrayOf(Yt().string).isRequired,id:Yt().string.isRequired,as:Yt().oneOfType([Yt().string,Yt().elementType])};const Xi=Qi;function el({hasError:e=!1,hasSuccess:t=!1}){return e?(0,Zt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-3",children:(0,Zt.jsx)(Ji,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"})}):t?(0,Zt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-3",children:(0,Zt.jsx)(as,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-emerald-600"})}):null}function tl({className:e="",id:t,label:s="",description:r=null,value:n="",onChange:a,placeholder:i="",feedback:l={message:[],isVisible:!1},type:c="text",...d}){const u=c||"text",p=(0,o.useMemo)((()=>l.isVisible&&"error"===l.type),[l.isVisible,l.type]),m=(0,o.useMemo)((()=>l.isVisible&&"success"===l.type),[l.isVisible,l.type]);return(0,Zt.jsxs)("div",{className:e,children:[s&&(0,Zt.jsx)("label",{className:"yst-block yst-mb-2 yst-font-medium yst-text-slate-800",htmlFor:t,children:s}),(0,Zt.jsxs)("div",{className:"yst-relative",children:[(0,Zt.jsx)("input",{id:t,type:u,value:n,className:Ss()("yst-block yst-w-full yst-h-[40px] yst-input focus:yst-ring-1",{"yst-border-red-300 yst-text-red-900 focus:yst-ring-red-500 focus:yst-border-red-500":p,"yst-border-emerald-600 yst-text-slate-700 focus:yst-ring-emerald-600 focus:yst-border-emerald-600":m,"yst-text-slate-700 yst-border-slate-300 focus:yst-ring-primary-500 focus:yst-border-primary-500":!p&&!m}),onChange:a,placeholder:i,...Hi(t,l),...d}),(0,Zt.jsx)(el,{hasError:p,hasSuccess:m})]}),l.isVisible&&(0,Zt.jsx)(Xi,{id:`${p?"error-":"success-"}${t}`,className:Ss()("yst-mt-2 yst-text-sm",{"yst-text-red-600":p,"yst-text-emerald-600":m}),texts:l.message}),r]})}function sl({id:e,onChange:t,socialMedium:s="",isDisabled:r=!1,...n}){const a=(0,o.useCallback)((e=>{t(e.target.value,"other"===s?n.index:s)}),[s,n.index]);return(0,Zt.jsx)(tl,{onChange:a,disabled:r,id:e,...n})}function rl({socialProfiles:e,errorFields:t=[],dispatch:s}){const r=(0,o.useCallback)(((e,t)=>{s({type:"CHANGE_SOCIAL_PROFILE",payload:{socialMedium:t,value:e}})}),[]),n=(0,o.useCallback)(((e,t)=>{s({type:"CHANGE_OTHERS_SOCIAL_PROFILE",payload:{index:t,value:e}})}),[]),a=(0,o.useCallback)((()=>{s({type:"ADD_OTHERS_SOCIAL_PROFILE",payload:{value:""}})}),[]),i=(0,o.useCallback)((e=>{s({type:"REMOVE_OTHERS_SOCIAL_PROFILE",payload:{index:e}})}),[]);return(0,Zt.jsx)(nl,{socialProfiles:e,onChangeHandler:r,onChangeOthersHandler:n,onAddProfileHandler:a,onRemoveProfileHandler:i,errorFields:t})}function nl({socialProfiles:e,onChangeHandler:t,onChangeOthersHandler:s,onAddProfileHandler:r,onRemoveProfileHandler:n,errorFields:a}){return(0,Zt.jsxs)("div",{id:"social-input-section",children:[(0,Zt.jsx)(sl,{className:"yst-mt-4",label:(0,Vt.__)("Facebook","wordpress-seo"),id:"social-input-facebook-url",value:e.facebookUrl,socialMedium:"facebookUrl",onChange:t,placeholder:(0,Vt.__)("E.g. https://facebook.com/yoast","wordpress-seo"),feedback:{message:[(0,Vt.__)("Could not save this value. Please check the URL.","wordpress-seo")],isVisible:a.includes("facebook_site"),type:"error"}}),(0,Zt.jsx)(sl,{className:"yst-mt-4",label:(0,Vt.__)("X","wordpress-seo"),id:"social-input-twitter-url",value:e.twitterUsername,socialMedium:"twitterUsername",onChange:t,placeholder:(0,Vt.__)("E.g. https://x.com/yoast","wordpress-seo"),feedback:{message:[(0,Vt.__)("Could not save this value. Please check the URL or username.","wordpress-seo")],isVisible:a.includes("twitter_site"),type:"error"}}),(0,Zt.jsx)(Zi,{items:e.otherSocialUrls,onAddProfile:r,onRemoveProfile:n,onChangeProfile:s,errorFields:a,fieldType:sl})]})}el.propTypes={hasError:Kt.PropTypes.bool,hasSuccess:Kt.PropTypes.bool},tl.propTypes={className:Kt.PropTypes.string,id:Kt.PropTypes.string.isRequired,label:Kt.PropTypes.string,description:Kt.PropTypes.node,value:Kt.PropTypes.string,onChange:Kt.PropTypes.func.isRequired,placeholder:Kt.PropTypes.string,feedback:Kt.PropTypes.shape({type:Kt.PropTypes.string,message:Kt.PropTypes.array,isVisible:Kt.PropTypes.bool}),type:Kt.PropTypes.string},sl.propTypes={id:Yt().string.isRequired,onChange:Yt().func.isRequired,socialMedium:Yt().string,isDisabled:Yt().bool},rl.propTypes={socialProfiles:Yt().object.isRequired,dispatch:Yt().func.isRequired,errorFields:Yt().array},nl.propTypes={socialProfiles:Yt().object.isRequired,onChangeHandler:Yt().func.isRequired,onChangeOthersHandler:Yt().func.isRequired,onAddProfileHandler:Yt().func.isRequired,onRemoveProfileHandler:Yt().func.isRequired,errorFields:Yt().array.isRequired};const al=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"}))})),ol=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),il=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))}));var ll=s(8133);function cl({type:e="info",children:t,className:s=""}){let r,n;switch(e){case"info":r=(0,Zt.jsx)(al,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-blue-500"}),n="yst-bg-blue-100 yst-text-blue-800";break;case"warning":r=(0,Zt.jsx)(ol,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-yellow-500"}),n="yst-bg-yellow-100 yst-text-yellow-800";break;case"error":r=(0,Zt.jsx)(il,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-red-500"}),n="yst-bg-red-100 yst-text-red-800";break;case"success":r=(0,Zt.jsx)(as,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-emerald-600"}),n="yst-bg-green-100 yst-text-green-800"}return(0,Zt.jsxs)("div",{className:Ss()("yst-flex yst-p-4 yst-rounded-md",n,s),children:[r,(0,Zt.jsx)("div",{className:"yst-flex-1 yst-ms-3 yst-text-sm",children:t})]})}function dl({id:e,isVisible:t,expandDuration:s=400,type:r="info",children:n,className:a=""}){const[i,l]=(0,o.useState)(t?"yst-opacity-100":"yst-opacity-0"),c=(0,o.useCallback)((()=>{l("yst-opacity-100")}),[]);return(0,Zt.jsx)(ll.Z,{id:e,height:t?"auto":0,easing:"linear",duration:s,onAnimationEnd:c,children:(0,Zt.jsx)(cl,{type:r,className:Ss()("yst-transition-opacity yst-duration-300 yst-mt-4",i,a),children:n})})}function ul({state:e,dispatch:t,setErrorFields:s}){const r=(0,Vt.__)("If you select a Person to represent this site, we will use the social profiles from the selected user's profile page.","wordpress-seo"),n=Wt((0,Vt.sprintf)( // translators: %1$s is replaced by the selected person's username. (0,Vt.__)("You have selected the user %1$s as the person this site represents.","wordpress-seo"),`<b>${e.personName}</b>`),{b:(0,Zt.jsx)("b",{})}),a=Wt((0,Vt.sprintf)( // translators: %1$s and %2$s is replaced by a link to the selected person's profile page. -(0,Vt.__)("You can %1$supdate or add social profiles to this user profile%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,Zt.jsx)("a",{id:"yoast-configuration-person-social-profiles-user-link",href:window.wpseoScriptData.userEditUrl.replace("{user_id}",e.personId),target:"_blank",rel:"noopener noreferrer","data-hiive-event-name":"clicked_update_or_add_profile | social profiles"})}),i=(0,Vt.__)("You're not allowed to edit the social profiles of this user. Please ask this user or an admin to do this.","wordpress-seo");return["company","emptyChoice"].includes(e.companyOrPerson)?(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("p",{children:(0,Vt.__)("Fantastic work! Add your organization's social media accounts below. This allows us to fine-tune the metadata for these platforms.","wordpress-seo")}),(0,Zt.jsx)(dl,{socialProfiles:e.socialProfiles,dispatch:t,errorFields:e.errorFields,setErrorFields:s})]}):0===e.personId?(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("p",{children:r}),(0,Zt.jsx)(yl,{type:"info",className:"yst-mt-5",children: +(0,Vt.__)("You can %1$supdate or add social profiles to this user profile%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,Zt.jsx)("a",{id:"yoast-configuration-person-social-profiles-user-link",href:window.wpseoScriptData.userEditUrl.replace("{user_id}",e.personId),target:"_blank",rel:"noopener noreferrer","data-hiive-event-name":"clicked_update_or_add_profile | social profiles"})}),i=(0,Vt.__)("You're not allowed to edit the social profiles of this user. Please ask this user or an admin to do this.","wordpress-seo");return["company","emptyChoice"].includes(e.companyOrPerson)?(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("p",{children:(0,Vt.__)("Fantastic work! Add your organization's social media accounts below. This allows us to fine-tune the metadata for these platforms.","wordpress-seo")}),(0,Zt.jsx)(rl,{socialProfiles:e.socialProfiles,dispatch:t,errorFields:e.errorFields,setErrorFields:s})]}):0===e.personId?(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("p",{children:r}),(0,Zt.jsx)(cl,{type:"info",className:"yst-mt-5",children: /* translators: please note that "Site representation" here refers to the name of a step in the first-time configuration, * so this occurrence needs to be translated in the same manner as that step's heading. */ -(0,Vt.__)("Please select a user in the Site representation step.","wordpress-seo")})]}):(0,Zt.jsx)(o.Fragment,{children:(0,Zt.jsxs)("p",{children:[n," ",e.canEditUser?a:i]})})}yl.propTypes={type:Yt().oneOf(["info","warning","error","success"]),children:Yt().oneOfType([Yt().arrayOf(Yt().node),Yt().node]).isRequired,className:Yt().string},gl.propTypes={id:Yt().string.isRequired,isVisible:Yt().bool.isRequired,type:Yt().oneOf(["info","warning","error","success"]),children:Yt().oneOfType([Yt().arrayOf(Yt().node),Yt().node]).isRequired,expandDuration:Yt().number,className:Yt().string},vl.propTypes={state:Yt().object.isRequired,dispatch:Yt().func.isRequired,setErrorFields:Yt().func.isRequired};const bl={slideDuration:500,fadeDuration:200,delayBeforeOpening:900,delayBeforeFadingIn:1400,delayBeforeClosing:200},xl={fadeDuration:"yst-duration-200",slideDuration:"yst-duration-500",delayBeforeOpening:"yst-delay-[900ms]",delayUntilStepFaded:"yst-delay-200"},{slideDuration:wl,delayUntilStepFaded:Sl}=xl,_l=`yst-transition-opacity ${wl} yst-absolute yst-inset-0 yst-border-2 yst-flex yst-items-center yst-justify-center yst-rounded-full`;function El(e){return`${_l} ${e?"yst-opacity-100":`${Sl} yst-opacity-0`}`}function jl({isVisible:e=!0}){return(0,Zt.jsx)("span",{className:`yst-bg-white yst-border-primary-500 ${El(e)}`,children:(0,Zt.jsx)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-primary-500"})})}function Cl({isVisible:e=!0}){return(0,Zt.jsx)("span",{className:`yst-bg-primary-500 yst-border-primary-500 ${El(e)}`,children:(0,Zt.jsx)(Os,{className:"yst-w-5 yst-h-5 yst-text-white","aria-hidden":"true"})})}function kl({isVisible:e=!0}){return(0,Zt.jsx)("span",{className:`yst-bg-white yst-border-slate-300 ${El(e)}`,children:(0,Zt.jsx)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-transparent"})})}function Rl({activationDelay:e=0,deactivationDelay:t=0,isFinished:s}){const{activeStepIndex:r,stepIndex:n,lastStepIndex:a}=zl(),i=n===a,l=r===n,[c,d]=(0,o.useState)((()=>!!l&&!i));return(0,o.useEffect)((()=>{if(l){const t=setTimeout((()=>{d(!0)}),e);return()=>clearTimeout(t)}const s=setTimeout((()=>{d(!1)}),t);return()=>clearTimeout(s)}),[l,i,e,t]),(0,Zt.jsxs)("span",{className:"yst-relative yst-z-10 yst-w-8 yst-h-8 yst-rounded-full",children:[(0,Zt.jsx)(kl,{isVisible:!0}),(0,Zt.jsx)(Cl,{isVisible:s}),(0,Zt.jsx)(jl,{isVisible:c&&!i})]})}function Ol(e,t,s){return t&&!s?"yst-text-primary-500":e?"yst-text-slate-900":"yst-text-slate-600"}function Nl({name:e,description:t="",isFinished:s,children:r=null}){const{stepIndex:n,activeStepIndex:a,lastStepIndex:i}=zl(),l=a===n,c=i===n,[d,u]=(0,o.useState)(Ol(s,l,c));return(0,o.useEffect)((()=>{if(l){const e=Ol(s,l,c),t=setTimeout((()=>u(e)),bl.delayBeforeOpening);return()=>clearTimeout(t)}const e=Ol(s,l,c);u(e)}),[a,s,c,Ol]),(0,Zt.jsxs)("div",{className:"yst-relative yst-flex yst-items-center yst-group","aria-current":l?"step":null,children:[(0,Zt.jsx)("span",{className:"yst-flex yst-items-center","aria-hidden":l?"true":null,children:(0,Zt.jsx)(Rl,{activationDelay:bl.delayBeforeOpening,deactivationDelay:0,isFinished:s})}),(0,Zt.jsxs)("span",{className:"yst-ms-4 yst-min-w-0 yst-flex yst-flex-col",children:[(0,Zt.jsx)("span",{className:`yst-transition-colors yst-duration-500 yst-text-xs yst-font-[650] yst-tracking-wide yst-uppercase ${d}`,children:e}),t&&(0,Zt.jsx)("span",{className:"yst-text-sm yst-text-slate-600",children:t})]}),r]})}jl.propTypes={isVisible:Yt().bool},Cl.propTypes={isVisible:Yt().bool},kl.propTypes={isVisible:Yt().bool},Rl.propTypes={isFinished:Yt().bool.isRequired,activationDelay:Yt().number,deactivationDelay:Yt().number},Nl.propTypes={name:Yt().string.isRequired,isFinished:Yt().bool.isRequired,description:Yt().string,children:Yt().node};const{slideDuration:Pl,delayBeforeOpening:Tl,delayBeforeFadingIn:Ll,delayBeforeClosing:Ml}=bl,{fadeDuration:Al,delayUntilStepFaded:Il,slideDuration:Dl}=xl,Fl=(0,o.createContext)();function zl(){const e=(0,o.useContext)(Fl);if(!e)throw new Error("Stepper compound components cannot be rendered outside the Stepper component");return e}function Ul({beforeGo:e=null,children:t=(0,Zt.jsx)(o.Fragment,{children:(0,Vt.__)("Continue","wordpress-seo")}),destination:s=1,...r}){const{stepIndex:n,setActiveStepIndex:a,lastStepIndex:i}=zl(),c=(0,o.useCallback)((()=>{a("string"==typeof s?"last"===s?i:0:n+s)}),[n,i,a,s]),d=(0,o.useCallback)((async()=>{let t=!0;e&&(t=!1,t=await e()),t&&c()}),[c,e]);return(0,Zt.jsx)(l.Button,{onClick:d,...r,children:t})}function Bl({children:e=(0,Zt.jsx)(o.Fragment,{children:(0,Vt.__)("Edit","wordpress-seo")}),...t}){const{stepIndex:s,setActiveStepIndex:r}=zl(),n=(0,o.useCallback)((()=>{r(s)}),[r,s]);return(0,Zt.jsx)(l.Button,{onClick:n,variant:"secondary",size:"small",...t,children:e})}function ql({children:e}){const{lastStepIndex:t,stepIndex:s,activeStepIndex:r}=zl();return(0,Zt.jsxs)(o.Fragment,{children:[s!==t&&(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("div",{className:"yst--ms-px yst-absolute yst-start-4 yst-w-0.5 yst-h-full yst-bg-slate-300 yst--bottom-6","aria-hidden":"true"}),(0,Zt.jsx)("div",{className:Ps()("yst-h-12 yst-transition-transform yst-ease-linear",Il,Dl,s<r?"yst-scale-y-1":"yst-scale-y-0","yst-origin-top yst--ms-px yst-absolute yst-start-4 yst-w-0.5 yst-bg-primary-500 yst-top-8"),"aria-hidden":"true"})]}),e]})}function $l({id:e,message:t,className:s=""}){return(0,Zt.jsx)(gl,{id:e,type:"error",isVisible:!!t,className:s,children:(0,Vt.sprintf)(/* translators: %1$s expands to the error message returned by the server */ -(0,Vt.__)("An error has occurred: %1$s","wordpress-seo"),t)})}function Hl({children:e}){const{activeStepIndex:t,stepIndex:s}=zl(),r=t===s,[n,a]=(0,o.useState)(r?"auto":0),[i,l]=(0,o.useState)(!r);return(0,o.useEffect)((()=>{r?(a("auto"),setTimeout((()=>l(!1)),Ll)):(l(!0),a(0))}),[r]),(0,Zt.jsx)(o.Fragment,{children:(0,Zt.jsx)(fl.Z,{id:`content-${s}`,delay:0===n?Ml:Tl,height:n,easing:"ease-in-out",duration:Pl,children:(0,Zt.jsx)("div",{className:Ps()("yst-transition-opacity yst-relative yst-ms-12 yst-mt-4 yst-pb-1 yst-max-w-xl",Al,i?"yst-opacity-0 yst-pointer-events-none":"yst-opacity-100"),children:e})})})}function Vl({children:e,setActiveStepIndex:t,activeStepIndex:s,isStepperFinished:r=!1}){return(0,Zt.jsx)("ol",{children:e.map(((n,a)=>(0,Zt.jsx)("li",{className:(a===e.length-1?"":"yst-pb-8")+" yst-mb-0 yst-relative yst-max-w-none",children:(0,Zt.jsx)(Fl.Provider,{value:{stepIndex:a,activeStepIndex:s,setActiveStepIndex:t,lastStepIndex:e.length-1,isStepperFinished:r},children:n})},`${n.props.name}-${a}`)))})}Ul.propTypes={beforeGo:Yt().func,children:Yt().node,destination:Yt().oneOfType([Yt().number,Yt().oneOf(["first","last"])])},Bl.propTypes={children:Yt().node},ql.propTypes={children:Yt().node.isRequired},$l.propTypes={id:Yt().string.isRequired,message:Yt().string.isRequired,className:Yt().string},Hl.propTypes={children:Yt().node.isRequired},Vl.propTypes={setActiveStepIndex:Yt().func.isRequired,activeStepIndex:Yt().number.isRequired,isStepperFinished:Yt().bool,children:Yt().node.isRequired},ql.Content=Hl,ql.Error=$l,ql.Header=Nl,ql.GoButton=Ul,ql.EditButton=Bl;const Wl={optimizeSeoData:"optimizeSeoData",siteRepresentation:"siteRepresentation",socialProfiles:"socialProfiles",personalPreferences:"personalPreferences"},Gl={[Wl.optimizeSeoData]:"data optimization",[Wl.siteRepresentation]:"site representation",[Wl.socialProfiles]:"social profiles",[Wl.personalPreferences]:"personal preferences"};function Kl({stepId:e,additionalClasses:t="",beforeGo:s=null,children:r=null,...n}){return(0,Zt.jsx)(ql.GoButton,{id:`button-${e}-continue`,variant:"primary",className:t,destination:1,beforeGo:s,"data-hiive-event-name":`clicked_continue | ${Gl[e]}`,...n,children:r})}function Yl({stepId:e,additionalClasses:t="",isVisible:s=!0,beforeGo:r=null,children:n=null,...a}){const o=`yst-transition-opacity ${xl.slideDuration} yst-ease-out ${s?"yst-opacity-100":`${xl.delayBeforeOpening} yst-opacity-0 yst-pointer-events-none yst-hidden`}`;return(0,Zt.jsx)(ql.GoButton,{id:`button-${e}-edit`,variant:"secondary",size:"small",className:Ps()(o,t),destination:0,beforeGo:r,"data-hiive-event-name":`clicked_edit | ${Gl[e]}`,...a,children:n})}function Zl({stepId:e,additionalClasses:t="",beforeGo:s=null,children:r=null,...n}){return(0,Zt.jsx)(ql.GoButton,{id:`button-${e}-back`,variant:"secondary",className:t,destination:-1,beforeGo:s,"data-hiive-event-name":`clicked_go_back | ${Gl[e]}`,...n,children:r})}function Jl({stepId:e,beforeContinue:t=null,continueLabel:s=(0,Vt.__)("Continue","wordpress-seo"),beforeBack:r=null,backLabel:n=(0,Vt.__)("Go back","wordpress-seo")}){return(0,Zt.jsxs)("div",{className:"yst-mt-12",children:[(0,Zt.jsx)(Kl,{stepId:e,beforeGo:t,children:s}),(0,Zt.jsx)(Zl,{stepId:e,additionalClasses:"yst-ms-3",beforeGo:r,children:n})]})}function Ql({stepId:e,stepperFinishedOnce:t,saveFunction:s,setEditState:r}){const n=(0,o.useCallback)((async()=>{const e=await s();return r(!e),e}),[s]);return t?(0,Zt.jsx)(ql.GoButton,{id:`button-${e}-go`,variant:"primary",className:"yst-mt-12",destination:"last",beforeGo:n,"data-hiive-event-name":`clicked_save_changes | ${Gl[e]}`,children:(0,Vt.__)("Save changes","wordpress-seo")}):(0,Zt.jsx)(Jl,{stepId:e,beforeContinue:s,continueLabel:(0,Vt.__)("Save and continue","wordpress-seo")})}Kl.propTypes={stepId:Yt().string.isRequired,additionalClasses:Yt().string,beforeGo:Yt().func,children:Yt().node},Yl.propTypes={stepId:Yt().string.isRequired,additionalClasses:Yt().string,isVisible:Yt().bool,beforeGo:Yt().func,children:Yt().node},Zl.propTypes={stepId:Yt().string.isRequired,additionalClasses:Yt().string,beforeGo:Yt().func,children:Yt().node},Jl.propTypes={stepId:Yt().string.isRequired,beforeContinue:Yt().func,continueLabel:Yt().string,beforeBack:Yt().func,backLabel:Yt().string},Ql.propTypes={stepId:Yt().string.isRequired,stepperFinishedOnce:Yt().bool.isRequired,saveFunction:Yt().func.isRequired,setEditState:Yt().func.isRequired};const Xl=window.yoast.helpers;class ec extends Error{constructor(e,t,s,r,n){super(e),this.name="RequestError",this.url=t,this.method=s,this.statusCode=r,this.stackTrace=n}}const{stripTagsFromHtmlString:tc}=Xl.strings,sc=["a","p"];function rc({title:e,value:t=""}){return t?(0,Zt.jsxs)("p",{children:[(0,Zt.jsx)("strong",{children:e}),(0,Zt.jsx)("br",{}),t]}):null}function nc({title:e,value:t=""}){return t?(0,Zt.jsxs)("details",{children:[(0,Zt.jsx)("summary",{children:e}),(0,Zt.jsx)("pre",{className:"yst-overflow-x-scroll yst-max-w-[500px] yst-border-px yst-p-4",children:t})]}):null}function ac({message:e,error:t,className:s=""}){return(0,Zt.jsxs)(yl,{type:"error",className:s,children:[(0,Zt.jsx)("div",{dangerouslySetInnerHTML:{__html:tc(e,sc)}}),(0,Zt.jsxs)("details",{children:[(0,Zt.jsx)("summary",{children:(0,Vt.__)("Error details","wordpress-seo")}),(0,Zt.jsxs)("div",{className:"yst-mt-2",children:[(0,Zt.jsx)(rc,{title:(0,Vt.__)("Request URL","wordpress-seo"),value:t.url}),(0,Zt.jsx)(rc,{title:(0,Vt.__)("Request method","wordpress-seo"),value:t.method}),(0,Zt.jsx)(rc,{title:(0,Vt.__)("Status code","wordpress-seo"),value:t.statusCode}),(0,Zt.jsx)(rc,{title:(0,Vt.__)("Error message","wordpress-seo"),value:t.message}),(0,Zt.jsx)(nc,{title:(0,Vt.__)("Response","wordpress-seo"),value:t.parseString}),(0,Zt.jsx)(nc,{title:(0,Vt.__)("Error stack trace","wordpress-seo"),value:t.stackTrace})]})]})]})}rc.propTypes={title:Yt().string.isRequired,value:Yt().any},nc.propTypes={title:Yt().string.isRequired,value:Yt().string},ac.propTypes={message:Yt().string.isRequired,error:Yt().oneOfType([Yt().instanceOf(Error),Yt().instanceOf(ec)]).isRequired,className:Yt().string};class oc extends Error{constructor(e,t){super(e),this.name="ParseError",this.parseString=t}}const ic="idle",lc="in_progress",cc="errored",dc="completed";class uc extends o.Component{constructor(e){super(e),this.settings=yoastIndexingData,this.state={state:ic,processed:0,error:null,amount:parseInt(this.settings.amount,10),firstTime:"1"===this.settings.firstTime},this.startIndexing=this.startIndexing.bind(this),this.stopIndexing=this.stopIndexing.bind(this)}async doIndexingRequest(e,t){const s=await fetch(e,{method:"POST",headers:{"X-WP-Nonce":t}}),r=await s.text();let n;try{n=JSON.parse(r)}catch(e){throw new oc("Error parsing the response to JSON.",r)}if(!s.ok){const t=n.data?n.data.stackTrace:"";throw new ec(n.message,e,"POST",s.status,t)}return n}async doPreIndexingAction(e){"function"==typeof this.props.preIndexingActions[e]&&await this.props.preIndexingActions[e](this.settings)}async doPostIndexingAction(e,t){"function"==typeof this.props.indexingActions[e]&&await this.props.indexingActions[e](t.objects,this.settings)}async doIndexing(e){let t=this.settings.restApi.root+this.settings.restApi.indexing_endpoints[e];for(;this.isState(lc)&&!1!==t;)try{await this.doPreIndexingAction(e);const s=await this.doIndexingRequest(t,this.settings.restApi.nonce);await this.doPostIndexingAction(e,s),(0,o.flushSync)((()=>{this.setState((e=>({processed:e.processed+s.objects.length,firstTime:!1})))})),t=s.next_url}catch(e){(0,o.flushSync)((()=>{this.setState({state:cc,error:e,firstTime:!1})}))}}async index(){for(const e of Object.keys(this.settings.restApi.indexing_endpoints))await this.doIndexing(e);this.isState(cc)||this.isState(ic)||this.completeIndexing()}async startIndexing(){this.setState({processed:0,state:lc},this.index)}completeIndexing(){this.setState({state:dc})}stopIndexing(){this.setState((e=>({state:ic,processed:0,amount:e.amount-e.processed})))}componentDidMount(){var e,t;if(!this.settings.disabled&&(this.props.indexingStateCallback(0===this.state.amount?"already_done":this.state.state),"true"===new URLSearchParams(window.location.search).get("start-indexation"))){const s=function(e,t){const s=new URL(e);return s.searchParams.delete("start-indexation"),s.href}(window.location.href);e=document.title,t=s,window.history.pushState(null,e,t),this.startIndexing()}}componentDidUpdate(e,t){this.state.state!==t.state&&this.props.indexingStateCallback(this.state.state)}isState(e){return this.state.state===e}renderFirstIndexationNotice(){return(0,Zt.jsx)(yl,{type:"info",className:"yst-mt-6",children:(0,Vt.__)("This feature includes and replaces the Text Link Counter and Internal Linking Analysis","wordpress-seo")})}renderStartButton(){return(0,Zt.jsx)(l.Button,{variant:"secondary",onClick:this.startIndexing,id:"indexation-data-optimization","data-hiive-event-name":"clicked_start_data_optimization",children:(0,Vt.__)("Start SEO data optimization","wordpress-seo")})}renderStopButton(){return(0,Zt.jsx)(l.Button,{variant:"secondary",onClick:this.stopIndexing,children:(0,Vt.__)("Stop SEO data optimization","wordpress-seo")})}renderDisabledTool(){return(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("p",{children:(0,Zt.jsx)(l.Button,{variant:"secondary",disabled:!0,id:"indexation-data-optimization",children:(0,Vt.__)("Start SEO data optimization","wordpress-seo")})}),(0,Zt.jsx)(yl,{type:"info",className:"yst-mt-6",children:(0,Vt.__)("SEO data optimization is disabled for non-production environments.","wordpress-seo")})]})}renderProgressBar(){let e=0;return this.isState(dc)&&(e=100),this.isState(lc)&&(e=this.state.processed/parseInt(this.state.amount,10)*100),(0,Zt.jsx)("div",{className:"yst-w-full yst-bg-slate-200 yst-rounded-full yst-h-2.5 yst-mb-4",children:(0,Zt.jsx)("div",{className:"yst-transition-[width] yst-ease-linear yst-bg-primary-500 yst-h-2.5 yst-rounded-full",style:{width:`${e}%`}})})}renderCaption(){return(0,Zt.jsx)(fl.Z,{id:"optimization-in-progress-text",height:this.isState(lc)?"auto":0,easing:"linear",duration:300,children:(0,Zt.jsx)("p",{className:"yst-text-sm yst-italic yst-mb-4 yst-mt-4",children:(0,Vt.__)("SEO data optimization is running… You can safely move on to the next steps of this configuration.","wordpress-seo")})})}renderErrorAlert(){return(0,Zt.jsx)(ac,{message:yoastIndexingData.errorMessage,error:this.state.error,className:"yst-mb-4"})}render(){return this.settings.disabled?this.renderDisabledTool():(0,Zt.jsxs)("div",{className:"yst-relative",children:[this.props.children,(0,Zt.jsxs)(Lo,{unmount:!1,show:this.isState(cc)||this.isState(lc)||this.isState(ic)&&this.state.amount>0,leave:"yst-transition-opacity yst-duration-1000",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",children:[this.renderProgressBar(),this.isState(cc)&&this.renderErrorAlert(),this.isState(lc)?this.renderStopButton():this.renderStartButton(),this.renderCaption(),this.isState(ic)&&this.state.firstTime&&this.renderFirstIndexationNotice()]})]})}}uc.propTypes={indexingActions:Yt().object,preIndexingActions:Yt().object,indexingStateCallback:Yt().func,children:Yt().node},uc.defaultProps={indexingActions:{},preIndexingActions:{},indexingStateCallback:()=>{},children:null};const pc=uc;function mc({indexingStateCallback:e,indexingState:t,isStepperFinished:s=!1}){return(0,Zt.jsx)(pc,{preIndexingActions:window.yoast.indexing.preIndexingActions,indexingActions:window.yoast.indexing.indexingActions,indexingStateCallback:e,children:(0,Zt.jsx)(Lo,{unmount:!1,show:["completed","already_done"].includes(t),enter:"yst-transition-opacity yst-duration-1000",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",children:(0,Zt.jsx)(yl,{type:"success",children:"already_done"!==t||s?(0,Vt.__)("We've successfully analyzed your site & optimized your SEO data!","wordpress-seo"):(0,Vt.__)("We've already successfully analyzed your site. You can move on to the next step.","wordpress-seo")})})})}function hc({children:e,className:t=""}){return(0,Zt.jsx)(l.Paper,{className:Ps()("yst-flex yst-px-4 yst-py-4 yst-rounded-md yst-max-w-xl yst-border yst-border-primary-200",t),children:(0,Zt.jsx)("div",{className:"yst-flex-1 yst-text-sm yst-font-normal",children:e})})}mc.propTypes={indexingStateCallback:Yt().func.isRequired,indexingState:Yt().string.isRequired,isStepperFinished:Yt().bool},hc.propTypes={children:Yt().oneOfType([Yt().arrayOf(Yt().node),Yt().node]).isRequired,className:Yt().string};const fc=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))})),yc=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{d:"M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"}),d.createElement("path",{d:"M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"}))}));function gc({state:e,indexingState:t,setIndexingState:s,showRunIndexationAlert:r=!1,isStepperFinished:n=!1}){return(0,Zt.jsxs)("div",{className:"yst-@container",children:[(0,Zt.jsxs)("div",{className:"yst-mb-4",children:[(0,Zt.jsx)("p",{className:"yst-text-sm yst-whitespace-pre-line",children:(0,Vt.__)("Let's start by running the SEO data optimization. That means we'll scan your site and create a database with optimized SEO data. It won't change any content or settings on your site and you don't need to do anything, just hit start!","wordpress-seo")}),(0,Zt.jsx)("p",{className:"yst-text-sm yst-whitespace-pre-line yst-mt-4",children:Wt((0,Vt.sprintf)(/* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to closing 'span' HTML tag. */ -(0,Vt.__)("%1$sNote%2$s: If you have a lot of content, this optimization could take a moment. But trust us, it's worth it!","wordpress-seo"),"<span>","</span>"),{span:(0,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"})})})]}),(0,Zt.jsx)("div",{id:"yoast-configuration-indexing-container",className:"indexation-container",children:(0,Zt.jsx)(mc,{indexingStateCallback:s,indexingState:t,isStepperFinished:n})}),(0,Zt.jsx)(gl,{id:"indexation-alert",isVisible:"idle"===t&&r,expandDuration:400,type:"info",children:(0,Vt.__)("Be aware that you should run the SEO data optimization for this configuration to take maximum effect.","wordpress-seo")}),!e.isPremium&&(0,Zt.jsxs)(hc,{className:"yst-mt-6 yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(fc,{className:"yst-text-primary-300 yst-w-4 yst-h-4 yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-font-medium yst-text-slate-800",children:(0,Vt.__)("Want deeper insights?","wordpress-seo")})]}),(0,Zt.jsx)("p",{children:(0,Vt.sprintf)(/* translators: %s expands to Yoast SEO Premium. */ +(0,Vt.__)("Please select a user in the Site representation step.","wordpress-seo")})]}):(0,Zt.jsx)(o.Fragment,{children:(0,Zt.jsxs)("p",{children:[n," ",e.canEditUser?a:i]})})}cl.propTypes={type:Yt().oneOf(["info","warning","error","success"]),children:Yt().oneOfType([Yt().arrayOf(Yt().node),Yt().node]).isRequired,className:Yt().string},dl.propTypes={id:Yt().string.isRequired,isVisible:Yt().bool.isRequired,type:Yt().oneOf(["info","warning","error","success"]),children:Yt().oneOfType([Yt().arrayOf(Yt().node),Yt().node]).isRequired,expandDuration:Yt().number,className:Yt().string},ul.propTypes={state:Yt().object.isRequired,dispatch:Yt().func.isRequired,setErrorFields:Yt().func.isRequired};const pl={slideDuration:500,fadeDuration:200,delayBeforeOpening:900,delayBeforeFadingIn:1400,delayBeforeClosing:200},ml={fadeDuration:"yst-duration-200",slideDuration:"yst-duration-500",delayBeforeOpening:"yst-delay-[900ms]",delayUntilStepFaded:"yst-delay-200"},hl=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))})),{slideDuration:fl,delayUntilStepFaded:yl}=ml,gl=`yst-transition-opacity ${fl} yst-absolute yst-inset-0 yst-border-2 yst-flex yst-items-center yst-justify-center yst-rounded-full`;function vl(e){return`${gl} ${e?"yst-opacity-100":`${yl} yst-opacity-0`}`}function bl({isVisible:e=!0}){return(0,Zt.jsx)("span",{className:`yst-bg-white yst-border-primary-500 ${vl(e)}`,children:(0,Zt.jsx)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-primary-500"})})}function xl({isVisible:e=!0}){return(0,Zt.jsx)("span",{className:`yst-bg-primary-500 yst-border-primary-500 ${vl(e)}`,children:(0,Zt.jsx)(hl,{className:"yst-w-5 yst-h-5 yst-text-white","aria-hidden":"true"})})}function wl({isVisible:e=!0}){return(0,Zt.jsx)("span",{className:`yst-bg-white yst-border-slate-300 ${vl(e)}`,children:(0,Zt.jsx)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-transparent"})})}function Sl({activationDelay:e=0,deactivationDelay:t=0,isFinished:s}){const{activeStepIndex:r,stepIndex:n,lastStepIndex:a}=Ll(),i=n===a,l=r===n,[c,d]=(0,o.useState)((()=>!!l&&!i));return(0,o.useEffect)((()=>{if(l){const t=setTimeout((()=>{d(!0)}),e);return()=>clearTimeout(t)}const s=setTimeout((()=>{d(!1)}),t);return()=>clearTimeout(s)}),[l,i,e,t]),(0,Zt.jsxs)("span",{className:"yst-relative yst-z-10 yst-w-8 yst-h-8 yst-rounded-full",children:[(0,Zt.jsx)(wl,{isVisible:!0}),(0,Zt.jsx)(xl,{isVisible:s}),(0,Zt.jsx)(bl,{isVisible:c&&!i})]})}function _l(e,t,s){return t&&!s?"yst-text-primary-500":e?"yst-text-slate-900":"yst-text-slate-600"}function El({name:e,description:t="",isFinished:s,children:r=null}){const{stepIndex:n,activeStepIndex:a,lastStepIndex:i}=Ll(),l=a===n,c=i===n,[d,u]=(0,o.useState)(_l(s,l,c));return(0,o.useEffect)((()=>{if(l){const e=_l(s,l,c),t=setTimeout((()=>u(e)),pl.delayBeforeOpening);return()=>clearTimeout(t)}const e=_l(s,l,c);u(e)}),[a,s,c,_l]),(0,Zt.jsxs)("div",{className:"yst-relative yst-flex yst-items-center yst-group","aria-current":l?"step":null,children:[(0,Zt.jsx)("span",{className:"yst-flex yst-items-center","aria-hidden":l?"true":null,children:(0,Zt.jsx)(Sl,{activationDelay:pl.delayBeforeOpening,deactivationDelay:0,isFinished:s})}),(0,Zt.jsxs)("span",{className:"yst-ms-4 yst-min-w-0 yst-flex yst-flex-col",children:[(0,Zt.jsx)("span",{className:`yst-transition-colors yst-duration-500 yst-text-xs yst-font-[650] yst-tracking-wide yst-uppercase ${d}`,children:e}),t&&(0,Zt.jsx)("span",{className:"yst-text-sm yst-text-slate-600",children:t})]}),r]})}bl.propTypes={isVisible:Yt().bool},xl.propTypes={isVisible:Yt().bool},wl.propTypes={isVisible:Yt().bool},Sl.propTypes={isFinished:Yt().bool.isRequired,activationDelay:Yt().number,deactivationDelay:Yt().number},El.propTypes={name:Yt().string.isRequired,isFinished:Yt().bool.isRequired,description:Yt().string,children:Yt().node};const{slideDuration:jl,delayBeforeOpening:kl,delayBeforeFadingIn:Cl,delayBeforeClosing:Rl}=pl,{fadeDuration:Nl,delayUntilStepFaded:Pl,slideDuration:Ol}=ml,Tl=(0,o.createContext)();function Ll(){const e=(0,o.useContext)(Tl);if(!e)throw new Error("Stepper compound components cannot be rendered outside the Stepper component");return e}function Ml({beforeGo:e=null,children:t=(0,Zt.jsx)(o.Fragment,{children:(0,Vt.__)("Continue","wordpress-seo")}),destination:s=1,...r}){const{stepIndex:n,setActiveStepIndex:a,lastStepIndex:i}=Ll(),c=(0,o.useCallback)((()=>{a("string"==typeof s?"last"===s?i:0:n+s)}),[n,i,a,s]),d=(0,o.useCallback)((async()=>{let t=!0;e&&(t=!1,t=await e()),t&&c()}),[c,e]);return(0,Zt.jsx)(l.Button,{onClick:d,...r,children:t})}function Al({children:e=(0,Zt.jsx)(o.Fragment,{children:(0,Vt.__)("Edit","wordpress-seo")}),...t}){const{stepIndex:s,setActiveStepIndex:r}=Ll(),n=(0,o.useCallback)((()=>{r(s)}),[r,s]);return(0,Zt.jsx)(l.Button,{onClick:n,variant:"secondary",size:"small",...t,children:e})}function Il({children:e}){const{lastStepIndex:t,stepIndex:s,activeStepIndex:r}=Ll();return(0,Zt.jsxs)(o.Fragment,{children:[s!==t&&(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("div",{className:"yst--ms-px yst-absolute yst-start-4 yst-w-0.5 yst-h-full yst-bg-slate-300 yst--bottom-6","aria-hidden":"true"}),(0,Zt.jsx)("div",{className:Ss()("yst-h-12 yst-transition-transform yst-ease-linear",Pl,Ol,s<r?"yst-scale-y-1":"yst-scale-y-0","yst-origin-top yst--ms-px yst-absolute yst-start-4 yst-w-0.5 yst-bg-primary-500 yst-top-8"),"aria-hidden":"true"})]}),e]})}function Dl({id:e,message:t,className:s=""}){return(0,Zt.jsx)(dl,{id:e,type:"error",isVisible:!!t,className:s,children:(0,Vt.sprintf)(/* translators: %1$s expands to the error message returned by the server */ +(0,Vt.__)("An error has occurred: %1$s","wordpress-seo"),t)})}function Fl({children:e}){const{activeStepIndex:t,stepIndex:s}=Ll(),r=t===s,[n,a]=(0,o.useState)(r?"auto":0),[i,l]=(0,o.useState)(!r);return(0,o.useEffect)((()=>{r?(a("auto"),setTimeout((()=>l(!1)),Cl)):(l(!0),a(0))}),[r]),(0,Zt.jsx)(o.Fragment,{children:(0,Zt.jsx)(ll.Z,{id:`content-${s}`,delay:0===n?Rl:kl,height:n,easing:"ease-in-out",duration:jl,children:(0,Zt.jsx)("div",{className:Ss()("yst-transition-opacity yst-relative yst-ms-12 yst-mt-4 yst-pb-1 yst-max-w-xl",Nl,i?"yst-opacity-0 yst-pointer-events-none":"yst-opacity-100"),children:e})})})}function zl({children:e,setActiveStepIndex:t,activeStepIndex:s,isStepperFinished:r=!1}){return(0,Zt.jsx)("ol",{children:e.map(((n,a)=>(0,Zt.jsx)("li",{className:(a===e.length-1?"":"yst-pb-8")+" yst-mb-0 yst-relative yst-max-w-none",children:(0,Zt.jsx)(Tl.Provider,{value:{stepIndex:a,activeStepIndex:s,setActiveStepIndex:t,lastStepIndex:e.length-1,isStepperFinished:r},children:n})},`${n.props.name}-${a}`)))})}Ml.propTypes={beforeGo:Yt().func,children:Yt().node,destination:Yt().oneOfType([Yt().number,Yt().oneOf(["first","last"])])},Al.propTypes={children:Yt().node},Il.propTypes={children:Yt().node.isRequired},Dl.propTypes={id:Yt().string.isRequired,message:Yt().string.isRequired,className:Yt().string},Fl.propTypes={children:Yt().node.isRequired},zl.propTypes={setActiveStepIndex:Yt().func.isRequired,activeStepIndex:Yt().number.isRequired,isStepperFinished:Yt().bool,children:Yt().node.isRequired},Il.Content=Fl,Il.Error=Dl,Il.Header=El,Il.GoButton=Ml,Il.EditButton=Al;const Ul={optimizeSeoData:"optimizeSeoData",siteRepresentation:"siteRepresentation",socialProfiles:"socialProfiles",personalPreferences:"personalPreferences"},Bl={[Ul.optimizeSeoData]:"data optimization",[Ul.siteRepresentation]:"site representation",[Ul.socialProfiles]:"social profiles",[Ul.personalPreferences]:"personal preferences"};function ql({stepId:e,additionalClasses:t="",beforeGo:s=null,children:r=null,...n}){return(0,Zt.jsx)(Il.GoButton,{id:`button-${e}-continue`,variant:"primary",className:t,destination:1,beforeGo:s,"data-hiive-event-name":`clicked_continue | ${Bl[e]}`,...n,children:r})}function $l({stepId:e,additionalClasses:t="",isVisible:s=!0,beforeGo:r=null,children:n=null,...a}){const o=`yst-transition-opacity ${ml.slideDuration} yst-ease-out ${s?"yst-opacity-100":`${ml.delayBeforeOpening} yst-opacity-0 yst-pointer-events-none yst-hidden`}`;return(0,Zt.jsx)(Il.GoButton,{id:`button-${e}-edit`,variant:"secondary",size:"small",className:Ss()(o,t),destination:0,beforeGo:r,"data-hiive-event-name":`clicked_edit | ${Bl[e]}`,...a,children:n})}function Hl({stepId:e,additionalClasses:t="",beforeGo:s=null,children:r=null,...n}){return(0,Zt.jsx)(Il.GoButton,{id:`button-${e}-back`,variant:"secondary",className:t,destination:-1,beforeGo:s,"data-hiive-event-name":`clicked_go_back | ${Bl[e]}`,...n,children:r})}function Vl({stepId:e,beforeContinue:t=null,continueLabel:s=(0,Vt.__)("Continue","wordpress-seo"),beforeBack:r=null,backLabel:n=(0,Vt.__)("Go back","wordpress-seo")}){return(0,Zt.jsxs)("div",{className:"yst-mt-12",children:[(0,Zt.jsx)(ql,{stepId:e,beforeGo:t,children:s}),(0,Zt.jsx)(Hl,{stepId:e,additionalClasses:"yst-ms-3",beforeGo:r,children:n})]})}function Wl({stepId:e,stepperFinishedOnce:t,saveFunction:s,setEditState:r}){const n=(0,o.useCallback)((async()=>{const e=await s();return r(!e),e}),[s]);return t?(0,Zt.jsx)(Il.GoButton,{id:`button-${e}-go`,variant:"primary",className:"yst-mt-12",destination:"last",beforeGo:n,"data-hiive-event-name":`clicked_save_changes | ${Bl[e]}`,children:(0,Vt.__)("Save changes","wordpress-seo")}):(0,Zt.jsx)(Vl,{stepId:e,beforeContinue:s,continueLabel:(0,Vt.__)("Save and continue","wordpress-seo")})}ql.propTypes={stepId:Yt().string.isRequired,additionalClasses:Yt().string,beforeGo:Yt().func,children:Yt().node},$l.propTypes={stepId:Yt().string.isRequired,additionalClasses:Yt().string,isVisible:Yt().bool,beforeGo:Yt().func,children:Yt().node},Hl.propTypes={stepId:Yt().string.isRequired,additionalClasses:Yt().string,beforeGo:Yt().func,children:Yt().node},Vl.propTypes={stepId:Yt().string.isRequired,beforeContinue:Yt().func,continueLabel:Yt().string,beforeBack:Yt().func,backLabel:Yt().string},Wl.propTypes={stepId:Yt().string.isRequired,stepperFinishedOnce:Yt().bool.isRequired,saveFunction:Yt().func.isRequired,setEditState:Yt().func.isRequired};const Gl=window.yoast.helpers;class Kl extends Error{constructor(e,t,s,r,n){super(e),this.name="RequestError",this.url=t,this.method=s,this.statusCode=r,this.stackTrace=n}}const{stripTagsFromHtmlString:Yl}=Gl.strings,Zl=["a","p"];function Jl({title:e,value:t=""}){return t?(0,Zt.jsxs)("p",{children:[(0,Zt.jsx)("strong",{children:e}),(0,Zt.jsx)("br",{}),t]}):null}function Ql({title:e,value:t=""}){return t?(0,Zt.jsxs)("details",{children:[(0,Zt.jsx)("summary",{children:e}),(0,Zt.jsx)("pre",{className:"yst-overflow-x-scroll yst-max-w-[500px] yst-border-px yst-p-4",children:t})]}):null}function Xl({message:e,error:t,className:s=""}){return(0,Zt.jsxs)(cl,{type:"error",className:s,children:[(0,Zt.jsx)("div",{dangerouslySetInnerHTML:{__html:Yl(e,Zl)}}),(0,Zt.jsxs)("details",{children:[(0,Zt.jsx)("summary",{children:(0,Vt.__)("Error details","wordpress-seo")}),(0,Zt.jsxs)("div",{className:"yst-mt-2",children:[(0,Zt.jsx)(Jl,{title:(0,Vt.__)("Request URL","wordpress-seo"),value:t.url}),(0,Zt.jsx)(Jl,{title:(0,Vt.__)("Request method","wordpress-seo"),value:t.method}),(0,Zt.jsx)(Jl,{title:(0,Vt.__)("Status code","wordpress-seo"),value:t.statusCode}),(0,Zt.jsx)(Jl,{title:(0,Vt.__)("Error message","wordpress-seo"),value:t.message}),(0,Zt.jsx)(Ql,{title:(0,Vt.__)("Response","wordpress-seo"),value:t.parseString}),(0,Zt.jsx)(Ql,{title:(0,Vt.__)("Error stack trace","wordpress-seo"),value:t.stackTrace})]})]})]})}Jl.propTypes={title:Yt().string.isRequired,value:Yt().any},Ql.propTypes={title:Yt().string.isRequired,value:Yt().string},Xl.propTypes={message:Yt().string.isRequired,error:Yt().oneOfType([Yt().instanceOf(Error),Yt().instanceOf(Kl)]).isRequired,className:Yt().string};class ec extends Error{constructor(e,t){super(e),this.name="ParseError",this.parseString=t}}const tc="idle",sc="in_progress",rc="errored",nc="completed";class ac extends o.Component{constructor(e){super(e),this.settings=yoastIndexingData,this.state={state:tc,processed:0,error:null,amount:parseInt(this.settings.amount,10),firstTime:"1"===this.settings.firstTime},this.startIndexing=this.startIndexing.bind(this),this.stopIndexing=this.stopIndexing.bind(this)}async doIndexingRequest(e,t){const s=await fetch(e,{method:"POST",headers:{"X-WP-Nonce":t}}),r=await s.text();let n;try{n=JSON.parse(r)}catch(e){throw new ec("Error parsing the response to JSON.",r)}if(!s.ok){const t=n.data?n.data.stackTrace:"";throw new Kl(n.message,e,"POST",s.status,t)}return n}async doPreIndexingAction(e){"function"==typeof this.props.preIndexingActions[e]&&await this.props.preIndexingActions[e](this.settings)}async doPostIndexingAction(e,t){"function"==typeof this.props.indexingActions[e]&&await this.props.indexingActions[e](t.objects,this.settings)}async doIndexing(e){let t=this.settings.restApi.root+this.settings.restApi.indexing_endpoints[e];for(;this.isState(sc)&&!1!==t;)try{await this.doPreIndexingAction(e);const s=await this.doIndexingRequest(t,this.settings.restApi.nonce);await this.doPostIndexingAction(e,s),(0,o.flushSync)((()=>{this.setState((e=>({processed:e.processed+s.objects.length,firstTime:!1})))})),t=s.next_url}catch(e){(0,o.flushSync)((()=>{this.setState({state:rc,error:e,firstTime:!1})}))}}async index(){for(const e of Object.keys(this.settings.restApi.indexing_endpoints))await this.doIndexing(e);this.isState(rc)||this.isState(tc)||this.completeIndexing()}async startIndexing(){this.setState({processed:0,state:sc},this.index)}completeIndexing(){this.setState({state:nc})}stopIndexing(){this.setState((e=>({state:tc,processed:0,amount:e.amount-e.processed})))}componentDidMount(){var e,t;if(!this.settings.disabled&&(this.props.indexingStateCallback(0===this.state.amount?"already_done":this.state.state),"true"===new URLSearchParams(window.location.search).get("start-indexation"))){const s=function(e,t){const s=new URL(e);return s.searchParams.delete("start-indexation"),s.href}(window.location.href);e=document.title,t=s,window.history.pushState(null,e,t),this.startIndexing()}}componentDidUpdate(e,t){this.state.state!==t.state&&this.props.indexingStateCallback(this.state.state)}isState(e){return this.state.state===e}renderFirstIndexationNotice(){return(0,Zt.jsx)(cl,{type:"info",className:"yst-mt-6",children:(0,Vt.__)("This feature includes and replaces the Text Link Counter and Internal Linking Analysis","wordpress-seo")})}renderStartButton(){return(0,Zt.jsx)(l.Button,{variant:"secondary",onClick:this.startIndexing,id:"indexation-data-optimization","data-hiive-event-name":"clicked_start_data_optimization",children:(0,Vt.__)("Start SEO data optimization","wordpress-seo")})}renderStopButton(){return(0,Zt.jsx)(l.Button,{variant:"secondary",onClick:this.stopIndexing,children:(0,Vt.__)("Stop SEO data optimization","wordpress-seo")})}renderDisabledTool(){return(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("p",{children:(0,Zt.jsx)(l.Button,{variant:"secondary",disabled:!0,id:"indexation-data-optimization",children:(0,Vt.__)("Start SEO data optimization","wordpress-seo")})}),(0,Zt.jsx)(cl,{type:"info",className:"yst-mt-6",children:(0,Vt.__)("SEO data optimization is disabled for non-production environments.","wordpress-seo")})]})}renderProgressBar(){let e=0;return this.isState(nc)&&(e=100),this.isState(sc)&&(e=this.state.processed/parseInt(this.state.amount,10)*100),(0,Zt.jsx)("div",{className:"yst-w-full yst-bg-slate-200 yst-rounded-full yst-h-2.5 yst-mb-4",children:(0,Zt.jsx)("div",{className:"yst-transition-[width] yst-ease-linear yst-bg-primary-500 yst-h-2.5 yst-rounded-full",style:{width:`${e}%`}})})}renderCaption(){return(0,Zt.jsx)(ll.Z,{id:"optimization-in-progress-text",height:this.isState(sc)?"auto":0,easing:"linear",duration:300,children:(0,Zt.jsx)("p",{className:"yst-text-sm yst-italic yst-mb-4 yst-mt-4",children:(0,Vt.__)("SEO data optimization is running… You can safely move on to the next steps of this configuration.","wordpress-seo")})})}renderErrorAlert(){return(0,Zt.jsx)(Xl,{message:yoastIndexingData.errorMessage,error:this.state.error,className:"yst-mb-4"})}render(){return this.settings.disabled?this.renderDisabledTool():(0,Zt.jsxs)("div",{className:"yst-relative",children:[this.props.children,(0,Zt.jsxs)(jo,{unmount:!1,show:this.isState(rc)||this.isState(sc)||this.isState(tc)&&this.state.amount>0,leave:"yst-transition-opacity yst-duration-1000",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",children:[this.renderProgressBar(),this.isState(rc)&&this.renderErrorAlert(),this.isState(sc)?this.renderStopButton():this.renderStartButton(),this.renderCaption(),this.isState(tc)&&this.state.firstTime&&this.renderFirstIndexationNotice()]})]})}}ac.propTypes={indexingActions:Yt().object,preIndexingActions:Yt().object,indexingStateCallback:Yt().func,children:Yt().node},ac.defaultProps={indexingActions:{},preIndexingActions:{},indexingStateCallback:()=>{},children:null};const oc=ac;function ic({indexingStateCallback:e,indexingState:t,isStepperFinished:s=!1}){return(0,Zt.jsx)(oc,{preIndexingActions:window.yoast.indexing.preIndexingActions,indexingActions:window.yoast.indexing.indexingActions,indexingStateCallback:e,children:(0,Zt.jsx)(jo,{unmount:!1,show:["completed","already_done"].includes(t),enter:"yst-transition-opacity yst-duration-1000",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",children:(0,Zt.jsx)(cl,{type:"success",children:"already_done"!==t||s?(0,Vt.__)("We've successfully analyzed your site & optimized your SEO data!","wordpress-seo"):(0,Vt.__)("We've already successfully analyzed your site. You can move on to the next step.","wordpress-seo")})})})}function lc({children:e,className:t=""}){return(0,Zt.jsx)(l.Paper,{className:Ss()("yst-flex yst-px-4 yst-py-4 yst-rounded-md yst-max-w-xl yst-border yst-border-primary-200",t),children:(0,Zt.jsx)("div",{className:"yst-flex-1 yst-text-sm yst-font-normal",children:e})})}ic.propTypes={indexingStateCallback:Yt().func.isRequired,indexingState:Yt().string.isRequired,isStepperFinished:Yt().bool},lc.propTypes={children:Yt().oneOfType([Yt().arrayOf(Yt().node),Yt().node]).isRequired,className:Yt().string};const cc=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))})),dc=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{d:"M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"}),d.createElement("path",{d:"M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"}))}));function uc({state:e,indexingState:t,setIndexingState:s,showRunIndexationAlert:r=!1,isStepperFinished:n=!1}){return(0,Zt.jsxs)("div",{className:"yst-@container",children:[(0,Zt.jsxs)("div",{className:"yst-mb-4",children:[(0,Zt.jsx)("p",{className:"yst-text-sm yst-whitespace-pre-line",children:(0,Vt.__)("Let's start by running the SEO data optimization. That means we'll scan your site and create a database with optimized SEO data. It won't change any content or settings on your site and you don't need to do anything, just hit start!","wordpress-seo")}),(0,Zt.jsx)("p",{className:"yst-text-sm yst-whitespace-pre-line yst-mt-4",children:Wt((0,Vt.sprintf)(/* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to closing 'span' HTML tag. */ +(0,Vt.__)("%1$sNote%2$s: If you have a lot of content, this optimization could take a moment. But trust us, it's worth it!","wordpress-seo"),"<span>","</span>"),{span:(0,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"})})})]}),(0,Zt.jsx)("div",{id:"yoast-configuration-indexing-container",className:"indexation-container",children:(0,Zt.jsx)(ic,{indexingStateCallback:s,indexingState:t,isStepperFinished:n})}),(0,Zt.jsx)(dl,{id:"indexation-alert",isVisible:"idle"===t&&r,expandDuration:400,type:"info",children:(0,Vt.__)("Be aware that you should run the SEO data optimization for this configuration to take maximum effect.","wordpress-seo")}),!e.isPremium&&(0,Zt.jsxs)(lc,{className:"yst-mt-6 yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(cc,{className:"yst-text-primary-300 yst-w-4 yst-h-4 yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-font-medium yst-text-slate-800",children:(0,Vt.__)("Want deeper insights?","wordpress-seo")})]}),(0,Zt.jsx)("p",{children:(0,Vt.sprintf)(/* translators: %s expands to Yoast SEO Premium. */ (0,Vt.__)("%s gives you in-depth analysis and guidance for every post, helping you write content that ranks even better.","wordpress-seo"),"Yoast SEO Premium")})]}),(0,Zt.jsx)("p",{className:"yst-mt-4",children:(0,Zt.jsxs)(l.Button,{id:"ftc-indexing-learn-more",as:"a",href:window.wpseoFirstTimeConfigurationData.shortlinks.indexationLearnMore,variant:"tertiary",target:"_blank",className:"yst-p-0",children:[(0,Vt.__)("Learn more about Premium","wordpress-seo"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(yc,{className:"yst-ms-1 yst-w-4 yst-h-4 yst-icon-rtl"})]})})]})]})}function vc(e,t){let[s,r]=(0,d.useState)(e),n=lo(e);return oo((()=>r(n.current)),[n,r,...t]),s}gc.propTypes={indexingState:Yt().string.isRequired,setIndexingState:Yt().func.isRequired,showRunIndexationAlert:Yt().bool,isStepperFinished:Yt().bool};var bc=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(bc||{});function xc(e,t){let s=t.resolveItems();if(s.length<=0)return null;let r=t.resolveActiveIndex(),n=null!=r?r:-1,a=(()=>{switch(e.focus){case 0:return s.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=s.slice().reverse().findIndex(((e,s,r)=>!(-1!==n&&r.length-s-1>=n||t.resolveDisabled(e))));return-1===e?e:s.length-1-e}case 2:return s.findIndex(((e,s)=>!(s<=n||t.resolveDisabled(e))));case 3:{let e=s.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:s.length-1-e}case 4:return s.findIndex((s=>t.resolveId(s)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===a?r:a}let wc=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Sc,_c=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(_c||{}),Ec=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ec||{}),jc=((Sc=jc||{})[Sc.Previous=-1]="Previous",Sc[Sc.Next=1]="Next",Sc),Cc=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Cc||{});function kc(e,t=0){var s;return e!==(null==(s=ri(e))?void 0:s.body)&&qa(t,{0:()=>e.matches(wc),1(){let t=e;for(;null!==t;){if(t.matches(wc))return!0;t=t.parentElement}return!1}})}function Rc(e,t=(e=>e)){return e.slice().sort(((e,s)=>{let r=t(e),n=t(s);if(null===r||null===n)return 0;let a=r.compareDocumentPosition(n);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function Oc(e,t,s){let r=lo(t);(0,d.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,s),()=>document.removeEventListener(e,t,s)}),[e,s])}function Nc(e,t,s=!0){let r=(0,d.useRef)(!1);function n(s,n){if(!r.current||s.defaultPrevented)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),o=n(s);if(null!==o&&o.getRootNode().contains(o)){for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(o)||s.composed&&s.composedPath().includes(t))return}return!kc(o,Cc.Loose)&&-1!==o.tabIndex&&s.preventDefault(),t(s,o)}}(0,d.useEffect)((()=>{requestAnimationFrame((()=>{r.current=s}))}),[s]);let a=(0,d.useRef)(null);Oc("mousedown",(e=>{var t,s;r.current&&(a.current=(null==(s=null==(t=e.composedPath)?void 0:t.call(e))?void 0:s[0])||e.target)}),!0),Oc("click",(e=>{!a.current||(n(e,(()=>a.current)),a.current=null)}),!0),Oc("blur",(e=>n(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}["textarea","input"].join(",");var Pc=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Pc||{});let Tc=Za((function(e,t){let{features:s=1,...r}=e;return Ga({ourProps:{ref:t,"aria-hidden":2==(2&s)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&s)&&2!=(2&s)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}));function Lc(e={},t=null,s=[]){for(let[r,n]of Object.entries(e))Ac(s,Mc(t,r),n);return s}function Mc(e,t){return e?e+"["+t+"]":t}function Ac(e,t,s){if(Array.isArray(s))for(let[r,n]of s.entries())Ac(e,Mc(t,r.toString()),n);else s instanceof Date?e.push([t,s.toISOString()]):"boolean"==typeof s?e.push([t,s?"1":"0"]):"string"==typeof s?e.push([t,s]):"number"==typeof s?e.push([t,`${s}`]):null==s?e.push([t,""]):Lc(s,t,e)}function Ic(e,t,s){let[r,n]=(0,d.useState)(s),a=void 0!==e,o=(0,d.useRef)(a),i=(0,d.useRef)(!1),l=(0,d.useRef)(!1);return!a||o.current||i.current?!a&&o.current&&!l.current&&(l.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(i.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:r,uo((e=>(a||n(e),null==t?void 0:t(e))))]}function Dc(e){return[e.screenX,e.screenY]}function Fc(){let e=(0,d.useRef)([-1,-1]);return{wasMoved(t){let s=Dc(t);return(e.current[0]!==s[0]||e.current[1]!==s[1])&&(e.current=s,!0)},update(t){e.current=Dc(t)}}}var zc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(zc||{}),Uc=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Uc||{}),Bc=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Bc||{}),qc=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(qc||{});function $c(e,t=(e=>e)){let s=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=Rc(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),n=s?r.indexOf(s):null;return-1===n&&(n=null),{options:r,activeOptionIndex:n}}let Hc={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:s}=e.dataRef.current,r=e.options.findIndex((e=>s(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var s;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=$c(e),n=xc(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:n,activationTrigger:null!=(s=t.trigger)?s:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let s=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),n=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+s).concat(e.options.slice(0,e.activeOptionIndex+s)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),a=n?e.options.indexOf(n):-1;return-1===a||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let s={id:t.id,dataRef:t.dataRef},r=$c(e,(e=>[...e,s]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(s)),{...e,...r}},6:(e,t)=>{let s=$c(e,(e=>{let s=e.findIndex((e=>e.id===t.id));return-1!==s&&e.splice(s,1),e}));return{...e,...s,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},Vc=(0,d.createContext)(null);function Wc(e){let t=(0,d.useContext)(Vc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Wc),t}return t}Vc.displayName="ListboxActionsContext";let Gc=(0,d.createContext)(null);function Kc(e){let t=(0,d.useContext)(Gc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Kc),t}return t}function Yc(e,t){return qa(t.type,Hc,e,t)}Gc.displayName="ListboxDataContext";let Zc=d.Fragment,Jc=Za((function(e,t){let{value:s,defaultValue:r,name:n,onChange:a,by:o=((e,t)=>e===t),disabled:i=!1,horizontal:l=!1,multiple:c=!1,...u}=e;const p=l?"horizontal":"vertical";let m=ho(t),[h=(c?[]:void 0),f]=Ic(s,a,r),[y,g]=(0,d.useReducer)(Yc,{dataRef:(0,d.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=(0,d.useRef)({static:!1,hold:!1}),b=(0,d.useRef)(null),x=(0,d.useRef)(null),w=(0,d.useRef)(null),S=uo("string"==typeof o?(e,t)=>{let s=o;return(null==e?void 0:e[s])===(null==t?void 0:t[s])}:o),_=(0,d.useCallback)((e=>qa(E.mode,{1:()=>h.some((t=>S(t,e))),0:()=>S(h,e)})),[h]),E=(0,d.useMemo)((()=>({...y,value:h,disabled:i,mode:c?1:0,orientation:p,compare:S,isSelected:_,optionsPropsRef:v,labelRef:b,buttonRef:x,optionsRef:w})),[h,i,c,y]);oo((()=>{y.dataRef.current=E}),[E]),Nc([E.buttonRef,E.optionsRef],((e,t)=>{var s;g({type:1}),kc(t,Cc.Loose)||(e.preventDefault(),null==(s=E.buttonRef.current)||s.focus())}),0===E.listboxState);let j=(0,d.useMemo)((()=>({open:0===E.listboxState,disabled:i,value:h})),[E,i,h]),C=uo((e=>{let t=E.options.find((t=>t.id===e));!t||L(t.dataRef.current.value)})),k=uo((()=>{if(null!==E.activeOptionIndex){let{dataRef:e,id:t}=E.options[E.activeOptionIndex];L(e.current.value),g({type:2,focus:bc.Specific,id:t})}})),R=uo((()=>g({type:0}))),O=uo((()=>g({type:1}))),N=uo(((e,t,s)=>e===bc.Specific?g({type:2,focus:bc.Specific,id:t,trigger:s}):g({type:2,focus:e,trigger:s}))),P=uo(((e,t)=>(g({type:5,id:e,dataRef:t}),()=>g({type:6,id:e})))),T=uo((e=>(g({type:7,id:e}),()=>g({type:7,id:null})))),L=uo((e=>qa(E.mode,{0:()=>null==f?void 0:f(e),1(){let t=E.value.slice(),s=t.findIndex((t=>S(t,e)));return-1===s?t.push(e):t.splice(s,1),null==f?void 0:f(t)}}))),M=uo((e=>g({type:3,value:e}))),A=uo((()=>g({type:4}))),I=(0,d.useMemo)((()=>({onChange:L,registerOption:P,registerLabel:T,goToOption:N,closeListbox:O,openListbox:R,selectActiveOption:k,selectOption:C,search:M,clearSearch:A})),[]),D={ref:m},F=(0,d.useRef)(null),z=vo();return(0,d.useEffect)((()=>{!F.current||void 0!==r&&z.addEventListener(F.current,"reset",(()=>{L(r)}))}),[F,L]),d.createElement(Vc.Provider,{value:I},d.createElement(Gc.Provider,{value:E},d.createElement(so,{value:qa(E.listboxState,{0:eo.Open,1:eo.Closed})},null!=n&&null!=h&&Lc({[n]:h}).map((([e,t],s)=>d.createElement(Tc,{features:Pc.Hidden,ref:0===s?e=>{var t;F.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...Ja({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),Ga({ourProps:D,theirProps:u,slot:j,defaultTag:Zc,name:"Listbox"}))))})),Qc=Za((function(e,t){var s;let r=Qo(),{id:n=`headlessui-listbox-button-${r}`,...a}=e,o=Kc("Listbox.Button"),i=Wc("Listbox.Button"),l=ho(o.buttonRef,t),c=vo(),u=uo((e=>{switch(e.key){case Xo.Space:case Xo.Enter:case Xo.ArrowDown:e.preventDefault(),i.openListbox(),c.nextFrame((()=>{o.value||i.goToOption(bc.First)}));break;case Xo.ArrowUp:e.preventDefault(),i.openListbox(),c.nextFrame((()=>{o.value||i.goToOption(bc.Last)}))}})),p=uo((e=>{e.key===Xo.Space&&e.preventDefault()})),m=uo((e=>{if(ei(e.currentTarget))return e.preventDefault();0===o.listboxState?(i.closeListbox(),c.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),i.openListbox())})),h=vc((()=>{if(o.labelId)return[o.labelId,n].join(" ")}),[o.labelId,n]),f=(0,d.useMemo)((()=>({open:0===o.listboxState,disabled:o.disabled,value:o.value})),[o]);return Ga({ourProps:{ref:l,id:n,type:si(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(s=o.optionsRef.current)?void 0:s.id,"aria-expanded":o.disabled?void 0:0===o.listboxState,"aria-labelledby":h,disabled:o.disabled,onKeyDown:u,onKeyUp:p,onClick:m},theirProps:a,slot:f,defaultTag:"button",name:"Listbox.Button"})})),Xc=Za((function(e,t){let s=Qo(),{id:r=`headlessui-listbox-label-${s}`,...n}=e,a=Kc("Listbox.Label"),o=Wc("Listbox.Label"),i=ho(a.labelRef,t);oo((()=>o.registerLabel(r)),[r]);let l=uo((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),c=(0,d.useMemo)((()=>({open:0===a.listboxState,disabled:a.disabled})),[a]);return Ga({ourProps:{ref:i,id:r,onClick:l},theirProps:n,slot:c,defaultTag:"label",name:"Listbox.Label"})})),ed=Va.RenderStrategy|Va.Static,td=Za((function(e,t){var s;let r=Qo(),{id:n=`headlessui-listbox-options-${r}`,...a}=e,o=Kc("Listbox.Options"),i=Wc("Listbox.Options"),l=ho(o.optionsRef,t),c=vo(),u=vo(),p=to(),m=null!==p?p===eo.Open:0===o.listboxState;(0,d.useEffect)((()=>{var e;let t=o.optionsRef.current;!t||0===o.listboxState&&t!==(null==(e=ri(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[o.listboxState,o.optionsRef]);let h=uo((e=>{switch(u.dispose(),e.key){case Xo.Space:if(""!==o.searchQuery)return e.preventDefault(),e.stopPropagation(),i.search(e.key);case Xo.Enter:if(e.preventDefault(),e.stopPropagation(),null!==o.activeOptionIndex){let{dataRef:e}=o.options[o.activeOptionIndex];i.onChange(e.current.value)}0===o.mode&&(i.closeListbox(),fo().nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case qa(o.orientation,{vertical:Xo.ArrowDown,horizontal:Xo.ArrowRight}):return e.preventDefault(),e.stopPropagation(),i.goToOption(bc.Next);case qa(o.orientation,{vertical:Xo.ArrowUp,horizontal:Xo.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),i.goToOption(bc.Previous);case Xo.Home:case Xo.PageUp:return e.preventDefault(),e.stopPropagation(),i.goToOption(bc.First);case Xo.End:case Xo.PageDown:return e.preventDefault(),e.stopPropagation(),i.goToOption(bc.Last);case Xo.Escape:return e.preventDefault(),e.stopPropagation(),i.closeListbox(),c.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case Xo.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(i.search(e.key),u.setTimeout((()=>i.clearSearch()),350))}})),f=vc((()=>{var e,t,s;return null!=(s=null==(e=o.labelRef.current)?void 0:e.id)?s:null==(t=o.buttonRef.current)?void 0:t.id}),[o.labelRef.current,o.buttonRef.current]),y=(0,d.useMemo)((()=>({open:0===o.listboxState})),[o]);return Ga({ourProps:{"aria-activedescendant":null===o.activeOptionIndex||null==(s=o.options[o.activeOptionIndex])?void 0:s.id,"aria-multiselectable":1===o.mode||void 0,"aria-labelledby":f,"aria-orientation":o.orientation,id:n,onKeyDown:h,role:"listbox",tabIndex:0,ref:l},theirProps:a,slot:y,defaultTag:"ul",features:ed,visible:m,name:"Listbox.Options"})})),sd=Za((function(e,t){let s=Qo(),{id:r=`headlessui-listbox-option-${s}`,disabled:n=!1,value:a,...o}=e,i=Kc("Listbox.Option"),l=Wc("Listbox.Option"),c=null!==i.activeOptionIndex&&i.options[i.activeOptionIndex].id===r,u=i.isSelected(a),p=(0,d.useRef)(null),m=lo({disabled:n,value:a,domRef:p,get textValue(){var e,t;return null==(t=null==(e=p.current)?void 0:e.textContent)?void 0:t.toLowerCase()}}),h=ho(t,p);oo((()=>{if(0!==i.listboxState||!c||0===i.activationTrigger)return;let e=fo();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[p,c,i.listboxState,i.activationTrigger,i.activeOptionIndex]),oo((()=>l.registerOption(r,m)),[m,r]);let f=uo((e=>{if(n)return e.preventDefault();l.onChange(a),0===i.mode&&(l.closeListbox(),fo().nextFrame((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),y=uo((()=>{if(n)return l.goToOption(bc.Nothing);l.goToOption(bc.Specific,r)})),g=Fc(),v=uo((e=>g.update(e))),b=uo((e=>{!g.wasMoved(e)||n||c||l.goToOption(bc.Specific,r,0)})),x=uo((e=>{!g.wasMoved(e)||n||!c||l.goToOption(bc.Nothing)})),w=(0,d.useMemo)((()=>({active:c,selected:u,disabled:n})),[c,u,n]);return Ga({ourProps:{id:r,ref:h,role:"option",tabIndex:!0===n?void 0:-1,"aria-disabled":!0===n||void 0,"aria-selected":u,disabled:void 0,onClick:f,onFocus:y,onPointerEnter:v,onMouseEnter:v,onPointerMove:b,onMouseMove:b,onPointerLeave:x,onMouseLeave:x},theirProps:o,slot:w,defaultTag:"li",name:"Listbox.Option"})})),rd=Object.assign(Jc,{Button:Qc,Label:Xc,Options:td,Option:sd});const nd=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}))}));function ad({id:e,value:t,choices:s,label:r="",onChange:n,error:a={message:"",isVisible:!1},disabled:i=!1}){const l=(0,o.useMemo)((()=>{const e=s.find((e=>t===e.value));return e?e.label:(0,Vt.__)("Select an option","wordpress-seo")}),[s,t]);return(0,Zt.jsx)(rd,{id:e,as:"div",value:t,onChange:n,disabled:i,children:({open:n})=>(0,Zt.jsxs)(Zt.Fragment,{children:[r&&(0,Zt.jsx)(rd.Label,{className:"yst-block yst-max-w-sm yst-mb-2 yst-text-sm yst-font-medium yst-text-slate-800",children:r}),(0,Zt.jsxs)("div",{className:"yst-max-w-sm",children:[(0,Zt.jsxs)("div",{className:"yst-relative",children:[(0,Zt.jsxs)(rd.Button,{"data-id":`button-${e} `,className:Ps()("yst-relative yst-h-[40px] yst-w-full yst-leading-6 yst-py-2 yst-ps-3 yst-pe-10 yst-text-start yst-bg-white yst-border yst-border-slate-300 yst-rounded-md yst-shadow-sm yst-cursor-default focus:yst-outline-none focus:yst-ring-1 focus:yst-ring-primary-500 focus:yst-border-primary-500 sm:yst-text-sm",{"yst-border-red-300":a.isVisible,"yst-opacity-50":i},"emptyChoice"===t?"yst-text-slate-400":"yst-text-slate-700"),...Ji(e,a),children:[(0,Zt.jsx)("span",{className:"yst-block yst-truncate",children:l}),(0,Zt.jsx)("span",{className:"yst-absolute yst-inset-y-0 yst-end-0 yst-flex yst-items-center yst-pe-2 yst-pointer-events-none",children:(0,Zt.jsx)(nd,{className:"yst-w-5 yst-h-5 yst-text-slate-400","aria-hidden":"true"})}),a.isVisible&&(0,Zt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-8",children:(0,Zt.jsx)(nl,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"})})]}),(0,Zt.jsx)(Lo,{show:n,as:o.Fragment,leave:"yst-transition yst-ease-in yst-duration-100",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",children:(0,Zt.jsx)(rd.Options,{static:!0,className:"yst-absolute yst-z-10 yst-w-full yst-mt-1 yst-overflow-auto yst-bg-white yst-rounded-md yst-shadow-lg yst-max-h-60 yst-ring-1 yst-ring-black yst-ring-opacity-5 focus:yst-outline-none sm:yst-text-sm",children:s.map((e=>(0,Zt.jsx)(rd.Option,{as:o.Fragment,value:e.value,children:({selected:t,active:s})=>(0,Zt.jsxs)("li",{className:Qi({selected:t,active:s}),children:[(0,Zt.jsx)("span",{className:Ps()(t?"yst-font-semibold":"yst-font-normal","yst-block yst-truncate"),children:e.label}),t?(0,Zt.jsx)("span",{className:Ps()("yst-text-white yst-absolute yst-inset-y-0 yst-end-0 yst-flex yst-items-center yst-pe-4"),children:(0,Zt.jsx)(Os,{className:"yst-w-5 yst-h-5","aria-hidden":"true"})}):null]})},e.id)))})})]}),a.isVisible&&(0,Zt.jsx)(ol,{id:Zi(e),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:a.message})]})]})})}ad.propTypes={value:Kt.PropTypes.oneOfType([Kt.PropTypes.string,Kt.PropTypes.number]).isRequired,choices:Kt.PropTypes.arrayOf(Kt.PropTypes.shape({id:Kt.PropTypes.oneOfType([Kt.PropTypes.number,Kt.PropTypes.string]).isRequired,value:Kt.PropTypes.string.isRequired,label:Kt.PropTypes.string.isRequired})).isRequired,label:Kt.PropTypes.string,onChange:Kt.PropTypes.func.isRequired,id:Kt.PropTypes.string.isRequired,error:Kt.PropTypes.shape({message:Kt.PropTypes.string,isVisible:Kt.PropTypes.bool}),disabled:Kt.PropTypes.bool},window.yoast.socialMetadataForms;const od=e=>({type:e.subtype,width:e.width,height:e.height,url:e.url,id:e.id,sizes:e.sizes,alt:e.alt||e.title||e.name});function id(e){(function(e){const t=window.wp.media();return t.on("select",(()=>{const s=t.state().get("selection").first();e(od(s.attributes))})),t})(e).open()}const ld=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"}))})),cd=({className:e=""})=>(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:Ps()("yst-animate-spin",e),children:[(0,Zt.jsx)("circle",{className:"yst-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Zt.jsx)("path",{className:"yst-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]});cd.propTypes={className:Yt().string};const dd=cd;function ud({id:e,imageAltText:t="",url:s="",fallbackUrl:r="",label:n="",onSelectImageClick:a=c.noop,onRemoveImageClick:i=c.noop,className:d="",error:u={message:"",isVisible:!1},status:p="idle"}){const m=Ps()("yst-relative yst-w-full yst-h-48 yst-mt-2 yst-flex yst-justify-center yst-items-center yst-rounded-md yst-mb-4 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-offset-2 focus:yst-ring-primary-500",u.isVisible?"yst-border-red-300":"yst-border-slate-300","yst-border-2 yst-border-dashed"),h=(0,o.useCallback)((()=>"loading"===p?(0,Zt.jsxs)("div",{className:"yst-text-center",children:[(0,Zt.jsx)(dd,{size:"10",color:"gray-400",className:"yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-mt-3",children:(0,Vt.__)("Uploading image…","wordpress-seo")})]}):s?(0,Zt.jsx)("img",{src:s,alt:t,className:"yst-w-full yst-h-full yst-object-contain"}):r?(0,Zt.jsx)("img",{src:r,alt:t,className:"yst-w-full yst-h-full yst-object-contain"}):(0,Zt.jsx)(ld,{id:`${e}-no-image-svg`,className:"yst-w-14 yst-h-14 yst-text-slate-500"})),[p,e,s,t]);return(0,Zt.jsxs)("div",{className:Ps()("yst-max-w-sm",d),...Ji(e,u),children:[(0,Zt.jsx)("label",{htmlFor:e,className:"yst-block yst-mb-2 yst-font-medium yst-text-slate-800",children:n}),(0,Zt.jsx)("button",{id:e,className:m,onClick:a,type:"button","data-hiive-event-name":"clicked_select_image",children:h()}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)(l.Button,{id:s?e+"__replace-image":e+"__select-image",variant:"secondary",className:"yst-me-2",onClick:a,"data-hiive-event-name":s?"clicked_replace_image":"clicked_select_image",children:s?(0,Vt.__)("Replace image","wordpress-seo"):(0,Vt.__)("Select image","wordpress-seo")}),s&&(0,Zt.jsx)(l.Link,{id:`${e}__remove-image`,as:"button",type:"button",variant:"error",onClick:i,className:"yst-px-3 yst-py-2 yst-rounded-md","data-hiive-event-name":"clicked_remove_image",children:(0,Vt.__)("Remove image","wordpress-seo")})]}),"error"===p&&(0,Zt.jsx)("p",{className:"yst-mt-2 yst-text-sm yst-text-red-600",children:u}),u.isVisible&&(0,Zt.jsx)(ol,{id:Zi(e),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:u.message})]})}function pd({dispatch:e,imageUrl:t="",fallbackImageUrl:s="",organizationName:r="",fallbackOrganizationName:n="",errorFields:a=[]}){const i=(0,o.useCallback)((()=>{id((t=>{e({type:"SET_COMPANY_LOGO",payload:{...t}})}))}),[id]),l=(0,o.useCallback)((()=>{e({type:"REMOVE_COMPANY_LOGO"})}),[e]),c=(0,o.useCallback)((t=>{e({type:"CHANGE_COMPANY_NAME",payload:t.target.value})}),[e]);return(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)(ll,{className:"yst-mt-6",id:"organization-name-input",name:"organization-name",label:(0,Vt.__)("Organization name","wordpress-seo"),value:""===r?n:r,onChange:c,feedback:{isVisible:a.includes("company_name"),message:[(0,Vt.__)("We could not save the organization name. Please check the value.","wordpress-seo")],type:"error"}}),(0,Zt.jsx)(ud,{className:"yst-mt-6",id:"organization-logo-input",url:t,fallbackUrl:s,onSelectImageClick:i,onRemoveImageClick:l,imageAltText:"",hasPreview:!0,label:(0,Vt.__)("Organization logo","wordpress-seo")})]})}function md(e,t){let s=(0,d.useRef)([]),r=uo(e);(0,d.useEffect)((()=>{let e=[...s.current];for(let[n,a]of t.entries())if(s.current[n]!==a){let n=r(t,e);return s.current=t,n}}),[r,...t])}ud.propTypes={label:Yt().string,id:Yt().string.isRequired,url:Yt().string,fallbackUrl:Yt().string,imageAltText:Yt().string,onRemoveImageClick:Yt().func,onSelectImageClick:Yt().func,className:Yt().string,error:Yt().shape({message:Yt().string,isVisible:Yt().bool}),status:Yt().string},pd.propTypes={dispatch:Yt().func.isRequired,imageUrl:Yt().string,fallbackImageUrl:Yt().string,organizationName:Yt().string,fallbackOrganizationName:Yt().string,errorFields:Yt().array};var hd=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(hd||{}),fd=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(fd||{}),yd=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(yd||{}),gd=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(gd||{});function vd(e,t=(e=>e)){let s=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=Rc(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),n=s?r.indexOf(s):null;return-1===n&&(n=null),{options:r,activeOptionIndex:n}}let bd={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:s}=e.dataRef.current,r=e.options.findIndex((e=>s(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var s;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let r=vd(e);if(null===r.activeOptionIndex){let e=r.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(r.activeOptionIndex=e)}let n=xc(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,activeOptionIndex:n,activationTrigger:null!=(s=t.trigger)?s:1}},3:(e,t)=>{let s={id:t.id,dataRef:t.dataRef},r=vd(e,(e=>[...e,s]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(s));let n={...e,...r,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(n.activeOptionIndex=0),n},4:(e,t)=>{let s=vd(e,(e=>{let s=e.findIndex((e=>e.id===t.id));return-1!==s&&e.splice(s,1),e}));return{...e,...s,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},xd=(0,d.createContext)(null);function wd(e){let t=(0,d.useContext)(xd);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,wd),t}return t}xd.displayName="ComboboxActionsContext";let Sd=(0,d.createContext)(null);function _d(e){let t=(0,d.useContext)(Sd);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,_d),t}return t}function Ed(e,t){return qa(t.type,bd,e,t)}Sd.displayName="ComboboxDataContext";let jd=d.Fragment,Cd=Za((function(e,t){let{value:s,defaultValue:r,onChange:n,name:a,by:o=((e,t)=>e===t),disabled:i=!1,__demoMode:l=!1,nullable:c=!1,multiple:u=!1,...p}=e,[m=(u?[]:void 0),h]=Ic(s,n,r),[f,y]=(0,d.useReducer)(Ed,{dataRef:(0,d.createRef)(),comboboxState:l?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),g=(0,d.useRef)(!1),v=(0,d.useRef)({static:!1,hold:!1}),b=(0,d.useRef)(null),x=(0,d.useRef)(null),w=(0,d.useRef)(null),S=(0,d.useRef)(null),_=uo("string"==typeof o?(e,t)=>{let s=o;return(null==e?void 0:e[s])===(null==t?void 0:t[s])}:o),E=(0,d.useCallback)((e=>qa(j.mode,{1:()=>m.some((t=>_(t,e))),0:()=>_(m,e)})),[m]),j=(0,d.useMemo)((()=>({...f,optionsPropsRef:v,labelRef:b,inputRef:x,buttonRef:w,optionsRef:S,value:m,defaultValue:r,disabled:i,mode:u?1:0,get activeOptionIndex(){if(g.current&&null===f.activeOptionIndex&&f.options.length>0){let e=f.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return f.activeOptionIndex},compare:_,isSelected:E,nullable:c,__demoMode:l})),[m,r,i,u,c,l,f]);oo((()=>{f.dataRef.current=j}),[j]),Nc([j.buttonRef,j.inputRef,j.optionsRef],(()=>A.closeCombobox()),0===j.comboboxState);let C=(0,d.useMemo)((()=>({open:0===j.comboboxState,disabled:i,activeIndex:j.activeOptionIndex,activeOption:null===j.activeOptionIndex?null:j.options[j.activeOptionIndex].dataRef.current.value,value:m})),[j,i,m]),k=uo((e=>{let t=j.options.find((t=>t.id===e));!t||M(t.dataRef.current.value)})),R=uo((()=>{if(null!==j.activeOptionIndex){let{dataRef:e,id:t}=j.options[j.activeOptionIndex];M(e.current.value),A.goToOption(bc.Specific,t)}})),O=uo((()=>{y({type:0}),g.current=!0})),N=uo((()=>{y({type:1}),g.current=!1})),P=uo(((e,t,s)=>(g.current=!1,e===bc.Specific?y({type:2,focus:bc.Specific,id:t,trigger:s}):y({type:2,focus:e,trigger:s})))),T=uo(((e,t)=>(y({type:3,id:e,dataRef:t}),()=>y({type:4,id:e})))),L=uo((e=>(y({type:5,id:e}),()=>y({type:5,id:null})))),M=uo((e=>qa(j.mode,{0:()=>null==h?void 0:h(e),1(){let t=j.value.slice(),s=t.findIndex((t=>_(t,e)));return-1===s?t.push(e):t.splice(s,1),null==h?void 0:h(t)}}))),A=(0,d.useMemo)((()=>({onChange:M,registerOption:T,registerLabel:L,goToOption:P,closeCombobox:N,openCombobox:O,selectActiveOption:R,selectOption:k})),[]),I=null===t?{}:{ref:t},D=(0,d.useRef)(null),F=vo();return(0,d.useEffect)((()=>{!D.current||void 0!==r&&F.addEventListener(D.current,"reset",(()=>{M(r)}))}),[D,M]),d.createElement(xd.Provider,{value:A},d.createElement(Sd.Provider,{value:j},d.createElement(so,{value:qa(j.comboboxState,{0:eo.Open,1:eo.Closed})},null!=a&&null!=m&&Lc({[a]:m}).map((([e,t],s)=>d.createElement(Tc,{features:Pc.Hidden,ref:0===s?e=>{var t;D.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...Ja({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),Ga({ourProps:I,theirProps:p,slot:C,defaultTag:jd,name:"Combobox"}))))})),kd=Za((function(e,t){var s,r,n,a;let o=Qo(),{id:i=`headlessui-combobox-input-${o}`,onChange:l,displayValue:c,type:u="text",...p}=e,m=_d("Combobox.Input"),h=wd("Combobox.Input"),f=ho(m.inputRef,t),y=(0,d.useRef)(!1),g=vo(),v=function(){var e;return"function"==typeof c&&void 0!==m.value?null!=(e=c(m.value))?e:"":"string"==typeof m.value?m.value:""}();md((([e,t],[s,r])=>{y.current||!m.inputRef.current||(0===r&&1===t||e!==s)&&(m.inputRef.current.value=e)}),[v,m.comboboxState]),md((([e],[t])=>{if(0===e&&1===t){let e=m.inputRef.current;if(!e)return;let t=e.value,{selectionStart:s,selectionEnd:r,selectionDirection:n}=e;e.value="",e.value=t,null!==n?e.setSelectionRange(s,r,n):e.setSelectionRange(s,r)}}),[m.comboboxState]);let b=(0,d.useRef)(!1),x=uo((()=>{b.current=!0})),w=uo((()=>{setTimeout((()=>{b.current=!1}))})),S=uo((e=>{switch(y.current=!0,e.key){case Xo.Backspace:case Xo.Delete:if(0!==m.mode||!m.nullable)return;let t=e.currentTarget;g.requestAnimationFrame((()=>{""===t.value&&(h.onChange(null),m.optionsRef.current&&(m.optionsRef.current.scrollTop=0),h.goToOption(bc.Nothing))}));break;case Xo.Enter:if(y.current=!1,0!==m.comboboxState||b.current)return;if(e.preventDefault(),e.stopPropagation(),null===m.activeOptionIndex)return void h.closeCombobox();h.selectActiveOption(),0===m.mode&&h.closeCombobox();break;case Xo.ArrowDown:return y.current=!1,e.preventDefault(),e.stopPropagation(),qa(m.comboboxState,{0:()=>{h.goToOption(bc.Next)},1:()=>{h.openCombobox()}});case Xo.ArrowUp:return y.current=!1,e.preventDefault(),e.stopPropagation(),qa(m.comboboxState,{0:()=>{h.goToOption(bc.Previous)},1:()=>{h.openCombobox(),g.nextFrame((()=>{m.value||h.goToOption(bc.Last)}))}});case Xo.Home:if(e.shiftKey)break;return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(bc.First);case Xo.PageUp:return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(bc.First);case Xo.End:if(e.shiftKey)break;return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(bc.Last);case Xo.PageDown:return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(bc.Last);case Xo.Escape:return y.current=!1,0!==m.comboboxState?void 0:(e.preventDefault(),m.optionsRef.current&&!m.optionsPropsRef.current.static&&e.stopPropagation(),h.closeCombobox());case Xo.Tab:if(y.current=!1,0!==m.comboboxState)return;0===m.mode&&h.selectActiveOption(),h.closeCombobox()}})),_=uo((e=>{h.openCombobox(),null==l||l(e)})),E=uo((()=>{y.current=!1})),j=vc((()=>{if(m.labelId)return[m.labelId].join(" ")}),[m.labelId]),C=(0,d.useMemo)((()=>({open:0===m.comboboxState,disabled:m.disabled})),[m]);return Ga({ourProps:{ref:f,id:i,role:"combobox",type:u,"aria-controls":null==(s=m.optionsRef.current)?void 0:s.id,"aria-expanded":m.disabled?void 0:0===m.comboboxState,"aria-activedescendant":null===m.activeOptionIndex||null==(r=m.options[m.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===m.mode||void 0,"aria-labelledby":j,"aria-autocomplete":"list",defaultValue:null!=(a=null!=(n=e.defaultValue)?n:void 0!==m.defaultValue?null==c?void 0:c(m.defaultValue):null)?a:m.defaultValue,disabled:m.disabled,onCompositionStart:x,onCompositionEnd:w,onKeyDown:S,onChange:_,onBlur:E},theirProps:p,slot:C,defaultTag:"input",name:"Combobox.Input"})})),Rd=Za((function(e,t){var s;let r=_d("Combobox.Button"),n=wd("Combobox.Button"),a=ho(r.buttonRef,t),o=Qo(),{id:i=`headlessui-combobox-button-${o}`,...l}=e,c=vo(),u=uo((e=>{switch(e.key){case Xo.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&n.openCombobox(),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Xo.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(n.openCombobox(),c.nextFrame((()=>{r.value||n.goToOption(bc.Last)}))),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Xo.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),n.closeCombobox(),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),p=uo((e=>{if(ei(e.currentTarget))return e.preventDefault();0===r.comboboxState?n.closeCombobox():(e.preventDefault(),n.openCombobox()),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),m=vc((()=>{if(r.labelId)return[r.labelId,i].join(" ")}),[r.labelId,i]),h=(0,d.useMemo)((()=>({open:0===r.comboboxState,disabled:r.disabled,value:r.value})),[r]);return Ga({ourProps:{ref:a,id:i,type:si(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(s=r.optionsRef.current)?void 0:s.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":m,disabled:r.disabled,onClick:p,onKeyDown:u},theirProps:l,slot:h,defaultTag:"button",name:"Combobox.Button"})})),Od=Za((function(e,t){let s=Qo(),{id:r=`headlessui-combobox-label-${s}`,...n}=e,a=_d("Combobox.Label"),o=wd("Combobox.Label"),i=ho(a.labelRef,t);oo((()=>o.registerLabel(r)),[r]);let l=uo((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})})),c=(0,d.useMemo)((()=>({open:0===a.comboboxState,disabled:a.disabled})),[a]);return Ga({ourProps:{ref:i,id:r,onClick:l},theirProps:n,slot:c,defaultTag:"label",name:"Combobox.Label"})})),Nd=Va.RenderStrategy|Va.Static,Pd=Za((function(e,t){let s=Qo(),{id:r=`headlessui-combobox-options-${s}`,hold:n=!1,...a}=e,o=_d("Combobox.Options"),i=ho(o.optionsRef,t),l=to(),c=null!==l?l===eo.Open:0===o.comboboxState;oo((()=>{var t;o.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[o.optionsPropsRef,e.static]),oo((()=>{o.optionsPropsRef.current.hold=n}),[o.optionsPropsRef,n]),function({container:e,accept:t,walk:s,enabled:r=!0}){let n=(0,d.useRef)(t),a=(0,d.useRef)(s);(0,d.useEffect)((()=>{n.current=t,a.current=s}),[t,s]),oo((()=>{if(!e||!r)return;let t=ri(e);if(!t)return;let s=n.current,o=a.current,i=Object.assign((e=>s(e)),{acceptNode:s}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,i,!1);for(;l.nextNode();)o(l.currentNode)}),[e,r,n,a])}({container:o.optionsRef.current,enabled:0===o.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let u=vc((()=>{var e,t;return null!=(t=o.labelId)?t:null==(e=o.buttonRef.current)?void 0:e.id}),[o.labelId,o.buttonRef.current]);return Ga({ourProps:{"aria-labelledby":u,role:"listbox",id:r,ref:i},theirProps:a,slot:(0,d.useMemo)((()=>({open:0===o.comboboxState})),[o]),defaultTag:"ul",features:Nd,visible:c,name:"Combobox.Options"})})),Td=Za((function(e,t){var s,r;let n=Qo(),{id:a=`headlessui-combobox-option-${n}`,disabled:o=!1,value:i,...l}=e,c=_d("Combobox.Option"),u=wd("Combobox.Option"),p=null!==c.activeOptionIndex&&c.options[c.activeOptionIndex].id===a,m=c.isSelected(i),h=(0,d.useRef)(null),f=lo({disabled:o,value:i,domRef:h,textValue:null==(r=null==(s=h.current)?void 0:s.textContent)?void 0:r.toLowerCase()}),y=ho(t,h),g=uo((()=>u.selectOption(a)));oo((()=>u.registerOption(a,f)),[f,a]);let v=(0,d.useRef)(!c.__demoMode);oo((()=>{if(!c.__demoMode)return;let e=fo();return e.requestAnimationFrame((()=>{v.current=!0})),e.dispose}),[]),oo((()=>{if(0!==c.comboboxState||!p||!v.current||0===c.activationTrigger)return;let e=fo();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=h.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[h,p,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let b=uo((e=>{if(o)return e.preventDefault();g(),0===c.mode&&u.closeCombobox()})),x=uo((()=>{if(o)return u.goToOption(bc.Nothing);u.goToOption(bc.Specific,a)})),w=Fc(),S=uo((e=>w.update(e))),_=uo((e=>{!w.wasMoved(e)||o||p||u.goToOption(bc.Specific,a,0)})),E=uo((e=>{!w.wasMoved(e)||o||!p||c.optionsPropsRef.current.hold||u.goToOption(bc.Nothing)})),j=(0,d.useMemo)((()=>({active:p,selected:m,disabled:o})),[p,m,o]);return Ga({ourProps:{id:a,ref:y,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":m,disabled:void 0,onClick:b,onFocus:x,onPointerEnter:S,onMouseEnter:S,onPointerMove:_,onMouseMove:_,onPointerLeave:E,onMouseLeave:E},theirProps:l,slot:j,defaultTag:"li",name:"Combobox.Option"})})),Ld=Object.assign(Cd,{Input:kd,Button:Rd,Label:Od,Options:Pd,Option:Td});function Md(e){return e&&e.label?e.label:null}function Ad({id:e,value:t=null,label:s="",onChange:r,onQueryChange:n=null,options:a,placeholder:i=(0,Vt.__)("Select an option","wordpress-seo"),isLoading:l=!1}){const[c,d]=(0,o.useState)(a),[u,p]=(0,o.useState)(""),m=(0,o.useCallback)((e=>{p(e.target.value)}),[p]),h=(0,o.useCallback)((()=>{p("")}),[p]);(0,o.useEffect)((()=>{d(a)}),[a]),(0,o.useEffect)((()=>{n?n(u):d(a.filter((e=>e.label.toLowerCase().includes(u.toLowerCase()))))}),[u,n]);const f=(0,o.useCallback)(((e,t)=>({selected:s,active:r})=>Qi({selected:s||e===t,active:r})),[Qi]),y=(0,o.useCallback)((e=>t=>{e&&t.stopPropagation()}),[]);return(0,Zt.jsx)(Ld,{id:e,as:"div",value:t,onChange:r,onBlur:h,children:({open:r})=>(0,Zt.jsxs)(o.Fragment,{children:[s&&(0,Zt.jsx)(Ld.Label,{className:"yst-block yst-mb-2 yst-max-w-sm yst-text-sm yst-font-medium yst-text-slate-800",children:s}),(0,Zt.jsxs)("div",{className:"yst-h-[40px] yst-max-w-sm yst-relative",children:[(0,Zt.jsxs)(Ld.Button,{"data-id":`button-${e}`,role:"button",className:"yst-w-full yst-h-full yst-rounded-md yst-border yst-border-slate-300 yst-flex yst-items-center yst-rounded-r-md yst-ps-3 yst-pe-2 focus-within:yst-border-primary-500 focus-within:yst-outline-none focus-within:yst-ring-1 focus-within:yst-ring-primary-500",as:"div",children:[(0,Zt.jsx)(Ld.Input,{"data-id":`input-${e}`,className:"yst-w-full yst-text-slate-700 yst-rounded-md yst-border-0 yst-outline-none yst-bg-white yst-py-1 yst-ps-0 yst-pe-10 yst-shadow-none sm:yst-text-sm",onChange:m,displayValue:Md,placeholder:i,onClick:y(r)}),(0,Zt.jsx)(nd,{className:"yst-h-5 yst-w-5 yst-text-slate-400 yst-inset-y-0 yst-end-0","aria-hidden":"true"})]}),c.length>0&&(0,Zt.jsxs)(Ld.Options,{className:"yst-absolute yst-z-10 yst-mt-1 yst-max-h-60 yst-w-full yst-overflow-auto yst-rounded-md yst-bg-white yst-text-base yst-shadow-lg yst-ring-1 yst-ring-black yst-ring-opacity-5 focus:yst-outline-none sm:yst-text-sm",children:[l&&(0,Zt.jsxs)("div",{className:"yst-flex yst-bg-white yst-sticky yst-z-20 yst-text-sm yst-italic yst-top-0 yst-py-2 yst-ps-3 yst-pe-9 yst-my-0",children:[(0,Zt.jsx)(dd,{className:"yst-text-primary-500 yst-h-4 yst-w-4 yst-me-2 yst-self-center"}),(0,Vt.__)("Loading…","wordpress-seo")]}),c.map((e=>(0,Zt.jsx)(Ld.Option,{value:e,className:f(e.value,t.value),children:({selected:s})=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("span",{className:Ps()("yst-block yst-truncate",(s||t.value===e.value)&&"yst-font-semibold"),children:e.label}),(s||t.value===e.value)&&(0,Zt.jsx)("span",{className:"yst-absolute yst-inset-y-0 yst-end-0 yst-flex yst-items-center yst-pe-4 yst-text-white",children:(0,Zt.jsx)(Os,{className:"yst-h-5 yst-w-5","aria-hidden":"true"})})]})},`yst-option-${e.value}`)))]})]})]})})}Ad.propTypes={onChange:Yt().func.isRequired,options:Yt().array.isRequired,id:Yt().string.isRequired,value:Yt().shape({value:Yt().number,label:Yt().string}),label:Yt().string,onQueryChange:Yt().func,placeholder:Yt().string,isLoading:Yt().bool};const Id={"X-WP-NONCE":wpApiSettings.nonce},Dd=wpApiSettings.root;function Fd({initialValue:e={id:0,name:""},onChangeCallback:t=c.noop,placeholder:s=(0,Vt.__)("Select a user","wordpress-seo")}){const[r,n]=(0,o.useState)([]),[a,i]=(0,o.useState)({value:e.id,label:e.name}),[l,d]=(0,o.useState)(!1),u=(0,o.useRef)(!0);(0,o.useEffect)((()=>()=>{u.current=!1}),[]);const p=(0,o.useCallback)((e=>{i(e),t(e)})),m=(0,o.useCallback)((0,c.debounce)((async e=>{d(!0);const t=await function(e=""){const t=`${Dd}wp/v2/users?per_page=20${e?`&search=${encodeURIComponent(e)}`:""}`;return(0,Xl.sendRequest)(t,{method:"GET",headers:Id})}(e);u.current&&(d(!1),n(t.map((e=>({value:e.id,label:e.name})))))}),500),[]);return(0,Zt.jsx)(Ad,{id:"yoast-configuration-user-select",value:a,label:(0,Vt.__)("Name","wordpress-seo"),onChange:p,onQueryChange:m,options:r,placeholder:s,isLoading:l})}function zd({dispatch:e,imageUrl:t="",fallbackImageUrl:s="",person:r={id:0,name:""},canEditUser:n}){const a=(0,o.useCallback)((()=>{id((t=>{e({type:"SET_PERSON_LOGO",payload:{...t}})}))}),[id]),i=(0,o.useCallback)((()=>{e({type:"REMOVE_PERSON_LOGO"})}),[e]),l=(0,o.useCallback)((t=>{e({type:"SET_PERSON",payload:t}),_a()({path:`yoast/v1/configuration/check_capability?user_id=${t.value}`}).then((t=>{e({type:"SET_CAN_EDIT_USER",payload:t.success})})).catch((e=>{console.error(e.message)}))}),[e]),c=(0,Vt.__)("You have selected the user %1$s as the person this site represents. This user profile information will now be used in search results. %2$sUpdate this profile to make sure the information is correct%3$s.","wordpress-seo"),d=(0,Vt.__)("You have selected the user %1$s as the person this site represents. This user profile information will now be used in search results. You're not allowed to update this user profile, so please ask this user or an admin to make sure the information is correct.","wordpress-seo"),u=(0,o.useMemo)((()=>Wt((0,Vt.sprintf)(n?c:d,`<b>${r.name}</b>`,"<a>","</a>"),{b:(0,Zt.jsx)("b",{}),a:(0,Zt.jsx)("a",{id:"yoast-configuration-user-selector-user-link",href:window.wpseoScriptData.userEditUrl.replace("{user_id}",r.id),target:"_blank",rel:"noopener noreferrer"})})),[r.id,r.name,n]);return(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)(Fd,{initialValue:r,onChangeCallback:l,name:"person_id",placeholder:(0,Vt.__)("Select a user","wordpress-seo")}),(0,Zt.jsx)(gl,{id:"user-representation-alert",isVisible:0!==r.id,type:"info",className:"yst-mt-5",children:u}),(0,Zt.jsx)(ud,{className:"yst-mt-6",id:"person-logo-input",url:t,fallbackUrl:s,onSelectImageClick:a,onRemoveImageClick:i,imageAltText:"",hasPreview:!0,label:(0,Vt.__)("Personal logo or avatar","wordpress-seo")})]})}Fd.propTypes={initialValue:Yt().shape({id:Yt().number,name:Yt().string}),onChangeCallback:Yt().func,placeholder:Yt().string},zd.propTypes={dispatch:Yt().func.isRequired,imageUrl:Yt().string,fallbackImageUrl:Yt().string,person:Yt().shape({id:Yt().number,name:Yt().string}),canEditUser:Yt().bool.isRequired};const Ud=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"}))})),Bd=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"}))}));function qd({onOrganizationOrPersonChange:e,dispatch:t,state:s,siteRepresentationEmpty:r}){const[n,a]=(0,o.useState)("emptyChoice"===s.companyOrPerson?"yst-opacity-0":"yst-opacity-100"),i=(0,o.useCallback)((()=>{a("yst-opacity-100")}),[a]),c=(0,o.useCallback)((e=>{t({type:"CHANGE_WEBSITE_NAME",payload:e.target.value})}),[t]),d=Wt((0,Vt.sprintf)( +(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(dc,{className:"yst-ms-1 yst-w-4 yst-h-4 yst-icon-rtl"})]})})]})]})}function pc(e,t){let[s,r]=(0,d.useState)(e),n=eo(e);return Qa((()=>r(n.current)),[n,r,...t]),s}uc.propTypes={indexingState:Yt().string.isRequired,setIndexingState:Yt().func.isRequired,showRunIndexationAlert:Yt().bool,isStepperFinished:Yt().bool};var mc=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(mc||{});function hc(e,t){let s=t.resolveItems();if(s.length<=0)return null;let r=t.resolveActiveIndex(),n=null!=r?r:-1,a=(()=>{switch(e.focus){case 0:return s.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=s.slice().reverse().findIndex(((e,s,r)=>!(-1!==n&&r.length-s-1>=n||t.resolveDisabled(e))));return-1===e?e:s.length-1-e}case 2:return s.findIndex(((e,s)=>!(s<=n||t.resolveDisabled(e))));case 3:{let e=s.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:s.length-1-e}case 4:return s.findIndex((s=>t.resolveId(s)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===a?r:a}let fc=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var yc,gc=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(gc||{}),vc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(vc||{}),bc=((yc=bc||{})[yc.Previous=-1]="Previous",yc[yc.Next=1]="Next",yc),xc=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(xc||{});function wc(e,t=0){var s;return e!==(null==(s=Zo(e))?void 0:s.body)&&Ma(t,{0:()=>e.matches(fc),1(){let t=e;for(;null!==t;){if(t.matches(fc))return!0;t=t.parentElement}return!1}})}function Sc(e,t=(e=>e)){return e.slice().sort(((e,s)=>{let r=t(e),n=t(s);if(null===r||null===n)return 0;let a=r.compareDocumentPosition(n);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function _c(e,t,s){let r=eo(t);(0,d.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,s),()=>document.removeEventListener(e,t,s)}),[e,s])}function Ec(e,t,s=!0){let r=(0,d.useRef)(!1);function n(s,n){if(!r.current||s.defaultPrevented)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),o=n(s);if(null!==o&&o.getRootNode().contains(o)){for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(o)||s.composed&&s.composedPath().includes(t))return}return!wc(o,xc.Loose)&&-1!==o.tabIndex&&s.preventDefault(),t(s,o)}}(0,d.useEffect)((()=>{requestAnimationFrame((()=>{r.current=s}))}),[s]);let a=(0,d.useRef)(null);_c("mousedown",(e=>{var t,s;r.current&&(a.current=(null==(s=null==(t=e.composedPath)?void 0:t.call(e))?void 0:s[0])||e.target)}),!0),_c("click",(e=>{!a.current||(n(e,(()=>a.current)),a.current=null)}),!0),_c("blur",(e=>n(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}["textarea","input"].join(",");var jc=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(jc||{});let kc=qa((function(e,t){let{features:s=1,...r}=e;return za({ourProps:{ref:t,"aria-hidden":2==(2&s)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&s)&&2!=(2&s)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}));function Cc(e={},t=null,s=[]){for(let[r,n]of Object.entries(e))Nc(s,Rc(t,r),n);return s}function Rc(e,t){return e?e+"["+t+"]":t}function Nc(e,t,s){if(Array.isArray(s))for(let[r,n]of s.entries())Nc(e,Rc(t,r.toString()),n);else s instanceof Date?e.push([t,s.toISOString()]):"boolean"==typeof s?e.push([t,s?"1":"0"]):"string"==typeof s?e.push([t,s]):"number"==typeof s?e.push([t,`${s}`]):null==s?e.push([t,""]):Cc(s,t,e)}function Pc(e,t,s){let[r,n]=(0,d.useState)(s),a=void 0!==e,o=(0,d.useRef)(a),i=(0,d.useRef)(!1),l=(0,d.useRef)(!1);return!a||o.current||i.current?!a&&o.current&&!l.current&&(l.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(i.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:r,so((e=>(a||n(e),null==t?void 0:t(e))))]}function Oc(e){return[e.screenX,e.screenY]}function Tc(){let e=(0,d.useRef)([-1,-1]);return{wasMoved(t){let s=Oc(t);return(e.current[0]!==s[0]||e.current[1]!==s[1])&&(e.current=s,!0)},update(t){e.current=Oc(t)}}}var Lc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Lc||{}),Mc=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Mc||{}),Ac=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ac||{}),Ic=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(Ic||{});function Dc(e,t=(e=>e)){let s=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=Sc(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),n=s?r.indexOf(s):null;return-1===n&&(n=null),{options:r,activeOptionIndex:n}}let Fc={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:s}=e.dataRef.current,r=e.options.findIndex((e=>s(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var s;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=Dc(e),n=hc(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:n,activationTrigger:null!=(s=t.trigger)?s:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let s=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),n=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+s).concat(e.options.slice(0,e.activeOptionIndex+s)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),a=n?e.options.indexOf(n):-1;return-1===a||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let s={id:t.id,dataRef:t.dataRef},r=Dc(e,(e=>[...e,s]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(s)),{...e,...r}},6:(e,t)=>{let s=Dc(e,(e=>{let s=e.findIndex((e=>e.id===t.id));return-1!==s&&e.splice(s,1),e}));return{...e,...s,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},zc=(0,d.createContext)(null);function Uc(e){let t=(0,d.useContext)(zc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Uc),t}return t}zc.displayName="ListboxActionsContext";let Bc=(0,d.createContext)(null);function qc(e){let t=(0,d.useContext)(Bc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,qc),t}return t}function $c(e,t){return Ma(t.type,Fc,e,t)}Bc.displayName="ListboxDataContext";let Hc=d.Fragment,Vc=qa((function(e,t){let{value:s,defaultValue:r,name:n,onChange:a,by:o=((e,t)=>e===t),disabled:i=!1,horizontal:l=!1,multiple:c=!1,...u}=e;const p=l?"horizontal":"vertical";let m=ao(t),[h=(c?[]:void 0),f]=Pc(s,a,r),[y,g]=(0,d.useReducer)($c,{dataRef:(0,d.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=(0,d.useRef)({static:!1,hold:!1}),b=(0,d.useRef)(null),x=(0,d.useRef)(null),w=(0,d.useRef)(null),S=so("string"==typeof o?(e,t)=>{let s=o;return(null==e?void 0:e[s])===(null==t?void 0:t[s])}:o),_=(0,d.useCallback)((e=>Ma(E.mode,{1:()=>h.some((t=>S(t,e))),0:()=>S(h,e)})),[h]),E=(0,d.useMemo)((()=>({...y,value:h,disabled:i,mode:c?1:0,orientation:p,compare:S,isSelected:_,optionsPropsRef:v,labelRef:b,buttonRef:x,optionsRef:w})),[h,i,c,y]);Qa((()=>{y.dataRef.current=E}),[E]),Ec([E.buttonRef,E.optionsRef],((e,t)=>{var s;g({type:1}),wc(t,xc.Loose)||(e.preventDefault(),null==(s=E.buttonRef.current)||s.focus())}),0===E.listboxState);let j=(0,d.useMemo)((()=>({open:0===E.listboxState,disabled:i,value:h})),[E,i,h]),k=so((e=>{let t=E.options.find((t=>t.id===e));!t||L(t.dataRef.current.value)})),C=so((()=>{if(null!==E.activeOptionIndex){let{dataRef:e,id:t}=E.options[E.activeOptionIndex];L(e.current.value),g({type:2,focus:mc.Specific,id:t})}})),R=so((()=>g({type:0}))),N=so((()=>g({type:1}))),P=so(((e,t,s)=>e===mc.Specific?g({type:2,focus:mc.Specific,id:t,trigger:s}):g({type:2,focus:e,trigger:s}))),O=so(((e,t)=>(g({type:5,id:e,dataRef:t}),()=>g({type:6,id:e})))),T=so((e=>(g({type:7,id:e}),()=>g({type:7,id:null})))),L=so((e=>Ma(E.mode,{0:()=>null==f?void 0:f(e),1(){let t=E.value.slice(),s=t.findIndex((t=>S(t,e)));return-1===s?t.push(e):t.splice(s,1),null==f?void 0:f(t)}}))),M=so((e=>g({type:3,value:e}))),A=so((()=>g({type:4}))),I=(0,d.useMemo)((()=>({onChange:L,registerOption:O,registerLabel:T,goToOption:P,closeListbox:N,openListbox:R,selectActiveOption:C,selectOption:k,search:M,clearSearch:A})),[]),D={ref:m},F=(0,d.useRef)(null),z=co();return(0,d.useEffect)((()=>{!F.current||void 0!==r&&z.addEventListener(F.current,"reset",(()=>{L(r)}))}),[F,L]),d.createElement(zc.Provider,{value:I},d.createElement(Bc.Provider,{value:E},d.createElement(Ka,{value:Ma(E.listboxState,{0:Wa.Open,1:Wa.Closed})},null!=n&&null!=h&&Cc({[n]:h}).map((([e,t],s)=>d.createElement(kc,{features:jc.Hidden,ref:0===s?e=>{var t;F.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...$a({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),za({ourProps:D,theirProps:u,slot:j,defaultTag:Hc,name:"Listbox"}))))})),Wc=qa((function(e,t){var s;let r=Vo(),{id:n=`headlessui-listbox-button-${r}`,...a}=e,o=qc("Listbox.Button"),i=Uc("Listbox.Button"),l=ao(o.buttonRef,t),c=co(),u=so((e=>{switch(e.key){case Wo.Space:case Wo.Enter:case Wo.ArrowDown:e.preventDefault(),i.openListbox(),c.nextFrame((()=>{o.value||i.goToOption(mc.First)}));break;case Wo.ArrowUp:e.preventDefault(),i.openListbox(),c.nextFrame((()=>{o.value||i.goToOption(mc.Last)}))}})),p=so((e=>{e.key===Wo.Space&&e.preventDefault()})),m=so((e=>{if(Go(e.currentTarget))return e.preventDefault();0===o.listboxState?(i.closeListbox(),c.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),i.openListbox())})),h=pc((()=>{if(o.labelId)return[o.labelId,n].join(" ")}),[o.labelId,n]),f=(0,d.useMemo)((()=>({open:0===o.listboxState,disabled:o.disabled,value:o.value})),[o]);return za({ourProps:{ref:l,id:n,type:Yo(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(s=o.optionsRef.current)?void 0:s.id,"aria-expanded":o.disabled?void 0:0===o.listboxState,"aria-labelledby":h,disabled:o.disabled,onKeyDown:u,onKeyUp:p,onClick:m},theirProps:a,slot:f,defaultTag:"button",name:"Listbox.Button"})})),Gc=qa((function(e,t){let s=Vo(),{id:r=`headlessui-listbox-label-${s}`,...n}=e,a=qc("Listbox.Label"),o=Uc("Listbox.Label"),i=ao(a.labelRef,t);Qa((()=>o.registerLabel(r)),[r]);let l=so((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),c=(0,d.useMemo)((()=>({open:0===a.listboxState,disabled:a.disabled})),[a]);return za({ourProps:{ref:i,id:r,onClick:l},theirProps:n,slot:c,defaultTag:"label",name:"Listbox.Label"})})),Kc=Da.RenderStrategy|Da.Static,Yc=qa((function(e,t){var s;let r=Vo(),{id:n=`headlessui-listbox-options-${r}`,...a}=e,o=qc("Listbox.Options"),i=Uc("Listbox.Options"),l=ao(o.optionsRef,t),c=co(),u=co(),p=Ga(),m=null!==p?p===Wa.Open:0===o.listboxState;(0,d.useEffect)((()=>{var e;let t=o.optionsRef.current;!t||0===o.listboxState&&t!==(null==(e=Zo(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[o.listboxState,o.optionsRef]);let h=so((e=>{switch(u.dispose(),e.key){case Wo.Space:if(""!==o.searchQuery)return e.preventDefault(),e.stopPropagation(),i.search(e.key);case Wo.Enter:if(e.preventDefault(),e.stopPropagation(),null!==o.activeOptionIndex){let{dataRef:e}=o.options[o.activeOptionIndex];i.onChange(e.current.value)}0===o.mode&&(i.closeListbox(),oo().nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case Ma(o.orientation,{vertical:Wo.ArrowDown,horizontal:Wo.ArrowRight}):return e.preventDefault(),e.stopPropagation(),i.goToOption(mc.Next);case Ma(o.orientation,{vertical:Wo.ArrowUp,horizontal:Wo.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),i.goToOption(mc.Previous);case Wo.Home:case Wo.PageUp:return e.preventDefault(),e.stopPropagation(),i.goToOption(mc.First);case Wo.End:case Wo.PageDown:return e.preventDefault(),e.stopPropagation(),i.goToOption(mc.Last);case Wo.Escape:return e.preventDefault(),e.stopPropagation(),i.closeListbox(),c.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case Wo.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(i.search(e.key),u.setTimeout((()=>i.clearSearch()),350))}})),f=pc((()=>{var e,t,s;return null!=(s=null==(e=o.labelRef.current)?void 0:e.id)?s:null==(t=o.buttonRef.current)?void 0:t.id}),[o.labelRef.current,o.buttonRef.current]),y=(0,d.useMemo)((()=>({open:0===o.listboxState})),[o]);return za({ourProps:{"aria-activedescendant":null===o.activeOptionIndex||null==(s=o.options[o.activeOptionIndex])?void 0:s.id,"aria-multiselectable":1===o.mode||void 0,"aria-labelledby":f,"aria-orientation":o.orientation,id:n,onKeyDown:h,role:"listbox",tabIndex:0,ref:l},theirProps:a,slot:y,defaultTag:"ul",features:Kc,visible:m,name:"Listbox.Options"})})),Zc=qa((function(e,t){let s=Vo(),{id:r=`headlessui-listbox-option-${s}`,disabled:n=!1,value:a,...o}=e,i=qc("Listbox.Option"),l=Uc("Listbox.Option"),c=null!==i.activeOptionIndex&&i.options[i.activeOptionIndex].id===r,u=i.isSelected(a),p=(0,d.useRef)(null),m=eo({disabled:n,value:a,domRef:p,get textValue(){var e,t;return null==(t=null==(e=p.current)?void 0:e.textContent)?void 0:t.toLowerCase()}}),h=ao(t,p);Qa((()=>{if(0!==i.listboxState||!c||0===i.activationTrigger)return;let e=oo();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[p,c,i.listboxState,i.activationTrigger,i.activeOptionIndex]),Qa((()=>l.registerOption(r,m)),[m,r]);let f=so((e=>{if(n)return e.preventDefault();l.onChange(a),0===i.mode&&(l.closeListbox(),oo().nextFrame((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),y=so((()=>{if(n)return l.goToOption(mc.Nothing);l.goToOption(mc.Specific,r)})),g=Tc(),v=so((e=>g.update(e))),b=so((e=>{!g.wasMoved(e)||n||c||l.goToOption(mc.Specific,r,0)})),x=so((e=>{!g.wasMoved(e)||n||!c||l.goToOption(mc.Nothing)})),w=(0,d.useMemo)((()=>({active:c,selected:u,disabled:n})),[c,u,n]);return za({ourProps:{id:r,ref:h,role:"option",tabIndex:!0===n?void 0:-1,"aria-disabled":!0===n||void 0,"aria-selected":u,disabled:void 0,onClick:f,onFocus:y,onPointerEnter:v,onMouseEnter:v,onPointerMove:b,onMouseMove:b,onPointerLeave:x,onMouseLeave:x},theirProps:o,slot:w,defaultTag:"li",name:"Listbox.Option"})})),Jc=Object.assign(Vc,{Button:Wc,Label:Gc,Options:Yc,Option:Zc});const Qc=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}))}));function Xc({id:e,value:t,choices:s,label:r="",onChange:n,error:a={message:"",isVisible:!1},disabled:i=!1}){const l=(0,o.useMemo)((()=>{const e=s.find((e=>t===e.value));return e?e.label:(0,Vt.__)("Select an option","wordpress-seo")}),[s,t]);return(0,Zt.jsx)(Jc,{id:e,as:"div",value:t,onChange:n,disabled:i,children:({open:n})=>(0,Zt.jsxs)(Zt.Fragment,{children:[r&&(0,Zt.jsx)(Jc.Label,{className:"yst-block yst-max-w-sm yst-mb-2 yst-text-sm yst-font-medium yst-text-slate-800",children:r}),(0,Zt.jsxs)("div",{className:"yst-max-w-sm",children:[(0,Zt.jsxs)("div",{className:"yst-relative",children:[(0,Zt.jsxs)(Jc.Button,{"data-id":`button-${e} `,className:Ss()("yst-relative yst-h-[40px] yst-w-full yst-leading-6 yst-py-2 yst-ps-3 yst-pe-10 yst-text-start yst-bg-white yst-border yst-border-slate-300 yst-rounded-md yst-shadow-sm yst-cursor-default focus:yst-outline-none focus:yst-ring-1 focus:yst-ring-primary-500 focus:yst-border-primary-500 sm:yst-text-sm",{"yst-border-red-300":a.isVisible,"yst-opacity-50":i},"emptyChoice"===t?"yst-text-slate-400":"yst-text-slate-700"),...Hi(e,a),children:[(0,Zt.jsx)("span",{className:"yst-block yst-truncate",children:l}),(0,Zt.jsx)("span",{className:"yst-absolute yst-inset-y-0 yst-end-0 yst-flex yst-items-center yst-pe-2 yst-pointer-events-none",children:(0,Zt.jsx)(Qc,{className:"yst-w-5 yst-h-5 yst-text-slate-400","aria-hidden":"true"})}),a.isVisible&&(0,Zt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-8",children:(0,Zt.jsx)(Ji,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"})})]}),(0,Zt.jsx)(jo,{show:n,as:o.Fragment,leave:"yst-transition yst-ease-in yst-duration-100",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",children:(0,Zt.jsx)(Jc.Options,{static:!0,className:"yst-absolute yst-z-10 yst-w-full yst-mt-1 yst-overflow-auto yst-bg-white yst-rounded-md yst-shadow-lg yst-max-h-60 yst-ring-1 yst-ring-black yst-ring-opacity-5 focus:yst-outline-none sm:yst-text-sm",children:s.map((e=>(0,Zt.jsx)(Jc.Option,{as:o.Fragment,value:e.value,children:({selected:t,active:s})=>(0,Zt.jsxs)("li",{className:Vi({selected:t,active:s}),children:[(0,Zt.jsx)("span",{className:Ss()(t?"yst-font-semibold":"yst-font-normal","yst-block yst-truncate"),children:e.label}),t?(0,Zt.jsx)("span",{className:Ss()("yst-text-white yst-absolute yst-inset-y-0 yst-end-0 yst-flex yst-items-center yst-pe-4"),children:(0,Zt.jsx)(hl,{className:"yst-w-5 yst-h-5","aria-hidden":"true"})}):null]})},e.id)))})})]}),a.isVisible&&(0,Zt.jsx)(Xi,{id:$i(e),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:a.message})]})]})})}Xc.propTypes={value:Kt.PropTypes.oneOfType([Kt.PropTypes.string,Kt.PropTypes.number]).isRequired,choices:Kt.PropTypes.arrayOf(Kt.PropTypes.shape({id:Kt.PropTypes.oneOfType([Kt.PropTypes.number,Kt.PropTypes.string]).isRequired,value:Kt.PropTypes.string.isRequired,label:Kt.PropTypes.string.isRequired})).isRequired,label:Kt.PropTypes.string,onChange:Kt.PropTypes.func.isRequired,id:Kt.PropTypes.string.isRequired,error:Kt.PropTypes.shape({message:Kt.PropTypes.string,isVisible:Kt.PropTypes.bool}),disabled:Kt.PropTypes.bool},window.yoast.socialMetadataForms;const ed=e=>({type:e.subtype,width:e.width,height:e.height,url:e.url,id:e.id,sizes:e.sizes,alt:e.alt||e.title||e.name});function td(e){(function(e){const t=window.wp.media();return t.on("select",(()=>{const s=t.state().get("selection").first();e(ed(s.attributes))})),t})(e).open()}const sd=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"}))})),rd=({className:e=""})=>(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:Ss()("yst-animate-spin",e),children:[(0,Zt.jsx)("circle",{className:"yst-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Zt.jsx)("path",{className:"yst-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]});rd.propTypes={className:Yt().string};const nd=rd;function ad({id:e,imageAltText:t="",url:s="",fallbackUrl:r="",label:n="",onSelectImageClick:a=c.noop,onRemoveImageClick:i=c.noop,className:d="",error:u={message:"",isVisible:!1},status:p="idle"}){const m=Ss()("yst-relative yst-w-full yst-h-48 yst-mt-2 yst-flex yst-justify-center yst-items-center yst-rounded-md yst-mb-4 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-offset-2 focus:yst-ring-primary-500",u.isVisible?"yst-border-red-300":"yst-border-slate-300","yst-border-2 yst-border-dashed"),h=(0,o.useCallback)((()=>"loading"===p?(0,Zt.jsxs)("div",{className:"yst-text-center",children:[(0,Zt.jsx)(nd,{size:"10",color:"gray-400",className:"yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-mt-3",children:(0,Vt.__)("Uploading image…","wordpress-seo")})]}):s?(0,Zt.jsx)("img",{src:s,alt:t,className:"yst-w-full yst-h-full yst-object-contain"}):r?(0,Zt.jsx)("img",{src:r,alt:t,className:"yst-w-full yst-h-full yst-object-contain"}):(0,Zt.jsx)(sd,{id:`${e}-no-image-svg`,className:"yst-w-14 yst-h-14 yst-text-slate-500"})),[p,e,s,t]);return(0,Zt.jsxs)("div",{className:Ss()("yst-max-w-sm",d),...Hi(e,u),children:[(0,Zt.jsx)("label",{htmlFor:e,className:"yst-block yst-mb-2 yst-font-medium yst-text-slate-800",children:n}),(0,Zt.jsx)("button",{id:e,className:m,onClick:a,type:"button","data-hiive-event-name":"clicked_select_image",children:h()}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)(l.Button,{id:s?e+"__replace-image":e+"__select-image",variant:"secondary",className:"yst-me-2",onClick:a,"data-hiive-event-name":s?"clicked_replace_image":"clicked_select_image",children:s?(0,Vt.__)("Replace image","wordpress-seo"):(0,Vt.__)("Select image","wordpress-seo")}),s&&(0,Zt.jsx)(l.Link,{id:`${e}__remove-image`,as:"button",type:"button",variant:"error",onClick:i,className:"yst-px-3 yst-py-2 yst-rounded-md","data-hiive-event-name":"clicked_remove_image",children:(0,Vt.__)("Remove image","wordpress-seo")})]}),"error"===p&&(0,Zt.jsx)("p",{className:"yst-mt-2 yst-text-sm yst-text-red-600",children:u}),u.isVisible&&(0,Zt.jsx)(Xi,{id:$i(e),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:u.message})]})}function od({dispatch:e,imageUrl:t="",fallbackImageUrl:s="",organizationName:r="",fallbackOrganizationName:n="",errorFields:a=[]}){const i=(0,o.useCallback)((()=>{td((t=>{e({type:"SET_COMPANY_LOGO",payload:{...t}})}))}),[td]),l=(0,o.useCallback)((()=>{e({type:"REMOVE_COMPANY_LOGO"})}),[e]),c=(0,o.useCallback)((t=>{e({type:"CHANGE_COMPANY_NAME",payload:t.target.value})}),[e]);return(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)(tl,{className:"yst-mt-6",id:"organization-name-input",name:"organization-name",label:(0,Vt.__)("Organization name","wordpress-seo"),value:""===r?n:r,onChange:c,feedback:{isVisible:a.includes("company_name"),message:[(0,Vt.__)("We could not save the organization name. Please check the value.","wordpress-seo")],type:"error"}}),(0,Zt.jsx)(ad,{className:"yst-mt-6",id:"organization-logo-input",url:t,fallbackUrl:s,onSelectImageClick:i,onRemoveImageClick:l,imageAltText:"",hasPreview:!0,label:(0,Vt.__)("Organization logo","wordpress-seo")})]})}function id(e,t){let s=(0,d.useRef)([]),r=so(e);(0,d.useEffect)((()=>{let e=[...s.current];for(let[n,a]of t.entries())if(s.current[n]!==a){let n=r(t,e);return s.current=t,n}}),[r,...t])}ad.propTypes={label:Yt().string,id:Yt().string.isRequired,url:Yt().string,fallbackUrl:Yt().string,imageAltText:Yt().string,onRemoveImageClick:Yt().func,onSelectImageClick:Yt().func,className:Yt().string,error:Yt().shape({message:Yt().string,isVisible:Yt().bool}),status:Yt().string},od.propTypes={dispatch:Yt().func.isRequired,imageUrl:Yt().string,fallbackImageUrl:Yt().string,organizationName:Yt().string,fallbackOrganizationName:Yt().string,errorFields:Yt().array};var ld=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ld||{}),cd=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(cd||{}),dd=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(dd||{}),ud=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(ud||{});function pd(e,t=(e=>e)){let s=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=Sc(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),n=s?r.indexOf(s):null;return-1===n&&(n=null),{options:r,activeOptionIndex:n}}let md={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:s}=e.dataRef.current,r=e.options.findIndex((e=>s(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var s;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let r=pd(e);if(null===r.activeOptionIndex){let e=r.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(r.activeOptionIndex=e)}let n=hc(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,activeOptionIndex:n,activationTrigger:null!=(s=t.trigger)?s:1}},3:(e,t)=>{let s={id:t.id,dataRef:t.dataRef},r=pd(e,(e=>[...e,s]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(s));let n={...e,...r,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(n.activeOptionIndex=0),n},4:(e,t)=>{let s=pd(e,(e=>{let s=e.findIndex((e=>e.id===t.id));return-1!==s&&e.splice(s,1),e}));return{...e,...s,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},hd=(0,d.createContext)(null);function fd(e){let t=(0,d.useContext)(hd);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,fd),t}return t}hd.displayName="ComboboxActionsContext";let yd=(0,d.createContext)(null);function gd(e){let t=(0,d.useContext)(yd);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,gd),t}return t}function vd(e,t){return Ma(t.type,md,e,t)}yd.displayName="ComboboxDataContext";let bd=d.Fragment,xd=qa((function(e,t){let{value:s,defaultValue:r,onChange:n,name:a,by:o=((e,t)=>e===t),disabled:i=!1,__demoMode:l=!1,nullable:c=!1,multiple:u=!1,...p}=e,[m=(u?[]:void 0),h]=Pc(s,n,r),[f,y]=(0,d.useReducer)(vd,{dataRef:(0,d.createRef)(),comboboxState:l?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),g=(0,d.useRef)(!1),v=(0,d.useRef)({static:!1,hold:!1}),b=(0,d.useRef)(null),x=(0,d.useRef)(null),w=(0,d.useRef)(null),S=(0,d.useRef)(null),_=so("string"==typeof o?(e,t)=>{let s=o;return(null==e?void 0:e[s])===(null==t?void 0:t[s])}:o),E=(0,d.useCallback)((e=>Ma(j.mode,{1:()=>m.some((t=>_(t,e))),0:()=>_(m,e)})),[m]),j=(0,d.useMemo)((()=>({...f,optionsPropsRef:v,labelRef:b,inputRef:x,buttonRef:w,optionsRef:S,value:m,defaultValue:r,disabled:i,mode:u?1:0,get activeOptionIndex(){if(g.current&&null===f.activeOptionIndex&&f.options.length>0){let e=f.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return f.activeOptionIndex},compare:_,isSelected:E,nullable:c,__demoMode:l})),[m,r,i,u,c,l,f]);Qa((()=>{f.dataRef.current=j}),[j]),Ec([j.buttonRef,j.inputRef,j.optionsRef],(()=>A.closeCombobox()),0===j.comboboxState);let k=(0,d.useMemo)((()=>({open:0===j.comboboxState,disabled:i,activeIndex:j.activeOptionIndex,activeOption:null===j.activeOptionIndex?null:j.options[j.activeOptionIndex].dataRef.current.value,value:m})),[j,i,m]),C=so((e=>{let t=j.options.find((t=>t.id===e));!t||M(t.dataRef.current.value)})),R=so((()=>{if(null!==j.activeOptionIndex){let{dataRef:e,id:t}=j.options[j.activeOptionIndex];M(e.current.value),A.goToOption(mc.Specific,t)}})),N=so((()=>{y({type:0}),g.current=!0})),P=so((()=>{y({type:1}),g.current=!1})),O=so(((e,t,s)=>(g.current=!1,e===mc.Specific?y({type:2,focus:mc.Specific,id:t,trigger:s}):y({type:2,focus:e,trigger:s})))),T=so(((e,t)=>(y({type:3,id:e,dataRef:t}),()=>y({type:4,id:e})))),L=so((e=>(y({type:5,id:e}),()=>y({type:5,id:null})))),M=so((e=>Ma(j.mode,{0:()=>null==h?void 0:h(e),1(){let t=j.value.slice(),s=t.findIndex((t=>_(t,e)));return-1===s?t.push(e):t.splice(s,1),null==h?void 0:h(t)}}))),A=(0,d.useMemo)((()=>({onChange:M,registerOption:T,registerLabel:L,goToOption:O,closeCombobox:P,openCombobox:N,selectActiveOption:R,selectOption:C})),[]),I=null===t?{}:{ref:t},D=(0,d.useRef)(null),F=co();return(0,d.useEffect)((()=>{!D.current||void 0!==r&&F.addEventListener(D.current,"reset",(()=>{M(r)}))}),[D,M]),d.createElement(hd.Provider,{value:A},d.createElement(yd.Provider,{value:j},d.createElement(Ka,{value:Ma(j.comboboxState,{0:Wa.Open,1:Wa.Closed})},null!=a&&null!=m&&Cc({[a]:m}).map((([e,t],s)=>d.createElement(kc,{features:jc.Hidden,ref:0===s?e=>{var t;D.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...$a({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),za({ourProps:I,theirProps:p,slot:k,defaultTag:bd,name:"Combobox"}))))})),wd=qa((function(e,t){var s,r,n,a;let o=Vo(),{id:i=`headlessui-combobox-input-${o}`,onChange:l,displayValue:c,type:u="text",...p}=e,m=gd("Combobox.Input"),h=fd("Combobox.Input"),f=ao(m.inputRef,t),y=(0,d.useRef)(!1),g=co(),v=function(){var e;return"function"==typeof c&&void 0!==m.value?null!=(e=c(m.value))?e:"":"string"==typeof m.value?m.value:""}();id((([e,t],[s,r])=>{y.current||!m.inputRef.current||(0===r&&1===t||e!==s)&&(m.inputRef.current.value=e)}),[v,m.comboboxState]),id((([e],[t])=>{if(0===e&&1===t){let e=m.inputRef.current;if(!e)return;let t=e.value,{selectionStart:s,selectionEnd:r,selectionDirection:n}=e;e.value="",e.value=t,null!==n?e.setSelectionRange(s,r,n):e.setSelectionRange(s,r)}}),[m.comboboxState]);let b=(0,d.useRef)(!1),x=so((()=>{b.current=!0})),w=so((()=>{setTimeout((()=>{b.current=!1}))})),S=so((e=>{switch(y.current=!0,e.key){case Wo.Backspace:case Wo.Delete:if(0!==m.mode||!m.nullable)return;let t=e.currentTarget;g.requestAnimationFrame((()=>{""===t.value&&(h.onChange(null),m.optionsRef.current&&(m.optionsRef.current.scrollTop=0),h.goToOption(mc.Nothing))}));break;case Wo.Enter:if(y.current=!1,0!==m.comboboxState||b.current)return;if(e.preventDefault(),e.stopPropagation(),null===m.activeOptionIndex)return void h.closeCombobox();h.selectActiveOption(),0===m.mode&&h.closeCombobox();break;case Wo.ArrowDown:return y.current=!1,e.preventDefault(),e.stopPropagation(),Ma(m.comboboxState,{0:()=>{h.goToOption(mc.Next)},1:()=>{h.openCombobox()}});case Wo.ArrowUp:return y.current=!1,e.preventDefault(),e.stopPropagation(),Ma(m.comboboxState,{0:()=>{h.goToOption(mc.Previous)},1:()=>{h.openCombobox(),g.nextFrame((()=>{m.value||h.goToOption(mc.Last)}))}});case Wo.Home:if(e.shiftKey)break;return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(mc.First);case Wo.PageUp:return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(mc.First);case Wo.End:if(e.shiftKey)break;return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(mc.Last);case Wo.PageDown:return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(mc.Last);case Wo.Escape:return y.current=!1,0!==m.comboboxState?void 0:(e.preventDefault(),m.optionsRef.current&&!m.optionsPropsRef.current.static&&e.stopPropagation(),h.closeCombobox());case Wo.Tab:if(y.current=!1,0!==m.comboboxState)return;0===m.mode&&h.selectActiveOption(),h.closeCombobox()}})),_=so((e=>{h.openCombobox(),null==l||l(e)})),E=so((()=>{y.current=!1})),j=pc((()=>{if(m.labelId)return[m.labelId].join(" ")}),[m.labelId]),k=(0,d.useMemo)((()=>({open:0===m.comboboxState,disabled:m.disabled})),[m]);return za({ourProps:{ref:f,id:i,role:"combobox",type:u,"aria-controls":null==(s=m.optionsRef.current)?void 0:s.id,"aria-expanded":m.disabled?void 0:0===m.comboboxState,"aria-activedescendant":null===m.activeOptionIndex||null==(r=m.options[m.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===m.mode||void 0,"aria-labelledby":j,"aria-autocomplete":"list",defaultValue:null!=(a=null!=(n=e.defaultValue)?n:void 0!==m.defaultValue?null==c?void 0:c(m.defaultValue):null)?a:m.defaultValue,disabled:m.disabled,onCompositionStart:x,onCompositionEnd:w,onKeyDown:S,onChange:_,onBlur:E},theirProps:p,slot:k,defaultTag:"input",name:"Combobox.Input"})})),Sd=qa((function(e,t){var s;let r=gd("Combobox.Button"),n=fd("Combobox.Button"),a=ao(r.buttonRef,t),o=Vo(),{id:i=`headlessui-combobox-button-${o}`,...l}=e,c=co(),u=so((e=>{switch(e.key){case Wo.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&n.openCombobox(),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Wo.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(n.openCombobox(),c.nextFrame((()=>{r.value||n.goToOption(mc.Last)}))),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Wo.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),n.closeCombobox(),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),p=so((e=>{if(Go(e.currentTarget))return e.preventDefault();0===r.comboboxState?n.closeCombobox():(e.preventDefault(),n.openCombobox()),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),m=pc((()=>{if(r.labelId)return[r.labelId,i].join(" ")}),[r.labelId,i]),h=(0,d.useMemo)((()=>({open:0===r.comboboxState,disabled:r.disabled,value:r.value})),[r]);return za({ourProps:{ref:a,id:i,type:Yo(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(s=r.optionsRef.current)?void 0:s.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":m,disabled:r.disabled,onClick:p,onKeyDown:u},theirProps:l,slot:h,defaultTag:"button",name:"Combobox.Button"})})),_d=qa((function(e,t){let s=Vo(),{id:r=`headlessui-combobox-label-${s}`,...n}=e,a=gd("Combobox.Label"),o=fd("Combobox.Label"),i=ao(a.labelRef,t);Qa((()=>o.registerLabel(r)),[r]);let l=so((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})})),c=(0,d.useMemo)((()=>({open:0===a.comboboxState,disabled:a.disabled})),[a]);return za({ourProps:{ref:i,id:r,onClick:l},theirProps:n,slot:c,defaultTag:"label",name:"Combobox.Label"})})),Ed=Da.RenderStrategy|Da.Static,jd=qa((function(e,t){let s=Vo(),{id:r=`headlessui-combobox-options-${s}`,hold:n=!1,...a}=e,o=gd("Combobox.Options"),i=ao(o.optionsRef,t),l=Ga(),c=null!==l?l===Wa.Open:0===o.comboboxState;Qa((()=>{var t;o.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[o.optionsPropsRef,e.static]),Qa((()=>{o.optionsPropsRef.current.hold=n}),[o.optionsPropsRef,n]),function({container:e,accept:t,walk:s,enabled:r=!0}){let n=(0,d.useRef)(t),a=(0,d.useRef)(s);(0,d.useEffect)((()=>{n.current=t,a.current=s}),[t,s]),Qa((()=>{if(!e||!r)return;let t=Zo(e);if(!t)return;let s=n.current,o=a.current,i=Object.assign((e=>s(e)),{acceptNode:s}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,i,!1);for(;l.nextNode();)o(l.currentNode)}),[e,r,n,a])}({container:o.optionsRef.current,enabled:0===o.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let u=pc((()=>{var e,t;return null!=(t=o.labelId)?t:null==(e=o.buttonRef.current)?void 0:e.id}),[o.labelId,o.buttonRef.current]);return za({ourProps:{"aria-labelledby":u,role:"listbox",id:r,ref:i},theirProps:a,slot:(0,d.useMemo)((()=>({open:0===o.comboboxState})),[o]),defaultTag:"ul",features:Ed,visible:c,name:"Combobox.Options"})})),kd=qa((function(e,t){var s,r;let n=Vo(),{id:a=`headlessui-combobox-option-${n}`,disabled:o=!1,value:i,...l}=e,c=gd("Combobox.Option"),u=fd("Combobox.Option"),p=null!==c.activeOptionIndex&&c.options[c.activeOptionIndex].id===a,m=c.isSelected(i),h=(0,d.useRef)(null),f=eo({disabled:o,value:i,domRef:h,textValue:null==(r=null==(s=h.current)?void 0:s.textContent)?void 0:r.toLowerCase()}),y=ao(t,h),g=so((()=>u.selectOption(a)));Qa((()=>u.registerOption(a,f)),[f,a]);let v=(0,d.useRef)(!c.__demoMode);Qa((()=>{if(!c.__demoMode)return;let e=oo();return e.requestAnimationFrame((()=>{v.current=!0})),e.dispose}),[]),Qa((()=>{if(0!==c.comboboxState||!p||!v.current||0===c.activationTrigger)return;let e=oo();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=h.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[h,p,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let b=so((e=>{if(o)return e.preventDefault();g(),0===c.mode&&u.closeCombobox()})),x=so((()=>{if(o)return u.goToOption(mc.Nothing);u.goToOption(mc.Specific,a)})),w=Tc(),S=so((e=>w.update(e))),_=so((e=>{!w.wasMoved(e)||o||p||u.goToOption(mc.Specific,a,0)})),E=so((e=>{!w.wasMoved(e)||o||!p||c.optionsPropsRef.current.hold||u.goToOption(mc.Nothing)})),j=(0,d.useMemo)((()=>({active:p,selected:m,disabled:o})),[p,m,o]);return za({ourProps:{id:a,ref:y,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":m,disabled:void 0,onClick:b,onFocus:x,onPointerEnter:S,onMouseEnter:S,onPointerMove:_,onMouseMove:_,onPointerLeave:E,onMouseLeave:E},theirProps:l,slot:j,defaultTag:"li",name:"Combobox.Option"})})),Cd=Object.assign(xd,{Input:wd,Button:Sd,Label:_d,Options:jd,Option:kd});function Rd(e){return e&&e.label?e.label:null}function Nd({id:e,value:t=null,label:s="",onChange:r,onQueryChange:n=null,options:a,placeholder:i=(0,Vt.__)("Select an option","wordpress-seo"),isLoading:l=!1}){const[c,d]=(0,o.useState)(a),[u,p]=(0,o.useState)(""),m=(0,o.useCallback)((e=>{p(e.target.value)}),[p]),h=(0,o.useCallback)((()=>{p("")}),[p]);(0,o.useEffect)((()=>{d(a)}),[a]),(0,o.useEffect)((()=>{n?n(u):d(a.filter((e=>e.label.toLowerCase().includes(u.toLowerCase()))))}),[u,n]);const f=(0,o.useCallback)(((e,t)=>({selected:s,active:r})=>Vi({selected:s||e===t,active:r})),[Vi]),y=(0,o.useCallback)((e=>t=>{e&&t.stopPropagation()}),[]);return(0,Zt.jsx)(Cd,{id:e,as:"div",value:t,onChange:r,onBlur:h,children:({open:r})=>(0,Zt.jsxs)(o.Fragment,{children:[s&&(0,Zt.jsx)(Cd.Label,{className:"yst-block yst-mb-2 yst-max-w-sm yst-text-sm yst-font-medium yst-text-slate-800",children:s}),(0,Zt.jsxs)("div",{className:"yst-h-[40px] yst-max-w-sm yst-relative",children:[(0,Zt.jsxs)(Cd.Button,{"data-id":`button-${e}`,role:"button",className:"yst-w-full yst-h-full yst-rounded-md yst-border yst-border-slate-300 yst-flex yst-items-center yst-rounded-r-md yst-ps-3 yst-pe-2 focus-within:yst-border-primary-500 focus-within:yst-outline-none focus-within:yst-ring-1 focus-within:yst-ring-primary-500",as:"div",children:[(0,Zt.jsx)(Cd.Input,{"data-id":`input-${e}`,className:"yst-w-full yst-text-slate-700 yst-rounded-md yst-border-0 yst-outline-none yst-bg-white yst-py-1 yst-ps-0 yst-pe-10 yst-shadow-none sm:yst-text-sm",onChange:m,displayValue:Rd,placeholder:i,onClick:y(r)}),(0,Zt.jsx)(Qc,{className:"yst-h-5 yst-w-5 yst-text-slate-400 yst-inset-y-0 yst-end-0","aria-hidden":"true"})]}),c.length>0&&(0,Zt.jsxs)(Cd.Options,{className:"yst-absolute yst-z-10 yst-mt-1 yst-max-h-60 yst-w-full yst-overflow-auto yst-rounded-md yst-bg-white yst-text-base yst-shadow-lg yst-ring-1 yst-ring-black yst-ring-opacity-5 focus:yst-outline-none sm:yst-text-sm",children:[l&&(0,Zt.jsxs)("div",{className:"yst-flex yst-bg-white yst-sticky yst-z-20 yst-text-sm yst-italic yst-top-0 yst-py-2 yst-ps-3 yst-pe-9 yst-my-0",children:[(0,Zt.jsx)(nd,{className:"yst-text-primary-500 yst-h-4 yst-w-4 yst-me-2 yst-self-center"}),(0,Vt.__)("Loading…","wordpress-seo")]}),c.map((e=>(0,Zt.jsx)(Cd.Option,{value:e,className:f(e.value,t.value),children:({selected:s})=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("span",{className:Ss()("yst-block yst-truncate",(s||t.value===e.value)&&"yst-font-semibold"),children:e.label}),(s||t.value===e.value)&&(0,Zt.jsx)("span",{className:"yst-absolute yst-inset-y-0 yst-end-0 yst-flex yst-items-center yst-pe-4 yst-text-white",children:(0,Zt.jsx)(hl,{className:"yst-h-5 yst-w-5","aria-hidden":"true"})})]})},`yst-option-${e.value}`)))]})]})]})})}Nd.propTypes={onChange:Yt().func.isRequired,options:Yt().array.isRequired,id:Yt().string.isRequired,value:Yt().shape({value:Yt().number,label:Yt().string}),label:Yt().string,onQueryChange:Yt().func,placeholder:Yt().string,isLoading:Yt().bool};const Pd={"X-WP-NONCE":wpApiSettings.nonce},Od=wpApiSettings.root;function Td({initialValue:e={id:0,name:""},onChangeCallback:t=c.noop,placeholder:s=(0,Vt.__)("Select a user","wordpress-seo")}){const[r,n]=(0,o.useState)([]),[a,i]=(0,o.useState)({value:e.id,label:e.name}),[l,d]=(0,o.useState)(!1),u=(0,o.useRef)(!0);(0,o.useEffect)((()=>()=>{u.current=!1}),[]);const p=(0,o.useCallback)((e=>{i(e),t(e)})),m=(0,o.useCallback)((0,c.debounce)((async e=>{d(!0);const t=await function(e=""){const t=`${Od}wp/v2/users?per_page=20${e?`&search=${encodeURIComponent(e)}`:""}`;return(0,Gl.sendRequest)(t,{method:"GET",headers:Pd})}(e);u.current&&(d(!1),n(t.map((e=>({value:e.id,label:e.name})))))}),500),[]);return(0,Zt.jsx)(Nd,{id:"yoast-configuration-user-select",value:a,label:(0,Vt.__)("Name","wordpress-seo"),onChange:p,onQueryChange:m,options:r,placeholder:s,isLoading:l})}function Ld({dispatch:e,imageUrl:t="",fallbackImageUrl:s="",person:r={id:0,name:""},canEditUser:n}){const a=(0,o.useCallback)((()=>{td((t=>{e({type:"SET_PERSON_LOGO",payload:{...t}})}))}),[td]),i=(0,o.useCallback)((()=>{e({type:"REMOVE_PERSON_LOGO"})}),[e]),l=(0,o.useCallback)((t=>{e({type:"SET_PERSON",payload:t}),fa()({path:`yoast/v1/configuration/check_capability?user_id=${t.value}`}).then((t=>{e({type:"SET_CAN_EDIT_USER",payload:t.success})})).catch((e=>{console.error(e.message)}))}),[e]),c=(0,Vt.__)("You have selected the user %1$s as the person this site represents. This user profile information will now be used in search results. %2$sUpdate this profile to make sure the information is correct%3$s.","wordpress-seo"),d=(0,Vt.__)("You have selected the user %1$s as the person this site represents. This user profile information will now be used in search results. You're not allowed to update this user profile, so please ask this user or an admin to make sure the information is correct.","wordpress-seo"),u=(0,o.useMemo)((()=>Wt((0,Vt.sprintf)(n?c:d,`<b>${r.name}</b>`,"<a>","</a>"),{b:(0,Zt.jsx)("b",{}),a:(0,Zt.jsx)("a",{id:"yoast-configuration-user-selector-user-link",href:window.wpseoScriptData.userEditUrl.replace("{user_id}",r.id),target:"_blank",rel:"noopener noreferrer"})})),[r.id,r.name,n]);return(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)(Td,{initialValue:r,onChangeCallback:l,name:"person_id",placeholder:(0,Vt.__)("Select a user","wordpress-seo")}),(0,Zt.jsx)(dl,{id:"user-representation-alert",isVisible:0!==r.id,type:"info",className:"yst-mt-5",children:u}),(0,Zt.jsx)(ad,{className:"yst-mt-6",id:"person-logo-input",url:t,fallbackUrl:s,onSelectImageClick:a,onRemoveImageClick:i,imageAltText:"",hasPreview:!0,label:(0,Vt.__)("Personal logo or avatar","wordpress-seo")})]})}Td.propTypes={initialValue:Yt().shape({id:Yt().number,name:Yt().string}),onChangeCallback:Yt().func,placeholder:Yt().string},Ld.propTypes={dispatch:Yt().func.isRequired,imageUrl:Yt().string,fallbackImageUrl:Yt().string,person:Yt().shape({id:Yt().number,name:Yt().string}),canEditUser:Yt().bool.isRequired};const Md=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"}))})),Ad=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"}))}));function Id({onOrganizationOrPersonChange:e,dispatch:t,state:s,siteRepresentationEmpty:r}){const[n,a]=(0,o.useState)("emptyChoice"===s.companyOrPerson?"yst-opacity-0":"yst-opacity-100"),i=(0,o.useCallback)((()=>{a("yst-opacity-100")}),[a]),c=(0,o.useCallback)((e=>{t({type:"CHANGE_WEBSITE_NAME",payload:e.target.value})}),[t]),d=Wt((0,Vt.sprintf)( /* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to closing 'span' HTML tag, %3$s expands to opening 'a' HTML tag, %4$s expands to closing 'a' HTML tag. */ -(0,Vt.__)("Completing this step helps Google to understand your site even better. %1$sBonus%2$s: You'll improve your chance of getting %3$srich results%4$s!","wordpress-seo"),"<span>","</span>","<a>","</a>"),{span:(0,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"}),a:(0,Zt.jsx)("a",{id:"yoast-configuration-rich-text-link",href:"https://yoa.st/config-workout-rich-results",target:"_blank",rel:"noopener noreferrer"})});return(0,Zt.jsxs)(o.Fragment,{children:[window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage&&(0,Zt.jsx)(yl,{type:"info",children:window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage}),(0,Zt.jsx)("p",{className:Ps()("yst-text-sm yst-whitespace-pre-line yst-mb-6",s.shouldForceCompany?"yst-mt-4":"yst-mt-0"),children:s.shouldForceCompany?d:(0,Zt.jsxs)(o.Fragment,{children:[(0,Vt.__)("Tell us! Is your site about an organization or a person?","wordpress-seo"),(0,Zt.jsx)("br",{}),d]})}),(0,Zt.jsx)(ad,{id:"organization-person-select",htmlFor:"organization-person-select",name:"organization",label:(0,Vt.__)("Does your site represent an Organization or Person?","wordpress-seo"),value:s.shouldForceCompany?"company":s.companyOrPerson,onChange:e,choices:s.companyOrPersonOptions,disabled:!!s.shouldForceCompany}),!("company"===s.companyOrPerson&&s.companyName&&s.companyLogo||"company"===s.companyOrPerson&&!s.companyLogoFallback||"person"===s.companyOrPerson&&s.personLogo||"person"===s.companyOrPerson&&!s.personLogoFallback)&&(0,Zt.jsx)(yl,{type:"info",className:"yst-mt-6",children:(0,Vt.__)("We took the liberty of using your website name and logo for the organization name and logo. Feel free to change them below.","wordpress-seo")}),(0,Zt.jsx)(ll,{className:"yst-my-6",id:"website-name-input",name:"website-name",label:(0,Vt.__)("Website name","wordpress-seo"),value:s.websiteName||s.fallbackWebsiteName,onChange:c,feedback:{isVisible:s.errorFields.includes("website_name"),message:[(0,Vt.__)("We could not save the website name. Please check the value.","wordpress-seo")],type:"error"}}),(0,Zt.jsx)(fl.Z,{height:["company","person"].includes(s.companyOrPerson)?"auto":0,duration:400,easing:"linear",onAnimationEnd:i,children:(0,Zt.jsxs)("div",{className:Ps()("yst-transition-opacity yst-duration-300 yst-mt-6",n),children:["company"===s.companyOrPerson&&(0,Zt.jsx)(pd,{dispatch:t,imageUrl:s.companyLogo,fallbackImageUrl:s.companyLogoFallback,organizationName:s.companyName,fallbackOrganizationName:s.fallbackCompanyName,errorFields:s.errorFields}),"person"===s.companyOrPerson&&(0,Zt.jsx)(zd,{dispatch:t,imageUrl:s.personLogo,fallbackImageUrl:s.personLogoFallback,person:{id:s.personId,name:s.personName},canEditUser:!!s.canEditUser,errorFields:s.errorFields})]})}),(0,Zt.jsx)(gl,{id:"site-representation-empty-alert",isVisible:r,className:"yst-mt-6",children:(0,Vt.__)("You're almost there! Complete all settings in this step so search engines know what your site is about.","wordpress-seo")}),!s.isPremium&&s.isWooCommerceActive&&!s.isWooCommerceSeoActive&&(0,Zt.jsxs)(hc,{className:"yst-mt-6 yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(Ud,{className:"yst-text-primary-300 yst-w-4 yst-h-4 yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-font-medium yst-text-slate-800",children:(0,Vt.__)("Running an online store?","wordpress-seo")})]}),(0,Zt.jsx)("p",{children:(0,Vt.sprintf)(/* translators: %s expands to Yoast WooCommerce SEO. */ +(0,Vt.__)("Completing this step helps Google to understand your site even better. %1$sBonus%2$s: You'll improve your chance of getting %3$srich results%4$s!","wordpress-seo"),"<span>","</span>","<a>","</a>"),{span:(0,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"}),a:(0,Zt.jsx)("a",{id:"yoast-configuration-rich-text-link",href:"https://yoa.st/config-workout-rich-results",target:"_blank",rel:"noopener noreferrer"})});return(0,Zt.jsxs)(o.Fragment,{children:[window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage&&(0,Zt.jsx)(cl,{type:"info",children:window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage}),(0,Zt.jsx)("p",{className:Ss()("yst-text-sm yst-whitespace-pre-line yst-mb-6",s.shouldForceCompany?"yst-mt-4":"yst-mt-0"),children:s.shouldForceCompany?d:(0,Zt.jsxs)(o.Fragment,{children:[(0,Vt.__)("Tell us! Is your site about an organization or a person?","wordpress-seo"),(0,Zt.jsx)("br",{}),d]})}),(0,Zt.jsx)(Xc,{id:"organization-person-select",htmlFor:"organization-person-select",name:"organization",label:(0,Vt.__)("Does your site represent an Organization or Person?","wordpress-seo"),value:s.shouldForceCompany?"company":s.companyOrPerson,onChange:e,choices:s.companyOrPersonOptions,disabled:!!s.shouldForceCompany}),!("company"===s.companyOrPerson&&s.companyName&&s.companyLogo||"company"===s.companyOrPerson&&!s.companyLogoFallback||"person"===s.companyOrPerson&&s.personLogo||"person"===s.companyOrPerson&&!s.personLogoFallback)&&(0,Zt.jsx)(cl,{type:"info",className:"yst-mt-6",children:(0,Vt.__)("We took the liberty of using your website name and logo for the organization name and logo. Feel free to change them below.","wordpress-seo")}),(0,Zt.jsx)(tl,{className:"yst-my-6",id:"website-name-input",name:"website-name",label:(0,Vt.__)("Website name","wordpress-seo"),value:s.websiteName||s.fallbackWebsiteName,onChange:c,feedback:{isVisible:s.errorFields.includes("website_name"),message:[(0,Vt.__)("We could not save the website name. Please check the value.","wordpress-seo")],type:"error"}}),(0,Zt.jsx)(ll.Z,{height:["company","person"].includes(s.companyOrPerson)?"auto":0,duration:400,easing:"linear",onAnimationEnd:i,children:(0,Zt.jsxs)("div",{className:Ss()("yst-transition-opacity yst-duration-300 yst-mt-6",n),children:["company"===s.companyOrPerson&&(0,Zt.jsx)(od,{dispatch:t,imageUrl:s.companyLogo,fallbackImageUrl:s.companyLogoFallback,organizationName:s.companyName,fallbackOrganizationName:s.fallbackCompanyName,errorFields:s.errorFields}),"person"===s.companyOrPerson&&(0,Zt.jsx)(Ld,{dispatch:t,imageUrl:s.personLogo,fallbackImageUrl:s.personLogoFallback,person:{id:s.personId,name:s.personName},canEditUser:!!s.canEditUser,errorFields:s.errorFields})]})}),(0,Zt.jsx)(dl,{id:"site-representation-empty-alert",isVisible:r,className:"yst-mt-6",children:(0,Vt.__)("You're almost there! Complete all settings in this step so search engines know what your site is about.","wordpress-seo")}),!s.isPremium&&s.isWooCommerceActive&&!s.isWooCommerceSeoActive&&(0,Zt.jsxs)(lc,{className:"yst-mt-6 yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(Md,{className:"yst-text-primary-300 yst-w-4 yst-h-4 yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-font-medium yst-text-slate-800",children:(0,Vt.__)("Running an online store?","wordpress-seo")})]}),(0,Zt.jsx)("p",{children:(0,Vt.sprintf)(/* translators: %s expands to Yoast WooCommerce SEO. */ (0,Vt.__)("%s helps your products stand out in Google Shopping and Rich Results.","wordpress-seo"),"Yoast WooCommerce SEO")})]}),(0,Zt.jsx)("p",{className:"yst-mt-4",children:(0,Zt.jsxs)(l.Button,{id:"ftc-indexing-learn-more",as:"a",href:window.wpseoFirstTimeConfigurationData.shortlinks.reprWoocommerceLearnMore,variant:"tertiary",target:"_blank",className:"yst-p-0",children:[(0,Vt.sprintf)(/* translators: %s expands to WooCommerce SEO. */ (0,Vt.__)("Learn more about %s","wordpress-seo"),"WooCommerce SEO"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(yc,{className:"yst-ms-1 yst-w-4 yst-h-4 yst-icon-rtl"})]})})]}),"company"===s.companyOrPerson&&!s.isPremium&&!s.isWooCommerceActive&&(0,Zt.jsxs)(hc,{className:"yst-mt-6 yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(Bd,{className:"yst-text-primary-300 yst-w-4 yst-h-4 yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-font-medium yst-text-slate-800",children:(0,Vt.__)("Have a physical location?","wordpress-seo")})]}),(0,Zt.jsx)("p",{children:(0,Vt.sprintf)(/* translators: %s expands to Yoast Local SEO. */ +(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(dc,{className:"yst-ms-1 yst-w-4 yst-h-4 yst-icon-rtl"})]})})]}),"company"===s.companyOrPerson&&!s.isPremium&&!s.isWooCommerceActive&&(0,Zt.jsxs)(lc,{className:"yst-mt-6 yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(Ad,{className:"yst-text-primary-300 yst-w-4 yst-h-4 yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-font-medium yst-text-slate-800",children:(0,Vt.__)("Have a physical location?","wordpress-seo")})]}),(0,Zt.jsx)("p",{children:(0,Vt.sprintf)(/* translators: %s expands to Yoast Local SEO. */ (0,Vt.__)("%s helps you show up in Google Maps and local results. Complete your visibility where it matters most!","wordpress-seo"),"Yoast Local SEO")})]}),(0,Zt.jsx)("p",{className:"yst-mt-4",children:(0,Zt.jsxs)(l.Button,{id:"ftc-indexing-learn-more",as:"a",href:window.wpseoFirstTimeConfigurationData.shortlinks.reprLocalLearnMore,variant:"tertiary",target:"_blank",className:"yst-p-0",children:[(0,Vt.sprintf)(/* translators: %s expands to Local SEO. */ (0,Vt.__)("Learn more about %s","wordpress-seo"),"Local SEO"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(yc,{className:"yst-ms-1 yst-w-4 yst-h-4 yst-icon-rtl"})]})})]})]})}function $d(e,t,s=""){return Wt(e,{a:(0,Zt.jsx)("a",{id:s,href:t,target:"_blank",rel:"noopener noreferrer"})})}qd.propTypes={onOrganizationOrPersonChange:Yt().func.isRequired,dispatch:Yt().func.isRequired,state:Yt().object.isRequired,siteRepresentationEmpty:Yt().bool.isRequired};const Hd=(0,Vt.__)("Oops! Something went wrong. Check your email address and try again.","wordpress-seo"),Vd=(0,Vt.__)("Please enter a valid email address.","wordpress-seo"),Wd=(0,Vt.__)("Thank you! Check your inbox for the confirmation email.","wordpress-seo");function Gd({gdprLink:e=""}){const[t,s]=(0,o.useState)(""),[r,n]=(0,o.useState)("waiting"),[a,i]=(0,o.useState)(""),l=qo("selectPreference",[],"isPremium"),c=qo("selectPreference",[],"addonsStatus"),d=(0,o.useCallback)((async function(){if(!(0,Ca.isEmail)(t))return n("error"),void i(Vd);n("loading");const e=await async function(e,t,s){const r=$o("ftc",t,s);return(await fetch("https://my.yoast.com/api/Mailing-list/subscribe",{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify({customerDetails:{firstName:"",email:e},list:"Yoast newsletter",source:r})})).json()}(t,l,c);e.error?(n("error"),i(Hd)):(n("success"),i(Wd))}),[t]),u=(0,o.useCallback)((e=>{n("waiting"),s(e.target.value)}),[s]);return(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("h4",{className:"yst-text-slate-800 yst-text-sm yst-leading-6 yst-font-medium",children:(0,Vt.__)("Get free weekly SEO tips!","wordpress-seo")}),(0,Zt.jsx)("p",{className:"yst-mb-2",children:(0,Vt.sprintf)(/* translators: %1$s expands to "Yoast SEO", %2$s expands to "Yoast SEO". */ -(0,Vt.__)("Subscribe to the %1$s newsletter to receive best practices for improving your rankings, save time on SEO tasks, stay up-to-date with the latest SEO news, and get expert guidance on how to make the most of %2$s!","wordpress-seo"),"Yoast SEO","Yoast SEO")}),(0,Zt.jsxs)("div",{className:"yst-flex yst-items-start yst-gap-2 yst-mt-4 yst-mb-2",children:[(0,Zt.jsx)(ll,{label:(0,Vt.__)("Email address","wordpress-seo"),id:"newsletter-email",name:"newsletter email",value:t,onChange:u,className:"yst-grow",type:"email",placeholder:(0,Vt.__)("E.g. example@email.com","wordpress-seo"),feedback:{isVisible:["error","success"].includes(r),type:r,message:[a]}}),(0,Zt.jsx)("button",{type:"button",id:"newsletter-sign-up-button",className:"yst-button yst-button--primary yst-h-[40px] yst-items-center yst-mt-[27.5px] yst-shrink-0",onClick:d,disabled:"loading"===r,"data-hiive-event-name":"clicked_signup | personal preferences",children:(0,Vt.__)("Yes, give me your free tips!","wordpress-seo")})]}),(0,Zt.jsx)("p",{className:"yst-text-slate-500 yst-text-xxs yst-leading-4",children:$d((0,Vt.sprintf)( +(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(dc,{className:"yst-ms-1 yst-w-4 yst-h-4 yst-icon-rtl"})]})})]})]})}function Dd(e,t,s=""){return Wt(e,{a:(0,Zt.jsx)("a",{id:s,href:t,target:"_blank",rel:"noopener noreferrer"})})}Id.propTypes={onOrganizationOrPersonChange:Yt().func.isRequired,dispatch:Yt().func.isRequired,state:Yt().object.isRequired,siteRepresentationEmpty:Yt().bool.isRequired};const Fd=(0,Vt.__)("Oops! Something went wrong. Check your email address and try again.","wordpress-seo"),zd=(0,Vt.__)("Please enter a valid email address.","wordpress-seo"),Ud=(0,Vt.__)("Thank you! Check your inbox for the confirmation email.","wordpress-seo");function Bd({gdprLink:e=""}){const[t,s]=(0,o.useState)(""),[r,n]=(0,o.useState)("waiting"),[a,i]=(0,o.useState)(""),l=Ao("selectPreference",[],"isPremium"),c=Ao("selectPreference",[],"addonsStatus"),d=(0,o.useCallback)((async function(){if(!(0,va.isEmail)(t))return n("error"),void i(zd);n("loading");const e=await async function(e,t,s){const r=Io("ftc",t,s);return(await fetch("https://my.yoast.com/api/Mailing-list/subscribe",{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify({customerDetails:{firstName:"",email:e},list:"Yoast newsletter",source:r})})).json()}(t,l,c);e.error?(n("error"),i(Fd)):(n("success"),i(Ud))}),[t]),u=(0,o.useCallback)((e=>{n("waiting"),s(e.target.value)}),[s]);return(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("h4",{className:"yst-text-slate-800 yst-text-sm yst-leading-6 yst-font-medium",children:(0,Vt.__)("Get free weekly SEO tips!","wordpress-seo")}),(0,Zt.jsx)("p",{className:"yst-mb-2",children:(0,Vt.sprintf)(/* translators: %1$s expands to "Yoast SEO", %2$s expands to "Yoast SEO". */ +(0,Vt.__)("Subscribe to the %1$s newsletter to receive best practices for improving your rankings, save time on SEO tasks, stay up-to-date with the latest SEO news, and get expert guidance on how to make the most of %2$s!","wordpress-seo"),"Yoast SEO","Yoast SEO")}),(0,Zt.jsxs)("div",{className:"yst-flex yst-items-start yst-gap-2 yst-mt-4 yst-mb-2",children:[(0,Zt.jsx)(tl,{label:(0,Vt.__)("Email address","wordpress-seo"),id:"newsletter-email",name:"newsletter email",value:t,onChange:u,className:"yst-grow",type:"email",placeholder:(0,Vt.__)("E.g. example@email.com","wordpress-seo"),feedback:{isVisible:["error","success"].includes(r),type:r,message:[a]}}),(0,Zt.jsx)("button",{type:"button",id:"newsletter-sign-up-button",className:"yst-button yst-button--primary yst-h-[40px] yst-items-center yst-mt-[27.5px] yst-shrink-0",onClick:d,disabled:"loading"===r,"data-hiive-event-name":"clicked_signup | personal preferences",children:(0,Vt.__)("Yes, give me your free tips!","wordpress-seo")})]}),(0,Zt.jsx)("p",{className:"yst-text-slate-500 yst-text-xxs yst-leading-4",children:Dd((0,Vt.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing anchor tags. -(0,Vt.__)("Yoast respects your privacy. Read %1$sour privacy policy%2$s on how we handle your personal information.","wordpress-seo"),"<a>","</a>"),e,"yoast-configuration-gdpr-link")})]})}Gd.propTypes={gdprLink:Yt().string};const Kd={variant:{default:"","inline-block":"yst-radio--inline-block"}},Yd={variant:{default:"","inline-block":"yst-radio-group--inline-block"}},Zd=({id:e,name:t,value:s,label:r,variant:n="default",className:a="",...o})=>(0,Zt.jsxs)("div",{className:Ps()("yst-radio",Kd.variant[n],a),children:[(0,Zt.jsx)("input",{type:"radio",id:e,name:t,value:s,className:"yst-radio__input",...o}),r&&(0,Zt.jsx)(Jd,{htmlFor:e,className:"yst-radio__label",children:r})]});Zd.propTypes={name:Yt().string.isRequired,id:Yt().string.isRequired,value:Yt().oneOfType([Yt().string,Yt().number]).isRequired,label:Yt().string.isRequired,variant:Yt().oneOf(Object.keys(Kd.variant)),className:Yt().string};const Jd=({children:e,as:t="label",className:s="",...r})=>(0,Zt.jsx)(t,{className:Ps()("yst-label",s),...r,children:e});Jd.propTypes={children:Yt().node.isRequired,as:Yt().elementType,className:Yt().string};const Qd=({children:e=null,id:t,name:s,value:r,label:n=null,options:a,onChange:i,variant:l="default",className:c="",...d})=>{const u=(0,o.useCallback)((({target:e})=>e.checked&&i(e.value)),[i]);return(0,Zt.jsxs)("fieldset",{className:Ps()("yst-radio-group",Yd.variant[l],c),children:[n&&(0,Zt.jsx)(Jd,{as:"legend",className:"yst-radio-group__label",children:n}),e&&(0,Zt.jsx)("div",{className:"yst-radio-group__description",children:e}),(0,Zt.jsx)("div",{className:"yst-radio-group__options",children:a.map(((e,n)=>{const a=`${t}-${n}`;return(0,Zt.jsx)(Zd,{id:a,name:s,value:e.value,label:e.label,variant:l,checked:r===e.value,onChange:u,...d},a)}))})]})};Qd.propTypes={children:Yt().node,id:Yt().string.isRequired,name:Yt().string.isRequired,value:Yt().oneOfType([Yt().string,Yt().number]).isRequired,options:Yt().arrayOf(Yt().shape({value:Yt().oneOfType([Yt().string,Yt().number]).isRequired,label:Yt().string.isRequired})).isRequired,onChange:Yt().func.isRequired,label:Yt().node,variant:Yt().oneOf(Object.keys(Yd.variant)),className:Yt().string};const Xd=Qd,eu=(0,Xl.makeOutboundLink)();function tu({state:e,setTracking:t}){return(0,Zt.jsxs)(o.Fragment,{children:[!e.isPremium&&(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)(Gd,{gdprLink:window.wpseoFirstTimeConfigurationData.shortlinks.gdpr}),(0,Zt.jsx)("hr",{className:"yst-bg-slate-200 yst-my-6"})]}),(0,Zt.jsx)("h4",{className:"yst-text-slate-800 yst-text-sm yst-leading-6 yst-font-medium",children:(0,Vt.__)("Are you open to help us improve our services?","wordpress-seo")}),!!e.isMainSite&&!e.isTrackingAllowedMultisite&&(0,Zt.jsx)(yl,{type:"warning",children:(0,Vt.__)("This feature has been disabled by the network admin.","wordpress-seo")}),!e.isMainSite&&(0,Zt.jsx)(yl,{type:"warning",children:(0,Vt.__)("This feature has been disabled since subsites never send tracking data.","wordpress-seo")}),(0,Zt.jsx)("p",{className:Ps()("yst-text-normal yst-mb-4",e.isMainSite&&e.isTrackingAllowedMultisite?"":"yst-opacity-50"),children:(0,Vt.sprintf)(/* translators: 1: Yoast SEO. */ -(0,Vt.__)("Can we collect anonymous information about your website to enhance %1$s?","wordpress-seo"),"Yoast SEO")}),(0,Zt.jsx)(Xd,{id:"yoast-configuration-tracking-radio-button",name:"yoast-configuration-tracking",value:e.tracking,onChange:t,className:e.isMainSite&&e.isTrackingAllowedMultisite?"":"yst-opacity-50",disabled:!e.isMainSite||!e.isTrackingAllowedMultisite,options:[{value:0,label:(0,Vt.__)("No, I don't want to share my site data","wordpress-seo")},{value:1,label:(0,Vt.__)("Yes, you can collect my site data","wordpress-seo")}]}),!!e.isMainSite&&!!e.isTrackingAllowedMultisite&&(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)(eu,{className:"yst-inline-block yst-mt-4",href:"https://yoa.st/config-workout-tracking",children:(0,Vt.__)("What data will be collected and why?","wordpress-seo")}),(0,Zt.jsx)("p",{className:"yst-my-2 yst-italic",children:Wt((0,Vt.sprintf)(/* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to closing 'span' HTML tag. */ -(0,Vt.__)("%1$sImportant:%2$s We won't sell this data, and we won't collect any personal information about you or your visitors.","wordpress-seo"),"<span>","</span>"),{span:(0,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"})})})]})]})}tu.propTypes={state:Yt().object.isRequired,setTracking:Yt().func.isRequired};const su=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 10V3L4 14h7v7l9-11h-7z"}))}));function ru(e){e.preventDefault(),window.location.href="admin.php?page=wpseo_dashboard"}function nu({state:e}){const t=(0,c.get)(window,"wpseoScriptData.webinarIntroFirstTimeConfigUrl","https://yoa.st/webinar-intro-first-time-config"),s=[(0,Vt.__)("Optimize for multiple keyphrases per page to reach a wider audience.","wordpress-seo"),(0,Vt.__)("Get smart internal linking suggestions that strengthen your site structure.","wordpress-seo"),(0,Vt.__)("Automatically redirect broken URLs so you don’t lose traffic or SEO value.","wordpress-seo"),(0,Vt.__)("Save time with AI-powered title and meta description suggestions.","wordpress-seo")];return(0,Zt.jsx)("div",{className:"yst-flex yst-flex-row yst-justify-between yst-items-center yst-mt-4",children:(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("p",{className:"yst-text-sm yst-mb-4",children:(0,Vt.sprintf)(/* translators: 1: Yoast. */ +(0,Vt.__)("Yoast respects your privacy. Read %1$sour privacy policy%2$s on how we handle your personal information.","wordpress-seo"),"<a>","</a>"),e,"yoast-configuration-gdpr-link")})]})}Bd.propTypes={gdprLink:Yt().string};const qd={variant:{default:"","inline-block":"yst-radio--inline-block"}},$d={variant:{default:"","inline-block":"yst-radio-group--inline-block"}},Hd=({id:e,name:t,value:s,label:r,variant:n="default",className:a="",...o})=>(0,Zt.jsxs)("div",{className:Ss()("yst-radio",qd.variant[n],a),children:[(0,Zt.jsx)("input",{type:"radio",id:e,name:t,value:s,className:"yst-radio__input",...o}),r&&(0,Zt.jsx)(Vd,{htmlFor:e,className:"yst-radio__label",children:r})]});Hd.propTypes={name:Yt().string.isRequired,id:Yt().string.isRequired,value:Yt().oneOfType([Yt().string,Yt().number]).isRequired,label:Yt().string.isRequired,variant:Yt().oneOf(Object.keys(qd.variant)),className:Yt().string};const Vd=({children:e,as:t="label",className:s="",...r})=>(0,Zt.jsx)(t,{className:Ss()("yst-label",s),...r,children:e});Vd.propTypes={children:Yt().node.isRequired,as:Yt().elementType,className:Yt().string};const Wd=({children:e=null,id:t,name:s,value:r,label:n=null,options:a,onChange:i,variant:l="default",className:c="",...d})=>{const u=(0,o.useCallback)((({target:e})=>e.checked&&i(e.value)),[i]);return(0,Zt.jsxs)("fieldset",{className:Ss()("yst-radio-group",$d.variant[l],c),children:[n&&(0,Zt.jsx)(Vd,{as:"legend",className:"yst-radio-group__label",children:n}),e&&(0,Zt.jsx)("div",{className:"yst-radio-group__description",children:e}),(0,Zt.jsx)("div",{className:"yst-radio-group__options",children:a.map(((e,n)=>{const a=`${t}-${n}`;return(0,Zt.jsx)(Hd,{id:a,name:s,value:e.value,label:e.label,variant:l,checked:r===e.value,onChange:u,...d},a)}))})]})};Wd.propTypes={children:Yt().node,id:Yt().string.isRequired,name:Yt().string.isRequired,value:Yt().oneOfType([Yt().string,Yt().number]).isRequired,options:Yt().arrayOf(Yt().shape({value:Yt().oneOfType([Yt().string,Yt().number]).isRequired,label:Yt().string.isRequired})).isRequired,onChange:Yt().func.isRequired,label:Yt().node,variant:Yt().oneOf(Object.keys($d.variant)),className:Yt().string};const Gd=Wd,Kd=(0,Gl.makeOutboundLink)();function Yd({state:e,setTracking:t}){return(0,Zt.jsxs)(o.Fragment,{children:[!e.isPremium&&(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)(Bd,{gdprLink:window.wpseoFirstTimeConfigurationData.shortlinks.gdpr}),(0,Zt.jsx)("hr",{className:"yst-bg-slate-200 yst-my-6"})]}),(0,Zt.jsx)("h4",{className:"yst-text-slate-800 yst-text-sm yst-leading-6 yst-font-medium",children:(0,Vt.__)("Are you open to help us improve our services?","wordpress-seo")}),!!e.isMainSite&&!e.isTrackingAllowedMultisite&&(0,Zt.jsx)(cl,{type:"warning",children:(0,Vt.__)("This feature has been disabled by the network admin.","wordpress-seo")}),!e.isMainSite&&(0,Zt.jsx)(cl,{type:"warning",children:(0,Vt.__)("This feature has been disabled since subsites never send tracking data.","wordpress-seo")}),(0,Zt.jsx)("p",{className:Ss()("yst-text-normal yst-mb-4",e.isMainSite&&e.isTrackingAllowedMultisite?"":"yst-opacity-50"),children:(0,Vt.sprintf)(/* translators: 1: Yoast SEO. */ +(0,Vt.__)("Can we collect anonymous information about your website to enhance %1$s?","wordpress-seo"),"Yoast SEO")}),(0,Zt.jsx)(Gd,{id:"yoast-configuration-tracking-radio-button",name:"yoast-configuration-tracking",value:e.tracking,onChange:t,className:e.isMainSite&&e.isTrackingAllowedMultisite?"":"yst-opacity-50",disabled:!e.isMainSite||!e.isTrackingAllowedMultisite,options:[{value:0,label:(0,Vt.__)("No, I don't want to share my site data","wordpress-seo")},{value:1,label:(0,Vt.__)("Yes, you can collect my site data","wordpress-seo")}]}),!!e.isMainSite&&!!e.isTrackingAllowedMultisite&&(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)(Kd,{className:"yst-inline-block yst-mt-4",href:"https://yoa.st/config-workout-tracking",children:(0,Vt.__)("What data will be collected and why?","wordpress-seo")}),(0,Zt.jsx)("p",{className:"yst-my-2 yst-italic",children:Wt((0,Vt.sprintf)(/* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to closing 'span' HTML tag. */ +(0,Vt.__)("%1$sImportant:%2$s We won't sell this data, and we won't collect any personal information about you or your visitors.","wordpress-seo"),"<span>","</span>"),{span:(0,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"})})})]})]})}Yd.propTypes={state:Yt().object.isRequired,setTracking:Yt().func.isRequired};const Zd=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 10V3L4 14h7v7l9-11h-7z"}))}));function Jd(e){e.preventDefault(),window.location.href="admin.php?page=wpseo_dashboard"}function Qd({state:e}){const t=(0,c.get)(window,"wpseoScriptData.webinarIntroFirstTimeConfigUrl","https://yoa.st/webinar-intro-first-time-config"),s=[(0,Vt.__)("Optimize for multiple keyphrases per page to reach a wider audience.","wordpress-seo"),(0,Vt.__)("Get smart internal linking suggestions that strengthen your site structure.","wordpress-seo"),(0,Vt.__)("Automatically redirect broken URLs so you don’t lose traffic or SEO value.","wordpress-seo"),(0,Vt.__)("Save time with AI-powered title and meta description suggestions.","wordpress-seo")];return(0,Zt.jsx)("div",{className:"yst-flex yst-flex-row yst-justify-between yst-items-center yst-mt-4",children:(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("p",{className:"yst-text-sm yst-mb-4",children:(0,Vt.sprintf)(/* translators: 1: Yoast. */ (0,Vt.__)("Great work! Thanks to the details you've provided, %1$s has enhanced your site for search engines, giving them a clearer picture of what your site is all about.","wordpress-seo"),"Yoast")}),(0,Zt.jsx)("p",{className:"yst-text-sm yst-mb-6",children:(0,Vt.__)("If your goal is to increase your rankings, you need to work on your SEO regularly. That can be overwhelming, so let's tackle it one step at a time!","wordpress-seo")}),(0,Zt.jsxs)(l.Button,{as:"a",variant:"primary",id:"button-webinar-seo-dashboard",href:t,target:"_blank","data-hiive-event-name":"clicked_to_onboarding_page",children:[(0,Vt.sprintf)(/* translators: 1: Yoast SEO. */ (0,Vt.__)("Learn how to increase your rankings with %1$s","wordpress-seo"),"Yoast SEO"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(yc,{className:"yst-w-4 yst-h-4 yst-icon-rtl yst-ms-2"})]}),(0,Zt.jsx)("p",{className:"yst-mt-6",children:(0,Zt.jsxs)(l.Button,{id:"link-webinar-register",as:"a",onClick:ru,"data-hiive-event-name":"clicked_seo_dashboard",variant:"tertiary",children:[(0,Vt.__)("Or go to your SEO dashboard","wordpress-seo"),(0,Zt.jsx)(is,{className:"yst-ms-1 yst-w-4 yst-h-4 yst-icon-rtl"})]})}),!e.isPremium&&(0,Zt.jsxs)(hc,{className:"yst-mt-8 yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(su,{className:"yst-text-primary-300 yst-w-4 yst-h-4 yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-font-medium yst-text-slate-800",children:(0,Vt.__)("Your site’s ready to shine! Want to take it to the next level?","wordpress-seo")})]}),(0,Zt.jsx)("p",{className:"yst-mt-4",children:Wt((0,Vt.sprintf)( +(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(dc,{className:"yst-w-4 yst-h-4 yst-icon-rtl yst-ms-2"})]}),(0,Zt.jsx)("p",{className:"yst-mt-6",children:(0,Zt.jsxs)(l.Button,{id:"link-webinar-register",as:"a",onClick:Jd,"data-hiive-event-name":"clicked_seo_dashboard",variant:"tertiary",children:[(0,Vt.__)("Or go to your SEO dashboard","wordpress-seo"),(0,Zt.jsx)(Es,{className:"yst-ms-1 yst-w-4 yst-h-4 yst-icon-rtl"})]})}),!e.isPremium&&(0,Zt.jsxs)(lc,{className:"yst-mt-8 yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(Zd,{className:"yst-text-primary-300 yst-w-4 yst-h-4 yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-font-medium yst-text-slate-800",children:(0,Vt.__)("Your site’s ready to shine! Want to take it to the next level?","wordpress-seo")})]}),(0,Zt.jsx)("p",{className:"yst-mt-4",children:Wt((0,Vt.sprintf)( /* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to Yoast SEO Premium, %3$s expands to closing 'span' HTML tag. */ -(0,Vt.__)("%1$s%2$s%3$s helps you:","wordpress-seo"),"<span>","Yoast SEO Premium","</span>"),{span:(0,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"})})}),(0,Zt.jsx)("ul",{className:"yst-flex yst-flex-col yst-gap-2 yst-list-none yst-list-outside yst-text-slate-600 yst-mt-2",children:s.map(((e,t)=>(0,Zt.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,Zt.jsx)(Ls,{className:"yst-mr-2 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),e]},`upsell-benefit-${t}`)))})]}),(0,Zt.jsx)("p",{className:"yst-mt-5",children:(0,Zt.jsxs)(l.Button,{as:"a",variant:"upsell",href:window.wpseoFirstTimeConfigurationData.shortlinks.finishLearnMore,className:"yst-gap-2 sm:yst-max-w-sm",target:"_blank",rel:"noopener",children:[(0,Zt.jsx)(Qt,{className:"yst-w-4 yst-h-4"}),(0,Vt.__)("Unlock all Premium features","wordpress-seo"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")})]})})]})]})})}function au(e,t){const{companyName:s,companyLogo:r,companyOrPersonOptions:n,shouldForceCompany:a,fallbackCompanyName:o,websiteName:i,fallbackWebsiteName:l}=e;let{companyOrPerson:c}=e;return("company"!==c||s||r||t(Wl.siteRepresentation))&&!a||(c="company"),{...e,personId:Number(e.personId),personLogoId:Number(e.personLogoId),companyLogoId:Number(e.companyLogoId),tracking:Number(e.tracking),companyOrPerson:c,companyOrPersonOptions:n,errorFields:[],stepErrors:{},editedSteps:[],companyName:s||o,websiteName:i||l}}function ou(){const{removeAlert:e,dismissNotice:t,restoreNotice:s}=(0,r.useDispatch)(zo),[n,a]=(0,o.useState)(window.wpseoFirstTimeConfigurationData.finishedSteps),i=(0,o.useCallback)((e=>n.includes(e)),[n]),l=(0,o.useCallback)((e=>{a((t=>(0,c.uniq)([...t,e])))}),[a]);(0,o.useEffect)((()=>{!async function(e){const t=await _a()({path:"yoast/v1/configuration/save_configuration_state",method:"POST",data:{finishedSteps:e}});await t.json}(n),window.wpseoFirstTimeConfigurationData.finishedSteps=n}),[n]);const[d,u]=(0,o.useReducer)(el,{...au(window.wpseoFirstTimeConfigurationData,i)}),[p,m]=(0,o.useState)((()=>"0"===window.yoastIndexingData.amount?"already_done":"idle")),[h,f]=(0,o.useState)(!1),[y,g]=(0,o.useState)(!1),v=(0,o.useCallback)(((e,t)=>{u({type:"SET_STEP_ERROR",payload:{step:e,message:t}})}),[]),b=(0,o.useCallback)((e=>{u({type:"REMOVE_STEP_ERROR",payload:e})}),[]);(0,o.useEffect)((()=>{"completed"===p&&(e("wpseo-reindex"),window.yoastIndexingData.amount="0")}),[p,e]);const x=i(Wl.optimizeSeoData),w=i(Wl.siteRepresentation),S=i(Wl.socialProfiles),_=i(Wl.personalPreferences),E=(0,o.useCallback)((e=>{u({type:"SET_TRACKING",payload:parseInt(e,10)})})),j=(0,o.useCallback)((e=>{u({type:"SET_ERROR_FIELDS",payload:e})})),C=(0,o.useCallback)((()=>{""!==d.companyLogo&&0!==d.companyLogoId&&""!==d.companyName?t("yoast-local-missing-organization-info-notice"):s("yoast-local-missing-organization-info-notice")}),[t,s,d.companyLogo,d.companyLogoId,d.companyName]),k=(0,o.useCallback)((()=>{t("yoast-first-time-configuration-notice")}),[t]),R=!("company"!==d.companyOrPerson||d.companyName&&(d.companyLogo||d.companyLogoFallback)&&d.websiteName),O=!("person"!==d.companyOrPerson||d.personId&&(d.personLogo||d.personLogoFallback)&&d.websiteName),N=(0,o.useCallback)((e=>u({type:"SET_COMPANY_OR_PERSON",payload:e})),[u]),P=[x,w,S,_].every(Boolean),T=[i(Wl.optimizeSeoData),i(Wl.siteRepresentation),i(Wl.socialProfiles),i(Wl.personalPreferences),P],[L,M]=(0,o.useState)(function(e){if(!Array.isArray(e)||0===e.length)return 0;const t=e.findIndex((e=>!1===e));return-1!==t?t:e.every(Boolean)?e.length-1:0}(T)),[A,I]=(0,o.useState)(P),[D,F]=(0,o.useState)(!1),[z,U]=(0,o.useState)(A&&!D);function B(){return U(!1),F(!0),!0}(0,o.useEffect)((()=>{P&&I(!0)}),[P]),(0,o.useEffect)((()=>{U(A&&!D)}),[A,D]),(0,o.useEffect)((()=>{function e(e){"Enter"===e.key&&"first-time-configuration-tab"===document.querySelector(".nav-tab.nav-tab-active").id&&"INPUT"===e.target.tagName&&e.preventDefault()}return addEventListener("keydown",e),()=>removeEventListener("keydown",e)}),[]),(0,o.useEffect)((()=>{d.editedSteps.includes(L+1)||"in_progress"===p?window.isStepBeingEdited=!0:window.isStepBeingEdited=!1}),[d.editedSteps,p,L]);const q=(0,o.useCallback)((e=>{(d.editedSteps.includes(L+1)||"in_progress"===p)&&(-1===location.href.indexOf("page=wpseo_dashboard#top#first-time-configuration")&&-1===location.href.indexOf("page=wpseo_dashboard#/first-time-configuration")||(e.preventDefault(),e.returnValue=""))}),[d.editedSteps,p,L]);return(0,o.useEffect)((()=>(window.addEventListener("beforeunload",q),()=>{window.removeEventListener("beforeunload",q)})),[q]),(0,Zt.jsxs)(Vl,{setActiveStepIndex:M,activeStepIndex:L,isStepperFinished:P,children:[(0,Zt.jsxs)(ql,{children:[(0,Zt.jsx)(ql.Header,{name:(0,Vt.__)("SEO data optimization","wordpress-seo"),isFinished:x,children:(0,Zt.jsx)(Yl,{stepId:Wl.optimizeSeoData,beforeGo:B,isVisible:z,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Zt.jsxs)(ql.Content,{children:[(0,Zt.jsx)(gc,{state:d,setIndexingState:m,indexingState:p,showRunIndexationAlert:y,isStepperFinished:P}),(0,Zt.jsx)(Kl,{stepId:Wl.optimizeSeoData,additionalClasses:"yst-mt-12",beforeGo:function(){return y||"idle"!==p||"1"===window.yoastIndexingData.disabled?(F(!1),l(Wl.optimizeSeoData),!0):(g(!0),!1)},destination:A?"last":1,children:(0,Vt.__)("Continue","wordpress-seo")})]})]}),(0,Zt.jsxs)(ql,{children:[(0,Zt.jsx)(ql.Header,{name:(0,Vt.__)("Site representation","wordpress-seo"),isFinished:w,children:(0,Zt.jsx)(Yl,{stepId:Wl.siteRepresentation,beforeGo:B,isVisible:z,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Zt.jsxs)(ql.Content,{children:[(0,Zt.jsx)(qd,{onOrganizationOrPersonChange:N,dispatch:u,state:d,siteRepresentationEmpty:h}),(0,Zt.jsx)(ql.Error,{id:"yoast-site-representation-step-error",message:d.stepErrors[Wl.siteRepresentation]||""}),(0,Zt.jsx)(Ql,{stepId:Wl.siteRepresentation,stepperFinishedOnce:A,saveFunction:function(){return!h&&R||!h&&O?(f(!0),!1):h||"emptyChoice"!==d.companyOrPerson?(f("emptyChoice"===d.companyOrPerson||R||O),async function(e){const t={company_or_person:"emptyChoice"===e.companyOrPerson?"company":e.companyOrPerson,company_name:e.companyName,company_logo:e.companyLogo,company_logo_id:e.companyLogoId?e.companyLogoId:0,website_name:e.websiteName,person_logo:e.personLogo,person_logo_id:e.personLogoId?e.personLogoId:0,company_or_person_user_id:e.personId},s=await _a()({path:"yoast/v1/configuration/site_representation",method:"POST",data:t});return await s.json}(d).then((()=>(j([]),b(Wl.siteRepresentation),l(Wl.siteRepresentation),window.wpseoFirstTimeConfigurationData={...window.wpseoFirstTimeConfigurationData,...d},C(),!0))).catch((e=>e.failures?(j(e.failures),!1):(e.message&&v(Wl.siteRepresentation,e.message),!1)))):(f(!0),!1)},setEditState:F})]})]}),(0,Zt.jsxs)(ql,{children:[(0,Zt.jsx)(ql.Header,{name:(0,Vt.__)("Social profiles","wordpress-seo"),isFinished:S,children:(0,Zt.jsx)(Yl,{stepId:Wl.socialProfiles,beforeGo:B,isVisible:z,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Zt.jsxs)(ql.Content,{children:[(0,Zt.jsx)(vl,{state:d,dispatch:u,setErrorFields:j}),(0,Zt.jsx)(ql.Error,{id:"yoast-social-profiles-step-error",message:d.stepErrors[Wl.socialProfiles]||""}),(0,Zt.jsx)(Ql,{stepId:Wl.socialProfiles,stepperFinishedOnce:A,saveFunction:function(){return"person"===d.companyOrPerson?(l(Wl.socialProfiles),!0):async function(e){const t={facebook_site:e.socialProfiles.facebookUrl,twitter_site:e.socialProfiles.twitterUsername,other_social_urls:e.socialProfiles.otherSocialUrls},s=await _a()({path:"yoast/v1/configuration/social_profiles",method:"POST",data:t});return await s.json}(d).then((e=>!1===e.success?(j(e.failures),Promise.reject("There were errors saving social profiles")):e)).then((()=>{j([]),b(Wl.socialProfiles),l(Wl.socialProfiles)})).then((()=>(window.wpseoFirstTimeConfigurationData.socialProfiles=d.socialProfiles,!0))).catch((e=>(e.failures&&j(e.failures),e.message&&v(Wl.socialProfiles,e.message),!1)))},setEditState:F})]})]}),(0,Zt.jsxs)(ql,{children:[(0,Zt.jsx)(ql.Header,{name:(0,Vt.__)("Personal preferences","wordpress-seo"),isFinished:_,children:(0,Zt.jsx)(Yl,{stepId:Wl.personalPreferences,beforeGo:B,isVisible:z,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Zt.jsxs)(ql.Content,{children:[(0,Zt.jsx)(tu,{state:d,setTracking:E}),(0,Zt.jsx)(ql.Error,{id:"yoast-personal-preferences-step-error",message:d.stepErrors[Wl.personalPreferences]||""}),(0,Zt.jsx)(Ql,{stepId:Wl.personalPreferences,stepperFinishedOnce:A,saveFunction:function(){return async function(e){if(0!==e.tracking&&1!==e.tracking)throw"Value not set!";const t={tracking:e.tracking},s=await _a()({path:"yoast/v1/configuration/enable_tracking",method:"POST",data:t});return await s.json}(d).then((()=>l(Wl.personalPreferences))).then((()=>(b(Wl.personalPreferences),window.wpseoFirstTimeConfigurationData.tracking=d.tracking,k(),!0))).catch((e=>(e.message&&v(Wl.personalPreferences,e.message),!1)))},setEditState:F})]})]}),(0,Zt.jsxs)(ql,{children:[(0,Zt.jsx)(ql.Header,{name:(0,Vt.__)("Finish configuration","wordpress-seo"),isFinished:P}),(0,Zt.jsx)(ql.Content,{children:(0,Zt.jsx)(nu,{state:d})})]})]})}const iu=()=>{const e=function(e){let{router:t,basename:s}=ft(mt.UseBlocker),r=yt(ht.UseBlocker),[n,a]=d.useState(""),o=d.useCallback((t=>{if("/"===s)return e(t);let{currentLocation:r,nextLocation:n,historyAction:a}=t;return e({currentLocation:Ye({},r,{pathname:B(r.pathname,s)||r.pathname}),nextLocation:Ye({},n,{pathname:B(n.pathname,s)||n.pathname}),historyAction:a})}),[s,e]);return d.useEffect((()=>{let e=String(++bt);return a(e),()=>t.deleteBlocker(e)}),[t]),d.useEffect((()=>{""!==n&&t.getBlocker(n,o)}),[t,n,o]),n&&r.blockers.has(n)?r.blockers.get(n):oe}((({currentLocation:e,nextLocation:t})=>(0,c.get)(window,"isStepBeingEdited",!1)&&"/first-time-configuration"===e.pathname&&"/first-time-configuration"!==t.pathname));return(0,Zt.jsxs)(l.Paper,{children:[(0,Zt.jsx)($i,{title:(0,Vt.__)("First-time configuration","wordpress-seo"),description:(0,Vt.__)("Tell us about your site, so we can get it ranked! Let's get your site in tip-top shape for the search engines. Follow these 5 steps to make Google understand what your site is about.","wordpress-seo"),children:(0,Zt.jsx)("div",{id:"yoast-configuration",className:"yst-p-8 yst-max-w-[715px]",children:(0,Zt.jsx)(ou,{})})}),(0,Zt.jsx)($s,{isOpen:"blocked"===e.state,onClose:e.reset,title:(0,Vt.__)("Unsaved changes","wordpress-seo"),description:(0,Vt.__)("There are unsaved changes in one or more steps of the first-time configuration. Leaving means that those changes will be lost. Are you sure you want to leave this page?","wordpress-seo"),onDiscard:e.proceed,dismissLabel:(0,Vt.__)("No, continue editing","wordpress-seo"),discardLabel:(0,Vt.__)("Yes, leave page","wordpress-seo")})]})},lu=()=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(l.Paper,{className:"yst-p-8 yst-grow",children:(0,Zt.jsxs)("header",{className:"yst-max-w-screen-sm",children:[(0,Zt.jsx)(l.Title,{children:(0,Vt.__)("Alert center","wordpress-seo")}),(0,Zt.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:(0,Vt.__)("Monitor and manage potential SEO problems affecting your site and stay informed with important notifications and updates.","wordpress-seo")})]})}),(0,Zt.jsxs)("div",{className:"yst-grid yst-grid-cols-1 @3xl:yst-grid-cols-2 yst-gap-6 yst-my-6 yst-grow yst-items-start",children:[(0,Zt.jsx)(Ei,{}),(0,Zt.jsx)(_i,{})]})]}),cu="/alert-center",du="/first-time-configuration",uu=()=>{const e=qo("selectIsOptInNotificationSeen",[],"wpseo_seen_llm_txt_opt_in_notification"),t=qo("selectPreference",[],"llmTxtEnabled"),{pathname:s}=rt();return s===du||t||e||null===sessionStorage?null:(0,Zt.jsx)("div",{children:(0,Zt.jsx)(Yi,{})})},pu=(0,window.wp.compose.compose)([(0,r.withSelect)(((e,t)=>{const{isAlertDismissed:s}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:s(t.alertKey)}})),(0,r.withDispatch)(((e,t)=>{const{dismissAlert:s}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>s(t.alertKey)}}))]),mu=pu,hu=({children:e,id:t,hasIcon:s=!0,title:r,image:n=null,isAlertDismissed:a,onDismissed:o})=>a?null:(0,Zt.jsxs)("div",{id:t,className:"notice-yoast yoast is-dismissible yoast-webinar-dashboard yoast-general-page-notices",children:[(0,Zt.jsxs)("div",{className:"notice-yoast__container",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("div",{className:"notice-yoast__header",children:[s&&(0,Zt.jsx)("span",{className:"yoast-icon"}),(0,Zt.jsx)("h2",{className:"notice-yoast__header-heading yoast-notice-migrated-header",children:r})]}),(0,Zt.jsx)("div",{className:"notice-yoast-content",children:(0,Zt.jsx)("p",{children:e})})]}),n&&(0,Zt.jsx)(n,{height:"60"})]}),(0,Zt.jsx)("button",{type:"button",className:"notice-dismiss",onClick:o,children:(0,Zt.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */ -(0,Vt.__)("Dismiss this notice.","wordpress-seo")})})]});hu.propTypes={children:Yt().node.isRequired,id:Yt().string.isRequired,hasIcon:Yt().bool,title:Yt().any.isRequired,image:Yt().elementType,isAlertDismissed:Yt().bool.isRequired,onDismissed:Yt().func.isRequired};const fu=mu(hu);var yu,gu,vu,bu,xu,wu,Su,_u,Eu,ju,Cu,ku,Ru,Ou,Nu,Pu,Tu,Lu,Mu,Au,Iu,Du,Fu,zu,Uu,Bu,qu,$u,Hu,Vu,Wu,Gu,Ku,Yu,Zu,Ju,Qu,Xu,ep,tp,sp,rp,np,ap,op,ip,lp;function cp(){return cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},cp.apply(this,arguments)}const dp=e=>d.createElement("svg",cp({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),yu||(yu=d.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),gu||(gu=d.createElement("path",{fill:"#fbd2a6",d:"M173.53 189.38s-35.47-5.3-41.78-11c-9.39-24.93-29.61-48-35.47-66.21-.71-2.24 3.72-11.39 3.53-15.41s-5.34-11.64-5.23-14-.09-15.27-.09-15.27l-4.75-.72s-5.13 6.07-3.56 9.87c-1.73-4.19 4.3 7.93.5 9.35 0 0-6-5.94-11.76-8.27s-19.57-3.65-19.57-3.65L43.19 73l-4.42.6L31 69.7l-2.85 5.12 7.53 5.29L40.86 92l17.19 10.2 10.2 10.56 9.86 3.56s26.49 79.67 45 92c17 11.33 37.23 15.92 37.23 15.92z"})),vu||(vu=d.createElement("path",{fill:"#a4286a",d:"M270.52 345.13c2.76-14.59 15.94-35.73 30.24-54.58 16.22-21.39 14-79.66-33.19-91.46-17.3-4.32-52.25-1-59.85-3.41C186.54 189 170 187 168 190.17c-5 10.51-7.73 27.81-5.51 36.26 1.18 4.73 3.54 5.91 20.49 13.4-5.12 15-16.35 26.3-22.86 37s7.88 27.2 7.1 33.51c-.48 3.8-4.26 21.13-7.18 34.25a149.47 149.47 0 0 0 110.3 8.66 25.66 25.66 0 0 1 .18-8.12z"})),bu||(bu=d.createElement("path",{fill:"#9a5815",d:"M206.76 66.43c-5 14.4-1.42 25.67-3.93 40.74-10 60.34-24.08 43.92-31.44 93.6 7.24-14.19 14.32-15.82 20.63-23.11-.83 3.09-10.25 13.75-8.05 34.81 9.85-8.51 6.35-8.75 11.86-8.54.36 3.25 3.53 3.22-3.59 10.53 2.52.69 17.42-14.32 20.16-12.66s0 5.72-6 7.76c2.15 2.2 30.47-3.87 43.81-14.71 4.93-4 10-13.16 13.38-18.2 7.17-10.62 12.38-24.77 17.71-36.6 8.94-19.87 15.09-39.34 16.11-61.31.53-10.44-3.41-18.44-4.41-28.86-2.57-27.8-67.63-37.26-86.24 16.55z"})),xu||(xu=d.createElement("path",{fill:"#efb17c",d:"M277.74 179.06c.62-.79 1.24-1.59 1.84-2.39-.85 2.59-1.52 3.73-1.84 2.39z"})),wu||(wu=d.createElement("path",{fill:"#fbd2a6",d:"M216.1 206.72c3.69-5.42 8.28-3.35 15.57-8.28 3.76-3.06 1.57-9.46 1.77-11.82 18.25 4.56 37.38-1.18 49.07-16 .62 5.16-2.77 22.27-.2 27 4.73 8.67 13.4 18.92 13.4 18.92-35.47-2.76-63.45 39-89.86 44.54 5.52-28.74-2.36-35.84 10.25-54.36z"})),Su||(Su=d.createElement("path",{fill:"#f6b488",d:"m235.21 167.9 53.21-25.23s-3.65 24-6.5 32.72c-64.05 62.66-46.47-7.33-46.71-7.49z"})),_u||(_u=d.createElement("path",{fill:"#fbd2a6",d:"M226.86 50.64C215 59.31 206.37 93.21 204 95.57c-19.46 19.47-3.59 41.39-3.94 51.24-.2 5.52-4.14 25.42 5.72 29.36 22.22 8.89 60-3.48 67.19-12.61 13.28-16.75 40.89-94.78 17.74-108.19-7.92-4.58-42.78-20.18-63.85-4.73z"})),Eu||(Eu=d.createElement("path",{fill:"#e5766c",d:"M243.69 143.66c-10.7-6.16-8.56-6.73-19.76-12.71-3.86-2.07-3.94.64-6.32 0-2.91-.79-1.39-2.74-5.37-3.48-6.52-1.21-3.67 3.63-3.15 6 1.32 6.15-8.17 17.3 3.26 21.42 12.65 4.55 21.38-9.41 31.34-11.23z"})),ju||(ju=d.createElement("path",{fill:"#fff",d:"M240.68 143.9c-11.49-5.53-11.65-8.17-24.64-11.69-8.6-2.32-5.53 1-5.69 4.42-.2 4.16-1.26 9.87 4.9 12.66 9 4.09 18.16-6.02 25.43-5.39zm.7-40.9c-.16 1.26-.06 4.9 5.46 8.25 11.43-4.73 16.36-2.56 17-3.33 1.48-1.76-2-8.87-7.88-9.85-5.58-.94-14.14 1.24-14.58 4.93z"})),Cu||(Cu=d.createElement("path",{fill:"#000001",d:"M263.53 108.19c-4.32-4.33-6.85-6.24-12.26-8.21-2.77-1-6.18.18-8.65 1.67a3.65 3.65 0 0 0-1.24 1.23h-.12a3.73 3.73 0 0 1 1-1.52 12.53 12.53 0 0 1 11.93-3c4.73 1 9.43 4.63 9.42 9.82z"})),ku||(ku=d.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),Ru||(Ru=d.createElement("path",{fill:"#fff",d:"M225.26 99.22c-.29 1-6.6 3.45-10.92 1.48-1.15-3.24-5-6.43-5.25-6.71-.5-2.86 5.55-8 10.06-6.3a10.21 10.21 0 0 1 6.11 11.53z"})),Ou||(Ou=d.createElement("path",{fill:"#000001",d:"M209.29 94.21c-.19-2.34 1.84-4.1 3.65-5.2 7-3.87 13.18 3 12.43 10h-.12c-.14-4-2.38-8.44-6.47-9.11a3.19 3.19 0 0 0-2.42.31c-1.37.85-2.38 2-3.89 2.56-1 .45-1.92.42-3 1.4h-.22z"})),Nu||(Nu=d.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),Pu||(Pu=d.createElement("path",{fill:"#efb17c",d:"M218.66 120.27a27.32 27.32 0 0 0 4.54 3.45c-2.29-.72-4.28-.69-6.32-2.27-2.53-2-3.39-5.16-.73-7.72 10.24-9.82 12.56-13.82 14.77-24.42-1 12.37-6 17.77-10.63 23.18-2.53 2.97-4.68 5.06-1.63 7.78z"})),Tu||(Tu=d.createElement("path",{fill:"#a57c52",d:"M231.22 69.91c-.67-3.41-8.78-2.83-11.06-1.93-3.48 1.39-6.08 5.22-7.13 8.53 2.9-4.3 6.74-8.12 12.46-6 1.16.42 3.18 2.35 4.48 1.85s1.03-2.2 1.25-2.45zm32.16 8.56c-2.75-1.66-12.24-5.08-12.18.82 2.56.24 5-.19 7.64.95 11.22 4.76 12.77 17.61 12.85 17.86.2-.53.1 1.26.23.7-.02.2.95-12.12-8.54-20.33z"})),Lu||(Lu=d.createElement("path",{fill:"#fbd2a6",d:"M53.43 250.73c6.29 0-.6-.17 7.34 0 1.89.05-2.38-.7 0-.69 4.54-4.2 12.48-.74 20.6-2.45 4.55.35 3.93 1.35 5.59 4.19 4.89 8.38 4.78 14.21 14 19.56 16.42 8.38 66 12.92 88.49 18.86 5.52.83 42.64-20.15 61-23.75 6.51 10.74 11.46 28.68 8.39 34.93-6.54 13.3-57.07 25.4-75.91 25.15C156.47 326.18 94 294 92.2 293c-.94-.57.7-.7-7.68 0s-10.15.72-17.47-1.4c-3-.87-4.61-1.33-6.33-3.54-2 .22-3.39.2-4.78-1-3.15-2.74-4.84-6.61-2.73-10.06h-.12c-3.35-2.48-6.54-7.69-3.08-11.72 1-1.18 6.06-1.94 7.77-2.28-1.58-.29-6.37.19-7.49-.72-3.06-2.5-4.96-11.55 3.14-11.55z"})),Mu||(Mu=d.createElement("path",{fill:"#a4286a",d:"M303.22 237.52c-9.87-11.88-41.59 8.19-47.8 12.34s-14.89 17.95-14.89 17.95c6 9.43 8.36 31 5.65 46.34l30.51-3s18-15.62 22.59-28.7 6.3-42.54 6.3-42.54"})),Au||(Au=d.createElement("path",{fill:"#cb9833",d:"M278.63 31.67c-6.08 0-22.91 4.07-22.93 12.91 0 11 47.9 38.38 16.14 85.85 10.21-.79 10.79-8.12 14.92-14.93-3.66 77-49.38 93.58-40.51 142.25 7.68-25.81 20.3-11.62 38.13-33.84 3.45 4.88 9 18.28-9.46 33.78 50-31.26 57.31-56.6 51.92-95C319.93 113.53 348.7 42 278.63 31.67z"})),Iu||(Iu=d.createElement("path",{fill:"#fbd2a6",d:"M283.64 126.83c-2.42 9.67-8 15.76-1.48 16.46A21.26 21.26 0 0 0 302 132.6c5.17-8.52 3.93-16.44-2.46-18s-13.48 2.56-15.9 12.23z"})),Du||(Du=d.createElement("path",{fill:"#efb17c",d:"M38 73.45c1.92 2 4.25 9.21 6.32 10.91 2.25 1.85 5.71 2.12 8.1 4.45 3.66-2 6-8.72 10-9.31-2.59 1.31-4.42 3.5-6.93 4.88-1.42.8-3 1.31-4.38 2.25-2.16-1.46-4.27-1.77-6.26-3.38-2.52-2.02-5.31-8-6.85-9.8z"})),Fu||(Fu=d.createElement("path",{fill:"#efb17c",d:"M39 74.4c4.83 1.1 12.52 6.44 15.89 10-3.22-1.34-14.73-6.15-15.89-10zm.62-1.5c6.71-.79 18 1.54 23.29 5.9-3.85-.2-5.42-1.48-9-2.94-4.08-1.69-8.83-2.03-14.29-2.96zm46.43 14.58c-3.72-1.32-10.52-1.13-13.22 3.52 2-1.16 1.84-2.11 4.18-1.72-3.81-4.15 8.16-.74 11.6-.24m-2.78 13.15c.56-3.29-8-7.81-10.58-9.17-6.25-3.29-12.16 1.36-19.33-4.53 5.94 6.1 14.23 2.5 19.55 5.76 3.06 1.88 8.65 6.09 9.35 9.38-.23-.4 1.29-1.44 1.01-1.44z"})),zu||(zu=d.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),Uu||(Uu=d.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),Bu||(Bu=d.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),qu||(qu=d.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),$u||($u=d.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),Hu||(Hu=d.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),Vu||(Vu=d.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),Wu||(Wu=d.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),Gu||(Gu=d.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),Ku||(Ku=d.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),Yu||(Yu=d.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),Zu||(Zu=d.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),Ju||(Ju=d.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),Qu||(Qu=d.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),Xu||(Xu=d.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),ep||(ep=d.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),tp||(tp=d.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),sp||(sp=d.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),rp||(rp=d.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),np||(np=d.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),ap||(ap=d.createElement("path",{fill:"#71b026",d:"M78.58 178.43C54.36 167.26 32 198.93 5 198.93c19.56 20.49 63.53 1.52 69 15.5 1.48-14.01 4.11-30.9 4.58-36z"})),op||(op=d.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3z"})),ip||(ip=d.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),lp||(lp=d.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),up=({store:e="yoast-seo/editor",image:t=dp,url:s,...n})=>(0,r.useSelect)((t=>t(e).getIsPremium()))?null:(0,Zt.jsxs)(fu,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,Vt.__)("Join our FREE webinar for SEO success","wordpress-seo"),image:t,url:s,...n,children:[(0,Vt.__)("Feeling lost when it comes to optimizing your site for the search engines? Join our FREE webinar to gain the confidence that you need in order to start optimizing like a pro! You'll obtain the knowledge and tools to start effectively implementing SEO.","wordpress-seo")," ",(0,Zt.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",children:(0,Vt.__)("Sign up today!","wordpress-seo")})]});up.propTypes={store:Yt().string,image:Yt().elementType,url:Yt().string.isRequired};const pp=up,mp=({idSuffix:e=""})=>{const t=(0,l.useSvgAria)(),s=qo("selectPreference",[],"isPremium");return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("header",{className:"yst-px-3 yst-mb-6 yst-space-y-6",children:(0,Zt.jsx)(qt,{id:`link-yoast-logo${e}`,to:"/",className:"yst-inline-block yst-rounded-md focus:yst-ring-primary-500","aria-label":"Yoast SEO"+(s?" Premium":""),children:(0,Zt.jsx)(Qs,{className:"yst-w-40",...t})})}),(0,Zt.jsxs)("ul",{className:"yst-mt-1 yst-px-0.5 yst-space-y-4",children:[(0,Zt.jsx)(as,{to:"/",label:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Mo,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Vt.__)("Dashboard","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"}),(0,Zt.jsx)(as,{to:cu,label:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Ao,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Vt.__)("Alert center","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"}),(0,Zt.jsx)(as,{to:du,label:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Io,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Vt.__)("First-time configuration","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"})]})]})};mp.propTypes={idSuffix:Yt().string};const hp=()=>{const e=(0,r.useSelect)((e=>e(zo).selectNotices()),[]);(0,o.useEffect)((()=>{!function(e){e.forEach((e=>e.originalNotice.remove()))}(e)}),[e]);const{pathname:t}=rt(),s=qo("selectAlertToggleError",[],[]),{setAlertToggleError:n}=(0,r.useDispatch)(zo);(()=>{const e=(0,r.useSelect)((e=>e(zo).selectActiveAlertsCount()),[]);(0,o.useEffect)((()=>{(e=>{const t=(0,Vt.sprintf)(/* translators: Hidden accessibility text; %s: number of notifications. */ -(0,Vt._n)("%s notification","%s notifications",e,"wordpress-seo"),e),s=document.querySelectorAll("#toplevel_page_wpseo_dashboard .update-plugins");for(const r of s)r.className=`update-plugins count-${e}`,Bo(r,".plugin-count",String(e)),Bo(r,".screen-reader-text",t);const r=document.querySelectorAll("#wp-admin-bar-wpseo-menu .yoast-issue-counter");for(const s of r)s.classList.toggle("wpseo-no-adminbar-notifications",0===e),Bo(s,".yoast-issues-count",String(e)),Bo(s,".screen-reader-text",t)})(e)}),[e])})();const a=(0,o.useCallback)((()=>{n(null)}),[n]),i=(0,r.useSelect)((e=>e(zo).selectLinkParams()),[]),c=(0,Ca.addQueryArgs)("https://yoa.st/webinar-intro-settings",i);return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(l.SidebarNavigation,{activePath:t,children:[(0,Zt.jsx)(l.SidebarNavigation.Mobile,{openButtonId:"button-open-dashboard-navigation-mobile",closeButtonId:"button-close-dashboard-navigation-mobile" +(0,Vt.__)("%1$s%2$s%3$s helps you:","wordpress-seo"),"<span>","Yoast SEO Premium","</span>"),{span:(0,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"})})}),(0,Zt.jsx)("ul",{className:"yst-flex yst-flex-col yst-gap-2 yst-list-none yst-list-outside yst-text-slate-600 yst-mt-2",children:s.map(((e,t)=>(0,Zt.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,Zt.jsx)(as,{className:"yst-mr-2 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),e]},`upsell-benefit-${t}`)))})]}),(0,Zt.jsx)("p",{className:"yst-mt-5",children:(0,Zt.jsxs)(l.Button,{as:"a",variant:"upsell",href:window.wpseoFirstTimeConfigurationData.shortlinks.finishLearnMore,className:"yst-gap-2 sm:yst-max-w-sm",target:"_blank",rel:"noopener",children:[(0,Zt.jsx)(Qt,{className:"yst-w-4 yst-h-4"}),(0,Vt.__)("Unlock all Premium features","wordpress-seo"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ +(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")})]})})]})]})})}function Xd(e,t){const{companyName:s,companyLogo:r,companyOrPersonOptions:n,shouldForceCompany:a,fallbackCompanyName:o,websiteName:i,fallbackWebsiteName:l}=e;let{companyOrPerson:c}=e;return("company"!==c||s||r||t(Ul.siteRepresentation))&&!a||(c="company"),{...e,personId:Number(e.personId),personLogoId:Number(e.personLogoId),companyLogoId:Number(e.companyLogoId),tracking:Number(e.tracking),companyOrPerson:c,companyOrPersonOptions:n,errorFields:[],stepErrors:{},editedSteps:[],companyName:s||o,websiteName:i||l}}function eu(){const{removeAlert:e,dismissNotice:t,restoreNotice:s,setTaskCompleted:n}=(0,r.useDispatch)(To),a=(0,r.useSelect)((e=>e(To).selectIsTaskCompleted("complete-ftc")),[]),[i,l]=(0,o.useState)(window.wpseoFirstTimeConfigurationData.finishedSteps),d=(0,o.useCallback)((e=>i.includes(e)),[i]),u=(0,o.useCallback)((e=>{l((t=>(0,c.uniq)([...t,e])))}),[l]);(0,o.useEffect)((()=>{!async function(e){const t=await fa()({path:"yoast/v1/configuration/save_configuration_state",method:"POST",data:{finishedSteps:e}});await t.json}(i),window.wpseoFirstTimeConfigurationData.finishedSteps=i}),[i]);const[p,m]=(0,o.useReducer)(Gi,{...Xd(window.wpseoFirstTimeConfigurationData,d)}),[h,f]=(0,o.useState)((()=>"0"===window.yoastIndexingData.amount?"already_done":"idle")),[y,g]=(0,o.useState)(!1),[v,b]=(0,o.useState)(!1),x=(0,o.useCallback)(((e,t)=>{m({type:"SET_STEP_ERROR",payload:{step:e,message:t}})}),[]),w=(0,o.useCallback)((e=>{m({type:"REMOVE_STEP_ERROR",payload:e})}),[]);(0,o.useEffect)((()=>{"completed"===h&&(e("wpseo-reindex"),window.yoastIndexingData.amount="0")}),[h,e]);const S=d(Ul.optimizeSeoData),_=d(Ul.siteRepresentation),E=d(Ul.socialProfiles),j=d(Ul.personalPreferences),k=(0,o.useCallback)((e=>{m({type:"SET_TRACKING",payload:parseInt(e,10)})})),C=(0,o.useCallback)((e=>{m({type:"SET_ERROR_FIELDS",payload:e})})),R=(0,o.useCallback)((()=>{""!==p.companyLogo&&0!==p.companyLogoId&&""!==p.companyName?t("yoast-local-missing-organization-info-notice"):s("yoast-local-missing-organization-info-notice")}),[t,s,p.companyLogo,p.companyLogoId,p.companyName]),N=(0,o.useCallback)((()=>{t("yoast-first-time-configuration-notice")}),[t]),P=!("company"!==p.companyOrPerson||p.companyName&&(p.companyLogo||p.companyLogoFallback)&&p.websiteName),O=!("person"!==p.companyOrPerson||p.personId&&(p.personLogo||p.personLogoFallback)&&p.websiteName),T=(0,o.useCallback)((e=>m({type:"SET_COMPANY_OR_PERSON",payload:e})),[m]),L=[S,_,E,j].every(Boolean),M=[d(Ul.optimizeSeoData),d(Ul.siteRepresentation),d(Ul.socialProfiles),d(Ul.personalPreferences),L],[A,I]=(0,o.useState)(function(e){if(!Array.isArray(e)||0===e.length)return 0;const t=e.findIndex((e=>!1===e));return-1!==t?t:e.every(Boolean)?e.length-1:0}(M)),[D,F]=(0,o.useState)(L),[z,U]=(0,o.useState)(!1),[B,q]=(0,o.useState)(D&&!z);function $(){return q(!1),U(!0),!0}(0,o.useEffect)((()=>{L&&(F(!0),!1===a&&n("complete-ftc"))}),[L]),(0,o.useEffect)((()=>{q(D&&!z)}),[D,z]),(0,o.useEffect)((()=>{function e(e){"Enter"===e.key&&"first-time-configuration-tab"===document.querySelector(".nav-tab.nav-tab-active").id&&"INPUT"===e.target.tagName&&e.preventDefault()}return addEventListener("keydown",e),()=>removeEventListener("keydown",e)}),[]),(0,o.useEffect)((()=>{p.editedSteps.includes(A+1)||"in_progress"===h?window.isStepBeingEdited=!0:window.isStepBeingEdited=!1}),[p.editedSteps,h,A]);const H=(0,o.useCallback)((e=>{(p.editedSteps.includes(A+1)||"in_progress"===h)&&(-1===location.href.indexOf("page=wpseo_dashboard#top#first-time-configuration")&&-1===location.href.indexOf("page=wpseo_dashboard#/first-time-configuration")||(e.preventDefault(),e.returnValue=""))}),[p.editedSteps,h,A]);return(0,o.useEffect)((()=>(window.addEventListener("beforeunload",H),()=>{window.removeEventListener("beforeunload",H)})),[H]),(0,Zt.jsxs)(zl,{setActiveStepIndex:I,activeStepIndex:A,isStepperFinished:L,children:[(0,Zt.jsxs)(Il,{children:[(0,Zt.jsx)(Il.Header,{name:(0,Vt.__)("SEO data optimization","wordpress-seo"),isFinished:S,children:(0,Zt.jsx)($l,{stepId:Ul.optimizeSeoData,beforeGo:$,isVisible:B,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Zt.jsxs)(Il.Content,{children:[(0,Zt.jsx)(uc,{state:p,setIndexingState:f,indexingState:h,showRunIndexationAlert:v,isStepperFinished:L}),(0,Zt.jsx)(ql,{stepId:Ul.optimizeSeoData,additionalClasses:"yst-mt-12",beforeGo:function(){return v||"idle"!==h||"1"===window.yoastIndexingData.disabled?(U(!1),u(Ul.optimizeSeoData),!0):(b(!0),!1)},destination:D?"last":1,children:(0,Vt.__)("Continue","wordpress-seo")})]})]}),(0,Zt.jsxs)(Il,{children:[(0,Zt.jsx)(Il.Header,{name:(0,Vt.__)("Site representation","wordpress-seo"),isFinished:_,children:(0,Zt.jsx)($l,{stepId:Ul.siteRepresentation,beforeGo:$,isVisible:B,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Zt.jsxs)(Il.Content,{children:[(0,Zt.jsx)(Id,{onOrganizationOrPersonChange:T,dispatch:m,state:p,siteRepresentationEmpty:y}),(0,Zt.jsx)(Il.Error,{id:"yoast-site-representation-step-error",message:p.stepErrors[Ul.siteRepresentation]||""}),(0,Zt.jsx)(Wl,{stepId:Ul.siteRepresentation,stepperFinishedOnce:D,saveFunction:function(){return!y&&P||!y&&O?(g(!0),!1):y||"emptyChoice"!==p.companyOrPerson?(g("emptyChoice"===p.companyOrPerson||P||O),async function(e){const t={company_or_person:"emptyChoice"===e.companyOrPerson?"company":e.companyOrPerson,company_name:e.companyName,company_logo:e.companyLogo,company_logo_id:e.companyLogoId?e.companyLogoId:0,website_name:e.websiteName,person_logo:e.personLogo,person_logo_id:e.personLogoId?e.personLogoId:0,company_or_person_user_id:e.personId},s=await fa()({path:"yoast/v1/configuration/site_representation",method:"POST",data:t});return await s.json}(p).then((()=>(C([]),w(Ul.siteRepresentation),u(Ul.siteRepresentation),window.wpseoFirstTimeConfigurationData={...window.wpseoFirstTimeConfigurationData,...p},R(),!0))).catch((e=>e.failures?(C(e.failures),!1):(e.message&&x(Ul.siteRepresentation,e.message),!1)))):(g(!0),!1)},setEditState:U})]})]}),(0,Zt.jsxs)(Il,{children:[(0,Zt.jsx)(Il.Header,{name:(0,Vt.__)("Social profiles","wordpress-seo"),isFinished:E,children:(0,Zt.jsx)($l,{stepId:Ul.socialProfiles,beforeGo:$,isVisible:B,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Zt.jsxs)(Il.Content,{children:[(0,Zt.jsx)(ul,{state:p,dispatch:m,setErrorFields:C}),(0,Zt.jsx)(Il.Error,{id:"yoast-social-profiles-step-error",message:p.stepErrors[Ul.socialProfiles]||""}),(0,Zt.jsx)(Wl,{stepId:Ul.socialProfiles,stepperFinishedOnce:D,saveFunction:function(){return"person"===p.companyOrPerson?(u(Ul.socialProfiles),!0):async function(e){const t={facebook_site:e.socialProfiles.facebookUrl,twitter_site:e.socialProfiles.twitterUsername,other_social_urls:e.socialProfiles.otherSocialUrls},s=await fa()({path:"yoast/v1/configuration/social_profiles",method:"POST",data:t});return await s.json}(p).then((e=>!1===e.success?(C(e.failures),Promise.reject("There were errors saving social profiles")):e)).then((()=>{C([]),w(Ul.socialProfiles),u(Ul.socialProfiles)})).then((()=>(window.wpseoFirstTimeConfigurationData.socialProfiles=p.socialProfiles,!0))).catch((e=>(e.failures&&C(e.failures),e.message&&x(Ul.socialProfiles,e.message),!1)))},setEditState:U})]})]}),(0,Zt.jsxs)(Il,{children:[(0,Zt.jsx)(Il.Header,{name:(0,Vt.__)("Personal preferences","wordpress-seo"),isFinished:j,children:(0,Zt.jsx)($l,{stepId:Ul.personalPreferences,beforeGo:$,isVisible:B,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Zt.jsxs)(Il.Content,{children:[(0,Zt.jsx)(Yd,{state:p,setTracking:k}),(0,Zt.jsx)(Il.Error,{id:"yoast-personal-preferences-step-error",message:p.stepErrors[Ul.personalPreferences]||""}),(0,Zt.jsx)(Wl,{stepId:Ul.personalPreferences,stepperFinishedOnce:D,saveFunction:function(){return async function(e){if(0!==e.tracking&&1!==e.tracking)throw"Value not set!";const t={tracking:e.tracking},s=await fa()({path:"yoast/v1/configuration/enable_tracking",method:"POST",data:t});return await s.json}(p).then((()=>u(Ul.personalPreferences))).then((()=>(w(Ul.personalPreferences),window.wpseoFirstTimeConfigurationData.tracking=p.tracking,N(),!0))).catch((e=>(e.message&&x(Ul.personalPreferences,e.message),!1)))},setEditState:U})]})]}),(0,Zt.jsxs)(Il,{children:[(0,Zt.jsx)(Il.Header,{name:(0,Vt.__)("Finish configuration","wordpress-seo"),isFinished:L}),(0,Zt.jsx)(Il.Content,{children:(0,Zt.jsx)(Qd,{state:p})})]})]})}const tu=()=>{const e=function(e){let{router:t,basename:s}=ft(mt.UseBlocker),r=yt(ht.UseBlocker),[n,a]=d.useState(""),o=d.useCallback((t=>{if("/"===s)return e(t);let{currentLocation:r,nextLocation:n,historyAction:a}=t;return e({currentLocation:Ye({},r,{pathname:B(r.pathname,s)||r.pathname}),nextLocation:Ye({},n,{pathname:B(n.pathname,s)||n.pathname}),historyAction:a})}),[s,e]);return d.useEffect((()=>{let e=String(++bt);return a(e),()=>t.deleteBlocker(e)}),[t]),d.useEffect((()=>{""!==n&&t.getBlocker(n,o)}),[t,n,o]),n&&r.blockers.has(n)?r.blockers.get(n):oe}((({currentLocation:e,nextLocation:t})=>(0,c.get)(window,"isStepBeingEdited",!1)&&"/first-time-configuration"===e.pathname&&"/first-time-configuration"!==t.pathname));return(0,Zt.jsxs)(l.Paper,{children:[(0,Zt.jsx)(Ii,{title:(0,Vt.__)("First-time configuration","wordpress-seo"),description:(0,Vt.__)("Tell us about your site, so we can get it ranked! Let's get your site in tip-top shape for the search engines. Follow these 5 steps to make Google understand what your site is about.","wordpress-seo"),children:(0,Zt.jsx)("div",{id:"yoast-configuration",className:"yst-p-8 yst-max-w-[715px]",children:(0,Zt.jsx)(eu,{})})}),(0,Zt.jsx)(Ms,{isOpen:"blocked"===e.state,onClose:e.reset,title:(0,Vt.__)("Unsaved changes","wordpress-seo"),description:(0,Vt.__)("There are unsaved changes in one or more steps of the first-time configuration. Leaving means that those changes will be lost. Are you sure you want to leave this page?","wordpress-seo"),onDiscard:e.proceed,dismissLabel:(0,Vt.__)("No, continue editing","wordpress-seo"),discardLabel:(0,Vt.__)("Yes, leave page","wordpress-seo")})]})},su=()=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(l.Paper,{className:"yst-p-8 yst-grow",children:(0,Zt.jsxs)("header",{className:"yst-max-w-screen-sm",children:[(0,Zt.jsx)(l.Title,{children:(0,Vt.__)("Alert center","wordpress-seo")}),(0,Zt.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:(0,Vt.__)("Monitor and manage potential SEO problems affecting your site and stay informed with important notifications and updates.","wordpress-seo")})]})}),(0,Zt.jsxs)("div",{className:"yst-grid yst-grid-cols-1 @3xl:yst-grid-cols-2 yst-gap-6 yst-my-6 yst-grow yst-items-start",children:[(0,Zt.jsx)(gi,{}),(0,Zt.jsx)(yi,{})]})]}),ru=()=>{const{setTasks:e}=(0,r.useDispatch)(To),{getTasksEndpoint:t,isPremium:s,tasks:n,nonce:a}=(0,r.useSelect)((e=>{const t=e(To);return{getTasksEndpoint:t.selectTasksEndpoints().getTasks,isPremium:t.getIsPremium(),tasks:t.selectTasks(),nonce:t.selectNonce()}}),[]),[d,u]=(0,o.useState)({error:null,isPending:!1}),[p,m]=(0,o.useState)([]);(0,o.useEffect)((()=>{const e={high:1,medium:2,low:3},t=(0,c.sortBy)((0,c.values)(n),[e=>e.isCompleted,t=>e[t.priority],e=>e.duration,e=>e.title.toLowerCase()]);m(t)}),[n]);const h=(0,c.size)(n),f=(0,c.size)((0,c.values)(n).filter((e=>e.isCompleted))),y=(0,o.useCallback)((async()=>{try{u({isPending:!0,error:null});const s=await fetch(t,{method:"GET",headers:{"Content-Type":"application/json","X-WP-Nonce":a}}),r=await s.json();if(!0!==r.success)throw new Error(r.error);e(r.tasks),u({error:null,isPending:!1})}catch(e){u({error:e,isPending:!1})}}),[t,a,u,e]);(0,o.useEffect)((()=>{(0,c.isEmpty)(n)&&y()}),[n,y]);const{error:g,isPending:v}=d;return(0,Zt.jsx)(l.Paper,{className:"yst-mb-6",children:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(l.Paper.Header,{children:[(0,Zt.jsx)(l.Title,{children:(0,Vt.__)("Task list","wordpress-seo")}),(0,Zt.jsx)("p",{className:"yst-max-w-screen-sm yst-mt-3 yst-text-tiny",children:(0,Vt.__)("Stay on top of your SEO progress with this task list. Complete each task to ensure your site is optimized and aligned with best SEO practices.","wordpress-seo")})]}),(0,Zt.jsxs)(l.Paper.Content,{children:[(0,Zt.jsx)(i.TasksProgressBar,{completedTasks:f,totalTasks:h,isLoading:v}),(0,Zt.jsxs)(l.Table,{className:"yst-mt-4",children:[(0,Zt.jsx)(l.Table.Head,{children:(0,Zt.jsxs)(l.Table.Row,{children:[(0,Zt.jsx)(l.Table.Header,{children:(0,Vt.__)("Task","wordpress-seo")}),(0,Zt.jsx)(l.Table.Header,{className:"yst-max-w-36",children:(0,Vt.__)("Est. duration","wordpress-seo")}),(0,Zt.jsx)(l.Table.Header,{className:"yst-max-w-44",children:(0,Vt.__)("Priority","wordpress-seo")})]})}),(0,Zt.jsxs)(l.Table.Body,{children:[(0,c.isEmpty)(n)&&v&&[{id:"task-1",title:"Complete the First-time configuration"},{id:"task-2",title:"Remove the Hello World post"},{id:"task-3",title:"Create an llms.txt file"},{id:"task-4",title:"Set search appearance templates for your posts"},{id:"task-5",title:"Set search appearance templates for your pages"}].map((e=>(0,Zt.jsx)(i.TaskRow.Loading,{...e},e.id))),g&&(0,Zt.jsx)(i.GetTasksErrorRow,{message:g}),!(0,c.isEmpty)(p)&&(0,c.values)(p).map((e=>(0,Zt.jsx)(du,{...e},e.id))),!s&&(0,Zt.jsx)(cu,{})]})]})]})]})})},nu="/alert-center",au="/first-time-configuration",ou="/task-list",iu=()=>{const e=Ao("selectIsOptInNotificationSeen",[],"wpseo_seen_llm_txt_opt_in_notification"),t=Ao("selectPreference",[],"llmTxtEnabled"),{pathname:s}=rt();return s===au||t||e||null===sessionStorage?null:(0,Zt.jsx)("div",{children:(0,Zt.jsx)(qi,{})})},lu=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"}))})),cu=()=>{const e=(0,r.select)(To).selectLink("https://yoa.st/task-list-upsell-table-footer");return(0,Zt.jsx)(l.Table.Row,{children:(0,Zt.jsx)(l.Table.Cell,{className:"yst-bg-slate-50",colSpan:4,children:(0,Zt.jsxs)("div",{className:"yst-flex yst-justify-between lg:yst-flex-row yst-flex-col yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-justify-start yst-gap-4",children:[(0,Zt.jsx)("div",{className:"yst-w-10 yst-h-10 yst-rounded-full yst-bg-amber-300 yst-flex yst-items-center yst-justify-center yst-shrink-0",children:(0,Zt.jsx)(lu,{className:"yst-w-5 yst-h-5 yst-text-amber-900"})}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)(l.Title,{size:"5",as:"h3",className:"yst-text-slate-800 yst-leading-5",children:(0,Vt.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */ +(0,Vt.__)("Unlock all %1$s tasks","wordpress-seo"),"Yoast SEO Premium")}),(0,Zt.jsx)("p",{className:"yst-leading-5",children:(0,Vt.__)("Get automated technical SEO & optimize content in a breeze","wordpress-seo")})]})]}),(0,Zt.jsxs)(l.Button,{variant:"upsell",as:"a",href:e,target:"_blank",className:"yst-flex yst-items-center yst-gap-1.5 yst-pe-2 yst-mt-4 lg:yst-mt-0",children:[(0,Vt.__)("Unlock with Premium","wordpress-seo"),(0,Zt.jsx)(Qt,{className:"yst-w-4 yst-h-4 yst-text-amber-900"})]})]})})})},du=({title:e,id:t,how:s,why:n,duration:a,priority:c,isCompleted:d,callToAction:u,badge:p})=>{const[m,h]=(0,l.useToggleState)(!1),{completeTask:f,resetTaskError:y}=(0,r.useDispatch)(To),{status:g,completeTaskEndpoint:v,nonce:b,errorMessage:x}=(0,r.useSelect)((e=>{const s=e(To);return{status:s.selectTaskStatus(t),errorMessage:s.selectTaskError(t),completeTaskEndpoint:s.selectTasksEndpoints().completeTask,nonce:s.selectNonce()}}),[]),w={onClick:(0,o.useCallback)((async()=>{f(t,v,b)}),[b]),...u},S=(0,o.useCallback)((()=>{y(t),h()}),[h]);return(0,Zt.jsx)(i.TaskRow,{title:e,duration:a,priority:c,isCompleted:d,onClick:S,badge:p,children:(0,Zt.jsx)(i.TaskModal,{isOpen:m,onClose:h,title:e,duration:a,priority:c,why:n,how:s,isCompleted:d,taskId:t,callToAction:w,isLoading:g===zs,isError:g===Us,errorMessage:x})})},uu=(0,window.wp.compose.compose)([(0,r.withSelect)(((e,t)=>{const{isAlertDismissed:s}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:s(t.alertKey)}})),(0,r.withDispatch)(((e,t)=>{const{dismissAlert:s}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>s(t.alertKey)}}))]),pu=uu,mu=({children:e,id:t,hasIcon:s=!0,title:r,image:n=null,isAlertDismissed:a,onDismissed:o})=>a?null:(0,Zt.jsxs)("div",{id:t,className:"notice-yoast yoast is-dismissible yoast-webinar-dashboard yoast-general-page-notices",children:[(0,Zt.jsxs)("div",{className:"notice-yoast__container",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("div",{className:"notice-yoast__header",children:[s&&(0,Zt.jsx)("span",{className:"yoast-icon"}),(0,Zt.jsx)("h2",{className:"notice-yoast__header-heading yoast-notice-migrated-header",children:r})]}),(0,Zt.jsx)("div",{className:"notice-yoast-content",children:(0,Zt.jsx)("p",{children:e})})]}),n&&(0,Zt.jsx)(n,{height:"60"})]}),(0,Zt.jsx)("button",{type:"button",className:"notice-dismiss",onClick:o,children:(0,Zt.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */ +(0,Vt.__)("Dismiss this notice.","wordpress-seo")})})]});mu.propTypes={children:Yt().node.isRequired,id:Yt().string.isRequired,hasIcon:Yt().bool,title:Yt().any.isRequired,image:Yt().elementType,isAlertDismissed:Yt().bool.isRequired,onDismissed:Yt().func.isRequired};const hu=pu(mu);var fu,yu,gu,vu,bu,xu,wu,Su,_u,Eu,ju,ku,Cu,Ru,Nu,Pu,Ou,Tu,Lu,Mu,Au,Iu,Du,Fu,zu,Uu,Bu,qu,$u,Hu,Vu,Wu,Gu,Ku,Yu,Zu,Ju,Qu,Xu,ep,tp,sp,rp,np,ap,op,ip;function lp(){return lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},lp.apply(this,arguments)}const cp=e=>d.createElement("svg",lp({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),fu||(fu=d.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),yu||(yu=d.createElement("path",{fill:"#fbd2a6",d:"M173.53 189.38s-35.47-5.3-41.78-11c-9.39-24.93-29.61-48-35.47-66.21-.71-2.24 3.72-11.39 3.53-15.41s-5.34-11.64-5.23-14-.09-15.27-.09-15.27l-4.75-.72s-5.13 6.07-3.56 9.87c-1.73-4.19 4.3 7.93.5 9.35 0 0-6-5.94-11.76-8.27s-19.57-3.65-19.57-3.65L43.19 73l-4.42.6L31 69.7l-2.85 5.12 7.53 5.29L40.86 92l17.19 10.2 10.2 10.56 9.86 3.56s26.49 79.67 45 92c17 11.33 37.23 15.92 37.23 15.92z"})),gu||(gu=d.createElement("path",{fill:"#a4286a",d:"M270.52 345.13c2.76-14.59 15.94-35.73 30.24-54.58 16.22-21.39 14-79.66-33.19-91.46-17.3-4.32-52.25-1-59.85-3.41C186.54 189 170 187 168 190.17c-5 10.51-7.73 27.81-5.51 36.26 1.18 4.73 3.54 5.91 20.49 13.4-5.12 15-16.35 26.3-22.86 37s7.88 27.2 7.1 33.51c-.48 3.8-4.26 21.13-7.18 34.25a149.47 149.47 0 0 0 110.3 8.66 25.66 25.66 0 0 1 .18-8.12z"})),vu||(vu=d.createElement("path",{fill:"#9a5815",d:"M206.76 66.43c-5 14.4-1.42 25.67-3.93 40.74-10 60.34-24.08 43.92-31.44 93.6 7.24-14.19 14.32-15.82 20.63-23.11-.83 3.09-10.25 13.75-8.05 34.81 9.85-8.51 6.35-8.75 11.86-8.54.36 3.25 3.53 3.22-3.59 10.53 2.52.69 17.42-14.32 20.16-12.66s0 5.72-6 7.76c2.15 2.2 30.47-3.87 43.81-14.71 4.93-4 10-13.16 13.38-18.2 7.17-10.62 12.38-24.77 17.71-36.6 8.94-19.87 15.09-39.34 16.11-61.31.53-10.44-3.41-18.44-4.41-28.86-2.57-27.8-67.63-37.26-86.24 16.55z"})),bu||(bu=d.createElement("path",{fill:"#efb17c",d:"M277.74 179.06c.62-.79 1.24-1.59 1.84-2.39-.85 2.59-1.52 3.73-1.84 2.39z"})),xu||(xu=d.createElement("path",{fill:"#fbd2a6",d:"M216.1 206.72c3.69-5.42 8.28-3.35 15.57-8.28 3.76-3.06 1.57-9.46 1.77-11.82 18.25 4.56 37.38-1.18 49.07-16 .62 5.16-2.77 22.27-.2 27 4.73 8.67 13.4 18.92 13.4 18.92-35.47-2.76-63.45 39-89.86 44.54 5.52-28.74-2.36-35.84 10.25-54.36z"})),wu||(wu=d.createElement("path",{fill:"#f6b488",d:"m235.21 167.9 53.21-25.23s-3.65 24-6.5 32.72c-64.05 62.66-46.47-7.33-46.71-7.49z"})),Su||(Su=d.createElement("path",{fill:"#fbd2a6",d:"M226.86 50.64C215 59.31 206.37 93.21 204 95.57c-19.46 19.47-3.59 41.39-3.94 51.24-.2 5.52-4.14 25.42 5.72 29.36 22.22 8.89 60-3.48 67.19-12.61 13.28-16.75 40.89-94.78 17.74-108.19-7.92-4.58-42.78-20.18-63.85-4.73z"})),_u||(_u=d.createElement("path",{fill:"#e5766c",d:"M243.69 143.66c-10.7-6.16-8.56-6.73-19.76-12.71-3.86-2.07-3.94.64-6.32 0-2.91-.79-1.39-2.74-5.37-3.48-6.52-1.21-3.67 3.63-3.15 6 1.32 6.15-8.17 17.3 3.26 21.42 12.65 4.55 21.38-9.41 31.34-11.23z"})),Eu||(Eu=d.createElement("path",{fill:"#fff",d:"M240.68 143.9c-11.49-5.53-11.65-8.17-24.64-11.69-8.6-2.32-5.53 1-5.69 4.42-.2 4.16-1.26 9.87 4.9 12.66 9 4.09 18.16-6.02 25.43-5.39zm.7-40.9c-.16 1.26-.06 4.9 5.46 8.25 11.43-4.73 16.36-2.56 17-3.33 1.48-1.76-2-8.87-7.88-9.85-5.58-.94-14.14 1.24-14.58 4.93z"})),ju||(ju=d.createElement("path",{fill:"#000001",d:"M263.53 108.19c-4.32-4.33-6.85-6.24-12.26-8.21-2.77-1-6.18.18-8.65 1.67a3.65 3.65 0 0 0-1.24 1.23h-.12a3.73 3.73 0 0 1 1-1.52 12.53 12.53 0 0 1 11.93-3c4.73 1 9.43 4.63 9.42 9.82z"})),ku||(ku=d.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),Cu||(Cu=d.createElement("path",{fill:"#fff",d:"M225.26 99.22c-.29 1-6.6 3.45-10.92 1.48-1.15-3.24-5-6.43-5.25-6.71-.5-2.86 5.55-8 10.06-6.3a10.21 10.21 0 0 1 6.11 11.53z"})),Ru||(Ru=d.createElement("path",{fill:"#000001",d:"M209.29 94.21c-.19-2.34 1.84-4.1 3.65-5.2 7-3.87 13.18 3 12.43 10h-.12c-.14-4-2.38-8.44-6.47-9.11a3.19 3.19 0 0 0-2.42.31c-1.37.85-2.38 2-3.89 2.56-1 .45-1.92.42-3 1.4h-.22z"})),Nu||(Nu=d.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),Pu||(Pu=d.createElement("path",{fill:"#efb17c",d:"M218.66 120.27a27.32 27.32 0 0 0 4.54 3.45c-2.29-.72-4.28-.69-6.32-2.27-2.53-2-3.39-5.16-.73-7.72 10.24-9.82 12.56-13.82 14.77-24.42-1 12.37-6 17.77-10.63 23.18-2.53 2.97-4.68 5.06-1.63 7.78z"})),Ou||(Ou=d.createElement("path",{fill:"#a57c52",d:"M231.22 69.91c-.67-3.41-8.78-2.83-11.06-1.93-3.48 1.39-6.08 5.22-7.13 8.53 2.9-4.3 6.74-8.12 12.46-6 1.16.42 3.18 2.35 4.48 1.85s1.03-2.2 1.25-2.45zm32.16 8.56c-2.75-1.66-12.24-5.08-12.18.82 2.56.24 5-.19 7.64.95 11.22 4.76 12.77 17.61 12.85 17.86.2-.53.1 1.26.23.7-.02.2.95-12.12-8.54-20.33z"})),Tu||(Tu=d.createElement("path",{fill:"#fbd2a6",d:"M53.43 250.73c6.29 0-.6-.17 7.34 0 1.89.05-2.38-.7 0-.69 4.54-4.2 12.48-.74 20.6-2.45 4.55.35 3.93 1.35 5.59 4.19 4.89 8.38 4.78 14.21 14 19.56 16.42 8.38 66 12.92 88.49 18.86 5.52.83 42.64-20.15 61-23.75 6.51 10.74 11.46 28.68 8.39 34.93-6.54 13.3-57.07 25.4-75.91 25.15C156.47 326.18 94 294 92.2 293c-.94-.57.7-.7-7.68 0s-10.15.72-17.47-1.4c-3-.87-4.61-1.33-6.33-3.54-2 .22-3.39.2-4.78-1-3.15-2.74-4.84-6.61-2.73-10.06h-.12c-3.35-2.48-6.54-7.69-3.08-11.72 1-1.18 6.06-1.94 7.77-2.28-1.58-.29-6.37.19-7.49-.72-3.06-2.5-4.96-11.55 3.14-11.55z"})),Lu||(Lu=d.createElement("path",{fill:"#a4286a",d:"M303.22 237.52c-9.87-11.88-41.59 8.19-47.8 12.34s-14.89 17.95-14.89 17.95c6 9.43 8.36 31 5.65 46.34l30.51-3s18-15.62 22.59-28.7 6.3-42.54 6.3-42.54"})),Mu||(Mu=d.createElement("path",{fill:"#cb9833",d:"M278.63 31.67c-6.08 0-22.91 4.07-22.93 12.91 0 11 47.9 38.38 16.14 85.85 10.21-.79 10.79-8.12 14.92-14.93-3.66 77-49.38 93.58-40.51 142.25 7.68-25.81 20.3-11.62 38.13-33.84 3.45 4.88 9 18.28-9.46 33.78 50-31.26 57.31-56.6 51.92-95C319.93 113.53 348.7 42 278.63 31.67z"})),Au||(Au=d.createElement("path",{fill:"#fbd2a6",d:"M283.64 126.83c-2.42 9.67-8 15.76-1.48 16.46A21.26 21.26 0 0 0 302 132.6c5.17-8.52 3.93-16.44-2.46-18s-13.48 2.56-15.9 12.23z"})),Iu||(Iu=d.createElement("path",{fill:"#efb17c",d:"M38 73.45c1.92 2 4.25 9.21 6.32 10.91 2.25 1.85 5.71 2.12 8.1 4.45 3.66-2 6-8.72 10-9.31-2.59 1.31-4.42 3.5-6.93 4.88-1.42.8-3 1.31-4.38 2.25-2.16-1.46-4.27-1.77-6.26-3.38-2.52-2.02-5.31-8-6.85-9.8z"})),Du||(Du=d.createElement("path",{fill:"#efb17c",d:"M39 74.4c4.83 1.1 12.52 6.44 15.89 10-3.22-1.34-14.73-6.15-15.89-10zm.62-1.5c6.71-.79 18 1.54 23.29 5.9-3.85-.2-5.42-1.48-9-2.94-4.08-1.69-8.83-2.03-14.29-2.96zm46.43 14.58c-3.72-1.32-10.52-1.13-13.22 3.52 2-1.16 1.84-2.11 4.18-1.72-3.81-4.15 8.16-.74 11.6-.24m-2.78 13.15c.56-3.29-8-7.81-10.58-9.17-6.25-3.29-12.16 1.36-19.33-4.53 5.94 6.1 14.23 2.5 19.55 5.76 3.06 1.88 8.65 6.09 9.35 9.38-.23-.4 1.29-1.44 1.01-1.44z"})),Fu||(Fu=d.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),zu||(zu=d.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),Uu||(Uu=d.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),Bu||(Bu=d.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),qu||(qu=d.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),$u||($u=d.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),Hu||(Hu=d.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),Vu||(Vu=d.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),Wu||(Wu=d.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),Gu||(Gu=d.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),Ku||(Ku=d.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),Yu||(Yu=d.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),Zu||(Zu=d.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),Ju||(Ju=d.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),Qu||(Qu=d.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),Xu||(Xu=d.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),ep||(ep=d.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),tp||(tp=d.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),sp||(sp=d.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),rp||(rp=d.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),np||(np=d.createElement("path",{fill:"#71b026",d:"M78.58 178.43C54.36 167.26 32 198.93 5 198.93c19.56 20.49 63.53 1.52 69 15.5 1.48-14.01 4.11-30.9 4.58-36z"})),ap||(ap=d.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3z"})),op||(op=d.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),ip||(ip=d.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),dp=({store:e="yoast-seo/editor",image:t=cp,url:s,...n})=>(0,r.useSelect)((t=>t(e).getIsPremium()))?null:(0,Zt.jsxs)(hu,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,Vt.__)("Join our FREE webinar for SEO success","wordpress-seo"),image:t,url:s,...n,children:[(0,Vt.__)("Feeling lost when it comes to optimizing your site for the search engines? Join our FREE webinar to gain the confidence that you need in order to start optimizing like a pro! You'll obtain the knowledge and tools to start effectively implementing SEO.","wordpress-seo")," ",(0,Zt.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",children:(0,Vt.__)("Sign up today!","wordpress-seo")})]});dp.propTypes={store:Yt().string,image:Yt().elementType,url:Yt().string.isRequired};const up=dp,pp=({idSuffix:e=""})=>{const t=(0,l.useSvgAria)(),s=Ao("selectPreference",[],"isPremium"),r=Ao("selectIsTaskListEnabled",[]);return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("header",{className:"yst-px-3 yst-mb-6 yst-space-y-6",children:(0,Zt.jsx)(qt,{id:`link-yoast-logo${e}`,to:"/",className:"yst-inline-block yst-rounded-md focus:yst-ring-primary-500","aria-label":"Yoast SEO"+(s?" Premium":""),children:(0,Zt.jsx)(Hs,{className:"yst-w-40",...t})})}),(0,Zt.jsxs)("ul",{className:"yst-mt-1 yst-px-0.5 yst-space-y-4",children:[(0,Zt.jsx)(rs,{to:"/",label:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(ko,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Vt.__)("Dashboard","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"}),r&&(0,Zt.jsx)(rs,{to:ou,label:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Co,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Vt.__)("Task list","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"}),(0,Zt.jsx)(rs,{to:nu,label:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Ro,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Vt.__)("Alert center","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"}),(0,Zt.jsx)(rs,{to:au,label:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(No,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Vt.__)("First-time configuration","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"})]})]})};pp.propTypes={idSuffix:Yt().string};const mp=()=>{const e=(0,r.useSelect)((e=>e(To).selectNotices()),[]);(0,o.useEffect)((()=>{!function(e){e.forEach((e=>e.originalNotice.remove()))}(e)}),[e]);const{pathname:t}=rt(),s=Ao("selectAlertToggleError",[],[]),{setAlertToggleError:n}=(0,r.useDispatch)(To);(()=>{const e=(0,r.useSelect)((e=>e(To).selectActiveAlertsCount()),[]);(0,o.useEffect)((()=>{(e=>{const t=(0,Vt.sprintf)(/* translators: Hidden accessibility text; %s: number of notifications. */ +(0,Vt._n)("%s notification","%s notifications",e,"wordpress-seo"),e),s=document.querySelectorAll("#toplevel_page_wpseo_dashboard .update-plugins");for(const r of s)r.className=`update-plugins count-${e}`,Mo(r,".plugin-count",String(e)),Mo(r,".screen-reader-text",t);const r=document.querySelectorAll("#wp-admin-bar-wpseo-menu .yoast-issue-counter");for(const s of r)s.classList.toggle("wpseo-no-adminbar-notifications",0===e),Mo(s,".yoast-issues-count",String(e)),Mo(s,".screen-reader-text",t)})(e)}),[e])})();const a=(0,o.useCallback)((()=>{n(null)}),[n]),i=(0,r.useSelect)((e=>e(To).selectLinkParams()),[]),c=(0,va.addQueryArgs)("https://yoa.st/webinar-intro-settings",i);return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(l.SidebarNavigation,{activePath:t,children:[(0,Zt.jsx)(l.SidebarNavigation.Mobile,{openButtonId:"button-open-dashboard-navigation-mobile",closeButtonId:"button-close-dashboard-navigation-mobile" /* translators: Hidden accessibility text. */,openButtonScreenReaderText:(0,Vt.__)("Open dashboard navigation","wordpress-seo") -/* translators: Hidden accessibility text. */,closeButtonScreenReaderText:(0,Vt.__)("Close dashboard navigation","wordpress-seo"),"aria-label":(0,Vt.__)("Dashboard navigation","wordpress-seo"),children:(0,Zt.jsx)(mp,{idSuffix:"-mobile"})}),(0,Zt.jsxs)("div",{className:"yst-p-4 min-[783px]:yst-p-8 yst-flex yst-gap-4",children:[(0,Zt.jsx)("aside",{className:"yst-sidebar yst-sidebar-nav yst-shrink-0 yst-hidden min-[783px]:yst-block yst-pb-6 yst-bottom-0 yst-w-56",children:(0,Zt.jsx)(l.SidebarNavigation.Sidebar,{children:(0,Zt.jsx)(mp,{})})}),(0,Zt.jsx)("div",{className:"yst-grow yst-max-w-page",children:(0,Zt.jsx)("div",{className:"yst-space-y-6 yst-mb-8 xl:yst-mb-0",children:(0,Zt.jsx)("main",{children:(0,Zt.jsxs)(Lo,{appear:!0,show:!0,enter:"yst-transition-opacity yst-delay-100 yst-duration-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",children:[t!==du&&(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)(pp,{store:zo,url:c,image:null}),e.length>0&&(0,Zt.jsxs)("div",{className:e.filter((e=>!e.isDismissed)).length>0?"yst-space-y-3 yoast-general-page-notices":"yst-hidden",children:[" ",e.map(((e,t)=>(0,Zt.jsx)(Si,{id:e.id||"yoast-general-page-notice-"+t,title:e.header,isDismissable:e.isDismissable,className:e.isDismissed?"yst-hidden":"",children:e.content},t)))]})]}),(0,Zt.jsx)(St,{})]},t)})})})]})]}),(0,Zt.jsxs)(l.Notifications,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all yst-start-48",position:"bottom-left",children:[(0,Zt.jsx)(uu,{}),s&&(0,Zt.jsx)(l.Notifications.Notification,{id:"toggle-alert-error",title:(0,Vt.__)("Something went wrong","wordpress-seo"),variant:"error",dismissScreenReaderLabel:(0,Vt.__)("Dismiss","wordpress-seo"),size:"large",autoDismiss:4e3,onDismiss:a,children:"error"===s.type?(0,Vt.__)("This problem can't be hidden at this time. Please try again later.","wordpress-seo"):(0,Vt.__)("This notification can't be hidden at this time. Please try again later.","wordpress-seo")})]})]})},fp=()=>{const e=qo("selectPreference",[],"isPremium"),t=qo("selectUpsellSettingsAsProps"),{isPromotionActive:s}=(0,r.useSelect)(zo),n=qo("selectLink",[],"https://yoa.st/17h"),a=qo("selectLink",[],"https://yoa.st/admin-footer-upsell-woocommerce"),o=qo("selectPreference",[],"isWooCommerceActive");return e?null:(0,Zt.jsx)(Us,{premiumLink:o?a:n,premiumUpsellConfig:t,isPromotionActive:s,isWooCommerceActive:o})},yp=({contentClassName:e="",children:t=null})=>{const s=qo("selectPreference",[],"isPremium"),n=qo("selectLink",[],"https://yoa.st/jj"),a=qo("selectLink",[],"https://yoa.st/admin-sidebar-upsell-woocommerce"),o=qo("selectUpsellSettingsAsProps"),i=qo("selectLink",[],"https://yoa.st/3t6"),{isPromotionActive:l}=(0,r.useSelect)(zo),c=qo("selectPreference",[],"isWooCommerceActive");return(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-6 xl:yst-flex-row yst-flex-col",children:[(0,Zt.jsx)("div",{className:Ps()("yst-@container yst-flex yst-flex-grow yst-flex-col",e),children:t}),!s&&(0,Zt.jsx)("div",{className:"yst-min-w-[16rem] xl:yst-max-w-[16rem]",children:(0,Zt.jsx)("div",{className:"yst-sticky yst-top-16",children:(0,Zt.jsx)(Bs,{premiumLink:c?a:n,premiumUpsellConfig:o,academyLink:i,isPromotionActive:l,isWooCommerceActive:c})})})]})},gp=window.yoast.externals.redux;function vp({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}const bp="adminNotices",xp=(0,fa.createSlice)({name:bp,initialState:{notices:function(){const e=[...Array.from(document.querySelectorAll(".notice-yoast:not(.yoast-webinar-dashboard)")),...Array.from(document.querySelectorAll(".yoast-migrated-notice"))],t=e.map((e=>e.id)),s=e.map((e=>e.querySelector(".yoast-notice-migrated-header"))),r=function(e){return e.forEach((e=>{e&&e.querySelectorAll("a.button").forEach((e=>{e.classList.remove("button"),e.classList.add("yst-button"),e.classList.add("yst-button--primary"),e.classList.add("yst-mt-4")}))})),e}(e.map((e=>e.querySelector(".notice-yoast-content")))),n=e.map((e=>e.classList.contains("is-dismissible")));return e.map(((e,a)=>({originalNotice:e,id:t[a],header:s[a].outerHTML,content:r[a].outerHTML,isDismissable:n[a],isDismissed:!1})))}()},reducers:{dismissNotice(e,{payload:t}){e.notices.map((e=>{e.id===t&&(e.isDismissed=!0)}))},restoreNotice(e,{payload:t}){e.notices.map((e=>{e.id===t&&(e.isDismissed=!1)}))}}}),wp=xp.getInitialState,Sp={selectNotices:e=>(0,c.get)(e,`${bp}.notices`,[])},_p=xp.actions,Ep=xp.reducer,jp="alertCenter",Cp="toggleAlertVisibility",kp=(0,fa.createSlice)({name:jp,initialState:{alertToggleError:null,alerts:[],resolveSuccessMessage:null},reducers:{toggleAlert:(e,t)=>{const s=e.alerts.findIndex((e=>e.id===t));-1!==s&&(e.alerts[s].dismissed=!e.alerts[s].dismissed)},setAlertToggleError:(e,t)=>{const s=e.alerts.findIndex((e=>e.id===t));e.alertToggleError=-1===s?null:e.alerts[s]},setResolveSuccessMessage:(e,{payload:t})=>{e.resolveSuccessMessage=t},removeAlert(e,{payload:t}){e.alerts=e.alerts.filter((e=>e.id!==t))}},extraReducers:e=>{e.addCase(`${Cp}/${Ws}`,((e,{payload:{id:t}})=>{kp.caseReducers.toggleAlert(e,t)})),e.addCase(`${Cp}/${Gs}`,((e,{payload:{id:t}})=>{kp.caseReducers.setAlertToggleError(e,t)}))}}),Rp=kp.getInitialState,Op=e=>(0,c.get)(e,`${jp}.alerts`,[]),Np=(0,fa.createSelector)([Op],(e=>e.filter((e=>!e.dismissed)))),Pp={selectActiveProblems:(0,fa.createSelector)([Np],(e=>e.filter((e=>"error"===e.type)))),selectDismissedProblems:(0,fa.createSelector)([Op],(e=>e.filter((e=>"error"===e.type&&e.dismissed)))),selectActiveNotifications:(0,fa.createSelector)([Np],(e=>e.filter((e=>"warning"===e.type)))),selectDismissedNotifications:(0,fa.createSelector)([Op],(e=>e.filter((e=>"warning"===e.type&&e.dismissed)))),selectAlertToggleError:e=>(0,c.get)(e,`${jp}.alertToggleError`,null),selectResolveSuccessMessage:e=>(0,c.get)(e,`${jp}.resolveSuccessMessage`,null),selectAlert:(0,fa.createSelector)([Op,(e,t)=>t],((e,t)=>e.find((e=>e.id===t)))),selectActiveAlertsCount:(0,fa.createSelector)([Np],(e=>e.length))},Tp={...kp.actions,toggleAlertStatus:function*(e,t,s=!1){yield{type:`${Cp}/${Vs}`};try{return yield{type:Cp,payload:{id:e,nonce:t,hidden:s}},{type:`${Cp}/${Ws}`,payload:{id:e}}}catch(t){return{type:`${Cp}/${Gs}`,payload:{id:e}}}}},Lp={[Cp]:async({payload:e})=>{const t=new URLSearchParams;t.append("action",e.hidden?"yoast_restore_notification":"yoast_dismiss_notification"),t.append("notification",e.id),t.append("nonce",e.nonce);const s=(0,r.select)(zo).selectPreference("ajaxUrl");if(!(await fetch(s,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:t.toString()})).ok)throw new Error("Failed to dismiss notification")}},Mp=kp.reducer,Ap=()=>({...(0,c.get)(window,"wpseoScriptData.preferences",{}),ajaxUrl:(0,c.get)(window,"ajaxurl","")}),Ip=(0,fa.createSlice)({name:"preferences",initialState:Ap(),reducers:{}}),Dp={selectPreference:(e,t,s={})=>(0,c.get)(e,`preferences.${t}`,s),selectPreferences:e=>(0,c.get)(e,"preferences",{})};Dp.selectUpsellSettingsAsProps=(0,fa.createSelector)([e=>Dp.selectPreference(e,"upsellSettings",{}),(e,t="premiumCtbId")=>t],((e,t)=>({"data-action":null==e?void 0:e.actionId,"data-ctb-id":null==e?void 0:e[t]})));const Fp=Ip.actions,zp=Ip.reducer,Up="optInNotification",Bp="setOptInNotificationSeen",qp=(0,fa.createSlice)({name:Up,initialState:{seen:{}},reducers:{hideOptInNotification(e,t){const s=t.payload;e.seen[s]=!0}}}),$p=qp.getInitialState,Hp={selectIsOptInNotificationSeen:(e,t)=>(0,c.get)(e,[Up,"seen",t],!1)},Vp={...qp.actions,setOptInNotificationSeen:function*(e){yield{type:`${Bp}/${Vs}`};try{return yield{type:Bp,payload:e},{type:`${Bp}/${Ws}`,payload:e}}catch(t){return console.error("Error setting opt-in notification as seen:",t),{type:`${Bp}/${Gs}`,payload:e}}}},Wp={[Bp]:async({payload:e})=>{await _a()({path:"yoast/v1/seen-opt-in-notification",method:"POST",data:{key:e}})}},Gp=qp.reducer,{currentPromotions:Kp,dismissedAlerts:Yp,isPremium:Zp}=gp.reducers,{isAlertDismissed:Jp,getIsPremium:Qp,isPromotionActive:Xp}=gp.selectors,{dismissAlert:em,setCurrentPromotions:tm,setDismissedAlerts:sm,setIsPremium:rm}=gp.actions;a()((()=>{var s,n;const a=document.getElementById("yoast-seo-general");if(!a)return;(({initialState:t={}}={})=>{(0,r.register)((({initialState:t})=>(0,r.createReduxStore)(zo,{actions:{...xa,...Pa,...Fp,...Tp,dismissAlert:em,setCurrentPromotions:tm,setDismissedAlerts:sm,setIsPremium:rm,..._p,...Vp},selectors:{...ba,...Na,...Dp,...Pp,isAlertDismissed:Jp,getIsPremium:Qp,isPromotionActive:Xp,...Sp,...Hp},initialState:(0,c.merge)({},{[ya]:va(),[ka]:Oa(),preferences:Ap(),[jp]:Rp(),currentPromotions:{promotions:[]},[bp]:wp(),[Up]:$p()},t),reducer:(0,r.combineReducers)({[ya]:wa,[ka]:Ta,preferences:zp,[jp]:Mp,currentPromotions:Kp,dismissedAlerts:Yp,isPremium:Zp,[bp]:Ep,[Up]:Gp}),controls:{...Lp,...e,...Wp}}))({initialState:t}))})({initialState:{[ya]:(0,c.get)(window,"wpseoScriptData.adminUrl",""),[ka]:(0,c.get)(window,"wpseoScriptData.linkParams",{}),[jp]:{alerts:(0,c.get)(window,"wpseoScriptData.alerts",[])},currentPromotions:{promotions:(0,c.get)(window,"wpseoScriptData.currentPromotions",[])},dismissedAlerts:(0,c.get)(window,"wpseoScriptData.dismissedAlerts",{}),isPremium:(0,c.get)(window,"wpseoScriptData.preferences.isPremium",!1),[bp]:{resolvedNotices:[]},[Up]:{seen:(0,c.get)(window,"wpseoScriptData.optInNotificationSeen",!1)}}});const d=(0,r.select)(zo).selectPreference("isRtl",!1),u=(0,c.get)(window,"wpseoScriptData.dashboard.contentTypes",[]),p=(0,c.get)(window,"wpseoScriptData.dashboard.displayName","User"),m=(null===(s=document.getElementsByTagName("html"))||void 0===s||null===(n=s[0])||void 0===n?void 0:n.getAttribute("lang"))||"en-US",h={indexables:(0,c.get)(window,"wpseoScriptData.dashboard.indexablesEnabled",!1),seoAnalysis:(0,c.get)(window,"wpseoScriptData.dashboard.enabledAnalysisFeatures.keyphraseAnalysis",!1),readabilityAnalysis:(0,c.get)(window,"wpseoScriptData.dashboard.enabledAnalysisFeatures.readabilityAnalysis",!1)},f={seoScores:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.seoScores",""),readabilityScores:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.readabilityScores",""),timeBasedSeoMetrics:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.timeBasedSeoMetrics",""),siteKitConfigurationDismissal:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.siteKitConfigurationDismissal",""),siteKitConsentManagement:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.siteKitConsentManagement",""),setupStepsTracking:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.setupStepsTracking","")},y={"X-Wp-Nonce":(0,c.get)(window,"wpseoScriptData.dashboard.nonce","")},v={dashboardLearnMore:(0,r.select)(zo).selectLink("https://yoa.st/dashboard-learn-more"),errorSupport:(0,r.select)(zo).selectAdminLink("?page=wpseo_page_support"),siteKitLearnMore:(0,r.select)(zo).selectLink("https://yoa.st/dashboard-site-kit-learn-more"),siteKitConsentLearnMore:(0,r.select)(zo).selectLink("https://yoa.st/dashboard-site-kit-consent-learn-more")},_=(0,c.get)(window,"wpseoScriptData.dashboard.siteKitConfiguration",{installUrl:"",activateUrl:"",setupUrl:"",dashboardUrl:"",isAnalyticsConnected:!1,isFeatureEnabled:!1,isSetupWidgetDismissed:!1,isVersionSupported:!1,capabilities:{installPlugins:!1,viewSearchConsoleData:!1,viewAnalyticsData:!1},connectionStepsStatuses:{isInstalled:!1,isActive:!1,isSetupCompleted:!1,isConsentGranted:!1},isRedirectedFromSiteKit:!1}),E={storagePrefix:(0,c.get)(window,"wpseoScriptData.dashboard.browserCache.storagePrefix",""),yoastVersion:(0,c.get)(window,"wpseoScriptData.dashboard.browserCache.yoastVersion",""),widgetsCacheTtl:(0,c.get)(window,"wpseoScriptData.dashboard.browserCache.widgetsCacheTtl",{})},j=new i.RemoteDataProvider({headers:y}),C=new Mn({contentTypes:u,userName:p,features:h,endpoints:f,headers:y,links:v,siteKitConfiguration:_}),k={comparisonMetricsDataFormatter:new i.ComparisonMetricsDataFormatter({locale:m}),plainMetricsDataFormatter:new i.PlainMetricsDataFormatter({locale:m})},R=Object.entries(E.widgetsCacheTtl).reduce(((e,[t,s])=>(e[t]=new i.RemoteCachedDataProvider({headers:y},E.storagePrefix,E.yoastVersion,s.ttl),e)),{}),O={data:{setupWidgetLoaded:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.setupWidgetLoaded","no"),firstInteractionStage:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.firstInteractionStage",""),lastInteractionStage:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.lastInteractionStage",""),setupWidgetTemporarilyDismissed:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.setupWidgetTemporarilyDismissed",""),setupWidgetPermanentlyDismissed:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.setupWidgetPermanentlyDismissed","")},endpoint:C.getEndpoint("setupStepsTracking")},N={setupWidgetDataTracker:new zn(O,j)},P=new ha(C,j,R,k,N);C.isSiteKitConnectionCompleted()&&_.isVersionSupported&&C.setSiteKitConfigurationDismissed(!0);const T=(L=jt((0,Zt.jsxs)(_t,{path:"/",element:(0,Zt.jsx)(hp,{}),errorElement:(0,Zt.jsx)(ji,{className:"yst-m-8"}),children:[(0,Zt.jsx)(_t,{path:"/",element:(0,Zt.jsxs)(yp,{children:[(0,Zt.jsx)(xn,{widgetFactory:P,userName:p,features:h,links:v,sitekitFeatureEnabled:_.isFeatureEnabled,dataProvider:C}),(0,Zt.jsx)(fp,{})]}),errorElement:(0,Zt.jsx)(ji,{})}),(0,Zt.jsx)(_t,{path:cu,element:(0,Zt.jsxs)(yp,{children:[(0,Zt.jsx)(lu,{}),(0,Zt.jsx)(fp,{})]}),errorElement:(0,Zt.jsx)(ji,{})}),(0,Zt.jsx)(_t,{path:du,element:(0,Zt.jsx)(iu,{}),errorElement:(0,Zt.jsx)(ji,{})}),(0,Zt.jsx)(_t,{path:"*",element:(0,Zt.jsx)(wt,{to:"/",replace:!0})})]})),de({basename:void 0,future:kt({},void 0,{v7_prependBasename:!0}),history:(M={window:void 0},void 0===M&&(M={}),S((function(e,t){let{pathname:s="/",search:r="",hash:n=""}=w(e.location.hash.substr(1));return s.startsWith("/")||s.startsWith(".")||(s="/"+s),b("",{pathname:s,search:r,hash:n},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let s=e.document.querySelector("base"),r="";if(s&&s.getAttribute("href")){let t=e.location.href,s=t.indexOf("#");r=-1===s?t:t.slice(0,s)}return r+"#"+("string"==typeof t?t:x(t))}),(function(e,t){g("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),M)),hydrationData:Ot(),routes:L,mapRouteProperties:Ct,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize());var L,M;(0,o.createRoot)(a).render((0,Zt.jsx)(l.Root,{context:{isRtl:d},children:(0,Zt.jsx)(t.SlotFillProvider,{children:(0,Zt.jsx)(Dt,{router:T})})}))}))})()})(); \ No newline at end of file +/* translators: Hidden accessibility text. */,closeButtonScreenReaderText:(0,Vt.__)("Close dashboard navigation","wordpress-seo"),"aria-label":(0,Vt.__)("Dashboard navigation","wordpress-seo"),children:(0,Zt.jsx)(pp,{idSuffix:"-mobile"})}),(0,Zt.jsxs)("div",{className:"yst-p-4 min-[783px]:yst-p-8 yst-flex yst-gap-4",children:[(0,Zt.jsx)("aside",{className:"yst-sidebar yst-sidebar-nav yst-shrink-0 yst-hidden min-[783px]:yst-block yst-pb-6 yst-bottom-0 yst-w-56",children:(0,Zt.jsx)(l.SidebarNavigation.Sidebar,{children:(0,Zt.jsx)(pp,{})})}),(0,Zt.jsx)("div",{className:"yst-grow yst-max-w-page",children:(0,Zt.jsx)("div",{className:"yst-space-y-6 yst-mb-8 xl:yst-mb-0",children:(0,Zt.jsx)("main",{children:(0,Zt.jsxs)(jo,{appear:!0,show:!0,enter:"yst-transition-opacity yst-delay-100 yst-duration-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",children:[t!==au&&(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)(up,{store:To,url:c,image:null}),e.length>0&&(0,Zt.jsxs)("div",{className:e.filter((e=>!e.isDismissed)).length>0?"yst-space-y-3 yoast-general-page-notices":"yst-hidden",children:[" ",e.map(((e,t)=>(0,Zt.jsx)(fi,{id:e.id||"yoast-general-page-notice-"+t,title:e.header,isDismissable:e.isDismissable,className:e.isDismissed?"yst-hidden":"",children:e.content},t)))]})]}),(0,Zt.jsx)(St,{})]},t)})})})]})]}),(0,Zt.jsxs)(l.Notifications,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all yst-start-48",position:"bottom-left",children:[(0,Zt.jsx)(iu,{}),s&&(0,Zt.jsx)(l.Notifications.Notification,{id:"toggle-alert-error",title:(0,Vt.__)("Something went wrong","wordpress-seo"),variant:"error",dismissScreenReaderLabel:(0,Vt.__)("Dismiss","wordpress-seo"),size:"large",autoDismiss:4e3,onDismiss:a,children:"error"===s.type?(0,Vt.__)("This problem can't be hidden at this time. Please try again later.","wordpress-seo"):(0,Vt.__)("This notification can't be hidden at this time. Please try again later.","wordpress-seo")})]})]})},hp=()=>{const e=Ao("selectPreference",[],"isPremium"),t=Ao("selectUpsellSettingsAsProps"),{isPromotionActive:s}=(0,r.useSelect)(To),n=Ao("selectLink",[],"https://yoa.st/17h"),a=Ao("selectLink",[],"https://yoa.st/admin-footer-upsell-woocommerce"),o=Ao("selectPreference",[],"isWooCommerceActive");return e?null:(0,Zt.jsx)(Os,{premiumLink:o?a:n,premiumUpsellConfig:t,isPromotionActive:s,isWooCommerceActive:o})},fp=({contentClassName:e="",children:t=null})=>{const s=Ao("selectPreference",[],"isPremium"),n=Ao("selectLink",[],"https://yoa.st/jj"),a=Ao("selectLink",[],"https://yoa.st/admin-sidebar-upsell-woocommerce"),o=Ao("selectUpsellSettingsAsProps"),i=Ao("selectLink",[],"https://yoa.st/3t6"),{isPromotionActive:l}=(0,r.useSelect)(To),c=Ao("selectPreference",[],"isWooCommerceActive");return(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-6 xl:yst-flex-row yst-flex-col",children:[(0,Zt.jsx)("div",{className:Ss()("yst-@container yst-flex yst-flex-grow yst-flex-col",e),children:t}),!s&&(0,Zt.jsx)("div",{className:"yst-min-w-[16rem] xl:yst-max-w-[16rem]",children:(0,Zt.jsx)("div",{className:"yst-sticky yst-top-16",children:(0,Zt.jsx)(Ts,{premiumLink:c?a:n,premiumUpsellConfig:o,academyLink:i,isPromotionActive:l,isWooCommerceActive:c})})})]})},yp=window.yoast.externals.redux;function gp({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}const vp="adminNotices",bp=(0,ia.createSlice)({name:vp,initialState:{notices:function(){const e=[...Array.from(document.querySelectorAll(".notice-yoast:not(.yoast-webinar-dashboard)")),...Array.from(document.querySelectorAll(".yoast-migrated-notice"))],t=e.map((e=>e.id)),s=e.map((e=>e.querySelector(".yoast-notice-migrated-header"))),r=function(e){return e.forEach((e=>{e&&e.querySelectorAll("a.button").forEach((e=>{e.classList.remove("button"),e.classList.add("yst-button"),e.classList.add("yst-button--primary"),e.classList.add("yst-mt-4")}))})),e}(e.map((e=>e.querySelector(".notice-yoast-content")))),n=e.map((e=>e.classList.contains("is-dismissible")));return e.map(((e,a)=>({originalNotice:e,id:t[a],header:s[a].outerHTML,content:r[a].outerHTML,isDismissable:n[a],isDismissed:!1})))}()},reducers:{dismissNotice(e,{payload:t}){e.notices.map((e=>{e.id===t&&(e.isDismissed=!0)}))},restoreNotice(e,{payload:t}){e.notices.map((e=>{e.id===t&&(e.isDismissed=!1)}))}}}),xp=bp.getInitialState,wp={selectNotices:e=>(0,c.get)(e,`${vp}.notices`,[])},Sp=bp.actions,_p=bp.reducer,Ep="alertCenter",jp="toggleAlertVisibility",kp=(0,ia.createSlice)({name:Ep,initialState:{alertToggleError:null,alerts:[],resolveSuccessMessage:null},reducers:{toggleAlert:(e,t)=>{const s=e.alerts.findIndex((e=>e.id===t));-1!==s&&(e.alerts[s].dismissed=!e.alerts[s].dismissed)},setAlertToggleError:(e,t)=>{const s=e.alerts.findIndex((e=>e.id===t));e.alertToggleError=-1===s?null:e.alerts[s]},setResolveSuccessMessage:(e,{payload:t})=>{e.resolveSuccessMessage=t},removeAlert(e,{payload:t}){e.alerts=e.alerts.filter((e=>e.id!==t))}},extraReducers:e=>{e.addCase(`${jp}/${Ds}`,((e,{payload:{id:t}})=>{kp.caseReducers.toggleAlert(e,t)})),e.addCase(`${jp}/${Fs}`,((e,{payload:{id:t}})=>{kp.caseReducers.setAlertToggleError(e,t)}))}}),Cp=kp.getInitialState,Rp=e=>(0,c.get)(e,`${Ep}.alerts`,[]),Np=(0,ia.createSelector)([Rp],(e=>e.filter((e=>!e.dismissed)))),Pp={selectActiveProblems:(0,ia.createSelector)([Np],(e=>e.filter((e=>"error"===e.type)))),selectDismissedProblems:(0,ia.createSelector)([Rp],(e=>e.filter((e=>"error"===e.type&&e.dismissed)))),selectActiveNotifications:(0,ia.createSelector)([Np],(e=>e.filter((e=>"warning"===e.type)))),selectDismissedNotifications:(0,ia.createSelector)([Rp],(e=>e.filter((e=>"warning"===e.type&&e.dismissed)))),selectAlertToggleError:e=>(0,c.get)(e,`${Ep}.alertToggleError`,null),selectResolveSuccessMessage:e=>(0,c.get)(e,`${Ep}.resolveSuccessMessage`,null),selectAlert:(0,ia.createSelector)([Rp,(e,t)=>t],((e,t)=>e.find((e=>e.id===t)))),selectActiveAlertsCount:(0,ia.createSelector)([Np],(e=>e.length))},Op={...kp.actions,toggleAlertStatus:function*(e,t,s=!1){yield{type:`${jp}/${Is}`};try{return yield{type:jp,payload:{id:e,nonce:t,hidden:s}},{type:`${jp}/${Ds}`,payload:{id:e}}}catch(t){return{type:`${jp}/${Fs}`,payload:{id:e}}}}},Tp={[jp]:async({payload:e})=>{const t=new URLSearchParams;t.append("action",e.hidden?"yoast_restore_notification":"yoast_dismiss_notification"),t.append("notification",e.id),t.append("nonce",e.nonce);const s=(0,r.select)(To).selectPreference("ajaxUrl");if(!(await fetch(s,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:t.toString()})).ok)throw new Error("Failed to dismiss notification")}},Lp=kp.reducer,Mp=()=>({...(0,c.get)(window,"wpseoScriptData.preferences",{}),ajaxUrl:(0,c.get)(window,"ajaxurl","")}),Ap=(0,ia.createSlice)({name:"preferences",initialState:Mp(),reducers:{}}),Ip={selectPreference:(e,t,s={})=>(0,c.get)(e,`preferences.${t}`,s),selectPreferences:e=>(0,c.get)(e,"preferences",{})};Ip.selectUpsellSettingsAsProps=(0,ia.createSelector)([e=>Ip.selectPreference(e,"upsellSettings",{}),(e,t="premiumCtbId")=>t],((e,t)=>({"data-action":null==e?void 0:e.actionId,"data-ctb-id":null==e?void 0:e[t]})));const Dp=Ap.actions,Fp=Ap.reducer,zp="optInNotification",Up="setOptInNotificationSeen",Bp=(0,ia.createSlice)({name:zp,initialState:{seen:{}},reducers:{hideOptInNotification(e,t){const s=t.payload;e.seen[s]=!0}}}),qp=Bp.getInitialState,$p={selectIsOptInNotificationSeen:(e,t)=>(0,c.get)(e,[zp,"seen",t],!1)},Hp={...Bp.actions,setOptInNotificationSeen:function*(e){yield{type:`${Up}/${Is}`};try{return yield{type:Up,payload:e},{type:`${Up}/${Ds}`,payload:e}}catch(t){return console.error("Error setting opt-in notification as seen:",t),{type:`${Up}/${Fs}`,payload:e}}}},Vp={[Up]:async({payload:e})=>{await fa()({path:"yoast/v1/seen-opt-in-notification",method:"POST",data:{key:e}})}},Wp=Bp.reducer,{currentPromotions:Gp,dismissedAlerts:Kp,isPremium:Yp}=yp.reducers,{isAlertDismissed:Zp,getIsPremium:Jp,isPromotionActive:Qp}=yp.selectors,{dismissAlert:Xp,setCurrentPromotions:em,setDismissedAlerts:tm,setIsPremium:sm}=yp.actions;a()((()=>{var s,n;const a=document.getElementById("yoast-seo-general");if(!a)return;const d=(0,c.get)(window,"wpseoScriptData.dashboard.nonce","");(({initialState:t={}}={})=>{(0,r.register)((({initialState:t})=>(0,r.createReduxStore)(To,{actions:{...pa,..._a,...Dp,...Op,dismissAlert:Xp,setCurrentPromotions:em,setDismissedAlerts:tm,setIsPremium:sm,...Sp,...Hp,...i.taskListActions},selectors:{...ua,...Sa,...Ip,...Pp,isAlertDismissed:Zp,getIsPremium:Jp,isPromotionActive:Qp,...wp,...$p,...i.taskListSelectors},initialState:(0,c.merge)({},{[la]:da(),[ba]:wa(),preferences:Mp(),[Ep]:Cp(),currentPromotions:{promotions:[]},[vp]:xp(),[zp]:qp(),[i.TASK_LIST_NAME]:(0,i.getInitialTaskListState)()},t),reducer:(0,r.combineReducers)({[la]:ma,[ba]:Ea,preferences:Fp,[Ep]:Lp,currentPromotions:Gp,dismissedAlerts:Kp,isPremium:Yp,[vp]:_p,[zp]:Wp,[i.TASK_LIST_NAME]:i.taskListReducer}),controls:{...Tp,...e,...Vp,...i.taskListControls}}))({initialState:t}))})({initialState:{[la]:(0,c.get)(window,"wpseoScriptData.adminUrl",""),[ba]:(0,c.get)(window,"wpseoScriptData.linkParams",{}),[Ep]:{alerts:(0,c.get)(window,"wpseoScriptData.alerts",[])},currentPromotions:{promotions:(0,c.get)(window,"wpseoScriptData.currentPromotions",[])},dismissedAlerts:(0,c.get)(window,"wpseoScriptData.dismissedAlerts",{}),isPremium:(0,c.get)(window,"wpseoScriptData.preferences.isPremium",!1),[vp]:{resolvedNotices:[]},[zp]:{seen:(0,c.get)(window,"wpseoScriptData.optInNotificationSeen",!1)},[i.TASK_LIST_NAME]:{enabled:(0,c.get)(window,"wpseoScriptData.taskListConfiguration.enabled",!1),endpoints:(0,c.get)(window,"wpseoScriptData.taskListConfiguration.endpoints",{}),tasks:{},nonce:d}}});const u=(0,r.select)(To).selectPreference("isRtl",!1),p=(0,c.get)(window,"wpseoScriptData.dashboard.contentTypes",[]),m=(0,c.get)(window,"wpseoScriptData.dashboard.displayName","User"),h=(null===(s=document.getElementsByTagName("html"))||void 0===s||null===(n=s[0])||void 0===n?void 0:n.getAttribute("lang"))||"en-US",f={indexables:(0,c.get)(window,"wpseoScriptData.dashboard.indexablesEnabled",!1),seoAnalysis:(0,c.get)(window,"wpseoScriptData.dashboard.enabledAnalysisFeatures.keyphraseAnalysis",!1),readabilityAnalysis:(0,c.get)(window,"wpseoScriptData.dashboard.enabledAnalysisFeatures.readabilityAnalysis",!1)},y={seoScores:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.seoScores",""),readabilityScores:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.readabilityScores",""),timeBasedSeoMetrics:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.timeBasedSeoMetrics",""),siteKitConfigurationDismissal:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.siteKitConfigurationDismissal",""),siteKitConsentManagement:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.siteKitConsentManagement",""),setupStepsTracking:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.setupStepsTracking","")},v={"X-Wp-Nonce":d},_={dashboardLearnMore:(0,r.select)(To).selectLink("https://yoa.st/dashboard-learn-more"),errorSupport:(0,r.select)(To).selectAdminLink("?page=wpseo_page_support"),siteKitLearnMore:(0,r.select)(To).selectLink("https://yoa.st/dashboard-site-kit-learn-more"),siteKitConsentLearnMore:(0,r.select)(To).selectLink("https://yoa.st/dashboard-site-kit-consent-learn-more")},E=(0,c.get)(window,"wpseoScriptData.dashboard.siteKitConfiguration",{installUrl:"",activateUrl:"",setupUrl:"",dashboardUrl:"",isAnalyticsConnected:!1,isFeatureEnabled:!1,isSetupWidgetDismissed:!1,isVersionSupported:!1,capabilities:{installPlugins:!1,viewSearchConsoleData:!1,viewAnalyticsData:!1},connectionStepsStatuses:{isInstalled:!1,isActive:!1,isSetupCompleted:!1,isConsentGranted:!1},isRedirectedFromSiteKit:!1}),j={storagePrefix:(0,c.get)(window,"wpseoScriptData.dashboard.browserCache.storagePrefix",""),yoastVersion:(0,c.get)(window,"wpseoScriptData.dashboard.browserCache.yoastVersion",""),widgetsCacheTtl:(0,c.get)(window,"wpseoScriptData.dashboard.browserCache.widgetsCacheTtl",{})},k=new i.RemoteDataProvider({headers:v}),C=new kn({contentTypes:p,userName:m,features:f,endpoints:y,headers:v,links:_,siteKitConfiguration:E}),R={comparisonMetricsDataFormatter:new i.ComparisonMetricsDataFormatter({locale:h}),plainMetricsDataFormatter:new i.PlainMetricsDataFormatter({locale:h})},N=Object.entries(j.widgetsCacheTtl).reduce(((e,[t,s])=>(e[t]=new i.RemoteCachedDataProvider({headers:v},j.storagePrefix,j.yoastVersion,s.ttl),e)),{}),P={data:{setupWidgetLoaded:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.setupWidgetLoaded","no"),firstInteractionStage:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.firstInteractionStage",""),lastInteractionStage:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.lastInteractionStage",""),setupWidgetTemporarilyDismissed:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.setupWidgetTemporarilyDismissed",""),setupWidgetPermanentlyDismissed:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.setupWidgetPermanentlyDismissed","")},endpoint:C.getEndpoint("setupStepsTracking")},O={setupWidgetDataTracker:new On(P,k)},T=new oa(C,k,N,R,O);C.isSiteKitConnectionCompleted()&&E.isVersionSupported&&C.setSiteKitConfigurationDismissed(!0);const L=(0,r.select)(To).selectIsTaskListEnabled(),M=(A=jt((0,Zt.jsxs)(_t,{path:"/",element:(0,Zt.jsx)(mp,{}),errorElement:(0,Zt.jsx)(vi,{className:"yst-m-8"}),children:[(0,Zt.jsx)(_t,{path:"/",element:(0,Zt.jsxs)(fp,{children:[(0,Zt.jsx)(pn,{widgetFactory:T,userName:m,features:f,links:_,sitekitFeatureEnabled:E.isFeatureEnabled,dataProvider:C}),(0,Zt.jsx)(hp,{})]}),errorElement:(0,Zt.jsx)(vi,{})}),L&&(0,Zt.jsx)(_t,{path:ou,element:(0,Zt.jsxs)(fp,{children:[(0,Zt.jsx)(ru,{}),(0,Zt.jsx)(hp,{})]}),errorElement:(0,Zt.jsx)(vi,{})}),(0,Zt.jsx)(_t,{path:nu,element:(0,Zt.jsxs)(fp,{children:[(0,Zt.jsx)(su,{}),(0,Zt.jsx)(hp,{})]}),errorElement:(0,Zt.jsx)(vi,{})}),(0,Zt.jsx)(_t,{path:au,element:(0,Zt.jsx)(tu,{}),errorElement:(0,Zt.jsx)(vi,{})}),(0,Zt.jsx)(_t,{path:"*",element:(0,Zt.jsx)(wt,{to:"/",replace:!0})})]})),de({basename:void 0,future:Ct({},void 0,{v7_prependBasename:!0}),history:(I={window:void 0},void 0===I&&(I={}),S((function(e,t){let{pathname:s="/",search:r="",hash:n=""}=w(e.location.hash.substr(1));return s.startsWith("/")||s.startsWith(".")||(s="/"+s),b("",{pathname:s,search:r,hash:n},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let s=e.document.querySelector("base"),r="";if(s&&s.getAttribute("href")){let t=e.location.href,s=t.indexOf("#");r=-1===s?t:t.slice(0,s)}return r+"#"+("string"==typeof t?t:x(t))}),(function(e,t){g("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),I)),hydrationData:Nt(),routes:A,mapRouteProperties:kt,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize());var A,I;(0,o.createRoot)(a).render((0,Zt.jsx)(l.Root,{context:{isRtl:u},children:(0,Zt.jsx)(t.SlotFillProvider,{children:(0,Zt.jsx)(Dt,{router:M})})}))}))})()})(); \ No newline at end of file @@ -1,20 +1,20 @@ -(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var a=typeof s;if("string"===a||"number"===a)e.push(s);else if(Array.isArray(s)){if(s.length){var n=r.apply(null,s);n&&e.push(n)}}else if("object"===a){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var i in s)o.call(s,i)&&s[i]&&e.push(i)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(s=function(){return r}.apply(t,[]))||(e.exports=s)}()}},t={};function s(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,s),a.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.lodash,t=window.wp.domReady;var o=s.n(t);const r=window.yoast.uiLibrary,a=window.wp.i18n,n=window.yoast.propTypes;var i=s.n(n);const l=window.wp.element,c=(e,t)=>{try{return(0,l.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},d=window.ReactJSXRuntime;function p(e,t,s=""){return c(e,{a:(0,d.jsx)("a",{id:s,href:t,target:"_blank",rel:"noopener noreferrer"})})}const h=window.wp.apiFetch;var m=s.n(h);const g=e=>{const t=`${e.slug}_integration_active`;return Boolean(window.wpseoIntegrationsData[t])},y=e=>{if(!window.wpseoIntegrationsData.is_multisite)return!0;const t=`allow_${e.slug}_integration`;return Boolean(window.wpseoIntegrationsData[t])},u=e=>!window.wpseoIntegrationsData.is_multisite||e.isMultisiteAvailable,v=e=>e.isPremium&&Boolean(window.wpseoScriptData.isPremium)||!e.isPremium,f=(e,t)=>{const s=t,o=y(e),r=u(e);return v(e)?s&&o&&r:o&&r},w=async(e,t)=>{const s=await m()({path:"yoast/v1/integrations/set_active",method:"POST",data:{active:t,integration:e.slug}});return await s.json},x=window.React;var _,b;function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},j.apply(this,arguments)}const E=x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),M=x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),k=x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),P=window.wp.components,z=({children:e=null})=>(0,d.jsx)("header",{className:"yst-relative yst-flex yst-items-center yst-justify-center yst-h-24 yst-bg-slate-100 yst--mx-6 yst--mt-6 yst-py-6",children:e});z.propTypes={children:n.PropTypes.node};const N=({children:e=null})=>(0,d.jsx)("div",{className:"yst-flex-grow",children:e});N.propTypes={children:n.PropTypes.node};const R=({children:e=null})=>(0,d.jsx)("footer",{className:"yst-border-t yst-border-slate-200 yst-pt-6",children:e});R.propTypes={children:n.PropTypes.node};const T=({children:e=null})=>(0,d.jsx)("div",{className:"yst-relative yst-flex yst-flex-col yst-bg-white yst-rounded-lg yst-border yst-p-6 yst-space-y-6 yst-overflow-hidden yst-transition-transform yst-ease-in-out yst-duration-200 yst-shadow-sm",children:e});T.propTypes={children:n.PropTypes.node},T.Header=z,T.Content=N,T.Footer=R;const C=({integration:e,initialActivationState:t,isNetworkControlEnabled:s,isMultisiteAvailable:o,toggleLabel:n,beforeToggle:i})=>{const[c,p]=(0,l.useState)(t),h=(0,l.useCallback)((async()=>{let t=!0;const s=!c;p(s),i&&(t=!1,t=await i(e,s)),t||p(!s)}),[c,i,p]),m=e.logo;return(0,d.jsxs)(T,{children:[(0,d.jsxs)(T.Header,{children:[(0,d.jsxs)(r.Link,{href:e.logoLink,target:"_blank",children:[e.logo&&(0,d.jsx)(m,{alt:(0,a.sprintf)(/* translators: 1: Yoast SEO, 2: integration name */ -(0,a.__)("%1$s integrates with %2$s","wordpress-seo"),"Yoast SEO",e.name),className:f(e,c)?"":"yst-opacity-50 yst-filter yst-grayscale"}),(0,d.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ +(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var a=typeof s;if("string"===a||"number"===a)e.push(s);else if(Array.isArray(s)){if(s.length){var n=r.apply(null,s);n&&e.push(n)}}else if("object"===a){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var i in s)o.call(s,i)&&s[i]&&e.push(i)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(s=function(){return r}.apply(t,[]))||(e.exports=s)}()}},t={};function s(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,s),a.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.lodash,t=window.wp.domReady;var o=s.n(t);const r=window.yoast.uiLibrary,a=window.wp.i18n,n=window.yoast.propTypes;var i=s.n(n);const l=window.wp.element,c=(e,t)=>{try{return(0,l.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},d=window.ReactJSXRuntime;function p(e,t,s=""){return c(e,{a:(0,d.jsx)("a",{id:s,href:t,target:"_blank",rel:"noopener noreferrer"})})}const h=window.wp.apiFetch;var m=s.n(h);const g=e=>{const t=`${e.slug}_integration_active`;return Boolean(window.wpseoIntegrationsData[t])},y=e=>{if(!window.wpseoIntegrationsData.is_multisite)return!0;const t=`allow_${e.slug}_integration`;return Boolean(window.wpseoIntegrationsData[t])},u=e=>!window.wpseoIntegrationsData.is_multisite||e.isMultisiteAvailable,v=e=>e.isPremium&&Boolean(window.wpseoScriptData.isPremium)||!e.isPremium,w=(e,t)=>{const s=t,o=y(e),r=u(e);return v(e)?s&&o&&r:o&&r},f=async(e,t)=>{const s=await m()({path:"yoast/v1/integrations/set_active",method:"POST",data:{active:t,integration:e.slug}});return await s.json},x=window.React;var _,b;function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},j.apply(this,arguments)}const E=x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),M=x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),k=x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),P=window.wp.components,z=({children:e=null})=>(0,d.jsx)("header",{className:"yst-relative yst-flex yst-items-center yst-justify-center yst-h-24 yst-bg-slate-100 yst--mx-6 yst--mt-6 yst-py-6",children:e});z.propTypes={children:n.PropTypes.node};const N=({children:e=null})=>(0,d.jsx)("div",{className:"yst-flex-grow",children:e});N.propTypes={children:n.PropTypes.node};const R=({children:e=null})=>(0,d.jsx)("footer",{className:"yst-border-t yst-border-slate-200 yst-pt-6",children:e});R.propTypes={children:n.PropTypes.node};const T=({children:e=null})=>(0,d.jsx)("div",{className:"yst-relative yst-flex yst-flex-col yst-bg-white yst-rounded-lg yst-border yst-p-6 yst-space-y-6 yst-overflow-hidden yst-transition-transform yst-ease-in-out yst-duration-200 yst-shadow-sm",children:e});T.propTypes={children:n.PropTypes.node},T.Header=z,T.Content=N,T.Footer=R;const C=({integration:e,initialActivationState:t,isNetworkControlEnabled:s,isMultisiteAvailable:o,toggleLabel:n,beforeToggle:i})=>{const[c,p]=(0,l.useState)(t),h=(0,l.useCallback)((async()=>{let t=!0;const s=!c;p(s),i&&(t=!1,t=await i(e,s)),t||p(!s)}),[c,i,p]),m=e.logo;return(0,d.jsxs)(T,{children:[(0,d.jsxs)(T.Header,{children:[(0,d.jsxs)(r.Link,{href:e.logoLink,target:"_blank",children:[e.logo&&(0,d.jsx)(m,{alt:(0,a.sprintf)(/* translators: 1: Yoast SEO, 2: integration name */ +(0,a.__)("%1$s integrates with %2$s","wordpress-seo"),"Yoast SEO",e.name),className:w(e,c)?"":"yst-opacity-50 yst-filter yst-grayscale"}),(0,d.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,a.__)("(Opens in a new browser tab)","wordpress-seo")})]}),!s&&o&&(0,d.jsx)(r.Badge,{className:"yst-absolute yst-top-2 yst-end-2",children:(0,a.__)("Network Disabled","wordpress-seo")}),s&&e.isNew&&(0,d.jsx)(r.Badge,{className:"yst-absolute yst-top-2 yst-end-2",children:(0,a.__)("New","wordpress-seo")})]}),(0,d.jsxs)(T.Content,{children:[(0,d.jsxs)("div",{children:[e.claim&&(0,d.jsx)("h4",{className:"yst-text-base yst-mb-3 yst-font-medium yst-text-[#111827] yst-leading-tight",children:e.claim}),(0,d.jsxs)("p",{children:[" ",e.description,e.learnMoreLink&&(0,d.jsxs)(r.Link,{href:e.learnMoreLink,className:"yst-flex yst-items-center yst-mt-3 yst-no-underline yst-font-medium",target:"_blank",children:[(0,a.__)("Learn more","wordpress-seo"),(0,d.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,a.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,d.jsx)(M,{className:"yst-h-4 yst-w-4 yst-ms-1 yst-icon-rtl"})]})]})]}),c&&(0,d.jsx)(P.Slot,{name:`${e.name}Slot`})]}),(0,d.jsxs)(T.Footer,{children:[!v(e)&&(0,d.jsxs)(r.Button,{id:`${e.name}-upsell-button`,type:"button",as:"a",href:e.upsellLink,variant:"upsell","data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yst-w-full yst-text-slate-800",target:"_blank",children:[(0,d.jsx)(E,{className:"yst--ml-s yst-me-2 yst-h-5 yst-w-5 yst-text-yellow-900"}),(0,a.__)("Unlock with Premium","wordpress-seo"),(0,d.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,a.__)("(Opens in a new browser tab)","wordpress-seo")})]}),v(e)&&!u(e)&&(0,d.jsxs)("p",{className:"yst-flex yst-items-start yst-justify-between",children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Integration unavailable for multisites","wordpress-seo")}),(0,d.jsx)(k,{className:"yst-h-5 yst-w-5 yst-text-red-500 yst-flex-shrink-0"})]}),v(e)&&u(e)&&(0,d.jsx)(r.ToggleField,{id:`${e.name}-toggle`,checked:c,label:n,onChange:h,disabled:!s||!o})]})]})};C.propTypes={integration:n.PropTypes.shape({name:n.PropTypes.string,claim:n.PropTypes.node,learnMoreLink:n.PropTypes.string,logoLink:n.PropTypes.string,slug:n.PropTypes.string,description:n.PropTypes.string,usps:n.PropTypes.array,logo:n.PropTypes.func,isPremium:n.PropTypes.bool,isNew:n.PropTypes.bool,isMultisiteAvailable:n.PropTypes.bool,upsellLink:n.PropTypes.string}).isRequired,initialActivationState:n.PropTypes.bool.isRequired,isNetworkControlEnabled:n.PropTypes.bool.isRequired,isMultisiteAvailable:n.PropTypes.bool.isRequired,toggleLabel:n.PropTypes.string.isRequired,beforeToggle:n.PropTypes.func.isRequired};const S=x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))})),L=window.wp.data,Z=({integration:e,isActive:t=!0,children:s=null})=>{const o=e.logo,n=(0,L.useSelect)((t=>t("yoast-seo/settings").selectLink(e.learnMoreLink)),[]),i=(0,L.useSelect)((t=>t("yoast-seo/settings").selectLink(e.logoLink)),[]);return(0,d.jsxs)(T,{children:[(0,d.jsxs)(T.Header,{children:[(0,d.jsxs)(r.Link,{href:i,target:"_blank",children:[e.logo&&(0,d.jsx)(o,{alt:`${e.name} logo`,className:t?"":"yst-opacity-50 yst-filter yst-grayscale"}),(0,d.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ +(0,a.__)("(Opens in a new browser tab)","wordpress-seo")})]}),v(e)&&!u(e)&&(0,d.jsxs)("p",{className:"yst-flex yst-items-start yst-justify-between",children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Integration unavailable for multisites","wordpress-seo")}),(0,d.jsx)(k,{className:"yst-h-5 yst-w-5 yst-text-red-500 yst-flex-shrink-0"})]}),v(e)&&u(e)&&(0,d.jsx)(r.ToggleField,{id:`${e.name}-toggle`,checked:c,label:n,onChange:h,disabled:!s||!o})]})]})};C.propTypes={integration:n.PropTypes.shape({name:n.PropTypes.string,claim:n.PropTypes.node,learnMoreLink:n.PropTypes.string,logoLink:n.PropTypes.string,slug:n.PropTypes.string,description:n.PropTypes.string,usps:n.PropTypes.array,logo:n.PropTypes.func,isPremium:n.PropTypes.bool,isNew:n.PropTypes.bool,isMultisiteAvailable:n.PropTypes.bool,upsellLink:n.PropTypes.string}).isRequired,initialActivationState:n.PropTypes.bool.isRequired,isNetworkControlEnabled:n.PropTypes.bool.isRequired,isMultisiteAvailable:n.PropTypes.bool.isRequired,toggleLabel:n.PropTypes.string.isRequired,beforeToggle:n.PropTypes.func.isRequired};const S=x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))})),L=window.wp.data,O=({integration:e,isActive:t=!0,children:s=null})=>{const o=e.logo,n=(0,L.useSelect)((t=>t("yoast-seo/settings").selectLink(e.learnMoreLink)),[]),i=(0,L.useSelect)((t=>t("yoast-seo/settings").selectLink(e.logoLink)),[]);return(0,d.jsxs)(T,{children:[(0,d.jsxs)(T.Header,{children:[(0,d.jsxs)(r.Link,{href:i,target:"_blank",children:[e.logo&&(0,d.jsx)(o,{alt:`${e.name} logo`,className:t?"":"yst-opacity-50 yst-filter yst-grayscale"}),(0,d.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,a.__)("(Opens in a new browser tab)","wordpress-seo")})]}),e.isNew&&(0,d.jsx)(r.Badge,{className:"yst-absolute yst-top-2 yst-end-2",children:(0,a.__)("New","wordpress-seo")})]}),(0,d.jsx)(T.Content,{children:(0,d.jsxs)("div",{children:[e.claim&&(0,d.jsx)("h4",{className:"yst-text-base yst-mb-3 yst-font-medium yst-text-[#111827] yst-leading-tight",children:e.claim}),e.description&&(0,d.jsxs)("p",{children:[" ",e.description," "]}),e.usps&&(0,d.jsx)("ul",{className:"yst-space-y-3",children:e.usps.map(((e,t)=>(0,d.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,d.jsx)(S,{className:"yst-h-5 yst-w-5 yst-me-2 yst-text-green-400 yst-flex-shrink-0"}),(0,d.jsxs)("span",{children:[" ",e," "]})]},t)))}),e.learnMoreLink&&(0,d.jsxs)(r.Link,{href:n,className:"yst-flex yst-items-center yst-mt-3 yst-no-underline yst-font-medium",target:"_blank",children:[(0,a.__)("Learn more","wordpress-seo"),(0,d.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,a.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,d.jsx)(M,{className:"yst-h-4 yst-w-4 yst-ms-1 yst-icon-rtl"})]})]})}),(0,d.jsxs)(T.Footer,{children:[!v(e)&&(0,d.jsxs)(r.Button,{id:`${e.slug}-upsell-button`,type:"button",as:"a",href:e.upsellLink,variant:"upsell","data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yst-w-full yst-text-slate-800",target:"_blank",children:[(0,d.jsx)(E,{className:"yst--ms-1 yst-me-2 yst-h-5 yst-w-5 yst-text-yellow-900"}),(0,a.__)("Unlock with Premium","wordpress-seo"),(0,d.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,a.__)("(Opens in a new browser tab)","wordpress-seo")})]}),v(e)&&(0,d.jsx)("p",{className:"yst-flex yst-items-start yst-justify-between",children:s})]})]})};Z.propTypes={integration:n.PropTypes.shape({name:n.PropTypes.string,claim:n.PropTypes.node,learnMoreLink:n.PropTypes.string,logoLink:n.PropTypes.string,slug:n.PropTypes.string,description:n.PropTypes.string,usps:n.PropTypes.array,logo:n.PropTypes.func.isRequired,isNew:n.PropTypes.bool,upsellLink:n.PropTypes.string}).isRequired,isActive:n.PropTypes.bool,children:n.PropTypes.oneOfType([n.PropTypes.node,n.PropTypes.arrayOf(n.PropTypes.node)])};const O=({integration:e,isActive:t=!0})=>(0,d.jsxs)(Z,{integration:e,isActive:t,children:[t&&(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Mastodon profile added","wordpress-seo")}),(0,d.jsx)(S,{className:"yst-h-5 yst-w-5 yst-text-green-400 yst-flex-shrink-0"})]}),!t&&(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Mastodon profile not yet added","wordpress-seo")}),(0,d.jsx)(k,{className:"yst-h-5 yst-w-5 yst-text-red-500 yst-flex-shrink-0"})]})]});O.propTypes={integration:n.PropTypes.shape({name:n.PropTypes.string,claim:n.PropTypes.node,slug:n.PropTypes.string,description:n.PropTypes.string,usps:n.PropTypes.array,logo:n.PropTypes.func,isNew:n.PropTypes.bool}).isRequired,isActive:n.PropTypes.bool};const A={name:"Mastodon",claim:c((0,a.sprintf)(/* translators: 1: bold open tag; 2: Mastodon; 3: bold close tag. */ +(0,a.__)("(Opens in a new browser tab)","wordpress-seo")})]}),v(e)&&(0,d.jsx)("p",{className:"yst-flex yst-items-start yst-justify-between",children:s})]})]})};O.propTypes={integration:n.PropTypes.shape({name:n.PropTypes.string,claim:n.PropTypes.node,learnMoreLink:n.PropTypes.string,logoLink:n.PropTypes.string,slug:n.PropTypes.string,description:n.PropTypes.string,usps:n.PropTypes.array,logo:n.PropTypes.func.isRequired,isNew:n.PropTypes.bool,upsellLink:n.PropTypes.string}).isRequired,isActive:n.PropTypes.bool,children:n.PropTypes.oneOfType([n.PropTypes.node,n.PropTypes.arrayOf(n.PropTypes.node)])};const Z=({integration:e,isActive:t=!0})=>(0,d.jsxs)(O,{integration:e,isActive:t,children:[t&&(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Mastodon profile added","wordpress-seo")}),(0,d.jsx)(S,{className:"yst-h-5 yst-w-5 yst-text-green-400 yst-flex-shrink-0"})]}),!t&&(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Mastodon profile not yet added","wordpress-seo")}),(0,d.jsx)(k,{className:"yst-h-5 yst-w-5 yst-text-red-500 yst-flex-shrink-0"})]})]});Z.propTypes={integration:n.PropTypes.shape({name:n.PropTypes.string,claim:n.PropTypes.node,slug:n.PropTypes.string,description:n.PropTypes.string,usps:n.PropTypes.array,logo:n.PropTypes.func,isNew:n.PropTypes.bool}).isRequired,isActive:n.PropTypes.bool};const A={name:"Mastodon",claim:c((0,a.sprintf)(/* translators: 1: bold open tag; 2: Mastodon; 3: bold close tag. */ (0,a.__)("Verify your site on %1$s%2$s%3$s","wordpress-seo"),"<strong>","Mastodon","</strong>"),{strong:(0,d.jsx)("strong",{})}),learnMoreLink:"https://yoa.st/integrations-about-mastodon",logoLink:"https://yoa.st/integrations-logo-mastodon",slug:"mastodon",description:(0,a.sprintf)(/* translators: 1: Mastodon, 2: Yoast SEO Premium */ -(0,a.__)("Add trustworthiness to your %1$s profile by verifying your site with %2$s.","wordpress-seo"),"Mastodon","Yoast SEO Premium"),isPremium:!0,isNew:!1,isMultisiteAvailable:!0,logo:e=>x.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg",width:140,viewBox:"0 0 713.359 175.868"},e),_||(_=x.createElement("path",{fill:"#2b90d9",d:"M160.555 105.431c-2.413 12.407-21.598 25.983-43.634 28.614-11.491 1.373-22.804 2.631-34.867 2.079-19.73-.904-35.298-4.71-35.298-4.71 0 1.921.119 3.75.355 5.46 2.565 19.47 19.308 20.637 35.166 21.181 16.007.548 30.258-3.947 30.258-3.947l.659 14.472s-11.197 6.011-31.14 7.116c-11 .605-24.654-.276-40.56-4.485C6.999 162.08 1.066 125.31.159 88-.12 76.923.052 66.476.052 57.741.052 19.59 25.05 8.406 25.05 8.406 37.652 2.617 59.279.184 81.764 0h.552c22.484.184 44.125 2.618 56.729 8.406 0 0 24.996 11.183 24.996 49.335 0 0 .313 28.148-3.486 47.69"})),b||(b=x.createElement("path",{fill:"#282c37",d:"M34.658 48.494c0-5.554 4.502-10.055 10.055-10.055s10.055 4.501 10.055 10.055c0 5.553-4.502 10.055-10.055 10.055s-10.055-4.502-10.055-10.055M178.865 60.7v46.195h-18.301V62.057c0-9.452-3.978-14.248-11.933-14.248-8.794 0-13.202 5.69-13.202 16.943v24.542h-18.194V64.751c0-11.252-4.409-16.943-13.203-16.943-7.955 0-11.932 4.796-11.932 14.248v44.838H73.799V60.7c0-9.442 2.403-16.944 7.232-22.495 4.98-5.55 11.501-8.395 19.595-8.395 9.366 0 16.459 3.599 21.146 10.799l4.56 7.642 4.559-7.642c4.689-7.2 11.78-10.8 21.148-10.8 8.093 0 14.613 2.846 19.593 8.396 4.829 5.551 7.233 13.054 7.233 22.495m63.048 22.964c3.776-3.99 5.595-9.015 5.595-15.075 0-6.06-1.819-11.085-5.595-14.928-3.636-3.991-8.254-5.911-13.849-5.911-5.596 0-10.212 1.92-13.849 5.911-3.637 3.843-5.456 8.868-5.456 14.928 0 6.06 1.819 11.085 5.456 15.075 3.637 3.842 8.253 5.763 13.849 5.763 5.595 0 10.213-1.92 13.849-5.763m5.595-52.025h18.046v73.9h-18.046v-8.722c-5.455 7.243-13.01 10.79-22.801 10.79-9.373 0-17.347-3.695-24.062-11.233-6.573-7.538-9.931-16.85-9.931-27.785 0-10.79 3.358-20.102 9.931-27.64 6.715-7.537 14.689-11.38 24.062-11.38 9.79 0 17.346 3.548 22.8 10.79v-8.72zm78.762 35.62c5.315 3.99 7.973 9.606 7.833 16.7 0 7.538-2.658 13.45-8.113 17.588-5.457 3.992-12.03 6.06-20.004 6.06-14.409 0-24.201-5.912-29.378-17.588l15.669-9.31c2.098 6.353 6.714 9.606 13.709 9.606 6.434 0 9.652-2.07 9.652-6.356 0-3.104-4.197-5.912-12.73-8.128a117.46 117.46 0 0 1-7.973-2.514c-2.938-1.18-5.455-2.512-7.554-4.137-5.176-3.99-7.834-9.313-7.834-16.11 0-7.243 2.518-13.006 7.554-17.145 5.176-4.286 11.47-6.355 19.025-6.355 12.03 0 20.844 5.172 26.577 15.666l-15.386 8.868c-2.239-5.024-6.015-7.537-11.191-7.537-5.456 0-8.114 2.07-8.114 6.06 0 3.103 4.196 5.91 12.73 8.128 6.575 1.477 11.75 3.695 15.528 6.504m57.357-17.293h-15.808V80.71c0 3.695 1.4 5.91 4.058 6.945 1.958.74 5.875.887 11.75.59v17.295c-12.17 1.477-20.983.295-26.16-3.697-5.174-3.842-7.693-10.936-7.693-21.133V49.966h-12.17V31.64h12.17V16.71l18.045-5.764V31.64h15.808v18.327zm57.498 33.255c3.637-3.844 5.455-8.722 5.455-14.633s-1.818-10.789-5.455-14.631c-3.638-3.844-8.114-5.764-13.57-5.764-5.455 0-9.931 1.92-13.569 5.764-3.497 3.99-5.316 8.867-5.316 14.631 0 5.765 1.819 10.643 5.316 14.633 3.638 3.842 8.114 5.763 13.569 5.763 5.456 0 9.932-1.921 13.57-5.763m-39.869 13.153c-7.134-7.537-10.631-16.701-10.631-27.786 0-10.937 3.497-20.1 10.631-27.637 7.134-7.538 15.948-11.38 26.299-11.38 10.352 0 19.165 3.842 26.3 11.38 7.135 7.537 10.771 16.848 10.771 27.637 0 10.938-3.636 20.249-10.771 27.786-7.135 7.539-15.808 11.233-26.3 11.233-10.491 0-19.165-3.694-26.299-11.233m123.665-12.71c3.638-3.99 5.455-9.015 5.455-15.075 0-6.06-1.817-11.085-5.455-14.928-3.636-3.991-8.253-5.911-13.848-5.911-5.597 0-10.213 1.92-13.99 5.911-3.635 3.843-5.455 8.868-5.455 14.928 0 6.06 1.82 11.085 5.456 15.075 3.776 3.842 8.532 5.763 13.989 5.763 5.595 0 10.212-1.92 13.848-5.763m5.455-81.585h18.047v103.46h-18.047v-8.722c-5.315 7.243-12.87 10.79-22.661 10.79-9.372 0-17.485-3.695-24.2-11.233-6.575-7.538-9.932-16.85-9.932-27.785 0-10.79 3.357-20.102 9.932-27.64 6.715-7.537 14.828-11.38 24.2-11.38 9.791 0 17.346 3.548 22.661 10.79V2.079zm81.42 81.142c3.637-3.844 5.455-8.722 5.455-14.633s-1.818-10.789-5.455-14.631c-3.637-3.844-8.113-5.764-13.57-5.764-5.455 0-9.932 1.92-13.568 5.764-3.5 3.99-5.317 8.867-5.317 14.631 0 5.765 1.818 10.643 5.317 14.633 3.636 3.842 8.113 5.763 13.568 5.763 5.457 0 9.933-1.921 13.57-5.764m-39.868 13.154c-7.135-7.537-10.632-16.701-10.632-27.786 0-10.937 3.497-20.1 10.632-27.637 7.135-7.538 15.947-11.38 26.298-11.38 10.353 0 19.165 3.842 26.3 11.38 7.135 7.537 10.772 16.848 10.772 27.637 0 10.938-3.637 20.249-10.772 27.786-7.135 7.539-15.807 11.233-26.3 11.233-10.491 0-19.163-3.694-26.298-11.233m141.43-36.21v45.374h-18.045v-43.01c0-4.877-1.26-8.572-3.777-11.38-2.378-2.512-5.736-3.843-10.072-3.843-10.213 0-15.388 6.06-15.388 18.328v39.905H648.03v-73.9h18.046v8.277c4.337-6.946 11.19-10.345 20.844-10.345 7.694 0 13.989 2.66 18.885 8.129 5.035 5.469 7.554 12.859 7.554 22.465"}))),upsellLink:"https://yoa.st/get-mastodon-integration"},q=[[].map(((e,t)=>(0,d.jsx)(C,{integration:e,toggleLabel:(0,a.__)("Enable integration","wordpress-seo"),initialActivationState:g(e),isNetworkControlEnabled:y(e),isMultisiteAvailable:u(e),beforeToggle:w},t))),(0,d.jsx)(O,{integration:A,isActive:Boolean(window.wpseoIntegrationsData.mastodon_active)},3)];var V,$,B,I,F,H,U,D,G,Y,W;function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},K.apply(this,arguments)}function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},J.apply(this,arguments)}function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},X.apply(this,arguments)}function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},Q.apply(this,arguments)}const ee=e=>x.createElement("svg",Q({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:175,"aria-hidden":"true",viewBox:"0 0 2061.74 426.45"},e),I||(I=x.createElement("defs",null,x.createElement("linearGradient",{id:"woo-yoast-logo_svg__a",x1:1417.76,x2:1417.76,y1:315.03,y2:101.98,gradientUnits:"userSpaceOnUse"},x.createElement("stop",{offset:0,stopColor:"#570732"}),x.createElement("stop",{offset:.04,stopColor:"#600b39"}),x.createElement("stop",{offset:.15,stopColor:"#79154a"}),x.createElement("stop",{offset:.29,stopColor:"#8c1d58"}),x.createElement("stop",{offset:.44,stopColor:"#992362"}),x.createElement("stop",{offset:.63,stopColor:"#a12768"}),x.createElement("stop",{offset:1,stopColor:"#a4286a"})),x.createElement("linearGradient",{xlinkHref:"#woo-yoast-logo_svg__a",id:"woo-yoast-logo_svg__b",x1:1996.44,x2:1996.44,y1:356.5,y2:52.62}),x.createElement("linearGradient",{xlinkHref:"#woo-yoast-logo_svg__a",id:"woo-yoast-logo_svg__c",x1:1633.06,x2:1633.06,y1:314.32,y2:101.34}),x.createElement("linearGradient",{xlinkHref:"#woo-yoast-logo_svg__a",id:"woo-yoast-logo_svg__d",x1:1831.95,x2:1831.95,y1:315.16,y2:100.24}),x.createElement("linearGradient",{id:"woo-yoast-logo_svg__e",x1:1227.17,x2:1227.17,y1:-11.46,y2:325.55,gradientUnits:"userSpaceOnUse"},x.createElement("stop",{offset:0,stopColor:"#77b227"}),x.createElement("stop",{offset:.47,stopColor:"#75b027"}),x.createElement("stop",{offset:.64,stopColor:"#6eaa27"}),x.createElement("stop",{offset:.75,stopColor:"#62a027"}),x.createElement("stop",{offset:.85,stopColor:"#519227"}),x.createElement("stop",{offset:.93,stopColor:"#3b7f28"}),x.createElement("stop",{offset:1,stopColor:"#246b29"})))),F||(F=x.createElement("path",{fill:"none",stroke:"#374151",strokeMiterlimit:10,strokeWidth:6.29,d:"M938.79 3.5v419.46"})),H||(H=x.createElement("path",{fill:"url(#woo-yoast-logo_svg__a)",d:"M1417.92 101.98c-74.32 0-104.05 49.88-104.05 105.43s29.29 107.62 104.05 107.62 103.87-52.24 103.73-104.23c-.17-63.32-32.21-108.82-103.73-108.82Zm-45.03 108.56c1.81-74.32 58.89-74.24 77.96-47.61 17.38 24.26 20.95 107.21-32.93 106.6-24.81-.27-44.3-17.05-45.03-58.99Z"})),U||(U=x.createElement("path",{fill:"url(#woo-yoast-logo_svg__b)",d:"M2020.74 263.49V155.82h38.49v-46.74h-38.49V52.63h-59.45v56.45h-30.16v46.74h30.16v101.56c0 57.73 40.25 92.03 82.72 99.13l17.74-47.8c-24.76-3.14-40.78-21.64-41.01-45.21Z"})),D||(D=x.createElement("path",{fill:"url(#woo-yoast-logo_svg__c)",d:"M1720.78 246.43v-80.94c0-2.95-.19-5.73-.47-8.44-5.15-65.38-98.01-65.25-169.93-40.15l20.79 41.84c46.83-22.24 74.87-16.51 84.66-5.55.25.28.51.56.73.86l.08.11c5 6.75 3.8 17.39 3.8 25.75-61.21 0-126.34 8.13-126.34 75.25 0 51.02 63.94 83.85 130.74 35.22l9.91 23.91h57.26c-5.12-28.08-11.23-52.14-11.23-67.89Zm-59.88-.44c-47.09 52.69-90.21 3.09-46.05-18.55 13-4.43 30.64-4.62 46.05-4.62v23.17Z"})),G||(G=x.createElement("path",{fill:"url(#woo-yoast-logo_svg__d)",d:"M1812.16 161.14c0-19.93 31.92-29.26 82.26-6.27l17.41-42.28c-67.76-20.48-160.28-22.32-160.88 48.55-.29 33.96 21.5 52.24 52.86 63.9 21.73 8.08 53.09 12.26 53 29.56-.12 22.61-48.74 26.07-93.01-4.34l-17.88 45.85c60.37 30.05 172.64 30.9 172.04-44.41-.59-74.45-105.8-61.69-105.8-90.56Z"})),Y||(Y=x.createElement("path",{fill:"url(#woo-yoast-logo_svg__e)",d:"m1288.75 0-86.18 239.37-41.27-129.26h-61.38l68.72 176.53a64.434 64.434 0 0 1 0 46.74c-7.68 19.7-20.46 36.55-51.62 40.74v52.33c60.66 0 93.46-37.29 122.72-119.02L1354.41 0h-65.67Z"})),W||(W=x.createElement("path",{fill:"#873eff",d:"M672.07 251.82c-21.52 0-35.87-16.07-35.87-38.45s14.64-38.74 35.87-38.74 36.44 16.36 36.44 38.74-14.92 38.45-36.44 38.45Zm0 61.41c57.11 0 100.72-42.47 100.72-99.86s-43.62-100.15-100.72-100.15-100.44 42.47-100.44 100.15 43.62 99.86 100.44 99.86Zm-215.22-61.41c-21.52 0-36.16-16.07-36.16-38.45s14.64-38.74 36.16-38.74 36.16 16.36 36.16 38.74-14.35 38.45-36.16 38.45Zm0 61.41c56.82 0 100.44-42.47 100.72-99.86 0-57.68-43.91-100.15-100.72-100.15s-100.72 42.47-100.72 100.15 43.91 99.86 100.72 99.86Zm-358.13 0c22.38 0 40.75-10.9 54.24-36.73l30.42-56.82v48.21c0 28.41 18.37 45.34 46.78 45.34 22.38 0 38.74-9.76 54.52-36.73l70.02-117.94c15.21-26.11 4.3-45.34-29.27-45.34-18.08 0-29.84 5.74-40.46 25.54l-48.21 90.39V148.8c0-24.11-11.48-35.58-32.43-35.58-16.93 0-30.13 7.17-40.46 27.26l-45.34 88.67v-79.49c0-25.83-10.62-36.44-36.16-36.44H29.84C10.04 113.22 0 122.4 0 139.33s10.62 26.69 29.84 26.69h21.52v101.59c0 28.7 19.23 45.63 47.35 45.63Z"}))),te=({integration:e,isActive:t=!0,isInstalled:s=!0,isPrerequisiteActive:o=!0,activationLink:n})=>(0,d.jsxs)(Z,{integration:e,isActive:t,children:[!o&&(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Plugin not detected","wordpress-seo")}),(0,d.jsx)(k,{className:"yst-h-5 yst-w-5 yst-text-red-500 yst-flex-shrink-0"})]}),o&&t&&(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Integration active","wordpress-seo")}),(0,d.jsx)(S,{className:"yst-h-5 yst-w-5 yst-text-green-400 yst-flex-shrink-0"})]}),o&&!t&&s&&(0,d.jsx)(l.Fragment,{children:(0,d.jsx)(r.Button,{id:`${e.name}-upsell-button`,type:"button",as:"a",variant:"secondary",href:n,className:"yst-w-full yst-text-slate-800 yst-text-center",children:(0,a.sprintf)(/* translators: 1: Yoast WooCommerce SEO */ +(0,a.__)("Add trustworthiness to your %1$s profile by verifying your site with %2$s.","wordpress-seo"),"Mastodon","Yoast SEO Premium"),isPremium:!0,isNew:!1,isMultisiteAvailable:!0,logo:e=>x.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg",width:140,viewBox:"0 0 713.359 175.868"},e),_||(_=x.createElement("path",{fill:"#2b90d9",d:"M160.555 105.431c-2.413 12.407-21.598 25.983-43.634 28.614-11.491 1.373-22.804 2.631-34.867 2.079-19.73-.904-35.298-4.71-35.298-4.71 0 1.921.119 3.75.355 5.46 2.565 19.47 19.308 20.637 35.166 21.181 16.007.548 30.258-3.947 30.258-3.947l.659 14.472s-11.197 6.011-31.14 7.116c-11 .605-24.654-.276-40.56-4.485C6.999 162.08 1.066 125.31.159 88-.12 76.923.052 66.476.052 57.741.052 19.59 25.05 8.406 25.05 8.406 37.652 2.617 59.279.184 81.764 0h.552c22.484.184 44.125 2.618 56.729 8.406 0 0 24.996 11.183 24.996 49.335 0 0 .313 28.148-3.486 47.69"})),b||(b=x.createElement("path",{fill:"#282c37",d:"M34.658 48.494c0-5.554 4.502-10.055 10.055-10.055s10.055 4.501 10.055 10.055c0 5.553-4.502 10.055-10.055 10.055s-10.055-4.502-10.055-10.055M178.865 60.7v46.195h-18.301V62.057c0-9.452-3.978-14.248-11.933-14.248-8.794 0-13.202 5.69-13.202 16.943v24.542h-18.194V64.751c0-11.252-4.409-16.943-13.203-16.943-7.955 0-11.932 4.796-11.932 14.248v44.838H73.799V60.7c0-9.442 2.403-16.944 7.232-22.495 4.98-5.55 11.501-8.395 19.595-8.395 9.366 0 16.459 3.599 21.146 10.799l4.56 7.642 4.559-7.642c4.689-7.2 11.78-10.8 21.148-10.8 8.093 0 14.613 2.846 19.593 8.396 4.829 5.551 7.233 13.054 7.233 22.495m63.048 22.964c3.776-3.99 5.595-9.015 5.595-15.075 0-6.06-1.819-11.085-5.595-14.928-3.636-3.991-8.254-5.911-13.849-5.911-5.596 0-10.212 1.92-13.849 5.911-3.637 3.843-5.456 8.868-5.456 14.928 0 6.06 1.819 11.085 5.456 15.075 3.637 3.842 8.253 5.763 13.849 5.763 5.595 0 10.213-1.92 13.849-5.763m5.595-52.025h18.046v73.9h-18.046v-8.722c-5.455 7.243-13.01 10.79-22.801 10.79-9.373 0-17.347-3.695-24.062-11.233-6.573-7.538-9.931-16.85-9.931-27.785 0-10.79 3.358-20.102 9.931-27.64 6.715-7.537 14.689-11.38 24.062-11.38 9.79 0 17.346 3.548 22.8 10.79v-8.72zm78.762 35.62c5.315 3.99 7.973 9.606 7.833 16.7 0 7.538-2.658 13.45-8.113 17.588-5.457 3.992-12.03 6.06-20.004 6.06-14.409 0-24.201-5.912-29.378-17.588l15.669-9.31c2.098 6.353 6.714 9.606 13.709 9.606 6.434 0 9.652-2.07 9.652-6.356 0-3.104-4.197-5.912-12.73-8.128a117.46 117.46 0 0 1-7.973-2.514c-2.938-1.18-5.455-2.512-7.554-4.137-5.176-3.99-7.834-9.313-7.834-16.11 0-7.243 2.518-13.006 7.554-17.145 5.176-4.286 11.47-6.355 19.025-6.355 12.03 0 20.844 5.172 26.577 15.666l-15.386 8.868c-2.239-5.024-6.015-7.537-11.191-7.537-5.456 0-8.114 2.07-8.114 6.06 0 3.103 4.196 5.91 12.73 8.128 6.575 1.477 11.75 3.695 15.528 6.504m57.357-17.293h-15.808V80.71c0 3.695 1.4 5.91 4.058 6.945 1.958.74 5.875.887 11.75.59v17.295c-12.17 1.477-20.983.295-26.16-3.697-5.174-3.842-7.693-10.936-7.693-21.133V49.966h-12.17V31.64h12.17V16.71l18.045-5.764V31.64h15.808v18.327zm57.498 33.255c3.637-3.844 5.455-8.722 5.455-14.633s-1.818-10.789-5.455-14.631c-3.638-3.844-8.114-5.764-13.57-5.764-5.455 0-9.931 1.92-13.569 5.764-3.497 3.99-5.316 8.867-5.316 14.631 0 5.765 1.819 10.643 5.316 14.633 3.638 3.842 8.114 5.763 13.569 5.763 5.456 0 9.932-1.921 13.57-5.763m-39.869 13.153c-7.134-7.537-10.631-16.701-10.631-27.786 0-10.937 3.497-20.1 10.631-27.637 7.134-7.538 15.948-11.38 26.299-11.38 10.352 0 19.165 3.842 26.3 11.38 7.135 7.537 10.771 16.848 10.771 27.637 0 10.938-3.636 20.249-10.771 27.786-7.135 7.539-15.808 11.233-26.3 11.233-10.491 0-19.165-3.694-26.299-11.233m123.665-12.71c3.638-3.99 5.455-9.015 5.455-15.075 0-6.06-1.817-11.085-5.455-14.928-3.636-3.991-8.253-5.911-13.848-5.911-5.597 0-10.213 1.92-13.99 5.911-3.635 3.843-5.455 8.868-5.455 14.928 0 6.06 1.82 11.085 5.456 15.075 3.776 3.842 8.532 5.763 13.989 5.763 5.595 0 10.212-1.92 13.848-5.763m5.455-81.585h18.047v103.46h-18.047v-8.722c-5.315 7.243-12.87 10.79-22.661 10.79-9.372 0-17.485-3.695-24.2-11.233-6.575-7.538-9.932-16.85-9.932-27.785 0-10.79 3.357-20.102 9.932-27.64 6.715-7.537 14.828-11.38 24.2-11.38 9.791 0 17.346 3.548 22.661 10.79V2.079zm81.42 81.142c3.637-3.844 5.455-8.722 5.455-14.633s-1.818-10.789-5.455-14.631c-3.637-3.844-8.113-5.764-13.57-5.764-5.455 0-9.932 1.92-13.568 5.764-3.5 3.99-5.317 8.867-5.317 14.631 0 5.765 1.818 10.643 5.317 14.633 3.636 3.842 8.113 5.763 13.568 5.763 5.457 0 9.933-1.921 13.57-5.764m-39.868 13.154c-7.135-7.537-10.632-16.701-10.632-27.786 0-10.937 3.497-20.1 10.632-27.637 7.135-7.538 15.947-11.38 26.298-11.38 10.353 0 19.165 3.842 26.3 11.38 7.135 7.537 10.772 16.848 10.772 27.637 0 10.938-3.637 20.249-10.772 27.786-7.135 7.539-15.807 11.233-26.3 11.233-10.491 0-19.163-3.694-26.298-11.233m141.43-36.21v45.374h-18.045v-43.01c0-4.877-1.26-8.572-3.777-11.38-2.378-2.512-5.736-3.843-10.072-3.843-10.213 0-15.388 6.06-15.388 18.328v39.905H648.03v-73.9h18.046v8.277c4.337-6.946 11.19-10.345 20.844-10.345 7.694 0 13.989 2.66 18.885 8.129 5.035 5.469 7.554 12.859 7.554 22.465"}))),upsellLink:"https://yoa.st/get-mastodon-integration"},q=[[].map(((e,t)=>(0,d.jsx)(C,{integration:e,toggleLabel:(0,a.__)("Enable integration","wordpress-seo"),initialActivationState:g(e),isNetworkControlEnabled:y(e),isMultisiteAvailable:u(e),beforeToggle:f},t))),(0,d.jsx)(Z,{integration:A,isActive:Boolean(window.wpseoIntegrationsData.mastodon_active)},3)];var V,$,B,I,F,H,U,D,G,Y,W;function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},K.apply(this,arguments)}function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},J.apply(this,arguments)}function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},X.apply(this,arguments)}function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},Q.apply(this,arguments)}const ee=e=>x.createElement("svg",Q({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:175,"aria-hidden":"true",viewBox:"0 0 2061.74 426.45"},e),I||(I=x.createElement("defs",null,x.createElement("linearGradient",{id:"woo-yoast-logo_svg__a",x1:1417.76,x2:1417.76,y1:315.03,y2:101.98,gradientUnits:"userSpaceOnUse"},x.createElement("stop",{offset:0,stopColor:"#570732"}),x.createElement("stop",{offset:.04,stopColor:"#600b39"}),x.createElement("stop",{offset:.15,stopColor:"#79154a"}),x.createElement("stop",{offset:.29,stopColor:"#8c1d58"}),x.createElement("stop",{offset:.44,stopColor:"#992362"}),x.createElement("stop",{offset:.63,stopColor:"#a12768"}),x.createElement("stop",{offset:1,stopColor:"#a4286a"})),x.createElement("linearGradient",{xlinkHref:"#woo-yoast-logo_svg__a",id:"woo-yoast-logo_svg__b",x1:1996.44,x2:1996.44,y1:356.5,y2:52.62}),x.createElement("linearGradient",{xlinkHref:"#woo-yoast-logo_svg__a",id:"woo-yoast-logo_svg__c",x1:1633.06,x2:1633.06,y1:314.32,y2:101.34}),x.createElement("linearGradient",{xlinkHref:"#woo-yoast-logo_svg__a",id:"woo-yoast-logo_svg__d",x1:1831.95,x2:1831.95,y1:315.16,y2:100.24}),x.createElement("linearGradient",{id:"woo-yoast-logo_svg__e",x1:1227.17,x2:1227.17,y1:-11.46,y2:325.55,gradientUnits:"userSpaceOnUse"},x.createElement("stop",{offset:0,stopColor:"#77b227"}),x.createElement("stop",{offset:.47,stopColor:"#75b027"}),x.createElement("stop",{offset:.64,stopColor:"#6eaa27"}),x.createElement("stop",{offset:.75,stopColor:"#62a027"}),x.createElement("stop",{offset:.85,stopColor:"#519227"}),x.createElement("stop",{offset:.93,stopColor:"#3b7f28"}),x.createElement("stop",{offset:1,stopColor:"#246b29"})))),F||(F=x.createElement("path",{fill:"none",stroke:"#374151",strokeMiterlimit:10,strokeWidth:6.29,d:"M938.79 3.5v419.46"})),H||(H=x.createElement("path",{fill:"url(#woo-yoast-logo_svg__a)",d:"M1417.92 101.98c-74.32 0-104.05 49.88-104.05 105.43s29.29 107.62 104.05 107.62 103.87-52.24 103.73-104.23c-.17-63.32-32.21-108.82-103.73-108.82Zm-45.03 108.56c1.81-74.32 58.89-74.24 77.96-47.61 17.38 24.26 20.95 107.21-32.93 106.6-24.81-.27-44.3-17.05-45.03-58.99Z"})),U||(U=x.createElement("path",{fill:"url(#woo-yoast-logo_svg__b)",d:"M2020.74 263.49V155.82h38.49v-46.74h-38.49V52.63h-59.45v56.45h-30.16v46.74h30.16v101.56c0 57.73 40.25 92.03 82.72 99.13l17.74-47.8c-24.76-3.14-40.78-21.64-41.01-45.21Z"})),D||(D=x.createElement("path",{fill:"url(#woo-yoast-logo_svg__c)",d:"M1720.78 246.43v-80.94c0-2.95-.19-5.73-.47-8.44-5.15-65.38-98.01-65.25-169.93-40.15l20.79 41.84c46.83-22.24 74.87-16.51 84.66-5.55.25.28.51.56.73.86l.08.11c5 6.75 3.8 17.39 3.8 25.75-61.21 0-126.34 8.13-126.34 75.25 0 51.02 63.94 83.85 130.74 35.22l9.91 23.91h57.26c-5.12-28.08-11.23-52.14-11.23-67.89Zm-59.88-.44c-47.09 52.69-90.21 3.09-46.05-18.55 13-4.43 30.64-4.62 46.05-4.62v23.17Z"})),G||(G=x.createElement("path",{fill:"url(#woo-yoast-logo_svg__d)",d:"M1812.16 161.14c0-19.93 31.92-29.26 82.26-6.27l17.41-42.28c-67.76-20.48-160.28-22.32-160.88 48.55-.29 33.96 21.5 52.24 52.86 63.9 21.73 8.08 53.09 12.26 53 29.56-.12 22.61-48.74 26.07-93.01-4.34l-17.88 45.85c60.37 30.05 172.64 30.9 172.04-44.41-.59-74.45-105.8-61.69-105.8-90.56Z"})),Y||(Y=x.createElement("path",{fill:"url(#woo-yoast-logo_svg__e)",d:"m1288.75 0-86.18 239.37-41.27-129.26h-61.38l68.72 176.53a64.434 64.434 0 0 1 0 46.74c-7.68 19.7-20.46 36.55-51.62 40.74v52.33c60.66 0 93.46-37.29 122.72-119.02L1354.41 0h-65.67Z"})),W||(W=x.createElement("path",{fill:"#873eff",d:"M672.07 251.82c-21.52 0-35.87-16.07-35.87-38.45s14.64-38.74 35.87-38.74 36.44 16.36 36.44 38.74-14.92 38.45-36.44 38.45Zm0 61.41c57.11 0 100.72-42.47 100.72-99.86s-43.62-100.15-100.72-100.15-100.44 42.47-100.44 100.15 43.62 99.86 100.44 99.86Zm-215.22-61.41c-21.52 0-36.16-16.07-36.16-38.45s14.64-38.74 36.16-38.74 36.16 16.36 36.16 38.74-14.35 38.45-36.16 38.45Zm0 61.41c56.82 0 100.44-42.47 100.72-99.86 0-57.68-43.91-100.15-100.72-100.15s-100.72 42.47-100.72 100.15 43.91 99.86 100.72 99.86Zm-358.13 0c22.38 0 40.75-10.9 54.24-36.73l30.42-56.82v48.21c0 28.41 18.37 45.34 46.78 45.34 22.38 0 38.74-9.76 54.52-36.73l70.02-117.94c15.21-26.11 4.3-45.34-29.27-45.34-18.08 0-29.84 5.74-40.46 25.54l-48.21 90.39V148.8c0-24.11-11.48-35.58-32.43-35.58-16.93 0-30.13 7.17-40.46 27.26l-45.34 88.67v-79.49c0-25.83-10.62-36.44-36.16-36.44H29.84C10.04 113.22 0 122.4 0 139.33s10.62 26.69 29.84 26.69h21.52v101.59c0 28.7 19.23 45.63 47.35 45.63Z"}))),te=({integration:e,isActive:t=!0,isInstalled:s=!0,isPrerequisiteActive:o=!0,activationLink:n})=>(0,d.jsxs)(O,{integration:e,isActive:t,children:[!o&&(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Plugin not detected","wordpress-seo")}),(0,d.jsx)(k,{className:"yst-h-5 yst-w-5 yst-text-red-500 yst-flex-shrink-0"})]}),o&&t&&(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Integration active","wordpress-seo")}),(0,d.jsx)(S,{className:"yst-h-5 yst-w-5 yst-text-green-400 yst-flex-shrink-0"})]}),o&&!t&&s&&(0,d.jsx)(l.Fragment,{children:(0,d.jsx)(r.Button,{id:`${e.name}-upsell-button`,type:"button",as:"a",variant:"secondary",href:n,className:"yst-w-full yst-text-slate-800 yst-text-center",children:(0,a.sprintf)(/* translators: 1: Yoast WooCommerce SEO */ (0,a.__)("Activate %s","wordpress-seo"),"Yoast WooCommerce SEO")})}),o&&!t&&!s&&(0,d.jsx)(l.Fragment,{children:(0,d.jsxs)(r.Button,{id:`${e.name}-upsell-button`,type:"button",as:"a",href:e.upsellLink,variant:"upsell",className:"yst-w-full yst-text-slate-800",target:"_blank",children:[(0,d.jsx)(E,{className:"yst--ms-1 yst-me-2 yst-h-5 yst-w-5 yst-text-yellow-900"}),(0,a.sprintf)(/* translators: 1: Yoast WooCommerce SEO */ (0,a.__)("Buy %s","wordpress-seo"),"Yoast WooCommerce SEO"),(0,d.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,a.__)("(Opens in a new browser tab)","wordpress-seo")})]})})]});te.propTypes={integration:n.PropTypes.shape({name:n.PropTypes.string,claim:n.PropTypes.node,slug:n.PropTypes.string,description:n.PropTypes.string,usps:n.PropTypes.array,logo:n.PropTypes.func,isNew:n.PropTypes.bool,upsellLink:n.PropTypes.string}).isRequired,isActive:n.PropTypes.bool,isInstalled:n.PropTypes.bool,isPrerequisiteActive:n.PropTypes.bool,activationLink:n.PropTypes.string.isRequired};const se=e=>(0,d.jsx)("img",{src:window.wpseoIntegrationsData.plugin_url+"/images/acf-logo.png",height:"50",width:"50",alt:(0,a.sprintf)(/* translators: 1: Yoast SEO, 2: ACF */ -(0,a.__)("%1$s integrates with %2$s","wordpress-seo"),"Yoast SEO","ACF"),...e}),oe=({integration:e,isActive:t=!0,isInstalled:s=!0,isPrerequisiteActive:o,installationLink:n,activationLink:i})=>(e.logo=se,(0,d.jsxs)(Z,{integration:e,isActive:t,children:[!o&&(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Plugin not detected","wordpress-seo")}),(0,d.jsx)(k,{className:"yst-h-5 yst-w-5 yst-text-red-500 yst-flex-shrink-0"})]}),o&&t&&(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Integration active","wordpress-seo")}),(0,d.jsx)(S,{className:"yst-h-5 yst-w-5 yst-text-green-400 yst-flex-shrink-0"})]}),o&&!t&&s&&(0,d.jsx)(l.Fragment,{children:(0,d.jsx)(r.Button,{id:`${e.name}-upsell-button`,type:"button",as:"a",variant:"secondary",href:i,className:"yst-w-full yst-text-slate-800 yst-text-center",children:(0,a.sprintf)(/* translators: 1: ACF, 2: Yoast SEO */ +(0,a.__)("%1$s integrates with %2$s","wordpress-seo"),"Yoast SEO","ACF"),...e}),oe=({integration:e,isActive:t=!0,isInstalled:s=!0,isPrerequisiteActive:o,installationLink:n,activationLink:i})=>(e.logo=se,(0,d.jsxs)(O,{integration:e,isActive:t,children:[!o&&(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Plugin not detected","wordpress-seo")}),(0,d.jsx)(k,{className:"yst-h-5 yst-w-5 yst-text-red-500 yst-flex-shrink-0"})]}),o&&t&&(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Integration active","wordpress-seo")}),(0,d.jsx)(S,{className:"yst-h-5 yst-w-5 yst-text-green-400 yst-flex-shrink-0"})]}),o&&!t&&s&&(0,d.jsx)(l.Fragment,{children:(0,d.jsx)(r.Button,{id:`${e.name}-upsell-button`,type:"button",as:"a",variant:"secondary",href:i,className:"yst-w-full yst-text-slate-800 yst-text-center",children:(0,a.sprintf)(/* translators: 1: ACF, 2: Yoast SEO */ (0,a.__)("Activate %1$s Content Analysis for %2$s","wordpress-seo"),"ACF","Yoast SEO")})}),o&&!t&&!s&&(0,d.jsx)(l.Fragment,{children:(0,d.jsx)(r.Button,{id:`${e.name}-upsell-button`,type:"button",as:"a",href:n,variant:"secondary",className:"yst-w-full yst-text-slate-800 yst-text-center",children:(0,a.sprintf)(/* translators: 1: ACF, 2: Yoast SEO */ -(0,a.__)("Install %1$s Content Analysis for %2$s","wordpress-seo"),"ACF","Yoast SEO")})})]}));oe.propTypes={integration:n.PropTypes.shape({name:n.PropTypes.string,claim:n.PropTypes.node,slug:n.PropTypes.string,description:n.PropTypes.string,usps:n.PropTypes.array,logo:n.PropTypes.func,isNew:n.PropTypes.bool}).isRequired,isActive:n.PropTypes.bool,isInstalled:n.PropTypes.bool,isPrerequisiteActive:n.PropTypes.bool.isRequired,installationLink:n.PropTypes.string.isRequired,activationLink:n.PropTypes.string.isRequired};const re=({integration:e,isActive:t=!0})=>(0,d.jsxs)(Z,{integration:e,isActive:t,children:[t&&(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Integration active","wordpress-seo")}),(0,d.jsx)(S,{className:"yst-h-5 yst-w-5 yst-text-green-400 yst-flex-shrink-0"})]}),!t&&(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Plugin not detected","wordpress-seo")}),(0,d.jsx)(k,{className:"yst-h-5 yst-w-5 yst-text-red-500 yst-flex-shrink-0"})]})]});re.propTypes={integration:n.PropTypes.shape({name:n.PropTypes.string,claim:n.PropTypes.node,slug:n.PropTypes.string,description:n.PropTypes.string,usps:n.PropTypes.array,logo:n.PropTypes.func,isNew:n.PropTypes.bool}).isRequired,isActive:n.PropTypes.bool};const ae=({integration:e,initialActivationState:t,isNetworkControlEnabled:s,isMultisiteAvailable:o,toggleLabel:n,beforeToggle:i,isPrerequisiteActive:c})=>{const[p,h]=(0,l.useState)(t),m=(0,l.useCallback)((async()=>{let t=!0;const s=!p;h(s),i&&(t=!1,t=await i(e,s)),t||h(!s)}),[p,i,h]),g=e.logo;return(0,d.jsxs)(T,{children:[(0,d.jsxs)(T.Header,{children:[(0,d.jsxs)(r.Link,{href:e.logoLink,target:"_blank",children:[e.logo&&(0,d.jsx)(g,{alt:(0,a.sprintf)(/* translators: 1: Yoast SEO, 2: integration name */ -(0,a.__)("%1$s integrates with %2$s","wordpress-seo"),"Yoast SEO",e.name),className:c&&f(e,p)?"":"yst-opacity-50 yst-filter yst-grayscale"}),(0,d.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ +(0,a.__)("Install %1$s Content Analysis for %2$s","wordpress-seo"),"ACF","Yoast SEO")})})]}));oe.propTypes={integration:n.PropTypes.shape({name:n.PropTypes.string,claim:n.PropTypes.node,slug:n.PropTypes.string,description:n.PropTypes.string,usps:n.PropTypes.array,logo:n.PropTypes.func,isNew:n.PropTypes.bool}).isRequired,isActive:n.PropTypes.bool,isInstalled:n.PropTypes.bool,isPrerequisiteActive:n.PropTypes.bool.isRequired,installationLink:n.PropTypes.string.isRequired,activationLink:n.PropTypes.string.isRequired};const re=({integration:e,isActive:t=!0})=>(0,d.jsxs)(O,{integration:e,isActive:t,children:[t&&(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Integration active","wordpress-seo")}),(0,d.jsx)(S,{className:"yst-h-5 yst-w-5 yst-text-green-400 yst-flex-shrink-0"})]}),!t&&(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Plugin not detected","wordpress-seo")}),(0,d.jsx)(k,{className:"yst-h-5 yst-w-5 yst-text-red-500 yst-flex-shrink-0"})]})]});re.propTypes={integration:n.PropTypes.shape({name:n.PropTypes.string,claim:n.PropTypes.node,slug:n.PropTypes.string,description:n.PropTypes.string,usps:n.PropTypes.array,logo:n.PropTypes.func,isNew:n.PropTypes.bool}).isRequired,isActive:n.PropTypes.bool};const ae=({integration:e,initialActivationState:t,isNetworkControlEnabled:s,isMultisiteAvailable:o,toggleLabel:n,beforeToggle:i,isPrerequisiteActive:c})=>{const[p,h]=(0,l.useState)(t),m=(0,l.useCallback)((async()=>{let t=!0;const s=!p;h(s),i&&(t=!1,t=await i(e,s)),t||h(!s)}),[p,i,h]),g=e.logo;return(0,d.jsxs)(T,{children:[(0,d.jsxs)(T.Header,{children:[(0,d.jsxs)(r.Link,{href:e.logoLink,target:"_blank",children:[e.logo&&(0,d.jsx)(g,{alt:(0,a.sprintf)(/* translators: 1: Yoast SEO, 2: integration name */ +(0,a.__)("%1$s integrates with %2$s","wordpress-seo"),"Yoast SEO",e.name),className:c&&w(e,p)?"":"yst-opacity-50 yst-filter yst-grayscale"}),(0,d.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,a.__)("(Opens in a new browser tab)","wordpress-seo")})]}),!s&&o&&(0,d.jsx)(r.Badge,{className:"yst-absolute yst-top-2 yst-end-2",children:(0,a.__)("Network Disabled","wordpress-seo")}),s&&e.isNew&&(0,d.jsx)(r.Badge,{className:"yst-absolute yst-top-2 yst-end-2",children:(0,a.__)("New","wordpress-seo")})]}),(0,d.jsxs)(T.Content,{children:[(0,d.jsxs)("div",{children:[e.claim&&(0,d.jsx)("h4",{className:"yst-text-base yst-mb-3 yst-font-medium yst-text-[#111827] yst-leading-tight",children:e.claim}),(0,d.jsxs)("p",{children:[" ",e.description,e.learnMoreLink&&(0,d.jsxs)(r.Link,{href:e.learnMoreLink,className:"yst-flex yst-items-center yst-mt-3 yst-no-underline yst-font-medium",target:"_blank",children:[(0,a.__)("Learn more","wordpress-seo"),(0,d.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,a.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,d.jsx)(M,{className:"yst-h-4 yst-w-4 yst-ms-1 yst-icon-rtl"})]})]})]}),p&&(0,d.jsx)(P.Slot,{name:`${e.name}Slot`})]}),(0,d.jsxs)(T.Footer,{children:[!c&&(0,d.jsxs)("p",{className:"yst-flex yst-items-start yst-justify-between",children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Plugin not detected","wordpress-seo")}),(0,d.jsx)(k,{className:"yst-h-5 yst-w-5 yst-text-red-500 yst-flex-shrink-0"})]}),c&&!v(e)&&(0,d.jsxs)(r.Button,{id:`${e.name}-upsell-button`,type:"button",as:"a",href:e.upsellLink,variant:"upsell",className:"yst-w-full yst-text-slate-800",target:"_blank",children:[(0,d.jsx)(E,{className:"yst--ms-1 yst-me-2 yst-h-5 yst-w-5 yst-text-yellow-900"}),(0,a.__)("Unlock with Premium","wordpress-seo"),(0,d.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,a.__)("(Opens in a new browser tab)","wordpress-seo")})]}),c&&v(e)&&!u(e)&&(0,d.jsxs)("p",{className:"yst-flex yst-items-start yst-justify-between",children:[(0,d.jsx)("span",{className:"yst-text-slate-700 yst-font-medium",children:(0,a.__)("Integration unavailable for multisites","wordpress-seo")}),(0,d.jsx)(k,{className:"yst-h-5 yst-w-5 yst-text-red-500 yst-flex-shrink-0"})]}),c&&v(e)&&u(e)&&(0,d.jsx)(r.ToggleField,{checked:p,label:n,onChange:m,disabled:!s||!o})]})]})};ae.propTypes={integration:n.PropTypes.shape({name:n.PropTypes.string,claim:n.PropTypes.node,learnMoreLink:n.PropTypes.string,logoLink:n.PropTypes.string,slug:n.PropTypes.string,description:n.PropTypes.string,usps:n.PropTypes.array,logo:n.PropTypes.func,isPremium:n.PropTypes.bool,isNew:n.PropTypes.bool,isMultisiteAvailable:n.PropTypes.bool,upsellLink:n.PropTypes.string}).isRequired,initialActivationState:n.PropTypes.bool.isRequired,isNetworkControlEnabled:n.PropTypes.bool.isRequired,isMultisiteAvailable:n.PropTypes.bool.isRequired,toggleLabel:n.PropTypes.string.isRequired,beforeToggle:n.PropTypes.func.isRequired,isPrerequisiteActive:n.PropTypes.bool.isRequired};const ne={elementor:{name:"Elementor",claim:c((0,a.sprintf)(/* translators: 1: Yoast SEO; 2: bold open tag; 3: Elementor; 4: bold close tag. */ @@ -24,15 +24,14 @@ (0,a.__)("Connect your %1$s account to improve your site’s search results using %2$s data.","wordpress-seo"),"Algolia","Yoast SEO"),isPremium:!0,isNew:!1,isMultisiteAvailable:!0,logo:e=>x.createElement("svg",K({xmlns:"http://www.w3.org/2000/svg",width:150,height:40,viewBox:"100 100 525 160"},e),V||(V=x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{fill:"#5468FF",d:"M135.8 120.999h88.4c8.7 0 15.8 7.065 15.8 15.8v88.405c0 8.7-7.065 15.795-15.8 15.795h-88.4c-8.7 0-15.8-7.06-15.8-15.795v-88.445c0-8.695 7.06-15.76 15.8-15.76"}),x.createElement("path",{fill:"#FFF",d:"M192.505 147.788v-4.115a5.209 5.209 0 0 0-5.21-5.205H175.15a5.209 5.209 0 0 0-5.21 5.205v4.225c0 .47.435.8.91.69a37.966 37.966 0 0 1 10.57-1.49c3.465 0 6.895.47 10.21 1.38.44.11.875-.215.875-.69m-33.285 5.385-2.075-2.075a5.206 5.206 0 0 0-7.365 0l-2.48 2.475a5.185 5.185 0 0 0 0 7.355l2.04 2.04c.33.325.805.25 1.095-.075a39.876 39.876 0 0 1 3.975-4.66 37.68 37.68 0 0 1 4.7-4c.364-.22.4-.73.11-1.06m22.164 13.065v17.8c0 .51.55.875 1.02.62l15.825-8.19c.36-.18.47-.62.29-.98-3.28-5.755-9.37-9.685-16.405-9.94-.365 0-.73.29-.73.69m0 42.88c-13.195 0-23.915-10.705-23.915-23.88 0-13.175 10.72-23.875 23.915-23.875 13.2 0 23.916 10.7 23.916 23.875s-10.68 23.88-23.916 23.88m0-57.8c-18.74 0-33.94 15.18-33.94 33.92 0 18.745 15.2 33.89 33.94 33.89s33.94-15.18 33.94-33.925c0-18.745-15.165-33.885-33.94-33.885"}),x.createElement("path",{fill:"#5468FF",d:"M359.214 216.177c-23.365.11-23.365-18.855-23.365-21.875l-.04-71.045 14.254-2.26v70.61c0 1.715 0 12.56 9.15 12.595v11.975zm-57.78-11.61c4.374 0 7.62-.255 9.88-.69v-14.485a29.196 29.196 0 0 0-3.43-.695 33.742 33.742 0 0 0-4.956-.365c-1.57 0-3.175.11-4.775.365-1.605.22-3.065.655-4.34 1.275-1.275.62-2.335 1.495-3.1 2.62-.8 1.13-1.165 1.785-1.165 3.495 0 3.345 1.165 5.28 3.28 6.55 2.115 1.275 4.995 1.93 8.606 1.93zm-1.24-51.685c4.7 0 8.674.585 11.884 1.75 3.206 1.165 5.796 2.8 7.69 4.875 1.935 2.11 3.245 4.915 4.046 7.9.84 2.985 1.24 6.26 1.24 9.86v36.62c-2.185.47-5.506 1.015-9.95 1.67-4.446.655-9.44.985-14.986.985-3.68 0-7.07-.365-10.095-1.055-3.065-.69-5.65-1.82-7.84-3.385-2.15-1.565-3.825-3.57-5.065-6.04-1.205-2.48-1.825-5.97-1.825-9.61 0-3.495.69-5.715 2.045-8.12 1.38-2.4 3.24-4.365 5.575-5.895 2.37-1.53 5.065-2.62 8.165-3.275 3.1-.655 6.345-.985 9.695-.985 1.57 0 3.21.11 4.96.29 1.715.185 3.575.515 5.545.985v-2.33c0-1.635-.185-3.2-.585-4.655a10.012 10.012 0 0 0-2.045-3.895c-.985-1.13-2.255-2.005-3.86-2.62-1.605-.62-3.65-1.095-6.09-1.095-3.28 0-6.27.4-9.005.875-2.735.47-4.995 1.02-6.71 1.635l-1.71-11.68c1.785-.62 4.445-1.24 7.875-1.855 3.425-.66 7.11-.95 11.045-.95zm281.51 51.285c4.375 0 7.615-.255 9.875-.695v-14.48c-.8-.22-1.93-.475-3.425-.695a33.813 33.813 0 0 0-4.96-.365c-1.565 0-3.17.11-4.775.365-1.6.22-3.06.655-4.335 1.275-1.28.62-2.335 1.495-3.1 2.62-.805 1.13-1.165 1.785-1.165 3.495 0 3.345 1.165 5.28 3.28 6.55 2.15 1.31 4.995 1.93 8.605 1.93zm-1.205-51.645c4.7 0 8.674.58 11.884 1.745 3.205 1.165 5.795 2.8 7.69 4.875 1.895 2.075 3.245 4.915 4.045 7.9.84 2.985 1.24 6.26 1.24 9.865v36.615c-2.185.47-5.505 1.015-9.95 1.675-4.445.655-9.44.98-14.985.98-3.68 0-7.07-.365-10.094-1.055-3.065-.69-5.65-1.82-7.84-3.385-2.15-1.565-3.825-3.57-5.065-6.04-1.205-2.475-1.825-5.97-1.825-9.61 0-3.495.695-5.715 2.045-8.12 1.38-2.4 3.24-4.365 5.575-5.895 2.37-1.525 5.065-2.62 8.165-3.275 3.1-.655 6.345-.98 9.7-.98 1.565 0 3.205.11 4.955.29s3.575.51 5.54.985v-2.33c0-1.64-.18-3.205-.58-4.66a9.977 9.977 0 0 0-2.045-3.895c-.985-1.13-2.255-2.005-3.86-2.62-1.606-.62-3.65-1.09-6.09-1.09-3.28 0-6.27.4-9.005.87-2.735.475-4.995 1.02-6.71 1.64l-1.71-11.685c1.785-.62 4.445-1.235 7.875-1.855 3.425-.62 7.105-.945 11.045-.945zm-42.8-6.77c4.774 0 8.68-3.86 8.68-8.63 0-4.765-3.866-8.625-8.68-8.625-4.81 0-8.675 3.86-8.675 8.625 0 4.77 3.9 8.63 8.675 8.63zm7.18 70.425h-14.326v-61.44l14.325-2.255v63.695zm-25.116 0c-23.365.11-23.365-18.855-23.365-21.875l-.04-71.045 14.255-2.26v70.61c0 1.715 0 12.56 9.15 12.595v11.975zm-46.335-31.445c0-6.155-1.35-11.285-3.974-14.85-2.625-3.605-6.305-5.385-11.01-5.385-4.7 0-8.386 1.78-11.006 5.385-2.625 3.6-3.904 8.695-3.904 14.85 0 6.225 1.315 10.405 3.94 14.01 2.625 3.64 6.305 5.425 11.01 5.425 4.7 0 8.385-1.82 11.01-5.425 2.624-3.64 3.934-7.785 3.934-14.01zm14.58-.035c0 4.805-.69 8.44-2.114 12.41-1.42 3.965-3.425 7.35-6.01 10.155-2.59 2.8-5.69 4.985-9.336 6.515-3.644 1.525-9.26 2.4-12.065 2.4-2.81-.035-8.385-.835-11.995-2.4-3.61-1.565-6.71-3.715-9.295-6.515-2.59-2.805-4.594-6.19-6.054-10.155-1.456-3.97-2.185-7.605-2.185-12.41s.654-9.43 2.114-13.36c1.46-3.93 3.5-7.28 6.125-10.08 2.625-2.805 5.76-4.955 9.33-6.48 3.61-1.53 7.585-2.255 11.885-2.255 4.305 0 8.275.76 11.92 2.255 3.65 1.525 6.786 3.675 9.336 6.48 2.584 2.8 4.59 6.15 6.05 10.08 1.53 3.93 2.295 8.555 2.295 13.36zm-107.284 0c0 5.965 1.31 12.59 3.935 15.355 2.625 2.77 6.014 4.15 10.175 4.15 2.26 0 4.41-.325 6.414-.945 2.005-.62 3.606-1.35 4.886-2.22v-35.34c-1.02-.22-5.286-1.095-9.41-1.2-5.175-.15-9.11 1.965-11.88 5.345-2.736 3.39-4.12 9.32-4.12 14.855zm39.625 28.095c0 9.72-2.48 16.815-7.476 21.33-4.99 4.51-12.61 6.77-22.89 6.77-3.755 0-11.555-.73-17.79-2.11l2.295-11.285c5.215 1.09 12.105 1.385 15.715 1.385 5.72 0 9.805-1.165 12.245-3.495 2.445-2.33 3.645-5.785 3.645-10.375v-2.33c-1.42.69-3.28 1.385-5.575 2.115-2.295.69-4.955 1.055-7.95 1.055-3.935 0-7.51-.62-10.75-1.86-3.245-1.235-6.055-3.055-8.35-5.46-2.295-2.4-4.12-5.42-5.395-9.025-1.275-3.605-1.935-10.045-1.935-14.775 0-4.44.695-10.01 2.046-13.725 1.384-3.71 3.35-6.915 6.014-9.57 2.626-2.655 5.835-4.695 9.59-6.19 3.755-1.49 8.16-2.435 12.935-2.435 4.635 0 8.9.58 13.055 1.275 4.155.69 7.69 1.415 10.57 2.215v56.49z"})))),upsellLink:"https://yoa.st/get-algolia-integration"},woocommerce:{name:"WooCommerce",claim:c((0,a.sprintf)(/* translators: 1: bold open tag; 2: WooCommerce; 3: bold close tag. */ (0,a.__)("Upgrade your %1$s%2$s%3$s SEO","wordpress-seo"),"<strong>","WooCommerce","</strong>"),{strong:(0,d.jsx)("strong",{})}),learnMoreLink:"https://yoa.st/integrations-about-woocommerce",logoLink:"https://yoa.st/integrations-logo-woocommerce",slug:"woocommerce",description:(0,a.__)("Improve your technical SEO, meta tags and unlock more SEO ecommerce tools.","wordpress-seo"),isPremium:!1,isNew:!1,isMultisiteAvailable:!0,logo:ee,upsellLink:"https://yoa.st/integrations-get-woocommerce"},acf:{name:"ACF",claim:c((0,a.sprintf)(/* translators: 1: bold open tag; 2: ACF; 3: bold close tag. */ (0,a.__)("Integrate your custom fields and SEO data from %1$s%2$s%3$s","wordpress-seo"),"<strong>","ACF","</strong>"),{strong:(0,d.jsx)("strong",{})}),learnMoreLink:"https://yoa.st/integrations-about-acf",logoLink:"https://yoa.st/integrations-logo-acf",slug:"acf",description:(0,a.sprintf)(/* translators: 1: ACF */ -(0,a.__)("Use %s fields to power your meta tags and templates, and analyze all of your content.","wordpress-seo"),"ACF"),isPremium:!1,isNew:!1,isMultisiteAvailable:!0}},ie=[(0,d.jsx)(re,{integration:ne.elementor,isActive:g(ne.elementor)},0),(0,d.jsx)(re,{integration:ne.jetpack,isActive:g(ne.jetpack)},1),(0,d.jsx)(ae,{integration:ne.algolia,toggleLabel:(0,a.__)("Enable integration","wordpress-seo"),initialActivationState:g(ne.algolia),isNetworkControlEnabled:y(ne.algolia),isMultisiteAvailable:u(ne.algolia),beforeToggle:w,isPrerequisiteActive:Boolean(window.wpseoIntegrationsData.algolia_active)},2),(0,d.jsx)(te,{integration:ne.woocommerce,isActive:Boolean(window.wpseoIntegrationsData.woocommerce_seo_active),isInstalled:Boolean(window.wpseoIntegrationsData.woocommerce_seo_installed),isPrerequisiteActive:Boolean(window.wpseoIntegrationsData.woocommerce_active),upsellLink:window.wpseoIntegrationsData.woocommerce_seo_upsell_url,activationLink:window.wpseoIntegrationsData.woocommerce_seo_activate_url},3),(0,d.jsx)(oe,{integration:ne.acf,isActive:Boolean(window.wpseoIntegrationsData.acf_seo_active),isInstalled:Boolean(window.wpseoIntegrationsData.acf_seo_installed),isPrerequisiteActive:Boolean(window.wpseoIntegrationsData.acf_active),installationLink:window.wpseoIntegrationsData.acf_seo_install_url,activationLink:window.wpseoIntegrationsData.acf_seo_activate_url},4)];var le,ce,de,pe,he,me;function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},ge.apply(this,arguments)}function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},ye.apply(this,arguments)}function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},ue.apply(this,arguments)}x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));i().string.isRequired,x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),i().string.isRequired,i().string.isRequired,i().shape({src:i().string.isRequired,width:i().string,height:i().string}).isRequired,i().shape({value:i().bool.isRequired,status:i().string.isRequired,set:i().func.isRequired}).isRequired,i().string,i().string,i().string;const ve=({handleRefreshClick:e,supportLink:t})=>(0,d.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,d.jsx)(r.Button,{onClick:e,children:(0,a.__)("Refresh this page","wordpress-seo")}),(0,d.jsx)(r.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,a.__)("Contact support","wordpress-seo")})]});ve.propTypes={handleRefreshClick:i().func.isRequired,supportLink:i().string.isRequired};const fe=({handleRefreshClick:e,supportLink:t})=>(0,d.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,d.jsx)(r.Button,{className:"yst-order-last",onClick:e,children:(0,a.__)("Refresh this page","wordpress-seo")}),(0,d.jsx)(r.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,a.__)("Contact support","wordpress-seo")})]});fe.propTypes={handleRefreshClick:i().func.isRequired,supportLink:i().string.isRequired};const we=({error:e,children:t=null})=>(0,d.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,d.jsx)(r.Title,{children:(0,a.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,d.jsx)("p",{children:(0,a.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,d.jsx)(r.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,a.__)("Undefined error message.","wordpress-seo")}),(0,d.jsx)("p",{children:(0,a.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});we.propTypes={error:i().object.isRequired,children:i().node},we.VerticalButtons=fe,we.HorizontalButtons=ve;i().string,i().node.isRequired,i().node.isRequired,i().node,i().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const xe=window.ReactDOM;var _e,be,je;(be=_e||(_e={})).Pop="POP",be.Push="PUSH",be.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(je||(je={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const Ee=["post","put","patch","delete"],Me=(new Set(Ee),["get",...Ee]);new Set(Me),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),x.Component,x.startTransition,new Promise((()=>{})),x.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var ke,Pe,ze,Ne;new Map,x.startTransition,xe.flushSync,x.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(Ne=ke||(ke={})).UseScrollRestoration="useScrollRestoration",Ne.UseSubmit="useSubmit",Ne.UseSubmitFetcher="useSubmitFetcher",Ne.UseFetcher="useFetcher",Ne.useViewTransitionState="useViewTransitionState",(ze=Pe||(Pe={})).UseFetcher="useFetcher",ze.UseFetchers="useFetchers",ze.UseScrollRestoration="useScrollRestoration",i().string.isRequired,i().string;const Re=({href:e,children:t=null,...s})=>(0,d.jsxs)(r.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,d.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,a.__)("(Opens in a new browser tab)","wordpress-seo")})]});Re.propTypes={href:i().string.isRequired,children:i().node};x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),(0,a.__)("AI tools included","wordpress-seo"),(0,a.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ -(0,a.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,a.__)("24/7 support","wordpress-seo"),(0,a.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,a.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,a.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,a.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,a.__)("Internal links and redirect management, easy","wordpress-seo"),(0,a.__)("Access to friendly help when you need it, day or night","wordpress-seo");var Te=s(4184),Ce=s.n(Te);i().string.isRequired,i().object.isRequired,i().func.isRequired,x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),i().string.isRequired,i().object,i().func.isRequired,i().bool.isRequired,i().string.isRequired,i().object.isRequired,i().string.isRequired,i().func.isRequired,i().bool.isRequired;const Se=x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),Le=({isOpen:t,onClose:s=e.noop,onDiscard:o=e.noop,title:n,description:i,dismissLabel:l,discardLabel:c})=>{const p=(0,r.useSvgAria)();return(0,d.jsx)(r.Modal,{isOpen:t,onClose:s,children:(0,d.jsxs)(r.Modal.Panel,{closeButtonScreenReaderText:(0,a.__)("Close","wordpress-seo"),children:[(0,d.jsxs)("div",{className:"sm:yst-flex sm:yst-items-start",children:[(0,d.jsx)("div",{className:"yst-mx-auto yst-flex-shrink-0 yst-flex yst-items-center yst-justify-center yst-h-12 yst-w-12 yst-rounded-full yst-bg-red-100 sm:yst-mx-0 sm:yst-h-10 sm:yst-w-10",children:(0,d.jsx)(Se,{className:"yst-h-6 yst-w-6 yst-text-red-600",...p})}),(0,d.jsxs)("div",{className:"yst-mt-3 yst-text-center sm:yst-mt-0 sm:yst-ms-4 sm:yst-text-start",children:[(0,d.jsx)(r.Modal.Title,{className:"yst-text-lg yst-leading-6 yst-font-medium yst-text-slate-900 yst-mb-3",children:n}),(0,d.jsx)(r.Modal.Description,{className:"yst-text-sm yst-text-slate-500",children:i})]})]}),(0,d.jsxs)("div",{className:"yst-flex yst-flex-col sm:yst-flex-row-reverse yst-gap-3 yst-mt-6",children:[(0,d.jsx)(r.Button,{type:"button",variant:"error",onClick:o,className:"yst-block",children:c}),(0,d.jsx)(r.Button,{type:"button",variant:"secondary",onClick:s,className:"yst-block",children:l})]})]})})};Le.propTypes={isOpen:i().bool.isRequired,onClose:i().func,onDiscard:i().func,title:i().string.isRequired,description:i().string.isRequired,dismissLabel:i().string.isRequired,discardLabel:i().string.isRequired};window.yoast.reactHelmet;var Ze,Oe,Ae,qe,Ve,$e,Be,Ie,Fe,He,Ue,De,Ge,Ye,We,Ke,Je,Xe,Qe,et,tt,st,ot,rt,at,nt,it,lt,ct,dt,pt,ht,mt,gt,yt,ut,vt,ft,wt,xt,_t,bt,jt,Et,Mt,kt,Pt,zt,Nt,Rt,Tt,Ct,St,Lt,Zt,Ot,At,qt,Vt,$t,Bt,It,Ft,Ht,Ut,Dt,Gt,Yt,Wt;function Kt(){return Kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},Kt.apply(this,arguments)}i().string.isRequired,i().shape({src:i().string.isRequired,width:i().string,height:i().string}).isRequired,i().shape({value:i().bool.isRequired,status:i().string.isRequired,set:i().func.isRequired}).isRequired,i().bool;const Jt=e=>x.createElement("svg",Kt({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none",viewBox:"0 0 252 60"},e),Ze||(Ze=x.createElement("linearGradient",{id:"yoast-connect-google-site-kit_svg__a"},x.createElement("stop",{offset:0,stopColor:"#570732"}),x.createElement("stop",{offset:.04,stopColor:"#610b39"}),x.createElement("stop",{offset:.15,stopColor:"#79164b"}),x.createElement("stop",{offset:.29,stopColor:"#8c1e59"}),x.createElement("stop",{offset:.44,stopColor:"#9a2463"}),x.createElement("stop",{offset:.63,stopColor:"#a22768"}),x.createElement("stop",{offset:1,stopColor:"#a4286a"}))),Oe||(Oe=x.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__b",x1:49.556,x2:49.556,y1:36.267,y2:23.152,gradientUnits:"userSpaceOnUse"})),Ae||(Ae=x.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__c",x1:82.801,x2:82.801,y1:38.819,y2:20.113,gradientUnits:"userSpaceOnUse"})),qe||(qe=x.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__d",x1:62.504,x2:62.504,y1:36.222,y2:23.113,gradientUnits:"userSpaceOnUse"})),Ve||(Ve=x.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__e",x1:73.951,x2:73.951,y1:36.276,y2:23.046,gradientUnits:"userSpaceOnUse"})),$e||($e=x.createElement("linearGradient",{id:"yoast-connect-google-site-kit_svg__f",x1:25.237,x2:25.237,y1:16.169,y2:36.914,gradientUnits:"userSpaceOnUse"},x.createElement("stop",{offset:0,stopColor:"#77b227"}),x.createElement("stop",{offset:.47,stopColor:"#75b027"}),x.createElement("stop",{offset:.64,stopColor:"#6eab27"}),x.createElement("stop",{offset:.75,stopColor:"#63a027"}),x.createElement("stop",{offset:.85,stopColor:"#529228"}),x.createElement("stop",{offset:.93,stopColor:"#3c8028"}),x.createElement("stop",{offset:1,stopColor:"#246b29"}))),Be||(Be=x.createElement("clipPath",{id:"yoast-connect-google-site-kit_svg__g"},x.createElement("path",{d:"M169.334 22h14.973v15.909h-14.973z"}))),Ie||(Ie=x.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__b)",fillRule:"evenodd",d:"M36.765 29.643c0-3.42 1.83-6.49 6.405-6.49 4.402 0 6.375 2.8 6.386 6.698.008 3.2-1.785 6.416-6.386 6.416-4.602 0-6.405-3.072-6.405-6.624zm8.432-2.74c-1.174-1.64-4.688-1.64-4.8 2.932.046 2.582 1.245 3.614 2.773 3.63 3.316.039 3.092-5.067 2.027-6.562z",clipRule:"evenodd"})),Fe||(Fe=x.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__c)",d:"M80.278 33.094v-6.631h2.368v-2.874h-2.368v-3.476h-3.66v3.476h-1.856v2.876h1.857v6.258c0 3.553 2.477 5.665 5.092 6.102l1.092-2.948c-1.524-.194-2.51-1.333-2.525-2.783z"})),He||(He=x.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__d)",fillRule:"evenodd",d:"M61.81 27.062v4.981c0 .7.196 1.67.426 2.803.088.436.182.897.27 1.376h-3.523l-.611-1.472c-4.118 2.994-8.053.974-8.053-2.168 0-4.131 4.01-4.632 7.777-4.632l.003-.249c.01-.465.02-.985-.24-1.336v-.007l-.034-.04-.011-.013c-.602-.675-2.327-1.028-5.21.341l-1.283-2.575c4.428-1.546 10.143-1.555 10.46 2.47.019.174.028.347.03.52zm-6.52 3.81c-2.718 1.331-.064 4.384 2.835 1.14v-1.425c-.949 0-2.035.012-2.835.284z",clipRule:"evenodd"})),Ue||(Ue=x.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__e)",d:"M67.439 26.794c0-1.227 1.966-1.8 5.064-.386l1.072-2.605c-4.17-1.262-9.866-1.371-9.904 2.991-.017 2.091 1.324 3.216 3.255 3.934 1.337.497 3.268.754 3.262 1.82-.007 1.391-3 1.604-5.725-.268l-1.101 2.823c3.716 1.85 10.627 1.902 10.59-2.734-.03-4.583-6.513-3.798-6.513-5.575z"})),De||(De=x.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__f)",d:"m35.218 16.875-5.305 14.734-2.54-7.956h-3.779l4.23 10.866a3.956 3.956 0 0 1 0 2.877c-.474 1.213-1.26 2.25-3.177 2.508v3.221c3.734 0 5.753-2.295 7.554-7.326l7.06-18.924z"})),Ge||(Ge=x.createElement("path",{fill:"#f0ecf0",d:"M124.088 57.357c15.427 0 27.934-12.506 27.934-27.933S139.515 1.49 124.088 1.49 96.155 13.997 96.155 29.424s12.506 27.933 27.933 27.933z"})),Ye||(Ye=x.createElement("path",{fill:"#9e005d",d:"M122.68 23.422c5.075-5.662 3.282-.196 13.081-2.26 2.792-.587 7.802-1.905 9.067.833 1.427 3.092 4.014 3.471 3.211 5.47-1.412 3.512-6.46 4.52-7.887.556-1.819-1.232-8.98 2.24-11.167 2.775-.813.198-.868-2.038-1.675-2.168-.529-.085-.462-.17-.939-.575-4.613-3.918-4.904-3.277-5.22-4.126.482-.115.95-.396 1.531-.503z"})),We||(We=x.createElement("path",{fill:"#6c2548",d:"M145.465 25.27c-1.744-.556-3.859.788-3.015 2.668.204.456 1.233 2.392 1.665 2.536 1.633.552 5.651-2.227 1.35-5.204z"})),Ke||(Ke=x.createElement("path",{fill:"#ffc399",d:"M145.972 26.652c-.452-.226-2.526.313-2.3 1.188.281 1.084.758 1.655 1.395 1.998 1.627.875 1.365 2.531 3.684 2.5 1.12-.015 4.022-1.557 4.118-.456.157 1.823.464 3.564.792 3.17.792-.951 1.109-1.03 1.188-4.2.021-.887-2.14-1.506-3.013-2.854-.473-.733-2.932-.714-5.866-1.348z"})),Je||(Je=x.createElement("path",{fill:"#be1e2d",d:"M109.348 16.345c-2.102-1.797-8.454 4.23-7.974 6.137.479-.51 1.186-1.505 1.973-1.316-2.719 1.838-3.191 6.484-1.784 9.259.158-.735.439-1.525.897-2.123-.778 3.037.466 8.256 4.271 10.873-.26-1.915-1.201-5.028.477-6.267 2.485-1.836 5.651-2.398 7.153-5.43 3.716-7.506-7.675-12.913-5.013-11.135z"})),Xe||(Xe=x.createElement("path",{fill:"#9e005d",d:"M111.503 27.227c-1.65.136-7.152 11.633.475 20.362 1.067 1.222 2.372 3.568 3.92 3.78 3.256.442 11.848-1.813 15.059-3.189 12.146-5.202 1.267-10.842-.308-16.792-1.421-5.366-1.725-8.762-7.928-8.997-2.92-.11-11.15 1.768-11.95 5.058-.224.108-.109-.08.732-.224z"})),Qe||(Qe=x.createElement("path",{fill:"#6c2548",d:"M123.196 23.817c3.828 1.233 6.256 5.375 7.755 8.771-1.38-4.316-2.059-8.262-7.932-8.95-.013-.072.419-.694.177.18z"})),et||(et=x.createElement("path",{fill:"#6c2548",d:"M127.718 23.362c1.071.893 1.961 2.794 2.438 3.984.522 1.306.088 3.329.571 4.638-1.292-3.232-1.307-5.14-3.007-8.622z"})),tt||(tt=x.createElement("path",{fill:"#ffc399",d:"M125.772 33.468c-1.058.375-2.898.677-4.103 1.248-2.187 1.037-4.936-1.725-7.313-1.188-.858.194-3.845-.873-4.082-1.942-.293-1.325-.745-1.352-.078-2.22 2.619-3.402 2.815-1.566 2.932-6.896.019-.886-.2-1.312.079-2.061.279-.75.21.017 1.09-.143.879-.16 2.996-1.05 3.869-.652 1.533.699.513 3.972 1.61 5.107 1.139 1.177 3.841-.028 4.989 1.128 1.439 1.45 1.324 6.848 1.005 7.621z"})),st||(st=x.createElement("path",{fill:"#e57c57",d:"M123.021 27.88c.285-.57.221-1.564-.026-2.586-1.175-.034-2.504.164-3.217-.575-.65-.671-.558-2.085-.692-3.277a3.502 3.502 0 0 1-.607-.122c-1.263-.372-2.67-.835-4.069-1.077-.039.008-.077.017-.111.023-.405.075-.605-.057-.733-.143l-.213-.017c-.04.05-.085.141-.144.303-.271.728-.073 1.156-.079 1.995 1.386 3.614 6.644 11.98 9.895 5.477z"})),ot||(ot=x.createElement("path",{fill:"#f1f2f2",d:"M116.06 33.648c7.293 3.488 11.969 5.47 13.635 9.989-1.031-4.757-.893-8.622-4.459-15.161.675 7.425-8.761 5.37-9.176 5.172z"})),rt||(rt=x.createElement("path",{fill:"#6c2548",d:"M129.697 43.002c.157-3.884-1.057-18.564-4.44-20.057-1.056-.466-10.726 1.174-7.768 1.348 4.625.27 7.293 2.775 7.928 4.28.792 1.11 3.081 8.599 4.28 14.427z"})),at||(at=x.createElement("path",{fill:"#9e005d",d:"M129.616 43.001c.157-3.884-1.93-18.723-5.311-20.214-1.056-.467-9.776 1.333-6.819 1.505 4.626.27 7.294 2.775 7.928 4.28.792 1.11 3.003 8.599 4.202 14.427z"})),nt||(nt=x.createElement("path",{fill:"#ffc399",d:"M126.288 12.877c.555 2.457-.397 1.902.078 3.488.375 1.25.729 2.066.635 3.488-.241 3.656-2.983 6.876-3.086 6.978-1.45 1.45-3.132 1.295-5.476.077-4.364-2.266-6.898-4.994-7.532-11.823-.471-5.072 3.763-8.847 9.014-8.313 3.249.332 5.449 2.04 6.367 6.103z"})),it||(it=x.createElement("path",{fill:"#be1e2d",d:"M114.461 9.389c3.944-.179 3.02 1.925 6.539 2.973 2.794.832 5.707-1.012 5.173 3.745-.475 4.212 9.401-4.116 1.46-7.591-1.269-.556-1.137-1.414-2.378-3.013-2.598-3.343-11.337-7.055-15.061-.873-.944 1.567 2.657 4.101 4.265 4.757z"})),lt||(lt=x.createElement("path",{fill:"#be1e2d",d:"M114.282 9.508c.912 3.597-.161 4.23-.653 5.47-.541 1.364-.803 2.65-1.487 3.925-.992-2.07-2.184-.317-5.276-4.36-5.537-7.24 9.782-16.915 7.416-5.035z"})),ct||(ct=x.createElement("path",{fill:"#ffc399",d:"M112.336 19.497c.617-1.633-4.029-4.43-3.599-1.043.209 1.642 1.516 2.574 2.913 3.152 2.294.945 1.195-1.676.569-3.058l.119.952z"})),dt||(dt=x.createElement("path",{fill:"#be1e2d",d:"M113.168 14.026c.309 1.25-.03 6.814 1.785 8.997-3.152-1.714-2.37-5.13-1.785-8.997z"})),pt||(pt=x.createElement("path",{fill:"#be1e2d",d:"M112.691 15.573c-.728.415-1.441 3.388-.323 5.705.006-.021.483-4.91.323-5.705z"})),ht||(ht=x.createElement("path",{fill:"#9e005d",d:"M117.012 34.121c-2.877-1.74-5.509-2.068-4.725-7.2.867-1.004.747-1.897.807-3.383-1.109.396-4.086 1.948-5.434 2.655-1.985 1.04-4.361 3.41-2.458 5.39.703.73-1.758 1.923.937 6.759 1.506-2.617 2.711-4.855 3.661-4.934 3.33-.079 4.431 1.667 7.372 2.378 7.214 1.744 11.654 6.501 12.525 8.164.036-1.051-1.269-4.914-12.683-9.829z"})),mt||(mt=x.createElement("path",{fill:"#9e005d",d:"M108.45 34.202c-8.258 11.429 2.709 12.432 5.351 22.998.119.48.656 1.17 1.503 1.322 5.051.903 10.884-1.744 15.862-6.92 1.408-1.463.247-4.902-1.546-5.648-2.319-1.546-7.378 4.023-13.006 2.992-.677-1.02-1.505-13.477-8.164-14.744z"})),gt||(gt=x.createElement("path",{fill:"#a0c9cb",d:"m155.213 40.425-.27 9.99-6.399-1.368-.094-9.712z"})),yt||(yt=x.createElement("path",{fill:"#75b0b3",d:"m155.48 50.235-.509.238c.085-11.096-.171-10.3.509-10.166v9.93z"})),ut||(ut=x.createElement("path",{fill:"#66a7ab",d:"M150.965 40.959c2.473.277 3.211 6.54 2.498 9.037-.119-.12-3.567-.833-3.686-.713-1.718-1.964-.992-8.57 1.188-8.324z"})),vt||(vt=x.createElement("path",{fill:"#467d7f",d:"M154.983 40.783s.153-1.902 0-2.02c-.153-.12-6.641-.655-6.641-.655-.776 1.706-.431 1.282 6.641 2.675z"})),ft||(ft=x.createElement("path",{fill:"#67a8ac",d:"m152.371 30.436 2.881 8.443-6.729-1.15-3.307-9.016z"})),wt||(wt=x.createElement("path",{fill:"#55989b",d:"m152.988 32.518.101.02-.716-2.1-7.155-1.725.656 1.786z"})),xt||(xt=x.createElement("path",{fill:"#519093",d:"m148.766 37.79-1.127.713-2.679-8.541 1.25-.893z"})),_t||(_t=x.createElement("path",{fill:"#b1d3d4",d:"m152.794 30.08-.922 1.069-6.552-1.01.869-1.011z"})),bt||(bt=x.createElement("path",{fill:"#a0c9cb",d:"M155.648 39.988c0 1.052-1.046 1.052-1.046 0s1.046-1.052 1.046 0z"})),jt||(jt=x.createElement("path",{fill:"#a0c9cb",d:"M147.639 38.502c1.501-.95.058-.881 7.713.317-1.38 1.189-.053 1.07-7.713-.317z"})),Et||(Et=x.createElement("path",{fill:"#75b0b3",d:"m155.354 38.879-1.037.832-2.444-8.681.922-1.07z"})),Mt||(Mt=x.createElement("path",{fill:"#6b1523",d:"M117.374 55.11c1.071-.299.06-1.962.713-4.862-1.972 4.042-1.699 5.134-.713 4.862z"})),kt||(kt=x.createElement("path",{fill:"#6b1523",d:"M119.989 48.095c.059-.594-2.913-8.918-9.097-9.276 3.448.12 10.494 9.176 8.452 9.395-1.853.535-6.076 2.32-4.41 3.925 1.307.773 1.605-3.152 4.627-3.895 4.567.882 7.438-3.94 10.415-1.874-2.809-3.503-5.362 2.14-9.989 1.725z"})),Pt||(Pt=x.createElement("path",{fill:"#6c2548",d:"M127.793 46.647c.309-.639 1.427-.396 2.336-1.56.449-.576.948-.203 1.687-.222 1.541-.043 2.544 2.996 1.737 4.15-.445.635-2.745 1.297-3.62 1.518-1.771.445-3.511-3.036-2.14-3.884z"})),zt||(zt=x.createElement("path",{fill:"#c44c31",d:"M123.081 15.099c-.993 1.109 1.35 4.64.988 6.262-.284 1.27-1.827.705-2.617-.157.694.027 1.78.445 1.982.078.76-1.384-1.539-4.914-.353-6.183z"})),Nt||(Nt=x.createElement("path",{fill:"#be1e2d",d:"M124.031 23.074c-2.5.504-4.483.504-5.69-.194.579.55 1.976 1.906 3.268 1.887 1.293-.02 1.235-.569 1.355-1.11.076-.206.528-.326 1.064-.586z"})),Rt||(Rt=x.createElement("path",{fill:"#e57c57",d:"M117.389 23.045c0-.616.545-.83 1.075-.93-.441.295-.092.88-.098.904-.481-.272-.62-.174-.977.026z"})),Tt||(Tt=x.createElement("path",{fill:"#35602c",d:"m150.614 40.5-2.973-.396.428 8.839 2.736-.024c2.241-.23 2.479-8.077-.191-8.42z"})),Ct||(Ct=x.createElement("path",{fill:"#569d48",d:"M149.867 44.427c.285 5.88-3.738 6.075-4.023.194-.285-5.88 3.737-6.075 4.023-.194z"})),St||(St=x.createElement("path",{fill:"#e57c57",d:"M136.434 42.288c5.055-.658 5.866-2.932 6.341-1.11.315.786-1.069 1.442-1.903 1.755-.443.164-1.044-.055-1.551-.104-1.12-.109-1.822.562-2.885.65-.123-.631.296-1.046 0-1.189z"})),Lt||(Lt=x.createElement("path",{fill:"#35602c",d:"M139.873 43.184c.168-.905 5.647-1.784 7.051-1.867 1.803-.107 2.161 6.066.475 6.184-2.362.164-4.487.357-6.872-.392-1.388-.435-1.904-.588-1.927-2.106-.017-1.12.749-2.068 1.273-1.819z"})),Zt||(Zt=x.createElement("g",{fill:"#ffc399"},x.createElement("path",{d:"M131.123 45.597c3.759-1.073 7.006-4.783 7.689-4.023 1.091 1.212-.543 2.16-1.06 3.489-.698 1.797 1.054-.037-.403 1.784-.634.792-1.961.179-2.793.179-.556.157-1.863 1.328-2.498 1.486-1.031-.158-2.364-2.042-.937-2.913z"}),x.createElement("path",{d:"M138.898 41.243c3.239.682 4.923-.098 5.189 1.152.181.856 1.606 3.358 1.559 4.323-1.725.462-2.504-2.683-3.13-3.156-.426-.321-2.909.188-3.733.077-.824-.111-1.378-2.191.115-2.396z"}),x.createElement("path",{d:"M141.004 43.042c.573 1.983 2.144 3.145 1.51 3.79-.848.863-1.691 1.404-2.013 1.263-1.976-.87.322-1.169-.004-1.496-.326-.328-1.995-2.12-2.34-2.198.24-.924-.094-1.263-.303-2.212.211.07 2.865.35 3.152.853z"}),x.createElement("path",{d:"M137.707 42.446c.958-.115 1.457 1.48 1.546 1.784.166.567 1.348 1.806 1.427 2.379.179 1.277-1.071 1.188-1.755 1.456-.564.298-1.991-.743-.683-1.576-.935-.019-3.073-1.497-2.694-2.016.241-.004 1.148-2.383 2.157-2.025z"}),x.createElement("path",{d:"M137.599 43.08c.556 1.11 1.03 3.964.873 4.28-.271.544-.865 1.07-1.51 1.34s-1.026-.943-1.978-1.893c.792-.713 1.691-.128 1.665.239-.03.438.079-.318.396-.239-.238-.317-.884-1.365-1.188-1.982-.434-.88.635-2.536 1.744-1.744zM143.91 28.315c.475 1.744-.187 2.5-.238 3.092-.085.99.758 1.205 1.348 1.901.873 1.031.792 2.22 1.505 2.775 1.983-.873.015-3.264-.193-3.786-.158-.396.034-2.875 2.016-3.032-1.348-1.665-3.249-2.22-4.44-.952z"}))),Ot||(Ot=x.createElement("path",{fill:"#6b1523",d:"M112.653 25.483c-1.903.93-5.883 2.474-6.737 4.518-.599 1.431 5.707 1.11 13.081 5.31-3.805-2.774-9.996-4.01-10.307-4.992-.106-.335 2.715-4.87 3.963-4.836zM105.279 31.507c.839 1.118 2.3 1.11 4.202 1.586-.878-.434-4.779.837-4.361 0 .157-.317-.167-.875.157-1.586z"})),At||(At=x.createElement("path",{fill:"#f1f2f2",d:"M116.341 17.639c.007-.03.462-.848 2.206-1.014.678-.064 1.896.509 1.795 1.169-1.007.43-1.888.675-4.001-.155z"})),qt||(qt=x.createElement("path",{fill:"#231f20",d:"M120.347 17.688c-.062-.337-.441-.754-.918-.767-.526-.015-1.035.55-1.044.897-.004.153.086.276.224.37.684.015 1.19-.162 1.733-.394a.422.422 0 0 0 .005-.106z"})),Vt||(Vt=x.createElement("path",{fill:"#231f20",d:"M120.368 17.667c-.102-.768-1.512-1.3-2.404-1.303-1.244 0-1.491 1.171-2.272.735.177.703 1.141.928 1.801.933-2.327-.695 2.14-2.302 2.875-.365z"})),$t||($t=x.createElement("path",{fill:"#f1f2f2",d:"M123.27 17.549c.977.332 2.076-.19 2.44-.741.592-.899-1.629-2.066-2.44.74z"})),Bt||(Bt=x.createElement("path",{fill:"#231f20",d:"M124.226 17.238a.33.33 0 0 0 .122.373c.604-.115 1.132-.452 1.365-.803a.576.576 0 0 0 .093-.245c-.323-.585-1.245-.539-1.58.675z"})),It||(It=x.createElement("path",{fill:"#231f20",d:"M123.249 17.568c.092-.724.417-1.478 1.329-1.887 1.175-.528 1.537.92 1.938-.268-.147 1.467-.592 1.476-1.523 1.987 1.022-.356.958-1.906-.373-1.403-1.062.402-1.196 1.152-1.369 1.571z"})),Ft||(Ft=x.createElement("path",{fill:"#be1e2d",d:"M126.024 14.621c.517.586-.337-.17-1.304-.06-.321.039-.841.352-1.122.365.554-1.076 1.663-1.17 2.426-.305zM119.708 14.939c-3.103-.776-3.531.176-4.685 1.79 2.238-2.446 3.518-.587 5.132-1.94-.245.024-.473.103-.447.15z"})),Ht||(Ht=x.createElement("path",{fill:"#6b1523",d:"M106.375 37.808c.416-1.427 1.651-3.48 2.315-3.607 4.108-.792 14.097 5.034 17.246 5.866-5.053-1.248-12.544-5.41-17.122-4.876-.586.192-2.081 1.901-2.439 2.617z"})),Ut||(Ut=x.createElement("path",{fill:"#642243",d:"M140.501 28.713c-.421-1.256-1.179-2.587-.805-4.042.379-1.475 2.232-2.05 2.815-3.43-1.65-.713-1.58 1.923-2.468 2.349-.038-.782-.142-1.516-.129-2.324-1.54 2.028-.703 4.913.589 7.45zM127.184 21.222c7.849.713 7.253 7.135 12.485 6.303-5.471 1.426-7.017-6.303-12.485-6.303z"})),Dt||(Dt=x.createElement("path",{fill:"#c44c31",d:"M120.525 19.497c0 .236-.594.236-.594 0s.594-.237.594 0zM118.622 19.852c0 .236-.358.236-.358 0s.358-.236.358 0zM124.39 19.02c0 .316-.474.316-.474 0 0-.315.474-.315.474 0zM125.28 19.972c0 .237-.475.237-.475 0s.475-.236.475 0zM125.638 18.784c0 .236-.474.236-.474 0 0-.237.474-.237.474 0zM120.406 20.685c0 .236-.475.236-.475 0s.475-.236.475 0z"})),Gt||(Gt=x.createElement("path",{fill:"#569d48",d:"M136.975 46.802c-.364-.268-.53-.656-.498-1.16-4.862.762-12.996 10.236-26.102 8.07.919.613 1.743 1.082 2.706 1.382 10.638 1.337 19.676-7.331 23.896-8.292z"})),Yt||(Yt=x.createElement("path",{fill:"#5f6368",d:"M238.632 23.565h2.267v.074l-5.066 5.844 5.405 7.63v.075h-2.151l-4.437-6.357-2.094 2.419v3.94h-1.754V23.564h1.754v7.027h.074zm5.892 1.084c0 .339-.124.637-.364.877s-.529.364-.877.364c-.34 0-.638-.124-.877-.364a1.198 1.198 0 0 1-.365-.877c0-.348.124-.637.365-.878.239-.24.53-.364.877-.364.339 0 .637.124.877.364.248.249.364.538.364.878zm-.355 3.22v9.327h-1.755v-9.328zm5.604 9.477c-.762 0-1.392-.232-1.896-.704-.505-.472-.762-1.126-.77-1.962v-5.215h-1.639v-1.597h1.639v-2.856h1.754v2.856h2.285v1.597h-2.284v4.644c0 .62.124 1.043.364 1.266.24.224.513.332.819.332.141 0 .273-.017.414-.05a2.19 2.19 0 0 0 .373-.124l.554 1.564c-.471.166-1.001.249-1.613.249zm-55.489-.878c-.969-.704-1.631-1.697-1.995-2.972l2.151-.878c.216.803.597 1.448 1.151 1.962.547.505 1.209.761 1.978.761.721 0 1.324-.182 1.829-.554.505-.373.754-.886.754-1.531 0-.596-.224-1.085-.662-1.474-.439-.389-1.209-.778-2.31-1.167l-.91-.323c-.977-.338-1.796-.827-2.459-1.464-.662-.637-.992-1.473-.992-2.515 0-.721.198-1.383.587-1.995.389-.613.935-1.093 1.639-1.458.695-.355 1.482-.538 2.367-.538 1.275 0 2.293.306 3.046.927.761.621 1.266 1.308 1.522 2.087l-2.051.868c-.15-.464-.43-.87-.853-1.217-.421-.356-.96-.53-1.622-.53s-1.224.166-1.68.505c-.455.34-.679.77-.679 1.3 0 .504.207.91.612 1.241.406.323 1.043.638 1.913.935l.911.306c1.249.431 2.209 1.002 2.896 1.698.687.695 1.027 1.63 1.027 2.797 0 .952-.241 1.747-.729 2.383a4.482 4.482 0 0 1-1.862 1.433 5.981 5.981 0 0 1-2.326.463c-1.209 0-2.293-.348-3.253-1.05zm9.924-11.571a1.45 1.45 0 0 1-.439-1.067c0-.423.149-.779.439-1.069a1.444 1.444 0 0 1 1.067-.439c.422 0 .778.15 1.067.44.291.289.439.645.439 1.067 0 .422-.149.778-.438 1.067a1.455 1.455 0 0 1-1.067.44c-.423-.01-.779-.15-1.068-.44zm-.05 1.937h2.234v10.362h-2.234zm7.093 10.304a2.898 2.898 0 0 1-.993-.588c-.579-.579-.878-1.373-.878-2.375v-5.372h-1.812v-1.97h1.812v-2.92h2.235v2.93h2.517v1.97h-2.517v4.874c0 .555.108.952.323 1.176.207.273.555.405 1.06.405.231 0 .43-.033.612-.091.174-.058.364-.157.571-.298v2.177c-.447.207-.985.306-1.622.306a3.735 3.735 0 0 1-1.308-.224zm6.133-.33a4.946 4.946 0 0 1-1.887-1.962c-.455-.836-.679-1.771-.679-2.814 0-.994.224-1.904.662-2.756.439-.845 1.052-1.523 1.838-2.02s1.68-.754 2.682-.754c1.043 0 1.945.232 2.714.688a4.572 4.572 0 0 1 1.747 1.887c.397.803.596 1.697.596 2.707 0 .19-.017.43-.058.711h-7.946c.083.96.423 1.706 1.026 2.227.58.512 1.33.79 2.103.778.637 0 1.192-.141 1.655-.439a3.185 3.185 0 0 0 1.126-1.192l1.887.894c-.488.853-1.126 1.523-1.912 2.011-.786.489-1.73.729-2.823.729-1.018.016-1.927-.215-2.731-.695zm5.397-6.01a2.497 2.497 0 0 0-.348-1.084 2.486 2.486 0 0 0-.927-.902c-.413-.24-.918-.364-1.515-.364-.72 0-1.324.215-1.821.637-.496.422-.836 1.001-1.026 1.714z"})),Wt||(Wt=x.createElement("g",{fillRule:"evenodd",clipPath:"url(#yoast-connect-google-site-kit_svg__g)",clipRule:"evenodd"},x.createElement("path",{fill:"#fbbc05",d:"m170.119 26.56 2.576 1.97a4.563 4.563 0 0 0 0 2.85l-2.576 1.97a7.667 7.667 0 0 1-.785-3.395c0-1.22.283-2.373.785-3.394z"}),x.createElement("path",{fill:"#ea4335",d:"m172.696 28.53-2.577-1.97a7.64 7.64 0 0 1 6.877-4.266c1.95 0 3.691.731 5.049 1.915l-2.229 2.229a4.428 4.428 0 0 0-2.82-1.01 4.518 4.518 0 0 0-4.3 3.103z"}),x.createElement("path",{fill:"#34a853",d:"m170.118 33.347 2.576-1.975a4.514 4.514 0 0 0 4.301 3.11c2.124 0 3.726-1.08 4.109-2.96h-4.109v-2.96h7.139c.104.452.174.94.174 1.392 0 4.875-3.482 7.661-7.313 7.661a7.637 7.637 0 0 1-6.877-4.268z"}),x.createElement("path",{fill:"#4285f4",d:"m181.988 35.707-2.446-1.893c.8-.505 1.357-1.284 1.562-2.293h-4.109v-2.96h7.138c.105.453.175.94.175 1.393 0 2.497-.914 4.446-2.32 5.753z"})))),Xt=({isOpen:e,onClose:t,onGrantConsent:s=null,learnMoreLink:o=""})=>{const n=(0,r.useSvgAria)();return(0,d.jsx)(r.Modal,{isOpen:e,onClose:t,children:(0,d.jsxs)(r.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl",hasCloseButton:!1,children:[(0,d.jsx)(r.Modal.CloseButton,{className:"yst-bg-transparent yst-text-gray-500 focus:yst-ring-offset-0",onClick:t,screenReaderText:(0,a.__)("Close","wordpress-seo")}),(0,d.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-bg-gradient-to-b yst-from-primary-500/25 yst-to-[80%]",children:(0,d.jsx)(Jt,{className:"yst-aspect-video yst-max-w-[432px] yst-p-7 yst-bg-white yst-rounded-md yst-drop-shadow-md"})}),(0,d.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,d.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,d.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,a.__)("Grant consent to connect with Site Kit by Google","wordpress-seo")}),(0,d.jsxs)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:[(0,a.__)("Give us permission to access your Site Kit data, allowing insights from tools like Google Analytics and Search Console to be displayed directly on your dashboard.","wordpress-seo")," ",(0,d.jsxs)(Re,{className:"yst-no-underline yst-font-medium",variant:"primary",href:o,children:[(0,a.__)("Learn more","wordpress-seo"),(0,d.jsx)(M,{className:"yst-inline yst-h-4 yst-w-4 yst-ms-1 rtl:yst-rotate-180",...n})]})]})]}),(0,d.jsx)("div",{className:"yst-w-full yst-flex yst-mt-10",children:(0,d.jsx)(r.Button,{className:"yst-grow",size:"extra-large",variant:"primary",onClick:s||t,children:(0,a.__)("Grant consent","wordpress-seo")})}),(0,d.jsx)(r.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:t,children:(0,a.__)("Close","wordpress-seo")})]})]})})};Xt.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired,onGrantConsent:i().func,learnMoreLink:i().string},i().func.isRequired,i().string.isRequired,i().string.isRequired,i().string.isRequired,i().string.isRequired,window.yoast.dashboardFrontend,(0,a.__)("INSTALL","wordpress-seo"),(0,a.__)("ACTIVATE","wordpress-seo"),(0,a.__)("SET UP","wordpress-seo"),(0,a.__)("CONNECT","wordpress-seo");const Qt={install:0,activate:1,setup:2,grantConsent:3,successfullyConnected:-1},es=(e,t)=>[Qt.setup,Qt.grantConsent,Qt.successfullyConnected].includes(e)&&!t,ts={name:(0,a.__)("Site Kit by Google","wordpress-seo"),claim:c((0,a.sprintf)(/* translators: 1: bold open tag; 2: bold close tag. */ +(0,a.__)("Use %s fields to power your meta tags and templates, and analyze all of your content.","wordpress-seo"),"ACF"),isPremium:!1,isNew:!1,isMultisiteAvailable:!0}},ie=[(0,d.jsx)(re,{integration:ne.elementor,isActive:g(ne.elementor)},0),(0,d.jsx)(re,{integration:ne.jetpack,isActive:g(ne.jetpack)},1),(0,d.jsx)(ae,{integration:ne.algolia,toggleLabel:(0,a.__)("Enable integration","wordpress-seo"),initialActivationState:g(ne.algolia),isNetworkControlEnabled:y(ne.algolia),isMultisiteAvailable:u(ne.algolia),beforeToggle:f,isPrerequisiteActive:Boolean(window.wpseoIntegrationsData.algolia_active)},2),(0,d.jsx)(te,{integration:ne.woocommerce,isActive:Boolean(window.wpseoIntegrationsData.woocommerce_seo_active),isInstalled:Boolean(window.wpseoIntegrationsData.woocommerce_seo_installed),isPrerequisiteActive:Boolean(window.wpseoIntegrationsData.woocommerce_active),upsellLink:window.wpseoIntegrationsData.woocommerce_seo_upsell_url,activationLink:window.wpseoIntegrationsData.woocommerce_seo_activate_url},3),(0,d.jsx)(oe,{integration:ne.acf,isActive:Boolean(window.wpseoIntegrationsData.acf_seo_active),isInstalled:Boolean(window.wpseoIntegrationsData.acf_seo_installed),isPrerequisiteActive:Boolean(window.wpseoIntegrationsData.acf_active),installationLink:window.wpseoIntegrationsData.acf_seo_install_url,activationLink:window.wpseoIntegrationsData.acf_seo_activate_url},4)];var le,ce,de,pe,he,me;function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},ge.apply(this,arguments)}function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},ye.apply(this,arguments)}function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},ue.apply(this,arguments)}x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));i().string.isRequired;x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));i().string.isRequired,i().string.isRequired,i().shape({src:i().string.isRequired,width:i().string,height:i().string}).isRequired,i().shape({value:i().bool.isRequired,status:i().string.isRequired,set:i().func.isRequired}).isRequired,i().string,i().string,i().string;const ve=({handleRefreshClick:e,supportLink:t})=>(0,d.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,d.jsx)(r.Button,{onClick:e,children:(0,a.__)("Refresh this page","wordpress-seo")}),(0,d.jsx)(r.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,a.__)("Contact support","wordpress-seo")})]});ve.propTypes={handleRefreshClick:i().func.isRequired,supportLink:i().string.isRequired};const we=({handleRefreshClick:e,supportLink:t})=>(0,d.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,d.jsx)(r.Button,{className:"yst-order-last",onClick:e,children:(0,a.__)("Refresh this page","wordpress-seo")}),(0,d.jsx)(r.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,a.__)("Contact support","wordpress-seo")})]});we.propTypes={handleRefreshClick:i().func.isRequired,supportLink:i().string.isRequired};const fe=({error:e,children:t=null})=>(0,d.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,d.jsx)(r.Title,{children:(0,a.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,d.jsx)("p",{children:(0,a.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,d.jsx)(r.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,a.__)("Undefined error message.","wordpress-seo")}),(0,d.jsx)("p",{children:(0,a.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});fe.propTypes={error:i().object.isRequired,children:i().node},fe.VerticalButtons=we,fe.HorizontalButtons=ve;i().string,i().node.isRequired,i().node.isRequired,i().node,i().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const xe=window.ReactDOM;var _e,be,je;(be=_e||(_e={})).Pop="POP",be.Push="PUSH",be.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(je||(je={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const Ee=["post","put","patch","delete"],Me=(new Set(Ee),["get",...Ee]);new Set(Me),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),x.Component,x.startTransition,new Promise((()=>{})),x.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var ke,Pe,ze,Ne;new Map,x.startTransition,xe.flushSync,x.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(Ne=ke||(ke={})).UseScrollRestoration="useScrollRestoration",Ne.UseSubmit="useSubmit",Ne.UseSubmitFetcher="useSubmitFetcher",Ne.UseFetcher="useFetcher",Ne.useViewTransitionState="useViewTransitionState",(ze=Pe||(Pe={})).UseFetcher="useFetcher",ze.UseFetchers="useFetchers",ze.UseScrollRestoration="useScrollRestoration",i().string.isRequired,i().string;const Re=({href:e,children:t=null,...s})=>(0,d.jsxs)(r.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,d.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ +(0,a.__)("(Opens in a new browser tab)","wordpress-seo")})]});Re.propTypes={href:i().string.isRequired,children:i().node};x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),(0,a.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,a.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,a.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,a.__)("Optimize pages for multiple keywords with guidance","wordpress-seo"),(0,a.__)("Add product details to help your listings stand out","wordpress-seo"),(0,a.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,a.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,a.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo"),(0,a.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,a.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,a.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,a.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,a.__)("Internal links and redirect management, easy","wordpress-seo"),(0,a.__)("Access to friendly help when you need it, day or night","wordpress-seo");var Te=s(4184),Ce=s.n(Te);i().string.isRequired,i().object.isRequired,i().func.isRequired,x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),i().string.isRequired,i().object,i().func.isRequired,i().bool.isRequired,i().string.isRequired,i().object.isRequired,i().string.isRequired,i().func.isRequired,i().bool.isRequired;const Se=x.forwardRef((function(e,t){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),Le=({isOpen:t,onClose:s=e.noop,onDiscard:o=e.noop,title:n,description:i,dismissLabel:l,discardLabel:c})=>{const p=(0,r.useSvgAria)();return(0,d.jsx)(r.Modal,{isOpen:t,onClose:s,children:(0,d.jsxs)(r.Modal.Panel,{closeButtonScreenReaderText:(0,a.__)("Close","wordpress-seo"),children:[(0,d.jsxs)("div",{className:"sm:yst-flex sm:yst-items-start",children:[(0,d.jsx)("div",{className:"yst-mx-auto yst-flex-shrink-0 yst-flex yst-items-center yst-justify-center yst-h-12 yst-w-12 yst-rounded-full yst-bg-red-100 sm:yst-mx-0 sm:yst-h-10 sm:yst-w-10",children:(0,d.jsx)(Se,{className:"yst-h-6 yst-w-6 yst-text-red-600",...p})}),(0,d.jsxs)("div",{className:"yst-mt-3 yst-text-center sm:yst-mt-0 sm:yst-ms-4 sm:yst-text-start",children:[(0,d.jsx)(r.Modal.Title,{className:"yst-text-lg yst-leading-6 yst-font-medium yst-text-slate-900 yst-mb-3",children:n}),(0,d.jsx)(r.Modal.Description,{className:"yst-text-sm yst-text-slate-500",children:i})]})]}),(0,d.jsxs)("div",{className:"yst-flex yst-flex-col sm:yst-flex-row-reverse yst-gap-3 yst-mt-6",children:[(0,d.jsx)(r.Button,{type:"button",variant:"error",onClick:o,className:"yst-block",children:c}),(0,d.jsx)(r.Button,{type:"button",variant:"secondary",onClick:s,className:"yst-block",children:l})]})]})})};Le.propTypes={isOpen:i().bool.isRequired,onClose:i().func,onDiscard:i().func,title:i().string.isRequired,description:i().string.isRequired,dismissLabel:i().string.isRequired,discardLabel:i().string.isRequired};window.yoast.reactHelmet;var Oe,Ze,Ae,qe,Ve,$e,Be,Ie,Fe,He,Ue,De,Ge,Ye,We,Ke,Je,Xe,Qe,et,tt,st,ot,rt,at,nt,it,lt,ct,dt,pt,ht,mt,gt,yt,ut,vt,wt,ft,xt,_t,bt,jt,Et,Mt,kt,Pt,zt,Nt,Rt,Tt,Ct,St,Lt,Ot,Zt,At,qt,Vt,$t,Bt,It,Ft,Ht,Ut,Dt,Gt,Yt,Wt;function Kt(){return Kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},Kt.apply(this,arguments)}i().string.isRequired,i().shape({src:i().string.isRequired,width:i().string,height:i().string}).isRequired,i().shape({value:i().bool.isRequired,status:i().string.isRequired,set:i().func.isRequired}).isRequired,i().bool;const Jt=e=>x.createElement("svg",Kt({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none",viewBox:"0 0 252 60"},e),Oe||(Oe=x.createElement("linearGradient",{id:"yoast-connect-google-site-kit_svg__a"},x.createElement("stop",{offset:0,stopColor:"#570732"}),x.createElement("stop",{offset:.04,stopColor:"#610b39"}),x.createElement("stop",{offset:.15,stopColor:"#79164b"}),x.createElement("stop",{offset:.29,stopColor:"#8c1e59"}),x.createElement("stop",{offset:.44,stopColor:"#9a2463"}),x.createElement("stop",{offset:.63,stopColor:"#a22768"}),x.createElement("stop",{offset:1,stopColor:"#a4286a"}))),Ze||(Ze=x.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__b",x1:49.556,x2:49.556,y1:36.267,y2:23.152,gradientUnits:"userSpaceOnUse"})),Ae||(Ae=x.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__c",x1:82.801,x2:82.801,y1:38.819,y2:20.113,gradientUnits:"userSpaceOnUse"})),qe||(qe=x.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__d",x1:62.504,x2:62.504,y1:36.222,y2:23.113,gradientUnits:"userSpaceOnUse"})),Ve||(Ve=x.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__e",x1:73.951,x2:73.951,y1:36.276,y2:23.046,gradientUnits:"userSpaceOnUse"})),$e||($e=x.createElement("linearGradient",{id:"yoast-connect-google-site-kit_svg__f",x1:25.237,x2:25.237,y1:16.169,y2:36.914,gradientUnits:"userSpaceOnUse"},x.createElement("stop",{offset:0,stopColor:"#77b227"}),x.createElement("stop",{offset:.47,stopColor:"#75b027"}),x.createElement("stop",{offset:.64,stopColor:"#6eab27"}),x.createElement("stop",{offset:.75,stopColor:"#63a027"}),x.createElement("stop",{offset:.85,stopColor:"#529228"}),x.createElement("stop",{offset:.93,stopColor:"#3c8028"}),x.createElement("stop",{offset:1,stopColor:"#246b29"}))),Be||(Be=x.createElement("clipPath",{id:"yoast-connect-google-site-kit_svg__g"},x.createElement("path",{d:"M169.334 22h14.973v15.909h-14.973z"}))),Ie||(Ie=x.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__b)",fillRule:"evenodd",d:"M36.765 29.643c0-3.42 1.83-6.49 6.405-6.49 4.402 0 6.375 2.8 6.386 6.698.008 3.2-1.785 6.416-6.386 6.416-4.602 0-6.405-3.072-6.405-6.624zm8.432-2.74c-1.174-1.64-4.688-1.64-4.8 2.932.046 2.582 1.245 3.614 2.773 3.63 3.316.039 3.092-5.067 2.027-6.562z",clipRule:"evenodd"})),Fe||(Fe=x.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__c)",d:"M80.278 33.094v-6.631h2.368v-2.874h-2.368v-3.476h-3.66v3.476h-1.856v2.876h1.857v6.258c0 3.553 2.477 5.665 5.092 6.102l1.092-2.948c-1.524-.194-2.51-1.333-2.525-2.783z"})),He||(He=x.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__d)",fillRule:"evenodd",d:"M61.81 27.062v4.981c0 .7.196 1.67.426 2.803.088.436.182.897.27 1.376h-3.523l-.611-1.472c-4.118 2.994-8.053.974-8.053-2.168 0-4.131 4.01-4.632 7.777-4.632l.003-.249c.01-.465.02-.985-.24-1.336v-.007l-.034-.04-.011-.013c-.602-.675-2.327-1.028-5.21.341l-1.283-2.575c4.428-1.546 10.143-1.555 10.46 2.47.019.174.028.347.03.52zm-6.52 3.81c-2.718 1.331-.064 4.384 2.835 1.14v-1.425c-.949 0-2.035.012-2.835.284z",clipRule:"evenodd"})),Ue||(Ue=x.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__e)",d:"M67.439 26.794c0-1.227 1.966-1.8 5.064-.386l1.072-2.605c-4.17-1.262-9.866-1.371-9.904 2.991-.017 2.091 1.324 3.216 3.255 3.934 1.337.497 3.268.754 3.262 1.82-.007 1.391-3 1.604-5.725-.268l-1.101 2.823c3.716 1.85 10.627 1.902 10.59-2.734-.03-4.583-6.513-3.798-6.513-5.575z"})),De||(De=x.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__f)",d:"m35.218 16.875-5.305 14.734-2.54-7.956h-3.779l4.23 10.866a3.956 3.956 0 0 1 0 2.877c-.474 1.213-1.26 2.25-3.177 2.508v3.221c3.734 0 5.753-2.295 7.554-7.326l7.06-18.924z"})),Ge||(Ge=x.createElement("path",{fill:"#f0ecf0",d:"M124.088 57.357c15.427 0 27.934-12.506 27.934-27.933S139.515 1.49 124.088 1.49 96.155 13.997 96.155 29.424s12.506 27.933 27.933 27.933z"})),Ye||(Ye=x.createElement("path",{fill:"#9e005d",d:"M122.68 23.422c5.075-5.662 3.282-.196 13.081-2.26 2.792-.587 7.802-1.905 9.067.833 1.427 3.092 4.014 3.471 3.211 5.47-1.412 3.512-6.46 4.52-7.887.556-1.819-1.232-8.98 2.24-11.167 2.775-.813.198-.868-2.038-1.675-2.168-.529-.085-.462-.17-.939-.575-4.613-3.918-4.904-3.277-5.22-4.126.482-.115.95-.396 1.531-.503z"})),We||(We=x.createElement("path",{fill:"#6c2548",d:"M145.465 25.27c-1.744-.556-3.859.788-3.015 2.668.204.456 1.233 2.392 1.665 2.536 1.633.552 5.651-2.227 1.35-5.204z"})),Ke||(Ke=x.createElement("path",{fill:"#ffc399",d:"M145.972 26.652c-.452-.226-2.526.313-2.3 1.188.281 1.084.758 1.655 1.395 1.998 1.627.875 1.365 2.531 3.684 2.5 1.12-.015 4.022-1.557 4.118-.456.157 1.823.464 3.564.792 3.17.792-.951 1.109-1.03 1.188-4.2.021-.887-2.14-1.506-3.013-2.854-.473-.733-2.932-.714-5.866-1.348z"})),Je||(Je=x.createElement("path",{fill:"#be1e2d",d:"M109.348 16.345c-2.102-1.797-8.454 4.23-7.974 6.137.479-.51 1.186-1.505 1.973-1.316-2.719 1.838-3.191 6.484-1.784 9.259.158-.735.439-1.525.897-2.123-.778 3.037.466 8.256 4.271 10.873-.26-1.915-1.201-5.028.477-6.267 2.485-1.836 5.651-2.398 7.153-5.43 3.716-7.506-7.675-12.913-5.013-11.135z"})),Xe||(Xe=x.createElement("path",{fill:"#9e005d",d:"M111.503 27.227c-1.65.136-7.152 11.633.475 20.362 1.067 1.222 2.372 3.568 3.92 3.78 3.256.442 11.848-1.813 15.059-3.189 12.146-5.202 1.267-10.842-.308-16.792-1.421-5.366-1.725-8.762-7.928-8.997-2.92-.11-11.15 1.768-11.95 5.058-.224.108-.109-.08.732-.224z"})),Qe||(Qe=x.createElement("path",{fill:"#6c2548",d:"M123.196 23.817c3.828 1.233 6.256 5.375 7.755 8.771-1.38-4.316-2.059-8.262-7.932-8.95-.013-.072.419-.694.177.18z"})),et||(et=x.createElement("path",{fill:"#6c2548",d:"M127.718 23.362c1.071.893 1.961 2.794 2.438 3.984.522 1.306.088 3.329.571 4.638-1.292-3.232-1.307-5.14-3.007-8.622z"})),tt||(tt=x.createElement("path",{fill:"#ffc399",d:"M125.772 33.468c-1.058.375-2.898.677-4.103 1.248-2.187 1.037-4.936-1.725-7.313-1.188-.858.194-3.845-.873-4.082-1.942-.293-1.325-.745-1.352-.078-2.22 2.619-3.402 2.815-1.566 2.932-6.896.019-.886-.2-1.312.079-2.061.279-.75.21.017 1.09-.143.879-.16 2.996-1.05 3.869-.652 1.533.699.513 3.972 1.61 5.107 1.139 1.177 3.841-.028 4.989 1.128 1.439 1.45 1.324 6.848 1.005 7.621z"})),st||(st=x.createElement("path",{fill:"#e57c57",d:"M123.021 27.88c.285-.57.221-1.564-.026-2.586-1.175-.034-2.504.164-3.217-.575-.65-.671-.558-2.085-.692-3.277a3.502 3.502 0 0 1-.607-.122c-1.263-.372-2.67-.835-4.069-1.077-.039.008-.077.017-.111.023-.405.075-.605-.057-.733-.143l-.213-.017c-.04.05-.085.141-.144.303-.271.728-.073 1.156-.079 1.995 1.386 3.614 6.644 11.98 9.895 5.477z"})),ot||(ot=x.createElement("path",{fill:"#f1f2f2",d:"M116.06 33.648c7.293 3.488 11.969 5.47 13.635 9.989-1.031-4.757-.893-8.622-4.459-15.161.675 7.425-8.761 5.37-9.176 5.172z"})),rt||(rt=x.createElement("path",{fill:"#6c2548",d:"M129.697 43.002c.157-3.884-1.057-18.564-4.44-20.057-1.056-.466-10.726 1.174-7.768 1.348 4.625.27 7.293 2.775 7.928 4.28.792 1.11 3.081 8.599 4.28 14.427z"})),at||(at=x.createElement("path",{fill:"#9e005d",d:"M129.616 43.001c.157-3.884-1.93-18.723-5.311-20.214-1.056-.467-9.776 1.333-6.819 1.505 4.626.27 7.294 2.775 7.928 4.28.792 1.11 3.003 8.599 4.202 14.427z"})),nt||(nt=x.createElement("path",{fill:"#ffc399",d:"M126.288 12.877c.555 2.457-.397 1.902.078 3.488.375 1.25.729 2.066.635 3.488-.241 3.656-2.983 6.876-3.086 6.978-1.45 1.45-3.132 1.295-5.476.077-4.364-2.266-6.898-4.994-7.532-11.823-.471-5.072 3.763-8.847 9.014-8.313 3.249.332 5.449 2.04 6.367 6.103z"})),it||(it=x.createElement("path",{fill:"#be1e2d",d:"M114.461 9.389c3.944-.179 3.02 1.925 6.539 2.973 2.794.832 5.707-1.012 5.173 3.745-.475 4.212 9.401-4.116 1.46-7.591-1.269-.556-1.137-1.414-2.378-3.013-2.598-3.343-11.337-7.055-15.061-.873-.944 1.567 2.657 4.101 4.265 4.757z"})),lt||(lt=x.createElement("path",{fill:"#be1e2d",d:"M114.282 9.508c.912 3.597-.161 4.23-.653 5.47-.541 1.364-.803 2.65-1.487 3.925-.992-2.07-2.184-.317-5.276-4.36-5.537-7.24 9.782-16.915 7.416-5.035z"})),ct||(ct=x.createElement("path",{fill:"#ffc399",d:"M112.336 19.497c.617-1.633-4.029-4.43-3.599-1.043.209 1.642 1.516 2.574 2.913 3.152 2.294.945 1.195-1.676.569-3.058l.119.952z"})),dt||(dt=x.createElement("path",{fill:"#be1e2d",d:"M113.168 14.026c.309 1.25-.03 6.814 1.785 8.997-3.152-1.714-2.37-5.13-1.785-8.997z"})),pt||(pt=x.createElement("path",{fill:"#be1e2d",d:"M112.691 15.573c-.728.415-1.441 3.388-.323 5.705.006-.021.483-4.91.323-5.705z"})),ht||(ht=x.createElement("path",{fill:"#9e005d",d:"M117.012 34.121c-2.877-1.74-5.509-2.068-4.725-7.2.867-1.004.747-1.897.807-3.383-1.109.396-4.086 1.948-5.434 2.655-1.985 1.04-4.361 3.41-2.458 5.39.703.73-1.758 1.923.937 6.759 1.506-2.617 2.711-4.855 3.661-4.934 3.33-.079 4.431 1.667 7.372 2.378 7.214 1.744 11.654 6.501 12.525 8.164.036-1.051-1.269-4.914-12.683-9.829z"})),mt||(mt=x.createElement("path",{fill:"#9e005d",d:"M108.45 34.202c-8.258 11.429 2.709 12.432 5.351 22.998.119.48.656 1.17 1.503 1.322 5.051.903 10.884-1.744 15.862-6.92 1.408-1.463.247-4.902-1.546-5.648-2.319-1.546-7.378 4.023-13.006 2.992-.677-1.02-1.505-13.477-8.164-14.744z"})),gt||(gt=x.createElement("path",{fill:"#a0c9cb",d:"m155.213 40.425-.27 9.99-6.399-1.368-.094-9.712z"})),yt||(yt=x.createElement("path",{fill:"#75b0b3",d:"m155.48 50.235-.509.238c.085-11.096-.171-10.3.509-10.166v9.93z"})),ut||(ut=x.createElement("path",{fill:"#66a7ab",d:"M150.965 40.959c2.473.277 3.211 6.54 2.498 9.037-.119-.12-3.567-.833-3.686-.713-1.718-1.964-.992-8.57 1.188-8.324z"})),vt||(vt=x.createElement("path",{fill:"#467d7f",d:"M154.983 40.783s.153-1.902 0-2.02c-.153-.12-6.641-.655-6.641-.655-.776 1.706-.431 1.282 6.641 2.675z"})),wt||(wt=x.createElement("path",{fill:"#67a8ac",d:"m152.371 30.436 2.881 8.443-6.729-1.15-3.307-9.016z"})),ft||(ft=x.createElement("path",{fill:"#55989b",d:"m152.988 32.518.101.02-.716-2.1-7.155-1.725.656 1.786z"})),xt||(xt=x.createElement("path",{fill:"#519093",d:"m148.766 37.79-1.127.713-2.679-8.541 1.25-.893z"})),_t||(_t=x.createElement("path",{fill:"#b1d3d4",d:"m152.794 30.08-.922 1.069-6.552-1.01.869-1.011z"})),bt||(bt=x.createElement("path",{fill:"#a0c9cb",d:"M155.648 39.988c0 1.052-1.046 1.052-1.046 0s1.046-1.052 1.046 0z"})),jt||(jt=x.createElement("path",{fill:"#a0c9cb",d:"M147.639 38.502c1.501-.95.058-.881 7.713.317-1.38 1.189-.053 1.07-7.713-.317z"})),Et||(Et=x.createElement("path",{fill:"#75b0b3",d:"m155.354 38.879-1.037.832-2.444-8.681.922-1.07z"})),Mt||(Mt=x.createElement("path",{fill:"#6b1523",d:"M117.374 55.11c1.071-.299.06-1.962.713-4.862-1.972 4.042-1.699 5.134-.713 4.862z"})),kt||(kt=x.createElement("path",{fill:"#6b1523",d:"M119.989 48.095c.059-.594-2.913-8.918-9.097-9.276 3.448.12 10.494 9.176 8.452 9.395-1.853.535-6.076 2.32-4.41 3.925 1.307.773 1.605-3.152 4.627-3.895 4.567.882 7.438-3.94 10.415-1.874-2.809-3.503-5.362 2.14-9.989 1.725z"})),Pt||(Pt=x.createElement("path",{fill:"#6c2548",d:"M127.793 46.647c.309-.639 1.427-.396 2.336-1.56.449-.576.948-.203 1.687-.222 1.541-.043 2.544 2.996 1.737 4.15-.445.635-2.745 1.297-3.62 1.518-1.771.445-3.511-3.036-2.14-3.884z"})),zt||(zt=x.createElement("path",{fill:"#c44c31",d:"M123.081 15.099c-.993 1.109 1.35 4.64.988 6.262-.284 1.27-1.827.705-2.617-.157.694.027 1.78.445 1.982.078.76-1.384-1.539-4.914-.353-6.183z"})),Nt||(Nt=x.createElement("path",{fill:"#be1e2d",d:"M124.031 23.074c-2.5.504-4.483.504-5.69-.194.579.55 1.976 1.906 3.268 1.887 1.293-.02 1.235-.569 1.355-1.11.076-.206.528-.326 1.064-.586z"})),Rt||(Rt=x.createElement("path",{fill:"#e57c57",d:"M117.389 23.045c0-.616.545-.83 1.075-.93-.441.295-.092.88-.098.904-.481-.272-.62-.174-.977.026z"})),Tt||(Tt=x.createElement("path",{fill:"#35602c",d:"m150.614 40.5-2.973-.396.428 8.839 2.736-.024c2.241-.23 2.479-8.077-.191-8.42z"})),Ct||(Ct=x.createElement("path",{fill:"#569d48",d:"M149.867 44.427c.285 5.88-3.738 6.075-4.023.194-.285-5.88 3.737-6.075 4.023-.194z"})),St||(St=x.createElement("path",{fill:"#e57c57",d:"M136.434 42.288c5.055-.658 5.866-2.932 6.341-1.11.315.786-1.069 1.442-1.903 1.755-.443.164-1.044-.055-1.551-.104-1.12-.109-1.822.562-2.885.65-.123-.631.296-1.046 0-1.189z"})),Lt||(Lt=x.createElement("path",{fill:"#35602c",d:"M139.873 43.184c.168-.905 5.647-1.784 7.051-1.867 1.803-.107 2.161 6.066.475 6.184-2.362.164-4.487.357-6.872-.392-1.388-.435-1.904-.588-1.927-2.106-.017-1.12.749-2.068 1.273-1.819z"})),Ot||(Ot=x.createElement("g",{fill:"#ffc399"},x.createElement("path",{d:"M131.123 45.597c3.759-1.073 7.006-4.783 7.689-4.023 1.091 1.212-.543 2.16-1.06 3.489-.698 1.797 1.054-.037-.403 1.784-.634.792-1.961.179-2.793.179-.556.157-1.863 1.328-2.498 1.486-1.031-.158-2.364-2.042-.937-2.913z"}),x.createElement("path",{d:"M138.898 41.243c3.239.682 4.923-.098 5.189 1.152.181.856 1.606 3.358 1.559 4.323-1.725.462-2.504-2.683-3.13-3.156-.426-.321-2.909.188-3.733.077-.824-.111-1.378-2.191.115-2.396z"}),x.createElement("path",{d:"M141.004 43.042c.573 1.983 2.144 3.145 1.51 3.79-.848.863-1.691 1.404-2.013 1.263-1.976-.87.322-1.169-.004-1.496-.326-.328-1.995-2.12-2.34-2.198.24-.924-.094-1.263-.303-2.212.211.07 2.865.35 3.152.853z"}),x.createElement("path",{d:"M137.707 42.446c.958-.115 1.457 1.48 1.546 1.784.166.567 1.348 1.806 1.427 2.379.179 1.277-1.071 1.188-1.755 1.456-.564.298-1.991-.743-.683-1.576-.935-.019-3.073-1.497-2.694-2.016.241-.004 1.148-2.383 2.157-2.025z"}),x.createElement("path",{d:"M137.599 43.08c.556 1.11 1.03 3.964.873 4.28-.271.544-.865 1.07-1.51 1.34s-1.026-.943-1.978-1.893c.792-.713 1.691-.128 1.665.239-.03.438.079-.318.396-.239-.238-.317-.884-1.365-1.188-1.982-.434-.88.635-2.536 1.744-1.744zM143.91 28.315c.475 1.744-.187 2.5-.238 3.092-.085.99.758 1.205 1.348 1.901.873 1.031.792 2.22 1.505 2.775 1.983-.873.015-3.264-.193-3.786-.158-.396.034-2.875 2.016-3.032-1.348-1.665-3.249-2.22-4.44-.952z"}))),Zt||(Zt=x.createElement("path",{fill:"#6b1523",d:"M112.653 25.483c-1.903.93-5.883 2.474-6.737 4.518-.599 1.431 5.707 1.11 13.081 5.31-3.805-2.774-9.996-4.01-10.307-4.992-.106-.335 2.715-4.87 3.963-4.836zM105.279 31.507c.839 1.118 2.3 1.11 4.202 1.586-.878-.434-4.779.837-4.361 0 .157-.317-.167-.875.157-1.586z"})),At||(At=x.createElement("path",{fill:"#f1f2f2",d:"M116.341 17.639c.007-.03.462-.848 2.206-1.014.678-.064 1.896.509 1.795 1.169-1.007.43-1.888.675-4.001-.155z"})),qt||(qt=x.createElement("path",{fill:"#231f20",d:"M120.347 17.688c-.062-.337-.441-.754-.918-.767-.526-.015-1.035.55-1.044.897-.004.153.086.276.224.37.684.015 1.19-.162 1.733-.394a.422.422 0 0 0 .005-.106z"})),Vt||(Vt=x.createElement("path",{fill:"#231f20",d:"M120.368 17.667c-.102-.768-1.512-1.3-2.404-1.303-1.244 0-1.491 1.171-2.272.735.177.703 1.141.928 1.801.933-2.327-.695 2.14-2.302 2.875-.365z"})),$t||($t=x.createElement("path",{fill:"#f1f2f2",d:"M123.27 17.549c.977.332 2.076-.19 2.44-.741.592-.899-1.629-2.066-2.44.74z"})),Bt||(Bt=x.createElement("path",{fill:"#231f20",d:"M124.226 17.238a.33.33 0 0 0 .122.373c.604-.115 1.132-.452 1.365-.803a.576.576 0 0 0 .093-.245c-.323-.585-1.245-.539-1.58.675z"})),It||(It=x.createElement("path",{fill:"#231f20",d:"M123.249 17.568c.092-.724.417-1.478 1.329-1.887 1.175-.528 1.537.92 1.938-.268-.147 1.467-.592 1.476-1.523 1.987 1.022-.356.958-1.906-.373-1.403-1.062.402-1.196 1.152-1.369 1.571z"})),Ft||(Ft=x.createElement("path",{fill:"#be1e2d",d:"M126.024 14.621c.517.586-.337-.17-1.304-.06-.321.039-.841.352-1.122.365.554-1.076 1.663-1.17 2.426-.305zM119.708 14.939c-3.103-.776-3.531.176-4.685 1.79 2.238-2.446 3.518-.587 5.132-1.94-.245.024-.473.103-.447.15z"})),Ht||(Ht=x.createElement("path",{fill:"#6b1523",d:"M106.375 37.808c.416-1.427 1.651-3.48 2.315-3.607 4.108-.792 14.097 5.034 17.246 5.866-5.053-1.248-12.544-5.41-17.122-4.876-.586.192-2.081 1.901-2.439 2.617z"})),Ut||(Ut=x.createElement("path",{fill:"#642243",d:"M140.501 28.713c-.421-1.256-1.179-2.587-.805-4.042.379-1.475 2.232-2.05 2.815-3.43-1.65-.713-1.58 1.923-2.468 2.349-.038-.782-.142-1.516-.129-2.324-1.54 2.028-.703 4.913.589 7.45zM127.184 21.222c7.849.713 7.253 7.135 12.485 6.303-5.471 1.426-7.017-6.303-12.485-6.303z"})),Dt||(Dt=x.createElement("path",{fill:"#c44c31",d:"M120.525 19.497c0 .236-.594.236-.594 0s.594-.237.594 0zM118.622 19.852c0 .236-.358.236-.358 0s.358-.236.358 0zM124.39 19.02c0 .316-.474.316-.474 0 0-.315.474-.315.474 0zM125.28 19.972c0 .237-.475.237-.475 0s.475-.236.475 0zM125.638 18.784c0 .236-.474.236-.474 0 0-.237.474-.237.474 0zM120.406 20.685c0 .236-.475.236-.475 0s.475-.236.475 0z"})),Gt||(Gt=x.createElement("path",{fill:"#569d48",d:"M136.975 46.802c-.364-.268-.53-.656-.498-1.16-4.862.762-12.996 10.236-26.102 8.07.919.613 1.743 1.082 2.706 1.382 10.638 1.337 19.676-7.331 23.896-8.292z"})),Yt||(Yt=x.createElement("path",{fill:"#5f6368",d:"M238.632 23.565h2.267v.074l-5.066 5.844 5.405 7.63v.075h-2.151l-4.437-6.357-2.094 2.419v3.94h-1.754V23.564h1.754v7.027h.074zm5.892 1.084c0 .339-.124.637-.364.877s-.529.364-.877.364c-.34 0-.638-.124-.877-.364a1.198 1.198 0 0 1-.365-.877c0-.348.124-.637.365-.878.239-.24.53-.364.877-.364.339 0 .637.124.877.364.248.249.364.538.364.878zm-.355 3.22v9.327h-1.755v-9.328zm5.604 9.477c-.762 0-1.392-.232-1.896-.704-.505-.472-.762-1.126-.77-1.962v-5.215h-1.639v-1.597h1.639v-2.856h1.754v2.856h2.285v1.597h-2.284v4.644c0 .62.124 1.043.364 1.266.24.224.513.332.819.332.141 0 .273-.017.414-.05a2.19 2.19 0 0 0 .373-.124l.554 1.564c-.471.166-1.001.249-1.613.249zm-55.489-.878c-.969-.704-1.631-1.697-1.995-2.972l2.151-.878c.216.803.597 1.448 1.151 1.962.547.505 1.209.761 1.978.761.721 0 1.324-.182 1.829-.554.505-.373.754-.886.754-1.531 0-.596-.224-1.085-.662-1.474-.439-.389-1.209-.778-2.31-1.167l-.91-.323c-.977-.338-1.796-.827-2.459-1.464-.662-.637-.992-1.473-.992-2.515 0-.721.198-1.383.587-1.995.389-.613.935-1.093 1.639-1.458.695-.355 1.482-.538 2.367-.538 1.275 0 2.293.306 3.046.927.761.621 1.266 1.308 1.522 2.087l-2.051.868c-.15-.464-.43-.87-.853-1.217-.421-.356-.96-.53-1.622-.53s-1.224.166-1.68.505c-.455.34-.679.77-.679 1.3 0 .504.207.91.612 1.241.406.323 1.043.638 1.913.935l.911.306c1.249.431 2.209 1.002 2.896 1.698.687.695 1.027 1.63 1.027 2.797 0 .952-.241 1.747-.729 2.383a4.482 4.482 0 0 1-1.862 1.433 5.981 5.981 0 0 1-2.326.463c-1.209 0-2.293-.348-3.253-1.05zm9.924-11.571a1.45 1.45 0 0 1-.439-1.067c0-.423.149-.779.439-1.069a1.444 1.444 0 0 1 1.067-.439c.422 0 .778.15 1.067.44.291.289.439.645.439 1.067 0 .422-.149.778-.438 1.067a1.455 1.455 0 0 1-1.067.44c-.423-.01-.779-.15-1.068-.44zm-.05 1.937h2.234v10.362h-2.234zm7.093 10.304a2.898 2.898 0 0 1-.993-.588c-.579-.579-.878-1.373-.878-2.375v-5.372h-1.812v-1.97h1.812v-2.92h2.235v2.93h2.517v1.97h-2.517v4.874c0 .555.108.952.323 1.176.207.273.555.405 1.06.405.231 0 .43-.033.612-.091.174-.058.364-.157.571-.298v2.177c-.447.207-.985.306-1.622.306a3.735 3.735 0 0 1-1.308-.224zm6.133-.33a4.946 4.946 0 0 1-1.887-1.962c-.455-.836-.679-1.771-.679-2.814 0-.994.224-1.904.662-2.756.439-.845 1.052-1.523 1.838-2.02s1.68-.754 2.682-.754c1.043 0 1.945.232 2.714.688a4.572 4.572 0 0 1 1.747 1.887c.397.803.596 1.697.596 2.707 0 .19-.017.43-.058.711h-7.946c.083.96.423 1.706 1.026 2.227.58.512 1.33.79 2.103.778.637 0 1.192-.141 1.655-.439a3.185 3.185 0 0 0 1.126-1.192l1.887.894c-.488.853-1.126 1.523-1.912 2.011-.786.489-1.73.729-2.823.729-1.018.016-1.927-.215-2.731-.695zm5.397-6.01a2.497 2.497 0 0 0-.348-1.084 2.486 2.486 0 0 0-.927-.902c-.413-.24-.918-.364-1.515-.364-.72 0-1.324.215-1.821.637-.496.422-.836 1.001-1.026 1.714z"})),Wt||(Wt=x.createElement("g",{fillRule:"evenodd",clipPath:"url(#yoast-connect-google-site-kit_svg__g)",clipRule:"evenodd"},x.createElement("path",{fill:"#fbbc05",d:"m170.119 26.56 2.576 1.97a4.563 4.563 0 0 0 0 2.85l-2.576 1.97a7.667 7.667 0 0 1-.785-3.395c0-1.22.283-2.373.785-3.394z"}),x.createElement("path",{fill:"#ea4335",d:"m172.696 28.53-2.577-1.97a7.64 7.64 0 0 1 6.877-4.266c1.95 0 3.691.731 5.049 1.915l-2.229 2.229a4.428 4.428 0 0 0-2.82-1.01 4.518 4.518 0 0 0-4.3 3.103z"}),x.createElement("path",{fill:"#34a853",d:"m170.118 33.347 2.576-1.975a4.514 4.514 0 0 0 4.301 3.11c2.124 0 3.726-1.08 4.109-2.96h-4.109v-2.96h7.139c.104.452.174.94.174 1.392 0 4.875-3.482 7.661-7.313 7.661a7.637 7.637 0 0 1-6.877-4.268z"}),x.createElement("path",{fill:"#4285f4",d:"m181.988 35.707-2.446-1.893c.8-.505 1.357-1.284 1.562-2.293h-4.109v-2.96h7.138c.105.453.175.94.175 1.393 0 2.497-.914 4.446-2.32 5.753z"})))),Xt=({isOpen:e,onClose:t,onGrantConsent:s=null,learnMoreLink:o=""})=>{const n=(0,r.useSvgAria)();return(0,d.jsx)(r.Modal,{isOpen:e,onClose:t,children:(0,d.jsxs)(r.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl",hasCloseButton:!1,children:[(0,d.jsx)(r.Modal.CloseButton,{className:"yst-bg-transparent yst-text-gray-500 focus:yst-ring-offset-0",onClick:t,screenReaderText:(0,a.__)("Close","wordpress-seo")}),(0,d.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-bg-gradient-to-b yst-from-primary-500/25 yst-to-[80%]",children:(0,d.jsx)(Jt,{className:"yst-aspect-video yst-max-w-[432px] yst-p-7 yst-bg-white yst-rounded-md yst-drop-shadow-md"})}),(0,d.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,d.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,d.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,a.__)("Grant consent to connect with Site Kit by Google","wordpress-seo")}),(0,d.jsxs)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:[(0,a.__)("Give us permission to access your Site Kit data, allowing insights from tools like Google Analytics and Search Console to be displayed directly on your dashboard.","wordpress-seo")," ",(0,d.jsxs)(Re,{className:"yst-no-underline yst-font-medium",variant:"primary",href:o,children:[(0,a.__)("Learn more","wordpress-seo"),(0,d.jsx)(M,{className:"yst-inline yst-h-4 yst-w-4 yst-ms-1 rtl:yst-rotate-180",...n})]})]})]}),(0,d.jsx)("div",{className:"yst-w-full yst-flex yst-mt-10",children:(0,d.jsx)(r.Button,{className:"yst-grow",size:"extra-large",variant:"primary",onClick:s||t,children:(0,a.__)("Grant consent","wordpress-seo")})}),(0,d.jsx)(r.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:t,children:(0,a.__)("Close","wordpress-seo")})]})]})})};Xt.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired,onGrantConsent:i().func,learnMoreLink:i().string},i().func.isRequired,i().string.isRequired,i().string.isRequired,i().string.isRequired,i().string.isRequired,window.yoast.dashboardFrontend,(0,a.__)("INSTALL","wordpress-seo"),(0,a.__)("ACTIVATE","wordpress-seo"),(0,a.__)("SET UP","wordpress-seo"),(0,a.__)("CONNECT","wordpress-seo");const Qt={install:0,activate:1,setup:2,grantConsent:3,successfullyConnected:-1},es=(e,t)=>[Qt.setup,Qt.grantConsent,Qt.successfullyConnected].includes(e)&&!t,ts={name:(0,a.__)("Site Kit by Google","wordpress-seo"),claim:c((0,a.sprintf)(/* translators: 1: bold open tag; 2: bold close tag. */ (0,a.__)("Get valuable insights with %1$sSite Kit by Google%2$s","wordpress-seo"),"<strong>","</strong>"),{strong:(0,d.jsx)("strong",{})}),learnMoreLink:"https://yoa.st/integrations-about-site-kit",logoLink:"https://yoa.st/integrations-logo-google-site-kit",slug:"google-site-kit",description:(0,a.__)("View traffic and search rankings on your dashboard by connecting your Google account.","wordpress-seo"),isPremium:!1,isNew:!1,isMultisiteAvailable:!0,logo:e=>x.createElement("svg",ue({xmlns:"http://www.w3.org/2000/svg",width:124,height:24,fill:"none",viewBox:"0 0 182 36"},e),pe||(pe=x.createElement("clipPath",{id:"site-kit-logo_svg__a"},x.createElement("path",{d:"M0 0h32.941v35H0z"}))),he||(he=x.createElement("path",{fill:"#5f6368",d:"M152.456 3.44h4.989v.165l-11.147 12.856 11.89 16.788v.165h-4.73l-9.762-13.986-4.606 5.32v8.667h-3.861V3.441h3.859V18.9h.164zm12.962 2.387c0 .745-.272 1.4-.799 1.93a2.626 2.626 0 0 1-1.931.8 2.65 2.65 0 0 1-1.93-.8 2.636 2.636 0 0 1-.801-1.93c0-.765.273-1.403.801-1.931a2.622 2.622 0 0 1 1.93-.802c.747 0 1.402.273 1.931.802.545.547.799 1.182.799 1.93zm-.781 7.082v20.523h-3.861V12.909zm12.328 20.851c-1.674 0-3.06-.509-4.17-1.548-1.11-1.038-1.675-2.477-1.693-4.316V16.423h-3.606V12.91h3.606V6.625h3.858v6.284h5.027v3.514h-5.025V26.64c0 1.365.273 2.294.801 2.785.528.493 1.129.729 1.802.729.31 0 .601-.036.911-.11.309-.072.565-.164.82-.273l1.22 3.442c-1.038.365-2.204.547-3.551.547zM54.889 31.829c-2.131-1.549-3.588-3.734-4.389-6.539l4.734-1.93c.475 1.766 1.312 3.185 2.532 4.314 1.202 1.112 2.659 1.675 4.352 1.675 1.584 0 2.913-.4 4.023-1.218 1.111-.821 1.658-1.95 1.658-3.37 0-1.31-.492-2.385-1.456-3.24-.966-.856-2.66-1.712-5.08-2.57l-2.004-.708c-2.15-.746-3.951-1.82-5.41-3.222-1.456-1.403-2.183-3.242-2.183-5.534 0-1.586.437-3.043 1.292-4.39.856-1.347 2.058-2.403 3.606-3.206 1.529-.782 3.26-1.182 5.207-1.182 2.805 0 5.045.673 6.701 2.039 1.675 1.366 2.787 2.877 3.35 4.59l-4.514 1.91c-.328-1.02-.946-1.912-1.875-2.677-.928-.784-2.112-1.166-3.568-1.166-1.457 0-2.695.364-3.697 1.11-1.001.747-1.494 1.694-1.494 2.86 0 1.11.457 2.004 1.347 2.731.893.71 2.295 1.402 4.208 2.058l2.004.673c2.748.947 4.86 2.204 6.37 3.734 1.513 1.529 2.26 3.586 2.26 6.154 0 2.094-.528 3.843-1.602 5.243a9.869 9.869 0 0 1-4.097 3.152 13.16 13.16 0 0 1-5.117 1.02c-2.66 0-5.044-.766-7.156-2.313zM76.722 6.372a3.202 3.202 0 0 1-.965-2.348c0-.93.328-1.713.965-2.35A3.202 3.202 0 0 1 79.07.708c.93 0 1.713.329 2.348.966.64.637.966 1.42.966 2.348 0 .93-.328 1.713-.964 2.348a3.202 3.202 0 0 1-2.348.968c-.93-.02-1.713-.329-2.35-.966zm-.11 4.261h4.916V33.43h-4.916zm15.605 22.67c-.892-.328-1.62-.765-2.184-1.293-1.275-1.275-1.931-3.022-1.931-5.225V14.966h-3.987V10.63h3.987V4.206h4.916v6.447h5.537v4.333h-5.537v10.725c0 1.22.238 2.095.711 2.586.455.6 1.22.892 2.332.892.509 0 .946-.073 1.346-.2.383-.127.802-.346 1.256-.656v4.79c-.983.455-2.167.673-3.568.673a8.228 8.228 0 0 1-2.878-.493zm13.494-.727a10.893 10.893 0 0 1-4.153-4.315c-1.001-1.84-1.492-3.897-1.492-6.19 0-2.188.492-4.19 1.456-6.065.966-1.859 2.314-3.35 4.043-4.443 1.729-1.094 3.696-1.659 5.9-1.659 2.294 0 4.279.51 5.972 1.512a10.059 10.059 0 0 1 3.843 4.152c.873 1.766 1.312 3.734 1.312 5.955 0 .42-.038.946-.128 1.565h-17.482c.182 2.114.93 3.752 2.258 4.898a6.834 6.834 0 0 0 4.626 1.713c1.402 0 2.622-.31 3.642-.965a7.003 7.003 0 0 0 2.476-2.623l4.151 1.967c-1.074 1.876-2.476 3.35-4.205 4.424-1.731 1.076-3.806 1.603-6.21 1.603-2.24.036-4.242-.473-6.009-1.529zm11.872-13.22a5.472 5.472 0 0 0-.765-2.386c-.455-.783-1.128-1.457-2.039-1.984-.91-.529-2.02-.801-3.334-.801-1.583 0-2.911.473-4.005 1.4-1.092.93-1.839 2.204-2.258 3.77z"})),me||(me=x.createElement("g",{fillRule:"evenodd",clipPath:"url(#site-kit-logo_svg__a)",clipRule:"evenodd"},x.createElement("path",{fill:"#fbbc05",d:"m1.726 10.032 5.668 4.335a10.001 10.001 0 0 0-.5 3.133c0 1.095.176 2.149.5 3.133l-5.669 4.335A16.87 16.87 0 0 1 0 17.5c0-2.686.62-5.22 1.726-7.468z"}),x.createElement("path",{fill:"#ea4335",d:"m7.395 14.367-5.67-4.335A16.804 16.804 0 0 1 16.855.647c4.29 0 8.12 1.608 11.108 4.213L23.06 9.763a9.743 9.743 0 0 0-6.205-2.222 9.94 9.94 0 0 0-9.46 6.826z"}),x.createElement("path",{fill:"#34a853",d:"m1.724 24.963 5.666-4.344a9.94 9.94 0 0 0 9.464 6.84c4.673 0 8.197-2.375 9.04-6.512h-9.04v-6.511h15.704c.23.995.383 2.068.383 3.064 0 10.725-7.66 16.854-16.087 16.854a16.804 16.804 0 0 1-15.13-9.391z"}),x.createElement("path",{fill:"#4285f4",d:"m27.839 30.155-5.382-4.165c1.76-1.11 2.984-2.823 3.436-5.043h-9.04v-6.511h15.705c.23.995.383 2.068.383 3.064 0 5.493-2.01 9.78-5.102 12.655z"}))))},ss=({children:e,className:t=""})=>(0,d.jsx)("span",{className:Ce()("yst-pb-4 yst-border-b yst-mb-6 yst-border-slate-200 yst--mt-2",t),children:e});ss.propTypes={children:i().node.isRequired,className:i().string};const os=()=>(0,d.jsxs)(ss,{className:"yst-text-slate-700 yst-font-medium yst-flex yst-justify-between",children:[(0,a.__)("Successfully connected","wordpress-seo"),(0,d.jsx)(S,{className:"yst-h-5 yst-w-5 yst-text-green-400 yst-flex-shrink-0"})]}),rs=({capabilities:e,currentStep:t,successfullyConnected:s,isVersionSupported:o})=>{const r="yst-text-slate-500 yst-italic";return es(t,o)?(0,d.jsx)(ss,{className:r,children:(0,a.sprintf)(/* translators: %s for Yoast SEO. */ -(0,a.__)("Update Site Kit by Google to the latest version to connect %s.","wordpress-seo"),"Yoast SEO")}):!e.installPlugins&&t<Qt.grantConsent&&t!==Qt.successfullyConnected?(0,d.jsx)(ss,{className:r,children:(0,a.__)("Please contact your WordPress admin to install, activate, and set up the Site Kit by Google plugin.","wordpress-seo")}):e.viewSearchConsoleData||t!==Qt.grantConsent&&t!==Qt.successfullyConnected?s&&e.viewSearchConsoleData?(0,d.jsx)(os,{}):void 0:(0,d.jsx)(ss,{className:r,children:(0,a.__)("You don’t have view access to Site Kit by Google. Please contact the admin who set it up.","wordpress-seo")})};rs.propTypes={capabilities:i().objectOf(i().bool).isRequired,currentStep:i().number.isRequired,successfullyConnected:i().bool.isRequired,isVersionSupported:i().bool.isRequired};const as=({installUrl:t,activateUrl:s,setupUrl:o,updateUrl:n,consentManagementUrl:i,capabilities:c,connectionStepsStatuses:p,isVersionSupported:h})=>{const[g,y]=(0,r.useToggleState)(!1),[u,v]=(0,r.useToggleState)(!1),[f,w]=(0,l.useState)(p.isConsentGranted),x=(0,e.values)({...p,isConsentGranted:f}).findIndex((e=>!e)),_=x===Qt.successfullyConnected,b=(0,L.useSelect)((e=>e("yoast-seo/settings").selectLink("https://yoa.st/integrations-site-kit-consent-learn-more")),[]),j=(0,l.useCallback)((e=>(async e=>{try{const t=await m()({...e,parse:!1});if(!t.ok)throw new Error("not ok");return t.json()}catch(e){return Promise.reject(e)}})({url:i,data:{consent:String(e)},method:"POST"}).then((({success:t})=>{t&&w(e)}))),[i,w]),E=(0,l.useCallback)((()=>{j(!0).then(y)}),[j,y]),M=(0,l.useCallback)((()=>{j(!1).then(v)}),[j,v]),k=[{children:(0,a.__)("Install Site Kit by Google","wordpress-seo"),href:c.installPlugins?t:null,as:"a",disabled:!c.installPlugins,"aria-disabled":!c.installPlugins},{children:(0,a.__)("Activate Site Kit by Google","wordpress-seo"),href:c.installPlugins?s:null,as:"a",disabled:!c.installPlugins,"aria-disabled":!c.installPlugins},{children:(0,a.__)("Set up Site Kit by Google","wordpress-seo"),href:c.installPlugins?o:null,as:"a",disabled:!c.installPlugins,"aria-disabled":!c.installPlugins},{children:(0,a.__)("Connect Site Kit by Google","wordpress-seo"),onClick:y,disabled:!c.viewSearchConsoleData}],P=(0,l.useCallback)((e=>es(x,h)?{children:(0,a.__)("Update Site Kit by Google","wordpress-seo"),as:"a",href:n}:e===Qt.successfullyConnected?{children:(0,a.__)("Disconnect","wordpress-seo"),variant:"secondary",disabled:!c.viewSearchConsoleData,onClick:v}:k[e]),[c]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Z,{integration:ts,isActive:_,children:(0,d.jsxs)("span",{className:"yst-flex yst-flex-col yst-flex-1",children:[(0,d.jsx)(rs,{capabilities:c,currentStep:x,successfullyConnected:_,isVersionSupported:h}),(0,d.jsx)(r.Button,{className:"yst-w-full",id:"site-kit-integration__button",...P(x)})]})}),(0,d.jsx)(Le,{isOpen:u,onClose:v,onDiscard:M,title:(0,a.__)("Are you sure?","wordpress-seo"),description:(0,a.__)("By disconnecting, you will revoke your consent for Yoast to access your Site Kit data, meaning we can no longer show insights from Site Kit by Google on your dashboard. Do you want to proceed?","wordpress-seo"),dismissLabel:(0,a.__)("No, stay connected","wordpress-seo"),discardLabel:(0,a.__)("Yes, disconnect","wordpress-seo")}),(0,d.jsx)(Xt,{isOpen:g,onClose:y,onGrantConsent:E,learnMoreLink:b})]})};as.propTypes={installUrl:i().string.isRequired,activateUrl:i().string.isRequired,setupUrl:i().string.isRequired,updateUrl:i().string.isRequired,consentManagementUrl:i().string.isRequired,capabilities:i().objectOf(i().bool).isRequired,connectionStepsStatuses:i().objectOf(i().bool).isRequired,isVersionSupported:i().bool.isRequired};const ns=[{name:"Semrush",claim:c((0,a.sprintf)(/* translators: 1: bold open tag; 2: Semrush; 3: bold close tag. */ +(0,a.__)("Update Site Kit by Google to the latest version to connect %s.","wordpress-seo"),"Yoast SEO")}):!e.installPlugins&&t<Qt.grantConsent&&t!==Qt.successfullyConnected?(0,d.jsx)(ss,{className:r,children:(0,a.__)("Please contact your WordPress admin to install, activate, and set up the Site Kit by Google plugin.","wordpress-seo")}):e.viewSearchConsoleData||t!==Qt.grantConsent&&t!==Qt.successfullyConnected?s&&e.viewSearchConsoleData?(0,d.jsx)(os,{}):void 0:(0,d.jsx)(ss,{className:r,children:(0,a.__)("You don’t have view access to Site Kit by Google. Please contact the admin who set it up.","wordpress-seo")})};rs.propTypes={capabilities:i().objectOf(i().bool).isRequired,currentStep:i().number.isRequired,successfullyConnected:i().bool.isRequired,isVersionSupported:i().bool.isRequired};const as=({installUrl:t,activateUrl:s,setupUrl:o,updateUrl:n,consentManagementUrl:i,capabilities:c,connectionStepsStatuses:p,isVersionSupported:h})=>{const[g,y]=(0,r.useToggleState)(!1),[u,v]=(0,r.useToggleState)(!1),[w,f]=(0,l.useState)(p.isConsentGranted),x=(0,e.values)({...p,isConsentGranted:w}).findIndex((e=>!e)),_=x===Qt.successfullyConnected,b=(0,L.useSelect)((e=>e("yoast-seo/settings").selectLink("https://yoa.st/integrations-site-kit-consent-learn-more")),[]),j=(0,l.useCallback)((e=>(async e=>{try{const t=await m()({...e,parse:!1});if(!t.ok)throw new Error("not ok");return t.json()}catch(e){return Promise.reject(e)}})({url:i,data:{consent:String(e)},method:"POST"}).then((({success:t})=>{t&&f(e)}))),[i,f]),E=(0,l.useCallback)((()=>{j(!0).then(y)}),[j,y]),M=(0,l.useCallback)((()=>{j(!1).then(v)}),[j,v]),k=[{children:(0,a.__)("Install Site Kit by Google","wordpress-seo"),href:c.installPlugins?t:null,as:"a",disabled:!c.installPlugins,"aria-disabled":!c.installPlugins},{children:(0,a.__)("Activate Site Kit by Google","wordpress-seo"),href:c.installPlugins?s:null,as:"a",disabled:!c.installPlugins,"aria-disabled":!c.installPlugins},{children:(0,a.__)("Set up Site Kit by Google","wordpress-seo"),href:c.installPlugins?o:null,as:"a",disabled:!c.installPlugins,"aria-disabled":!c.installPlugins},{children:(0,a.__)("Connect Site Kit by Google","wordpress-seo"),onClick:y,disabled:!c.viewSearchConsoleData}],P=(0,l.useCallback)((e=>es(x,h)?{children:(0,a.__)("Update Site Kit by Google","wordpress-seo"),as:"a",href:n}:e===Qt.successfullyConnected?{children:(0,a.__)("Disconnect","wordpress-seo"),variant:"secondary",disabled:!c.viewSearchConsoleData,onClick:v}:k[e]),[c]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(O,{integration:ts,isActive:_,children:(0,d.jsxs)("span",{className:"yst-flex yst-flex-col yst-flex-1",children:[(0,d.jsx)(rs,{capabilities:c,currentStep:x,successfullyConnected:_,isVersionSupported:h}),(0,d.jsx)(r.Button,{className:"yst-w-full",id:"site-kit-integration__button",...P(x)})]})}),(0,d.jsx)(Le,{isOpen:u,onClose:v,onDiscard:M,title:(0,a.__)("Are you sure?","wordpress-seo"),description:(0,a.__)("By disconnecting, you will revoke your consent for Yoast to access your Site Kit data, meaning we can no longer show insights from Site Kit by Google on your dashboard. Do you want to proceed?","wordpress-seo"),dismissLabel:(0,a.__)("No, stay connected","wordpress-seo"),discardLabel:(0,a.__)("Yes, disconnect","wordpress-seo")}),(0,d.jsx)(Xt,{isOpen:g,onClose:y,onGrantConsent:E,learnMoreLink:b})]})};as.propTypes={installUrl:i().string.isRequired,activateUrl:i().string.isRequired,setupUrl:i().string.isRequired,updateUrl:i().string.isRequired,consentManagementUrl:i().string.isRequired,capabilities:i().objectOf(i().bool).isRequired,connectionStepsStatuses:i().objectOf(i().bool).isRequired,isVersionSupported:i().bool.isRequired};const ns=[{name:"Semrush",claim:c((0,a.sprintf)(/* translators: 1: bold open tag; 2: Semrush; 3: bold close tag. */ (0,a.__)("Use %1$s%2$s%3$s to do keyword research - without leaving your post","wordpress-seo"),"<strong>","Semrush","</strong>"),{strong:(0,d.jsx)("strong",{})}),learnMoreLink:"https://yoa.st/integrations-about-semrush",logoLink:"http://yoa.st/semrush-prices-wordpress",slug:"semrush",description:(0,a.sprintf)(/* translators: 1: Semrush */ (0,a.__)("Find out what your audience is searching for with %s data right in your sidebar.","wordpress-seo"),"Semrush"),isPremium:!1,isNew:!1,isMultisiteAvailable:!0,logo:e=>x.createElement("svg",ge({xmlns:"http://www.w3.org/2000/svg",width:170,height:27,fill:"none",viewBox:"0 0 200 27"},e),le||(le=x.createElement("path",{fill:"#171A22",d:"M138.086 10.413c0-3.276-2.013-5.651-5.869-5.651h-12.466v16.976h4.099v-5.797h4.85l4.753 5.795h4.619v-.374l-4.619-5.518c2.882-.594 4.633-2.71 4.633-5.431Zm-6.329 2.1h-7.907V8.277h7.907c1.462 0 2.401.779 2.401 2.123-.001 1.366-.908 2.111-2.401 2.111ZM200 4.762h-3.833v6.436h-10.331V4.762h-4.147v16.976h4.147v-6.685h10.331v6.685H200V4.762ZM108.78 4.762l-4.558 14.284h-.25L99.388 4.762h-7.3v16.976h3.905V7.793h.243l4.558 13.945h6.289l4.584-13.945h.241v13.945h4.027V4.762h-7.155ZM64.176 11.708c-1.448-.15-4.148-.397-5.597-.547-1.425-.146-2.249-.569-2.249-1.51 0-.903.875-1.665 4.403-1.665 3.113 0 5.986.666 8.494 1.876V6.064c-2.508-1.196-5.264-1.78-8.706-1.78-4.829 0-8.172 2.019-8.172 5.432 0 2.89 1.962 4.468 5.898 4.898 1.425.156 3.847.369 5.537.508 1.84.153 2.388.715 2.388 1.554 0 1.152-1.29 1.867-4.56 1.867-3.328 0-6.697-1.088-9.093-2.61v3.909c1.925 1.287 5.258 2.38 8.97 2.38 5.275 0 8.66-2.035 8.66-5.677 0-2.74-1.807-4.404-5.973-4.837ZM72.834 4.762v16.976h15.835V18.27H76.737v-3.444h11.729v-3.442H76.737V8.229H88.67V4.762H72.834ZM173.218 11.708c-1.448-.15-4.148-.398-5.597-.547-1.425-.146-2.249-.569-2.249-1.51 0-.903.875-1.665 4.402-1.665 3.114 0 5.987.666 8.495 1.876V6.064c-2.51-1.195-5.264-1.78-8.706-1.78-4.829 0-8.172 2.018-8.172 5.432 0 2.89 1.962 4.468 5.898 4.897 1.425.157 3.847.37 5.537.509 1.841.153 2.388.715 2.388 1.554 0 1.151-1.291 1.866-4.56 1.866-3.328 0-6.697-1.087-9.093-2.61v3.91c1.925 1.287 5.258 2.38 8.97 2.38 5.275 0 8.661-2.035 8.661-5.677 0-2.74-1.806-4.404-5.974-4.837ZM154.503 4.762v8.69c0 3.293-2 5.1-5.008 5.1-3.024 0-5.008-1.78-5.008-5.15v-8.64h-4.075v8.254c0 6.164 3.852 9.207 9.142 9.207 5.09 0 9.021-2.924 9.021-9.006V4.762h-4.072Z"})),ce||(ce=x.createElement("path",{fill:"#FF642D",d:"M38.307 13.152c0 .827-.415.955-1.466.955-1.114 0-1.305-.192-1.433-1.02-.223-2.132-1.657-3.948-4.075-4.138-.764-.064-.955-.35-.955-1.306 0-.891.128-1.306.828-1.306 4.202 0 7.1 3.376 7.1 6.815Zm6.114 0C44.42 6.752 40.09 0 30.09 0H10.214c-.4 0-.65.21-.65.576 0 .2.15.379.286.485.729.572 1.79 1.201 3.213 1.913 1.38.69 2.445 1.138 3.527 1.578.447.18.625.379.625.644 0 .346-.244.566-.747.566H.69c-.466 0-.691.3-.691.604 0 .258.09.465.31.693 1.281 1.336 3.317 2.947 6.293 4.809a92.427 92.427 0 0 0 8.386 4.617c.43.206.58.445.57.691-.012.286-.237.527-.734.527H7.593c-.411 0-.64.217-.64.549 0 .185.15.42.344.598 1.645 1.491 4.275 3.123 7.78 4.615 4.674 1.99 9.432 3.187 14.776 3.187 10.127 0 14.568-7.578 14.568-13.5Zm-13.215 9.074c-4.968 0-9.107-4.044-9.107-9.074 0-4.968 4.139-8.948 9.107-8.948 5.095 0 9.074 3.981 9.074 8.948 0 5.03-3.98 9.074-9.074 9.074Z"})))},{name:"Wincher",claim:c((0,a.sprintf)(/* translators: 1: bold open tag; 2: Wincher; 3: bold close tag. */ (0,a.__)("Track your rankings through time with %1$s%2$s%3$s","wordpress-seo"),"<strong>","Wincher","</strong>"),{strong:(0,d.jsx)("strong",{})}),learnMoreLink:"https://yoa.st/integrations-about-wincher",logoLink:"https://yoa.st/integrations-logo-wincher",slug:"wincher",description:(0,a.sprintf)(/* translators: 1: Wincher */ -(0,a.__)("Keep an eye on how your posts are ranking by connecting to your %s account.","wordpress-seo"),"Wincher"),isPremium:!1,isNew:!1,isMultisiteAvailable:!1,logo:e=>x.createElement("svg",ye({xmlns:"http://www.w3.org/2000/svg",width:140,viewBox:"0 0 566 122"},e),de||(de=x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("g",{fillRule:"nonzero",transform:"translate(183.8 37)"},x.createElement("circle",{cx:375.8,cy:58.2,r:5.6,fill:"#FFA23A"}),x.createElement("path",{fill:"#37343B",d:"M31.805 62.112a2.4 2.4 0 0 1-2.282 1.656h-7.337a2.4 2.4 0 0 1-2.277-1.641L.323 3.365A2.4 2.4 0 0 1 2.6.206h8.895a2.4 2.4 0 0 1 2.298 1.708l12.37 41.04 13.974-41.12A2.4 2.4 0 0 1 42.409.206h4.7a2.4 2.4 0 0 1 2.268 1.616l14.228 41.131 12.2-41.03A2.4 2.4 0 0 1 78.107.205H87a2.4 2.4 0 0 1 2.278 3.156L69.77 62.124a2.4 2.4 0 0 1-2.278 1.644h-7.335a2.4 2.4 0 0 1-2.282-1.656L44.84 22.139 31.805 62.112zm74.538-45.22a2.4 2.4 0 0 1 2.4 2.4v42.076a2.4 2.4 0 0 1-2.4 2.4H98.95a2.4 2.4 0 0 1-2.4-2.4V19.292a2.4 2.4 0 0 1 2.4-2.4h7.393zM102.555 0c3.095 0 5.605 2.496 5.605 5.575s-2.51 5.574-5.605 5.574c-3.095 0-5.605-2.495-5.605-5.574 0-3.08 2.51-5.575 5.605-5.575zm29.076 61.368a2.4 2.4 0 0 1-2.4 2.4h-7.392a2.4 2.4 0 0 1-2.4-2.4V19.292a2.4 2.4 0 0 1 2.4-2.4h7.133a2.4 2.4 0 0 1 2.4 2.4v4.937c1.268-2.35 3.228-4.243 5.88-5.677 2.651-1.433 5.62-2.15 8.906-2.15 5.13 0 9.483 1.692 13.057 5.075s5.361 8.2 5.361 14.45v25.44a2.4 2.4 0 0 1-2.4 2.4h-7.392a2.4 2.4 0 0 1-2.4-2.4V39.196c0-3.67-.894-6.523-2.68-8.558-1.788-2.036-4.209-3.054-7.264-3.054-3.228 0-5.837.304-7.826 2.512-1.989 2.207-2.983 5.86-2.983 9.358v21.915zM198.736 64c-7.131 0-13.018-2.242-17.66-6.725-4.584-4.427-6.876-10.172-6.876-17.233s2.32-12.806 6.962-17.233C185.86 18.27 191.83 16 199.076 16c4.754 0 9.07 1.12 12.947 3.363 3.38 1.953 5.996 4.589 7.849 7.905.643 1.151.272 1.78-.517 2.208l-6.947 3.774c-1.003.545-1.63.246-2.293-.654-2.74-3.722-6.363-5.584-10.87-5.584-3.848 0-6.99 1.261-9.423 3.783-2.49 2.466-3.736 5.548-3.736 9.247 0 3.81 1.217 6.95 3.65 9.415 2.491 2.466 5.576 3.699 9.255 3.699 2.434 0 4.754-.645 6.962-1.934 1.73-1.01 3.094-2.243 4.094-3.7.47-.685 1.14-1.03 2.077-.484l7.195 4.187c.738.43.968 1.038.538 1.742-1.954 3.2-4.679 5.784-8.173 7.755C207.806 62.907 203.49 64 198.736 64zm44.522-2.632a2.4 2.4 0 0 1-2.4 2.4h-7.393a2.4 2.4 0 0 1-2.4-2.4V2.4a2.4 2.4 0 0 1 2.4-2.4h7.047a2.4 2.4 0 0 1 2.4 2.4v21.399c1.268-2.179 3.257-3.957 5.966-5.333 2.71-1.376 5.679-2.064 8.907-2.064 5.073 0 9.396 1.692 12.97 5.075 3.575 3.383 5.362 8.2 5.362 14.45v25.44a2.4 2.4 0 0 1-2.4 2.4h-7.393a2.4 2.4 0 0 1-2.4-2.4V39.196c0-3.67-.879-6.523-2.637-8.558-1.758-2.036-4.165-3.054-7.22-3.054-3.229 0-5.837 1.104-7.826 3.312-1.989 2.207-2.983 5.06-2.983 8.558v21.915zM311.177 64c-8.045 0-14.233-2.326-18.564-6.977-4.275-4.596-6.413-10.256-6.413-16.981 0-7.005 2.222-12.75 6.666-17.233C297.31 18.27 303.076 16 310.164 16c6.694 0 12.207 2.074 16.539 6.22 4.331 4.148 6.497 9.752 6.497 16.813 0 1.087-.085 2.375-.254 3.866-.104.92-.483 1.346-1.483 1.346h-33.197c1.688 6.501 6.16 9.752 13.417 9.752 4.807 0 9.295-1.247 13.464-3.74.787-.471 1.621-.471 2.059.299l3.324 5.854c.565.997.43 1.514-.38 2.05-5.582 3.693-11.907 5.54-18.973 5.54zM321.2 36c-.554-3.1-1.827-5.54-3.82-7.325-1.992-1.783-4.483-2.675-7.472-2.675-2.934 0-5.439.892-7.515 2.675-2.076 1.784-3.473 4.226-4.193 7.325h23zm34.954 25.368a2.4 2.4 0 0 1-2.4 2.4h-7.393a2.4 2.4 0 0 1-2.4-2.4V19.292a2.4 2.4 0 0 1 2.4-2.4h6.874a2.4 2.4 0 0 1 2.4 2.4v5.472c2.825-5.046 7.148-7.57 12.97-7.57 1.491 0 2.982.212 4.472.635.86.243 1.193.871 1.11 1.796l-.778 8.712c-.097 1.091-.567 1.348-1.636 1.091-1.487-.357-2.86-.536-4.119-.536-3.574 0-6.384 1.19-8.43 3.57-2.047 2.38-3.07 5.92-3.07 10.622v18.284z"})),x.createElement("path",{fill:"#FF8F3B",d:"M154.949.162a3.423 3.423 0 0 1 2.235 4.308l-37.107 115.146a3.446 3.446 0 0 1-3.285 2.384H94.376c-.356 0-.71-.055-1.049-.162a3.423 3.423 0 0 1-2.235-4.308L128.199 2.384A3.446 3.446 0 0 1 131.484 0h24.485c.356 0-1.36.055-1.02.162zm-70.7 14.231c.355 0 .707.055 1.046.162a3.423 3.423 0 0 1 2.24 4.305L55.247 119.613A3.446 3.446 0 0 1 51.962 122H29.545c-.355 0-.708-.055-1.047-.162a3.423 3.423 0 0 1-2.239-4.305L58.545 16.78a3.446 3.446 0 0 1 3.286-2.387h22.417z"}),x.createElement("path",{fill:"#FF7F3B",d:"m107.849 65.53 14.936 45.68-2.708 8.406a3.446 3.446 0 0 1-3.285 2.384l-11.788-47.64 2.845-8.83zm-64.877-.151 14.976 45.805-2.7 8.429a3.425 3.425 0 0 1-.157.4l-15.13-45.236 3.011-9.398z"}),x.createElement("path",{fill:"#FFA23A",d:"M84.376 14.393c1.501 0 2.83.966 3.285 2.387l32.287 100.753a3.423 3.423 0 0 1-2.24 4.305 3.468 3.468 0 0 1-1.046.162H94.245a3.446 3.446 0 0 1-3.286-2.387L58.673 18.86a3.423 3.423 0 0 1 2.24-4.305 3.468 3.468 0 0 1 1.045-.162zM26.454 37.011c1.497 0 2.823.96 3.282 2.376l25.363 78.135a3.423 3.423 0 0 1-2.224 4.313c-.342.11-.699.165-1.058.165H29.408a3.446 3.446 0 0 1-3.282-2.376L.763 41.49a3.423 3.423 0 0 1 2.224-4.314 3.485 3.485 0 0 1 1.058-.165z"}))))}],is=[ns.map(((e,t)=>(0,d.jsx)(C,{integration:e,toggleLabel:(0,a.__)("Enable integration","wordpress-seo"),initialActivationState:g(e),isNetworkControlEnabled:y(e),isMultisiteAvailable:u(e),beforeToggle:w},t)))];var ls,cs,ds,ps,hs,ms,gs,ys,us,vs,fs,ws,xs,_s,bs,js,Es,Ms,ks;function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},Ps.apply(this,arguments)}function zs(){return zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},zs.apply(this,arguments)}function Ns(){return Ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},Ns.apply(this,arguments)}function Rs(){return Rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},Rs.apply(this,arguments)}(0,e.get)(window,"wpseoIntegrationsData.site_kit_configuration.isFeatureEnabled",!1)&&is.push((0,d.jsx)(as,{installUrl:(0,e.get)(window,"wpseoIntegrationsData.site_kit_configuration.installUrl",""),activateUrl:(0,e.get)(window,"wpseoIntegrationsData.site_kit_configuration.activateUrl",""),setupUrl:(0,e.get)(window,"wpseoIntegrationsData.site_kit_configuration.setupUrl",""),updateUrl:(0,e.get)(window,"wpseoIntegrationsData.site_kit_configuration.updateUrl",""),consentManagementUrl:(0,e.get)(window,"wpseoIntegrationsData.site_kit_consent_management_url",""),capabilities:(0,e.get)(window,"wpseoIntegrationsData.site_kit_configuration.capabilities",{installPlugins:!1,viewSearchConsoleData:!1}),connectionStepsStatuses:(0,e.get)(window,"wpseoIntegrationsData.site_kit_configuration.connectionStepsStatuses",{isInstalled:!1,isActive:!1,isSetupCompleted:!1,isConsentGranted:!1}),isVersionSupported:(0,e.get)(window,"wpseoIntegrationsData.site_kit_configuration.isVersionSupported",!1)},ns.length));const Ts=[{name:"The Events Calendar",claim:c((0,a.sprintf)(/* translators: 1: bold open tag; 2: bold close tag. */ +(0,a.__)("Keep an eye on how your posts are ranking by connecting to your %s account.","wordpress-seo"),"Wincher"),isPremium:!1,isNew:!1,isMultisiteAvailable:!1,logo:e=>x.createElement("svg",ye({xmlns:"http://www.w3.org/2000/svg",width:140,viewBox:"0 0 566 122"},e),de||(de=x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("g",{fillRule:"nonzero",transform:"translate(183.8 37)"},x.createElement("circle",{cx:375.8,cy:58.2,r:5.6,fill:"#FFA23A"}),x.createElement("path",{fill:"#37343B",d:"M31.805 62.112a2.4 2.4 0 0 1-2.282 1.656h-7.337a2.4 2.4 0 0 1-2.277-1.641L.323 3.365A2.4 2.4 0 0 1 2.6.206h8.895a2.4 2.4 0 0 1 2.298 1.708l12.37 41.04 13.974-41.12A2.4 2.4 0 0 1 42.409.206h4.7a2.4 2.4 0 0 1 2.268 1.616l14.228 41.131 12.2-41.03A2.4 2.4 0 0 1 78.107.205H87a2.4 2.4 0 0 1 2.278 3.156L69.77 62.124a2.4 2.4 0 0 1-2.278 1.644h-7.335a2.4 2.4 0 0 1-2.282-1.656L44.84 22.139 31.805 62.112zm74.538-45.22a2.4 2.4 0 0 1 2.4 2.4v42.076a2.4 2.4 0 0 1-2.4 2.4H98.95a2.4 2.4 0 0 1-2.4-2.4V19.292a2.4 2.4 0 0 1 2.4-2.4h7.393zM102.555 0c3.095 0 5.605 2.496 5.605 5.575s-2.51 5.574-5.605 5.574c-3.095 0-5.605-2.495-5.605-5.574 0-3.08 2.51-5.575 5.605-5.575zm29.076 61.368a2.4 2.4 0 0 1-2.4 2.4h-7.392a2.4 2.4 0 0 1-2.4-2.4V19.292a2.4 2.4 0 0 1 2.4-2.4h7.133a2.4 2.4 0 0 1 2.4 2.4v4.937c1.268-2.35 3.228-4.243 5.88-5.677 2.651-1.433 5.62-2.15 8.906-2.15 5.13 0 9.483 1.692 13.057 5.075s5.361 8.2 5.361 14.45v25.44a2.4 2.4 0 0 1-2.4 2.4h-7.392a2.4 2.4 0 0 1-2.4-2.4V39.196c0-3.67-.894-6.523-2.68-8.558-1.788-2.036-4.209-3.054-7.264-3.054-3.228 0-5.837.304-7.826 2.512-1.989 2.207-2.983 5.86-2.983 9.358v21.915zM198.736 64c-7.131 0-13.018-2.242-17.66-6.725-4.584-4.427-6.876-10.172-6.876-17.233s2.32-12.806 6.962-17.233C185.86 18.27 191.83 16 199.076 16c4.754 0 9.07 1.12 12.947 3.363 3.38 1.953 5.996 4.589 7.849 7.905.643 1.151.272 1.78-.517 2.208l-6.947 3.774c-1.003.545-1.63.246-2.293-.654-2.74-3.722-6.363-5.584-10.87-5.584-3.848 0-6.99 1.261-9.423 3.783-2.49 2.466-3.736 5.548-3.736 9.247 0 3.81 1.217 6.95 3.65 9.415 2.491 2.466 5.576 3.699 9.255 3.699 2.434 0 4.754-.645 6.962-1.934 1.73-1.01 3.094-2.243 4.094-3.7.47-.685 1.14-1.03 2.077-.484l7.195 4.187c.738.43.968 1.038.538 1.742-1.954 3.2-4.679 5.784-8.173 7.755C207.806 62.907 203.49 64 198.736 64zm44.522-2.632a2.4 2.4 0 0 1-2.4 2.4h-7.393a2.4 2.4 0 0 1-2.4-2.4V2.4a2.4 2.4 0 0 1 2.4-2.4h7.047a2.4 2.4 0 0 1 2.4 2.4v21.399c1.268-2.179 3.257-3.957 5.966-5.333 2.71-1.376 5.679-2.064 8.907-2.064 5.073 0 9.396 1.692 12.97 5.075 3.575 3.383 5.362 8.2 5.362 14.45v25.44a2.4 2.4 0 0 1-2.4 2.4h-7.393a2.4 2.4 0 0 1-2.4-2.4V39.196c0-3.67-.879-6.523-2.637-8.558-1.758-2.036-4.165-3.054-7.22-3.054-3.229 0-5.837 1.104-7.826 3.312-1.989 2.207-2.983 5.06-2.983 8.558v21.915zM311.177 64c-8.045 0-14.233-2.326-18.564-6.977-4.275-4.596-6.413-10.256-6.413-16.981 0-7.005 2.222-12.75 6.666-17.233C297.31 18.27 303.076 16 310.164 16c6.694 0 12.207 2.074 16.539 6.22 4.331 4.148 6.497 9.752 6.497 16.813 0 1.087-.085 2.375-.254 3.866-.104.92-.483 1.346-1.483 1.346h-33.197c1.688 6.501 6.16 9.752 13.417 9.752 4.807 0 9.295-1.247 13.464-3.74.787-.471 1.621-.471 2.059.299l3.324 5.854c.565.997.43 1.514-.38 2.05-5.582 3.693-11.907 5.54-18.973 5.54zM321.2 36c-.554-3.1-1.827-5.54-3.82-7.325-1.992-1.783-4.483-2.675-7.472-2.675-2.934 0-5.439.892-7.515 2.675-2.076 1.784-3.473 4.226-4.193 7.325h23zm34.954 25.368a2.4 2.4 0 0 1-2.4 2.4h-7.393a2.4 2.4 0 0 1-2.4-2.4V19.292a2.4 2.4 0 0 1 2.4-2.4h6.874a2.4 2.4 0 0 1 2.4 2.4v5.472c2.825-5.046 7.148-7.57 12.97-7.57 1.491 0 2.982.212 4.472.635.86.243 1.193.871 1.11 1.796l-.778 8.712c-.097 1.091-.567 1.348-1.636 1.091-1.487-.357-2.86-.536-4.119-.536-3.574 0-6.384 1.19-8.43 3.57-2.047 2.38-3.07 5.92-3.07 10.622v18.284z"})),x.createElement("path",{fill:"#FF8F3B",d:"M154.949.162a3.423 3.423 0 0 1 2.235 4.308l-37.107 115.146a3.446 3.446 0 0 1-3.285 2.384H94.376c-.356 0-.71-.055-1.049-.162a3.423 3.423 0 0 1-2.235-4.308L128.199 2.384A3.446 3.446 0 0 1 131.484 0h24.485c.356 0-1.36.055-1.02.162zm-70.7 14.231c.355 0 .707.055 1.046.162a3.423 3.423 0 0 1 2.24 4.305L55.247 119.613A3.446 3.446 0 0 1 51.962 122H29.545c-.355 0-.708-.055-1.047-.162a3.423 3.423 0 0 1-2.239-4.305L58.545 16.78a3.446 3.446 0 0 1 3.286-2.387h22.417z"}),x.createElement("path",{fill:"#FF7F3B",d:"m107.849 65.53 14.936 45.68-2.708 8.406a3.446 3.446 0 0 1-3.285 2.384l-11.788-47.64 2.845-8.83zm-64.877-.151 14.976 45.805-2.7 8.429a3.425 3.425 0 0 1-.157.4l-15.13-45.236 3.011-9.398z"}),x.createElement("path",{fill:"#FFA23A",d:"M84.376 14.393c1.501 0 2.83.966 3.285 2.387l32.287 100.753a3.423 3.423 0 0 1-2.24 4.305 3.468 3.468 0 0 1-1.046.162H94.245a3.446 3.446 0 0 1-3.286-2.387L58.673 18.86a3.423 3.423 0 0 1 2.24-4.305 3.468 3.468 0 0 1 1.045-.162zM26.454 37.011c1.497 0 2.823.96 3.282 2.376l25.363 78.135a3.423 3.423 0 0 1-2.224 4.313c-.342.11-.699.165-1.058.165H29.408a3.446 3.446 0 0 1-3.282-2.376L.763 41.49a3.423 3.423 0 0 1 2.224-4.314 3.485 3.485 0 0 1 1.058-.165z"}))))}],is=[ns.map(((e,t)=>(0,d.jsx)(C,{integration:e,toggleLabel:(0,a.__)("Enable integration","wordpress-seo"),initialActivationState:g(e),isNetworkControlEnabled:y(e),isMultisiteAvailable:u(e),beforeToggle:f},t)))];var ls,cs,ds,ps,hs,ms,gs,ys,us,vs,ws,fs,xs,_s,bs,js,Es,Ms,ks;function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},Ps.apply(this,arguments)}function zs(){return zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},zs.apply(this,arguments)}function Ns(){return Ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},Ns.apply(this,arguments)}function Rs(){return Rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},Rs.apply(this,arguments)}(0,e.get)(window,"wpseoIntegrationsData.site_kit_configuration.isFeatureEnabled",!1)&&is.push((0,d.jsx)(as,{installUrl:(0,e.get)(window,"wpseoIntegrationsData.site_kit_configuration.installUrl",""),activateUrl:(0,e.get)(window,"wpseoIntegrationsData.site_kit_configuration.activateUrl",""),setupUrl:(0,e.get)(window,"wpseoIntegrationsData.site_kit_configuration.setupUrl",""),updateUrl:(0,e.get)(window,"wpseoIntegrationsData.site_kit_configuration.updateUrl",""),consentManagementUrl:(0,e.get)(window,"wpseoIntegrationsData.site_kit_consent_management_url",""),capabilities:(0,e.get)(window,"wpseoIntegrationsData.site_kit_configuration.capabilities",{installPlugins:!1,viewSearchConsoleData:!1}),connectionStepsStatuses:(0,e.get)(window,"wpseoIntegrationsData.site_kit_configuration.connectionStepsStatuses",{isInstalled:!1,isActive:!1,isSetupCompleted:!1,isConsentGranted:!1}),isVersionSupported:(0,e.get)(window,"wpseoIntegrationsData.site_kit_configuration.isVersionSupported",!1)},ns.length));const Ts=[{name:"The Events Calendar",claim:c((0,a.sprintf)(/* translators: 1: bold open tag; 2: bold close tag. */ (0,a.__)("Get %1$srich results for your events%2$s in Google search","wordpress-seo"),"<strong>","</strong>"),{strong:(0,d.jsx)("strong",{})}),learnMoreLink:"https://yoa.st/integrations-about-tec",logoLink:"https://yoa.st/integrations-logo-tec",slug:"tec",description:(0,a.sprintf)(/* translators: 1: The Events Calendar, 2: Yoast SEO */ (0,a.__)("%1$s integrates with %2$s's Schema API to get rich snippets for your events!","wordpress-seo"),"The Events Calendar","Yoast SEO"),isPremium:!1,isNew:!1,isMultisiteAvailable:!0,logo:e=>x.createElement("svg",zs({xmlns:"http://www.w3.org/2000/svg",width:280,height:50,fill:"none",viewBox:"0 0 280 119"},e),ys||(ys=x.createElement("path",{fill:"#0F1031",fillRule:"evenodd",d:"M143.062 49.198c-2.457.997-4.731 1.535-6.384 1.446-2.141-.12-3.055-1.064-3.058-1.42-.002-.252.796-1.044 3.261-1.224.386-.027.794-.045 1.214-.045 1.684 0 3.558.277 4.967 1.243m4.595 21.714c-9.008 2.484-18.527.192-24.255-5.844-4.053-4.271-5.412-9.617-3.729-14.665 3.385-10.158 19.608-16.255 29.976-16.255.112 0 .223 0 .333.002 3.863.05 6.539.984 6.983 2.439.248.814-.34 2.24-1.573 3.812-2.175 2.774-5.481 5.288-8.844 7.133-2.132-2.34-5.552-3.404-9.925-3.089-4.869.354-6.585 2.717-6.568 4.81.02 2.282 2.233 4.715 6.425 4.948 2.538.138 5.571-.643 8.616-1.976.447 1.754.309 4.054-.423 6.798a1.783 1.783 0 0 0 3.444.918c.994-3.728 1.068-6.854.225-9.337 3.976-2.232 7.651-5.196 9.855-8.006 2.068-2.636 2.8-5.009 2.177-7.052-.452-1.483-1.517-2.66-3.122-3.494.122-13.393 2.496-22.644 4.634-22.657h.013c.314 0 .739.07 1.259.588 1.737 1.726 3.806 7.392 3.806 24.587 0 16.966-1.452 31.41-19.307 36.34M130.651 31.34c-.002-.045.004-.089-.002-.134l-.024-.198c-.256-3.658.183-6.54 1.298-8.086.554-.767 1.249-1.178 2.188-1.294 1.308-.157 2.372.18 3.266 1.039 1.731 1.664 2.741 5.262 2.645 9.198a49.245 49.245 0 0 0-8.894 3.117 38.759 38.759 0 0 1-.477-3.642m15.354-6.21c.657-.715 1.494-1.062 2.562-1.062 1.698 0 2.435.555 2.843.973.975.999 1.501 2.936 1.573 5.757a23.71 23.71 0 0 0-3.317-.215c-1.609 0-3.363.14-5.193.405-.079-2.585.461-4.692 1.532-5.858m19.667-17.675c-1.07-1.063-2.375-1.624-3.776-1.624h-.032c-4.696.028-6.316 7.035-7.127 12.303a80.347 80.347 0 0 0-.564 4.65c-.07-.078-.138-.159-.212-.233-1.325-1.359-3.141-2.047-5.394-2.047-2.063 0-3.857.765-5.187 2.214a7.868 7.868 0 0 0-1 1.406c-.588-1.547-1.409-2.947-2.533-4.027-1.668-1.604-3.801-2.298-6.171-2.007-1.91.235-3.516 1.184-4.644 2.746-.004.007-.008.015-.013.021-1.953-9.74-5.666-21.503-12.145-20.83-1.595.167-3.003 1.025-4.074 2.48-4.998 6.794-2.653 26.999-.48 37.866a1.784 1.784 0 0 0 2.098 1.398 1.782 1.782 0 0 0 1.398-2.097c-3.639-18.196-2.827-31.408-.144-35.054.63-.858 1.201-1.01 1.575-1.048 3.576-.372 7.982 12.124 9.842 27.896.149 1.953.445 3.782.73 5.203.001.007.004.013.006.02-5.356 3.087-9.776 7.308-11.534 12.584-2.113 6.337-.463 12.988 4.525 18.246 4.871 5.132 12.057 7.938 19.6 7.938 2.714 0 5.475-.363 8.19-1.113 20.246-5.588 21.923-22.003 21.923-39.775 0-15.205-1.544-23.821-4.857-27.116M16.222 96.908H.344A.344.344 0 0 0 0 97.25v2.724c0 .19.154.343.344.343h6.063v17.578c0 .189.154.344.344.344h3.094c.19 0 .344-.155.344-.344v-17.578h6.033c.19 0 .343-.153.343-.343V97.25a.344.344 0 0 0-.343-.344M27.218 102.231c-1.757 0-3.596.733-4.95 1.966v-6.946a.344.344 0 0 0-.343-.344H19.14a.344.344 0 0 0-.344.344v20.645c0 .19.154.344.344.344h2.785c.19 0 .343-.154.343-.344v-10.564c.74-.967 2.188-1.937 3.774-1.937 1.994 0 2.844.86 2.844 2.875v9.626c0 .19.154.344.344.344h2.786c.189 0 .343-.154.343-.344v-10.555c0-3.342-1.778-5.11-5.14-5.11M42.795 105.209c2.618 0 3.98 1.881 4.182 3.769H38.6c.288-1.888 1.686-3.769 4.196-3.769m0-2.978c-4.466 0-7.834 3.515-7.834 8.175 0 4.831 3.324 8.205 8.082 8.205 2.53 0 4.69-.805 6.245-2.326a.342.342 0 0 0 .04-.445l-1.3-1.826a.342.342 0 0 0-.527-.041c-.997 1.024-2.598 1.66-4.18 1.66-3 0-4.395-2.112-4.687-3.955h11.435c.19 0 .343-.154.343-.343v-.682c0-4.959-3.132-8.422-7.617-8.422M72.55 96.908H58.682a.344.344 0 0 0-.344.343v20.645c0 .189.155.344.344.344h13.866c.19 0 .344-.155.344-.344v-2.724a.344.344 0 0 0-.344-.343H62.122v-5.751h10.211c.19 0 .344-.154.344-.343v-2.724a.344.344 0 0 0-.344-.344h-10.21v-5.349h10.427c.19 0 .344-.153.344-.343V97.25a.344.344 0 0 0-.344-.344M89.791 102.603h-3.003a.342.342 0 0 0-.319.216l-4.354 10.93-4.355-10.93a.341.341 0 0 0-.319-.216H74.47a.344.344 0 0 0-.317.474l6.159 14.95a.342.342 0 0 0 .317.212h3.002c.14 0 .264-.083.318-.212l6.16-14.95a.343.343 0 0 0-.318-.474M98.372 105.209c2.618 0 3.979 1.881 4.182 3.769h-8.378c.287-1.888 1.686-3.769 4.196-3.769m0-2.978c-4.466 0-7.834 3.515-7.834 8.175 0 4.831 3.323 8.205 8.082 8.205 2.531 0 4.689-.805 6.245-2.326a.343.343 0 0 0 .039-.445l-1.3-1.826a.342.342 0 0 0-.526-.041c-.997 1.024-2.598 1.66-4.18 1.66-3.002 0-4.395-2.112-4.688-3.955h11.436a.344.344 0 0 0 .343-.343v-.682c0-4.959-3.132-8.422-7.617-8.422M116.983 102.231c-2.476 0-4.218 1.296-4.95 1.964v-1.249a.344.344 0 0 0-.344-.343h-2.785a.344.344 0 0 0-.344.343v14.95c0 .19.154.344.344.344h2.785c.19 0 .344-.154.344-.344v-10.564c.74-.967 2.188-1.937 3.773-1.937 1.967 0 2.845.905 2.845 2.937v9.564c0 .19.153.344.343.344h2.786a.345.345 0 0 0 .344-.344v-10.492c0-3.384-1.778-5.173-5.141-5.173M133.156 115.093a.344.344 0 0 0-.254-.226.358.358 0 0 0-.327.106c-.206.229-.688.475-1.261.475-1.031 0-1.111-1.135-1.111-1.483v-8.23h2.69a.344.344 0 0 0 .343-.343v-2.446a.344.344 0 0 0-.343-.343h-2.69v-3.742a.344.344 0 0 0-.344-.344h-2.785a.344.344 0 0 0-.344.344v3.742h-2.132a.344.344 0 0 0-.344.343v2.446c0 .189.154.343.344.343h2.132v8.849c0 2.597 1.386 4.027 3.903 4.027 1.369 0 2.397-.345 3.146-1.053a.345.345 0 0 0 .089-.36l-.712-2.105ZM142.473 108.616c-1.874-.437-3.201-.825-3.201-1.832 0-.991 1.043-1.606 2.721-1.606 1.677 0 3.31.668 4.161 1.701a.341.341 0 0 0 .265.125l.021-.001a.34.34 0 0 0 .269-.158l1.238-1.951a.345.345 0 0 0-.054-.433c-1.534-1.458-3.584-2.23-5.931-2.23-4.149 0-6.039 2.473-6.039 4.77 0 3.485 3.204 4.227 5.778 4.823 1.834.414 3.353.857 3.353 2.079 0 1.123-1.075 1.793-2.875 1.793-1.996 0-3.867-1.05-4.761-2.025a.344.344 0 0 0-.253-.112l-.028.002a.346.346 0 0 0-.26.155l-1.331 2.043a.343.343 0 0 0 .043.428c1.554 1.585 3.79 2.424 6.466 2.424 3.875 0 6.379-1.933 6.379-4.924 0-3.721-3.304-4.469-5.961-5.071M167.004 100.009c2.162 0 4.185 1.088 5.279 2.84a.351.351 0 0 0 .453.123l2.631-1.393a.344.344 0 0 0 .125-.494c-1.999-2.998-4.854-4.518-8.488-4.518-6.231 0-10.93 4.738-10.93 11.022s4.699 11.022 10.93 11.022c3.596 0 6.45-1.519 8.487-4.515a.346.346 0 0 0-.124-.497l-2.631-1.393a.352.352 0 0 0-.453.123c-1.095 1.752-3.117 2.84-5.279 2.84-3.89 0-6.504-3.046-6.504-7.58 0-4.605 2.553-7.58 6.504-7.58M187.429 112.195v2.302c-.746.925-2.05 1.477-3.494 1.477-1.821 0-3.092-1.081-3.092-2.627 0-1.548 1.271-2.629 3.092-2.629 1.444 0 2.748.552 3.494 1.477m-2.875-9.964c-2.507 0-4.65.856-6.369 2.544a.345.345 0 0 0-.05.428l1.207 1.92a.345.345 0 0 0 .534.059c1.264-1.265 2.653-1.88 4.244-1.88 2.01 0 3.309 1.031 3.309 2.628v1.649c-1.149-.98-2.717-1.498-4.546-1.498-2.67 0-5.544 1.638-5.544 5.234 0 3.44 2.856 5.296 5.544 5.296 1.781 0 3.349-.534 4.546-1.546v.831c0 .19.154.344.344.344h2.785c.19 0 .344-.154.344-.344v-10.09c0-3.543-2.314-5.575-6.348-5.575M198.111 96.908h-2.785a.344.344 0 0 0-.344.343v20.645c0 .189.154.344.344.344h2.785c.19 0 .344-.155.344-.344V97.251a.344.344 0 0 0-.344-.344M209.409 105.209c2.618 0 3.979 1.881 4.182 3.769h-8.378c.288-1.888 1.686-3.769 4.196-3.769m0-2.978c-4.466 0-7.833 3.515-7.833 8.175 0 4.831 3.323 8.205 8.081 8.205 2.531 0 4.69-.805 6.245-2.326a.343.343 0 0 0 .039-.445l-1.3-1.826a.342.342 0 0 0-.253-.144.369.369 0 0 0-.273.103c-.997 1.024-2.598 1.66-4.179 1.66-3.002 0-4.395-2.112-4.688-3.955h11.435c.19 0 .343-.154.343-.343v-.682c0-4.959-3.132-8.422-7.617-8.422M228.019 102.231c-2.476 0-4.217 1.296-4.949 1.964v-1.249a.344.344 0 0 0-.344-.343h-2.785a.344.344 0 0 0-.344.343v14.95c0 .19.154.344.344.344h2.785c.19 0 .344-.154.344-.344v-10.564c.74-.967 2.188-1.937 3.773-1.937 1.967 0 2.844.905 2.844 2.937v9.564c0 .19.154.344.344.344h2.786a.344.344 0 0 0 .343-.344v-10.492c0-3.384-1.777-5.173-5.141-5.173M247.307 107.352v6.17c-.775 1.134-2.335 1.926-3.804 1.926-2.497 0-4.175-2.014-4.175-5.011 0-3.016 1.678-5.042 4.175-5.042 1.432 0 3.028.822 3.804 1.957m3.129-10.445h-2.785a.344.344 0 0 0-.344.344v6.935c-1.238-1.262-2.846-1.955-4.546-1.955-4.205 0-7.03 3.298-7.03 8.206 0 4.889 2.825 8.174 7.03 8.174 1.674 0 3.321-.702 4.546-1.93v1.215c0 .189.154.344.344.344h2.785c.19 0 .344-.155.344-.344V97.251a.344.344 0 0 0-.344-.344M264.084 112.195v2.302c-.746.925-2.05 1.477-3.495 1.477-1.82 0-3.091-1.081-3.091-2.627 0-1.548 1.271-2.629 3.091-2.629 1.445 0 2.749.552 3.495 1.477m-2.875-9.964c-2.507 0-4.65.856-6.37 2.544a.345.345 0 0 0-.049.428l1.207 1.92a.343.343 0 0 0 .533.059c1.265-1.265 2.653-1.88 4.245-1.88 2.01 0 3.309 1.031 3.309 2.628v1.649c-1.149-.98-2.718-1.498-4.547-1.498-2.67 0-5.543 1.638-5.543 5.234 0 3.44 2.856 5.296 5.543 5.296 1.781 0 3.35-.534 4.547-1.546v.831c0 .19.154.344.344.344h2.785c.19 0 .344-.154.344-.344v-10.09c0-3.543-2.314-5.575-6.348-5.575M279.656 102.262c-1.614 0-3.262.748-4.546 2.057v-1.373a.344.344 0 0 0-.344-.343h-2.786a.344.344 0 0 0-.343.343v14.95c0 .189.154.343.343.343h2.786a.344.344 0 0 0 .344-.343v-10.304c.645-1.006 2.349-1.919 3.587-1.919.34 0 .629.028.885.085a.343.343 0 0 0 .418-.335v-2.817a.344.344 0 0 0-.344-.344",clipRule:"evenodd"})))},{name:"Seriously Simple Podcasting",claim:c((0,a.sprintf)(/* translators: 1: bold open tag; 2: bold close tag. */ (0,a.__)("Get %1$srich results for your podcast%2$s in Google search","wordpress-seo"),"<strong>","</strong>"),{strong:(0,d.jsx)("strong",{})}),learnMoreLink:"https://yoa.st/integrations-about-ssp",logoLink:"https://yoa.st/integrations-logo-ssp",slug:"ssp",description:(0,a.sprintf)(/* translators: 1: Seriously Simple Podcasting, 2: Yoast SEO */ @@ -40,8 +39,8 @@ (0,a.__)("Get %1$srich results for your digital products%2$s in Google search","wordpress-seo"),"<strong>","</strong>"),{strong:(0,d.jsx)("strong",{})}),learnMoreLink:"https://yoa.st/integrations-about-edd",logoLink:"https://yoa.st/integrations-logo-edd",upsellLink:"https://yoa.st/get-edd-integration",slug:"edd",description:(0,a.sprintf)(/* translators: 1: Easy Digital Downloads, 2: Yoast SEO */ (0,a.__)("%2$s integrates %1$s' Schema output into its own to get rich snippets for your digital products!","wordpress-seo"),"Easy Digital Downloads","Yoast SEO"),isPremium:!0,isNew:!1,isMultisiteAvailable:!0,logo:e=>x.createElement("svg",Rs({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:130,height:60,style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:1.41421},viewBox:"0 0 339 157"},e),x.createElement("path",{d:"M206.613 15.378C197.114 5.876 183.985 0 169.488 0c-14.501 0-27.628 5.876-37.13 15.378-9.504 9.502-15.38 22.631-15.38 37.13 0 14.499 5.876 27.628 15.378 37.13 9.502 9.504 22.631 15.378 37.132 15.378 14.499 0 27.628-5.879 37.127-15.378 9.502-9.504 15.378-22.631 15.378-37.13 0-14.499-5.878-27.628-15.38-37.13Zm-1.732 72.524c-9.057 9.058-21.572 14.661-35.395 14.661-13.823 0-26.339-5.603-35.397-14.661s-14.661-21.572-14.661-35.394c0-13.823 5.603-26.337 14.661-35.395 9.058-9.058 21.572-14.661 35.395-14.661 13.823 0 26.337 5.603 35.395 14.661 9.058 9.058 14.66 21.572 14.66 35.395.002 13.822-5.601 26.337-14.658 35.394Z",style:{fill:"#35495c",fillRule:"nonzero"}}),x.createElement("path",{d:"M214.656 52.07c-.236-24.746-20.367-44.734-45.168-44.734-24.803 0-44.936 19.99-45.168 44.736l20.712-20.712 6.946 6.946-15.157 15.157h65.333l-15.157-15.157 6.946-6.946 20.713 20.71Zm-45.17-7.762L150.24 24.112h12.79v-9.955c0-2.584 2.906-4.702 6.456-4.702 3.55 0 6.456 2.116 6.456 4.702v9.955h12.79l-19.246 20.196ZM175.1 77.93c-1.026-.667-2.326-1.267-3.894-1.788-1.199-.413-2.186-.803-2.956-1.179-.764-.372-1.328-.785-1.689-1.221-.37-.444-.543-.976-.543-1.586 0-.488.147-.952.462-1.391.309-.438.792-.803 1.448-1.079.663-.28 1.507-.431 2.555-.436.844.004 1.615.072 2.312.193.689.125 1.3.276 1.823.449.53.179.958.348 1.295.507l1.166-3.516c-.705-.354-1.588-.648-2.66-.886-.91-.201-1.952-.317-3.135-.357v-3.638h-3.205v3.82c-.514.083-1.007.195-1.473.33-1.179.348-2.192.831-3.03 1.462-.831.628-1.475 1.363-1.917 2.205-.444.842-.663 1.77-.672 2.768.006 1.155.309 2.173.906 3.052.597.88 1.448 1.643 2.547 2.297 1.094.652 2.4 1.214 3.91 1.687 1.133.363 2.057.742 2.761 1.131.705.387 1.221.814 1.542 1.28.328.466.49 1.006.484 1.61 0 .663-.195 1.238-.575 1.735-.376.49-.932.875-1.663 1.148-.731.276-1.623.411-2.669.42a15.281 15.281 0 0 1-2.481-.217 15.934 15.934 0 0 1-2.24-.562 11.92 11.92 0 0 1-1.838-.766l-1.127 3.662c.51.28 1.146.532 1.925.764.779.234 1.636.42 2.575.562.932.138 1.89.208 2.864.217l.171-.002v3.761h3.205v-4.063a12.43 12.43 0 0 0 1.162-.282c1.286-.387 2.354-.915 3.199-1.591.851-.67 1.481-1.446 1.899-2.321a6.4 6.4 0 0 0 .624-2.787c0-1.155-.247-2.177-.757-3.056-.515-.887-1.281-1.664-2.311-2.336ZM3.999 141.181c0 .701.099 1.38.298 2.034a4.99 4.99 0 0 0 .894 1.719c.397.491.9.883 1.508 1.175.608.293 1.333.439 2.175.439 1.169 0 2.11-.251 2.824-.754.713-.502 1.245-1.256 1.596-2.262h3.788a7.544 7.544 0 0 1-1.087 2.631 7.563 7.563 0 0 1-1.859 1.946 8.036 8.036 0 0 1-2.438 1.193 9.852 9.852 0 0 1-2.824.403c-1.427 0-2.689-.234-3.788-.701a7.828 7.828 0 0 1-2.789-1.965c-.76-.842-1.333-1.847-1.719-3.016-.385-1.17-.578-2.456-.578-3.859 0-1.286.205-2.508.614-3.665a9.387 9.387 0 0 1 1.754-3.052 8.378 8.378 0 0 1 2.754-2.087c1.075-.514 2.291-.772 3.648-.772 1.426 0 2.706.298 3.841.894a8.437 8.437 0 0 1 2.824 2.368c.748.982 1.292 2.111 1.631 3.385.339 1.275.427 2.59.263 3.946H3.999Zm9.33-2.631a6.468 6.468 0 0 0-.404-1.824 4.885 4.885 0 0 0-.912-1.526 4.534 4.534 0 0 0-1.403-1.052 4.132 4.132 0 0 0-1.841-.404c-.702 0-1.339.123-1.912.369a4.369 4.369 0 0 0-1.473 1.017 5.038 5.038 0 0 0-.982 1.526 5.306 5.306 0 0 0-.403 1.894h9.33ZM35.567 145.18c0 .491.064.842.193 1.052.128.21.38.316.754.316h.421c.163 0 .351-.023.561-.07v2.771c-.14.047-.322.099-.544.158-.223.058-.45.111-.684.158a7.387 7.387 0 0 1-1.298.14c-.819 0-1.497-.164-2.034-.491-.538-.327-.889-.9-1.052-1.719-.795.771-1.771 1.333-2.929 1.683-1.157.351-2.274.526-3.35.526a8.215 8.215 0 0 1-2.35-.333 6.15 6.15 0 0 1-1.982-.982 4.705 4.705 0 0 1-1.368-1.649c-.339-.666-.509-1.444-.509-2.333 0-1.122.204-2.034.614-2.736a4.557 4.557 0 0 1 1.613-1.649 7.278 7.278 0 0 1 2.245-.859c.83-.175 1.666-.31 2.508-.404.725-.14 1.415-.239 2.069-.298a9.71 9.71 0 0 0 1.736-.298c.503-.14.9-.356 1.193-.649.292-.292.438-.73.438-1.315 0-.514-.123-.935-.368-1.263a2.479 2.479 0 0 0-.912-.754 3.972 3.972 0 0 0-1.21-.351 9.788 9.788 0 0 0-1.263-.088c-1.122 0-2.047.234-2.771.702-.725.468-1.135 1.193-1.228 2.175h-3.999c.07-1.169.351-2.14.842-2.911a5.816 5.816 0 0 1 1.877-1.859 7.688 7.688 0 0 1 2.578-.982 15.35 15.35 0 0 1 2.946-.281c.888 0 1.765.094 2.631.281a7.5 7.5 0 0 1 2.333.912 5.065 5.065 0 0 1 1.666 1.631c.421.666.631 1.479.631 2.438v9.331h.002Zm-3.998-5.052c-.608.398-1.356.638-2.245.719-.889.082-1.777.205-2.666.369-.421.07-.83.17-1.228.298a3.69 3.69 0 0 0-1.052.526 2.316 2.316 0 0 0-.719.877c-.175.363-.263.801-.263 1.315 0 .445.128.819.386 1.123.257.304.567.543.93.719.362.175.759.298 1.193.368.432.071.824.105 1.175.105.444 0 .924-.058 1.438-.175.514-.117 1-.316 1.456-.596.456-.28.836-.636 1.14-1.07.304-.432.456-.964.456-1.596v-2.982h-.001ZM42.898 143.39c.117 1.17.561 1.988 1.333 2.456.772.468 1.695.701 2.771.701.374 0 .801-.029 1.28-.088.479-.058.93-.169 1.351-.333a2.531 2.531 0 0 0 1.035-.719c.268-.316.391-.731.368-1.245-.024-.514-.21-.935-.561-1.263-.351-.327-.801-.59-1.35-.789a13.15 13.15 0 0 0-1.877-.509 85.428 85.428 0 0 1-2.14-.456 19.787 19.787 0 0 1-2.157-.596 6.942 6.942 0 0 1-1.859-.947 4.36 4.36 0 0 1-1.315-1.526c-.328-.619-.491-1.386-.491-2.298 0-.982.239-1.806.719-2.473a5.506 5.506 0 0 1 1.824-1.613 7.934 7.934 0 0 1 2.455-.859c.9-.163 1.759-.245 2.578-.245.935 0 1.829.1 2.683.298a7.311 7.311 0 0 1 2.315.965 5.684 5.684 0 0 1 1.719 1.736c.456.714.742 1.573.86 2.578h-4.174c-.188-.958-.626-1.601-1.316-1.929-.69-.327-1.479-.491-2.368-.491-.281 0-.614.024-.999.07a4.647 4.647 0 0 0-1.087.263 2.29 2.29 0 0 0-.859.561c-.234.246-.351.567-.351.965 0 .491.169.889.509 1.193.339.304.783.556 1.333.754.549.199 1.175.368 1.876.508.702.14 1.426.293 2.175.456.724.164 1.438.363 2.14.596.701.234 1.327.55 1.877.947a4.6 4.6 0 0 1 1.333 1.508c.339.609.508 1.356.508 2.245 0 1.076-.246 1.988-.737 2.736a5.805 5.805 0 0 1-1.912 1.824 8.677 8.677 0 0 1-2.613 1.017c-.959.21-1.906.316-2.841.316-1.146 0-2.204-.129-3.174-.386-.971-.257-1.812-.649-2.525-1.175a5.66 5.66 0 0 1-1.684-1.964c-.409-.784-.626-1.713-.649-2.789h3.997ZM56.086 131.079h4.385l4.735 13.539h.07l4.595-13.539h4.174l-7.05 19.116a142.32 142.32 0 0 1-.965 2.35 8.449 8.449 0 0 1-1.157 1.982 5 5 0 0 1-1.701 1.368c-.678.339-1.543.509-2.596.509-.936 0-1.859-.07-2.771-.21v-3.368c.327.047.643.1.947.158.304.058.619.088.947.088.467 0 .853-.058 1.157-.175a1.93 1.93 0 0 0 .754-.509c.198-.223.368-.486.509-.79.14-.304.268-.655.386-1.052l.456-1.403-6.875-18.064ZM90.18 149.213v-3.438h-.07a5.2 5.2 0 0 1-1.035 1.614 6.68 6.68 0 0 1-1.561 1.245 8.07 8.07 0 0 1-1.877.789 7.308 7.308 0 0 1-1.982.281c-1.38 0-2.578-.251-3.595-.754a7.19 7.19 0 0 1-2.543-2.069c-.679-.877-1.181-1.894-1.508-3.052a13.386 13.386 0 0 1-.491-3.666c0-1.286.163-2.508.491-3.665.327-1.157.83-2.175 1.508-3.052a7.37 7.37 0 0 1 2.543-2.087c1.017-.514 2.215-.772 3.595-.772.678 0 1.339.082 1.982.245a6.668 6.668 0 0 1 1.807.754 6.366 6.366 0 0 1 1.491 1.245 5.244 5.244 0 0 1 1 1.719h.07v-10.382h2.21v25.044H90.18v.001Zm-12.119-6.261a7.713 7.713 0 0 0 1.052 2.473 5.783 5.783 0 0 0 1.842 1.771c.748.456 1.649.684 2.701.684 1.169 0 2.157-.228 2.964-.684a5.854 5.854 0 0 0 1.964-1.771 7.272 7.272 0 0 0 1.087-2.473c.222-.924.333-1.853.333-2.789 0-.935-.111-1.864-.333-2.788a7.32 7.32 0 0 0-1.087-2.473 5.857 5.857 0 0 0-1.964-1.772c-.807-.456-1.795-.684-2.964-.684-1.052 0-1.953.228-2.701.684a5.786 5.786 0 0 0-1.842 1.772 7.69 7.69 0 0 0-1.052 2.473 11.893 11.893 0 0 0-.333 2.788c0 .936.111 1.866.333 2.789ZM98.668 124.169v3.543h-2.21v-3.543h2.21Zm0 6.945v18.099h-2.21v-18.099h2.21ZM117.767 151.353c-.293 1.076-.754 1.988-1.386 2.736-.632.748-1.456 1.321-2.473 1.719-1.017.397-2.263.596-3.736.596a11.21 11.21 0 0 1-2.666-.316 7.566 7.566 0 0 1-2.332-.982 5.83 5.83 0 0 1-1.719-1.701c-.456-.69-.719-1.514-.789-2.473h2.21c.117.678.345 1.245.684 1.702.339.456.748.824 1.228 1.105a5.45 5.45 0 0 0 1.596.614 8.33 8.33 0 0 0 1.789.193c2.057 0 3.543-.585 4.455-1.754.912-1.17 1.368-2.853 1.368-5.051v-2.456h-.07a6.466 6.466 0 0 1-2.262 2.701c-.994.678-2.157 1.017-3.49 1.017-1.45 0-2.689-.24-3.718-.719s-1.877-1.14-2.543-1.982c-.666-.842-1.152-1.829-1.456-2.964a13.97 13.97 0 0 1-.456-3.63c0-1.239.181-2.414.544-3.525.362-1.11.888-2.081 1.578-2.911a7.341 7.341 0 0 1 2.561-1.964c1.017-.479 2.18-.719 3.49-.719a6.36 6.36 0 0 1 1.912.281c.596.188 1.14.45 1.631.789.491.339.93.731 1.316 1.175.386.445.684.912.894 1.403h.07v-3.122h2.21v16.626c-.001 1.332-.148 2.536-.44 3.612Zm-5.068-4.823a5.762 5.762 0 0 0 1.824-1.613 7.108 7.108 0 0 0 1.105-2.297 9.7 9.7 0 0 0 .368-2.666c0-.888-.105-1.777-.316-2.666a7.709 7.709 0 0 0-1.017-2.42 5.534 5.534 0 0 0-1.806-1.754c-.737-.444-1.631-.666-2.683-.666-1.052 0-1.953.216-2.701.649a5.76 5.76 0 0 0-1.859 1.701 7.118 7.118 0 0 0-1.07 2.403c-.223.9-.333 1.818-.333 2.754 0 .912.117 1.801.351 2.666a6.82 6.82 0 0 0 1.087 2.297 5.616 5.616 0 0 0 1.859 1.613c.748.41 1.636.614 2.666.614.958-.001 1.8-.205 2.525-.615ZM124.66 124.169v3.543h-2.21v-3.543h2.21Zm0 6.945v18.099h-2.21v-18.099h2.21ZM136.094 131.114v1.859h-3.683v12.207c0 .725.099 1.292.298 1.701.198.41.696.638 1.491.684.631 0 1.263-.035 1.894-.105v1.859c-.328 0-.655.011-.982.035-.328.023-.655.035-.982.035-1.473 0-2.503-.286-3.087-.86-.585-.573-.865-1.631-.842-3.174v-12.382h-3.157v-1.859h3.157v-5.437h2.21v5.437h3.683ZM139.742 133.92a5.183 5.183 0 0 1 1.526-1.894c.643-.491 1.397-.853 2.262-1.087.865-.233 1.824-.351 2.877-.351.794 0 1.59.076 2.385.228a5.785 5.785 0 0 1 2.14.859c.631.421 1.146 1.012 1.543 1.772s.596 1.748.596 2.964v9.611c0 .888.433 1.332 1.298 1.332.257 0 .491-.047.701-.14v1.859c-.257.047-.486.082-.684.105a6.52 6.52 0 0 1-.754.035c-.561 0-1.011-.075-1.35-.228a1.819 1.819 0 0 1-.79-.649 2.432 2.432 0 0 1-.368-1 8.508 8.508 0 0 1-.088-1.281h-.07a14.82 14.82 0 0 1-1.21 1.561 5.98 5.98 0 0 1-1.368 1.14 6.291 6.291 0 0 1-1.719.701c-.643.163-1.409.246-2.297.246-.842 0-1.631-.1-2.367-.298a5.292 5.292 0 0 1-1.929-.947 4.52 4.52 0 0 1-1.298-1.649c-.316-.666-.474-1.455-.474-2.367 0-1.263.281-2.251.842-2.964.562-.713 1.303-1.256 2.227-1.631.924-.374 1.965-.637 3.122-.789 1.157-.152 2.333-.298 3.525-.438.467-.047.877-.105 1.228-.175.351-.07.643-.193.877-.368.233-.175.414-.415.543-.719.128-.304.193-.702.193-1.193 0-.748-.123-1.362-.369-1.841a2.918 2.918 0 0 0-1.017-1.14 4.098 4.098 0 0 0-1.508-.579 10.227 10.227 0 0 0-1.842-.158c-1.403 0-2.549.333-3.437 1-.889.666-1.356 1.736-1.404 3.209h-2.21c.071-1.052.293-1.964.668-2.736Zm11.049 5.402c-.141.258-.41.445-.807.561a8.058 8.058 0 0 1-1.052.245c-.936.164-1.9.311-2.894.439-.994.129-1.9.322-2.718.579-.819.258-1.491.626-2.017 1.105-.526.48-.789 1.163-.789 2.052 0 .562.111 1.059.333 1.491.222.433.52.807.894 1.123.374.316.807.556 1.298.719.491.164.994.246 1.508.246.842 0 1.649-.128 2.42-.386a5.951 5.951 0 0 0 2.017-1.123 5.455 5.455 0 0 0 1.368-1.789c.339-.702.509-1.496.509-2.385v-2.876h-.07v-.001ZM157.525 124.169h2.21v25.044h-2.21zM181.061 149.213h-3.788v-2.455h-.07c-.538 1.052-1.321 1.806-2.35 2.262a7.965 7.965 0 0 1-3.262.684c-1.427 0-2.672-.251-3.736-.754-1.064-.502-1.947-1.186-2.648-2.052-.702-.865-1.228-1.888-1.578-3.069-.351-1.18-.526-2.449-.526-3.806 0-1.636.222-3.052.666-4.244.444-1.193 1.035-2.175 1.772-2.946a6.852 6.852 0 0 1 2.525-1.701 8.047 8.047 0 0 1 2.894-.544 9.62 9.62 0 0 1 1.719.158 7.559 7.559 0 0 1 1.683.509 6.659 6.659 0 0 1 1.491.894c.456.363.836.789 1.14 1.28h.071v-9.26h3.998v25.044h-.001Zm-13.96-8.874c0 .772.099 1.532.298 2.28.198.748.503 1.415.912 1.999.409.585.93 1.053 1.561 1.404.632.35 1.379.526 2.245.526.888 0 1.654-.187 2.298-.561a4.758 4.758 0 0 0 1.578-1.473 6.672 6.672 0 0 0 .912-2.052c.198-.76.298-1.538.298-2.333 0-2.01-.45-3.577-1.351-4.7-.901-1.123-2.122-1.684-3.665-1.684-.936 0-1.725.193-2.368.579a4.862 4.862 0 0 0-1.578 1.508 6.281 6.281 0 0 0-.877 2.105 10.981 10.981 0 0 0-.263 2.402ZM193.724 149.704c-1.45 0-2.742-.24-3.876-.719-1.135-.479-2.093-1.14-2.876-1.982-.784-.842-1.38-1.847-1.789-3.017-.409-1.169-.613-2.455-.613-3.859 0-1.379.204-2.653.613-3.823.409-1.169 1.006-2.175 1.789-3.017.783-.842 1.742-1.502 2.876-1.982 1.134-.479 2.426-.719 3.876-.719 1.45 0 2.742.24 3.876.719 1.134.48 2.093 1.14 2.877 1.982.783.842 1.379 1.848 1.789 3.017.409 1.17.614 2.444.614 3.823 0 1.404-.205 2.69-.614 3.859-.409 1.17-1.006 2.175-1.789 3.017-.784.842-1.743 1.503-2.877 1.982-1.134.479-2.427.719-3.876.719Zm0-3.157c.888 0 1.66-.187 2.315-.561a4.876 4.876 0 0 0 1.614-1.473 6.434 6.434 0 0 0 .93-2.052 9.219 9.219 0 0 0 0-4.648 6.204 6.204 0 0 0-.93-2.052 4.969 4.969 0 0 0-1.614-1.456c-.655-.374-1.427-.561-2.315-.561-.889 0-1.66.188-2.315.561a4.943 4.943 0 0 0-1.613 1.456 6.204 6.204 0 0 0-.93 2.052 9.174 9.174 0 0 0 0 4.648c.198.76.509 1.444.93 2.052a4.873 4.873 0 0 0 1.613 1.473c.654.375 1.426.561 2.315.561ZM204.562 131.079h4.244l3.543 13.539h.071l3.402-13.539h4.034l3.262 13.539h.071l3.683-13.539h4.069l-5.682 18.134h-4.104l-3.367-13.469h-.07l-3.332 13.469h-4.209l-5.615-18.134ZM233.499 131.079h3.788v2.666l.07.07a6.711 6.711 0 0 1 2.385-2.368c.982-.573 2.069-.859 3.262-.859 1.987 0 3.554.515 4.7 1.543 1.146 1.029 1.719 2.573 1.719 4.63v12.452h-3.998v-11.4c-.047-1.426-.351-2.461-.912-3.104-.562-.643-1.438-.965-2.631-.965-.678 0-1.286.123-1.824.369a3.953 3.953 0 0 0-1.368 1.017 4.807 4.807 0 0 0-.877 1.526 5.438 5.438 0 0 0-.316 1.859v10.698h-3.998v-18.134ZM253.738 124.169h3.999v25.044h-3.999zM270.399 149.704c-1.45 0-2.742-.24-3.876-.719-1.135-.479-2.093-1.14-2.876-1.982-.784-.842-1.38-1.847-1.789-3.017-.409-1.169-.613-2.455-.613-3.859 0-1.379.204-2.653.613-3.823.409-1.169 1.006-2.175 1.789-3.017.783-.842 1.742-1.502 2.876-1.982 1.134-.479 2.426-.719 3.876-.719 1.45 0 2.742.24 3.876.719 1.134.48 2.093 1.14 2.877 1.982.783.842 1.379 1.848 1.789 3.017.409 1.17.614 2.444.614 3.823 0 1.404-.205 2.69-.614 3.859-.409 1.17-1.006 2.175-1.789 3.017-.784.842-1.743 1.503-2.877 1.982-1.135.479-2.427.719-3.876.719Zm0-3.157c.888 0 1.66-.187 2.315-.561a4.876 4.876 0 0 0 1.614-1.473 6.434 6.434 0 0 0 .93-2.052 9.219 9.219 0 0 0 0-4.648 6.204 6.204 0 0 0-.93-2.052 4.969 4.969 0 0 0-1.614-1.456c-.655-.374-1.427-.561-2.315-.561-.889 0-1.66.188-2.315.561a4.943 4.943 0 0 0-1.613 1.456 6.204 6.204 0 0 0-.93 2.052 9.174 9.174 0 0 0 0 4.648c.198.76.509 1.444.93 2.052a4.873 4.873 0 0 0 1.613 1.473c.654.375 1.426.561 2.315.561ZM298.073 145.18c0 .491.064.842.193 1.052.128.21.38.316.754.316h.421c.163 0 .35-.023.561-.07v2.771c-.14.047-.321.099-.543.158-.223.058-.451.111-.684.158a7.387 7.387 0 0 1-1.298.14c-.818 0-1.497-.164-2.034-.491-.538-.327-.889-.9-1.052-1.719-.795.771-1.772 1.333-2.929 1.683-1.158.351-2.274.526-3.349.526a8.215 8.215 0 0 1-2.35-.333 6.15 6.15 0 0 1-1.982-.982 4.705 4.705 0 0 1-1.368-1.649c-.339-.666-.509-1.444-.509-2.333 0-1.122.205-2.034.614-2.736a4.552 4.552 0 0 1 1.614-1.649 7.282 7.282 0 0 1 2.244-.859c.83-.175 1.666-.31 2.508-.404.725-.14 1.415-.239 2.069-.298a9.695 9.695 0 0 0 1.736-.298c.503-.14.9-.356 1.193-.649.292-.292.439-.73.439-1.315 0-.514-.123-.935-.369-1.263a2.479 2.479 0 0 0-.912-.754 3.972 3.972 0 0 0-1.21-.351 9.788 9.788 0 0 0-1.263-.088c-1.123 0-2.047.234-2.771.702-.725.468-1.135 1.193-1.228 2.175h-3.999c.071-1.169.351-2.14.842-2.911a5.806 5.806 0 0 1 1.877-1.859 7.671 7.671 0 0 1 2.578-.982 15.36 15.36 0 0 1 2.947-.281c.888 0 1.765.094 2.631.281a7.5 7.5 0 0 1 2.333.912 5.065 5.065 0 0 1 1.666 1.631c.421.666.631 1.479.631 2.438v9.331h-.001Zm-3.998-5.052c-.609.398-1.357.638-2.245.719-.889.082-1.777.205-2.666.369-.421.07-.83.17-1.228.298a3.71 3.71 0 0 0-1.053.526 2.326 2.326 0 0 0-.719.877c-.175.363-.263.801-.263 1.315 0 .445.128.819.386 1.123a2.8 2.8 0 0 0 .929.719c.363.175.76.298 1.193.368.432.071.824.105 1.175.105a6.51 6.51 0 0 0 1.438-.175c.515-.117 1-.316 1.456-.596a3.82 3.82 0 0 0 1.14-1.07c.304-.432.456-.964.456-1.596v-2.982h.001ZM319.47 149.213h-3.788v-2.455h-.07c-.538 1.052-1.321 1.806-2.35 2.262a7.965 7.965 0 0 1-3.262.684c-1.427 0-2.672-.251-3.736-.754-1.064-.502-1.947-1.186-2.648-2.052-.702-.865-1.228-1.888-1.578-3.069-.351-1.18-.526-2.449-.526-3.806 0-1.636.222-3.052.666-4.244.444-1.193 1.035-2.175 1.772-2.946a6.852 6.852 0 0 1 2.525-1.701 8.047 8.047 0 0 1 2.894-.544 9.62 9.62 0 0 1 1.719.158 7.559 7.559 0 0 1 1.683.509 6.659 6.659 0 0 1 1.491.894c.456.363.836.789 1.14 1.28h.071v-9.26h3.998v25.044h-.001Zm-13.96-8.874c0 .772.099 1.532.298 2.28.198.748.503 1.415.912 1.999.409.585.93 1.053 1.561 1.404.632.35 1.379.526 2.245.526.888 0 1.654-.187 2.298-.561a4.758 4.758 0 0 0 1.578-1.473 6.672 6.672 0 0 0 .912-2.052c.198-.76.298-1.538.298-2.333 0-2.01-.45-3.577-1.351-4.7-.901-1.123-2.122-1.684-3.665-1.684-.936 0-1.725.193-2.368.579a4.862 4.862 0 0 0-1.578 1.508 6.281 6.281 0 0 0-.877 2.105 10.92 10.92 0 0 0-.263 2.402ZM326.836 143.39c.117 1.17.561 1.988 1.333 2.456.772.468 1.695.701 2.771.701.373 0 .801-.029 1.28-.088.479-.058.93-.169 1.351-.333a2.528 2.528 0 0 0 1.034-.719c.269-.316.392-.731.369-1.245-.024-.514-.211-.935-.561-1.263-.351-.327-.801-.59-1.351-.789a13.17 13.17 0 0 0-1.876-.509 85.428 85.428 0 0 1-2.14-.456 19.787 19.787 0 0 1-2.157-.596 6.942 6.942 0 0 1-1.859-.947 4.36 4.36 0 0 1-1.315-1.526c-.328-.619-.491-1.386-.491-2.298 0-.982.24-1.806.719-2.473a5.495 5.495 0 0 1 1.824-1.613 7.934 7.934 0 0 1 2.455-.859c.9-.163 1.76-.245 2.578-.245.935 0 1.83.1 2.684.298a7.311 7.311 0 0 1 2.315.965 5.684 5.684 0 0 1 1.719 1.736c.456.714.742 1.573.86 2.578h-4.174c-.187-.958-.626-1.601-1.315-1.929-.69-.327-1.479-.491-2.367-.491-.281 0-.614.024-1 .07a4.647 4.647 0 0 0-1.087.263 2.303 2.303 0 0 0-.86.561c-.234.245-.35.567-.35.965 0 .491.169.889.508 1.193.339.304.784.556 1.333.754.549.199 1.175.368 1.877.508.701.14 1.426.293 2.174.456.725.164 1.438.363 2.14.596a6.93 6.93 0 0 1 1.876.947 4.6 4.6 0 0 1 1.333 1.508c.339.609.509 1.356.509 2.245 0 1.076-.246 1.988-.737 2.736a5.824 5.824 0 0 1-1.912 1.824 8.688 8.688 0 0 1-2.613 1.017c-.959.21-1.906.316-2.841.316-1.146 0-2.204-.129-3.174-.386-.971-.257-1.813-.649-2.526-1.175a5.647 5.647 0 0 1-1.683-1.964c-.41-.784-.626-1.713-.649-2.789h3.996Z",style:{fill:"#35495c",fillRule:"nonzero"}}))},{name:"WP Recipe Maker",claim:c((0,a.sprintf)(/* translators: 1: bold open tag; 2: bold close tag. */ (0,a.__)("Get %1$srich results for your recipes%2$s in Google search","wordpress-seo"),"<strong>","</strong>"),{strong:(0,d.jsx)("strong",{})}),learnMoreLink:"https://yoa.st/integrations-about-wp-recipemaker",logoLink:"https://yoa.st/integrations-logo-wp-recipemaker",slug:"wp-recipe-maker",description:(0,a.sprintf)(/* translators: 1: Seriously Simple Podcasting, 2: Yoast SEO */ -(0,a.__)("%1$s integrates with %2$s's Schema API to get rich snippets for your recipes!","wordpress-seo"),"WP Recipe Maker","Yoast SEO"),isPremium:!1,isNew:!1,isMultisiteAvailable:!0,logo:e=>x.createElement("svg",Ns({xmlns:"http://www.w3.org/2000/svg",width:185,"aria-hidden":"true",viewBox:"0 0 1488.21 189.15"},e),us||(us=x.createElement("rect",{width:23.81,height:26.01,x:113.83,y:17.03,fill:"#3a5160",rx:4,ry:4,transform:"rotate(-10 125.733 30.062)"})),vs||(vs=x.createElement("rect",{width:23.81,height:26.01,x:119.56,y:49.62,fill:"#3a5160",rx:4,ry:4,transform:"rotate(-10 131.463 62.64)"})),fs||(fs=x.createElement("path",{fill:"#010101",d:"M1120.63 107.35c-2.45 8.59-4.88 17.07-7.33 25.62-3.61-.29-7.03-.55-10.43-.83-1.86-.15-3.71-.42-5.57-.45-1.3-.02-1.94-.36-2.25-1.74-3.51-15.67-7.15-31.32-10.65-47-2.81-12.58-5.48-25.18-8.27-37.77-.26-1.17-.89-2.26-1.69-3.33.53 34.76 1.77 69.45 3.62 104.35-8.55-.78-16.89-1.54-25.37-2.31-1.24-42.47-3.33-84.87 1.77-127.36 3.42.26 6.78.51 10.13.77 8.19.65 16.38 1.33 24.58 1.92 1.11.08 1.54.43 1.82 1.46 4.04 14.57 7.19 29.33 9.99 44.17 1.23 6.51 2.43 13.02 3.64 19.53.03.18.1.35.27.93 7.73-24.53 13.76-49.07 18.93-73.99 2.23.17 4.42.31 6.61.5 8.44.73 16.87 1.47 25.31 2.21 1.05.09 2.11.21 3.17.25.97.03 1.37.34 1.39 1.41.21 8.53.65 17.05.74 25.58.26 23.65.55 47.3.48 70.95-.03 11.06-.84 22.13-1.31 33.19-.03.73-.14 1.45-.22 2.28-8.85-.83-17.5-1.63-26.35-2.46 3.22-33.66 3.51-67.33 4.22-100.99-.27-.06-.54-.13-.81-.19-.52 1.33-1.18 2.62-1.53 3.99-1.39 5.46-2.64 10.95-4.02 16.42-3.6 14.26-7.23 28.51-10.87 42.88ZM265.8 87.29c-2.62 11.14-5.09 22.19-7.86 33.17-1.9 7.51-4.21 14.92-6.35 22.37-.08.28-.24.53-.4.89-3.54-.27-7.05-.53-10.56-.8-2.11-.16-4.22-.4-6.33-.49-1.11-.05-1.61-.3-1.85-1.54-2.74-14.44-5.65-28.85-8.35-43.29-2.31-12.35-4.52-24.72-6.57-37.11-1.61-9.76-2.95-19.56-4.35-29.35-.85-5.96-1.59-11.93-2.36-17.9-.06-.48 0-.98 0-1.63 8.26.69 16.46 1.38 24.63 2.06 3.21 29.25 6.41 58.4 9.61 87.54.24.02.47.03.71.05 3.2-12.67 5.75-25.49 8.2-38.32 2.46-12.87 4.49-25.83 6.73-38.86 6.2.55 12.56 1.12 19.02 1.7 2.28 25.19 5.32 50.17 8.09 75.17.25 0 .5.02.76.03 7.1-29.92 13.76-59.93 17.67-90.72 8.43.7 16.82 1.39 25.32 2.09-.87 4.78-1.66 9.33-2.54 13.86-4.56 23.44-9.8 46.74-16.01 69.81-3.96 14.69-8.3 29.28-12.41 43.93-.38 1.34-.9 1.62-2.31 1.47-5.21-.56-10.44-.94-15.66-1.32-.85-.06-1.19-.3-1.4-1.15-3.78-14.91-7.62-29.81-11.4-44.72-.93-3.65-1.66-7.36-2.49-11.04-.06-.28-.23-.54-.44-1.02-.39 1.82-.74 3.41-1.11 5.13Zm317.9 32.76c4.39 6.04 8.71 11.99 13.09 18.03-6.24 4.56-12.38 9.05-18.32 13.39-14.44-19.46-28.78-38.78-43.12-58.11-.16.08-.32.15-.48.23-.58 17.99-1.16 35.99-1.74 54.13-8.88-.97-17.46-1.9-25.78-2.81 0-3.14-.13-6.08.02-9 1.29-25.57 1.83-51.15 1.74-76.75-.05-13.67.09-27.34.09-41.01 0-1.21.45-1.72 1.52-2.18 10.29-4.43 21.01-7.33 32.16-8.52 7.54-.81 15.09-1.09 22.51 1.03 14.48 4.15 23.19 13.68 26.52 28.08 2.34 10.1 1.28 19.78-4.3 28.79-3.46 5.59-7.73 10.49-12.74 14.71-4.37 3.68-8.98 7.08-13.47 10.6l22.3 29.38m-15.29-80.78c-2.59-6.62-7.63-9.99-15.03-10.21-5.83-.18-11.4 1.07-16.93 2.68-1.11.32-1.49.79-1.49 1.95-.02 14.86-.1 29.71-.15 44.57 0 .47.05.94.09 1.68 2.3-1.2 4.41-2.23 6.46-3.37 9.2-5.15 17.52-11.34 23.96-19.78 4-5.25 5.34-10.95 3.1-17.51ZM378.34 8.76c9.83-1.09 19.28-.47 28.16 3.98 13.54 6.79 21.67 17.63 24.2 32.39 2.72 15.86-2.85 28.92-14.5 39.69-8.92 8.25-19.54 13.61-31 17.5-1.8.61-3.61 1.25-5.46 1.69-1.04.25-1.22.73-1.2 1.66.16 9.93.28 19.86.41 29.78.05 3.69.1 7.38.14 11.08 0 .34-.05.67-.08 1.15-8.68-.82-17.28-1.63-25.92-2.44-.1-2.25-.23-4.39-.29-6.52-.63-24.35-.69-48.69-.14-73.04.28-12.47.64-24.94.99-37.4.12-4.34.34-8.67.49-13.01.03-.78.23-1.22 1.08-1.51 7.48-2.51 15.12-4.24 23.12-5m11.61 68.82c1.39-.99 2.84-1.91 4.15-2.99 9.26-7.68 13.24-18.64 9.7-30.14-1.47-4.78-4.18-8.72-8.41-11.53-4.72-3.12-9.85-2.69-15.01-1.49-.33.08-.66.89-.68 1.38-.18 4.03-.31 8.07-.4 12.1-.29 12.36-.56 24.72-.83 37.08 0 .24.04.49.07.83 4.01-1.24 7.74-2.94 11.42-5.25Zm503.41 1.2c.89 5.83.84 11.57.28 17.28-.97 9.85-3.39 19.35-7.54 28.38-2.81 6.12-6.3 11.76-11.28 16.45-4.45 4.2-9.67 5.49-15.58 4.64-2.72-.39-5.42-.91-8.27-1.4.43 14.95.87 29.85 1.3 45.02-7.34-.73-14.77-1.46-22.39-2.21-1.11-46.35-2-92.64 1.68-139.13 6.73.77 13.3 1.53 20.11 2.31-.2 5.13-.4 10.22-.61 15.52 1.57-1.65 2.9-3.25 4.43-4.63 4.64-4.2 10.02-6.6 16.45-6.23 6.49.37 11.49 3.39 15.26 8.48 3.18 4.29 4.97 9.17 5.9 14.38.06.34.16.68.26 1.15m-33.25-3.25c-3.68 3.79-5.8 8.45-7.53 13.3-.66 1.85-1.25 3.82-1.3 5.75-.24 9.12-.29 18.24-.4 27.37 0 .34.02.72.18 1.01 2.28 4.2 6.74 4.88 10.26 1.62 3.54-3.28 5.38-7.54 6.89-11.93 3.1-9.04 4.05-18.33 2.74-27.8-.47-3.4-1.34-6.73-3.24-9.7-1.19-1.85-2.59-2.36-4.63-1.49-1 .43-1.87 1.14-2.96 1.87Z"})),ws||(ws=x.createElement("path",{fill:"#020202",d:"M1307.39 122.54c-4.09-4.4-8.1-8.72-12.12-13.04-.13.05-.27.11-.4.16.26 12.07.51 24.13.77 36.33-7.46-.69-14.9-1.39-22.48-2.09-1.58-46.55-.61-92.99 1.71-139.57 7.62.58 15.04 1.15 22.22 1.7-.99 29.54-1.98 58.88-2.97 88.23.22.05.45.11.67.16 11.62-14.1 21.84-29.09 29.48-46.04 5.39 4.5 10.64 8.88 15.99 13.35-6.1 13.98-13.95 26.91-22.87 39.14 4.19 5.22 8.5 10.29 12.47 15.62 3.97 5.32 7.6 10.9 11.43 16.43-5.06 4.7-9.91 9.2-14.91 13.85-5.74-8.57-12.06-16.56-18.99-24.21Zm-65.12 6.6-1.25 17.55c-2.51-.14-4.87-.27-7.22-.42-2.72-.18-5.43-.34-8.14-.61-.43-.04-1.04-.55-1.18-.96-.51-1.55-.85-3.16-1.27-4.82-2.52 1.06-4.86 2.17-7.29 3.04-5.96 2.15-12 2.34-18.07.46-8.06-2.5-13.54-9.59-14.3-17.91-1.04-11.52 4.12-19.78 13.51-25.88 5.95-3.87 12.56-5.98 19.6-6.82l4.69-.55c.08-4.79.21-9.47-.99-14.05-.26-1-.76-1.97-1.32-2.84-2.02-3.17-5.77-3.61-8.52-1.02-3.26 3.07-4.74 7.11-6.04 11.23-.34 1.09-.41 2.55-1.16 3.13-.65.5-2.1.02-3.19-.07-4.71-.41-9.42-.83-14.45-1.28.73-2.67 1.34-5.26 2.15-7.79 2.55-7.94 6.21-15.24 12.46-21.07 9.36-8.75 24.76-8.96 33.63-.29 4.33 4.24 6.71 9.6 7.92 15.38.89 4.22 1.58 8.55 1.71 12.86.43 14.22-.32 28.42-1.29 42.75m-30.89-1.07c2.98-.63 5.97-1.23 8.94-1.94.33-.08.69-.78.71-1.21.14-3.53.21-7.07.28-10.6.03-1.48 0-2.95 0-4.55-2.22.45-4.3.79-6.32 1.31-4.43 1.15-8.39 3.07-10.92 7.1-2.63 4.19-.79 8.59 4.04 9.62.97.21 1.99.18 3.27.26Zm160.42-70.27c8.98-6.55 18.49-7.72 28.52-3.01 4.13 1.94 6.94 5.4 9.16 9.29 3.27 5.71 5.06 11.94 5.77 18.39.77 6.97 1 14 1.5 21.01.07.96-.17 1.34-1.2 1.59-11.84 2.91-23.83 5.07-35.89 6.86-.93.14-1.85.33-2.92.52.63 5.04 1.1 10 4.13 14.24 1.56 2.19 3.14 2.71 5.76 1.99 3.43-.94 5.86-3.28 8-5.88 1.96-2.39 3.66-4.99 5.6-7.67 4.79 2.81 9.66 5.66 14.63 8.56-5.15 8.94-10.94 17.18-21.11 20.95-14 5.18-27.62.46-34.85-13.06-3.12-5.83-4.61-12.13-4.89-18.64-.56-13.37 1.19-26.44 6.29-38.94 2.54-6.23 6.12-11.79 11.5-16.2m13.65 38.82c3.16-.74 6.31-1.47 9.73-2.27-.41-4.68-.62-9.31-1.28-13.87-.37-2.61-1.2-5.23-2.29-7.64-1.23-2.71-3.63-3.09-5.88-1.06a15.806 15.806 0 0 0-3.3 4.2c-3.7 6.95-4.77 14.55-5.43 22.39 2.83-.6 5.51-1.17 8.45-1.76ZM662.46 58.62c5.16 5.37 7.48 11.97 9.02 18.88 1.99 8.95 2.28 18.05 2.26 27.28-13.11 3.37-26.44 5.61-39.9 7.64.55 4.32.98 8.51 2.94 12.35 2.14 4.2 4.64 5.91 10.18 2.42 3.65-2.3 6.08-5.77 8.4-9.29.6-.91 1.2-1.82 1.85-2.82 4.93 2.89 9.77 5.72 14.72 8.63-5.15 9.05-11.04 17.34-21.36 21.04-13.9 4.98-27.46.44-34.72-13.4-3.78-7.21-4.95-14.99-4.88-23.01.1-11.04 1.74-21.83 5.6-32.22 2.44-6.59 5.86-12.58 11.2-17.34 5.32-4.74 11.59-6.87 18.7-6.72 6.15.13 11.54 2.1 15.98 6.58m-27.88 35.11c-.16 1.51-.33 3.01-.52 4.72 6.16-1.36 12.07-2.67 18.31-4.04-.54-5.21-.9-10.32-1.65-15.36-.35-2.3-1.28-4.59-2.32-6.71-.96-1.97-2.75-2.41-4.57-1.16-1.41.96-2.73 2.26-3.62 3.7-3.51 5.69-4.81 12.08-5.64 18.86Z"})),xs||(xs=x.createElement("path",{fill:"#010101",d:"M926.11 142.76c-6.82-4.43-10.73-10.77-13.02-18.22-2.25-7.3-2.43-14.78-1.91-22.33.5-7.21 1.61-14.31 3.71-21.24 2.46-8.09 5.94-15.64 12.2-21.65 8.54-8.2 22.19-9.77 31.91-3.54 4.52 2.89 7.31 7.22 9.39 12.01 2.69 6.18 4 12.71 4.56 19.38.48 5.81.69 11.63 1.02 17.53-13.29 3.43-26.63 5.68-40.17 7.71.69 5.07 1.11 10.09 4.18 14.37 1.51 2.1 3.16 2.63 5.65 1.93 4.12-1.17 6.78-4.18 9.25-7.35 1.53-1.96 2.87-4.07 4.38-6.24 4.84 2.84 9.67 5.68 14.63 8.59-3.06 5.33-6.32 10.41-10.89 14.59-6.25 5.71-13.56 8.6-22.11 8.33-4.57-.14-8.82-1.35-12.78-3.86m11.79-63.33c-2.35 6.08-3.34 12.41-3.81 19.02l18.22-4.04c-.44-4.8-.64-9.44-1.35-14-.43-2.75-1.43-5.47-2.58-8.02-.94-2.08-2.67-2.37-4.69-1.2-.85.49-1.73 1.14-2.25 1.94-1.27 1.96-2.34 4.04-3.55 6.3Z"})),_s||(_s=x.createElement("path",{fill:"#020202",d:"M714.55 110.73c.03 3.69.1 7.24 1.51 10.56.51 1.21 1.25 2.4 2.14 3.38 1.73 1.91 3.74 2.13 5.98.81 3.13-1.84 5.16-4.73 7.06-7.66 2.39-3.67 4.59-7.47 6.94-11.33 4.68 3.34 9.4 6.71 14.16 10.12-3.09 7.86-6.75 15.32-12.56 21.6-10.5 11.33-24.8 10.15-34.82 3.47-6.67-4.44-10.21-10.98-11.89-18.58-1.53-6.9-1.26-13.85-.65-20.83.72-8.31 2.2-16.45 4.89-24.37 2.26-6.66 5.24-12.93 10.19-18.13 7.32-7.69 18.53-9.76 27.48-4.89 5.24 2.85 8.71 7.36 11.2 12.59 3.44 7.25 5.07 14.87 4.04 22.9-.24 1.89-.75 3.75-1.13 5.62-6.29-.59-12.34-1.16-18.19-1.71 0-2.32.05-4.5-.01-6.68-.1-3.57-.73-7.03-2.51-10.19-2.07-3.66-5.08-3.78-7.55-.35-2.46 3.42-3.31 7.42-4.13 11.41-1.5 7.29-1.91 14.7-2.13 22.27Zm764.13-35.84c-5.02-1.18-8.22 1.08-10.32 5.16-2.82 5.49-4.74 11.24-4.7 17.53.08 11.92.08 23.84.02 35.76-.02 4.38-.32 8.76-.5 13.35-7.53-.61-14.93-1.2-22.48-1.81.75-28.07 1.59-55.97-2.83-83.89 2.83.27 5.42.51 8.01.76 1.75.17 3.5.43 5.26.52.99.05 1.4.46 1.65 1.34.79 2.72 1.64 5.43 2.5 8.23 1.62-2.77 3.14-5.46 4.74-8.1 1.99-3.27 4.39-6.23 7.39-8.64 4.54-3.64 9.55-3.86 15.17-.59 1.81 1.05 3.4 2.47 5.04 3.79.32.26.64.88.54 1.23-1.53 5.58-3.13 11.14-4.74 16.82-1.61-.5-3.13-.96-4.77-1.46Z"})),bs||(bs=x.createElement("path",{fill:"#010101",d:"M775.99 52.99c.82-.19 1.63-.32 2.43-.25 6.42.59 12.84 1.21 19.25 1.83.09 0 .17.09.31.17v91.03c-7.34-.7-14.59-1.38-22.01-2.09 0-30.22 0-60.38.01-90.69Z"})),js||(js=x.createElement("path",{fill:"#020202",d:"M798.68 26.96c-.47 5.38-.93 10.63-1.41 16.04-7.27-.88-14.35-1.73-21.71-2.62.63-7.04 1.26-14.05 1.91-21.28 7.31.83 14.48 1.65 21.74 2.48-.19 1.88-.36 3.56-.53 5.38Z"})),Es||(Es=x.createElement("path",{fill:"#607983",d:"m8.856 20.455 97.89-17.26c6.795-1.199 13.282 3.344 14.48 10.139l20.88 118.413c1.198 6.795-3.344 13.283-10.14 14.48l-97.89 17.261a7.097 7.097 0 0 1-8.213-5.75L3.105 28.667a7.097 7.097 0 0 1 5.75-8.213Z"})),Ms||(Ms=x.createElement("path",{fill:"#3a5160",d:"M21.37 18.25 8.86 20.46c-3.84.68-6.43 4.37-5.75 8.21l22.76 129.08c.68 3.84 4.37 6.43 8.21 5.75l12.51-2.21L21.37 18.25Z"})),ks||(ks=x.createElement("path",{fill:"#d2e0e4",d:"M89.24 39.48c-1.9.34-3.17 2.15-2.84 4.05l3.83 21.7c.45 2.57-1.29 5.02-3.85 5.47s-4.99-1.26-5.44-3.83l-3.83-21.7c-.34-1.9-2.15-3.17-4.05-2.84s-3.17 2.15-2.84 4.05l3.83 21.7c.45 2.57-1.29 5.02-3.85 5.47s-4.99-1.26-5.44-3.83l-3.83-21.7c-.34-1.9-2.15-3.17-4.05-2.84s-3.17 2.15-2.84 4.05l4.46 25.28c1.49 8.45 8.11 14.69 16.08 16.14l6.09 34.55c.66 3.75 4.24 6.26 8 5.6s6.26-4.24 5.6-8l-6.09-34.55c7-4.09 11.08-12.21 9.59-20.66l-4.46-25.28a3.507 3.507 0 0 0-4.05-2.84Z"})))}],Cs={name:"WooCommerce",claim:c((0,a.sprintf)(/* translators: 1: bold open tag; 2: bold close tag. */ +(0,a.__)("%1$s integrates with %2$s's Schema API to get rich snippets for your recipes!","wordpress-seo"),"WP Recipe Maker","Yoast SEO"),isPremium:!1,isNew:!1,isMultisiteAvailable:!0,logo:e=>x.createElement("svg",Ns({xmlns:"http://www.w3.org/2000/svg",width:185,"aria-hidden":"true",viewBox:"0 0 1488.21 189.15"},e),us||(us=x.createElement("rect",{width:23.81,height:26.01,x:113.83,y:17.03,fill:"#3a5160",rx:4,ry:4,transform:"rotate(-10 125.733 30.062)"})),vs||(vs=x.createElement("rect",{width:23.81,height:26.01,x:119.56,y:49.62,fill:"#3a5160",rx:4,ry:4,transform:"rotate(-10 131.463 62.64)"})),ws||(ws=x.createElement("path",{fill:"#010101",d:"M1120.63 107.35c-2.45 8.59-4.88 17.07-7.33 25.62-3.61-.29-7.03-.55-10.43-.83-1.86-.15-3.71-.42-5.57-.45-1.3-.02-1.94-.36-2.25-1.74-3.51-15.67-7.15-31.32-10.65-47-2.81-12.58-5.48-25.18-8.27-37.77-.26-1.17-.89-2.26-1.69-3.33.53 34.76 1.77 69.45 3.62 104.35-8.55-.78-16.89-1.54-25.37-2.31-1.24-42.47-3.33-84.87 1.77-127.36 3.42.26 6.78.51 10.13.77 8.19.65 16.38 1.33 24.58 1.92 1.11.08 1.54.43 1.82 1.46 4.04 14.57 7.19 29.33 9.99 44.17 1.23 6.51 2.43 13.02 3.64 19.53.03.18.1.35.27.93 7.73-24.53 13.76-49.07 18.93-73.99 2.23.17 4.42.31 6.61.5 8.44.73 16.87 1.47 25.31 2.21 1.05.09 2.11.21 3.17.25.97.03 1.37.34 1.39 1.41.21 8.53.65 17.05.74 25.58.26 23.65.55 47.3.48 70.95-.03 11.06-.84 22.13-1.31 33.19-.03.73-.14 1.45-.22 2.28-8.85-.83-17.5-1.63-26.35-2.46 3.22-33.66 3.51-67.33 4.22-100.99-.27-.06-.54-.13-.81-.19-.52 1.33-1.18 2.62-1.53 3.99-1.39 5.46-2.64 10.95-4.02 16.42-3.6 14.26-7.23 28.51-10.87 42.88ZM265.8 87.29c-2.62 11.14-5.09 22.19-7.86 33.17-1.9 7.51-4.21 14.92-6.35 22.37-.08.28-.24.53-.4.89-3.54-.27-7.05-.53-10.56-.8-2.11-.16-4.22-.4-6.33-.49-1.11-.05-1.61-.3-1.85-1.54-2.74-14.44-5.65-28.85-8.35-43.29-2.31-12.35-4.52-24.72-6.57-37.11-1.61-9.76-2.95-19.56-4.35-29.35-.85-5.96-1.59-11.93-2.36-17.9-.06-.48 0-.98 0-1.63 8.26.69 16.46 1.38 24.63 2.06 3.21 29.25 6.41 58.4 9.61 87.54.24.02.47.03.71.05 3.2-12.67 5.75-25.49 8.2-38.32 2.46-12.87 4.49-25.83 6.73-38.86 6.2.55 12.56 1.12 19.02 1.7 2.28 25.19 5.32 50.17 8.09 75.17.25 0 .5.02.76.03 7.1-29.92 13.76-59.93 17.67-90.72 8.43.7 16.82 1.39 25.32 2.09-.87 4.78-1.66 9.33-2.54 13.86-4.56 23.44-9.8 46.74-16.01 69.81-3.96 14.69-8.3 29.28-12.41 43.93-.38 1.34-.9 1.62-2.31 1.47-5.21-.56-10.44-.94-15.66-1.32-.85-.06-1.19-.3-1.4-1.15-3.78-14.91-7.62-29.81-11.4-44.72-.93-3.65-1.66-7.36-2.49-11.04-.06-.28-.23-.54-.44-1.02-.39 1.82-.74 3.41-1.11 5.13Zm317.9 32.76c4.39 6.04 8.71 11.99 13.09 18.03-6.24 4.56-12.38 9.05-18.32 13.39-14.44-19.46-28.78-38.78-43.12-58.11-.16.08-.32.15-.48.23-.58 17.99-1.16 35.99-1.74 54.13-8.88-.97-17.46-1.9-25.78-2.81 0-3.14-.13-6.08.02-9 1.29-25.57 1.83-51.15 1.74-76.75-.05-13.67.09-27.34.09-41.01 0-1.21.45-1.72 1.52-2.18 10.29-4.43 21.01-7.33 32.16-8.52 7.54-.81 15.09-1.09 22.51 1.03 14.48 4.15 23.19 13.68 26.52 28.08 2.34 10.1 1.28 19.78-4.3 28.79-3.46 5.59-7.73 10.49-12.74 14.71-4.37 3.68-8.98 7.08-13.47 10.6l22.3 29.38m-15.29-80.78c-2.59-6.62-7.63-9.99-15.03-10.21-5.83-.18-11.4 1.07-16.93 2.68-1.11.32-1.49.79-1.49 1.95-.02 14.86-.1 29.71-.15 44.57 0 .47.05.94.09 1.68 2.3-1.2 4.41-2.23 6.46-3.37 9.2-5.15 17.52-11.34 23.96-19.78 4-5.25 5.34-10.95 3.1-17.51ZM378.34 8.76c9.83-1.09 19.28-.47 28.16 3.98 13.54 6.79 21.67 17.63 24.2 32.39 2.72 15.86-2.85 28.92-14.5 39.69-8.92 8.25-19.54 13.61-31 17.5-1.8.61-3.61 1.25-5.46 1.69-1.04.25-1.22.73-1.2 1.66.16 9.93.28 19.86.41 29.78.05 3.69.1 7.38.14 11.08 0 .34-.05.67-.08 1.15-8.68-.82-17.28-1.63-25.92-2.44-.1-2.25-.23-4.39-.29-6.52-.63-24.35-.69-48.69-.14-73.04.28-12.47.64-24.94.99-37.4.12-4.34.34-8.67.49-13.01.03-.78.23-1.22 1.08-1.51 7.48-2.51 15.12-4.24 23.12-5m11.61 68.82c1.39-.99 2.84-1.91 4.15-2.99 9.26-7.68 13.24-18.64 9.7-30.14-1.47-4.78-4.18-8.72-8.41-11.53-4.72-3.12-9.85-2.69-15.01-1.49-.33.08-.66.89-.68 1.38-.18 4.03-.31 8.07-.4 12.1-.29 12.36-.56 24.72-.83 37.08 0 .24.04.49.07.83 4.01-1.24 7.74-2.94 11.42-5.25Zm503.41 1.2c.89 5.83.84 11.57.28 17.28-.97 9.85-3.39 19.35-7.54 28.38-2.81 6.12-6.3 11.76-11.28 16.45-4.45 4.2-9.67 5.49-15.58 4.64-2.72-.39-5.42-.91-8.27-1.4.43 14.95.87 29.85 1.3 45.02-7.34-.73-14.77-1.46-22.39-2.21-1.11-46.35-2-92.64 1.68-139.13 6.73.77 13.3 1.53 20.11 2.31-.2 5.13-.4 10.22-.61 15.52 1.57-1.65 2.9-3.25 4.43-4.63 4.64-4.2 10.02-6.6 16.45-6.23 6.49.37 11.49 3.39 15.26 8.48 3.18 4.29 4.97 9.17 5.9 14.38.06.34.16.68.26 1.15m-33.25-3.25c-3.68 3.79-5.8 8.45-7.53 13.3-.66 1.85-1.25 3.82-1.3 5.75-.24 9.12-.29 18.24-.4 27.37 0 .34.02.72.18 1.01 2.28 4.2 6.74 4.88 10.26 1.62 3.54-3.28 5.38-7.54 6.89-11.93 3.1-9.04 4.05-18.33 2.74-27.8-.47-3.4-1.34-6.73-3.24-9.7-1.19-1.85-2.59-2.36-4.63-1.49-1 .43-1.87 1.14-2.96 1.87Z"})),fs||(fs=x.createElement("path",{fill:"#020202",d:"M1307.39 122.54c-4.09-4.4-8.1-8.72-12.12-13.04-.13.05-.27.11-.4.16.26 12.07.51 24.13.77 36.33-7.46-.69-14.9-1.39-22.48-2.09-1.58-46.55-.61-92.99 1.71-139.57 7.62.58 15.04 1.15 22.22 1.7-.99 29.54-1.98 58.88-2.97 88.23.22.05.45.11.67.16 11.62-14.1 21.84-29.09 29.48-46.04 5.39 4.5 10.64 8.88 15.99 13.35-6.1 13.98-13.95 26.91-22.87 39.14 4.19 5.22 8.5 10.29 12.47 15.62 3.97 5.32 7.6 10.9 11.43 16.43-5.06 4.7-9.91 9.2-14.91 13.85-5.74-8.57-12.06-16.56-18.99-24.21Zm-65.12 6.6-1.25 17.55c-2.51-.14-4.87-.27-7.22-.42-2.72-.18-5.43-.34-8.14-.61-.43-.04-1.04-.55-1.18-.96-.51-1.55-.85-3.16-1.27-4.82-2.52 1.06-4.86 2.17-7.29 3.04-5.96 2.15-12 2.34-18.07.46-8.06-2.5-13.54-9.59-14.3-17.91-1.04-11.52 4.12-19.78 13.51-25.88 5.95-3.87 12.56-5.98 19.6-6.82l4.69-.55c.08-4.79.21-9.47-.99-14.05-.26-1-.76-1.97-1.32-2.84-2.02-3.17-5.77-3.61-8.52-1.02-3.26 3.07-4.74 7.11-6.04 11.23-.34 1.09-.41 2.55-1.16 3.13-.65.5-2.1.02-3.19-.07-4.71-.41-9.42-.83-14.45-1.28.73-2.67 1.34-5.26 2.15-7.79 2.55-7.94 6.21-15.24 12.46-21.07 9.36-8.75 24.76-8.96 33.63-.29 4.33 4.24 6.71 9.6 7.92 15.38.89 4.22 1.58 8.55 1.71 12.86.43 14.22-.32 28.42-1.29 42.75m-30.89-1.07c2.98-.63 5.97-1.23 8.94-1.94.33-.08.69-.78.71-1.21.14-3.53.21-7.07.28-10.6.03-1.48 0-2.95 0-4.55-2.22.45-4.3.79-6.32 1.31-4.43 1.15-8.39 3.07-10.92 7.1-2.63 4.19-.79 8.59 4.04 9.62.97.21 1.99.18 3.27.26Zm160.42-70.27c8.98-6.55 18.49-7.72 28.52-3.01 4.13 1.94 6.94 5.4 9.16 9.29 3.27 5.71 5.06 11.94 5.77 18.39.77 6.97 1 14 1.5 21.01.07.96-.17 1.34-1.2 1.59-11.84 2.91-23.83 5.07-35.89 6.86-.93.14-1.85.33-2.92.52.63 5.04 1.1 10 4.13 14.24 1.56 2.19 3.14 2.71 5.76 1.99 3.43-.94 5.86-3.28 8-5.88 1.96-2.39 3.66-4.99 5.6-7.67 4.79 2.81 9.66 5.66 14.63 8.56-5.15 8.94-10.94 17.18-21.11 20.95-14 5.18-27.62.46-34.85-13.06-3.12-5.83-4.61-12.13-4.89-18.64-.56-13.37 1.19-26.44 6.29-38.94 2.54-6.23 6.12-11.79 11.5-16.2m13.65 38.82c3.16-.74 6.31-1.47 9.73-2.27-.41-4.68-.62-9.31-1.28-13.87-.37-2.61-1.2-5.23-2.29-7.64-1.23-2.71-3.63-3.09-5.88-1.06a15.806 15.806 0 0 0-3.3 4.2c-3.7 6.95-4.77 14.55-5.43 22.39 2.83-.6 5.51-1.17 8.45-1.76ZM662.46 58.62c5.16 5.37 7.48 11.97 9.02 18.88 1.99 8.95 2.28 18.05 2.26 27.28-13.11 3.37-26.44 5.61-39.9 7.64.55 4.32.98 8.51 2.94 12.35 2.14 4.2 4.64 5.91 10.18 2.42 3.65-2.3 6.08-5.77 8.4-9.29.6-.91 1.2-1.82 1.85-2.82 4.93 2.89 9.77 5.72 14.72 8.63-5.15 9.05-11.04 17.34-21.36 21.04-13.9 4.98-27.46.44-34.72-13.4-3.78-7.21-4.95-14.99-4.88-23.01.1-11.04 1.74-21.83 5.6-32.22 2.44-6.59 5.86-12.58 11.2-17.34 5.32-4.74 11.59-6.87 18.7-6.72 6.15.13 11.54 2.1 15.98 6.58m-27.88 35.11c-.16 1.51-.33 3.01-.52 4.72 6.16-1.36 12.07-2.67 18.31-4.04-.54-5.21-.9-10.32-1.65-15.36-.35-2.3-1.28-4.59-2.32-6.71-.96-1.97-2.75-2.41-4.57-1.16-1.41.96-2.73 2.26-3.62 3.7-3.51 5.69-4.81 12.08-5.64 18.86Z"})),xs||(xs=x.createElement("path",{fill:"#010101",d:"M926.11 142.76c-6.82-4.43-10.73-10.77-13.02-18.22-2.25-7.3-2.43-14.78-1.91-22.33.5-7.21 1.61-14.31 3.71-21.24 2.46-8.09 5.94-15.64 12.2-21.65 8.54-8.2 22.19-9.77 31.91-3.54 4.52 2.89 7.31 7.22 9.39 12.01 2.69 6.18 4 12.71 4.56 19.38.48 5.81.69 11.63 1.02 17.53-13.29 3.43-26.63 5.68-40.17 7.71.69 5.07 1.11 10.09 4.18 14.37 1.51 2.1 3.16 2.63 5.65 1.93 4.12-1.17 6.78-4.18 9.25-7.35 1.53-1.96 2.87-4.07 4.38-6.24 4.84 2.84 9.67 5.68 14.63 8.59-3.06 5.33-6.32 10.41-10.89 14.59-6.25 5.71-13.56 8.6-22.11 8.33-4.57-.14-8.82-1.35-12.78-3.86m11.79-63.33c-2.35 6.08-3.34 12.41-3.81 19.02l18.22-4.04c-.44-4.8-.64-9.44-1.35-14-.43-2.75-1.43-5.47-2.58-8.02-.94-2.08-2.67-2.37-4.69-1.2-.85.49-1.73 1.14-2.25 1.94-1.27 1.96-2.34 4.04-3.55 6.3Z"})),_s||(_s=x.createElement("path",{fill:"#020202",d:"M714.55 110.73c.03 3.69.1 7.24 1.51 10.56.51 1.21 1.25 2.4 2.14 3.38 1.73 1.91 3.74 2.13 5.98.81 3.13-1.84 5.16-4.73 7.06-7.66 2.39-3.67 4.59-7.47 6.94-11.33 4.68 3.34 9.4 6.71 14.16 10.12-3.09 7.86-6.75 15.32-12.56 21.6-10.5 11.33-24.8 10.15-34.82 3.47-6.67-4.44-10.21-10.98-11.89-18.58-1.53-6.9-1.26-13.85-.65-20.83.72-8.31 2.2-16.45 4.89-24.37 2.26-6.66 5.24-12.93 10.19-18.13 7.32-7.69 18.53-9.76 27.48-4.89 5.24 2.85 8.71 7.36 11.2 12.59 3.44 7.25 5.07 14.87 4.04 22.9-.24 1.89-.75 3.75-1.13 5.62-6.29-.59-12.34-1.16-18.19-1.71 0-2.32.05-4.5-.01-6.68-.1-3.57-.73-7.03-2.51-10.19-2.07-3.66-5.08-3.78-7.55-.35-2.46 3.42-3.31 7.42-4.13 11.41-1.5 7.29-1.91 14.7-2.13 22.27Zm764.13-35.84c-5.02-1.18-8.22 1.08-10.32 5.16-2.82 5.49-4.74 11.24-4.7 17.53.08 11.92.08 23.84.02 35.76-.02 4.38-.32 8.76-.5 13.35-7.53-.61-14.93-1.2-22.48-1.81.75-28.07 1.59-55.97-2.83-83.89 2.83.27 5.42.51 8.01.76 1.75.17 3.5.43 5.26.52.99.05 1.4.46 1.65 1.34.79 2.72 1.64 5.43 2.5 8.23 1.62-2.77 3.14-5.46 4.74-8.1 1.99-3.27 4.39-6.23 7.39-8.64 4.54-3.64 9.55-3.86 15.17-.59 1.81 1.05 3.4 2.47 5.04 3.79.32.26.64.88.54 1.23-1.53 5.58-3.13 11.14-4.74 16.82-1.61-.5-3.13-.96-4.77-1.46Z"})),bs||(bs=x.createElement("path",{fill:"#010101",d:"M775.99 52.99c.82-.19 1.63-.32 2.43-.25 6.42.59 12.84 1.21 19.25 1.83.09 0 .17.09.31.17v91.03c-7.34-.7-14.59-1.38-22.01-2.09 0-30.22 0-60.38.01-90.69Z"})),js||(js=x.createElement("path",{fill:"#020202",d:"M798.68 26.96c-.47 5.38-.93 10.63-1.41 16.04-7.27-.88-14.35-1.73-21.71-2.62.63-7.04 1.26-14.05 1.91-21.28 7.31.83 14.48 1.65 21.74 2.48-.19 1.88-.36 3.56-.53 5.38Z"})),Es||(Es=x.createElement("path",{fill:"#607983",d:"m8.856 20.455 97.89-17.26c6.795-1.199 13.282 3.344 14.48 10.139l20.88 118.413c1.198 6.795-3.344 13.283-10.14 14.48l-97.89 17.261a7.097 7.097 0 0 1-8.213-5.75L3.105 28.667a7.097 7.097 0 0 1 5.75-8.213Z"})),Ms||(Ms=x.createElement("path",{fill:"#3a5160",d:"M21.37 18.25 8.86 20.46c-3.84.68-6.43 4.37-5.75 8.21l22.76 129.08c.68 3.84 4.37 6.43 8.21 5.75l12.51-2.21L21.37 18.25Z"})),ks||(ks=x.createElement("path",{fill:"#d2e0e4",d:"M89.24 39.48c-1.9.34-3.17 2.15-2.84 4.05l3.83 21.7c.45 2.57-1.29 5.02-3.85 5.47s-4.99-1.26-5.44-3.83l-3.83-21.7c-.34-1.9-2.15-3.17-4.05-2.84s-3.17 2.15-2.84 4.05l3.83 21.7c.45 2.57-1.29 5.02-3.85 5.47s-4.99-1.26-5.44-3.83l-3.83-21.7c-.34-1.9-2.15-3.17-4.05-2.84s-3.17 2.15-2.84 4.05l4.46 25.28c1.49 8.45 8.11 14.69 16.08 16.14l6.09 34.55c.66 3.75 4.24 6.26 8 5.6s6.26-4.24 5.6-8l-6.09-34.55c7-4.09 11.08-12.21 9.59-20.66l-4.46-25.28a3.507 3.507 0 0 0-4.05-2.84Z"})))}],Cs={name:"WooCommerce",claim:c((0,a.sprintf)(/* translators: 1: bold open tag; 2: bold close tag. */ (0,a.__)("Get %1$srich product results%2$s in Google search","wordpress-seo"),"<strong>","</strong>"),{strong:(0,d.jsx)("strong",{})}),learnMoreLink:"https://yoa.st/integrations-about-woocommerce",logoLink:"https://yoa.st/integrations-logo-woocommerce",slug:"woocommerce",description:(0,a.sprintf)(/* translators: 1: Yoast WooCommerce SEO */ -(0,a.__)("Unlock rich snippets for your product pages by using %1$s.","wordpress-seo"),"Yoast WooCommerce SEO"),isPremium:!1,isNew:!1,isMultisiteAvailable:!0,logo:ee,upsellLink:"https://yoa.st/integrations-get-woocommerce"},Ss=[Ts.map(((e,t)=>(0,d.jsx)(re,{integration:e,isActive:g(e)},t)))];Ss.push((0,d.jsx)(te,{integration:Cs,isActive:Boolean(window.wpseoIntegrationsData.woocommerce_seo_active),isInstalled:Boolean(window.wpseoIntegrationsData.woocommerce_seo_installed),isPrerequisiteActive:Boolean(window.wpseoIntegrationsData.woocommerce_active),upsellLink:window.wpseoIntegrationsData.woocommerce_seo_upsell_url,activationLink:window.wpseoIntegrationsData.woocommerce_seo_activate_url},Ts.length+1));const Ls=Ss,Zs=({title:e="",description:t="",elements:s=[]})=>(0,d.jsxs)("section",{children:[(0,d.jsxs)("div",{className:"yst-mb-8",children:[(0,d.jsx)("h2",{className:"yst-mb-2 yst-text-lg yst-font-medium",children:e}),(0,d.jsx)("p",{className:"yst-text-tiny",children:t})]}),(0,d.jsx)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-6 sm:yst-grid-cols-2 md:yst-grid-cols-3 lg:yst-grid-cols-4",children:s})]});function Os(){return(0,d.jsxs)("div",{className:"yst-h-full yst-flex yst-flex-col yst-bg-white yst-rounded-lg yst-shadow",children:[(0,d.jsx)("header",{className:"yst-border-b yst-border-slate-200",children:(0,d.jsxs)("div",{className:"yst-max-w-screen-sm yst-p-8",children:[(0,d.jsx)(r.Title,{as:"h1",className:"yst-flex yst-items-center",children:(0,a.__)("Integrations","wordpress-seo")}),(0,d.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:(0,a.sprintf)(/* translators: 1: Yoast SEO */ -(0,a.__)("%s can integrate with other products, to help you further improve your website. You can enable or disable these integrations below.","wordpress-seo"),"Yoast SEO")})]})}),(0,d.jsxs)("div",{className:"yst-flex-grow yst-max-w-6xl yst-p-8",children:[(0,d.jsx)(Zs,{title:(0,a.__)("Recommended integrations","wordpress-seo"),elements:is}),(0,d.jsx)("hr",{className:"yst-my-12"}),(0,d.jsx)(Zs,{title:(0,a.__)("Schema API integrations","wordpress-seo"),description:p((0,a.sprintf)(/* translators: 1: anchor tag linking to our schema API docs; 2: closing anchor tag. */ -(0,a.__)("Unlock rich results in Google search by using plugins that integrate with the %1$sYoast Schema API%2$s.","wordpress-seo"),"<a>","</a>"),"https://developer.yoast.com/features/schema/api/","schema-api-link"),elements:Ls}),(0,d.jsx)("hr",{className:"yst-my-12"}),(0,d.jsx)(Zs,{title:(0,a.__)("Plugin integrations","wordpress-seo"),elements:ie}),(0,d.jsx)("hr",{className:"yst-my-12"}),(0,d.jsx)(Zs,{title:(0,a.__)("Other integrations","wordpress-seo"),elements:q})]})]})}Zs.propTypes={title:n.PropTypes.string,description:n.PropTypes.node,elements:n.PropTypes.array};const As=window.yoast.externals.contexts,qs=window.yoast.styledComponents,Vs=({theme:e,location:t,children:s})=>(0,d.jsx)(As.LocationProvider,{value:t,children:(0,d.jsx)(qs.ThemeProvider,{theme:e,children:s})});Vs.propTypes={theme:i().object.isRequired,location:i().oneOf(["sidebar","metabox","modal"]).isRequired,children:i().node.isRequired};const $s=Vs,Bs=[];let Is=null;class Fs extends l.Component{constructor(e){super(e),this.state={registeredComponents:[...Bs]}}registerComponent(e,t){this.setState((s=>({...s,registeredComponents:[...s.registeredComponents,{key:e,Component:t}]})))}render(){return this.state.registeredComponents.map((({Component:e,key:t})=>(0,d.jsx)(e,{},t)))}}window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=function(e,t){null===Is||null===Is.current?Bs.push({key:e,Component:t}):Is.current.registerComponent(e,t)},o()((()=>{const t={isRtl:Boolean((0,e.get)(window,"wpseoScriptData.metabox.isRtl",!1))};!function(t,s){const o=(0,e.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1});Is=(0,l.createRef)();const r={isRtl:o.isRtl};(0,l.createRoot)(document.getElementById(t)).render((0,d.jsx)($s,{theme:r,location:"sidebar",children:(0,d.jsx)(P.SlotFillProvider,{children:(0,d.jsxs)(l.Fragment,{children:[s,(0,d.jsx)(Fs,{ref:Is})]})})}))}("wpseo-integrations",(0,d.jsx)(r.Root,{context:t,children:(0,d.jsx)(Os,{})}))}))})()})(); \ No newline at end of file +(0,a.__)("Unlock rich snippets for your product pages by using %1$s.","wordpress-seo"),"Yoast WooCommerce SEO"),isPremium:!1,isNew:!1,isMultisiteAvailable:!0,logo:ee,upsellLink:"https://yoa.st/integrations-get-woocommerce"},Ss=[Ts.map(((e,t)=>(0,d.jsx)(re,{integration:e,isActive:g(e)},t)))];Ss.push((0,d.jsx)(te,{integration:Cs,isActive:Boolean(window.wpseoIntegrationsData.woocommerce_seo_active),isInstalled:Boolean(window.wpseoIntegrationsData.woocommerce_seo_installed),isPrerequisiteActive:Boolean(window.wpseoIntegrationsData.woocommerce_active),upsellLink:window.wpseoIntegrationsData.woocommerce_seo_upsell_url,activationLink:window.wpseoIntegrationsData.woocommerce_seo_activate_url},Ts.length+1));const Ls=Ss,Os=({title:e="",description:t="",elements:s=[]})=>(0,d.jsxs)("section",{children:[(0,d.jsxs)("div",{className:"yst-mb-8",children:[(0,d.jsx)("h2",{className:"yst-mb-2 yst-text-lg yst-font-medium",children:e}),(0,d.jsx)("p",{className:"yst-text-tiny",children:t})]}),(0,d.jsx)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-6 sm:yst-grid-cols-2 md:yst-grid-cols-3 lg:yst-grid-cols-4",children:s})]});function Zs(){return(0,d.jsxs)("div",{className:"yst-h-full yst-flex yst-flex-col yst-bg-white yst-rounded-lg yst-shadow",children:[(0,d.jsx)("header",{className:"yst-border-b yst-border-slate-200",children:(0,d.jsxs)("div",{className:"yst-max-w-screen-sm yst-p-8",children:[(0,d.jsx)(r.Title,{as:"h1",className:"yst-flex yst-items-center",children:(0,a.__)("Integrations","wordpress-seo")}),(0,d.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:(0,a.sprintf)(/* translators: 1: Yoast SEO */ +(0,a.__)("%s can integrate with other products, to help you further improve your website. You can enable or disable these integrations below.","wordpress-seo"),"Yoast SEO")})]})}),(0,d.jsxs)("div",{className:"yst-flex-grow yst-max-w-6xl yst-p-8",children:[(0,d.jsx)(Os,{title:(0,a.__)("Recommended integrations","wordpress-seo"),elements:is}),(0,d.jsx)("hr",{className:"yst-my-12"}),(0,d.jsx)(Os,{title:(0,a.__)("Schema API integrations","wordpress-seo"),description:p((0,a.sprintf)(/* translators: 1: anchor tag linking to our schema API docs; 2: closing anchor tag. */ +(0,a.__)("Unlock rich results in Google search by using plugins that integrate with the %1$sYoast Schema API%2$s.","wordpress-seo"),"<a>","</a>"),"https://developer.yoast.com/features/schema/api/","schema-api-link"),elements:Ls}),(0,d.jsx)("hr",{className:"yst-my-12"}),(0,d.jsx)(Os,{title:(0,a.__)("Plugin integrations","wordpress-seo"),elements:ie}),(0,d.jsx)("hr",{className:"yst-my-12"}),(0,d.jsx)(Os,{title:(0,a.__)("Other integrations","wordpress-seo"),elements:q})]})]})}Os.propTypes={title:n.PropTypes.string,description:n.PropTypes.node,elements:n.PropTypes.array};const As=window.yoast.externals.contexts,qs=window.yoast.styledComponents,Vs=({theme:e,location:t,children:s})=>(0,d.jsx)(As.LocationProvider,{value:t,children:(0,d.jsx)(qs.ThemeProvider,{theme:e,children:s})});Vs.propTypes={theme:i().object.isRequired,location:i().oneOf(["sidebar","metabox","modal"]).isRequired,children:i().node.isRequired};const $s=Vs,Bs=[];let Is=null;class Fs extends l.Component{constructor(e){super(e),this.state={registeredComponents:[...Bs]}}registerComponent(e,t){this.setState((s=>({...s,registeredComponents:[...s.registeredComponents,{key:e,Component:t}]})))}render(){return this.state.registeredComponents.map((({Component:e,key:t})=>(0,d.jsx)(e,{},t)))}}window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=function(e,t){null===Is||null===Is.current?Bs.push({key:e,Component:t}):Is.current.registerComponent(e,t)},o()((()=>{const t={isRtl:Boolean((0,e.get)(window,"wpseoScriptData.metabox.isRtl",!1))};!function(t,s){const o=(0,e.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1});Is=(0,l.createRef)();const r={isRtl:o.isRtl};(0,l.createRoot)(document.getElementById(t)).render((0,d.jsx)($s,{theme:r,location:"sidebar",children:(0,d.jsx)(P.SlotFillProvider,{children:(0,d.jsxs)(l.Fragment,{children:[s,(0,d.jsx)(Fs,{ref:Is})]})})}))}("wpseo-integrations",(0,d.jsx)(r.Root,{context:t,children:(0,d.jsx)(Zs,{})}))}))})()})(); \ No newline at end of file @@ -1,153 +1,152 @@ -(()=>{var e={1206:function(e){e.exports=function(e){var t={};function s(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,s),o.l=!0,o.exports}return s.m=e,s.c=t,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)s.d(r,o,function(t){return e[t]}.bind(null,o));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=90)}({17:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r=s(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var s=t.match(e);return s&&s.length>0&&s[1]||""},e.getSecondMatch=function(e,t){var s=t.match(e);return s&&s.length>1&&s[2]||""},e.matchAndReturnConst=function(e,t,s){if(e.test(t))return s},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,s,r){void 0===r&&(r=!1);var o=e.getVersionPrecision(t),a=e.getVersionPrecision(s),i=Math.max(o,a),n=0,l=e.map([t,s],(function(t){var s=i-e.getVersionPrecision(t),r=t+new Array(s+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(n=i-Math.min(o,a)),i-=1;i>=n;){if(l[0][i]>l[1][i])return 1;if(l[0][i]===l[1][i]){if(i===n)return 0;i-=1}else if(l[0][i]<l[1][i])return-1}},e.map=function(e,t){var s,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(s=0;s<e.length;s+=1)r.push(t(e[s]));return r},e.find=function(e,t){var s,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(s=0,r=e.length;s<r;s+=1){var o=e[s];if(t(o,s))return o}},e.assign=function(e){for(var t,s,r=e,o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];if(Object.assign)return Object.assign.apply(Object,[e].concat(a));var n=function(){var e=a[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){r[t]=e[t]}))};for(t=0,s=a.length;t<s;t+=1)n();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=o,e.exports=t.default},18:function(e,t,s){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=s(91))&&r.__esModule?r:{default:r},a=s(18);function i(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var n=function(){function e(){}var t,s;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new o.default(e,t)},e.parse=function(e){return new o.default(e).getResult()},t=e,s=[{key:"BROWSER_MAP",get:function(){return a.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return a.ENGINE_MAP}},{key:"OS_MAP",get:function(){return a.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return a.PLATFORMS_MAP}}],null&&i(t.prototype,null),s&&i(t,s),e}();t.default=n,e.exports=t.default},91:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r=l(s(92)),o=l(s(93)),a=l(s(94)),i=l(s(95)),n=l(s(17));function l(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=n.default.find(r.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=n.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=n.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=n.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return n.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,s={},r=0,o={},a=0;if(Object.keys(e).forEach((function(t){var i=e[t];"string"==typeof i?(o[t]=i,a+=1):"object"==typeof i&&(s[t]=i,r+=1)})),r>0){var i=Object.keys(s),l=n.default.find(i,(function(e){return t.isOS(e)}));if(l){var d=this.satisfies(s[l]);if(void 0!==d)return d}var c=n.default.find(i,(function(e){return t.isPlatform(e)}));if(c){var u=this.satisfies(s[c]);if(void 0!==u)return u}}if(a>0){var p=Object.keys(o),m=n.default.find(p,(function(e){return t.isBrowser(e,!0)}));if(void 0!==m)return this.compareVersion(o[m])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var s=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),o=n.default.getBrowserTypeByAlias(r);return t&&o&&(r=o.toLowerCase()),r===s},t.compareVersion=function(e){var t=[0],s=e,r=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(s=e.substr(1),"="===e[1]?(r=!0,s=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?s=e.substr(1):"~"===e[0]&&(r=!0,s=e.substr(1)),t.indexOf(n.default.compareVersions(o,s,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=d,e.exports=t.default},92:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=s(17))&&r.__esModule?r:{default:r},a=/version\/(\d+(\.?_?\d+)+)/i,i=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},s=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(a,e);return s&&(t.version=s),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},s=o.default.getFirstMatch(a,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},s=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(a,e);return s&&(t.version=s),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},s=o.default.getFirstMatch(a,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},s=o.default.getFirstMatch(a,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},s=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(a,e);return s&&(t.version=s),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},s=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(a,e);return s&&(t.version=s),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},s=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(a,e);return s&&(t.version=s),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},s=o.default.getFirstMatch(a,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},s=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(a,e);return s&&(t.version=s),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},s=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(a,e);return s&&(t.version=s),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},s=o.default.getFirstMatch(a,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},s=o.default.getFirstMatch(a,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},s=o.default.getFirstMatch(a,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},s=o.default.getFirstMatch(a,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},s=o.default.getFirstMatch(a,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},s=o.default.getFirstMatch(a,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},s=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(a,e);return s&&(t.version=s),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},s=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(a,e);return s&&(t.version=s),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},s=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},s=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},s=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},s=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},s=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},s=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return s&&(t.version=s),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},s=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},s=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},s=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},s=o.default.getFirstMatch(a,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},s=o.default.getFirstMatch(a,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},s=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},s=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(a,e);return s&&(t.version=s),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},s=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(a,e);return s&&(t.version=s),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},s=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},s=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},s=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},s=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(a,e);return s&&(t.version=s),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},s=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},s=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:function(e){var t=!e.test(/like android/i),s=e.test(/android/i);return t&&s},describe:function(e){var t={name:"Android Browser"},s=o.default.getFirstMatch(a,e);return s&&(t.version=s),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},s=o.default.getFirstMatch(a,e);return s&&(t.version=s),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},s=o.default.getFirstMatch(a,e);return s&&(t.version=s),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=i,e.exports=t.default},93:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=s(17))&&r.__esModule?r:{default:r},a=s(18),i=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:a.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),s=o.default.getWindowsVersionName(t);return{name:a.OS_MAP.Windows,version:t,versionName:s}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:a.OS_MAP.iOS},s=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return s&&(t.version=s),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),s=o.default.getMacOSVersionName(t),r={name:a.OS_MAP.MacOS,version:t};return s&&(r.versionName=s),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:a.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),s=e.test(/android/i);return t&&s},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),s=o.default.getAndroidVersionName(t),r={name:a.OS_MAP.Android,version:t};return s&&(r.versionName=s),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),s={name:a.OS_MAP.WebOS};return t&&t.length&&(s.version=t),s}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:a.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:a.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:a.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.PlayStation4,version:t}}}];t.default=i,e.exports=t.default},94:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=s(17))&&r.__esModule?r:{default:r},a=s(18),i=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",s={type:a.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(s.model=t),s}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),s=e.test(/like (ipod|iphone)/i);return t&&!s},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:a.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.tv}}}];t.default=i,e.exports=t.default},95:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=s(17))&&r.__esModule?r:{default:r},a=s(18),i=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:a.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:a.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:a.ENGINE_MAP.Trident},s=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:a.ENGINE_MAP.Presto},s=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:function(e){var t=e.test(/gecko/i),s=e.test(/like gecko/i);return t&&!s},describe:function(e){var t={name:a.ENGINE_MAP.Gecko},s=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:a.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:a.ENGINE_MAP.WebKit},s=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}}];t.default=i,e.exports=t.default}})},4184:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var a=typeof s;if("string"===a||"number"===a)e.push(s);else if(Array.isArray(s)){if(s.length){var i=o.apply(null,s);i&&e.push(i)}}else if("object"===a){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var n in s)r.call(s,n)&&s[n]&&e.push(n)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(s=function(){return o}.apply(t,[]))||(e.exports=s)}()},667:e=>{"use strict";var t=Array.isArray,s=Object.keys,r=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function a(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){var n,l,d,c=t(e),u=t(i);if(c&&u){if((l=e.length)!=i.length)return!1;for(n=l;0!=n--;)if(!a(e[n],i[n]))return!1;return!0}if(c!=u)return!1;var p=e instanceof Date,m=i instanceof Date;if(p!=m)return!1;if(p&&m)return e.getTime()==i.getTime();var h=e instanceof RegExp,f=i instanceof RegExp;if(h!=f)return!1;if(h&&f)return e.toString()==i.toString();var _=s(e);if((l=_.length)!==s(i).length)return!1;for(n=l;0!=n--;)if(!r.call(i,_[n]))return!1;if(o&&e instanceof Element&&i instanceof Element)return e===i;for(n=l;0!=n--;)if(!("_owner"===(d=_[n])&&e.$$typeof||a(e[d],i[d])))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return a(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},8679:(e,t,s)=>{"use strict";var r=s(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},n={};function l(e){return r.isMemo(e)?i:n[e.$$typeof]||o}n[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var d=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,s,r){if("string"!=typeof s){if(h){var o=m(s);o&&o!==h&&e(t,o,r)}var i=c(s);u&&(i=i.concat(u(s)));for(var n=l(t),f=l(s),_=0;_<i.length;++_){var y=i[_];if(!(a[y]||r&&r[y]||f&&f[y]||n&&n[y])){var w=p(s,y);try{d(t,y,w)}catch(e){}}}return t}return t}},5760:e=>{"use strict";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var s=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,o=/^\d/,a=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,n=new t(512),l=new t(512),d=new t(512);function c(e){return n.get(e)||n.set(e,u(e).map((function(e){return e.replace(i,"$2")})))}function u(e){return e.match(s)||[""]}function p(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function m(e){return!p(e)&&(function(e){return e.match(o)&&!e.match(r)}(e)||function(e){return a.test(e)}(e))}e.exports={Cache:t,split:u,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,(function(e,s){for(var r=0,o=t.length,a=e;r<o-1;){var i=t[r];if("__proto__"===i||"constructor"===i||"prototype"===i)return e;a=a[t[r++]]}a[t[r]]=s}))},getter:function(e,t){var s=c(e);return d.get(e)||d.set(e,(function(e){for(var r=0,o=s.length;r<o;){if(null==e&&t)return;e=e[s[r++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(p(t)||r.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,s){!function(e,t,s){var r,o,a,i,n=e.length;for(o=0;o<n;o++)(r=e[o])&&(m(r)&&(r='"'+r+'"'),a=!(i=p(r))&&/^\d+$/.test(r),t.call(s,r,i,a,o,e))}(Array.isArray(e)?e:u(e),t,s)}}},8133:(e,t,s)=>{"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},a=function(){function e(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,s,r){return s&&e(t.prototype,s),r&&e(t,r),t}}(),i=d(s(9196)),n=d(s(5890)),l=d(s(4306));function d(e){return e&&e.__esModule?e:{default:e}}function c(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var u={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"},p=["animateOpacity","animationStateClasses","applyInlineTransitions","children","contentClassName","delay","duration","easing","height","onAnimationEnd","onAnimationStart"];function m(e){for(var t=arguments.length,s=Array(t>1?t-1:0),r=1;r<t;r++)s[r-1]=arguments[r];if(!s.length)return e;for(var o={},a=Object.keys(e),i=0;i<a.length;i++){var n=a[i];-1===s.indexOf(n)&&(o[n]=e[n])}return o}function h(e){e.forEach((function(e){return cancelAnimationFrame(e)}))}function f(e){return!isNaN(parseFloat(e))&&isFinite(e)}function _(e){return"string"==typeof e&&e.search("%")===e.length-1&&f(e.substr(0,e.length-1))}function y(e,t){e&&"function"==typeof e&&e(t)}var w=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));s.animationFrameIDs=[];var r="auto",a="visible";f(e.height)?(r=e.height<0||"0"===e.height?0:e.height,a="hidden"):_(e.height)&&(r="0%"===e.height?0:e.height,a="hidden"),s.animationStateClasses=o({},u,e.animationStateClasses);var i=s.getStaticStateClasses(r);return s.state={animationStateClasses:i,height:r,overflow:a,shouldUseTransitions:!1},s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this.state.height;this.contentElement&&this.contentElement.style&&this.hideContent(e)}},{key:"componentDidUpdate",value:function(e,t){var s,r,o=this,a=this.props,i=a.delay,n=a.duration,d=a.height,u=a.onAnimationEnd,p=a.onAnimationStart;if(this.contentElement&&d!==e.height){var m;this.showContent(t.height),this.contentElement.style.overflow="hidden";var w=this.contentElement.offsetHeight;this.contentElement.style.overflow="";var g=n+i,b=null,v={height:null,overflow:"hidden"},x="auto"===t.height;f(d)?(b=d<0||"0"===d?0:d,v.height=b):_(d)?(b="0%"===d?0:d,v.height=b):(b=w,v.height="auto",v.overflow=null),x&&(v.height=b,b=w);var j=(0,l.default)((c(m={},this.animationStateClasses.animating,!0),c(m,this.animationStateClasses.animatingUp,"auto"===e.height||d<e.height),c(m,this.animationStateClasses.animatingDown,"auto"===d||d>e.height),c(m,this.animationStateClasses.animatingToHeightZero,0===v.height),c(m,this.animationStateClasses.animatingToHeightAuto,"auto"===v.height),c(m,this.animationStateClasses.animatingToHeightSpecific,v.height>0),m)),S=this.getStaticStateClasses(v.height);this.setState({animationStateClasses:j,height:b,overflow:"hidden",shouldUseTransitions:!x}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),x?(v.shouldUseTransitions=!0,h(this.animationFrameIDs),this.animationFrameIDs=(s=function(){o.setState(v),y(p,{newHeight:v.height})},(r=[])[0]=requestAnimationFrame((function(){r[1]=requestAnimationFrame((function(){s()}))})),r),this.animationClassesTimeoutID=setTimeout((function(){o.setState({animationStateClasses:S,shouldUseTransitions:!1}),o.hideContent(v.height),y(u,{newHeight:v.height})}),g)):(y(p,{newHeight:b}),this.timeoutID=setTimeout((function(){v.animationStateClasses=S,v.shouldUseTransitions=!1,o.setState(v),"auto"!==d&&o.hideContent(b),y(u,{newHeight:b})}),g))}}},{key:"componentWillUnmount",value:function(){h(this.animationFrameIDs),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null,this.animationClassesTimeoutID=null,this.animationStateClasses=null}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,l.default)((c(t={},this.animationStateClasses.static,!0),c(t,this.animationStateClasses.staticHeightZero,0===e),c(t,this.animationStateClasses.staticHeightSpecific,e>0),c(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,s=this.props,r=s.animateOpacity,a=s.applyInlineTransitions,n=s.children,d=s.className,u=s.contentClassName,h=s.delay,f=s.duration,_=s.easing,y=s.id,w=s.style,g=this.state,b=g.height,v=g.overflow,x=g.animationStateClasses,j=g.shouldUseTransitions,S=o({},w,{height:b,overflow:v||w.overflow});j&&a&&(S.transition="height "+f+"ms "+_+" "+h+"ms",w.transition&&(S.transition=w.transition+", "+S.transition),S.WebkitTransition=S.transition);var k={};r&&(k.transition="opacity "+f+"ms "+_+" "+h+"ms",k.WebkitTransition=k.transition,0===b&&(k.opacity=0));var E=(0,l.default)((c(e={},x,!0),c(e,d,d),e)),L=void 0!==this.props["aria-hidden"]?this.props["aria-hidden"]:0===b;return i.default.createElement("div",o({},m.apply(void 0,[this.props].concat(p)),{"aria-hidden":L,className:E,id:y,style:S}),i.default.createElement("div",{className:u,style:k,ref:function(e){return t.contentElement=e}},n))}}]),t}(i.default.Component);w.propTypes={"aria-hidden":n.default.bool,animateOpacity:n.default.bool,animationStateClasses:n.default.object,applyInlineTransitions:n.default.bool,children:n.default.any.isRequired,className:n.default.string,contentClassName:n.default.string,delay:n.default.number,duration:n.default.number,easing:n.default.string,height:function(e,t,s){var o=e[t];return"number"==typeof o&&o>=0||_(o)||"auto"===o?null:new TypeError('value "'+o+'" of type "'+(void 0===o?"undefined":r(o))+'" is invalid type for '+t+" in "+s+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},id:n.default.string,onAnimationEnd:n.default.func,onAnimationStart:n.default.func,style:n.default.object},w.defaultProps={animateOpacity:!1,animationStateClasses:u,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.Z=w},4306:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var a=typeof s;if("string"===a||"number"===a)e.push(s);else if(Array.isArray(s)&&s.length){var i=o.apply(null,s);i&&e.push(i)}else if("object"===a)for(var n in s)r.call(s,n)&&s[n]&&e.push(n)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(s=function(){return o}.apply(t,[]))||(e.exports=s)}()},591:e=>{for(var t=[],s=0;s<256;++s)t[s]=(s+256).toString(16).substr(1);e.exports=function(e,s){var r=s||0,o=t;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},9176:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var s=new Uint8Array(16);e.exports=function(){return t(s),s}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},3409:(e,t,s)=>{var r=s(9176),o=s(591);e.exports=function(e,t,s){var a=t&&s||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var n=0;n<16;++n)t[a+n]=i[n];return t||o(i)}},9921:(e,t)=>{"use strict";var s="function"==typeof Symbol&&Symbol.for,r=s?Symbol.for("react.element"):60103,o=s?Symbol.for("react.portal"):60106,a=s?Symbol.for("react.fragment"):60107,i=s?Symbol.for("react.strict_mode"):60108,n=s?Symbol.for("react.profiler"):60114,l=s?Symbol.for("react.provider"):60109,d=s?Symbol.for("react.context"):60110,c=s?Symbol.for("react.async_mode"):60111,u=s?Symbol.for("react.concurrent_mode"):60111,p=s?Symbol.for("react.forward_ref"):60112,m=s?Symbol.for("react.suspense"):60113,h=s?Symbol.for("react.suspense_list"):60120,f=s?Symbol.for("react.memo"):60115,_=s?Symbol.for("react.lazy"):60116,y=s?Symbol.for("react.block"):60121,w=s?Symbol.for("react.fundamental"):60117,g=s?Symbol.for("react.responder"):60118,b=s?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case u:case a:case n:case i:case m:return e;default:switch(e=e&&e.$$typeof){case d:case p:case _:case f:case l:return e;default:return t}}case o:return t}}}function x(e){return v(e)===u}t.AsyncMode=c,t.ConcurrentMode=u,t.ContextConsumer=d,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=_,t.Memo=f,t.Portal=o,t.Profiler=n,t.StrictMode=i,t.Suspense=m,t.isAsyncMode=function(e){return x(e)||v(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return v(e)===d},t.isContextProvider=function(e){return v(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return v(e)===p},t.isFragment=function(e){return v(e)===a},t.isLazy=function(e){return v(e)===_},t.isMemo=function(e){return v(e)===f},t.isPortal=function(e){return v(e)===o},t.isProfiler=function(e){return v(e)===n},t.isStrictMode=function(e){return v(e)===i},t.isSuspense=function(e){return v(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===n||e===i||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===_||e.$$typeof===f||e.$$typeof===l||e.$$typeof===d||e.$$typeof===p||e.$$typeof===w||e.$$typeof===g||e.$$typeof===b||e.$$typeof===y)},t.typeOf=v},9864:(e,t,s)=>{"use strict";e.exports=s(9921)},4633:e=>{function t(e,t){var s=e.length,r=new Array(s),o={},a=s,i=function(e){for(var t=new Map,s=0,r=e.length;s<r;s++){var o=e[s];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}(t),n=function(e){for(var t=new Map,s=0,r=e.length;s<r;s++)t.set(e[s],s);return t}(e);for(t.forEach((function(e){if(!n.has(e[0])||!n.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));a--;)o[a]||l(e[a],a,new Set);return r;function l(e,t,a){if(a.has(e)){var d;try{d=", node was:"+JSON.stringify(e)}catch(e){d=""}throw new Error("Cyclic dependency"+d)}if(!n.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!o[t]){o[t]=!0;var c=i.get(e)||new Set;if(t=(c=Array.from(c)).length){a.add(e);do{var u=c[--t];l(u,n.get(u),a)}while(t);a.delete(e)}r[--s]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,s=0,r=e.length;s<r;s++){var o=e[s];t.add(o[0]),t.add(o[1])}return Array.from(t)}(e),e)},e.exports.array=t},9196:e=>{"use strict";e.exports=window.React},5890:e=>{"use strict";e.exports=window.yoast.propTypes}},t={};function s(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,s),a.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.components,t=window.wp.data,r=window.wp.domReady;var o=s.n(r);const a=window.wp.element,i=window.yoast.uiLibrary;var n=s(9196),l=s.n(n),d=s(667),c=s.n(d),u=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===p}(e)}(e)},p="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function m(e,t){return!1!==t.clone&&t.isMergeableObject(e)?f((s=e,Array.isArray(s)?[]:{}),e,t):e;var s}function h(e,t,s){return e.concat(t).map((function(e){return m(e,s)}))}function f(e,t,s){(s=s||{}).arrayMerge=s.arrayMerge||h,s.isMergeableObject=s.isMergeableObject||u;var r=Array.isArray(t);return r===Array.isArray(e)?r?s.arrayMerge(e,t,s):function(e,t,s){var r={};return s.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=m(e[t],s)})),Object.keys(t).forEach((function(o){s.isMergeableObject(t[o])&&e[o]?r[o]=f(e[o],t[o],s):r[o]=m(t[o],s)})),r}(e,t,s):m(t,s)}f.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,s){return f(e,s,t)}),{})};const _=f,y=window.lodash.isPlainObject;var w=s.n(y);const g=window.lodash.clone;var b=s.n(g);const v=window.lodash.toPath;var x=s.n(v);const j=function(e,t){};var S=s(8679),k=s.n(S);const E=window.lodash.cloneDeep;var L=s.n(E);function F(){return F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},F.apply(this,arguments)}function T(e,t){if(null==e)return{};var s,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)s=a[r],t.indexOf(s)>=0||(o[s]=e[s]);return o}function $(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var R=function(e){return Array.isArray(e)&&0===e.length},P=function(e){return"function"==typeof e},N=function(e){return null!==e&&"object"==typeof e},O=function(e){return String(Math.floor(Number(e)))===e},C=function(e){return"[object String]"===Object.prototype.toString.call(e)},A=function(e){return 0===n.Children.count(e)},M=function(e){return N(e)&&P(e.then)};function I(e,t,s,r){void 0===r&&(r=0);for(var o=x()(t);e&&r<o.length;)e=e[o[r++]];return void 0===e?s:e}function D(e,t,s){for(var r=b()(e),o=r,a=0,i=x()(t);a<i.length-1;a++){var n=i[a],l=I(e,i.slice(0,a+1));if(l&&(N(l)||Array.isArray(l)))o=o[n]=b()(l);else{var d=i[a+1];o=o[n]=O(d)&&Number(d)>=0?[]:{}}}return(0===a?e:o)[i[a]]===s?e:(void 0===s?delete o[i[a]]:o[i[a]]=s,0===a&&void 0===s&&delete r[i[a]],r)}function B(e,t,s,r){void 0===s&&(s=new WeakMap),void 0===r&&(r={});for(var o=0,a=Object.keys(e);o<a.length;o++){var i=a[o],n=e[i];N(n)?s.get(n)||(s.set(n,!0),r[i]=Array.isArray(n)?[]:{},B(n,t,s,r[i])):r[i]=t}return r}var U=(0,n.createContext)(void 0);U.displayName="FormikContext";var V=U.Provider,z=U.Consumer;function q(){var e=(0,n.useContext)(U);return e||j(!1),e}function W(e,t){switch(t.type){case"SET_VALUES":return F({},e,{values:t.payload});case"SET_TOUCHED":return F({},e,{touched:t.payload});case"SET_ERRORS":return c()(e.errors,t.payload)?e:F({},e,{errors:t.payload});case"SET_STATUS":return F({},e,{status:t.payload});case"SET_ISSUBMITTING":return F({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return F({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return F({},e,{values:D(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return F({},e,{touched:D(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return F({},e,{errors:D(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return F({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return F({},e,{touched:B(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return F({},e,{isSubmitting:!1});default:return e}}var H={},G={};function Y(e){var t=e.validateOnChange,s=void 0===t||t,r=e.validateOnBlur,o=void 0===r||r,a=e.validateOnMount,i=void 0!==a&&a,l=e.isInitialValid,d=e.enableReinitialize,u=void 0!==d&&d,p=e.onSubmit,m=T(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=F({validateOnChange:s,validateOnBlur:o,validateOnMount:i,onSubmit:p},m),f=(0,n.useRef)(h.initialValues),y=(0,n.useRef)(h.initialErrors||H),w=(0,n.useRef)(h.initialTouched||G),g=(0,n.useRef)(h.initialStatus),b=(0,n.useRef)(!1),v=(0,n.useRef)({});(0,n.useEffect)((function(){return b.current=!0,function(){b.current=!1}}),[]);var x=(0,n.useReducer)(W,{values:h.initialValues,errors:h.initialErrors||H,touched:h.initialTouched||G,status:h.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),j=x[0],S=x[1],k=(0,n.useCallback)((function(e,t){return new Promise((function(s,r){var o=h.validate(e,t);null==o?s(H):M(o)?o.then((function(e){s(e||H)}),(function(e){r(e)})):s(o)}))}),[h.validate]),E=(0,n.useCallback)((function(e,t){var s=h.validationSchema,r=P(s)?s(t):s,o=t&&r.validateAt?r.validateAt(t,e):function(e,t,s,r){void 0===s&&(s=!1),void 0===r&&(r={});var o=K(e);return t[s?"validateSync":"validate"](o,{abortEarly:!1,context:r})}(e,r);return new Promise((function(e,t){o.then((function(){e(H)}),(function(s){"ValidationError"===s.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return D(t,e.path,e.message);var s=e.inner,r=Array.isArray(s),o=0;for(s=r?s:s[Symbol.iterator]();;){var a;if(r){if(o>=s.length)break;a=s[o++]}else{if((o=s.next()).done)break;a=o.value}var i=a;I(t,i.path)||(t=D(t,i.path,i.message))}}return t}(s)):t(s)}))}))}),[h.validationSchema]),L=(0,n.useCallback)((function(e,t){return new Promise((function(s){return s(v.current[e].validate(t))}))}),[]),$=(0,n.useCallback)((function(e){var t=Object.keys(v.current).filter((function(e){return P(v.current[e].validate)})),s=t.length>0?t.map((function(t){return L(t,I(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(s).then((function(e){return e.reduce((function(e,s,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===s||s&&(e=D(e,t[r],s)),e}),{})}))}),[L]),R=(0,n.useCallback)((function(e){return Promise.all([$(e),h.validationSchema?E(e):{},h.validate?k(e):{}]).then((function(e){var t=e[0],s=e[1],r=e[2];return _.all([t,s,r],{arrayMerge:J})}))}),[h.validate,h.validationSchema,$,k,E]),O=X((function(e){return void 0===e&&(e=j.values),S({type:"SET_ISVALIDATING",payload:!0}),R(e).then((function(e){return b.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:e})),e}))}));(0,n.useEffect)((function(){i&&!0===b.current&&c()(f.current,h.initialValues)&&O(f.current)}),[i,O]);var A=(0,n.useCallback)((function(e){var t=e&&e.values?e.values:f.current,s=e&&e.errors?e.errors:y.current?y.current:h.initialErrors||{},r=e&&e.touched?e.touched:w.current?w.current:h.initialTouched||{},o=e&&e.status?e.status:g.current?g.current:h.initialStatus;f.current=t,y.current=s,w.current=r,g.current=o;var a=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:s,touched:r,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var i=h.onReset(j.values,ce);M(i)?i.then(a):a()}else a()}),[h.initialErrors,h.initialStatus,h.initialTouched]);(0,n.useEffect)((function(){!0!==b.current||c()(f.current,h.initialValues)||(u&&(f.current=h.initialValues,A()),i&&O(f.current))}),[u,h.initialValues,A,i,O]),(0,n.useEffect)((function(){u&&!0===b.current&&!c()(y.current,h.initialErrors)&&(y.current=h.initialErrors||H,S({type:"SET_ERRORS",payload:h.initialErrors||H}))}),[u,h.initialErrors]),(0,n.useEffect)((function(){u&&!0===b.current&&!c()(w.current,h.initialTouched)&&(w.current=h.initialTouched||G,S({type:"SET_TOUCHED",payload:h.initialTouched||G}))}),[u,h.initialTouched]),(0,n.useEffect)((function(){u&&!0===b.current&&!c()(g.current,h.initialStatus)&&(g.current=h.initialStatus,S({type:"SET_STATUS",payload:h.initialStatus}))}),[u,h.initialStatus,h.initialTouched]);var B=X((function(e){if(v.current[e]&&P(v.current[e].validate)){var t=I(j.values,e),s=v.current[e].validate(t);return M(s)?(S({type:"SET_ISVALIDATING",payload:!0}),s.then((function(e){return e})).then((function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),S({type:"SET_ISVALIDATING",payload:!1})}))):(S({type:"SET_FIELD_ERROR",payload:{field:e,value:s}}),Promise.resolve(s))}return h.validationSchema?(S({type:"SET_ISVALIDATING",payload:!0}),E(j.values,e).then((function(e){return e})).then((function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),S({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),U=(0,n.useCallback)((function(e,t){var s=t.validate;v.current[e]={validate:s}}),[]),V=(0,n.useCallback)((function(e){delete v.current[e]}),[]),z=X((function(e,t){return S({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?O(j.values):Promise.resolve()})),q=(0,n.useCallback)((function(e){S({type:"SET_ERRORS",payload:e})}),[]),Y=X((function(e,t){var r=P(e)?e(j.values):e;return S({type:"SET_VALUES",payload:r}),(void 0===t?s:t)?O(r):Promise.resolve()})),Z=(0,n.useCallback)((function(e,t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),Q=X((function(e,t,r){return S({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?s:r)?O(D(j.values,e,t)):Promise.resolve()})),ee=(0,n.useCallback)((function(e,t){var s,r=t,o=e;if(!C(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,i=a.type,n=a.name,l=a.id,d=a.value,c=a.checked,u=(a.outerHTML,a.options),p=a.multiple;r=t||n||l,o=/number|range/.test(i)?(s=parseFloat(d),isNaN(s)?"":s):/checkbox/.test(i)?function(e,t,s){if("boolean"==typeof e)return Boolean(t);var r=[],o=!1,a=-1;if(Array.isArray(e))r=e,o=(a=e.indexOf(s))>=0;else if(!s||"true"==s||"false"==s)return Boolean(t);return t&&s&&!o?r.concat(s):o?r.slice(0,a).concat(r.slice(a+1)):r}(I(j.values,r),c,d):u&&p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(u):d}r&&Q(r,o)}),[Q,j.values]),te=X((function(e){if(C(e))return function(t){return ee(t,e)};ee(e)})),se=X((function(e,t,s){return void 0===t&&(t=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===s?o:s)?O(j.values):Promise.resolve()})),re=(0,n.useCallback)((function(e,t){e.persist&&e.persist();var s=e.target,r=s.name,o=s.id,a=(s.outerHTML,t||r||o);se(a,!0)}),[se]),oe=X((function(e){if(C(e))return function(t){return re(t,e)};re(e)})),ae=(0,n.useCallback)((function(e){P(e)?S({type:"SET_FORMIK_STATE",payload:e}):S({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),ie=(0,n.useCallback)((function(e){S({type:"SET_STATUS",payload:e})}),[]),ne=(0,n.useCallback)((function(e){S({type:"SET_ISSUBMITTING",payload:e})}),[]),le=X((function(){return S({type:"SUBMIT_ATTEMPT"}),O().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var s;try{if(void 0===(s=ue()))return}catch(e){throw e}return Promise.resolve(s).then((function(e){return b.current&&S({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(b.current)throw S({type:"SUBMIT_FAILURE"}),e}))}if(b.current&&(S({type:"SUBMIT_FAILURE"}),t))throw e}))})),de=X((function(e){e&&e.preventDefault&&P(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&P(e.stopPropagation)&&e.stopPropagation(),le().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),ce={resetForm:A,validateForm:O,validateField:B,setErrors:q,setFieldError:Z,setFieldTouched:se,setFieldValue:Q,setStatus:ie,setSubmitting:ne,setTouched:z,setValues:Y,setFormikState:ae,submitForm:le},ue=X((function(){return p(j.values,ce)})),pe=X((function(e){e&&e.preventDefault&&P(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&P(e.stopPropagation)&&e.stopPropagation(),A()})),me=(0,n.useCallback)((function(e){return{value:I(j.values,e),error:I(j.errors,e),touched:!!I(j.touched,e),initialValue:I(f.current,e),initialTouched:!!I(w.current,e),initialError:I(y.current,e)}}),[j.errors,j.touched,j.values]),he=(0,n.useCallback)((function(e){return{setValue:function(t,s){return Q(e,t,s)},setTouched:function(t,s){return se(e,t,s)},setError:function(t){return Z(e,t)}}}),[Q,se,Z]),fe=(0,n.useCallback)((function(e){var t=N(e),s=t?e.name:e,r=I(j.values,s),o={name:s,value:r,onChange:te,onBlur:oe};if(t){var a=e.type,i=e.value,n=e.as,l=e.multiple;"checkbox"===a?void 0===i?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(i)),o.value=i):"radio"===a?(o.checked=r===i,o.value=i):"select"===n&&l&&(o.value=o.value||[],o.multiple=!0)}return o}),[oe,te,j.values]),_e=(0,n.useMemo)((function(){return!c()(f.current,j.values)}),[f.current,j.values]),ye=(0,n.useMemo)((function(){return void 0!==l?_e?j.errors&&0===Object.keys(j.errors).length:!1!==l&&P(l)?l(h):l:j.errors&&0===Object.keys(j.errors).length}),[l,_e,j.errors,h]);return F({},j,{initialValues:f.current,initialErrors:y.current,initialTouched:w.current,initialStatus:g.current,handleBlur:oe,handleChange:te,handleReset:pe,handleSubmit:de,resetForm:A,setErrors:q,setFormikState:ae,setFieldTouched:se,setFieldValue:Q,setFieldError:Z,setStatus:ie,setSubmitting:ne,setTouched:z,setValues:Y,submitForm:le,validateForm:O,validateField:B,isValid:ye,dirty:_e,unregisterField:V,registerField:U,getFieldProps:fe,getFieldMeta:me,getFieldHelpers:he,validateOnBlur:o,validateOnChange:s,validateOnMount:i})}function Z(e){var t=Y(e),s=e.component,r=e.children,o=e.render,a=e.innerRef;return(0,n.useImperativeHandle)(a,(function(){return t})),(0,n.createElement)(V,{value:t},s?(0,n.createElement)(s,t):o?o(t):r?P(r)?r(t):A(r)?null:n.Children.only(r):null)}function K(e){var t=Array.isArray(e)?[]:{};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var r=String(s);!0===Array.isArray(e[r])?t[r]=e[r].map((function(e){return!0===Array.isArray(e)||w()(e)?K(e):""!==e?e:void 0})):w()(e[r])?t[r]=K(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function J(e,t,s){var r=e.slice();return t.forEach((function(t,o){if(void 0===r[o]){var a=!1!==s.clone&&s.isMergeableObject(t);r[o]=a?_(Array.isArray(t)?[]:{},t,s):t}else s.isMergeableObject(t)?r[o]=_(e[o],t,s):-1===e.indexOf(t)&&r.push(t)})),r}var Q="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function X(e){var t=(0,n.useRef)(e);return Q((function(){t.current=e})),(0,n.useCallback)((function(){for(var e=arguments.length,s=new Array(e),r=0;r<e;r++)s[r]=arguments[r];return t.current.apply(void 0,s)}),[])}function ee(e){var t=q(),s=t.getFieldProps,r=t.getFieldMeta,o=t.getFieldHelpers,a=t.registerField,i=t.unregisterField,l=N(e)?e:{name:e},d=l.name,c=l.validate;return(0,n.useEffect)((function(){return d&&a(d,{validate:c}),function(){d&&i(d)}}),[a,i,d,c]),d||j(!1),[s(l),r(d),o(d)]}function te(e){var t=e.validate,s=e.name,r=e.render,o=e.children,a=e.as,i=e.component,l=T(e,["validate","name","render","children","as","component"]),d=T(q(),["validate","validationSchema"]),c=d.registerField,u=d.unregisterField;(0,n.useEffect)((function(){return c(s,{validate:t}),function(){u(s)}}),[c,u,s,t]);var p=d.getFieldProps(F({name:s},l)),m=d.getFieldMeta(s),h={field:p,form:d};if(r)return r(F({},h,{meta:m}));if(P(o))return o(F({},h,{meta:m}));if(i){if("string"==typeof i){var f=l.innerRef,_=T(l,["innerRef"]);return(0,n.createElement)(i,F({ref:f},p,_),o)}return(0,n.createElement)(i,F({field:p,form:d},l),o)}var y=a||"input";if("string"==typeof y){var w=l.innerRef,g=T(l,["innerRef"]);return(0,n.createElement)(y,F({ref:w},p,g),o)}return(0,n.createElement)(y,F({},p,l),o)}var se=(0,n.forwardRef)((function(e,t){var s=e.action,r=T(e,["action"]),o=null!=s?s:"#",a=q(),i=a.handleReset,l=a.handleSubmit;return(0,n.createElement)("form",Object.assign({onSubmit:l,ref:t,onReset:i,action:o},r))}));function re(e){var t=function(t){return(0,n.createElement)(z,null,(function(s){return s||j(!1),(0,n.createElement)(e,Object.assign({},t,{formik:s}))}))},s=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+s+")",k()(t,e)}se.displayName="Form";var oe=function(e,t,s){var r=ae(e);return r.splice(t,0,s),r},ae=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(F({},e,{length:t+1}))}return[]},ie=function(e){function t(t){var s;return(s=e.call(this,t)||this).updateArrayField=function(e,t,r){var o=s.props,a=o.name;(0,o.formik.setFormikState)((function(s){var o="function"==typeof r?r:e,i="function"==typeof t?t:e,n=D(s.values,a,e(I(s.values,a))),l=r?o(I(s.errors,a)):void 0,d=t?i(I(s.touched,a)):void 0;return R(l)&&(l=void 0),R(d)&&(d=void 0),F({},s,{values:n,errors:r?D(s.errors,a,l):s.errors,touched:t?D(s.touched,a,d):s.touched})}))},s.push=function(e){return s.updateArrayField((function(t){return[].concat(ae(t),[L()(e)])}),!1,!1)},s.handlePush=function(e){return function(){return s.push(e)}},s.swap=function(e,t){return s.updateArrayField((function(s){return function(e,t,s){var r=ae(e),o=r[t];return r[t]=r[s],r[s]=o,r}(s,e,t)}),!0,!0)},s.handleSwap=function(e,t){return function(){return s.swap(e,t)}},s.move=function(e,t){return s.updateArrayField((function(s){return function(e,t,s){var r=ae(e),o=r[t];return r.splice(t,1),r.splice(s,0,o),r}(s,e,t)}),!0,!0)},s.handleMove=function(e,t){return function(){return s.move(e,t)}},s.insert=function(e,t){return s.updateArrayField((function(s){return oe(s,e,t)}),(function(t){return oe(t,e,null)}),(function(t){return oe(t,e,null)}))},s.handleInsert=function(e,t){return function(){return s.insert(e,t)}},s.replace=function(e,t){return s.updateArrayField((function(s){return function(e,t,s){var r=ae(e);return r[t]=s,r}(s,e,t)}),!1,!1)},s.handleReplace=function(e,t){return function(){return s.replace(e,t)}},s.unshift=function(e){var t=-1;return s.updateArrayField((function(s){var r=s?[e].concat(s):[e];return t<0&&(t=r.length),r}),(function(e){var s=e?[null].concat(e):[null];return t<0&&(t=s.length),s}),(function(e){var s=e?[null].concat(e):[null];return t<0&&(t=s.length),s})),t},s.handleUnshift=function(e){return function(){return s.unshift(e)}},s.handleRemove=function(e){return function(){return s.remove(e)}},s.handlePop=function(){return function(){return s.pop()}},s.remove=s.remove.bind($(s)),s.pop=s.pop.bind($(s)),s}var s,r;r=e,(s=t).prototype=Object.create(r.prototype),s.prototype.constructor=s,s.__proto__=r;var o=t.prototype;return o.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!c()(I(e.formik.values,e.name),I(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},o.remove=function(e){var t;return this.updateArrayField((function(s){var r=s?ae(s):[];return t||(t=r[e]),P(r.splice)&&r.splice(e,1),r}),!0,!0),t},o.pop=function(){var e;return this.updateArrayField((function(t){var s=t;return e||(e=s&&s.pop&&s.pop()),s}),!0,!0),e},o.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,s=t.component,r=t.render,o=t.children,a=t.name,i=F({},e,{form:T(t.formik,["validate","validationSchema"]),name:a});return s?(0,n.createElement)(s,i):r?r(i):o?"function"==typeof o?o(i):A(o)?null:n.Children.only(o):null},t}(n.Component);ie.defaultProps={validateOnChange:!0};var ne=re(ie);const le=window.lodash,de=window.ReactDOM;function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},ce.apply(this,arguments)}var ue;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(ue||(ue={}));const pe="popstate";function me(e,t){if(!1===e||null==e)throw new Error(t)}function he(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function fe(e,t){return{usr:e.state,key:e.key,idx:t}}function _e(e,t,s,r){return void 0===s&&(s=null),ce({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?we(t):t,{state:s,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function ye(e){let{pathname:t="/",search:s="",hash:r=""}=e;return s&&"?"!==s&&(t+="?"===s.charAt(0)?s:"?"+s),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function we(e){let t={};if(e){let s=e.indexOf("#");s>=0&&(t.hash=e.substr(s),e=e.substr(0,s));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var ge;function be(e,t,s){return void 0===s&&(s="/"),function(e,t,s,r){let o=Oe(("string"==typeof t?we(t):t).pathname||"/",s);if(null==o)return null;let a=ve(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let s=e.length===t.length&&e.slice(0,-1).every(((e,s)=>e===t[s]));return s?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=Ne(o);i=Re(a[e],t,r)}return i}(e,t,s,!1)}function ve(e,t,s,r){void 0===t&&(t=[]),void 0===s&&(s=[]),void 0===r&&(r="");let o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(me(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let n=Ie([r,i.relativePath]),l=s.concat(i);e.children&&e.children.length>0&&(me(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+n+'".'),ve(e.children,t,l,n)),(null!=e.path||e.index)&&t.push({path:n,score:$e(n,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var s;if(""!==e.path&&null!=(s=e.path)&&s.includes("?"))for(let s of xe(e.path))o(e,t,s);else o(e,t)})),t}function xe(e){let t=e.split("/");if(0===t.length)return[];let[s,...r]=t,o=s.endsWith("?"),a=s.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=xe(r.join("/")),n=[];return n.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&n.push(...i),n.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(ge||(ge={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const je=/^:[\w-]+$/,Se=3,ke=2,Ee=1,Le=10,Fe=-2,Te=e=>"*"===e;function $e(e,t){let s=e.split("/"),r=s.length;return s.some(Te)&&(r+=Fe),t&&(r+=ke),s.filter((e=>!Te(e))).reduce(((e,t)=>e+(je.test(t)?Se:""===t?Ee:Le)),r)}function Re(e,t,s){void 0===s&&(s=!1);let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let n=r[e],l=e===r.length-1,d="/"===a?t:t.slice(a.length)||"/",c=Pe({path:n.relativePath,caseSensitive:n.caseSensitive,end:l},d),u=n.route;if(!c&&l&&s&&!r[r.length-1].route.index&&(c=Pe({path:n.relativePath,caseSensitive:n.caseSensitive,end:!1},d)),!c)return null;Object.assign(o,c.params),i.push({params:o,pathname:Ie([a,c.pathname]),pathnameBase:De(Ie([a,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(a=Ie([a,c.pathnameBase]))}return i}function Pe(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[s,r]=function(e,t,s){void 0===t&&(t=!1),void 0===s&&(s=!0),he("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,s)=>(r.push({paramName:t,isOptional:null!=s}),s?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(s);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),n=o.slice(1);return{params:r.reduce(((e,t,s)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=n[s]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=n[s];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function Ne(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return he(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function Oe(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let s=t.endsWith("/")?t.length-1:t.length,r=e.charAt(s);return r&&"/"!==r?null:e.slice(s)||"/"}function Ce(e,t,s,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+s+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function Ae(e,t){let s=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?s.map(((e,t)=>t===s.length-1?e.pathname:e.pathnameBase)):s.map((e=>e.pathnameBase))}function Me(e,t,s,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=we(e):(o=ce({},e),me(!o.pathname||!o.pathname.includes("?"),Ce("?","pathname","search",o)),me(!o.pathname||!o.pathname.includes("#"),Ce("#","pathname","hash",o)),me(!o.search||!o.search.includes("#"),Ce("#","search","hash",o)));let a,i=""===e||""===o.pathname,n=i?"/":o.pathname;if(null==n)a=s;else{let e=t.length-1;if(!r&&n.startsWith("..")){let t=n.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:s,search:r="",hash:o=""}="string"==typeof e?we(e):e,a=s?s.startsWith("/")?s:function(e,t){let s=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?s.length>1&&s.pop():"."!==e&&s.push(e)})),s.length>1?s.join("/"):"/"}(s,t):t;return{pathname:a,search:Be(r),hash:Ue(o)}}(o,a),d=n&&"/"!==n&&n.endsWith("/"),c=(i||"."===n)&&s.endsWith("/");return l.pathname.endsWith("/")||!d&&!c||(l.pathname+="/"),l}const Ie=e=>e.join("/").replace(/\/\/+/g,"/"),De=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Be=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Ue=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const Ve=["post","put","patch","delete"],ze=(new Set(Ve),["get",...Ve]);function qe(){return qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},qe.apply(this,arguments)}new Set(ze),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const We=n.createContext(null),He=n.createContext(null),Ge=n.createContext(null),Ye=n.createContext(null),Ze=n.createContext({outlet:null,matches:[],isDataRoute:!1}),Ke=n.createContext(null);function Je(){return null!=n.useContext(Ye)}function Qe(){return Je()||me(!1),n.useContext(Ye).location}function Xe(e){n.useContext(Ge).static||n.useLayoutEffect(e)}function et(){let{isDataRoute:e}=n.useContext(Ze);return e?function(){let{router:e}=function(e){let t=n.useContext(We);return t||me(!1),t}(nt.UseNavigateStable),t=dt(lt.UseNavigateStable),s=n.useRef(!1);return Xe((()=>{s.current=!0})),n.useCallback((function(r,o){void 0===o&&(o={}),s.current&&("number"==typeof r?e.navigate(r):e.navigate(r,qe({fromRouteId:t},o)))}),[e,t])}():function(){Je()||me(!1);let e=n.useContext(We),{basename:t,future:s,navigator:r}=n.useContext(Ge),{matches:o}=n.useContext(Ze),{pathname:a}=Qe(),i=JSON.stringify(Ae(o,s.v7_relativeSplatPath)),l=n.useRef(!1);return Xe((()=>{l.current=!0})),n.useCallback((function(s,o){if(void 0===o&&(o={}),!l.current)return;if("number"==typeof s)return void r.go(s);let n=Me(s,JSON.parse(i),a,"path"===o.relative);null==e&&"/"!==t&&(n.pathname="/"===n.pathname?t:Ie([t,n.pathname])),(o.replace?r.replace:r.push)(n,o.state,o)}),[t,r,i,a,e])}()}function tt(e,t){let{relative:s}=void 0===t?{}:t,{future:r}=n.useContext(Ge),{matches:o}=n.useContext(Ze),{pathname:a}=Qe(),i=JSON.stringify(Ae(o,r.v7_relativeSplatPath));return n.useMemo((()=>Me(e,JSON.parse(i),a,"path"===s)),[e,i,a,s])}function st(e,t,s,r){Je()||me(!1);let{navigator:o}=n.useContext(Ge),{matches:a}=n.useContext(Ze),i=a[a.length-1],l=i?i.params:{},d=(i&&i.pathname,i?i.pathnameBase:"/");i&&i.route;let c,u=Qe();if(t){var p;let e="string"==typeof t?we(t):t;"/"===d||(null==(p=e.pathname)?void 0:p.startsWith(d))||me(!1),c=e}else c=u;let m=c.pathname||"/",h=m;if("/"!==d){let e=d.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let f=be(e,{pathname:h}),_=function(e,t,s,r){var o;if(void 0===t&&(t=[]),void 0===s&&(s=null),void 0===r&&(r=null),null==e){var a;if(!s)return null;if(s.errors)e=s.matches;else{if(!(null!=(a=r)&&a.v7_partialHydration&&0===t.length&&!s.initialized&&s.matches.length>0))return null;e=s.matches}}let i=e,l=null==(o=s)?void 0:o.errors;if(null!=l){let e=i.findIndex((e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id])));e>=0||me(!1),i=i.slice(0,Math.min(i.length,e+1))}let d=!1,c=-1;if(s&&r&&r.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=s,o=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){d=!0,i=c>=0?i.slice(0,c+1):[i[0]];break}}}return i.reduceRight(((e,r,o)=>{let a,u=!1,p=null,m=null;var h;s&&(a=l&&r.route.id?l[r.route.id]:void 0,p=r.route.errorElement||ot,d&&(c<0&&0===o?(ct[h="route-fallback"]||(ct[h]=!0),u=!0,m=null):c===o&&(u=!0,m=r.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,o+1)),_=()=>{let t;return t=a?p:u?m:r.route.Component?n.createElement(r.route.Component,null):r.route.element?r.route.element:e,n.createElement(it,{match:r,routeContext:{outlet:e,matches:f,isDataRoute:null!=s},children:t})};return s&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?n.createElement(at,{location:s.location,revalidation:s.revalidation,component:p,error:a,children:_(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):_()}),null)}(f&&f.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:Ie([d,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:Ie([d,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,s,r);return t&&_?n.createElement(Ye.Provider,{value:{location:qe({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:ue.Pop}},_):_}function rt(){let e=function(){var e;let t=n.useContext(Ke),s=function(e){let t=n.useContext(He);return t||me(!1),t}(lt.UseRouteError),r=dt(lt.UseRouteError);return void 0!==t?t:null==(e=s.errors)?void 0:e[r]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),s=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),s?n.createElement("pre",{style:r},s):null,null)}const ot=n.createElement(rt,null);class at extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?n.createElement(Ze.Provider,{value:this.props.routeContext},n.createElement(Ke.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function it(e){let{routeContext:t,match:s,children:r}=e,o=n.useContext(We);return o&&o.static&&o.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=s.route.id),n.createElement(Ze.Provider,{value:t},r)}var nt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(nt||{}),lt=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(lt||{});function dt(e){let t=function(e){let t=n.useContext(Ze);return t||me(!1),t}(),s=t.matches[t.matches.length-1];return s.route.id||me(!1),s.route.id}const ct={};function ut(e){let{to:t,replace:s,state:r,relative:o}=e;Je()||me(!1);let{future:a,static:i}=n.useContext(Ge),{matches:l}=n.useContext(Ze),{pathname:d}=Qe(),c=et(),u=Me(t,Ae(l,a.v7_relativeSplatPath),d,"path"===o),p=JSON.stringify(u);return n.useEffect((()=>c(JSON.parse(p),{replace:s,state:r,relative:o})),[c,p,o,s,r]),null}function pt(e){me(!1)}function mt(e){let{basename:t="/",children:s=null,location:r,navigationType:o=ue.Pop,navigator:a,static:i=!1,future:l}=e;Je()&&me(!1);let d=t.replace(/^\/*/,"/"),c=n.useMemo((()=>({basename:d,navigator:a,static:i,future:qe({v7_relativeSplatPath:!1},l)})),[d,l,a,i]);"string"==typeof r&&(r=we(r));let{pathname:u="/",search:p="",hash:m="",state:h=null,key:f="default"}=r,_=n.useMemo((()=>{let e=Oe(u,d);return null==e?null:{location:{pathname:e,search:p,hash:m,state:h,key:f},navigationType:o}}),[d,u,p,m,h,f,o]);return null==_?null:n.createElement(Ge.Provider,{value:c},n.createElement(Ye.Provider,{children:s,value:_}))}function ht(e){let{children:t,location:s}=e;return st(ft(t),s)}function ft(e,t){void 0===t&&(t=[]);let s=[];return n.Children.forEach(e,((e,r)=>{if(!n.isValidElement(e))return;let o=[...t,r];if(e.type===n.Fragment)return void s.push.apply(s,ft(e.props.children,o));e.type!==pt&&me(!1),e.props.index&&e.props.children&&me(!1);let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=ft(e.props.children,o)),s.push(a)})),s}function _t(){return _t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},_t.apply(this,arguments)}n.startTransition,new Promise((()=>{})),n.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const yt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(ms){}new Map;const wt=n.startTransition;function gt(e){let{basename:t,children:s,future:r,window:o}=e,a=n.useRef();var i;null==a.current&&(a.current=(void 0===(i={window:o,v5Compat:!0})&&(i={}),function(e,t,s,r){void 0===r&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,n=ue.Pop,l=null,d=c();function c(){return(i.state||{idx:null}).idx}function u(){n=ue.Pop;let e=c(),t=null==e?null:e-d;d=e,l&&l({action:n,location:m.location,delta:t})}function p(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,s="string"==typeof e?e:ye(e);return s=s.replace(/ $/,"%20"),me(t,"No window.location.(origin|href) available to create URL for href: "+s),new URL(s,t)}null==d&&(d=0,i.replaceState(ce({},i.state,{idx:d}),""));let m={get action(){return n},get location(){return e(o,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(pe,u),l=e,()=>{o.removeEventListener(pe,u),l=null}},createHref:e=>t(o,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){n=ue.Push;let r=_e(m.location,e,t);s&&s(r,e),d=c()+1;let u=fe(r,d),p=m.createHref(r);try{i.pushState(u,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(p)}a&&l&&l({action:n,location:m.location,delta:1})},replace:function(e,t){n=ue.Replace;let r=_e(m.location,e,t);s&&s(r,e),d=c();let o=fe(r,d),u=m.createHref(r);i.replaceState(o,"",u),a&&l&&l({action:n,location:m.location,delta:0})},go:e=>i.go(e)};return m}((function(e,t){let{pathname:s="/",search:r="",hash:o=""}=we(e.location.hash.substr(1));return s.startsWith("/")||s.startsWith(".")||(s="/"+s),_e("",{pathname:s,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let s=e.document.querySelector("base"),r="";if(s&&s.getAttribute("href")){let t=e.location.href,s=t.indexOf("#");r=-1===s?t:t.slice(0,s)}return r+"#"+("string"==typeof t?t:ye(t))}),(function(e,t){he("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),i)));let l=a.current,[d,c]=n.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},p=n.useCallback((e=>{u&&wt?wt((()=>c(e))):c(e)}),[c,u]);return n.useLayoutEffect((()=>l.listen(p)),[l,p]),n.createElement(mt,{basename:t,children:s,location:d.location,navigationType:d.action,navigator:l,future:r})}de.flushSync,n.useId;const bt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,vt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xt=n.forwardRef((function(e,t){let s,{onClick:r,relative:o,reloadDocument:a,replace:i,state:l,target:d,to:c,preventScrollReset:u,unstable_viewTransition:p}=e,m=function(e,t){if(null==e)return{};var s,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)s=a[r],t.indexOf(s)>=0||(o[s]=e[s]);return o}(e,yt),{basename:h}=n.useContext(Ge),f=!1;if("string"==typeof c&&vt.test(c)&&(s=c,bt))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),s=Oe(t.pathname,h);t.origin===e.origin&&null!=s?c=s+t.search+t.hash:f=!0}catch(e){}let _=function(e,t){let{relative:s}=void 0===t?{}:t;Je()||me(!1);let{basename:r,navigator:o}=n.useContext(Ge),{hash:a,pathname:i,search:l}=tt(e,{relative:s}),d=i;return"/"!==r&&(d="/"===i?r:Ie([r,i])),o.createHref({pathname:d,search:l,hash:a})}(c,{relative:o}),y=function(e,t){let{target:s,replace:r,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:l}=void 0===t?{}:t,d=et(),c=Qe(),u=tt(e,{relative:i});return n.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,s)){t.preventDefault();let s=void 0!==r?r:ye(c)===ye(u);d(e,{replace:s,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:l})}}),[c,d,u,r,o,s,e,a,i,l])}(c,{replace:i,state:l,target:d,preventScrollReset:u,relative:o,unstable_viewTransition:p});return n.createElement("a",_t({},m,{href:s||_,onClick:f||a?r:function(e){r&&r(e),e.defaultPrevented||y(e)},ref:t,target:d}))}));var jt,St;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(jt||(jt={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(St||(St={}));const kt=window.yoast.styledComponents,Et=window.wp.i18n,Lt=window.yoast.reduxJsToolkit,Ft="adminUrl",Tt=(0,Lt.createSlice)({name:Ft,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),$t=(Tt.getInitialState,{selectAdminUrl:e=>(0,le.get)(e,Ft,"")});$t.selectAdminLink=(0,Lt.createSelector)([$t.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),Tt.actions,Tt.reducer;const Rt=window.wp.apiFetch;var Pt=s.n(Rt);const Nt="hasConsent",Ot=(0,Lt.createSlice)({name:Nt,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),Ct=(Ot.getInitialState,Ot.actions,Ot.reducer,window.wp.url),At="linkParams",Mt=(0,Lt.createSlice)({name:At,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),It=Mt.getInitialState,Dt={selectLinkParam:(e,t,s={})=>(0,le.get)(e,`${At}.${t}`,s),selectLinkParams:e=>(0,le.get)(e,At,{})};Dt.selectLink=(0,Lt.createSelector)([Dt.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,Ct.addQueryArgs)(t,{...e,...s})));const Bt=Mt.actions,Ut=Mt.reducer,Vt="notifications",zt=(0,Lt.createSlice)({name:Vt,initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:r,description:o})=>({payload:{id:e||(0,Lt.nanoid)(),variant:t,size:s,title:r||"",description:o}})},removeNotification:(e,{payload:t})=>(0,le.omit)(e,t)}}),qt=zt.getInitialState,Wt={selectNotifications:e=>(0,le.get)(e,Vt,{}),selectNotification:(e,t)=>(0,le.get)(e,[Vt,t],null)},Ht=zt.actions,Gt=zt.reducer,Yt="pluginUrl",Zt=(0,Lt.createSlice)({name:Yt,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),Kt=(Zt.getInitialState,{selectPluginUrl:e=>(0,le.get)(e,Yt,"")});Kt.selectImageLink=(0,Lt.createSelector)([Kt.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,le.trimEnd)(e,"/"),(0,le.trim)(t,"/"),(0,le.trimStart)(s,"/")].join("/"))),Zt.actions,Zt.reducer;const Jt="request",Qt="success",Xt="error",es="idle",ts="loading",ss="success",rs="error",os="wistiaEmbedPermission",as=(0,Lt.createSlice)({name:os,initialState:{value:!1,status:es,error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${os}/${Jt}`,(e=>{e.status=ts})),e.addCase(`${os}/${Qt}`,((e,{payload:t})=>{e.status=ss,e.value=Boolean(t&&t.value)})),e.addCase(`${os}/${Xt}`,((e,{payload:t})=>{e.status=rs,e.value=Boolean(t&&t.value),e.error={code:(0,le.get)(t,"error.code",500),message:(0,le.get)(t,"error.message","Unknown")}}))}});var is;as.getInitialState,as.actions,as.reducer;const ns="documentTitle",ls=(0,Lt.createSlice)({name:ns,initialState:(0,le.defaultTo)(null===(is=document)||void 0===is?void 0:is.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),ds=(ls.getInitialState,{selectDocumentTitle:e=>(0,le.get)(e,ns,""),selectDocumentFullTitle:(e,{prefix:t=""}={})=>{const s=(0,le.get)(e,ns,"");return s.startsWith(t)?s:`${t} ‹ ${s}`}}),cs=(ls.actions,ls.reducer);function us(...e){return e.filter(Boolean).join(" ")}function ps(e,t,...s){if(e in t){let r=t[e];return"function"==typeof r?r(...s):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ps),r}var ms,hs,fs=((hs=fs||{})[hs.None=0]="None",hs[hs.RenderStrategy=1]="RenderStrategy",hs[hs.Static=2]="Static",hs),_s=((ms=_s||{})[ms.Unmount=0]="Unmount",ms[ms.Hidden=1]="Hidden",ms);function ys({ourProps:e,theirProps:t,slot:s,defaultTag:r,features:o,visible:a=!0,name:i}){let n=gs(t,e);if(a)return ws(n,s,r,i);let l=null!=o?o:0;if(2&l){let{static:e=!1,...t}=n;if(e)return ws(t,s,r,i)}if(1&l){let{unmount:e=!0,...t}=n;return ps(e?0:1,{0:()=>null,1:()=>ws({...t,hidden:!0,style:{display:"none"}},s,r,i)})}return ws(n,s,r,i)}function ws(e,t={},s,r){var o;let{as:a=s,children:i,refName:l="ref",...d}=xs(e,["unmount","static"]),c=void 0!==e.ref?{[l]:e.ref}:{},u="function"==typeof i?i(t):i;d.className&&"function"==typeof d.className&&(d.className=d.className(t));let p={};if(t){let e=!1,s=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&s.push(r);e&&(p["data-headlessui-state"]=s.join(" "))}if(a===n.Fragment&&Object.keys(vs(d)).length>0){if(!(0,n.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(d).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=us(null==(o=u.props)?void 0:o.className,d.className),t=e?{className:e}:{};return(0,n.cloneElement)(u,Object.assign({},gs(u.props,vs(xs(d,["ref"]))),p,c,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let s of e)null!=s&&("function"==typeof s?s(t):s.current=t)}}}(u.ref,c.ref),t))}return(0,n.createElement)(a,Object.assign({},xs(d,["ref"]),a!==n.Fragment&&c,a!==n.Fragment&&p),u)}function gs(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},s={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=s[e]||(s[e]=[]),s[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(s).map((e=>[e,void 0]))));for(let e in s)Object.assign(t,{[e](t,...r){let o=s[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function bs(e){var t;return Object.assign((0,n.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function vs(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function xs(e,t=[]){let s=Object.assign({},e);for(let e of t)e in s&&delete s[e];return s}let js=(0,n.createContext)(null);js.displayName="OpenClosedContext";var Ss=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ss||{});function ks(){return(0,n.useContext)(js)}function Es({value:e,children:t}){return n.createElement(js.Provider,{value:e},t)}var Ls=Object.defineProperty,Fs=(e,t,s)=>(((e,t,s)=>{t in e?Ls(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s})(e,"symbol"!=typeof t?t+"":t,s),s);let Ts=new class{constructor(){Fs(this,"current",this.detect()),Fs(this,"handoffState","pending"),Fs(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},$s=(e,t)=>{Ts.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)};function Rs(){let e=(0,n.useRef)(!1);return $s((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Ps(e){let t=(0,n.useRef)(e);return $s((()=>{t.current=e}),[e]),t}function Ns(){let[e,t]=(0,n.useState)(Ts.isHandoffComplete);return e&&!1===Ts.isHandoffComplete&&t(!1),(0,n.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,n.useEffect)((()=>Ts.handoff()),[]),e}let Os=function(e){let t=Ps(e);return n.useCallback(((...e)=>t.current(...e)),[t])},Cs=Symbol();function As(...e){let t=(0,n.useRef)(e);(0,n.useEffect)((()=>{t.current=e}),[e]);let s=Os((e=>{for(let s of t.current)null!=s&&("function"==typeof s?s(e):s.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Cs])))?void 0:s}function Ms(){let e=[],t=[],s={enqueue(e){t.push(e)},addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),s.add((()=>e.removeEventListener(t,r,o)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return s.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>s.requestAnimationFrame((()=>s.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return s.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{t.current&&e[0]()})),s.add((()=>{t.current=!1}))},add:t=>(e.push(t),()=>{let s=e.indexOf(t);if(s>=0){let[t]=e.splice(s,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return s}function Is(e,...t){e&&t.length>0&&e.classList.add(...t)}function Ds(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Bs(){let[e]=(0,n.useState)(Ms);return(0,n.useEffect)((()=>()=>e.dispose()),[e]),e}function Us({container:e,direction:t,classes:s,onStart:r,onStop:o}){let a=Rs(),i=Bs(),n=Ps(t);$s((()=>{let t=Ms();i.add(t.dispose);let l=e.current;if(l&&"idle"!==n.current&&a.current)return t.dispose(),r.current(n.current),t.add(function(e,t,s,r){let o=s?"enter":"leave",a=Ms(),i=void 0!==r?function(e){let t={called:!1};return(...s)=>{if(!t.called)return t.called=!0,e(...s)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let n=ps(o,{enter:()=>t.enter,leave:()=>t.leave}),l=ps(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),d=ps(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Ds(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Is(e,...n,...d),a.nextFrame((()=>{Ds(e,...d),Is(e,...l),function(e,t){let s=Ms();if(!e)return s.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[a,i]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(a+i!==0){let r=s.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();s.add((()=>t())),s.dispose}(e,(()=>(Ds(e,...n),Is(e,...t.entered),i())))})),a.dispose}(l,s.current,"enter"===n.current,(()=>{t.dispose(),o.current(n.current)}))),t.dispose}),[t])}function Vs(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let zs=(0,n.createContext)(null);zs.displayName="TransitionContext";var qs=(e=>(e.Visible="visible",e.Hidden="hidden",e))(qs||{});let Ws=(0,n.createContext)(null);function Hs(e){return"children"in e?Hs(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Gs(e,t){let s=Ps(e),r=(0,n.useRef)([]),o=Rs(),a=Bs(),i=Os(((e,t=_s.Hidden)=>{let i=r.current.findIndex((({el:t})=>t===e));-1!==i&&(ps(t,{[_s.Unmount](){r.current.splice(i,1)},[_s.Hidden](){r.current[i].state="hidden"}}),a.microTask((()=>{var e;!Hs(r)&&o.current&&(null==(e=s.current)||e.call(s))})))})),l=Os((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>i(e,_s.Unmount)})),d=(0,n.useRef)([]),c=(0,n.useRef)(Promise.resolve()),u=(0,n.useRef)({enter:[],leave:[],idle:[]}),p=Os(((e,s,r)=>{d.current.splice(0),t&&(t.chains.current[s]=t.chains.current[s].filter((([t])=>t!==e))),null==t||t.chains.current[s].push([e,new Promise((e=>{d.current.push(e)}))]),null==t||t.chains.current[s].push([e,new Promise((e=>{Promise.all(u.current[s].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===s?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(s))):r(s)})),m=Os(((e,t,s)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=d.current.shift())||e()})).then((()=>s(t)))}));return(0,n.useMemo)((()=>({children:r,register:l,unregister:i,onStart:p,onStop:m,wait:c,chains:u})),[l,i,r,p,m,u,c])}function Ys(){}Ws.displayName="NestingContext";let Zs=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ks(e){var t;let s={};for(let r of Zs)s[r]=null!=(t=e[r])?t:Ys;return s}let Js=fs.RenderStrategy,Qs=bs((function(e,t){let{beforeEnter:s,afterEnter:r,beforeLeave:o,afterLeave:a,enter:i,enterFrom:l,enterTo:d,entered:c,leave:u,leaveFrom:p,leaveTo:m,...h}=e,f=(0,n.useRef)(null),_=As(f,t),y=h.unmount?_s.Unmount:_s.Hidden,{show:w,appear:g,initial:b}=function(){let e=(0,n.useContext)(zs);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[v,x]=(0,n.useState)(w?"visible":"hidden"),j=function(){let e=(0,n.useContext)(Ws);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:S,unregister:k}=j,E=(0,n.useRef)(null);(0,n.useEffect)((()=>S(f)),[S,f]),(0,n.useEffect)((()=>{if(y===_s.Hidden&&f.current)return w&&"visible"!==v?void x("visible"):ps(v,{hidden:()=>k(f),visible:()=>S(f)})}),[v,f,S,k,w,y]);let L=Ps({enter:Vs(i),enterFrom:Vs(l),enterTo:Vs(d),entered:Vs(c),leave:Vs(u),leaveFrom:Vs(p),leaveTo:Vs(m)}),F=function(e){let t=(0,n.useRef)(Ks(e));return(0,n.useEffect)((()=>{t.current=Ks(e)}),[e]),t}({beforeEnter:s,afterEnter:r,beforeLeave:o,afterLeave:a}),T=Ns();(0,n.useEffect)((()=>{if(T&&"visible"===v&&null===f.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[f,v,T]);let $=b&&!g,R=!T||$||E.current===w?"idle":w?"enter":"leave",P=Os((e=>ps(e,{enter:()=>F.current.beforeEnter(),leave:()=>F.current.beforeLeave(),idle:()=>{}}))),N=Os((e=>ps(e,{enter:()=>F.current.afterEnter(),leave:()=>F.current.afterLeave(),idle:()=>{}}))),O=Gs((()=>{x("hidden"),k(f)}),j);Us({container:f,classes:L,direction:R,onStart:Ps((e=>{O.onStart(f,e,P)})),onStop:Ps((e=>{O.onStop(f,e,N),"leave"===e&&!Hs(O)&&(x("hidden"),k(f))}))}),(0,n.useEffect)((()=>{!$||(y===_s.Hidden?E.current=null:E.current=w)}),[w,$,v]);let C=h,A={ref:_};return g&&w&&Ts.isServer&&(C={...C,className:us(h.className,...L.current.enter,...L.current.enterFrom)}),n.createElement(Ws.Provider,{value:O},n.createElement(Es,{value:ps(v,{visible:Ss.Open,hidden:Ss.Closed})},ys({ourProps:A,theirProps:C,defaultTag:"div",features:Js,visible:"visible"===v,name:"Transition.Child"})))})),Xs=bs((function(e,t){let{show:s,appear:r=!1,unmount:o,...a}=e,i=(0,n.useRef)(null),l=As(i,t);Ns();let d=ks();if(void 0===s&&null!==d&&(s=ps(d,{[Ss.Open]:!0,[Ss.Closed]:!1})),![!0,!1].includes(s))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=(0,n.useState)(s?"visible":"hidden"),p=Gs((()=>{u("hidden")})),[m,h]=(0,n.useState)(!0),f=(0,n.useRef)([s]);$s((()=>{!1!==m&&f.current[f.current.length-1]!==s&&(f.current.push(s),h(!1))}),[f,s]);let _=(0,n.useMemo)((()=>({show:s,appear:r,initial:m})),[s,r,m]);(0,n.useEffect)((()=>{if(s)u("visible");else if(Hs(p)){let e=i.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[s,p]);let y={unmount:o};return n.createElement(Ws.Provider,{value:p},n.createElement(zs.Provider,{value:_},ys({ourProps:{...y,as:n.Fragment,children:n.createElement(Qs,{ref:l,...y,...a})},theirProps:{},defaultTag:n.Fragment,features:Js,visible:"visible"===c,name:"Transition"})))})),er=bs((function(e,t){let s=null!==(0,n.useContext)(zs),r=null!==ks();return n.createElement(n.Fragment,null,!s&&r?n.createElement(Xs,{ref:t,...e}):n.createElement(Qs,{ref:t,...e}))})),tr=Object.assign(Xs,{Child:er,Root:Xs});const sr=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"}))})),rr=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"}))})),or=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"}))})),ar=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"}))})),ir=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))}));var nr=s(4184),lr=s.n(nr),dr=s(5890),cr=s.n(dr);const ur=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))})),pr=(e,t)=>{try{return(0,a.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},mr=window.ReactJSXRuntime,hr=({link:e})=>{const t=(0,a.useMemo)((()=>pr((0,Et.sprintf)(/* translators: %1$s expands to "Yoast SEO" academy, which is a clickable link. */ -(0,Et.__)("Want to learn SEO from Team Yoast? Check out our %1$s!","wordpress-seo"),"<link/>"),{link:(0,mr.jsx)("a",{href:e,target:"_blank",rel:"noopener",children:"Yoast SEO academy"})})),[]);return(0,mr.jsxs)(i.Paper,{as:"div",className:"yst-p-6 yst-space-y-3",children:[(0,mr.jsx)(i.Title,{as:"h2",size:"4",className:"yst-text-base yst-text-primary-500",children:(0,Et.__)("Learn SEO","wordpress-seo")}),(0,mr.jsxs)("p",{children:[t,(0,mr.jsx)("br",{}),(0,Et.__)("We have both free and premium online courses to learn everything you need to know about SEO.","wordpress-seo")]}),(0,mr.jsxs)(i.Link,{href:e,className:"yst-block yst-font-medium",target:"_blank",rel:"noopener",children:[(0,Et.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ -(0,Et.__)("Check out %1$s","wordpress-seo"),"Yoast SEO academy"),(0,mr.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,Et.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,mr.jsx)(ur,{className:"yst-w-3 yst-h-3 yst-mb-[1px] yst-icon-rtl yst-inline-block"})]})]})};hr.propTypes={link:cr().string.isRequired};const fr=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))}));n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),cr().string.isRequired,cr().string.isRequired,cr().shape({src:cr().string.isRequired,width:cr().string,height:cr().string}).isRequired,cr().shape({value:cr().bool.isRequired,status:cr().string.isRequired,set:cr().func.isRequired}).isRequired,cr().string,cr().string,cr().string;const _r=({handleRefreshClick:e,supportLink:t})=>(0,mr.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,mr.jsx)(i.Button,{onClick:e,children:(0,Et.__)("Refresh this page","wordpress-seo")}),(0,mr.jsx)(i.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Et.__)("Contact support","wordpress-seo")})]});_r.propTypes={handleRefreshClick:cr().func.isRequired,supportLink:cr().string.isRequired};const yr=({handleRefreshClick:e,supportLink:t})=>(0,mr.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,mr.jsx)(i.Button,{className:"yst-order-last",onClick:e,children:(0,Et.__)("Refresh this page","wordpress-seo")}),(0,mr.jsx)(i.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Et.__)("Contact support","wordpress-seo")})]});yr.propTypes={handleRefreshClick:cr().func.isRequired,supportLink:cr().string.isRequired};const wr=({error:e,children:t=null})=>(0,mr.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,mr.jsx)(i.Title,{children:(0,Et.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,mr.jsx)("p",{children:(0,Et.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,mr.jsx)(i.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,Et.__)("Undefined error message.","wordpress-seo")}),(0,mr.jsx)("p",{children:(0,Et.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});wr.propTypes={error:cr().object.isRequired,children:cr().node},wr.VerticalButtons=yr,wr.HorizontalButtons=_r;const gr={variant:{lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}},br=({id:e,children:t,title:s,description:r=null,variant:o="2xl"})=>(0,mr.jsxs)("section",{id:e,className:gr.variant[o].grid,children:[(0,mr.jsx)("div",{className:gr.variant[o].col1,children:(0,mr.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,mr.jsx)(i.Title,{as:"h2",size:"4",children:s}),r&&(0,mr.jsx)("p",{className:"yst-mt-2",children:r})]})}),(0,mr.jsxs)("fieldset",{className:`yst-min-w-0 yst-mt-8 ${gr.variant[o].col2}`,children:[(0,mr.jsx)("legend",{className:"yst-sr-only",children:s}),(0,mr.jsx)("div",{className:"yst-space-y-8",children:t})]})]});var vr;function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},xr.apply(this,arguments)}br.propTypes={id:cr().string,children:cr().node.isRequired,title:cr().node.isRequired,description:cr().node,variant:cr().oneOf(Object.keys(gr.variant))};const jr=e=>n.createElement("svg",xr({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1000 1000"},e),vr||(vr=n.createElement("path",{fill:"#fff",d:"M500 0C223.9 0 0 223.9 0 500s223.9 500 500 500 500-223.9 500-500S776.1 0 500 0Zm87.2 412.4c0-21.9 4.3-40.2 13.1-54.4s24-27.1 45.9-38.2l10.1-4.9c17.8-9 22.4-16.7 22.4-26 0-11.1-9.5-19.1-25-19.1-18.3 0-32.2 9.5-41.8 28.9l-24.7-24.8c5.4-11.6 14.1-20.9 25.8-28.1a70.8 70.8 0 0 1 38.9-11.1c17.8 0 33.3 4.6 45.9 14.2s19.4 22.7 19.4 39.4c0 26.6-15 42.9-43.1 57.3l-15.7 8c-16.8 8.5-25.1 16-27.4 29.4h85.4v35.4H587.2Zm-82.1 373.3c-157.8 0-285.7-127.9-285.7-285.7s127.9-285.7 285.7-285.7a286.4 286.4 0 0 1 55.9 5.5l-55.9 116.9c-90 0-163.3 73.3-163.3 163.3s73.3 163.3 163.3 163.3a162.8 162.8 0 0 0 106.4-39.6l61.8 107.2a283.9 283.9 0 0 1-168.2 54.8ZM705 704.1l-70.7-122.5H492.9l70.7-122.4H705l70.7 122.4Z"}))),Sr=({to:e,idSuffix:t="",...s})=>{const r=(0,a.useMemo)((()=>(0,le.replace)((0,le.replace)(`link-${e}`,"/","-"),"--","-")),[e]);return(0,mr.jsx)(i.SidebarNavigation.SubmenuItem,{as:xt,pathProp:"to",id:`${r}${t}`,to:e,...s})};Sr.propTypes={to:cr().string.isRequired,idSuffix:cr().string};const kr=({href:e,children:t=null,...s})=>(0,mr.jsxs)(i.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,mr.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,Et.__)("(Opens in a new browser tab)","wordpress-seo")})]});kr.propTypes={href:cr().string.isRequired,children:cr().node};const Er=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),Lr=[(0,Et.__)("AI tools included","wordpress-seo"),(0,Et.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ -(0,Et.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,Et.__)("24/7 support","wordpress-seo")],Fr=[(0,Et.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,Et.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,Et.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,Et.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,Et.__)("Internal links and redirect management, easy","wordpress-seo"),(0,Et.__)("Access to friendly help when you need it, day or night","wordpress-seo")],Tr=(e=!1)=>e?Lr:Fr,$r=(e=!1)=>{if(e)return Lr;const t=[...Fr];return t[1]=(0,Et.__)("Boost visibility for your products, from 10 or 10,000+","wordpress-seo"),t};var Rr,Pr,Nr;function Or(){return Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Or.apply(this,arguments)}const Cr=e=>n.createElement("svg",Or({xmlns:"http://www.w3.org/2000/svg",id:"star-rating-half_svg__Layer_1","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),Rr||(Rr=n.createElement("defs",null,n.createElement("style",null,".star-rating-half_svg__cls-1{fill:#fbbf24}"))),Pr||(Pr=n.createElement("path",{d:"M250 392.04 98.15 471.87l29-169.09L4.3 183.03l169.77-24.67L250 4.52l75.93 153.84 169.77 24.67-122.85 119.75 29 169.09L250 392.04z",className:"star-rating-half_svg__cls-1"})),Nr||(Nr=n.createElement("path",{d:"m250 9.04 73.67 149.27.93 1.88 2.08.3 164.72 23.94-119.19 116.19-1.51 1.47.36 2.07 28.14 164.06-147.34-77.46-1.86-1-1.86 1-147.34 77.46 28.14-164.06.36-2.07-1.51-1.47L8.6 184.43l164.72-23.9 2.08-.3.93-1.88L250 9.04m0-9-77.25 156.49L0 181.64l125 121.89-29.51 172L250 394.3l154.51 81.23-29.51-172 125-121.89-172.75-25.11L250 0Z",className:"star-rating-half_svg__cls-1"})),n.createElement("path",{d:"m500 181.64-172.75-25.11L250 0v394.3l154.51 81.23L375 303.48l125-121.84z",style:{fill:"#f3f4f6"}}));function Ar(){return Ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ar.apply(this,arguments)}const Mr=e=>n.createElement("svg",Ar({xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),n.createElement("path",{d:"m250 0 77.25 156.53L500 181.64 375 303.48l29.51 172.05L250 394.3 95.49 475.53 125 303.48 0 181.64l172.75-25.11L250 0z",style:{fill:"#fbbf24"}}));var Ir,Dr,Br;function Ur(){return Ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ur.apply(this,arguments)}const Vr=e=>n.createElement("svg",Ur({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),Ir||(Ir=n.createElement("g",{clipPath:"url(#yoast-premium-logo-new_svg__a)"},n.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__b)",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),n.createElement("path",{fill:"#6C2548",d:"m56.016.125-36.06 63.75H64v-53.76c0-4.88-3.414-8.96-7.984-9.987",opacity:.35}),n.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),n.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),n.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),n.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),n.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),n.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),n.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),n.createElement("path",{fill:"#CD82AB",d:"M57.402 58.086H43.888v1.197h13.514v-1.197ZM53.75 53.366l-3.103-5.76v.004l-.004-.004-3.104 5.76-4.777-3.42 1.126 7.702h13.514l1.126-7.702-4.777 3.42Z"}))),Dr||(Dr=n.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),Br||(Br=n.createElement("defs",null,n.createElement("linearGradient",{id:"yoast-premium-logo-new_svg__b",x1:-2.912,x2:68.509,y1:25.843,y2:38.438,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#5D237A"}),n.createElement("stop",{offset:.08,stopColor:"#702175"}),n.createElement("stop",{offset:.22,stopColor:"#872070"}),n.createElement("stop",{offset:.36,stopColor:"#981E6C"}),n.createElement("stop",{offset:.51,stopColor:"#A21E69"}),n.createElement("stop",{offset:.7,stopColor:"#A61E69"})),n.createElement("clipPath",{id:"yoast-premium-logo-new_svg__a"},n.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"})))));var zr,qr,Wr;function Hr(){return Hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Hr.apply(this,arguments)}const Gr=e=>n.createElement("svg",Hr({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),zr||(zr=n.createElement("g",{clipPath:"url(#woo-seo-logo-new_svg__a)"},n.createElement("path",{fill:"#0E1E65",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),n.createElement("path",{fill:"#0075B3",d:"M56.016.253 19.956 64H64V10.24c0-4.88-3.414-8.96-7.984-9.987Z"}),n.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),n.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),n.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),n.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),n.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),n.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),n.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),n.createElement("path",{fill:"#A1CCE3",d:"M58.102 46.806a1.26 1.26 0 0 0-1.219.938l-.157.582a40.97 40.97 0 0 0-10.857 1.261c-.013 0-.023.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.86c.083.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.011h10.592a.507.507 0 0 0 .506-.505c0-1.149-.775-2.15-1.888-2.442L57.862 48a.25.25 0 0 1 .243-.186h.932a.507.507 0 0 0 0-1.01h-.931l-.004.002ZM57.018 59.92a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Z"}))),qr||(qr=n.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),Wr||(Wr=n.createElement("defs",null,n.createElement("clipPath",{id:"woo-seo-logo-new_svg__a"},n.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"}))))),Yr=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))})),Zr=({link:e,linkProps:t,isPromotionActive:s,isWooCommerceActive:r})=>{const o=r?$r:Tr,n=(0,a.useMemo)((()=>r?(0,Et.__)("SEO that scales with your product catalog.","wordpress-seo"):(0,Et.__)("Now with Local, News & Video SEO + 1 Google Docs seat!","wordpress-seo")),[r]);let l=(0,Et.__)("Buy now","wordpress-seo");const d=pr(r?(0,Et.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ +(()=>{var e={1206:function(e){e.exports=function(e){var t={};function s(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,s),o.l=!0,o.exports}return s.m=e,s.c=t,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)s.d(r,o,function(t){return e[t]}.bind(null,o));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=90)}({17:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r=s(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var s=t.match(e);return s&&s.length>0&&s[1]||""},e.getSecondMatch=function(e,t){var s=t.match(e);return s&&s.length>1&&s[2]||""},e.matchAndReturnConst=function(e,t,s){if(e.test(t))return s},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,s,r){void 0===r&&(r=!1);var o=e.getVersionPrecision(t),i=e.getVersionPrecision(s),a=Math.max(o,i),n=0,l=e.map([t,s],(function(t){var s=a-e.getVersionPrecision(t),r=t+new Array(s+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(n=a-Math.min(o,i)),a-=1;a>=n;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===n)return 0;a-=1}else if(l[0][a]<l[1][a])return-1}},e.map=function(e,t){var s,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(s=0;s<e.length;s+=1)r.push(t(e[s]));return r},e.find=function(e,t){var s,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(s=0,r=e.length;s<r;s+=1){var o=e[s];if(t(o,s))return o}},e.assign=function(e){for(var t,s,r=e,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(i));var n=function(){var e=i[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){r[t]=e[t]}))};for(t=0,s=i.length;t<s;t+=1)n();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=o,e.exports=t.default},18:function(e,t,s){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=s(91))&&r.__esModule?r:{default:r},i=s(18);function a(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var n=function(){function e(){}var t,s;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new o.default(e,t)},e.parse=function(e){return new o.default(e).getResult()},t=e,s=[{key:"BROWSER_MAP",get:function(){return i.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return i.ENGINE_MAP}},{key:"OS_MAP",get:function(){return i.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return i.PLATFORMS_MAP}}],null&&a(t.prototype,null),s&&a(t,s),e}();t.default=n,e.exports=t.default},91:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r=l(s(92)),o=l(s(93)),i=l(s(94)),a=l(s(95)),n=l(s(17));function l(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=n.default.find(r.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=n.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=n.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=n.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return n.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,s={},r=0,o={},i=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(o[t]=a,i+=1):"object"==typeof a&&(s[t]=a,r+=1)})),r>0){var a=Object.keys(s),l=n.default.find(a,(function(e){return t.isOS(e)}));if(l){var d=this.satisfies(s[l]);if(void 0!==d)return d}var c=n.default.find(a,(function(e){return t.isPlatform(e)}));if(c){var u=this.satisfies(s[c]);if(void 0!==u)return u}}if(i>0){var p=Object.keys(o),m=n.default.find(p,(function(e){return t.isBrowser(e,!0)}));if(void 0!==m)return this.compareVersion(o[m])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var s=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),o=n.default.getBrowserTypeByAlias(r);return t&&o&&(r=o.toLowerCase()),r===s},t.compareVersion=function(e){var t=[0],s=e,r=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(s=e.substr(1),"="===e[1]?(r=!0,s=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?s=e.substr(1):"~"===e[0]&&(r=!0,s=e.substr(1)),t.indexOf(n.default.compareVersions(o,s,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=d,e.exports=t.default},92:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=s(17))&&r.__esModule?r:{default:r},i=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},s=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(i,e);return s&&(t.version=s),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},s=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},s=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(i,e);return s&&(t.version=s),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},s=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},s=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},s=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return s&&(t.version=s),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},s=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return s&&(t.version=s),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},s=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return s&&(t.version=s),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},s=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},s=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return s&&(t.version=s),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},s=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return s&&(t.version=s),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},s=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},s=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},s=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},s=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},s=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},s=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},s=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return s&&(t.version=s),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},s=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return s&&(t.version=s),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},s=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},s=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},s=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},s=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},s=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},s=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return s&&(t.version=s),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},s=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},s=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},s=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},s=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},s=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},s=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},s=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return s&&(t.version=s),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},s=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return s&&(t.version=s),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},s=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},s=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},s=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},s=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return s&&(t.version=s),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},s=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},s=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:function(e){var t=!e.test(/like android/i),s=e.test(/android/i);return t&&s},describe:function(e){var t={name:"Android Browser"},s=o.default.getFirstMatch(i,e);return s&&(t.version=s),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},s=o.default.getFirstMatch(i,e);return s&&(t.version=s),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},s=o.default.getFirstMatch(i,e);return s&&(t.version=s),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=s(17))&&r.__esModule?r:{default:r},i=s(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:i.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),s=o.default.getWindowsVersionName(t);return{name:i.OS_MAP.Windows,version:t,versionName:s}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:i.OS_MAP.iOS},s=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return s&&(t.version=s),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),s=o.default.getMacOSVersionName(t),r={name:i.OS_MAP.MacOS,version:t};return s&&(r.versionName=s),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),s=e.test(/android/i);return t&&s},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),s=o.default.getAndroidVersionName(t),r={name:i.OS_MAP.Android,version:t};return s&&(r.versionName=s),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),s={name:i.OS_MAP.WebOS};return t&&t.length&&(s.version=t),s}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:i.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=s(17))&&r.__esModule?r:{default:r},i=s(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",s={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(s.model=t),s}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),s=e.test(/like (ipod|iphone)/i);return t&&!s},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,s){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=s(17))&&r.__esModule?r:{default:r},i=s(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:i.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:i.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:i.ENGINE_MAP.Trident},s=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:i.ENGINE_MAP.Presto},s=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:function(e){var t=e.test(/gecko/i),s=e.test(/like gecko/i);return t&&!s},describe:function(e){var t={name:i.ENGINE_MAP.Gecko},s=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:i.ENGINE_MAP.WebKit},s=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}}];t.default=a,e.exports=t.default}})},4184:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var i=typeof s;if("string"===i||"number"===i)e.push(s);else if(Array.isArray(s)){if(s.length){var a=o.apply(null,s);a&&e.push(a)}}else if("object"===i){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var n in s)r.call(s,n)&&s[n]&&e.push(n)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(s=function(){return o}.apply(t,[]))||(e.exports=s)}()},667:e=>{"use strict";var t=Array.isArray,s=Object.keys,r=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){var n,l,d,c=t(e),u=t(a);if(c&&u){if((l=e.length)!=a.length)return!1;for(n=l;0!=n--;)if(!i(e[n],a[n]))return!1;return!0}if(c!=u)return!1;var p=e instanceof Date,m=a instanceof Date;if(p!=m)return!1;if(p&&m)return e.getTime()==a.getTime();var h=e instanceof RegExp,f=a instanceof RegExp;if(h!=f)return!1;if(h&&f)return e.toString()==a.toString();var _=s(e);if((l=_.length)!==s(a).length)return!1;for(n=l;0!=n--;)if(!r.call(a,_[n]))return!1;if(o&&e instanceof Element&&a instanceof Element)return e===a;for(n=l;0!=n--;)if(!("_owner"===(d=_[n])&&e.$$typeof||i(e[d],a[d])))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},8679:(e,t,s)=>{"use strict";var r=s(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},n={};function l(e){return r.isMemo(e)?a:n[e.$$typeof]||o}n[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var d=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,s,r){if("string"!=typeof s){if(h){var o=m(s);o&&o!==h&&e(t,o,r)}var a=c(s);u&&(a=a.concat(u(s)));for(var n=l(t),f=l(s),_=0;_<a.length;++_){var y=a[_];if(!(i[y]||r&&r[y]||f&&f[y]||n&&n[y])){var w=p(s,y);try{d(t,y,w)}catch(e){}}}return t}return t}},5760:e=>{"use strict";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var s=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,o=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,n=new t(512),l=new t(512),d=new t(512);function c(e){return n.get(e)||n.set(e,u(e).map((function(e){return e.replace(a,"$2")})))}function u(e){return e.match(s)||[""]}function p(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function m(e){return!p(e)&&(function(e){return e.match(o)&&!e.match(r)}(e)||function(e){return i.test(e)}(e))}e.exports={Cache:t,split:u,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,(function(e,s){for(var r=0,o=t.length,i=e;r<o-1;){var a=t[r];if("__proto__"===a||"constructor"===a||"prototype"===a)return e;i=i[t[r++]]}i[t[r]]=s}))},getter:function(e,t){var s=c(e);return d.get(e)||d.set(e,(function(e){for(var r=0,o=s.length;r<o;){if(null==e&&t)return;e=e[s[r++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(p(t)||r.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,s){!function(e,t,s){var r,o,i,a,n=e.length;for(o=0;o<n;o++)(r=e[o])&&(m(r)&&(r='"'+r+'"'),i=!(a=p(r))&&/^\d+$/.test(r),t.call(s,r,a,i,o,e))}(Array.isArray(e)?e:u(e),t,s)}}},8133:(e,t,s)=>{"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},i=function(){function e(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,s,r){return s&&e(t.prototype,s),r&&e(t,r),t}}(),a=d(s(9196)),n=d(s(5890)),l=d(s(4306));function d(e){return e&&e.__esModule?e:{default:e}}function c(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var u={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"},p=["animateOpacity","animationStateClasses","applyInlineTransitions","children","contentClassName","delay","duration","easing","height","onAnimationEnd","onAnimationStart"];function m(e){for(var t=arguments.length,s=Array(t>1?t-1:0),r=1;r<t;r++)s[r-1]=arguments[r];if(!s.length)return e;for(var o={},i=Object.keys(e),a=0;a<i.length;a++){var n=i[a];-1===s.indexOf(n)&&(o[n]=e[n])}return o}function h(e){e.forEach((function(e){return cancelAnimationFrame(e)}))}function f(e){return!isNaN(parseFloat(e))&&isFinite(e)}function _(e){return"string"==typeof e&&e.search("%")===e.length-1&&f(e.substr(0,e.length-1))}function y(e,t){e&&"function"==typeof e&&e(t)}var w=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));s.animationFrameIDs=[];var r="auto",i="visible";f(e.height)?(r=e.height<0||"0"===e.height?0:e.height,i="hidden"):_(e.height)&&(r="0%"===e.height?0:e.height,i="hidden"),s.animationStateClasses=o({},u,e.animationStateClasses);var a=s.getStaticStateClasses(r);return s.state={animationStateClasses:a,height:r,overflow:i,shouldUseTransitions:!1},s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this.state.height;this.contentElement&&this.contentElement.style&&this.hideContent(e)}},{key:"componentDidUpdate",value:function(e,t){var s,r,o=this,i=this.props,a=i.delay,n=i.duration,d=i.height,u=i.onAnimationEnd,p=i.onAnimationStart;if(this.contentElement&&d!==e.height){var m;this.showContent(t.height),this.contentElement.style.overflow="hidden";var w=this.contentElement.offsetHeight;this.contentElement.style.overflow="";var g=n+a,b=null,v={height:null,overflow:"hidden"},x="auto"===t.height;f(d)?(b=d<0||"0"===d?0:d,v.height=b):_(d)?(b="0%"===d?0:d,v.height=b):(b=w,v.height="auto",v.overflow=null),x&&(v.height=b,b=w);var j=(0,l.default)((c(m={},this.animationStateClasses.animating,!0),c(m,this.animationStateClasses.animatingUp,"auto"===e.height||d<e.height),c(m,this.animationStateClasses.animatingDown,"auto"===d||d>e.height),c(m,this.animationStateClasses.animatingToHeightZero,0===v.height),c(m,this.animationStateClasses.animatingToHeightAuto,"auto"===v.height),c(m,this.animationStateClasses.animatingToHeightSpecific,v.height>0),m)),S=this.getStaticStateClasses(v.height);this.setState({animationStateClasses:j,height:b,overflow:"hidden",shouldUseTransitions:!x}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),x?(v.shouldUseTransitions=!0,h(this.animationFrameIDs),this.animationFrameIDs=(s=function(){o.setState(v),y(p,{newHeight:v.height})},(r=[])[0]=requestAnimationFrame((function(){r[1]=requestAnimationFrame((function(){s()}))})),r),this.animationClassesTimeoutID=setTimeout((function(){o.setState({animationStateClasses:S,shouldUseTransitions:!1}),o.hideContent(v.height),y(u,{newHeight:v.height})}),g)):(y(p,{newHeight:b}),this.timeoutID=setTimeout((function(){v.animationStateClasses=S,v.shouldUseTransitions=!1,o.setState(v),"auto"!==d&&o.hideContent(b),y(u,{newHeight:b})}),g))}}},{key:"componentWillUnmount",value:function(){h(this.animationFrameIDs),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null,this.animationClassesTimeoutID=null,this.animationStateClasses=null}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,l.default)((c(t={},this.animationStateClasses.static,!0),c(t,this.animationStateClasses.staticHeightZero,0===e),c(t,this.animationStateClasses.staticHeightSpecific,e>0),c(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,s=this.props,r=s.animateOpacity,i=s.applyInlineTransitions,n=s.children,d=s.className,u=s.contentClassName,h=s.delay,f=s.duration,_=s.easing,y=s.id,w=s.style,g=this.state,b=g.height,v=g.overflow,x=g.animationStateClasses,j=g.shouldUseTransitions,S=o({},w,{height:b,overflow:v||w.overflow});j&&i&&(S.transition="height "+f+"ms "+_+" "+h+"ms",w.transition&&(S.transition=w.transition+", "+S.transition),S.WebkitTransition=S.transition);var k={};r&&(k.transition="opacity "+f+"ms "+_+" "+h+"ms",k.WebkitTransition=k.transition,0===b&&(k.opacity=0));var E=(0,l.default)((c(e={},x,!0),c(e,d,d),e)),L=void 0!==this.props["aria-hidden"]?this.props["aria-hidden"]:0===b;return a.default.createElement("div",o({},m.apply(void 0,[this.props].concat(p)),{"aria-hidden":L,className:E,id:y,style:S}),a.default.createElement("div",{className:u,style:k,ref:function(e){return t.contentElement=e}},n))}}]),t}(a.default.Component);w.propTypes={"aria-hidden":n.default.bool,animateOpacity:n.default.bool,animationStateClasses:n.default.object,applyInlineTransitions:n.default.bool,children:n.default.any.isRequired,className:n.default.string,contentClassName:n.default.string,delay:n.default.number,duration:n.default.number,easing:n.default.string,height:function(e,t,s){var o=e[t];return"number"==typeof o&&o>=0||_(o)||"auto"===o?null:new TypeError('value "'+o+'" of type "'+(void 0===o?"undefined":r(o))+'" is invalid type for '+t+" in "+s+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},id:n.default.string,onAnimationEnd:n.default.func,onAnimationStart:n.default.func,style:n.default.object},w.defaultProps={animateOpacity:!1,animationStateClasses:u,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.Z=w},4306:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var i=typeof s;if("string"===i||"number"===i)e.push(s);else if(Array.isArray(s)&&s.length){var a=o.apply(null,s);a&&e.push(a)}else if("object"===i)for(var n in s)r.call(s,n)&&s[n]&&e.push(n)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(s=function(){return o}.apply(t,[]))||(e.exports=s)}()},591:e=>{for(var t=[],s=0;s<256;++s)t[s]=(s+256).toString(16).substr(1);e.exports=function(e,s){var r=s||0,o=t;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},9176:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var s=new Uint8Array(16);e.exports=function(){return t(s),s}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},3409:(e,t,s)=>{var r=s(9176),o=s(591);e.exports=function(e,t,s){var i=t&&s||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var n=0;n<16;++n)t[i+n]=a[n];return t||o(a)}},9921:(e,t)=>{"use strict";var s="function"==typeof Symbol&&Symbol.for,r=s?Symbol.for("react.element"):60103,o=s?Symbol.for("react.portal"):60106,i=s?Symbol.for("react.fragment"):60107,a=s?Symbol.for("react.strict_mode"):60108,n=s?Symbol.for("react.profiler"):60114,l=s?Symbol.for("react.provider"):60109,d=s?Symbol.for("react.context"):60110,c=s?Symbol.for("react.async_mode"):60111,u=s?Symbol.for("react.concurrent_mode"):60111,p=s?Symbol.for("react.forward_ref"):60112,m=s?Symbol.for("react.suspense"):60113,h=s?Symbol.for("react.suspense_list"):60120,f=s?Symbol.for("react.memo"):60115,_=s?Symbol.for("react.lazy"):60116,y=s?Symbol.for("react.block"):60121,w=s?Symbol.for("react.fundamental"):60117,g=s?Symbol.for("react.responder"):60118,b=s?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case u:case i:case n:case a:case m:return e;default:switch(e=e&&e.$$typeof){case d:case p:case _:case f:case l:return e;default:return t}}case o:return t}}}function x(e){return v(e)===u}t.AsyncMode=c,t.ConcurrentMode=u,t.ContextConsumer=d,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=_,t.Memo=f,t.Portal=o,t.Profiler=n,t.StrictMode=a,t.Suspense=m,t.isAsyncMode=function(e){return x(e)||v(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return v(e)===d},t.isContextProvider=function(e){return v(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return v(e)===p},t.isFragment=function(e){return v(e)===i},t.isLazy=function(e){return v(e)===_},t.isMemo=function(e){return v(e)===f},t.isPortal=function(e){return v(e)===o},t.isProfiler=function(e){return v(e)===n},t.isStrictMode=function(e){return v(e)===a},t.isSuspense=function(e){return v(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===u||e===n||e===a||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===_||e.$$typeof===f||e.$$typeof===l||e.$$typeof===d||e.$$typeof===p||e.$$typeof===w||e.$$typeof===g||e.$$typeof===b||e.$$typeof===y)},t.typeOf=v},9864:(e,t,s)=>{"use strict";e.exports=s(9921)},4633:e=>{function t(e,t){var s=e.length,r=new Array(s),o={},i=s,a=function(e){for(var t=new Map,s=0,r=e.length;s<r;s++){var o=e[s];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}(t),n=function(e){for(var t=new Map,s=0,r=e.length;s<r;s++)t.set(e[s],s);return t}(e);for(t.forEach((function(e){if(!n.has(e[0])||!n.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));i--;)o[i]||l(e[i],i,new Set);return r;function l(e,t,i){if(i.has(e)){var d;try{d=", node was:"+JSON.stringify(e)}catch(e){d=""}throw new Error("Cyclic dependency"+d)}if(!n.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!o[t]){o[t]=!0;var c=a.get(e)||new Set;if(t=(c=Array.from(c)).length){i.add(e);do{var u=c[--t];l(u,n.get(u),i)}while(t);i.delete(e)}r[--s]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,s=0,r=e.length;s<r;s++){var o=e[s];t.add(o[0]),t.add(o[1])}return Array.from(t)}(e),e)},e.exports.array=t},9196:e=>{"use strict";e.exports=window.React},5890:e=>{"use strict";e.exports=window.yoast.propTypes}},t={};function s(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,s),i.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.components,t=window.wp.data,r=window.wp.domReady;var o=s.n(r);const i=window.wp.element,a=window.yoast.uiLibrary;var n=s(9196),l=s.n(n),d=s(667),c=s.n(d),u=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===p}(e)}(e)},p="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function m(e,t){return!1!==t.clone&&t.isMergeableObject(e)?f((s=e,Array.isArray(s)?[]:{}),e,t):e;var s}function h(e,t,s){return e.concat(t).map((function(e){return m(e,s)}))}function f(e,t,s){(s=s||{}).arrayMerge=s.arrayMerge||h,s.isMergeableObject=s.isMergeableObject||u;var r=Array.isArray(t);return r===Array.isArray(e)?r?s.arrayMerge(e,t,s):function(e,t,s){var r={};return s.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=m(e[t],s)})),Object.keys(t).forEach((function(o){s.isMergeableObject(t[o])&&e[o]?r[o]=f(e[o],t[o],s):r[o]=m(t[o],s)})),r}(e,t,s):m(t,s)}f.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,s){return f(e,s,t)}),{})};const _=f,y=window.lodash.isPlainObject;var w=s.n(y);const g=window.lodash.clone;var b=s.n(g);const v=window.lodash.toPath;var x=s.n(v);const j=function(e,t){};var S=s(8679),k=s.n(S);const E=window.lodash.cloneDeep;var L=s.n(E);function T(){return T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},T.apply(this,arguments)}function F(e,t){if(null==e)return{};var s,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)s=i[r],t.indexOf(s)>=0||(o[s]=e[s]);return o}function $(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var R=function(e){return Array.isArray(e)&&0===e.length},P=function(e){return"function"==typeof e},C=function(e){return null!==e&&"object"==typeof e},O=function(e){return String(Math.floor(Number(e)))===e},N=function(e){return"[object String]"===Object.prototype.toString.call(e)},A=function(e){return 0===n.Children.count(e)},M=function(e){return C(e)&&P(e.then)};function I(e,t,s,r){void 0===r&&(r=0);for(var o=x()(t);e&&r<o.length;)e=e[o[r++]];return void 0===e?s:e}function D(e,t,s){for(var r=b()(e),o=r,i=0,a=x()(t);i<a.length-1;i++){var n=a[i],l=I(e,a.slice(0,i+1));if(l&&(C(l)||Array.isArray(l)))o=o[n]=b()(l);else{var d=a[i+1];o=o[n]=O(d)&&Number(d)>=0?[]:{}}}return(0===i?e:o)[a[i]]===s?e:(void 0===s?delete o[a[i]]:o[a[i]]=s,0===i&&void 0===s&&delete r[a[i]],r)}function B(e,t,s,r){void 0===s&&(s=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],n=e[a];C(n)?s.get(n)||(s.set(n,!0),r[a]=Array.isArray(n)?[]:{},B(n,t,s,r[a])):r[a]=t}return r}var U=(0,n.createContext)(void 0);U.displayName="FormikContext";var V=U.Provider,z=U.Consumer;function q(){var e=(0,n.useContext)(U);return e||j(!1),e}function W(e,t){switch(t.type){case"SET_VALUES":return T({},e,{values:t.payload});case"SET_TOUCHED":return T({},e,{touched:t.payload});case"SET_ERRORS":return c()(e.errors,t.payload)?e:T({},e,{errors:t.payload});case"SET_STATUS":return T({},e,{status:t.payload});case"SET_ISSUBMITTING":return T({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return T({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return T({},e,{values:D(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return T({},e,{touched:D(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return T({},e,{errors:D(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return T({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return T({},e,{touched:B(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return T({},e,{isSubmitting:!1});default:return e}}var H={},G={};function Y(e){var t=e.validateOnChange,s=void 0===t||t,r=e.validateOnBlur,o=void 0===r||r,i=e.validateOnMount,a=void 0!==i&&i,l=e.isInitialValid,d=e.enableReinitialize,u=void 0!==d&&d,p=e.onSubmit,m=F(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=T({validateOnChange:s,validateOnBlur:o,validateOnMount:a,onSubmit:p},m),f=(0,n.useRef)(h.initialValues),y=(0,n.useRef)(h.initialErrors||H),w=(0,n.useRef)(h.initialTouched||G),g=(0,n.useRef)(h.initialStatus),b=(0,n.useRef)(!1),v=(0,n.useRef)({});(0,n.useEffect)((function(){return b.current=!0,function(){b.current=!1}}),[]);var x=(0,n.useReducer)(W,{values:h.initialValues,errors:h.initialErrors||H,touched:h.initialTouched||G,status:h.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),j=x[0],S=x[1],k=(0,n.useCallback)((function(e,t){return new Promise((function(s,r){var o=h.validate(e,t);null==o?s(H):M(o)?o.then((function(e){s(e||H)}),(function(e){r(e)})):s(o)}))}),[h.validate]),E=(0,n.useCallback)((function(e,t){var s=h.validationSchema,r=P(s)?s(t):s,o=t&&r.validateAt?r.validateAt(t,e):function(e,t,s,r){void 0===s&&(s=!1),void 0===r&&(r={});var o=K(e);return t[s?"validateSync":"validate"](o,{abortEarly:!1,context:r})}(e,r);return new Promise((function(e,t){o.then((function(){e(H)}),(function(s){"ValidationError"===s.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return D(t,e.path,e.message);var s=e.inner,r=Array.isArray(s),o=0;for(s=r?s:s[Symbol.iterator]();;){var i;if(r){if(o>=s.length)break;i=s[o++]}else{if((o=s.next()).done)break;i=o.value}var a=i;I(t,a.path)||(t=D(t,a.path,a.message))}}return t}(s)):t(s)}))}))}),[h.validationSchema]),L=(0,n.useCallback)((function(e,t){return new Promise((function(s){return s(v.current[e].validate(t))}))}),[]),$=(0,n.useCallback)((function(e){var t=Object.keys(v.current).filter((function(e){return P(v.current[e].validate)})),s=t.length>0?t.map((function(t){return L(t,I(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(s).then((function(e){return e.reduce((function(e,s,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===s||s&&(e=D(e,t[r],s)),e}),{})}))}),[L]),R=(0,n.useCallback)((function(e){return Promise.all([$(e),h.validationSchema?E(e):{},h.validate?k(e):{}]).then((function(e){var t=e[0],s=e[1],r=e[2];return _.all([t,s,r],{arrayMerge:J})}))}),[h.validate,h.validationSchema,$,k,E]),O=X((function(e){return void 0===e&&(e=j.values),S({type:"SET_ISVALIDATING",payload:!0}),R(e).then((function(e){return b.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:e})),e}))}));(0,n.useEffect)((function(){a&&!0===b.current&&c()(f.current,h.initialValues)&&O(f.current)}),[a,O]);var A=(0,n.useCallback)((function(e){var t=e&&e.values?e.values:f.current,s=e&&e.errors?e.errors:y.current?y.current:h.initialErrors||{},r=e&&e.touched?e.touched:w.current?w.current:h.initialTouched||{},o=e&&e.status?e.status:g.current?g.current:h.initialStatus;f.current=t,y.current=s,w.current=r,g.current=o;var i=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:s,touched:r,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var a=h.onReset(j.values,ce);M(a)?a.then(i):i()}else i()}),[h.initialErrors,h.initialStatus,h.initialTouched]);(0,n.useEffect)((function(){!0!==b.current||c()(f.current,h.initialValues)||(u&&(f.current=h.initialValues,A()),a&&O(f.current))}),[u,h.initialValues,A,a,O]),(0,n.useEffect)((function(){u&&!0===b.current&&!c()(y.current,h.initialErrors)&&(y.current=h.initialErrors||H,S({type:"SET_ERRORS",payload:h.initialErrors||H}))}),[u,h.initialErrors]),(0,n.useEffect)((function(){u&&!0===b.current&&!c()(w.current,h.initialTouched)&&(w.current=h.initialTouched||G,S({type:"SET_TOUCHED",payload:h.initialTouched||G}))}),[u,h.initialTouched]),(0,n.useEffect)((function(){u&&!0===b.current&&!c()(g.current,h.initialStatus)&&(g.current=h.initialStatus,S({type:"SET_STATUS",payload:h.initialStatus}))}),[u,h.initialStatus,h.initialTouched]);var B=X((function(e){if(v.current[e]&&P(v.current[e].validate)){var t=I(j.values,e),s=v.current[e].validate(t);return M(s)?(S({type:"SET_ISVALIDATING",payload:!0}),s.then((function(e){return e})).then((function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),S({type:"SET_ISVALIDATING",payload:!1})}))):(S({type:"SET_FIELD_ERROR",payload:{field:e,value:s}}),Promise.resolve(s))}return h.validationSchema?(S({type:"SET_ISVALIDATING",payload:!0}),E(j.values,e).then((function(e){return e})).then((function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),S({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),U=(0,n.useCallback)((function(e,t){var s=t.validate;v.current[e]={validate:s}}),[]),V=(0,n.useCallback)((function(e){delete v.current[e]}),[]),z=X((function(e,t){return S({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?O(j.values):Promise.resolve()})),q=(0,n.useCallback)((function(e){S({type:"SET_ERRORS",payload:e})}),[]),Y=X((function(e,t){var r=P(e)?e(j.values):e;return S({type:"SET_VALUES",payload:r}),(void 0===t?s:t)?O(r):Promise.resolve()})),Z=(0,n.useCallback)((function(e,t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),Q=X((function(e,t,r){return S({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?s:r)?O(D(j.values,e,t)):Promise.resolve()})),ee=(0,n.useCallback)((function(e,t){var s,r=t,o=e;if(!N(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,a=i.type,n=i.name,l=i.id,d=i.value,c=i.checked,u=(i.outerHTML,i.options),p=i.multiple;r=t||n||l,o=/number|range/.test(a)?(s=parseFloat(d),isNaN(s)?"":s):/checkbox/.test(a)?function(e,t,s){if("boolean"==typeof e)return Boolean(t);var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,o=(i=e.indexOf(s))>=0;else if(!s||"true"==s||"false"==s)return Boolean(t);return t&&s&&!o?r.concat(s):o?r.slice(0,i).concat(r.slice(i+1)):r}(I(j.values,r),c,d):u&&p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(u):d}r&&Q(r,o)}),[Q,j.values]),te=X((function(e){if(N(e))return function(t){return ee(t,e)};ee(e)})),se=X((function(e,t,s){return void 0===t&&(t=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===s?o:s)?O(j.values):Promise.resolve()})),re=(0,n.useCallback)((function(e,t){e.persist&&e.persist();var s=e.target,r=s.name,o=s.id,i=(s.outerHTML,t||r||o);se(i,!0)}),[se]),oe=X((function(e){if(N(e))return function(t){return re(t,e)};re(e)})),ie=(0,n.useCallback)((function(e){P(e)?S({type:"SET_FORMIK_STATE",payload:e}):S({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),ae=(0,n.useCallback)((function(e){S({type:"SET_STATUS",payload:e})}),[]),ne=(0,n.useCallback)((function(e){S({type:"SET_ISSUBMITTING",payload:e})}),[]),le=X((function(){return S({type:"SUBMIT_ATTEMPT"}),O().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var s;try{if(void 0===(s=ue()))return}catch(e){throw e}return Promise.resolve(s).then((function(e){return b.current&&S({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(b.current)throw S({type:"SUBMIT_FAILURE"}),e}))}if(b.current&&(S({type:"SUBMIT_FAILURE"}),t))throw e}))})),de=X((function(e){e&&e.preventDefault&&P(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&P(e.stopPropagation)&&e.stopPropagation(),le().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),ce={resetForm:A,validateForm:O,validateField:B,setErrors:q,setFieldError:Z,setFieldTouched:se,setFieldValue:Q,setStatus:ae,setSubmitting:ne,setTouched:z,setValues:Y,setFormikState:ie,submitForm:le},ue=X((function(){return p(j.values,ce)})),pe=X((function(e){e&&e.preventDefault&&P(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&P(e.stopPropagation)&&e.stopPropagation(),A()})),me=(0,n.useCallback)((function(e){return{value:I(j.values,e),error:I(j.errors,e),touched:!!I(j.touched,e),initialValue:I(f.current,e),initialTouched:!!I(w.current,e),initialError:I(y.current,e)}}),[j.errors,j.touched,j.values]),he=(0,n.useCallback)((function(e){return{setValue:function(t,s){return Q(e,t,s)},setTouched:function(t,s){return se(e,t,s)},setError:function(t){return Z(e,t)}}}),[Q,se,Z]),fe=(0,n.useCallback)((function(e){var t=C(e),s=t?e.name:e,r=I(j.values,s),o={name:s,value:r,onChange:te,onBlur:oe};if(t){var i=e.type,a=e.value,n=e.as,l=e.multiple;"checkbox"===i?void 0===a?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(a)),o.value=a):"radio"===i?(o.checked=r===a,o.value=a):"select"===n&&l&&(o.value=o.value||[],o.multiple=!0)}return o}),[oe,te,j.values]),_e=(0,n.useMemo)((function(){return!c()(f.current,j.values)}),[f.current,j.values]),ye=(0,n.useMemo)((function(){return void 0!==l?_e?j.errors&&0===Object.keys(j.errors).length:!1!==l&&P(l)?l(h):l:j.errors&&0===Object.keys(j.errors).length}),[l,_e,j.errors,h]);return T({},j,{initialValues:f.current,initialErrors:y.current,initialTouched:w.current,initialStatus:g.current,handleBlur:oe,handleChange:te,handleReset:pe,handleSubmit:de,resetForm:A,setErrors:q,setFormikState:ie,setFieldTouched:se,setFieldValue:Q,setFieldError:Z,setStatus:ae,setSubmitting:ne,setTouched:z,setValues:Y,submitForm:le,validateForm:O,validateField:B,isValid:ye,dirty:_e,unregisterField:V,registerField:U,getFieldProps:fe,getFieldMeta:me,getFieldHelpers:he,validateOnBlur:o,validateOnChange:s,validateOnMount:a})}function Z(e){var t=Y(e),s=e.component,r=e.children,o=e.render,i=e.innerRef;return(0,n.useImperativeHandle)(i,(function(){return t})),(0,n.createElement)(V,{value:t},s?(0,n.createElement)(s,t):o?o(t):r?P(r)?r(t):A(r)?null:n.Children.only(r):null)}function K(e){var t=Array.isArray(e)?[]:{};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var r=String(s);!0===Array.isArray(e[r])?t[r]=e[r].map((function(e){return!0===Array.isArray(e)||w()(e)?K(e):""!==e?e:void 0})):w()(e[r])?t[r]=K(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function J(e,t,s){var r=e.slice();return t.forEach((function(t,o){if(void 0===r[o]){var i=!1!==s.clone&&s.isMergeableObject(t);r[o]=i?_(Array.isArray(t)?[]:{},t,s):t}else s.isMergeableObject(t)?r[o]=_(e[o],t,s):-1===e.indexOf(t)&&r.push(t)})),r}var Q="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function X(e){var t=(0,n.useRef)(e);return Q((function(){t.current=e})),(0,n.useCallback)((function(){for(var e=arguments.length,s=new Array(e),r=0;r<e;r++)s[r]=arguments[r];return t.current.apply(void 0,s)}),[])}function ee(e){var t=q(),s=t.getFieldProps,r=t.getFieldMeta,o=t.getFieldHelpers,i=t.registerField,a=t.unregisterField,l=C(e)?e:{name:e},d=l.name,c=l.validate;return(0,n.useEffect)((function(){return d&&i(d,{validate:c}),function(){d&&a(d)}}),[i,a,d,c]),d||j(!1),[s(l),r(d),o(d)]}function te(e){var t=e.validate,s=e.name,r=e.render,o=e.children,i=e.as,a=e.component,l=F(e,["validate","name","render","children","as","component"]),d=F(q(),["validate","validationSchema"]),c=d.registerField,u=d.unregisterField;(0,n.useEffect)((function(){return c(s,{validate:t}),function(){u(s)}}),[c,u,s,t]);var p=d.getFieldProps(T({name:s},l)),m=d.getFieldMeta(s),h={field:p,form:d};if(r)return r(T({},h,{meta:m}));if(P(o))return o(T({},h,{meta:m}));if(a){if("string"==typeof a){var f=l.innerRef,_=F(l,["innerRef"]);return(0,n.createElement)(a,T({ref:f},p,_),o)}return(0,n.createElement)(a,T({field:p,form:d},l),o)}var y=i||"input";if("string"==typeof y){var w=l.innerRef,g=F(l,["innerRef"]);return(0,n.createElement)(y,T({ref:w},p,g),o)}return(0,n.createElement)(y,T({},p,l),o)}var se=(0,n.forwardRef)((function(e,t){var s=e.action,r=F(e,["action"]),o=null!=s?s:"#",i=q(),a=i.handleReset,l=i.handleSubmit;return(0,n.createElement)("form",Object.assign({onSubmit:l,ref:t,onReset:a,action:o},r))}));function re(e){var t=function(t){return(0,n.createElement)(z,null,(function(s){return s||j(!1),(0,n.createElement)(e,Object.assign({},t,{formik:s}))}))},s=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+s+")",k()(t,e)}se.displayName="Form";var oe=function(e,t,s){var r=ie(e);return r.splice(t,0,s),r},ie=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(T({},e,{length:t+1}))}return[]},ae=function(e){function t(t){var s;return(s=e.call(this,t)||this).updateArrayField=function(e,t,r){var o=s.props,i=o.name;(0,o.formik.setFormikState)((function(s){var o="function"==typeof r?r:e,a="function"==typeof t?t:e,n=D(s.values,i,e(I(s.values,i))),l=r?o(I(s.errors,i)):void 0,d=t?a(I(s.touched,i)):void 0;return R(l)&&(l=void 0),R(d)&&(d=void 0),T({},s,{values:n,errors:r?D(s.errors,i,l):s.errors,touched:t?D(s.touched,i,d):s.touched})}))},s.push=function(e){return s.updateArrayField((function(t){return[].concat(ie(t),[L()(e)])}),!1,!1)},s.handlePush=function(e){return function(){return s.push(e)}},s.swap=function(e,t){return s.updateArrayField((function(s){return function(e,t,s){var r=ie(e),o=r[t];return r[t]=r[s],r[s]=o,r}(s,e,t)}),!0,!0)},s.handleSwap=function(e,t){return function(){return s.swap(e,t)}},s.move=function(e,t){return s.updateArrayField((function(s){return function(e,t,s){var r=ie(e),o=r[t];return r.splice(t,1),r.splice(s,0,o),r}(s,e,t)}),!0,!0)},s.handleMove=function(e,t){return function(){return s.move(e,t)}},s.insert=function(e,t){return s.updateArrayField((function(s){return oe(s,e,t)}),(function(t){return oe(t,e,null)}),(function(t){return oe(t,e,null)}))},s.handleInsert=function(e,t){return function(){return s.insert(e,t)}},s.replace=function(e,t){return s.updateArrayField((function(s){return function(e,t,s){var r=ie(e);return r[t]=s,r}(s,e,t)}),!1,!1)},s.handleReplace=function(e,t){return function(){return s.replace(e,t)}},s.unshift=function(e){var t=-1;return s.updateArrayField((function(s){var r=s?[e].concat(s):[e];return t<0&&(t=r.length),r}),(function(e){var s=e?[null].concat(e):[null];return t<0&&(t=s.length),s}),(function(e){var s=e?[null].concat(e):[null];return t<0&&(t=s.length),s})),t},s.handleUnshift=function(e){return function(){return s.unshift(e)}},s.handleRemove=function(e){return function(){return s.remove(e)}},s.handlePop=function(){return function(){return s.pop()}},s.remove=s.remove.bind($(s)),s.pop=s.pop.bind($(s)),s}var s,r;r=e,(s=t).prototype=Object.create(r.prototype),s.prototype.constructor=s,s.__proto__=r;var o=t.prototype;return o.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!c()(I(e.formik.values,e.name),I(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},o.remove=function(e){var t;return this.updateArrayField((function(s){var r=s?ie(s):[];return t||(t=r[e]),P(r.splice)&&r.splice(e,1),r}),!0,!0),t},o.pop=function(){var e;return this.updateArrayField((function(t){var s=t;return e||(e=s&&s.pop&&s.pop()),s}),!0,!0),e},o.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,s=t.component,r=t.render,o=t.children,i=t.name,a=T({},e,{form:F(t.formik,["validate","validationSchema"]),name:i});return s?(0,n.createElement)(s,a):r?r(a):o?"function"==typeof o?o(a):A(o)?null:n.Children.only(o):null},t}(n.Component);ae.defaultProps={validateOnChange:!0};var ne=re(ae);const le=window.lodash,de=window.ReactDOM;function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},ce.apply(this,arguments)}var ue;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(ue||(ue={}));const pe="popstate";function me(e,t){if(!1===e||null==e)throw new Error(t)}function he(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function fe(e,t){return{usr:e.state,key:e.key,idx:t}}function _e(e,t,s,r){return void 0===s&&(s=null),ce({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?we(t):t,{state:s,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function ye(e){let{pathname:t="/",search:s="",hash:r=""}=e;return s&&"?"!==s&&(t+="?"===s.charAt(0)?s:"?"+s),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function we(e){let t={};if(e){let s=e.indexOf("#");s>=0&&(t.hash=e.substr(s),e=e.substr(0,s));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var ge;function be(e,t,s){return void 0===s&&(s="/"),function(e,t,s,r){let o=Oe(("string"==typeof t?we(t):t).pathname||"/",s);if(null==o)return null;let i=ve(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let s=e.length===t.length&&e.slice(0,-1).every(((e,s)=>e===t[s]));return s?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=Ce(o);a=Re(i[e],t,r)}return a}(e,t,s,!1)}function ve(e,t,s,r){void 0===t&&(t=[]),void 0===s&&(s=[]),void 0===r&&(r="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(me(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let n=Ie([r,a.relativePath]),l=s.concat(a);e.children&&e.children.length>0&&(me(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+n+'".'),ve(e.children,t,l,n)),(null!=e.path||e.index)&&t.push({path:n,score:$e(n,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var s;if(""!==e.path&&null!=(s=e.path)&&s.includes("?"))for(let s of xe(e.path))o(e,t,s);else o(e,t)})),t}function xe(e){let t=e.split("/");if(0===t.length)return[];let[s,...r]=t,o=s.endsWith("?"),i=s.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=xe(r.join("/")),n=[];return n.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&n.push(...a),n.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(ge||(ge={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const je=/^:[\w-]+$/,Se=3,ke=2,Ee=1,Le=10,Te=-2,Fe=e=>"*"===e;function $e(e,t){let s=e.split("/"),r=s.length;return s.some(Fe)&&(r+=Te),t&&(r+=ke),s.filter((e=>!Fe(e))).reduce(((e,t)=>e+(je.test(t)?Se:""===t?Ee:Le)),r)}function Re(e,t,s){void 0===s&&(s=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e<r.length;++e){let n=r[e],l=e===r.length-1,d="/"===i?t:t.slice(i.length)||"/",c=Pe({path:n.relativePath,caseSensitive:n.caseSensitive,end:l},d),u=n.route;if(!c&&l&&s&&!r[r.length-1].route.index&&(c=Pe({path:n.relativePath,caseSensitive:n.caseSensitive,end:!1},d)),!c)return null;Object.assign(o,c.params),a.push({params:o,pathname:Ie([i,c.pathname]),pathnameBase:De(Ie([i,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(i=Ie([i,c.pathnameBase]))}return a}function Pe(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[s,r]=function(e,t,s){void 0===t&&(t=!1),void 0===s&&(s=!0),he("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,s)=>(r.push({paramName:t,isOptional:null!=s}),s?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(s);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),n=o.slice(1);return{params:r.reduce(((e,t,s)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=n[s]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=n[s];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function Ce(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return he(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function Oe(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let s=t.endsWith("/")?t.length-1:t.length,r=e.charAt(s);return r&&"/"!==r?null:e.slice(s)||"/"}function Ne(e,t,s,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+s+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function Ae(e,t){let s=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?s.map(((e,t)=>t===s.length-1?e.pathname:e.pathnameBase)):s.map((e=>e.pathnameBase))}function Me(e,t,s,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=we(e):(o=ce({},e),me(!o.pathname||!o.pathname.includes("?"),Ne("?","pathname","search",o)),me(!o.pathname||!o.pathname.includes("#"),Ne("#","pathname","hash",o)),me(!o.search||!o.search.includes("#"),Ne("#","search","hash",o)));let i,a=""===e||""===o.pathname,n=a?"/":o.pathname;if(null==n)i=s;else{let e=t.length-1;if(!r&&n.startsWith("..")){let t=n.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:s,search:r="",hash:o=""}="string"==typeof e?we(e):e,i=s?s.startsWith("/")?s:function(e,t){let s=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?s.length>1&&s.pop():"."!==e&&s.push(e)})),s.length>1?s.join("/"):"/"}(s,t):t;return{pathname:i,search:Be(r),hash:Ue(o)}}(o,i),d=n&&"/"!==n&&n.endsWith("/"),c=(a||"."===n)&&s.endsWith("/");return l.pathname.endsWith("/")||!d&&!c||(l.pathname+="/"),l}const Ie=e=>e.join("/").replace(/\/\/+/g,"/"),De=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Be=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Ue=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const Ve=["post","put","patch","delete"],ze=(new Set(Ve),["get",...Ve]);function qe(){return qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},qe.apply(this,arguments)}new Set(ze),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const We=n.createContext(null),He=n.createContext(null),Ge=n.createContext(null),Ye=n.createContext(null),Ze=n.createContext({outlet:null,matches:[],isDataRoute:!1}),Ke=n.createContext(null);function Je(){return null!=n.useContext(Ye)}function Qe(){return Je()||me(!1),n.useContext(Ye).location}function Xe(e){n.useContext(Ge).static||n.useLayoutEffect(e)}function et(){let{isDataRoute:e}=n.useContext(Ze);return e?function(){let{router:e}=function(e){let t=n.useContext(We);return t||me(!1),t}(nt.UseNavigateStable),t=dt(lt.UseNavigateStable),s=n.useRef(!1);return Xe((()=>{s.current=!0})),n.useCallback((function(r,o){void 0===o&&(o={}),s.current&&("number"==typeof r?e.navigate(r):e.navigate(r,qe({fromRouteId:t},o)))}),[e,t])}():function(){Je()||me(!1);let e=n.useContext(We),{basename:t,future:s,navigator:r}=n.useContext(Ge),{matches:o}=n.useContext(Ze),{pathname:i}=Qe(),a=JSON.stringify(Ae(o,s.v7_relativeSplatPath)),l=n.useRef(!1);return Xe((()=>{l.current=!0})),n.useCallback((function(s,o){if(void 0===o&&(o={}),!l.current)return;if("number"==typeof s)return void r.go(s);let n=Me(s,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(n.pathname="/"===n.pathname?t:Ie([t,n.pathname])),(o.replace?r.replace:r.push)(n,o.state,o)}),[t,r,a,i,e])}()}function tt(e,t){let{relative:s}=void 0===t?{}:t,{future:r}=n.useContext(Ge),{matches:o}=n.useContext(Ze),{pathname:i}=Qe(),a=JSON.stringify(Ae(o,r.v7_relativeSplatPath));return n.useMemo((()=>Me(e,JSON.parse(a),i,"path"===s)),[e,a,i,s])}function st(e,t,s,r){Je()||me(!1);let{navigator:o}=n.useContext(Ge),{matches:i}=n.useContext(Ze),a=i[i.length-1],l=a?a.params:{},d=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;let c,u=Qe();if(t){var p;let e="string"==typeof t?we(t):t;"/"===d||(null==(p=e.pathname)?void 0:p.startsWith(d))||me(!1),c=e}else c=u;let m=c.pathname||"/",h=m;if("/"!==d){let e=d.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let f=be(e,{pathname:h}),_=function(e,t,s,r){var o;if(void 0===t&&(t=[]),void 0===s&&(s=null),void 0===r&&(r=null),null==e){var i;if(!s)return null;if(s.errors)e=s.matches;else{if(!(null!=(i=r)&&i.v7_partialHydration&&0===t.length&&!s.initialized&&s.matches.length>0))return null;e=s.matches}}let a=e,l=null==(o=s)?void 0:o.errors;if(null!=l){let e=a.findIndex((e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id])));e>=0||me(!1),a=a.slice(0,Math.min(a.length,e+1))}let d=!1,c=-1;if(s&&r&&r.v7_partialHydration)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=s,o=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){d=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight(((e,r,o)=>{let i,u=!1,p=null,m=null;var h;s&&(i=l&&r.route.id?l[r.route.id]:void 0,p=r.route.errorElement||ot,d&&(c<0&&0===o?(ct[h="route-fallback"]||(ct[h]=!0),u=!0,m=null):c===o&&(u=!0,m=r.route.hydrateFallbackElement||null)));let f=t.concat(a.slice(0,o+1)),_=()=>{let t;return t=i?p:u?m:r.route.Component?n.createElement(r.route.Component,null):r.route.element?r.route.element:e,n.createElement(at,{match:r,routeContext:{outlet:e,matches:f,isDataRoute:null!=s},children:t})};return s&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?n.createElement(it,{location:s.location,revalidation:s.revalidation,component:p,error:i,children:_(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):_()}),null)}(f&&f.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:Ie([d,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:Ie([d,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,s,r);return t&&_?n.createElement(Ye.Provider,{value:{location:qe({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:ue.Pop}},_):_}function rt(){let e=function(){var e;let t=n.useContext(Ke),s=function(e){let t=n.useContext(He);return t||me(!1),t}(lt.UseRouteError),r=dt(lt.UseRouteError);return void 0!==t?t:null==(e=s.errors)?void 0:e[r]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),s=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),s?n.createElement("pre",{style:r},s):null,null)}const ot=n.createElement(rt,null);class it extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?n.createElement(Ze.Provider,{value:this.props.routeContext},n.createElement(Ke.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function at(e){let{routeContext:t,match:s,children:r}=e,o=n.useContext(We);return o&&o.static&&o.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=s.route.id),n.createElement(Ze.Provider,{value:t},r)}var nt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(nt||{}),lt=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(lt||{});function dt(e){let t=function(e){let t=n.useContext(Ze);return t||me(!1),t}(),s=t.matches[t.matches.length-1];return s.route.id||me(!1),s.route.id}const ct={};function ut(e){let{to:t,replace:s,state:r,relative:o}=e;Je()||me(!1);let{future:i,static:a}=n.useContext(Ge),{matches:l}=n.useContext(Ze),{pathname:d}=Qe(),c=et(),u=Me(t,Ae(l,i.v7_relativeSplatPath),d,"path"===o),p=JSON.stringify(u);return n.useEffect((()=>c(JSON.parse(p),{replace:s,state:r,relative:o})),[c,p,o,s,r]),null}function pt(e){me(!1)}function mt(e){let{basename:t="/",children:s=null,location:r,navigationType:o=ue.Pop,navigator:i,static:a=!1,future:l}=e;Je()&&me(!1);let d=t.replace(/^\/*/,"/"),c=n.useMemo((()=>({basename:d,navigator:i,static:a,future:qe({v7_relativeSplatPath:!1},l)})),[d,l,i,a]);"string"==typeof r&&(r=we(r));let{pathname:u="/",search:p="",hash:m="",state:h=null,key:f="default"}=r,_=n.useMemo((()=>{let e=Oe(u,d);return null==e?null:{location:{pathname:e,search:p,hash:m,state:h,key:f},navigationType:o}}),[d,u,p,m,h,f,o]);return null==_?null:n.createElement(Ge.Provider,{value:c},n.createElement(Ye.Provider,{children:s,value:_}))}function ht(e){let{children:t,location:s}=e;return st(ft(t),s)}function ft(e,t){void 0===t&&(t=[]);let s=[];return n.Children.forEach(e,((e,r)=>{if(!n.isValidElement(e))return;let o=[...t,r];if(e.type===n.Fragment)return void s.push.apply(s,ft(e.props.children,o));e.type!==pt&&me(!1),e.props.index&&e.props.children&&me(!1);let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=ft(e.props.children,o)),s.push(i)})),s}function _t(){return _t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},_t.apply(this,arguments)}n.startTransition,new Promise((()=>{})),n.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const yt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(ms){}new Map;const wt=n.startTransition;function gt(e){let{basename:t,children:s,future:r,window:o}=e,i=n.useRef();var a;null==i.current&&(i.current=(void 0===(a={window:o,v5Compat:!0})&&(a={}),function(e,t,s,r){void 0===r&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,n=ue.Pop,l=null,d=c();function c(){return(a.state||{idx:null}).idx}function u(){n=ue.Pop;let e=c(),t=null==e?null:e-d;d=e,l&&l({action:n,location:m.location,delta:t})}function p(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,s="string"==typeof e?e:ye(e);return s=s.replace(/ $/,"%20"),me(t,"No window.location.(origin|href) available to create URL for href: "+s),new URL(s,t)}null==d&&(d=0,a.replaceState(ce({},a.state,{idx:d}),""));let m={get action(){return n},get location(){return e(o,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(pe,u),l=e,()=>{o.removeEventListener(pe,u),l=null}},createHref:e=>t(o,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){n=ue.Push;let r=_e(m.location,e,t);s&&s(r,e),d=c()+1;let u=fe(r,d),p=m.createHref(r);try{a.pushState(u,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(p)}i&&l&&l({action:n,location:m.location,delta:1})},replace:function(e,t){n=ue.Replace;let r=_e(m.location,e,t);s&&s(r,e),d=c();let o=fe(r,d),u=m.createHref(r);a.replaceState(o,"",u),i&&l&&l({action:n,location:m.location,delta:0})},go:e=>a.go(e)};return m}((function(e,t){let{pathname:s="/",search:r="",hash:o=""}=we(e.location.hash.substr(1));return s.startsWith("/")||s.startsWith(".")||(s="/"+s),_e("",{pathname:s,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let s=e.document.querySelector("base"),r="";if(s&&s.getAttribute("href")){let t=e.location.href,s=t.indexOf("#");r=-1===s?t:t.slice(0,s)}return r+"#"+("string"==typeof t?t:ye(t))}),(function(e,t){he("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),a)));let l=i.current,[d,c]=n.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},p=n.useCallback((e=>{u&&wt?wt((()=>c(e))):c(e)}),[c,u]);return n.useLayoutEffect((()=>l.listen(p)),[l,p]),n.createElement(mt,{basename:t,children:s,location:d.location,navigationType:d.action,navigator:l,future:r})}de.flushSync,n.useId;const bt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,vt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xt=n.forwardRef((function(e,t){let s,{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:d,to:c,preventScrollReset:u,unstable_viewTransition:p}=e,m=function(e,t){if(null==e)return{};var s,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)s=i[r],t.indexOf(s)>=0||(o[s]=e[s]);return o}(e,yt),{basename:h}=n.useContext(Ge),f=!1;if("string"==typeof c&&vt.test(c)&&(s=c,bt))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),s=Oe(t.pathname,h);t.origin===e.origin&&null!=s?c=s+t.search+t.hash:f=!0}catch(e){}let _=function(e,t){let{relative:s}=void 0===t?{}:t;Je()||me(!1);let{basename:r,navigator:o}=n.useContext(Ge),{hash:i,pathname:a,search:l}=tt(e,{relative:s}),d=a;return"/"!==r&&(d="/"===a?r:Ie([r,a])),o.createHref({pathname:d,search:l,hash:i})}(c,{relative:o}),y=function(e,t){let{target:s,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=void 0===t?{}:t,d=et(),c=Qe(),u=tt(e,{relative:a});return n.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,s)){t.preventDefault();let s=void 0!==r?r:ye(c)===ye(u);d(e,{replace:s,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}}),[c,d,u,r,o,s,e,i,a,l])}(c,{replace:a,state:l,target:d,preventScrollReset:u,relative:o,unstable_viewTransition:p});return n.createElement("a",_t({},m,{href:s||_,onClick:f||i?r:function(e){r&&r(e),e.defaultPrevented||y(e)},ref:t,target:d}))}));var jt,St;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(jt||(jt={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(St||(St={}));const kt=window.yoast.styledComponents,Et=window.wp.i18n,Lt=window.yoast.reduxJsToolkit,Tt="adminUrl",Ft=(0,Lt.createSlice)({name:Tt,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),$t=(Ft.getInitialState,{selectAdminUrl:e=>(0,le.get)(e,Tt,"")});$t.selectAdminLink=(0,Lt.createSelector)([$t.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),Ft.actions,Ft.reducer;const Rt=window.wp.apiFetch;var Pt=s.n(Rt);const Ct="hasConsent",Ot=(0,Lt.createSlice)({name:Ct,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),Nt=(Ot.getInitialState,Ot.actions,Ot.reducer,window.wp.url),At="linkParams",Mt=(0,Lt.createSlice)({name:At,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),It=Mt.getInitialState,Dt={selectLinkParam:(e,t,s={})=>(0,le.get)(e,`${At}.${t}`,s),selectLinkParams:e=>(0,le.get)(e,At,{})};Dt.selectLink=(0,Lt.createSelector)([Dt.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,Nt.addQueryArgs)(t,{...e,...s})));const Bt=Mt.actions,Ut=Mt.reducer,Vt="notifications",zt=(0,Lt.createSlice)({name:Vt,initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:r,description:o})=>({payload:{id:e||(0,Lt.nanoid)(),variant:t,size:s,title:r||"",description:o}})},removeNotification:(e,{payload:t})=>(0,le.omit)(e,t)}}),qt=zt.getInitialState,Wt={selectNotifications:e=>(0,le.get)(e,Vt,{}),selectNotification:(e,t)=>(0,le.get)(e,[Vt,t],null)},Ht=zt.actions,Gt=zt.reducer,Yt="pluginUrl",Zt=(0,Lt.createSlice)({name:Yt,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),Kt=(Zt.getInitialState,{selectPluginUrl:e=>(0,le.get)(e,Yt,"")});Kt.selectImageLink=(0,Lt.createSelector)([Kt.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,le.trimEnd)(e,"/"),(0,le.trim)(t,"/"),(0,le.trimStart)(s,"/")].join("/"))),Zt.actions,Zt.reducer;const Jt="request",Qt="success",Xt="error",es="idle",ts="loading",ss="success",rs="error",os="wistiaEmbedPermission",is=(0,Lt.createSlice)({name:os,initialState:{value:!1,status:es,error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${os}/${Jt}`,(e=>{e.status=ts})),e.addCase(`${os}/${Qt}`,((e,{payload:t})=>{e.status=ss,e.value=Boolean(t&&t.value)})),e.addCase(`${os}/${Xt}`,((e,{payload:t})=>{e.status=rs,e.value=Boolean(t&&t.value),e.error={code:(0,le.get)(t,"error.code",500),message:(0,le.get)(t,"error.message","Unknown")}}))}});var as;is.getInitialState,is.actions,is.reducer;const ns="documentTitle",ls=(0,Lt.createSlice)({name:ns,initialState:(0,le.defaultTo)(null===(as=document)||void 0===as?void 0:as.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),ds=(ls.getInitialState,{selectDocumentTitle:e=>(0,le.get)(e,ns,""),selectDocumentFullTitle:(e,{prefix:t=""}={})=>{const s=(0,le.get)(e,ns,"");return s.startsWith(t)?s:`${t} ‹ ${s}`}}),cs=(ls.actions,ls.reducer);function us(...e){return e.filter(Boolean).join(" ")}function ps(e,t,...s){if(e in t){let r=t[e];return"function"==typeof r?r(...s):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ps),r}var ms,hs,fs=((hs=fs||{})[hs.None=0]="None",hs[hs.RenderStrategy=1]="RenderStrategy",hs[hs.Static=2]="Static",hs),_s=((ms=_s||{})[ms.Unmount=0]="Unmount",ms[ms.Hidden=1]="Hidden",ms);function ys({ourProps:e,theirProps:t,slot:s,defaultTag:r,features:o,visible:i=!0,name:a}){let n=gs(t,e);if(i)return ws(n,s,r,a);let l=null!=o?o:0;if(2&l){let{static:e=!1,...t}=n;if(e)return ws(t,s,r,a)}if(1&l){let{unmount:e=!0,...t}=n;return ps(e?0:1,{0:()=>null,1:()=>ws({...t,hidden:!0,style:{display:"none"}},s,r,a)})}return ws(n,s,r,a)}function ws(e,t={},s,r){var o;let{as:i=s,children:a,refName:l="ref",...d}=xs(e,["unmount","static"]),c=void 0!==e.ref?{[l]:e.ref}:{},u="function"==typeof a?a(t):a;d.className&&"function"==typeof d.className&&(d.className=d.className(t));let p={};if(t){let e=!1,s=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&s.push(r);e&&(p["data-headlessui-state"]=s.join(" "))}if(i===n.Fragment&&Object.keys(vs(d)).length>0){if(!(0,n.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(d).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=us(null==(o=u.props)?void 0:o.className,d.className),t=e?{className:e}:{};return(0,n.cloneElement)(u,Object.assign({},gs(u.props,vs(xs(d,["ref"]))),p,c,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let s of e)null!=s&&("function"==typeof s?s(t):s.current=t)}}}(u.ref,c.ref),t))}return(0,n.createElement)(i,Object.assign({},xs(d,["ref"]),i!==n.Fragment&&c,i!==n.Fragment&&p),u)}function gs(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},s={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=s[e]||(s[e]=[]),s[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(s).map((e=>[e,void 0]))));for(let e in s)Object.assign(t,{[e](t,...r){let o=s[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function bs(e){var t;return Object.assign((0,n.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function vs(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function xs(e,t=[]){let s=Object.assign({},e);for(let e of t)e in s&&delete s[e];return s}let js=(0,n.createContext)(null);js.displayName="OpenClosedContext";var Ss=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ss||{});function ks(){return(0,n.useContext)(js)}function Es({value:e,children:t}){return n.createElement(js.Provider,{value:e},t)}var Ls=Object.defineProperty,Ts=(e,t,s)=>(((e,t,s)=>{t in e?Ls(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s})(e,"symbol"!=typeof t?t+"":t,s),s);let Fs=new class{constructor(){Ts(this,"current",this.detect()),Ts(this,"handoffState","pending"),Ts(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},$s=(e,t)=>{Fs.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)};function Rs(){let e=(0,n.useRef)(!1);return $s((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Ps(e){let t=(0,n.useRef)(e);return $s((()=>{t.current=e}),[e]),t}function Cs(){let[e,t]=(0,n.useState)(Fs.isHandoffComplete);return e&&!1===Fs.isHandoffComplete&&t(!1),(0,n.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,n.useEffect)((()=>Fs.handoff()),[]),e}let Os=function(e){let t=Ps(e);return n.useCallback(((...e)=>t.current(...e)),[t])},Ns=Symbol();function As(...e){let t=(0,n.useRef)(e);(0,n.useEffect)((()=>{t.current=e}),[e]);let s=Os((e=>{for(let s of t.current)null!=s&&("function"==typeof s?s(e):s.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Ns])))?void 0:s}function Ms(){let e=[],t=[],s={enqueue(e){t.push(e)},addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),s.add((()=>e.removeEventListener(t,r,o)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return s.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>s.requestAnimationFrame((()=>s.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return s.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{t.current&&e[0]()})),s.add((()=>{t.current=!1}))},add:t=>(e.push(t),()=>{let s=e.indexOf(t);if(s>=0){let[t]=e.splice(s,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return s}function Is(e,...t){e&&t.length>0&&e.classList.add(...t)}function Ds(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Bs(){let[e]=(0,n.useState)(Ms);return(0,n.useEffect)((()=>()=>e.dispose()),[e]),e}function Us({container:e,direction:t,classes:s,onStart:r,onStop:o}){let i=Rs(),a=Bs(),n=Ps(t);$s((()=>{let t=Ms();a.add(t.dispose);let l=e.current;if(l&&"idle"!==n.current&&i.current)return t.dispose(),r.current(n.current),t.add(function(e,t,s,r){let o=s?"enter":"leave",i=Ms(),a=void 0!==r?function(e){let t={called:!1};return(...s)=>{if(!t.called)return t.called=!0,e(...s)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let n=ps(o,{enter:()=>t.enter,leave:()=>t.leave}),l=ps(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),d=ps(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Ds(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Is(e,...n,...d),i.nextFrame((()=>{Ds(e,...d),Is(e,...l),function(e,t){let s=Ms();if(!e)return s.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(i+a!==0){let r=s.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();s.add((()=>t())),s.dispose}(e,(()=>(Ds(e,...n),Is(e,...t.entered),a())))})),i.dispose}(l,s.current,"enter"===n.current,(()=>{t.dispose(),o.current(n.current)}))),t.dispose}),[t])}function Vs(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let zs=(0,n.createContext)(null);zs.displayName="TransitionContext";var qs=(e=>(e.Visible="visible",e.Hidden="hidden",e))(qs||{});let Ws=(0,n.createContext)(null);function Hs(e){return"children"in e?Hs(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Gs(e,t){let s=Ps(e),r=(0,n.useRef)([]),o=Rs(),i=Bs(),a=Os(((e,t=_s.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(ps(t,{[_s.Unmount](){r.current.splice(a,1)},[_s.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!Hs(r)&&o.current&&(null==(e=s.current)||e.call(s))})))})),l=Os((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,_s.Unmount)})),d=(0,n.useRef)([]),c=(0,n.useRef)(Promise.resolve()),u=(0,n.useRef)({enter:[],leave:[],idle:[]}),p=Os(((e,s,r)=>{d.current.splice(0),t&&(t.chains.current[s]=t.chains.current[s].filter((([t])=>t!==e))),null==t||t.chains.current[s].push([e,new Promise((e=>{d.current.push(e)}))]),null==t||t.chains.current[s].push([e,new Promise((e=>{Promise.all(u.current[s].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===s?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(s))):r(s)})),m=Os(((e,t,s)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=d.current.shift())||e()})).then((()=>s(t)))}));return(0,n.useMemo)((()=>({children:r,register:l,unregister:a,onStart:p,onStop:m,wait:c,chains:u})),[l,a,r,p,m,u,c])}function Ys(){}Ws.displayName="NestingContext";let Zs=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ks(e){var t;let s={};for(let r of Zs)s[r]=null!=(t=e[r])?t:Ys;return s}let Js=fs.RenderStrategy,Qs=bs((function(e,t){let{beforeEnter:s,afterEnter:r,beforeLeave:o,afterLeave:i,enter:a,enterFrom:l,enterTo:d,entered:c,leave:u,leaveFrom:p,leaveTo:m,...h}=e,f=(0,n.useRef)(null),_=As(f,t),y=h.unmount?_s.Unmount:_s.Hidden,{show:w,appear:g,initial:b}=function(){let e=(0,n.useContext)(zs);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[v,x]=(0,n.useState)(w?"visible":"hidden"),j=function(){let e=(0,n.useContext)(Ws);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:S,unregister:k}=j,E=(0,n.useRef)(null);(0,n.useEffect)((()=>S(f)),[S,f]),(0,n.useEffect)((()=>{if(y===_s.Hidden&&f.current)return w&&"visible"!==v?void x("visible"):ps(v,{hidden:()=>k(f),visible:()=>S(f)})}),[v,f,S,k,w,y]);let L=Ps({enter:Vs(a),enterFrom:Vs(l),enterTo:Vs(d),entered:Vs(c),leave:Vs(u),leaveFrom:Vs(p),leaveTo:Vs(m)}),T=function(e){let t=(0,n.useRef)(Ks(e));return(0,n.useEffect)((()=>{t.current=Ks(e)}),[e]),t}({beforeEnter:s,afterEnter:r,beforeLeave:o,afterLeave:i}),F=Cs();(0,n.useEffect)((()=>{if(F&&"visible"===v&&null===f.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[f,v,F]);let $=b&&!g,R=!F||$||E.current===w?"idle":w?"enter":"leave",P=Os((e=>ps(e,{enter:()=>T.current.beforeEnter(),leave:()=>T.current.beforeLeave(),idle:()=>{}}))),C=Os((e=>ps(e,{enter:()=>T.current.afterEnter(),leave:()=>T.current.afterLeave(),idle:()=>{}}))),O=Gs((()=>{x("hidden"),k(f)}),j);Us({container:f,classes:L,direction:R,onStart:Ps((e=>{O.onStart(f,e,P)})),onStop:Ps((e=>{O.onStop(f,e,C),"leave"===e&&!Hs(O)&&(x("hidden"),k(f))}))}),(0,n.useEffect)((()=>{!$||(y===_s.Hidden?E.current=null:E.current=w)}),[w,$,v]);let N=h,A={ref:_};return g&&w&&Fs.isServer&&(N={...N,className:us(h.className,...L.current.enter,...L.current.enterFrom)}),n.createElement(Ws.Provider,{value:O},n.createElement(Es,{value:ps(v,{visible:Ss.Open,hidden:Ss.Closed})},ys({ourProps:A,theirProps:N,defaultTag:"div",features:Js,visible:"visible"===v,name:"Transition.Child"})))})),Xs=bs((function(e,t){let{show:s,appear:r=!1,unmount:o,...i}=e,a=(0,n.useRef)(null),l=As(a,t);Cs();let d=ks();if(void 0===s&&null!==d&&(s=ps(d,{[Ss.Open]:!0,[Ss.Closed]:!1})),![!0,!1].includes(s))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=(0,n.useState)(s?"visible":"hidden"),p=Gs((()=>{u("hidden")})),[m,h]=(0,n.useState)(!0),f=(0,n.useRef)([s]);$s((()=>{!1!==m&&f.current[f.current.length-1]!==s&&(f.current.push(s),h(!1))}),[f,s]);let _=(0,n.useMemo)((()=>({show:s,appear:r,initial:m})),[s,r,m]);(0,n.useEffect)((()=>{if(s)u("visible");else if(Hs(p)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[s,p]);let y={unmount:o};return n.createElement(Ws.Provider,{value:p},n.createElement(zs.Provider,{value:_},ys({ourProps:{...y,as:n.Fragment,children:n.createElement(Qs,{ref:l,...y,...i})},theirProps:{},defaultTag:n.Fragment,features:Js,visible:"visible"===c,name:"Transition"})))})),er=bs((function(e,t){let s=null!==(0,n.useContext)(zs),r=null!==ks();return n.createElement(n.Fragment,null,!s&&r?n.createElement(Xs,{ref:t,...e}):n.createElement(Qs,{ref:t,...e}))})),tr=Object.assign(Xs,{Child:er,Root:Xs});const sr=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"}))})),rr=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"}))})),or=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"}))}));var ir=s(4184),ar=s.n(ir),nr=s(5890),lr=s.n(nr);const dr=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))})),cr=(e,t)=>{try{return(0,i.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},ur=window.ReactJSXRuntime,pr=({link:e})=>{const t=(0,i.useMemo)((()=>cr((0,Et.sprintf)(/* translators: %1$s expands to "Yoast SEO" academy, which is a clickable link. */ +(0,Et.__)("Want to learn SEO from Team Yoast? Check out our %1$s!","wordpress-seo"),"<link/>"),{link:(0,ur.jsx)("a",{href:e,target:"_blank",rel:"noopener",children:"Yoast SEO academy"})})),[]);return(0,ur.jsxs)(a.Paper,{as:"div",className:"yst-p-6 yst-space-y-3",children:[(0,ur.jsx)(a.Title,{as:"h2",size:"4",className:"yst-text-base yst-text-primary-500",children:(0,Et.__)("Learn SEO","wordpress-seo")}),(0,ur.jsxs)("p",{children:[t,(0,ur.jsx)("br",{}),(0,Et.__)("We have both free and premium online courses to learn everything you need to know about SEO.","wordpress-seo")]}),(0,ur.jsxs)(a.Link,{href:e,className:"yst-block yst-font-medium",target:"_blank",rel:"noopener",children:[(0,Et.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ +(0,Et.__)("Check out %1$s","wordpress-seo"),"Yoast SEO academy"),(0,ur.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ +(0,Et.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,ur.jsx)(dr,{className:"yst-w-3 yst-h-3 yst-mb-[1px] yst-icon-rtl yst-inline-block"})]})]})};pr.propTypes={link:lr().string.isRequired};const mr=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),hr=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));lr().string.isRequired,lr().string.isRequired,lr().shape({src:lr().string.isRequired,width:lr().string,height:lr().string}).isRequired,lr().shape({value:lr().bool.isRequired,status:lr().string.isRequired,set:lr().func.isRequired}).isRequired,lr().string,lr().string,lr().string;const fr=({handleRefreshClick:e,supportLink:t})=>(0,ur.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,ur.jsx)(a.Button,{onClick:e,children:(0,Et.__)("Refresh this page","wordpress-seo")}),(0,ur.jsx)(a.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Et.__)("Contact support","wordpress-seo")})]});fr.propTypes={handleRefreshClick:lr().func.isRequired,supportLink:lr().string.isRequired};const _r=({handleRefreshClick:e,supportLink:t})=>(0,ur.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,ur.jsx)(a.Button,{className:"yst-order-last",onClick:e,children:(0,Et.__)("Refresh this page","wordpress-seo")}),(0,ur.jsx)(a.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Et.__)("Contact support","wordpress-seo")})]});_r.propTypes={handleRefreshClick:lr().func.isRequired,supportLink:lr().string.isRequired};const yr=({error:e,children:t=null})=>(0,ur.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,ur.jsx)(a.Title,{children:(0,Et.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,ur.jsx)("p",{children:(0,Et.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,ur.jsx)(a.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,Et.__)("Undefined error message.","wordpress-seo")}),(0,ur.jsx)("p",{children:(0,Et.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});yr.propTypes={error:lr().object.isRequired,children:lr().node},yr.VerticalButtons=_r,yr.HorizontalButtons=fr;const wr={variant:{lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}},gr=({id:e,children:t,title:s,description:r=null,variant:o="2xl"})=>(0,ur.jsxs)("section",{id:e,className:wr.variant[o].grid,children:[(0,ur.jsx)("div",{className:wr.variant[o].col1,children:(0,ur.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,ur.jsx)(a.Title,{as:"h2",size:"4",children:s}),r&&(0,ur.jsx)("p",{className:"yst-mt-2",children:r})]})}),(0,ur.jsxs)("fieldset",{className:`yst-min-w-0 yst-mt-8 ${wr.variant[o].col2}`,children:[(0,ur.jsx)("legend",{className:"yst-sr-only",children:s}),(0,ur.jsx)("div",{className:"yst-space-y-8",children:t})]})]});gr.propTypes={id:lr().string,children:lr().node.isRequired,title:lr().node.isRequired,description:lr().node,variant:lr().oneOf(Object.keys(wr.variant))};const br=({to:e,idSuffix:t="",...s})=>{const r=(0,i.useMemo)((()=>(0,le.replace)((0,le.replace)(`link-${e}`,"/","-"),"--","-")),[e]);return(0,ur.jsx)(a.SidebarNavigation.SubmenuItem,{as:xt,pathProp:"to",id:`${r}${t}`,to:e,...s})};br.propTypes={to:lr().string.isRequired,idSuffix:lr().string};const vr=({href:e,children:t=null,...s})=>(0,ur.jsxs)(a.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,ur.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ +(0,Et.__)("(Opens in a new browser tab)","wordpress-seo")})]});vr.propTypes={href:lr().string.isRequired,children:lr().node};const xr=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),jr=[(0,Et.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,Et.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,Et.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,Et.__)("Optimize pages for multiple keywords with guidance","wordpress-seo")],Sr=[(0,Et.__)("Add product details to help your listings stand out","wordpress-seo"),(0,Et.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,Et.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,Et.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo")],kr=[(0,Et.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,Et.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,Et.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,Et.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,Et.__)("Internal links and redirect management, easy","wordpress-seo"),(0,Et.__)("Access to friendly help when you need it, day or night","wordpress-seo")],Er=(e=!1)=>e?jr:kr,Lr=(e=!1)=>{if(e)return Sr;const t=[...kr];return t[1]=(0,Et.__)("Boost visibility for your products, from 10 or 10,000+","wordpress-seo"),t};var Tr,Fr,$r;function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Rr.apply(this,arguments)}const Pr=e=>n.createElement("svg",Rr({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),Tr||(Tr=n.createElement("g",{clipPath:"url(#yoast-premium-logo-new_svg__a)"},n.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__b)",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),n.createElement("path",{fill:"#6C2548",d:"m56.016.125-36.06 63.75H64v-53.76c0-4.88-3.414-8.96-7.984-9.987",opacity:.35}),n.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),n.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),n.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),n.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),n.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),n.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),n.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),n.createElement("path",{fill:"#CD82AB",d:"M57.402 58.086H43.888v1.197h13.514v-1.197ZM53.75 53.366l-3.103-5.76v.004l-.004-.004-3.104 5.76-4.777-3.42 1.126 7.702h13.514l1.126-7.702-4.777 3.42Z"}))),Fr||(Fr=n.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),$r||($r=n.createElement("defs",null,n.createElement("linearGradient",{id:"yoast-premium-logo-new_svg__b",x1:-2.912,x2:68.509,y1:25.843,y2:38.438,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#5D237A"}),n.createElement("stop",{offset:.08,stopColor:"#702175"}),n.createElement("stop",{offset:.22,stopColor:"#872070"}),n.createElement("stop",{offset:.36,stopColor:"#981E6C"}),n.createElement("stop",{offset:.51,stopColor:"#A21E69"}),n.createElement("stop",{offset:.7,stopColor:"#A61E69"})),n.createElement("clipPath",{id:"yoast-premium-logo-new_svg__a"},n.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"})))));var Cr,Or,Nr;function Ar(){return Ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ar.apply(this,arguments)}const Mr=e=>n.createElement("svg",Ar({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),Cr||(Cr=n.createElement("g",{clipPath:"url(#woo-seo-logo-new_svg__a)"},n.createElement("path",{fill:"#0E1E65",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),n.createElement("path",{fill:"#0075B3",d:"M56.016.253 19.956 64H64V10.24c0-4.88-3.414-8.96-7.984-9.987Z"}),n.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),n.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),n.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),n.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),n.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),n.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),n.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),n.createElement("path",{fill:"#A1CCE3",d:"M58.102 46.806a1.26 1.26 0 0 0-1.219.938l-.157.582a40.97 40.97 0 0 0-10.857 1.261c-.013 0-.023.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.86c.083.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.011h10.592a.507.507 0 0 0 .506-.505c0-1.149-.775-2.15-1.888-2.442L57.862 48a.25.25 0 0 1 .243-.186h.932a.507.507 0 0 0 0-1.01h-.931l-.004.002ZM57.018 59.92a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Z"}))),Or||(Or=n.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),Nr||(Nr=n.createElement("defs",null,n.createElement("clipPath",{id:"woo-seo-logo-new_svg__a"},n.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"}))))),Ir=({link:e,linkProps:t,isPromotionActive:s,isWooCommerceActive:r})=>{const o=r?Lr:Er,n=(0,i.useMemo)((()=>r?(0,Et.__)("Grow your store's visibility!","wordpress-seo"):(0,Et.__)("Spend less time on SEO tasks!","wordpress-seo")),[r]),l=(0,i.useMemo)((()=>r?(0,Et.__)("Help ready-to-buy shoppers and search engines find your product.","wordpress-seo"):(0,Et.__)("Optimize your site faster, smarter, and with more confidence.","wordpress-seo")),[r]);let d=(0,Et.__)("Buy now","wordpress-seo");const c=(0,i.useMemo)((()=>r?(0,Et.__)("Less friction. Smarter optimization.","wordpress-seo"):(0,Et.__)("Less friction. Faster publishing.","wordpress-seo")),[r]),u=cr(r?(0,Et.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ (0,Et.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast WooCommerce SEO"):(0,Et.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ -(0,Et.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,mr.jsx)("span",{className:"yst-whitespace-nowrap"})}),c=s("black-friday-promotion");return c&&(l=(0,Et.__)("Buy now for 30% off","wordpress-seo")),(0,mr.jsxs)("div",{className:lr()("yst-p-6 yst-rounded-lg yst-text-white yst-shadow",r?"yst-bg-woo-dark":"yst-bg-primary-500"),children:[(0,mr.jsx)("figure",{className:"yst-logo-square yst-w-16 yst-h-16 yst-mx-auto yst-overflow-hidden yst-relative yst-z-10 yst-mt-[-2.6rem]",children:r?(0,mr.jsx)(Gr,{}):(0,mr.jsx)(Vr,{})}),c&&(0,mr.jsx)("div",{className:"sidebar__sale_banner_container",children:(0,mr.jsx)("div",{className:"sidebar__sale_banner",children:(0,mr.jsx)("span",{className:"banner_text",children:(0,Et.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})})}),(0,mr.jsx)(i.Title,{as:"h2",className:"yst-mt-6 yst-text-base yst-font-extrabold yst-text-white",children:d}),(0,mr.jsx)("p",{className:"yst-mt-2 yst-font-medium",children:n}),(0,mr.jsx)("ul",{className:"yst-list-outside yst-text-white yst-mt-2",children:o(!0).map(((e,t)=>(0,mr.jsxs)("li",{className:"yst-flex yst-items-center yst-gap-2",children:[(0,mr.jsx)(Yr,{className:"yst-w-4 yst-h-4 yst-text-green-400"}),(0,mr.jsx)("span",{children:e})]},`upsell-benefit-${t}`)))}),(0,mr.jsxs)(i.Button,{as:"a",variant:"upsell",href:e,target:"_blank",rel:"noopener",className:"yst-flex yst-justify-center yst-gap-2 yst-mt-4 focus:yst-ring-offset-primary-500",...t,children:[(0,mr.jsx)("span",{children:l}),(0,mr.jsx)(Er,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})]}),(0,mr.jsx)("p",{className:"yst-text-center yst-text-xs yst-mx-2 yst-font-normal yst-leading-5 yst-italic yst-mt-2",children:(0,Et.__)("30-day money back guarantee","wordpress-seo")}),(0,mr.jsx)("hr",{className:"yst-border-t yst-border-primary-300 yst-my-4"}),(0,mr.jsx)("a",{className:"yst-block yst-mt-4 yst-no-underline",href:"https://www.g2.com/products/yoast-yoast/reviews",target:"_blank",rel:"noopener noreferrer",children:(0,mr.jsxs)("span",{className:"yst-flex yst-gap-2 yst-mt-2 yst-items-center",children:[(0,mr.jsx)(jr,{className:"yst-w-5 yst-h-5"}),(0,mr.jsxs)("span",{className:"yst-flex yst-gap-1",children:[(0,mr.jsx)(Mr,{className:"yst-w-5 yst-h-5"}),(0,mr.jsx)(Mr,{className:"yst-w-5 yst-h-5"}),(0,mr.jsx)(Mr,{className:"yst-w-5 yst-h-5"}),(0,mr.jsx)(Mr,{className:"yst-w-5 yst-h-5"}),(0,mr.jsx)(Cr,{className:"yst-w-5 yst-h-5"})]}),(0,mr.jsx)("span",{className:"yst-text-sm yst-font-semibold yst-text-white",children:"4.6 / 5"})]})})]})};Zr.propTypes={link:cr().string.isRequired,linkProps:cr().object.isRequired,isPromotionActive:cr().func.isRequired};const Kr=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}));var Jr;function Qr(){return Qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Qr.apply(this,arguments)}const Xr=e=>n.createElement("svg",Qr({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),Jr||(Jr=n.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));var eo;function to(){return to=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},to.apply(this,arguments)}const so=e=>n.createElement("svg",to({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),eo||(eo=n.createElement("path",{fill:"#0075B3",d:"M12.613.445a1.26 1.26 0 0 0-1.22.937l-.156.583A40.97 40.97 0 0 0 .379 3.225c-.013 0-.022.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.861c.084.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.01h10.592a.507.507 0 0 0 .506-.505c0-1.149-.774-2.15-1.888-2.441l1.722-6.452a.25.25 0 0 1 .243-.185h.931a.507.507 0 0 0 0-1.011h-.931l-.003.003Zm-1.085 13.114a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Z"}))),ro=({premiumLink:e,premiumUpsellConfig:t={},isPromotionActive:s,isWooCommerceActive:r})=>{const o=s("black-friday-promotion"),a=r?$r:Tr,n=[...r?["Yoast SEO Premium"]:[],"Local SEO","News SEO","Video SEO",(0,Et.__)("Google Docs add-on (1 seat)","wordpress-seo")],l=r?lr()("yst-bg-woo-light","yst-text-[#006499]"):lr()("yst-bg-primary-500","yst-text-primary-500");let d=r?(0,Et.sprintf)(/* translators: %s expands to "Yoast WooCommerce SEO" */ +(0,Et.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,ur.jsx)("span",{className:"yst-whitespace-nowrap"})}),p=s("black-friday-promotion");return p&&(d=(0,Et.__)("Buy now for 30% off","wordpress-seo")),(0,ur.jsxs)("div",{className:ar()("yst-p-6 yst-rounded-lg yst-text-slate-600 yst-bg-white yst-shadow yst-border",r?"yst-border-woo-light yst-border-opacity-50":"yst-border-primary-300"),children:[(0,ur.jsx)("figure",{className:"yst-logo-square yst-w-16 yst-h-16 yst-mx-auto yst-overflow-hidden yst-relative yst-z-10 yst-mt-[-2.6rem]",children:r?(0,ur.jsx)(Mr,{}):(0,ur.jsx)(Pr,{})}),p&&(0,ur.jsx)("div",{className:"sidebar__sale_banner_container",children:(0,ur.jsx)("div",{className:"sidebar__sale_banner",children:(0,ur.jsx)("span",{className:"banner_text",children:(0,Et.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})})}),(0,ur.jsx)(a.Title,{as:"h2",className:ar()("yst-mt-6 yst-text-xl yst-font-semibold",r?"yst-text-woo-light":"yst-text-primary-500"),children:u}),(0,ur.jsx)("p",{className:"yst-mt-3 yst-font-medium yst-text-slate-800",children:n}),(0,ur.jsx)("p",{className:"yst-mt-1 yst-font-normal",children:l}),(0,ur.jsx)("ul",{className:"yst-list-outside yst-text-slate-600 yst-mt-4 yst-flex yst-flex-col yst-gap-2",children:o(!0).map(((e,t)=>(0,ur.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,ur.jsx)(xr,{className:"yst-mr-2 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),e]},`upsell-benefit-${t}`)))}),(0,ur.jsxs)(a.Button,{as:"a",variant:"upsell",href:e,target:"_blank",rel:"noopener",className:"yst-flex yst-justify-center yst-gap-2 yst-mt-4 focus:yst-ring-offset-primary-500",...t,children:[(0,ur.jsx)("span",{children:d}),(0,ur.jsx)(hr,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"})]}),(0,ur.jsx)("p",{className:"yst-text-center yst-text-xs yst-font-normal yst-leading-5 yst-text-slate-500 yst-italic yst-mt-3 yst-mb-2",children:c}),(0,ur.jsx)("hr",{className:"yst-border-t yst-border-slate-200 yst-my-4"}),(0,ur.jsxs)("ul",{className:"yst-text-center yst-text-xs yst-font-medium yst-text-slate-800 yst-list-none",children:[(0,ur.jsx)("li",{children:(0,Et.__)("30-day money back guarantee","wordpress-seo")}),(0,ur.jsx)("li",{children:(0,Et.__)("24/7 support","wordpress-seo")})]})]})};Ir.propTypes={link:lr().string.isRequired,linkProps:lr().object.isRequired,isPromotionActive:lr().func.isRequired};const Dr=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))}));var Br;function Ur(){return Ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ur.apply(this,arguments)}const Vr=e=>n.createElement("svg",Ur({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),Br||(Br=n.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));var zr;function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},qr.apply(this,arguments)}const Wr=e=>n.createElement("svg",qr({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),zr||(zr=n.createElement("path",{fill:"#0075B3",d:"M12.613.445a1.26 1.26 0 0 0-1.22.937l-.156.583A40.97 40.97 0 0 0 .379 3.225c-.013 0-.022.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.861c.084.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.01h10.592a.507.507 0 0 0 .506-.505c0-1.149-.774-2.15-1.888-2.441l1.722-6.452a.25.25 0 0 1 .243-.185h.931a.507.507 0 0 0 0-1.011h-.931l-.003.003Zm-1.085 13.114a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Z"}))),Hr=({premiumLink:e,premiumUpsellConfig:t={},isPromotionActive:s,isWooCommerceActive:r})=>{const o=s("black-friday-promotion"),i=r?Lr:Er,n=[...r?["Yoast SEO Premium"]:[],"Local SEO","News SEO","Video SEO",(0,Et.__)("Google Docs add-on (1 seat)","wordpress-seo")],l=r?ar()("yst-bg-woo-light","yst-text-[#006499]"):ar()("yst-bg-primary-500","yst-text-primary-500");let d=r?(0,Et.sprintf)(/* translators: %s expands to "Yoast WooCommerce SEO" */ (0,Et.__)("Explore %s now!","wordpress-seo"),"Yoast WooCommerce SEO"):(0,Et.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ -(0,Et.__)("Explore %s now!","wordpress-seo"),"Yoast SEO Premium");return o&&(d=(0,Et.__)("Get 30% off now!","wordpress-seo")),(0,mr.jsxs)(i.Paper,{as:"div",className:"yst-max-w-4xl",children:[o&&(0,mr.jsxs)("div",{className:"yst-rounded-t-lg yst-h-9 yst-flex yst-justify-between yst-items-center yst-bg-black yst-text-amber-300 yst-px-4 yst-text-lg yst-border-b yst-border-amber-300 yst-border-solid yst-font-medium",children:[(0,mr.jsx)("div",{children:(0,Et.__)("30% OFF","wordpress-seo")}),(0,mr.jsx)("div",{children:(0,Et.__)("BLACK FRIDAY","wordpress-seo")})]}),(0,mr.jsxs)("div",{className:"yst-p-6 yst-flex yst-flex-col",children:[(0,mr.jsx)("div",{className:"yst-flex yst-items-center",children:r?(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)(i.Title,{as:"h2",size:"4",className:"yst-text-xl "+(r?"yst-text-woo-light":"yst-text-primary-500 "),children:(0,Et.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ -(0,Et.__)("Upgrade to %s","wordpress-seo"),"Yoast WooCommerce SEO")}),(0,mr.jsx)(so,{className:"yst-ml-2 yst-w-4 yst-h-3"})]}):(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)(i.Title,{as:"h2",size:"4",className:"yst-text-xl "+(r?"yst-text-woo-light":"yst-text-primary-500 "),children:(0,Et.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ -(0,Et.__)("Upgrade to %s","wordpress-seo"),"Yoast SEO Premium")}),(0,mr.jsx)(Xr,{className:"yst-ml-2 yst-w-4 yst-h-3"})]})}),(0,mr.jsxs)("div",{className:"yst-font-medium yst-text-slate-800 yst-text-xs yst-leading-7 yst-mt-2",children:[(0,mr.jsx)("span",{className:"yst-mr-2",children:(0,Et.__)("Now includes:","wordpress-seo")}),(0,mr.jsx)("div",{className:"yst-inline-block",children:n.map(((e,t)=>(0,mr.jsx)(i.Badge,{size:"small",variant:"plain",className:lr()("yst-mr-2 yst-bg-opacity-15",l),children:e},`now-including-${t}`)))})]}),(0,mr.jsx)("ul",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 yst-gap-x-6 yst-gap-y-2 yst-list-none yst-list-outside yst-text-slate-600 yst-mt-4",children:a().map(((e,t)=>(0,mr.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,mr.jsx)(Kr,{className:"yst-mr-2 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),e]},`upsell-benefit-${t}`)))}),(0,mr.jsxs)(i.Button,{as:"a",variant:"upsell",size:"extra-large",href:e,className:"yst-gap-2 yst-mt-6 sm:yst-max-w-sm",target:"_blank",rel:"noopener",...t,children:[d,(0,mr.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,Et.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,mr.jsx)(Er,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})]})]})]})};ro.propTypes={premiumLink:cr().string.isRequired,premiumUpsellConfig:cr().object,isPromotionActive:cr().func.isRequired,isWooCommerceActive:cr().bool.isRequired};const oo=({premiumLink:e,premiumUpsellConfig:t,academyLink:s,isPromotionActive:r,isWooCommerceActive:o})=>(0,mr.jsxs)("div",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 xl:yst-grid-cols-1 yst-gap-4",children:[(0,mr.jsx)(Zr,{link:e,linkProps:t,isPromotionActive:r,isWooCommerceActive:o}),(0,mr.jsx)(hr,{link:s})]});oo.propTypes={premiumLink:cr().string.isRequired,premiumUpsellConfig:cr().object.isRequired,academyLink:cr().string.isRequired,isPromotionActive:cr().func.isRequired,isWooCommerceActive:cr().bool.isRequired};const ao=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),io=({isOpen:e,onClose:t=le.noop,onDiscard:s=le.noop,title:r,description:o,dismissLabel:a,discardLabel:n})=>{const l=(0,i.useSvgAria)();return(0,mr.jsx)(i.Modal,{isOpen:e,onClose:t,children:(0,mr.jsxs)(i.Modal.Panel,{closeButtonScreenReaderText:(0,Et.__)("Close","wordpress-seo"),children:[(0,mr.jsxs)("div",{className:"sm:yst-flex sm:yst-items-start",children:[(0,mr.jsx)("div",{className:"yst-mx-auto yst-flex-shrink-0 yst-flex yst-items-center yst-justify-center yst-h-12 yst-w-12 yst-rounded-full yst-bg-red-100 sm:yst-mx-0 sm:yst-h-10 sm:yst-w-10",children:(0,mr.jsx)(ao,{className:"yst-h-6 yst-w-6 yst-text-red-600",...l})}),(0,mr.jsxs)("div",{className:"yst-mt-3 yst-text-center sm:yst-mt-0 sm:yst-ms-4 sm:yst-text-start",children:[(0,mr.jsx)(i.Modal.Title,{className:"yst-text-lg yst-leading-6 yst-font-medium yst-text-slate-900 yst-mb-3",children:r}),(0,mr.jsx)(i.Modal.Description,{className:"yst-text-sm yst-text-slate-500",children:o})]})]}),(0,mr.jsxs)("div",{className:"yst-flex yst-flex-col sm:yst-flex-row-reverse yst-gap-3 yst-mt-6",children:[(0,mr.jsx)(i.Button,{type:"button",variant:"error",onClick:s,className:"yst-block",children:n}),(0,mr.jsx)(i.Button,{type:"button",variant:"secondary",onClick:t,className:"yst-block",children:a})]})]})})};io.propTypes={isOpen:cr().bool.isRequired,onClose:cr().func,onDiscard:cr().func,title:cr().string.isRequired,description:cr().string.isRequired,dismissLabel:cr().string.isRequired,discardLabel:cr().string.isRequired};const no=window.yoast.reactHelmet;var lo,co;function uo(){return uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},uo.apply(this,arguments)}cr().string.isRequired,cr().shape({src:cr().string.isRequired,width:cr().string,height:cr().string}).isRequired,cr().shape({value:cr().bool.isRequired,status:cr().string.isRequired,set:cr().func.isRequired}).isRequired,cr().bool;const po=e=>n.createElement("svg",uo({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"yoast-logo_svg__w-40",viewBox:"0 0 842 224"},e),lo||(lo=n.createElement("path",{fill:"#a61e69",d:"M166.55 54.09c-38.69 0-54.17 25.97-54.17 54.88s15.25 56.02 54.17 56.02 54.07-27.19 54-54.26c-.09-32.97-16.77-56.65-54-56.65Zm-23.44 56.52c.94-38.69 30.66-38.65 40.59-24.79 9.05 12.63 10.9 55.81-17.14 55.5-12.92-.14-23.06-8.87-23.44-30.71Zm337.25 27.55V82.11h20.04V57.78h-20.04V28.39h-30.95v29.39h-15.7v24.33h15.7v52.87c0 30.05 20.95 47.91 43.06 51.61l9.24-24.88c-12.89-1.63-21.23-11.27-21.35-23.54Zm-156.15-8.87V87.16c0-1.54-.1-2.98-.25-4.39-2.68-34.04-51.02-33.97-88.46-20.9l10.82 21.78c24.38-11.58 38.97-8.59 44.07-2.89.13.15.26.29.38.45.01.02.03.04.04.06 2.6 3.51 1.98 9.05 1.98 13.41-31.86 0-65.77 4.23-65.77 39.17 0 26.56 33.28 43.65 68.06 18.33l5.16 12.45h29.81c-2.66-14.62-5.85-27.14-5.85-35.34Zm-31.18-.23c-24.51 27.43-46.96 1.61-23.97-9.65 6.77-2.31 15.95-2.41 23.97-2.41v12.06Zm78.75-44.17c0-10.38 16.61-15.23 42.82-3.27l9.06-22.01c-35.27-10.66-83.44-11.62-83.75 25.28-.15 17.68 11.19 27.19 27.52 33.26 11.31 4.2 27.64 6.38 27.59 15.39-.06 11.77-25.38 13.57-48.42-2.26l-9.31 23.87c31.43 15.64 89.87 16.08 89.56-23.12-.31-38.76-55.08-32.11-55.08-47.14ZM99.3 1 54.44 125.61 32.95 58.32H1l35.78 91.89a33.49 33.49 0 0 1 0 24.33c-4 10.25-10.65 19.03-26.87 21.21v27.24c31.58 0 48.65-19.41 63.88-61.96L133.48 1H99.3ZM598.64 139.05c0 8.17-2.96 14.58-8.87 19.23-5.91 4.65-14.07 6.98-24.47 6.98s-18.92-1.61-25.54-4.84v-14.2c4.19 1.97 8.65 3.52 13.37 4.65 4.72 1.13 9.11 1.7 13.18 1.7 5.95 0 10.35-1.13 13.18-3.39 2.83-2.26 4.25-5.3 4.25-9.11 0-3.43-1.3-6.35-3.9-8.74-2.6-2.39-7.97-5.22-16.1-8.48-8.39-3.39-14.3-7.27-17.74-11.63-3.44-4.36-5.16-9.59-5.16-15.71 0-7.67 2.72-13.7 8.18-18.1 5.45-4.4 12.77-6.6 21.95-6.6s17.57 1.93 26.29 5.78l-4.78 12.26c-8.18-3.43-15.47-5.15-21.89-5.15-4.87 0-8.55 1.06-11.07 3.17-2.52 2.12-3.77 4.91-3.77 8.39 0 2.39.5 4.43 1.51 6.13s2.66 3.3 4.97 4.81c2.3 1.51 6.46 3.5 12.45 5.97 6.75 2.81 11.7 5.43 14.85 7.86 3.15 2.43 5.45 5.18 6.92 8.23 1.46 3.06 2.2 6.66 2.2 10.81Zm68.53 24.96h-52.02V72.12h52.02v12.7h-36.99v25.01h34.66v12.57h-34.66v28.85h36.99v12.76Zm100.24-46.07c0 14.96-3.74 26.59-11.23 34.88-7.49 8.3-18.08 12.44-31.8 12.44s-24.54-4.12-31.99-12.35c-7.44-8.23-11.17-19.93-11.17-35.1s3.74-26.82 11.23-34.95c7.49-8.13 18.17-12.19 32.05-12.19s24.24 4.13 31.7 12.38c7.47 8.26 11.2 19.88 11.2 34.88Zm-70.2 0c0 11.31 2.29 19.89 6.86 25.74 4.57 5.85 11.35 8.77 20.32 8.77s15.67-2.89 20.22-8.67c4.55-5.78 6.82-14.39 6.82-25.83s-2.25-19.82-6.76-25.64-11.23-8.74-20.16-8.74-15.82 2.91-20.41 8.74c-4.59 5.82-6.89 14.37-6.89 25.64Z"})),co||(co=n.createElement("path",{fill:"#77b227",d:"m790.45 165.35 36.05-94.96H840l-36.02 94.96h-13.53z"})));n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),cr().bool.isRequired,cr().func.isRequired,cr().func,cr().string,cr().func.isRequired,cr().string.isRequired,cr().string.isRequired,cr().string.isRequired,cr().string.isRequired;const mo=({name:e})=>{const t=bo("selectPreference",[],"isNetworkAdmin"),s=bo("selectPreference",[],"isMainSite"),r=(0,a.useMemo)((()=>"wpseo.tracking"===e&&!t&&!s),[e,t,s]),o=(0,a.useMemo)((()=>(0,le.get)(window,`wpseoScriptData.disabledSettings.${e}`,"")),[]),i=(0,a.useMemo)((()=>{if(r)return(0,Et.__)("Unavailable for sub-sites","wordpress-seo");switch(o){case"multisite":return(0,Et.__)("Unavailable for multisites","wordpress-seo");case"network":return(0,Et.__)("Network disabled","wordpress-seo");case"language":return(0,Et.__)("Only available for English sites","wordpress-seo");default:return""}}),[o,r]);return{isDisabled:(0,a.useMemo)((()=>!(0,le.isEmpty)(i)),[i]),message:i,disabledSetting:o}},ho="@yoast/settings",fo="filesystem_permissions",_o="not_managed_by_yoast_seo",yo=()=>(0,t.useDispatch)(ho);var wo=s(1206),go=s.n(wo);const bo=(e,s=[],...r)=>(0,t.useSelect)((t=>{var s,o;return null===(s=(o=t(ho))[e])||void 0===s?void 0:s.call(o,...r)}),s),vo=({id:e,children:t,title:s,description:r=null})=>{const o=bo("selectPreference",[],"isPremium");return(0,mr.jsx)(br,{id:e,title:s,description:r,variant:o?"xl":"2xl",children:t})};vo.propTypes={id:cr().string,children:cr().node.isRequired,title:cr().node.isRequired,description:cr().node};const xo=vo;var jo=s(8133);const So=({children:e})=>{const{isSubmitting:t,status:s,dirty:r,resetForm:o,initialValues:n}=q(),l=bo("selectIsMediaLoading"),d=(0,a.useMemo)((()=>(0,le.includes)((0,le.values)(s),!0)),[s]),[c,,,u,p]=(0,i.useToggleState)(!1),m=(0,a.useCallback)((()=>{p(),o({values:n})}),[o,n,p]);return(0,mr.jsxs)(se,{className:"yst-flex yst-flex-col yst-h-full",children:[(0,mr.jsx)("div",{className:"yst-flex-grow yst-p-8",children:e}),(0,mr.jsx)("footer",{className:"yst-sticky yst-bottom-0 yst-z-10",children:(0,mr.jsx)(jo.Z,{easing:"ease-in-out",duration:300,height:r?"auto":0,animateOpacity:!0,children:(0,mr.jsx)("div",{className:"yst-bg-slate-50 yst-border-slate-200 yst-border-t yst-rounded-b-lg",children:(0,mr.jsxs)("div",{className:"yst-flex yst-align-middle yst-space-x-3 rtl:yst-space-x-reverse yst-p-8",children:[(0,mr.jsx)(i.Button,{id:"button-submit-settings",type:"submit",isLoading:t,disabled:t||l||d,children:(0,Et.__)("Save changes","wordpress-seo")}),(0,mr.jsx)(i.Button,{id:"button-undo-settings",type:"button",variant:"secondary",disabled:!r,onClick:u,children:(0,Et.__)("Discard changes","wordpress-seo")}),(0,mr.jsx)(io,{isOpen:c,onClose:p,title:(0,Et.__)("Discard all changes","wordpress-seo"),description:(0,Et.__)("You are about to discard all unsaved changes. All of your settings will be reset to the point where you last saved. Are you sure you want to do this?","wordpress-seo"),onDiscard:m,dismissLabel:(0,Et.__)("No, continue editing","wordpress-seo"),discardLabel:(0,Et.__)("Yes, discard changes","wordpress-seo")})]})})})})]})};So.propTypes={children:cr().node.isRequired};const ko=So,Eo=({name:e,checked:t,...s})=>{const[r,,{setTouched:o,setValue:n}]=ee({name:e,checked:t,...s,type:"checkbox"}),l=(0,a.useCallback)((e=>{o(!0,!1),n(!e)}),[s.name]);return(0,mr.jsx)(i.ToggleField,{...r,checked:(0,le.isUndefined)(s.checked)?!r.checked:!s.checked,onChange:l,...s})};Eo.propTypes={name:cr().string.isRequired,checked:cr().bool};const Lo=Eo,Fo=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"}))})),To={variant:{square:"yst-h-48 yst-w-48",landscape:"yst-h-48 yst-w-96",portrait:"yst-h-96 yst-w-48"}},$o=({label:e="",description:t="",icon:s=Fo,disabled:r=!1,isDummy:o=!1,libraryType:n="image",variant:l="landscape",id:d,mediaUrlName:c,mediaIdName:u,fallbackMediaId:p="0",previewLabel:m="",selectLabel:h=(0,Et.__)("Select image","wordpress-seo"),replaceLabel:f=(0,Et.__)("Replace image","wordpress-seo"),removeLabel:_=(0,Et.__)("Remove image","wordpress-seo"),className:y=""})=>{const{values:w,setFieldValue:g,setFieldTouched:b,errors:v}=q(),[x,j]=(0,a.useState)(null),S=(0,a.useMemo)((()=>(0,le.get)(window,"wp.media",null)),[]),k=(0,a.useMemo)((()=>(0,le.get)(w,u,"")),[w,u]),E=bo("selectMediaById",[k],k),L=bo("selectIsMediaError"),F=bo("selectMediaById",[p],p),{fetchMedia:T,addOneMedia:$}=yo(),R=(0,a.useMemo)((()=>(0,le.get)(v,u,"")),[v,u]),P=(0,a.useMemo)((()=>r||o),[o,r]),{ids:N,describedBy:O}=(0,i.useDescribedBy)(`field-${d}-id`,{description:t,error:R}),C=(0,a.useMemo)((()=>k>0?E:p>0?F:null),[k,E,p,F]),A=(0,a.useMemo)((()=>(0,le.join)((0,le.map)((null==E?void 0:E.sizes)||(null==F?void 0:F.sizes),(e=>`${null==e?void 0:e.url} ${null==e?void 0:e.width}w`)),", ")),[E,F]),M=(0,a.useCallback)((()=>{o||null==x||x.open()}),[o,x]),I=(0,a.useCallback)((()=>{o||(b(c,!0,!1),g(c,"",!1),b(u,!0,!1),g(u,""))}),[o,b,g,c,u]),D=(0,a.useCallback)((()=>{var e,t,s;if(o)return;const r=(null===(e=x.state())||void 0===e||null===(t=e.get("selection"))||void 0===t||null===(s=t.first())||void 0===s?void 0:s.toJSON())||{};b(c,!0,!1),g(c,r.url,!1),b(u,!0,!1),g(u,r.id),$(r)}),[o,x,b,g,c,u]);return(0,a.useEffect)((()=>{S&&j(S({title:e,multiple:!1,library:{type:n}}))}),[S,e,n,j]),(0,a.useEffect)((()=>(null==x||x.on("select",D),()=>null==x?void 0:x.off("select",D))),[x,D]),(0,a.useEffect)((()=>{k&&!E&&T([k]),p&&!F&&T([p])}),[]),(0,mr.jsxs)("fieldset",{id:d,className:"yst-min-w-0 yst-w-96 yst-max-w-full",children:[(0,mr.jsx)(te,{type:"hidden",name:u,id:`input-${d}-id`,"aria-describedby":O,disabled:P}),(0,mr.jsx)(te,{type:"hidden",name:c,id:`input-${d}-url`,"aria-describedby":O,disabled:P}),e&&(0,mr.jsx)(i.Label,{as:"legend",className:lr()("yst-mb-2",P&&"yst-opacity-50 yst-cursor-not-allowed"),children:e}),(0,mr.jsx)("button",{type:"button",id:`button-${d}-preview`,onClick:M,className:lr()("yst-overflow-hidden yst-flex yst-justify-center yst-items-center yst-max-w-full yst-rounded-md yst-mb-4 yst-border-slate-300 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-offset-2 focus:yst-ring-primary-500",!o&&C?"yst-bg-slate-50 yst-border":"yst-border-2 yst-border-dashed",P&&"yst-opacity-50 yst-cursor-not-allowed",To.variant[l],y),disabled:P,children:!o&&C?(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("span",{className:"yst-sr-only",children:f}),(0,mr.jsx)("img",{src:null==C?void 0:C.url,alt:(null==C?void 0:C.alt)||"",srcSet:A,sizes:"landscape"===l?"24rem":"12rem",width:"landscape"===l?"24rem":"12rem",loading:"lazy",decoding:"async",className:"yst-object-cover yst-object-center yst-min-h-full yst-min-w-full"})]}):(0,mr.jsxs)("div",{className:"yst-w-48 yst-max-w-full",children:[(0,mr.jsx)("span",{className:"yst-sr-only",children:h}),(0,mr.jsx)(s,{className:"yst-mx-auto yst-h-12 yst-w-12 yst-text-slate-400 yst-stroke-1"}),m&&(0,mr.jsx)("p",{className:"yst-text-xs yst-text-slate-600 yst-text-center yst-mt-1 yst-px-8",children:m})]})}),(0,mr.jsxs)("div",{className:"yst-flex yst-gap-1",children:[!o&&k>0?(0,mr.jsx)(i.Button,{id:`button-${d}-replace`,variant:"secondary",onClick:M,disabled:P,children:f}):(0,mr.jsx)(i.Button,{id:`button-${d}-select`,variant:"secondary",onClick:M,disabled:P,children:h}),!o&&k>0&&(0,mr.jsx)(i.Link,{id:`button-${d}-remove`,as:"button",type:"button",variant:"error",onClick:I,className:lr()("yst-px-3 yst-py-2 yst-rounded-md",P&&"yst-opacity-50 yst-cursor-not-allowed"),disabled:P,children:_})]}),R&&(0,mr.jsx)("p",{id:N.error,className:"yst-mt-2 yst-text-sm yst-text-red-600",children:R}),L&&(0,mr.jsx)("p",{className:"yst-mt-2 yst-text-sm yst-text-red-600",children:(0,Et.__)("Failed to retrieve media.","wordpress-seo")}),t&&(0,mr.jsx)("p",{id:N.description,className:lr()("yst-mt-2",P&&"yst-opacity-50 yst-cursor-not-allowed"),children:t})]})};$o.propTypes={label:cr().string,description:cr().node,icon:cr().elementType,disabled:cr().bool,isDummy:cr().bool,libraryType:cr().string,variant:cr().oneOf((0,le.keys)(To.variant)),id:cr().string.isRequired,mediaUrlName:cr().string.isRequired,mediaIdName:cr().string.isRequired,fallbackMediaId:cr().string,previewLabel:cr().node,selectLabel:cr().string,replaceLabel:cr().string,removeLabel:cr().string,className:cr().string};const Ro=$o,Po=window.yoast.replacementVariableEditor,No=({className:e="",disabled:t=!1,...s})=>{const[r,o]=(0,a.useState)(null),[i,,{setTouched:n,setValue:l}]=ee(s),d=(0,a.useCallback)((e=>{n(!0,!1),l(e)}),[s.name]),c=(0,a.useCallback)((()=>null==r?void 0:r.focus()),[r]),u=(0,a.useMemo)((()=>{var e;return(null!==(e=i.value)&&void 0!==e&&e.match(/%%\w+%%$/)?`${i.value} `:i.value)||""}),[i.value]);return(0,mr.jsx)("div",{className:e,children:(0,mr.jsx)(Po.ReplacementVariableEditor,{...i,content:u,onChange:d,editorRef:o,onFocus:c,isDisabled:t,...s})})};No.propTypes={name:cr().string.isRequired,disabled:cr().bool,className:cr().string};const Oo=No,Co=e=>{const[{value:t,...s},,{setTouched:r,setValue:o}]=ee(e),n=(0,a.useMemo)((()=>(0,le.reduce)((0,le.isString)(t)&&(null==t?void 0:t.split(","))||[],((e,t)=>{const s=(0,le.trim)(t);return s?[...e,s]:e}),[])),[t]),l=(0,a.useCallback)((e=>{r(!0,!1),o([...n,e].join(","))}),[r,o,n]),d=(0,a.useCallback)((e=>{r(!0,!1),o([...n.slice(0,e),...n.slice(e+1)].join(","))}),[r,o,n]),c=(0,a.useCallback)((e=>{r(!0,!1),o(e.join(","))}),[r,o]);return(0,mr.jsx)(i.TagField,{...s,tags:n,onAddTag:l,onRemoveTag:d,onSetTags:c,...e})};Co.propTypes={name:cr().string.isRequired};const Ao=Co,Mo=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z"}))}));let Io;const Do=({children:e,className:t=""})=>(0,mr.jsx)("div",{className:lr()("yst-flex yst-items-center yst-justify-center yst-gap-2 yst-py-2 yst-px-3",t),children:e});Do.propTypes={children:cr().node.isRequired,className:cr().string};const Bo=({name:e,id:t,className:s="",...r})=>{const o=bo("selectPreference",[],"siteRepresentsPerson",{}),n=bo("selectUsersWith",[o],o),{addManyUsers:l}=yo(),[{value:d,...c},,{setTouched:u,setValue:p}]=ee({type:"select",name:e,id:t,...r}),[m,h]=(0,a.useState)(es),[f,_]=(0,a.useState)([]),y=bo("selectPreference",[],"canCreateUsers",!1),w=bo("selectPreference",[],"createUserUrl",""),g=(0,a.useMemo)((()=>{const e=(0,le.values)(n);return(0,le.find)(e,["id",d])}),[d,n]),b=(0,a.useCallback)((0,le.debounce)((async e=>{try{var t,s;h(ts),Io&&(null===(s=Io)||void 0===s||s.abort()),Io=new AbortController;const r=await Pt()({path:`/wp/v2/users?${(0,Ct.buildQueryString)({search:e,per_page:20})}`,signal:null===(t=Io)||void 0===t?void 0:t.signal});_((0,le.map)(r,"id")),l(r),h(ss)}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return;_([]),h(rs),console.error(e.message)}}),200),[_,l,h]),v=(0,a.useCallback)((e=>{u(!0,!1),p(e)}),[p]),x=(0,a.useCallback)((e=>b(e.target.value)),[b]);return(0,a.useEffect)((()=>{b("")}),[]),(0,mr.jsx)(i.AutocompleteField,{...c,name:e,id:t,value:g?d:0,onChange:v,placeholder:(0,Et.__)("Select a user…","wordpress-seo"),selectedLabel:null==g?void 0:g.name,onQueryChange:x,className:s,...r,children:(0,mr.jsxs)(mr.Fragment,{children:[(m===es||m===ss)&&(0,mr.jsxs)(mr.Fragment,{children:[(0,le.isEmpty)(f)?(0,mr.jsx)(Do,{children:(0,Et.__)("No users found.","wordpress-seo")}):(0,le.map)(f,(e=>{const t=null==n?void 0:n[e];return t?(0,mr.jsx)(i.AutocompleteField.Option,{value:null==t?void 0:t.id,children:null==t?void 0:t.name},null==t?void 0:t.id):null})),y&&(0,mr.jsx)("li",{className:"yst-sticky yst-inset-x-0 yst-bottom-0 yst-group",children:(0,mr.jsxs)("a",{id:`link-create_user-${t}`,href:w,target:"_blank",rel:"noreferrer",className:"yst-relative yst-w-full yst-flex yst-items-center yst-py-4 yst-px-3 yst-gap-2 yst-no-underline yst-text-sm yst-text-start yst-bg-white yst-text-slate-700 group-hover:yst-text-white group-hover:yst-bg-primary-500 yst-border-t yst-border-slate-200",children:[(0,mr.jsx)(Mo,{className:"yst-w-5 yst-h-5 yst-text-slate-400 group-hover:yst-text-white"}),(0,mr.jsx)("span",{children:(0,Et.__)("Add new user…","wordpress-seo")})]})})]}),m===ts&&(0,mr.jsxs)(Do,{children:[(0,mr.jsx)(i.Spinner,{variant:"primary"}),(0,Et.__)("Searching users…","wordpress-seo")]}),m===rs&&(0,mr.jsx)(Do,{className:"yst-text-red-600",children:(0,Et.__)("Failed to retrieve users.","wordpress-seo")})]})})};Bo.propTypes={name:cr().string.isRequired,id:cr().string.isRequired,className:cr().string};const Uo=Bo,Vo=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))})),zo=({children:e,className:t=""})=>(0,mr.jsx)("div",{className:lr()("yst-flex yst-items-center yst-justify-center yst-gap-2 yst-py-2 yst-px-3",t),children:e});zo.propTypes={children:cr().node.isRequired,className:cr().string};const qo=({name:e,id:t,...s})=>{const r=bo("selectPreference",[],"siteBasicsPolicies",{}),o=bo("selectPagesWith",[r],(0,le.values)(r)),{fetchPages:n}=yo(),[{value:l,...d},,{setTouched:c,setValue:u}]=ee({type:"select",name:e,id:t,...s}),[p,m]=(0,a.useState)(es),[h,f]=(0,a.useState)([]),_=bo("selectPreference",[],"canCreatePages",!1),y=bo("selectPreference",[],"createPageUrl",""),w=(0,a.useMemo)((()=>{const e=(0,le.values)(o);return(0,le.find)(e,["id",l])}),[l,o]),g=(0,a.useCallback)((0,le.debounce)((async e=>{try{m(ts);const t=await n({search:e});f((0,le.map)(t.payload,"id")),m(ss)}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return;f([]),m(rs)}}),200),[f,m,n]),b=(0,a.useCallback)((e=>{c(!0,!1),u(e)}),[u,c]),v=(0,a.useCallback)((e=>g(e.target.value)),[g]),x=(0,a.useMemo)((()=>(0,le.isEmpty)(h)?(0,le.map)(o,"id"):h),[h,o]),j=(0,a.useMemo)((()=>p===ss&&(0,le.isEmpty)(h)),[h,p]);return(0,mr.jsx)(i.AutocompleteField,{...d,name:e,id:t,value:w?l:0,onChange:b,placeholder:(0,Et.__)("None","wordpress-seo"),selectedLabel:null==w?void 0:w.name,onQueryChange:v,nullable:!0 -/* translators: Hidden accessibility text. */,clearButtonScreenReaderText:(0,Et.__)("Clear selection","wordpress-seo"),...s,children:(0,mr.jsxs)(mr.Fragment,{children:[(p===es||p===ss)&&(0,mr.jsxs)(mr.Fragment,{children:[j?(0,mr.jsx)(zo,{children:(0,Et.__)("No pages found.","wordpress-seo")}):(0,le.map)(x,(e=>{const t=null==o?void 0:o[e];return t?(0,mr.jsx)(i.AutocompleteField.Option,{value:null==t?void 0:t.id,children:null==t?void 0:t.name},null==t?void 0:t.id):null})),_&&(0,mr.jsx)("li",{className:"yst-sticky yst-inset-x-0 yst-bottom-0 yst-group",children:(0,mr.jsxs)("a",{id:`link-create_page-${t}`,href:y,target:"_blank",rel:"noreferrer",className:"yst-relative yst-w-full yst-flex yst-items-center yst-py-4 yst-px-3 yst-gap-2 yst-no-underline yst-text-sm yst-text-left yst-bg-white yst-text-slate-700 group-hover:yst-text-white group-hover:yst-bg-primary-500 yst-border-t yst-border-slate-200",children:[(0,mr.jsx)(Vo,{className:"yst-w-5 yst-h-5 yst-text-slate-400 group-hover:yst-text-white"}),(0,mr.jsx)("span",{children:(0,Et.__)("Add new page…","wordpress-seo")})]})})]}),p===ts&&(0,mr.jsxs)(zo,{children:[(0,mr.jsx)(i.Spinner,{variant:"primary"}),(0,Et.__)("Searching pages…","wordpress-seo")]}),p===rs&&(0,mr.jsx)(zo,{className:"yst-text-red-600",children:(0,Et.__)("Failed to retrieve pages.","wordpress-seo")})]})})};qo.propTypes={name:cr().string.isRequired,id:cr().string.isRequired};const Wo=qo,Ho=({children:e,className:t=""})=>(0,mr.jsx)("div",{className:lr()("yst-flex yst-items-center yst-justify-center yst-gap-2 yst-py-2 yst-px-3",t),children:e});Ho.propTypes={children:cr().node.isRequired,className:cr().string};const Go=({name:e,id:t,disabled:s,selectedIds:r=[],...o})=>{const{fetchIndexablePages:n,removeIndexablePagesScope:l}=yo(),[{value:d,...c},,{setTouched:u,setValue:p}]=ee({type:"select",name:e,id:t,...o}),{ids:m,query:h,status:f}=bo("selectIndexablePagesScope",[d],t),{status:_}=bo("selectIndexablePagesScope",[d]),y=bo("selectIndexablePagesById",[m],m),w=bo("selectIndexablePageById",[d],d),g=(0,a.useMemo)((()=>y.filter((e=>e.id===d||!r.includes(e.id))).slice(0,10)),[y,r,d]),b=(0,a.useCallback)((e=>{u(!0,!1),p(e)}),[p,u]),v=(0,a.useCallback)((()=>{n(t,{search:""}),b(0)}),[t,n,b]),x=(0,a.useCallback)((0,le.debounce)((e=>{var s,r;const o=(null===(s=e.target)||void 0===s||null===(r=s.value)||void 0===r?void 0:r.trim())||"";n(t,{search:o})}),200),[t,n]);(0,a.useEffect)((()=>()=>l(t)),[t,l]);const j=(null==w?void 0:w.name)||(null==h?void 0:h.search)||"",S=f===rs,k=f===ts||_===ts&&!S;return(0,mr.jsx)(i.AutocompleteField,{...c,name:e,id:t,value:w?d:0,onChange:b,placeholder:(0,Et.__)("Search or select a page…","wordpress-seo"),selectedLabel:j,onQueryChange:x,onClear:v,nullable:!0,disabled:s -/* translators: Hidden accessibility text. */,clearButtonScreenReaderText:(0,Et.__)("Clear selection","wordpress-seo"),...o,children:(0,mr.jsxs)(mr.Fragment,{children:[!S&&!k&&(0,mr.jsx)(mr.Fragment,{children:0===g.length?(0,mr.jsx)(Ho,{children:(0,Et.__)("No pages found.","wordpress-seo")}):g.map((e=>(0,mr.jsx)(i.AutocompleteField.Option,{value:e.id,children:e.name},e.id)))}),k&&(0,mr.jsxs)(Ho,{children:[(0,mr.jsx)(i.Spinner,{variant:"primary"}),(0,Et.__)("Searching pages…","wordpress-seo")]}),S&&(0,mr.jsx)(Ho,{className:"yst-text-red-600",children:(0,Et.__)("Failed to retrieve pages.","wordpress-seo")})]})})};Go.propTypes={name:cr().string.isRequired,id:cr().string.isRequired};const Yo=Go,Zo=({name:e,id:t,options:s=[],...r})=>{const[o,,{setTouched:n,setValue:l}]=ee({type:"select",name:e,id:t,...r}),[d,c]=(0,a.useState)(""),u=e=>{var t;e&&null!==(t=s.find((t=>t.value===e)))&&void 0!==t&&t.label?c(s.find((t=>t.value===e)).label):c(e)},p=(0,a.useCallback)((e=>{l(e),u(e)}),[l,n]),m=(0,a.useCallback)((e=>{l(e.target.value),u(e.target.value)}),[l]);return(0,a.useEffect)((()=>{u(o.value)}),[]),(0,mr.jsx)(i.AutocompleteField,{...o,name:e,id:t,selectedLabel:d,onChange:p,onQueryChange:m,...r,children:s&&s.map((e=>(0,mr.jsx)(i.AutocompleteField.Option,{value:e.value,children:e.label},e.value)))})};Zo.propTypes={name:cr().string.isRequired,id:cr().string.isRequired,options:cr().array};const Ko=Zo,Jo=(e,t="")=>(0,le.reduce)(e,((e,s,r)=>{const o=(0,le.join)((0,le.filter)([t,r],(0,le.flowRight)(Boolean,le.toString)),".");return(0,le.isObject)(s)||(0,le.isArray)(s)?{...e,...Jo(s,o)}:{...e,[o]:s}}),{}),Qo=({id:e,...t})=>{const{errors:s}=q(),r=bo("selectSearchIndex"),o=(0,a.useMemo)((()=>Jo(s)),[s]);return(0,mr.jsx)(i.Notifications.Notification,{id:e,...t,children:(0,mr.jsx)("ul",{className:"yst-list-disc yst-mt-1 yst-ms-4 yst-space-y-2",children:(0,le.map)(o,((e,t)=>e&&(0,mr.jsxs)("li",{children:[(0,mr.jsx)(xt,{to:`${(0,le.get)(r,`${t}.route`,"404")}#${(0,le.get)(r,`${t}.fieldId`,"")}`,children:`${(0,le.get)(r,`${t}.routeLabel`,"")} - ${(0,le.get)(r,`${t}.fieldLabel`,"")}`}),": ",e]},t)))})},e)};Qo.propTypes={id:cr().string.isRequired};const Xo=()=>{(()=>{const{isValid:e,errors:t,isSubmitting:s}=q(),{addNotification:r,removeNotification:o}=yo(),i=bo("selectNotification",[],"validation-errors");(0,a.useEffect)((()=>{e&&i&&o("validation-errors")}),[e,i]),(0,a.useEffect)((()=>{s&&!e&&r({id:"validation-errors",variant:"error",size:"large",title:(0,Et.__)("Oh no! It seems your form contains invalid data. Please review the following fields:","wordpress-seo")})}),[s,t,e])})(),(()=>{const{removeNotification:e}=yo(),t=bo("selectNotifications"),s=bo("selectPostTypes"),r=bo("selectTaxonomies");(0,a.useEffect)((()=>{const o=(0,le.some)(s,["isNew",!0]),a=(0,le.some)(r,["isNew",!0]);!t["new-content-type"]||o||a||e("new-content-type")}),[s,r])})();const{removeNotification:e}=yo(),t=bo("selectNotifications"),s=(0,a.useMemo)((()=>(0,le.map)(t,(t=>({...t,onDismiss:e,autoDismiss:"success"===t.variant?5e3:null, +(0,Et.__)("Explore %s now!","wordpress-seo"),"Yoast SEO Premium");return o&&(d=(0,Et.__)("Get 30% off now!","wordpress-seo")),(0,ur.jsxs)(a.Paper,{as:"div",className:"yst-max-w-4xl",children:[o&&(0,ur.jsxs)("div",{className:"yst-rounded-t-lg yst-h-9 yst-flex yst-justify-between yst-items-center yst-bg-black yst-text-amber-300 yst-px-4 yst-text-lg yst-border-b yst-border-amber-300 yst-border-solid yst-font-medium",children:[(0,ur.jsx)("div",{children:(0,Et.__)("30% OFF","wordpress-seo")}),(0,ur.jsx)("div",{children:(0,Et.__)("BLACK FRIDAY","wordpress-seo")})]}),(0,ur.jsxs)("div",{className:"yst-p-6 yst-flex yst-flex-col",children:[(0,ur.jsx)("div",{className:"yst-flex yst-items-center",children:(0,ur.jsxs)(ur.Fragment,{children:[(0,ur.jsx)(a.Title,{as:"h2",size:"4",className:"yst-text-xl yst-font-semibold "+(r?"yst-text-woo-light":"yst-text-primary-500 "),children:r?(0,Et.sprintf)(/* translators: %s expands to "Yoast WooCommerce SEO */ +(0,Et.__)("Upgrade to %s","wordpress-seo"),"Yoast WooCommerce SEO"):(0,Et.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ +(0,Et.__)("Upgrade to %s","wordpress-seo"),"Yoast SEO Premium")}),r?(0,ur.jsx)(Wr,{className:"yst-ml-2 yst-w-4 yst-h-3"}):(0,ur.jsx)(Vr,{className:"yst-ml-2 yst-w-4 yst-h-3"})]})}),(0,ur.jsxs)("div",{className:"yst-font-medium yst-text-slate-800 yst-text-xs yst-leading-7 yst-mt-2",children:[(0,ur.jsx)("span",{className:"yst-mr-2",children:(0,Et.__)("Now includes:","wordpress-seo")}),(0,ur.jsx)("div",{className:"yst-inline-block",children:n.map(((e,t)=>(0,ur.jsx)(a.Badge,{size:"small",variant:"plain",className:ar()("yst-mr-2 yst-bg-opacity-15",l),children:e},`now-including-${t}`)))})]}),(0,ur.jsx)("ul",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 yst-gap-x-6 yst-gap-y-2 yst-list-none yst-list-outside yst-text-slate-600 yst-mt-4",children:i().map(((e,t)=>(0,ur.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,ur.jsx)(xr,{className:"yst-mr-2 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),e]},`upsell-benefit-${t}`)))}),(0,ur.jsxs)(a.Button,{as:"a",variant:"upsell",size:"extra-large",href:e,className:"yst-gap-2 yst-mt-6 sm:yst-max-w-sm",target:"_blank",rel:"noopener",...t,children:[d,(0,ur.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ +(0,Et.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,ur.jsx)(Dr,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})]})]})]})};Hr.propTypes={premiumLink:lr().string.isRequired,premiumUpsellConfig:lr().object,isPromotionActive:lr().func.isRequired,isWooCommerceActive:lr().bool.isRequired};const Gr=({premiumLink:e,premiumUpsellConfig:t,academyLink:s,isPromotionActive:r,isWooCommerceActive:o})=>(0,ur.jsxs)("div",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 xl:yst-grid-cols-1 yst-gap-4",children:[(0,ur.jsx)(Ir,{link:e,linkProps:t,isPromotionActive:r,isWooCommerceActive:o}),(0,ur.jsx)(pr,{link:s})]});Gr.propTypes={premiumLink:lr().string.isRequired,premiumUpsellConfig:lr().object.isRequired,academyLink:lr().string.isRequired,isPromotionActive:lr().func.isRequired,isWooCommerceActive:lr().bool.isRequired};const Yr=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),Zr=({isOpen:e,onClose:t=le.noop,onDiscard:s=le.noop,title:r,description:o,dismissLabel:i,discardLabel:n})=>{const l=(0,a.useSvgAria)();return(0,ur.jsx)(a.Modal,{isOpen:e,onClose:t,children:(0,ur.jsxs)(a.Modal.Panel,{closeButtonScreenReaderText:(0,Et.__)("Close","wordpress-seo"),children:[(0,ur.jsxs)("div",{className:"sm:yst-flex sm:yst-items-start",children:[(0,ur.jsx)("div",{className:"yst-mx-auto yst-flex-shrink-0 yst-flex yst-items-center yst-justify-center yst-h-12 yst-w-12 yst-rounded-full yst-bg-red-100 sm:yst-mx-0 sm:yst-h-10 sm:yst-w-10",children:(0,ur.jsx)(Yr,{className:"yst-h-6 yst-w-6 yst-text-red-600",...l})}),(0,ur.jsxs)("div",{className:"yst-mt-3 yst-text-center sm:yst-mt-0 sm:yst-ms-4 sm:yst-text-start",children:[(0,ur.jsx)(a.Modal.Title,{className:"yst-text-lg yst-leading-6 yst-font-medium yst-text-slate-900 yst-mb-3",children:r}),(0,ur.jsx)(a.Modal.Description,{className:"yst-text-sm yst-text-slate-500",children:o})]})]}),(0,ur.jsxs)("div",{className:"yst-flex yst-flex-col sm:yst-flex-row-reverse yst-gap-3 yst-mt-6",children:[(0,ur.jsx)(a.Button,{type:"button",variant:"error",onClick:s,className:"yst-block",children:n}),(0,ur.jsx)(a.Button,{type:"button",variant:"secondary",onClick:t,className:"yst-block",children:i})]})]})})};Zr.propTypes={isOpen:lr().bool.isRequired,onClose:lr().func,onDiscard:lr().func,title:lr().string.isRequired,description:lr().string.isRequired,dismissLabel:lr().string.isRequired,discardLabel:lr().string.isRequired};const Kr=window.yoast.reactHelmet;var Jr,Qr;function Xr(){return Xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Xr.apply(this,arguments)}lr().string.isRequired,lr().shape({src:lr().string.isRequired,width:lr().string,height:lr().string}).isRequired,lr().shape({value:lr().bool.isRequired,status:lr().string.isRequired,set:lr().func.isRequired}).isRequired,lr().bool;const eo=e=>n.createElement("svg",Xr({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"yoast-logo_svg__w-40",viewBox:"0 0 842 224"},e),Jr||(Jr=n.createElement("path",{fill:"#a61e69",d:"M166.55 54.09c-38.69 0-54.17 25.97-54.17 54.88s15.25 56.02 54.17 56.02 54.07-27.19 54-54.26c-.09-32.97-16.77-56.65-54-56.65Zm-23.44 56.52c.94-38.69 30.66-38.65 40.59-24.79 9.05 12.63 10.9 55.81-17.14 55.5-12.92-.14-23.06-8.87-23.44-30.71Zm337.25 27.55V82.11h20.04V57.78h-20.04V28.39h-30.95v29.39h-15.7v24.33h15.7v52.87c0 30.05 20.95 47.91 43.06 51.61l9.24-24.88c-12.89-1.63-21.23-11.27-21.35-23.54Zm-156.15-8.87V87.16c0-1.54-.1-2.98-.25-4.39-2.68-34.04-51.02-33.97-88.46-20.9l10.82 21.78c24.38-11.58 38.97-8.59 44.07-2.89.13.15.26.29.38.45.01.02.03.04.04.06 2.6 3.51 1.98 9.05 1.98 13.41-31.86 0-65.77 4.23-65.77 39.17 0 26.56 33.28 43.65 68.06 18.33l5.16 12.45h29.81c-2.66-14.62-5.85-27.14-5.85-35.34Zm-31.18-.23c-24.51 27.43-46.96 1.61-23.97-9.65 6.77-2.31 15.95-2.41 23.97-2.41v12.06Zm78.75-44.17c0-10.38 16.61-15.23 42.82-3.27l9.06-22.01c-35.27-10.66-83.44-11.62-83.75 25.28-.15 17.68 11.19 27.19 27.52 33.26 11.31 4.2 27.64 6.38 27.59 15.39-.06 11.77-25.38 13.57-48.42-2.26l-9.31 23.87c31.43 15.64 89.87 16.08 89.56-23.12-.31-38.76-55.08-32.11-55.08-47.14ZM99.3 1 54.44 125.61 32.95 58.32H1l35.78 91.89a33.49 33.49 0 0 1 0 24.33c-4 10.25-10.65 19.03-26.87 21.21v27.24c31.58 0 48.65-19.41 63.88-61.96L133.48 1H99.3ZM598.64 139.05c0 8.17-2.96 14.58-8.87 19.23-5.91 4.65-14.07 6.98-24.47 6.98s-18.92-1.61-25.54-4.84v-14.2c4.19 1.97 8.65 3.52 13.37 4.65 4.72 1.13 9.11 1.7 13.18 1.7 5.95 0 10.35-1.13 13.18-3.39 2.83-2.26 4.25-5.3 4.25-9.11 0-3.43-1.3-6.35-3.9-8.74-2.6-2.39-7.97-5.22-16.1-8.48-8.39-3.39-14.3-7.27-17.74-11.63-3.44-4.36-5.16-9.59-5.16-15.71 0-7.67 2.72-13.7 8.18-18.1 5.45-4.4 12.77-6.6 21.95-6.6s17.57 1.93 26.29 5.78l-4.78 12.26c-8.18-3.43-15.47-5.15-21.89-5.15-4.87 0-8.55 1.06-11.07 3.17-2.52 2.12-3.77 4.91-3.77 8.39 0 2.39.5 4.43 1.51 6.13s2.66 3.3 4.97 4.81c2.3 1.51 6.46 3.5 12.45 5.97 6.75 2.81 11.7 5.43 14.85 7.86 3.15 2.43 5.45 5.18 6.92 8.23 1.46 3.06 2.2 6.66 2.2 10.81Zm68.53 24.96h-52.02V72.12h52.02v12.7h-36.99v25.01h34.66v12.57h-34.66v28.85h36.99v12.76Zm100.24-46.07c0 14.96-3.74 26.59-11.23 34.88-7.49 8.3-18.08 12.44-31.8 12.44s-24.54-4.12-31.99-12.35c-7.44-8.23-11.17-19.93-11.17-35.1s3.74-26.82 11.23-34.95c7.49-8.13 18.17-12.19 32.05-12.19s24.24 4.13 31.7 12.38c7.47 8.26 11.2 19.88 11.2 34.88Zm-70.2 0c0 11.31 2.29 19.89 6.86 25.74 4.57 5.85 11.35 8.77 20.32 8.77s15.67-2.89 20.22-8.67c4.55-5.78 6.82-14.39 6.82-25.83s-2.25-19.82-6.76-25.64-11.23-8.74-20.16-8.74-15.82 2.91-20.41 8.74c-4.59 5.82-6.89 14.37-6.89 25.64Z"})),Qr||(Qr=n.createElement("path",{fill:"#77b227",d:"m790.45 165.35 36.05-94.96H840l-36.02 94.96h-13.53z"})));n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),lr().bool.isRequired,lr().func.isRequired,lr().func,lr().string,lr().func.isRequired,lr().string.isRequired,lr().string.isRequired,lr().string.isRequired,lr().string.isRequired;const to=({name:e})=>{const t=lo("selectPreference",[],"isNetworkAdmin"),s=lo("selectPreference",[],"isMainSite"),r=(0,i.useMemo)((()=>"wpseo.tracking"===e&&!t&&!s),[e,t,s]),o=(0,i.useMemo)((()=>(0,le.get)(window,`wpseoScriptData.disabledSettings.${e}`,"")),[]),a=(0,i.useMemo)((()=>{if(r)return(0,Et.__)("Unavailable for sub-sites","wordpress-seo");switch(o){case"multisite":return(0,Et.__)("Unavailable for multisites","wordpress-seo");case"network":return(0,Et.__)("Network disabled","wordpress-seo");case"language":return(0,Et.__)("Only available for English sites","wordpress-seo");default:return""}}),[o,r]);return{isDisabled:(0,i.useMemo)((()=>!(0,le.isEmpty)(a)),[a]),message:a,disabledSetting:o}},so="@yoast/settings",ro="filesystem_permissions",oo="not_managed_by_yoast_seo",io=()=>(0,t.useDispatch)(so);var ao=s(1206),no=s.n(ao);const lo=(e,s=[],...r)=>(0,t.useSelect)((t=>{var s,o;return null===(s=(o=t(so))[e])||void 0===s?void 0:s.call(o,...r)}),s),co=({id:e,children:t,title:s,description:r=null})=>{const o=lo("selectPreference",[],"isPremium");return(0,ur.jsx)(gr,{id:e,title:s,description:r,variant:o?"xl":"2xl",children:t})};co.propTypes={id:lr().string,children:lr().node.isRequired,title:lr().node.isRequired,description:lr().node};const uo=co;var po=s(8133);const mo=({children:e})=>{const{isSubmitting:t,status:s,dirty:r,resetForm:o,initialValues:n}=q(),l=lo("selectIsMediaLoading"),d=(0,i.useMemo)((()=>(0,le.includes)((0,le.values)(s),!0)),[s]),[c,,,u,p]=(0,a.useToggleState)(!1),m=(0,i.useCallback)((()=>{p(),o({values:n})}),[o,n,p]);return(0,ur.jsxs)(se,{className:"yst-flex yst-flex-col yst-h-full",children:[(0,ur.jsx)("div",{className:"yst-flex-grow yst-p-8",children:e}),(0,ur.jsx)("footer",{className:"yst-sticky yst-bottom-0 yst-z-10",children:(0,ur.jsx)(po.Z,{easing:"ease-in-out",duration:300,height:r?"auto":0,animateOpacity:!0,children:(0,ur.jsx)("div",{className:"yst-bg-slate-50 yst-border-slate-200 yst-border-t yst-rounded-b-lg",children:(0,ur.jsxs)("div",{className:"yst-flex yst-align-middle yst-space-x-3 rtl:yst-space-x-reverse yst-p-8",children:[(0,ur.jsx)(a.Button,{id:"button-submit-settings",type:"submit",isLoading:t,disabled:t||l||d,children:(0,Et.__)("Save changes","wordpress-seo")}),(0,ur.jsx)(a.Button,{id:"button-undo-settings",type:"button",variant:"secondary",disabled:!r,onClick:u,children:(0,Et.__)("Discard changes","wordpress-seo")}),(0,ur.jsx)(Zr,{isOpen:c,onClose:p,title:(0,Et.__)("Discard all changes","wordpress-seo"),description:(0,Et.__)("You are about to discard all unsaved changes. All of your settings will be reset to the point where you last saved. Are you sure you want to do this?","wordpress-seo"),onDiscard:m,dismissLabel:(0,Et.__)("No, continue editing","wordpress-seo"),discardLabel:(0,Et.__)("Yes, discard changes","wordpress-seo")})]})})})})]})};mo.propTypes={children:lr().node.isRequired};const ho=mo,fo=({name:e,checked:t,...s})=>{const[r,,{setTouched:o,setValue:n}]=ee({name:e,checked:t,...s,type:"checkbox"}),l=(0,i.useCallback)((e=>{o(!0,!1),n(!e)}),[s.name]);return(0,ur.jsx)(a.ToggleField,{...r,checked:(0,le.isUndefined)(s.checked)?!r.checked:!s.checked,onChange:l,...s})};fo.propTypes={name:lr().string.isRequired,checked:lr().bool};const _o=fo,yo=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"}))})),wo={variant:{square:"yst-h-48 yst-w-48",landscape:"yst-h-48 yst-w-96",portrait:"yst-h-96 yst-w-48"}},go=({label:e="",description:t="",icon:s=yo,disabled:r=!1,isDummy:o=!1,libraryType:n="image",variant:l="landscape",id:d,mediaUrlName:c,mediaIdName:u,fallbackMediaId:p="0",previewLabel:m="",selectLabel:h=(0,Et.__)("Select image","wordpress-seo"),replaceLabel:f=(0,Et.__)("Replace image","wordpress-seo"),removeLabel:_=(0,Et.__)("Remove image","wordpress-seo"),className:y=""})=>{const{values:w,setFieldValue:g,setFieldTouched:b,errors:v}=q(),[x,j]=(0,i.useState)(null),S=(0,i.useMemo)((()=>(0,le.get)(window,"wp.media",null)),[]),k=(0,i.useMemo)((()=>(0,le.get)(w,u,"")),[w,u]),E=lo("selectMediaById",[k],k),L=lo("selectIsMediaError"),T=lo("selectMediaById",[p],p),{fetchMedia:F,addOneMedia:$}=io(),R=(0,i.useMemo)((()=>(0,le.get)(v,u,"")),[v,u]),P=(0,i.useMemo)((()=>r||o),[o,r]),{ids:C,describedBy:O}=(0,a.useDescribedBy)(`field-${d}-id`,{description:t,error:R}),N=(0,i.useMemo)((()=>k>0?E:p>0?T:null),[k,E,p,T]),A=(0,i.useMemo)((()=>(0,le.join)((0,le.map)((null==E?void 0:E.sizes)||(null==T?void 0:T.sizes),(e=>`${null==e?void 0:e.url} ${null==e?void 0:e.width}w`)),", ")),[E,T]),M=(0,i.useCallback)((()=>{o||null==x||x.open()}),[o,x]),I=(0,i.useCallback)((()=>{o||(b(c,!0,!1),g(c,"",!1),b(u,!0,!1),g(u,""))}),[o,b,g,c,u]),D=(0,i.useCallback)((()=>{var e,t,s;if(o)return;const r=(null===(e=x.state())||void 0===e||null===(t=e.get("selection"))||void 0===t||null===(s=t.first())||void 0===s?void 0:s.toJSON())||{};b(c,!0,!1),g(c,r.url,!1),b(u,!0,!1),g(u,r.id),$(r)}),[o,x,b,g,c,u]);return(0,i.useEffect)((()=>{S&&j(S({title:e,multiple:!1,library:{type:n}}))}),[S,e,n,j]),(0,i.useEffect)((()=>(null==x||x.on("select",D),()=>null==x?void 0:x.off("select",D))),[x,D]),(0,i.useEffect)((()=>{k&&!E&&F([k]),p&&!T&&F([p])}),[]),(0,ur.jsxs)("fieldset",{id:d,className:"yst-min-w-0 yst-w-96 yst-max-w-full",children:[(0,ur.jsx)(te,{type:"hidden",name:u,id:`input-${d}-id`,"aria-describedby":O,disabled:P}),(0,ur.jsx)(te,{type:"hidden",name:c,id:`input-${d}-url`,"aria-describedby":O,disabled:P}),e&&(0,ur.jsx)(a.Label,{as:"legend",className:ar()("yst-mb-2",P&&"yst-opacity-50 yst-cursor-not-allowed"),children:e}),(0,ur.jsx)("button",{type:"button",id:`button-${d}-preview`,onClick:M,className:ar()("yst-overflow-hidden yst-flex yst-justify-center yst-items-center yst-max-w-full yst-rounded-md yst-mb-4 yst-border-slate-300 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-offset-2 focus:yst-ring-primary-500",!o&&N?"yst-bg-slate-50 yst-border":"yst-border-2 yst-border-dashed",P&&"yst-opacity-50 yst-cursor-not-allowed",wo.variant[l],y),disabled:P,children:!o&&N?(0,ur.jsxs)(ur.Fragment,{children:[(0,ur.jsx)("span",{className:"yst-sr-only",children:f}),(0,ur.jsx)("img",{src:null==N?void 0:N.url,alt:(null==N?void 0:N.alt)||"",srcSet:A,sizes:"landscape"===l?"24rem":"12rem",width:"landscape"===l?"24rem":"12rem",loading:"lazy",decoding:"async",className:"yst-object-cover yst-object-center yst-min-h-full yst-min-w-full"})]}):(0,ur.jsxs)("div",{className:"yst-w-48 yst-max-w-full",children:[(0,ur.jsx)("span",{className:"yst-sr-only",children:h}),(0,ur.jsx)(s,{className:"yst-mx-auto yst-h-12 yst-w-12 yst-text-slate-400 yst-stroke-1"}),m&&(0,ur.jsx)("p",{className:"yst-text-xs yst-text-slate-600 yst-text-center yst-mt-1 yst-px-8",children:m})]})}),(0,ur.jsxs)("div",{className:"yst-flex yst-gap-1",children:[!o&&k>0?(0,ur.jsx)(a.Button,{id:`button-${d}-replace`,variant:"secondary",onClick:M,disabled:P,children:f}):(0,ur.jsx)(a.Button,{id:`button-${d}-select`,variant:"secondary",onClick:M,disabled:P,children:h}),!o&&k>0&&(0,ur.jsx)(a.Link,{id:`button-${d}-remove`,as:"button",type:"button",variant:"error",onClick:I,className:ar()("yst-px-3 yst-py-2 yst-rounded-md",P&&"yst-opacity-50 yst-cursor-not-allowed"),disabled:P,children:_})]}),R&&(0,ur.jsx)("p",{id:C.error,className:"yst-mt-2 yst-text-sm yst-text-red-600",children:R}),L&&(0,ur.jsx)("p",{className:"yst-mt-2 yst-text-sm yst-text-red-600",children:(0,Et.__)("Failed to retrieve media.","wordpress-seo")}),t&&(0,ur.jsx)("p",{id:C.description,className:ar()("yst-mt-2",P&&"yst-opacity-50 yst-cursor-not-allowed"),children:t})]})};go.propTypes={label:lr().string,description:lr().node,icon:lr().elementType,disabled:lr().bool,isDummy:lr().bool,libraryType:lr().string,variant:lr().oneOf((0,le.keys)(wo.variant)),id:lr().string.isRequired,mediaUrlName:lr().string.isRequired,mediaIdName:lr().string.isRequired,fallbackMediaId:lr().string,previewLabel:lr().node,selectLabel:lr().string,replaceLabel:lr().string,removeLabel:lr().string,className:lr().string};const bo=go,vo=window.yoast.replacementVariableEditor,xo=({className:e="",disabled:t=!1,...s})=>{const[r,o]=(0,i.useState)(null),[a,,{setTouched:n,setValue:l}]=ee(s),d=(0,i.useCallback)((e=>{n(!0,!1),l(e)}),[s.name]),c=(0,i.useCallback)((()=>null==r?void 0:r.focus()),[r]),u=(0,i.useMemo)((()=>{var e;return(null!==(e=a.value)&&void 0!==e&&e.match(/%%\w+%%$/)?`${a.value} `:a.value)||""}),[a.value]);return(0,ur.jsx)("div",{className:e,children:(0,ur.jsx)(vo.ReplacementVariableEditor,{...a,content:u,onChange:d,editorRef:o,onFocus:c,isDisabled:t,...s})})};xo.propTypes={name:lr().string.isRequired,disabled:lr().bool,className:lr().string};const jo=xo,So=e=>{const[{value:t,...s},,{setTouched:r,setValue:o}]=ee(e),n=(0,i.useMemo)((()=>(0,le.reduce)((0,le.isString)(t)&&(null==t?void 0:t.split(","))||[],((e,t)=>{const s=(0,le.trim)(t);return s?[...e,s]:e}),[])),[t]),l=(0,i.useCallback)((e=>{r(!0,!1),o([...n,e].join(","))}),[r,o,n]),d=(0,i.useCallback)((e=>{r(!0,!1),o([...n.slice(0,e),...n.slice(e+1)].join(","))}),[r,o,n]),c=(0,i.useCallback)((e=>{r(!0,!1),o(e.join(","))}),[r,o]);return(0,ur.jsx)(a.TagField,{...s,tags:n,onAddTag:l,onRemoveTag:d,onSetTags:c,...e})};So.propTypes={name:lr().string.isRequired};const ko=So,Eo=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z"}))}));let Lo;const To=({children:e,className:t=""})=>(0,ur.jsx)("div",{className:ar()("yst-flex yst-items-center yst-justify-center yst-gap-2 yst-py-2 yst-px-3",t),children:e});To.propTypes={children:lr().node.isRequired,className:lr().string};const Fo=({name:e,id:t,className:s="",...r})=>{const o=lo("selectPreference",[],"siteRepresentsPerson",{}),n=lo("selectUsersWith",[o],o),{addManyUsers:l}=io(),[{value:d,...c},,{setTouched:u,setValue:p}]=ee({type:"select",name:e,id:t,...r}),[m,h]=(0,i.useState)(es),[f,_]=(0,i.useState)([]),y=lo("selectPreference",[],"canCreateUsers",!1),w=lo("selectPreference",[],"createUserUrl",""),g=(0,i.useMemo)((()=>{const e=(0,le.values)(n);return(0,le.find)(e,["id",d])}),[d,n]),b=(0,i.useCallback)((0,le.debounce)((async e=>{try{var t,s;h(ts),Lo&&(null===(s=Lo)||void 0===s||s.abort()),Lo=new AbortController;const r=await Pt()({path:`/wp/v2/users?${(0,Nt.buildQueryString)({search:e,per_page:20})}`,signal:null===(t=Lo)||void 0===t?void 0:t.signal});_((0,le.map)(r,"id")),l(r),h(ss)}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return;_([]),h(rs),console.error(e.message)}}),200),[_,l,h]),v=(0,i.useCallback)((e=>{u(!0,!1),p(e)}),[p]),x=(0,i.useCallback)((e=>b(e.target.value)),[b]);return(0,i.useEffect)((()=>{b("")}),[]),(0,ur.jsx)(a.AutocompleteField,{...c,name:e,id:t,value:g?d:0,onChange:v,placeholder:(0,Et.__)("Select a user…","wordpress-seo"),selectedLabel:null==g?void 0:g.name,onQueryChange:x,className:s,...r,children:(0,ur.jsxs)(ur.Fragment,{children:[(m===es||m===ss)&&(0,ur.jsxs)(ur.Fragment,{children:[(0,le.isEmpty)(f)?(0,ur.jsx)(To,{children:(0,Et.__)("No users found.","wordpress-seo")}):(0,le.map)(f,(e=>{const t=null==n?void 0:n[e];return t?(0,ur.jsx)(a.AutocompleteField.Option,{value:null==t?void 0:t.id,children:null==t?void 0:t.name},null==t?void 0:t.id):null})),y&&(0,ur.jsx)("li",{className:"yst-sticky yst-inset-x-0 yst-bottom-0 yst-group",children:(0,ur.jsxs)("a",{id:`link-create_user-${t}`,href:w,target:"_blank",rel:"noreferrer",className:"yst-relative yst-w-full yst-flex yst-items-center yst-py-4 yst-px-3 yst-gap-2 yst-no-underline yst-text-sm yst-text-start yst-bg-white yst-text-slate-700 group-hover:yst-text-white group-hover:yst-bg-primary-500 yst-border-t yst-border-slate-200",children:[(0,ur.jsx)(Eo,{className:"yst-w-5 yst-h-5 yst-text-slate-400 group-hover:yst-text-white"}),(0,ur.jsx)("span",{children:(0,Et.__)("Add new user…","wordpress-seo")})]})})]}),m===ts&&(0,ur.jsxs)(To,{children:[(0,ur.jsx)(a.Spinner,{variant:"primary"}),(0,Et.__)("Searching users…","wordpress-seo")]}),m===rs&&(0,ur.jsx)(To,{className:"yst-text-red-600",children:(0,Et.__)("Failed to retrieve users.","wordpress-seo")})]})})};Fo.propTypes={name:lr().string.isRequired,id:lr().string.isRequired,className:lr().string};const $o=Fo,Ro=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))})),Po=({children:e,className:t=""})=>(0,ur.jsx)("div",{className:ar()("yst-flex yst-items-center yst-justify-center yst-gap-2 yst-py-2 yst-px-3",t),children:e});Po.propTypes={children:lr().node.isRequired,className:lr().string};const Co=({name:e,id:t,...s})=>{const r=lo("selectPreference",[],"siteBasicsPolicies",{}),o=lo("selectPagesWith",[r],(0,le.values)(r)),{fetchPages:n}=io(),[{value:l,...d},,{setTouched:c,setValue:u}]=ee({type:"select",name:e,id:t,...s}),[p,m]=(0,i.useState)(es),[h,f]=(0,i.useState)([]),_=lo("selectPreference",[],"canCreatePages",!1),y=lo("selectPreference",[],"createPageUrl",""),w=(0,i.useMemo)((()=>{const e=(0,le.values)(o);return(0,le.find)(e,["id",l])}),[l,o]),g=(0,i.useCallback)((0,le.debounce)((async e=>{try{m(ts);const t=await n({search:e});f((0,le.map)(t.payload,"id")),m(ss)}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return;f([]),m(rs)}}),200),[f,m,n]),b=(0,i.useCallback)((e=>{c(!0,!1),u(e)}),[u,c]),v=(0,i.useCallback)((e=>g(e.target.value)),[g]),x=(0,i.useMemo)((()=>(0,le.isEmpty)(h)?(0,le.map)(o,"id"):h),[h,o]),j=(0,i.useMemo)((()=>p===ss&&(0,le.isEmpty)(h)),[h,p]);return(0,ur.jsx)(a.AutocompleteField,{...d,name:e,id:t,value:w?l:0,onChange:b,placeholder:(0,Et.__)("None","wordpress-seo"),selectedLabel:null==w?void 0:w.name,onQueryChange:v,nullable:!0 +/* translators: Hidden accessibility text. */,clearButtonScreenReaderText:(0,Et.__)("Clear selection","wordpress-seo"),...s,children:(0,ur.jsxs)(ur.Fragment,{children:[(p===es||p===ss)&&(0,ur.jsxs)(ur.Fragment,{children:[j?(0,ur.jsx)(Po,{children:(0,Et.__)("No pages found.","wordpress-seo")}):(0,le.map)(x,(e=>{const t=null==o?void 0:o[e];return t?(0,ur.jsx)(a.AutocompleteField.Option,{value:null==t?void 0:t.id,children:null==t?void 0:t.name},null==t?void 0:t.id):null})),_&&(0,ur.jsx)("li",{className:"yst-sticky yst-inset-x-0 yst-bottom-0 yst-group",children:(0,ur.jsxs)("a",{id:`link-create_page-${t}`,href:y,target:"_blank",rel:"noreferrer",className:"yst-relative yst-w-full yst-flex yst-items-center yst-py-4 yst-px-3 yst-gap-2 yst-no-underline yst-text-sm yst-text-left yst-bg-white yst-text-slate-700 group-hover:yst-text-white group-hover:yst-bg-primary-500 yst-border-t yst-border-slate-200",children:[(0,ur.jsx)(Ro,{className:"yst-w-5 yst-h-5 yst-text-slate-400 group-hover:yst-text-white"}),(0,ur.jsx)("span",{children:(0,Et.__)("Add new page…","wordpress-seo")})]})})]}),p===ts&&(0,ur.jsxs)(Po,{children:[(0,ur.jsx)(a.Spinner,{variant:"primary"}),(0,Et.__)("Searching pages…","wordpress-seo")]}),p===rs&&(0,ur.jsx)(Po,{className:"yst-text-red-600",children:(0,Et.__)("Failed to retrieve pages.","wordpress-seo")})]})})};Co.propTypes={name:lr().string.isRequired,id:lr().string.isRequired};const Oo=Co,No=({children:e,className:t=""})=>(0,ur.jsx)("div",{className:ar()("yst-flex yst-items-center yst-justify-center yst-gap-2 yst-py-2 yst-px-3",t),children:e});No.propTypes={children:lr().node.isRequired,className:lr().string};const Ao=({name:e,id:t,disabled:s,selectedIds:r=[],...o})=>{const{fetchIndexablePages:n,removeIndexablePagesScope:l}=io(),[{value:d,...c},,{setTouched:u,setValue:p}]=ee({type:"select",name:e,id:t,...o}),{ids:m,query:h,status:f}=lo("selectIndexablePagesScope",[d],t),{status:_}=lo("selectIndexablePagesScope",[d]),y=lo("selectIndexablePagesById",[m],m),w=lo("selectIndexablePageById",[d],d),g=(0,i.useMemo)((()=>y.filter((e=>e.id===d||!r.includes(e.id))).slice(0,10)),[y,r,d]),b=(0,i.useCallback)((e=>{u(!0,!1),p(e)}),[p,u]),v=(0,i.useCallback)((()=>{n(t,{search:""}),b(0)}),[t,n,b]),x=(0,i.useCallback)((0,le.debounce)((e=>{var s,r;const o=(null===(s=e.target)||void 0===s||null===(r=s.value)||void 0===r?void 0:r.trim())||"";n(t,{search:o})}),200),[t,n]);(0,i.useEffect)((()=>()=>l(t)),[t,l]);const j=(null==w?void 0:w.name)||(null==h?void 0:h.search)||"",S=f===rs,k=f===ts||_===ts&&!S;return(0,ur.jsx)(a.AutocompleteField,{...c,name:e,id:t,value:w?d:0,onChange:b,placeholder:(0,Et.__)("Search or select a page…","wordpress-seo"),selectedLabel:j,onQueryChange:x,onClear:v,nullable:!0,disabled:s +/* translators: Hidden accessibility text. */,clearButtonScreenReaderText:(0,Et.__)("Clear selection","wordpress-seo"),...o,children:(0,ur.jsxs)(ur.Fragment,{children:[!S&&!k&&(0,ur.jsx)(ur.Fragment,{children:0===g.length?(0,ur.jsx)(No,{children:(0,Et.__)("No pages found.","wordpress-seo")}):g.map((e=>(0,ur.jsx)(a.AutocompleteField.Option,{value:e.id,children:e.name},e.id)))}),k&&(0,ur.jsxs)(No,{children:[(0,ur.jsx)(a.Spinner,{variant:"primary"}),(0,Et.__)("Searching pages…","wordpress-seo")]}),S&&(0,ur.jsx)(No,{className:"yst-text-red-600",children:(0,Et.__)("Failed to retrieve pages.","wordpress-seo")})]})})};Ao.propTypes={name:lr().string.isRequired,id:lr().string.isRequired};const Mo=Ao,Io=({name:e,id:t,options:s=[],...r})=>{const[o,,{setTouched:n,setValue:l}]=ee({type:"select",name:e,id:t,...r}),[d,c]=(0,i.useState)(""),u=e=>{var t;e&&null!==(t=s.find((t=>t.value===e)))&&void 0!==t&&t.label?c(s.find((t=>t.value===e)).label):c(e)},p=(0,i.useCallback)((e=>{l(e),u(e)}),[l,n]),m=(0,i.useCallback)((e=>{l(e.target.value),u(e.target.value)}),[l]);return(0,i.useEffect)((()=>{u(o.value)}),[]),(0,ur.jsx)(a.AutocompleteField,{...o,name:e,id:t,selectedLabel:d,onChange:p,onQueryChange:m,...r,children:s&&s.map((e=>(0,ur.jsx)(a.AutocompleteField.Option,{value:e.value,children:e.label},e.value)))})};Io.propTypes={name:lr().string.isRequired,id:lr().string.isRequired,options:lr().array};const Do=Io,Bo=(e,t="")=>(0,le.reduce)(e,((e,s,r)=>{const o=(0,le.join)((0,le.filter)([t,r],(0,le.flowRight)(Boolean,le.toString)),".");return(0,le.isObject)(s)||(0,le.isArray)(s)?{...e,...Bo(s,o)}:{...e,[o]:s}}),{}),Uo=({id:e,...t})=>{const{errors:s}=q(),r=lo("selectSearchIndex"),o=(0,i.useMemo)((()=>Bo(s)),[s]);return(0,ur.jsx)(a.Notifications.Notification,{id:e,...t,children:(0,ur.jsx)("ul",{className:"yst-list-disc yst-mt-1 yst-ms-4 yst-space-y-2",children:(0,le.map)(o,((e,t)=>e&&(0,ur.jsxs)("li",{children:[(0,ur.jsx)(xt,{to:`${(0,le.get)(r,`${t}.route`,"404")}#${(0,le.get)(r,`${t}.fieldId`,"")}`,children:`${(0,le.get)(r,`${t}.routeLabel`,"")} - ${(0,le.get)(r,`${t}.fieldLabel`,"")}`}),": ",e]},t)))})},e)};Uo.propTypes={id:lr().string.isRequired};const Vo=()=>{(()=>{const{isValid:e,errors:t,isSubmitting:s}=q(),{addNotification:r,removeNotification:o}=io(),a=lo("selectNotification",[],"validation-errors");(0,i.useEffect)((()=>{e&&a&&o("validation-errors")}),[e,a]),(0,i.useEffect)((()=>{s&&!e&&r({id:"validation-errors",variant:"error",size:"large",title:(0,Et.__)("Oh no! It seems your form contains invalid data. Please review the following fields:","wordpress-seo")})}),[s,t,e])})(),(()=>{const{removeNotification:e}=io(),t=lo("selectNotifications"),s=lo("selectPostTypes"),r=lo("selectTaxonomies");(0,i.useEffect)((()=>{const o=(0,le.some)(s,["isNew",!0]),i=(0,le.some)(r,["isNew",!0]);!t["new-content-type"]||o||i||e("new-content-type")}),[s,r])})();const{removeNotification:e}=io(),t=lo("selectNotifications"),s=(0,i.useMemo)((()=>(0,le.map)(t,(t=>({...t,onDismiss:e,autoDismiss:"success"===t.variant?5e3:null, /* translators: Hidden accessibility text. */ -dismissScreenReaderLabel:(0,Et.__)("Dismiss","wordpress-seo")})))),[t]);return(0,mr.jsx)(i.Notifications,{notifications:s,position:"bottom-left",children:s.map((e=>"validation-errors"===e.id?(0,mr.jsx)(Qo,{...e},e.id):(0,mr.jsx)(i.Notifications.Notification,{...e},e.id)))})},ea=({name:e,disabled:t=!1})=>{const s=bo("selectPreference",[],"isNewsSeoActive"),r=bo("selectLink",[],"https://yoa.st/get-news-settings"),{values:o}=q(),n=(0,a.useMemo)((()=>"NewsArticle"===(0,le.get)(o,`wpseo_titles.schema-article-type-${e}`,"")),[e,o]);return s?null:(0,mr.jsx)(jo.Z,{easing:"ease-in-out",duration:300,height:n&&!t?"auto":0,animateOpacity:!0,children:(0,mr.jsxs)(i.Alert,{className:"yst-mt-8",variant:"info",role:"status",children:[(0,Et.sprintf)(/* translators: %s Expands to "Yoast News SEO" */ -(0,Et.__)("Are you publishing news articles? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")," ",(0,mr.jsx)("a",{id:"link-get-news-seo",href:r,target:"_blank",rel:"noopener noreferrer",children:(0,Et.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */ -(0,Et.__)("Get the %s plugin now!","wordpress-seo"),"Yoast News SEO")})]})})};ea.propTypes={name:cr().string.isRequired,disabled:cr().bool};const ta=ea,sa=({isEnabled:e, +dismissScreenReaderLabel:(0,Et.__)("Dismiss","wordpress-seo")})))),[t]);return(0,ur.jsx)(a.Notifications,{notifications:s,position:"bottom-left",children:s.map((e=>"validation-errors"===e.id?(0,ur.jsx)(Uo,{...e},e.id):(0,ur.jsx)(a.Notifications.Notification,{...e},e.id)))})},zo=({name:e,disabled:t=!1})=>{const s=lo("selectPreference",[],"isNewsSeoActive"),r=lo("selectLink",[],"https://yoa.st/get-news-settings"),{values:o}=q(),n=(0,i.useMemo)((()=>"NewsArticle"===(0,le.get)(o,`wpseo_titles.schema-article-type-${e}`,"")),[e,o]);return s?null:(0,ur.jsx)(po.Z,{easing:"ease-in-out",duration:300,height:n&&!t?"auto":0,animateOpacity:!0,children:(0,ur.jsxs)(a.Alert,{className:"yst-mt-8",variant:"info",role:"status",children:[(0,Et.sprintf)(/* translators: %s Expands to "Yoast News SEO" */ +(0,Et.__)("Are you publishing news articles? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")," ",(0,ur.jsx)("a",{id:"link-get-news-seo",href:r,target:"_blank",rel:"noopener noreferrer",children:(0,Et.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */ +(0,Et.__)("Get the %s plugin now!","wordpress-seo"),"Yoast News SEO")})]})})};zo.propTypes={name:lr().string.isRequired,disabled:lr().bool};const qo=zo,Wo=({isEnabled:e, /* translators: %1$s expands to an opening emphasis tag. %2$s expands to a closing emphasis tag. */ -text:t=(0,Et.__)("The %1$ssocial image%2$s, %1$ssocial title%2$s and %1$ssocial description%2$s require Open Graph data, which is currently disabled in the ‘Social sharing’ section in %3$sSite features%4$s.","wordpress-seo")})=>{const s=(0,a.useMemo)((()=>pr((0,Et.sprintf)(t,"<em>","</em>","<link>","</link>"),{em:(0,mr.jsx)("em",{}),link:(0,mr.jsx)(xt,{to:"/site-features#section-social-sharing"})})),[]);return e?null:(0,mr.jsx)(i.Alert,{variant:"info",className:"yst-mb-6",children:s})};sa.propTypes={isEnabled:cr().bool.isRequired,text:cr().string};const ra=sa;var oa={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},aa=function(e){var t=e.message,s=e["aria-live"];return l().createElement("div",{style:oa,role:"log","aria-live":s},t||"")};aa.propTypes={};const ia=aa;function na(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var la=function(e){function t(){var s,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return s=r=na(this,e.call.apply(e,[this].concat(a))),r.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},na(r,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.getDerivedStateFromProps=function(e,t){var s=t.oldPolitemessage,r=t.oldPoliteMessageId,o=t.oldAssertiveMessage,a=t.oldAssertiveMessageId,i=e.politeMessage,n=e.politeMessageId,l=e.assertiveMessage,d=e.assertiveMessageId;return s!==i||r!==n?{politeMessage1:t.setAlternatePolite?"":i,politeMessage2:t.setAlternatePolite?i:"",oldPolitemessage:i,oldPoliteMessageId:n,setAlternatePolite:!t.setAlternatePolite}:o!==l||a!==d?{assertiveMessage1:t.setAlternateAssertive?"":l,assertiveMessage2:t.setAlternateAssertive?l:"",oldAssertiveMessage:l,oldAssertiveMessageId:d,setAlternateAssertive:!t.setAlternateAssertive}:null},t.prototype.render=function(){var e=this.state,t=e.assertiveMessage1,s=e.assertiveMessage2,r=e.politeMessage1,o=e.politeMessage2;return l().createElement("div",null,l().createElement(ia,{"aria-live":"assertive",message:t}),l().createElement(ia,{"aria-live":"assertive",message:s}),l().createElement(ia,{"aria-live":"polite",message:r}),l().createElement(ia,{"aria-live":"polite",message:o}))},t}(n.Component);la.propTypes={};const da=la;function ca(){console.warn("Announcement failed, LiveAnnouncer context is missing")}const ua=l().createContext({announceAssertive:ca,announcePolite:ca}),pa=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.announcePolite=function(e,t){r.setState({announcePoliteMessage:e,politeMessageId:t||""})},r.announceAssertive=function(e,t){r.setState({announceAssertiveMessage:e,assertiveMessageId:t||""})},r.state={announcePoliteMessage:"",politeMessageId:"",announceAssertiveMessage:"",assertiveMessageId:"",updateFunctions:{announcePolite:r.announcePolite,announceAssertive:r.announceAssertive}},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.state,t=e.announcePoliteMessage,s=e.politeMessageId,r=e.announceAssertiveMessage,o=e.assertiveMessageId,a=e.updateFunctions;return l().createElement(ua.Provider,{value:a},this.props.children,l().createElement(da,{assertiveMessage:r,assertiveMessageId:o,politeMessage:t,politeMessageId:s}))},t}(n.Component);var ma=s(3409),ha=s.n(ma);function fa(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var _a=function(e){function t(){var s,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return s=r=fa(this,e.call.apply(e,[this].concat(a))),r.announce=function(){var e=r.props,t=e.message,s=e["aria-live"],o=e.announceAssertive,a=e.announcePolite;"assertive"===s&&o(t||"",ha()()),"polite"===s&&a(t||"",ha()())},fa(r,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.announce()},t.prototype.componentDidUpdate=function(e){this.props.message!==e.message&&this.announce()},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.clearOnUnmount,s=e.announceAssertive,r=e.announcePolite;!0!==t&&"true"!==t||(s(""),r(""))},t.prototype.render=function(){return null},t}(n.Component);_a.propTypes={};const ya=_a;var wa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},ga=function(e){return l().createElement(ua.Consumer,null,(function(t){return l().createElement(ya,wa({},t,e))}))};ga.propTypes={};const ba=ga;const va=({children:e,title:s,description:r=null})=>{const o=(0,t.useSelect)((e=>e(ho).selectDocumentFullTitle({prefix:s})),[]),a=(0,Et.sprintf)(/* translators: 1: Settings' section title, 2: Yoast SEO */ -(0,Et.__)("%1$s Settings - %2$s","wordpress-seo"),s,"Yoast SEO");return(0,mr.jsxs)(pa,{children:[(0,mr.jsx)(ba,{message:a,"aria-live":"polite"}),(0,mr.jsx)(no.Helmet,{children:(0,mr.jsx)("title",{children:o})}),(0,mr.jsx)("header",{className:"yst-p-8 yst-border-b yst-border-slate-200",children:(0,mr.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,mr.jsx)(i.Title,{children:s}),r&&(0,mr.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:r})]})}),e]})};va.propTypes={children:cr().node.isRequired,title:cr().string.isRequired,description:cr().node};const xa=va;function ja(e,t){let[s,r]=(0,n.useState)(e),o=Ps(e);return $s((()=>r(o.current)),[o,r,...t]),s}var Sa;let ka=null!=(Sa=n.useId)?Sa:function(){let e=Ns(),[t,s]=n.useState(e?()=>Ts.nextId():null);return $s((()=>{null===t&&s(Ts.nextId())}),[t]),null!=t?""+t:void 0};function Ea(e){return Ts.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let La=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Fa,Ta=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Ta||{}),$a=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))($a||{}),Ra=((Fa=Ra||{})[Fa.Previous=-1]="Previous",Fa[Fa.Next=1]="Next",Fa),Pa=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Pa||{});function Na(e,t,s){let r=Ps(t);(0,n.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,s),()=>document.removeEventListener(e,t,s)}),[e,s])}function Oa(e){var t;if(e.type)return e.type;let s=null!=(t=e.as)?t:"button";return"string"==typeof s&&"button"===s.toLowerCase()?"button":void 0}function Ca(e,t){let[s,r]=(0,n.useState)((()=>Oa(e)));return $s((()=>{r(Oa(e))}),[e.type,e.as]),$s((()=>{s||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[s,t]),s}["textarea","input"].join(",");var Aa=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Aa||{});function Ma(e={},t=null,s=[]){for(let[r,o]of Object.entries(e))Da(s,Ia(t,r),o);return s}function Ia(e,t){return e?e+"["+t+"]":t}function Da(e,t,s){if(Array.isArray(s))for(let[r,o]of s.entries())Da(e,Ia(t,r.toString()),o);else s instanceof Date?e.push([t,s.toISOString()]):"boolean"==typeof s?e.push([t,s?"1":"0"]):"string"==typeof s?e.push([t,s]):"number"==typeof s?e.push([t,`${s}`]):null==s?e.push([t,""]):Ma(s,t,e)}var Ba=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ba||{});let Ua=bs((function(e,t){let{features:s=1,...r}=e;return ys({ourProps:{ref:t,"aria-hidden":2==(2&s)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&s)&&2!=(2&s)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}));var Va=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Va||{});function za(e,t){let s=(0,n.useRef)([]),r=Os(e);(0,n.useEffect)((()=>{let e=[...s.current];for(let[o,a]of t.entries())if(s.current[o]!==a){let o=r(t,e);return s.current=t,o}}),[r,...t])}function qa(e){return[e.screenX,e.screenY]}var Wa=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Wa||{}),Ha=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ha||{}),Ga=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ga||{}),Ya=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(Ya||{});function Za(e,t=(e=>e)){let s=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=function(e,t=(e=>e)){return e.slice().sort(((e,s)=>{let r=t(e),o=t(s);if(null===r||null===o)return 0;let a=r.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=s?r.indexOf(s):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let Ka={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:s}=e.dataRef.current,r=e.options.findIndex((e=>s(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var s;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let r=Za(e);if(null===r.activeOptionIndex){let e=r.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(r.activeOptionIndex=e)}let o=function(e,t){let s=t.resolveItems();if(s.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1,a=(()=>{switch(e.focus){case 0:return s.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=s.slice().reverse().findIndex(((e,s,r)=>!(-1!==o&&r.length-s-1>=o||t.resolveDisabled(e))));return-1===e?e:s.length-1-e}case 2:return s.findIndex(((e,s)=>!(s<=o||t.resolveDisabled(e))));case 3:{let e=s.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:s.length-1-e}case 4:return s.findIndex((s=>t.resolveId(s)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===a?r:a}(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,activeOptionIndex:o,activationTrigger:null!=(s=t.trigger)?s:1}},3:(e,t)=>{let s={id:t.id,dataRef:t.dataRef},r=Za(e,(e=>[...e,s]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(s));let o={...e,...r,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(o.activeOptionIndex=0),o},4:(e,t)=>{let s=Za(e,(e=>{let s=e.findIndex((e=>e.id===t.id));return-1!==s&&e.splice(s,1),e}));return{...e,...s,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},Ja=(0,n.createContext)(null);function Qa(e){let t=(0,n.useContext)(Ja);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Qa),t}return t}Ja.displayName="ComboboxActionsContext";let Xa=(0,n.createContext)(null);function ei(e){let t=(0,n.useContext)(Xa);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ei),t}return t}function ti(e,t){return ps(t.type,Ka,e,t)}Xa.displayName="ComboboxDataContext";let si=n.Fragment,ri=bs((function(e,t){let{value:s,defaultValue:r,onChange:o,name:a,by:i=((e,t)=>e===t),disabled:l=!1,__demoMode:d=!1,nullable:c=!1,multiple:u=!1,...p}=e,[m=(u?[]:void 0),h]=function(e,t,s){let[r,o]=(0,n.useState)(s),a=void 0!==e,i=(0,n.useRef)(a),l=(0,n.useRef)(!1),d=(0,n.useRef)(!1);return!a||i.current||l.current?!a&&i.current&&!d.current&&(d.current=!0,i.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,i.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:r,Os((e=>(a||o(e),null==t?void 0:t(e))))]}(s,o,r),[f,_]=(0,n.useReducer)(ti,{dataRef:(0,n.createRef)(),comboboxState:d?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),y=(0,n.useRef)(!1),w=(0,n.useRef)({static:!1,hold:!1}),g=(0,n.useRef)(null),b=(0,n.useRef)(null),v=(0,n.useRef)(null),x=(0,n.useRef)(null),j=Os("string"==typeof i?(e,t)=>{let s=i;return(null==e?void 0:e[s])===(null==t?void 0:t[s])}:i),S=(0,n.useCallback)((e=>ps(k.mode,{1:()=>m.some((t=>j(t,e))),0:()=>j(m,e)})),[m]),k=(0,n.useMemo)((()=>({...f,optionsPropsRef:w,labelRef:g,inputRef:b,buttonRef:v,optionsRef:x,value:m,defaultValue:r,disabled:l,mode:u?1:0,get activeOptionIndex(){if(y.current&&null===f.activeOptionIndex&&f.options.length>0){let e=f.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return f.activeOptionIndex},compare:j,isSelected:S,nullable:c,__demoMode:d})),[m,r,l,u,c,d,f]);$s((()=>{f.dataRef.current=k}),[k]),function(e,t,s=!0){let r=(0,n.useRef)(!1);function o(s,o){if(!r.current||s.defaultPrevented)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),i=o(s);if(null!==i&&i.getRootNode().contains(i)){for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(i)||s.composed&&s.composedPath().includes(t))return}return!function(e,t=0){var s;return e!==(null==(s=Ea(e))?void 0:s.body)&&ps(t,{0:()=>e.matches(La),1(){let t=e;for(;null!==t;){if(t.matches(La))return!0;t=t.parentElement}return!1}})}(i,Pa.Loose)&&-1!==i.tabIndex&&s.preventDefault(),t(s,i)}}(0,n.useEffect)((()=>{requestAnimationFrame((()=>{r.current=s}))}),[s]);let a=(0,n.useRef)(null);Na("mousedown",(e=>{var t,s;r.current&&(a.current=(null==(s=null==(t=e.composedPath)?void 0:t.call(e))?void 0:s[0])||e.target)}),!0),Na("click",(e=>{!a.current||(o(e,(()=>a.current)),a.current=null)}),!0),Na("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}([k.buttonRef,k.inputRef,k.optionsRef],(()=>C.closeCombobox()),0===k.comboboxState);let E=(0,n.useMemo)((()=>({open:0===k.comboboxState,disabled:l,activeIndex:k.activeOptionIndex,activeOption:null===k.activeOptionIndex?null:k.options[k.activeOptionIndex].dataRef.current.value,value:m})),[k,l,m]),L=Os((e=>{let t=k.options.find((t=>t.id===e));!t||O(t.dataRef.current.value)})),F=Os((()=>{if(null!==k.activeOptionIndex){let{dataRef:e,id:t}=k.options[k.activeOptionIndex];O(e.current.value),C.goToOption(Aa.Specific,t)}})),T=Os((()=>{_({type:0}),y.current=!0})),$=Os((()=>{_({type:1}),y.current=!1})),R=Os(((e,t,s)=>(y.current=!1,e===Aa.Specific?_({type:2,focus:Aa.Specific,id:t,trigger:s}):_({type:2,focus:e,trigger:s})))),P=Os(((e,t)=>(_({type:3,id:e,dataRef:t}),()=>_({type:4,id:e})))),N=Os((e=>(_({type:5,id:e}),()=>_({type:5,id:null})))),O=Os((e=>ps(k.mode,{0:()=>null==h?void 0:h(e),1(){let t=k.value.slice(),s=t.findIndex((t=>j(t,e)));return-1===s?t.push(e):t.splice(s,1),null==h?void 0:h(t)}}))),C=(0,n.useMemo)((()=>({onChange:O,registerOption:P,registerLabel:N,goToOption:R,closeCombobox:$,openCombobox:T,selectActiveOption:F,selectOption:L})),[]),A=null===t?{}:{ref:t},M=(0,n.useRef)(null),I=Bs();return(0,n.useEffect)((()=>{!M.current||void 0!==r&&I.addEventListener(M.current,"reset",(()=>{O(r)}))}),[M,O]),n.createElement(Ja.Provider,{value:C},n.createElement(Xa.Provider,{value:k},n.createElement(Es,{value:ps(k.comboboxState,{0:Ss.Open,1:Ss.Closed})},null!=a&&null!=m&&Ma({[a]:m}).map((([e,t],s)=>n.createElement(Ua,{features:Ba.Hidden,ref:0===s?e=>{var t;M.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...vs({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),ys({ourProps:A,theirProps:p,slot:E,defaultTag:si,name:"Combobox"}))))})),oi=bs((function(e,t){var s,r,o,a;let i=ka(),{id:l=`headlessui-combobox-input-${i}`,onChange:d,displayValue:c,type:u="text",...p}=e,m=ei("Combobox.Input"),h=Qa("Combobox.Input"),f=As(m.inputRef,t),_=(0,n.useRef)(!1),y=Bs();var w;za((([e,t],[s,r])=>{_.current||!m.inputRef.current||(0===r&&1===t||e!==s)&&(m.inputRef.current.value=e)}),["function"==typeof c&&void 0!==m.value?null!=(w=c(m.value))?w:"":"string"==typeof m.value?m.value:"",m.comboboxState]),za((([e],[t])=>{if(0===e&&1===t){let e=m.inputRef.current;if(!e)return;let t=e.value,{selectionStart:s,selectionEnd:r,selectionDirection:o}=e;e.value="",e.value=t,null!==o?e.setSelectionRange(s,r,o):e.setSelectionRange(s,r)}}),[m.comboboxState]);let g=(0,n.useRef)(!1),b=Os((()=>{g.current=!0})),v=Os((()=>{setTimeout((()=>{g.current=!1}))})),x=Os((e=>{switch(_.current=!0,e.key){case Va.Backspace:case Va.Delete:if(0!==m.mode||!m.nullable)return;let t=e.currentTarget;y.requestAnimationFrame((()=>{""===t.value&&(h.onChange(null),m.optionsRef.current&&(m.optionsRef.current.scrollTop=0),h.goToOption(Aa.Nothing))}));break;case Va.Enter:if(_.current=!1,0!==m.comboboxState||g.current)return;if(e.preventDefault(),e.stopPropagation(),null===m.activeOptionIndex)return void h.closeCombobox();h.selectActiveOption(),0===m.mode&&h.closeCombobox();break;case Va.ArrowDown:return _.current=!1,e.preventDefault(),e.stopPropagation(),ps(m.comboboxState,{0:()=>{h.goToOption(Aa.Next)},1:()=>{h.openCombobox()}});case Va.ArrowUp:return _.current=!1,e.preventDefault(),e.stopPropagation(),ps(m.comboboxState,{0:()=>{h.goToOption(Aa.Previous)},1:()=>{h.openCombobox(),y.nextFrame((()=>{m.value||h.goToOption(Aa.Last)}))}});case Va.Home:if(e.shiftKey)break;return _.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(Aa.First);case Va.PageUp:return _.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(Aa.First);case Va.End:if(e.shiftKey)break;return _.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(Aa.Last);case Va.PageDown:return _.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(Aa.Last);case Va.Escape:return _.current=!1,0!==m.comboboxState?void 0:(e.preventDefault(),m.optionsRef.current&&!m.optionsPropsRef.current.static&&e.stopPropagation(),h.closeCombobox());case Va.Tab:if(_.current=!1,0!==m.comboboxState)return;0===m.mode&&h.selectActiveOption(),h.closeCombobox()}})),j=Os((e=>{h.openCombobox(),null==d||d(e)})),S=Os((()=>{_.current=!1})),k=ja((()=>{if(m.labelId)return[m.labelId].join(" ")}),[m.labelId]),E=(0,n.useMemo)((()=>({open:0===m.comboboxState,disabled:m.disabled})),[m]);return ys({ourProps:{ref:f,id:l,role:"combobox",type:u,"aria-controls":null==(s=m.optionsRef.current)?void 0:s.id,"aria-expanded":m.disabled?void 0:0===m.comboboxState,"aria-activedescendant":null===m.activeOptionIndex||null==(r=m.options[m.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===m.mode||void 0,"aria-labelledby":k,"aria-autocomplete":"list",defaultValue:null!=(a=null!=(o=e.defaultValue)?o:void 0!==m.defaultValue?null==c?void 0:c(m.defaultValue):null)?a:m.defaultValue,disabled:m.disabled,onCompositionStart:b,onCompositionEnd:v,onKeyDown:x,onChange:j,onBlur:S},theirProps:p,slot:E,defaultTag:"input",name:"Combobox.Input"})})),ai=bs((function(e,t){var s;let r=ei("Combobox.Button"),o=Qa("Combobox.Button"),a=As(r.buttonRef,t),i=ka(),{id:l=`headlessui-combobox-button-${i}`,...d}=e,c=Bs(),u=Os((e=>{switch(e.key){case Va.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&o.openCombobox(),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Va.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(o.openCombobox(),c.nextFrame((()=>{r.value||o.goToOption(Aa.Last)}))),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Va.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),o.closeCombobox(),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),p=Os((e=>{if(function(e){let t=e.parentElement,s=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(s=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(s))&&r}(e.currentTarget))return e.preventDefault();0===r.comboboxState?o.closeCombobox():(e.preventDefault(),o.openCombobox()),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),m=ja((()=>{if(r.labelId)return[r.labelId,l].join(" ")}),[r.labelId,l]),h=(0,n.useMemo)((()=>({open:0===r.comboboxState,disabled:r.disabled,value:r.value})),[r]);return ys({ourProps:{ref:a,id:l,type:Ca(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(s=r.optionsRef.current)?void 0:s.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":m,disabled:r.disabled,onClick:p,onKeyDown:u},theirProps:d,slot:h,defaultTag:"button",name:"Combobox.Button"})})),ii=bs((function(e,t){let s=ka(),{id:r=`headlessui-combobox-label-${s}`,...o}=e,a=ei("Combobox.Label"),i=Qa("Combobox.Label"),l=As(a.labelRef,t);$s((()=>i.registerLabel(r)),[r]);let d=Os((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})})),c=(0,n.useMemo)((()=>({open:0===a.comboboxState,disabled:a.disabled})),[a]);return ys({ourProps:{ref:l,id:r,onClick:d},theirProps:o,slot:c,defaultTag:"label",name:"Combobox.Label"})})),ni=fs.RenderStrategy|fs.Static,li=bs((function(e,t){let s=ka(),{id:r=`headlessui-combobox-options-${s}`,hold:o=!1,...a}=e,i=ei("Combobox.Options"),l=As(i.optionsRef,t),d=ks(),c=null!==d?d===Ss.Open:0===i.comboboxState;$s((()=>{var t;i.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[i.optionsPropsRef,e.static]),$s((()=>{i.optionsPropsRef.current.hold=o}),[i.optionsPropsRef,o]),function({container:e,accept:t,walk:s,enabled:r=!0}){let o=(0,n.useRef)(t),a=(0,n.useRef)(s);(0,n.useEffect)((()=>{o.current=t,a.current=s}),[t,s]),$s((()=>{if(!e||!r)return;let t=Ea(e);if(!t)return;let s=o.current,i=a.current,n=Object.assign((e=>s(e)),{acceptNode:s}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n,!1);for(;l.nextNode();)i(l.currentNode)}),[e,r,o,a])}({container:i.optionsRef.current,enabled:0===i.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let u=ja((()=>{var e,t;return null!=(t=i.labelId)?t:null==(e=i.buttonRef.current)?void 0:e.id}),[i.labelId,i.buttonRef.current]);return ys({ourProps:{"aria-labelledby":u,role:"listbox",id:r,ref:l},theirProps:a,slot:(0,n.useMemo)((()=>({open:0===i.comboboxState})),[i]),defaultTag:"ul",features:ni,visible:c,name:"Combobox.Options"})})),di=bs((function(e,t){var s,r;let o=ka(),{id:a=`headlessui-combobox-option-${o}`,disabled:i=!1,value:l,...d}=e,c=ei("Combobox.Option"),u=Qa("Combobox.Option"),p=null!==c.activeOptionIndex&&c.options[c.activeOptionIndex].id===a,m=c.isSelected(l),h=(0,n.useRef)(null),f=Ps({disabled:i,value:l,domRef:h,textValue:null==(r=null==(s=h.current)?void 0:s.textContent)?void 0:r.toLowerCase()}),_=As(t,h),y=Os((()=>u.selectOption(a)));$s((()=>u.registerOption(a,f)),[f,a]);let w=(0,n.useRef)(!c.__demoMode);$s((()=>{if(!c.__demoMode)return;let e=Ms();return e.requestAnimationFrame((()=>{w.current=!0})),e.dispose}),[]),$s((()=>{if(0!==c.comboboxState||!p||!w.current||0===c.activationTrigger)return;let e=Ms();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=h.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[h,p,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let g=Os((e=>{if(i)return e.preventDefault();y(),0===c.mode&&u.closeCombobox()})),b=Os((()=>{if(i)return u.goToOption(Aa.Nothing);u.goToOption(Aa.Specific,a)})),v=function(){let e=(0,n.useRef)([-1,-1]);return{wasMoved(t){let s=qa(t);return(e.current[0]!==s[0]||e.current[1]!==s[1])&&(e.current=s,!0)},update(t){e.current=qa(t)}}}(),x=Os((e=>v.update(e))),j=Os((e=>{!v.wasMoved(e)||i||p||u.goToOption(Aa.Specific,a,0)})),S=Os((e=>{!v.wasMoved(e)||i||!p||c.optionsPropsRef.current.hold||u.goToOption(Aa.Nothing)})),k=(0,n.useMemo)((()=>({active:p,selected:m,disabled:i})),[p,m,i]);return ys({ourProps:{id:a,ref:_,role:"option",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-selected":m,disabled:void 0,onClick:g,onFocus:b,onPointerEnter:x,onMouseEnter:x,onPointerMove:j,onMouseMove:j,onPointerLeave:S,onMouseLeave:S},theirProps:d,slot:k,defaultTag:"li",name:"Combobox.Option"})})),ci=Object.assign(ri,{Input:oi,Button:ai,Label:ii,Options:li,Option:di});const ui=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"}))})),pi=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}));function mi(){return mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},mi.apply(this,arguments)}function hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,r=new Array(t);s<t;s++)r[s]=e[s];return r}var fi=["shift","alt","meta","mod"],_i={esc:"escape",return:"enter",left:"arrowleft",up:"arrowup",right:"arrowright",down:"arrowdown",1:"digit1",2:"digit2",3:"digit3",4:"digit4",5:"digit5",6:"digit6",7:"digit7",8:"digit8",9:"digit9"};function yi(e,t){return void 0===t&&(t=","),"string"==typeof e?e.split(t):e}function wi(e,t){void 0===t&&(t="+");var s=e.toLocaleLowerCase().split(t).map((function(e){return e.trim()})).map((function(e){return _i[e]||e}));return mi({},{alt:s.includes("alt"),shift:s.includes("shift"),meta:s.includes("meta"),mod:s.includes("mod")},{keys:s.filter((function(e){return!fi.includes(e)}))})}function gi(e,t){var s=e.target;void 0===t&&(t=!1);var r=s&&s.tagName;return t instanceof Array?Boolean(r&&t&&t.some((function(e){return e.toLowerCase()===r.toLowerCase()}))):Boolean(r&&t&&!0===t)}var bi=(0,n.createContext)(void 0),vi=(0,n.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}});function xi(e,t){return e&&t&&"object"==typeof e&&"object"==typeof t?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((function(s,r){return s&&xi(e[r],t[r])}),!0):e===t}var ji=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},Si="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,ki=new Set;function Ei(e,t,s,r){var o=(0,n.useRef)(null),a=s instanceof Array?r instanceof Array?void 0:r:s,i=s instanceof Array?s:r instanceof Array?r:[],l=(0,n.useCallback)(t,[].concat(i)),d=function(e){var t=(0,n.useRef)(void 0);return xi(t.current,e)||(t.current=e),t.current}(a),c=(0,n.useContext)(vi).enabledScopes,u=(0,n.useContext)(bi);return Si((function(){if(!1!==(null==d?void 0:d.enabled)&&(t=c,s=null==d?void 0:d.scopes,0===t.length&&s?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),1):!s||t.some((function(e){return s.includes(e)}))||t.includes("*"))){var t,s,r=function(t){var s;gi(t,["input","textarea","select"])&&!gi(t,null==d?void 0:d.enableOnFormTags)||(null===o.current||document.activeElement===o.current||o.current.contains(document.activeElement)?(null==(s=t.target)||!s.isContentEditable||null!=d&&d.enableOnContentEditable)&&yi(e,null==d?void 0:d.splitKey).forEach((function(e){var s,r=wi(e,null==d?void 0:d.combinationKey);if(function(e,t,s){var r=t.alt,o=t.meta,a=t.mod,i=t.shift,n=t.keys,l=e.altKey,d=e.ctrlKey,c=e.metaKey,u=e.shiftKey,p=e.key,m=e.code.toLowerCase().replace("key",""),h=p.toLowerCase();if(l!==r&&"alt"!==h)return!1;if(u!==i&&"shift"!==h)return!1;if(a){if(!c&&!d)return!1}else if(c!==o&&d!==o&&"meta"!==m&&"ctrl"!==m)return!1;return!(!n||1!==n.length||!n.includes(h)&&!n.includes(m))||(n?n.every((function(e){return s.has(e)})):!n)}(t,r,ki)||null!=(s=r.keys)&&s.includes("*")){if(function(e,t,s){("function"==typeof s&&s(e,t)||!0===s)&&e.preventDefault()}(t,r,null==d?void 0:d.preventDefault),!function(e,t,s){return"function"==typeof s?s(e,t):!0===s||void 0===s}(t,r,null==d?void 0:d.enabled))return void ji(t);l(t,r)}})):ji(t))},a=function(e){void 0!==e.key&&(ki.add(e.key.toLowerCase()),(void 0===(null==d?void 0:d.keydown)&&!0!==(null==d?void 0:d.keyup)||null!=d&&d.keydown)&&r(e))},i=function(e){void 0!==e.key&&("meta"!==e.key.toLowerCase()?ki.delete(e.key.toLowerCase()):ki.clear(),null!=d&&d.keyup&&r(e))};return(o.current||document).addEventListener("keyup",i),(o.current||document).addEventListener("keydown",a),u&&yi(e,null==d?void 0:d.splitKey).forEach((function(e){return u.addHotkey(wi(e,null==d?void 0:d.combinationKey))})),function(){(o.current||document).removeEventListener("keyup",i),(o.current||document).removeEventListener("keydown",a),u&&yi(e,null==d?void 0:d.splitKey).forEach((function(e){return u.removeHotkey(wi(e,null==d?void 0:d.combinationKey))}))}}}),[e,l,d,c]),o}var Li=new Set;"undefined"!=typeof window&&window.addEventListener("DOMContentLoaded",(function(){document.addEventListener("keydown",(function(e){var t;void 0!==e.key&&(t=e.key,(Array.isArray(t)?t:[t]).forEach((function(e){return Li.add(wi(e))})))})),document.addEventListener("keyup",(function(e){var t;void 0!==e.key&&(t=e.key,(Array.isArray(t)?t:[t]).forEach((function(e){for(var t,s=wi(e),r=function(e,t){var s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return(s=s.call(e)).next.bind(s);if(Array.isArray(e)||(s=function(e,t){if(e){if("string"==typeof e)return hi(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?hi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){s&&(e=s);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.")}(Li);!(t=r()).done;){var o,a=t.value;null!=(o=a.keys)&&o.every((function(e){var t;return null==(t=s.keys)?void 0:t.includes(e)}))&&Li.delete(a)}})))}))}));const Fi=(e,t)=>{try{return e.toLocaleLowerCase(t)}catch(t){return console.error(t.message),e}},Ti=({name:e,label:t,route:s,hasArchive:r},{userLocale:o})=>({[`title-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-title-${e}`,fieldLabel:(0,Et.__)("SEO title","wordpress-seo"),keywords:[]},[`metadesc-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-metadesc-${e}`,fieldLabel:(0,Et.__)("Meta description","wordpress-seo"),keywords:[]},[`noindex-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-noindex-${e}`,fieldLabel:(0,Et.sprintf)( +text:t=(0,Et.__)("The %1$ssocial image%2$s, %1$ssocial title%2$s and %1$ssocial description%2$s require Open Graph data, which is currently disabled in the ‘Social sharing’ section in %3$sSite features%4$s.","wordpress-seo")})=>{const s=(0,i.useMemo)((()=>cr((0,Et.sprintf)(t,"<em>","</em>","<link>","</link>"),{em:(0,ur.jsx)("em",{}),link:(0,ur.jsx)(xt,{to:"/site-features#section-social-sharing"})})),[]);return e?null:(0,ur.jsx)(a.Alert,{variant:"info",className:"yst-mb-6",children:s})};Wo.propTypes={isEnabled:lr().bool.isRequired,text:lr().string};const Ho=Wo;var Go={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},Yo=function(e){var t=e.message,s=e["aria-live"];return l().createElement("div",{style:Go,role:"log","aria-live":s},t||"")};Yo.propTypes={};const Zo=Yo;function Ko(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Jo=function(e){function t(){var s,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return s=r=Ko(this,e.call.apply(e,[this].concat(i))),r.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},Ko(r,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.getDerivedStateFromProps=function(e,t){var s=t.oldPolitemessage,r=t.oldPoliteMessageId,o=t.oldAssertiveMessage,i=t.oldAssertiveMessageId,a=e.politeMessage,n=e.politeMessageId,l=e.assertiveMessage,d=e.assertiveMessageId;return s!==a||r!==n?{politeMessage1:t.setAlternatePolite?"":a,politeMessage2:t.setAlternatePolite?a:"",oldPolitemessage:a,oldPoliteMessageId:n,setAlternatePolite:!t.setAlternatePolite}:o!==l||i!==d?{assertiveMessage1:t.setAlternateAssertive?"":l,assertiveMessage2:t.setAlternateAssertive?l:"",oldAssertiveMessage:l,oldAssertiveMessageId:d,setAlternateAssertive:!t.setAlternateAssertive}:null},t.prototype.render=function(){var e=this.state,t=e.assertiveMessage1,s=e.assertiveMessage2,r=e.politeMessage1,o=e.politeMessage2;return l().createElement("div",null,l().createElement(Zo,{"aria-live":"assertive",message:t}),l().createElement(Zo,{"aria-live":"assertive",message:s}),l().createElement(Zo,{"aria-live":"polite",message:r}),l().createElement(Zo,{"aria-live":"polite",message:o}))},t}(n.Component);Jo.propTypes={};const Qo=Jo;function Xo(){console.warn("Announcement failed, LiveAnnouncer context is missing")}const ei=l().createContext({announceAssertive:Xo,announcePolite:Xo}),ti=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.announcePolite=function(e,t){r.setState({announcePoliteMessage:e,politeMessageId:t||""})},r.announceAssertive=function(e,t){r.setState({announceAssertiveMessage:e,assertiveMessageId:t||""})},r.state={announcePoliteMessage:"",politeMessageId:"",announceAssertiveMessage:"",assertiveMessageId:"",updateFunctions:{announcePolite:r.announcePolite,announceAssertive:r.announceAssertive}},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.state,t=e.announcePoliteMessage,s=e.politeMessageId,r=e.announceAssertiveMessage,o=e.assertiveMessageId,i=e.updateFunctions;return l().createElement(ei.Provider,{value:i},this.props.children,l().createElement(Qo,{assertiveMessage:r,assertiveMessageId:o,politeMessage:t,politeMessageId:s}))},t}(n.Component);var si=s(3409),ri=s.n(si);function oi(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ii=function(e){function t(){var s,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return s=r=oi(this,e.call.apply(e,[this].concat(i))),r.announce=function(){var e=r.props,t=e.message,s=e["aria-live"],o=e.announceAssertive,i=e.announcePolite;"assertive"===s&&o(t||"",ri()()),"polite"===s&&i(t||"",ri()())},oi(r,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.announce()},t.prototype.componentDidUpdate=function(e){this.props.message!==e.message&&this.announce()},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.clearOnUnmount,s=e.announceAssertive,r=e.announcePolite;!0!==t&&"true"!==t||(s(""),r(""))},t.prototype.render=function(){return null},t}(n.Component);ii.propTypes={};const ai=ii;var ni=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},li=function(e){return l().createElement(ei.Consumer,null,(function(t){return l().createElement(ai,ni({},t,e))}))};li.propTypes={};const di=li;const ci=({children:e,title:s,description:r=null})=>{const o=(0,t.useSelect)((e=>e(so).selectDocumentFullTitle({prefix:s})),[]),i=(0,Et.sprintf)(/* translators: 1: Settings' section title, 2: Yoast SEO */ +(0,Et.__)("%1$s Settings - %2$s","wordpress-seo"),s,"Yoast SEO");return(0,ur.jsxs)(ti,{children:[(0,ur.jsx)(di,{message:i,"aria-live":"polite"}),(0,ur.jsx)(Kr.Helmet,{children:(0,ur.jsx)("title",{children:o})}),(0,ur.jsx)("header",{className:"yst-p-8 yst-border-b yst-border-slate-200",children:(0,ur.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,ur.jsx)(a.Title,{children:s}),r&&(0,ur.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:r})]})}),e]})};ci.propTypes={children:lr().node.isRequired,title:lr().string.isRequired,description:lr().node};const ui=ci;function pi(e,t){let[s,r]=(0,n.useState)(e),o=Ps(e);return $s((()=>r(o.current)),[o,r,...t]),s}var mi;let hi=null!=(mi=n.useId)?mi:function(){let e=Cs(),[t,s]=n.useState(e?()=>Fs.nextId():null);return $s((()=>{null===t&&s(Fs.nextId())}),[t]),null!=t?""+t:void 0};function fi(e){return Fs.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let _i=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var yi,wi=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(wi||{}),gi=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(gi||{}),bi=((yi=bi||{})[yi.Previous=-1]="Previous",yi[yi.Next=1]="Next",yi),vi=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(vi||{});function xi(e,t,s){let r=Ps(t);(0,n.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,s),()=>document.removeEventListener(e,t,s)}),[e,s])}function ji(e){var t;if(e.type)return e.type;let s=null!=(t=e.as)?t:"button";return"string"==typeof s&&"button"===s.toLowerCase()?"button":void 0}function Si(e,t){let[s,r]=(0,n.useState)((()=>ji(e)));return $s((()=>{r(ji(e))}),[e.type,e.as]),$s((()=>{s||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[s,t]),s}["textarea","input"].join(",");var ki=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(ki||{});function Ei(e={},t=null,s=[]){for(let[r,o]of Object.entries(e))Ti(s,Li(t,r),o);return s}function Li(e,t){return e?e+"["+t+"]":t}function Ti(e,t,s){if(Array.isArray(s))for(let[r,o]of s.entries())Ti(e,Li(t,r.toString()),o);else s instanceof Date?e.push([t,s.toISOString()]):"boolean"==typeof s?e.push([t,s?"1":"0"]):"string"==typeof s?e.push([t,s]):"number"==typeof s?e.push([t,`${s}`]):null==s?e.push([t,""]):Ei(s,t,e)}var Fi=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Fi||{});let $i=bs((function(e,t){let{features:s=1,...r}=e;return ys({ourProps:{ref:t,"aria-hidden":2==(2&s)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&s)&&2!=(2&s)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}));var Ri=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ri||{});function Pi(e,t){let s=(0,n.useRef)([]),r=Os(e);(0,n.useEffect)((()=>{let e=[...s.current];for(let[o,i]of t.entries())if(s.current[o]!==i){let o=r(t,e);return s.current=t,o}}),[r,...t])}function Ci(e){return[e.screenX,e.screenY]}var Oi=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Oi||{}),Ni=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ni||{}),Ai=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ai||{}),Mi=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(Mi||{});function Ii(e,t=(e=>e)){let s=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=function(e,t=(e=>e)){return e.slice().sort(((e,s)=>{let r=t(e),o=t(s);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=s?r.indexOf(s):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let Di={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:s}=e.dataRef.current,r=e.options.findIndex((e=>s(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var s;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let r=Ii(e);if(null===r.activeOptionIndex){let e=r.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(r.activeOptionIndex=e)}let o=function(e,t){let s=t.resolveItems();if(s.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1,i=(()=>{switch(e.focus){case 0:return s.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=s.slice().reverse().findIndex(((e,s,r)=>!(-1!==o&&r.length-s-1>=o||t.resolveDisabled(e))));return-1===e?e:s.length-1-e}case 2:return s.findIndex(((e,s)=>!(s<=o||t.resolveDisabled(e))));case 3:{let e=s.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:s.length-1-e}case 4:return s.findIndex((s=>t.resolveId(s)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===i?r:i}(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,activeOptionIndex:o,activationTrigger:null!=(s=t.trigger)?s:1}},3:(e,t)=>{let s={id:t.id,dataRef:t.dataRef},r=Ii(e,(e=>[...e,s]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(s));let o={...e,...r,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(o.activeOptionIndex=0),o},4:(e,t)=>{let s=Ii(e,(e=>{let s=e.findIndex((e=>e.id===t.id));return-1!==s&&e.splice(s,1),e}));return{...e,...s,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},Bi=(0,n.createContext)(null);function Ui(e){let t=(0,n.useContext)(Bi);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ui),t}return t}Bi.displayName="ComboboxActionsContext";let Vi=(0,n.createContext)(null);function zi(e){let t=(0,n.useContext)(Vi);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,zi),t}return t}function qi(e,t){return ps(t.type,Di,e,t)}Vi.displayName="ComboboxDataContext";let Wi=n.Fragment,Hi=bs((function(e,t){let{value:s,defaultValue:r,onChange:o,name:i,by:a=((e,t)=>e===t),disabled:l=!1,__demoMode:d=!1,nullable:c=!1,multiple:u=!1,...p}=e,[m=(u?[]:void 0),h]=function(e,t,s){let[r,o]=(0,n.useState)(s),i=void 0!==e,a=(0,n.useRef)(i),l=(0,n.useRef)(!1),d=(0,n.useRef)(!1);return!i||a.current||l.current?!i&&a.current&&!d.current&&(d.current=!0,a.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,a.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:r,Os((e=>(i||o(e),null==t?void 0:t(e))))]}(s,o,r),[f,_]=(0,n.useReducer)(qi,{dataRef:(0,n.createRef)(),comboboxState:d?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),y=(0,n.useRef)(!1),w=(0,n.useRef)({static:!1,hold:!1}),g=(0,n.useRef)(null),b=(0,n.useRef)(null),v=(0,n.useRef)(null),x=(0,n.useRef)(null),j=Os("string"==typeof a?(e,t)=>{let s=a;return(null==e?void 0:e[s])===(null==t?void 0:t[s])}:a),S=(0,n.useCallback)((e=>ps(k.mode,{1:()=>m.some((t=>j(t,e))),0:()=>j(m,e)})),[m]),k=(0,n.useMemo)((()=>({...f,optionsPropsRef:w,labelRef:g,inputRef:b,buttonRef:v,optionsRef:x,value:m,defaultValue:r,disabled:l,mode:u?1:0,get activeOptionIndex(){if(y.current&&null===f.activeOptionIndex&&f.options.length>0){let e=f.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return f.activeOptionIndex},compare:j,isSelected:S,nullable:c,__demoMode:d})),[m,r,l,u,c,d,f]);$s((()=>{f.dataRef.current=k}),[k]),function(e,t,s=!0){let r=(0,n.useRef)(!1);function o(s,o){if(!r.current||s.defaultPrevented)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),a=o(s);if(null!==a&&a.getRootNode().contains(a)){for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a)||s.composed&&s.composedPath().includes(t))return}return!function(e,t=0){var s;return e!==(null==(s=fi(e))?void 0:s.body)&&ps(t,{0:()=>e.matches(_i),1(){let t=e;for(;null!==t;){if(t.matches(_i))return!0;t=t.parentElement}return!1}})}(a,vi.Loose)&&-1!==a.tabIndex&&s.preventDefault(),t(s,a)}}(0,n.useEffect)((()=>{requestAnimationFrame((()=>{r.current=s}))}),[s]);let i=(0,n.useRef)(null);xi("mousedown",(e=>{var t,s;r.current&&(i.current=(null==(s=null==(t=e.composedPath)?void 0:t.call(e))?void 0:s[0])||e.target)}),!0),xi("click",(e=>{!i.current||(o(e,(()=>i.current)),i.current=null)}),!0),xi("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}([k.buttonRef,k.inputRef,k.optionsRef],(()=>N.closeCombobox()),0===k.comboboxState);let E=(0,n.useMemo)((()=>({open:0===k.comboboxState,disabled:l,activeIndex:k.activeOptionIndex,activeOption:null===k.activeOptionIndex?null:k.options[k.activeOptionIndex].dataRef.current.value,value:m})),[k,l,m]),L=Os((e=>{let t=k.options.find((t=>t.id===e));!t||O(t.dataRef.current.value)})),T=Os((()=>{if(null!==k.activeOptionIndex){let{dataRef:e,id:t}=k.options[k.activeOptionIndex];O(e.current.value),N.goToOption(ki.Specific,t)}})),F=Os((()=>{_({type:0}),y.current=!0})),$=Os((()=>{_({type:1}),y.current=!1})),R=Os(((e,t,s)=>(y.current=!1,e===ki.Specific?_({type:2,focus:ki.Specific,id:t,trigger:s}):_({type:2,focus:e,trigger:s})))),P=Os(((e,t)=>(_({type:3,id:e,dataRef:t}),()=>_({type:4,id:e})))),C=Os((e=>(_({type:5,id:e}),()=>_({type:5,id:null})))),O=Os((e=>ps(k.mode,{0:()=>null==h?void 0:h(e),1(){let t=k.value.slice(),s=t.findIndex((t=>j(t,e)));return-1===s?t.push(e):t.splice(s,1),null==h?void 0:h(t)}}))),N=(0,n.useMemo)((()=>({onChange:O,registerOption:P,registerLabel:C,goToOption:R,closeCombobox:$,openCombobox:F,selectActiveOption:T,selectOption:L})),[]),A=null===t?{}:{ref:t},M=(0,n.useRef)(null),I=Bs();return(0,n.useEffect)((()=>{!M.current||void 0!==r&&I.addEventListener(M.current,"reset",(()=>{O(r)}))}),[M,O]),n.createElement(Bi.Provider,{value:N},n.createElement(Vi.Provider,{value:k},n.createElement(Es,{value:ps(k.comboboxState,{0:Ss.Open,1:Ss.Closed})},null!=i&&null!=m&&Ei({[i]:m}).map((([e,t],s)=>n.createElement($i,{features:Fi.Hidden,ref:0===s?e=>{var t;M.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...vs({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),ys({ourProps:A,theirProps:p,slot:E,defaultTag:Wi,name:"Combobox"}))))})),Gi=bs((function(e,t){var s,r,o,i;let a=hi(),{id:l=`headlessui-combobox-input-${a}`,onChange:d,displayValue:c,type:u="text",...p}=e,m=zi("Combobox.Input"),h=Ui("Combobox.Input"),f=As(m.inputRef,t),_=(0,n.useRef)(!1),y=Bs();var w;Pi((([e,t],[s,r])=>{_.current||!m.inputRef.current||(0===r&&1===t||e!==s)&&(m.inputRef.current.value=e)}),["function"==typeof c&&void 0!==m.value?null!=(w=c(m.value))?w:"":"string"==typeof m.value?m.value:"",m.comboboxState]),Pi((([e],[t])=>{if(0===e&&1===t){let e=m.inputRef.current;if(!e)return;let t=e.value,{selectionStart:s,selectionEnd:r,selectionDirection:o}=e;e.value="",e.value=t,null!==o?e.setSelectionRange(s,r,o):e.setSelectionRange(s,r)}}),[m.comboboxState]);let g=(0,n.useRef)(!1),b=Os((()=>{g.current=!0})),v=Os((()=>{setTimeout((()=>{g.current=!1}))})),x=Os((e=>{switch(_.current=!0,e.key){case Ri.Backspace:case Ri.Delete:if(0!==m.mode||!m.nullable)return;let t=e.currentTarget;y.requestAnimationFrame((()=>{""===t.value&&(h.onChange(null),m.optionsRef.current&&(m.optionsRef.current.scrollTop=0),h.goToOption(ki.Nothing))}));break;case Ri.Enter:if(_.current=!1,0!==m.comboboxState||g.current)return;if(e.preventDefault(),e.stopPropagation(),null===m.activeOptionIndex)return void h.closeCombobox();h.selectActiveOption(),0===m.mode&&h.closeCombobox();break;case Ri.ArrowDown:return _.current=!1,e.preventDefault(),e.stopPropagation(),ps(m.comboboxState,{0:()=>{h.goToOption(ki.Next)},1:()=>{h.openCombobox()}});case Ri.ArrowUp:return _.current=!1,e.preventDefault(),e.stopPropagation(),ps(m.comboboxState,{0:()=>{h.goToOption(ki.Previous)},1:()=>{h.openCombobox(),y.nextFrame((()=>{m.value||h.goToOption(ki.Last)}))}});case Ri.Home:if(e.shiftKey)break;return _.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(ki.First);case Ri.PageUp:return _.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(ki.First);case Ri.End:if(e.shiftKey)break;return _.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(ki.Last);case Ri.PageDown:return _.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(ki.Last);case Ri.Escape:return _.current=!1,0!==m.comboboxState?void 0:(e.preventDefault(),m.optionsRef.current&&!m.optionsPropsRef.current.static&&e.stopPropagation(),h.closeCombobox());case Ri.Tab:if(_.current=!1,0!==m.comboboxState)return;0===m.mode&&h.selectActiveOption(),h.closeCombobox()}})),j=Os((e=>{h.openCombobox(),null==d||d(e)})),S=Os((()=>{_.current=!1})),k=pi((()=>{if(m.labelId)return[m.labelId].join(" ")}),[m.labelId]),E=(0,n.useMemo)((()=>({open:0===m.comboboxState,disabled:m.disabled})),[m]);return ys({ourProps:{ref:f,id:l,role:"combobox",type:u,"aria-controls":null==(s=m.optionsRef.current)?void 0:s.id,"aria-expanded":m.disabled?void 0:0===m.comboboxState,"aria-activedescendant":null===m.activeOptionIndex||null==(r=m.options[m.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===m.mode||void 0,"aria-labelledby":k,"aria-autocomplete":"list",defaultValue:null!=(i=null!=(o=e.defaultValue)?o:void 0!==m.defaultValue?null==c?void 0:c(m.defaultValue):null)?i:m.defaultValue,disabled:m.disabled,onCompositionStart:b,onCompositionEnd:v,onKeyDown:x,onChange:j,onBlur:S},theirProps:p,slot:E,defaultTag:"input",name:"Combobox.Input"})})),Yi=bs((function(e,t){var s;let r=zi("Combobox.Button"),o=Ui("Combobox.Button"),i=As(r.buttonRef,t),a=hi(),{id:l=`headlessui-combobox-button-${a}`,...d}=e,c=Bs(),u=Os((e=>{switch(e.key){case Ri.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&o.openCombobox(),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Ri.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(o.openCombobox(),c.nextFrame((()=>{r.value||o.goToOption(ki.Last)}))),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Ri.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),o.closeCombobox(),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),p=Os((e=>{if(function(e){let t=e.parentElement,s=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(s=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(s))&&r}(e.currentTarget))return e.preventDefault();0===r.comboboxState?o.closeCombobox():(e.preventDefault(),o.openCombobox()),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),m=pi((()=>{if(r.labelId)return[r.labelId,l].join(" ")}),[r.labelId,l]),h=(0,n.useMemo)((()=>({open:0===r.comboboxState,disabled:r.disabled,value:r.value})),[r]);return ys({ourProps:{ref:i,id:l,type:Si(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(s=r.optionsRef.current)?void 0:s.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":m,disabled:r.disabled,onClick:p,onKeyDown:u},theirProps:d,slot:h,defaultTag:"button",name:"Combobox.Button"})})),Zi=bs((function(e,t){let s=hi(),{id:r=`headlessui-combobox-label-${s}`,...o}=e,i=zi("Combobox.Label"),a=Ui("Combobox.Label"),l=As(i.labelRef,t);$s((()=>a.registerLabel(r)),[r]);let d=Os((()=>{var e;return null==(e=i.inputRef.current)?void 0:e.focus({preventScroll:!0})})),c=(0,n.useMemo)((()=>({open:0===i.comboboxState,disabled:i.disabled})),[i]);return ys({ourProps:{ref:l,id:r,onClick:d},theirProps:o,slot:c,defaultTag:"label",name:"Combobox.Label"})})),Ki=fs.RenderStrategy|fs.Static,Ji=bs((function(e,t){let s=hi(),{id:r=`headlessui-combobox-options-${s}`,hold:o=!1,...i}=e,a=zi("Combobox.Options"),l=As(a.optionsRef,t),d=ks(),c=null!==d?d===Ss.Open:0===a.comboboxState;$s((()=>{var t;a.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[a.optionsPropsRef,e.static]),$s((()=>{a.optionsPropsRef.current.hold=o}),[a.optionsPropsRef,o]),function({container:e,accept:t,walk:s,enabled:r=!0}){let o=(0,n.useRef)(t),i=(0,n.useRef)(s);(0,n.useEffect)((()=>{o.current=t,i.current=s}),[t,s]),$s((()=>{if(!e||!r)return;let t=fi(e);if(!t)return;let s=o.current,a=i.current,n=Object.assign((e=>s(e)),{acceptNode:s}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n,!1);for(;l.nextNode();)a(l.currentNode)}),[e,r,o,i])}({container:a.optionsRef.current,enabled:0===a.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let u=pi((()=>{var e,t;return null!=(t=a.labelId)?t:null==(e=a.buttonRef.current)?void 0:e.id}),[a.labelId,a.buttonRef.current]);return ys({ourProps:{"aria-labelledby":u,role:"listbox",id:r,ref:l},theirProps:i,slot:(0,n.useMemo)((()=>({open:0===a.comboboxState})),[a]),defaultTag:"ul",features:Ki,visible:c,name:"Combobox.Options"})})),Qi=bs((function(e,t){var s,r;let o=hi(),{id:i=`headlessui-combobox-option-${o}`,disabled:a=!1,value:l,...d}=e,c=zi("Combobox.Option"),u=Ui("Combobox.Option"),p=null!==c.activeOptionIndex&&c.options[c.activeOptionIndex].id===i,m=c.isSelected(l),h=(0,n.useRef)(null),f=Ps({disabled:a,value:l,domRef:h,textValue:null==(r=null==(s=h.current)?void 0:s.textContent)?void 0:r.toLowerCase()}),_=As(t,h),y=Os((()=>u.selectOption(i)));$s((()=>u.registerOption(i,f)),[f,i]);let w=(0,n.useRef)(!c.__demoMode);$s((()=>{if(!c.__demoMode)return;let e=Ms();return e.requestAnimationFrame((()=>{w.current=!0})),e.dispose}),[]),$s((()=>{if(0!==c.comboboxState||!p||!w.current||0===c.activationTrigger)return;let e=Ms();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=h.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[h,p,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let g=Os((e=>{if(a)return e.preventDefault();y(),0===c.mode&&u.closeCombobox()})),b=Os((()=>{if(a)return u.goToOption(ki.Nothing);u.goToOption(ki.Specific,i)})),v=function(){let e=(0,n.useRef)([-1,-1]);return{wasMoved(t){let s=Ci(t);return(e.current[0]!==s[0]||e.current[1]!==s[1])&&(e.current=s,!0)},update(t){e.current=Ci(t)}}}(),x=Os((e=>v.update(e))),j=Os((e=>{!v.wasMoved(e)||a||p||u.goToOption(ki.Specific,i,0)})),S=Os((e=>{!v.wasMoved(e)||a||!p||c.optionsPropsRef.current.hold||u.goToOption(ki.Nothing)})),k=(0,n.useMemo)((()=>({active:p,selected:m,disabled:a})),[p,m,a]);return ys({ourProps:{id:i,ref:_,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":m,disabled:void 0,onClick:g,onFocus:b,onPointerEnter:x,onMouseEnter:x,onPointerMove:j,onMouseMove:j,onPointerLeave:S,onMouseLeave:S},theirProps:d,slot:k,defaultTag:"li",name:"Combobox.Option"})})),Xi=Object.assign(Hi,{Input:Gi,Button:Yi,Label:Zi,Options:Ji,Option:Qi});const ea=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"}))})),ta=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}));function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},sa.apply(this,arguments)}function ra(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,r=new Array(t);s<t;s++)r[s]=e[s];return r}var oa=["shift","alt","meta","mod"],ia={esc:"escape",return:"enter",left:"arrowleft",up:"arrowup",right:"arrowright",down:"arrowdown",1:"digit1",2:"digit2",3:"digit3",4:"digit4",5:"digit5",6:"digit6",7:"digit7",8:"digit8",9:"digit9"};function aa(e,t){return void 0===t&&(t=","),"string"==typeof e?e.split(t):e}function na(e,t){void 0===t&&(t="+");var s=e.toLocaleLowerCase().split(t).map((function(e){return e.trim()})).map((function(e){return ia[e]||e}));return sa({},{alt:s.includes("alt"),shift:s.includes("shift"),meta:s.includes("meta"),mod:s.includes("mod")},{keys:s.filter((function(e){return!oa.includes(e)}))})}function la(e,t){var s=e.target;void 0===t&&(t=!1);var r=s&&s.tagName;return t instanceof Array?Boolean(r&&t&&t.some((function(e){return e.toLowerCase()===r.toLowerCase()}))):Boolean(r&&t&&!0===t)}var da=(0,n.createContext)(void 0),ca=(0,n.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}});function ua(e,t){return e&&t&&"object"==typeof e&&"object"==typeof t?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((function(s,r){return s&&ua(e[r],t[r])}),!0):e===t}var pa=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},ma="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,ha=new Set;function fa(e,t,s,r){var o=(0,n.useRef)(null),i=s instanceof Array?r instanceof Array?void 0:r:s,a=s instanceof Array?s:r instanceof Array?r:[],l=(0,n.useCallback)(t,[].concat(a)),d=function(e){var t=(0,n.useRef)(void 0);return ua(t.current,e)||(t.current=e),t.current}(i),c=(0,n.useContext)(ca).enabledScopes,u=(0,n.useContext)(da);return ma((function(){if(!1!==(null==d?void 0:d.enabled)&&(t=c,s=null==d?void 0:d.scopes,0===t.length&&s?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),1):!s||t.some((function(e){return s.includes(e)}))||t.includes("*"))){var t,s,r=function(t){var s;la(t,["input","textarea","select"])&&!la(t,null==d?void 0:d.enableOnFormTags)||(null===o.current||document.activeElement===o.current||o.current.contains(document.activeElement)?(null==(s=t.target)||!s.isContentEditable||null!=d&&d.enableOnContentEditable)&&aa(e,null==d?void 0:d.splitKey).forEach((function(e){var s,r=na(e,null==d?void 0:d.combinationKey);if(function(e,t,s){var r=t.alt,o=t.meta,i=t.mod,a=t.shift,n=t.keys,l=e.altKey,d=e.ctrlKey,c=e.metaKey,u=e.shiftKey,p=e.key,m=e.code.toLowerCase().replace("key",""),h=p.toLowerCase();if(l!==r&&"alt"!==h)return!1;if(u!==a&&"shift"!==h)return!1;if(i){if(!c&&!d)return!1}else if(c!==o&&d!==o&&"meta"!==m&&"ctrl"!==m)return!1;return!(!n||1!==n.length||!n.includes(h)&&!n.includes(m))||(n?n.every((function(e){return s.has(e)})):!n)}(t,r,ha)||null!=(s=r.keys)&&s.includes("*")){if(function(e,t,s){("function"==typeof s&&s(e,t)||!0===s)&&e.preventDefault()}(t,r,null==d?void 0:d.preventDefault),!function(e,t,s){return"function"==typeof s?s(e,t):!0===s||void 0===s}(t,r,null==d?void 0:d.enabled))return void pa(t);l(t,r)}})):pa(t))},i=function(e){void 0!==e.key&&(ha.add(e.key.toLowerCase()),(void 0===(null==d?void 0:d.keydown)&&!0!==(null==d?void 0:d.keyup)||null!=d&&d.keydown)&&r(e))},a=function(e){void 0!==e.key&&("meta"!==e.key.toLowerCase()?ha.delete(e.key.toLowerCase()):ha.clear(),null!=d&&d.keyup&&r(e))};return(o.current||document).addEventListener("keyup",a),(o.current||document).addEventListener("keydown",i),u&&aa(e,null==d?void 0:d.splitKey).forEach((function(e){return u.addHotkey(na(e,null==d?void 0:d.combinationKey))})),function(){(o.current||document).removeEventListener("keyup",a),(o.current||document).removeEventListener("keydown",i),u&&aa(e,null==d?void 0:d.splitKey).forEach((function(e){return u.removeHotkey(na(e,null==d?void 0:d.combinationKey))}))}}}),[e,l,d,c]),o}var _a=new Set;"undefined"!=typeof window&&window.addEventListener("DOMContentLoaded",(function(){document.addEventListener("keydown",(function(e){var t;void 0!==e.key&&(t=e.key,(Array.isArray(t)?t:[t]).forEach((function(e){return _a.add(na(e))})))})),document.addEventListener("keyup",(function(e){var t;void 0!==e.key&&(t=e.key,(Array.isArray(t)?t:[t]).forEach((function(e){for(var t,s=na(e),r=function(e,t){var s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return(s=s.call(e)).next.bind(s);if(Array.isArray(e)||(s=function(e,t){if(e){if("string"==typeof e)return ra(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?ra(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){s&&(e=s);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.")}(_a);!(t=r()).done;){var o,i=t.value;null!=(o=i.keys)&&o.every((function(e){var t;return null==(t=s.keys)?void 0:t.includes(e)}))&&_a.delete(i)}})))}))}));const ya=(e,t)=>{try{return e.toLocaleLowerCase(t)}catch(t){return console.error(t.message),e}},wa=({name:e,label:t,route:s,hasArchive:r},{userLocale:o})=>({[`title-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-title-${e}`,fieldLabel:(0,Et.__)("SEO title","wordpress-seo"),keywords:[]},[`metadesc-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-metadesc-${e}`,fieldLabel:(0,Et.__)("Meta description","wordpress-seo"),keywords:[]},[`noindex-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-noindex-${e}`,fieldLabel:(0,Et.sprintf)( // translators: %1$s expands to the post type plural, e.g. Posts. -(0,Et.__)("Show %1$s in search results","wordpress-seo"),Fi(t,o)),keywords:[]},[`display-metabox-pt-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-display-metabox-pt-${e}`,fieldLabel:(0,Et.__)("Enable SEO controls and assessments","wordpress-seo"),keywords:[]},[`schema-page-type-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-schema-page-type-${e}`,fieldLabel:(0,Et.__)("Page type","wordpress-seo"),keywords:[(0,Et.__)("Schema","wordpress-seo"),(0,Et.__)("Structured data","wordpress-seo")]},[`schema-article-type-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-schema-article-type-${e}`,fieldLabel:(0,Et.__)("Article type","wordpress-seo"),keywords:[(0,Et.__)("Schema","wordpress-seo"),(0,Et.__)("Structured data","wordpress-seo")]},[`page-analyse-extra-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-page-analyse-extra-${e}`,fieldLabel:(0,Et.__)("Add custom fields to page analysis","wordpress-seo"),keywords:[]},..."attachment"!==e&&{[`social-title-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-social-title-${e}`,fieldLabel:(0,Et.__)("Social title","wordpress-seo"),keywords:[]},[`social-description-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-social-description-${e}`,fieldLabel:(0,Et.__)("Social description","wordpress-seo"),keywords:[]},[`social-image-id-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`button-wpseo_titles-social-image-${e}-preview`,fieldLabel:(0,Et.__)("Social image","wordpress-seo"),keywords:[]}},...r&&{[`title-ptarchive-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-title-ptarchive-${e}`,fieldLabel:(0,Et.__)("Archive SEO title","wordpress-seo"),keywords:[]},[`metadesc-ptarchive-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-metadesc-ptarchive-${e}`,fieldLabel:(0,Et.__)("Archive meta description","wordpress-seo"),keywords:[]},[`bctitle-ptarchive-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-bctitle-ptarchive-${e}`,fieldLabel:(0,Et.__)("Archive breadcrumbs title","wordpress-seo"),keywords:[]},[`noindex-ptarchive-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-noindex-ptarchive-${e}`,fieldLabel:(0,Et.sprintf)( +(0,Et.__)("Show %1$s in search results","wordpress-seo"),ya(t,o)),keywords:[]},[`display-metabox-pt-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-display-metabox-pt-${e}`,fieldLabel:(0,Et.__)("Enable SEO controls and assessments","wordpress-seo"),keywords:[]},[`schema-page-type-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-schema-page-type-${e}`,fieldLabel:(0,Et.__)("Page type","wordpress-seo"),keywords:[(0,Et.__)("Schema","wordpress-seo"),(0,Et.__)("Structured data","wordpress-seo")]},[`schema-article-type-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-schema-article-type-${e}`,fieldLabel:(0,Et.__)("Article type","wordpress-seo"),keywords:[(0,Et.__)("Schema","wordpress-seo"),(0,Et.__)("Structured data","wordpress-seo")]},[`page-analyse-extra-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-page-analyse-extra-${e}`,fieldLabel:(0,Et.__)("Add custom fields to page analysis","wordpress-seo"),keywords:[]},..."attachment"!==e&&{[`social-title-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-social-title-${e}`,fieldLabel:(0,Et.__)("Social title","wordpress-seo"),keywords:[]},[`social-description-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-social-description-${e}`,fieldLabel:(0,Et.__)("Social description","wordpress-seo"),keywords:[]},[`social-image-id-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`button-wpseo_titles-social-image-${e}-preview`,fieldLabel:(0,Et.__)("Social image","wordpress-seo"),keywords:[]}},...r&&{[`title-ptarchive-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-title-ptarchive-${e}`,fieldLabel:(0,Et.__)("Archive SEO title","wordpress-seo"),keywords:[]},[`metadesc-ptarchive-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-metadesc-ptarchive-${e}`,fieldLabel:(0,Et.__)("Archive meta description","wordpress-seo"),keywords:[]},[`bctitle-ptarchive-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-bctitle-ptarchive-${e}`,fieldLabel:(0,Et.__)("Archive breadcrumbs title","wordpress-seo"),keywords:[]},[`noindex-ptarchive-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-noindex-ptarchive-${e}`,fieldLabel:(0,Et.sprintf)( // translators: %1$s expands to the post type plural, e.g. Posts. -(0,Et.__)("Show the archive for %1$s in search results","wordpress-seo"),Fi(t,o)),keywords:[]},[`social-title-ptarchive-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-social-title-ptarchive-${e}`,fieldLabel:(0,Et.__)("Archive social title","wordpress-seo"),keywords:[]},[`social-description-ptarchive-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-social-description-ptarchive-${e}`,fieldLabel:(0,Et.__)("Archive social description","wordpress-seo"),keywords:[]},[`social-image-id-ptarchive-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`button-wpseo_titles-social-image-ptarchive-${e}-preview`,fieldLabel:(0,Et.__)("Archive social image","wordpress-seo"),keywords:[]}}}),$i=({name:e,label:t,route:s},{userLocale:r})=>({[`title-tax-${e}`]:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-title-tax-${e}`,fieldLabel:(0,Et.__)("SEO title","wordpress-seo"),keywords:[]},[`metadesc-tax-${e}`]:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-metadesc-tax-${e}`,fieldLabel:(0,Et.__)("Meta description","wordpress-seo"),keywords:[]},[`display-metabox-tax-${e}`]:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-display-metabox-tax-${e}`,fieldLabel:(0,Et.sprintf)(/* translators: %1$s expands to "Yoast SEO". %2$s expands to the taxonomy plural, e.g. Categories. */ -(0,Et.__)("Enable %1$s for %2$s","wordpress-seo"),"Yoast SEO",Fi(t,r)),keywords:[]},[`display-metabox-tax-${e}`]:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-display-metabox-tax-${e}`,fieldLabel:(0,Et.__)("Enable SEO controls and assessments","wordpress-seo"),keywords:[]},[`noindex-tax-${e}`]:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-noindex-tax-${e}`,fieldLabel:(0,Et.sprintf)( +(0,Et.__)("Show the archive for %1$s in search results","wordpress-seo"),ya(t,o)),keywords:[]},[`social-title-ptarchive-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-social-title-ptarchive-${e}`,fieldLabel:(0,Et.__)("Archive social title","wordpress-seo"),keywords:[]},[`social-description-ptarchive-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-social-description-ptarchive-${e}`,fieldLabel:(0,Et.__)("Archive social description","wordpress-seo"),keywords:[]},[`social-image-id-ptarchive-${e}`]:{route:`/post-type/${s}`,routeLabel:t,fieldId:`button-wpseo_titles-social-image-ptarchive-${e}-preview`,fieldLabel:(0,Et.__)("Archive social image","wordpress-seo"),keywords:[]}}}),ga=({name:e,label:t,route:s},{userLocale:r})=>({[`title-tax-${e}`]:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-title-tax-${e}`,fieldLabel:(0,Et.__)("SEO title","wordpress-seo"),keywords:[]},[`metadesc-tax-${e}`]:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-metadesc-tax-${e}`,fieldLabel:(0,Et.__)("Meta description","wordpress-seo"),keywords:[]},[`display-metabox-tax-${e}`]:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-display-metabox-tax-${e}`,fieldLabel:(0,Et.sprintf)(/* translators: %1$s expands to "Yoast SEO". %2$s expands to the taxonomy plural, e.g. Categories. */ +(0,Et.__)("Enable %1$s for %2$s","wordpress-seo"),"Yoast SEO",ya(t,r)),keywords:[]},[`display-metabox-tax-${e}`]:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-display-metabox-tax-${e}`,fieldLabel:(0,Et.__)("Enable SEO controls and assessments","wordpress-seo"),keywords:[]},[`noindex-tax-${e}`]:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-noindex-tax-${e}`,fieldLabel:(0,Et.sprintf)( // translators: %1$s expands to the taxonomy plural, e.g. Categories. -(0,Et.__)("Show %1$s in search results","wordpress-seo"),Fi(t,r)),keywords:[]},[`social-title-tax-${e}`]:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-social-title-tax-${e}`,fieldLabel:(0,Et.__)("Social title","wordpress-seo"),keywords:[]},[`social-description-tax-${e}`]:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-social-description-tax-${e}`,fieldLabel:(0,Et.__)("Social description","wordpress-seo"),keywords:[]},[`social-image-id-tax-${e}`]:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:`button-wpseo_titles-social-image-tax-${e}-preview`,fieldLabel:(0,Et.__)("Social image","wordpress-seo"),keywords:[]},..."category"===e&&{stripcategorybase:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:"input-wpseo_titles-stripcategorybase",fieldLabel:(0,Et.__)("Show the categories prefix in the slug","wordpress-seo"),keywords:[]}}}),Ri=(e,t,{userLocale:s}={})=>({blogdescription:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-blogdescription",fieldLabel:(0,Et.__)("Tagline","wordpress-seo"),keywords:[]},wpseo:{keyword_analysis_active:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-keyword_analysis_active",fieldLabel:(0,Et.__)("SEO analysis","wordpress-seo"),keywords:[]},content_analysis_active:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-content_analysis_active",fieldLabel:(0,Et.__)("Readability analysis","wordpress-seo"),keywords:[]},inclusive_language_analysis_active:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-inclusive_language_analysis_active",fieldLabel:(0,Et.__)("Inclusive language analysis","wordpress-seo"),keywords:[]},enable_metabox_insights:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_metabox_insights",fieldLabel:(0,Et.__)("Insights","wordpress-seo"),keywords:[]},enable_cornerstone_content:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_cornerstone_content",fieldLabel:(0,Et.__)("Cornerstone content","wordpress-seo"),keywords:[]},enable_text_link_counter:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_text_link_counter",fieldLabel:(0,Et.__)("Text link counter","wordpress-seo"),keywords:[]},enable_link_suggestions:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_link_suggestions",fieldLabel:(0,Et.__)("Link suggestions","wordpress-seo"),keywords:[]},enable_enhanced_slack_sharing:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_enhanced_slack_sharing",fieldLabel:(0,Et.__)("Slack sharing","wordpress-seo"),keywords:[(0,Et.__)("Share","wordpress-seo")]},enable_admin_bar_menu:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_admin_bar_menu",fieldLabel:(0,Et.__)("Admin bar menu","wordpress-seo"),keywords:[]},enable_headless_rest_endpoints:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_headless_rest_endpoints",fieldLabel:(0,Et.__)("REST API endpoint","wordpress-seo"),keywords:[]},enable_xml_sitemap:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_xml_sitemap",fieldLabel:(0,Et.__)("XML sitemaps","wordpress-seo"),keywords:[]},enable_index_now:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_index_now",fieldLabel:(0,Et.__)("IndexNow","wordpress-seo"),keywords:[(0,Et.__)("Index Now","wordpress-seo")]},enable_ai_generator:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_ai_generator",fieldLabel:(0,Et.__)("AI title & description generator","wordpress-seo"),keywords:[(0,Et.__)("AI generator","wordpress-seo"),(0,Et.__)("Artificial intelligence","wordpress-seo"),(0,Et.__)("SEO title","wordpress-seo"),(0,Et.__)("meta title","wordpress-seo"),(0,Et.__)("meta description","wordpress-seo"),(0,Et.__)("suggestions","wordpress-seo")]},disableadvanced_meta:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo-disableadvanced_meta",fieldLabel:(0,Et.__)("Restrict advanced settings for authors","wordpress-seo"),keywords:[]},tracking:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo-tracking",fieldLabel:(0,Et.__)("Usage tracking","wordpress-seo"),keywords:[]},publishing_principles_id:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-publishing_principles_id",fieldLabel:(0,Et.__)("Publishing principles","wordpress-seo"),keywords:[(0,Et.__)("Publishing policies","wordpress-seo")]},ownership_funding_info_id:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-ownership_funding_info_id",fieldLabel:(0,Et.__)("Ownership / Funding info","wordpress-seo"),keywords:[(0,Et.__)("Publishing policies","wordpress-seo")]},actionable_feedback_policy_id:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-actionable_feedback_policy_id",fieldLabel:(0,Et.__)("Actionable feedback policy","wordpress-seo"),keywords:[(0,Et.__)("Publishing policies","wordpress-seo")]},corrections_policy_id:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-corrections_policy_id",fieldLabel:(0,Et.__)("Corrections policy","wordpress-seo"),keywords:[(0,Et.__)("Publishing policies","wordpress-seo")]},ethics_policy_id:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-ethics_policy_id",fieldLabel:(0,Et.__)("Ethics policy","wordpress-seo"),keywords:[(0,Et.__)("Publishing policies","wordpress-seo")]},diversity_policy_id:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-diversity_policy_id",fieldLabel:(0,Et.__)("Diversity policy","wordpress-seo"),keywords:[(0,Et.__)("Publishing policies","wordpress-seo")]},diversity_staffing_report_id:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-diversity_staffing_report_id",fieldLabel:(0,Et.__)("Diversity staffing report","wordpress-seo"),keywords:[(0,Et.__)("Publishing policies","wordpress-seo")]},baiduverify:{route:"/site-connections",routeLabel:(0,Et.__)("Site connections","wordpress-seo"),fieldId:"input-wpseo-baiduverify",fieldLabel:(0,Et.__)("Baidu","wordpress-seo"),keywords:[(0,Et.__)("Webmaster","wordpress-seo")]},googleverify:{route:"/site-connections",routeLabel:(0,Et.__)("Site connections","wordpress-seo"),fieldId:"input-wpseo-googleverify",fieldLabel:(0,Et.__)("Google","wordpress-seo"),keywords:[(0,Et.__)("Webmaster","wordpress-seo"),(0,Et.__)("Google search console","wordpress-seo"),"gsc"]},ahrefsverify:{route:"/site-connections",routeLabel:(0,Et.__)("Site connections","wordpress-seo"),fieldId:"input-wpseo-ahrefsverify",fieldLabel:(0,Et.__)("Ahrefs","wordpress-seo"),keywords:[(0,Et.__)("Webmaster","wordpress-seo")]},msverify:{route:"/site-connections",routeLabel:(0,Et.__)("Site connections","wordpress-seo"),fieldId:"input-wpseo-msverify",fieldLabel:(0,Et.__)("Bing","wordpress-seo"),keywords:[(0,Et.__)("Webmaster","wordpress-seo")]},yandexverify:{route:"/site-connections",routeLabel:(0,Et.__)("Site connections","wordpress-seo"),fieldId:"input-wpseo-yandexverify",fieldLabel:(0,Et.__)("Yandex","wordpress-seo"),keywords:[(0,Et.__)("Webmaster","wordpress-seo")]},remove_shortlinks:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_shortlinks",fieldLabel:(0,Et.__)("Remove shortlinks","wordpress-seo"),keywords:[]},remove_rest_api_links:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_rest_api_links",fieldLabel:(0,Et.__)("Remove REST API links","wordpress-seo"),keywords:[]},remove_rsd_wlw_links:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_rsd_wlw_links",fieldLabel:(0,Et.__)("Remove RSD / WLW links","wordpress-seo"),keywords:[]},remove_oembed_links:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_oembed_links",fieldLabel:(0,Et.__)("Remove oEmbed links","wordpress-seo"),keywords:[]},remove_generator:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_generator",fieldLabel:(0,Et.__)("Remove generator tag","wordpress-seo"),keywords:[]},remove_pingback_header:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_pingback_header",fieldLabel:(0,Et.__)("Pingback HTTP header","wordpress-seo"),keywords:[]},remove_powered_by_header:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_powered_by_header",fieldLabel:(0,Et.__)("Remove powered by HTTP header","wordpress-seo"),keywords:[]},remove_feed_global:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_global",fieldLabel:(0,Et.__)("Remove global feed","wordpress-seo"),keywords:[]},remove_feed_global_comments:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_global_comments",fieldLabel:(0,Et.__)("Remove global comment feeds","wordpress-seo"),keywords:[]},remove_feed_post_comments:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_post_comments",fieldLabel:(0,Et.__)("Remove post comments feeds","wordpress-seo"),keywords:[]},remove_feed_authors:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_authors",fieldLabel:(0,Et.__)("Remove post authors feeds","wordpress-seo"),keywords:[]},remove_feed_post_types:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_post_types",fieldLabel:(0,Et.__)("Remove post type feeds","wordpress-seo"),keywords:[]},remove_feed_categories:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_categories",fieldLabel:(0,Et.__)("Remove category feeds","wordpress-seo"),keywords:[]},remove_feed_tags:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_tags",fieldLabel:(0,Et.__)("Remove tag feeds","wordpress-seo"),keywords:[]},remove_feed_custom_taxonomies:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_custom_taxonomies",fieldLabel:(0,Et.__)("Remove custom taxonomy feeds","wordpress-seo"),keywords:[]},remove_feed_search:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_search",fieldLabel:(0,Et.__)("Remove search results feeds","wordpress-seo"),keywords:[]},remove_atom_rdf_feeds:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_atom_rdf_feeds",fieldLabel:(0,Et.__)("Remove Atom/RDF feeds","wordpress-seo"),keywords:[]},remove_emoji_scripts:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_emoji_scripts",fieldLabel:(0,Et.__)("Remove emoji scripts","wordpress-seo"),keywords:[]},deny_wp_json_crawling:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-deny_wp_json_crawling",fieldLabel:(0,Et.__)("Remove WP-JSON API","wordpress-seo"),keywords:["robots"]},deny_adsbot_crawling:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-deny_adsbot_crawling",fieldLabel:(0,Et.__)("Prevent Google AdsBot from crawling","wordpress-seo"),keywords:["robots"]},deny_ccbot_crawling:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-deny_ccbot_crawling",fieldLabel:(0,Et.__)("Prevent Common Crawl CCBot from crawling","wordpress-seo"),keywords:["robots"]},deny_google_extended_crawling:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-deny_google_extended_crawling",fieldLabel:(0,Et.__)("Prevent Google Gemini and Vertex AI bots from crawling","wordpress-seo"),keywords:["robots"]},deny_gptbot_crawling:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-deny_gptbot_crawling",fieldLabel:(0,Et.__)("Prevent OpenAI GPTBot from crawling","wordpress-seo"),keywords:["robots","chatgpt"]},search_cleanup:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-search_cleanup",fieldLabel:(0,Et.__)("Filter search terms","wordpress-seo"),keywords:[]},search_character_limit:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-search_character_limit",fieldLabel:(0,Et.__)("Max number of characters to allow in searches","wordpress-seo"),keywords:[]},search_cleanup_emoji:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-search_cleanup_emoji",fieldLabel:(0,Et.__)("Filter searches with emojis and other special characters","wordpress-seo"),keywords:[]},search_cleanup_patterns:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-search_cleanup_patterns",fieldLabel:(0,Et.__)("Filter searches with common spam patterns","wordpress-seo"),keywords:[]},redirect_search_pretty_urls:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-redirect_search_pretty_urls",fieldLabel:(0,Et.__)("Redirect pretty URLs to ‘raw’ formats","wordpress-seo"),keywords:[]},deny_search_crawling:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-deny_search_crawling",fieldLabel:(0,Et.__)("Prevent crawling of internal site search URLs","wordpress-seo"),keywords:["robots"]},clean_campaign_tracking_urls:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-clean_campaign_tracking_urls",fieldLabel:(0,Et.__)("Optimize Google Analytics utm tracking parameters","wordpress-seo"),keywords:[]},clean_permalinks:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-clean_permalinks",fieldLabel:(0,Et.__)("Remove unregistered URL parameters","wordpress-seo"),keywords:[]},clean_permalinks_extra_variables:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-clean_permalinks_extra_variables",fieldLabel:(0,Et.__)("Additional URL parameters to allow","wordpress-seo"),keywords:[]},enable_llms_txt:{route:"/llms-txt",routeLabel:(0,Et.__)("llms.txt","wordpress-seo"),fieldId:"input-wpseo.enable_llms_txt",fieldLabel:(0,Et.sprintf)( +(0,Et.__)("Show %1$s in search results","wordpress-seo"),ya(t,r)),keywords:[]},[`social-title-tax-${e}`]:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-social-title-tax-${e}`,fieldLabel:(0,Et.__)("Social title","wordpress-seo"),keywords:[]},[`social-description-tax-${e}`]:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:`input-wpseo_titles-social-description-tax-${e}`,fieldLabel:(0,Et.__)("Social description","wordpress-seo"),keywords:[]},[`social-image-id-tax-${e}`]:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:`button-wpseo_titles-social-image-tax-${e}-preview`,fieldLabel:(0,Et.__)("Social image","wordpress-seo"),keywords:[]},..."category"===e&&{stripcategorybase:{route:`/taxonomy/${s}`,routeLabel:t,fieldId:"input-wpseo_titles-stripcategorybase",fieldLabel:(0,Et.__)("Show the categories prefix in the slug","wordpress-seo"),keywords:[]}}}),ba=(e,t,{userLocale:s}={})=>({blogdescription:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-blogdescription",fieldLabel:(0,Et.__)("Tagline","wordpress-seo"),keywords:[]},wpseo:{keyword_analysis_active:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-keyword_analysis_active",fieldLabel:(0,Et.__)("SEO analysis","wordpress-seo"),keywords:[]},content_analysis_active:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-content_analysis_active",fieldLabel:(0,Et.__)("Readability analysis","wordpress-seo"),keywords:[]},inclusive_language_analysis_active:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-inclusive_language_analysis_active",fieldLabel:(0,Et.__)("Inclusive language analysis","wordpress-seo"),keywords:[]},enable_metabox_insights:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_metabox_insights",fieldLabel:(0,Et.__)("Insights","wordpress-seo"),keywords:[]},enable_cornerstone_content:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_cornerstone_content",fieldLabel:(0,Et.__)("Cornerstone content","wordpress-seo"),keywords:[]},enable_text_link_counter:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_text_link_counter",fieldLabel:(0,Et.__)("Text link counter","wordpress-seo"),keywords:[]},enable_link_suggestions:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_link_suggestions",fieldLabel:(0,Et.__)("Link suggestions","wordpress-seo"),keywords:[]},enable_enhanced_slack_sharing:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_enhanced_slack_sharing",fieldLabel:(0,Et.__)("Slack sharing","wordpress-seo"),keywords:[(0,Et.__)("Share","wordpress-seo")]},enable_admin_bar_menu:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_admin_bar_menu",fieldLabel:(0,Et.__)("Admin bar menu","wordpress-seo"),keywords:[]},enable_task_list:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_task_list",fieldLabel:(0,Et.__)("Task list","wordpress-seo"),keywords:[(0,Et.__)("Tasks","wordpress-seo"),(0,Et.__)("To-do","wordpress-seo"),(0,Et.__)("Checklist","wordpress-seo")]},enable_headless_rest_endpoints:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_headless_rest_endpoints",fieldLabel:(0,Et.__)("REST API endpoint","wordpress-seo"),keywords:[]},enable_xml_sitemap:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_xml_sitemap",fieldLabel:(0,Et.__)("XML sitemaps","wordpress-seo"),keywords:[]},enable_index_now:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_index_now",fieldLabel:(0,Et.__)("IndexNow","wordpress-seo"),keywords:[(0,Et.__)("Index Now","wordpress-seo")]},enable_ai_generator:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo-enable_ai_generator",fieldLabel:(0,Et.__)("AI title & description generator","wordpress-seo"),keywords:[(0,Et.__)("AI generator","wordpress-seo"),(0,Et.__)("Artificial intelligence","wordpress-seo"),(0,Et.__)("SEO title","wordpress-seo"),(0,Et.__)("meta title","wordpress-seo"),(0,Et.__)("meta description","wordpress-seo"),(0,Et.__)("suggestions","wordpress-seo")]},disableadvanced_meta:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo-disableadvanced_meta",fieldLabel:(0,Et.__)("Restrict advanced settings for authors","wordpress-seo"),keywords:[]},tracking:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo-tracking",fieldLabel:(0,Et.__)("Usage tracking","wordpress-seo"),keywords:[]},publishing_principles_id:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-publishing_principles_id",fieldLabel:(0,Et.__)("Publishing principles","wordpress-seo"),keywords:[(0,Et.__)("Publishing policies","wordpress-seo")]},ownership_funding_info_id:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-ownership_funding_info_id",fieldLabel:(0,Et.__)("Ownership / Funding info","wordpress-seo"),keywords:[(0,Et.__)("Publishing policies","wordpress-seo")]},actionable_feedback_policy_id:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-actionable_feedback_policy_id",fieldLabel:(0,Et.__)("Actionable feedback policy","wordpress-seo"),keywords:[(0,Et.__)("Publishing policies","wordpress-seo")]},corrections_policy_id:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-corrections_policy_id",fieldLabel:(0,Et.__)("Corrections policy","wordpress-seo"),keywords:[(0,Et.__)("Publishing policies","wordpress-seo")]},ethics_policy_id:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-ethics_policy_id",fieldLabel:(0,Et.__)("Ethics policy","wordpress-seo"),keywords:[(0,Et.__)("Publishing policies","wordpress-seo")]},diversity_policy_id:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-diversity_policy_id",fieldLabel:(0,Et.__)("Diversity policy","wordpress-seo"),keywords:[(0,Et.__)("Publishing policies","wordpress-seo")]},diversity_staffing_report_id:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-diversity_staffing_report_id",fieldLabel:(0,Et.__)("Diversity staffing report","wordpress-seo"),keywords:[(0,Et.__)("Publishing policies","wordpress-seo")]},baiduverify:{route:"/site-connections",routeLabel:(0,Et.__)("Site connections","wordpress-seo"),fieldId:"input-wpseo-baiduverify",fieldLabel:(0,Et.__)("Baidu","wordpress-seo"),keywords:[(0,Et.__)("Webmaster","wordpress-seo")]},googleverify:{route:"/site-connections",routeLabel:(0,Et.__)("Site connections","wordpress-seo"),fieldId:"input-wpseo-googleverify",fieldLabel:(0,Et.__)("Google","wordpress-seo"),keywords:[(0,Et.__)("Webmaster","wordpress-seo"),(0,Et.__)("Google search console","wordpress-seo"),"gsc"]},ahrefsverify:{route:"/site-connections",routeLabel:(0,Et.__)("Site connections","wordpress-seo"),fieldId:"input-wpseo-ahrefsverify",fieldLabel:(0,Et.__)("Ahrefs","wordpress-seo"),keywords:[(0,Et.__)("Webmaster","wordpress-seo")]},msverify:{route:"/site-connections",routeLabel:(0,Et.__)("Site connections","wordpress-seo"),fieldId:"input-wpseo-msverify",fieldLabel:(0,Et.__)("Bing","wordpress-seo"),keywords:[(0,Et.__)("Webmaster","wordpress-seo")]},yandexverify:{route:"/site-connections",routeLabel:(0,Et.__)("Site connections","wordpress-seo"),fieldId:"input-wpseo-yandexverify",fieldLabel:(0,Et.__)("Yandex","wordpress-seo"),keywords:[(0,Et.__)("Webmaster","wordpress-seo")]},remove_shortlinks:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_shortlinks",fieldLabel:(0,Et.__)("Remove shortlinks","wordpress-seo"),keywords:[]},remove_rest_api_links:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_rest_api_links",fieldLabel:(0,Et.__)("Remove REST API links","wordpress-seo"),keywords:[]},remove_rsd_wlw_links:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_rsd_wlw_links",fieldLabel:(0,Et.__)("Remove RSD / WLW links","wordpress-seo"),keywords:[]},remove_oembed_links:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_oembed_links",fieldLabel:(0,Et.__)("Remove oEmbed links","wordpress-seo"),keywords:[]},remove_generator:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_generator",fieldLabel:(0,Et.__)("Remove generator tag","wordpress-seo"),keywords:[]},remove_pingback_header:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_pingback_header",fieldLabel:(0,Et.__)("Pingback HTTP header","wordpress-seo"),keywords:[]},remove_powered_by_header:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_powered_by_header",fieldLabel:(0,Et.__)("Remove powered by HTTP header","wordpress-seo"),keywords:[]},remove_feed_global:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_global",fieldLabel:(0,Et.__)("Remove global feed","wordpress-seo"),keywords:[]},remove_feed_global_comments:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_global_comments",fieldLabel:(0,Et.__)("Remove global comment feeds","wordpress-seo"),keywords:[]},remove_feed_post_comments:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_post_comments",fieldLabel:(0,Et.__)("Remove post comments feeds","wordpress-seo"),keywords:[]},remove_feed_authors:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_authors",fieldLabel:(0,Et.__)("Remove post authors feeds","wordpress-seo"),keywords:[]},remove_feed_post_types:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_post_types",fieldLabel:(0,Et.__)("Remove post type feeds","wordpress-seo"),keywords:[]},remove_feed_categories:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_categories",fieldLabel:(0,Et.__)("Remove category feeds","wordpress-seo"),keywords:[]},remove_feed_tags:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_tags",fieldLabel:(0,Et.__)("Remove tag feeds","wordpress-seo"),keywords:[]},remove_feed_custom_taxonomies:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_custom_taxonomies",fieldLabel:(0,Et.__)("Remove custom taxonomy feeds","wordpress-seo"),keywords:[]},remove_feed_search:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_feed_search",fieldLabel:(0,Et.__)("Remove search results feeds","wordpress-seo"),keywords:[]},remove_atom_rdf_feeds:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_atom_rdf_feeds",fieldLabel:(0,Et.__)("Remove Atom/RDF feeds","wordpress-seo"),keywords:[]},remove_emoji_scripts:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-remove_emoji_scripts",fieldLabel:(0,Et.__)("Remove emoji scripts","wordpress-seo"),keywords:[]},deny_wp_json_crawling:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-deny_wp_json_crawling",fieldLabel:(0,Et.__)("Remove WP-JSON API","wordpress-seo"),keywords:["robots"]},deny_adsbot_crawling:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-deny_adsbot_crawling",fieldLabel:(0,Et.__)("Prevent Google AdsBot from crawling","wordpress-seo"),keywords:["robots"]},deny_ccbot_crawling:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-deny_ccbot_crawling",fieldLabel:(0,Et.__)("Prevent Common Crawl CCBot from crawling","wordpress-seo"),keywords:["robots"]},deny_google_extended_crawling:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-deny_google_extended_crawling",fieldLabel:(0,Et.__)("Prevent Google Gemini and Vertex AI bots from crawling","wordpress-seo"),keywords:["robots"]},deny_gptbot_crawling:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-deny_gptbot_crawling",fieldLabel:(0,Et.__)("Prevent OpenAI GPTBot from crawling","wordpress-seo"),keywords:["robots","chatgpt"]},search_cleanup:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-search_cleanup",fieldLabel:(0,Et.__)("Filter search terms","wordpress-seo"),keywords:[]},search_character_limit:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-search_character_limit",fieldLabel:(0,Et.__)("Max number of characters to allow in searches","wordpress-seo"),keywords:[]},search_cleanup_emoji:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-search_cleanup_emoji",fieldLabel:(0,Et.__)("Filter searches with emojis and other special characters","wordpress-seo"),keywords:[]},search_cleanup_patterns:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-search_cleanup_patterns",fieldLabel:(0,Et.__)("Filter searches with common spam patterns","wordpress-seo"),keywords:[]},redirect_search_pretty_urls:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-redirect_search_pretty_urls",fieldLabel:(0,Et.__)("Redirect pretty URLs to ‘raw’ formats","wordpress-seo"),keywords:[]},deny_search_crawling:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-deny_search_crawling",fieldLabel:(0,Et.__)("Prevent crawling of internal site search URLs","wordpress-seo"),keywords:["robots"]},clean_campaign_tracking_urls:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-clean_campaign_tracking_urls",fieldLabel:(0,Et.__)("Optimize Google Analytics utm tracking parameters","wordpress-seo"),keywords:[]},clean_permalinks:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-clean_permalinks",fieldLabel:(0,Et.__)("Remove unregistered URL parameters","wordpress-seo"),keywords:[]},clean_permalinks_extra_variables:{route:"/crawl-optimization",routeLabel:(0,Et.__)("Crawl optimization","wordpress-seo"),fieldId:"input-wpseo-clean_permalinks_extra_variables",fieldLabel:(0,Et.__)("Additional URL parameters to allow","wordpress-seo"),keywords:[]},enable_llms_txt:{route:"/llms-txt",routeLabel:(0,Et.__)("llms.txt","wordpress-seo"),fieldId:"input-wpseo.enable_llms_txt",fieldLabel:(0,Et.sprintf)( // translators: %1$s expands to "llms.txt". (0,Et.__)("Enable %1$s file feature","wordpress-seo"),"llms.txt"),keywords:[]}},wpseo_titles:{website_name:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-website_name",fieldLabel:(0,Et.__)("Website name","wordpress-seo"),keywords:[]},alternate_website_name:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-alternate_website_name",fieldLabel:(0,Et.__)("Alternate website name","wordpress-seo"),keywords:[]},forcerewritetitles:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-forcerewritetitle",fieldLabel:(0,Et.__)("Force rewrite titles","wordpress-seo"),keywords:[]},separator:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"input-wpseo_titles-separator-sc-dash",fieldLabel:(0,Et.__)("Title separator","wordpress-seo"),keywords:[(0,Et.__)("Divider","wordpress-seo")]},company_or_person:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_titles-company_or_person-company",fieldLabel:(0,Et.__)("Organization/person","wordpress-seo"),keywords:[(0,Et.__)("Schema","wordpress-seo"),(0,Et.__)("Structured data","wordpress-seo")]},company_name:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_titles-company_name",fieldLabel:(0,Et.__)("Organization name","wordpress-seo"),keywords:[]},company_alternate_name:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_titles-company_alternate_name",fieldLabel:(0,Et.__)("Alternate organization name","wordpress-seo"),keywords:[]},company_logo_id:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"button-wpseo_titles-company_logo-preview",fieldLabel:(0,Et.__)("Organization logo","wordpress-seo"),keywords:[(0,Et.__)("Image","wordpress-seo")]},company_or_person_user_id:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_titles-company_or_person_user_id",fieldLabel:(0,Et.__)("User","wordpress-seo"),keywords:[]},person_logo_id:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"button-wpseo_titles-person_logo-preview",fieldLabel:(0,Et.__)("Personal logo or avatar","wordpress-seo"),keywords:[(0,Et.__)("Image","wordpress-seo")]},organization_description:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_titles-org-description",fieldLabel:(0,Et.__)("Organization description","wordpress-seo"),keywords:[]},organization_email:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_titles-org-email",fieldLabel:(0,Et.__)("Organization email address","wordpress-seo"),keywords:[]},organization_phone:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_titles-org-phone",fieldLabel:(0,Et.__)("Organization phone number","wordpress-seo"),keywords:[]},organization_legal_name:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_titles-org-legal-name",fieldLabel:(0,Et.__)("Organization's legal name","wordpress-seo"),keywords:[]},organization_funding_date:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_titles-org-founding-date",fieldLabel:(0,Et.__)("Organization's founding date","wordpress-seo"),keywords:[]},organization_number_employees:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_titles-org-number-employees",fieldLabel:(0,Et.__)("Number of employees","wordpress-seo"),keywords:[]},organization_vat_id:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_titles-org-vat-id",fieldLabel:(0,Et.__)("VAT ID","wordpress-seo"),keywords:[]},organization_tax_id:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_titles-org-tax-id",fieldLabel:(0,Et.__)("Tax ID","wordpress-seo"),keywords:[]},organization_iso:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_titles-org-iso",fieldLabel:(0,Et.__)("ISO 6523","wordpress-seo"),keywords:[]},organization_duns:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_titles-org-duns",fieldLabel:(0,Et.__)("DUNS","wordpress-seo"),keywords:[]},organization_leicode:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_titles-org-leicode",fieldLabel:(0,Et.__)("LEI code","wordpress-seo"),keywords:[(0,Et.__)("leicode","wordpress-seo")]},organization_naics:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_titles-org-naics",fieldLabel:(0,Et.__)("NAICS","wordpress-seo"),keywords:[]},"title-home-wpseo":{route:"/homepage",routeLabel:(0,Et.__)("Homepage","wordpress-seo"),fieldId:"input-wpseo_titles-title-home-wpseo",fieldLabel:(0,Et.__)("SEO title","wordpress-seo"),keywords:[]},"metadesc-home-wpseo":{route:"/homepage",routeLabel:(0,Et.__)("Homepage","wordpress-seo"),fieldId:"input-wpseo_titles-metadesc-home-wpseo",fieldLabel:(0,Et.__)("Meta description","wordpress-seo"),keywords:[]},open_graph_frontpage_image_id:{route:"/homepage",routeLabel:(0,Et.__)("Homepage","wordpress-seo"),fieldId:"button-wpseo_titles-open_graph_frontpage_image-preview",fieldLabel:(0,Et.__)("Social image","wordpress-seo"),keywords:[]},open_graph_frontpage_title:{route:"/homepage",routeLabel:(0,Et.__)("Homepage","wordpress-seo"),fieldId:"input-wpseo_titles-open_graph_frontpage_title",fieldLabel:(0,Et.__)("Social title","wordpress-seo"),keywords:[]},open_graph_frontpage_desc:{route:"/homepage",routeLabel:(0,Et.__)("Homepage","wordpress-seo"),fieldId:"input-wpseo_titles-open_graph_frontpage_desc",fieldLabel:(0,Et.__)("Social description","wordpress-seo"),keywords:[]},"breadcrumbs-sep":{route:"/breadcrumbs",routeLabel:(0,Et.__)("Breadcrumbs","wordpress-seo"),fieldId:"input-wpseo_titles-breadcrumbs-sep",fieldLabel:(0,Et.__)("Separator between breadcrumbs","wordpress-seo"),keywords:[(0,Et.__)("Divider","wordpress-seo"),(0,Et.__)("Separator","wordpress-seo")]},"breadcrumbs-home":{route:"/breadcrumbs",routeLabel:(0,Et.__)("Breadcrumbs","wordpress-seo"),fieldId:"input-wpseo_titles-breadcrumbs-home",fieldLabel:(0,Et.__)("Anchor text for the homepage","wordpress-seo"),keywords:[]},"breadcrumbs-prefix":{route:"/breadcrumbs",routeLabel:(0,Et.__)("Breadcrumbs","wordpress-seo"),fieldId:"input-wpseo_titles-breadcrumbs-prefix",fieldLabel:(0,Et.__)("Prefix for the breadcrumb path","wordpress-seo"),keywords:[]},"breadcrumbs-archiveprefix":{route:"/breadcrumbs",routeLabel:(0,Et.__)("Breadcrumbs","wordpress-seo"),fieldId:"input-wpseo_titles-breadcrumbs-archiveprefix",fieldLabel:(0,Et.__)("Prefix for archive breadcrumbs","wordpress-seo"),keywords:[]},"breadcrumbs-searchprefix":{route:"/breadcrumbs",routeLabel:(0,Et.__)("Breadcrumbs","wordpress-seo"),fieldId:"input-wpseo_titles-breadcrumbs-searchprefix",fieldLabel:(0,Et.__)("Prefix for search page breadcrumbs","wordpress-seo"),keywords:[]},"breadcrumbs-404crumb":{route:"/breadcrumbs",routeLabel:(0,Et.__)("Breadcrumbs","wordpress-seo"),fieldId:"input-wpseo_titles-breadcrumbs-404crumb",fieldLabel:(0,Et.__)("Breadcrumb for 404 page","wordpress-seo"),keywords:[]},"breadcrumbs-display-blog-page":{route:"/breadcrumbs",routeLabel:(0,Et.__)("Breadcrumbs","wordpress-seo"),fieldId:"input-wpseo_titles-breadcrumbs-display-blog-page",fieldLabel:(0,Et.__)("Show blog page in breadcrumbs","wordpress-seo"),keywords:[]},"breadcrumbs-boldlast":{route:"/breadcrumbs",routeLabel:(0,Et.__)("Breadcrumbs","wordpress-seo"),fieldId:"input-wpseo_titles-breadcrumbs-boldlast",fieldLabel:(0,Et.__)("Bold the last page","wordpress-seo"),keywords:[]},"breadcrumbs-enable":{route:"/breadcrumbs",routeLabel:(0,Et.__)("Breadcrumbs","wordpress-seo"),fieldId:"input-wpseo_titles-breadcrumbs-enable",fieldLabel:(0,Et.__)("Enable breadcrumbs for your theme","wordpress-seo"),keywords:[]},...(0,le.reduce)(e,((e,r)=>{const o=(0,le.filter)(t,(e=>(0,le.includes)(e.postTypes,r.name)));return(0,le.isEmpty)(o)?e:{...e,[`post_types-${r.name}-maintax`]:{route:"/breadcrumbs",routeLabel:(0,Et.__)("Breadcrumbs","wordpress-seo"),fieldId:`input-wpseo_titles-post_types-${r.name}-maintax`, // translators: %1$s expands to the post type plural, e.g. posts. -fieldLabel:(0,Et.sprintf)((0,Et.__)("Breadcrumbs for %1$s","wordpress-seo"),Fi(r.label,s)),keywords:[]}}}),{}),...(0,le.reduce)(t,((e,t)=>({...e,[`taxonomy-${t.name}-ptparent`]:{route:"/breadcrumbs",routeLabel:(0,Et.__)("Breadcrumbs","wordpress-seo"),fieldId:`input-wpseo_titles-taxonomy-${t.name}-ptparent`, +fieldLabel:(0,Et.sprintf)((0,Et.__)("Breadcrumbs for %1$s","wordpress-seo"),ya(r.label,s)),keywords:[]}}}),{}),...(0,le.reduce)(t,((e,t)=>({...e,[`taxonomy-${t.name}-ptparent`]:{route:"/breadcrumbs",routeLabel:(0,Et.__)("Breadcrumbs","wordpress-seo"),fieldId:`input-wpseo_titles-taxonomy-${t.name}-ptparent`, // translators: %1$s expands to the taxonomy plural, e.g. categories. -fieldLabel:(0,Et.sprintf)((0,Et.__)("Breadcrumbs for %1$s","wordpress-seo"),Fi(t.label,s)),keywords:[]}})),{}),"disable-author":{route:"/author-archives",routeLabel:(0,Et.__)("Author archives","wordpress-seo"),fieldId:"input-wpseo_titles-disable-author",fieldLabel:(0,Et.__)("Enable author archives","wordpress-seo"),keywords:[]},"noindex-author-wpseo":{route:"/author-archives",routeLabel:(0,Et.__)("Author archives","wordpress-seo"),fieldId:"input-wpseo_titles-noindex-author-wpseo",fieldLabel:(0,Et.__)("Show author archives in search results","wordpress-seo"),keywords:[]},"noindex-author-noposts-wpseo":{route:"/author-archives",routeLabel:(0,Et.__)("Author archives","wordpress-seo"),fieldId:"input-wpseo_titles-noindex-author-noposts-wpseo",fieldLabel:(0,Et.__)("Show archives for authors without posts in search results","wordpress-seo"),keywords:[]},"title-author-wpseo":{route:"/author-archives",routeLabel:(0,Et.__)("Author archives","wordpress-seo"),fieldId:"input-wpseo_titles-title-author-wpseo",fieldLabel:(0,Et.__)("SEO title","wordpress-seo"),keywords:[]},"metadesc-author-wpseo":{route:"/author-archives",routeLabel:(0,Et.__)("Author archives","wordpress-seo"),fieldId:"input-wpseo_titles-metadesc-author-wpseo",fieldLabel:(0,Et.__)("Meta description","wordpress-seo"),keywords:[]},"social-image-id-author-wpseo":{route:"/author-archives",routeLabel:(0,Et.__)("Author archives","wordpress-seo"),fieldId:"button-wpseo_titles-social-image-author-wpseo-preview",fieldLabel:(0,Et.__)("Social image","wordpress-seo"),keywords:[]},"social-title-author-wpseo":{route:"/author-archives",routeLabel:(0,Et.__)("Author archives","wordpress-seo"),fieldId:"input-wpseo_titles-social-title-author-wpseo",fieldLabel:(0,Et.__)("Social title","wordpress-seo"),keywords:[]},"social-description-author-wpseo":{route:"/author-archives",routeLabel:(0,Et.__)("Author archives","wordpress-seo"),fieldId:"input-wpseo_titles-social-description-author-wpseo",fieldLabel:(0,Et.__)("Social description","wordpress-seo"),keywords:[]},"disable-date":{route:"/date-archives",routeLabel:(0,Et.__)("Date archives","wordpress-seo"),fieldId:"input-wpseo_titles-disable-date",fieldLabel:(0,Et.__)("Enable date archives","wordpress-seo"),keywords:[]},"noindex-archive-wpseo":{route:"/date-archives",routeLabel:(0,Et.__)("Date archives","wordpress-seo"),fieldId:"input-wpseo_titles-noindex-archive-wpseo",fieldLabel:(0,Et.__)("Show date archives in search results","wordpress-seo"),keywords:[]},"title-archive-wpseo":{route:"/date-archives",routeLabel:(0,Et.__)("Date archives","wordpress-seo"),fieldId:"input-wpseo_titles-title-archive-wpseo",fieldLabel:(0,Et.__)("SEO title","wordpress-seo"),keywords:[]},"metadesc-archive-wpseo":{route:"/date-archives",routeLabel:(0,Et.__)("Date archives","wordpress-seo"),fieldId:"input-wpseo_titles-metadesc-archive-wpseo",fieldLabel:(0,Et.__)("Meta description","wordpress-seo"),keywords:[]},"social-image-id-archive-wpseo":{route:"/date-archives",routeLabel:(0,Et.__)("Date archives","wordpress-seo"),fieldId:"button-wpseo_titles-social-image-archive-wpseo-preview",fieldLabel:(0,Et.__)("Social image","wordpress-seo"),keywords:[]},"social-title-archive-wpseo":{route:"/date-archives",routeLabel:(0,Et.__)("Date archives","wordpress-seo"),fieldId:"input-wpseo_titles-social-title-archive-wpseo",fieldLabel:(0,Et.__)("Social title","wordpress-seo"),keywords:[]},"social-description-archive-wpseo":{route:"/date-archives",routeLabel:(0,Et.__)("Date archives","wordpress-seo"),fieldId:"input-wpseo_titles-social-description-archive-wpseo",fieldLabel:(0,Et.__)("Social description","wordpress-seo"),keywords:[]},"title-search-wpseo":{route:"/special-pages",routeLabel:(0,Et.__)("Special pages","wordpress-seo"),fieldId:"input-wpseo_titles-title-search-wpseo",fieldLabel:(0,Et.__)("Search pages title","wordpress-seo"),keywords:[]},"title-404-wpseo":{route:"/special-pages",routeLabel:(0,Et.__)("Special pages","wordpress-seo"),fieldId:"input-wpseo_titles-title-404-wpseo",fieldLabel:(0,Et.__)("404 pages title","wordpress-seo"),keywords:[]},"disable-attachment":{route:"/media-pages",routeLabel:(0,Et.__)("Media pages","wordpress-seo"),fieldId:"input-wpseo_titles-disable-attachment",fieldLabel:(0,Et.__)("Media pages","wordpress-seo"),keywords:[(0,Et.__)("Attachment","wordpress-seo"),(0,Et.__)("Image","wordpress-seo"),(0,Et.__)("Video","wordpress-seo"),(0,Et.__)("PDF","wordpress-seo"),(0,Et.__)("File","wordpress-seo")]},"noindex-attachment":{route:"/media-pages",routeLabel:(0,Et.__)("Media pages","wordpress-seo"),fieldId:"input-wpseo_titles-noindex-attachment",fieldLabel:(0,Et.__)("Show media pages in search results","wordpress-seo"),keywords:[(0,Et.__)("Image","wordpress-seo"),(0,Et.__)("Video","wordpress-seo"),(0,Et.__)("PDF","wordpress-seo"),(0,Et.__)("File","wordpress-seo")]},"title-attachment":{route:"/media-pages",routeLabel:(0,Et.__)("Media pages","wordpress-seo"),fieldId:"input-wpseo_titles-title-attachment",fieldLabel:(0,Et.__)("SEO title","wordpress-seo"),keywords:[(0,Et.__)("Image","wordpress-seo"),(0,Et.__)("Video","wordpress-seo"),(0,Et.__)("PDF","wordpress-seo"),(0,Et.__)("File","wordpress-seo")]},"metadesc-attachment":{route:"/media-pages",routeLabel:(0,Et.__)("Media pages","wordpress-seo"),fieldId:"input-wpseo_titles-metadesc-attachment",fieldLabel:(0,Et.__)("Meta description","wordpress-seo"),keywords:[(0,Et.__)("Image","wordpress-seo"),(0,Et.__)("Video","wordpress-seo"),(0,Et.__)("PDF","wordpress-seo"),(0,Et.__)("File","wordpress-seo")]},"schema-page-type-attachment":{route:"/media-pages",routeLabel:(0,Et.__)("Media pages","wordpress-seo"),fieldId:"input-wpseo_titles-schema-page-type-attachment",fieldLabel:(0,Et.__)("Page type","wordpress-seo"),keywords:[(0,Et.__)("Schema","wordpress-seo"),(0,Et.__)("Structured data","wordpress-seo"),(0,Et.__)("Image","wordpress-seo"),(0,Et.__)("Video","wordpress-seo"),(0,Et.__)("PDF","wordpress-seo"),(0,Et.__)("File","wordpress-seo")]},"schema-article-type-attachment":{route:"/media-pages",routeLabel:(0,Et.__)("Media pages","wordpress-seo"),fieldId:"input-wpseo_titles-schema-article-type-attachment",fieldLabel:(0,Et.__)("Article type","wordpress-seo"),keywords:[(0,Et.__)("Schema","wordpress-seo"),(0,Et.__)("Structured data","wordpress-seo"),(0,Et.__)("Image","wordpress-seo"),(0,Et.__)("Video","wordpress-seo"),(0,Et.__)("PDF","wordpress-seo"),(0,Et.__)("File","wordpress-seo")]},"display-metabox-pt-attachment":{route:"/media-pages",routeLabel:(0,Et.__)("Media pages","wordpress-seo"),fieldId:"input-wpseo_titles-display-metabox-pt-attachment",fieldLabel:(0,Et.__)("Enable SEO controls and assessments","wordpress-seo"),keywords:[(0,Et.__)("Image","wordpress-seo"),(0,Et.__)("Video","wordpress-seo"),(0,Et.__)("PDF","wordpress-seo"),(0,Et.__)("File","wordpress-seo")]},"disable-post_format":{route:"/format-archives",routeLabel:(0,Et.__)("Format archives","wordpress-seo"),fieldId:"input-wpseo_titles-disable-post_format",fieldLabel:(0,Et.__)("Enable format-based archives","wordpress-seo"),keywords:[]},"noindex-tax-post_format":{route:"/format-archives",routeLabel:(0,Et.__)("Format archives","wordpress-seo"),fieldId:"input-wpseo_titles-noindex-tax-post_format",fieldLabel:(0,Et.__)("Show format archives in search results","wordpress-seo"),keywords:[]},"title-tax-post_format":{route:"/format-archives",routeLabel:(0,Et.__)("Format archives","wordpress-seo"),fieldId:"input-wpseo_titles-title-tax-post_format",fieldLabel:(0,Et.__)("SEO title","wordpress-seo"),keywords:[]},"metadesc-tax-post_format":{route:"/format-archives",routeLabel:(0,Et.__)("Format archives","wordpress-seo"),fieldId:"input-wpseo_titles-metadesc-tax-post_format",fieldLabel:(0,Et.__)("Meta description","wordpress-seo"),keywords:[]},"social-image-id-tax-post_format":{route:"/format-archives",routeLabel:(0,Et.__)("Format archives","wordpress-seo"),fieldId:"button-wpseo_titles-social-image-tax-post_format-preview",fieldLabel:(0,Et.__)("Social image","wordpress-seo"),keywords:[]},"social-title-tax-post_format":{route:"/format-archives",routeLabel:(0,Et.__)("Format archives","wordpress-seo"),fieldId:"input-wpseo_titles-social-title-tax-post_format",fieldLabel:(0,Et.__)("Social title","wordpress-seo"),keywords:[]},"social-description-tax-post_format":{route:"/format-archives",routeLabel:(0,Et.__)("Format archives","wordpress-seo"),fieldId:"input-wpseo_titles-social-description-tax-post_format",fieldLabel:(0,Et.__)("Social description","wordpress-seo"),keywords:[]},rssbefore:{route:"/rss",routeLabel:"RSS",fieldId:"input-wpseo_titles-rssbefore",fieldLabel:(0,Et.__)("Content to put before each post in the feed","wordpress-seo"),keywords:[]},rssafter:{route:"/rss",routeLabel:"RSS",fieldId:"input-wpseo_titles-rssafter",fieldLabel:(0,Et.__)("Content to put after each post in the feed","wordpress-seo"),keywords:[]},...(0,le.reduce)((0,le.omit)(e,["attachment"]),((e,t)=>({...e,...Ti(t,{userLocale:s})})),{}),...(0,le.reduce)((0,le.omit)(t,["post_format"]),((e,t)=>({...e,...$i(t,{userLocale:s})})),{})},wpseo_social:{opengraph:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo_social-opengraph",fieldLabel:(0,Et.__)("Open Graph data","wordpress-seo"),keywords:[(0,Et.__)("Social","wordpress-seo"),(0,Et.__)("OpenGraph","wordpress-seo"),(0,Et.__)("Facebook","wordpress-seo"),(0,Et.__)("Share","wordpress-seo")]},twitter:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo_social-twitter",fieldLabel:(0,Et.__)("X card data","wordpress-seo"),keywords:[(0,Et.__)("Social","wordpress-seo"),(0,Et.__)("Share","wordpress-seo"),(0,Et.__)("Tweet","wordpress-seo"),(0,Et.__)("Twitter","wordpress-seo")]},og_default_image_id:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"button-wpseo_social-og_default_image-preview",fieldLabel:(0,Et.__)("Site image","wordpress-seo"),keywords:[]},pinterestverify:{route:"/site-connections",routeLabel:(0,Et.__)("Site connections","wordpress-seo"),fieldId:"input-wpseo_social-pinterestverify",fieldLabel:(0,Et.__)("Pinterest","wordpress-seo"),keywords:[(0,Et.__)("Webmaster","wordpress-seo")]},facebook_site:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_social-facebook_site",fieldLabel:(0,Et.__)("Organization Facebook","wordpress-seo"),keywords:[(0,Et.__)("Social","wordpress-seo"),(0,Et.__)("Open Graph","wordpress-seo"),(0,Et.__)("OpenGraph","wordpress-seo"),(0,Et.__)("Share","wordpress-seo")]},twitter_site:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_social-twitter_site",fieldLabel:(0,Et.__)("Organization X","wordpress-seo"),keywords:[(0,Et.__)("Social","wordpress-seo"),(0,Et.__)("Share","wordpress-seo"),(0,Et.__)("Tweet","wordpress-seo"),(0,Et.__)("Twitter","wordpress-seo")]},mastodon_url:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_social-mastodon_url",fieldLabel:(0,Et.__)("Organization Mastodon","wordpress-seo"),keywords:[(0,Et.__)("Social","wordpress-seo"),(0,Et.__)("Share","wordpress-seo")]},other_social_urls:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"fieldset-wpseo_social-other_social_urls",fieldLabel:(0,Et.__)("Other social profiles","wordpress-seo"),keywords:[],...(0,le.times)(25,(e=>({route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:`input-wpseo_social-other_social_urls-${e}`, +fieldLabel:(0,Et.sprintf)((0,Et.__)("Breadcrumbs for %1$s","wordpress-seo"),ya(t.label,s)),keywords:[]}})),{}),"disable-author":{route:"/author-archives",routeLabel:(0,Et.__)("Author archives","wordpress-seo"),fieldId:"input-wpseo_titles-disable-author",fieldLabel:(0,Et.__)("Enable author archives","wordpress-seo"),keywords:[]},"noindex-author-wpseo":{route:"/author-archives",routeLabel:(0,Et.__)("Author archives","wordpress-seo"),fieldId:"input-wpseo_titles-noindex-author-wpseo",fieldLabel:(0,Et.__)("Show author archives in search results","wordpress-seo"),keywords:[]},"noindex-author-noposts-wpseo":{route:"/author-archives",routeLabel:(0,Et.__)("Author archives","wordpress-seo"),fieldId:"input-wpseo_titles-noindex-author-noposts-wpseo",fieldLabel:(0,Et.__)("Show archives for authors without posts in search results","wordpress-seo"),keywords:[]},"title-author-wpseo":{route:"/author-archives",routeLabel:(0,Et.__)("Author archives","wordpress-seo"),fieldId:"input-wpseo_titles-title-author-wpseo",fieldLabel:(0,Et.__)("SEO title","wordpress-seo"),keywords:[]},"metadesc-author-wpseo":{route:"/author-archives",routeLabel:(0,Et.__)("Author archives","wordpress-seo"),fieldId:"input-wpseo_titles-metadesc-author-wpseo",fieldLabel:(0,Et.__)("Meta description","wordpress-seo"),keywords:[]},"social-image-id-author-wpseo":{route:"/author-archives",routeLabel:(0,Et.__)("Author archives","wordpress-seo"),fieldId:"button-wpseo_titles-social-image-author-wpseo-preview",fieldLabel:(0,Et.__)("Social image","wordpress-seo"),keywords:[]},"social-title-author-wpseo":{route:"/author-archives",routeLabel:(0,Et.__)("Author archives","wordpress-seo"),fieldId:"input-wpseo_titles-social-title-author-wpseo",fieldLabel:(0,Et.__)("Social title","wordpress-seo"),keywords:[]},"social-description-author-wpseo":{route:"/author-archives",routeLabel:(0,Et.__)("Author archives","wordpress-seo"),fieldId:"input-wpseo_titles-social-description-author-wpseo",fieldLabel:(0,Et.__)("Social description","wordpress-seo"),keywords:[]},"disable-date":{route:"/date-archives",routeLabel:(0,Et.__)("Date archives","wordpress-seo"),fieldId:"input-wpseo_titles-disable-date",fieldLabel:(0,Et.__)("Enable date archives","wordpress-seo"),keywords:[]},"noindex-archive-wpseo":{route:"/date-archives",routeLabel:(0,Et.__)("Date archives","wordpress-seo"),fieldId:"input-wpseo_titles-noindex-archive-wpseo",fieldLabel:(0,Et.__)("Show date archives in search results","wordpress-seo"),keywords:[]},"title-archive-wpseo":{route:"/date-archives",routeLabel:(0,Et.__)("Date archives","wordpress-seo"),fieldId:"input-wpseo_titles-title-archive-wpseo",fieldLabel:(0,Et.__)("SEO title","wordpress-seo"),keywords:[]},"metadesc-archive-wpseo":{route:"/date-archives",routeLabel:(0,Et.__)("Date archives","wordpress-seo"),fieldId:"input-wpseo_titles-metadesc-archive-wpseo",fieldLabel:(0,Et.__)("Meta description","wordpress-seo"),keywords:[]},"social-image-id-archive-wpseo":{route:"/date-archives",routeLabel:(0,Et.__)("Date archives","wordpress-seo"),fieldId:"button-wpseo_titles-social-image-archive-wpseo-preview",fieldLabel:(0,Et.__)("Social image","wordpress-seo"),keywords:[]},"social-title-archive-wpseo":{route:"/date-archives",routeLabel:(0,Et.__)("Date archives","wordpress-seo"),fieldId:"input-wpseo_titles-social-title-archive-wpseo",fieldLabel:(0,Et.__)("Social title","wordpress-seo"),keywords:[]},"social-description-archive-wpseo":{route:"/date-archives",routeLabel:(0,Et.__)("Date archives","wordpress-seo"),fieldId:"input-wpseo_titles-social-description-archive-wpseo",fieldLabel:(0,Et.__)("Social description","wordpress-seo"),keywords:[]},"title-search-wpseo":{route:"/special-pages",routeLabel:(0,Et.__)("Special pages","wordpress-seo"),fieldId:"input-wpseo_titles-title-search-wpseo",fieldLabel:(0,Et.__)("Search pages title","wordpress-seo"),keywords:[]},"title-404-wpseo":{route:"/special-pages",routeLabel:(0,Et.__)("Special pages","wordpress-seo"),fieldId:"input-wpseo_titles-title-404-wpseo",fieldLabel:(0,Et.__)("404 pages title","wordpress-seo"),keywords:[]},"disable-attachment":{route:"/media-pages",routeLabel:(0,Et.__)("Media pages","wordpress-seo"),fieldId:"input-wpseo_titles-disable-attachment",fieldLabel:(0,Et.__)("Media pages","wordpress-seo"),keywords:[(0,Et.__)("Attachment","wordpress-seo"),(0,Et.__)("Image","wordpress-seo"),(0,Et.__)("Video","wordpress-seo"),(0,Et.__)("PDF","wordpress-seo"),(0,Et.__)("File","wordpress-seo")]},"noindex-attachment":{route:"/media-pages",routeLabel:(0,Et.__)("Media pages","wordpress-seo"),fieldId:"input-wpseo_titles-noindex-attachment",fieldLabel:(0,Et.__)("Show media pages in search results","wordpress-seo"),keywords:[(0,Et.__)("Image","wordpress-seo"),(0,Et.__)("Video","wordpress-seo"),(0,Et.__)("PDF","wordpress-seo"),(0,Et.__)("File","wordpress-seo")]},"title-attachment":{route:"/media-pages",routeLabel:(0,Et.__)("Media pages","wordpress-seo"),fieldId:"input-wpseo_titles-title-attachment",fieldLabel:(0,Et.__)("SEO title","wordpress-seo"),keywords:[(0,Et.__)("Image","wordpress-seo"),(0,Et.__)("Video","wordpress-seo"),(0,Et.__)("PDF","wordpress-seo"),(0,Et.__)("File","wordpress-seo")]},"metadesc-attachment":{route:"/media-pages",routeLabel:(0,Et.__)("Media pages","wordpress-seo"),fieldId:"input-wpseo_titles-metadesc-attachment",fieldLabel:(0,Et.__)("Meta description","wordpress-seo"),keywords:[(0,Et.__)("Image","wordpress-seo"),(0,Et.__)("Video","wordpress-seo"),(0,Et.__)("PDF","wordpress-seo"),(0,Et.__)("File","wordpress-seo")]},"schema-page-type-attachment":{route:"/media-pages",routeLabel:(0,Et.__)("Media pages","wordpress-seo"),fieldId:"input-wpseo_titles-schema-page-type-attachment",fieldLabel:(0,Et.__)("Page type","wordpress-seo"),keywords:[(0,Et.__)("Schema","wordpress-seo"),(0,Et.__)("Structured data","wordpress-seo"),(0,Et.__)("Image","wordpress-seo"),(0,Et.__)("Video","wordpress-seo"),(0,Et.__)("PDF","wordpress-seo"),(0,Et.__)("File","wordpress-seo")]},"schema-article-type-attachment":{route:"/media-pages",routeLabel:(0,Et.__)("Media pages","wordpress-seo"),fieldId:"input-wpseo_titles-schema-article-type-attachment",fieldLabel:(0,Et.__)("Article type","wordpress-seo"),keywords:[(0,Et.__)("Schema","wordpress-seo"),(0,Et.__)("Structured data","wordpress-seo"),(0,Et.__)("Image","wordpress-seo"),(0,Et.__)("Video","wordpress-seo"),(0,Et.__)("PDF","wordpress-seo"),(0,Et.__)("File","wordpress-seo")]},"display-metabox-pt-attachment":{route:"/media-pages",routeLabel:(0,Et.__)("Media pages","wordpress-seo"),fieldId:"input-wpseo_titles-display-metabox-pt-attachment",fieldLabel:(0,Et.__)("Enable SEO controls and assessments","wordpress-seo"),keywords:[(0,Et.__)("Image","wordpress-seo"),(0,Et.__)("Video","wordpress-seo"),(0,Et.__)("PDF","wordpress-seo"),(0,Et.__)("File","wordpress-seo")]},"disable-post_format":{route:"/format-archives",routeLabel:(0,Et.__)("Format archives","wordpress-seo"),fieldId:"input-wpseo_titles-disable-post_format",fieldLabel:(0,Et.__)("Enable format-based archives","wordpress-seo"),keywords:[]},"noindex-tax-post_format":{route:"/format-archives",routeLabel:(0,Et.__)("Format archives","wordpress-seo"),fieldId:"input-wpseo_titles-noindex-tax-post_format",fieldLabel:(0,Et.__)("Show format archives in search results","wordpress-seo"),keywords:[]},"title-tax-post_format":{route:"/format-archives",routeLabel:(0,Et.__)("Format archives","wordpress-seo"),fieldId:"input-wpseo_titles-title-tax-post_format",fieldLabel:(0,Et.__)("SEO title","wordpress-seo"),keywords:[]},"metadesc-tax-post_format":{route:"/format-archives",routeLabel:(0,Et.__)("Format archives","wordpress-seo"),fieldId:"input-wpseo_titles-metadesc-tax-post_format",fieldLabel:(0,Et.__)("Meta description","wordpress-seo"),keywords:[]},"social-image-id-tax-post_format":{route:"/format-archives",routeLabel:(0,Et.__)("Format archives","wordpress-seo"),fieldId:"button-wpseo_titles-social-image-tax-post_format-preview",fieldLabel:(0,Et.__)("Social image","wordpress-seo"),keywords:[]},"social-title-tax-post_format":{route:"/format-archives",routeLabel:(0,Et.__)("Format archives","wordpress-seo"),fieldId:"input-wpseo_titles-social-title-tax-post_format",fieldLabel:(0,Et.__)("Social title","wordpress-seo"),keywords:[]},"social-description-tax-post_format":{route:"/format-archives",routeLabel:(0,Et.__)("Format archives","wordpress-seo"),fieldId:"input-wpseo_titles-social-description-tax-post_format",fieldLabel:(0,Et.__)("Social description","wordpress-seo"),keywords:[]},rssbefore:{route:"/rss",routeLabel:"RSS",fieldId:"input-wpseo_titles-rssbefore",fieldLabel:(0,Et.__)("Content to put before each post in the feed","wordpress-seo"),keywords:[]},rssafter:{route:"/rss",routeLabel:"RSS",fieldId:"input-wpseo_titles-rssafter",fieldLabel:(0,Et.__)("Content to put after each post in the feed","wordpress-seo"),keywords:[]},...(0,le.reduce)((0,le.omit)(e,["attachment"]),((e,t)=>({...e,...wa(t,{userLocale:s})})),{}),...(0,le.reduce)((0,le.omit)(t,["post_format"]),((e,t)=>({...e,...ga(t,{userLocale:s})})),{})},wpseo_social:{opengraph:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo_social-opengraph",fieldLabel:(0,Et.__)("Open Graph data","wordpress-seo"),keywords:[(0,Et.__)("Social","wordpress-seo"),(0,Et.__)("OpenGraph","wordpress-seo"),(0,Et.__)("Facebook","wordpress-seo"),(0,Et.__)("Share","wordpress-seo")]},twitter:{route:"/site-features",routeLabel:(0,Et.__)("Site features","wordpress-seo"),fieldId:"card-wpseo_social-twitter",fieldLabel:(0,Et.__)("X card data","wordpress-seo"),keywords:[(0,Et.__)("Social","wordpress-seo"),(0,Et.__)("Share","wordpress-seo"),(0,Et.__)("Tweet","wordpress-seo"),(0,Et.__)("Twitter","wordpress-seo")]},og_default_image_id:{route:"/site-basics",routeLabel:(0,Et.__)("Site basics","wordpress-seo"),fieldId:"button-wpseo_social-og_default_image-preview",fieldLabel:(0,Et.__)("Site image","wordpress-seo"),keywords:[]},pinterestverify:{route:"/site-connections",routeLabel:(0,Et.__)("Site connections","wordpress-seo"),fieldId:"input-wpseo_social-pinterestverify",fieldLabel:(0,Et.__)("Pinterest","wordpress-seo"),keywords:[(0,Et.__)("Webmaster","wordpress-seo")]},facebook_site:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_social-facebook_site",fieldLabel:(0,Et.__)("Organization Facebook","wordpress-seo"),keywords:[(0,Et.__)("Social","wordpress-seo"),(0,Et.__)("Open Graph","wordpress-seo"),(0,Et.__)("OpenGraph","wordpress-seo"),(0,Et.__)("Share","wordpress-seo")]},twitter_site:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_social-twitter_site",fieldLabel:(0,Et.__)("Organization X","wordpress-seo"),keywords:[(0,Et.__)("Social","wordpress-seo"),(0,Et.__)("Share","wordpress-seo"),(0,Et.__)("Tweet","wordpress-seo"),(0,Et.__)("Twitter","wordpress-seo")]},mastodon_url:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"input-wpseo_social-mastodon_url",fieldLabel:(0,Et.__)("Organization Mastodon","wordpress-seo"),keywords:[(0,Et.__)("Social","wordpress-seo"),(0,Et.__)("Share","wordpress-seo")]},other_social_urls:{route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:"fieldset-wpseo_social-other_social_urls",fieldLabel:(0,Et.__)("Other social profiles","wordpress-seo"),keywords:[],...(0,le.times)(25,(e=>({route:"/site-representation",routeLabel:(0,Et.__)("Site representation","wordpress-seo"),fieldId:`input-wpseo_social-other_social_urls-${e}`, // translators: %1$s expands to array index + 1. -fieldLabel:(0,Et.sprintf)((0,Et.__)("Other profile %1$s","wordpress-seo"),e+1)})))}}}),Pi=async e=>{const{endpoint:s,nonce:r}=(0,le.get)(window,"wpseoScriptData",{}),o=new FormData;o.set("option_page","wpseo_page_settings"),o.set("_wp_http_referer","admin.php?page=wpseo_page_settings_saved"),o.set("action","update"),o.set("_wpnonce",r),(0,le.forEach)(e,((e,t)=>{(0,le.isObject)(e)?(0,le.forEach)(e,((e,s)=>{(0,le.isArray)(e)?(0,le.forEach)(e,((e,r)=>o.set(`${t}[${s}][${r}]`,e))):o.set(`${t}[${s}]`,e)})):o.set(t,e)}));try{const e=await fetch(s,{method:"POST",body:new URLSearchParams(o)}),r=await e.text();if((0,le.includes)(r,"{{ yoast-success: false }}"))throw new Error("Yoast options invalid.");if((e=>{const{setGenerationFailure:s}=(0,t.dispatch)(ho);if((0,le.includes)(e,"{{ yoast-llms-txt-generation-failure: "))return(0,le.includes)(e,`{{ yoast-llms-txt-generation-failure: ${fo} }}`)?void s({generationFailure:!0,generationFailureReason:fo}):(0,le.includes)(e,`{{ yoast-llms-txt-generation-failure: ${_o} }}`)?void s({generationFailure:!0,generationFailureReason:_o}):void s({generationFailure:!0,generationFailureReason:"unknown"});s({generationFailure:!1,generationFailureReason:""})})(r),!e.url.endsWith("settings-updated=true"))throw new Error("WordPress options save did not get to the end.")}catch(e){throw new Error(e.message)}},Ni=async(e,{resetForm:s})=>{const{addNotification:r}=(0,t.dispatch)(ho),{selectPreference:o}=(0,t.select)(ho),a=o("canManageOptions",!1);try{return await Promise.all([Pi(a?e:(0,le.omit)(e,["blogdescription"]))]),r({variant:"success",title:(0,Et.__)("Great! Your settings were saved successfully.","wordpress-seo")}),s({values:e}),!0}catch(e){return r({id:"submit-error",variant:"error",title:(0,Et.__)("Oops! Something went wrong while saving.","wordpress-seo")}),console.error("Error while saving:",e.message),!1}};var Oi,Ci;try{Oi=Map}catch(e){}try{Ci=Set}catch(e){}function Ai(e,t,s){if(!e||"object"!=typeof e||"function"==typeof e)return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(Mi);if(Oi&&e instanceof Oi)return new Map(Array.from(e.entries()));if(Ci&&e instanceof Ci)return new Set(Array.from(e.values()));if(e instanceof Object){t.push(e);var r=Object.create(e);for(var o in s.push(r),e){var a=t.findIndex((function(t){return t===e[o]}));r[o]=a>-1?s[a]:Ai(e[o],t,s)}return r}return e}function Mi(e){return Ai(e,[],[])}const Ii=Object.prototype.toString,Di=Error.prototype.toString,Bi=RegExp.prototype.toString,Ui="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",Vi=/^Symbol\((.*)\)(.*)$/;function zi(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const s=typeof e;if("number"===s)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===s)return t?`"${e}"`:e;if("function"===s)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===s)return Ui.call(e).replace(Vi,"Symbol($1)");const r=Ii.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+Di.call(e)+"]":"RegExp"===r?Bi.call(e):null}function qi(e,t){let s=zi(e,t);return null!==s?s:JSON.stringify(e,(function(e,s){let r=zi(this[e],t);return null!==r?r:s}),2)}let Wi={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:s,originalValue:r})=>{let o=null!=r&&r!==s,a=`${e} must be a \`${t}\` type, but the final value was: \`${qi(s,!0)}\``+(o?` (cast from the value \`${qi(r,!0)}\`).`:".");return null===s&&(a+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),a},defined:"${path} must be defined"},Hi={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Gi={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Yi={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Zi={noUnknown:"${path} field has unspecified keys: ${unknown}"},Ki={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:Wi,string:Hi,number:Gi,date:Yi,object:Zi,array:Ki,boolean:{isValue:"${path} field must be ${value}"}});const Ji=window.lodash.has;var Qi=s.n(Ji);const Xi=e=>e&&e.__isYupSchema__,en=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t)return void(this.fn=t);if(!Qi()(t,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:s,then:r,otherwise:o}=t,a="function"==typeof s?s:(...e)=>e.every((e=>e===s));this.fn=function(...e){let t=e.pop(),s=e.pop(),i=a(...e)?r:o;if(i)return"function"==typeof i?i(s):s.concat(i.resolve(t))}}resolve(e,t){let s=this.refs.map((e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context))),r=this.fn.apply(e,s.concat(e,t));if(void 0===r||r===e)return e;if(!Xi(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}};function tn(e){return null==e?[]:[].concat(e)}function sn(){return sn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},sn.apply(this,arguments)}let rn=/\$\{\s*(\w+)\s*\}/g;class on extends Error{static formatError(e,t){const s=t.label||t.path||"this";return s!==t.path&&(t=sn({},t,{path:s})),"string"==typeof e?e.replace(rn,((e,s)=>qi(t[s]))):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,s,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=s,this.type=r,this.errors=[],this.inner=[],tn(e).forEach((e=>{on.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)})),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,on)}}function an(e,t){let{endEarly:s,tests:r,args:o,value:a,errors:i,sort:n,path:l}=e,d=(e=>{let t=!1;return(...s)=>{t||(t=!0,e(...s))}})(t),c=r.length;const u=[];if(i=i||[],!c)return i.length?d(new on(i,a,l)):d(null,a);for(let e=0;e<r.length;e++)(0,r[e])(o,(function(e){if(e){if(!on.isError(e))return d(e,a);if(s)return e.value=a,d(e,a);u.push(e)}if(--c<=0){if(u.length&&(n&&u.sort(n),i.length&&u.push(...i),i=u),i.length)return void d(new on(i,a,l),a);d(null,a)}}))}const nn=window.lodash.mapValues;var ln=s.n(nn),dn=s(5760);class cn{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext="$"===this.key[0],this.isValue="."===this.key[0],this.isSibling=!this.isContext&&!this.isValue;let s=this.isContext?"$":this.isValue?".":"";this.path=this.key.slice(s.length),this.getter=this.path&&(0,dn.getter)(this.path,!0),this.map=t.map}getValue(e,t,s){let r=this.isContext?s:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}function un(){return un=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},un.apply(this,arguments)}function pn(e){function t(t,s){let{value:r,path:o="",label:a,options:i,originalValue:n,sync:l}=t,d=function(e,t){if(null==e)return{};var s,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)s=a[r],t.indexOf(s)>=0||(o[s]=e[s]);return o}(t,["value","path","label","options","originalValue","sync"]);const{name:c,test:u,params:p,message:m}=e;let{parent:h,context:f}=i;function _(e){return cn.isRef(e)?e.getValue(r,h,f):e}function y(e={}){const t=ln()(un({value:r,originalValue:n,label:a,path:e.path||o},p,e.params),_),s=new on(on.formatError(e.message||m,t),r,t.path,e.type||c);return s.params=t,s}let w,g=un({path:o,parent:h,type:c,createError:y,resolve:_,options:i,originalValue:n},d);if(l){try{var b;if(w=u.call(g,r,g),"function"==typeof(null==(b=w)?void 0:b.then))throw new Error(`Validation test of type: "${g.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){return void s(e)}on.isError(w)?s(w):w?s(null,w):s(y())}else try{Promise.resolve(u.call(g,r,g)).then((e=>{on.isError(e)?s(e):e?s(null,e):s(y())})).catch(s)}catch(e){s(e)}}return t.OPTIONS=e,t}function mn(e,t,s,r=s){let o,a,i;return t?((0,dn.forEach)(t,((n,l,d)=>{let c=l?(e=>e.substr(0,e.length-1).substr(1))(n):n;if((e=e.resolve({context:r,parent:o,value:s})).innerType){let r=d?parseInt(c,10):0;if(s&&r>=s.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${n}, in the path: ${t}. because there is no value at that index. `);o=s,s=s&&s[r],e=e.innerType}if(!d){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${i} which is a type: "${e._type}")`);o=s,s=s&&s[c],e=e.fields[c]}a=c,i=l?"["+n+"]":"."+n})),{schema:e,parent:o,parentPath:a}):{parent:o,parentPath:t,schema:e}}cn.prototype.__isYupRef=!0;class hn{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const e=[];for(const t of this.list)e.push(t);for(const[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce(((t,s)=>t.concat(cn.isRef(s)?e(s):s)),[])}add(e){cn.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){cn.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){const e=new hn;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){const s=this.clone();return e.list.forEach((e=>s.add(e))),e.refs.forEach((e=>s.add(e))),t.list.forEach((e=>s.delete(e))),t.refs.forEach((e=>s.delete(e))),s}}function fn(){return fn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},fn.apply(this,arguments)}class yn{constructor(e){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new hn,this._blacklist=new hn,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((()=>{this.typeError(Wi.notType)})),this.type=(null==e?void 0:e.type)||"mixed",this.spec=fn({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=fn({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=Mi(fn({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let s=e(this);return this._mutate=t,s}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,s=e.clone();const r=fn({},t.spec,s.spec);return s.spec=r,s._typeError||(s._typeError=t._typeError),s._whitelistError||(s._whitelistError=t._whitelistError),s._blacklistError||(s._blacklistError=t._blacklistError),s._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),s._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),s.tests=t.tests,s.exclusiveTests=t.exclusiveTests,s.withMutation((t=>{e.tests.forEach((e=>{t.test(e.OPTIONS)}))})),s.transforms=[...t.transforms,...s.transforms],s}isType(e){return!(!this.spec.nullable||null!==e)||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let s=t.conditions;t=t.clone(),t.conditions=[],t=s.reduce(((t,s)=>s.resolve(t,e)),t),t=t.resolve(e)}return t}cast(e,t={}){let s=this.resolve(fn({value:e},t)),r=s._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==s.isType(r)){let o=qi(e),a=qi(r);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${s._type}". \n\nattempted value: ${o} \n`+(a!==o?`result of cast: ${a}`:""))}return r}_cast(e,t){let s=void 0===e?e:this.transforms.reduce(((t,s)=>s.call(this,t,e,this)),e);return void 0===s&&(s=this.getDefault()),s}_validate(e,t={},s){let{sync:r,path:o,from:a=[],originalValue:i=e,strict:n=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,d=e;n||(d=this._cast(d,fn({assert:!1},t)));let c={value:d,path:o,options:t,originalValue:i,schema:this,label:this.spec.label,sync:r,from:a},u=[];this._typeError&&u.push(this._typeError);let p=[];this._whitelistError&&p.push(this._whitelistError),this._blacklistError&&p.push(this._blacklistError),an({args:c,value:d,path:o,sync:r,tests:u,endEarly:l},(e=>{e?s(e,d):an({tests:this.tests.concat(p),args:c,path:o,sync:r,value:d,endEarly:l},s)}))}validate(e,t,s){let r=this.resolve(fn({},t,{value:e}));return"function"==typeof s?r._validate(e,t,s):new Promise(((s,o)=>r._validate(e,t,((e,t)=>{e?o(e):s(t)}))))}validateSync(e,t){let s;return this.resolve(fn({},t,{value:e}))._validate(e,fn({},t,{sync:!0}),((e,t)=>{if(e)throw e;s=t})),s}isValid(e,t){return this.validate(e,t).then((()=>!0),(e=>{if(on.isError(e))return!1;throw e}))}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(on.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):Mi(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0===arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=Wi.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=Wi.required){return this.clone({presence:"required"}).withMutation((t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}})))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter((e=>"required"!==e.OPTIONS.name)),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=Wi.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let s=this.clone(),r=pn(t),o=t.exclusive||t.name&&!0===s.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(s.exclusiveTests[t.name]=!!t.exclusive),s.tests=s.tests.filter((e=>{if(e.OPTIONS.name===t.name){if(o)return!1;if(e.OPTIONS.test===r.OPTIONS.test)return!1}return!0})),s.tests.push(r),s}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let s=this.clone(),r=tn(e).map((e=>new cn(e)));return r.forEach((e=>{e.isSibling&&s.deps.push(e.key)})),s.conditions.push(new en(r,t)),s}typeError(e){let t=this.clone();return t._typeError=pn({message:e,name:"typeError",test(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=Wi.oneOf){let s=this.clone();return e.forEach((e=>{s._whitelist.add(e),s._blacklist.delete(e)})),s._whitelistError=pn({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,s=t.resolveAll(this.resolve);return!!s.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:s}})}}),s}notOneOf(e,t=Wi.notOneOf){let s=this.clone();return e.forEach((e=>{s._blacklist.add(e),s._whitelist.delete(e)})),s._blacklistError=pn({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,s=t.resolveAll(this.resolve);return!s.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:s}})}}),s}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){const e=this.clone(),{label:t,meta:s}=e.spec,r={meta:s,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map((e=>({name:e.OPTIONS.name,params:e.OPTIONS.params}))).filter(((e,t,s)=>s.findIndex((t=>t.name===e.name))===t))};return r}}yn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])yn.prototype[`${e}At`]=function(t,s,r={}){const{parent:o,parentPath:a,schema:i}=mn(this,t,s,r.context);return i[e](o&&o[a],fn({},r,{parent:o,path:t}))};for(const e of["equals","is"])yn.prototype[e]=yn.prototype.oneOf;for(const e of["not","nope"])yn.prototype[e]=yn.prototype.notOneOf;yn.prototype.optional=yn.prototype.notRequired;yn.prototype;const wn=e=>null==e;let gn=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,bn=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,vn=/^(?:[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,xn=e=>wn(e)||e===e.trim(),jn={}.toString();function Sn(){return new kn}class kn extends yn{constructor(){super({type:"string"}),this.withMutation((()=>{this.transform((function(e){if(this.isType(e))return e;if(Array.isArray(e))return e;const t=null!=e&&e.toString?e.toString():e;return t===jn?e:t}))}))}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=Hi.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return wn(t)||t.length===this.resolve(e)}})}min(e,t=Hi.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return wn(t)||t.length>=this.resolve(e)}})}max(e,t=Hi.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return wn(t)||t.length<=this.resolve(e)}})}matches(e,t){let s,r,o=!1;return t&&("object"==typeof t?({excludeEmptyString:o=!1,message:s,name:r}=t):s=t),this.test({name:r||"matches",message:s||Hi.matches,params:{regex:e},test:t=>wn(t)||""===t&&o||-1!==t.search(e)})}email(e=Hi.email){return this.matches(gn,{name:"email",message:e,excludeEmptyString:!0})}url(e=Hi.url){return this.matches(bn,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=Hi.uuid){return this.matches(vn,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform((e=>null===e?"":e))}trim(e=Hi.trim){return this.transform((e=>null!=e?e.trim():e)).test({message:e,name:"trim",test:xn})}lowercase(e=Hi.lowercase){return this.transform((e=>wn(e)?e:e.toLowerCase())).test({message:e,name:"string_case",exclusive:!0,test:e=>wn(e)||e===e.toLowerCase()})}uppercase(e=Hi.uppercase){return this.transform((e=>wn(e)?e:e.toUpperCase())).test({message:e,name:"string_case",exclusive:!0,test:e=>wn(e)||e===e.toUpperCase()})}}function En(){return new Ln}Sn.prototype=kn.prototype;class Ln extends yn{constructor(){super({type:"number"}),this.withMutation((()=>{this.transform((function(e){let t=e;if("string"==typeof t){if(t=t.replace(/\s/g,""),""===t)return NaN;t=+t}return this.isType(t)?t:parseFloat(t)}))}))}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!(e=>e!=+e)(e)}min(e,t=Gi.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return wn(t)||t>=this.resolve(e)}})}max(e,t=Gi.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return wn(t)||t<=this.resolve(e)}})}lessThan(e,t=Gi.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return wn(t)||t<this.resolve(e)}})}moreThan(e,t=Gi.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},test(t){return wn(t)||t>this.resolve(e)}})}positive(e=Gi.positive){return this.moreThan(0,e)}negative(e=Gi.negative){return this.lessThan(0,e)}integer(e=Gi.integer){return this.test({name:"integer",message:e,test:e=>wn(e)||Number.isInteger(e)})}truncate(){return this.transform((e=>wn(e)?e:0|e))}round(e){var t;let s=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===s.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+s.join(", "));return this.transform((t=>wn(t)?t:Math[e](t)))}}En.prototype=Ln.prototype;var Fn=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let Tn=new Date("");function $n(){return new Rn}class Rn extends yn{constructor(){super({type:"date"}),this.withMutation((()=>{this.transform((function(e){return this.isType(e)?e:(e=function(e){var t,s,r=[1,4,5,6,7,10,11],o=0;if(s=Fn.exec(e)){for(var a,i=0;a=r[i];++i)s[a]=+s[a]||0;s[2]=(+s[2]||1)-1,s[3]=+s[3]||1,s[7]=s[7]?String(s[7]).substr(0,3):0,void 0!==s[8]&&""!==s[8]||void 0!==s[9]&&""!==s[9]?("Z"!==s[8]&&void 0!==s[9]&&(o=60*s[10]+s[11],"+"===s[9]&&(o=0-o)),t=Date.UTC(s[1],s[2],s[3],s[4],s[5]+o,s[6],s[7])):t=+new Date(s[1],s[2],s[3],s[4],s[5],s[6],s[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?Tn:new Date(e))}))}))}_typeCheck(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}prepareParam(e,t){let s;if(cn.isRef(e))s=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);s=r}return s}min(e,t=Yi.min){let s=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return wn(e)||e>=this.resolve(s)}})}max(e,t=Yi.max){let s=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return wn(e)||e<=this.resolve(s)}})}}Rn.INVALID_DATE=Tn,$n.prototype=Rn.prototype,$n.INVALID_DATE=Tn;const Pn=window.lodash.snakeCase;var Nn=s.n(Pn);const On=window.lodash.camelCase;var Cn=s.n(On);const An=window.lodash.mapKeys;var Mn=s.n(An),In=s(4633),Dn=s.n(In);function Bn(e,t){let s=1/0;return e.some(((e,r)=>{var o;if(-1!==(null==(o=t.path)?void 0:o.indexOf(e)))return s=r,!0})),s}function Un(e){return(t,s)=>Bn(e,t)-Bn(e,s)}function Vn(){return Vn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Vn.apply(this,arguments)}let zn=e=>"[object Object]"===Object.prototype.toString.call(e);const qn=Un([]);class Wn extends yn{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=qn,this._nodes=[],this._excludedEdges=[],this.withMutation((()=>{this.transform((function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})),e&&this.shape(e)}))}_typeCheck(e){return zn(e)||"function"==typeof e}_cast(e,t={}){var s;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let o=this.fields,a=null!=(s=t.stripUnknown)?s:this.spec.noUnknown,i=this._nodes.concat(Object.keys(r).filter((e=>-1===this._nodes.indexOf(e)))),n={},l=Vn({},t,{parent:n,__validating:t.__validating||!1}),d=!1;for(const e of i){let s=o[e],i=Qi()(r,e);if(s){let o,a=r[e];l.path=(t.path?`${t.path}.`:"")+e,s=s.resolve({value:a,context:t.context,parent:n});let i="spec"in s?s.spec:void 0,c=null==i?void 0:i.strict;if(null==i?void 0:i.strip){d=d||e in r;continue}o=t.__validating&&c?r[e]:s.cast(r[e],l),void 0!==o&&(n[e]=o)}else i&&!a&&(n[e]=r[e]);n[e]!==r[e]&&(d=!0)}return d?n:r}_validate(e,t={},s){let r=[],{sync:o,from:a=[],originalValue:i=e,abortEarly:n=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;a=[{schema:this,value:i},...a],t.__validating=!0,t.originalValue=i,t.from=a,super._validate(e,t,((e,d)=>{if(e){if(!on.isError(e)||n)return void s(e,d);r.push(e)}if(!l||!zn(d))return void s(r[0]||null,d);i=i||d;let c=this._nodes.map((e=>(s,r)=>{let o=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,n=this.fields[e];n&&"validate"in n?n.validate(d[e],Vn({},t,{path:o,from:a,strict:!0,parent:d,originalValue:i[e]}),r):r(null)}));an({sync:o,tests:c,value:d,errors:r,endEarly:n,sort:this._sortErrors,path:t.path},s)}))}clone(e){const t=super.clone(e);return t.fields=Vn({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),s=t.fields;for(let[e,t]of Object.entries(this.fields)){const r=s[e];void 0===r?s[e]=t:r instanceof yn&&t instanceof yn&&(s[e]=t.concat(r))}return t.withMutation((()=>t.shape(s,this._excludedEdges)))}getDefaultFromShape(){let e={};return this._nodes.forEach((t=>{const s=this.fields[t];e[t]="default"in s?s.getDefault():void 0})),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let s=this.clone(),r=Object.assign(s.fields,e);return s.fields=r,s._sortErrors=Un(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),s._excludedEdges=[...s._excludedEdges,...t]),s._nodes=function(e,t=[]){let s=[],r=new Set,o=new Set(t.map((([e,t])=>`${e}-${t}`)));function a(e,t){let a=(0,dn.split)(e)[0];r.add(a),o.has(`${t}-${a}`)||s.push([t,a])}for(const t in e)if(Qi()(e,t)){let s=e[t];r.add(t),cn.isRef(s)&&s.isSibling?a(s.path,t):Xi(s)&&"deps"in s&&s.deps.forEach((e=>a(e,t)))}return Dn().array(Array.from(r),s).reverse()}(r,s._excludedEdges),s}pick(e){const t={};for(const s of e)this.fields[s]&&(t[s]=this.fields[s]);return this.clone().withMutation((e=>(e.fields={},e.shape(t))))}omit(e){const t=this.clone(),s=t.fields;t.fields={};for(const t of e)delete s[t];return t.withMutation((()=>t.shape(s)))}from(e,t,s){let r=(0,dn.getter)(e,!0);return this.transform((o=>{if(null==o)return o;let a=o;return Qi()(o,e)&&(a=Vn({},o),s||delete a[e],a[t]=r(o)),a}))}noUnknown(e=!0,t=Zi.noUnknown){"string"==typeof e&&(t=e,e=!0);let s=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const s=function(e,t){let s=Object.keys(e.fields);return Object.keys(t).filter((e=>-1===s.indexOf(e)))}(this.schema,t);return!e||0===s.length||this.createError({params:{unknown:s.join(", ")}})}});return s.spec.noUnknown=e,s}unknown(e=!0,t=Zi.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform((t=>t&&Mn()(t,((t,s)=>e(s)))))}camelCase(){return this.transformKeys(Cn())}snakeCase(){return this.transformKeys(Nn())}constantCase(){return this.transformKeys((e=>Nn()(e).toUpperCase()))}describe(){let e=super.describe();return e.fields=ln()(this.fields,(e=>e.describe())),e}}function Hn(e){return new Wn(e)}function Gn(){return Gn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Gn.apply(this,arguments)}function Yn(e){return new Zn(e)}Hn.prototype=Wn.prototype;class Zn extends yn{constructor(e){super({type:"array"}),this.innerType=void 0,this.innerType=e,this.withMutation((()=>{this.transform((function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}))}))}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,t){const s=super._cast(e,t);if(!this._typeCheck(s)||!this.innerType)return s;let r=!1;const o=s.map(((e,s)=>{const o=this.innerType.cast(e,Gn({},t,{path:`${t.path||""}[${s}]`}));return o!==e&&(r=!0),o}));return r?o:s}_validate(e,t={},s){var r,o;let a=[],i=t.sync,n=t.path,l=this.innerType,d=null!=(r=t.abortEarly)?r:this.spec.abortEarly,c=null!=(o=t.recursive)?o:this.spec.recursive,u=null!=t.originalValue?t.originalValue:e;super._validate(e,t,((e,r)=>{if(e){if(!on.isError(e)||d)return void s(e,r);a.push(e)}if(!c||!l||!this._typeCheck(r))return void s(a[0]||null,r);u=u||r;let o=new Array(r.length);for(let e=0;e<r.length;e++){let s=r[e],a=`${t.path||""}[${e}]`,i=Gn({},t,{path:a,strict:!0,parent:r,index:e,originalValue:u[e]});o[e]=(e,t)=>l.validate(s,i,t)}an({sync:i,path:n,value:r,errors:a,endEarly:d,tests:o},s)}))}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!Xi(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+qi(e));return t.innerType=e,t}length(e,t=Ki.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return wn(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||Ki.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return wn(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||Ki.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return wn(t)||t.length<=this.resolve(e)}})}ensure(){return this.default((()=>[])).transform(((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t)))}compact(e){let t=e?(t,s,r)=>!e(t,s,r):e=>!!e;return this.transform((e=>null!=e?e.filter(t):e))}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(e=!0){return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}}function Kn(e,t,s){if(!e||!Xi(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if("string"!=typeof t)throw new TypeError("A Method name must be provided");if("function"!=typeof s)throw new TypeError("Method function must be provided");e.prototype[t]=s}Yn.prototype=Zn.prototype;const Jn=/^[A-Za-z0-9_-]+$/,Qn=/^[A-Fa-f0-9_-]+$/,Xn=/^[A-Za-z0-9_]{1,25}$/,el=/^https?:\/\/(?:www\.)?(?:twitter|x)\.com\/(?<handle>[A-Za-z0-9_]{1,25})\/?$/,tl=["image/jpeg","image/png","image/webp","image/gif"];Kn(En,"isMediaTypeImage",(function(){return this.test("isMediaTypeImage",(0,Et.__)("The selected file is not an image.","wordpress-seo"),(e=>{if(!e)return!0;const s=(0,t.select)(ho).selectMediaById(e);return!s||"image"===(null==s?void 0:s.type)}))})),Kn(En,"isMediaMimeTypeAllowed",(function(){return this.test("isMediaMimeTypeAllowed",(0,Et.__)("The selected media type is not valid. Supported types are: JPG, PNG, WEBP and GIF.","wordpress-seo"),(e=>{const s=(0,t.select)(ho).selectMediaById(e);return!s||tl.includes(s.mime)}))})),Kn(Sn,"isValidTwitterUrlOrHandle",(function(){return this.test("isValidTwitterUrlOrHandle",(0,Et.__)("The profile is not valid. Please use only 1–25 letters, numbers and underscores or enter a valid X URL.","wordpress-seo"),(e=>!e||Xn.test(e)||el.test(e)))}));const sl=(e,t)=>Hn().shape({wpseo:Hn().shape({baiduverify:Sn().matches(Jn,(0,Et.__)("The verification code is not valid. Please use only letters, numbers, underscores and dashes.","wordpress-seo")),googleverify:Sn().matches(Jn,(0,Et.__)("The verification code is not valid. Please use only letters, numbers, underscores and dashes.","wordpress-seo")),ahrefsverify:Sn().matches(Jn,(0,Et.__)("The verification code is not valid. Please use only letters, numbers, underscores and dashes.","wordpress-seo")),msverify:Sn().matches(Qn,(0,Et.__)("The verification code is not valid. Please use only the letters A to F, numbers, underscores and dashes.","wordpress-seo")),yandexverify:Sn().matches(Qn,(0,Et.__)("The verification code is not valid. Please use only the letters A to F, numbers, underscores and dashes.","wordpress-seo")),search_character_limit:En().required((0,Et.__)("Please enter a number between 1 and 50.","wordpress-seo")).min(1,(0,Et.__)("The number you've entered is not between 1 and 50.","wordpress-seo")).max(50,(0,Et.__)("The number you've entered is not between 1 and 50.","wordpress-seo"))}),wpseo_social:Hn().shape({og_default_image_id:En().isMediaTypeImage(),facebook_site:Sn().url((0,Et.__)("The profile is not valid. Please enter a valid URL.","wordpress-seo")),mastodon_url:Sn().url((0,Et.__)("The profile is not valid. Please enter a valid URL.","wordpress-seo")),twitter_site:Sn().isValidTwitterUrlOrHandle(),other_social_urls:Yn().of(Sn().url((0,Et.__)("The profile is not valid. Please enter a valid URL.","wordpress-seo"))),pinterestverify:Sn().matches(Qn,(0,Et.__)("The verification code is not valid. Please use only the letters A to F, numbers, underscores and dashes.","wordpress-seo"))}),wpseo_titles:Hn().shape({open_graph_frontpage_image_id:En().isMediaTypeImage(),company_logo_id:En().isMediaTypeImage(),person_logo_id:En().isMediaTypeImage(),...(0,le.reduce)(e,((e,{name:t,hasArchive:s})=>({...e,..."attachment"!==t&&{[`social-image-id-${t}`]:En().isMediaTypeImage().isMediaMimeTypeAllowed()},...s&&{[`social-image-id-ptarchive-${t}`]:En().isMediaTypeImage().isMediaMimeTypeAllowed()}})),{}),...(0,le.reduce)(t,((e,{name:t})=>({...e,[`social-image-id-tax-${t}`]:En().isMediaTypeImage().isMediaMimeTypeAllowed()})),{}),"social-image-id-author-wpseo":En().isMediaTypeImage().isMediaMimeTypeAllowed(),"social-image-id-archive-wpseo":En().isMediaTypeImage().isMediaMimeTypeAllowed(),"social-image-id-tax-post_format":En().isMediaTypeImage().isMediaMimeTypeAllowed()})}),rl=new RegExp(/^input-wpseo_titles-(post_types|taxonomy)-(?<name>\S+)-(maintax|ptparent)$/is),ol={fieldId:"DUMMY_ITEM"},al=({fieldId:e,fieldLabel:t})=>{const{isPostTypeOrTaxonomyBreadcrumbSetting:s,postTypeOrTaxonomyName:r}=(0,a.useMemo)((()=>{var t;const s=rl.exec(e);return{isPostTypeOrTaxonomyBreadcrumbSetting:Boolean(s),postTypeOrTaxonomyName:null==s||null===(t=s.groups)||void 0===t?void 0:t.name}}),[e,rl]);return s?(0,mr.jsxs)(mr.Fragment,{children:[t,r&&(0,mr.jsx)(i.Code,{className:"yst-ml-2 rtl:yst-mr-2 group-hover:yst-bg-primary-200 group-hover:yst-text-primary-800",children:r})]}):t};al.propTypes={fieldId:cr().string.isRequired,fieldLabel:cr().string.isRequired};const il=({title:e,children:t})=>(0,mr.jsxs)("div",{className:"yst-border-t yst-border-slate-100 yst-p-6 yst-py-12 yst-space-3 yst-text-center yst-text-sm",children:[(0,mr.jsx)("span",{className:"yst-block yst-font-semibold yst-text-slate-900",children:e}),t]});il.propTypes={title:cr().node.isRequired,children:cr().node.isRequired};const nl=({buttonId:e="button-search",modalId:t="modal-search"})=>{const[s,,,r,o]=(0,i.useToggleState)(!1),[n,l]=(0,a.useState)(""),d=bo("selectPreference",[],"userLocale"),c=bo("selectQueryableSearchIndex"),[u,p]=(0,a.useState)([]),m=(0,i.useSvgAria)(),h=et(),f=(0,a.useRef)(null),{platform:_,os:y}=(0,a.useMemo)((()=>{var e,t;return go().parse(null===(e=window)||void 0===e||null===(t=e.navigator)||void 0===t?void 0:t.userAgent)}),[]),{isMobileMenuOpen:w,setMobileMenuOpen:g}=(0,i.useNavigationContext)(),[b,v]=(0,a.useState)(""),x=(0,a.useMemo)((()=>{switch(d){case"ko-KR":case"zh-CN":case"zh-HK":case"zh-TW":return 1;default:return 2}}),[d]);Ei("meta+k",(e=>{e.preventDefault(),"desktop"!==(null==_?void 0:_.type)||s||w||r()}),{enableOnFormTags:!0,enableOnContentEditable:!0},[s,r,_,w]);const j=(0,a.useCallback)((({route:e,fieldId:t})=>{t!==ol.fieldId&&(g(!1),o(),l(""),p([]),h(`${e}#${t}`))}),[o,l,g]),S=(0,a.useCallback)((0,le.debounce)((e=>{const t=(0,le.trim)(e);if(v(""),t.length<x)return v((0,Et.__)("Search","wordpress-seo")),!1;const s=(0,le.split)(Fi(t,d)," "),r=(0,le.reduce)(c,((e,t)=>{const r=(0,le.reduce)(s,((e,s)=>(0,le.includes)(null==t?void 0:t.keywords,s)?++e:e),0);return 0===r?e:[...e,{...t,hits:r}]}),[]),o=r.sort(((e,t)=>t.hits-e.hits)),a=(0,le.groupBy)(o,"route"),i=(0,le.values)(a).sort(((e,t)=>{const s=(0,le.reduce)(e,((e,t)=>(0,le.max)([e,t.hits])),0);return(0,le.reduce)(t,((e,t)=>(0,le.max)([e,t.hits])),0)-s}));(0,le.isEmpty)(r)?v((0,Et.__)("No results found","wordpress-seo")):v((0,Et.sprintf)(/* translators: %d expands to the number of results found. */ -(0,Et._n)("%d result found, use up and down arrow keys to navigate","%d results found, use up and down arrow keys to navigate",r.length,"wordpress-seo"),r.length)),p(i)}),100),[c,d,v]),k=(0,a.useCallback)((e=>{l(e.target.value),S(e.target.value)}),[l,S]),E=(0,a.useCallback)((({active:e})=>lr()("yst-group yst-block yst-no-underline yst-text-sm yst-select-none yst-py-3 yst-px-4 hover:yst-bg-primary-600 hover:yst-text-white focus:yst-bg-primary-600 focus:yst-text-white",e?"yst-text-white yst-bg-primary-600":"yst-text-slate-800")),[]);return(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsxs)("button",{id:e,type:"button",className:"yst-w-full yst-flex yst-items-center yst-bg-white yst-text-sm yst-leading-6 yst-text-slate-500 yst-rounded-md yst-border yst-border-slate-300 yst-shadow-sm yst-py-1.5 yst-pl-2 yst-pr-3 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-offset-2 focus:yst-ring-primary-500",onClick:r,children:[(0,mr.jsx)(ui,{className:"yst-flex-none yst-w-5 yst-h-5 yst-me-3 yst-text-slate-400",...m}),(0,mr.jsx)("span",{className:"yst-overflow-hidden yst-whitespace-nowrap yst-text-ellipsis",children:n||(0,Et.__)("Quick search…","wordpress-seo")}),"desktop"===(null==_?void 0:_.type)&&(0,mr.jsx)("span",{className:"yst-ms-auto yst-flex-none yst-text-xs yst-font-semibold yst-text-slate-400",children:"macOS"===(null==y?void 0:y.name)?(0,Et.__)("⌘K","wordpress-seo"):(0,Et.__)("CtrlK","wordpress-seo")})]}),(0,mr.jsx)(i.Modal,{id:t,onClose:o,isOpen:s,initialFocus:f,position:"top-center","aria-label":(0,Et.__)("Search","wordpress-seo"),children:(0,mr.jsxs)(i.Modal.Panel,{hasCloseButton:!1,children:[(0,mr.jsx)(pa,{children:b&&(0,mr.jsx)(ba,{message:b,"aria-live":"polite"})}),(0,mr.jsxs)(ci,{as:"div",className:"yst--m-6",onChange:j,children:[(0,mr.jsxs)("div",{className:"yst-relative",children:[(0,mr.jsx)(ui,{className:"yst-pointer-events-none yst-absolute yst-top-3.5 yst-start-4 yst-h-5 yst-w-5 yst-text-slate-400",...m}),(0,mr.jsx)(ci.Input,{ref:f,id:"input-search",placeholder:(0,Et.__)("Search…","wordpress-seo"),"aria-label":(0,Et.__)("Search","wordpress-seo"),value:n,onChange:k,className:"yst-h-12 yst-w-full yst-border-0 yst-rounded-lg sm:yst-text-sm yst-bg-transparent yst-px-11 yst-text-slate-800 yst-placeholder-slate-500 focus:yst-outline-none focus:yst-ring-inset focus:yst-ring-2 focus:yst-ring-primary-500 focus:yst-border-primary-500"}),(0,mr.jsx)("div",{className:"yst-modal__close",children:(0,mr.jsxs)("button",{type:"button",onClick:o,className:"yst-modal__close-button",children:[(0,mr.jsx)("span",{className:"yst-sr-only",children:(0,Et.__)("Close","wordpress-seo")}),(0,mr.jsx)(pi,{className:"yst-h-6 yst-w-6",...m})]})})]}),n.length>=x&&!(0,le.isEmpty)(u)&&(0,mr.jsx)(ci.Options,{static:!0,className:"yst-max-h-[calc(90vh-10rem)] yst-scroll-pt-11 yst-scroll-pb-2 yst-space-y-2 yst-overflow-y-auto yst-pb-2",children:(0,le.map)(u,((e,t)=>{var s;return(0,mr.jsxs)("div",{role:"presentation",children:[(0,mr.jsx)(i.Title,{id:`group-${t}-title`,as:"h4",size:"5",className:"yst-bg-slate-100 yst-font-semibold yst-py-3 yst-px-4",role:"presentation","aria-hidden":"true",children:(0,le.first)(e).routeLabel}),(0,mr.jsx)("div",{role:"presentation",children:(0,le.map)(e,(e=>(0,mr.jsx)(ci.Option,{value:e,className:E,children:(0,mr.jsx)(al,{...e})},e.fieldId)))})]},(null==e||null===(s=e[0])||void 0===s?void 0:s.route)||`group-${t}`)}))}),n.length<x&&(0,mr.jsx)(il,{title:(0,Et.__)("Search","wordpress-seo"),children:(0,mr.jsx)("p",{className:"yst-text-slate-500",children:(0,Et.sprintf)(/* translators: %d expands to the minimum number of characters needed (numerical). */ -(0,Et.__)("Please enter a search term with at least %d characters.","wordpress-seo"),x)})}),n.length>=x&&(0,le.isEmpty)(u)&&(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)(il,{title:(0,Et.__)("No results found","wordpress-seo"),children:(0,mr.jsx)("p",{className:"yst-text-slate-500",children:(0,Et.__)("We couldn’t find anything with that term.","wordpress-seo")})}),(0,mr.jsx)(ci.Options,{className:"yst-visible-",children:(0,mr.jsx)(ci.Option,{value:ol})})]})]})]})})]})};nl.propTypes={buttonId:cr().string,modalId:cr().string};const ll=nl,dl=({error:e})=>{const t=(0,a.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),s=bo("selectLink",[],"https://yoa.st/settings-error-support");return(0,mr.jsx)(wr,{error:e,children:(0,mr.jsx)(wr.HorizontalButtons,{supportLink:s,handleRefreshClick:t})})};dl.propTypes={error:cr().object.isRequired};const cl=({reason:e})=>{const t=bo("selectLink",[],"https://yoa.st/llms-txt-file-deletion-settings"),s=(0,a.useMemo)((()=>e===_o?pr((0,Et.sprintf)(/* translators: %1$s and %2$s are replaced by opening and closing <a> tags */ -(0,Et.__)("An existing llms.txt file wasn't created by Yoast or has been edited manually. Yoast won't overwrite it. %1$sDelete it manually%2$s or turn off this feature.","wordpress-seo"),"<a>","</a>"),{a:(0,mr.jsx)("a",{id:"llms-delete-file-link",href:t,target:"_blank",rel:"noopener noreferrer"})}):e===fo?(0,Et.__)("You have activated the Yoast llms.txt feature, but we couldn't generate an llms.txt file. It looks like there aren't sufficient permissions on the web server's filesystem.","wordpress-seo"):(0,Et.__)("You have activated the Yoast llms.txt feature, but we couldn't generate an llms.txt file, for unknown reasons","wordpress-seo")),[e]);return(0,mr.jsx)(i.Alert,{className:"yst-max-w-xl",variant:"error",children:s})};var ul,pl;function ml(){return ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},ml.apply(this,arguments)}cl.propTypes={reason:cr().string.isRequired};const hl=e=>n.createElement("svg",ml({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),ul||(ul=n.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),pl||(pl=n.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"}))),fl=()=>{const{handleDismiss:e}=(0,i.usePopoverContext)(),t=(0,Et.__)("Got it!","wordpress-seo"),s=(0,a.useRef)(null);return(0,a.useEffect)((()=>{const e=setTimeout((()=>{s.current&&(s.current.focus(),s.current.scrollIntoView({behavior:"smooth",block:"center"}))}),300);return()=>clearTimeout(e)}),[]),(0,mr.jsx)(i.Button,{ref:s,type:"button",variant:"primary",onClick:e,className:"yst-self-end",children:t})},_l=()=>{const e=(0,i.useSvgAria)(),[t,s]=(0,a.useState)(!0);return(0,a.useEffect)((()=>{var e;null===(e=sessionStorage)||void 0===e||e.removeItem("yoast-highlight-setting")}),[]),(0,mr.jsx)(i.Popover,{id:"llm-txt-popover",hasBackdrop:!0,role:"dialog",isVisible:t,setIsVisible:s,position:"right",className:"yst-top-3",children:(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsxs)("div",{className:"yst-flex yst-gap-3 yst-items-center",children:[(0,mr.jsx)("div",{className:"yst-flex-shrink-0",children:(0,mr.jsx)(hl,{className:"yst-w-5 yst-h-5 yst-fill-primary-500",...e})}),(0,mr.jsx)("div",{className:"yst-flex-grow",children:(0,mr.jsx)(i.Popover.Title,{id:"llmt-txt-popover-title",as:"h3",children:(0,Et.__)("Enable the llms.txt feature","wordpress-seo")})}),(0,mr.jsx)(i.Popover.CloseButton,{dismissScreenReaderLabel:(0,Et.__)("Dismiss","wordpress-seo")})]}),(0,mr.jsx)(i.Popover.Content,{id:"llmt-txt-popover-content",className:"yst-font-normal yst-ms-8 yst-me-5 yst-mt-1",children:(0,Et.__)("Automatically generate an llms.txt file that points LLMs to your site's most relevant content. We also gave you editor access.","wordpress-seo")}),(0,mr.jsx)("div",{className:"yst-flex yst-gap-3 yst-justify-end yst-mt-3",children:(0,mr.jsx)(fl,{})})]})})},yl=({isOpen:e,onClose:t=le.noop,onDiscard:s=le.noop,title:r,description:o,dismissLabel:a})=>{const n=(0,i.useSvgAria)();return(0,mr.jsx)(i.Modal,{isOpen:e,onClose:t,children:(0,mr.jsxs)(i.Modal.Panel,{className:"yst-max-w-sm",children:[(0,mr.jsxs)("div",{className:"yst-flex yst-flex-col yst-items-center yst-gap-1",children:[(0,mr.jsx)("div",{className:"yst-mx-auto yst-flex-shrink-0 yst-flex yst-items-center yst-justify-center yst-h-12 yst-w-12 yst-rounded-full yst-bg-red-100",children:(0,mr.jsx)(ao,{className:"yst-h-6 yst-w-6 yst-text-red-600",...n})}),(0,mr.jsxs)("div",{className:"yst-mt-3 yst-text-center",children:[(0,mr.jsx)(i.Modal.Title,{className:"yst-text-lg yst-leading-6 yst-font-medium yst-text-slate-900 yst-mb-3",children:r}),(0,mr.jsx)(i.Modal.Description,{className:"yst-text-sm yst-text-slate-500",children:o})]})]}),(0,mr.jsx)("div",{className:"yst-flex yst-flex-col sm:yst-flex-row-reverse yst-gap-3 yst-mt-6",children:(0,mr.jsx)(i.Button,{type:"button",variant:"primary",onClick:s,className:"yst-grow",children:a})})]})})};yl.propTypes={isOpen:cr().bool.isRequired,onClose:cr().func,onDiscard:cr().func,title:cr().string.isRequired,description:cr().string.isRequired,dismissLabel:cr().string.isRequired};const wl=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"}))})),gl=({idSuffix:e})=>{const{pathname:t}=Qe(),{history:s,addToHistory:r}=(0,i.useNavigationContext)(),o=[{to:"/llms-txt",label:(0,Et.__)("llms.txt","wordpress-seo")},{to:"/crawl-optimization",label:(0,Et.__)("Crawl optimization","wordpress-seo")},{to:"/breadcrumbs",label:(0,Et.__)("Breadcrumbs","wordpress-seo")},{to:"/author-archives",label:(0,Et.__)("Author archives","wordpress-seo")},{to:"/date-archives",label:(0,Et.__)("Date archives","wordpress-seo")},{to:"/format-archives",label:(0,Et.__)("Format archives","wordpress-seo")},{to:"/special-pages",label:(0,Et.__)("Special pages","wordpress-seo")},{to:"/media-pages",label:(0,Et.__)("Media pages","wordpress-seo")},{to:"/rss",label:(0,Et.__)("RSS","wordpress-seo")}];return(0,a.useEffect)((()=>{o.map((e=>e.to)).includes(t)&&r(`menu-advanced${e}`)}),[t]),(0,mr.jsx)(i.SidebarNavigation.MenuItem,{id:`menu-advanced${e}`,icon:wl,label:(0,Et.__)("Advanced","wordpress-seo"),defaultOpen:s.includes(`menu-advanced${e}`),children:o.map((({to:t,label:s})=>(0,mr.jsx)(Sr,{to:t,label:s,idSuffix:e},`link-advanced-${t}`)))})};function bl(e,t,s=""){return pr(e,{a:(0,mr.jsx)("a",{id:s,href:t,target:"_blank",rel:"noopener noreferrer"})})}const vl=e=>{const t=({name:t,...s})=>{const{isDisabled:r,message:o}=mo({name:t});return r?(0,mr.jsxs)("div",{children:[(0,mr.jsx)(i.Badge,{variant:"plain",size:"small",className:"yst-mb-2",children:o}),(0,mr.jsx)(e,{name:t,...s,disabled:!0})]}):(0,mr.jsx)(e,{name:t,...s})};return t.propTypes={name:cr().string.isRequired},t},xl=e=>{const t=({name:t,isDummy:s=!1,...r})=>{const o=bo("selectDefaultSettingValue",[t],t);return s?(0,mr.jsx)(e,{name:t,...r,disabled:!0,value:o,onChange:le.noop,checked:o,content:o}):(0,mr.jsx)(e,{name:t,...r})};return t.propTypes={name:cr().string.isRequired,isDummy:cr().bool},t},jl=e=>{const t=({name:t,isDummy:s=!1,...r})=>{const o=bo("selectDefaultSettingValue",[t],t);return s?(0,mr.jsx)(e,{name:t,...r,disabled:!0,value:o,onChange:le.noop}):(0,mr.jsx)(e,{name:t,...r})};return t.propTypes={name:cr().string.isRequired,isDummy:cr().bool},t},Sl=e=>{const t=({name:t,...s})=>{const{isTouched:r,error:o}=(({name:e})=>{const{touched:t,errors:s}=q();return{isTouched:(0,a.useMemo)((()=>(0,le.get)(t,e,!1)),[t]),error:(0,a.useMemo)((()=>(0,le.get)(s,e,"")),[s])}})({name:t});return(0,mr.jsx)(e,{name:t,validation:{variant:"error",message:r&&o},...s})};return t.propTypes={name:cr().string.isRequired},t},kl=({as:e,transformValue:t=le.identity,...s})=>{const[r,,{setTouched:o,setValue:i}]=ee(s),n=(0,a.useCallback)((e=>{o(!0,!1),i(t(e))}),[s.name]);return(0,mr.jsx)(e,{...r,onChange:n,...s})};kl.propTypes={as:cr().elementType.isRequired,name:cr().string.isRequired,transformValue:cr().func};const El=(e=>{const t=({name:t,...s})=>{const{isTouched:r,error:o}=(({name:e})=>{const{touched:t,errors:s}=q();return{isTouched:(0,a.useMemo)((()=>(0,le.get)(t,e,!1)),[t]),error:(0,a.useMemo)((()=>(0,le.get)(s,e,"")),[s])}})({name:t});return(0,mr.jsx)(e,{name:t,validation:{variant:"error",message:r&&o},...s})};return t.propTypes={name:cr().string.isRequired},t})(te),Ll=(e=>{const t=({name:t,isDummy:s=!1,...r})=>{const o=bo("selectDefaultSettingValue",[t],t);return s?(0,mr.jsx)(e,{name:t,...r,disabled:!0,value:o,onChange:le.noop,tags:[],onAddTag:le.noop,onRemoveTag:le.noop}):(0,mr.jsx)(e,{name:t,...r})};return t.propTypes={name:cr().string.isRequired,isDummy:cr().bool},t})(Ao),Fl=xl(Oo),Tl=({name:e,label:t,singularLabel:s,hasArchive:r,hasSchemaArticleType:o,isNew:n})=>{const l=bo("selectReplacementVariablesFor",[e],e,"custom_post_type"),d=bo("selectUpsellSettingsAsProps"),c=bo("selectRecommendedReplacementVariablesFor",[e],e,"custom_post_type"),u=bo("selectReplacementVariablesFor",[e],`${e}_archive`,"custom-post-type_archive"),p=bo("selectRecommendedReplacementVariablesFor",[e],`${e}_archive`,"custom-post-type_archive"),m=bo("selectPreference",[],"isPremium"),h=bo("selectLink",[],"https://yoa.st/4cr"),f=bo("selectArticleTypeValuesFor",[e],e),_=bo("selectPageTypeValuesFor",[e],e),y=bo("selectPreference",[],"isWooCommerceActive"),w=bo("selectPreference",[],"hasWooCommerceShopPage"),g=bo("selectPreference",[],"editWooCommerceShopPageUrl"),b=bo("selectPreference",[],"wooCommerceShopPageSettingUrl"),v=bo("selectPreference",[],"userLocale"),x=bo("selectLink",[],"https://yoa.st/show-x"),j=bo("selectLink",[],"https://yoa.st/4e0"),S=bo("selectLink",[],"https://yoa.st/get-custom-fields"),k=bo("selectLink",[],"https://yoa.st/post-type-schema"),{updatePostTypeReviewStatus:E}=yo(),L=bo("selectPreference",[],"isWooCommerceSEOActive")&&"product"===e,F=(0,Et.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */ -(0,Et.__)("You have %1$s activated on your site, automatically setting the Page type for your products to 'Item Page'. As a result, the Page type selection is disabled.","wordpress-seo"),"Yoast WooCommerce SEO");(0,a.useEffect)((()=>{n&&E(e)}),[e,E]);const T=(0,a.useMemo)((()=>Fi(t,v)),[t,v]),$=(0,a.useMemo)((()=>Fi(s,v)),[s,v]),R=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +fieldLabel:(0,Et.sprintf)((0,Et.__)("Other profile %1$s","wordpress-seo"),e+1)})))}}}),va=async e=>{const{endpoint:s,nonce:r}=(0,le.get)(window,"wpseoScriptData",{}),o=new FormData;o.set("option_page","wpseo_page_settings"),o.set("_wp_http_referer","admin.php?page=wpseo_page_settings_saved"),o.set("action","update"),o.set("_wpnonce",r),(0,le.forEach)(e,((e,t)=>{(0,le.isObject)(e)?(0,le.forEach)(e,((e,s)=>{(0,le.isArray)(e)?(0,le.forEach)(e,((e,r)=>o.set(`${t}[${s}][${r}]`,e))):o.set(`${t}[${s}]`,e)})):o.set(t,e)}));try{const e=await fetch(s,{method:"POST",body:new URLSearchParams(o)}),r=await e.text();if((0,le.includes)(r,"{{ yoast-success: false }}"))throw new Error("Yoast options invalid.");if((e=>{const{setGenerationFailure:s}=(0,t.dispatch)(so);if((0,le.includes)(e,"{{ yoast-llms-txt-generation-failure: "))return(0,le.includes)(e,`{{ yoast-llms-txt-generation-failure: ${ro} }}`)?void s({generationFailure:!0,generationFailureReason:ro}):(0,le.includes)(e,`{{ yoast-llms-txt-generation-failure: ${oo} }}`)?void s({generationFailure:!0,generationFailureReason:oo}):void s({generationFailure:!0,generationFailureReason:"unknown"});s({generationFailure:!1,generationFailureReason:""})})(r),!e.url.endsWith("settings-updated=true"))throw new Error("WordPress options save did not get to the end.")}catch(e){throw new Error(e.message)}},xa=async(e,{resetForm:s})=>{const{addNotification:r}=(0,t.dispatch)(so),{selectPreference:o}=(0,t.select)(so),i=o("canManageOptions",!1);try{return await Promise.all([va(i?e:(0,le.omit)(e,["blogdescription"]))]),r({variant:"success",title:(0,Et.__)("Great! Your settings were saved successfully.","wordpress-seo")}),s({values:e}),!0}catch(e){return r({id:"submit-error",variant:"error",title:(0,Et.__)("Oops! Something went wrong while saving.","wordpress-seo")}),console.error("Error while saving:",e.message),!1}};var ja,Sa;try{ja=Map}catch(e){}try{Sa=Set}catch(e){}function ka(e,t,s){if(!e||"object"!=typeof e||"function"==typeof e)return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(Ea);if(ja&&e instanceof ja)return new Map(Array.from(e.entries()));if(Sa&&e instanceof Sa)return new Set(Array.from(e.values()));if(e instanceof Object){t.push(e);var r=Object.create(e);for(var o in s.push(r),e){var i=t.findIndex((function(t){return t===e[o]}));r[o]=i>-1?s[i]:ka(e[o],t,s)}return r}return e}function Ea(e){return ka(e,[],[])}const La=Object.prototype.toString,Ta=Error.prototype.toString,Fa=RegExp.prototype.toString,$a="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",Ra=/^Symbol\((.*)\)(.*)$/;function Pa(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const s=typeof e;if("number"===s)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===s)return t?`"${e}"`:e;if("function"===s)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===s)return $a.call(e).replace(Ra,"Symbol($1)");const r=La.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+Ta.call(e)+"]":"RegExp"===r?Fa.call(e):null}function Ca(e,t){let s=Pa(e,t);return null!==s?s:JSON.stringify(e,(function(e,s){let r=Pa(this[e],t);return null!==r?r:s}),2)}let Oa={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:s,originalValue:r})=>{let o=null!=r&&r!==s,i=`${e} must be a \`${t}\` type, but the final value was: \`${Ca(s,!0)}\``+(o?` (cast from the value \`${Ca(r,!0)}\`).`:".");return null===s&&(i+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),i},defined:"${path} must be defined"},Na={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Aa={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Ma={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Ia={noUnknown:"${path} field has unspecified keys: ${unknown}"},Da={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:Oa,string:Na,number:Aa,date:Ma,object:Ia,array:Da,boolean:{isValue:"${path} field must be ${value}"}});const Ba=window.lodash.has;var Ua=s.n(Ba);const Va=e=>e&&e.__isYupSchema__,za=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t)return void(this.fn=t);if(!Ua()(t,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:s,then:r,otherwise:o}=t,i="function"==typeof s?s:(...e)=>e.every((e=>e===s));this.fn=function(...e){let t=e.pop(),s=e.pop(),a=i(...e)?r:o;if(a)return"function"==typeof a?a(s):s.concat(a.resolve(t))}}resolve(e,t){let s=this.refs.map((e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context))),r=this.fn.apply(e,s.concat(e,t));if(void 0===r||r===e)return e;if(!Va(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}};function qa(e){return null==e?[]:[].concat(e)}function Wa(){return Wa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Wa.apply(this,arguments)}let Ha=/\$\{\s*(\w+)\s*\}/g;class Ga extends Error{static formatError(e,t){const s=t.label||t.path||"this";return s!==t.path&&(t=Wa({},t,{path:s})),"string"==typeof e?e.replace(Ha,((e,s)=>Ca(t[s]))):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,s,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=s,this.type=r,this.errors=[],this.inner=[],qa(e).forEach((e=>{Ga.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)})),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Ga)}}function Ya(e,t){let{endEarly:s,tests:r,args:o,value:i,errors:a,sort:n,path:l}=e,d=(e=>{let t=!1;return(...s)=>{t||(t=!0,e(...s))}})(t),c=r.length;const u=[];if(a=a||[],!c)return a.length?d(new Ga(a,i,l)):d(null,i);for(let e=0;e<r.length;e++)(0,r[e])(o,(function(e){if(e){if(!Ga.isError(e))return d(e,i);if(s)return e.value=i,d(e,i);u.push(e)}if(--c<=0){if(u.length&&(n&&u.sort(n),a.length&&u.push(...a),a=u),a.length)return void d(new Ga(a,i,l),i);d(null,i)}}))}const Za=window.lodash.mapValues;var Ka=s.n(Za),Ja=s(5760);class Qa{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext="$"===this.key[0],this.isValue="."===this.key[0],this.isSibling=!this.isContext&&!this.isValue;let s=this.isContext?"$":this.isValue?".":"";this.path=this.key.slice(s.length),this.getter=this.path&&(0,Ja.getter)(this.path,!0),this.map=t.map}getValue(e,t,s){let r=this.isContext?s:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}function Xa(){return Xa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Xa.apply(this,arguments)}function en(e){function t(t,s){let{value:r,path:o="",label:i,options:a,originalValue:n,sync:l}=t,d=function(e,t){if(null==e)return{};var s,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)s=i[r],t.indexOf(s)>=0||(o[s]=e[s]);return o}(t,["value","path","label","options","originalValue","sync"]);const{name:c,test:u,params:p,message:m}=e;let{parent:h,context:f}=a;function _(e){return Qa.isRef(e)?e.getValue(r,h,f):e}function y(e={}){const t=Ka()(Xa({value:r,originalValue:n,label:i,path:e.path||o},p,e.params),_),s=new Ga(Ga.formatError(e.message||m,t),r,t.path,e.type||c);return s.params=t,s}let w,g=Xa({path:o,parent:h,type:c,createError:y,resolve:_,options:a,originalValue:n},d);if(l){try{var b;if(w=u.call(g,r,g),"function"==typeof(null==(b=w)?void 0:b.then))throw new Error(`Validation test of type: "${g.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){return void s(e)}Ga.isError(w)?s(w):w?s(null,w):s(y())}else try{Promise.resolve(u.call(g,r,g)).then((e=>{Ga.isError(e)?s(e):e?s(null,e):s(y())})).catch(s)}catch(e){s(e)}}return t.OPTIONS=e,t}function tn(e,t,s,r=s){let o,i,a;return t?((0,Ja.forEach)(t,((n,l,d)=>{let c=l?(e=>e.substr(0,e.length-1).substr(1))(n):n;if((e=e.resolve({context:r,parent:o,value:s})).innerType){let r=d?parseInt(c,10):0;if(s&&r>=s.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${n}, in the path: ${t}. because there is no value at that index. `);o=s,s=s&&s[r],e=e.innerType}if(!d){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);o=s,s=s&&s[c],e=e.fields[c]}i=c,a=l?"["+n+"]":"."+n})),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}Qa.prototype.__isYupRef=!0;class sn{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const e=[];for(const t of this.list)e.push(t);for(const[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce(((t,s)=>t.concat(Qa.isRef(s)?e(s):s)),[])}add(e){Qa.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){Qa.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){const e=new sn;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){const s=this.clone();return e.list.forEach((e=>s.add(e))),e.refs.forEach((e=>s.add(e))),t.list.forEach((e=>s.delete(e))),t.refs.forEach((e=>s.delete(e))),s}}function rn(){return rn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},rn.apply(this,arguments)}class on{constructor(e){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new sn,this._blacklist=new sn,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((()=>{this.typeError(Oa.notType)})),this.type=(null==e?void 0:e.type)||"mixed",this.spec=rn({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=rn({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=Ea(rn({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let s=e(this);return this._mutate=t,s}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,s=e.clone();const r=rn({},t.spec,s.spec);return s.spec=r,s._typeError||(s._typeError=t._typeError),s._whitelistError||(s._whitelistError=t._whitelistError),s._blacklistError||(s._blacklistError=t._blacklistError),s._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),s._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),s.tests=t.tests,s.exclusiveTests=t.exclusiveTests,s.withMutation((t=>{e.tests.forEach((e=>{t.test(e.OPTIONS)}))})),s.transforms=[...t.transforms,...s.transforms],s}isType(e){return!(!this.spec.nullable||null!==e)||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let s=t.conditions;t=t.clone(),t.conditions=[],t=s.reduce(((t,s)=>s.resolve(t,e)),t),t=t.resolve(e)}return t}cast(e,t={}){let s=this.resolve(rn({value:e},t)),r=s._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==s.isType(r)){let o=Ca(e),i=Ca(r);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${s._type}". \n\nattempted value: ${o} \n`+(i!==o?`result of cast: ${i}`:""))}return r}_cast(e,t){let s=void 0===e?e:this.transforms.reduce(((t,s)=>s.call(this,t,e,this)),e);return void 0===s&&(s=this.getDefault()),s}_validate(e,t={},s){let{sync:r,path:o,from:i=[],originalValue:a=e,strict:n=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,d=e;n||(d=this._cast(d,rn({assert:!1},t)));let c={value:d,path:o,options:t,originalValue:a,schema:this,label:this.spec.label,sync:r,from:i},u=[];this._typeError&&u.push(this._typeError);let p=[];this._whitelistError&&p.push(this._whitelistError),this._blacklistError&&p.push(this._blacklistError),Ya({args:c,value:d,path:o,sync:r,tests:u,endEarly:l},(e=>{e?s(e,d):Ya({tests:this.tests.concat(p),args:c,path:o,sync:r,value:d,endEarly:l},s)}))}validate(e,t,s){let r=this.resolve(rn({},t,{value:e}));return"function"==typeof s?r._validate(e,t,s):new Promise(((s,o)=>r._validate(e,t,((e,t)=>{e?o(e):s(t)}))))}validateSync(e,t){let s;return this.resolve(rn({},t,{value:e}))._validate(e,rn({},t,{sync:!0}),((e,t)=>{if(e)throw e;s=t})),s}isValid(e,t){return this.validate(e,t).then((()=>!0),(e=>{if(Ga.isError(e))return!1;throw e}))}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(Ga.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):Ea(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0===arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=Oa.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=Oa.required){return this.clone({presence:"required"}).withMutation((t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}})))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter((e=>"required"!==e.OPTIONS.name)),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=Oa.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let s=this.clone(),r=en(t),o=t.exclusive||t.name&&!0===s.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(s.exclusiveTests[t.name]=!!t.exclusive),s.tests=s.tests.filter((e=>{if(e.OPTIONS.name===t.name){if(o)return!1;if(e.OPTIONS.test===r.OPTIONS.test)return!1}return!0})),s.tests.push(r),s}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let s=this.clone(),r=qa(e).map((e=>new Qa(e)));return r.forEach((e=>{e.isSibling&&s.deps.push(e.key)})),s.conditions.push(new za(r,t)),s}typeError(e){let t=this.clone();return t._typeError=en({message:e,name:"typeError",test(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=Oa.oneOf){let s=this.clone();return e.forEach((e=>{s._whitelist.add(e),s._blacklist.delete(e)})),s._whitelistError=en({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,s=t.resolveAll(this.resolve);return!!s.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:s}})}}),s}notOneOf(e,t=Oa.notOneOf){let s=this.clone();return e.forEach((e=>{s._blacklist.add(e),s._whitelist.delete(e)})),s._blacklistError=en({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,s=t.resolveAll(this.resolve);return!s.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:s}})}}),s}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){const e=this.clone(),{label:t,meta:s}=e.spec,r={meta:s,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map((e=>({name:e.OPTIONS.name,params:e.OPTIONS.params}))).filter(((e,t,s)=>s.findIndex((t=>t.name===e.name))===t))};return r}}on.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])on.prototype[`${e}At`]=function(t,s,r={}){const{parent:o,parentPath:i,schema:a}=tn(this,t,s,r.context);return a[e](o&&o[i],rn({},r,{parent:o,path:t}))};for(const e of["equals","is"])on.prototype[e]=on.prototype.oneOf;for(const e of["not","nope"])on.prototype[e]=on.prototype.notOneOf;on.prototype.optional=on.prototype.notRequired;on.prototype;const an=e=>null==e;let nn=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,ln=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,dn=/^(?:[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,cn=e=>an(e)||e===e.trim(),un={}.toString();function pn(){return new mn}class mn extends on{constructor(){super({type:"string"}),this.withMutation((()=>{this.transform((function(e){if(this.isType(e))return e;if(Array.isArray(e))return e;const t=null!=e&&e.toString?e.toString():e;return t===un?e:t}))}))}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=Na.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return an(t)||t.length===this.resolve(e)}})}min(e,t=Na.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return an(t)||t.length>=this.resolve(e)}})}max(e,t=Na.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return an(t)||t.length<=this.resolve(e)}})}matches(e,t){let s,r,o=!1;return t&&("object"==typeof t?({excludeEmptyString:o=!1,message:s,name:r}=t):s=t),this.test({name:r||"matches",message:s||Na.matches,params:{regex:e},test:t=>an(t)||""===t&&o||-1!==t.search(e)})}email(e=Na.email){return this.matches(nn,{name:"email",message:e,excludeEmptyString:!0})}url(e=Na.url){return this.matches(ln,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=Na.uuid){return this.matches(dn,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform((e=>null===e?"":e))}trim(e=Na.trim){return this.transform((e=>null!=e?e.trim():e)).test({message:e,name:"trim",test:cn})}lowercase(e=Na.lowercase){return this.transform((e=>an(e)?e:e.toLowerCase())).test({message:e,name:"string_case",exclusive:!0,test:e=>an(e)||e===e.toLowerCase()})}uppercase(e=Na.uppercase){return this.transform((e=>an(e)?e:e.toUpperCase())).test({message:e,name:"string_case",exclusive:!0,test:e=>an(e)||e===e.toUpperCase()})}}function hn(){return new fn}pn.prototype=mn.prototype;class fn extends on{constructor(){super({type:"number"}),this.withMutation((()=>{this.transform((function(e){let t=e;if("string"==typeof t){if(t=t.replace(/\s/g,""),""===t)return NaN;t=+t}return this.isType(t)?t:parseFloat(t)}))}))}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!(e=>e!=+e)(e)}min(e,t=Aa.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return an(t)||t>=this.resolve(e)}})}max(e,t=Aa.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return an(t)||t<=this.resolve(e)}})}lessThan(e,t=Aa.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return an(t)||t<this.resolve(e)}})}moreThan(e,t=Aa.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},test(t){return an(t)||t>this.resolve(e)}})}positive(e=Aa.positive){return this.moreThan(0,e)}negative(e=Aa.negative){return this.lessThan(0,e)}integer(e=Aa.integer){return this.test({name:"integer",message:e,test:e=>an(e)||Number.isInteger(e)})}truncate(){return this.transform((e=>an(e)?e:0|e))}round(e){var t;let s=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===s.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+s.join(", "));return this.transform((t=>an(t)?t:Math[e](t)))}}hn.prototype=fn.prototype;var yn=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let wn=new Date("");function gn(){return new bn}class bn extends on{constructor(){super({type:"date"}),this.withMutation((()=>{this.transform((function(e){return this.isType(e)?e:(e=function(e){var t,s,r=[1,4,5,6,7,10,11],o=0;if(s=yn.exec(e)){for(var i,a=0;i=r[a];++a)s[i]=+s[i]||0;s[2]=(+s[2]||1)-1,s[3]=+s[3]||1,s[7]=s[7]?String(s[7]).substr(0,3):0,void 0!==s[8]&&""!==s[8]||void 0!==s[9]&&""!==s[9]?("Z"!==s[8]&&void 0!==s[9]&&(o=60*s[10]+s[11],"+"===s[9]&&(o=0-o)),t=Date.UTC(s[1],s[2],s[3],s[4],s[5]+o,s[6],s[7])):t=+new Date(s[1],s[2],s[3],s[4],s[5],s[6],s[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?wn:new Date(e))}))}))}_typeCheck(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}prepareParam(e,t){let s;if(Qa.isRef(e))s=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);s=r}return s}min(e,t=Ma.min){let s=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return an(e)||e>=this.resolve(s)}})}max(e,t=Ma.max){let s=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return an(e)||e<=this.resolve(s)}})}}bn.INVALID_DATE=wn,gn.prototype=bn.prototype,gn.INVALID_DATE=wn;const vn=window.lodash.snakeCase;var xn=s.n(vn);const jn=window.lodash.camelCase;var Sn=s.n(jn);const kn=window.lodash.mapKeys;var En=s.n(kn),Ln=s(4633),Tn=s.n(Ln);function Fn(e,t){let s=1/0;return e.some(((e,r)=>{var o;if(-1!==(null==(o=t.path)?void 0:o.indexOf(e)))return s=r,!0})),s}function $n(e){return(t,s)=>Fn(e,t)-Fn(e,s)}function Rn(){return Rn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Rn.apply(this,arguments)}let Pn=e=>"[object Object]"===Object.prototype.toString.call(e);const Cn=$n([]);class On extends on{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=Cn,this._nodes=[],this._excludedEdges=[],this.withMutation((()=>{this.transform((function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})),e&&this.shape(e)}))}_typeCheck(e){return Pn(e)||"function"==typeof e}_cast(e,t={}){var s;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let o=this.fields,i=null!=(s=t.stripUnknown)?s:this.spec.noUnknown,a=this._nodes.concat(Object.keys(r).filter((e=>-1===this._nodes.indexOf(e)))),n={},l=Rn({},t,{parent:n,__validating:t.__validating||!1}),d=!1;for(const e of a){let s=o[e],a=Ua()(r,e);if(s){let o,i=r[e];l.path=(t.path?`${t.path}.`:"")+e,s=s.resolve({value:i,context:t.context,parent:n});let a="spec"in s?s.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){d=d||e in r;continue}o=t.__validating&&c?r[e]:s.cast(r[e],l),void 0!==o&&(n[e]=o)}else a&&!i&&(n[e]=r[e]);n[e]!==r[e]&&(d=!0)}return d?n:r}_validate(e,t={},s){let r=[],{sync:o,from:i=[],originalValue:a=e,abortEarly:n=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;i=[{schema:this,value:a},...i],t.__validating=!0,t.originalValue=a,t.from=i,super._validate(e,t,((e,d)=>{if(e){if(!Ga.isError(e)||n)return void s(e,d);r.push(e)}if(!l||!Pn(d))return void s(r[0]||null,d);a=a||d;let c=this._nodes.map((e=>(s,r)=>{let o=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,n=this.fields[e];n&&"validate"in n?n.validate(d[e],Rn({},t,{path:o,from:i,strict:!0,parent:d,originalValue:a[e]}),r):r(null)}));Ya({sync:o,tests:c,value:d,errors:r,endEarly:n,sort:this._sortErrors,path:t.path},s)}))}clone(e){const t=super.clone(e);return t.fields=Rn({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),s=t.fields;for(let[e,t]of Object.entries(this.fields)){const r=s[e];void 0===r?s[e]=t:r instanceof on&&t instanceof on&&(s[e]=t.concat(r))}return t.withMutation((()=>t.shape(s,this._excludedEdges)))}getDefaultFromShape(){let e={};return this._nodes.forEach((t=>{const s=this.fields[t];e[t]="default"in s?s.getDefault():void 0})),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let s=this.clone(),r=Object.assign(s.fields,e);return s.fields=r,s._sortErrors=$n(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),s._excludedEdges=[...s._excludedEdges,...t]),s._nodes=function(e,t=[]){let s=[],r=new Set,o=new Set(t.map((([e,t])=>`${e}-${t}`)));function i(e,t){let i=(0,Ja.split)(e)[0];r.add(i),o.has(`${t}-${i}`)||s.push([t,i])}for(const t in e)if(Ua()(e,t)){let s=e[t];r.add(t),Qa.isRef(s)&&s.isSibling?i(s.path,t):Va(s)&&"deps"in s&&s.deps.forEach((e=>i(e,t)))}return Tn().array(Array.from(r),s).reverse()}(r,s._excludedEdges),s}pick(e){const t={};for(const s of e)this.fields[s]&&(t[s]=this.fields[s]);return this.clone().withMutation((e=>(e.fields={},e.shape(t))))}omit(e){const t=this.clone(),s=t.fields;t.fields={};for(const t of e)delete s[t];return t.withMutation((()=>t.shape(s)))}from(e,t,s){let r=(0,Ja.getter)(e,!0);return this.transform((o=>{if(null==o)return o;let i=o;return Ua()(o,e)&&(i=Rn({},o),s||delete i[e],i[t]=r(o)),i}))}noUnknown(e=!0,t=Ia.noUnknown){"string"==typeof e&&(t=e,e=!0);let s=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const s=function(e,t){let s=Object.keys(e.fields);return Object.keys(t).filter((e=>-1===s.indexOf(e)))}(this.schema,t);return!e||0===s.length||this.createError({params:{unknown:s.join(", ")}})}});return s.spec.noUnknown=e,s}unknown(e=!0,t=Ia.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform((t=>t&&En()(t,((t,s)=>e(s)))))}camelCase(){return this.transformKeys(Sn())}snakeCase(){return this.transformKeys(xn())}constantCase(){return this.transformKeys((e=>xn()(e).toUpperCase()))}describe(){let e=super.describe();return e.fields=Ka()(this.fields,(e=>e.describe())),e}}function Nn(e){return new On(e)}function An(){return An=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},An.apply(this,arguments)}function Mn(e){return new In(e)}Nn.prototype=On.prototype;class In extends on{constructor(e){super({type:"array"}),this.innerType=void 0,this.innerType=e,this.withMutation((()=>{this.transform((function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}))}))}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,t){const s=super._cast(e,t);if(!this._typeCheck(s)||!this.innerType)return s;let r=!1;const o=s.map(((e,s)=>{const o=this.innerType.cast(e,An({},t,{path:`${t.path||""}[${s}]`}));return o!==e&&(r=!0),o}));return r?o:s}_validate(e,t={},s){var r,o;let i=[],a=t.sync,n=t.path,l=this.innerType,d=null!=(r=t.abortEarly)?r:this.spec.abortEarly,c=null!=(o=t.recursive)?o:this.spec.recursive,u=null!=t.originalValue?t.originalValue:e;super._validate(e,t,((e,r)=>{if(e){if(!Ga.isError(e)||d)return void s(e,r);i.push(e)}if(!c||!l||!this._typeCheck(r))return void s(i[0]||null,r);u=u||r;let o=new Array(r.length);for(let e=0;e<r.length;e++){let s=r[e],i=`${t.path||""}[${e}]`,a=An({},t,{path:i,strict:!0,parent:r,index:e,originalValue:u[e]});o[e]=(e,t)=>l.validate(s,a,t)}Ya({sync:a,path:n,value:r,errors:i,endEarly:d,tests:o},s)}))}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!Va(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Ca(e));return t.innerType=e,t}length(e,t=Da.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return an(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||Da.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return an(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||Da.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return an(t)||t.length<=this.resolve(e)}})}ensure(){return this.default((()=>[])).transform(((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t)))}compact(e){let t=e?(t,s,r)=>!e(t,s,r):e=>!!e;return this.transform((e=>null!=e?e.filter(t):e))}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(e=!0){return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}}function Dn(e,t,s){if(!e||!Va(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if("string"!=typeof t)throw new TypeError("A Method name must be provided");if("function"!=typeof s)throw new TypeError("Method function must be provided");e.prototype[t]=s}Mn.prototype=In.prototype;const Bn=/^[A-Za-z0-9_-]+$/,Un=/^[A-Fa-f0-9_-]+$/,Vn=/^[A-Za-z0-9_]{1,25}$/,zn=/^https?:\/\/(?:www\.)?(?:twitter|x)\.com\/(?<handle>[A-Za-z0-9_]{1,25})\/?$/,qn=["image/jpeg","image/png","image/webp","image/gif"];Dn(hn,"isMediaTypeImage",(function(){return this.test("isMediaTypeImage",(0,Et.__)("The selected file is not an image.","wordpress-seo"),(e=>{if(!e)return!0;const s=(0,t.select)(so).selectMediaById(e);return!s||"image"===(null==s?void 0:s.type)}))})),Dn(hn,"isMediaMimeTypeAllowed",(function(){return this.test("isMediaMimeTypeAllowed",(0,Et.__)("The selected media type is not valid. Supported types are: JPG, PNG, WEBP and GIF.","wordpress-seo"),(e=>{const s=(0,t.select)(so).selectMediaById(e);return!s||qn.includes(s.mime)}))})),Dn(pn,"isValidTwitterUrlOrHandle",(function(){return this.test("isValidTwitterUrlOrHandle",(0,Et.__)("The profile is not valid. Please use only 1–25 letters, numbers and underscores or enter a valid X URL.","wordpress-seo"),(e=>!e||Vn.test(e)||zn.test(e)))}));const Wn=(e,t)=>Nn().shape({wpseo:Nn().shape({baiduverify:pn().matches(Bn,(0,Et.__)("The verification code is not valid. Please use only letters, numbers, underscores and dashes.","wordpress-seo")),googleverify:pn().matches(Bn,(0,Et.__)("The verification code is not valid. Please use only letters, numbers, underscores and dashes.","wordpress-seo")),ahrefsverify:pn().matches(Bn,(0,Et.__)("The verification code is not valid. Please use only letters, numbers, underscores and dashes.","wordpress-seo")),msverify:pn().matches(Un,(0,Et.__)("The verification code is not valid. Please use only the letters A to F, numbers, underscores and dashes.","wordpress-seo")),yandexverify:pn().matches(Un,(0,Et.__)("The verification code is not valid. Please use only the letters A to F, numbers, underscores and dashes.","wordpress-seo")),search_character_limit:hn().required((0,Et.__)("Please enter a number between 1 and 50.","wordpress-seo")).min(1,(0,Et.__)("The number you've entered is not between 1 and 50.","wordpress-seo")).max(50,(0,Et.__)("The number you've entered is not between 1 and 50.","wordpress-seo"))}),wpseo_social:Nn().shape({og_default_image_id:hn().isMediaTypeImage(),facebook_site:pn().url((0,Et.__)("The profile is not valid. Please enter a valid URL.","wordpress-seo")),mastodon_url:pn().url((0,Et.__)("The profile is not valid. Please enter a valid URL.","wordpress-seo")),twitter_site:pn().isValidTwitterUrlOrHandle(),other_social_urls:Mn().of(pn().url((0,Et.__)("The profile is not valid. Please enter a valid URL.","wordpress-seo"))),pinterestverify:pn().matches(Un,(0,Et.__)("The verification code is not valid. Please use only the letters A to F, numbers, underscores and dashes.","wordpress-seo"))}),wpseo_titles:Nn().shape({open_graph_frontpage_image_id:hn().isMediaTypeImage(),company_logo_id:hn().isMediaTypeImage(),person_logo_id:hn().isMediaTypeImage(),...(0,le.reduce)(e,((e,{name:t,hasArchive:s})=>({...e,..."attachment"!==t&&{[`social-image-id-${t}`]:hn().isMediaTypeImage().isMediaMimeTypeAllowed()},...s&&{[`social-image-id-ptarchive-${t}`]:hn().isMediaTypeImage().isMediaMimeTypeAllowed()}})),{}),...(0,le.reduce)(t,((e,{name:t})=>({...e,[`social-image-id-tax-${t}`]:hn().isMediaTypeImage().isMediaMimeTypeAllowed()})),{}),"social-image-id-author-wpseo":hn().isMediaTypeImage().isMediaMimeTypeAllowed(),"social-image-id-archive-wpseo":hn().isMediaTypeImage().isMediaMimeTypeAllowed(),"social-image-id-tax-post_format":hn().isMediaTypeImage().isMediaMimeTypeAllowed()})}),Hn=new RegExp(/^input-wpseo_titles-(post_types|taxonomy)-(?<name>\S+)-(maintax|ptparent)$/is),Gn={fieldId:"DUMMY_ITEM"},Yn=({fieldId:e,fieldLabel:t})=>{const{isPostTypeOrTaxonomyBreadcrumbSetting:s,postTypeOrTaxonomyName:r}=(0,i.useMemo)((()=>{var t;const s=Hn.exec(e);return{isPostTypeOrTaxonomyBreadcrumbSetting:Boolean(s),postTypeOrTaxonomyName:null==s||null===(t=s.groups)||void 0===t?void 0:t.name}}),[e,Hn]);return s?(0,ur.jsxs)(ur.Fragment,{children:[t,r&&(0,ur.jsx)(a.Code,{className:"yst-ml-2 rtl:yst-mr-2 group-hover:yst-bg-primary-200 group-hover:yst-text-primary-800",children:r})]}):t};Yn.propTypes={fieldId:lr().string.isRequired,fieldLabel:lr().string.isRequired};const Zn=({title:e,children:t})=>(0,ur.jsxs)("div",{className:"yst-border-t yst-border-slate-100 yst-p-6 yst-py-12 yst-space-3 yst-text-center yst-text-sm",children:[(0,ur.jsx)("span",{className:"yst-block yst-font-semibold yst-text-slate-900",children:e}),t]});Zn.propTypes={title:lr().node.isRequired,children:lr().node.isRequired};const Kn=({buttonId:e="button-search",modalId:t="modal-search"})=>{const[s,,,r,o]=(0,a.useToggleState)(!1),[n,l]=(0,i.useState)(""),d=lo("selectPreference",[],"userLocale"),c=lo("selectQueryableSearchIndex"),[u,p]=(0,i.useState)([]),m=(0,a.useSvgAria)(),h=et(),f=(0,i.useRef)(null),{platform:_,os:y}=(0,i.useMemo)((()=>{var e,t;return no().parse(null===(e=window)||void 0===e||null===(t=e.navigator)||void 0===t?void 0:t.userAgent)}),[]),{isMobileMenuOpen:w,setMobileMenuOpen:g}=(0,a.useNavigationContext)(),[b,v]=(0,i.useState)(""),x=(0,i.useMemo)((()=>{switch(d){case"ko-KR":case"zh-CN":case"zh-HK":case"zh-TW":return 1;default:return 2}}),[d]);fa("meta+k",(e=>{e.preventDefault(),"desktop"!==(null==_?void 0:_.type)||s||w||r()}),{enableOnFormTags:!0,enableOnContentEditable:!0},[s,r,_,w]);const j=(0,i.useCallback)((({route:e,fieldId:t})=>{t!==Gn.fieldId&&(g(!1),o(),l(""),p([]),h(`${e}#${t}`))}),[o,l,g]),S=(0,i.useCallback)((0,le.debounce)((e=>{const t=(0,le.trim)(e);if(v(""),t.length<x)return v((0,Et.__)("Search","wordpress-seo")),!1;const s=(0,le.split)(ya(t,d)," "),r=(0,le.reduce)(c,((e,t)=>{const r=(0,le.reduce)(s,((e,s)=>(0,le.includes)(null==t?void 0:t.keywords,s)?++e:e),0);return 0===r?e:[...e,{...t,hits:r}]}),[]),o=r.sort(((e,t)=>t.hits-e.hits)),i=(0,le.groupBy)(o,"route"),a=(0,le.values)(i).sort(((e,t)=>{const s=(0,le.reduce)(e,((e,t)=>(0,le.max)([e,t.hits])),0);return(0,le.reduce)(t,((e,t)=>(0,le.max)([e,t.hits])),0)-s}));(0,le.isEmpty)(r)?v((0,Et.__)("No results found","wordpress-seo")):v((0,Et.sprintf)(/* translators: %d expands to the number of results found. */ +(0,Et._n)("%d result found, use up and down arrow keys to navigate","%d results found, use up and down arrow keys to navigate",r.length,"wordpress-seo"),r.length)),p(a)}),100),[c,d,v]),k=(0,i.useCallback)((e=>{l(e.target.value),S(e.target.value)}),[l,S]),E=(0,i.useCallback)((({active:e})=>ar()("yst-group yst-block yst-no-underline yst-text-sm yst-select-none yst-py-3 yst-px-4 hover:yst-bg-primary-600 hover:yst-text-white focus:yst-bg-primary-600 focus:yst-text-white",e?"yst-text-white yst-bg-primary-600":"yst-text-slate-800")),[]);return(0,ur.jsxs)(ur.Fragment,{children:[(0,ur.jsxs)("button",{id:e,type:"button",className:"yst-w-full yst-flex yst-items-center yst-bg-white yst-text-sm yst-leading-6 yst-text-slate-500 yst-rounded-md yst-border yst-border-slate-300 yst-shadow-sm yst-py-1.5 yst-pl-2 yst-pr-3 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-offset-2 focus:yst-ring-primary-500",onClick:r,children:[(0,ur.jsx)(ea,{className:"yst-flex-none yst-w-5 yst-h-5 yst-me-3 yst-text-slate-400",...m}),(0,ur.jsx)("span",{className:"yst-overflow-hidden yst-whitespace-nowrap yst-text-ellipsis",children:n||(0,Et.__)("Quick search…","wordpress-seo")}),"desktop"===(null==_?void 0:_.type)&&(0,ur.jsx)("span",{className:"yst-ms-auto yst-flex-none yst-text-xs yst-font-semibold yst-text-slate-400",children:"macOS"===(null==y?void 0:y.name)?(0,Et.__)("⌘K","wordpress-seo"):(0,Et.__)("CtrlK","wordpress-seo")})]}),(0,ur.jsx)(a.Modal,{id:t,onClose:o,isOpen:s,initialFocus:f,position:"top-center","aria-label":(0,Et.__)("Search","wordpress-seo"),children:(0,ur.jsxs)(a.Modal.Panel,{hasCloseButton:!1,children:[(0,ur.jsx)(ti,{children:b&&(0,ur.jsx)(di,{message:b,"aria-live":"polite"})}),(0,ur.jsxs)(Xi,{as:"div",className:"yst--m-6",onChange:j,children:[(0,ur.jsxs)("div",{className:"yst-relative",children:[(0,ur.jsx)(ea,{className:"yst-pointer-events-none yst-absolute yst-top-3.5 yst-start-4 yst-h-5 yst-w-5 yst-text-slate-400",...m}),(0,ur.jsx)(Xi.Input,{ref:f,id:"input-search",placeholder:(0,Et.__)("Search…","wordpress-seo"),"aria-label":(0,Et.__)("Search","wordpress-seo"),value:n,onChange:k,className:"yst-h-12 yst-w-full yst-border-0 yst-rounded-lg sm:yst-text-sm yst-bg-transparent yst-px-11 yst-text-slate-800 yst-placeholder-slate-500 focus:yst-outline-none focus:yst-ring-inset focus:yst-ring-2 focus:yst-ring-primary-500 focus:yst-border-primary-500"}),(0,ur.jsx)("div",{className:"yst-modal__close",children:(0,ur.jsxs)("button",{type:"button",onClick:o,className:"yst-modal__close-button",children:[(0,ur.jsx)("span",{className:"yst-sr-only",children:(0,Et.__)("Close","wordpress-seo")}),(0,ur.jsx)(ta,{className:"yst-h-6 yst-w-6",...m})]})})]}),n.length>=x&&!(0,le.isEmpty)(u)&&(0,ur.jsx)(Xi.Options,{static:!0,className:"yst-max-h-[calc(90vh-10rem)] yst-scroll-pt-11 yst-scroll-pb-2 yst-space-y-2 yst-overflow-y-auto yst-pb-2",children:(0,le.map)(u,((e,t)=>{var s;return(0,ur.jsxs)("div",{role:"presentation",children:[(0,ur.jsx)(a.Title,{id:`group-${t}-title`,as:"h4",size:"5",className:"yst-bg-slate-100 yst-font-semibold yst-py-3 yst-px-4",role:"presentation","aria-hidden":"true",children:(0,le.first)(e).routeLabel}),(0,ur.jsx)("div",{role:"presentation",children:(0,le.map)(e,(e=>(0,ur.jsx)(Xi.Option,{value:e,className:E,children:(0,ur.jsx)(Yn,{...e})},e.fieldId)))})]},(null==e||null===(s=e[0])||void 0===s?void 0:s.route)||`group-${t}`)}))}),n.length<x&&(0,ur.jsx)(Zn,{title:(0,Et.__)("Search","wordpress-seo"),children:(0,ur.jsx)("p",{className:"yst-text-slate-500",children:(0,Et.sprintf)(/* translators: %d expands to the minimum number of characters needed (numerical). */ +(0,Et.__)("Please enter a search term with at least %d characters.","wordpress-seo"),x)})}),n.length>=x&&(0,le.isEmpty)(u)&&(0,ur.jsxs)(ur.Fragment,{children:[(0,ur.jsx)(Zn,{title:(0,Et.__)("No results found","wordpress-seo"),children:(0,ur.jsx)("p",{className:"yst-text-slate-500",children:(0,Et.__)("We couldn’t find anything with that term.","wordpress-seo")})}),(0,ur.jsx)(Xi.Options,{className:"yst-visible-",children:(0,ur.jsx)(Xi.Option,{value:Gn})})]})]})]})})]})};Kn.propTypes={buttonId:lr().string,modalId:lr().string};const Jn=Kn,Qn=({error:e})=>{const t=(0,i.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),s=lo("selectLink",[],"https://yoa.st/settings-error-support");return(0,ur.jsx)(yr,{error:e,children:(0,ur.jsx)(yr.HorizontalButtons,{supportLink:s,handleRefreshClick:t})})};Qn.propTypes={error:lr().object.isRequired};const Xn=({reason:e})=>{const t=lo("selectLink",[],"https://yoa.st/llms-txt-file-deletion-settings"),s=(0,i.useMemo)((()=>e===oo?cr((0,Et.sprintf)(/* translators: %1$s and %2$s are replaced by opening and closing <a> tags */ +(0,Et.__)("An existing llms.txt file wasn't created by Yoast or has been edited manually. Yoast won't overwrite it. %1$sDelete it manually%2$s or turn off this feature.","wordpress-seo"),"<a>","</a>"),{a:(0,ur.jsx)("a",{id:"llms-delete-file-link",href:t,target:"_blank",rel:"noopener noreferrer"})}):e===ro?(0,Et.__)("You have activated the Yoast llms.txt feature, but we couldn't generate an llms.txt file. It looks like there aren't sufficient permissions on the web server's filesystem.","wordpress-seo"):(0,Et.__)("You have activated the Yoast llms.txt feature, but we couldn't generate an llms.txt file, for unknown reasons","wordpress-seo")),[e]);return(0,ur.jsx)(a.Alert,{className:"yst-max-w-xl",variant:"error",children:s})};var el,tl;function sl(){return sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},sl.apply(this,arguments)}Xn.propTypes={reason:lr().string.isRequired};const rl=e=>n.createElement("svg",sl({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),el||(el=n.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),tl||(tl=n.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"}))),ol=()=>{const{handleDismiss:e}=(0,a.usePopoverContext)(),t=(0,Et.__)("Got it!","wordpress-seo"),s=(0,i.useRef)(null);return(0,i.useEffect)((()=>{const e=setTimeout((()=>{s.current&&(s.current.focus(),s.current.scrollIntoView({behavior:"smooth",block:"center"}))}),300);return()=>clearTimeout(e)}),[]),(0,ur.jsx)(a.Button,{ref:s,type:"button",variant:"primary",onClick:e,className:"yst-self-end",children:t})},il=()=>{const e=(0,a.useSvgAria)(),[t,s]=(0,i.useState)(!0);return(0,i.useEffect)((()=>{var e;null===(e=sessionStorage)||void 0===e||e.removeItem("yoast-highlight-setting")}),[]),(0,ur.jsx)(a.Popover,{id:"llm-txt-popover",hasBackdrop:!0,role:"dialog",isVisible:t,setIsVisible:s,position:"right",className:"yst-top-3",children:(0,ur.jsxs)(ur.Fragment,{children:[(0,ur.jsxs)("div",{className:"yst-flex yst-gap-3 yst-items-center",children:[(0,ur.jsx)("div",{className:"yst-flex-shrink-0",children:(0,ur.jsx)(rl,{className:"yst-w-5 yst-h-5 yst-fill-primary-500",...e})}),(0,ur.jsx)("div",{className:"yst-flex-grow",children:(0,ur.jsx)(a.Popover.Title,{id:"llmt-txt-popover-title",as:"h3",children:(0,Et.__)("Enable the llms.txt feature","wordpress-seo")})}),(0,ur.jsx)(a.Popover.CloseButton,{dismissScreenReaderLabel:(0,Et.__)("Dismiss","wordpress-seo")})]}),(0,ur.jsx)(a.Popover.Content,{id:"llmt-txt-popover-content",className:"yst-font-normal yst-ms-8 yst-me-5 yst-mt-1",children:(0,Et.__)("Automatically generate an llms.txt file that points LLMs to your site's most relevant content. We also gave you editor access.","wordpress-seo")}),(0,ur.jsx)("div",{className:"yst-flex yst-gap-3 yst-justify-end yst-mt-3",children:(0,ur.jsx)(ol,{})})]})})},al=({isOpen:e,onClose:t=le.noop,onDiscard:s=le.noop,title:r,description:o,dismissLabel:i})=>{const n=(0,a.useSvgAria)();return(0,ur.jsx)(a.Modal,{isOpen:e,onClose:t,children:(0,ur.jsxs)(a.Modal.Panel,{className:"yst-max-w-sm",children:[(0,ur.jsxs)("div",{className:"yst-flex yst-flex-col yst-items-center yst-gap-1",children:[(0,ur.jsx)("div",{className:"yst-mx-auto yst-flex-shrink-0 yst-flex yst-items-center yst-justify-center yst-h-12 yst-w-12 yst-rounded-full yst-bg-red-100",children:(0,ur.jsx)(Yr,{className:"yst-h-6 yst-w-6 yst-text-red-600",...n})}),(0,ur.jsxs)("div",{className:"yst-mt-3 yst-text-center",children:[(0,ur.jsx)(a.Modal.Title,{className:"yst-text-lg yst-leading-6 yst-font-medium yst-text-slate-900 yst-mb-3",children:r}),(0,ur.jsx)(a.Modal.Description,{className:"yst-text-sm yst-text-slate-500",children:o})]})]}),(0,ur.jsx)("div",{className:"yst-flex yst-flex-col sm:yst-flex-row-reverse yst-gap-3 yst-mt-6",children:(0,ur.jsx)(a.Button,{type:"button",variant:"primary",onClick:s,className:"yst-grow",children:i})})]})})};al.propTypes={isOpen:lr().bool.isRequired,onClose:lr().func,onDiscard:lr().func,title:lr().string.isRequired,description:lr().string.isRequired,dismissLabel:lr().string.isRequired};const nl=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"}))})),ll=({idSuffix:e})=>{const{pathname:t}=Qe(),{history:s,addToHistory:r}=(0,a.useNavigationContext)(),o=[{to:"/llms-txt",label:(0,Et.__)("llms.txt","wordpress-seo")},{to:"/crawl-optimization",label:(0,Et.__)("Crawl optimization","wordpress-seo")},{to:"/breadcrumbs",label:(0,Et.__)("Breadcrumbs","wordpress-seo")},{to:"/author-archives",label:(0,Et.__)("Author archives","wordpress-seo")},{to:"/date-archives",label:(0,Et.__)("Date archives","wordpress-seo")},{to:"/format-archives",label:(0,Et.__)("Format archives","wordpress-seo")},{to:"/special-pages",label:(0,Et.__)("Special pages","wordpress-seo")},{to:"/media-pages",label:(0,Et.__)("Media pages","wordpress-seo")},{to:"/rss",label:(0,Et.__)("RSS","wordpress-seo")}];return(0,i.useEffect)((()=>{o.map((e=>e.to)).includes(t)&&r(`menu-advanced${e}`)}),[t]),(0,ur.jsx)(a.SidebarNavigation.MenuItem,{id:`menu-advanced${e}`,icon:nl,label:(0,Et.__)("Advanced","wordpress-seo"),defaultOpen:s.includes(`menu-advanced${e}`),children:o.map((({to:t,label:s})=>(0,ur.jsx)(br,{to:t,label:s,idSuffix:e},`link-advanced-${t}`)))})},dl=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"}))})),cl=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))})),ul=({show:e,toggle:t,ariaProps:s,id:r,history:o,removeFromHistory:n,addToHistory:l})=>{const d=o.includes(r)?dl:cl,c=(0,a.useSvgAria)(!1),u=(0,i.useCallback)((()=>{o.includes(r)?(n(r),e&&t()):(l(r),e||t())}),[e,t,o,r,n,l]);return(0,ur.jsxs)("div",{className:"yst-relative",children:[(0,ur.jsx)("hr",{className:"yst-absolute yst-inset-x-0 yst-top-1/2 yst-bg-slate-200"}),(0,ur.jsxs)("button",{type:"button",className:"yst-relative yst-flex yst-items-center yst-gap-1.5 yst-px-2.5 yst-py-1 yst-mx-auto yst-text-xs yst-font-medium yst-text-slate-700 yst-bg-slate-50 yst-rounded-full yst-border yst-border-slate-300 hover:yst-bg-white hover:yst-text-slate-800 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-primary-500 focus:yst-ring-offset-2",onClick:u,...s,children:[o.includes(r)?(0,Et.__)("Show less","wordpress-seo"):(0,Et.__)("Show more","wordpress-seo"),(0,ur.jsx)(d,{className:"yst-h-4 yst-w-4 yst-flex-shrink-0 yst-text-slate-400 group-hover:yst-text-slate-500 yst-stroke-3",...c})]})]})};function pl(e,t,s=""){return cr(e,{a:(0,ur.jsx)("a",{id:s,href:t,target:"_blank",rel:"noopener noreferrer"})})}const ml=e=>{const t=({name:t,...s})=>{const{isDisabled:r,message:o}=to({name:t});return r?(0,ur.jsxs)("div",{children:[(0,ur.jsx)(a.Badge,{variant:"plain",size:"small",className:"yst-mb-2",children:o}),(0,ur.jsx)(e,{name:t,...s,disabled:!0})]}):(0,ur.jsx)(e,{name:t,...s})};return t.propTypes={name:lr().string.isRequired},t},hl=e=>{const t=({name:t,isDummy:s=!1,...r})=>{const o=lo("selectDefaultSettingValue",[t],t);return s?(0,ur.jsx)(e,{name:t,...r,disabled:!0,value:o,onChange:le.noop,checked:o,content:o}):(0,ur.jsx)(e,{name:t,...r})};return t.propTypes={name:lr().string.isRequired,isDummy:lr().bool},t},fl=e=>{const t=({name:t,isDummy:s=!1,...r})=>{const o=lo("selectDefaultSettingValue",[t],t);return s?(0,ur.jsx)(e,{name:t,...r,disabled:!0,value:o,onChange:le.noop}):(0,ur.jsx)(e,{name:t,...r})};return t.propTypes={name:lr().string.isRequired,isDummy:lr().bool},t},_l=e=>{const t=({name:t,...s})=>{const{isTouched:r,error:o}=(({name:e})=>{const{touched:t,errors:s}=q();return{isTouched:(0,i.useMemo)((()=>(0,le.get)(t,e,!1)),[t]),error:(0,i.useMemo)((()=>(0,le.get)(s,e,"")),[s])}})({name:t});return(0,ur.jsx)(e,{name:t,validation:{variant:"error",message:r&&o},...s})};return t.propTypes={name:lr().string.isRequired},t},yl=({as:e,transformValue:t=le.identity,...s})=>{const[r,,{setTouched:o,setValue:a}]=ee(s),n=(0,i.useCallback)((e=>{o(!0,!1),a(t(e))}),[s.name]);return(0,ur.jsx)(e,{...r,onChange:n,...s})};yl.propTypes={as:lr().elementType.isRequired,name:lr().string.isRequired,transformValue:lr().func};const wl=(e=>{const t=({name:t,...s})=>{const{isTouched:r,error:o}=(({name:e})=>{const{touched:t,errors:s}=q();return{isTouched:(0,i.useMemo)((()=>(0,le.get)(t,e,!1)),[t]),error:(0,i.useMemo)((()=>(0,le.get)(s,e,"")),[s])}})({name:t});return(0,ur.jsx)(e,{name:t,validation:{variant:"error",message:r&&o},...s})};return t.propTypes={name:lr().string.isRequired},t})(te),gl=(e=>{const t=({name:t,isDummy:s=!1,...r})=>{const o=lo("selectDefaultSettingValue",[t],t);return s?(0,ur.jsx)(e,{name:t,...r,disabled:!0,value:o,onChange:le.noop,tags:[],onAddTag:le.noop,onRemoveTag:le.noop}):(0,ur.jsx)(e,{name:t,...r})};return t.propTypes={name:lr().string.isRequired,isDummy:lr().bool},t})(ko),bl=hl(jo),vl=({name:e,label:t,singularLabel:s,hasArchive:r,hasSchemaArticleType:o,isNew:n})=>{const l=lo("selectReplacementVariablesFor",[e],e,"custom_post_type"),d=lo("selectUpsellSettingsAsProps"),c=lo("selectRecommendedReplacementVariablesFor",[e],e,"custom_post_type"),u=lo("selectReplacementVariablesFor",[e],`${e}_archive`,"custom-post-type_archive"),p=lo("selectRecommendedReplacementVariablesFor",[e],`${e}_archive`,"custom-post-type_archive"),m=lo("selectPreference",[],"isPremium"),h=lo("selectLink",[],"https://yoa.st/4cr"),f=lo("selectArticleTypeValuesFor",[e],e),_=lo("selectPageTypeValuesFor",[e],e),y=lo("selectPreference",[],"isWooCommerceActive"),w=lo("selectPreference",[],"hasWooCommerceShopPage"),g=lo("selectPreference",[],"editWooCommerceShopPageUrl"),b=lo("selectPreference",[],"wooCommerceShopPageSettingUrl"),v=lo("selectPreference",[],"userLocale"),x=lo("selectLink",[],"https://yoa.st/show-x"),j=lo("selectLink",[],"https://yoa.st/4e0"),S=lo("selectLink",[],"https://yoa.st/get-custom-fields"),k=lo("selectLink",[],"https://yoa.st/post-type-schema"),{updatePostTypeReviewStatus:E}=io(),L=lo("selectPreference",[],"isWooCommerceSEOActive")&&"product"===e,T=(0,Et.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */ +(0,Et.__)("You have %1$s activated on your site, automatically setting the Page type for your products to 'Item Page'. As a result, the Page type selection is disabled.","wordpress-seo"),"Yoast WooCommerce SEO");(0,i.useEffect)((()=>{n&&E(e)}),[e,E]);const F=(0,i.useMemo)((()=>ya(t,v)),[t,v]),$=(0,i.useMemo)((()=>ya(s,v)),[s,v]),R=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to an opening strong tag. * %2$s expands to a closing strong tag. * %3$s expands to the recommended image size. */ -(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","1200x675px"),{strong:(0,mr.jsx)("strong",{className:"yst-font-semibold"})})),[]),P=(0,a.useMemo)((()=>y&&"product"===e),[e,y]),N=(0,a.useMemo)((()=>w?bl((0,Et.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ -(0,Et.__)("You can edit the SEO metadata for this custom type on the %1$sShop page%2$s.","wordpress-seo"),"<a>","</a>"),g,"link-edit-woocommerce-shop-page"):bl((0,Et.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ -(0,Et.__)("You haven't set a Shop page in your WooCommerce settings. %1$sPlease do this first%2$s.","wordpress-seo"),"<a>","</a>"),b,"link-woocommerce-shop-page-setting")),[w,b,g]),O=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","1200x675px"),{strong:(0,ur.jsx)("strong",{className:"yst-font-semibold"})})),[]),P=(0,i.useMemo)((()=>y&&"product"===e),[e,y]),C=(0,i.useMemo)((()=>w?pl((0,Et.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ +(0,Et.__)("You can edit the SEO metadata for this custom type on the %1$sShop page%2$s.","wordpress-seo"),"<a>","</a>"),g,"link-edit-woocommerce-shop-page"):pl((0,Et.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ +(0,Et.__)("You haven't set a Shop page in your WooCommerce settings. %1$sPlease do this first%2$s.","wordpress-seo"),"<a>","</a>"),b,"link-woocommerce-shop-page-setting")),[w,b,g]),O=(0,i.useMemo)((()=>cr((0,Et.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing <em> tags. -(0,Et.__)("You can add multiple custom fields and separate them by using %1$senter%2$s or %1$scomma%2$s.","wordpress-seo"),"<em>","</em>"),{em:(0,mr.jsx)("em",{})})),[]),C=(0,a.useMemo)((()=>bl((0,Et.sprintf)( +(0,Et.__)("You can add multiple custom fields and separate them by using %1$senter%2$s or %1$scomma%2$s.","wordpress-seo"),"<em>","</em>"),{em:(0,ur.jsx)("em",{})})),[]),N=(0,i.useMemo)((()=>pl((0,Et.sprintf)( /* translators: %1$s expands to the post type plural, e.g. posts. * %2$s and %3$s expand to opening and closing anchor tag. %4$s expands to "Yoast SEO". */ -(0,Et.__)("Determine how your %1$s should be described by default in %2$syour site's Schema.org markup%3$s. You can always change the settings for individual %1$s in the %4$s sidebar or metabox.","wordpress-seo"),T,"<a>","</a>","Yoast SEO"),k,"link-post-type-schema")),[T,k]),{values:A}=q(),{opengraph:M}=A.wpseo_social,{"breadcrumbs-enable":I}=A.wpseo_titles;return(0,mr.jsx)(xa,{title:t,description:(0,Et.sprintf)(/* translators: %1$s expands to the post type plural, e.g. posts. */ -(0,Et.__)("Determine how your %1$s should look in search engines and on social media.","wordpress-seo"),T),children:(0,mr.jsx)(ko,{children:(0,mr.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,mr.jsxs)(xo,{title:(0,Et.__)("Search appearance","wordpress-seo"),description:(0,Et.sprintf)( +(0,Et.__)("Determine how your %1$s should be described by default in %2$syour site's Schema.org markup%3$s. You can always change the settings for individual %1$s in the %4$s sidebar or metabox.","wordpress-seo"),F,"<a>","</a>","Yoast SEO"),k,"link-post-type-schema")),[F,k]),{values:A}=q(),{opengraph:M}=A.wpseo_social,{"breadcrumbs-enable":I}=A.wpseo_titles;return(0,ur.jsx)(ui,{title:t,description:(0,Et.sprintf)(/* translators: %1$s expands to the post type plural, e.g. posts. */ +(0,Et.__)("Determine how your %1$s should look in search engines and on social media.","wordpress-seo"),F),children:(0,ur.jsx)(ho,{children:(0,ur.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,ur.jsxs)(uo,{title:(0,Et.__)("Search appearance","wordpress-seo"),description:(0,Et.sprintf)( // translators: %1$s expands to the post type plural, e.g. posts. %2$s expands to "Yoast SEO". -(0,Et.__)("Determine what your %1$s should look like in the search results by default. You can always customize the settings for individual %1$s in the %2$s sidebar or metabox.","wordpress-seo"),T,"Yoast SEO"),children:[(0,mr.jsx)(Lo,{name:`wpseo_titles.noindex-${e}`,id:`input-wpseo_titles-noindex-${e}`,label:(0,Et.sprintf)( +(0,Et.__)("Determine what your %1$s should look like in the search results by default. You can always customize the settings for individual %1$s in the %2$s sidebar or metabox.","wordpress-seo"),F,"Yoast SEO"),children:[(0,ur.jsx)(_o,{name:`wpseo_titles.noindex-${e}`,id:`input-wpseo_titles-noindex-${e}`,label:(0,Et.sprintf)( // translators: %1$s expands to the post type plural, e.g. posts. -(0,Et.__)("Show %1$s in search results","wordpress-seo"),T),description:(0,mr.jsxs)(mr.Fragment,{children:[(0,Et.sprintf)( +(0,Et.__)("Show %1$s in search results","wordpress-seo"),F),description:(0,ur.jsxs)(ur.Fragment,{children:[(0,Et.sprintf)( // translators: %1$s expands to the post type plural, e.g. posts. -(0,Et.__)("Disabling this means that %1$s will not be indexed by search engines and will be excluded from XML sitemaps.","wordpress-seo"),T)," ",(0,mr.jsx)(i.Link,{href:x,target:"_blank",rel:"noopener",children:(0,Et.__)("Read more about the search results settings","wordpress-seo")}),"."]}),className:"yst-max-w-sm"}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(Oo,{type:"title",name:`wpseo_titles.title-${e}`,fieldId:`input-wpseo_titles-title-${e}`,label:(0,Et.__)("SEO title","wordpress-seo"),replacementVariables:l,recommendedReplacementVariables:c}),(0,mr.jsx)(Oo,{type:"description",name:`wpseo_titles.metadesc-${e}`,fieldId:`input-wpseo_titles-metadesc-${e}`,label:(0,Et.__)("Meta description","wordpress-seo"),replacementVariables:l,recommendedReplacementVariables:c,className:"yst-replacevar--description"})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(xo,{title:(0,mr.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-1.5",children:[(0,mr.jsx)("span",{children:(0,Et.__)("Social media appearance","wordpress-seo")}),m&&(0,mr.jsx)(i.Badge,{variant:"upsell",children:"Premium"})]}),description:(0,Et.sprintf)( +(0,Et.__)("Disabling this means that %1$s will not be indexed by search engines and will be excluded from XML sitemaps.","wordpress-seo"),F)," ",(0,ur.jsx)(a.Link,{href:x,target:"_blank",rel:"noopener",children:(0,Et.__)("Read more about the search results settings","wordpress-seo")}),"."]}),className:"yst-max-w-sm"}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(jo,{type:"title",name:`wpseo_titles.title-${e}`,fieldId:`input-wpseo_titles-title-${e}`,label:(0,Et.__)("SEO title","wordpress-seo"),replacementVariables:l,recommendedReplacementVariables:c}),(0,ur.jsx)(jo,{type:"description",name:`wpseo_titles.metadesc-${e}`,fieldId:`input-wpseo_titles-metadesc-${e}`,label:(0,Et.__)("Meta description","wordpress-seo"),replacementVariables:l,recommendedReplacementVariables:c,className:"yst-replacevar--description"})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(uo,{title:(0,ur.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-1.5",children:[(0,ur.jsx)("span",{children:(0,Et.__)("Social media appearance","wordpress-seo")}),m&&(0,ur.jsx)(a.Badge,{variant:"upsell",children:"Premium"})]}),description:(0,Et.sprintf)( // translators: %1$s expands to the post type plural, e.g. posts. %2$s expands to "Yoast SEO". -(0,Et.__)("Determine how your %1$s should look on social media by default. You can always customize the settings for individual %1$s in the %2$s sidebar or metabox.","wordpress-seo"),T,"Yoast SEO"),children:(0,mr.jsxs)(i.FeatureUpsell,{shouldUpsell:!m,variant:"card",cardLink:j,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ -(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...d,children:[(0,mr.jsx)(ra,{isEnabled:!m||M}),(0,mr.jsx)(Ro,{id:`wpseo_titles-social-image-${e}`,label:(0,Et.__)("Social image","wordpress-seo"),previewLabel:R,mediaUrlName:`wpseo_titles.social-image-url-${e}`,mediaIdName:`wpseo_titles.social-image-id-${e}`,disabled:!M,isDummy:!m}),(0,mr.jsx)(Fl,{type:"title",name:`wpseo_titles.social-title-${e}`,fieldId:`input-wpseo_titles-social-title-${e}`,label:(0,Et.__)("Social title","wordpress-seo"),replacementVariables:l,recommendedReplacementVariables:c,disabled:!M,isDummy:!m}),(0,mr.jsx)(Fl,{type:"description",name:`wpseo_titles.social-description-${e}`,fieldId:`input-wpseo_titles-social-description-${e}`,label:(0,Et.__)("Social description","wordpress-seo"),replacementVariables:l,recommendedReplacementVariables:c,className:"yst-replacevar--description",disabled:!M,isDummy:!m})]})}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.__)("Schema","wordpress-seo"),description:C,children:[(0,mr.jsx)(kl,{as:i.SelectField,type:"select",name:`wpseo_titles.schema-page-type-${e}`,id:`input-wpseo_titles-schema-page-type-${e}`,label:(0,Et.__)("Page type","wordpress-seo"),options:L?_.filter((({value:e})=>"ItemPage"===e)):_,disabled:L,className:"yst-max-w-sm",description:L?F:null}),o&&(0,mr.jsxs)("div",{children:[(0,mr.jsx)(kl,{as:i.SelectField,type:"select",name:`wpseo_titles.schema-article-type-${e}`,id:`input-wpseo_titles-schema-article-type-${e}`,label:(0,Et.__)("Article type","wordpress-seo"),options:f,className:"yst-max-w-sm"}),(0,mr.jsx)(ta,{name:e})]})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.__)("Additional settings","wordpress-seo"),children:[(0,mr.jsx)(kl,{as:i.ToggleField,type:"checkbox",name:`wpseo_titles.display-metabox-pt-${e}`,id:`input-wpseo_titles-display-metabox-pt-${e}`,label:(0,Et.__)("Enable SEO controls and assessments","wordpress-seo"),description:(0,Et.__)("Show or hide our tools and controls in the content editor.","wordpress-seo"),className:"yst-max-w-sm"}),(0,mr.jsx)(i.FeatureUpsell,{shouldUpsell:!m,variant:"card",cardLink:S,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ -(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...d,children:(0,mr.jsx)(Ll,{name:`wpseo_titles.page-analyse-extra-${e}`,id:`input-wpseo_titles-page-analyse-extra-${e}`,label:(0,Et.__)("Add custom fields to page analysis","wordpress-seo"),labelSuffix:m&&(0,mr.jsx)(i.Badge,{className:"yst-ms-1.5",size:"small",variant:"upsell",children:"Premium"}),description:(0,mr.jsxs)(mr.Fragment,{children:[O,(0,mr.jsx)("br",{}),(0,mr.jsx)(i.Link,{id:`link-custom-fields-page-analysis-${e}`,href:h,target:"_blank",rel:"noopener",children:(0,Et.__)("Read more about our custom field analysis","wordpress-seo")}),"."]}),isDummy:!m})})]}),r&&(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("hr",{className:"yst-my-16"}),(0,mr.jsxs)("div",{className:"yst-mb-8",children:[(0,mr.jsx)(i.Title,{as:"h2",className:"yst-mb-2",children:(0,Et.sprintf)( +(0,Et.__)("Determine how your %1$s should look on social media by default. You can always customize the settings for individual %1$s in the %2$s sidebar or metabox.","wordpress-seo"),F,"Yoast SEO"),children:(0,ur.jsxs)(a.FeatureUpsell,{shouldUpsell:!m,variant:"card",cardLink:j,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ +(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...d,children:[(0,ur.jsx)(Ho,{isEnabled:!m||M}),(0,ur.jsx)(bo,{id:`wpseo_titles-social-image-${e}`,label:(0,Et.__)("Social image","wordpress-seo"),previewLabel:R,mediaUrlName:`wpseo_titles.social-image-url-${e}`,mediaIdName:`wpseo_titles.social-image-id-${e}`,disabled:!M,isDummy:!m}),(0,ur.jsx)(bl,{type:"title",name:`wpseo_titles.social-title-${e}`,fieldId:`input-wpseo_titles-social-title-${e}`,label:(0,Et.__)("Social title","wordpress-seo"),replacementVariables:l,recommendedReplacementVariables:c,disabled:!M,isDummy:!m}),(0,ur.jsx)(bl,{type:"description",name:`wpseo_titles.social-description-${e}`,fieldId:`input-wpseo_titles-social-description-${e}`,label:(0,Et.__)("Social description","wordpress-seo"),replacementVariables:l,recommendedReplacementVariables:c,className:"yst-replacevar--description",disabled:!M,isDummy:!m})]})}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.__)("Schema","wordpress-seo"),description:N,children:[(0,ur.jsx)(yl,{as:a.SelectField,type:"select",name:`wpseo_titles.schema-page-type-${e}`,id:`input-wpseo_titles-schema-page-type-${e}`,label:(0,Et.__)("Page type","wordpress-seo"),options:L?_.filter((({value:e})=>"ItemPage"===e)):_,disabled:L,className:"yst-max-w-sm",description:L?T:null}),o&&(0,ur.jsxs)("div",{children:[(0,ur.jsx)(yl,{as:a.SelectField,type:"select",name:`wpseo_titles.schema-article-type-${e}`,id:`input-wpseo_titles-schema-article-type-${e}`,label:(0,Et.__)("Article type","wordpress-seo"),options:f,className:"yst-max-w-sm"}),(0,ur.jsx)(qo,{name:e})]})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.__)("Additional settings","wordpress-seo"),children:[(0,ur.jsx)(yl,{as:a.ToggleField,type:"checkbox",name:`wpseo_titles.display-metabox-pt-${e}`,id:`input-wpseo_titles-display-metabox-pt-${e}`,label:(0,Et.__)("Enable SEO controls and assessments","wordpress-seo"),description:(0,Et.__)("Show or hide our tools and controls in the content editor.","wordpress-seo"),className:"yst-max-w-sm"}),(0,ur.jsx)(a.FeatureUpsell,{shouldUpsell:!m,variant:"card",cardLink:S,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ +(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...d,children:(0,ur.jsx)(gl,{name:`wpseo_titles.page-analyse-extra-${e}`,id:`input-wpseo_titles-page-analyse-extra-${e}`,label:(0,Et.__)("Add custom fields to page analysis","wordpress-seo"),labelSuffix:m&&(0,ur.jsx)(a.Badge,{className:"yst-ms-1.5",size:"small",variant:"upsell",children:"Premium"}),description:(0,ur.jsxs)(ur.Fragment,{children:[O,(0,ur.jsx)("br",{}),(0,ur.jsx)(a.Link,{id:`link-custom-fields-page-analysis-${e}`,href:h,target:"_blank",rel:"noopener",children:(0,Et.__)("Read more about our custom field analysis","wordpress-seo")}),"."]}),isDummy:!m})})]}),r&&(0,ur.jsxs)(ur.Fragment,{children:[(0,ur.jsx)("hr",{className:"yst-my-16"}),(0,ur.jsxs)("div",{className:"yst-mb-8",children:[(0,ur.jsx)(a.Title,{as:"h2",className:"yst-mb-2",children:(0,Et.sprintf)( // translators: %1$s expands to the post type plural, e.g. Posts. -(0,Et.__)("%1$s archive","wordpress-seo"),t)}),(0,mr.jsxs)("p",{className:"yst-text-tiny",children:[P&&N,!P&&(0,Et.sprintf)( +(0,Et.__)("%1$s archive","wordpress-seo"),t)}),(0,ur.jsxs)("p",{className:"yst-text-tiny",children:[P&&C,!P&&(0,Et.sprintf)( // translators: %1$s expands to the post type singular, e.g. post. -(0,Et.__)("These settings are specifically for optimizing your %1$s archive.","wordpress-seo"),$)]})]}),!P&&(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.__)("Search appearance","wordpress-seo"),description:(0,Et.sprintf)( +(0,Et.__)("These settings are specifically for optimizing your %1$s archive.","wordpress-seo"),$)]})]}),!P&&(0,ur.jsxs)(ur.Fragment,{children:[(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.__)("Search appearance","wordpress-seo"),description:(0,Et.sprintf)( // translators: %1$s expands to the post type plural, e.g. posts. -(0,Et.__)("Determine how your %1$s archive should look in search engines.","wordpress-seo"),T),children:[(0,mr.jsx)(Lo,{name:`wpseo_titles.noindex-ptarchive-${e}`,id:`input-wpseo_titles-noindex-ptarchive-${e}`,label:(0,Et.sprintf)( +(0,Et.__)("Determine how your %1$s archive should look in search engines.","wordpress-seo"),F),children:[(0,ur.jsx)(_o,{name:`wpseo_titles.noindex-ptarchive-${e}`,id:`input-wpseo_titles-noindex-ptarchive-${e}`,label:(0,Et.sprintf)( // translators: %1$s expands to the post type plural, e.g. posts. -(0,Et.__)("Show the archive for %1$s in search results","wordpress-seo"),T),description:(0,Et.sprintf)( +(0,Et.__)("Show the archive for %1$s in search results","wordpress-seo"),F),description:(0,Et.sprintf)( // translators: %1$s expands to the post type plural, e.g. posts. -(0,Et.__)("Disabling this means that the archive for %1$s will not be indexed by search engines and will be excluded from XML sitemaps.","wordpress-seo"),T),className:"yst-max-w-sm"}),(0,mr.jsx)(Oo,{type:"title",name:`wpseo_titles.title-ptarchive-${e}`,fieldId:`input-wpseo_titles-title-ptarchive-${e}`,label:(0,Et.__)("SEO title","wordpress-seo"),replacementVariables:u,recommendedReplacementVariables:p}),(0,mr.jsx)(Oo,{type:"description",name:`wpseo_titles.metadesc-ptarchive-${e}`,fieldId:`input-wpseo_titles-metadesc-ptarchive-${e}`,label:(0,Et.__)("Meta description","wordpress-seo"),replacementVariables:u,recommendedReplacementVariables:p,className:"yst-replacevar--description"})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(xo,{title:(0,mr.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-1.5",children:[(0,mr.jsx)("span",{children:(0,Et.__)("Social media appearance","wordpress-seo")}),m&&(0,mr.jsx)(i.Badge,{variant:"upsell",children:"Premium"})]}),description:(0,Et.sprintf)( +(0,Et.__)("Disabling this means that the archive for %1$s will not be indexed by search engines and will be excluded from XML sitemaps.","wordpress-seo"),F),className:"yst-max-w-sm"}),(0,ur.jsx)(jo,{type:"title",name:`wpseo_titles.title-ptarchive-${e}`,fieldId:`input-wpseo_titles-title-ptarchive-${e}`,label:(0,Et.__)("SEO title","wordpress-seo"),replacementVariables:u,recommendedReplacementVariables:p}),(0,ur.jsx)(jo,{type:"description",name:`wpseo_titles.metadesc-ptarchive-${e}`,fieldId:`input-wpseo_titles-metadesc-ptarchive-${e}`,label:(0,Et.__)("Meta description","wordpress-seo"),replacementVariables:u,recommendedReplacementVariables:p,className:"yst-replacevar--description"})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(uo,{title:(0,ur.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-1.5",children:[(0,ur.jsx)("span",{children:(0,Et.__)("Social media appearance","wordpress-seo")}),m&&(0,ur.jsx)(a.Badge,{variant:"upsell",children:"Premium"})]}),description:(0,Et.sprintf)( // translators: %1$s expands to the post type plural, e.g. posts. -(0,Et.__)("Determine how your %1$s archive should look on social media.","wordpress-seo"),T),children:(0,mr.jsxs)(i.FeatureUpsell,{shouldUpsell:!m,variant:"card",cardLink:j,cardText:(0,Et.sprintf)( +(0,Et.__)("Determine how your %1$s archive should look on social media.","wordpress-seo"),F),children:(0,ur.jsxs)(a.FeatureUpsell,{shouldUpsell:!m,variant:"card",cardLink:j,cardText:(0,Et.sprintf)( // translators: %1$s expands to Premium. -(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...d,children:[(0,mr.jsx)(Ro,{id:`wpseo_titles-social-image-ptarchive-${e}`,label:(0,Et.__)("Social image","wordpress-seo"),previewLabel:R,mediaUrlName:`wpseo_titles.social-image-url-ptarchive-${e}`,mediaIdName:`wpseo_titles.social-image-id-ptarchive-${e}`,disabled:!M,isDummy:!m}),(0,mr.jsx)(Fl,{type:"title",name:`wpseo_titles.social-title-ptarchive-${e}`,fieldId:`input-wpseo_titles-social-title-ptarchive-${e}`,label:(0,Et.__)("Social title","wordpress-seo"),replacementVariables:u,recommendedReplacementVariables:p,disabled:!M,isDummy:!m}),(0,mr.jsx)(Fl,{type:"description",name:`wpseo_titles.social-description-ptarchive-${e}`,fieldId:`input-wpseo_titles-social-description-ptarchive-${e}`,label:(0,Et.__)("Social description","wordpress-seo"),replacementVariables:u,recommendedReplacementVariables:p,className:"yst-replacevar--description",disabled:!M,isDummy:!m})]})}),I&&(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(xo,{title:(0,Et.__)("Additional settings","wordpress-seo"),children:(0,mr.jsx)(te,{as:i.TextField,type:"text",name:`wpseo_titles.bctitle-ptarchive-${e}`,id:`input-wpseo_titles-bctitle-ptarchive-${e}`,label:(0,Et.__)("Breadcrumbs title","wordpress-seo")})})]})]})]})]})})})};Tl.propTypes={name:cr().string.isRequired,label:cr().string.isRequired,singularLabel:cr().string.isRequired,hasArchive:cr().bool.isRequired,hasSchemaArticleType:cr().bool.isRequired,isNew:cr().bool.isRequired};const $l=Tl,Rl=xl(Oo),Pl=({name:e,label:t,postTypes:s,showUi:r,isNew:o})=>{const n=bo("selectPostTypes",[s],s),l=bo("selectUpsellSettingsAsProps"),d=bo("selectReplacementVariablesFor",[e],e,"term-in-custom-taxonomy"),c=bo("selectRecommendedReplacementVariablesFor",[e],e,"term-in-custom-taxonomy"),u=bo("selectLink",[],"https://yoa.st/show-x"),p=bo("selectPreference",[],"isPremium"),m=bo("selectPreference",[],"userLocale"),h=bo("selectPreference",[],"editTaxonomyUrl"),f=bo("selectLink",[],"https://yoa.st/4e0"),_=(0,a.useMemo)((()=>Fi(t,m)),[t,m]),y=(0,a.useMemo)((()=>(0,le.values)(n)),[n]),w=(0,a.useMemo)((()=>(0,le.initial)(y)),[y]),g=(0,a.useMemo)((()=>(0,le.last)(y)),[y]),{updateTaxonomyReviewStatus:b}=yo();(0,a.useEffect)((()=>{o&&b(e)}),[e,b]);const v=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...d,children:[(0,ur.jsx)(bo,{id:`wpseo_titles-social-image-ptarchive-${e}`,label:(0,Et.__)("Social image","wordpress-seo"),previewLabel:R,mediaUrlName:`wpseo_titles.social-image-url-ptarchive-${e}`,mediaIdName:`wpseo_titles.social-image-id-ptarchive-${e}`,disabled:!M,isDummy:!m}),(0,ur.jsx)(bl,{type:"title",name:`wpseo_titles.social-title-ptarchive-${e}`,fieldId:`input-wpseo_titles-social-title-ptarchive-${e}`,label:(0,Et.__)("Social title","wordpress-seo"),replacementVariables:u,recommendedReplacementVariables:p,disabled:!M,isDummy:!m}),(0,ur.jsx)(bl,{type:"description",name:`wpseo_titles.social-description-ptarchive-${e}`,fieldId:`input-wpseo_titles-social-description-ptarchive-${e}`,label:(0,Et.__)("Social description","wordpress-seo"),replacementVariables:u,recommendedReplacementVariables:p,className:"yst-replacevar--description",disabled:!M,isDummy:!m})]})}),I&&(0,ur.jsxs)(ur.Fragment,{children:[(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(uo,{title:(0,Et.__)("Additional settings","wordpress-seo"),children:(0,ur.jsx)(te,{as:a.TextField,type:"text",name:`wpseo_titles.bctitle-ptarchive-${e}`,id:`input-wpseo_titles-bctitle-ptarchive-${e}`,label:(0,Et.__)("Breadcrumbs title","wordpress-seo")})})]})]})]})]})})})};vl.propTypes={name:lr().string.isRequired,label:lr().string.isRequired,singularLabel:lr().string.isRequired,hasArchive:lr().bool.isRequired,hasSchemaArticleType:lr().bool.isRequired,isNew:lr().bool.isRequired};const xl=vl,jl=hl(jo),Sl=({name:e,label:t,postTypes:s,showUi:r,isNew:o})=>{const n=lo("selectPostTypes",[s],s),l=lo("selectUpsellSettingsAsProps"),d=lo("selectReplacementVariablesFor",[e],e,"term-in-custom-taxonomy"),c=lo("selectRecommendedReplacementVariablesFor",[e],e,"term-in-custom-taxonomy"),u=lo("selectLink",[],"https://yoa.st/show-x"),p=lo("selectPreference",[],"isPremium"),m=lo("selectPreference",[],"userLocale"),h=lo("selectPreference",[],"editTaxonomyUrl"),f=lo("selectLink",[],"https://yoa.st/4e0"),_=(0,i.useMemo)((()=>ya(t,m)),[t,m]),y=(0,i.useMemo)((()=>(0,le.values)(n)),[n]),w=(0,i.useMemo)((()=>(0,le.initial)(y)),[y]),g=(0,i.useMemo)((()=>(0,le.last)(y)),[y]),{updateTaxonomyReviewStatus:b}=io();(0,i.useEffect)((()=>{o&&b(e)}),[e,b]);const v=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to an opening strong tag. * %2$s expands to a closing strong tag. * %3$s expands to the recommended image size. */ -(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","1200x675px"),{strong:(0,mr.jsx)("strong",{className:"yst-font-semibold"})})),[]),x=(0,a.useMemo)((()=>pr((0,Et.sprintf)(/* translators: %s expands to <code>/category/</code> */ -(0,Et.__)("Category URLs in WordPress contain a prefix, usually %s. Show or hide that prefix in category URLs.","wordpress-seo"),"<code />"),{code:(0,mr.jsx)(i.Code,{children:"/category/"})})),[]),j=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","1200x675px"),{strong:(0,ur.jsx)("strong",{className:"yst-font-semibold"})})),[]),x=(0,i.useMemo)((()=>cr((0,Et.sprintf)(/* translators: %s expands to <code>/category/</code> */ +(0,Et.__)("Category URLs in WordPress contain a prefix, usually %s. Show or hide that prefix in category URLs.","wordpress-seo"),"<code />"),{code:(0,ur.jsx)(a.Code,{children:"/category/"})})),[]),j=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s and %2$s expand to post type plurals in code blocks, e.g. Posts Pages and Custom Post Type. */ -(0,Et.__)("This taxonomy is used for %1$s and %2$s.","wordpress-seo"),"<code1 />","<code2 />"),{code1:(0,mr.jsx)(mr.Fragment,{children:(0,le.map)(w,((e,t)=>(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)(i.Code,{children:null==e?void 0:e.label},null==e?void 0:e.name),t<w.length-1&&" "]})))}),code2:(0,mr.jsx)(i.Code,{children:null==g?void 0:g.label})})),[t,w,g]),S=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("This taxonomy is used for %1$s and %2$s.","wordpress-seo"),"<code1 />","<code2 />"),{code1:(0,ur.jsx)(ur.Fragment,{children:(0,le.map)(w,((e,t)=>(0,ur.jsxs)(ur.Fragment,{children:[(0,ur.jsx)(a.Code,{children:null==e?void 0:e.label},null==e?void 0:e.name),t<w.length-1&&" "]})))}),code2:(0,ur.jsx)(a.Code,{children:null==g?void 0:g.label})})),[t,w,g]),S=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to the post type plural in code block, e.g. Posts. */ -(0,Et.__)("This taxonomy is used for %2$s.","wordpress-seo"),t,"<code />"),{code:(0,mr.jsx)(i.Code,{children:null==g?void 0:g.label})})),[t,g]),{values:k}=q(),{opengraph:E}=k.wpseo_social,L=(0,a.useMemo)((()=>w.length>1?j:S),[w,j,S]),F=(0,a.useCallback)((()=>r&&(0,mr.jsx)(kl,{as:i.ToggleField,type:"checkbox",name:`wpseo_titles.display-metabox-tax-${e}`,id:`input-wpseo_titles-display-metabox-tax-${e}`,label:(0,Et.__)("Enable SEO controls and assessments","wordpress-seo"),description:(0,Et.__)("Show or hide our tools and controls in the content editor.","wordpress-seo"),className:"yst-max-w-sm"})),[r,e]),T=(0,a.useCallback)((()=>"category"===e&&(0,mr.jsx)(Lo,{name:"wpseo_titles.stripcategorybase",id:"input-wpseo_titles-stripcategorybase",label:(0,Et.__)("Show the categories prefix in the slug","wordpress-seo"),description:x,className:"yst-max-w-sm"})),[e,x]),$=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("This taxonomy is used for %2$s.","wordpress-seo"),t,"<code />"),{code:(0,ur.jsx)(a.Code,{children:null==g?void 0:g.label})})),[t,g]),{values:k}=q(),{opengraph:E}=k.wpseo_social,L=(0,i.useMemo)((()=>w.length>1?j:S),[w,j,S]),T=(0,i.useCallback)((()=>r&&(0,ur.jsx)(yl,{as:a.ToggleField,type:"checkbox",name:`wpseo_titles.display-metabox-tax-${e}`,id:`input-wpseo_titles-display-metabox-tax-${e}`,label:(0,Et.__)("Enable SEO controls and assessments","wordpress-seo"),description:(0,Et.__)("Show or hide our tools and controls in the content editor.","wordpress-seo"),className:"yst-max-w-sm"})),[r,e]),F=(0,i.useCallback)((()=>"category"===e&&(0,ur.jsx)(_o,{name:"wpseo_titles.stripcategorybase",id:"input-wpseo_titles-stripcategorybase",label:(0,Et.__)("Show the categories prefix in the slug","wordpress-seo"),description:x,className:"yst-max-w-sm"})),[e,x]),$=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to the name of the taxonomy. */ -(0,Et.__)("The name of this category is %1$s.","wordpress-seo"),"<link />"),{link:(0,mr.jsx)(i.Link,{href:`${h}?taxonomy=${e}`,children:e})})),[e]);return(0,mr.jsx)(xa,{title:t,description:(0,mr.jsxs)(mr.Fragment,{children:[(0,Et.sprintf)(/* translators: %1$s expands to the taxonomy plural, e.g. categories. */ -(0,Et.__)("Determine how your %1$s should look in search engines and on social media.","wordpress-seo"),_),(0,mr.jsx)("br",{}),(0,le.isEmpty)(y)?$:L]}),children:(0,mr.jsx)(ko,{children:(0,mr.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,mr.jsxs)(xo,{title:(0,Et.__)("Search appearance","wordpress-seo"),description:(0,Et.sprintf)( +(0,Et.__)("The name of this category is %1$s.","wordpress-seo"),"<link />"),{link:(0,ur.jsx)(a.Link,{href:`${h}?taxonomy=${e}`,children:e})})),[e]);return(0,ur.jsx)(ui,{title:t,description:(0,ur.jsxs)(ur.Fragment,{children:[(0,Et.sprintf)(/* translators: %1$s expands to the taxonomy plural, e.g. categories. */ +(0,Et.__)("Determine how your %1$s should look in search engines and on social media.","wordpress-seo"),_),(0,ur.jsx)("br",{}),(0,le.isEmpty)(y)?$:L]}),children:(0,ur.jsx)(ho,{children:(0,ur.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,ur.jsxs)(uo,{title:(0,Et.__)("Search appearance","wordpress-seo"),description:(0,Et.sprintf)( // translators: %1$s expands to the post type plural, e.g. Posts. %2$s expands to "Yoast SEO". -(0,Et.__)("Determine what your %1$s should look like in the search results by default. You can always customize the settings for individual %1$s in the %2$s metabox.","wordpress-seo"),_,"Yoast SEO"),children:[(0,mr.jsx)(Lo,{name:`wpseo_titles.noindex-tax-${e}`,id:`input-wpseo_titles-noindex-tax-${e}`,label:(0,Et.sprintf)( +(0,Et.__)("Determine what your %1$s should look like in the search results by default. You can always customize the settings for individual %1$s in the %2$s metabox.","wordpress-seo"),_,"Yoast SEO"),children:[(0,ur.jsx)(_o,{name:`wpseo_titles.noindex-tax-${e}`,id:`input-wpseo_titles-noindex-tax-${e}`,label:(0,Et.sprintf)( // translators: %1$s expands to the taxonomy plural, e.g. Categories. -(0,Et.__)("Show %1$s in search results","wordpress-seo"),_),description:(0,mr.jsxs)(mr.Fragment,{children:[(0,Et.sprintf)( +(0,Et.__)("Show %1$s in search results","wordpress-seo"),_),description:(0,ur.jsxs)(ur.Fragment,{children:[(0,Et.sprintf)( // translators: %1$s expands to the taxonomy plural, e.g. Categories. -(0,Et.__)("Disabling this means that archive pages for %1$s will not be indexed by search engines and will be excluded from XML sitemaps.","wordpress-seo"),_)," ",(0,mr.jsx)(i.Link,{href:u,target:"_blank",rel:"noopener",children:(0,Et.__)("Read more about the search results settings","wordpress-seo")}),"."]}),className:"yst-max-w-sm"}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(Oo,{type:"title",name:`wpseo_titles.title-tax-${e}`,fieldId:`input-wpseo_titles-title-tax-${e}`,label:(0,Et.__)("SEO title","wordpress-seo"),replacementVariables:d,recommendedReplacementVariables:c}),(0,mr.jsx)(Oo,{type:"description",name:`wpseo_titles.metadesc-tax-${e}`,fieldId:`input-wpseo_titles-metadesc-tax-${e}`,label:(0,Et.__)("Meta description","wordpress-seo"),replacementVariables:d,recommendedReplacementVariables:c,className:"yst-replacevar--description"})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(xo,{title:(0,mr.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-1.5",children:[(0,mr.jsx)("span",{children:(0,Et.__)("Social media appearance","wordpress-seo")}),p&&(0,mr.jsx)(i.Badge,{variant:"upsell",children:"Premium"})]}),description:(0,Et.sprintf)( +(0,Et.__)("Disabling this means that archive pages for %1$s will not be indexed by search engines and will be excluded from XML sitemaps.","wordpress-seo"),_)," ",(0,ur.jsx)(a.Link,{href:u,target:"_blank",rel:"noopener",children:(0,Et.__)("Read more about the search results settings","wordpress-seo")}),"."]}),className:"yst-max-w-sm"}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(jo,{type:"title",name:`wpseo_titles.title-tax-${e}`,fieldId:`input-wpseo_titles-title-tax-${e}`,label:(0,Et.__)("SEO title","wordpress-seo"),replacementVariables:d,recommendedReplacementVariables:c}),(0,ur.jsx)(jo,{type:"description",name:`wpseo_titles.metadesc-tax-${e}`,fieldId:`input-wpseo_titles-metadesc-tax-${e}`,label:(0,Et.__)("Meta description","wordpress-seo"),replacementVariables:d,recommendedReplacementVariables:c,className:"yst-replacevar--description"})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(uo,{title:(0,ur.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-1.5",children:[(0,ur.jsx)("span",{children:(0,Et.__)("Social media appearance","wordpress-seo")}),p&&(0,ur.jsx)(a.Badge,{variant:"upsell",children:"Premium"})]}),description:(0,Et.sprintf)( // translators: %1$s expands to the taxonomy plural, e.g. Categories. %2$s expand to Yoast SEO. -(0,Et.__)("Determine how your %1$s should look on social media by default. You can always customize the settings for individual %1$s in the %2$s metabox.","wordpress-seo"),_,"Yoast SEO"),children:(0,mr.jsxs)(i.FeatureUpsell,{shouldUpsell:!p,variant:"card",cardLink:f,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ -(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...l,children:[(0,mr.jsx)(ra,{isEnabled:!p||E}),(0,mr.jsx)(Ro,{id:`wpseo_titles-social-image-tax-${e}`,label:(0,Et.__)("Social image","wordpress-seo"),previewLabel:v,mediaUrlName:`wpseo_titles.social-image-url-tax-${e}`,mediaIdName:`wpseo_titles.social-image-id-tax-${e}`,disabled:!E,isDummy:!p}),(0,mr.jsx)(Rl,{type:"title",name:`wpseo_titles.social-title-tax-${e}`,fieldId:`input-wpseo_titles-social-title-tax-${e}`,label:(0,Et.__)("Social title","wordpress-seo"),replacementVariables:d,recommendedReplacementVariables:c,disabled:!E,isDummy:!p}),(0,mr.jsx)(Rl,{type:"description",name:`wpseo_titles.social-description-tax-${e}`,fieldId:`input-wpseo_titles-social-description-tax-${e}`,label:(0,Et.__)("Social description","wordpress-seo"),replacementVariables:d,recommendedReplacementVariables:c,className:"yst-replacevar--description",disabled:!E,isDummy:!p})]})}),(r||"category"===e)&&(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.__)("Additional settings","wordpress-seo"),children:[F(),T()]})]})]})})})};Pl.propTypes={name:cr().string.isRequired,label:cr().string.isRequired,postTypes:cr().arrayOf(cr().string).isRequired,showUi:cr().bool.isRequired,isNew:cr().bool.isRequired};const Nl=Pl,Ol=xl(Oo),Cl=()=>{const e=(0,Et.__)("Author archives","wordpress-seo"),t=(0,Et.__)("Author archive","wordpress-seo"),s=bo("selectPreference",[],"userLocale"),r=(0,a.useMemo)((()=>Fi(e,s)),[e,s]),o=(0,a.useMemo)((()=>Fi(t,s)),[t,s]),n=bo("selectUpsellSettingsAsProps"),l=bo("selectReplacementVariablesFor",[],"author_archives","custom-post-type_archive"),d=bo("selectRecommendedReplacementVariablesFor",[],"author_archives","custom-post-type_archive"),c=bo("selectLink",[],"https://yoa.st/duplicate-content"),u=bo("selectLink",[],"https://yoa.st/show-x"),p=bo("selectPreference",[],"isPremium"),m=bo("selectExampleUrl",[],"/author/example/"),h=bo("selectLink",[],"https://yoa.st/4e0"),f=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Determine how your %1$s should look on social media by default. You can always customize the settings for individual %1$s in the %2$s metabox.","wordpress-seo"),_,"Yoast SEO"),children:(0,ur.jsxs)(a.FeatureUpsell,{shouldUpsell:!p,variant:"card",cardLink:f,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ +(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...l,children:[(0,ur.jsx)(Ho,{isEnabled:!p||E}),(0,ur.jsx)(bo,{id:`wpseo_titles-social-image-tax-${e}`,label:(0,Et.__)("Social image","wordpress-seo"),previewLabel:v,mediaUrlName:`wpseo_titles.social-image-url-tax-${e}`,mediaIdName:`wpseo_titles.social-image-id-tax-${e}`,disabled:!E,isDummy:!p}),(0,ur.jsx)(jl,{type:"title",name:`wpseo_titles.social-title-tax-${e}`,fieldId:`input-wpseo_titles-social-title-tax-${e}`,label:(0,Et.__)("Social title","wordpress-seo"),replacementVariables:d,recommendedReplacementVariables:c,disabled:!E,isDummy:!p}),(0,ur.jsx)(jl,{type:"description",name:`wpseo_titles.social-description-tax-${e}`,fieldId:`input-wpseo_titles-social-description-tax-${e}`,label:(0,Et.__)("Social description","wordpress-seo"),replacementVariables:d,recommendedReplacementVariables:c,className:"yst-replacevar--description",disabled:!E,isDummy:!p})]})}),(r||"category"===e)&&(0,ur.jsxs)(ur.Fragment,{children:[(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.__)("Additional settings","wordpress-seo"),children:[T(),F()]})]})]})})})};Sl.propTypes={name:lr().string.isRequired,label:lr().string.isRequired,postTypes:lr().arrayOf(lr().string).isRequired,showUi:lr().bool.isRequired,isNew:lr().bool.isRequired};const kl=Sl,El=hl(jo),Ll=()=>{const e=(0,Et.__)("Author archives","wordpress-seo"),t=(0,Et.__)("Author archive","wordpress-seo"),s=lo("selectPreference",[],"userLocale"),r=(0,i.useMemo)((()=>ya(e,s)),[e,s]),o=(0,i.useMemo)((()=>ya(t,s)),[t,s]),n=lo("selectUpsellSettingsAsProps"),l=lo("selectReplacementVariablesFor",[],"author_archives","custom-post-type_archive"),d=lo("selectRecommendedReplacementVariablesFor",[],"author_archives","custom-post-type_archive"),c=lo("selectLink",[],"https://yoa.st/duplicate-content"),u=lo("selectLink",[],"https://yoa.st/show-x"),p=lo("selectPreference",[],"isPremium"),m=lo("selectExampleUrl",[],"/author/example/"),h=lo("selectLink",[],"https://yoa.st/4e0"),f=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to an opening strong tag. * %2$s expands to a closing strong tag. * %3$s expands to the recommended image size. */ -(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","1200x675px"),{strong:(0,mr.jsx)("strong",{className:"yst-font-semibold"})})),[]),_=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","1200x675px"),{strong:(0,ur.jsx)("strong",{className:"yst-font-semibold"})})),[]),_=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to "author archive". * %2$s expands to an example URL, e.g. https://example.com/author/example/. * %3$s and %4$s expand to opening and closing <a> tags. */ -(0,Et.__)("If you're running a one author blog, the %1$s (e.g. %2$s) will be exactly the same as your homepage. This is what's called a %3$sduplicate content problem%4$s. If this is the case on your site, you can choose to either disable it (which makes it redirect to the homepage), or prevent it from showing up in search results.","wordpress-seo"),o,"<exampleUrl />","<a>","</a>"),{exampleUrl:(0,mr.jsx)(i.Code,{children:m}),a:(0,mr.jsx)("a",{href:c,target:"_blank",rel:"noopener"})})),[]),{values:y}=q(),{opengraph:w}=y.wpseo_social,{"disable-author":g,"noindex-author-wpseo":b,"noindex-author-noposts-wpseo":v}=y.wpseo_titles;return(0,mr.jsx)(xa,{title:e,description:_,children:(0,mr.jsx)(ko,{children:(0,mr.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,mr.jsx)(Lo,{name:"wpseo_titles.disable-author",id:"input-wpseo_titles-disable-author",label:(0,Et.sprintf)( +(0,Et.__)("If you're running a one author blog, the %1$s (e.g. %2$s) will be exactly the same as your homepage. This is what's called a %3$sduplicate content problem%4$s. If this is the case on your site, you can choose to either disable it (which makes it redirect to the homepage), or prevent it from showing up in search results.","wordpress-seo"),o,"<exampleUrl />","<a>","</a>"),{exampleUrl:(0,ur.jsx)(a.Code,{children:m}),a:(0,ur.jsx)("a",{href:c,target:"_blank",rel:"noopener"})})),[]),{values:y}=q(),{opengraph:w}=y.wpseo_social,{"disable-author":g,"noindex-author-wpseo":b,"noindex-author-noposts-wpseo":v}=y.wpseo_titles;return(0,ur.jsx)(ui,{title:e,description:_,children:(0,ur.jsx)(ho,{children:(0,ur.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,ur.jsx)(_o,{name:"wpseo_titles.disable-author",id:"input-wpseo_titles-disable-author",label:(0,Et.sprintf)( // translators: %1$s expands to "author archives". (0,Et.__)("Enable %1$s","wordpress-seo"),r),description:(0,Et.sprintf)( // translators: %1$s expands to "author archive". -(0,Et.__)("Disabling this will redirect the %1$s to your site's homepage.","wordpress-seo"),o),className:"yst-max-w-sm"}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.__)("Search appearance","wordpress-seo"),description:(0,Et.sprintf)( +(0,Et.__)("Disabling this will redirect the %1$s to your site's homepage.","wordpress-seo"),o),className:"yst-max-w-sm"}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.__)("Search appearance","wordpress-seo"),description:(0,Et.sprintf)( // translators: %1$s expands to "author archives". -(0,Et.__)("Determine how your %1$s should look in search engines.","wordpress-seo"),r),children:[(0,mr.jsx)(Lo,{name:"wpseo_titles.noindex-author-wpseo",id:"input-wpseo_titles-noindex-author-wpseo",label:(0,Et.sprintf)( +(0,Et.__)("Determine how your %1$s should look in search engines.","wordpress-seo"),r),children:[(0,ur.jsx)(_o,{name:"wpseo_titles.noindex-author-wpseo",id:"input-wpseo_titles-noindex-author-wpseo",label:(0,Et.sprintf)( // translators: %1$s expands to "author archives". -(0,Et.__)("Show %1$s in search results","wordpress-seo"),r),description:(0,mr.jsxs)(mr.Fragment,{children:[(0,Et.sprintf)( +(0,Et.__)("Show %1$s in search results","wordpress-seo"),r),description:(0,ur.jsxs)(ur.Fragment,{children:[(0,Et.sprintf)( // translators: %1$s expands to "author archives". -(0,Et.__)("Disabling this means that %1$s will not be indexed by search engines and will be excluded from XML sitemaps.","wordpress-seo"),r)," ",(0,mr.jsx)(i.Link,{href:u,target:"_blank",rel:"noopener",children:(0,Et.__)("Read more about the search results settings","wordpress-seo")}),"."]}),disabled:g,checked:!g&&!b,className:"yst-max-w-sm"}),(0,mr.jsx)(Lo,{name:"wpseo_titles.noindex-author-noposts-wpseo",id:"input-wpseo_titles-noindex-author-noposts-wpseo",label:(0,Et.sprintf)( +(0,Et.__)("Disabling this means that %1$s will not be indexed by search engines and will be excluded from XML sitemaps.","wordpress-seo"),r)," ",(0,ur.jsx)(a.Link,{href:u,target:"_blank",rel:"noopener",children:(0,Et.__)("Read more about the search results settings","wordpress-seo")}),"."]}),disabled:g,checked:!g&&!b,className:"yst-max-w-sm"}),(0,ur.jsx)(_o,{name:"wpseo_titles.noindex-author-noposts-wpseo",id:"input-wpseo_titles-noindex-author-noposts-wpseo",label:(0,Et.sprintf)( // translators: %1$s expands to "author archives". (0,Et.__)("Show %1$s without posts in search results","wordpress-seo"),r),description:(0,Et.sprintf)( // translators: %1$s expands to "author archives". -(0,Et.__)("Disabling this means that %1$s without any posts will not be indexed by search engines and will be excluded from XML sitemaps.","wordpress-seo"),r),checked:!g&&!b&&!v,disabled:g||b,className:"yst-max-w-sm"}),(0,mr.jsx)(Oo,{type:"title",name:"wpseo_titles.title-author-wpseo",fieldId:"input-wpseo_titles-title-author-wpseo",label:(0,Et.__)("SEO title","wordpress-seo"),replacementVariables:l,recommendedReplacementVariables:d,disabled:g}),(0,mr.jsx)(Oo,{type:"description",name:"wpseo_titles.metadesc-author-wpseo",fieldId:"input-wpseo_titles-metadesc-author-wpseo",label:(0,Et.__)("Meta description","wordpress-seo"),replacementVariables:l,recommendedReplacementVariables:d,disabled:g,className:"yst-replacevar--description"})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(xo,{title:(0,mr.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-1.5",children:[(0,mr.jsx)("span",{children:(0,Et.__)("Social media appearance","wordpress-seo")}),p&&(0,mr.jsx)(i.Badge,{variant:"upsell",children:"Premium"})]}),description:(0,Et.sprintf)( +(0,Et.__)("Disabling this means that %1$s without any posts will not be indexed by search engines and will be excluded from XML sitemaps.","wordpress-seo"),r),checked:!g&&!b&&!v,disabled:g||b,className:"yst-max-w-sm"}),(0,ur.jsx)(jo,{type:"title",name:"wpseo_titles.title-author-wpseo",fieldId:"input-wpseo_titles-title-author-wpseo",label:(0,Et.__)("SEO title","wordpress-seo"),replacementVariables:l,recommendedReplacementVariables:d,disabled:g}),(0,ur.jsx)(jo,{type:"description",name:"wpseo_titles.metadesc-author-wpseo",fieldId:"input-wpseo_titles-metadesc-author-wpseo",label:(0,Et.__)("Meta description","wordpress-seo"),replacementVariables:l,recommendedReplacementVariables:d,disabled:g,className:"yst-replacevar--description"})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(uo,{title:(0,ur.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-1.5",children:[(0,ur.jsx)("span",{children:(0,Et.__)("Social media appearance","wordpress-seo")}),p&&(0,ur.jsx)(a.Badge,{variant:"upsell",children:"Premium"})]}),description:(0,Et.sprintf)( // translators: %1$s expands to "author archives". -(0,Et.__)("Determine how your %1$s should look on social media.","wordpress-seo"),r),children:(0,mr.jsxs)(i.FeatureUpsell,{shouldUpsell:!p,variant:"card",cardLink:h,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ -(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...n,children:[(0,mr.jsx)(ra,{isEnabled:!p||w}),(0,mr.jsx)(Ro,{id:"wpseo_titles-social-image-author-wpseo",label:(0,Et.__)("Social image","wordpress-seo"),previewLabel:f,mediaUrlName:"wpseo_titles.social-image-url-author-wpseo",mediaIdName:"wpseo_titles.social-image-id-author-wpseo",disabled:g||!w,isDummy:!p}),(0,mr.jsx)(Ol,{type:"title",name:"wpseo_titles.social-title-author-wpseo",fieldId:"input-wpseo_titles-social-title-author-wpseo",label:(0,Et.__)("Social title","wordpress-seo"),replacementVariables:l,recommendedReplacementVariables:d,disabled:g||!w,isDummy:!p}),(0,mr.jsx)(Ol,{type:"description",name:"wpseo_titles.social-description-author-wpseo",fieldId:"input-wpseo_titles-social-description-author-wpseo",label:(0,Et.__)("Social description","wordpress-seo"),replacementVariables:l,recommendedReplacementVariables:d,className:"yst-replacevar--description",disabled:g||!w,isDummy:!p})]})})]})})})},Al=()=>{const e=bo("selectLink",[],"https://yoa.st/header-breadcrumbs"),t=bo("selectLink",[],"https://yoa.st/breadcrumbs"),s=bo("selectBreadcrumbsForPostTypes"),r=bo("selectBreadcrumbsForTaxonomies"),o=bo("selectHasPageForPosts");return(0,mr.jsx)(xa,{title:(0,Et.__)("Breadcrumbs","wordpress-seo"),description:bl((0,Et.sprintf)( +(0,Et.__)("Determine how your %1$s should look on social media.","wordpress-seo"),r),children:(0,ur.jsxs)(a.FeatureUpsell,{shouldUpsell:!p,variant:"card",cardLink:h,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ +(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...n,children:[(0,ur.jsx)(Ho,{isEnabled:!p||w}),(0,ur.jsx)(bo,{id:"wpseo_titles-social-image-author-wpseo",label:(0,Et.__)("Social image","wordpress-seo"),previewLabel:f,mediaUrlName:"wpseo_titles.social-image-url-author-wpseo",mediaIdName:"wpseo_titles.social-image-id-author-wpseo",disabled:g||!w,isDummy:!p}),(0,ur.jsx)(El,{type:"title",name:"wpseo_titles.social-title-author-wpseo",fieldId:"input-wpseo_titles-social-title-author-wpseo",label:(0,Et.__)("Social title","wordpress-seo"),replacementVariables:l,recommendedReplacementVariables:d,disabled:g||!w,isDummy:!p}),(0,ur.jsx)(El,{type:"description",name:"wpseo_titles.social-description-author-wpseo",fieldId:"input-wpseo_titles-social-description-author-wpseo",label:(0,Et.__)("Social description","wordpress-seo"),replacementVariables:l,recommendedReplacementVariables:d,className:"yst-replacevar--description",disabled:g||!w,isDummy:!p})]})})]})})})},Tl=()=>{const e=lo("selectLink",[],"https://yoa.st/header-breadcrumbs"),t=lo("selectLink",[],"https://yoa.st/breadcrumbs"),s=lo("selectBreadcrumbsForPostTypes"),r=lo("selectBreadcrumbsForTaxonomies"),o=lo("selectHasPageForPosts");return(0,ur.jsx)(ui,{title:(0,Et.__)("Breadcrumbs","wordpress-seo"),description:pl((0,Et.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing <a> tags. -(0,Et.__)("Configure the appearance and behavior of %1$syour breadcrumbs%2$s.","wordpress-seo"),"<a>","</a>"),e,"link-header-breadcrumbs"),children:(0,mr.jsx)(ko,{children:(0,mr.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,mr.jsxs)(xo,{title:(0,Et.__)("Breadcrumb appearance","wordpress-seo"),description:(0,Et.__)("Choose the general appearance of your breadcrumbs.","wordpress-seo"),children:[(0,mr.jsx)(te,{as:i.TextField,type:"text",name:"wpseo_titles.breadcrumbs-sep",id:"input-wpseo_titles-breadcrumbs-sep",label:(0,Et.__)("Separator between breadcrumbs","wordpress-seo"),placeholder:(0,Et.__)("Add separator","wordpress-seo")}),(0,mr.jsx)(te,{as:i.TextField,type:"text",name:"wpseo_titles.breadcrumbs-home",id:"input-wpseo_titles-breadcrumbs-home",label:(0,Et.__)("Anchor text for the Homepage","wordpress-seo"),placeholder:(0,Et.__)("Add anchor text","wordpress-seo")}),(0,mr.jsx)(te,{as:i.TextField,type:"text",name:"wpseo_titles.breadcrumbs-prefix",id:"input-wpseo_titles-breadcrumbs-prefix",label:(0,Et.__)("Prefix for the breadcrumb path","wordpress-seo"),placeholder:(0,Et.__)("Add prefix","wordpress-seo")}),(0,mr.jsx)(te,{as:i.TextField,type:"text",name:"wpseo_titles.breadcrumbs-archiveprefix",id:"input-wpseo_titles-breadcrumbs-archiveprefix",label:(0,Et.__)("Prefix for archive breadcrumbs","wordpress-seo"),placeholder:(0,Et.__)("Add prefix","wordpress-seo")}),(0,mr.jsx)(te,{as:i.TextField,type:"text",name:"wpseo_titles.breadcrumbs-searchprefix",id:"input-wpseo_titles-breadcrumbs-searchprefix",label:(0,Et.__)("Prefix for search page breadcrumbs","wordpress-seo"),placeholder:(0,Et.__)("Add prefix","wordpress-seo")}),(0,mr.jsx)(te,{as:i.TextField,type:"text",name:"wpseo_titles.breadcrumbs-404crumb",id:"input-wpseo_titles-breadcrumbs-404crumb",label:(0,Et.__)("Breadcrumb for 404 page","wordpress-seo"),placeholder:(0,Et.__)("Add separator","wordpress-seo")}),o&&(0,mr.jsx)(kl,{as:i.ToggleField,type:"checkbox",name:"wpseo_titles.breadcrumbs-display-blog-page",id:"input-wpseo_titles-breadcrumbs-display-blog-page",label:(0,Et.__)("Show blog page in breadcrumbs","wordpress-seo"),className:"yst-max-w-sm"}),(0,mr.jsx)(kl,{as:i.ToggleField,type:"checkbox",name:"wpseo_titles.breadcrumbs-boldlast",id:"input-wpseo_titles-breadcrumbs-boldlast",label:(0,Et.__)("Bold the last page","wordpress-seo"),className:"yst-max-w-sm"})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(xo,{title:(0,Et.__)("Breadcrumbs for post types","wordpress-seo"),description:(0,Et.__)("Choose which Taxonomy you wish to show in the breadcrumbs for Post types.","wordpress-seo"),children:(0,le.map)(s,((e,t)=>(0,mr.jsx)(kl,{as:i.SelectField,name:`wpseo_titles.post_types-${t}-maintax`,id:`input-wpseo_titles-post_types-${t}-maintax`,label:e.label,labelSuffix:(0,mr.jsx)(i.Code,{className:"yst-ml-2 rtl:yst-mr-2",children:t}),options:e.options,className:"yst-max-w-sm"},t)))}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(xo,{title:(0,Et.__)("Breadcrumbs for taxonomies","wordpress-seo"),description:(0,Et.__)("Choose which Post type you wish to show in the breadcrumbs for Taxonomies.","wordpress-seo"),children:(0,le.map)(r,(e=>(0,mr.jsx)(kl,{as:i.SelectField,name:`wpseo_titles.taxonomy-${e.name}-ptparent`,id:`input-wpseo_titles-taxonomy-${e.name}-ptparent`,label:e.label,options:e.options,className:"yst-max-w-sm",labelSuffix:(0,mr.jsx)(i.Code,{className:"yst-ml-2 rtl:yst-mr-2",children:e.name})},e.name)))}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.__)("How to insert breadcrumbs in your theme","wordpress-seo"),children:[(0,mr.jsx)("p",{children:bl((0,Et.sprintf)( +(0,Et.__)("Configure the appearance and behavior of %1$syour breadcrumbs%2$s.","wordpress-seo"),"<a>","</a>"),e,"link-header-breadcrumbs"),children:(0,ur.jsx)(ho,{children:(0,ur.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,ur.jsxs)(uo,{title:(0,Et.__)("Breadcrumb appearance","wordpress-seo"),description:(0,Et.__)("Choose the general appearance of your breadcrumbs.","wordpress-seo"),children:[(0,ur.jsx)(te,{as:a.TextField,type:"text",name:"wpseo_titles.breadcrumbs-sep",id:"input-wpseo_titles-breadcrumbs-sep",label:(0,Et.__)("Separator between breadcrumbs","wordpress-seo"),placeholder:(0,Et.__)("Add separator","wordpress-seo")}),(0,ur.jsx)(te,{as:a.TextField,type:"text",name:"wpseo_titles.breadcrumbs-home",id:"input-wpseo_titles-breadcrumbs-home",label:(0,Et.__)("Anchor text for the Homepage","wordpress-seo"),placeholder:(0,Et.__)("Add anchor text","wordpress-seo")}),(0,ur.jsx)(te,{as:a.TextField,type:"text",name:"wpseo_titles.breadcrumbs-prefix",id:"input-wpseo_titles-breadcrumbs-prefix",label:(0,Et.__)("Prefix for the breadcrumb path","wordpress-seo"),placeholder:(0,Et.__)("Add prefix","wordpress-seo")}),(0,ur.jsx)(te,{as:a.TextField,type:"text",name:"wpseo_titles.breadcrumbs-archiveprefix",id:"input-wpseo_titles-breadcrumbs-archiveprefix",label:(0,Et.__)("Prefix for archive breadcrumbs","wordpress-seo"),placeholder:(0,Et.__)("Add prefix","wordpress-seo")}),(0,ur.jsx)(te,{as:a.TextField,type:"text",name:"wpseo_titles.breadcrumbs-searchprefix",id:"input-wpseo_titles-breadcrumbs-searchprefix",label:(0,Et.__)("Prefix for search page breadcrumbs","wordpress-seo"),placeholder:(0,Et.__)("Add prefix","wordpress-seo")}),(0,ur.jsx)(te,{as:a.TextField,type:"text",name:"wpseo_titles.breadcrumbs-404crumb",id:"input-wpseo_titles-breadcrumbs-404crumb",label:(0,Et.__)("Breadcrumb for 404 page","wordpress-seo"),placeholder:(0,Et.__)("Add separator","wordpress-seo")}),o&&(0,ur.jsx)(yl,{as:a.ToggleField,type:"checkbox",name:"wpseo_titles.breadcrumbs-display-blog-page",id:"input-wpseo_titles-breadcrumbs-display-blog-page",label:(0,Et.__)("Show blog page in breadcrumbs","wordpress-seo"),className:"yst-max-w-sm"}),(0,ur.jsx)(yl,{as:a.ToggleField,type:"checkbox",name:"wpseo_titles.breadcrumbs-boldlast",id:"input-wpseo_titles-breadcrumbs-boldlast",label:(0,Et.__)("Bold the last page","wordpress-seo"),className:"yst-max-w-sm"})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(uo,{title:(0,Et.__)("Breadcrumbs for post types","wordpress-seo"),description:(0,Et.__)("Choose which Taxonomy you wish to show in the breadcrumbs for Post types.","wordpress-seo"),children:(0,le.map)(s,((e,t)=>(0,ur.jsx)(yl,{as:a.SelectField,name:`wpseo_titles.post_types-${t}-maintax`,id:`input-wpseo_titles-post_types-${t}-maintax`,label:e.label,labelSuffix:(0,ur.jsx)(a.Code,{className:"yst-ml-2 rtl:yst-mr-2",children:t}),options:e.options,className:"yst-max-w-sm"},t)))}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(uo,{title:(0,Et.__)("Breadcrumbs for taxonomies","wordpress-seo"),description:(0,Et.__)("Choose which Post type you wish to show in the breadcrumbs for Taxonomies.","wordpress-seo"),children:(0,le.map)(r,(e=>(0,ur.jsx)(yl,{as:a.SelectField,name:`wpseo_titles.taxonomy-${e.name}-ptparent`,id:`input-wpseo_titles-taxonomy-${e.name}-ptparent`,label:e.label,options:e.options,className:"yst-max-w-sm",labelSuffix:(0,ur.jsx)(a.Code,{className:"yst-ml-2 rtl:yst-mr-2",children:e.name})},e.name)))}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.__)("How to insert breadcrumbs in your theme","wordpress-seo"),children:[(0,ur.jsx)("p",{children:pl((0,Et.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing <a> tags. %3$s expands to "Yoast SEO". -(0,Et.__)("Not sure how to implement the %3$s breadcrumbs on your site? Read %1$sour help article on breadcrumbs implementation%2$s.","wordpress-seo"),"<a>","</a>","Yoast SEO"),t,"link-breadcrumbs-help-article")}),(0,mr.jsx)("p",{children:(0,Et.__)("You can always choose to enable/disable them for your theme below. This setting will not apply to breadcrumbs inserted through a widget, a block or a shortcode.","wordpress-seo")}),(0,mr.jsx)(kl,{as:i.ToggleField,type:"checkbox",name:"wpseo_titles.breadcrumbs-enable",id:"input-wpseo_titles-breadcrumbs-enable",label:(0,Et.__)("Enable breadcrumbs for your theme","wordpress-seo"),className:"yst-max-w-sm"})]})]})})})},Ml=Sl(te),Il=vl(kl),Dl=jl(Il),Bl=()=>{const e=bo("selectPreference",[],"isPremium",!1),t=bo("selectPreference",[],"isMultisite",!1),s=bo("selectUpsellSettingsAsProps"),r=bo("selectLink",[],"https://yoa.st/crawl-settings"),o=bo("selectLink",[],"https://yoa.st/permalink-cleanup"),n=bo("selectLink",[],"https://yoa.st/block-unwanted-bots-info"),l=bo("selectLink",[],"https://yoa.st/block-unwanted-bots-upsell"),d=(0,a.useMemo)((()=>(0,Et.sprintf)(/* translators: %1$s expands to an example within a code tag. */ -(0,Et.__)("E.g., %1$s","wordpress-seo"),"<code/>")),[]),c=(0,a.useMemo)((()=>(0,Et.sprintf)(/* translators: %1$s and %2$s both expand to an example within a code tag. */ -(0,Et.__)("E.g., %1$s and %2$s","wordpress-seo"),"<code1/>","<code2/>")),[]),u=(0,a.useMemo)((()=>({page:pr((0,Et.sprintf)(/* translators: %1$s and %2$s are replaced by opening and closing <a> tags. */ -(0,Et.__)("Make your site more efficient and more environmentally friendly by preventing search engines from crawling things they don’t need to, and by removing unused WordPress features. %1$sLearn more about crawl settings and how they could benefit your site%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,mr.jsx)("a",{id:"link-crawl-settings-info",href:r,target:"_blank",rel:"noopener noreferrer"})}),removeUnwantedMetadata:pr((0,Et.sprintf)(/* translators: %1$s expands to `<head>` within a <code> tag. */ -(0,Et.__)("WordPress adds a lot of links and content to your site's %1$s and HTTP headers. For most websites you can safely disable all of these, which can help to save bytes, electricity, and trees.","wordpress-seo"),"<code/>"),{code:(0,mr.jsx)(i.Code,{children:"<head>"})}),removeShortlinks:pr(d,{code:(0,mr.jsx)(i.Code,{variant:"block",children:'<link rel="shortlink" href="https://www.example.com/?p=1" />'})}),removeRestApiLinks:pr(d,{code:(0,mr.jsx)(i.Code,{variant:"block",children:'<link rel="https://api.w.org/" href="https://www.example.com/wp-json/" />'})}),removeRsdWlwLinks:pr(c,{code1:(0,mr.jsx)(i.Code,{variant:"block",children:'<link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://www.example.com/xmlrpc.php?rsd" />'}),code2:(0,mr.jsx)(i.Code,{variant:"block",children:'<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="https://www.example.com/wp-includes/wlwmanifest.xml" />'})}),removeOembedLinks:pr(d,{code:(0,mr.jsx)(i.Code,{variant:"block",children:'<link rel="alternate" type="application/json+oembed" href="https://www.example.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwww.example.com%2Fexample-post%2F" />'})}),removeGenerator:pr(d,{code:(0,mr.jsx)(i.Code,{variant:"block",children:'<meta name="generator" content="WordPress 6.0.1" />'})}),removePingbackHeader:pr(d,{code:(0,mr.jsx)(i.Code,{variant:"block",children:"X-Pingback: https://www.example.com/xmlrpc.php"})}),removePoweredByHeader:pr(d,{code:(0,mr.jsx)(i.Code,{variant:"block",children:"X-Powered-By: PHP/7.4.1"})}),removeFeedGlobal:pr(d,{code:(0,mr.jsx)(i.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Feed" href="https://www.example.com/feed/" />'})}),removeFeedGlobalComments:pr(d,{code:(0,mr.jsx)(i.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Comments Feed" href="https://www.example.com/comments/feed/" />'})}),removeFeedPostComments:pr(d,{code:(0,mr.jsx)(i.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Example post Comments Feed" href="https://www.example.com/example-post/feed/" />'})}),removeFeedAuthors:pr(d,{code:(0,mr.jsx)(i.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Posts by Example Author Feed" href="https://www.example.com/author/example-author/feed/" />'})}),removeFeedPostTypes:pr(d,{code:(0,mr.jsx)(i.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Movies Feed" href="https://www.example.com/movies/feed/" />'})}),removeFeedCategories:pr(d,{code:(0,mr.jsx)(i.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - News Category Feed" href="https://www.example.com/category/news/feed/" />'})}),removeFeedTags:pr(d,{code:(0,mr.jsx)(i.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Blue Tag Feed" href="https://www.example.com/tag/blue/feed/" />'})}),removeFeedCustomTaxonomies:pr(d,{code:(0,mr.jsx)(i.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Large size Feed" href="https://www.example.com/size/large/feed/" />'})}),removeFeedSearch:pr(d,{code:(0,mr.jsx)(i.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Search Results for \'example\' Feed" href="https://www.example.com/search/example/feed/rss2/" />'})}),removeAtomRdfFeeds:pr(d,{code:(0,mr.jsx)(i.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Feed" href="https://www.example.com/feed/atom/" />'})}),denyWpJsonCrawling:pr(c,{code1:(0,mr.jsx)(i.Code,{variant:"block",children:"https://www.example.com/wp-json/"}),code2:(0,mr.jsx)(i.Code,{variant:"block",children:"https://www.example.com/?rest_route=/"})}),blockUnwantedBots:pr((0,Et.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ -(0,Et.__)("Lots of web traffic comes from bots crawling the web. Some can benefit your site or business, while other bots don't. Blocking unwanted bots can save energy, help with site performance, and protect copyrighted content. Learn more about %1$swhen to block unwanted bots%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,mr.jsx)(kr,{id:"link-block-unwanted-bots-info",href:n})}),redirectSearchPrettyUrls:pr((0,Et.sprintf)(/* translators: %1$s, %2$s and %3$s expand to example parts of a URL, surrounded by <code> tags. */ -(0,Et.__)("Consolidates WordPress' multiple site search URL formats into the %1$s syntax. E.g., %2$s will redirect to %3$s","wordpress-seo"),"<code1/>","<code2/>","<code3/>"),{code1:(0,mr.jsx)(i.Code,{children:"?s="}),code2:(0,mr.jsx)(i.Code,{variant:"block",children:"https://www.example.com/search/cats"}),code3:(0,mr.jsx)(i.Code,{variant:"block",children:"https://www.example.com/?s=cats"})}),denySearchCrawling:pr((0,Et.sprintf)(/* translators: %1$s, %2$s and %3$s expand to example parts of a URL, surrounded by <code> tags. */ -(0,Et.__)("Add a ‘disallow’ rule to your robots.txt file to prevent crawling of URLs like %1$s, %2$s and %3$s.","wordpress-seo"),"<code1/>","<code2/>","<code3/>"),{code1:(0,mr.jsx)(i.Code,{children:"?s="}),code2:(0,mr.jsx)(i.Code,{children:"/search/"}),code3:(0,mr.jsx)(i.Code,{children:"/page/*/?s="})}),advancedUrlCleanup:pr((0,Et.sprintf)(/* translators: %1$s expands to an example part of a URL, surrounded by a <code> tag. */ -(0,Et.__)("Users and search engines may often request your URLs whilst using query parameters, like %1$s. These can be helpful for tracking, filtering, and powering advanced functionality - but they come with a performance and SEO ‘cost’. Sites which don’t rely on URL parameters might benefit from using these options.","wordpress-seo"),"<code/>"),{code:(0,mr.jsx)(i.Code,{children:"?color=red"})}),cleanCampaignTrackingUrls:pr((0,Et.sprintf)( +(0,Et.__)("Not sure how to implement the %3$s breadcrumbs on your site? Read %1$sour help article on breadcrumbs implementation%2$s.","wordpress-seo"),"<a>","</a>","Yoast SEO"),t,"link-breadcrumbs-help-article")}),(0,ur.jsx)("p",{children:(0,Et.__)("You can always choose to enable/disable them for your theme below. This setting will not apply to breadcrumbs inserted through a widget, a block or a shortcode.","wordpress-seo")}),(0,ur.jsx)(yl,{as:a.ToggleField,type:"checkbox",name:"wpseo_titles.breadcrumbs-enable",id:"input-wpseo_titles-breadcrumbs-enable",label:(0,Et.__)("Enable breadcrumbs for your theme","wordpress-seo"),className:"yst-max-w-sm"})]})]})})})},Fl=_l(te),$l=ml(yl),Rl=fl($l),Pl=()=>{const e=lo("selectPreference",[],"isPremium",!1),t=lo("selectPreference",[],"isMultisite",!1),s=lo("selectUpsellSettingsAsProps"),r=lo("selectLink",[],"https://yoa.st/crawl-settings"),o=lo("selectLink",[],"https://yoa.st/permalink-cleanup"),n=lo("selectLink",[],"https://yoa.st/block-unwanted-bots-info"),l=lo("selectLink",[],"https://yoa.st/block-unwanted-bots-upsell"),d=(0,i.useMemo)((()=>(0,Et.sprintf)(/* translators: %1$s expands to an example within a code tag. */ +(0,Et.__)("E.g., %1$s","wordpress-seo"),"<code/>")),[]),c=(0,i.useMemo)((()=>(0,Et.sprintf)(/* translators: %1$s and %2$s both expand to an example within a code tag. */ +(0,Et.__)("E.g., %1$s and %2$s","wordpress-seo"),"<code1/>","<code2/>")),[]),u=(0,i.useMemo)((()=>({page:cr((0,Et.sprintf)(/* translators: %1$s and %2$s are replaced by opening and closing <a> tags. */ +(0,Et.__)("Make your site more efficient and more environmentally friendly by preventing search engines from crawling things they don’t need to, and by removing unused WordPress features. %1$sLearn more about crawl settings and how they could benefit your site%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,ur.jsx)("a",{id:"link-crawl-settings-info",href:r,target:"_blank",rel:"noopener noreferrer"})}),removeUnwantedMetadata:cr((0,Et.sprintf)(/* translators: %1$s expands to `<head>` within a <code> tag. */ +(0,Et.__)("WordPress adds a lot of links and content to your site's %1$s and HTTP headers. For most websites you can safely disable all of these, which can help to save bytes, electricity, and trees.","wordpress-seo"),"<code/>"),{code:(0,ur.jsx)(a.Code,{children:"<head>"})}),removeShortlinks:cr(d,{code:(0,ur.jsx)(a.Code,{variant:"block",children:'<link rel="shortlink" href="https://www.example.com/?p=1" />'})}),removeRestApiLinks:cr(d,{code:(0,ur.jsx)(a.Code,{variant:"block",children:'<link rel="https://api.w.org/" href="https://www.example.com/wp-json/" />'})}),removeRsdWlwLinks:cr(c,{code1:(0,ur.jsx)(a.Code,{variant:"block",children:'<link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://www.example.com/xmlrpc.php?rsd" />'}),code2:(0,ur.jsx)(a.Code,{variant:"block",children:'<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="https://www.example.com/wp-includes/wlwmanifest.xml" />'})}),removeOembedLinks:cr(d,{code:(0,ur.jsx)(a.Code,{variant:"block",children:'<link rel="alternate" type="application/json+oembed" href="https://www.example.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwww.example.com%2Fexample-post%2F" />'})}),removeGenerator:cr(d,{code:(0,ur.jsx)(a.Code,{variant:"block",children:'<meta name="generator" content="WordPress 6.0.1" />'})}),removePingbackHeader:cr(d,{code:(0,ur.jsx)(a.Code,{variant:"block",children:"X-Pingback: https://www.example.com/xmlrpc.php"})}),removePoweredByHeader:cr(d,{code:(0,ur.jsx)(a.Code,{variant:"block",children:"X-Powered-By: PHP/7.4.1"})}),removeFeedGlobal:cr(d,{code:(0,ur.jsx)(a.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Feed" href="https://www.example.com/feed/" />'})}),removeFeedGlobalComments:cr(d,{code:(0,ur.jsx)(a.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Comments Feed" href="https://www.example.com/comments/feed/" />'})}),removeFeedPostComments:cr(d,{code:(0,ur.jsx)(a.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Example post Comments Feed" href="https://www.example.com/example-post/feed/" />'})}),removeFeedAuthors:cr(d,{code:(0,ur.jsx)(a.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Posts by Example Author Feed" href="https://www.example.com/author/example-author/feed/" />'})}),removeFeedPostTypes:cr(d,{code:(0,ur.jsx)(a.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Movies Feed" href="https://www.example.com/movies/feed/" />'})}),removeFeedCategories:cr(d,{code:(0,ur.jsx)(a.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - News Category Feed" href="https://www.example.com/category/news/feed/" />'})}),removeFeedTags:cr(d,{code:(0,ur.jsx)(a.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Blue Tag Feed" href="https://www.example.com/tag/blue/feed/" />'})}),removeFeedCustomTaxonomies:cr(d,{code:(0,ur.jsx)(a.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Large size Feed" href="https://www.example.com/size/large/feed/" />'})}),removeFeedSearch:cr(d,{code:(0,ur.jsx)(a.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Search Results for \'example\' Feed" href="https://www.example.com/search/example/feed/rss2/" />'})}),removeAtomRdfFeeds:cr(d,{code:(0,ur.jsx)(a.Code,{variant:"block",children:'<link rel="alternate" type="application/rss+xml" title="Example Website - Feed" href="https://www.example.com/feed/atom/" />'})}),denyWpJsonCrawling:cr(c,{code1:(0,ur.jsx)(a.Code,{variant:"block",children:"https://www.example.com/wp-json/"}),code2:(0,ur.jsx)(a.Code,{variant:"block",children:"https://www.example.com/?rest_route=/"})}),blockUnwantedBots:cr((0,Et.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ +(0,Et.__)("Lots of web traffic comes from bots crawling the web. Some can benefit your site or business, while other bots don't. Blocking unwanted bots can save energy, help with site performance, and protect copyrighted content. Learn more about %1$swhen to block unwanted bots%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,ur.jsx)(vr,{id:"link-block-unwanted-bots-info",href:n})}),redirectSearchPrettyUrls:cr((0,Et.sprintf)(/* translators: %1$s, %2$s and %3$s expand to example parts of a URL, surrounded by <code> tags. */ +(0,Et.__)("Consolidates WordPress' multiple site search URL formats into the %1$s syntax. E.g., %2$s will redirect to %3$s","wordpress-seo"),"<code1/>","<code2/>","<code3/>"),{code1:(0,ur.jsx)(a.Code,{children:"?s="}),code2:(0,ur.jsx)(a.Code,{variant:"block",children:"https://www.example.com/search/cats"}),code3:(0,ur.jsx)(a.Code,{variant:"block",children:"https://www.example.com/?s=cats"})}),denySearchCrawling:cr((0,Et.sprintf)(/* translators: %1$s, %2$s and %3$s expand to example parts of a URL, surrounded by <code> tags. */ +(0,Et.__)("Add a ‘disallow’ rule to your robots.txt file to prevent crawling of URLs like %1$s, %2$s and %3$s.","wordpress-seo"),"<code1/>","<code2/>","<code3/>"),{code1:(0,ur.jsx)(a.Code,{children:"?s="}),code2:(0,ur.jsx)(a.Code,{children:"/search/"}),code3:(0,ur.jsx)(a.Code,{children:"/page/*/?s="})}),advancedUrlCleanup:cr((0,Et.sprintf)(/* translators: %1$s expands to an example part of a URL, surrounded by a <code> tag. */ +(0,Et.__)("Users and search engines may often request your URLs whilst using query parameters, like %1$s. These can be helpful for tracking, filtering, and powering advanced functionality - but they come with a performance and SEO ‘cost’. Sites which don’t rely on URL parameters might benefit from using these options.","wordpress-seo"),"<code/>"),{code:(0,ur.jsx)(a.Code,{children:"?color=red"})}),cleanCampaignTrackingUrls:cr((0,Et.sprintf)( /** * translators: * %1$s expands to `<code>utm</code>`. @@ -155,7 +154,7 @@ * %3$s expands to `<code>301</code>`. * %4$s and %5$s both expand to an example within a <code> tag. */ -(0,Et.__)("Replaces %1$s tracking parameters with the (more performant) %2$s equivalent, via a %3$s redirect. E.g., %4$s will be redirected to %5$s","wordpress-seo"),"<code1/>","<code2/>","<code3/>","<code4/>","<code5/>"),{code1:(0,mr.jsx)(i.Code,{children:"utm"}),code2:(0,mr.jsx)(i.Code,{children:"#"}),code3:(0,mr.jsx)(i.Code,{children:"301"}),code4:(0,mr.jsx)(i.Code,{variant:"block",children:"https://www.example.com/?utm_medium=organic"}),code5:(0,mr.jsx)(i.Code,{variant:"block",children:"https://www.example.com/#utm_medium=organic"})}),cleanPermalinks:pr((0,Et.sprintf)( +(0,Et.__)("Replaces %1$s tracking parameters with the (more performant) %2$s equivalent, via a %3$s redirect. E.g., %4$s will be redirected to %5$s","wordpress-seo"),"<code1/>","<code2/>","<code3/>","<code4/>","<code5/>"),{code1:(0,ur.jsx)(a.Code,{children:"utm"}),code2:(0,ur.jsx)(a.Code,{children:"#"}),code3:(0,ur.jsx)(a.Code,{children:"301"}),code4:(0,ur.jsx)(a.Code,{variant:"block",children:"https://www.example.com/?utm_medium=organic"}),code5:(0,ur.jsx)(a.Code,{variant:"block",children:"https://www.example.com/#utm_medium=organic"})}),cleanPermalinks:cr((0,Et.sprintf)( /** * translators: * %1$s expands to `<code>301</code>`. @@ -166,206 +165,206 @@ * translators: * %1$s through %7$s each expand to a parameter name within a <code> tag. For example, <code>gclid</code>. */ -(0,Et.__)("Note that the following commonly-used parameters will not be removed: %1$s, %2$s, %3$s, %4$s, %5$s, %6$s, and %7$s.","wordpress-seo"),"<code4/>","<code5/>","<code6/>","<code7/>","<code8/>","<code9/>","<code10/>"),{code1:(0,mr.jsx)(i.Code,{children:"301"}),code2:(0,mr.jsx)(i.Code,{variant:"block",children:"https://www.example.com/?unknown_parameter=yes"}),code3:(0,mr.jsx)(i.Code,{variant:"block",children:"https://www.example.com"}),code4:(0,mr.jsx)(i.Code,{children:"gclid"}),code5:(0,mr.jsx)(i.Code,{children:"gtm_debug"}),code6:(0,mr.jsx)(i.Code,{children:"utm_campaign"}),code7:(0,mr.jsx)(i.Code,{children:"utm_content"}),code8:(0,mr.jsx)(i.Code,{children:"utm_medium"}),code9:(0,mr.jsx)(i.Code,{children:"utm_source"}),code10:(0,mr.jsx)(i.Code,{children:"utm_term"})}),cleanPermalinksExtraVariables:pr((0,Et.sprintf)( +(0,Et.__)("Note that the following commonly-used parameters will not be removed: %1$s, %2$s, %3$s, %4$s, %5$s, %6$s, and %7$s.","wordpress-seo"),"<code4/>","<code5/>","<code6/>","<code7/>","<code8/>","<code9/>","<code10/>"),{code1:(0,ur.jsx)(a.Code,{children:"301"}),code2:(0,ur.jsx)(a.Code,{variant:"block",children:"https://www.example.com/?unknown_parameter=yes"}),code3:(0,ur.jsx)(a.Code,{variant:"block",children:"https://www.example.com"}),code4:(0,ur.jsx)(a.Code,{children:"gclid"}),code5:(0,ur.jsx)(a.Code,{children:"gtm_debug"}),code6:(0,ur.jsx)(a.Code,{children:"utm_campaign"}),code7:(0,ur.jsx)(a.Code,{children:"utm_content"}),code8:(0,ur.jsx)(a.Code,{children:"utm_medium"}),code9:(0,ur.jsx)(a.Code,{children:"utm_source"}),code10:(0,ur.jsx)(a.Code,{children:"utm_term"})}),cleanPermalinksExtraVariables:cr((0,Et.sprintf)( /** * translators: * %1$s expands to `<code>unknown_parameter</code>`. * %2$s and %3$s both expand to an example within a <code> tag. */ -(0,Et.__)("Prevents specific URL parameters from being removed by the above feature. E.g., adding %1$s will prevent %2$s from being redirected to %3$s. You can add multiple parameters and separate them by using enter or a comma.","wordpress-seo"),"<code1/>","<code2/>","<code3/>"),{code1:(0,mr.jsx)(i.Code,{children:"unknown_parameter"}),code2:(0,mr.jsx)(i.Code,{children:"https://www.example.com/?unknown_parameter=yes"}),code3:(0,mr.jsx)(i.Code,{children:"https://www.example.com"})})})),[]),{values:p}=q(),{remove_feed_global_comments:m,remove_feed_post_comments:h,search_cleanup:f,search_cleanup_emoji:_,search_cleanup_patterns:y,clean_permalinks:w}=p.wpseo;return(0,mr.jsx)(xa,{title:(0,Et.__)("Crawl optimization","wordpress-seo"),description:u.page,children:(0,mr.jsx)(ko,{children:(0,mr.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,mr.jsxs)(xo,{title:(0,Et.__)("Remove unwanted metadata","wordpress-seo"),description:u.removeUnwantedMetadata,children:[(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_shortlinks",id:"input-wpseo-remove_shortlinks",label:(0,Et.__)("Remove shortlinks","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove links to WordPress' internal 'shortlink' URLs for your posts.","wordpress-seo")," ",u.removeShortlinks]}),(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_rest_api_links",id:"input-wpseo-remove_rest_api_links",label:(0,Et.__)("Remove REST API links","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove links to the location of your site’s REST API endpoints.","wordpress-seo")," ",u.removeRestApiLinks]}),(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_rsd_wlw_links",id:"input-wpseo-remove_rsd_wlw_links",label:(0,Et.__)("Remove RSD / WLW links","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove links used by external systems for publishing content to your blog.","wordpress-seo")," ",u.removeRsdWlwLinks]}),(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_oembed_links",id:"input-wpseo-remove_oembed_links",label:(0,Et.__)("Remove oEmbed links","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove links used for embedding your content on other sites.","wordpress-seo")," ",u.removeOembedLinks]}),(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_generator",id:"input-wpseo-remove_generator",label:(0,Et.__)("Remove generator tag","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove information about the plugins and software used by your site.","wordpress-seo")," ",u.removeGenerator]}),(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_pingback_header",id:"input-wpseo-remove_pingback_header",label:(0,Et.__)("Pingback HTTP header","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove links which allow others sites to ‘ping’ yours when they link to you.","wordpress-seo")," ",u.removePingbackHeader]}),(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_powered_by_header",id:"input-wpseo-remove_powered_by_header",label:(0,Et.__)("Remove powered by HTTP header","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove information about the plugins and software used by your site.","wordpress-seo")," ",u.removePoweredByHeader]})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.__)("Disable unwanted content formats","wordpress-seo"),description:(0,Et.__)("WordPress outputs your content in many different formats, across many different URLs (like RSS feeds of your posts and categories). It’s generally good practice to disable the formats you’re not actively using.","wordpress-seo"),children:[(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_feed_global",id:"input-wpseo-remove_feed_global",label:(0,Et.__)("Remove global feed","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide an overview of your recent posts.","wordpress-seo")," ",u.removeFeedGlobal]}),(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_feed_global_comments",id:"input-wpseo-remove_feed_global_comments",label:(0,Et.__)("Remove global comment feeds","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide an overview of recent comments on your site.","wordpress-seo")," ",u.removeFeedGlobalComments,(0,Et.__)("Also disables post comment feeds.","wordpress-seo")]}),(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_feed_post_comments",id:"input-wpseo-remove_feed_post_comments",label:(0,Et.__)("Remove post comments feeds","wordpress-seo"),disabled:m,checked:m||h,className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide information about recent comments on each post.","wordpress-seo")," ",u.removeFeedPostComments]}),(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_feed_authors",id:"input-wpseo-remove_feed_authors",label:(0,Et.__)("Remove post authors feeds","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide information about recent posts by specific authors.","wordpress-seo")," ",u.removeFeedAuthors]}),(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_feed_post_types",id:"input-wpseo-remove_feed_post_types",label:(0,Et.__)("Remove post type feeds","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide information about your recent posts, for each post type.","wordpress-seo")," ",u.removeFeedPostTypes]}),(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_feed_categories",id:"input-wpseo-remove_feed_categories",label:(0,Et.__)("Remove category feeds","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide information about your recent posts, for each category.","wordpress-seo")," ",u.removeFeedCategories]}),(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_feed_tags",id:"input-wpseo-remove_feed_tags",label:(0,Et.__)("Remove tag feeds","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide information about your recent posts, for each tag.","wordpress-seo")," ",u.removeFeedTags]}),(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_feed_custom_taxonomies",id:"input-wpseo-remove_feed_custom_taxonomies",label:(0,Et.__)("Remove custom taxonomy feeds","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide information about your recent posts, for each custom taxonomy.","wordpress-seo")," ",u.removeFeedCustomTaxonomies]}),(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_feed_search",id:"input-wpseo-remove_feed_search",label:(0,Et.__)("Remove search results feeds","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide information about your search results.","wordpress-seo")," ",u.removeFeedSearch]}),(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_atom_rdf_feeds",id:"input-wpseo-remove_atom_rdf_feeds",label:(0,Et.__)("Remove Atom / RDF feeds","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide alternative (legacy) formats of all of the above.","wordpress-seo")," ",u.removeAtomRdfFeeds]})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.__)("Remove unused resources","wordpress-seo"),description:(0,Et.__)("WordPress loads lots of resources, some of which your site might not need. If you’re not using these, removing them can speed up your pages and save resources.","wordpress-seo"),children:[(0,mr.jsx)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.remove_emoji_scripts",id:"input-wpseo-remove_emoji_scripts",label:(0,Et.__)("Remove emoji scripts","wordpress-seo"),description:(0,Et.__)("Remove JavaScript used for converting emoji characters in older browsers.","wordpress-seo"),className:"yst-max-w-2xl"}),(0,mr.jsxs)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.deny_wp_json_crawling",id:"input-wpseo-deny_wp_json_crawling",label:(0,Et.__)("Remove WP-JSON API","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Add a ‘disallow’ rule to your robots.txt file to prevent crawling of WordPress' JSON API endpoints.","wordpress-seo")," ",u.denyWpJsonCrawling]})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.__)("Block unwanted bots","wordpress-seo"),description:u.blockUnwantedBots,children:[(0,mr.jsx)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.deny_adsbot_crawling",id:"input-wpseo-deny_adsbot_crawling",label:(0,Et.__)("Prevent Google AdsBot from crawling","wordpress-seo"),description:(0,Et.__)("Add a ‘disallow’ rule to your robots.txt file to prevent crawling by Google AdsBot. You should only enable this setting if you're not using Google Ads on your site.","wordpress-seo"),className:"yst-max-w-2xl"}),(0,mr.jsxs)(i.FeatureUpsell,{shouldUpsell:!t&&!e,variant:"card",cardLink:l,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ -(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...s,children:[(0,mr.jsx)(Dl,{as:i.ToggleField,type:"checkbox",name:"wpseo.deny_google_extended_crawling",id:"input-wpseo-deny_google_extended_crawling",label:(0,Et.__)("Prevent Google Gemini and Vertex AI bots from crawling","wordpress-seo"),description:(0,Et.__)("Add a ‘disallow’ rule to your robots.txt file to prevent crawling by the Google-Extended bot. Enabling this setting won’t prevent Google from indexing your website.","wordpress-seo"),labelSuffix:e&&(0,mr.jsx)(i.Badge,{className:"yst-ms-1.5",size:"small",variant:"upsell",children:"Premium"}),className:"yst-max-w-2xl",isDummy:!e}),(0,mr.jsx)(Dl,{as:i.ToggleField,type:"checkbox",name:"wpseo.deny_gptbot_crawling",id:"input-wpseo-deny_gptbot_crawling",label:(0,Et.__)("Prevent OpenAI GPTBot from crawling","wordpress-seo"),description:(0,Et.__)("Add a ‘disallow’ rule to your robots.txt file to prevent crawling by OpenAI GPTBot.","wordpress-seo"),labelSuffix:e&&(0,mr.jsx)(i.Badge,{className:"yst-ms-1.5",size:"small",variant:"upsell",children:"Premium"}),className:"yst-max-w-2xl",isDummy:!e}),(0,mr.jsx)(Dl,{as:i.ToggleField,type:"checkbox",name:"wpseo.deny_ccbot_crawling",id:"input-wpseo-deny_ccbot_crawling",label:(0,Et.__)("Prevent Common Crawl CCBot from crawling","wordpress-seo"),description:(0,Et.__)("Add a ‘disallow’ rule to your robots.txt file to prevent crawling by Common Crawl CCBot.","wordpress-seo"),labelSuffix:e&&(0,mr.jsx)(i.Badge,{className:"yst-ms-1.5",size:"small",variant:"upsell",children:"Premium"}),className:"yst-max-w-2xl",isDummy:!e})]})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.__)("Internal site search cleanup","wordpress-seo"),description:(0,Et.__)("Your internal site search can create lots of confusing URLs for search engines, and can even be used as a way for SEO spammers to attack your site. Most sites will benefit from experimenting with these protections and optimizations, even if you don’t have a search feature in your theme.","wordpress-seo"),children:[(0,mr.jsx)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.search_cleanup",id:"input-wpseo-search_cleanup",label:(0,Et.__)("Filter search terms","wordpress-seo"),description:(0,Et.__)("Enables advanced settings for protecting your internal site search URLs.","wordpress-seo"),className:"yst-max-w-2xl"}),(0,mr.jsx)(Ml,{as:i.TextField,type:"number",name:"wpseo.search_character_limit",id:"input-wpseo-search_character_limit",label:(0,Et.__)("Max number of characters to allow in searches","wordpress-seo"),description:(0,Et.__)("Limit the length of internal site search queries to reduce the impact of spam attacks and confusing URLs. Please enter a number between 1 and 50.","wordpress-seo"),disabled:!f}),(0,mr.jsx)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.search_cleanup_emoji",id:"input-wpseo-search_cleanup_emoji",label:(0,Et.__)("Filter searches with emojis and other special characters","wordpress-seo"),description:(0,Et.__)("Block internal site searches which contain complex and non-alphanumeric characters, as they may be part of a spam attack.","wordpress-seo"),disabled:!f,checked:f&&_,className:"yst-max-w-2xl"}),(0,mr.jsx)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.search_cleanup_patterns",id:"input-wpseo-search_cleanup_patterns",label:(0,Et.__)("Filter searches with common spam patterns","wordpress-seo"),description:(0,Et.__)("Block internal site searches which match the patterns of known spam attacks.","wordpress-seo"),disabled:!f,checked:f&&y,className:"yst-max-w-2xl"}),(0,mr.jsx)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.redirect_search_pretty_urls",id:"input-wpseo-redirect_search_pretty_urls",label:(0,Et.__)("Redirect pretty URLs to ‘raw’ formats","wordpress-seo"),description:u.redirectSearchPrettyUrls,className:"yst-max-w-2xl"}),(0,mr.jsx)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.deny_search_crawling",id:"input-wpseo-deny_search_crawling",label:(0,Et.__)("Prevent crawling of internal site search URLs","wordpress-seo"),description:u.denySearchCrawling,className:"yst-max-w-2xl"})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.__)("Advanced: URL cleanup","wordpress-seo"),description:u.advancedUrlCleanup,children:[(0,mr.jsx)(i.Alert,{id:"alert-permalink-cleanup-settings",variant:"error",children:pr((0,Et.sprintf)( +(0,Et.__)("Prevents specific URL parameters from being removed by the above feature. E.g., adding %1$s will prevent %2$s from being redirected to %3$s. You can add multiple parameters and separate them by using enter or a comma.","wordpress-seo"),"<code1/>","<code2/>","<code3/>"),{code1:(0,ur.jsx)(a.Code,{children:"unknown_parameter"}),code2:(0,ur.jsx)(a.Code,{children:"https://www.example.com/?unknown_parameter=yes"}),code3:(0,ur.jsx)(a.Code,{children:"https://www.example.com"})})})),[]),{values:p}=q(),{remove_feed_global_comments:m,remove_feed_post_comments:h,search_cleanup:f,search_cleanup_emoji:_,search_cleanup_patterns:y,clean_permalinks:w}=p.wpseo;return(0,ur.jsx)(ui,{title:(0,Et.__)("Crawl optimization","wordpress-seo"),description:u.page,children:(0,ur.jsx)(ho,{children:(0,ur.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,ur.jsxs)(uo,{title:(0,Et.__)("Remove unwanted metadata","wordpress-seo"),description:u.removeUnwantedMetadata,children:[(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_shortlinks",id:"input-wpseo-remove_shortlinks",label:(0,Et.__)("Remove shortlinks","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove links to WordPress' internal 'shortlink' URLs for your posts.","wordpress-seo")," ",u.removeShortlinks]}),(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_rest_api_links",id:"input-wpseo-remove_rest_api_links",label:(0,Et.__)("Remove REST API links","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove links to the location of your site’s REST API endpoints.","wordpress-seo")," ",u.removeRestApiLinks]}),(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_rsd_wlw_links",id:"input-wpseo-remove_rsd_wlw_links",label:(0,Et.__)("Remove RSD / WLW links","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove links used by external systems for publishing content to your blog.","wordpress-seo")," ",u.removeRsdWlwLinks]}),(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_oembed_links",id:"input-wpseo-remove_oembed_links",label:(0,Et.__)("Remove oEmbed links","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove links used for embedding your content on other sites.","wordpress-seo")," ",u.removeOembedLinks]}),(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_generator",id:"input-wpseo-remove_generator",label:(0,Et.__)("Remove generator tag","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove information about the plugins and software used by your site.","wordpress-seo")," ",u.removeGenerator]}),(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_pingback_header",id:"input-wpseo-remove_pingback_header",label:(0,Et.__)("Pingback HTTP header","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove links which allow others sites to ‘ping’ yours when they link to you.","wordpress-seo")," ",u.removePingbackHeader]}),(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_powered_by_header",id:"input-wpseo-remove_powered_by_header",label:(0,Et.__)("Remove powered by HTTP header","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove information about the plugins and software used by your site.","wordpress-seo")," ",u.removePoweredByHeader]})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.__)("Disable unwanted content formats","wordpress-seo"),description:(0,Et.__)("WordPress outputs your content in many different formats, across many different URLs (like RSS feeds of your posts and categories). It’s generally good practice to disable the formats you’re not actively using.","wordpress-seo"),children:[(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_feed_global",id:"input-wpseo-remove_feed_global",label:(0,Et.__)("Remove global feed","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide an overview of your recent posts.","wordpress-seo")," ",u.removeFeedGlobal]}),(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_feed_global_comments",id:"input-wpseo-remove_feed_global_comments",label:(0,Et.__)("Remove global comment feeds","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide an overview of recent comments on your site.","wordpress-seo")," ",u.removeFeedGlobalComments,(0,Et.__)("Also disables post comment feeds.","wordpress-seo")]}),(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_feed_post_comments",id:"input-wpseo-remove_feed_post_comments",label:(0,Et.__)("Remove post comments feeds","wordpress-seo"),disabled:m,checked:m||h,className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide information about recent comments on each post.","wordpress-seo")," ",u.removeFeedPostComments]}),(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_feed_authors",id:"input-wpseo-remove_feed_authors",label:(0,Et.__)("Remove post authors feeds","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide information about recent posts by specific authors.","wordpress-seo")," ",u.removeFeedAuthors]}),(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_feed_post_types",id:"input-wpseo-remove_feed_post_types",label:(0,Et.__)("Remove post type feeds","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide information about your recent posts, for each post type.","wordpress-seo")," ",u.removeFeedPostTypes]}),(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_feed_categories",id:"input-wpseo-remove_feed_categories",label:(0,Et.__)("Remove category feeds","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide information about your recent posts, for each category.","wordpress-seo")," ",u.removeFeedCategories]}),(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_feed_tags",id:"input-wpseo-remove_feed_tags",label:(0,Et.__)("Remove tag feeds","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide information about your recent posts, for each tag.","wordpress-seo")," ",u.removeFeedTags]}),(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_feed_custom_taxonomies",id:"input-wpseo-remove_feed_custom_taxonomies",label:(0,Et.__)("Remove custom taxonomy feeds","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide information about your recent posts, for each custom taxonomy.","wordpress-seo")," ",u.removeFeedCustomTaxonomies]}),(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_feed_search",id:"input-wpseo-remove_feed_search",label:(0,Et.__)("Remove search results feeds","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide information about your search results.","wordpress-seo")," ",u.removeFeedSearch]}),(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_atom_rdf_feeds",id:"input-wpseo-remove_atom_rdf_feeds",label:(0,Et.__)("Remove Atom / RDF feeds","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Remove URLs which provide alternative (legacy) formats of all of the above.","wordpress-seo")," ",u.removeAtomRdfFeeds]})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.__)("Remove unused resources","wordpress-seo"),description:(0,Et.__)("WordPress loads lots of resources, some of which your site might not need. If you’re not using these, removing them can speed up your pages and save resources.","wordpress-seo"),children:[(0,ur.jsx)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.remove_emoji_scripts",id:"input-wpseo-remove_emoji_scripts",label:(0,Et.__)("Remove emoji scripts","wordpress-seo"),description:(0,Et.__)("Remove JavaScript used for converting emoji characters in older browsers.","wordpress-seo"),className:"yst-max-w-2xl"}),(0,ur.jsxs)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.deny_wp_json_crawling",id:"input-wpseo-deny_wp_json_crawling",label:(0,Et.__)("Remove WP-JSON API","wordpress-seo"),className:"yst-max-w-2xl",children:[(0,Et.__)("Add a ‘disallow’ rule to your robots.txt file to prevent crawling of WordPress' JSON API endpoints.","wordpress-seo")," ",u.denyWpJsonCrawling]})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.__)("Block unwanted bots","wordpress-seo"),description:u.blockUnwantedBots,children:[(0,ur.jsx)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.deny_adsbot_crawling",id:"input-wpseo-deny_adsbot_crawling",label:(0,Et.__)("Prevent Google AdsBot from crawling","wordpress-seo"),description:(0,Et.__)("Add a ‘disallow’ rule to your robots.txt file to prevent crawling by Google AdsBot. You should only enable this setting if you're not using Google Ads on your site.","wordpress-seo"),className:"yst-max-w-2xl"}),(0,ur.jsxs)(a.FeatureUpsell,{shouldUpsell:!t&&!e,variant:"card",cardLink:l,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ +(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...s,children:[(0,ur.jsx)(Rl,{as:a.ToggleField,type:"checkbox",name:"wpseo.deny_google_extended_crawling",id:"input-wpseo-deny_google_extended_crawling",label:(0,Et.__)("Prevent Google Gemini and Vertex AI bots from crawling","wordpress-seo"),description:(0,Et.__)("Add a ‘disallow’ rule to your robots.txt file to prevent crawling by the Google-Extended bot. Enabling this setting won’t prevent Google from indexing your website.","wordpress-seo"),labelSuffix:e&&(0,ur.jsx)(a.Badge,{className:"yst-ms-1.5",size:"small",variant:"upsell",children:"Premium"}),className:"yst-max-w-2xl",isDummy:!e}),(0,ur.jsx)(Rl,{as:a.ToggleField,type:"checkbox",name:"wpseo.deny_gptbot_crawling",id:"input-wpseo-deny_gptbot_crawling",label:(0,Et.__)("Prevent OpenAI GPTBot from crawling","wordpress-seo"),description:(0,Et.__)("Add a ‘disallow’ rule to your robots.txt file to prevent crawling by OpenAI GPTBot.","wordpress-seo"),labelSuffix:e&&(0,ur.jsx)(a.Badge,{className:"yst-ms-1.5",size:"small",variant:"upsell",children:"Premium"}),className:"yst-max-w-2xl",isDummy:!e}),(0,ur.jsx)(Rl,{as:a.ToggleField,type:"checkbox",name:"wpseo.deny_ccbot_crawling",id:"input-wpseo-deny_ccbot_crawling",label:(0,Et.__)("Prevent Common Crawl CCBot from crawling","wordpress-seo"),description:(0,Et.__)("Add a ‘disallow’ rule to your robots.txt file to prevent crawling by Common Crawl CCBot.","wordpress-seo"),labelSuffix:e&&(0,ur.jsx)(a.Badge,{className:"yst-ms-1.5",size:"small",variant:"upsell",children:"Premium"}),className:"yst-max-w-2xl",isDummy:!e})]})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.__)("Internal site search cleanup","wordpress-seo"),description:(0,Et.__)("Your internal site search can create lots of confusing URLs for search engines, and can even be used as a way for SEO spammers to attack your site. Most sites will benefit from experimenting with these protections and optimizations, even if you don’t have a search feature in your theme.","wordpress-seo"),children:[(0,ur.jsx)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.search_cleanup",id:"input-wpseo-search_cleanup",label:(0,Et.__)("Filter search terms","wordpress-seo"),description:(0,Et.__)("Enables advanced settings for protecting your internal site search URLs.","wordpress-seo"),className:"yst-max-w-2xl"}),(0,ur.jsx)(Fl,{as:a.TextField,type:"number",name:"wpseo.search_character_limit",id:"input-wpseo-search_character_limit",label:(0,Et.__)("Max number of characters to allow in searches","wordpress-seo"),description:(0,Et.__)("Limit the length of internal site search queries to reduce the impact of spam attacks and confusing URLs. Please enter a number between 1 and 50.","wordpress-seo"),disabled:!f}),(0,ur.jsx)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.search_cleanup_emoji",id:"input-wpseo-search_cleanup_emoji",label:(0,Et.__)("Filter searches with emojis and other special characters","wordpress-seo"),description:(0,Et.__)("Block internal site searches which contain complex and non-alphanumeric characters, as they may be part of a spam attack.","wordpress-seo"),disabled:!f,checked:f&&_,className:"yst-max-w-2xl"}),(0,ur.jsx)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.search_cleanup_patterns",id:"input-wpseo-search_cleanup_patterns",label:(0,Et.__)("Filter searches with common spam patterns","wordpress-seo"),description:(0,Et.__)("Block internal site searches which match the patterns of known spam attacks.","wordpress-seo"),disabled:!f,checked:f&&y,className:"yst-max-w-2xl"}),(0,ur.jsx)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.redirect_search_pretty_urls",id:"input-wpseo-redirect_search_pretty_urls",label:(0,Et.__)("Redirect pretty URLs to ‘raw’ formats","wordpress-seo"),description:u.redirectSearchPrettyUrls,className:"yst-max-w-2xl"}),(0,ur.jsx)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.deny_search_crawling",id:"input-wpseo-deny_search_crawling",label:(0,Et.__)("Prevent crawling of internal site search URLs","wordpress-seo"),description:u.denySearchCrawling,className:"yst-max-w-2xl"})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.__)("Advanced: URL cleanup","wordpress-seo"),description:u.advancedUrlCleanup,children:[(0,ur.jsx)(a.Alert,{id:"alert-permalink-cleanup-settings",variant:"error",children:cr((0,Et.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing <a> tags. -(0,Et.__)("Warning! These are expert features, so make sure you know what you're doing before using this setting. You might break your site. %1$sRead more about how your site can be affected%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,mr.jsx)("a",{id:"link-permalink-cleanup-info",href:o,target:"_blank",rel:"noopener noreferrer"})})}),(0,mr.jsx)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.clean_campaign_tracking_urls",id:"input-wpseo-clean_campaign_tracking_urls",label:(0,Et.__)("Optimize Google Analytics utm tracking parameters","wordpress-seo"),description:u.cleanCampaignTrackingUrls,className:"yst-max-w-2xl"}),(0,mr.jsx)(Il,{as:i.ToggleField,type:"checkbox",name:"wpseo.clean_permalinks",id:"input-wpseo-clean_permalinks",label:(0,Et.__)("Remove unregistered URL parameters","wordpress-seo"),description:u.cleanPermalinks,className:"yst-max-w-2xl"}),(0,mr.jsx)(Ao,{name:"wpseo.clean_permalinks_extra_variables",id:"input-wpseo-clean_permalinks_extra_variables",label:(0,Et.__)("Additional URL parameters to allow","wordpress-seo"),description:u.cleanPermalinksExtraVariables,disabled:!w})]})]})})})},Ul=xl(Oo),Vl=()=>{const e=(0,Et.__)("Date archives","wordpress-seo"),t=bo("selectPreference",[],"userLocale"),s=(0,a.useMemo)((()=>Fi(e,t)),[e,t]),r=bo("selectUpsellSettingsAsProps"),o=bo("selectReplacementVariablesFor",[],"date_archive","custom-post-type_archive"),n=bo("selectRecommendedReplacementVariablesFor",[],"date_archive","custom-post-type_archive"),l=bo("selectLink",[],"https://yoa.st/show-x"),d=bo("selectPreference",[],"isPremium"),c=bo("selectLink",[],"https://yoa.st/4e0"),u=bo("selectExampleUrl",[],"/2020/"),p=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Warning! These are expert features, so make sure you know what you're doing before using this setting. You might break your site. %1$sRead more about how your site can be affected%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,ur.jsx)("a",{id:"link-permalink-cleanup-info",href:o,target:"_blank",rel:"noopener noreferrer"})})}),(0,ur.jsx)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.clean_campaign_tracking_urls",id:"input-wpseo-clean_campaign_tracking_urls",label:(0,Et.__)("Optimize Google Analytics utm tracking parameters","wordpress-seo"),description:u.cleanCampaignTrackingUrls,className:"yst-max-w-2xl"}),(0,ur.jsx)($l,{as:a.ToggleField,type:"checkbox",name:"wpseo.clean_permalinks",id:"input-wpseo-clean_permalinks",label:(0,Et.__)("Remove unregistered URL parameters","wordpress-seo"),description:u.cleanPermalinks,className:"yst-max-w-2xl"}),(0,ur.jsx)(ko,{name:"wpseo.clean_permalinks_extra_variables",id:"input-wpseo-clean_permalinks_extra_variables",label:(0,Et.__)("Additional URL parameters to allow","wordpress-seo"),description:u.cleanPermalinksExtraVariables,disabled:!w})]})]})})})},Cl=hl(jo),Ol=()=>{const e=(0,Et.__)("Date archives","wordpress-seo"),t=lo("selectPreference",[],"userLocale"),s=(0,i.useMemo)((()=>ya(e,t)),[e,t]),r=lo("selectUpsellSettingsAsProps"),o=lo("selectReplacementVariablesFor",[],"date_archive","custom-post-type_archive"),n=lo("selectRecommendedReplacementVariablesFor",[],"date_archive","custom-post-type_archive"),l=lo("selectLink",[],"https://yoa.st/show-x"),d=lo("selectPreference",[],"isPremium"),c=lo("selectLink",[],"https://yoa.st/4e0"),u=lo("selectExampleUrl",[],"/2020/"),p=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to an opening strong tag. * %2$s expands to a closing strong tag. * %3$s expands to the recommended image size. */ -(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","1200x675px"),{strong:(0,mr.jsx)("strong",{className:"yst-font-semibold"})})),[]),m=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","1200x675px"),{strong:(0,ur.jsx)("strong",{className:"yst-font-semibold"})})),[]),m=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to "Date archives". * %2$s expands to an example URL, e.g. https://example.com/author/example/. * %3$s expands to "date archives". */ -(0,Et.__)("%1$s (e.g. %2$s) are based on publication dates. From an SEO perspective, the posts in these archives have no real relation to the other posts except for their publication dates, which doesn’t say much about the content. They could also lead to duplicate content issues. This is why we recommend you to disable %3$s.","wordpress-seo"),e,"<exampleUrl />",s),{exampleUrl:(0,mr.jsx)(i.Code,{children:u})}))),{values:h}=q(),{opengraph:f}=h.wpseo_social,{"disable-date":_,"noindex-archive-wpseo":y}=h.wpseo_titles;return(0,mr.jsx)(xa,{title:e,description:m,children:(0,mr.jsx)(ko,{children:(0,mr.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,mr.jsx)("fieldset",{className:"yst-min-width-0 yst-space-y-8",children:(0,mr.jsx)(Lo,{name:"wpseo_titles.disable-date",id:"input-wpseo_titles-disable-date",label:(0,Et.sprintf)( +(0,Et.__)("%1$s (e.g. %2$s) are based on publication dates. From an SEO perspective, the posts in these archives have no real relation to the other posts except for their publication dates, which doesn’t say much about the content. They could also lead to duplicate content issues. This is why we recommend you to disable %3$s.","wordpress-seo"),e,"<exampleUrl />",s),{exampleUrl:(0,ur.jsx)(a.Code,{children:u})}))),{values:h}=q(),{opengraph:f}=h.wpseo_social,{"disable-date":_,"noindex-archive-wpseo":y}=h.wpseo_titles;return(0,ur.jsx)(ui,{title:e,description:m,children:(0,ur.jsx)(ho,{children:(0,ur.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,ur.jsx)("fieldset",{className:"yst-min-width-0 yst-space-y-8",children:(0,ur.jsx)(_o,{name:"wpseo_titles.disable-date",id:"input-wpseo_titles-disable-date",label:(0,Et.sprintf)( // translators: %1$s expands to "date archives". (0,Et.__)("Enable %1$s","wordpress-seo"),s),description:(0,Et.sprintf)( // translators: %1$s expands to "Date archives". -(0,Et.__)("%1$s can cause duplicate content issues. For most sites, we recommend that you disable this setting.","wordpress-seo"),e),className:"yst-max-w-sm"})}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.__)("Search appearance","wordpress-seo"),description:(0,Et.sprintf)( +(0,Et.__)("%1$s can cause duplicate content issues. For most sites, we recommend that you disable this setting.","wordpress-seo"),e),className:"yst-max-w-sm"})}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.__)("Search appearance","wordpress-seo"),description:(0,Et.sprintf)( // translators: %1$s expands to "date archives". -(0,Et.__)("Determine how your %1$s should look in search engines.","wordpress-seo"),s),children:[(0,mr.jsx)(Lo,{name:"wpseo_titles.noindex-archive-wpseo",id:"input-wpseo_titles-noindex-archive-wpseo",label:(0,Et.sprintf)( +(0,Et.__)("Determine how your %1$s should look in search engines.","wordpress-seo"),s),children:[(0,ur.jsx)(_o,{name:"wpseo_titles.noindex-archive-wpseo",id:"input-wpseo_titles-noindex-archive-wpseo",label:(0,Et.sprintf)( // translators: %1$s expands to "date archives". -(0,Et.__)("Show %1$s in search results","wordpress-seo"),s),description:(0,mr.jsxs)(mr.Fragment,{children:[(0,Et.sprintf)( +(0,Et.__)("Show %1$s in search results","wordpress-seo"),s),description:(0,ur.jsxs)(ur.Fragment,{children:[(0,Et.sprintf)( // translators: %1$s expands to "date archives". -(0,Et.__)("Disabling this means that %1$s will not be indexed by search engines and will be excluded from XML sitemaps. We recommend that you disable this setting.","wordpress-seo"),s)," ",(0,mr.jsx)(i.Link,{href:l,target:"_blank",rel:"noopener",children:(0,Et.__)("Read more about the search results settings","wordpress-seo")}),"."]}),disabled:_,checked:!_&&!y,className:"yst-max-w-sm"}),(0,mr.jsx)(Oo,{type:"title",name:"wpseo_titles.title-archive-wpseo",fieldId:"input-wpseo_titles-title-archive-wpseo",label:(0,Et.__)("SEO title","wordpress-seo"),replacementVariables:o,recommendedReplacementVariables:n,disabled:_}),(0,mr.jsx)(Oo,{type:"description",name:"wpseo_titles.metadesc-archive-wpseo",fieldId:"input-wpseo_titles-metadesc-archive-wpseo",label:(0,Et.__)("Meta description","wordpress-seo"),replacementVariables:o,recommendedReplacementVariables:n,disabled:_,className:"yst-replacevar--description"})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(xo,{title:(0,mr.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-1.5",children:[(0,mr.jsx)("span",{children:(0,Et.__)("Social media appearance","wordpress-seo")}),d&&(0,mr.jsx)(i.Badge,{variant:"upsell",children:"Premium"})]}),description:(0,Et.sprintf)( +(0,Et.__)("Disabling this means that %1$s will not be indexed by search engines and will be excluded from XML sitemaps. We recommend that you disable this setting.","wordpress-seo"),s)," ",(0,ur.jsx)(a.Link,{href:l,target:"_blank",rel:"noopener",children:(0,Et.__)("Read more about the search results settings","wordpress-seo")}),"."]}),disabled:_,checked:!_&&!y,className:"yst-max-w-sm"}),(0,ur.jsx)(jo,{type:"title",name:"wpseo_titles.title-archive-wpseo",fieldId:"input-wpseo_titles-title-archive-wpseo",label:(0,Et.__)("SEO title","wordpress-seo"),replacementVariables:o,recommendedReplacementVariables:n,disabled:_}),(0,ur.jsx)(jo,{type:"description",name:"wpseo_titles.metadesc-archive-wpseo",fieldId:"input-wpseo_titles-metadesc-archive-wpseo",label:(0,Et.__)("Meta description","wordpress-seo"),replacementVariables:o,recommendedReplacementVariables:n,disabled:_,className:"yst-replacevar--description"})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(uo,{title:(0,ur.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-1.5",children:[(0,ur.jsx)("span",{children:(0,Et.__)("Social media appearance","wordpress-seo")}),d&&(0,ur.jsx)(a.Badge,{variant:"upsell",children:"Premium"})]}),description:(0,Et.sprintf)( // translators: %1$s expands to "date archives". -(0,Et.__)("Determine how your %1$s should look on social media by default.","wordpress-seo"),s),children:(0,mr.jsxs)(i.FeatureUpsell,{shouldUpsell:!d,variant:"card",cardLink:c,cardText:(0,Et.sprintf)( +(0,Et.__)("Determine how your %1$s should look on social media by default.","wordpress-seo"),s),children:(0,ur.jsxs)(a.FeatureUpsell,{shouldUpsell:!d,variant:"card",cardLink:c,cardText:(0,Et.sprintf)( // translators: %1$s expands to Premium. -(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...r,children:[(0,mr.jsx)(ra,{isEnabled:!d||f}),(0,mr.jsx)(Ro,{id:"wpseo_titles-social-image-archive-wpseo",label:(0,Et.__)("Social image","wordpress-seo"),previewLabel:p,mediaUrlName:"wpseo_titles.social-image-url-archive-wpseo",mediaIdName:"wpseo_titles.social-image-id-archive-wpseo",disabled:_||!f,isDummy:!d}),(0,mr.jsx)(Ul,{type:"title",name:"wpseo_titles.social-title-archive-wpseo",fieldId:"input-wpseo_titles-social-title-archive-wpseo",label:(0,Et.__)("Social title","wordpress-seo"),replacementVariables:o,recommendedReplacementVariables:n,disabled:_||!f,isDummy:!d}),(0,mr.jsx)(Ul,{type:"description",name:"wpseo_titles.social-description-archive-wpseo",fieldId:"input-wpseo_titles-social-description-archive-wpseo",label:(0,Et.__)("Social description","wordpress-seo"),replacementVariables:o,recommendedReplacementVariables:n,className:"yst-replacevar--description",disabled:_||!f,isDummy:!d})]})})]})})})},zl=xl(Oo),ql=()=>{const{name:e,label:t,singularLabel:s}=bo("selectTaxonomy",[],"post_format"),r=bo("selectPreference",[],"userLocale"),o=(0,a.useMemo)((()=>Fi(t,r)),[t,r]),n=(0,a.useMemo)((()=>Fi(s,r)),[s,r]),l=bo("selectUpsellSettingsAsProps"),d=bo("selectReplacementVariablesFor",[e],e,"term-in-custom-taxonomy"),c=bo("selectRecommendedReplacementVariablesFor",[e],e,"term-in-custom-taxonomy"),u=bo("selectLink",[],"https://yoa.st/show-x"),p=bo("selectPreference",[],"isPremium"),m=bo("selectLink",[],"https://yoa.st/4e0"),h=bo("selectExampleUrl",[],"/format/example/"),f=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...r,children:[(0,ur.jsx)(Ho,{isEnabled:!d||f}),(0,ur.jsx)(bo,{id:"wpseo_titles-social-image-archive-wpseo",label:(0,Et.__)("Social image","wordpress-seo"),previewLabel:p,mediaUrlName:"wpseo_titles.social-image-url-archive-wpseo",mediaIdName:"wpseo_titles.social-image-id-archive-wpseo",disabled:_||!f,isDummy:!d}),(0,ur.jsx)(Cl,{type:"title",name:"wpseo_titles.social-title-archive-wpseo",fieldId:"input-wpseo_titles-social-title-archive-wpseo",label:(0,Et.__)("Social title","wordpress-seo"),replacementVariables:o,recommendedReplacementVariables:n,disabled:_||!f,isDummy:!d}),(0,ur.jsx)(Cl,{type:"description",name:"wpseo_titles.social-description-archive-wpseo",fieldId:"input-wpseo_titles-social-description-archive-wpseo",label:(0,Et.__)("Social description","wordpress-seo"),replacementVariables:o,recommendedReplacementVariables:n,className:"yst-replacevar--description",disabled:_||!f,isDummy:!d})]})})]})})})},Nl=hl(jo),Al=()=>{const{name:e,label:t,singularLabel:s}=lo("selectTaxonomy",[],"post_format"),r=lo("selectPreference",[],"userLocale"),o=(0,i.useMemo)((()=>ya(t,r)),[t,r]),n=(0,i.useMemo)((()=>ya(s,r)),[s,r]),l=lo("selectUpsellSettingsAsProps"),d=lo("selectReplacementVariablesFor",[e],e,"term-in-custom-taxonomy"),c=lo("selectRecommendedReplacementVariablesFor",[e],e,"term-in-custom-taxonomy"),u=lo("selectLink",[],"https://yoa.st/show-x"),p=lo("selectPreference",[],"isPremium"),m=lo("selectLink",[],"https://yoa.st/4e0"),h=lo("selectExampleUrl",[],"/format/example/"),f=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to an opening strong tag. * %2$s expands to a closing strong tag. * %3$s expands to the recommended image size. */ -(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","1200x675px"),{strong:(0,mr.jsx)("strong",{className:"yst-font-semibold"})})),[]),_=(0,a.useMemo)((()=>pr((0,Et.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ -(0,Et.__)("(e.g., %1$s)","wordpress-seo"),"<exampleUrl />"),{exampleUrl:(0,mr.jsx)(i.Code,{children:h})}))),{values:y}=q(),{opengraph:w}=y.wpseo_social,{"disable-post_format":g,"noindex-tax-post_format":b}=y.wpseo_titles;return(0,mr.jsx)(xa,{title:(0,Et.__)("Format archives","wordpress-seo"),description:_,children:(0,mr.jsx)(ko,{children:(0,mr.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,mr.jsx)(Lo,{name:"wpseo_titles.disable-post_format",id:"input-wpseo_titles-disable-post_format",label:(0,Et.__)("Enable format-based archives","wordpress-seo"),description:(0,Et.__)("Format-based archives can cause duplicate content issues. For most sites, we recommend that you disable this setting.","wordpress-seo"),className:"yst-max-w-sm"}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.__)("Search appearance","wordpress-seo"),description:(0,Et.sprintf)( +(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","1200x675px"),{strong:(0,ur.jsx)("strong",{className:"yst-font-semibold"})})),[]),_=(0,i.useMemo)((()=>cr((0,Et.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ +(0,Et.__)("(e.g., %1$s)","wordpress-seo"),"<exampleUrl />"),{exampleUrl:(0,ur.jsx)(a.Code,{children:h})}))),{values:y}=q(),{opengraph:w}=y.wpseo_social,{"disable-post_format":g,"noindex-tax-post_format":b}=y.wpseo_titles;return(0,ur.jsx)(ui,{title:(0,Et.__)("Format archives","wordpress-seo"),description:_,children:(0,ur.jsx)(ho,{children:(0,ur.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,ur.jsx)(_o,{name:"wpseo_titles.disable-post_format",id:"input-wpseo_titles-disable-post_format",label:(0,Et.__)("Enable format-based archives","wordpress-seo"),description:(0,Et.__)("Format-based archives can cause duplicate content issues. For most sites, we recommend that you disable this setting.","wordpress-seo"),className:"yst-max-w-sm"}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.__)("Search appearance","wordpress-seo"),description:(0,Et.sprintf)( // translators: %1$s expands to "formats". %2$s expands to "Yoast SEO". -(0,Et.__)("Determine how your %1$s should look in search engines. You can always customize the settings for individual %1$s in the %2$s metabox.","wordpress-seo"),o,"Yoast SEO"),children:[(0,mr.jsx)(Lo,{name:`wpseo_titles.noindex-tax-${e}`,id:`input-wpseo_titles-noindex-tax-${e}`,label:(0,Et.sprintf)( +(0,Et.__)("Determine how your %1$s should look in search engines. You can always customize the settings for individual %1$s in the %2$s metabox.","wordpress-seo"),o,"Yoast SEO"),children:[(0,ur.jsx)(_o,{name:`wpseo_titles.noindex-tax-${e}`,id:`input-wpseo_titles-noindex-tax-${e}`,label:(0,Et.sprintf)( // translators: %1$s expands to "format". -(0,Et.__)("Show %1$s archives in search results","wordpress-seo"),n),description:(0,mr.jsxs)(mr.Fragment,{children:[(0,Et.sprintf)( +(0,Et.__)("Show %1$s archives in search results","wordpress-seo"),n),description:(0,ur.jsxs)(ur.Fragment,{children:[(0,Et.sprintf)( // translators: %1$s expands to "formats". -(0,Et.__)("Disabling this means that %1$s will not be indexed by search engines and will be excluded from XML sitemaps. We recommend that you disable this setting.","wordpress-seo"),o)," ",(0,mr.jsx)(i.Link,{href:u,target:"_blank",rel:"noopener",children:(0,Et.__)("Read more about the search results settings","wordpress-seo")}),"."]}),disabled:g,checked:!g&&!b,className:"yst-max-w-sm"}),(0,mr.jsx)(Oo,{type:"title",name:`wpseo_titles.title-tax-${e}`,fieldId:`input-wpseo_titles-title-tax-${e}`,label:(0,Et.__)("SEO title","wordpress-seo"),replacementVariables:d,recommendedReplacementVariables:c,disabled:g}),(0,mr.jsx)(Oo,{type:"description",name:`wpseo_titles.metadesc-tax-${e}`,fieldId:`input-wpseo_titles-metadesc-tax-${e}`,label:(0,Et.__)("Meta description","wordpress-seo"),replacementVariables:d,recommendedReplacementVariables:c,disabled:g,className:"yst-replacevar--description"})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(xo,{title:(0,mr.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-1.5",children:[(0,mr.jsx)("span",{children:(0,Et.__)("Social media appearance","wordpress-seo")}),p&&(0,mr.jsx)(i.Badge,{variant:"upsell",children:"Premium"})]}),description:(0,Et.sprintf)( +(0,Et.__)("Disabling this means that %1$s will not be indexed by search engines and will be excluded from XML sitemaps. We recommend that you disable this setting.","wordpress-seo"),o)," ",(0,ur.jsx)(a.Link,{href:u,target:"_blank",rel:"noopener",children:(0,Et.__)("Read more about the search results settings","wordpress-seo")}),"."]}),disabled:g,checked:!g&&!b,className:"yst-max-w-sm"}),(0,ur.jsx)(jo,{type:"title",name:`wpseo_titles.title-tax-${e}`,fieldId:`input-wpseo_titles-title-tax-${e}`,label:(0,Et.__)("SEO title","wordpress-seo"),replacementVariables:d,recommendedReplacementVariables:c,disabled:g}),(0,ur.jsx)(jo,{type:"description",name:`wpseo_titles.metadesc-tax-${e}`,fieldId:`input-wpseo_titles-metadesc-tax-${e}`,label:(0,Et.__)("Meta description","wordpress-seo"),replacementVariables:d,recommendedReplacementVariables:c,disabled:g,className:"yst-replacevar--description"})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(uo,{title:(0,ur.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-1.5",children:[(0,ur.jsx)("span",{children:(0,Et.__)("Social media appearance","wordpress-seo")}),p&&(0,ur.jsx)(a.Badge,{variant:"upsell",children:"Premium"})]}),description:(0,Et.sprintf)( // translators: %1$s expands to "formats". %2$s expands to "Yoast SEO". -(0,Et.__)("Determine how your %1$s should look on social media by default. You can always customize the settings for individual %1$s in the %2$s metabox.","wordpress-seo"),o,"Yoast SEO"),children:(0,mr.jsxs)(i.FeatureUpsell,{shouldUpsell:!p,variant:"card",cardLink:m,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ -(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...l,children:[(0,mr.jsx)(ra,{isEnabled:!p||w}),(0,mr.jsx)(Ro,{id:`wpseo_titles-social-image-tax-${e}`,label:(0,Et.__)("Social image","wordpress-seo"),previewLabel:f,mediaUrlName:`wpseo_titles.social-image-url-tax-${e}`,mediaIdName:`wpseo_titles.social-image-id-tax-${e}`,disabled:g||!w,isDummy:!p}),(0,mr.jsx)(zl,{type:"title",name:`wpseo_titles.social-title-tax-${e}`,fieldId:`input-wpseo_titles-social-title-tax-${e}`,label:(0,Et.__)("Social title","wordpress-seo"),replacementVariables:d,recommendedReplacementVariables:c,disabled:g||!w,isDummy:!p}),(0,mr.jsx)(zl,{type:"description",name:`wpseo_titles.social-description-tax-${e}`,fieldId:`input-wpseo_titles-social-description-tax-${e}`,label:(0,Et.__)("Social description","wordpress-seo"),replacementVariables:d,recommendedReplacementVariables:c,className:"yst-replacevar--description",disabled:g||!w,isDummy:!p})]})})]})})})},Wl=()=>{const e=bo("selectReplacementVariablesFor",[],"homepage","page"),t=bo("selectRecommendedReplacementVariablesFor",[],"homepage","page"),s=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Determine how your %1$s should look on social media by default. You can always customize the settings for individual %1$s in the %2$s metabox.","wordpress-seo"),o,"Yoast SEO"),children:(0,ur.jsxs)(a.FeatureUpsell,{shouldUpsell:!p,variant:"card",cardLink:m,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ +(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...l,children:[(0,ur.jsx)(Ho,{isEnabled:!p||w}),(0,ur.jsx)(bo,{id:`wpseo_titles-social-image-tax-${e}`,label:(0,Et.__)("Social image","wordpress-seo"),previewLabel:f,mediaUrlName:`wpseo_titles.social-image-url-tax-${e}`,mediaIdName:`wpseo_titles.social-image-id-tax-${e}`,disabled:g||!w,isDummy:!p}),(0,ur.jsx)(Nl,{type:"title",name:`wpseo_titles.social-title-tax-${e}`,fieldId:`input-wpseo_titles-social-title-tax-${e}`,label:(0,Et.__)("Social title","wordpress-seo"),replacementVariables:d,recommendedReplacementVariables:c,disabled:g||!w,isDummy:!p}),(0,ur.jsx)(Nl,{type:"description",name:`wpseo_titles.social-description-tax-${e}`,fieldId:`input-wpseo_titles-social-description-tax-${e}`,label:(0,Et.__)("Social description","wordpress-seo"),replacementVariables:d,recommendedReplacementVariables:c,className:"yst-replacevar--description",disabled:g||!w,isDummy:!p})]})})]})})})},Ml=()=>{const e=lo("selectReplacementVariablesFor",[],"homepage","page"),t=lo("selectRecommendedReplacementVariablesFor",[],"homepage","page"),s=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to an opening strong tag. * %2$s expands to a closing strong tag. * %3$s expands to the recommended image size. */ -(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","1200x675px"),{strong:(0,mr.jsx)("strong",{className:"yst-font-semibold"})})),[]),{values:r}=q(),{opengraph:o}=r.wpseo_social;return(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsxs)(xo,{title:(0,Et.__)("Search appearance","wordpress-seo"),description:(0,Et.__)("Determine how your homepage should look in the search results.","wordpress-seo"),children:[(0,mr.jsx)(Oo,{type:"title",name:"wpseo_titles.title-home-wpseo",fieldId:"input-wpseo_titles-title-home-wpseo",label:(0,Et.__)("SEO title","wordpress-seo"),replacementVariables:e,recommendedReplacementVariables:t}),(0,mr.jsx)(Oo,{type:"description",name:"wpseo_titles.metadesc-home-wpseo",fieldId:"input-wpseo_titles-metadesc-home-wpseo",label:(0,Et.__)("Meta description","wordpress-seo"),replacementVariables:e,recommendedReplacementVariables:t,className:"yst-replacevar--description"})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.__)("Social media appearance","wordpress-seo"),description:(0,Et.__)("Determine how your homepage should look on social media.","wordpress-seo"),children:[(0,mr.jsx)(ra,{isEnabled:o -/* translators: %1$s expands to an opening emphasis tag. %2$s expands to a closing emphasis tag. */,text:(0,Et.__)("The %1$ssocial image%2$s, %1$ssocial title%2$s and %1$ssocial description%2$s require Open Graph data, which is currently disabled in the ‘Social sharing’ section in %3$sSite features%4$s.","wordpress-seo")}),(0,mr.jsx)(Ro,{id:"wpseo_titles-open_graph_frontpage_image",label:(0,Et.__)("Social image","wordpress-seo"),previewLabel:s,mediaUrlName:"wpseo_titles.open_graph_frontpage_image",mediaIdName:"wpseo_titles.open_graph_frontpage_image_id",disabled:!o}),(0,mr.jsx)(Oo,{type:"title",name:"wpseo_titles.open_graph_frontpage_title",fieldId:"input-wpseo_titles-open_graph_frontpage_title",label:(0,Et.__)("Social title","wordpress-seo"),replacementVariables:e,recommendedReplacementVariables:t,disabled:!o}),(0,mr.jsx)(Oo,{type:"description",name:"wpseo_titles.open_graph_frontpage_desc",fieldId:"input-wpseo_titles-open_graph_frontpage_desc",label:(0,Et.__)("Social description","wordpress-seo"),replacementVariables:e,recommendedReplacementVariables:t,className:"yst-replacevar--description",disabled:!o})]})]})},Hl=()=>{const e=bo("selectPreference",[],"homepagePageEditUrl"),t=bo("selectPreference",[],"homepagePostsEditUrl"),s=(0,a.useMemo)((()=>bl((0,Et.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ -(0,Et.__)("You can determine the title and description for the homepage by %1$sediting the homepage itself%2$s.","wordpress-seo"),"<a>","</a>"),e,"link-homepage-page-edit"))),r=(0,a.useMemo)((()=>bl((0,Et.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ -(0,Et.__)("You can determine the title and description for the blog page by %1$sediting the blog page itself%2$s.","wordpress-seo"),"<a>","</a>"),t,"link-homepage-posts-page-edit")));return(0,mr.jsx)("div",{className:"yst-max-w-screen-sm",children:(0,mr.jsxs)(i.Alert,{children:[(0,mr.jsx)("p",{children:s}),t&&(0,mr.jsx)("p",{className:"yst-pt-2",children:r})]})})},Gl=()=>{const e=bo("selectPreference",[],"homepageIsLatestPosts");return(0,mr.jsx)(xa,{title:(0,Et.__)("Homepage","wordpress-seo"),description:(0,Et.__)("Determine how your homepage should look in the search results and on social media. This is what people probably will see when they search for your brand name.","wordpress-seo"),children:(0,mr.jsx)(ko,{children:(0,mr.jsxs)("div",{className:"yst-max-w-5xl",children:[e&&(0,mr.jsx)(Wl,{}),!e&&(0,mr.jsx)(Hl,{})]})})})},Yl=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))})),Zl=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"}))})),Kl=vl(kl),Jl="llms.txt",Ql=["about_us_page","contact_page","terms_page","privacy_policy_page","shop_page","other_included_pages"],Xl=()=>{const e=(0,a.useRef)(!1),t=bo("selectLlmsTxtOtherIncludedPagesLimit",[]),s=bo("selectLlmsTxtDisabledPageIndexables",[]),r=bo("selectLlmsTxtGenerationFailure",[]),o=bo("selectLlmsTxtGenerationFailureReason",[]),n=bo("selectLlmsTxtUrl",[]),l=bo("selectLink",[],"https://yoa.st/llmstxt-learn-more"),d=bo("selectLink",[],"https://yoa.st/llmstxt-best-practices"),{fetchIndexablePages:c}=yo(),{values:u,initialValues:p}=q(),{"noindex-page":m}=u.wpseo_titles,{llms_txt_selection_mode:h,other_included_pages:f}=u.wpseo_llmstxt,{enable_llms_txt:_}=u.wpseo,{enable_llms_txt:y}=p.wpseo,w=(0,a.useMemo)((()=>Array.from(new Set(Ql.map((e=>u.wpseo_llmstxt[e])).flat().filter((e=>0!==e))))),[u.wpseo_llmstxt]),g=(0,a.useMemo)((()=>s||m),[s,m]),b=(0,a.useMemo)((()=>!_||g),[_,g]),v=(0,a.useMemo)((()=>_&&!g&&"manual"===h),[_,g,h]),x=(0,a.useMemo)((()=>_&&(u.wpseo_llmstxt!==p.wpseo_llmstxt||y!==_)),[_,y,u.wpseo_llmstxt,p.wpseo_llmstxt]),j=(0,a.useMemo)((()=>pr((0,Et.sprintf)(/* translators: %1$s and %3$s are replaced by opening and closing <a> tags, %2$s is replaced by "llms.txt". */ -(0,Et.__)("Future-proof your website for visibility in AI tools like ChatGPT and Google Gemini. This helps them provide better, more accurate information about your site. %1$sLearn more about the %2$s file%3$s.","wordpress-seo"),"<a>",Jl,"</a>"),{a:(0,mr.jsx)("a",{id:"llms-settings-info",href:l,target:"_blank",rel:"noopener noreferrer"})})),[l]),S=(0,a.useMemo)((()=>pr((0,Et.sprintf)(/* translators: %1$s and %2$s are replaced by opening and closing <a> tags, %3$s is replaced by "llms.txt".. */ -(0,Et.__)("Generate an automatic page selection based on %1$sYoast SEO’s best practices%2$s, or manually choose the pages to be included in your %3$s file.","wordpress-seo"),"<a>","</a>",Jl),{a:(0,mr.jsx)("a",{id:"llms-best-practices",href:d,target:"_blank",rel:"noopener noreferrer"})})),[d]),k=(0,a.useMemo)((()=>pr((0,Et.sprintf)(/* translators: %1$s and %2$s are replaced by opening and closing <a> tags */ -(0,Et.__)("Pages are %1$sdisabled from being shown in the search results%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,mr.jsx)("a",{id:"llms-noindex-pages",href:"admin.php?page=wpseo_page_settings#/post-type/pages#input-wpseo_titles-noindex-page"})})),[]),E=(0,a.useCallback)((async e=>{var t;await e.push(0),null===(t=document.querySelector(`[data-id="input-wpseo_llmstxt-other_included_pages-${f.length}"]`))||void 0===t||t.click()}),[f]);(0,a.useEffect)((()=>{_&&"manual"===h&&!e.current&&(e.current=!0,c())}),[c,_,h]);const L=(0,a.useMemo)((()=>{var e;return!_&&"llm-txt"===(null===(e=sessionStorage)||void 0===e?void 0:e.getItem("yoast-highlight-setting"))}),[_]),[F,,,T,$]=(0,i.useToggleState)(!1);return(0,mr.jsx)(xa,{title:Jl,description:j,children:(0,mr.jsx)(ko,{children:(0,mr.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,mr.jsxs)("fieldset",{className:"yst-min-width-0 yst-space-y-8",children:[r&&y&&_&&(0,mr.jsx)(cl,{reason:o}),(0,mr.jsxs)("div",{className:"yst-relative yst-max-w-sm",children:[(0,mr.jsx)(Kl,{as:i.ToggleField,type:"checkbox",name:"wpseo.enable_llms_txt",id:"input-wpseo.enable_llms_txt",label:(0,Et.sprintf)( +(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","1200x675px"),{strong:(0,ur.jsx)("strong",{className:"yst-font-semibold"})})),[]),{values:r}=q(),{opengraph:o}=r.wpseo_social;return(0,ur.jsxs)(ur.Fragment,{children:[(0,ur.jsxs)(uo,{title:(0,Et.__)("Search appearance","wordpress-seo"),description:(0,Et.__)("Determine how your homepage should look in the search results.","wordpress-seo"),children:[(0,ur.jsx)(jo,{type:"title",name:"wpseo_titles.title-home-wpseo",fieldId:"input-wpseo_titles-title-home-wpseo",label:(0,Et.__)("SEO title","wordpress-seo"),replacementVariables:e,recommendedReplacementVariables:t}),(0,ur.jsx)(jo,{type:"description",name:"wpseo_titles.metadesc-home-wpseo",fieldId:"input-wpseo_titles-metadesc-home-wpseo",label:(0,Et.__)("Meta description","wordpress-seo"),replacementVariables:e,recommendedReplacementVariables:t,className:"yst-replacevar--description"})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.__)("Social media appearance","wordpress-seo"),description:(0,Et.__)("Determine how your homepage should look on social media.","wordpress-seo"),children:[(0,ur.jsx)(Ho,{isEnabled:o +/* translators: %1$s expands to an opening emphasis tag. %2$s expands to a closing emphasis tag. */,text:(0,Et.__)("The %1$ssocial image%2$s, %1$ssocial title%2$s and %1$ssocial description%2$s require Open Graph data, which is currently disabled in the ‘Social sharing’ section in %3$sSite features%4$s.","wordpress-seo")}),(0,ur.jsx)(bo,{id:"wpseo_titles-open_graph_frontpage_image",label:(0,Et.__)("Social image","wordpress-seo"),previewLabel:s,mediaUrlName:"wpseo_titles.open_graph_frontpage_image",mediaIdName:"wpseo_titles.open_graph_frontpage_image_id",disabled:!o}),(0,ur.jsx)(jo,{type:"title",name:"wpseo_titles.open_graph_frontpage_title",fieldId:"input-wpseo_titles-open_graph_frontpage_title",label:(0,Et.__)("Social title","wordpress-seo"),replacementVariables:e,recommendedReplacementVariables:t,disabled:!o}),(0,ur.jsx)(jo,{type:"description",name:"wpseo_titles.open_graph_frontpage_desc",fieldId:"input-wpseo_titles-open_graph_frontpage_desc",label:(0,Et.__)("Social description","wordpress-seo"),replacementVariables:e,recommendedReplacementVariables:t,className:"yst-replacevar--description",disabled:!o})]})]})},Il=()=>{const e=lo("selectPreference",[],"homepagePageEditUrl"),t=lo("selectPreference",[],"homepagePostsEditUrl"),s=(0,i.useMemo)((()=>pl((0,Et.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ +(0,Et.__)("You can determine the title and description for the homepage by %1$sediting the homepage itself%2$s.","wordpress-seo"),"<a>","</a>"),e,"link-homepage-page-edit"))),r=(0,i.useMemo)((()=>pl((0,Et.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ +(0,Et.__)("You can determine the title and description for the blog page by %1$sediting the blog page itself%2$s.","wordpress-seo"),"<a>","</a>"),t,"link-homepage-posts-page-edit")));return(0,ur.jsx)("div",{className:"yst-max-w-screen-sm",children:(0,ur.jsxs)(a.Alert,{children:[(0,ur.jsx)("p",{children:s}),t&&(0,ur.jsx)("p",{className:"yst-pt-2",children:r})]})})},Dl=()=>{const e=lo("selectPreference",[],"homepageIsLatestPosts");return(0,ur.jsx)(ui,{title:(0,Et.__)("Homepage","wordpress-seo"),description:(0,Et.__)("Determine how your homepage should look in the search results and on social media. This is what people probably will see when they search for your brand name.","wordpress-seo"),children:(0,ur.jsx)(ho,{children:(0,ur.jsxs)("div",{className:"yst-max-w-5xl",children:[e&&(0,ur.jsx)(Ml,{}),!e&&(0,ur.jsx)(Il,{})]})})})},Bl=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))})),Ul=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"}))})),Vl=ml(yl),zl="llms.txt",ql=["about_us_page","contact_page","terms_page","privacy_policy_page","shop_page","other_included_pages"],Wl=()=>{const e=(0,i.useRef)(!1),t=lo("selectLlmsTxtOtherIncludedPagesLimit",[]),s=lo("selectLlmsTxtDisabledPageIndexables",[]),r=lo("selectLlmsTxtGenerationFailure",[]),o=lo("selectLlmsTxtGenerationFailureReason",[]),n=lo("selectLlmsTxtUrl",[]),l=lo("selectLink",[],"https://yoa.st/llmstxt-learn-more"),d=lo("selectLink",[],"https://yoa.st/llmstxt-best-practices"),{fetchIndexablePages:c}=io(),{values:u,initialValues:p}=q(),{"noindex-page":m}=u.wpseo_titles,{llms_txt_selection_mode:h,other_included_pages:f}=u.wpseo_llmstxt,{enable_llms_txt:_}=u.wpseo,{enable_llms_txt:y}=p.wpseo,w=(0,i.useMemo)((()=>Array.from(new Set(ql.map((e=>u.wpseo_llmstxt[e])).flat().filter((e=>0!==e))))),[u.wpseo_llmstxt]),g=(0,i.useMemo)((()=>s||m),[s,m]),b=(0,i.useMemo)((()=>!_||g),[_,g]),v=(0,i.useMemo)((()=>_&&!g&&"manual"===h),[_,g,h]),x=(0,i.useMemo)((()=>_&&(u.wpseo_llmstxt!==p.wpseo_llmstxt||y!==_)),[_,y,u.wpseo_llmstxt,p.wpseo_llmstxt]),j=(0,i.useMemo)((()=>cr((0,Et.sprintf)(/* translators: %1$s and %3$s are replaced by opening and closing <a> tags, %2$s is replaced by "llms.txt". */ +(0,Et.__)("Future-proof your website for visibility in AI tools like ChatGPT and Google Gemini. This helps them provide better, more accurate information about your site. %1$sLearn more about the %2$s file%3$s.","wordpress-seo"),"<a>",zl,"</a>"),{a:(0,ur.jsx)("a",{id:"llms-settings-info",href:l,target:"_blank",rel:"noopener noreferrer"})})),[l]),S=(0,i.useMemo)((()=>cr((0,Et.sprintf)(/* translators: %1$s and %2$s are replaced by opening and closing <a> tags, %3$s is replaced by "llms.txt".. */ +(0,Et.__)("Generate an automatic page selection based on %1$sYoast SEO’s best practices%2$s, or manually choose the pages to be included in your %3$s file.","wordpress-seo"),"<a>","</a>",zl),{a:(0,ur.jsx)("a",{id:"llms-best-practices",href:d,target:"_blank",rel:"noopener noreferrer"})})),[d]),k=(0,i.useMemo)((()=>cr((0,Et.sprintf)(/* translators: %1$s and %2$s are replaced by opening and closing <a> tags */ +(0,Et.__)("Pages are %1$sdisabled from being shown in the search results%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,ur.jsx)("a",{id:"llms-noindex-pages",href:"admin.php?page=wpseo_page_settings#/post-type/pages#input-wpseo_titles-noindex-page"})})),[]),E=(0,i.useCallback)((async e=>{var t;await e.push(0),null===(t=document.querySelector(`[data-id="input-wpseo_llmstxt-other_included_pages-${f.length}"]`))||void 0===t||t.click()}),[f]);(0,i.useEffect)((()=>{_&&"manual"===h&&!e.current&&(e.current=!0,c())}),[c,_,h]);const L=(0,i.useMemo)((()=>{var e;return!_&&"llm-txt"===(null===(e=sessionStorage)||void 0===e?void 0:e.getItem("yoast-highlight-setting"))}),[_]),[T,,,F,$]=(0,a.useToggleState)(!1);return(0,ur.jsx)(ui,{title:zl,description:j,children:(0,ur.jsx)(ho,{children:(0,ur.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,ur.jsxs)("fieldset",{className:"yst-min-width-0 yst-space-y-8",children:[r&&y&&_&&(0,ur.jsx)(Xn,{reason:o}),(0,ur.jsxs)("div",{className:"yst-relative yst-max-w-sm",children:[(0,ur.jsx)(Vl,{as:a.ToggleField,type:"checkbox",name:"wpseo.enable_llms_txt",id:"input-wpseo.enable_llms_txt",label:(0,Et.sprintf)( // translators: %1$s expands to "llms.txt". -(0,Et.__)("Enable %1$s file feature","wordpress-seo"),Jl),description:(0,Et.sprintf)( +(0,Et.__)("Enable %1$s file feature","wordpress-seo"),zl),description:(0,Et.sprintf)( // translators: %1$s expands to "llms.txt". -(0,Et.__)("Enabling this feature generates and updates an %1$s file weekly that lists a selection of your site's content.","wordpress-seo"),Jl),className:L?"yst-popover-backdrop-highlight-button":""}),L&&(0,mr.jsx)(_l,{})]})]}),!x&&(0,mr.jsxs)(i.Button,{as:"a",id:"link-llms",href:_?n:null,variant:"secondary",target:"_blank",rel:"noopener",disabled:!_,"aria-disabled":!_,className:"yst-self-start yst-mt-8",children:[(0,Et.sprintf)( +(0,Et.__)("Enabling this feature generates and updates an %1$s file weekly that lists a selection of your site's content.","wordpress-seo"),zl),className:L?"yst-popover-backdrop-highlight-button":""}),L&&(0,ur.jsx)(il,{})]})]}),!x&&(0,ur.jsxs)(a.Button,{as:"a",id:"link-llms",href:_?n:null,variant:"secondary",target:"_blank",rel:"noopener",disabled:!_,"aria-disabled":!_,className:"yst-self-start yst-mt-8",children:[(0,Et.sprintf)( // translators: %1$s expands to "llms.txt". -(0,Et.__)("View the %1$s file","wordpress-seo"),Jl),(0,mr.jsx)(ur,{className:"yst--me-1 yst-ms-1 yst-h-5 yst-w-5 yst-text-slate-400 rtl:yst-rotate-[270deg]"})]}),x&&(0,mr.jsxs)(i.Button,{id:"link-llms-unsaved-changes",variant:"secondary",className:"yst-self-start yst-mt-8",onClick:T,children:[(0,Et.sprintf)( +(0,Et.__)("View the %1$s file","wordpress-seo"),zl),(0,ur.jsx)(dr,{className:"yst--me-1 yst-ms-1 yst-h-5 yst-w-5 yst-text-slate-400 rtl:yst-rotate-[270deg]"})]}),x&&(0,ur.jsxs)(a.Button,{id:"link-llms-unsaved-changes",variant:"secondary",className:"yst-self-start yst-mt-8",onClick:F,children:[(0,Et.sprintf)( // translators: %1$s expands to "llms.txt". -(0,Et.__)("View the %1$s file","wordpress-seo"),Jl),(0,mr.jsx)(ur,{className:"yst--me-1 yst-ms-1 yst-h-5 yst-w-5 yst-text-slate-400 rtl:yst-rotate-[270deg]"})]}),(0,mr.jsx)(yl,{isOpen:F,onClose:$,title:(0,Et.__)("Unsaved changes","wordpress-seo"),description:(0,Et.sprintf)( +(0,Et.__)("View the %1$s file","wordpress-seo"),zl),(0,ur.jsx)(dr,{className:"yst--me-1 yst-ms-1 yst-h-5 yst-w-5 yst-text-slate-400 rtl:yst-rotate-[270deg]"})]}),(0,ur.jsx)(al,{isOpen:T,onClose:$,title:(0,Et.__)("Unsaved changes","wordpress-seo"),description:(0,Et.sprintf)( // translators: %1$s expands to "llms.txt". -(0,Et.__)("You have unsaved changes. Please save to view the updated %1$s file.","wordpress-seo"),Jl),onDiscard:$,dismissLabel:(0,Et.__)("Got it","wordpress-seo")}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.sprintf)( +(0,Et.__)("You have unsaved changes. Please save to view the updated %1$s file.","wordpress-seo"),zl),onDiscard:$,dismissLabel:(0,Et.__)("Got it","wordpress-seo")}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.sprintf)( // translators: %1$s expands to "llms.txt". -(0,Et.__)("%1$s page selection","wordpress-seo"),Jl),description:S,children:[g&&(0,mr.jsx)(i.Alert,{id:"llms-txt-disabled-pages-alert",variant:"info",className:"yst-max-w-md",children:k}),(0,mr.jsxs)(i.RadioGroup,{disabled:b,children:[(0,mr.jsx)(te,{as:i.Radio,type:"radio",name:"wpseo_llmstxt.llms_txt_selection_mode",id:"input-wpseo_llmstxt-llms_txt_selection_mode-auto",label:(0,Et.__)("Automatic page selection","wordpress-seo"),value:"auto",disabled:b}),(0,mr.jsx)(te,{as:i.Radio,type:"radio",name:"wpseo_llmstxt.llms_txt_selection_mode",id:"input-wpseo_llmstxt-llms_txt_selection_mode-manual",label:(0,Et.__)("Manual page selection","wordpress-seo"),value:"manual",disabled:b})]})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(xo,{title:(0,Et.__)("Manual page selection","wordpress-seo"),description:(0,Et.sprintf)( +(0,Et.__)("%1$s page selection","wordpress-seo"),zl),description:S,children:[g&&(0,ur.jsx)(a.Alert,{id:"llms-txt-disabled-pages-alert",variant:"info",className:"yst-max-w-md",children:k}),(0,ur.jsxs)(a.RadioGroup,{disabled:b,children:[(0,ur.jsx)(te,{as:a.Radio,type:"radio",name:"wpseo_llmstxt.llms_txt_selection_mode",id:"input-wpseo_llmstxt-llms_txt_selection_mode-auto",label:(0,Et.__)("Automatic page selection","wordpress-seo"),value:"auto",disabled:b}),(0,ur.jsx)(te,{as:a.Radio,type:"radio",name:"wpseo_llmstxt.llms_txt_selection_mode",id:"input-wpseo_llmstxt-llms_txt_selection_mode-manual",label:(0,Et.__)("Manual page selection","wordpress-seo"),value:"manual",disabled:b})]})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(uo,{title:(0,Et.__)("Manual page selection","wordpress-seo"),description:(0,Et.sprintf)( // translators: %1$s expands to "llms.txt". -(0,Et.__)("Select the pages that you want to include in the %1$s file","wordpress-seo"),Jl),children:(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)(Yo,{name:"wpseo_llmstxt.about_us_page",id:"input-wpseo_llmstxt-about_us_page",label:(0,Et.__)("About us page","wordpress-seo"),className:"yst-max-w-sm",disabled:!v,selectedIds:w}),(0,mr.jsx)(Yo,{name:"wpseo_llmstxt.contact_page",id:"input-wpseo_llmstxt-contact_page",label:(0,Et.__)("Contact page","wordpress-seo"),className:"yst-max-w-sm",disabled:!v,selectedIds:w}),(0,mr.jsx)(Yo,{name:"wpseo_llmstxt.terms_page",id:"input-wpseo_llmstxt-terms_page",label:(0,Et.__)("Terms page","wordpress-seo"),className:"yst-max-w-sm",disabled:!v,selectedIds:w}),(0,mr.jsx)(Yo,{name:"wpseo_llmstxt.privacy_policy_page",id:"input-wpseo_llmstxt-privacy_policy_page",label:(0,Et.__)("Privacy policy","wordpress-seo"),className:"yst-max-w-sm",disabled:!v,selectedIds:w}),(0,mr.jsx)(Yo,{name:"wpseo_llmstxt.shop_page",id:"input-wpseo_llmstxt-shop_page",label:(0,Et.__)("Shop page","wordpress-seo"),className:"yst-max-w-sm",disabled:!v,selectedIds:w}),(0,mr.jsx)("hr",{className:"yst-my-8 yst-max-w-md"}),(0,mr.jsx)(ne,{name:"wpseo_llmstxt.other_included_pages",children:e=>(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("div",{className:"yst-space-y-4",children:[f.map(((t,s)=>(0,mr.jsxs)("div",{className:"yst-w-full yst-flex yst-items-start yst-gap-2 yst-mt-2",children:[(0,mr.jsx)(Yo,{name:`wpseo_llmstxt.other_included_pages.${s}`,id:`input-wpseo_llmstxt-other_included_pages-${s}`,label:0===s?(0,Et.__)("Content pages","wordpress-seo"):"",className:"yst-max-w-sm yst-flex-grow",disabled:!v,selectedIds:w}),(0,mr.jsx)(i.Button,{variant:"secondary",onClick:e.remove.bind(null,s),className:lr()("yst-p-2.5",0===s&&"yst-mt-7"),"aria-label":(0,Et.sprintf)((0,Et.__)("Remove page %1$s","wordpress-seo"),s+1),disabled:!v,children:(0,mr.jsx)(Yl,{className:"yst-h-5 yst-w-5"})})]},`wpseo_llmstxt.other_included_pages.${s}`))),f.length<t&&(0,mr.jsxs)(i.Button,{id:"button-add-page",variant:"secondary",onClick:()=>E(e),disabled:!v,children:[(0,mr.jsx)(Zl,{className:"yst--ms-1 yst-me-1 yst-h-5 yst-w-5 yst-text-slate-400"}),(0,Et.__)("Add page","wordpress-seo")]})]})})})]})})]})})})},ed=()=>{const{name:e,label:t,hasSchemaArticleType:s}=bo("selectPostType",[],"attachment"),r=bo("selectPreference",[],"userLocale"),o=(0,a.useMemo)((()=>Fi(t,r)),[t,r]),n=bo("selectReplacementVariablesFor",[e],e,"custom_post_type"),l=bo("selectRecommendedReplacementVariablesFor",[e],e,"custom_post_type"),d=bo("selectArticleTypeValuesFor",[e],e),c=bo("selectPageTypeValuesFor",[e],e),u=bo("selectLink",[],"https://yoa.st/media-pages-thin-content"),p=bo("selectLink",[],"https://yoa.st/show-x"),{values:m}=q(),{"disable-attachment":h,"noindex-attachment":f}=m.wpseo_titles,_=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Select the pages that you want to include in the %1$s file","wordpress-seo"),zl),children:(0,ur.jsxs)(ur.Fragment,{children:[(0,ur.jsx)(Mo,{name:"wpseo_llmstxt.about_us_page",id:"input-wpseo_llmstxt-about_us_page",label:(0,Et.__)("About us page","wordpress-seo"),className:"yst-max-w-sm",disabled:!v,selectedIds:w}),(0,ur.jsx)(Mo,{name:"wpseo_llmstxt.contact_page",id:"input-wpseo_llmstxt-contact_page",label:(0,Et.__)("Contact page","wordpress-seo"),className:"yst-max-w-sm",disabled:!v,selectedIds:w}),(0,ur.jsx)(Mo,{name:"wpseo_llmstxt.terms_page",id:"input-wpseo_llmstxt-terms_page",label:(0,Et.__)("Terms page","wordpress-seo"),className:"yst-max-w-sm",disabled:!v,selectedIds:w}),(0,ur.jsx)(Mo,{name:"wpseo_llmstxt.privacy_policy_page",id:"input-wpseo_llmstxt-privacy_policy_page",label:(0,Et.__)("Privacy policy","wordpress-seo"),className:"yst-max-w-sm",disabled:!v,selectedIds:w}),(0,ur.jsx)(Mo,{name:"wpseo_llmstxt.shop_page",id:"input-wpseo_llmstxt-shop_page",label:(0,Et.__)("Shop page","wordpress-seo"),className:"yst-max-w-sm",disabled:!v,selectedIds:w}),(0,ur.jsx)("hr",{className:"yst-my-8 yst-max-w-md"}),(0,ur.jsx)(ne,{name:"wpseo_llmstxt.other_included_pages",children:e=>(0,ur.jsx)(ur.Fragment,{children:(0,ur.jsxs)("div",{className:"yst-space-y-4",children:[f.map(((t,s)=>(0,ur.jsxs)("div",{className:"yst-w-full yst-flex yst-items-start yst-gap-2 yst-mt-2",children:[(0,ur.jsx)(Mo,{name:`wpseo_llmstxt.other_included_pages.${s}`,id:`input-wpseo_llmstxt-other_included_pages-${s}`,label:0===s?(0,Et.__)("Content pages","wordpress-seo"):"",className:"yst-max-w-sm yst-flex-grow",disabled:!v,selectedIds:w}),(0,ur.jsx)(a.Button,{variant:"secondary",onClick:e.remove.bind(null,s),className:ar()("yst-p-2.5",0===s&&"yst-mt-7"),"aria-label":(0,Et.sprintf)((0,Et.__)("Remove page %1$s","wordpress-seo"),s+1),disabled:!v,children:(0,ur.jsx)(Bl,{className:"yst-h-5 yst-w-5"})})]},`wpseo_llmstxt.other_included_pages.${s}`))),f.length<t&&(0,ur.jsxs)(a.Button,{id:"button-add-page",variant:"secondary",onClick:()=>E(e),disabled:!v,children:[(0,ur.jsx)(Ul,{className:"yst--ms-1 yst-me-1 yst-h-5 yst-w-5 yst-text-slate-400"}),(0,Et.__)("Add page","wordpress-seo")]})]})})})]})})]})})})},Hl=()=>{const{name:e,label:t,hasSchemaArticleType:s}=lo("selectPostType",[],"attachment"),r=lo("selectPreference",[],"userLocale"),o=(0,i.useMemo)((()=>ya(t,r)),[t,r]),n=lo("selectReplacementVariablesFor",[e],e,"custom_post_type"),l=lo("selectRecommendedReplacementVariablesFor",[e],e,"custom_post_type"),d=lo("selectArticleTypeValuesFor",[e],e),c=lo("selectPageTypeValuesFor",[e],e),u=lo("selectLink",[],"https://yoa.st/media-pages-thin-content"),p=lo("selectLink",[],"https://yoa.st/show-x"),{values:m}=q(),{"disable-attachment":h,"noindex-attachment":f}=m.wpseo_titles,_=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s and %2$s are replaced by opening and closing <a> tags. * %3$s expands to "media". * %4$s expand to "Yoast SEO". * %5$s expand to "WordPress". */ -(0,Et.__)("When you upload media (e.g. an image or video), %5$s automatically creates a %3$s page (attachment URL) for it. These pages are quite empty and could cause %1$sthin content problems and lead to excess pages on your site%2$s. Therefore, %4$s disables them by default (and redirects the attachment URL to the media itself).","wordpress-seo"),"<a>","</a>",o,"Yoast SEO","WordPress"),{a:(0,mr.jsx)("a",{href:u,target:"_blank",rel:"noopener noreferrer"})})));return(0,mr.jsx)(xa,{title:(0,Et.sprintf)( +(0,Et.__)("When you upload media (e.g. an image or video), %5$s automatically creates a %3$s page (attachment URL) for it. These pages are quite empty and could cause %1$sthin content problems and lead to excess pages on your site%2$s. Therefore, %4$s disables them by default (and redirects the attachment URL to the media itself).","wordpress-seo"),"<a>","</a>",o,"Yoast SEO","WordPress"),{a:(0,ur.jsx)("a",{href:u,target:"_blank",rel:"noopener noreferrer"})})));return(0,ur.jsx)(ui,{title:(0,Et.sprintf)( // translators: %1$s expands to "Media". -(0,Et.__)("%1$s pages","wordpress-seo"),t),description:_,children:(0,mr.jsx)(ko,{children:(0,mr.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,mr.jsx)("fieldset",{className:"yst-min-width-0 yst-space-y-8",children:(0,mr.jsx)(Lo,{name:`wpseo_titles.disable-${e}`,id:`input-wpseo_titles-disable-${e}`,label:(0,Et.sprintf)( +(0,Et.__)("%1$s pages","wordpress-seo"),t),description:_,children:(0,ur.jsx)(ho,{children:(0,ur.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,ur.jsx)("fieldset",{className:"yst-min-width-0 yst-space-y-8",children:(0,ur.jsx)(_o,{name:`wpseo_titles.disable-${e}`,id:`input-wpseo_titles-disable-${e}`,label:(0,Et.sprintf)( // translators: %1$s expands to "media". (0,Et.__)("Enable %1$s pages","wordpress-seo"),o),description:(0,Et.sprintf)( // translators: %1$s expands to "media". -(0,Et.__)("We recommend keeping %1$s pages disabled. This will cause all attachment URLs to be redirected to the media itself.","wordpress-seo"),o),className:"yst-max-w-sm"})}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.__)("Search appearance","wordpress-seo"),description:(0,Et.sprintf)( +(0,Et.__)("We recommend keeping %1$s pages disabled. This will cause all attachment URLs to be redirected to the media itself.","wordpress-seo"),o),className:"yst-max-w-sm"})}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.__)("Search appearance","wordpress-seo"),description:(0,Et.sprintf)( // translators: %1$s expands to "media". %3$s expands to "Yoast SEO". -(0,Et.__)("Determine how your %1$s pages should look in search engines. You can always customize the settings for individual %1$s pages in the %2$s metabox.","wordpress-seo"),o,"Yoast SEO"),children:[(0,mr.jsx)(Lo,{name:`wpseo_titles.noindex-${e}`,id:`input-wpseo_titles-noindex-${e}`,label:(0,Et.sprintf)( +(0,Et.__)("Determine how your %1$s pages should look in search engines. You can always customize the settings for individual %1$s pages in the %2$s metabox.","wordpress-seo"),o,"Yoast SEO"),children:[(0,ur.jsx)(_o,{name:`wpseo_titles.noindex-${e}`,id:`input-wpseo_titles-noindex-${e}`,label:(0,Et.sprintf)( // translators: %1$s expands to "media". -(0,Et.__)("Show %1$s pages in search results","wordpress-seo"),o),description:(0,mr.jsxs)(mr.Fragment,{children:[(0,Et.sprintf)( +(0,Et.__)("Show %1$s pages in search results","wordpress-seo"),o),description:(0,ur.jsxs)(ur.Fragment,{children:[(0,Et.sprintf)( // translators: %1$s expands to "media". -(0,Et.__)("Disabling this means that %1$s pages created by WordPress will not be indexed by search engines and will be excluded from XML sitemaps.","wordpress-seo"),o),(0,mr.jsx)("br",{}),(0,mr.jsx)(i.Link,{href:p,target:"_blank",rel:"noopener",children:(0,Et.__)("Read more about the search results settings","wordpress-seo")}),"."]}),disabled:h,checked:!h&&!f,className:"yst-max-w-sm"}),(0,mr.jsx)(Oo,{type:"title",name:`wpseo_titles.title-${e}`,fieldId:`input-wpseo_titles-title-${e}`,label:(0,Et.__)("SEO title","wordpress-seo"),replacementVariables:n,recommendedReplacementVariables:l,disabled:h}),(0,mr.jsx)(Oo,{type:"description",name:`wpseo_titles.metadesc-${e}`,fieldId:`input-wpseo_titles-metadesc-${e}`,label:(0,Et.__)("Meta description","wordpress-seo"),replacementVariables:n,recommendedReplacementVariables:l,disabled:h,className:"yst-replacevar--description"})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.__)("Schema","wordpress-seo"),description:(0,Et.sprintf)( +(0,Et.__)("Disabling this means that %1$s pages created by WordPress will not be indexed by search engines and will be excluded from XML sitemaps.","wordpress-seo"),o),(0,ur.jsx)("br",{}),(0,ur.jsx)(a.Link,{href:p,target:"_blank",rel:"noopener",children:(0,Et.__)("Read more about the search results settings","wordpress-seo")}),"."]}),disabled:h,checked:!h&&!f,className:"yst-max-w-sm"}),(0,ur.jsx)(jo,{type:"title",name:`wpseo_titles.title-${e}`,fieldId:`input-wpseo_titles-title-${e}`,label:(0,Et.__)("SEO title","wordpress-seo"),replacementVariables:n,recommendedReplacementVariables:l,disabled:h}),(0,ur.jsx)(jo,{type:"description",name:`wpseo_titles.metadesc-${e}`,fieldId:`input-wpseo_titles-metadesc-${e}`,label:(0,Et.__)("Meta description","wordpress-seo"),replacementVariables:n,recommendedReplacementVariables:l,disabled:h,className:"yst-replacevar--description"})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.__)("Schema","wordpress-seo"),description:(0,Et.sprintf)( // translators: %1$s expands to "media". %3$s expands to "Yoast SEO". -(0,Et.__)("Determine how your %1$s pages should be described by default in your site's Schema.org markup. You can always customize the settings for individual %1$s pages in the %2$s metabox.","wordpress-seo"),o,"Yoast SEO"),children:[(0,mr.jsx)(kl,{as:i.SelectField,type:"select",name:`wpseo_titles.schema-page-type-${e}`,id:`input-wpseo_titles-schema-page-type-${e}`,label:(0,Et.__)("Page type","wordpress-seo"),options:c,disabled:h,className:"yst-max-w-sm"}),s&&(0,mr.jsxs)("div",{children:[(0,mr.jsx)(kl,{as:i.SelectField,type:"select",name:`wpseo_titles.schema-article-type-${e}`,id:`input-wpseo_titles-schema-article-type-${e}`,label:(0,Et.__)("Article type","wordpress-seo"),options:d,disabled:h,className:"yst-max-w-sm"}),(0,mr.jsx)(ta,{name:e,disabled:h})]})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(xo,{title:(0,Et.__)("Additional settings","wordpress-seo"),children:(0,mr.jsx)(kl,{as:i.ToggleField,type:"checkbox",name:`wpseo_titles.display-metabox-pt-${e}`,id:`input-wpseo_titles-display-metabox-pt-${e}`,label:(0,Et.__)("Enable SEO controls and assessments","wordpress-seo"),description:(0,Et.__)("Show or hide our tools and controls in the attachment editor.","wordpress-seo"),disabled:h,className:"yst-max-w-sm"})})]})})})},td=({children:e})=>(0,mr.jsx)(i.Table.Cell,{className:"yst-font-medium",children:(0,mr.jsx)("span",{className:"yst-text-slate-900",children:e})});td.propTypes={children:cr().node.isRequired};const sd=()=>(0,mr.jsx)(xa,{title:(0,Et.__)("RSS","wordpress-seo"),children:(0,mr.jsx)(ko,{children:(0,mr.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,mr.jsxs)(xo,{title:(0,Et.__)("RSS feed","wordpress-seo"),description:(0,Et.__)("Automatically add content to your RSS. This enables you to add links back to your blog and your blog posts, helping search engines identify you as the original source of the content.","wordpress-seo"),children:[(0,mr.jsx)(te,{as:i.TextareaField,type:"textarea",rows:4,name:"wpseo_titles.rssbefore",id:"input-wpseo_titles-rssbefore",label:(0,Et.__)("Content to put before each post in the feed","wordpress-seo")}),(0,mr.jsx)(te,{as:i.TextareaField,type:"textarea",rows:4,name:"wpseo_titles.rssafter",id:"input-wpseo_titles-rssafter",label:(0,Et.__)("Content to put after each post in the feed","wordpress-seo")})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(xo,{as:"section",title:(0,Et.__)("Available variables","wordpress-seo"),description:(0,Et.__)("You can use the following variables within the content, they will be replaced by the value on the right.","wordpress-seo"),children:(0,mr.jsxs)(i.Table,{children:[(0,mr.jsx)(i.Table.Head,{children:(0,mr.jsxs)(i.Table.Row,{children:[(0,mr.jsx)(i.Table.Header,{scope:"col",children:(0,Et.__)("Variable","wordpress-seo")}),(0,mr.jsx)(i.Table.Header,{scope:"col",children:(0,Et.__)("Description","wordpress-seo")})]})}),(0,mr.jsxs)(i.Table.Body,{children:[(0,mr.jsxs)(i.Table.Row,{children:[(0,mr.jsx)(td,{children:"%%AUTHORLINK%%"}),(0,mr.jsx)(i.Table.Cell,{children:(0,Et.__)("A link to the archive for the post author, with the author's name as anchor text.","wordpress-seo")})]}),(0,mr.jsxs)(i.Table.Row,{children:[(0,mr.jsx)(td,{children:"%%POSTLINK%%"}),(0,mr.jsx)(i.Table.Cell,{children:(0,Et.__)("A link to the post, with the title as anchor text.","wordpress-seo")})]}),(0,mr.jsxs)(i.Table.Row,{children:[(0,mr.jsx)(td,{children:"%%BLOGLINK%%"}),(0,mr.jsx)(i.Table.Cell,{children:(0,Et.__)("A link to your site, with your site's name as anchor text.","wordpress-seo")})]}),(0,mr.jsxs)(i.Table.Row,{children:[(0,mr.jsx)(td,{children:"%%BLOGDESCLINK%%"}),(0,mr.jsx)(i.Table.Cell,{children:(0,Et.__)("A link to your site, with your site's name and description as anchor text.","wordpress-seo")})]})]})]})})]})})}),rd=vl(i.ToggleField),od=jl(Wo),ad=()=>{const e=(0,a.useMemo)((()=>(0,le.get)(window,"wpseoScriptData.separators",{})),[]),t=bo("selectPreference",[],"generalSettingsUrl"),s=bo("selectPreference",[],"canManageOptions",!1),r=bo("selectPreference",[],"showForceRewriteTitlesSetting",!1),o=bo("selectLink",[],"https://yoa.st/site-basics-replacement-variables"),n=bo("selectLink",[],"https://yoa.st/usage-tracking-2"),l=bo("selectLink",[],"https://yoa.st/site-policies-learn-more"),d=bo("selectPreference",[],"siteTitle",""),c=bo("selectLink",[],"https://yoa.st/site-policies-upsell"),u=bo("selectPreference",[],"isPremium"),p=bo("selectUpsellSettingsAsProps"),{fetchPages:m}=yo(),h=(0,a.useMemo)((()=>pr((0,Et.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ -(0,Et.__)("Usage tracking allows us to track some data about your site to improve our plugin. %1$sLearn more about which data we track and why%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,mr.jsx)("a",{id:"link-usage-tracking",href:n,target:"_blank",rel:"noopener"})})),[]),f=(0,a.useMemo)((()=>pr((0,Et.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ -(0,Et.__)("Select the pages on your website which contain information about your organizational and publishing policies. Some of these might not apply to your site, and you can select the same page for multiple policies. %1$sLearn more about why setting your site policies is important%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,mr.jsx)("a",{id:"link-site-policies",href:l,target:"_blank",rel:"noopener"})})),[l]),_=(0,a.useMemo)((()=>pr((0,Et.sprintf)(/* translators: %1$s and %2$s expand to an opening and closing emphasis tag. %3$s and %4$s expand to an opening and closing anchor tag. */ -(0,Et.__)("Set the basic info for your website. You can use %1$stagline%2$s and %1$sseparator%2$s as %3$sreplacement variables%4$s when configuring the search appearance of your content.","wordpress-seo"),"<em>","</em>","<a>","</a>"),{em:(0,mr.jsx)("em",{}),a:(0,mr.jsx)("a",{id:"site-basics-replacement-variables",href:o,target:"_blank",rel:"noopener"})})),[]),y=(0,a.useMemo)((()=>pr((0,Et.sprintf)(/* translators: %1$s expands to an opening emphasis tag. %2$s expands to a closing emphasis tag. */ -(0,Et.__)("We're sorry, you're not allowed to edit the %1$swebsite name%2$s and %1$stagline%2$s.","wordpress-seo"),"<em>","</em>"),{em:(0,mr.jsx)("em",{})})),[]),w=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Determine how your %1$s pages should be described by default in your site's Schema.org markup. You can always customize the settings for individual %1$s pages in the %2$s metabox.","wordpress-seo"),o,"Yoast SEO"),children:[(0,ur.jsx)(yl,{as:a.SelectField,type:"select",name:`wpseo_titles.schema-page-type-${e}`,id:`input-wpseo_titles-schema-page-type-${e}`,label:(0,Et.__)("Page type","wordpress-seo"),options:c,disabled:h,className:"yst-max-w-sm"}),s&&(0,ur.jsxs)("div",{children:[(0,ur.jsx)(yl,{as:a.SelectField,type:"select",name:`wpseo_titles.schema-article-type-${e}`,id:`input-wpseo_titles-schema-article-type-${e}`,label:(0,Et.__)("Article type","wordpress-seo"),options:d,disabled:h,className:"yst-max-w-sm"}),(0,ur.jsx)(qo,{name:e,disabled:h})]})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(uo,{title:(0,Et.__)("Additional settings","wordpress-seo"),children:(0,ur.jsx)(yl,{as:a.ToggleField,type:"checkbox",name:`wpseo_titles.display-metabox-pt-${e}`,id:`input-wpseo_titles-display-metabox-pt-${e}`,label:(0,Et.__)("Enable SEO controls and assessments","wordpress-seo"),description:(0,Et.__)("Show or hide our tools and controls in the attachment editor.","wordpress-seo"),disabled:h,className:"yst-max-w-sm"})})]})})})},Gl=({children:e})=>(0,ur.jsx)(a.Table.Cell,{className:"yst-font-medium",children:(0,ur.jsx)("span",{className:"yst-text-slate-900",children:e})});Gl.propTypes={children:lr().node.isRequired};const Yl=()=>(0,ur.jsx)(ui,{title:(0,Et.__)("RSS","wordpress-seo"),children:(0,ur.jsx)(ho,{children:(0,ur.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,ur.jsxs)(uo,{title:(0,Et.__)("RSS feed","wordpress-seo"),description:(0,Et.__)("Automatically add content to your RSS. This enables you to add links back to your blog and your blog posts, helping search engines identify you as the original source of the content.","wordpress-seo"),children:[(0,ur.jsx)(te,{as:a.TextareaField,type:"textarea",rows:4,name:"wpseo_titles.rssbefore",id:"input-wpseo_titles-rssbefore",label:(0,Et.__)("Content to put before each post in the feed","wordpress-seo")}),(0,ur.jsx)(te,{as:a.TextareaField,type:"textarea",rows:4,name:"wpseo_titles.rssafter",id:"input-wpseo_titles-rssafter",label:(0,Et.__)("Content to put after each post in the feed","wordpress-seo")})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(uo,{as:"section",title:(0,Et.__)("Available variables","wordpress-seo"),description:(0,Et.__)("You can use the following variables within the content, they will be replaced by the value on the right.","wordpress-seo"),children:(0,ur.jsxs)(a.Table,{children:[(0,ur.jsx)(a.Table.Head,{children:(0,ur.jsxs)(a.Table.Row,{children:[(0,ur.jsx)(a.Table.Header,{scope:"col",children:(0,Et.__)("Variable","wordpress-seo")}),(0,ur.jsx)(a.Table.Header,{scope:"col",children:(0,Et.__)("Description","wordpress-seo")})]})}),(0,ur.jsxs)(a.Table.Body,{children:[(0,ur.jsxs)(a.Table.Row,{children:[(0,ur.jsx)(Gl,{children:"%%AUTHORLINK%%"}),(0,ur.jsx)(a.Table.Cell,{children:(0,Et.__)("A link to the archive for the post author, with the author's name as anchor text.","wordpress-seo")})]}),(0,ur.jsxs)(a.Table.Row,{children:[(0,ur.jsx)(Gl,{children:"%%POSTLINK%%"}),(0,ur.jsx)(a.Table.Cell,{children:(0,Et.__)("A link to the post, with the title as anchor text.","wordpress-seo")})]}),(0,ur.jsxs)(a.Table.Row,{children:[(0,ur.jsx)(Gl,{children:"%%BLOGLINK%%"}),(0,ur.jsx)(a.Table.Cell,{children:(0,Et.__)("A link to your site, with your site's name as anchor text.","wordpress-seo")})]}),(0,ur.jsxs)(a.Table.Row,{children:[(0,ur.jsx)(Gl,{children:"%%BLOGDESCLINK%%"}),(0,ur.jsx)(a.Table.Cell,{children:(0,Et.__)("A link to your site, with your site's name and description as anchor text.","wordpress-seo")})]})]})]})})]})})}),Zl=ml(a.ToggleField),Kl=fl(Oo),Jl=()=>{const e=(0,i.useMemo)((()=>(0,le.get)(window,"wpseoScriptData.separators",{})),[]),t=lo("selectPreference",[],"generalSettingsUrl"),s=lo("selectPreference",[],"canManageOptions",!1),r=lo("selectPreference",[],"showForceRewriteTitlesSetting",!1),o=lo("selectLink",[],"https://yoa.st/site-basics-replacement-variables"),n=lo("selectLink",[],"https://yoa.st/usage-tracking-2"),l=lo("selectLink",[],"https://yoa.st/site-policies-learn-more"),d=lo("selectPreference",[],"siteTitle",""),c=lo("selectLink",[],"https://yoa.st/site-policies-upsell"),u=lo("selectPreference",[],"isPremium"),p=lo("selectUpsellSettingsAsProps"),{fetchPages:m}=io(),h=(0,i.useMemo)((()=>cr((0,Et.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ +(0,Et.__)("Usage tracking allows us to track some data about your site to improve our plugin. %1$sLearn more about which data we track and why%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,ur.jsx)("a",{id:"link-usage-tracking",href:n,target:"_blank",rel:"noopener"})})),[]),f=(0,i.useMemo)((()=>cr((0,Et.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ +(0,Et.__)("Select the pages on your website which contain information about your organizational and publishing policies. Some of these might not apply to your site, and you can select the same page for multiple policies. %1$sLearn more about why setting your site policies is important%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,ur.jsx)("a",{id:"link-site-policies",href:l,target:"_blank",rel:"noopener"})})),[l]),_=(0,i.useMemo)((()=>cr((0,Et.sprintf)(/* translators: %1$s and %2$s expand to an opening and closing emphasis tag. %3$s and %4$s expand to an opening and closing anchor tag. */ +(0,Et.__)("Set the basic info for your website. You can use %1$stagline%2$s and %1$sseparator%2$s as %3$sreplacement variables%4$s when configuring the search appearance of your content.","wordpress-seo"),"<em>","</em>","<a>","</a>"),{em:(0,ur.jsx)("em",{}),a:(0,ur.jsx)("a",{id:"site-basics-replacement-variables",href:o,target:"_blank",rel:"noopener"})})),[]),y=(0,i.useMemo)((()=>cr((0,Et.sprintf)(/* translators: %1$s expands to an opening emphasis tag. %2$s expands to a closing emphasis tag. */ +(0,Et.__)("We're sorry, you're not allowed to edit the %1$swebsite name%2$s and %1$stagline%2$s.","wordpress-seo"),"<em>","</em>"),{em:(0,ur.jsx)("em",{})})),[]),w=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to an opening strong tag. * %2$s expands to a closing strong tag. * %3$s expands to the recommended image size. */ -(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","1200x675px"),{strong:(0,mr.jsx)("strong",{className:"yst-font-semibold"})})),[]),g=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","1200x675px"),{strong:(0,ur.jsx)("strong",{className:"yst-font-semibold"})})),[]),g=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to an opening anchor tag. * %2$s expands to a closing anchor tag. */ -(0,Et.__)("This field updates the %1$stagline in your WordPress settings%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,mr.jsx)("a",{href:`${t}#blogdescription`,target:"_blank",rel:"noopener noreferrer"})})),[]),b=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("This field updates the %1$stagline in your WordPress settings%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,ur.jsx)("a",{href:`${t}#blogdescription`,target:"_blank",rel:"noopener noreferrer"})})),[]),b=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to an opening italics tag. * %2$s expands to a closing italics tag. */ -(0,Et.__)("Select a page which describes the editorial principles of your organization. %1$sWhat%2$s do you write about, %1$swho%2$s do you write for, and %1$swhy%2$s?","wordpress-seo"),"<i>","</i>"),{i:(0,mr.jsx)("i",{})})),[]),v=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Select a page which describes the editorial principles of your organization. %1$sWhat%2$s do you write about, %1$swho%2$s do you write for, and %1$swhy%2$s?","wordpress-seo"),"<i>","</i>"),{i:(0,ur.jsx)("i",{})})),[]),v=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to an opening italics tag. * %2$s expands to a closing italics tag. */ -(0,Et.__)("Select a page which describes the ownership structure of your organization. It should include information about %1$sfunding%2$s and %1$sgrants%2$s.","wordpress-seo"),"<i>","</i>"),{i:(0,mr.jsx)("i",{})})),[]),x=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Select a page which describes the ownership structure of your organization. It should include information about %1$sfunding%2$s and %1$sgrants%2$s.","wordpress-seo"),"<i>","</i>"),{i:(0,ur.jsx)("i",{})})),[]),x=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to an opening italics tag. * %2$s expands to a closing italics tag. */ -(0,Et.__)("Select a page which describes how your organization collects and responds to %1$sfeedback%2$s, engages with the %1$spublic%2$s, and prioritizes %1$stransparency%2$s.","wordpress-seo"),"<i>","</i>"),{i:(0,mr.jsx)("i",{})})),[]),j=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Select a page which describes how your organization collects and responds to %1$sfeedback%2$s, engages with the %1$spublic%2$s, and prioritizes %1$stransparency%2$s.","wordpress-seo"),"<i>","</i>"),{i:(0,ur.jsx)("i",{})})),[]),j=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to an opening italics tag. * %2$s expands to a closing italics tag. */ -(0,Et.__)("Select a page which outlines your procedure for addressing %1$serrors%2$s (e.g., publishing retractions or corrections).","wordpress-seo"),"<i>","</i>"),{i:(0,mr.jsx)("i",{})})),[]),S=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Select a page which outlines your procedure for addressing %1$serrors%2$s (e.g., publishing retractions or corrections).","wordpress-seo"),"<i>","</i>"),{i:(0,ur.jsx)("i",{})})),[]),S=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to an opening italics tag. * %2$s expands to a closing italics tag. */ -(0,Et.__)("Select a page which describes the personal, organizational, and corporate %1$sstandards%2$s of %1$sbehavior%2$s expected by your organization.","wordpress-seo"),"<i>","</i>"),{i:(0,mr.jsx)("i",{})})),[]),k=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Select a page which describes the personal, organizational, and corporate %1$sstandards%2$s of %1$sbehavior%2$s expected by your organization.","wordpress-seo"),"<i>","</i>"),{i:(0,ur.jsx)("i",{})})),[]),k=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to an opening italics tag. * %2$s expands to a closing italics tag. */ -(0,Et.__)("Select a page which provides information on your diversity policies for %1$seditorial%2$s content.","wordpress-seo"),"<i>","</i>"),{i:(0,mr.jsx)("i",{})})),[]),E=(0,a.useMemo)((()=>pr((0,Et.sprintf)( +(0,Et.__)("Select a page which provides information on your diversity policies for %1$seditorial%2$s content.","wordpress-seo"),"<i>","</i>"),{i:(0,ur.jsx)("i",{})})),[]),E=(0,i.useMemo)((()=>cr((0,Et.sprintf)( /** * translators: %1$s expands to an opening italics tag. * %2$s expands to a closing italics tag. */ -(0,Et.__)("Select a page which provides information about your diversity policies for %1$sstaffing%2$s, %1$shiring%2$s and %1$semployment%2$s.","wordpress-seo"),"<i>","</i>"),{i:(0,mr.jsx)("i",{})})),[]),{values:L}=q(),{opengraph:F}=L.wpseo_social;return(0,a.useEffect)((()=>{m()}),[m]),(0,mr.jsx)(xa,{title:(0,Et.__)("Site basics","wordpress-seo"),description:(0,Et.__)("Configure the basics for your website.","wordpress-seo"),children:(0,mr.jsx)(ko,{children:(0,mr.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,mr.jsxs)(xo,{title:(0,Et.__)("Site info","wordpress-seo"),description:_,children:[!s&&(0,mr.jsx)(i.Alert,{variant:"warning",id:"alert-site-defaults-variables",className:"yst-mb-8",children:y}),(0,mr.jsxs)("div",{className:"lg:yst-mt-0 lg:yst-col-span-2 yst-space-y-8",children:[(0,mr.jsx)(El,{as:i.TextField,name:"wpseo_titles.website_name",id:"input-wpseo_titles-website_name",label:(0,Et.__)("Website name","wordpress-seo"),placeholder:d}),(0,mr.jsx)(El,{as:i.TextField,name:"wpseo_titles.alternate_website_name",id:"input-wpseo_titles-alternate_website_name",label:(0,Et.__)("Alternate website name","wordpress-seo"),description:(0,Et.__)("Use the alternate website name for acronyms, or a shorter version of your website's name.","wordpress-seo")}),(0,mr.jsx)(te,{as:i.TextField,type:"text",name:"blogdescription",id:"input-blogdescription",label:(0,Et.__)("Tagline","wordpress-seo"),description:s&&g,readOnly:!s})]}),(0,mr.jsx)(i.RadioGroup,{label:(0,Et.__)("Title separator","wordpress-seo"),variant:"inline-block",children:(0,le.map)(e,(({label:e,aria_label:t},s)=>(0,mr.jsx)(te,{as:i.Radio,type:"radio",variant:"inline-block",name:"wpseo_titles.separator",id:`input-wpseo_titles-separator-${s}`,label:e,isLabelDangerousHtml:!0,"aria-label":t,value:s},s)))}),(0,mr.jsx)(ra,{isEnabled:F,text:/* translators: %1$s expands to an opening emphasis tag. %2$s expands to a closing emphasis tag. */ -(0,Et.__)("The %1$sSite image%2$s requires Open Graph data, which is currently disabled in the ‘Social sharing’ section in %3$sSite features%4$s.","wordpress-seo")}),(0,mr.jsx)(Ro,{id:"wpseo_social-og_default_image",label:(0,Et.__)("Site image","wordpress-seo"),description:(0,Et.__)("This image is used as a fallback for posts/pages that don't have any images set.","wordpress-seo"),previewLabel:w,mediaUrlName:"wpseo_social.og_default_image",mediaIdName:"wpseo_social.og_default_image_id",disabled:!F})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{title:(0,Et.__)("Site preferences","wordpress-seo"),children:[r&&(0,mr.jsx)(kl,{as:i.ToggleField,type:"checkbox",name:"wpseo_titles.forcerewritetitle",id:"input-wpseo_titles-forcerewritetitle",label:(0,Et.__)("Force rewrite titles","wordpress-seo"),description:(0,Et.sprintf)(/* translators: %1$s expands to "Yoast SEO" */ -(0,Et.__)("%1$s has auto-detected whether it needs to force rewrite the titles for your pages, if you think it's wrong and you know what you're doing, you can change the setting here.","wordpress-seo"),"Yoast SEO"),className:"yst-max-w-sm"}),(0,mr.jsx)(kl,{as:i.ToggleField,type:"checkbox",name:"wpseo.disableadvanced_meta",id:"input-wpseo-disableadvanced_meta",label:(0,Et.__)("Restrict advanced settings for authors","wordpress-seo"),description:(0,Et.sprintf)(/* translators: %1$s expands to "Yoast SEO" */ -(0,Et.__)("By default only editors and administrators can access the Advanced and Schema section of the %1$s sidebar or metabox. Disabling this allows access to all users.","wordpress-seo"),"Yoast SEO"),className:"yst-max-w-sm"}),(0,mr.jsx)(kl,{as:rd,type:"checkbox",name:"wpseo.tracking",id:"input-wpseo-tracking",label:(0,Et.__)("Usage tracking","wordpress-seo"),description:h,className:"yst-max-w-sm"})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(xo,{title:(0,mr.jsxs)(mr.Fragment,{children:[(0,Et.__)("Site policies","wordpress-seo"),u&&(0,mr.jsx)(i.Badge,{className:"yst-ms-1.5",size:"small",variant:"upsell",children:"Premium"})]}),description:f,children:(0,mr.jsxs)(i.FeatureUpsell,{shouldUpsell:!u,variant:"card",cardLink:c,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ -(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...p,children:[(0,mr.jsx)(od,{name:"wpseo_titles.publishing_principles_id",id:"input-wpseo_titles-publishing_principles_id",label:(0,Et.__)("Publishing principles","wordpress-seo"),className:"yst-max-w-sm",description:b,isDummy:!u}),(0,mr.jsx)(od,{name:"wpseo_titles.ownership_funding_info_id",id:"input-wpseo_titles-ownership_funding_info_id",label:(0,Et.__)("Ownership / Funding info","wordpress-seo"),className:"yst-max-w-sm",description:v,isDummy:!u}),(0,mr.jsx)(od,{name:"wpseo_titles.actionable_feedback_policy_id",id:"input-wpseo_titles-actionable_feedback_policy_id",label:(0,Et.__)("Actionable feedback policy","wordpress-seo"),className:"yst-max-w-sm",description:x,isDummy:!u}),(0,mr.jsx)(od,{name:"wpseo_titles.corrections_policy_id",id:"input-wpseo_titles-corrections_policy_id",label:(0,Et.__)("Corrections policy","wordpress-seo"),className:"yst-max-w-sm",description:j,isDummy:!u}),(0,mr.jsx)(od,{name:"wpseo_titles.ethics_policy_id",id:"input-wpseo_titles-ethics_policy_id",label:(0,Et.__)("Ethics policy","wordpress-seo"),className:"yst-max-w-sm",description:S,isDummy:!u}),(0,mr.jsx)(od,{name:"wpseo_titles.diversity_policy_id",id:"input-wpseo_titles-diversity_policy_id",label:(0,Et.__)("Diversity policy","wordpress-seo"),className:"yst-max-w-sm",description:k,isDummy:!u}),(0,mr.jsx)(od,{name:"wpseo_titles.diversity_staffing_report_id",id:"input-wpseo_titles-diversity_staffing_report_id",label:(0,Et.__)("Diversity staffing report","wordpress-seo"),className:"yst-max-w-sm",description:E,isDummy:!u})]})})]})})})},id=({name:e,cardId:t,inputId:s,children:r,imageSrc:o,imageAlt:n="",isPremiumFeature:l=!1,isPremiumLink:d="",isBetaFeature:c=!1,isNewFeature:u=!1,hasPremiumBadge:p=!1,title:m})=>{const h=bo("selectPreference",[],"isPremium"),f=bo("selectPluginUrl",[o],o),{isDisabled:_,message:y,disabledSetting:w}=mo({name:e}),{values:g}=q(),b=bo("selectLink",[d],d),v=bo("selectUpsellSettingsAsProps"),x=(0,i.useSvgAria)(),j=(0,a.useMemo)((()=>(0,le.get)(g,e,!1)),[g,e]),S=(0,a.useMemo)((()=>!h&&l),[h,l]),k=(0,a.useMemo)((()=>_||!S&&!j),[_,S,j]),E=(0,a.useMemo)((()=>_||h&&l&&p||c||u&&!h),[_,h,l,c,u]);return(0,mr.jsxs)(i.Card,{id:t,children:[(0,mr.jsxs)(i.Card.Header,{className:"yst-h-auto yst-p-0 yst-justify-start yst-m-0 yst-bg-white",children:[(0,mr.jsx)("img",{className:lr()("yst-transition yst-duration-200",k&&"yst-opacity-50 yst-filter yst-grayscale"),src:f,alt:n,width:42,height:42,loading:"lazy",decoding:"async"}),E&&(0,mr.jsxs)("div",{className:"yst-absolute yst-top-2 yst-end-2 yst-flex yst-gap-1.5",children:[_&&(0,mr.jsx)(i.Badge,{size:"small",variant:"plain",children:y}),h&&l&&p&&(0,mr.jsx)(i.Badge,{size:"small",variant:"upsell",children:"Premium"}),c&&(0,mr.jsx)(i.Badge,{size:"small",variant:"info",children:"Beta"}),u&&!h&&(0,mr.jsx)(i.Badge,{size:"small",variant:"info",children:"New"})]})]}),(0,mr.jsxs)(i.Card.Content,{className:"yst-flex yst-flex-col yst-gap-3",children:[(0,mr.jsx)(i.Title,{as:"h3",children:m}),r]}),(0,mr.jsxs)(i.Card.Footer,{children:[!S&&(0,mr.jsx)(kl,{as:i.ToggleField,type:"checkbox",name:e,id:s,"aria-label":`${(0,Et.__)("Enable feature","wordpress-seo")} ${m}`,label:(0,Et.__)("Enable feature","wordpress-seo"),disabled:_,checked:"language"!==w&&j}),S&&(0,mr.jsxs)(i.Button,{as:"a",className:"yst-gap-2 yst-w-full yst-px-2",variant:"upsell",href:b,target:"_blank",rel:"noopener",...v,children:[(0,mr.jsx)(fr,{className:"yst-w-5 yst-h-5 yst--ms-1 yst-shrink-0",...x}),(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ -(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium")]})]})]})};id.propTypes={name:cr().string.isRequired,cardId:cr().string.isRequired,inputId:cr().string.isRequired,children:cr().node.isRequired,imageSrc:cr().string.isRequired,imageAlt:cr().string,isPremiumFeature:cr().bool,isBetaFeature:cr().bool,isNewFeature:cr().bool,isPremiumLink:cr().string,hasPremiumBadge:cr().bool,title:cr().string.isRequired};const nd=({id:e,link:t,ariaLabel:s,...r})=>{const o=bo("selectLink",[t],t);return(0,mr.jsxs)(i.Link,{id:e,href:o,variant:"primary",className:"yst-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",target:"_blank",rel:"noopener","aria-label":(0,Et.sprintf)(/* translators: Hidden accessibility text; %s expands to a translated string of this feature, e.g. "SEO analysis". */ -(0,Et.__)("Learn more about %s (Opens in a new browser tab)","wordpress-seo"),s),...r,children:[(0,Et.__)("Learn more","wordpress-seo"),(0,mr.jsx)(Er,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})]})};nd.propTypes={id:cr().string.isRequired,link:cr().string.isRequired,ariaLabel:cr().string.isRequired};const ld=()=>{const e=bo("selectPreference",[],"isPremium"),t=bo("selectPreference",[],"sitemapUrl"),{values:s,initialValues:r}=q(),{enable_xml_sitemap:o}=s.wpseo,{enable_xml_sitemap:n}=r.wpseo,l=et(),d=(0,a.useCallback)((()=>{l("/llms-txt")}),[]),c=(0,a.useMemo)((()=>e?"yst-grid yst-gap-6 yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 xl:yst-grid-cols-3 2xl:yst-grid-cols-4":"yst-grid yst-gap-6 yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 2xl:yst-grid-cols-3 min-[1800px]:yst-grid-cols-4"),[e]);return(0,mr.jsx)(xa,{title:(0,Et.__)("Site features","wordpress-seo"),description:(0,Et.__)("Tell us which features you want to use.","wordpress-seo"),children:(0,mr.jsx)(ko,{children:(0,mr.jsxs)("div",{className:"yst-max-w-6xl",children:[(0,mr.jsxs)("fieldset",{className:"yst-min-w-0",children:[(0,mr.jsx)("legend",{className:"yst-sr-only",children:(0,Et.__)("AI tools","wordpress-seo")}),(0,mr.jsx)("div",{className:"yst-max-w-screen-sm yst-mb-8",children:(0,mr.jsx)(i.Title,{as:"h2",size:"2",children:(0,Et.__)("AI tools","wordpress-seo")})}),(0,mr.jsxs)("div",{className:c,children:[(0,mr.jsxs)(id,{name:"wpseo.enable_ai_generator",cardId:"card-wpseo-enable_ai_generator",inputId:"input-wpseo-enable_ai_generator",imageSrc:"/images/icon-sparkles.svg",isPremiumFeature:!1,hasPremiumBadge:!1,isPremiumLink:"https://yoa.st/get-ai-generator",title:"Yoast AI",children:[(0,mr.jsx)("p",{children:(0,Et.__)("The AI features help you create better content by providing optimization suggestions that you can apply as you wish.","wordpress-seo")}),(0,mr.jsx)(nd,{id:"link-ai-generator",link:"https://yoa.st/ai-generator-feature",ariaLabel:(0,Et.__)("AI title & description generator","wordpress-seo")})]}),(0,mr.jsxs)(id,{name:"wpseo.enable_llms_txt",cardId:"card-wpseo-enable_llms_txt",inputId:"input-wpseo-enable_llms_txt",imageSrc:"/images/icon-llms-txt.svg",title:(0,Et.__)("llms.txt","wordpress-seo"),children:[(0,mr.jsx)("p",{children:(0,Et.__)("Generate a file that points to your website's most relevant content. Designed to help AI Assistants understand your website better.","wordpress-seo")}),(0,mr.jsx)(i.Button,{onClick:d,id:"link-llms",variant:"secondary",target:"_blank",rel:"noopener",className:"yst-self-start",children:(0,Et.__)("Customize llms.txt file","wordpress-seo")}),(0,mr.jsx)(nd,{id:"link-llms-txt",link:"https://yoa.st/site-features-llmstxt-learn-more",ariaLabel:(0,Et.__)("llms.txt","wordpress-seo")})]})]})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)("fieldset",{className:"yst-min-w-0",children:[(0,mr.jsx)("legend",{className:"yst-sr-only",children:(0,Et.__)("Writing","wordpress-seo")}),(0,mr.jsx)("div",{className:"yst-max-w-screen-sm yst-mb-8",children:(0,mr.jsx)(i.Title,{as:"h2",size:"2",children:(0,Et.__)("Writing","wordpress-seo")})}),(0,mr.jsxs)("div",{className:c,children:[(0,mr.jsxs)(id,{name:"wpseo.keyword_analysis_active",cardId:"card-wpseo-keyword_analysis_active",inputId:"input-wpseo-keyword_analysis_active",imageSrc:"/images/icon-seo-analysis.svg",title:(0,Et.__)("SEO analysis","wordpress-seo"),children:[(0,mr.jsx)("p",{children:(0,Et.__)("The SEO analysis offers suggestions to improve the findability of your text and makes sure that your content meets best practices.","wordpress-seo")}),(0,mr.jsx)(nd,{id:"link-seo-analysis",link:"https://yoa.st/2ak",ariaLabel:(0,Et.__)("SEO analysis","wordpress-seo")})]}),(0,mr.jsxs)(id,{name:"wpseo.content_analysis_active",cardId:"card-wpseo-content_analysis_active",inputId:"input-wpseo-content_analysis_active",imageSrc:"/images/icon-readability-analysis.svg",title:(0,Et.__)("Readability analysis","wordpress-seo"),children:[(0,mr.jsx)("p",{children:(0,Et.__)("The readability analysis offers suggestions to improve the structure and style of your text.","wordpress-seo")}),(0,mr.jsx)(nd,{id:"link-readability-analysis",link:"https://yoa.st/2ao",ariaLabel:(0,Et.__)("Readability analysis","wordpress-seo")})]}),(0,mr.jsxs)(id,{name:"wpseo.inclusive_language_analysis_active",cardId:"card-wpseo-inclusive_language_analysis_active",inputId:"input-wpseo-inclusive_language_analysis_active",imageSrc:"/images/icon-inclusive-language-analysis.svg",title:(0,Et.__)("Inclusive language analysis","wordpress-seo"),children:[(0,mr.jsx)("p",{children:(0,Et.__)("The inclusive language analysis offers suggestions to write more inclusive copy, so more people will be able to relate to your content.","wordpress-seo")}),(0,mr.jsx)(nd,{id:"link-inclusive-language-analysis",link:"https://yoa.st/inclusive-language-feature-learn-more",ariaLabel:(0,Et.__)("Inclusive language analysis","wordpress-seo")})]}),(0,mr.jsxs)(id,{name:"wpseo.enable_metabox_insights",cardId:"card-wpseo-enable_metabox_insights",inputId:"input-wpseo-enable_metabox_insights",imageSrc:"/images/icon-insights.svg",title:(0,Et.__)("Insights","wordpress-seo"),children:[(0,mr.jsx)("p",{children:(0,Et.__)("Get more insights into what you are writing. What words do you use most often? How much time does it take to read your text? Is your text easy to read?","wordpress-seo")}),(0,mr.jsx)(nd,{id:"link-insights",link:"https://yoa.st/4ew",ariaLabel:(0,Et.__)("Insights","wordpress-seo")})]})]})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)("fieldset",{className:"yst-min-w-0",children:[(0,mr.jsx)("legend",{className:"yst-sr-only",children:(0,Et.__)("Site structure","wordpress-seo")}),(0,mr.jsx)("div",{className:"yst-max-w-screen-sm yst-mb-8",children:(0,mr.jsx)(i.Title,{as:"h2",size:"2",children:(0,Et.__)("Site structure","wordpress-seo")})}),(0,mr.jsxs)("div",{className:c,children:[(0,mr.jsxs)(id,{name:"wpseo.enable_cornerstone_content",cardId:"card-wpseo-enable_cornerstone_content",inputId:"input-wpseo-enable_cornerstone_content",imageSrc:"/images/icon-cornerstone-content.svg",title:(0,Et.__)("Cornerstone content","wordpress-seo"),children:[(0,mr.jsx)("p",{children:(0,Et.__)("Mark and filter your cornerstone content to make sure your most important articles get the attention they deserve. To help you write excellent copy, we’ll assess your text more strictly.","wordpress-seo")}),(0,mr.jsx)(nd,{id:"link-cornerstone-content",link:"https://yoa.st/dashboard-help-cornerstone",ariaLabel:(0,Et.__)("Cornerstone content","wordpress-seo")})]}),(0,mr.jsxs)(id,{name:"wpseo.enable_text_link_counter",cardId:"card-wpseo-enable_text_link_counter",inputId:"input-wpseo-enable_text_link_counter",imageSrc:"/images/icon-text-link-counter.svg",title:(0,Et.__)("Text link counter","wordpress-seo"),children:[(0,mr.jsx)("p",{children:(0,Et.__)("Count the number of internal links from and to your posts to improve your site structure.","wordpress-seo")}),(0,mr.jsx)(nd,{id:"link-text-link-counter",link:"https://yoa.st/2aj",ariaLabel:(0,Et.__)("Text link counter","wordpress-seo")})]}),(0,mr.jsxs)(id,{name:"wpseo.enable_link_suggestions",cardId:"card-wpseo-enable_link_suggestions",inputId:"input-wpseo-enable_link_suggestions",imageSrc:"/images/icon-internal-linking-suggestions.svg",isPremiumFeature:!0,hasPremiumBadge:!0,isPremiumLink:"https://yoa.st/get-link-suggestions",title:(0,Et.__)("Internal linking suggestions","wordpress-seo"),children:[(0,mr.jsx)("p",{children:(0,Et.__)("No need to figure out what to link to. You get linking suggestions for relevant posts and pages to make your website easier to navigate.","wordpress-seo")}),(0,mr.jsx)(nd,{id:"link-suggestions-link",link:e?"https://yoa.st/17g":"https://yoa.st/4ev",ariaLabel:(0,Et.__)("Link suggestions","wordpress-seo")})]})]})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)("fieldset",{id:"section-social-sharing",className:"yst-min-w-0",children:[(0,mr.jsx)("legend",{className:"yst-sr-only",children:(0,Et.__)("Social sharing","wordpress-seo")}),(0,mr.jsx)("div",{className:"yst-max-w-screen-sm yst-mb-8",children:(0,mr.jsx)(i.Title,{as:"h2",size:"2",className:"yst-mb-2",children:(0,Et.__)("Social sharing","wordpress-seo")})}),(0,mr.jsxs)("div",{className:c,children:[(0,mr.jsxs)(id,{name:"wpseo_social.opengraph",cardId:"card-wpseo_social-opengraph",inputId:"input-wpseo_social-opengraph",imageSrc:"/images/icon-open-graph.svg",title:(0,Et.__)("Open Graph data","wordpress-seo"),children:[(0,mr.jsx)("p",{children:(0,Et.__)("Allows for Facebook and other social media to display a preview with images and a text excerpt when a link to your site is shared. Keep this feature enabled to optimize your site for social media.","wordpress-seo")}),(0,mr.jsx)(nd,{id:"link-open-graph-data",link:"https://yoa.st/site-features-open-graph-data",ariaLabel:(0,Et.__)("Open Graph data","wordpress-seo")})]}),(0,mr.jsxs)(id,{name:"wpseo_social.twitter",cardId:"card-wpseo_social-twitter",inputId:"input-wpseo_social-twitter",imageSrc:"/images/icon-x-card-data.svg",title:(0,Et.__)("X card data","wordpress-seo"),children:[(0,mr.jsx)("p",{children:(0,Et.__)("Allows for X to display a preview with images and a text excerpt when a link to your site is shared.","wordpress-seo")}),(0,mr.jsx)(nd,{id:"link-twitter-card-data",link:"https://yoa.st/site-features-twitter-card-data",ariaLabel:(0,Et.__)("X card data","wordpress-seo")})]}),(0,mr.jsxs)(id,{name:"wpseo.enable_enhanced_slack_sharing",cardId:"card-wpseo-enable_enhanced_slack_sharing",inputId:"input-wpseo-enable_enhanced_slack_sharing",imageSrc:"/images/icon-slack-sharing.svg",title:(0,Et.__)("Slack sharing","wordpress-seo"),children:[(0,mr.jsx)("p",{children:(0,Et.__)("This adds an author byline and reading time estimate to the article’s snippet when shared on Slack.","wordpress-seo")}),(0,mr.jsx)(nd,{id:"link-slack-sharing",link:"https://yoa.st/help-slack-share",ariaLabel:(0,Et.__)("Slack sharing","wordpress-seo")})]})]})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)("fieldset",{className:"yst-min-w-0",children:[(0,mr.jsx)("legend",{className:"yst-sr-only",children:(0,Et.__)("Tools","wordpress-seo")}),(0,mr.jsx)("div",{className:"yst-max-w-screen-sm yst-mb-8",children:(0,mr.jsx)(i.Title,{as:"h2",size:"2",children:(0,Et.__)("Tools","wordpress-seo")})}),(0,mr.jsx)("div",{className:c,children:(0,mr.jsxs)(id,{name:"wpseo.enable_admin_bar_menu",cardId:"card-wpseo-enable_admin_bar_menu",inputId:"input-wpseo-enable_admin_bar_menu",imageSrc:"/images/icon-admin-bar.svg",title:(0,Et.__)("Admin bar menu","wordpress-seo"),children:[(0,mr.jsx)("p",{children:(0,Et.sprintf)( +(0,Et.__)("Select a page which provides information about your diversity policies for %1$sstaffing%2$s, %1$shiring%2$s and %1$semployment%2$s.","wordpress-seo"),"<i>","</i>"),{i:(0,ur.jsx)("i",{})})),[]),{values:L}=q(),{opengraph:T}=L.wpseo_social;return(0,i.useEffect)((()=>{m()}),[m]),(0,ur.jsx)(ui,{title:(0,Et.__)("Site basics","wordpress-seo"),description:(0,Et.__)("Configure the basics for your website.","wordpress-seo"),children:(0,ur.jsx)(ho,{children:(0,ur.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,ur.jsxs)(uo,{title:(0,Et.__)("Site info","wordpress-seo"),description:_,children:[!s&&(0,ur.jsx)(a.Alert,{variant:"warning",id:"alert-site-defaults-variables",className:"yst-mb-8",children:y}),(0,ur.jsxs)("div",{className:"lg:yst-mt-0 lg:yst-col-span-2 yst-space-y-8",children:[(0,ur.jsx)(wl,{as:a.TextField,name:"wpseo_titles.website_name",id:"input-wpseo_titles-website_name",label:(0,Et.__)("Website name","wordpress-seo"),placeholder:d}),(0,ur.jsx)(wl,{as:a.TextField,name:"wpseo_titles.alternate_website_name",id:"input-wpseo_titles-alternate_website_name",label:(0,Et.__)("Alternate website name","wordpress-seo"),description:(0,Et.__)("Use the alternate website name for acronyms, or a shorter version of your website's name.","wordpress-seo")}),(0,ur.jsx)(te,{as:a.TextField,type:"text",name:"blogdescription",id:"input-blogdescription",label:(0,Et.__)("Tagline","wordpress-seo"),description:s&&g,readOnly:!s})]}),(0,ur.jsx)(a.RadioGroup,{label:(0,Et.__)("Title separator","wordpress-seo"),variant:"inline-block",children:(0,le.map)(e,(({label:e,aria_label:t},s)=>(0,ur.jsx)(te,{as:a.Radio,type:"radio",variant:"inline-block",name:"wpseo_titles.separator",id:`input-wpseo_titles-separator-${s}`,label:e,isLabelDangerousHtml:!0,"aria-label":t,value:s},s)))}),(0,ur.jsx)(Ho,{isEnabled:T,text:/* translators: %1$s expands to an opening emphasis tag. %2$s expands to a closing emphasis tag. */ +(0,Et.__)("The %1$sSite image%2$s requires Open Graph data, which is currently disabled in the ‘Social sharing’ section in %3$sSite features%4$s.","wordpress-seo")}),(0,ur.jsx)(bo,{id:"wpseo_social-og_default_image",label:(0,Et.__)("Site image","wordpress-seo"),description:(0,Et.__)("This image is used as a fallback for posts/pages that don't have any images set.","wordpress-seo"),previewLabel:w,mediaUrlName:"wpseo_social.og_default_image",mediaIdName:"wpseo_social.og_default_image_id",disabled:!T})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{title:(0,Et.__)("Site preferences","wordpress-seo"),children:[r&&(0,ur.jsx)(yl,{as:a.ToggleField,type:"checkbox",name:"wpseo_titles.forcerewritetitle",id:"input-wpseo_titles-forcerewritetitle",label:(0,Et.__)("Force rewrite titles","wordpress-seo"),description:(0,Et.sprintf)(/* translators: %1$s expands to "Yoast SEO" */ +(0,Et.__)("%1$s has auto-detected whether it needs to force rewrite the titles for your pages, if you think it's wrong and you know what you're doing, you can change the setting here.","wordpress-seo"),"Yoast SEO"),className:"yst-max-w-sm"}),(0,ur.jsx)(yl,{as:a.ToggleField,type:"checkbox",name:"wpseo.disableadvanced_meta",id:"input-wpseo-disableadvanced_meta",label:(0,Et.__)("Restrict advanced settings for authors","wordpress-seo"),description:(0,Et.sprintf)(/* translators: %1$s expands to "Yoast SEO" */ +(0,Et.__)("By default only editors and administrators can access the Advanced and Schema section of the %1$s sidebar or metabox. Disabling this allows access to all users.","wordpress-seo"),"Yoast SEO"),className:"yst-max-w-sm"}),(0,ur.jsx)(yl,{as:Zl,type:"checkbox",name:"wpseo.tracking",id:"input-wpseo-tracking",label:(0,Et.__)("Usage tracking","wordpress-seo"),description:h,className:"yst-max-w-sm"})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(uo,{title:(0,ur.jsxs)(ur.Fragment,{children:[(0,Et.__)("Site policies","wordpress-seo"),u&&(0,ur.jsx)(a.Badge,{className:"yst-ms-1.5",size:"small",variant:"upsell",children:"Premium"})]}),description:f,children:(0,ur.jsxs)(a.FeatureUpsell,{shouldUpsell:!u,variant:"card",cardLink:c,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ +(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...p,children:[(0,ur.jsx)(Kl,{name:"wpseo_titles.publishing_principles_id",id:"input-wpseo_titles-publishing_principles_id",label:(0,Et.__)("Publishing principles","wordpress-seo"),className:"yst-max-w-sm",description:b,isDummy:!u}),(0,ur.jsx)(Kl,{name:"wpseo_titles.ownership_funding_info_id",id:"input-wpseo_titles-ownership_funding_info_id",label:(0,Et.__)("Ownership / Funding info","wordpress-seo"),className:"yst-max-w-sm",description:v,isDummy:!u}),(0,ur.jsx)(Kl,{name:"wpseo_titles.actionable_feedback_policy_id",id:"input-wpseo_titles-actionable_feedback_policy_id",label:(0,Et.__)("Actionable feedback policy","wordpress-seo"),className:"yst-max-w-sm",description:x,isDummy:!u}),(0,ur.jsx)(Kl,{name:"wpseo_titles.corrections_policy_id",id:"input-wpseo_titles-corrections_policy_id",label:(0,Et.__)("Corrections policy","wordpress-seo"),className:"yst-max-w-sm",description:j,isDummy:!u}),(0,ur.jsx)(Kl,{name:"wpseo_titles.ethics_policy_id",id:"input-wpseo_titles-ethics_policy_id",label:(0,Et.__)("Ethics policy","wordpress-seo"),className:"yst-max-w-sm",description:S,isDummy:!u}),(0,ur.jsx)(Kl,{name:"wpseo_titles.diversity_policy_id",id:"input-wpseo_titles-diversity_policy_id",label:(0,Et.__)("Diversity policy","wordpress-seo"),className:"yst-max-w-sm",description:k,isDummy:!u}),(0,ur.jsx)(Kl,{name:"wpseo_titles.diversity_staffing_report_id",id:"input-wpseo_titles-diversity_staffing_report_id",label:(0,Et.__)("Diversity staffing report","wordpress-seo"),className:"yst-max-w-sm",description:E,isDummy:!u})]})})]})})})},Ql=({name:e,cardId:t,inputId:s,children:r,imageSrc:o,imageAlt:n="",isPremiumFeature:l=!1,isPremiumLink:d="",isBetaFeature:c=!1,isNewFeature:u=!1,hasPremiumBadge:p=!1,title:m})=>{const h=lo("selectPreference",[],"isPremium"),f=lo("selectPluginUrl",[o],o),{isDisabled:_,message:y,disabledSetting:w}=to({name:e}),{values:g}=q(),b=lo("selectLink",[d],d),v=lo("selectUpsellSettingsAsProps"),x=(0,a.useSvgAria)(),j=(0,i.useMemo)((()=>(0,le.get)(g,e,!1)),[g,e]),S=(0,i.useMemo)((()=>!h&&l),[h,l]),k=(0,i.useMemo)((()=>_||!S&&!j),[_,S,j]),E=(0,i.useMemo)((()=>_||h&&l&&p||c||u&&!h),[_,h,l,c,u]);return(0,ur.jsxs)(a.Card,{id:t,children:[(0,ur.jsxs)(a.Card.Header,{className:"yst-h-auto yst-p-0 yst-justify-start yst-m-0 yst-bg-white",children:[(0,ur.jsx)("img",{className:ar()("yst-transition yst-duration-200",k&&"yst-opacity-50 yst-filter yst-grayscale"),src:f,alt:n,width:42,height:42,loading:"lazy",decoding:"async"}),E&&(0,ur.jsxs)("div",{className:"yst-absolute yst-top-2 yst-end-2 yst-flex yst-gap-1.5",children:[_&&(0,ur.jsx)(a.Badge,{size:"small",variant:"plain",children:y}),h&&l&&p&&(0,ur.jsx)(a.Badge,{size:"small",variant:"upsell",children:"Premium"}),c&&(0,ur.jsx)(a.Badge,{size:"small",variant:"info",children:"Beta"}),u&&!h&&(0,ur.jsx)(a.Badge,{size:"small",variant:"info",children:"New"})]})]}),(0,ur.jsxs)(a.Card.Content,{className:"yst-flex yst-flex-col yst-gap-3",children:[(0,ur.jsx)(a.Title,{as:"h3",children:m}),r]}),(0,ur.jsxs)(a.Card.Footer,{children:[!S&&(0,ur.jsx)(yl,{as:a.ToggleField,type:"checkbox",name:e,id:s,"aria-label":`${(0,Et.__)("Enable feature","wordpress-seo")} ${m}`,label:(0,Et.__)("Enable feature","wordpress-seo"),disabled:_,checked:"language"!==w&&j}),S&&(0,ur.jsxs)(a.Button,{as:"a",className:"yst-gap-2 yst-w-full yst-px-2",variant:"upsell",href:b,target:"_blank",rel:"noopener",...v,children:[(0,ur.jsx)(mr,{className:"yst-w-5 yst-h-5 yst--ms-1 yst-shrink-0",...x}),(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ +(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium")]})]})]})};Ql.propTypes={name:lr().string.isRequired,cardId:lr().string.isRequired,inputId:lr().string.isRequired,children:lr().node.isRequired,imageSrc:lr().string.isRequired,imageAlt:lr().string,isPremiumFeature:lr().bool,isBetaFeature:lr().bool,isNewFeature:lr().bool,isPremiumLink:lr().string,hasPremiumBadge:lr().bool,title:lr().string.isRequired};const Xl=({id:e,link:t,ariaLabel:s,...r})=>{const o=lo("selectLink",[t],t);return(0,ur.jsxs)(a.Link,{id:e,href:o,variant:"primary",className:"yst-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",target:"_blank",rel:"noopener","aria-label":(0,Et.sprintf)(/* translators: Hidden accessibility text; %s expands to a translated string of this feature, e.g. "SEO analysis". */ +(0,Et.__)("Learn more about %s (Opens in a new browser tab)","wordpress-seo"),s),...r,children:[(0,Et.__)("Learn more","wordpress-seo"),(0,ur.jsx)(Dr,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})]})};Xl.propTypes={id:lr().string.isRequired,link:lr().string.isRequired,ariaLabel:lr().string.isRequired};const ed=()=>{const e=lo("selectPreference",[],"isPremium"),t=lo("selectPreference",[],"sitemapUrl"),{values:s,initialValues:r}=q(),{enable_xml_sitemap:o}=s.wpseo,{enable_xml_sitemap:n}=r.wpseo,l=et(),d=(0,i.useCallback)((()=>{l("/llms-txt")}),[]),c=(0,i.useMemo)((()=>e?"yst-grid yst-gap-6 yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 xl:yst-grid-cols-3 2xl:yst-grid-cols-4":"yst-grid yst-gap-6 yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 2xl:yst-grid-cols-3 min-[1800px]:yst-grid-cols-4"),[e]);return(0,ur.jsx)(ui,{title:(0,Et.__)("Site features","wordpress-seo"),description:(0,Et.__)("Tell us which features you want to use.","wordpress-seo"),children:(0,ur.jsx)(ho,{children:(0,ur.jsxs)("div",{className:"yst-max-w-6xl",children:[(0,ur.jsxs)("fieldset",{className:"yst-min-w-0",children:[(0,ur.jsx)("legend",{className:"yst-sr-only",children:(0,Et.__)("AI tools","wordpress-seo")}),(0,ur.jsx)("div",{className:"yst-max-w-screen-sm yst-mb-8",children:(0,ur.jsx)(a.Title,{as:"h2",size:"2",children:(0,Et.__)("AI tools","wordpress-seo")})}),(0,ur.jsxs)("div",{className:c,children:[(0,ur.jsxs)(Ql,{name:"wpseo.enable_ai_generator",cardId:"card-wpseo-enable_ai_generator",inputId:"input-wpseo-enable_ai_generator",imageSrc:"/images/icon-sparkles.svg",isPremiumFeature:!1,hasPremiumBadge:!1,isPremiumLink:"https://yoa.st/get-ai-generator",title:"Yoast AI",children:[(0,ur.jsx)("p",{children:(0,Et.__)("The AI features help you create better content by providing optimization suggestions that you can apply as you wish.","wordpress-seo")}),(0,ur.jsx)(Xl,{id:"link-ai-generator",link:"https://yoa.st/ai-generator-feature",ariaLabel:(0,Et.__)("AI title & description generator","wordpress-seo")})]}),(0,ur.jsxs)(Ql,{name:"wpseo.enable_llms_txt",cardId:"card-wpseo-enable_llms_txt",inputId:"input-wpseo-enable_llms_txt",imageSrc:"/images/icon-llms-txt.svg",title:(0,Et.__)("llms.txt","wordpress-seo"),children:[(0,ur.jsx)("p",{children:(0,Et.__)("Generate a file that points to your website's most relevant content. Designed to help AI Assistants understand your website better.","wordpress-seo")}),(0,ur.jsx)(a.Button,{onClick:d,id:"link-llms",variant:"secondary",target:"_blank",rel:"noopener",className:"yst-self-start",children:(0,Et.__)("Customize llms.txt file","wordpress-seo")}),(0,ur.jsx)(Xl,{id:"link-llms-txt",link:"https://yoa.st/site-features-llmstxt-learn-more",ariaLabel:(0,Et.__)("llms.txt","wordpress-seo")})]})]})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)("fieldset",{className:"yst-min-w-0",children:[(0,ur.jsx)("legend",{className:"yst-sr-only",children:(0,Et.__)("Writing","wordpress-seo")}),(0,ur.jsx)("div",{className:"yst-max-w-screen-sm yst-mb-8",children:(0,ur.jsx)(a.Title,{as:"h2",size:"2",children:(0,Et.__)("Writing","wordpress-seo")})}),(0,ur.jsxs)("div",{className:c,children:[(0,ur.jsxs)(Ql,{name:"wpseo.keyword_analysis_active",cardId:"card-wpseo-keyword_analysis_active",inputId:"input-wpseo-keyword_analysis_active",imageSrc:"/images/icon-seo-analysis.svg",title:(0,Et.__)("SEO analysis","wordpress-seo"),children:[(0,ur.jsx)("p",{children:(0,Et.__)("The SEO analysis offers suggestions to improve the findability of your text and makes sure that your content meets best practices.","wordpress-seo")}),(0,ur.jsx)(Xl,{id:"link-seo-analysis",link:"https://yoa.st/2ak",ariaLabel:(0,Et.__)("SEO analysis","wordpress-seo")})]}),(0,ur.jsxs)(Ql,{name:"wpseo.content_analysis_active",cardId:"card-wpseo-content_analysis_active",inputId:"input-wpseo-content_analysis_active",imageSrc:"/images/icon-readability-analysis.svg",title:(0,Et.__)("Readability analysis","wordpress-seo"),children:[(0,ur.jsx)("p",{children:(0,Et.__)("The readability analysis offers suggestions to improve the structure and style of your text.","wordpress-seo")}),(0,ur.jsx)(Xl,{id:"link-readability-analysis",link:"https://yoa.st/2ao",ariaLabel:(0,Et.__)("Readability analysis","wordpress-seo")})]}),(0,ur.jsxs)(Ql,{name:"wpseo.inclusive_language_analysis_active",cardId:"card-wpseo-inclusive_language_analysis_active",inputId:"input-wpseo-inclusive_language_analysis_active",imageSrc:"/images/icon-inclusive-language-analysis.svg",title:(0,Et.__)("Inclusive language analysis","wordpress-seo"),children:[(0,ur.jsx)("p",{children:(0,Et.__)("The inclusive language analysis offers suggestions to write more inclusive copy, so more people will be able to relate to your content.","wordpress-seo")}),(0,ur.jsx)(Xl,{id:"link-inclusive-language-analysis",link:"https://yoa.st/inclusive-language-feature-learn-more",ariaLabel:(0,Et.__)("Inclusive language analysis","wordpress-seo")})]}),(0,ur.jsxs)(Ql,{name:"wpseo.enable_metabox_insights",cardId:"card-wpseo-enable_metabox_insights",inputId:"input-wpseo-enable_metabox_insights",imageSrc:"/images/icon-insights.svg",title:(0,Et.__)("Insights","wordpress-seo"),children:[(0,ur.jsx)("p",{children:(0,Et.__)("Get more insights into what you are writing. What words do you use most often? How much time does it take to read your text? Is your text easy to read?","wordpress-seo")}),(0,ur.jsx)(Xl,{id:"link-insights",link:"https://yoa.st/4ew",ariaLabel:(0,Et.__)("Insights","wordpress-seo")})]})]})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)("fieldset",{className:"yst-min-w-0",children:[(0,ur.jsx)("legend",{className:"yst-sr-only",children:(0,Et.__)("Site structure","wordpress-seo")}),(0,ur.jsx)("div",{className:"yst-max-w-screen-sm yst-mb-8",children:(0,ur.jsx)(a.Title,{as:"h2",size:"2",children:(0,Et.__)("Site structure","wordpress-seo")})}),(0,ur.jsxs)("div",{className:c,children:[(0,ur.jsxs)(Ql,{name:"wpseo.enable_cornerstone_content",cardId:"card-wpseo-enable_cornerstone_content",inputId:"input-wpseo-enable_cornerstone_content",imageSrc:"/images/icon-cornerstone-content.svg",title:(0,Et.__)("Cornerstone content","wordpress-seo"),children:[(0,ur.jsx)("p",{children:(0,Et.__)("Mark and filter your cornerstone content to make sure your most important articles get the attention they deserve. To help you write excellent copy, we’ll assess your text more strictly.","wordpress-seo")}),(0,ur.jsx)(Xl,{id:"link-cornerstone-content",link:"https://yoa.st/dashboard-help-cornerstone",ariaLabel:(0,Et.__)("Cornerstone content","wordpress-seo")})]}),(0,ur.jsxs)(Ql,{name:"wpseo.enable_text_link_counter",cardId:"card-wpseo-enable_text_link_counter",inputId:"input-wpseo-enable_text_link_counter",imageSrc:"/images/icon-text-link-counter.svg",title:(0,Et.__)("Text link counter","wordpress-seo"),children:[(0,ur.jsx)("p",{children:(0,Et.__)("Count the number of internal links from and to your posts to improve your site structure.","wordpress-seo")}),(0,ur.jsx)(Xl,{id:"link-text-link-counter",link:"https://yoa.st/2aj",ariaLabel:(0,Et.__)("Text link counter","wordpress-seo")})]}),(0,ur.jsxs)(Ql,{name:"wpseo.enable_link_suggestions",cardId:"card-wpseo-enable_link_suggestions",inputId:"input-wpseo-enable_link_suggestions",imageSrc:"/images/icon-internal-linking-suggestions.svg",isPremiumFeature:!0,hasPremiumBadge:!0,isPremiumLink:"https://yoa.st/get-link-suggestions",title:(0,Et.__)("Internal linking suggestions","wordpress-seo"),children:[(0,ur.jsx)("p",{children:(0,Et.__)("No need to figure out what to link to. You get linking suggestions for relevant posts and pages to make your website easier to navigate.","wordpress-seo")}),(0,ur.jsx)(Xl,{id:"link-suggestions-link",link:e?"https://yoa.st/17g":"https://yoa.st/4ev",ariaLabel:(0,Et.__)("Link suggestions","wordpress-seo")})]})]})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)("fieldset",{id:"section-social-sharing",className:"yst-min-w-0",children:[(0,ur.jsx)("legend",{className:"yst-sr-only",children:(0,Et.__)("Social sharing","wordpress-seo")}),(0,ur.jsx)("div",{className:"yst-max-w-screen-sm yst-mb-8",children:(0,ur.jsx)(a.Title,{as:"h2",size:"2",className:"yst-mb-2",children:(0,Et.__)("Social sharing","wordpress-seo")})}),(0,ur.jsxs)("div",{className:c,children:[(0,ur.jsxs)(Ql,{name:"wpseo_social.opengraph",cardId:"card-wpseo_social-opengraph",inputId:"input-wpseo_social-opengraph",imageSrc:"/images/icon-open-graph.svg",title:(0,Et.__)("Open Graph data","wordpress-seo"),children:[(0,ur.jsx)("p",{children:(0,Et.__)("Allows for Facebook and other social media to display a preview with images and a text excerpt when a link to your site is shared. Keep this feature enabled to optimize your site for social media.","wordpress-seo")}),(0,ur.jsx)(Xl,{id:"link-open-graph-data",link:"https://yoa.st/site-features-open-graph-data",ariaLabel:(0,Et.__)("Open Graph data","wordpress-seo")})]}),(0,ur.jsxs)(Ql,{name:"wpseo_social.twitter",cardId:"card-wpseo_social-twitter",inputId:"input-wpseo_social-twitter",imageSrc:"/images/icon-x-card-data.svg",title:(0,Et.__)("X card data","wordpress-seo"),children:[(0,ur.jsx)("p",{children:(0,Et.__)("Allows for X to display a preview with images and a text excerpt when a link to your site is shared.","wordpress-seo")}),(0,ur.jsx)(Xl,{id:"link-twitter-card-data",link:"https://yoa.st/site-features-twitter-card-data",ariaLabel:(0,Et.__)("X card data","wordpress-seo")})]}),(0,ur.jsxs)(Ql,{name:"wpseo.enable_enhanced_slack_sharing",cardId:"card-wpseo-enable_enhanced_slack_sharing",inputId:"input-wpseo-enable_enhanced_slack_sharing",imageSrc:"/images/icon-slack-sharing.svg",title:(0,Et.__)("Slack sharing","wordpress-seo"),children:[(0,ur.jsx)("p",{children:(0,Et.__)("This adds an author byline and reading time estimate to the article’s snippet when shared on Slack.","wordpress-seo")}),(0,ur.jsx)(Xl,{id:"link-slack-sharing",link:"https://yoa.st/help-slack-share",ariaLabel:(0,Et.__)("Slack sharing","wordpress-seo")})]})]})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)("fieldset",{className:"yst-min-w-0",children:[(0,ur.jsx)("legend",{className:"yst-sr-only",children:(0,Et.__)("Tools","wordpress-seo")}),(0,ur.jsx)("div",{className:"yst-max-w-screen-sm yst-mb-8",children:(0,ur.jsx)(a.Title,{as:"h2",size:"2",children:(0,Et.__)("Tools","wordpress-seo")})}),(0,ur.jsxs)("div",{className:c,children:[(0,ur.jsxs)(Ql,{name:"wpseo.enable_task_list",cardId:"card-wpseo-enable_task_list",inputId:"input-wpseo-enable_task_list",imageSrc:"/images/icon-task-list.svg",title:(0,Et.__)("Task list","wordpress-seo"),children:[(0,ur.jsx)("p",{children:(0,Et.__)("The task list guides you through important SEO tasks and helps you to manage your site’s SEO.","wordpress-seo")}),(0,ur.jsx)(Xl,{id:"link-task-list",link:"https://yoa.st/site-features-task-list",ariaLabel:(0,Et.__)("Task list","wordpress-seo")})]}),(0,ur.jsxs)(Ql,{name:"wpseo.enable_admin_bar_menu",cardId:"card-wpseo-enable_admin_bar_menu",inputId:"input-wpseo-enable_admin_bar_menu",imageSrc:"/images/icon-admin-bar.svg",title:(0,Et.__)("Admin bar menu","wordpress-seo"),children:[(0,ur.jsx)("p",{children:(0,Et.sprintf)( // translators: %1$s expands to Yoast. -(0,Et.__)("The %1$s icon in the top admin bar provides quick access to third-party tools for analyzing pages and makes it easy to see if you have new notifications.","wordpress-seo"),"Yoast")}),(0,mr.jsx)(nd,{id:"link-admin-bar",link:"https://yoa.st/site-features-admin-bar",ariaLabel:(0,Et.__)("Admin bar menu","wordpress-seo")})]})})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)("fieldset",{className:"yst-min-w-0",children:[(0,mr.jsx)("legend",{className:"yst-sr-only",children:(0,Et.__)("APIs","wordpress-seo")}),(0,mr.jsx)("div",{className:"yst-max-w-screen-sm yst-mb-8",children:(0,mr.jsx)(i.Title,{as:"h2",size:"2",children:(0,Et.__)("APIs","wordpress-seo")})}),(0,mr.jsxs)("div",{className:c,children:[(0,mr.jsxs)(id,{name:"wpseo.enable_headless_rest_endpoints",cardId:"card-wpseo-enable_headless_rest_endpoints",inputId:"input-wpseo-enable_headless_rest_endpoints",imageSrc:"/images/icon-rest-api-endpoint.svg",title:(0,Et.__)("REST API endpoint","wordpress-seo"),children:[(0,mr.jsx)("p",{children:(0,Et.__)("This Yoast SEO REST API endpoint gives you all the metadata you need for a specific URL. This will make it very easy for headless WordPress sites to use Yoast SEO for all their SEO meta output.","wordpress-seo")}),(0,mr.jsx)(nd,{id:"link-rest-api-endpoint",link:"https://yoa.st/site-features-rest-api-endpoint",ariaLabel:(0,Et.__)("REST API endpoint","wordpress-seo")})]}),(0,mr.jsxs)(id,{name:"wpseo.enable_xml_sitemap",cardId:"card-wpseo-enable_xml_sitemap",inputId:"input-wpseo-enable_xml_sitemap",imageSrc:"/images/icon-xml-sitemaps.svg",title:(0,Et.__)("XML sitemaps","wordpress-seo"),children:[(0,mr.jsx)("p",{children:(0,Et.sprintf)( +(0,Et.__)("The %1$s icon in the top admin bar provides quick access to third-party tools for analyzing pages and makes it easy to see if you have new notifications.","wordpress-seo"),"Yoast")}),(0,ur.jsx)(Xl,{id:"link-admin-bar",link:"https://yoa.st/site-features-admin-bar",ariaLabel:(0,Et.__)("Admin bar menu","wordpress-seo")})]})]})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)("fieldset",{className:"yst-min-w-0",children:[(0,ur.jsx)("legend",{className:"yst-sr-only",children:(0,Et.__)("APIs","wordpress-seo")}),(0,ur.jsx)("div",{className:"yst-max-w-screen-sm yst-mb-8",children:(0,ur.jsx)(a.Title,{as:"h2",size:"2",children:(0,Et.__)("APIs","wordpress-seo")})}),(0,ur.jsxs)("div",{className:c,children:[(0,ur.jsxs)(Ql,{name:"wpseo.enable_headless_rest_endpoints",cardId:"card-wpseo-enable_headless_rest_endpoints",inputId:"input-wpseo-enable_headless_rest_endpoints",imageSrc:"/images/icon-rest-api-endpoint.svg",title:(0,Et.__)("REST API endpoint","wordpress-seo"),children:[(0,ur.jsx)("p",{children:(0,Et.__)("This Yoast SEO REST API endpoint gives you all the metadata you need for a specific URL. This will make it very easy for headless WordPress sites to use Yoast SEO for all their SEO meta output.","wordpress-seo")}),(0,ur.jsx)(Xl,{id:"link-rest-api-endpoint",link:"https://yoa.st/site-features-rest-api-endpoint",ariaLabel:(0,Et.__)("REST API endpoint","wordpress-seo")})]}),(0,ur.jsxs)(Ql,{name:"wpseo.enable_xml_sitemap",cardId:"card-wpseo-enable_xml_sitemap",inputId:"input-wpseo-enable_xml_sitemap",imageSrc:"/images/icon-xml-sitemaps.svg",title:(0,Et.__)("XML sitemaps","wordpress-seo"),children:[(0,ur.jsx)("p",{children:(0,Et.sprintf)( // translators: %1$s expands to "Yoast SEO". -(0,Et.__)("Enable the %1$s XML sitemaps. A sitemap is a file that lists a website's essential pages to make sure search engines can find and crawl them.","wordpress-seo"),"Yoast SEO")}),n&&o&&(0,mr.jsxs)(i.Button,{as:"a",id:"link-xml-sitemaps",href:t,variant:"secondary",target:"_blank",rel:"noopener",className:"yst-self-start",children:[(0,Et.__)("View the XML sitemap","wordpress-seo"),(0,mr.jsx)(ur,{className:"yst--me-1 yst-ms-1 yst-h-5 yst-w-5 yst-text-slate-400 rtl:yst-rotate-[270deg]"})]}),(0,mr.jsx)(nd,{id:"link-xml-sitemaps-learn-more",link:"https://yoa.st/2a-",ariaLabel:(0,Et.__)("XML sitemaps","wordpress-seo")})]}),(0,mr.jsxs)(id,{name:"wpseo.enable_index_now",cardId:"card-wpseo-enable_index_now",inputId:"input-wpseo-enable_index_now",imageSrc:"/images/icon-index-now.svg",isPremiumFeature:!0,hasPremiumBadge:!0,isPremiumLink:"https://yoa.st/get-indexnow",title:(0,Et.__)("IndexNow","wordpress-seo"),children:[(0,mr.jsx)("p",{children:(0,Et.__)("Automatically ping search engines like Bing and Yandex whenever you publish, update or delete a post.","wordpress-seo")}),(0,mr.jsx)(nd,{id:"link-index-now",link:"https://yoa.st/index-now-feature",ariaLabel:(0,Et.__)("IndexNow","wordpress-seo")})]})]})]})]})})})},dd=xl(El),cd=jl(Ko),ud=()=>{const{values:e}=q(),{website_name:t,company_or_person:s,company_or_person_user_id:r,company_name:o,company_logo_id:n}=e.wpseo_titles,{other_social_urls:l}=e.wpseo_social,d=bo("selectUserById",[r],r),c=bo("selectLink",[],"https://yoa.st/1-p"),u=bo("selectLink",[],"https://yoa.st/3r3"),p=bo("selectLink",[],"https://yoa.st/site-representation-org-additional-info-upsell"),m=bo("selectLink",[],"https://yoa.st/site-representation-org-identifiers"),h=bo("selectLink",[],"https://yoa.st/site-representation-organization-person"),f=bo("selectPreference",[],"editUserUrl"),_=bo("selectPreference",[],"isLocalSeoActive"),y=bo("selectPreference",[],"companyOrPersonMessage"),w=bo("selectFallback",[],"siteLogoId"),g=bo("selectCanEditUser",[null==d?void 0:d.id],null==d?void 0:d.id),b=bo("selectPreference",[],"isPremium"),v=bo("selectUpsellSettingsAsProps"),x=bo("selectLink",[],"https://yoa.st/get-mastodon-integration"),j=bo("selectLink",[],"https://yoa.st/site-representation-mastodon"),S=bo("selectPreference",[],"localSeoPageSettingUrl");let k=pr((0,Et.sprintf)(/* translators: %1$s expands for Yoast Local SEO, %2$s and %3$s expands to a link tags. */ -(0,Et.__)("You have %1$s activated on your site. You can provide your VAT ID and Tax ID in the %2$s‘Business info’ settings%3$s.","wordpress-seo"),"Yoast Local SEO","<a>","</a>"),{a:(0,mr.jsx)("a",{href:S,target:"_blank",className:"yst-underline yst-font-medium"})}),E=pr((0,Et.sprintf)(/* translators: %1$s expands for Yoast Local SEO, %2$s and %3$s expands to a link tags. */ -(0,Et.__)("You have %1$s activated on your site. You can provide your email and phone in the %2$s‘Business info’ settings%3$s.","wordpress-seo"),"Yoast Local SEO","<a>","</a>"),{a:(0,mr.jsx)("a",{href:S,target:"_blank",className:"yst-underline yst-font-medium"})});S.includes("wpseo_locations")&&(k=pr((0,Et.sprintf)(/* translators: %1$s expands for Yoast Local SEO, %2$s and %3$s expands to a link tags. */ -(0,Et.__)("You have %1$s activated on your site, and you've configured your business for multiple locations. This allows you to provide your VAT ID and Tax ID for %2$seach specific location%3$s.","wordpress-seo"),"Yoast Local SEO","<a>","</a>"),{a:(0,mr.jsx)("a",{href:S,target:"_blank",className:"yst-underline yst-font-medium"})}),E=pr((0,Et.sprintf)(/* translators: %1$s expands for Yoast Local SEO, %2$s and %3$s expands to a link tags. */ -(0,Et.__)("You have %1$s activated on your site, and you've configured your business for multiple locations. This allows you to provide your email and phone for %2$seach specific location%3$s.","wordpress-seo"),"Yoast Local SEO","<a>","</a>"),{a:(0,mr.jsx)("a",{href:S,target:"_blank",className:"yst-underline yst-font-medium"})}));const L=(0,a.useCallback)((async e=>{var t;await e.push(""),null===(t=document.getElementById(`input-wpseo_social-other_social_urls-${l.length}`))||void 0===t||t.focus()}),[l]);return(0,mr.jsx)(xa,{title:(0,Et.__)("Site representation","wordpress-seo"),description:bl((0,Et.sprintf)( +(0,Et.__)("Enable the %1$s XML sitemaps. A sitemap is a file that lists a website's essential pages to make sure search engines can find and crawl them.","wordpress-seo"),"Yoast SEO")}),n&&o&&(0,ur.jsxs)(a.Button,{as:"a",id:"link-xml-sitemaps",href:t,variant:"secondary",target:"_blank",rel:"noopener",className:"yst-self-start",children:[(0,Et.__)("View the XML sitemap","wordpress-seo"),(0,ur.jsx)(dr,{className:"yst--me-1 yst-ms-1 yst-h-5 yst-w-5 yst-text-slate-400 rtl:yst-rotate-[270deg]"})]}),(0,ur.jsx)(Xl,{id:"link-xml-sitemaps-learn-more",link:"https://yoa.st/2a-",ariaLabel:(0,Et.__)("XML sitemaps","wordpress-seo")})]}),(0,ur.jsxs)(Ql,{name:"wpseo.enable_index_now",cardId:"card-wpseo-enable_index_now",inputId:"input-wpseo-enable_index_now",imageSrc:"/images/icon-index-now.svg",isPremiumFeature:!0,hasPremiumBadge:!0,isPremiumLink:"https://yoa.st/get-indexnow",title:(0,Et.__)("IndexNow","wordpress-seo"),children:[(0,ur.jsx)("p",{children:(0,Et.__)("Automatically ping search engines like Bing and Yandex whenever you publish, update or delete a post.","wordpress-seo")}),(0,ur.jsx)(Xl,{id:"link-index-now",link:"https://yoa.st/index-now-feature",ariaLabel:(0,Et.__)("IndexNow","wordpress-seo")})]})]})]})]})})})},td=hl(wl),sd=fl(Do),rd=()=>{const{values:e}=q(),{website_name:t,company_or_person:s,company_or_person_user_id:r,company_name:o,company_logo_id:n}=e.wpseo_titles,{other_social_urls:l}=e.wpseo_social,d=lo("selectUserById",[r],r),c=lo("selectLink",[],"https://yoa.st/1-p"),u=lo("selectLink",[],"https://yoa.st/3r3"),p=lo("selectLink",[],"https://yoa.st/site-representation-org-additional-info-upsell"),m=lo("selectLink",[],"https://yoa.st/site-representation-org-identifiers"),h=lo("selectLink",[],"https://yoa.st/site-representation-organization-person"),f=lo("selectPreference",[],"editUserUrl"),_=lo("selectPreference",[],"isLocalSeoActive"),y=lo("selectPreference",[],"companyOrPersonMessage"),w=lo("selectFallback",[],"siteLogoId"),g=lo("selectCanEditUser",[null==d?void 0:d.id],null==d?void 0:d.id),b=lo("selectPreference",[],"isPremium"),v=lo("selectUpsellSettingsAsProps"),x=lo("selectLink",[],"https://yoa.st/get-mastodon-integration"),j=lo("selectLink",[],"https://yoa.st/site-representation-mastodon"),S=lo("selectPreference",[],"localSeoPageSettingUrl");let k=cr((0,Et.sprintf)(/* translators: %1$s expands for Yoast Local SEO, %2$s and %3$s expands to a link tags. */ +(0,Et.__)("You have %1$s activated on your site. You can provide your VAT ID and Tax ID in the %2$s‘Business info’ settings%3$s.","wordpress-seo"),"Yoast Local SEO","<a>","</a>"),{a:(0,ur.jsx)("a",{href:S,target:"_blank",className:"yst-underline yst-font-medium"})}),E=cr((0,Et.sprintf)(/* translators: %1$s expands for Yoast Local SEO, %2$s and %3$s expands to a link tags. */ +(0,Et.__)("You have %1$s activated on your site. You can provide your email and phone in the %2$s‘Business info’ settings%3$s.","wordpress-seo"),"Yoast Local SEO","<a>","</a>"),{a:(0,ur.jsx)("a",{href:S,target:"_blank",className:"yst-underline yst-font-medium"})});S.includes("wpseo_locations")&&(k=cr((0,Et.sprintf)(/* translators: %1$s expands for Yoast Local SEO, %2$s and %3$s expands to a link tags. */ +(0,Et.__)("You have %1$s activated on your site, and you've configured your business for multiple locations. This allows you to provide your VAT ID and Tax ID for %2$seach specific location%3$s.","wordpress-seo"),"Yoast Local SEO","<a>","</a>"),{a:(0,ur.jsx)("a",{href:S,target:"_blank",className:"yst-underline yst-font-medium"})}),E=cr((0,Et.sprintf)(/* translators: %1$s expands for Yoast Local SEO, %2$s and %3$s expands to a link tags. */ +(0,Et.__)("You have %1$s activated on your site, and you've configured your business for multiple locations. This allows you to provide your email and phone for %2$seach specific location%3$s.","wordpress-seo"),"Yoast Local SEO","<a>","</a>"),{a:(0,ur.jsx)("a",{href:S,target:"_blank",className:"yst-underline yst-font-medium"})}));const L=(0,i.useCallback)((async e=>{var t;await e.push(""),null===(t=document.getElementById(`input-wpseo_social-other_social_urls-${l.length}`))||void 0===t||t.focus()}),[l]);return(0,ur.jsx)(ui,{title:(0,Et.__)("Site representation","wordpress-seo"),description:pl((0,Et.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing <a> tags. -(0,Et.__)("This info is intended to appear in %1$sGoogle's Knowledge Graph%2$s.","wordpress-seo"),"<a>","</a>"),c,"link-google-knowledge-graph"),children:(0,mr.jsx)(ko,{children:(0,mr.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,mr.jsxs)(xo,{title:(0,Et.__)("Organization/person","wordpress-seo"),description:bl((0,Et.sprintf)( +(0,Et.__)("This info is intended to appear in %1$sGoogle's Knowledge Graph%2$s.","wordpress-seo"),"<a>","</a>"),c,"link-google-knowledge-graph"),children:(0,ur.jsx)(ho,{children:(0,ur.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,ur.jsxs)(uo,{title:(0,Et.__)("Organization/person","wordpress-seo"),description:pl((0,Et.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing <a> tags. -(0,Et.__)("Choose whether your site represents an organization or a person. %1$sLearn more about the differences and choosing between Organization and Person%2$s.","wordpress-seo"),"<a>","</a>"),h,"link-site-representation-organization-person"),children:[_&&(0,mr.jsx)(i.Alert,{id:"alert-local-seo-company-or-person",variant:"info",children:y}),(0,mr.jsxs)(i.RadioGroup,{disabled:_,children:[(0,mr.jsx)(te,{as:i.Radio,type:"radio",name:"wpseo_titles.company_or_person",id:"input-wpseo_titles-company_or_person-company",label:(0,Et.__)("Organization","wordpress-seo"),value:"company",disabled:_}),(0,mr.jsx)(te,{as:i.Radio,type:"radio",name:"wpseo_titles.company_or_person",id:"input-wpseo_titles-company_or_person-person",label:(0,Et.__)("Person","wordpress-seo"),value:"person",disabled:_})]})]}),(0,mr.jsx)("section",{className:"yst-space-y-8"}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)("div",{className:"yst-relative",children:[(0,mr.jsxs)(jo.Z,{easing:"ease-out",duration:300,delay:300,height:"company"===s?"auto":0,animateOpacity:!0,children:[(0,mr.jsxs)(xo,{title:(0,Et.__)("Organization","wordpress-seo"),description:(0,Et.__)("Please tell us more about your organization. This information will help Google to understand your website, and improve your chance of getting rich results.","wordpress-seo"),children:[(!o||n<1)&&(0,mr.jsx)(i.Alert,{id:"alert-organization-name-logo",variant:"info",children:bl((0,Et.sprintf)( +(0,Et.__)("Choose whether your site represents an organization or a person. %1$sLearn more about the differences and choosing between Organization and Person%2$s.","wordpress-seo"),"<a>","</a>"),h,"link-site-representation-organization-person"),children:[_&&(0,ur.jsx)(a.Alert,{id:"alert-local-seo-company-or-person",variant:"info",children:y}),(0,ur.jsxs)(a.RadioGroup,{disabled:_,children:[(0,ur.jsx)(te,{as:a.Radio,type:"radio",name:"wpseo_titles.company_or_person",id:"input-wpseo_titles-company_or_person-company",label:(0,Et.__)("Organization","wordpress-seo"),value:"company",disabled:_}),(0,ur.jsx)(te,{as:a.Radio,type:"radio",name:"wpseo_titles.company_or_person",id:"input-wpseo_titles-company_or_person-person",label:(0,Et.__)("Person","wordpress-seo"),value:"person",disabled:_})]})]}),(0,ur.jsx)("section",{className:"yst-space-y-8"}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)("div",{className:"yst-relative",children:[(0,ur.jsxs)(po.Z,{easing:"ease-out",duration:300,delay:300,height:"company"===s?"auto":0,animateOpacity:!0,children:[(0,ur.jsxs)(uo,{title:(0,Et.__)("Organization","wordpress-seo"),description:(0,Et.__)("Please tell us more about your organization. This information will help Google to understand your website, and improve your chance of getting rich results.","wordpress-seo"),children:[(!o||n<1)&&(0,ur.jsx)(a.Alert,{id:"alert-organization-name-logo",variant:"info",children:pl((0,Et.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing <a> tags. -(0,Et.__)("An organization name and logo need to be set for structured data to work properly. Since you haven’t set these yet, we are using the site name and logo as default values. %1$sLearn more about the importance of structured data%2$s.","wordpress-seo"),"<a>","</a>"),u,"link-structured-data")}),(0,mr.jsx)(te,{as:i.TextField,name:"wpseo_titles.company_name",id:"input-wpseo_titles-company_name",label:(0,Et.__)("Organization name","wordpress-seo"),placeholder:t}),(0,mr.jsx)(te,{as:i.TextField,name:"wpseo_titles.company_alternate_name",id:"input-wpseo_titles-company_alternate_name",label:(0,Et.__)("Alternate organization name","wordpress-seo"),description:(0,Et.__)("Use the alternate organization name for acronyms, or a shorter version of your organization's name.","wordpress-seo")}),(0,mr.jsx)(Ro,{id:"wpseo_titles-company_logo",label:(0,Et.__)("Organization logo","wordpress-seo"),variant:"square",previewLabel:pr((0,Et.sprintf)( +(0,Et.__)("An organization name and logo need to be set for structured data to work properly. Since you haven’t set these yet, we are using the site name and logo as default values. %1$sLearn more about the importance of structured data%2$s.","wordpress-seo"),"<a>","</a>"),u,"link-structured-data")}),(0,ur.jsx)(te,{as:a.TextField,name:"wpseo_titles.company_name",id:"input-wpseo_titles-company_name",label:(0,Et.__)("Organization name","wordpress-seo"),placeholder:t}),(0,ur.jsx)(te,{as:a.TextField,name:"wpseo_titles.company_alternate_name",id:"input-wpseo_titles-company_alternate_name",label:(0,Et.__)("Alternate organization name","wordpress-seo"),description:(0,Et.__)("Use the alternate organization name for acronyms, or a shorter version of your organization's name.","wordpress-seo")}),(0,ur.jsx)(bo,{id:"wpseo_titles-company_logo",label:(0,Et.__)("Organization logo","wordpress-seo"),variant:"square",previewLabel:cr((0,Et.sprintf)( /* translators: %1$s expands to an opening strong tag. %2$s expands to a closing strong tag. %3$s expands to the recommended image size. */ -(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","696x696px"),{strong:(0,mr.jsx)("strong",{className:"yst-font-semibold"})}),mediaUrlName:"wpseo_titles.company_logo",mediaIdName:"wpseo_titles.company_logo_id",fallbackMediaId:w})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsxs)(xo,{id:"fieldset-wpseo_social-other_social_urls",title:(0,Et.__)("Other profiles","wordpress-seo"),description:(0,Et.__)("Tell us if you have any other profiles on the web that belong to your organization. This can be any number of profiles, like YouTube, LinkedIn, Pinterest, or even Wikipedia.","wordpress-seo"),children:[(0,mr.jsx)(El,{as:i.TextField,name:"wpseo_social.facebook_site",id:"input-wpseo_social-facebook_site",label:(0,Et.__)("Facebook","wordpress-seo"),placeholder:(0,Et.__)("E.g. https://facebook.com/yoast","wordpress-seo")}),(0,mr.jsx)(El,{as:i.TextField,name:"wpseo_social.twitter_site",id:"input-wpseo_social-twitter_site",label:(0,Et.__)("X","wordpress-seo"),placeholder:(0,Et.__)("E.g. https://x.com/yoast","wordpress-seo")}),(0,mr.jsx)(i.FeatureUpsell,{shouldUpsell:!b,variant:"card",cardLink:x,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ -(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...v,children:(0,mr.jsx)(dd,{as:i.TextField,name:"wpseo_social.mastodon_url",id:"input-wpseo_social-mastodon_url",label:(0,Et.__)("Mastodon","wordpress-seo"),placeholder:(0,Et.__)("E.g. https://mastodon.social/@yoast","wordpress-seo"),labelSuffix:b&&(0,mr.jsx)(i.Badge,{className:"yst-ms-1.5",size:"small",variant:"upsell",children:"Premium"}),isDummy:!b,description:(0,mr.jsxs)(mr.Fragment,{children:[(0,Et.__)("Get your site verified in your Mastodon profile.","wordpress-seo")," ",(0,mr.jsx)(i.Link,{id:"link-wpseo_social-mastodon_url",href:j,target:"_blank",rel:"noopener",children:(0,Et.__)("Read more about how to get your site verified.","wordpress-seo")})]})})}),(0,mr.jsx)(ne,{name:"wpseo_social.other_social_urls",children:e=>(0,mr.jsxs)(mr.Fragment,{children:[l.map(((t,s)=>(0,mr.jsx)(tr,{as:a.Fragment,appear:!0,show:!0,enter:"yst-transition yst-ease-out yst-duration-300",enterFrom:"yst-transform yst-opacity-0",enterTo:"yst-transform yst-opacity-100",leave:"yst-transition yst-ease-out yst-duration-300",leaveFrom:"yst-transform yst-opacity-100",leaveTo:"yst-transform yst-opacity-0",children:(0,mr.jsxs)("div",{className:"yst-w-full yst-flex yst-items-start yst-gap-2",children:[(0,mr.jsx)(El,{as:i.TextField,name:`wpseo_social.other_social_urls.${s}`,id:`input-wpseo_social-other_social_urls-${s}`,label:(0,Et.sprintf)((0,Et.__)("Other profile %1$s","wordpress-seo"),s+1),placeholder:(0,Et.__)("E.g. https://example.com/yoast","wordpress-seo"),className:"yst-grow"}),(0,mr.jsx)(i.Button,{variant:"secondary",onClick:e.remove.bind(null,s),className:"yst-mt-7 yst-p-2.5","aria-label":(0,Et.sprintf)((0,Et.__)("Remove Other profile %1$s","wordpress-seo"),s+1),children:(0,mr.jsx)(Yl,{className:"yst-h-5 yst-w-5"})})]})},`wpseo_social.other_social_urls.${s}`))),(0,mr.jsxs)(i.Button,{id:"button-add-social-profile",variant:"secondary",onClick:()=>L(e),children:[(0,mr.jsx)(Zl,{className:"yst--ms-1 yst-me-1 yst-h-5 yst-w-5 yst-text-slate-400"}),(0,Et.__)("Add another profile","wordpress-seo")]})]})})]}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(xo,{title:(0,mr.jsxs)(mr.Fragment,{children:[(0,Et.__)("Additional organization info","wordpress-seo"),b&&(0,mr.jsx)(i.Badge,{className:"yst-ms-1.5",size:"small",variant:"upsell",children:"Premium"})]}),description:(0,Et.__)("Enrich your organization's profile by providing more in-depth information. The more details you share, the better Google understands your website.","wordpress-seo"),children:(0,mr.jsxs)(i.FeatureUpsell,{shouldUpsell:!b,variant:"card",cardLink:p,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ -(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...v,children:[(0,mr.jsx)(dd,{as:i.TextareaField,name:"wpseo_titles.org-description",id:"input-wpseo_titles-org-description",label:(0,Et.__)("Organization description","wordpress-seo"),isDummy:!b,maxLength:2e3}),_&&b&&(0,mr.jsx)(i.Alert,{id:"alert-local-seo-vat-or-tax-id",variant:"info",children:E}),(0,mr.jsx)(dd,{as:i.TextField,name:"wpseo_titles.org-email",id:"input-wpseo_titles-org-email",type:"email",label:(0,Et.__)("Organization email address","wordpress-seo"),isDummy:!b||_}),(0,mr.jsx)(dd,{as:i.TextField,name:"wpseo_titles.org-phone",id:"input-wpseo_titles-org-phone",label:(0,Et.__)("Organization phone number","wordpress-seo"),isDummy:!b||_}),(0,mr.jsx)(dd,{as:i.TextField,name:"wpseo_titles.org-legal-name",id:"input-wpseo_titles-org-legal-name",label:(0,Et.__)("Organization's legal name","wordpress-seo"),isDummy:!b}),(0,mr.jsx)(dd,{as:i.TextField,className:"yst-w-3/5",name:"wpseo_titles.org-founding-date",id:"input-wpseo_titles-org-founding-date",label:(0,Et.__)("Organization's founding date","wordpress-seo"),type:"date",isDummy:!b}),(0,mr.jsx)(cd,{name:"wpseo_titles.org-number-employees",className:"yst-w-3/5",id:"input-wpseo_titles-org-number-employees",label:(0,Et.__)("Number of employees","wordpress-seo"),placeholder:(0,Et.__)("Select a range / Enter a number","wordpress-seo"),isDummy:!b,options:[{value:"",label:"None"},{value:"1-10",label:(0,Et.__)("1–10 employees","wordpress-seo")},{value:"11-50",label:(0,Et.__)("11–50 employees","wordpress-seo")},{value:"51-200",label:(0,Et.__)("51–200 employees","wordpress-seo")},{value:"201-500",label:(0,Et.__)("201–500 employees","wordpress-seo")},{value:"501-1000",label:(0,Et.__)("501–1000 employees","wordpress-seo")},{value:"1001-5000",label:(0,Et.__)("1001–5000 employees","wordpress-seo")},{value:"5001-10000",label:(0,Et.__)("5001–10000 employees","wordpress-seo")}]})]})}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(xo,{title:(0,mr.jsxs)(mr.Fragment,{children:[(0,Et.__)("Organization identifiers","wordpress-seo"),b&&(0,mr.jsx)(i.Badge,{className:"yst-ms-1.5",size:"small",variant:"upsell",children:"Premium"})]}),description:(0,Et.__)("Please tell us more about your organization’s identifiers. This information will help Google to display accurate and helpful details about your organization.","wordpress-seo"),children:(0,mr.jsxs)(i.FeatureUpsell,{shouldUpsell:!b,variant:"card",cardLink:m,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ -(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...v,children:[_&&b&&(0,mr.jsx)(i.Alert,{id:"alert-local-seo-vat-or-tax-id",variant:"info",children:k}),(0,mr.jsx)(dd,{as:i.TextField,name:"wpseo_titles.org-vat-id",id:"input-wpseo_titles-org-vat-id",label:(0,Et.__)("VAT ID","wordpress-seo"),isDummy:!b||_}),(0,mr.jsx)(dd,{as:i.TextField,name:"wpseo_titles.org-tax-id",id:"input-wpseo_titles-org-tax-id",label:(0,Et.__)("Tax ID","wordpress-seo"),isDummy:!b||_}),(0,mr.jsx)(dd,{as:i.TextField,name:"wpseo_titles.org-iso",id:"input-wpseo_titles-org-iso",label:(0,Et.__)("ISO 6523","wordpress-seo"),isDummy:!b}),(0,mr.jsx)(dd,{as:i.TextField,name:"wpseo_titles.org-duns",id:"input-wpseo_titles-org-duns",label:(0,Et.__)("DUNS","wordpress-seo"),isDummy:!b}),(0,mr.jsx)(dd,{as:i.TextField,name:"wpseo_titles.org-leicode",id:"input-wpseo_titles-org-leicode",label:(0,Et.__)("LEI code","wordpress-seo"),isDummy:!b}),(0,mr.jsx)(dd,{as:i.TextField,name:"wpseo_titles.org-naics",id:"input-wpseo_titles-org-naics",label:(0,Et.__)("NAICS","wordpress-seo"),isDummy:!b})]})})]}),(0,mr.jsx)(jo.Z,{easing:"ease-out",duration:300,delay:300,height:"person"===s?"auto":0,animateOpacity:!0,children:(0,mr.jsxs)(xo,{title:(0,Et.__)("Personal info","wordpress-seo"),description:(0,Et.__)("Please tell us more about the person this site represents.","wordpress-seo"),children:[(0,mr.jsx)(Uo,{name:"wpseo_titles.company_or_person_user_id",id:"input-wpseo_titles-company_or_person_user_id",label:(0,Et.__)("Select a user","wordpress-seo"),className:"yst-max-w-sm"}),!(0,le.isEmpty)(d)&&(0,mr.jsxs)(i.Alert,{id:"alert-person-user-profile",children:[g&&pr((0,Et.sprintf)( +(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","696x696px"),{strong:(0,ur.jsx)("strong",{className:"yst-font-semibold"})}),mediaUrlName:"wpseo_titles.company_logo",mediaIdName:"wpseo_titles.company_logo_id",fallbackMediaId:w})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsxs)(uo,{id:"fieldset-wpseo_social-other_social_urls",title:(0,Et.__)("Other profiles","wordpress-seo"),description:(0,Et.__)("Tell us if you have any other profiles on the web that belong to your organization. This can be any number of profiles, like YouTube, LinkedIn, Pinterest, or even Wikipedia.","wordpress-seo"),children:[(0,ur.jsx)(wl,{as:a.TextField,name:"wpseo_social.facebook_site",id:"input-wpseo_social-facebook_site",label:(0,Et.__)("Facebook","wordpress-seo"),placeholder:(0,Et.__)("E.g. https://facebook.com/yoast","wordpress-seo")}),(0,ur.jsx)(wl,{as:a.TextField,name:"wpseo_social.twitter_site",id:"input-wpseo_social-twitter_site",label:(0,Et.__)("X","wordpress-seo"),placeholder:(0,Et.__)("E.g. https://x.com/yoast","wordpress-seo")}),(0,ur.jsx)(a.FeatureUpsell,{shouldUpsell:!b,variant:"card",cardLink:x,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ +(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...v,children:(0,ur.jsx)(td,{as:a.TextField,name:"wpseo_social.mastodon_url",id:"input-wpseo_social-mastodon_url",label:(0,Et.__)("Mastodon","wordpress-seo"),placeholder:(0,Et.__)("E.g. https://mastodon.social/@yoast","wordpress-seo"),labelSuffix:b&&(0,ur.jsx)(a.Badge,{className:"yst-ms-1.5",size:"small",variant:"upsell",children:"Premium"}),isDummy:!b,description:(0,ur.jsxs)(ur.Fragment,{children:[(0,Et.__)("Get your site verified in your Mastodon profile.","wordpress-seo")," ",(0,ur.jsx)(a.Link,{id:"link-wpseo_social-mastodon_url",href:j,target:"_blank",rel:"noopener",children:(0,Et.__)("Read more about how to get your site verified.","wordpress-seo")})]})})}),(0,ur.jsx)(ne,{name:"wpseo_social.other_social_urls",children:e=>(0,ur.jsxs)(ur.Fragment,{children:[l.map(((t,s)=>(0,ur.jsx)(tr,{as:i.Fragment,appear:!0,show:!0,enter:"yst-transition yst-ease-out yst-duration-300",enterFrom:"yst-transform yst-opacity-0",enterTo:"yst-transform yst-opacity-100",leave:"yst-transition yst-ease-out yst-duration-300",leaveFrom:"yst-transform yst-opacity-100",leaveTo:"yst-transform yst-opacity-0",children:(0,ur.jsxs)("div",{className:"yst-w-full yst-flex yst-items-start yst-gap-2",children:[(0,ur.jsx)(wl,{as:a.TextField,name:`wpseo_social.other_social_urls.${s}`,id:`input-wpseo_social-other_social_urls-${s}`,label:(0,Et.sprintf)((0,Et.__)("Other profile %1$s","wordpress-seo"),s+1),placeholder:(0,Et.__)("E.g. https://example.com/yoast","wordpress-seo"),className:"yst-grow"}),(0,ur.jsx)(a.Button,{variant:"secondary",onClick:e.remove.bind(null,s),className:"yst-mt-7 yst-p-2.5","aria-label":(0,Et.sprintf)((0,Et.__)("Remove Other profile %1$s","wordpress-seo"),s+1),children:(0,ur.jsx)(Bl,{className:"yst-h-5 yst-w-5"})})]})},`wpseo_social.other_social_urls.${s}`))),(0,ur.jsxs)(a.Button,{id:"button-add-social-profile",variant:"secondary",onClick:()=>L(e),children:[(0,ur.jsx)(Ul,{className:"yst--ms-1 yst-me-1 yst-h-5 yst-w-5 yst-text-slate-400"}),(0,Et.__)("Add another profile","wordpress-seo")]})]})})]}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(uo,{title:(0,ur.jsxs)(ur.Fragment,{children:[(0,Et.__)("Additional organization info","wordpress-seo"),b&&(0,ur.jsx)(a.Badge,{className:"yst-ms-1.5",size:"small",variant:"upsell",children:"Premium"})]}),description:(0,Et.__)("Enrich your organization's profile by providing more in-depth information. The more details you share, the better Google understands your website.","wordpress-seo"),children:(0,ur.jsxs)(a.FeatureUpsell,{shouldUpsell:!b,variant:"card",cardLink:p,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ +(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...v,children:[(0,ur.jsx)(td,{as:a.TextareaField,name:"wpseo_titles.org-description",id:"input-wpseo_titles-org-description",label:(0,Et.__)("Organization description","wordpress-seo"),isDummy:!b,maxLength:2e3}),_&&b&&(0,ur.jsx)(a.Alert,{id:"alert-local-seo-vat-or-tax-id",variant:"info",children:E}),(0,ur.jsx)(td,{as:a.TextField,name:"wpseo_titles.org-email",id:"input-wpseo_titles-org-email",type:"email",label:(0,Et.__)("Organization email address","wordpress-seo"),isDummy:!b||_}),(0,ur.jsx)(td,{as:a.TextField,name:"wpseo_titles.org-phone",id:"input-wpseo_titles-org-phone",label:(0,Et.__)("Organization phone number","wordpress-seo"),isDummy:!b||_}),(0,ur.jsx)(td,{as:a.TextField,name:"wpseo_titles.org-legal-name",id:"input-wpseo_titles-org-legal-name",label:(0,Et.__)("Organization's legal name","wordpress-seo"),isDummy:!b}),(0,ur.jsx)(td,{as:a.TextField,className:"yst-w-3/5",name:"wpseo_titles.org-founding-date",id:"input-wpseo_titles-org-founding-date",label:(0,Et.__)("Organization's founding date","wordpress-seo"),type:"date",isDummy:!b}),(0,ur.jsx)(sd,{name:"wpseo_titles.org-number-employees",className:"yst-w-3/5",id:"input-wpseo_titles-org-number-employees",label:(0,Et.__)("Number of employees","wordpress-seo"),placeholder:(0,Et.__)("Select a range / Enter a number","wordpress-seo"),isDummy:!b,options:[{value:"",label:"None"},{value:"1-10",label:(0,Et.__)("1–10 employees","wordpress-seo")},{value:"11-50",label:(0,Et.__)("11–50 employees","wordpress-seo")},{value:"51-200",label:(0,Et.__)("51–200 employees","wordpress-seo")},{value:"201-500",label:(0,Et.__)("201–500 employees","wordpress-seo")},{value:"501-1000",label:(0,Et.__)("501–1000 employees","wordpress-seo")},{value:"1001-5000",label:(0,Et.__)("1001–5000 employees","wordpress-seo")},{value:"5001-10000",label:(0,Et.__)("5001–10000 employees","wordpress-seo")}]})]})}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(uo,{title:(0,ur.jsxs)(ur.Fragment,{children:[(0,Et.__)("Organization identifiers","wordpress-seo"),b&&(0,ur.jsx)(a.Badge,{className:"yst-ms-1.5",size:"small",variant:"upsell",children:"Premium"})]}),description:(0,Et.__)("Please tell us more about your organization’s identifiers. This information will help Google to display accurate and helpful details about your organization.","wordpress-seo"),children:(0,ur.jsxs)(a.FeatureUpsell,{shouldUpsell:!b,variant:"card",cardLink:m,cardText:(0,Et.sprintf)(/* translators: %1$s expands to Premium. */ +(0,Et.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...v,children:[_&&b&&(0,ur.jsx)(a.Alert,{id:"alert-local-seo-vat-or-tax-id",variant:"info",children:k}),(0,ur.jsx)(td,{as:a.TextField,name:"wpseo_titles.org-vat-id",id:"input-wpseo_titles-org-vat-id",label:(0,Et.__)("VAT ID","wordpress-seo"),isDummy:!b||_}),(0,ur.jsx)(td,{as:a.TextField,name:"wpseo_titles.org-tax-id",id:"input-wpseo_titles-org-tax-id",label:(0,Et.__)("Tax ID","wordpress-seo"),isDummy:!b||_}),(0,ur.jsx)(td,{as:a.TextField,name:"wpseo_titles.org-iso",id:"input-wpseo_titles-org-iso",label:(0,Et.__)("ISO 6523","wordpress-seo"),isDummy:!b}),(0,ur.jsx)(td,{as:a.TextField,name:"wpseo_titles.org-duns",id:"input-wpseo_titles-org-duns",label:(0,Et.__)("DUNS","wordpress-seo"),isDummy:!b}),(0,ur.jsx)(td,{as:a.TextField,name:"wpseo_titles.org-leicode",id:"input-wpseo_titles-org-leicode",label:(0,Et.__)("LEI code","wordpress-seo"),isDummy:!b}),(0,ur.jsx)(td,{as:a.TextField,name:"wpseo_titles.org-naics",id:"input-wpseo_titles-org-naics",label:(0,Et.__)("NAICS","wordpress-seo"),isDummy:!b})]})})]}),(0,ur.jsx)(po.Z,{easing:"ease-out",duration:300,delay:300,height:"person"===s?"auto":0,animateOpacity:!0,children:(0,ur.jsxs)(uo,{title:(0,Et.__)("Personal info","wordpress-seo"),description:(0,Et.__)("Please tell us more about the person this site represents.","wordpress-seo"),children:[(0,ur.jsx)($o,{name:"wpseo_titles.company_or_person_user_id",id:"input-wpseo_titles-company_or_person_user_id",label:(0,Et.__)("Select a user","wordpress-seo"),className:"yst-max-w-sm"}),!(0,le.isEmpty)(d)&&(0,ur.jsxs)(a.Alert,{id:"alert-person-user-profile",children:[g&&cr((0,Et.sprintf)( /* translators: %1$s and %2$s are replaced by opening and closing <span> tags. %3$s and %4$s are replaced by opening and closing <a> tags. %5$s is replaced by the selected user display name. */ -(0,Et.__)("You have selected the user %1$s%5$s%2$s as the person this site represents. Their user profile information will now be used in search results. %3$sUpdate their profile to make sure the information is correct%4$s.","wordpress-seo"),"<strong>","</strong>","<a>","</a>",null==d?void 0:d.name),{strong:(0,mr.jsx)("strong",{className:"yst-font-medium"}),a:(0,mr.jsx)("a",{id:"link-person-user-profile",href:`${f}?user_id=${null==d?void 0:d.id}`,target:"_blank",rel:"noopener noreferrer"})}),!g&&pr((0,Et.sprintf)( +(0,Et.__)("You have selected the user %1$s%5$s%2$s as the person this site represents. Their user profile information will now be used in search results. %3$sUpdate their profile to make sure the information is correct%4$s.","wordpress-seo"),"<strong>","</strong>","<a>","</a>",null==d?void 0:d.name),{strong:(0,ur.jsx)("strong",{className:"yst-font-medium"}),a:(0,ur.jsx)("a",{id:"link-person-user-profile",href:`${f}?user_id=${null==d?void 0:d.id}`,target:"_blank",rel:"noopener noreferrer"})}),!g&&cr((0,Et.sprintf)( /* translators: %1$s and %2$s are replaced by opening and closing <span> tags. %3$s is replaced by the selected user display name. */ -(0,Et.__)("You have selected the user %1$s%3$s%2$s as the person this site represents. Their user profile information will now be used in search results. We're sorry, you're not allowed to edit this user's profile. Please contact your admin or %1$s%3$s%2$s to check and/or update the profile.","wordpress-seo"),"<strong>","</strong>",null==d?void 0:d.name),{strong:(0,mr.jsx)("strong",{className:"yst-font-medium"})})]}),(0,mr.jsx)(Ro,{id:"wpseo_titles-person_logo",label:(0,Et.__)("Personal logo or avatar","wordpress-seo"),variant:"square",previewLabel:pr((0,Et.sprintf)( +(0,Et.__)("You have selected the user %1$s%3$s%2$s as the person this site represents. Their user profile information will now be used in search results. We're sorry, you're not allowed to edit this user's profile. Please contact your admin or %1$s%3$s%2$s to check and/or update the profile.","wordpress-seo"),"<strong>","</strong>",null==d?void 0:d.name),{strong:(0,ur.jsx)("strong",{className:"yst-font-medium"})})]}),(0,ur.jsx)(bo,{id:"wpseo_titles-person_logo",label:(0,Et.__)("Personal logo or avatar","wordpress-seo"),variant:"square",previewLabel:cr((0,Et.sprintf)( /* translators: %1$s expands to an opening strong tag. %2$s expands to a closing strong tag. %3$s expands to the recommended image size. */ -(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","696x696px"),{strong:(0,mr.jsx)("strong",{className:"yst-font-semibold"})}),mediaUrlName:"wpseo_titles.person_logo",mediaIdName:"wpseo_titles.person_logo_id",fallbackMediaId:w,disabled:!r})]})})]})]})})})},pd=()=>{const e=bo("selectReplacementVariablesFor",[],"search","search"),t=bo("selectRecommendedReplacementVariablesFor",[],"search","search"),s=bo("selectReplacementVariablesFor",[],"404","404"),r=bo("selectRecommendedReplacementVariablesFor",[],"404","404");return(0,mr.jsx)(xa,{title:(0,Et.__)("Special pages","wordpress-seo"),children:(0,mr.jsx)(ko,{children:(0,mr.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,mr.jsx)(xo,{title:(0,Et.__)("Internal search pages","wordpress-seo"),description:(0,Et.__)("Determine how the title of your internal search pages should look in the browser.","wordpress-seo"),children:(0,mr.jsx)(Oo,{type:"title",name:"wpseo_titles.title-search-wpseo",fieldId:"input-wpseo_titles-title-search-wpseo",label:(0,Et.__)("Page title","wordpress-seo"),replacementVariables:e,recommendedReplacementVariables:t})}),(0,mr.jsx)("hr",{className:"yst-my-8"}),(0,mr.jsx)(xo,{title:(0,Et.__)("404 error pages","wordpress-seo"),description:(0,Et.__)("Determine how the title of your 404 error pages should look in the browser.","wordpress-seo"),children:(0,mr.jsx)(Oo,{type:"title",name:"wpseo_titles.title-404-wpseo",fieldId:"input-wpseo_titles-title-404-wpseo",label:(0,Et.__)("Page title","wordpress-seo"),replacementVariables:s,recommendedReplacementVariables:r})})]})})})},md=/content=(['"])?(?<content>[^'"> ]+)(?:\1|[ />])/,hd=e=>{var t;const s=e.target.value.match(md);return null!=s&&null!==(t=s.groups)&&void 0!==t&&t.content?s.groups.content:e.target.value},fd=Sl(kl),_d=()=>{const e=bo("selectPreference",[],"siteUrl");return(0,mr.jsx)(xa,{title:(0,Et.__)("Site connections","wordpress-seo"),description:(0,Et.__)("Verify your site with different tools. This will add a verification meta tag to your homepage. You can find instructions on how to verify your site for each platform by following the link in the description.","wordpress-seo"),children:(0,mr.jsx)(ko,{children:(0,mr.jsx)("div",{className:"yst-max-w-5xl",children:(0,mr.jsxs)("fieldset",{className:"yst-min-width-0 yst-max-w-screen-sm yst-space-y-8",children:[(0,mr.jsx)(fd,{as:i.TextField,type:"text",name:"wpseo.ahrefsverify",id:"input-wpseo-ahrefsverify",label:(0,Et.__)("Ahrefs","wordpress-seo"),description:bl((0,Et.sprintf)( +(0,Et.__)("Recommended size for this image is %1$s%3$s%2$s","wordpress-seo"),"<strong>","</strong>","696x696px"),{strong:(0,ur.jsx)("strong",{className:"yst-font-semibold"})}),mediaUrlName:"wpseo_titles.person_logo",mediaIdName:"wpseo_titles.person_logo_id",fallbackMediaId:w,disabled:!r})]})})]})]})})})},od=()=>{const e=lo("selectReplacementVariablesFor",[],"search","search"),t=lo("selectRecommendedReplacementVariablesFor",[],"search","search"),s=lo("selectReplacementVariablesFor",[],"404","404"),r=lo("selectRecommendedReplacementVariablesFor",[],"404","404");return(0,ur.jsx)(ui,{title:(0,Et.__)("Special pages","wordpress-seo"),children:(0,ur.jsx)(ho,{children:(0,ur.jsxs)("div",{className:"yst-max-w-5xl",children:[(0,ur.jsx)(uo,{title:(0,Et.__)("Internal search pages","wordpress-seo"),description:(0,Et.__)("Determine how the title of your internal search pages should look in the browser.","wordpress-seo"),children:(0,ur.jsx)(jo,{type:"title",name:"wpseo_titles.title-search-wpseo",fieldId:"input-wpseo_titles-title-search-wpseo",label:(0,Et.__)("Page title","wordpress-seo"),replacementVariables:e,recommendedReplacementVariables:t})}),(0,ur.jsx)("hr",{className:"yst-my-8"}),(0,ur.jsx)(uo,{title:(0,Et.__)("404 error pages","wordpress-seo"),description:(0,Et.__)("Determine how the title of your 404 error pages should look in the browser.","wordpress-seo"),children:(0,ur.jsx)(jo,{type:"title",name:"wpseo_titles.title-404-wpseo",fieldId:"input-wpseo_titles-title-404-wpseo",label:(0,Et.__)("Page title","wordpress-seo"),replacementVariables:s,recommendedReplacementVariables:r})})]})})})},id=/content=(['"])?(?<content>[^'"> ]+)(?:\1|[ />])/,ad=e=>{var t;const s=e.target.value.match(id);return null!=s&&null!==(t=s.groups)&&void 0!==t&&t.content?s.groups.content:e.target.value},nd=_l(yl),ld=()=>{const e=lo("selectPreference",[],"siteUrl");return(0,ur.jsx)(ui,{title:(0,Et.__)("Site connections","wordpress-seo"),description:(0,Et.__)("Verify your site with different tools. This will add a verification meta tag to your homepage. You can find instructions on how to verify your site for each platform by following the link in the description.","wordpress-seo"),children:(0,ur.jsx)(ho,{children:(0,ur.jsx)("div",{className:"yst-max-w-5xl",children:(0,ur.jsxs)("fieldset",{className:"yst-min-width-0 yst-max-w-screen-sm yst-space-y-8",children:[(0,ur.jsx)(nd,{as:a.TextField,type:"text",name:"wpseo.ahrefsverify",id:"input-wpseo-ahrefsverify",label:(0,Et.__)("Ahrefs","wordpress-seo"),description:pl((0,Et.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing <a> tags, respectively. -(0,Et.__)("Get your verification code in %1$sAhrefs%2$s.","wordpress-seo"),"<a>","</a>"),"https://yoa.st/ahrefs-verification-code","link-ahrefs-webmaster-tools"),placeholder:(0,Et.__)("Add verification code","wordpress-seo"),transformValue:hd}),(0,mr.jsx)(fd,{as:i.TextField,type:"text",name:"wpseo.baiduverify",id:"input-wpseo-baiduverify",label:(0,Et.__)("Baidu","wordpress-seo"),description:bl((0,Et.sprintf)( +(0,Et.__)("Get your verification code in %1$sAhrefs%2$s.","wordpress-seo"),"<a>","</a>"),"https://yoa.st/ahrefs-verification-code","link-ahrefs-webmaster-tools"),placeholder:(0,Et.__)("Add verification code","wordpress-seo"),transformValue:ad}),(0,ur.jsx)(nd,{as:a.TextField,type:"text",name:"wpseo.baiduverify",id:"input-wpseo-baiduverify",label:(0,Et.__)("Baidu","wordpress-seo"),description:pl((0,Et.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing <a> tags, respectively. -(0,Et.__)("Get your verification code in %1$sBaidu Webmaster tools%2$s.","wordpress-seo"),"<a>","</a>"),"https://ziyuan.baidu.com/site","link-baidu-webmaster-tools"),placeholder:(0,Et.__)("Add verification code","wordpress-seo"),transformValue:hd}),(0,mr.jsx)(fd,{as:i.TextField,type:"text",name:"wpseo.msverify",id:"input-wpseo-msverify",label:(0,Et.__)("Bing","wordpress-seo"),description:bl((0,Et.sprintf)( +(0,Et.__)("Get your verification code in %1$sBaidu Webmaster tools%2$s.","wordpress-seo"),"<a>","</a>"),"https://ziyuan.baidu.com/site","link-baidu-webmaster-tools"),placeholder:(0,Et.__)("Add verification code","wordpress-seo"),transformValue:ad}),(0,ur.jsx)(nd,{as:a.TextField,type:"text",name:"wpseo.msverify",id:"input-wpseo-msverify",label:(0,Et.__)("Bing","wordpress-seo"),description:pl((0,Et.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing <a> tags, respectively. -(0,Et.__)("Get your verification code in %1$sBing Webmaster tools%2$s.","wordpress-seo"),"<a>","</a>"),`https://www.bing.com/toolbox/webmaster/#/Dashboard/?url=${e}`,"link-bing-webmaster-tools"),placeholder:(0,Et.__)("Add verification code","wordpress-seo"),transformValue:hd}),(0,mr.jsx)(fd,{as:i.TextField,type:"text",name:"wpseo.googleverify",id:"input-wpseo-googleverify",label:(0,Et.__)("Google","wordpress-seo"),description:bl((0,Et.sprintf)( +(0,Et.__)("Get your verification code in %1$sBing Webmaster tools%2$s.","wordpress-seo"),"<a>","</a>"),`https://www.bing.com/toolbox/webmaster/#/Dashboard/?url=${e}`,"link-bing-webmaster-tools"),placeholder:(0,Et.__)("Add verification code","wordpress-seo"),transformValue:ad}),(0,ur.jsx)(nd,{as:a.TextField,type:"text",name:"wpseo.googleverify",id:"input-wpseo-googleverify",label:(0,Et.__)("Google","wordpress-seo"),description:pl((0,Et.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing <a> tags, respectively. -(0,Et.__)("Get your verification code in %1$sGoogle Search console%2$s.","wordpress-seo"),"<a>","</a>"),(0,Ct.addQueryArgs)("https://search.google.com/search-console/users",{hl:"en",tid:"alternate",siteUrl:e}),"link-google-search-console"),placeholder:(0,Et.__)("Add verification code","wordpress-seo"),transformValue:hd}),(0,mr.jsx)(fd,{as:i.TextField,type:"text",name:"wpseo_social.pinterestverify",id:"input-wpseo_social-pinterestverify",label:(0,Et.__)("Pinterest","wordpress-seo"),description:bl((0,Et.sprintf)( +(0,Et.__)("Get your verification code in %1$sGoogle Search console%2$s.","wordpress-seo"),"<a>","</a>"),(0,Nt.addQueryArgs)("https://search.google.com/search-console/users",{hl:"en",tid:"alternate",siteUrl:e}),"link-google-search-console"),placeholder:(0,Et.__)("Add verification code","wordpress-seo"),transformValue:ad}),(0,ur.jsx)(nd,{as:a.TextField,type:"text",name:"wpseo_social.pinterestverify",id:"input-wpseo_social-pinterestverify",label:(0,Et.__)("Pinterest","wordpress-seo"),description:pl((0,Et.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing <a> tags, respectively. -(0,Et.__)("Claim your site over at %1$sPinterest%2$s.","wordpress-seo"),"<a>","</a>"),"https://www.pinterest.com/settings/claim","link-pinterest"),placeholder:(0,Et.__)("Add verification code","wordpress-seo"),transformValue:hd}),(0,mr.jsx)(fd,{as:i.TextField,type:"text",name:"wpseo.yandexverify",id:"input-wpseo-yandexverify",label:(0,Et.__)("Yandex","wordpress-seo"),description:bl((0,Et.sprintf)( +(0,Et.__)("Claim your site over at %1$sPinterest%2$s.","wordpress-seo"),"<a>","</a>"),"https://www.pinterest.com/settings/claim","link-pinterest"),placeholder:(0,Et.__)("Add verification code","wordpress-seo"),transformValue:ad}),(0,ur.jsx)(nd,{as:a.TextField,type:"text",name:"wpseo.yandexverify",id:"input-wpseo-yandexverify",label:(0,Et.__)("Yandex","wordpress-seo"),description:pl((0,Et.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing <a> tags, respectively. -(0,Et.__)("Get your verification code in %1$sYandex Webmaster tools%2$s.","wordpress-seo"),"<a>","</a>"),"https://webmaster.yandex.com/sites/add/","link-yandex-webmaster-tools"),placeholder:(0,Et.__)("Add verification code","wordpress-seo"),transformValue:hd})]})})})})},yd=({postTypes:e,taxonomies:t,idSuffix:s=""})=>{const r=(0,i.useSvgAria)(),{pathname:o}=Qe(),n=bo("selectPreference",[],"isPremium"),{history:l,setHistory:d}=(0,i.useNavigationContext)();(0,a.useEffect)((()=>{d([`menu-content-types${s}`,`menu-categories-and-tags${s}`,`menu-general${s}`])}),[]);const c=(0,a.useCallback)((({show:e,toggle:t,ariaProps:s})=>{const o=(0,a.useMemo)((()=>e?ar:ir),[e]);return(0,mr.jsxs)("div",{className:"yst-relative",children:[(0,mr.jsx)("hr",{className:"yst-absolute yst-inset-x-0 yst-top-1/2 yst-bg-slate-200"}),(0,mr.jsxs)("button",{type:"button",className:"yst-relative yst-flex yst-items-center yst-gap-1.5 yst-px-2.5 yst-py-1 yst-mx-auto yst-text-xs yst-font-medium yst-text-slate-700 yst-bg-slate-50 yst-rounded-full yst-border yst-border-slate-300 hover:yst-bg-white hover:yst-text-slate-800 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-primary-500 focus:yst-ring-offset-2",onClick:t,...s,children:[e?(0,Et.__)("Show less","wordpress-seo"):(0,Et.__)("Show more","wordpress-seo"),(0,mr.jsx)(o,{className:"yst-h-4 yst-w-4 yst-flex-shrink-0 yst-text-slate-400 group-hover:yst-text-slate-500 yst-stroke-3",...r})]})]})}),[]);return(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsxs)("header",{className:"yst-px-3 yst-mb-6 yst-space-y-6",children:[(0,mr.jsx)(xt,{id:`link-yoast-logo${s}`,to:"/",className:"yst-inline-block yst-rounded-md focus:yst-ring-primary-500","aria-label":"Yoast SEO"+(n?" Premium":""),children:(0,mr.jsx)(po,{className:"yst-w-40",...r})}),(0,mr.jsx)(ll,{buttonId:`button-search${s}`})]}),(0,mr.jsxs)("div",{className:"yst-px-0.5 yst-space-y-6",children:[(0,mr.jsxs)(i.SidebarNavigation.MenuItem,{id:`menu-general${s}`,icon:sr,label:(0,Et.__)("General","wordpress-seo"),defaultOpen:l.includes(`menu-general${s}`),children:[(0,mr.jsx)(Sr,{to:"/site-features",label:(0,Et.__)("Site features","wordpress-seo"),idSuffix:s}),(0,mr.jsx)(Sr,{to:"/site-basics",label:(0,Et.__)("Site basics","wordpress-seo"),idSuffix:s}),(0,mr.jsx)(Sr,{to:"/site-representation",label:(0,Et.__)("Site representation","wordpress-seo"),idSuffix:s}),(0,mr.jsx)(Sr,{to:"/site-connections",label:(0,Et.__)("Site connections","wordpress-seo"),idSuffix:s})]}),(0,mr.jsx)(i.SidebarNavigation.MenuItem,{id:`menu-content-types${s}`,icon:rr,label:(0,Et.__)("Content types","wordpress-seo"),defaultOpen:l.includes(`menu-content-types${s}`),children:(0,mr.jsxs)(i.ChildrenLimiter,{limit:5,renderButton:c,children:[(0,mr.jsx)(Sr,{to:"/homepage",label:(0,Et.__)("Homepage","wordpress-seo"),idSuffix:s}),(0,le.map)(e,(({name:e,route:t,label:r,isNew:o})=>(0,mr.jsx)(Sr,{to:`/post-type/${t}`,label:(0,mr.jsxs)("span",{className:"yst-inline-flex yst-items-center yst-gap-1.5",children:[r,o&&(0,mr.jsx)(i.Badge,{variant:"info",children:(0,Et.__)("New","wordpress-seo")})]}),idSuffix:s},`link-post-type-${e}`)))]})}),(0,mr.jsx)(i.SidebarNavigation.MenuItem,{id:`menu-categories-and-tags${s}`,icon:or,label:(0,Et.__)("Categories & tags","wordpress-seo"),defaultOpen:l.includes(`menu-categories-and-tags${s}`),children:(0,mr.jsx)(i.ChildrenLimiter,{limit:5,renderButton:c,children:(0,le.map)(t,(e=>(0,mr.jsx)(Sr,{to:`/taxonomy/${e.route}`,label:(0,mr.jsxs)("span",{className:"yst-inline-flex yst-items-center yst-gap-1.5",children:[e.label,e.isNew&&(0,mr.jsx)(i.Badge,{variant:"info",children:(0,Et.__)("New","wordpress-seo")})]}),idSuffix:s},`link-taxonomy-${e.name}`)))})}),(0,mr.jsx)(gl,{idSuffix:s})]},`menu-${s}-${o}`)]})};yd.propTypes={postTypes:cr().object.isRequired,taxonomies:cr().object.isRequired,idSuffix:cr().string};const wd=()=>{const{pathname:e}=Qe(),s=bo("selectPostTypes"),r=bo("selectTaxonomies"),o=bo("selectPreference",[],"isPremium"),n=bo("selectLink",[],"https://yoa.st/17h"),l=bo("selectLink",[],"https://yoa.st/admin-footer-upsell-woocommerce"),d=bo("selectLink",[],"https://yoa.st/jj"),c=bo("selectLink",[],"https://yoa.st/admin-sidebar-upsell-woocommerce"),u=bo("selectUpsellSettingsAsProps"),p=bo("selectLink",[],"https://yoa.st/3t6"),{isPromotionActive:m}=(0,t.useSelect)(ho),h=bo("selectPreference",[],"isWooCommerceActive");(()=>{const{hash:e,pathname:t,key:s}=Qe();(0,a.useEffect)((()=>{const t=e.replace("#",""),s=document.getElementById(t)||document.querySelector(`[data-id="${t}"]`);if(s)s.scrollIntoView({behavior:"smooth"}),setTimeout((()=>s.focus()),800);else{const e=document.getElementById("yoast-seo-settings");null==e||e.scrollIntoView({behavior:"smooth"})}}),[t,e,s])})();const{dirty:f}=q();return(0,i.useBeforeUnload)(f,(0,Et.__)("There are unsaved changes on this page. Leaving means that those changes will be lost. Are you sure you want to leave this page?","wordpress-seo")),(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)(Xo,{}),(0,mr.jsxs)(i.SidebarNavigation,{activePath:e,children:[(0,mr.jsx)(i.SidebarNavigation.Mobile,{openButtonId:"button-open-settings-navigation-mobile",closeButtonId:"button-close-settings-navigation-mobile" +(0,Et.__)("Get your verification code in %1$sYandex Webmaster tools%2$s.","wordpress-seo"),"<a>","</a>"),"https://webmaster.yandex.com/sites/add/","link-yandex-webmaster-tools"),placeholder:(0,Et.__)("Add verification code","wordpress-seo"),transformValue:ad})]})})})})},dd=({postTypes:e,taxonomies:t,idSuffix:s=""})=>{const r=(0,a.useSvgAria)(),{pathname:o}=Qe(),n=lo("selectPreference",[],"isPremium"),{history:l,setHistory:d,addToHistory:c,removeFromHistory:u}=(0,a.useNavigationContext)();(0,i.useEffect)((()=>{d([`menu-content-types${s}`,`menu-categories-and-tags${s}`,`menu-general${s}`])}),[]);const p=(0,i.useCallback)((({show:e,toggle:t,ariaProps:r})=>(0,ur.jsx)(ul,{show:e,toggle:t,ariaProps:r,id:`more-content-types${s}`,addToHistory:c,removeFromHistory:u,history:l})),[s,c,u,l]),m=(0,i.useCallback)((({show:e,toggle:t,ariaProps:r})=>(0,ur.jsx)(ul,{show:e,toggle:t,ariaProps:r,id:`more-categories${s}`,addToHistory:c,removeFromHistory:u,history:l})),[s,c,u,l]);return(0,ur.jsxs)(ur.Fragment,{children:[(0,ur.jsxs)("header",{className:"yst-px-3 yst-mb-6 yst-space-y-6",children:[(0,ur.jsx)(xt,{id:`link-yoast-logo${s}`,to:"/",className:"yst-inline-block yst-rounded-md focus:yst-ring-primary-500","aria-label":"Yoast SEO"+(n?" Premium":""),children:(0,ur.jsx)(eo,{className:"yst-w-40",...r})}),(0,ur.jsx)(Jn,{buttonId:`button-search${s}`})]}),(0,ur.jsxs)("div",{className:"yst-px-0.5 yst-space-y-6",children:[(0,ur.jsxs)(a.SidebarNavigation.MenuItem,{id:`menu-general${s}`,icon:sr,label:(0,Et.__)("General","wordpress-seo"),defaultOpen:l.includes(`menu-general${s}`),children:[(0,ur.jsx)(br,{to:"/site-features",label:(0,Et.__)("Site features","wordpress-seo"),idSuffix:s}),(0,ur.jsx)(br,{to:"/site-basics",label:(0,Et.__)("Site basics","wordpress-seo"),idSuffix:s}),(0,ur.jsx)(br,{to:"/site-representation",label:(0,Et.__)("Site representation","wordpress-seo"),idSuffix:s}),(0,ur.jsx)(br,{to:"/site-connections",label:(0,Et.__)("Site connections","wordpress-seo"),idSuffix:s})]}),(0,ur.jsx)(a.SidebarNavigation.MenuItem,{id:`menu-content-types${s}`,icon:rr,label:(0,Et.__)("Content types","wordpress-seo"),defaultOpen:l.includes(`menu-content-types${s}`),children:(0,ur.jsxs)(a.ChildrenLimiter,{limit:5,renderButton:p,initialShow:l.includes(`more-content-types${s}`),children:[(0,ur.jsx)(br,{to:"/homepage",label:(0,Et.__)("Homepage","wordpress-seo"),idSuffix:s}),(0,le.map)(e,(({name:e,route:t,label:r,isNew:o})=>(0,ur.jsx)(br,{to:`/post-type/${t}`,label:(0,ur.jsxs)("span",{className:"yst-inline-flex yst-items-center yst-gap-1.5",children:[r,o&&(0,ur.jsx)(a.Badge,{variant:"info",children:(0,Et.__)("New","wordpress-seo")})]}),idSuffix:s},`link-post-type-${e}`)))]})}),(0,ur.jsx)(a.SidebarNavigation.MenuItem,{id:`menu-categories-and-tags${s}`,icon:or,label:(0,Et.__)("Categories & tags","wordpress-seo"),defaultOpen:l.includes(`menu-categories-and-tags${s}`),children:(0,ur.jsx)(a.ChildrenLimiter,{limit:5,renderButton:m,initialShow:l.includes(`more-categories${s}`),children:(0,le.map)(t,(e=>(0,ur.jsx)(br,{to:`/taxonomy/${e.route}`,label:(0,ur.jsxs)("span",{className:"yst-inline-flex yst-items-center yst-gap-1.5",children:[e.label,e.isNew&&(0,ur.jsx)(a.Badge,{variant:"info",children:(0,Et.__)("New","wordpress-seo")})]}),idSuffix:s},`link-taxonomy-${e.name}`)))})}),(0,ur.jsx)(ll,{idSuffix:s})]},`menu-${s}-${o}`)]})};dd.propTypes={postTypes:lr().object.isRequired,taxonomies:lr().object.isRequired,idSuffix:lr().string};const cd=()=>{const{pathname:e}=Qe(),s=lo("selectPostTypes"),r=lo("selectTaxonomies"),o=lo("selectPreference",[],"isPremium"),n=lo("selectLink",[],"https://yoa.st/17h"),l=lo("selectLink",[],"https://yoa.st/admin-footer-upsell-woocommerce"),d=lo("selectLink",[],"https://yoa.st/jj"),c=lo("selectLink",[],"https://yoa.st/admin-sidebar-upsell-woocommerce"),u=lo("selectUpsellSettingsAsProps"),p=lo("selectLink",[],"https://yoa.st/3t6"),{isPromotionActive:m}=(0,t.useSelect)(so),h=lo("selectPreference",[],"isWooCommerceActive");(()=>{const{hash:e,pathname:t,key:s}=Qe();(0,i.useEffect)((()=>{const t=e.replace("#",""),s=document.getElementById(t)||document.querySelector(`[data-id="${t}"]`);if(s)s.scrollIntoView({behavior:"smooth"}),setTimeout((()=>s.focus()),800);else{const e=document.getElementById("yoast-seo-settings");null==e||e.scrollIntoView({behavior:"smooth"})}}),[t,e,s])})();const{dirty:f}=q();return(0,a.useBeforeUnload)(f,(0,Et.__)("There are unsaved changes on this page. Leaving means that those changes will be lost. Are you sure you want to leave this page?","wordpress-seo")),(0,ur.jsxs)(ur.Fragment,{children:[(0,ur.jsx)(Vo,{}),(0,ur.jsxs)(a.SidebarNavigation,{activePath:e,children:[(0,ur.jsx)(a.SidebarNavigation.Mobile,{openButtonId:"button-open-settings-navigation-mobile",closeButtonId:"button-close-settings-navigation-mobile" /* translators: Hidden accessibility text. */,openButtonScreenReaderText:(0,Et.__)("Open settings navigation","wordpress-seo") -/* translators: Hidden accessibility text. */,closeButtonScreenReaderText:(0,Et.__)("Close settings navigation","wordpress-seo"),"aria-label":(0,Et.__)("Settings navigation","wordpress-seo"),children:(0,mr.jsx)(yd,{idSuffix:"-mobile",postTypes:s,taxonomies:r})}),(0,mr.jsxs)("div",{className:"yst-p-4 min-[783px]:yst-p-8 yst-flex yst-gap-4",children:[(0,mr.jsx)("aside",{className:"yst-sidebar yst-sidebar-nav yst-shrink-0 yst-hidden min-[783px]:yst-block yst-pb-6 yst-bottom-0 yst-w-56",children:(0,mr.jsx)(i.SidebarNavigation.Sidebar,{children:(0,mr.jsx)(yd,{postTypes:s,taxonomies:r})})}),(0,mr.jsxs)("div",{className:lr()("yst-flex yst-grow yst-flex-wrap",!o&&"xl:yst-pe-[17.5rem]"),children:[(0,mr.jsxs)("div",{className:"yst-grow yst-max-w-page yst-space-y-6 yst-mb-8 xl:yst-mb-0",children:[(0,mr.jsx)(i.Paper,{as:"main",children:(0,mr.jsx)(i.ErrorBoundary,{FallbackComponent:dl,children:(0,mr.jsx)(tr,{appear:!0,show:!0,enter:"yst-transition-opacity yst-delay-100 yst-duration-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",children:(0,mr.jsxs)(ht,{children:[(0,mr.jsx)(pt,{path:"author-archives",element:(0,mr.jsx)(Cl,{})}),(0,mr.jsx)(pt,{path:"breadcrumbs",element:(0,mr.jsx)(Al,{})}),(0,mr.jsx)(pt,{path:"crawl-optimization",element:(0,mr.jsx)(Bl,{})}),(0,mr.jsx)(pt,{path:"date-archives",element:(0,mr.jsx)(Vl,{})}),(0,mr.jsx)(pt,{path:"homepage",element:(0,mr.jsx)(Gl,{})}),(0,mr.jsx)(pt,{path:"format-archives",element:(0,mr.jsx)(ql,{})}),(0,mr.jsx)(pt,{path:"llms-txt",element:(0,mr.jsx)(Xl,{})}),(0,mr.jsx)(pt,{path:"media-pages",element:(0,mr.jsx)(ed,{})}),(0,mr.jsx)(pt,{path:"rss",element:(0,mr.jsx)(sd,{})}),(0,mr.jsx)(pt,{path:"site-basics",element:(0,mr.jsx)(ad,{})}),(0,mr.jsx)(pt,{path:"site-connections",element:(0,mr.jsx)(_d,{})}),(0,mr.jsx)(pt,{path:"site-representation",element:(0,mr.jsx)(ud,{})}),(0,mr.jsx)(pt,{path:"site-features",element:(0,mr.jsx)(ld,{})}),(0,mr.jsx)(pt,{path:"special-pages",element:(0,mr.jsx)(pd,{})}),(0,mr.jsx)(pt,{path:"post-type",children:(0,le.map)(s,(e=>(0,mr.jsx)(pt,{path:e.route,element:(0,mr.jsx)($l,{...e})},`route-post-type-${e.name}`)))}),(0,mr.jsx)(pt,{path:"taxonomy",children:(0,le.map)(r,(e=>(0,mr.jsx)(pt,{path:e.route,element:(0,mr.jsx)(Nl,{...e})},`route-taxonomy-${e.name}`)))}),(0,mr.jsx)(pt,{path:"*",element:(0,mr.jsx)(ut,{to:"/site-features",replace:!0})})]})},e)})}),!o&&(0,mr.jsx)(ro,{premiumLink:h?l:n,premiumUpsellConfig:u,isPromotionActive:m,isWooCommerceActive:h})]}),!o&&(0,mr.jsx)("div",{className:"xl:yst-max-w-3xl xl:yst-fixed xl:yst-end-8 xl:yst-w-[16rem]",children:(0,mr.jsx)(oo,{premiumLink:h?c:d,premiumUpsellConfig:u,academyLink:p,isPromotionActive:m,isWooCommerceActive:h})})]})]})]})]})},gd=window.yoast.externals.redux,bd=()=>(0,le.get)(window,"wpseoScriptData.postTypes",{}),vd="updatePostTypeReviewStatus",xd=(0,Lt.createSlice)({name:"postTypes",initialState:bd(),reducers:{},extraReducers:e=>{e.addCase(`${vd}/result`,((e,{payload:t})=>{e[t].isNew=!1}))}}),jd={selectPostType:(e,t,s={})=>(0,le.get)(e,`postTypes.${t}`,s),selectAllPostTypes:(e,t=null)=>{const s=(0,le.get)(e,"postTypes",{});return t?(0,le.pick)(s,t):s}};jd.selectPostTypes=(0,Lt.createSelector)(jd.selectAllPostTypes,(e=>(0,le.omit)(e,["attachment"])));const Sd={[vd]:async({payload:e})=>Pt()({path:"/yoast/v1/new-content-type-visibility/dismiss-post-type",method:"POST",data:{post_type_name:e}})},kd={...xd.actions,updatePostTypeReviewStatus:function*(e){try{yield{type:vd,payload:e}}catch(t){console.error(`Error: Failed to remove "New" badge for ${e}, ${t}`)}return{type:`${vd}/result`,payload:e}}},Ed=xd.reducer,Ld=()=>({...(0,le.get)(window,"wpseoScriptData.preferences",{})}),Fd=(0,Lt.createSlice)({name:"preferences",initialState:Ld(),reducers:{}}),Td={selectPreference:(e,t,s={})=>(0,le.get)(e,`preferences.${t}`,s),selectPreferences:e=>(0,le.get)(e,"preferences",{})};Td.selectHasPageForPosts=(0,Lt.createSelector)([e=>Td.selectPreference(e,"homepageIsLatestPosts"),e=>Td.selectPreference(e,"homepagePostsEditUrl")],((e,t)=>!e&&!(0,le.isEmpty)(t))),Td.selectCanEditUser=(0,Lt.createSelector)([e=>Td.selectPreference(e,"currentUserId",-1),e=>Td.selectPreference(e,"canEditUsers",!1),(e,t)=>t],((e,t,s)=>e===s||t)),Td.selectExampleUrl=(0,Lt.createSelector)([e=>Td.selectPreference(e,"siteUrl","https://example.com"),(e,t)=>t],((e,t)=>e+t)),Td.selectPluginUrl=(0,Lt.createSelector)([e=>Td.selectPreference(e,"pluginUrl","https://example.com"),(e,t)=>t],((e,t)=>e+t)),Td.selectUpsellSettingsAsProps=(0,Lt.createSelector)([e=>Td.selectPreference(e,"upsellSettings",{}),(e,t="premiumCtbId")=>t],((e,t)=>({"data-action":null==e?void 0:e.actionId,"data-ctb-id":null==e?void 0:e[t]})));const $d=Fd.actions,Rd=Fd.reducer,Pd=()=>(0,le.reduce)((0,le.get)(window,"wpseoScriptData.taxonomies",{}),((e,{postTypes:t,...s},r)=>({...e,[r]:{...s,postTypes:(0,le.values)(t)}})),{}),Nd="updateTaxonomyReviewStatus",Od=(0,Lt.createSlice)({name:"taxonomies",initialState:Pd(),reducers:{},extraReducers:e=>{e.addCase(`${Nd}/result`,((e,{payload:t})=>{e[t].isNew=!1}))}}),Cd={selectTaxonomy:(e,t,s={})=>(0,le.get)(e,`taxonomies.${t}`,s),selectAllTaxonomies:e=>(0,le.get)(e,"taxonomies",{})};Cd.selectTaxonomies=(0,Lt.createSelector)(Cd.selectAllTaxonomies,(e=>(0,le.omit)(e,["post_format"])));const Ad={[Nd]:async({payload:e})=>Pt()({path:"/yoast/v1/new-content-type-visibility/dismiss-taxonomy",method:"POST",data:{taxonomy_name:e}})},Md={...Od.actions,updateTaxonomyReviewStatus:function*(e){try{yield{type:Nd,payload:e}}catch(t){console.error(`Error: Failed to remove "New" badge for ${e}, ${t}`)}return{type:`${Nd}/result`,payload:e}}},Id=Od.reducer,Dd={selectBreadcrumbsForPostTypes:(0,Lt.createSelector)([Cd.selectAllTaxonomies,jd.selectAllPostTypes],((e,t)=>{const s={value:0,label:(0,Et.__)("None","wordpress-seo")},r={};return(0,le.forEach)(t,((t,o)=>{const a=(0,le.filter)(e,(e=>(0,le.includes)(e.postTypes,o)));(0,le.isEmpty)(a)||(r[o]={...t,options:[s,...(0,le.map)(a,(({name:e,label:t})=>({value:e,label:t})))]})})),r})),selectBreadcrumbsForTaxonomies:(0,Lt.createSelector)([Cd.selectAllTaxonomies,jd.selectAllPostTypes,Td.selectHasPageForPosts],((e,t,s)=>{let r=[{value:0,label:(0,Et.__)("None","wordpress-seo")}];s&&r.push({value:"post",label:(0,Et.__)("Blog","wordpress-seo")});const o=(0,le.filter)(t,(({hasArchive:e})=>e));return r=r.concat((0,le.map)(o,(({name:e,label:t})=>({value:e,label:t})))),(0,le.mapValues)(e,(e=>({name:e.name,label:e.label,options:r})))}))},Bd=()=>({...(0,le.get)(window,"wpseoScriptData.defaultSettingValues",{})}),Ud=(0,Lt.createSlice)({name:"defaultSettingValues",initialState:Bd(),reducers:{}}),Vd={selectDefaultSettingValue:(e,t,s={})=>(0,le.get)(e,`defaultSettingValues.${t}`,s),selectDefaultSettingValues:e=>(0,le.get)(e,"defaultSettingValues",{})},zd=Ud.actions,qd=Ud.reducer,Wd=()=>(0,le.get)(window,"wpseoScriptData.fallbacks",{}),Hd=(0,Lt.createSlice)({name:"fallbacks",initialState:Wd(),reducers:{}}),Gd={selectFallback:(e,t,s={})=>(0,le.get)(e,`fallbacks.${t}`,s),selectFallbacks:e=>(0,le.get)(e,"fallbacks",{})},Yd=Hd.actions,Zd=Hd.reducer,Kd=window.wp.htmlEntities,Jd="indexablePages",Qd=`${Jd}/fetch`,Xd={},ec=(0,Lt.createEntityAdapter)({selectId:e=>e.id,sortComparer:(e,t)=>e.name.localeCompare(t.name)}),tc=()=>ec.getInitialState({scopes:{}}),sc=e=>({id:Number(null==e?void 0:e.id)||0,name:String((0,Kd.decodeEntities)((0,le.trim)(null==e?void 0:e.title))||(null==e?void 0:e.slug)||(null==e?void 0:e.id)||0),slug:String((null==e?void 0:e.slug)||"")}),rc=(0,Lt.createSlice)({name:Jd,initialState:tc(),reducers:{addIndexablePages:{reducer:ec.upsertMany,prepare:e=>({payload:(0,le.map)(e,sc)})},removeIndexablePagesScope:(e,{payload:t})=>{var s;t in e.scopes&&(e.scopes[t].status===ts&&(null===(s=Xd[t])||void 0===s||s.abort(),delete Xd[t]),delete e.scopes[t])}},extraReducers:e=>{e.addCase(`${Qd}/${Jt}`,((e,{payload:t})=>{e.scopes[t.scope]||(e.scopes[t.scope]={query:{search:""},status:es,ids:[]}),"query"in t&&(e.scopes[t.scope].query=t.query),e.scopes[t.scope].status=ts})),e.addCase(`${Qd}/${Qt}`,((e,{payload:t})=>{var s,r;ec.upsertMany(e,(0,le.map)(t.pages,sc)),(s=e.scopes)[r=t.scope]||(s[r]={}),e.scopes[t.scope].query=t.query,e.scopes[t.scope].status=ss,e.scopes[t.scope].ids=t.pages.map((e=>e.id))})),e.addCase(`${Qd}/${Xt}`,((e,{payload:t})=>{e.scopes[t.scope]||(e.scopes[t.scope]={query:{search:""},status:es,ids:[]}),e.scopes[t.scope].status=rs}))}}),oc=ec.getSelectors((e=>e[Jd])),ac={selectIndexablePageById:oc.selectById};ac.selectIndexablePagesScope=(0,Lt.createSelector)([oc.selectIds,(e,t)=>e[Jd].scopes[t]],((e,t)=>{var s;return null!=t&&null!==(s=t.query)&&void 0!==s&&s.search?{ids:(null==t?void 0:t.ids)||e,status:(null==t?void 0:t.status)||es,query:(null==t?void 0:t.query)||{search:""}}:{ids:e,status:(null==t?void 0:t.status)||es,query:{search:""}}})),ac.selectIndexablePagesById=(0,Lt.createSelector)([oc.selectAll,(e,t)=>t],((e,t)=>e.filter((e=>t.includes(e.id)))));const ic={...rc.actions,fetchIndexablePages:function*(e,t={search:""},s=null){yield{type:`${Qd}/${Jt}`,payload:{scope:e,query:t}};try{const r=yield{type:Qd,payload:{scope:e,query:t,abortController:s}};return{type:`${Qd}/${Qt}`,payload:{scope:e,query:t,pages:r}}}catch(t){return"AbortError"===(null==t?void 0:t.name)?{}:(console.error("Error fetching indexable pages:",t),{type:`${Qd}/${Xt}`,payload:{scope:e}})}}},nc={[Qd]:async({payload:e})=>{var t;return e.scope in Xd&&(null===(t=Xd[e.scope])||void 0===t||t.abort()),Xd[e.scope]=e.abortController||new AbortController,Pt()({path:`/yoast/v1/available_posts?${(0,Ct.buildQueryString)(e.query)}`,signal:Xd[e.scope].signal})}},lc=rc.reducer,dc="llmsTxt",cc=(0,Lt.createSlice)({name:dc,initialState:{generationFailure:!1,generationFailureReason:"",llmsTxtUrl:"",disabledPageIndexables:!1,otherIncludedPagesLimit:100},reducers:{setGenerationFailure:(e,{payload:t})=>{e.generationFailure=t.generationFailure,e.generationFailureReason=t.generationFailureReason}}}),uc=cc.actions,pc={selectLlmsTxtGenerationFailure:e=>(0,le.get)(e,"llmsTxt.generationFailure",!1),selectLlmsTxtGenerationFailureReason:e=>(0,le.get)(e,"llmsTxt.generationFailureReason",""),selectLlmsTxtUrl:e=>(0,le.get)(e,"llmsTxt.llmsTxtUrl",""),selectLlmsTxtDisabledPageIndexables:e=>(0,le.get)(e,"llmsTxt.disabledPageIndexables",!1),selectLlmsTxtOtherIncludedPagesLimit:e=>(0,le.get)(e,"llmsTxt.otherIncludedPagesLimit",100)},mc=cc.reducer,hc=(0,Lt.createEntityAdapter)(),fc=()=>hc.getInitialState({status:es,error:""}),_c="fetchMedia",yc=e=>{var t,s;return{id:null==e?void 0:e.id,title:(null==e||null===(t=e.title)||void 0===t?void 0:t.rendered)||(null==e?void 0:e.title),slug:(null==e?void 0:e.slug)||(null==e?void 0:e.name),alt:(null==e?void 0:e.alt_text)||(null==e?void 0:e.alt),url:(null==e?void 0:e.source_url)||(null==e?void 0:e.url),type:(null==e?void 0:e.media_type)||(null==e?void 0:e.type),mime:(null==e?void 0:e.mime_type)||(null==e?void 0:e.mime),author:null==e?void 0:e.author,sizes:(0,le.mapValues)((null==e?void 0:e.sizes)||(null==e||null===(s=e.media_details)||void 0===s?void 0:s.sizes),(e=>({url:(null==e?void 0:e.url)||(null==e?void 0:e.source_url),width:null==e?void 0:e.width,height:null==e?void 0:e.height})),{})}},wc=(0,Lt.createSlice)({name:"media",initialState:fc(),reducers:{addOneMedia:{reducer:hc.addOne,prepare:e=>({payload:yc(e)})},addManyMedia:{reducer:hc.addMany,prepare:e=>({payload:(0,le.map)(e,yc)})}},extraReducers:e=>{e.addCase(`${_c}/${Jt}`,(e=>{e.status=ts})),e.addCase(`${_c}/${Qt}`,((e,t)=>{e.status=ss,hc.addMany(e,(0,le.map)(t.payload,yc))})),e.addCase(`${_c}/${Xt}`,((e,t)=>{e.status=rs,e.error=t.payload}))}}),gc=hc.getSelectors((e=>e.media)),bc={selectMediaIds:gc.selectIds,selectMediaById:gc.selectById,selectIsMediaLoading:e=>(0,le.get)(e,"media.status",es)===ts,selectIsMediaError:e=>(0,le.get)(e,"media.status",es)===rs},vc={...wc.actions,fetchMedia:function*(e){yield{type:`${_c}/${Jt}`};try{const t=yield{type:_c,payload:{per_page:100,include:e}};return{type:`${_c}/${Qt}`,payload:t}}catch(e){return{type:`${_c}/${Xt}`,payload:e}}}},xc={[_c]:async({payload:e})=>Pt()({path:`/wp/v2/media?${(0,Ct.buildQueryString)(e)}`})},jc=wc.reducer,Sc=(0,Lt.createEntityAdapter)(),kc="fetchPages",Ec="pages";let Lc;const Fc=e=>{var t;return{id:null==e?void 0:e.id,name:(0,Kd.decodeEntities)((0,le.trim)(null==e?void 0:e.title.rendered))||(null==e?void 0:e.slug)||e.id,slug:null==e?void 0:e.slug,protected:null==e||null===(t=e.content)||void 0===t?void 0:t.protected}},Tc=(0,Lt.createSlice)({name:"pages",initialState:Sc.getInitialState({status:es,error:""}),reducers:{addOnePage:{reducer:Sc.addOne,prepare:e=>({payload:Fc(e)})},addManyPages:{reducer:Sc.addMany,prepare:e=>({payload:(0,le.map)(e,Fc)})}},extraReducers:e=>{e.addCase(`${kc}/${Jt}`,(e=>{e.status=ts})),e.addCase(`${kc}/${Qt}`,((e,t)=>{e.status=ss,Sc.addMany(e,(0,le.map)(t.payload,Fc))})),e.addCase(`${kc}/${Xt}`,((e,t)=>{e.status=rs,e.error=t.payload}))}}),$c=Tc.getInitialState,Rc=Sc.getSelectors((e=>e.pages)),Pc={selectPageIds:Rc.selectIds,selectPageById:Rc.selectById,selectPages:Rc.selectEntities};Pc.selectPagesWith=(0,Lt.createSelector)([Pc.selectPages,(e,t={})=>t],((e,t)=>{const s={};t.forEach((t=>{null!=t&&t.id&&!e[t.id]&&(s[t.id]={...t})}));const r=(0,le.pickBy)(e,(e=>!e.protected));return{...s,...r}}));const Nc={...Tc.actions,fetchPages:function*(e){yield{type:`${kc}/${Jt}`};try{const t=yield{type:kc,payload:{...e}};return{type:`${kc}/${Qt}`,payload:t}}catch(e){return{type:`${kc}/${Xt}`,payload:e}}}},Oc={[kc]:async({payload:e})=>{var t;return null===(t=Lc)||void 0===t||t.abort(),Lc=new AbortController,Pt()({path:`/wp/v2/pages?${(0,Ct.buildQueryString)(e)}`,signal:Lc.signal})}},Cc=Tc.reducer,Ac=()=>({recommended:(0,le.get)(window,"wpseoScriptData.replacementVariables.recommended",{}),shared:(0,le.get)(window,"wpseoScriptData.replacementVariables.shared",[]),specific:(0,le.get)(window,"wpseoScriptData.replacementVariables.specific",{}),variables:(0,le.get)(window,"wpseoScriptData.replacementVariables.variables",[])}),Mc=(0,Lt.createSlice)({name:"replacementVariables",initialState:Ac(),reducers:{}}),Ic={selectRecommendedReplacementVariables:e=>(0,le.get)(e,"replacementVariables.recommended",{}),selectSharedReplacementVariables:e=>(0,le.get)(e,"replacementVariables.shared",[]),selectSpecificReplacementVariables:e=>(0,le.get)(e,"replacementVariables.specific",{}),selectReplacementVariables:e=>(0,le.get)(e,"replacementVariables.variables",[])};Ic.selectSpecificReplacementVariablesFor=(0,Lt.createSelector)([Ic.selectSharedReplacementVariables,Ic.selectSpecificReplacementVariables,(e,t)=>t,(e,t,s)=>s],((e,t,s,r)=>[...e,...(0,le.get)(t,s,(0,le.get)(t,r,[]))])),Ic.selectReplacementVariablesFor=(0,Lt.createSelector)([Ic.selectReplacementVariables,Ic.selectSpecificReplacementVariablesFor],((e,t)=>(0,le.filter)(e,(({name:e})=>(0,le.includes)(t,e))))),Ic.selectRecommendedReplacementVariablesFor=(0,Lt.createSelector)([Ic.selectRecommendedReplacementVariables,(e,t)=>t,(e,t,s)=>s],((e,t,s)=>(0,le.get)(e,t,(0,le.get)(e,s,[]))));const Dc=Mc.actions,Bc=Mc.reducer,Uc=(e,t)=>{ +/* translators: Hidden accessibility text. */,closeButtonScreenReaderText:(0,Et.__)("Close settings navigation","wordpress-seo"),"aria-label":(0,Et.__)("Settings navigation","wordpress-seo"),children:(0,ur.jsx)(dd,{idSuffix:"-mobile",postTypes:s,taxonomies:r})}),(0,ur.jsxs)("div",{className:"yst-p-4 min-[783px]:yst-p-8 yst-flex yst-gap-4",children:[(0,ur.jsx)("aside",{className:"yst-sidebar yst-sidebar-nav yst-shrink-0 yst-hidden min-[783px]:yst-block yst-pb-6 yst-bottom-0 yst-w-56",children:(0,ur.jsx)(a.SidebarNavigation.Sidebar,{children:(0,ur.jsx)(dd,{postTypes:s,taxonomies:r})})}),(0,ur.jsxs)("div",{className:ar()("yst-flex yst-grow yst-flex-wrap",!o&&"xl:yst-pe-[17.5rem]"),children:[(0,ur.jsxs)("div",{className:"yst-grow yst-max-w-page yst-space-y-6 yst-mb-8 xl:yst-mb-0",children:[(0,ur.jsx)(a.Paper,{as:"main",children:(0,ur.jsx)(a.ErrorBoundary,{FallbackComponent:Qn,children:(0,ur.jsx)(tr,{appear:!0,show:!0,enter:"yst-transition-opacity yst-delay-100 yst-duration-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",children:(0,ur.jsxs)(ht,{children:[(0,ur.jsx)(pt,{path:"author-archives",element:(0,ur.jsx)(Ll,{})}),(0,ur.jsx)(pt,{path:"breadcrumbs",element:(0,ur.jsx)(Tl,{})}),(0,ur.jsx)(pt,{path:"crawl-optimization",element:(0,ur.jsx)(Pl,{})}),(0,ur.jsx)(pt,{path:"date-archives",element:(0,ur.jsx)(Ol,{})}),(0,ur.jsx)(pt,{path:"homepage",element:(0,ur.jsx)(Dl,{})}),(0,ur.jsx)(pt,{path:"format-archives",element:(0,ur.jsx)(Al,{})}),(0,ur.jsx)(pt,{path:"llms-txt",element:(0,ur.jsx)(Wl,{})}),(0,ur.jsx)(pt,{path:"media-pages",element:(0,ur.jsx)(Hl,{})}),(0,ur.jsx)(pt,{path:"rss",element:(0,ur.jsx)(Yl,{})}),(0,ur.jsx)(pt,{path:"site-basics",element:(0,ur.jsx)(Jl,{})}),(0,ur.jsx)(pt,{path:"site-connections",element:(0,ur.jsx)(ld,{})}),(0,ur.jsx)(pt,{path:"site-representation",element:(0,ur.jsx)(rd,{})}),(0,ur.jsx)(pt,{path:"site-features",element:(0,ur.jsx)(ed,{})}),(0,ur.jsx)(pt,{path:"special-pages",element:(0,ur.jsx)(od,{})}),(0,ur.jsx)(pt,{path:"post-type",children:(0,le.map)(s,(e=>(0,ur.jsx)(pt,{path:e.route,element:(0,ur.jsx)(xl,{...e})},`route-post-type-${e.name}`)))}),(0,ur.jsx)(pt,{path:"taxonomy",children:(0,le.map)(r,(e=>(0,ur.jsx)(pt,{path:e.route,element:(0,ur.jsx)(kl,{...e})},`route-taxonomy-${e.name}`)))}),(0,ur.jsx)(pt,{path:"*",element:(0,ur.jsx)(ut,{to:"/site-features",replace:!0})})]})},e)})}),!o&&(0,ur.jsx)(Hr,{premiumLink:h?l:n,premiumUpsellConfig:u,isPromotionActive:m,isWooCommerceActive:h})]}),!o&&(0,ur.jsx)("div",{className:"xl:yst-max-w-3xl xl:yst-fixed xl:yst-end-8 xl:yst-w-[16rem]",children:(0,ur.jsx)(Gr,{premiumLink:h?c:d,premiumUpsellConfig:u,academyLink:p,isPromotionActive:m,isWooCommerceActive:h})})]})]})]})]})},ud=window.yoast.externals.redux,pd=()=>(0,le.get)(window,"wpseoScriptData.postTypes",{}),md="updatePostTypeReviewStatus",hd=(0,Lt.createSlice)({name:"postTypes",initialState:pd(),reducers:{},extraReducers:e=>{e.addCase(`${md}/result`,((e,{payload:t})=>{e[t].isNew=!1}))}}),fd={selectPostType:(e,t,s={})=>(0,le.get)(e,`postTypes.${t}`,s),selectAllPostTypes:(e,t=null)=>{const s=(0,le.get)(e,"postTypes",{});return t?(0,le.pick)(s,t):s}};fd.selectPostTypes=(0,Lt.createSelector)(fd.selectAllPostTypes,(e=>(0,le.omit)(e,["attachment"])));const _d={[md]:async({payload:e})=>Pt()({path:"/yoast/v1/new-content-type-visibility/dismiss-post-type",method:"POST",data:{post_type_name:e}})},yd={...hd.actions,updatePostTypeReviewStatus:function*(e){try{yield{type:md,payload:e}}catch(t){console.error(`Error: Failed to remove "New" badge for ${e}, ${t}`)}return{type:`${md}/result`,payload:e}}},wd=hd.reducer,gd=()=>({...(0,le.get)(window,"wpseoScriptData.preferences",{})}),bd=(0,Lt.createSlice)({name:"preferences",initialState:gd(),reducers:{}}),vd={selectPreference:(e,t,s={})=>(0,le.get)(e,`preferences.${t}`,s),selectPreferences:e=>(0,le.get)(e,"preferences",{})};vd.selectHasPageForPosts=(0,Lt.createSelector)([e=>vd.selectPreference(e,"homepageIsLatestPosts"),e=>vd.selectPreference(e,"homepagePostsEditUrl")],((e,t)=>!e&&!(0,le.isEmpty)(t))),vd.selectCanEditUser=(0,Lt.createSelector)([e=>vd.selectPreference(e,"currentUserId",-1),e=>vd.selectPreference(e,"canEditUsers",!1),(e,t)=>t],((e,t,s)=>e===s||t)),vd.selectExampleUrl=(0,Lt.createSelector)([e=>vd.selectPreference(e,"siteUrl","https://example.com"),(e,t)=>t],((e,t)=>e+t)),vd.selectPluginUrl=(0,Lt.createSelector)([e=>vd.selectPreference(e,"pluginUrl","https://example.com"),(e,t)=>t],((e,t)=>e+t)),vd.selectUpsellSettingsAsProps=(0,Lt.createSelector)([e=>vd.selectPreference(e,"upsellSettings",{}),(e,t="premiumCtbId")=>t],((e,t)=>({"data-action":null==e?void 0:e.actionId,"data-ctb-id":null==e?void 0:e[t]})));const xd=bd.actions,jd=bd.reducer,Sd=()=>(0,le.reduce)((0,le.get)(window,"wpseoScriptData.taxonomies",{}),((e,{postTypes:t,...s},r)=>({...e,[r]:{...s,postTypes:(0,le.values)(t)}})),{}),kd="updateTaxonomyReviewStatus",Ed=(0,Lt.createSlice)({name:"taxonomies",initialState:Sd(),reducers:{},extraReducers:e=>{e.addCase(`${kd}/result`,((e,{payload:t})=>{e[t].isNew=!1}))}}),Ld={selectTaxonomy:(e,t,s={})=>(0,le.get)(e,`taxonomies.${t}`,s),selectAllTaxonomies:e=>(0,le.get)(e,"taxonomies",{})};Ld.selectTaxonomies=(0,Lt.createSelector)(Ld.selectAllTaxonomies,(e=>(0,le.omit)(e,["post_format"])));const Td={[kd]:async({payload:e})=>Pt()({path:"/yoast/v1/new-content-type-visibility/dismiss-taxonomy",method:"POST",data:{taxonomy_name:e}})},Fd={...Ed.actions,updateTaxonomyReviewStatus:function*(e){try{yield{type:kd,payload:e}}catch(t){console.error(`Error: Failed to remove "New" badge for ${e}, ${t}`)}return{type:`${kd}/result`,payload:e}}},$d=Ed.reducer,Rd={selectBreadcrumbsForPostTypes:(0,Lt.createSelector)([Ld.selectAllTaxonomies,fd.selectAllPostTypes],((e,t)=>{const s={value:0,label:(0,Et.__)("None","wordpress-seo")},r={};return(0,le.forEach)(t,((t,o)=>{const i=(0,le.filter)(e,(e=>(0,le.includes)(e.postTypes,o)));(0,le.isEmpty)(i)||(r[o]={...t,options:[s,...(0,le.map)(i,(({name:e,label:t})=>({value:e,label:t})))]})})),r})),selectBreadcrumbsForTaxonomies:(0,Lt.createSelector)([Ld.selectAllTaxonomies,fd.selectAllPostTypes,vd.selectHasPageForPosts],((e,t,s)=>{let r=[{value:0,label:(0,Et.__)("None","wordpress-seo")}];s&&r.push({value:"post",label:(0,Et.__)("Blog","wordpress-seo")});const o=(0,le.filter)(t,(({hasArchive:e})=>e));return r=r.concat((0,le.map)(o,(({name:e,label:t})=>({value:e,label:t})))),(0,le.mapValues)(e,(e=>({name:e.name,label:e.label,options:r})))}))},Pd=()=>({...(0,le.get)(window,"wpseoScriptData.defaultSettingValues",{})}),Cd=(0,Lt.createSlice)({name:"defaultSettingValues",initialState:Pd(),reducers:{}}),Od={selectDefaultSettingValue:(e,t,s={})=>(0,le.get)(e,`defaultSettingValues.${t}`,s),selectDefaultSettingValues:e=>(0,le.get)(e,"defaultSettingValues",{})},Nd=Cd.actions,Ad=Cd.reducer,Md=()=>(0,le.get)(window,"wpseoScriptData.fallbacks",{}),Id=(0,Lt.createSlice)({name:"fallbacks",initialState:Md(),reducers:{}}),Dd={selectFallback:(e,t,s={})=>(0,le.get)(e,`fallbacks.${t}`,s),selectFallbacks:e=>(0,le.get)(e,"fallbacks",{})},Bd=Id.actions,Ud=Id.reducer,Vd=window.wp.htmlEntities,zd="indexablePages",qd=`${zd}/fetch`,Wd={},Hd=(0,Lt.createEntityAdapter)({selectId:e=>e.id,sortComparer:(e,t)=>e.name.localeCompare(t.name)}),Gd=()=>Hd.getInitialState({scopes:{}}),Yd=e=>({id:Number(null==e?void 0:e.id)||0,name:String((0,Vd.decodeEntities)((0,le.trim)(null==e?void 0:e.title))||(null==e?void 0:e.slug)||(null==e?void 0:e.id)||0),slug:String((null==e?void 0:e.slug)||"")}),Zd=(0,Lt.createSlice)({name:zd,initialState:Gd(),reducers:{addIndexablePages:{reducer:Hd.upsertMany,prepare:e=>({payload:(0,le.map)(e,Yd)})},removeIndexablePagesScope:(e,{payload:t})=>{var s;t in e.scopes&&(e.scopes[t].status===ts&&(null===(s=Wd[t])||void 0===s||s.abort(),delete Wd[t]),delete e.scopes[t])}},extraReducers:e=>{e.addCase(`${qd}/${Jt}`,((e,{payload:t})=>{e.scopes[t.scope]||(e.scopes[t.scope]={query:{search:""},status:es,ids:[]}),"query"in t&&(e.scopes[t.scope].query=t.query),e.scopes[t.scope].status=ts})),e.addCase(`${qd}/${Qt}`,((e,{payload:t})=>{var s,r;Hd.upsertMany(e,(0,le.map)(t.pages,Yd)),(s=e.scopes)[r=t.scope]||(s[r]={}),e.scopes[t.scope].query=t.query,e.scopes[t.scope].status=ss,e.scopes[t.scope].ids=t.pages.map((e=>e.id))})),e.addCase(`${qd}/${Xt}`,((e,{payload:t})=>{e.scopes[t.scope]||(e.scopes[t.scope]={query:{search:""},status:es,ids:[]}),e.scopes[t.scope].status=rs}))}}),Kd=Hd.getSelectors((e=>e[zd])),Jd={selectIndexablePageById:Kd.selectById};Jd.selectIndexablePagesScope=(0,Lt.createSelector)([Kd.selectIds,(e,t)=>e[zd].scopes[t]],((e,t)=>{var s;return null!=t&&null!==(s=t.query)&&void 0!==s&&s.search?{ids:(null==t?void 0:t.ids)||e,status:(null==t?void 0:t.status)||es,query:(null==t?void 0:t.query)||{search:""}}:{ids:e,status:(null==t?void 0:t.status)||es,query:{search:""}}})),Jd.selectIndexablePagesById=(0,Lt.createSelector)([Kd.selectAll,(e,t)=>t],((e,t)=>e.filter((e=>t.includes(e.id)))));const Qd={...Zd.actions,fetchIndexablePages:function*(e,t={search:""},s=null){yield{type:`${qd}/${Jt}`,payload:{scope:e,query:t}};try{const r=yield{type:qd,payload:{scope:e,query:t,abortController:s}};return{type:`${qd}/${Qt}`,payload:{scope:e,query:t,pages:r}}}catch(t){return"AbortError"===(null==t?void 0:t.name)?{}:(console.error("Error fetching indexable pages:",t),{type:`${qd}/${Xt}`,payload:{scope:e}})}}},Xd={[qd]:async({payload:e})=>{var t;return e.scope in Wd&&(null===(t=Wd[e.scope])||void 0===t||t.abort()),Wd[e.scope]=e.abortController||new AbortController,Pt()({path:`/yoast/v1/available_posts?${(0,Nt.buildQueryString)(e.query)}`,signal:Wd[e.scope].signal})}},ec=Zd.reducer,tc="llmsTxt",sc=(0,Lt.createSlice)({name:tc,initialState:{generationFailure:!1,generationFailureReason:"",llmsTxtUrl:"",disabledPageIndexables:!1,otherIncludedPagesLimit:100},reducers:{setGenerationFailure:(e,{payload:t})=>{e.generationFailure=t.generationFailure,e.generationFailureReason=t.generationFailureReason}}}),rc=sc.actions,oc={selectLlmsTxtGenerationFailure:e=>(0,le.get)(e,"llmsTxt.generationFailure",!1),selectLlmsTxtGenerationFailureReason:e=>(0,le.get)(e,"llmsTxt.generationFailureReason",""),selectLlmsTxtUrl:e=>(0,le.get)(e,"llmsTxt.llmsTxtUrl",""),selectLlmsTxtDisabledPageIndexables:e=>(0,le.get)(e,"llmsTxt.disabledPageIndexables",!1),selectLlmsTxtOtherIncludedPagesLimit:e=>(0,le.get)(e,"llmsTxt.otherIncludedPagesLimit",100)},ic=sc.reducer,ac=(0,Lt.createEntityAdapter)(),nc=()=>ac.getInitialState({status:es,error:""}),lc="fetchMedia",dc=e=>{var t,s;return{id:null==e?void 0:e.id,title:(null==e||null===(t=e.title)||void 0===t?void 0:t.rendered)||(null==e?void 0:e.title),slug:(null==e?void 0:e.slug)||(null==e?void 0:e.name),alt:(null==e?void 0:e.alt_text)||(null==e?void 0:e.alt),url:(null==e?void 0:e.source_url)||(null==e?void 0:e.url),type:(null==e?void 0:e.media_type)||(null==e?void 0:e.type),mime:(null==e?void 0:e.mime_type)||(null==e?void 0:e.mime),author:null==e?void 0:e.author,sizes:(0,le.mapValues)((null==e?void 0:e.sizes)||(null==e||null===(s=e.media_details)||void 0===s?void 0:s.sizes),(e=>({url:(null==e?void 0:e.url)||(null==e?void 0:e.source_url),width:null==e?void 0:e.width,height:null==e?void 0:e.height})),{})}},cc=(0,Lt.createSlice)({name:"media",initialState:nc(),reducers:{addOneMedia:{reducer:ac.addOne,prepare:e=>({payload:dc(e)})},addManyMedia:{reducer:ac.addMany,prepare:e=>({payload:(0,le.map)(e,dc)})}},extraReducers:e=>{e.addCase(`${lc}/${Jt}`,(e=>{e.status=ts})),e.addCase(`${lc}/${Qt}`,((e,t)=>{e.status=ss,ac.addMany(e,(0,le.map)(t.payload,dc))})),e.addCase(`${lc}/${Xt}`,((e,t)=>{e.status=rs,e.error=t.payload}))}}),uc=ac.getSelectors((e=>e.media)),pc={selectMediaIds:uc.selectIds,selectMediaById:uc.selectById,selectIsMediaLoading:e=>(0,le.get)(e,"media.status",es)===ts,selectIsMediaError:e=>(0,le.get)(e,"media.status",es)===rs},mc={...cc.actions,fetchMedia:function*(e){yield{type:`${lc}/${Jt}`};try{const t=yield{type:lc,payload:{per_page:100,include:e}};return{type:`${lc}/${Qt}`,payload:t}}catch(e){return{type:`${lc}/${Xt}`,payload:e}}}},hc={[lc]:async({payload:e})=>Pt()({path:`/wp/v2/media?${(0,Nt.buildQueryString)(e)}`})},fc=cc.reducer,_c=(0,Lt.createEntityAdapter)(),yc="fetchPages",wc="pages";let gc;const bc=e=>{var t;return{id:null==e?void 0:e.id,name:(0,Vd.decodeEntities)((0,le.trim)(null==e?void 0:e.title.rendered))||(null==e?void 0:e.slug)||e.id,slug:null==e?void 0:e.slug,protected:null==e||null===(t=e.content)||void 0===t?void 0:t.protected}},vc=(0,Lt.createSlice)({name:"pages",initialState:_c.getInitialState({status:es,error:""}),reducers:{addOnePage:{reducer:_c.addOne,prepare:e=>({payload:bc(e)})},addManyPages:{reducer:_c.addMany,prepare:e=>({payload:(0,le.map)(e,bc)})}},extraReducers:e=>{e.addCase(`${yc}/${Jt}`,(e=>{e.status=ts})),e.addCase(`${yc}/${Qt}`,((e,t)=>{e.status=ss,_c.addMany(e,(0,le.map)(t.payload,bc))})),e.addCase(`${yc}/${Xt}`,((e,t)=>{e.status=rs,e.error=t.payload}))}}),xc=vc.getInitialState,jc=_c.getSelectors((e=>e.pages)),Sc={selectPageIds:jc.selectIds,selectPageById:jc.selectById,selectPages:jc.selectEntities};Sc.selectPagesWith=(0,Lt.createSelector)([Sc.selectPages,(e,t={})=>t],((e,t)=>{const s={};t.forEach((t=>{null!=t&&t.id&&!e[t.id]&&(s[t.id]={...t})}));const r=(0,le.pickBy)(e,(e=>!e.protected));return{...s,...r}}));const kc={...vc.actions,fetchPages:function*(e){yield{type:`${yc}/${Jt}`};try{const t=yield{type:yc,payload:{...e}};return{type:`${yc}/${Qt}`,payload:t}}catch(e){return{type:`${yc}/${Xt}`,payload:e}}}},Ec={[yc]:async({payload:e})=>{var t;return null===(t=gc)||void 0===t||t.abort(),gc=new AbortController,Pt()({path:`/wp/v2/pages?${(0,Nt.buildQueryString)(e)}`,signal:gc.signal})}},Lc=vc.reducer,Tc=()=>({recommended:(0,le.get)(window,"wpseoScriptData.replacementVariables.recommended",{}),shared:(0,le.get)(window,"wpseoScriptData.replacementVariables.shared",[]),specific:(0,le.get)(window,"wpseoScriptData.replacementVariables.specific",{}),variables:(0,le.get)(window,"wpseoScriptData.replacementVariables.variables",[])}),Fc=(0,Lt.createSlice)({name:"replacementVariables",initialState:Tc(),reducers:{}}),$c={selectRecommendedReplacementVariables:e=>(0,le.get)(e,"replacementVariables.recommended",{}),selectSharedReplacementVariables:e=>(0,le.get)(e,"replacementVariables.shared",[]),selectSpecificReplacementVariables:e=>(0,le.get)(e,"replacementVariables.specific",{}),selectReplacementVariables:e=>(0,le.get)(e,"replacementVariables.variables",[])};$c.selectSpecificReplacementVariablesFor=(0,Lt.createSelector)([$c.selectSharedReplacementVariables,$c.selectSpecificReplacementVariables,(e,t)=>t,(e,t,s)=>s],((e,t,s,r)=>[...e,...(0,le.get)(t,s,(0,le.get)(t,r,[]))])),$c.selectReplacementVariablesFor=(0,Lt.createSelector)([$c.selectReplacementVariables,$c.selectSpecificReplacementVariablesFor],((e,t)=>(0,le.filter)(e,(({name:e})=>(0,le.includes)(t,e))))),$c.selectRecommendedReplacementVariablesFor=(0,Lt.createSelector)([$c.selectRecommendedReplacementVariables,(e,t)=>t,(e,t,s)=>s],((e,t,s)=>(0,le.get)(e,t,(0,le.get)(e,s,[]))));const Rc=Fc.actions,Pc=Fc.reducer,Cc=(e,t)=>{ // translators: %1$s expands to the schema type, e.g. "Web Page" or "Blog Post". -const s=(0,Et.__)("%1$s (default)","wordpress-seo");return e.map((({label:e,value:r})=>({value:r,label:r===t?(0,Et.sprintf)(s,e):e})))},Vc=()=>({articleTypes:(0,le.get)(window,"wpseoScriptData.schema.articleTypes",{}),articleTypeDefaults:(0,le.get)(window,"wpseoScriptData.schema.articleTypeDefaults",{}),pageTypes:(0,le.get)(window,"wpseoScriptData.schema.pageTypes",{}),pageTypeDefaults:(0,le.get)(window,"wpseoScriptData.schema.pageTypeDefaults",{})}),zc=(0,Lt.createSlice)({name:"schema",initialState:Vc(),reducers:{}}),qc={selectSchema:e=>(0,le.get)(e,"schema",{}),selectArticleTypes:e=>(0,le.get)(e,"schema.articleTypes",{}),selectArticleTypeDefaults:e=>(0,le.get)(e,"schema.articleTypeDefaults",{}),selectPageTypes:e=>(0,le.get)(e,"schema.pageTypes",{}),selectPageTypeDefaults:e=>(0,le.get)(e,"schema.pageTypeDefaults",{})};qc.selectArticleTypeValues=(0,Lt.createSelector)(qc.selectArticleTypes,(e=>(0,le.values)(e))),qc.selectArticleTypeDefault=(0,Lt.createSelector)([qc.selectArticleTypeDefaults,(e,t)=>t],((e,t)=>(0,le.get)(e,t,"None"))),qc.selectArticleTypeValuesFor=(0,Lt.createSelector)([qc.selectArticleTypeValues,qc.selectArticleTypeDefault],((e,t)=>Uc(e,t))),qc.selectPageTypeValues=(0,Lt.createSelector)(qc.selectPageTypes,(e=>(0,le.values)(e))),qc.selectPageTypeDefault=(0,Lt.createSelector)([qc.selectPageTypeDefaults,(e,t)=>t],((e,t)=>(0,le.get)(e,t,"WebPage"))),qc.selectPageTypeValuesFor=(0,Lt.createSelector)([qc.selectPageTypeValues,qc.selectPageTypeDefault],((e,t)=>Uc(e,t)));const Wc=zc.actions,Hc=zc.reducer,Gc=(e,{userLocale:t})=>Fi((0,le.join)([...(0,le.isArray)(null==e?void 0:e.keywords)?e.keywords:[],null==e?void 0:e.routeLabel,null==e?void 0:e.fieldLabel]," "),t),Yc=(e,t="",{userLocale:s})=>(0,le.reduce)(e,((e,r,o)=>{const a=(0,le.join)((0,le.filter)([t,o],Boolean),".");return"other_social_urls"===o?{...e,[a]:{route:null==r?void 0:r.route,routeLabel:null==r?void 0:r.routeLabel,fieldId:null==r?void 0:r.fieldId,fieldLabel:null==r?void 0:r.fieldLabel,keywords:Gc(r,{userLocale:s})}}:null!=r&&r.route?{...e,[a]:{...r,keywords:Gc(r,{userLocale:s})}}:{...e,...Yc(r,a,{userLocale:s})}}),{}),Zc=()=>{const e=(0,le.get)(window,"wpseoScriptData.postTypes",{}),t=(0,le.get)(window,"wpseoScriptData.taxonomies",{}),s=(0,le.get)(window,"wpseoScriptData.preferences.userLocale",{});return{index:Ri(e,t,{userLocale:s})}},Kc=(0,Lt.createSlice)({name:"search",initialState:Zc(),reducers:{}}),Jc={selectSearchIndex:e=>(0,le.get)(e,"search.index",{})};Jc.selectQueryableSearchIndex=(0,Lt.createSelector)([Jc.selectSearchIndex,e=>Td.selectPreference(e,"userLocale")],((e,t)=>Yc(e,"",{userLocale:t})));const Qc=Kc.actions,Xc=Kc.reducer,eu=(0,Lt.createEntityAdapter)(),tu="fetchUsers",su=()=>eu.getInitialState({status:es,error:""}),ru=e=>({id:null==e?void 0:e.id,name:(0,le.trim)(null==e?void 0:e.name)||(null==e?void 0:e.slug)||(null==e?void 0:e.id),slug:null==e?void 0:e.slug}),ou=(0,Lt.createSlice)({name:"users",initialState:su(),reducers:{addOneUser:{reducer:eu.addOne,prepare:e=>({payload:ru(e)})},addManyUsers:{reducer:eu.addMany,prepare:e=>({payload:(0,le.map)(e,ru)})}},extraReducers:e=>{e.addCase(`${tu}/${Jt}`,(e=>{e.status=ts})),e.addCase(`${tu}/${Qt}`,((e,t)=>{e.status=ss,eu.addMany(e,(0,le.map)(t.payload,ru))})),e.addCase(`${tu}/${Xt}`,((e,t)=>{e.status=rs,e.error=t.payload}))}}),au=eu.getSelectors((e=>e.users)),iu={selectUserIds:au.selectIds,selectUserById:au.selectById,selectUsers:au.selectEntities};iu.selectUsersWith=(0,Lt.createSelector)([iu.selectUsers,(e,t={})=>t],((e,t)=>null!=t&&t.id&&!e[t.id]?{...e,[t.id]:{...t}}:e));const nu={...ou.actions,fetchUsers:function*(e){yield{type:`${tu}/${Jt}`};try{const t=yield{type:tu,payload:{...e}};return{type:`${tu}/${Qt}`,payload:t}}catch(e){return{type:`${tu}/${Xt}`,payload:e}}}},lu={[tu]:async({payload:e})=>Pt()({path:`/wp/v2/users?${(0,Ct.buildQueryString)(e)}`})},du=ou.reducer,{isPromotionActive:cu}=gd.selectors,{currentPromotions:uu}=gd.reducers,{setCurrentPromotions:pu}=gd.actions,mu=({initialState:e={}}={})=>{(0,t.register)((({initialState:e})=>(0,t.createReduxStore)(ho,{actions:{...zd,...Yd,...ic,...Bt,...uc,...vc,...Ht,...Nc,...kd,...$d,...Dc,...Wc,...Qc,...Md,...nu,setCurrentPromotions:pu},selectors:{...Dd,...Vd,...ds,...Gd,...ac,...Dt,...pc,...bc,...Wt,...Pc,...jd,...Td,...Ic,...qc,...Jc,...Cd,...iu,isPromotionActive:cu},initialState:(0,le.merge)({},{defaultSettingValues:Bd(),fallbacks:Wd(),[Jd]:tc(),[At]:It(),[dc]:{generationFailure:!1,generationFailureReason:"",llmsTxtUrl:"",disabledPageIndexables:!1,otherIncludedPagesLimit:100},media:fc(),[Vt]:qt(),[Ec]:$c(),postTypes:bd(),preferences:Ld(),replacementVariables:Ac(),schema:Vc(),search:Zc(),taxonomies:Pd(),users:su(),currentPromotions:{promotions:[]}},e),reducer:(0,t.combineReducers)({defaultSettingValues:qd,[ns]:cs,fallbacks:Zd,[Jd]:lc,llmsTxt:mc,[At]:Ut,media:jc,[Vt]:Gt,[Ec]:Cc,postTypes:Ed,preferences:Rd,replacementVariables:Bc,schema:Hc,search:Xc,taxonomies:Id,users:du,currentPromotions:uu}),controls:{...xc,...lu,...Sd,...Ad,...Oc,...nc}}))({initialState:e}))};o()((()=>{const s=document.getElementById("yoast-seo-settings");if(!s)return;const r=document.createElement("div"),o=r.attachShadow({mode:"open"});document.body.appendChild(r);const n=(0,le.get)(window,"wpseoScriptData.settings",{}),l=(0,le.get)(window,"wpseoScriptData.fallbacks",{}),d=(0,le.get)(window,"wpseoScriptData.postTypes",{}),c=(0,le.get)(window,"wpseoScriptData.taxonomies",{}),u=(0,le.get)(window,"wpseoScriptData.showNewContentTypeNotification",!1)?{"new-content-type":{id:"new-content-type",variant:"info",size:"large",title:(0,Et.__)("New type of content added to your site!","wordpress-seo"),description:(0,Et.__)("Please see the “New” badges and review the Search appearance settings.","wordpress-seo")}}:{};mu({initialState:{notifications:u,[At]:(0,le.get)(window,"wpseoScriptData.linkParams",{}),currentPromotions:{promotions:(0,le.get)(window,"wpseoScriptData.currentPromotions",[])},llmsTxt:(0,le.get)(window,"wpseoScriptData.llmsTxt",{})}}),(async({settings:e,fallbacks:s})=>{const r=(0,le.get)(e,"wpseo_titles",{}),o=(0,le.filter)([(0,le.get)(e,"wpseo_social.og_default_image_id","0"),(0,le.get)(e,"wpseo_titles.open_graph_frontpage_image_id","0"),(0,le.get)(e,"wpseo_titles.company_logo_id","0"),(0,le.get)(e,"wpseo_titles.person_logo_id","0"),(0,le.get)(s,"siteLogoId","0"),...(0,le.reduce)(r,((e,t,s)=>(0,le.includes)(s,"social-image-id")?[...e,t]:e),[])],Boolean),a=(0,le.chunk)(o,100),{fetchMedia:i}=(0,t.dispatch)(ho);(0,le.forEach)(a,i)})({settings:n,fallbacks:l}),(async({settings:e})=>{const s=(0,le.get)(e,"wpseo_titles.company_or_person_user_id"),{fetchUsers:r}=(0,t.dispatch)(ho);s&&r({include:[s]})})({settings:n}),(()=>{const e=Object.values((0,le.get)(window,"wpseoScriptData.initialLlmTxtPages",{}));0!==e.length&&(0,t.dispatch)(ho).addIndexablePages(e)})(),document.querySelector('[href="#wpbody-content"]').addEventListener("click",(e=>{var t,s;e.preventDefault(),window.outerWidth>782?null===(s=document.getElementById("link-yoast-logo"))||void 0===s||s.focus():null===(t=document.getElementById("button-open-settings-navigation-mobile"))||void 0===t||t.focus()})),document.querySelector('[href="#wp-toolbar"]').addEventListener("click",(e=>{var t;e.preventDefault(),null===(t=document.querySelector("#wp-admin-bar-wp-logo a"))||void 0===t||t.focus()})),(()=>{const e=document.getElementById("wpcontent"),t=document.getElementById("adminmenuwrap");e&&t&&(e.style.minHeight=`${t.offsetHeight}px`)})();const p=(0,t.select)(ho).selectPreference("isRtl",!1);(0,a.createRoot)(s).render((0,mr.jsx)(i.Root,{context:{isRtl:p},children:(0,mr.jsx)(kt.StyleSheetManager,{target:o,children:(0,mr.jsx)(e.SlotFillProvider,{children:(0,mr.jsx)(gt,{children:(0,mr.jsx)(Z,{initialValues:n,validationSchema:sl(d,c),onSubmit:Ni,children:(0,mr.jsx)(wd,{})})})})})}))}))})()})(); \ No newline at end of file +const s=(0,Et.__)("%1$s (default)","wordpress-seo");return e.map((({label:e,value:r})=>({value:r,label:r===t?(0,Et.sprintf)(s,e):e})))},Oc=()=>({articleTypes:(0,le.get)(window,"wpseoScriptData.schema.articleTypes",{}),articleTypeDefaults:(0,le.get)(window,"wpseoScriptData.schema.articleTypeDefaults",{}),pageTypes:(0,le.get)(window,"wpseoScriptData.schema.pageTypes",{}),pageTypeDefaults:(0,le.get)(window,"wpseoScriptData.schema.pageTypeDefaults",{})}),Nc=(0,Lt.createSlice)({name:"schema",initialState:Oc(),reducers:{}}),Ac={selectSchema:e=>(0,le.get)(e,"schema",{}),selectArticleTypes:e=>(0,le.get)(e,"schema.articleTypes",{}),selectArticleTypeDefaults:e=>(0,le.get)(e,"schema.articleTypeDefaults",{}),selectPageTypes:e=>(0,le.get)(e,"schema.pageTypes",{}),selectPageTypeDefaults:e=>(0,le.get)(e,"schema.pageTypeDefaults",{})};Ac.selectArticleTypeValues=(0,Lt.createSelector)(Ac.selectArticleTypes,(e=>(0,le.values)(e))),Ac.selectArticleTypeDefault=(0,Lt.createSelector)([Ac.selectArticleTypeDefaults,(e,t)=>t],((e,t)=>(0,le.get)(e,t,"None"))),Ac.selectArticleTypeValuesFor=(0,Lt.createSelector)([Ac.selectArticleTypeValues,Ac.selectArticleTypeDefault],((e,t)=>Cc(e,t))),Ac.selectPageTypeValues=(0,Lt.createSelector)(Ac.selectPageTypes,(e=>(0,le.values)(e))),Ac.selectPageTypeDefault=(0,Lt.createSelector)([Ac.selectPageTypeDefaults,(e,t)=>t],((e,t)=>(0,le.get)(e,t,"WebPage"))),Ac.selectPageTypeValuesFor=(0,Lt.createSelector)([Ac.selectPageTypeValues,Ac.selectPageTypeDefault],((e,t)=>Cc(e,t)));const Mc=Nc.actions,Ic=Nc.reducer,Dc=(e,{userLocale:t})=>ya((0,le.join)([...(0,le.isArray)(null==e?void 0:e.keywords)?e.keywords:[],null==e?void 0:e.routeLabel,null==e?void 0:e.fieldLabel]," "),t),Bc=(e,t="",{userLocale:s})=>(0,le.reduce)(e,((e,r,o)=>{const i=(0,le.join)((0,le.filter)([t,o],Boolean),".");return"other_social_urls"===o?{...e,[i]:{route:null==r?void 0:r.route,routeLabel:null==r?void 0:r.routeLabel,fieldId:null==r?void 0:r.fieldId,fieldLabel:null==r?void 0:r.fieldLabel,keywords:Dc(r,{userLocale:s})}}:null!=r&&r.route?{...e,[i]:{...r,keywords:Dc(r,{userLocale:s})}}:{...e,...Bc(r,i,{userLocale:s})}}),{}),Uc=()=>{const e=(0,le.get)(window,"wpseoScriptData.postTypes",{}),t=(0,le.get)(window,"wpseoScriptData.taxonomies",{}),s=(0,le.get)(window,"wpseoScriptData.preferences.userLocale",{});return{index:ba(e,t,{userLocale:s})}},Vc=(0,Lt.createSlice)({name:"search",initialState:Uc(),reducers:{}}),zc={selectSearchIndex:e=>(0,le.get)(e,"search.index",{})};zc.selectQueryableSearchIndex=(0,Lt.createSelector)([zc.selectSearchIndex,e=>vd.selectPreference(e,"userLocale")],((e,t)=>Bc(e,"",{userLocale:t})));const qc=Vc.actions,Wc=Vc.reducer,Hc=(0,Lt.createEntityAdapter)(),Gc="fetchUsers",Yc=()=>Hc.getInitialState({status:es,error:""}),Zc=e=>({id:null==e?void 0:e.id,name:(0,le.trim)(null==e?void 0:e.name)||(null==e?void 0:e.slug)||(null==e?void 0:e.id),slug:null==e?void 0:e.slug}),Kc=(0,Lt.createSlice)({name:"users",initialState:Yc(),reducers:{addOneUser:{reducer:Hc.addOne,prepare:e=>({payload:Zc(e)})},addManyUsers:{reducer:Hc.addMany,prepare:e=>({payload:(0,le.map)(e,Zc)})}},extraReducers:e=>{e.addCase(`${Gc}/${Jt}`,(e=>{e.status=ts})),e.addCase(`${Gc}/${Qt}`,((e,t)=>{e.status=ss,Hc.addMany(e,(0,le.map)(t.payload,Zc))})),e.addCase(`${Gc}/${Xt}`,((e,t)=>{e.status=rs,e.error=t.payload}))}}),Jc=Hc.getSelectors((e=>e.users)),Qc={selectUserIds:Jc.selectIds,selectUserById:Jc.selectById,selectUsers:Jc.selectEntities};Qc.selectUsersWith=(0,Lt.createSelector)([Qc.selectUsers,(e,t={})=>t],((e,t)=>null!=t&&t.id&&!e[t.id]?{...e,[t.id]:{...t}}:e));const Xc={...Kc.actions,fetchUsers:function*(e){yield{type:`${Gc}/${Jt}`};try{const t=yield{type:Gc,payload:{...e}};return{type:`${Gc}/${Qt}`,payload:t}}catch(e){return{type:`${Gc}/${Xt}`,payload:e}}}},eu={[Gc]:async({payload:e})=>Pt()({path:`/wp/v2/users?${(0,Nt.buildQueryString)(e)}`})},tu=Kc.reducer,{isPromotionActive:su}=ud.selectors,{currentPromotions:ru}=ud.reducers,{setCurrentPromotions:ou}=ud.actions,iu=({initialState:e={}}={})=>{(0,t.register)((({initialState:e})=>(0,t.createReduxStore)(so,{actions:{...Nd,...Bd,...Qd,...Bt,...rc,...mc,...Ht,...kc,...yd,...xd,...Rc,...Mc,...qc,...Fd,...Xc,setCurrentPromotions:ou},selectors:{...Rd,...Od,...ds,...Dd,...Jd,...Dt,...oc,...pc,...Wt,...Sc,...fd,...vd,...$c,...Ac,...zc,...Ld,...Qc,isPromotionActive:su},initialState:(0,le.merge)({},{defaultSettingValues:Pd(),fallbacks:Md(),[zd]:Gd(),[At]:It(),[tc]:{generationFailure:!1,generationFailureReason:"",llmsTxtUrl:"",disabledPageIndexables:!1,otherIncludedPagesLimit:100},media:nc(),[Vt]:qt(),[wc]:xc(),postTypes:pd(),preferences:gd(),replacementVariables:Tc(),schema:Oc(),search:Uc(),taxonomies:Sd(),users:Yc(),currentPromotions:{promotions:[]}},e),reducer:(0,t.combineReducers)({defaultSettingValues:Ad,[ns]:cs,fallbacks:Ud,[zd]:ec,llmsTxt:ic,[At]:Ut,media:fc,[Vt]:Gt,[wc]:Lc,postTypes:wd,preferences:jd,replacementVariables:Pc,schema:Ic,search:Wc,taxonomies:$d,users:tu,currentPromotions:ru}),controls:{...hc,...eu,..._d,...Td,...Ec,...Xd}}))({initialState:e}))};o()((()=>{const s=document.getElementById("yoast-seo-settings");if(!s)return;const r=document.createElement("div"),o=r.attachShadow({mode:"open"});document.body.appendChild(r);const n=(0,le.get)(window,"wpseoScriptData.settings",{}),l=(0,le.get)(window,"wpseoScriptData.fallbacks",{}),d=(0,le.get)(window,"wpseoScriptData.postTypes",{}),c=(0,le.get)(window,"wpseoScriptData.taxonomies",{}),u=(0,le.get)(window,"wpseoScriptData.showNewContentTypeNotification",!1)?{"new-content-type":{id:"new-content-type",variant:"info",size:"large",title:(0,Et.__)("New type of content added to your site!","wordpress-seo"),description:(0,Et.__)("Please see the “New” badges and review the Search appearance settings.","wordpress-seo")}}:{};iu({initialState:{notifications:u,[At]:(0,le.get)(window,"wpseoScriptData.linkParams",{}),currentPromotions:{promotions:(0,le.get)(window,"wpseoScriptData.currentPromotions",[])},llmsTxt:(0,le.get)(window,"wpseoScriptData.llmsTxt",{})}}),(async({settings:e,fallbacks:s})=>{const r=(0,le.get)(e,"wpseo_titles",{}),o=(0,le.filter)([(0,le.get)(e,"wpseo_social.og_default_image_id","0"),(0,le.get)(e,"wpseo_titles.open_graph_frontpage_image_id","0"),(0,le.get)(e,"wpseo_titles.company_logo_id","0"),(0,le.get)(e,"wpseo_titles.person_logo_id","0"),(0,le.get)(s,"siteLogoId","0"),...(0,le.reduce)(r,((e,t,s)=>(0,le.includes)(s,"social-image-id")?[...e,t]:e),[])],Boolean),i=(0,le.chunk)(o,100),{fetchMedia:a}=(0,t.dispatch)(so);(0,le.forEach)(i,a)})({settings:n,fallbacks:l}),(async({settings:e})=>{const s=(0,le.get)(e,"wpseo_titles.company_or_person_user_id"),{fetchUsers:r}=(0,t.dispatch)(so);s&&r({include:[s]})})({settings:n}),(()=>{const e=Object.values((0,le.get)(window,"wpseoScriptData.initialLlmTxtPages",{}));0!==e.length&&(0,t.dispatch)(so).addIndexablePages(e)})(),document.querySelector('[href="#wpbody-content"]').addEventListener("click",(e=>{var t,s;e.preventDefault(),window.outerWidth>782?null===(s=document.getElementById("link-yoast-logo"))||void 0===s||s.focus():null===(t=document.getElementById("button-open-settings-navigation-mobile"))||void 0===t||t.focus()})),document.querySelector('[href="#wp-toolbar"]').addEventListener("click",(e=>{var t;e.preventDefault(),null===(t=document.querySelector("#wp-admin-bar-wp-logo a"))||void 0===t||t.focus()})),(()=>{const e=document.getElementById("wpcontent"),t=document.getElementById("adminmenuwrap");e&&t&&(e.style.minHeight=`${t.offsetHeight}px`)})();const p=(0,t.select)(so).selectPreference("isRtl",!1);(0,i.createRoot)(s).render((0,ur.jsx)(a.Root,{context:{isRtl:p},children:(0,ur.jsx)(kt.StyleSheetManager,{target:o,children:(0,ur.jsx)(e.SlotFillProvider,{children:(0,ur.jsx)(gt,{children:(0,ur.jsx)(Z,{initialValues:n,validationSchema:Wn(d,c),onSubmit:xa,children:(0,ur.jsx)(cd,{})})})})})}))}))})()})(); \ No newline at end of file @@ -1,8 +1,8 @@ -(()=>{var e={4184:(e,s)=>{var t;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e=[],s=0;s<arguments.length;s++){var t=arguments[s];if(t){var a=typeof t;if("string"===a||"number"===a)e.push(t);else if(Array.isArray(t)){if(t.length){var n=r.apply(null,t);n&&e.push(n)}}else if("object"===a){if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]")){e.push(t.toString());continue}for(var l in t)i.call(t,l)&&t[l]&&e.push(l)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(t=function(){return r}.apply(s,[]))||(e.exports=t)}()}},s={};function t(i){var r=s[i];if(void 0!==r)return r.exports;var a=s[i]={exports:{}};return e[i](a,a.exports,t),a.exports}t.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return t.d(s,{a:s}),s},t.d=(e,s)=>{for(var i in s)t.o(s,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:s[i]})},t.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),(()=>{"use strict";const e=window.wp.components,s=window.wp.data,i=window.wp.domReady;var r=t.n(i);const a=window.wp.element,n=window.yoast.uiLibrary,l=window.lodash,o=window.wp.i18n,c=(e,s)=>{try{return(0,a.createInterpolateElement)(e,s)}catch(s){return console.error("Error in translation for:",e,s),e}},d="@yoast/plans",p={premium:"premium",woo:"woo"},h=window.ReactJSXRuntime,m=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 254 96",children:[(0,h.jsx)("defs",{children:(0,h.jsxs)("linearGradient",{id:"linear-gradient",x1:"-5.65",y1:"-22.38",x2:"280.51",y2:"129.45",gradientUnits:"userSpaceOnUse",children:[(0,h.jsx)("stop",{offset:"0",stopColor:"#5d237a"}),(0,h.jsx)("stop",{offset:".08",stopColor:"#702175"}),(0,h.jsx)("stop",{offset:".22",stopColor:"#872070"}),(0,h.jsx)("stop",{offset:".36",stopColor:"#981e6c"}),(0,h.jsx)("stop",{offset:".51",stopColor:"#a21e69"}),(0,h.jsx)("stop",{offset:".7",stopColor:"#a61e69"})]})}),(0,h.jsx)("rect",{width:"254",height:"96",fill:"url(#linear-gradient)"}),(0,h.jsx)("path",{d:"M159.7,0l-54.31,95.95,148.6.05V0h-94.3Z",fill:"#6c2548",style:{isolation:"isolate"},opacity:".35"}),(0,h.jsx)("path",{d:"M98.39,60.42v5.45c3.37-.14,6.01-1.25,8.25-3.51,2.23-2.27,4.28-5.94,6.23-11.39l14.46-38.74h-7l-11.65,32.37-5.78-18.15h-6.4l8.5,21.84c.82,2.1.82,4.43,0,6.53-.86,2.22-2.4,4.83-6.61,5.61Z",fill:"#fff"}),(0,h.jsx)("path",{d:"M151.78,13.97c-7.31-4.13-16.59-1.55-20.72,5.76-4.13,7.31-1.55,16.59,5.76,20.72,7.31,4.13,16.59,1.55,20.72-5.76,4.13-7.31,1.55-16.59-5.76-20.72Z",fill:"#9fda4f"}),(0,h.jsx)("path",{d:"M132.82,47.53s-.02,0-.02-.02c0,0-.01,0-.02-.01-5.04-2.79-10.95-.82-13.54,3.76-2.7,4.78-1.01,10.84,3.76,13.54,0,0,0,0,.01,0,0,0,0,0,.01,0,4.78,2.68,10.82,1,13.52-3.78,2.69-4.76,1.02-10.8-3.72-13.51",fill:"#fec228"}),(0,h.jsx)("path",{d:"M121.49,78.04c0-2.08-1.09-4.1-3.02-5.19-.93-.52-1.93-.77-2.93-.77-3.28,0-5.97,2.66-5.97,5.96s2.66,5.97,5.96,5.97,5.97-2.66,5.97-5.96",fill:"#ff4e47"}),(0,h.jsx)("path",{d:"M151.78,13.97l-14.96,26.48c7.31,4.13,16.58,1.55,20.72-5.76,4.13-7.31,1.55-16.59-5.76-20.72Z",fill:"#77b227"}),(0,h.jsx)("path",{d:"M132.77,47.5l-9.78,17.3c4.78,2.7,10.84,1.01,13.54-3.76,2.7-4.78,1.01-10.84-3.76-13.54Z",fill:"#f49a00"}),(0,h.jsx)("path",{d:"M118.46,72.84l-5.87,10.38c2.87,1.62,6.51.61,8.12-2.26,1.62-2.87.61-6.51-2.26-8.12",fill:"#ed261f"}),(0,h.jsx)("path",{d:"M156.97,78.66h-16.62v1.46h16.62v-1.46Z",fill:"#cd82ab"}),(0,h.jsx)("path",{d:"M152.48,72.9l-3.82-7.03h0s0,0,0,0l-3.82,7.03-5.88-4.17,1.39,9.4h16.62l1.39-9.4-5.88,4.17Z",fill:"#cd82ab"})]}),y=window.React,u=y.forwardRef((function(e,s){return y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),y.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}));var x=t(4184),f=t.n(x);const g=y.forwardRef((function(e,s){return y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),w=({href:e,children:s,...t})=>(0,h.jsxs)(n.Button,{className:"yst-gap-2 yst-w-full yst-px-2 yst-leading-5",...t,as:"a",href:e,target:"_blank",rel:"noopener",children:[s,(0,h.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,o.__)("(Opens in a new browser tab)","wordpress-seo")})]}),v=({href:e,...s})=>{const t=(0,n.useSvgAria)();return(0,h.jsxs)(w,{...s,href:e,variant:"upsell",children:[(0,o.__)("Buy product","wordpress-seo"),(0,h.jsx)(g,{className:"yst-w-5 yst-h-5 yst-shrink-0 rtl:yst-rotate-180",...t})]})},C=({href:e,...s})=>{const t=(0,n.useSvgAria)();return(0,h.jsxs)(w,{...s,href:e,variant:"tertiary",children:[(0,o.__)("Learn more","wordpress-seo"),(0,h.jsx)(g,{className:"yst-w-5 yst-h-5 yst-shrink-0 rtl:yst-rotate-180 yst-ml-1.5",...t})]})},j=y.forwardRef((function(e,s){return y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))})),L=({href:e,...s})=>{const t=(0,n.useSvgAria)();return(0,h.jsxs)(w,{...s,href:e,variant:"primary",children:[(0,o.sprintf)(/* translators: %s expands to "MyYoast". */ -(0,o.__)("Manage in %s","wordpress-seo"),"MyYoast"),(0,h.jsx)(j,{className:"yst-h-5 yst-w-5 yst-shrink-0 rtl:yst-rotate-[270deg]",...t})]})},b=({variant:e,className:s,children:t})=>(0,h.jsx)("div",{className:"yst-absolute yst-top-0 yst--translate-y-1/2 yst-w-full yst-text-center",children:(0,h.jsx)(n.Badge,{size:"small",className:f()("yst-border",s),variant:e,children:t})}),S=({hasHighlight:e,isActiveHighlight:s,isBlackFridayPromotionActive:t})=>e?(0,h.jsx)(b,{variant:s?"success":"error",children:s?(0,o.__)("Current active plan","wordpress-seo"):(0,o.__)("Plan not activated","wordpress-seo")}):t&&(0,h.jsx)(b,{className:"yst-bg-black yst-text-amber-300 yst-border-amber-300",children:(0,o.__)("30% off - Black Friday","wordpress-seo")}),k=({hasHighlight:e=!1,isActiveHighlight:s=!1,isManageAvailable:t,header:i,title:r,description:a,listDescription:l="",list:c,includes:d,buyLink:p,buyConfig:m,manageLink:y,learnMoreLink:x,isBlackFridayPromotionActive:g})=>{const w=(0,n.useSvgAria)();return(0,h.jsxs)("div",{className:"yst-flex yst-relative yst-max-w-64",children:[(0,h.jsxs)(n.Card,{className:f()(e&&"yst-shadow-md",e&&(s?"yst-border-green-400":"yst-border-red-400")),children:[(0,h.jsx)(n.Card.Header,{className:"yst-overflow-hidden yst-h-auto yst-p-0",children:i}),(0,h.jsxs)(n.Card.Content,{className:"yst-flex yst-flex-col",children:[(0,h.jsx)(n.Title,{as:"h2",children:r}),(0,h.jsx)("p",{className:"yst-mt-3",children:a}),(0,h.jsx)("hr",{className:"yst-my-6 yst-border-t yst-border-slate-200"}),l&&(0,h.jsx)("p",{className:"yst-mb-3",children:l}),(0,h.jsx)("div",{className:"yst-flex yst-flex-col yst-gap-y-2",role:"list",children:c.map(((e,s)=>(0,h.jsxs)("div",{className:"yst-flex yst-gap-x-2",role:"listitem",children:[(0,h.jsx)(u,{className:"yst-w-5 yst-h-5 yst-shrink-0 yst-text-green-500",...w}),e]},`list-item--${s}`)))})]}),(0,h.jsxs)(n.Card.Footer,{className:"yst-pt-4",children:[d&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("span",{className:"yst-block yst-font-medium yst-leading-none",children:(0,o.__)("Now includes:","wordpress-seo")}),(0,h.jsx)("span",{className:"yst-text-xxs yst-text-slate-500",children:d}),(0,h.jsx)("hr",{className:"yst-mt-4 yst-mb-6 yst-border-t yst-border-slate-200"})]}),(0,h.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-y-1",children:[t?(0,h.jsx)(L,{href:y}):(0,h.jsx)(v,{href:p,...m}),(0,h.jsx)(C,{className:"yst-pb-0",href:x})]})]})]}),(0,h.jsx)(S,{hasHighlight:e,isActiveHighlight:s,isBlackFridayPromotionActive:g})]})},A=()=>{const{isActive:e,hasLicense:t,isWooActive:i,buyLink:r,buyConfig:a,manageLink:n,learnMoreLink:l,isBlackFridayPromotionActive:y}=(0,s.useSelect)((e=>{const s=e(d);return{isActive:s.selectAddOnIsActive(p.premium),hasLicense:s.selectAddOnHasLicense(p.premium),isWooActive:s.selectAddOnIsActive(p.woo),buyLink:s.selectLink("http://yoa.st/plans-premium-buy"),buyConfig:s.selectAddOnClickToBuyAsProps(p.premium),manageLink:s.selectLink("http://yoa.st/plans-premium-manage"),learnMoreLink:s.selectLink("http://yoa.st/plans-premium-learn-more"),isBlackFridayPromotionActive:s.isPromotionActive("black-friday-promotion")}}),[]);return(0,h.jsx)(k,{hasHighlight:e&&!i,isActiveHighlight:t,isManageAvailable:t,header:(0,h.jsx)(m,{}),title:"Yoast SEO Premium",description:(0,o.sprintf)(/* translators: %s expands to "Yoast SEO Premium". */ -(0,o.__)("%s gives entrepreneurs and in-house teams real-time SEO guidance, so content meets best practices and drives visibility, no expert knowledge needed.","wordpress-seo"),"Yoast SEO Premium"),listDescription:c((0,o.sprintf)(/* translators: %1$s and %2$s expand to an opening and closing span tag for styling. */ -(0,o.__)("Includes all %1$sFree%2$s features, plus:","wordpress-seo"),"<span>","</span>"),{span:(0,h.jsx)("span",{className:"yst-font-medium yst-text-slate-800"})}),list:[(0,o.__)("AI-enhanced optimization, built right in at no extra cost","wordpress-seo"),(0,o.__)("Smarter content tools; internal linking suggestions and redirect automation","wordpress-seo"),(0,o.__)("Advanced tools to scale your SEO workflow","wordpress-seo")],buyLink:r,buyConfig:a,manageLink:n,learnMoreLink:l,includes:"Local SEO + Video SEO + News SEO",isBlackFridayPromotionActive:y})},_=()=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 254 96",children:[(0,h.jsx)("rect",{width:"254",height:"96",fill:"#0e1e65"}),(0,h.jsx)("path",{d:"M159.7,0l-54.31,95.95,148.6.05V0h-94.3Z",fill:"#0075b3"}),(0,h.jsx)("path",{d:"M98.39,60.42v5.45c3.37-.14,6.01-1.25,8.25-3.51,2.23-2.27,4.28-5.94,6.23-11.39l14.46-38.74h-7l-11.65,32.37-5.78-18.15h-6.4l8.5,21.84c.82,2.1.82,4.43,0,6.53-.86,2.22-2.4,4.83-6.61,5.61Z",fill:"#fff"}),(0,h.jsx)("path",{d:"M151.78,13.97c-7.31-4.13-16.59-1.55-20.72,5.76-4.13,7.31-1.55,16.59,5.76,20.72,7.31,4.13,16.59,1.55,20.72-5.76,4.13-7.31,1.55-16.59-5.76-20.72Z",fill:"#9fda4f"}),(0,h.jsx)("path",{d:"M132.82,47.53s-.02,0-.02-.02c0,0-.01,0-.02-.01-5.04-2.79-10.95-.82-13.54,3.76-2.7,4.78-1.01,10.84,3.76,13.54,0,0,0,0,.01,0,0,0,0,0,.01,0,4.78,2.68,10.82,1,13.52-3.78,2.69-4.76,1.02-10.8-3.72-13.51",fill:"#fec228"}),(0,h.jsx)("path",{d:"M121.49,78.04c0-2.08-1.09-4.1-3.02-5.19-.93-.52-1.93-.77-2.93-.77-3.28,0-5.97,2.66-5.97,5.96s2.66,5.97,5.96,5.97,5.97-2.66,5.97-5.96",fill:"#ff4e47"}),(0,h.jsx)("path",{d:"M151.78,13.97l-14.96,26.48c7.31,4.13,16.58,1.55,20.72-5.76,4.13-7.31,1.55-16.59-5.76-20.72Z",fill:"#77b227"}),(0,h.jsx)("path",{d:"M132.77,47.5l-9.78,17.3c4.78,2.7,10.84,1.01,13.54-3.76,2.7-4.78,1.01-10.84-3.76-13.54Z",fill:"#f49a00"}),(0,h.jsx)("path",{d:"M118.46,72.84l-5.87,10.38c2.87,1.62,6.51.61,8.12-2.26,1.62-2.87.61-6.51-2.26-8.12",fill:"#ed261f"}),(0,h.jsx)("path",{d:"M157.62,64.89c-.7,0-1.31.47-1.49,1.14l-.19.71c-4.47-.08-8.92.44-13.25,1.54-.01,0-.03,0-.04.01-.32.11-.5.46-.39.78.68,2.03,1.49,4.01,2.43,5.93.1.21.32.34.55.34h9.21c.78,0,1.48.49,1.74,1.23h-12.2c-.34,0-.62.28-.62.62s.28.62.62.62h12.93c.34,0,.62-.28.62-.62,0-1.4-.94-2.62-2.3-2.98l2.1-7.87c.04-.13.16-.23.3-.23h1.14c.34,0,.62-.28.62-.62s-.28-.62-.62-.62h-1.14ZM156.29,80.89c-.68,0-1.23-.55-1.23-1.23s.55-1.23,1.23-1.23,1.23.55,1.23,1.23-.55,1.23-1.23,1.23ZM145.83,80.89c-.68,0-1.23-.55-1.23-1.23s.55-1.23,1.23-1.23,1.23.55,1.23,1.23-.55,1.23-1.23,1.23Z",fill:"#a1cce3"})]}),M=()=>{const{isActive:e,hasLicense:t,buyLink:i,buyConfig:r,manageLink:a,learnMoreLink:n,isBlackFridayPromotionActive:l}=(0,s.useSelect)((e=>{const s=e(d);return{isActive:s.selectAddOnIsActive(p.woo),hasLicense:s.selectAddOnHasLicense(p.woo),buyLink:s.selectLink("http://yoa.st/plans-woocommerce-buy"),buyConfig:s.selectAddOnClickToBuyAsProps(p.woo),manageLink:s.selectLink("http://yoa.st/plans-woocommerce-manage"),learnMoreLink:s.selectLink("http://yoa.st/plans-woocommerce-learn-more"),isBlackFridayPromotionActive:s.isPromotionActive("black-friday-promotion")}}),[]);return(0,h.jsx)(k,{hasHighlight:e,isActiveHighlight:t,isManageAvailable:t,header:(0,h.jsx)(_,{}),title:"Yoast WooCommerce SEO",description:(0,o.sprintf)(/* translators: %s expands to "Yoast SEO Premium". */ -(0,o.__)("Built for WooCommerce stores, this bundle helps your products stand out in Google with rich results and smart SEO, plus %s to save time and boost visibility.","wordpress-seo"),"Yoast SEO Premium"),listDescription:c((0,o.sprintf)(/* translators: %1$s and %2$s expand to an opening and closing span tag for styling. */ -(0,o.__)("Includes all %1$sPremium%2$s features, plus:","wordpress-seo"),"<span>","</span>"),{span:(0,h.jsx)("span",{className:"yst-font-medium yst-text-slate-800"})}),list:[(0,o.__)("Increase organic visibility for your products","wordpress-seo"),(0,o.__)("Generate standout product titles and descriptions","wordpress-seo"),(0,o.__)("Get tailored SEO analysis for your product pages","wordpress-seo")],buyLink:i,buyConfig:r,manageLink:a,learnMoreLink:n,includes:"Local SEO + Video SEO + News SEO",isBlackFridayPromotionActive:l})},N=({href:e,...s})=>{const t=(0,n.useSvgAria)();return(0,h.jsxs)(w,{...s,href:e,variant:"primary",children:[(0,o.__)("Learn more","wordpress-seo"),(0,h.jsx)(g,{className:"yst-w-5 yst-h-5 yst-shrink-0 rtl:yst-rotate-180",...t})]})},O=()=>(0,h.jsxs)("svg",{width:"254",height:"97",viewBox:"0 0 254 97",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("path",{d:"M254 96.7619H0C0 96.7619 0 76.0129 0 70.3137V7.05556C0 3.02381 3.02381 0 7.05556 0H246.944C250.976 0 254 3.02381 254 7.05556V96.7619Z",fill:"url(#paint0_linear_531_238)"}),(0,h.jsx)("path",{opacity:"0.35",d:"M158.942 0L104.191 96.7744H254V7.09474C254 3.063 250.976 0.039188 246.944 0.039188",fill:"#6C2548"}),(0,h.jsx)("path",{d:"M97.156 60.4224V65.8734C100.557 65.7328 103.218 64.6239 105.469 62.3592C107.721 60.0944 109.783 56.424 111.752 50.973L126.331 12.2383H119.278L107.532 44.6005L101.706 26.4514H95.2509L103.816 48.2866C104.643 50.3873 104.643 52.7145 103.816 54.8153C102.95 57.0331 101.391 59.6415 97.156 60.4224Z",fill:"white"}),(0,h.jsx)("path",{d:"M150.972 13.9759C143.603 9.8486 134.255 12.4257 130.09 19.7353C125.926 27.045 128.528 36.3187 135.896 40.4498C143.265 44.581 152.613 42 156.778 34.6904C160.939 27.3808 158.341 18.1071 150.972 13.9759Z",fill:"#9FDA4F"}),(0,h.jsx)("path",{d:"M150.972 13.9759L135.896 40.4498C143.265 44.581 152.613 42 156.778 34.6904C160.939 27.3807 158.341 18.107 150.972 13.9759Z",fill:"#77B227"}),(0,h.jsx)("path",{d:"M131.854 47.5291C131.854 47.5291 131.838 47.5213 131.831 47.5134C131.823 47.5134 131.819 47.5056 131.811 47.5017C126.729 44.7138 120.778 46.6778 118.168 51.2659C115.448 56.0452 117.149 62.1015 121.963 64.8035C121.963 64.8035 121.97 64.8074 121.974 64.8113C121.974 64.8113 121.982 64.8152 121.986 64.8191C126.8 67.5017 132.893 65.8148 135.609 61.0433C138.321 56.2795 136.641 50.2428 131.858 47.533",fill:"#FEC228"}),(0,h.jsx)("path",{d:"M131.81 47.5017L121.958 64.8035C126.772 67.5017 132.885 65.8148 135.605 61.0394C138.325 56.26 136.624 50.1999 131.81 47.5017Z",fill:"#F49A00"}),(0,h.jsx)("path",{d:"M120.443 78.0367C120.443 75.9594 119.345 73.9407 117.396 72.8434C116.463 72.3202 115.448 72.0703 114.444 72.0703C111.134 72.0703 108.426 74.7294 108.426 78.0289C108.426 81.3284 111.106 83.9992 114.432 83.9992C117.758 83.9992 120.451 81.3401 120.451 78.0406",fill:"#FF4E47"}),(0,h.jsx)("path",{d:"M117.388 72.8395L111.476 83.2221C114.365 84.8426 118.034 83.8312 119.663 80.9613C121.297 78.0952 120.277 74.456 117.384 72.8395",fill:"#ED261F"}),(0,h.jsxs)("g",{opacity:"0.65",children:[(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M152.895 68.1138C153.167 68.1138 153.406 68.2945 153.482 68.5563L154.144 70.8723C154.433 71.8864 155.226 72.6793 156.24 72.9689L158.556 73.6309C158.88 73.7237 159.068 74.0615 158.975 74.3857C158.917 74.5884 158.759 74.7463 158.556 74.8045L156.24 75.4665C155.226 75.7561 154.433 76.549 154.144 77.563L153.482 79.8791C153.389 80.2033 153.051 80.3908 152.727 80.2979C152.524 80.2396 152.366 80.0817 152.308 79.8791L151.646 77.563C151.356 76.549 150.563 75.7561 149.549 75.4665L147.233 74.8045C146.909 74.7116 146.722 74.3739 146.815 74.0497C146.873 73.847 147.031 73.6891 147.233 73.6309L149.549 72.9689C150.563 72.6793 151.356 71.8864 151.646 70.8723L152.308 68.5563C152.383 68.2945 152.622 68.1138 152.895 68.1138Z",fill:"white"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M146.93 63.3542C147.115 63.3542 147.276 63.48 147.321 63.659L147.46 64.2154C147.586 64.7204 147.981 65.1138 148.485 65.2405L149.041 65.379C149.257 65.4321 149.388 65.6508 149.335 65.8661C149.299 66.0114 149.185 66.1245 149.041 66.16L148.485 66.2985C147.98 66.4251 147.586 66.8194 147.46 67.3235L147.321 67.8799C147.268 68.0961 147.049 68.227 146.834 68.1738C146.689 68.1375 146.576 68.0243 146.54 67.8799L146.402 67.3235C146.276 66.8186 145.882 66.4243 145.377 66.2985L144.82 66.16C144.604 66.1068 144.473 65.8881 144.526 65.6728C144.563 65.5276 144.676 65.4144 144.82 65.379L145.377 65.2405C145.882 65.1147 146.276 64.7204 146.402 64.2154L146.54 63.659C146.584 63.48 146.745 63.3542 146.93 63.3542Z",fill:"white"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M142.369 73.0778C142.467 73.0778 142.555 73.1403 142.585 73.234L142.705 73.5937C142.751 73.7296 142.857 73.8369 142.993 73.8816L143.353 74.0015C143.472 74.0412 143.537 74.1712 143.496 74.2903C143.473 74.3578 143.42 74.411 143.353 74.4338L142.993 74.5537C142.857 74.5993 142.75 74.7057 142.705 74.8417L142.585 75.2013C142.545 75.3204 142.415 75.3854 142.296 75.3449C142.229 75.3221 142.176 75.2689 142.153 75.2013L142.033 74.8417C141.987 74.7057 141.881 74.5985 141.745 74.5537L141.385 74.4338C141.266 74.3941 141.201 74.2641 141.242 74.1451C141.265 74.0775 141.318 74.0243 141.385 74.0015L141.745 73.8816C141.881 73.836 141.988 73.7296 142.033 73.5937L142.153 73.234C142.184 73.1411 142.271 73.0778 142.369 73.0778Z",fill:"white"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M140.028 77.4423C140.126 77.4423 140.213 77.5047 140.244 77.5985L140.364 77.9582C140.409 78.0941 140.516 78.2013 140.652 78.2461L141.011 78.366C141.13 78.4057 141.195 78.5357 141.155 78.6548C141.132 78.7223 141.079 78.7755 141.011 78.7983L140.652 78.9182C140.516 78.9638 140.408 79.0702 140.364 79.2061L140.244 79.5658C140.204 79.6849 140.074 79.7499 139.955 79.7094C139.887 79.6866 139.834 79.6334 139.811 79.5658L139.692 79.2061C139.646 79.0702 139.54 78.9629 139.404 78.9182L139.044 78.7983C138.925 78.7586 138.86 78.6286 138.9 78.5095C138.923 78.442 138.976 78.3888 139.044 78.366L139.404 78.2461C139.54 78.2005 139.647 78.0941 139.692 77.9582L139.811 77.5985C139.843 77.5056 139.93 77.4423 140.028 77.4423Z",fill:"white"}),(0,h.jsx)("path",{d:"M139.776 76.896C139.463 76.0617 139.291 75.16 139.291 74.2177C139.291 70.9205 141.391 68.1045 144.324 67.0373L143.94 66.0071C140.587 67.2281 138.194 70.4434 138.194 74.2177C138.194 75.2883 138.387 76.3142 138.739 77.2624L139.776 76.896Z",fill:"white"}),(0,h.jsx)("path",{d:"M151.69 80.1881C150.384 81.2317 148.729 81.8566 146.93 81.8566C144.728 81.8566 142.741 80.9193 141.345 79.4231L140.534 80.1678C142.129 81.8819 144.404 82.9534 146.93 82.9534C148.985 82.9534 150.873 82.2441 152.365 81.0578L151.69 80.1873V80.1881Z",fill:"white"}),(0,h.jsx)("path",{d:"M146.93 70.1285C148.02 70.1285 149.012 70.5582 149.745 71.2557L150.481 70.4375C149.553 69.5653 148.305 69.0308 146.931 69.0308C144.655 69.0308 142.724 70.4966 142.024 72.5357L143.056 72.914C143.602 71.297 145.132 70.1285 146.931 70.1285H146.93Z",fill:"white"}),(0,h.jsx)("path",{d:"M149.74 77.1847C149.007 77.8796 148.018 78.3069 146.931 78.3069C145.124 78.3069 143.589 77.129 143.05 75.5002L142.008 75.8515C142.693 77.9151 144.638 79.4046 146.931 79.4046C148.306 79.4046 149.556 78.8675 150.485 77.9936L149.74 77.1847Z",fill:"white"})]}),(0,h.jsx)("defs",{children:(0,h.jsxs)("linearGradient",{id:"paint0_linear_531_238",x1:"0",y1:"0",x2:"257.156",y2:"87.4845",gradientUnits:"userSpaceOnUse",children:[(0,h.jsx)("stop",{stopColor:"#6366F1"}),(0,h.jsx)("stop",{offset:"1",stopColor:"#A61E69"})]})})]}),P=({title:e,description:s,listDescription:t,list:i,includes:r,learnMoreLink:a})=>{const l=(0,n.useSvgAria)();return(0,h.jsx)("div",{className:"yst-flex yst-relative yst-max-w-64",children:(0,h.jsxs)(n.Card,{children:[(0,h.jsx)(n.Card.Header,{className:"yst-overflow-hidden yst-h-auto yst-p-0",children:(0,h.jsx)(O,{})}),(0,h.jsxs)(n.Card.Content,{className:"yst-flex yst-flex-col",children:[(0,h.jsx)(n.Title,{as:"h2",children:e}),(0,h.jsx)("p",{className:"yst-mt-3",children:s}),(0,h.jsx)("hr",{className:"yst-my-6 yst-border-t yst-border-slate-200"}),t&&(0,h.jsx)("p",{className:"yst-mb-3",children:t}),(0,h.jsx)("div",{className:"yst-flex yst-flex-col yst-gap-y-2",role:"list",children:i.map(((e,s)=>(0,h.jsxs)("div",{className:"yst-flex yst-gap-x-2",role:"listitem",children:[(0,h.jsx)(u,{className:"yst-w-5 yst-h-5 yst-shrink-0 yst-text-green-500",...l}),e]},`list-item--${s}`)))})]}),(0,h.jsxs)(n.Card.Footer,{className:"yst-pt-4 yst-mt-auto",children:[r&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("span",{className:"yst-block yst-font-medium yst-leading-none",children:(0,o.__)("Now includes:","wordpress-seo")}),(0,h.jsx)("span",{className:"yst-text-xxs yst-text-slate-500",children:r}),(0,h.jsx)("hr",{className:"yst-mt-4 yst-mb-6 yst-border-t yst-border-slate-200"})]}),(0,h.jsx)(N,{href:a})]})]})})},B=()=>{const e=(0,s.useSelect)((e=>e(d).selectLink("https://yoa.st/plans-ai-plus-learn-more")),[]);return(0,h.jsx)(P,{header:(0,h.jsx)(O,{}),title:"Yoast AI+",description:(0,o.__)("For marketers and content publishers looking to boost brand awareness and visibility, this package combines powerful on page SEO tools with AI brand monitoring and insights.","wordpress-seo"),listDescription:c((0,o.sprintf)(/* translators: %1$s and %2$s expand to an opening and closing span tag for styling. */ -(0,o.__)("Includes all %1$sWooCommerce SEO%2$s features, plus:","wordpress-seo"),"<span>","</span>"),{span:(0,h.jsx)("span",{className:"yst-font-medium yst-text-slate-800"})}),list:[(0,o.__)("Track and measure brand visibility in AI platforms","wordpress-seo"),(0,o.__)("Build and protect your brand reputation with insights","wordpress-seo"),(0,o.__)("Optimize your site for visitors, search and LLMs","wordpress-seo")],learnMoreLink:e,includes:"Local SEO + Video SEO + News SEO"})},E=()=>(0,h.jsx)("div",{className:"yst-p-4 min-[783px]:yst-p-8 yst-mb-8 xl:yst-mb-0",children:(0,h.jsxs)(n.Paper,{as:"main",className:"yst-max-w-page",children:[(0,h.jsx)("header",{className:"yst-p-8 yst-border-b yst-border-slate-200",children:(0,h.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,h.jsx)(n.Title,{children:(0,o.__)("Plans","wordpress-seo")}),(0,h.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:(0,o.__)("Compare plans and find the perfect fit for your site - from essential SEO features to advanced automation.","wordpress-seo")})]})}),(0,h.jsx)("div",{className:"yst-h-full yst-p-8",children:(0,h.jsxs)("div",{className:"yst-max-w-6xl yst-flex yst-gap-6 yst-flex-wrap",children:[(0,h.jsx)(A,{}),(0,h.jsx)(M,{}),(0,h.jsx)(B,{})]})})]})}),I=window.yoast.reduxJsToolkit,Z="adminUrl",F=(0,I.createSlice)({name:Z,initialState:"",reducers:{setAdminUrl:(e,{payload:s})=>s}}),H=(F.getInitialState,{selectAdminUrl:e=>(0,l.get)(e,Z,"")});H.selectAdminLink=(0,I.createSelector)([H.selectAdminUrl,(e,s)=>s],((e,s="")=>{try{return new URL(s,e).href}catch(s){return e}})),F.actions,F.reducer,window.wp.apiFetch;const R="hasConsent",U=(0,I.createSlice)({name:R,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:s})=>{e.hasConsent=s},setAiGeneratorConsentEndpoint:(e,{payload:s})=>{e.endpoint=s}}}),$=(U.getInitialState,U.actions,U.reducer,window.wp.url),T="linkParams",D=(0,I.createSlice)({name:T,initialState:{},reducers:{setLinkParams:(e,{payload:s})=>s}}),V=D.getInitialState,z={selectLinkParam:(e,s,t={})=>(0,l.get)(e,`${T}.${s}`,t),selectLinkParams:e=>(0,l.get)(e,T,{})};z.selectLink=(0,I.createSelector)([z.selectLinkParams,(e,s)=>s,(e,s,t={})=>t],((e,s,t)=>(0,$.addQueryArgs)(s,{...e,...t})));const W=D.actions,G=D.reducer,Y=(0,I.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:s})=>{e[s.id]={id:s.id,variant:s.variant,size:s.size,title:s.title,description:s.description}},prepare:({id:e,variant:s="info",size:t="default",title:i,description:r})=>({payload:{id:e||(0,I.nanoid)(),variant:s,size:t,title:i||"",description:r}})},removeNotification:(e,{payload:s})=>(0,l.omit)(e,s)}}),J=(Y.getInitialState,Y.actions,Y.reducer,"pluginUrl"),q=(0,I.createSlice)({name:J,initialState:"",reducers:{setPluginUrl:(e,{payload:s})=>s}}),Q=(q.getInitialState,{selectPluginUrl:e=>(0,l.get)(e,J,"")});Q.selectImageLink=(0,I.createSelector)([Q.selectPluginUrl,(e,s,t="images")=>t,(e,s)=>s],((e,s,t)=>[(0,l.trimEnd)(e,"/"),(0,l.trim)(s,"/"),(0,l.trimStart)(t,"/")].join("/"))),q.actions,q.reducer;const X="wistiaEmbedPermission",K=(0,I.createSlice)({name:X,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:s})=>{e.value=Boolean(s)}},extraReducers:e=>{e.addCase(`${X}/request`,(e=>{e.status="loading"})),e.addCase(`${X}/success`,((e,{payload:s})=>{e.status="success",e.value=Boolean(s&&s.value)})),e.addCase(`${X}/error`,((e,{payload:s})=>{e.status="error",e.value=Boolean(s&&s.value),e.error={code:(0,l.get)(s,"error.code",500),message:(0,l.get)(s,"error.message","Unknown")}}))}});var ee;K.getInitialState,K.actions,K.reducer;const se=(0,I.createSlice)({name:"documentTitle",initialState:(0,l.defaultTo)(null===(ee=document)||void 0===ee?void 0:ee.title,""),reducers:{setDocumentTitle:(e,{payload:s})=>s}}),te=(se.getInitialState,se.actions,se.reducer,"addOns"),ie=(0,I.createEntityAdapter)({selectId:e=>e.id,sortComparer:(e,s)=>e.id.localeCompare(s.id)}),re=e=>"object"==typeof e&&Object.keys(p).includes(String(e.id))?{id:String(e.id),isActive:Boolean(e.isActive),hasLicense:Boolean(e.hasLicense),ctb:{action:(0,l.get)(e,"ctb.action",""),id:(0,l.get)(e,"ctb.id","")}}:null,ae=(0,I.createSlice)({name:te,initialState:ie.getInitialState(),reducers:{addManyAddOns:{reducer:ie.addMany,prepare:e=>({payload:(0,l.filter)((0,l.map)(e,re),Boolean)})}}}),ne=ae.getInitialState,le={selectAddOnById:ie.getSelectors((e=>e[te])).selectById};le.selectAddOnIsActive=(0,I.createSelector)([le.selectAddOnById],(e=>e.isActive)),le.selectAddOnHasLicense=(0,I.createSelector)([le.selectAddOnById],(e=>e.hasLicense)),le.selectAddOnClickToBuy=(0,I.createSelector)([le.selectAddOnById],(e=>e.ctb)),le.selectAddOnClickToBuyAsProps=(0,I.createSelector)([le.selectAddOnClickToBuy],(e=>({"data-action":e.action,"data-ctb-id":e.id})));const oe=ae.actions,ce=ae.reducer,de="preferences",pe=(0,I.createSlice)({name:de,initialState:{},reducers:{}}),he=pe.getInitialState,me={selectPreference:(e,s,t=!1)=>(0,l.get)(e,[de,s],t),selectPreferences:e=>(0,l.get)(e,de,{})},ye=pe.actions,ue=pe.reducer,xe=window.yoast.externals.redux,{currentPromotions:fe}=xe.reducers,{isPromotionActive:ge}=xe.selectors,we="currentPromotions";r()((()=>{const t=document.getElementById("yoast-seo-plans");if(!t)return;(({initialState:e={}}={})=>{(0,s.register)((({initialState:e})=>(0,s.createReduxStore)(d,{actions:{...oe,...W,...ye},selectors:{...le,...z,...me,isPromotionActive:ge},initialState:(0,l.merge)({},{[te]:ne(),[T]:V(),[de]:he(),[we]:{promotions:[]}},e),reducer:(0,s.combineReducers)({[te]:ce,[T]:G,[de]:ue,currentPromotions:fe})}))({initialState:e}))})({initialState:{[T]:(0,l.get)(window,"wpseoScriptData.linkParams",{}),[de]:(0,l.get)(window,"wpseoScriptData.preferences",{}),[we]:{promotions:(0,l.get)(window,"wpseoScriptData.currentPromotions",[])}}}),(0,s.dispatch)(d).addManyAddOns((0,l.get)(window,"wpseoScriptData.addOns",{})),(()=>{const e=document.getElementById("wpcontent"),s=document.getElementById("adminmenuwrap");e&&s&&(e.style.minHeight=`${s.offsetHeight}px`)})();const i=(0,s.select)(d).selectPreference("isRtl",!1);(0,a.createRoot)(t).render((0,h.jsx)(n.Root,{context:{isRtl:i},children:(0,h.jsx)(e.SlotFillProvider,{children:(0,h.jsx)(E,{})})}))}))})()})(); \ No newline at end of file +(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var A={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var r=typeof s;if("string"===r||"number"===r)e.push(s);else if(Array.isArray(s)){if(s.length){var a=i.apply(null,s);a&&e.push(a)}}else if("object"===r){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var n in s)A.call(s,n)&&s[n]&&e.push(n)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(s=function(){return i}.apply(t,[]))||(e.exports=s)}()}},t={};function s(A){var i=t[A];if(void 0!==i)return i.exports;var r=t[A]={exports:{}};return e[A](r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var A in t)s.o(t,A)&&!s.o(e,A)&&Object.defineProperty(e,A,{enumerable:!0,get:t[A]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.components,t=window.wp.data,A=window.wp.domReady;var i=s.n(A);const r=window.wp.element,a=window.yoast.uiLibrary,n=window.lodash,l=window.wp.i18n,o=(e,t)=>{try{return(0,r.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},d="@yoast/plans",c={premium:"premium",woo:"woo"},g=window.ReactJSXRuntime,f=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 254 96",children:[(0,g.jsx)("defs",{children:(0,g.jsxs)("linearGradient",{id:"linear-gradient",x1:"-5.65",y1:"-22.38",x2:"280.51",y2:"129.45",gradientUnits:"userSpaceOnUse",children:[(0,g.jsx)("stop",{offset:"0",stopColor:"#5d237a"}),(0,g.jsx)("stop",{offset:".08",stopColor:"#702175"}),(0,g.jsx)("stop",{offset:".22",stopColor:"#872070"}),(0,g.jsx)("stop",{offset:".36",stopColor:"#981e6c"}),(0,g.jsx)("stop",{offset:".51",stopColor:"#a21e69"}),(0,g.jsx)("stop",{offset:".7",stopColor:"#a61e69"})]})}),(0,g.jsx)("rect",{width:"254",height:"96",fill:"url(#linear-gradient)"}),(0,g.jsx)("path",{d:"M159.7,0l-54.31,95.95,148.6.05V0h-94.3Z",fill:"#6c2548",style:{isolation:"isolate"},opacity:".35"}),(0,g.jsx)("path",{d:"M98.39,60.42v5.45c3.37-.14,6.01-1.25,8.25-3.51,2.23-2.27,4.28-5.94,6.23-11.39l14.46-38.74h-7l-11.65,32.37-5.78-18.15h-6.4l8.5,21.84c.82,2.1.82,4.43,0,6.53-.86,2.22-2.4,4.83-6.61,5.61Z",fill:"#fff"}),(0,g.jsx)("path",{d:"M151.78,13.97c-7.31-4.13-16.59-1.55-20.72,5.76-4.13,7.31-1.55,16.59,5.76,20.72,7.31,4.13,16.59,1.55,20.72-5.76,4.13-7.31,1.55-16.59-5.76-20.72Z",fill:"#9fda4f"}),(0,g.jsx)("path",{d:"M132.82,47.53s-.02,0-.02-.02c0,0-.01,0-.02-.01-5.04-2.79-10.95-.82-13.54,3.76-2.7,4.78-1.01,10.84,3.76,13.54,0,0,0,0,.01,0,0,0,0,0,.01,0,4.78,2.68,10.82,1,13.52-3.78,2.69-4.76,1.02-10.8-3.72-13.51",fill:"#fec228"}),(0,g.jsx)("path",{d:"M121.49,78.04c0-2.08-1.09-4.1-3.02-5.19-.93-.52-1.93-.77-2.93-.77-3.28,0-5.97,2.66-5.97,5.96s2.66,5.97,5.96,5.97,5.97-2.66,5.97-5.96",fill:"#ff4e47"}),(0,g.jsx)("path",{d:"M151.78,13.97l-14.96,26.48c7.31,4.13,16.58,1.55,20.72-5.76,4.13-7.31,1.55-16.59-5.76-20.72Z",fill:"#77b227"}),(0,g.jsx)("path",{d:"M132.77,47.5l-9.78,17.3c4.78,2.7,10.84,1.01,13.54-3.76,2.7-4.78,1.01-10.84-3.76-13.54Z",fill:"#f49a00"}),(0,g.jsx)("path",{d:"M118.46,72.84l-5.87,10.38c2.87,1.62,6.51.61,8.12-2.26,1.62-2.87.61-6.51-2.26-8.12",fill:"#ed261f"}),(0,g.jsx)("path",{d:"M156.97,78.66h-16.62v1.46h16.62v-1.46Z",fill:"#cd82ab"}),(0,g.jsx)("path",{d:"M152.48,72.9l-3.82-7.03h0s0,0,0,0l-3.82,7.03-5.88-4.17,1.39,9.4h16.62l1.39-9.4-5.88,4.17Z",fill:"#cd82ab"})]}),p=window.React,u=p.forwardRef((function(e,t){return p.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),p.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}));var w=s(4184),h=s.n(w);const v=p.forwardRef((function(e,t){return p.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),p.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),C=({href:e,children:t,...s})=>(0,g.jsxs)(a.Button,{className:"yst-gap-2 yst-w-full yst-px-2 yst-leading-5",...s,as:"a",href:e,target:"_blank",rel:"noopener",children:[t,(0,g.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ +(0,l.__)("(Opens in a new browser tab)","wordpress-seo")})]}),m=({href:e,label:t,variant:s,iconClassName:A="",...i})=>{const r=(0,a.useSvgAria)();return(0,g.jsxs)(C,{...i,href:e,variant:s,children:[t,(0,g.jsx)(v,{className:h()("yst-w-5 yst-h-5 yst-shrink-0 rtl:yst-rotate-180",A),...r})]})},y=p.forwardRef((function(e,t){return p.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),p.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))})),x=({href:e,label:t,...s})=>{const A=(0,a.useSvgAria)();return(0,g.jsxs)(C,{...s,href:e,variant:"primary",children:[t,(0,g.jsx)(y,{className:"yst-h-5 yst-w-5 yst-shrink-0 rtl:yst-rotate-[270deg]",...A})]})},P=({variant:e,className:t,children:s})=>(0,g.jsx)("div",{className:"yst-absolute yst-top-0 yst--translate-y-1/2 yst-w-full yst-text-center",children:(0,g.jsx)(a.Badge,{size:"small",className:h()("yst-border",t),variant:e,children:s})}),D=({hasHighlight:e,isActiveHighlight:t,isBlackFridayPromotionActive:s,isLicenseRequired:A})=>A?e?(0,g.jsx)(P,{variant:t?"success":"error",children:t?(0,l.__)("Current active plan","wordpress-seo"):(0,l.__)("Plan not activated","wordpress-seo")}):s&&(0,g.jsx)(P,{className:"yst-bg-black yst-text-amber-300 yst-border-amber-300",children:(0,l.__)("30% off - Black Friday","wordpress-seo")}):e&&(0,g.jsx)(P,{variant:"success",children:(0,l.__)("Active","wordpress-seo")}),j=({hasHighlight:e=!1,isActiveHighlight:t=!1,isLicenseRequired:s=!0,isManageAvailable:A,buttonOverride:i=null,header:r,title:n,description:o,listDescription:d="",list:c,includes:f,buyLink:p,buyConfig:w,manageLink:v,learnMoreOverride:C=null,learnMoreLink:y,isBlackFridayPromotionActive:P})=>{const j=(0,a.useSvgAria)();return(0,g.jsxs)("div",{className:"yst-flex yst-relative yst-max-w-64",children:[(0,g.jsxs)(a.Card,{className:h()(e&&"yst-shadow-md",e&&(t?"yst-border-green-400":"yst-border-red-400")),children:[(0,g.jsx)(a.Card.Header,{className:"yst-overflow-hidden yst-h-auto yst-p-0",children:r}),(0,g.jsxs)(a.Card.Content,{className:"yst-flex yst-flex-col",children:[(0,g.jsx)(a.Title,{as:"h2",children:n}),(0,g.jsx)("p",{className:"yst-mt-3",children:o}),(0,g.jsx)("hr",{className:"yst-my-6 yst-border-t yst-border-slate-200"}),d&&(0,g.jsx)("p",{className:"yst-mb-3",children:d}),(0,g.jsx)("div",{className:"yst-flex yst-flex-col yst-gap-y-2",role:"list",children:c.map(((e,t)=>(0,g.jsxs)("div",{className:"yst-flex yst-gap-x-2",role:"listitem",children:[(0,g.jsx)(u,{className:"yst-w-5 yst-h-5 yst-shrink-0 yst-text-green-500",...j}),e]},`list-item--${t}`)))})]}),(0,g.jsxs)(a.Card.Footer,{className:"yst-pt-4",children:[f&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("span",{className:"yst-block yst-font-medium yst-leading-none",children:(0,l.__)("Now includes:","wordpress-seo")}),(0,g.jsx)("span",{className:"yst-text-xxs yst-text-slate-500",children:f}),(0,g.jsx)("hr",{className:"yst-mt-4 yst-mb-6 yst-border-t yst-border-slate-200"})]}),(0,g.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-y-1",children:[i,!i&&(A?(0,g.jsx)(x,{href:v,label:(0,l.sprintf)(/* translators: %s expands to "MyYoast". */ +(0,l.__)("Manage in %s","wordpress-seo"),"MyYoast")}):(0,g.jsx)(m,{variant:"upsell",href:p,label:(0,l.__)("Buy product","wordpress-seo"),...w})),C||(0,g.jsx)(m,{variant:"tertiary",className:"yst-py-0 yst-mt-2",iconClassName:"yst-ml-1.5",href:y,label:(0,l.__)("Learn more","wordpress-seo")})]})]})]}),(0,g.jsx)(D,{isLicenseRequired:s,hasHighlight:e,isActiveHighlight:t,isBlackFridayPromotionActive:P})]})},H=()=>{const{isActive:e,hasLicense:s,isWooActive:A,buyLink:i,buyConfig:r,manageLink:a,learnMoreLink:n,isBlackFridayPromotionActive:p}=(0,t.useSelect)((e=>{const t=e(d);return{isActive:t.selectAddOnIsActive(c.premium),hasLicense:t.selectAddOnHasLicense(c.premium),isWooActive:t.selectAddOnIsActive(c.woo),buyLink:t.selectLink("http://yoa.st/plans-premium-buy"),buyConfig:t.selectAddOnClickToBuyAsProps(c.premium),manageLink:t.selectLink("http://yoa.st/plans-premium-manage"),learnMoreLink:t.selectLink("http://yoa.st/plans-premium-learn-more"),isBlackFridayPromotionActive:t.isPromotionActive("black-friday-promotion")}}),[]);return(0,g.jsx)(j,{hasHighlight:e&&!A,isActiveHighlight:s,isManageAvailable:s,header:(0,g.jsx)(f,{}),title:"Yoast SEO Premium",description:(0,l.sprintf)(/* translators: %s expands to "Yoast SEO Premium". */ +(0,l.__)("%s gives entrepreneurs and in-house teams real-time SEO guidance, so content meets best practices and drives visibility, no expert knowledge needed.","wordpress-seo"),"Yoast SEO Premium"),listDescription:o((0,l.sprintf)(/* translators: %1$s and %2$s expand to an opening and closing span tag for styling. */ +(0,l.__)("Includes all %1$sFree%2$s features, plus:","wordpress-seo"),"<span>","</span>"),{span:(0,g.jsx)("span",{className:"yst-font-medium yst-text-slate-800"})}),list:[(0,l.__)("AI-enhanced optimization, built right in at no extra cost","wordpress-seo"),(0,l.__)("Smarter content tools; internal linking suggestions and redirect automation","wordpress-seo"),(0,l.__)("Advanced tools to scale your SEO workflow","wordpress-seo")],buyLink:i,buyConfig:r,manageLink:a,learnMoreLink:n,includes:"Local SEO + Video SEO + News SEO",isBlackFridayPromotionActive:p})},b=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 254 96",children:[(0,g.jsx)("rect",{width:"254",height:"96",fill:"#0e1e65"}),(0,g.jsx)("path",{d:"M159.7,0l-54.31,95.95,148.6.05V0h-94.3Z",fill:"#0075b3"}),(0,g.jsx)("path",{d:"M98.39,60.42v5.45c3.37-.14,6.01-1.25,8.25-3.51,2.23-2.27,4.28-5.94,6.23-11.39l14.46-38.74h-7l-11.65,32.37-5.78-18.15h-6.4l8.5,21.84c.82,2.1.82,4.43,0,6.53-.86,2.22-2.4,4.83-6.61,5.61Z",fill:"#fff"}),(0,g.jsx)("path",{d:"M151.78,13.97c-7.31-4.13-16.59-1.55-20.72,5.76-4.13,7.31-1.55,16.59,5.76,20.72,7.31,4.13,16.59,1.55,20.72-5.76,4.13-7.31,1.55-16.59-5.76-20.72Z",fill:"#9fda4f"}),(0,g.jsx)("path",{d:"M132.82,47.53s-.02,0-.02-.02c0,0-.01,0-.02-.01-5.04-2.79-10.95-.82-13.54,3.76-2.7,4.78-1.01,10.84,3.76,13.54,0,0,0,0,.01,0,0,0,0,0,.01,0,4.78,2.68,10.82,1,13.52-3.78,2.69-4.76,1.02-10.8-3.72-13.51",fill:"#fec228"}),(0,g.jsx)("path",{d:"M121.49,78.04c0-2.08-1.09-4.1-3.02-5.19-.93-.52-1.93-.77-2.93-.77-3.28,0-5.97,2.66-5.97,5.96s2.66,5.97,5.96,5.97,5.97-2.66,5.97-5.96",fill:"#ff4e47"}),(0,g.jsx)("path",{d:"M151.78,13.97l-14.96,26.48c7.31,4.13,16.58,1.55,20.72-5.76,4.13-7.31,1.55-16.59-5.76-20.72Z",fill:"#77b227"}),(0,g.jsx)("path",{d:"M132.77,47.5l-9.78,17.3c4.78,2.7,10.84,1.01,13.54-3.76,2.7-4.78,1.01-10.84-3.76-13.54Z",fill:"#f49a00"}),(0,g.jsx)("path",{d:"M118.46,72.84l-5.87,10.38c2.87,1.62,6.51.61,8.12-2.26,1.62-2.87.61-6.51-2.26-8.12",fill:"#ed261f"}),(0,g.jsx)("path",{d:"M157.62,64.89c-.7,0-1.31.47-1.49,1.14l-.19.71c-4.47-.08-8.92.44-13.25,1.54-.01,0-.03,0-.04.01-.32.11-.5.46-.39.78.68,2.03,1.49,4.01,2.43,5.93.1.21.32.34.55.34h9.21c.78,0,1.48.49,1.74,1.23h-12.2c-.34,0-.62.28-.62.62s.28.62.62.62h12.93c.34,0,.62-.28.62-.62,0-1.4-.94-2.62-2.3-2.98l2.1-7.87c.04-.13.16-.23.3-.23h1.14c.34,0,.62-.28.62-.62s-.28-.62-.62-.62h-1.14ZM156.29,80.89c-.68,0-1.23-.55-1.23-1.23s.55-1.23,1.23-1.23,1.23.55,1.23,1.23-.55,1.23-1.23,1.23ZM145.83,80.89c-.68,0-1.23-.55-1.23-1.23s.55-1.23,1.23-1.23,1.23.55,1.23,1.23-.55,1.23-1.23,1.23Z",fill:"#a1cce3"})]}),L=()=>{const{isActive:e,hasLicense:s,buyLink:A,buyConfig:i,manageLink:r,learnMoreLink:a,isBlackFridayPromotionActive:n}=(0,t.useSelect)((e=>{const t=e(d);return{isActive:t.selectAddOnIsActive(c.woo),hasLicense:t.selectAddOnHasLicense(c.woo),buyLink:t.selectLink("http://yoa.st/plans-woocommerce-buy"),buyConfig:t.selectAddOnClickToBuyAsProps(c.woo),manageLink:t.selectLink("http://yoa.st/plans-woocommerce-manage"),learnMoreLink:t.selectLink("http://yoa.st/plans-woocommerce-learn-more"),isBlackFridayPromotionActive:t.isPromotionActive("black-friday-promotion")}}),[]);return(0,g.jsx)(j,{hasHighlight:e,isActiveHighlight:s,isManageAvailable:s,header:(0,g.jsx)(b,{}),title:"Yoast WooCommerce SEO",description:(0,l.sprintf)(/* translators: %s expands to "Yoast SEO Premium". */ +(0,l.__)("Built for WooCommerce stores, this bundle helps your products stand out in Google with rich results and smart SEO, plus %s to save time and boost visibility.","wordpress-seo"),"Yoast SEO Premium"),listDescription:o((0,l.sprintf)(/* translators: %1$s and %2$s expand to an opening and closing span tag for styling. */ +(0,l.__)("Includes all %1$sPremium%2$s features, plus:","wordpress-seo"),"<span>","</span>"),{span:(0,g.jsx)("span",{className:"yst-font-medium yst-text-slate-800"})}),list:[(0,l.__)("Increase organic visibility for your products","wordpress-seo"),(0,l.__)("Generate standout product titles and descriptions","wordpress-seo"),(0,l.__)("Get tailored SEO analysis for your product pages","wordpress-seo")],buyLink:A,buyConfig:i,manageLink:r,learnMoreLink:a,includes:"Local SEO + Video SEO + News SEO",isBlackFridayPromotionActive:n})},B=()=>(0,g.jsxs)("svg",{width:"254",height:"97",viewBox:"0 0 254 97",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{d:"M254 96.7619H0C0 96.7619 0 76.0129 0 70.3137V7.05556C0 3.02381 3.02381 0 7.05556 0H246.944C250.976 0 254 3.02381 254 7.05556V96.7619Z",fill:"url(#paint0_linear_531_238)"}),(0,g.jsx)("path",{opacity:"0.35",d:"M158.942 0L104.191 96.7744H254V7.09474C254 3.063 250.976 0.039188 246.944 0.039188",fill:"#6C2548"}),(0,g.jsx)("path",{d:"M97.156 60.4224V65.8734C100.557 65.7328 103.218 64.6239 105.469 62.3592C107.721 60.0944 109.783 56.424 111.752 50.973L126.331 12.2383H119.278L107.532 44.6005L101.706 26.4514H95.2509L103.816 48.2866C104.643 50.3873 104.643 52.7145 103.816 54.8153C102.95 57.0331 101.391 59.6415 97.156 60.4224Z",fill:"white"}),(0,g.jsx)("path",{d:"M150.972 13.9759C143.603 9.8486 134.255 12.4257 130.09 19.7353C125.926 27.045 128.528 36.3187 135.896 40.4498C143.265 44.581 152.613 42 156.778 34.6904C160.939 27.3808 158.341 18.1071 150.972 13.9759Z",fill:"#9FDA4F"}),(0,g.jsx)("path",{d:"M150.972 13.9759L135.896 40.4498C143.265 44.581 152.613 42 156.778 34.6904C160.939 27.3807 158.341 18.107 150.972 13.9759Z",fill:"#77B227"}),(0,g.jsx)("path",{d:"M131.854 47.5291C131.854 47.5291 131.838 47.5213 131.831 47.5134C131.823 47.5134 131.819 47.5056 131.811 47.5017C126.729 44.7138 120.778 46.6778 118.168 51.2659C115.448 56.0452 117.149 62.1015 121.963 64.8035C121.963 64.8035 121.97 64.8074 121.974 64.8113C121.974 64.8113 121.982 64.8152 121.986 64.8191C126.8 67.5017 132.893 65.8148 135.609 61.0433C138.321 56.2795 136.641 50.2428 131.858 47.533",fill:"#FEC228"}),(0,g.jsx)("path",{d:"M131.81 47.5017L121.958 64.8035C126.772 67.5017 132.885 65.8148 135.605 61.0394C138.325 56.26 136.624 50.1999 131.81 47.5017Z",fill:"#F49A00"}),(0,g.jsx)("path",{d:"M120.443 78.0367C120.443 75.9594 119.345 73.9407 117.396 72.8434C116.463 72.3202 115.448 72.0703 114.444 72.0703C111.134 72.0703 108.426 74.7294 108.426 78.0289C108.426 81.3284 111.106 83.9992 114.432 83.9992C117.758 83.9992 120.451 81.3401 120.451 78.0406",fill:"#FF4E47"}),(0,g.jsx)("path",{d:"M117.388 72.8395L111.476 83.2221C114.365 84.8426 118.034 83.8312 119.663 80.9613C121.297 78.0952 120.277 74.456 117.384 72.8395",fill:"#ED261F"}),(0,g.jsxs)("g",{opacity:"0.65",children:[(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M152.895 68.1138C153.167 68.1138 153.406 68.2945 153.482 68.5563L154.144 70.8723C154.433 71.8864 155.226 72.6793 156.24 72.9689L158.556 73.6309C158.88 73.7237 159.068 74.0615 158.975 74.3857C158.917 74.5884 158.759 74.7463 158.556 74.8045L156.24 75.4665C155.226 75.7561 154.433 76.549 154.144 77.563L153.482 79.8791C153.389 80.2033 153.051 80.3908 152.727 80.2979C152.524 80.2396 152.366 80.0817 152.308 79.8791L151.646 77.563C151.356 76.549 150.563 75.7561 149.549 75.4665L147.233 74.8045C146.909 74.7116 146.722 74.3739 146.815 74.0497C146.873 73.847 147.031 73.6891 147.233 73.6309L149.549 72.9689C150.563 72.6793 151.356 71.8864 151.646 70.8723L152.308 68.5563C152.383 68.2945 152.622 68.1138 152.895 68.1138Z",fill:"white"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M146.93 63.3542C147.115 63.3542 147.276 63.48 147.321 63.659L147.46 64.2154C147.586 64.7204 147.981 65.1138 148.485 65.2405L149.041 65.379C149.257 65.4321 149.388 65.6508 149.335 65.8661C149.299 66.0114 149.185 66.1245 149.041 66.16L148.485 66.2985C147.98 66.4251 147.586 66.8194 147.46 67.3235L147.321 67.8799C147.268 68.0961 147.049 68.227 146.834 68.1738C146.689 68.1375 146.576 68.0243 146.54 67.8799L146.402 67.3235C146.276 66.8186 145.882 66.4243 145.377 66.2985L144.82 66.16C144.604 66.1068 144.473 65.8881 144.526 65.6728C144.563 65.5276 144.676 65.4144 144.82 65.379L145.377 65.2405C145.882 65.1147 146.276 64.7204 146.402 64.2154L146.54 63.659C146.584 63.48 146.745 63.3542 146.93 63.3542Z",fill:"white"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M142.369 73.0778C142.467 73.0778 142.555 73.1403 142.585 73.234L142.705 73.5937C142.751 73.7296 142.857 73.8369 142.993 73.8816L143.353 74.0015C143.472 74.0412 143.537 74.1712 143.496 74.2903C143.473 74.3578 143.42 74.411 143.353 74.4338L142.993 74.5537C142.857 74.5993 142.75 74.7057 142.705 74.8417L142.585 75.2013C142.545 75.3204 142.415 75.3854 142.296 75.3449C142.229 75.3221 142.176 75.2689 142.153 75.2013L142.033 74.8417C141.987 74.7057 141.881 74.5985 141.745 74.5537L141.385 74.4338C141.266 74.3941 141.201 74.2641 141.242 74.1451C141.265 74.0775 141.318 74.0243 141.385 74.0015L141.745 73.8816C141.881 73.836 141.988 73.7296 142.033 73.5937L142.153 73.234C142.184 73.1411 142.271 73.0778 142.369 73.0778Z",fill:"white"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M140.028 77.4423C140.126 77.4423 140.213 77.5047 140.244 77.5985L140.364 77.9582C140.409 78.0941 140.516 78.2013 140.652 78.2461L141.011 78.366C141.13 78.4057 141.195 78.5357 141.155 78.6548C141.132 78.7223 141.079 78.7755 141.011 78.7983L140.652 78.9182C140.516 78.9638 140.408 79.0702 140.364 79.2061L140.244 79.5658C140.204 79.6849 140.074 79.7499 139.955 79.7094C139.887 79.6866 139.834 79.6334 139.811 79.5658L139.692 79.2061C139.646 79.0702 139.54 78.9629 139.404 78.9182L139.044 78.7983C138.925 78.7586 138.86 78.6286 138.9 78.5095C138.923 78.442 138.976 78.3888 139.044 78.366L139.404 78.2461C139.54 78.2005 139.647 78.0941 139.692 77.9582L139.811 77.5985C139.843 77.5056 139.93 77.4423 140.028 77.4423Z",fill:"white"}),(0,g.jsx)("path",{d:"M139.776 76.896C139.463 76.0617 139.291 75.16 139.291 74.2177C139.291 70.9205 141.391 68.1045 144.324 67.0373L143.94 66.0071C140.587 67.2281 138.194 70.4434 138.194 74.2177C138.194 75.2883 138.387 76.3142 138.739 77.2624L139.776 76.896Z",fill:"white"}),(0,g.jsx)("path",{d:"M151.69 80.1881C150.384 81.2317 148.729 81.8566 146.93 81.8566C144.728 81.8566 142.741 80.9193 141.345 79.4231L140.534 80.1678C142.129 81.8819 144.404 82.9534 146.93 82.9534C148.985 82.9534 150.873 82.2441 152.365 81.0578L151.69 80.1873V80.1881Z",fill:"white"}),(0,g.jsx)("path",{d:"M146.93 70.1285C148.02 70.1285 149.012 70.5582 149.745 71.2557L150.481 70.4375C149.553 69.5653 148.305 69.0308 146.931 69.0308C144.655 69.0308 142.724 70.4966 142.024 72.5357L143.056 72.914C143.602 71.297 145.132 70.1285 146.931 70.1285H146.93Z",fill:"white"}),(0,g.jsx)("path",{d:"M149.74 77.1847C149.007 77.8796 148.018 78.3069 146.931 78.3069C145.124 78.3069 143.589 77.129 143.05 75.5002L142.008 75.8515C142.693 77.9151 144.638 79.4046 146.931 79.4046C148.306 79.4046 149.556 78.8675 150.485 77.9936L149.74 77.1847Z",fill:"white"})]}),(0,g.jsx)("defs",{children:(0,g.jsxs)("linearGradient",{id:"paint0_linear_531_238",x1:"0",y1:"0",x2:"257.156",y2:"87.4845",gradientUnits:"userSpaceOnUse",children:[(0,g.jsx)("stop",{stopColor:"#6366F1"}),(0,g.jsx)("stop",{offset:"1",stopColor:"#A61E69"})]})})]}),O=({title:e,description:t,listDescription:s,list:A,includes:i,learnMoreLink:r})=>{const n=(0,a.useSvgAria)();return(0,g.jsx)("div",{className:"yst-flex yst-relative yst-max-w-64",children:(0,g.jsxs)(a.Card,{children:[(0,g.jsx)(a.Card.Header,{className:"yst-overflow-hidden yst-h-auto yst-p-0",children:(0,g.jsx)(B,{})}),(0,g.jsxs)(a.Card.Content,{className:"yst-flex yst-flex-col",children:[(0,g.jsx)(a.Title,{as:"h2",children:e}),(0,g.jsx)("p",{className:"yst-mt-3",children:t}),(0,g.jsx)("hr",{className:"yst-my-6 yst-border-t yst-border-slate-200"}),s&&(0,g.jsx)("p",{className:"yst-mb-3",children:s}),(0,g.jsx)("div",{className:"yst-flex yst-flex-col yst-gap-y-2",role:"list",children:A.map(((e,t)=>(0,g.jsxs)("div",{className:"yst-flex yst-gap-x-2",role:"listitem",children:[(0,g.jsx)(u,{className:"yst-w-5 yst-h-5 yst-shrink-0 yst-text-green-500",...n}),e]},`list-item--${t}`)))})]}),(0,g.jsxs)(a.Card.Footer,{className:"yst-pt-4 yst-mt-auto",children:[i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("span",{className:"yst-block yst-font-medium yst-leading-none",children:(0,l.__)("Now includes:","wordpress-seo")}),(0,g.jsx)("span",{className:"yst-text-xxs yst-text-slate-500",children:i}),(0,g.jsx)("hr",{className:"yst-mt-4 yst-mb-6 yst-border-t yst-border-slate-200"})]}),(0,g.jsx)(m,{variant:"primary",label:(0,l.__)("Learn more","wordpress-seo"),href:r})]})]})})},N=()=>{const e=(0,t.useSelect)((e=>e(d).selectLink("https://yoa.st/plans-ai-plus-learn-more")),[]);return(0,g.jsx)(O,{header:(0,g.jsx)(B,{}),title:"Yoast AI+",description:(0,l.__)("For marketers and content publishers looking to boost brand awareness and visibility, this package combines powerful on page SEO tools with AI brand monitoring and insights.","wordpress-seo"),listDescription:o((0,l.sprintf)(/* translators: %1$s and %2$s expand to an opening and closing span tag for styling. */ +(0,l.__)("Includes all %1$sWooCommerce SEO%2$s features, plus:","wordpress-seo"),"<span>","</span>"),{span:(0,g.jsx)("span",{className:"yst-font-medium yst-text-slate-800"})}),list:[(0,l.__)("Track and measure brand visibility in AI platforms","wordpress-seo"),(0,l.__)("Build and protect your brand reputation with insights","wordpress-seo"),(0,l.__)("Optimize your site for visitors, search and LLMs","wordpress-seo")],learnMoreLink:e,includes:"Local SEO + Video SEO + News SEO"})},I=()=>(0,g.jsxs)("svg",{width:"254",height:"96",viewBox:"0 0 254 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("rect",{width:"254",height:"96",fill:"#5D237A"}),(0,g.jsxs)("g",{clipPath:"url(#clip0_23_505)",children:[(0,g.jsx)("rect",{width:"80",height:"80",transform:"translate(86 8)",fill:"#5D237A"}),(0,g.jsx)("path",{d:"M98.8 8H153.2C156.595 8 159.851 9.34857 162.251 11.749C164.651 14.1495 166 17.4052 166 20.8V88H98.8C95.4052 88 92.1495 86.6514 89.749 84.251C87.3486 81.8505 86 78.5948 86 75.2V20.8C86 17.4052 87.3486 14.1495 89.749 11.749C92.1495 9.34857 95.4052 8 98.8 8Z",fill:"#5D237A"}),(0,g.jsx)("path",{d:"M131.411 66.6432H95.632V14.4048H123.976L131.411 21.64V66.6432Z",fill:"white"}),(0,g.jsx)("path",{d:"M123.976 21.64H131.371L123.976 14.4048V21.64Z",fill:"white"}),(0,g.jsx)("path",{d:"M131.663 21.3823L124.24 14.1583L124.229 14.1487C124.207 14.1269 124.182 14.1086 124.154 14.0943L124.133 14.0831C124.106 14.0695 124.077 14.0598 124.047 14.0543C124.025 14.0527 124.004 14.0527 123.983 14.0543H95.6323C95.5406 14.0563 95.4532 14.0932 95.3878 14.1574C95.3224 14.2216 95.2839 14.3083 95.2803 14.3999V66.6431C95.2803 66.7386 95.3182 66.8302 95.3857 66.8977C95.4532 66.9652 95.5448 67.0031 95.6403 67.0031H131.411C131.507 67.0031 131.599 66.9652 131.666 66.8977C131.734 66.8302 131.771 66.7386 131.771 66.6431V21.6399C131.771 21.5431 131.732 21.4504 131.663 21.3823ZM130.488 21.2799H124.336V15.2607L130.488 21.2799ZM95.9923 66.2831V14.7631H123.616V21.6431C123.616 21.7386 123.654 21.8302 123.722 21.8977C123.789 21.9652 123.881 22.0031 123.976 22.0031H131.051V66.2831H95.9923Z",fill:"#A4286A"}),(0,g.jsx)("path",{d:"M106.509 40.1441C106.401 40.1225 106.294 40.0952 106.189 40.0625C106.086 40.0309 105.985 39.9935 105.886 39.9505C105.837 39.9313 105.787 39.9089 105.739 39.8849C105.667 39.8497 105.592 39.8097 105.509 39.7617C105.425 39.7137 105.379 39.6817 105.325 39.6449L105.195 39.5537C105.11 39.4897 105.035 39.4225 104.95 39.3505C104.802 39.2158 104.666 39.068 104.544 38.9089C104.501 38.8513 104.464 38.8001 104.43 38.7489C104.372 38.6609 104.319 38.5701 104.27 38.4769C104.008 37.9947 103.87 37.4546 103.87 36.9057V27.4433C103.87 26.8948 104.008 26.3552 104.27 25.8737C104.319 25.7798 104.372 25.6885 104.43 25.6001C104.489 25.5137 104.553 25.4273 104.622 25.3457C104.824 25.0995 105.061 24.8839 105.325 24.7057C105.413 24.6465 105.504 24.5905 105.597 24.5457C106.078 24.2824 106.619 24.1449 107.168 24.1457H115.357L115.677 23.2625H107.173C106.063 23.2637 104.999 23.7051 104.214 24.4897C103.429 25.2743 102.987 26.3382 102.985 27.4481V36.9137C102.987 38.0238 103.428 39.0881 104.213 39.873C104.998 40.658 106.062 41.0996 107.173 41.1009H107.72V40.2161H107.173C106.949 40.2145 106.727 40.1904 106.509 40.1441ZM120.774 23.5201L120.707 23.4961L120.4 24.3201L120.469 24.3457C120.612 24.3996 120.751 24.4633 120.886 24.5361C120.979 24.5873 121.07 24.6433 121.158 24.6961C121.422 24.8747 121.659 25.0902 121.862 25.3361C121.929 25.4177 121.993 25.4961 122.053 25.5905C122.112 25.6849 122.168 25.7713 122.213 25.8641C122.474 26.3459 122.612 26.8853 122.613 27.4337V40.2017H114.259L114.237 40.2385C114.089 40.4977 113.936 40.7441 113.779 40.9713L113.701 41.0865H123.499V27.4433C123.496 26.5903 123.233 25.7584 122.747 25.0578C122.26 24.3572 121.572 23.8209 120.774 23.5201Z",fill:"#A4286A"}),(0,g.jsx)("path",{d:"M108.768 40.2896V42.5104C110.144 42.4576 111.218 42 112.128 41.0832C113.067 40.1392 113.874 38.6672 114.667 36.4432L120.56 20.6752H117.707L112.965 33.8464L110.606 26.4608H108L111.461 35.3504C111.795 36.2058 111.795 37.1558 111.461 38.0112C111.109 38.9136 110.48 39.9744 108.768 40.2896Z",fill:"#A4286A"}),(0,g.jsx)("path",{d:"M156.368 81.5952H120.589V29.3568H148.934L156.368 36.592V81.5952Z",fill:"white"}),(0,g.jsx)("path",{d:"M148.934 36.592H156.33L148.934 29.3568V36.592Z",fill:"white"}),(0,g.jsx)("path",{d:"M156.619 36.3345L149.185 29.0993C149.163 29.0774 149.137 29.0591 149.109 29.0449L149.089 29.0337C149.061 29.02 149.032 29.0097 149.001 29.0033C148.979 29.0017 148.956 29.0017 148.934 29.0033H120.589C120.493 29.0033 120.401 29.0412 120.334 29.1087C120.266 29.1762 120.229 29.2678 120.229 29.3633V81.6001C120.229 81.6955 120.266 81.7871 120.334 81.8546C120.401 81.9221 120.493 81.9601 120.589 81.9601H156.368C156.463 81.9601 156.555 81.9221 156.622 81.8546C156.69 81.7871 156.728 81.6955 156.728 81.6001V36.5921C156.728 36.544 156.719 36.4963 156.7 36.452C156.681 36.4077 156.654 36.3677 156.619 36.3345ZM155.446 36.2321H149.294V30.2129L155.446 36.2321ZM120.949 81.2353V29.7153H148.574V36.5953C148.574 36.6907 148.612 36.7822 148.68 36.8497C148.713 36.8834 148.753 36.9101 148.796 36.9282C148.84 36.9464 148.887 36.9556 148.934 36.9553H156.008V81.2353H120.949Z",fill:"#A4286A"}),(0,g.jsx)("path",{d:"M131.468 54.4208C131.362 54.3984 131.256 54.3712 131.148 54.3392C131.039 54.3072 130.943 54.2688 130.844 54.2272C130.796 54.2064 130.746 54.184 130.698 54.16C130.65 54.136 130.551 54.0848 130.468 54.0368C130.384 53.9888 130.336 53.9584 130.284 53.9216C130.231 53.8848 130.196 53.8608 130.154 53.8288C130.069 53.766 129.987 53.6987 129.909 53.6272C129.761 53.4919 129.625 53.3436 129.503 53.184C129.458 53.1264 129.421 53.0752 129.389 53.024C129.33 52.936 129.274 52.8448 129.229 52.752C128.967 52.2696 128.83 51.7296 128.829 51.1808V41.72C128.83 41.1712 128.967 40.6312 129.229 40.1488C129.28 40.056 129.336 39.9648 129.389 39.8768C129.442 39.7888 129.512 39.704 129.58 39.6224C129.783 39.3766 130.02 39.1611 130.284 38.9824C130.372 38.9232 130.463 38.8672 130.556 38.8224C130.84 38.6672 131.145 38.5556 131.463 38.4912C131.681 38.4458 131.904 38.4228 132.127 38.4224H140.32L140.64 37.5392H132.132C131.021 37.5405 129.957 37.982 129.172 38.767C128.387 39.552 127.946 40.6163 127.944 41.7264V51.184C127.946 52.2941 128.387 53.3584 129.172 54.1434C129.957 54.9284 131.021 55.3699 132.132 55.3712H132.677V54.488H132.132C131.908 54.4881 131.686 54.4656 131.468 54.4208ZM145.733 37.7968L145.664 37.7712L145.36 38.6L145.428 38.6256C145.572 38.6791 145.712 38.7433 145.847 38.8176C145.94 38.8663 146.031 38.9197 146.119 38.9776C146.383 39.1563 146.62 39.3718 146.823 39.6176C146.89 39.6992 146.954 39.7776 147.013 39.872C147.071 39.9599 147.124 40.0507 147.173 40.144C147.436 40.626 147.574 41.1661 147.575 41.7152V54.4832H139.216L139.196 54.52C139.048 54.7776 138.893 55.0256 138.738 55.2528L138.66 55.3664H148.458V41.72C148.455 40.8669 148.193 40.0349 147.706 39.3343C147.22 38.6337 146.531 38.0975 145.733 37.7968Z",fill:"#A4286A"}),(0,g.jsx)("path",{d:"M133.726 54.56V56.7808C135.102 56.7264 136.174 56.2688 137.086 55.352C138.025 54.4096 138.832 52.9376 139.625 50.72L145.51 34.9456H142.665L137.923 48.1168L135.564 40.736H132.958L136.419 49.6256C136.753 50.481 136.753 51.4309 136.419 52.2864C136.067 53.1904 135.44 54.2512 133.726 54.56Z",fill:"#A4286A"}),(0,g.jsx)("path",{d:"M127.866 58.5008L139.28 68.5184L127.874 78.0112V72.4208C127.874 72.4208 113.016 73.1328 111.965 55.6112C116.317 64.7312 127.874 64.016 127.874 64.016L127.866 58.5008Z",fill:"#96CB06"})]}),(0,g.jsx)("defs",{children:(0,g.jsx)("clipPath",{id:"clip0_23_505",children:(0,g.jsx)("rect",{width:"80",height:"80",fill:"white",transform:"translate(86 8)"})})})]}),M=()=>{const{isDuplicatePostInstalled:e,isDuplicatePostActive:s,duplicatePostInstallationUrl:A,duplicatePostActivationUrl:i,userCanActivatePlugin:a,userCanInstallPlugin:n,learnMoreLink:o,isBlackFridayPromotionActive:c}=(0,t.useSelect)((e=>{const t=e(d);return{isDuplicatePostInstalled:t.selectDuplicatePostParam("isInstalled"),isDuplicatePostActive:t.selectDuplicatePostParam("isActivated"),duplicatePostInstallationUrl:t.selectDuplicatePostParam("installationUrl"),duplicatePostActivationUrl:t.selectDuplicatePostParam("activationUrl"),userCanActivatePlugin:t.selectUserCan("activatePlugin"),userCanInstallPlugin:t.selectUserCan("installPlugin"),learnMoreLink:t.selectLink("http://yoa.st/plans-duplicate-post-learn-more"),isBlackFridayPromotionActive:t.isPromotionActive("black-friday-promotion")}}),[]),{buttonLink:f,buttonDisabled:p}=(0,r.useMemo)((()=>{const t={buttonLink:null,buttonDisabled:!0};return s?t:e?a?{buttonLink:i,buttonDisabled:!1}:t:n?{buttonLink:A,buttonDisabled:!1}:t}),[e,s,A,i,a,n]);return(0,g.jsx)(j,{hasHighlight:s,isActiveHighlight:s,isManageAvailable:!1,isLicenseRequired:!1,header:(0,g.jsx)(I,{}),title:"Yoast Duplicate Post",description:(0,l.__)("Easily copy posts and pages in one click to save time when reusing or updating content.","wordpress-seo"),list:[(0,l.__)("Duplicate any post or page instantly","wordpress-seo"),(0,l.__)("Perfect for creating templates or testing updates","wordpress-seo"),(0,l.__)("Trusted by over 4+ million WordPress sites","wordpress-seo")],buttonOverride:(0,g.jsx)(x,{href:f,label:(0,l.__)("Install plugin","wordpress-seo"),disabled:p}),learnMoreLink:o,isBlackFridayPromotionActive:c})},z=()=>(0,g.jsxs)("svg",{width:"254",height:"96",viewBox:"0 0 254 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("rect",{x:"-8",width:"270",height:"96",fill:"url(#pattern0_639_1071)"}),(0,g.jsxs)("defs",{children:[(0,g.jsx)("pattern",{id:"pattern0_639_1071",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,g.jsx)("use",{xlinkHref:"#image0_639_1071",transform:"matrix(0.000744048 0 0 0.00209263 0 -0.00223214)"})}),(0,g.jsx)("image",{id:"image0_639_1071",width:"1344",height:"480",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABUAAAAHgCAIAAADrN1CRAAAyvUlEQVR42uzdf3Cc933Y+V3sAgQIiARIivrBlWTKtmhTlBlbTkS1ce+sdCT10mlvfPL1Zpq6N9FcfMn0burR9KZzvZmM/8gfl4wv91duLh25Hbcz50asb9I0P8T6pKsVVdTo5ISKRJmkCIjkkhCWwC4WWOwu9hfuASFCIAiRwD67i2e5r1dgDgXuPlh8dzHhm99nn0/8yh+8FQMAoAvlxieDD+sA0CP6LAEAQDdq1Or5ixnrACDgAQCItJmz6aDhrQOAgAcAILoq86X5KzPWAUDAAwAQaTNn0xYBQMADABBpC1dnS7l56wAg4AEAiDTb7wACHgCAqMuNT9ZKFesAIOABAIguo+MABDwAAF0gNz5pdByAgAcAINJq5YrtdwABDwBA1F1974JFABDwAABEWjlXMDoOQMADABB1mdMfWgQAAQ8AQKTlL2aMjgNAwAMARFqjVs+NT1oHAAQ8AECkGR0HgIAHAIg6o+MAEPAAAF1g5kzaIgAg4AEAIq2cKyxcnbUOAAh4AIBImz57ySIAIOABACJtfnKmMl+yDgAIeACA6GrU6t79DoCABwCIuvzFjNFxAAh4AIBIq5UrufFJ6wCAgAcAiDQnzwMg4AEAos7oOAAEPABAF3DyPAACHgAg6uYnZ0q5eesAgIAHAIiuRq1u+x0AAQ8AEHX5i5laqWIdABDwAADRVStXgoC3DgAIeACASMuNTzZqdesAgIAHAIiucq4wf2XGOgAg4AEAIs216wAQ8AAAUWd0HAACHgCgC9h+B0DAAwB0Qb0bHQeAgAcAiLRGrW50HAACHgAg6mbOpo2OA0DAAwBEWmW+ZHQcAAIeACDqZs6mLQIAAh4AINIWrs4aHQeAgAcAiDrb7wA0IWkJAIimWqkye36ycCU7e/6jWmkx+I016V4P/Z2vpp74Qv+OAUsRMzoOAAEPwJ2hnCtMv3vho7fOKfY7SaPeyF78aM+D92p4o+MAEPAAdL2g29OvnZ49P2kpNPwdLDc+aXQcAAIegC5O9w/+3ZvlbMFSaPg7W61csf0OgIAHoCuVc4Wf/fA1u+4avkdcfe+C1wAAAh6A7vPhib8IPqyDhu8R5VzB6DgABDwAXaZWqrz7L/8fG+8avqcaPnP6Q089AAIegG5SuJJ991/+2DveNXxPNXz+YsboOABC6rMEAHS43v/y//gT9c5qw1cX7/ysbdTquXHnmwAg4AHotnq3D0mvNbzRcQAIeADUOxo+6oyOA0DAA9BVDVOq/OyHP1Hv9GDDz5xJe4oBEPAAdI2f/ZvXCley1oFea/hyrrBwddbzC4CAB6A7pF97b/rdC9aBHmz46bOXPLMACHgAukM5V/jwxF9YB3qw4ecnZyrzJU8rAAIegO7wwR++6a3v9GDDN2p1734HQMAD0DVmz3/k5Hl6s+HzFzNGxwEg4AHoGk6epzcbvlau5MYnPY8ACHgAukPhSnb2vIahFxveyfMACHgAukn6tfcsAuEbvl6tddfDNjoOAAEPQDeplSre/U5LGj53OdNoNLroMTt5HgABD0A3mX7vgovP0xLVciV78aNuafj5yZlSbt6zBoCAB6BrzJ7/yCLQaw3fqNVtvwMg4AHoMs6fpwcbPn8x48QTAAQ8AN2kcCUrY+i1hq+VK0HAe5oAEPAAdFfAz1gEeq3hc+OTjVrdcwSAgAegm5SzBYtATzV8OVeY9+9WAAh4ALqOK9jRaw3v2nUACHgAgKg3vNFxAAh4ALpVrbRoEeidhrf9DoCAB6BbFa5kLQI90vBBvZu5AICABwCIdMM3anWj4wAQ8AAAUW/4mbNpo+MAEPAAAJFu+Mp8yeg4AAQ8AEDUG37mbNqyAyDgAQAi3fALV2eNjgNAwAMARL3hbb8DIOABAKLe8EbHASDgAQCi3vBGxwEg4AEAuqDhc+OTRscBIOABACLd8LVyxfY7AAIeACDqDX/1vQtWFQABDwAQ6YYv5wpGxwEg4AEAot7wmdMfWkwABDwAQKQbPn8xY3QcAAIeACDSDd+o1XPjk9YQAAEPABDphjc6DgABDwAQ9YY3Og4AAQ8A0AUNP3MmbdEAEPAAAJFu+HKusHB11ooBIOABACLd8NNnL1krAAQ8AECkG35+cqYyX7JQAAh4AIDoNnyjVvfudwAEPABAhBo+l97gIvP5ixmj4wAQ8AAAEVIplmcnp9d+phZU/fiklQFAwAMAREspX1jb8E6eB0DAAwBEveGNjgMgmpKWAABgteGXf72SsxQARJAdeACAGxq+Hm9YBwAEPABA1CV27hjYM2wdABDwAAAaHgAEPACAhgdAwAMAaHgAEPAAABoeAAQ8AICGB0DAAwBoeAAQ8AAAGh4AAQ8AgIYHQMADAGh4ABDwAAAaHgABDwCAhgdAwAMAaHgAEPAAABoeAAEPAKDhNTwAAh4AQMMDgIAHANDwAHSTpCUAgC4ynNobfIQ/TubkWYvZ4oaPxSrZBUsBgIAHAJZ97Z9/e+xwKuRB0idOCXgND0DXcQo9AHSNIN3D1/tywL98qsOPfHFmvlca3rn0AAh4AODgN4+FP0hlrjRx/GQnH3b9mWL163M98hxpeADaxyn0ANA1Uk8fDX+Qyyc6tf0+0qh/Y6H2jYXgN4sTc7GrvfI0OZceAAEPAD1t/7FHWnL5ujMvvtLJdF/5RHW40FNPloYHQMADQO96uBXnzy+kZ3Kn0219nPVnirVfn1tN9xWF/VO99nxpeAAEPAD0qAOtOH/+zIuvtu8RLn22WvuNucbRxQ3/dGH/1HDmHg0PAAIeAO5kB587NrBrKPxx0m17A3z9W/O1b93qUvOF3gt4DQ9Aa7kKPQB0gdQzLdh+D+p9IT3T+gc30qh+b+bW9R6YS13qzefOdekBEPAA0CsGdg215Prz7Rj/3jhaWfzXmU87bX6t0miuMtyjG9EaHgABDwA9oSXvfm/H+PflAe/fm153vbpbyB0837NPYtDwyZFBL2YABDwA3MkOPf9U+IO0fPx77X+arf2T2S3dJXdwvJefx/7RnYnhHV7PAAh4ALgzDaf2jh1OhT9Oa8e/B/Vef7q41XtVhgs93vADY8MaHgABDwB3pgiOf2+u3ldMHXmnx59QDQ+AgAeAO9PB51oQ8C0c/x6m3mPXNuGnD/1Mw2t4AAQ8ANxRxg6nhlN7wx+nVePfQ9b7iqkj79QHKhpewwMg4AHgznGwFefPZ06ea8n49/ozxfD1vnyc/sqlJ97w5Gp4AAQ8ANxBAf/ck+EPMv5SC2q5cbSy1WvO38LcgUs9fjU7DQ+AgAeAO0fq6aMDu4ZCHqQyV2rBALmRRvW72dZ+d1e+8v+VxnKeZQ0PgIAHgO4P+GeOhj9IUO9Bw4c8SPW7uaDhW/vd1fsrF37xP3ozvIYHQMADQJdH3a6hA0+3IODHXzoZtrS/Nd84utiO77EyXBh/6j9oeA0PgIAHgC52oBXnzy+kZzInz4Y5wtK99dq35tv3bZZGcxpewwMg4AGgi7Xk/PmJ42G331t44bpbN3xleMGTruEBEPAA0GWGU3tTETh/vv5MsU0nz9/c8Oee/WPXtNPwAAh4AOgyLan3sOPfRxr1dp48v/4fC/orP/ulP/7gvnc8+xoeAAEPAF3j4DePhT9IyPHv9W8sLN1T7+R3nUjG5v/6O//vwT+Z7e/1rXgND4CAB4AuMJzaO3Y4FfIgYce/jzRq39iGN6UHDb/78WzQ8G+OvbGQ6Ol3xWt4AG6WtAQAECmHnv96+IOEHP9eD+q91YPfN9/wD31p6cI74xM7xw8WHz4y96Xh+nDPNnwleC4WFv1QACDgASCKtv/yddu0/X5Tw8cnYssZv3/xnqDkU+VUf2NAwwMg4AGASNh/7JHh1N6QBwk5/r3+dGm7tt9vbvjyQiyzYyr4eDMWG6uOBRk/Wh0bre4ZrvXKtryGB0DAA0AUPdyKy9eFHP9e/68KUViKtQ2/YnYgG3zE47FYPPi/WFDyyXoyl8vGYkvL/70ivnTt15VPLH38m5VPXvvNtf9c+f3Kp5bi1/9z9ZbXP3P97tf/tJHpr/549JMvtebRxjf+TfzmP4rfcL/N+s8PH/PTAYCAB4AIObDd5883jlY6fPH5TTZ8fDWtr5f27I7s3Fx+oW/hhlBfudnK/z7O9aXr9bym1T/p/Gv3vV7sG93g+n8Gvz4YK5fvW8onVht//b8G3PCf8fhNN4jfmPRbcNgPBwCuQg8AkZF6+ujArqGQBwk5/r3xTDFSa7LS8EMj6+s9+KVery8sLNy8zR5fzfUbjnT7el9N8OXP31TvK59JHCp9Sq63s94BQMADQKREYvz7XytHbVmChn/wsdjgyGolf1zXc3P59fW+wWb79RSP3xjnsY/rPbbmZmv+geDGeo/FVv80+aWFNafVq3cABDwA9J6BXUPhrz8fcvx746+Xt/3ydZ/W8A8dWW741XSuVhbL5dLN9b761vcb6/2TsP+ksOM35vfa7f119X69/4Nf+u6txkdr6h0AAQ8Avasl734POf59OeAj+1eWZOzBR2M7Rj6u6/zy9vv1XF9b7/F1e/LXb3Dtlp+09Y0Xq1tX7+vSPL6m+YOkTxwqrUvx+G1+Ve4ACHgAuIM8/M0nwx8k/fKpMHdvHI30rLJrDR8fHI4VS8Vqtbq+xmNrT33f4Fz6dWfRr//8mnq/Xuxr3yH/yb8FJD5T/rRuv8Uuu4gHQMADwJ1gOLV3/7HPhzzIQnomHeL8+aV769G5/vyn/sUlEbv/UKNYyX5ykvxmLzu/pt5vcdn51SBfN0Nu9WjxIOAXPyXInTwPgIAHgDtdqhXnz4ep91jkt99X5edyYw8U+wcbnbns/OpI+dXT7OODjcS9ldj6VlfvAAh4AOgBh57/eviDnHnx1TB3Xzpaif5CVavVXC4X71va82Apudrw7bzsfHz1aGt+37dmE169AyDgAaBXjB1ODaf2hjxI7nQ6zPj35QKO/Pnzgenp6Xp9+XEuN/wD5f4djXZfdn71k/E1n+8bq6l3AAQ8APSclox/P/PiKyGPEP1T6IvFYj6fX/3PoOHHHli8tg/f3svOr+3/lRsk7qvGXHYeAAEPAL0m1aIBcmHuvnRvd2y/r/vMcsOnFvt3NNp62fnVE++vJ32s775Fl50HQMADQM/Ve/jz5yeOnwwz/j3WDefP5/P5YrG4QSf3LY0eqCR3LLXvsvM3bshf+3WwEYvFnDwPgIAHgF4K+Gdacf35cOPfl400orxKjUbj5u33Gxr+/kpyoNGmy86vr/drx+y7r6reARDwANBDDoQ+fz7k+PcVS5+tRnmVstlstXqrR3i94ZfadNn52Opp9tf/RaDv2ia8egdAwANATzj43LGBXUMhDxK+3iOu0Wjkcrnb3izeF9t93/I+fDsuOx/vWznCmv189Q5AxyUtAQDd7tj3vhWUcNN3r8yV/u1jL2zLI2/J+fMhx79H39TU1MrouE01/L3Vuan+WjXe2svOx9beMbbmsnZr6h0A2s0OPABdL+QEtYFdQ2OHU51/2MHXDX/9+fDj3yNucXFx7ei4zTT8rnuqy/vwLb3s/OpBVj+TeLi8/kv7UQRAwAPAbSM2+AhzhJZMYt/yF33uyfAHCT/+PeKmpqa2epflht9fW34/fKx1l52P3fCZeHzNm+udPA+AgAeAjnVsSyaxb8u/Gly+o98AXygUNhwdt5mGv+vuWmKglZedX3spu0++kHoHQMADwFY7Nswg9OHU3g6fRd+Srxh+/HvENbH9fkPD76tdvy59Cy47H/vkUnbXPjs5oN4BEPAAsGVBx4bci27J9eQ27+FWbL+3YPx7hOVyuVuPjttMw4/srSf7l1pz2fn4Dc2/VO5T7wAIeABoxvhLJ8Pc/UBnz6IPc9n8FS0Z/x5ZjUZjeno6/HGCDh/eW0/0L8ViYS87H1+3Sy/eARDwANCczMmzYa7HPnY4NZza25mH2pKv1eJ6n0pE6tkM6n2To+Nu3/Dx2PCeRrJ/pdKbv+z8jTv2N/yDAAAIeADYmpAT0Tt2KbtDzz+17d/s+sr9KBmd57FarWaz2VZ+d/HYzrHG8j58iMvOr7tB4/ygnzgABDwANGni+Bth7t6xYXIHojf+PR6lHfjJycmWH3O54UcbiWSIy87HP/mw9w6AgAeAUCpzpTAnlo8dTg3sGmr3g0w9fTT8V5kI94b/Dfr2o6gEfPGadhw5SPGh3Y2+ZJOXnf9kNz4Wq4/bfgdAwAPAtpZtBy5l15LL3Yc812Djvj3fH4VnMJPJtO/gyw2/K2j4pSYuO7/y68pvlrJJP2sACHgACCV94lSYc8vbPUxuYNdQ+OvPp8MNvf/UvxNEIODz+Xy5XG7rlwiCfPCupb5EE5ed/+Rad40rO/ysASDgASCsiePNb8K35Pz2W2jJDn/Lz5//uFg/2OaAbzQabd1+X9vwO0aWGz62pcvOxz95P3zj8oAfNAAEPACEFeWB8OF3+EO+z/9Wfyc4tc1Rms1mWzU6bjMNPzB8reE3fdn5tReuq7sEPQACHgDCW0jPhEnce558pE0PbDi1N/ykuna8+/3jpj3fHyts218MqtXq9PR0J7/i8j78zusNv5nLzsfVOwACHgBaLf1y8wHfvh34VITPn//4rwXbtwnf4XpfTfSBwaW+vttfdn7t/nv93WE/YgAIeABojYnjJ5u+zNvArqFUexo+/Jz53Ol08NHGvxb8p+3ZWy4Wi/l8fnteK/FY/45YX9/Hv499ymXn16p/YAceAAEPAK1s+OZPNW/HtejHDqeCj7DfVDu33wOJ17cnTbdn+31Nwyd3xOKJW112ftVSNtm44gp2AAh4AGidMy++2vR923EWffjt91g73wD/sUJfX8cbPp/PF4vFbX/BJPuvnz8f2+Cy86tq7+70wwWAgAeAVlpIzzR9tvnArqHwu+XrhD8tv03j39f/zaCzZ9E3Go1t3n5fI5G81vAbXXZ+VfW13X64ABDwANBiZ158pen7tmTDfNX+Y48Mp/aGPEi7z5//OGJfH+zkteiz2Wy1Wo3QX4wSN5xFv079/OBSNuknCwABDwAtdjnElnVrr2P3cOh/Dmjf+Pf1Cn2JTm3CNxqNXC4XtZdNvG/jeg/U3rrLjxUAAh4AWi+I3svNRu9wam8Lz6I/EOHx7zdL/KBDmTo1NVWv16P40tmo3peyydpbI36sABDwANAWYc6ib9W16FNPHx3YNRQ24Dty/vzH9fpRogOXsltcXNy20XFNqZwY8wMFgIAHgHYJMzi9Vdeij/7495slftT2reapqakueiHZfgdAwANA2zW9dz12OBX+ynMDu4bCv52+k9vvH//94NRA36kd7Tt+oVCIwui4zbP9DoCAB4D2B3yId4+Hb++WbON38g3wq5K/M9q+g9t+BwABDwDrVeZKE8eb3MEOf/b7oeefCnmEzox/v1n8o0TiR8PtOPL09HSkRsfd1uIP7/ZzBICAB4BOGA9xFn2Y68+15FL2nT9/flXyB3e1fCZ8NEfH3UL93Z3184N+iAAQ8ADQCZmTZxfSM83dN8w58OHPwO/c+PcNFfr6W30i/fT0dERHx21kqdS3+Id7/QQBIOABoHOaPos+zDC5Q89/PeTDvryN9b7yF4XXB1s4Uq5arWaz2S562VRPjC1lk358ABDwANA5TZ9F3/QU95ZcxD7MHPtW6f+d0fhUoiWHmpyc7KLXTP3dndWf7PKzA4CAB4COWkjPNH0uenNn0Ye/AF7wmDs8/n1jhb7kb7dgiFrxmm55wSyfPO/adQAIeADYFk1fDe6eJx9pJuCfezLkAz7z4qtR+evCqYHk7+0OeZDu2n4v/959QcP7qQFAwAPANmh6HlsTO/BNn3i/7gFHZ/USPxpOnNjZ9N3z+XwXjY5b/OHdjSsDfmQAEPAAsG0mjr/RxL2CFN/q9eTDXPputd6bvnJ+myR/e7Tv1I4m7thoNDKZTLe8SKo/2VV7a8QPCwACHgC2U9MnpW8pyIPgPxB6gFz65VMRXMD+3xyLn+/f6r2y2Wy3jI4L0r1ibhwAAh4Att1CeiZz8lwTd9xSkB8Iff58Za7U9Ny79ir0Dbywd0sNX61Wp6enu6XeXbgOAAEPAFEx/lKTZ9GPHU5t8sbhz5+/fOJUdFdwiw3fLSfPq3cABDwARMvE8ZPNXcpuk2PhmnjD/M2iMP79tg3f9/rgbW9YLBbn5+fVOwAIeABoRnP725vM8vDT46Iy/v12Dd//m3tue136rjh5Pkh39Q6AgAeAKGpuf3s4tXczZ9FvcqP+lg/v1W5ZyeRvjyZ/Z/TT/jSfzxeLxSg//qVSX/lf3OOa8wAIeACIqNzpdHNb3Ld9c/smI//W0lF+A/xNEi/vHPj23fGpxLrPNxqNiG+/N64MlP63A/V3d/qJAEDAA0B0NbcJf9tr0R96/uvh6z1q499vK36+P2j4xI+G134ym81Wq9XIPubqibHS9w4sZZN+FgAQ8AAQac29DX7scGo4dash4ak7dPz77RX6kr+3u/+FfStb8UG653K5aD7S5Y337x2ovDzqpwAAAQ8AXaDpQeu3SPTb5n37HlVU/lZxamDg79+T/MFd0x9m6/V61B7eUqlvZeM9aHg/AgAIeADoGuMvNZPKt7hG3aHnnwr5kC6fOHUHLOzSD4Yz/3Q0aleGCx5P6bcesPEOQFfz1i8AelTm5NmF9MxW98zHDqcGdg1tOEn+wB0//n1zLiVztXKs9sO7KyfGBp7OJX++sO3pHjwSb3cH4A5gBx6A3tXcwLYNQz319NEg7MM8mO4Y/347i/HaZGJu5fdBMy/+8O7ibz1QDfq51Om/cgRfPfi6xf/loeAxqHcABDwAdLeJ4280ca8Nh8nddsLcJh7MyTtgST9IXr05pCsvj66EdGdmtgVfpfwv7ileO2G+8/9wAADt4x+kAehdlblS+sSprV46fmWzfe1Z9MF/HnzuWMgH09x78iNlrq+c7yt/2p/W3hoJPuJDjcSRYvLIQt9ny8HvW/Wll7LJ+vnB2rvDjfODoh0AAQ8Ad6CJl042MfvtwNNH126Yh3/3e+bkua4b/36zczdtv29Q2qW+lZIPft93fyXxuXLf/Yt9ByrB77f65YJiv9btQ43LAy4sD4CAB4A7XPrEqSYuZXfPk4+sDfiHv/lkyIcx/tIb3b6Sk4m5xXhtS3cJqntteMf31PrGasu/7vnU49QvD8RKfY1c0tvaARDwANBzghQ/8o9/eUt3WbvlHsT//mOfD/MAKnOlbh8gV4s1LiVzIQ+yvJ0eZPl5L0kA2Jg3iQHQ65p48/nArqHVE+9Toc+fD+p9w7l0XWR5dFys4bUEAAIeANpoIT2TOXluq/davez8wW/2+uXr1o6OAwAEPAC0URNvQV85i37scCr4CPOlr/3zwdmuXr2J5IyXEAAIeADoSIIeP7nVk9gHdg0F6R5++73bx7/P9ZWzfUUvIQAQ8ADQsYbf8iZ8UO/h3wDf7efP234HAAEPAB115sVXt3qXQ7/61Fbnz63T7ePfM4nCQrzixQMAAh4AOicI6dzpdIe/aFePf6/FGh/afgcAAQ8AnXfmxVc6+eW6ffz7ZHLO6DgAEPAAsA06PI+9q8e/L8ZrlxI5rxkAEPAAsA06vCXe1Zevc+06ABDwALCdOnYWfVePfzc6DgC2RdISAMCq3Ol0kNYhry2/GZ0c/z6wszb6UGH/F2eH7y4N7ysP310Ofl17g9kLI5VicmF6cOHqUOb90eDjNg/e9jsACHgA2HZnXnz1K7/5XLu/SgfOnx97qHDg8enU41eDer/1LW++QdDwl9++O/32voWrg+v/yOg4ABDwABAFE8ffaHfAt3X8+8DO2oGvTh965tJtu/0W9n9xNvj48q+cm70wcublByZ+cu/K542OAwABDwBRUZkrTRw/efC5Y+37Em0a/x6k+yPPpg89e6l/Z61Vxxx9qPDEr73/lV85d+bPHjj7Z6lLlYLRcQAg4AEgKsZfam/At+Na94eeTR/5xkQL032t4LDBwb/w9Z9OTN7zoz/Yd/nSgBcJAAh4ANh+mZNn23cpu4njJ1s7/n3s2iZ5mBPmN2Op0ahOT6f6p1/4zv7/8B8f+tM/HPU6AYAOM0YOADbO7DYdOf1yK7ffDz2bfua33mp3vQeCel+q14OPyuTkU4+/9z+8cGVop3PpAUDAA8B2a9NV4hfSM+kWnT8/sLP2xLff//KvnOvAaixVq7VsdvU/6/Pzqf73/sk/nTjwgMvRA4CAB4BtFZR27nS65YdtYb0/9c/+4uDXPurMalQmJ9cnfb2+c/7cb3z7jIYHAAEPANtsog2b8GdefLVV9d6B0+ZXNIrFerG44R8l8pc1PAAIeADYZpmTZ1t7wNzpdPjx7x2u98DiTdvvGh4ABDwAREjQ2629XPyZF1/punqv5fNL1eqtb7PS8K5pBwACHgC2zWxL3wYffvz7l//BuU7W+/LouExmM7cMGv4f/Y8XvGAAQMADwPZo4Vn04ce/H3o23bGr1q2oZbNL9fomb7yvb/zZv531mgEAAQ8A3S3k+PexhwqdmRi3aqlarU5Pb+n2v/QL73/+UNlzDQACHgA6beqN1jRz+PHvT/za+x3+3iubO3l+rfr8/N/92xe9bABAwANAtwpZ74eeTXfyre+xldFx8/NN3PHu/gu/cGzOMw4AAh4AulKYkfIDO2tHvjHR4Qe8pZPn11qq1//OMx+4Ij0ACHgA6D650+lciKvZP/Jsun9nrZMPuJbP14vFpu/evzjzC7+Q87wDgIAHgC4Tcvv90LOXOvlol0fHNbv9/vER6vVf/PlLnncAEPAA0DkDu4ZaEPDH32j6vge+Ot3p7fdsdqlaDXmQXYmrjx0teP0AgIAHgA4ZezQV8gjpE6fCjH8/9Exnt9+r1VquBWe/L9XrX/3SpNcPAAh4AOiQ4dTekEcIc/788N3lDl98vjo9HbR3Sw71xc9c9voBAAEPAB0yejjUDnzI8e+px6c7+c02isVaPt+yo5XLR47kvYQAQMADQCeMhQv4ieMnw9z9wONXO/nNhrx23c0efiDrJQQAAh4A2i719NGQRxh/KVTA7//ibMe+2XqhEGZ03MYBf2DaqwgABDwAtN3+Jz8f5u7pE6cW0jNdUe+BytRUy495375ZryIAEPAA0HYhd+DPvPhqmLuPdfDydcvXrgs9Ou5mS/X6/fcueCEBgIAHgDbaf+yRMJegX0jPZE6eDfMAOjb+fanRaMnouA0N9i96LQGAgAeANnr4m8fC3P2vfvePQz6A/V/MdeY7rU5NtWp03M0++xkXogcAAQ8AbTOwa+jgc80HfGWudDnE9LhOWqpWWzg6boPjN+peTgAg4AGgXQ49/1SYu5/9/itBw3fFd1qZnPR0A4CAB4CuNLBr6JFfDRXwZ158pSu+00ax2PLRcesYBQ8AAh4A2uXQ808FDd/03SeOn+yW7fdF2+8AIOABoEuF334Pf/m6zqjlcu0YHQcACHgA6ISv/OY3Q26/L6Rnov9tLjUa1enpDnyhXH7IiwoABDwAtFjq6aNhLj4f66Lt92y2faPjbgj4OQEPAAIeAFpqOLX3ie99K8wRWrv9PnthpE3f6VK12pntdwBAwANAiw3sGvraP/92mJPnK3Ol1m6/V4r9bfpmK5lMxxZ2MrPLqwsABDwAtKzen/o33xk7nApzkLPff6W1737PvD/ajm92eXTc/HzH1tZ74AFAwANAhOq9Mldq+ez3Np1C38nt98CVzF1eYwAg4AEgrOHU3vD1Hvjpd19q+ez3SjHZ8oav5fONcrljyzt+aY/XGAC0UNISANCbUk8ffeJ73wrzvvcVudPpieMn2/EIM++Pjj5UaNXROjY6TsADgIAHgNYIoj1I9yDgW3K0n373eJse58Rr9z3ybLpVR1seHVetdnKdT5+7x4sNAAQ8ADSZ7oeef+qRX30q/Mb7ijPffyVz8mybHm3uwsjC9ODwvhac9B6key2X6+RS5/JD3gAPAAIeALZs7HAqSPcDTx9tVboHFtIz77Z0dNzNJn5y35FvTIQ/TnV6eqle7+SCn/7A9jsACHgA2Eq3p545GnR7+CvV3ezkC/+q5deuWx/wr90bPuAbxWItn+/wyv/52w95+QGAgAeA23jsO788eji1/9gjLdxvX6etJ8+vWrg6GDT8wa99FOYgHb52XeDtdw+YAA8AAh4Abu/IP/7lth4/dzrd7pPnV737o4NhAr5eKNSLxc4HvBchALScOfAAsDWVudKbL/yg3SfPr1rZhG/+0U5NdXh9Tp+7xwA5ABDwALD9gnrPnU538iu++6OD1WIzJ80tX7uus6PjAn/06he8SABAwAPANnv3f//j9IlTHf6iC1cHg4bf6r2WGo0Oj44L/Pg/fc673wFAwAPANps4fvKvOvXW93XO/Fkq8/7olu5SnZrq8Oi4ycyuH7/+Oa8TABDwALDN9X7yhR9s4wP48999bPMn0jcWFzs8Oq682P/Snz7mdQIAAh4AerreA5Vi8pXf+vImb1zt+LXr/uiVL1zJ3OWlAgACHgB6ut5X5C6MvPn7X7ztzRrFYodHx73+9meMjgMAAQ8A6n3N4/nJvbdt+MXJyU4+pCDd/+gVV54HgLZLWgIA+DQ//e7xM99/JWqPKmj44Ncnfu39Df+0lst1cnRcUO/e+g4AAh4Atk1lrvTaf/d/Zk6ejebDW2n4r/zKuf6dtbWfX2o0qtPTHXsYr7/9GXvvACDgAWDbpE+cevOFHwQNH+UHGTT87IWRX/zOXw3vK69+Mqj3jo2Oe+lPH/O+dwAQ8ACwPRbSMz/97vEg4Lvi0eYujLz8P//8E99+/8Djy7vuS9VqLZvtwNedzOwK6t015wFAwAPANqjMlc5+/5UzL74S8Y339Q+7mHztdx9LPT795X9wLrl4uQNf8fW3P/Pj1z9XWvRXCAAQ8ADQWQvpmYnjJ7su3ddKv73v/E9H/+Y/OjO2u41fZfzSnn//yhdtvAOAgAeAjnfviVPpl08F9X4HfC+XErn/9ff/s8ePXP6bf+2Dsd0t/peIIN1//Prngl+9ZgBAwANAhyykZzInz029cfbyiVPdu+W+zlxfOZMoxK4NdQs+Hv185vFHLx/+/FTIw5YX+987t//1tz9j1x0ABDwAtFeQ6LOn05W5YvBr7r107nQ6CPg779u8lMit/c+guoOPsd2lRz+XefiB7MMPZgd3bGEyfC4/NH5pz+kP7gkO4iUEAAIeANro/3roN3rnm80kCvm+8oYd/udvPxR8BL+/f//8ffvngqS//+75wcHqhjfOzQ2NX9wT/Br83ksIAAQ8ANBKtVhj3fb7hq5k7nIaPAB0uz5LAADdazI5txivWQcAEPAAQHTVYo3JRN46AICABwAi7cPkTNDw1gEABDwAEF0L8crK6DgAQMADANH1YXLGIgCAgAcAIi3bV9xwdBwAIOABgAiZsP0OAAIeAIi4S8lZo+MAQMADAJFmdBwACHgAoAsYHQcAAh4AiDqj4wBAwAMAXcDoOAAQ8ABA1BkdBwACHgDoAkbHAYCABwCibjIxZ3QcAAh4ACDSarHGpWTOOgCAgAcAIi2od6PjAAABDwCRthivTSbmrAMAkLQEANB5A4nG6FBl7WcWKsng4+ZbfpC8arkAAAEPAB2N9gO7F1K7i/tHSsHvN7xNpjCUzu9M54dXYn6ur2x0HAAg4AGgQ4YHao/dmzu4Z/62twzaPvj4yoGZoOTHsyPHC7NWDwAQ8ADQdgOJRlDjm0n3m0t+pHhhTyz2p/V9H5QTVhIAEPAA0C6p3QtPPHj1086Wv7VGtVrOZvfFYv+wf/61u1In5getJwAIeACg9R67N3fk3uaHtxczmdWS/8XGxd3D+/99ebRUt64A0LuMkQOA1jv24NUw9V4rFivzn5x1v1SvHylO/ve7vR8eAAQ8ANA6zb3pfa2F69vva43mJv/e6ILlBQABDwC0QJDuh+7OhznCYj5fL288Ou7RwuW/cVfVIgOAgAcAQhkeqH3lwEyYIyw1GqXp6U/903r92caVPf1WGgAEPAAQwrFmrzm/qpzNNqq32mOvFovPDWYtNQAIeACgSftHyvtHSmGOsDw6Lnf7S9+lStOfG3Q9egAQ8ABAUx4Lcdn5FaXp6aX67cs8uM1T/XkLDgACHgDYsrGhSsjt91qxuJjfbJY/sJj1TngAEPAAwJaFnBsXu7b9vvkbN6rVR/vLlh0ABDwAsDWp3aEmtFcKhWqxuKW7fCE+b9kBQMADAFswkGgMD9TCHKE4NbXVuxyMFa08AAh4AGALRocqYe5emp6+9ei4DVWLRW+DBwABDwBswdjQYtP3XWo0NjM6bkN7BTwACHgAYPMGEo2m77vJ0XEb2urb5gEAAQ8ANKNRrZaz2abv/qW7lqwhAAh4AKDtFiYnw9w9NWgJAUDAAwBtVisWQ54Dn9ih4AFAwAMAm1aoJJu410ImE/Lrnl9MWHwAEPAAwKZTvLLly8Ev5vP1cjnMF00MDhbr1h4ABDwAsGmZwtZOZV9qNIqht9/7d+68XLb2ACDgAYCtNfzQ5m9czmabHh23qrpj5zlT5ABAwAMAW5LO79zkLZdHx+VyIb9cPJH4WWzEsgOAgAcAthrww5u8ZWl6Ovz2+47du9+Zj1t2ABDwAMDWLFSSE9m7bnuzWrG4mM+34MuNjL0zb9UBQMADAFv3Vx+N3fY2penp8F9oaN++l2cHLDgACHgAoBkLleSZq7tvcYNKoVAthr3uXF9//6Ude97MW28AEPAAQLPe/WgsyPhP+9Pi1FQL/j/3/vv+7+mEpQYAAQ8ANK9S73tt4t7g15v/qDQ93ahWQx5/+L77/t38cNr4dwAQ8ABASLnSwE8v7133yaVGI/zouB27d79R3+3keQDoWUlLAACttXI5+mMPXl39THFqKuTouKF9+97p3/dvrxgdBwACHgBoacMvVPq/dvCjgUSjUa2GGR0XTyR27t//0sLom1etKwAIeACg1TKFwT87kzr24NWh7MWmD9K/c2du7L7fnx7wvncAQMADQLssVJIvje8e7B/9erw6GtvaFez6+vtjY/v+vDH6J2kLCQAIeABos4nkzGJs918u7f65WP6L8fkvxOZve5eBu+66umP365W73pmOleqWEAAQ8ADQZpeSs4vx2srv//Jaxg/G6gcTi/c2ig/3VxrV6ud3fnzLK/X+xUT/VN/Oqb7hc8VYds7iAQACHgA6ohZrTCbWX7uuHEu8X9/5fmznq5Vr/71gnQCAzTIHHgDa4sPkTNDw1gEAEPAAEF0L8UomUbAOAICAB4BI+zA5YxEAAAEPAJGW7Svm+8xtBwAEPABE24TtdwBAwANAxE0m5lZHxwEACHgAiKJarHEpmbMOAICAB4BIC+rd6DgAQMADQKQtxmuTiTnrAAAIeACItA+SVy0CACDgASDS5vrKRscBAAIeAKLunO13AEDAA0DEGR0HAAh4AIg6o+MAAAEPAF3A6DgAQMADQNQZHQcACHgA6AJGxwEAAh4Aos7oOABAwANAF5hIzlgEAEDAA0CkZRKFhXjFOgAAAh4AoqsWa3xo+x0AEPAAEHGTyTmj4wAAAQ8AkbYYr11K5KwDACDgASDSXLsOABDwABB1c33lbF/ROgAAAh4AIs32OwAg4AEg6oyOAwAEPABEndFxAICAB4AuYHQcACDgASDqjI4DAAQ8AHQB9Q4ACHgAiLq5vnImUbAOAICAB4BIs/0OAAh4AIi6TKKQ7ytbBwBAwANAdNViDdvvAICAB4Com0zOLcZr1gEAEPAAEF1Buk8m8tYBABDwABBplxK5WqxhHQAAAQ8A0WV0HAAg4AGgC7h2HQAg4AEg6oyOAwAEPABEndFxAICAB4AuYHQcACDgASDqarGG0XEAgIAHoFeM3L+nSx/5h8kZo+MAAAEPQK9IDu3oxoe9EK8YHQcACHgAiLoPkzMWAQAQ8AD0kNHP3tt1jznbVzQ6DgAQ8AD0lsE9I133mCdsvwMAAh6AXjNy/97uesCXkrNGxwEAAh6AHgz4PcmhgW55tEbHAQACHoDete/IQ93yUI2OAwAEPAC9q1uuY2d0HAAg4AHoafsefagrzqI3Og4AEPAA9LSg3qN/Fr3RcQCAgAeAWOprj0b8ERodBwAIeABYvhb96Gfvi+zDm0zMGR0HAAh4AFj2mae/HM0HVos1LiVzniAAQMADwLLRz94bzXfCB/VudBwAIOAB4BOf+7tPRO1y9Ivx2mRizlMDAAh4APjE4NhI1E6k/yB51fMCAAh4AFgv9bVHo3Mi/Vxf2eg4AEDAA8DGvvD3vjZy/54oPJJztt8BAAEPAJ8mOTTwhf/mb2z7m+GNjgMABDwA3MbI/Xt+7tf/i21seKPjAAABDwBd0PBGxwEAAh4Attbwg3tGOvx1jY4DAAQ8AGy54b/6nf9y9LP3dfKLGh0HAAh4ANiy5NDAz/363+rYfHij4wAAAQ8AzQsC/tg/+687sBU/kZyx2gCAgAeA5g2Ojfzcr/+tI//tL7XvXfGZRGEhXrHUAEC3S1oCALbdviMPBR/T715Iv3Z69vxkC49cizU+tP0OAAh4AGh5xpdzhaDkP3rrXOFKNvwxJ5NzRscBAAIeAFpvcGwk9bVHg49aqTJ7fjLI+NnzH9VKi030/GK8dimRs6QAwJ0hfuUP3rIKANyRLr7+bq3k3e8AwB3CRewAuDPlxifVOwAg4AEg0hq1ev5ixjoAAAIeACJt5mw6aHjrAAAIeACIrsp8af6K0XEAgIAHgGibOZu2CACAgAeASFu4OlvKzVsHAEDAA0Ck2X4HAAQ8AESd0XEAgIAHgKgzOg4AEPAA0AVy45NGxwEAAh4AIq1Wrth+BwAEPABE3dX3LlgEAEDAA0CklXMFo+MAAAEPAFGXOf2hRQAABDwARFr+YsboOABAwANApDVq9dz4pHUAAAQ8AESa0XEAgIAHgKgzOg4AEPAA0AVmzqQtAgAg4AEg0sq5wsLVWesAAAh4AIi06bOXLAIAIOABINLmJ2cq8yXrAAAIeACIrkat7t3vAICAB4Coy1/MGB0HAAh4AIi0WrmSG5+0DgCAgAeASHPyPAAg4AEg6oyOAwAEPAB0ASfPAwACHgCibn5yppSbtw4AgIAHgOhq1Oq23wEAAQ8AUZe/mKmVKtYBABDwABBdtXIlCHjrAAAIeACItNz4ZKNWtw4AgIAHgOgq5wrzV2asAwCAgAcg0ly7DgBAwAMQdUbHAQAIeAC6gO13AAABD0AX1LvRcQAAAh6ASGvU6kbHAQAIeACibuZs2ug4AAABD0CkVeZLRscBAAh4AKJu5mzaIgAACHgAIm3h6qzRcQAAN/v/BRgAXwstsOSbkeMAAAAASUVORK5CYII="})]})]}),Q=()=>{const{isPremiumActive:e,installAddonLink:s,buyPremiumLink:A,buyPremiumConfig:i,learnMoreLink:r,isBlackFridayPromotionActive:a}=(0,t.useSelect)((e=>{const t=e(d);return{isPremiumActive:t.selectAddOnIsActive(c.premium),installAddonLink:t.selectLink("https://yoa.st/plans-google-docs-add-on-install"),buyPremiumLink:t.selectLink("https://yoa.st/plans-premium-buy-google-docs-addon"),buyPremiumConfig:t.selectAddOnClickToBuyAsProps(c.premium),learnMoreLink:t.selectLink("https://yoa.st/plans-google-docs-add-on-learn-more"),isBlackFridayPromotionActive:t.isPromotionActive("black-friday-promotion")}}),[]);return(0,g.jsx)(j,{hasHighlight:!1,isActiveHighlight:!1,isManageAvailable:!1,isLicenseRequired:!1,header:(0,g.jsx)(z,{}),title:"Yoast SEO Google Docs Add-on",description:(0,l.__)("Write and optimize your content directly in Google Docs.","wordpress-seo"),list:[(0,l.__)("Get instant SEO and readability analysis while you write","wordpress-seo"),(0,l.__)("Collaborate with your team and create consistent SEO-ready drafts faster","wordpress-seo"),(0,l.__)("One free seat available with all Yoast subscriptions","wordpress-seo")],buttonOverride:e&&(0,g.jsx)(x,{href:s,label:(0,l.__)("Install add-on","wordpress-seo")}),buyLink:A,buyConfig:i,learnMoreLink:r,learnMoreOverride:!e&&(0,g.jsx)("div",{className:"yst-font-medium yst-italic yst-text-center yst-pt-3",children:(0,l.__)("Included in Premium","wordpress-seo")}),isBlackFridayPromotionActive:a})},E=()=>(0,g.jsx)("div",{className:"yst-p-4 min-[783px]:yst-p-8 yst-mb-8 xl:yst-mb-0",children:(0,g.jsxs)(a.Paper,{as:"main",className:"yst-max-w-page",children:[(0,g.jsx)("header",{className:"yst-p-8 yst-border-b yst-border-slate-200",children:(0,g.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,g.jsx)(a.Title,{children:(0,l.__)("Plans","wordpress-seo")}),(0,g.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:(0,l.__)("Compare plans and find the perfect fit for your site - from essential SEO features to advanced automation.","wordpress-seo")})]})}),(0,g.jsxs)("div",{className:"yst-h-full yst-p-8",children:[(0,g.jsxs)("div",{className:"yst-max-w-6xl yst-flex yst-gap-6 yst-flex-wrap yst-pb-8 yst-border-b yst-border-slate-200",children:[(0,g.jsx)(H,{}),(0,g.jsx)(L,{}),(0,g.jsx)(N,{})]}),(0,g.jsxs)("div",{className:"yst-pt-6",children:[(0,g.jsx)(a.Title,{children:(0,l.__)("Add-ons","wordpress-seo")}),(0,g.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:(0,l.__)("Boost your productivity with tools that simplify writing, editing, and publishing.","wordpress-seo")})]}),(0,g.jsxs)("div",{className:"yst-max-w-6xl yst-flex yst-gap-6 yst-flex-wrap yst-pt-6",children:[(0,g.jsx)(M,{}),(0,g.jsx)(Q,{})]})]})]})}),k=window.yoast.reduxJsToolkit,S="adminUrl",X=(0,k.createSlice)({name:S,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),V=(X.getInitialState,{selectAdminUrl:e=>(0,n.get)(e,S,"")});V.selectAdminLink=(0,k.createSelector)([V.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),X.actions,X.reducer,window.wp.apiFetch;const Z="hasConsent",W=(0,k.createSlice)({name:Z,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),F=(W.getInitialState,W.actions,W.reducer,window.wp.url),q="linkParams",R=(0,k.createSlice)({name:q,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),G=R.getInitialState,T={selectLinkParam:(e,t,s={})=>(0,n.get)(e,`${q}.${t}`,s),selectLinkParams:e=>(0,n.get)(e,q,{})};T.selectLink=(0,k.createSelector)([T.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,F.addQueryArgs)(t,{...e,...s})));const Y=R.actions,U=R.reducer,K=(0,k.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:A,description:i})=>({payload:{id:e||(0,k.nanoid)(),variant:t,size:s,title:A||"",description:i}})},removeNotification:(e,{payload:t})=>(0,n.omit)(e,t)}}),J=(K.getInitialState,K.actions,K.reducer,"pluginUrl"),_=(0,k.createSlice)({name:J,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),$=(_.getInitialState,{selectPluginUrl:e=>(0,n.get)(e,J,"")});$.selectImageLink=(0,k.createSelector)([$.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,n.trimEnd)(e,"/"),(0,n.trim)(t,"/"),(0,n.trimStart)(s,"/")].join("/"))),_.actions,_.reducer;const ee="wistiaEmbedPermission",te=(0,k.createSlice)({name:ee,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${ee}/request`,(e=>{e.status="loading"})),e.addCase(`${ee}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${ee}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,n.get)(t,"error.code",500),message:(0,n.get)(t,"error.message","Unknown")}}))}});var se;te.getInitialState,te.actions,te.reducer;const Ae=(0,k.createSlice)({name:"documentTitle",initialState:(0,n.defaultTo)(null===(se=document)||void 0===se?void 0:se.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),ie=(Ae.getInitialState,Ae.actions,Ae.reducer,"addOns"),re=(0,k.createEntityAdapter)({selectId:e=>e.id,sortComparer:(e,t)=>e.id.localeCompare(t.id)}),ae=e=>"object"==typeof e&&Object.keys(c).includes(String(e.id))?{id:String(e.id),isActive:Boolean(e.isActive),hasLicense:Boolean(e.hasLicense),ctb:{action:(0,n.get)(e,"ctb.action",""),id:(0,n.get)(e,"ctb.id","")}}:null,ne=(0,k.createSlice)({name:ie,initialState:re.getInitialState(),reducers:{addManyAddOns:{reducer:re.addMany,prepare:e=>({payload:(0,n.filter)((0,n.map)(e,ae),Boolean)})}}}),le=ne.getInitialState,oe={selectAddOnById:re.getSelectors((e=>e[ie])).selectById};oe.selectAddOnIsActive=(0,k.createSelector)([oe.selectAddOnById],(e=>e.isActive)),oe.selectAddOnHasLicense=(0,k.createSelector)([oe.selectAddOnById],(e=>e.hasLicense)),oe.selectAddOnClickToBuy=(0,k.createSelector)([oe.selectAddOnById],(e=>e.ctb)),oe.selectAddOnClickToBuyAsProps=(0,k.createSelector)([oe.selectAddOnClickToBuy],(e=>({"data-action":e.action,"data-ctb-id":e.id})));const de=ne.actions,ce=ne.reducer,ge="preferences",fe=(0,k.createSlice)({name:ge,initialState:{},reducers:{}}),pe=fe.getInitialState,ue={selectPreference:(e,t,s=!1)=>(0,n.get)(e,[ge,t],s),selectPreferences:e=>(0,n.get)(e,ge,{})},we=fe.actions,he=fe.reducer,ve="duplicatePost",Ce=(0,k.createSlice)({name:ve,initialState:{},reducers:{}}),me=Ce.getInitialState,ye={selectDuplicatePostParam:(e,t,s=!1)=>(0,n.get)(e,[ve,t],s)},xe=Ce.actions,Pe=Ce.reducer,De="userCan",je=(0,k.createSlice)({name:De,initialState:{},reducers:{}}),He=je.getInitialState,be={selectUserCan:(e,t,s=!1)=>(0,n.get)(e,[De,t],s)},Le=je.actions,Be=je.reducer,Oe=window.yoast.externals.redux,{currentPromotions:Ne}=Oe.reducers,{isPromotionActive:Ie}=Oe.selectors,Me="currentPromotions";i()((()=>{const s=document.getElementById("yoast-seo-plans");if(!s)return;(({initialState:e={}}={})=>{(0,t.register)((({initialState:e})=>(0,t.createReduxStore)(d,{actions:{...de,...xe,...Y,...we,...Le},selectors:{...oe,...ye,...T,...ue,...be,isPromotionActive:Ie},initialState:(0,n.merge)({},{[ie]:le(),[Me]:{promotions:[]},[ve]:me(),[q]:G(),[ge]:pe(),[De]:He()},e),reducer:(0,t.combineReducers)({[ie]:ce,[ve]:Pe,[q]:U,[ge]:he,[De]:Be,currentPromotions:Ne})}))({initialState:e}))})({initialState:{[q]:(0,n.get)(window,"wpseoScriptData.linkParams",{}),[ge]:(0,n.get)(window,"wpseoScriptData.preferences",{}),[ve]:(0,n.get)(window,"wpseoScriptData.duplicatePost",{}),[De]:(0,n.get)(window,"wpseoScriptData.userCan",{}),[Me]:{promotions:(0,n.get)(window,"wpseoScriptData.currentPromotions",[])}}}),(0,t.dispatch)(d).addManyAddOns((0,n.get)(window,"wpseoScriptData.addOns",{})),(()=>{const e=document.getElementById("wpcontent"),t=document.getElementById("adminmenuwrap");e&&t&&(e.style.minHeight=`${t.offsetHeight}px`)})();const A=(0,t.select)(d).selectPreference("isRtl",!1);(0,r.createRoot)(s).render((0,g.jsx)(a.Root,{context:{isRtl:A},children:(0,g.jsx)(e.SlotFillProvider,{children:(0,g.jsx)(E,{})})}))}))})()})(); \ No newline at end of file @@ -1,4 +1,4 @@ -(()=>{var e={2322:e=>{var t,s,n="",i=function(e){e=e||"polite";var t=document.createElement("div");return t.id="a11y-speak-"+e,t.className="a11y-speak-region",t.setAttribute("style","clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; word-wrap: normal;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t};!function(e){if("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll)return e();document.addEventListener("DOMContentLoaded",e)}((function(){t=document.getElementById("a11y-speak-polite"),s=document.getElementById("a11y-speak-assertive"),null===t&&(t=i("polite")),null===s&&(s=i("assertive"))})),e.exports=function(e,i){!function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t<e.length;t++)e[t].textContent=""}(),e=e.replace(/<[^<>]+>/g," "),n===e&&(e+=" "),n=e,s&&"assertive"===i?s.textContent=e:t&&(t.textContent=e)}},7084:function(e,t,s){!function(t){"use strict";var s={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:f,table:f,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function n(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||v.defaults,this.rules=s.normal,this.options.pedantic?this.rules=s.pedantic:this.options.gfm&&(this.rules=s.gfm)}s._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,s._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,s.def=u(s.def).replace("label",s._label).replace("title",s._title).getRegex(),s.bullet=/(?:[*+-]|\d{1,9}\.)/,s.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,s.item=u(s.item,"gm").replace(/bull/g,s.bullet).getRegex(),s.list=u(s.list).replace(/bull/g,s.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+s.def.source+")").getRegex(),s._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",s._comment=/<!--(?!-?>)[\s\S]*?-->/,s.html=u(s.html,"i").replace("comment",s._comment).replace("tag",s._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),s.paragraph=u(s._paragraph).replace("hr",s.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",s._tag).getRegex(),s.blockquote=u(s.blockquote).replace("paragraph",s.paragraph).getRegex(),s.normal=y({},s),s.gfm=y({},s.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),s.pedantic=y({},s.normal,{html:u("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",s._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:f,paragraph:u(s.normal._paragraph).replace("hr",s.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",s.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),n.rules=s,n.lex=function(e,t){return new n(t).lex(e)},n.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},n.prototype.token=function(e,t){var n,i,o,r,a,l,c,d,u,h,g,m,f,y,_,k;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e)){var v=this.tokens[this.tokens.length-1];e=e.substring(o[0].length),v&&"paragraph"===v.type?v.text+="\n"+o[0].trimRight():(o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?o:b(o,"\n")}))}else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2]?o[2].trim():o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if((o=this.rules.nptable.exec(e))&&(l={type:"table",header:w(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(o[0].length),g=0;g<l.align.length;g++)/^ *-+: *$/.test(l.align[g])?l.align[g]="right":/^ *:-+: *$/.test(l.align[g])?l.align[g]="center":/^ *:-+ *$/.test(l.align[g])?l.align[g]="left":l.align[g]=null;for(g=0;g<l.cells.length;g++)l.cells[g]=w(l.cells[g],l.header.length);this.tokens.push(l)}else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),c={type:"list_start",ordered:y=(r=o[2]).length>1,start:y?+r:"",loose:!1},this.tokens.push(c),d=[],n=!1,f=(o=o[0].match(this.rules.item)).length,g=0;g<f;g++)h=(l=o[g]).length,~(l=l.replace(/^ *([*+-]|\d+\.) */,"")).indexOf("\n ")&&(h-=l.length,l=this.options.pedantic?l.replace(/^ {1,4}/gm,""):l.replace(new RegExp("^ {1,"+h+"}","gm"),"")),g!==f-1&&(a=s.bullet.exec(o[g+1])[0],(r.length>1?1===a.length:a.length>1||this.options.smartLists&&a!==r)&&(e=o.slice(g+1).join("\n")+e,g=f-1)),i=n||/\n\n(?!\s*$)/.test(l),g!==f-1&&(n="\n"===l.charAt(l.length-1),i||(i=n)),i&&(c.loose=!0),k=void 0,(_=/^\[[ xX]\] /.test(l))&&(k=" "!==l[1],l=l.replace(/^\[[ xX]\] +/,"")),u={type:"list_item_start",task:_,checked:k,loose:i},d.push(u),this.tokens.push(u),this.token(l,!1),this.tokens.push({type:"list_item_end"});if(c.loose)for(f=d.length,g=0;g<f;g++)d[g].loose=!0;this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):p(o[0]):o[0]});else if(t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),o[3]&&(o[3]=o[3].substring(1,o[3].length-1)),m=o[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[m]||(this.tokens.links[m]={href:o[2],title:o[3]});else if((o=this.rules.table.exec(e))&&(l={type:"table",header:w(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(o[0].length),g=0;g<l.align.length;g++)/^ *-+: *$/.test(l.align[g])?l.align[g]="right":/^ *:-+: *$/.test(l.align[g])?l.align[g]="center":/^ *:-+ *$/.test(l.align[g])?l.align[g]="left":l.align[g]=null;for(g=0;g<l.cells.length;g++)l.cells[g]=w(l.cells[g].replace(/^ *\| *| *\| *$/g,""),l.header.length);this.tokens.push(l)}else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2].charAt(0)?1:2,text:o[1]});else if(t&&(o=this.rules.paragraph.exec(e)))e=e.substring(o[0].length),this.tokens.push({type:"paragraph",text:"\n"===o[1].charAt(o[1].length-1)?o[1].slice(0,-1):o[1]});else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var i={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:f,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:f,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};function o(e,t){if(this.options=t||v.defaults,this.links=e,this.rules=i.normal,this.renderer=this.options.renderer||new r,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=i.pedantic:this.options.gfm&&(this.options.breaks?this.rules=i.breaks:this.rules=i.gfm)}function r(e){this.options=e||v.defaults}function a(){}function l(e){this.tokens=[],this.token=null,this.options=e||v.defaults,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new c}function c(){this.seen={}}function p(e,t){if(t){if(p.escapeTest.test(e))return e.replace(p.escapeReplace,(function(e){return p.replacements[e]}))}else if(p.escapeTestNoEncode.test(e))return e.replace(p.escapeReplaceNoEncode,(function(e){return p.replacements[e]}));return e}function d(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}function u(e,t){return e=e.source||e,t=t||"",{replace:function(t,s){return s=(s=s.source||s).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,s),this},getRegex:function(){return new RegExp(e,t)}}}function h(e,t,s){if(e){try{var n=decodeURIComponent(d(s)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!m.test(s)&&(s=function(e,t){return g[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?g[" "+e]=e+"/":g[" "+e]=b(e,"/",!0)),e=g[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}(t,s));try{s=encodeURI(s).replace(/%25/g,"%")}catch(e){return null}return s}i._punctuation="!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",i.em=u(i.em).replace(/punctuation/g,i._punctuation).getRegex(),i._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,i._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,i.autolink=u(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex(),i._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,i.tag=u(i.tag).replace("comment",s._comment).replace("attribute",i._attribute).getRegex(),i._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,i._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,i._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,i.link=u(i.link).replace("label",i._label).replace("href",i._href).replace("title",i._title).getRegex(),i.reflink=u(i.reflink).replace("label",i._label).getRegex(),i.normal=y({},i),i.pedantic=y({},i.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:u(/^!?\[(label)\]\((.*?)\)/).replace("label",i._label).getRegex(),reflink:u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",i._label).getRegex()}),i.gfm=y({},i.normal,{escape:u(i.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),i.gfm.url=u(i.gfm.url,"i").replace("email",i.gfm._extended_email).getRegex(),i.breaks=y({},i.gfm,{br:u(i.br).replace("{2,}","*").getRegex(),text:u(i.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),o.rules=i,o.output=function(e,t,s){return new o(t,s).output(e)},o.prototype.output=function(e){for(var t,s,n,i,r,a,l="";e;)if(r=this.rules.escape.exec(e))e=e.substring(r[0].length),l+=p(r[1]);else if(r=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(r[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(r[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.inRawBlock=!1),e=e.substring(r[0].length),l+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):p(r[0]):r[0];else if(r=this.rules.link.exec(e)){var c=_(r[2],"()");if(c>-1){var d=4+r[1].length+c;r[2]=r[2].substring(0,c),r[0]=r[0].substring(0,d).trim(),r[3]=""}e=e.substring(r[0].length),this.inLink=!0,n=r[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n))?(n=t[1],i=t[3]):i="":i=r[3]?r[3].slice(1,-1):"",n=n.trim().replace(/^<([\s\S]*)>$/,"$1"),l+=this.outputLink(r,{href:o.escapes(n),title:o.escapes(i)}),this.inLink=!1}else if((r=this.rules.reflink.exec(e))||(r=this.rules.nolink.exec(e))){if(e=e.substring(r[0].length),t=(r[2]||r[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){l+=r[0].charAt(0),e=r[0].substring(1)+e;continue}this.inLink=!0,l+=this.outputLink(r,t),this.inLink=!1}else if(r=this.rules.strong.exec(e))e=e.substring(r[0].length),l+=this.renderer.strong(this.output(r[4]||r[3]||r[2]||r[1]));else if(r=this.rules.em.exec(e))e=e.substring(r[0].length),l+=this.renderer.em(this.output(r[6]||r[5]||r[4]||r[3]||r[2]||r[1]));else if(r=this.rules.code.exec(e))e=e.substring(r[0].length),l+=this.renderer.codespan(p(r[2].trim(),!0));else if(r=this.rules.br.exec(e))e=e.substring(r[0].length),l+=this.renderer.br();else if(r=this.rules.del.exec(e))e=e.substring(r[0].length),l+=this.renderer.del(this.output(r[1]));else if(r=this.rules.autolink.exec(e))e=e.substring(r[0].length),n="@"===r[2]?"mailto:"+(s=p(this.mangle(r[1]))):s=p(r[1]),l+=this.renderer.link(n,null,s);else if(this.inLink||!(r=this.rules.url.exec(e))){if(r=this.rules.text.exec(e))e=e.substring(r[0].length),this.inRawBlock?l+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):p(r[0]):r[0]):l+=this.renderer.text(p(this.smartypants(r[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===r[2])n="mailto:"+(s=p(r[0]));else{do{a=r[0],r[0]=this.rules._backpedal.exec(r[0])[0]}while(a!==r[0]);s=p(r[0]),n="www."===r[1]?"http://"+s:s}e=e.substring(r[0].length),l+=this.renderer.link(n,null,s)}return l},o.escapes=function(e){return e?e.replace(o.rules._escapes,"$1"):e},o.prototype.outputLink=function(e,t){var s=t.href,n=t.title?p(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(s,n,this.output(e[1])):this.renderer.image(s,n,p(e[1]))},o.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},o.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,s="",n=e.length,i=0;i<n;i++)t=e.charCodeAt(i),Math.random()>.5&&(t="x"+t.toString(16)),s+="&#"+t+";";return s},r.prototype.code=function(e,t,s){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,n);null!=i&&i!==e&&(s=!0,e=i)}return n?'<pre><code class="'+this.options.langPrefix+p(n,!0)+'">'+(s?e:p(e,!0))+"</code></pre>\n":"<pre><code>"+(s?e:p(e,!0))+"</code></pre>"},r.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,s,n){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+n.slug(s)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},r.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},r.prototype.list=function(e,t,s){var n=t?"ol":"ul";return"<"+n+(t&&1!==s?' start="'+s+'"':"")+">\n"+e+"</"+n+">\n"},r.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},r.prototype.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},r.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},r.prototype.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},r.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},r.prototype.tablecell=function(e,t){var s=t.header?"th":"td";return(t.align?"<"+s+' align="'+t.align+'">':"<"+s+">")+e+"</"+s+">\n"},r.prototype.strong=function(e){return"<strong>"+e+"</strong>"},r.prototype.em=function(e){return"<em>"+e+"</em>"},r.prototype.codespan=function(e){return"<code>"+e+"</code>"},r.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},r.prototype.del=function(e){return"<del>"+e+"</del>"},r.prototype.link=function(e,t,s){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return s;var n='<a href="'+p(e)+'"';return t&&(n+=' title="'+t+'"'),n+">"+s+"</a>"},r.prototype.image=function(e,t,s){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return s;var n='<img src="'+e+'" alt="'+s+'"';return t&&(n+=' title="'+t+'"'),n+(this.options.xhtml?"/>":">")},r.prototype.text=function(e){return e},a.prototype.strong=a.prototype.em=a.prototype.codespan=a.prototype.del=a.prototype.text=function(e){return e},a.prototype.link=a.prototype.image=function(e,t,s){return""+s},a.prototype.br=function(){return""},l.parse=function(e,t){return new l(t).parse(e)},l.prototype.parse=function(e){this.inline=new o(e.links,this.options),this.inlineText=new o(e.links,y({},this.options,{renderer:new a})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},l.prototype.next=function(){return this.token=this.tokens.pop(),this.token},l.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},l.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},l.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,d(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,s,n,i="",o="";for(s="",e=0;e<this.token.header.length;e++)s+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(i+=this.renderer.tablerow(s),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],s="",n=0;n<t.length;n++)s+=this.renderer.tablecell(this.inline.output(t[n]),{header:!1,align:this.token.align[n]});o+=this.renderer.tablerow(s)}return this.renderer.table(i,o);case"blockquote_start":for(o="";"blockquote_end"!==this.next().type;)o+=this.tok();return this.renderer.blockquote(o);case"list_start":o="";for(var r=this.token.ordered,a=this.token.start;"list_end"!==this.next().type;)o+=this.tok();return this.renderer.list(o,r,a);case"list_item_start":o="";var l=this.token.loose,c=this.token.checked,p=this.token.task;for(this.token.task&&(o+=this.renderer.checkbox(c));"list_item_end"!==this.next().type;)o+=l||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(o,p,c);case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:var u='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(u);console.log(u)}},c.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var s=t;do{this.seen[s]++,t=s+"-"+this.seen[s]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},p.escapeTest=/[&<>"']/,p.escapeReplace=/[&<>"']/g,p.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},p.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,p.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var g={},m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function f(){}function y(e){for(var t,s,n=1;n<arguments.length;n++)for(s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}function w(e,t){var s=e.replace(/\|/g,(function(e,t,s){for(var n=!1,i=t;--i>=0&&"\\"===s[i];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;n<s.length;n++)s[n]=s[n].trim().replace(/\\\|/g,"|");return s}function b(e,t,s){if(0===e.length)return"";for(var n=0;n<e.length;){var i=e.charAt(e.length-n-1);if(i!==t||s){if(i===t||!s)break;n++}else n++}return e.substr(0,e.length-n)}function _(e,t){if(-1===e.indexOf(t[1]))return-1;for(var s=0,n=0;n<e.length;n++)if("\\"===e[n])n++;else if(e[n]===t[0])s++;else if(e[n]===t[1]&&--s<0)return n;return-1}function k(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function v(e,t,s){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(s||"function"==typeof t){s||(s=t,t=null),k(t=y({},v.defaults,t||{}));var i,o,r=t.highlight,a=0;try{i=n.lex(e,t)}catch(e){return s(e)}o=i.length;var c=function(e){if(e)return t.highlight=r,s(e);var n;try{n=l.parse(i,t)}catch(t){e=t}return t.highlight=r,e?s(e):s(null,n)};if(!r||r.length<3)return c();if(delete t.highlight,!o)return c();for(;a<i.length;a++)!function(e){"code"!==e.type?--o||c():r(e.text,e.lang,(function(t,s){return t?c(t):null==s||s===e.text?--o||c():(e.text=s,e.escaped=!0,void(--o||c()))}))}(i[a])}else try{return t&&(t=y({},v.defaults,t)),k(t),l.parse(n.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||v.defaults).silent)return"<p>An error occurred:</p><pre>"+p(e.message+"",!0)+"</pre>";throw e}}f.exec=f,v.options=v.setOptions=function(e){return y(v.defaults,e),v},v.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new r,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},v.defaults=v.getDefaults(),v.Parser=l,v.parser=l.parse,v.Renderer=r,v.TextRenderer=a,v.Lexer=n,v.lexer=n.lex,v.InlineLexer=o,v.inlineLexer=o.output,v.Slugger=c,v.parse=v,e.exports=v}(this||("undefined"!=typeof window?window:s.g))}},t={};function s(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,s),o.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};s.r(e),s.d(e,{DISMISS_ALERT:()=>D,NEW_REQUEST:()=>F,SNIPPET_EDITOR_FIND_CUSTOM_FIELDS:()=>B,wistiaEmbedPermission:()=>L});var t={};s.r(t),s.d(t,{addEventHandler:()=>Ae,disableMarkerButtons:()=>Pe,enableMarkerButtons:()=>Oe,getContentTinyMce:()=>Te,isTextViewActive:()=>De,isTinyMCEAvailable:()=>Ce,isTinyMCELoaded:()=>Re,pauseMarkers:()=>Ie,resumeMarkers:()=>Me,setStore:()=>Ee,termsTmceId:()=>Se,tinyMceEventBinder:()=>Fe,tmceId:()=>xe,wpTextViewOnInitCheck:()=>Be});var n={};s.r(n),s.d(n,{createSEOScoreLabel:()=>Ye,createScoresInPublishBox:()=>qe,initialize:()=>Ve,scrollToCollapsible:()=>Ke,updateScore:()=>ze});const i=window.wp.domReady;var o=s.n(i);const r=window.jQuery;var a=s.n(r);const l=window.lodash,c=window.wp.i18n;const p=window.wp.data,d=window.yoast.externals.redux,u=window.yoast.reduxJsToolkit,h="adminUrl",g=(0,u.createSlice)({name:h,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),m=(g.getInitialState,{selectAdminUrl:e=>(0,l.get)(e,h,"")});m.selectAdminLink=(0,u.createSelector)([m.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),g.actions,g.reducer;const f=window.wp.apiFetch;var y=s.n(f);const w="hasConsent",b=(0,u.createSlice)({name:w,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),k=(b.getInitialState,b.actions,b.reducer,window.wp.url),v="linkParams",x=(0,u.createSlice)({name:v,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),S=(x.getInitialState,{selectLinkParam:(e,t,s={})=>(0,l.get)(e,`${v}.${t}`,s),selectLinkParams:e=>(0,l.get)(e,v,{})});S.selectLink=(0,u.createSelector)([S.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,k.addQueryArgs)(t,{...e,...s}))),x.actions,x.reducer;const E=(0,u.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:n,description:i})=>({payload:{id:e||(0,u.nanoid)(),variant:t,size:s,title:n||"",description:i}})},removeNotification:(e,{payload:t})=>(0,l.omit)(e,t)}}),R=(E.getInitialState,E.actions,E.reducer,"pluginUrl"),C=(0,u.createSlice)({name:R,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),T=(C.getInitialState,{selectPluginUrl:e=>(0,l.get)(e,R,"")});T.selectImageLink=(0,u.createSelector)([T.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,l.trimEnd)(e,"/"),(0,l.trim)(t,"/"),(0,l.trimStart)(s,"/")].join("/"))),C.actions,C.reducer;const A="wistiaEmbedPermission",P=(0,u.createSlice)({name:A,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${A}/request`,(e=>{e.status="loading"})),e.addCase(`${A}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${A}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,l.get)(t,"error.code",500),message:(0,l.get)(t,"error.message","Unknown")}}))}}),O=(P.getInitialState,P.actions,{[A]:async({payload:e})=>y()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:Boolean(e)}})});var I;P.reducer;const M=(0,u.createSlice)({name:"documentTitle",initialState:(0,l.defaultTo)(null===(I=document)||void 0===I?void 0:I.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}});function D({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}function B({query:e,postId:t}){return new Promise((s=>{wpseoApi.get("meta/search",{query:e,post_id:t},(e=>{s(e.meta)}))}))}M.getInitialState,M.actions,M.reducer;const F=async({countryCode:e,keyphrase:t})=>(y()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}}),y()({path:(0,k.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:e})})),L=O[A];var U=s(2322),$=s.n(U);function j(){return window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor}const N=window.yoast.analysis,Y=window.wp.isShallowEqual,z=window.wp.api;var q={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},K=function(e,t,s){this.placeholder=e,this.replacement=t,this.options=(0,l.defaults)(s,q)};K.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},K.prototype.setSource=function(e){this.options.source=e},K.prototype.hasScope=function(){return!(0,l.isEmpty)(this.options.scope)},K.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},K.prototype.inScope=function(e){return!this.hasScope()||(0,l.indexOf)(this.options.scope,e)>-1},K.prototype.hasAlias=function(){return!(0,l.isEmpty)(this.options.aliases)},K.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},K.prototype.getAliases=function(){return this.options.aliases};const V=K,{removeReplacementVariable:Q,updateReplacementVariable:W,refreshSnippetEditor:Z}=d.actions;var H=["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"],G={},J={},X=function(e,t){this._app=e,this._app.registerPlugin("replaceVariablePlugin",{status:"ready"}),this._store=t,this.replaceVariables=this.replaceVariables.bind(this),this.registerReplacements(),this.registerModifications(),this.registerEvents(),this.subscribeToGutenberg()};X.prototype.registerReplacements=function(){this.addReplacement(new V("%%author_first_name%%","author_first_name")),this.addReplacement(new V("%%author_last_name%%","author_last_name")),this.addReplacement(new V("%%category%%","category")),this.addReplacement(new V("%%category_title%%","category_title")),this.addReplacement(new V("%%currentdate%%","currentdate")),this.addReplacement(new V("%%currentday%%","currentday")),this.addReplacement(new V("%%currentmonth%%","currentmonth")),this.addReplacement(new V("%%currenttime%%","currenttime")),this.addReplacement(new V("%%currentyear%%","currentyear")),this.addReplacement(new V("%%date%%","date")),this.addReplacement(new V("%%id%%","id")),this.addReplacement(new V("%%page%%","page")),this.addReplacement(new V("%%permalink%%","permalink")),this.addReplacement(new V("%%post_content%%","post_content")),this.addReplacement(new V("%%post_month%%","post_month")),this.addReplacement(new V("%%post_year%%","post_year")),this.addReplacement(new V("%%searchphrase%%","searchphrase")),this.addReplacement(new V("%%sitedesc%%","sitedesc")),this.addReplacement(new V("%%sitename%%","sitename")),this.addReplacement(new V("%%userid%%","userid")),this.addReplacement(new V("%%focuskw%%","keyword",{source:"app",aliases:["%%keyword%%"]})),this.addReplacement(new V("%%term_description%%","text",{source:"app",scope:["term","category","tag"],aliases:["%%tag_description%%","%%category_description%%"]})),this.addReplacement(new V("%%term_title%%","term_title",{scope:["term"]})),this.addReplacement(new V("%%term_hierarchy%%","term_hierarchy",{scope:["term"]})),this.addReplacement(new V("%%title%%","title",{source:"app",scope:["post","term","page"]})),this.addReplacement(new V("%%parent_title%%","title",{source:"app",scope:["page","category"]})),this.addReplacement(new V("%%excerpt%%","excerpt",{source:"app",scope:["post"],aliases:["%%excerpt_only%%"]})),this.addReplacement(new V("%%primary_category%%","primaryCategory",{source:"app",scope:["post"]})),this.addReplacement(new V("%%sep%%(\\s*%%sep%%)*","sep"))},X.prototype.registerEvents=function(){const e=wpseoScriptData.analysis.plugins.replaceVars.scope;"post"===e&&jQuery(".categorydiv").each(this.bindTaxonomyEvents.bind(this)),"post"!==e&&"page"!==e||jQuery("#postcustomstuff > #list-table").each(this.bindFieldEvents.bind(this))},X.prototype.subscribeToGutenberg=function(){if(!j())return;const e={0:""};let t=null;const s=wp.data;s.subscribe((()=>{const n=s.select("core/editor").getEditedPostAttribute("parent");if(void 0!==n&&t!==n)return t=n,n<1?(this._currentParentPageTitle="",void this.declareReloaded()):(0,l.isUndefined)(e[n])?void z.loadPromise.done((()=>{new z.models.Page({id:n}).fetch().then((t=>{this._currentParentPageTitle=t.title.rendered,e[n]=this._currentParentPageTitle,this.declareReloaded()})).fail((()=>{this._currentParentPageTitle="",this.declareReloaded()}))})):(this._currentParentPageTitle=e[n],void this.declareReloaded())}))},X.prototype.addReplacement=function(e){G[e.placeholder]=e},X.prototype.removeReplacement=function(e){delete G[e.getPlaceholder()]},X.prototype.registerModifications=function(){var e=this.replaceVariables.bind(this);(0,l.forEach)(H,function(t){this._app.registerModification(t,e,"replaceVariablePlugin",10)}.bind(this))},X.prototype.replaceVariables=function(e){return(0,l.isUndefined)(e)||(e=this.parentReplace(e),e=this.replaceCustomTaxonomy(e),e=this.replaceByStore(e),e=this.replacePlaceholders(e)),e},X.prototype.replaceByStore=function(e){const t=this._store.getState().snippetEditor.replacementVariables;return(0,l.forEach)(t,(t=>{""!==t.value&&(e=e.replace("%%"+t.name+"%%",t.value))})),e},X.prototype.getReplacementSource=function(e){return"app"===e.source?this._app.rawData:"direct"===e.source?"direct":wpseoScriptData.analysis.plugins.replaceVars.replace_vars},X.prototype.getReplacement=function(e){var t=this.getReplacementSource(e.options);return!1===e.inScope(wpseoScriptData.analysis.plugins.replaceVars.scope)?"":"direct"===t?e.replacement:t[e.replacement]||""},X.prototype.replacePlaceholders=function(e){return(0,l.forEach)(G,function(t){e=e.replace(new RegExp(t.getPlaceholder(!0),"g"),this.getReplacement(t))}.bind(this)),e},X.prototype.declareReloaded=function(){this._app.pluginReloaded("replaceVariablePlugin"),this._store.dispatch(Z())},X.prototype.getCategoryName=function(e){var t=e.parent("label").clone();return t.children().remove(),t.text().trim()},X.prototype.parseTaxonomies=function(e,t){(0,l.isUndefined)(J[t])&&(J[t]={});const s=[];(0,l.forEach)(e,function(e){const n=(e=jQuery(e)).val(),i=this.getCategoryName(e),o=e.prop("checked");J[t][n]={label:i,checked:o},o&&-1===s.indexOf(i)&&s.push(i)}.bind(this)),"category"!==t&&(t="ct_"+t),this._store.dispatch(W(t,s.join(", ")))},X.prototype.getAvailableTaxonomies=function(e){var t=jQuery(e).find("input[type=checkbox]"),s=jQuery(e).attr("id").replace("taxonomy-","");t.length>0&&this.parseTaxonomies(t,s),this.declareReloaded()},X.prototype.bindTaxonomyEvents=function(e,t){(t=jQuery(t)).on("wpListAddEnd",".categorychecklist",this.getAvailableTaxonomies.bind(this,t)),t.on("change","input[type=checkbox]",this.getAvailableTaxonomies.bind(this,t)),this.getAvailableTaxonomies(t)},X.prototype.replaceCustomTaxonomy=function(e){return(0,l.forEach)(J,function(t,s){var n="%%ct_"+s+"%%";"category"===s&&(n="%%"+s+"%%"),e=e.replace(n,this.getTaxonomyReplaceVar(s))}.bind(this)),e},X.prototype.getTaxonomyReplaceVar=function(e){var t=[],s=J[e];return!0===(0,l.isUndefined)(s)?"":((0,l.forEach)(s,(function(e){!1!==e.checked&&t.push(e.label)})),jQuery.uniqueSort(t).join(", "))},X.prototype.parseFields=function(e){jQuery(e).each(function(e,t){var s=jQuery("#"+t.id+"-key").val(),n=jQuery("#"+t.id+"-value").val();const i="cf_"+this.sanitizeCustomFieldNames(s),o=s+" (custom field)";this._store.dispatch(W(i,n,o)),this.addReplacement(new V(`%%${i}%%`,n,{source:"direct"}))}.bind(this))},X.prototype.removeFields=function(e){jQuery(e).each(function(e,t){var s=jQuery("#"+t.id+"-key").val();this.removeReplacement("%%cf_"+this.sanitizeCustomFieldNames(s)+"%%")}.bind(this))},X.prototype.sanitizeCustomFieldNames=function(e){return e.replace(/\s/g,"_")},X.prototype.getAvailableFields=function(e){this.removeCustomFields();var t=jQuery(e).find("#the-list > tr:visible[id]");t.length>0&&this.parseFields(t),this.declareReloaded()},X.prototype.bindFieldEvents=function(e,t){var s=(t=jQuery(t)).find("#the-list");s.on("wpListDelEnd.wpseoCustomFields",this.getAvailableFields.bind(this,t)),s.on("wpListAddEnd.wpseoCustomFields",this.getAvailableFields.bind(this,t)),s.on("input.wpseoCustomFields",".textarea",this.getAvailableFields.bind(this,t)),s.on("click.wpseoCustomFields",".button + .updatemeta",this.getAvailableFields.bind(this,t)),this.getAvailableFields(t)},X.prototype.removeCustomFields=function(){var e=(0,l.filter)(G,(function(e,t){return t.indexOf("%%cf_")>-1}));(0,l.forEach)(e,function(e){this._store.dispatch(Q((0,l.trim)(e.placeholder,"%%"))),this.removeReplacement(e)}.bind(this))},X.prototype.parentReplace=function(e){const t=jQuery("#parent_id, #parent").eq(0);return this.hasParentTitle(t)&&(e=e.replace(/%%parent_title%%/,this.getParentTitleReplacement(t))),j()&&!(0,l.isUndefined)(this._currentParentPageTitle)&&(e=e.replace(/%%parent_title%%/,this._currentParentPageTitle)),e},X.prototype.hasParentTitle=function(e){return!(0,l.isUndefined)(e)&&!(0,l.isUndefined)(e.prop("options"))},X.prototype.getParentTitleReplacement=function(e){var t=e.find("option:selected").text();return t===(0,c.__)("(no parent)","wordpress-seo")?"":t},X.ReplaceVar=V;const ee=X,te=window.wp.blocks,se=class{constructor(e,t,s){this._registerPlugin=e,this._registerModification=t,this._refreshAnalysis=s,this._reusableBlocks={},this._selectCore=(0,p.select)("core"),this._selectCoreEditor=(0,p.select)("core/editor"),this.reusableBlockChangeListener=this.reusableBlockChangeListener.bind(this),this.parseReusableBlocks=this.parseReusableBlocks.bind(this)}register(){this._registerPlugin("YoastReusableBlocksPlugin",{status:"ready"}),this._registerModification("content",this.parseReusableBlocks,"YoastReusableBlocksPlugin",1),(0,p.subscribe)((0,l.debounce)(this.reusableBlockChangeListener,500))}reusableBlockChangeListener(){const{blocks:e}=this._selectCoreEditor.getPostEdits();if(!e)return;let t=!1;e.forEach((e=>{if(!(0,te.isReusableBlock)(e))return;const s=this.getBlockContent(e.attributes.ref);this._reusableBlocks[e.attributes.ref]?this._reusableBlocks[e.attributes.ref].content!==s&&(this._reusableBlocks[e.attributes.ref].content=s,t=!0):(this._reusableBlocks[e.attributes.ref]={id:e.attributes.ref,clientId:e.clientId,content:s},t=!0)})),t&&this._refreshAnalysis()}parseReusableBlocks(e){const t=/<!-- wp:block {"ref":(\d+)} \/-->/g;return e.match(t)?e.replace(t,((t,s)=>this._reusableBlocks[s]&&this._reusableBlocks[s].content?this._reusableBlocks[s].content:e)):e}getBlockContent(e){const t=this._selectCore.getEditedEntityRecord("postType","wp_block",e);if(t){if((0,l.isFunction)(t.content))return t.content(t);if(t.blocks)return(0,te.__unstableSerializeAndClean)(t.blocks);if(t.content)return t.content}return""}},ne=window.wp.hooks,ie="[^<>&/\\[\\]\0- =]+?",oe=new RegExp("\\["+ie+"( [^\\]]+?)?\\]","g"),re=new RegExp("\\[/"+ie+"\\]","g");class ae{constructor({registerPlugin:e,registerModification:t,pluginReady:s,pluginReloaded:n},i){this._registerModification=t,this._pluginReady=s,this._pluginReloaded=n,e("YoastShortcodePlugin",{status:"loading"}),this.bindElementEvents();const o="("+i.join("|")+")";this.shortcodesRegex=new RegExp(o,"g"),this.closingTagRegex=new RegExp("\\[\\/"+o+"\\]","g"),this.nonCaptureRegex=new RegExp("\\["+o+"[^\\]]*?\\]","g"),this.parsedShortcodes=[],this.loadShortcodes(this.declareReady.bind(this))}declareReady(){this._pluginReady("YoastShortcodePlugin"),this.registerModifications()}declareReloaded(){this._pluginReloaded("YoastShortcodePlugin")}registerModifications(){this._registerModification("content",this.replaceShortcodes.bind(this),"YoastShortcodePlugin")}removeUnknownShortCodes(e){return(e=e.replace(oe,"")).replace(re,"")}replaceShortcodes(e){return"string"==typeof e&&this.parsedShortcodes.forEach((({shortcode:t,output:s})=>{e=e.replace(t,s)})),e=this.removeUnknownShortCodes(e)}loadShortcodes(e){const t=this.getUnparsedShortcodes(this.getShortcodes(this.getContentTinyMCE()));if(!(t.length>0))return e();this.parseShortcodes(t,e)}bindElementEvents(){const e=document.querySelector(".wp-editor-area"),t=(0,l.debounce)(this.loadShortcodes.bind(this,this.declareReloaded.bind(this)),500);e&&(e.addEventListener("keyup",t),e.addEventListener("change",t)),"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(e){e.editor.on("change",t),e.editor.on("keyup",t)}))}getContentTinyMCE(){let e=document.querySelector(".wp-editor-area")?document.querySelector(".wp-editor-area").value:"";return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length&&(e=tinyMCE.get("content")?tinyMCE.get("content").getContent():""),e}getUnparsedShortcodes(e){return"object"!=typeof e?(console.error("Failed to get unparsed shortcodes. Expected parameter to be an array, instead received "+typeof e),!1):e.filter((e=>this.isUnparsedShortcode(e)))}isUnparsedShortcode(e){return!this.parsedShortcodes.some((({shortcode:t})=>t===e))}getShortcodes(e){if("string"!=typeof e)return console.error("Failed to get shortcodes. Expected parameter to be a string, instead received"+typeof e),!1;const t=this.matchCapturingShortcodes(e);t.forEach((t=>{e=e.replace(t,"")}));const s=this.matchNonCapturingShortcodes(e);return t.concat(s)}matchCapturingShortcodes(e){const t=(e.match(this.closingTagRegex)||[]).join(" ").match(this.shortcodesRegex)||[];return(0,l.flatten)(t.map((t=>{const s="\\["+t+"[^\\]]*?\\].*?\\[\\/"+t+"\\]";return e.match(new RegExp(s,"g"))||[]})))}matchNonCapturingShortcodes(e){return e.match(this.nonCaptureRegex)||[]}parseShortcodes(e,t){return"function"!=typeof t?(console.error("Failed to parse shortcodes. Expected parameter to be a function, instead received "+typeof t),!1):"object"==typeof e&&e.length>0?void jQuery.post(ajaxurl,{action:"wpseo_filter_shortcodes",_wpnonce:wpseoScriptData.analysis.plugins.shortcodes.wpseo_filter_shortcodes_nonce,data:e},function(e){this.saveParsedShortcodes(e,t)}.bind(this)):t()}saveParsedShortcodes(e,t){const s=JSON.parse(e);this.parsedShortcodes.push(...s),t()}}const le=ae,{updateShortcodesForParsing:ce}=d.actions;var pe=s(7084),de=s.n(pe);const ue=class{constructor(e,t){this._registerPlugin=e,this._registerModification=t}register(){this._registerPlugin("YoastMarkdownPlugin",{status:"ready"}),this._registerModification("content",this.parseMarkdown.bind(this),"YoastMarkdownPlugin",1)}parseMarkdown(e){return de()(e)}},he="yoastmark";function ge(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function me(e,t,s){const n=e.dom;let i=e.getContent();if(i=N.markers.removeMarks(i),(0,l.isEmpty)(s))return void e.setContent(i);i=s[0].hasPosition()?function(e,t){if(!t)return"";for(let s=(e=(0,l.orderBy)(e,(e=>e._properties.position.startOffset),["asc"])).length-1;s>=0;s--){const n=e[s];ge(n,t)||(t=n.applyWithPosition(t))}return t}(s,i):function(e,t,s,n){const{fieldsToMark:i,selectedHTML:o}=N.languageProcessing.getFieldsToMark(s,n);return(0,l.forEach)(s,(function(t){"acf_content"!==e.id&&(t._properties.marked=N.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=N.languageProcessing.normalizeHTML(t._properties.original)),i.length>0?o.forEach((e=>{const s=t.applyWithReplace(e);n=n.replace(e,s)})):n=t.applyWithReplace(n)})),n}(e,0,s,i),e.setContent(i),function(e){let t=e.getContent();t=t.replace(new RegExp("<yoastmark.+?>","g"),"").replace(new RegExp("</yoastmark>","g"),""),e.setContent(t)}(e);const o=n.select(he);(0,l.forEach)(o,(function(e){e.setAttribute("data-mce-bogus","1")}))}function fe(e){return window.test=e,me.bind(null,e)}const ye="et_pb_main_editor_wrap",we=class{static isActive(){return!!document.getElementById(ye)}static isTinyMCEHidden(){const e=document.getElementById(ye);return!!e&&e.classList.contains("et_pb_hidden")}listen(e){this.classicEditorContainer=document.getElementById(ye),this.classicEditorContainer&&new MutationObserver((t=>{(0,l.forEach)(t,(t=>{"attributes"===t.type&&"class"===t.attributeName&&(t.target.classList.contains("et_pb_hidden")?e.classicEditorHidden():e.classicEditorShown())}))})).observe(this.classicEditorContainer,{attributes:!0})}},be=class{static isActive(){return!!window.VCV_I18N}},_e={classicEditorHidden:l.noop,classicEditorShown:l.noop,pageBuilderLoaded:l.noop},ke=class{constructor(){this.determineActivePageBuilders()}determineActivePageBuilders(){we.isActive()&&(this.diviActive=!0),be.isActive()&&(this.vcActive=!0)}isPageBuilderActive(){return this.diviActive||this.vcActive}listen(e){this.callbacks=(0,l.defaults)(e,_e),this.diviActive&&(new we).listen(e)}isClassicEditorHidden(){return!(!this.diviActive||!we.isTinyMCEHidden())}};let ve;const xe="content",Se="description";function Ee(e){ve=e}function Re(){return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length}function Ce(e){if(!Re())return!1;const t=tinyMCE.get(e);return null!==t&&!t.isHidden()}function Te(e){let t="";var s;return t=!1===Ce(e)||0==(s=e,null!==document.getElementById(s+"_ifr"))?function(e){return document.getElementById(e)&&document.getElementById(e).value||""}(e):tinyMCE.get(e).getContent(),t}function Ae(e,t,s){"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(n){const i=n.editor;i.id===e&&(0,l.forEach)(t,(function(e){i.on(e,s)}))}))}function Pe(){(0,l.isUndefined)(ve)||ve.dispatch(d.actions.setMarkerStatus("disabled"))}function Oe(){(0,l.isUndefined)(ve)||ve.dispatch(d.actions.setMarkerStatus("enabled"))}function Ie(){(0,l.isUndefined)(ve)||ve.dispatch(d.actions.setMarkerPauseStatus(!0))}function Me(){(0,l.isUndefined)(ve)||ve.dispatch(d.actions.setMarkerPauseStatus(!1))}function De(){const e=document.getElementById("wp-content-wrap");return!!e&&e.classList.contains("html-active")}function Be(){De()&&(Pe(),Re()&&tinyMCE.on("AddEditor",(function(){Oe()})))}function Fe(e,t){Ae(t,["input","change","cut","paste"],e),Ae(t,["hide"],Pe);const s=["show"];(new ke).isPageBuilderActive()||s.push("init"),Ae(t,s,Oe),Ae("content",["focus"],(function(e){const t=e.target;(function(e){return-1!==e.getContent({format:"raw"}).indexOf("<"+he)})(t)&&(function(e){fe(e)(null,[])}(t),YoastSEO.app.disableMarkers()),Ie()})),Ae("content",["blur"],(function(){Me()}))}class Le{constructor(e){this.refresh=e,this.loaded=!1,this.preloadThreshold=3e3,this.plugins={},this.modifications={},this._registerPlugin=this._registerPlugin.bind(this),this._ready=this._ready.bind(this),this._reloaded=this._reloaded.bind(this),this._registerModification=this._registerModification.bind(this),this._registerAssessment=this._registerAssessment.bind(this),this._applyModifications=this._applyModifications.bind(this),setTimeout(this._pollLoadingPlugins.bind(this),1500)}_registerPlugin(e,t){return(0,l.isString)(e)?(0,l.isUndefined)(t)||(0,l.isObject)(t)?!1===this._validateUniqueness(e)?(console.error("Failed to register plugin. Plugin with name "+e+" already exists"),!1):(this.plugins[e]=t,!0):(console.error("Failed to register plugin "+e+". Expected parameters `options` to be a object."),!1):(console.error("Failed to register plugin. Expected parameter `pluginName` to be a string."),!1)}_ready(e){return(0,l.isString)(e)?(0,l.isUndefined)(this.plugins[e])?(console.error("Failed to modify status for plugin "+e+". The plugin was not properly registered."),!1):(this.plugins[e].status="ready",!0):(console.error("Failed to modify status for plugin "+e+". Expected parameter `pluginName` to be a string."),!1)}_reloaded(e){return(0,l.isString)(e)?(0,l.isUndefined)(this.plugins[e])?(console.error("Failed to reload Content Analysis for plugin "+e+". The plugin was not properly registered."),!1):(this.refresh(),!0):(console.error("Failed to reload Content Analysis for "+e+". Expected parameter `pluginName` to be a string."),!1)}_registerModification(e,t,s,n){if(!(0,l.isString)(e))return console.error("Failed to register modification for plugin "+s+". Expected parameter `modification` to be a string."),!1;if(!(0,l.isFunction)(t))return console.error("Failed to register modification for plugin "+s+". Expected parameter `callable` to be a function."),!1;if(!(0,l.isString)(s))return console.error("Failed to register modification for plugin "+s+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(s))return console.error("Failed to register modification for plugin "+s+". The integration has not finished loading yet."),!1;const i={callable:t,origin:s,priority:(0,l.isNumber)(n)?n:10};return(0,l.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(i),!0}_registerAssessment(e,t,s,n){return(0,l.isString)(t)?(0,l.isObject)(s)?(0,l.isString)(n)?(t=n+"-"+t,e.addAssessment(t,s),!0):(console.error("Failed to register assessment for plugin "+n+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+n+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+n+". Expected parameter `name` to be a string."),!1)}_applyModifications(e,t,s){let n=this.modifications[e];return!(0,l.isArray)(n)||n.length<1||(n=this._stripIllegalModifications(n),n.sort(((e,t)=>e.priority-t.priority)),(0,l.forEach)(n,(function(n){const i=n.callable(t,s);typeof i==typeof t?t=i:console.error("Modification with name "+e+" performed by plugin with name "+n.origin+" was ignored because the data that was returned by it was of a different type than the data we had passed it.")}))),t}_pollLoadingPlugins(e){e=(0,l.isUndefined)(e)?0:e,!0===this._allReady()?(this.loaded=!0,this.refresh()):e>=this.preloadThreshold?(this._pollTimeExceeded(),this.loaded=!0,this.refresh()):(e+=50,setTimeout(this._pollLoadingPlugins.bind(this,e),50))}_allReady(){return(0,l.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}_pollTimeExceeded(){(0,l.forEach)(this.plugins,(function(e,t){(0,l.isUndefined)(e.options)||"ready"===e.options.status||(console.error("Error: Plugin "+t+". did not finish loading in time."),delete this.plugins[t])}))}_stripIllegalModifications(e){return(0,l.forEach)(e,((t,s)=>{!1===this._validateOrigin(t.origin)&&delete e[s]})),e}_validateOrigin(e){return"ready"===this.plugins[e].status}_validateUniqueness(e){return(0,l.isUndefined)(this.plugins[e])}}function Ue(e,t,s){e("morphology",new N.Paper("",{keyword:s})).then((e=>{const s=e.result.keyphraseForms;t.dispatch(d.actions.updateWordsToHighlight((0,l.uniq)((0,l.flatten)(s))))})).catch((()=>{t.dispatch(d.actions.updateWordsToHighlight([]))}))}var $e="score-text",je="image yoast-logo svg",Ne=jQuery;function Ye(e,t,s=null){var n,i,o,r,a;if(null!==s)return(0,l.get)(s,t,"");const d=(0,p.select)("yoast-seo/editor").getIsPremium(),u={na:(0,c.__)("Not available","wordpress-seo"),bad:(0,c.__)("Needs improvement","wordpress-seo"),ok:(0,c.__)("OK","wordpress-seo"),good:(0,c.__)("Good","wordpress-seo")},h={keyword:{label:d?(0,c.__)("Premium SEO analysis:","wordpress-seo"):(0,c.__)("SEO analysis:","wordpress-seo"),anchor:"yoast-seo-analysis-collapsible-metabox",status:u},content:{label:(0,c.__)("Readability analysis:","wordpress-seo"),anchor:"yoast-readability-analysis-collapsible-metabox",status:u},"inclusive-language":{label:(0,c.__)("Inclusive language:","wordpress-seo"),anchor:"yoast-inclusive-language-analysis-collapsible-metabox",status:{...u,ok:(0,c.__)("Potentially non-inclusive","wordpress-seo")}}};return null!=h&&null!==(n=h[e])&&void 0!==n&&null!==(i=n.status)&&void 0!==i&&i[t]?`<a href="#${null===(o=h[e])||void 0===o?void 0:o.anchor}">${null===(r=h[e])||void 0===r?void 0:r.label}</a> <strong>${null===(a=h[e])||void 0===a?void 0:a.status[t]}</strong>`:""}function ze(e,t,s=null){var n=Ne("#"+e+"-score"),i=je+" "+t;n.children(".image").attr("class",i);var o=Ye(e,t,s);n.children("."+$e).html(o)}function qe(e,t,s=null){const n=Ne("<div />",{class:"misc-pub-section yoast yoast-seo-score "+e+"-score",id:e+"-score"}),i=Ne("<span />",{class:$e,html:Ye(e,t,s)}),o=Ne("<span>").attr("class",je+" na");n.append(o).append(i),Ne("#yoast-seo-publishbox-section").append(n)}function Ke(e){const t=Ne("#wpadminbar"),s=Ne(e);if(!t||!s)return;const n="fixed"===t.css("position")?t.height():0;Ne([document.documentElement,document.body]).animate({scrollTop:s.offset().top-n},1e3),s.trigger("focus"),0===s.parent().siblings().length&&s.trigger("click")}function Ve(){var e="na";wpseoScriptData.metabox.keywordAnalysisActive&&qe("keyword",e),wpseoScriptData.metabox.contentAnalysisActive&&qe("content",e),wpseoScriptData.metabox.inclusiveLanguageAnalysisActive&&qe("inclusive-language",e),Ne("#content-score").on("click","[href='#yoast-readability-analysis-collapsible-metabox']",(function(e){e.preventDefault(),document.querySelector("#wpseo-meta-tab-readability").click(),Ke("#wpseo-meta-section-readability")})),Ne("#keyword-score").on("click","[href='#yoast-seo-analysis-collapsible-metabox']",(function(e){e.preventDefault(),document.querySelector("#wpseo-meta-tab-content").click(),Ke("#yoast-seo-analysis-collapsible-metabox")})),Ne("#inclusive-language-score").on("click","[href='#yoast-inclusive-language-analysis-collapsible-metabox']",(function(e){e.preventDefault(),document.querySelector("#wpseo-meta-tab-inclusive-language").click(),Ke("#wpseo-meta-section-inclusive-language")}))}function Qe(e){var t=jQuery(".yst-traffic-light"),s=t.closest(".wpseo-meta-section-link"),n=jQuery("#wpseo-traffic-light-desc"),i=e.className||"na";t.attr("class","yst-traffic-light "+i),s.attr("aria-describedby","wpseo-traffic-light-desc"),n.length>0?n.text(e.screenReaderText):s.closest("li").append("<span id='wpseo-traffic-light-desc' class='screen-reader-text'>"+e.screenReaderText+"</span>")}function We(e){jQuery("#wp-admin-bar-wpseo-menu .wpseo-score-icon").attr("title",e.screenReaderText).attr("class","wpseo-score-icon "+e.className).find(".wpseo-score-text").text(e.screenReaderText)}function Ze(){return(0,l.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}function He(){const e=Ze();return(0,l.get)(e,"contentLocale","en_US")}function Ge(){const e=Ze();return!0===(0,l.get)(e,"contentAnalysisActive",!1)}function Je(){const e=Ze();return!0===(0,l.get)(e,"keywordAnalysisActive",!1)}function Xe(){const e=Ze();return!0===(0,l.get)(e,"inclusiveLanguageAnalysisActive",!1)}const et=window.yoast.featureFlag;function tt(){}let st=!1;function nt(e){return e.sort(((e,t)=>e._identifier.localeCompare(t._identifier)))}function it(e,t,s,n,i){if(!st)return;const o=N.Paper.parse(t());e.analyze(o).then((r=>{const{result:{seo:a,readability:l,inclusiveLanguage:c}}=r;if(a){const e=a[""];e.results.forEach((e=>{e.getMarker=()=>()=>s(o,e.marks)})),e.results=nt(e.results),n.dispatch(d.actions.setSeoResultsForKeyword(o.getKeyword(),e.results)),n.dispatch(d.actions.setOverallSeoScore(e.score,o.getKeyword())),n.dispatch(d.actions.refreshSnippetEditor()),i.saveScores(e.score,o.getKeyword())}l&&(l.results.forEach((e=>{e.getMarker=()=>()=>s(o,e.marks)})),l.results=nt(l.results),n.dispatch(d.actions.setReadabilityResults(l.results)),n.dispatch(d.actions.setOverallReadabilityScore(l.score)),n.dispatch(d.actions.refreshSnippetEditor()),i.saveContentScore(l.score)),c&&(c.results.forEach((e=>{e.getMarker=()=>()=>s(o,e.marks)})),c.results=nt(c.results),n.dispatch(d.actions.setInclusiveLanguageResults(c.results)),n.dispatch(d.actions.setOverallInclusiveLanguageScore(c.score)),n.dispatch(d.actions.refreshSnippetEditor()),i.saveInclusiveLanguageScore(c.score)),(0,ne.doAction)("yoast.analysis.refresh",r,{paper:o,worker:e,collectData:t,applyMarks:s,store:n,dataCollector:i})})).catch(tt)}const ot="yoast-measurement-element";function rt(e){let t=document.getElementById(ot);return t||(t=function(){const e=document.createElement("div");return e.id=ot,e.style.position="absolute",e.style.left="-9999em",e.style.top=0,e.style.height=0,e.style.overflow="hidden",e.style.fontFamily="arial, sans-serif",e.style.fontSize="20px",e.style.fontWeight="400",document.body.appendChild(e),e}()),t.innerText=e,t.offsetWidth}const at=e=>(e=e.filter((e=>e.isValid))).map((e=>{const t=(0,te.serialize)([e],{isInnerBlocks:!1});return e.blockLength=t&&t.length,e.innerBlocks&&(e.innerBlocks=at(e.innerBlocks)),e}));function lt(e){return(0,l.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,c.__)("Not available","wordpress-seo"),screenReaderReadabilityText:(0,c.__)("Not available","wordpress-seo"),screenReaderInclusiveLanguageText:(0,c.__)("Not available","wordpress-seo")};case"bad":return{className:"bad",screenReaderText:(0,c.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,c.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,c.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,c.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,c.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,c.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,c.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,c.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,c.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(N.interpreters.scoreToRating(e))}const{tmceId:ct}=t,pt=jQuery,dt=function(e){"object"==typeof CKEDITOR&&console.warn("YoastSEO currently doesn't support ckEditor. The content analysis currently only works with the HTML editor or TinyMCE."),this._data=e.data,this._store=e.store};dt.prototype.getData=function(){const e=this._data.getData(),t=this._store.getState();return{keyword:Je()?this.getKeyword():"",meta:this.getMeta(),text:e.content,title:e.title,url:e.slug,excerpt:e.excerpt,snippetTitle:this.getSnippetTitle(),snippetMeta:this.getSnippetMeta(),snippetCite:this.getSnippetCite(),primaryCategory:this.getPrimaryCategory(),searchUrl:this.getSearchUrl(),postUrl:this.getPostUrl(),permalink:this.getPermalink(),titleWidth:rt(this.getSnippetTitle()),metaTitle:(0,l.get)(t,["analysisData","snippet","title"],this.getSnippetTitle()),url:(0,l.get)(t,["snippetEditor","data","slug"],e.slug),meta:this.getMetaDescForAnalysis(t)}},dt.prototype.getKeyword=function(){return document.getElementById("yoast_wpseo_focuskw")&&document.getElementById("yoast_wpseo_focuskw").value||""},dt.prototype.getMetaDescForAnalysis=function(e){let t=(0,l.get)(e,["analysisData","snippet","description"],this.getSnippetMeta());return""!==wpseoScriptData.metabox.metaDescriptionDate&&(t=wpseoScriptData.metabox.metaDescriptionDate+" - "+t),t},dt.prototype.getMeta=function(){return document.getElementById("yoast_wpseo_metadesc")&&document.getElementById("yoast_wpseo_metadesc").value||""},dt.prototype.getText=function(){return N.markers.removeMarks(Te(ct))},dt.prototype.getTitle=function(){return document.getElementById("title")&&document.getElementById("title").value||""},dt.prototype.getUrl=function(){const e=(0,p.select)("core/editor");if(e&&e.getCurrentPostAttribute("slug"))return e.getCurrentPostAttribute("slug");var t="",s=pt("#new-post-slug");return 0<s.length?t=s.val():null!==document.getElementById("editable-post-name-full")&&(t=document.getElementById("editable-post-name-full").textContent),t},dt.prototype.getExcerpt=function(){var e="";return null!==document.getElementById("excerpt")&&(e=document.getElementById("excerpt")&&document.getElementById("excerpt").value||""),e},dt.prototype.getSnippetTitle=function(){return document.getElementById("yoast_wpseo_title")&&document.getElementById("yoast_wpseo_title").value||""},dt.prototype.getSnippetMeta=function(){return document.getElementById("yoast_wpseo_metadesc")&&document.getElementById("yoast_wpseo_metadesc").value||""},dt.prototype.getSnippetCite=function(){return this.getUrl()||""},dt.prototype.getPrimaryCategory=function(){var e="",t=pt("#category-all").find("ul.categorychecklist"),s=t.find("li input:checked");if(1===s.length)return this.getCategoryName(s.parent());var n=t.find(".wpseo-primary-term > label");return n.length?e=this.getCategoryName(n):e},dt.prototype.getSearchUrl=function(){return wpseoScriptData.metabox.search_url},dt.prototype.getPostUrl=function(){return wpseoScriptData.metabox.post_edit_url},dt.prototype.getPermalink=function(){var e=this.getUrl();return wpseoScriptData.metabox.base_url+e},dt.prototype.getCategoryName=function(e){var t=e.clone();return t.children().remove(),t.text().trim()},dt.prototype.setDataFromSnippet=function(e,t){switch(t){case"snippet_meta":document.getElementById("yoast_wpseo_metadesc").value=e;break;case"snippet_cite":if(this.leavePostNameUntouched)return void(this.leavePostNameUntouched=!1);null!==document.getElementById("post_name")&&(document.getElementById("post_name").value=e),null!==document.getElementById("editable-post-name")&&null!==document.getElementById("editable-post-name-full")&&(document.getElementById("editable-post-name").textContent=e,document.getElementById("editable-post-name-full").textContent=e);break;case"snippet_title":document.getElementById("yoast_wpseo_title").value=e}},dt.prototype.saveSnippetData=function(e){this.setDataFromSnippet(e.title,"snippet_title"),this.setDataFromSnippet(e.urlPath,"snippet_cite"),this.setDataFromSnippet(e.metaDesc,"snippet_meta")},dt.prototype.bindElementEvents=function(e){this.inputElementEventBinder(e),this.changeElementEventBinder(e)},dt.prototype.changeElementEventBinder=function(e){for(var t=["#yoast-wpseo-primary-category",'.categorychecklist input[name="post_category[]"]'],s=0;s<t.length;s++)pt(t[s]).on("change",e)},dt.prototype.inputElementEventBinder=function(e){for(var t=["excerpt","content","title"],s=0;s<t.length;s++)null!==document.getElementById(t[s])&&document.getElementById(t[s]).addEventListener("input",e);Fe(e,ct)},dt.prototype.saveScores=function(e,t){var s=lt(e);ze("content",s.className),document.getElementById("yoast_wpseo_linkdex").value=e,""===t&&(s.className="na",s.screenReaderText=(0,c.__)("Enter a focus keyphrase to calculate the SEO score","wordpress-seo")),Qe(s),We(s),ze("keyword",s.className),jQuery(window).trigger("YoastSEO:numericScore",e)},dt.prototype.saveContentScore=function(e){var t=lt(e);ze("content",t.className),Je()||(Qe(t),We(t)),pt("#yoast_wpseo_content_score").val(e)},dt.prototype.saveInclusiveLanguageScore=function(e){const t=lt(e);ze("inclusive-language",t.className),Je()||Ge()||(Qe(t),We(t)),pt("#yoast_wpseo_inclusive_language_score").val(e)};const ut=dt;class ht{constructor(){this._callbacks=[],this.register=this.register.bind(this)}register(e){(0,l.isFunction)(e)&&this._callbacks.push(e)}getData(){let e={};return this._callbacks.forEach((t=>{e=(0,l.merge)(e,t())})),e}}window.wp.annotations;const gt=function(e){return(0,l.uniq)((0,l.flatten)(e.map((e=>{if(!(0,l.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()}))))},mt=window.wp.richText,ft=/(<([a-z]|\/)[^<>]+>)/gi,{htmlEntitiesRegex:yt}=N.helpers.htmlEntities,wt=e=>{let t=0;return(0,l.forEachRight)(e,(e=>{const[s]=e;let n=s.length;/^<\/?br/.test(s)&&(n-=1),t+=n})),t},bt="<yoastmark class='yoast-text-mark'>",_t="</yoastmark>",kt='<yoastmark class="yoast-text-mark">';function vt(e,t,s,n,i){const o=n.clientId,r=(0,mt.create)({html:e,multilineTag:s.multilineTag,multilineWrapperTag:s.multilineWrapperTag}).text;return(0,l.flatMap)(i,(s=>{let i;return i=s.hasBlockPosition&&s.hasBlockPosition()?function(e,t,s,n,i){if(t===e.getBlockClientId()){let t=e.getBlockPositionStart(),o=e.getBlockPositionEnd();if(e.isMarkForFirstBlockSection()){const e=((e,t,s)=>{const n="yoast/faq-block"===s?'<strong class="schema-faq-question">':'<strong class="schema-how-to-step-name">';return{blockStartOffset:e-=n.length,blockEndOffset:t-=n.length}})(t,o,s);t=e.blockStartOffset,o=e.blockEndOffset}if(n.slice(t,o)===i.slice(t,o))return[{startOffset:t,endOffset:o}];const r=((e,t,s)=>{const n=s.slice(0,e),i=s.slice(0,t),o=((e,t,s,n)=>{const i=[...e.matchAll(ft)];s-=wt(i);const o=[...t.matchAll(ft)];return{blockStartOffset:s,blockEndOffset:n-=wt(o)}})(n,i,e,t),r=((e,t,s,n)=>{let i=[...e.matchAll(yt)];return(0,l.forEachRight)(i,(e=>{const[,t]=e;s-=t.length})),i=[...t.matchAll(yt)],(0,l.forEachRight)(i,(e=>{const[,t]=e;n-=t.length})),{blockStartOffset:s,blockEndOffset:n}})(n,i,e=o.blockStartOffset,t=o.blockEndOffset);return{blockStartOffset:e=r.blockStartOffset,blockEndOffset:t=r.blockEndOffset}})(t,o,n);return[{startOffset:r.blockStartOffset,endOffset:r.blockEndOffset}]}return[]}(s,o,n.name,e,r):function(e,t){const s=t.getOriginal().replace(/(<([^>]+)>)/gi,""),n=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),i=function(e,t,s=!0){const n=[];if(0===e.length)return n;let i,o=0;for(s||(t=t.toLowerCase(),e=e.toLowerCase());(i=e.indexOf(t,o))>-1;)n.push(i),o=i+t.length;return n}(e,s);if(0===i.length)return[];const o=function(e){let t=e.indexOf(bt);const s=t>=0;s||(t=e.indexOf(kt));let n=null;const i=[];for(;t>=0;){if(n=(e=s?e.replace(bt,""):e.replace(kt,"")).indexOf(_t),n<t)return[];e=e.replace(_t,""),i.push({startOffset:t,endOffset:n}),t=s?e.indexOf(bt):e.indexOf(kt),n=null}return i}(n),r=[];return o.forEach((e=>{i.forEach((n=>{const i=n+e.startOffset;let o=n+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(o=n+s.length),r.push({startOffset:i,endOffset:o})}))})),r}(r,s),i?i.map((e=>({...e,block:o,richTextIdentifier:t}))):[]}))}const xt=e=>e[0].toUpperCase()+e.slice(1),St=(e,t,s,n,i)=>(e=e.map((e=>{const o=`${e.id}-${i[0]}`,r=`${e.id}-${i[1]}`,a=xt(i[0]),l=xt(i[1]),c=e[`json${a}`],p=e[`json${l}`],{marksForFirstSection:d,marksForSecondSection:u}=((e,t)=>({marksForFirstSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&e.isMarkForFirstBlockSection():e)),marksForSecondSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&!e.isMarkForFirstBlockSection():e))}))(t,e),h=vt(c,o,s,n,d),g=vt(p,r,s,n,u);return h.concat(g)})),(0,l.flattenDeep)(e)),Et="yoast";let Rt=[];const Ct={"core/paragraph":[{key:"content"}],"core/list":[{key:"values",multilineTag:"li",multilineWrapperTag:["ul","ol"]}],"core/list-item":[{key:"content"}],"core/heading":[{key:"content"}],"core/audio":[{key:"caption"}],"core/embed":[{key:"caption"}],"core/gallery":[{key:"caption"}],"core/image":[{key:"caption"}],"core/table":[{key:"caption"}],"core/video":[{key:"caption"}],"yoast/faq-block":[{key:"questions"}],"yoast/how-to-block":[{key:"steps"},{key:"jsonDescription"}]};function Tt(){const e=Rt.shift();e&&((0,p.dispatch)("core/annotations").__experimentalAddAnnotation(e),At())}function At(){(0,l.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(Tt,{timeout:1e3}):setTimeout(Tt,150)}const Pt=(e,t)=>{return(0,l.flatMap)((s=e.name,Ct.hasOwnProperty(s)?Ct[s]:[]),(s=>"yoast/faq-block"===e.name?((e,t,s)=>{const n=t.attributes[e.key];return 0===n.length?[]:St(n,s,e,t,["question","answer"])})(s,e,t):"yoast/how-to-block"===e.name?((e,t,s)=>{const n=t.attributes[e.key];if(n&&0===n.length)return[];const i=[];return"steps"===e.key&&i.push(St(n,s,e,t,["name","text"])),"jsonDescription"===e.key&&(s=s.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?!e.getBlockAttributeId():e)),i.push(vt(n,"description",e,t,s))),(0,l.flattenDeep)(i)})(s,e,t):function(e,t,s){const n=e.key,i=((e,t)=>{const s=e.attributes[t];return"string"==typeof s?s:(s||"").toString()})(t,n);return vt(i,n,e,t,s)}(s,e,t)));var s};function Ot(e,t){return(0,l.flatMap)(e,(e=>{const s=function(e){return e.innerBlocks.length>0}(e)?Ot(e.innerBlocks,t):[];return Pt(e,t).concat(s)}))}function It(e){Rt=[],(0,p.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource(Et);const t=gt(e);if(0===e.length)return;let s=(0,p.select)("core/block-editor").getBlocks();var n;t.length>0&&(s=s.filter((e=>t.some((t=>"core/"+t===e.name))))),n=Ot(s,e),Rt=n.map((e=>({blockClientId:e.block,source:Et,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}))),At()}function Mt(e,t){let s;Ce(xe)&&((0,l.isUndefined)(s)&&(s=fe(tinyMCE.get(xe))),s(e,t)),(0,p.select)("core/block-editor")&&(0,l.isFunction)((0,p.select)("core/block-editor").getBlocks)&&(0,p.select)("core/annotations")&&(0,l.isFunction)((0,p.dispatch)("core/annotations").__experimentalAddAnnotation)&&(function(e,t){tinyMCE.editors.map((e=>fe(e))).forEach((s=>s(e,t)))}(e,t),It(t)),(0,ne.doAction)("yoast.analysis.applyMarks",t)}function Dt(){const e=(0,p.select)("yoast-seo/editor").isMarkingAvailable(),t=(0,p.select)("yoast-seo/editor").getMarkerPauseStatus();return!e||t?l.noop:Mt}var Bt=jQuery;function Ft(e,t,s,n,i){this._scriptUrl=n,this._options={usedKeywords:t.keyword_usage,usedKeywordsPostTypes:t.keyword_usage_post_types,searchUrl:t.search_url,postUrl:t.post_edit_url},this._keywordUsage=t.keyword_usage,this._usedKeywordsPostTypes=t.keyword_usage_post_types,this._postID=Bt("#post_ID, [name=tag_ID]").val(),this._taxonomy=Bt("[name=taxonomy]").val()||"",this._nonce=i,this._ajaxAction=e,this._refreshAnalysis=s,this._initialized=!1}Ft.prototype.init=function(){const{worker:e}=window.YoastSEO.analysis;this.requestKeywordUsage=(0,l.debounce)(this.requestKeywordUsage.bind(this),500),e.loadScript(this._scriptUrl).then((()=>{e.sendMessage("initialize",this._options,"used-keywords-assessment")})).then((()=>{this._initialized=!0,(0,l.isEqual)(this._options.usedKeywords,this._keywordUsage)?this._refreshAnalysis():e.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then((()=>this._refreshAnalysis()))})).catch((e=>console.error(e)))},Ft.prototype.setKeyword=function(e){(0,l.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},Ft.prototype.requestKeywordUsage=function(e){Bt.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy,nonce:this._nonce},this.updateKeywordUsage.bind(this,e),"json")},Ft.prototype.updateKeywordUsage=function(e,t){const{worker:s}=window.YoastSEO.analysis,n=t.keyword_usage,i=t.post_types;n&&(0,l.isArray)(n)&&(this._keywordUsage[e]=n,this._usedKeywordsPostTypes[e]=i,this._initialized&&s.sendMessage("updateKeywordUsage",{usedKeywords:this._keywordUsage,usedKeywordsPostTypes:this._usedKeywordsPostTypes},"used-keywords-assessment").then((()=>this._refreshAnalysis())))};const{setFocusKeyword:Lt,updateData:Ut,setCornerstoneContent:$t,refreshSnippetEditor:jt,setReadabilityResults:Nt,setSeoResultsForKeyword:Yt}=d.actions;function zt(e,s,i){if("undefined"==typeof wpseoScriptData)return;let o,r,a,c;const d=new ht;function u(e){return""===e.responseText?r.val():jQuery("<div>"+e.responseText+"</div>").find("#editable-post-name-full").text()}function h(){const e={};return Je()&&(e.output="does-not-really-exist-but-it-needs-something"),Ge()&&(e.contentOutput="also-does-not-really-exist-but-it-needs-something"),e}function g(e){(0,l.isUndefined)(e.seoAssessorPresenter)||(e.seoAssessorPresenter.render=function(){}),(0,l.isUndefined)(e.contentAssessorPresenter)||(e.contentAssessorPresenter.render=function(){},e.contentAssessorPresenter.renderIndividualRatings=function(){})}let m;function f(e,t){const s=m||"";m=e.getState().analysisData.snippet,!(0,Y.isShallowEqualObjects)(s,m)&&t()}function y(){return(0,p.select)("core/edit-post").getEditorMode()}jQuery(document).on("ajaxComplete",(function(e,t,n){if("/admin-ajax.php"===n.url.substring(n.url.length-15)&&"string"==typeof n.data&&-1!==n.data.indexOf("action=sample-permalink")){c.leavePostNameUntouched=!0;const e={slug:u(t)};s.dispatch(Ut(e))}})),function(){if(o=e("#wpseo_meta"),Ee(s),Be(),function(){const e=new ke;e.isClassicEditorHidden()&&Pe(),e.vcActive?Pe():e.listen({classicEditorHidden:()=>{Pe()},classicEditorShown:()=>{De()||Oe()}})}(),0===o.length)return;c=function(e){const t=new ut({data:e,store:s});return t.leavePostNameUntouched=!1,t}(i),Ve();const u=function(t){const s={elementTarget:[xe,"yoast_wpseo_focuskw_text_input","yoast_wpseo_metadesc","excerpt","editable-post-name","editable-post-name-full"],targets:h(),callbacks:{getData:c.getData.bind(c)},locale:wpseoScriptData.metabox.contentLocale,marker:Dt(),contentAnalysisActive:Ge(),keywordAnalysisActive:Je(),debouncedRefresh:!1,researcher:new window.yoast.Researcher.default};return Je()&&(t.dispatch(Lt(e("#yoast_wpseo_focuskw").val())),s.callbacks.saveScores=c.saveScores.bind(c),s.callbacks.updatedKeywordsResults=function(e){const s=t.getState().focusKeyword;t.dispatch(Yt(s,e)),t.dispatch(jt())}),Ge()&&(s.callbacks.saveContentScore=c.saveContentScore.bind(c),s.callbacks.updatedContentResults=function(e){t.dispatch(Nt(e)),t.dispatch(jt())}),r=e("#title"),s}(s);a=new N.App(u),window.YoastSEO=window.YoastSEO||{},window.YoastSEO.app=a,window.YoastSEO.store=s,window.YoastSEO.analysis={},window.YoastSEO.analysis.worker=function(){const e=(0,l.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=(0,N.createWorker)(e),s=(0,l.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),n=[];for(const e in s){if(!Object.prototype.hasOwnProperty.call(s,e))continue;const t=window.document.getElementById(`${e}-js-translations`);if(!t)continue;const i=t.innerHTML.slice(214),o=i.indexOf(","),r=i.slice(0,o-1);try{const e=JSON.parse(i.slice(o+1,-4));n.push([r,e])}catch(t){console.warn(`Failed to parse translation data for ${e} to send to the Yoast SEO worker`);continue}}return t.postMessage({dependencies:s,translations:n}),new N.AnalysisWorkerWrapper(t)}(),window.YoastSEO.analysis.collectData=()=>function(e,t,s,n,i){const o=(0,l.cloneDeep)(t.getState());(0,l.merge)(o,s.getData());const r=e.getData();let a=null;i&&(a=i.getBlocks()||[],a=JSON.parse(JSON.stringify(a)),a=at(a));const c={text:r.content,textTitle:r.title,keyword:o.focusKeyword,synonyms:o.synonyms,description:o.analysisData.snippet.description||o.snippetEditor.data.description,title:o.analysisData.snippet.title||o.snippetEditor.data.title,slug:o.snippetEditor.data.slug,permalink:o.settings.snippetEditor.baseUrl+o.snippetEditor.data.slug,wpBlocks:a,date:o.settings.snippetEditor.date};n.loaded&&(c.title=n._applyModifications("data_page_title",c.title),c.title=n._applyModifications("title",c.title),c.description=n._applyModifications("data_meta_desc",c.description),c.text=n._applyModifications("content",c.text),c.wpBlocks=n._applyModifications("wpBlocks",c.wpBlocks));const p=o.analysisData.snippet.filteredSEOTitle;return c.titleWidth=rt(p||o.snippetEditor.data.title),c.locale=He(),c.writingDirection=function(){let e="LTR";return Ze().isRtl&&(e="RTL"),e}(),c.shortcodes=window.wpseoScriptData.analysis.plugins.shortcodes?window.wpseoScriptData.analysis.plugins.shortcodes.wpseo_shortcode_tags:[],c.isFrontPage="1"===(0,l.get)(window,"wpseoScriptData.isFrontPage","0"),N.Paper.parse((0,ne.applyFilters)("yoast.analysis.data",c))}(i,s,d,a.pluggable,(0,p.select)("core/block-editor")),window.YoastSEO.analysis.applyMarks=(e,t)=>Dt()(e,t),window.YoastSEO.app.refresh=(0,l.debounce)((()=>it(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,s,c)),500),window.YoastSEO.app.registerCustomDataCallback=d.register,window.YoastSEO.app.pluggable=new Le(window.YoastSEO.app.refresh),window.YoastSEO.app.registerPlugin=window.YoastSEO.app.pluggable._registerPlugin,window.YoastSEO.app.pluginReady=window.YoastSEO.app.pluggable._ready,window.YoastSEO.app.pluginReloaded=window.YoastSEO.app.pluggable._reloaded,window.YoastSEO.app.registerModification=window.YoastSEO.app.pluggable._registerModification,window.YoastSEO.app.registerAssessment=(e,t,s)=>{if(!(0,l.isUndefined)(a.seoAssessor))return window.YoastSEO.app.pluggable._registerAssessment(a.defaultSeoAssessor,e,t,s)&&window.YoastSEO.app.pluggable._registerAssessment(a.cornerStoneSeoAssessor,e,t,s)},window.YoastSEO.app.changeAssessorOptions=function(e){window.YoastSEO.analysis.worker.initialize(e).catch(tt),window.YoastSEO.app.refresh()},function(e,t,s){const n=Ze();if(!n.previouslyUsedKeywordActive)return;const i=new Ft("get_focus_keyword_usage_and_post_types",n,e,(0,l.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),(0,l.get)(window,["wpseoScriptData","usedKeywordsNonce"],""));i.init();let o={};s.subscribe((()=>{const e=s.getState()||{};e.focusKeyword!==o.focusKeyword&&(o=e,i.setKeyword(e.focusKeyword))}))}(a.refresh,0,s),s.subscribe(f.bind(null,s,a.refresh)),window.YoastSEO.analyzerArgs=u,window.YoastSEO.wp={},window.YoastSEO.wp.replaceVarsPlugin=new ee(a,s),function(e,t){let s=[];s=(0,ne.applyFilters)("yoast.analysis.shortcodes",s);const n=wpseoScriptData.analysis.plugins.shortcodes.wpseo_shortcode_tags;s=s.filter((e=>n.includes(e))),s.length>0&&(t.dispatch(ce(s)),window.YoastSEO.wp.shortcodePlugin=new ae({registerPlugin:e.registerPlugin,registerModification:e.registerModification,pluginReady:e.pluginReady,pluginReloaded:e.pluginReloaded},s))}(a,s),j()&&new se(a.registerPlugin,a.registerModification,window.YoastSEO.app.refresh).register(),wpseoScriptData.metabox.markdownEnabled&&new ue(a.registerPlugin,a.registerModification).register(),window.YoastSEO.wp._tinyMCEHelper=t,Je()&&function(t){const s=lt(e("#yoast_wpseo_linkdex").val());Qe(s),We(s),t.updateScore("keyword",s.className)}(n),Ge()&&function(t){const s=lt(e("#yoast_wpseo_content_score").val());We(s),t.updateScore("content",s.className)}(n),Xe()&&function(t){const s=lt(e("#yoast_wpseo_inclusive_language_score").val());We(s),t.updateScore("inclusive-language",s.className)}(n),window.YoastSEO.analysis.worker.initialize(function(e={}){const t={locale:He(),contentAnalysisActive:Ge(),keywordAnalysisActive:Je(),inclusiveLanguageAnalysisActive:Xe(),defaultQueryParams:(0,l.get)(window,["wpseoAdminL10n","default_query_params"],{}),logLevel:(0,l.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:(0,et.enabledFeatures)()};return(0,l.merge)(t,e)}()).then((()=>{jQuery(window).trigger("YoastSEO:ready")})).catch(tt),c.bindElementEvents((0,l.debounce)((()=>it(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,s,c)),500)),g(a);const m=a.initAssessorPresenters.bind(a);a.initAssessorPresenters=function(){m(),g(a)},i.setRefresh&&i.setRefresh(a.refresh);let w={title:(b=c).getSnippetTitle(),slug:b.getSnippetCite(),description:b.getSnippetMeta()};var b;const _=function(e){const t={};if((0,l.isUndefined)(e))return t;t.title=e.title_template;const s=e.metadesc_template;return(0,l.isEmpty)(s)||(t.description=s),t}(wpseoScriptData.metabox);w=function(e,t){const s={...e};return(0,l.forEach)(t,((t,n)=>{(0,l.has)(e,n)&&""===e[n]&&(s[n]=t)})),s}(w,_),s.dispatch(Ut(w)),s.dispatch($t("1"===document.getElementById("yoast_wpseo_is_cornerstone").value));let k=s.getState().focusKeyword;Ue(window.YoastSEO.analysis.worker.runResearch,s,k);const v=(0,l.debounce)((()=>{a.refresh()}),50);let x=null;if(s.subscribe((()=>{const t=s.getState().focusKeyword;k!==t&&(k=t,Ue(window.YoastSEO.analysis.worker.runResearch,s,k),e("#yoast_wpseo_focuskw").val(k),v());const n=function(e){const t=e.getState().snippetEditor.data;return{title:t.title,slug:t.slug,description:t.description}}(s),i=function(e,t){const s={...e};return(0,l.forEach)(t,((t,n)=>{(0,l.has)(e,n)&&e[n].trim()===t&&(s[n]="")})),s}(n,_);w.title!==n.title&&c.setDataFromSnippet(i.title,"snippet_title"),w.slug!==n.slug&&c.setDataFromSnippet(i.slug,"snippet_cite"),w.description!==n.description&&c.setDataFromSnippet(i.description,"snippet_meta");const o=s.getState();x!==o.isCornerstone&&(x=o.isCornerstone,document.getElementById("yoast_wpseo_is_cornerstone").value=o.isCornerstone,a.changeAssessorOptions({useCornerstone:o.isCornerstone})),w.title=n.title,w.slug=n.slug,w.description=n.description})),j()){let e=y();(0,p.subscribe)((()=>{const t=y();t!==e&&(e=t)}))}st=!0,window.YoastSEO.app.refresh()}()}window.YoastReplaceVarPlugin=ee,window.YoastShortcodePlugin=le;const qt=window.wp.element,Kt=window.yoast.propTypes;var Vt=s.n(Kt);const Qt=window.wp.components,Wt=window.yoast.styledComponents;var Zt=s.n(Wt);const Ht=window.wp.compose,Gt=window.ReactJSXRuntime,Jt=({id:e,value:t,terms:s=[],label:n,onChange:i})=>{const o=(0,qt.useCallback)((e=>{i(parseInt(e,10))}),[i]);return(0,Gt.jsx)(Qt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,id:e,label:n,value:t,onChange:o,options:s.map((e=>({label:(0,l.unescape)(e.name),value:e.id})))})};Jt.propTypes={terms:Vt().arrayOf(Vt().shape({id:Vt().number.isRequired,name:Vt().string.isRequired})),onChange:Vt().func.isRequired,id:Vt().string.isRequired,label:Vt().string.isRequired,value:Vt().number.isRequired};const Xt=Jt,es=Zt().div` +(()=>{var e={2322:e=>{var t,s,n="",i=function(e){e=e||"polite";var t=document.createElement("div");return t.id="a11y-speak-"+e,t.className="a11y-speak-region",t.setAttribute("style","clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; word-wrap: normal;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t};!function(e){if("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll)return e();document.addEventListener("DOMContentLoaded",e)}((function(){t=document.getElementById("a11y-speak-polite"),s=document.getElementById("a11y-speak-assertive"),null===t&&(t=i("polite")),null===s&&(s=i("assertive"))})),e.exports=function(e,i){!function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t<e.length;t++)e[t].textContent=""}(),e=e.replace(/<[^<>]+>/g," "),n===e&&(e+=" "),n=e,s&&"assertive"===i?s.textContent=e:t&&(t.textContent=e)}},7084:function(e,t,s){!function(t){"use strict";var s={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:f,table:f,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function n(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||v.defaults,this.rules=s.normal,this.options.pedantic?this.rules=s.pedantic:this.options.gfm&&(this.rules=s.gfm)}s._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,s._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,s.def=u(s.def).replace("label",s._label).replace("title",s._title).getRegex(),s.bullet=/(?:[*+-]|\d{1,9}\.)/,s.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,s.item=u(s.item,"gm").replace(/bull/g,s.bullet).getRegex(),s.list=u(s.list).replace(/bull/g,s.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+s.def.source+")").getRegex(),s._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",s._comment=/<!--(?!-?>)[\s\S]*?-->/,s.html=u(s.html,"i").replace("comment",s._comment).replace("tag",s._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),s.paragraph=u(s._paragraph).replace("hr",s.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",s._tag).getRegex(),s.blockquote=u(s.blockquote).replace("paragraph",s.paragraph).getRegex(),s.normal=y({},s),s.gfm=y({},s.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),s.pedantic=y({},s.normal,{html:u("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",s._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:f,paragraph:u(s.normal._paragraph).replace("hr",s.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",s.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),n.rules=s,n.lex=function(e,t){return new n(t).lex(e)},n.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},n.prototype.token=function(e,t){var n,i,o,r,a,l,c,d,u,h,g,m,f,y,_,k;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e)){var v=this.tokens[this.tokens.length-1];e=e.substring(o[0].length),v&&"paragraph"===v.type?v.text+="\n"+o[0].trimRight():(o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?o:b(o,"\n")}))}else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2]?o[2].trim():o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if((o=this.rules.nptable.exec(e))&&(l={type:"table",header:w(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(o[0].length),g=0;g<l.align.length;g++)/^ *-+: *$/.test(l.align[g])?l.align[g]="right":/^ *:-+: *$/.test(l.align[g])?l.align[g]="center":/^ *:-+ *$/.test(l.align[g])?l.align[g]="left":l.align[g]=null;for(g=0;g<l.cells.length;g++)l.cells[g]=w(l.cells[g],l.header.length);this.tokens.push(l)}else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),c={type:"list_start",ordered:y=(r=o[2]).length>1,start:y?+r:"",loose:!1},this.tokens.push(c),d=[],n=!1,f=(o=o[0].match(this.rules.item)).length,g=0;g<f;g++)h=(l=o[g]).length,~(l=l.replace(/^ *([*+-]|\d+\.) */,"")).indexOf("\n ")&&(h-=l.length,l=this.options.pedantic?l.replace(/^ {1,4}/gm,""):l.replace(new RegExp("^ {1,"+h+"}","gm"),"")),g!==f-1&&(a=s.bullet.exec(o[g+1])[0],(r.length>1?1===a.length:a.length>1||this.options.smartLists&&a!==r)&&(e=o.slice(g+1).join("\n")+e,g=f-1)),i=n||/\n\n(?!\s*$)/.test(l),g!==f-1&&(n="\n"===l.charAt(l.length-1),i||(i=n)),i&&(c.loose=!0),k=void 0,(_=/^\[[ xX]\] /.test(l))&&(k=" "!==l[1],l=l.replace(/^\[[ xX]\] +/,"")),u={type:"list_item_start",task:_,checked:k,loose:i},d.push(u),this.tokens.push(u),this.token(l,!1),this.tokens.push({type:"list_item_end"});if(c.loose)for(f=d.length,g=0;g<f;g++)d[g].loose=!0;this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):p(o[0]):o[0]});else if(t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),o[3]&&(o[3]=o[3].substring(1,o[3].length-1)),m=o[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[m]||(this.tokens.links[m]={href:o[2],title:o[3]});else if((o=this.rules.table.exec(e))&&(l={type:"table",header:w(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(o[0].length),g=0;g<l.align.length;g++)/^ *-+: *$/.test(l.align[g])?l.align[g]="right":/^ *:-+: *$/.test(l.align[g])?l.align[g]="center":/^ *:-+ *$/.test(l.align[g])?l.align[g]="left":l.align[g]=null;for(g=0;g<l.cells.length;g++)l.cells[g]=w(l.cells[g].replace(/^ *\| *| *\| *$/g,""),l.header.length);this.tokens.push(l)}else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2].charAt(0)?1:2,text:o[1]});else if(t&&(o=this.rules.paragraph.exec(e)))e=e.substring(o[0].length),this.tokens.push({type:"paragraph",text:"\n"===o[1].charAt(o[1].length-1)?o[1].slice(0,-1):o[1]});else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var i={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:f,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:f,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};function o(e,t){if(this.options=t||v.defaults,this.links=e,this.rules=i.normal,this.renderer=this.options.renderer||new r,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=i.pedantic:this.options.gfm&&(this.options.breaks?this.rules=i.breaks:this.rules=i.gfm)}function r(e){this.options=e||v.defaults}function a(){}function l(e){this.tokens=[],this.token=null,this.options=e||v.defaults,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new c}function c(){this.seen={}}function p(e,t){if(t){if(p.escapeTest.test(e))return e.replace(p.escapeReplace,(function(e){return p.replacements[e]}))}else if(p.escapeTestNoEncode.test(e))return e.replace(p.escapeReplaceNoEncode,(function(e){return p.replacements[e]}));return e}function d(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}function u(e,t){return e=e.source||e,t=t||"",{replace:function(t,s){return s=(s=s.source||s).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,s),this},getRegex:function(){return new RegExp(e,t)}}}function h(e,t,s){if(e){try{var n=decodeURIComponent(d(s)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!m.test(s)&&(s=function(e,t){return g[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?g[" "+e]=e+"/":g[" "+e]=b(e,"/",!0)),e=g[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}(t,s));try{s=encodeURI(s).replace(/%25/g,"%")}catch(e){return null}return s}i._punctuation="!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",i.em=u(i.em).replace(/punctuation/g,i._punctuation).getRegex(),i._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,i._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,i.autolink=u(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex(),i._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,i.tag=u(i.tag).replace("comment",s._comment).replace("attribute",i._attribute).getRegex(),i._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,i._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,i._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,i.link=u(i.link).replace("label",i._label).replace("href",i._href).replace("title",i._title).getRegex(),i.reflink=u(i.reflink).replace("label",i._label).getRegex(),i.normal=y({},i),i.pedantic=y({},i.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:u(/^!?\[(label)\]\((.*?)\)/).replace("label",i._label).getRegex(),reflink:u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",i._label).getRegex()}),i.gfm=y({},i.normal,{escape:u(i.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),i.gfm.url=u(i.gfm.url,"i").replace("email",i.gfm._extended_email).getRegex(),i.breaks=y({},i.gfm,{br:u(i.br).replace("{2,}","*").getRegex(),text:u(i.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),o.rules=i,o.output=function(e,t,s){return new o(t,s).output(e)},o.prototype.output=function(e){for(var t,s,n,i,r,a,l="";e;)if(r=this.rules.escape.exec(e))e=e.substring(r[0].length),l+=p(r[1]);else if(r=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(r[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(r[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.inRawBlock=!1),e=e.substring(r[0].length),l+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):p(r[0]):r[0];else if(r=this.rules.link.exec(e)){var c=_(r[2],"()");if(c>-1){var d=4+r[1].length+c;r[2]=r[2].substring(0,c),r[0]=r[0].substring(0,d).trim(),r[3]=""}e=e.substring(r[0].length),this.inLink=!0,n=r[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n))?(n=t[1],i=t[3]):i="":i=r[3]?r[3].slice(1,-1):"",n=n.trim().replace(/^<([\s\S]*)>$/,"$1"),l+=this.outputLink(r,{href:o.escapes(n),title:o.escapes(i)}),this.inLink=!1}else if((r=this.rules.reflink.exec(e))||(r=this.rules.nolink.exec(e))){if(e=e.substring(r[0].length),t=(r[2]||r[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){l+=r[0].charAt(0),e=r[0].substring(1)+e;continue}this.inLink=!0,l+=this.outputLink(r,t),this.inLink=!1}else if(r=this.rules.strong.exec(e))e=e.substring(r[0].length),l+=this.renderer.strong(this.output(r[4]||r[3]||r[2]||r[1]));else if(r=this.rules.em.exec(e))e=e.substring(r[0].length),l+=this.renderer.em(this.output(r[6]||r[5]||r[4]||r[3]||r[2]||r[1]));else if(r=this.rules.code.exec(e))e=e.substring(r[0].length),l+=this.renderer.codespan(p(r[2].trim(),!0));else if(r=this.rules.br.exec(e))e=e.substring(r[0].length),l+=this.renderer.br();else if(r=this.rules.del.exec(e))e=e.substring(r[0].length),l+=this.renderer.del(this.output(r[1]));else if(r=this.rules.autolink.exec(e))e=e.substring(r[0].length),n="@"===r[2]?"mailto:"+(s=p(this.mangle(r[1]))):s=p(r[1]),l+=this.renderer.link(n,null,s);else if(this.inLink||!(r=this.rules.url.exec(e))){if(r=this.rules.text.exec(e))e=e.substring(r[0].length),this.inRawBlock?l+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):p(r[0]):r[0]):l+=this.renderer.text(p(this.smartypants(r[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===r[2])n="mailto:"+(s=p(r[0]));else{do{a=r[0],r[0]=this.rules._backpedal.exec(r[0])[0]}while(a!==r[0]);s=p(r[0]),n="www."===r[1]?"http://"+s:s}e=e.substring(r[0].length),l+=this.renderer.link(n,null,s)}return l},o.escapes=function(e){return e?e.replace(o.rules._escapes,"$1"):e},o.prototype.outputLink=function(e,t){var s=t.href,n=t.title?p(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(s,n,this.output(e[1])):this.renderer.image(s,n,p(e[1]))},o.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},o.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,s="",n=e.length,i=0;i<n;i++)t=e.charCodeAt(i),Math.random()>.5&&(t="x"+t.toString(16)),s+="&#"+t+";";return s},r.prototype.code=function(e,t,s){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,n);null!=i&&i!==e&&(s=!0,e=i)}return n?'<pre><code class="'+this.options.langPrefix+p(n,!0)+'">'+(s?e:p(e,!0))+"</code></pre>\n":"<pre><code>"+(s?e:p(e,!0))+"</code></pre>"},r.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,s,n){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+n.slug(s)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},r.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},r.prototype.list=function(e,t,s){var n=t?"ol":"ul";return"<"+n+(t&&1!==s?' start="'+s+'"':"")+">\n"+e+"</"+n+">\n"},r.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},r.prototype.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},r.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},r.prototype.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},r.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},r.prototype.tablecell=function(e,t){var s=t.header?"th":"td";return(t.align?"<"+s+' align="'+t.align+'">':"<"+s+">")+e+"</"+s+">\n"},r.prototype.strong=function(e){return"<strong>"+e+"</strong>"},r.prototype.em=function(e){return"<em>"+e+"</em>"},r.prototype.codespan=function(e){return"<code>"+e+"</code>"},r.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},r.prototype.del=function(e){return"<del>"+e+"</del>"},r.prototype.link=function(e,t,s){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return s;var n='<a href="'+p(e)+'"';return t&&(n+=' title="'+t+'"'),n+">"+s+"</a>"},r.prototype.image=function(e,t,s){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return s;var n='<img src="'+e+'" alt="'+s+'"';return t&&(n+=' title="'+t+'"'),n+(this.options.xhtml?"/>":">")},r.prototype.text=function(e){return e},a.prototype.strong=a.prototype.em=a.prototype.codespan=a.prototype.del=a.prototype.text=function(e){return e},a.prototype.link=a.prototype.image=function(e,t,s){return""+s},a.prototype.br=function(){return""},l.parse=function(e,t){return new l(t).parse(e)},l.prototype.parse=function(e){this.inline=new o(e.links,this.options),this.inlineText=new o(e.links,y({},this.options,{renderer:new a})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},l.prototype.next=function(){return this.token=this.tokens.pop(),this.token},l.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},l.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},l.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,d(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,s,n,i="",o="";for(s="",e=0;e<this.token.header.length;e++)s+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(i+=this.renderer.tablerow(s),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],s="",n=0;n<t.length;n++)s+=this.renderer.tablecell(this.inline.output(t[n]),{header:!1,align:this.token.align[n]});o+=this.renderer.tablerow(s)}return this.renderer.table(i,o);case"blockquote_start":for(o="";"blockquote_end"!==this.next().type;)o+=this.tok();return this.renderer.blockquote(o);case"list_start":o="";for(var r=this.token.ordered,a=this.token.start;"list_end"!==this.next().type;)o+=this.tok();return this.renderer.list(o,r,a);case"list_item_start":o="";var l=this.token.loose,c=this.token.checked,p=this.token.task;for(this.token.task&&(o+=this.renderer.checkbox(c));"list_item_end"!==this.next().type;)o+=l||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(o,p,c);case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:var u='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(u);console.log(u)}},c.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var s=t;do{this.seen[s]++,t=s+"-"+this.seen[s]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},p.escapeTest=/[&<>"']/,p.escapeReplace=/[&<>"']/g,p.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},p.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,p.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var g={},m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function f(){}function y(e){for(var t,s,n=1;n<arguments.length;n++)for(s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}function w(e,t){var s=e.replace(/\|/g,(function(e,t,s){for(var n=!1,i=t;--i>=0&&"\\"===s[i];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;n<s.length;n++)s[n]=s[n].trim().replace(/\\\|/g,"|");return s}function b(e,t,s){if(0===e.length)return"";for(var n=0;n<e.length;){var i=e.charAt(e.length-n-1);if(i!==t||s){if(i===t||!s)break;n++}else n++}return e.substr(0,e.length-n)}function _(e,t){if(-1===e.indexOf(t[1]))return-1;for(var s=0,n=0;n<e.length;n++)if("\\"===e[n])n++;else if(e[n]===t[0])s++;else if(e[n]===t[1]&&--s<0)return n;return-1}function k(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function v(e,t,s){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(s||"function"==typeof t){s||(s=t,t=null),k(t=y({},v.defaults,t||{}));var i,o,r=t.highlight,a=0;try{i=n.lex(e,t)}catch(e){return s(e)}o=i.length;var c=function(e){if(e)return t.highlight=r,s(e);var n;try{n=l.parse(i,t)}catch(t){e=t}return t.highlight=r,e?s(e):s(null,n)};if(!r||r.length<3)return c();if(delete t.highlight,!o)return c();for(;a<i.length;a++)!function(e){"code"!==e.type?--o||c():r(e.text,e.lang,(function(t,s){return t?c(t):null==s||s===e.text?--o||c():(e.text=s,e.escaped=!0,void(--o||c()))}))}(i[a])}else try{return t&&(t=y({},v.defaults,t)),k(t),l.parse(n.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||v.defaults).silent)return"<p>An error occurred:</p><pre>"+p(e.message+"",!0)+"</pre>";throw e}}f.exec=f,v.options=v.setOptions=function(e){return y(v.defaults,e),v},v.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new r,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},v.defaults=v.getDefaults(),v.Parser=l,v.parser=l.parse,v.Renderer=r,v.TextRenderer=a,v.Lexer=n,v.lexer=n.lex,v.InlineLexer=o,v.inlineLexer=o.output,v.Slugger=c,v.parse=v,e.exports=v}(this||("undefined"!=typeof window?window:s.g))}},t={};function s(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,s),o.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};s.r(e),s.d(e,{DISMISS_ALERT:()=>D,NEW_REQUEST:()=>F,SNIPPET_EDITOR_FIND_CUSTOM_FIELDS:()=>B,wistiaEmbedPermission:()=>L});var t={};s.r(t),s.d(t,{addEventHandler:()=>Ae,disableMarkerButtons:()=>Pe,enableMarkerButtons:()=>Oe,getContentTinyMce:()=>Te,isTextViewActive:()=>De,isTinyMCEAvailable:()=>Ce,isTinyMCELoaded:()=>Re,pauseMarkers:()=>Ie,resumeMarkers:()=>Me,setStore:()=>Ee,termsTmceId:()=>Se,tinyMceEventBinder:()=>Fe,tmceId:()=>xe,wpTextViewOnInitCheck:()=>Be});var n={};s.r(n),s.d(n,{createSEOScoreLabel:()=>Ye,createScoresInPublishBox:()=>qe,initialize:()=>Ve,scrollToCollapsible:()=>Ke,updateScore:()=>ze});const i=window.wp.domReady;var o=s.n(i);const r=window.jQuery;var a=s.n(r);const l=window.lodash,c=window.wp.i18n;const p=window.wp.data,d=window.yoast.externals.redux,u=window.yoast.reduxJsToolkit,h="adminUrl",g=(0,u.createSlice)({name:h,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),m=(g.getInitialState,{selectAdminUrl:e=>(0,l.get)(e,h,"")});m.selectAdminLink=(0,u.createSelector)([m.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),g.actions,g.reducer;const f=window.wp.apiFetch;var y=s.n(f);const w="hasConsent",b=(0,u.createSlice)({name:w,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),k=(b.getInitialState,b.actions,b.reducer,window.wp.url),v="linkParams",x=(0,u.createSlice)({name:v,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),S=(x.getInitialState,{selectLinkParam:(e,t,s={})=>(0,l.get)(e,`${v}.${t}`,s),selectLinkParams:e=>(0,l.get)(e,v,{})});S.selectLink=(0,u.createSelector)([S.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,k.addQueryArgs)(t,{...e,...s}))),x.actions,x.reducer;const E=(0,u.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:n,description:i})=>({payload:{id:e||(0,u.nanoid)(),variant:t,size:s,title:n||"",description:i}})},removeNotification:(e,{payload:t})=>(0,l.omit)(e,t)}}),R=(E.getInitialState,E.actions,E.reducer,"pluginUrl"),C=(0,u.createSlice)({name:R,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),T=(C.getInitialState,{selectPluginUrl:e=>(0,l.get)(e,R,"")});T.selectImageLink=(0,u.createSelector)([T.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,l.trimEnd)(e,"/"),(0,l.trim)(t,"/"),(0,l.trimStart)(s,"/")].join("/"))),C.actions,C.reducer;const A="wistiaEmbedPermission",P=(0,u.createSlice)({name:A,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${A}/request`,(e=>{e.status="loading"})),e.addCase(`${A}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${A}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,l.get)(t,"error.code",500),message:(0,l.get)(t,"error.message","Unknown")}}))}}),O=(P.getInitialState,P.actions,{[A]:async({payload:e})=>y()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:Boolean(e)}})});var I;P.reducer;const M=(0,u.createSlice)({name:"documentTitle",initialState:(0,l.defaultTo)(null===(I=document)||void 0===I?void 0:I.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}});function D({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}function B({query:e,postId:t}){return new Promise((s=>{wpseoApi.get("meta/search",{query:e,post_id:t},(e=>{s(e.meta)}))}))}M.getInitialState,M.actions,M.reducer;const F=async({countryCode:e,keyphrase:t})=>(y()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}}),y()({path:(0,k.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:e})})),L=O[A];var U=s(2322),$=s.n(U);function j(){return window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor}const N=window.yoast.analysis,Y=window.wp.isShallowEqual,z=window.wp.api;var q={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},K=function(e,t,s){this.placeholder=e,this.replacement=t,this.options=(0,l.defaults)(s,q)};K.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},K.prototype.setSource=function(e){this.options.source=e},K.prototype.hasScope=function(){return!(0,l.isEmpty)(this.options.scope)},K.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},K.prototype.inScope=function(e){return!this.hasScope()||(0,l.indexOf)(this.options.scope,e)>-1},K.prototype.hasAlias=function(){return!(0,l.isEmpty)(this.options.aliases)},K.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},K.prototype.getAliases=function(){return this.options.aliases};const V=K,{removeReplacementVariable:Q,updateReplacementVariable:W,refreshSnippetEditor:Z}=d.actions;var H=["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"],G={},J={},X=function(e,t){this._app=e,this._app.registerPlugin("replaceVariablePlugin",{status:"ready"}),this._store=t,this.replaceVariables=this.replaceVariables.bind(this),this.registerReplacements(),this.registerModifications(),this.registerEvents(),this.subscribeToGutenberg()};X.prototype.registerReplacements=function(){this.addReplacement(new V("%%author_first_name%%","author_first_name")),this.addReplacement(new V("%%author_last_name%%","author_last_name")),this.addReplacement(new V("%%category%%","category")),this.addReplacement(new V("%%category_title%%","category_title")),this.addReplacement(new V("%%currentdate%%","currentdate")),this.addReplacement(new V("%%currentday%%","currentday")),this.addReplacement(new V("%%currentmonth%%","currentmonth")),this.addReplacement(new V("%%currenttime%%","currenttime")),this.addReplacement(new V("%%currentyear%%","currentyear")),this.addReplacement(new V("%%date%%","date")),this.addReplacement(new V("%%id%%","id")),this.addReplacement(new V("%%page%%","page")),this.addReplacement(new V("%%permalink%%","permalink")),this.addReplacement(new V("%%post_content%%","post_content")),this.addReplacement(new V("%%post_month%%","post_month")),this.addReplacement(new V("%%post_year%%","post_year")),this.addReplacement(new V("%%searchphrase%%","searchphrase")),this.addReplacement(new V("%%sitedesc%%","sitedesc")),this.addReplacement(new V("%%sitename%%","sitename")),this.addReplacement(new V("%%userid%%","userid")),this.addReplacement(new V("%%focuskw%%","keyword",{source:"app",aliases:["%%keyword%%"]})),this.addReplacement(new V("%%term_description%%","text",{source:"app",scope:["term","category","tag"],aliases:["%%tag_description%%","%%category_description%%"]})),this.addReplacement(new V("%%term_title%%","term_title",{scope:["term"]})),this.addReplacement(new V("%%term_hierarchy%%","term_hierarchy",{scope:["term"]})),this.addReplacement(new V("%%title%%","title",{source:"app",scope:["post","term","page"]})),this.addReplacement(new V("%%parent_title%%","title",{source:"app",scope:["page","category"]})),this.addReplacement(new V("%%excerpt%%","excerpt",{source:"app",scope:["post"],aliases:["%%excerpt_only%%"]})),this.addReplacement(new V("%%primary_category%%","primaryCategory",{source:"app",scope:["post"]})),this.addReplacement(new V("%%sep%%(\\s*%%sep%%)*","sep"))},X.prototype.registerEvents=function(){const e=wpseoScriptData.analysis.plugins.replaceVars.scope;"post"===e&&jQuery(".categorydiv").each(this.bindTaxonomyEvents.bind(this)),"post"!==e&&"page"!==e||jQuery("#postcustomstuff > #list-table").each(this.bindFieldEvents.bind(this))},X.prototype.subscribeToGutenberg=function(){if(!j())return;const e={0:""};let t=null;const s=wp.data;s.subscribe((()=>{const n=s.select("core/editor").getEditedPostAttribute("parent");if(void 0!==n&&t!==n)return t=n,n<1?(this._currentParentPageTitle="",void this.declareReloaded()):(0,l.isUndefined)(e[n])?void z.loadPromise.done((()=>{new z.models.Page({id:n}).fetch().then((t=>{this._currentParentPageTitle=t.title.rendered,e[n]=this._currentParentPageTitle,this.declareReloaded()})).fail((()=>{this._currentParentPageTitle="",this.declareReloaded()}))})):(this._currentParentPageTitle=e[n],void this.declareReloaded())}))},X.prototype.addReplacement=function(e){G[e.placeholder]=e},X.prototype.removeReplacement=function(e){delete G[e.getPlaceholder()]},X.prototype.registerModifications=function(){var e=this.replaceVariables.bind(this);(0,l.forEach)(H,function(t){this._app.registerModification(t,e,"replaceVariablePlugin",10)}.bind(this))},X.prototype.replaceVariables=function(e){return(0,l.isUndefined)(e)||(e=this.parentReplace(e),e=this.replaceCustomTaxonomy(e),e=this.replaceByStore(e),e=this.replacePlaceholders(e)),e},X.prototype.replaceByStore=function(e){const t=this._store.getState().snippetEditor.replacementVariables;return(0,l.forEach)(t,(t=>{""!==t.value&&(e=e.replace("%%"+t.name+"%%",t.value))})),e},X.prototype.getReplacementSource=function(e){return"app"===e.source?this._app.rawData:"direct"===e.source?"direct":wpseoScriptData.analysis.plugins.replaceVars.replace_vars},X.prototype.getReplacement=function(e){var t=this.getReplacementSource(e.options);return!1===e.inScope(wpseoScriptData.analysis.plugins.replaceVars.scope)?"":"direct"===t?e.replacement:t[e.replacement]||""},X.prototype.replacePlaceholders=function(e){return(0,l.forEach)(G,function(t){e=e.replace(new RegExp(t.getPlaceholder(!0),"g"),this.getReplacement(t))}.bind(this)),e},X.prototype.declareReloaded=function(){this._app.pluginReloaded("replaceVariablePlugin"),this._store.dispatch(Z())},X.prototype.getCategoryName=function(e){var t=e.parent("label").clone();return t.children().remove(),t.text().trim()},X.prototype.parseTaxonomies=function(e,t){(0,l.isUndefined)(J[t])&&(J[t]={});const s=[];(0,l.forEach)(e,function(e){const n=(e=jQuery(e)).val(),i=this.getCategoryName(e),o=e.prop("checked");J[t][n]={label:i,checked:o},o&&-1===s.indexOf(i)&&s.push(i)}.bind(this)),"category"!==t&&(t="ct_"+t),this._store.dispatch(W(t,s.join(", ")))},X.prototype.getAvailableTaxonomies=function(e){var t=jQuery(e).find("input[type=checkbox]"),s=jQuery(e).attr("id").replace("taxonomy-","");t.length>0&&this.parseTaxonomies(t,s),this.declareReloaded()},X.prototype.bindTaxonomyEvents=function(e,t){(t=jQuery(t)).on("wpListAddEnd",".categorychecklist",this.getAvailableTaxonomies.bind(this,t)),t.on("change","input[type=checkbox]",this.getAvailableTaxonomies.bind(this,t)),this.getAvailableTaxonomies(t)},X.prototype.replaceCustomTaxonomy=function(e){return(0,l.forEach)(J,function(t,s){var n="%%ct_"+s+"%%";"category"===s&&(n="%%"+s+"%%"),e=e.replace(n,this.getTaxonomyReplaceVar(s))}.bind(this)),e},X.prototype.getTaxonomyReplaceVar=function(e){var t=[],s=J[e];return!0===(0,l.isUndefined)(s)?"":((0,l.forEach)(s,(function(e){!1!==e.checked&&t.push(e.label)})),jQuery.uniqueSort(t).join(", "))},X.prototype.parseFields=function(e){jQuery(e).each(function(e,t){var s=jQuery("#"+t.id+"-key").val(),n=jQuery("#"+t.id+"-value").val();const i="cf_"+this.sanitizeCustomFieldNames(s),o=s+" (custom field)";this._store.dispatch(W(i,n,o)),this.addReplacement(new V(`%%${i}%%`,n,{source:"direct"}))}.bind(this))},X.prototype.removeFields=function(e){jQuery(e).each(function(e,t){var s=jQuery("#"+t.id+"-key").val();this.removeReplacement("%%cf_"+this.sanitizeCustomFieldNames(s)+"%%")}.bind(this))},X.prototype.sanitizeCustomFieldNames=function(e){return e.replace(/\s/g,"_")},X.prototype.getAvailableFields=function(e){this.removeCustomFields();var t=jQuery(e).find("#the-list > tr:visible[id]");t.length>0&&this.parseFields(t),this.declareReloaded()},X.prototype.bindFieldEvents=function(e,t){var s=(t=jQuery(t)).find("#the-list");s.on("wpListDelEnd.wpseoCustomFields",this.getAvailableFields.bind(this,t)),s.on("wpListAddEnd.wpseoCustomFields",this.getAvailableFields.bind(this,t)),s.on("input.wpseoCustomFields",".textarea",this.getAvailableFields.bind(this,t)),s.on("click.wpseoCustomFields",".button + .updatemeta",this.getAvailableFields.bind(this,t)),this.getAvailableFields(t)},X.prototype.removeCustomFields=function(){var e=(0,l.filter)(G,(function(e,t){return t.indexOf("%%cf_")>-1}));(0,l.forEach)(e,function(e){this._store.dispatch(Q((0,l.trim)(e.placeholder,"%%"))),this.removeReplacement(e)}.bind(this))},X.prototype.parentReplace=function(e){const t=jQuery("#parent_id, #parent").eq(0);return this.hasParentTitle(t)&&(e=e.replace(/%%parent_title%%/,this.getParentTitleReplacement(t))),j()&&!(0,l.isUndefined)(this._currentParentPageTitle)&&(e=e.replace(/%%parent_title%%/,this._currentParentPageTitle)),e},X.prototype.hasParentTitle=function(e){return!(0,l.isUndefined)(e)&&!(0,l.isUndefined)(e.prop("options"))},X.prototype.getParentTitleReplacement=function(e){var t=e.find("option:selected").text();return t===(0,c.__)("(no parent)","wordpress-seo")?"":t},X.ReplaceVar=V;const ee=X,te=window.wp.blocks,se=class{constructor(e,t,s){this._registerPlugin=e,this._registerModification=t,this._refreshAnalysis=s,this._reusableBlocks={},this._selectCore=(0,p.select)("core"),this._selectCoreEditor=(0,p.select)("core/editor"),this.reusableBlockChangeListener=this.reusableBlockChangeListener.bind(this),this.parseReusableBlocks=this.parseReusableBlocks.bind(this)}register(){this._registerPlugin("YoastReusableBlocksPlugin",{status:"ready"}),this._registerModification("content",this.parseReusableBlocks,"YoastReusableBlocksPlugin",1),(0,p.subscribe)((0,l.debounce)(this.reusableBlockChangeListener,500))}reusableBlockChangeListener(){const{blocks:e}=this._selectCoreEditor.getPostEdits();if(!e)return;let t=!1;e.forEach((e=>{if(!(0,te.isReusableBlock)(e))return;const s=this.getBlockContent(e.attributes.ref);this._reusableBlocks[e.attributes.ref]?this._reusableBlocks[e.attributes.ref].content!==s&&(this._reusableBlocks[e.attributes.ref].content=s,t=!0):(this._reusableBlocks[e.attributes.ref]={id:e.attributes.ref,clientId:e.clientId,content:s},t=!0)})),t&&this._refreshAnalysis()}parseReusableBlocks(e){const t=/<!-- wp:block {"ref":(\d+)} \/-->/g;return e.match(t)?e.replace(t,((t,s)=>this._reusableBlocks[s]&&this._reusableBlocks[s].content?this._reusableBlocks[s].content:e)):e}getBlockContent(e){const t=this._selectCore.getEditedEntityRecord("postType","wp_block",e);if(t){if((0,l.isFunction)(t.content))return t.content(t);if(t.blocks)return(0,te.__unstableSerializeAndClean)(t.blocks);if(t.content)return t.content}return""}},ne=window.wp.hooks,ie="[^<>&/\\[\\]\0- =]+?",oe=new RegExp("\\["+ie+"( [^\\]]+?)?\\]","g"),re=new RegExp("\\[/"+ie+"\\]","g");class ae{constructor({registerPlugin:e,registerModification:t,pluginReady:s,pluginReloaded:n},i){this._registerModification=t,this._pluginReady=s,this._pluginReloaded=n,e("YoastShortcodePlugin",{status:"loading"}),this.bindElementEvents();const o="("+i.join("|")+")";this.shortcodesRegex=new RegExp(o,"g"),this.closingTagRegex=new RegExp("\\[\\/"+o+"\\]","g"),this.nonCaptureRegex=new RegExp("\\["+o+"[^\\]]*?\\]","g"),this.parsedShortcodes=[],this.loadShortcodes(this.declareReady.bind(this))}declareReady(){this._pluginReady("YoastShortcodePlugin"),this.registerModifications()}declareReloaded(){this._pluginReloaded("YoastShortcodePlugin")}registerModifications(){this._registerModification("content",this.replaceShortcodes.bind(this),"YoastShortcodePlugin")}removeUnknownShortCodes(e){return(e=e.replace(oe,"")).replace(re,"")}replaceShortcodes(e){return"string"==typeof e&&this.parsedShortcodes.forEach((({shortcode:t,output:s})=>{e=e.replace(t,s)})),e=this.removeUnknownShortCodes(e)}loadShortcodes(e){const t=this.getUnparsedShortcodes(this.getShortcodes(this.getContentTinyMCE()));if(!(t.length>0))return e();this.parseShortcodes(t,e)}bindElementEvents(){const e=document.querySelector(".wp-editor-area"),t=(0,l.debounce)(this.loadShortcodes.bind(this,this.declareReloaded.bind(this)),500);e&&(e.addEventListener("keyup",t),e.addEventListener("change",t)),"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(e){e.editor.on("change",t),e.editor.on("keyup",t)}))}getContentTinyMCE(){let e=document.querySelector(".wp-editor-area")?document.querySelector(".wp-editor-area").value:"";return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length&&(e=tinyMCE.get("content")?tinyMCE.get("content").getContent():""),e}getUnparsedShortcodes(e){return"object"!=typeof e?(console.error("Failed to get unparsed shortcodes. Expected parameter to be an array, instead received "+typeof e),!1):e.filter((e=>this.isUnparsedShortcode(e)))}isUnparsedShortcode(e){return!this.parsedShortcodes.some((({shortcode:t})=>t===e))}getShortcodes(e){if("string"!=typeof e)return console.error("Failed to get shortcodes. Expected parameter to be a string, instead received"+typeof e),!1;const t=this.matchCapturingShortcodes(e);t.forEach((t=>{e=e.replace(t,"")}));const s=this.matchNonCapturingShortcodes(e);return t.concat(s)}matchCapturingShortcodes(e){const t=(e.match(this.closingTagRegex)||[]).join(" ").match(this.shortcodesRegex)||[];return(0,l.flatten)(t.map((t=>{const s="\\["+t+"[^\\]]*?\\].*?\\[\\/"+t+"\\]";return e.match(new RegExp(s,"g"))||[]})))}matchNonCapturingShortcodes(e){return e.match(this.nonCaptureRegex)||[]}parseShortcodes(e,t){return"function"!=typeof t?(console.error("Failed to parse shortcodes. Expected parameter to be a function, instead received "+typeof t),!1):"object"==typeof e&&e.length>0?void jQuery.post(ajaxurl,{action:"wpseo_filter_shortcodes",_wpnonce:wpseoScriptData.analysis.plugins.shortcodes.wpseo_filter_shortcodes_nonce,data:e},function(e){this.saveParsedShortcodes(e,t)}.bind(this)):t()}saveParsedShortcodes(e,t){const s=JSON.parse(e);this.parsedShortcodes.push(...s),t()}}const le=ae,{updateShortcodesForParsing:ce}=d.actions;var pe=s(7084),de=s.n(pe);const ue=class{constructor(e,t){this._registerPlugin=e,this._registerModification=t}register(){this._registerPlugin("YoastMarkdownPlugin",{status:"ready"}),this._registerModification("content",this.parseMarkdown.bind(this),"YoastMarkdownPlugin",1)}parseMarkdown(e){return de()(e)}},he="yoastmark";function ge(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function me(e,t,s){const n=e.dom;let i=e.getContent();if(i=N.markers.removeMarks(i),(0,l.isEmpty)(s))return void e.setContent(i);i=s[0].hasPosition()?function(e,t){if(!t)return"";for(let s=(e=(0,l.orderBy)(e,(e=>e._properties.position.startOffset),["asc"])).length-1;s>=0;s--){const n=e[s];ge(n,t)||(t=n.applyWithPosition(t))}return t}(s,i):function(e,t,s,n){const{fieldsToMark:i,selectedHTML:o}=N.languageProcessing.getFieldsToMark(s,n);return(0,l.forEach)(s,(function(t){"acf_content"!==e.id&&(t._properties.marked=N.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=N.languageProcessing.normalizeHTML(t._properties.original)),i.length>0?o.forEach((e=>{const s=t.applyWithReplace(e);n=n.replace(e,s)})):n=t.applyWithReplace(n)})),n}(e,0,s,i),e.setContent(i),function(e){let t=e.getContent();t=t.replace(new RegExp("<yoastmark.+?>","g"),"").replace(new RegExp("</yoastmark>","g"),""),e.setContent(t)}(e);const o=n.select(he);(0,l.forEach)(o,(function(e){e.setAttribute("data-mce-bogus","1")}))}function fe(e){return window.test=e,me.bind(null,e)}const ye="et_pb_main_editor_wrap",we=class{static isActive(){return!!document.getElementById(ye)}static isTinyMCEHidden(){const e=document.getElementById(ye);return!!e&&e.classList.contains("et_pb_hidden")}listen(e){this.classicEditorContainer=document.getElementById(ye),this.classicEditorContainer&&new MutationObserver((t=>{(0,l.forEach)(t,(t=>{"attributes"===t.type&&"class"===t.attributeName&&(t.target.classList.contains("et_pb_hidden")?e.classicEditorHidden():e.classicEditorShown())}))})).observe(this.classicEditorContainer,{attributes:!0})}},be=class{static isActive(){return!!window.VCV_I18N}},_e={classicEditorHidden:l.noop,classicEditorShown:l.noop,pageBuilderLoaded:l.noop},ke=class{constructor(){this.determineActivePageBuilders()}determineActivePageBuilders(){we.isActive()&&(this.diviActive=!0),be.isActive()&&(this.vcActive=!0)}isPageBuilderActive(){return this.diviActive||this.vcActive}listen(e){this.callbacks=(0,l.defaults)(e,_e),this.diviActive&&(new we).listen(e)}isClassicEditorHidden(){return!(!this.diviActive||!we.isTinyMCEHidden())}};let ve;const xe="content",Se="description";function Ee(e){ve=e}function Re(){return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length}function Ce(e){if(!Re())return!1;const t=tinyMCE.get(e);return null!==t&&!t.isHidden()}function Te(e){let t="";var s;return t=!1===Ce(e)||0==(s=e,null!==document.getElementById(s+"_ifr"))?function(e){return document.getElementById(e)&&document.getElementById(e).value||""}(e):tinyMCE.get(e).getContent(),t}function Ae(e,t,s){"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(n){const i=n.editor;i.id===e&&(0,l.forEach)(t,(function(e){i.on(e,s)}))}))}function Pe(){(0,l.isUndefined)(ve)||ve.dispatch(d.actions.setMarkerStatus("disabled"))}function Oe(){(0,l.isUndefined)(ve)||ve.dispatch(d.actions.setMarkerStatus("enabled"))}function Ie(){(0,l.isUndefined)(ve)||ve.dispatch(d.actions.setMarkerPauseStatus(!0))}function Me(){(0,l.isUndefined)(ve)||ve.dispatch(d.actions.setMarkerPauseStatus(!1))}function De(){const e=document.getElementById("wp-content-wrap");return!!e&&e.classList.contains("html-active")}function Be(){De()&&(Pe(),Re()&&tinyMCE.on("AddEditor",(function(){Oe()})))}function Fe(e,t){Ae(t,["input","change","cut","paste"],e),Ae(t,["hide"],Pe);const s=["show"];(new ke).isPageBuilderActive()||s.push("init"),Ae(t,s,Oe),Ae("content",["focus"],(function(e){const t=e.target;(function(e){return-1!==e.getContent({format:"raw"}).indexOf("<"+he)})(t)&&(function(e){fe(e)(null,[])}(t),YoastSEO.app.disableMarkers()),Ie()})),Ae("content",["blur"],(function(){Me()}))}class Le{constructor(e){this.refresh=e,this.loaded=!1,this.preloadThreshold=3e3,this.plugins={},this.modifications={},this._registerPlugin=this._registerPlugin.bind(this),this._ready=this._ready.bind(this),this._reloaded=this._reloaded.bind(this),this._registerModification=this._registerModification.bind(this),this._registerAssessment=this._registerAssessment.bind(this),this._applyModifications=this._applyModifications.bind(this),setTimeout(this._pollLoadingPlugins.bind(this),1500)}_registerPlugin(e,t){return(0,l.isString)(e)?(0,l.isUndefined)(t)||(0,l.isObject)(t)?!1===this._validateUniqueness(e)?(console.error("Failed to register plugin. Plugin with name "+e+" already exists"),!1):(this.plugins[e]=t,!0):(console.error("Failed to register plugin "+e+". Expected parameters `options` to be a object."),!1):(console.error("Failed to register plugin. Expected parameter `pluginName` to be a string."),!1)}_ready(e){return(0,l.isString)(e)?(0,l.isUndefined)(this.plugins[e])?(console.error("Failed to modify status for plugin "+e+". The plugin was not properly registered."),!1):(this.plugins[e].status="ready",!0):(console.error("Failed to modify status for plugin "+e+". Expected parameter `pluginName` to be a string."),!1)}_reloaded(e){return(0,l.isString)(e)?(0,l.isUndefined)(this.plugins[e])?(console.error("Failed to reload Content Analysis for plugin "+e+". The plugin was not properly registered."),!1):(this.refresh(),!0):(console.error("Failed to reload Content Analysis for "+e+". Expected parameter `pluginName` to be a string."),!1)}_registerModification(e,t,s,n){if(!(0,l.isString)(e))return console.error("Failed to register modification for plugin "+s+". Expected parameter `modification` to be a string."),!1;if(!(0,l.isFunction)(t))return console.error("Failed to register modification for plugin "+s+". Expected parameter `callable` to be a function."),!1;if(!(0,l.isString)(s))return console.error("Failed to register modification for plugin "+s+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(s))return console.error("Failed to register modification for plugin "+s+". The integration has not finished loading yet."),!1;const i={callable:t,origin:s,priority:(0,l.isNumber)(n)?n:10};return(0,l.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(i),!0}_registerAssessment(e,t,s,n){return(0,l.isString)(t)?(0,l.isObject)(s)?(0,l.isString)(n)?(t=n+"-"+t,e.addAssessment(t,s),!0):(console.error("Failed to register assessment for plugin "+n+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+n+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+n+". Expected parameter `name` to be a string."),!1)}_applyModifications(e,t,s){let n=this.modifications[e];return!(0,l.isArray)(n)||n.length<1||(n=this._stripIllegalModifications(n),n.sort(((e,t)=>e.priority-t.priority)),(0,l.forEach)(n,(function(n){const i=n.callable(t,s);typeof i==typeof t?t=i:console.error("Modification with name "+e+" performed by plugin with name "+n.origin+" was ignored because the data that was returned by it was of a different type than the data we had passed it.")}))),t}_pollLoadingPlugins(e){e=(0,l.isUndefined)(e)?0:e,!0===this._allReady()?(this.loaded=!0,this.refresh()):e>=this.preloadThreshold?(this._pollTimeExceeded(),this.loaded=!0,this.refresh()):(e+=50,setTimeout(this._pollLoadingPlugins.bind(this,e),50))}_allReady(){return(0,l.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}_pollTimeExceeded(){(0,l.forEach)(this.plugins,(function(e,t){(0,l.isUndefined)(e.options)||"ready"===e.options.status||(console.error("Error: Plugin "+t+". did not finish loading in time."),delete this.plugins[t])}))}_stripIllegalModifications(e){return(0,l.forEach)(e,((t,s)=>{!1===this._validateOrigin(t.origin)&&delete e[s]})),e}_validateOrigin(e){return"ready"===this.plugins[e].status}_validateUniqueness(e){return(0,l.isUndefined)(this.plugins[e])}}function Ue(e,t,s){e("morphology",new N.Paper("",{keyword:s})).then((e=>{const s=e.result.keyphraseForms;t.dispatch(d.actions.updateWordsToHighlight((0,l.uniq)((0,l.flatten)(s))))})).catch((()=>{t.dispatch(d.actions.updateWordsToHighlight([]))}))}var $e="score-text",je="image yoast-logo svg",Ne=jQuery;function Ye(e,t,s=null){var n,i,o,r,a;if(null!==s)return(0,l.get)(s,t,"");const d=(0,p.select)("yoast-seo/editor").getIsPremium(),u={na:(0,c.__)("Not available","wordpress-seo"),bad:(0,c.__)("Needs improvement","wordpress-seo"),ok:(0,c.__)("OK","wordpress-seo"),good:(0,c.__)("Good","wordpress-seo")},h={keyword:{label:d?(0,c.__)("Premium SEO analysis:","wordpress-seo"):(0,c.__)("SEO analysis:","wordpress-seo"),anchor:"yoast-seo-analysis-collapsible-metabox",status:u},content:{label:(0,c.__)("Readability analysis:","wordpress-seo"),anchor:"yoast-readability-analysis-collapsible-metabox",status:u},"inclusive-language":{label:(0,c.__)("Inclusive language:","wordpress-seo"),anchor:"yoast-inclusive-language-analysis-collapsible-metabox",status:{...u,ok:(0,c.__)("Potentially non-inclusive","wordpress-seo")}}};return null!=h&&null!==(n=h[e])&&void 0!==n&&null!==(i=n.status)&&void 0!==i&&i[t]?`<a href="#${null===(o=h[e])||void 0===o?void 0:o.anchor}">${null===(r=h[e])||void 0===r?void 0:r.label}</a> <strong>${null===(a=h[e])||void 0===a?void 0:a.status[t]}</strong>`:""}function ze(e,t,s=null){var n=Ne("#"+e+"-score"),i=je+" "+t;n.children(".image").attr("class",i);var o=Ye(e,t,s);n.children("."+$e).html(o)}function qe(e,t,s=null){const n=Ne("<div />",{class:"misc-pub-section yoast yoast-seo-score "+e+"-score",id:e+"-score"}),i=Ne("<span />",{class:$e,html:Ye(e,t,s)}),o=Ne("<span>").attr("class",je+" na");n.append(o).append(i),Ne("#yoast-seo-publishbox-section").append(n)}function Ke(e){const t=Ne("#wpadminbar"),s=Ne(e);if(!t||!s)return;const n="fixed"===t.css("position")?t.height():0;Ne([document.documentElement,document.body]).animate({scrollTop:s.offset().top-n},1e3),s.trigger("focus"),0===s.parent().siblings().length&&s.trigger("click")}function Ve(){var e="na";wpseoScriptData.metabox.keywordAnalysisActive&&qe("keyword",e),wpseoScriptData.metabox.contentAnalysisActive&&qe("content",e),wpseoScriptData.metabox.inclusiveLanguageAnalysisActive&&qe("inclusive-language",e),Ne("#content-score").on("click","[href='#yoast-readability-analysis-collapsible-metabox']",(function(e){e.preventDefault(),document.querySelector("#wpseo-meta-tab-readability").click(),Ke("#wpseo-meta-section-readability")})),Ne("#keyword-score").on("click","[href='#yoast-seo-analysis-collapsible-metabox']",(function(e){e.preventDefault(),document.querySelector("#wpseo-meta-tab-content").click(),Ke("#yoast-seo-analysis-collapsible-metabox")})),Ne("#inclusive-language-score").on("click","[href='#yoast-inclusive-language-analysis-collapsible-metabox']",(function(e){e.preventDefault(),document.querySelector("#wpseo-meta-tab-inclusive-language").click(),Ke("#wpseo-meta-section-inclusive-language")}))}function Qe(e){var t=jQuery(".yst-traffic-light"),s=t.closest(".wpseo-meta-section-link"),n=jQuery("#wpseo-traffic-light-desc"),i=e.className||"na";t.attr("class","yst-traffic-light "+i),s.attr("aria-describedby","wpseo-traffic-light-desc"),n.length>0?n.text(e.screenReaderText):s.closest("li").append("<span id='wpseo-traffic-light-desc' class='screen-reader-text'>"+e.screenReaderText+"</span>")}function We(e){jQuery("#wp-admin-bar-wpseo-menu .wpseo-score-icon").attr("title",e.screenReaderText).attr("class","wpseo-score-icon "+e.className).find(".wpseo-score-text").text(e.screenReaderText)}function Ze(){return(0,l.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}function He(){const e=Ze();return(0,l.get)(e,"contentLocale","en_US")}function Ge(){const e=Ze();return!0===(0,l.get)(e,"contentAnalysisActive",!1)}function Je(){const e=Ze();return!0===(0,l.get)(e,"keywordAnalysisActive",!1)}function Xe(){const e=Ze();return!0===(0,l.get)(e,"inclusiveLanguageAnalysisActive",!1)}const et=window.yoast.featureFlag;function tt(){}let st=!1;function nt(e){return e.sort(((e,t)=>e._identifier.localeCompare(t._identifier)))}function it(e,t,s,n,i){if(!st)return;const o=N.Paper.parse(t());e.analyze(o).then((r=>{const{result:{seo:a,readability:l,inclusiveLanguage:c}}=r;if(a){const e=a[""];e.results.forEach((e=>{e.getMarker=()=>()=>s(o,e.marks)})),e.results=nt(e.results),n.dispatch(d.actions.setSeoResultsForKeyword(o.getKeyword(),e.results)),n.dispatch(d.actions.setOverallSeoScore(e.score,o.getKeyword())),n.dispatch(d.actions.refreshSnippetEditor()),i.saveScores(e.score,o.getKeyword())}l&&(l.results.forEach((e=>{e.getMarker=()=>()=>s(o,e.marks)})),l.results=nt(l.results),n.dispatch(d.actions.setReadabilityResults(l.results)),n.dispatch(d.actions.setOverallReadabilityScore(l.score)),n.dispatch(d.actions.refreshSnippetEditor()),i.saveContentScore(l.score)),c&&(c.results.forEach((e=>{e.getMarker=()=>()=>s(o,e.marks)})),c.results=nt(c.results),n.dispatch(d.actions.setInclusiveLanguageResults(c.results)),n.dispatch(d.actions.setOverallInclusiveLanguageScore(c.score)),n.dispatch(d.actions.refreshSnippetEditor()),i.saveInclusiveLanguageScore(c.score)),(0,ne.doAction)("yoast.analysis.refresh",r,{paper:o,worker:e,collectData:t,applyMarks:s,store:n,dataCollector:i})})).catch(tt)}const ot="yoast-measurement-element";function rt(e){let t=document.getElementById(ot);return t||(t=function(){const e=document.createElement("div");return e.id=ot,e.style.position="absolute",e.style.left="-9999em",e.style.top=0,e.style.height=0,e.style.overflow="hidden",e.style.fontFamily="arial, sans-serif",e.style.fontSize="20px",e.style.fontWeight="400",document.body.appendChild(e),e}()),t.innerText=e,t.offsetWidth}const at=e=>(e=e.filter((e=>e.isValid))).map((e=>{const t=(0,te.serialize)([e],{isInnerBlocks:!1});return e.blockLength=t&&t.length,e.innerBlocks&&(e.innerBlocks=at(e.innerBlocks)),e}));function lt(e){return(0,l.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,c.__)("Not available","wordpress-seo"),screenReaderReadabilityText:(0,c.__)("Not available","wordpress-seo"),screenReaderInclusiveLanguageText:(0,c.__)("Not available","wordpress-seo")};case"bad":return{className:"bad",screenReaderText:(0,c.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,c.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,c.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,c.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,c.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,c.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,c.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,c.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,c.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(N.interpreters.scoreToRating(e))}const{tmceId:ct}=t,pt=jQuery,dt=function(e){"object"==typeof CKEDITOR&&console.warn("YoastSEO currently doesn't support ckEditor. The content analysis currently only works with the HTML editor or TinyMCE."),this._data=e.data,this._store=e.store};dt.prototype.getData=function(){const e=this._data.getData(),t=this._store.getState();return{keyword:Je()?this.getKeyword():"",meta:this.getMeta(),text:e.content,title:e.title,url:e.slug,excerpt:e.excerpt,snippetTitle:this.getSnippetTitle(),snippetMeta:this.getSnippetMeta(),snippetCite:this.getSnippetCite(),primaryCategory:this.getPrimaryCategory(),searchUrl:this.getSearchUrl(),postUrl:this.getPostUrl(),permalink:this.getPermalink(),titleWidth:rt(this.getSnippetTitle()),metaTitle:(0,l.get)(t,["analysisData","snippet","title"],this.getSnippetTitle()),url:(0,l.get)(t,["snippetEditor","data","slug"],e.slug),meta:this.getMetaDescForAnalysis(t)}},dt.prototype.getKeyword=function(){return document.getElementById("yoast_wpseo_focuskw")&&document.getElementById("yoast_wpseo_focuskw").value||""},dt.prototype.getMetaDescForAnalysis=function(e){let t=(0,l.get)(e,["analysisData","snippet","description"],this.getSnippetMeta());return""!==wpseoScriptData.metabox.metaDescriptionDate&&(t=wpseoScriptData.metabox.metaDescriptionDate+" - "+t),t},dt.prototype.getMeta=function(){return document.getElementById("yoast_wpseo_metadesc")&&document.getElementById("yoast_wpseo_metadesc").value||""},dt.prototype.getText=function(){return N.markers.removeMarks(Te(ct))},dt.prototype.getTitle=function(){return document.getElementById("title")&&document.getElementById("title").value||""},dt.prototype.getUrl=function(){const e=(0,p.select)("core/editor");if(e&&e.getCurrentPostAttribute("slug"))return e.getCurrentPostAttribute("slug");var t="",s=pt("#new-post-slug");return 0<s.length?t=s.val():null!==document.getElementById("editable-post-name-full")&&(t=document.getElementById("editable-post-name-full").textContent),t},dt.prototype.getExcerpt=function(){var e="";return null!==document.getElementById("excerpt")&&(e=document.getElementById("excerpt")&&document.getElementById("excerpt").value||""),e},dt.prototype.getSnippetTitle=function(){return document.getElementById("yoast_wpseo_title")&&document.getElementById("yoast_wpseo_title").value||""},dt.prototype.getSnippetMeta=function(){return document.getElementById("yoast_wpseo_metadesc")&&document.getElementById("yoast_wpseo_metadesc").value||""},dt.prototype.getSnippetCite=function(){return this.getUrl()||""},dt.prototype.getPrimaryCategory=function(){var e="",t=pt("#category-all").find("ul.categorychecklist"),s=t.find("li input:checked");if(1===s.length)return this.getCategoryName(s.parent());var n=t.find(".wpseo-primary-term > label");return n.length?e=this.getCategoryName(n):e},dt.prototype.getSearchUrl=function(){return wpseoScriptData.metabox.search_url},dt.prototype.getPostUrl=function(){return wpseoScriptData.metabox.post_edit_url},dt.prototype.getPermalink=function(){var e=this.getUrl();return wpseoScriptData.metabox.base_url+e},dt.prototype.getCategoryName=function(e){var t=e.clone();return t.children().remove(),t.text().trim()},dt.prototype.setDataFromSnippet=function(e,t){switch(t){case"snippet_meta":document.getElementById("yoast_wpseo_metadesc").value=e;break;case"snippet_cite":if(this.leavePostNameUntouched)return void(this.leavePostNameUntouched=!1);null!==document.getElementById("post_name")&&(document.getElementById("post_name").value=e),null!==document.getElementById("editable-post-name")&&null!==document.getElementById("editable-post-name-full")&&(document.getElementById("editable-post-name").textContent=e,document.getElementById("editable-post-name-full").textContent=e);break;case"snippet_title":document.getElementById("yoast_wpseo_title").value=e}},dt.prototype.saveSnippetData=function(e){this.setDataFromSnippet(e.title,"snippet_title"),this.setDataFromSnippet(e.urlPath,"snippet_cite"),this.setDataFromSnippet(e.metaDesc,"snippet_meta")},dt.prototype.bindElementEvents=function(e){this.inputElementEventBinder(e),this.changeElementEventBinder(e)},dt.prototype.changeElementEventBinder=function(e){for(var t=["#yoast-wpseo-primary-category",'.categorychecklist input[name="post_category[]"]'],s=0;s<t.length;s++)pt(t[s]).on("change",e)},dt.prototype.inputElementEventBinder=function(e){for(var t=["excerpt","content","title"],s=0;s<t.length;s++)null!==document.getElementById(t[s])&&document.getElementById(t[s]).addEventListener("input",e);Fe(e,ct)},dt.prototype.saveScores=function(e,t){var s=lt(e);ze("content",s.className),document.getElementById("yoast_wpseo_linkdex").value=e,""===t&&(s.className="na",s.screenReaderText=(0,c.__)("Enter a focus keyphrase to calculate the SEO score","wordpress-seo")),Qe(s),We(s),ze("keyword",s.className),jQuery(window).trigger("YoastSEO:numericScore",e)},dt.prototype.saveContentScore=function(e){var t=lt(e);ze("content",t.className),Je()||(Qe(t),We(t)),pt("#yoast_wpseo_content_score").val(e)},dt.prototype.saveInclusiveLanguageScore=function(e){const t=lt(e);ze("inclusive-language",t.className),Je()||Ge()||(Qe(t),We(t)),pt("#yoast_wpseo_inclusive_language_score").val(e)};const ut=dt;class ht{constructor(){this._callbacks=[],this.register=this.register.bind(this)}register(e){(0,l.isFunction)(e)&&this._callbacks.push(e)}getData(){let e={};return this._callbacks.forEach((t=>{e=(0,l.merge)(e,t())})),e}}window.wp.annotations;const gt=function(e){return(0,l.uniq)((0,l.flatten)(e.map((e=>{if(!(0,l.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()}))))},mt=window.wp.richText,ft=/(<([a-z]|\/)[^<>]+>)/gi,{htmlEntitiesRegex:yt}=N.helpers.htmlEntities,wt=e=>{let t=0;return(0,l.forEachRight)(e,(e=>{const[s]=e;let n=s.length;/^<\/?br/.test(s)&&(n-=1),t+=n})),t},bt="<yoastmark class='yoast-text-mark'>",_t="</yoastmark>",kt='<yoastmark class="yoast-text-mark">';function vt(e,t,s,n,i){const o=n.clientId,r=(0,mt.create)({html:e,multilineTag:s.multilineTag,multilineWrapperTag:s.multilineWrapperTag}).text;return(0,l.flatMap)(i,(s=>{let i;return i=s.hasBlockPosition&&s.hasBlockPosition()?function(e,t,s,n,i){if(t===e.getBlockClientId()){let t=e.getBlockPositionStart(),o=e.getBlockPositionEnd();if(e.isMarkForFirstBlockSection()){const e=((e,t,s)=>{const n="yoast/faq-block"===s?'<strong class="schema-faq-question">':'<strong class="schema-how-to-step-name">';return{blockStartOffset:e-=n.length,blockEndOffset:t-=n.length}})(t,o,s);t=e.blockStartOffset,o=e.blockEndOffset}if(n.slice(t,o)===i.slice(t,o))return[{startOffset:t,endOffset:o}];const r=((e,t,s)=>{const n=s.slice(0,e),i=s.slice(0,t),o=((e,t,s,n)=>{const i=[...e.matchAll(ft)];s-=wt(i);const o=[...t.matchAll(ft)];return{blockStartOffset:s,blockEndOffset:n-=wt(o)}})(n,i,e,t),r=((e,t,s,n)=>{let i=[...e.matchAll(yt)];return(0,l.forEachRight)(i,(e=>{const[,t]=e;s-=t.length})),i=[...t.matchAll(yt)],(0,l.forEachRight)(i,(e=>{const[,t]=e;n-=t.length})),{blockStartOffset:s,blockEndOffset:n}})(n,i,e=o.blockStartOffset,t=o.blockEndOffset);return{blockStartOffset:e=r.blockStartOffset,blockEndOffset:t=r.blockEndOffset}})(t,o,n);return[{startOffset:r.blockStartOffset,endOffset:r.blockEndOffset}]}return[]}(s,o,n.name,e,r):function(e,t){const s=t.getOriginal().replace(/(<([^>]+)>)/gi,""),n=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),i=function(e,t,s=!0){const n=[];if(0===e.length)return n;let i,o=0;for(s||(t=t.toLowerCase(),e=e.toLowerCase());(i=e.indexOf(t,o))>-1;)n.push(i),o=i+t.length;return n}(e,s);if(0===i.length)return[];const o=function(e){let t=e.indexOf(bt);const s=t>=0;s||(t=e.indexOf(kt));let n=null;const i=[];for(;t>=0;){if(n=(e=s?e.replace(bt,""):e.replace(kt,"")).indexOf(_t),n<t)return[];e=e.replace(_t,""),i.push({startOffset:t,endOffset:n}),t=s?e.indexOf(bt):e.indexOf(kt),n=null}return i}(n),r=[];return o.forEach((e=>{i.forEach((n=>{const i=n+e.startOffset;let o=n+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(o=n+s.length),r.push({startOffset:i,endOffset:o})}))})),r}(r,s),i?i.map((e=>({...e,block:o,richTextIdentifier:t}))):[]}))}const xt=e=>e[0].toUpperCase()+e.slice(1),St=(e,t,s,n,i)=>(e=e.map((e=>{const o=`${e.id}-${i[0]}`,r=`${e.id}-${i[1]}`,a=xt(i[0]),l=xt(i[1]),c=e[`json${a}`],p=e[`json${l}`],{marksForFirstSection:d,marksForSecondSection:u}=((e,t)=>({marksForFirstSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&e.isMarkForFirstBlockSection():e)),marksForSecondSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&!e.isMarkForFirstBlockSection():e))}))(t,e),h=vt(c,o,s,n,d),g=vt(p,r,s,n,u);return h.concat(g)})),(0,l.flattenDeep)(e)),Et="yoast";let Rt=[];const Ct={"core/paragraph":[{key:"content"}],"core/list":[{key:"values",multilineTag:"li",multilineWrapperTag:["ul","ol"]}],"core/list-item":[{key:"content"}],"core/heading":[{key:"content"}],"core/audio":[{key:"caption"}],"core/embed":[{key:"caption"}],"core/gallery":[{key:"caption"}],"core/image":[{key:"caption"}],"core/table":[{key:"caption"}],"core/video":[{key:"caption"}],"yoast/faq-block":[{key:"questions"}],"yoast/how-to-block":[{key:"steps"},{key:"jsonDescription"}]};function Tt(){const e=Rt.shift();e&&((0,p.dispatch)("core/annotations").__experimentalAddAnnotation(e),At())}function At(){(0,l.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(Tt,{timeout:1e3}):setTimeout(Tt,150)}const Pt=(e,t)=>{return(0,l.flatMap)((s=e.name,Ct.hasOwnProperty(s)?Ct[s]:[]),(s=>"yoast/faq-block"===e.name?((e,t,s)=>{const n=t.attributes[e.key];return 0===n.length?[]:St(n,s,e,t,["question","answer"])})(s,e,t):"yoast/how-to-block"===e.name?((e,t,s)=>{const n=t.attributes[e.key];if(n&&0===n.length)return[];const i=[];return"steps"===e.key&&i.push(St(n,s,e,t,["name","text"])),"jsonDescription"===e.key&&(s=s.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?!e.getBlockAttributeId():e)),i.push(vt(n,"description",e,t,s))),(0,l.flattenDeep)(i)})(s,e,t):function(e,t,s){const n=e.key,i=((e,t)=>{const s=e.attributes[t];return"string"==typeof s?s:(s||"").toString()})(t,n);return vt(i,n,e,t,s)}(s,e,t)));var s};function Ot(e,t){return(0,l.flatMap)(e,(e=>{const s=function(e){return e.innerBlocks.length>0}(e)?Ot(e.innerBlocks,t):[];return Pt(e,t).concat(s)}))}function It(e){Rt=[],(0,p.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource(Et);const t=gt(e);if(0===e.length)return;let s=(0,p.select)("core/block-editor").getBlocks();var n;t.length>0&&(s=s.filter((e=>t.some((t=>"core/"+t===e.name))))),n=Ot(s,e),Rt=n.map((e=>({blockClientId:e.block,source:Et,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}))),At()}function Mt(e,t){let s;Ce(xe)&&((0,l.isUndefined)(s)&&(s=fe(tinyMCE.get(xe))),s(e,t)),(0,p.select)("core/block-editor")&&(0,l.isFunction)((0,p.select)("core/block-editor").getBlocks)&&(0,p.select)("core/annotations")&&(0,l.isFunction)((0,p.dispatch)("core/annotations").__experimentalAddAnnotation)&&(function(e,t){tinyMCE.editors.map((e=>fe(e))).forEach((s=>s(e,t)))}(e,t),It(t)),(0,ne.doAction)("yoast.analysis.applyMarks",t)}function Dt(){const e=(0,p.select)("yoast-seo/editor").isMarkingAvailable(),t=(0,p.select)("yoast-seo/editor").getMarkerPauseStatus();return!e||t?l.noop:Mt}var Bt=jQuery;function Ft(e,t,s,n,i){this._scriptUrl=n,this._options={usedKeywords:t.keyword_usage,usedKeywordsPostTypes:t.keyword_usage_post_types,searchUrl:t.search_url,postUrl:t.post_edit_url},this._keywordUsage=t.keyword_usage,this._usedKeywordsPostTypes=t.keyword_usage_post_types,this._postID=Bt("#post_ID, [name=tag_ID]").val(),this._taxonomy=Bt("[name=taxonomy]").val()||"",this._nonce=i,this._ajaxAction=e,this._refreshAnalysis=s,this._initialized=!1}Ft.prototype.init=function(){const{worker:e}=window.YoastSEO.analysis;this.requestKeywordUsage=(0,l.debounce)(this.requestKeywordUsage.bind(this),500),e.loadScript(this._scriptUrl).then((()=>{e.sendMessage("initialize",this._options,"used-keywords-assessment")})).then((()=>{this._initialized=!0,(0,l.isEqual)(this._options.usedKeywords,this._keywordUsage)?this._refreshAnalysis():e.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then((()=>this._refreshAnalysis()))})).catch((e=>console.error(e)))},Ft.prototype.setKeyword=function(e){(0,l.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},Ft.prototype.requestKeywordUsage=function(e){Bt.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy,nonce:this._nonce},this.updateKeywordUsage.bind(this,e),"json")},Ft.prototype.updateKeywordUsage=function(e,t){const{worker:s}=window.YoastSEO.analysis,n=t.keyword_usage,i=t.post_types;n&&(0,l.isArray)(n)&&(this._keywordUsage[e]=n,this._usedKeywordsPostTypes[e]=i,this._initialized&&s.sendMessage("updateKeywordUsage",{usedKeywords:this._keywordUsage,usedKeywordsPostTypes:this._usedKeywordsPostTypes},"used-keywords-assessment").then((()=>this._refreshAnalysis())))};const{setFocusKeyword:Lt,updateData:Ut,setCornerstoneContent:$t,refreshSnippetEditor:jt,setReadabilityResults:Nt,setSeoResultsForKeyword:Yt}=d.actions;function zt(e,s,i){if("undefined"==typeof wpseoScriptData)return;let o,r,a,c;const d=new ht;function u(e){return""===e.responseText?r.val():jQuery("<div>"+e.responseText+"</div>").find("#editable-post-name-full").text()}function h(){const e={};return Je()&&(e.output="does-not-really-exist-but-it-needs-something"),Ge()&&(e.contentOutput="also-does-not-really-exist-but-it-needs-something"),e}function g(e){(0,l.isUndefined)(e.seoAssessorPresenter)||(e.seoAssessorPresenter.render=function(){}),(0,l.isUndefined)(e.contentAssessorPresenter)||(e.contentAssessorPresenter.render=function(){},e.contentAssessorPresenter.renderIndividualRatings=function(){})}let m;function f(e,t){const s=m||"";m=e.getState().analysisData.snippet,!(0,Y.isShallowEqualObjects)(s,m)&&t()}function y(){return(0,p.select)("core/edit-post").getEditorMode()}jQuery(document).on("ajaxComplete",(function(e,t,n){if("/admin-ajax.php"===n.url.substring(n.url.length-15)&&"string"==typeof n.data&&-1!==n.data.indexOf("action=sample-permalink")){c.leavePostNameUntouched=!0;const e={slug:u(t)};s.dispatch(Ut(e))}})),function(){if(o=e("#wpseo_meta"),Ee(s),Be(),function(){const e=new ke;e.isClassicEditorHidden()&&Pe(),e.vcActive?Pe():e.listen({classicEditorHidden:()=>{Pe()},classicEditorShown:()=>{De()||Oe()}})}(),0===o.length)return;c=function(e){const t=new ut({data:e,store:s});return t.leavePostNameUntouched=!1,t}(i),Ve();const u=function(t){const s={elementTarget:[xe,"yoast_wpseo_focuskw_text_input","yoast_wpseo_metadesc","excerpt","editable-post-name","editable-post-name-full"],targets:h(),callbacks:{getData:c.getData.bind(c)},locale:wpseoScriptData.metabox.contentLocale,marker:Dt(),contentAnalysisActive:Ge(),keywordAnalysisActive:Je(),debouncedRefresh:!1,researcher:new window.yoast.Researcher.default};return Je()&&(t.dispatch(Lt(e("#yoast_wpseo_focuskw").val())),s.callbacks.saveScores=c.saveScores.bind(c),s.callbacks.updatedKeywordsResults=function(e){const s=t.getState().focusKeyword;t.dispatch(Yt(s,e)),t.dispatch(jt())}),Ge()&&(s.callbacks.saveContentScore=c.saveContentScore.bind(c),s.callbacks.updatedContentResults=function(e){t.dispatch(Nt(e)),t.dispatch(jt())}),r=e("#title"),s}(s);a=new N.App(u),window.YoastSEO=window.YoastSEO||{},window.YoastSEO.app=a,window.YoastSEO.store=s,window.YoastSEO.analysis={},window.YoastSEO.analysis.worker=function(){const e=(0,l.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=(0,N.createWorker)(e),s=(0,l.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),n=[];for(const e in s){if(!Object.prototype.hasOwnProperty.call(s,e))continue;const t=window.document.getElementById(`${e}-js-translations`);if(!t)continue;const i=t.innerHTML.slice(214),o=i.indexOf(","),r=i.slice(0,o-1);try{const e=/}}\s*\);/.exec(i).index+2,t=JSON.parse(i.slice(o+1,e));n.push([r,t])}catch(t){console.warn(`Failed to parse translation data for ${e} to send to the Yoast SEO worker`);continue}}return t.postMessage({dependencies:s,translations:n}),new N.AnalysisWorkerWrapper(t)}(),window.YoastSEO.analysis.collectData=()=>function(e,t,s,n,i){const o=(0,l.cloneDeep)(t.getState());(0,l.merge)(o,s.getData());const r=e.getData();let a=null;i&&(a=i.getBlocks()||[],a=JSON.parse(JSON.stringify(a)),a=at(a));const c={text:r.content,textTitle:r.title,keyword:o.focusKeyword,synonyms:o.synonyms,description:o.analysisData.snippet.description||o.snippetEditor.data.description,title:o.analysisData.snippet.title||o.snippetEditor.data.title,slug:o.snippetEditor.data.slug,permalink:o.settings.snippetEditor.baseUrl+o.snippetEditor.data.slug,wpBlocks:a,date:o.settings.snippetEditor.date};n.loaded&&(c.title=n._applyModifications("data_page_title",c.title),c.title=n._applyModifications("title",c.title),c.description=n._applyModifications("data_meta_desc",c.description),c.text=n._applyModifications("content",c.text),c.wpBlocks=n._applyModifications("wpBlocks",c.wpBlocks));const p=o.analysisData.snippet.filteredSEOTitle;return c.titleWidth=rt(p||o.snippetEditor.data.title),c.locale=He(),c.writingDirection=function(){let e="LTR";return Ze().isRtl&&(e="RTL"),e}(),c.shortcodes=window.wpseoScriptData.analysis.plugins.shortcodes?window.wpseoScriptData.analysis.plugins.shortcodes.wpseo_shortcode_tags:[],c.isFrontPage="1"===(0,l.get)(window,"wpseoScriptData.isFrontPage","0"),N.Paper.parse((0,ne.applyFilters)("yoast.analysis.data",c))}(i,s,d,a.pluggable,(0,p.select)("core/block-editor")),window.YoastSEO.analysis.applyMarks=(e,t)=>Dt()(e,t),window.YoastSEO.app.refresh=(0,l.debounce)((()=>it(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,s,c)),500),window.YoastSEO.app.registerCustomDataCallback=d.register,window.YoastSEO.app.pluggable=new Le(window.YoastSEO.app.refresh),window.YoastSEO.app.registerPlugin=window.YoastSEO.app.pluggable._registerPlugin,window.YoastSEO.app.pluginReady=window.YoastSEO.app.pluggable._ready,window.YoastSEO.app.pluginReloaded=window.YoastSEO.app.pluggable._reloaded,window.YoastSEO.app.registerModification=window.YoastSEO.app.pluggable._registerModification,window.YoastSEO.app.registerAssessment=(e,t,s)=>{if(!(0,l.isUndefined)(a.seoAssessor))return window.YoastSEO.app.pluggable._registerAssessment(a.defaultSeoAssessor,e,t,s)&&window.YoastSEO.app.pluggable._registerAssessment(a.cornerStoneSeoAssessor,e,t,s)},window.YoastSEO.app.changeAssessorOptions=function(e){window.YoastSEO.analysis.worker.initialize(e).catch(tt),window.YoastSEO.app.refresh()},function(e,t,s){const n=Ze();if(!n.previouslyUsedKeywordActive)return;const i=new Ft("get_focus_keyword_usage_and_post_types",n,e,(0,l.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),(0,l.get)(window,["wpseoScriptData","usedKeywordsNonce"],""));i.init();let o={};s.subscribe((()=>{const e=s.getState()||{};e.focusKeyword!==o.focusKeyword&&(o=e,i.setKeyword(e.focusKeyword))}))}(a.refresh,0,s),s.subscribe(f.bind(null,s,a.refresh)),window.YoastSEO.analyzerArgs=u,window.YoastSEO.wp={},window.YoastSEO.wp.replaceVarsPlugin=new ee(a,s),function(e,t){let s=[];s=(0,ne.applyFilters)("yoast.analysis.shortcodes",s);const n=wpseoScriptData.analysis.plugins.shortcodes.wpseo_shortcode_tags;s=s.filter((e=>n.includes(e))),s.length>0&&(t.dispatch(ce(s)),window.YoastSEO.wp.shortcodePlugin=new ae({registerPlugin:e.registerPlugin,registerModification:e.registerModification,pluginReady:e.pluginReady,pluginReloaded:e.pluginReloaded},s))}(a,s),j()&&new se(a.registerPlugin,a.registerModification,window.YoastSEO.app.refresh).register(),wpseoScriptData.metabox.markdownEnabled&&new ue(a.registerPlugin,a.registerModification).register(),window.YoastSEO.wp._tinyMCEHelper=t,Je()&&function(t){const s=lt(e("#yoast_wpseo_linkdex").val());Qe(s),We(s),t.updateScore("keyword",s.className)}(n),Ge()&&function(t){const s=lt(e("#yoast_wpseo_content_score").val());We(s),t.updateScore("content",s.className)}(n),Xe()&&function(t){const s=lt(e("#yoast_wpseo_inclusive_language_score").val());We(s),t.updateScore("inclusive-language",s.className)}(n),window.YoastSEO.analysis.worker.initialize(function(e={}){const t={locale:He(),contentAnalysisActive:Ge(),keywordAnalysisActive:Je(),inclusiveLanguageAnalysisActive:Xe(),defaultQueryParams:(0,l.get)(window,["wpseoAdminL10n","default_query_params"],{}),logLevel:(0,l.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:(0,et.enabledFeatures)()};return(0,l.merge)(t,e)}()).then((()=>{jQuery(window).trigger("YoastSEO:ready")})).catch(tt),c.bindElementEvents((0,l.debounce)((()=>it(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,s,c)),500)),g(a);const m=a.initAssessorPresenters.bind(a);a.initAssessorPresenters=function(){m(),g(a)},i.setRefresh&&i.setRefresh(a.refresh);let w={title:(b=c).getSnippetTitle(),slug:b.getSnippetCite(),description:b.getSnippetMeta()};var b;const _=function(e){const t={};if((0,l.isUndefined)(e))return t;t.title=e.title_template;const s=e.metadesc_template;return(0,l.isEmpty)(s)||(t.description=s),t}(wpseoScriptData.metabox);w=function(e,t){const s={...e};return(0,l.forEach)(t,((t,n)=>{(0,l.has)(e,n)&&""===e[n]&&(s[n]=t)})),s}(w,_),s.dispatch(Ut(w)),s.dispatch($t("1"===document.getElementById("yoast_wpseo_is_cornerstone").value));let k=s.getState().focusKeyword;Ue(window.YoastSEO.analysis.worker.runResearch,s,k);const v=(0,l.debounce)((()=>{a.refresh()}),50);let x=null;if(s.subscribe((()=>{const t=s.getState().focusKeyword;k!==t&&(k=t,Ue(window.YoastSEO.analysis.worker.runResearch,s,k),e("#yoast_wpseo_focuskw").val(k),v());const n=function(e){const t=e.getState().snippetEditor.data;return{title:t.title,slug:t.slug,description:t.description}}(s),i=function(e,t){const s={...e};return(0,l.forEach)(t,((t,n)=>{(0,l.has)(e,n)&&e[n].trim()===t&&(s[n]="")})),s}(n,_);w.title!==n.title&&c.setDataFromSnippet(i.title,"snippet_title"),w.slug!==n.slug&&c.setDataFromSnippet(i.slug,"snippet_cite"),w.description!==n.description&&c.setDataFromSnippet(i.description,"snippet_meta");const o=s.getState();x!==o.isCornerstone&&(x=o.isCornerstone,document.getElementById("yoast_wpseo_is_cornerstone").value=o.isCornerstone,a.changeAssessorOptions({useCornerstone:o.isCornerstone})),w.title=n.title,w.slug=n.slug,w.description=n.description})),j()){let e=y();(0,p.subscribe)((()=>{const t=y();t!==e&&(e=t)}))}st=!0,window.YoastSEO.app.refresh()}()}window.YoastReplaceVarPlugin=ee,window.YoastShortcodePlugin=le;const qt=window.wp.element,Kt=window.yoast.propTypes;var Vt=s.n(Kt);const Qt=window.wp.components,Wt=window.yoast.styledComponents;var Zt=s.n(Wt);const Ht=window.wp.compose,Gt=window.ReactJSXRuntime,Jt=({id:e,value:t,terms:s=[],label:n,onChange:i})=>{const o=(0,qt.useCallback)((e=>{i(parseInt(e,10))}),[i]);return(0,Gt.jsx)(Qt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,id:e,label:n,value:t,onChange:o,options:s.map((e=>({label:(0,l.unescape)(e.name),value:e.id})))})};Jt.propTypes={terms:Vt().arrayOf(Vt().shape({id:Vt().number.isRequired,name:Vt().string.isRequired})),onChange:Vt().func.isRequired,id:Vt().string.isRequired,label:Vt().string.isRequired,value:Vt().number.isRequired};const Xt=Jt,es=Zt().div` padding-top: 16px; `;class ts extends qt.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.updateReplacementVariable=this.updateReplacementVariable.bind(this);const{fieldId:t,name:s}=e.taxonomy;this.input=document.getElementById(t),e.setPrimaryTaxonomyId(s,parseInt(this.input.value,10)),this.state={selectedTerms:[],terms:[]}}componentDidMount(){this.fetchTerms()}componentDidUpdate(e,t){if(e.selectedTermIds.length<this.props.selectedTermIds.length){const t=(0,l.difference)(this.props.selectedTermIds,e.selectedTermIds)[0];if(!this.termIsAvailable(t))return void this.fetchTerms()}e.selectedTermIds!==this.props.selectedTermIds&&this.updateSelectedTerms(this.state.terms,this.props.selectedTermIds),t.selectedTerms!==this.state.selectedTerms&&this.handleSelectedTermsChange()}handleSelectedTermsChange(){const{selectedTerms:e}=this.state,{primaryTaxonomyId:t}=this.props;e.find((e=>e.id===t))||this.onChange(e.length?e[0].id:-1)}termIsAvailable(e){return!!this.state.terms.find((t=>t.id===e))}fetchTerms(){const{taxonomy:e}=this.props;e&&(this.fetchRequest=y()({path:(0,k.addQueryArgs)(`/wp/v2/${e.restBase}`,{per_page:-1,orderby:"count",order:"desc",_fields:"id,name"})}),this.fetchRequest.then((e=>{const t=this.state;this.setState({terms:e,selectedTerms:this.getSelectedTerms(e,this.props.selectedTermIds)},(()=>{0===t.terms.length&&this.state.terms.length>0&&this.updateReplacementVariable(this.props.primaryTaxonomyId)}))})))}getSelectedTerms(e,t){return e.filter((e=>t.includes(e.id)))}updateSelectedTerms(e,t){const s=this.getSelectedTerms(e,t);this.setState({selectedTerms:s})}onChange(e){const{name:t}=this.props.taxonomy;this.updateReplacementVariable(e),this.props.setPrimaryTaxonomyId(t,e),this.input.value=-1===e?"":e}updateReplacementVariable(e){if("category"!==this.props.taxonomy.name)return;const t=this.state.selectedTerms.find((t=>t.id===e));this.props.updateReplacementVariable(`primary_${this.props.taxonomy.name}`,t?t.name:"")}render(){const{primaryTaxonomyId:e,taxonomy:t,learnMoreLink:s}=this.props;if(this.state.selectedTerms.length<2)return null;const n=`yoast-primary-${t.name}-picker`;return(0,Gt.jsxs)(es,{className:"components-base-control__field",children:[(0,Gt.jsx)(Xt,{label:(0,c.sprintf)(/* translators: %s expands to the taxonomy name. */ (0,c.__)("Select the primary %s","wordpress-seo"),t.singularLabel.toLowerCase()),value:e,onChange:this.onChange,id:n,terms:this.state.selectedTerms}),(0,Gt.jsxs)(Qt.ExternalLink,{className:"yst-inline-block yst-mt-2",href:s,children:[(0,c.__)("Learn more","wordpress-seo"),(0,Gt.jsx)("span",{className:"screen-reader-text",children:(0,c.__)("Learn more about the primary category.","wordpress-seo")})]})]})}}ts.propTypes={selectedTermIds:Vt().arrayOf(Vt().number),primaryTaxonomyId:Vt().number,setPrimaryTaxonomyId:Vt().func,updateReplacementVariable:Vt().func,taxonomy:Vt().shape({name:Vt().string,fieldId:Vt().string,restBase:Vt().string,singularLabel:Vt().string}),learnMoreLink:Vt().string.isRequired},ts.defaultProps={selectedTermIds:[],primaryTaxonomyId:-1,setPrimaryTaxonomyId:l.noop,updateReplacementVariable:l.noop,taxonomy:{}};const ss=ts,ns=(0,Ht.compose)([(0,p.withSelect)(((e,t)=>{const s=e("core/editor"),n=e("yoast-seo/editor"),{taxonomy:i}=t;return{selectedTermIds:s.getEditedPostAttribute(i.restBase)||[],primaryTaxonomyId:n.getPrimaryTaxonomyId(i.name),learnMoreLink:n.selectLink("https://yoa.st/primary-category-more")}})),(0,p.withDispatch)((e=>{const{setPrimaryTaxonomyId:t,updateReplacementVariable:s}=e("yoast-seo/editor");return{setPrimaryTaxonomyId:t,updateReplacementVariable:s}}))])(ss);let is=null,os=null;const rs=Zt().div` @@ -1,5 +1,4 @@ -(()=>{var e={4184:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var i=s.apply(null,r);i&&e.push(i)}}else if("object"===a){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var o in r)n.call(r,o)&&r[o]&&e.push(o)}}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0===(r=function(){return s}.apply(t,[]))||(e.exports=r)}()},591:e=>{for(var t=[],r=0;r<256;++r)t[r]=(r+256).toString(16).substr(1);e.exports=function(e,r){var n=r||0,s=t;return[s[e[n++]],s[e[n++]],s[e[n++]],s[e[n++]],"-",s[e[n++]],s[e[n++]],"-",s[e[n++]],s[e[n++]],"-",s[e[n++]],s[e[n++]],"-",s[e[n++]],s[e[n++]],s[e[n++]],s[e[n++]],s[e[n++]],s[e[n++]]].join("")}},9176:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var r=new Uint8Array(16);e.exports=function(){return t(r),r}}else{var n=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}},3409:(e,t,r)=>{var n=r(9176),s=r(591);e.exports=function(e,t,r){var a=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||n)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[a+o]=i[o];return t||s(i)}}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.domReady;var t=r.n(e);const n=window.wp.element,s=window.yoast.uiLibrary,a=window.wp.data,i=window.lodash,o="@yoast/redirects",l=window.yoast.reduxJsToolkit,c="adminUrl",u=(0,l.createSlice)({name:c,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),d=(u.getInitialState,{selectAdminUrl:e=>(0,i.get)(e,c,"")});d.selectAdminLink=(0,l.createSelector)([d.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),u.actions,u.reducer;const p=window.wp.apiFetch;var h=r.n(p);const f="hasConsent",m=(0,l.createSlice)({name:f,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),y=(m.getInitialState,m.actions,m.reducer,window.wp.url),v="linkParams",g=(0,l.createSlice)({name:v,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),w=(g.getInitialState,{selectLinkParam:(e,t,r={})=>(0,i.get)(e,`${v}.${t}`,r),selectLinkParams:e=>(0,i.get)(e,v,{})});w.selectLink=(0,l.createSelector)([w.selectLinkParams,(e,t)=>t,(e,t,r={})=>r],((e,t,r)=>(0,y.addQueryArgs)(t,{...e,...r})));const x=g.actions,b=g.reducer,j=(0,l.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:r="default",title:n,description:s})=>({payload:{id:e||(0,l.nanoid)(),variant:t,size:r,title:n||"",description:s}})},removeNotification:(e,{payload:t})=>(0,i.omit)(e,t)}}),E=(j.getInitialState,j.actions,j.reducer,"pluginUrl"),R=(0,l.createSlice)({name:E,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),S=R.getInitialState,_={selectPluginUrl:e=>(0,i.get)(e,E,"")};_.selectImageLink=(0,l.createSelector)([_.selectPluginUrl,(e,t,r="images")=>r,(e,t)=>t],((e,t,r)=>[(0,i.trimEnd)(e,"/"),(0,i.trim)(t,"/"),(0,i.trimStart)(r,"/")].join("/")));const C=R.actions,P=R.reducer,k="request",N="success",O="error",T="idle",L="loading",M="showPlay",A="askPermission",F="isPlaying",U="wistiaEmbedPermission",B=(0,l.createSlice)({name:U,initialState:{value:!1,status:T,error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${U}/${k}`,(e=>{e.status=L})),e.addCase(`${U}/${N}`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${U}/${O}`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,i.get)(t,"error.code",500),message:(0,i.get)(t,"error.message","Unknown")}}))}}),q=(B.getInitialState,{selectWistiaEmbedPermission:e=>(0,i.get)(e,U,{value:!1,status:T}),selectWistiaEmbedPermissionValue:e=>(0,i.get)(e,[U,"value"],!1),selectWistiaEmbedPermissionStatus:e=>(0,i.get)(e,[U,"status"],T),selectWistiaEmbedPermissionError:e=>(0,i.get)(e,[U,"error"],{})}),$={...B.actions,setWistiaEmbedPermission:function*(e){yield{type:`${U}/${k}`};try{return yield{type:U,payload:e},{type:`${U}/${N}`,payload:{value:e}}}catch(t){return{type:`${U}/${O}`,payload:{error:t,value:e}}}}},I={[U]:async({payload:e})=>h()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:Boolean(e)}})},H=B.reducer;var W;const D="documentTitle",z=(0,l.createSlice)({name:D,initialState:(0,i.defaultTo)(null===(W=document)||void 0===W?void 0:W.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),V=(z.getInitialState,{selectDocumentTitle:e=>(0,i.get)(e,D,""),selectDocumentFullTitle:(e,{prefix:t=""}={})=>{const r=(0,i.get)(e,D,"");return r.startsWith(t)?r:`${t} ‹ ${r}`}}),J=(z.actions,z.reducer),Z="preferences",Y=(0,l.createSlice)({name:Z,initialState:{isRtl:!1},reducers:{}}),G={selectPreference:(e,t,r={})=>(0,i.get)(e,`${Z}.${t}`,r),selectPreferences:e=>(0,i.get)(e,Z,{})},K=Y.actions,Q=Y.reducer,X=window.yoast.styledComponents,ee=window.wp.i18n,te=window.React;var re,ne=r.n(te);function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},se.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(re||(re={}));const ae="popstate";function ie(e,t){if(!1===e||null==e)throw new Error(t)}function oe(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function le(e,t){return{usr:e.state,key:e.key,idx:t}}function ce(e,t,r,n){return void 0===r&&(r=null),se({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?de(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function ue(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function de(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var pe;function he(e,t,r){return void 0===r&&(r="/"),function(e,t,r,n){let s=Ce(("string"==typeof t?de(t):t).pathname||"/",r);if(null==s)return null;let a=fe(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=_e(s);i=Re(a[e],t,n)}return i}(e,t,r,!1)}function fe(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let s=(e,s,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:s,route:e};i.relativePath.startsWith("/")&&(ie(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let o=Oe([n,i.relativePath]),l=r.concat(i);e.children&&e.children.length>0&&(ie(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),fe(e.children,t,l,o)),(null!=e.path||e.index)&&t.push({path:o,score:Ee(o,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of me(e.path))s(e,t,r);else s(e,t)})),t}function me(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,s=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===n.length)return s?[a,""]:[a];let i=me(n.join("/")),o=[];return o.push(...i.map((e=>""===e?a:[a,e].join("/")))),s&&o.push(...i),o.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(pe||(pe={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const ye=/^:[\w-]+$/,ve=3,ge=2,we=1,xe=10,be=-2,je=e=>"*"===e;function Ee(e,t){let r=e.split("/"),n=r.length;return r.some(je)&&(n+=be),t&&(n+=ge),r.filter((e=>!je(e))).reduce(((e,t)=>e+(ye.test(t)?ve:""===t?we:xe)),n)}function Re(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,s={},a="/",i=[];for(let e=0;e<n.length;++e){let o=n[e],l=e===n.length-1,c="/"===a?t:t.slice(a.length)||"/",u=Se({path:o.relativePath,caseSensitive:o.caseSensitive,end:l},c),d=o.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=Se({path:o.relativePath,caseSensitive:o.caseSensitive,end:!1},c)),!u)return null;Object.assign(s,u.params),i.push({params:s,pathname:Oe([a,u.pathname]),pathnameBase:Te(Oe([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=Oe([a,u.pathnameBase]))}return i}function Se(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),oe("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(n.push({paramName:"*"}),s+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":""!==e&&"/"!==e&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let a=s[0],i=a.replace(/(.)\/+$/,"$1"),o=s.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:s}=t;if("*"===n){let e=o[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=o[r];return e[n]=s&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function _e(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return oe(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function Ce(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function Pe(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function ke(e,t){let r=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?r.map(((e,t)=>t===r.length-1?e.pathname:e.pathnameBase)):r.map((e=>e.pathnameBase))}function Ne(e,t,r,n){let s;void 0===n&&(n=!1),"string"==typeof e?s=de(e):(s=se({},e),ie(!s.pathname||!s.pathname.includes("?"),Pe("?","pathname","search",s)),ie(!s.pathname||!s.pathname.includes("#"),Pe("#","pathname","hash",s)),ie(!s.search||!s.search.includes("#"),Pe("#","search","hash",s)));let a,i=""===e||""===s.pathname,o=i?"/":s.pathname;if(null==o)a=r;else{let e=t.length-1;if(!n&&o.startsWith("..")){let t=o.split("/");for(;".."===t[0];)t.shift(),e-=1;s.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:s=""}="string"==typeof e?de(e):e,a=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:a,search:Le(n),hash:Me(s)}}(s,a),c=o&&"/"!==o&&o.endsWith("/"),u=(i||"."===o)&&r.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const Oe=e=>e.join("/").replace(/\/\/+/g,"/"),Te=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Le=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Me=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const Ae=["post","put","patch","delete"],Fe=(new Set(Ae),["get",...Ae]);function Ue(){return Ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ue.apply(this,arguments)}new Set(Fe),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const Be=te.createContext(null),qe=te.createContext(null),$e=te.createContext(null),Ie=te.createContext(null),He=te.createContext({outlet:null,matches:[],isDataRoute:!1}),We=te.createContext(null);function De(){return null!=te.useContext(Ie)}function ze(){return De()||ie(!1),te.useContext(Ie).location}function Ve(e){te.useContext($e).static||te.useLayoutEffect(e)}function Je(){let{isDataRoute:e}=te.useContext(He);return e?function(){let{router:e}=function(e){let t=te.useContext(Be);return t||ie(!1),t}(et.UseNavigateStable),t=rt(tt.UseNavigateStable),r=te.useRef(!1);return Ve((()=>{r.current=!0})),te.useCallback((function(n,s){void 0===s&&(s={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,Ue({fromRouteId:t},s)))}),[e,t])}():function(){De()||ie(!1);let e=te.useContext(Be),{basename:t,future:r,navigator:n}=te.useContext($e),{matches:s}=te.useContext(He),{pathname:a}=ze(),i=JSON.stringify(ke(s,r.v7_relativeSplatPath)),o=te.useRef(!1);return Ve((()=>{o.current=!0})),te.useCallback((function(r,s){if(void 0===s&&(s={}),!o.current)return;if("number"==typeof r)return void n.go(r);let l=Ne(r,JSON.parse(i),a,"path"===s.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Oe([t,l.pathname])),(s.replace?n.replace:n.push)(l,s.state,s)}),[t,n,i,a,e])}()}function Ze(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=te.useContext($e),{matches:s}=te.useContext(He),{pathname:a}=ze(),i=JSON.stringify(ke(s,n.v7_relativeSplatPath));return te.useMemo((()=>Ne(e,JSON.parse(i),a,"path"===r)),[e,i,a,r])}function Ye(e,t,r,n){De()||ie(!1);let{navigator:s}=te.useContext($e),{matches:a}=te.useContext(He),i=a[a.length-1],o=i?i.params:{},l=(i&&i.pathname,i?i.pathnameBase:"/");i&&i.route;let c,u=ze();if(t){var d;let e="string"==typeof t?de(t):t;"/"===l||(null==(d=e.pathname)?void 0:d.startsWith(l))||ie(!1),c=e}else c=u;let p=c.pathname||"/",h=p;if("/"!==l){let e=l.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(e.length).join("/")}let f=he(e,{pathname:h}),m=function(e,t,r,n){var s;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){var a;if(!r)return null;if(r.errors)e=r.matches;else{if(!(null!=(a=n)&&a.v7_partialHydration&&0===t.length&&!r.initialized&&r.matches.length>0))return null;e=r.matches}}let i=e,o=null==(s=r)?void 0:s.errors;if(null!=o){let e=i.findIndex((e=>e.route.id&&void 0!==(null==o?void 0:o[e.route.id])));e>=0||ie(!1),i=i.slice(0,Math.min(i.length,e+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:n}=r,s=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||s){l=!0,i=c>=0?i.slice(0,c+1):[i[0]];break}}}return i.reduceRight(((e,n,s)=>{let a,u=!1,d=null,p=null;var h;r&&(a=o&&n.route.id?o[n.route.id]:void 0,d=n.route.errorElement||Ke,l&&(c<0&&0===s?(st[h="route-fallback"]||(st[h]=!0),u=!0,p=null):c===s&&(u=!0,p=n.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,s+1)),m=()=>{let t;return t=a?d:u?p:n.route.Component?te.createElement(n.route.Component,null):n.route.element?n.route.element:e,te.createElement(Xe,{match:n,routeContext:{outlet:e,matches:f,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===s)?te.createElement(Qe,{location:r.location,revalidation:r.revalidation,component:d,error:a,children:m(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):m()}),null)}(f&&f.map((e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Oe([l,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Oe([l,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,r,n);return t&&m?te.createElement(Ie.Provider,{value:{location:Ue({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:re.Pop}},m):m}function Ge(){let e=nt(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return te.createElement(te.Fragment,null,te.createElement("h2",null,"Unexpected Application Error!"),te.createElement("h3",{style:{fontStyle:"italic"}},t),r?te.createElement("pre",{style:n},r):null,null)}const Ke=te.createElement(Ge,null);class Qe extends te.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?te.createElement(He.Provider,{value:this.props.routeContext},te.createElement(We.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Xe(e){let{routeContext:t,match:r,children:n}=e,s=te.useContext(Be);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),te.createElement(He.Provider,{value:t},n)}var et=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(et||{}),tt=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(tt||{});function rt(e){let t=function(e){let t=te.useContext(He);return t||ie(!1),t}(),r=t.matches[t.matches.length-1];return r.route.id||ie(!1),r.route.id}function nt(){var e;let t=te.useContext(We),r=function(e){let t=te.useContext(qe);return t||ie(!1),t}(tt.UseRouteError),n=rt(tt.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}const st={};function at(e){let{to:t,replace:r,state:n,relative:s}=e;De()||ie(!1);let{future:a,static:i}=te.useContext($e),{matches:o}=te.useContext(He),{pathname:l}=ze(),c=Je(),u=Ne(t,ke(o,a.v7_relativeSplatPath),l,"path"===s),d=JSON.stringify(u);return te.useEffect((()=>c(JSON.parse(d),{replace:r,state:n,relative:s})),[c,d,s,r,n]),null}function it(e){ie(!1)}function ot(e){let{basename:t="/",children:r=null,location:n,navigationType:s=re.Pop,navigator:a,static:i=!1,future:o}=e;De()&&ie(!1);let l=t.replace(/^\/*/,"/"),c=te.useMemo((()=>({basename:l,navigator:a,static:i,future:Ue({v7_relativeSplatPath:!1},o)})),[l,o,a,i]);"string"==typeof n&&(n=de(n));let{pathname:u="/",search:d="",hash:p="",state:h=null,key:f="default"}=n,m=te.useMemo((()=>{let e=Ce(u,l);return null==e?null:{location:{pathname:e,search:d,hash:p,state:h,key:f},navigationType:s}}),[l,u,d,p,h,f,s]);return null==m?null:te.createElement($e.Provider,{value:c},te.createElement(Ie.Provider,{children:r,value:m}))}function lt(e){let{children:t,location:r}=e;return Ye(ct(t),r)}function ct(e,t){void 0===t&&(t=[]);let r=[];return te.Children.forEach(e,((e,n)=>{if(!te.isValidElement(e))return;let s=[...t,n];if(e.type===te.Fragment)return void r.push.apply(r,ct(e.props.children,s));e.type!==it&&ie(!1),e.props.index&&e.props.children&&ie(!1);let a={id:e.props.id||s.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=ct(e.props.children,s)),r.push(a)})),r}te.startTransition,new Promise((()=>{})),te.Component;te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));const ut=(e,t)=>{try{return(0,n.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},dt=window.yoast.propTypes;var pt=r.n(dt);const ht=window.ReactJSXRuntime;pt().string.isRequired;const ft=te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))}));te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),pt().string.isRequired,pt().string.isRequired,pt().shape({src:pt().string.isRequired,width:pt().string,height:pt().string}).isRequired,pt().shape({value:pt().bool.isRequired,status:pt().string.isRequired,set:pt().func.isRequired}).isRequired,pt().string,pt().string,pt().string;const mt=({handleRefreshClick:e,supportLink:t})=>(0,ht.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,ht.jsx)(s.Button,{onClick:e,children:(0,ee.__)("Refresh this page","wordpress-seo")}),(0,ht.jsx)(s.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,ee.__)("Contact support","wordpress-seo")})]});mt.propTypes={handleRefreshClick:pt().func.isRequired,supportLink:pt().string.isRequired};const yt=({handleRefreshClick:e,supportLink:t})=>(0,ht.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,ht.jsx)(s.Button,{className:"yst-order-last",onClick:e,children:(0,ee.__)("Refresh this page","wordpress-seo")}),(0,ht.jsx)(s.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,ee.__)("Contact support","wordpress-seo")})]});yt.propTypes={handleRefreshClick:pt().func.isRequired,supportLink:pt().string.isRequired};const vt=({error:e,children:t=null})=>(0,ht.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,ht.jsx)(s.Title,{children:(0,ee.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,ht.jsx)("p",{children:(0,ee.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,ht.jsx)(s.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,ee.__)("Undefined error message.","wordpress-seo")}),(0,ht.jsx)("p",{children:(0,ee.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});vt.propTypes={error:pt().object.isRequired,children:pt().node},vt.VerticalButtons=yt,vt.HorizontalButtons=mt;const gt={variant:{lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}},wt=({id:e,children:t,title:r,description:n=null,variant:a="2xl"})=>(0,ht.jsxs)("section",{id:e,className:gt.variant[a].grid,children:[(0,ht.jsx)("div",{className:gt.variant[a].col1,children:(0,ht.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,ht.jsx)(s.Title,{as:"h2",size:"4",children:r}),n&&(0,ht.jsx)("p",{className:"yst-mt-2",children:n})]})}),(0,ht.jsxs)("fieldset",{className:`yst-min-w-0 yst-mt-8 ${gt.variant[a].col2}`,children:[(0,ht.jsx)("legend",{className:"yst-sr-only",children:r}),(0,ht.jsx)("div",{className:"yst-space-y-8",children:t})]})]});wt.propTypes={id:pt().string,children:pt().node.isRequired,title:pt().node.isRequired,description:pt().node,variant:pt().oneOf(Object.keys(gt.variant))};const xt=window.ReactDOM;function bt(){return bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bt.apply(this,arguments)}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const jt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(pr){}new Map;const Et=te.startTransition;function Rt(e){let{basename:t,children:r,future:n,window:s}=e,a=te.useRef();var i;null==a.current&&(a.current=(void 0===(i={window:s,v5Compat:!0})&&(i={}),function(e,t,r,n){void 0===n&&(n={});let{window:s=document.defaultView,v5Compat:a=!1}=n,i=s.history,o=re.Pop,l=null,c=u();function u(){return(i.state||{idx:null}).idx}function d(){o=re.Pop;let e=u(),t=null==e?null:e-c;c=e,l&&l({action:o,location:h.location,delta:t})}function p(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,r="string"==typeof e?e:ue(e);return r=r.replace(/ $/,"%20"),ie(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==c&&(c=0,i.replaceState(se({},i.state,{idx:c}),""));let h={get action(){return o},get location(){return e(s,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(ae,d),l=e,()=>{s.removeEventListener(ae,d),l=null}},createHref:e=>t(s,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){o=re.Push;let n=ce(h.location,e,t);r&&r(n,e),c=u()+1;let d=le(n,c),p=h.createHref(n);try{i.pushState(d,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(p)}a&&l&&l({action:o,location:h.location,delta:1})},replace:function(e,t){o=re.Replace;let n=ce(h.location,e,t);r&&r(n,e),c=u();let s=le(n,c),d=h.createHref(n);i.replaceState(s,"",d),a&&l&&l({action:o,location:h.location,delta:0})},go:e=>i.go(e)};return h}((function(e,t){let{pathname:r="/",search:n="",hash:s=""}=de(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),ce("",{pathname:r,search:n,hash:s},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:ue(t))}),(function(e,t){oe("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),i)));let o=a.current,[l,c]=te.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},d=te.useCallback((e=>{u&&Et?Et((()=>c(e))):c(e)}),[c,u]);return te.useLayoutEffect((()=>o.listen(d)),[o,d]),te.createElement(ot,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:o,future:n})}xt.flushSync,te.useId;const St="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,_t=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ct=te.forwardRef((function(e,t){let r,{onClick:n,relative:s,reloadDocument:a,replace:i,state:o,target:l,to:c,preventScrollReset:u,unstable_viewTransition:d}=e,p=function(e,t){if(null==e)return{};var r,n,s={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,jt),{basename:h}=te.useContext($e),f=!1;if("string"==typeof c&&_t.test(c)&&(r=c,St))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),r=Ce(t.pathname,h);t.origin===e.origin&&null!=r?c=r+t.search+t.hash:f=!0}catch(e){}let m=function(e,t){let{relative:r}=void 0===t?{}:t;De()||ie(!1);let{basename:n,navigator:s}=te.useContext($e),{hash:a,pathname:i,search:o}=Ze(e,{relative:r}),l=i;return"/"!==n&&(l="/"===i?n:Oe([n,i])),s.createHref({pathname:l,search:o,hash:a})}(c,{relative:s}),y=function(e,t){let{target:r,replace:n,state:s,preventScrollReset:a,relative:i,unstable_viewTransition:o}=void 0===t?{}:t,l=Je(),c=ze(),u=Ze(e,{relative:i});return te.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,r)){t.preventDefault();let r=void 0!==n?n:ue(c)===ue(u);l(e,{replace:r,state:s,preventScrollReset:a,relative:i,unstable_viewTransition:o})}}),[c,l,u,n,s,r,e,a,i,o])}(c,{replace:i,state:o,target:l,preventScrollReset:u,relative:s,unstable_viewTransition:d});return te.createElement("a",bt({},p,{href:r||m,onClick:f||a?n:function(e){n&&n(e),e.defaultPrevented||y(e)},ref:t,target:l}))}));var Pt,kt;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Pt||(Pt={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(kt||(kt={}));const Nt=({to:e,idSuffix:t="",...r})=>{const a=(0,n.useMemo)((()=>(0,i.replace)((0,i.replace)(`link-${e}`,"/","-"),"--","-")),[e]);return(0,ht.jsx)(s.SidebarNavigation.SubmenuItem,{as:Ct,pathProp:"to",id:`${a}${t}`,to:e,...r})};Nt.propTypes={to:pt().string.isRequired,idSuffix:pt().string};pt().string.isRequired,pt().node;te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),(0,ee.__)("AI tools included","wordpress-seo"),(0,ee.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ -(0,ee.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,ee.__)("24/7 support","wordpress-seo"),(0,ee.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,ee.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,ee.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,ee.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,ee.__)("Internal links and redirect management, easy","wordpress-seo"),(0,ee.__)("Access to friendly help when you need it, day or night","wordpress-seo");te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}));var Ot=r(4184),Tt=r.n(Ot);pt().string.isRequired,pt().object.isRequired,pt().func.isRequired,te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),pt().string.isRequired,pt().object,pt().func.isRequired,pt().bool.isRequired,pt().string.isRequired,pt().object.isRequired,pt().string.isRequired,pt().func.isRequired,pt().bool.isRequired,te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),pt().bool.isRequired,pt().func,pt().func,pt().string.isRequired,pt().string.isRequired,pt().string.isRequired,pt().string.isRequired;const Lt=window.yoast.reactHelmet,Mt=({videoId:e,thumbnail:t,wistiaEmbedPermission:r,className:a=""})=>{const[i,o]=(0,n.useState)(r.value?F:M),l=(0,n.useCallback)((()=>o(F)),[o]),c=(0,n.useCallback)((()=>{r.value?l():o(A)}),[r.value,l,o]),u=(0,n.useCallback)((()=>o(M)),[o]),d=(0,n.useCallback)((()=>{r.set(!0),l()}),[r.set,l]);return(0,ht.jsxs)(ht.Fragment,{children:[r.value&&(0,ht.jsx)(Lt.Helmet,{children:(0,ht.jsx)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})}),(0,ht.jsxs)("div",{className:Tt()("yst-relative yst-w-full yst-h-0 yst-pt-[47.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white",a),children:[i===M&&(0,ht.jsx)("button",{type:"button",className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:c,children:(0,ht.jsx)("img",{className:"yst-w-full yst-h-auto yst-object-contain",alt:"",loading:"lazy",decoding:"async",...t})}),i===A&&(0,ht.jsxs)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white",children:[(0,ht.jsxs)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center",children:[r.status===L&&(0,ht.jsx)(s.Spinner,{}),r.status!==L&&(0,ee.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */ +(()=>{var e={4184:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var i=s.apply(null,r);i&&e.push(i)}}else if("object"===a){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var o in r)n.call(r,o)&&r[o]&&e.push(o)}}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0===(r=function(){return s}.apply(t,[]))||(e.exports=r)}()},591:e=>{for(var t=[],r=0;r<256;++r)t[r]=(r+256).toString(16).substr(1);e.exports=function(e,r){var n=r||0,s=t;return[s[e[n++]],s[e[n++]],s[e[n++]],s[e[n++]],"-",s[e[n++]],s[e[n++]],"-",s[e[n++]],s[e[n++]],"-",s[e[n++]],s[e[n++]],"-",s[e[n++]],s[e[n++]],s[e[n++]],s[e[n++]],s[e[n++]],s[e[n++]]].join("")}},9176:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var r=new Uint8Array(16);e.exports=function(){return t(r),r}}else{var n=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}},3409:(e,t,r)=>{var n=r(9176),s=r(591);e.exports=function(e,t,r){var a=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||n)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[a+o]=i[o];return t||s(i)}}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.domReady;var t=r.n(e);const n=window.wp.element,s=window.yoast.uiLibrary,a=window.wp.data,i=window.lodash,o="@yoast/redirects",l=window.yoast.reduxJsToolkit,c="adminUrl",u=(0,l.createSlice)({name:c,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),d=(u.getInitialState,{selectAdminUrl:e=>(0,i.get)(e,c,"")});d.selectAdminLink=(0,l.createSelector)([d.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),u.actions,u.reducer;const p=window.wp.apiFetch;var h=r.n(p);const f="hasConsent",m=(0,l.createSlice)({name:f,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),y=(m.getInitialState,m.actions,m.reducer,window.wp.url),v="linkParams",g=(0,l.createSlice)({name:v,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),w=(g.getInitialState,{selectLinkParam:(e,t,r={})=>(0,i.get)(e,`${v}.${t}`,r),selectLinkParams:e=>(0,i.get)(e,v,{})});w.selectLink=(0,l.createSelector)([w.selectLinkParams,(e,t)=>t,(e,t,r={})=>r],((e,t,r)=>(0,y.addQueryArgs)(t,{...e,...r})));const x=g.actions,b=g.reducer,j=(0,l.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:r="default",title:n,description:s})=>({payload:{id:e||(0,l.nanoid)(),variant:t,size:r,title:n||"",description:s}})},removeNotification:(e,{payload:t})=>(0,i.omit)(e,t)}}),E=(j.getInitialState,j.actions,j.reducer,"pluginUrl"),R=(0,l.createSlice)({name:E,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),S=R.getInitialState,_={selectPluginUrl:e=>(0,i.get)(e,E,"")};_.selectImageLink=(0,l.createSelector)([_.selectPluginUrl,(e,t,r="images")=>r,(e,t)=>t],((e,t,r)=>[(0,i.trimEnd)(e,"/"),(0,i.trim)(t,"/"),(0,i.trimStart)(r,"/")].join("/")));const C=R.actions,P=R.reducer,k="request",N="success",O="error",T="idle",L="loading",M="showPlay",A="askPermission",F="isPlaying",U="wistiaEmbedPermission",B=(0,l.createSlice)({name:U,initialState:{value:!1,status:T,error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${U}/${k}`,(e=>{e.status=L})),e.addCase(`${U}/${N}`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${U}/${O}`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,i.get)(t,"error.code",500),message:(0,i.get)(t,"error.message","Unknown")}}))}}),q=(B.getInitialState,{selectWistiaEmbedPermission:e=>(0,i.get)(e,U,{value:!1,status:T}),selectWistiaEmbedPermissionValue:e=>(0,i.get)(e,[U,"value"],!1),selectWistiaEmbedPermissionStatus:e=>(0,i.get)(e,[U,"status"],T),selectWistiaEmbedPermissionError:e=>(0,i.get)(e,[U,"error"],{})}),$={...B.actions,setWistiaEmbedPermission:function*(e){yield{type:`${U}/${k}`};try{return yield{type:U,payload:e},{type:`${U}/${N}`,payload:{value:e}}}catch(t){return{type:`${U}/${O}`,payload:{error:t,value:e}}}}},I={[U]:async({payload:e})=>h()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:Boolean(e)}})},H=B.reducer;var W;const D="documentTitle",z=(0,l.createSlice)({name:D,initialState:(0,i.defaultTo)(null===(W=document)||void 0===W?void 0:W.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),V=(z.getInitialState,{selectDocumentTitle:e=>(0,i.get)(e,D,""),selectDocumentFullTitle:(e,{prefix:t=""}={})=>{const r=(0,i.get)(e,D,"");return r.startsWith(t)?r:`${t} ‹ ${r}`}}),J=(z.actions,z.reducer),Z="preferences",Y=(0,l.createSlice)({name:Z,initialState:{isRtl:!1},reducers:{}}),G={selectPreference:(e,t,r={})=>(0,i.get)(e,`${Z}.${t}`,r),selectPreferences:e=>(0,i.get)(e,Z,{})},K=Y.actions,Q=Y.reducer,X=window.yoast.styledComponents,ee=window.wp.i18n,te=window.React;var re,ne=r.n(te);function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},se.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(re||(re={}));const ae="popstate";function ie(e,t){if(!1===e||null==e)throw new Error(t)}function oe(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function le(e,t){return{usr:e.state,key:e.key,idx:t}}function ce(e,t,r,n){return void 0===r&&(r=null),se({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?de(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function ue(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function de(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var pe;function he(e,t,r){return void 0===r&&(r="/"),function(e,t,r,n){let s=Ce(("string"==typeof t?de(t):t).pathname||"/",r);if(null==s)return null;let a=fe(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=_e(s);i=Re(a[e],t,n)}return i}(e,t,r,!1)}function fe(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let s=(e,s,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:s,route:e};i.relativePath.startsWith("/")&&(ie(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let o=Oe([n,i.relativePath]),l=r.concat(i);e.children&&e.children.length>0&&(ie(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),fe(e.children,t,l,o)),(null!=e.path||e.index)&&t.push({path:o,score:Ee(o,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of me(e.path))s(e,t,r);else s(e,t)})),t}function me(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,s=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===n.length)return s?[a,""]:[a];let i=me(n.join("/")),o=[];return o.push(...i.map((e=>""===e?a:[a,e].join("/")))),s&&o.push(...i),o.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(pe||(pe={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const ye=/^:[\w-]+$/,ve=3,ge=2,we=1,xe=10,be=-2,je=e=>"*"===e;function Ee(e,t){let r=e.split("/"),n=r.length;return r.some(je)&&(n+=be),t&&(n+=ge),r.filter((e=>!je(e))).reduce(((e,t)=>e+(ye.test(t)?ve:""===t?we:xe)),n)}function Re(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,s={},a="/",i=[];for(let e=0;e<n.length;++e){let o=n[e],l=e===n.length-1,c="/"===a?t:t.slice(a.length)||"/",u=Se({path:o.relativePath,caseSensitive:o.caseSensitive,end:l},c),d=o.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=Se({path:o.relativePath,caseSensitive:o.caseSensitive,end:!1},c)),!u)return null;Object.assign(s,u.params),i.push({params:s,pathname:Oe([a,u.pathname]),pathnameBase:Te(Oe([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=Oe([a,u.pathnameBase]))}return i}function Se(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),oe("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(n.push({paramName:"*"}),s+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":""!==e&&"/"!==e&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let a=s[0],i=a.replace(/(.)\/+$/,"$1"),o=s.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:s}=t;if("*"===n){let e=o[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=o[r];return e[n]=s&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function _e(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return oe(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function Ce(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function Pe(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function ke(e,t){let r=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?r.map(((e,t)=>t===r.length-1?e.pathname:e.pathnameBase)):r.map((e=>e.pathnameBase))}function Ne(e,t,r,n){let s;void 0===n&&(n=!1),"string"==typeof e?s=de(e):(s=se({},e),ie(!s.pathname||!s.pathname.includes("?"),Pe("?","pathname","search",s)),ie(!s.pathname||!s.pathname.includes("#"),Pe("#","pathname","hash",s)),ie(!s.search||!s.search.includes("#"),Pe("#","search","hash",s)));let a,i=""===e||""===s.pathname,o=i?"/":s.pathname;if(null==o)a=r;else{let e=t.length-1;if(!n&&o.startsWith("..")){let t=o.split("/");for(;".."===t[0];)t.shift(),e-=1;s.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:s=""}="string"==typeof e?de(e):e,a=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:a,search:Le(n),hash:Me(s)}}(s,a),c=o&&"/"!==o&&o.endsWith("/"),u=(i||"."===o)&&r.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const Oe=e=>e.join("/").replace(/\/\/+/g,"/"),Te=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Le=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Me=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const Ae=["post","put","patch","delete"],Fe=(new Set(Ae),["get",...Ae]);function Ue(){return Ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ue.apply(this,arguments)}new Set(Fe),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const Be=te.createContext(null),qe=te.createContext(null),$e=te.createContext(null),Ie=te.createContext(null),He=te.createContext({outlet:null,matches:[],isDataRoute:!1}),We=te.createContext(null);function De(){return null!=te.useContext(Ie)}function ze(){return De()||ie(!1),te.useContext(Ie).location}function Ve(e){te.useContext($e).static||te.useLayoutEffect(e)}function Je(){let{isDataRoute:e}=te.useContext(He);return e?function(){let{router:e}=function(e){let t=te.useContext(Be);return t||ie(!1),t}(et.UseNavigateStable),t=rt(tt.UseNavigateStable),r=te.useRef(!1);return Ve((()=>{r.current=!0})),te.useCallback((function(n,s){void 0===s&&(s={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,Ue({fromRouteId:t},s)))}),[e,t])}():function(){De()||ie(!1);let e=te.useContext(Be),{basename:t,future:r,navigator:n}=te.useContext($e),{matches:s}=te.useContext(He),{pathname:a}=ze(),i=JSON.stringify(ke(s,r.v7_relativeSplatPath)),o=te.useRef(!1);return Ve((()=>{o.current=!0})),te.useCallback((function(r,s){if(void 0===s&&(s={}),!o.current)return;if("number"==typeof r)return void n.go(r);let l=Ne(r,JSON.parse(i),a,"path"===s.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Oe([t,l.pathname])),(s.replace?n.replace:n.push)(l,s.state,s)}),[t,n,i,a,e])}()}function Ze(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=te.useContext($e),{matches:s}=te.useContext(He),{pathname:a}=ze(),i=JSON.stringify(ke(s,n.v7_relativeSplatPath));return te.useMemo((()=>Ne(e,JSON.parse(i),a,"path"===r)),[e,i,a,r])}function Ye(e,t,r,n){De()||ie(!1);let{navigator:s}=te.useContext($e),{matches:a}=te.useContext(He),i=a[a.length-1],o=i?i.params:{},l=(i&&i.pathname,i?i.pathnameBase:"/");i&&i.route;let c,u=ze();if(t){var d;let e="string"==typeof t?de(t):t;"/"===l||(null==(d=e.pathname)?void 0:d.startsWith(l))||ie(!1),c=e}else c=u;let p=c.pathname||"/",h=p;if("/"!==l){let e=l.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(e.length).join("/")}let f=he(e,{pathname:h}),m=function(e,t,r,n){var s;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){var a;if(!r)return null;if(r.errors)e=r.matches;else{if(!(null!=(a=n)&&a.v7_partialHydration&&0===t.length&&!r.initialized&&r.matches.length>0))return null;e=r.matches}}let i=e,o=null==(s=r)?void 0:s.errors;if(null!=o){let e=i.findIndex((e=>e.route.id&&void 0!==(null==o?void 0:o[e.route.id])));e>=0||ie(!1),i=i.slice(0,Math.min(i.length,e+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:n}=r,s=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||s){l=!0,i=c>=0?i.slice(0,c+1):[i[0]];break}}}return i.reduceRight(((e,n,s)=>{let a,u=!1,d=null,p=null;var h;r&&(a=o&&n.route.id?o[n.route.id]:void 0,d=n.route.errorElement||Ke,l&&(c<0&&0===s?(st[h="route-fallback"]||(st[h]=!0),u=!0,p=null):c===s&&(u=!0,p=n.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,s+1)),m=()=>{let t;return t=a?d:u?p:n.route.Component?te.createElement(n.route.Component,null):n.route.element?n.route.element:e,te.createElement(Xe,{match:n,routeContext:{outlet:e,matches:f,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===s)?te.createElement(Qe,{location:r.location,revalidation:r.revalidation,component:d,error:a,children:m(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):m()}),null)}(f&&f.map((e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Oe([l,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Oe([l,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,r,n);return t&&m?te.createElement(Ie.Provider,{value:{location:Ue({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:re.Pop}},m):m}function Ge(){let e=nt(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return te.createElement(te.Fragment,null,te.createElement("h2",null,"Unexpected Application Error!"),te.createElement("h3",{style:{fontStyle:"italic"}},t),r?te.createElement("pre",{style:n},r):null,null)}const Ke=te.createElement(Ge,null);class Qe extends te.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?te.createElement(He.Provider,{value:this.props.routeContext},te.createElement(We.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Xe(e){let{routeContext:t,match:r,children:n}=e,s=te.useContext(Be);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),te.createElement(He.Provider,{value:t},n)}var et=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(et||{}),tt=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(tt||{});function rt(e){let t=function(e){let t=te.useContext(He);return t||ie(!1),t}(),r=t.matches[t.matches.length-1];return r.route.id||ie(!1),r.route.id}function nt(){var e;let t=te.useContext(We),r=function(e){let t=te.useContext(qe);return t||ie(!1),t}(tt.UseRouteError),n=rt(tt.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}const st={};function at(e){let{to:t,replace:r,state:n,relative:s}=e;De()||ie(!1);let{future:a,static:i}=te.useContext($e),{matches:o}=te.useContext(He),{pathname:l}=ze(),c=Je(),u=Ne(t,ke(o,a.v7_relativeSplatPath),l,"path"===s),d=JSON.stringify(u);return te.useEffect((()=>c(JSON.parse(d),{replace:r,state:n,relative:s})),[c,d,s,r,n]),null}function it(e){ie(!1)}function ot(e){let{basename:t="/",children:r=null,location:n,navigationType:s=re.Pop,navigator:a,static:i=!1,future:o}=e;De()&&ie(!1);let l=t.replace(/^\/*/,"/"),c=te.useMemo((()=>({basename:l,navigator:a,static:i,future:Ue({v7_relativeSplatPath:!1},o)})),[l,o,a,i]);"string"==typeof n&&(n=de(n));let{pathname:u="/",search:d="",hash:p="",state:h=null,key:f="default"}=n,m=te.useMemo((()=>{let e=Ce(u,l);return null==e?null:{location:{pathname:e,search:d,hash:p,state:h,key:f},navigationType:s}}),[l,u,d,p,h,f,s]);return null==m?null:te.createElement($e.Provider,{value:c},te.createElement(Ie.Provider,{children:r,value:m}))}function lt(e){let{children:t,location:r}=e;return Ye(ct(t),r)}function ct(e,t){void 0===t&&(t=[]);let r=[];return te.Children.forEach(e,((e,n)=>{if(!te.isValidElement(e))return;let s=[...t,n];if(e.type===te.Fragment)return void r.push.apply(r,ct(e.props.children,s));e.type!==it&&ie(!1),e.props.index&&e.props.children&&ie(!1);let a={id:e.props.id||s.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=ct(e.props.children,s)),r.push(a)})),r}te.startTransition,new Promise((()=>{})),te.Component;te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));const ut=(e,t)=>{try{return(0,n.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},dt=window.yoast.propTypes;var pt=r.n(dt);const ht=window.ReactJSXRuntime;pt().string.isRequired;const ft=te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))}));te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));pt().string.isRequired,pt().string.isRequired,pt().shape({src:pt().string.isRequired,width:pt().string,height:pt().string}).isRequired,pt().shape({value:pt().bool.isRequired,status:pt().string.isRequired,set:pt().func.isRequired}).isRequired,pt().string,pt().string,pt().string;const mt=({handleRefreshClick:e,supportLink:t})=>(0,ht.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,ht.jsx)(s.Button,{onClick:e,children:(0,ee.__)("Refresh this page","wordpress-seo")}),(0,ht.jsx)(s.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,ee.__)("Contact support","wordpress-seo")})]});mt.propTypes={handleRefreshClick:pt().func.isRequired,supportLink:pt().string.isRequired};const yt=({handleRefreshClick:e,supportLink:t})=>(0,ht.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,ht.jsx)(s.Button,{className:"yst-order-last",onClick:e,children:(0,ee.__)("Refresh this page","wordpress-seo")}),(0,ht.jsx)(s.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,ee.__)("Contact support","wordpress-seo")})]});yt.propTypes={handleRefreshClick:pt().func.isRequired,supportLink:pt().string.isRequired};const vt=({error:e,children:t=null})=>(0,ht.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,ht.jsx)(s.Title,{children:(0,ee.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,ht.jsx)("p",{children:(0,ee.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,ht.jsx)(s.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,ee.__)("Undefined error message.","wordpress-seo")}),(0,ht.jsx)("p",{children:(0,ee.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});vt.propTypes={error:pt().object.isRequired,children:pt().node},vt.VerticalButtons=yt,vt.HorizontalButtons=mt;const gt={variant:{lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}},wt=({id:e,children:t,title:r,description:n=null,variant:a="2xl"})=>(0,ht.jsxs)("section",{id:e,className:gt.variant[a].grid,children:[(0,ht.jsx)("div",{className:gt.variant[a].col1,children:(0,ht.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,ht.jsx)(s.Title,{as:"h2",size:"4",children:r}),n&&(0,ht.jsx)("p",{className:"yst-mt-2",children:n})]})}),(0,ht.jsxs)("fieldset",{className:`yst-min-w-0 yst-mt-8 ${gt.variant[a].col2}`,children:[(0,ht.jsx)("legend",{className:"yst-sr-only",children:r}),(0,ht.jsx)("div",{className:"yst-space-y-8",children:t})]})]});wt.propTypes={id:pt().string,children:pt().node.isRequired,title:pt().node.isRequired,description:pt().node,variant:pt().oneOf(Object.keys(gt.variant))};const xt=window.ReactDOM;function bt(){return bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bt.apply(this,arguments)}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const jt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(pr){}new Map;const Et=te.startTransition;function Rt(e){let{basename:t,children:r,future:n,window:s}=e,a=te.useRef();var i;null==a.current&&(a.current=(void 0===(i={window:s,v5Compat:!0})&&(i={}),function(e,t,r,n){void 0===n&&(n={});let{window:s=document.defaultView,v5Compat:a=!1}=n,i=s.history,o=re.Pop,l=null,c=u();function u(){return(i.state||{idx:null}).idx}function d(){o=re.Pop;let e=u(),t=null==e?null:e-c;c=e,l&&l({action:o,location:h.location,delta:t})}function p(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,r="string"==typeof e?e:ue(e);return r=r.replace(/ $/,"%20"),ie(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==c&&(c=0,i.replaceState(se({},i.state,{idx:c}),""));let h={get action(){return o},get location(){return e(s,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(ae,d),l=e,()=>{s.removeEventListener(ae,d),l=null}},createHref:e=>t(s,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){o=re.Push;let n=ce(h.location,e,t);r&&r(n,e),c=u()+1;let d=le(n,c),p=h.createHref(n);try{i.pushState(d,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(p)}a&&l&&l({action:o,location:h.location,delta:1})},replace:function(e,t){o=re.Replace;let n=ce(h.location,e,t);r&&r(n,e),c=u();let s=le(n,c),d=h.createHref(n);i.replaceState(s,"",d),a&&l&&l({action:o,location:h.location,delta:0})},go:e=>i.go(e)};return h}((function(e,t){let{pathname:r="/",search:n="",hash:s=""}=de(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),ce("",{pathname:r,search:n,hash:s},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:ue(t))}),(function(e,t){oe("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),i)));let o=a.current,[l,c]=te.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},d=te.useCallback((e=>{u&&Et?Et((()=>c(e))):c(e)}),[c,u]);return te.useLayoutEffect((()=>o.listen(d)),[o,d]),te.createElement(ot,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:o,future:n})}xt.flushSync,te.useId;const St="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,_t=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ct=te.forwardRef((function(e,t){let r,{onClick:n,relative:s,reloadDocument:a,replace:i,state:o,target:l,to:c,preventScrollReset:u,unstable_viewTransition:d}=e,p=function(e,t){if(null==e)return{};var r,n,s={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,jt),{basename:h}=te.useContext($e),f=!1;if("string"==typeof c&&_t.test(c)&&(r=c,St))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),r=Ce(t.pathname,h);t.origin===e.origin&&null!=r?c=r+t.search+t.hash:f=!0}catch(e){}let m=function(e,t){let{relative:r}=void 0===t?{}:t;De()||ie(!1);let{basename:n,navigator:s}=te.useContext($e),{hash:a,pathname:i,search:o}=Ze(e,{relative:r}),l=i;return"/"!==n&&(l="/"===i?n:Oe([n,i])),s.createHref({pathname:l,search:o,hash:a})}(c,{relative:s}),y=function(e,t){let{target:r,replace:n,state:s,preventScrollReset:a,relative:i,unstable_viewTransition:o}=void 0===t?{}:t,l=Je(),c=ze(),u=Ze(e,{relative:i});return te.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,r)){t.preventDefault();let r=void 0!==n?n:ue(c)===ue(u);l(e,{replace:r,state:s,preventScrollReset:a,relative:i,unstable_viewTransition:o})}}),[c,l,u,n,s,r,e,a,i,o])}(c,{replace:i,state:o,target:l,preventScrollReset:u,relative:s,unstable_viewTransition:d});return te.createElement("a",bt({},p,{href:r||m,onClick:f||a?n:function(e){n&&n(e),e.defaultPrevented||y(e)},ref:t,target:l}))}));var Pt,kt;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Pt||(Pt={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(kt||(kt={}));const Nt=({to:e,idSuffix:t="",...r})=>{const a=(0,n.useMemo)((()=>(0,i.replace)((0,i.replace)(`link-${e}`,"/","-"),"--","-")),[e]);return(0,ht.jsx)(s.SidebarNavigation.SubmenuItem,{as:Ct,pathProp:"to",id:`${a}${t}`,to:e,...r})};Nt.propTypes={to:pt().string.isRequired,idSuffix:pt().string};pt().string.isRequired,pt().node;te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),(0,ee.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,ee.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,ee.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,ee.__)("Optimize pages for multiple keywords with guidance","wordpress-seo"),(0,ee.__)("Add product details to help your listings stand out","wordpress-seo"),(0,ee.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,ee.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,ee.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo"),(0,ee.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,ee.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,ee.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,ee.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,ee.__)("Internal links and redirect management, easy","wordpress-seo"),(0,ee.__)("Access to friendly help when you need it, day or night","wordpress-seo");var Ot=r(4184),Tt=r.n(Ot);pt().string.isRequired,pt().object.isRequired,pt().func.isRequired,te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),pt().string.isRequired,pt().object,pt().func.isRequired,pt().bool.isRequired,pt().string.isRequired,pt().object.isRequired,pt().string.isRequired,pt().func.isRequired,pt().bool.isRequired,te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),pt().bool.isRequired,pt().func,pt().func,pt().string.isRequired,pt().string.isRequired,pt().string.isRequired,pt().string.isRequired;const Lt=window.yoast.reactHelmet,Mt=({videoId:e,thumbnail:t,wistiaEmbedPermission:r,className:a=""})=>{const[i,o]=(0,n.useState)(r.value?F:M),l=(0,n.useCallback)((()=>o(F)),[o]),c=(0,n.useCallback)((()=>{r.value?l():o(A)}),[r.value,l,o]),u=(0,n.useCallback)((()=>o(M)),[o]),d=(0,n.useCallback)((()=>{r.set(!0),l()}),[r.set,l]);return(0,ht.jsxs)(ht.Fragment,{children:[r.value&&(0,ht.jsx)(Lt.Helmet,{children:(0,ht.jsx)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})}),(0,ht.jsxs)("div",{className:Tt()("yst-relative yst-w-full yst-h-0 yst-pt-[47.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white",a),children:[i===M&&(0,ht.jsx)("button",{type:"button",className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:c,children:(0,ht.jsx)("img",{className:"yst-w-full yst-h-auto yst-object-contain",alt:"",loading:"lazy",decoding:"async",...t})}),i===A&&(0,ht.jsxs)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white",children:[(0,ht.jsxs)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center",children:[r.status===L&&(0,ht.jsx)(s.Spinner,{}),r.status!==L&&(0,ee.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */ (0,ee.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo"),"Yoast SEO","Wistia")]}),(0,ht.jsxs)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4",children:[(0,ht.jsx)(s.Button,{type:"button",variant:"secondary",onClick:u,disabled:r.status===L,children:(0,ee.__)("Deny","wordpress-seo")}),(0,ht.jsx)(s.Button,{type:"button",variant:"primary",onClick:d,disabled:r.status===L,children:(0,ee.__)("Allow","wordpress-seo")})]})]}),r.value&&i===F&&(0,ht.jsxs)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-right-0",children:[null===e&&(0,ht.jsx)(s.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,ht.jsx)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`})]})]})]})};var At,Ft;function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ut.apply(this,arguments)}Mt.propTypes={videoId:pt().string.isRequired,thumbnail:pt().shape({src:pt().string.isRequired,width:pt().string,height:pt().string}).isRequired,wistiaEmbedPermission:pt().shape({value:pt().bool.isRequired,status:pt().string.isRequired,set:pt().func.isRequired}).isRequired,hasPadding:pt().bool};const Bt=e=>te.createElement("svg",Ut({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"yoast-logo_svg__w-40",viewBox:"0 0 842 224"},e),At||(At=te.createElement("path",{fill:"#a61e69",d:"M166.55 54.09c-38.69 0-54.17 25.97-54.17 54.88s15.25 56.02 54.17 56.02 54.07-27.19 54-54.26c-.09-32.97-16.77-56.65-54-56.65Zm-23.44 56.52c.94-38.69 30.66-38.65 40.59-24.79 9.05 12.63 10.9 55.81-17.14 55.5-12.92-.14-23.06-8.87-23.44-30.71Zm337.25 27.55V82.11h20.04V57.78h-20.04V28.39h-30.95v29.39h-15.7v24.33h15.7v52.87c0 30.05 20.95 47.91 43.06 51.61l9.24-24.88c-12.89-1.63-21.23-11.27-21.35-23.54Zm-156.15-8.87V87.16c0-1.54-.1-2.98-.25-4.39-2.68-34.04-51.02-33.97-88.46-20.9l10.82 21.78c24.38-11.58 38.97-8.59 44.07-2.89.13.15.26.29.38.45.01.02.03.04.04.06 2.6 3.51 1.98 9.05 1.98 13.41-31.86 0-65.77 4.23-65.77 39.17 0 26.56 33.28 43.65 68.06 18.33l5.16 12.45h29.81c-2.66-14.62-5.85-27.14-5.85-35.34Zm-31.18-.23c-24.51 27.43-46.96 1.61-23.97-9.65 6.77-2.31 15.95-2.41 23.97-2.41v12.06Zm78.75-44.17c0-10.38 16.61-15.23 42.82-3.27l9.06-22.01c-35.27-10.66-83.44-11.62-83.75 25.28-.15 17.68 11.19 27.19 27.52 33.26 11.31 4.2 27.64 6.38 27.59 15.39-.06 11.77-25.38 13.57-48.42-2.26l-9.31 23.87c31.43 15.64 89.87 16.08 89.56-23.12-.31-38.76-55.08-32.11-55.08-47.14ZM99.3 1 54.44 125.61 32.95 58.32H1l35.78 91.89a33.49 33.49 0 0 1 0 24.33c-4 10.25-10.65 19.03-26.87 21.21v27.24c31.58 0 48.65-19.41 63.88-61.96L133.48 1H99.3ZM598.64 139.05c0 8.17-2.96 14.58-8.87 19.23-5.91 4.65-14.07 6.98-24.47 6.98s-18.92-1.61-25.54-4.84v-14.2c4.19 1.97 8.65 3.52 13.37 4.65 4.72 1.13 9.11 1.7 13.18 1.7 5.95 0 10.35-1.13 13.18-3.39 2.83-2.26 4.25-5.3 4.25-9.11 0-3.43-1.3-6.35-3.9-8.74-2.6-2.39-7.97-5.22-16.1-8.48-8.39-3.39-14.3-7.27-17.74-11.63-3.44-4.36-5.16-9.59-5.16-15.71 0-7.67 2.72-13.7 8.18-18.1 5.45-4.4 12.77-6.6 21.95-6.6s17.57 1.93 26.29 5.78l-4.78 12.26c-8.18-3.43-15.47-5.15-21.89-5.15-4.87 0-8.55 1.06-11.07 3.17-2.52 2.12-3.77 4.91-3.77 8.39 0 2.39.5 4.43 1.51 6.13s2.66 3.3 4.97 4.81c2.3 1.51 6.46 3.5 12.45 5.97 6.75 2.81 11.7 5.43 14.85 7.86 3.15 2.43 5.45 5.18 6.92 8.23 1.46 3.06 2.2 6.66 2.2 10.81Zm68.53 24.96h-52.02V72.12h52.02v12.7h-36.99v25.01h34.66v12.57h-34.66v28.85h36.99v12.76Zm100.24-46.07c0 14.96-3.74 26.59-11.23 34.88-7.49 8.3-18.08 12.44-31.8 12.44s-24.54-4.12-31.99-12.35c-7.44-8.23-11.17-19.93-11.17-35.1s3.74-26.82 11.23-34.95c7.49-8.13 18.17-12.19 32.05-12.19s24.24 4.13 31.7 12.38c7.47 8.26 11.2 19.88 11.2 34.88Zm-70.2 0c0 11.31 2.29 19.89 6.86 25.74 4.57 5.85 11.35 8.77 20.32 8.77s15.67-2.89 20.22-8.67c4.55-5.78 6.82-14.39 6.82-25.83s-2.25-19.82-6.76-25.64-11.23-8.74-20.16-8.74-15.82 2.91-20.41 8.74c-4.59 5.82-6.89 14.37-6.89 25.64Z"})),Ft||(Ft=te.createElement("path",{fill:"#77b227",d:"m790.45 165.35 36.05-94.96H840l-36.02 94.96h-13.53z"})));te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),pt().bool.isRequired,pt().func.isRequired,pt().func,pt().string;const qt=({contentClassName:e="",children:t})=>(0,ht.jsx)("div",{className:"yst-flex yst-gap-6 xl:yst-flex-row yst-flex-col relative",children:(0,ht.jsx)("div",{className:Tt()("yst-@container yst-flex yst-flex-grow yst-flex-col",e),children:t})});pt().func.isRequired,pt().string.isRequired,pt().string.isRequired,pt().string.isRequired,pt().string.isRequired;const $t=()=>{const e=(0,n.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),t=(0,a.select)(o).selectLink("https://yoa.st/general-error-support"),r=nt();return(0,ht.jsx)(s.Paper,{children:(0,ht.jsx)(vt,{error:r,children:(0,ht.jsx)(vt.HorizontalButtons,{handleRefreshClick:e,supportLink:t})})})};var It={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},Ht=function(e){var t=e.message,r=e["aria-live"];return ne().createElement("div",{style:It,role:"log","aria-live":r},t||"")};Ht.propTypes={};const Wt=Ht;function Dt(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var zt=function(e){function t(){var r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var s=arguments.length,a=Array(s),i=0;i<s;i++)a[i]=arguments[i];return r=n=Dt(this,e.call.apply(e,[this].concat(a))),n.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},Dt(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.getDerivedStateFromProps=function(e,t){var r=t.oldPolitemessage,n=t.oldPoliteMessageId,s=t.oldAssertiveMessage,a=t.oldAssertiveMessageId,i=e.politeMessage,o=e.politeMessageId,l=e.assertiveMessage,c=e.assertiveMessageId;return r!==i||n!==o?{politeMessage1:t.setAlternatePolite?"":i,politeMessage2:t.setAlternatePolite?i:"",oldPolitemessage:i,oldPoliteMessageId:o,setAlternatePolite:!t.setAlternatePolite}:s!==l||a!==c?{assertiveMessage1:t.setAlternateAssertive?"":l,assertiveMessage2:t.setAlternateAssertive?l:"",oldAssertiveMessage:l,oldAssertiveMessageId:c,setAlternateAssertive:!t.setAlternateAssertive}:null},t.prototype.render=function(){var e=this.state,t=e.assertiveMessage1,r=e.assertiveMessage2,n=e.politeMessage1,s=e.politeMessage2;return ne().createElement("div",null,ne().createElement(Wt,{"aria-live":"assertive",message:t}),ne().createElement(Wt,{"aria-live":"assertive",message:r}),ne().createElement(Wt,{"aria-live":"polite",message:n}),ne().createElement(Wt,{"aria-live":"polite",message:s}))},t}(te.Component);zt.propTypes={};const Vt=zt;function Jt(){console.warn("Announcement failed, LiveAnnouncer context is missing")}const Zt=ne().createContext({announceAssertive:Jt,announcePolite:Jt}),Yt=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.announcePolite=function(e,t){n.setState({announcePoliteMessage:e,politeMessageId:t||""})},n.announceAssertive=function(e,t){n.setState({announceAssertiveMessage:e,assertiveMessageId:t||""})},n.state={announcePoliteMessage:"",politeMessageId:"",announceAssertiveMessage:"",assertiveMessageId:"",updateFunctions:{announcePolite:n.announcePolite,announceAssertive:n.announceAssertive}},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.state,t=e.announcePoliteMessage,r=e.politeMessageId,n=e.announceAssertiveMessage,s=e.assertiveMessageId,a=e.updateFunctions;return ne().createElement(Zt.Provider,{value:a},this.props.children,ne().createElement(Vt,{assertiveMessage:n,assertiveMessageId:s,politeMessage:t,politeMessageId:r}))},t}(te.Component);var Gt=r(3409),Kt=r.n(Gt);function Qt(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Xt=function(e){function t(){var r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var s=arguments.length,a=Array(s),i=0;i<s;i++)a[i]=arguments[i];return r=n=Qt(this,e.call.apply(e,[this].concat(a))),n.announce=function(){var e=n.props,t=e.message,r=e["aria-live"],s=e.announceAssertive,a=e.announcePolite;"assertive"===r&&s(t||"",Kt()()),"polite"===r&&a(t||"",Kt()())},Qt(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.announce()},t.prototype.componentDidUpdate=function(e){this.props.message!==e.message&&this.announce()},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.clearOnUnmount,r=e.announceAssertive,n=e.announcePolite;!0!==t&&"true"!==t||(r(""),n(""))},t.prototype.render=function(){return null},t}(te.Component);Xt.propTypes={};const er=Xt;var tr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rr=function(e){return ne().createElement(Zt.Consumer,null,(function(t){return ne().createElement(er,tr({},t,e))}))};rr.propTypes={};const nr=rr;const sr=({children:e,title:t,description:r=null})=>{const n=(0,a.useSelect)((e=>e(o).selectDocumentFullTitle({prefix:t})),[]),i=(0,ee.sprintf)("%1$s - %2$s",t,"Yoast SEO");return(0,ht.jsxs)(Yt,{children:[(0,ht.jsx)(nr,{message:i,"aria-live":"polite"}),(0,ht.jsx)(Lt.Helmet,{children:(0,ht.jsx)("title",{children:n})}),(0,ht.jsx)("header",{className:"yst-p-8 yst-border-b yst-border-slate-200 yst-opacity-50",children:(0,ht.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,ht.jsx)(s.Title,{children:t}),r&&(0,ht.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:r})]})}),e]})};sr.propTypes={children:pt().node.isRequired,title:pt().string.isRequired,description:pt().node};const ar=te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"}))})),ir=te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"}))})),or=te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),te.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))})),lr=te.forwardRef((function(e,t){return te.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),te.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))})),cr=({idSuffix:e=""})=>{const t=(0,s.useSvgAria)();return(0,ht.jsxs)(ht.Fragment,{children:[(0,ht.jsx)("header",{className:"yst-mb-6 yst-space-y-6",children:(0,ht.jsx)(Ct,{id:`link-yoast-logo${e}`,to:"/",className:"yst-px-3 yst-inline-block yst-rounded-md focus:yst-ring-primary-500","aria-label":"Yoast SEO",children:(0,ht.jsx)(Bt,{className:"yst-w-40",...t})})}),(0,ht.jsxs)("ul",{className:"yst-mt-1 yst-px-0.5 yst-space-y-4",children:[(0,ht.jsx)(Nt,{to:"/",label:(0,ht.jsxs)(ht.Fragment,{children:[(0,ht.jsx)(ar,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,ee.__)("Redirects","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"}),(0,ht.jsxs)("li",{className:"yst-flex yst-items-center yst-gap-3 yst-px-3 yst-py-2 yst-text-slate-800 yst-cursor-not-allowed yst-opacity-50",children:[(0,ht.jsx)(ir,{className:"yst-sidebar-navigation __icon yst-w-6 yst-h-6"}),(0,ee.__)("Regex redirects","wordpress-seo"),(0,ht.jsx)("div",{className:"yst-bg-amber-200 yst-text-amber-900 yst-rounded-2xl yst-flext yst-items-center yst-justify-center yst-py-[2px] yst-px-2",children:(0,ht.jsx)(lr,{className:"yst-sidebar-navigation __icon yst-w-2.5 yst-h-2.5"})})]}),(0,ht.jsxs)("li",{className:"yst-flex yst-items-center yst-gap-3 yst-px-3 yst-py-2 yst-text-slate-800 yst-cursor-not-allowed yst-opacity-50",children:[(0,ht.jsx)(or,{className:"yst-sidebar-navigation __icon yst-w-6 yst-h-6"}),(0,ee.__)("Redirect method","wordpress-seo"),(0,ht.jsx)("div",{className:"yst-bg-amber-200 yst-text-amber-900 yst-rounded-2xl yst-flext yst-items-center yst-justify-center yst-py-[2px] yst-px-2",children:(0,ht.jsx)(lr,{className:"yst-sidebar-navigation __icon yst-w-2.5 yst-h-2.5"})})]})]})]})};function ur(...e){return e.filter(Boolean).join(" ")}function dr(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,dr),n}cr.propTypes={idSuffix:pt().string};var pr,hr,fr=((hr=fr||{})[hr.None=0]="None",hr[hr.RenderStrategy=1]="RenderStrategy",hr[hr.Static=2]="Static",hr),mr=((pr=mr||{})[pr.Unmount=0]="Unmount",pr[pr.Hidden=1]="Hidden",pr);function yr({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:s,visible:a=!0,name:i}){let o=gr(t,e);if(a)return vr(o,r,n,i);let l=null!=s?s:0;if(2&l){let{static:e=!1,...t}=o;if(e)return vr(t,r,n,i)}if(1&l){let{unmount:e=!0,...t}=o;return dr(e?0:1,{0:()=>null,1:()=>vr({...t,hidden:!0,style:{display:"none"}},r,n,i)})}return vr(o,r,n,i)}function vr(e,t={},r,n){var s;let{as:a=r,children:i,refName:o="ref",...l}=br(e,["unmount","static"]),c=void 0!==e.ref?{[o]:e.ref}:{},u="function"==typeof i?i(t):i;l.className&&"function"==typeof l.className&&(l.className=l.className(t));let d={};if(t){let e=!1,r=[];for(let[n,s]of Object.entries(t))"boolean"==typeof s&&(e=!0),!0===s&&r.push(n);e&&(d["data-headlessui-state"]=r.join(" "))}if(a===te.Fragment&&Object.keys(xr(l)).length>0){if(!(0,te.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=ur(null==(s=u.props)?void 0:s.className,l.className),t=e?{className:e}:{};return(0,te.cloneElement)(u,Object.assign({},gr(u.props,xr(br(l,["ref"]))),d,c,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}}(u.ref,c.ref),t))}return(0,te.createElement)(a,Object.assign({},br(l,["ref"]),a!==te.Fragment&&c,a!==te.Fragment&&d),u)}function gr(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map((e=>[e,void 0]))));for(let e in r)Object.assign(t,{[e](t,...n){let s=r[e];for(let e of s){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...n)}}});return t}function wr(e){var t;return Object.assign((0,te.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function xr(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function br(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}let jr=(0,te.createContext)(null);jr.displayName="OpenClosedContext";var Er=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Er||{});function Rr(){return(0,te.useContext)(jr)}function Sr({value:e,children:t}){return te.createElement(jr.Provider,{value:e},t)}var _r=Object.defineProperty,Cr=(e,t,r)=>(((e,t,r)=>{t in e?_r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);let Pr=new class{constructor(){Cr(this,"current",this.detect()),Cr(this,"handoffState","pending"),Cr(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},kr=(e,t)=>{Pr.isServer?(0,te.useEffect)(e,t):(0,te.useLayoutEffect)(e,t)};function Nr(){let e=(0,te.useRef)(!1);return kr((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Or(e){let t=(0,te.useRef)(e);return kr((()=>{t.current=e}),[e]),t}function Tr(){let[e,t]=(0,te.useState)(Pr.isHandoffComplete);return e&&!1===Pr.isHandoffComplete&&t(!1),(0,te.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,te.useEffect)((()=>Pr.handoff()),[]),e}let Lr=function(e){let t=Or(e);return te.useCallback(((...e)=>t.current(...e)),[t])},Mr=Symbol();function Ar(...e){let t=(0,te.useRef)(e);(0,te.useEffect)((()=>{t.current=e}),[e]);let r=Lr((e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Mr])))?void 0:r}function Fr(){let e=[],t=[],r={enqueue(e){t.push(e)},addEventListener:(e,t,n,s)=>(e.addEventListener(t,n,s),r.add((()=>e.removeEventListener(t,n,s)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>r.requestAnimationFrame((()=>r.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return r.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{t.current&&e[0]()})),r.add((()=>{t.current=!1}))},add:t=>(e.push(t),()=>{let r=e.indexOf(t);if(r>=0){let[t]=e.splice(r,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return r}function Ur(e,...t){e&&t.length>0&&e.classList.add(...t)}function Br(e,...t){e&&t.length>0&&e.classList.remove(...t)}function qr(){let[e]=(0,te.useState)(Fr);return(0,te.useEffect)((()=>()=>e.dispose()),[e]),e}function $r({container:e,direction:t,classes:r,onStart:n,onStop:s}){let a=Nr(),i=qr(),o=Or(t);kr((()=>{let t=Fr();i.add(t.dispose);let l=e.current;if(l&&"idle"!==o.current&&a.current)return t.dispose(),n.current(o.current),t.add(function(e,t,r,n){let s=r?"enter":"leave",a=Fr(),i=void 0!==n?function(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}(n):()=>{};"enter"===s&&(e.removeAttribute("hidden"),e.style.display="");let o=dr(s,{enter:()=>t.enter,leave:()=>t.leave}),l=dr(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=dr(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Br(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Ur(e,...o,...c),a.nextFrame((()=>{Br(e,...c),Ur(e,...l),function(e,t){let r=Fr();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:s}=getComputedStyle(e),[a,i]=[n,s].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(a+i!==0){let n=r.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),n())}))}else t();r.add((()=>t())),r.dispose}(e,(()=>(Br(e,...o),Ur(e,...t.entered),i())))})),a.dispose}(l,r.current,"enter"===o.current,(()=>{t.dispose(),s.current(o.current)}))),t.dispose}),[t])}function Ir(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Hr=(0,te.createContext)(null);Hr.displayName="TransitionContext";var Wr,Dr=((Wr=Dr||{}).Visible="visible",Wr.Hidden="hidden",Wr);let zr=(0,te.createContext)(null);function Vr(e){return"children"in e?Vr(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Jr(e,t){let r=Or(e),n=(0,te.useRef)([]),s=Nr(),a=qr(),i=Lr(((e,t=mr.Hidden)=>{let i=n.current.findIndex((({el:t})=>t===e));-1!==i&&(dr(t,{[mr.Unmount](){n.current.splice(i,1)},[mr.Hidden](){n.current[i].state="hidden"}}),a.microTask((()=>{var e;!Vr(n)&&s.current&&(null==(e=r.current)||e.call(r))})))})),o=Lr((e=>{let t=n.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):n.current.push({el:e,state:"visible"}),()=>i(e,mr.Unmount)})),l=(0,te.useRef)([]),c=(0,te.useRef)(Promise.resolve()),u=(0,te.useRef)({enter:[],leave:[],idle:[]}),d=Lr(((e,r,n)=>{l.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter((([t])=>t!==e))),null==t||t.chains.current[r].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[r].push([e,new Promise((e=>{Promise.all(u.current[r].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===r?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>n(r))):n(r)})),p=Lr(((e,t,r)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>r(t)))}));return(0,te.useMemo)((()=>({children:n,register:o,unregister:i,onStart:d,onStop:p,wait:c,chains:u})),[o,i,n,d,p,u,c])}function Zr(){}zr.displayName="NestingContext";let Yr=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Gr(e){var t;let r={};for(let n of Yr)r[n]=null!=(t=e[n])?t:Zr;return r}let Kr=fr.RenderStrategy,Qr=wr((function(e,t){let{beforeEnter:r,afterEnter:n,beforeLeave:s,afterLeave:a,enter:i,enterFrom:o,enterTo:l,entered:c,leave:u,leaveFrom:d,leaveTo:p,...h}=e,f=(0,te.useRef)(null),m=Ar(f,t),y=h.unmount?mr.Unmount:mr.Hidden,{show:v,appear:g,initial:w}=function(){let e=(0,te.useContext)(Hr);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[x,b]=(0,te.useState)(v?"visible":"hidden"),j=function(){let e=(0,te.useContext)(zr);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:E,unregister:R}=j,S=(0,te.useRef)(null);(0,te.useEffect)((()=>E(f)),[E,f]),(0,te.useEffect)((()=>{if(y===mr.Hidden&&f.current)return v&&"visible"!==x?void b("visible"):dr(x,{hidden:()=>R(f),visible:()=>E(f)})}),[x,f,E,R,v,y]);let _=Or({enter:Ir(i),enterFrom:Ir(o),enterTo:Ir(l),entered:Ir(c),leave:Ir(u),leaveFrom:Ir(d),leaveTo:Ir(p)}),C=function(e){let t=(0,te.useRef)(Gr(e));return(0,te.useEffect)((()=>{t.current=Gr(e)}),[e]),t}({beforeEnter:r,afterEnter:n,beforeLeave:s,afterLeave:a}),P=Tr();(0,te.useEffect)((()=>{if(P&&"visible"===x&&null===f.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[f,x,P]);let k=w&&!g,N=!P||k||S.current===v?"idle":v?"enter":"leave",O=Lr((e=>dr(e,{enter:()=>C.current.beforeEnter(),leave:()=>C.current.beforeLeave(),idle:()=>{}}))),T=Lr((e=>dr(e,{enter:()=>C.current.afterEnter(),leave:()=>C.current.afterLeave(),idle:()=>{}}))),L=Jr((()=>{b("hidden"),R(f)}),j);$r({container:f,classes:_,direction:N,onStart:Or((e=>{L.onStart(f,e,O)})),onStop:Or((e=>{L.onStop(f,e,T),"leave"===e&&!Vr(L)&&(b("hidden"),R(f))}))}),(0,te.useEffect)((()=>{!k||(y===mr.Hidden?S.current=null:S.current=v)}),[v,k,x]);let M=h,A={ref:m};return g&&v&&Pr.isServer&&(M={...M,className:ur(h.className,..._.current.enter,..._.current.enterFrom)}),te.createElement(zr.Provider,{value:L},te.createElement(Sr,{value:dr(x,{visible:Er.Open,hidden:Er.Closed})},yr({ourProps:A,theirProps:M,defaultTag:"div",features:Kr,visible:"visible"===x,name:"Transition.Child"})))})),Xr=wr((function(e,t){let{show:r,appear:n=!1,unmount:s,...a}=e,i=(0,te.useRef)(null),o=Ar(i,t);Tr();let l=Rr();if(void 0===r&&null!==l&&(r=dr(l,{[Er.Open]:!0,[Er.Closed]:!1})),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=(0,te.useState)(r?"visible":"hidden"),d=Jr((()=>{u("hidden")})),[p,h]=(0,te.useState)(!0),f=(0,te.useRef)([r]);kr((()=>{!1!==p&&f.current[f.current.length-1]!==r&&(f.current.push(r),h(!1))}),[f,r]);let m=(0,te.useMemo)((()=>({show:r,appear:n,initial:p})),[r,n,p]);(0,te.useEffect)((()=>{if(r)u("visible");else if(Vr(d)){let e=i.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[r,d]);let y={unmount:s};return te.createElement(zr.Provider,{value:d},te.createElement(Hr.Provider,{value:m},yr({ourProps:{...y,as:te.Fragment,children:te.createElement(Qr,{ref:o,...y,...a})},theirProps:{},defaultTag:te.Fragment,features:Kr,visible:"visible"===c,name:"Transition"})))})),en=wr((function(e,t){let r=null!==(0,te.useContext)(Hr),n=null!==Rr();return te.createElement(te.Fragment,null,!r&&n?te.createElement(Xr,{ref:t,...e}):te.createElement(Qr,{ref:t,...e}))})),tn=Object.assign(Xr,{Child:en,Root:Xr});const rn=(e,t=[],...r)=>(0,a.useSelect)((t=>{var n,s;return null===(n=(s=t(o))[e])||void 0===n?void 0:n.call(s,...r)}),t),nn=({thumbnail:e,wistiaEmbedPermission:t,upsellLink:r,upsellLabel:n=(0,ee.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */ (0,ee.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),newToText:a="Yoast SEO Premium",ctbId:i="f6a84663-465f-4cb5-8ba5-f7a6d72224b2"})=>{const{initialFocus:o}=(0,s.useModalContext)();return(0,ht.jsxs)(ht.Fragment,{children:[(0,ht.jsxs)("div",{className:"yst-introduction-gradient yst-text-center",children:[(0,ht.jsx)("div",{className:"yst-relative yst-w-full",children:(0,ht.jsx)(Mt,{videoId:"th5fg52ry8",thumbnail:e,wistiaEmbedPermission:t,className:"yst-rounded-b-none yst-drop-shadow-none yst-rounded-t-2xl yst-pt-[56.25%]"})}),(0,ht.jsx)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium yst-flex yst-flex-col yst-items-center",children:(0,ht.jsxs)("span",{className:"yst-modal-uppercase yst-flex yst-gap-2 yst-items-center",children:[(0,ht.jsx)("span",{className:"yst-logo-icon"}),a]})})]}),(0,ht.jsxs)("div",{className:"yst-flex yst-flex-col yst-items-center yst-max-w-lg yst-mx-auto sm:yst-px-0 yst-px-6",children:[(0,ht.jsxs)("div",{className:"yst-mt-4 yst-text-center",children:[(0,ht.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,ee.__)("Fix broken links before they hurt your SEO","wordpress-seo")}),(0,ht.jsx)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:(0,ee.sprintf)(/* translators: %1$s translates to Yoast SEO Premium’s */ (0,ee.__)("Deleted or moved a page? Broken links send visitors to dead ends and cost you valuable traffic. %1$s Redirect Manager automatically sends them to the right page","wordpress-seo"),"Yoast SEO Premium's")})]}),(0,ht.jsx)("div",{className:"yst-w-full yst-flex yst-mt-6",children:(0,ht.jsxs)(s.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:r,target:"_blank",ref:o,"data-action":"load-nfd-ctb","data-ctb-id":i,children:[(0,ht.jsx)(ft,{className:"yst--ms-1 yst-me-2 yst-h-5 yst-w-5"}),n,(0,ht.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ @@ -1,17 +1,16 @@ -(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var n=typeof s;if("string"===n||"number"===n)e.push(s);else if(Array.isArray(s)){if(s.length){var o=i.apply(null,s);o&&e.push(o)}}else if("object"===n){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var a in s)r.call(s,a)&&s[a]&&e.push(a)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(s=function(){return i}.apply(t,[]))||(e.exports=s)}()}},t={};function s(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.components,t=window.wp.data,r=window.wp.domReady;var i=s.n(r);const n=window.wp.element,o=window.yoast.uiLibrary,a=window.lodash,l=window.wp.i18n,c=window.yoast.reduxJsToolkit,d="adminUrl",p=(0,c.createSlice)({name:d,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),u=(p.getInitialState,{selectAdminUrl:e=>(0,a.get)(e,d,"")});u.selectAdminLink=(0,c.createSelector)([u.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),p.actions,p.reducer,window.wp.apiFetch;const m="hasConsent",h=(0,c.createSlice)({name:m,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),y=(h.getInitialState,h.actions,h.reducer,window.wp.url),g="linkParams",f=(0,c.createSlice)({name:g,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),w=f.getInitialState,x={selectLinkParam:(e,t,s={})=>(0,a.get)(e,`${g}.${t}`,s),selectLinkParams:e=>(0,a.get)(e,g,{})};x.selectLink=(0,c.createSelector)([x.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,y.addQueryArgs)(t,{...e,...s})));const v=f.actions,j=f.reducer,_=(0,c.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:r,description:i})=>({payload:{id:e||(0,c.nanoid)(),variant:t,size:s,title:r||"",description:i}})},removeNotification:(e,{payload:t})=>(0,a.omit)(e,t)}}),b=(_.getInitialState,_.actions,_.reducer,"pluginUrl"),k=(0,c.createSlice)({name:b,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),E=(k.getInitialState,{selectPluginUrl:e=>(0,a.get)(e,b,"")});E.selectImageLink=(0,c.createSelector)([E.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,a.trimEnd)(e,"/"),(0,a.trim)(t,"/"),(0,a.trimStart)(s,"/")].join("/"))),k.actions,k.reducer;const S="loading",R="wistiaEmbedPermission",N=(0,c.createSlice)({name:R,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${R}/request`,(e=>{e.status=S})),e.addCase(`${R}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${R}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,a.get)(t,"error.code",500),message:(0,a.get)(t,"error.message","Unknown")}}))}});var P;N.getInitialState,N.actions,N.reducer;const C=(0,c.createSlice)({name:"documentTitle",initialState:(0,a.defaultTo)(null===(P=document)||void 0===P?void 0:P.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),q=(C.getInitialState,C.actions,C.reducer,window.React),L=q.forwardRef((function(e,t){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),O=(e,t)=>{try{return(0,n.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}};var A=s(4184),M=s.n(A);const H=q.forwardRef((function(e,t){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))})),B=window.yoast.propTypes;var $=s.n(B);const F=window.ReactJSXRuntime,I=({link:e})=>{const t=(0,n.useMemo)((()=>O((0,l.sprintf)(/* translators: %1$s expands to "Yoast SEO" academy, which is a clickable link. */ -(0,l.__)("Want to learn SEO from Team Yoast? Check out our %1$s!","wordpress-seo"),"<link/>"),{link:(0,F.jsx)("a",{href:e,target:"_blank",rel:"noopener",children:"Yoast SEO academy"})})),[]);return(0,F.jsxs)(o.Paper,{as:"div",className:"yst-p-6 yst-space-y-3",children:[(0,F.jsx)(o.Title,{as:"h2",size:"4",className:"yst-text-base yst-text-primary-500",children:(0,l.__)("Learn SEO","wordpress-seo")}),(0,F.jsxs)("p",{children:[t,(0,F.jsx)("br",{}),(0,l.__)("We have both free and premium online courses to learn everything you need to know about SEO.","wordpress-seo")]}),(0,F.jsxs)(o.Link,{href:e,className:"yst-block yst-font-medium",target:"_blank",rel:"noopener",children:[(0,l.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ -(0,l.__)("Check out %1$s","wordpress-seo"),"Yoast SEO academy"),(0,F.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,l.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,F.jsx)(H,{className:"yst-w-3 yst-h-3 yst-mb-[1px] yst-icon-rtl yst-inline-block"})]})]})};I.propTypes={link:$().string.isRequired},q.forwardRef((function(e,t){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),q.forwardRef((function(e,t){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),q.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),$().string.isRequired,$().string.isRequired,$().shape({src:$().string.isRequired,width:$().string,height:$().string}).isRequired,$().shape({value:$().bool.isRequired,status:$().string.isRequired,set:$().func.isRequired}).isRequired,$().string,$().string,$().string;const T=({handleRefreshClick:e,supportLink:t})=>(0,F.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,F.jsx)(o.Button,{onClick:e,children:(0,l.__)("Refresh this page","wordpress-seo")}),(0,F.jsx)(o.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,l.__)("Contact support","wordpress-seo")})]});T.propTypes={handleRefreshClick:$().func.isRequired,supportLink:$().string.isRequired};const U=({handleRefreshClick:e,supportLink:t})=>(0,F.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,F.jsx)(o.Button,{className:"yst-order-last",onClick:e,children:(0,l.__)("Refresh this page","wordpress-seo")}),(0,F.jsx)(o.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,l.__)("Contact support","wordpress-seo")})]});U.propTypes={handleRefreshClick:$().func.isRequired,supportLink:$().string.isRequired};const Z=({error:e,children:t=null})=>(0,F.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,F.jsx)(o.Title,{children:(0,l.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,F.jsx)("p",{children:(0,l.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,F.jsx)(o.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,l.__)("Undefined error message.","wordpress-seo")}),(0,F.jsx)("p",{children:(0,l.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});Z.propTypes={error:$().object.isRequired,children:$().node},Z.VerticalButtons=U,Z.HorizontalButtons=T;const W={variant:{lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}},z=({id:e,children:t,title:s,description:r=null,variant:i="2xl"})=>(0,F.jsxs)("section",{id:e,className:W.variant[i].grid,children:[(0,F.jsx)("div",{className:W.variant[i].col1,children:(0,F.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,F.jsx)(o.Title,{as:"h2",size:"4",children:s}),r&&(0,F.jsx)("p",{className:"yst-mt-2",children:r})]})}),(0,F.jsxs)("fieldset",{className:`yst-min-w-0 yst-mt-8 ${W.variant[i].col2}`,children:[(0,F.jsx)("legend",{className:"yst-sr-only",children:s}),(0,F.jsx)("div",{className:"yst-space-y-8",children:t})]})]});var V;function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Y.apply(this,arguments)}z.propTypes={id:$().string,children:$().node.isRequired,title:$().node.isRequired,description:$().node,variant:$().oneOf(Object.keys(W.variant))};const D=e=>q.createElement("svg",Y({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1000 1000"},e),V||(V=q.createElement("path",{fill:"#fff",d:"M500 0C223.9 0 0 223.9 0 500s223.9 500 500 500 500-223.9 500-500S776.1 0 500 0Zm87.2 412.4c0-21.9 4.3-40.2 13.1-54.4s24-27.1 45.9-38.2l10.1-4.9c17.8-9 22.4-16.7 22.4-26 0-11.1-9.5-19.1-25-19.1-18.3 0-32.2 9.5-41.8 28.9l-24.7-24.8c5.4-11.6 14.1-20.9 25.8-28.1a70.8 70.8 0 0 1 38.9-11.1c17.8 0 33.3 4.6 45.9 14.2s19.4 22.7 19.4 39.4c0 26.6-15 42.9-43.1 57.3l-15.7 8c-16.8 8.5-25.1 16-27.4 29.4h85.4v35.4H587.2Zm-82.1 373.3c-157.8 0-285.7-127.9-285.7-285.7s127.9-285.7 285.7-285.7a286.4 286.4 0 0 1 55.9 5.5l-55.9 116.9c-90 0-163.3 73.3-163.3 163.3s73.3 163.3 163.3 163.3a162.8 162.8 0 0 0 106.4-39.6l61.8 107.2a283.9 283.9 0 0 1-168.2 54.8ZM705 704.1l-70.7-122.5H492.9l70.7-122.4H705l70.7 122.4Z"}))),G=window.ReactDOM;var Q,J,X;(J=Q||(Q={})).Pop="POP",J.Push="PUSH",J.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(X||(X={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const K=["post","put","patch","delete"],ee=(new Set(K),["get",...K]);new Set(ee),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),q.Component,q.startTransition,new Promise((()=>{})),q.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var te,se,re,ie;new Map,q.startTransition,G.flushSync,q.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(ie=te||(te={})).UseScrollRestoration="useScrollRestoration",ie.UseSubmit="useSubmit",ie.UseSubmitFetcher="useSubmitFetcher",ie.UseFetcher="useFetcher",ie.useViewTransitionState="useViewTransitionState",(re=se||(se={})).UseFetcher="useFetcher",re.UseFetchers="useFetchers",re.UseScrollRestoration="useScrollRestoration",$().string.isRequired,$().string;$().string.isRequired,$().node;const ne=[(0,l.__)("AI tools included","wordpress-seo"),(0,l.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ -(0,l.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,l.__)("24/7 support","wordpress-seo")],oe=[(0,l.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,l.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,l.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,l.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,l.__)("Internal links and redirect management, easy","wordpress-seo"),(0,l.__)("Access to friendly help when you need it, day or night","wordpress-seo")],ae=(e=!1)=>e?ne:oe,le=(e=!1)=>{if(e)return ne;const t=[...oe];return t[1]=(0,l.__)("Boost visibility for your products, from 10 or 10,000+","wordpress-seo"),t};var ce,de,pe;function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},ue.apply(this,arguments)}const me=e=>q.createElement("svg",ue({xmlns:"http://www.w3.org/2000/svg",id:"star-rating-half_svg__Layer_1","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),ce||(ce=q.createElement("defs",null,q.createElement("style",null,".star-rating-half_svg__cls-1{fill:#fbbf24}"))),de||(de=q.createElement("path",{d:"M250 392.04 98.15 471.87l29-169.09L4.3 183.03l169.77-24.67L250 4.52l75.93 153.84 169.77 24.67-122.85 119.75 29 169.09L250 392.04z",className:"star-rating-half_svg__cls-1"})),pe||(pe=q.createElement("path",{d:"m250 9.04 73.67 149.27.93 1.88 2.08.3 164.72 23.94-119.19 116.19-1.51 1.47.36 2.07 28.14 164.06-147.34-77.46-1.86-1-1.86 1-147.34 77.46 28.14-164.06.36-2.07-1.51-1.47L8.6 184.43l164.72-23.9 2.08-.3.93-1.88L250 9.04m0-9-77.25 156.49L0 181.64l125 121.89-29.51 172L250 394.3l154.51 81.23-29.51-172 125-121.89-172.75-25.11L250 0Z",className:"star-rating-half_svg__cls-1"})),q.createElement("path",{d:"m500 181.64-172.75-25.11L250 0v394.3l154.51 81.23L375 303.48l125-121.84z",style:{fill:"#f3f4f6"}}));function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},he.apply(this,arguments)}const ye=e=>q.createElement("svg",he({xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),q.createElement("path",{d:"m250 0 77.25 156.53L500 181.64 375 303.48l29.51 172.05L250 394.3 95.49 475.53 125 303.48 0 181.64l172.75-25.11L250 0z",style:{fill:"#fbbf24"}}));var ge,fe,we;function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},xe.apply(this,arguments)}const ve=e=>q.createElement("svg",xe({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),ge||(ge=q.createElement("g",{clipPath:"url(#yoast-premium-logo-new_svg__a)"},q.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__b)",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),q.createElement("path",{fill:"#6C2548",d:"m56.016.125-36.06 63.75H64v-53.76c0-4.88-3.414-8.96-7.984-9.987",opacity:.35}),q.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),q.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),q.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),q.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),q.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),q.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),q.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),q.createElement("path",{fill:"#CD82AB",d:"M57.402 58.086H43.888v1.197h13.514v-1.197ZM53.75 53.366l-3.103-5.76v.004l-.004-.004-3.104 5.76-4.777-3.42 1.126 7.702h13.514l1.126-7.702-4.777 3.42Z"}))),fe||(fe=q.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),we||(we=q.createElement("defs",null,q.createElement("linearGradient",{id:"yoast-premium-logo-new_svg__b",x1:-2.912,x2:68.509,y1:25.843,y2:38.438,gradientUnits:"userSpaceOnUse"},q.createElement("stop",{stopColor:"#5D237A"}),q.createElement("stop",{offset:.08,stopColor:"#702175"}),q.createElement("stop",{offset:.22,stopColor:"#872070"}),q.createElement("stop",{offset:.36,stopColor:"#981E6C"}),q.createElement("stop",{offset:.51,stopColor:"#A21E69"}),q.createElement("stop",{offset:.7,stopColor:"#A61E69"})),q.createElement("clipPath",{id:"yoast-premium-logo-new_svg__a"},q.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"})))));var je,_e,be;function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},ke.apply(this,arguments)}const Ee=e=>q.createElement("svg",ke({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),je||(je=q.createElement("g",{clipPath:"url(#woo-seo-logo-new_svg__a)"},q.createElement("path",{fill:"#0E1E65",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),q.createElement("path",{fill:"#0075B3",d:"M56.016.253 19.956 64H64V10.24c0-4.88-3.414-8.96-7.984-9.987Z"}),q.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),q.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),q.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),q.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),q.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),q.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),q.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),q.createElement("path",{fill:"#A1CCE3",d:"M58.102 46.806a1.26 1.26 0 0 0-1.219.938l-.157.582a40.97 40.97 0 0 0-10.857 1.261c-.013 0-.023.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.86c.083.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.011h10.592a.507.507 0 0 0 .506-.505c0-1.149-.775-2.15-1.888-2.442L57.862 48a.25.25 0 0 1 .243-.186h.932a.507.507 0 0 0 0-1.01h-.931l-.004.002ZM57.018 59.92a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Z"}))),_e||(_e=q.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),be||(be=q.createElement("defs",null,q.createElement("clipPath",{id:"woo-seo-logo-new_svg__a"},q.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"}))))),Se=q.forwardRef((function(e,t){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),q.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))})),Re=({link:e,linkProps:t,isPromotionActive:s,isWooCommerceActive:r})=>{const i=r?le:ae,a=(0,n.useMemo)((()=>r?(0,l.__)("SEO that scales with your product catalog.","wordpress-seo"):(0,l.__)("Now with Local, News & Video SEO + 1 Google Docs seat!","wordpress-seo")),[r]);let c=(0,l.__)("Buy now","wordpress-seo");const d=O(r?(0,l.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ +(()=>{var e={4184:(e,s)=>{var t;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],s=0;s<arguments.length;s++){var t=arguments[s];if(t){var o=typeof t;if("string"===o||"number"===o)e.push(t);else if(Array.isArray(t)){if(t.length){var n=i.apply(null,t);n&&e.push(n)}}else if("object"===o){if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]")){e.push(t.toString());continue}for(var a in t)r.call(t,a)&&t[a]&&e.push(a)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(t=function(){return i}.apply(s,[]))||(e.exports=t)}()}},s={};function t(r){var i=s[r];if(void 0!==i)return i.exports;var o=s[r]={exports:{}};return e[r](o,o.exports,t),o.exports}t.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return t.d(s,{a:s}),s},t.d=(e,s)=>{for(var r in s)t.o(s,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:s[r]})},t.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),(()=>{"use strict";const e=window.wp.components,s=window.wp.data,r=window.wp.domReady;var i=t.n(r);const o=window.wp.element,n=window.yoast.uiLibrary,a=window.lodash,l=window.wp.i18n,c=window.yoast.reduxJsToolkit,d="adminUrl",p=(0,c.createSlice)({name:d,initialState:"",reducers:{setAdminUrl:(e,{payload:s})=>s}}),u=(p.getInitialState,{selectAdminUrl:e=>(0,a.get)(e,d,"")});u.selectAdminLink=(0,c.createSelector)([u.selectAdminUrl,(e,s)=>s],((e,s="")=>{try{return new URL(s,e).href}catch(s){return e}})),p.actions,p.reducer,window.wp.apiFetch;const m="hasConsent",h=(0,c.createSlice)({name:m,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:s})=>{e.hasConsent=s},setAiGeneratorConsentEndpoint:(e,{payload:s})=>{e.endpoint=s}}}),y=(h.getInitialState,h.actions,h.reducer,window.wp.url),g="linkParams",f=(0,c.createSlice)({name:g,initialState:{},reducers:{setLinkParams:(e,{payload:s})=>s}}),w=f.getInitialState,x={selectLinkParam:(e,s,t={})=>(0,a.get)(e,`${g}.${s}`,t),selectLinkParams:e=>(0,a.get)(e,g,{})};x.selectLink=(0,c.createSelector)([x.selectLinkParams,(e,s)=>s,(e,s,t={})=>t],((e,s,t)=>(0,y.addQueryArgs)(s,{...e,...t})));const v=f.actions,_=f.reducer,j=(0,c.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:s})=>{e[s.id]={id:s.id,variant:s.variant,size:s.size,title:s.title,description:s.description}},prepare:({id:e,variant:s="info",size:t="default",title:r,description:i})=>({payload:{id:e||(0,c.nanoid)(),variant:s,size:t,title:r||"",description:i}})},removeNotification:(e,{payload:s})=>(0,a.omit)(e,s)}}),b=(j.getInitialState,j.actions,j.reducer,"pluginUrl"),k=(0,c.createSlice)({name:b,initialState:"",reducers:{setPluginUrl:(e,{payload:s})=>s}}),S=(k.getInitialState,{selectPluginUrl:e=>(0,a.get)(e,b,"")});S.selectImageLink=(0,c.createSelector)([S.selectPluginUrl,(e,s,t="images")=>t,(e,s)=>s],((e,s,t)=>[(0,a.trimEnd)(e,"/"),(0,a.trim)(s,"/"),(0,a.trimStart)(t,"/")].join("/"))),k.actions,k.reducer;const E="loading",R="wistiaEmbedPermission",C=(0,c.createSlice)({name:R,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:s})=>{e.value=Boolean(s)}},extraReducers:e=>{e.addCase(`${R}/request`,(e=>{e.status=E})),e.addCase(`${R}/success`,((e,{payload:s})=>{e.status="success",e.value=Boolean(s&&s.value)})),e.addCase(`${R}/error`,((e,{payload:s})=>{e.status="error",e.value=Boolean(s&&s.value),e.error={code:(0,a.get)(s,"error.code",500),message:(0,a.get)(s,"error.message","Unknown")}}))}});var q;C.getInitialState,C.actions,C.reducer;const P=(0,c.createSlice)({name:"documentTitle",initialState:(0,a.defaultTo)(null===(q=document)||void 0===q?void 0:q.title,""),reducers:{setDocumentTitle:(e,{payload:s})=>s}}),N=(P.getInitialState,P.actions,P.reducer,window.React),A=N.forwardRef((function(e,s){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),L=(e,s)=>{try{return(0,o.createInterpolateElement)(e,s)}catch(s){return console.error("Error in translation for:",e,s),e}};var O=t(4184),M=t.n(O);const H=N.forwardRef((function(e,s){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))})),F=window.yoast.propTypes;var B=t.n(F);const $=window.ReactJSXRuntime,I=({link:e})=>{const s=(0,o.useMemo)((()=>L((0,l.sprintf)(/* translators: %1$s expands to "Yoast SEO" academy, which is a clickable link. */ +(0,l.__)("Want to learn SEO from Team Yoast? Check out our %1$s!","wordpress-seo"),"<link/>"),{link:(0,$.jsx)("a",{href:e,target:"_blank",rel:"noopener",children:"Yoast SEO academy"})})),[]);return(0,$.jsxs)(n.Paper,{as:"div",className:"yst-p-6 yst-space-y-3",children:[(0,$.jsx)(n.Title,{as:"h2",size:"4",className:"yst-text-base yst-text-primary-500",children:(0,l.__)("Learn SEO","wordpress-seo")}),(0,$.jsxs)("p",{children:[s,(0,$.jsx)("br",{}),(0,l.__)("We have both free and premium online courses to learn everything you need to know about SEO.","wordpress-seo")]}),(0,$.jsxs)(n.Link,{href:e,className:"yst-block yst-font-medium",target:"_blank",rel:"noopener",children:[(0,l.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ +(0,l.__)("Check out %1$s","wordpress-seo"),"Yoast SEO academy"),(0,$.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ +(0,l.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,$.jsx)(H,{className:"yst-w-3 yst-h-3 yst-mb-[1px] yst-icon-rtl yst-inline-block"})]})]})};I.propTypes={link:B().string.isRequired},N.forwardRef((function(e,s){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))}));const T=N.forwardRef((function(e,s){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),N.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));B().string.isRequired,B().string.isRequired,B().shape({src:B().string.isRequired,width:B().string,height:B().string}).isRequired,B().shape({value:B().bool.isRequired,status:B().string.isRequired,set:B().func.isRequired}).isRequired,B().string,B().string,B().string;const U=({handleRefreshClick:e,supportLink:s})=>(0,$.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,$.jsx)(n.Button,{onClick:e,children:(0,l.__)("Refresh this page","wordpress-seo")}),(0,$.jsx)(n.Button,{variant:"secondary",as:"a",href:s,target:"_blank",rel:"noopener",children:(0,l.__)("Contact support","wordpress-seo")})]});U.propTypes={handleRefreshClick:B().func.isRequired,supportLink:B().string.isRequired};const z=({handleRefreshClick:e,supportLink:s})=>(0,$.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,$.jsx)(n.Button,{className:"yst-order-last",onClick:e,children:(0,l.__)("Refresh this page","wordpress-seo")}),(0,$.jsx)(n.Button,{variant:"secondary",as:"a",href:s,target:"_blank",rel:"noopener",children:(0,l.__)("Contact support","wordpress-seo")})]});z.propTypes={handleRefreshClick:B().func.isRequired,supportLink:B().string.isRequired};const W=({error:e,children:s=null})=>(0,$.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,$.jsx)(n.Title,{children:(0,l.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,$.jsx)("p",{children:(0,l.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,$.jsx)(n.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,l.__)("Undefined error message.","wordpress-seo")}),(0,$.jsx)("p",{children:(0,l.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),s]});W.propTypes={error:B().object.isRequired,children:B().node},W.VerticalButtons=z,W.HorizontalButtons=U;const Z={variant:{lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}},V=({id:e,children:s,title:t,description:r=null,variant:i="2xl"})=>(0,$.jsxs)("section",{id:e,className:Z.variant[i].grid,children:[(0,$.jsx)("div",{className:Z.variant[i].col1,children:(0,$.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,$.jsx)(n.Title,{as:"h2",size:"4",children:t}),r&&(0,$.jsx)("p",{className:"yst-mt-2",children:r})]})}),(0,$.jsxs)("fieldset",{className:`yst-min-w-0 yst-mt-8 ${Z.variant[i].col2}`,children:[(0,$.jsx)("legend",{className:"yst-sr-only",children:t}),(0,$.jsx)("div",{className:"yst-space-y-8",children:s})]})]});V.propTypes={id:B().string,children:B().node.isRequired,title:B().node.isRequired,description:B().node,variant:B().oneOf(Object.keys(Z.variant))};const Y=window.ReactDOM;var D,G,Q;(G=D||(D={})).Pop="POP",G.Push="PUSH",G.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(Q||(Q={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const J=["post","put","patch","delete"],X=(new Set(J),["get",...J]);new Set(X),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),N.Component,N.startTransition,new Promise((()=>{})),N.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var K,ee,se,te;new Map,N.startTransition,Y.flushSync,N.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(te=K||(K={})).UseScrollRestoration="useScrollRestoration",te.UseSubmit="useSubmit",te.UseSubmitFetcher="useSubmitFetcher",te.UseFetcher="useFetcher",te.useViewTransitionState="useViewTransitionState",(se=ee||(ee={})).UseFetcher="useFetcher",se.UseFetchers="useFetchers",se.UseScrollRestoration="useScrollRestoration",B().string.isRequired,B().string;B().string.isRequired,B().node;const re=N.forwardRef((function(e,s){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),N.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),ie=[(0,l.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,l.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,l.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,l.__)("Optimize pages for multiple keywords with guidance","wordpress-seo")],oe=[(0,l.__)("Add product details to help your listings stand out","wordpress-seo"),(0,l.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,l.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,l.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo")],ne=[(0,l.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,l.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,l.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,l.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,l.__)("Internal links and redirect management, easy","wordpress-seo"),(0,l.__)("Access to friendly help when you need it, day or night","wordpress-seo")],ae=(e=!1)=>e?ie:ne,le=(e=!1)=>{if(e)return oe;const s=[...ne];return s[1]=(0,l.__)("Boost visibility for your products, from 10 or 10,000+","wordpress-seo"),s};var ce,de,pe;function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ue.apply(this,arguments)}const me=e=>N.createElement("svg",ue({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),ce||(ce=N.createElement("g",{clipPath:"url(#yoast-premium-logo-new_svg__a)"},N.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__b)",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),N.createElement("path",{fill:"#6C2548",d:"m56.016.125-36.06 63.75H64v-53.76c0-4.88-3.414-8.96-7.984-9.987",opacity:.35}),N.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),N.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),N.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),N.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),N.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),N.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),N.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),N.createElement("path",{fill:"#CD82AB",d:"M57.402 58.086H43.888v1.197h13.514v-1.197ZM53.75 53.366l-3.103-5.76v.004l-.004-.004-3.104 5.76-4.777-3.42 1.126 7.702h13.514l1.126-7.702-4.777 3.42Z"}))),de||(de=N.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),pe||(pe=N.createElement("defs",null,N.createElement("linearGradient",{id:"yoast-premium-logo-new_svg__b",x1:-2.912,x2:68.509,y1:25.843,y2:38.438,gradientUnits:"userSpaceOnUse"},N.createElement("stop",{stopColor:"#5D237A"}),N.createElement("stop",{offset:.08,stopColor:"#702175"}),N.createElement("stop",{offset:.22,stopColor:"#872070"}),N.createElement("stop",{offset:.36,stopColor:"#981E6C"}),N.createElement("stop",{offset:.51,stopColor:"#A21E69"}),N.createElement("stop",{offset:.7,stopColor:"#A61E69"})),N.createElement("clipPath",{id:"yoast-premium-logo-new_svg__a"},N.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"})))));var he,ye,ge;function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},fe.apply(this,arguments)}const we=e=>N.createElement("svg",fe({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),he||(he=N.createElement("g",{clipPath:"url(#woo-seo-logo-new_svg__a)"},N.createElement("path",{fill:"#0E1E65",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),N.createElement("path",{fill:"#0075B3",d:"M56.016.253 19.956 64H64V10.24c0-4.88-3.414-8.96-7.984-9.987Z"}),N.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),N.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),N.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),N.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),N.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),N.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),N.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),N.createElement("path",{fill:"#A1CCE3",d:"M58.102 46.806a1.26 1.26 0 0 0-1.219.938l-.157.582a40.97 40.97 0 0 0-10.857 1.261c-.013 0-.023.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.86c.083.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.011h10.592a.507.507 0 0 0 .506-.505c0-1.149-.775-2.15-1.888-2.442L57.862 48a.25.25 0 0 1 .243-.186h.932a.507.507 0 0 0 0-1.01h-.931l-.004.002ZM57.018 59.92a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Z"}))),ye||(ye=N.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),ge||(ge=N.createElement("defs",null,N.createElement("clipPath",{id:"woo-seo-logo-new_svg__a"},N.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"}))))),xe=({link:e,linkProps:s,isPromotionActive:t,isWooCommerceActive:r})=>{const i=r?le:ae,a=(0,o.useMemo)((()=>r?(0,l.__)("Grow your store's visibility!","wordpress-seo"):(0,l.__)("Spend less time on SEO tasks!","wordpress-seo")),[r]),c=(0,o.useMemo)((()=>r?(0,l.__)("Help ready-to-buy shoppers and search engines find your product.","wordpress-seo"):(0,l.__)("Optimize your site faster, smarter, and with more confidence.","wordpress-seo")),[r]);let d=(0,l.__)("Buy now","wordpress-seo");const p=(0,o.useMemo)((()=>r?(0,l.__)("Less friction. Smarter optimization.","wordpress-seo"):(0,l.__)("Less friction. Faster publishing.","wordpress-seo")),[r]),u=L(r?(0,l.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ (0,l.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast WooCommerce SEO"):(0,l.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ -(0,l.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,F.jsx)("span",{className:"yst-whitespace-nowrap"})}),p=s("black-friday-promotion");return p&&(c=(0,l.__)("Buy now for 30% off","wordpress-seo")),(0,F.jsxs)("div",{className:M()("yst-p-6 yst-rounded-lg yst-text-white yst-shadow",r?"yst-bg-woo-dark":"yst-bg-primary-500"),children:[(0,F.jsx)("figure",{className:"yst-logo-square yst-w-16 yst-h-16 yst-mx-auto yst-overflow-hidden yst-relative yst-z-10 yst-mt-[-2.6rem]",children:r?(0,F.jsx)(Ee,{}):(0,F.jsx)(ve,{})}),p&&(0,F.jsx)("div",{className:"sidebar__sale_banner_container",children:(0,F.jsx)("div",{className:"sidebar__sale_banner",children:(0,F.jsx)("span",{className:"banner_text",children:(0,l.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})})}),(0,F.jsx)(o.Title,{as:"h2",className:"yst-mt-6 yst-text-base yst-font-extrabold yst-text-white",children:d}),(0,F.jsx)("p",{className:"yst-mt-2 yst-font-medium",children:a}),(0,F.jsx)("ul",{className:"yst-list-outside yst-text-white yst-mt-2",children:i(!0).map(((e,t)=>(0,F.jsxs)("li",{className:"yst-flex yst-items-center yst-gap-2",children:[(0,F.jsx)(Se,{className:"yst-w-4 yst-h-4 yst-text-green-400"}),(0,F.jsx)("span",{children:e})]},`upsell-benefit-${t}`)))}),(0,F.jsxs)(o.Button,{as:"a",variant:"upsell",href:e,target:"_blank",rel:"noopener",className:"yst-flex yst-justify-center yst-gap-2 yst-mt-4 focus:yst-ring-offset-primary-500",...t,children:[(0,F.jsx)("span",{children:c}),(0,F.jsx)(L,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})]}),(0,F.jsx)("p",{className:"yst-text-center yst-text-xs yst-mx-2 yst-font-normal yst-leading-5 yst-italic yst-mt-2",children:(0,l.__)("30-day money back guarantee","wordpress-seo")}),(0,F.jsx)("hr",{className:"yst-border-t yst-border-primary-300 yst-my-4"}),(0,F.jsx)("a",{className:"yst-block yst-mt-4 yst-no-underline",href:"https://www.g2.com/products/yoast-yoast/reviews",target:"_blank",rel:"noopener noreferrer",children:(0,F.jsxs)("span",{className:"yst-flex yst-gap-2 yst-mt-2 yst-items-center",children:[(0,F.jsx)(D,{className:"yst-w-5 yst-h-5"}),(0,F.jsxs)("span",{className:"yst-flex yst-gap-1",children:[(0,F.jsx)(ye,{className:"yst-w-5 yst-h-5"}),(0,F.jsx)(ye,{className:"yst-w-5 yst-h-5"}),(0,F.jsx)(ye,{className:"yst-w-5 yst-h-5"}),(0,F.jsx)(ye,{className:"yst-w-5 yst-h-5"}),(0,F.jsx)(me,{className:"yst-w-5 yst-h-5"})]}),(0,F.jsx)("span",{className:"yst-text-sm yst-font-semibold yst-text-white",children:"4.6 / 5"})]})})]})};Re.propTypes={link:$().string.isRequired,linkProps:$().object.isRequired,isPromotionActive:$().func.isRequired},q.forwardRef((function(e,t){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),q.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),$().string.isRequired,$().object,$().func.isRequired,$().bool.isRequired;const Ne=({premiumLink:e,premiumUpsellConfig:t,academyLink:s,isPromotionActive:r,isWooCommerceActive:i})=>(0,F.jsxs)("div",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 xl:yst-grid-cols-1 yst-gap-4",children:[(0,F.jsx)(Re,{link:e,linkProps:t,isPromotionActive:r,isWooCommerceActive:i}),(0,F.jsx)(I,{link:s})]});Ne.propTypes={premiumLink:$().string.isRequired,premiumUpsellConfig:$().object.isRequired,academyLink:$().string.isRequired,isPromotionActive:$().func.isRequired,isWooCommerceActive:$().bool.isRequired},q.forwardRef((function(e,t){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),$().bool.isRequired,$().func,$().func,$().string.isRequired,$().string.isRequired,$().string.isRequired,$().string.isRequired;window.yoast.reactHelmet;$().string.isRequired,$().shape({src:$().string.isRequired,width:$().string,height:$().string}).isRequired,$().shape({value:$().bool.isRequired,status:$().string.isRequired,set:$().func.isRequired}).isRequired,$().bool;const Pe=q.forwardRef((function(e,t){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),q.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));$().bool.isRequired,$().func.isRequired,$().func,$().string,$().func.isRequired,$().string.isRequired,$().string.isRequired,$().string.isRequired,$().string.isRequired;const Ce="@yoast/support",qe=(e,s=[],...r)=>(0,t.useSelect)((t=>{var s,i;return null===(s=(i=t(Ce))[e])||void 0===s?void 0:s.call(i,...r)}),s),Le=({id:e,children:t,title:s,description:r=null})=>{const i=qe("selectPreference",[],"isPremium");return(0,F.jsx)(z,{id:e,title:s,description:r,variant:i?"lg":"xl",children:t})};Le.propTypes={id:$().string,children:$().node.isRequired,title:$().node.isRequired,description:$().node};const Oe=({imageSrc:e,title:t,description:s,linkHref:r,linkText:i})=>(0,F.jsxs)(o.Card,{children:[(0,F.jsx)(o.Card.Header,{className:"yst-h-auto yst-p-0",children:(0,F.jsx)("img",{className:"yst-w-full yst-transition yst-duration-200",src:e,alt:"",width:500,height:250,loading:"lazy",decoding:"async"})}),(0,F.jsxs)(o.Card.Content,{className:"yst-flex yst-flex-col yst-gap-3",children:[(0,F.jsx)(o.Title,{as:"h3",children:t}),s]}),(0,F.jsxs)(o.Link,{href:r,className:"yst-flex yst-items-center yst-mt-[18px] yst-no-underline yst-font-medium yst-text-primary-500",target:"_blank",children:[i,(0,F.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ -(0,l.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,F.jsx)(Pe,{className:"yst-h-4 yst-w-4 yst-ms-1 yst-icon-rtl"})]})]});Oe.propTypes={imageSrc:$().string.isRequired,title:$().string.isRequired,description:$().string.isRequired,linkHref:$().string.isRequired,linkText:$().string.isRequired};const Ae=()=>{document.querySelector("#beacon-container .BeaconFabButtonFrame iframe")?window.Beacon("open"):document.querySelector("#yoast-helpscout-beacon button").click()},Me=()=>{const e=qe("selectPreference",[],"hasPremiumSubscription",!1),s=qe("selectPreference",[],"hasWooSeoSubscription",!1),r=qe("selectPreference",[],"isWooCommerceActive",!1),i=e||s,a=qe("selectUpsellSettingsAsProps"),c=qe("selectPreference",[],"pluginUrl",""),d=qe("selectLinkParams"),p=qe("selectLink",[],"https://yoa.st/3t6"),u=qe("selectLink",[],"https://yoa.st/jj"),m=qe("selectLink",[],"https://yoa.st/admin-sidebar-upsell-woocommerce"),h=qe("selectLink",[],"https://yoa.st/help-center-support-card"),g=qe("selectLink",[],"https://yoa.st/support-forums-support-card"),f=qe("selectLink",[],"https://yoa.st/github-repository-support-card"),w=qe("selectLink",[],"https://yoa.st/contact-support-to-unlock-premium-support-section"),{isPromotionActive:x}=(0,t.useSelect)(Ce),v=(0,n.useMemo)((()=>[{title:(0,F.jsxs)("span",{children:["How do I set up ",(0,F.jsx)("strong",{children:"canonical URLs"}),"?"]}),link:(0,y.addQueryArgs)("https://yoa.st/canonical-urls-support-faq",d)},{title:(0,F.jsxs)("span",{children:["How do I use ",(0,F.jsx)("strong",{children:"XML sitemaps"}),"?"]}),link:(0,y.addQueryArgs)("https://yoa.st/xml-sitemaps-support-faq",d)},{title:(0,F.jsxs)("span",{children:["How do I implement ",(0,F.jsx)("strong",{children:"breadcrumbs"}),"?"]}),link:(0,y.addQueryArgs)("https://yoa.st/implement-breadcrumbs-support-faq",d)},{title:(0,F.jsxs)("span",{children:["How do I ",(0,F.jsx)("strong",{children:"submit my sitemap"})," to search engines?"]}),link:(0,y.addQueryArgs)("https://yoa.st/submit-sitemap-support-faq",d)},{title:(0,F.jsxs)("span",{children:["How do I edit my ",(0,F.jsx)("strong",{children:"robots.txt file"}),"?"]}),link:(0,y.addQueryArgs)("https://yoa.st/edit-robots-txt-support-faq",d)},{title:(0,F.jsxs)("span",{children:["What are the ",(0,F.jsx)("strong",{children:"meta robots advanced settings"}),"?"]}),link:(0,y.addQueryArgs)("https://yoa.st/meta-robots-settings-support-faq",d)},{title:(0,F.jsxs)("span",{children:["Where can I find a ",(0,F.jsx)("strong",{children:"glossary"})," of SEO terms?"]}),link:(0,y.addQueryArgs)("https://yoa.st/seo-terms-vocabulary-support-faq",d)},{title:(0,F.jsxs)("span",{children:["What are ",(0,F.jsx)("strong",{children:"transition words"}),"?"]}),link:(0,y.addQueryArgs)("https://yoa.st/transition-words-support-faq",d)}]),[]);return(0,F.jsx)("div",{className:"yst-p-4 min-[783px]:yst-p-8",children:(0,F.jsxs)("div",{className:M()("yst-flex yst-flex-grow yst-flex-wrap",!i&&"xl:yst-pe-[17.5rem]"),children:[(0,F.jsxs)(o.Paper,{as:"main",className:"yst-max-w-page yst-flex-grow yst-mb-8 xl:yst-mb-0",children:[(0,F.jsx)(o.Paper.Header,{children:(0,F.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,F.jsx)(o.Title,{children:(0,l.__)("Support","wordpress-seo")}),(0,F.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:(0,l.__)("If you have any questions, need a hand with a technical issue, or just want to say hi, we've got you covered. Get in touch with us and we'll be happy to assist you!","wordpress-seo")})]})}),(0,F.jsx)(o.Paper.Content,{children:(0,F.jsxs)("div",{className:"yst-max-w-6xl",children:[(0,F.jsx)(Le,{title:(0,l.__)("Frequently asked questions","wordpress-seo"),description:(0,l.sprintf)(/* translators: %1$s expands to Yoast SEO. */ -(0,l.__)("Here, you'll find answers to commonly asked questions about using %1$s. If you don't see your question listed, you can have a look at the section below.","wordpress-seo"),"Yoast SEO"),children:(0,F.jsx)("ul",{children:v.map((({title:e,link:t},s)=>(0,F.jsxs)(n.Fragment,{children:[s>0&&(0,F.jsx)("hr",{className:"yst-my-3"}),(0,F.jsx)("li",{children:(0,F.jsxs)(o.Link,{href:t,className:"yst-flex yst-items-center yst-font-medium yst-no-underline",target:"_blank",children:[e,(0,F.jsx)(L,{className:"yst-inline-block yst-ms-1.5 yst-h-3 yst-w-3 yst-icon-rtl"})]})})]},`faq-${s}`)))})}),(0,F.jsx)("hr",{className:"yst-my-8"}),(0,F.jsx)(Le,{title:(0,l.__)("Additional resources","wordpress-seo"),description:(0,l.sprintf)(/* translators: %1$s expands to Yoast SEO. */ -(0,l.__)("Need help with %1$s? These resources are a great place to start!","wordpress-seo"),"Yoast SEO"),children:(0,F.jsxs)("div",{className:"yst-grid yst-gap-6 yst-grid-cols-3 max-sm:yst-grid-cols-1",children:[(0,F.jsx)(Oe,{imageSrc:`${c}/images/support/help_center.png`,title:(0,l.sprintf)(/* translators: %1$s expands to Yoast. */ +(0,l.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,$.jsx)("span",{className:"yst-whitespace-nowrap"})}),m=t("black-friday-promotion");return m&&(d=(0,l.__)("Buy now for 30% off","wordpress-seo")),(0,$.jsxs)("div",{className:M()("yst-p-6 yst-rounded-lg yst-text-slate-600 yst-bg-white yst-shadow yst-border",r?"yst-border-woo-light yst-border-opacity-50":"yst-border-primary-300"),children:[(0,$.jsx)("figure",{className:"yst-logo-square yst-w-16 yst-h-16 yst-mx-auto yst-overflow-hidden yst-relative yst-z-10 yst-mt-[-2.6rem]",children:r?(0,$.jsx)(we,{}):(0,$.jsx)(me,{})}),m&&(0,$.jsx)("div",{className:"sidebar__sale_banner_container",children:(0,$.jsx)("div",{className:"sidebar__sale_banner",children:(0,$.jsx)("span",{className:"banner_text",children:(0,l.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})})}),(0,$.jsx)(n.Title,{as:"h2",className:M()("yst-mt-6 yst-text-xl yst-font-semibold",r?"yst-text-woo-light":"yst-text-primary-500"),children:u}),(0,$.jsx)("p",{className:"yst-mt-3 yst-font-medium yst-text-slate-800",children:a}),(0,$.jsx)("p",{className:"yst-mt-1 yst-font-normal",children:c}),(0,$.jsx)("ul",{className:"yst-list-outside yst-text-slate-600 yst-mt-4 yst-flex yst-flex-col yst-gap-2",children:i(!0).map(((e,s)=>(0,$.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,$.jsx)(re,{className:"yst-mr-2 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),e]},`upsell-benefit-${s}`)))}),(0,$.jsxs)(n.Button,{as:"a",variant:"upsell",href:e,target:"_blank",rel:"noopener",className:"yst-flex yst-justify-center yst-gap-2 yst-mt-4 focus:yst-ring-offset-primary-500",...s,children:[(0,$.jsx)("span",{children:d}),(0,$.jsx)(T,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"})]}),(0,$.jsx)("p",{className:"yst-text-center yst-text-xs yst-font-normal yst-leading-5 yst-text-slate-500 yst-italic yst-mt-3 yst-mb-2",children:p}),(0,$.jsx)("hr",{className:"yst-border-t yst-border-slate-200 yst-my-4"}),(0,$.jsxs)("ul",{className:"yst-text-center yst-text-xs yst-font-medium yst-text-slate-800 yst-list-none",children:[(0,$.jsx)("li",{children:(0,l.__)("30-day money back guarantee","wordpress-seo")}),(0,$.jsx)("li",{children:(0,l.__)("24/7 support","wordpress-seo")})]})]})};xe.propTypes={link:B().string.isRequired,linkProps:B().object.isRequired,isPromotionActive:B().func.isRequired},B().string.isRequired,B().object,B().func.isRequired,B().bool.isRequired;const ve=({premiumLink:e,premiumUpsellConfig:s,academyLink:t,isPromotionActive:r,isWooCommerceActive:i})=>(0,$.jsxs)("div",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 xl:yst-grid-cols-1 yst-gap-4",children:[(0,$.jsx)(xe,{link:e,linkProps:s,isPromotionActive:r,isWooCommerceActive:i}),(0,$.jsx)(I,{link:t})]});ve.propTypes={premiumLink:B().string.isRequired,premiumUpsellConfig:B().object.isRequired,academyLink:B().string.isRequired,isPromotionActive:B().func.isRequired,isWooCommerceActive:B().bool.isRequired},N.forwardRef((function(e,s){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),B().bool.isRequired,B().func,B().func,B().string.isRequired,B().string.isRequired,B().string.isRequired,B().string.isRequired;window.yoast.reactHelmet;B().string.isRequired,B().shape({src:B().string.isRequired,width:B().string,height:B().string}).isRequired,B().shape({value:B().bool.isRequired,status:B().string.isRequired,set:B().func.isRequired}).isRequired,B().bool;const _e=N.forwardRef((function(e,s){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),N.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));B().bool.isRequired,B().func.isRequired,B().func,B().string,B().func.isRequired,B().string.isRequired,B().string.isRequired,B().string.isRequired,B().string.isRequired;const je="@yoast/support",be=(e,t=[],...r)=>(0,s.useSelect)((s=>{var t,i;return null===(t=(i=s(je))[e])||void 0===t?void 0:t.call(i,...r)}),t),ke=({id:e,children:s,title:t,description:r=null})=>{const i=be("selectPreference",[],"isPremium");return(0,$.jsx)(V,{id:e,title:t,description:r,variant:i?"lg":"xl",children:s})};ke.propTypes={id:B().string,children:B().node.isRequired,title:B().node.isRequired,description:B().node};const Se=({imageSrc:e,title:s,description:t,linkHref:r,linkText:i})=>(0,$.jsxs)(n.Card,{children:[(0,$.jsx)(n.Card.Header,{className:"yst-h-auto yst-p-0",children:(0,$.jsx)("img",{className:"yst-w-full yst-transition yst-duration-200",src:e,alt:"",width:500,height:250,loading:"lazy",decoding:"async"})}),(0,$.jsxs)(n.Card.Content,{className:"yst-flex yst-flex-col yst-gap-3",children:[(0,$.jsx)(n.Title,{as:"h3",children:s}),t]}),(0,$.jsxs)(n.Link,{href:r,className:"yst-flex yst-items-center yst-mt-[18px] yst-no-underline yst-font-medium yst-text-primary-500",target:"_blank",children:[i,(0,$.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ +(0,l.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,$.jsx)(_e,{className:"yst-h-4 yst-w-4 yst-ms-1 yst-icon-rtl"})]})]});Se.propTypes={imageSrc:B().string.isRequired,title:B().string.isRequired,description:B().string.isRequired,linkHref:B().string.isRequired,linkText:B().string.isRequired};const Ee=()=>{document.querySelector("#beacon-container .BeaconFabButtonFrame iframe")?window.Beacon("open"):document.querySelector("#yoast-helpscout-beacon button").click()},Re=()=>{const e=be("selectPreference",[],"hasPremiumSubscription",!1),t=be("selectPreference",[],"hasWooSeoSubscription",!1),r=be("selectPreference",[],"isWooCommerceActive",!1),i=e||t,a=be("selectUpsellSettingsAsProps"),c=be("selectPreference",[],"pluginUrl",""),d=be("selectLinkParams"),p=be("selectLink",[],"https://yoa.st/3t6"),u=be("selectLink",[],"https://yoa.st/jj"),m=be("selectLink",[],"https://yoa.st/admin-sidebar-upsell-woocommerce"),h=be("selectLink",[],"https://yoa.st/help-center-support-card"),g=be("selectLink",[],"https://yoa.st/support-forums-support-card"),f=be("selectLink",[],"https://yoa.st/github-repository-support-card"),w=be("selectLink",[],"https://yoa.st/contact-support-to-unlock-premium-support-section"),{isPromotionActive:x}=(0,s.useSelect)(je),v=(0,o.useMemo)((()=>[{title:(0,$.jsxs)("span",{children:["How do I set up ",(0,$.jsx)("strong",{children:"canonical URLs"}),"?"]}),link:(0,y.addQueryArgs)("https://yoa.st/canonical-urls-support-faq",d)},{title:(0,$.jsxs)("span",{children:["How do I use ",(0,$.jsx)("strong",{children:"XML sitemaps"}),"?"]}),link:(0,y.addQueryArgs)("https://yoa.st/xml-sitemaps-support-faq",d)},{title:(0,$.jsxs)("span",{children:["How do I implement ",(0,$.jsx)("strong",{children:"breadcrumbs"}),"?"]}),link:(0,y.addQueryArgs)("https://yoa.st/implement-breadcrumbs-support-faq",d)},{title:(0,$.jsxs)("span",{children:["How do I ",(0,$.jsx)("strong",{children:"submit my sitemap"})," to search engines?"]}),link:(0,y.addQueryArgs)("https://yoa.st/submit-sitemap-support-faq",d)},{title:(0,$.jsxs)("span",{children:["How do I edit my ",(0,$.jsx)("strong",{children:"robots.txt file"}),"?"]}),link:(0,y.addQueryArgs)("https://yoa.st/edit-robots-txt-support-faq",d)},{title:(0,$.jsxs)("span",{children:["What are the ",(0,$.jsx)("strong",{children:"meta robots advanced settings"}),"?"]}),link:(0,y.addQueryArgs)("https://yoa.st/meta-robots-settings-support-faq",d)},{title:(0,$.jsxs)("span",{children:["Where can I find a ",(0,$.jsx)("strong",{children:"glossary"})," of SEO terms?"]}),link:(0,y.addQueryArgs)("https://yoa.st/seo-terms-vocabulary-support-faq",d)},{title:(0,$.jsxs)("span",{children:["What are ",(0,$.jsx)("strong",{children:"transition words"}),"?"]}),link:(0,y.addQueryArgs)("https://yoa.st/transition-words-support-faq",d)}]),[]);return(0,$.jsx)("div",{className:"yst-p-4 min-[783px]:yst-p-8",children:(0,$.jsxs)("div",{className:M()("yst-flex yst-flex-grow yst-flex-wrap",!i&&"xl:yst-pe-[17.5rem]"),children:[(0,$.jsxs)(n.Paper,{as:"main",className:"yst-max-w-page yst-flex-grow yst-mb-8 xl:yst-mb-0",children:[(0,$.jsx)(n.Paper.Header,{children:(0,$.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,$.jsx)(n.Title,{children:(0,l.__)("Support","wordpress-seo")}),(0,$.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:(0,l.__)("If you have any questions, need a hand with a technical issue, or just want to say hi, we've got you covered. Get in touch with us and we'll be happy to assist you!","wordpress-seo")})]})}),(0,$.jsx)(n.Paper.Content,{children:(0,$.jsxs)("div",{className:"yst-max-w-6xl",children:[(0,$.jsx)(ke,{title:(0,l.__)("Frequently asked questions","wordpress-seo"),description:(0,l.sprintf)(/* translators: %1$s expands to Yoast SEO. */ +(0,l.__)("Here, you'll find answers to commonly asked questions about using %1$s. If you don't see your question listed, you can have a look at the section below.","wordpress-seo"),"Yoast SEO"),children:(0,$.jsx)("ul",{children:v.map((({title:e,link:s},t)=>(0,$.jsxs)(o.Fragment,{children:[t>0&&(0,$.jsx)("hr",{className:"yst-my-3"}),(0,$.jsx)("li",{children:(0,$.jsxs)(n.Link,{href:s,className:"yst-flex yst-items-center yst-font-medium yst-no-underline",target:"_blank",children:[e,(0,$.jsx)(A,{className:"yst-inline-block yst-ms-1.5 yst-h-3 yst-w-3 yst-icon-rtl"})]})})]},`faq-${t}`)))})}),(0,$.jsx)("hr",{className:"yst-my-8"}),(0,$.jsx)(ke,{title:(0,l.__)("Additional resources","wordpress-seo"),description:(0,l.sprintf)(/* translators: %1$s expands to Yoast SEO. */ +(0,l.__)("Need help with %1$s? These resources are a great place to start!","wordpress-seo"),"Yoast SEO"),children:(0,$.jsxs)("div",{className:"yst-grid yst-gap-6 yst-grid-cols-3 max-sm:yst-grid-cols-1",children:[(0,$.jsx)(Se,{imageSrc:`${c}/images/support/help_center.png`,title:(0,l.sprintf)(/* translators: %1$s expands to Yoast. */ (0,l.__)("%1$s's help center","wordpress-seo"),"Yoast"),description:(0,l.sprintf)(/* translators: %1$s expands to Yoast SEO. */ -(0,l.__)("Have a look at our help center to find articles, tutorials, and other resources to help you get the most out of %1$s!","wordpress-seo"),"Yoast SEO"),linkHref:h,linkText:(0,l.__)("Visit our help center","wordpress-seo")}),(0,F.jsx)(Oe,{imageSrc:`${c}/images/support/support_forums.png`,title:(0,l.sprintf)(/* translators: %1$s expands to Yoast SEO. */ +(0,l.__)("Have a look at our help center to find articles, tutorials, and other resources to help you get the most out of %1$s!","wordpress-seo"),"Yoast SEO"),linkHref:h,linkText:(0,l.__)("Visit our help center","wordpress-seo")}),(0,$.jsx)(Se,{imageSrc:`${c}/images/support/support_forums.png`,title:(0,l.sprintf)(/* translators: %1$s expands to Yoast SEO. */ (0,l.__)("WordPress support forum for %1$s","wordpress-seo"),"Yoast SEO"),description:(0,l.sprintf)(/* translators: %1$s expands to Yoast SEO. */ -(0,l.__)("In the WordPress support forum for %1$s you can find answers or ask for help from %1$s users in the WordPress community.","wordpress-seo"),"Yoast SEO"),linkHref:g,linkText:(0,l.__)("Visit WordPress forum","wordpress-seo")}),(0,F.jsx)(Oe,{imageSrc:`${c}/images/support/github.png`,title:(0,l.__)("Raise a bug report on GitHub","wordpress-seo"),description:(0,l.sprintf)(/* translators: %1$s expands to Yoast SEO. */ -(0,l.__)("Have you stumbled upon a bug while using %1$s? Please raise a bug report on our GitHub repository to let us know about the issue!","wordpress-seo"),"Yoast SEO"),linkHref:f,linkText:(0,l.__)("Write a bug report","wordpress-seo")})]})}),(0,F.jsx)("hr",{className:"yst-my-8"}),(0,F.jsx)(Le,{title:(0,F.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-1.5",children:[(0,F.jsx)("span",{children:(0,l.__)("Contact our support team","wordpress-seo")}),i&&(0,F.jsx)(o.Badge,{variant:"upsell",children:"Premium"})]}),description:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{children:(0,l.__)("If you don't find the answers you're looking for and need personalized help, you can get 24/7 support from one of our support engineers.","wordpress-seo")}),(0,F.jsx)("span",{className:"yst-block yst-mt-4",children:O((0,l.sprintf)(/* translators: %1$s expands to an opening span tag, %2$s expands to a closing span tag. */ -(0,l.__)("%1$sSupport language:%2$s English","wordpress-seo"),"<span>","</span>"),{span:(0,F.jsx)("span",{className:"yst-font-medium yst-text-slate-800"})})})]}),children:(0,F.jsx)(o.FeatureUpsell,{shouldUpsell:!i,variant:"card",cardLink:w,cardText:(0,l.sprintf)(/* translators: %1$s expands to Premium. */ -(0,l.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...a,children:(0,F.jsxs)("div",{className:M()("yst-flex",!i&&"yst-opacity-50"),children:[(0,F.jsxs)("div",{className:"yst-me-6",children:[(0,F.jsx)("p",{children:(0,l.__)("Our support team is here to answer any questions you may have. Fill out the (pop-up) contact form, and we'll get back to you as soon as possible!","wordpress-seo")}),(0,F.jsxs)(o.Button,{variant:"secondary",className:"yst-mt-4",onClick:Ae,children:[(0,l.__)("Contact our support team","wordpress-seo"),(0,F.jsx)(L,{className:"yst-inline-block yst-ms-1.5 yst-h-3 yst-w-3 yst-icon-rtl"})]})]}),(0,F.jsx)("img",{src:`${c}/images/support-team.svg`,alt:"",width:125,height:100,loading:"lazy",decoding:"async"})]})})})]})})]}),!i&&(0,F.jsx)("div",{className:"xl:yst-max-w-3xl xl:yst-fixed xl:yst-end-8 xl:yst-w-[16rem]",children:(0,F.jsx)(Ne,{premiumLink:r?m:u,premiumUpsellConfig:a,academyLink:p,isPromotionActive:x,isWooCommerceActive:r})})]})})},He="preferences",Be=(0,c.createSlice)({name:He,initialState:{},reducers:{}}),$e=Be.getInitialState,Fe={selectPreference:(e,t,s={})=>(0,a.get)(e,`${He}.${t}`,s),selectPreferences:e=>(0,a.get)(e,He,{})};Fe.selectUpsellSettingsAsProps=(0,c.createSelector)([e=>Fe.selectPreference(e,"upsellSettings",{}),(e,t="premiumCtbId")=>t],((e,t)=>({"data-action":null==e?void 0:e.actionId,"data-ctb-id":null==e?void 0:e[t]})));const Ie=Be.actions,Te=Be.reducer,Ue=window.yoast.externals.redux,{isPromotionActive:Ze}=Ue.selectors,{currentPromotions:We}=Ue.reducers,{setCurrentPromotions:ze}=Ue.actions;i()((()=>{const s=document.getElementById("yoast-seo-support");if(!s)return;(({initialState:e={}}={})=>{(0,t.register)((({initialState:e})=>(0,t.createReduxStore)(Ce,{actions:{...v,...Ie,setCurrentPromotions:ze},selectors:{...x,...Fe,isPromotionActive:Ze},initialState:(0,a.merge)({},{[g]:w(),[He]:$e(),currentPromotions:{promotions:[]}},e),reducer:(0,t.combineReducers)({[g]:j,[He]:Te,currentPromotions:We})}))({initialState:e}))})({initialState:{[g]:(0,a.get)(window,"wpseoScriptData.linkParams",{}),[He]:(0,a.get)(window,"wpseoScriptData.preferences",{}),currentPromotions:{promotions:(0,a.get)(window,"wpseoScriptData.currentPromotions",[])}}}),(()=>{const e=document.getElementById("wpcontent"),t=document.getElementById("adminmenuwrap");e&&t&&(e.style.minHeight=`${t.offsetHeight}px`)})();const r=(0,t.select)(Ce).selectPreference("isRtl",!1);(0,n.createRoot)(s).render((0,F.jsx)(o.Root,{context:{isRtl:r},children:(0,F.jsx)(e.SlotFillProvider,{children:(0,F.jsx)(Me,{})})}))}))})()})(); \ No newline at end of file +(0,l.__)("In the WordPress support forum for %1$s you can find answers or ask for help from %1$s users in the WordPress community.","wordpress-seo"),"Yoast SEO"),linkHref:g,linkText:(0,l.__)("Visit WordPress forum","wordpress-seo")}),(0,$.jsx)(Se,{imageSrc:`${c}/images/support/github.png`,title:(0,l.__)("Raise a bug report on GitHub","wordpress-seo"),description:(0,l.sprintf)(/* translators: %1$s expands to Yoast SEO. */ +(0,l.__)("Have you stumbled upon a bug while using %1$s? Please raise a bug report on our GitHub repository to let us know about the issue!","wordpress-seo"),"Yoast SEO"),linkHref:f,linkText:(0,l.__)("Write a bug report","wordpress-seo")})]})}),(0,$.jsx)("hr",{className:"yst-my-8"}),(0,$.jsx)(ke,{title:(0,$.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-1.5",children:[(0,$.jsx)("span",{children:(0,l.__)("Contact our support team","wordpress-seo")}),i&&(0,$.jsx)(n.Badge,{variant:"upsell",children:"Premium"})]}),description:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)("span",{children:(0,l.__)("If you don't find the answers you're looking for and need personalized help, you can get 24/7 support from one of our support engineers.","wordpress-seo")}),(0,$.jsx)("span",{className:"yst-block yst-mt-4",children:L((0,l.sprintf)(/* translators: %1$s expands to an opening span tag, %2$s expands to a closing span tag. */ +(0,l.__)("%1$sSupport language:%2$s English","wordpress-seo"),"<span>","</span>"),{span:(0,$.jsx)("span",{className:"yst-font-medium yst-text-slate-800"})})})]}),children:(0,$.jsx)(n.FeatureUpsell,{shouldUpsell:!i,variant:"card",cardLink:w,cardText:(0,l.sprintf)(/* translators: %1$s expands to Premium. */ +(0,l.__)("Unlock with %1$s","wordpress-seo"),"Premium"),...a,children:(0,$.jsxs)("div",{className:M()("yst-flex",!i&&"yst-opacity-50"),children:[(0,$.jsxs)("div",{className:"yst-me-6",children:[(0,$.jsx)("p",{children:(0,l.__)("Our support team is here to answer any questions you may have. Fill out the (pop-up) contact form, and we'll get back to you as soon as possible!","wordpress-seo")}),(0,$.jsxs)(n.Button,{variant:"secondary",className:"yst-mt-4",onClick:Ee,children:[(0,l.__)("Contact our support team","wordpress-seo"),(0,$.jsx)(A,{className:"yst-inline-block yst-ms-1.5 yst-h-3 yst-w-3 yst-icon-rtl"})]})]}),(0,$.jsx)("img",{src:`${c}/images/support-team.svg`,alt:"",width:125,height:100,loading:"lazy",decoding:"async"})]})})})]})})]}),!i&&(0,$.jsx)("div",{className:"xl:yst-max-w-3xl xl:yst-fixed xl:yst-end-8 xl:yst-w-[16rem]",children:(0,$.jsx)(ve,{premiumLink:r?m:u,premiumUpsellConfig:a,academyLink:p,isPromotionActive:x,isWooCommerceActive:r})})]})})},Ce="preferences",qe=(0,c.createSlice)({name:Ce,initialState:{},reducers:{}}),Pe=qe.getInitialState,Ne={selectPreference:(e,s,t={})=>(0,a.get)(e,`${Ce}.${s}`,t),selectPreferences:e=>(0,a.get)(e,Ce,{})};Ne.selectUpsellSettingsAsProps=(0,c.createSelector)([e=>Ne.selectPreference(e,"upsellSettings",{}),(e,s="premiumCtbId")=>s],((e,s)=>({"data-action":null==e?void 0:e.actionId,"data-ctb-id":null==e?void 0:e[s]})));const Ae=qe.actions,Le=qe.reducer,Oe=window.yoast.externals.redux,{isPromotionActive:Me}=Oe.selectors,{currentPromotions:He}=Oe.reducers,{setCurrentPromotions:Fe}=Oe.actions;i()((()=>{const t=document.getElementById("yoast-seo-support");if(!t)return;(({initialState:e={}}={})=>{(0,s.register)((({initialState:e})=>(0,s.createReduxStore)(je,{actions:{...v,...Ae,setCurrentPromotions:Fe},selectors:{...x,...Ne,isPromotionActive:Me},initialState:(0,a.merge)({},{[g]:w(),[Ce]:Pe(),currentPromotions:{promotions:[]}},e),reducer:(0,s.combineReducers)({[g]:_,[Ce]:Le,currentPromotions:He})}))({initialState:e}))})({initialState:{[g]:(0,a.get)(window,"wpseoScriptData.linkParams",{}),[Ce]:(0,a.get)(window,"wpseoScriptData.preferences",{}),currentPromotions:{promotions:(0,a.get)(window,"wpseoScriptData.currentPromotions",[])}}}),(()=>{const e=document.getElementById("wpcontent"),s=document.getElementById("adminmenuwrap");e&&s&&(e.style.minHeight=`${s.offsetHeight}px`)})();const r=(0,s.select)(je).selectPreference("isRtl",!1);(0,o.createRoot)(t).render((0,$.jsx)(n.Root,{context:{isRtl:r},children:(0,$.jsx)(e.SlotFillProvider,{children:(0,$.jsx)(Re,{})})}))}))})()})(); \ No newline at end of file @@ -1 +1 @@ -(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var i in s)e.o(s,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:s[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{DISMISS_ALERT:()=>A,NEW_REQUEST:()=>D,SNIPPET_EDITOR_FIND_CUSTOM_FIELDS:()=>M,wistiaEmbedPermission:()=>I});const s=window.wp.domReady;var i=e.n(s);const n=window.jQuery;var o=e.n(n);const a=window.lodash,r=window.wp.i18n;const c=window.wp.data,d=window.yoast.externals.redux,l=window.yoast.reduxJsToolkit,p="adminUrl",u=(0,l.createSlice)({name:p,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),h=(u.getInitialState,{selectAdminUrl:e=>(0,a.get)(e,p,"")});h.selectAdminLink=(0,l.createSelector)([h.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),u.actions,u.reducer;const g=window.wp.apiFetch;var w=e.n(g);const f="hasConsent",y=(0,l.createSlice)({name:f,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),m=(y.getInitialState,y.actions,y.reducer,window.wp.url),b="linkParams",_=(0,l.createSlice)({name:b,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),S=(_.getInitialState,{selectLinkParam:(e,t,s={})=>(0,a.get)(e,`${b}.${t}`,s),selectLinkParams:e=>(0,a.get)(e,b,{})});S.selectLink=(0,l.createSelector)([S.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,m.addQueryArgs)(t,{...e,...s}))),_.actions,_.reducer;const v=(0,l.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:i,description:n})=>({payload:{id:e||(0,l.nanoid)(),variant:t,size:s,title:i||"",description:n}})},removeNotification:(e,{payload:t})=>(0,a.omit)(e,t)}}),k=(v.getInitialState,v.actions,v.reducer,"pluginUrl"),E=(0,l.createSlice)({name:k,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),x=(E.getInitialState,{selectPluginUrl:e=>(0,a.get)(e,k,"")});x.selectImageLink=(0,l.createSelector)([x.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,a.trimEnd)(e,"/"),(0,a.trim)(t,"/"),(0,a.trimStart)(s,"/")].join("/"))),E.actions,E.reducer;const R="wistiaEmbedPermission",O=(0,l.createSlice)({name:R,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${R}/request`,(e=>{e.status="loading"})),e.addCase(`${R}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${R}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,a.get)(t,"error.code",500),message:(0,a.get)(t,"error.message","Unknown")}}))}}),T=(O.getInitialState,O.actions,{[R]:async({payload:e})=>w()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:Boolean(e)}})});var P;O.reducer;const C=(0,l.createSlice)({name:"documentTitle",initialState:(0,a.defaultTo)(null===(P=document)||void 0===P?void 0:P.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}});function A({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}function M({query:e,postId:t}){return new Promise((s=>{wpseoApi.get("meta/search",{query:e,post_id:t},(e=>{s(e.meta)}))}))}C.getInitialState,C.actions,C.reducer;const D=async({countryCode:e,keyphrase:t})=>(w()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}}),w()({path:(0,m.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:e})})),I=T[R];const F=window.yoast.analysis,U=window.wp.isShallowEqual,B="yoastmark";function Y(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function L(e,t,s){const i=e.dom;let n=e.getContent();if(n=F.markers.removeMarks(n),(0,a.isEmpty)(s))return void e.setContent(n);n=s[0].hasPosition()?function(e,t){if(!t)return"";for(let s=(e=(0,a.orderBy)(e,(e=>e._properties.position.startOffset),["asc"])).length-1;s>=0;s--){const i=e[s];Y(i,t)||(t=i.applyWithPosition(t))}return t}(s,n):function(e,t,s,i){const{fieldsToMark:n,selectedHTML:o}=F.languageProcessing.getFieldsToMark(s,i);return(0,a.forEach)(s,(function(t){"acf_content"!==e.id&&(t._properties.marked=F.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=F.languageProcessing.normalizeHTML(t._properties.original)),n.length>0?o.forEach((e=>{const s=t.applyWithReplace(e);i=i.replace(e,s)})):i=t.applyWithReplace(i)})),i}(e,0,s,n),e.setContent(n),function(e){let t=e.getContent();t=t.replace(new RegExp("<yoastmark.+?>","g"),"").replace(new RegExp("</yoastmark>","g"),""),e.setContent(t)}(e);const o=i.select(B);(0,a.forEach)(o,(function(e){e.setAttribute("data-mce-bogus","1")}))}function j(e){return window.test=e,L.bind(null,e)}const K="et_pb_main_editor_wrap",N=class{static isActive(){return!!document.getElementById(K)}static isTinyMCEHidden(){const e=document.getElementById(K);return!!e&&e.classList.contains("et_pb_hidden")}listen(e){this.classicEditorContainer=document.getElementById(K),this.classicEditorContainer&&new MutationObserver((t=>{(0,a.forEach)(t,(t=>{"attributes"===t.type&&"class"===t.attributeName&&(t.target.classList.contains("et_pb_hidden")?e.classicEditorHidden():e.classicEditorShown())}))})).observe(this.classicEditorContainer,{attributes:!0})}},q=class{static isActive(){return!!window.VCV_I18N}},Q={classicEditorHidden:a.noop,classicEditorShown:a.noop,pageBuilderLoaded:a.noop},V=class{constructor(){this.determineActivePageBuilders()}determineActivePageBuilders(){N.isActive()&&(this.diviActive=!0),q.isActive()&&(this.vcActive=!0)}isPageBuilderActive(){return this.diviActive||this.vcActive}listen(e){this.callbacks=(0,a.defaults)(e,Q),this.diviActive&&(new N).listen(e)}isClassicEditorHidden(){return!(!this.diviActive||!N.isTinyMCEHidden())}};let W;const z="content",H="description";function $(e){if("undefined"==typeof tinyMCE||void 0===tinyMCE.editors||0===tinyMCE.editors.length)return!1;const t=tinyMCE.get(e);return null!==t&&!t.isHidden()}function G(e,t,s){"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(i){const n=i.editor;n.id===e&&(0,a.forEach)(t,(function(e){n.on(e,s)}))}))}function J(){(0,a.isUndefined)(W)||W.dispatch(d.actions.setMarkerStatus("disabled"))}function X(){(0,a.isUndefined)(W)||W.dispatch(d.actions.setMarkerStatus("enabled"))}class Z{constructor(e){this.refresh=e,this.loaded=!1,this.preloadThreshold=3e3,this.plugins={},this.modifications={},this._registerPlugin=this._registerPlugin.bind(this),this._ready=this._ready.bind(this),this._reloaded=this._reloaded.bind(this),this._registerModification=this._registerModification.bind(this),this._registerAssessment=this._registerAssessment.bind(this),this._applyModifications=this._applyModifications.bind(this),setTimeout(this._pollLoadingPlugins.bind(this),1500)}_registerPlugin(e,t){return(0,a.isString)(e)?(0,a.isUndefined)(t)||(0,a.isObject)(t)?!1===this._validateUniqueness(e)?(console.error("Failed to register plugin. Plugin with name "+e+" already exists"),!1):(this.plugins[e]=t,!0):(console.error("Failed to register plugin "+e+". Expected parameters `options` to be a object."),!1):(console.error("Failed to register plugin. Expected parameter `pluginName` to be a string."),!1)}_ready(e){return(0,a.isString)(e)?(0,a.isUndefined)(this.plugins[e])?(console.error("Failed to modify status for plugin "+e+". The plugin was not properly registered."),!1):(this.plugins[e].status="ready",!0):(console.error("Failed to modify status for plugin "+e+". Expected parameter `pluginName` to be a string."),!1)}_reloaded(e){return(0,a.isString)(e)?(0,a.isUndefined)(this.plugins[e])?(console.error("Failed to reload Content Analysis for plugin "+e+". The plugin was not properly registered."),!1):(this.refresh(),!0):(console.error("Failed to reload Content Analysis for "+e+". Expected parameter `pluginName` to be a string."),!1)}_registerModification(e,t,s,i){if(!(0,a.isString)(e))return console.error("Failed to register modification for plugin "+s+". Expected parameter `modification` to be a string."),!1;if(!(0,a.isFunction)(t))return console.error("Failed to register modification for plugin "+s+". Expected parameter `callable` to be a function."),!1;if(!(0,a.isString)(s))return console.error("Failed to register modification for plugin "+s+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(s))return console.error("Failed to register modification for plugin "+s+". The integration has not finished loading yet."),!1;const n={callable:t,origin:s,priority:(0,a.isNumber)(i)?i:10};return(0,a.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(n),!0}_registerAssessment(e,t,s,i){return(0,a.isString)(t)?(0,a.isObject)(s)?(0,a.isString)(i)?(t=i+"-"+t,e.addAssessment(t,s),!0):(console.error("Failed to register assessment for plugin "+i+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+i+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+i+". Expected parameter `name` to be a string."),!1)}_applyModifications(e,t,s){let i=this.modifications[e];return!(0,a.isArray)(i)||i.length<1||(i=this._stripIllegalModifications(i),i.sort(((e,t)=>e.priority-t.priority)),(0,a.forEach)(i,(function(i){const n=i.callable(t,s);typeof n==typeof t?t=n:console.error("Modification with name "+e+" performed by plugin with name "+i.origin+" was ignored because the data that was returned by it was of a different type than the data we had passed it.")}))),t}_pollLoadingPlugins(e){e=(0,a.isUndefined)(e)?0:e,!0===this._allReady()?(this.loaded=!0,this.refresh()):e>=this.preloadThreshold?(this._pollTimeExceeded(),this.loaded=!0,this.refresh()):(e+=50,setTimeout(this._pollLoadingPlugins.bind(this,e),50))}_allReady(){return(0,a.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}_pollTimeExceeded(){(0,a.forEach)(this.plugins,(function(e,t){(0,a.isUndefined)(e.options)||"ready"===e.options.status||(console.error("Error: Plugin "+t+". did not finish loading in time."),delete this.plugins[t])}))}_stripIllegalModifications(e){return(0,a.forEach)(e,((t,s)=>{!1===this._validateOrigin(t.origin)&&delete e[s]})),e}_validateOrigin(e){return"ready"===this.plugins[e].status}_validateUniqueness(e){return(0,a.isUndefined)(this.plugins[e])}}function ee(e,t,s){e("morphology",new F.Paper("",{keyword:s})).then((e=>{const s=e.result.keyphraseForms;t.dispatch(d.actions.updateWordsToHighlight((0,a.uniq)((0,a.flatten)(s))))})).catch((()=>{t.dispatch(d.actions.updateWordsToHighlight([]))}))}const te=window.wp.api;function se(){return window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor}var ie={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},ne=function(e,t,s){this.placeholder=e,this.replacement=t,this.options=(0,a.defaults)(s,ie)};ne.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},ne.prototype.setSource=function(e){this.options.source=e},ne.prototype.hasScope=function(){return!(0,a.isEmpty)(this.options.scope)},ne.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},ne.prototype.inScope=function(e){return!this.hasScope()||(0,a.indexOf)(this.options.scope,e)>-1},ne.prototype.hasAlias=function(){return!(0,a.isEmpty)(this.options.aliases)},ne.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},ne.prototype.getAliases=function(){return this.options.aliases};const oe=ne,{removeReplacementVariable:ae,updateReplacementVariable:re,refreshSnippetEditor:ce}=d.actions;var de=["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"],le={},pe={},ue=function(e,t){this._app=e,this._app.registerPlugin("replaceVariablePlugin",{status:"ready"}),this._store=t,this.replaceVariables=this.replaceVariables.bind(this),this.registerReplacements(),this.registerModifications(),this.registerEvents(),this.subscribeToGutenberg()};ue.prototype.registerReplacements=function(){this.addReplacement(new oe("%%author_first_name%%","author_first_name")),this.addReplacement(new oe("%%author_last_name%%","author_last_name")),this.addReplacement(new oe("%%category%%","category")),this.addReplacement(new oe("%%category_title%%","category_title")),this.addReplacement(new oe("%%currentdate%%","currentdate")),this.addReplacement(new oe("%%currentday%%","currentday")),this.addReplacement(new oe("%%currentmonth%%","currentmonth")),this.addReplacement(new oe("%%currenttime%%","currenttime")),this.addReplacement(new oe("%%currentyear%%","currentyear")),this.addReplacement(new oe("%%date%%","date")),this.addReplacement(new oe("%%id%%","id")),this.addReplacement(new oe("%%page%%","page")),this.addReplacement(new oe("%%permalink%%","permalink")),this.addReplacement(new oe("%%post_content%%","post_content")),this.addReplacement(new oe("%%post_month%%","post_month")),this.addReplacement(new oe("%%post_year%%","post_year")),this.addReplacement(new oe("%%searchphrase%%","searchphrase")),this.addReplacement(new oe("%%sitedesc%%","sitedesc")),this.addReplacement(new oe("%%sitename%%","sitename")),this.addReplacement(new oe("%%userid%%","userid")),this.addReplacement(new oe("%%focuskw%%","keyword",{source:"app",aliases:["%%keyword%%"]})),this.addReplacement(new oe("%%term_description%%","text",{source:"app",scope:["term","category","tag"],aliases:["%%tag_description%%","%%category_description%%"]})),this.addReplacement(new oe("%%term_title%%","term_title",{scope:["term"]})),this.addReplacement(new oe("%%term_hierarchy%%","term_hierarchy",{scope:["term"]})),this.addReplacement(new oe("%%title%%","title",{source:"app",scope:["post","term","page"]})),this.addReplacement(new oe("%%parent_title%%","title",{source:"app",scope:["page","category"]})),this.addReplacement(new oe("%%excerpt%%","excerpt",{source:"app",scope:["post"],aliases:["%%excerpt_only%%"]})),this.addReplacement(new oe("%%primary_category%%","primaryCategory",{source:"app",scope:["post"]})),this.addReplacement(new oe("%%sep%%(\\s*%%sep%%)*","sep"))},ue.prototype.registerEvents=function(){const e=wpseoScriptData.analysis.plugins.replaceVars.scope;"post"===e&&jQuery(".categorydiv").each(this.bindTaxonomyEvents.bind(this)),"post"!==e&&"page"!==e||jQuery("#postcustomstuff > #list-table").each(this.bindFieldEvents.bind(this))},ue.prototype.subscribeToGutenberg=function(){if(!se())return;const e={0:""};let t=null;const s=wp.data;s.subscribe((()=>{const i=s.select("core/editor").getEditedPostAttribute("parent");if(void 0!==i&&t!==i)return t=i,i<1?(this._currentParentPageTitle="",void this.declareReloaded()):(0,a.isUndefined)(e[i])?void te.loadPromise.done((()=>{new te.models.Page({id:i}).fetch().then((t=>{this._currentParentPageTitle=t.title.rendered,e[i]=this._currentParentPageTitle,this.declareReloaded()})).fail((()=>{this._currentParentPageTitle="",this.declareReloaded()}))})):(this._currentParentPageTitle=e[i],void this.declareReloaded())}))},ue.prototype.addReplacement=function(e){le[e.placeholder]=e},ue.prototype.removeReplacement=function(e){delete le[e.getPlaceholder()]},ue.prototype.registerModifications=function(){var e=this.replaceVariables.bind(this);(0,a.forEach)(de,function(t){this._app.registerModification(t,e,"replaceVariablePlugin",10)}.bind(this))},ue.prototype.replaceVariables=function(e){return(0,a.isUndefined)(e)||(e=this.parentReplace(e),e=this.replaceCustomTaxonomy(e),e=this.replaceByStore(e),e=this.replacePlaceholders(e)),e},ue.prototype.replaceByStore=function(e){const t=this._store.getState().snippetEditor.replacementVariables;return(0,a.forEach)(t,(t=>{""!==t.value&&(e=e.replace("%%"+t.name+"%%",t.value))})),e},ue.prototype.getReplacementSource=function(e){return"app"===e.source?this._app.rawData:"direct"===e.source?"direct":wpseoScriptData.analysis.plugins.replaceVars.replace_vars},ue.prototype.getReplacement=function(e){var t=this.getReplacementSource(e.options);return!1===e.inScope(wpseoScriptData.analysis.plugins.replaceVars.scope)?"":"direct"===t?e.replacement:t[e.replacement]||""},ue.prototype.replacePlaceholders=function(e){return(0,a.forEach)(le,function(t){e=e.replace(new RegExp(t.getPlaceholder(!0),"g"),this.getReplacement(t))}.bind(this)),e},ue.prototype.declareReloaded=function(){this._app.pluginReloaded("replaceVariablePlugin"),this._store.dispatch(ce())},ue.prototype.getCategoryName=function(e){var t=e.parent("label").clone();return t.children().remove(),t.text().trim()},ue.prototype.parseTaxonomies=function(e,t){(0,a.isUndefined)(pe[t])&&(pe[t]={});const s=[];(0,a.forEach)(e,function(e){const i=(e=jQuery(e)).val(),n=this.getCategoryName(e),o=e.prop("checked");pe[t][i]={label:n,checked:o},o&&-1===s.indexOf(n)&&s.push(n)}.bind(this)),"category"!==t&&(t="ct_"+t),this._store.dispatch(re(t,s.join(", ")))},ue.prototype.getAvailableTaxonomies=function(e){var t=jQuery(e).find("input[type=checkbox]"),s=jQuery(e).attr("id").replace("taxonomy-","");t.length>0&&this.parseTaxonomies(t,s),this.declareReloaded()},ue.prototype.bindTaxonomyEvents=function(e,t){(t=jQuery(t)).on("wpListAddEnd",".categorychecklist",this.getAvailableTaxonomies.bind(this,t)),t.on("change","input[type=checkbox]",this.getAvailableTaxonomies.bind(this,t)),this.getAvailableTaxonomies(t)},ue.prototype.replaceCustomTaxonomy=function(e){return(0,a.forEach)(pe,function(t,s){var i="%%ct_"+s+"%%";"category"===s&&(i="%%"+s+"%%"),e=e.replace(i,this.getTaxonomyReplaceVar(s))}.bind(this)),e},ue.prototype.getTaxonomyReplaceVar=function(e){var t=[],s=pe[e];return!0===(0,a.isUndefined)(s)?"":((0,a.forEach)(s,(function(e){!1!==e.checked&&t.push(e.label)})),jQuery.uniqueSort(t).join(", "))},ue.prototype.parseFields=function(e){jQuery(e).each(function(e,t){var s=jQuery("#"+t.id+"-key").val(),i=jQuery("#"+t.id+"-value").val();const n="cf_"+this.sanitizeCustomFieldNames(s),o=s+" (custom field)";this._store.dispatch(re(n,i,o)),this.addReplacement(new oe(`%%${n}%%`,i,{source:"direct"}))}.bind(this))},ue.prototype.removeFields=function(e){jQuery(e).each(function(e,t){var s=jQuery("#"+t.id+"-key").val();this.removeReplacement("%%cf_"+this.sanitizeCustomFieldNames(s)+"%%")}.bind(this))},ue.prototype.sanitizeCustomFieldNames=function(e){return e.replace(/\s/g,"_")},ue.prototype.getAvailableFields=function(e){this.removeCustomFields();var t=jQuery(e).find("#the-list > tr:visible[id]");t.length>0&&this.parseFields(t),this.declareReloaded()},ue.prototype.bindFieldEvents=function(e,t){var s=(t=jQuery(t)).find("#the-list");s.on("wpListDelEnd.wpseoCustomFields",this.getAvailableFields.bind(this,t)),s.on("wpListAddEnd.wpseoCustomFields",this.getAvailableFields.bind(this,t)),s.on("input.wpseoCustomFields",".textarea",this.getAvailableFields.bind(this,t)),s.on("click.wpseoCustomFields",".button + .updatemeta",this.getAvailableFields.bind(this,t)),this.getAvailableFields(t)},ue.prototype.removeCustomFields=function(){var e=(0,a.filter)(le,(function(e,t){return t.indexOf("%%cf_")>-1}));(0,a.forEach)(e,function(e){this._store.dispatch(ae((0,a.trim)(e.placeholder,"%%"))),this.removeReplacement(e)}.bind(this))},ue.prototype.parentReplace=function(e){const t=jQuery("#parent_id, #parent").eq(0);return this.hasParentTitle(t)&&(e=e.replace(/%%parent_title%%/,this.getParentTitleReplacement(t))),se()&&!(0,a.isUndefined)(this._currentParentPageTitle)&&(e=e.replace(/%%parent_title%%/,this._currentParentPageTitle)),e},ue.prototype.hasParentTitle=function(e){return!(0,a.isUndefined)(e)&&!(0,a.isUndefined)(e.prop("options"))},ue.prototype.getParentTitleReplacement=function(e){var t=e.find("option:selected").text();return t===(0,r.__)("(no parent)","wordpress-seo")?"":t},ue.ReplaceVar=oe;const he=ue,ge=window.wp.hooks,we="[^<>&/\\[\\]\0- =]+?",fe=new RegExp("\\["+we+"( [^\\]]+?)?\\]","g"),ye=new RegExp("\\[/"+we+"\\]","g");class me{constructor({registerPlugin:e,registerModification:t,pluginReady:s,pluginReloaded:i},n){this._registerModification=t,this._pluginReady=s,this._pluginReloaded=i,e("YoastShortcodePlugin",{status:"loading"}),this.bindElementEvents();const o="("+n.join("|")+")";this.shortcodesRegex=new RegExp(o,"g"),this.closingTagRegex=new RegExp("\\[\\/"+o+"\\]","g"),this.nonCaptureRegex=new RegExp("\\["+o+"[^\\]]*?\\]","g"),this.parsedShortcodes=[],this.loadShortcodes(this.declareReady.bind(this))}declareReady(){this._pluginReady("YoastShortcodePlugin"),this.registerModifications()}declareReloaded(){this._pluginReloaded("YoastShortcodePlugin")}registerModifications(){this._registerModification("content",this.replaceShortcodes.bind(this),"YoastShortcodePlugin")}removeUnknownShortCodes(e){return(e=e.replace(fe,"")).replace(ye,"")}replaceShortcodes(e){return"string"==typeof e&&this.parsedShortcodes.forEach((({shortcode:t,output:s})=>{e=e.replace(t,s)})),e=this.removeUnknownShortCodes(e)}loadShortcodes(e){const t=this.getUnparsedShortcodes(this.getShortcodes(this.getContentTinyMCE()));if(!(t.length>0))return e();this.parseShortcodes(t,e)}bindElementEvents(){const e=document.querySelector(".wp-editor-area"),t=(0,a.debounce)(this.loadShortcodes.bind(this,this.declareReloaded.bind(this)),500);e&&(e.addEventListener("keyup",t),e.addEventListener("change",t)),"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(e){e.editor.on("change",t),e.editor.on("keyup",t)}))}getContentTinyMCE(){let e=document.querySelector(".wp-editor-area")?document.querySelector(".wp-editor-area").value:"";return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length&&(e=tinyMCE.get("content")?tinyMCE.get("content").getContent():""),e}getUnparsedShortcodes(e){return"object"!=typeof e?(console.error("Failed to get unparsed shortcodes. Expected parameter to be an array, instead received "+typeof e),!1):e.filter((e=>this.isUnparsedShortcode(e)))}isUnparsedShortcode(e){return!this.parsedShortcodes.some((({shortcode:t})=>t===e))}getShortcodes(e){if("string"!=typeof e)return console.error("Failed to get shortcodes. Expected parameter to be a string, instead received"+typeof e),!1;const t=this.matchCapturingShortcodes(e);t.forEach((t=>{e=e.replace(t,"")}));const s=this.matchNonCapturingShortcodes(e);return t.concat(s)}matchCapturingShortcodes(e){const t=(e.match(this.closingTagRegex)||[]).join(" ").match(this.shortcodesRegex)||[];return(0,a.flatten)(t.map((t=>{const s="\\["+t+"[^\\]]*?\\].*?\\[\\/"+t+"\\]";return e.match(new RegExp(s,"g"))||[]})))}matchNonCapturingShortcodes(e){return e.match(this.nonCaptureRegex)||[]}parseShortcodes(e,t){return"function"!=typeof t?(console.error("Failed to parse shortcodes. Expected parameter to be a function, instead received "+typeof t),!1):"object"==typeof e&&e.length>0?void jQuery.post(ajaxurl,{action:"wpseo_filter_shortcodes",_wpnonce:wpseoScriptData.analysis.plugins.shortcodes.wpseo_filter_shortcodes_nonce,data:e},function(e){this.saveParsedShortcodes(e,t)}.bind(this)):t()}saveParsedShortcodes(e,t){const s=JSON.parse(e);this.parsedShortcodes.push(...s),t()}}const be=me,{updateShortcodesForParsing:_e}=d.actions;function Se(e){var t=jQuery(".yst-traffic-light"),s=t.closest(".wpseo-meta-section-link"),i=jQuery("#wpseo-traffic-light-desc"),n=e.className||"na";t.attr("class","yst-traffic-light "+n),s.attr("aria-describedby","wpseo-traffic-light-desc"),i.length>0?i.text(e.screenReaderText):s.closest("li").append("<span id='wpseo-traffic-light-desc' class='screen-reader-text'>"+e.screenReaderText+"</span>")}function ve(e){jQuery("#wp-admin-bar-wpseo-menu .wpseo-score-icon").attr("title",e.screenReaderText).attr("class","wpseo-score-icon "+e.className).find(".wpseo-score-text").text(e.screenReaderText)}function ke(){return(0,a.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}function Ee(){const e=ke();return(0,a.get)(e,"contentLocale","en_US")}function xe(){const e=ke();return!0===(0,a.get)(e,"contentAnalysisActive",!1)}function Re(){const e=ke();return!0===(0,a.get)(e,"keywordAnalysisActive",!1)}function Oe(){const e=ke();return!0===(0,a.get)(e,"inclusiveLanguageAnalysisActive",!1)}const Te=window.yoast.featureFlag;function Pe(){}let Ce=!1;function Ae(e){return e.sort(((e,t)=>e._identifier.localeCompare(t._identifier)))}function Me(e,t,s,i,n){if(!Ce)return;const o=F.Paper.parse(t());e.analyze(o).then((a=>{const{result:{seo:r,readability:c,inclusiveLanguage:l}}=a;if(r){const e=r[""];e.results.forEach((e=>{e.getMarker=()=>()=>s(o,e.marks)})),e.results=Ae(e.results),i.dispatch(d.actions.setSeoResultsForKeyword(o.getKeyword(),e.results)),i.dispatch(d.actions.setOverallSeoScore(e.score,o.getKeyword())),i.dispatch(d.actions.refreshSnippetEditor()),n.saveScores(e.score,o.getKeyword())}c&&(c.results.forEach((e=>{e.getMarker=()=>()=>s(o,e.marks)})),c.results=Ae(c.results),i.dispatch(d.actions.setReadabilityResults(c.results)),i.dispatch(d.actions.setOverallReadabilityScore(c.score)),i.dispatch(d.actions.refreshSnippetEditor()),n.saveContentScore(c.score)),l&&(l.results.forEach((e=>{e.getMarker=()=>()=>s(o,e.marks)})),l.results=Ae(l.results),i.dispatch(d.actions.setInclusiveLanguageResults(l.results)),i.dispatch(d.actions.setOverallInclusiveLanguageScore(l.score)),i.dispatch(d.actions.refreshSnippetEditor()),n.saveInclusiveLanguageScore(l.score)),(0,ge.doAction)("yoast.analysis.refresh",a,{paper:o,worker:e,collectData:t,applyMarks:s,store:i,dataCollector:n})})).catch(Pe)}const De=window.wp.blocks,Ie="yoast-measurement-element";function Fe(e){let t=document.getElementById(Ie);return t||(t=function(){const e=document.createElement("div");return e.id=Ie,e.style.position="absolute",e.style.left="-9999em",e.style.top=0,e.style.height=0,e.style.overflow="hidden",e.style.fontFamily="arial, sans-serif",e.style.fontSize="20px",e.style.fontWeight="400",document.body.appendChild(e),e}()),t.innerText=e,t.offsetWidth}const Ue=e=>(e=e.filter((e=>e.isValid))).map((e=>{const t=(0,De.serialize)([e],{isInnerBlocks:!1});return e.blockLength=t&&t.length,e.innerBlocks&&(e.innerBlocks=Ue(e.innerBlocks)),e}));function Be(e){return(0,a.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,r.__)("Not available","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Not available","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Not available","wordpress-seo")};case"bad":return{className:"bad",screenReaderText:(0,r.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,r.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,r.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(F.interpreters.scoreToRating(e))}const Ye=jQuery,Le=function(e){"object"==typeof CKEDITOR&&console.warn("YoastSEO currently doesn't support ckEditor. The content analysis currently only works with the HTML editor or TinyMCE."),this._store=e.store};Le.prototype.getData=function(){const e={title:this.getSnippetTitle(),keyword:Re()?this.getKeyword():"",text:this.getText(),permalink:this.getPermalink(),snippetCite:this.getSnippetCite(),snippetTitle:this.getSnippetTitle(),snippetMeta:this.getSnippetMeta(),name:this.getName(),baseUrl:this.getBaseUrl(),pageTitle:this.getSnippetTitle(),titleWidth:Fe(this.getSnippetTitle())},t=this._store.getState();return{...e,metaTitle:(0,a.get)(t,["analysisData","snippet","title"],this.getSnippetTitle()),url:(0,a.get)(t,["snippetEditor","data","slug"],this.getSlug()),meta:(0,a.get)(t,["analysisData","snippet","description"],this.getSnippetMeta())}},Le.prototype.getKeyword=function(){return document.getElementById("hidden_wpseo_focuskw").value},Le.prototype.getText=function(){return function(e){let t="";var s;return t=!1===$(e)||0==(s=e,null!==document.getElementById(s+"_ifr"))?function(e){return document.getElementById(e)&&document.getElementById(e).value||""}(e):tinyMCE.get(e).getContent(),t}(H)},Le.prototype.getSlug=function(){return document.getElementById("slug").value},Le.prototype.getPermalink=function(){const e=this.getSlug();return this.getBaseUrl()+e+"/"},Le.prototype.getSnippetCite=function(){return this.getSlug()},Le.prototype.getSnippetTitle=function(){return document.getElementById("hidden_wpseo_title").value},Le.prototype.getSnippetMeta=function(){const e=document.getElementById("hidden_wpseo_desc");return e?e.value:""},Le.prototype.getName=function(){return document.getElementById("name").value},Le.prototype.getBaseUrl=function(){return wpseoScriptData.metabox.base_url},Le.prototype.setDataFromSnippet=function(e,t){switch(t){case"snippet_meta":document.getElementById("hidden_wpseo_desc").value=e;break;case"snippet_cite":document.getElementById("slug").value=e;break;case"snippet_title":document.getElementById("hidden_wpseo_title").value=e}},Le.prototype.saveSnippetData=function(e){this.setDataFromSnippet(e.title,"snippet_title"),this.setDataFromSnippet(e.urlPath,"snippet_cite"),this.setDataFromSnippet(e.metaDesc,"snippet_meta")},Le.prototype.bindElementEvents=function(e){this.inputElementEventBinder(e)},Le.prototype.inputElementEventBinder=function(e){const t=["name",H,"slug","wpseo_focuskw"];for(let s=0;s<t.length;s++)null!==document.getElementById(t[s])&&document.getElementById(t[s]).addEventListener("input",e);!function(e,t){G(t,["input","change","cut","paste"],e),G(t,["hide"],J);const s=["show"];(new V).isPageBuilderActive()||s.push("init"),G(t,s,X),G("content",["focus"],(function(e){const t=e.target;(function(e){return-1!==e.getContent({format:"raw"}).indexOf("<"+B)})(t)&&(function(e){j(e)(null,[])}(t),YoastSEO.app.disableMarkers()),(0,a.isUndefined)(W)||W.dispatch(d.actions.setMarkerPauseStatus(!0))})),G("content",["blur"],(function(){(0,a.isUndefined)(W)||W.dispatch(d.actions.setMarkerPauseStatus(!1))}))}(e,H)},Le.prototype.saveScores=function(e){const t=Be(e);document.getElementById("hidden_wpseo_linkdex").value=e,jQuery(window).trigger("YoastSEO:numericScore",e),Se(t),ve(t)},Le.prototype.saveContentScore=function(e){const t=Be(e);Re()||(Se(t),ve(t)),Ye("#hidden_wpseo_content_score").val(e)},Le.prototype.saveInclusiveLanguageScore=function(e){const t=Be(e);Re()||xe()||(Se(t),ve(t)),Ye("#hidden_wpseo_inclusive_language_score").val(e)};const je=Le;class Ke{constructor(){this._callbacks=[],this.register=this.register.bind(this)}register(e){(0,a.isFunction)(e)&&this._callbacks.push(e)}getData(){let e={};return this._callbacks.forEach((t=>{e=(0,a.merge)(e,t())})),e}}window.wp.annotations;const Ne=function(e){return(0,a.uniq)((0,a.flatten)(e.map((e=>{if(!(0,a.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()}))))},qe=window.wp.richText,Qe=/(<([a-z]|\/)[^<>]+>)/gi,{htmlEntitiesRegex:Ve}=F.helpers.htmlEntities,We=e=>{let t=0;return(0,a.forEachRight)(e,(e=>{const[s]=e;let i=s.length;/^<\/?br/.test(s)&&(i-=1),t+=i})),t},ze="<yoastmark class='yoast-text-mark'>",He="</yoastmark>",$e='<yoastmark class="yoast-text-mark">';function Ge(e,t,s,i,n){const o=i.clientId,r=(0,qe.create)({html:e,multilineTag:s.multilineTag,multilineWrapperTag:s.multilineWrapperTag}).text;return(0,a.flatMap)(n,(s=>{let n;return n=s.hasBlockPosition&&s.hasBlockPosition()?function(e,t,s,i,n){if(t===e.getBlockClientId()){let t=e.getBlockPositionStart(),o=e.getBlockPositionEnd();if(e.isMarkForFirstBlockSection()){const e=((e,t,s)=>{const i="yoast/faq-block"===s?'<strong class="schema-faq-question">':'<strong class="schema-how-to-step-name">';return{blockStartOffset:e-=i.length,blockEndOffset:t-=i.length}})(t,o,s);t=e.blockStartOffset,o=e.blockEndOffset}if(i.slice(t,o)===n.slice(t,o))return[{startOffset:t,endOffset:o}];const r=((e,t,s)=>{const i=s.slice(0,e),n=s.slice(0,t),o=((e,t,s,i)=>{const n=[...e.matchAll(Qe)];s-=We(n);const o=[...t.matchAll(Qe)];return{blockStartOffset:s,blockEndOffset:i-=We(o)}})(i,n,e,t),r=((e,t,s,i)=>{let n=[...e.matchAll(Ve)];return(0,a.forEachRight)(n,(e=>{const[,t]=e;s-=t.length})),n=[...t.matchAll(Ve)],(0,a.forEachRight)(n,(e=>{const[,t]=e;i-=t.length})),{blockStartOffset:s,blockEndOffset:i}})(i,n,e=o.blockStartOffset,t=o.blockEndOffset);return{blockStartOffset:e=r.blockStartOffset,blockEndOffset:t=r.blockEndOffset}})(t,o,i);return[{startOffset:r.blockStartOffset,endOffset:r.blockEndOffset}]}return[]}(s,o,i.name,e,r):function(e,t){const s=t.getOriginal().replace(/(<([^>]+)>)/gi,""),i=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),n=function(e,t,s=!0){const i=[];if(0===e.length)return i;let n,o=0;for(s||(t=t.toLowerCase(),e=e.toLowerCase());(n=e.indexOf(t,o))>-1;)i.push(n),o=n+t.length;return i}(e,s);if(0===n.length)return[];const o=function(e){let t=e.indexOf(ze);const s=t>=0;s||(t=e.indexOf($e));let i=null;const n=[];for(;t>=0;){if(i=(e=s?e.replace(ze,""):e.replace($e,"")).indexOf(He),i<t)return[];e=e.replace(He,""),n.push({startOffset:t,endOffset:i}),t=s?e.indexOf(ze):e.indexOf($e),i=null}return n}(i),a=[];return o.forEach((e=>{n.forEach((i=>{const n=i+e.startOffset;let o=i+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(o=i+s.length),a.push({startOffset:n,endOffset:o})}))})),a}(r,s),n?n.map((e=>({...e,block:o,richTextIdentifier:t}))):[]}))}const Je=e=>e[0].toUpperCase()+e.slice(1),Xe=(e,t,s,i,n)=>(e=e.map((e=>{const o=`${e.id}-${n[0]}`,a=`${e.id}-${n[1]}`,r=Je(n[0]),c=Je(n[1]),d=e[`json${r}`],l=e[`json${c}`],{marksForFirstSection:p,marksForSecondSection:u}=((e,t)=>({marksForFirstSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&e.isMarkForFirstBlockSection():e)),marksForSecondSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&!e.isMarkForFirstBlockSection():e))}))(t,e),h=Ge(d,o,s,i,p),g=Ge(l,a,s,i,u);return h.concat(g)})),(0,a.flattenDeep)(e)),Ze="yoast";let et=[];const tt={"core/paragraph":[{key:"content"}],"core/list":[{key:"values",multilineTag:"li",multilineWrapperTag:["ul","ol"]}],"core/list-item":[{key:"content"}],"core/heading":[{key:"content"}],"core/audio":[{key:"caption"}],"core/embed":[{key:"caption"}],"core/gallery":[{key:"caption"}],"core/image":[{key:"caption"}],"core/table":[{key:"caption"}],"core/video":[{key:"caption"}],"yoast/faq-block":[{key:"questions"}],"yoast/how-to-block":[{key:"steps"},{key:"jsonDescription"}]};function st(){const e=et.shift();e&&((0,c.dispatch)("core/annotations").__experimentalAddAnnotation(e),it())}function it(){(0,a.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(st,{timeout:1e3}):setTimeout(st,150)}const nt=(e,t)=>{return(0,a.flatMap)((s=e.name,tt.hasOwnProperty(s)?tt[s]:[]),(s=>"yoast/faq-block"===e.name?((e,t,s)=>{const i=t.attributes[e.key];return 0===i.length?[]:Xe(i,s,e,t,["question","answer"])})(s,e,t):"yoast/how-to-block"===e.name?((e,t,s)=>{const i=t.attributes[e.key];if(i&&0===i.length)return[];const n=[];return"steps"===e.key&&n.push(Xe(i,s,e,t,["name","text"])),"jsonDescription"===e.key&&(s=s.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?!e.getBlockAttributeId():e)),n.push(Ge(i,"description",e,t,s))),(0,a.flattenDeep)(n)})(s,e,t):function(e,t,s){const i=e.key,n=((e,t)=>{const s=e.attributes[t];return"string"==typeof s?s:(s||"").toString()})(t,i);return Ge(n,i,e,t,s)}(s,e,t)));var s};function ot(e,t){return(0,a.flatMap)(e,(e=>{const s=function(e){return e.innerBlocks.length>0}(e)?ot(e.innerBlocks,t):[];return nt(e,t).concat(s)}))}function at(e){et=[],(0,c.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource(Ze);const t=Ne(e);if(0===e.length)return;let s=(0,c.select)("core/block-editor").getBlocks();var i;t.length>0&&(s=s.filter((e=>t.some((t=>"core/"+t===e.name))))),i=ot(s,e),et=i.map((e=>({blockClientId:e.block,source:Ze,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}))),it()}function rt(e,t){let s;$(z)&&((0,a.isUndefined)(s)&&(s=j(tinyMCE.get(z))),s(e,t)),(0,c.select)("core/block-editor")&&(0,a.isFunction)((0,c.select)("core/block-editor").getBlocks)&&(0,c.select)("core/annotations")&&(0,a.isFunction)((0,c.dispatch)("core/annotations").__experimentalAddAnnotation)&&(function(e,t){tinyMCE.editors.map((e=>j(e))).forEach((s=>s(e,t)))}(e,t),at(t)),(0,ge.doAction)("yoast.analysis.applyMarks",t)}var ct=jQuery;function dt(e,t,s,i,n){this._scriptUrl=i,this._options={usedKeywords:t.keyword_usage,usedKeywordsPostTypes:t.keyword_usage_post_types,searchUrl:t.search_url,postUrl:t.post_edit_url},this._keywordUsage=t.keyword_usage,this._usedKeywordsPostTypes=t.keyword_usage_post_types,this._postID=ct("#post_ID, [name=tag_ID]").val(),this._taxonomy=ct("[name=taxonomy]").val()||"",this._nonce=n,this._ajaxAction=e,this._refreshAnalysis=s,this._initialized=!1}dt.prototype.init=function(){const{worker:e}=window.YoastSEO.analysis;this.requestKeywordUsage=(0,a.debounce)(this.requestKeywordUsage.bind(this),500),e.loadScript(this._scriptUrl).then((()=>{e.sendMessage("initialize",this._options,"used-keywords-assessment")})).then((()=>{this._initialized=!0,(0,a.isEqual)(this._options.usedKeywords,this._keywordUsage)?this._refreshAnalysis():e.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then((()=>this._refreshAnalysis()))})).catch((e=>console.error(e)))},dt.prototype.setKeyword=function(e){(0,a.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},dt.prototype.requestKeywordUsage=function(e){ct.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy,nonce:this._nonce},this.updateKeywordUsage.bind(this,e),"json")},dt.prototype.updateKeywordUsage=function(e,t){const{worker:s}=window.YoastSEO.analysis,i=t.keyword_usage,n=t.post_types;i&&(0,a.isArray)(i)&&(this._keywordUsage[e]=i,this._usedKeywordsPostTypes[e]=n,this._initialized&&s.sendMessage("updateKeywordUsage",{usedKeywords:this._keywordUsage,usedKeywordsPostTypes:this._usedKeywordsPostTypes},"used-keywords-assessment").then((()=>this._refreshAnalysis())))};const{refreshSnippetEditor:lt,updateData:pt,setFocusKeyword:ut,setCornerstoneContent:ht,setMarkerStatus:gt,setReadabilityResults:wt,setSeoResultsForKeyword:ft}=d.actions;function yt(e,t,s){var i,n;const o=new Ke;function r(){const e={slug:n.val()};window.YoastSEO.store.dispatch(pt(e))}function d(e){(0,a.isUndefined)(e.seoAssessorPresenter)||(e.seoAssessorPresenter.render=function(){}),(0,a.isUndefined)(e.contentAssessorPresenter)||(e.contentAssessorPresenter.render=function(){},e.contentAssessorPresenter.renderIndividualRatings=function(){})}let l;function p(e,t){const s=l||"";l=e.getState().analysisData.snippet,!(0,U.isShallowEqualObjects)(s,l)&&t()}!function(){var l,u,h,g,w,f,y,m,b;h=jQuery(".term-description-wrap").find("td"),g=jQuery(".term-description-wrap").find("label"),w=h.find("textarea").val(),f=document.getElementById("wp-description-wrap"),y=h.find("p"),h.html(""),h.append(f).append(y),document.getElementById("description").value=w,g.replaceWith(g.html()),u=new je({store:t}),l={elementTarget:[H,"yoast_wpseo_focuskw","yoast_wpseo_metadesc","excerpt","editable-post-name","editable-post-name-full"],targets:(m={},Re()&&(m.output="does-not-really-exist-but-it-needs-something"),xe()&&(m.contentOutput="also-does-not-really-exist-but-it-needs-something"),m),callbacks:{getData:u.getData.bind(u)},locale:wpseoScriptData.metabox.contentLocale,contentAnalysisActive:xe(),keywordAnalysisActive:Re(),debouncedRefresh:!1,researcher:new window.yoast.Researcher.default},Re()&&(t.dispatch(ut(u.getKeyword())),l.callbacks.saveScores=u.saveScores.bind(u),l.callbacks.updatedKeywordsResults=function(e){const s=t.getState().focusKeyword;t.dispatch(ft(s,e)),t.dispatch(lt())}),xe()&&(t.dispatch(gt("hidden")),l.callbacks.saveContentScore=u.saveContentScore.bind(u),l.callbacks.updatedContentResults=function(e){t.dispatch(wt(e)),t.dispatch(lt())}),i=new F.App(l),window.YoastSEO=window.YoastSEO||{},window.YoastSEO.app=i,window.YoastSEO.store=t,window.YoastSEO.analysis={},window.YoastSEO.analysis.worker=function(){const e=(0,a.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=(0,F.createWorker)(e),s=(0,a.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),i=[];for(const e in s){if(!Object.prototype.hasOwnProperty.call(s,e))continue;const t=window.document.getElementById(`${e}-js-translations`);if(!t)continue;const n=t.innerHTML.slice(214),o=n.indexOf(","),a=n.slice(0,o-1);try{const e=JSON.parse(n.slice(o+1,-4));i.push([a,e])}catch(t){console.warn(`Failed to parse translation data for ${e} to send to the Yoast SEO worker`);continue}}return t.postMessage({dependencies:s,translations:i}),new F.AnalysisWorkerWrapper(t)}(),window.YoastSEO.analysis.collectData=()=>function(e,t,s,i,n){const o=(0,a.cloneDeep)(t.getState());(0,a.merge)(o,s.getData());const r=e.getData();let c=null;n&&(c=n.getBlocks()||[],c=JSON.parse(JSON.stringify(c)),c=Ue(c));const d={text:r.content,textTitle:r.title,keyword:o.focusKeyword,synonyms:o.synonyms,description:o.analysisData.snippet.description||o.snippetEditor.data.description,title:o.analysisData.snippet.title||o.snippetEditor.data.title,slug:o.snippetEditor.data.slug,permalink:o.settings.snippetEditor.baseUrl+o.snippetEditor.data.slug,wpBlocks:c,date:o.settings.snippetEditor.date};i.loaded&&(d.title=i._applyModifications("data_page_title",d.title),d.title=i._applyModifications("title",d.title),d.description=i._applyModifications("data_meta_desc",d.description),d.text=i._applyModifications("content",d.text),d.wpBlocks=i._applyModifications("wpBlocks",d.wpBlocks));const l=o.analysisData.snippet.filteredSEOTitle;return d.titleWidth=Fe(l||o.snippetEditor.data.title),d.locale=Ee(),d.writingDirection=function(){let e="LTR";return ke().isRtl&&(e="RTL"),e}(),d.shortcodes=window.wpseoScriptData.analysis.plugins.shortcodes?window.wpseoScriptData.analysis.plugins.shortcodes.wpseo_shortcode_tags:[],d.isFrontPage="1"===(0,a.get)(window,"wpseoScriptData.isFrontPage","0"),F.Paper.parse((0,ge.applyFilters)("yoast.analysis.data",d))}(s,window.YoastSEO.store,o,window.YoastSEO.app.pluggable),window.YoastSEO.analysis.applyMarks=(e,t)=>function(){const e=(0,c.select)("yoast-seo/editor").isMarkingAvailable(),t=(0,c.select)("yoast-seo/editor").getMarkerPauseStatus();return!e||t?a.noop:rt}()(e,t),window.YoastSEO.app.refresh=(0,a.debounce)((()=>Me(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,window.YoastSEO.store,u)),500),window.YoastSEO.app.registerCustomDataCallback=o.register,window.YoastSEO.app.pluggable=new Z(window.YoastSEO.app.refresh),window.YoastSEO.app.registerPlugin=window.YoastSEO.app.pluggable._registerPlugin,window.YoastSEO.app.pluginReady=window.YoastSEO.app.pluggable._ready,window.YoastSEO.app.pluginReloaded=window.YoastSEO.app.pluggable._reloaded,window.YoastSEO.app.registerModification=window.YoastSEO.app.pluggable._registerModification,window.YoastSEO.app.registerAssessment=(e,t,s)=>{if(!(0,a.isUndefined)(i.seoAssessor))return window.YoastSEO.app.pluggable._registerAssessment(i.defaultSeoAssessor,e,t,s)&&window.YoastSEO.app.pluggable._registerAssessment(i.cornerStoneSeoAssessor,e,t,s)},window.YoastSEO.app.changeAssessorOptions=function(e){window.YoastSEO.analysis.worker.initialize(e).catch(Pe),window.YoastSEO.app.refresh()},function(e,t,s){const i=ke();if(!i.previouslyUsedKeywordActive)return;const n=new dt("get_term_keyword_usage",i,e,(0,a.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),(0,a.get)(window,["wpseoScriptData","usedKeywordsNonce"],""));n.init();let o={};s.subscribe((()=>{const e=s.getState()||{};e.focusKeyword!==o.focusKeyword&&(o=e,n.setKeyword(e.focusKeyword))}))}(i.refresh,0,t),t.subscribe(p.bind(null,t,i.refresh)),Re()&&(i.seoAssessor=new F.TaxonomyAssessor(i.config.researcher),i.seoAssessorPresenter.assessor=i.seoAssessor),window.YoastSEO.wp={},window.YoastSEO.wp.replaceVarsPlugin=new he(i,t),function(e,t){let s=[];s=(0,ge.applyFilters)("yoast.analysis.shortcodes",s);const i=wpseoScriptData.analysis.plugins.shortcodes.wpseo_shortcode_tags;s=s.filter((e=>i.includes(e))),s.length>0&&(t.dispatch(_e(s)),window.YoastSEO.wp.shortcodePlugin=new me({registerPlugin:e.registerPlugin,registerModification:e.registerModification,pluginReady:e.pluginReady,pluginReloaded:e.pluginReloaded},s))}(i,t),window.YoastSEO.analyzerArgs=l,(n=e("#slug")).on("change",r),u.bindElementEvents((0,a.debounce)((()=>Me(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,window.YoastSEO.store,u)),500)),Re()&&(Se(b=Be(e("#hidden_wpseo_linkdex").val())),ve(b)),xe()&&function(){var t=Be(e("#hidden_wpseo_content_score").val());Se(t),ve(t)}(),Oe()&&function(){const t=Be(e("#hidden_wpseo_inclusive_language_score").val());Se(t),ve(t)}(),window.YoastSEO.analysis.worker.initialize(function(e={}){const t={locale:Ee(),contentAnalysisActive:xe(),keywordAnalysisActive:Re(),inclusiveLanguageAnalysisActive:Oe(),defaultQueryParams:(0,a.get)(window,["wpseoAdminL10n","default_query_params"],{}),logLevel:(0,a.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:(0,Te.enabledFeatures)()};return(0,a.merge)(t,e)}({useTaxonomy:!0})).then((()=>{jQuery(window).trigger("YoastSEO:ready")})).catch(Pe),d(i);const _=i.initAssessorPresenters.bind(i);i.initAssessorPresenters=function(){_(),d(i)};let S={title:(v=u).getSnippetTitle(),slug:v.getSnippetCite(),description:v.getSnippetMeta()};var v;!function(e){const s=document.getElementById("hidden_wpseo_is_cornerstone");let i="1"===s.value;t.dispatch(ht(i)),e.changeAssessorOptions({useCornerstone:i}),t.subscribe((()=>{const n=t.getState();n.isCornerstone!==i&&(i=n.isCornerstone,s.value=i?"1":"0",e.changeAssessorOptions({useCornerstone:i}))}))}(i);const k=function(e){const t={};if((0,a.isUndefined)(e))return t;t.title=e.title_template;const s=e.metadesc_template;return(0,a.isEmpty)(s)||(t.description=s),t}(wpseoScriptData.metabox);S=function(e,t){const s={...e};return(0,a.forEach)(t,((t,i)=>{(0,a.has)(e,i)&&""===e[i]&&(s[i]=t)})),s}(S,k),t.dispatch(pt(S));let E=t.getState().focusKeyword;ee(window.YoastSEO.analysis.worker.runResearch,window.YoastSEO.store,E);const x=(0,a.debounce)((()=>{i.refresh()}),50);t.subscribe((()=>{const e=t.getState().focusKeyword;E!==e&&(E=e,ee(window.YoastSEO.analysis.worker.runResearch,window.YoastSEO.store,E),document.getElementById("hidden_wpseo_focuskw").value=E,x());const s=function(e){const t=e.getState().snippetEditor.data;return{title:t.title,slug:t.slug,description:t.description}}(t),i=function(e,t){const s={...e};return(0,a.forEach)(t,((t,i)=>{(0,a.has)(e,i)&&e[i].trim()===t&&(s[i]="")})),s}(s,k);S.title!==s.title&&u.setDataFromSnippet(i.title,"snippet_title"),S.slug!==s.slug&&u.setDataFromSnippet(i.slug,"snippet_cite"),S.description!==s.description&&u.setDataFromSnippet(i.description,"snippet_meta"),S.title=s.title,S.slug=s.slug,S.description=s.description})),Ce=!0,window.YoastSEO.app.refresh()}()}window.yoastHideMarkers=!0,window.YoastReplaceVarPlugin=he,window.YoastShortcodePlugin=be;let mt=null;const bt=()=>{if(null===mt){const e=(0,c.dispatch)("yoast-seo/editor").runAnalysis;mt=window.YoastSEO.app&&window.YoastSEO.app.pluggable?window.YoastSEO.app.pluggable:new Z(e)}return mt},_t=(e,t,s)=>bt().loaded?bt()._applyModifications(e,t,s):t;function St(){const{getAnalysisData:e,getEditorDataTitle:t,getIsFrontPage:s}=(0,c.select)("yoast-seo/editor");let i=e();i={...i,textTitle:t(),isFrontPage:s()};const n=function(e){return e.title=_t("data_page_title",e.title),e.title=_t("title",e.title),e.description=_t("data_meta_desc",e.description),e.text=_t("content",e.text),e}(i);return(0,ge.applyFilters)("yoast.analysis.data",n)}(0,a.debounce)((async function(e,t){const{text:s,...i}=t,n=new F.Paper(s,i);try{const t=await e.analyze(n),{seo:s,readability:i,inclusiveLanguage:o}=t.result;if(s){const e=s[""];e.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(n,e.marks)})),e.results=Ae(e.results),(0,c.dispatch)("yoast-seo/editor").setSeoResultsForKeyword(n.getKeyword(),e.results),(0,c.dispatch)("yoast-seo/editor").setOverallSeoScore(e.score,n.getKeyword())}i&&(i.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(n,e.marks)})),i.results=Ae(i.results),(0,c.dispatch)("yoast-seo/editor").setReadabilityResults(i.results),(0,c.dispatch)("yoast-seo/editor").setOverallReadabilityScore(i.score)),o&&(o.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(n,e.marks)})),o.results=Ae(o.results),(0,c.dispatch)("yoast-seo/editor").setInclusiveLanguageResults(o.results),(0,c.dispatch)("yoast-seo/editor").setOverallInclusiveLanguageScore(o.score)),(0,ge.doAction)("yoast.analysis.run",t,{paper:n})}catch(e){}}),500);const vt=()=>{const{getContentLocale:e}=(0,c.select)("yoast-seo/editor"),t=((...e)=>()=>e.map((e=>e())))(e,St),s=(()=>{const{setEstimatedReadingTime:e,setFleschReadingEase:t,setTextLength:s}=(0,c.dispatch)("yoast-seo/editor"),i=(0,a.get)(window,"YoastSEO.analysis.worker.runResearch",a.noop);return()=>{const n=F.Paper.parse(St());i("readingTime",n).then((t=>e(t.result))),i("getFleschReadingScore",n).then((e=>{e.result&&t(e.result)})),i("wordCountInText",n).then((e=>s(e.result)))}})();return setTimeout(s,1500),((e,t)=>{let s=e();return()=>{const i=e();(0,a.isEqual)(i,s)||(s=i,t((0,a.clone)(i)))}})(t,s)};i()((()=>{window.wpseoTermScraperL10n=window.wpseoScriptData.metabox,function(e){function t(){e("#copy-home-meta-description").on("click",(function(){e("#open_graph_frontpage_desc").val(e("#meta_description").val())}))}function s(){var t=e("#wpseo-conf");if(t.length){var s=t.attr("action").split("#")[0];t.attr("action",s+window.location.hash)}}function i(){var t=window.location.hash.replace("#top#","");-1!==t.search("#top")&&(t=window.location.hash.replace("#top%23","")),""!==t&&"#"!==t.charAt(0)||(t=e(".wpseotab").attr("id")),e("#"+t).addClass("active"),e("#"+t+"-tab").addClass("nav-tab-active").trigger("click")}function n(t){const s=e("#noindex-author-noposts-wpseo-container");t?s.show():s.hide()}e.fn._wpseoIsInViewport=function(){const t=e(this).offset().top,s=t+e(this).outerHeight(),i=e(window).scrollTop(),n=i+e(window).height();return t>i&&s<n},e(window).on("hashchange",(function(){i(),s()})),window.setWPOption=function(t,s,i,n){e.post(ajaxurl,{action:"wpseo_set_option",option:t,newval:s,_wpnonce:n},(function(t){t&&e("#"+i).hide()}))},window.wpseoCopyHomeMeta=t,window.wpseoSetTabHash=s,e(document).ready((function(){s(),"function"==typeof window.wpseoRedirectOldFeaturesTabToNewSettings&&window.wpseoRedirectOldFeaturesTabToNewSettings(),e("#disable-author input[type='radio']").on("change",(function(){e(this).is(":checked")&&e("#author-archives-titles-metas-content").toggle("off"===e(this).val())})).trigger("change");const o=e("#noindex-author-wpseo-off"),c=e("#noindex-author-wpseo-on");o.is(":checked")||n(!1),c.on("change",(()=>{e(this).is(":checked")||n(!1)})),o.on("change",(()=>{e(this).is(":checked")||n(!0)})),e("#disable-date input[type='radio']").on("change",(function(){e(this).is(":checked")&&e("#date-archives-titles-metas-content").toggle("off"===e(this).val())})).trigger("change"),e("#disable-attachment input[type='radio']").on("change",(function(){e(this).is(":checked")&&e("#media_settings").toggle("off"===e(this).val())})).trigger("change"),e("#disable-post_format").on("change",(function(){e("#post_format-titles-metas").toggle(e(this).is(":not(:checked)"))})).trigger("change"),e("#wpseo-tabs").find("a").on("click",(function(t){var s,i,n,o=!0;if(s=e(this),i=!!e("#first-time-configuration-tab").filter(".nav-tab-active").length,n=!!s.filter("#first-time-configuration-tab").length,i&&!n&&window.isStepBeingEdited&&(o=confirm((0,r.__)("There are unsaved changes in one or more steps. Leaving means that those changes may not be saved. Are you sure you want to leave?","wordpress-seo"))),o){window.isStepBeingEdited=!1,e("#wpseo-tabs").find("a").removeClass("nav-tab-active"),e(".wpseotab").removeClass("active");var a=e(this).attr("id").replace("-tab",""),c=e("#"+a);c.addClass("active"),e(this).addClass("nav-tab-active"),c.hasClass("nosave")?e("#wpseo-submit-container").hide():e("#wpseo-submit-container").show(),e(window).trigger("yoast-seo-tab-change"),"first-time-configuration"===a?(e(".notice-yoast").slideUp(),e(".yoast_premium_upsell").slideUp(),e("#sidebar-container").hide()):(e(".notice-yoast").slideDown(),e(".yoast_premium_upsell").slideDown(),e("#sidebar-container").show())}else t.preventDefault(),e("#first-time-configuration-tab").trigger("focus")})),e("#yoast-first-time-configuration-notice a").on("click",(function(){e("#first-time-configuration-tab").click()})),e("#company_or_person").on("change",(function(){var t=e(this).val();"company"===t?(e("#knowledge-graph-company").show(),e("#knowledge-graph-person").hide()):"person"===t?(e("#knowledge-graph-company").hide(),e("#knowledge-graph-person").show()):(e("#knowledge-graph-company").hide(),e("#knowledge-graph-person").hide())})).trigger("change"),e(".switch-yoast-seo input").on("keydown",(function(e){"keydown"===e.type&&13===e.which&&e.preventDefault()})),e("body").on("click","button.toggleable-container-trigger",(t=>{const s=e(t.currentTarget),i=s.parent().siblings(".toggleable-container");i.toggleClass("toggleable-container-hidden"),s.attr("aria-expanded",!i.hasClass("toggleable-container-hidden")).find("span").toggleClass("dashicons-arrow-up-alt2 dashicons-arrow-down-alt2")}));const d=e("#opengraph"),l=e("#wpseo-opengraph-settings");d.length&&l.length&&(l.toggle(d[0].checked),d.on("change",(e=>{l.toggle(e.target.checked)}))),t(),i(),function(){if(!e("#enable_xml_sitemap input[type=radio]").length)return;const t=e("#yoast-seo-sitemaps-disabled-warning");e("#enable_xml_sitemap input[type=radio]").on("change",(function(){"off"===this.value?t.show():t.hide()}))}(),function(){const t=e("#wpseo-submit-container-float"),s=e("#wpseo-submit-container-fixed");if(!t.length||!s.length)return;function i(){t._wpseoIsInViewport()?s.hide():s.show()}e(window).on("resize scroll",(0,a.debounce)(i,100)),e(window).on("yoast-seo-tab-change",i);const n=e(".wpseo-message");n.length&&window.setTimeout((()=>{n.fadeOut()}),5e3),i()}()}))}(o()),function(e){function t(e){e&&(e.focus(),e.click())}function s(){if(e(".wpseo-meta-section").length>0){const t=e(".wpseo-meta-section-link");e(".wpseo-metabox-menu li").filter((function(){return"#wpseo-meta-section-content"===e(this).find(".wpseo-meta-section-link").attr("href")})).addClass("active").find("[role='tab']").addClass("yoast-active-tab"),e("#wpseo-meta-section-content, .wpseo-meta-section-react").addClass("active"),t.on("click",(function(s){var i=e(this).attr("id"),n=e(this).attr("href"),o=e(n);s.preventDefault(),e(".wpseo-metabox-menu li").removeClass("active").find("[role='tab']").removeClass("yoast-active-tab"),e(".wpseo-meta-section").removeClass("active"),e(".wpseo-meta-section-react.active").removeClass("active"),"#wpseo-meta-section-content"===n&&e(".wpseo-meta-section-react").addClass("active"),o.addClass("active"),e(this).parent("li").addClass("active").find("[role='tab']").addClass("yoast-active-tab");const a=function(e,t={}){return new CustomEvent("YoastSEO:metaTabChange",{detail:t})}(0,{metaTabId:i});window.dispatchEvent(a),this&&(t.attr({"aria-selected":"false",tabIndex:"-1"}),this.removeAttribute("tabindex"),this.setAttribute("aria-selected","true"))}))}}window.wpseoInitTabs=s,window.wpseo_init_tabs=s,e(".wpseo-meta-section").each((function(t,s){e(s).find(".wpseotab:first").addClass("active")})),window.wpseo_init_tabs(),function(){const s=e(".yoast-aria-tabs"),i=s.find("[role='tab']"),n=s.attr("aria-orientation")||"horizontal";i.attr({"aria-selected":!1,tabIndex:"-1"}),i.filter(".yoast-active-tab").removeAttr("tabindex").attr("aria-selected","true"),i.on("keydown",(function(s){-1!==[32,35,36,37,38,39,40].indexOf(s.which)&&("horizontal"===n&&-1!==[38,40].indexOf(s.which)||"vertical"===n&&-1!==[37,39].indexOf(s.which)||function(s,i){const n=s.which,o=i.index(e(s.target));switch(n){case 32:s.preventDefault(),t(i[o]);break;case 35:s.preventDefault(),t(i[i.length-1]);break;case 36:s.preventDefault(),t(i[0]);break;case 37:case 38:s.preventDefault(),t(i[o-1<0?i.length-1:o-1]);break;case 39:case 40:s.preventDefault(),t(i[o+1===i.length?0:o+1])}}(s,i))}))}()}(o());const e=function(){const e=(0,c.registerStore)("yoast-seo/editor",{reducer:(0,c.combineReducers)(d.reducers),selectors:d.selectors,actions:(0,a.pickBy)(d.actions,(e=>"function"==typeof e)),controls:t});return(e=>{e.dispatch(d.actions.setSettings({socialPreviews:{sitewideImage:window.wpseoScriptData.sitewideSocialImage,siteName:window.wpseoScriptData.metabox.site_name,contentImage:window.wpseoScriptData.metabox.first_content_image,twitterCardType:window.wpseoScriptData.metabox.twitterCardType},snippetEditor:{baseUrl:window.wpseoScriptData.metabox.base_url,date:window.wpseoScriptData.metabox.metaDescriptionDate,recommendedReplacementVariables:window.wpseoScriptData.analysis.plugins.replaceVars.recommended_replace_vars,siteIconUrl:window.wpseoScriptData.metabox.siteIconUrl}})),e.dispatch(d.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(d.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(d.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(d.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(d.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases)),e.dispatch(d.actions.setDismissedAlerts((0,a.get)(window,"wpseoScriptData.dismissedAlerts",{}))),e.dispatch(d.actions.setCurrentPromotions((0,a.get)(window,"wpseoScriptData.currentPromotions",[]))),e.dispatch(d.actions.setIsPremium(Boolean((0,a.get)(window,"wpseoScriptData.metabox.isPremium",!1)))),e.dispatch(d.actions.setPostId(Number((0,a.get)(window,"wpseoScriptData.postId",null)))),e.dispatch(d.actions.setAdminUrl((0,a.get)(window,"wpseoScriptData.adminUrl",""))),e.dispatch(d.actions.setLinkParams((0,a.get)(window,"wpseoScriptData.linkParams",{}))),e.dispatch(d.actions.setPluginUrl((0,a.get)(window,"wpseoScriptData.pluginUrl",""))),e.dispatch(d.actions.setWistiaEmbedPermissionValue("1"===(0,a.get)(window,"wpseoScriptData.wistiaEmbedPermission",!1)))})(e),e}();window.yoast.initEditorIntegration(e);const s=new window.yoast.EditorData(a.noop,e,H);s.initialize(window.wpseoScriptData.analysis.plugins.replaceVars.replace_vars),yt(o(),e,s),(()=>{if((0,c.select)("yoast-seo/editor").getPreference("isInsightsEnabled",!1))(0,c.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),(0,c.subscribe)((0,a.debounce)(vt(),1500,{maxWait:3e3}))})()}))})(); \ No newline at end of file +(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var i in s)e.o(s,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:s[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{DISMISS_ALERT:()=>A,NEW_REQUEST:()=>D,SNIPPET_EDITOR_FIND_CUSTOM_FIELDS:()=>M,wistiaEmbedPermission:()=>I});const s=window.wp.domReady;var i=e.n(s);const n=window.jQuery;var o=e.n(n);const a=window.lodash,r=window.wp.i18n;const c=window.wp.data,d=window.yoast.externals.redux,l=window.yoast.reduxJsToolkit,p="adminUrl",u=(0,l.createSlice)({name:p,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),h=(u.getInitialState,{selectAdminUrl:e=>(0,a.get)(e,p,"")});h.selectAdminLink=(0,l.createSelector)([h.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),u.actions,u.reducer;const g=window.wp.apiFetch;var w=e.n(g);const f="hasConsent",y=(0,l.createSlice)({name:f,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),m=(y.getInitialState,y.actions,y.reducer,window.wp.url),b="linkParams",_=(0,l.createSlice)({name:b,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),S=(_.getInitialState,{selectLinkParam:(e,t,s={})=>(0,a.get)(e,`${b}.${t}`,s),selectLinkParams:e=>(0,a.get)(e,b,{})});S.selectLink=(0,l.createSelector)([S.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,m.addQueryArgs)(t,{...e,...s}))),_.actions,_.reducer;const v=(0,l.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:i,description:n})=>({payload:{id:e||(0,l.nanoid)(),variant:t,size:s,title:i||"",description:n}})},removeNotification:(e,{payload:t})=>(0,a.omit)(e,t)}}),k=(v.getInitialState,v.actions,v.reducer,"pluginUrl"),E=(0,l.createSlice)({name:k,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),x=(E.getInitialState,{selectPluginUrl:e=>(0,a.get)(e,k,"")});x.selectImageLink=(0,l.createSelector)([x.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,a.trimEnd)(e,"/"),(0,a.trim)(t,"/"),(0,a.trimStart)(s,"/")].join("/"))),E.actions,E.reducer;const R="wistiaEmbedPermission",O=(0,l.createSlice)({name:R,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${R}/request`,(e=>{e.status="loading"})),e.addCase(`${R}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${R}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,a.get)(t,"error.code",500),message:(0,a.get)(t,"error.message","Unknown")}}))}}),T=(O.getInitialState,O.actions,{[R]:async({payload:e})=>w()({path:"/yoast/v1/wistia_embed_permission",method:"POST",data:{value:Boolean(e)}})});var P;O.reducer;const C=(0,l.createSlice)({name:"documentTitle",initialState:(0,a.defaultTo)(null===(P=document)||void 0===P?void 0:P.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}});function A({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}function M({query:e,postId:t}){return new Promise((s=>{wpseoApi.get("meta/search",{query:e,post_id:t},(e=>{s(e.meta)}))}))}C.getInitialState,C.actions,C.reducer;const D=async({countryCode:e,keyphrase:t})=>(w()({path:"yoast/v1/semrush/country_code",method:"POST",data:{country_code:e}}),w()({path:(0,m.addQueryArgs)("/yoast/v1/semrush/related_keyphrases",{keyphrase:t,country_code:e})})),I=T[R];const F=window.yoast.analysis,U=window.wp.isShallowEqual,B="yoastmark";function Y(e,t){return e._properties.position.startOffset>t.length||e._properties.position.endOffset>t.length}function L(e,t,s){const i=e.dom;let n=e.getContent();if(n=F.markers.removeMarks(n),(0,a.isEmpty)(s))return void e.setContent(n);n=s[0].hasPosition()?function(e,t){if(!t)return"";for(let s=(e=(0,a.orderBy)(e,(e=>e._properties.position.startOffset),["asc"])).length-1;s>=0;s--){const i=e[s];Y(i,t)||(t=i.applyWithPosition(t))}return t}(s,n):function(e,t,s,i){const{fieldsToMark:n,selectedHTML:o}=F.languageProcessing.getFieldsToMark(s,i);return(0,a.forEach)(s,(function(t){"acf_content"!==e.id&&(t._properties.marked=F.languageProcessing.normalizeHTML(t._properties.marked),t._properties.original=F.languageProcessing.normalizeHTML(t._properties.original)),n.length>0?o.forEach((e=>{const s=t.applyWithReplace(e);i=i.replace(e,s)})):i=t.applyWithReplace(i)})),i}(e,0,s,n),e.setContent(n),function(e){let t=e.getContent();t=t.replace(new RegExp("<yoastmark.+?>","g"),"").replace(new RegExp("</yoastmark>","g"),""),e.setContent(t)}(e);const o=i.select(B);(0,a.forEach)(o,(function(e){e.setAttribute("data-mce-bogus","1")}))}function j(e){return window.test=e,L.bind(null,e)}const K="et_pb_main_editor_wrap",N=class{static isActive(){return!!document.getElementById(K)}static isTinyMCEHidden(){const e=document.getElementById(K);return!!e&&e.classList.contains("et_pb_hidden")}listen(e){this.classicEditorContainer=document.getElementById(K),this.classicEditorContainer&&new MutationObserver((t=>{(0,a.forEach)(t,(t=>{"attributes"===t.type&&"class"===t.attributeName&&(t.target.classList.contains("et_pb_hidden")?e.classicEditorHidden():e.classicEditorShown())}))})).observe(this.classicEditorContainer,{attributes:!0})}},q=class{static isActive(){return!!window.VCV_I18N}},Q={classicEditorHidden:a.noop,classicEditorShown:a.noop,pageBuilderLoaded:a.noop},V=class{constructor(){this.determineActivePageBuilders()}determineActivePageBuilders(){N.isActive()&&(this.diviActive=!0),q.isActive()&&(this.vcActive=!0)}isPageBuilderActive(){return this.diviActive||this.vcActive}listen(e){this.callbacks=(0,a.defaults)(e,Q),this.diviActive&&(new N).listen(e)}isClassicEditorHidden(){return!(!this.diviActive||!N.isTinyMCEHidden())}};let W;const z="content",H="description";function $(e){if("undefined"==typeof tinyMCE||void 0===tinyMCE.editors||0===tinyMCE.editors.length)return!1;const t=tinyMCE.get(e);return null!==t&&!t.isHidden()}function G(e,t,s){"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(i){const n=i.editor;n.id===e&&(0,a.forEach)(t,(function(e){n.on(e,s)}))}))}function J(){(0,a.isUndefined)(W)||W.dispatch(d.actions.setMarkerStatus("disabled"))}function X(){(0,a.isUndefined)(W)||W.dispatch(d.actions.setMarkerStatus("enabled"))}class Z{constructor(e){this.refresh=e,this.loaded=!1,this.preloadThreshold=3e3,this.plugins={},this.modifications={},this._registerPlugin=this._registerPlugin.bind(this),this._ready=this._ready.bind(this),this._reloaded=this._reloaded.bind(this),this._registerModification=this._registerModification.bind(this),this._registerAssessment=this._registerAssessment.bind(this),this._applyModifications=this._applyModifications.bind(this),setTimeout(this._pollLoadingPlugins.bind(this),1500)}_registerPlugin(e,t){return(0,a.isString)(e)?(0,a.isUndefined)(t)||(0,a.isObject)(t)?!1===this._validateUniqueness(e)?(console.error("Failed to register plugin. Plugin with name "+e+" already exists"),!1):(this.plugins[e]=t,!0):(console.error("Failed to register plugin "+e+". Expected parameters `options` to be a object."),!1):(console.error("Failed to register plugin. Expected parameter `pluginName` to be a string."),!1)}_ready(e){return(0,a.isString)(e)?(0,a.isUndefined)(this.plugins[e])?(console.error("Failed to modify status for plugin "+e+". The plugin was not properly registered."),!1):(this.plugins[e].status="ready",!0):(console.error("Failed to modify status for plugin "+e+". Expected parameter `pluginName` to be a string."),!1)}_reloaded(e){return(0,a.isString)(e)?(0,a.isUndefined)(this.plugins[e])?(console.error("Failed to reload Content Analysis for plugin "+e+". The plugin was not properly registered."),!1):(this.refresh(),!0):(console.error("Failed to reload Content Analysis for "+e+". Expected parameter `pluginName` to be a string."),!1)}_registerModification(e,t,s,i){if(!(0,a.isString)(e))return console.error("Failed to register modification for plugin "+s+". Expected parameter `modification` to be a string."),!1;if(!(0,a.isFunction)(t))return console.error("Failed to register modification for plugin "+s+". Expected parameter `callable` to be a function."),!1;if(!(0,a.isString)(s))return console.error("Failed to register modification for plugin "+s+". Expected parameter `pluginName` to be a string."),!1;if(!1===this._validateOrigin(s))return console.error("Failed to register modification for plugin "+s+". The integration has not finished loading yet."),!1;const n={callable:t,origin:s,priority:(0,a.isNumber)(i)?i:10};return(0,a.isUndefined)(this.modifications[e])&&(this.modifications[e]=[]),this.modifications[e].push(n),!0}_registerAssessment(e,t,s,i){return(0,a.isString)(t)?(0,a.isObject)(s)?(0,a.isString)(i)?(t=i+"-"+t,e.addAssessment(t,s),!0):(console.error("Failed to register assessment for plugin "+i+". Expected parameter `pluginName` to be a string."),!1):(console.error("Failed to register assessment for plugin "+i+". Expected parameter `assessment` to be a function."),!1):(console.error("Failed to register test for plugin "+i+". Expected parameter `name` to be a string."),!1)}_applyModifications(e,t,s){let i=this.modifications[e];return!(0,a.isArray)(i)||i.length<1||(i=this._stripIllegalModifications(i),i.sort(((e,t)=>e.priority-t.priority)),(0,a.forEach)(i,(function(i){const n=i.callable(t,s);typeof n==typeof t?t=n:console.error("Modification with name "+e+" performed by plugin with name "+i.origin+" was ignored because the data that was returned by it was of a different type than the data we had passed it.")}))),t}_pollLoadingPlugins(e){e=(0,a.isUndefined)(e)?0:e,!0===this._allReady()?(this.loaded=!0,this.refresh()):e>=this.preloadThreshold?(this._pollTimeExceeded(),this.loaded=!0,this.refresh()):(e+=50,setTimeout(this._pollLoadingPlugins.bind(this,e),50))}_allReady(){return(0,a.reduce)(this.plugins,(function(e,t){return e&&"ready"===t.status}),!0)}_pollTimeExceeded(){(0,a.forEach)(this.plugins,(function(e,t){(0,a.isUndefined)(e.options)||"ready"===e.options.status||(console.error("Error: Plugin "+t+". did not finish loading in time."),delete this.plugins[t])}))}_stripIllegalModifications(e){return(0,a.forEach)(e,((t,s)=>{!1===this._validateOrigin(t.origin)&&delete e[s]})),e}_validateOrigin(e){return"ready"===this.plugins[e].status}_validateUniqueness(e){return(0,a.isUndefined)(this.plugins[e])}}function ee(e,t,s){e("morphology",new F.Paper("",{keyword:s})).then((e=>{const s=e.result.keyphraseForms;t.dispatch(d.actions.updateWordsToHighlight((0,a.uniq)((0,a.flatten)(s))))})).catch((()=>{t.dispatch(d.actions.updateWordsToHighlight([]))}))}const te=window.wp.api;function se(){return window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor}var ie={source:"wpseoScriptData.analysis.plugins.replaceVars",scope:[],aliases:[]},ne=function(e,t,s){this.placeholder=e,this.replacement=t,this.options=(0,a.defaults)(s,ie)};ne.prototype.getPlaceholder=function(e){return(e=e||!1)&&this.hasAlias()?this.placeholder+"|"+this.getAliases().join("|"):this.placeholder},ne.prototype.setSource=function(e){this.options.source=e},ne.prototype.hasScope=function(){return!(0,a.isEmpty)(this.options.scope)},ne.prototype.addScope=function(e){this.hasScope()||(this.options.scope=[]),this.options.scope.push(e)},ne.prototype.inScope=function(e){return!this.hasScope()||(0,a.indexOf)(this.options.scope,e)>-1},ne.prototype.hasAlias=function(){return!(0,a.isEmpty)(this.options.aliases)},ne.prototype.addAlias=function(e){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(e)},ne.prototype.getAliases=function(){return this.options.aliases};const oe=ne,{removeReplacementVariable:ae,updateReplacementVariable:re,refreshSnippetEditor:ce}=d.actions;var de=["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc","excerpt"],le={},pe={},ue=function(e,t){this._app=e,this._app.registerPlugin("replaceVariablePlugin",{status:"ready"}),this._store=t,this.replaceVariables=this.replaceVariables.bind(this),this.registerReplacements(),this.registerModifications(),this.registerEvents(),this.subscribeToGutenberg()};ue.prototype.registerReplacements=function(){this.addReplacement(new oe("%%author_first_name%%","author_first_name")),this.addReplacement(new oe("%%author_last_name%%","author_last_name")),this.addReplacement(new oe("%%category%%","category")),this.addReplacement(new oe("%%category_title%%","category_title")),this.addReplacement(new oe("%%currentdate%%","currentdate")),this.addReplacement(new oe("%%currentday%%","currentday")),this.addReplacement(new oe("%%currentmonth%%","currentmonth")),this.addReplacement(new oe("%%currenttime%%","currenttime")),this.addReplacement(new oe("%%currentyear%%","currentyear")),this.addReplacement(new oe("%%date%%","date")),this.addReplacement(new oe("%%id%%","id")),this.addReplacement(new oe("%%page%%","page")),this.addReplacement(new oe("%%permalink%%","permalink")),this.addReplacement(new oe("%%post_content%%","post_content")),this.addReplacement(new oe("%%post_month%%","post_month")),this.addReplacement(new oe("%%post_year%%","post_year")),this.addReplacement(new oe("%%searchphrase%%","searchphrase")),this.addReplacement(new oe("%%sitedesc%%","sitedesc")),this.addReplacement(new oe("%%sitename%%","sitename")),this.addReplacement(new oe("%%userid%%","userid")),this.addReplacement(new oe("%%focuskw%%","keyword",{source:"app",aliases:["%%keyword%%"]})),this.addReplacement(new oe("%%term_description%%","text",{source:"app",scope:["term","category","tag"],aliases:["%%tag_description%%","%%category_description%%"]})),this.addReplacement(new oe("%%term_title%%","term_title",{scope:["term"]})),this.addReplacement(new oe("%%term_hierarchy%%","term_hierarchy",{scope:["term"]})),this.addReplacement(new oe("%%title%%","title",{source:"app",scope:["post","term","page"]})),this.addReplacement(new oe("%%parent_title%%","title",{source:"app",scope:["page","category"]})),this.addReplacement(new oe("%%excerpt%%","excerpt",{source:"app",scope:["post"],aliases:["%%excerpt_only%%"]})),this.addReplacement(new oe("%%primary_category%%","primaryCategory",{source:"app",scope:["post"]})),this.addReplacement(new oe("%%sep%%(\\s*%%sep%%)*","sep"))},ue.prototype.registerEvents=function(){const e=wpseoScriptData.analysis.plugins.replaceVars.scope;"post"===e&&jQuery(".categorydiv").each(this.bindTaxonomyEvents.bind(this)),"post"!==e&&"page"!==e||jQuery("#postcustomstuff > #list-table").each(this.bindFieldEvents.bind(this))},ue.prototype.subscribeToGutenberg=function(){if(!se())return;const e={0:""};let t=null;const s=wp.data;s.subscribe((()=>{const i=s.select("core/editor").getEditedPostAttribute("parent");if(void 0!==i&&t!==i)return t=i,i<1?(this._currentParentPageTitle="",void this.declareReloaded()):(0,a.isUndefined)(e[i])?void te.loadPromise.done((()=>{new te.models.Page({id:i}).fetch().then((t=>{this._currentParentPageTitle=t.title.rendered,e[i]=this._currentParentPageTitle,this.declareReloaded()})).fail((()=>{this._currentParentPageTitle="",this.declareReloaded()}))})):(this._currentParentPageTitle=e[i],void this.declareReloaded())}))},ue.prototype.addReplacement=function(e){le[e.placeholder]=e},ue.prototype.removeReplacement=function(e){delete le[e.getPlaceholder()]},ue.prototype.registerModifications=function(){var e=this.replaceVariables.bind(this);(0,a.forEach)(de,function(t){this._app.registerModification(t,e,"replaceVariablePlugin",10)}.bind(this))},ue.prototype.replaceVariables=function(e){return(0,a.isUndefined)(e)||(e=this.parentReplace(e),e=this.replaceCustomTaxonomy(e),e=this.replaceByStore(e),e=this.replacePlaceholders(e)),e},ue.prototype.replaceByStore=function(e){const t=this._store.getState().snippetEditor.replacementVariables;return(0,a.forEach)(t,(t=>{""!==t.value&&(e=e.replace("%%"+t.name+"%%",t.value))})),e},ue.prototype.getReplacementSource=function(e){return"app"===e.source?this._app.rawData:"direct"===e.source?"direct":wpseoScriptData.analysis.plugins.replaceVars.replace_vars},ue.prototype.getReplacement=function(e){var t=this.getReplacementSource(e.options);return!1===e.inScope(wpseoScriptData.analysis.plugins.replaceVars.scope)?"":"direct"===t?e.replacement:t[e.replacement]||""},ue.prototype.replacePlaceholders=function(e){return(0,a.forEach)(le,function(t){e=e.replace(new RegExp(t.getPlaceholder(!0),"g"),this.getReplacement(t))}.bind(this)),e},ue.prototype.declareReloaded=function(){this._app.pluginReloaded("replaceVariablePlugin"),this._store.dispatch(ce())},ue.prototype.getCategoryName=function(e){var t=e.parent("label").clone();return t.children().remove(),t.text().trim()},ue.prototype.parseTaxonomies=function(e,t){(0,a.isUndefined)(pe[t])&&(pe[t]={});const s=[];(0,a.forEach)(e,function(e){const i=(e=jQuery(e)).val(),n=this.getCategoryName(e),o=e.prop("checked");pe[t][i]={label:n,checked:o},o&&-1===s.indexOf(n)&&s.push(n)}.bind(this)),"category"!==t&&(t="ct_"+t),this._store.dispatch(re(t,s.join(", ")))},ue.prototype.getAvailableTaxonomies=function(e){var t=jQuery(e).find("input[type=checkbox]"),s=jQuery(e).attr("id").replace("taxonomy-","");t.length>0&&this.parseTaxonomies(t,s),this.declareReloaded()},ue.prototype.bindTaxonomyEvents=function(e,t){(t=jQuery(t)).on("wpListAddEnd",".categorychecklist",this.getAvailableTaxonomies.bind(this,t)),t.on("change","input[type=checkbox]",this.getAvailableTaxonomies.bind(this,t)),this.getAvailableTaxonomies(t)},ue.prototype.replaceCustomTaxonomy=function(e){return(0,a.forEach)(pe,function(t,s){var i="%%ct_"+s+"%%";"category"===s&&(i="%%"+s+"%%"),e=e.replace(i,this.getTaxonomyReplaceVar(s))}.bind(this)),e},ue.prototype.getTaxonomyReplaceVar=function(e){var t=[],s=pe[e];return!0===(0,a.isUndefined)(s)?"":((0,a.forEach)(s,(function(e){!1!==e.checked&&t.push(e.label)})),jQuery.uniqueSort(t).join(", "))},ue.prototype.parseFields=function(e){jQuery(e).each(function(e,t){var s=jQuery("#"+t.id+"-key").val(),i=jQuery("#"+t.id+"-value").val();const n="cf_"+this.sanitizeCustomFieldNames(s),o=s+" (custom field)";this._store.dispatch(re(n,i,o)),this.addReplacement(new oe(`%%${n}%%`,i,{source:"direct"}))}.bind(this))},ue.prototype.removeFields=function(e){jQuery(e).each(function(e,t){var s=jQuery("#"+t.id+"-key").val();this.removeReplacement("%%cf_"+this.sanitizeCustomFieldNames(s)+"%%")}.bind(this))},ue.prototype.sanitizeCustomFieldNames=function(e){return e.replace(/\s/g,"_")},ue.prototype.getAvailableFields=function(e){this.removeCustomFields();var t=jQuery(e).find("#the-list > tr:visible[id]");t.length>0&&this.parseFields(t),this.declareReloaded()},ue.prototype.bindFieldEvents=function(e,t){var s=(t=jQuery(t)).find("#the-list");s.on("wpListDelEnd.wpseoCustomFields",this.getAvailableFields.bind(this,t)),s.on("wpListAddEnd.wpseoCustomFields",this.getAvailableFields.bind(this,t)),s.on("input.wpseoCustomFields",".textarea",this.getAvailableFields.bind(this,t)),s.on("click.wpseoCustomFields",".button + .updatemeta",this.getAvailableFields.bind(this,t)),this.getAvailableFields(t)},ue.prototype.removeCustomFields=function(){var e=(0,a.filter)(le,(function(e,t){return t.indexOf("%%cf_")>-1}));(0,a.forEach)(e,function(e){this._store.dispatch(ae((0,a.trim)(e.placeholder,"%%"))),this.removeReplacement(e)}.bind(this))},ue.prototype.parentReplace=function(e){const t=jQuery("#parent_id, #parent").eq(0);return this.hasParentTitle(t)&&(e=e.replace(/%%parent_title%%/,this.getParentTitleReplacement(t))),se()&&!(0,a.isUndefined)(this._currentParentPageTitle)&&(e=e.replace(/%%parent_title%%/,this._currentParentPageTitle)),e},ue.prototype.hasParentTitle=function(e){return!(0,a.isUndefined)(e)&&!(0,a.isUndefined)(e.prop("options"))},ue.prototype.getParentTitleReplacement=function(e){var t=e.find("option:selected").text();return t===(0,r.__)("(no parent)","wordpress-seo")?"":t},ue.ReplaceVar=oe;const he=ue,ge=window.wp.hooks,we="[^<>&/\\[\\]\0- =]+?",fe=new RegExp("\\["+we+"( [^\\]]+?)?\\]","g"),ye=new RegExp("\\[/"+we+"\\]","g");class me{constructor({registerPlugin:e,registerModification:t,pluginReady:s,pluginReloaded:i},n){this._registerModification=t,this._pluginReady=s,this._pluginReloaded=i,e("YoastShortcodePlugin",{status:"loading"}),this.bindElementEvents();const o="("+n.join("|")+")";this.shortcodesRegex=new RegExp(o,"g"),this.closingTagRegex=new RegExp("\\[\\/"+o+"\\]","g"),this.nonCaptureRegex=new RegExp("\\["+o+"[^\\]]*?\\]","g"),this.parsedShortcodes=[],this.loadShortcodes(this.declareReady.bind(this))}declareReady(){this._pluginReady("YoastShortcodePlugin"),this.registerModifications()}declareReloaded(){this._pluginReloaded("YoastShortcodePlugin")}registerModifications(){this._registerModification("content",this.replaceShortcodes.bind(this),"YoastShortcodePlugin")}removeUnknownShortCodes(e){return(e=e.replace(fe,"")).replace(ye,"")}replaceShortcodes(e){return"string"==typeof e&&this.parsedShortcodes.forEach((({shortcode:t,output:s})=>{e=e.replace(t,s)})),e=this.removeUnknownShortCodes(e)}loadShortcodes(e){const t=this.getUnparsedShortcodes(this.getShortcodes(this.getContentTinyMCE()));if(!(t.length>0))return e();this.parseShortcodes(t,e)}bindElementEvents(){const e=document.querySelector(".wp-editor-area"),t=(0,a.debounce)(this.loadShortcodes.bind(this,this.declareReloaded.bind(this)),500);e&&(e.addEventListener("keyup",t),e.addEventListener("change",t)),"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(e){e.editor.on("change",t),e.editor.on("keyup",t)}))}getContentTinyMCE(){let e=document.querySelector(".wp-editor-area")?document.querySelector(".wp-editor-area").value:"";return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length&&(e=tinyMCE.get("content")?tinyMCE.get("content").getContent():""),e}getUnparsedShortcodes(e){return"object"!=typeof e?(console.error("Failed to get unparsed shortcodes. Expected parameter to be an array, instead received "+typeof e),!1):e.filter((e=>this.isUnparsedShortcode(e)))}isUnparsedShortcode(e){return!this.parsedShortcodes.some((({shortcode:t})=>t===e))}getShortcodes(e){if("string"!=typeof e)return console.error("Failed to get shortcodes. Expected parameter to be a string, instead received"+typeof e),!1;const t=this.matchCapturingShortcodes(e);t.forEach((t=>{e=e.replace(t,"")}));const s=this.matchNonCapturingShortcodes(e);return t.concat(s)}matchCapturingShortcodes(e){const t=(e.match(this.closingTagRegex)||[]).join(" ").match(this.shortcodesRegex)||[];return(0,a.flatten)(t.map((t=>{const s="\\["+t+"[^\\]]*?\\].*?\\[\\/"+t+"\\]";return e.match(new RegExp(s,"g"))||[]})))}matchNonCapturingShortcodes(e){return e.match(this.nonCaptureRegex)||[]}parseShortcodes(e,t){return"function"!=typeof t?(console.error("Failed to parse shortcodes. Expected parameter to be a function, instead received "+typeof t),!1):"object"==typeof e&&e.length>0?void jQuery.post(ajaxurl,{action:"wpseo_filter_shortcodes",_wpnonce:wpseoScriptData.analysis.plugins.shortcodes.wpseo_filter_shortcodes_nonce,data:e},function(e){this.saveParsedShortcodes(e,t)}.bind(this)):t()}saveParsedShortcodes(e,t){const s=JSON.parse(e);this.parsedShortcodes.push(...s),t()}}const be=me,{updateShortcodesForParsing:_e}=d.actions;function Se(e){var t=jQuery(".yst-traffic-light"),s=t.closest(".wpseo-meta-section-link"),i=jQuery("#wpseo-traffic-light-desc"),n=e.className||"na";t.attr("class","yst-traffic-light "+n),s.attr("aria-describedby","wpseo-traffic-light-desc"),i.length>0?i.text(e.screenReaderText):s.closest("li").append("<span id='wpseo-traffic-light-desc' class='screen-reader-text'>"+e.screenReaderText+"</span>")}function ve(e){jQuery("#wp-admin-bar-wpseo-menu .wpseo-score-icon").attr("title",e.screenReaderText).attr("class","wpseo-score-icon "+e.className).find(".wpseo-score-text").text(e.screenReaderText)}function ke(){return(0,a.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}function Ee(){const e=ke();return(0,a.get)(e,"contentLocale","en_US")}function xe(){const e=ke();return!0===(0,a.get)(e,"contentAnalysisActive",!1)}function Re(){const e=ke();return!0===(0,a.get)(e,"keywordAnalysisActive",!1)}function Oe(){const e=ke();return!0===(0,a.get)(e,"inclusiveLanguageAnalysisActive",!1)}const Te=window.yoast.featureFlag;function Pe(){}let Ce=!1;function Ae(e){return e.sort(((e,t)=>e._identifier.localeCompare(t._identifier)))}function Me(e,t,s,i,n){if(!Ce)return;const o=F.Paper.parse(t());e.analyze(o).then((a=>{const{result:{seo:r,readability:c,inclusiveLanguage:l}}=a;if(r){const e=r[""];e.results.forEach((e=>{e.getMarker=()=>()=>s(o,e.marks)})),e.results=Ae(e.results),i.dispatch(d.actions.setSeoResultsForKeyword(o.getKeyword(),e.results)),i.dispatch(d.actions.setOverallSeoScore(e.score,o.getKeyword())),i.dispatch(d.actions.refreshSnippetEditor()),n.saveScores(e.score,o.getKeyword())}c&&(c.results.forEach((e=>{e.getMarker=()=>()=>s(o,e.marks)})),c.results=Ae(c.results),i.dispatch(d.actions.setReadabilityResults(c.results)),i.dispatch(d.actions.setOverallReadabilityScore(c.score)),i.dispatch(d.actions.refreshSnippetEditor()),n.saveContentScore(c.score)),l&&(l.results.forEach((e=>{e.getMarker=()=>()=>s(o,e.marks)})),l.results=Ae(l.results),i.dispatch(d.actions.setInclusiveLanguageResults(l.results)),i.dispatch(d.actions.setOverallInclusiveLanguageScore(l.score)),i.dispatch(d.actions.refreshSnippetEditor()),n.saveInclusiveLanguageScore(l.score)),(0,ge.doAction)("yoast.analysis.refresh",a,{paper:o,worker:e,collectData:t,applyMarks:s,store:i,dataCollector:n})})).catch(Pe)}const De=window.wp.blocks,Ie="yoast-measurement-element";function Fe(e){let t=document.getElementById(Ie);return t||(t=function(){const e=document.createElement("div");return e.id=Ie,e.style.position="absolute",e.style.left="-9999em",e.style.top=0,e.style.height=0,e.style.overflow="hidden",e.style.fontFamily="arial, sans-serif",e.style.fontSize="20px",e.style.fontWeight="400",document.body.appendChild(e),e}()),t.innerText=e,t.offsetWidth}const Ue=e=>(e=e.filter((e=>e.isValid))).map((e=>{const t=(0,De.serialize)([e],{isInnerBlocks:!1});return e.blockLength=t&&t.length,e.innerBlocks&&(e.innerBlocks=Ue(e.innerBlocks)),e}));function Be(e){return(0,a.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,r.__)("Not available","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Not available","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Not available","wordpress-seo")};case"bad":return{className:"bad",screenReaderText:(0,r.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,r.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,r.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,r.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,r.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(F.interpreters.scoreToRating(e))}const Ye=jQuery,Le=function(e){"object"==typeof CKEDITOR&&console.warn("YoastSEO currently doesn't support ckEditor. The content analysis currently only works with the HTML editor or TinyMCE."),this._store=e.store};Le.prototype.getData=function(){const e={title:this.getSnippetTitle(),keyword:Re()?this.getKeyword():"",text:this.getText(),permalink:this.getPermalink(),snippetCite:this.getSnippetCite(),snippetTitle:this.getSnippetTitle(),snippetMeta:this.getSnippetMeta(),name:this.getName(),baseUrl:this.getBaseUrl(),pageTitle:this.getSnippetTitle(),titleWidth:Fe(this.getSnippetTitle())},t=this._store.getState();return{...e,metaTitle:(0,a.get)(t,["analysisData","snippet","title"],this.getSnippetTitle()),url:(0,a.get)(t,["snippetEditor","data","slug"],this.getSlug()),meta:(0,a.get)(t,["analysisData","snippet","description"],this.getSnippetMeta())}},Le.prototype.getKeyword=function(){return document.getElementById("hidden_wpseo_focuskw").value},Le.prototype.getText=function(){return function(e){let t="";var s;return t=!1===$(e)||0==(s=e,null!==document.getElementById(s+"_ifr"))?function(e){return document.getElementById(e)&&document.getElementById(e).value||""}(e):tinyMCE.get(e).getContent(),t}(H)},Le.prototype.getSlug=function(){return document.getElementById("slug").value},Le.prototype.getPermalink=function(){const e=this.getSlug();return this.getBaseUrl()+e+"/"},Le.prototype.getSnippetCite=function(){return this.getSlug()},Le.prototype.getSnippetTitle=function(){return document.getElementById("hidden_wpseo_title").value},Le.prototype.getSnippetMeta=function(){const e=document.getElementById("hidden_wpseo_desc");return e?e.value:""},Le.prototype.getName=function(){return document.getElementById("name").value},Le.prototype.getBaseUrl=function(){return wpseoScriptData.metabox.base_url},Le.prototype.setDataFromSnippet=function(e,t){switch(t){case"snippet_meta":document.getElementById("hidden_wpseo_desc").value=e;break;case"snippet_cite":document.getElementById("slug").value=e;break;case"snippet_title":document.getElementById("hidden_wpseo_title").value=e}},Le.prototype.saveSnippetData=function(e){this.setDataFromSnippet(e.title,"snippet_title"),this.setDataFromSnippet(e.urlPath,"snippet_cite"),this.setDataFromSnippet(e.metaDesc,"snippet_meta")},Le.prototype.bindElementEvents=function(e){this.inputElementEventBinder(e)},Le.prototype.inputElementEventBinder=function(e){const t=["name",H,"slug","wpseo_focuskw"];for(let s=0;s<t.length;s++)null!==document.getElementById(t[s])&&document.getElementById(t[s]).addEventListener("input",e);!function(e,t){G(t,["input","change","cut","paste"],e),G(t,["hide"],J);const s=["show"];(new V).isPageBuilderActive()||s.push("init"),G(t,s,X),G("content",["focus"],(function(e){const t=e.target;(function(e){return-1!==e.getContent({format:"raw"}).indexOf("<"+B)})(t)&&(function(e){j(e)(null,[])}(t),YoastSEO.app.disableMarkers()),(0,a.isUndefined)(W)||W.dispatch(d.actions.setMarkerPauseStatus(!0))})),G("content",["blur"],(function(){(0,a.isUndefined)(W)||W.dispatch(d.actions.setMarkerPauseStatus(!1))}))}(e,H)},Le.prototype.saveScores=function(e){const t=Be(e);document.getElementById("hidden_wpseo_linkdex").value=e,jQuery(window).trigger("YoastSEO:numericScore",e),Se(t),ve(t)},Le.prototype.saveContentScore=function(e){const t=Be(e);Re()||(Se(t),ve(t)),Ye("#hidden_wpseo_content_score").val(e)},Le.prototype.saveInclusiveLanguageScore=function(e){const t=Be(e);Re()||xe()||(Se(t),ve(t)),Ye("#hidden_wpseo_inclusive_language_score").val(e)};const je=Le;class Ke{constructor(){this._callbacks=[],this.register=this.register.bind(this)}register(e){(0,a.isFunction)(e)&&this._callbacks.push(e)}getData(){let e={};return this._callbacks.forEach((t=>{e=(0,a.merge)(e,t())})),e}}window.wp.annotations;const Ne=function(e){return(0,a.uniq)((0,a.flatten)(e.map((e=>{if(!(0,a.isUndefined)(e.getFieldsToMark()))return e.getFieldsToMark()}))))},qe=window.wp.richText,Qe=/(<([a-z]|\/)[^<>]+>)/gi,{htmlEntitiesRegex:Ve}=F.helpers.htmlEntities,We=e=>{let t=0;return(0,a.forEachRight)(e,(e=>{const[s]=e;let i=s.length;/^<\/?br/.test(s)&&(i-=1),t+=i})),t},ze="<yoastmark class='yoast-text-mark'>",He="</yoastmark>",$e='<yoastmark class="yoast-text-mark">';function Ge(e,t,s,i,n){const o=i.clientId,r=(0,qe.create)({html:e,multilineTag:s.multilineTag,multilineWrapperTag:s.multilineWrapperTag}).text;return(0,a.flatMap)(n,(s=>{let n;return n=s.hasBlockPosition&&s.hasBlockPosition()?function(e,t,s,i,n){if(t===e.getBlockClientId()){let t=e.getBlockPositionStart(),o=e.getBlockPositionEnd();if(e.isMarkForFirstBlockSection()){const e=((e,t,s)=>{const i="yoast/faq-block"===s?'<strong class="schema-faq-question">':'<strong class="schema-how-to-step-name">';return{blockStartOffset:e-=i.length,blockEndOffset:t-=i.length}})(t,o,s);t=e.blockStartOffset,o=e.blockEndOffset}if(i.slice(t,o)===n.slice(t,o))return[{startOffset:t,endOffset:o}];const r=((e,t,s)=>{const i=s.slice(0,e),n=s.slice(0,t),o=((e,t,s,i)=>{const n=[...e.matchAll(Qe)];s-=We(n);const o=[...t.matchAll(Qe)];return{blockStartOffset:s,blockEndOffset:i-=We(o)}})(i,n,e,t),r=((e,t,s,i)=>{let n=[...e.matchAll(Ve)];return(0,a.forEachRight)(n,(e=>{const[,t]=e;s-=t.length})),n=[...t.matchAll(Ve)],(0,a.forEachRight)(n,(e=>{const[,t]=e;i-=t.length})),{blockStartOffset:s,blockEndOffset:i}})(i,n,e=o.blockStartOffset,t=o.blockEndOffset);return{blockStartOffset:e=r.blockStartOffset,blockEndOffset:t=r.blockEndOffset}})(t,o,i);return[{startOffset:r.blockStartOffset,endOffset:r.blockEndOffset}]}return[]}(s,o,i.name,e,r):function(e,t){const s=t.getOriginal().replace(/(<([^>]+)>)/gi,""),i=t.getMarked().replace(/(<(?!\/?yoastmark)[^>]+>)/gi,""),n=function(e,t,s=!0){const i=[];if(0===e.length)return i;let n,o=0;for(s||(t=t.toLowerCase(),e=e.toLowerCase());(n=e.indexOf(t,o))>-1;)i.push(n),o=n+t.length;return i}(e,s);if(0===n.length)return[];const o=function(e){let t=e.indexOf(ze);const s=t>=0;s||(t=e.indexOf($e));let i=null;const n=[];for(;t>=0;){if(i=(e=s?e.replace(ze,""):e.replace($e,"")).indexOf(He),i<t)return[];e=e.replace(He,""),n.push({startOffset:t,endOffset:i}),t=s?e.indexOf(ze):e.indexOf($e),i=null}return n}(i),a=[];return o.forEach((e=>{n.forEach((i=>{const n=i+e.startOffset;let o=i+e.endOffset;0===e.startOffset&&e.endOffset===t.getOriginal().length&&(o=i+s.length),a.push({startOffset:n,endOffset:o})}))})),a}(r,s),n?n.map((e=>({...e,block:o,richTextIdentifier:t}))):[]}))}const Je=e=>e[0].toUpperCase()+e.slice(1),Xe=(e,t,s,i,n)=>(e=e.map((e=>{const o=`${e.id}-${n[0]}`,a=`${e.id}-${n[1]}`,r=Je(n[0]),c=Je(n[1]),d=e[`json${r}`],l=e[`json${c}`],{marksForFirstSection:p,marksForSecondSection:u}=((e,t)=>({marksForFirstSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&e.isMarkForFirstBlockSection():e)),marksForSecondSection:e.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?e.getBlockAttributeId()===t.id&&!e.isMarkForFirstBlockSection():e))}))(t,e),h=Ge(d,o,s,i,p),g=Ge(l,a,s,i,u);return h.concat(g)})),(0,a.flattenDeep)(e)),Ze="yoast";let et=[];const tt={"core/paragraph":[{key:"content"}],"core/list":[{key:"values",multilineTag:"li",multilineWrapperTag:["ul","ol"]}],"core/list-item":[{key:"content"}],"core/heading":[{key:"content"}],"core/audio":[{key:"caption"}],"core/embed":[{key:"caption"}],"core/gallery":[{key:"caption"}],"core/image":[{key:"caption"}],"core/table":[{key:"caption"}],"core/video":[{key:"caption"}],"yoast/faq-block":[{key:"questions"}],"yoast/how-to-block":[{key:"steps"},{key:"jsonDescription"}]};function st(){const e=et.shift();e&&((0,c.dispatch)("core/annotations").__experimentalAddAnnotation(e),it())}function it(){(0,a.isFunction)(window.requestIdleCallback)?window.requestIdleCallback(st,{timeout:1e3}):setTimeout(st,150)}const nt=(e,t)=>{return(0,a.flatMap)((s=e.name,tt.hasOwnProperty(s)?tt[s]:[]),(s=>"yoast/faq-block"===e.name?((e,t,s)=>{const i=t.attributes[e.key];return 0===i.length?[]:Xe(i,s,e,t,["question","answer"])})(s,e,t):"yoast/how-to-block"===e.name?((e,t,s)=>{const i=t.attributes[e.key];if(i&&0===i.length)return[];const n=[];return"steps"===e.key&&n.push(Xe(i,s,e,t,["name","text"])),"jsonDescription"===e.key&&(s=s.filter((e=>e.hasBlockPosition&&e.hasBlockPosition()?!e.getBlockAttributeId():e)),n.push(Ge(i,"description",e,t,s))),(0,a.flattenDeep)(n)})(s,e,t):function(e,t,s){const i=e.key,n=((e,t)=>{const s=e.attributes[t];return"string"==typeof s?s:(s||"").toString()})(t,i);return Ge(n,i,e,t,s)}(s,e,t)));var s};function ot(e,t){return(0,a.flatMap)(e,(e=>{const s=function(e){return e.innerBlocks.length>0}(e)?ot(e.innerBlocks,t):[];return nt(e,t).concat(s)}))}function at(e){et=[],(0,c.dispatch)("core/annotations").__experimentalRemoveAnnotationsBySource(Ze);const t=Ne(e);if(0===e.length)return;let s=(0,c.select)("core/block-editor").getBlocks();var i;t.length>0&&(s=s.filter((e=>t.some((t=>"core/"+t===e.name))))),i=ot(s,e),et=i.map((e=>({blockClientId:e.block,source:Ze,richTextIdentifier:e.richTextIdentifier,range:{start:e.startOffset,end:e.endOffset}}))),it()}function rt(e,t){let s;$(z)&&((0,a.isUndefined)(s)&&(s=j(tinyMCE.get(z))),s(e,t)),(0,c.select)("core/block-editor")&&(0,a.isFunction)((0,c.select)("core/block-editor").getBlocks)&&(0,c.select)("core/annotations")&&(0,a.isFunction)((0,c.dispatch)("core/annotations").__experimentalAddAnnotation)&&(function(e,t){tinyMCE.editors.map((e=>j(e))).forEach((s=>s(e,t)))}(e,t),at(t)),(0,ge.doAction)("yoast.analysis.applyMarks",t)}var ct=jQuery;function dt(e,t,s,i,n){this._scriptUrl=i,this._options={usedKeywords:t.keyword_usage,usedKeywordsPostTypes:t.keyword_usage_post_types,searchUrl:t.search_url,postUrl:t.post_edit_url},this._keywordUsage=t.keyword_usage,this._usedKeywordsPostTypes=t.keyword_usage_post_types,this._postID=ct("#post_ID, [name=tag_ID]").val(),this._taxonomy=ct("[name=taxonomy]").val()||"",this._nonce=n,this._ajaxAction=e,this._refreshAnalysis=s,this._initialized=!1}dt.prototype.init=function(){const{worker:e}=window.YoastSEO.analysis;this.requestKeywordUsage=(0,a.debounce)(this.requestKeywordUsage.bind(this),500),e.loadScript(this._scriptUrl).then((()=>{e.sendMessage("initialize",this._options,"used-keywords-assessment")})).then((()=>{this._initialized=!0,(0,a.isEqual)(this._options.usedKeywords,this._keywordUsage)?this._refreshAnalysis():e.sendMessage("updateKeywordUsage",this._keywordUsage,"used-keywords-assessment").then((()=>this._refreshAnalysis()))})).catch((e=>console.error(e)))},dt.prototype.setKeyword=function(e){(0,a.has)(this._keywordUsage,e)||this.requestKeywordUsage(e)},dt.prototype.requestKeywordUsage=function(e){ct.post(ajaxurl,{action:this._ajaxAction,post_id:this._postID,keyword:e,taxonomy:this._taxonomy,nonce:this._nonce},this.updateKeywordUsage.bind(this,e),"json")},dt.prototype.updateKeywordUsage=function(e,t){const{worker:s}=window.YoastSEO.analysis,i=t.keyword_usage,n=t.post_types;i&&(0,a.isArray)(i)&&(this._keywordUsage[e]=i,this._usedKeywordsPostTypes[e]=n,this._initialized&&s.sendMessage("updateKeywordUsage",{usedKeywords:this._keywordUsage,usedKeywordsPostTypes:this._usedKeywordsPostTypes},"used-keywords-assessment").then((()=>this._refreshAnalysis())))};const{refreshSnippetEditor:lt,updateData:pt,setFocusKeyword:ut,setCornerstoneContent:ht,setMarkerStatus:gt,setReadabilityResults:wt,setSeoResultsForKeyword:ft}=d.actions;function yt(e,t,s){var i,n;const o=new Ke;function r(){const e={slug:n.val()};window.YoastSEO.store.dispatch(pt(e))}function d(e){(0,a.isUndefined)(e.seoAssessorPresenter)||(e.seoAssessorPresenter.render=function(){}),(0,a.isUndefined)(e.contentAssessorPresenter)||(e.contentAssessorPresenter.render=function(){},e.contentAssessorPresenter.renderIndividualRatings=function(){})}let l;function p(e,t){const s=l||"";l=e.getState().analysisData.snippet,!(0,U.isShallowEqualObjects)(s,l)&&t()}!function(){var l,u,h,g,w,f,y,m,b;h=jQuery(".term-description-wrap").find("td"),g=jQuery(".term-description-wrap").find("label"),w=h.find("textarea").val(),f=document.getElementById("wp-description-wrap"),y=h.find("p"),h.html(""),h.append(f).append(y),document.getElementById("description").value=w,g.replaceWith(g.html()),u=new je({store:t}),l={elementTarget:[H,"yoast_wpseo_focuskw","yoast_wpseo_metadesc","excerpt","editable-post-name","editable-post-name-full"],targets:(m={},Re()&&(m.output="does-not-really-exist-but-it-needs-something"),xe()&&(m.contentOutput="also-does-not-really-exist-but-it-needs-something"),m),callbacks:{getData:u.getData.bind(u)},locale:wpseoScriptData.metabox.contentLocale,contentAnalysisActive:xe(),keywordAnalysisActive:Re(),debouncedRefresh:!1,researcher:new window.yoast.Researcher.default},Re()&&(t.dispatch(ut(u.getKeyword())),l.callbacks.saveScores=u.saveScores.bind(u),l.callbacks.updatedKeywordsResults=function(e){const s=t.getState().focusKeyword;t.dispatch(ft(s,e)),t.dispatch(lt())}),xe()&&(t.dispatch(gt("hidden")),l.callbacks.saveContentScore=u.saveContentScore.bind(u),l.callbacks.updatedContentResults=function(e){t.dispatch(wt(e)),t.dispatch(lt())}),i=new F.App(l),window.YoastSEO=window.YoastSEO||{},window.YoastSEO.app=i,window.YoastSEO.store=t,window.YoastSEO.analysis={},window.YoastSEO.analysis.worker=function(){const e=(0,a.get)(window,["wpseoScriptData","analysis","worker","url"],"analysis-worker.js"),t=(0,F.createWorker)(e),s=(0,a.get)(window,["wpseoScriptData","analysis","worker","dependencies"],[]),i=[];for(const e in s){if(!Object.prototype.hasOwnProperty.call(s,e))continue;const t=window.document.getElementById(`${e}-js-translations`);if(!t)continue;const n=t.innerHTML.slice(214),o=n.indexOf(","),a=n.slice(0,o-1);try{const e=/}}\s*\);/.exec(n).index+2,t=JSON.parse(n.slice(o+1,e));i.push([a,t])}catch(t){console.warn(`Failed to parse translation data for ${e} to send to the Yoast SEO worker`);continue}}return t.postMessage({dependencies:s,translations:i}),new F.AnalysisWorkerWrapper(t)}(),window.YoastSEO.analysis.collectData=()=>function(e,t,s,i,n){const o=(0,a.cloneDeep)(t.getState());(0,a.merge)(o,s.getData());const r=e.getData();let c=null;n&&(c=n.getBlocks()||[],c=JSON.parse(JSON.stringify(c)),c=Ue(c));const d={text:r.content,textTitle:r.title,keyword:o.focusKeyword,synonyms:o.synonyms,description:o.analysisData.snippet.description||o.snippetEditor.data.description,title:o.analysisData.snippet.title||o.snippetEditor.data.title,slug:o.snippetEditor.data.slug,permalink:o.settings.snippetEditor.baseUrl+o.snippetEditor.data.slug,wpBlocks:c,date:o.settings.snippetEditor.date};i.loaded&&(d.title=i._applyModifications("data_page_title",d.title),d.title=i._applyModifications("title",d.title),d.description=i._applyModifications("data_meta_desc",d.description),d.text=i._applyModifications("content",d.text),d.wpBlocks=i._applyModifications("wpBlocks",d.wpBlocks));const l=o.analysisData.snippet.filteredSEOTitle;return d.titleWidth=Fe(l||o.snippetEditor.data.title),d.locale=Ee(),d.writingDirection=function(){let e="LTR";return ke().isRtl&&(e="RTL"),e}(),d.shortcodes=window.wpseoScriptData.analysis.plugins.shortcodes?window.wpseoScriptData.analysis.plugins.shortcodes.wpseo_shortcode_tags:[],d.isFrontPage="1"===(0,a.get)(window,"wpseoScriptData.isFrontPage","0"),F.Paper.parse((0,ge.applyFilters)("yoast.analysis.data",d))}(s,window.YoastSEO.store,o,window.YoastSEO.app.pluggable),window.YoastSEO.analysis.applyMarks=(e,t)=>function(){const e=(0,c.select)("yoast-seo/editor").isMarkingAvailable(),t=(0,c.select)("yoast-seo/editor").getMarkerPauseStatus();return!e||t?a.noop:rt}()(e,t),window.YoastSEO.app.refresh=(0,a.debounce)((()=>Me(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,window.YoastSEO.store,u)),500),window.YoastSEO.app.registerCustomDataCallback=o.register,window.YoastSEO.app.pluggable=new Z(window.YoastSEO.app.refresh),window.YoastSEO.app.registerPlugin=window.YoastSEO.app.pluggable._registerPlugin,window.YoastSEO.app.pluginReady=window.YoastSEO.app.pluggable._ready,window.YoastSEO.app.pluginReloaded=window.YoastSEO.app.pluggable._reloaded,window.YoastSEO.app.registerModification=window.YoastSEO.app.pluggable._registerModification,window.YoastSEO.app.registerAssessment=(e,t,s)=>{if(!(0,a.isUndefined)(i.seoAssessor))return window.YoastSEO.app.pluggable._registerAssessment(i.defaultSeoAssessor,e,t,s)&&window.YoastSEO.app.pluggable._registerAssessment(i.cornerStoneSeoAssessor,e,t,s)},window.YoastSEO.app.changeAssessorOptions=function(e){window.YoastSEO.analysis.worker.initialize(e).catch(Pe),window.YoastSEO.app.refresh()},function(e,t,s){const i=ke();if(!i.previouslyUsedKeywordActive)return;const n=new dt("get_term_keyword_usage",i,e,(0,a.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),(0,a.get)(window,["wpseoScriptData","usedKeywordsNonce"],""));n.init();let o={};s.subscribe((()=>{const e=s.getState()||{};e.focusKeyword!==o.focusKeyword&&(o=e,n.setKeyword(e.focusKeyword))}))}(i.refresh,0,t),t.subscribe(p.bind(null,t,i.refresh)),Re()&&(i.seoAssessor=new F.TaxonomyAssessor(i.config.researcher),i.seoAssessorPresenter.assessor=i.seoAssessor),window.YoastSEO.wp={},window.YoastSEO.wp.replaceVarsPlugin=new he(i,t),function(e,t){let s=[];s=(0,ge.applyFilters)("yoast.analysis.shortcodes",s);const i=wpseoScriptData.analysis.plugins.shortcodes.wpseo_shortcode_tags;s=s.filter((e=>i.includes(e))),s.length>0&&(t.dispatch(_e(s)),window.YoastSEO.wp.shortcodePlugin=new me({registerPlugin:e.registerPlugin,registerModification:e.registerModification,pluginReady:e.pluginReady,pluginReloaded:e.pluginReloaded},s))}(i,t),window.YoastSEO.analyzerArgs=l,(n=e("#slug")).on("change",r),u.bindElementEvents((0,a.debounce)((()=>Me(window.YoastSEO.analysis.worker,window.YoastSEO.analysis.collectData,window.YoastSEO.analysis.applyMarks,window.YoastSEO.store,u)),500)),Re()&&(Se(b=Be(e("#hidden_wpseo_linkdex").val())),ve(b)),xe()&&function(){var t=Be(e("#hidden_wpseo_content_score").val());Se(t),ve(t)}(),Oe()&&function(){const t=Be(e("#hidden_wpseo_inclusive_language_score").val());Se(t),ve(t)}(),window.YoastSEO.analysis.worker.initialize(function(e={}){const t={locale:Ee(),contentAnalysisActive:xe(),keywordAnalysisActive:Re(),inclusiveLanguageAnalysisActive:Oe(),defaultQueryParams:(0,a.get)(window,["wpseoAdminL10n","default_query_params"],{}),logLevel:(0,a.get)(window,["wpseoScriptData","analysis","worker","log_level"],"ERROR"),enabledFeatures:(0,Te.enabledFeatures)()};return(0,a.merge)(t,e)}({useTaxonomy:!0})).then((()=>{jQuery(window).trigger("YoastSEO:ready")})).catch(Pe),d(i);const _=i.initAssessorPresenters.bind(i);i.initAssessorPresenters=function(){_(),d(i)};let S={title:(v=u).getSnippetTitle(),slug:v.getSnippetCite(),description:v.getSnippetMeta()};var v;!function(e){const s=document.getElementById("hidden_wpseo_is_cornerstone");let i="1"===s.value;t.dispatch(ht(i)),e.changeAssessorOptions({useCornerstone:i}),t.subscribe((()=>{const n=t.getState();n.isCornerstone!==i&&(i=n.isCornerstone,s.value=i?"1":"0",e.changeAssessorOptions({useCornerstone:i}))}))}(i);const k=function(e){const t={};if((0,a.isUndefined)(e))return t;t.title=e.title_template;const s=e.metadesc_template;return(0,a.isEmpty)(s)||(t.description=s),t}(wpseoScriptData.metabox);S=function(e,t){const s={...e};return(0,a.forEach)(t,((t,i)=>{(0,a.has)(e,i)&&""===e[i]&&(s[i]=t)})),s}(S,k),t.dispatch(pt(S));let E=t.getState().focusKeyword;ee(window.YoastSEO.analysis.worker.runResearch,window.YoastSEO.store,E);const x=(0,a.debounce)((()=>{i.refresh()}),50);t.subscribe((()=>{const e=t.getState().focusKeyword;E!==e&&(E=e,ee(window.YoastSEO.analysis.worker.runResearch,window.YoastSEO.store,E),document.getElementById("hidden_wpseo_focuskw").value=E,x());const s=function(e){const t=e.getState().snippetEditor.data;return{title:t.title,slug:t.slug,description:t.description}}(t),i=function(e,t){const s={...e};return(0,a.forEach)(t,((t,i)=>{(0,a.has)(e,i)&&e[i].trim()===t&&(s[i]="")})),s}(s,k);S.title!==s.title&&u.setDataFromSnippet(i.title,"snippet_title"),S.slug!==s.slug&&u.setDataFromSnippet(i.slug,"snippet_cite"),S.description!==s.description&&u.setDataFromSnippet(i.description,"snippet_meta"),S.title=s.title,S.slug=s.slug,S.description=s.description})),Ce=!0,window.YoastSEO.app.refresh()}()}window.yoastHideMarkers=!0,window.YoastReplaceVarPlugin=he,window.YoastShortcodePlugin=be;let mt=null;const bt=()=>{if(null===mt){const e=(0,c.dispatch)("yoast-seo/editor").runAnalysis;mt=window.YoastSEO.app&&window.YoastSEO.app.pluggable?window.YoastSEO.app.pluggable:new Z(e)}return mt},_t=(e,t,s)=>bt().loaded?bt()._applyModifications(e,t,s):t;function St(){const{getAnalysisData:e,getEditorDataTitle:t,getIsFrontPage:s}=(0,c.select)("yoast-seo/editor");let i=e();i={...i,textTitle:t(),isFrontPage:s()};const n=function(e){return e.title=_t("data_page_title",e.title),e.title=_t("title",e.title),e.description=_t("data_meta_desc",e.description),e.text=_t("content",e.text),e}(i);return(0,ge.applyFilters)("yoast.analysis.data",n)}(0,a.debounce)((async function(e,t){const{text:s,...i}=t,n=new F.Paper(s,i);try{const t=await e.analyze(n),{seo:s,readability:i,inclusiveLanguage:o}=t.result;if(s){const e=s[""];e.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(n,e.marks)})),e.results=Ae(e.results),(0,c.dispatch)("yoast-seo/editor").setSeoResultsForKeyword(n.getKeyword(),e.results),(0,c.dispatch)("yoast-seo/editor").setOverallSeoScore(e.score,n.getKeyword())}i&&(i.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(n,e.marks)})),i.results=Ae(i.results),(0,c.dispatch)("yoast-seo/editor").setReadabilityResults(i.results),(0,c.dispatch)("yoast-seo/editor").setOverallReadabilityScore(i.score)),o&&(o.results.forEach((e=>{e.getMarker=()=>()=>window.YoastSEO.analysis.applyMarks(n,e.marks)})),o.results=Ae(o.results),(0,c.dispatch)("yoast-seo/editor").setInclusiveLanguageResults(o.results),(0,c.dispatch)("yoast-seo/editor").setOverallInclusiveLanguageScore(o.score)),(0,ge.doAction)("yoast.analysis.run",t,{paper:n})}catch(e){}}),500);const vt=()=>{const{getContentLocale:e}=(0,c.select)("yoast-seo/editor"),t=((...e)=>()=>e.map((e=>e())))(e,St),s=(()=>{const{setEstimatedReadingTime:e,setFleschReadingEase:t,setTextLength:s}=(0,c.dispatch)("yoast-seo/editor"),i=(0,a.get)(window,"YoastSEO.analysis.worker.runResearch",a.noop);return()=>{const n=F.Paper.parse(St());i("readingTime",n).then((t=>e(t.result))),i("getFleschReadingScore",n).then((e=>{e.result&&t(e.result)})),i("wordCountInText",n).then((e=>s(e.result)))}})();return setTimeout(s,1500),((e,t)=>{let s=e();return()=>{const i=e();(0,a.isEqual)(i,s)||(s=i,t((0,a.clone)(i)))}})(t,s)};i()((()=>{window.wpseoTermScraperL10n=window.wpseoScriptData.metabox,function(e){function t(){e("#copy-home-meta-description").on("click",(function(){e("#open_graph_frontpage_desc").val(e("#meta_description").val())}))}function s(){var t=e("#wpseo-conf");if(t.length){var s=t.attr("action").split("#")[0];t.attr("action",s+window.location.hash)}}function i(){var t=window.location.hash.replace("#top#","");-1!==t.search("#top")&&(t=window.location.hash.replace("#top%23","")),""!==t&&"#"!==t.charAt(0)||(t=e(".wpseotab").attr("id")),e("#"+t).addClass("active"),e("#"+t+"-tab").addClass("nav-tab-active").trigger("click")}function n(t){const s=e("#noindex-author-noposts-wpseo-container");t?s.show():s.hide()}e.fn._wpseoIsInViewport=function(){const t=e(this).offset().top,s=t+e(this).outerHeight(),i=e(window).scrollTop(),n=i+e(window).height();return t>i&&s<n},e(window).on("hashchange",(function(){i(),s()})),window.setWPOption=function(t,s,i,n){e.post(ajaxurl,{action:"wpseo_set_option",option:t,newval:s,_wpnonce:n},(function(t){t&&e("#"+i).hide()}))},window.wpseoCopyHomeMeta=t,window.wpseoSetTabHash=s,e(document).ready((function(){s(),"function"==typeof window.wpseoRedirectOldFeaturesTabToNewSettings&&window.wpseoRedirectOldFeaturesTabToNewSettings(),e("#disable-author input[type='radio']").on("change",(function(){e(this).is(":checked")&&e("#author-archives-titles-metas-content").toggle("off"===e(this).val())})).trigger("change");const o=e("#noindex-author-wpseo-off"),c=e("#noindex-author-wpseo-on");o.is(":checked")||n(!1),c.on("change",(()=>{e(this).is(":checked")||n(!1)})),o.on("change",(()=>{e(this).is(":checked")||n(!0)})),e("#disable-date input[type='radio']").on("change",(function(){e(this).is(":checked")&&e("#date-archives-titles-metas-content").toggle("off"===e(this).val())})).trigger("change"),e("#disable-attachment input[type='radio']").on("change",(function(){e(this).is(":checked")&&e("#media_settings").toggle("off"===e(this).val())})).trigger("change"),e("#disable-post_format").on("change",(function(){e("#post_format-titles-metas").toggle(e(this).is(":not(:checked)"))})).trigger("change"),e("#wpseo-tabs").find("a").on("click",(function(t){var s,i,n,o=!0;if(s=e(this),i=!!e("#first-time-configuration-tab").filter(".nav-tab-active").length,n=!!s.filter("#first-time-configuration-tab").length,i&&!n&&window.isStepBeingEdited&&(o=confirm((0,r.__)("There are unsaved changes in one or more steps. Leaving means that those changes may not be saved. Are you sure you want to leave?","wordpress-seo"))),o){window.isStepBeingEdited=!1,e("#wpseo-tabs").find("a").removeClass("nav-tab-active"),e(".wpseotab").removeClass("active");var a=e(this).attr("id").replace("-tab",""),c=e("#"+a);c.addClass("active"),e(this).addClass("nav-tab-active"),c.hasClass("nosave")?e("#wpseo-submit-container").hide():e("#wpseo-submit-container").show(),e(window).trigger("yoast-seo-tab-change"),"first-time-configuration"===a?(e(".notice-yoast").slideUp(),e(".yoast_premium_upsell").slideUp(),e("#sidebar-container").hide()):(e(".notice-yoast").slideDown(),e(".yoast_premium_upsell").slideDown(),e("#sidebar-container").show())}else t.preventDefault(),e("#first-time-configuration-tab").trigger("focus")})),e("#yoast-first-time-configuration-notice a").on("click",(function(){e("#first-time-configuration-tab").click()})),e("#company_or_person").on("change",(function(){var t=e(this).val();"company"===t?(e("#knowledge-graph-company").show(),e("#knowledge-graph-person").hide()):"person"===t?(e("#knowledge-graph-company").hide(),e("#knowledge-graph-person").show()):(e("#knowledge-graph-company").hide(),e("#knowledge-graph-person").hide())})).trigger("change"),e(".switch-yoast-seo input").on("keydown",(function(e){"keydown"===e.type&&13===e.which&&e.preventDefault()})),e("body").on("click","button.toggleable-container-trigger",(t=>{const s=e(t.currentTarget),i=s.parent().siblings(".toggleable-container");i.toggleClass("toggleable-container-hidden"),s.attr("aria-expanded",!i.hasClass("toggleable-container-hidden")).find("span").toggleClass("dashicons-arrow-up-alt2 dashicons-arrow-down-alt2")}));const d=e("#opengraph"),l=e("#wpseo-opengraph-settings");d.length&&l.length&&(l.toggle(d[0].checked),d.on("change",(e=>{l.toggle(e.target.checked)}))),t(),i(),function(){if(!e("#enable_xml_sitemap input[type=radio]").length)return;const t=e("#yoast-seo-sitemaps-disabled-warning");e("#enable_xml_sitemap input[type=radio]").on("change",(function(){"off"===this.value?t.show():t.hide()}))}(),function(){const t=e("#wpseo-submit-container-float"),s=e("#wpseo-submit-container-fixed");if(!t.length||!s.length)return;function i(){t._wpseoIsInViewport()?s.hide():s.show()}e(window).on("resize scroll",(0,a.debounce)(i,100)),e(window).on("yoast-seo-tab-change",i);const n=e(".wpseo-message");n.length&&window.setTimeout((()=>{n.fadeOut()}),5e3),i()}()}))}(o()),function(e){function t(e){e&&(e.focus(),e.click())}function s(){if(e(".wpseo-meta-section").length>0){const t=e(".wpseo-meta-section-link");e(".wpseo-metabox-menu li").filter((function(){return"#wpseo-meta-section-content"===e(this).find(".wpseo-meta-section-link").attr("href")})).addClass("active").find("[role='tab']").addClass("yoast-active-tab"),e("#wpseo-meta-section-content, .wpseo-meta-section-react").addClass("active"),t.on("click",(function(s){var i=e(this).attr("id"),n=e(this).attr("href"),o=e(n);s.preventDefault(),e(".wpseo-metabox-menu li").removeClass("active").find("[role='tab']").removeClass("yoast-active-tab"),e(".wpseo-meta-section").removeClass("active"),e(".wpseo-meta-section-react.active").removeClass("active"),"#wpseo-meta-section-content"===n&&e(".wpseo-meta-section-react").addClass("active"),o.addClass("active"),e(this).parent("li").addClass("active").find("[role='tab']").addClass("yoast-active-tab");const a=function(e,t={}){return new CustomEvent("YoastSEO:metaTabChange",{detail:t})}(0,{metaTabId:i});window.dispatchEvent(a),this&&(t.attr({"aria-selected":"false",tabIndex:"-1"}),this.removeAttribute("tabindex"),this.setAttribute("aria-selected","true"))}))}}window.wpseoInitTabs=s,window.wpseo_init_tabs=s,e(".wpseo-meta-section").each((function(t,s){e(s).find(".wpseotab:first").addClass("active")})),window.wpseo_init_tabs(),function(){const s=e(".yoast-aria-tabs"),i=s.find("[role='tab']"),n=s.attr("aria-orientation")||"horizontal";i.attr({"aria-selected":!1,tabIndex:"-1"}),i.filter(".yoast-active-tab").removeAttr("tabindex").attr("aria-selected","true"),i.on("keydown",(function(s){-1!==[32,35,36,37,38,39,40].indexOf(s.which)&&("horizontal"===n&&-1!==[38,40].indexOf(s.which)||"vertical"===n&&-1!==[37,39].indexOf(s.which)||function(s,i){const n=s.which,o=i.index(e(s.target));switch(n){case 32:s.preventDefault(),t(i[o]);break;case 35:s.preventDefault(),t(i[i.length-1]);break;case 36:s.preventDefault(),t(i[0]);break;case 37:case 38:s.preventDefault(),t(i[o-1<0?i.length-1:o-1]);break;case 39:case 40:s.preventDefault(),t(i[o+1===i.length?0:o+1])}}(s,i))}))}()}(o());const e=function(){const e=(0,c.registerStore)("yoast-seo/editor",{reducer:(0,c.combineReducers)(d.reducers),selectors:d.selectors,actions:(0,a.pickBy)(d.actions,(e=>"function"==typeof e)),controls:t});return(e=>{e.dispatch(d.actions.setSettings({socialPreviews:{sitewideImage:window.wpseoScriptData.sitewideSocialImage,siteName:window.wpseoScriptData.metabox.site_name,contentImage:window.wpseoScriptData.metabox.first_content_image,twitterCardType:window.wpseoScriptData.metabox.twitterCardType},snippetEditor:{baseUrl:window.wpseoScriptData.metabox.base_url,date:window.wpseoScriptData.metabox.metaDescriptionDate,recommendedReplacementVariables:window.wpseoScriptData.analysis.plugins.replaceVars.recommended_replace_vars,siteIconUrl:window.wpseoScriptData.metabox.siteIconUrl}})),e.dispatch(d.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(d.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(d.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(d.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(d.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases)),e.dispatch(d.actions.setDismissedAlerts((0,a.get)(window,"wpseoScriptData.dismissedAlerts",{}))),e.dispatch(d.actions.setCurrentPromotions((0,a.get)(window,"wpseoScriptData.currentPromotions",[]))),e.dispatch(d.actions.setIsPremium(Boolean((0,a.get)(window,"wpseoScriptData.metabox.isPremium",!1)))),e.dispatch(d.actions.setPostId(Number((0,a.get)(window,"wpseoScriptData.postId",null)))),e.dispatch(d.actions.setAdminUrl((0,a.get)(window,"wpseoScriptData.adminUrl",""))),e.dispatch(d.actions.setLinkParams((0,a.get)(window,"wpseoScriptData.linkParams",{}))),e.dispatch(d.actions.setPluginUrl((0,a.get)(window,"wpseoScriptData.pluginUrl",""))),e.dispatch(d.actions.setWistiaEmbedPermissionValue("1"===(0,a.get)(window,"wpseoScriptData.wistiaEmbedPermission",!1)))})(e),e}();window.yoast.initEditorIntegration(e);const s=new window.yoast.EditorData(a.noop,e,H);s.initialize(window.wpseoScriptData.analysis.plugins.replaceVars.replace_vars),yt(o(),e,s),(()=>{if((0,c.select)("yoast-seo/editor").getPreference("isInsightsEnabled",!1))(0,c.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),(0,c.subscribe)((0,a.debounce)(vt(),1500,{maxWait:3e3}))})()}))})(); \ No newline at end of file @@ -5,7 +5,7 @@ License URI: http://www.gnu.org/licenses/gpl.html Tags: SEO, XML sitemap, Content analysis, Readability, Schema Tested up to: 6.9 -Stable tag: 26.5 +Stable tag: 26.6 Requires PHP: 7.4 Improve your SEO with real-time feedback, schema, and clear guidance. Upgrade for AI tools, Google Docs integration, and 24/7 support, no hidden fees. @@ -303,40 +303,50 @@ == Changelog == -= 26.5 = += 26.6 = -Release date: 2025-12-02 +Release date: 2025-12-15 -**New:** Yoast SEO includes the necessary updates to support the Site Kit by Google integration for all Premium users, with Yoast SEO (free) support following soon. [Read the full release post here](https://yoa.st/54u). +Yoast SEO 26.6 brings more enhancements and bugfixes. [Find more information about our software releases and updates here](https://yoa.st/releases). #### Enhancements -* Integrates the Yoast SEO tab into the Elementor Editor's Elements panel sidebar to provide enhanced access to SEO settings. -* Makes the _keyphrase density assessment_ and _keyphrase in subheadings assessment_ available when no content has been added. +* Introduces a task list for reminding site admins about relevant SEO tasks. +* Improves the llms.txt structure by moving the sitemap mention into an option section at the end of the llms.txt file. #### Bugfixes -* Fixes a bug where table backgrounds in the RSS settings and Semrush related keyphrases tables would expand beyond the rounded corners in Firefox. +* Fixes a bug where the `Show more` list for categories and content types would collapse when clicking on menu items in the settings sidebar navigation. +* Fixes a bug where translations for the content analysis were not displayed on WordPress 6.9. +* Fixes a security bug that would allow users with limited capabilities to read metadata of posts that they should not have access to. #### Other -* Relocates the introduction notification to point to the Yoast SEO tab within the Elements panel sidebar of the Elementor Editor for better user guidance. -* Sets the _WordPress tested up to_ version to 6.9. +* Highlights the Google Docs & Yoast Duplicate post add-ons on the Plans page. +* Improves the behavior of the upgrade button in the Yoast sidebar and admin menus. +* Improves the focus behavior for some buttons and links in the Yoast SEO admin pages. +* Redesigns the AI Brand Insights button in the Yoast sidebar and admin menus. -= 26.4 = += 26.5 = -Release date: 2025-11-18 +Release date: 2025-12-02 + +**New:** Yoast SEO includes the necessary updates to support the Site Kit by Google integration for all Premium users, with Yoast SEO (free) support following soon. [Read the full release post here](https://yoa.st/54u). + +#### Enhancements + +* Integrates the Yoast SEO tab into the Elementor Editor's Elements panel sidebar to provide enhanced access to SEO settings. +* Makes the _keyphrase density assessment_ and _keyphrase in subheadings assessment_ available when no content has been added. #### Bugfixes -* Fixes a bug for users who have the Site Kit integration enabled, where a fatal error would be thrown for edge cases, like when custom code intervened with the default WP login flow. -* Fixes a bug in the Settings page where the advanced tab would close when selecting one of its options or other options after visiting the advanced tab. +* Fixes a bug where table backgrounds in the RSS settings and Semrush related keyphrases tables would expand beyond the rounded corners in Firefox. #### Other -* Adds a button for using AI to generate custom an SEO title or meta description in the pre-publish sidebar of the block editor, if all recent posts have been using default SEO data. -* Adds the Yoast siblings and subpages premium blocks to the Yoast custom blocks menu tab in pages. -* Improves performance when author archives are disabled and an author is created. Props to [ErikBrendel](https://github.com/ErikBrendel). +* Relocates the introduction notification to point to the Yoast SEO tab within the Elements panel sidebar of the Elementor Editor for better user guidance. +* Sets the _WordPress tested up to_ version to 6.9. = Earlier versions = For the changelog of earlier versions, please refer to [the changelog on yoast.com](https://yoa.st/yoast-seo-changelog). + Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/src/conditionals: task-list-enabled-conditional.php @@ -17,6 +17,7 @@ use Yoast\WP\SEO\Helpers\User_Helper; use Yoast\WP\SEO\Integrations\Integration_Interface; use Yoast\WP\SEO\Promotions\Application\Promotion_Manager; +use Yoast\WP\SEO\Task_List\Application\Configuration\Task_List_Configuration; /** * Class General_Page_Integration. @@ -43,6 +44,13 @@ private $dashboard_configuration; /** + * The task list configuration. + * + * @var Task_List_Configuration + */ + private $task_list_configuration; + + /** * Holds the WPSEO_Admin_Asset_Manager. * * @var WPSEO_Admin_Asset_Manager @@ -127,6 +135,7 @@ * @param Options_Helper $options_helper The options helper. * @param WooCommerce_Conditional $woocommerce_conditional The WooCommerce conditional. * @param WPSEO_Addon_Manager $addon_manager The WPSEO_Addon_Manager. + * @param Task_List_Configuration $task_list_configuration The task list configuration. */ public function __construct( WPSEO_Admin_Asset_Manager $asset_manager, @@ -140,7 +149,8 @@ User_Helper $user_helper, Options_Helper $options_helper, WooCommerce_Conditional $woocommerce_conditional, - WPSEO_Addon_Manager $addon_manager + WPSEO_Addon_Manager $addon_manager, + Task_List_Configuration $task_list_configuration ) { $this->asset_manager = $asset_manager; $this->current_page_helper = $current_page_helper; @@ -154,6 +164,7 @@ $this->options_helper = $options_helper; $this->woocommerce_conditional = $woocommerce_conditional; $this->addon_manager = $addon_manager; + $this->task_list_configuration = $task_list_configuration; } /** @@ -271,6 +282,7 @@ 'optInNotificationSeen' => [ 'wpseo_seen_llm_txt_opt_in_notification' => $this->is_llms_txt_opt_in_notification_seen(), ], + 'taskListConfiguration' => $this->task_list_configuration->get_configuration(), ]; } @@ -1 +1 @@ -<?php return array('reduxJsToolkit.js' => array('dependencies' => array('wp-polyfill', 'yoast-seo-redux-package'), 'version' => '425acbd30b98c737df6e'), 'aiFrontend.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-prop-types-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-search-metadata-previews-package', 'yoast-seo-social-metadata-forms-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => '54e0143a143201deaff6'), 'analysisReport.js' => array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => '34eef771ba6c89d4477c'), 'componentsNew.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => 'f6dde93d372aaa6034b8'), 'dashboardFrontend.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-chart.js-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-ui-library-package'), 'version' => '24e55aa0ffb8b3c42834'), 'featureFlag.js' => array('dependencies' => array('wp-polyfill'), 'version' => '91e54e3dd01f59a724ae'), 'helpers.js' => array('dependencies' => array('lodash', 'react', 'wp-i18n', 'wp-polyfill', 'yoast-seo-prop-types-package', 'yoast-seo-styled-components-package'), 'version' => 'e7a33d29c6f511c40828'), 'relatedKeyphraseSuggestions.js' => array('dependencies' => array('lodash', 'react', 'wp-i18n', 'wp-polyfill', 'yoast-seo-prop-types-package', 'yoast-seo-ui-library-package'), 'version' => 'fdc1373f29a738be47d8'), 'replacementVariableEditor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-components', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-draft-js-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => '5c473301f9d5546a3668'), 'searchMetadataPreviews.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-analysis-package', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => '02e3122514695ec0eb75'), 'socialMetadataForms.js' => array('dependencies' => array('lodash', 'react', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-redux-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => '79bba436875242698c15'), 'styleGuide.js' => array('dependencies' => array('wp-polyfill', 'yoast-seo-helpers-package', 'yoast-seo-styled-components-package'), 'version' => 'a65ddb8de826da5fea4d'), 'uiLibrary.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-polyfill', 'yoast-seo-prop-types-package', 'yoast-seo-redux-js-toolkit-package'), 'version' => 'd2ddbb5010501e6c192c'), 'chart.js.js' => array('dependencies' => array('wp-polyfill'), 'version' => '196fb6740f0ef8ce192a'), 'draftJs.js' => array('dependencies' => array('react', 'react-dom', 'wp-polyfill'), 'version' => '1b760d06a7feabe5d9ae'), 'jed.js' => array('dependencies' => array('wp-polyfill'), 'version' => '28697086e82ae1cd0e88'), 'propTypes.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4c546a0c9e97b70d3fe0'), 'reactHelmet.js' => array('dependencies' => array('react', 'wp-polyfill', 'yoast-seo-prop-types-package'), 'version' => 'b7d9f84f1dc499388f58'), 'redux.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '8ab8b1816693779c7200'), 'styledComponents.js' => array('dependencies' => array('react', 'wp-polyfill'), 'version' => '3c7b466139e7508cd799'), 'analysis.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill', 'yoast-seo-feature-flag-package'), 'version' => '9798415a530413997f38')); +<?php return array('reduxJsToolkit.js' => array('dependencies' => array('wp-polyfill', 'yoast-seo-redux-package'), 'version' => '425acbd30b98c737df6e'), 'aiFrontend.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-prop-types-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-search-metadata-previews-package', 'yoast-seo-social-metadata-forms-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => '54e0143a143201deaff6'), 'analysisReport.js' => array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => '34eef771ba6c89d4477c'), 'componentsNew.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => 'f6dde93d372aaa6034b8'), 'dashboardFrontend.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-chart.js-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-ui-library-package'), 'version' => '642e90a2a0ead5c4d017'), 'featureFlag.js' => array('dependencies' => array('wp-polyfill'), 'version' => '91e54e3dd01f59a724ae'), 'helpers.js' => array('dependencies' => array('lodash', 'react', 'wp-i18n', 'wp-polyfill', 'yoast-seo-prop-types-package', 'yoast-seo-styled-components-package'), 'version' => 'e7a33d29c6f511c40828'), 'relatedKeyphraseSuggestions.js' => array('dependencies' => array('lodash', 'react', 'wp-i18n', 'wp-polyfill', 'yoast-seo-prop-types-package', 'yoast-seo-ui-library-package'), 'version' => 'fdc1373f29a738be47d8'), 'replacementVariableEditor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-components', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-draft-js-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => '5c473301f9d5546a3668'), 'searchMetadataPreviews.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-analysis-package', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => '02e3122514695ec0eb75'), 'socialMetadataForms.js' => array('dependencies' => array('lodash', 'react', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-redux-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => '79bba436875242698c15'), 'styleGuide.js' => array('dependencies' => array('wp-polyfill', 'yoast-seo-helpers-package', 'yoast-seo-styled-components-package'), 'version' => 'a65ddb8de826da5fea4d'), 'uiLibrary.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-polyfill', 'yoast-seo-prop-types-package', 'yoast-seo-redux-js-toolkit-package'), 'version' => 'ec01e62601948c226442'), 'chart.js.js' => array('dependencies' => array('wp-polyfill'), 'version' => '196fb6740f0ef8ce192a'), 'draftJs.js' => array('dependencies' => array('react', 'react-dom', 'wp-polyfill'), 'version' => '1b760d06a7feabe5d9ae'), 'jed.js' => array('dependencies' => array('wp-polyfill'), 'version' => '28697086e82ae1cd0e88'), 'propTypes.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4c546a0c9e97b70d3fe0'), 'reactHelmet.js' => array('dependencies' => array('react', 'wp-polyfill', 'yoast-seo-prop-types-package'), 'version' => 'b7d9f84f1dc499388f58'), 'redux.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '8ab8b1816693779c7200'), 'styledComponents.js' => array('dependencies' => array('react', 'wp-polyfill'), 'version' => '3c7b466139e7508cd799'), 'analysis.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill', 'yoast-seo-feature-flag-package'), 'version' => '9798415a530413997f38')); @@ -1 +1 @@ -<?php return array('addon-installation.js' => array('dependencies' => array('react', 'react-jsx-runtime', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-prop-types-package', 'yoast-seo-styled-components-package'), 'version' => '7359c43fdb80f28a3909'), 'admin-global.js' => array('dependencies' => array('jquery', 'wp-polyfill'), 'version' => '735bb3e70213eb378380'), 'admin-modules.js' => array('dependencies' => array('react', 'react-jsx-runtime', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package'), 'version' => '516ba798f4113b194cab'), 'analysis-worker.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'aa04978fbd423b404462'), 'api-client.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f56d7de163fa219c67e2'), 'block-editor.js' => array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'react-jsx-runtime', 'wp-annotations', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-rich-text', 'wp-sanitize', 'wp-url', 'yoast-seo-analysis-package', 'yoast-seo-chart.js-package', 'yoast-seo-components-new-package', 'yoast-seo-externals-components', 'yoast-seo-externals-contexts', 'yoast-seo-externals-redux', 'yoast-seo-feature-flag-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-related-keyphrase-suggestions-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-search-metadata-previews-package', 'yoast-seo-social-metadata-forms-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => 'abbbab460f131126f7f6'), 'bulk-editor.js' => array('dependencies' => array('jquery', 'wp-polyfill'), 'version' => '308d4f19cc8fcb346d3d'), 'classic-editor.js' => array('dependencies' => array('jquery', 'lodash', 'moment', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-sanitize', 'wp-url', 'yoast-seo-analysis-package', 'yoast-seo-chart.js-package', 'yoast-seo-components-new-package', 'yoast-seo-externals-components', 'yoast-seo-externals-contexts', 'yoast-seo-externals-redux', 'yoast-seo-feature-flag-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-related-keyphrase-suggestions-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-search-metadata-previews-package', 'yoast-seo-social-metadata-forms-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => '9928e7114527541580f6'), 'crawl-settings.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'd511931b46d0b74648b4'), 'dashboard-widget.js' => array('dependencies' => array('react-jsx-runtime', 'wp-element', 'wp-polyfill', 'yoast-seo-analysis-report-package', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-style-guide-package'), 'version' => '751474c1233a3eb40fcd'), 'wincher-dashboard-widget.js' => array('dependencies' => array('lodash', 'moment', 'react-jsx-runtime', 'wp-api-fetch', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => '63d0a790229681c72b7e'), 'dynamic-blocks.js' => array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-polyfill', 'wp-server-side-render'), 'version' => '0b62afb01d7a49465a20'), 'edit-page.js' => array('dependencies' => array('jquery', 'wp-polyfill'), 'version' => 'afab9d8fdff1d98c8ca9'), 'editor-modules.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-sanitize', 'wp-url', 'yoast-seo-ai-frontend-package', 'yoast-seo-analysis-package', 'yoast-seo-analysis-report-package', 'yoast-seo-components-new-package', 'yoast-seo-externals-contexts', 'yoast-seo-externals-redux', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-related-keyphrase-suggestions-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-search-metadata-previews-package', 'yoast-seo-social-metadata-forms-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => '0d374228bbba663a30ed'), 'elementor.js' => array('dependencies' => array('elementor-common', 'jquery', 'lodash', 'moment', 'react', 'react-dom', 'react-jsx-runtime', 'wp-annotations', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text', 'wp-sanitize', 'wp-url', 'yoast-seo-analysis-package', 'yoast-seo-chart.js-package', 'yoast-seo-components-new-package', 'yoast-seo-externals-components', 'yoast-seo-externals-contexts', 'yoast-seo-externals-redux', 'yoast-seo-feature-flag-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-related-keyphrase-suggestions-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-search-metadata-previews-package', 'yoast-seo-social-metadata-forms-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => '6f3b76330768965473d2'), 'externals-components.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-sanitize', 'wp-url', 'yoast-seo-ai-frontend-package', 'yoast-seo-analysis-package', 'yoast-seo-analysis-report-package', 'yoast-seo-components-new-package', 'yoast-seo-externals-contexts', 'yoast-seo-externals-redux', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-related-keyphrase-suggestions-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-search-metadata-previews-package', 'yoast-seo-social-metadata-forms-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => '28f2bf226bf0b0b1f92f'), 'externals-contexts.js' => array('dependencies' => array('react-jsx-runtime', 'wp-element', 'wp-polyfill', 'yoast-seo-prop-types-package'), 'version' => '300c2a3875f94498e3af'), 'externals-redux.js' => array('dependencies' => array('lodash', 'react-jsx-runtime', 'wp-api-fetch', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-sanitize', 'wp-url', 'yoast-seo-helpers-package', 'yoast-seo-redux-js-toolkit-package'), 'version' => '809aa5d7a12177840a30'), 'filter-explanation.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8b3042cee26c58eb9be7'), 'help-scout-beacon.js' => array('dependencies' => array('react-jsx-runtime', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-styled-components-package'), 'version' => '952791cde3e1a9e961cd'), 'import.js' => array('dependencies' => array('jquery', 'lodash', 'wp-i18n', 'wp-polyfill'), 'version' => 'cbe848d7253c616f3a75'), 'indexation.js' => array('dependencies' => array('jquery', 'react-jsx-runtime', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => 'e31d5e05d493adec892a'), 'installation-success.js' => array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-ui-library-package'), 'version' => '73410c74285694bf48e7'), 'integrations-page.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-dashboard-frontend-package', 'yoast-seo-externals-contexts', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => '09cbf030f251791612d5'), 'introductions.js' => array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-prop-types-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-ui-library-package'), 'version' => '9c6a2c37ad0a311abb09'), 'network-admin.js' => array('dependencies' => array('jquery', 'wp-polyfill'), 'version' => 'c28de4314d03147fca4a'), 'post-edit.js' => array('dependencies' => array('jquery', 'lodash', 'react-jsx-runtime', 'wp-annotations', 'wp-api', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-rich-text', 'wp-url', 'yoast-seo-analysis-package', 'yoast-seo-externals-redux', 'yoast-seo-feature-flag-package', 'yoast-seo-prop-types-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-styled-components-package'), 'version' => '46f277e9023b1bad948d'), 'quick-edit-handler.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e7d3f8a9873afbfd1425'), 'reindex-links.js' => array('dependencies' => array('jquery', 'wp-polyfill'), 'version' => 'e4694eb7292052d53fc4'), 'redirect-old-features-tab.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'a792fdd4c0d1c2ef737c'), 'settings.js' => array('dependencies' => array('jquery', 'lodash', 'react', 'react-jsx-runtime', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-externals-redux', 'yoast-seo-prop-types-package', 'yoast-seo-styled-components-package'), 'version' => '9a686f7c0c1f1e5e32a6'), 'new-settings.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-externals-redux', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => '220cd310b3466560bb25'), 'redirects.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => '7011dee91a6e13b3c8bc'), 'academy.js' => array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-ui-library-package'), 'version' => 'ad100d1f98f9bb316a90'), 'general-page.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-dashboard-frontend-package', 'yoast-seo-externals-redux', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-social-metadata-forms-package', 'yoast-seo-ui-library-package'), 'version' => 'ce84692e49fd93b90234'), 'support.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-externals-redux', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-ui-library-package'), 'version' => '6a14eb82f0e5419b36d0'), 'how-to-block.js' => array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'yoast-seo-prop-types-package', 'yoast-seo-styled-components-package'), 'version' => 'e9e28ef7fd5cb76dc126'), 'faq-block.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'yoast-seo-prop-types-package'), 'version' => '52133e2b43d8bcddc37c'), 'term-edit.js' => array('dependencies' => array('jquery', 'lodash', 'wp-annotations', 'wp-api', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-dom-ready', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-rich-text', 'wp-url', 'yoast-seo-analysis-package', 'yoast-seo-externals-redux', 'yoast-seo-feature-flag-package', 'yoast-seo-redux-js-toolkit-package'), 'version' => '07e9369a205f01928cc3'), 'used-keywords-assessment.js' => array('dependencies' => array('wp-polyfill', 'yoast-seo-analysis-package'), 'version' => 'f2d934f4e70fdace40fc'), 'workouts.js' => array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-externals-contexts', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-styled-components-package'), 'version' => 'c317244c7e9b95b469ff'), 'frontend-inspector-resources.js' => array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-i18n', 'wp-polyfill', 'yoast-seo-analysis-package', 'yoast-seo-components-new-package', 'yoast-seo-prop-types-package', 'yoast-seo-style-guide-package'), 'version' => '15bb4fe17c5c7da4928d'), 'ai-generator.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-sanitize', 'wp-url', 'yoast-seo-ai-frontend-package', 'yoast-seo-analysis-package', 'yoast-seo-components-new-package', 'yoast-seo-externals-contexts', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-search-metadata-previews-package', 'yoast-seo-social-metadata-forms-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => 'bceb3264c9d771a1ef64'), 'ai-consent.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-ui-library-package'), 'version' => '1f68ef30cd3cf82cd729'), 'plans.js' => array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-externals-redux', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-ui-library-package'), 'version' => '3504b7a90e613b884a10')); +<?php return array('addon-installation.js' => array('dependencies' => array('react', 'react-jsx-runtime', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-prop-types-package', 'yoast-seo-styled-components-package'), 'version' => '7359c43fdb80f28a3909'), 'admin-global.js' => array('dependencies' => array('jquery', 'wp-polyfill'), 'version' => 'afea66380308b381a3e4'), 'admin-modules.js' => array('dependencies' => array('react', 'react-jsx-runtime', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package'), 'version' => '516ba798f4113b194cab'), 'analysis-worker.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'aa04978fbd423b404462'), 'api-client.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f56d7de163fa219c67e2'), 'block-editor.js' => array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'react-jsx-runtime', 'wp-annotations', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-rich-text', 'wp-sanitize', 'wp-url', 'yoast-seo-analysis-package', 'yoast-seo-chart.js-package', 'yoast-seo-components-new-package', 'yoast-seo-externals-components', 'yoast-seo-externals-contexts', 'yoast-seo-externals-redux', 'yoast-seo-feature-flag-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-related-keyphrase-suggestions-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-search-metadata-previews-package', 'yoast-seo-social-metadata-forms-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => 'b3d62218325682fee01e'), 'bulk-editor.js' => array('dependencies' => array('jquery', 'wp-polyfill'), 'version' => '308d4f19cc8fcb346d3d'), 'classic-editor.js' => array('dependencies' => array('jquery', 'lodash', 'moment', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-sanitize', 'wp-url', 'yoast-seo-analysis-package', 'yoast-seo-chart.js-package', 'yoast-seo-components-new-package', 'yoast-seo-externals-components', 'yoast-seo-externals-contexts', 'yoast-seo-externals-redux', 'yoast-seo-feature-flag-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-related-keyphrase-suggestions-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-search-metadata-previews-package', 'yoast-seo-social-metadata-forms-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => 'b6833170e669c9c1ecd0'), 'crawl-settings.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'd511931b46d0b74648b4'), 'dashboard-widget.js' => array('dependencies' => array('react-jsx-runtime', 'wp-element', 'wp-polyfill', 'yoast-seo-analysis-report-package', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-style-guide-package'), 'version' => '751474c1233a3eb40fcd'), 'wincher-dashboard-widget.js' => array('dependencies' => array('lodash', 'moment', 'react-jsx-runtime', 'wp-api-fetch', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => '63d0a790229681c72b7e'), 'dynamic-blocks.js' => array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-polyfill', 'wp-server-side-render'), 'version' => '0b62afb01d7a49465a20'), 'edit-page.js' => array('dependencies' => array('jquery', 'wp-polyfill'), 'version' => 'afab9d8fdff1d98c8ca9'), 'editor-modules.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-sanitize', 'wp-url', 'yoast-seo-ai-frontend-package', 'yoast-seo-analysis-package', 'yoast-seo-analysis-report-package', 'yoast-seo-components-new-package', 'yoast-seo-externals-contexts', 'yoast-seo-externals-redux', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-related-keyphrase-suggestions-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-search-metadata-previews-package', 'yoast-seo-social-metadata-forms-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => 'bb63223ddde74978b5a4'), 'elementor.js' => array('dependencies' => array('elementor-common', 'jquery', 'lodash', 'moment', 'react', 'react-dom', 'react-jsx-runtime', 'wp-annotations', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text', 'wp-sanitize', 'wp-url', 'yoast-seo-analysis-package', 'yoast-seo-chart.js-package', 'yoast-seo-components-new-package', 'yoast-seo-externals-components', 'yoast-seo-externals-contexts', 'yoast-seo-externals-redux', 'yoast-seo-feature-flag-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-related-keyphrase-suggestions-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-search-metadata-previews-package', 'yoast-seo-social-metadata-forms-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => '03b92200d0da46b52a0f'), 'externals-components.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-sanitize', 'wp-url', 'yoast-seo-ai-frontend-package', 'yoast-seo-analysis-package', 'yoast-seo-analysis-report-package', 'yoast-seo-components-new-package', 'yoast-seo-externals-contexts', 'yoast-seo-externals-redux', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-related-keyphrase-suggestions-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-search-metadata-previews-package', 'yoast-seo-social-metadata-forms-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => '395143b147e206a3e686'), 'externals-contexts.js' => array('dependencies' => array('react-jsx-runtime', 'wp-element', 'wp-polyfill', 'yoast-seo-prop-types-package'), 'version' => '300c2a3875f94498e3af'), 'externals-redux.js' => array('dependencies' => array('lodash', 'react-jsx-runtime', 'wp-api-fetch', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-sanitize', 'wp-url', 'yoast-seo-helpers-package', 'yoast-seo-redux-js-toolkit-package'), 'version' => '809aa5d7a12177840a30'), 'filter-explanation.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8b3042cee26c58eb9be7'), 'help-scout-beacon.js' => array('dependencies' => array('react-jsx-runtime', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-styled-components-package'), 'version' => '952791cde3e1a9e961cd'), 'import.js' => array('dependencies' => array('jquery', 'lodash', 'wp-i18n', 'wp-polyfill'), 'version' => 'cbe848d7253c616f3a75'), 'indexation.js' => array('dependencies' => array('jquery', 'react-jsx-runtime', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => 'e31d5e05d493adec892a'), 'installation-success.js' => array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-ui-library-package'), 'version' => '73410c74285694bf48e7'), 'integrations-page.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-dashboard-frontend-package', 'yoast-seo-externals-contexts', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => '2971b133986ec0b57a3a'), 'introductions.js' => array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-prop-types-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-ui-library-package'), 'version' => '9c6a2c37ad0a311abb09'), 'network-admin.js' => array('dependencies' => array('jquery', 'wp-polyfill'), 'version' => 'c28de4314d03147fca4a'), 'post-edit.js' => array('dependencies' => array('jquery', 'lodash', 'react-jsx-runtime', 'wp-annotations', 'wp-api', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-rich-text', 'wp-url', 'yoast-seo-analysis-package', 'yoast-seo-externals-redux', 'yoast-seo-feature-flag-package', 'yoast-seo-prop-types-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-styled-components-package'), 'version' => 'fbf8770ea4484225196c'), 'quick-edit-handler.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e7d3f8a9873afbfd1425'), 'reindex-links.js' => array('dependencies' => array('jquery', 'wp-polyfill'), 'version' => 'e4694eb7292052d53fc4'), 'redirect-old-features-tab.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'a792fdd4c0d1c2ef737c'), 'settings.js' => array('dependencies' => array('jquery', 'lodash', 'react', 'react-jsx-runtime', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-externals-redux', 'yoast-seo-prop-types-package', 'yoast-seo-styled-components-package'), 'version' => '9a686f7c0c1f1e5e32a6'), 'new-settings.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-externals-redux', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => '2425588abc99862fbd3b'), 'redirects.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => 'd6ec43a98db1ee95bfdd'), 'academy.js' => array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-ui-library-package'), 'version' => 'ad100d1f98f9bb316a90'), 'general-page.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-dashboard-frontend-package', 'yoast-seo-externals-redux', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-social-metadata-forms-package', 'yoast-seo-ui-library-package'), 'version' => '23054f0d33bddc2cda39'), 'support.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-externals-redux', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-ui-library-package'), 'version' => '0f179cf3001ed341f296'), 'how-to-block.js' => array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'yoast-seo-prop-types-package', 'yoast-seo-styled-components-package'), 'version' => 'e9e28ef7fd5cb76dc126'), 'faq-block.js' => array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'yoast-seo-prop-types-package'), 'version' => '52133e2b43d8bcddc37c'), 'term-edit.js' => array('dependencies' => array('jquery', 'lodash', 'wp-annotations', 'wp-api', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-dom-ready', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-rich-text', 'wp-url', 'yoast-seo-analysis-package', 'yoast-seo-externals-redux', 'yoast-seo-feature-flag-package', 'yoast-seo-redux-js-toolkit-package'), 'version' => '5194c3f489938a8e4659'), 'used-keywords-assessment.js' => array('dependencies' => array('wp-polyfill', 'yoast-seo-analysis-package'), 'version' => 'f2d934f4e70fdace40fc'), 'workouts.js' => array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-externals-contexts', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-styled-components-package'), 'version' => 'c317244c7e9b95b469ff'), 'frontend-inspector-resources.js' => array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-i18n', 'wp-polyfill', 'yoast-seo-analysis-package', 'yoast-seo-components-new-package', 'yoast-seo-prop-types-package', 'yoast-seo-style-guide-package'), 'version' => '15bb4fe17c5c7da4928d'), 'ai-generator.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-sanitize', 'wp-url', 'yoast-seo-ai-frontend-package', 'yoast-seo-analysis-package', 'yoast-seo-components-new-package', 'yoast-seo-externals-contexts', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-search-metadata-previews-package', 'yoast-seo-social-metadata-forms-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package', 'yoast-seo-ui-library-package'), 'version' => '583f90fd9568aa3c533b'), 'ai-consent.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-prop-types-package', 'yoast-seo-react-helmet-package', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-ui-library-package'), 'version' => 'b84cc430de88ac169d93'), 'plans.js' => array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url', 'yoast-seo-externals-redux', 'yoast-seo-redux-js-toolkit-package', 'yoast-seo-ui-library-package'), 'version' => '9fb076b5cde479320a00')); @@ -131,6 +131,7 @@ 'Yoast\\WP\\SEO\\Conditionals\\SEMrush_Enabled_Conditional' => 'getSEMrushEnabledConditionalService', 'Yoast\\WP\\SEO\\Conditionals\\Settings_Conditional' => 'getSettingsConditionalService', 'Yoast\\WP\\SEO\\Conditionals\\Should_Index_Links_Conditional' => 'getShouldIndexLinksConditionalService', + 'Yoast\\WP\\SEO\\Conditionals\\Task_List_Enabled_Conditional' => 'getTaskListEnabledConditionalService', 'Yoast\\WP\\SEO\\Conditionals\\Text_Formality_Conditional' => 'getTextFormalityConditionalService', 'Yoast\\WP\\SEO\\Conditionals\\Third_Party\\Elementor_Activated_Conditional' => 'getElementorActivatedConditionalService', 'Yoast\\WP\\SEO\\Conditionals\\Third_Party\\Elementor_Edit_Conditional' => 'getElementorEditConditionalService', @@ -261,6 +262,7 @@ 'Yoast\\WP\\SEO\\Helpers\\Require_File_Helper' => 'getRequireFileHelperService', 'Yoast\\WP\\SEO\\Helpers\\Robots_Helper' => 'getRobotsHelperService', 'Yoast\\WP\\SEO\\Helpers\\Robots_Txt_Helper' => 'getRobotsTxtHelperService', + 'Yoast\\WP\\SEO\\Helpers\\Route_Helper' => 'getRouteHelperService', 'Yoast\\WP\\SEO\\Helpers\\Sanitization_Helper' => 'getSanitizationHelperService', 'Yoast\\WP\\SEO\\Helpers\\Schema\\Article_Helper' => 'getArticleHelperService', 'Yoast\\WP\\SEO\\Helpers\\Schema\\HTML_Helper' => 'getHTMLHelperService', @@ -472,6 +474,9 @@ 'Yoast\\WP\\SEO\\Surfaces\\Open_Graph_Helpers_Surface' => 'getOpenGraphHelpersSurfaceService', 'Yoast\\WP\\SEO\\Surfaces\\Schema_Helpers_Surface' => 'getSchemaHelpersSurfaceService', 'Yoast\\WP\\SEO\\Surfaces\\Twitter_Helpers_Surface' => 'getTwitterHelpersSurfaceService', + 'Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Register_Post_Type_Tasks_Integration' => 'getRegisterPostTypeTasksIntegrationService', + 'Yoast\\WP\\SEO\\Task_List\\User_Interface\\Tasks\\Complete_Task_Route' => 'getCompleteTaskRouteService', + 'Yoast\\WP\\SEO\\Task_List\\User_Interface\\Tasks\\Get_Tasks_Route' => 'getGetTasksRouteService', 'Yoast\\WP\\SEO\\User_Meta\\Application\\Additional_Contactmethods_Collector' => 'getAdditionalContactmethodsCollectorService', 'Yoast\\WP\\SEO\\User_Meta\\Application\\Custom_Meta_Collector' => 'getCustomMetaCollectorService', 'Yoast\\WP\\SEO\\User_Meta\\User_Interface\\Additional_Contactmethods_Integration' => 'getAdditionalContactmethodsIntegrationService', @@ -685,6 +690,7 @@ 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Builders\\Intro_Builder' => true, 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Builders\\Link_Lists_Builder' => true, 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Builders\\Markdown_Builder' => true, + 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Builders\\Optional_Link_List_Builder' => true, 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Builders\\Title_Builder' => true, 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Escaper' => true, 'Yoast\\WP\\SEO\\Llms_Txt\\Domain\\Available_Posts\\Data_Provider\\Available_Posts_Data' => true, @@ -713,6 +719,7 @@ 'Yoast\\WP\\SEO\\Llms_Txt\\Infrastructure\\Markdown_Services\\Title_Adapter' => true, 'Yoast\\WP\\SEO\\Llms_Txt\\User_Interface\\Health_Check\\File_Reports' => true, 'Yoast\\WP\\SEO\\Plans\\Application\\Add_Ons_Collector' => true, + 'Yoast\\WP\\SEO\\Plans\\Application\\Duplicate_Post_Manager' => true, 'Yoast\\WP\\SEO\\Plans\\Domain\\Add_Ons\\Premium' => true, 'Yoast\\WP\\SEO\\Plans\\Domain\\Add_Ons\\Woo' => true, 'Yoast\\WP\\SEO\\Presenters\\Robots_Txt_Presenter' => true, @@ -721,6 +728,27 @@ 'Yoast\\WP\\SEO\\Promotions\\Domain\\Promotion_Interface' => true, 'Yoast\\WP\\SEO\\Promotions\\Domain\\Time_Interval' => true, 'Yoast\\WP\\SEO\\Routes\\Endpoint_Interface' => true, + 'Yoast\\WP\\SEO\\Task_List\\Application\\Configuration\\Task_List_Configuration' => true, + 'Yoast\\WP\\SEO\\Task_List\\Application\\Endpoints\\Endpoints_Repository' => true, + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Complete_FTC' => true, + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Create_New_Content' => true, + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Delete_Hello_World' => true, + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Enable_Llms_Txt' => true, + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Set_Search_Appearance_Templates' => true, + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks_Repository' => true, + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Components\\Call_To_Action_Entry' => true, + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Components\\Copy_Set' => true, + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Endpoint\\Endpoint_List' => true, + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Exceptions\\Complete_Hello_World_Task_Exception' => true, + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Exceptions\\Complete_LLMS_Task_Exception' => true, + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Exceptions\\Invalid_Post_Type_Tasks_Exception' => true, + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Exceptions\\Invalid_Tasks_Exception' => true, + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Exceptions\\Task_Not_Found_Exception' => true, + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Tasks\\Post_Type_Task_Interface' => true, + 'Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Endpoints\\Complete_Task_Endpoint' => true, + 'Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Endpoints\\Get_Tasks_Endpoint' => true, + 'Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Tasks_Collectors\\Cached_Tasks_Collector' => true, + 'Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Tasks_Collectors\\Tasks_Collector' => true, 'Yoast\\WP\\SEO\\User_Meta\\Application\\Cleanup_Service' => true, 'Yoast\\WP\\SEO\\User_Meta\\Framework\\Additional_Contactmethods\\Facebook' => true, 'Yoast\\WP\\SEO\\User_Meta\\Framework\\Additional_Contactmethods\\Instagram' => true, @@ -2089,6 +2117,16 @@ } /** + * Gets the public 'Yoast\WP\SEO\Conditionals\Task_List_Enabled_Conditional' shared autowired service. + * + * @return \Yoast\WP\SEO\Conditionals\Task_List_Enabled_Conditional + */ + protected function getTaskListEnabledConditionalService() + { + return $this->services['Yoast\\WP\\SEO\\Conditionals\\Task_List_Enabled_Conditional'] = new \Yoast\WP\SEO\Conditionals\Task_List_Enabled_Conditional(($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] = new \Yoast\WP\SEO\Helpers\Options_Helper()))); + } + + /** * Gets the public 'Yoast\WP\SEO\Conditionals\Text_Formality_Conditional' shared autowired service. * * @return \Yoast\WP\SEO\Conditionals\Text_Formality_Conditional @@ -2901,8 +2939,9 @@ protected function getGeneralPageIntegrationService() { $a = ($this->services['Yoast\\WP\\SEO\\Helpers\\User_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\User_Helper'] = new \Yoast\WP\SEO\Helpers\User_Helper())); + $b = ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] = new \Yoast\WP\SEO\Helpers\Options_Helper())); - return $this->services['Yoast\\WP\\SEO\\General\\User_Interface\\General_Page_Integration'] = new \Yoast\WP\SEO\General\User_Interface\General_Page_Integration(($this->services['WPSEO_Admin_Asset_Manager'] ?? $this->getWPSEOAdminAssetManagerService()), ($this->services['Yoast\\WP\\SEO\\Helpers\\Current_Page_Helper'] ?? $this->getCurrentPageHelperService()), ($this->services['Yoast\\WP\\SEO\\Helpers\\Product_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Product_Helper'] = new \Yoast\WP\SEO\Helpers\Product_Helper())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Short_Link_Helper'] ?? $this->getShortLinkHelperService()), ($this->services['Yoast\\WP\\SEO\\Helpers\\Notification_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Notification_Helper'] = new \Yoast\WP\SEO\Helpers\Notification_Helper())), ($this->services['Yoast\\WP\\SEO\\Actions\\Alert_Dismissal_Action'] ?? $this->getAlertDismissalActionService()), ($this->services['Yoast\\WP\\SEO\\Promotions\\Application\\Promotion_Manager'] ?? $this->getPromotionManagerService()), new \Yoast\WP\SEO\Dashboard\Application\Configuration\Dashboard_Configuration(new \Yoast\WP\SEO\Dashboard\Application\Content_Types\Content_Types_Repository(($this->privates['Yoast\\WP\\SEO\\Dashboard\\Infrastructure\\Content_Types\\Content_Types_Collector'] ?? $this->getContentTypesCollectorService()), ($this->privates['Yoast\\WP\\SEO\\Dashboard\\Application\\Taxonomies\\Taxonomies_Repository'] ?? $this->getTaxonomiesRepositoryService())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Indexable_Helper'] ?? $this->getIndexableHelperService()), $a, ($this->services['Yoast\\WP\\SEO\\Editors\\Application\\Analysis_Features\\Enabled_Analysis_Features_Repository'] ?? $this->getEnabledAnalysisFeaturesRepositoryService()), new \Yoast\WP\SEO\Dashboard\Application\Endpoints\Endpoints_Repository(new \Yoast\WP\SEO\Dashboard\Infrastructure\Endpoints\Readability_Scores_Endpoint(), new \Yoast\WP\SEO\Dashboard\Infrastructure\Endpoints\SEO_Scores_Endpoint(), new \Yoast\WP\SEO\Dashboard\Infrastructure\Endpoints\Setup_Steps_Tracking_Endpoint(), new \Yoast\WP\SEO\Dashboard\Infrastructure\Endpoints\Site_Kit_Configuration_Dismissal_Endpoint(), ($this->privates['Yoast\\WP\\SEO\\Dashboard\\Infrastructure\\Endpoints\\Site_Kit_Consent_Management_Endpoint'] ?? ($this->privates['Yoast\\WP\\SEO\\Dashboard\\Infrastructure\\Endpoints\\Site_Kit_Consent_Management_Endpoint'] = new \Yoast\WP\SEO\Dashboard\Infrastructure\Endpoints\Site_Kit_Consent_Management_Endpoint())), new \Yoast\WP\SEO\Dashboard\Infrastructure\Endpoints\Time_Based_SEO_Metrics_Endpoint()), new \Yoast\WP\SEO\Dashboard\Infrastructure\Nonces\Nonce_Repository(), ($this->privates['Yoast\\WP\\SEO\\Dashboard\\Infrastructure\\Integrations\\Site_Kit'] ?? $this->getSiteKitService()), new \Yoast\WP\SEO\Dashboard\Application\Tracking\Setup_Steps_Tracking(($this->privates['Yoast\\WP\\SEO\\Dashboard\\Infrastructure\\Tracking\\Setup_Steps_Tracking_Repository'] ?? $this->getSetupStepsTrackingRepositoryService())), new \Yoast\WP\SEO\Dashboard\Infrastructure\Browser_Cache\Browser_Cache_Configuration(($this->services['Yoast\\WP\\SEO\\Conditionals\\Google_Site_Kit_Feature_Conditional'] ?? $this->getGoogleSiteKitFeatureConditionalService()))), $a, ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] = new \Yoast\WP\SEO\Helpers\Options_Helper())), ($this->services['Yoast\\WP\\SEO\\Conditionals\\WooCommerce_Conditional'] ?? ($this->services['Yoast\\WP\\SEO\\Conditionals\\WooCommerce_Conditional'] = new \Yoast\WP\SEO\Conditionals\WooCommerce_Conditional())), ($this->services['WPSEO_Addon_Manager'] ?? $this->getWPSEOAddonManagerService())); + return $this->services['Yoast\\WP\\SEO\\General\\User_Interface\\General_Page_Integration'] = new \Yoast\WP\SEO\General\User_Interface\General_Page_Integration(($this->services['WPSEO_Admin_Asset_Manager'] ?? $this->getWPSEOAdminAssetManagerService()), ($this->services['Yoast\\WP\\SEO\\Helpers\\Current_Page_Helper'] ?? $this->getCurrentPageHelperService()), ($this->services['Yoast\\WP\\SEO\\Helpers\\Product_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Product_Helper'] = new \Yoast\WP\SEO\Helpers\Product_Helper())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Short_Link_Helper'] ?? $this->getShortLinkHelperService()), ($this->services['Yoast\\WP\\SEO\\Helpers\\Notification_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Notification_Helper'] = new \Yoast\WP\SEO\Helpers\Notification_Helper())), ($this->services['Yoast\\WP\\SEO\\Actions\\Alert_Dismissal_Action'] ?? $this->getAlertDismissalActionService()), ($this->services['Yoast\\WP\\SEO\\Promotions\\Application\\Promotion_Manager'] ?? $this->getPromotionManagerService()), new \Yoast\WP\SEO\Dashboard\Application\Configuration\Dashboard_Configuration(new \Yoast\WP\SEO\Dashboard\Application\Content_Types\Content_Types_Repository(($this->privates['Yoast\\WP\\SEO\\Dashboard\\Infrastructure\\Content_Types\\Content_Types_Collector'] ?? $this->getContentTypesCollectorService()), ($this->privates['Yoast\\WP\\SEO\\Dashboard\\Application\\Taxonomies\\Taxonomies_Repository'] ?? $this->getTaxonomiesRepositoryService())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Indexable_Helper'] ?? $this->getIndexableHelperService()), $a, ($this->services['Yoast\\WP\\SEO\\Editors\\Application\\Analysis_Features\\Enabled_Analysis_Features_Repository'] ?? $this->getEnabledAnalysisFeaturesRepositoryService()), new \Yoast\WP\SEO\Dashboard\Application\Endpoints\Endpoints_Repository(new \Yoast\WP\SEO\Dashboard\Infrastructure\Endpoints\Readability_Scores_Endpoint(), new \Yoast\WP\SEO\Dashboard\Infrastructure\Endpoints\SEO_Scores_Endpoint(), new \Yoast\WP\SEO\Dashboard\Infrastructure\Endpoints\Setup_Steps_Tracking_Endpoint(), new \Yoast\WP\SEO\Dashboard\Infrastructure\Endpoints\Site_Kit_Configuration_Dismissal_Endpoint(), ($this->privates['Yoast\\WP\\SEO\\Dashboard\\Infrastructure\\Endpoints\\Site_Kit_Consent_Management_Endpoint'] ?? ($this->privates['Yoast\\WP\\SEO\\Dashboard\\Infrastructure\\Endpoints\\Site_Kit_Consent_Management_Endpoint'] = new \Yoast\WP\SEO\Dashboard\Infrastructure\Endpoints\Site_Kit_Consent_Management_Endpoint())), new \Yoast\WP\SEO\Dashboard\Infrastructure\Endpoints\Time_Based_SEO_Metrics_Endpoint()), new \Yoast\WP\SEO\Dashboard\Infrastructure\Nonces\Nonce_Repository(), ($this->privates['Yoast\\WP\\SEO\\Dashboard\\Infrastructure\\Integrations\\Site_Kit'] ?? $this->getSiteKitService()), new \Yoast\WP\SEO\Dashboard\Application\Tracking\Setup_Steps_Tracking(($this->privates['Yoast\\WP\\SEO\\Dashboard\\Infrastructure\\Tracking\\Setup_Steps_Tracking_Repository'] ?? $this->getSetupStepsTrackingRepositoryService())), new \Yoast\WP\SEO\Dashboard\Infrastructure\Browser_Cache\Browser_Cache_Configuration(($this->services['Yoast\\WP\\SEO\\Conditionals\\Google_Site_Kit_Feature_Conditional'] ?? $this->getGoogleSiteKitFeatureConditionalService()))), $a, $b, ($this->services['Yoast\\WP\\SEO\\Conditionals\\WooCommerce_Conditional'] ?? ($this->services['Yoast\\WP\\SEO\\Conditionals\\WooCommerce_Conditional'] = new \Yoast\WP\SEO\Conditionals\WooCommerce_Conditional())), ($this->services['WPSEO_Addon_Manager'] ?? $this->getWPSEOAddonManagerService()), new \Yoast\WP\SEO\Task_List\Application\Configuration\Task_List_Configuration($b, new \Yoast\WP\SEO\Task_List\Application\Endpoints\Endpoints_Repository(new \Yoast\WP\SEO\Task_List\Infrastructure\Endpoints\Complete_Task_Endpoint(), new \Yoast\WP\SEO\Task_List\Infrastructure\Endpoints\Get_Tasks_Endpoint()))); } /** @@ -3461,6 +3500,16 @@ } /** + * Gets the public 'Yoast\WP\SEO\Helpers\Route_Helper' shared autowired service. + * + * @return \Yoast\WP\SEO\Helpers\Route_Helper + */ + protected function getRouteHelperService() + { + return $this->services['Yoast\\WP\\SEO\\Helpers\\Route_Helper'] = new \Yoast\WP\SEO\Helpers\Route_Helper(); + } + + /** * Gets the public 'Yoast\WP\SEO\Helpers\Sanitization_Helper' shared autowired service. * * @return \Yoast\WP\SEO\Helpers\Sanitization_Helper @@ -4393,7 +4442,7 @@ $b = ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] = new \Yoast\WP\SEO\Helpers\Options_Helper())); $c = ($this->privates['Yoast\\WP\\SEO\\Llms_Txt\\Application\\Health_Check\\File_Runner'] ?? ($this->privates['Yoast\\WP\\SEO\\Llms_Txt\\Application\\Health_Check\\File_Runner'] = new \Yoast\WP\SEO\Llms_Txt\Application\Health_Check\File_Runner())); - return $this->services['Yoast\\WP\\SEO\\Integrations\\Settings_Integration'] = new \Yoast\WP\SEO\Integrations\Settings_Integration(($this->services['WPSEO_Admin_Asset_Manager'] ?? $this->getWPSEOAdminAssetManagerService()), ($this->services['WPSEO_Replace_Vars'] ?? $this->getWPSEOReplaceVarsService()), ($this->services['Yoast\\WP\\SEO\\Config\\Schema_Types'] ?? ($this->services['Yoast\\WP\\SEO\\Config\\Schema_Types'] = new \Yoast\WP\SEO\Config\Schema_Types())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Current_Page_Helper'] ?? $this->getCurrentPageHelperService()), $a, ($this->services['Yoast\\WP\\SEO\\Helpers\\Language_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Language_Helper'] = new \Yoast\WP\SEO\Helpers\Language_Helper())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Taxonomy_Helper'] ?? $this->getTaxonomyHelperService()), ($this->services['Yoast\\WP\\SEO\\Helpers\\Product_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Product_Helper'] = new \Yoast\WP\SEO\Helpers\Product_Helper())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Woocommerce_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Woocommerce_Helper'] = new \Yoast\WP\SEO\Helpers\Woocommerce_Helper())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Schema\\Article_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Schema\\Article_Helper'] = new \Yoast\WP\SEO\Helpers\Schema\Article_Helper())), ($this->services['Yoast\\WP\\SEO\\Helpers\\User_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\User_Helper'] = new \Yoast\WP\SEO\Helpers\User_Helper())), $b, ($this->privates['Yoast\\WP\\SEO\\Content_Type_Visibility\\Application\\Content_Type_Visibility_Dismiss_Notifications'] ?? $this->getContentTypeVisibilityDismissNotificationsService()), new \Yoast\WP\SEO\Llms_Txt\Application\Configuration\Llms_Txt_Configuration($c, $a, $b), ($this->privates['Yoast\\WP\\SEO\\Llms_Txt\\Infrastructure\\Content\\Manual_Post_Collection'] ?? $this->getManualPostCollectionService()), $c); + return $this->services['Yoast\\WP\\SEO\\Integrations\\Settings_Integration'] = new \Yoast\WP\SEO\Integrations\Settings_Integration(($this->services['WPSEO_Admin_Asset_Manager'] ?? $this->getWPSEOAdminAssetManagerService()), ($this->services['WPSEO_Replace_Vars'] ?? $this->getWPSEOReplaceVarsService()), ($this->services['Yoast\\WP\\SEO\\Config\\Schema_Types'] ?? ($this->services['Yoast\\WP\\SEO\\Config\\Schema_Types'] = new \Yoast\WP\SEO\Config\Schema_Types())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Current_Page_Helper'] ?? $this->getCurrentPageHelperService()), $a, ($this->services['Yoast\\WP\\SEO\\Helpers\\Language_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Language_Helper'] = new \Yoast\WP\SEO\Helpers\Language_Helper())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Taxonomy_Helper'] ?? $this->getTaxonomyHelperService()), ($this->services['Yoast\\WP\\SEO\\Helpers\\Product_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Product_Helper'] = new \Yoast\WP\SEO\Helpers\Product_Helper())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Woocommerce_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Woocommerce_Helper'] = new \Yoast\WP\SEO\Helpers\Woocommerce_Helper())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Schema\\Article_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Schema\\Article_Helper'] = new \Yoast\WP\SEO\Helpers\Schema\Article_Helper())), ($this->services['Yoast\\WP\\SEO\\Helpers\\User_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\User_Helper'] = new \Yoast\WP\SEO\Helpers\User_Helper())), $b, ($this->privates['Yoast\\WP\\SEO\\Content_Type_Visibility\\Application\\Content_Type_Visibility_Dismiss_Notifications'] ?? $this->getContentTypeVisibilityDismissNotificationsService()), new \Yoast\WP\SEO\Llms_Txt\Application\Configuration\Llms_Txt_Configuration($c, $a, $b), ($this->privates['Yoast\\WP\\SEO\\Llms_Txt\\Infrastructure\\Content\\Manual_Post_Collection'] ?? $this->getManualPostCollectionService()), $c, ($this->services['Yoast\\WP\\SEO\\Helpers\\Route_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Route_Helper'] = new \Yoast\WP\SEO\Helpers\Route_Helper()))); } /** @@ -5147,6 +5196,9 @@ $instance->register_route('Yoast\\WP\\SEO\\Routes\\Wincher_Route'); $instance->register_route('Yoast\\WP\\SEO\\Routes\\Workouts_Route'); $instance->register_route('Yoast\\WP\\SEO\\Routes\\Yoast_Head_REST_Field'); + $instance->register_integration('Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Register_Post_Type_Tasks_Integration'); + $instance->register_route('Yoast\\WP\\SEO\\Task_List\\User_Interface\\Tasks\\Complete_Task_Route'); + $instance->register_route('Yoast\\WP\\SEO\\Task_List\\User_Interface\\Tasks\\Get_Tasks_Route'); $instance->register_integration('Yoast\\WP\\SEO\\User_Meta\\User_Interface\\Additional_Contactmethods_Integration'); $instance->register_integration('Yoast\\WP\\SEO\\User_Meta\\User_Interface\\Cleanup_Integration'); $instance->register_integration('Yoast\\WP\\SEO\\User_Meta\\User_Interface\\Custom_Meta_Integration'); @@ -5194,7 +5246,7 @@ { $a = ($this->services['WPSEO_Addon_Manager'] ?? $this->getWPSEOAddonManagerService()); - return $this->services['Yoast\\WP\\SEO\\Plans\\User_Interface\\Plans_Page_Integration'] = new \Yoast\WP\SEO\Plans\User_Interface\Plans_Page_Integration(($this->services['WPSEO_Admin_Asset_Manager'] ?? $this->getWPSEOAdminAssetManagerService()), new \Yoast\WP\SEO\Plans\Application\Add_Ons_Collector(new \Yoast\WP\SEO\Plans\Domain\Add_Ons\Premium($a), new \Yoast\WP\SEO\Plans\Domain\Add_Ons\Woo($a)), ($this->services['Yoast\\WP\\SEO\\Helpers\\Current_Page_Helper'] ?? $this->getCurrentPageHelperService()), ($this->services['Yoast\\WP\\SEO\\Helpers\\Short_Link_Helper'] ?? $this->getShortLinkHelperService()), ($this->services['Yoast\\WP\\SEO\\Conditionals\\Admin_Conditional'] ?? ($this->services['Yoast\\WP\\SEO\\Conditionals\\Admin_Conditional'] = new \Yoast\WP\SEO\Conditionals\Admin_Conditional())), ($this->services['Yoast\\WP\\SEO\\Promotions\\Application\\Promotion_Manager'] ?? $this->getPromotionManagerService())); + return $this->services['Yoast\\WP\\SEO\\Plans\\User_Interface\\Plans_Page_Integration'] = new \Yoast\WP\SEO\Plans\User_Interface\Plans_Page_Integration(($this->services['WPSEO_Admin_Asset_Manager'] ?? $this->getWPSEOAdminAssetManagerService()), new \Yoast\WP\SEO\Plans\Application\Add_Ons_Collector(new \Yoast\WP\SEO\Plans\Domain\Add_Ons\Premium($a), new \Yoast\WP\SEO\Plans\Domain\Add_Ons\Woo($a)), ($this->services['Yoast\\WP\\SEO\\Helpers\\Current_Page_Helper'] ?? $this->getCurrentPageHelperService()), ($this->services['Yoast\\WP\\SEO\\Helpers\\Short_Link_Helper'] ?? $this->getShortLinkHelperService()), ($this->services['Yoast\\WP\\SEO\\Conditionals\\Admin_Conditional'] ?? ($this->services['Yoast\\WP\\SEO\\Conditionals\\Admin_Conditional'] = new \Yoast\WP\SEO\Conditionals\Admin_Conditional())), ($this->services['Yoast\\WP\\SEO\\Promotions\\Application\\Promotion_Manager'] ?? $this->getPromotionManagerService()), new \Yoast\WP\SEO\Plans\Application\Duplicate_Post_Manager()); } /** @@ -5204,7 +5256,7 @@ */ protected function getUpgradeSidebarMenuIntegrationService() { - return $this->services['Yoast\\WP\\SEO\\Plans\\User_Interface\\Upgrade_Sidebar_Menu_Integration'] = new \Yoast\WP\SEO\Plans\User_Interface\Upgrade_Sidebar_Menu_Integration(($this->services['Yoast\\WP\\SEO\\Conditionals\\WooCommerce_Conditional'] ?? ($this->services['Yoast\\WP\\SEO\\Conditionals\\WooCommerce_Conditional'] = new \Yoast\WP\SEO\Conditionals\WooCommerce_Conditional())), ($this->services['WPSEO_Shortlinker'] ?? $this->getWPSEOShortlinkerService()), ($this->services['Yoast\\WP\\SEO\\Helpers\\Product_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Product_Helper'] = new \Yoast\WP\SEO\Helpers\Product_Helper())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Current_Page_Helper'] ?? $this->getCurrentPageHelperService()), ($this->services['Yoast\\WP\\SEO\\Promotions\\Application\\Promotion_Manager'] ?? $this->getPromotionManagerService())); + return $this->services['Yoast\\WP\\SEO\\Plans\\User_Interface\\Upgrade_Sidebar_Menu_Integration'] = new \Yoast\WP\SEO\Plans\User_Interface\Upgrade_Sidebar_Menu_Integration(($this->services['Yoast\\WP\\SEO\\Conditionals\\WooCommerce_Conditional'] ?? ($this->services['Yoast\\WP\\SEO\\Conditionals\\WooCommerce_Conditional'] = new \Yoast\WP\SEO\Conditionals\WooCommerce_Conditional())), ($this->services['WPSEO_Shortlinker'] ?? $this->getWPSEOShortlinkerService()), ($this->services['Yoast\\WP\\SEO\\Helpers\\Product_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Product_Helper'] = new \Yoast\WP\SEO\Helpers\Product_Helper())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Current_Page_Helper'] ?? $this->getCurrentPageHelperService()), ($this->services['Yoast\\WP\\SEO\\Promotions\\Application\\Promotion_Manager'] ?? $this->getPromotionManagerService()), ($this->services['WPSEO_Addon_Manager'] ?? $this->getWPSEOAddonManagerService())); } /** @@ -5866,6 +5918,40 @@ } /** + * Gets the public 'Yoast\WP\SEO\Task_List\Infrastructure\Register_Post_Type_Tasks_Integration' shared autowired service. + * + * @return \Yoast\WP\SEO\Task_List\Infrastructure\Register_Post_Type_Tasks_Integration + */ + protected function getRegisterPostTypeTasksIntegrationService() + { + $this->services['Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Register_Post_Type_Tasks_Integration'] = $instance = new \Yoast\WP\SEO\Task_List\Infrastructure\Register_Post_Type_Tasks_Integration(($this->privates['Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Set_Search_Appearance_Templates'] ?? $this->getSetSearchAppearanceTemplatesService())); + + $instance->set_post_type_helper(($this->services['Yoast\\WP\\SEO\\Helpers\\Post_Type_Helper'] ?? $this->getPostTypeHelperService())); + + return $instance; + } + + /** + * Gets the public 'Yoast\WP\SEO\Task_List\User_Interface\Tasks\Complete_Task_Route' shared autowired service. + * + * @return \Yoast\WP\SEO\Task_List\User_Interface\Tasks\Complete_Task_Route + */ + protected function getCompleteTaskRouteService() + { + return $this->services['Yoast\\WP\\SEO\\Task_List\\User_Interface\\Tasks\\Complete_Task_Route'] = new \Yoast\WP\SEO\Task_List\User_Interface\Tasks\Complete_Task_Route(($this->privates['Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Tasks_Collectors\\Tasks_Collector'] ?? $this->getTasksCollectorService()), ($this->services['Yoast\\WP\\SEO\\Helpers\\Capability_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Capability_Helper'] = new \Yoast\WP\SEO\Helpers\Capability_Helper()))); + } + + /** + * Gets the public 'Yoast\WP\SEO\Task_List\User_Interface\Tasks\Get_Tasks_Route' shared autowired service. + * + * @return \Yoast\WP\SEO\Task_List\User_Interface\Tasks\Get_Tasks_Route + */ + protected function getGetTasksRouteService() + { + return $this->services['Yoast\\WP\\SEO\\Task_List\\User_Interface\\Tasks\\Get_Tasks_Route'] = new \Yoast\WP\SEO\Task_List\User_Interface\Tasks\Get_Tasks_Route(new \Yoast\WP\SEO\Task_List\Application\Tasks_Repository(new \Yoast\WP\SEO\Task_List\Infrastructure\Tasks_Collectors\Cached_Tasks_Collector(($this->privates['Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Tasks_Collectors\\Tasks_Collector'] ?? $this->getTasksCollectorService()))), ($this->services['Yoast\\WP\\SEO\\Helpers\\Capability_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Capability_Helper'] = new \Yoast\WP\SEO\Helpers\Capability_Helper()))); + } + + /** * Gets the public 'Yoast\WP\SEO\User_Meta\Application\Additional_Contactmethods_Collector' shared autowired service. * * @return \Yoast\WP\SEO\User_Meta\Application\Additional_Contactmethods_Collector @@ -6160,7 +6246,7 @@ { $a = ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] = new \Yoast\WP\SEO\Helpers\Options_Helper())); - return $this->privates['Yoast\\WP\\SEO\\Llms_Txt\\Application\\File\\Commands\\Populate_File_Command_Handler'] = new \Yoast\WP\SEO\Llms_Txt\Application\File\Commands\Populate_File_Command_Handler($a, ($this->privates['Yoast\\WP\\SEO\\Llms_Txt\\Infrastructure\\File\\WordPress_File_System_Adapter'] ?? ($this->privates['Yoast\\WP\\SEO\\Llms_Txt\\Infrastructure\\File\\WordPress_File_System_Adapter'] = new \Yoast\WP\SEO\Llms_Txt\Infrastructure\File\WordPress_File_System_Adapter())), new \Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders\Markdown_Builder(new \Yoast\WP\SEO\Llms_Txt\Domain\Markdown\Llms_Txt_Renderer(), new \Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders\Intro_Builder(new \Yoast\WP\SEO\Llms_Txt\Infrastructure\Markdown_Services\Sitemap_Link_Collector()), new \Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders\Title_Builder(new \Yoast\WP\SEO\Llms_Txt\Infrastructure\Markdown_Services\Title_Adapter(($this->services['Yoast\\WP\\SEO\\Services\\Health_Check\\Default_Tagline_Runner'] ?? ($this->services['Yoast\\WP\\SEO\\Services\\Health_Check\\Default_Tagline_Runner'] = new \Yoast\WP\SEO\Services\Health_Check\Default_Tagline_Runner())))), new \Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders\Description_Builder(new \Yoast\WP\SEO\Llms_Txt\Infrastructure\Markdown_Services\Description_Adapter(($this->services['Yoast\\WP\\SEO\\Surfaces\\Meta_Surface'] ?? $this->getMetaSurfaceService()))), new \Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders\Link_Lists_Builder(new \Yoast\WP\SEO\Llms_Txt\Infrastructure\Markdown_Services\Content_Types_Collector(($this->services['Yoast\\WP\\SEO\\Helpers\\Post_Type_Helper'] ?? $this->getPostTypeHelperService()), new \Yoast\WP\SEO\Llms_Txt\Infrastructure\Content\Post_Collection_Factory(($this->privates['Yoast\\WP\\SEO\\Llms_Txt\\Infrastructure\\Content\\Manual_Post_Collection'] ?? $this->getManualPostCollectionService()), ($this->services['Yoast\\WP\\SEO\\Llms_Txt\\Infrastructure\\Content\\Automatic_Post_Collection'] ?? $this->getAutomaticPostCollectionService())), $a), new \Yoast\WP\SEO\Llms_Txt\Infrastructure\Markdown_Services\Terms_Collector(($this->services['Yoast\\WP\\SEO\\Helpers\\Taxonomy_Helper'] ?? $this->getTaxonomyHelperService()))), new \Yoast\WP\SEO\Llms_Txt\Application\Markdown_Escaper()), ($this->privates['Yoast\\WP\\SEO\\Llms_Txt\\Infrastructure\\File\\WordPress_Llms_Txt_Permission_Gate'] ?? $this->getWordPressLlmsTxtPermissionGateService())); + return $this->privates['Yoast\\WP\\SEO\\Llms_Txt\\Application\\File\\Commands\\Populate_File_Command_Handler'] = new \Yoast\WP\SEO\Llms_Txt\Application\File\Commands\Populate_File_Command_Handler($a, ($this->privates['Yoast\\WP\\SEO\\Llms_Txt\\Infrastructure\\File\\WordPress_File_System_Adapter'] ?? ($this->privates['Yoast\\WP\\SEO\\Llms_Txt\\Infrastructure\\File\\WordPress_File_System_Adapter'] = new \Yoast\WP\SEO\Llms_Txt\Infrastructure\File\WordPress_File_System_Adapter())), new \Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders\Markdown_Builder(new \Yoast\WP\SEO\Llms_Txt\Domain\Markdown\Llms_Txt_Renderer(), new \Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders\Intro_Builder(), new \Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders\Title_Builder(new \Yoast\WP\SEO\Llms_Txt\Infrastructure\Markdown_Services\Title_Adapter(($this->services['Yoast\\WP\\SEO\\Services\\Health_Check\\Default_Tagline_Runner'] ?? ($this->services['Yoast\\WP\\SEO\\Services\\Health_Check\\Default_Tagline_Runner'] = new \Yoast\WP\SEO\Services\Health_Check\Default_Tagline_Runner())))), new \Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders\Description_Builder(new \Yoast\WP\SEO\Llms_Txt\Infrastructure\Markdown_Services\Description_Adapter(($this->services['Yoast\\WP\\SEO\\Surfaces\\Meta_Surface'] ?? $this->getMetaSurfaceService()))), new \Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders\Link_Lists_Builder(new \Yoast\WP\SEO\Llms_Txt\Infrastructure\Markdown_Services\Content_Types_Collector(($this->services['Yoast\\WP\\SEO\\Helpers\\Post_Type_Helper'] ?? $this->getPostTypeHelperService()), new \Yoast\WP\SEO\Llms_Txt\Infrastructure\Content\Post_Collection_Factory(($this->privates['Yoast\\WP\\SEO\\Llms_Txt\\Infrastructure\\Content\\Manual_Post_Collection'] ?? $this->getManualPostCollectionService()), ($this->services['Yoast\\WP\\SEO\\Llms_Txt\\Infrastructure\\Content\\Automatic_Post_Collection'] ?? $this->getAutomaticPostCollectionService())), $a), new \Yoast\WP\SEO\Llms_Txt\Infrastructure\Markdown_Services\Terms_Collector(($this->services['Yoast\\WP\\SEO\\Helpers\\Taxonomy_Helper'] ?? $this->getTaxonomyHelperService()))), new \Yoast\WP\SEO\Llms_Txt\Application\Markdown_Escaper(), new \Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders\Optional_Link_List_Builder(new \Yoast\WP\SEO\Llms_Txt\Infrastructure\Markdown_Services\Sitemap_Link_Collector())), ($this->privates['Yoast\\WP\\SEO\\Llms_Txt\\Infrastructure\\File\\WordPress_Llms_Txt_Permission_Gate'] ?? $this->getWordPressLlmsTxtPermissionGateService())); } /** @@ -6202,4 +6288,24 @@ { return $this->privates['Yoast\\WP\\SEO\\Llms_Txt\\Infrastructure\\File\\WordPress_Llms_Txt_Permission_Gate'] = new \Yoast\WP\SEO\Llms_Txt\Infrastructure\File\WordPress_Llms_Txt_Permission_Gate(($this->privates['Yoast\\WP\\SEO\\Llms_Txt\\Infrastructure\\File\\WordPress_File_System_Adapter'] ?? ($this->privates['Yoast\\WP\\SEO\\Llms_Txt\\Infrastructure\\File\\WordPress_File_System_Adapter'] = new \Yoast\WP\SEO\Llms_Txt\Infrastructure\File\WordPress_File_System_Adapter())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] = new \Yoast\WP\SEO\Helpers\Options_Helper()))); } + + /** + * Gets the private 'Yoast\WP\SEO\Task_List\Application\Tasks\Set_Search_Appearance_Templates' shared autowired service. + * + * @return \Yoast\WP\SEO\Task_List\Application\Tasks\Set_Search_Appearance_Templates + */ + protected function getSetSearchAppearanceTemplatesService() + { + return $this->privates['Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Set_Search_Appearance_Templates'] = new \Yoast\WP\SEO\Task_List\Application\Tasks\Set_Search_Appearance_Templates(($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] = new \Yoast\WP\SEO\Helpers\Options_Helper())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Route_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Route_Helper'] = new \Yoast\WP\SEO\Helpers\Route_Helper()))); + } + + /** + * Gets the private 'Yoast\WP\SEO\Task_List\Infrastructure\Tasks_Collectors\Tasks_Collector' shared autowired service. + * + * @return \Yoast\WP\SEO\Task_List\Infrastructure\Tasks_Collectors\Tasks_Collector + */ + protected function getTasksCollectorService() + { + return $this->privates['Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Tasks_Collectors\\Tasks_Collector'] = new \Yoast\WP\SEO\Task_List\Infrastructure\Tasks_Collectors\Tasks_Collector(new \Yoast\WP\SEO\Task_List\Application\Tasks\Complete_FTC(($this->services['Yoast\\WP\\SEO\\Helpers\\First_Time_Configuration_Notice_Helper'] ?? $this->getFirstTimeConfigurationNoticeHelperService())), new \Yoast\WP\SEO\Task_List\Application\Tasks\Create_New_Content(($this->services['Yoast\\WP\\SEO\\Helpers\\Post_Type_Helper'] ?? $this->getPostTypeHelperService())), new \Yoast\WP\SEO\Task_List\Application\Tasks\Delete_Hello_World(), new \Yoast\WP\SEO\Task_List\Application\Tasks\Enable_Llms_Txt(($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] = new \Yoast\WP\SEO\Helpers\Options_Helper()))), ($this->privates['Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Set_Search_Appearance_Templates'] ?? $this->getSetSearchAppearanceTemplatesService())); + } } @@ -141,12 +141,15 @@ /** * Whether all steps of the first-time configuration have been finished. * + * @param bool $for_task_list Whether this is called for the task list. + * * @return bool Whether the first-time configuration has been finished. */ - private function is_first_time_configuration_finished() { - $configuration_finished_steps = $this->options_helper->get( 'configuration_finished_steps', [] ); + public function is_first_time_configuration_finished( $for_task_list = false ) { + $configuration_finished_steps = $this->options_helper->get( 'configuration_finished_steps', [] ); + $number_of_steps_of_completed_ftc = ( $for_task_list ) ? 4 : 3; - return \count( $configuration_finished_steps ) === 3; + return \count( $configuration_finished_steps ) === $number_of_steps_of_completed_ftc; } /** Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/src/helpers: route-helper.php @@ -12,6 +12,11 @@ class Brand_Insights_Page implements Integration_Interface { /** + * External link icon. + */ + public const EXTERNAL_LINK_ICON = '<span class="yst-external-link-icon"></span>'; + + /** * The product helper. * * @var Product_Helper @@ -46,7 +51,8 @@ * @return void */ public function register_hooks() { - \add_filter( 'wpseo_submenu_pages', [ $this, 'add_submenu_page' ], 12 ); + // Add page with PHP_INT_MAX so it's always the last item. This is the AI Brand Insights button in the sidebar menu. + \add_filter( 'wpseo_submenu_pages', [ $this, 'add_submenu_page' ], \PHP_INT_MAX ); } /** @@ -59,10 +65,18 @@ public function add_submenu_page( $submenu_pages ) { $page = $this->product_helper->is_premium() ? 'wpseo_brand_insights_premium' : 'wpseo_brand_insights'; + $button_content = 'AI Brand Insights'; + + $menu_title = '<span class="yoast-brand-insights-gradient-border">' + . '<span class="yoast-brand-insights-content">' + . $button_content + . self::EXTERNAL_LINK_ICON + . '</span></span>'; + $submenu_pages[] = [ 'wpseo_dashboard', '', - 'Brand Insights <span class="yoast-badge yoast-ai-plus-badge"></span>', + $menu_title, 'edit_others_posts', $page, [ $this, 'show_brand_insights_page' ], @@ -33,8 +33,6 @@ public function add_inline_styles() { $custom_css = 'ul.wp-submenu span.yoast-premium-badge::after, #wpadminbar span.yoast-premium-badge::after { content:"' . \__( 'Premium', 'wordpress-seo' ) . '"}' . \PHP_EOL; - - $custom_css .= 'ul.wp-submenu span.yoast-ai-plus-badge::after, #wpadminbar span.yoast-ai-plus-badge::after { content:"AI+"; }' . \PHP_EOL; \wp_add_inline_style( WPSEO_Admin_Asset_Manager::PREFIX . 'admin-global', $custom_css ); } } @@ -23,6 +23,7 @@ use Yoast\WP\SEO\Helpers\Options_Helper; use Yoast\WP\SEO\Helpers\Post_Type_Helper; use Yoast\WP\SEO\Helpers\Product_Helper; +use Yoast\WP\SEO\Helpers\Route_Helper; use Yoast\WP\SEO\Helpers\Schema\Article_Helper; use Yoast\WP\SEO\Helpers\Taxonomy_Helper; use Yoast\WP\SEO\Helpers\User_Helper; @@ -213,6 +214,13 @@ private $runner; /** + * Holds the Route_Helper. + * + * @var Route_Helper + */ + private $route_helper; + + /** * Constructs Settings_Integration. * * @param WPSEO_Admin_Asset_Manager $asset_manager The WPSEO_Admin_Asset_Manager. @@ -231,6 +239,7 @@ * @param Llms_Txt_Configuration $llms_txt_configuration The Llms_Txt_Configuration instance. * @param Manual_Post_Collection $manual_post_collection The manual post collection. * @param File_Runner $runner The file runner. + * @param Route_Helper $route_helper The Route_Helper. */ public function __construct( WPSEO_Admin_Asset_Manager $asset_manager, @@ -248,7 +257,8 @@ Content_Type_Visibility_Dismiss_Notifications $content_type_visibility, Llms_Txt_Configuration $llms_txt_configuration, Manual_Post_Collection $manual_post_collection, - File_Runner $runner + File_Runner $runner, + Route_Helper $route_helper ) { $this->asset_manager = $asset_manager; $this->replace_vars = $replace_vars; @@ -266,6 +276,7 @@ $this->llms_txt_configuration = $llms_txt_configuration; $this->manual_post_collection = $manual_post_collection; $this->runner = $runner; + $this->route_helper = $route_helper; } /** @@ -971,7 +982,7 @@ foreach ( $post_types as $post_type ) { $transformed[ $post_type->name ] = [ 'name' => $post_type->name, - 'route' => $this->get_route( $post_type->name, $post_type->rewrite, $post_type->rest_base ), + 'route' => $this->route_helper->get_route( $post_type->name, $post_type->rewrite, $post_type->rest_base ), 'label' => $post_type->label, 'singularLabel' => $post_type->labels->singular_name, 'hasArchive' => $this->post_type_helper->has_archive( $post_type ), @@ -1024,7 +1035,7 @@ foreach ( $taxonomies as $taxonomy ) { $transformed[ $taxonomy->name ] = [ 'name' => $taxonomy->name, - 'route' => $this->get_route( $taxonomy->name, $taxonomy->rewrite, $taxonomy->rest_base ), + 'route' => $this->route_helper->get_route( $taxonomy->name, $taxonomy->rewrite, $taxonomy->rest_base ), 'label' => $taxonomy->label, 'showUi' => $taxonomy->show_ui, 'singularLabel' => $taxonomy->labels->singular_name, @@ -1049,31 +1060,6 @@ } /** - * Gets the route from a name, rewrite and rest_base. - * - * @param string $name The name. - * @param array $rewrite The rewrite data. - * @param string $rest_base The rest base. - * - * @return string The route. - */ - protected function get_route( $name, $rewrite, $rest_base ) { - $route = $name; - if ( isset( $rewrite['slug'] ) ) { - $route = $rewrite['slug']; - } - if ( ! empty( $rest_base ) ) { - $route = $rest_base; - } - // Always strip leading slashes. - while ( \substr( $route, 0, 1 ) === '/' ) { - $route = \substr( $route, 1 ); - } - - return $route; - } - - /** * Retrieves the fallbacks. * * @return array The fallbacks. @@ -106,8 +106,8 @@ * @return void */ public function register_hooks() { - // Add page. - \add_filter( 'wpseo_submenu_pages', [ $this, 'add_page' ], \PHP_INT_MAX ); + // Add page using PHP_INT_MAX - 1 to allow other items (like Brand Insights) to be positioned after. + \add_filter( 'wpseo_submenu_pages', [ $this, 'add_page' ], ( \PHP_INT_MAX - 1 ) ); // Are we on the settings page? if ( $this->current_page_helper->get_current_yoast_seo_page() === self::PAGE ) { @@ -4,7 +4,6 @@ namespace Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders; use Yoast\WP\SEO\Llms_Txt\Domain\Markdown\Sections\Intro; -use Yoast\WP\SEO\Llms_Txt\Infrastructure\Markdown_Services\Sitemap_Link_Collector; /** * The builder of the intro section. @@ -12,24 +11,6 @@ class Intro_Builder { /** - * The sitemap link collector. - * - * @var Sitemap_Link_Collector - */ - protected $sitemap_link_collector; - - /** - * The constructor. - * - * @param Sitemap_Link_Collector $sitemap_link_collector The sitemap link collector. - */ - public function __construct( - Sitemap_Link_Collector $sitemap_link_collector - ) { - $this->sitemap_link_collector = $sitemap_link_collector; - } - - /** * Gets the plugin version that generated the llms.txt file. * * @return string The plugin version that generated the llms.txt file. @@ -48,15 +29,7 @@ 'Generated by %s, this is an llms.txt file, meant for consumption by LLMs.', $this->get_generator_version() ); - $intro_links = []; - - $sitemap_link = $this->sitemap_link_collector->get_link(); - if ( $sitemap_link !== null ) { - $intro_links[] = $sitemap_link; - - $intro_content .= \PHP_EOL . \PHP_EOL . 'The XML sitemap of this website can be found by following %s.'; - } - return new Intro( $intro_content, $intro_links ); + return new Intro( $intro_content, [] ); } } @@ -53,14 +53,22 @@ protected $markdown_escaper; /** + * The optional link list builder. + * + * @var Optional_Link_List_Builder + */ + protected $optional_link_list_builder; + + /** * The constructor. * - * @param Llms_Txt_Renderer $llms_txt_renderer The renderer of the LLMs.txt file. - * @param Intro_Builder $intro_builder The intro builder. - * @param Title_Builder $title_builder The title builder. - * @param Description_Builder $description_builder The description builder. - * @param Link_Lists_Builder $link_lists_builder The link lists builder. - * @param Markdown_Escaper $markdown_escaper The markdown escaper. + * @param Llms_Txt_Renderer $llms_txt_renderer The renderer of the LLMs.txt file. + * @param Intro_Builder $intro_builder The intro builder. + * @param Title_Builder $title_builder The title builder. + * @param Description_Builder $description_builder The description builder. + * @param Link_Lists_Builder $link_lists_builder The link lists builder. + * @param Markdown_Escaper $markdown_escaper The markdown escaper. + * @param Optional_Link_List_Builder $optional_link_list_builder The optional link list builder. */ public function __construct( Llms_Txt_Renderer $llms_txt_renderer, @@ -68,14 +76,16 @@ Title_Builder $title_builder, Description_Builder $description_builder, Link_Lists_Builder $link_lists_builder, - Markdown_Escaper $markdown_escaper + Markdown_Escaper $markdown_escaper, + Optional_Link_List_Builder $optional_link_list_builder ) { - $this->llms_txt_renderer = $llms_txt_renderer; - $this->intro_builder = $intro_builder; - $this->title_builder = $title_builder; - $this->description_builder = $description_builder; - $this->link_lists_builder = $link_lists_builder; - $this->markdown_escaper = $markdown_escaper; + $this->llms_txt_renderer = $llms_txt_renderer; + $this->intro_builder = $intro_builder; + $this->title_builder = $title_builder; + $this->description_builder = $description_builder; + $this->link_lists_builder = $link_lists_builder; + $this->markdown_escaper = $markdown_escaper; + $this->optional_link_list_builder = $optional_link_list_builder; } /** @@ -84,14 +94,16 @@ * @return string The rendered markdown. */ public function render(): string { - $this->llms_txt_renderer->add_section( $this->intro_builder->build_intro() ); $this->llms_txt_renderer->add_section( $this->title_builder->build_title() ); $this->llms_txt_renderer->add_section( $this->description_builder->build_description() ); + $this->llms_txt_renderer->add_section( $this->intro_builder->build_intro() ); foreach ( $this->link_lists_builder->build_link_lists() as $link_list ) { $this->llms_txt_renderer->add_section( $link_list ); } + $this->llms_txt_renderer->add_section( $this->optional_link_list_builder->build_optional_link_list() ); + foreach ( $this->llms_txt_renderer->get_sections() as $section ) { $section->escape_markdown( $this->markdown_escaper ); } Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/src/llms-txt/application/markdown-builders: optional-link-list-builder.php @@ -20,13 +20,13 @@ public function get_link(): ?Link { if ( WPSEO_Options::get( 'enable_xml_sitemap' ) ) { $sitemap_url = WPSEO_Sitemaps_Router::get_base_url( 'sitemap_index.xml' ); - return new Link( 'this link', $sitemap_url ); + return new Link( 'Sitemap index', $sitemap_url ); } $sitemap_url = \get_sitemap_url( 'index' ); if ( $sitemap_url !== false ) { - return new Link( 'this link', $sitemap_url ); + return new Link( 'Sitemap index', $sitemap_url ); } return null; @@ -2,7 +2,7 @@ namespace Yoast\WP\SEO\Llms_Txt\User_Interface; -use Yoast\WP\SEO\Conditionals\Traits\Admin_Conditional_Trait; +use Yoast\WP\SEO\Conditionals\No_Conditionals; use Yoast\WP\SEO\Helpers\Options_Helper; use Yoast\WP\SEO\Integrations\Integration_Interface; use Yoast\WP\SEO\Llms_Txt\Application\File\Commands\Populate_File_Command_Handler; @@ -14,7 +14,7 @@ */ class Enable_Llms_Txt_Option_Watcher implements Integration_Interface { - use Admin_Conditional_Trait; + use No_Conditionals; /** * The option names that should trigger a population of the llms.txt file. Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/src/plans/application: duplicate-post-manager.php @@ -10,6 +10,7 @@ use Yoast\WP\SEO\Helpers\Short_Link_Helper; use Yoast\WP\SEO\Integrations\Integration_Interface; use Yoast\WP\SEO\Plans\Application\Add_Ons_Collector; +use Yoast\WP\SEO\Plans\Application\Duplicate_Post_Manager; use Yoast\WP\SEO\Promotions\Application\Promotion_Manager; /** @@ -72,14 +73,22 @@ private $promotion_manager; /** + * The Duplicate Post plugin manager. + * + * @var Duplicate_Post_Manager + */ + private $duplicate_post_manager; + + /** * Constructs the instance. * - * @param WPSEO_Admin_Asset_Manager $asset_manager The WPSEO_Admin_Asset_Manager. - * @param Add_Ons_Collector $add_ons_collector The Add_Ons_Collector. - * @param Current_Page_Helper $current_page_helper The Current_Page_Helper. - * @param Short_Link_Helper $short_link_helper The Short_Link_Helper. - * @param Admin_Conditional $admin_conditional The Admin_Conditional. - * @param Promotion_Manager $promotion_manager The promotion manager. + * @param WPSEO_Admin_Asset_Manager $asset_manager The WPSEO_Admin_Asset_Manager. + * @param Add_Ons_Collector $add_ons_collector The Add_Ons_Collector. + * @param Current_Page_Helper $current_page_helper The Current_Page_Helper. + * @param Short_Link_Helper $short_link_helper The Short_Link_Helper. + * @param Admin_Conditional $admin_conditional The Admin_Conditional. + * @param Promotion_Manager $promotion_manager The promotion manager. + * @param Duplicate_Post_Manager $duplicate_post_manager The Duplicate_Post_Manager. */ public function __construct( WPSEO_Admin_Asset_Manager $asset_manager, @@ -87,14 +96,16 @@ Current_Page_Helper $current_page_helper, Short_Link_Helper $short_link_helper, Admin_Conditional $admin_conditional, - Promotion_Manager $promotion_manager + Promotion_Manager $promotion_manager, + Duplicate_Post_Manager $duplicate_post_manager ) { - $this->asset_manager = $asset_manager; - $this->add_ons_collector = $add_ons_collector; - $this->current_page_helper = $current_page_helper; - $this->short_link_helper = $short_link_helper; - $this->admin_conditional = $admin_conditional; - $this->promotion_manager = $promotion_manager; + $this->asset_manager = $asset_manager; + $this->add_ons_collector = $add_ons_collector; + $this->current_page_helper = $current_page_helper; + $this->short_link_helper = $short_link_helper; + $this->admin_conditional = $admin_conditional; + $this->promotion_manager = $promotion_manager; + $this->duplicate_post_manager = $duplicate_post_manager; } /** @@ -165,12 +176,17 @@ */ private function get_script_data(): array { return [ - 'addOns' => $this->add_ons_collector->to_array(), - 'linkParams' => $this->short_link_helper->get_query_params(), - 'preferences' => [ + 'addOns' => $this->add_ons_collector->to_array(), + 'linkParams' => $this->short_link_helper->get_query_params(), + 'preferences' => [ 'isRtl' => \is_rtl(), ], - 'currentPromotions' => $this->promotion_manager->get_current_promotions(), + 'currentPromotions' => $this->promotion_manager->get_current_promotions(), + 'duplicatePost' => $this->duplicate_post_manager->get_params(), + 'userCan' => [ + 'installPlugin' => \current_user_can( 'install_plugins' ), + 'activatePlugin' => \current_user_can( 'activate_plugins' ), + ], ]; } @@ -2,6 +2,7 @@ namespace Yoast\WP\SEO\Plans\User_Interface; +use WPSEO_Addon_Manager; use WPSEO_Shortlinker; use Yoast\WP\SEO\Conditionals\Traits\Admin_Conditional_Trait; use Yoast\WP\SEO\Conditionals\WooCommerce_Conditional; @@ -59,6 +60,13 @@ private $promotion_manager; /** + * The addon manager. + * + * @var WPSEO_Addon_Manager + */ + private $addon_manager; + + /** * Constructor. * * @param WooCommerce_Conditional $woocommerce_conditional The WooCommerce conditional. @@ -66,19 +74,22 @@ * @param Product_Helper $product_helper The product helper. * @param Current_Page_Helper $current_page_helper The current page helper. * @param Promotion_Manager $promotion_manager The promotion manager. + * @param WPSEO_Addon_Manager $addon_manager The addon manager. */ public function __construct( WooCommerce_Conditional $woocommerce_conditional, WPSEO_Shortlinker $shortlinker, Product_Helper $product_helper, Current_Page_Helper $current_page_helper, - Promotion_Manager $promotion_manager + Promotion_Manager $promotion_manager, + WPSEO_Addon_Manager $addon_manager ) { $this->woocommerce_conditional = $woocommerce_conditional; $this->shortlinker = $shortlinker; $this->product_helper = $product_helper; $this->current_page_helper = $current_page_helper; $this->promotion_manager = $promotion_manager; + $this->addon_manager = $addon_manager; } /** @@ -89,9 +100,9 @@ * @return void */ public function register_hooks() { - // Add page with PHP_INT_MAX so its always the last item. - \add_filter( 'wpseo_submenu_pages', [ $this, 'add_page' ], \PHP_INT_MAX ); - \add_filter( 'wpseo_network_submenu_pages', [ $this, 'add_page' ], \PHP_INT_MAX ); + // Add page with PHP_INT_MAX - 1 to allow other items (like Brand Insights) to be positioned after. + \add_filter( 'wpseo_submenu_pages', [ $this, 'add_page' ], ( \PHP_INT_MAX - 1 ) ); + \add_filter( 'wpseo_network_submenu_pages', [ $this, 'add_page' ], ( \PHP_INT_MAX - 1 ) ); \add_action( 'admin_init', [ $this, 'do_redirect' ], 1 ); } @@ -103,6 +114,15 @@ * @return array<string, array<string, array<static|string>>> The pages. */ public function add_page( $pages ) { + // Don't show the Upgrade button if Yoast SEO WooCommerce addon is active. + if ( $this->addon_manager->is_installed( WPSEO_Addon_Manager::WOOCOMMERCE_SLUG ) ) { + return $pages; + } + + // Don't show the Upgrade button if Premium is active without the WooCommerce plugin. + if ( $this->product_helper->is_premium() && ! $this->woocommerce_conditional->is_met() ) { + return $pages; + } $button_content = \__( 'Upgrade', 'wordpress-seo' ); @@ -110,10 +130,6 @@ $button_content = ( $this->product_helper->is_premium() ) ? \__( 'Get 30% off', 'wordpress-seo' ) : \__( '30% off - BF Sale', 'wordpress-seo' ); } - if ( $this->product_helper->is_premium() ) { - $button_content .= '<div id="wpseo-new-badge-upgrade">' . \__( 'New', 'wordpress-seo' ) . '</div>'; - } - $pages[] = [ General_Page_Integration::PAGE, '', @@ -139,10 +155,7 @@ return; } $link = $this->shortlinker->build_shortlink( 'https://yoa.st/wordpress-menu-upgrade-premium' ); - if ( $this->product_helper->is_premium() ) { - $link = $this->shortlinker->build_shortlink( 'https://yoa.st/wordpress-menu-upgrade-ai-insights' ); - } - elseif ( $this->woocommerce_conditional->is_met() ) { + if ( $this->woocommerce_conditional->is_met() ) { $link = $this->shortlinker->build_shortlink( 'https://yoa.st/wordpress-menu-upgrade-woocommerce' ); } @@ -35,8 +35,7 @@ ?> </div> - <div class="yoast-sidebar__product" - style="background-color: <?php echo ( $is_woocommerce_active ) ? 'rgb(14, 30, 101)' : 'rgb(166, 30, 105)'; ?>;"> + <div class="yoast-sidebar__product<?php echo ( $is_woocommerce_active ) ? ' woocommerce' : ''; ?>"> <figure class="product-image"> <figure class="product-image"> <img @@ -67,91 +66,93 @@ echo ( $is_woocommerce_active ) ? \sprintf( \esc_html__( '%1$s%2$s %3$s', 'wordpress-seo' ), '<span>', '</span>', 'Yoast WooCommerce SEO' ) : \sprintf( \esc_html__( '%1$s%2$s %3$s', 'wordpress-seo' ), '<span>', '</span>', 'Yoast SEO Premium' ); ?> </h2> - <span> - <?php - echo ( $is_woocommerce_active ) ? \esc_html__( 'SEO that scales with your product catalog.', 'wordpress-seo' ) : \esc_html__( 'Now with Local, News & Video SEO + 1 Google Docs seat!', 'wordpress-seo' ); - echo '<ul>'; - echo '<li>' . \esc_html__( 'AI tools included', 'wordpress-seo' ) . '</li>'; - echo '<li>'; - /* translators: %1$s expands to "Yoast SEO academy". */ - \printf( \esc_html__( '%1$s access', 'wordpress-seo' ), 'Yoast SEO academy' ); - echo '</li>'; - echo '<li>' . \esc_html__( '24/7 support', 'wordpress-seo' ) . '</li>'; - echo '</ul>'; - ?> - <p class="plugin-buy-button"> - <a class="yoast-button-upsell" data-action="load-nfd-ctb" + <div> + <p class="info-header"> + <?php + echo ( $is_woocommerce_active ) ? \esc_html__( "Grow your store's visibility!", 'wordpress-seo' ) : \esc_html__( 'Spend less time on SEO tasks!', 'wordpress-seo' ); + ?> + </p> + <p class="info"> + <?php + echo ( $is_woocommerce_active ) ? \esc_html__( 'Help ready-to-buy shoppers and search engines find your product.', 'wordpress-seo' ) : \esc_html__( 'Optimize your site faster, smarter, and with more confidence.', 'wordpress-seo' ); + ?> + </p> + <ul class="yoast-features-list"> + <?php + if ( $is_woocommerce_active ) { + echo '<li>' . \esc_html__( 'Add product details to help your listings stand out', 'wordpress-seo' ) . '</li>'; + echo '<li>' . \esc_html__( 'Make sure search engines show the right version of your product page', 'wordpress-seo' ) . '</li>'; + echo '<li>' . \esc_html__( 'Create optimized SEO titles & meta descriptions with AI', 'wordpress-seo' ) . '</li>'; + echo '<li>' . \esc_html__( 'Receive clear SEO and readability guidance to optimize your products', 'wordpress-seo' ) . '</li>'; + } + else { + echo '<li>' . \esc_html__( 'Create optimized SEO titles & meta descriptions in seconds', 'wordpress-seo' ) . '</li>'; + echo '<li>' . \esc_html__( 'Apply AI suggestions to improve content in 1 click', 'wordpress-seo' ) . '</li>'; + echo '<li>' . \esc_html__( 'Manage redirects with ease and without extra plugins', 'wordpress-seo' ) . '</li>'; + echo '<li>' . \esc_html__( 'Optimize pages for multiple keywords with guidance', 'wordpress-seo' ) . '</li>'; + } + ?> + </ul> + <p class="plugin-buy-button"> + <a class="yoast-button-upsell" data-action="load-nfd-ctb" data-ctb-id="f6a84663-465f-4cb5-8ba5-f7a6d72224b2" target="_blank" href="<?php echo \esc_url( $shortlink ); ?>"> - <?php - if ( - \YoastSEO()->classes->get( Promotion_Manager::class ) - ->is( 'black-friday-promotion' ) ) { - echo \esc_html__( 'Buy now for 30% off', 'wordpress-seo' ); - } - else { - echo \esc_html__( 'Buy now', 'wordpress-seo' ); - } - ?> - <span aria-hidden="true" class="yoast-button-upsell__caret"></span> - </a> - </p> - <p class="yoast-price-micro-copy"> <?php - echo \esc_html__( '30-day money back guarantee.', 'wordpress-seo' ); + if ( + \YoastSEO()->classes->get( Promotion_Manager::class ) + ->is( 'black-friday-promotion' ) ) { + echo \esc_html__( 'Buy now for 30% off', 'wordpress-seo' ); + } + else { + echo \esc_html__( 'Buy now', 'wordpress-seo' ); + } ?> - </p> - <hr class="yoast-upsell-hr" aria-hidden="true"> - <div class="review-container"> - <a href="https://www.g2.com/products/yoast-yoast/reviews" target="_blank" rel="noopener"> - <span class="rating"> - <img alt="" loading="lazy" fetchpriority="low" decoding="async" height="22" - width="22" - src="<?php echo \esc_url( $assets_uri . 'packages/js/images/g2_logo_white_optm.svg' ); ?>"> - <img alt="" loading="lazy" fetchpriority="low" decoding="async" height="20" - width="20" - src="<?php echo \esc_url( $assets_uri . 'packages/js/images/star-rating-star.svg' ); ?>"> - <img alt="" loading="lazy" fetchpriority="low" decoding="async" height="20" - width="20" - src="<?php echo \esc_url( $assets_uri . 'packages/js/images/star-rating-star.svg' ); ?>"> - <img alt="" loading="lazy" fetchpriority="low" decoding="async" height="20" - width="20" - src="<?php echo \esc_url( $assets_uri . 'packages/js/images/star-rating-star.svg' ); ?>"> - <img alt="" loading="lazy" fetchpriority="low" decoding="async" height="20" - width="20" - src="<?php echo \esc_url( $assets_uri . 'packages/js/images/star-rating-star.svg' ); ?>"> - <img alt="" loading="lazy" fetchpriority="low" decoding="async" height="20" - width="20" - src="<?php echo \esc_url( $assets_uri . 'packages/js/images/star-rating-half.svg' ); ?>"> - <span class="rating-text">4.6 / 5</span> - - </span> - </a> + <span aria-hidden="true" class="yoast-button-upsell__caret"></span> + </a> + </p> + <p class="yoast-price-micro-copy"> + <?php + echo ( $is_woocommerce_active ) ? \esc_html__( 'Less friction. Smarter optimization.', 'wordpress-seo' ) : \esc_html__( 'Less friction. Faster publishing.', 'wordpress-seo' ); + ?> + </p> + <hr class="yoast-upsell-hr" aria-hidden="true"> + <ul class="yoast-guarantees-list"> + <li> + <?php + echo \esc_html__( '30-day money back guarantee', 'wordpress-seo' ); + ?> + </li> + <li> + <?php + echo \esc_html__( '24/7 support', 'wordpress-seo' ); + ?> + </li> + </ul> </div> </div> </div> <div class="yoast-sidebar__section"> <h2> - <?php - \esc_html_e( 'Learn SEO', 'wordpress-seo' ); - ?> + <?php + \esc_html_e( 'Learn SEO', 'wordpress-seo' ); + ?> </h2> <p> - <?php - $academy_shortlink = WPSEO_Shortlinker::get( 'https://yoa.st/3t6' ); + <?php + $academy_shortlink = WPSEO_Shortlinker::get( 'https://yoa.st/3t6' ); - /* translators: %1$s expands to Yoast SEO academy, which is a clickable link. */ - \printf( \esc_html__( 'Want to learn SEO from Team Yoast? Check out our %1$s!', 'wordpress-seo' ), '<a href="' . \esc_url( $academy_shortlink ) . '" target="_blank"><strong>Yoast SEO academy</strong></a>' ); - echo '<br/>'; - \esc_html_e( 'We have both free and premium online courses to learn everything you need to know about SEO.', 'wordpress-seo' ); - ?> + /* translators: %1$s expands to Yoast SEO academy, which is a clickable link. */ + \printf( \esc_html__( 'Want to learn SEO from Team Yoast? Check out our %1$s!', 'wordpress-seo' ), '<a href="' . \esc_url( $academy_shortlink ) . '" target="_blank"><strong>Yoast SEO academy</strong></a>' ); + echo '<br/>'; + \esc_html_e( 'We have both free and premium online courses to learn everything you need to know about SEO.', 'wordpress-seo' ); + ?> </p> <p> <a href="<?php echo \esc_url( $academy_shortlink ); ?>" style="font-weight: 500" target="_blank"> - <?php - /* translators: %1$s expands to Yoast SEO academy */ - \printf( \esc_html__( 'Check out %1$s', 'wordpress-seo' ), 'Yoast SEO academy' ); - ?> + <?php + /* translators: %1$s expands to Yoast SEO academy */ + \printf( \esc_html__( 'Check out %1$s', 'wordpress-seo' ), 'Yoast SEO academy' ); + ?> <span class="screen-reader-text"> <?php /* translators: Hidden accessibility text. */ @@ -53,7 +53,7 @@ $post_type = \get_post_type( $request['post_id'] ); $post_type_object = \get_post_type_object( $post_type ); - return \current_user_can( $post_type_object->cap->edit_posts ); + return \current_user_can( $post_type_object->cap->edit_post, $request['post_id'] ); } /** Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/src: task-list @@ -19,4 +19,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit88e18481b877a4240af60ad16111d9f3::getLoader(); +return ComposerAutoloaderInitae21fa458dac9ca3c112516ae205afa0::getLoader(); @@ -392,6 +392,7 @@ 'YoastSEO_Vendor\\League\\OAuth2\\Client\\Token\\AccessToken' => $baseDir . '/vendor_prefixed/league/oauth2-client/src/Token/AccessToken.php', 'YoastSEO_Vendor\\League\\OAuth2\\Client\\Token\\AccessTokenInterface' => $baseDir . '/vendor_prefixed/league/oauth2-client/src/Token/AccessTokenInterface.php', 'YoastSEO_Vendor\\League\\OAuth2\\Client\\Token\\ResourceOwnerAccessTokenInterface' => $baseDir . '/vendor_prefixed/league/oauth2-client/src/Token/ResourceOwnerAccessTokenInterface.php', + 'YoastSEO_Vendor\\League\\OAuth2\\Client\\Token\\SettableRefreshTokenInterface' => $baseDir . '/vendor_prefixed/league/oauth2-client/src/Token/SettableRefreshTokenInterface.php', 'YoastSEO_Vendor\\League\\OAuth2\\Client\\Tool\\ArrayAccessorTrait' => $baseDir . '/vendor_prefixed/league/oauth2-client/src/Tool/ArrayAccessorTrait.php', 'YoastSEO_Vendor\\League\\OAuth2\\Client\\Tool\\BearerAuthorizationTrait' => $baseDir . '/vendor_prefixed/league/oauth2-client/src/Tool/BearerAuthorizationTrait.php', 'YoastSEO_Vendor\\League\\OAuth2\\Client\\Tool\\GuardedPropertyTrait' => $baseDir . '/vendor_prefixed/league/oauth2-client/src/Tool/GuardedPropertyTrait.php', @@ -622,6 +623,7 @@ 'Yoast\\WP\\SEO\\Conditionals\\SEMrush_Enabled_Conditional' => $baseDir . '/src/conditionals/semrush-enabled-conditional.php', 'Yoast\\WP\\SEO\\Conditionals\\Settings_Conditional' => $baseDir . '/src/conditionals/settings-conditional.php', 'Yoast\\WP\\SEO\\Conditionals\\Should_Index_Links_Conditional' => $baseDir . '/src/conditionals/should-index-links-conditional.php', + 'Yoast\\WP\\SEO\\Conditionals\\Task_List_Enabled_Conditional' => $baseDir . '/src/conditionals/task-list-enabled-conditional.php', 'Yoast\\WP\\SEO\\Conditionals\\Text_Formality_Conditional' => $baseDir . '/src/conditionals/text-formality-conditional.php', 'Yoast\\WP\\SEO\\Conditionals\\Third_Party\\Elementor_Activated_Conditional' => $baseDir . '/src/conditionals/third-party/elementor-activated-conditional.php', 'Yoast\\WP\\SEO\\Conditionals\\Third_Party\\Elementor_Edit_Conditional' => $baseDir . '/src/conditionals/third-party/elementor-edit-conditional.php', @@ -912,6 +914,7 @@ 'Yoast\\WP\\SEO\\Helpers\\Require_File_Helper' => $baseDir . '/src/helpers/require-file-helper.php', 'Yoast\\WP\\SEO\\Helpers\\Robots_Helper' => $baseDir . '/src/helpers/robots-helper.php', 'Yoast\\WP\\SEO\\Helpers\\Robots_Txt_Helper' => $baseDir . '/src/helpers/robots-txt-helper.php', + 'Yoast\\WP\\SEO\\Helpers\\Route_Helper' => $baseDir . '/src/helpers/route-helper.php', 'Yoast\\WP\\SEO\\Helpers\\Sanitization_Helper' => $baseDir . '/src/helpers/sanitization-helper.php', 'Yoast\\WP\\SEO\\Helpers\\Schema\\Article_Helper' => $baseDir . '/src/helpers/schema/article-helper.php', 'Yoast\\WP\\SEO\\Helpers\\Schema\\HTML_Helper' => $baseDir . '/src/helpers/schema/html-helper.php', @@ -1085,6 +1088,7 @@ 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Builders\\Intro_Builder' => $baseDir . '/src/llms-txt/application/markdown-builders/intro-builder.php', 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Builders\\Link_Lists_Builder' => $baseDir . '/src/llms-txt/application/markdown-builders/link-lists-builder.php', 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Builders\\Markdown_Builder' => $baseDir . '/src/llms-txt/application/markdown-builders/markdown-builder.php', + 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Builders\\Optional_Link_List_Builder' => $baseDir . '/src/llms-txt/application/markdown-builders/optional-link-list-builder.php', 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Builders\\Title_Builder' => $baseDir . '/src/llms-txt/application/markdown-builders/title-builder.php', 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Escaper' => $baseDir . '/src/llms-txt/application/markdown-escaper.php', 'Yoast\\WP\\SEO\\Llms_Txt\\Domain\\Available_Posts\\Data_Provider\\Available_Posts_Data' => $baseDir . '/src/llms-txt/domain/available-posts/data-provider/available-posts-data.php', @@ -1135,6 +1139,7 @@ 'Yoast\\WP\\SEO\\Models\\SEO_Links' => $baseDir . '/src/models/seo-links.php', 'Yoast\\WP\\SEO\\Models\\SEO_Meta' => $baseDir . '/src/models/seo-meta.php', 'Yoast\\WP\\SEO\\Plans\\Application\\Add_Ons_Collector' => $baseDir . '/src/plans/application/add-ons-collector.php', + 'Yoast\\WP\\SEO\\Plans\\Application\\Duplicate_Post_Manager' => $baseDir . '/src/plans/application/duplicate-post-manager.php', 'Yoast\\WP\\SEO\\Plans\\Domain\\Add_Ons\\Add_On_Interface' => $baseDir . '/src/plans/domain/add-ons/add-on-interface.php', 'Yoast\\WP\\SEO\\Plans\\Domain\\Add_Ons\\Premium' => $baseDir . '/src/plans/domain/add-ons/premium.php', 'Yoast\\WP\\SEO\\Plans\\Domain\\Add_Ons\\Woo' => $baseDir . '/src/plans/domain/add-ons/woo.php', @@ -1271,6 +1276,37 @@ 'Yoast\\WP\\SEO\\Surfaces\\Schema_Helpers_Surface' => $baseDir . '/src/surfaces/schema-helpers-surface.php', 'Yoast\\WP\\SEO\\Surfaces\\Twitter_Helpers_Surface' => $baseDir . '/src/surfaces/twitter-helpers-surface.php', 'Yoast\\WP\\SEO\\Surfaces\\Values\\Meta' => $baseDir . '/src/surfaces/values/meta.php', + 'Yoast\\WP\\SEO\\Task_List\\Application\\Configuration\\Task_List_Configuration' => $baseDir . '/src/task-list/application/configuration/task-list-configuration.php', + 'Yoast\\WP\\SEO\\Task_List\\Application\\Endpoints\\Endpoints_Repository' => $baseDir . '/src/task-list/application/endpoints/endpoints-repository.php', + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Complete_FTC' => $baseDir . '/src/task-list/application/tasks/complete-ftc.php', + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Create_New_Content' => $baseDir . '/src/task-list/application/tasks/create-new-content.php', + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Delete_Hello_World' => $baseDir . '/src/task-list/application/tasks/delete-hello-world.php', + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Enable_Llms_Txt' => $baseDir . '/src/task-list/application/tasks/enable-llms-txt.php', + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Set_Search_Appearance_Templates' => $baseDir . '/src/task-list/application/tasks/set-search-appearance-templates.php', + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks_Repository' => $baseDir . '/src/task-list/application/tasks-repository.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Components\\Call_To_Action_Entry' => $baseDir . '/src/task-list/domain/components/call-to-action-entry.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Components\\Copy_Set' => $baseDir . '/src/task-list/domain/components/copy-set.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Endpoint\\Endpoint_Interface' => $baseDir . '/src/task-list/domain/endpoint/endpoint-interface.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Endpoint\\Endpoint_List' => $baseDir . '/src/task-list/domain/endpoint/endpoint-list.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Exceptions\\Complete_Hello_World_Task_Exception' => $baseDir . '/src/task-list/domain/exceptions/complete-hello-world-task-exception.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Exceptions\\Complete_LLMS_Task_Exception' => $baseDir . '/src/task-list/domain/exceptions/complete-llms-task-exception.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Exceptions\\Invalid_Post_Type_Tasks_Exception' => $baseDir . '/src/task-list/domain/exceptions/invalid-post-type-tasks-exception.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Exceptions\\Invalid_Tasks_Exception' => $baseDir . '/src/task-list/domain/exceptions/invalid-tasks-exception.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Exceptions\\Task_Not_Found_Exception' => $baseDir . '/src/task-list/domain/exceptions/task-not-found-exception.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Tasks\\Abstract_Completeable_Task' => $baseDir . '/src/task-list/domain/tasks/abstract-completeable-task.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Tasks\\Abstract_Post_Type_Task' => $baseDir . '/src/task-list/domain/tasks/abstract-post-type-task.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Tasks\\Abstract_Task' => $baseDir . '/src/task-list/domain/tasks/abstract-task.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Tasks\\Completeable_Task_Interface' => $baseDir . '/src/task-list/domain/tasks/completeable-task-interface.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Tasks\\Post_Type_Task_Interface' => $baseDir . '/src/task-list/domain/tasks/post-type-task-interface.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Tasks\\Task_Interface' => $baseDir . '/src/task-list/domain/tasks/task-interface.php', + 'Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Endpoints\\Complete_Task_Endpoint' => $baseDir . '/src/task-list/infrastructure/endpoints/complete-task-endpoint.php', + 'Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Endpoints\\Get_Tasks_Endpoint' => $baseDir . '/src/task-list/infrastructure/endpoints/get-tasks-endpoint.php', + 'Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Register_Post_Type_Tasks_Integration' => $baseDir . '/src/task-list/infrastructure/register-post-type-tasks-integration.php', + 'Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Tasks_Collectors\\Cached_Tasks_Collector' => $baseDir . '/src/task-list/infrastructure/tasks-collectors/cached-tasks-collector.php', + 'Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Tasks_Collectors\\Tasks_Collector' => $baseDir . '/src/task-list/infrastructure/tasks-collectors/tasks-collector.php', + 'Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Tasks_Collectors\\Tasks_Collector_Interface' => $baseDir . '/src/task-list/infrastructure/tasks-collectors/tasks-collector-interface.php', + 'Yoast\\WP\\SEO\\Task_List\\User_Interface\\Tasks\\Complete_Task_Route' => $baseDir . '/src/task-list/user-interface/tasks/complete-task-route.php', + 'Yoast\\WP\\SEO\\Task_List\\User_Interface\\Tasks\\Get_Tasks_Route' => $baseDir . '/src/task-list/user-interface/tasks/get-tasks-route.php', 'Yoast\\WP\\SEO\\User_Meta\\Application\\Additional_Contactmethods_Collector' => $baseDir . '/src/user-meta/application/additional-contactmethods-collector.php', 'Yoast\\WP\\SEO\\User_Meta\\Application\\Cleanup_Service' => $baseDir . '/src/user-meta/application/cleanup-service.php', 'Yoast\\WP\\SEO\\User_Meta\\Application\\Custom_Meta_Collector' => $baseDir . '/src/user-meta/application/custom-meta-collector.php', @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit88e18481b877a4240af60ad16111d9f3 +class ComposerAutoloaderInitae21fa458dac9ca3c112516ae205afa0 { private static $loader; @@ -24,12 +24,12 @@ require __DIR__ . '/platform_check.php'; - spl_autoload_register(array('ComposerAutoloaderInit88e18481b877a4240af60ad16111d9f3', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInitae21fa458dac9ca3c112516ae205afa0', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInit88e18481b877a4240af60ad16111d9f3', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInitae21fa458dac9ca3c112516ae205afa0', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit88e18481b877a4240af60ad16111d9f3::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInitae21fa458dac9ca3c112516ae205afa0::getInitializer($loader)); $loader->register(true); @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit88e18481b877a4240af60ad16111d9f3 +class ComposerStaticInitae21fa458dac9ca3c112516ae205afa0 { public static $prefixLengthsPsr4 = array ( 'C' => @@ -407,6 +407,7 @@ 'YoastSEO_Vendor\\League\\OAuth2\\Client\\Token\\AccessToken' => __DIR__ . '/../..' . '/vendor_prefixed/league/oauth2-client/src/Token/AccessToken.php', 'YoastSEO_Vendor\\League\\OAuth2\\Client\\Token\\AccessTokenInterface' => __DIR__ . '/../..' . '/vendor_prefixed/league/oauth2-client/src/Token/AccessTokenInterface.php', 'YoastSEO_Vendor\\League\\OAuth2\\Client\\Token\\ResourceOwnerAccessTokenInterface' => __DIR__ . '/../..' . '/vendor_prefixed/league/oauth2-client/src/Token/ResourceOwnerAccessTokenInterface.php', + 'YoastSEO_Vendor\\League\\OAuth2\\Client\\Token\\SettableRefreshTokenInterface' => __DIR__ . '/../..' . '/vendor_prefixed/league/oauth2-client/src/Token/SettableRefreshTokenInterface.php', 'YoastSEO_Vendor\\League\\OAuth2\\Client\\Tool\\ArrayAccessorTrait' => __DIR__ . '/../..' . '/vendor_prefixed/league/oauth2-client/src/Tool/ArrayAccessorTrait.php', 'YoastSEO_Vendor\\League\\OAuth2\\Client\\Tool\\BearerAuthorizationTrait' => __DIR__ . '/../..' . '/vendor_prefixed/league/oauth2-client/src/Tool/BearerAuthorizationTrait.php', 'YoastSEO_Vendor\\League\\OAuth2\\Client\\Tool\\GuardedPropertyTrait' => __DIR__ . '/../..' . '/vendor_prefixed/league/oauth2-client/src/Tool/GuardedPropertyTrait.php', @@ -637,6 +638,7 @@ 'Yoast\\WP\\SEO\\Conditionals\\SEMrush_Enabled_Conditional' => __DIR__ . '/../..' . '/src/conditionals/semrush-enabled-conditional.php', 'Yoast\\WP\\SEO\\Conditionals\\Settings_Conditional' => __DIR__ . '/../..' . '/src/conditionals/settings-conditional.php', 'Yoast\\WP\\SEO\\Conditionals\\Should_Index_Links_Conditional' => __DIR__ . '/../..' . '/src/conditionals/should-index-links-conditional.php', + 'Yoast\\WP\\SEO\\Conditionals\\Task_List_Enabled_Conditional' => __DIR__ . '/../..' . '/src/conditionals/task-list-enabled-conditional.php', 'Yoast\\WP\\SEO\\Conditionals\\Text_Formality_Conditional' => __DIR__ . '/../..' . '/src/conditionals/text-formality-conditional.php', 'Yoast\\WP\\SEO\\Conditionals\\Third_Party\\Elementor_Activated_Conditional' => __DIR__ . '/../..' . '/src/conditionals/third-party/elementor-activated-conditional.php', 'Yoast\\WP\\SEO\\Conditionals\\Third_Party\\Elementor_Edit_Conditional' => __DIR__ . '/../..' . '/src/conditionals/third-party/elementor-edit-conditional.php', @@ -927,6 +929,7 @@ 'Yoast\\WP\\SEO\\Helpers\\Require_File_Helper' => __DIR__ . '/../..' . '/src/helpers/require-file-helper.php', 'Yoast\\WP\\SEO\\Helpers\\Robots_Helper' => __DIR__ . '/../..' . '/src/helpers/robots-helper.php', 'Yoast\\WP\\SEO\\Helpers\\Robots_Txt_Helper' => __DIR__ . '/../..' . '/src/helpers/robots-txt-helper.php', + 'Yoast\\WP\\SEO\\Helpers\\Route_Helper' => __DIR__ . '/../..' . '/src/helpers/route-helper.php', 'Yoast\\WP\\SEO\\Helpers\\Sanitization_Helper' => __DIR__ . '/../..' . '/src/helpers/sanitization-helper.php', 'Yoast\\WP\\SEO\\Helpers\\Schema\\Article_Helper' => __DIR__ . '/../..' . '/src/helpers/schema/article-helper.php', 'Yoast\\WP\\SEO\\Helpers\\Schema\\HTML_Helper' => __DIR__ . '/../..' . '/src/helpers/schema/html-helper.php', @@ -1100,6 +1103,7 @@ 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Builders\\Intro_Builder' => __DIR__ . '/../..' . '/src/llms-txt/application/markdown-builders/intro-builder.php', 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Builders\\Link_Lists_Builder' => __DIR__ . '/../..' . '/src/llms-txt/application/markdown-builders/link-lists-builder.php', 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Builders\\Markdown_Builder' => __DIR__ . '/../..' . '/src/llms-txt/application/markdown-builders/markdown-builder.php', + 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Builders\\Optional_Link_List_Builder' => __DIR__ . '/../..' . '/src/llms-txt/application/markdown-builders/optional-link-list-builder.php', 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Builders\\Title_Builder' => __DIR__ . '/../..' . '/src/llms-txt/application/markdown-builders/title-builder.php', 'Yoast\\WP\\SEO\\Llms_Txt\\Application\\Markdown_Escaper' => __DIR__ . '/../..' . '/src/llms-txt/application/markdown-escaper.php', 'Yoast\\WP\\SEO\\Llms_Txt\\Domain\\Available_Posts\\Data_Provider\\Available_Posts_Data' => __DIR__ . '/../..' . '/src/llms-txt/domain/available-posts/data-provider/available-posts-data.php', @@ -1150,6 +1154,7 @@ 'Yoast\\WP\\SEO\\Models\\SEO_Links' => __DIR__ . '/../..' . '/src/models/seo-links.php', 'Yoast\\WP\\SEO\\Models\\SEO_Meta' => __DIR__ . '/../..' . '/src/models/seo-meta.php', 'Yoast\\WP\\SEO\\Plans\\Application\\Add_Ons_Collector' => __DIR__ . '/../..' . '/src/plans/application/add-ons-collector.php', + 'Yoast\\WP\\SEO\\Plans\\Application\\Duplicate_Post_Manager' => __DIR__ . '/../..' . '/src/plans/application/duplicate-post-manager.php', 'Yoast\\WP\\SEO\\Plans\\Domain\\Add_Ons\\Add_On_Interface' => __DIR__ . '/../..' . '/src/plans/domain/add-ons/add-on-interface.php', 'Yoast\\WP\\SEO\\Plans\\Domain\\Add_Ons\\Premium' => __DIR__ . '/../..' . '/src/plans/domain/add-ons/premium.php', 'Yoast\\WP\\SEO\\Plans\\Domain\\Add_Ons\\Woo' => __DIR__ . '/../..' . '/src/plans/domain/add-ons/woo.php', @@ -1286,6 +1291,37 @@ 'Yoast\\WP\\SEO\\Surfaces\\Schema_Helpers_Surface' => __DIR__ . '/../..' . '/src/surfaces/schema-helpers-surface.php', 'Yoast\\WP\\SEO\\Surfaces\\Twitter_Helpers_Surface' => __DIR__ . '/../..' . '/src/surfaces/twitter-helpers-surface.php', 'Yoast\\WP\\SEO\\Surfaces\\Values\\Meta' => __DIR__ . '/../..' . '/src/surfaces/values/meta.php', + 'Yoast\\WP\\SEO\\Task_List\\Application\\Configuration\\Task_List_Configuration' => __DIR__ . '/../..' . '/src/task-list/application/configuration/task-list-configuration.php', + 'Yoast\\WP\\SEO\\Task_List\\Application\\Endpoints\\Endpoints_Repository' => __DIR__ . '/../..' . '/src/task-list/application/endpoints/endpoints-repository.php', + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Complete_FTC' => __DIR__ . '/../..' . '/src/task-list/application/tasks/complete-ftc.php', + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Create_New_Content' => __DIR__ . '/../..' . '/src/task-list/application/tasks/create-new-content.php', + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Delete_Hello_World' => __DIR__ . '/../..' . '/src/task-list/application/tasks/delete-hello-world.php', + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Enable_Llms_Txt' => __DIR__ . '/../..' . '/src/task-list/application/tasks/enable-llms-txt.php', + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks\\Set_Search_Appearance_Templates' => __DIR__ . '/../..' . '/src/task-list/application/tasks/set-search-appearance-templates.php', + 'Yoast\\WP\\SEO\\Task_List\\Application\\Tasks_Repository' => __DIR__ . '/../..' . '/src/task-list/application/tasks-repository.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Components\\Call_To_Action_Entry' => __DIR__ . '/../..' . '/src/task-list/domain/components/call-to-action-entry.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Components\\Copy_Set' => __DIR__ . '/../..' . '/src/task-list/domain/components/copy-set.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Endpoint\\Endpoint_Interface' => __DIR__ . '/../..' . '/src/task-list/domain/endpoint/endpoint-interface.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Endpoint\\Endpoint_List' => __DIR__ . '/../..' . '/src/task-list/domain/endpoint/endpoint-list.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Exceptions\\Complete_Hello_World_Task_Exception' => __DIR__ . '/../..' . '/src/task-list/domain/exceptions/complete-hello-world-task-exception.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Exceptions\\Complete_LLMS_Task_Exception' => __DIR__ . '/../..' . '/src/task-list/domain/exceptions/complete-llms-task-exception.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Exceptions\\Invalid_Post_Type_Tasks_Exception' => __DIR__ . '/../..' . '/src/task-list/domain/exceptions/invalid-post-type-tasks-exception.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Exceptions\\Invalid_Tasks_Exception' => __DIR__ . '/../..' . '/src/task-list/domain/exceptions/invalid-tasks-exception.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Exceptions\\Task_Not_Found_Exception' => __DIR__ . '/../..' . '/src/task-list/domain/exceptions/task-not-found-exception.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Tasks\\Abstract_Completeable_Task' => __DIR__ . '/../..' . '/src/task-list/domain/tasks/abstract-completeable-task.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Tasks\\Abstract_Post_Type_Task' => __DIR__ . '/../..' . '/src/task-list/domain/tasks/abstract-post-type-task.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Tasks\\Abstract_Task' => __DIR__ . '/../..' . '/src/task-list/domain/tasks/abstract-task.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Tasks\\Completeable_Task_Interface' => __DIR__ . '/../..' . '/src/task-list/domain/tasks/completeable-task-interface.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Tasks\\Post_Type_Task_Interface' => __DIR__ . '/../..' . '/src/task-list/domain/tasks/post-type-task-interface.php', + 'Yoast\\WP\\SEO\\Task_List\\Domain\\Tasks\\Task_Interface' => __DIR__ . '/../..' . '/src/task-list/domain/tasks/task-interface.php', + 'Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Endpoints\\Complete_Task_Endpoint' => __DIR__ . '/../..' . '/src/task-list/infrastructure/endpoints/complete-task-endpoint.php', + 'Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Endpoints\\Get_Tasks_Endpoint' => __DIR__ . '/../..' . '/src/task-list/infrastructure/endpoints/get-tasks-endpoint.php', + 'Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Register_Post_Type_Tasks_Integration' => __DIR__ . '/../..' . '/src/task-list/infrastructure/register-post-type-tasks-integration.php', + 'Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Tasks_Collectors\\Cached_Tasks_Collector' => __DIR__ . '/../..' . '/src/task-list/infrastructure/tasks-collectors/cached-tasks-collector.php', + 'Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Tasks_Collectors\\Tasks_Collector' => __DIR__ . '/../..' . '/src/task-list/infrastructure/tasks-collectors/tasks-collector.php', + 'Yoast\\WP\\SEO\\Task_List\\Infrastructure\\Tasks_Collectors\\Tasks_Collector_Interface' => __DIR__ . '/../..' . '/src/task-list/infrastructure/tasks-collectors/tasks-collector-interface.php', + 'Yoast\\WP\\SEO\\Task_List\\User_Interface\\Tasks\\Complete_Task_Route' => __DIR__ . '/../..' . '/src/task-list/user-interface/tasks/complete-task-route.php', + 'Yoast\\WP\\SEO\\Task_List\\User_Interface\\Tasks\\Get_Tasks_Route' => __DIR__ . '/../..' . '/src/task-list/user-interface/tasks/get-tasks-route.php', 'Yoast\\WP\\SEO\\User_Meta\\Application\\Additional_Contactmethods_Collector' => __DIR__ . '/../..' . '/src/user-meta/application/additional-contactmethods-collector.php', 'Yoast\\WP\\SEO\\User_Meta\\Application\\Cleanup_Service' => __DIR__ . '/../..' . '/src/user-meta/application/cleanup-service.php', 'Yoast\\WP\\SEO\\User_Meta\\Application\\Custom_Meta_Collector' => __DIR__ . '/../..' . '/src/user-meta/application/custom-meta-collector.php', @@ -1347,9 +1383,9 @@ public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit88e18481b877a4240af60ad16111d9f3::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit88e18481b877a4240af60ad16111d9f3::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit88e18481b877a4240af60ad16111d9f3::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInitae21fa458dac9ca3c112516ae205afa0::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitae21fa458dac9ca3c112516ae205afa0::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInitae21fa458dac9ca3c112516ae205afa0::$classMap; }, null, ClassLoader::class); } @@ -3,7 +3,7 @@ 'name' => 'yoast/wordpress-seo', 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => 'e80d8b349c85e13aaf50cb90dbad22700e728cd6', + 'reference' => '5558ae64bb7395516ce5f75e752defa64280fa15', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -22,7 +22,7 @@ 'yoast/wordpress-seo' => array( 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => 'e80d8b349c85e13aaf50cb90dbad22700e728cd6', + 'reference' => '5558ae64bb7395516ce5f75e752defa64280fa15', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -9,7 +9,7 @@ * @var int|null */ private $truncateAt; - public function __construct(int $truncateAt = null) + public function __construct(?int $truncateAt = null) { $this->truncateAt = $truncateAt; } @@ -74,5 +74,5 @@ * * @deprecated ClientInterface::getConfig will be removed in guzzlehttp/guzzle:8.0. */ - public function getConfig(string $option = null); + public function getConfig(?string $option = null); } @@ -49,7 +49,7 @@ * * @param array $config Client configuration settings. * - * @see \GuzzleHttp\RequestOptions for a list of available request options. + * @see RequestOptions for a list of available request options. */ public function __construct(array $config = []) { @@ -178,7 +178,7 @@ * * @deprecated Client::getConfig will be removed in guzzlehttp/guzzle:8.0. */ - public function getConfig(string $option = null) + public function getConfig(?string $option = null) { return $option === null ? $this->config : $this->config[$option] ?? null; } @@ -58,7 +58,7 @@ * @param string|null $path Clears cookies matching a domain and path * @param string|null $name Clears cookies matching a domain, path, and name */ - public function clear(string $domain = null, string $path = null, string $name = null) : void; + public function clear(?string $domain = null, ?string $path = null, ?string $name = null) : void; /** * Discard all sessions cookies. * @@ -86,7 +86,7 @@ return $cookie->toArray(); }, $this->getIterator()->getArrayCopy()); } - public function clear(string $domain = null, string $path = null, string $name = null) : void + public function clear(?string $domain = null, ?string $path = null, ?string $name = null) : void { if (!$domain) { $this->cookies = []; @@ -46,6 +46,10 @@ if (\is_numeric($value)) { $data[$search] = (int) $value; } + } elseif ($search === 'Secure' || $search === 'Discard' || $search === 'HttpOnly') { + if ($value) { + $data[$search] = \true; + } } else { $data[$search] = $value; } @@ -9,7 +9,7 @@ */ class BadResponseException extends \YoastSEO_Vendor\GuzzleHttp\Exception\RequestException { - public function __construct(string $message, \YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response, \Throwable $previous = null, array $handlerContext = []) + public function __construct(string $message, \YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response, ?\Throwable $previous = null, array $handlerContext = []) { parent::__construct($message, $request, $response, $previous, $handlerContext); } @@ -19,7 +19,7 @@ * @var array */ private $handlerContext; - public function __construct(string $message, \YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, \Throwable $previous = null, array $handlerContext = []) + public function __construct(string $message, \YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, ?\Throwable $previous = null, array $handlerContext = []) { parent::__construct($message, 0, $previous); $this->request = $request; @@ -7,7 +7,6 @@ use YoastSEO_Vendor\Psr\Http\Client\RequestExceptionInterface; use YoastSEO_Vendor\Psr\Http\Message\RequestInterface; use YoastSEO_Vendor\Psr\Http\Message\ResponseInterface; -use YoastSEO_Vendor\Psr\Http\Message\UriInterface; /** * HTTP Request exception */ @@ -25,7 +24,7 @@ * @var array */ private $handlerContext; - public function __construct(string $message, \YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response = null, \Throwable $previous = null, array $handlerContext = []) + public function __construct(string $message, \YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, ?\YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response = null, ?\Throwable $previous = null, array $handlerContext = []) { // Set the code of the exception if the response is set and not future. $code = $response ? $response->getStatusCode() : 0; @@ -50,7 +49,7 @@ * @param array $handlerContext Optional handler context * @param BodySummarizerInterface|null $bodySummarizer Optional body summarizer */ - public static function create(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response = null, \Throwable $previous = null, array $handlerContext = [], \YoastSEO_Vendor\GuzzleHttp\BodySummarizerInterface $bodySummarizer = null) : self + public static function create(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, ?\YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response = null, ?\Throwable $previous = null, array $handlerContext = [], ?\YoastSEO_Vendor\GuzzleHttp\BodySummarizerInterface $bodySummarizer = null) : self { if (!$response) { return new self('Error completing request', $request, null, $previous, $handlerContext); @@ -66,8 +65,7 @@ $label = 'Unsuccessful request'; $className = __CLASS__; } - $uri = $request->getUri(); - $uri = static::obfuscateUri($uri); + $uri = \YoastSEO_Vendor\GuzzleHttp\Psr7\Utils::redactUserInfo($request->getUri()); // Client Error: `GET /` resulted in a `404 Not Found` response: // <html> ... (truncated) $message = \sprintf('%s: `%s %s` resulted in a `%s %s` response', $label, $request->getMethod(), $uri->__toString(), $response->getStatusCode(), $response->getReasonPhrase()); @@ -78,17 +76,6 @@ return new $className($message, $request, $response, $previous, $handlerContext); } /** - * Obfuscates URI if there is a username and a password present - */ - private static function obfuscateUri(\YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri) : \YoastSEO_Vendor\Psr\Http\Message\UriInterface - { - $userInfo = $uri->getUserInfo(); - if (\false !== ($pos = \strpos($userInfo, ':'))) { - return $uri->withUserInfo(\substr($userInfo, 0, $pos), '***'); - } - return $uri; - } - /** * Get the request that caused the exception */ public function getRequest() : \YoastSEO_Vendor\Psr\Http\Message\RequestInterface @@ -47,7 +47,7 @@ * * The returned handler is not wrapped by any default middlewares. * - * @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface Returns the best handler for the given system. + * @return callable(\Psr\Http\Message\RequestInterface, array): Promise\PromiseInterface Returns the best handler for the given system. * * @throws \RuntimeException if no viable Handler is available. * @@ -11,6 +11,7 @@ use YoastSEO_Vendor\GuzzleHttp\TransferStats; use YoastSEO_Vendor\GuzzleHttp\Utils; use YoastSEO_Vendor\Psr\Http\Message\RequestInterface; +use YoastSEO_Vendor\Psr\Http\Message\UriInterface; /** * Creates curl resources from a request * @@ -40,6 +41,14 @@ } public function create(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, array $options) : \YoastSEO_Vendor\GuzzleHttp\Handler\EasyHandle { + $protocolVersion = $request->getProtocolVersion(); + if ('2' === $protocolVersion || '2.0' === $protocolVersion) { + if (!self::supportsHttp2()) { + throw new \YoastSEO_Vendor\GuzzleHttp\Exception\ConnectException('HTTP/2 is supported by the cURL handler, however libcurl is built without HTTP/2 support.', $request); + } + } elseif ('1.0' !== $protocolVersion && '1.1' !== $protocolVersion) { + throw new \YoastSEO_Vendor\GuzzleHttp\Exception\ConnectException(\sprintf('HTTP/%s is not supported by the cURL handler.', $protocolVersion), $request); + } if (isset($options['curl']['body_as_string'])) { $options['_body_as_string'] = $options['curl']['body_as_string']; unset($options['curl']['body_as_string']); @@ -61,12 +70,38 @@ \curl_setopt_array($easy->handle, $conf); return $easy; } + private static function supportsHttp2() : bool + { + static $supportsHttp2 = null; + if (null === $supportsHttp2) { + $supportsHttp2 = self::supportsTls12() && \defined('CURL_VERSION_HTTP2') && \CURL_VERSION_HTTP2 & \curl_version()['features']; + } + return $supportsHttp2; + } + private static function supportsTls12() : bool + { + static $supportsTls12 = null; + if (null === $supportsTls12) { + $supportsTls12 = \CURL_SSLVERSION_TLSv1_2 & \curl_version()['features']; + } + return $supportsTls12; + } + private static function supportsTls13() : bool + { + static $supportsTls13 = null; + if (null === $supportsTls13) { + $supportsTls13 = \defined('CURL_SSLVERSION_TLSv1_3') && \CURL_SSLVERSION_TLSv1_3 & \curl_version()['features']; + } + return $supportsTls13; + } public function release(\YoastSEO_Vendor\GuzzleHttp\Handler\EasyHandle $easy) : void { $resource = $easy->handle; unset($easy->handle); if (\count($this->handles) >= $this->maxHandles) { - \curl_close($resource); + if (\PHP_VERSION_ID < 80000) { + \curl_close($resource); + } } else { // Remove all callback functions as they can hold onto references // and are not cleaned up by curl_reset. Using curl_setopt_array @@ -118,7 +153,7 @@ { // Get error information and release the handle to the factory. $ctx = ['errno' => $easy->errno, 'error' => \curl_error($easy->handle), 'appconnect_time' => \curl_getinfo($easy->handle, \CURLINFO_APPCONNECT_TIME)] + \curl_getinfo($easy->handle); - $ctx[self::CURL_VERSION_STR] = \curl_version()['version']; + $ctx[self::CURL_VERSION_STR] = self::getCurlVersion(); $factory->release($easy); // Retry when nothing is present or when curl failed to rewind. if (empty($easy->options['_err_message']) && (!$easy->errno || $easy->errno == 65)) { @@ -126,6 +161,14 @@ } return self::createRejection($easy, $ctx); } + private static function getCurlVersion() : string + { + static $curlVersion = null; + if (null === $curlVersion) { + $curlVersion = \curl_version()['version']; + } + return $curlVersion; + } private static function createRejection(\YoastSEO_Vendor\GuzzleHttp\Handler\EasyHandle $easy, array $ctx) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface { static $connectionErrors = [\CURLE_OPERATION_TIMEOUTED => \true, \CURLE_COULDNT_RESOLVE_HOST => \true, \CURLE_COULDNT_CONNECT => \true, \CURLE_SSL_CONNECT_ERROR => \true, \CURLE_GOT_NOTHING => \true]; @@ -137,15 +180,32 @@ if ($easy->onHeadersException) { return \YoastSEO_Vendor\GuzzleHttp\Promise\Create::rejectionFor(new \YoastSEO_Vendor\GuzzleHttp\Exception\RequestException('An error was encountered during the on_headers event', $easy->request, $easy->response, $easy->onHeadersException, $ctx)); } - $message = \sprintf('cURL error %s: %s (%s)', $ctx['errno'], $ctx['error'], 'see https://curl.haxx.se/libcurl/c/libcurl-errors.html'); - $uriString = (string) $easy->request->getUri(); - if ($uriString !== '' && \false === \strpos($ctx['error'], $uriString)) { - $message .= \sprintf(' for %s', $uriString); + $uri = $easy->request->getUri(); + $sanitizedError = self::sanitizeCurlError($ctx['error'] ?? '', $uri); + $message = \sprintf('cURL error %s: %s (%s)', $ctx['errno'], $sanitizedError, 'see https://curl.haxx.se/libcurl/c/libcurl-errors.html'); + if ('' !== $sanitizedError) { + $redactedUriString = \YoastSEO_Vendor\GuzzleHttp\Psr7\Utils::redactUserInfo($uri)->__toString(); + if ($redactedUriString !== '' && \false === \strpos($sanitizedError, $redactedUriString)) { + $message .= \sprintf(' for %s', $redactedUriString); + } } // Create a connection exception if it was a specific error code. $error = isset($connectionErrors[$easy->errno]) ? new \YoastSEO_Vendor\GuzzleHttp\Exception\ConnectException($message, $easy->request, null, $ctx) : new \YoastSEO_Vendor\GuzzleHttp\Exception\RequestException($message, $easy->request, $easy->response, null, $ctx); return \YoastSEO_Vendor\GuzzleHttp\Promise\Create::rejectionFor($error); } + private static function sanitizeCurlError(string $error, \YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri) : string + { + if ('' === $error) { + return $error; + } + $baseUri = $uri->withQuery('')->withFragment(''); + $baseUriString = $baseUri->__toString(); + if ('' === $baseUriString) { + return $error; + } + $redactedUriString = \YoastSEO_Vendor\GuzzleHttp\Psr7\Utils::redactUserInfo($baseUri)->__toString(); + return \str_replace($baseUriString, $redactedUriString, $error); + } /** * @return array<int|string, mixed> */ @@ -156,10 +216,10 @@ $conf[\CURLOPT_PROTOCOLS] = \CURLPROTO_HTTP | \CURLPROTO_HTTPS; } $version = $easy->request->getProtocolVersion(); - if ($version == 1.1) { - $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_1; - } elseif ($version == 2.0) { + if ('2' === $version || '2.0' === $version) { $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_2_0; + } elseif ('1.1' === $version) { + $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_1; } else { $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_0; } @@ -285,8 +345,10 @@ // The empty string enables all available decoders and implicitly // sets a matching 'Accept-Encoding' header. $conf[\CURLOPT_ENCODING] = ''; - // But as the user did not specify any acceptable encodings we need - // to overwrite this implicit header with an empty one. + // But as the user did not specify any encoding preference, + // let's leave it up to server by preventing curl from sending + // the header, which will be interpreted as 'Accept-Encoding: *'. + // https://www.rfc-editor.org/rfc/rfc9110#field.accept-encoding $conf[\CURLOPT_HTTPHEADER][] = 'Accept-Encoding:'; } } @@ -343,23 +405,30 @@ } } if (isset($options['crypto_method'])) { - if (\STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT === $options['crypto_method']) { - if (!\defined('CURL_SSLVERSION_TLSv1_0')) { - throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.0 not supported by your version of cURL'); + $protocolVersion = $easy->request->getProtocolVersion(); + // If HTTP/2, upgrade TLS 1.0 and 1.1 to 1.2 + if ('2' === $protocolVersion || '2.0' === $protocolVersion) { + if (\STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT === $options['crypto_method'] || \STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT === $options['crypto_method'] || \STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT === $options['crypto_method']) { + $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_2; + } elseif (\defined('STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT') && \STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT === $options['crypto_method']) { + if (!self::supportsTls13()) { + throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.3 not supported by your version of cURL'); + } + $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_3; + } else { + throw new \InvalidArgumentException('Invalid crypto_method request option: unknown version provided'); } + } elseif (\STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT === $options['crypto_method']) { $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_0; } elseif (\STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT === $options['crypto_method']) { - if (!\defined('CURL_SSLVERSION_TLSv1_1')) { - throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.1 not supported by your version of cURL'); - } $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_1; } elseif (\STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT === $options['crypto_method']) { - if (!\defined('CURL_SSLVERSION_TLSv1_2')) { + if (!self::supportsTls12()) { throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.2 not supported by your version of cURL'); } $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_2; } elseif (\defined('STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT') && \STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT === $options['crypto_method']) { - if (!\defined('CURL_SSLVERSION_TLSv1_3')) { + if (!self::supportsTls13()) { throw new \InvalidArgumentException('Invalid crypto_method request option: TLS 1.3 not supported by your version of cURL'); } $conf[\CURLOPT_SSLVERSION] = \CURL_SSLVERSION_TLSv1_3; @@ -489,7 +558,9 @@ public function __destruct() { foreach ($this->handles as $id => $handle) { - \curl_close($handle); + if (\PHP_VERSION_ID < 80000) { + \curl_close($handle); + } unset($this->handles[$id]); } } @@ -2,6 +2,7 @@ namespace YoastSEO_Vendor\GuzzleHttp\Handler; +use Closure; use YoastSEO_Vendor\GuzzleHttp\Promise as P; use YoastSEO_Vendor\GuzzleHttp\Promise\Promise; use YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface; @@ -129,6 +130,8 @@ } } } + // Run curl_multi_exec in the queue to enable other async tasks to run + \YoastSEO_Vendor\GuzzleHttp\Promise\Utils::queue()->add(\Closure::fromCallable([$this, 'tickInQueue'])); // Step through the task queue which may add additional requests. \YoastSEO_Vendor\GuzzleHttp\Promise\Utils::queue()->run(); if ($this->active && \curl_multi_select($this->_mh, $this->selectTimeout) === -1) { @@ -137,10 +140,22 @@ \usleep(250); } while (\curl_multi_exec($this->_mh, $this->active) === \CURLM_CALL_MULTI_PERFORM) { + // Prevent busy looping for slow HTTP requests. + \curl_multi_select($this->_mh, $this->selectTimeout); } $this->processMessages(); } /** + * Runs \curl_multi_exec() inside the event loop, to prevent busy looping + */ + private function tickInQueue() : void + { + if (\curl_multi_exec($this->_mh, $this->active) === \CURLM_CALL_MULTI_PERFORM) { + \curl_multi_select($this->_mh, 0); + \YoastSEO_Vendor\GuzzleHttp\Promise\Utils::queue()->add(\Closure::fromCallable([$this, 'tickInQueue'])); + } + } + /** * Runs until all outstanding connections have completed. */ public function execute() : void @@ -184,7 +199,9 @@ $handle = $this->handles[$id]['easy']->handle; unset($this->delays[$id], $this->handles[$id]); \curl_multi_remove_handle($this->_mh, $handle); - \curl_close($handle); + if (\PHP_VERSION_ID < 80000) { + \curl_close($handle); + } return \true; } private function processMessages() : void @@ -46,20 +46,20 @@ * @param callable|null $onFulfilled Callback to invoke when the return value is fulfilled. * @param callable|null $onRejected Callback to invoke when the return value is rejected. */ - public static function createWithMiddleware(array $queue = null, callable $onFulfilled = null, callable $onRejected = null) : \YoastSEO_Vendor\GuzzleHttp\HandlerStack + public static function createWithMiddleware(?array $queue = null, ?callable $onFulfilled = null, ?callable $onRejected = null) : \YoastSEO_Vendor\GuzzleHttp\HandlerStack { return \YoastSEO_Vendor\GuzzleHttp\HandlerStack::create(new self($queue, $onFulfilled, $onRejected)); } /** * The passed in value must be an array of - * {@see \Psr\Http\Message\ResponseInterface} objects, Exceptions, + * {@see ResponseInterface} objects, Exceptions, * callables, or Promises. * * @param array<int, mixed>|null $queue The parameters to be passed to the append function, as an indexed array. * @param callable|null $onFulfilled Callback to invoke when the return value is fulfilled. * @param callable|null $onRejected Callback to invoke when the return value is rejected. */ - public function __construct(array $queue = null, callable $onFulfilled = null, callable $onRejected = null) + public function __construct(?array $queue = null, ?callable $onFulfilled = null, ?callable $onRejected = null) { $this->onFulfilled = $onFulfilled; $this->onRejected = $onRejected; @@ -163,7 +163,7 @@ /** * @param mixed $reason Promise or reason. */ - private function invokeStats(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, array $options, \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response = null, $reason = null) : void + private function invokeStats(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, array $options, ?\YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response = null, $reason = null) : void { if (isset($options['on_stats'])) { $transferTime = $options['transfer_time'] ?? 0; @@ -16,10 +16,10 @@ * Sends synchronous requests to a specific handler while sending all other * requests to another handler. * - * @param callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface $default Handler used for normal responses - * @param callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface $sync Handler used for synchronous responses. + * @param callable(RequestInterface, array): PromiseInterface $default Handler used for normal responses + * @param callable(RequestInterface, array): PromiseInterface $sync Handler used for synchronous responses. * - * @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface Returns the composed handler. + * @return callable(RequestInterface, array): PromiseInterface Returns the composed handler. */ public static function wrapSync(callable $default, callable $sync) : callable { @@ -35,10 +35,10 @@ * performance benefits of curl while still supporting true streaming * through the StreamHandler. * - * @param callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface $default Handler used for non-streaming responses - * @param callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface $streaming Handler used for streaming responses + * @param callable(RequestInterface, array): PromiseInterface $default Handler used for non-streaming responses + * @param callable(RequestInterface, array): PromiseInterface $streaming Handler used for streaming responses * - * @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface Returns the composed handler. + * @return callable(RequestInterface, array): PromiseInterface Returns the composed handler. */ public static function wrapStreaming(callable $default, callable $streaming) : callable { @@ -37,13 +37,17 @@ if (isset($options['delay'])) { \usleep($options['delay'] * 1000); } + $protocolVersion = $request->getProtocolVersion(); + if ('1.0' !== $protocolVersion && '1.1' !== $protocolVersion) { + throw new \YoastSEO_Vendor\GuzzleHttp\Exception\ConnectException(\sprintf('HTTP/%s is not supported by the stream handler.', $protocolVersion), $request); + } $startTime = isset($options['on_stats']) ? \YoastSEO_Vendor\GuzzleHttp\Utils::currentTime() : null; try { // Does not support the expect header. $request = $request->withoutHeader('Expect'); // Append a content-length header if body size is zero to match - // cURL's behavior. - if (0 === $request->getBody()->getSize()) { + // the behavior of `CurlHandler` + if ((0 === \strcasecmp('PUT', $request->getMethod()) || 0 === \strcasecmp('POST', $request->getMethod())) && 0 === $request->getBody()->getSize()) { $request = $request->withHeader('Content-Length', '0'); } return $this->createResponse($request, $options, $this->createStream($request, $options), $startTime); @@ -62,7 +66,7 @@ return \YoastSEO_Vendor\GuzzleHttp\Promise\Create::rejectionFor($e); } } - private function invokeStats(array $options, \YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, ?float $startTime, \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response = null, \Throwable $error = null) : void + private function invokeStats(array $options, \YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, ?float $startTime, ?\YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response = null, ?\Throwable $error = null) : void { if (isset($options['on_stats'])) { $stats = new \YoastSEO_Vendor\GuzzleHttp\TransferStats($request, $response, \YoastSEO_Vendor\GuzzleHttp\Utils::currentTime() - $startTime, $error, []); @@ -210,7 +214,7 @@ } // HTTP/1.1 streams using the PHP stream wrapper require a // Connection: close header - if ($request->getProtocolVersion() == '1.1' && !$request->hasHeader('Connection')) { + if ($request->getProtocolVersion() === '1.1' && !$request->hasHeader('Connection')) { $request = $request->withHeader('Connection', 'close'); } // Ensure SSL is verified by default @@ -244,8 +248,13 @@ $contextResource = $this->createResource(static function () use($context, $params) { return \stream_context_create($context, $params); }); - return $this->createResource(function () use($uri, &$http_response_header, $contextResource, $context, $options, $request) { + return $this->createResource(function () use($uri, $contextResource, $context, $options, $request) { $resource = @\fopen((string) $uri, 'r', \false, $contextResource); + // See https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_http_response_header_predefined_variable + if (\function_exists('YoastSEO_Vendor\\http_get_last_response_headers')) { + /** @var array|null */ + $http_response_header = \YoastSEO_Vendor\http_get_last_response_headers(); + } $this->lastHeaders = $http_response_header ?? []; if (\false === $resource) { throw new \YoastSEO_Vendor\GuzzleHttp\Exception\ConnectException(\sprintf('Connection refused for URI %s', $uri), $request, null, $context); @@ -40,7 +40,7 @@ * handler is provided, the best handler for your * system will be utilized. */ - public static function create(callable $handler = null) : self + public static function create(?callable $handler = null) : self { $stack = new self($handler ?: \YoastSEO_Vendor\GuzzleHttp\Utils::chooseHandler()); $stack->push(\YoastSEO_Vendor\GuzzleHttp\Middleware::httpErrors(), 'http_errors'); @@ -52,7 +52,7 @@ /** * @param (callable(RequestInterface, array): PromiseInterface)|null $handler Underlying HTTP handler. */ - public function __construct(callable $handler = null) + public function __construct(?callable $handler = null) { $this->handler = $handler; } @@ -115,7 +115,7 @@ * @param callable(callable): callable $middleware Middleware function * @param string $name Name to register for this middleware. */ - public function unshift(callable $middleware, string $name = null) : void + public function unshift(callable $middleware, ?string $name = null) : void { \array_unshift($this->stack, [$middleware, $name]); $this->cached = null; @@ -13,5 +13,5 @@ * @param ResponseInterface|null $response Response that was received * @param \Throwable|null $error Exception that was received */ - public function format(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response = null, \Throwable $error = null) : string; + public function format(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, ?\YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response = null, ?\Throwable $error = null) : string; } @@ -64,7 +64,7 @@ * @param ResponseInterface|null $response Response that was received * @param \Throwable|null $error Exception that was received */ - public function format(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response = null, \Throwable $error = null) : string + public function format(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, ?\YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response = null, ?\Throwable $error = null) : string { $cache = []; /** @var string */ @@ -48,7 +48,7 @@ * * @return callable(callable): callable Returns a function that accepts the next handler. */ - public static function httpErrors(\YoastSEO_Vendor\GuzzleHttp\BodySummarizerInterface $bodySummarizer = null) : callable + public static function httpErrors(?\YoastSEO_Vendor\GuzzleHttp\BodySummarizerInterface $bodySummarizer = null) : callable { return static function (callable $handler) use($bodySummarizer) : callable { return static function ($request, array $options) use($handler, $bodySummarizer) { @@ -104,7 +104,7 @@ * * @return callable Returns a function that accepts the next handler. */ - public static function tap(callable $before = null, callable $after = null) : callable + public static function tap(?callable $before = null, ?callable $after = null) : callable { return static function (callable $handler) use($before, $after) : callable { return static function (\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, array $options) use($handler, $before, $after) { @@ -145,7 +145,7 @@ * * @return callable Returns a function that accepts the next handler. */ - public static function retry(callable $decider, callable $delay = null) : callable + public static function retry(callable $decider, ?callable $delay = null) : callable { return static function (callable $handler) use($decider, $delay) : RetryMiddleware { return new \YoastSEO_Vendor\GuzzleHttp\RetryMiddleware($decider, $handler, $delay); @@ -155,12 +155,12 @@ * Middleware that logs requests, responses, and errors using a message * formatter. * - * @phpstan-param \Psr\Log\LogLevel::* $logLevel Level at which to log requests. - * * @param LoggerInterface $logger Logs messages. * @param MessageFormatterInterface|MessageFormatter $formatter Formatter used to create message strings. * @param string $logLevel Level at which to log requests. * + * @phpstan-param \Psr\Log\LogLevel::* $logLevel Level at which to log requests. + * * @return callable Returns a function that accepts the next handler. */ public static function log(\YoastSEO_Vendor\Psr\Log\LoggerInterface $logger, $formatter, string $logLevel = 'info') : callable @@ -79,7 +79,7 @@ * @param ClientInterface $client Client used to send the requests * @param array|\Iterator $requests Requests to send concurrently. * @param array $options Passes through the options available in - * {@see \GuzzleHttp\Pool::__construct} + * {@see Pool::__construct} * * @return array Returns an array containing the response or an exception * in the same order that the requests were sent. @@ -62,8 +62,8 @@ return; } $expect = $options['expect'] ?? null; - // Return if disabled or if you're not using HTTP/1.1 or HTTP/2.0 - if ($expect === \false || $request->getProtocolVersion() < 1.1) { + // Return if disabled or using HTTP/1.0 + if ($expect === \false || $request->getProtocolVersion() === '1.0') { return; } // The expect header is unconditionally enabled @@ -57,7 +57,7 @@ * Specifies whether or not cookies are used in a request or what cookie * jar to use or what cookies to send. This option only works if your * handler has the `cookie` middleware. Valid values are `false` and - * an instance of {@see \GuzzleHttp\Cookie\CookieJarInterface}. + * an instance of {@see Cookie\CookieJarInterface}. */ public const COOKIES = 'cookies'; /** @@ -36,7 +36,7 @@ * and returns the number of * milliseconds to delay. */ - public function __construct(callable $decider, callable $nextHandler, callable $delay = null) + public function __construct(callable $decider, callable $nextHandler, ?callable $delay = null) { $this->decider = $decider; $this->nextHandler = $nextHandler; @@ -83,7 +83,7 @@ return $this->doRetry($req, $options); }; } - private function doRetry(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, array $options, \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface + private function doRetry(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, array $options, ?\YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface { $options['delay'] = ($this->delay)(++$options['retries'], $response, $request); return $this($request, $options); @@ -38,7 +38,7 @@ * @param mixed $handlerErrorData Handler error data. * @param array $handlerStats Handler specific stats. */ - public function __construct(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response = null, float $transferTime = null, $handlerErrorData = null, array $handlerStats = []) + public function __construct(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, ?\YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response = null, ?float $transferTime = null, $handlerErrorData = null, array $handlerStats = []) { $this->request = $request; $this->response = $response; @@ -71,14 +71,14 @@ * * The returned handler is not wrapped by any default middlewares. * - * @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface Returns the best handler for the given system. + * @return callable(\Psr\Http\Message\RequestInterface, array): Promise\PromiseInterface Returns the best handler for the given system. * * @throws \RuntimeException if no viable Handler is available. */ public static function chooseHandler() : callable { $handler = null; - if (\defined('CURLOPT_CUSTOMREQUEST')) { + if (\defined('CURLOPT_CUSTOMREQUEST') && \function_exists('curl_version') && \version_compare(\curl_version()['version'], '7.21.2') >= 0) { if (\function_exists('curl_multi_exec') && \function_exists('curl_exec')) { $handler = \YoastSEO_Vendor\GuzzleHttp\Handler\Proxy::wrapSync(new \YoastSEO_Vendor\GuzzleHttp\Handler\CurlMultiHandler(), new \YoastSEO_Vendor\GuzzleHttp\Handler\CurlHandler()); } elseif (\function_exists('curl_exec')) { @@ -76,7 +76,7 @@ { return new self($generatorFn); } - public function then(callable $onFulfilled = null, callable $onRejected = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface + public function then(?callable $onFulfilled = null, ?callable $onRejected = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface { return $this->result->then($onFulfilled, $onRejected); } @@ -20,7 +20,7 @@ * * @param mixed $iterable Iterator or array to iterate over. */ - public static function of($iterable, callable $onFulfilled = null, callable $onRejected = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface + public static function of($iterable, ?callable $onFulfilled = null, ?callable $onRejected = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface { return (new \YoastSEO_Vendor\GuzzleHttp\Promise\EachPromise($iterable, ['fulfilled' => $onFulfilled, 'rejected' => $onRejected]))->promise(); } @@ -35,7 +35,7 @@ * @param mixed $iterable * @param int|callable $concurrency */ - public static function ofLimit($iterable, $concurrency, callable $onFulfilled = null, callable $onRejected = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface + public static function ofLimit($iterable, $concurrency, ?callable $onFulfilled = null, ?callable $onRejected = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface { return (new \YoastSEO_Vendor\GuzzleHttp\Promise\EachPromise($iterable, ['fulfilled' => $onFulfilled, 'rejected' => $onRejected, 'concurrency' => $concurrency]))->promise(); } @@ -47,7 +47,7 @@ * @param mixed $iterable * @param int|callable $concurrency */ - public static function ofLimitAll($iterable, $concurrency, callable $onFulfilled = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface + public static function ofLimitAll($iterable, $concurrency, ?callable $onFulfilled = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface { return self::ofLimit($iterable, $concurrency, $onFulfilled, function ($reason, $idx, \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface $aggregate) : void { $aggregate->reject($reason); @@ -24,7 +24,7 @@ } $this->value = $value; } - public function then(callable $onFulfilled = null, callable $onRejected = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface + public function then(?callable $onFulfilled = null, ?callable $onRejected = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface { // Return itself if there is no onFulfilled function. if (!$onFulfilled) { @@ -24,7 +24,7 @@ * @param callable $onFulfilled Invoked when the promise fulfills. * @param callable $onRejected Invoked when the promise is rejected. */ - public function then(callable $onFulfilled = null, callable $onRejected = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface; + public function then(?callable $onFulfilled = null, ?callable $onRejected = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface; /** * Appends a rejection handler callback to the promise, and returns a new * promise resolving to the return value of the callback if it is called, @@ -22,12 +22,12 @@ * @param callable $waitFn Fn that when invoked resolves the promise. * @param callable $cancelFn Fn that when invoked cancels the promise. */ - public function __construct(callable $waitFn = null, callable $cancelFn = null) + public function __construct(?callable $waitFn = null, ?callable $cancelFn = null) { $this->waitFn = $waitFn; $this->cancelFn = $cancelFn; } - public function then(callable $onFulfilled = null, callable $onRejected = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface + public function then(?callable $onFulfilled = null, ?callable $onRejected = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface { if ($this->state === self::PENDING) { $p = new \YoastSEO_Vendor\GuzzleHttp\Promise\Promise(null, [$this, 'cancel']); @@ -24,7 +24,7 @@ } $this->reason = $reason; } - public function then(callable $onFulfilled = null, callable $onRejected = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface + public function then(?callable $onFulfilled = null, ?callable $onRejected = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface { // If there's no onRejected callback then just return self. if (!$onRejected) { @@ -16,7 +16,7 @@ * @param mixed $reason Rejection reason. * @param string|null $description Optional description. */ - public function __construct($reason, string $description = null) + public function __construct($reason, ?string $description = null) { $this->reason = $reason; $message = 'The promise was rejected'; @@ -20,7 +20,7 @@ * * @param TaskQueueInterface|null $assign Optionally specify a new queue instance. */ - public static function queue(\YoastSEO_Vendor\GuzzleHttp\Promise\TaskQueueInterface $assign = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\TaskQueueInterface + public static function queue(?\YoastSEO_Vendor\GuzzleHttp\Promise\TaskQueueInterface $assign = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\TaskQueueInterface { static $queue; if ($assign) { @@ -127,7 +127,9 @@ $promise = \YoastSEO_Vendor\GuzzleHttp\Promise\Each::of($promises, function ($value, $idx) use(&$results) : void { $results[$idx] = $value; }, function ($reason, $idx, \YoastSEO_Vendor\GuzzleHttp\Promise\Promise $aggregate) : void { - $aggregate->reject($reason); + if (\YoastSEO_Vendor\GuzzleHttp\Promise\Is::pending($aggregate)) { + $aggregate->reject($reason); + } })->then(function () use(&$results) { \ksort($results); return $results; @@ -25,7 +25,7 @@ * @param StreamInterface $stream Stream to cache. The cursor is assumed to be at the beginning of the stream. * @param StreamInterface $target Optionally specify where data is cached */ - public function __construct(\YoastSEO_Vendor\Psr\Http\Message\StreamInterface $stream, \YoastSEO_Vendor\Psr\Http\Message\StreamInterface $target = null) + public function __construct(\YoastSEO_Vendor\Psr\Http\Message\StreamInterface $stream, ?\YoastSEO_Vendor\Psr\Http\Message\StreamInterface $target = null) { $this->remoteStream = $stream; $this->stream = $target ?: new \YoastSEO_Vendor\GuzzleHttp\Psr7\Stream(\YoastSEO_Vendor\GuzzleHttp\Psr7\Utils::tryFopen('php://temp', 'r+')); @@ -23,7 +23,7 @@ */ final class HttpFactory implements \YoastSEO_Vendor\Psr\Http\Message\RequestFactoryInterface, \YoastSEO_Vendor\Psr\Http\Message\ResponseFactoryInterface, \YoastSEO_Vendor\Psr\Http\Message\ServerRequestFactoryInterface, \YoastSEO_Vendor\Psr\Http\Message\StreamFactoryInterface, \YoastSEO_Vendor\Psr\Http\Message\UploadedFileFactoryInterface, \YoastSEO_Vendor\Psr\Http\Message\UriFactoryInterface { - public function createUploadedFile(\YoastSEO_Vendor\Psr\Http\Message\StreamInterface $stream, int $size = null, int $error = \UPLOAD_ERR_OK, string $clientFilename = null, string $clientMediaType = null) : \YoastSEO_Vendor\Psr\Http\Message\UploadedFileInterface + public function createUploadedFile(\YoastSEO_Vendor\Psr\Http\Message\StreamInterface $stream, ?int $size = null, int $error = \UPLOAD_ERR_OK, ?string $clientFilename = null, ?string $clientMediaType = null) : \YoastSEO_Vendor\Psr\Http\Message\UploadedFileInterface { if ($size === null) { $size = $stream->getSize(); @@ -138,9 +138,6 @@ if (!\is_array($value)) { return $this->trimAndValidateHeaderValues([$value]); } - if (\count($value) === 0) { - throw new \InvalidArgumentException('Header value can not be an empty array.'); - } return $this->trimAndValidateHeaderValues($value); } /** @@ -27,7 +27,7 @@ * * @throws \InvalidArgumentException */ - public function __construct(array $elements = [], string $boundary = null) + public function __construct(array $elements = [], ?string $boundary = null) { $this->boundary = $boundary ?: \bin2hex(\random_bytes(20)); $this->stream = $this->createStream($elements); @@ -57,12 +57,15 @@ * string. This function does not modify the provided keys when an array is * encountered (like `http_build_query()` would). * - * @param array $params Query string parameters. - * @param int|false $encoding Set to false to not encode, PHP_QUERY_RFC3986 - * to encode using RFC3986, or PHP_QUERY_RFC1738 - * to encode using RFC1738. + * @param array $params Query string parameters. + * @param int|false $encoding Set to false to not encode, + * PHP_QUERY_RFC3986 to encode using + * RFC3986, or PHP_QUERY_RFC1738 to + * encode using RFC1738. + * @param bool $treatBoolsAsInts Set to true to encode as 0/1, and + * false as false/true. */ - public static function build(array $params, $encoding = \PHP_QUERY_RFC3986) : string + public static function build(array $params, $encoding = \PHP_QUERY_RFC3986, bool $treatBoolsAsInts = \true) : string { if (!$params) { return ''; @@ -78,12 +81,17 @@ } else { throw new \InvalidArgumentException('Invalid type'); } + $castBool = $treatBoolsAsInts ? static function ($v) { + return (int) $v; + } : static function ($v) { + return $v ? 'true' : 'false'; + }; $qs = ''; foreach ($params as $k => $v) { $k = $encoder((string) $k); if (!\is_array($v)) { $qs .= $k; - $v = \is_bool($v) ? (int) $v : $v; + $v = \is_bool($v) ? $castBool($v) : $v; if ($v !== null) { $qs .= '=' . $encoder((string) $v); } @@ -91,7 +99,7 @@ } else { foreach ($v as $vv) { $qs .= $k; - $vv = \is_bool($vv) ? (int) $vv : $vv; + $vv = \is_bool($vv) ? $castBool($vv) : $vv; if ($vv !== null) { $qs .= '=' . $encoder((string) $vv); } @@ -24,7 +24,7 @@ * @param string $version Protocol version * @param string|null $reason Reason phrase (when empty a default will be used based on the status code) */ - public function __construct(int $status = 200, array $headers = [], $body = null, string $version = '1.1', string $reason = null) + public function __construct(int $status = 200, array $headers = [], $body = null, string $version = '1.1', ?string $reason = null) { $this->assertStatusCodeRange($status); $this->statusCode = $status; @@ -56,7 +56,7 @@ \stream_wrapper_register('guzzle', __CLASS__); } } - public function stream_open(string $path, string $mode, int $options, string &$opened_path = null) : bool + public function stream_open(string $path, string $mode, int $options, ?string &$opened_path = null) : bool { $options = \stream_context_get_options($this->context); if (!isset($options['guzzle']['stream'])) { @@ -111,10 +111,13 @@ * ctime: int, * blksize: int, * blocks: int - * } + * }|false */ - public function stream_stat() : array + public function stream_stat() { + if ($this->stream->getSize() === null) { + return \false; + } static $modeMap = ['r' => 33060, 'rb' => 33060, 'r+' => 33206, 'w' => 33188, 'wb' => 33188]; return ['dev' => 0, 'ino' => 0, 'mode' => $modeMap[$this->mode], 'nlink' => 0, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => $this->stream->getSize() ?: 0, 'atime' => 0, 'mtime' => 0, 'ctime' => 0, 'blksize' => 0, 'blocks' => 0]; } @@ -9,7 +9,7 @@ use RuntimeException; class UploadedFile implements \YoastSEO_Vendor\Psr\Http\Message\UploadedFileInterface { - private const ERRORS = [\UPLOAD_ERR_OK, \UPLOAD_ERR_INI_SIZE, \UPLOAD_ERR_FORM_SIZE, \UPLOAD_ERR_PARTIAL, \UPLOAD_ERR_NO_FILE, \UPLOAD_ERR_NO_TMP_DIR, \UPLOAD_ERR_CANT_WRITE, \UPLOAD_ERR_EXTENSION]; + private const ERROR_MAP = [\UPLOAD_ERR_OK => 'UPLOAD_ERR_OK', \UPLOAD_ERR_INI_SIZE => 'UPLOAD_ERR_INI_SIZE', \UPLOAD_ERR_FORM_SIZE => 'UPLOAD_ERR_FORM_SIZE', \UPLOAD_ERR_PARTIAL => 'UPLOAD_ERR_PARTIAL', \UPLOAD_ERR_NO_FILE => 'UPLOAD_ERR_NO_FILE', \UPLOAD_ERR_NO_TMP_DIR => 'UPLOAD_ERR_NO_TMP_DIR', \UPLOAD_ERR_CANT_WRITE => 'UPLOAD_ERR_CANT_WRITE', \UPLOAD_ERR_EXTENSION => 'UPLOAD_ERR_EXTENSION']; /** * @var string|null */ @@ -41,7 +41,7 @@ /** * @param StreamInterface|string|resource $streamOrFile */ - public function __construct($streamOrFile, ?int $size, int $errorStatus, string $clientFilename = null, string $clientMediaType = null) + public function __construct($streamOrFile, ?int $size, int $errorStatus, ?string $clientFilename = null, ?string $clientMediaType = null) { $this->setError($errorStatus); $this->size = $size; @@ -75,7 +75,7 @@ */ private function setError(int $error) : void { - if (\false === \in_array($error, \YoastSEO_Vendor\GuzzleHttp\Psr7\UploadedFile::ERRORS, \true)) { + if (!isset(\YoastSEO_Vendor\GuzzleHttp\Psr7\UploadedFile::ERROR_MAP[$error])) { throw new \InvalidArgumentException('Invalid error status for UploadedFile'); } $this->error = $error; @@ -101,7 +101,7 @@ private function validateActive() : void { if (\false === $this->isOk()) { - throw new \RuntimeException('Cannot retrieve stream due to upload error'); + throw new \RuntimeException(\sprintf('Cannot retrieve stream due to upload error (%s)', self::ERROR_MAP[$this->error])); } if ($this->isMoved()) { throw new \RuntimeException('Cannot retrieve stream after it has already been moved'); @@ -80,7 +80,7 @@ { // If IPv6 $prefix = ''; - if (\preg_match('%^(.*://\\[[0-9:a-f]+\\])(.*?)$%', $url, $matches)) { + if (\preg_match('%^(.*://\\[[0-9:a-fA-F]+\\])(.*?)$%', $url, $matches)) { /** @var array{0:string, 1:string, 2:string} $matches */ $prefix = $matches[1]; $url = $matches[2]; @@ -216,7 +216,7 @@ * * @see https://datatracker.ietf.org/doc/html/rfc3986#section-4.4 */ - public static function isSameDocumentReference(\YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri, \YoastSEO_Vendor\Psr\Http\Message\UriInterface $base = null) : bool + public static function isSameDocumentReference(\YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri, ?\YoastSEO_Vendor\Psr\Http\Message\UriInterface $base = null) : bool { if ($base !== null) { $uri = \YoastSEO_Vendor\GuzzleHttp\Psr7\UriResolver::resolve($base, $uri); @@ -185,7 +185,7 @@ * @param StreamInterface $stream Stream to read from * @param int|null $maxLength Maximum buffer length */ - public static function readLine(\YoastSEO_Vendor\Psr\Http\Message\StreamInterface $stream, int $maxLength = null) : string + public static function readLine(\YoastSEO_Vendor\Psr\Http\Message\StreamInterface $stream, ?int $maxLength = null) : string { $buffer = ''; $size = 0; @@ -202,6 +202,17 @@ return $buffer; } /** + * Redact the password in the user info part of a URI. + */ + public static function redactUserInfo(\YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri) : \YoastSEO_Vendor\Psr\Http\Message\UriInterface + { + $userInfo = $uri->getUserInfo(); + if (\false !== ($pos = \strpos($userInfo, ':'))) { + return $uri->withUserInfo(\substr($userInfo, 0, $pos), '***'); + } + return $uri; + } + /** * Create a new stream based on the input type. * * Options is an associative array that can contain the following keys: @@ -312,7 +323,7 @@ } \restore_error_handler(); if ($ex) { - /** @var $ex \RuntimeException */ + /** @var \RuntimeException $ex */ throw $ex; } return $handle; @@ -346,7 +357,7 @@ } \restore_error_handler(); if ($ex) { - /** @var $ex \RuntimeException */ + /** @var \RuntimeException $ex */ throw $ex; } return $contents; @@ -17,6 +17,7 @@ use YoastSEO_Vendor\GuzzleHttp\Client as HttpClient; use YoastSEO_Vendor\GuzzleHttp\ClientInterface as HttpClientInterface; use YoastSEO_Vendor\GuzzleHttp\Exception\BadResponseException; +use YoastSEO_Vendor\GuzzleHttp\Exception\GuzzleException; use InvalidArgumentException; use YoastSEO_Vendor\League\OAuth2\Client\Grant\AbstractGrant; use YoastSEO_Vendor\League\OAuth2\Client\Grant\GrantFactory; @@ -347,6 +348,7 @@ * * @param array $options * @return array Authorization parameters + * @throws InvalidArgumentException */ protected function getAuthorizationParameters(array $options) { @@ -398,6 +400,7 @@ * * @param array $options * @return string Authorization URL + * @throws InvalidArgumentException */ public function getAuthorizationUrl(array $options = []) { @@ -412,8 +415,9 @@ * @param array $options * @param callable|null $redirectHandler * @return mixed + * @throws InvalidArgumentException */ - public function authorize(array $options = [], callable $redirectHandler = null) + public function authorize(array $options = [], ?callable $redirectHandler = null) { $url = $this->getAuthorizationUrl($options); if ($redirectHandler) { @@ -516,12 +520,18 @@ * * @param mixed $grant * @param array<string, mixed> $options - * @throws IdentityProviderException * @return AccessTokenInterface + * @throws IdentityProviderException + * @throws UnexpectedValueException + * @throws GuzzleException */ public function getAccessToken($grant, array $options = []) { $grant = $this->verifyGrant($grant); + if (isset($options['scope']) && \is_array($options['scope'])) { + $separator = $this->getScopeSeparator(); + $options['scope'] = \implode($separator, $options['scope']); + } $params = ['client_id' => $this->clientId, 'client_secret' => $this->clientSecret, 'redirect_uri' => $this->redirectUri]; if (!empty($this->pkceCode)) { $params['code_verifier'] = $this->pkceCode; @@ -585,6 +595,7 @@ * * @param RequestInterface $request * @return ResponseInterface + * @throws GuzzleException */ public function getResponse(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request) { @@ -594,8 +605,10 @@ * Sends a request and returns the parsed response. * * @param RequestInterface $request - * @throws IdentityProviderException * @return mixed + * @throws IdentityProviderException + * @throws UnexpectedValueException + * @throws GuzzleException */ public function getParsedResponse(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request) { @@ -631,7 +644,7 @@ */ protected function getContentType(\YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response) { - return \join(';', (array) $response->getHeader('content-type')); + return \implode(';', $response->getHeader('content-type')); } /** * Parses the response according to its content-type header. @@ -678,7 +691,7 @@ * Custom mapping of expiration, etc should be done here. Always call the * parent method when overloading this method. * - * @param mixed $result + * @param array<string, mixed> $result * @return array */ protected function prepareAccessTokenResponse(array $result) @@ -716,6 +729,9 @@ * * @param AccessToken $token * @return ResourceOwnerInterface + * @throws IdentityProviderException + * @throws UnexpectedValueException + * @throws GuzzleException */ public function getResourceOwner(\YoastSEO_Vendor\League\OAuth2\Client\Token\AccessToken $token) { @@ -727,6 +743,9 @@ * * @param AccessToken $token * @return mixed + * @throws IdentityProviderException + * @throws UnexpectedValueException + * @throws GuzzleException */ protected function fetchResourceOwnerDetails(\YoastSEO_Vendor\League\OAuth2\Client\Token\AccessToken $token) { @@ -21,7 +21,7 @@ * * @link http://tools.ietf.org/html/rfc6749#section-1.4 Access Token (RFC 6749, §1.4) */ -class AccessToken implements \YoastSEO_Vendor\League\OAuth2\Client\Token\AccessTokenInterface, \YoastSEO_Vendor\League\OAuth2\Client\Token\ResourceOwnerAccessTokenInterface +class AccessToken implements \YoastSEO_Vendor\League\OAuth2\Client\Token\AccessTokenInterface, \YoastSEO_Vendor\League\OAuth2\Client\Token\ResourceOwnerAccessTokenInterface, \YoastSEO_Vendor\League\OAuth2\Client\Token\SettableRefreshTokenInterface { /** * @var string @@ -103,7 +103,7 @@ } elseif (!empty($options['expires'])) { // Some providers supply the seconds until expiration rather than // the exact timestamp. Take a best guess at which we received. - $expires = $options['expires']; + $expires = (int) $options['expires']; if (!$this->isExpirationTimestamp($expires)) { $expires += $this->getTimeNow(); } @@ -145,6 +145,13 @@ /** * @inheritdoc */ + public function setRefreshToken($refreshToken) + { + $this->refreshToken = $refreshToken; + } + /** + * @inheritdoc + */ public function getExpires() { return $this->expires; @@ -165,7 +172,7 @@ if (empty($expires)) { throw new \RuntimeException('"expires" is not set on the token'); } - return $expires < \time(); + return $expires < $this->getTimeNow(); } /** * @inheritdoc Only in /home/deploy/wp-safety.org/data/plugin-versions/wordpress-seo/26.6/vendor_prefixed/league/oauth2-client/src/Token: SettableRefreshTokenInterface.php @@ -15,14 +15,14 @@ * * @param StreamInterface $stream Underlying stream representing the * uploaded file content. - * @param int $size in bytes + * @param int|null $size in bytes * @param int $error PHP file upload error - * @param string $clientFilename Filename as provided by the client, if any. - * @param string $clientMediaType Media type as provided by the client, if any. + * @param string|null $clientFilename Filename as provided by the client, if any. + * @param string|null $clientMediaType Media type as provided by the client, if any. * * @return UploadedFileInterface * * @throws \InvalidArgumentException If the file resource is not readable. */ - public function createUploadedFile(\YoastSEO_Vendor\Psr\Http\Message\StreamInterface $stream, int $size = null, int $error = \UPLOAD_ERR_OK, string $clientFilename = null, string $clientMediaType = null) : \YoastSEO_Vendor\Psr\Http\Message\UploadedFileInterface; + public function createUploadedFile(\YoastSEO_Vendor\Psr\Http\Message\StreamInterface $stream, ?int $size = null, int $error = \UPLOAD_ERR_OK, ?string $clientFilename = null, ?string $clientMediaType = null) : \YoastSEO_Vendor\Psr\Http\Message\UploadedFileInterface; } @@ -15,7 +15,7 @@ * {@internal Nobody should be able to overrule the real version number as this can cause * serious issues with the options, so no if ( ! defined() ).}} */ -define( 'WPSEO_VERSION', '26.5' ); +define( 'WPSEO_VERSION', '26.6' ); if ( ! defined( 'WPSEO_PATH' ) ) { @@ -8,7 +8,7 @@ * * @wordpress-plugin * Plugin Name: Yoast SEO - * Version: 26.5 + * Version: 26.6 * Plugin URI: https://yoa.st/1uj * Description: The first true all-in-one SEO solution for WordPress, including on-page content analysis, XML sitemaps and much more. * Author: Team Yoast @@ -20,7 +20,7 @@ * Requires PHP: 7.4 * * WC requires at least: 7.1 - * WC tested up to: 10.3 + * WC tested up to: 10.4 * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by
Exploit Outline
1. Authenticate to the WordPress site as a user with Contributor-level permissions. 2. Obtain a valid WordPress REST API nonce (X-WP-Nonce) from the administrative dashboard, typically found in the 'wpApiSettings' or Yoast-specific localized JavaScript objects. 3. Identify the target Post ID of a private, draft, or unauthorized post belonging to another user. 4. Send a GET request to the endpoint '/wp-json/yoast/v1/meta-search' with the 'post_id' parameter set to the target ID and the 'X-WP-Nonce' header set to the extracted nonce. 5. The response will contain sensitive SEO metadata (focus keywords, titles, descriptions) that should not be visible to the requesting user.
Check if your site is affected.
Run a free security audit to detect vulnerable plugins, outdated versions, and misconfigurations.