Файловый менеджер - Редактировать - /home/tuudkjt/globeasy/wp-includes/ID3/settings.tar
Назад
config/mails.php 0000777 00000000233 15252021227 0007632 0 ustar 00 <?php defined('ABSPATH') or die(); /** * @param $fields * * @return mixed */ function rsssl_mails(){ return apply_filters('rsssl_mails', [ ]); } config/config.php 0000777 00000003105 15252021227 0007773 0 ustar 00 <?php defined( 'ABSPATH' ) or die(); foreach ( glob( rsssl_path . 'settings/config/fields/*.php' ) as $file ) { include $file; } function rsssl_fields( $load_values = true ) { if ( ! rsssl_user_can_manage() ) { return []; } $fields = apply_filters( 'rsssl_fields', [] ); if ( is_multisite() && rsssl_is_networkwide_active() ) { $stored_options = get_site_option( 'rsssl_options', [] ); } else { $stored_options = get_option( 'rsssl_options', [] ); } foreach ( $fields as $key => $field ) { $field = wp_parse_args( $field, [ 'default' => '', 'id' => false, 'visible' => true, 'disabled' => false, 'recommended' => false ] ); //handle server side conditions //but not if outside our settings pages if ( rsssl_is_logged_in_rest() && isset( $field['server_conditions'] ) ) { if ( ! rsssl_conditions_apply( $field['server_conditions'] ) ) { unset( $fields[ $key ] ); continue; } } if ( $load_values ) { $value = rsssl_sanitize_field( rsssl_get_option( $field['id'], $field['default'] ), $field['type'], $field['id'] ); $field['never_saved'] = !array_key_exists( $field['id'], $stored_options ); $field['value'] = apply_filters( 'rsssl_field_value_' . $field['id'], $value, $field ); $fields[ $key ] = apply_filters( 'rsssl_field', $field, $field['id'] ); } } $fields = apply_filters( 'rsssl_fields_values', $fields ); foreach ( $fields as $key => $field ) { if (isset($field['help']['url'])) { $fields[ $key ]['help']['url'] = rsssl_link( $field['help']['url'], 'instructions', $field['id'] ); } } return array_values( $fields ); } config/menu.php 0000777 00000124513 15252021227 0007501 0 ustar 00 <?php defined( 'ABSPATH' ) or die(); function rsssl_menu() { if ( ! rsssl_user_can_manage() ) { return []; } $menu_items = [ [ "id" => "dashboard", "title" => __( "Dashboard", 'really-simple-ssl' ), 'default_hidden' => false, 'menu_items' => [], ], [ "id" => "settings", "title" => __( "Settings", 'really-simple-ssl' ), 'default_hidden' => false, 'menu_items' => [ [ 'id' => 'general', 'group_id' => 'general', 'title' => __( 'General', 'really-simple-ssl' ), 'helpLink' => 'instructions/about-our-general-settings', 'groups' => [ [ 'id' => 'general_settings', 'group_id' => 'general_settings', 'title' => __( 'General', 'really-simple-ssl' ), 'helpLink' => 'instructions/about-our-general-settings', ], [ 'id' => 'general_email', 'group_id' => 'general_email', 'title' => __( 'Email', 'really-simple-ssl' ), 'helpLink' => 'instructions/about-our-general-settings', ], [ 'id' => 'general_captcha', 'group_id' => 'general_captcha', 'title' => __( 'Captcha', 'really-simple-ssl' ), 'helpLink' => 'instructions/about-our-general-settings', 'premium' => true, 'premium_title' => __( 'Captcha', 'really-simple-ssl' ), 'intro' => __( "Really Simple Security can trigger a Captcha to limit access to your site or the log in form.", 'really-simple-ssl' ), 'premium_text' => __( 'Protect your website against brute-force attacks with a captcha. Choose between Google reCAPTCHA or hCaptcha.', 'really-simple-ssl' ), ], [ 'id' => 'support', 'group_id' => 'support', 'title' => __('Premium Support', 'really-simple-ssl'), 'intro' => __('The following information is attached when you send this form: license key, scan results, your domain, .htaccess file, debug log and a list of active plugins.', 'really-simple-ssl'), 'premium' => true, 'premium_text' => __("Elevate your security with our Premium Support! Our expert team ensures simple, hassle-free assistance whenever you need it.", 'really-simple-ssl'), 'premium_title' => __('Why Premium Support?', 'really-simple-ssl'), 'helpLink' => 'instructions/debugging', 'helpLink_text' => __('Debugging with Really Simple Security', "really-simple-ssl"), ], ], ], [ 'id' => 'encryption', 'title' => 'SSL', 'groups' => [ [ 'id' => 'encryption_lets_encrypt', 'group_id' => 'encryption_lets_encrypt', 'title' => __( 'Let\'s Encrypt', 'really-simple-ssl' ), 'intro' => __( 'Let\'s Encrypt.', 'really-simple-ssl' ), 'helpLink' => 'about-lets-encrypt', 'directLink' => rsssl_letsencrypt_wizard_url(), ], [ 'id' => 'encryption_redirect', 'group_id' => 'encryption_redirect', 'title' => __( 'Redirection', 'really-simple-ssl' ), 'helpLink' => 'remove-htaccess-redirect-site-lockout', ], [ 'id' => 'mixed-content-general', 'group_id' => 'mixed-content-general', 'title' => __( 'Mixed content', 'really-simple-ssl' ), 'helpLink' => 'instructions/using-the-mixed-content-scan', ], [ 'id' => 'mixed-content-scan', 'group_id' => 'mixed-content-scan', 'title' => __( 'Mixed Content Scan', 'really-simple-ssl' ), 'premium' => true, 'premium_title' => __( "Mixed Content Scan", 'really-simple-ssl' ), 'premium_text' => __( "The extensive mixed content scan will list all issues and provide a fix, or instructions to fix manually.", 'really-simple-ssl' ), 'helpLink' => 'instructions/using-the-mixed-content-scan', ], ], ], [ 'id' => 'security_headers', 'title' => __( 'Security Headers', 'really-simple-ssl' ), 'featured' => false, 'menu_items' => [ [ 'id' => 'recommended_security_headers', 'group_id' => 'recommended_security_headers', 'title' => __( 'Essential Security Headers', 'really-simple-ssl' ), 'networkwide_required' => true, 'premium_title' => __( "The Essentials", 'really-simple-ssl' ), 'premium' => true, 'premium_text' => __( "Protecting your website visitors from malicious attacks and data breaches should be your #1 priority, start with the essentials with Really Simple Security", 'really-simple-ssl' ), 'helpLink' => 'instructions/about-recommended-security-headers', ], [ 'id' => 'hsts', 'group_id' => 'hsts', 'premium' => true, 'networkwide_required' => true, 'premium_text' => __( "HSTS forces browsers always to load a website via HTTPS. It prevents unnecessary redirects and prevents manipulation of data originating from communication with your website.", 'really-simple-ssl' ), 'title' => 'HTTP Strict Transport Security', 'helpLink' => 'instructions/about-hsts', ], [ 'id' => 'permissions_policy', 'group_id' => 'permissions_policy', 'title' => 'Permissions Policy', 'premium_text' => __( "Control browser features that could allow third parties to misuse data collected by microphone, camera, GEO Location etc, when enabled for your website.", 'really-simple-ssl' ), 'helpLink' => 'instructions/about-permissions-policy', 'networkwide_required' => true, 'premium' => true, ], [ 'id' => 'content_security_policy', 'group_id' => 'content_security_policy', 'title' => __( 'Content Security Policy', 'really-simple-ssl' ), 'intro' => __( 'Content Security Policy Headers', 'really-simple-ssl' ), 'premium' => true, 'networkwide_required' => true, 'helpLink' => 'instructions/configuring-the-content-security-policy', 'groups' => [ [ 'id' => 'upgrade_insecure_requests', 'group_id' => 'upgrade_insecure_requests', 'networkwide_required' => true, 'premium' => true, 'premium_text' => __( "A correctly configured Content Security Policy can protect your visitors from the most common web attacks. It all starts with denying and upgrading insecure requests on your website.", 'really-simple-ssl' ), 'helpLink' => 'instructions/configuring-the-content-security-policy', 'title' => 'Upgrade Insecure Requests', ], [ 'id' => 'frame_ancestors', 'group_id' => 'frame_ancestors', 'networkwide_required' => true, 'premium' => true, 'premium_text' => __( "Prevent clickjacking and other malicious attacks by restricting sources that are permitted to embed content from your website.", 'really-simple-ssl' ), 'helpLink' => 'instructions/frame-ancestors', 'title' => 'Frame Ancestors', ], [ 'id' => 'content_security_policy_source_directives', 'group_id' => 'content_security_policy_source_directives', 'networkwide_required' => true, 'helpLink' => 'instructions/configuring-the-content-security-policy/', 'premium' => true, 'premium_title' => 'Source Directives with Learning Mode', 'premium_text' => __( "Allow only necessary third-party resources to be loaded on your website, thus preventing common attacks. Use our unique learning mode to automatically configure your Content Security Policy.", 'really-simple-ssl' ), 'title' => 'Source Directives', ] ], ], [ 'id' => 'cross_origin_policy', 'group_id' => 'cross_origin_policy', 'networkwide_required' => true, 'premium' => true, 'premium_text' => __( 'This is a security feature implemented by web browsers to control how web pages from different origins can interact with each other.', 'really-simple-ssl' ), 'title' => 'Cross Origin Policy', 'premium_title' => 'Advanced: Cross Origin Policy', 'helpLink' => 'instructions/cross-origin-policies', ], ], ], [ 'id' => 'vulnerabilities', 'title' => __( 'Vulnerabilities', 'really-simple-ssl' ), 'menu_items' => [ [ 'id' => 'vulnerabilities_basic', 'group_id' => 'vulnerabilities_basic', 'title' => __( 'Vulnerability scan', 'really-simple-ssl' ), 'groups' => [ [ 'id' => 'vulnerabilities_basic', 'group_id' => 'vulnerabilities_basic', 'title' => __( 'Vulnerability scan', 'really-simple-ssl' ), 'intro' => __( 'Here you can configure vulnerability detection, notifications and measures. To learn more about the features displayed, please use the instructions linked in the top-right corner.', 'really-simple-ssl' ), 'helpLink' => 'instructions/about-vulnerabilities/', ], [ 'id' => 'vulnerabilities_overview', 'group_id' => 'vulnerabilities_overview', 'title' => __( 'Scan results', 'really-simple-ssl' ), 'intro' => __( 'This is the vulnerability overview. Here you will find current known vulnerabilities on your system. You can find more information and helpful, actionable insights for every vulnerability under details.', 'really-simple-ssl' ), 'helpLink' => 'instructions/about-vulnerabilities#components', ], ], ], [ 'id' => 'vulnerabilities_notifications', 'group_id' => 'vulnerabilities_notifications', 'title' => __( 'Configuration', 'really-simple-ssl' ), 'groups' => [ [ 'id' => 'vulnerabilities_notifications', 'group_id' => 'vulnerabilities_notifications', 'title' => __( 'Notifications', 'really-simple-ssl' ), 'intro' => __( 'These notifications are set to the minimum risk level that triggers a notification. For example, the default site-wide notification triggers on high-risk and critical vulnerabilities.', 'really-simple-ssl' ), 'helpLink' => 'instructions/about-vulnerabilities#notifications', ], [ 'id' => 'vulnerabilities-measures-overview', 'group_id' => 'vulnerabilities_measures', 'title' => __( 'Measures', 'really-simple-ssl' ), 'intro' => __( 'You can choose to automate the most common actions for a vulnerability. Each action is set to a minimum risk level, similar to the notifications. Please read the instructions to learn more about the process.', 'really-simple-ssl' ), 'premium' => true, 'helpLink' => 'instructions/about-vulnerabilities#measures', 'premium_title' => __( "Automated Measures", 'really-simple-ssl' ), 'premium_text' => __( "Maintain peace of mind with our simple, but effective automated measures when vulnerabilities are discovered. When needed Really Simple Security will force update or quarantine vulnerable components, on your terms!", 'really-simple-ssl' ), ], ], ], ], ], [ 'id' => 'hardening', 'title' => __( 'Hardening', 'really-simple-ssl' ), 'featured' => false, 'menu_items' => [ [ 'id' => 'hardening-basic', 'group_id' => 'hardening-basic', 'title' => __( 'Basic', 'really-simple-ssl' ), 'helpLink' => 'instructions/about-hardening-features', ], [ 'id' => 'hardening-extended', 'group_id' => 'hardening-extended', 'title' => __( 'Advanced', 'really-simple-ssl' ), 'premium' => true, 'groups' => [ [ 'id' => 'hardening_extended', 'group_id' => 'hardening_extended', 'premium' => true, 'premium_text' => __( "Advanced hardening features complement the basic hardening functions by protecting your site against advanced threats and attacks.", 'really-simple-ssl' ), 'helpLink' => 'instructions/about-hardening-features#advanced', 'title' => __( 'Advanced Hardening', 'really-simple-ssl' ), 'intro' => __( 'Advanced hardening features to protect your site against sophisticated threats and attacks.', 'really-simple-ssl' ), ], [ 'id' => 'hardening-xml', 'group_id' => 'hardening-xml', 'premium' => true, 'premium_title' => __( 'XML-RPC with Learning Mode', 'really-simple-ssl' ), 'premium_text' => __( "Not sure if you're using XML-RPC, or want to restrict unauthorized use of XML-RPC? With learning mode you can see exactly which sources use XML-RPC, and you can revoke where necessary.", 'really-simple-ssl' ), 'helpLink' => 'instructions/about-hardening-features#xml-rpc', 'title' => __( 'XML-RPC', 'really-simple-ssl' ), 'intro' => __( 'Control and monitor the use of XML-RPC on your site with learning mode.', 'really-simple-ssl' ), ], ], ], ], ], [ 'id' => 'login-security', 'title' => __('Login Protection', 'really-simple-ssl'), 'featured' => false, 'new' => true, 'menu_items' => [ [ 'id' => 'two-fa', 'networkwide_required' => true, 'premium' => false, 'premium_text' => __( 'Get two-factor authentication with Really Simple Security Pro', 'really-simple-ssl' ), 'helpLink' => 'instructions/about-login-protection', 'title' => __('Login Authentication', 'really-simple-ssl'), 'groups' => [ [ 'id' => 'two_fa_general', 'group_id' => 'two_fa_general', 'premium' => false, 'premium_text' => __( "Start login protection by adding an additional layer during authentication. This will leave authentication less dependent on just a single password. Want to force strong passwords? Check out Password Security.", 'really-simple-ssl' ), 'helpLink' => 'instructions/about-login-protection', 'title' => __( 'Login Authentication', 'really-simple-ssl' ), 'intro' => __( 'Prevent account theft by offering more secure authentication methods. You can configure which methods are available per user role, or even enforce usage of secure authentication. Secure authentication can be either Two-Factor Authentication or Passkey login.', 'really-simple-ssl' ), ], [ 'id' => 'two_fa_email', 'group_id' => 'two_fa_email', 'premium' => false, 'disabled' => (rsssl_is_email_verified() === false), 'premium_text' => __( 'Send an email code during login. You can force user roles to use two-factor authentication, or leave the choose with your users, if so desired.', 'really-simple-ssl' ), 'upgrade' => 'https://really-simple-ssl.com/pro/?mtm_campaign=2fa&mtm_source=free&mtm_content=upgrade', 'helpLink' => 'instructions/two-factor-authentication', 'title' => __( 'Two-Factor Authentication', 'really-simple-ssl' ), 'intro' => __( 'Choose between Email Verification (less secure and not recommended for administrators) or the TOTP method with an authenticator app, depending on your convenience and security needs.', 'really-simple-ssl' ), ], [ 'id' => 'two_fa_passkey', 'group_id' => 'two_fa_passkey', 'premium' => true, 'premium_text' => __( 'Get Login Protection with %sReally Simple SSL Pro%s', 'really-simple-ssl' ), 'helpLink' => 'https://really-simple-ssl.com/instructions/two-factor-authentication', 'title' => __( 'Passkey', 'really-simple-ssl' ), 'intro' => __( '', 'really-simple-ssl' ), ], [ 'id' => 'two_fa_totp', 'group_id' => 'two_fa_totp', 'premium' => true, 'premium_text' => __( 'Get Login Protection with Really Simple Security Pro', 'really-simple-ssl' ), 'helpLink' => 'instructions/two-factor-authentication', 'upgrade' => 'https://really-simple-ssl.com/pro/?mtm_campaign=2fa&mtm_source=free&mtm_content=upgrade', 'title' => __( 'Authenticator App (TOTP)', 'really-simple-ssl' ), 'intro' => __( 'TOTP requires users to authenticate using a third-party app such as Google Authenticator.', 'really-simple-ssl' ), ], [ 'id' => 'two_fa_users', 'group_id' => 'two_fa_users', 'premium' => false, 'premium_text' => __( 'Here you control the users that are automatically, and temporarily blocked. You can also add or remove users manually. We recommend blocking ‘admin’ as username as a start.', 'really-simple-ssl' ), 'helpLink' => 'instructions/two-factor-authentication', 'upgrade' => 'https://really-simple-ssl.com/pro/?mtm_campaign=2fa&mtm_source=free&mtm_content=upgrade', 'title' => __( 'Users', 'really-simple-ssl' ), 'intro' => __( 'Here you can see which users have configured Two-Factor Authentication. The reset button will trigger the 2FA onboarding for the selected user(s) again and allow the configured grace period.', 'really-simple-ssl' ), 'groupFilter' => [ 'default' => 'active', 'id' => 'user_role', 'options' => [ [ 'id' => 'all', 'title' => __('All', 'really-simple-ssl'), ], ...array_map( static function( $role, $roleKey ) { return [ 'id' => $roleKey, // Use the key as the id. 'title' => ucfirst( $role['name'] ), // Capitalize the role name. ]; }, (new WP_Roles())->roles, // The roles array. array_keys( (new WP_Roles())->roles ) // Its keys. ), ] ], ], ], ], [ 'id' => 'password_security', 'networkwide_required' => true, 'title' => __('Password Security','really-simple-ssl'), 'helpLink' => 'https://really-simple-ssl.com/instructions/password-security/?mtm_campaign=instructions&mtm_source=free', 'groups' => [ [ 'id' => 'password_security_passwords', 'group_id' => 'password_security_passwords', 'premium_title' => __( 'Password security', 'really-simple-ssl' ), 'premium_text' => __( 'Enforce secure password policies for your users by requiring strong passwords, and expiring passwords after a period of your choosing.', 'really-simple-ssl' ), 'premium' => true, 'helpLink' => 'instructions/password-security', 'title' => __( 'Passwords', 'really-simple-ssl' ), 'intro' => __( 'Improve security by requiring strong passwords and forced periodic password changes', 'really-simple-ssl' ), ], ] ], [ 'id' => 'limit_login_attempts', 'title' => __( 'Limit Login Attempts', 'really-simple-ssl' ), 'premium' => true, 'groups' => [ [ 'id' => 'limit_login_attempts_general', 'group_id' => 'limit_login_attempts_general', 'helpLink' => 'instructions/limit-login-attempts', 'premium' => true, 'premium_title' => __( 'Limit Login Attempts', 'really-simple-ssl' ), 'premium_text' => __( 'Customize login attempts, intervals, and temporary lockouts according to your preferences to regulate the level of security on your website during authentication. No additional settings required', 'really-simple-ssl' ), 'title' => __( 'General', 'really-simple-ssl' ), 'intro' => __( 'Protect your site against brute force login attacks by limiting the number of login attempts. Enabling this feature will temporary lock-out a username and the IP address that tries to login, after the set number of false logins.', 'really-simple-ssl' ), ], [ 'id' => 'limit_login_attempts_advanced', 'group_id' => 'limit_login_attempts_advanced', 'premium' => true, 'premium_title' => __( 'Settings', 'really-simple-ssl' ), 'premium_text' => __( 'Customize login attempts, intervals, and temporary lockouts according to your preferences to regulate the level of security on your website during authentication. No additional settings required', 'really-simple-ssl' ), 'helpLink' => 'instructions/limit-login-attempts', 'title' => __( 'Limit Attempts', 'really-simple-ssl' ), 'intro' => __( 'The settings below determine how strict your site will be protected. You can leave these settings on their default values, unless you experience issues.', 'really-simple-ssl' ), ], [ 'id' => 'limit_login_attempts_users', 'group_id' => 'limit_login_attempts_users', 'premium' => true, 'premium_title' => __( 'Users', 'really-simple-ssl' ), 'premium_text' => __( 'Here you control the users that are automatically, and temporarily blocked. You can also add or remove users manually. We recommend blocking ‘admin’ as username as a start.', 'really-simple-ssl' ), 'groupFilter' => [ 'default' => 'limit_login_attempts_advanced_filter_log', 'id' => 'limit_login_attempts_advanced_filter', 'options' => [ [ 'id' => 'blocked', 'title' => __( 'Permanent block', 'really-simple-ssl' ), ], [ 'id' => 'allowed', 'title' => __( 'Trusted', 'really-simple-ssl' ), ], [ 'id' => 'locked', 'title' => __( 'Temporary block', 'really-simple-ssl' ), ], ], ], 'title' => __( 'Users', 'really-simple-ssl' ), 'intro' => [ 'locked' => __( 'Blocked usernames will be automatically unblocked after the above-configured interval. In the table below you can instantly unblock usernames.', 'really-simple-ssl' ), 'allowed' => __( 'You can prevent usernames from being temporarily blocked by adding them to this list. The IP address that triggers false logins will still be blocked.', 'really-simple-ssl' ), 'blocked' => __( 'You can add any non-existing username to this table, to instantly block IP addresses that try common usernames like "admin".', 'really-simple-ssl' ), ], ], [ 'id' => 'limit_login_attempts_ip_address', 'group_id' => 'limit_login_attempts_ip_address', 'premium' => true, 'premium_title' => __( 'IP Addresses', 'really-simple-ssl' ), 'premium_text' => __( 'IP Addresses can be allowed, blocked or will show up when your settings add them to a temporary blocklist. If you want to add your IP to the allowlist, please read the article provided at the right-hand side for instructions.', 'really-simple-ssl' ), 'groupFilter' => [ 'default' => 'limit_login_attempts_advanced_filter_log', 'id' => 'limit_login_attempts_advanced_filter', 'options' => [ [ 'id' => 'blocked', 'title' => __( 'Permanent block', 'really-simple-ssl' ), ], [ 'id' => 'allowed', 'title' => __( 'Trusted', 'really-simple-ssl' ), ], [ 'id' => 'locked', 'title' => __( 'Temporary block', 'really-simple-ssl' ), ], ], ], 'title' => __( 'IP Addresses', 'really-simple-ssl' ), 'intro' => [ 'locked' => __( 'Blocked IP addresses will be automatically unblocked after the above-configured interval. In the table below you can instantly unblock IP addresses.', 'really-simple-ssl' ), 'allowed' => __( 'You can prevent IP addresses from being temporarily blocked by adding them to this list. This can be convenient if you share an IP address with other site users. Usernames that trigger false logins will still be blocked.', 'really-simple-ssl' ), 'blocked' => __( 'You can indefinitely block known abusive IP addresses, to completely prevent them from trying to login.', 'really-simple-ssl' ), ], ], [ 'id' => 'limit_login_attempts_event_log', 'group_id' => 'limit_login_attempts_event_log', 'premium' => true, 'premium_title' => __( 'Event Log', 'really-simple-ssl' ), 'premium_text' => __( 'The Event Log shows all relevant events related to limit login attempts. You can filter the log using the dropdown on the top-right to only show warnings.', 'really-simple-ssl' ), 'groupFilter' => [ 'default' => 'limit_login_attempts_advanced_filter_log', 'id' => 'limit_login_attempts_advanced_filter', 'options' => [ [ 'id' => 'warning', 'title' => __( 'Warnings', 'really-simple-ssl' ), ], [ 'id' => 'all', 'title' => __( 'All', 'really-simple-ssl' ), ], ], ], 'title' => __( 'Event Log', 'really-simple-ssl' ), 'intro' => __( 'The Event Log shows all relevant events related to limit login attempts. You can filter the log using the dropdown on the top-right to only show warnings.', 'really-simple-ssl' ), ], [ 'id' => 'limit_login_attempts_country', 'group_id' => 'limit_login_attempts_country', 'premium' => true, 'premium_title' => __( 'Regions', 'really-simple-ssl' ), 'premium_text' => __( 'You can easily block countries, or entire continents. You can act on the event log below and see which countries are suspicious, or exclude all countries but your own.', 'really-simple-ssl' ), 'groupFilter' => [ 'default' => 'limit_login_attempts_advanced_filter_log', 'id' => 'limit_login_attempts_advanced_filter', 'options' => [ [ 'id' => 'blocked', 'title' => __( 'Blocked', 'really-simple-ssl' ), ], [ 'id' => 'regions', 'title' => __( 'Continents', 'really-simple-ssl' ), ], [ 'id' => 'countries', 'title' => __( 'Allowed', 'really-simple-ssl' ), ], ], ], 'title' => __( 'Regions', 'really-simple-ssl' ), 'intro' => __( 'If your site is only intended for users to login from specific geographical regions, you can entirely prevent logins from certain continents or countries.', 'really-simple-ssl' ), ] ], ], ], ], [ 'id' => 'firewall', 'title' => __( 'Firewall', 'really-simple-ssl' ), 'featured' => false, 'premium' => true, 'new' => true, 'menu_items' => [ [ 'id' => 'rules', 'title' => __( 'Rules', 'really-simple-ssl' ), 'premium' => true, 'groups' => [ [ 'id' => 'firewall_list_general', 'group_id' => 'firewall_list_general', 'helpLink' => 'instructions/about-the-firewall', 'premium' => true, 'premium_title' => __( 'Firewall Rules', 'really-simple-ssl' ), 'premium_text' => __( 'Restrict access from specific countries or continents. You can also allow only specific countries.', 'really-simple-ssl' ), 'upgrade' => 'https://really-simple-ssl.com/pro/?mtm_campaign=lla&mtm_source=free&mtm_content=upgrade', 'title' => __( 'Firewall', 'really-simple-ssl' ), 'intro' => __( 'The lightweight Firewall can be used to lockout malicious traffic from your site. You can configure generic rules below, or block specific IP addresses by adding them to the Blocklist.', 'really-simple-ssl' ), ], [ 'id' => '404_blocking', 'group_id' => '404_blocking', 'premium' => true, 'title' => __( '404 Blocking', 'really-simple-ssl' ), 'premium_title' => __( '404 Blocking', 'really-simple-ssl' ), 'premium_text' => __( 'Crawlers might scan your site looking for possible exploits. One way to detect this is the fact that they trigger more 404 (not found) errors than legitimate visitors would. Below you can set the threshold and lockout duration for 404 blocking.', 'really-simple-ssl' ), 'intro' => __( 'Crawlers might scan your site looking for possible exploits. One way to detect this is the fact that they trigger more 404 (not found) errors than legitimate visitors would. Below you can set the threshold and lockout duration for 404 blocking.', 'really-simple-ssl' ), ], [ 'id' => 'user_agents', 'group_id' => 'user_agents', 'premium' => true, 'title' => __( 'User-Agents', 'really-simple-ssl' ), 'premium_title' => __( 'User-Agents', 'really-simple-ssl' ), 'premium_text' => __( 'The Firewall can also block traffic from malicious or resource-consuming bots that might crawl your website. A list of well-known bad User-Agents is automatically included. You can manually add or delete user-agents if so desired.', 'really-simple-ssl' ), 'intro' => __( 'The Firewall can also block traffic from malicious or resource-consuming bots that might crawl your website. A list of well-known bad User-Agents is automatically included. You can manually add or delete user-agents if so desired.', 'really-simple-ssl' ), 'groupFilter' => [ 'default' => 'blocked', 'id' => 'rsssl-group-filter-user_agent_listing_overview', 'options' => [ [ 'id' => 'blocked', 'title' => __( 'Blocked', 'really-simple-ssl' ), ], [ 'id' => 'deleted', 'title' => __( 'Deleted', 'really-simple-ssl' ), ], ], ], ], [ 'id' => 'firewall_list_listing', 'group_id' => 'firewall_list_listing', 'networkwide_required' => true, 'premium' => true, 'premium_text' => __( 'This feature allows you to block visitors from your website based on country', 'really-simple-ssl' ), 'title' => __( 'Regions', 'really-simple-ssl' ), 'premium_title' => __( 'Regions', 'really-simple-ssl' ), 'intro' => __( 'Restrict access to your site based on user location. By default, all regions are allowed. You can also block entire continents.', 'really-simple-ssl' ), 'groupFilter' => [ 'default' => 'regions', 'id' => 'rsssl-group-filter-geo_block_list', 'options' => [ [ 'id' => 'blocked', 'title' => __( 'Blocked', 'really-simple-ssl' ), ], [ 'id' => 'regions', 'title' => __( 'Continents', 'really-simple-ssl' ), ], [ 'id' => 'countries', 'title' => __( 'Allowed', 'really-simple-ssl' ), ], ], ], ], ] ], [ 'id' => 'firewall_blocklists', 'title' => __( 'Blocklists', 'really-simple-ssl' ), 'premium' => true, 'groups' => [ [ 'id' => 'firewall_white_list_listing', 'group_id' => 'firewall_white_list_listing', 'networkwide_required' => true, 'premium' => true, 'premium_text' => __( 'This feature allows you to block visitors from your website based on country', 'really-simple-ssl' ), 'upgrade' => 'https://really-simple-ssl.com/pro/?mtm_campaign=cops&mtm_source=free&mtm_content=upgrade', 'title' => __( 'Trusted IP addresses', 'really-simple-ssl' ), 'premium_title' => __( 'Trusted IP addresses', 'really-simple-ssl' ), 'intro' => __( 'Here you can add IP addresses that should never be blocked by the Firewall. We will automatically add the IP address of the administrator that enabled the Firewall.', 'really-simple-ssl' ), ], [ 'id' => 'firewall_block_list_listing', 'group_id' => 'firewall_block_list_listing', 'networkwide_required' => true, 'premium' => true, 'premium_text' => __( 'This feature allows you to block visitors from your website based on country', 'really-simple-ssl' ), 'upgrade' => 'https://really-simple-ssl.com/pro/?mtm_campaign=cops&mtm_source=free&mtm_content=upgrade', 'title' => __( 'IP Blocklist', 'really-simple-ssl' ), 'premium_title' => __( 'IP Blocklist', 'really-simple-ssl' ), 'intro' => __( 'This list shows all individually blocked IP addresses. On top the top-right you can filter between permanent blocks and temporary blocks. By default, blocks are only temporary, as attackers and bots will frequently alter between IP addresses. However, you can manually configure permanent blocks.', 'really-simple-ssl' ), 'groupFilter' => [ 'default' => 'all', 'id' => 'rsssl-group-filter-geo_block_list', 'options' => [ [ 'id' => 'all', 'title' => __( 'All', 'really-simple-ssl' ), ], [ 'id' => 'temp', 'title' => __( 'Temporary', 'really-simple-ssl' ), ], [ 'id' => 'permanent', 'title' => __( 'Permanent', 'really-simple-ssl' ), ], ], ], ], ] ], [ 'id' => 'firewall_logs', 'title' => __( 'Logs', 'really-simple-ssl' ), 'premium' => true, 'groups' => [ [ 'id' => 'firewall_logs_content', 'group_id' => 'firewall_logs_content', 'premium' => true, 'premium_text' => __( 'This feature allows you to block visitors from your website based on country', 'really-simple-ssl' ), 'upgrade' => 'https://really-simple-ssl.com/pro/?mtm_campaign=cops&mtm_source=free&mtm_content=upgrade', 'title' => __( 'Event Logs', 'really-simple-ssl' ), 'premium_title' => __( 'Event Logs', 'really-simple-ssl' ), 'intro' => __( 'The Event Log shows all relevant events related to the Firewall and IP lockouts. You can filter the log using the dropdown on the top-right to only show warnings.', 'really-simple-ssl' ), 'groupFilter' => [ 'default' => 'all', 'id' => 'rsssl-group-filter-firewall_logs_content', 'options' => [ [ 'id' => 'all', 'title' => __( 'All', 'really-simple-ssl' ), ], [ 'id' => 'warning', 'title' => __( 'Warnings', 'really-simple-ssl' ), ], ], ], ], ] ] ] ], ], ], [ "id" => "letsencrypt", 'default_hidden' => true, "title" => "Let's Encrypt", 'intro' => sprintf( __( 'We have tried to make our Wizard as simple and fast as possible. Although these questions are all necessary, if there’s any way you think we can improve the plugin, please let us %sknow%s!', 'really-simple-ssl' ), '<a target="_blank" rel="noopener noreferrer" href="https://really-simple-ssl.com/contact/?mtm_campaign=instructions&mtm_source=free">', '</a>' ) . sprintf( __( ' Please note that you can always save and finish the wizard later, use our %sdocumentation%s for additional information or log a %ssupport ticket%s if you need our assistance.', 'really-simple-ssl' ), '<a target="_blank" rel="noopener noreferrer" href="https://really-simple-ssl.com/install-ssl-certificate/?mtm_campaign=instructions&mtm_source=free">', '</a>', '<a target="_blank" rel="noopener noreferrer" href="https://wordpress.org/support/plugin/really-simple-ssl/">', '</a>' ), 'menu_items' => [ [ 'id' => 'le-system-status', 'group_id' => 'le-system-status', 'title' => __('System status', 'really-simple-ssl'), 'intro' => __('Letʼs Encrypt is a free, automated and open certificate authority brought to you by the non-profit Internet Security Research Group (ISRG).', 'really-simple-ssl'), 'helpLink' => 'about-lets-encrypt', 'tests_only' => true, ], [ 'id' => 'le-general', 'title' => __('General Settings', 'really-simple-ssl'), ], [ 'id' => 'le-hosting', 'title' => __('Hosting', 'really-simple-ssl'), 'intro' => __('Below you will find the instructions for different hosting environments and configurations. If you start the process with the necessary instructions and credentials the next steps will be done in no time.', 'really-simple-ssl'), ], [ 'id' => 'le-directories', 'title' => __('Directories', 'really-simple-ssl'), 'tests_only' => true, ], [ 'id' => 'le-dns-verification', 'title' => __('DNS verification', 'really-simple-ssl'), 'tests_only' => true, ], [ 'id' => 'le-generation', 'title' => __('Generation', 'really-simple-ssl'), 'tests_only' => true, ], [ 'id' => 'le-installation', 'title' => __('Installation', 'really-simple-ssl'), 'tests_only' => true, ], [ 'id' => 'le-activate_ssl', 'title' => __('Activate', 'really-simple-ssl'), 'tests_only' => true, ], ], ], ]; $menu_items = apply_filters('rsssl_menu', $menu_items); return rsssl_add_url_param_ids( $menu_items ); } /** * Add URL parameters to upgrade links * * @param array $menu_items * * @return array */ function rsssl_add_url_param_ids( array $menu_items ): array { foreach ( $menu_items as $key => $menu_item ) { if (isset($menu_item['menu_items'])) { $menu_items[ $key ]['menu_items'] = rsssl_add_url_param_ids( $menu_item['menu_items'] ); } if (isset($menu_item['groups'])) { $menu_items[ $key ]['groups'] = rsssl_add_url_param_ids( $menu_item['groups'] ); } if ( isset( $menu_item['premium'] ) ) { $menu_items[ $key ]['upgrade'] =rsssl_link( 'pro', $menu_item['id'] ); } if ( isset( $menu_item['helpLink'] ) ) { $menu_items[ $key ]['helpLink'] = rsssl_link( $menu_item['helpLink'], 'instructions', $menu_item['id'] ); } } return $menu_items; } function rsssl_get_url_ref() { if (defined('rsssl_pro')) { return false; } $id = 0; if (defined('HBRW_PLATFORM_ID') && !empty(HBRW_PLATFORM_ID)) { $id = (int) HBRW_PLATFORM_ID; } if (defined('EXTENDIFY_PARTNER_ID') && !empty(EXTENDIFY_PARTNER_ID)) { $id = 3; // hard reference to Extendify platform } if (empty($id)) { return false; } $references = [ 1 => 483, // Combell 2 => 492, // Easyhost 3 => 673, // Extendify ]; return $references[$id] ?? false; } function rsssl_link( $slug = 'pro', $mtm_campaign = 'notification', $mtm_src = 'free', $discount = '' ): string { $mtm_src = sanitize_title( $mtm_src ); $mtm_campaign = sanitize_title( $mtm_campaign ); $ref = rsssl_get_url_ref(); //remove slash at start of $slug, if existing, and add at the end. $slug = trailingslashit( ltrim( $slug, '/' ) ); $multisite = is_multisite() ? 'mtm_kwd=multisite&' : ''; $url = "https://really-simple-ssl.com/$slug?{$multisite}mtm_campaign=$mtm_campaign&mtm_source=$mtm_src&mtm_content=upgrade"; if ( (int) $ref > 0 ) { $url = add_query_arg( 'ref', $ref, $url ); } // Add non-human-readable ID as the campaign if ( ! defined( 'rsssl_pro' ) && defined( 'EXTENDIFY_PARTNER_ID' ) && ! empty( EXTENDIFY_PARTNER_ID ) ) { $campaign = RSSSL()->admin->encrypt( EXTENDIFY_PARTNER_ID, 'string', 'C6E297149ABB6' ); if ( ! empty( $campaign ) ) { $url = add_query_arg( 'campaign', sanitize_text_field( $campaign ), $url ); } } // Add discount code separately if provided if ( ! empty( $discount ) ) { $url = add_query_arg( 'discount', $discount, $url ); } return $url; } config/index.php 0000777 00000000043 15252021227 0007633 0 ustar 00 <?php // You don't belong here. ?> config/fields/general.php 0000777 00000015502 15252021227 0011415 0 ustar 00 <?php defined( 'ABSPATH' ) or die(); add_filter( 'rsssl_fields', function( $fields ) { return array_merge( $fields, [ [ 'id' => 'ssl_enabled', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'hidden', 'label' => 'ssl_enabled', 'disabled' => false, 'default' => false, ], [ 'id' => 'site_has_ssl', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'hidden', 'label' => '', 'disabled' => false, 'default' => false, ], [ 'id' => 'other_host_type', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'host', //options loaded in data store 'default' => false, 'label' => __( "Hosting provider", 'really-simple-ssl' ), 'required' => false, 'disabled' => false, ], [ 'id' => 'review_notice_shown', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'hidden', 'label' => '', 'disabled' => false, 'default' => false, ], [ 'id' => 'dismiss_all_notices', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'checkbox', 'label' => __("Dismiss all notifications", 'really-simple-ssl'), 'disabled' => false, 'default' => false, ], [ 'id' => 'download-system-status', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'button', 'url' => trailingslashit(rsssl_url).'system-status.php?download', 'button_text' => __("Download", "really-simple-ssl"), 'label' => __("System status", 'really-simple-ssl'), 'disabled' => false, 'default' => false, ], [ 'id' => 'delete_data_on_uninstall', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'checkbox', 'label' => __("Delete all data on plugin deletion", 'really-simple-ssl'), 'default' => false, ], [ 'id' => 'notifications_email_address', 'menu_id' => 'general', 'group_id' => 'general_email', 'type' => 'email', 'label' => __( "Email address", 'really-simple-ssl' ), 'disabled' => false, 'default' => get_bloginfo('admin_email'), ], [ 'id' => 'send_verification_email', 'menu_id' => 'general', 'group_id' => 'general_email', 'type' => 'button', 'action' => 'send_verification_mail', 'button_text' => __( "Send", "really-simple-ssl" ), 'warning' => true, 'label' => __( "Email validation", 'really-simple-ssl' ), 'disabled' => rsssl_is_email_verified(), 'tooltip' => __( "Verify your email address to get the most out of Really Simple Security.", 'really-simple-ssl' ), ], [ 'id' => 'send_notifications_email', 'menu_id' => 'general', 'group_id' => 'general_email', 'type' => 'checkbox', 'label' => __("Notifications by email", 'really-simple-ssl'), 'tooltip' => __("Get notified of important changes, updates and settings. Recommended when using security features.", 'really-simple-ssl'), 'disabled' => false, 'default' => false, ], [ 'id' => 'enabled_captcha_provider', 'menu_id' => 'general', 'group_id' => 'general_captcha', 'type' => 'select', 'options' => [ 'none' => __( "Choose your provider", "really-simple-ssl" ), 'recaptcha' => __( "reCaptcha v2", "really-simple-ssl" ), 'hcaptcha' => __( "hCaptcha", "really-simple-ssl" ), ], 'label' => __( "Captcha provider", 'really-simple-ssl' ), 'disabled' => false, 'default' => 'none', 'required' => false, ], [ 'id' => 'captcha_fully_enabled', 'menu_id' => 'general', 'group_id' => 'general_captcha', 'type' => 'hidden', 'label' => '', 'default' => false, ], [ 'id' => 'recaptcha_site_key', 'menu_id' => 'general', 'group_id' => 'general_captcha', 'type' => 'captcha_key', 'label' => __( "reCaptcha site key", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'required' => true, 'visible' => false, 'server_conditions' => [ 'relation' => 'AND', [ 'enabled_captcha_provider' => 'recaptcha', ] ], ], [ 'id' => 'recaptcha_secret_key', 'menu_id' => 'general', 'group_id' => 'general_captcha', 'type' => 'captcha_key', 'label' => __( "reCaptcha secret key", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'required' => true, 'visible' => false, 'server_conditions' => [ 'relation' => 'AND', [ 'enabled_captcha_provider' => 'recaptcha', ] ], ], [ 'id' => 'hcaptcha_site_key', 'menu_id' => 'general', 'group_id' => 'general_captcha', 'type' => 'captcha_key', 'label' => __( "hCaptcha site key", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'required' => true, 'visible' => false, 'server_conditions' => [ 'relation' => 'AND', [ 'enabled_captcha_provider' => 'hcaptcha', ] ], ], [ 'id' => 'hcaptcha_secret_key', 'menu_id' => 'general', 'group_id' => 'general_captcha', 'type' => 'captcha_key', 'label' => __( "hCaptcha secret key", 'really-simple-ssl'), 'required' => true, 'disabled' => false, 'default' => false, 'visible' => false, 'server_conditions' => [ 'relation' => 'AND', [ 'enabled_captcha_provider' => 'hcaptcha', ] ], ], [ 'id' => 'captcha_verified', 'menu_id' => 'general', 'group_id' => 'general_captcha', 'type' => 'captcha', 'info' => __( "Captcha has not yet been verified, you need to complete the process of a Captcha to verify its availability.", 'really-simple-ssl' ), 'label' => '', 'default' => false, ], [ 'id' => 'premium_support', 'menu_id' => 'general', 'group_id' => 'support', 'type' => 'support', 'label' => __("Premium Support", 'really-simple-ssl'), 'disabled' => false, 'default' => false, ], [ 'id' => 'do_not_edit_htaccess', //field is removed if not enabled 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'checkbox', 'label' => __( "Stop editing the .htaccess file", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, //on multisite this setting can only be set networkwide 'networkwide_required' => true, 'server_conditions' => [ 'relation' => 'AND', [ 'RSSSL()->server->uses_htaccess()' => true, ] ], ], ] ); }, 100 ); config/fields/access-control.php 0000777 00000007250 15252021227 0012720 0 ustar 00 <?php defined( 'ABSPATH' ) or die(); add_filter( 'rsssl_fields', function( $fields ) { return array_merge( $fields, [ [ 'id' => 'enforce_password_security_enabled', 'menu_id' => 'password_security', 'group_id' => 'password_security_passwords', 'type' => 'checkbox', 'label' => __( "Enforce strong passwords", "really-simple-ssl" ), 'disabled' => false, 'default' => 'disabled', 'tooltip' => __( "This adds extra requirements for strong passwords for new users and updated passwords.", 'really-simple-ssl' ), 'help' => [ 'label' => 'default', 'url' => 'instructions/password-security', 'title' => __( "Enforce strong passwords", 'really-simple-ssl' ), 'text' => __( 'Improve the default WordPress password strength check. You can also enforce frequent password changes for user roles.', 'really-simple-ssl' ).' '.__('They might be misused if you don’t actively tell the browser to disable these features.', 'really-simple-ssl' ), ], ], [ 'id' => 'enforce_frequent_password_change', 'menu_id' => 'password_security', 'group_id' => 'password_security_passwords', 'type' => 'checkbox', 'label' => __( "Enforce frequent password change", "really-simple-ssl" ), 'disabled' => false, 'default' => 'disabled', 'react_conditions' => [ 'relation' => 'AND', [ 'enforce_password_security_enabled' => 1, ] ], ], [ 'id' => 'password_change_roles', 'menu_id' => 'password_security', 'group_id' => 'password_security_passwords', 'type' => 'roles_dropdown', 'default' => [ 'administrator'], 'label' => __( "User roles for password change", "really-simple-ssl" ), 'react_conditions' => [ 'relation' => 'AND', [ 'enforce_frequent_password_change' => 1, ] ], ], [ 'id' => 'password_change_frequency', 'menu_id' => 'password_security', 'group_id' => 'password_security_passwords', 'type' => 'select', 'default' => '12', 'options' => [ '6' => __( "6 months", "really-simple-ssl" ), '12' => __( "1 year", "really-simple-ssl" ), '24' => __( "2 years", "really-simple-ssl" ), ], 'label' => __( "Change passwords every", "really-simple-ssl" ), 'react_conditions' => [ 'relation' => 'AND', [ 'enforce_frequent_password_change' => 1, ] ], ], [ 'id' => 'login_cookie_expiration', 'menu_id' => 'password_security', 'group_id' => 'password_security_passwords', 'type' => 'select', 'default' => '48', 'options' => [ '8' => __( "8 hours (recommended)", "really-simple-ssl" ), '48' => __( "48 hours (default)", "really-simple-ssl" ), ], 'label' => __( "Limit logged in session duration", "really-simple-ssl" ), 'help' => [ 'label' => 'default', 'title' => __( "Prevent session hijacking", 'really-simple-ssl' ), 'text' => __( "Really Simple Security allows you to limit the default logged in session duration. By default, WordPress will keep users logged in for 48 hours, or even 14 days when clicking the ‘remember me’ checkbox. An attacker could possibly steal the logged in cookie and gain access to a user’s account. Limiting the logged in duration to 8 hours will greatly reduce the risk of session hijacking.", 'really-simple-ssl' ), ], ], [ 'id' => 'hide_rememberme', 'menu_id' => 'password_security', 'group_id' => 'password_security_passwords', 'type' => 'checkbox', 'default' => false, 'label' => __( "Hide the remember me checkbox", "really-simple-ssl" ), ], ] ); }, 200 ); config/fields/limit-login-attempts.php 0000777 00000026160 15252021227 0014065 0 ustar 00 <?php defined( 'ABSPATH' ) or die(); add_filter( 'rsssl_fields', function( $fields ) { return array_merge( $fields, [ [ 'id' => 'enable_limited_login_attempts', 'menu_id' => 'limit_login_attempts', 'group_id' => 'limit_login_attempts_general', 'type' => 'checkbox', 'label' => __('Enable Limit Login Attempts', 'really-simple-ssl'), 'help' => [ 'label' => 'default', 'url' => 'instructions/limit-login-attempts', 'title' => __( "About Limit Login Attempts", 'really-simple-ssl' ), 'text' => __( 'Limit Login Attempts protects your site from login attempts by unauthorized users. When you enable Limit Login Attempts, all login attempts are logged and repeated attempts to login with invalid credentials will be blocked automatically.', 'really-simple-ssl' ), ], 'disabled' => false, ], [ 'id' => 'limit_login_attempts_amount', 'menu_id' => 'limit_login_attempts', 'group_id' => 'limit_login_attempts_advanced', 'type' => 'select', 'tooltip' => __("After this number of failed login attempts the user and IP address will be temporarily blocked.", 'really-simple-ssl'), 'label' => __('Login attempts', 'really-simple-ssl'), 'options' => [ '3' => sprintf('%d %s', 3, __('attempts', 'really-simple-ssl')), '5' => sprintf('%d %s', 5, __('attempts', 'really-simple-ssl')), '10' => sprintf('%d %s', 10, __('attempts', 'really-simple-ssl')), '15' => sprintf('%d %s', 15, __('attempts', 'really-simple-ssl')), ], 'disabled' => false, 'default' => '5', 'react_conditions' => [ 'relation' => 'AND', [ 'enable_limited_login_attempts' => true, ] ], ], [ 'id' => 'limit_login_attempts_duration', 'menu_id' => 'limit_login_attempts', 'group_id' => 'limit_login_attempts_advanced', 'type' => 'select', 'tooltip' => __("If the number of failed login attempts is exceeded within this timeframe, the IP address and user will be blocked.", 'really-simple-ssl'), 'label' => __('Interval', 'really-simple-ssl'), 'options' => [ '15' => sprintf(__('%s minutes', 'really-simple-ssl'), 15), '30' => sprintf(__('%s minutes', 'really-simple-ssl'), 30), '60' => sprintf(__('%s hour', 'really-simple-ssl'), 1), '240' => sprintf(__('%s hours', 'really-simple-ssl'), 4), '1440' => sprintf(__('%s day', 'really-simple-ssl'), 1), ], 'disabled' => false, 'default' => '15', 'react_conditions' => [ 'relation' => 'AND', [ 'enable_limited_login_attempts' => true, ] ], ], [ 'id' => 'limit_login_attempts_locked_out_duration', 'menu_id' => 'limit_login_attempts', 'group_id' => 'limit_login_attempts_advanced', 'type' => 'select', 'tooltip' => __("The user and IP address will be temporarily unable to login for the specified duration. You can block IP addresses indefinitely via the IP addresses block.", 'really-simple-ssl'), 'label' => __('Lockout duration', 'really-simple-ssl'), 'options' => [ '15' => sprintf(__('%s minutes', 'really-simple-ssl'), 15), '30' => sprintf(__('%s minutes', 'really-simple-ssl'), 30), '60' => sprintf(__('%s hour', 'really-simple-ssl'), 1), '240' => sprintf(__('%s hours', 'really-simple-ssl'), 4), '1440' => sprintf(__('%s day', 'really-simple-ssl'), 1), '10080' => sprintf(__('%s week', 'really-simple-ssl'), 1), '43200' => sprintf(__('%s month', 'really-simple-ssl'), 1), '86400' => sprintf(__('%s months', 'really-simple-ssl'), 2), ], 'disabled' => false, 'default' => '30', 'react_conditions' => [ 'relation' => 'AND', [ 'enable_limited_login_attempts' => true, ] ], ], [ 'id' => 'enable_limited_password_reset_attempts', 'menu_id' => 'limit_login_attempts', 'group_id' => 'limit_login_attempts_advanced', 'type' => 'checkbox', 'label' => __('Limit Password Reset Attempts', 'really-simple-ssl'), 'disabled' => false, 'default' => true, 'tooltip' => __("The user will be blocked after entering too many incorrect logins on the password reset page.", 'really-simple-ssl'), 'react_conditions' => [ 'relation' => 'AND', [ 'enable_limited_login_attempts' => true, ] ], ], [ //Captchas 'id' => 'limit_login_attempts_captcha', 'menu_id' => 'limit_login_attempts', 'group_id' => 'limit_login_attempts_advanced', 'type' => 'checkbox', 'label' => __('Trigger captcha on failed login attempt', 'really-simple-ssl'), 'disabled' => false, 'default' => false, 'comment' => sprintf(__("Please configure your %sCaptcha settings%s before enabling this setting", "really-simple-ssl"), '<a id="set_to_captcha_configuration" href="#settings/general/enable_captcha_provider">', '</a>'), 'react_conditions' => [ 'relation' => 'AND', [ 'enable_limited_login_attempts' => true, 'captcha_fully_enabled' => true, ], ], ], [ 'id' => 'limit_login_attempts_users_view', 'menu_id' => 'limit_login_attempts', 'group_id' => 'limit_login_attempts_users', 'type' => 'user-datatable', 'action' => 'rsssl_limit_login_user', 'options' => [ 'blocked' => __('Blocked', 'really-simple-ssl'), 'locked' => __('Locked-out', 'really-simple-ssl'), 'trusted' => __('Trusted', 'really-simple-ssl'), ], 'disabled' => false, 'default' => false, 'react_conditions' => [ 'relation' => 'AND', [ 'enable_limited_login_attempts' => true, ] ], 'columns' => [ [ 'name' => __('Username', 'really-simple-ssl'), 'sortable' => true, 'searchable' => true, 'column' => 'attempt_value', 'width' => '50%', ], [ 'name' => __('Status', 'really-simple-ssl'), 'sortable' => false, 'column' => 'status', 'width' => '10%', ], [ 'name' => __('Date', 'really-simple-ssl'), 'sortable' => true, 'column' => 'datetime', ], [ 'name' => '', 'sortable' => false, 'column' => 'action', ], ], ], [ 'id' => 'limit_login_attempts_ip_view', 'menu_id' => 'limit_login_attempts', 'group_id' => 'limit_login_attempts_ip_address', 'type' => 'ip-address-datatable', 'action' => 'rsssl_limit_login', 'options' => [ 'blocked' => __('Blocked', 'really-simple-ssl'), 'locked' => __('Locked-out', 'really-simple-ssl'), 'trusted' => __('Trusted', 'really-simple-ssl'), ], 'label' => __('Enable open source blocklist API etc.', 'really-simple-ssl'), 'disabled' => false, 'default' => false, 'react_conditions' => [ 'relation' => 'AND', [ 'enable_limited_login_attempts' => true, ] ], 'columns' => [ [ 'name' => __('IP Address', 'really-simple-ssl'), 'sortable' => true, 'searchable' => true, 'column' => 'attempt_value', 'width' => '50%', ], [ 'name' => __('Status', 'really-simple-ssl'), 'sortable' => false, 'column' => 'status', 'width' => '10%', ], [ 'name' => __('Date', 'really-simple-ssl'), 'sortable' => true, 'column' => 'datetime', ], [ 'name' => '', 'sortable' => false, 'column' => 'action', ], ], ], [ 'id' => 'limit_login_attempts_country_view', 'menu_id' => 'limit_login_attempts', 'group_id' => 'limit_login_attempts_country', 'type' => 'country-datatable', 'action' => 'rsssl_limit_login_country', 'options' => [ 'blocked' => __('Blocked', 'really-simple-ssl'), 'locked' => __('Locked-out', 'really-simple-ssl'), 'trusted' => __('Trusted', 'really-simple-ssl'), ], 'disabled' => false, 'default' => false, 'react_conditions' => [ 'relation' => 'AND', [ 'enable_limited_login_attempts' => true, ] ], 'columns' => [ [ 'name' => '', 'sortable' => false, 'searchable' => true, 'column' => 'attempt_value', 'width' => '4%', ], [ 'name' => __('Country', 'really-simple-ssl'), 'sortable' => true, 'searchable' => true, 'visible' => false, 'column' => 'country_name', 'width' => '200px', ], [ 'name' => __('Continent', 'really-simple-ssl'), 'sortable' => true, 'searchable' => true, 'column' => 'region_name', 'width' => '20%', ], [ 'name' => __('Status', 'really-simple-ssl'), 'sortable' => false, 'column' => 'status', 'width' => '10%', ], [ 'name' => '', 'sortable' => false, 'column' => 'action', ], ], ], [ 'id' => 'event_log_enabled', 'menu_id' => 'limit_login_attempts', 'group_id' => 'limit_login_attempts_event_log', 'type' => 'hidden', 'default' => false, ], [ 'id' => 'event_log_viewer', 'menu_id' => 'limit_login_attempts', 'group_id' => 'limit_login_attempts_event_log', 'type' => 'eventlog-datatable', 'event_type' => 'login-protection', 'action' => 'event_log', 'label' => __('IP address overview', 'really-simple-ssl'), 'disabled' => false, 'default' => false, 'react_conditions' => [ 'relation' => 'AND', [ 'event_log_enabled' => true, ] ], 'columns' => [ [ 'name' => __('Country', 'really-simple-ssl'), 'sortable' => true, 'column' => 'iso2_code', 'width' => '8%', ], [ 'name' => __('Date', 'really-simple-ssl'), 'sortable' => true, 'column' => 'datetime', 'width' => '12%', ], [ 'name' => __('User', 'really-simple-ssl'), 'sortable' => true, 'column' => 'username', 'searchable' => true, 'type' => 'text', 'width' => '12%', ], [ 'name' => __('IP Address', 'really-simple-ssl'), 'sortable' => true, 'searchable' => true, 'column' => 'source_ip', 'type' => 'text', 'width' => '32%', ], [ 'name' => __('Event', 'really-simple-ssl'), 'sortable' => true, 'column' => 'event_name', 'width' => '28%', ] ], ], ] ); }, 200 ); config/fields/hardening-extended.php 0000777 00000016174 15252021227 0013543 0 ustar 00 <?php defined( 'ABSPATH' ) or die(); add_filter( 'rsssl_fields', function( $fields ) { return array_merge( $fields, [ [ 'id' => 'change_debug_log_location', 'group_id' => 'hardening-extended', 'menu_id' => 'hardening-extended', 'type' => 'checkbox', 'tooltip' => __( "A debug.log is publicly accessible and has a standard location. This will change the location to a randomly named folder in /wp-content/", 'really-simple-ssl' ), 'email' => [ 'title' => __( "Settings update: Debug.log file relocated", 'really-simple-ssl' ), 'message' => __( "From now on, the debug.log won’t be publicly accessible whenever wp-debugging is enabled. The debug log will be stored in a randomly named folder in /wp-content/. This prevents possible leakage of sensitive debugging information.", 'really-simple-ssl' ), 'url' => 'https://really-simple-ssl.com/instructions/debug-log-has-been-relocated-but-where', ], 'label' => __( "Change debug.log file location", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'disable_application_passwords', 'menu_id' => 'hardening-extended', 'group_id' => 'hardening-extended', 'type' => 'checkbox', 'label' => __( "Disable application passwords", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'block_admin_creation', 'menu_id' => 'hardening-extended', 'group_id' => 'hardening-extended', 'type' => 'checkbox', 'warning' => __( "This setting will block attempts to assign administrator roles outside the native user creation process by WordPress. This might include other plugins that create, edit or assign roles to users. If you need to create an administrator in a third-party plugin, temporarily disable this setting while you make the changes.", 'really-simple-ssl' ), 'tooltip' => __( "This setting will block attempts to assign administrator roles outside the native user creation process by WordPress. This might include other plugins that create, edit or assign roles to users. If you need to create an administrator in a third-party plugin, temporarily disable this setting while you make the changes.", 'really-simple-ssl' ), 'help' => [ 'label' => 'default', 'url' => 'instructions/about-hardening-features/', 'title' => __( "Unauthorized administrators", 'really-simple-ssl' ), 'text' => __( 'Many vulnerabilities are exploited by injecting a user with administrator capabilities outside of the native WordPress creation process. Under advanced hardening you can prevent this from happening.', 'really-simple-ssl' ), ], 'label' => __( "Restrict creation of administrator roles", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'disable_http_methods', 'menu_id' => 'hardening-extended', 'group_id' => 'hardening-extended', 'type' => 'checkbox', 'tooltip' => __( "This will limit or fully disable HTTP requests that are not needed, but could be used with malicious intent.", 'really-simple-ssl' ), 'label' => __( "Disable HTTP methods", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'rename_db_prefix', 'menu_id' => 'hardening-extended', 'group_id' => 'hardening-extended', 'email' => [ 'title' => __( "Settings update: Database prefix changed", 'really-simple-ssl' ), 'message' => __( "Security through obscurity. Your site is no longer using the default wp_ prefix for database tables. The process has been designed to only complete and replace the tables after all wp_ tables are successfully renamed. In the unlikely event that this does lead to database issues on your site, please navigate to our troubleshooting article.", 'really-simple-ssl' ), 'url' => 'instructions/database-issues-after-changing-prefix', ], 'tooltip' => __( "This will permanently change your database prefixes and you can NOT rollback this feature. Please make sure you have a back-up.", 'really-simple-ssl' ), 'warning' => __( "This will permanently change your database prefixes and you can NOT rollback this feature. Please make sure you have a back-up.", 'really-simple-ssl' ), 'type' => 'checkbox', 'label' => __( "Rename and randomize your database prefix", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'permission_detection', 'menu_id' => 'hardening-extended', 'group_id' => 'hardening-extended', 'type' => 'checkbox', 'tooltip' => __( "Really Simple Security will scan for insecure file and folder permissions on a weekly basis. You will receive an email report and Dashboard notice if insecure permissions are found.", 'really-simple-ssl' ), 'label' => __( "File permissions check", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'change_login_url_enabled', 'menu_id' => 'hardening-extended', 'group_id' => 'hardening-extended', 'warning' => true, 'type' => 'checkbox', 'tooltip' => __( "Allows you to enter a custom login URL.", 'really-simple-ssl' ), 'label' => __( "Enable Custom login URL", 'really-simple-ssl' ), 'email' => [ 'title' => __( "You have changed your login URL", 'really-simple-ssl' ), 'message' => __( "Your login URL has changed to {login_url} to prevent common bot attacks on standard login URLs. Learn more about this feature, common questions and measures to prevent any issues.", 'really-simple-ssl' ), 'url' => 'https://really-simple-ssl.com/instructions/login-url-changed', ], 'disabled' => false, 'default' => false, ], [ 'id' => 'change_login_url', 'menu_id' => 'hardening-extended', 'group_id' => 'hardening-extended', 'type' => 'text', 'tooltip' => __( "Enter a custom login URL. This allows you to log in via this custom URL instead of /wp-admin or /wp-login.php", 'really-simple-ssl' ), 'placeholder' => __( "Example: If you want to change your login page from /wp-admin/ to /control/ answer: control", 'really-simple-ssl' ), 'label' => __( "Custom login URL", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'condition_action' => 'hide', 'pattern' => '[a-zA-Z0-9\-_]+', 'react_conditions' => [ 'relation' => 'AND', [ 'change_login_url_enabled' => 1, ] ], ], [ 'id' => 'change_login_url_failure_url', 'menu_id' => 'hardening-extended', 'group_id' => 'hardening-extended', 'type' => 'postdropdown', 'tooltip' => __( "Users trying to enter via /wp-admin or /wp-login.php will be redirected to this URL.", 'really-simple-ssl' ), 'label' => '', 'disabled' => false, 'default' => '404_default', 'condition_action' => 'hide', 'react_conditions' => [ 'relation' => 'AND', [ 'change_login_url_enabled' => 1, ] ], ], ] ); }, 200 ); config/fields/encryption.php 0000777 00000011165 15252021227 0012173 0 ustar 00 <?php defined( 'ABSPATH' ) or die(); add_filter( 'rsssl_fields', function( $fields ) { return array_merge( $fields, [ [ 'id' => 'redirect', 'menu_id' => 'encryption', 'group_id' => 'encryption_redirect', 'type' => 'select', 'tooltip' => __( "Changing redirect methods should be done with caution. Please make sure you have read our instructions beforehand at the right-hand side.", 'really-simple-ssl' ), 'label' => __( "Redirect method", 'really-simple-ssl' ), 'warning' => true, 'options' => [ 'none' => __( "No redirect", "really-simple-ssl" ), 'wp_redirect' => __( "301 PHP redirect", "really-simple-ssl" ), 'htaccess' => __( "301 .htaccess redirect (read instructions first)", "really-simple-ssl" ), ], 'help' => [ 'label' => 'default', 'title' => __( "Redirect method", 'really-simple-ssl' ), 'text' => __( 'Redirects your site to https with a SEO friendly 301 redirect if it is requested over http.', 'really-simple-ssl' ), ], 'email' => [ 'title' => __("Settings update: .htaccess redirect", 'really-simple-ssl'), 'message' => __("The .htaccess redirect has been enabled on your site. If the server configuration is non-standard, this might cause issues. Please check if all pages on your site are functioning properly.", 'really-simple-ssl'), 'url' => 'https://really-simple-ssl.com/remove-htaccess-redirect-site-lockout', 'condition' => ['redirect' => 'htaccess'] ], 'react_conditions' => [ 'relation' => 'AND', [ 'ssl_enabled' => '1', ] ], 'default' => false, ], [ 'id' => 'mixed_content_fixer', 'menu_id' => 'encryption', 'group_id' => 'mixed-content-general', 'type' => 'checkbox', 'label' => __("Mixed content fixer", 'really-simple-ssl'), 'disabled' => false, 'default' => true, ], [ 'id' => 'switch_mixed_content_fixer_hook', 'menu_id' => 'encryption', 'group_id' => 'mixed-content-general', 'type' => 'checkbox', 'label' => __("Mixed content fixer - init hook", 'really-simple-ssl'), 'disabled' => false, 'required' => false, 'default' => false, 'tooltip' => __('If this option is set to true, the mixed content fixer will fire on the init hook instead of the template_redirect hook. Only use this option when you experience problems with the mixed content fixer.', 'really-simple-ssl'), 'react_conditions' => [ 'relation' => 'AND', [ 'mixed_content_fixer' => 1, ] ], ], [ 'id' => 'admin_mixed_content_fixer', 'menu_id' => 'encryption', 'group_id' => 'mixed-content-general', 'type' => 'checkbox', 'label' => __("Mixed content fixer - back-end", "really-simple-ssl"), 'tooltip' => __("Only enable this if you experience mixed content in the admin environment of your WordPress website.", 'really-simple-ssl'), 'disabled' => false, 'default' => false, ], [ 'id' => 'mixedcontentscan', 'menu_id' => 'encryption', 'group_id' => 'mixed-content-scan', 'type' => 'mixedcontentscan', 'label' => __( "Mixed content scan", "really-simple-ssl" ), 'help' => [ 'label' => 'default', 'url' => 'definition/what-is-mixed-content', 'title' => __( "About the Mixed Content Scan", 'really-simple-ssl' ), 'text' => __( 'The extensive mixed content scan will list all issues and provide a fix, or instructions to fix manually.', 'really-simple-ssl' ), ], 'columns' => [ [ 'name' => __( 'Type', 'really-simple-ssl' ), 'sortable' => true, 'column' => 'warningControl', 'grow' => 5, 'width' => '5%', ], [ 'name' => __( 'Description', 'really-simple-ssl' ), 'sortable' => true, 'column' => 'description', 'grow' => 15, ], [ 'name' => __( 'Location', 'really-simple-ssl' ), 'sortable' => true, 'column' => 'locationControl', 'grow' => 4, ], [ 'name' => __( '', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'detailsControl', 'grow' => 5, ], [ 'name' => __( '', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'fixControl', 'grow' => 5, 'right' => true, ], ], 'disabled' => false, 'default' => false, ], ] ); }, 300 ); config/fields/hardening-xml.php 0000777 00000004505 15252021227 0012536 0 ustar 00 <?php defined( 'ABSPATH' ) or die(); add_filter( 'rsssl_fields', function( $fields ) { return array_merge( $fields, [ [ 'id' => 'xmlrpc_status', 'menu_id' => 'hardening-xml', 'group_id' => 'hardening-xml', 'type' => 'hidden', 'label' => '', 'disabled' => false, 'default' => false, ], [ 'id' => 'xmlrpc_status_lm_enabled_once', 'menu_id' => 'hardening-xml', 'group_id' => 'hardening-xml', 'type' => 'hidden', 'label' => '', 'disabled' => false, 'default' => false, ], [ 'id' => 'xmlrpc_allow_list', 'control_field' => 'xmlrpc_status', 'menu_id' => 'hardening-extended', 'group_id' => 'hardening-xml', 'type' => 'learningmode', 'label' => "XML-RPC", 'disabled' => false, 'default' => false, 'help' => [ 'label' => 'default', 'url' => 'definition/what-is-xml-rpc', 'title' => __( "About XML-RPC", 'really-simple-ssl' ), 'text' => __( 'XML-RPC is a mechanism originally implemented into WordPress to publish content without the need to actually login to the backend. It is also used to login to WordPress from devices other than desktop, or the regular wp-admin interface.', 'really-simple-ssl' ), ], 'react_conditions' => [ 'relation' => 'AND', [ 'disable_xmlrpc' => false, ] ], 'columns' => [ [ 'name' => __( 'Method', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'method', 'grow' => 2, 'width' => '30%', ], [ 'name' => __( 'Login status', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'login_statusControl', 'width' => '20%', ], [ 'name' => __( 'Count', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'count', 'width' => '20%', ], [ 'name' => __( '', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'statusControl', 'width' => '10%', ], [ 'name' => __( '', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'deleteControl', 'width' => '10%', ], ], ], ] ); }, 200 ); config/fields/firewall.php 0000777 00000023762 15252021227 0011614 0 ustar 00 <?php defined( 'ABSPATH' ) or die(); add_filter( 'rsssl_fields', function( $fields ) { return array_merge( $fields, [ [ 'id' => 'enable_firewall', 'menu_id' => 'rules', 'group_id' => 'firewall_list_general', 'type' => 'checkbox', 'label' => __( 'Enable Firewall', 'really-simple-ssl' ), 'default' => false, ], [ 'id' => 'firewall_white_listing_overview', 'menu_id' => 'firewall_blocklists', 'group_id' => 'firewall_white_list_listing', 'type' => 'geo-ip-datatable', 'action' => 'rsssl_geo_white_list', 'react_conditions' => [ 'relation' => 'AND', [ 'enable_firewall' => true, ] ], 'columns' => [ [ 'name' => __('IP Address', 'really-simple-ssl'), 'sortable' => true, 'searchable' => true, 'column' => 'ip_address', 'width' => '45%', ], [ 'name' => __('Note', 'really-simple-ssl'), 'sortable' => false, 'column' => 'note', 'width' => '20%', ], [ 'name' => __('Date', 'really-simple-ssl'), 'sortable' => true, 'column' => 'create_date', 'width' => '18%', ], [ 'name' => '', 'sortable' => false, 'column' => 'action', 'width' => '13%', ], ], ], [ 'id' => 'firewall_block_listing_overview', 'menu_id' => 'firewall_blocklists', 'group_id' => 'firewall_block_list_listing', 'type' => 'blocklist-datatable', 'action' => 'rsssl_firewall_block_list', 'react_conditions' => [ 'relation' => 'AND', [ 'enable_firewall' => true, ] ], 'columns' => [ [ 'name' => __('IP Address', 'really-simple-ssl'), 'sortable' => true, 'searchable' => true, 'column' => 'ip_address', 'width' => '55%', ], [ 'name' => __('Note', 'really-simple-ssl'), 'sortable' => false, 'column' => 'note', 'width' => '22%', ], [ 'name' => __('Time left', 'really-simple-ssl'), 'sortable' => true, 'column' => 'time_left', 'width' => '10%', ], [ 'name' => '', 'sortable' => false, 'column' => 'action', 'width' => '13%', ], ], ], [ 'id' => '404_blocking_threshold', 'menu_id' => 'rules', 'group_id' => '404_blocking', 'type' => 'select', 'label' => __( 'Threshold', 'really-simple-ssl' ), 'tooltip' => sprintf(__('A lockout will occur if an IP address exceeds the threshold within the given timeframe. Select ‘%s’ if you want to disable 404 blocking.', 'really-simple-ssl'), __('Disabled', 'really-simple-ssl')), 'default' => 'lax', 'disabled' => rsssl_maybe_disable_404_blocking(), 'disabledTooltipText' => __("404 errors detected on your homepage. 404 blocking is unavailable, to prevent blocking of legitimate visitors. It is strongly recommended to resolve these errors.", "really-simple-ssl"), 'options' => [ 'disabled' => __( 'Disabled', 'really-simple-ssl' ), 'lax' => __( 'Lax - 10 errors in 2 seconds', 'really-simple-ssl' ), 'normal' => __( 'Normal - 10 errors in 5 seconds', 'really-simple-ssl' ), 'strict' => __( 'Strict - 10 errors in 10 seconds', 'really-simple-ssl' ), ], 'react_conditions' => [ 'relation' => 'AND', [ 'enable_firewall' => true, ] ], ], [ 'id' => '404_blocking_lockout_duration', 'menu_id' => 'rules', 'group_id' => '404_blocking', 'type' => 'select', 'label' => __( 'Lockout duration', 'really-simple-ssl' ), 'tooltip' => __('The IP address will see a locked-out screen for the selected duration.', 'really-simple-ssl'), 'disabled' => rsssl_maybe_disable_404_blocking(), 'disabledTooltipText' => __("404 errors detected on your homepage. 404 blocking is unavailable, to prevent blocking of legitimate visitors. It is strongly recommended to resolve these errors.", "really-simple-ssl"), 'options' => [ '30' => __( '30 minutes', 'really-simple-ssl' ), '60' => __( '1 hour', 'really-simple-ssl' ), '240' => __( '4 hours', 'really-simple-ssl' ), '1440' => __( '1 day', 'really-simple-ssl' ), ], 'react_conditions' => [ 'relation' => 'AND', [ 'enable_firewall' => true, ] ], ], [ 'id' => '404_blocking_captcha_trigger', 'menu_id' => 'rules', 'group_id' => '404_blocking', 'type' => 'checkbox', 'tooltip' => __('Allow visitors that might accidentally exceed the threshold to unblock themselves using a Captcha.', 'really-simple-ssl'), 'label' => __( 'Trigger Captcha on lockout', 'really-simple-ssl' ), 'disabled' => rsssl_maybe_disable_404_blocking(), 'disabledTooltipText' => __("404 errors detected on your homepage. 404 blocking is unavailable, to prevent blocking of legitimate visitors. It is strongly recommended to resolve these errors.", "really-simple-ssl"), 'default' => false, 'comment' => sprintf(__( 'Please configure your %sCaptcha settings%s before enabling this setting', 'really-simple-ssl' ), '<a id="set_to_captcha_configuration" href="#settings/general/enable_captcha_provider">', '</a>'), 'react_conditions' => [ 'relation' => 'AND', [ 'enable_firewall' => true, 'captcha_fully_enabled' => true, ], ], ], [ 'id' => 'user_agent_listing_overview', 'menu_id' => 'rules', 'group_id' => 'user_agents', 'type' => 'user-agents-datatable', 'action' => 'rsssl_user_agent_list', 'options' => [ 'deleted' => __('Deleted', 'really-simple-ssl'), 'blocked' => __('Blocked', 'really-simple-ssl'), ], 'disabled' => false, 'default' => false, 'react_conditions' => [ 'relation' => 'AND', [ 'enable_firewall' => true, ] ], 'columns' => [ [ 'name' => __('User-Agent', 'really-simple-ssl'), 'sortable' => true, 'searchable' => true, 'column' => 'user_agent', 'width' => '20%', ], [ 'name' => __('Note', 'really-simple-ssl'), 'sortable' => false, 'searchable' => false, 'column' => 'note', 'width' => '40%', ], [ 'name' => __('Date Added', 'really-simple-ssl'), 'sortable' => false, 'column' => 'created_at', 'width' => '20%', ], [ 'name' => '', 'sortable' => false, 'column' => 'action', ], ], ], [ 'id' => 'firewall_listing_overview', 'menu_id' => 'rules', 'group_id' => 'firewall_list_listing', 'type' => 'geo-datatable', 'action' => 'rsssl_geo_list', 'options' => [ 'blocked' => __('Blocked', 'really-simple-ssl'), 'locked' => __('Locked-out', 'really-simple-ssl'), 'trusted' => __('Trusted', 'really-simple-ssl'), ], 'disabled' => false, 'default' => false, 'react_conditions' => [ 'relation' => 'AND', [ 'enable_firewall' => true, ] ], 'columns' => [ [ 'name' => __('', 'really-simple-ssl'), 'sortable' => true, 'searchable' => false, 'column' => 'flag', 'width' => '5%', ], [ 'name' => __('Country', 'really-simple-ssl'), 'sortable' => true, 'searchable' => true, 'column' => 'country_name', 'width' => '150px', ], [ 'name' => __('Continent', 'really-simple-ssl'), 'sortable' => false, 'searchable' => false, 'column' => 'region_name', 'width' => '30%', ], [ 'name' => __('Status', 'really-simple-ssl'), 'sortable' => false, 'column' => 'status', 'width' => '20%', ], [ 'name' => '', 'sortable' => false, 'column' => 'action', 'width' => '180px', ], ], ], [ 'id' => 'firewall_event_log_viewer', 'menu_id' => 'firewall_logs', 'group_id' => 'firewall_logs_content', 'type' => 'eventlog-datatable', 'action' => 'event_log', 'event_type' => 'Firewall', 'label' => __('IP address overview', 'really-simple-ssl'), 'disabled' => false, 'default' => false, 'react_conditions' => [ 'relation' => 'AND', [ 'event_log_enabled' => true, ] ], 'columns' => [ [ 'name' => __('Country', 'really-simple-ssl'), 'sortable' => true, 'column' => 'iso2_code', 'width' => '8%', ], [ 'name' => __('IP Address', 'really-simple-ssl'), 'sortable' => true, 'searchable' => true, 'column' => 'source_ip', 'type' => 'text', 'width' => '42%', ], [ 'name' => __('Date', 'really-simple-ssl'), 'sortable' => true, 'column' => 'datetime', 'width' => '20%', ], [ 'name' => __('Event', 'really-simple-ssl'), 'sortable' => true, 'column' => 'event_name', 'width' => '25%', ] ], ], ] ); }, 200 ); config/fields/vulnerability-detection.php 0000777 00000021117 15252021227 0014644 0 ustar 00 <?php defined( 'ABSPATH' ) or die(); add_filter( 'rsssl_fields', function( $fields ) { return array_merge( $fields, [ [ 'id' => 'enable_vulnerability_scanner', 'menu_id' => 'vulnerabilities_basic', 'group_id' => 'vulnerabilities_basic', 'type' => 'checkbox', 'label' => __('Enable vulnerability scanning', 'really-simple-ssl'), 'tooltip' => __( "This feature depends on multiple standard background processes. If a process fails or is unavailable on your system, detection might not work. We run frequent tests for this purpose. We will notify you accordingly if there are any issues.", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'warning' => true, 'help' => [ 'label' => 'default', 'url' => 'instructions/about-vulnerabilities/', 'title' => __( "About Vulnerabilities", 'really-simple-ssl' ), 'text' => __( 'Really Simple Security collects information about plugins, themes, and core vulnerabilities from our database powered by WPVulnerability. Anonymized data about these vulnerable components will be sent to Really Simple Security for statistical analysis to improve open-source contributions. For more information, please read our privacy statement.', 'really-simple-ssl' ), ], ], [ 'id' => 'vulnerabilities_intro_shown', 'menu_id' => 'vulnerabilities_basic', 'group_id' => 'vulnerabilities_basic', 'type' => 'hidden', 'label' => '', 'disabled' => false, 'default' => false, ], [ 'id' => 'enable_feedback_in_plugin', 'menu_id' => 'vulnerabilities_notifications', 'group_id' => 'vulnerabilities_notifications', 'tooltip' => __( "If there's a vulnerability, you will also get feedback on the themes and plugin overview.", 'really-simple-ssl' ), 'warning' => false, 'type' => 'checkbox', 'label' => __('Feedback in plugin overview', 'really-simple-ssl'), 'disabled' => false, 'default' => false, 'react_conditions' => [ 'relation' => 'AND', [ 'enable_vulnerability_scanner' => 1, ] ], ], /* Vulnerability advanced Section */ [ 'id' => 'vulnerability_notification_dashboard', 'menu_id' => 'vulnerabilities_notifications', 'group_id' => 'vulnerabilities_notifications', 'type' => 'select', 'options' => [ '*' => __('None', 'really-simple-ssl'), 'l' => __('Low-risk (default)', 'really-simple-ssl'), 'm' => __('Medium-risk', 'really-simple-ssl'), 'h' => __('High-risk', 'really-simple-ssl'), 'c' => __('Critical', 'really-simple-ssl'), ], 'label' => __('Really Simple Security dashboard', 'really-simple-ssl'), 'disabled' => false, 'default' => 'l', 'react_conditions' => [ 'relation' => 'AND', [ 'enable_vulnerability_scanner' => 1, ] ], ], [ 'id' => 'vulnerability_notification_sitewide', 'menu_id' => 'vulnerabilities_notifications', 'group_id' => 'vulnerabilities_notifications', 'type' => 'select', 'options' => [ '*' => __('None', 'really-simple-ssl'), 'l' => __('Low-risk ', 'really-simple-ssl'), 'm' => __('Medium-risk', 'really-simple-ssl'), 'h' => __('High-risk (default)', 'really-simple-ssl'), 'c' => __('Critical', 'really-simple-ssl'), ], 'label' => __('Site-wide, admin notification', 'really-simple-ssl'), 'disabled' => false, 'default' => 'h', 'react_conditions' => [ 'relation' => 'AND', [ 'enable_vulnerability_scanner' => 1, ] ], ], [ 'id' => 'vulnerability_notification_email_admin', 'menu_id' => 'vulnerabilities_notifications', 'group_id' => 'vulnerabilities_notifications', 'type' => 'select', 'options' => [ '*' => __('None', 'really-simple-ssl'), 'l' => __('Low-risk', 'really-simple-ssl'), 'm' => __('Medium-risk', 'really-simple-ssl'), 'h' => __('High-risk', 'really-simple-ssl'), 'c' => __('Critical (default)', 'really-simple-ssl'), ], 'label' => __('Email', 'really-simple-ssl'), 'tooltip' => __( "This will send emails about vulnerabilities directly from your server. Make sure you can receive emails by the testing a preview below. If this feature is disabled, please enable notifications under general settings.", 'really-simple-ssl' ), 'warning' => true, 'disabled' => (rsssl_is_email_verified() === false), 'disabledTooltipText' => __("This feature is disabled because you have not verified that e-mail is correctly configured on your site.", "really-simple-ssl"), 'default' => 'c', 'react_conditions' => [ 'relation' => 'AND', [ 'enable_vulnerability_scanner' => 1, ], ], ], [ 'id' => 'vulnerabilities_test', 'menu_id' => 'vulnerabilities_notifications', 'group_id' => 'vulnerabilities_notifications', 'type' => 'notificationtester', 'action' => 'test_vulnerability_notification', 'label' => __('Test notifications', 'really-simple-ssl'), 'tooltip' => __('Test notifications can be used to test email delivery and shows how vulnerabilities will be reported on your WordPress installation.', 'really-simple-ssl'), 'disabled' => (rsssl_is_email_verified() === false), 'disabledTooltipText' => __("This feature is disabled because you have not verified that e-mail is correctly configured on your site.", "really-simple-ssl"), 'button_text' => __( "Test notifications", "really-simple-ssl" ), 'react_conditions' => [ 'relation' => 'AND', [ 'enable_vulnerability_scanner' => 1, ] ], ], [ 'id' => 'vulnerabilities-overview', 'menu_id' => 'vulnerabilities_basic', 'group_id' => 'vulnerabilities_overview', 'type' => 'vulnerabilitiestable', 'label' => __('Vulnerabilities Overview', 'really-simple-ssl'), 'disabled' => false, 'default' => false, 'react_conditions' => [ 'relation' => 'AND', [ 'enable_vulnerability_scanner' => 1, ] ], 'columns' => [ [ 'id' => 'component', 'name' => __('Component', 'really-simple-ssl'), 'sortable' => false, 'column' => 'Name', 'width' => '55%', 'searchable' => true, ], [ 'id' => 'date', 'name' => __('Date', 'really-simple-ssl'), 'sortable' => false, 'column' => 'date', 'width' => '15%', ], [ 'id' => 'risk', 'name' => __('Risk', 'really-simple-ssl'), 'sortable' => false, 'column' => 'risk_name', 'width' => '10%', 'searchable' => true, ], [ 'id' => 'action', 'name' => __('', 'really-simple-ssl'), 'sortable' => false, 'column' => 'vulnerability_action', 'width' => '20%', ] ] ], [ 'id' => 'vulnerabilities-measures-overview', 'menu_id' => 'vulnerabilities_measures', 'group_id' => 'vulnerabilities_measures', 'type' => 'riskcomponent', 'options' => [ '*' => __('None', 'really-simple-ssl'), 'l' => __('Low-risk', 'really-simple-ssl'), 'm' => __('Medium-risk', 'really-simple-ssl'), 'h' => __('High-risk', 'really-simple-ssl'), 'c' => __('Critical', 'really-simple-ssl'), ], 'react_conditions' => [ 'relation' => 'AND', [ 'measures_enabled' => true, ] ], 'disabled' => false, 'default' => false, 'columns' => [ [ 'name' => __( 'Action', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'name', 'width' => '20%', ], [ 'name' => __( 'Risk', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'riskSelection', 'width' => '24%', ], [ 'name' => __( 'Description', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'description', 'type' => 'text', ], ], ], [ 'id' => 'measures_enabled', 'menu_id' => 'vulnerabilities_notifications', 'group_id' => 'vulnerabilities_measures', 'type' => 'checkbox', 'label' => __("I have read and understood the risks to intervene with these measures.","really-simple-ssl"), 'comment' => '<a href="https://really-simple-ssl.com/instructions/about-vulnerabilities#measures" target="_blank" rel="noopener noreferrer">'.__("Read more", "really-simple-ssl") .'</a>', 'disabled' => false, 'default' => false, 'react_conditions' => [ 'relation' => 'AND', [ 'enable_vulnerability_scanner' => true, ] ], ], ] ); }, 200 ); config/fields/hibp-integration.php 0000777 00000001227 15252021227 0013242 0 ustar 00 <?php defined( 'ABSPATH' ) or die(); add_filter( 'rsssl_fields', function ( $fields ) { return array_merge( $fields, [ [ 'id' => 'enable_hibp_check', 'menu_id' => 'password_security', 'group_id' => 'password_security_passwords', 'type' => 'checkbox', 'label' => __( 'Enable compromised password check', 'really-simple-ssl' ), 'tooltip' => __( "Prevent usage of passwords that have been included in a databreach. This securely verifies part of the hashed password via the Have I Been Pwned API.", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'warning' => false, ], ] ); }, 200 ); config/fields/letsencrypt.php 0000777 00000000772 15252021227 0012357 0 ustar 00 <?php defined( 'ABSPATH' ) or die(); add_filter( 'rsssl_fields', function( $fields ) { return array_merge( $fields, [ [ 'id' => 'letsencrypt', 'menu_id' => 'encryption_lets_encrypt', 'group_id' => 'encryption_lets_encrypt', 'type' => 'lets-encrypt', 'default' => false, 'server_conditions' => [ 'relation' => 'AND', [ 'rsssl_letsencrypt_generation_allowed' => true, ] ], ], ] ); }, 200 ); config/fields/security-headers.php 0000777 00000033543 15252021227 0013265 0 ustar 00 <?php defined( 'ABSPATH' ) or die(); add_filter( 'rsssl_fields', function( $fields ) { return array_merge( $fields, [ [ 'id' => 'x_xss_protection', 'menu_id' => 'recommended_security_headers', 'group_id' => 'recommended_security_headers', 'type' => 'select', 'label' => "X-XSS-Protection", 'options' => [ 'disabled' => __("Disabled", "really-simple-ssl"), 'zero' => "0 ".__("(recommended)", "really-simple-ssl"), 'one' => "1", 'mode_block' => "1; mode=block", ], 'disabled' => false, 'default' => 'zero', 'help' => [ 'label' => 'default', 'url' => 'definition/about-recommended-security-headers', 'title' => __("About Essential Security Headers", 'really-simple-ssl'), 'text' => __('These security headers are the fundamental security measures to protect your website visitors while visiting your website.', 'really-simple-ssl'), ], ], [ 'id' => 'x_content_type_options', 'menu_id' => 'recommended_security_headers', 'group_id' => 'recommended_security_headers', 'type' => 'checkbox', 'label' => "X-Content-Type options", 'disabled' => false, 'default' => false, ], [ 'id' => 'x_frame_options', 'menu_id' => 'recommended_security_headers', 'group_id' => 'recommended_security_headers', 'type' => 'select', 'options' => [ 'disabled' => __("Off", "really-simple-ssl"), 'DENY' => 'DENY', 'SAMEORIGIN' => 'SAMEORIGIN', ], 'label' => "X-Frame options", 'disabled' => defined('rsssl_pro'), 'comment' => defined('rsssl_pro') ? __("This option is handled by the Content Security Policy/frame-ancestors setting.", "really-simple-ssl") : "", 'default' => false, ], [ 'id' => 'referrer_policy', 'menu_id' => 'recommended_security_headers', 'group_id' => 'recommended_security_headers', 'type' => 'select', 'options' => [ 'disabled' => __("Off", "really-simple-ssl"), 'strict-origin-when-cross-origin' => 'strict-origin-when-cross-origin'.' ('.__("recommended", "really-simple-ssl").')', 'no-referrer' => 'no-referrer', 'origin' => 'origin', 'no-referrer-when-downgrade' => 'no-referrer-when-downgrade', 'unsafe-url' => 'unsafe-url', 'origin-when-cross-origin' => 'origin-when-cross-origin', 'strict-origin' => 'strict-origin', 'same-origin' => 'same-origin', ], 'label' => "Referrer Policy", 'disabled' => false, 'default' => 'strict-origin-when-cross-origin', ], [ 'id' => 'hsts', 'menu_id' => 'hsts', 'group_id' => 'hsts', 'type' => 'checkbox', 'label' => __("HTTP Strict Transport Security", "really-simple-ssl"), 'disabled' => false, 'default' => false, 'help' => [ 'label' => 'default', 'url' => 'definition/what-is-hsts/', 'title' => __("About HTTP Strict Transport Security", 'really-simple-ssl'), 'text' => __('Leveraging your SSL certificate with HSTS is a staple for every website. Force your website over SSL, mitigating risks of malicious counterfeit websites in your name.', 'really-simple-ssl'), ], 'react_conditions' => [ 'relation' => 'AND', [ 'ssl_enabled' => '1', ] ], ], [ 'id' => 'hsts_preload', 'menu_id' => 'hsts', 'group_id' => 'hsts', 'type' => 'checkbox', 'label' => __("Include preload", "really-simple-ssl"), 'comment' => sprintf(__("After enabling this feature, you can submit your site to %shstspreload.org%s", "really-simple-ssl"), '<a target="_blank" href="https://hstspreload.org?domain='.site_url().'">', "</a>"), 'react_conditions' => [ 'relation' => 'AND', [ 'hsts' => true, ] ], 'configure_on_activation' => [ 'condition' => 1, [ 'hsts_subdomains' => true, 'hsts_max_age' => 63072000, ] ], 'disabled' => false, 'default' => false, ], [ 'id' => 'hsts_subdomains', 'menu_id' => 'hsts', 'group_id' => 'hsts', 'type' => 'checkbox', 'label' => __("Include subdomains", "really-simple-ssl"), 'react_conditions' => [ 'relation' => 'AND', [ 'hsts' => true, ] ], 'disabled' => false, 'default' => false, ], [ 'id' => 'hsts_max_age', 'menu_id' => 'hsts', 'group_id' => 'hsts', 'type' => 'select', 'options' => [ '86400' => __('One day (for testing only)', 'really-simple-ssl'), '31536000' => __('One year', 'really-simple-ssl'), '63072000' => __('Two years (required for preload)', 'really-simple-ssl'), ], 'label' => __("Choose the max-age for HSTS", "really-simple-ssl"), 'react_conditions' => [ 'relation' => 'AND', [ 'hsts' => true, ] ], 'disabled' => false, 'default' => '63072000', ], [ 'id' => 'cross_origin_opener_policy', 'menu_id' => 'cross_origin_policy', 'group_id' => 'cross_origin_policy', 'type' => 'select', 'options' => [ 'disabled' => __('Off', 'really-simple-ssl'), 'unsafe-none' => 'unsafe-none', 'same-origin-allow-popups' => 'same-origin-allow-popups', 'same-origin' => 'same-origin', ], 'help' => [ 'label' => 'default', 'url' => 'definition/what-is-a-cross-origin-policy/', 'title' => __("About Cross Origin Policies", 'really-simple-ssl'), 'text' => __('One of the most powerful features, and therefore the most complex are the Cross-Origin headers that can isolate your website so any data leaks are minimized.', 'really-simple-ssl'), ], 'label' => __("Cross Origin Opener Policy", "really-simple-ssl"), 'disabled' => false, 'default' => 'disabled', ], [ 'id' => 'cross_origin_resource_policy', 'menu_id' => 'cross_origin_policy', 'group_id' => 'cross_origin_policy', 'type' => 'select', 'options' => [ 'disabled' => __('Off', 'really-simple-ssl'), 'same-site' => 'same-site', 'same-origin' => 'same-origin', 'cross-origin' => 'cross-origin', ], 'label' => __("Cross Origin Resource Policy", "really-simple-ssl"), 'disabled' => false, 'default' => 'disabled', ], [ 'id' => 'cross_origin_embedder_policy', 'menu_id' => 'cross_origin_policy', 'group_id' => 'cross_origin_policy', 'type' => 'select', 'options' => [ 'disabled' => __('Off', 'really-simple-ssl'), 'require-corp' => 'require-corp', 'same-origin' => 'same-origin', 'unsafe-none' => 'unsafe-none', ], 'label' => __("Cross Origin Embedder Policy", "really-simple-ssl"), 'disabled' => false, 'default' => 'disabled', ], [ 'id' => 'permissions_policy', 'menu_id' => 'permissions_policy', 'group_id' => 'permissions_policy', 'type' => 'permissionspolicy', 'options' => [ '*' => __( "Allow", "really-simple-ssl" ), '()' => __( "Disable", "really-simple-ssl" ), 'self' => __( "Self (Default)", "really-simple-ssl" ) ], 'label' => __( "Permissions Policy", 'really-simple-ssl' ), 'disabled' => false, 'help' => [ 'label' => 'default', 'url' => 'definition/what-is-a-permissions-policy', 'title' => __( "About the Permission Policy", 'really-simple-ssl' ), 'text' => __( 'Browser features are plentiful, but most are not needed on your website.', 'really-simple-ssl' ).' '.__('They might be misused if you don’t actively tell the browser to disable these features.', 'really-simple-ssl' ), ], 'columns' => [ [ 'name' => __( 'Feature', 'really-simple-ssl' ), 'sortable' => true, 'column' => 'title', ], [ 'name' => __( '', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'valueControl', ], ], 'default' => [ [ 'id' => 'accelerometer', 'title' => 'Accelerometer', 'value' => 'self', 'status' => true, ], [ 'id' => 'autoplay', 'title' => 'Autoplay', 'value' => 'self', 'status' => false, ], [ 'id' => 'camera', 'title' => 'Camera', 'value' => 'self', 'status' => false, ], [ 'id' => 'encrypted-media', 'title' => 'Encrypted Media', 'value' => 'self', 'status' => false, ], [ 'id' => 'fullscreen', 'title' => 'Fullscreen', 'value' => 'self', 'status' => false, ], [ 'id' => 'geolocation', 'title' => 'Geolocation', 'value' => '*', 'status' => false, ], [ 'id' => 'microphone', 'title' => 'Microphone', 'value' => 'self', 'status' => false, ], [ 'id' => 'midi', 'title' => 'Midi', 'value' => 'self', 'status' => false, ], [ 'id' => 'payment', 'title' => 'Payment', 'value' => 'self', 'status' => false, ], [ 'id' => 'display-capture', 'title' => 'Display Capture', 'value' => 'self', 'status' => false, ], ], ], [ 'id' => 'enable_permissions_policy', 'menu_id' => 'permissions_policy', 'group_id' => 'permissions_policy', 'type' => 'hidden', 'label' => __( "Enable Permissions Policy", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'upgrade_insecure_requests', 'menu_id' => 'content_security_policy', 'group_id' => 'upgrade_insecure_requests', 'type' => 'checkbox', 'label' => __( "Serve encrypted and authenticated responses", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'help' => [ 'label' => 'default', 'url' => 'definition/what-is-a-content-security-policy', 'title' => __( "About the Content Security Policy", 'really-simple-ssl' ), 'text' => __( 'The content security policy has many options, so we always recommend starting in ‘learning mode’ to see what files and scripts are loaded.', 'really-simple-ssl' ), ], 'react_conditions' => [ 'relation' => 'AND', [ 'ssl_enabled' => '1', ] ], ], [ 'id' => 'csp_frame_ancestors', 'menu_id' => 'content_security_policy', 'group_id' => 'frame_ancestors', 'type' => 'select', 'options' => [ 'disabled' => __("Yes (don't set header)", "really-simple-ssl"), 'none' => "None", 'self' => __("Self (Default)", "really-simple-ssl"), ], 'label' => __( "Allow your domain to be embedded", "really-simple-ssl" ), 'disabled' => false, 'default' => 'self', ], [ 'id' => 'csp_frame_ancestors_urls', 'menu_id' => 'content_security_policy', 'group_id' => 'frame_ancestors', 'type' => 'textarea', 'label' => __( "Add additional domains which can embed your website, if needed. Comma separated.", "really-simple-ssl" ), 'disabled' => maybe_disable_frame_ancestors_url_field(), 'default' => false, 'react_conditions' => [ 'relation' => 'AND', [ 'csp_frame_ancestors' => 'NOT disabled', ] ], ], [ 'id' => 'csp_status', 'menu_id' => 'content_security_policy', 'group_id' => 'content_security_policy_source_directives', 'type' => 'hidden', 'label' => '', 'disabled' => false, 'default' => false, ], [ 'id' => 'csp_status_lm_enabled_once', 'menu_id' => 'content_security_policy', 'group_id' => 'content_security_policy_source_directives', 'type' => 'hidden', 'label' => '', 'disabled' => false, 'default' => false, ], [ 'id' => 'content_security_policy_source_directives', 'control_field' => 'csp_status', 'menu_id' => 'content_security_policy', 'group_id' => 'content_security_policy_source_directives', 'type' => 'learningmode', 'label' => "Content Security Policy", 'disabled' => false, 'default' => false, 'columns' => [ [ 'name' => __( 'Location', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'documenturi', 'grow' => 2, 'width' => '20%', ], [ 'name' => __( 'Directive', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'violateddirective', 'grow' => 1, 'width' => '25%', ], [ 'name' => __( 'Source', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'blockeduri', 'grow' => 1, 'width' => '30%', ], [ 'name' => __( '', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'statusControl', 'grow' => 1, 'width' => '10%', ], [ 'name' => __('', 'really-simple-ssl'), 'sortable' => false, 'column' => 'deleteControl', 'grow' => 1, 'width' => '10%', ], // [ //placeholder until we have resolved the columns // 'name' => '', // ], ], 'modal' => [ 'options' => (defined('rsssl_pro') ? array_keys(RSSSL()->headers->directives) : []), ] ], ] ); }, 200 ); config/fields/two-fa.php 0000777 00000014600 15252021227 0011173 0 ustar 00 <?php defined( 'ABSPATH' ) or die(); add_filter( 'rsssl_fields', function( $fields ) { return array_merge( $fields, [ [ 'id' => 'login_protection_enabled', 'menu_id' => 'two-fa', 'group_id' => 'two_fa_general', 'type' => 'checkbox', 'label' => __( "Enable Two-Factor Authentication", "really-simple-ssl" ), 'server_conditions' => [ 'relation' => 'AND', [ 'is_multisite' => false, ] ], ], [ 'id' => 'two_fa_forced_roles', 'forced_roles_id' => 'two_fa_forced_roles', 'menu_id' => 'two-fa', 'group_id' => 'two_fa_general', 'type' => 'two_fa_roles', 'default' => [], 'label' => __( 'Enforce secure authentication for:', 'really-simple-ssl' ), 'tooltip' => __( 'These user roles will be enforced to either configure Two-factor Authentication or Passkey log in. We recommend to enforce at least administrators.', 'really-simple-ssl' ), 'react_conditions' => [ 'relation' => 'OR', [ 'login_protection_enabled' => true, ], [ 'enable_passkey_login' => true, ] ], 'server_conditions' => [ 'relation' => 'AND', [ 'is_multisite' => false, ] ], ], [ 'id' => 'enable_passkey_login', 'menu_id' => 'two-fa', 'group_id' => 'two_fa_general', 'type' => 'checkbox', 'premium' => true, 'upgrade' => 'https://really-simple-ssl.com/login-protection/', 'label' => __( "Allow secure log in with Passkeys", "really-simple-ssl" ), 'disabled' => false, 'tooltip' => __('Passkeys are a very secure and convenient way to log in. It allows the user to authenticate using their device, browser or password manager.', 'really-simple-ssl'), 'default' => 'disabled', 'server_conditions' => [ 'relation' => 'AND', [ 'is_multisite' => false, ] ], ], [ 'id' => 'two_fa_grace_period', 'menu_id' => 'two_fa', 'group_id' => 'two_fa_general', 'type' => 'select', 'label' => __( 'Allow grace period', 'really-simple-ssl' ), 'tooltip' => __( 'During the grace period users can configure their secure authentication method. When the grace period ends, users for which secure authentication is enforced won’t be able to log in unless secure authentication is correctly configured. The grace period is also applied to new users.', 'really-simple-ssl' ), 'disabled' => false, 'options' => [ '1' => sprintf(__('%s day', 'really-simple-ssl'), 1), '5' => sprintf(__('%s days', 'really-simple-ssl'), 5), '10' => sprintf(__('%s days', 'really-simple-ssl'), 10), '30' => sprintf(__('%s days', 'really-simple-ssl'), 30), ], 'warning' => false, 'default' => '10', 'server_conditions' => [ 'relation' => 'AND', [ 'is_multisite' => false, ] ], 'react_conditions' => [ 'relation' => 'OR', [ 'login_protection_enabled' => true, ], [ 'enable_passkey_login' => true, ] ], ], [ 'id' => 'two_fa_enabled_roles_email', 'enabled_roles_id' => 'two_fa_forced_roles', 'menu_id' => 'two-fa', 'group_id' => 'two_fa_email', 'type' => 'roles_enabled_dropdown', 'disabled' => (rsssl_is_email_verified() === false), 'disabledTooltipText' => __("This feature is disabled because you have not verified that e-mail is correctly configured on your site.", "really-simple-ssl"), 'default' => [], 'tooltip' => __('Email log in will send an authentication code to the user’s email address. This is considered less secure than other 2FA methods.', 'really-simple-ssl'), 'label' => __( 'Enable Email Authentication for:', 'really-simple-ssl' ), 'react_conditions' => [ 'relation' => 'AND', [ 'login_protection_enabled' => 1, ] ], 'server_conditions' => [ 'relation' => 'AND', [ 'is_multisite' => false, ] ], ], [ 'id' => 'two_fa_enabled_roles_totp', 'enabled_roles_id' => 'two_fa_forced_roles', 'menu_id' => 'two-fa', 'group_id' => 'two_fa_email', 'type' => 'roles_enabled_dropdown', 'premium' => true, 'upgrade' => 'https://really-simple-ssl.com/login-protection/', 'default' => ['administrator'], 'tooltip' => __('TOTP means authentication using apps like Google Authenticator.', 'really-simple-ssl'), 'label' => __( 'Enable TOTP Authentication for:', 'really-simple-ssl' ), 'server_conditions' => [ 'relation' => 'AND', [ 'is_multisite' => false, ] ], ], [ 'id' => 'two_fa_users_table', 'menu_id' => 'two-fa', 'group_id' => 'two_fa_users', 'type' => 'twofa-datatable', 'action' => 'two_fa_table', 'label' => __('Users', 'really-simple-ssl'), 'disabled' => false, 'default' => false, 'server_conditions' => [ 'relation' => 'AND', [ 'is_multisite' => false, ] ], 'react_conditions' => [ 'relation' => 'OR', [ 'login_protection_enabled' => true, ], [ 'enable_passkey_login' => true, ], ], 'roles_filter' => true, 'columns' => [ [ 'name' => __( 'Username', 'really-simple-ssl' ), 'sortable' => true, 'searchable' => true, 'visible' => true, 'column' => 'user', 'width' => '70%', ], // [ // 'name' => __( 'User role', 'really-simple-ssl' ), // 'sortable' => false, // 'searchable' => false, // 'visible' => true, // 'column' => 'user_role', // 'width' => '20%', // ], [ 'name' => __( 'Method', 'really-simple-ssl' ), 'sortable' => false, 'searchable' => true, 'visible' => true, 'width' => '10%', 'column' => 'rsssl_two_fa_providers', ], [ 'name' => __( 'Status', 'really-simple-ssl' ), 'sortable' => true, 'searchable' => false, 'visible' => true, 'width' => '10%', 'column' => 'status_for_user', ], [ 'name' => '', 'sortable' => false, 'searchable' => false, 'visible' => true, 'column' => 'resetControl', ], ], ], ] ); }, 200 ); config/fields/hardening-basic.php 0000777 00000013467 15252021227 0013026 0 ustar 00 <?php defined( 'ABSPATH' ) or die(); add_filter( 'rsssl_fields', function( $fields ) { return array_merge( $fields, [ [ 'id' => 'disable_anyone_can_register', 'menu_id' => 'hardening-basic', 'group_id' => 'hardening-basic', 'type' => 'checkbox', 'label' => __( "Disable \"anyone can register\"", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'help' => [ 'label' => 'default', 'url' => 'definition/what-are-hardening-features', 'title' => __( "About Hardening", 'really-simple-ssl' ), 'text' => __( 'Hardening features limit the possibility of potential weaknesses and vulnerabilities which can be misused.', 'really-simple-ssl' ), ], 'recommended' => true, ], [ 'id' => 'disable_file_editing', 'menu_id' => 'hardening-basic', 'group_id' => 'hardening-basic', 'type' => 'checkbox', 'label' => __( "Disable the built-in file editors", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'recommended' => true, ], [ 'id' => 'block_code_execution_uploads', 'menu_id' => 'hardening-basic', 'group_id' => 'hardening-basic', 'type' => 'checkbox', 'label' => __( "Prevent code execution in the public 'Uploads' folder", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'recommended' => true, ], [ 'id' => 'hide_wordpress_version', 'menu_id' => 'hardening-basic', 'group_id' => 'hardening-basic', 'type' => 'checkbox', 'label' => __( "Hide your WordPress version", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'recommended' => true, ], [ 'id' => 'disable_login_feedback', 'menu_id' => 'hardening-basic', 'group_id' => 'hardening-basic', 'type' => 'checkbox', 'tooltip' => __( "By default, WordPress shows if a username or email address exists when a login fails. This will change it to generic feedback.", 'really-simple-ssl' ), 'label' => __( "Prevent login feedback", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'recommended' => true, ], [ 'id' => 'disable_indexing', 'menu_id' => 'hardening-basic', 'group_id' => 'hardening-basic', 'type' => 'checkbox', 'label' => __( "Disable directory browsing", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'recommended' => true, ], [ 'id' => 'disable_user_enumeration', 'menu_id' => 'hardening-basic', 'group_id' => 'hardening-basic', 'type' => 'checkbox', 'label' => __( "Disable user enumeration", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'recommended' => true, ], [ 'id' => 'disable_x_powered_by_header', 'menu_id' => 'hardening-basic', 'group_id' => 'hardening-basic', 'type' => 'checkbox', 'label' => __( "Unset X-Powered-By header", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'recommended' => true, ], [ 'id' => 'rename_admin_user', 'menu_id' => 'hardening-basic', 'warning' => true, 'group_id' => 'hardening-basic', 'type' => 'checkbox', 'label' => __( "Block the username 'admin'", 'really-simple-ssl' ), 'email' => [ 'title' => __( "Settings update: Username 'admin' renamed", 'really-simple-ssl' ), 'message' => sprintf(__( "As a security precaution, the username ‘admin’ has been changed on %s. From now on, you can login with '%s' or an email address.", 'really-simple-ssl' ), '{site_url}','{username}'), 'url' => 'https://really-simple-ssl.com/instructions/locked-out-after-renaming-the-admin-username', 'condition' => 'rsssl_username_admin_changed', ], 'tooltip' => __( "If the username 'admin' currently exists, you can rename it here. Please note that you can no longer use this username, and should use the new username or an email address", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'new_admin_user_login', 'menu_id' => 'hardening-basic', 'group_id' => 'hardening-basic', 'type' => 'text', 'label' => __( "Choose new username to replace 'admin'", 'really-simple-ssl' ), 'disabled' => false, 'default' => '', 'required' => true, 'condition_action' => 'hide', 'react_conditions' => [ 'relation' => 'AND', [ 'rename_admin_user' => 1, ] ], 'server_conditions' => [ 'relation' => 'AND', [ 'rsssl_has_admin_user()' => true, ] ], ], [ 'id' => 'disable_xmlrpc', 'menu_id' => 'hardening-basic', 'group_id' => 'hardening-basic', 'type' => 'checkbox', 'label' => __( "Disable XML-RPC", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'block_display_is_login', 'menu_id' => 'hardening-basic', 'group_id' => 'hardening-basic', 'type' => 'checkbox', 'label' => __( "Block user registrations when login and display name are the same", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'recommended' => true, ], ] ); }, 200 ); config/disable-fields-filter.php 0000777 00000012137 15252021227 0012665 0 ustar 00 <?php defined('ABSPATH') or die(); // Add actions for email verification and resend logi if ( get_option('rsssl_email_verification_status' ) !== 'completed' ) { add_action( 'admin_footer', 'rsssl_generate_email_verification_buttons_js' ); add_action( 'wp_ajax_rsssl_force_confirm_email', 'rsssl_handle_force_confirm_email' ); add_action( 'wp_ajax_rsssl_resend_verification_email', 'rsssl_resend_verification_email' ); } /** * @param $fields * * @return mixed */ function rsssl_modify_fields($fields){ $redirect_index = array_search( 'redirect', array_column( $fields, 'id' ), true ); $htaccess_redirect_allowed = RSSSL()->admin->htaccess_redirect_allowed(); if ( !rsssl_uses_htaccess() || ! $htaccess_redirect_allowed ) { unset($fields[$redirect_index]['options']['htaccess']); } else { $fields[$redirect_index]['warning'] = true; $fields[$redirect_index]['tooltip'] = ' '.esc_html__('On Apache you can use a .htaccess redirect, which is usually faster, but may cause issues on some configurations. Read the instructions in the sidebar first.', 'really-simple-ssl'); if ( rsssl_get_option('redirect' ) !== 'htaccess' ) { $fields[ $redirect_index ]['help'] = [ 'label' => 'warning', 'title' => esc_html__( "Redirect method", 'really-simple-ssl' ), 'text' => esc_html__( 'Enable .htaccess only if you know how to regain access in case of issues.', 'really-simple-ssl' ) . ' ' . esc_html__( 'Redirects your site to https with a SEO friendly 301 redirect if it is requested over http.', 'really-simple-ssl' ), 'url' => 'remove-htaccess-redirect-site-lockout', ]; } } if ( is_multisite() && !rsssl_is_networkwide_active() ){ unset($fields[$redirect_index]['options']['htaccess']); $fields = array_values($fields); } // 2FA and LLA e-mail verification help texts if ( ! rsssl_is_email_verified() ) { $index = array_search( 'send_verification_email', array_column( $fields, 'id' ), true ); $fields[$index]['help'] = rsssl_email_help_text(); $fields = array_values($fields); } if ( ! rsssl_is_email_verified() && rsssl_get_option('login_protection_enabled') == '1' ) { $index = array_search( 'login_protection_enabled', array_column( $fields, 'id' ), true ); $fields[$index]['help'] = rsssl_email_help_text(); // $fields[$index]['disabled'] = true; $fields = array_values($fields); } if ( ! rsssl_is_email_verified() && rsssl_get_option('enable_vulnerability_scanner') == '1' ) { $index = array_search( 'vulnerability_notification_email_admin', array_column( $fields, 'id' ), true ); $fields[$index]['help'] = rsssl_email_help_text(); $fields = array_values($fields); } if ( rsssl_maybe_disable_404_blocking() ) { $index = array_search( '404_blocking_threshold', array_column( $fields, 'id' ), true ); //if LLA is not included yet, this index will be false. if ( $index !== false ) { $fields[$index]['help'] = [ 'label' => 'warning', 'title' => esc_html__( "404 errors detected on your homepage", 'really-simple-ssl' ), 'url' => '404-not-found-errors', 'text' => '404 errors detected on your homepage. 404 blocking is unavailable, to prevent blocking of legitimate visitors. It is strongly recommended to resolve these errors.', ]; $fields = array_values($fields); } } if ( get_option('rsssl_email_verification_status' ) !== 'completed' ) { $email_notifications_index = array_search( 'notifications_email_address', array_column( $fields, 'id' ), true ); $fields[ $email_notifications_index ]['help'] = [ 'label' => 'default', 'title' => esc_html__( "Verification email sent", 'really-simple-ssl' ), 'text' => sprintf( esc_html__( 'Please check your inbox and click the confirm button to confirm that your site is correctly configured to send emails. Didn\'t receive the e-mail? %1$s, or try to: %2$s %3$s %4$s', 'really-simple-ssl' ), '<a href="https://really-simple-ssl.com/email-notifications/" target="_blank">' . esc_html__( 'Check your site\'s SMTP settings', 'really-simple-ssl' ) . '</a>', '<br><br>', '<a class="rsssl-text-link" id="rsssl-resend-verification">' . esc_html__( 'Resend email', 'really-simple-ssl' ) . '</a>', '<a class="rsssl-text-link" id="rsssl-force-confirm">' . esc_html__( 'Force confirm email', 'really-simple-ssl' ) . '</a>' ), ]; } return $fields; } add_filter('rsssl_fields', 'rsssl_modify_fields', 500, 1); function rsssl_email_help_text() { $verifiedText = esc_html__("Email validation completed", 'really-simple-ssl'); $nonVerifiedText = esc_html__("Email not verified yet. Verify your email address to get the most out of Really Simple Security.", "really-simple-ssl"); if (rsssl_check_if_email_essential_feature()) { $nonVerifiedText = esc_html__("You're using a feature where email is an essential part of the functionality. Please validate that you can send emails on your server.", 'really-simple-ssl'); } $text = rsssl_is_email_verified() ? $verifiedText : $nonVerifiedText; return [ 'label' => rsssl_is_email_verified() ? 'success' : 'warning', 'title' => esc_html__("Email validation", 'really-simple-ssl'), 'url' => 'instructions/email-verification', 'text' => wp_kses_post($text), ]; } index.php 0000777 00000000043 15252021227 0006366 0 ustar 00 <?php // You don't belong here. ?> src/Placeholder/MenuPlaceholder.js 0000777 00000000553 15252021227 0013172 0 ustar 00 const MenuPlaceholder = () => { return ( <div className="rsssl-wizard-menu rsssl-grid-item rsssl-menu-placeholder"> <div className="rsssl-grid-item-header"> <h1 className="rsssl-h4"></h1> </div> <div className="rsssl-grid-item-content"></div> </div> ); } export default MenuPlaceholder; src/Placeholder/PagePlaceholder.js 0000777 00000001753 15252021227 0013145 0 ustar 00 import Error from '../utils/Error'; const PagePlaceholder = (props) => { return ( <> <div className="rsssl-header-container"> <div className="rsssl-header"> <img className="rsssl-logo" src={rsssl_settings.plugin_url + 'assets/img/really-simple-security-logo.svg'} alt="Really Simple Security logo"/> </div> </div> <div className="rsssl-content-area rsssl-grid rsssl-dashboard rsssl-page-placeholder"> <div className="rsssl-grid-item rsssl-column-2 rsssl-row-2 "> {props.error && <Error error={props.error} /> } </div> <div className="rsssl-grid-item rsssl-row-2"></div> <div className="rsssl-grid-item rsssl-row-2"></div> <div className="rsssl-grid-item rsssl-column-2"></div> </div> </> ); } export default PagePlaceholder; src/Placeholder/DatatablePlaceholder.js 0000777 00000000554 15252021227 0014150 0 ustar 00 import React from "react"; const DatatablePlaceholder = (props) => { let lines = props.lines; if ( !lines ) lines = 3; return ( <div className="rsssl-datatable-placeholder"> {Array.from({length: lines}).map((item, i) => (<div key={'datatable-placeholder-'+i} ></div>))} </div> ); } export default DatatablePlaceholder; src/Placeholder/Placeholder.js 0000777 00000000704 15252021227 0012343 0 ustar 00 import Error from "../utils/Error"; const Placeholder = (props) => { let lines = props.lines; if ( !lines ) lines = 4; if (props.error) { lines = 0; } return ( <div className="rsssl-placeholder"> {props.error && <Error error={props.error} /> } {Array.from({length: lines}).map((item, i) => (<div className="rsssl-placeholder-line" key={"placeholder-"+i} ></div>))} </div> ); } export default Placeholder; src/Placeholder/DashboardPlaceholder.js 0000777 00000000635 15252021227 0014156 0 ustar 00 const DashboardPlaceholder = (props) => { return ( <> <div className="rsssl-grid-item rsssl-column-2 rsssl-dashboard-placeholder"></div> <div className="rsssl-grid-item rsssl-row-2 rsssl-dashboard-placeholder"></div> <div className="rsssl-grid-item rsssl-row-2 rsssl-dashboard-placeholder"></div> </> ); } export default DashboardPlaceholder; src/Placeholder/SettingsPlaceholder.js 0000777 00000001065 15252021227 0014065 0 ustar 00 import Placeholder from "./Placeholder"; /** * Menu block, rendering the entire menu */ const SettingsPlaceholder = () => { return( <div className="rsssl-wizard-settings rsssl-column-2 rsssl-settings-placeholder"> <div className="rsssl-grid-item"> <div className="rsssl-grid-item-content"> <div className="rsssl-settings-block-intro"></div> </div> </div> <div className="rsssl-grid-item-footer"></div> </div> ) } export default SettingsPlaceholder; src/LetsEncrypt/Installation.js 0000777 00000012051 15252021227 0012612 0 ustar 00 import { __ } from '@wordpress/i18n'; import * as rsssl_api from "../utils/api"; import {dispatch,} from '@wordpress/data'; import {useEffect, useState} from '@wordpress/element'; import sleeper from "../utils/sleeper"; import useFields from "../Settings/FieldsData"; const Installation = (props) => { const {addHelpNotice} = useFields(); const [installationData, setInstallationData] = useState(false); let action = props.action; useEffect(()=> { if ((action && action.status==='warning' && installationData && installationData.generated_by_rsssl )) { addHelpNotice( props.field.id, 'default', __("This is the certificate, which you need to install in your hosting dashboard.", "really-simple-ssl"), __("Certificate (CRT)", "really-simple-ssl") ); addHelpNotice( props.field.id, 'default', __("The private key can be uploaded or pasted in the appropriate field on your hosting dashboard.", "really-simple-ssl"), __("Private Key (KEY)", "really-simple-ssl") ); addHelpNotice( props.field.id, 'default', __("The CA Bundle will sometimes be automatically detected. If not, you can use this file.", "really-simple-ssl"), __("Certificate Authority Bundle (CABUNDLE)", "really-simple-ssl") ); } if ( action && (action.status==='error' || action.status === 'warning') ) { rsssl_api.runLetsEncryptTest('installation_data').then( ( response ) => { if (response) { setInstallationData(response.output); } }); } }, [action]); const handleCopyAction = (type) => { let success; let data = document.querySelector('.rsssl-'+type).innerText; const el = document.createElement('textarea'); el.value = data; //str is your string to copy document.body.appendChild(el); el.select(); try { success = document.execCommand("copy"); } catch (e) { success = false; } document.body.removeChild(el); const notice = dispatch('core/notices').createNotice( 'success', __( 'Copied!', 'really-simple-ssl' ), { __unstableHTML: true, id: 'rsssl_copied_data', type: 'snackbar', isDismissible: true, } ).then(sleeper(3000)).then(( response ) => { dispatch('core/notices').removeNotice('rsssl_copied_data'); }); } if ( !action ) { return (<></>); } if (!installationData) { return (<></>); } return ( <div className="rsssl-test-results"> { !installationData.generated_by_rsssl && <>{__("The certificate is not generated by Really Simple Security, so there are no installation files here","really-simple-ssl")}</>} { installationData.generated_by_rsssl && action.status === 'warning' && <> <h4>{ __("Next step", "really-simple-ssl") }</h4> <div className="rsssl-template-intro">{ __("Install your certificate.", "really-simple-ssl")}</div> <h4>{ __("Certificate (CRT)", "really-simple-ssl") }</h4> <div className="rsssl-certificate-data rsssl-certificate" id="rsssl-certificate">{installationData.certificate_content}</div> <a href={installationData.download_url+"&type=certificate"} className="button button-secondary">{ __("Download", "really-simple-ssl")}</a> <button type="button" onClick={(e) => handleCopyAction('certificate')} className="button button-primary">{ __("Copy content", "really-simple-ssl")}</button> <h4>{ __("Private Key (KEY)", "really-simple-ssl") }</h4> <div className="rsssl-certificate-data rsssl-key" id="rsssl-key">{installationData.key_content}</div> <a href={installationData.download_url+"&type=private_key"} className="button button-secondary">{ __("Download", "really-simple-ssl")}</a> <button type="button" className="button button-primary" onClick={(e) => handleCopyAction('key')} >{ __("Copy content", "really-simple-ssl")}</button> <h4>{ __("Certificate Authority Bundle (CABUNDLE)", "really-simple-ssl") }</h4> <div className="rsssl-certificate-data rsssl-cabundle" id="rsssl-cabundle">{installationData.ca_bundle_content}</div> <a href={installationData.download_url+"&type=intermediate"} className="button button-secondary">{ __("Download", "really-simple-ssl")}</a> <button type="button" className="button button-primary" onClick={(e) => handleCopyAction('cabundle')} >{ __("Copy content", "really-simple-ssl")}</button> </> } </div> ) } export default Installation; src/LetsEncrypt/Generation.js 0000777 00000004217 15252021227 0012251 0 ustar 00 import { __ } from '@wordpress/i18n'; import * as rsssl_api from "../utils/api"; import {dispatch,} from '@wordpress/data'; import sleeper from "../utils/sleeper"; import Hyperlink from "../utils/Hyperlink"; import { Button, } from '@wordpress/components'; import useFields from "../Settings/FieldsData"; const Generation = (props) => { let action = props.action; if (!action) { return (<></>); } const handleSkipDNS = () => { return rsssl_api.runLetsEncryptTest('skip_dns_check').then( ( response ) => { props.restartTests(); const notice = dispatch('core/notices').createNotice( 'success', __( 'Skip DNS verification', 'really-simple-ssl' ), { __unstableHTML: true, id: 'rsssl_skip_dns', type: 'snackbar', isDismissible: true, } ).then(sleeper(3000)).then(( response ) => { dispatch('core/notices').removeNotice('rsssl_skip_dns'); }); }); } return ( <div className="rsssl-test-results"> { (action.status === 'error' && action.action==='verify_dns' ) && <> <p>{ __("We could not check the DNS records. If you just added the record, please check in a few minutes.","really-simple-ssl")} <Hyperlink target="_blank" rel="noopener noreferrer" text={__("You can manually check the DNS records in an %sonline tool%s.","really-simple-ssl")} url="https://mxtoolbox.com/SuperTool.aspx"/> { ' '+__("If you're sure it's set correctly, you can click the button to skip the DNS check.","really-simple-ssl")} </p> <Button variant="secondary" onClick={() => handleSkipDNS()} > { __( 'Skip DNS check', 'really-simple-ssl' ) } </Button> </> } </div> ); } export default Generation; src/LetsEncrypt/DnsVerification.js 0000777 00000007372 15252021227 0013252 0 ustar 00 import {useState, useEffect} from "@wordpress/element"; import { __ } from '@wordpress/i18n'; import Hyperlink from "../utils/Hyperlink"; import { Button, } from '@wordpress/components'; import useFields from "../Settings/FieldsData"; import useMenu from "../Menu/MenuData"; import useLetsEncryptData from "./letsEncryptData"; import {addUrlRef} from "../utils/AddUrlRef"; const DnsVerification = (props) => { const {switchButtonDisabled, updateVerificationType, setRefreshTests} = useLetsEncryptData(); const {fields, addHelpNotice, updateField, setChangedField, saveFields, fetchFieldsData, getFieldValue} = useFields(); const {selectedSubMenuItem, setSelectedSubMenuItem} = useMenu(); const [tokens, setTokens] = useState(false); let action = props.action; useEffect(()=> { if (action && action.action==='challenge_directory_reachable' && action.status==='error') { addHelpNotice( props.field.id, 'default', __("The challenge directory is used to verify the domain ownership.", "really-simple-ssl"), ); } let newTokens = action ? action.output : false; if ( typeof (newTokens) === "undefined" || newTokens.length === 0 ) { newTokens = false; } if ( newTokens ) { setTokens(newTokens); } }, [action]); const handleSwitchToDir = async () => { await setSelectedSubMenuItem('le-directories'); await updateField('verification_type', 'dir'); await setChangedField('verification_type', 'dir'); await saveFields(true, true); await updateVerificationType('dir'); await fetchFieldsData('le-directories'); setRefreshTests(true); } let verificationType = getFieldValue('verification_type'); if (verificationType==='dir') { return (<></>); } return ( <> { tokens && tokens.length>0 && <div className="rsssl-test-results"> <h4>{__("Next step", "really-simple-ssl")}</h4> <p>{__("Add the following token as text record to your DNS records. We recommend to use a short TTL during installation, in case you need to change it.", "really-simple-ssl")} <Hyperlink target="_blank" rel="noopener noreferrer" text={__("Read more", "really-simple-ssl")} url={addUrlRef("https://really-simple-ssl.com/how-to-add-a-txt-record-to-dns")}/> </p> <div className="rsssl-dns-text-records"> <div> <div className="rsssl-dns-domain">@/{__("Domain", "really-simple-ssl")}</div> <div className="rsssl-dns-field">{__("Value", "really-simple-ssl")}</div> </div> { tokens.map((tokenData, i) => <div> <div className="rsssl-dns-">_acme-challenge.{tokenData.domain}</div> <div className="rsssl-dns-field rsssl-selectable">{tokenData.token}</div> </div> )} </div> </div> } <div className="rsssl-test-results"> <p>{__("DNS verification active. You can switch back to directory verification here.","really-simple-ssl")}</p> <Button disabled={switchButtonDisabled} variant="secondary" onClick={() => handleSwitchToDir()} >{ __( 'Switch to directory verification', 'really-simple-ssl' ) }</Button> </div> </> ) } export default DnsVerification; src/LetsEncrypt/Activate.js 0000777 00000000330 15252021227 0011706 0 ustar 00 import Onboarding from "../Onboarding/Onboarding"; const Activate = () => { return ( <div className="rsssl-lets-encrypt-tests"> <Onboarding/> </div> ) } export default Activate; src/LetsEncrypt/Directories.js 0000777 00000020403 15252021227 0012425 0 ustar 00 import {__} from '@wordpress/i18n'; import Hyperlink from "../utils/Hyperlink"; import { Button, } from '@wordpress/components'; import useFields from "../Settings/FieldsData"; import useMenu from "../Menu/MenuData"; import {useEffect} from '@wordpress/element'; import useLetsEncryptData from "./letsEncryptData"; import {addUrlRef} from "../utils/AddUrlRef"; const Directories = ({action, field}) => { const {switchButtonDisabled, updateVerificationType, setRefreshTests} = useLetsEncryptData(); const {addHelpNotice, updateField, setChangedField, saveFields, fetchFieldsData} = useFields(); const { setSelectedSubMenuItem} = useMenu(); useEffect(() => { if ((action && action.action === 'challenge_directory_reachable' && action.status === 'error')) { addHelpNotice( field.id, 'default', __("The challenge directory is used to verify the domain ownership.", "really-simple-ssl"), ); } if ((action && action.action === 'check_key_directory' && action.status === 'error')) { addHelpNotice( field.id, 'default', __("The key directory is needed to store the generated keys.", "really-simple-ssl") + ' ' + __("By placing it outside the root folder, it is not publicly accessible.", "really-simple-ssl"), ); } if ((action && action.action === 'check_certs_directory' && action.status === 'error')) { addHelpNotice( field.id, 'default', __("The certificate will get stored in this directory.", "really-simple-ssl") + ' ' + __("By placing it outside the root folder, it is not publicly accessible.", "really-simple-ssl"), ); } }, [action]); if ( !action ) { return (<></>); } const handleSwitchToDNS = async () => { updateField('verification_type', 'dns'); setChangedField('verification_type', 'dns'); await saveFields(true, true); await updateVerificationType('dns'); await setSelectedSubMenuItem('le-dns-verification'); await fetchFieldsData('le-dns-verification'); setRefreshTests(true); } let dirError = action.status === 'error' && action.action === 'challenge_directory_reachable'; return ( <div className="rsssl-test-results"> {action.status === 'error' && <h4>{__("Next step", "really-simple-ssl")}</h4>} {!dirError && rsssl_settings.hosting_dashboard === 'cpanel' && <><p> <Hyperlink target="_blank" rel="noopener noreferrer" text={__("If you also want to secure subdomains like mail.domain.com, cpanel.domain.com, you have to use the %sDNS%s challenge.", "really-simple-ssl")} url={addUrlRef("https://really-simple-ssl.com/lets-encrypt-authorization-with-dns")}/> {__("Please note that auto-renewal with a DNS challenge might not be possible.", "really-simple-ssl")} </p></> } <div> <p> {__("If the challenge directory cannot be created, or is not reachable, you can either remove the server limitation, or change to DNS verification.", "really-simple-ssl")} </p> <Button disabled={switchButtonDisabled} variant="secondary" onClick={() => handleSwitchToDNS()} > {__('Switch to DNS verification', 'really-simple-ssl')} </Button> </div> {(action.status === 'error' && action.action === 'check_challenge_directory') && <div> <h4> {__("Create a challenge directory", "really-simple-ssl")} </h4> <p> {__("Navigate in FTP or File Manager to the root of your WordPress installation:", "really-simple-ssl")} </p> <ul> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Create a folder called “.well-known”', 'really-simple-ssl')} </li> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Inside the folder called “.well-known” create a new folder called “acme-challenge”, with 644 writing permissions.', 'really-simple-ssl')} </li> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Click the refresh button.', 'really-simple-ssl')} </li> </ul> <h4> {__("Or you can switch to DNS verification", "really-simple-ssl")} </h4> <p>{__("If the challenge directory cannot be created, you can either remove the server limitation, or change to DNS verification.", "really-simple-ssl")}</p> <Button disabled={switchButtonDisabled} variant="secondary" onClick={() => handleSwitchToDNS()} > {__('Switch to DNS verification', 'really-simple-ssl')} </Button> </div> } {(action.status === 'error' && action.action === 'check_key_directory') && <div> <h4> {__("Create a key directory", "really-simple-ssl")} </h4> <p> {__("Navigate in FTP or File Manager to one level above the root of your WordPress installation:", "really-simple-ssl")} </p> <ul> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Create a folder called “ssl”', 'really-simple-ssl')} </li> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Inside the folder called “ssl” create a new folder called “keys”, with 644 writing permissions.', 'really-simple-ssl')} </li> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Click the refresh button.', 'really-simple-ssl')} </li> </ul> </div> } {(action.status === 'error' && action.action === 'check_certs_directory') && <div> <h4> {__("Create a certs directory", "really-simple-ssl")} </h4> <p> {__("Navigate in FTP or File Manager to one level above the root of your WordPress installation:", "really-simple-ssl")} </p> <ul> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Create a folder called “ssl”', 'really-simple-ssl')} </li> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Inside the folder called “ssl” create a new folder called “certs”, with 644 writing permissions.', 'really-simple-ssl')} </li> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Click the refresh button.', 'really-simple-ssl')} </li> </ul> </div> } </div> ) } export default Directories; src/LetsEncrypt/letsEncryptData.js 0000777 00000004410 15252021227 0013257 0 ustar 00 import {create} from 'zustand'; import produce from 'immer'; import * as rsssl_api from "../utils/api"; import {__} from "@wordpress/i18n"; import sleeper from "../utils/sleeper"; import {dispatch} from '@wordpress/data'; const useLetsEncryptData = create(( set, get ) => ({ actionIndex:-1, progress:0, attemptCount:0, refreshTests:false, actionsList:[], updateVerificationType: async (verificationType) => { await rsssl_api.runLetsEncryptTest('update_verification_type', verificationType).then((response) => { let msg = verificationType==='dir' ? __('Switched to Directory', 'really-simple-ssl') : __('Switched to DNS', 'really-simple-ssl'); const notice = dispatch('core/notices').createNotice( 'success', msg, { __unstableHTML: true, id: 'rsssl_switched_to_dns', type: 'snackbar', isDismissible: true, } ).then(sleeper(3000)).then((response) => { dispatch('core/notices').removeNotice('rsssl_switched_to_dns'); }); }); }, setAttemptCount: (attemptCount) => {set(state => ({ attemptCount }))}, setProgress: (progress) => {set(state => ({ progress }))}, setActionsList: (actionsList) => {set(state => ({ actionsList }))}, setActionsListItem: (index, action) => { set( produce((state) => { state.actionsList[index] = action; }) ) }, setActionsListProperty: (index, property, value) => { set( produce((state) => { //first, check if the actionsList has index and property if (typeof state.actionsList[index] === 'undefined' || typeof state.actionsList[index][property]) { return; } state.actionsList[index][property] = value; }) ) }, setRefreshTests: (refreshTests) => {set(state => ({ refreshTests }))}, setActionIndex: (actionIndex) => {set(state => ({ actionIndex }))}, switchButtonDisabled:false, setSwitchButtonDisabled: (switchButtonDisabled) => {set(state => ({ switchButtonDisabled }))}, })); export default useLetsEncryptData; src/LetsEncrypt/LetsEncrypt.js 0000777 00000026405 15252021227 0012435 0 ustar 00 import {useEffect, useRef} from "@wordpress/element"; import * as rsssl_api from "../utils/api"; import sleeper from "../utils/sleeper"; import Directories from "./Directories"; import DnsVerification from "./DnsVerification"; import Generation from "./Generation"; import Activate from "./Activate"; import Installation from "./Installation"; import { __ } from '@wordpress/i18n'; import Icon from "../utils/Icon"; import useFields from "../Settings/FieldsData"; import useLetsEncryptData from "./letsEncryptData"; import DOMPurify from "dompurify"; const LetsEncrypt = ({field}) => { const {handleNextButtonDisabled, getFieldValue} = useFields(); const {setSwitchButtonDisabled, actionsList, setActionsList, setActionsListItem, setActionsListProperty, actionIndex, setActionIndex, attemptCount, setAttemptCount, progress, setProgress, refreshTests, setRefreshTests} = useLetsEncryptData(); const sleep = useRef(1000); const intervalId = useRef(false); const previousActionIndex = useRef(-1); const maxIndex = useRef(1); const refProgress = useRef(0); const lastAction = useRef({}); useEffect(() => { reset(); }, [field.id]) useEffect(() => { setSwitchButtonDisabled(true); }, []); const getActions = () => { let propActions = field.actions; if ( field.id==='generation' ) { propActions = adjustActionsForDNS(propActions); } maxIndex.current = propActions.length; return propActions; } useEffect(() => { handleNextButtonDisabled(false); if ( actionsList.length>0 && actionIndex===-1){ setActionIndex(0); runTest(0, 0); } return () => { // Perform any cleanup logic here if needed // For example, you can cancel any ongoing asynchronous tasks or subscriptions }; }, [actionsList]) useEffect(() => { }, [actionIndex, maxIndex.current]); const startInterval = () => { intervalId.current = setInterval(() => { if (refProgress.current<100) { setProgress(refProgress.current + 0.2); } }, 100); } useEffect(() => { previousActionIndex.current = actionIndex; setProgress( ( 100 / maxIndex.current ) * (actionIndex)); //ensure that progress does not get to 100 when retries are still running let currentAction = actionsList[actionIndex]; if ( currentAction && currentAction.do==='retry' && attemptCount>1 ){ setProgress(90); } }, [actionIndex ]) useEffect (() => { refProgress.current = progress; },[progress]) useEffect(() => { if ( refreshTests ){ setRefreshTests(false); reset(); actionsList.forEach(function(action,i){ setActionsListProperty(i, 'status', 'inactive'); }); } }, [refreshTests ]) const statuses = { 'inactive': { 'icon': 'circle-times', 'color': 'grey', }, 'warning': { 'icon': 'circle-times', 'color': 'orange', }, 'error': { 'icon': 'circle-times', 'color': 'red', }, 'success': { 'icon': 'circle-check', 'color': 'green', }, }; const reset = () => { setSwitchButtonDisabled(true); // handleNextButtonDisabled(true); setActionsList(getActions()); setProgress(0); refProgress.current = 0; setActionIndex(-1); previousActionIndex.current = -1; } const adjustActionsForDNS = (actions) => { //find verification_type let verification_type = getFieldValue('verification_type'); if ( !verification_type ) verification_type = 'dir'; if ( verification_type==='dns' ) { //check if dns verification already is added let dnsVerificationAdded = false; actions.forEach(function(action, i) { if (action.action==="verify_dns"){ dnsVerificationAdded = true; } }); //find bundle index let create_bundle_index = -1; actions.forEach(function(action, i) { if (action.action==="create_bundle_or_renew"){ create_bundle_index = i; } }); if (!dnsVerificationAdded && create_bundle_index>0) { //store create bundle action let actionsCopy = [...actions]; let createBundleAction = actionsCopy[create_bundle_index]; //overwrite create bundle action let newAction = {}; newAction.action = 'verify_dns'; newAction.description = __("Verifying DNS records...", "really-simple-ssl"); newAction.attempts = 2; actionsCopy[create_bundle_index] = newAction; actionsCopy.push(createBundleAction); actions = actionsCopy; } } return actions; } const processTestResult = async (action, newActionIndex) => { // clearInterval(intervalId.current); if ( action.status==='success' ) { setAttemptCount(0); } else { if (!Number.isInteger(action.attemptCount)) { setAttemptCount(0); } //ensure attemptCount is an integer setAttemptCount( parseInt(attemptCount) + 1 ); } //used for dns verification actions let event = new CustomEvent('rsssl_le_response', { detail: action }); document.dispatchEvent(event); //if all tests are finished with success //finalize happens when halfway through our tests it's finished. We can skip all others. if ( action.do === 'finalize' ) { actionsList.forEach(function(action,i){ if (i>newActionIndex) { setActionsListProperty(i, 'hide', true); } }); setActionIndex(maxIndex.current+1); setSwitchButtonDisabled(false); // handleNextButtonDisabled(false); } else if ( action.do === 'continue' || action.do === 'skip' ) { //new action, so reset the attempts count setAttemptCount(1); //skip: drop previous completely, skip to next. if ( action.do === 'skip' ) { setActionsListProperty(newActionIndex, 'hide', true); } //move to next action, but not if we're already on the max if ( maxIndex.current-1 > newActionIndex) { setActionIndex(newActionIndex+1); await runTest(newActionIndex+1); } else { setActionIndex(newActionIndex+1); setSwitchButtonDisabled(false); // handleNextButtonDisabled(false); } } else if (action.do === 'retry' ) { if ( attemptCount >= action.attempts ) { setSwitchButtonDisabled(false); setActionIndex(maxIndex.current); } else { setSwitchButtonDisabled(false); setActionIndex(newActionIndex); await runTest(newActionIndex); } } else if ( action.do === 'stop' ){ setSwitchButtonDisabled(false); setActionIndex(maxIndex.current); } } const runTest = async (newActionIndex) => { let currentAction = {...actionsList[newActionIndex]}; if (!currentAction) return; let test = currentAction.action; const startTime = new Date(); await rsssl_api.runLetsEncryptTest(test, field.id ).then( ( response ) => { const endTime = new Date(); let timeDiff = endTime - startTime; //in ms const elapsedTime = Math.round(timeDiff); currentAction.status = response.status ? response.status : 'inactive'; currentAction.hide = false; currentAction.description = response.message; currentAction.do = response.action; currentAction.output = response.output ? response.output : false; sleep.current = 500; if (elapsedTime<1500) { sleep.current = 1500-elapsedTime; } setActionsListItem(newActionIndex, currentAction); }).then(sleeper(sleep.current)).then( () => { processTestResult(currentAction, newActionIndex); }); } const getStyles = (newProgress) => { return Object.assign( {}, {width: newProgress+"%"}, ); } const getStatusIcon = (action) => { if (!statuses.hasOwnProperty(action.status)) { return statuses['inactive'].icon; } return statuses[action.status].icon } const getStatusColor = (action) => { if (!statuses.hasOwnProperty(action.status)) { return statuses['inactive'].color; } return statuses[action.status].color; } if ( !field.actions ) { return (<></>); } let progressCopy = progress; if (maxIndex.current === actionIndex+1 ){ progressCopy = 100; } //filter out skipped actions let actionsOutput = actionsList.filter(action => action.hide !== true); //ensure the sub components have an action to look at, also if the action has been dropped after last test. let action = actionsList[actionIndex]; if (action){ lastAction.current = action; } else { action = lastAction.current; } let progressBarColor = action.status==='error' ? 'rsssl-orange' : ''; return ( <> <div className="rsssl-lets-encrypt-tests"> <div className="rsssl-progress-bar"><div className="rsssl-progress"><div className={'rsssl-bar ' + progressBarColor} style={getStyles(progressCopy)}></div></div></div> <div className="rsssl_letsencrypt_container rsssl-progress-container field-group"> <ul> {actionsOutput.map((action, i) => <li key={"action-"+i}> <Icon name = {getStatusIcon(action)} color = {getStatusColor(action)} /> {action.do==='retry' && attemptCount >=1 && <>{__("Attempt %s.", "really-simple-ssl").replace('%s', attemptCount)} </>} <span dangerouslySetInnerHTML={{__html: DOMPurify.sanitize(action.description) }}></span> {/* nosemgrep: react-dangerouslysetinnerhtml */} </li> ) } </ul> </div> {field.id === 'directories' && <Directories field={field} action={action}/> } {field.id === 'dns-verification' && <DnsVerification field={field} action={action}/> } {field.id === 'generation' && <Generation field={field} action={action}/> } {field.id === 'installation' && <Installation field={field} action={action}/> } {field.id === 'activate' && <Activate field={field} action={action}/> } </div> </> ) } export default LetsEncrypt; src/Header.js 0000777 00000005723 15252021227 0007075 0 ustar 00 import {useEffect} from "@wordpress/element"; import { __ } from '@wordpress/i18n'; import Notices from "./Settings/Notices"; import useMenu from "./Menu/MenuData"; import {addUrlRef} from "./utils/AddUrlRef"; const Header = () => { const {menu, selectedMainMenuItem, fetchMenuData} = useMenu(); let plugin_url = rsssl_settings.plugin_url; useEffect( () => { fetchMenuData(); }, [] ); let menuItems = menu.filter( item => item!==null ); return ( <div className="rsssl-header-container"> <div className="rsssl-header"> <img className="rsssl-logo" src={plugin_url+"assets/img/really-simple-security-logo.svg"} alt="Really Simple Security logo" /> <div className="rsssl-header-left"> <nav className="rsssl-header-menu"> <ul> {menuItems.map((menu_item, i) => <li key={"menu-"+i}><a className={ selectedMainMenuItem === menu_item.id ? 'active' : '' } href={"#" + menu_item.id.toString()} >{menu_item.title}</a></li>)} </ul> </nav> </div> <div className="rsssl-header-right"> { !rsssl_settings.le_generated_by_rsssl && <a className="rsssl-knowledge-base-link" href={addUrlRef("https://really-simple-ssl.com/knowledge-base")} target="_blank" rel="noopener noreferrer">{__("Documentation", "really-simple-ssl")}</a>} { rsssl_settings.le_generated_by_rsssl && <a href={rsssl_settings.letsencrypt_url}>{__("Let's Encrypt","really-simple-ssl")}</a> } {rsssl_settings.pro_plugin_active && ( <> {(() => { const supportUrl = rsssl_settings.dashboard_url + '#settings&highlightfield=premium_support'; return ( <a href={supportUrl} className="button button-black" target="_self" rel="noopener noreferrer" > {__("Support", "really-simple-ssl")} </a> ); })()} </> )} { !rsssl_settings.pro_plugin_active && <a href={rsssl_settings.upgrade_link} className="button button-black" target="_blank" rel="noopener noreferrer">{__("Go Pro", "really-simple-ssl")}</a> } </div> </div> <Notices className="rsssl-wizard-notices"/> </div> ); } export default Header src/Page.js 0000777 00000013442 15252021227 0006556 0 ustar 00 import {useEffect, useState} from "@wordpress/element"; import Header from "./Header"; import PagePlaceholder from './Placeholder/PagePlaceholder'; import getAnchor from "./utils/getAnchor"; import useFields from "./Settings/FieldsData"; import useMenu from "./Menu/MenuData"; import useOnboardingData from "./Onboarding/OnboardingData"; import useModal from "./Modal/ModalData"; import {setLocaleData} from "@wordpress/i18n"; import ErrorBoundary from "./utils/ErrorBoundary"; const Page = () => { const {error, fields, changedFields, fetchFieldsData, updateFieldsData, fieldsLoaded} = useFields(); const {showOnboardingModal, fetchOnboardingModalStatus, modalStatusLoaded,} = useOnboardingData(); const {selectedMainMenuItem, fetchMenuData } = useMenu(); const {showModal} = useModal(); const [Settings, setSettings] = useState(null); const [DashboardPage, setDashboardPage] = useState(null); const [Notices, setNotices] = useState(null); const [Menu, setMenu] = useState(null); const [ToastContainer, setToastContainer] = useState(null); useEffect(() => { if ( !modalStatusLoaded ) { fetchOnboardingModalStatus(); } }, []); //load the chunk translations passed to us from the rsssl_settings object //only works in build mode, not in dev mode. useEffect(() => { rsssl_settings.json_translations.forEach( (translationsString) => { let translations = JSON.parse(translationsString); let localeData = translations.locale_data[ 'really-simple-ssl' ] || translations.locale_data.messages; localeData[""].domain = 'really-simple-ssl'; setLocaleData( localeData, 'really-simple-ssl' ); }); },[]); useEffect( () => { if (selectedMainMenuItem !== 'dashboard' ){ if (!Settings) { import ("./Settings/Settings").then(({default: Settings}) => { setSettings(() => Settings); }); } if (!Notices) { import("./Settings/Notices").then(({default: Notices}) => { setNotices(() => Notices); }); } if (!Menu) { import ("./Menu/Menu").then(({default: Menu}) => { setMenu(() => Menu); }); } } if (selectedMainMenuItem === 'dashboard' && !DashboardPage ){ import ( "./Dashboard/DashboardPage").then(async ({default: DashboardPage}) => { setDashboardPage(() => DashboardPage); }); } }, [selectedMainMenuItem]); const [OnboardingModal, setOnboardingModal] = useState(null); useEffect( () => { if ( showOnboardingModal && !OnboardingModal ){ import ("./Onboarding/OnboardingModal").then(({ default: OnboardingModal }) => { setOnboardingModal(() => OnboardingModal); }); } }, [showOnboardingModal]); const [Modal, setModal] = useState(null); useEffect( () => { if ( showModal && !Modal ){ import ( "./Modal/Modal").then(({ default: Modal }) => { setModal(() => Modal); }); } }, [showModal]); // async load react-toastify useEffect(() => { import('react-toastify').then((module) => { const ToastContainer = module.ToastContainer; setToastContainer(() => ToastContainer); }); }, []); useEffect( () => { if ( fieldsLoaded ) { fetchMenuData(fields); window.addEventListener('hashchange', (e) => { fetchMenuData(fields); }); } }, [fields] ); useEffect( () => { let subMenuItem = getAnchor('menu'); updateFieldsData(subMenuItem); }, [changedFields] ); useEffect( () => { let subMenuItem = getAnchor('menu'); fetchFieldsData(subMenuItem); }, [] ); if (error) { return ( <> <PagePlaceholder error={error}></PagePlaceholder> </> ) } return ( <div className="rsssl-wrapper"> {OnboardingModal && <ErrorBoundary fallback={"Could not load onboarding modal"}><OnboardingModal /></ErrorBoundary>} {Modal && <ErrorBoundary fallback={"Could not load modal"}><Modal/></ErrorBoundary>} { <> <Header /> <div className={"rsssl-content-area rsssl-grid rsssl-" + selectedMainMenuItem}> { selectedMainMenuItem !== 'dashboard' && Settings && Menu && Notices && <> <ErrorBoundary fallback={"Could not load menu"}><Menu /></ErrorBoundary> <ErrorBoundary fallback={"Could not load settings"}><Settings/></ErrorBoundary> <ErrorBoundary fallback={"Could not load notices"}><Notices className="rsssl-wizard-notices"/></ErrorBoundary> </> } { selectedMainMenuItem === 'dashboard' && DashboardPage && <ErrorBoundary fallback={"Could not load menu"}><DashboardPage /></ErrorBoundary> } </div> </> } {ToastContainer && ( <ToastContainer position="bottom-right" autoClose={2000} limit={3} hideProgressBar newestOnTop closeOnClick pauseOnFocusLoss pauseOnHover theme="light" /> )} </div> ); } export default Page src/Onboarding/Steps/StepFeatures.js 0000777 00000002261 15252021227 0013471 0 ustar 00 import {memo} from "@wordpress/element"; import useOnboardingData from "../OnboardingData"; import CheckboxItem from "../Items/CheckboxItem"; import PremiumItem from "../Items/PremiumItem"; const StepFeatures = () => { const { currentStep } = useOnboardingData(); let items = currentStep.items ? currentStep.items : []; let freeItems = items.filter( (item) => !item.premium ); let premiumItems = items.filter( (item) => item.premium ); return ( <> <ul> {freeItems && ( <div className="rsssl-checkbox-items"> {freeItems.map((item, index) => ( <CheckboxItem key={'step-features' + index} item={item}/> ))} </div> )} {premiumItems && ( <div className="rsssl-premium-items"> {premiumItems.map((item, index) => ( <PremiumItem key={'step-features' + index} item={item}/> ))} </div> )} </ul> </> ); } export default memo(StepFeatures) src/Onboarding/Steps/StepPlugins.js 0000777 00000001571 15252021227 0013337 0 ustar 00 import {memo, useEffect} from "@wordpress/element"; import useOnboardingData from "../OnboardingData"; import CheckboxItem from "../Items/CheckboxItem"; const StepPlugins = () => { const { currentStep, currentStepIndex, setCurrentStepIndex, } = useOnboardingData(); useEffect(()=> { //if all plugins are already activated, we skip the plugins step let plugins = currentStep.items; if ( plugins.filter(item => item.action !== 'none').length === 0) { setCurrentStepIndex(currentStepIndex+1); } }, [] ); let plugins = currentStep.items; return ( <> <ul> { plugins && plugins.map( (item, index) => <CheckboxItem key={'step-plugins'+index} item={item} disabled={item.action==='none'} />) } </ul> </> ); } export default memo(StepPlugins); src/Onboarding/Steps/StepPro.js 0000777 00000002140 15252021227 0012447 0 ustar 00 import {memo} from "@wordpress/element"; import useOnboardingData from "../OnboardingData"; import CheckboxItem from "../Items/CheckboxItem"; import PremiumItem from "../Items/PremiumItem"; const StepPro = () => { const { currentStep, } = useOnboardingData(); let premiumItems = currentStep.items; return ( <> <ul> {!rsssl_settings.pro_plugin_active && premiumItems && ( <div className="rsssl-premium-items"> {premiumItems.map((item, index) => ( <PremiumItem key={'step-pro' + index} item={item}/> ))} </div> )} {rsssl_settings.pro_plugin_active && premiumItems && ( <div className="rsssl-checkbox-items"> {premiumItems.map((item, index) => ( <CheckboxItem key={'step-pro' + index} item={item}/> ))} </div> )} </ul> </> ); } export default memo(StepPro); src/Onboarding/Steps/StepLicense.js 0000777 00000002011 15252021227 0013266 0 ustar 00 import {memo, useEffect, useRef} from "@wordpress/element"; import useOnboardingData from "../OnboardingData"; import License from "../../Settings/License/License"; import useFields from "../../Settings/FieldsData"; import useLicense from "../../Settings/License/LicenseData"; const StepLicense = () => { const { currentStepIndex, setCurrentStepIndex, } = useOnboardingData(); const { getField } = useFields(); const {licenseStatus} = useLicense(); const pro_plugin_active = rsssl_settings.pro_plugin_active; //skip step if either already active, or if not pro useEffect( () => { if ( ! pro_plugin_active || licenseStatus === 'valid' ) { setCurrentStepIndex(currentStepIndex + 1); } }, [licenseStatus, pro_plugin_active] ); return ( <div className={"rsssl-license"}> <License field={getField('license')} isOnboarding={true} /> </div> ); }; export default memo(StepLicense); src/Onboarding/Steps/StepConfig.js 0000777 00000002362 15252021227 0013122 0 ustar 00 import { memo, useEffect } from "@wordpress/element"; import { __ } from "@wordpress/i18n"; import useOnboardingData from "../OnboardingData"; import useFields from "../../Settings/FieldsData"; import Host from "../../Settings/Host/Host"; import ListItem from "../Items/ListItem"; const StepConfig = ({ isModal }) => { const { fetchFieldsData, getField, fieldsLoaded, updateField, setChangedField, saveFields } = useFields(); const { currentStep } = useOnboardingData(); useEffect(() => { if (!fieldsLoaded) { fetchFieldsData(); } }, []); let otherHostsField = fieldsLoaded && getField('other_host_type'); let items = currentStep.items ? currentStep.items : []; if (rsssl_settings.cloudflare && !items.some(item => item.id === 'cf')) { let cfItem = { status: 'success', title: "CloudFlare", id: 'cf' }; items.unshift(cfItem); } return ( <> {isModal && <Host field={otherHostsField} showDisabledWhenSaving={false} />} <ul> {items && items.map((item, index) => <ListItem key={'step-config-' + index} item={item} />)} </ul> </> ); }; export default memo(StepConfig); src/Onboarding/Steps/StepEmail.js 0000777 00000004114 15252021227 0012741 0 ustar 00 import {memo, useEffect} from "@wordpress/element"; import {__} from "@wordpress/i18n"; import useOnboardingData from "../OnboardingData"; import useFields from "../../Settings/FieldsData"; const StepEmail = () => { const { fetchFieldsData, getFieldValue, fieldsLoaded} = useFields(); const { email, setEmail, includeTips, setIncludeTips, } = useOnboardingData(); // Initialize state if needed useEffect(() => { if (!fieldsLoaded) { fetchFieldsData(); } }, []); // Set initial email if available useEffect(() => { const savedEmail = getFieldValue('notifications_email_address'); if (savedEmail && !email) { setEmail(savedEmail); } }, [fieldsLoaded, getFieldValue, email, setEmail]); if (!fieldsLoaded) { return null; } return ( <div className="rsssl-step-email"> <div className="rsssl-email-input"> <input type="email" value={email || ''} placeholder={__("Your email address", "really-simple-ssl")} onChange={(e) => setEmail(e.target.value)} /> </div> <div className="rsssl-email-options"> <label className="rsssl-tips-checkbox"> <input onChange={(e) => setIncludeTips(e.target.checked)} type="checkbox" checked={!!includeTips} /> <span>{__("Include 6 Tips & Tricks to get started with Really Simple Security.", "really-simple-ssl")}</span> <a href="https://really-simple-ssl.com/legal/privacy-statement/" target="_blank" rel="noopener noreferrer" > {__("Privacy Statement", "really-simple-ssl")} </a> </label> </div> </div> ); } export default memo(StepEmail) src/Onboarding/Onboarding.js 0000777 00000006171 15252021227 0012047 0 ustar 00 import { useEffect } from "@wordpress/element"; import { __ } from '@wordpress/i18n'; import Icon from "../utils/Icon"; import Placeholder from '../Placeholder/Placeholder'; import useFields from "../Settings/FieldsData"; import useOnboardingData from "./OnboardingData"; import OnboardingControls from "./OnboardingControls"; import StepEmail from "./Steps/StepEmail"; import StepConfig from "./Steps/StepConfig"; import StepLicense from "./Steps/StepLicense"; import StepFeatures from "./Steps/StepFeatures"; import StepPlugins from "./Steps/StepPlugins"; import StepPro from "./Steps/StepPro"; import './PremiumItem.scss'; import './checkbox.scss'; import './onboarding.scss'; import DOMPurify from 'dompurify'; const Onboarding = ({isModal}) => { const { fetchFieldsData, fieldsLoaded} = useFields(); const { getSteps, error, networkwide, sslEnabled, dataLoaded, processing, currentStep, currentStepIndex, networkActivationStatus, networkProgress, activateSSLNetworkWide, emailVerified } = useOnboardingData(); // Single effect to initialize useEffect(() => { getSteps(false); }, []); // Empty dependency array if (error){ return ( <Placeholder lines="3" error={error}></Placeholder> ) } let processingClass = ''; return ( <> { !dataLoaded && <> <div className="rsssl-onboarding-placeholder"> <ul> <li><Icon name = "loading" color = 'grey' />{__("Fetching next step...", "really-simple-ssl")}</li> </ul> <Placeholder lines="3" ></Placeholder> </div> </> } { dataLoaded && <div className={ processingClass+" rsssl-"+currentStep.id }> { currentStep.id === 'activate_ssl' && <> <StepConfig isModal={isModal}/> </> } { currentStep.id === 'activate_license' && <> <StepLicense /> </> } { currentStep.id === 'features'&& <> <StepFeatures /> </> } {currentStep.id === 'email' && !emailVerified && ( <StepEmail /> )} { currentStep.id === 'plugins' && <> <StepPlugins /> </> } { currentStep.id === 'pro' && <> <StepPro /> </> } { !isModal && <OnboardingControls isModal={false}/> } </div> } </> ) } export default Onboarding; src/Onboarding/OnboardingModal.js 0000777 00000004434 15252021227 0013024 0 ustar 00 import {useEffect} from "@wordpress/element"; import Onboarding from "./Onboarding"; import Placeholder from '../Placeholder/Placeholder'; import { __ } from '@wordpress/i18n'; import Icon from "../utils/Icon"; import useOnboardingData from "./OnboardingData"; import useFields from "../Settings/FieldsData"; import RssslModal from "../../../modal/src/components/Modal/RssslModal"; import OnboardingControls from "./OnboardingControls"; const OnboardingModal = () => { const {footerStatus, showOnboardingModal, fetchOnboardingModalStatus, modalStatusLoaded, currentStep, dismissModal} = useOnboardingData(); const {fieldsLoaded} = useFields(); useEffect(() => { if ( !modalStatusLoaded ) { fetchOnboardingModalStatus(); } }, []); useEffect(()=> { if ( showOnboardingModal ) { dismissModal(false); } }, [showOnboardingModal]); const modalContent = () => { return ( <> { !fieldsLoaded && <> <ul> <li><Icon name = "loading" />{__("Please wait while we detect your setup", "really-simple-ssl")}</li> </ul> <Placeholder lines="3"></Placeholder> </> } { fieldsLoaded && <Onboarding isModal={true} /> } </> ) } const setOpen = (open) => { if ( !open ) { dismissModal(true); } } const handleFooterStatus = () => { if ( footerStatus.length === 0 ) { return false; } return ( <> <Icon name = "loading" color = 'grey' /> {footerStatus} </> ) } return ( <> <RssslModal className={"rsssl-onboarding-modal"} title={currentStep.title} subTitle={currentStep.subtitle} currentStep = {currentStep} content={modalContent()} isOpen={showOnboardingModal} setOpen={setOpen} buttons = <OnboardingControls isModal={true} /> footer = {handleFooterStatus() } /> </> ) } export default OnboardingModal; src/Onboarding/OnboardingControls.js 0000777 00000021470 15252021227 0013572 0 ustar 00 import { Button } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import useMenu from "../Menu/MenuData"; import useFields from "../Settings/FieldsData"; import useOnboardingData from "./OnboardingData"; import useProgress from "../Dashboard/Progress/ProgressData"; import useRiskData from "../Settings/RiskConfiguration/RiskData"; import useSslLabs from "../Dashboard/SslLabs/SslLabsData"; import useLicense from "../Settings/License/LicenseData"; const OnboardingControls = ({isModal}) => { const { getProgressData} = useProgress(); const { updateField, setChangedField, updateFieldsData, fetchFieldsData, saveFields, getFieldValue} = useFields(); const { setSelectedMainMenuItem, selectedSubMenuItem} = useMenu(); const { licenseStatus, toggleActivation } = useLicense(); const { fetchFirstRun, fetchVulnerabilities } = useRiskData(); const { setSslScanStatus, } = useSslLabs(); const { dismissModal, activateSSL, certificateValid, setFooterStatus, networkwide, processing, setProcessing, steps, currentStepIndex, currentStep, setCurrentStepIndex, overrideSSL, email, saveEmail, pluginInstaller, } = useOnboardingData(); const goToDashboard = () => { if ( isModal ) { dismissModal(true); } setSelectedMainMenuItem('dashboard'); } const saveAndContinue = async () => { let vulnerabilityDetectionEnabled = false; if (currentStep.id === 'features') { setCurrentStepIndex(currentStepIndex+1); setProcessing(true); //loop through all items of currentStep.items for (const item of currentStep.items){ if ( item.id=== 'health_scan' && item.activated ) { setFooterStatus(__("Starting SSL health scan...", "really-simple-ssl") ); setSslScanStatus('active'); } if ( ! item.premium || ! item.activated ) { for (const fieldId of Object.values(item.options)) { const value = item.value || item.activated; updateField(fieldId, value); setChangedField(fieldId, value); } } if ( item.id === 'vulnerability_detection' ) { vulnerabilityDetectionEnabled = item.activated; } } setFooterStatus(__("Activating options...", "really-simple-ssl") ); await saveFields(true, false); if (vulnerabilityDetectionEnabled) { setFooterStatus(__("Initializing vulnerability detection...", "really-simple-ssl") ); await fetchFirstRun(); setFooterStatus(__("Scanning for vulnerabilities...", "really-simple-ssl") ); await fetchVulnerabilities(); } setFooterStatus(__("Updating dashboard...", "really-simple-ssl") ); await getProgressData(); setFooterStatus( '' ); setProcessing(false); } if ( currentStep.id === 'email' ) { await saveEmail(); setCurrentStepIndex(currentStepIndex+1); updateField('send_notifications_email', true ); updateField('notifications_email_address', email ); updateFieldsData(selectedSubMenuItem); } if ( currentStep.id === 'plugins' ) { setCurrentStepIndex(currentStepIndex+1) for (const item of currentStep.items) { if (item.action !== 'none' && item.action !== null ) { // Add the promise returned by pluginInstaller to the array await pluginInstaller(item.id, item.action, item.title ); } } setFooterStatus('') } if (currentStep.id === 'pro') { if (rsssl_settings.pro_plugin_active) { setProcessing(true); //loop through all items of currentStep.items for (const item of currentStep.items) { if (item.activated) { if (item.id === 'advanced_headers') { for (const option of item.options) { if (typeof option === 'string') { // Single option updateField(option, true); setChangedField(option, true); } else if (Array.isArray(option)) { // [option -> value] pair const [fieldId, value] = option; updateField(fieldId, value); setChangedField(fieldId, value); } } } else { for (const fieldId of Object.values(item.options)) { const value = item.value || item.activated; updateField(fieldId, value); setChangedField(fieldId, value); } } } } setFooterStatus(__("Activating options...", "really-simple-ssl")); await saveFields(true, false); setFooterStatus(__("Updating dashboard...", "really-simple-ssl")); await getProgressData(); setFooterStatus(''); setProcessing(false); } goToDashboard(); } if ( currentStep.id === 'activate_license' ) { if ( licenseStatus !== 'valid' ) { await toggleActivation(getFieldValue('license')); //if the license is valid, allow the user to go to the next step if ( licenseStatus === 'valid' ) { setCurrentStepIndex( currentStepIndex + 1 ); } } } } const handleActivateSSL = async () => { await activateSSL(); await getProgressData(); await fetchFieldsData(); } const goToLetsEncrypt = () => { if (isModal) dismissModal(true); window.location.href=rsssl_settings.letsencrypt_url; } let ActivateSSLText = networkwide ? __("Activate SSL networkwide", "really-simple-ssl") : __("Activate SSL", "really-simple-ssl"); if (currentStep.id === 'activate_ssl') { return ( <> {isModal && !certificateValid && ( <Button onClick={() => { goToLetsEncrypt() }}> {__("Install SSL", "really-simple-ssl")} </Button> )} <Button disabled={processing || (!certificateValid && !overrideSSL)} isPrimary onClick={() => { handleActivateSSL() }} > {ActivateSSLText} </Button> </> ); } if (currentStep.id === 'activate_license') { return ( <> <Button isPrimary onClick={() => saveAndContinue()}> {currentStep.button || __('Activate', 'really-simple-ssl')} </Button> </> ); } if (currentStepIndex>0 && currentStepIndex<steps.length-1 ) { return ( <> {currentStep.id !== 'activate_license' && <Button onClick={() => {setCurrentStepIndex(currentStepIndex+1)}}>{__('Skip', 'really-simple-ssl')}</Button> } <Button isPrimary onClick={() => saveAndContinue() }> {currentStep.button} </Button> </> ); } //for last step only if ( steps.length-1 === currentStepIndex ) { let upgradeText = rsssl_settings.is_bf ? __("Get 40% off", "really-simple-ssl") : __("Get Pro", "really-simple-ssl"); return ( <> <Button isPrimary onClick={() => saveAndContinue()} disabled={ rsssl_settings.pro_plugin_active && licenseStatus !== 'valid' } > {__('Finish', 'really-simple-ssl')} </Button> { !rsssl_settings.pro_plugin_active && <Button rel="noreferrer noopener" target="_blank" isPrimary href={rsssl_settings.upgrade_link} > {upgradeText} </Button> } </> ); } } export default OnboardingControls; src/Onboarding/PremiumItem.scss 0000777 00000000200 15252021227 0012544 0 ustar 00 .rsssl-modal-premium-container { background-color: var(--rsp-dark-blue); color:#fff; padding:0 5px; margin-right:22px; } src/Onboarding/OnboardingData.js 0000777 00000024142 15252021227 0012637 0 ustar 00 import {create} from 'zustand'; import {produce} from 'immer'; import * as rsssl_api from "../utils/api"; import {__} from "@wordpress/i18n"; const useOnboardingData = create(( set, get ) => ({ steps: [], currentStepIndex: 0, currentStep: {}, error: false, networkProgress: 0, networkActivationStatus: '', certificateValid: '', networkwide: false, sslEnabled: false, overrideSSL: false, showOnboardingModal: false, modalStatusLoaded: false, dataLoaded: false, processing: false, email: '', includeTips:false, sendTestEmail:true, overrideSSLDetection:false, footerStatus: '', setFooterStatus: (footerStatus) => { set({footerStatus:footerStatus}) }, setIncludeTips: (includeTips) => { set(state => ({ includeTips })) }, setSendTestEmail: (sendTestEmail) => { set(state => ({ sendTestEmail })) }, setEmail: (email) => { set(state => ({ email })) }, setShowOnboardingModal: (showOnboardingModal) => { set(state => ({ showOnboardingModal })) }, setProcessing: (processing) => { set(state => ({ processing })) }, setCurrentStepIndex: (currentStepIndex) => { const currentStep = get().steps[currentStepIndex]; set(state => ({ currentStepIndex, currentStep })) }, dismissModal: async (dismiss) => { let data={}; data.dismiss = dismiss; //dismiss is opposite of showOnboardingModal, so we check the inverse. set(() => ({showOnboardingModal: !dismiss})); await rsssl_api.doAction('dismiss_modal', data); }, setOverrideSSL: async (override) => { set({overrideSSL: override}); let data = { overrideSSL: override, }; await rsssl_api.doAction('override_ssl_detection',data ); }, activateSSL: () => { set((state) => ({processing:true})); rsssl_api.runTest('activate_ssl' ).then( async ( response ) => { set((state) => ({processing:false})); get().setCurrentStepIndex( get().currentStepIndex+1 ); //change url to https, after final check if ( response.success ) { if ( response.site_url_changed ) { window.location.reload(); } else { if ( get().networkwide ) { set(state => ({ networkActivationStatus:'main_site_activated' })) } } set({ sslEnabled: true}) } }); }, saveEmail:() => { get().setFooterStatus( __("Updating email preferences..", "really-simple-ssl") ); let data={}; data.email = get().email; data.includeTips = get().includeTips; data.sendTestEmail = get().sendTestEmail; set((state) => ({processing:true})); rsssl_api.doAction('update_email', data).then(( response ) => { set((state) => ({processing:false})); get().setFooterStatus('' ); }); }, updateItemStatus: (stepId, id, action, status, activated) => { const index = get().steps.findIndex(item => { return item.id===stepId; }); const itemIndex = get().steps[index].items.findIndex(item => {return item.id===id;}); set( produce((state) => { if (typeof action !== 'undefined') state.steps[index].items[itemIndex].action = action; if (typeof status !== 'undefined') state.steps[index].items[itemIndex].status = status; if (typeof activated !== 'undefined') state.steps[index].items[itemIndex].activated = activated; }) ) let currentStep = get().steps[get().currentStepIndex]; set( produce((state) => { state.currentStep = currentStep; } )) }, fetchOnboardingModalStatus: async () => { rsssl_api.doAction('get_modal_status').then((response) => { set({ showOnboardingModal: !response.dismissed, modalStatusLoaded: true, }) }); }, setShowOnBoardingModal: (showOnboardingModal) => set(state => ({ showOnboardingModal })), pluginInstaller: async (id, action, title) => { if ( !action ) { return; } set(() => ({processing:true})); get().updateItemStatus('plugins', id, action, 'processing'); get().setFooterStatus(__("Installing %d...", "really-simple-ssl").replace("%d", title)); let nextAction = await processAction(action, id); get().updateItemStatus('plugins', id, nextAction); if ( nextAction!=='none' && nextAction!=='completed') { get().setFooterStatus(__("Activating %d...", "really-simple-ssl").replace("%d", title)); nextAction = await processAction(nextAction, id); get().updateItemStatus('plugins', id, nextAction); } else { get().setFooterStatus(''); } set((state) => ({processing:false})); }, getSteps: async (forceRefresh) => { const {steps, networkActivationStatus, certificateValid, networkProgress, networkwide, overrideSSL, error, sslEnabled, upgradedFromFree} = await retrieveSteps(forceRefresh); const urlParams = new URLSearchParams(window.location.search); const isVerified = urlParams.get('verified_email') === '1'; let initialStepIndex = 0; let verified = isVerified; // If verified, go to features step if (isVerified) { const featuresIndex = steps.findIndex(step => step.id === 'features'); if (featuresIndex !== -1) { initialStepIndex = featuresIndex; // Remove the parameter from URL urlParams.delete('verified_email'); const newUrl = window.location.pathname + (urlParams.toString() ? '?' + urlParams.toString() : ''); window.history.replaceState({}, '', newUrl); } } else if (!upgradedFromFree && (sslEnabled || (networkwide && networkActivationStatus === 'completed'))) { initialStepIndex = 1; } // Set all state at once to prevent multiple rerenders set({ steps, currentStepIndex: initialStepIndex, currentStep: steps[initialStepIndex], networkActivationStatus, certificateValid, networkProgress, networkwide, overrideSSL, sslEnabled, dataLoaded: true, error, emailVerified: verified }); if (networkActivationStatus === 'completed') { set({networkProgress: 100}); } }, refreshSSLStatus: (e) => { e.preventDefault(); set( {processing: true} ); set( produce((state) => { const stepIndex = state.steps.findIndex(step => { return step.id==='activate_ssl'; }); const step = state.steps[stepIndex]; step.items.forEach(function(item, j){ if (item.status==='error') { step.items[j].status = 'processing'; step.items[j].title = __("Re-checking SSL certificate, please wait...","really-simple-ssl"); } }); state.steps[stepIndex] = step; }) ) setTimeout(async function () { const { steps, certificateValid, error, } = await retrieveSteps(true); set({ steps: steps, certificateValid: certificateValid, processing: false, error: error, }); }, 1000) //add a delay, otherwise it's so fast the user may not trust it. }, activateSSLNetworkWide: () => { let progress = get().networkProgress; if (typeof progress !== 'undefined') { get().setFooterStatus(__("%d% of subsites activated.").replace('%d', progress)); } if (get().networkProgress>=100) { set({ sslEnabled: true, networkActivationStatus:'completed' }); return; } set( () => ({processing: true})); rsssl_api.runTest('activate_ssl_networkwide' ).then( ( response ) => { if (response.success) { set({ networkProgress: response.progress, processing:false, }); get().setFooterStatus(__("%d% of subsites activated.").replace('%d', response.progress)); if (response.progress>=100) { get().setFooterStatus(''); set({ sslEnabled: true, networkActivationStatus:'completed' }); } } }); } })); const retrieveSteps = (forceRefresh) => { let data={}; data.forceRefresh = forceRefresh; return rsssl_api.doAction('onboarding_data', data).then( ( response ) => { let steps = response.steps; let sslEnabled= response.ssl_enabled; let networkActivationStatus= response.network_activation_status; let certificateValid = response.certificate_valid; let networkProgress = response.network_progress; let networkwide = response.networkwide; let overrideSSL = response.ssl_detection_overridden; let error = response.error; let upgradedFromFree = response.rsssl_upgraded_from_free; return {steps, networkActivationStatus, certificateValid, networkProgress, networkwide, overrideSSL, error, sslEnabled, upgradedFromFree}; }); } const processAction = async (action, id) => { let data={}; data.id = id; return await rsssl_api.doAction(action, data).then( async ( response ) => { if ( response.success ){ return response.next_action; } else { return 'failed'; } }).catch(error => { return 'failed'; }); } export default useOnboardingData; src/Onboarding/onboarding.scss 0000777 00000002047 15252021227 0012444 0 ustar 00 .rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body, .rsssl-letsencrypt .rsssl-le-activate_ssl { .rsssl-override-detection-toggle { margin-bottom: -15px; } input[type=email] { width: 100%; margin-bottom: var(--rsp-spacing-m); border: 2px solid; height: 50px; border-color: var(--rsp-grey-300); } //hide select label .rsssl-select { label { display: none; } .components-select-control__input{ height:45px; padding: 8px 20px; color: var(--rsp-grey-500); } } .rsssl-activate_ssl, .rsssl-plugins { ul { column-count: 1; } } ul { li { display: flex; align-items: flex-start; margin-bottom: var(--rsp-spacing-xxs); &.rsssl-is-plugin{ background-color: var(--rsp-grey-100); border: none; margin: 10px 0; padding:5px 0; position:relative; } .rsssl-icon{ margin-right:7px; } } } } src/Onboarding/checkbox.scss 0000777 00000003050 15252021227 0012103 0 ustar 00 .rsssl-modal-body, .rsssl-le-activate_ssl { .rsssl-modal-checkbox-container { display: block; position: relative; margin-bottom: 5px; padding-left: 10px; cursor: pointer; font-size: 12px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; overflow:unset !important; &:hover input ~ .rsssl-checkmark { background-color: var(--rsp-grey-400); border: 1px solid var(--rsp-grey-400); border-radius: 3px; } input:checked ~ .rsssl-checkmark { background-color: var(--rsp-dark-blue); border: 1px solid var(--rsp-dark-blue); } input:disabled ~ .rsssl-checkmark { background-color: var(--rsp-grey-400); border: 1px solid var(--rsp-grey-400); } input:checked ~ .rsssl-checkmark:after { display: block; } .rsssl-checkmark::after { left: 6px; top: 3px; width: 5px; height: 7px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); } input { height: 0; width: 0; opacity: 0; cursor: pointer; } .rsssl-checkmark { background-color: var(--rsp-grey-300); border: 1px solid var(--rsp-grey-400); position: absolute; top: 0; left: 0; height: var(--rsp-fs-600); aspect-ratio: 1; } .rsssl-checkmark::after { content: ""; position: absolute; display: none; } } } src/Onboarding/Items/PremiumItem.js 0000777 00000000454 15252021227 0013301 0 ustar 00 import {memo} from "@wordpress/element"; const PremiumItem = ({item}) => { let { title } = item; return ( <li> <div className="rsssl-modal-premium-container"> PRO </div> {title} </li> ) } export default memo(PremiumItem) src/Onboarding/Items/ListItem.js 0000777 00000003745 15252021227 0012604 0 ustar 00 import Icon from "../../utils/Icon"; import {memo} from "@wordpress/element"; import {__} from "@wordpress/i18n"; import useOnboardingData from "../OnboardingData"; const ListItem = ({item}) => { let { title, status, id } = item; const { overrideSSL, setOverrideSSL, certificateValid, } = useOnboardingData(); const statuses = { 'inactive': { 'icon': 'info', 'color': 'grey', }, 'warning': { 'icon': 'circle-times', 'color': 'orange', }, 'error': { 'icon': 'circle-times', 'color': 'red', }, 'success': { 'icon': 'circle-check', 'color': 'green', }, 'processing': { 'icon': 'loading', 'color': 'black', }, }; const statusIcon = item.status!=='success' && item.current_action === 'none' ? 'empty' : statuses[status].icon; const statusColor = statuses[status].color; return ( <> <li> <Icon name = {statusIcon} color = {statusColor} /> {title} { id==='certificate' && !certificateValid && <> <a href="#" onClick={ (e) => refreshSSLStatus(e)}> { __("Check again", "really-simple-ssl")} </a> </> } </li> { id==='certificate' && !certificateValid && <li> <label className="rsssl-override-detection-toggle"> <input onChange={ (e) => setOverrideSSL(e.target.checked)} type="checkbox" checked={overrideSSL} /> {__("Override SSL detection.","really-simple-ssl")} </label> </li> } </> ) } export default memo(ListItem) src/Onboarding/Items/CheckboxItem.js 0000777 00000001367 15252021227 0013415 0 ustar 00 import useOnboardingData from "../OnboardingData"; import {memo} from "@wordpress/element"; const CheckboxItem = ({item, disabled}) => { const { updateItemStatus, currentStep } = useOnboardingData(); let { title, description, id, activated } = item; return ( <li> <label className="rsssl-modal-checkbox-container"> <input type="checkbox" disabled={disabled} checked={activated} value={id} id={id} onChange={(e) => updateItemStatus(currentStep.id, id, null, null, e.target.checked )}/> <span className="rsssl-checkmark"></span> </label> {title} {description && <> - {description}</>} </li> ) } export default memo(CheckboxItem) src/index.php 0000777 00000000043 15252021227 0007155 0 ustar 00 <?php // You don't belong here. ?> src/Dashboard/TipsTricks/TipsTricks.js 0000777 00000004300 15252021227 0013760 0 ustar 00 import {addUrlRef} from "../../utils/AddUrlRef"; const Tip = ({link, content}) => { return ( <div className="rsssl-tips-tricks-element"> <a href={link} target="_blank" rel="noopener noreferrer" title={content}> <div className="rsssl-icon"> <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height="15"> <path fill="var(--rsp-grey-300)" d="M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"/> </svg> </div> <div className="rsssl-tips-tricks-content">{content}</div> </a> </div> ) } const TipsTricks = () => { const items = [ { content: "Why WordPress is (in)secure", link: 'https://really-simple-ssl.com/why-wordpress-is-insecure/', }, { content: "Always be ahead of vulnerabilities", link: 'https://really-simple-ssl.com/staying-ahead-of-vulnerabilities/', }, { content: "Harden your website's security", link: 'https://really-simple-ssl.com/hardening-your-websites-security/', }, { content: "Login protection as essential security", link: 'https://really-simple-ssl.com/login-protection-as-essential-security/', }, { content: "Protect site visitors with Security Headers", link: 'https://really-simple-ssl.com/protecting-site-visitors-with-security-headers', }, { content: "Enable an efficient and performant firewall", link: 'https://really-simple-ssl.com/enable-an-efficient-and-performant-firewall/', }, ]; return ( <div className="rsssl-tips-tricks-container"> {items.map((item, i) => <Tip key={"trick-"+i} link={addUrlRef(item.link)} content={item.content} /> ) } </div> ); } export default TipsTricks src/Dashboard/TipsTricks/TipsTricksFooter.js 0000777 00000000634 15252021227 0015145 0 ustar 00 import { __ } from '@wordpress/i18n'; import {addUrlRef} from "../../utils/AddUrlRef"; const TipsTricksFooter = () => { return ( <> <a href={addUrlRef("https://really-simple-ssl.com/knowledge-base-overview/")} target="_blank"rel="noopener noreferrer" className="button button-secondary">{ __("Documentation", "really-simple-ssl")}</a> </> ); } export default TipsTricksFooter src/Dashboard/Vulnerabilities/VulnerabilitiesHeader.js 0000777 00000001460 15252021227 0017201 0 ustar 00 import { __ } from '@wordpress/i18n'; import {useEffect, useState} from "@wordpress/element"; import useFields from "../../Settings/FieldsData"; const VulnerabilitiesHeader = () => { const {fields, getFieldValue} = useFields(); const [vulEnabled, setVulEnabled] = useState(false); useEffect(() => { if (getFieldValue('enable_vulnerability_scanner')==1) { setVulEnabled(true); } }, [fields]); return ( <> <h3 className="rsssl-grid-title rsssl-h4">{ vulEnabled ? __( "Vulnerabilities", 'really-simple-ssl' ) : __( "Hardening", 'really-simple-ssl' ) }</h3> <div className="rsssl-grid-item-controls"> <span className="rsssl-header-html"></span> </div> </> ) } export default VulnerabilitiesHeader; src/Dashboard/Vulnerabilities/VulnerabilitiesFooter.js 0000777 00000002002 15252021227 0017240 0 ustar 00 import {useEffect, useState} from '@wordpress/element'; import {__} from '@wordpress/i18n'; import useRiskData from "../../Settings/RiskConfiguration/RiskData"; import useFields from "../../Settings/FieldsData"; import {getRelativeTime} from '../../utils/formatting'; const VulnerabilitiesFooter = (props) => { const {lastChecked} = useRiskData(); const {fields, getFieldValue} = useFields(); const [vulEnabled, setVulEnabled] = useState(false); useEffect(() => { if (getFieldValue('enable_vulnerability_scanner')==1) { setVulEnabled(true); } }, [fields]); const styleFooter = { textAlign: 'right', position: 'relative', right: '0', } return ( <> <a href="#settings/vulnerabilities" className={'button button-default'}>{__('Settings', 'really-simple-ssl')}</a> {vulEnabled? <p className={'rsssl-small-text'}>{getRelativeTime(lastChecked)}</p>: null} </> ) } export default VulnerabilitiesFooter; src/Dashboard/Vulnerabilities/Vulnerabilities.js 0000777 00000030276 15252021227 0016077 0 ustar 00 import Icon from "../../utils/Icon"; import {__, _n} from "@wordpress/i18n"; import {useEffect, useState} from "@wordpress/element"; import useFields from "../../Settings/FieldsData"; import useRiskData from "../../Settings/RiskConfiguration/RiskData"; const Vulnerabilities = () => { const { vulnerabilities, vulnerabilityScore, updates, dataLoaded, fetchVulnerabilities } = useRiskData(); const {fields, getFieldValue} = useFields(); const [vulnerabilityWord, setVulnerabilityWord] = useState(''); const [updateWord, setUpdateWord] = useState(''); const [updateWordCapitalized, setUpdateWordCapitalized] = useState(''); const [vulnerabilityWordCapitalized, setVulnerabilityWordCapitalized] = useState(''); const [updateString, setUpdateString] = useState(''); const [hardeningWord, setHardeningWord] = useState(''); const [notEnabledHardeningFields, setNotEnabledHardeningFields] = useState(0); const [vulEnabled, setVulEnabled] = useState(false); useEffect(() => { if (getFieldValue('enable_vulnerability_scanner')==1) { setVulEnabled(true); } }, [fields]); useEffect(() => { if (!dataLoaded) { fetchVulnerabilities(); } }, [vulEnabled]); useEffect(() => { //singular or plural of the word vulnerability const v = (vulnerabilities === 1) ? __("vulnerability", "really-simple-ssl") : __("vulnerabilities", "really-simple-ssl"); setVulnerabilityWordCapitalized(v.charAt(0).toUpperCase() + v.slice(1)); setVulnerabilityWord(v); const u = (updates === 1) ? __("update", "really-simple-ssl") : __("updates", "really-simple-ssl"); const s = _n('You have %s update pending', 'You have %s updates pending', updates, 'really-simple-ssl').replace('%s', updates); setUpdateWord(u); setUpdateWordCapitalized(u.charAt(0).toUpperCase() + u.slice(1)); setUpdateString(s); const h = (notEnabledHardeningFields === 1) ? __("hardening feature", "really-simple-ssl") : __("hardening features", "really-simple-ssl"); setHardeningWord(h); },[vulnerabilities, updates, notEnabledHardeningFields]) useEffect(() => { if (fields.length>0) { let notEnabledFields = fields.filter(field => field.recommended); //we need to filter enabled fields, but also disabled fields, because these are not enabled, but set by another method, so disabled notEnabledFields = notEnabledFields.filter(field => field.value !== 1 && field.disabled !== true); setNotEnabledHardeningFields(notEnabledFields.length); } },[fields]) let vulClass = 'rsssl-inactive'; let badgeVulStyle = vulEnabled?'rsp-success':'rsp-default'; let badgeUpdateStyle = 'rsp-success'; let iconVulColor = 'green'; let iconVulEnabledColor = 'red'; let iconUpdateColor = 'black'; if (vulEnabled || notEnabledHardeningFields > 0 || updates > 0) { //now we calculate the score let score = vulnerabilityScore(); //we create correct badge style if (score >= 5) { badgeVulStyle = 'rsp-critical'; iconVulColor = 'red'; } else if (score < 4 && score > 0) { badgeVulStyle = 'rsp-medium'; iconVulColor = 'yellow'; } if (updates >= 5) { badgeUpdateStyle = 'rsp-critical'; iconUpdateColor = 'red'; } else if (score < 5 && score > 0) { badgeUpdateStyle = 'rsp-medium'; iconUpdateColor = 'yellow'; } if ( score < notEnabledHardeningFields ) { score = notEnabledHardeningFields; } if (score < updates) { score = updates; } if (score === 0) { vulClass = 'rsssl-success'; } else if (score < 5) { vulClass = 'rsssl-warning'; } else { vulClass = 'rsssl-error'; } // if (!vulEnabled) vulClass = "rsssl-inactive"; } const checkVulActive = () => { if (vulEnabled) { // iconVulEnabledColor = 'green'; return (<></>) } return ( <> <div className="rsssl-hardening-list-item"> <Icon name="info" color='yellow'/> <p className={'rsssl-hardening-list-item-text'}> {__("Enable vulnerability detection", "really-simple-ssl")}</p> <a href="#settings/vulnerabilities">{__("Enable", "really-simple-ssl")}</a> </div> </> ) } const checkUpdates = () => { let icon = 'circle-check'; let iconColor = 'green'; if (updates > 0) { icon = 'info'; iconColor = 'yellow'; } if (updates >= 5) { icon = 'circle-times'; iconColor = 'red'; } if (updates) { return ( <> <div className="rsssl-hardening-list-item"> <Icon name={icon} color={iconColor}/> <p className="rsssl-hardening-list-item-text"> {updateString} </p> <a href={rsssl_settings.plugins_url + "?plugin_status=upgrade"} style={linkStyle}>{updateWordCapitalized}</a> </div> </> ) } else { return ( <> <div className="rsssl-hardening-list-item"> <Icon name={icon} color={iconColor}/> <p className="rsssl-hardening-list-item-text"> {updateString} </p> </div> </> ) } } const checkVul = () => { let icon = 'circle-check'; let iconColor = 'green'; if (vulnerabilityScore() > 0) { icon = 'info'; iconColor = 'yellow'; } if (vulnerabilityScore() >= 5) { icon = 'circle-times'; iconColor = 'red'; } if (!vulEnabled) { return ( <> </> ) } if (vulnerabilities) { return ( <> <div className="rsssl-hardening-list-item"> <Icon name={icon} color={iconColor}/> <p className="rsssl-hardening-list-item-text"> {__("You have %s %d", "really-simple-ssl") .replace("%s", vulnerabilities) .replace("%d", vulnerabilityWord) } </p> <a style={linkStyle} href={'#settings/vulnerabilities'}>{__('Learn more', 'really-simple-ssl')}</a> </div> </> ) } else { return ( <> <div className="rsssl-hardening-list-item"> <Icon name="circle-check" color='green'/> <p className="rsssl-hardening-list-item-text"> {__("You have %s %d", "really-simple-ssl") .replace("%d", vulnerabilityWord) .replace("%s", vulnerabilities) } </p> </div> </> ) } } const linkStyle = { marginLeft: '0.3em' } const checknotEnabledHardeningFields = () => { if (notEnabledHardeningFields) { let icon = 'circle-check'; let iconColor = 'green'; if (notEnabledHardeningFields > 0) { icon = 'info'; iconColor = 'yellow'; } if (notEnabledHardeningFields >= 5) { icon = 'circle-times'; iconColor = 'red'; } return ( <> <div className="rsssl-hardening-list-item"> <Icon name={icon} color={iconColor}/> <p className={"rsssl-hardening-list-item-text"}> {__("You have %s open %d", "really-simple-ssl").replace("%s", notEnabledHardeningFields).replace('%d',hardeningWord)} </p> <a href="#settings/hardening">{__("Settings", "really-simple-ssl")}</a> </div> </> ) } else { return (<> <div className="rsssl-hardening-list-item"> <Icon name="circle-check" color='green'/> <p className={"rsssl-hardening-list-item-text"}>{__("Hardening features are configured", "really-simple-ssl")}</p> </div> </>) } } return ( <> {dataLoaded ? <div className={'rsssl-hardening'}> <div className="rsssl-gridblock-progress" ></div> <div className={"rsssl-hardening-select " + vulClass}> <div className="rsssl-hardening-select-item"> {vulEnabled ? <Icon color={iconVulColor} size={23} name="radar-duotone"></Icon> : <Icon size={23} color={iconVulEnabledColor} name="satellite-dish-duotone"></Icon>} <h2>{vulEnabled ? vulnerabilities : '?'}</h2> <span className={"rsssl-badge " + badgeVulStyle}>{vulnerabilityWordCapitalized}</span> </div> <div className="rsssl-hardening-select-item"> { updates ? <Icon size={23} color={iconUpdateColor} name="rotate-exclamation-light"></Icon> : <Icon size={23} color={'black'} name="rotate-light"></Icon>} <h2>{updates}</h2> <span className={"rsssl-badge " + badgeUpdateStyle}>{updateWordCapitalized}</span> </div> </div> <div className="rsssl-hardening-list"> {checknotEnabledHardeningFields()} {checkVulActive()} {checkVul()} {checkUpdates()} </div> </div> : <div className="rsssl-hardening"> <div className="rsssl-gridblock-progress" ></div> <div className="rsssl-hardening-select"> <div className="rsssl-hardening-select-item"> <Icon size={23} color={'grey'} name="radar-duotone"></Icon> <h2>0</h2> <span className={"rsssl-badge rsp-default"}>{vulnerabilityWordCapitalized}</span> </div> <div className="rsssl-hardening-select-item"> <Icon size={23} color={'grey'} name="rotate-exclamation-light"></Icon> <h2>0</h2> <span className={"rsssl-badge rsp-default"}>{updateWordCapitalized}</span> </div> </div> <div className="rsssl-hardening-list"> <div className="rsssl-hardening-list-item"> <Icon color={'grey'} name="circle-check"></Icon> <p className={"rsssl-hardening-list-item-text"}>{__("Loading...", "really-simple-ssl")}</p> </div> <div className="rsssl-hardening-list-item"> <Icon color={'grey'} name="circle-check"></Icon> <p className={"rsssl-hardening-list-item-text"}>{__("Loading...", "really-simple-ssl")}</p> </div> <div className="rsssl-hardening-list-item"> <Icon color={'grey'} name="circle-check"></Icon> <p className={"rsssl-hardening-list-item-text"}>{__("Loading...", "really-simple-ssl")}</p> </div> </div> </div> } </> ) } export default Vulnerabilities; src/Dashboard/Progress/ProgressBlockHeader.js 0000777 00000003603 15252021227 0015263 0 ustar 00 import { __ } from '@wordpress/i18n'; import { useEffect, } from '@wordpress/element'; import useProgress from "./ProgressData"; const ProgressHeader = () => { const {setFilter, filter, fetchFilter, notices, error } = useProgress(); useEffect( () => { fetchFilter(); }, [] ); const onClickHandler = (e) => { let filter = e.target.getAttribute('data-filter'); if (filter==='all' || filter==='remaining') { setFilter(filter); } } if (error ) { return ( <></> ); } let all_task_count = 0; let open_task_count = 0; all_task_count = notices.length; let openNotices = notices.filter(function (notice) { return notice.output.status==='open' || notice.output.status==='warning'; }); open_task_count = openNotices.length; return ( <> <h3 className="rsssl-grid-title rsssl-h4">{ __( "Progress", 'really-simple-ssl' ) }</h3> <div className="rsssl-grid-item-controls"> <div className={"rsssl-task-switcher-container rsssl-active-filter-"+filter}> <span className="rsssl-task-switcher rsssl-all-tasks" onClick={onClickHandler} htmlFor="rsssl-all-tasks" data-filter="all"> { __( "All tasks", "really-simple-ssl" ) } <span className="rsssl_task_count">({all_task_count})</span> </span> <span className="rsssl-task-switcher rsssl-remaining-tasks" onClick={onClickHandler} htmlFor="rsssl-remaining-tasks" data-filter="remaining"> { __( "Remaining tasks", "really-simple-ssl" )} <span className="rsssl_task_count">({open_task_count})</span> </span> </div> </div> </> ); } export default ProgressHeader; src/Dashboard/Progress/ProgressFooter.js 0000777 00000006763 15252021227 0014370 0 ustar 00 import { __ } from '@wordpress/i18n'; import Icon from "../../utils/Icon"; import useFields from "../../Settings/FieldsData"; import useOnboardingData from "../../Onboarding/OnboardingData"; const ProgressFooter = (props) => { const {setShowOnBoardingModal} = useOnboardingData(); const {fields} = useFields(); let vulnerabilityScanValue = fields.filter( field => field.id==='enable_vulnerability_scanner' )[0].value; let sslEnabled = fields.filter( field => field.id==='ssl_enabled' )[0].value; let wpconfigFixRequired = rsssl_settings.wpconfig_fix_required; let firewallEnabled = fields.filter( field => field.id==='enable_firewall' )[0].value; let sslStatusText = sslEnabled ? __( "SSL", "really-simple-ssl" ) : __( "SSL", "really-simple-ssl" ); let sslStatusIcon = sslEnabled ? 'circle-check' : 'circle-times'; let sslStatusColor = sslEnabled ? 'green' : 'red'; let vulnerabilityIcon = vulnerabilityScanValue ? 'circle-check' : 'circle-times'; let vulnerabilityColor = vulnerabilityScanValue ? 'green' : 'red'; let firewallIcon = firewallEnabled ? 'circle-check' : 'circle-times'; let firewallColor = firewallEnabled ? 'green' : 'red'; return ( <> {!sslEnabled && <button disabled={wpconfigFixRequired} onClick={() => setShowOnBoardingModal(true)} className="button button-primary">{__("Activate SSL", "really-simple-ssl")}</button>} {rsssl_settings.pro_plugin_active && <span className="rsssl-footer-left">Really Simple Security Pro {rsssl_settings.pro_version}</span>} {!rsssl_settings.pro_plugin_active && <a href={rsssl_settings.upgrade_link} target="_blank" rel="noopener noreferrer" className="button button-default">{__("Go Pro", "really-simple-ssl")}</a>} <div className="rsssl-legend"> <Icon name={sslStatusIcon} color={sslStatusColor}/> <div className={"rsssl-progress-footer-link"}> <a href="#settings/encryption"> {sslStatusText} </a> </div> </div> <div className="rsssl-legend"> <Icon name={firewallIcon} color={firewallColor}/> <div className={"rsssl-progress-footer-link"}> {firewallEnabled ? ( <a href="#settings/rules"> {__("Firewall", "really-simple-ssl")} </a> ) : ( <a href="#settings/firewall&highlightfield=enable_firewall"> {__("Firewall", "really-simple-ssl")} </a> )} </div> </div> <div className="rsssl-legend"> <Icon name={vulnerabilityIcon} color={vulnerabilityColor}/> <div className={"rsssl-progress-footer-link"}> {vulnerabilityScanValue ? ( <a href="#settings/vulnerabilities"> {__("Vulnerability scan", "really-simple-ssl")} </a> ) : ( <a href="#settings/vulnerabilities&highlightfield=enable_vulnerability_scanner"> {__("Vulnerability scan", "really-simple-ssl")} </a> )} </div> </div> </> ); } export default ProgressFooter; src/Dashboard/Progress/ProgressBlock.js 0000777 00000007675 15252021227 0014167 0 ustar 00 import { useState, useEffect, useRef } from '@wordpress/element'; import TaskElement from "./../TaskElement"; import useProgress from "./ProgressData"; import {__} from "@wordpress/i18n"; const ProgressBlock = (props) => { const {percentageCompleted, progressText, filter, notices, progressLoaded, getProgressData, error} = useProgress(); useEffect( () => { getProgressData(); }, [] ); const getStyles = () => { return Object.assign( {}, {width: percentageCompleted+"%"}, ); } let progressBarColor = ''; if ( percentageCompleted<80 ) { progressBarColor += 'rsssl-orange'; } if ( !progressLoaded || error ) { return ( <div className="rsssl-progress-block"> <div className="rsssl-progress-bar"> <div className="rsssl-progress"> <div className={'rsssl-bar rsssl-orange'} style={getStyles()}></div> </div> </div> <div className="rsssl-progress-text"> <h1 className="rsssl-progress-percentage"> 0% </h1> <h5 className="rsssl-progress-text-span"> {__('Loading...', 'really-simple-ssl')} </h5> </div> <div className="rsssl-scroll-container"> <div className="rsssl-task-element"> <span className={'rsssl-task-status rsssl-loading'}>{__('Loading...', 'really-simple-ssl')}</span> <p className="rsssl-task-message">{__('Loading...', 'really-simple-ssl')}</p> </div> </div> </div> ); } let noticesOutput = notices; if ( filter==='remaining' ) { noticesOutput = noticesOutput.filter(function (notice) { return notice.output.status==='open' || notice.output.status==='warning'; }); } return ( <div className="rsssl-progress-block"> <div className="rsssl-progress-bar"> <div className="rsssl-progress"> <div className={'rsssl-bar ' + progressBarColor} style={getStyles()}></div> </div> </div> <div className="rsssl-progress-text"> <AnimatedPercentage percentageCompleted={percentageCompleted} /> <h5 className="rsssl-progress-text-span"> {progressText} </h5> </div> <div className="rsssl-scroll-container"> {noticesOutput.map((notice, i) => <TaskElement key={"task-"+i} notice={notice}/>)} </div> </div> ); } export default ProgressBlock; export const AnimatedPercentage = ({ percentageCompleted }) => { const [displayedPercentage, setDisplayedPercentage] = useState(0); // useRef previous percentageCompleted const prevPercentageCompleted = useRef(0); const easeOutCubic = (t) => { return 1 - Math.pow(1 - t, 3); }; useEffect(() => { const startPercentage = prevPercentageCompleted.current; const animationDuration = 1000; const startTime = Date.now(); const animatePercentage = () => { const elapsedTime = Date.now() - startTime; const progress = Math.min(elapsedTime / animationDuration, 1); const easedProgress = easeOutCubic(progress); const newPercentage = Math.min(startPercentage + (percentageCompleted - startPercentage) * easedProgress, percentageCompleted); if (progress < 1) { // update displayedPercentage setDisplayedPercentage(newPercentage); prevPercentageCompleted.current = percentageCompleted; } else { // update prevPercentageCompleted to the new percentageCompleted clearInterval(animationInterval); } }; const animationInterval = setInterval(animatePercentage, 16); return () => clearInterval(animationInterval); }, [percentageCompleted]); return ( <h1 className="rsssl-progress-percentage"> {Math.round(displayedPercentage)}% </h1> ); }; src/Dashboard/Progress/ProgressData.js 0000777 00000002610 15252021227 0013766 0 ustar 00 import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; const useProgress = create(( set, get ) => ({ filter:'all', progressText:'', notices: [], error:false, percentageCompleted:0, progressLoaded:false, setFilter: (filter) => { sessionStorage.rsssl_task_filter = filter; set(state => ({ filter })) }, fetchFilter: () => { if ( typeof (Storage) !== "undefined" && sessionStorage.rsssl_task_filter ) { let filter = sessionStorage.rsssl_task_filter; set(state => ({ filter:filter })) } }, getProgressData: async () => { const {percentage, text, notices, error } = await rsssl_api.runTest('progressData', 'refresh').then( ( response ) => { return response; }); set(state => ({ notices:notices, percentageCompleted:percentage, progressText:text, progressLoaded:true, error:error, })) }, dismissNotice: async (noticeId) => { let notices = get().notices; notices = notices.filter(function (notice) { return notice.id !== noticeId; }); set(state => ({ notices:notices })) const {percentage} = await rsssl_api.runTest('dismiss_task', noticeId); set({ percentageCompleted:percentage }) } })); export default useProgress; src/Dashboard/OtherPlugins/OtherPluginsData.js 0000777 00000005416 15252021227 0015433 0 ustar 00 import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; import {__} from "@wordpress/i18n"; const useOtherPlugins = create(( set, get ) => ({ error:false, dataLoaded:false, pluginData:[], updatePluginData:(slug, newPluginItem) => { let pluginData = get().pluginData; pluginData.forEach(function(pluginItem, i) { if (pluginItem.slug===slug) { pluginData[i] = newPluginItem; } }); set(state => ({ dataLoaded:true, pluginData:pluginData, })) }, getPluginData: (slug) => { let pluginData = get().pluginData; return pluginData.filter((pluginItem) => { return (pluginItem.slug===slug) })[0]; }, fetchOtherPluginsData: async () => { const {pluginData, error} = await rsssl_api.doAction('otherpluginsdata').then((response) => { let pluginData = []; pluginData = response.plugins; let error = response.error; if (!error) { pluginData.forEach(function (pluginItem, i) { pluginData[i].pluginActionNice = pluginActionNice(pluginItem.pluginAction); }); } return {pluginData, error}; }) set(state => ({ dataLoaded:true, pluginData:pluginData, error:error, })) }, pluginActions: (slug, pluginAction, e) => { if (e) e.preventDefault(); let data = {}; data.slug = slug; data.pluginAction = pluginAction; let pluginItem = get().getPluginData(slug); if ( pluginAction==='download' ) { pluginItem.pluginAction = "downloading"; } else if (pluginAction==='activate') { pluginItem.pluginAction = "activating"; } pluginItem.pluginActionNice = pluginActionNice(pluginItem.pluginAction); get().updatePluginData(slug, pluginItem); if (pluginAction==='installed' || pluginAction === 'upgrade-to-premium') { return; } rsssl_api.doAction('plugin_actions', data).then( ( response ) => { pluginItem = response; get().updatePluginData(slug, pluginItem); get().pluginActions(slug, pluginItem.pluginAction); }) }, })); export default useOtherPlugins; const pluginActionNice = (pluginAction) => { const statuses = { 'download': __("Install", "really-simple-ssl"), 'activate': __("Activate", "really-simple-ssl"), 'activating': __("Activating...", "really-simple-ssl"), 'downloading': __("Downloading...", "really-simple-ssl"), 'upgrade-to-premium': __("Downloading...", "really-simple-ssl"), }; return statuses[pluginAction]; } src/Dashboard/OtherPlugins/OtherPlugins.js 0000777 00000003460 15252021227 0014636 0 ustar 00 import { useEffect} from "@wordpress/element"; import { __ } from '@wordpress/i18n'; import Placeholder from '../../Placeholder/Placeholder'; import useOtherPlugins from "./OtherPluginsData"; const OtherPlugins = () => { const {dataLoaded, pluginData, pluginActions, fetchOtherPluginsData, error} = useOtherPlugins(); useEffect(() => { if (!dataLoaded) { fetchOtherPluginsData(); } }, [] ) const otherPluginElement = (plugin, i) => { return ( <div key={"plugin"+i} className={"rsssl-other-plugins-element rsssl-"+plugin.slug}> <a href={plugin.wordpress_url} target="_blank" rel="noopener noreferrer" title={plugin.title}> <div className="rsssl-bullet"></div> <div className="rsssl-other-plugins-content">{plugin.title}</div> </a> <div className="rsssl-other-plugin-status"> {plugin.pluginAction==='upgrade-to-premium' && <><a target="_blank" rel="noopener noreferrer" href={plugin.upgrade_url}>{__("Upgrade", "really-simple-ssl")}</a></>} {plugin.pluginAction!=='upgrade-to-premium' && plugin.pluginAction!=='installed' && <> <a href="#" onClick={ (e) => pluginActions(plugin.slug, plugin.pluginAction, e) } >{plugin.pluginActionNice}</a></>} {plugin.pluginAction==='installed' && <>{__("Installed", "really-simple-ssl")}</>} </div> </div> ) } if ( !dataLoaded || error) { return (<Placeholder lines="3" error={error}></Placeholder>) } return ( <> <div className="rsssl-other-plugins-container"> { pluginData.map((plugin, i) => otherPluginElement(plugin, i)) } </div> </> ) } export default OtherPlugins; src/Dashboard/OtherPlugins/OtherPluginsHeader.js 0000777 00000001142 15252021227 0015742 0 ustar 00 import { __ } from '@wordpress/i18n'; const OtherPluginsHeader = () => { return ( <> <h3 className="rsssl-grid-title rsssl-h4">{ __( "Other Plugins", 'really-simple-ssl' ) }</h3> <div className="rsssl-grid-item-controls"> <span className="rsssl-header-html"> <a className="rsp-logo" href="https://really-simple-ssl.com/about-us"><img src={rsssl_settings.plugin_url+"assets/img/really-simple-plugins.svg"} alt="Really Simple Plugins"/></a> </span> </div> </> ) } export default OtherPluginsHeader; src/Dashboard/DashboardPage.js 0000777 00000004621 15252021227 0012254 0 ustar 00 import GridBlock from "./GridBlock"; import ProgressHeader from "./Progress/ProgressBlockHeader"; import ProgressBlock from "./Progress/ProgressBlock"; import ProgressFooter from "./Progress/ProgressFooter"; import SslLabsHeader from "./SslLabs/SslLabsHeader"; import SslLabs from "./SslLabs/SslLabs"; import SslLabsFooter from "./SslLabs/SslLabsFooter"; import VulnerabilitiesHeader from "./Vulnerabilities/VulnerabilitiesHeader"; import Vulnerabilities from "./Vulnerabilities/Vulnerabilities"; import VulnerabilitiesFooter from "./Vulnerabilities/VulnerabilitiesFooter"; import TipsTricks from "./TipsTricks/TipsTricks"; import TipsTricksFooter from "./TipsTricks/TipsTricksFooter"; import OtherPluginsHeader from "./OtherPlugins/OtherPluginsHeader"; import OtherPlugins from "./OtherPlugins/OtherPlugins"; import { __ } from '@wordpress/i18n'; import DashboardPlaceholder from "../Placeholder/DashboardPlaceholder"; import useFields from "../Settings/FieldsData"; import ErrorBoundary from "../utils/ErrorBoundary"; const DashboardPage = () => { const {fieldsLoaded} = useFields(); const blocks = [ { id: 'progress', header: ProgressHeader, content: ProgressBlock, footer: ProgressFooter, class: ' rsssl-column-2', }, { id: 'ssllabs', header: SslLabsHeader, content: SslLabs, footer: SslLabsFooter, class: 'border-to-border', }, { id: 'wpvul', header: VulnerabilitiesHeader, content: Vulnerabilities, footer: VulnerabilitiesFooter, class: 'border-to-border', }, { id: 'tips_tricks', title: __("Tips & Tricks", 'really-simple-ssl'), content: TipsTricks, footer: TipsTricksFooter, class: ' rsssl-column-2', }, { id: 'other-plugins', header: OtherPluginsHeader, content: OtherPlugins, class: ' rsssl-column-2 no-border no-background', }, ] return ( <> {!fieldsLoaded && <DashboardPlaceholder></DashboardPlaceholder>} {fieldsLoaded && blocks.map((block, i) => <ErrorBoundary key={"grid_"+i} fallback={"Could not load dashboard block"}><GridBlock block={block}/></ErrorBoundary>)} </> ); } export default DashboardPage src/Dashboard/SslLabs/SslLabs.js 0000777 00000030135 15252021227 0012475 0 ustar 00 import { useEffect, useState, useRef} from "@wordpress/element"; import { __ } from '@wordpress/i18n'; import Icon from "../../utils/Icon"; import useSslLabs from "./SslLabsData"; import {getRelativeTime} from "../../utils/formatting"; import {addUrlRef} from "../../utils/AddUrlRef"; const ScoreElement = ({className, content, id}) => { const [hover, setHover] = useState(false); let hoverClass = hover ? 'rsssl-hover' : ''; return ( <div key={'score_container-'+id} className="rsssl-score-container"><div onMouseEnter={()=> setHover(true)} onMouseLeave={() => setHover(false)} className={"rsssl-score-snippet "+className+' '+hoverClass}>{content}</div></div> ) } const SslLabs = () => { const { dataLoaded, clearCache, endpointData, setEndpointData, sslData, setSslData, sslScanStatus, setSslScanStatus, isLocalHost, fetchSslData, runSslTest, intervalId, setIntervalId, requestActive, setRequestActive, setClearCache } = useSslLabs(); const hasRunOnce = useRef(false); useEffect(()=>{ if ( !dataLoaded ) { fetchSslData(); } } , []) const neverScannedYet = () => { return !sslData; } useEffect(()=> { if ( isLocalHost() ) { return; } if (sslScanStatus==='active' && sslData.summary && sslData.summary.progress>=100 ) { setClearCache(true); hasRunOnce.current = false; setSslData(false); setEndpointData(false); } if (sslScanStatus==='active' && sslData.status === 'ERROR' ) { setClearCache(true); setSslData(false); setEndpointData(false); } let scanInComplete = (sslData && sslData.status !== 'READY'); let userClickedStartScan = sslScanStatus==='active'; if (clearCache) scanInComplete = true; let hasErrors = sslData.errors || sslData.status === 'ERROR'; let startScan = !hasErrors && (scanInComplete || userClickedStartScan); if ( !requestActive && startScan ) { setSslScanStatus('active'); setRequestActive(true); if ( !hasRunOnce.current ) { runSslTest(); if (!intervalId) { let newIntervalId = setInterval(function () { runSslTest(); }, 4000); setIntervalId(newIntervalId); } hasRunOnce.current = true; } } else if ( sslData && sslData.status === 'READY' ) { setSslScanStatus('completed'); clearInterval(intervalId); } }, [sslScanStatus, sslData]); /** * Get some styles for the progress bar * @returns {{width: string}} */ const getStyles = () => { let progress = 0; if (sslData && sslData.summary.progress) { progress = sslData.summary.progress; } else if (progress==0 && sslScanStatus ==='active') { progress=5; } return Object.assign( {}, {width: progress+"%"}, ); } const scoreSnippet = (className, content, id) => { return ( <ScoreElement className={className} content={content} id={id}/> ) } /** * Retrieve information from SSL labs if HSTS is detected * * @returns {JSX.Element} */ const hasHSTS = () => { let status = 'processing'; if ( neverScannedYet() ){ status = 'inactive'; } if ( endpointData && endpointData.length>0 ) { let failedData = endpointData.filter(function (endpoint) { return endpoint.details.hstsPolicy && endpoint.details.hstsPolicy.status!=='present'; }); status = failedData.length>0 ? 'error' : 'success'; } return ( <> {(status==='inactive') && scoreSnippet("rsssl-test-inactive", "HSTS",'hsts')} {status==='processing' && scoreSnippet("rsssl-test-processing", "HSTS...", 'hsts')} {status==='error' && scoreSnippet("rsssl-test-error", "No HSTS header", 'hsts')} {status==='success' && scoreSnippet("rsssl-test-success", "HSTS header detected", 'hsts')} </> ) } /** * Calculate cipher strength * @returns {JSX.Element} */ const cipherStrength = () => { // Start with the score of the strongest cipher. // Add the score of the weakest cipher. // Divide the total by 2. let rating = 0; let ratingClass = 'rsssl-test-processing'; if ( neverScannedYet() ){ ratingClass = 'rsssl-test-inactive'; } if ( endpointData && endpointData.length>0 ) { let weakest = 256; let strongest = 128; endpointData.forEach(function(endpoint, i){ endpoint.details.suites && endpoint.details.suites.forEach(function(suite, j){ suite.list.forEach(function(cipher, j){ weakest = cipher.cipherStrength<weakest ? cipher.cipherStrength : weakest; strongest = cipher.cipherStrength>strongest ? cipher.cipherStrength : strongest; }); }); }); rating = (getCypherRating(weakest) + getCypherRating(strongest) )/2; rating = Math.round(rating); ratingClass = rating>70 ? "rsssl-test-success" : "rsssl-test-error"; } return ( <> {scoreSnippet(ratingClass, __("Cipher strength","really-simple-ssl")+' '+rating+'%','cipher')} </> ) } /** * https://github.com/ssllabs/research/wiki/SSL-Server-Rating-Guide#Certificate-strength */ const getCypherRating = (strength) => { let score = 0; if (strength==0) { score = 0; } else if (strength<128){ score = 20; } else if (strength<256){ score=80; } else { score=100; } return score; } const certificateStatus = () => { let status = 'processing'; if ( neverScannedYet() ){ status = 'inactive'; } if ( endpointData && endpointData.length>0 ) { let failedData = endpointData.filter(function (endpoint) { return endpoint.grade && endpoint.grade.indexOf('A')===-1; }); status = failedData.length>0 ? 'error' : 'success'; } return ( <> {(status==='inactive') && scoreSnippet("rsssl-test-inactive", "Certificate", "certificate")} {status==='processing' && scoreSnippet("rsssl-test-processing", "Certificate...", "certificate")} {status==='error' && !hasErrors && scoreSnippet("rsssl-test-error", "Certificate issue", "certificate")} {status==='success' && scoreSnippet("rsssl-test-success", "Valid certificate", "certificate")} </> ) } const supportsTlS11 = () => { let status = 'processing'; if ( neverScannedYet() ){ status = 'inactive'; } if ( endpointData && endpointData.length>0 ) { status = 'success'; endpointData.forEach(function(endpoint, i){ endpoint.details.protocols && endpoint.details.protocols.forEach(function(protocol, j){ if (protocol.version==='1.1') status = 'error'; }); }); } return ( <> {(status==='inactive') && scoreSnippet("rsssl-test-inactive", "Protocol support", "protocol")} {(status==='processing') && scoreSnippet("rsssl-test-processing", "Protocol support...", "protocol")} {status==='error' && scoreSnippet("rsssl-test-error", "Supports TLS 1.1", "protocol")} {status==='success' && scoreSnippet("rsssl-test-success", "No TLS 1.1", "protocol")} </> ) } let sslClass = 'rsssl-inactive'; let progress = sslData ? sslData.summary.progress : 0; let startTime = sslData ? sslData.summary.startTime : false; let startTimeNice=''; if ( startTime ) { let newDate = new Date(); newDate.setTime(startTime); startTimeNice = getRelativeTime(startTime); } else { startTimeNice = __("No test started yet","really-simple-ssl") } let statusMessage = sslData ? sslData.summary.statusMessage : false; let grade = sslData ? sslData.summary.grade : '?'; if ( sslData && sslData.status === 'READY' ) { if ( grade.indexOf('A')!==-1 ){ sslClass = "rsssl-success"; } else { sslClass = "rsssl-error"; } } if (neverScannedYet()){ sslClass = "rsssl-inactive"; } let gradeClass = neverScannedYet() ? 'inactive' : grade; let url = 'https://www.ssllabs.com/analyze.html?d='+encodeURIComponent(window.location.protocol + "//" + window.location.host); let hasErrors = false; let errorMessage=''; let sslStatusColor = 'black'; if ( isLocalHost() ) { hasErrors = true; sslStatusColor = 'red'; errorMessage = __("Not available on localhost","really-simple-ssl"); } else if (sslData && (sslData.errors || sslData.status === 'ERROR') ) { hasErrors = true; sslStatusColor = 'red'; errorMessage = statusMessage; } else if (sslData && progress<100 ) { hasErrors = true; sslStatusColor = 'orange'; errorMessage = statusMessage; } return ( <> <div className={'rsssl-ssl-labs'}> <div className={"rsssl-gridblock-progress-container "+sslClass}> <div className="rsssl-gridblock-progress" style={getStyles()}></div> </div> <div className="rsssl-gridblock-progress" style={getStyles()}></div> <div className={"rsssl-ssl-labs-select " + sslClass}> <div className="rsssl-ssl-labs-select-item"> {supportsTlS11()} {hasHSTS()} {certificateStatus()} {cipherStrength()} </div> <div className="rsssl-ssl-labs-select-item"> {!neverScannedYet() ? <h2 className={'big-number'}>{grade}</h2> : <h2 className={'big-number'}>?</h2>} {neverScannedYet() && <div></div>} </div> </div> <div className="rsssl-ssl-labs-list"> <div className="rsssl-ssl-labs-list-item"> <Icon name="info" color={sslStatusColor}/> <p className="rsssl-ssl-labs-list-item-text"> {hasErrors && errorMessage} {!hasErrors && __('What does my score mean?', 'really-simple-ssl')} </p> <a href={addUrlRef("https://really-simple-ssl.com/instructions/about-ssl-labs/")} target="_blank" rel="noopener noreferrer"> {__('Read more', 'really-simple-ssl')} </a> </div> <div className="rsssl-ssl-labs-list-item"> <Icon name="list" color="black"/> <p className="rsssl-ssl-labs-list-item-text"> {__('Last check:', 'really-simple-ssl')} </p> <p className="rsssl-ssl-labs-list-item-text">{startTimeNice}</p> </div> { <div className="rsssl-ssl-labs-list-item"> <Icon name="external-link" color="black"/> <a href={url} target="_blank" rel="noopener noreferrer">{__('View detailed report on Qualys SSL Labs', 'really-simple-ssl')}</a> </div> } </div> </div> </> ); } export default SslLabs; src/Dashboard/SslLabs/SslLabsHeader.js 0000777 00000000652 15252021227 0013607 0 ustar 00 import { __ } from '@wordpress/i18n'; const SslLabsHeader = () => { return ( <> <h3 className="rsssl-grid-title rsssl-h4">{ __( "Status", 'really-simple-ssl' ) }</h3> <div className="rsssl-grid-item-controls"> <span className="rsssl-header-html"> {__( "Powered by Qualys", 'really-simple-ssl' )}</span> </div> </> ) } export default SslLabsHeader; src/Dashboard/SslLabs/SslLabsFooter.js 0000777 00000001204 15252021227 0013647 0 ustar 00 import { __ } from '@wordpress/i18n'; import useSslLabs from "./SslLabsData"; const SslLabsFooter = () => { const {sslScanStatus, setSslScanStatus, isLocalHost} = useSslLabs(); let disabled = sslScanStatus === 'active' || isLocalHost(); return ( <> <button disabled={disabled} onClick={ (e) => setSslScanStatus('active') } className="button button-default"> { sslScanStatus==='paused' && __("Continue SSL Health check", "really-simple-ssl")} { sslScanStatus!=='paused' && __("Check SSL Health", "really-simple-ssl")} </button> </> ) } export default SslLabsFooter; src/Dashboard/SslLabs/SslLabsData.js 0000777 00000015444 15252021227 0013275 0 ustar 00 import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; const useSslLabs = create(( set, get ) => ({ debug:false, //set to true for localhost testing, with wordpress.org as domain sslScanStatus: false, sslData: false, endpointData: [], dataLoaded:false, clearCache:false, requestActive:false, intervalId:false, setIntervalId: (intervalId) => set({ intervalId }), setRequestActive: (requestActive) => set({ requestActive }), setSslScanStatus: (sslScanStatus) => set({ sslScanStatus }), setClearCache: (clearCache) => set({ clearCache }), setSslData: (sslData) => set({ sslData }), setEndpointData: (endpointData) => set({ endpointData }), isLocalHost: () => { let debug = get().debug; return debug ? false: window.location.host.indexOf('localhost')!==-1; } , host: () => { let debug = get().debug; return debug ? "wordpress.org" : window.location.host; }, fetchSslData: async () => { rsssl_api.doAction('ssltest_get').then( ( response ) => { if (response.data.hasOwnProperty('host') ) { let data = get().processSslData(response.data); set({ sslData: data, endpointData: data.endpointData, dataLoaded: true, }) } }) }, getSslLabsData: (e) => { let clearCacheUrl = ''; if (get().clearCache){ set({clearCache:false,sslData:false }); clearCacheUrl = '&startNew=on'; } const url = "https://api.ssllabs.com/api/v3/analyze?host="+get().host()+clearCacheUrl; let data = {}; data.url = url; return rsssl_api.doAction('ssltest_run', data).then( ( response ) => { if ( response && !response.errors) { return JSON.parse(response); } else { return false; } }) }, runSslTest: () => { get().getSslLabsData().then((sslData)=>{ if ( sslData.status && sslData.status === 'ERROR' ){ sslData = get().processSslData(sslData); set({ sslData: sslData, sslScanStatus: 'completed', }); clearInterval(get().intervalId); } else if ( sslData.endpoints && sslData.endpoints.filter((endpoint) => endpoint.statusMessage === 'Ready').length>0 ) { let completedEndpoints = sslData.endpoints.filter((endpoint) => endpoint.statusMessage === 'Ready'); let lastCompletedEndpointIndex = completedEndpoints.length-1; let lastCompletedEndpoint = completedEndpoints[ lastCompletedEndpointIndex]; let ipAddress = lastCompletedEndpoint.ipAddress; get().getEndpointData(ipAddress).then( (response ) => { let endpointData = get().endpointData; if (!Array.isArray(endpointData)) endpointData = []; if ( !response.errors ){ //if the endpoint already is stored, replace it. let foundEndpoint = false; if (endpointData.length>0) { endpointData.forEach(function(endpoint, i) { if ( endpoint.ipAddress === response.ipAddress ) { endpointData[i] = response; foundEndpoint = true; } }); } if ( !foundEndpoint ) { endpointData[endpointData.length] = response; } set({endpointData: endpointData}); sslData.endpointData = endpointData; } if ( !sslData.errors ) { rsssl_api.doAction('store_ssl_labs', sslData ); } sslData = get().processSslData(sslData); set({sslData: sslData, requestActive: false}); }); } else { //if there are no errors, this runs when the first endpoint is not completed yet sslData = get().processSslData(sslData); if ( !sslData.errors ) { rsssl_api.doAction('store_ssl_labs', sslData ).then( ( response ) => {}); } set({sslData:sslData,requestActive: false}); } }); }, processSslData: (sslData) => { if ( !sslData ) { sslData = {}; } let progress = sslData.progress ? sslData.progress : 0; let startTime = sslData.startTime ? sslData.startTime : ''; let statusMessage = sslData.statusMessage ? sslData.statusMessage : ''; let grade = sslData.grade ? sslData.grade : '?'; let ipAddress=''; if ( sslData.endpoints ) { let completedEndpoints = sslData.endpoints.filter((endpoint) => endpoint.statusMessage === 'Ready'); let completedEndpointsLength = completedEndpoints.length; let lastCompletedEndpoint = completedEndpoints[ completedEndpointsLength-1]; let activeEndpoint = sslData.endpoints.filter((endpoint) => endpoint.statusMessage === 'In progress')[0]; let activeEndpointProgress = 0; if (activeEndpoint) { activeEndpointProgress = activeEndpoint.progress ? activeEndpoint.progress : 0; statusMessage = activeEndpoint.statusDetailsMessage; ipAddress = activeEndpoint.ipAddress; } if (lastCompletedEndpoint) grade = lastCompletedEndpoint.grade; progress = ( completedEndpointsLength * 100 + activeEndpointProgress ) / sslData.endpoints.length; } if ( sslData.errors ) { grade = '?'; statusMessage = sslData.errors[0].message; progress = 100; } let summary = {}; if ( progress >= 100) { set({sslScanStatus: 'completed'}); } summary.grade = grade; summary.startTime = startTime; summary.statusMessage = statusMessage; summary.ipAddress = ipAddress; summary.progress = progress; sslData.summary = summary; return sslData; }, getEndpointData:(ipAddress) => { const url = 'https://api.ssllabs.com/api/v3/getEndpointData?host='+get().host()+'&s='+ipAddress; let data = {}; data.url = url; return rsssl_api.doAction('ssltest_run', data).then( ( response ) => { if ( response && !response.errors) { return JSON.parse(response); } }) } })); export default useSslLabs; src/Dashboard/TaskElement.js 0000777 00000010564 15252021227 0012007 0 ustar 00 import { __ } from '@wordpress/i18n'; import Icon from '../utils/Icon' import * as rsssl_api from "../utils/api"; import useFields from "../Settings/FieldsData"; import useProgress from "./Progress/ProgressData"; import useMenu from "../Menu/MenuData"; import DOMPurify from "dompurify"; import {useState} from "@wordpress/element"; const TaskElement = (props) => { const {dismissNotice, getProgressData} = useProgress(); const {getField, setHighLightField, showSavedSettingsNotice, updateFieldAttribute} = useFields(); const {setSelectedSubMenuItem} = useMenu(); const [processing, setProcessing] = useState(false); const handleClick = async () => { setHighLightField(props.notice.output.highlight_field_id); let highlightField = getField(props.notice.output.highlight_field_id); await setSelectedSubMenuItem(highlightField.menu_id); } const handleFix = (fix_id) => { let data = {}; data.fix_id = fix_id; setProcessing(true); rsssl_api.doAction('fix', data).then( ( response ) => { setProcessing(false); showSavedSettingsNotice(response.msg); getProgressData(); }); } const handleClearCache = async (cache_id) => { setProcessing(true) let data = {}; data.cache_id = cache_id; try { // First clear the cache on the server await rsssl_api.doAction('clear_cache', data); // If this is the 404 resources cache clear, update our field states if (cache_id === 'rsssl_homepage_contains_404_resources') { // Update the disabled state for both 404-related fields updateFieldAttribute('404_blocking_threshold', 'disabled', false); updateFieldAttribute('404_blocking_lockout_duration', 'disabled', false); } // Show notice and refresh progress data showSavedSettingsNotice(__('Re-started test', 'really-simple-ssl')); await getProgressData(); } catch (error) { console.error('Error clearing cache:', error); } finally { setProcessing(false); } } let notice = props.notice; let premium = notice.output.icon==='premium'; //treat links to rsssl.com and internal links different. let urlIsExternal = notice.output.url && notice.output.url.indexOf('really-simple-ssl.com') !== -1; return( <div className="rsssl-task-element"> <span className={'rsssl-task-status rsssl-' + notice.output.icon}>{ notice.output.label }</span> <p className="rsssl-task-message" dangerouslySetInnerHTML={{__html: DOMPurify.sanitize( notice.output.msg )}}></p> {/* nosemgrep: react-dangerouslysetinnerhtml */} {urlIsExternal && notice.output.url && <a target="_blank" rel="noopener noreferrer" href={notice.output.url}>{__("More info", "really-simple-ssl")}</a> } {notice.output.clear_cache_id && <span className="rsssl-task-enable button button-secondary" onClick={ () => handleClearCache(notice.output.clear_cache_id ) }>{__("Re-check", "really-simple-ssl")}</span> } {notice.output.fix_id && <span className="rsssl-task-enable button button-secondary" onClick={ () => handleFix(notice.output.fix_id ) }> {!processing && __("Fix", "really-simple-ssl")} {processing && <Icon name = "loading" color = 'black' size={14} />} </span> } {!premium && !urlIsExternal && notice.output.url && <a className="rsssl-task-enable button button-secondary" href={notice.output.url}> {!processing && __("View", "really-simple-ssl")} {processing && <Icon name = "loading" color = 'black' size={14} />} </a> } {!premium && notice.output.highlight_field_id && <span className="rsssl-task-enable button button-secondary" onClick={() => handleClick()}>{__("View", "really-simple-ssl")}</span> } {notice.output.plusone && <span className='rsssl-plusone'>1</span>} {notice.output.dismissible && notice.output.status!=='completed' && <div className="rsssl-task-dismiss"> <button type='button' onClick={(e) => dismissNotice(notice.id) }> <Icon name='times' /> </button> </div> } </div> ); } export default TaskElement; src/Dashboard/GridBlock.js 0000777 00000002171 15252021227 0011426 0 ustar 00 const GridBlock = (props) => { const footer =props.block.footer ? props.block.footer : false; const blockData = props.block; let className = "rsssl-grid-item "+blockData.class+" rsssl-"+blockData.id; return ( <div key={"block-"+blockData.id} className={className}> <div key={"header-"+blockData.id} className="rsssl-grid-item-header"> { blockData.header && wp.element.createElement(blockData.header) } { !blockData.header && <> <h3 className="rsssl-grid-title rsssl-h4">{ blockData.title }</h3> <div className="rsssl-grid-item-controls"></div> </> } </div> <div key={"content-"+blockData.id} className="rsssl-grid-item-content">{wp.element.createElement(props.block.content)}</div> { !footer && <div key={"footer-"+blockData.id} className="rsssl-grid-item-footer"></div>} { footer && <div key={"footer-"+blockData.id} className="rsssl-grid-item-footer">{wp.element.createElement(footer)}</div>} </div> ); } export default GridBlock; src/utils/hoverTooltip.js 0000777 00000003303 15252021227 0011533 0 ustar 00 // src/utils/hoverTooltip.js import { useEffect } from '@wordpress/element'; const tooltipStyles = { display: 'none', position: 'fixed', backgroundColor: 'rgba(0,0,0,0.8)', color: 'white', padding: '10px', borderRadius: '3px', zIndex: 1000, fontSize: '13px', }; const hoverTooltip = (ref, condition, tooltipText) => { useEffect(() => { let tooltip = document.getElementById('rsssl-hover-tooltip'); if (!tooltip) { tooltip = document.createElement('div'); tooltip.id = 'rsssl-hover-tooltip'; Object.assign(tooltip.style, tooltipStyles); document.body.appendChild(tooltip); } const showTooltip = () => { const element = ref.current; const target = element.disabled ? element.parentElement : element; const rect = target.getBoundingClientRect(); tooltip.innerHTML = tooltipText; tooltip.style.display = 'block'; tooltip.style.left = `${rect.left}px`; tooltip.style.top = `${rect.top - tooltip.offsetHeight - 5}px`; }; const hideTooltip = () => { tooltip.style.display = 'none'; }; const element = ref.current; if (element && condition) { element.addEventListener('mouseover', showTooltip); element.addEventListener('mouseout', hideTooltip); } return () => { if (element && condition) { element.removeEventListener('mouseover', showTooltip); element.removeEventListener('mouseout', hideTooltip); } }; }, [ref, condition, tooltipText]); }; export default hoverTooltip; src/utils/ReactConditions.js 0000777 00000014736 15252021227 0012141 0 ustar 00 /** * Class for evaluating React conditions on a field. * If the current field has no react_conditions key, it is considered enabled by * default. */ export class ReactConditions { /** * Creates an instance of ReactConditions. * * @param {object} currentField - The field being evaluated. * @param {Array<object>} allFields - All field objects available for * evaluation. */ constructor(currentField, allFields) { this.currentField = currentField; this.allFields = allFields; this.disabledReason = this._getDefaultDisabledReason(); this.fieldConditionKeyBlocklist = ['disabledTooltipText']; } /** * Evaluates the react_conditions for the current field. * * @returns {boolean} Returns true if the conditions pass or if no * react_conditions are present; otherwise, false. */ isEnabled() { if (!this.currentField.react_conditions) return true; return this._evaluateGroup(this.currentField.react_conditions); } /** * Get the reason why the field is conditionally disabled. This reason is * stored in the field condition like so: [ send_notifications_email' => 1, 'disabledTooltipText' => 'foobar', ] */ getDisabledTooltipText() { return this.disabledReason; } /** * Get the default disabled reason for the field from the config. * @returns {string|*|string} * @private */ _getDefaultDisabledReason() { return (( this.currentField.hasOwnProperty('disabled') && this.currentField.hasOwnProperty('disabledTooltipText') && this.currentField.disabled ) ? this.currentField.disabledTooltipText : ''); } /** * Recursively evaluates a group of conditions. * * @param {object} group - A conditions group with an optional 'relation' * property (AND/OR) and subconditions. * @returns {boolean} True if the group evaluates to true. */ _evaluateGroup(group) { const relation = group.relation ? group.relation.toUpperCase() : 'AND'; // Evaluate each subcondition (ignoring the 'relation' key). const subResults = Object.keys(group) .filter(key => key !== 'relation') .map(key => { const subCondition = group[key]; if (typeof subCondition === 'object' && subCondition.hasOwnProperty('relation')) { return this._evaluateGroup(subCondition); } if (typeof subCondition === 'object') { return this._evaluateFieldConditions(subCondition); } return false; }); return relation === 'AND' ? subResults.every(result => result) : subResults.some(result => result); } /** * Evaluates a set of field conditions. * * @param {object} conditionObject - An object mapping field keys to * expected values. * @returns {boolean} True if every field condition passes. */ _evaluateFieldConditions(conditionObject) { // Skip the keys in the fieldConditionKeyBlocklist let allowedKeysOfGroup = Object.keys(conditionObject).filter(key => (!this.fieldConditionKeyBlocklist.includes(key))); let fieldEnabledBasedOnGroupedCondition = allowedKeysOfGroup.every(rawFieldKey => this._checkFieldCondition(rawFieldKey, conditionObject[rawFieldKey]) ); // If the field will be disabled due to this group of conditions, set // the disabled reason. No reason given? Then set an empty string to // override the default disabledTooltipText from the field config. // Example: field.id = '404_blocking_threshold' in path: // settings/config/fields/firewall.php if (fieldEnabledBasedOnGroupedCondition === false) { this.disabledReason = (conditionObject.hasOwnProperty('disabledTooltipText') ? conditionObject.disabledTooltipText : ''); } return fieldEnabledBasedOnGroupedCondition; } /** * Evaluates an individual field condition. * * @param {string} rawFieldKey - The field key, possibly prefixed with "!" * to indicate inversion. * @param {*} expectedValue - The expected value for the condition. * @returns {boolean} True if the field condition is met. */ _checkFieldCondition(rawFieldKey, expectedValue) { const isInverted = rawFieldKey.startsWith('!'); const fieldKey = isInverted ? rawFieldKey.substring(1) : rawFieldKey; const field = this.allFields.find(field => field.id === fieldKey); if (!field) return false; const conditionResult = this._evaluateField(field, expectedValue); return isInverted ? !conditionResult : conditionResult; } /** * Evaluates the condition for a specific field based on its type. * * @param {object} field - The field object. * @param {*} expectedValue - The expected value. * @returns {boolean} True if the field's actual value meets the expected * condition. */ _evaluateField(field, expectedValue) { const actualValue = field.value; switch (field.type) { case 'text_checkbox': return actualValue && actualValue.show === expectedValue; case 'checkbox': return actualValue == expectedValue; case 'multicheckbox': { const expectedArray = Array.isArray(expectedValue) ? expectedValue : [expectedValue]; return Array.isArray(actualValue) && actualValue.some(val => expectedArray.includes(val)); } case 'radio': return Array.isArray(expectedValue) ? expectedValue.includes(actualValue) : expectedValue === actualValue; default: if (expectedValue === true) { return actualValue === 1 || actualValue === '1' || actualValue === true; } if (expectedValue === false) { return actualValue === 0 || actualValue === '0' || actualValue === false; } if (typeof expectedValue === 'string' && expectedValue.includes('EMPTY')) { return Array.isArray(actualValue) ? actualValue.length === 0 : !actualValue; } return String(actualValue).toLowerCase() === String(expectedValue).toLowerCase(); } } } src/utils/Error.js 0000777 00000005004 15252021227 0010126 0 ustar 00 import {__} from "@wordpress/i18n"; import Hyperlink from "./Hyperlink"; const Error = (props) => { if (props.error) { console.log("errors detected during the loading of the settings page"); console.log(props.error); } let description = false; let url = 'https://really-simple-ssl.com/instructions/how-to-debug-a-blank-settings-page-in-really-simple-ssl/'; let generic_rest_blocked_message = __("Please check if security settings on the server or a plugin is blocking the requests from Really Simple Security.", "really-simple-ssl"); let message = false; if (props.error) { message = props.error.message; if ( typeof message !== 'string' ) { message = JSON.stringify(message); } if ( props.error.code==='rest_no_route') { description = __("The Really Simple Security Rest API is disabled.", "really-simple-ssl")+" "+generic_rest_blocked_message } else if ( props.error.data.status === '404') { description = __("The Really Simple Security Rest API returned a not found.", "really-simple-ssl")+" "+generic_rest_blocked_message; } else if ( props.error.data.status === '403') { description = __("The Really Simple Security Rest API returned a 403 forbidden error.", "really-simple-ssl")+" "+generic_rest_blocked_message; } if (message.length>100){ message = message.substring(0, 100)+ '...'; } } return ( <> {props.error && <div className="rsssl-rest-error-message"> <h3>{__("A problem was detected during the loading of the settings", "really-simple-ssl")}</h3> {description && <p>{description}</p> } <div> <p>{__("The request returned the following errors:", "really-simple-ssl")}</p> <ul> {props.error.code && <li>{__("Response code:", "really-simple-ssl")} {props.error.code}</li>} {props.error.data.status && <li>{__("Status code:", "really-simple-ssl")} {props.error.data.status}</li>} {message && <li>{__("Server response:", "really-simple-ssl")} {message}</li>} </ul> </div> <Hyperlink className="button button-default" target="_blank" rel="noopener noreferrer" text={__("More information","really-simple-ssl")} url={url}/> </div>} </> ) } export default Error src/utils/ErrorBoundary.js 0000777 00000002352 15252021227 0011635 0 ustar 00 import { Component } from '@wordpress/element'; import PropTypes from 'prop-types'; class ErrorBoundary extends Component { constructor(props) { super(props); this.state = { hasError: false, error: null, errorInfo: null }; this.resetError = this.resetError.bind(this); } static getDerivedStateFromError(error) { return { hasError: true }; } componentDidCatch(error, errorInfo) { this.setState({ error, errorInfo }); // You can also log the error to an error reporting service console.log('ErrorBoundary', error, errorInfo); } resetError() { this.setState({ hasError: false, error: null, errorInfo: null }); } render() { if (this.state.hasError) { return ( <div> <h1>Something went wrong.</h1> {/* You can render any custom fallback UI */} <p>{this.props.fallback}</p> <button onClick={this.resetError}>Try Again</button> </div> ); } return this.props.children; } } ErrorBoundary.propTypes = { children: PropTypes.node, fallback: PropTypes.node, }; export default ErrorBoundary; src/utils/autoCompleteTheme.js 0000777 00000002235 15252021227 0012464 0 ustar 00 // theme.js import { createTheme } from '@mui/material/styles'; const autoCompleteSharedTheme = createTheme({ typography: { fontSize: 12, fontFamily: 'inherit', }, components: { MuiAutocomplete: { styleOverrides: { inputRoot: { '& .MuiAutocomplete-input': { border: 0, }, flexWrap: 'inherit', }, popper: { fontSize: '12px', }, paper: { fontSize: '12px', }, option: { fontSize: '12px', }, }, }, MuiInputBase: { styleOverrides: { root: { fontSize: '12px', fontFamily: 'inherit', height: '40px', }, }, }, MuiList: { styleOverrides: { root: { fontSize: '8px', }, }, }, }, }); export default autoCompleteSharedTheme; src/utils/sleeper.js 0000777 00000000410 15252021227 0010470 0 ustar 00 /* * helper function to delay after a promise * @param ms * @returns {function(*): Promise<unknown>} */ const sleeper = (ms) => { return function(x) { return new Promise(resolve => setTimeout(() => resolve(x), ms)); }; } export default sleeper; src/utils/lib.js 0000777 00000000577 15252021227 0007615 0 ustar 00 export const in_array = (needle, haystack) => { let length = haystack.length; for(let i = 0; i < length; i++) { if( haystack[i] == needle ) return true; } return false; } export const errorMsg = (error) => { let length = haystack.length; for(let i = 0; i < length; i++) { if( haystack[i] == needle ) return true; } return false; } src/utils/Icon.js 0000777 00000110310 15252021227 0007722 0 ustar 00 // import Tooltip from '@mui/material/Tooltip'; import { Tooltip } from "react-tooltip"; // import {styled} from "@mui/material/styles"; // import {opacity} from "../../../../../../wp-includes/js/codemirror/csslint"; const IconHtml = React.forwardRef(function IconHtml(props, ref){ const {name, color, size} = props; // set defaults const iconName = name || 'bullet'; const iconColor = color || 'black'; const iconSize = size || 15; const iconColors = { 'black': 'var(--rsp-black)', 'green': 'var(--rsp-green)', 'yellow': 'var(--rsp-yellow)', 'orange': 'var(--rsp-yellow)', 'red-faded': 'var(--rsp-red-faded)', 'red': 'var(--rsp-red)', 'grey': 'var(--rsp-grey-400)', 'red-warning': 'var(--rsp-red-faded)', }; let renderedIcon = ''; if (iconName === 'bullet') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"/> </svg> } if (iconName === 'circle') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"/> </svg> } if (iconName === 'check') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"/> </svg> } if (iconName === 'warning') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"/> </svg> } if (iconName === 'error') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"/> </svg> } if (iconName === 'times') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"/> </svg> } if (iconName === 'circle-check') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z"/> </svg> } if (iconName === 'circle-times') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z"/> </svg> } if (iconName === 'chevron-up') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M416 352c-8.188 0-16.38-3.125-22.62-9.375L224 173.3l-169.4 169.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25C432.4 348.9 424.2 352 416 352z"/> </svg> } if (iconName === 'chevron-down') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"/> </svg> } if (iconName === 'chevron-right') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"/> </svg> } if (iconName === 'chevron-left') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"/> </svg> } if (iconName === 'plus') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"/> </svg> } if (iconName === 'minus') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M400 288h-352c-17.69 0-32-14.32-32-32.01s14.31-31.99 32-31.99h352c17.69 0 32 14.3 32 31.99S417.7 288 400 288z"/> </svg> } if (iconName === 'sync') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M483.515 28.485L431.35 80.65C386.475 35.767 324.485 8 256 8 123.228 8 14.824 112.338 8.31 243.493 7.971 250.311 13.475 256 20.301 256h28.045c6.353 0 11.613-4.952 11.973-11.294C66.161 141.649 151.453 60 256 60c54.163 0 103.157 21.923 138.614 57.386l-54.128 54.129c-7.56 7.56-2.206 20.485 8.485 20.485H492c6.627 0 12-5.373 12-12V36.971c0-10.691-12.926-16.045-20.485-8.486zM491.699 256h-28.045c-6.353 0-11.613 4.952-11.973 11.294C445.839 370.351 360.547 452 256 452c-54.163 0-103.157-21.923-138.614-57.386l54.128-54.129c7.56-7.56 2.206-20.485-8.485-20.485H20c-6.627 0-12 5.373-12 12v143.029c0 10.691 12.926 16.045 20.485 8.485L80.65 431.35C125.525 476.233 187.516 504 256 504c132.773 0 241.176-104.338 247.69-235.493.339-6.818-5.165-12.507-11.991-12.507z"></path> </svg> } if (iconName === 'sync-error') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M256 79.1C178.5 79.1 112.7 130.1 89.2 199.7C84.96 212.2 71.34 218.1 58.79 214.7C46.23 210.5 39.48 196.9 43.72 184.3C73.6 95.8 157.3 32 256 32C337.5 32 408.8 75.53 448 140.6V104C448 90.75 458.7 80 472 80C485.3 80 496 90.75 496 104V200C496 213.3 485.3 224 472 224H376C362.7 224 352 213.3 352 200C352 186.7 362.7 176 376 176H412.8C383.7 118.1 324.4 80 256 80V79.1zM280 263.1C280 277.3 269.3 287.1 256 287.1C242.7 287.1 232 277.3 232 263.1V151.1C232 138.7 242.7 127.1 256 127.1C269.3 127.1 280 138.7 280 151.1V263.1zM224 352C224 334.3 238.3 319.1 256 319.1C273.7 319.1 288 334.3 288 352C288 369.7 273.7 384 256 384C238.3 384 224 369.7 224 352zM40 432C26.75 432 16 421.3 16 408V311.1C16 298.7 26.75 287.1 40 287.1H136C149.3 287.1 160 298.7 160 311.1C160 325.3 149.3 336 136 336H99.19C128.3 393 187.6 432 256 432C333.5 432 399.3 381.9 422.8 312.3C427 299.8 440.7 293 453.2 297.3C465.8 301.5 472.5 315.1 468.3 327.7C438.4 416.2 354.7 480 256 480C174.5 480 103.2 436.5 64 371.4V408C64 421.3 53.25 432 40 432V432z"/> </svg> } if (iconName === 'shortcode') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M128 32H32C14.4 32 0 46.4 0 64v384c0 17.6 14.4 32 32 32h96C145.7 480 160 465.7 160 448S145.7 416 128 416H64V96h64C145.7 96 160 81.67 160 64S145.7 32 128 32zM416 32h-96C302.3 32 288 46.33 288 63.1S302.3 96 319.1 96H384v320h-64C302.3 416 288 430.3 288 447.1S302.3 480 319.1 480H416c17.6 0 32-14.4 32-32V64C448 46.4 433.6 32 416 32z"/> </svg> } if (iconName === 'file') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M0 64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V64zM336 448V160H256C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V448C48 456.8 55.16 464 64 464H320C328.8 464 336 456.8 336 448z"/> </svg> } if (iconName === 'file-disabled') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M639.1 487.1c0-7.119-3.153-14.16-9.191-18.89l-118.8-93.12l.0013-237.3c0-16.97-6.742-33.26-18.74-45.26l-74.63-74.64C406.6 6.742 390.3 0 373.4 0H192C156.7 0 128 28.65 128 64L128 75.01L38.82 5.11C34.41 1.672 29.19 0 24.04 0C10.19 0-.0002 11.3-.0002 23.1c0 7.12 3.153 14.16 9.192 18.89l591.1 463.1C605.6 510.3 610.8 512 615.1 512C629.8 512 639.1 500.6 639.1 487.1zM464 338.4l-287.1-225.7l-.002-48.51c0-8.836 7.164-16 15.1-16h160l-.0065 79.87c0 17.67 14.33 31.1 31.1 31.1L464 159.1V338.4zM448 463.1H192c-8.834 0-15.1-7.164-15.1-16L176 234.6L128 197L128 447.1c0 35.34 28.65 64 63.1 64H448c20.4 0 38.45-9.851 50.19-24.84l-37.72-29.56C457.5 461.4 453.2 463.1 448 463.1z"/> </svg> } if (iconName === 'loading') { renderedIcon = <svg xmlns="http://www.w3.org/2000/svg" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[color]} d="M304 48c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zm0 416c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM48 304c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48zm464-48c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM142.9 437c18.7-18.7 18.7-49.1 0-67.9s-49.1-18.7-67.9 0s-18.7 49.1 0 67.9s49.1 18.7 67.9 0zm0-294.2c18.7-18.7 18.7-49.1 0-67.9S93.7 56.2 75 75s-18.7 49.1 0 67.9s49.1 18.7 67.9 0zM369.1 437c18.7 18.7 49.1 18.7 67.9 0s18.7-49.1 0-67.9s-49.1-18.7-67.9 0s-18.7 49.1 0 67.9z"/> </svg> } if (iconName === 'file-download') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M216 342.1V240c0-13.25-10.75-24-24-24S168 226.8 168 240v102.1L128.1 303C124.3 298.3 118.2 296 112 296S99.72 298.3 95.03 303c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0L216 342.1zM365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6C384 121.7 377.3 105.4 365.3 93.38zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1V448z"/> </svg> } if (iconName === 'calendar') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192H48V448z"/> </svg> } if (iconName === 'calendar-error') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M151.1 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V192H47.1V448C47.1 456.8 55.16 464 63.1 464H284.5C296.7 482.8 312.5 499.1 330.8 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24L151.1 64zM576 368C576 447.5 511.5 512 432 512C352.5 512 287.1 447.5 287.1 368C287.1 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368zM432 416C418.7 416 408 426.7 408 440C408 453.3 418.7 464 432 464C445.3 464 456 453.3 456 440C456 426.7 445.3 416 432 416zM447.1 288C447.1 279.2 440.8 272 431.1 272C423.2 272 415.1 279.2 415.1 288V368C415.1 376.8 423.2 384 431.1 384C440.8 384 447.1 376.8 447.1 368V288z"/> </svg> } if (iconName === 'help') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 400c-18 0-32-14-32-32s13.1-32 32-32c17.1 0 32 14 32 32S273.1 400 256 400zM325.1 258L280 286V288c0 13-11 24-24 24S232 301 232 288V272c0-8 4-16 12-21l57-34C308 213 312 206 312 198C312 186 301.1 176 289.1 176h-51.1C225.1 176 216 186 216 198c0 13-11 24-24 24s-24-11-24-24C168 159 199 128 237.1 128h51.1C329 128 360 159 360 198C360 222 347 245 325.1 258z"/> </svg> } if (iconName === 'copy') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"/> </svg> } if (iconName === 'info') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"/> </svg> } if (iconName === 'info-open') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464zM256 304c13.25 0 24-10.75 24-24v-128C280 138.8 269.3 128 256 128S232 138.8 232 152v128C232 293.3 242.8 304 256 304zM256 337.1c-17.36 0-31.44 14.08-31.44 31.44C224.6 385.9 238.6 400 256 400s31.44-14.08 31.44-31.44C287.4 351.2 273.4 337.1 256 337.1z"/> </svg> } if (iconName === 'list') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M184.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM256 96c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zM192 416c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32zM80 464c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48z"/> </svg> } if (iconName === 'empty') { renderedIcon = <svg height={iconSize} width={iconSize} aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 280.8 363.67"> </svg> } if (iconName === 'external-link') { renderedIcon = <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M384 32c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96C0 60.7 28.7 32 64 32H384zM160 144c-13.3 0-24 10.7-24 24s10.7 24 24 24h94.1L119 327c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l135-135V328c0 13.3 10.7 24 24 24s24-10.7 24-24V168c0-13.3-10.7-24-24-24H160z"/> </svg> } if (iconName === 'shield') { renderedIcon = <svg height={iconSize} aria-hidden="true" focusable="false" role="img" id="uuid-026a4e87-44db-4336-a398-3c29d25b7317" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 280.8 363.67"> <path fill="#f9c23e" d="M280.8,62.4L140.5,0,0,62.2V213.3c0,10.7,1.6,21.3,4.9,31.5,9.5,29.9,28.2,52.8,54.4,69.5,26,16.6,52.4,32.4,78.6,48.6,2,1.2,3.4,.9,5.1-.2,19.9-12.3,39.8-24.5,59.6-36.8,12.6-7.8,25.5-15.1,36.5-25.1,26.4-24.2,41.4-53.6,41.5-89.9V62.4h.2Z"/> <g> <g> <rect className="uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4" x="155" y="266.8" width="77.6" height="6"/> <path fill="#1d2327" d="M224.4,204.5h-1.8v-10.1c0-15.9-12.9-28.8-28.8-28.8s-28.8,12.9-28.8,28.8v10.1h-1.8c-4.6,0-8.3,3.7-8.3,8.3v51.3h77.6v-51.3c0-4.6-3.7-8.3-8.3-8.3h.2Zm-45.3-10.1c0-8.1,6.6-14.7,14.7-14.7s14.7,6.6,14.7,14.7v10.1h-29.5v-10.1h.1Zm36.6,32.9l-20.7,20.2c-.2,.2-.3,.4-.5,.6l-2,2c-.2,.2-.4,.4-.6,.5l-3.8,3.8-4.5-4.3-2-2c-.2-.2-.4-.4-.5-.6l-9.1-9.1c-2.4-2.4-2.4-6.4,0-8.8l2-2c2.4-2.4,6.4-2.4,8.8,0l5.3,5.3,16.9-16.4c2.4-2.4,6.4-2.4,8.8,0l2,2c2.4,2.4,2.4,6.4,0,8.8h-.1Z"/> </g> <g> <path fill="#1d2327" d="M125.2,192.3c-.5-2.9-.5-5.8-1-8.6-.5-2.4-2.6-4-4.8-3.9-2.3,0-4.2,1.9-4.7,4.3-.2,1,0,1.9,0,2.9,.8,14.6,7.2,26.3,18.2,35.7,2.2,1.9,4.5,3.5,6.9,4.8v-11.8c-7.4-5.8-12.9-14.1-14.6-23.3v-.1Z"/> <path className="uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4" d="M96.4,236.1c-13-15-20-32.3-19.5-52.3,.3-13.1,6.1-23.6,16.6-31.2,11.5-8.5,24.5-10.9,38.3-7.1,12.7,3.5,22,10.7,27.4,22,2.1-2.7,4.5-5.2,7.2-7.4-4-7-9.7-12.9-17-17.4-17-10.4-34.9-11.7-52.9-3.1-19,9.1-28.7,24.7-29.3,45.8,0,5.2,.5,10.2,1.4,15.2,3.4,19.4,13.4,35.2,27.2,48.9,1.1,1.1,2.5,1.6,4.1,1.4,1.8-.2,3.2-1.3,3.8-3,.6-1.8,.4-3.6-1-5.1-2.1-2.2-4.2-4.4-6.2-6.7h-.1Z"/> <path className="uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4" d="M68.1,89.4c1.1-.4,2.1-1,3.1-1.5,17.9-9.1,36.8-12.7,56.8-11.3,12.2,.8,23.9,3.8,35.1,8.7,3,1.3,5.9,2.8,8.9,4.1,2.7,1.1,5.3,0,6.4-2.4,1.1-2.3,0-5-2.3-6.3-11-5.7-22.4-10-34.6-12.3-4.2-.8-8.5-1.1-12.8-1.7h-17.1c-.3,0-.6,.2-.9,.2-11.2,.8-22,3.2-32.5,7.2-4.9,1.9-9.7,4.1-14.3,6.6-2.5,1.3-3.4,4.2-2.2,6.5,1.1,2.2,4,3.2,6.4,2.1v.1Z"/> <path className="uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4" d="M61.1,153.5c13.6-21.6,33.6-31.5,58.7-32.1h6c.8,0,1.6,.2,2.3,.3,13.4,1.7,25.5,6.6,35.9,15.4,5.8,4.9,10.5,10.3,14.1,16.2,3.1-1.2,6.4-2,9.8-2.5-4.7-8.7-11.3-16.3-19.6-22.7-19-14.6-40.5-19.5-64.1-15.1-14.3,2.7-26.9,9-37.7,18.8-10.4,9.5-17.8,20.9-21.2,34.6-2.8,11.3-2.6,22.7-.9,34.1,1.1,7,2.9,13.9,5.4,20.5,.9,2.3,3,3.7,5.2,3.5,2.1-.2,3.9-2,4.3-4.3,.2-1.1-.2-2.2-.6-3.2-4.3-11.9-6.3-24.1-5.6-36.7,.5-9.6,2.8-18.7,8-26.8h0Z"/> <path className="uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4" d="M139.8,240.6c-20.9-8.4-34.1-23.7-38.4-46.7-.8-4.3-1.4-8.7-.4-13,1.8-7.1,6.4-11.4,13.4-13.5,11.8-3.4,24.7,5.3,24.5,17.6,0,4.8,1.4,9.3,4,13.4,.3,.5,.6,.9,.9,1.3,1.6-2.4,3.7-4.6,6.1-6.2,0-.9,0-1.9,.2-2.8-.7-1.7-1.1-3.5-1.2-5.3-.3-6.1-1.6-11.9-5.5-16.8-6.8-8.8-15.9-12.4-27-11.5-11.3,.9-21.6,9.6-24.5,20.6-1.8,6.6-.9,13.3,.4,19.8,2.4,12.9,8.2,24,17.1,33.7,8.6,9.4,18.8,15.8,30.6,19.8v-10.4h-.2Z"/> <path className="uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4" d="M47.5,133.2c6.8-8.8,15-16,24.6-21.6,20.8-12,43.2-15.2,66.6-11,14.8,2.7,28.2,8.7,39.9,18.2,6.3,5,11.6,11,16.4,17.4,1.9,2.5,4.8,2.8,7,1.1,2.1-1.7,2.4-4.5,.6-7-5.9-8.2-12.8-15.3-20.9-21.3-18.3-13.6-39.1-19.6-61.7-20-6.3,0-12.5,.6-18.6,1.6-15.7,2.8-30.1,8.6-42.9,18.1-8.3,6.2-15.5,13.5-21.5,22-1.6,2.3-1.3,5.1,.7,6.7,2.1,1.7,4.9,1.5,6.8-.7,1-1.2,1.9-2.5,2.9-3.7l.1,.2Z"/> </g> </g> </svg> } if (iconName === 'file-search') { renderedIcon = <svg xmlns="http://www.w3.org/2000/svg" height={iconSize} fill="none" viewBox="0 0 384 512"> <path d="M374.6 150.6l-141.3-141.3C227.4 3.371 219.2 0 210.7 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.35 0 64-28.66 64-64V173.3C384 164.8 380.6 156.6 374.6 150.6zM224 22.63L361.4 160H248C234.8 160 224 149.2 224 136V22.63zM368 448c0 26.47-21.53 48-48 48H64c-26.47 0-48-21.53-48-48V64c0-26.47 21.53-48 48-48h144v120c0 22.06 17.94 40 40 40h120V448zM176 208c-53.02 0-96 42.98-96 96s42.98 96 96 96c23.62 0 44.96-8.859 61.68-23l68.66 68.66C307.9 447.2 309.9 448 312 448s4.094-.7813 5.656-2.344c3.125-3.125 3.125-8.188 0-11.31l-68.66-68.66C263.1 348.1 272 327.6 272 304C272 250.1 229 208 176 208zM176 384C131.9 384 96 348.1 96 304S131.9 224 176 224S256 259.9 256 304S220.1 384 176 384z"/> </svg> } if (iconName === 'download') { renderedIcon = <svg xmlns="http://www.w3.org/2000/svg" height={iconSize} fill="none" viewBox="0 0 512 512"> <path d="M480 352h-88C387.6 352 384 355.6 384 360s3.582 8 8 8H480c8.822 0 16 7.178 16 16v96c0 8.822-7.178 16-16 16H32c-8.822 0-16-7.178-16-16v-96c0-8.822 7.178-16 16-16h88C124.4 368 128 364.4 128 360S124.4 352 120 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96C512 366.3 497.7 352 480 352zM464 432c0-17.6-14.4-32-32-32s-32 14.4-32 32c0 17.6 14.4 32 32 32S464 449.6 464 432zM416 432c0-8.822 7.178-16 16-16s16 7.178 16 16S440.8 448 432 448S416 440.8 416 432zM250.3 413.7c3.125 3.125 8.188 3.125 11.31 0l152-152C415.2 260.1 416 258.1 416 256s-.7813-4.094-2.344-5.656c-3.125-3.125-8.188-3.125-11.31 0L264 388.7V8C264 3.594 260.4 0 256 0S248 3.594 248 8v380.7L109.7 250.3c-3.125-3.125-8.188-3.125-11.31 0s-3.125 8.188 0 11.31L250.3 413.7z"/> </svg> } if (iconName === 'satellite-dish') { renderedIcon = <svg xmlns="http://www.w3.org/2000/svg" color={iconColors[iconColor]} height={iconSize} viewBox="0 0 512 512"> <path d="M208 0c-8.8 0-16 7.2-16 16s7.2 16 16 16c150.2 0 272 121.8 272 272c0 8.8 7.2 16 16 16s16-7.2 16-16C512 136.1 375.9 0 208 0zm0 96c-8.8 0-16 7.2-16 16s7.2 16 16 16c97.2 0 176 78.8 176 176c0 8.8 7.2 16 16 16s16-7.2 16-16c0-114.9-93.1-208-208-208zM32 304c0-24.5 5-47.7 13.9-68.8L276.8 466.1C255.7 475 232.5 480 208 480c-97.2 0-176-78.8-176-176zm33.5-94.5c-14-14-37.3-12.1-45.7 5.8C7.1 242.2 0 272.3 0 304C0 418.9 93.1 512 208 512c31.7 0 61.8-7.1 88.7-19.8c17.9-8.4 19.8-31.8 5.8-45.7L195.3 339.3l24-24c6.3 3 13.3 4.7 20.7 4.7c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48c0 7.4 1.7 14.4 4.7 20.7l-24 24L65.5 209.5zM224 272a16 16 0 1 1 32 0 16 16 0 1 1 -32 0z"/> </svg> } if (iconName === 'rotate-light') { renderedIcon = <svg xmlns="http://www.w3.org/2000/svg" color={iconColors[iconColor]} height={iconSize} viewBox="0 0 512 512"><path d="M426.1 301.2C406.2 376.5 337.6 432 256 432c-51 0-96.9-21.7-129-56.3l41-41c5.1-5.1 8-12.1 8-19.3c0-15.1-12.2-27.3-27.3-27.3H48c-8.8 0-16 7.2-16 16V404.7C32 419.8 44.2 432 59.3 432c7.2 0 14.2-2.9 19.3-8l25.7-25.7C142.3 438.7 196.2 464 256 464c97.4 0 179.2-67 201.8-157.4c2.4-9.7-5.2-18.6-15.2-18.6c-7.8 0-14.5 5.6-16.5 13.2zM385 136.3l-41 41c-5.1 5.1-8 12.1-8 19.3c0 15.1 12.2 27.3 27.3 27.3H464c8.8 0 16-7.2 16-16V107.3C480 92.2 467.8 80 452.7 80c-7.2 0-14.2 2.9-19.3 8l-25.7 25.7C369.7 73.3 315.8 48 256 48C158.6 48 76.8 115 54.2 205.4c-2.4 9.7 5.2 18.6 15.2 18.6c7.8 0 14.5-5.6 16.5-13.2C105.8 135.5 174.4 80 256 80c51 0 96.9 21.7 129.1 56.3zM448 192H374.6L448 118.6V192zM64 320h73.4L64 393.4V320z"/> </svg> } if (iconName === 'rotate-exclamation-light') { renderedIcon = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize} > <defs> <style>{` .fa-secondary { opacity: 0.4; color: ${iconColors[iconColor]}; } `}</style> </defs> <path className="fa-primary" d="M280 152c0-13.3-10.7-24-24-24s-24 10.7-24 24V264c0 13.3 10.7 24 24 24s24-10.7 24-24V152zM256 384a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"/> <path className="fa-secondary" d="M432 117.4C391 65.4 327.4 32 256 32C158.4 32 75.5 94.4 44.8 181.3c-5.9 16.7 2.8 34.9 19.5 40.8s34.9-2.8 40.8-19.5C127.1 140.5 186.4 96 256 96c52.3 0 98.8 25.1 128 64H352c-17.7 0-32 14.3-32 32s14.3 32 32 32h84.3c.5 0 1 0 1.5 0H464c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v37.4zm35.2 213.2c5.9-16.7-2.8-34.9-19.5-40.8s-34.9 2.8-40.8 19.5C384.9 371.5 325.6 416 256 416c-52.3 0-98.8-25.1-128-64h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H48c-17.7 0-32 14.3-32 32V432c0 17.7 14.3 32 32 32s32-14.3 32-32V394.6c41 52 104.6 85.4 176 85.4c97.6 0 180.5-62.4 211.2-149.3z"/> </svg> } if (iconName === 'radar-duotone') { renderedIcon = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize} > <defs> <style>{` .fa-secondary { color: ${iconColors[iconColor]} !important; } `}</style> </defs> <path className="fa-primary" d="M497 49c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-182 182c-7.7-3.3-16.1-5.1-25-5.1c-35.3 0-64 28.7-64 64s28.7 64 64 64s64-28.7 64-64c0-8.9-1.8-17.3-5.1-25L497 49z"/> <path className="fa-secondary" d="M350.9 127.2l-46.1 46.1c-14.3-8.4-31-13.3-48.8-13.3c-53 0-96 43-96 96s43 96 96 96s96-43 96-96h64c0 73.5-49.6 135.5-117.2 154.2C290.8 394.7 274.7 384 256 384s-34.8 10.7-42.8 26.2c-51.7-14.3-92.8-53.9-109.4-104.6c14.4-8.3 24.1-23.8 24.1-41.7c0-19.4-11.5-36.1-28-43.7C116.2 149.1 179.9 96 256 96c35.5 0 68.3 11.6 94.9 31.2zm22.8-22.8C341.2 79 300.4 64 256 64C163.1 64 85.7 129.9 67.9 217.6C47.2 222.9 32 241.7 32 264c0 23.8 17.3 43.6 40.1 47.4c19.3 64.3 71.5 114.4 137 130.9C213.8 463.8 233 480 256 480s42.2-16.2 46.9-37.8C386.3 421.3 448 345.9 448 256h64c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0c62.1 0 118.9 22.1 163.3 58.8l-45.5 45.5z"/> </svg> } if (iconName === 'satellite-dish-duotone') { renderedIcon = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <defs> <style>{` .fa-secondary { color: ${iconColors[iconColor]} !important; } `}</style> </defs> <path className="fa-primary" d="M60.6 220.6c-14.5-14.5-38.8-11.8-46.3 7.3C5.1 251.5 0 277.1 0 304C0 418.9 93.1 512 208 512c26.9 0 52.5-5.1 76.1-14.4c19-7.5 21.8-31.8 7.3-46.3L187.3 347.3l28.4-28.4c2.6 .7 5.4 1.1 8.3 1.1c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32c0 2.9 .4 5.6 1.1 8.3l-28.4 28.4L60.6 220.6z"/> <path className="fa-secondary" d="M224 0c-17.7 0-32 14.3-32 32s14.3 32 32 32c123.7 0 224 100.3 224 224c0 17.7 14.3 32 32 32s32-14.3 32-32C512 128.9 383.1 0 224 0zm0 96c-17.7 0-32 14.3-32 32s14.3 32 32 32c70.7 0 128 57.3 128 128c0 17.7 14.3 32 32 32s32-14.3 32-32c0-106-86-192-192-192z"/> </svg> } if (iconName === 'spinner') { renderedIcon = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="20" height="20"> <defs> <style> {` .fa-secondary { opacity: 0.4; } `} </style> </defs> <path className="fa-primary" d="M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM96 256A48 48 0 1 0 0 256a48 48 0 1 0 96 0zM75 142.9A48 48 0 1 0 142.9 75 48 48 0 1 0 75 142.9z"/> <path className="fa-secondary" d="M369.1 75A48 48 0 1 1 437 142.9 48 48 0 1 1 369.1 75zM416 256a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM208 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM75 369.1A48 48 0 1 1 142.9 437 48 48 0 1 1 75 369.1zm294.2 0A48 48 0 1 1 437 437a48 48 0 1 1 -67.9-67.9z"/> </svg> } return ( <div {...props} ref={ref}>{renderedIcon}</div> ) }); const Icon = ({name, color, size, tooltip}) => { // set defaults if not set const iconName = name || 'bullet'; const iconColor = color || 'black'; let iconSize = size || 15; let tooltipClass = tooltip ? 'tooltip-' : ''; let randomId= Math.floor(Math.random() * 1000000000); if ( tooltip ) { return ( <div className={'rsssl-' + tooltipClass + 'icon rsssl-icon-' + iconName + ' rsssl-' + iconColor}> <IconHtml data-for={".rsssl-"+randomId} name={iconName} color={iconColor} size={iconSize} id={randomId} className={"rsssl-"+randomId} data-tooltip-delay-hide={200}/> <Tooltip style={{ zIndex: 99 }} id={randomId} place="bottom" anchorSelect={".rsssl-"+randomId} content={tooltip} /> </div> ); } return ( <div className={'rsssl-' + tooltipClass + 'icon rsssl-icon-' + iconName + ' rsssl-' + iconColor}> <IconHtml name={iconName} color={iconColor} size={iconSize} /> </div> ); } export default Icon; src/utils/formatting.js 0000777 00000003454 15252021227 0011216 0 ustar 00 /** Takes a relative date and an optional date parameter, and returns a human-readable string representing the difference between the two dates. @function @param {number|Date} relativeDate - The relative date (can be a number representing an UTC timestamp, or a Date object). @param {Date} [date=new Date()] - An optional date parameter to compare the relative date to. Defaults to the current date and time. @returns {string} A human-readable string representing the difference between the two dates (e.g., "in 3 months", "5 hours ago", etc.). Returns "-" if the input date is invalid or not yet loaded. @example const timestamp = Date.now() / 1000 + 60 * 60 * 24 * 3; // UTC timestamp 3 days from now console.log(getRelativeTime(timestamp)); // Output: "in 3 days" */ export const getRelativeTime = (relativeDate, date = new Date()) => { // if relativeDate is a number, we assume it is an UTC timestamp if (typeof relativeDate === 'number') { // count charachters to check if in seconds or milliseconds if (relativeDate.toString().length < 13) { relativeDate = relativeDate * 1000; } // convert to date object relativeDate = new Date(relativeDate); } if (!(relativeDate instanceof Date)) { // invalid date, probably still loading return '-'; } let units = { year : 24 * 60 * 60 * 1000 * 365, month : 24 * 60 * 60 * 1000 * 365/12, day : 24 * 60 * 60 * 1000, hour : 60 * 60 * 1000, minute: 60 * 1000, second: 1000 } let rtf = new Intl.RelativeTimeFormat('en', { numeric: 'auto' }) let elapsed = relativeDate - date // "Math.abs" accounts for both "past" & "future" scenarios for (let u in units) { if (Math.abs(elapsed) > units[u] || u === 'second') { return rtf.format(Math.round(elapsed/units[u]), u) } } } src/utils/Hyperlink.js 0000777 00000001634 15252021227 0011007 0 ustar 00 const Hyperlink = (props) => { let label_pre = ''; let label_post = ''; let link_text = ''; // Split the text around '%s' if it exists if (props.text.indexOf('%s') !== -1) { let parts = props.text.split(/%s/); label_pre = parts[0]; link_text = parts[1]; label_post = parts[2]; } else { link_text = props.text; } // Use the passed className or default to 'rsssl-link' let className = props.className ? props.className : 'rsssl-link'; // Include rel attribute in the anchor tag return ( <> {label_pre} <a className={className} target={props.target} rel={props.rel} // Add the rel attribute here href={props.url} > {link_text} </a> {label_post} </> ); } export default Hyperlink; src/utils/api.js 0000777 00000012472 15252021227 0007615 0 ustar 00 import getAnchor from "./getAnchor"; import apiFetch from '@wordpress/api-fetch'; export const getNonce = () => { return '&nonce='+rsssl_settings.rsssl_nonce+'&token='+Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 5); }; const usesPlainPermalinks = () => { return rsssl_settings.site_url.indexOf('?') !==-1; }; const ajaxPost = (path, requestData) => { return new Promise(function (resolve, reject) { let url = siteUrl('ajax'); let xhr = new XMLHttpRequest(); xhr.open('POST', url ); xhr.onload = function () { let response; try { response = JSON.parse(xhr.response); } catch (error) { resolve(invalidDataError(xhr.response, 500, 'invalid_data') ); } if (xhr.status >= 200 && xhr.status < 300) { resolve(response); } else { resolve(invalidDataError(xhr.response, xhr.status, xhr.statusText) ); } }; xhr.onerror = function () { resolve(invalidDataError(xhr.response, xhr.status, xhr.statusText) ); }; let data = {}; data['path'] = path; data['data'] = requestData; data = JSON.stringify(data, stripControls); xhr.setRequestHeader('Content-Type', 'application/json; charset=UTF-8'); xhr.send(data); }); } /** * All data elements with 'Control' in the name are dropped, to prevent: * TypeError: Converting circular structure to JSON * @param key * @param value * @returns {any|undefined} */ const stripControls = (key, value) => { if (!key){return value} if (key && key.includes("Control")) { return undefined; } if (typeof value === "object") { return JSON.parse(JSON.stringify(value, stripControls)); } return value; } const ajaxGet = (path) => { return new Promise(function (resolve, reject) { let url = siteUrl('ajax'); url+='&rest_action='+path.replace('?', '&'); let xhr = new XMLHttpRequest(); xhr.open('GET', url); xhr.onload = function () { let response; try { response = JSON.parse(xhr.response); } catch (error) { resolve(invalidDataError(xhr.response, 500, 'invalid_data') ); } if (xhr.status >= 200 && xhr.status < 300) { if ( !response.hasOwnProperty('request_success') ) { resolve(invalidDataError(xhr.response, 500, 'invalid_data') ); } resolve(response); } else { resolve(invalidDataError(xhr.response, xhr.status, xhr.statusText) ); } }; xhr.onerror = function () { resolve(invalidDataError(xhr.response, xhr.status, xhr.statusText) ); }; xhr.send(); }); } /** * if the site is loaded over https, but the site url is not https, force to use https anyway, because otherwise we get mixed content issues. * @returns {*} */ const siteUrl = (type) => { let url; if (typeof type ==='undefined') { url = rsssl_settings.site_url; } else { url = rsssl_settings.admin_ajax_url } if ( window.location.protocol === "https:" && url.indexOf('https://')===-1 ) { return url.replace('http://', 'https://'); } return url; } const invalidDataError = (apiResponse, status, code ) => { let response = {} let error = {}; let data = {}; data.status = status; error.code = code; error.data = data; error.message = apiResponse; response.error = error; return response; } const apiGet = (path) => { return apiFetch( { path: path } ).then((response) => { if ( !response.request_success ) { return ajaxGet(path); } return response; }).catch((error) => { return ajaxGet(path); }); } const apiPost = (path, data) => { return apiFetch( { path: path, method: 'POST', data: data, } ).catch((error) => { return ajaxPost(path, data); }); } const glue = () => { return rsssl_settings.site_url.indexOf('?')!==-1 ? '&' : '?' } export const getFields = () => { //we pass the anchor, so we know when LE is loaded let anchor = getAnchor('main'); return apiGet('reallysimplessl/v1/fields/get'+glue()+anchor+getNonce(), 'GET'); }; /* * Post our data to the back-end * @param data */ export const setFields = (data) => { //we pass the anchor, so we know when LE is loaded let anchor = getAnchor('main'); let nonce = {'nonce': rsssl_settings.rsssl_nonce}; data.push(nonce); return apiPost('reallysimplessl/v1/fields/set' + glue() + anchor, data); } export const runTest = (test, state, data ) => { if ( !state ){ state = false; } if ( !data ) { data = false; } data = encodeURIComponent(JSON.stringify(data)); return apiGet('reallysimplessl/v1/tests/'+test+glue()+'state='+state+getNonce()+'&data='+data) }; export const runLetsEncryptTest = (test, id ) => { return apiGet('reallysimplessl/v1/tests/'+test+glue()+'letsencrypt=1&id='+id+getNonce()); } export const doAction = (action, data) => { const newData = { ...data }; newData.nonce = rsssl_settings.rsssl_nonce; return apiPost('reallysimplessl/v1/do_action/'+action, newData); } src/utils/AddUrlRef.js 0000777 00000000466 15252021227 0010654 0 ustar 00 export const addUrlRef = (url) => { const ref = rsssl_settings.ref; if ( parseInt(ref) > 0 ) { const [baseUrl, hash] = url.split('#'); const separator = baseUrl.includes('?') ? '&' : '?'; url = `${baseUrl}${separator}ref=${ref}${hash ? `#${hash}` : ''}`; } return url; } src/utils/getAnchor.js 0000777 00000002576 15252021227 0010762 0 ustar 00 /* * helper function to delay after a promise * @param ms * @returns {function(*): Promise<unknown>} */ const getAnchor = (level) => { let url = window.location.href; if (url.indexOf('#') === -1) { return false; } let queryString = url.split('#')[1]; if (!queryString) { return false; } // Split the query string to handle multiple parameters let urlParts = queryString.split('&'); if (level === 'highlightfield') { // Extract highlightfield parameter for (let part of urlParts) { if (part.startsWith('highlightfield=')) { return part.split('=')[1]; } } return false; } // Default behavior for 'anchor' and 'menu' let urlPart = urlParts[0]; if (level === 'anchor') { if (urlPart.indexOf('/') === -1) { return false; } else { let urlSegments = urlPart.split('/'); return urlSegments.length > 2 ? urlSegments[2] : false; } } else if (level === 'menu') { if (urlPart.indexOf('/') === -1) { return false; } else { let urlSegments = urlPart.split('/'); return urlSegments.length > 1 ? urlSegments[1] : false; } } else { return urlPart.indexOf('/') === -1 ? urlPart : urlPart.split('/')[0]; } }; export default getAnchor; src/utils/hoverTooltip_bu.js 0000777 00000005537 15252021227 0012234 0 ustar 00 // src/utils/hoverTooltip.js import {useEffect} from '@wordpress/element'; const tooltipStyles = { display: 'none', position: 'absolute', backgroundColor: 'rgba(0,0,0,0.8)', color: 'white', padding: '10px', borderRadius: '3px', fontSize: '13px', left: '0px', zIndex: 1000, }; const allowedClasses = ['enable_firewall', '404_blocking_threshold', '404_blocking_lockout_duration']; const hasAllowedClass = (element) => { if (!element) return false; // Check if the element itself has the allowed class const elementHasClass = allowedClasses.some((cls) => { const hasClass = element.classList.contains(cls); return hasClass; }); if (elementHasClass) return true; // Check child elements for the allowed class const children = Array.from(element.querySelectorAll('*')); return children.some((child) => allowedClasses.some((cls) => { const hasClass = child.classList.contains(cls); return hasClass; }) ); }; const hoverTooltip = (ref, condition, tooltipText) => { useEffect(() => { const element = ref.current; if (!element) return; if (!hasAllowedClass(element)) return; let tooltip = document.getElementById('rsssl-hover-tooltip'); if (!tooltip) { tooltip = document.createElement('div'); tooltip.id = 'rsssl-hover-tooltip'; Object.assign(tooltip.style, tooltipStyles); } tooltip.innerHTML = tooltipText; const parent = element.parentElement; if (parent.style.position !== 'relative') { parent.style.position = 'relative'; } if (!parent.contains(tooltip)) { parent.appendChild(tooltip); } const showTooltip = () => { // Show tooltip when condition (originalDisabled) is true // This means show it when the field is disabled by PHP if (condition) { tooltip.style.display = 'block'; } }; const hideTooltip = () => { tooltip.style.display = 'none'; }; // Use the parent element as the hover target since the select // itself might not trigger hover events when disabled const target = element.parentElement; target.addEventListener('mouseover', showTooltip); target.addEventListener('mouseout', hideTooltip); return () => { target.removeEventListener('mouseover', showTooltip); target.removeEventListener('mouseout', hideTooltip); if (parent && parent.contains(tooltip) && !document.body.contains(element)) { parent.style.position = ''; tooltip.remove(); } }; }, [ref.current, condition]); // Only re-run if ref or condition changes }; export default hoverTooltip; src/utils/Flag/Flag.js 0000777 00000000446 15252021227 0010564 0 ustar 00 import * as Flags from './Flags'; const Flag = ({ countryCode, style, title }) => { const FlagComponent = Flags[countryCode]; return FlagComponent ? <span title={title} ><FlagComponent style={style} /></span> : ( <span title={title}>{countryCode}</span> ); }; export default Flag; src/index.js 0000777 00000001324 15252021227 0007005 0 ustar 00 import { render, createRoot } from '@wordpress/element'; import Page from './Page'; /** * Initialize */ document.addEventListener( 'DOMContentLoaded', () => { const container = document.getElementById( 'really-simple-ssl' ); if ( container ) { if ( createRoot ) { createRoot( container ).render( <Page/> ); } else { render( <Page/>, container ); } } }); /* * Some oldschool stuff */ document.addEventListener('click', e => { if ( e.target.closest('#ssl-labs-check-button') ) { document.querySelector('.rsssl-ssllabs').classList.add('rsssl-block-highlight'); setTimeout(function(){ document.querySelector('.rsssl-ssllabs').classList.remove('rsssl-block-highlight'); }, 6000); } }); src/Menu/MenuItem.js 0000777 00000006161 15252021227 0010331 0 ustar 00 import { __ } from '@wordpress/i18n'; import useMenu from "./MenuData"; const MenuItem = (props) => { const {selectedSubMenuItem, selectedMainMenuItem, subMenu, menu} = useMenu(); const menuIsSelected = isSelectedMenuItem(selectedSubMenuItem, props.menuItem); const ensureArray = (data) => { return Array.isArray(data) ? data : [data]; } let menuClass = menuIsSelected ? ' rsssl-active' : ''; menuClass += props.menuItem.featured ? ' rsssl-featured' : ''; menuClass += props.menuItem.new ? ' rsssl-new' : ''; menuClass += props.menuItem.premium && !rsssl_settings.pro_plugin_active ? ' rsssl-premium' : ''; let menuLink = props.menuItem.directLink || '#'+selectedMainMenuItem+'/'+props.menuItem.id; return ( <> {props.menuItem.visible && ( <> {props.isMainMenu ? ( <div className="rsssl-main-menu"> <div className={"rsssl-menu-item" + menuClass}> <a href={menuLink}> <span>{props.menuItem.title}</span> {props.menuItem.featured && <span className='rsssl-menu-item-beta-pill'>{__('Beta', 'really-simple-ssl')}</span>} {props.menuItem.new && <span className='rsssl-menu-item-new-pill'>{__('New', 'really-simple-ssl')}</span>} </a> </div> </div> ) : ( <div className={"rsssl-menu-item" + menuClass}> <a href={menuLink}> <span>{props.menuItem.title}</span> {props.menuItem.featured && <span className='rsssl-menu-item-beta-pill'>{__('Beta', 'really-simple-ssl')}</span>} {props.menuItem.new && <span className='rsssl-menu-item-new-pill'>{__('New', 'really-simple-ssl')}</span>} </a> </div> )} {props.menuItem.menu_items && menuIsSelected && ( <div className="rsssl-submenu-item"> {ensureArray(props.menuItem.menu_items).map((subMenuItem, i) => ( subMenuItem.visible && <MenuItem key={"submenuItem" + i} menuItem={subMenuItem} isMainMenu={false} /> ))} </div> )} </> )} </> ); } export default MenuItem /** * Utility function to check if selected menu item is the current menu item or a child of the current menu item * @param selectedSubMenuItem * @param menuItem * @returns {boolean} */ const isSelectedMenuItem = (selectedSubMenuItem, menuItem) => { if (selectedSubMenuItem === menuItem.id) { return true; } if (menuItem.menu_items) { for (const item of menuItem.menu_items) { if (item.id === selectedSubMenuItem) { return true; } } } return false; }; src/Menu/MenuData.js 0000777 00000023532 15252021227 0010305 0 ustar 00 import {create} from 'zustand'; import getAnchor from "../utils/getAnchor"; const useMenu = create(( set, get ) => ({ menu: [], subMenuLoaded:false, previousMenuItem:false, nextMenuItem:false, selectedMainMenuItem:false, selectedSubMenuItem:false, selectedFilter: false, activeGroupId: false, hasPremiumItems:false, subMenu:{title:' ',menu_items:[]}, setSelectedSubMenuItem: async (selectedSubMenuItem) => { let selectedMainMenuItem = getMainMenuForSubMenu(selectedSubMenuItem); set(state => ({ selectedSubMenuItem,selectedMainMenuItem })) // window.location.href=rsssl_settings.dashboard_url+'#'+selectedMainMenuItem+'/'+selectedSubMenuItem; window.location.hash = selectedMainMenuItem+'/'+selectedSubMenuItem; }, setSelectedMainMenuItem: (selectedMainMenuItem) => { set(state => ({ selectedMainMenuItem })) // window.location.href=rsssl_settings.dashboard_url+'#'+selectedMainMenuItem; window.location.hash = selectedMainMenuItem; }, //we need to get the main menu item directly from the anchor, otherwise we have to wait for the menu to load in page.js fetchSelectedMainMenuItem: () => { let selectedMainMenuItem = getAnchor('main') || 'dashboard'; set((state) => ({selectedMainMenuItem: selectedMainMenuItem})); }, fetchSelectedSubMenuItem: async () => { let selectedSubMenuItem = getAnchor('menu') || 'general'; set((state) => ({selectedSubMenuItem: selectedSubMenuItem})); }, fetchMenuData: (fields) => { let menu = rsssl_settings.menu; menu = Object.values(menu); const selectedMainMenuItem = getAnchor('main') || 'dashboard'; menu = menu.filter( item => !item.default_hidden || selectedMainMenuItem===item.id); if ( typeof fields !== 'undefined' ) { let subMenu = getSubMenu(menu, selectedMainMenuItem); const selectedSubMenuItem = getSelectedSubMenuItem(subMenu, fields); subMenu.menu_items = dropEmptyMenuItems(subMenu.menu_items, fields, selectedSubMenuItem); const { nextMenuItem, previousMenuItem } = getPreviousAndNextMenuItems(menu, selectedSubMenuItem, fields); const hasPremiumItems = subMenu.menu_items.filter((item) => {return (item.premium===true)}).length>0; set((state) => ({subMenuLoaded:true, menu: menu, nextMenuItem:nextMenuItem, previousMenuItem:previousMenuItem, selectedMainMenuItem: selectedMainMenuItem, selectedSubMenuItem:selectedSubMenuItem, subMenu: subMenu, hasPremiumItems: hasPremiumItems})); } else { set((state) => ({menu: menu, selectedMainMenuItem: selectedMainMenuItem})); } }, getDefaultSubMenuItem: async (fields) => { let subMenuLoaded = get().subMenuLoaded; if (!subMenuLoaded){ await get().fetchMenuData(fields); } let subMenu = get().subMenu; let fallBackMenuItem = subMenuLoaded && subMenu.hasOwnProperty(0) ? subMenu[0].id : 'general'; let anchor = getAnchor('menu'); let foundAnchorInMenu = false; //check if this anchor actually exists in our current submenu. If not, clear it for (const key in this.menu.menu_items) { if ( subMenu.hasOwnProperty(key) && subMenu[key].id === anchor ){ foundAnchorInMenu=true; } } if ( !foundAnchorInMenu ) anchor = false; return anchor ? anchor : fallBackMenuItem; } })); export default useMenu; // Parses menu items and nested items in single array const menuItemParser = (parsedMenuItems, menuItems, fields) => { menuItems.forEach((menuItem) => { if( menuItem.visible ) { parsedMenuItems.push(menuItem.id); if( menuItem.hasOwnProperty('menu_items') ) { menuItem.menu_items = dropEmptyMenuItems(menuItem.menu_items, fields ); menuItemParser(parsedMenuItems, menuItem.menu_items, fields); } } }); return parsedMenuItems; } const getPreviousAndNextMenuItems = (menu, selectedSubMenuItem, fields) => { let previousMenuItem; let nextMenuItem; const parsedMenuItems = []; menuItemParser(parsedMenuItems, menu, fields); // Finds current menu item index const currentMenuItemIndex = parsedMenuItems.findIndex((menuItem) => menuItem === selectedSubMenuItem); if( currentMenuItemIndex !== -1 ) { previousMenuItem = parsedMenuItems[ currentMenuItemIndex === 0 ? '' : currentMenuItemIndex - 1]; //if the previous menu item has a submenu, we should move one more back, because it will select the current sub otherwise. const previousMenuHasSubMenu = getMenuItemByName(previousMenuItem, menu).hasOwnProperty('menu_items'); if (previousMenuHasSubMenu) { previousMenuItem = parsedMenuItems[ currentMenuItemIndex === 0 ? '' : currentMenuItemIndex - 2] } nextMenuItem = parsedMenuItems[ currentMenuItemIndex === parsedMenuItems.length - 1 ? '' : currentMenuItemIndex + 1]; previousMenuItem = previousMenuItem ? previousMenuItem : parsedMenuItems[0]; nextMenuItem = nextMenuItem ? nextMenuItem : parsedMenuItems[parsedMenuItems.length - 1] } return { nextMenuItem, previousMenuItem }; } const dropEmptyMenuItems = (menuItems, fields) => { if (!Array.isArray(fields)) { return menuItems; // return the original menuItems unchanged } const newMenuItems = menuItems; for (const [index, menuItem] of menuItems.entries()) { let menuItemFields = fields.filter((field) => { return (field.menu_id === menuItem.id ) }); menuItemFields = menuItemFields.filter((field) => { return ( field.visible ) }); if ( menuItemFields.length === 0 && !menuItem.hasOwnProperty('menu_items') ) { if (typeof newMenuItems[index] === 'object' && newMenuItems[index] !== null) { newMenuItems[index].visible = false; } } else { if (typeof newMenuItems[index] === 'object' && newMenuItems[index] !== null) { newMenuItems[index].visible = true; } if( menuItem.hasOwnProperty('menu_items') ) { newMenuItems[index].menu_items = dropEmptyMenuItems(menuItem.menu_items, fields); } } } return newMenuItems; } /* * filter sidebar menu from complete menu structure */ const getSubMenu = (menu, selectedMainMenuItem) => { let subMenu = []; for (const key in menu) { if ( menu.hasOwnProperty(key) && menu[key].id === selectedMainMenuItem ){ subMenu = menu[key]; } } subMenu = addVisibleToMenuItems(subMenu); return subMenu; } /* * Get the main menu item for a submenu item */ const getMainMenuForSubMenu = (findMenuItem) => { let menu = rsssl_settings.menu; for (const mainKey in menu) { let mainMenuItem = menu[mainKey]; if (mainMenuItem.id===findMenuItem) { return mainMenuItem.id; } if (mainMenuItem.menu_items){ for (const subKey in mainMenuItem.menu_items) { let subMenuItem = mainMenuItem.menu_items[subKey]; if (subMenuItem.id===findMenuItem) { return mainMenuItem.id; } if (subMenuItem.menu_items){ for (const sub2Key in subMenuItem.menu_items) { let sub2MenuItem = subMenuItem.menu_items[sub2Key]; if (sub2MenuItem.id===findMenuItem) { return mainMenuItem.id; } } } } } } return false; } /** * Get the current selected menu item based on the hash, selecting subitems if the main one is empty. */ const getSelectedSubMenuItem = (subMenu, fields) => { let fallBackMenuItem = subMenu && subMenu.menu_items.hasOwnProperty(0) ? subMenu.menu_items[0].id : 'general'; let foundAnchorInMenu; //get flat array of menu items let parsedMenuItems = menuItemParser([], subMenu.menu_items); let anchor = getAnchor('menu'); //check if this anchor actually exists in our current submenu. If not, clear it foundAnchorInMenu = parsedMenuItems.filter(menu_item => menu_item === anchor); if ( !foundAnchorInMenu ) { anchor = false; } let selectedMenuItem = anchor ? anchor : fallBackMenuItem; //check if menu item has fields. If not, try a subitem let fieldsInMenu = fields.filter(field => field.menu_id === selectedMenuItem); if ( fieldsInMenu.length===0 ) { //look up the current menu item let menuItem = getMenuItemByName(selectedMenuItem, subMenu.menu_items); if (menuItem && menuItem.menu_items && menuItem.menu_items.hasOwnProperty(0)) { selectedMenuItem = menuItem.menu_items[0].id; } } return selectedMenuItem; } //Get a menu item by name from the menu array const getMenuItemByName = (name, menuItems) => { for (const key in menuItems ){ let menuItem = menuItems[key]; if ( menuItem.id === name ) { return menuItem; } if ( menuItem.menu_items ) { let found = getMenuItemByName(name, menuItem.menu_items); if (found) return found; } } return false; } const addVisibleToMenuItems = (menu) => { let newMenuItems = Array.isArray(menu.menu_items) ? menu.menu_items : Object.values(menu.menu_items); for (let [index, menuItem] of newMenuItems.entries()) { if (typeof menuItem === 'object' && menuItem !== null) { menuItem.visible = true; if (menuItem.hasOwnProperty('menu_items')) { menuItem = addVisibleToMenuItems(menuItem); } newMenuItems[index] = menuItem; } } menu.menu_items = newMenuItems; menu.visible = true; return menu; } src/Menu/Menu.js 0000777 00000001676 15252021227 0007520 0 ustar 00 import MenuPlaceholder from '../Placeholder/MenuPlaceholder'; import MenuItem from './MenuItem'; import useMenu from "./MenuData"; /** * Menu block, rendering the entire menu */ const Menu = () => { const {subMenu, subMenuLoaded} = useMenu(); if ( !subMenuLoaded ) { return( <MenuPlaceholder /> ) } return ( <div className="rsssl-wizard-menu rsssl-grid-item"> <div className="rsssl-grid-item-header"> <h1 className="rsssl-h4">{subMenu.title}</h1> </div> <div className="rsssl-grid-item-content"> <div className="rsssl-wizard-menu-items"> { subMenu.menu_items.map((menuItem, i) => <MenuItem key={"menuItem-"+i} menuItem={menuItem} isMainMenu={true} /> ) } </div> </div> <div className="rsssl-grid-item-footer"> </div> </div> ) } export default Menu; src/Modal/Modal.js 0000777 00000006357 15252021227 0010001 0 ustar 00 import { __ } from '@wordpress/i18n'; import * as rsssl_api from "../utils/api"; import Icon from "../utils/Icon"; import useModal from "./ModalData"; import {useState} from '@wordpress/element'; const Modal = (props) => { const {handleModal, modalData, setModalData, showModal, setIgnoredItemId, setFixedItemId, item} = useModal(); const [buttonsDisabled, setButtonsDisabled] = useState(false); const dismissModal = () => { handleModal(false, null, null); } const handleFix = (e, type) => { //set to disabled let action = modalData.action; setButtonsDisabled(true); rsssl_api.runTest(action, 'refresh', modalData ).then( ( response ) => { let data = {...modalData}; data.description = response.msg; data.subtitle = ''; setModalData(data); setButtonsDisabled(false); if (response.success) { if (type==='ignore' && item !==false ) { setIgnoredItemId(item.id); } else { setFixedItemId(item.id); } handleModal(false, null); } }); } if (!showModal) { return (<></>); } let disabled = buttonsDisabled ? 'disabled' : ''; let description = modalData.description; if ( !Array.isArray(description) ) { description = [description]; } return ( <div> <div className="rsssl-modal-backdrop" onClick={ (e) => dismissModal(e) }> </div> <div className="rsssl-modal" id="{id}"> <div className="rsssl-modal-header"> <h2 className="modal-title"> {modalData.title} </h2> <button type="button" className="rsssl-modal-close" data-dismiss="modal" aria-label="Close" onClick={ (e) => dismissModal(e) }> <Icon name='times' /> </button> </div> <div className="rsssl-modal-content"> { modalData.subtitle && <div className="rsssl-modal-subtitle">{modalData.subtitle}</div>} { Array.isArray(description) && description.map((s, i) => <div key={"modalDescription-"+i} className="rsssl-modal-description">{s}</div>) } </div> <div className="rsssl-modal-footer"> { modalData.edit && <a href={modalData.edit} target="_blank" rel="noopener noreferrer" className="button button-secondary">{__("Edit", "really-simple-ssl")}</a>} { modalData.help && <a href={modalData.help} target="_blank" rel="noopener noreferrer" className="button rsssl-button-help">{__("Help", "really-simple-ssl")}</a>} { (!modalData.ignored && modalData.action==='ignore_url') && <button disabled={disabled} className="button button-primary" onClick={ (e) => handleFix(e, 'ignore') }>{ __("Ignore", "really-simple-ssl")}</button>} { modalData.action!=='ignore_url' && <button disabled={disabled} className="button button-primary" onClick={ (e) => handleFix(e, 'fix') }>{__("Fix", "really-simple-ssl")}</button> } </div> </div> </div> ) } export default Modal; src/Modal/ModalData.js 0000777 00000001441 15252021227 0010560 0 ustar 00 import {create} from 'zustand'; const useModalData = create(( set, get ) => ({ modalData: [], buttonsDisabled: false, showModal:false, ignoredItems:[], fixedItems:[], item:false, setIgnoredItemId: (ignoredItemId) => { let ignoredItems = get().ignoredItems; ignoredItems.push(ignoredItemId); set({ignoredItems: ignoredItems, }); }, setFixedItemId: (fixedItemId) => { let fixedItems = get().fixedItems; fixedItems.push(fixedItemId); set({fixedItems: fixedItems, }); }, handleModal: (showModal, modalData, item) => { set({showModal: showModal, modalData:modalData, item:item }); }, setModalData: (modalData) => { set({modalData:modalData }); }, })); export default useModalData; src/Modal/ModalControl.js 0000777 00000000732 15252021227 0011331 0 ustar 00 import useModal from "./ModalData"; /** * Button to open the modal * @param props * @returns {JSX.Element} * @constructor */ const ModalControl = (props) => { const {handleModal} = useModal(); const onClickHandler = () => { handleModal(true, props.modalData, props.item ); } return ( <button className={"button button-" + props.btnStyle} onClick={ (e) => onClickHandler(e) }>{props.btnText}</button> ) } export default ModalControl src/Settings/GroupFilter.js 0000777 00000001734 15252021227 0011745 0 ustar 00 // GroupFilter.js import { useState, useRef, useEffect } from "@wordpress/element"; import { __ } from "@wordpress/i18n"; const GroupFilter = ({ groupFilter, filterId, selectedFilter, setSelectedFilter }) => { if (!groupFilter) { return null; } return ( <div className="rsssl-grid-item-controls"> <select className="rsssl-group-filter" id={filterId} name={filterId} value={selectedFilter[filterId]} onChange={(e) => { const selectedValue = e.target.value; setSelectedFilter(selectedValue, filterId); }} > {groupFilter.options.map((option) => ( <option key={`option-${option.id}`} value={option.id}> {option.title} </option> ))} </select> </div> ); }; export default GroupFilter; src/Settings/Help.js 0000777 00000002751 15252021227 0010373 0 ustar 00 import Icon from "../utils/Icon"; import { __ } from '@wordpress/i18n'; import DOMPurify from "dompurify"; /** * Render a help notice in the sidebar */ const Help = (props) => { let notice = {...props.help}; if ( !notice.title ){ notice.title = notice.text; notice.text = false; } let openStatus = props.noticesExpanded ? 'open' : ''; //we can use notice.linked_field to create a visual link to the field. let target = notice.url && notice.url.indexOf("really-simple-ssl.com") !==-1 ? "_blank" : '_self'; return ( <div> { notice.title && notice.text && <details className={"rsssl-wizard-help-notice rsssl-" + notice.label.toLowerCase()} open={openStatus}> <summary>{notice.title} <Icon name='chevron-down' /></summary> {/*some notices contain html, like for the htaccess notices. A title is required for those options, otherwise the text becomes the title. */} <div dangerouslySetInnerHTML={{__html: DOMPurify.sanitize(notice.text)}}></div> {notice.url && <div className="rsssl-help-more-info"><a target={target} href={notice.url}>{__("More info", "really-simple-ssl")}</a></div>} </details> } { notice.title && !notice.text && <div className={"rsssl-wizard-help-notice rsssl-" + notice.label.toLowerCase()}><p>{notice.title}</p></div> } </div> ); } export default Help src/Settings/Notices.js 0000777 00000001416 15252021227 0011104 0 ustar 00 /** * Notice after saving was successfull */ import { SnackbarList } from '@wordpress/components'; import { useDispatch, useSelect, } from '@wordpress/data'; import { store as noticesStore } from '@wordpress/notices'; const Notices = () => { const notices = useSelect( ( select ) => select( noticesStore ) .getNotices() .filter( ( notice ) => notice.type === 'snackbar' ), [] ); if ( typeof notices === 'undefined' ) { return (<></>) } const { removeNotice } = useDispatch( noticesStore ); return ( <SnackbarList className="edit-site-notices" notices={ notices } onRemove={ removeNotice } /> ); }; export default Notices; src/Settings/CheckboxControl.js 0000777 00000007676 15252021227 0012605 0 ustar 00 /* * The tooltip can't be included in the native toggleControl, so we have to build our own. */ import { useState, useRef, useEffect } from "@wordpress/element"; import { __experimentalConfirmDialog as ConfirmDialog } from '@wordpress/components'; import hoverTooltip from "../utils/hoverTooltip"; import {__} from '@wordpress/i18n'; const CheckboxControl = (props) => { const checkboxRef = useRef(null); let disabledCheckboxPropBoolean = (props.disabled === true); let disabledCheckboxViaFieldConfig = (props.field.disabled === true); let checkboxDisabled = ( disabledCheckboxViaFieldConfig || disabledCheckboxPropBoolean ); let tooltipText = ''; let emptyValues = [undefined, null, '']; if (checkboxDisabled && props.field.hasOwnProperty('disabledTooltipHoverText') && !emptyValues.includes(props.field.disabledTooltipHoverText) ) { tooltipText = props.field.disabledTooltipHoverText; } hoverTooltip( checkboxRef, (checkboxDisabled && (tooltipText !== '')), tooltipText ); // const tooltipText = __("404 errors detected on your home page. 404 blocking is unavailable, to prevent blocking of legitimate visitors. It is strongly recommended to resolve these errors.", "really-simple-ssl"); // // Pass props.disabled as the condition // hoverTooltip(checkboxRef, props.disabled, tooltipText); const [ isOpen, setIsOpen ] = useState( false ); const onChangeHandler = (e) => { // WordPress <6.0 does not have the confirmdialog component if ( !ConfirmDialog ) { executeAction(); return; } if (props.field.warning && props.field.warning.length>0 && !props.field.value) { setIsOpen( true ); } else { executeAction(); } } const handleConfirm = async () => { setIsOpen( false ); executeAction(); }; const handleCancel = () => { setIsOpen( false ); }; const executeAction = (e) => { let fieldValue = !props.field.value; props.onChangeHandler(fieldValue) } const handleKeyDown = (e) => { if (e.key === 'Enter') { e.preventDefault(); onChangeHandler(true); } } let field = props.field; let is_checked = field.value ? 'is-checked' : ''; let is_disabled = props.disabled ? 'is-disabled' : ''; return ( <> {ConfirmDialog && <ConfirmDialog isOpen={ isOpen } onConfirm={ handleConfirm } onCancel={ handleCancel } > {field.warning} </ConfirmDialog> } <div className="components-base-control components-toggle-control"> <div className="components-base-control__field"> <div data-wp-component="HStack" className="components-flex components-h-stack"> <span className={ "components-form-toggle "+is_checked + ' ' +is_disabled}> <input ref={checkboxRef} onKeyDown={(e) => handleKeyDown(e)} checked={props.value} className="components-form-toggle__input" onChange={ ( e ) => onChangeHandler(e) } id={props.id} type="checkbox" disabled={props.disabled} /> <span className="components-form-toggle__track"></span> <span className="components-form-toggle__thumb"></span> </span> <label htmlFor={field.id} className="components-toggle-control__label">{props.label}</label> </div> </div> </div> </> ); } export default CheckboxControl src/Settings/LimitLoginAttempts/UserDatatable.js 0000777 00000024273 15252021227 0016017 0 ustar 00 import {__} from '@wordpress/i18n'; import {useCallback, useEffect, useState} from '@wordpress/element'; import DataTable, {createTheme} from "react-data-table-component"; import UserDataTableStore from "./UserDataTableStore"; import FilterData from "../FilterData"; import {button} from "@wordpress/components"; import {produce} from "immer"; import AddIpAddressModal from "./AddIpAddressModal"; import AddUserModal from "./AddUserModal"; import EventLogDataTableStore from "../EventLog/EventLogDataTableStore"; import useFields from "../FieldsData"; import FieldsData from "../FieldsData"; import SearchBar from "../DynamicDataTable/SearchBar"; import AddButton from "../DynamicDataTable/AddButton"; const UserDatatable = (props) => { let { UserDataTable, dataLoaded, fetchData, processing, handleUserTableFilter, handleUserTablePageChange, pagination, resetRow, resetMultiRow, dataActions, handleUserTableRowsChange, handleUserTableSort, handleUserTableSearch, updateMultiRow, updateRow, rowCleared } = UserDataTableStore() const {showSavedSettingsNotice} = FieldsData(); const { fetchDynamicData, } = EventLogDataTableStore(); //here we set the selectedFilter from the Settings group const { selectedFilter, setSelectedFilter, activeGroupId, getCurrentFilter, setProcessingFilter, } = FilterData(); const [rowsSelected, setRowsSelected] = useState([]); const [addingUser, setAddingUser] = useState(false); const [user, setUser] = useState(''); const [tableHeight, setTableHeight] = useState(600); // Starting height const rowHeight = 50; // Height of each row. const moduleName = 'rsssl-group-filter-limit_login_attempts_users'; const {fields, fieldAlreadyEnabled, getFieldValue, saveFields} = useFields(); const buildColumn = useCallback((column) => ({ name: column.name, sortable: column.sortable, searchable: column.searchable, width: column.width, visible: column.visible, column: column.column, selector: row => row[column.column], }), []); //getting the fields from the props let field = props.field; //we loop through the fields const columns = field.columns.map(buildColumn); const searchableColumns = columns .filter(column => column.searchable) .map(column => column.column); useEffect(() => { const currentFilter = getCurrentFilter(moduleName); if (!currentFilter) { setSelectedFilter('locked', moduleName); } setProcessingFilter(processing); handleUserTableFilter('status', currentFilter); }, [moduleName, handleUserTableFilter, getCurrentFilter(moduleName), setSelectedFilter, UserDatatable, processing]); useEffect(() => { setRowsSelected([]); }, [UserDataTable]); //if the dataActions are changed, we fetch the data useEffect(() => { //we make sure the dataActions are changed in the store before we fetch the data if (dataActions) { fetchData(field.action, dataActions) } }, [dataActions.sortDirection, dataActions.filterValue, dataActions.search, dataActions.page, dataActions.currentRowsPerPage, fieldAlreadyEnabled('enable_limited_login_attempts')]); let enabled = getFieldValue('enable_limited_login_attempts'); const customStyles = { headCells: { style: { paddingLeft: '0', // override the cell padding for head cells paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', // override the cell padding for data cells paddingRight: '0', }, }, }; createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light'); const handleOpen = () => { setAddingUser(true); }; const handleClose = () => { setAddingUser(false); }; //now we get the options for the select control let options = props.field.options; //we divide the key into label and the value into value options = Object.entries(options).map((item) => { return {label: item[1], value: item[0]}; }); const resetUsers = useCallback(async (data) => { if (Array.isArray(data)) { const ids = data.map((item) => item.id); await resetMultiRow(ids, dataActions).then((response) => { if (response && response.success) { showSavedSettingsNotice(response.message); } else { showSavedSettingsNotice(response.message, 'error'); } }); setRowsSelected([]); } else { await resetRow(data, dataActions).then((response) => { if (response && response.success) { showSavedSettingsNotice(response.message); } else { showSavedSettingsNotice(response.message); } }); } await fetchDynamicData('event_log'); }, [resetMultiRow, resetRow, fetchDynamicData, dataActions]); const handleSelection = useCallback((state) => { setRowsSelected(state.selectedRows); }, []); const ActionButton = ({onClick, children, className}) => ( <div className={`rsssl-action-buttons__inner`}> <button className={`button ${className} rsssl-action-buttons__button`} onClick={onClick} disabled={processing} > {children} </button> </div> ); const generateActionButtons = useCallback((id, status, region_name) => ( <div className="rsssl-action-buttons"> <ActionButton onClick={() => { resetUsers(id); }} className="button-red"> {__("Delete", "really-simple-ssl")} </ActionButton> </div> ), [getCurrentFilter(moduleName), moduleName, resetUsers]); //we convert the data to an array let data = {...UserDataTable.data}; for (const key in data) { let dataItem = {...data[key]} //we log the dataItem //we add the action buttons dataItem.action = generateActionButtons(dataItem.id); dataItem.status = __(dataItem.status = dataItem.status.charAt(0).toUpperCase() + dataItem.status.slice(1), 'really-simple-ssl'); data[key] = dataItem; } let paginationSet; paginationSet = typeof pagination !== 'undefined'; useEffect(() => { if (Object.keys(data).length === 0 ) { setTableHeight(100); // Adjust depending on your UI measurements } else { setTableHeight(rowHeight * (paginationSet ? pagination.perPage + 2 : 12)); // Adjust depending on your UI measurements } }, [paginationSet, pagination?.perPage, data]); return ( <> <AddUserModal isOpen={addingUser} onRequestClose={handleClose} options={options} value={user} status={getCurrentFilter(moduleName)} dataActions={dataActions} > </AddUserModal> <div className="rsssl-container"> {/*display the add button on left side*/} <AddButton getCurrentFilter={getCurrentFilter} moduleName={moduleName} handleOpen={handleOpen} processing={processing} blockedText={__("Block Username", "really-simple-ssl")} allowedText={__("Trust Username", "really-simple-ssl")} /> {/*Display the search bar*/} <SearchBar handleSearch={handleUserTableSearch} searchableColumns={searchableColumns}/> </div> { /*Display the action form what to do with the selected*/} {rowsSelected.length > 0 && ( <div style={{ marginTop: '1em', marginBottom: '1em', }}> <div className={"rsssl-multiselect-datatable-form rsssl-primary"} > <div> {__("You have selected %s rows", "really-simple-ssl").replace('%s', rowsSelected.length)} </div> <div className="rsssl-action-buttons"> {/* if the id is new we show the Delete button */} <ActionButton className="button button-red rsssl-action-buttons__button" onClick={() => {resetUsers(rowsSelected)}}> {__("Delete", "really-simple-ssl")} </ActionButton> </div> </div> </div> )} {/*Display the datatable*/} <DataTable columns={columns} data={processing && !dataLoaded? [] : Object.values(data)} dense pagination={!processing} paginationServer paginationTotalRows={paginationSet? pagination.totalRows: 10} onChangeRowsPerPage={handleUserTableRowsChange} onChangePage={handleUserTablePageChange} sortServer={!processing} onSort={handleUserTableSort} paginationRowsPerPageOptions={[10, 25, 50, 100]} selectableRows={!processing} onSelectedRowsChange={handleSelection} clearSelectedRows={rowCleared} noDataComponent={__("No results", "really-simple-ssl")} persistTableHead theme="really-simple-plugins" customStyles={customStyles} ></DataTable> {!enabled && ( <div className="rsssl-locked"> <div className="rsssl-locked-overlay"><span className="rsssl-task-status rsssl-open">{__('Disabled', 'really-simple-ssl')}</span><span>{__('Activate Limit login attempts to enable this block.', 'really-simple-ssl')}</span> </div> </div> )} </> ); } export default UserDatatable; src/Settings/LimitLoginAttempts/IpAddressDatatable.js 0000777 00000026462 15252021227 0016761 0 ustar 00 import {__} from '@wordpress/i18n'; import {useEffect, useState, useCallback} from '@wordpress/element'; import DataTable, {createTheme} from "react-data-table-component"; import IpAddressDataTableStore from "./IpAddressDataTableStore"; import EventLogDataTableStore from "../EventLog/EventLogDataTableStore"; import FilterData from "../FilterData"; import Flag from "../../utils/Flag/Flag"; import AddIpAddressModal from "./AddIpAddressModal"; import useFields from "../FieldsData"; import FieldsData from "../FieldsData"; import SearchBar from "../DynamicDataTable/SearchBar"; import AddButton from "../DynamicDataTable/AddButton"; const IpAddressDatatable = (props) => { const { IpDataTable, dataLoaded, dataActions, handleIpTableRowsChange, fetchData, handleIpTableSort, handleIpTablePageChange, handleIpTableSearch, handleIpTableFilter, ipAddress, updateRow, pagination, resetRow, resetMultiRow, setStatusSelected, rowCleared, processing } = IpAddressDataTableStore() const { fetchDynamicData, } = EventLogDataTableStore(); //here we set the selectedFilter from the Settings group const { setSelectedFilter, getCurrentFilter, setProcessingFilter, } = FilterData(); const [addingIpAddress, setAddingIpAddress] = useState(false); const [rowsSelected, setRowsSelected] = useState([]); const {fieldAlreadyEnabled, getFieldValue} = useFields(); const {showSavedSettingsNotice} = FieldsData(); const [tableHeight, setTableHeight] = useState(600); // Starting height const rowHeight = 50; // Height of each row. const moduleName = 'rsssl-group-filter-limit_login_attempts_ip_address'; const buildColumn = useCallback((column) => ({ name: column.name, sortable: column.sortable, searchable: column.searchable, width: column.width, visible: column.visible, column: column.column, selector: row => row[column.column], }), []); //getting the fields from the props let field = props.field; //we loop through the fields const columns = field.columns.map(buildColumn); useEffect(() => { const currentFilter = getCurrentFilter(moduleName); if (!currentFilter) { setSelectedFilter('locked', moduleName); } setProcessingFilter(processing); handleIpTableFilter('status', currentFilter); }, [moduleName, handleIpTableFilter, getCurrentFilter(moduleName), setSelectedFilter, IpDataTable, processing]); useEffect(() => { setRowsSelected([]); }, [IpDataTable]); //if the dataActions are changed, we fetch the data useEffect(() => { //we make sure the dataActions are changed in the store before we fetch the data if (dataActions) { fetchData(field.action, dataActions); } }, [dataActions.sortDirection, dataActions.filterValue, dataActions.search, dataActions.page, dataActions.currentRowsPerPage, fieldAlreadyEnabled('enable_limited_login_attempts')]); const customStyles = { headCells: { style: { paddingLeft: '0', // override the cell padding for head cells paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', // override the cell padding for data cells paddingRight: '0', }, }, }; createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light'); let enabled = getFieldValue('enable_limited_login_attempts'); const handleOpen = () => { setAddingIpAddress(true); }; const handleClose = () => { setAddingIpAddress(false); }; let searchableColumns = []; //setting the searchable columns columns.map(column => { if (column.searchable) { searchableColumns.push(column.column); } }); //now we get the options for the select control let options = props.field.options; //we divide the key into label and the value into value options = Object.entries(options).map((item) => { return {label: item[1], value: item[0]}; }); function handleStatusChange(value, id) { //if the id is not 'new' we update the row if (id !== 'new') { updateRow(id, value); } else { //if the id is 'new' we set the statusSelected setStatusSelected(value); } } //we convert the data to an array let data = Object.values({...IpDataTable.data}); const resetIpAddresses = useCallback(async (data) => { if (Array.isArray(data)) { const ids = data.map((item) => item.id); await resetMultiRow(ids, dataActions).then((response) => { if (response && response.success) { showSavedSettingsNotice(response.message); } else { showSavedSettingsNotice(response.message); } }); setRowsSelected([]); } else { await resetRow(data, dataActions).then((response) => { if (response && response.success) { showSavedSettingsNotice(response.message); } else { showSavedSettingsNotice(response.message); } }); } await fetchDynamicData('event_log') }, [resetMultiRow, resetRow, fetchDynamicData, dataActions]); const ActionButton = ({onClick, children, className}) => ( <div className={`rsssl-action-buttons__inner`}> <button className={`button ${className} rsssl-action-buttons__button`} onClick={onClick} disabled={processing} > {children} </button> </div> ); function generateActionbuttons(id) { return ( <> <div className="rsssl-action-buttons"> <ActionButton className="button-red" onClick={() => { resetIpAddresses(id); }}> {__("Delete", "really-simple-ssl")} </ActionButton> </div> </> ); } for (const key in data) { let dataItem = {...data[key]} dataItem.action = generateActionbuttons(dataItem.id); dataItem.status = __(dataItem.status = dataItem.status.charAt(0).toUpperCase() + dataItem.status.slice(1), 'really-simple-ssl'); data[key] = dataItem; } function handleSelection(state) { setRowsSelected(state.selectedRows); } let paginationSet; paginationSet = typeof pagination !== 'undefined'; useEffect(() => { if (Object.keys(data).length === 0 ) { setTableHeight(100); // Adjust depending on your UI measurements } else { setTableHeight(rowHeight * (paginationSet ? pagination.perPage + 2 : 12)); // Adjust depending on your UI measurements } }, [paginationSet, pagination?.perPage, data]); let debounceTimer; return ( <> <AddIpAddressModal isOpen={addingIpAddress} onRequestClose={handleClose} options={options} value={ipAddress} status={getCurrentFilter(moduleName)} dataActions={dataActions} > </AddIpAddressModal> <div className="rsssl-container"> {/*display the add button on left side*/} <AddButton getCurrentFilter={getCurrentFilter} moduleName={moduleName} handleOpen={handleOpen} processing={processing} blockedText={__("Block IP Address", "really-simple-ssl")} allowedText={__("Trust IP Address", "really-simple-ssl")} /> {/*Display the search bar*/} <SearchBar handleSearch={handleIpTableSearch} searchableColumns={searchableColumns} /> </div> { /*Display the action form what to do with the selected*/} {rowsSelected.length > 0 && ( <div style={{ marginTop: '1em', marginBottom: '1em', }}> <div className={"rsssl-multiselect-datatable-form rsssl-primary"} > <div> {__("You have selected %s rows", "really-simple-ssl").replace('%s', rowsSelected.length)} </div> <div className="rsssl-action-buttons"> <ActionButton className="button-red" onClick={() => { resetIpAddresses(rowsSelected); }} > {__("Delete", "really-simple-ssl")} </ActionButton> </div> </div> </div> )} {/*Display the datatable*/} <DataTable columns={columns} data={processing ? [] : data} dense paginationServer paginationTotalRows={paginationSet? pagination.totalRows: 10} paginationPerPage={paginationSet? pagination.perPage: 10} paginationDefaultPage={paginationSet?pagination.currentPage: 1} paginationComponentOptions={{ rowsPerPageText: __('Rows per page:', 'really-simple-ssl'), rangeSeparatorText: __('of', 'really-simple-ssl'), noRowsPerPage: false, selectAllRowsItem: false, selectAllRowsItemText: __('All', 'really-simple-ssl'), }} loading={dataLoaded} pagination={!processing} onChangeRowsPerPage={handleIpTableRowsChange} onChangePage={handleIpTablePageChange} sortServer={!processing} onSort={handleIpTableSort} paginationRowsPerPageOptions={[10, 25, 50, 100]} noDataComponent={__("No results", "really-simple-ssl")} persistTableHead selectableRows={!processing} onSelectedRowsChange={handleSelection} clearSelectedRows={rowCleared} theme="really-simple-plugins" customStyles={customStyles} ></DataTable> {!enabled && ( <div className="rsssl-locked"> <div className="rsssl-locked-overlay"><span className="rsssl-task-status rsssl-open">{__('Disabled', 'really-simple-ssl')}</span><span>{__('Activate Limit login attempts to enable this block.', 'really-simple-ssl')}</span> </div> </div> )} </> ); } export default IpAddressDatatable; src/Settings/LimitLoginAttempts/IpAddressDataTableStore.js 0000777 00000033432 15252021227 0017731 0 ustar 00 /* Creates A Store For Risk Data using Zustand */ import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; import {produce} from "immer"; const IpAddressDataTableStore = create((set, get) => ({ processing: false, dataLoaded: false, ipAddress: '', highestIP: '', lowestIP: '', statusSelected: 'blocked', inputRangeValidated: false, cidr: '', ip_count: '', canSetCidr: false, ipRange: {}, idSelected: '', pagination: {}, dataActions: {}, IpDataTable: [], maskError: false, rowCleared: false, setMaskError: (maskError) => { set({maskError}); }, /* * This function fetches the data from the server and fills the property IpDataTable * Note this function works with the DataTable class on serverside */ fetchData: async (action, dataActions) => { set({processing: true}); set({dataLoaded: false}); set({rowCleared: true}); //if the dataActions is empty we do nothing if (Object.keys(dataActions).length === 0) { return; } try { const response = await rsssl_api.doAction( action, dataActions ); //now we set the EventLog if (response) { //if the response is empty we set the dummyData set({IpDataTable: response, dataLoaded: true, processing: false, pagination: response.pagination}); } } catch (e) { console.log(e); } finally { set({processing: false}); set({rowCleared: false}); } }, /* * This function handles the search, it is called from the search from it's parent class */ handleIpTableSearch: async (search, searchColumns) => { //Add the search to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, search, searchColumns}; }) ); }, /* * This function handles the page change, it is called from the DataTable class */ handleIpTablePageChange: async (page, pageSize) => { //Add the page and pageSize to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, page, pageSize}; }) ); }, /* * This function handles the rows change, it is called from the DataTable class */ handleIpTableRowsChange: async (currentRowsPerPage, currentPage) => { //Add the page and pageSize to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, currentRowsPerPage, currentPage}; }) ); }, /* * This function handles the sort, it is called from the DataTable class */ handleIpTableSort: async (column, sortDirection) => { //Add the column and sortDirection to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, sortColumn: column, sortDirection}; }) ); }, /* * This function handles the filter, it is called from the GroupSetting class */ handleIpTableFilter: async (column, filterValue) => { //Add the column and sortDirection to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, filterColumn: column, filterValue}; }) ); }, /* * This function sets the ip address and is used by Cidr and IpAddressInput */ setIpAddress: (ipAddress) => { if(ipAddress.length === 0) { return; } let ipRegex = /^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,4}|((25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9]))|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9]))$/; if (ipAddress.includes('/')) { let finalIp = ''; // Split the input into IP and CIDR mask let [ip, mask] = ipAddress.split('/'); //if , we change it to . ip = ip.replace(/,/g, '.'); if (mask.length <= 0 ) { if (!ipRegex.test(ip)) { set({maskError: true}); } else { set({maskError: false}); } finalIp = `${ip}/${mask}`; } else { finalIp = mask ? `${ip}/${mask}` : ip; } set({ ipAddress: finalIp }) } else { if (!ipRegex.test(ipAddress)) { set({maskError: true}); } else { set({maskError: false}); } set({ ipAddress: ipAddress.replace(/,/g, '.') }) } }, resetRange: () => { set({inputRangeValidated: false}); set({highestIP: ''}); set({lowestIP: ''}); set({ipAddress: ''}); set({maskError: false}); }, /* * This function sets the status selected and is used by Cidr and IpAddressInput and from the options */ setStatusSelected: (statusSelected) => { set({statusSelected}); }, /* * This function sets the id selected and is used by Cidr and IpAddressInput and from the options */ setId: (idSelected) => { set({idSelected}); }, /* * This function updates the row only changing the status */ /* * This function updates the row only changing the status */ updateRow: async (value, status, dataActions) => { set({processing: true}); let data = { value: value, status: status }; try { const response = await rsssl_api.doAction( 'ip_update_row', data ); if (response && response.request_success) { await get().fetchData('rsssl_limit_login', dataActions); return { success: true, message: response.message, response }; } else { return { success: false, message: response?.message || 'Failed to add ip', response }; } } catch (e) { return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); } }, /** * This function validates the ip address string if it is a proper ip address * This checks ipv4 addresses * * @param ip * @returns {boolean} */ validateIpv4: (ip) => { const parts = ip.split("."); if (parts.length !== 4) return false; for (let part of parts) { const num = parseInt(part, 10); if (isNaN(num) || num < 0 || num > 255) return false; } return true; }, /** * This function validates the ip address string if it is a proper ip address * This checks ipv6 addresses * * @param ip * @returns {boolean} */ validateIpv6: (ip) => { const parts = ip.split(":"); if (parts.length !== 8) return false; for (let part of parts) { if (part.length > 4 || !/^[0-9a-fA-F]+$/.test(part)) return false; } return true; }, extendIpV6: (ip) => { // Handle the special case of '::' at the start or end if (ip === '::') ip = '0::0'; // Handle the '::' within the address if (ip.includes('::')) { const parts = ip.split('::'); if (parts.length > 2) return false; const left = parts[0].split(':').filter(Boolean); const right = parts[1].split(':').filter(Boolean); // Calculate how many zeros are needed const zerosNeeded = 8 - (left.length + right.length); // Concatenate all parts with the appropriate number of zeros return [...left, ...Array(zerosNeeded).fill('0'), ...right].join(':'); } return ip; }, /** * This function converts the ip address to a number * * @param ip * @returns {*} */ ipToNumber: (ip) => { if (get().validateIpv4(ip)) { return get().ipV4ToNumber(ip); } else if (get().validateIpv6(get().extendIpV6(ip))) { return get().ipV6ToNumber(get().extendIpV6(ip)); } }, /** * This function converts the ip address to a number if it is a ipv4 address * @param ip * @returns {*} */ ipV4ToNumber: (ip) => { return ip.split(".").reduce((acc, cur) => (acc * 256 + parseInt(cur, 10)) >>> 0, 0); }, /** * This function converts the ip address to a number if it is a ipv6 address * @param ip * @returns {*} */ ipV6ToNumber: (ip) => { return ip.split(":").reduce((acc, cur) => { const segmentValue = parseInt(cur, 16); if (isNaN(segmentValue)) { console.warn(`Invalid segment in IPv6 address: ${oldIp}`); return acc; } return (acc << BigInt(16)) + BigInt(segmentValue); }, BigInt(0)); }, /** * This function validates the ip range, if the lowest is lower than the highest * This checks ipv4 and ipv6 addresses * * @param lowest * @param highest */ validateIpRange: (lowest, highest) => { set({inputRangeValidated: false}); let from = ''; let to = ''; //first we determine if the IP is ipv4 or ipv6 if (lowest && highest) { if (get().validateIpv4(lowest) && get().validateIpv4(highest)) { //now we check if the lowest is lower than the highest if (get().ipToNumber(lowest) > get().ipToNumber(highest)) { console.warn('lowest is higher than highest'); set({inputRangeValidated: false}); return; } from = lowest; to = highest; set({inputRangeValidated: true}); } else if (get().validateIpv6(get().extendIpV6(lowest)) && get().validateIpv6(get().extendIpV6(highest))) { //now we check if the lowest is lower than the highest if (get().ipToNumber(get().extendIpV6(lowest)) > get().ipToNumber(get().extendIpV6(highest))) { console.warn('lowest is higher than highest'); set({inputRangeValidated: false}); return; } from = get().extendIpV6(lowest); to = get().extendIpV6(highest); set({inputRangeValidated: true}); } } if (get().inputRangeValidated) { let lowest = from; let highest = to; set({ipRange: {lowest, highest}}); get().fetchCidrData('get_mask_from_range'); } }, /** * This function fetches the cidr data from the server and sets the cidr and ip_count * This function is called from the Cidr class * * @param action * @returns {Promise<void>} */ fetchCidrData: async (action) => { try { const response = await rsssl_api.doAction( action, get().ipRange ); //now we set the EventLog if (response) { //we set the cidrFound and cidrCount set({cidr: response.cidr, ipAddress: response.cidr, ip_count: response.ip_count, canSetCidr: true}); //we reload the event log } } catch (e) { console.log(e); } }, resetRow: async (id, dataActions) => { set({processing: true}); try { const response = await rsssl_api.doAction( 'delete_entries', {id} ); //now we set the EventLog if (response && response.success) { await get().fetchData('rsssl_limit_login', dataActions); // Return the success message from the API response. return { success: true, message: response.message, response }; } else { // Return a custom error message or the API response message. return { success: false, message: response?.message || 'Failed to reset ip', response }; } } catch (e) { console.error(e); // Return the caught error with a custom message. return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); } }, resetMultiRow: async (ids, dataActions) => { set({processing: true}); try { const response = await rsssl_api.doAction( 'delete_entries', {ids} ); //now we set the EventLog if (response && response.success) { if (response.success) { await get().fetchData('rsssl_limit_login', dataActions); return {success: true, message: response.message, response}; } else return {success: false, message: response?.message || 'Failed to reset ip', response}; } } catch (e) { console.error(e); return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); } } })); export default IpAddressDataTableStore; src/Settings/LimitLoginAttempts/AddIpAddressModal.js 0000777 00000010504 15252021227 0016533 0 ustar 00 import {useEffect, useState} from '@wordpress/element'; import { Modal, Button, } from "@wordpress/components"; import IpAddressDataTableStore from "./IpAddressDataTableStore"; import {__} from "@wordpress/i18n"; import IpAddressInput from "./IpAddressInput"; import EventLogDataTableStore from "../EventLog/EventLogDataTableStore"; import FieldsData from "../FieldsData"; const AddIpAddressModal = (props) => { const { inputRangeValidated, fetchCidrData, ipAddress, setIpAddress, maskError, dataLoaded, updateRow, resetRange} = IpAddressDataTableStore(); const [rangeDisplay, setRangeDisplay] = useState(false); const {fetchDynamicData} = EventLogDataTableStore(); const {showSavedSettingsNotice} = FieldsData(); useEffect(() => { //we validate the range if (inputRangeValidated) { //we get the mask fetchCidrData('get_mask_from_range') } }, [inputRangeValidated]); async function handleSubmit() { let status = props.status; // we check if statusSelected is not empty if (ipAddress && maskError === false) { await updateRow(ipAddress, status, props.dataActions).then((response) => { if (response.success) { showSavedSettingsNotice(response.message); } else { showSavedSettingsNotice(response.message, 'error'); } }); //we clear the input resetRange(); //we close the modal props.onRequestClose(); //we fetch the data again fetchDynamicData('event_log') } } function handleCancel() { // Reset all local state setRangeDisplay(false); resetRange(); // Close the modal props.onRequestClose(); } if (!props.isOpen) { return null; } return ( <Modal title={__("Add IP Address", "really-simple-ssl")} shouldCloseOnClickOutside={true} shouldCloseOnEsc={true} overlayClassName="rsssl-modal-overlay" className="rsssl-modal" onRequestClose={props.onRequestClose} > <div className="modal-content"> <div className="modal-body" style={{ padding: "1em", }} > <div style={{ width: "95%", height: "100%", padding: "10px", }} > <div> <IpAddressInput label={__("IP Address", "really-simple-ssl")} id="ip-address" name="ip-address" showSwitch={true} value={ipAddress} onChange={(e) => setIpAddress(e.target.value)} /> </div> </div> </div> <div className="modal-footer"> {/*//we add two buttons here for add row and cancel*/} <div className={'rsssl-grid-item-footer'} style ={{ display: 'flex', justifyContent: 'flex-end', alignItems: 'center', padding: '1em', } } > <Button isSecondary onClick={handleCancel} style={{ marginRight: '10px' }} > {__("Cancel", "really-simple-ssl")} </Button> <Button isPrimary onClick={handleSubmit} > {__("Add", "really-simple-ssl")} </Button> </div> </div> </div> </Modal> ) } export default AddIpAddressModal; src/Settings/LimitLoginAttempts/UserDataTableStore.js 0000777 00000013324 15252021227 0016767 0 ustar 00 /* Creates A Store For Risk Data using Zustand */ import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; import {__} from "@wordpress/i18n"; import {produce} from "immer"; import React from "react"; const UserDataTableStore = create((set, get) => ({ processing: false, dataLoaded: false, pagination: {}, dataActions: {}, UserDataTable: [], rowCleared: false, fetchData: async (action, dataActions) => { //we check if the processing is already true, if so we return set({processing: true}); set({dataLoaded: false}); set({rowCleared: true}); if (Object.keys(dataActions).length === 0) { let dataActions = get().dataActions; } if ( !get().processing ) { return; } if (Object.keys(dataActions).length === 0) { return; } //we empty all existing data set({UserDataTable: []}); try { const response = await rsssl_api.doAction( action, dataActions ); //now we set the EventLog //now we set the EventLog if (response && response.request_success) { set({UserDataTable: response, dataLoaded: true, processing: false, pagination: response.pagination}); } set({ rowCleared: true }); } catch (e) { console.log(e); } finally { set({processing: false}); set({rowCleared: false}); } }, handleUserTableSearch: async (search, searchColumns) => { //Add the search to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, search, searchColumns}; }) ); }, handleUserTablePageChange: async (page, pageSize) => { //Add the page and pageSize to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, page, pageSize}; }) ); }, handleUserTableRowsChange: async (currentRowsPerPage, currentPage) => { //Add the page and pageSize to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, currentRowsPerPage, currentPage}; }) ); }, //this handles all pagination and sorting handleUserTableSort: async (column, sortDirection) => { //Add the column and sortDirection to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, sortColumn: column, sortDirection}; }) ); }, handleUserTableFilter: async (column, filterValue) => { //Add the column and sortDirection to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, filterColumn: column, filterValue}; }) ); }, /* * This function updates the row only changing the status */ updateRow: async (value, status, dataActions) => { set({processing: true}); let data = { value: value, status: status }; try { const response = await rsssl_api.doAction( 'user_update_row', data ); if (response && response.request_success) { await get().fetchData('rsssl_limit_login_user', dataActions); return { success: true, message: response.message, response }; } else { return { success: false, message: response?.message || 'Failed to add user', response }; } } catch (e) { return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); } }, resetRow: async (id, dataActions) => { set({processing: true}); try { const response = await rsssl_api.doAction( 'delete_entries', {id} ); //now we set the EventLog if (response && response.success) { await get().fetchData('rsssl_limit_login_user', dataActions); // Return the success message from the API response. return { success: true, message: response.message, response }; } else { // Return a custom error message or the API response message. return { success: false, message: response?.message || 'Failed to reset user', response }; } } catch (e) { console.error(e); // Return the caught error with a custom message. return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); } }, resetMultiRow: async (ids, dataActions) => { set({processing: true}); try { const response = await rsssl_api.doAction( 'delete_entries', {ids} ); console.error(response); //now we set the EventLog if (response && response.success) { if (response.success) { await get().fetchUserData('rsssl_limit_login_user', dataActions); return {success: true, message: response.message, response}; } else return {success: false, message: response?.message || 'Failed to reset user', response}; } } catch (e) { console.error(e); return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); } } })); export default UserDataTableStore; src/Settings/LimitLoginAttempts/LimitLoginAttemptsData.js 0000777 00000001262 15252021227 0017653 0 ustar 00 /* Creates A Store For Risk Data using Zustand */ import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; import {__} from "@wordpress/i18n"; import {produce} from "immer"; import React from "react"; const LimitLoginAttemptsData = create((set, get) => ({ processing:false, dataLoaded: false, EventLog: [], fetchEventLog: async (selectedFilter) => { set({processing:true}); try { let response = await rsssl_api.doAction(selectedFilter); set({EventLog: response, dataLoaded: true, processing:false}); } catch (e) { console.log(e); } } })); export default LimitLoginAttemptsData; src/Settings/LimitLoginAttempts/Cidr.js 0000777 00000004273 15252021227 0014156 0 ustar 00 import { useState } from "@wordpress/element"; import IpAddressDataTableStore from "./IpAddressDataTableStore"; import IpAddressInput from "./IpAddressInput"; const Cidr = () => { const [lowestIP, setLowestIP] = useState(""); const [highestIP, setHighestIP] = useState(""); const { validateIpRange } = IpAddressDataTableStore(); const cleanupIpAddress = (ipAddress) => { return ipAddress.replace(/,/g, '.'); } const handleLowestIPChange = (ip) => { setLowestIP(cleanupIpAddress(ip)); } const handleHighestIPChange = (ip) => { setHighestIP(cleanupIpAddress(ip)); } return ( <> <div className="rsssl-ip-address-input"> <div className="rsssl-ip-address-input__inner"> <div className="rsssl-ip-address-input__icon"></div> <IpAddressInput id="lowestIP" type="text" className="rsssl-ip-address-input__input" value={lowestIP} onChange={ (e) => handleLowestIPChange(e.target.value)} /> </div> <div className="rsssl-ip-address-input__inner"> <div className="rsssl-ip-address-input__icon"></div> <IpAddressInput id="highestIP" type="text" className="rsssl-ip-address-input__input" value={highestIP} onChange={(e) => handleHighestIPChange(e.target.value)} /> </div> <div className={'rsssl-container'}> <div className={'rsssl-container__inner'}> <button className={'button button--primary'} onClick={() => { validateIpRange(lowestIP, highestIP); }} > Validate </button> </div> </div> </div> </> ); } export default Cidr; src/Settings/LimitLoginAttempts/IpAddressInput.js 0000777 00000002443 15252021227 0016170 0 ustar 00 import {useState} from '@wordpress/element'; import {__} from "@wordpress/i18n"; import Icon from "../../utils/Icon"; import IpAddressDataTableStore from "./IpAddressDataTableStore"; /** * Visual aid for adding an IP address to the list of blocked IP addresses * * @param props * @returns {*} * @constructor */ const IpAddressInput = (props) => { const [value, setValue] = useState(""); const [error, setError] = useState(false); const {maskError, setMaskError} = IpAddressDataTableStore(); return ( <> {props.label && <label htmlFor={props.id} className="rsssl-label" >{props.label}</label> } <br></br> <div className="input-container"> <input type="text" id={props.id} name={props.name} value={props.value} className={`rsssl-input full ${maskError ? 'rsssl-error' : 'rsssl-success'}`} onChange={props.onChange} /> </div> {maskError && <span style={{color: 'red', marginLeft: '10px'}}>{__('Invalid ip address', 'really-simple-ssl')}</span>} </> ) } export default IpAddressInput; src/Settings/LimitLoginAttempts/CountryDataTableStore.js 0000777 00000017174 15252021227 0017523 0 ustar 00 /* Creates A Store For Risk Data using Zustand */ import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; import {produce} from "immer"; const CountryDataTableStore = create((set, get) => ({ processing: false, dataLoaded: false, pagination: {}, dataActions: { page: 1, pageSize: 10, sortColumn: 'country_name', sortDirection: 'asc', filterColumn: '', filterValue: '', search: '', searchColumns: ['country_name'] }, CountryDataTable: [], rowCleared: false, setDataActions: async (data) => { set(produce((state) => { state.dataActions = data; }) ); }, fetchData: async (action, dataActions) => { //we check if the processing is already true, if so we return set({processing: true}); set({dataLoaded: false}); set({rowCleared: true}); if (Object.keys(dataActions).length === 0) { return; } try { const response = await rsssl_api.doAction( action, dataActions ); //now we set the EventLog if (response && response.request_success) { set({CountryDataTable: response, dataLoaded: true, processing: false, pagination: response.pagination}); } set({ rowCleared: true }); } catch (e) { console.log(e); } finally { set({processing: false}); set({rowCleared: false}); } }, handleCountryTableSearch: async (search, searchColumns) => { //Add the search to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, search, searchColumns}; }) ); }, handleCountryTablePageChange: async (page, pageSize) => { //Add the page and pageSize to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, page, pageSize}; }) ); }, handleCountryTableRowsChange: async (currentRowsPerPage, currentPage) => { //Add the page and pageSize to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, currentRowsPerPage, currentPage}; }) ); }, //this handles all pagination and sorting handleCountryTableSort: async (column, sortDirection) => { //Add the column and sortDirection to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, sortColumn: column, sortDirection}; }) ); }, handleCountryTableFilter: async (column, filterValue) => { //Add the column and sortDirection to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, filterColumn: column, filterValue}; }) ); }, /* * This function add a new row to the table */ updateRow: async (value, status, dataActions) => { set({processing: true}); let data = { value: value, status: status }; try { const response = await rsssl_api.doAction( 'country_update_row', data ); // Consider checking the response structure for any specific success or failure signals if (response && response.request_success) { await get().fetchData('rsssl_limit_login_country', dataActions); // Potentially notify the user of success, if needed. return { success: true, message: response.message, response }; } else { // Handle any unsuccessful response if needed. return { success: false, message: response?.message || 'Failed to add country', response }; } } catch (e) { console.log(e); return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); } }, updateRowRegion: async (value, status, dataActions) => { set({processing: true}); let data = { value: value, status: status }; try { const response = await rsssl_api.doAction( 'region_update_row', data ); // Consider checking the response structure for any specific success or failure signals if (response && response.request_success) { await get().fetchData('rsssl_limit_login_country', dataActions); // Potentially notify the user of success, if needed. return { success: true, message: response.message, response }; } else { // Handle any unsuccessful response if needed. return { success: false, message: response?.message || 'Failed to add region', response }; } } catch (e) { console.log(e); return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); } }, resetRegions: async (region, dataActions) => { set({processing: true}); try { const response = await rsssl_api.doAction( 'delete_entries_regions', {value: region} ); //now we set the EventLog if (response && response.success) { await get().fetchData('rsssl_limit_login_country', dataActions); return { success: true, message: response.message, response }; } else { return { success: false, message: response?.message || 'Failed to reset region', response }; } } catch (e) { console.error(e); return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); } }, resetRow: async (id, dataActions) => { set({processing: true}); try { const response = await rsssl_api.doAction( 'delete_entries', {id} ); //now we set the EventLog if (response && response.success) { await get().fetchData('rsssl_limit_login_country', dataActions); return { success: true, message: response.message, response }; } else { return { success: false, message: response?.message || 'Failed to reset country', response }; } } catch (e) { console.error(e); return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); } }, resetMultiRow: async (ids, dataActions) => { set({processing: true}); try { const response = await rsssl_api.doAction( 'delete_entries', {ids} ); //now we set the EventLog if (response && response.success) { await get().fetchData('rsssl_limit_login_country', dataActions); return { success: true, message: response.message, response }; } else { return { success: false, message: response?.message || 'Failed to reset country', response }; } } catch (e) { console.error(e); return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); } } })); export default CountryDataTableStore; src/Settings/LimitLoginAttempts/AddUserModal.js 0000777 00000007323 15252021227 0015600 0 ustar 00 import { useState} from '@wordpress/element'; import {Modal, Button} from "@wordpress/components"; import UserDataTableStore from "./UserDataTableStore"; import EventLogDataTableStore from "../EventLog/EventLogDataTableStore"; import {__} from "@wordpress/i18n"; import FieldsData from "../FieldsData"; const AddUserModal = (props) => { if (!props.isOpen) return null; const {updateRow} = UserDataTableStore(); const {fetchDynamicData} = EventLogDataTableStore(); const [user, setUser] = useState(''); const {showSavedSettingsNotice} = FieldsData(); async function handleSubmit() { let status = props.status; // we check if statusSelected is not empty if (user !== '') { await updateRow(user, status, props.dataActions).then((response) => { if(response.success) { showSavedSettingsNotice(response.message); } else { showSavedSettingsNotice(response.message, 'error'); } }); //we clear the input setUser(''); await fetchDynamicData('event_log'); } props.onRequestClose(); } return ( <Modal title={__("Add User", "really-simple-ssl")} shouldCloseOnClickOutside={true} shouldCloseOnEsc={true} overlayClassName="rsssl-modal-overlay" className="rsssl-modal" onRequestClose={props.onRequestClose} > <div className="modal-content"> <div className="modal-body" style={{ padding: "1em", }} > <div style={{ width: "95%", height: "100%", padding: "10px", }} > <p> <label htmlFor="username" className="rsssl-label" >{__("Username", "really-simple-ssl")}</label> <input type="text" className="rsssl-input full" id="username" name="username" onChange={(e) => setUser(e.target.value)} /> </p> </div> </div> <div className="modal-footer"> {/*//we add two buttons here for add row and cancel*/} <div className={'rsssl-grid-item-footer'} style ={{ display: 'flex', justifyContent: 'flex-end', alignItems: 'center', padding: '1em', } } > <Button isSecondary onClick={props.onRequestClose} style={{marginRight: '10px'}} > {__("Cancel", "really-simple-ssl")} </Button> <Button isPrimary onClick={handleSubmit} > {__("Add", "really-simple-ssl")} </Button> </div> </div> </div> </Modal> ) } export default AddUserModal; src/Settings/LimitLoginAttempts/CountryDatatable.js 0000777 00000042452 15252021227 0016543 0 ustar 00 import {useEffect, useState, useCallback} from '@wordpress/element'; import DataTable, {createTheme} from "react-data-table-component"; import CountryDataTableStore from "./CountryDataTableStore"; import EventLogDataTableStore from "../EventLog/EventLogDataTableStore"; import FilterData from "../FilterData"; import Flag from "../../utils/Flag/Flag"; import {__} from '@wordpress/i18n'; import useFields from "../FieldsData"; import SearchBar from "../DynamicDataTable/SearchBar"; import useMenu from "../../Menu/MenuData"; const CountryDatatable = (props) => { const {fieldAlreadyEnabled, getFieldValue, getField, showSavedSettingsNotice, saveFields, setHighLightField} = useFields(); const { CountryDataTable, dataLoaded, fetchData, processing, handleCountryTableFilter, updateRow, pagination, handleCountryTablePageChange, handleCountryTableRowsChange, handleCountryTableSort, handleCountryTableSearch, addRegion, resetRegions, addRowMultiple, resetRow, resetMultiRow, updateRowRegion, dataActions, rowCleared, setDataActions, } = CountryDataTableStore(); const {setSelectedSubMenuItem} = useMenu(); const { fetchDynamicData, } = EventLogDataTableStore(); const { setSelectedFilter, getCurrentFilter, setProcessingFilter, } = FilterData(); const [rowsSelected, setRowsSelected] = useState([]); const moduleName = 'rsssl-group-filter-limit_login_attempts_country'; const [tableHeight, setTableHeight] = useState(600); // Starting height const rowHeight = 50; // Height of each row. useEffect(() => { const element = document.getElementById('set_to_captcha_configuration'); const clickListener = async event => { event.preventDefault(); if (element) { await redirectToAddCaptcha(element); } }; if (element) { element.addEventListener('click', clickListener); } return () => { if (element) { element.removeEventListener('click', clickListener); } }; }, []); const redirectToAddCaptcha = async (element) => { // We fetch the props from the menu item let menuItem = getField('enabled_captcha_provider'); // Create a new object based on the menuItem, including the new property let highlightingMenuItem = { ...menuItem, highlight_field_id: 'enabled_captcha_provider', }; setHighLightField(highlightingMenuItem.highlight_field_id); let highlightField = getField(highlightingMenuItem.highlight_field_id); await setSelectedSubMenuItem(highlightField.menu_id); } const buildColumn = useCallback((column) => ({ //if the filter is set to region and the columns = status we do not want to show the column omit: getCurrentFilter(moduleName) === 'regions' && column.column === 'status', name: column.name, sortable: column.sortable, searchable: column.searchable, width: column.width, visible: column.visible, column: column.column, selector: row => row[column.column], }), []); let field = props.field; const columns = field.columns.map(buildColumn); const searchableColumns = columns .filter(column => column.searchable) .map(column => column.column); useEffect(() => { const currentFilter = getCurrentFilter(moduleName); if (!currentFilter) { setSelectedFilter('blocked', moduleName); } setProcessingFilter(processing); handleCountryTableFilter('status', currentFilter); }, [moduleName, handleCountryTableFilter, getCurrentFilter(moduleName), setSelectedFilter, CountryDatatable, processing]); useEffect(() => { if (dataActions.filterColumn === 'status') { const {search, searchColumns, ...rest} = dataActions; setDataActions(rest); } }, [dataActions.filterColumn]) useEffect(() => { setRowsSelected([]); }, [CountryDataTable]); //if the dataActions are changed, we fetch the data useEffect(() => { //we make sure the dataActions are changed in the store before we fetch the data if (dataActions) { fetchData(field.action, dataActions) } }, [dataActions.sortDirection, dataActions.filterValue, dataActions.search, dataActions.page, dataActions.currentRowsPerPage, fieldAlreadyEnabled('enable_limited_login_attempts')]); let enabled = getFieldValue('enable_limited_login_attempts'); useEffect(() => { return () => { saveFields(false, false) }; }, [enabled]); const customStyles = { headCells: { style: { paddingLeft: '0', paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', paddingRight: '0', }, }, }; createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light'); const handleSelection = useCallback((state) => { setRowsSelected(state.selectedRows); }, []); const allowRegionByCode = useCallback(async (code, regionName = '') => { if (Array.isArray(code)) { const ids = code.map(item => item.id); const regions = code.map(item => item.iso2_code); let no_error = true; regions.forEach((code) => { resetRegions(code, dataActions).then( (response) => { if (!response.success) { showSavedSettingsNotice(response.message, 'error'); no_error = false; } }); }); if(no_error) { showSavedSettingsNotice(__('Selected regions are now allowed', 'really-simple-ssl')); } setRowsSelected([]); } else { await resetRegions(code, dataActions); showSavedSettingsNotice(__('%s is now allowed', 'really-simple-ssl') .replace('%s', regionName)); } await fetchDynamicData('event_log'); }, [resetRegions, getCurrentFilter(moduleName), dataActions]); const allowMultiple = useCallback((rows) => { const ids = rows.map(item => item.id); resetMultiRow(ids, dataActions).then((response) => { if (response && response.success) { showSavedSettingsNotice(response.message); } else { showSavedSettingsNotice(response.message, 'error'); } }); }, [resetMultiRow, getCurrentFilter(moduleName), dataActions]); const allowById = useCallback((id) => { resetRow(id, dataActions).then( (response) => { if (response.success) { showSavedSettingsNotice(response.message); } } ); }, [resetRow, getCurrentFilter(moduleName), dataActions]); const blockRegionByCode = useCallback(async (code, region = '') => { if (Array.isArray(code)) { const ids = code.map(item => item.id); const regions = code.map(item => item.iso2_code); await updateRowRegion(regions, 'blocked', dataActions).then( (response) => { if (response.success) { showSavedSettingsNotice(response.message); } else { showSavedSettingsNotice(response.message, 'error'); } } ); } else { updateRowRegion(code, 'blocked', dataActions).then( (response) => { if (response.success) { showSavedSettingsNotice(response.message); } else { showSavedSettingsNotice(response.message, 'error'); } }); } await fetchDynamicData('event_log'); }, [addRegion, getCurrentFilter(moduleName), dataActions]); const blockCountryByCode = useCallback(async (code) => { if (Array.isArray(code)) { const ids = code.map(item => item.iso2_code); await updateRow(ids, 'blocked', dataActions).then( (response) => { if (response.success) { showSavedSettingsNotice(response.message); } else { showSavedSettingsNotice(response.message, 'error'); } } ); setRowsSelected([]); } else { await updateRow(code, 'blocked', dataActions).then( (response) => { if (response.success) { showSavedSettingsNotice(response.message); } else { showSavedSettingsNotice(response.message, 'error'); } } ); } await fetchDynamicData('event_log'); }, [updateRow, addRowMultiple, dataActions, getCurrentFilter(moduleName)]); const data = {...CountryDataTable.data}; const generateFlag = useCallback((flag, title) => ( <> <Flag countryCode={flag} style={{ fontSize: '2em', }} title={title} continent={(getCurrentFilter(moduleName) === 'regions')} /> </> ), []); const ActionButton = ({onClick, children, className}) => ( // <div className={`rsssl-action-buttons__inner`}> <button className={`button ${className} rsssl-action-buttons__button`} onClick={onClick} disabled={processing} > {children} </button> // </div> ); const generateActionButtons = useCallback((id, status, region_name, db_id ) => ( <div className="rsssl-action-buttons"> {getCurrentFilter(moduleName) === 'blocked' && ( <ActionButton onClick={() => allowById(id)} className="button-secondary"> {__("Allow", "really-simple-ssl")} </ActionButton> )} {getCurrentFilter(moduleName) === 'regions' && ( <> <ActionButton onClick={() => blockRegionByCode(id, region_name)} className="button-primary"> {__("Block", "really-simple-ssl")} </ActionButton> <ActionButton onClick={() => allowRegionByCode(id, region_name)} className="button-secondary"> {__("Allow", "really-simple-ssl")} </ActionButton> </> )} {getCurrentFilter(moduleName) === 'countries' && ( <> {status === 'blocked' ? ( <ActionButton onClick={() => allowById(db_id)} className="button-secondary"> {__("Allow", "really-simple-ssl")} </ActionButton> ) : ( <ActionButton onClick={() => blockCountryByCode(id)} className="button-primary"> {__("Block", "really-simple-ssl")} </ActionButton> )} </> )} </div> ), [getCurrentFilter, moduleName, allowById, blockRegionByCode, allowRegionByCode, blockCountryByCode]); for (const key in data) { const dataItem = {...data[key]}; if (getCurrentFilter(moduleName) === 'regions' || getCurrentFilter(moduleName) === 'countries') { dataItem.action = generateActionButtons(dataItem.attempt_value, dataItem.status, dataItem.region, dataItem.db_id); } else { dataItem.action = generateActionButtons(dataItem.id); } dataItem.attempt_value = generateFlag(dataItem.attempt_value, dataItem.country_name); dataItem.status = __(dataItem.status = dataItem.status.charAt(0).toUpperCase() + dataItem.status.slice(1), 'really-simple-ssl'); data[key] = dataItem; } const options = Object.entries(props.field.options).map(([value, label]) => ({value, label})); let paginationSet; paginationSet = typeof pagination !== 'undefined'; useEffect(() => { if (Object.keys(data).length === 0 ) { setTableHeight(100); // Adjust depending on your UI measurements } else { setTableHeight(rowHeight * (paginationSet ? pagination.perPage + 2 : 12)); // Adjust depending on your UI measurements } }, [paginationSet, pagination?.perPage, data]); return ( <> <div className="rsssl-container"> <div> {/* reserved for left side buttons */} </div> <SearchBar handleSearch={handleCountryTableSearch} searchableColumns={searchableColumns}/> </div> {rowsSelected.length > 0 && ( <div style={{ marginTop: '1em', marginBottom: '1em', }} > <div className={"rsssl-multiselect-datatable-form rsssl-primary"}> <div> {__("You have selected %s rows", "really-simple-ssl").replace('%s', rowsSelected.length)} </div> <div className="rsssl-action-buttons"> {getCurrentFilter(moduleName) === 'countries' && ( <> <ActionButton onClick={() => blockCountryByCode(rowsSelected)} className="button-primary"> {__("Block", "really-simple-ssl")} </ActionButton> </> )} {getCurrentFilter(moduleName) === 'blocked' && ( <ActionButton onClick={() => allowMultiple(rowsSelected)}> {__("Allow", "really-simple-ssl")} </ActionButton> )} {getCurrentFilter(moduleName) === 'regions' && ( <> <ActionButton onClick={() => blockRegionByCode(rowsSelected)} className="button-primary"> {__("Block", "really-simple-ssl")} </ActionButton> <ActionButton onClick={() => allowRegionByCode(rowsSelected)} className="button-secondary"> {__("Allow", "really-simple-ssl")} </ActionButton> </> )} </div> </div> </div> )} <DataTable columns={columns} data={Object.values(data)} dense pagination={!processing} paginationServer paginationTotalRows={paginationSet ? pagination.totalRows : 10} paginationPerPage={paginationSet ? pagination.perPage : 10} paginationDefaultPage={paginationSet ? pagination.currentPage : 1} paginationComponentOptions={{ rowsPerPageText: __('Rows per page:', 'really-simple-ssl'), rangeSeparatorText: __('of', 'really-simple-ssl'), noRowsPerPage: false, selectAllRowsItem: false, selectAllRowsItemText: __('All', 'really-simple-ssl'), }} onChangeRowsPerPage={handleCountryTableRowsChange} onChangePage={handleCountryTablePageChange} sortServer={!processing} onSort={handleCountryTableSort} paginationRowsPerPageOptions={[10, 25, 50, 100]} noDataComponent={__("No results", "really-simple-ssl")} persistTableHead selectableRows={!processing} clearSelectedRows={rowCleared} onSelectedRowsChange={handleSelection} theme="really-simple-plugins" customStyles={customStyles} /> {!enabled && ( <div className="rsssl-locked"> <div className="rsssl-locked-overlay"><span className="rsssl-task-status rsssl-open">{__('Disabled', 'really-simple-ssl')}</span><span>{__('Activate Limit login attempts to enable this block.', 'really-simple-ssl')}</span> </div> </div> )} </> ); } export default CountryDatatable; src/Settings/LearningMode/LearningMode.js 0000777 00000043727 15252021227 0014423 0 ustar 00 import { __ } from '@wordpress/i18n'; import {useState,useEffect} from '@wordpress/element'; import ChangeStatus from "./ChangeStatus"; import Delete from "./Delete"; import Icon from "../../utils/Icon"; import useFields from "./../FieldsData"; import UseLearningMode from "./LearningModeData"; import {Button} from "@wordpress/components"; import React from "react"; import ManualCspAdditionModal from "./ManualCspAdditionModal"; import AddButton from "../GeoBlockList/AddButton"; import ManualCspAddition from "./ManualCspAddition"; const LearningMode = (props) => { const {updateField, getFieldValue, getField, setChangedField, highLightField, saveFields} = useFields(); const {fetchLearningModeData, learningModeData, dataLoaded, updateStatus, deleteData} = UseLearningMode(); const {manualAdditionProcessing} = ManualCspAddition(); //used to show if a feature is already enforced by a third party const [enforcedByThirdparty, setEnforcedByThirdparty] = useState(0); //toggle from enforced to not enforced const [enforce, setEnforce] = useState(0); //toggle from learning mode to not learning mode const [learningMode, setLearningMode] = useState(0); //set learning mode to completed const [learningModeCompleted, setLearningModeCompleted] = useState(0); const [hasError, setHasError] = useState(false); //check if learningmode has been enabled at least once const [lmEnabledOnce, setLmEnabledOnce] = useState(0); //filter the data const [filterValue, setFilterValue] = useState(-1); //the value that is used to enable or disable this feature. On or of. const [controlField, setControlField] = useState(false); // the value that is used to select and deselect rows const [rowsSelected, setRowsSelected] = useState([]); const [rowCleared, setRowCleared] = useState(false); const [DataTable, setDataTable] = useState(null); const [theme, setTheme] = useState(null); const [modalOpen, setModalOpen] = useState(false); useEffect( () => { import('react-data-table-component').then(({ default: DataTable, createTheme }) => { setDataTable(() => DataTable); setTheme(() => createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light')); }); }, []); /** * Styling */ const conditionalRowStyles = [ { when: row => row.status ==0, classNames: ['rsssl-datatables-revoked'], }, ]; const customStyles = { headCells: { style: { paddingLeft: '0', // override the cell padding for head cells paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', // override the cell padding for data cells paddingRight: '0', }, }, }; ; /** * Initialize */ useEffect(() => { const run = async () => { await fetchLearningModeData(props.field.id); let controlField = getField(props.field.control_field ); let enforced_by_thirdparty = controlField.value === 'enforced-by-thirdparty'; let enforce = enforced_by_thirdparty || controlField.value === 'enforce'; setControlField(controlField); setEnforcedByThirdparty(enforced_by_thirdparty); setLearningModeCompleted(controlField.value==='completed'); setHasError(controlField.value==='error'); setLmEnabledOnce(getFieldValue(props.field.control_field+'_lm_enabled_once')) setEnforce(enforce); setLearningMode(controlField.value === 'learning_mode'); } run(); }, [enforce, learningMode] ); const toggleEnforce = async (e, enforceValue) => { e.preventDefault(); //enforce this setting let controlFieldValue = enforceValue==1 ? 'enforce' : 'disabled'; setEnforce(enforceValue); setLearningModeCompleted(0); setLearningMode(0); setChangedField(controlField.id, controlFieldValue); updateField(controlField.id, controlFieldValue); await saveFields(true, false); //await fetchLearningModeData(); } const toggleLearningMode = async (e) => { e.preventDefault(); let lmEnabledOnceField = getField(props.field.control_field+'_lm_enabled_once'); if ( learningMode ) { setLmEnabledOnce(1); updateField(lmEnabledOnceField.id, 1); } let controlFieldValue; if ( learningMode || learningModeCompleted ) { setLearningMode(0); controlFieldValue = 'disabled'; } else { setLearningMode(1); controlFieldValue = 'learning_mode'; } setLearningModeCompleted(0); setChangedField(controlField.id, controlFieldValue); updateField(controlField.id, controlFieldValue); setChangedField(lmEnabledOnceField.id, lmEnabledOnceField.value); updateField(lmEnabledOnceField, lmEnabledOnceField.value); await saveFields(true, false); } const Filter = () => ( <> <select onChange={ ( e ) => setFilterValue(e.target.value) } value={filterValue}> <option value="-1" >{__("All", "really-simple-ssl")}</option> <option value="1" >{__("Allowed", "really-simple-ssl")}</option> <option value="0" >{__("Blocked", "really-simple-ssl")}</option> </select> </> ); let field = props.field; let configuringString = __(" The %s is now in report-only mode and will collect directives. This might take a while. Afterwards you can Exit, Edit and Enforce these Directives.", "really-simple-ssl").replace('%s', field.label); let disabledString = __("%s has been disabled.", "really-simple-ssl").replace('%s', field.label); let enforcedString = __("%s is enforced.", "really-simple-ssl").replace('%s', field.label); let enforceDisabled = !lmEnabledOnce; if (enforcedByThirdparty) disabledString = __("%s is already set outside Really Simple Security.", "really-simple-ssl").replace('%s', field.label); let highLightClass = 'rsssl-field-wrap'; if ( highLightField===props.field.id ) { highLightClass = 'rsssl-field-wrap rsssl-highlight'; } //build our header let columns = []; field.columns.forEach(function(item, i) { let newItem = { name: item.name, sortable: item.sortable, width: item.width, selector: item.column === 'documenturi' || item.column === 'method' ? row => <span title={row[item.column]}>{row[item.column]}</span>: row => row[item.column], } columns.push(newItem); }); let data = learningModeData; data = data.filter(item => item.status<2); if (filterValue!=-1) { data = data.filter(item => item.status==filterValue); } for (const item of data){ if (item.login_status) item.login_statusControl = item.login_status == 1 ? __("success", "really-simple-ssl") : __("failed", "really-simple-ssl"); item.statusControl = <ChangeStatus item={item} field={props.field} />; item.deleteControl = <Delete item={item} field={props.field}/>; item.grouped = <div className="rsssl-action-buttons"> <ChangeStatus item={item} field={props.field} /> <Delete item={item} field={props.field}/> </div> } const handleMultiRowStatus = (status, selectedRows, type) => { selectedRows.forEach(row => { //the updateItemId allows us to update one specific item in a field set. updateStatus(status, row, type); }); setRowCleared(true); setRowsSelected([]); // Reset rowCleared back to false after the DataTable has re-rendered setTimeout(() => setRowCleared(false), 0); } const handleMultiRowDelete = ( selectedRows, type) => { selectedRows.forEach(row => { //the updateItemId allows us to update one specific item in a field set. deleteData( row, type ); }); setRowCleared(true); setRowsSelected([]); // Reset rowCleared back to false after the DataTable has re-rendered setTimeout(() => setRowCleared(false), 0); } function handleSelection(state) { setRowCleared(false); setRowsSelected(state.selectedRows); } const handleClose = () => { setModalOpen(false); } const handleOpen = () => { setModalOpen(true); } if (!DataTable || !theme) return null; return ( <> {props.field.id === 'content_security_policy_source_directives' && (<> <ManualCspAdditionModal isOpen={modalOpen} onRequestClose={handleClose} status={'blocked'} directives={props.field.modal.options} parentId={props.field.id} /> <div className="rsssl-container" style={{paddingTop: "0px"}}> <AddButton handleOpen={handleOpen} processing={manualAdditionProcessing} allowedText={__("Add Entry", "really-simple-ssl")} /> </div> </>)} {!dataLoaded && <> <div className="rsssl-learningmode-placeholder"> <div></div> <div></div> <div></div> <div></div> </div> </>} {rowsSelected.length > 0 && ( <div style={{ marginTop: '1em', marginBottom: '1em', }} > <div className={"rsssl-multiselect-datatable-form rsssl-primary"} > <div> {__("You have selected", "really-simple-ssl")} {rowsSelected.length} {__("rows", "really-simple-ssl")} </div> <div className="rsssl-action-buttons"> {(Number(filterValue) === -1 || Number(filterValue) === 0) && <div className="rsssl-action-buttons__inner"> <Button // className={"button button-red rsssl-action-buttons__button"} className={"button button-secondary rsssl-status-allowed rsssl-action-buttons__button"} onClick={() => handleMultiRowStatus(0, rowsSelected, props.field.id)} > {__('Allow', 'really-simple-ssl')} </Button> </div> } {(Number(filterValue) === -1 || Number(filterValue) === 1) && <div className="rsssl-action-buttons__inner"> <Button // className={"button button-red rsssl-action-buttons__button"} className={"button button-primary rsssl-action-buttons__button"} onClick={() => handleMultiRowStatus(1, rowsSelected, props.field.id)} > {__('Revoke', 'really-simple-ssl')} </Button> </div> } <div className="rsssl-action-buttons__inner"> <Button // className={"button button-red rsssl-action-buttons__button"} className={"button button-red rsssl-action-buttons__button"} onClick={() => handleMultiRowDelete(rowsSelected, props.field.id)} > {__('Remove', 'really-simple-ssl')} </Button> </div> </div> </div> </div> )} {dataLoaded && <> <DataTable columns={columns} data={data} dense pagination noDataComponent={__("No results", "really-simple-ssl")} persistTableHead theme={theme} customStyles={customStyles} conditionalRowStyles={conditionalRowStyles} paginationComponentOptions={{ rowsPerPageText: __('Rows per page:', 'really-simple-ssl'), rangeSeparatorText: __('of', 'really-simple-ssl'), noRowsPerPage: false, selectAllRowsItem: false, selectAllRowsItemText: __('All', 'really-simple-ssl'), }} selectableRows selectableRowsHighlight={true} onSelectedRowsChange={handleSelection} clearSelectedRows={rowCleared} /></> } <div className={"rsssl-learning-mode-footer"} style={{marginLeft:'0px'}}> {hasError && <div className="rsssl-locked"> <div className="rsssl-locked-overlay"> <span className="rsssl-progress-status rsssl-learning-mode-error">{__("Error detected", "really-simple-ssl")}</span> {__("%s cannot be implemented due to server limitations. Check your notices for the detected issue.", "really-simple-ssl").replace('%s', field.label)} <a className="rsssl-learning-mode-link" href="#" onClick={(e) => toggleEnforce(e, false)}>{__("Disable", "really-simple-ssl")}</a> </div> </div> } {!hasError && <> {enforce != 1 && <button disabled={enforceDisabled} className="button button-primary" onClick={(e) => toggleEnforce(e, true)}>{__("Enforce", "really-simple-ssl")}</button>} {!enforcedByThirdparty && enforce == 1 && <button className="button" onClick={(e) => toggleEnforce(e, false)}>{__("Disable", "really-simple-ssl")}</button>} <label> <input type="checkbox" disabled={enforce} checked={learningMode == 1} value={learningMode} onChange={(e) => toggleLearningMode(e)} /> {__("Enable Learning Mode to configure automatically", "really-simple-ssl")} </label> {enforce == 1 && <div className="rsssl-locked"> <div className="rsssl-shield-overlay"> <Icon name="shield" size="80px"/> </div> <div className="rsssl-locked-overlay"> <span className="rsssl-progress-status rsssl-learning-mode-enforced">{__("Enforced", "really-simple-ssl")}</span> {enforcedString} <a className="rsssl-learning-mode-link" href="#" onClick={(e) => toggleEnforce(e)}>{__("Disable to configure", "really-simple-ssl")}</a> </div> </div>} {learningMode == 1 && <div className="rsssl-locked"> <div className="rsssl-locked-overlay"> <span className="rsssl-progress-status rsssl-learning-mode">{__("Learning Mode", "really-simple-ssl")}</span> {configuringString} <a className="rsssl-learning-mode-link" href="#" onClick={(e) => toggleLearningMode(e)}>{__("Exit", "really-simple-ssl")}</a> </div> </div>} {learningModeCompleted == 1 && <div className="rsssl-locked"> <div className="rsssl-locked-overlay"> <span className="rsssl-progress-status rsssl-learning-mode-completed">{__("Learning Mode", "really-simple-ssl")}</span> {__("We finished the configuration.", "really-simple-ssl")} <a className="rsssl-learning-mode-link" href="#" onClick={(e) => toggleLearningMode(e)}>{__("Review the settings and enforce the policy", "really-simple-ssl")}</a> </div> </div>} {rsssl_settings.pro_plugin_active && props.disabled && <div className="rsssl-locked "> <div className="rsssl-locked-overlay"> {!enforcedByThirdparty && <span className="rsssl-progress-status rsssl-disabled">{__("Disabled", "really-simple-ssl")}</span>} {enforcedByThirdparty && <span className="rsssl-progress-status rsssl-learning-mode-enforced">{__("Enforced", "really-simple-ssl")}</span>} {disabledString} </div> </div>} </> } <Filter/> </div> </> ) } export default LearningMode src/Settings/LearningMode/ManualCspAdditionModal.js 0000777 00000016377 15252021227 0016374 0 ustar 00 import {useEffect, useMemo, useRef} from '@wordpress/element'; import {Modal, Button} from "@wordpress/components"; import SelectControl from "../SelectControl.js" import {__} from "@wordpress/i18n"; import FieldsData from "../FieldsData"; import ManualCspAddition from "./ManualCspAddition"; import UseLearningMode from "./LearningModeData"; const ManualCspAdditionModal = (props) => { const cspUriRef = useRef(null); const {manualAdditionProcessing, directive, setCspUri, setDirective, addManualCspEntry} = ManualCspAddition(); const {fetchLearningModeData} = UseLearningMode(); const {showSavedSettingsNotice} = FieldsData(); const directiveOptions = useMemo(() => getModalSelectOptions(), []); async function submitManualCspAddition() { if (!cspUriRef.current || !cspUriRef.current.value) { return showSavedSettingsNotice(__('Something went wrong while saving the manual CSP entry.'), 'error'); } if (!cspUriRef.current.value.length || !directive.length) { return showSavedSettingsNotice(__('Please enter both the "URI" and the "Directive" before saving.'), 'error'); } await addManualCspEntry(cspUriRef.current.value, directive).then((response) => { if (response.success === false) { return showSavedSettingsNotice(response.message, 'error'); } showSavedSettingsNotice(response.message); // Re-render table to show new addition fetchLearningModeData(props.parentId); clearManualCspAdditionModalFields(); return closeManualCspAdditionModal(); }); } function clearManualCspAdditionModalFields() { setCspUri(''); setDirective(''); if (cspUriRef.current) { cspUriRef.current.value = ''; } } /** * Map the value of the directives passed via the props to the value and * label of the options in the dropdown. We do this because the label in * RSSSL()->headers->directives contains excessive information * * @returns {{value: *, label: *}[]} */ function getModalSelectOptions() { return Object.keys(props.directives).map(key => ({ value: props.directives[key], label: props.directives[key] })); } /** * Method should be called when a user clicked the cancel button */ function handleCancel() { clearManualCspAdditionModalFields(); closeManualCspAdditionModal(); } /** * Method can be used to submit the manual CSP entry with the "Enter" key */ function submitWithEnter(event) { if (event.key === 'Enter') { submitManualCspAddition(); } } /** * When modal is used the closing-callback for the modal can be bind to a * method by using the "onRequestClose" property. * @see settings/src/Settings/LearningMode/LearningMode.js */ function closeManualCspAdditionModal() { props.onRequestClose(); } /** * Set default value to the first value in props.directives. */ useEffect(() => { if (!directive) { setDirective(props.directives[0]); } }, []); /** * Don't render when the modal isn't open. */ if (!props.isOpen) { return null; } return ( <Modal title={__("Add Entry", "really-simple-ssl")} shouldCloseOnClickOutside={true} shouldCloseOnEsc={true} overlayClassName="rsssl-modal-overlay" className="rsssl-modal" onRequestClose={closeManualCspAdditionModal} > <div className="modal-content"> <div className="modal-body" style={{ padding: "0.5em", }} > <div style={{ width: "95%", height: "100%", padding: "10px", }} > <div style={{position: 'relative'}}> <label htmlFor={'cspUri'} className={'rsssl-label'} >{__('URI', 'really-simple-ssl')}</label> <input id={'cspUri'} type={'text'} name={'cspUri'} ref={cspUriRef} onKeyDown={submitWithEnter} style={{ width: '100%', }} disabled={manualAdditionProcessing} /> </div> <div style={{marginTop: '10px'}}> <SelectControl field={ { // workaround for working with SelectControl id: 'directive', } } id={'directive'} label={__('Directive', 'really-simple-ssl')} name={'directive'} value={directive} onChangeHandler={(value) => setDirective(value)} options={directiveOptions} style={{ label: { display: 'block', }, select: { maxWidth: 'unset', width: '100%', } }} disabled={manualAdditionProcessing} /> </div> </div> </div> <div className="modal-footer"> <div className={'rsssl-grid-item-footer'} style={{ display: 'flex', justifyContent: 'flex-end', alignItems: 'center', padding: '1em', }} > <Button isSecondary onClick={handleCancel} style={{marginRight: '10px'}} > {__("Cancel", "really-simple-ssl")} </Button> <Button isPrimary onClick={submitManualCspAddition} > {__("Add", "really-simple-ssl")} </Button> </div> </div> </div> </Modal> ) } export default ManualCspAdditionModal; src/Settings/LearningMode/ManualCspAddition.js 0000777 00000002107 15252021227 0015401 0 ustar 00 import { create } from 'zustand'; import * as rsssl_api from "../../utils/api"; const ManualCspAddition = create((set, get) => ({ manualAdditionProcessing: false, manualAdditionData: [], manualAdditionDataLoaded: false, cspUri: '', directive: '', setDirective: (directive) => set({ directive }), setCspUri: (cspUri) => set({ cspUri }), setDataLoaded: (manualAdditionDataLoaded) => set({ manualAdditionDataLoaded }), addManualCspEntry: async (cspUri, directive) => { let response; set({ manualAdditionProcessing: true }); try { response = await rsssl_api.doAction('rsssl_csp_uri_add', { cspUri, directive }); if (response.request_success) { set({ manualAdditionDataLoaded: false }); } } catch (e) { console.error(e); } finally { set({ manualAdditionProcessing: false, manualAdditionDataLoaded: true }); } // Should contain keys "success" and "message"; return response; } })); export default ManualCspAddition; src/Settings/LearningMode/LearningModeData.js 0000777 00000005577 15252021227 0015216 0 ustar 00 import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; const UseLearningMode = create(( set, get ) => ({ learningModeData: [], dataLoaded: false, fetchLearningModeData: async (type) => { let data = {}; data.type = type; data.lm_action = 'get'; let learningModeData = await rsssl_api.doAction('learning_mode_data', data).then((response) => { return response; }) if ( typeof learningModeData === 'object' && learningModeData.request_success === true ) { learningModeData = Object.values(learningModeData); } if ( !Array.isArray(learningModeData) ) { learningModeData = []; } set({ learningModeData: learningModeData, dataLoaded:true, }); }, updateStatus: async (enabled, updateItem, type) => { let learningModeData = get().learningModeData; let data = {}; data.type = type; data.updateItemId = updateItem.id; data.enabled = enabled==1 ? 0 : 1; data.lm_action = 'update'; //for fast UX feel, update the state before we post for (const item of learningModeData){ if (updateItem.id === item.id && item.status) { item.status = data.enabled; } } set({ learningModeData: learningModeData, }); learningModeData = await rsssl_api.doAction('learning_mode_data', data).then((response) => { return response; }) if ( typeof learningModeData === 'object' ) { learningModeData = Object.values(learningModeData); } if ( !Array.isArray(learningModeData) ) { learningModeData = []; } set({ learningModeData: learningModeData, dataLoaded:true, }); }, deleteData: async (deleteItem, type) => { let learningModeData = get().learningModeData; let data = {}; data.type = type; data.updateItemId = deleteItem.id; data.lm_action = 'delete'; //for fast UX feel, update the state before we post learningModeData.forEach(function(item, i) { if (item.id === deleteItem.id) { learningModeData.splice(i, 1); } }); set({ learningModeData: learningModeData, }); learningModeData = await rsssl_api.doAction('learning_mode_data', data).then((response) => { return response; }) if ( typeof learningModeData === 'object' ) { learningModeData = Object.values(learningModeData); } if ( !Array.isArray(learningModeData) ) { learningModeData = []; } set({ learningModeData: learningModeData, dataLoaded:true, }); }, })); export default UseLearningMode; src/Settings/LearningMode/ChangeStatus.js 0000777 00000001131 15252021227 0014427 0 ustar 00 import { __ } from '@wordpress/i18n'; import useLearningMode from "./LearningModeData"; const ChangeStatus = (props) => { const {updateStatus} = useLearningMode(); let statusClass = props.item.status==1 ? 'button button-primary rsssl-status-allowed' : 'button button-default rsssl-status-revoked'; let label = props.item.status==1 ? __("Revoke", "really-simple-ssl") : __("Allow", "really-simple-ssl"); return ( <button onClick={ () => updateStatus( props.item.status, props.item, props.field.id ) } className={statusClass}>{label}</button> ) } export default ChangeStatus src/Settings/LearningMode/Delete.js 0000777 00000001752 15252021227 0013251 0 ustar 00 import useLearningMode from "./LearningModeData"; import {__} from "@wordpress/i18n"; const Delete = (props) => { const {deleteData} = useLearningMode(); return ( <button type="button" className="button button-red rsssl-learning-mode-delete" onClick={ () => deleteData( props.item, props.field.id ) }> {/*<svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" height="16" >*/} {/* <path fill="#000000" d="M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"/>*/} {/*</svg>*/} {__("Delete", "really-simple-ssl")} </button> ) } export default Delete src/Settings/Host/HostData.js 0000777 00000001337 15252021227 0012126 0 ustar 00 import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; const useHostData = create(( set, get ) => ({ hosts: [], hostsLoaded:false, fetchHosts: async ( id ) => { try { const response = await rsssl_api.doAction('get_hosts', { id: id }); // Handle the response if ( !response ) { console.error('No response received from the server.'); return; } let hosts = response.hosts; // Set the roles state with formatted data set({hosts: hosts,hostsLoaded:true }); } catch (error) { console.error('Error:', error); } } })); export default useHostData; src/Settings/Host/Host.js 0000777 00000004057 15252021227 0011336 0 ustar 00 import { useState, useEffect, memo } from "@wordpress/element"; import { ThemeProvider } from '@mui/material/styles'; import useFields from "../FieldsData"; import AutoCompleteControl from "../AutoComplete/AutoCompleteControl"; import useHostData from "./HostData"; import { __ } from "@wordpress/i18n"; import autoCompleteSharedTheme from "../../utils/autoCompleteTheme"; const Host = ({ field, showDisabledWhenSaving = true }) => { const { updateField, setChangedField, saveFields, handleNextButtonDisabled } = useFields(); const [disabled, setDisabled] = useState(false); const { fetchHosts, hosts, hostsLoaded } = useHostData(); useEffect(() => { if (!hostsLoaded) { fetchHosts(); } }, []); useEffect(() => { handleNextButtonDisabled(disabled); }, [disabled]); const onChangeHandler = async (fieldValue) => { if (showDisabledWhenSaving) { setDisabled(true); } updateField(field.id, fieldValue); setChangedField(field.id, fieldValue); await saveFields(true, false); setDisabled(false); }; let loadedHosts = hostsLoaded ? hosts : []; let options = []; let item = { label: __('Optional - Select your hosting provider.', 'really-simple-ssl'), value: '', }; if (field.value.length === 0) { options.push(item); } for (let key in loadedHosts) { if (loadedHosts.hasOwnProperty(key)) { let item = {}; item.label = loadedHosts[key].name; item.value = key; options.push(item); } } return ( <ThemeProvider theme={autoCompleteSharedTheme}> <AutoCompleteControl className="rsssl-select" field={field} label={field.label} onChange={(fieldValue) => onChangeHandler(fieldValue)} value={field.value} options={options} disabled={disabled} /> </ThemeProvider> ); }; export default memo(Host); src/Settings/License/License.js 0000777 00000004521 15252021227 0012444 0 ustar 00 import TaskElement from "../../Dashboard/TaskElement"; import * as rsssl_api from "../../utils/api"; import { __ } from '@wordpress/i18n'; import useFields from "./../FieldsData"; import useLicense from "./LicenseData"; import {useEffect} from "@wordpress/element"; const License = ({field, isOnboarding}) => { const {fields, setChangedField, updateField} = useFields(); const {toggleActivation, licenseStatus, setLicenseStatus, notices, setNotices, setLoadingState} = useLicense(); useEffect(() => { setLoadingState(); }, []); const getLicenseNotices = () => { return rsssl_api.runTest('licenseNotices', 'refresh').then( ( response ) => { return response; }); } useEffect( () => { getLicenseNotices().then(( response ) => { setLicenseStatus(response.licenseStatus); setNotices(response.notices); }); }, [fields] ); const onChangeHandler = (fieldValue) => { setChangedField( field.id, fieldValue ) updateField(field.id, fieldValue); } return ( <div className="components-base-control"> <div className="components-base-control__field"> { !isOnboarding && <label className="components-base-control__label" htmlFor={field.id}> {field.label} </label> } <div className="rsssl-license-field"> <input className="components-text-control__input" type="password" id={field.id} value={field.value} onChange={(e) => onChangeHandler(e.target.value)} /> { !isOnboarding && <button className="button button-default" onClick={() => toggleActivation(field.value)}> {licenseStatus === 'valid' && <>{__('Deactivate', 'really-simple-ssl')}</>} {licenseStatus !== 'valid' && <>{__('Activate', 'really-simple-ssl')}</>} </button> } </div> </div> { notices.map((notice, i) => ( <TaskElement key={'task-' + i} index={i} notice={notice} highLightField="" /> ))} </div> ); } export default License; src/Settings/License/LicenseData.js 0000777 00000003155 15252021227 0013240 0 ustar 00 import {create} from 'zustand'; import useFields from "../FieldsData"; import * as rsssl_api from "../../utils/api"; import {__} from "@wordpress/i18n"; const UseLicenseData = create(( set, get ) => ({ licenseStatus: rsssl_settings.licenseStatus, setLicenseStatus: (licenseStatus) => set(state => ({ licenseStatus })), notices:[], setNotices: (notices) => set(state => ({ notices })), setLoadingState: () => { const disabledState = {output: { dismissible: false, icon: 'skeleton', label: __( 'Loading', 'really-simple-ssl' ), msg: false, plusone: false, url: false } }; const skeletonNotices = [ disabledState, disabledState, disabledState ]; set({notices:skeletonNotices}) }, toggleActivation: async (licenseKey) => { get().setLoadingState(); if ( get().licenseStatus==='valid' ) { await rsssl_api.runTest('deactivate_license').then( ( response ) => { set({ notices: response.notices, licenseStatus: response.licenseStatus, }) }); } else { let data = {}; data.license = licenseKey; await rsssl_api.doAction('activate_license', data).then( ( response ) => { set({ notices: response.notices, licenseStatus: response.licenseStatus, }) }); } } })); export default UseLicenseData; src/Settings/TwoFA/TwoFaRolesDropDown.js 0000777 00000011317 15252021227 0014163 0 ustar 00 import {useRef, useEffect, useState} from '@wordpress/element'; import Select from 'react-select'; import useFields from "../FieldsData"; import useRolesData from './RolesStore'; import {__} from "@wordpress/i18n"; import './select.scss'; /** * TwoFaRolesDropDown component represents a dropdown select for excluding roles * from two-factor authentication email. * @param {object} field - The field object containing information about the field. * @param forcedRoledId * @param optionalRolesId */ const TwoFaRolesDropDown = ({ field, forcedRoledId, optionalRolesId }) => { const {fetchRoles, roles, rolesLoaded} = useRolesData(); const [selectedRoles, setSelectedRoles] = useState([]); const [otherRoles, setOtherRoles] = useState([]); const { updateField, getFieldValue, setChangedField, getField, fieldsLoaded, showSavedSettingsNotice, saveField } = useFields(); // Reference for tooltip usage const selectRef = useRef(null); // Check if the select component should be disabled based on `rsssl_settings.email_verified` const isSelectDisabled = ! getFieldValue('login_protection_enabled'); useEffect(() => { if (!rolesLoaded) { fetchRoles(field.id); } }, [rolesLoaded]); useEffect(() => { if ( field.id === forcedRoledId ) { let otherField = getField(optionalRolesId); let roles = Array.isArray(otherField.value) ? otherField.value : []; setOtherRoles(roles); } else { let otherField = getField(forcedRoledId); let roles = Array.isArray(otherField.value) ? otherField.value : []; setOtherRoles(roles); } }, [selectedRoles, getField(optionalRolesId), getField(forcedRoledId)]); useEffect(() => { if (!field.value) { setChangedField(field.id, field.default); updateField(field.id, field.default); setSelectedRoles(field.default.map((role, index) => ({ value: role, label: role.charAt(0).toUpperCase() + role.slice(1) }))); } else { setSelectedRoles(field.value.map((role, index) => ({ value: role, label: role.charAt(0).toUpperCase() + role.slice(1) }))); } },[fieldsLoaded]); const handleChange = (selectedOptions) => { const rolesExcluded = selectedOptions.map(option => option.value); let rolesEnabledEmail = getFieldValue('two_fa_enabled_roles_email'); let rolesEnabledTotp = getFieldValue('two_fa_enabled_roles_totp'); let rolesEnabled = rolesEnabledEmail.concat(rolesEnabledTotp); let rolesEnabledContainsSelected = rolesEnabled.filter(role => selectedOptions.map(option => option.value).includes(role)); if (rolesEnabledContainsSelected.length === 0 && selectedOptions.length > 0) { showSavedSettingsNotice(__('You have enforced 2FA, but not configured any methods.', 'really-simple-ssl'), 'error'); } else { selectedOptions.forEach(role => { if (!rolesEnabled.includes(role.value)) { showSavedSettingsNotice(__('You have enforced 2FA, but not configured any methods for the role: ', 'really-simple-ssl') + role.label, 'error'); } }); } setSelectedRoles(selectedOptions); updateField(field.id, rolesExcluded); setChangedField(field.id, rolesExcluded); }; const customStyles = { multiValue: (provided) => ({ ...provided, borderRadius: '10px', backgroundColor: field.id === forcedRoledId ? '#F5CD54' : field.id === optionalRolesId ? '#FDF5DC' : 'default', }), multiValueRemove: (base, state) => ({ ...base, color: state.isHovered ? 'initial' : base.color, opacity: '0.7', ':hover': { backgroundColor: 'initial', color: 'initial', opacity: '1', }, }) }; const alreadySelected = selectedRoles.map(option => option.value); let filteredRoles = []; let inRolesInUse = [...alreadySelected, ...otherRoles]; roles.forEach(function (item, i) { if (Array.isArray(inRolesInUse) && inRolesInUse.includes(item.value)) { filteredRoles.splice(i, 1); } else { filteredRoles.push(item); } }); return ( <div style={{marginTop: '5px'}} ref={selectRef}> <Select isMulti options={filteredRoles} onChange={handleChange} value={selectedRoles} menuPosition={"fixed"} styles={customStyles} isDisabled={isSelectDisabled} /> </div> ); }; export default TwoFaRolesDropDown; src/Settings/TwoFA/RolesStore.js 0000777 00000002501 15252021227 0012555 0 ustar 00 import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; import {produce} from "immer"; const useRolesData = create(( set, get ) => ({ roles: [], rolesLoaded:false, fetchRoles: async ( id ) => { try { // Fetch the roles from the server using rsssl_api.getUserRoles() const response = await rsssl_api.doAction('get_roles', { id: id }); // Handle the response if ( !response ) { console.error('No response received from the server.'); return; } const data = response.roles; if (typeof data !== 'object') { console.error('Invalid data received in the server response. Expected an object.'); return; } // Convert the object to an array const dataArray = Object.values(data); // Format the data into options array for react-select const formattedData = dataArray.map((role, index) => ({ value: role, label: role.charAt(0).toUpperCase() + role.slice(1) })); // Set the roles state with formatted data set({roles: formattedData,rolesLoaded:true }); } catch (error) { console.error('Error:', error); } } })); export default useRolesData; src/Settings/TwoFA/TwoFaDataTableStore.js 0000777 00000013747 15252021227 0014271 0 ustar 00 /* Creates A Store For Risk Data using Zustand */ import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; import {produce} from "immer"; import apiFetch from "@wordpress/api-fetch"; const DynamicDataTableStore = create((set, get) => ({ processing: false, dataLoaded: false, pagination: {}, dataActions: {currentPage:1, currentRowsPerPage:5, filterValue: 'all',filterColumn: 'user_role'}, totalRecords:0, DynamicDataTable: [], setDataLoaded: (dataLoaded) => set((state) => ({ ...state, dataLoaded: dataLoaded })), hardResetUser: async (id) => { if (get().processing) return; set({processing: true}); try { const response = await rsssl_api.doAction( 'two_fa_reset_user', {id} ); if (response) { set(state => ({ ...state, processing: false, })); // Return the response for the calling function to use return response; } } catch (e) { console.log(e); } }, fetchDynamicData: async (role_filter = 'all') => { if (get().processing) return; set({processing: true}); let allData = []; // Will hold all fetched rows let offset = 0; // Start from 0 const limit = 1000; // How many to fetch per request let totalRecords = 0; let negativeCount = 0; try { while (true) { // Clone current dataActions and add pagination params const params = { ...get().dataActions, number: limit, // Tells the server how many rows you want offset: offset, negative_count: negativeCount, ...(role_filter !== 'all' && { role_filter: role_filter }) }; // Make the request const response = await rsssl_api.doAction('two_fa_table', params); // If something went wrong or no data returned, break out if (!response || !response.data) { break; } // Accumulate data allData.push(...response.data); // Grab totalRecords from the response (the server must return it) if (response.totalRecords) { totalRecords = response.totalRecords; negativeCount = response.negative_count; } // If the number of records fetched in this request is less than the limit, // it means there are no more records to fetch. if (response.data.length < limit) { break; } // Otherwise, increment offset to fetch the "next page" offset += limit; } // Once the loop is done, we have all the data in allData set(state => ({ ...state, DynamicDataTable: allData, // Store *all* fetched rows dataLoaded: true, processing: false, totalRecords: totalRecords, // Keep track if you need it })); // Optionally return it if this function is called from elsewhere return { data: allData, totalRecords, }; } catch (e) { console.log(e); set(state => ({ ...state, processing: false, dataLoaded: true, })); } }, handleTableSearch: async (search, searchColumns) => { const typingTimer = setTimeout(async () => { set(produce((state) => { state.dataActions = {...state.dataActions, search, searchColumns}; })); await get().fetchDynamicData(); }, 500); return () => { clearTimeout(typingTimer); }; }, handlePageChange: async (page, pageSize) => { //Add the page and pageSize to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, currentPage: page}; }) ); await get().fetchDynamicData(); }, handleRowsPerPageChange: async (currentRowsPerPage, currentPage) => { //Add the page and pageSize to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, currentRowsPerPage, currentPage}; }) ); await get().fetchDynamicData(); }, //this handles all pagination and sorting handleTableSort: (sortColumn, sortDirection) => { set( produce((state) => { // Update sort parameters in dataActions state.dataActions.sortColumn = sortColumn.column; state.dataActions.sortDirection = sortDirection; // Sort the existing DynamicDataTable in place state.DynamicDataTable.sort((a, b) => { const aVal = a[sortColumn.column]; const bVal = b[sortColumn.column]; // Compare the two values. Adjust comparison logic if necessary if (aVal < bVal) { return sortDirection === 'asc' ? -1 : 1; } if (aVal > bVal) { return sortDirection === 'asc' ? 1 : -1; } return 0; }); }) ); }, handleUsersTableFilter: async (column, filterValue) => { //Add the column and sortDirection to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, filterColumn: column, filterValue}; }) ); // Fetch the data again await get().fetchDynamicData(); }, })); export default DynamicDataTableStore; src/Settings/TwoFA/TwoFaDataTable.js 0000777 00000026276 15252021227 0013255 0 ustar 00 import {__} from '@wordpress/i18n'; import {useEffect, useState, useRef} from '@wordpress/element'; import DataTable, {createTheme} from "react-data-table-component"; import useFields from "../FieldsData"; import TwoFaDataTableStore from "./TwoFaDataTableStore"; import FilterData from "../FilterData"; import RolesStore from "./RolesStore"; const DynamicDataTable = (props) => { const { hardResetUser, handleUsersTableFilter, DynamicDataTable, setDataLoaded, dataLoaded, fetchDynamicData, handleTableSort, processing } = TwoFaDataTableStore(); const { roles, fetchRoles, } = RolesStore() const { setSelectedFilter, getCurrentFilter } = FilterData(); const moduleName = 'rsssl-group-filter-two_fa_users'; let field = props.field; const [enabled, setEnabled] = useState(false); const [reloadWhenSaved, setReloadWhenSaved] = useState(false); const {fields, getFieldValue, changedFields} = useFields(); const [rowsSelected, setRowsSelected] = useState([]); const [rowCleared, setRowCleared] = useState(false); const [data, setData] = useState([]); const [currentPage, setCurrentPage] = useState(1); const [rowsPerPage, setRowsPerPage] = useState(5); const selectRef = useRef(null); const hiddenSelectRef = useRef(null); const [user_role, setUserRole] = useState('all'); useEffect(() => { if (!dataLoaded) { fetchDynamicData(user_role); } else { setData(DynamicDataTable); } }, [dataLoaded, DynamicDataTable]); useEffect(() => { if (user_role !== 'all') { fetchDynamicData(user_role); } }, [user_role]); useEffect(() => { if (!roles.length) { fetchRoles(); } }, [roles, fetchRoles]); useEffect(() => { if (hiddenSelectRef.current && selectRef.current) { const hiddenSelectWidth = hiddenSelectRef.current.offsetWidth; selectRef.current.style.width = `${hiddenSelectWidth}px`; } }, [roles]); useEffect(() => { setReloadWhenSaved(true); setDataLoaded(false); }, [getFieldValue('two_fa_forced_roles'), getFieldValue('two_fa_optional_roles'), getFieldValue('two_fa_forced_roles_totp'), getFieldValue('two_fa_optional_roles_totp')]); useEffect(() => { if (reloadWhenSaved) { if (changedFields.length === 0) { setDataLoaded(false); setReloadWhenSaved(false); } } }, [reloadWhenSaved]); const handleTableSearch = (value, columns) => { const search = value.toLowerCase(); const searchColumns = columns; const filteredData = DynamicDataTable.filter((item) => { return searchColumns.some((column) => { return item[column].toString().toLowerCase().includes(search); }); }); setData(filteredData); } useEffect(() => { if (dataLoaded) { const currentFilter = getCurrentFilter(moduleName); if (!currentFilter) { setSelectedFilter('all', moduleName); } setRowCleared(true); handleUsersTableFilter('user_role', currentFilter); } }, [getCurrentFilter(moduleName)]); useEffect(() => { let enabledEmailRoles = getFieldValue('two_fa_enabled_roles_email'); let enabledTotpRoles = getFieldValue('two_fa_enabled_roles_totp'); let enabledRoles = enabledEmailRoles.concat(enabledTotpRoles); setEnabled(getFieldValue('login_protection_enabled')); }, [fields]); useEffect(() => { if (!dataLoaded || enabled !== (getFieldValue('two_fa_enabled_email') || getFieldValue('two_fa_enabled_totp'))) { setDataLoaded(false); } }, [getFieldValue('two_fa_enabled'), getFieldValue('two_fa_enabled_totp')]); const usersCanBeReset = (rows) => { // count the selected users let rowsSelectedCount = rows.length; // count the users that can be reset let canResetCount = 0; rows.forEach(user => { if (user.can_reset) { canResetCount++; } }) // if the selected users are equal to the users that can be reset, return true return rowsSelectedCount === canResetCount; } const buildColumn = (column) => { return { name: column.name, column: column.column, sortable: column.sortable, searchable: column.searchable, width: column.width, visible: column.visible, selector: row => row[column.column], }; } let columns = []; field.columns.forEach(function (item, i) { let newItem = {...item, key: item.column}; newItem = buildColumn(newItem); newItem.visible = newItem.visible ?? true; columns.push(newItem); }); let searchableColumns = columns .filter(column => column.searchable) .map(column => column.column); const customStyles = { headCells: { style: { paddingLeft: '0', paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', paddingRight: '0', }, }, }; createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light'); const handleReset = async (users) => { if (Array.isArray(users)) { for (const user of users) { await hardResetUser(user.ID); } } else { await hardResetUser(users.ID); } // Clear selection setDataLoaded(false); setRowsSelected([]); // Toggle clearSelectedRows: set it to true then back to false setRowCleared(true); // Use a short timeout (or an effect) to reset rowCleared to false setTimeout(() => { setRowCleared(false); }, 0); }; const handleSelection = (state) => { setRowsSelected(state.selectedRows); } const capitalizeFirstLetter = (string) => { //if the string is totp we capitlize it if (string === 'totp') { return string.toUpperCase(); } // if the string turns out to be an array we capitalize the first letter of each element if (Array.isArray(string)) { return string.map((str) => { return str.charAt(0).toUpperCase() + str.slice(1); }).join(', '); } return string.charAt(0).toUpperCase() + string.slice(1); } let inputData = data ? [...new Set(data)] : []; const paginatedData = inputData.slice((currentPage - 1) * rowsPerPage, currentPage * rowsPerPage); let displayData = []; paginatedData.forEach(user => { let recordCopy = {...user} recordCopy.user = capitalizeFirstLetter(user.user); recordCopy.status_for_user = __(capitalizeFirstLetter(user.status_for_user), 'really-simple-ssl'); recordCopy.rsssl_two_fa_providers = __(capitalizeFirstLetter(user.rsssl_two_fa_providers), 'really-simple-ssl'); recordCopy.resetControl = <button disabled={recordCopy.can_reset === false} className="button button-red rsssl-action-buttons__button" onClick={() => handleReset(user)} > {__("Reset", "really-simple-ssl")} </button> displayData.push(recordCopy); }); const CustomLoader = () => ( <div className="custom-loader"> <div className="dot"></div> <div className="dot"></div> <div className="dot"></div> </div> ); return ( <> <div className="rsssl-container" style={{marginTop: '1em'}}> <div> </div> <div className="rsssl-search-bar"> <div className="rsssl-search-bar__inner"> <div className="rsssl-search-bar__icon"></div> <input type="text" className="rsssl-search-bar__input" placeholder={__("Search", "really-simple-ssl")} onChange={event => handleTableSearch(event.target.value, searchableColumns)} /> </div> </div> </div> {rowsSelected.length > 0 && ( <div style={{marginTop: '1em', marginBottom: '1em'}}> <div className={"rsssl-multiselect-datatable-form rsssl-primary"}> <div> {__("You have selected %s users", "really-simple-ssl").replace("%s", rowsSelected.length)} </div> <div className="rsssl-action-buttons"> <div className="rsssl-action-buttons__inner"> <button disabled={usersCanBeReset(rowsSelected) === false} className="button button-red rsssl-action-buttons__button" onClick={() => handleReset(rowsSelected)} > {__("Reset", "really-simple-ssl")} </button> </div> </div> </div> </div> )} <DataTable keyField={'ID'} columns={columns} data={displayData} dense pagination paginationServer={true} onChangePage={page => { setCurrentPage(page); }} onChangeRowsPerPage={rows => { setRowsPerPage(rows); setCurrentPage(1); }} paginationTotalRows={inputData.length} paginationRowsPerPageOptions={[5, 25, 50, 100]} paginationPerPage={rowsPerPage} progressPending={processing} // Show loading indicator progressComponent={<CustomLoader/>} onSort={handleTableSort} noDataComponent={__("No results", "really-simple-ssl")} persistTableHead selectableRows selectableRowsHighlight={true} onSelectedRowsChange={handleSelection} clearSelectedRows={rowCleared} theme="really-simple-plugins" customStyles={customStyles} /> {!enabled && <div className="rsssl-locked"> <div className="rsssl-locked-overlay"> <span className="rsssl-task-status rsssl-open">{__('Disabled', 'really-simple-ssl')}</span> <span>{__('Activate Two-Factor Authentication and one method to enable this block.', 'really-simple-ssl')}</span> </div> </div> } </> ); } export default DynamicDataTable; src/Settings/TwoFA/TwoFaEnabledDropDown.js 0000777 00000011407 15252021227 0014431 0 ustar 00 import {useRef, useEffect, useState} from '@wordpress/element'; import Select from 'react-select'; import useFields from "../FieldsData"; import useRolesData from './RolesStore'; import hoverTooltip from "../../utils/hoverTooltip"; import {__} from "@wordpress/i18n"; /** * TwoFaEnabledDropDown component represents a dropdown select for excluding roles * from two-factor authentication email. */ const TwoFaEnabledDropDown = (props) => { const {fetchRoles, roles, rolesLoaded} = useRolesData(); const [selectedRoles, setSelectedRoles] = useState([]); const [otherRoles, setOtherRoles] = useState([]); const { updateField, getFieldValue, setChangedField, getField, fieldsLoaded, saveFields } = useFields(); const selectRef = useRef(null); const loginProtectionEnabled = getFieldValue('login_protection_enabled'); let disabledSelectPropBoolean = (props.disabled === true); let disabledSelectViaFieldConfig = (props.field.disabled === true); let selectDisabled = ( disabledSelectViaFieldConfig || disabledSelectPropBoolean ); let tooltipText = ''; let emptyValues = [undefined, null, '']; if (selectDisabled && props.field.hasOwnProperty('disabledTooltipText') && !emptyValues.includes(props.field.disabledTooltipHoverText) ) { tooltipText = props.field.disabledTooltipHoverText; } hoverTooltip( selectRef, (selectDisabled && (tooltipText !== '')), tooltipText ); useEffect(() => { if (getFieldValue('login_protection_enabled') === 1 && props.field.id === 'two_fa_enabled_roles_totp') { setChangedField(props.field.id, props.field.value); saveFields(true, false); } }, [loginProtectionEnabled]); useEffect(() => { if (!rolesLoaded) { fetchRoles(props.field.id); } }, [rolesLoaded]); useEffect(() => { if (props.field.id) { let otherField = getField(props.field.id); let roles = Array.isArray(otherField.value) ? otherField.value : []; setOtherRoles(roles); } }, [selectedRoles, getField(props.field.id)]); useEffect(() => { if (props.field.id) { let otherField = getField(props.field.id); let roles = Array.isArray(otherField.value) ? otherField.value : []; setSelectedRoles(roles.map((role) => ({ value: role, label: role.charAt(0).toUpperCase() + role.slice(1) }))); } if (!props.field.value) { setChangedField(props.field.id, props.field.default); updateField(props.field.id, props.field.default); setSelectedRoles(props.field.default.map((role) => ({ value: role, label: role.charAt(0).toUpperCase() + role.slice(1) }))); } }, [fieldsLoaded]); const handleChange = (selectedOptions) => { const rolesExcluded = selectedOptions.map(option => option.value); setSelectedRoles(selectedOptions); updateField(props.field.id, rolesExcluded); setChangedField(props.field.id, rolesExcluded); }; const customStyles = { multiValue: (provided) => ({ ...provided, borderRadius: '10px', backgroundColor: '#F5CD54', }), multiValueRemove: (base, state) => ({ ...base, color: state.isHovered ? 'initial' : base.color, opacity: '0.7', ':hover': { backgroundColor: 'initial', color: 'initial', opacity: '1', }, }), menuPortal: (base) => ({ ...base, zIndex: 30, }), }; const alreadySelected = selectedRoles.map(option => option.value); let filteredRoles = []; let inRolesInUse = [...alreadySelected, ...otherRoles]; roles.forEach((item) => { if (!inRolesInUse.includes(item.value)) { filteredRoles.push(item); } }); return ( <div style={{marginTop: '5px'}} ref={selectRef}> <Select isMulti options={filteredRoles} onChange={handleChange} value={selectedRoles} menuPosition={"fixed"} styles={customStyles} isDisabled={selectDisabled} /> {! loginProtectionEnabled && <div className="rsssl-locked"> <div className="rsssl-locked-overlay"><span className="rsssl-task-status rsssl-open">{__('Disabled', 'really-simple-ssl')}</span><span>{__('Activate Two-Factor Authentication to enable this block.', 'really-simple-ssl')}</span> </div> </div> } </div> ); }; export default TwoFaEnabledDropDown; src/Settings/TwoFA/select.scss 0000777 00000000052 15252021227 0012271 0 ustar 00 div[class$="MenuPortal"] { z-index:30; } src/Settings/GeoBlockList/GeoDatatable.js 0000777 00000047537 15252021227 0014353 0 ustar 00 import {useEffect, useState, useCallback} from '@wordpress/element'; import FieldsData from "../FieldsData"; import GeoDataTableStore from "./GeoDataTableStore"; import EventLogDataTableStore from "../EventLog/EventLogDataTableStore"; import FilterData from "../FilterData"; import Flag from "../../utils/Flag/Flag"; import {__} from '@wordpress/i18n'; import useFields from "../FieldsData"; import useMenu from "../../Menu/MenuData"; /** * A component for displaying a geo datatable. * * @param {Object} props - The component props. * @param {string} props.field - The field to display. * * @returns {JSX.Element} The rendered component. */ const GeoDatatable = (props) => { const { CountryDataTable, dataLoaded, fetchCountryData, addRow, addMultiRow, removeRegion, removeRegionMulti, addRegion, addRegionsMulti, removeRow, removeRowMulti, rowCleared, resetRowSelection, } = GeoDataTableStore(); const moduleName = 'rsssl-group-filter-firewall_list_listing'; const [localData, setLocalData] = useState([]); const [searchTerm, setSearchTerm] = useState(''); const [visualData, setVisualData] = useState([]); const {showSavedSettingsNotice, saveFields} = FieldsData(); const [rowsSelected, setRowsSelected] = useState([]); const [columns, setColumns] = useState([]); const {fields, fieldAlreadyEnabled, getFieldValue, setHighLightField, getField} = useFields(); const [currentPage, setCurrentPage] = useState(1); const [rowsPerPage, setRowsPerPage] = useState(10); const {setSelectedSubMenuItem} = useMenu(); const [DataTable, setDataTable] = useState(null); const [theme, setTheme] = useState(null); useEffect( () => { import('react-data-table-component').then(({ default: DataTable, createTheme }) => { setDataTable(() => DataTable); setTheme(() => createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light')); }); }, []); let enabled = getFieldValue('enable_firewall'); const handlePageChange = (page) => { setCurrentPage(page); }; const handlePerRowsChange = (newRowsPerPage) => { setRowsPerPage(newRowsPerPage); }; const { selectedFilter, setSelectedFilter, activeGroupId, getCurrentFilter, setProcessingFilter, } = FilterData(); const [filter, setFilter] = useState(getCurrentFilter(moduleName)); const buildColumn = useCallback((column) => ({ //if the filter is set to region and the columns = status we do not want to show the column omit: filter === 'regions' && (column.column === 'country_name' || column.column === 'flag'), name: (column.column === 'action' && 'regions' === filter) ? __('Block / Allow All', 'really-simple-ssl') : column.name, sortable: column.sortable, searchable: column.searchable, width: column.width, visible: column.visible, column: column.column, selector: row => row[column.column], }), [filter]); let field = props.field; useEffect(() => { const element = document.getElementById('set_to_captcha_configuration'); const clickListener = async event => { event.preventDefault(); if (element) { await redirectToAddCaptcha(element); } }; if (element) { element.addEventListener('click', clickListener); } return () => { if (element) { element.removeEventListener('click', clickListener); } }; }, []); const redirectToAddCaptcha = async (element) => { // We fetch the props from the menu item let menuItem = getField('enabled_captcha_provider'); // Create a new object based on the menuItem, including the new property let highlightingMenuItem = { ...menuItem, highlight_field_id: 'enabled_captcha_provider', }; setHighLightField(highlightingMenuItem.highlight_field_id); let highlightField = getField(highlightingMenuItem.highlight_field_id); await setSelectedSubMenuItem(highlightField.menu_id); } const blockCountryByCode = useCallback(async (code, name) => { if (Array.isArray(code)) { //We get all the iso2 codes and names from the array const ids = code.map(item => ({ country_code: item.iso2_code, country_name: item.country_name })); //we loop through the ids and block them one by one await addMultiRow(ids).then( (response) => { if (response.success) { showSavedSettingsNotice(response.message); } else { showSavedSettingsNotice(response.message, 'error'); } } ); await fetchCountryData(field.action, filter); setRowsSelected([]); } else { await addRow(code, name).then((result) => { showSavedSettingsNotice(result.message); if (result.success) { fetchCountryData(field.action, filter); } }); } }, [addRow, filter, localData, enabled]); const allowRegionByCode = useCallback(async (code, regionName = '') => { if (Array.isArray(code)) { const ids = code.map(item => ({ iso2_code: item.iso2_code, country_name: item.country_name })); await removeRegionMulti(ids).then( (response) => { if (response.success) { showSavedSettingsNotice(response.message); if (response.success) { fetchCountryData(field.action, filter); } } else { showSavedSettingsNotice(response.message, 'error'); } } ); setRowsSelected([]); } else { await removeRegion(code).then((result) => { showSavedSettingsNotice(result.message); if (result.success) { fetchCountryData(field.action, filter); } }); } }, [removeRegion, filter]); const blockRegionByCode = useCallback(async (code, region = '') => { if (Array.isArray(code)) { const ids = code.map(item => ({ iso2_code: item.iso2_code, country_name: item.country_name })); await addRegionsMulti(ids).then( (response) => { if (response.success) { showSavedSettingsNotice(response.message); } else { showSavedSettingsNotice(response.message, 'error'); } } ); await fetchCountryData(field.action, filter); setRowsSelected([]); } else { await addRegion(code).then((result) => { if (result.success) { showSavedSettingsNotice(result.message); } else { showSavedSettingsNotice(result.message, 'error'); } }); await fetchCountryData(field.action, filter); } }, [addRegion, filter]); const allowCountryByCode = useCallback(async (code) => { if (Array.isArray(code)) { const ids = code.map(item => ({ country_code: item.iso2_code, country_name: item.country_name })); //we loop through the ids and allow them one by one await removeRowMulti(ids).then( (response) => { if (response.success) { showSavedSettingsNotice(response.message); } else { showSavedSettingsNotice(response.message, 'error'); } } ); setRowsSelected([]); await fetchCountryData(field.action, filter); } else { await removeRow(code).then((result) => { showSavedSettingsNotice(result.message); }); await fetchCountryData(field.action, filter); } }, [removeRow, filter]); const ActionButton = ({onClick, children, className, disabled = false}) => ( // <div className={`rsssl-action-buttons__inner`}> <button className={`button ${className} rsssl-action-buttons__button`} onClick={onClick} disabled={disabled} > {children} </button> // </div> ); const customStyles = { headCells: { style: { paddingLeft: '0', paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', paddingRight: '0', }, }, }; const generateActionButtons = useCallback((code, name, region_name, showBlockButton = true, showAllowButton = true) => { return (<div className="rsssl-action-buttons"> {filter === 'blocked' && ( <ActionButton onClick={() => allowCountryByCode(code)} className="button-secondary"> {__("Allow", "really-simple-ssl")} </ActionButton> )} {filter === 'regions' && ( <> <ActionButton onClick={() => blockRegionByCode(code, region_name)} className="button-primary" disabled={!showBlockButton} > {__("Block", "really-simple-ssl")} </ActionButton> <ActionButton onClick={() => allowRegionByCode(code, region_name)} className="button-secondary" disabled={!showAllowButton} > {__("Allow", "really-simple-ssl")} </ActionButton> </> )} {filter === 'countries' && ( <ActionButton onClick={() => blockCountryByCode(code, name)} className="button-primary"> {__("Block", "really-simple-ssl")} </ActionButton> )} </div>) }, [filter]); const generateFlag = useCallback((flag, title) => { return ( <> <Flag countryCode={flag} style={{ fontSize: '2em', }} title={title} continent={(getCurrentFilter(moduleName) === 'regions')} /> </> ) }, [filter]); useEffect(() => { const currentFilter = getCurrentFilter(moduleName); if (typeof currentFilter === 'undefined') { setFilter('regions'); setSelectedFilter('regions', moduleName); } else { setFilter(currentFilter); } setRowsSelected([]); resetRowSelection(true); resetRowSelection(false); }, [getCurrentFilter(moduleName)]); useEffect(() => { if (filter !== undefined) { const fetchData = async () => { await fetchCountryData(field.action, filter); } fetchData(); } }, [filter]); useEffect(() => { if (dataLoaded && CountryDataTable.data !== undefined) { setLocalData(CountryDataTable.data); } }, [dataLoaded]); const handleSelection = useCallback((state) => { //based on the current page and the rows per page we get the rows that are selected const {selectedCount, selectedRows, allSelected, allRowsSelected} = state; let rows = []; if (allSelected) { rows = selectedRows.slice((currentPage - 1) * rowsPerPage, currentPage * rowsPerPage); setRowsSelected(rows); } else { setRowsSelected(selectedRows); } }, [currentPage, rowsPerPage, visualData]); useEffect(() => { let FilterColumns = field.columns.map(buildColumn); // Find the index of the 'action' column const actionIndex = FilterColumns.findIndex(column => column.column === 'action'); // If 'filter' equals 'regions' and 'action' column exists, then do the rearrangement if (filter === 'regions' && actionIndex !== -1) { const actionColumn = FilterColumns[actionIndex]; // Remove 'action' column from its current place FilterColumns.splice(actionIndex, 1); const emptyColumn = { name: '', selector: '', sortable: false, omit: false, searchable: false, }; // Push 'action' column to the end of the array FilterColumns.push(emptyColumn, actionColumn); } setColumns(FilterColumns); const generatedVisualData = (localData || []) .filter((row) => { return Object.values(row).some((val) => ((val ?? '').toString().toLowerCase()).includes(searchTerm.toLowerCase())); }).map((row) => { const newRow = {...row}; columns.forEach((column) => { newRow[column.column] = row[column.column]; }); if (filter === 'regions') { let showBlockButton = (newRow.region_count - newRow.blocked_count) > 0; let showAllowButton = (newRow.blocked_count > 0); newRow.action = generateActionButtons(newRow.iso2_code, newRow.country_name, newRow.region, showBlockButton, showAllowButton); } else if (filter === 'countries') { newRow.action = generateActionButtons(newRow.iso2_code, newRow.country_name, newRow.region); } else { newRow.action = generateActionButtons(newRow.iso2_code, newRow.status, newRow.region); } newRow.flag = generateFlag(newRow.iso2_code, newRow.country_name); if (newRow.status) { newRow.status = __(newRow.status.charAt(0).toUpperCase() + newRow.status.slice(1), 'really-simple-ssl'); if ('regions' === filter) { // So i all is blocked we don't want to show the count also if all are allowed we don't want to show the count if (newRow.blocked_count === newRow.region_count || newRow.blocked_count === 0) { newRow.status = newRow.status; } else { newRow.status = newRow.status + ' (' + newRow.blocked_count + '/ ' + newRow.region_count + ')'; } } } return newRow; }); setVisualData(generatedVisualData); }, [localData, searchTerm]); useEffect(() => { if ( rowsSelected.length === 0 ) { resetRowSelection } }, [rowsSelected]); return ( <> <div className="rsssl-container"> <div> {/* reserved for left side buttons */} </div> <div className="rsssl-search-bar"> <div className="rsssl-search-bar__inner"> <div className="rsssl-search-bar__icon"></div> <input type="text" className="rsssl-search-bar__input" placeholder={__("Search", "really-simple-ssl")} onChange={e => setSearchTerm(e.target.value)} /> </div> </div> </div> {rowsSelected.length > 0 && ( <div style={{ marginTop: '1em', marginBottom: '1em', }} > <div className={"rsssl-multiselect-datatable-form rsssl-primary"}> <div> {__("You have selected %s rows", "really-simple-ssl").replace('%s', rowsSelected.length)} </div> <div className="rsssl-action-buttons"> {filter === 'countries' && ( <> <ActionButton onClick={() => blockCountryByCode(rowsSelected)} className="button-primary"> {__("Block", "really-simple-ssl")} </ActionButton> </> )} {filter === 'regions' && ( <> <ActionButton onClick={() => allowRegionByCode(rowsSelected)} className="button-secondary"> {__("Allow", "really-simple-ssl")} </ActionButton> <ActionButton onClick={() => blockRegionByCode(rowsSelected)} className="button-primary"> {__("Block", "really-simple-ssl")} </ActionButton> </> )} {filter === 'blocked' && ( <ActionButton onClick={() => allowCountryByCode(rowsSelected)}> {__("Allow", "really-simple-ssl")} </ActionButton> )} </div> </div> </div> )} {DataTable && <DataTable columns={columns} data={visualData} dense pagination={true} paginationComponentOptions={{ rowsPerPageText: __('Rows per page:', 'really-simple-ssl'), rangeSeparatorText: __('of', 'really-simple-ssl'), noRowsPerPage: false, selectAllRowsItem: false, selectAllRowsItemText: __('All', 'really-simple-ssl'), }} noDataComponent={__("No results", "really-simple-ssl")} persistTableHead selectableRows={true} paginationPerPage={rowsPerPage} onChangePage={handlePageChange} onChangeRowsPerPage={handlePerRowsChange} onSelectedRowsChange={handleSelection} clearSelectedRows={rowCleared} theme="really-simple-plugins" customStyles={customStyles} > </DataTable> } {!getFieldValue('enable_firewall') && ( <div className="rsssl-locked"> <div className="rsssl-locked-overlay"><span className="rsssl-task-status rsssl-open">{__('Disabled', 'really-simple-ssl')}</span><span>{__('Restrict access from specific countries or continents. You can also allow only specific countries.', 'really-simple-ssl')}</span> </div> </div> )} </> ) } export default GeoDatatable; src/Settings/GeoBlockList/WhiteListTableStore.js 0000777 00000016445 15252021227 0015732 0 ustar 00 /* Creates A Store For Risk Data using Zustand */ import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; const WhiteListTableStore = create((set, get) => ({ processing: false, processing_block: false, dataLoaded: false, dataLoaded_block: false, pagination: {}, dataActions: {}, WhiteListTable: [], BlockListData: [], rowCleared: false, maskError: false, ipAddress: '', note: '', fetchWhiteListData: async (action) => { //we check if the processing is already true, if so we return set({processing: true}); set({dataLoaded: false}); set({rowCleared: true}); try { const response = await rsssl_api.doAction( action ); //now we set the EventLog if (response && response.request_success) { set({WhiteListTable: response, dataLoaded: true, processing: false, pagination: response.pagination}); } set({ rowCleared: true }); } catch (e) { console.error(e); } finally { set({processing: false}); set({rowCleared: false}); } }, fetchData: async (action, filter) => { //we check if the processing is already true, if so we return set({processing_block: true}); set({rowCleared: true}); try { const response = await rsssl_api.doAction( action, { filterValue: filter } ); //now we set the EventLog if (response && response.request_success) { set({BlockListData: response, dataLoaded: true, processing: false, pagination: response.pagination}); } set({ rowCleared: true }); } catch (e) { console.error(e); } finally { set({dataLoaded_block: true}) set({processing_block: false}); set({rowCleared: false}); } }, resetRow: async (id, dataActions) => { set({processing: true}); let data = { id: id }; try { const response = await rsssl_api.doAction('geo_block_reset_ip', data); // Consider checking the response structure for any specific success or failure signals if (response && response.request_success) { // Potentially notify the user of success, if needed. return { success: true, message: response.message, response }; } else { // Handle any unsuccessful response if needed. return { success: false, message: response?.message || 'Failed to reset Ip', response }; } } catch (e) { console.error(e); // Notify the user of an error. return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); } } , updateRow: async (ip, note, status, filter) => { set({processing: true}); let data = { ip_address: ip, note: note, status: status }; try { const response = await rsssl_api.doAction('geo_block_add_white_list_ip', data); // Consider checking the response structure for any specific success or failure signals if (response && response.request_success) { await get().fetchWhiteListData('rsssl_geo_white_list'); return { success: true, message: response.message, response }; } else { // Handle any unsuccessful response if needed. return { success: false, message: response?.message || 'Failed to add Ip', response }; } } catch (e) { console.error(e); // Notify the user of an error. return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); } }, removeRow: async (country, dataActions) => { set({processing: true}); let data = { country_code: country }; try { const response = await rsssl_api.doAction('geo_block_remove_blocked_country', data); // Consider checking the response structure for any specific success or failure signals if (response && response.request_success) { await get().fetchCountryData('rsssl_geo_white_list'); await get().fetchData('rsssl_geo_block_list', {filterValue: 'all'}); // Potentially notify the user of success, if needed. return { success: true, message: response.message, response }; } else { // Handle any unsuccessful response if needed. return { success: false, message: response?.message || 'Failed to remove country', response }; } } catch (e) { console.error(e); // Notify the user of an error. return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); } }, /* * This function sets the ip address and is used by Cidr and IpAddressInput */ setIpAddress: (ipAddress) => { if(ipAddress.length === 0) { return; } let ipRegex = /^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,4}|((25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9]))|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9]))$/; if (ipAddress.includes('/')) { let finalIp = ''; // Split the input into IP and CIDR mask let [ip, mask] = ipAddress.split('/'); //if , we change it to . ip = ip.replace(/,/g, '.'); if (mask.length <= 0 ) { if (!ipRegex.test(ip)) { set({maskError: true}); } else { set({maskError: false}); } finalIp = `${ip}/${mask}`; } else { finalIp = mask ? `${ip}/${mask}` : ip; } set({ ipAddress: finalIp }) } else { if (!ipRegex.test(ipAddress)) { set({maskError: true}); } else { set({maskError: false}); } set({ ipAddress: ipAddress.replace(/,/g, '.') }) } }, setNote: (note) => { set({note}); }, resetRange: () => { set({inputRangeValidated: false}); set({highestIP: ''}); set({lowestIP: ''}); set({ipAddress: ''}); set({maskError: false}); }, setDataLoaded: (dataLoaded) => { set({dataLoaded}); set({dataLoaded_block: dataLoaded}); } })); export default WhiteListTableStore; src/Settings/GeoBlockList/TrustIpAddressModal.js 0000777 00000012667 15252021227 0015730 0 ustar 00 import {useState} from '@wordpress/element'; import Icon from "../../utils/Icon"; import { Modal, Button, TextControl } from "@wordpress/components"; import {__} from "@wordpress/i18n"; import FieldsData from "../FieldsData"; import WhiteListTableStore from "./WhiteListTableStore"; const TrustIpAddressModal = (props) => { const { note, setNote, ipAddress, setIpAddress, maskError, setDataLoaded, dataLoaded, updateRow, resetRange} = WhiteListTableStore(); const [rangeDisplay, setRangeDisplay] = useState(false); const {showSavedSettingsNotice} = FieldsData(); //we add a function to handle the range fill const handleRangeFill = () => { //we toggle the range display. setRangeDisplay(!rangeDisplay); } async function handleSubmit() { // we check if statusSelected is not empty if (ipAddress && maskError === false) { await updateRow(ipAddress, note, props.status ,props.filter).then((response) => { if (response.success) { showSavedSettingsNotice(response.message); //we fetch the data again setDataLoaded(false); } else { showSavedSettingsNotice(response.message, 'error'); } }); //we clear the input resetRange(); //we close the modal props.onRequestClose(); } } function handleCancel() { // Reset all local state setRangeDisplay(false); resetRange(); // Close the modal props.onRequestClose(); } if (!props.isOpen) { return null; } const changeHandler = (e) => { if (e.length > 0) { setIpAddress(e); } else { resetRange() } } return ( <Modal title={__("Add IP Address", "really-simple-ssl")} shouldCloseOnClickOutside={true} shouldCloseOnEsc={true} overlayClassName="rsssl-modal-overlay" className="rsssl-modal" onRequestClose={props.onRequestClose} > <div className="modal-content"> <div className="modal-body" style={{ padding: "0.5em", }} > <div style={{ width: "95%", height: "100%", padding: "10px", }} > <div style={{position: 'relative'}}> <label htmlFor={'ip-address'} className={'rsssl-label'} >{__('IP Address', 'really-simple-ssl')}</label> <TextControl id="ip-address" name="ip-address" onChange={changeHandler} value={ipAddress} /> <div className="rsssl-ip-verified"> {Boolean(!maskError && ipAddress.length > 0) ? <Icon name='circle-check' color={'green'}/> : <Icon name='circle-times' color={'red'}/> } </div> </div> <div> <label htmlFor={'note'} className={'rsssl-label'} >{__('Notes', 'really-simple-ssl')}</label> <input name={'note'} id={'note'} type={'text'} value={note} onChange={(e) => setNote(e.target.value)} style={{ width: '100%', }} /> </div> </div> </div> <div className="modal-footer"> {/*//we add two buttons here for add row and cancel*/} <div className={'rsssl-grid-item-footer'} style ={{ display: 'flex', justifyContent: 'flex-end', alignItems: 'center', padding: '1em', } } > <Button isSecondary onClick={handleCancel} style={{ marginRight: '10px' }} > {__("Cancel", "really-simple-ssl")} </Button> <Button isPrimary onClick={handleSubmit} > {__("Add", "really-simple-ssl")} </Button> </div> </div> </div> </Modal> ) } export default TrustIpAddressModal; src/Settings/GeoBlockList/AddButton.js 0000777 00000001305 15252021227 0013702 0 ustar 00 import Icon from "../../utils/Icon"; const AddButton = ({ getCurrentFilter, moduleName, handleOpen, processing, blockedText, allowedText, disabled }) => { return ( <div className="rsssl-add-button"> <div className="rsssl-add-button__inner"> <button className="button button-secondary button-datatable rsssl-add-button__button" onClick={handleOpen} disabled={disabled} > {allowedText}{processing && <Icon name = "loading" color = 'grey' />} </button> </div> </div> ); }; export default AddButton; src/Settings/GeoBlockList/WhiteListDatatable.js 0000777 00000035662 15252021227 0015551 0 ustar 00 import { useEffect, useState, useCallback } from '@wordpress/element'; import DataTable, {createTheme} from "react-data-table-component"; import FieldsData from "../FieldsData"; import WhiteListTableStore from "./WhiteListTableStore"; import Flag from "../../utils/Flag/Flag"; import {__} from '@wordpress/i18n'; import useFields from "../FieldsData"; import AddButton from "./AddButton"; import TrustIpAddressModal from "./TrustIpAddressModal"; const WhiteListDatatable = (props) => { const { WhiteListTable, fetchWhiteListData, processing, ipAddress, addRow, removeRow, pagination, addRegion, removeRegion, resetRow, rowCleared, } = WhiteListTableStore(); const {showSavedSettingsNotice, saveFields} = FieldsData(); const [rowsSelected, setRowsSelected] = useState([]); const [modalOpen, setModalOpen] = useState(false); const [tableHeight, setTableHeight] = useState(600); // Starting height const rowHeight = 50; // Height of each row. const moduleName = 'rsssl-group-filter-geo_block_list_white_listing'; const {fields, fieldAlreadyEnabled, getFieldValue} = useFields(); const [searchTerm, setSearchTerm] = useState(''); const [currentPage, setCurrentPage] = useState(1); const [rowsPerPage, setRowsPerPage] = useState(10); const [DataTable, setDataTable] = useState(null); const [theme, setTheme] = useState(null); useEffect(() => { import('react-data-table-component').then((module) => { const { default: DataTable, createTheme } = module; setDataTable(() => DataTable); setTheme(() => createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light')); }); }, []); const handlePageChange = (page) => { setCurrentPage(page); }; const handlePerRowsChange = (newRowsPerPage) => { setRowsPerPage(newRowsPerPage); }; /** * Build a column configuration object. * * @param {object} column - The column object. * @param {string} column.name - The name of the column. * @param {boolean} column.sortable - Whether the column is sortable. * @param {boolean} column.searchable - Whether the column is searchable. * @param {number} column.width - The width of the column. * @param {boolean} column.visible - Whether the column is visible. * @param {string} column.column - The column identifier. * * @returns {object} The column configuration object. */ const buildColumn = useCallback((column) => ({ //if the filter is set to region and the columns = status we do not want to show the column name: column.name, sortable: column.sortable, searchable: column.searchable, width: column.width, visible: column.visible, column: column.column, selector: row => row[column.column], }), []); let field = props.field; const columns = field.columns.map(buildColumn); const searchableColumns = columns .filter(column => column.searchable) .map(column => column.column); useEffect(() => { setRowsSelected([]); }, [WhiteListTable]); useEffect(() => { fetchWhiteListData(field.action); }, [fieldAlreadyEnabled('enable_firewall')]); let enabled = getFieldValue('enable_firewall'); useEffect(() => { return () => { saveFields(false, false) }; }, [enabled]); const customStyles = { headCells: { style: { paddingLeft: '0', paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', paddingRight: '0', }, }, }; createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light'); const handleSelection = useCallback((state) => { //based on the current page and the rows per page we get the rows that are selected const {selectedCount, selectedRows, allSelected, allRowsSelected} = state; let rows = []; if (allSelected) { rows = selectedRows.slice((currentPage - 1) * rowsPerPage, currentPage * rowsPerPage); setRowsSelected(rows); } else { setRowsSelected(selectedRows); } }, [currentPage, rowsPerPage]); const allowRegionByCode = useCallback(async (code, regionName = '') => { if (Array.isArray(code)) { const ids = code.map(item => ({ iso2_code: item.iso2_code, country_name: item.country_name })); ids.forEach((id) => { removeRegion(id.iso2_code).then((result) => { showSavedSettingsNotice(result.message); }); }); setRowsSelected([]); await fetchWhiteListData(field.action); setRowsSelected([]); } else { await removeRegion(code).then((result) => { showSavedSettingsNotice(result.message); }); } }, [removeRegion]); const allowById = useCallback((id) => { //We check if the id is an array if (Array.isArray(id)) { //We get all the iso2 codes and names from the array const ids = id.map(item => ({ id: item.id, })); //we loop through the ids and allow them one by one ids.forEach((id) => { resetRow(id.id).then((result) => { showSavedSettingsNotice(result.message); }); }); fetchWhiteListData(field.action); setRowsSelected([]); } else { resetRow(id).then((result) => { showSavedSettingsNotice(result.message); fetchWhiteListData(field.action); }); } }, [resetRow]); const blockRegionByCode = useCallback(async (code, region = '') => { if (Array.isArray(code)) { const ids = code.map(item => ({ iso2_code: item.iso2_code, country_name: item.country_name })); ids.forEach((id) => { addRegion(id.iso2_code).then((result) => { showSavedSettingsNotice(result.message); }); }); setRowsSelected([]); await fetchWhiteListData(field.action); setRowsSelected([]); } else { await addRegion(code).then((result) => { showSavedSettingsNotice(result.message); }); } }, [addRegion]); const allowCountryByCode = useCallback(async (code) => { if (Array.isArray(code)) { const ids = code.map(item => ({ iso2_code: item.iso2_code, country_name: item.country_name })); //we loop through the ids and allow them one by one ids.forEach((id) => { removeRow(id.iso2_code).then((result) => { showSavedSettingsNotice(result.message); }); }); setRowsSelected([]); await fetchWhiteListData(field.action); } else { await removeRow(code).then((result) => { showSavedSettingsNotice(result.message); }); } }, [removeRow]); const blockCountryByCode = useCallback(async (code, name) => { if (Array.isArray(code)) { //We get all the iso2 codes and names from the array const ids = code.map(item => ({ iso2_code: item.iso2_code, country_name: item.country_name })); //we loop through the ids and block them one by one ids.forEach((id) => { addRow(id.iso2_code, id.country_name).then((result) => { showSavedSettingsNotice(result.message); }); }); setRowsSelected([]); } else { await addRow(code, name).then((result) => { showSavedSettingsNotice(result.message); }); } }, [addRow]); const data = {...WhiteListTable.data}; const generateFlag = useCallback((flag, title) => ( <> <Flag countryCode={flag} style={{ fontSize: '2em', }} title={title} /> </> ), []); const ActionButton = ({ onClick, children, className }) => ( // <div className={`rsssl-action-buttons__inner`}> <button className={`button ${className} rsssl-action-buttons__button`} onClick={onClick} disabled={processing} > {children} </button> // </div> ); const handleClose = () => { setModalOpen(false); } const handleOpen = () => { setModalOpen(true); } const generateActionButtons = useCallback((id) => { return (<div className="rsssl-action-buttons"> <ActionButton onClick={() => allowById(id)} className="button-red"> {__("Reset", "really-simple-ssl")} </ActionButton> </div>) }, [moduleName, allowById, blockRegionByCode, allowRegionByCode, blockCountryByCode, allowCountryByCode]); for (const key in data) { const dataItem = {...data[key]}; dataItem.action = generateActionButtons(dataItem.id); dataItem.flag = generateFlag(dataItem.iso2_code, dataItem.country_name); dataItem.status = __(dataItem.status = dataItem.status.charAt(0).toUpperCase() + dataItem.status.slice(1), 'really-simple-ssl'); data[key] = dataItem; } let paginationSet; paginationSet = typeof pagination !== 'undefined'; useEffect(() => { if (Object.keys(data).length === 0 ) { setTableHeight(100); // Adjust depending on your UI measurements } else { setTableHeight(rowHeight * (paginationSet ? pagination.perPage + 2 : 12)); // Adjust depending on your UI measurements } }, [paginationSet, pagination?.perPage, data]); useEffect(() => { const filteredData = Object.entries(data) .filter(([_, dataItem]) => { return Object.values(dataItem).some(val => ((val ?? '').toString().toLowerCase().includes(searchTerm.toLowerCase()))); }) .map(([key, dataItem]) => { const newItem = { ...dataItem }; newItem.action = generateActionButtons(newItem.id); newItem.flag = generateFlag(newItem.iso2_code, newItem.country_name); newItem.status = __(newItem.status = newItem.status.charAt(0).toUpperCase() + newItem.status.slice(1), 'really-simple-ssl'); return [key, newItem]; }) .reduce((obj, [key, val]) => ({ ...obj, [key]: val }), {}); }, [searchTerm, data]); return ( <> <TrustIpAddressModal isOpen={modalOpen} onRequestClose={handleClose} value={ipAddress} status={'trusted'} > </TrustIpAddressModal> <div className="rsssl-container"> {/*display the add button on left side*/} <AddButton moduleName={moduleName} handleOpen={handleOpen} processing={processing} blockedText={__("Block IP Address", "really-simple-ssl")} allowedText={__("Trust IP Address", "really-simple-ssl")} /> <div className="rsssl-search-bar"> <div className="rsssl-search-bar__inner"> <div className="rsssl-search-bar__icon"></div> <input type="text" className="rsssl-search-bar__input" placeholder={__("Search", "really-simple-ssl")} onChange={e => setSearchTerm(e.target.value)} /> </div> </div> </div> {rowsSelected.length > 0 && ( <div style={{ marginTop: '1em', marginBottom: '1em', }} > <div className={"rsssl-multiselect-datatable-form rsssl-primary"}> <div> {__("You have selected %s rows", "really-simple-ssl").replace('%s', rowsSelected.length)} </div> <div className="rsssl-action-buttons"> <> <ActionButton onClick={() => allowById(rowsSelected)} className="button-red"> {__("Reset", "really-simple-ssl")} </ActionButton> </> </div> </div> </div> )} {DataTable && <DataTable columns={columns} data={Object.values(data).filter((row) => { return Object.values(row).some((val) => ((val ?? '').toString().toLowerCase()).includes(searchTerm.toLowerCase())); })} dense pagination={true} paginationComponentOptions={{ rowsPerPageText: __('Rows per page:', 'really-simple-ssl'), rangeSeparatorText: __('of', 'really-simple-ssl'), noRowsPerPage: false, selectAllRowsItem: false, selectAllRowsItemText: __('All', 'really-simple-ssl'), }} noDataComponent={__("No results", "really-simple-ssl")} persistTableHead selectableRows={true} clearSelectedRows={rowCleared} paginationPerPage={rowsPerPage} onChangePage={handlePageChange} onChangeRowsPerPage={handlePerRowsChange} onSelectedRowsChange={handleSelection} theme="really-simple-plugins" customStyles={customStyles} /> } {!enabled && ( <div className="rsssl-locked"> <div className="rsssl-locked-overlay"><span className="rsssl-task-status rsssl-open">{__('Disabled', 'really-simple-ssl')}</span><span>{__('Here you can add IP addresses that should never be blocked by region restrictions.', 'really-simple-ssl')}</span> </div> </div> )} </> ); } export default WhiteListDatatable; src/Settings/GeoBlockList/GeoDataTableStore.js 0000777 00000027266 15252021227 0015325 0 ustar 00 /* Creates A Store For Risk Data using Zustand */ import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; import {__} from "@wordpress/i18n"; import {produce} from "immer"; import React from "react"; import GeoDatatable from "./GeoDatatable"; const GeoDataTableStore = create((set, get) => ({ processing: false, dataLoaded: false, pagination: {}, dataActions: {}, CountryDataTable: [], rowCleared: false, fetchCountryData: async (action, filterValue) => { //we check if the processing is already true, if so we return set({ processing: true, rowCleared: true, dataLoaded: false }); // if the filterValue is not set, we do nothing. if (!filterValue) { set({processing: false}); return; } try { const response = await rsssl_api.doAction( action, {filterValue} ); //now we set the EventLog if (response && response.request_success) { set({ CountryDataTable: response, dataLoaded: true, processing: false }); } set({ rowCleared: true }); } catch (e) { console.error(e); } }, handleCountryTableSearch: async (search, searchColumns) => { //Add the search to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, search, searchColumns}; }) ); }, handleCountryTablePageChange: async (page, pageSize) => { //Add the page and pageSize to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, page, pageSize}; }) ); }, handleCountryTableRowsChange: async (currentRowsPerPage, currentPage) => { //Add the page and pageSize to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, currentRowsPerPage, currentPage}; }) ); }, //this handles all pagination and sorting handleCountryTableSort: async (column, sortDirection) => { //Add the column and sortDirection to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, sortColumn: column, sortDirection}; }) ); }, handleCountryTableFilter: async (column, filterValue) => { //Add the column and sortDirection to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, filterColumn: column, filterValue}; }) ); }, /* * This function add a new row to the table */ addRow: async (country, name) => { set({rowCleared: false}); let data = { country_code: country, country_name: name }; try { const response = await rsssl_api.doAction('geo_block_add_blocked_country', data); if (response && response.request_success) { set({rowCleared: true}); return { success: true, message: response.message, response }; } else { // Return a custom error message or the API response message. return { success: false, message: response?.message || 'Failed to add country', response }; } } catch (e) { console.error(e); // Return the caught error with a custom message. return { success: false, message: 'Error occurred', error: e }; } }, addMultiRow: async (countries) => { set({processing: true}); set({rowCleared: false}); let data = { country_codes: countries }; try { const response = await rsssl_api.doAction('geo_block_add_blocked_country', data); if (response && response.request_success) { set({rowCleared: true}); // Return the success message from the API response. return { success: true, message: response.message, response }; } else { set({rowCleared: true}); // Return a custom error message or the API response message. return { success: false, message: response?.message || 'Failed to add countries', response }; } } catch (e) { console.error(e); set({rowCleared: true}); // Return the caught error with a custom message. return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); set({rowCleared: true}); } }, removeRowMulti: async (countries, dataActions) => { set({processing: true}); set({rowCleared: false}); let data = { country_codes: countries }; try { const response = await rsssl_api.doAction('geo_block_remove_blocked_country', data); if (response && response.request_success) { set({rowCleared: true}); // Return the success message from the API response. return { success: true, message: response.message, response }; } else { // Return a custom error message or the API response message. return { success: false, message: response?.message || 'Failed to remove countries', response }; } } catch (e) { console.error(e); set({rowCleared: true}); // Return the caught error with a custom message. return { success: false, message: 'Error occurred', error: e }; } finally { set({rowCleared: true}); set({processing: false}); } }, removeRow: async (country) => { set({processing: true}); set({rowCleared: false}); let data = { country_code: country }; try { const response = await rsssl_api.doAction('geo_block_remove_blocked_country', data); // Consider checking the response structure for any specific success or failure signals if (response && response.request_success) { set({rowCleared: true}); // Potentially notify the user of success, if needed. return { success: true, message: response.message, response }; } else { // Handle any unsuccessful response if needed. set({rowCleared: true}); return { success: false, message: response?.message || 'Failed to remove country', response }; } } catch (e) { console.error(e); // Notify the user of an error. return { success: false, message: 'Error occurred', error: e }; } finally { set({rowCleared: true}); set({processing: false}); } }, addRegion: async (region) => { set({processing: true}); set({rowCleared: false}); let data = { region_code: region }; try { const response = await rsssl_api.doAction('geo_block_add_blocked_region', data); // Consider checking the response structure for any specific success or failure signals if (response && response.request_success) { set({rowCleared: true}); // Potentially notify the user of success, if needed. return { success: true, message: response.message, response }; } else { // Handle any unsuccessful response if needed. set({rowCleared: true}); return { success: false, message: response?.message || 'Failed to add region', response }; } } catch (e) { console.error(e); // Notify the user of an error. return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); set({rowCleared: true}); } }, addRegionsMulti: async (regions, dataActions) => { set({processing: true}); set({rowCleared: false}); let data = { region_codes: regions }; try { const response = await rsssl_api.doAction('geo_block_add_blocked_region', data); // Consider checking the response structure for any specific success or failure signals if (response && response.request_success) { set({rowCleared: true}); // Potentially notify the user of success, if needed. return { success: true, message: response.message, response }; } else { set({rowCleared: true}); // Handle any unsuccessful response if needed. return { success: false, message: response?.message || 'Failed to add regions', response }; } } catch (e) { console.error(e); // Notify the user of an error. return { success: false, message: 'Error occurred', error: e }; } finally { set({rowCleared: true}); set({processing: false}); } }, removeRegion: async (region) => { set({processing: true}); set({rowCleared: false}); let data = { region_code: region }; try { const response = await rsssl_api.doAction('geo_block_remove_blocked_region', data); // Consider checking the response structure for any specific success or failure signals if (response && response.request_success) { set({rowCleared: true}); // Potentially notify the user of success, if needed. return { success: true, message: response.message, response }; } else { // Handle any unsuccessful response if needed. set({rowCleared: true}); return { success: false, message: response?.message || 'Failed to remove region', response }; } } catch (e) { console.error(e); // Notify the user of an error. return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); set({rowCleared: true}); } }, removeRegionMulti: async (regions) => { set({processing: true}); set({rowCleared: false}); let data = { region_codes: regions }; try { const response = await rsssl_api.doAction('geo_block_remove_blocked_region', data); // Consider checking the response structure for any specific success or failure signals if (response && response.request_success) { // Potentially notify the user of success, if needed. set({rowCleared: true}); return { success: true, message: response.message, response }; } else { set({rowCleared: true}); // Handle any unsuccessful response if needed. return { success: false, message: response?.message || 'Failed to remove regions', response }; } } catch (e) { console.error(e); // Notify the user of an error. set({rowCleared: true}); return { success: false, message: 'Error occurred', error: e }; } finally { set({processing: false}); set({rowCleared: true}); } }, resetRowSelection: async (on_off) => { set({rowCleared: on_off}); } })); export default GeoDataTableStore; src/Settings/GeoBlockList/BlockListDatatable.js 0000777 00000031701 15252021227 0015511 0 ustar 00 import React, { useEffect, useState, useCallback } from '@wordpress/element'; import DataTable, {createTheme} from "react-data-table-component"; import FieldsData from "../FieldsData"; import WhiteListTableStore from "./WhiteListTableStore"; import FilterData from "../FilterData"; import Flag from "../../utils/Flag/Flag"; import {__} from '@wordpress/i18n'; import useFields from "../FieldsData"; import AddButton from "./AddButton"; import TrustIpAddressModal from "./TrustIpAddressModal"; const BlockListDatatable = (props) => { const { BlockListData, WhiteListTable, setDataLoaded, dataLoaded, dataLoaded_block, fetchData, processing_block, ipAddress, pagination, resetRow, rowCleared, } = WhiteListTableStore(); const {showSavedSettingsNotice, saveFields} = FieldsData(); const [rowsSelected, setRowsSelected] = useState([]); const [modalOpen, setModalOpen] = useState(false); const [tableHeight, setTableHeight] = useState(600); // Starting height const rowHeight = 50; // Height of each row. const moduleName = 'rsssl-group-filter-firewall_block_list_listing'; const {fields, fieldAlreadyEnabled, getFieldValue} = useFields(); const [searchTerm, setSearchTerm] = useState(''); const [currentPage, setCurrentPage] = useState(1); const [rowsPerPage, setRowsPerPage] = useState(10); const [DataTable, setDataTable] = useState(null); const [theme, setTheme] = useState(null); useEffect(() => { import('react-data-table-component').then((module) => { const { default: DataTable, createTheme } = module; setDataTable(() => DataTable); setTheme(() => createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light')); }); }, []); const handlePageChange = (page) => { setCurrentPage(page); }; const handlePerRowsChange = (newRowsPerPage) => { setRowsPerPage(newRowsPerPage); }; const { getCurrentFilter, } = FilterData(); const [filter, setFilter] = useState(getCurrentFilter(moduleName)); /** * Build a column configuration object. * * @param {object} column - The column object. * @param {string} column.name - The name of the column. * @param {boolean} column.sortable - Whether the column is sortable. * @param {boolean} column.searchable - Whether the column is searchable. * @param {number} column.width - The width of the column. * @param {boolean} column.visible - Whether the column is visible. * @param {string} column.column - The column identifier. * * @returns {object} The column configuration object. */ const buildColumn = useCallback((column) => ({ //if the filter is set to region and the columns = status we do not want to show the column name: column.name, sortable: column.sortable, searchable: column.searchable, width: column.width, visible: column.visible, column: column.column, selector: row => row[column.column], }), [filter]); let field = props.field; const columns = field.columns.map(buildColumn); const searchableColumns = columns .filter(column => column.searchable) .map(column => column.column); useEffect(() => { setRowsSelected([]); }, [BlockListData]); let enabled = getFieldValue('enable_firewall'); useEffect(() => { const currentFilter = getCurrentFilter(moduleName); if (typeof currentFilter === 'undefined') { setFilter('all'); } else { setFilter(currentFilter); } setRowsSelected([]); // resetRowSelection(true); // resetRowSelection(false); }, [getCurrentFilter(moduleName)]); useEffect(() => { return () => { saveFields(false, false) }; }, [enabled]); useEffect(() => { if (typeof filter !== 'undefined') { fetchData(field.action, filter); } }, [filter]); useEffect(() => { if(!dataLoaded_block) { fetchData(field.action, filter); } }, [dataLoaded_block]); const customStyles = { headCells: { style: { paddingLeft: '0', paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', paddingRight: '0', }, }, }; createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light'); const handleSelection = useCallback((state) => { //based on the current page and the rows per page we get the rows that are selected const {selectedCount, selectedRows, allSelected, allRowsSelected} = state; let rows = []; if (allSelected) { rows = selectedRows.slice((currentPage - 1) * rowsPerPage, currentPage * rowsPerPage); setRowsSelected(rows); } else { setRowsSelected(selectedRows); } }, [currentPage, rowsPerPage]); const allowById = useCallback((id) => { //We check if the id is an array if (Array.isArray(id)) { //We get all the iso2 codes and names from the array const ids = id.map(item => ({ id: item.id, })); //we loop through the ids and allow them one by one ids.forEach((id) => { resetRow(id.id).then((result) => { showSavedSettingsNotice(result.message); }); }); // fetchData(field.action, filter ? filter : 'all'); setRowsSelected([]); } else { resetRow(id).then((result) => { showSavedSettingsNotice(result.message); }); // fetchData(field.action, filter ? filter : 'all'); } setDataLoaded(false); }, [resetRow]); const data = {...BlockListData.data}; const generateFlag = useCallback((flag, title) => ( <> <Flag countryCode={flag} style={{ fontSize: '2em', }} title={title} /> </> ), []); const ActionButton = ({ onClick, children, className }) => ( // <div className={`rsssl-action-buttons__inner`}> <button className={`button ${className} rsssl-action-buttons__button`} onClick={onClick} disabled={processing_block} > {children} </button> // </div> ); const handleClose = () => { setModalOpen(false); } const handleOpen = () => { setModalOpen(true); } const generateActionButtons = useCallback((id) => { return (<div className="rsssl-action-buttons"> <ActionButton onClick={() => allowById(id)} className="button-red"> {__("Reset", "really-simple-ssl")} </ActionButton> </div>) }, [moduleName, allowById]); for (const key in data) { const dataItem = {...data[key]}; dataItem.action = generateActionButtons(dataItem.id); dataItem.flag = generateFlag(dataItem.iso2_code, dataItem.country_name); dataItem.status = __(dataItem.status = dataItem.status.charAt(0).toUpperCase() + dataItem.status.slice(1), 'really-simple-ssl'); data[key] = dataItem; } let paginationSet; paginationSet = typeof pagination !== 'undefined'; useEffect(() => { if (Object.keys(data).length === 0 ) { setTableHeight(100); // Adjust depending on your UI measurements } else { setTableHeight(rowHeight * (paginationSet ? pagination.perPage + 2 : 12)); // Adjust depending on your UI measurements } }, [paginationSet, pagination?.perPage, data]); useEffect(() => { let intervals = []; const filteredData = Object.entries(data) .filter(([_, dataItem]) => { return Object.values(dataItem).some(val => ((val ?? '').toString().toLowerCase().includes(searchTerm.toLowerCase()))); }) .map(([key, dataItem]) => { const newItem = { ...dataItem }; newItem.action = generateActionButtons(newItem.id); newItem.flag = generateFlag(newItem.iso2_code, newItem.country_name); newItem.status = __(newItem.status = newItem.status.charAt(0).toUpperCase() + newItem.status.slice(1), 'really-simple-ssl'); // if the newItem.time_left not is 0 we count down in seconds the value if (newItem.time_left > 0) { const interval = setInterval(() => { newItem.time_left--; }, 1000); intervals.push(interval); } return [key, newItem]; }) .reduce((obj, [key, val]) => ({ ...obj, [key]: val }), {}); }, [searchTerm, data]); return ( <> <TrustIpAddressModal isOpen={modalOpen} onRequestClose={handleClose} value={ipAddress} status={'blocked'} filter={filter? filter : 'all'} > </TrustIpAddressModal> <div className="rsssl-container"> {/*display the add button on left side*/} <AddButton moduleName={moduleName} handleOpen={handleOpen} processing={processing_block} allowedText={__("Block IP Address", "really-simple-ssl")} /> <div className="rsssl-search-bar"> <div className="rsssl-search-bar__inner"> <div className="rsssl-search-bar__icon"></div> <input type="text" className="rsssl-search-bar__input" placeholder={__("Search", "really-simple-ssl")} onChange={e => setSearchTerm(e.target.value)} /> </div> </div> </div> {rowsSelected.length > 0 && ( <div style={{ marginTop: '1em', marginBottom: '1em', }} > <div className={"rsssl-multiselect-datatable-form rsssl-primary"}> <div> {__("You have selected %s rows", "really-simple-ssl").replace('%s', rowsSelected.length)} </div> <div className="rsssl-action-buttons"> <> <ActionButton onClick={() => allowById(rowsSelected)} className="button-red"> {__("Reset", "really-simple-ssl")} </ActionButton> </> </div> </div> </div> )} {DataTable && <DataTable columns={columns} data={Object.values(data).filter((row) => { return Object.values(row).some((val) => ((val ?? '').toString().toLowerCase()).includes(searchTerm.toLowerCase())); })} dense pagination={true} paginationComponentOptions={{ rowsPerPageText: __('Rows per page:', 'really-simple-ssl'), rangeSeparatorText: __('of', 'really-simple-ssl'), noRowsPerPage: false, selectAllRowsItem: false, selectAllRowsItemText: __('All', 'really-simple-ssl'), }} noDataComponent={__("No results", "really-simple-ssl")} persistTableHead selectableRows={true} clearSelectedRows={rowCleared} paginationPerPage={rowsPerPage} onChangePage={handlePageChange} onChangeRowsPerPage={handlePerRowsChange} onSelectedRowsChange={handleSelection} theme="really-simple-plugins" customStyles={customStyles} />} {!enabled && ( <div className="rsssl-locked"> <div className="rsssl-locked-overlay"><span className="rsssl-task-status rsssl-open">{__('Disabled', 'really-simple-ssl')}</span><span>{__('Here you can add IP addresses that should never be blocked by region restrictions.', 'really-simple-ssl')}</span> </div> </div> )} </> ); } export default BlockListDatatable; src/Settings/SettingsGroup.js 0000777 00000016350 15252021227 0012320 0 ustar 00 import Hyperlink from "../utils/Hyperlink"; import getAnchor from "../utils/getAnchor"; import {__} from '@wordpress/i18n'; import * as rsssl_api from "../utils/api"; import useFields from "../Settings/FieldsData"; import useMenu from "../Menu/MenuData"; import useLicense from "./License/LicenseData"; import filterData from "./FilterData"; import {useEffect, useState} from '@wordpress/element'; import ErrorBoundary from "../utils/ErrorBoundary"; import PremiumOverlay from "./PremiumOverlay"; import GroupFilter from "./GroupFilter"; /** * Render a grouped block of settings */ const SettingsGroup = (props) => { const {fields} = useFields(); const {selectedFilter, setSelectedFilter} = filterData(); const {licenseStatus} = useLicense(); const {selectedSubMenuItem, subMenu} = useMenu(); const [Field, setField] = useState(null); const [updatedIntro, setUpdatedIntro] = useState(null); useEffect(() => { import("./Field").then(({default: Field}) => { setField(() => Field); }); if (activeGroup && activeGroup.intro && typeof activeGroup.intro === 'object') { setUpdatedIntro(activeGroup.intro[selectedFilter[filterId]]); } }, [selectedFilter]); /* * On reset of LE, send this info to the back-end, and redirect to the first step. * reload to ensure that. */ const handleLetsEncryptReset = (e) => { e.preventDefault(); rsssl_api.runLetsEncryptTest('reset').then((response) => { window.location.href = window.location.href.replace(/#letsencrypt.*/, '&r=' + (+new Date()) + '#letsencrypt/le-system-status'); }); } let selectedFields = []; //get all fields with group_id props.group_id for (const selectedField of fields) { if (selectedField.group_id === props.group) { selectedFields.push(selectedField); } } let activeGroup; for (const item of subMenu.menu_items) { if (item.id === selectedSubMenuItem && item.hasOwnProperty('groups')) { for (const group of item.groups) { if (group.group_id === props.group) { activeGroup = group; break; } } } if (activeGroup) break; // Exit the loop once a match is found. } // If activeGroup is not set, then default to the parent menu item. if (!activeGroup) { for (const item of subMenu.menu_items) { if (item.id === selectedSubMenuItem) { activeGroup = item; break; } // Handle the case where there are nested menu items. if (item.menu_items) { const nestedItem = item.menu_items.find(menuItem => menuItem.id === selectedSubMenuItem); if (nestedItem) { activeGroup = nestedItem; break; } } } } // Check for nested groups in the activeGroup. if (activeGroup && activeGroup.groups) { const nestedGroup = activeGroup.groups.find(group => group.group_id === props.group); if (nestedGroup) { activeGroup = nestedGroup; } else { const nestedGroup = activeGroup.groups.find(group => group.group_id === props.group); } } let disabled = licenseStatus !== 'valid' && activeGroup.premium; //if a feature can only be used on networkwide or single site setups, pass that info here. let networkwide_error = !rsssl_settings.networkwide_active && activeGroup.networkwide_required; let helplinkText = activeGroup.helpLink_text ? activeGroup.helpLink_text : __("Instructions", "really-simple-ssl"); let anchor = getAnchor('main'); let disabledClass = disabled || networkwide_error ? 'rsssl-disabled' : ''; const filterId = "rsssl-group-filter-" + activeGroup.id; //filter out all fields that are not visible selectedFields = selectedFields.filter((field) => { if (field.hasOwnProperty('visible')) { return field.visible; } return true; }); //if there are no visible fields, return null if (selectedFields.length === 0) { return null; } return ( <div className={"rsssl-grid-item rsssl-" + activeGroup.id + ' ' + disabledClass}> {activeGroup.title && <div className="rsssl-grid-item-header"> <h3 className="rsssl-h4">{activeGroup.title}</h3> {activeGroup.groupFilter && ( <GroupFilter groupFilter={activeGroup.groupFilter} filterId={filterId} selectedFilter={selectedFilter} setSelectedFilter={setSelectedFilter} /> )} {!activeGroup.groupFilter && activeGroup.helpLink && anchor !== 'letsencrypt' && ( <div className="rsssl-grid-item-controls"> <Hyperlink target="_blank" rel="noopener noreferrer" className="rsssl-helplink" text={helplinkText} url={activeGroup.helpLink} /> </div> )} {anchor === 'letsencrypt' && <div className="rsssl-grid-item-controls"> <a href="#" className="rsssl-helplink" onClick={(e) => handleLetsEncryptReset(e)}>{__("Reset Let's Encrypt", "really-simple-ssl")}</a> </div>} </div>} <div className="rsssl-grid-item-content"> {(activeGroup.intro && typeof activeGroup.intro === 'string') && <ErrorBoundary fallback={"Could not load group intro"}> {(activeGroup.intro && typeof activeGroup.intro === 'string') && <div className="rsssl-settings-block-intro">{activeGroup.intro}</div>} {(activeGroup.intro && typeof activeGroup.intro === 'object') && <div className="rsssl-settings-block-intro">{updatedIntro}</div>} </ErrorBoundary>} {Field && selectedFields.map((field, i) => <Field key={"selectedFields-" + i} index={i} field={field} fields={selectedFields}/> )} </div> {disabled && !networkwide_error && <PremiumOverlay msg={activeGroup.premium_text} title={activeGroup.premium_title ? activeGroup.premium_title : activeGroup.title} upgrade={activeGroup.upgrade} url={activeGroup.upgrade} />} {networkwide_error && <div className="rsssl-locked"> <div className="rsssl-locked-overlay"> <span className="rsssl-task-status rsssl-warning">{__("Network feature", "really-simple-ssl")}</span> <span>{__("This feature is only available networkwide.", "really-simple-ssl")}<Hyperlink target="_blank" rel="noopener noreferrer" text={__("Network settings", "really-simple-ssl")} url={rsssl_settings.network_link}/></span> </div> </div>} </div> ) } export default SettingsGroup src/Settings/FilterData.js 0000777 00000001116 15252021227 0011514 0 ustar 00 // FilterData.js import {create} from 'zustand'; const filterData = create((set, get) => ({ selectedFilter: [], processingFilter: false, setSelectedFilter: (selectedFilter, activeGroupId) => { set((state) => ({ //we make it an array, so we can have multiple filters selectedFilter: {...state.selectedFilter, [activeGroupId]: selectedFilter}, })); }, getCurrentFilter: (activeGroupId) => get().selectedFilter[activeGroupId], setProcessingFilter: (processingFilter) => set({processingFilter}), })); export default filterData; src/Settings/DynamicDataTable/DynamicDataTableStore.js 0000777 00000004661 15252021227 0016776 0 ustar 00 /* Creates A Store For Risk Data using Zustand */ import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; import {produce} from "immer"; import React, {useState} from "react"; const DynamicDataTableStore = create((set, get) => ({ twoFAMethods: {}, setTwoFAMethods: (methods) => set((state) => ({ ...state, twoFAMethods: methods })), processing: false, dataLoaded: false, pagination: {}, dataActions: {}, DynamicDataTable: [], fetchDynamicData: async (action) => { try { const response = await rsssl_api.doAction( action, get().dataActions ); let data = Array.isArray(response.data) ? response.data : []; let pagination = response.pagination ? response.pagination : 1; //now we set the EventLog if ( response ) { set(state => ({ ...state, DynamicDataTable: data, dataLoaded: true, processing: false, pagination: pagination, // Removed the twoFAMethods set from here... })); // Return the response for the calling function to use return response; } } catch (e) { console.log(e); } }, handleTableSearch: async (search, searchColumns) => { set(produce((state) => { state.dataActions = {...state.dataActions, search, searchColumns}; })); }, handleTablePageChange: async (page, pageSize) => { //Add the page and pageSize to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, page, pageSize}; }) ); }, handleTableRowsChange: async (currentRowsPerPage, currentPage) => { //Add the page and pageSize to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, currentRowsPerPage, currentPage}; }) ); }, //this handles all pagination and sorting handleTableSort: async (column, sortDirection) => { //Add the column and sortDirection to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, sortColumn: column, sortDirection}; }) ); }, })); export default DynamicDataTableStore; src/Settings/DynamicDataTable/SearchBar.js 0000777 00000001573 15252021227 0014464 0 ustar 00 import { useState } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; const SearchBar = ({ handleSearch, searchableColumns }) => { const [debounceTimer, setDebounceTimer] = useState(null); const onKeyUp = (event) => { clearTimeout(debounceTimer); setDebounceTimer(setTimeout(() => { handleSearch(event.target.value, searchableColumns) }, 500)); }; return ( <div className="rsssl-search-bar"> <div className="rsssl-search-bar__inner"> <div className="rsssl-search-bar__icon"></div> <input type="text" className="rsssl-search-bar__input" placeholder={__("Search", "really-simple-ssl")} onKeyUp={onKeyUp} /> </div> </div> ) } export default SearchBar; src/Settings/DynamicDataTable/DynamicDataTable.js 0000777 00000014302 15252021227 0015752 0 ustar 00 import {__} from '@wordpress/i18n'; import {useRef, useEffect, useState} from '@wordpress/element'; import DataTable, {createTheme} from "react-data-table-component"; import useFields from "../FieldsData"; import DynamicDataTableStore from "./DynamicDataTableStore"; const DynamicDataTable = (props) => { const { twoFAMethods, setTwoFAMethods, DynamicDataTable, dataLoaded, pagination, dataActions, handleTableRowsChange, fetchDynamicData, // setDynamicData, handleTableSort, handleTablePageChange, handleTableSearch, } = DynamicDataTableStore(); let field = props.field; const [enabled, setEnabled] = useState(false); const {fields, getFieldValue, saveFields} = useFields(); const twoFAEnabledRef = useRef(); useEffect(() => { twoFAEnabledRef.current = getFieldValue('login_protection_enabled'); saveFields(true, false) }, [getFieldValue('login_protection_enabled')]); useEffect(() => { const value = getFieldValue('login_protection_enabled'); setEnabled(value); }, [fields]); useEffect(() => { if (!dataLoaded || enabled !== getFieldValue('login_protection_enabled')) { fetchDynamicData(field.action) .then(response => { // Check if response.data is defined and is an array before calling reduce if(response.data && Array.isArray(response.data)) { const methods = response.data.reduce((acc, user) => ({...acc, [user.id]: user.rsssl_two_fa_status}), {}); setTwoFAMethods(methods); } else { console.error('Unexpected response:', response); } }) .catch(err => { console.error(err); // Log any errors }); } }, [dataLoaded, field.action, fetchDynamicData, getFieldValue('login_protection_enabled')]); // Add getFieldValue('login_protection_enabled') as a dependency useEffect(() => { if (dataActions) { fetchDynamicData(field.action); } }, [dataActions]); function buildColumn(column) { let newColumn = { name: column.name, column: column.column, sortable: column.sortable, searchable: column.searchable, width: column.width, visible: column.visible, selector: row => row[column.column], }; return newColumn; } let columns = []; field.columns.forEach(function (item, i) { let newItem = { ...item, key: item.column }; newItem = buildColumn(newItem); newItem.visible = newItem.visible ?? true; columns.push(newItem); }); let searchableColumns = columns .filter(column => column.searchable) .map(column => column.column); const customStyles = { headCells: { style: { paddingLeft: '0', paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', paddingRight: '0', }, }, }; createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light'); return ( <> <div className="rsssl-search-bar"> <div className="rsssl-search-bar__inner"> <div className="rsssl-search-bar__icon"></div> <input type="text" className="rsssl-search-bar__input" placeholder={__("Search", "really-simple-ssl")} onChange={event => handleTableSearch(event.target.value, searchableColumns)} /> </div> </div> {dataLoaded ? <DataTable columns={columns} data={DynamicDataTable} dense pagination paginationServer onChangeRowsPerPage={handleTableRowsChange} onChangePage={handleTablePageChange} sortServer onSort={handleTableSort} paginationRowsPerPageOptions={[10, 25, 50, 100]} noDataComponent={__("No results", "really-simple-ssl")} persistTableHead theme="really-simple-plugins" customStyles={customStyles} ></DataTable> : <div className="rsssl-spinner" style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', marginTop: "100px" }}> <div className="rsssl-spinner__inner"> <div className="rsssl-spinner__icon" style={{ border: '8px solid white', borderTop: '8px solid #f4bf3e', borderRadius: '50%', width: '120px', height: '120px', animation: 'spin 2s linear infinite' }}></div> <div className="rsssl-spinner__text" style={{ position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', }}>{__("Loading data, please stand by...", "really-simple-ssl")}</div> </div> </div> } { !enabled && <div className="rsssl-locked"> <div className="rsssl-locked-overlay"><span className="rsssl-task-status rsssl-open">{__('Disabled', 'really-simple-ssl')}</span><span>{__('Activate Two-Factor Authentication to enable this block.', 'really-simple-ssl')}</span> </div> </div> } </> ); } export default DynamicDataTable; src/Settings/DynamicDataTable/AddButton.js 0000777 00000001471 15252021227 0014513 0 ustar 00 const AddButton = ({ getCurrentFilter, moduleName, handleOpen, processing, blockedText, allowedText }) => { let buttonText = getCurrentFilter(moduleName) === 'blocked' ? blockedText : allowedText; return ( <div className="rsssl-add-button"> {(getCurrentFilter(moduleName) === 'blocked' || getCurrentFilter(moduleName) === 'allowed') && ( <div className="rsssl-add-button__inner"> <button className="button button-secondary button-datatable rsssl-add-button__button" onClick={handleOpen} disabled={processing} > {buttonText} </button> </div> )} </div> ); }; export default AddButton; src/Settings/SelectControl.js 0000777 00000006000 15252021227 0012252 0 ustar 00 import DOMPurify from "dompurify"; import {useEffect, useRef} from '@wordpress/element'; import hoverTooltip from '../utils/hoverTooltip'; const SelectControl = (props) => { const selectRef = useRef(null); const disabledPropIsArray = Array.isArray(props.disabled); let disabledOptionsArray = (disabledPropIsArray ? props.disabled : false); let disabledSelectPropBoolean = (disabledPropIsArray === false && props.disabled); let disabledSelectViaFieldConfig = (props.field.disabled === true); let selectDisabled = ( disabledSelectViaFieldConfig || disabledSelectPropBoolean ); let tooltipText = ''; let emptyValues = [undefined, null, '']; if (selectDisabled && props.field.hasOwnProperty('disabledTooltipHoverText') && !emptyValues.includes(props.field.disabledTooltipHoverText) ) { tooltipText = props.field.disabledTooltipHoverText; } hoverTooltip( selectRef, (selectDisabled && (tooltipText !== '')), tooltipText ); // Add effect to disable the select element when the selectDisabled state changes useEffect(() => { if (selectRef.current) { selectRef.current.disabled = selectDisabled; } }, [disabledSelectViaFieldConfig, selectDisabled]); return ( <> <div className="components-base-control"> <div className="components-base-control__field"> <div data-wp-component="HStack" className="components-flex components-select-control"> <label htmlFor={props.field.id} className="components-toggle-control__label" style={props.style && props.style.label ? props.style.label : undefined}>{props.label}</label> <select ref={selectRef} disabled={selectDisabled} value={props.value} onChange={(e) => props.onChangeHandler(e.target.value)} style={props.style && props.style.select ? props.style.select : undefined} > {props.options.map((option, i) => ( <option key={'option-' + i} value={option.value} disabled={disabledOptionsArray && disabledOptionsArray.includes(option.value)} > {option.label} </option> ))} </select> </div> </div> </div> {props.field.comment && ( <div className="rsssl-comment" dangerouslySetInnerHTML={{__html: DOMPurify.sanitize(props.field.comment) }} ></div> /* nosemgrep: react-dangerouslysetinnerhtml */ )} </> ); } export default SelectControl;src/Settings/Captcha/Captcha.js 0000777 00000007041 15252021227 0012406 0 ustar 00 import ReCaptcha from './ReCaptcha'; import HCaptcha from './HCaptcha'; import useFields from '../FieldsData'; import useCaptchaData from "./CaptchaData"; import {__} from '@wordpress/i18n'; import {useEffect, useState} from "@wordpress/element"; import ErrorBoundary from "../../utils/ErrorBoundary"; import Button from "../Button"; const Captcha = ({props}) => { const {getFieldValue, updateField, saveFields, getField} = useFields(); const enabled_captcha_provider = getFieldValue('enabled_captcha_provider'); const siteKey = getFieldValue(`${enabled_captcha_provider}_site_key`); const secretKey = getFieldValue(`${enabled_captcha_provider}_secret_key` ); const fully_enabled = getFieldValue('captcha_fully_enabled'); const {verifyCaptcha, setReloadCaptcha, removeRecaptchaScript} = useCaptchaData(); const [showCaptcha, setShowCaptcha] = useState(false); const [buttonEnabled, setButtonEnabled] = useState(false); const handleCaptchaResponse = (response) => { verifyCaptcha(response).then((response) => { if (response && response.success) { updateField('captcha_fully_enabled', 1); saveFields(false, false, true); } else { updateField('captcha_fully_enabled', false); saveFields(false, false); } }); }; //if we switch to another captcha provider, we need to reset the captcha useEffect(() => { saveFields(false, false); }, [enabled_captcha_provider]); useEffect(() => { if (fully_enabled) { updateField('captcha_fully_enabled', 1); saveFields(false, false); } }, [fully_enabled]); useEffect(() => { setShowCaptcha(false); //based on the provider the keys need certain length if hcapthca the length is 36 and recapthca 40 switch (enabled_captcha_provider) { case 'recaptcha': if (siteKey.length === 40 && secretKey.length === 40) { setButtonEnabled(true); } else { setButtonEnabled(false); } break; case 'hcaptcha': if (siteKey.length === 36 && secretKey.length === 35) { setButtonEnabled(true); } else { setButtonEnabled(false); } break; } }, [siteKey, secretKey, enabled_captcha_provider]); return ( <div> <ErrorBoundary title={__('Reload Captcha' , 'really-simple-ssl')}> {enabled_captcha_provider === 'recaptcha' && !fully_enabled && showCaptcha && ( <ReCaptcha handleCaptchaResponse={handleCaptchaResponse} /> )} {enabled_captcha_provider === 'hcaptcha' && !fully_enabled && showCaptcha && ( <HCaptcha sitekey={siteKey} handleCaptchaResponse={handleCaptchaResponse} captchaVerified={fully_enabled}/> )} {enabled_captcha_provider !== 'none' && !fully_enabled && ( <button disabled={!buttonEnabled} className={`button button-primary ${!buttonEnabled ? 'rsssl-learning-mode-disabled' : ''}`} // style={{display: !showCaptcha? 'none': 'block'}} onClick={() => setShowCaptcha(true)}> {__('Validate CAPTCHA', 'really-simple-ssl')} </button>) } </ErrorBoundary> </div> ); }; export default Captcha; src/Settings/Captcha/ReCaptcha.js 0000777 00000004276 15252021227 0012704 0 ustar 00 import {useEffect} from "@wordpress/element"; import useFields from '../FieldsData'; import CaptchaData from "./CaptchaData"; /** * ReCaptcha functionality. * * @param {function} handleCaptchaResponse - The callback function to handle the ReCaptcha response. * @param {boolean} captchaVerified - Boolean value indicating whether the ReCaptcha is verified or not. * @return {JSX.Element} - The ReCaptcha component JSX. */ const ReCaptcha = ({ handleCaptchaResponse , captchaVerified}) => { const recaptchaCallback = (response) => { handleCaptchaResponse(response); }; const {reloadCaptcha, removeRecaptchaScript, setReloadCaptcha} = CaptchaData(); const {getFieldValue, updateField, saveFields} = useFields(); const sitekey = getFieldValue('recaptcha_site_key'); const secret = getFieldValue('recaptcha_secret_key'); const fully_enabled = getFieldValue('captcha_fully_enabled'); useEffect(() => { const script = document.createElement('script'); script.src = `https://www.google.com/recaptcha/api.js?render=explicit&onload=initRecaptcha`; script.async = true; script.defer = true; script.onload = () => { // We restore the recaptcha script if it was not removed. let recaptchaContainer = document.getElementById('recaptchaContainer'); if (typeof window.grecaptcha !== 'undefined') { window.initRecaptcha = window.initRecaptcha || (() => { window.grecaptcha && window.grecaptcha.render(recaptchaContainer, { sitekey: sitekey, callback: recaptchaCallback, }); }); } }; document.body.appendChild(script); }, [sitekey, handleCaptchaResponse]); useEffect(() => { // Move cleanup here. if (captchaVerified) { removeRecaptchaScript(); } }, [captchaVerified]); return ( <div className="rsssl-captcha" style={{display: 'flex', flexDirection: 'column', alignItems: 'center', marginBottom: '20px'}} > <div id='recaptchaContainer'></div> </div> ); }; export default ReCaptcha; src/Settings/Captcha/HCaptcha.js 0000777 00000002470 15252021227 0012517 0 ustar 00 import {useEffect} from "@wordpress/element"; const HCaptcha = ({ sitekey, handleCaptchaResponse }) => { const hcaptchaCallback = (response) => { handleCaptchaResponse(response); }; useEffect(() => { const script = document.createElement('script'); script.src = `https://hcaptcha.com/1/api.js?onload=initHcaptcha`; script.async = true; script.defer = true; script.onload = () => { if (typeof window.hcaptcha !== 'undefined') { window.hcaptcha.render('hcaptchaContainer', { sitekey: sitekey, callback: hcaptchaCallback }); } }; document.body.appendChild(script); // Cleanup function return () => { // Check if hcaptcha is loaded before trying to remove it if (window.hcaptcha) { window.hcaptcha.reset(); } if (script) { script.remove(); } }; }, [sitekey, handleCaptchaResponse]); return ( <div className="rsssl-captcha" style={{display: 'flex', flexDirection: 'column', alignItems: 'center', marginBottom: '20px'}}> <div id='hcaptchaContainer'></div> </div> ); }; export default HCaptcha; src/Settings/Captcha/CaptchaKey.js 0000777 00000002422 15252021227 0013055 0 ustar 00 import Icon from "../../utils/Icon"; import useFields from "../FieldsData"; import {TextControl} from "@wordpress/components"; // assuming you're using WordPress components const CaptchaKey = ({ field, fields, label }) => { const { getFieldValue, setChangedField, updateField, saveFields} = useFields(); let fieldValue = getFieldValue(field.id); let captchaVerified = getFieldValue('captcha_fully_enabled'); const onChangeHandler = async (fieldValue) => { setChangedField(field.id, fieldValue); setChangedField('captcha_fully_enabled', false); updateField(field.id, fieldValue); await saveFields(false, false); } return ( <> <TextControl required={field.required} placeholder={field.placeholder} help={field.comment} label={label} onChange={(value) => onChangeHandler(value)} value={fieldValue} /> <div className="rsssl-email-verified" > {Boolean(captchaVerified) ? <Icon name='circle-check' color={'green'} /> : <Icon name='circle-times' color={'red'} /> } </div> </> ); } export default CaptchaKey; src/Settings/Captcha/CaptchaData.js 0000777 00000002725 15252021227 0013204 0 ustar 00 import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; const useCaptchaData = create(( set, get ) => ({ reloadCaptcha: false, setReloadCaptcha: ( value ) => set({ reloadCaptcha: value }), verifyCaptcha: async ( responseToken ) => { try { const response = await rsssl_api.doAction('verify_captcha', { responseToken: responseToken }); // Handle the response if ( !response ) { console.error('No response received from the server.'); return; } return response; } catch (error) { console.error('Error:', error); } }, removeRecaptchaScript: async(source = 'recaptcha') => { if (window.grecaptcha) { window.grecaptcha.reset(); delete window.grecaptcha; } const scriptTags = document.querySelectorAll('script[src^="https://www.google.com/recaptcha/api.js"]'); // For each found script tag scriptTags.forEach((scriptTag) => { scriptTag.remove(); // Remove it }); const rescriptTags = document.querySelectorAll('script[src^="https://www.google.com/recaptcha/api.js"]'); // now we check if reCaptcha was still rendered. const recaptchaContainer = document.getElementById('recaptchaContainer'); if (recaptchaContainer) { recaptchaContainer.remove(); } }, })); export default useCaptchaData; src/Settings/AutoComplete/AutoComplete.scss 0000777 00000001420 15252021227 0015034 0 ustar 00 .rsssl-modal-body, .rsssl { input.MuiInput-underline:before { display:none; } .MuiAutocomplete-root { .MuiInputLabel-outlined[data-shrink=false] { transform: translate(14px, 16px) scale(1); } .MuiFormLabel-root { font-family:inherit; } .MuiOutlinedInput-root { padding: 0; } } input.MuiAutocomplete-input[type=text] { &:focus { outline: none; box-shadow:none; } border:0; padding-left:12px; } .MuiInputBase-root { font-family: inherit; } .MuiInput-root input.MuiInputBase-input { padding-left:10px; } .MuiPopper-root, .MuiPaper-root { max-height:150px; z-index: 999999; div { font-family: inherit !important; } ul { max-height:initial; } } } src/Settings/AutoComplete/AutoCompleteControl.js 0000777 00000004226 15252021227 0016045 0 ustar 00 /* * The native selectControl doesn't allow disabling per option. */ import DOMPurify from "dompurify"; import {Autocomplete} from "@mui/material"; import TextField from '@material-ui/core/TextField'; import './AutoComplete.scss'; import { makeStyles } from "@material-ui/styles"; const useStyles = makeStyles(() => ({ autoComplete: { fontSize: "12px" } })); const AutoCompleteControl = ({field, disabled, value, options, label, onChange }) => { let selectDisabled = !Array.isArray(disabled) && disabled; const classes = useStyles(); return ( <> <Autocomplete classes={{ input: classes.autoComplete, option: classes.autoComplete }} disabled={selectDisabled} disablePortal value={ value } id={field.id} options={options} isOptionEqualToValue={(option, value) => { const optionValue = typeof option.value === "string" ? option.value.toLowerCase() : option.value; const valueValue = typeof value.value === "string" ? value.value.toLowerCase() : value.value; return optionValue === valueValue; }} getOptionLabel={(option) => { if ( option && option.label ) { return option.label; } const selectedOption = options.find( item => item.value === option ); if ( selectedOption ) { return selectedOption.label; } return option; } } onChange={(event, newValue) => { let value = newValue && newValue.value ? newValue.value : ''; onChange(value); }} renderInput={(params) => <TextField {...params} label={label} margin="normal" variant="outlined" fullWidth />} /> </> ); } export default AutoCompleteControl src/Settings/RolesDropDown.js 0000777 00000007153 15252021227 0012245 0 ustar 00 import { useState, useEffect } from '@wordpress/element'; import Select from 'react-select'; import useFields from "./FieldsData"; import useRolesData from './TwoFA/RolesStore'; import {__} from "@wordpress/i18n"; import './TwoFA/select.scss'; /** * RolesDropDown component represents a dropdown select for excluding roles * from two-factor authentication email. * @param {object} field - The field object containing information about the field. */ const RolesDropDown = ({ field }) => { const {fetchRoles, roles, rolesLoaded} = useRolesData(); const [selectedRoles, setSelectedRoles] = useState([]); const [rolesEnabled, setRolesEnabled] = useState(false); // Custom hook to manage form fields const { updateField, setChangedField, fieldsLoaded,getFieldValue } = useFields(); let enabled = true; useEffect(() => { if (!rolesLoaded) { fetchRoles(field.id); } }, [rolesLoaded]); useEffect(() => { if ( !field.value ) { setChangedField(field.id, field.default); updateField(field.id, field.default); setSelectedRoles( field.default.map((role, index) => ({ value: role, label: role.charAt(0).toUpperCase() + role.slice(1) }))); } setSelectedRoles( field.value.map((role, index) => ({ value: role, label: role.charAt(0).toUpperCase() + role.slice(1) }))); },[fieldsLoaded]); //if the field enforce_frequent_password_change is enabled, then the field is enabled useEffect(() => { setRolesEnabled(getFieldValue('enforce_frequent_password_change')); },[getFieldValue('enforce_frequent_password_change')]); /** * Handles the change event of the react-select component. * @param {array} selectedOptions - The selected options from the dropdown. */ const handleChange = (selectedOptions) => { // Extract the values of the selected options const rolesExcluded = selectedOptions.map(option => option.value); // Update the selectedRoles state setSelectedRoles(selectedOptions); // Update the field and changedField using the custom hook functions updateField(field.id, rolesExcluded); setChangedField(field.id, rolesExcluded); }; const customStyles = { multiValue: (provided) => ({ ...provided, borderRadius: '10px', backgroundColor: '#F5CD54', }), multiValueRemove: (base, state) => ({ ...base, color: state.isHovered ? 'initial' : base.color, opacity: '0.7', ':hover': { backgroundColor: 'initial', color: 'initial', opacity: '1', }, }), menuList: (provided) => ({ ...provided, height: '125px', zIndex: 999 }), }; return ( <div style={{marginTop: '5px'}}> <Select isMulti options={roles} onChange={handleChange} value={selectedRoles} menuPosition={"fixed"} styles={customStyles} isDisabled={!rolesEnabled} /> {! enabled && <div className="rsssl-locked"> <div className="rsssl-locked-overlay"><span className="rsssl-task-status rsssl-open">{__('Disabled', 'really-simple-ssl')}</span><span>{__('Activate Two-Factor Authentication to enable this block.', 'really-simple-ssl')}</span> </div> </div> } </div> ); }; export default RolesDropDown; src/Settings/firewall/UserAgentTable.js 0000777 00000023640 15252021227 0014155 0 ustar 00 import { useEffect, useState, useCallback } from '@wordpress/element'; import DataTable, { createTheme } from "react-data-table-component"; import FieldsData from "../FieldsData"; import { __ } from '@wordpress/i18n'; import useFields from "../FieldsData"; import useMenu from "../../Menu/MenuData"; import AddButton from "../GeoBlockList/AddButton"; import UserAgentModal from "./UserAgentModal"; import UserAgentStore from "./UserAgentStore"; import { in_array } from "../../utils/lib"; import FilterData from "../FilterData"; const UserAgentTable = (props) => { const { data, processing, dataLoaded, fetchData, user_agent, note, deleteValue, setDataLoaded, } = UserAgentStore(); const { selectedFilter, setSelectedFilter, activeGroupId, getCurrentFilter, setProcessingFilter, } = FilterData(); const moduleName = 'rsssl-group-filter-user_agents'; const { fields, fieldAlreadyEnabled, getFieldValue, setHighLightField, getField } = useFields(); const [modalOpen, setModalOpen] = useState(false); const [rowsSelected, setRowsSelected] = useState([]); const [rowCleared, setRowCleared] = useState(false); const [columns, setColumns] = useState([]); const [searchTerm, setSearchTerm] = useState(''); const [filteredData, setFilteredData] = useState([]); const { showSavedSettingsNotice, saveFields } = FieldsData(); const [currentPage, setCurrentPage] = useState(1); const [rowsPerPage, setRowsPerPage] = useState(10); const [filter, setFilter] = useState(getCurrentFilter(moduleName)); let enabled = getFieldValue('enable_firewall'); const IsNull = (value) => value === null; useEffect(() => { const currentFilter = getCurrentFilter(moduleName); if (typeof currentFilter === 'undefined') { setFilter('blocked'); } else { setFilter(currentFilter); } setRowsSelected([]); }, [getCurrentFilter(moduleName)]); useEffect(() => { if (filter !== undefined) { const fetchData = async () => { setDataLoaded(false); } fetchData(); setRowsSelected([]); } }, [filter]); const handlePageChange = (page) => { setCurrentPage(page); }; const handlePerRowsChange = (newRowsPerPage) => { setRowsPerPage(newRowsPerPage); }; useEffect(() => { if (props.field) { const buildColumn = (column) => ({ name: column.name, sortable: column.sortable, searchable: column.searchable, width: column.width, visible: column.visible, column: column.column, selector: row => row[column.column], }); setColumns(props.field.columns.map(buildColumn)); } }, [props.field]); useEffect(() => { const fetchUserAgentList = async () => { if (!dataLoaded && enabled ) { await fetchData('rsssl_user_agent_list', filter); } }; fetchUserAgentList(); }, [dataLoaded, enabled]); useEffect(() => { saveFields(false, false, true); setDataLoaded(false); },[enabled]); const handleClose = () => { setModalOpen(false); } const handleOpen = () => { setModalOpen(true); } const ActionButton = ({ onClick, children, className }) => ( <button className={`button ${className} rsssl-action-buttons__button`} onClick={onClick} disabled={false} > {children} </button> ); const softDelete = useCallback((id) => { if (Array.isArray(id)) { const ids = id.map(item => ({ id: item.id })); deleteValue(ids).then((result) => { showSavedSettingsNotice(result.message); setRowsSelected([]); }); } else { deleteValue(id).then((result) => { showSavedSettingsNotice(result.message); }); } }, [deleteValue, rowsSelected, showSavedSettingsNotice]); const generateActionButtons = useCallback((id, deleted) => ( <div className="rsssl-action-buttons"> <ActionButton onClick={() => softDelete(id)} className={deleted ? "button-primary" : "button-red"} > {deleted ? __("Block", "really-simple-ssl") : __("Delete", "really-simple-ssl")} </ActionButton> </div> ), [softDelete]); const customStyles = { headCells: { style: { paddingLeft: '0', paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', paddingRight: '0', }, }, }; useEffect(() => { if (data) { // Add this check to ensure data is not undefined or null const filtered = Object.entries(data) .filter(([_, dataItem]) => { return Object.values(dataItem).some(val => ((val ?? '').toString().toLowerCase().includes(searchTerm.toLowerCase()))); }) .map(([key, dataItem]) => { const newItem = { ...dataItem, action: generateActionButtons(dataItem.id, !IsNull(dataItem.deleted_at) ) }; return [key, newItem]; }) .reduce((obj, [key, val]) => ({ ...obj, [key]: val }), {}); setFilteredData(filtered); } }, [searchTerm, data, generateActionButtons]); const handleSelection = useCallback((state) => { //based on the current page and the rows per page we get the rows that are selected const {selectedCount, selectedRows, allSelected, allRowsSelected} = state; let rows = []; if (allSelected) { rows = selectedRows.slice((currentPage - 1) * rowsPerPage, currentPage * rowsPerPage); setRowsSelected(rows); } else { setRowsSelected(selectedRows); } }, [currentPage, rowsPerPage]); useEffect(() => { if (rowsSelected.length === 0) { setRowCleared(!rowCleared); } }, [rowsSelected]); return ( <> <UserAgentModal isOpen={modalOpen} onRequestClose={handleClose} value={user_agent} status={'blocked'} /> <div className="rsssl-container"> <AddButton handleOpen={handleOpen} processing={processing} allowedText={__("Block User-Agent", "really-simple-ssl")} disabled={!dataLoaded} /> <div className="rsssl-search-bar"> <div className="rsssl-search-bar__inner"> <div className="rsssl-search-bar__icon"></div> <input type="text" className="rsssl-search-bar__input" placeholder={__("Search", "really-simple-ssl")} onChange={e => setSearchTerm(e.target.value)} /> </div> </div> </div> {rowsSelected.length > 0 && ( <div style={{ marginTop: '1em', marginBottom: '1em', }} > <div className={"rsssl-multiselect-datatable-form rsssl-primary"}> <div> {__("You have selected %s rows", "really-simple-ssl").replace('%s', rowsSelected.length)} </div> <div className="rsssl-action-buttons"> <ActionButton onClick={() => softDelete(rowsSelected)} className="button-red" > {__("Delete", "really-simple-ssl")} </ActionButton> </div> </div> </div> )} <DataTable columns={columns} data={Object.values(filteredData)} pagination={true} paginationComponentOptions={{ rowsPerPageText: __('Rows per page:', 'really-simple-ssl'), rangeSeparatorText: __('of', 'really-simple-ssl'), noRowsPerPage: false, selectAllRowsItem: false, selectAllRowsItemText: __('All', 'really-simple-ssl'), }} noDataComponent={__("No results", "really-simple-ssl")} persistTableHead onSelectedRowsChange={handleSelection} clearSelectedRows={rowCleared} paginationPerPage={rowsPerPage} onChangePage={handlePageChange} onChangeRowsPerPage={handlePerRowsChange} theme="really-simple-plugins" customStyles={customStyles} selectableRows={true} /> {!getFieldValue('enable_firewall') && ( <div className="rsssl-locked"> <div className="rsssl-locked-overlay"> <span className="rsssl-task-status rsssl-open">{__('Disabled', 'really-simple-ssl')}</span> <span> {__('Restrict access from specific countries or continents. You can also allow only specific countries.', 'really-simple-ssl')} </span> </div> </div> )} </> ); }; export default UserAgentTable; src/Settings/firewall/UserAgentStore.js 0000777 00000003764 15252021227 0014227 0 ustar 00 import { create } from 'zustand'; import * as rsssl_api from "../../utils/api"; const UserAgentStore = create((set, get) => ({ processing: false, data: [], dataLoaded: false, user_agent: '', note: '', fetchData: async (action, filter) => { set({ processing: true }); set({ dataLoaded: false }); try { const response = await rsssl_api.doAction(action , { filter }); if (response.request_success) { set({ data: response.data }); if (response.data) { set({ dataLoaded: true }); } set({ processing: false }); } } catch (e) { console.error(e); set({ dataLoaded: false }); } finally { set({ processing: false }); } }, setNote: (note) => set({ note }), setUserAgent: (user_agent) => set({ user_agent }), setDataLoaded: (dataLoaded) => set({ dataLoaded }), addRow: async (user_agent, note) => { set({ processing: true }); try { const response = await rsssl_api.doAction('rsssl_user_agent_add', { user_agent, note }); if (response.request_success) { set({ dataLoaded: false }); } } catch (e) { console.error(e); } finally { set({ processing: false, dataLoaded: true }); } return { success: true, message: 'User-Agent added successfully' }; }, deleteValue: async (id) => { set({ processing: true }); try { const response = await rsssl_api.doAction('rsssl_user_agent_delete', { id }); if (response.request_success) { set({ dataLoaded: false }); return { success: true, message: response.message }; } } catch (e) { console.error(e); } finally { set({ processing: false, dataLoaded: false }); } } })); export default UserAgentStore; src/Settings/firewall/UserAgentModal.js 0000777 00000013343 15252021227 0014161 0 ustar 00 import {useState, useEffect, useRef} from '@wordpress/element'; import Icon from "../../utils/Icon"; import { Modal, Button, TextControl } from "@wordpress/components"; import {__} from "@wordpress/i18n"; import FieldsData from "../FieldsData"; import UserAgentStore from "./UserAgentStore"; const UserAgentModal = (props) => { const {note, setNote, user_agent, setUserAgent, dataLoaded, addRow, fetchData} = UserAgentStore(); const {showSavedSettingsNotice} = FieldsData(); const userAgentInputRef = useRef(null); const noteInputRef = useRef(null); async function handleSubmit() { // we check if statusSelected is not empty if (user_agent.length) { await addRow(user_agent, note).then((response) => { if (response.success) { showSavedSettingsNotice(response.message); fetchData('rsssl_user_agent_list'); } else { showSavedSettingsNotice(response.message, 'error'); } }); //we clear the input resetValues(); //we close the modal props.onRequestClose(); } } function resetValues() { setUserAgent(''); setNote(''); } function handleCancel() { resetValues(); // Close the modal props.onRequestClose(); } function handleKeyPress(event) { console.log('i pressed a key' + event.key); if (event.key === 'Enter') { handleSubmit(); } } useEffect(() => { if (userAgentInputRef.current) { userAgentInputRef.current.addEventListener('keypress', handleKeyPress); } if (noteInputRef.current) { noteInputRef.current.addEventListener('keypress', handleKeyPress); } // cleanup event listeners return () => { if (userAgentInputRef.current) { userAgentInputRef.current.removeEventListener('keypress', handleKeyPress); } if (noteInputRef.current) { noteInputRef.current.removeEventListener('keypress', handleKeyPress); } } }, []); if (!props.isOpen) { return null; } return ( <Modal title={__("Block User-Agent", "really-simple-ssl")} shouldCloseOnClickOutside={true} shouldCloseOnEsc={true} overlayClassName="rsssl-modal-overlay" className="rsssl-modal" onRequestClose={props.onRequestClose} onKeyPress={handleKeyPress} > <div className="modal-content"> <div className="modal-body" style={{ padding: "0.5em", }} > <div style={{ width: "95%", height: "100%", padding: "10px", }} > <div style={{position: 'relative'}}> <label htmlFor={'user_agent'} className={'rsssl-label'} >{__('User-Agent', 'really-simple-ssl')}</label> <input id={'user_agent'} type={'text'} value={user_agent} name={'user_agent'} onChange={(e) => setUserAgent(e.target.value)} style={{ width: '100%', }} ref={userAgentInputRef} /> </div> <div style={{marginTop: '10px'}}> <label htmlFor={'note'} className={'rsssl-label'} >{__('Notes', 'really-simple-ssl')}</label> <input name={'note'} id={'note'} type={'text'} value={note} onChange={(e) => setNote(e.target.value)} style={{ width: '100%', }} ref={noteInputRef} /> </div> </div> </div> <div className="modal-footer"> <div className={'rsssl-grid-item-footer'} style={{ display: 'flex', justifyContent: 'flex-end', alignItems: 'center', padding: '1em', }} > <Button isSecondary onClick={handleCancel} style={{marginRight: '10px'}} > {__("Cancel", "really-simple-ssl")} </Button> <Button isPrimary onClick={handleSubmit} > {__("Add", "really-simple-ssl")} </Button> </div> </div> </div> </Modal> ) } export default UserAgentModal; src/Settings/PostDropDown.js 0000777 00000005561 15252021227 0012107 0 ustar 00 /** * This file contains the PostDropdown component. * * This component displays a dropdown menu that allows the user to select a post * from a list of posts fetched from the WordPress database. The selected post * is then used to set a value in an options array stored in the WordPress * database. The component also allows the user to search for posts by typing * in a search box. */ import React, { useState, useEffect } from "react"; import { ThemeProvider } from '@mui/material/styles'; import apiFetch from '@wordpress/api-fetch'; import { __ } from '@wordpress/i18n'; import autoCompleteSharedTheme from '../utils/autoCompleteTheme'; import AutoCompleteControl from "../settings/AutoComplete/AutoCompleteControl"; import useFields from "./FieldsData"; const PostDropdown = ({ field }) => { const [posts, setPosts] = useState([]); const [selectedPost, setSelectedPost] = useState(""); const { updateField, setChangedField } = useFields(); useEffect(() => { // Fetch posts data when the component mounts apiFetch({ path: '/wp/v2/pages?per_page=100' }).then((data) => { const formattedData = data.map(post => ({ label: post.title.rendered, value: post.id })); setPosts([{ label: "404 (default)", value: "404_default" }, ...formattedData]); }); }, []); useEffect(() => { if (field.value !== "404_default") { apiFetch({ path: `wp/v2/pages/${field.value}` }) .then((data) => { if (data.title) { setSelectedPost({ label: data.title.rendered, value: field.value }); } else { setSelectedPost({ label: "404 (default)", value: "404_default" }); } }); } else { setSelectedPost({ label: "404 (default)", value: "404_default" }); } }, [field.value]); const handleChange = (newValue) => { const value = newValue ? newValue : '404_default'; updateField(field.id, value); setChangedField(field.id, value); }; return ( <ThemeProvider theme={autoCompleteSharedTheme}> <div> <label htmlFor="rsssl-filter-post-input"> {__("Redirect to this post when someone tries to access /wp-admin or /wp-login.php. The default is a 404 page.", "really-simple-ssl")} </label> <AutoCompleteControl className="rsssl-select" field={field} label={__("Search for a post.", "really-simple-ssl")} value={selectedPost} options={posts} onChange={handleChange} disabled={false} /> </div> </ThemeProvider> ); }; export default PostDropdown; src/Settings/Button.js 0000777 00000002757 15252021227 0010764 0 ustar 00 import Hyperlink from "../utils/Hyperlink"; import * as rsssl_api from "../utils/api"; import useFields from "./FieldsData"; import Icon from "../utils/Icon"; import {useState} from "@wordpress/element"; /** * Render a help notice in the sidebar */ const Button = (props) => { const {addHelpNotice} = useFields(); const [processing, setProcessing] = useState(false); const {fields} = useFields(); const onClickHandler = async (action) => { let data = {}; setProcessing(true); data.fields = fields; await rsssl_api.doAction(action, data).then((response) => { let label = response.success ? 'success' : 'warning'; let title = response.title; let text = response.message; setProcessing(false); addHelpNotice(props.field.id, label, text, title, false); }); } let is_disabled = !!props.field.disabled; return ( <> { props.field.url && <Hyperlink className={"button button-default"} disabled={is_disabled} text={props.field.button_text} url={props.field.url}/> } { props.field.action && <button onClick={ () => onClickHandler( props.field.action ) } className="button button-default" disabled={is_disabled}> {props.field.button_text} {processing && <Icon name = "loading" color = 'grey' />} </button> } </> ); } export default Button src/Settings/Support.js 0000777 00000003627 15252021227 0011162 0 ustar 00 import {TextareaControl,} from '@wordpress/components'; import {__} from '@wordpress/i18n'; import * as rsssl_api from "../utils/api"; import {useState} from "@wordpress/element"; import {addUrlRef} from "../utils/AddUrlRef"; const Support = () => { const [message, setMessage] = useState(''); const [sending, setSending] = useState(false); const onChangeHandler = (message) => { setMessage(message); } const onClickHandler = () => { setSending(true); return rsssl_api.runTest('supportData', 'refresh').then( ( response ) => { let encodedMessage = message.replace(/(?:\r\n|\r|\n)/g, '--br--'); let url = 'https://really-simple-ssl.com/support' +'?customername=' + encodeURIComponent(response.customer_name) + '&email=' + response.email + '&domain=' + response.domain + '&scanresults=' + encodeURIComponent(response.scan_results) + '&licensekey=' + encodeURIComponent(response.license_key) + '&supportrequest=' + encodeURIComponent(encodedMessage) + '&htaccesscontents=' + encodeURIComponent(response.htaccess_contents) + '&debuglog=' + encodeURIComponent(response.system_status); url = addUrlRef(url); window.location.assign(url); }); } let disabled = sending || message.length===0; return ( <> <TextareaControl disabled={sending} placeholder={__("Type your question here","really-simple-ssl")} onChange={ ( message ) => onChangeHandler(message) } /> <button className={"button button-secondary"} disabled={disabled} onClick={ ( e ) => onClickHandler(e) }> { __( 'Send', 'really-simple-ssl' ) } </button> </> ); } export default Support; src/Settings/DataTable/DataTableWrapper.js 0000777 00000016213 15252021227 0014504 0 ustar 00 import {useEffect, useState , memo } from "@wordpress/element"; import DataTable, { createTheme } from "react-data-table-component"; import DataTableStore from "../DataTable/DataTableStore"; import { __ } from '@wordpress/i18n'; import ControlButton from "../DataTable/Buttons/ControlButton"; import RowButton from "../DataTable/Buttons/RowButton"; import SearchBar from "../DataTable/SearchBar/SearchBar"; import SelectedRowsControl from "../DataTable/SelectedRowsControl/SelectedRowsControl"; import './DataTable.scss'; import './Checkboxes.scss'; import useFields from "../FieldsData"; import useMenu from "../../Menu/MenuData"; const DataTableWrapper = ({field, controlButton, enabled}) => { const { filteredData, handleSearch, dataLoaded, fetchData, reloadFields, } = DataTableStore(); const {fetchFieldsData} = useFields(); const {selectedSubMenuItem} = useMenu(); const [rowsSelected, setRowsSelected] = useState([]); const [currentPage, setCurrentPage] = useState(1); const [rowsPerPage, setRowsPerPage] = useState(10); useEffect(() => { if ( !dataLoaded) { fetchData(field.action, {}); } }, [dataLoaded] ); useEffect(() => { if ( reloadFields ) { fetchFieldsData(selectedSubMenuItem); } }, [reloadFields]); /** * Build a column configuration object. * * @param {object} column - The column object. * @param {string} column.name - The name of the column. * @param {boolean} column.sortable - Whether the column is sortable. * @param {boolean} column.searchable - Whether the column is searchable. * @param {number} column.width - The width of the column. * @param {boolean} column.visible - Whether the column is visible. * @param {string} column.column - The column identifier. * * @returns {object} The column configuration object. */ const buildColumn = ({reloadFields, name, isButton, action, label, className, sortable, searchable, width, visible, column}) => ({ reloadFields, name, isButton, action, label, className, sortable, searchable, width, visible, column, selector: row => row[column], }); const columns = field.columns.map(buildColumn); const buttonColumns = columns.filter(column => column.isButton); const hasSelectableRows = buttonColumns.length>0; const searchableColumns = columns.filter(column => column.searchable).map(column => column.column); const customgitStyles = { headCells: { style: { paddingLeft: '0', paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', paddingRight: '0', }, }, }; createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light'); const handleSelection = ({selectedCount, selectedRows}) => { // based on the current page and the rows per page we get the rows that are selected let actualRows = rowsPerPage; //in case not all selected, get the rows that are selected from the current page. //the datatable component selects 'all' rows, but we only want the rows from the current page. let rows = []; if ( selectedCount < rowsPerPage ) { rows = selectedRows; setRowsSelected(selectedRows); } else if ( selectedCount >= rowsPerPage ) { //previously all rows were selected, but now some were unselected. //in the latter case we need to get the rows that are selected from the current page. //remove the rows from all pages after the current page let diff = filteredData.length - selectedRows.length; rows = selectedRows.slice( 0, (currentPage * rowsPerPage) - diff ); if ( currentPage > 1 ) { //remove the rows from all pages before the current page from the selected rows rows = rows.slice( (currentPage - 1) * rowsPerPage); } setRowsSelected(rows); } } const data= dataLoaded && filteredData.length>0 ? {...filteredData} : []; for (const key in data) { const dataItem = {...data[key]}; //check if there exists a column with column = 'actionButton' if ( buttonColumns.length > 0 ) { for (const buttonColumn of buttonColumns) { dataItem[buttonColumn.column] = <RowButton id={dataItem.id} buttonData={buttonColumn}/> } } data[key] = dataItem; } let selectAllRowsClass = ""; if ( rowsSelected.length>0 && rowsSelected.length < rowsPerPage) { selectAllRowsClass = "rsssl-indeterminate"; } if ( rowsSelected.length === rowsPerPage ) { selectAllRowsClass = "rsssl-all-selected"; } return ( <div className={"rsssl-datatable-component"}> <div className="rsssl-container"> {controlButton.show && <ControlButton controlButton={controlButton}/> } {/*Ensure that positioning also works without the addButton, by adding a div */} { !controlButton.show && <div></div>} <SearchBar handleSearch={handleSearch} searchableColumns={searchableColumns} /> </div> { field.multiselect_buttons && rowsSelected.length > 0 && ( <SelectedRowsControl rowsSelected={rowsSelected} buttonData = {field.multiselect_buttons} /> )} <DataTable className={ selectAllRowsClass } columns={columns} data={Object.values(data)} dense pagination={true} paginationComponentOptions={{ rowsPerPageText: __('Rows per page:', 'really-simple-ssl'), rangeSeparatorText: __('of', 'really-simple-ssl'), noRowsPerPage: false, selectAllRowsItem: false, selectAllRowsItemText: __('All', 'really-simple-ssl'), }} noDataComponent={__("No results", "really-simple-ssl")} persistTableHead selectableRows={hasSelectableRows} //clearSelectedRows={() => setRowsSelected([])} paginationPerPage={rowsPerPage} onChangePage={setCurrentPage} onChangeRowsPerPage={setRowsPerPage} onSelectedRowsChange={handleSelection} theme="really-simple-plugins" // customStyles={customStyles} /> {!enabled && ( <div className="rsssl-locked"> <div className="rsssl-locked-overlay"> <span className="rsssl-task-status rsssl-open">{__('Disabled', 'really-simple-ssl')}</span> <span>{__('Here you can add IP addresses that should never be blocked by region restrictions.', 'really-simple-ssl')}</span> </div> </div> )} </div> ); } export default memo(DataTableWrapper); src/Settings/DataTable/Checkboxes.scss 0000777 00000001432 15252021227 0013734 0 ustar 00 //style for checkbox when some rows are selected .rsssl-indeterminate { input[name="select-all-rows"] { background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="10" y="45" width="80" height="10" fill="currentColor"/></svg>') no-repeat center center; } } //style for checkbox when all rows are selected .rsssl-all-selected { input[name="select-all-rows"]::before { content: url(data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%233582c4%27%2F%3E%3C%2Fsvg%3E); margin: -0.1875rem 0 0 -0.25rem; height: 1.3125rem; width: 1.3125rem; } } src/Settings/DataTable/Buttons/Buttons.scss 0000777 00000001000 15252021227 0014741 0 ustar 00 .rsssl-datatable-component { .rsssl-action-buttons__inner { .rsssl-action-buttons__button { &.rsssl-red { border: 0 solid transparent; background: var(--rsp-red); color: var(--rsp-text-color-white); &:hover { background: var(--rsp-dark-red); color: var(--rsp-text-color-white); } } } } .rsssl-add-button__button, .rsssl-action-buttons__button { //display: flex; .rsssl-icon { margin-right: 10px; } } }src/Settings/DataTable/Buttons/ControlButton.js 0000777 00000001414 15252021227 0015571 0 ustar 00 import DataTableStore from "../DataTableStore"; import './Buttons.scss' import Icon from "../../../utils/Icon"; const ControlButton = ({ controlButton }) => { const { processing, } = DataTableStore(); return ( <div className="rsssl-add-button"> <div className="rsssl-add-button__inner"> <button className="button button-secondary button-datatable rsssl-add-button__button" onClick={controlButton.onClick} disabled={processing} > {processing && <Icon name = "loading" color = 'grey' />} {controlButton.label} </button> </div> </div> ); }; export default ControlButton; src/Settings/DataTable/Buttons/MultiSelectButton.js 0000777 00000001461 15252021227 0016405 0 ustar 00 import DataTableStore from "../DataTableStore"; import './Buttons.scss' import Icon from "../../../utils/Icon"; import {memo} from "@wordpress/element"; const MultiSelectButton = ({ids, buttonData}) => { const { processing, rowAction, } = DataTableStore(); return ( <div className={`rsssl-action-buttons__inner`}> <button className={`button ${buttonData.className} rsssl-action-buttons__button`} onClick={(e) => rowAction(ids, buttonData.action, buttonData.type, buttonData.reloadFields) } disabled={processing} > {processing && <Icon name = "loading" color = 'grey' />} {buttonData.label} </button> </div> ); }; export default memo(MultiSelectButton) src/Settings/DataTable/Buttons/RowButton.js 0000777 00000001330 15252021227 0014715 0 ustar 00 import DataTableStore from "../DataTableStore"; import './Buttons.scss' import Icon from "../../../utils/Icon"; import {memo} from "@wordpress/element"; const RowButton = ({id, buttonData}) => { const { processing, rowAction, } = DataTableStore(); return ( <div className={`rsssl-action-buttons__inner`}> <button className={`button ${buttonData.className} rsssl-action-buttons__button`} onClick={(e) => rowAction([id], buttonData.action, buttonData.type, buttonData.reloadFields) } disabled={processing} > {buttonData.label} </button> </div> ); }; export default memo(RowButton); src/Settings/DataTable/SearchBar/SearchBar.js 0000777 00000001701 15252021227 0015002 0 ustar 00 import { useState } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; import './SearchBar.scss'; import {memo} from "@wordpress/element"; const SearchBar = ({ handleSearch, searchableColumns }) => { const [debounceTimer, setDebounceTimer] = useState(null); const onKeyUp = (event) => { clearTimeout(debounceTimer); setDebounceTimer(setTimeout(() => { handleSearch(event.target.value, searchableColumns) }, 500)); }; return ( <div className="rsssl-search-bar"> <div className="rsssl-search-bar__inner"> <div className="rsssl-search-bar__icon"></div> <input type="text" className="rsssl-search-bar__input" placeholder={__("Search", "really-simple-ssl")} onKeyUp={onKeyUp} /> </div> </div> ) } export default memo(SearchBar); src/Settings/DataTable/SearchBar/SearchBar.scss 0000777 00000001136 15252021227 0015343 0 ustar 00 .rsssl-search-bar { float: right; padding: 0; } .rsssl-search-bar__inner { display: flex; align-items: center; border-radius: 3px; transition: background-color 0.3s ease; } .rsssl-search-bar__inner:focus-within { background-color: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .rsssl-search-bar__icon { /* Add styles for the search icon */ } .rsssl-search-bar__input { border: none; outline: none; padding: 3px 5px; width: 150px; /* Adjust width as needed */ transition: width 0.3s ease; } .rsssl-search-bar__input:focus { width: 200px; /* Adjust width as needed */ } src/Settings/DataTable/DataTableStore.js 0000777 00000006523 15252021227 0014163 0 ustar 00 import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; import {produce} from "immer"; const DataTableStore = create((set, get) => ({ processing: false, dataLoaded: false, dataActions: {}, sourceData: [], filteredData: [], searchTerm:'', searchColumns:[], reloadFields:false, setReloadFields: (reloadFields) => set({reloadFields}), clearAllData: () => set({sourceData: [], filteredData: []}), setProcessing: (processing) => set({processing}), fetchData: async (action, dataActions) => { set({processing: true}); try { const response = await rsssl_api.doAction( action, dataActions ); if (response && response.data ) { set({filteredData:response.data, sourceData: response.data, dataLoaded: true, processing: false}); } } catch (e) { console.log(e); } finally { set({processing: false}); } }, handleSearch: (searchTerm, searchColumns) => { set({searchTerm}) set({searchColumns}) let data = get().sourceData; const filteredData = data.filter(item => searchColumns.some(column => item[column] && item[column].toLowerCase().includes(searchTerm.toLowerCase()) )); set({filteredData: filteredData}); }, /* * This function handles the filter, it is called from the GroupSetting class */ handleFilter: async (column, filterValue) => { //Add the column and sortDirection to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, filterColumn: column, filterValue}; }) ); }, restoreView: () => { //filter the data again let searchTerm = get().searchTerm; if ( searchTerm !== '' ) { let searchColumns = get().searchColumns; get().handleSearch(searchTerm, searchColumns); } }, //only removes rows from the dataset clientside, does not do an API call removeRows:(ids) => { let filteredData = get().filteredData; let sourceData = get().sourceData; let newFilteredData = filteredData.filter(item => !ids.includes(item.id)); let newSourceData = sourceData.filter(item => !ids.includes(item.id)); set({filteredData: newFilteredData, sourceData: newSourceData}); get().restoreView(); }, rowAction: async ( ids, action, actionType, reloadFields ) => { actionType = typeof actionType !== 'undefined' ? actionType : ''; set({processing: true}); if ( actionType === 'delete' ) { get().removeRows(ids); } let data = { ids: ids, }; try { const response = await rsssl_api.doAction( action, data ); if ( response.data ) { set({filteredData:response.data, sourceData: response.data, dataLoaded: true, processing: false}); get().restoreView(); if (reloadFields) { get().setReloadFields(reloadFields); } } } catch (e) { } finally { set({processing: false}); } }, })); export default DataTableStore; src/Settings/DataTable/SelectedRowsControl/SelectedRowsControl.scss 0000777 00000000505 15252021227 0021566 0 ustar 00 .rsssl-selected-rows-control { margin-top: 1em; margin-bottom: 1em; //blue container above datatable for multiselect .rsssl-multiselect-datatable-form { display: flex; align-items: center; Justify-content: space-between; width: 100%; padding: 1em 2em; background: var(--rsp-blue-faded); } } src/Settings/DataTable/SelectedRowsControl/SelectedRowsControl.js 0000777 00000003121 15252021227 0021224 0 ustar 00 import {__, _n} from "@wordpress/i18n"; import DataTableStore from "../DataTableStore"; import MultiSelectButton from "../Buttons/MultiSelectButton"; import './SelectedRowsControl.scss' import {memo} from "@wordpress/element"; import MenuItem from "../../../Menu/MenuItem"; const SelectedRowsControl = ({ rowsSelected, buttonData }) => { const { processing, filteredData, } = DataTableStore(); //ensure that all items in the rowsSelected array still exist in the filteredData array //after a delete this might not be the case let rowsSelectedFiltered = rowsSelected.filter(selectedRow => filteredData.some(filteredRow => filteredRow.id === selectedRow.id) ); if ( rowsSelectedFiltered.length === 0 ) { return null; } //parse ids from rowsSelected into array const ids = rowsSelectedFiltered.map((row) => row.id); return ( <div className="rsssl-selected-rows-control"> <div className={"rsssl-multiselect-datatable-form rsssl-primary"}> <div> {_n( "You have selected %d row", "You have selected %d rows", rowsSelectedFiltered.length, 'really-simple-ssl' ).replace('%d', rowsSelectedFiltered.length )} </div> <div className="rsssl-action-buttons"> <> { buttonData.map((buttonItem, i) => <MultiSelectButton key={"multiselectButton-"+i} ids={ids} buttonData={buttonItem} /> ) } </> </div> </div> </div> ) } export default memo(SelectedRowsControl); src/Settings/DataTable/DataTable.scss 0000777 00000002056 15252021227 0013502 0 ustar 00 .rsssl-datatable-component { margin-left: calc(0px - var(--rsp-spacing-l)); margin-right: calc(0px - var(--rsp-spacing-l)); >div { //prevent scrollbar on datatable overflow: hidden; } .rdt_TableCol, .rdt_TableCell, .rdt_TableCol_Sortable { flex-direction: row; } .rdt_TableCol:first-child, .rdt_TableCell:first-child { min-width: initial; } .rdt_TableHeadRow { .rdt_TableCol:last-child { flex-grow: 0; flex-direction: row-reverse; min-width: initial; } } .rdt_TableRow { &:nth-child(odd) { background-color: var(--rsp-grey-200) } padding: var(--rsp-spacing-xs) 0; .rdt_TableCell:last-child { flex-grow: 0; } } //wp-core also adds an svg for the select dropdown, so we hide the one from the react datatables component nav.rdt_Pagination > div > svg { display: none !important; } .rsssl-container { padding: 2em; display: flex; align-items: center; justify-content: space-between; } } src/Settings/Settings.js 0000777 00000016416 15252021227 0011306 0 ustar 00 import {useState, useEffect} from '@wordpress/element'; import SettingsPlaceholder from '../Placeholder/SettingsPlaceholder'; import {in_array} from '../utils/lib'; import SettingsGroup from './SettingsGroup'; import Help from './Help'; import useFields from './FieldsData'; import useMenu from '../Menu/MenuData'; import {__} from '@wordpress/i18n'; import useLetsEncryptData from '../LetsEncrypt/letsEncryptData'; import ErrorBoundary from "../utils/ErrorBoundary"; /** * Renders the selected settings * */ const Settings = () => { const [noticesExpanded, setNoticesExpanded] = useState(true); const { progress, fieldsLoaded, saveFields, fields, nextButtonDisabled, } = useFields(); const { subMenuLoaded, subMenu, selectedSubMenuItem, selectedMainMenuItem, nextMenuItem, previousMenuItem, } = useMenu(); const {setRefreshTests} = useLetsEncryptData(); const toggleNotices = () => { setNoticesExpanded(!noticesExpanded); }; const isTestsOnlyMenu = () => { const {menu_items: menuItems} = subMenu; for (const menuItem of menuItems) { if (menuItem.id === selectedSubMenuItem && menuItem.tests_only) { return true; } } return false; }; const saveData = async (isSaveAndContinueButton) => { if (!isSaveAndContinueButton && isTestsOnlyMenu()) { setRefreshTests(true); } else if (isSaveAndContinueButton) { await saveFields(true, false); } else { await saveFields(true, true); } }; const {menu_items: menuItems} = subMenu; if (!subMenuLoaded || !fieldsLoaded || menuItems.length === 0) { return ( <SettingsPlaceholder/> ); } let selectedFields = fields.filter( field => field.menu_id === selectedSubMenuItem); let groups = []; for (const selectedField of selectedFields) { if (!in_array(selectedField.group_id, groups)) { groups.push(selectedField.group_id); } } //convert progress notices to an array useful for the help blocks let notices = []; for (const notice of progress.notices) { let noticeIsLinkedToField = false; //notices that are linked to a field. Only in case of warnings. if (notice.show_with_options) { let noticeFields = selectedFields.filter( field => notice.show_with_options.includes(field.id)); noticeIsLinkedToField = noticeFields.length > 0; } //notices that are linked to a menu id. if (noticeIsLinkedToField || notice.menu_id === selectedSubMenuItem) { let help = {}; help.title = notice.output.title ? notice.output.title : false; help.label = notice.output.label; help.id = notice.id; help.text = notice.output.msg; help.url = notice.output.url; help.linked_field = notice.show_with_option; notices.push(help); } } //help items belonging to a field //if field is hidden, hide the notice as well for (const notice of selectedFields.filter( field => field.help && !field.conditionallyDisabled)) { let help = notice.help; //check if the notices array already includes this help item let existingNotices = notices.filter( noticeItem => noticeItem.id && noticeItem.id === help.id); if (existingNotices.length === 0) { // if (!help.id ) help['id'] = notice.id; notices.push(notice.help); } } let continueLink = nextButtonDisabled ? `#${selectedMainMenuItem}/${selectedSubMenuItem}` : `#${selectedMainMenuItem}/${nextMenuItem}`; // let btnSaveText = isTestsOnlyMenu() ? __('Refresh', 'really-simple-ssl') : // __('Save', 'really-simple-ssl'); let btnSaveText = __('Save', 'really-simple-ssl'); for (const menuItem of menuItems) { if (menuItem.id === selectedSubMenuItem && menuItem.tests_only) { btnSaveText = __('Refresh', 'really-simple-ssl'); } } return ( <> <div className="rsssl-wizard-settings"> {groups.map((group, i) => <SettingsGroup key={'settingsGroup-' + i} index={i} group={group} fields={selectedFields}/>) } <div className="rsssl-grid-item-footer-container"> <ScrollProgress/> <div className="rsssl-grid-item-footer"> <div className={'rsssl-grid-item-footer-buttons'}> {/*This will be shown only if current step is not the first one*/} {selectedSubMenuItem !== menuItems[0].id && <a className="rsssl-previous" href={`#${selectedMainMenuItem}/${previousMenuItem}`}> {__('Previous', 'really-simple-ssl')} </a> } <button className="button button-secondary" onClick={(e) => saveData(false)}> {btnSaveText} </button> {/*This will be shown only if current step is not the last one*/} {selectedSubMenuItem !== menuItems[menuItems.length - 1].id && <> <button disabled={nextButtonDisabled} className="button button-primary" onClick={(e) => {saveData(true);window.location.href=continueLink;} }> {__('Save and continue', 'really-simple-ssl')} </button> </> } </div> </div> </div> </div> <div className="rsssl-wizard-help"> <div className="rsssl-help-header"> <div className="rsssl-help-title rsssl-h4"> {__("Notifications", "really-simple-ssl")} </div> <div className="rsssl-help-control" onClick={ () => toggleNotices() }> {!noticesExpanded && __("Expand all","really-simple-ssl")} {noticesExpanded && __("Collapse all","really-simple-ssl")} </div> </div> { notices.map((field, i) => <ErrorBoundary key={'errorboundary-'+i} fallback={"Could not load notices"}> <Help noticesExpanded={noticesExpanded} index={i} help={field} fieldId={field.id}/> </ErrorBoundary> )} </div> </> ); }; export default Settings; export const ScrollProgress = () => { // calculate the scroll progress const [scrollProgress, setScrollProgress] = useState(0); useEffect(() => { window.addEventListener('scroll', () => { let scrollableHeight = document.documentElement.scrollHeight - document.documentElement.clientHeight; let scrollProgressPercentage = Math.round( (window.scrollY / scrollableHeight) * 100); // start at 5% and end at 100% scrollProgressPercentage = Math.max(5, scrollProgressPercentage); setScrollProgress(scrollProgressPercentage); }); }, []); // if you can't scroll return null if (document.documentElement.scrollHeight <= document.documentElement.clientHeight) { return null; } return ( // add width to span <span className={'rsssl-grid-item-footer-scroll-progress-container'}> <span className={'rsssl-grid-item-footer-scroll-progress'} style={{width: scrollProgress + '%'}}>{scrollProgress}%</span> </span> ); }; src/Settings/Field.js 0000777 00000047706 15252021227 0010537 0 ustar 00 import { TextControl, RadioControl, TextareaControl, __experimentalNumberControl as NumberControl } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import License from "./License/License"; import Password from "./Password"; import SelectControl from "./SelectControl"; import Host from "./Host/Host"; import Hyperlink from "../utils/Hyperlink"; import LetsEncrypt from "../LetsEncrypt/LetsEncrypt"; import Activate from "../LetsEncrypt/Activate"; import MixedContentScan from "./MixedContentScan/MixedContentScan"; import PermissionsPolicy from "./PermissionsPolicy"; import CheckboxControl from "./CheckboxControl"; import Support from "./Support"; import LearningMode from "./LearningMode/LearningMode"; import RiskComponent from "./RiskConfiguration/RiskComponent"; import VulnerabilitiesOverview from "./RiskConfiguration/vulnerabilitiesOverview"; import IpAddressDatatable from "./LimitLoginAttempts/IpAddressDatatable"; import TwoFaRolesDropDown from "./TwoFA/TwoFaRolesDropDown"; import Button from "./Button"; import Icon from "../utils/Icon"; import { useEffect, useState, useRef } from "@wordpress/element"; import useFields from "./FieldsData"; import PostDropdown from "./PostDropDown"; import NotificationTester from "./RiskConfiguration/NotificationTester"; import getAnchor from "../utils/getAnchor"; import useMenu from "../Menu/MenuData"; import UserDatatable from "./LimitLoginAttempts/UserDatatable"; import CountryDatatable from "./LimitLoginAttempts/CountryDatatable"; import BlockListDatatable from "./GeoBlockList/BlockListDatatable"; import TwoFaDataTable from "./TwoFA/TwoFaDataTable"; import EventLogDataTable from "./EventLog/EventLogDataTable"; import DOMPurify from "dompurify"; import RolesDropDown from "./RolesDropDown"; import GeoDatatable from "./GeoBlockList/GeoDatatable"; import WhiteListDatatable from "./GeoBlockList/WhiteListDatatable"; import Captcha from "./Captcha/Captcha"; import CaptchaKey from "./Captcha/CaptchaKey"; import UserAgentTable from "./firewall/UserAgentTable"; import TwoFaEnabledDropDown from "./TwoFA/TwoFaEnabledDropDown"; const Field = (props) => { const scrollAnchor = useRef(null); const { updateField, setChangedField, highLightField, setHighLightField , getFieldValue} = useFields(); const [anchor, setAnchor] = useState(null); const { selectedFilter, setSelectedFilter } = useMenu(); useEffect(() => { // Check URL for anchor and highlightfield parameters const anchor = getAnchor('anchor'); const highlightField = getAnchor('highlightfield'); setAnchor(anchor); if (highlightField) { setHighLightField(highlightField); } if (highlightField === props.field.id && scrollAnchor.current) { scrollAnchor.current.scrollIntoView({ behavior: 'smooth', block: 'start' }); } //if the field is a captcha provider, scroll to the captcha provider is a temp fix cause i can't get the scroll to work properly. if (highLightField === 'enabled_captcha_provider' && props.fields) { let captchaField = document.getElementsByClassName('rsssl-highlight')[0]; if (captchaField) { captchaField.scrollIntoView({ behavior: 'smooth', block: 'start' }); } } if (anchor && anchor === props.field.id) { scrollAnchor.current.scrollIntoView({ behavior: 'smooth', block: 'start' }); } }, []); useEffect(() => { handleAnchor(); }, [anchor]); window.addEventListener('hashchange', () => { const anchor = getAnchor('anchor'); const highlightField = getAnchor('highlightfield'); setAnchor(anchor); if (highlightField) { setHighLightField(highlightField); } if (highlightField === props.field.id && scrollAnchor.current) { scrollAnchor.current.scrollIntoView({ behavior: 'smooth', block: 'start' }); } if (anchor && anchor === props.field.id) { scrollAnchor.current.scrollIntoView({ behavior: 'smooth', block: 'start' }); } }); const handleAnchor = () => { if (anchor && anchor === props.field.id) { scrollAnchor.current.scrollIntoView({ behavior: 'smooth', block: 'start' }); } }; const onChangeHandler = (fieldValue) => { let field = props.field; if (field.pattern) { const regex = new RegExp(field.pattern, 'g'); const allowedCharactersArray = fieldValue.match(regex); fieldValue = allowedCharactersArray ? allowedCharactersArray.join('') : ''; } updateField(field.id, fieldValue); // We can configure other fields if a field is enabled, or set to a certain value. let configureFieldCondition = false; if (field.configure_on_activation) { if (field.configure_on_activation.hasOwnProperty('condition') && props.field.value == field.configure_on_activation.condition) { configureFieldCondition = true; } let configureField = field.configure_on_activation[0]; for (let fieldId in configureField) { if (configureFieldCondition && configureField.hasOwnProperty(fieldId)) { updateField(fieldId, configureField[fieldId]); } } } setChangedField(field.id, fieldValue); }; const labelWrap = (field) => { let tooltipColor = field.warning ? 'red' : 'black'; return ( <> <div className="cmplz-label-text">{field.label}</div> {field.tooltip && <Icon name="info-open" tooltip={field.tooltip} color={tooltipColor} />} </> ); }; let field = props.field; let fieldValue = field.value; let disabled = field.disabled; let highLightClass = 'rsssl-field-wrap'; if (highLightField === props.field.id) { highLightClass = 'rsssl-field-wrap rsssl-highlight'; } let options = []; if (field.options) { for (let key in field.options) { if (field.options.hasOwnProperty(key)) { let item = {}; item.label = field.options[key]; item.value = key; options.push(item); } } } // If a feature can only be used on networkwide or single site setups, pass that info here. if (!rsssl_settings.networkwide_active && field.networkwide_required) { disabled = true; field.comment = ( <> {__("This feature is only available networkwide.", "really-simple-ssl")} <Hyperlink target="_blank" rel="noopener noreferrer" text={__("Network settings", "really-simple-ssl")} url={rsssl_settings.network_link} /> </> ); } if (field.conditionallyDisabled) { disabled = true; } if (!field.visible) { return null; } if ( field.type==='checkbox' ) { return ( <div className={highLightClass} ref={scrollAnchor}> <CheckboxControl label={labelWrap(field)} field={field} disabled={disabled} onChangeHandler={ ( fieldValue ) => onChangeHandler( fieldValue ) } /> { field.comment && <div className="rsssl-comment" dangerouslySetInnerHTML={{ __html: DOMPurify.sanitize(field.comment) }} /> /* nosemgrep: react-dangerouslysetinnerhtml */ } </div> ); } if ( field.type==='hidden' ){ return ( <input type="hidden" value={field.value}/> ); } if ( field.type==='radio' ){ return ( <div className={highLightClass} ref={scrollAnchor}> <RadioControl label={labelWrap(field)} onChange={ ( fieldValue ) => onChangeHandler(fieldValue) } selected={ fieldValue } options={ options } /> </div> ); } if (field.type==='email'){ const sendVerificationEmailField = props.fields.find(field => field.id === 'send_verification_email'); const emailIsVerified = sendVerificationEmailField && (sendVerificationEmailField.disabled === false); return ( <div className={highLightClass} ref={scrollAnchor} style={{position: 'relative'}}> <TextControl required={ field.required } placeholder={ field.placeholder } disabled={ disabled } help={ field.comment } label={labelWrap(field)} onChange={ ( fieldValue ) => onChangeHandler(fieldValue) } value= { fieldValue } /> { sendVerificationEmailField && <div className="rsssl-email-verified" > {!emailIsVerified ? <Icon name='circle-check' color={'green'} /> : <Icon name='circle-times' color={'red'} />} </div> } </div> ); } if (field.type==='captcha_key') { return ( <div className={highLightClass} ref={scrollAnchor} style={{position: 'relative'}}> <CaptchaKey field={field} fields={props.fields} label={labelWrap(field)} /> </div> ) } if ( field.type==='number' ){ return ( <div className={highLightClass} ref={scrollAnchor} style={{ position: 'relative'}}> <NumberControl required={ field.required } placeholder={ field.placeholder } className="number_full" disabled={ disabled } help={ field.comment } label={labelWrap(field)} onChange={ ( fieldValue ) => onChangeHandler(fieldValue) } value= { fieldValue } /> </div> ); } if (field.type==='text' ){ return ( <div className={highLightClass} ref={scrollAnchor} style={{position: 'relative'}}> <TextControl required={ field.required } placeholder={ field.placeholder } disabled={ disabled } help={ field.comment } label={labelWrap(field)} onChange={ ( fieldValue ) => onChangeHandler(fieldValue) } value= { fieldValue } /> </div> ); } if ( field.type==='button' ){ return ( <div className={'rsssl-field-button ' + highLightClass} ref={scrollAnchor}> <label>{field.label}</label> <Button field={field}/> </div> ); } if ( field.type==='password' ){ return ( <div className={ highLightClass} ref={scrollAnchor}> <Password index={ props.index } field={ field } /> </div> ); } if ( field.type==='textarea' ) { // Handle csp_frame_ancestors_urls differently. Disable on select change let fieldDisabled = false if ( field.id === 'csp_frame_ancestors_urls') { if ( getFieldValue('csp_frame_ancestors') === 'disabled' ) { fieldDisabled = true } } else { fieldDisabled = field.disabled } return ( <div className={highLightClass} ref={scrollAnchor}> <TextareaControl label={ field.label } help={ field.comment } value= { fieldValue } onChange={ ( fieldValue ) => onChangeHandler(fieldValue) } disabled={ fieldDisabled } /> </div> ); } if ( field.type==='license' ){ let field = props.field; let fieldValue = field.value; return ( <div className={highLightClass} ref={scrollAnchor}> <License index={props.index} field={field} fieldValue={fieldValue}/> </div> ); } if ( field.type==='number' ){ return ( <div className={highLightClass} ref={scrollAnchor}> <NumberControl onChange={ ( fieldValue ) => onChangeHandler(fieldValue) } help={ field.comment } label={ field.label } value= { fieldValue } /> </div> ); } if ( field.type==='email' ){ return ( <div className={this.highLightClass} ref={this.scrollAnchor}> <TextControl help={ field.comment } label={ field.label } onChange={ ( fieldValue ) => this.onChangeHandler(fieldValue) } value= { fieldValue } /> </div> ); } if ( field.type==='host') { return ( <div className={highLightClass} ref={scrollAnchor}> <Host index={props.index} field={props.field} /> </div> ) } if ( field.type==='select') { return ( <div className={highLightClass} ref={scrollAnchor}> <SelectControl disabled={ disabled } label={labelWrap(field)} onChangeHandler={ ( fieldValue ) => onChangeHandler(fieldValue) } value= { fieldValue } options={ options } field={field} /> </div> ) } if ( field.type==='support' ) { return ( <div className={highLightClass} ref={scrollAnchor}> <Support/> </div> ) } if ( field.type==='postdropdown' ) { return ( <div className={highLightClass} ref={scrollAnchor}> <PostDropdown field={props.field}/> </div> ) } if ( field.type==='permissionspolicy' ) { return ( <div className={highLightClass} ref={scrollAnchor}> <PermissionsPolicy disabled={disabled} field={props.field} options={options}/> </div> ) } if (field.type==='captcha') { return ( <div className={highLightClass} ref={scrollAnchor}> <Captcha field={field} label={labelWrap(field)} /> </div> ) } if ( field.type==='learningmode' ) { return( <div className={highLightClass} ref={scrollAnchor}> <LearningMode disabled={disabled} field={props.field}/> </div> ) } if ( field.type==='riskcomponent' ) { return (<div className={highLightClass} ref={scrollAnchor}> <RiskComponent field={props.field}/> </div>) } if ( field.type === 'mixedcontentscan' ) { return ( <div className={highLightClass} ref={scrollAnchor}> <MixedContentScan field={props.field}/> </div> ) } if (field.type === 'vulnerabilitiestable') { return ( <div className={highLightClass} ref={scrollAnchor}> <VulnerabilitiesOverview field={props.field} /> </div> ) } if (field.type === 'two_fa_roles') { return ( <div className={highLightClass} ref={scrollAnchor}> <label htmlFor={`rsssl-two-fa-dropdown-${field.id}`}> {labelWrap(field)} </label> <TwoFaRolesDropDown field={props.field} forcedRoledId={props.field.forced_roles_id} optionalRolesId={props.field.optional_roles_id} /> </div> ); } if (field.type === 'eventlog-datatable') { return ( <div className={highLightClass} ref={scrollAnchor}> <EventLogDataTable field={props.field} action={props.field.action} /> </div> ) } if (field.type === 'twofa-datatable') { return ( <div className={highLightClass} ref={scrollAnchor}> <TwoFaDataTable field={props.field} action={props.field.action} /> </div> ) } if (field.type === 'ip-address-datatable') { return ( <div className={highLightClass} ref={scrollAnchor}> <IpAddressDatatable field={props.field} action={props.field.action} /> </div> ) } if (field.type === 'user-datatable') { return ( <div className={highLightClass} ref={scrollAnchor}> <UserDatatable field={props.field} action={props.field.action} /> </div> ) } if (field.type === 'country-datatable') { return ( <div className={highLightClass} ref={scrollAnchor}> <CountryDatatable field={props.field} action={props.field.action} /> </div> ) } if (field.type === 'geo-datatable') { return ( <div className={highLightClass} ref={scrollAnchor}> <GeoDatatable field={props.field} action={props.field.action} /> </div> ) } if (field.type === 'geo-ip-datatable') { return ( <div className={highLightClass} ref={scrollAnchor}> <WhiteListDatatable field={props.field} action={props.field.action} /> </div> ) } if (field.type === 'blocklist-datatable') { return ( <div className={highLightClass} ref={scrollAnchor}> <BlockListDatatable field={props.field} action={props.field.action} /> </div> ) } if (field.type === 'user-agents-datatable') { return ( <div className={highLightClass} ref={scrollAnchor}> <UserAgentTable field={props.field} action={props.field.action} /> </div> ) } if (field.type === 'roles_dropdown') { return ( <div className={highLightClass} ref={scrollAnchor}> <label htmlFor={`rsssl-two-fa-dropdown-${field.id}`}> {labelWrap(field)} </label> <RolesDropDown field={props.field} /> </div> ); } if (field.type === 'roles_enabled_dropdown') { return ( <div className={highLightClass} ref={scrollAnchor}> <label htmlFor={`rsssl-two-fa-dropdown-${field.id}`}> {labelWrap(field)} </label> <TwoFaEnabledDropDown field={props.field} disabled={disabled} /> </div> ); } if(field.type === 'notificationtester') { return ( <div className={'rsssl-field-button ' + highLightClass} ref={scrollAnchor}> <NotificationTester field={props.field} disabled={disabled} labelWrap={labelWrap}/> </div> ) } if ( field.type === 'letsencrypt' ) { return ( <LetsEncrypt field={field} /> ) } if ( field.type === 'activate' ) { return ( <Activate field={field}/> ) } return ( 'not found field type '+field.type ); } export default Field; src/Settings/PermissionsPolicy.js 0000777 00000017636 15252021227 0013206 0 ustar 00 import { Button, SelectControl, } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import {useState,useEffect} from '@wordpress/element'; import Icon from "../utils/Icon"; import useFields from "./FieldsData"; import React from "react"; const PermissionsPolicy = (props) => { const {fields, updateField, updateSubField, setChangedField, saveFields} = useFields(); const [enablePermissionsPolicy, setEnablePermissionsPolicy] = useState(0); const [DataTable, setDataTable] = useState(null); const [theme, setTheme] = useState(null); const [rowsSelected, setRowsSelected] = useState([]); const [rowCleared, setRowCleared] = useState(false); useEffect( () => { import('react-data-table-component').then(({ default: DataTable, createTheme }) => { setDataTable(() => DataTable); setTheme(() => createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light')); }); }, []); useEffect( () => { let field = fields.filter(field => field.id === 'enable_permissions_policy')[0]; setEnablePermissionsPolicy(field.value); }, [] ); const onChangeHandler = (value, clickedItem ) => { let field= props.field; if (typeof field.value === 'object') { updateField(field.id, Object.values(field.value)) } //the updateItemId allows us to update one specific item in a field set. updateSubField(field.id, clickedItem.id, value); setChangedField(field.id, value); saveFields(true, false); } const OnClickHandler = (selectedRows, value) => { let field= props.field; if (typeof field.value === 'object') { updateField(field.id, Object.values(field.value)) } selectedRows.forEach(row => { //the updateItemId allows us to update one specific item in a field set. updateSubField(field.id, row.id, value); setChangedField(field.id, value); }); saveFields(true, false); setRowCleared(true); setRowsSelected([]); // Reset rowCleared back to false after the DataTable has re-rendered setTimeout(() => setRowCleared(false), 0); } const togglePermissionsPolicyStatus = (e, enforce) => { e.preventDefault(); //look up permissions policy enable field //enable_permissions_policy let field = fields.filter(field => field.id === 'enable_permissions_policy')[0]; //enforce setting setEnablePermissionsPolicy(enforce); updateField(field.id, enforce); setChangedField(field.id, field.value); saveFields(true, false); } let field = props.field; let fieldValue = field.value; const buttons = [ 'button-secondary', 'button-primary', 'button-red', ]; //we add a button property to the options let options = props.options.map((option, index) => { option.button = buttons[index]; return option; }); columns = []; field.columns.forEach(function(item, i) { let newItem = { name: item.name, sortable: item.sortable, width: item.width, selector: row => row[item.column], } columns.push(newItem); }); let data = field.value; if (typeof data === 'object') { data = Object.values(data); } if (!Array.isArray(data) ) { data = []; } let disabled = false; let outputData = []; for (const item of data){ let itemCopy = {...item}; itemCopy.valueControl = <SelectControl help='' value={item.value} disabled={disabled} options={options} label='' onChange={ ( fieldValue ) => onChangeHandler( fieldValue, item, 'value' ) } /> outputData.push(itemCopy); } const customStyles = { headCells: { style: { paddingLeft: '0', // override the cell padding for head cells paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', // override the cell padding for data cells paddingRight: '0', }, }, }; function handleSelection(state) { setRowCleared(false); setRowsSelected(state.selectedRows); } if (!DataTable || !theme) return null; return ( <div> {rowsSelected.length > 0 && ( <div style={{ marginTop: '1em', marginBottom: '1em', }} > <div className={"rsssl-multiselect-datatable-form rsssl-primary"} > <div> {__("You have selected", "really-simple-ssl")} {rowsSelected.length} {__("rows", "really-simple-ssl")} </div> <div className="rsssl-action-buttons"> {options.map((option) => ( <div className="rsssl-action-buttons__inner" key={'option-'+option.value}> <Button // className={"button button-red rsssl-action-buttons__button"} className={"button " + option.button + " rsssl-action-buttons__button"} onClick={ ( fieldValue ) => OnClickHandler( rowsSelected, option.value ) } > {option.value === 'self' ? __("Reset", "really-simple-ssl") : __(option.label, "really-simple-ssl")} </Button> </div> ))} </div> </div> </div> )} <DataTable columns={columns} data={outputData} dense pagination={false} customStyles={customStyles} theme={theme} selectableRows selectableRowsHighlight={true} onSelectedRowsChange={handleSelection} clearSelectedRows={rowCleared} /> { enablePermissionsPolicy!=1 && <button className="button button-primary" onClick={ (e) => togglePermissionsPolicyStatus(e, true ) }>{__("Enforce","really-simple-ssl")}</button> } { enablePermissionsPolicy==1 && <div className="rsssl-locked"> <div className="rsssl-shield-overlay"> <Icon name = "shield" size="80px"/> </div> <div className="rsssl-locked-overlay"> <span className="rsssl-progress-status rsssl-learning-mode-enforced">{__("Enforced","really-simple-ssl")}</span> { props.disabled && <>{ __("Permissions Policy is set outside Really Simple Security.", "really-simple-ssl")} </>} { !props.disabled && <>{__("Permissions Policy is enforced.", "really-simple-ssl")} </>} { !props.disabled && <a className="rsssl-learning-mode-link" href="#" onClick={ (e) => togglePermissionsPolicyStatus(e, false) }>{__("Disable", "really-simple-ssl") }</a> } </div> </div>} { props.disabled && enablePermissionsPolicy!=1 && <div className="rsssl-locked"> <div className="rsssl-locked-overlay"> <span className="rsssl-progress-status rsssl-disabled">{__("Disabled","really-simple-ssl")}</span> {__("The Permissions Policy has been disabled.", "really-simple-ssl")} </div> </div>} </div> ) } export default PermissionsPolicy src/Settings/Password.js 0000777 00000001761 15252021227 0011305 0 ustar 00 import useFields from "./FieldsData"; const Password = (props) => { const {updateField, setChangedField} = useFields(); const onChangeHandler = (fieldValue) => { updateField( props.field.id, fieldValue ); setChangedField( props.field.id, fieldValue ); } /** * There is no "PasswordControl" in WordPress react yet, so we create our own license field. */ return ( <div className="components-base-control"> <div className="components-base-control__field"> <label className="components-base-control__label" htmlFor={props.field.id}>{props.field.label}</label> <input className="components-text-control__input" type="password" id={props.field.id} value={props.field.value} onChange={ ( e ) => onChangeHandler(e.target.value) } /> </div> </div> ); } export default Password; src/Settings/RiskConfiguration/RiskComponent.js 0000777 00000007373 15252021227 0015743 0 ustar 00 import {useEffect,useState} from '@wordpress/element'; import UseRiskData from "./RiskData"; import useFields from "../FieldsData"; import {__} from "@wordpress/i18n"; const RiskComponent = (props) => { //first we put the data in a state const {riskData, dummyRiskData, processing, dataLoaded, fetchVulnerabilities, updateRiskData} = UseRiskData(); const { fields, fieldAlreadyEnabled, getFieldValue, setChangedField, updateField, saveFields} = useFields(); const [measuresEnabled, setMeasuresEnabled] = useState(false); const [vulnerabilityDetectionEnabled, setVulnerabilityDetectionEnabled] = useState(false); const [DataTable, setDataTable] = useState(null); const [theme, setTheme] = useState(null); useEffect( () => { import('react-data-table-component').then(({ default: DataTable, createTheme }) => { setDataTable(() => DataTable); setTheme(() => createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light')); }); }, []); useEffect(() => { if ( fieldAlreadyEnabled('enable_vulnerability_scanner')) { if (!dataLoaded) { fetchVulnerabilities(); } } let vulnerabilitiesEnabled = fieldAlreadyEnabled('enable_vulnerability_scanner' ); setVulnerabilityDetectionEnabled(vulnerabilitiesEnabled); let measuresOn = getFieldValue('measures_enabled')==1; setMeasuresEnabled(measuresOn); }, [fields]); /** * Initialize */ useEffect(() => { let enabled = getFieldValue('measures_enabled')==1; setMeasuresEnabled(enabled); }, [] ); //we create the columns let columns = []; //getting the fields from the props let field = props.field; //we loop through the fields field.columns.forEach(function (item, i) { let newItem = buildColumn(item) columns.push(newItem); }); //now we get the options for the select control let options = props.field.options; //we divide the key into label and the value into value options = Object.entries(options).map((item) => { return {label: item[1], value: item[0]}; }); //and we add the select control to the data let data = Array.isArray(riskData) ? [...riskData] : []; data = data.length===0 ? [...dummyRiskData] : data; let disabled = !vulnerabilityDetectionEnabled || !measuresEnabled; for (const key in data) { let dataItem = {...data[key]} dataItem.riskSelection = <select disabled={processing || disabled} value={dataItem.value} onChange={(e) => onChangeHandler(e.target.value, dataItem)}> {options.map((option,i) => <option key={'risk-'+i} value={option.value} disabled={ dataItem.disabledRiskLevels && dataItem.disabledRiskLevels.includes(option.value)} >{option.label}</option>) } </select> data[key] = dataItem; } let processingClass = disabled ? 'rsssl-processing' : ''; return ( <div> {DataTable && <DataTable columns={columns} data={Object.values(data)} dense pagination={false} persistTableHead noDataComponent={__("No vulnerabilities found", "really-simple-ssl")} theme={theme} /> } </div> ) function buildColumn(column) { return { name: column.name, sortable: column.sortable, width: column.width, selector: row => row[column.column], grow: column.grow, }; } function onChangeHandler(fieldValue, item) { updateRiskData(item.id, fieldValue); } } export default RiskComponent; src/Settings/RiskConfiguration/datatable.scss 0000777 00000000317 15252021227 0015417 0 ustar 00 .rsssl-vulnerabilities_overview { div[data-column-id="4"].rdt_TableCol { display:block; } .rdt_TableCell:last-child { flex: auto; padding-right: 20px; margin-right: 0; } } src/Settings/RiskConfiguration/RunnerData.js 0000777 00000003216 15252021227 0015203 0 ustar 00 import {create} from "zustand"; import {produce} from "immer"; import {__} from "@wordpress/i18n"; const useRunnerData = create((set, get) => ({ showIntro:false, setShowIntro: (value) => set({showIntro: value}), disabled:true, introCompleted: false, //for storing the status of the first run setIntroCompleted: (value) => { set({introCompleted: value}); }, setDisabled(disabled) { set(state => ({disabled})) }, list:[ { 'id':'initialize', 'icon':'loading', 'color':'black', 'text': __("Preparing vulnerability detection", "really-simple-ssl"), }, { 'id':'fetchVulnerabilities', 'icon':'loading', 'color':'black', 'text': __("Collecting plugin, theme and core data", "really-simple-ssl"), }, { 'id':'scan', 'icon':'loading', 'color':'black', 'text': __("Scanning your WordPress configuration", "really-simple-ssl"), }, { 'id':'enabled', 'icon':'loading', 'color':'black', 'text': __("Reporting enabled", "really-simple-ssl"), }, ], setItemCompleted: async (id) => { const stepIndex = get().list.findIndex(item => { return item.id===id; }); set( produce((state) => { const item = state.list[stepIndex]; item.icon = 'circle-check'; item.color = 'green'; state.list[stepIndex] = item; }) ) }, })); export default useRunnerData; src/Settings/RiskConfiguration/RiskData.js 0000777 00000017613 15252021227 0014650 0 ustar 00 /* Creates A Store For Risk Data using Zustand */ import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; import {__} from "@wordpress/i18n"; import {produce} from "immer"; import React from "react"; import {addUrlRef} from "../../utils/AddUrlRef"; const UseRiskData = create((set, get) => ({ dummyRiskData: [ {id:'force_update',name:'Force Update',value:'l',description:__('Force update the plugin or theme','really-simple-ssl')}, {id:'quarantine',name:'Quarantine',value:'m',description:__('Isolates the plugin or theme if no update can be performed','really-simple-ssl')}, ], riskData:[], riskLevels: { l: 1, m: 2, h: 3, c: 4, }, vulnerabilities: [], processing:false, dataLoaded: false, // Stuff we need for the WPVulData component updates: 0, //for letting the component know if there are updates available HighestRisk: false, //for storing the highest risk lastChecked: '', //for storing the last time the data was checked vulEnabled: false, //for storing the status of the vulnerability scan riskNaming: {}, //for storing the risk naming vulList: [], //for storing the list of vulnerabilities setDataLoaded: (value) => set({dataLoaded: value}), //update Risk Data updateRiskData: async (field, value) => { if (get().processing) return; set({processing:true}); set( produce((state) => { let index = state.riskData.findIndex((item) => item.id === field); state.riskData[index].value = value; state.riskData = get().enforceCascadingRiskLevels(state.riskData); }) ); try { await rsssl_api.doAction('vulnerabilities_measures_set', { riskData: get().riskData, }); set({dataLoaded: true, processing:false}); } catch (e) { console.log(e); } set({processing:false}) }, enforceCascadingRiskLevels: (data) => { if (data.length===0) return data; //get risk levels for force_update let forceUpdateRiskLevel = data.filter((item) => item.id==='force_update')[0].value; let quarantineRiskLevel = data.filter((item) => item.id==='quarantine')[0].value; //get the integer value of the risk level forceUpdateRiskLevel = get().riskLevels.hasOwnProperty(forceUpdateRiskLevel) ? get().riskLevels[forceUpdateRiskLevel] : 5; quarantineRiskLevel = get().riskLevels.hasOwnProperty(quarantineRiskLevel) ? get().riskLevels[quarantineRiskLevel] : 5; let quarantineIndex = data.findIndex((item) => item.id==='quarantine'); //if the quarantine risk level is lower than the force update risk level, we set it to the force update risk level if (quarantineRiskLevel<forceUpdateRiskLevel) { data[quarantineIndex].value = Object.keys(get().riskLevels).find(key => get().riskLevels[key] === forceUpdateRiskLevel); } //if the force update risk level is none, set quarantine also to none. if ( forceUpdateRiskLevel===5 ) { data[quarantineIndex].value = '*'; } //disable all values below this value let disableUpTo = forceUpdateRiskLevel>0 ? forceUpdateRiskLevel : 0 //create an array of integers up to the forceUpdateRiskLevel let disabledRiskLevels = Array.from(Array(disableUpTo).keys()).map(x => x); disabledRiskLevels = disabledRiskLevels.map( (level) => { return Object.keys(get().riskLevels).find(key => get().riskLevels[key] === level ); }); data[quarantineIndex].disabledRiskLevels = disabledRiskLevels; return data; }, fetchFirstRun: async () => { if (get().processing) return; set({processing:true}); await rsssl_api.doAction('vulnerabilities_scan_files'); set({processing:false}); }, /* * Functions */ fetchVulnerabilities: async () => { if (get().processing) return; set({processing:true}); let data = {}; try { const fetched = await rsssl_api.doAction('hardening_data', data); let vulList = []; let vulnerabilities = 0; if (fetched.data.vulList) { vulnerabilities = fetched.data.vulnerabilities; vulList = fetched.data.vulList; if (typeof vulList === 'object') { //we make it an array vulList = Object.values(vulList); } vulList.forEach(function (item, i) { let updateUrl = item.update_available ? rsssl_settings.plugins_url + "?plugin_status=upgrade" : '#settings/vulnerabilities'; item.vulnerability_action = <div className="rsssl-action-buttons"> <a className="rsssl-button button-secondary" href={addUrlRef("https://really-simple-ssl.com/vulnerability/" + item.rss_identifier)} target={"_blank"} rel="noopener noreferrer">{__("Details", "really-simple-ssl")}</a> <a disabled={!item.update_available} href={updateUrl} className="rsssl-button button-primary" >{__("Update", "really-simple-ssl")}</a> </div> }); } let riskData = fetched.data.riskData; if (!Array.isArray(riskData)) {riskData = []} riskData = get().enforceCascadingRiskLevels(riskData); set( produce((state) => { state.vulnerabilities = vulnerabilities; state.vulList = vulList; state.updates = fetched.data.updates; state.dataLoaded = true; state.riskNaming = fetched.data.riskNaming; state.lastChecked = fetched.data.lastChecked; state.vulEnabled = fetched.data.vulEnabled; state.riskData = riskData; state.processing = false; }) ) } catch (e) { console.error(e); } }, vulnerabilityCount: () => { let vuls = get().vulList; //we group the data by risk level //first we make vuls an array let vulsArray = []; Object.keys(vuls).forEach(function (key) { vulsArray.push(vuls[key]); }); let riskLevels = ['c', 'h', 'm', 'l']; //we count the amount of vulnerabilities per risk level return riskLevels.map(function (level) { return { level: level, count: vulsArray.filter(function (vul) { return vul.risk_level === level; }).length }; }); }, vulnerabilityScore: () => { let score = 0; let vulnerabilitiesList = get().vulList; Object.keys(vulnerabilitiesList).forEach(function (key) { //if there are vulnerabilities with critical severity, score is 5 if (vulnerabilitiesList[key].risk_level === 'c') { score = 5; } else if (score < 1) { score = 1; } }); return score; }, hardeningScore: () => { let score = 0; let vulnerabilitiesList = get().vulnerabilities; for (let i = 0; i < vulnerabilitiesList.length; i++) { score += vulnerabilitiesList[i].hardening_score; } return score; }, activateVulnerabilityScanner: async () => { try { const fetched = await rsssl_api.doAction('rsssl_scan_files'); if (fetched.request_success) { //we get the data again await get().fetchVulnerabilities(); } } catch (e) { console.error(e); } } })); export default UseRiskData; src/Settings/RiskConfiguration/VulnerabilitiesOverview.js 0000777 00000014230 15252021227 0020026 0 ustar 00 import {__} from '@wordpress/i18n'; import useRiskData from "./RiskData"; import {useEffect, useState} from '@wordpress/element'; import DataTable, {createTheme} from "react-data-table-component"; import useFields from "../FieldsData"; import useProgress from "../../Dashboard/Progress/ProgressData"; import useRunnerData from "./RunnerData"; import './datatable.scss'; const VulnerabilitiesOverview = (props) => { const {getProgressData} = useProgress(); const [enabled, setEnabled] = useState(false); const { dataLoaded, vulList, fetchVulnerabilities, setDataLoaded, fetchFirstRun } = useRiskData(); const {getFieldValue, handleNextButtonDisabled, fieldAlreadyEnabled, fieldsLoaded} = useFields(); const [searchTerm, setSearchTerm] = useState(""); //we create the columns let columns = []; //getting the fields from the props let field = props.field; const customStyles = { headCells: { style: { paddingLeft: '0', // override the cell padding for head cells paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', // override the cell padding for data cells paddingRight: '0', }, }, }; createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light'); function buildColumn(column) { return { name: column.name, sortable: column.sortable, visible: column.visible, selector: row => row[column.column], searchable: column.searchable, grow:column.grow, width: column.width, }; } useEffect(() => { if (!fieldsLoaded) return; setEnabled(getFieldValue('enable_vulnerability_scanner') == 1); }, [getFieldValue('enable_vulnerability_scanner')]) let dummyData = [['', '', '', '', ''], ['', '', '', '', ''], ['', '', '', '', '']]; field.columns.forEach(function (item, i) { let newItem = buildColumn(item) columns.push(newItem); }); //get data if field was already enabled, so not changed right now. useEffect(() => { let vulnerabilityDetectionEnabledAndSaved = fieldAlreadyEnabled('enable_vulnerability_scanner'); // let introShown = getFieldValue('vulnerabilities_intro_shown') == 1; if ( !vulnerabilityDetectionEnabledAndSaved ) { return; } setDataLoaded(false); }, [ getFieldValue('enable_vulnerability_scanner') ]); useEffect(() => { if ( dataLoaded ) { return; } let vulnerabilityDetectionEnabledAndSaved = fieldAlreadyEnabled('enable_vulnerability_scanner'); if ( vulnerabilityDetectionEnabledAndSaved ) { //if just enabled, but intro already shown, just get the first run data. initialize(); } }, [ dataLoaded ]); const initialize = async () => { await fetchFirstRun(); await fetchVulnerabilities(); await getProgressData(); } let data = vulList.map(item => ({ ...item, risk_name: <span className={"rsssl-badge-large rsp-risk-level-" + item.risk_level}> {/* Convert the first character to uppercase and append the rest of the string */} {item.risk_name.charAt(0).toUpperCase() + item.risk_name.slice(1).replace('-risk', '')} </span> })); if (searchTerm.length > 0) { data = data.filter(function (item) { //we check if the search value is in the name or the risk name if (item.Name.toLowerCase().includes(searchTerm.toLowerCase())) { return item; } }); } return ( <div style={{marginTop: '5px'}}> {!enabled ? ( <> <DataTable columns={columns} data={dummyData} dense pagination noDataComponent={__("No results", "really-simple-ssl")} persistTableHead theme="really-simple-plugins" customStyles={customStyles} /> <div className="rsssl-locked"> <div className="rsssl-locked-overlay"> <span className="rsssl-task-status rsssl-open"> {__('Disabled', 'really-simple-ssl')} </span> <span> {__('Activate vulnerability detection to enable this block.', 'really-simple-ssl')} </span> </div> </div> </> ) : ( <> <div className="rsssl-container"> <div className="rsssl-search-bar"> <div className="rsssl-search-bar__inner"> <div className="rsssl-search-bar__icon"></div> <input type="text" className="rsssl-search-bar__input" placeholder={__("Search", "really-simple-ssl")} onKeyUp={event => { setSearchTerm(event.target.value); }} /> </div> </div> </div> <DataTable columns={columns} data={data} dense pagination persistTableHead noDataComponent={__("No vulnerabilities found", "really-simple-ssl")} theme="really-simple-plugins" customStyles={customStyles} /> </> )} </div> ); } export default VulnerabilitiesOverview; src/Settings/RiskConfiguration/NotificationTester.js 0000777 00000013056 15252021227 0016760 0 ustar 00 import * as rsssl_api from "../../utils/api"; import useFields from "../FieldsData"; import {__} from "@wordpress/i18n"; import {useEffect, useState, useRef} from '@wordpress/element'; import useRiskData from "./RiskData"; import hoverTooltip from "../../utils/hoverTooltip"; const NotificationTester = (props) => { const { fetchVulnerabilities,riskLevels } = useRiskData(); const [disabled, setDisabled] = useState(true); const [mailNotificationsEnabled, setMailNotificationsEnabled] = useState(true); const [vulnerabilitiesEnabled, setVulnerabilitiesEnabled] = useState(false); const [vulnerabilitiesSaved, setVulnerabilitiesSaved] = useState(false); const {addHelpNotice, fields, getFieldValue, updateField, setChangedField, fieldAlreadyEnabled, fetchFieldsData, updateFieldAttribute} = useFields(); let disabledButtonPropBoolean = props.disabled; let disabledButtonViaFieldConfig = props.field.disabled; let disabledButton = (disabledButtonViaFieldConfig || disabledButtonPropBoolean); const buttonRef = useRef(null); let tooltipText = ''; let emptyValues = [undefined, null, '']; if (disabled && props.field.hasOwnProperty('disabledTooltipText') && !emptyValues.includes(props.field.disabledTooltipHoverText) ) { tooltipText = props.field.disabledTooltipHoverText; } hoverTooltip( buttonRef, (disabledButton && (tooltipText !== '')), tooltipText ); useEffect ( () => { let mailEnabled = getFieldValue('send_notifications_email') == 1; let mailVerified = rsssl_settings.email_verified; let vulnerabilities = fieldAlreadyEnabled('enable_vulnerability_scanner'); setMailNotificationsEnabled(mailEnabled); let enableButton = mailVerified && vulnerabilities; setDisabled(! enableButton); setMailNotificationsEnabled(mailEnabled); setVulnerabilitiesSaved(vulnerabilities); setVulnerabilitiesEnabled(getFieldValue('enable_vulnerability_scanner') == 1) },[fields]) const doTestNotification = async () => { //Test the notifications setDisabled(true); rsssl_api.doAction( 'vulnerabilities_test_notification' ).then( () => { setDisabled(false); fetchFieldsData('vulnerabilities'); fetchVulnerabilities(); addHelpNotice( props.field.id, 'success', __('All notifications are triggered successfully, please check your email to double-check if you can receive emails.','really-simple-ssl'), __('Test notifications','really-simple-ssl'), false ); }); } //ensure that risk levels are enabled cascading useEffect( () => { let dashboardRiskLevel = getFieldValue('vulnerability_notification_dashboard'); dashboardRiskLevel = riskLevels.hasOwnProperty(dashboardRiskLevel) ? riskLevels[dashboardRiskLevel] : 0; // let siteWideRiskLevel = getFieldValue('vulnerability_notification_sitewide'); //the sitewide risk level should be at least as high as the dashboard risk level. Disable lower risk levels in sitewide //create an array of ints from 1 to dashboardRiskLevel, we drop the * from the array let priorDashboardRiskLevel = dashboardRiskLevel>0 ? dashboardRiskLevel-1 :dashboardRiskLevel; let dashboardRiskLevels = Array.from(Array(priorDashboardRiskLevel).keys()).map(x => x ); //convert these integers back to risk levels //find the integer value in the riskLevels object, and return the key dashboardRiskLevels = dashboardRiskLevels.map( (level) => { return Object.keys(riskLevels).find(key => riskLevels[key] === level ); }); if (dashboardRiskLevels.length > 0) { updateFieldAttribute('vulnerability_notification_sitewide', 'disabled', dashboardRiskLevels); //if the current value is below the dashboardRisk Level, set it to the dashboardRiskLevel let siteWideRiskLevel = getFieldValue('vulnerability_notification_sitewide'); siteWideRiskLevel = riskLevels.hasOwnProperty(siteWideRiskLevel) ? riskLevels[siteWideRiskLevel] : 0; if (siteWideRiskLevel<dashboardRiskLevel) { let newRiskLevel = Object.keys(riskLevels).find(key => riskLevels[key] === dashboardRiskLevel ); updateField('vulnerability_notification_sitewide', newRiskLevel); setChangedField('vulnerability_notification_sitewide', newRiskLevel); } } else { updateFieldAttribute('vulnerability_notification_sitewide', 'disabled', false); } },[getFieldValue('vulnerability_notification_dashboard')]) let fieldCopy = {...props.field}; if (!mailNotificationsEnabled) { fieldCopy.tooltip = __('You have not enabled the email notifications in the general settings.','really-simple-ssl'); fieldCopy.warning = true; } else if (vulnerabilitiesEnabled && !vulnerabilitiesSaved) { fieldCopy.tooltip = __('The notification test only works if you save the setting first.','really-simple-ssl'); fieldCopy.warning = true; } return ( <> <label>{props.labelWrap(fieldCopy)}</label> <button ref={buttonRef} onClick={() => doTestNotification()} disabled={disabled} className="button button-default" > {props.field.button_text} </button> </> ) } export default NotificationTester src/Settings/RiskConfiguration/modal.scss 0000777 00000000113 15252021227 0014564 0 ustar 00 .rsssl-modal.rsssl-vulnerabilities-modal{ ul { column-count: 1; } } src/Settings/FieldsData.js 0000777 00000025770 15252021227 0011511 0 ustar 00 import {create} from 'zustand'; import {produce} from 'immer'; import * as rsssl_api from "../utils/api"; import {__} from '@wordpress/i18n'; import {toast} from 'react-toastify'; import {ReactConditions} from "../utils/ReactConditions"; const fetchFields = () => { return rsssl_api.getFields().then((response) => { let fields = response.fields; let progress = response.progress; let error = response.error; return {fields, progress, error}; }).catch((error) => { console.error(error); }); } const useFields = create(( set, get ) => ({ fieldsLoaded: false, error:false, fields: [], changedFields:[], progress:[], nextButtonDisabled:false, overrideNextButtonDisabled:false, refreshTests:false, highLightField: '', setHighLightField: (highLightField) => { set({ highLightField }); }, setRefreshTests: (refreshTests) => set(state => ({ refreshTests })), handleNextButtonDisabled: (nextButtonDisabled) => { set({overrideNextButtonDisabled: nextButtonDisabled}); }, setChangedField: (id, value) => { set( produce((state) => { //remove current reference const existingFieldIndex = state.changedFields.findIndex(field => { return field.id===id; }); if (existingFieldIndex!==-1){ state.changedFields.splice(existingFieldIndex, 1); } //add again, with new value let field = {}; field.id = id; field.value = value; state.changedFields.push(field); }) ) }, showSavedSettingsNotice : (text , type = 'success') => { handleShowSavedSettingsNotice(text, type); }, updateField: (id, value) => { set( produce((state) => { let index = state.fields.findIndex(fieldItem => fieldItem.id === id); if (index !== -1) { state.fields[index].value = value; } }) ) }, updateFieldAttribute: (id, attribute, value) => { set( produce((state) => { let index = state.fields.findIndex(fieldItem => fieldItem.id === id); if (index !== -1) { state.fields[index][attribute] = value; } }) ) }, updateSubField: (id, subItemId, value) => { set( produce((state) => { let index = state.fields.findIndex(fieldItem => fieldItem.id === id); let itemValue = state.fields[index].value; if (!Array.isArray(itemValue)) { itemValue = []; } let subIndex = itemValue.findIndex(subItem => subItem.id === subItemId); if (subIndex !== -1) { state.fields[index].updateItemId = subItemId; state.fields[index].value[subIndex]['value'] = value; state.fields[index].value = itemValue.map(item => { const { deleteControl, valueControl, statusControl, ...rest } = item; return rest; }); } }) ) }, removeHelpNotice: (id) => { set( produce((state) => { const fieldIndex = state.fields.findIndex(field => { return field.id===id; }); state.fields[fieldIndex].help = false; }) ) }, addHelpNotice : (id, label, text, title, url) => { get().removeHelpNotice(id); //create help object let help = {}; help.label=label; help.text=text; if (url) help.url=url; if (title) help.title=title; set( produce((state) => { const fieldIndex = state.fields.findIndex(field => { return field.id===id; }); if (fieldIndex!==-1) { state.fields[fieldIndex].help = help; } }) ) }, fieldAlreadyEnabled: (id) => { let fieldIsChanged = get().changedFields.filter(field => field.id === id ).length>0; let fieldIsEnabled = get().getFieldValue(id); return !fieldIsChanged && fieldIsEnabled; }, getFieldValue : (id) => { let fields = get().fields; let fieldItem = fields.filter(field => field.id === id )[0]; if (fieldItem){ return fieldItem.value; } return false; }, getField : (id) => { let fields = get().fields; let fieldItem = fields.filter(field => field.id === id )[0]; if (fieldItem){ return fieldItem; } return false; }, saveFields: async (skipRefreshTests, showSavedNotice, force = false) => { let refreshTests = typeof skipRefreshTests !== 'undefined' ? skipRefreshTests : true; showSavedNotice = typeof showSavedNotice !== 'undefined' ? showSavedNotice : true; let fields = get().fields; fields = fields.filter(field => field.data_target !== 'banner'); let changedFields = get().changedFields; let saveFields = []; //data_target for (const field of fields) { let fieldIsIncluded = changedFields.filter(changedField => changedField.id === field.id).length > 0; //also check if there's no saved value yet for radio fields, by checking the never_saved attribute. //a radio or select field looks like it's completed, but won't save if it isn't changed. //this should not be the case for disabled fields, as these fields often are enabled server side because they're enabled outside Really Simple Security. let select_or_radio = field.type === 'select' || field.type === 'radio'; if (fieldIsIncluded || (field.never_saved && !field.disabled && select_or_radio)) { saveFields.push(field); } } //if no fields were changed, do nothing. if (saveFields.length > 0 || force === true) { let response = rsssl_api.setFields(saveFields).then((response) => { return response; }) if (showSavedNotice) { toast.promise( response, { pending: __('Saving settings...', 'really-simple-ssl'), success: __('Settings saved', 'really-simple-ssl'), error: __('Something went wrong', 'really-simple-ssl'), } ); } await response.then((response) => { set( produce((state) => { state.changedFields = []; state.fields = response.fields; state.progress = response.progress; state.refreshTests = refreshTests; }) ) }); } if (showSavedNotice && saveFields.length === 0) { //nothing to save. show instant success. toast.promise( Promise.resolve(), { success: __('Settings saved', 'really-simple-ssl'), } ); } }, updateFieldsData: (selectedSubMenuItem) => { let fields = get().fields; fields = updateFieldsListWithConditions(fields); //only if selectedSubMenuItem is actually passed if (selectedSubMenuItem) { let nextButtonDisabled = isNextButtonDisabled(fields, selectedSubMenuItem); //if the button was set to disabled with the handleNextButtonDisabled function, we give that priority until it's released. if (get().overrideNextButtonDisabled) { nextButtonDisabled = get().overrideNextButtonDisabled; } set( produce((state) => { state.nextButtonDisabled = nextButtonDisabled; }) ) } set( produce((state) => { state.fields = fields; }) ) }, fetchFieldsData: async ( selectedSubMenuItem ) => { const { fields, progress, error } = await fetchFields(); let conditionallyEnabledFields = updateFieldsListWithConditions(fields); let selectedFields = conditionallyEnabledFields.filter(field => field.menu_id === selectedSubMenuItem); set({fieldsLoaded: true, fields:conditionallyEnabledFields, selectedFields:selectedFields, progress:progress, error: error }); } })); export default useFields; //check if all required fields have been enabled. If so, enable save/continue button const isNextButtonDisabled = (fields, selectedMenuItem) => { let fieldsOnPage = []; //get all fields with group_id this.props.group_id for (const field of fields){ if (field.menu_id === selectedMenuItem ){ fieldsOnPage.push(field); } } let requiredFields = fieldsOnPage.filter(field => field.required && !field.conditionallyDisabled && (field.value.length==0 || !field.value) ); return requiredFields.length > 0; } const updateFieldsListWithConditions = (fields) => { let newFields = []; if (!fields || !Array.isArray(fields)) { return []; } fields.forEach(function(field, i) { // Create instance to evaluate the react_conditions of a field let reactConditions = new ReactConditions(field, fields); let fieldCurrentlyEnabled = reactConditions.isEnabled(); //we want to update the changed fields if this field has just become visible. Otherwise the new field won't get saved. const newField = {...field}; newField.conditionallyDisabled = (fieldCurrentlyEnabled === false); // ReactConditions will keep the original disabledTooltipText if the // field is not disabled by the react_conditions. Key differs from the // one in the config on purpose to prevent overwriting the config value. newField.disabledTooltipHoverText = reactConditions.getDisabledTooltipText(); // If the field is a letsencrypt field or has a condition_action of // 'hide', it should be hidden if the field is disabled. newField.visible = !(!fieldCurrentlyEnabled && (newField.type === 'letsencrypt' || newField.condition_action === 'hide')); newFields.push(newField); }); return newFields; } const handleShowSavedSettingsNotice = ( text, type ) => { if (typeof text === 'undefined') { text = __( 'Settings saved', 'really-simple-ssl' ); } if (typeof type === 'undefined') { type = 'success'; } if (type === 'error') { toast.error(text); } if (type === 'warning') { toast.warning(text); } if (type === 'info') { toast.info(text); } if (type === 'success') { toast.success(text); } } src/Settings/PremiumOverlay.js 0000777 00000003647 15252021227 0012470 0 ustar 00 import {__} from "@wordpress/i18n"; import useLicense from "./License/LicenseData"; import Hyperlink from "../utils/Hyperlink"; const PremiumOverlay = ({msg, title, upgrade}) => { const {licenseStatus} = useLicense(); let pro_plugin_active = rsssl_settings.pro_plugin_active === '1' let target = pro_plugin_active ? '_self' : '_blank'; let upgradeButtonText = pro_plugin_active ? __("Check license", "really-simple-ssl") : __("Go Pro", "really-simple-ssl"); let upgradeUrl = upgrade ? upgrade : rsssl_settings.upgrade_link; if (pro_plugin_active) { upgradeUrl = '#settings/license'; } let message = msg ? msg : <Hyperlink text={__("Learn more about %sPremium%s", "really-simple-ssl")} url={upgradeUrl}/>; if ( pro_plugin_active ) { if (licenseStatus === 'empty' || licenseStatus === 'deactivated') { message = rsssl_settings.messageInactive; } else { message = rsssl_settings.messageInvalid; } } return ( <div className="rsssl-locked rsssl-locked-premium"> <div className="rsssl-locked-overlay rsssl-premium"> {/* header */} <div className="rsssl-locked-header"> <h5 className={'rsssl-locked-header-title'}>{title}</h5> </div> <div className="rsssl-locked-content"> <span>{message} </span> </div> <div className="rsssl-locked-footer"> {/* We place a button on the left side */} <div className="rsssl-grid-item-footer-buttons"> <a className="button button-primary left" href={upgradeUrl} target={target}>{upgradeButtonText} </a> </div> </div> </div> </div> ); } export default PremiumOverlay; src/Settings/EventLog/EventLogDataTable.js 0000777 00000020564 15252021227 0014515 0 ustar 00 import {__} from '@wordpress/i18n'; import {useEffect, useState} from '@wordpress/element'; import DataTable, {createTheme} from "react-data-table-component"; import EventLogDataTableStore from "./EventLogDataTableStore"; import FilterData from "../FilterData"; import * as rsssl_api from "../../utils/api"; import useMenu from "../../Menu/MenuData"; import Flag from "../../utils/Flag/Flag"; import Icon from "../../utils/Icon"; import useFields from "../FieldsData"; import SearchBar from "../DynamicDataTable/SearchBar"; const EventLogDataTable = (props) => { const { DynamicDataTable, dataLoaded, pagination, dataActions, handleEventTableRowsChange, fetchDynamicData, handleEventTableSort, handleEventTablePageChange, handleEventTableSearch, handleEventTableFilter, processing, rowCleared, } = EventLogDataTableStore() //here we set the selectedFilter from the Settings group const { selectedFilter, setSelectedFilter, activeGroupId, getCurrentFilter, setProcessingFilter, } = FilterData(); const {fields, fieldAlreadyEnabled, getFieldValue} = useFields(); const [tableHeight, setTableHeight] = useState(600); // Starting height const rowHeight = 50; // Height of each row. const moduleName = 'rsssl-group-filter-' + props.field.id; let field = props.field; useEffect(() => { const currentFilter = getCurrentFilter(moduleName); if (!currentFilter) { setSelectedFilter('all', moduleName); } setProcessingFilter(processing); handleEventTableFilter('severity', currentFilter); }, [moduleName, handleEventTableFilter, getCurrentFilter(moduleName), setSelectedFilter, moduleName, DynamicDataTable, processing]); //if the dataActions are changed, we fetch the data useEffect(() => { //we make sure the dataActions are changed in the store before we fetch the data if (dataActions) { fetchDynamicData(field.action, field.event_type, dataActions) } }, [dataActions.sortDirection, dataActions.filterValue, dataActions.search, dataActions.page, dataActions.currentRowsPerPage]); //we create the columns let columns = []; //getting the fields from the props //we loop through the fields field.columns.forEach(function (item, i) { let newItem = buildColumn(item) columns.push(newItem); }); let enabled = fieldAlreadyEnabled('event_log_enabled'); const customStyles = { headCells: { style: { paddingLeft: '0', // override the cell padding for head cells paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', // override the cell padding for data cells paddingRight: '0', }, }, }; createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light'); //only show the datatable if the data is loaded if (!dataLoaded && columns.length === 0 && DynamicDataTable.length === 0) { return ( <div className="rsssl-spinner"> <div className="rsssl-spinner__inner"> <div className="rsssl-spinner__icon"></div> <div className="rsssl-spinner__text">{__("Loading...", "really-simple-ssl")}</div> </div> </div> ); } let searchableColumns = []; //setting the searchable columns columns.map(column => { if (column.searchable) { searchableColumns.push(column.column); } }); let data = []; if (DynamicDataTable.data) { data = DynamicDataTable.data.map((dataItem) => { let newItem = {...dataItem}; newItem.iso2_code = generateFlag(newItem.iso2_code, newItem.country_name); newItem.expandableRows = true; return newItem; }); } //we generate an expandable row const ExpandableRow = ({data}) => { let code, icon, color = ''; switch (data.severity) { case 'warning': code = 'rsssl-warning'; icon = 'circle-times'; color = 'red'; break; case 'informational': code = 'rsssl-primary'; icon = 'info'; color = 'black'; break; default: code = 'rsssl-primary'; } return ( <div className={"rsssl-wizard-help-notice " + code} style={{padding: '1em', borderRadius: '5px'}}> {/*now we place a block to the rightcorner with the severity*/} <div style={{float: 'right'}}> <Icon name={icon} color={color}/> </div> <div style={{fontSize: '1em', fontWeight: 'bold'}}> {data.severity.charAt(0).toUpperCase() + data.severity.slice(1)} </div> <div>{data.description}</div> </div> ); }; function generateFlag(flag, title) { return ( <> <Flag countryCode={flag} style={{ fontSize: '2em', marginLeft: '0.3em', }} title={title} ></Flag> </> ) } let paginationSet; paginationSet = typeof pagination !== 'undefined'; useEffect(() => { if (Object.keys(data).length === 0 ) { setTableHeight(100); // Adjust depending on your UI measurements } else { setTableHeight(rowHeight * (paginationSet ? pagination.perPage + 2 : 12)); // Adjust depending on your UI measurements } }, [paginationSet, pagination?.perPage, data]); return ( <> <div className="rsssl-container"> <div></div> {/*Display the search bar*/} <SearchBar handleSearch={handleEventTableSearch} searchableColumns={searchableColumns}/> </div> {/*Display the datatable*/} <DataTable columns={columns} data={processing? [] : data} dense pagination={!processing} paginationServer paginationTotalRows={paginationSet? pagination.totalRows: 10} paginationPerPage={paginationSet? pagination.perPage: 10} paginationDefaultPage={paginationSet?pagination.currentPage: 1} paginationComponentOptions={{ rowsPerPageText: __('Rows per page:', 'really-simple-ssl'), rangeSeparatorText: __('of', 'really-simple-ssl'), noRowsPerPage: false, selectAllRowsItem: false, selectAllRowsItemText: __('All', 'really-simple-ssl'), }} onChangeRowsPerPage={handleEventTableRowsChange} onChangePage={handleEventTablePageChange} expandableRows={!processing} expandableRowsComponent={ExpandableRow} loading={dataLoaded} onSort={handleEventTableSort} sortServer={!processing} paginationRowsPerPageOptions={[5, 10, 25, 50, 100]} noDataComponent={__("No results", "really-simple-ssl")} persistTableHead theme="really-simple-plugins" customStyles={customStyles} ></DataTable> {!enabled && ( <div className="rsssl-locked"> <div className="rsssl-locked-overlay"><span className="rsssl-task-status rsssl-open">{__('Disabled', 'really-simple-ssl')}</span><span>{__('Activate Limit login attempts to enable this block.', 'really-simple-ssl')}</span> </div> </div> )} </> ); } export default EventLogDataTable; function buildColumn(column) { return { name: column.name, sortable: column.sortable, searchable: column.searchable, width: column.width, visible: column.visible, column: column.column, selector: row => row[column.column], }; } src/Settings/EventLog/EventLogDataTableStore.js 0000777 00000005446 15252021227 0015534 0 ustar 00 /* Creates A Store For Risk Data using Zustand */ import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; import {__} from "@wordpress/i18n"; import {produce} from "immer"; import React from "react"; const EventLogDataTableStore = create((set, get) => ({ processing: false, dataLoaded: false, pagination: {}, dataActions: {}, DynamicDataTable: [], sorting: [], rowCleared: false, fetchDynamicData: async (action, event_type, dataActions = {}) => { //cool we can fetch the data so first we set the processing to true set({processing: true}); set({dataLoaded: false}); set({rowCleared: true}); if (Object.keys(dataActions).length === 0) { dataActions = get().dataActions; } // add the data_type to the dataActions dataActions = {...dataActions, event_type}; //now we fetch the data try { const response = await rsssl_api.doAction( action, dataActions ); // now we set the EventLog if (response) { set({DynamicDataTable: response, dataLoaded: true, processing: false, pagination: response.pagination, sorting: response.sorting}); } } catch (e) { console.log(e); } finally { set({processing: false}); set({rowCleared: false}); } }, handleEventTableSearch: async (search, searchColumns) => { //Add the search to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, search, searchColumns}; }) ); }, handleEventTablePageChange: async (page, pageSize) => { //Add the page and pageSize to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, page, pageSize}; }) ); }, handleEventTableRowsChange: async (currentRowsPerPage, currentPage) => { //Add the page and pageSize to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, currentRowsPerPage, currentPage}; }) ); }, //this handles all pagination and sorting handleEventTableSort: async (column, sortDirection) => { set(produce((state) => { state.dataActions = {...state.dataActions, sortColumn: column, sortDirection}; }) ); }, handleEventTableFilter: async (column, filterValue) => { //Add the column and sortDirection to the dataActions set(produce((state) => { state.dataActions = {...state.dataActions, filterColumn: column, filterValue}; }) ); }, })); export default EventLogDataTableStore; src/Settings/MixedContentScan/MixedContentScan.js 0000777 00000023775 15252021227 0016130 0 ustar 00 import {useState, useEffect} from "@wordpress/element"; import {Button, ToggleControl} from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import ModalControl from "../../Modal/ModalControl"; import Icon from "../../utils/Icon"; import UseMixedContent from "./MixedContentData"; import useModal from "../../Modal/ModalData"; import React from "react"; const MixedContentScan = (props) => { const {fixedItems, ignoredItems} = useModal(); const {fetchMixedContentData, mixedContentData, runScanIteration, start, stop, dataLoaded, action, scanStatus, progress, completedStatus, nonce, removeDataItem, ignoreDataItem} = UseMixedContent(); const [showIgnoredUrls, setShowIgnoredUrls] = useState(false); const [resetPaginationToggle, setResetPaginationToggle] = useState(false); const [DataTable, setDataTable] = useState(null); const [theme, setTheme] = useState(null); useEffect( () => { import('react-data-table-component').then(({ default: DataTable, createTheme }) => { setDataTable(() => DataTable); setTheme(() => createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light')); }); }, []); useEffect( () => { fetchMixedContentData(); }, [] ); useEffect( () => { if (scanStatus==='running') { runScanIteration() } }, [progress, scanStatus] ); const toggleIgnoredUrls = (e) => { setShowIgnoredUrls(!showIgnoredUrls); } let field = props.field; let columns = []; field.columns.forEach(function(item, i) { let newItem = { name: item.name, sortable: item.sortable, grow: item.grow, selector: row => row[item.column], right: !!item.right, } columns.push(newItem); }); let dataTable = dataLoaded ? mixedContentData : []; for (const item of dataTable) { item.warningControl = <span className="rsssl-task-status rsssl-warning">{__("Warning", "really-simple-ssl")}</span> //check if an item was recently fixed or ignored, and update the table if (fixedItems.includes(item.id)) { item.fixed = true; } if (ignoredItems.includes(item.id)) { item.ignored = true; } //give fix and details the url as prop if ( item.fix ) { item.fix.url = item.blocked_url; item.fix.nonce = nonce; } if (item.details) { item.details.url = item.blocked_url; item.details.nonce = nonce; item.details.ignored = item.ignored; } if (item.location.length > 0) { if (item.location.indexOf('http://') !== -1 || item.location.indexOf('https://') !== -1) { item.locationControl = <a href={item.location} target="_blank" rel="noopener noreferrer">{__("View", "really-simple-ssl")}</a> } else { item.locationControl = item.location; } } item.detailsControl = item.details && <ModalControl handleModal={props.handleModal} item={item} id={item.id} btnText={__("Details", "really-simple-ssl")} btnStyle={"secondary"} modalData={item.details}/>; item.fixControl = item.fix && <ModalControl className={"button button-primary"} handleModal={props.handleModal} item={item} id={item.id} btnText={__("Fix", "really-simple-ssl")} btnStyle={"primary"} modalData={item.fix}/>; } if ( !showIgnoredUrls ) { dataTable = dataTable.filter( item => !item.ignored, ); } //filter also recently fixed items dataTable = dataTable.filter( item => !item.fixed, ); let progressOutput =progress+'%'; let startDisabled = scanStatus === 'running'; let stopDisabled = scanStatus !== 'running'; const customStyles = { headCells: { style: { paddingLeft: '0', // override the cell padding for head cells paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', // override the cell padding for data cells paddingRight: '0', }, }, }; const ExpandableRow = ({ data, disabled, handleFix }) => { return ( <div className="rsssl-container"> <div> <p> {data.details.description.map((item, i) => ( <React.Fragment key={'fragment-'+i}> <span>{item}</span> <br /> </React.Fragment> ))} </p> </div> <div className="" style={{ display: 'flex', alignItems: 'center', justifyContent: 'center' }} > {data.details.edit && ( <a href={data.details.edit} target="_blank" rel="noopener noreferrer" className="button button-secondary" style={{display: 'flex', alignItems: 'center', justifyContent: 'center', marginRight: '10px' }} > {__("Edit", "really-simple-ssl")} </a> )} {data.details.help && ( <button href={data.details.help} target="_blank" rel="noopener noreferrer" className="button button-red" style={{display: 'flex', alignItems: 'center', justifyContent: 'center', marginRight: '10px'}} > {__("Help", "really-simple-ssl")} </button> )} {!data.details.ignored && data.details.action === 'ignore_url' && ( <button disabled={disabled} className="button button-primary" onClick={(e) => handleFix(e, 'ignore')} style={{display: 'flex', alignItems: 'center', justifyContent: 'center', marginRight: '10px'}} > {__("Ignore", "really-simple-ssl")} </button> )} {data.details.action !== 'ignore_url' && ( <button disabled={disabled} className="button button-primary rsssl-action-buttons__button" onClick={(e) => handleFix(e, 'fix')} > {__("Fix", "really-simple-ssl")} </button> )} </div> </div> ); }; return ( <> <div className="rsssl-progress-container"> <div className="rsssl-progress-bar" style={{width: progressOutput}} ></div> </div> {scanStatus==='running' && <div className="rsssl-current-scan-action">{action}</div>} {dataTable.length===0 && <> <div className="rsssl-mixed-content-description"> {scanStatus!=='running' && completedStatus==='never' && __("No results. Start your first scan","really-simple-ssl")} {scanStatus!=='running' && completedStatus==='completed' && __("Everything is now served over SSL","really-simple-ssl")} </div> { (scanStatus ==='running' || completedStatus!=='completed') && <div className="rsssl-mixed-content-placeholder"> <div></div><div></div><div></div> </div> } { scanStatus!=='running' && completedStatus==='completed' && <div className="rsssl-shield-overlay"> <Icon name = "shield" size="80px"/> </div> } </>} { DataTable && dataTable.length>0 && <div className={'rsssl-mixed-content-datatable'}> <DataTable columns={columns} data={dataTable} expandableRows expandableRowsComponent={ExpandableRow} dense pagination paginationResetDefaultPage={resetPaginationToggle} // optionally, a hook to reset pagination to page 1 noDataComponent={__("No results", "really-simple-ssl")} //or your component theme={theme} customStyles={customStyles} /> </div> } <div className="rsssl-grid-item-content-footer"> <button className="button" disabled={startDisabled} onClick={ () => start() }>{__("Start scan","really-simple-ssl")}</button> <button className="button" disabled={stopDisabled} onClick={ () => stop() }>{__("Stop","really-simple-ssl")}</button> <ToggleControl checked= { showIgnoredUrls==1 } onChange={ (e) => toggleIgnoredUrls(e) } /> <label>{__('Show ignored URLs', 'really-simple-ssl')}</label> </div> </> ) } export default MixedContentScan; src/Settings/MixedContentScan/MixedContentData.js 0000777 00000006253 15252021227 0016105 0 ustar 00 import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; const UseMixedContent = create(( set, get ) => ({ mixedContentData: [], dataLoaded:false, fixedItemId:false, action:'', nonce:'', completedStatus:'never', progress:0, scanStatus:false, fetchMixedContentData: async () => { set({ scanStatus: 'running' } ); const {data, progress, state, action, nonce, completed_status } = await getScanIteration(false); set({ scanStatus: state, mixedContentData: data, progress: progress, action: action, nonce: nonce, completedStatus: completed_status, dataLoaded: true, }); }, start: async () => { const {data, progress, state, action, nonce, completed_status } = await getScanIteration('start'); set({ scanStatus: state, mixedContentData: data, progress: progress, action: action, nonce: nonce, completedStatus: completed_status, dataLoaded:true, }); }, runScanIteration: async () => { let currentState = get().scanStatus; if ( currentState==='stop' ) { return; } const {data, progress, state, action, nonce, completed_status } = await getScanIteration(currentState); if ( get().scanStatus !== 'stop' ) { set({ scanStatus: state, mixedContentData: data, progress: progress, action: action, nonce: nonce, completedStatus: completed_status, dataLoaded:true, }); } }, stop: async () => { set({ scanStatus: 'stop' } ); const {data, progress, state, action, nonce, completed_status } = await getScanIteration('stop'); set({ scanStatus: 'stop', mixedContentData: data, progress: progress, action: action, nonce: nonce, completedStatus: completed_status, }); }, removeDataItem: (removeItem) => { let data = get().mixedContentData; for (const item of data) { if (item.id===removeItem.id){ item.fixed = true; } } set({ mixedContentData: data, }); }, ignoreDataItem: (ignoreItem) => { let data = get().mixedContentData; for (const item of data) { if (item.id===ignoreItem.id){ item.ignored = true; } } set({ mixedContentData: data, }); } })); export default UseMixedContent; const getScanIteration = async (state) => { return await rsssl_api.runTest('mixed_content_scan', state).then((response) => { let data = response.data; if (typeof data === 'object') { data = Object.values(data); } if ( !Array.isArray(data) ) { data = []; } response.data = data; if ( state==='stop' ) { response.state = 'stop'; } return response; }) } webpack.feature.config.js 0000777 00000007440 15252021227 0011426 0 ustar 00 const path = require('path'); const defaultConfig = require("@wordpress/scripts/config/webpack.config"); const featureFolders = ['two-fa']; // Add more folders as needed const isProduction = true; const { ProvidePlugin, Compilation } = require('webpack'); const fs = require('fs'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); module.exports = { mode: 'production', ...defaultConfig, entry: featureFolders.reduce((entries, folder) => { const jsPath = path.resolve(__dirname, `../security/wordpress/${folder}/assets/js/index.js`); const scssPath = path.resolve(__dirname, `../security/wordpress/${folder}/assets/css/${folder}.scss`); // check if the file exists if (fs.existsSync(jsPath)) { entries[`${folder}/assets`] = jsPath; } else { console.error(`File ${jsPath} does not exist`); } if (fs.existsSync(scssPath)) { entries[`${folder}/styles`] = scssPath; } else { console.error(`File ${scssPath} does not exist`); } return entries; }, {}), output: { path: path.resolve(__dirname, `../assets/features/`), // Output to the features directory filename: '[name].min.js', clean: false, }, // disable source maps to prevent invalid JSON errors in RtlCssPlugin devtool: false, resolve: { ...defaultConfig.resolve, modules: [ path.resolve(__dirname, '../settings/node_modules'), // Look in settings' node_modules path.resolve(__dirname, '../node_modules'), // Look in the root node_modules 'node_modules', // Fallback to default node_modules ], fallback: { "path": require.resolve("path-browserify"), "stream": require.resolve("stream-browserify"), "buffer": require.resolve("buffer/"), }, }, module: { ...defaultConfig.module, rules: [ // remove default CSS/SCSS rules, including those in oneOf blocks ...defaultConfig.module.rules.flatMap(rule => { if (rule.oneOf) { return [{ ...rule, oneOf: rule.oneOf.filter(r => !(r.test && (r.test.test('.css') || r.test.test('.scss')))), }]; } if (rule.test && (rule.test.test('.css') || rule.test.test('.scss'))) { return []; } return [rule]; }), { test: /\.js$/, exclude: /node_modules/, use: { loader: 'babel-loader', options: { presets: ['@babel/preset-env'] }, }, }, { test: /\.(css|scss)$/i, use: [ MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader' ], }, ], }, plugins: [ // keep default plugins except the RtlCssPlugin to avoid source-map parsing errors ...defaultConfig.plugins.filter(plugin => plugin.constructor && plugin.constructor.name !== 'RtlCssPlugin'), new ProvidePlugin({ Buffer: ['buffer', 'Buffer'], process: 'process/browser', }), new MiniCssExtractPlugin({ filename: '[name].min.css', }), ], optimization: { ...defaultConfig.optimization, splitChunks: false, minimize: isProduction, minimizer: [ '...', new CssMinimizerPlugin(), ], }, stats: { errors: true, moduleTrace: true, errorDetails: true, }, }; settings.php 0000777 00000073647 15252021227 0007143 0 ustar 00 <?php defined('ABSPATH') or die(); /** * Enqueue Gutenberg block assets for backend editor. * * @since 1.0.0 */ require_once(rsssl_path.'settings/config/config.php'); require_once(rsssl_path.'settings/config/menu.php'); require_once(rsssl_path.'settings/config/disable-fields-filter.php'); /** * Fix for WPML issue where WPML breaks the rest api by adding a language locale in the url * * @param $url * @param $path * @param $blog_id * @param $scheme * * @return string */ function rsssl_fix_rest_url_for_wpml($url, $path, $blog_id, $scheme) { if (strpos($url, 'really-simple-security/v') === false) { return $url; } $current_language = false; if (function_exists('icl_register_string')) { $current_language = apply_filters('wpml_current_language', null); } if (function_exists('qtranxf_getLanguage')) { $current_language = qtranxf_getLanguage(); } if ($current_language) { if (strpos($url, '/'.$current_language.'/wp-json/')) { $url = str_replace('/'.$current_language.'/wp-json/', '/wp-json/', $url); } // Handle plain permalinks if (strpos($url, '/'.$current_language.'/?rest_route=')) { $url = str_replace('/'.$current_language.'/?rest_route=', '/?rest_route=', $url); } } return $url; } add_filter('rest_url', 'rsssl_fix_rest_url_for_wpml', 10, 4); /** * WordPress doesn't allow for translation of chunks resulting of code splitting. * Several workarounds have popped up in JetPack and Woocommerce: https://developer.wordpress.com/2022/01/06/wordpress-plugin-i18n-webpack-and-composer/ * Below is mainly based on the Woocommerce solution, which seems to be the most simple approach. Simplicity is king here. * * @return array */ function rsssl_get_chunk_translations($path = 'settings/build' ) { //get all files from the settings/build folder $files = scandir(rsssl_path . $path ); $json_translations = []; // filter the filenames to get the JavaScript and asset filenames $jsFilename = ''; $assetFilename = ''; foreach ($files as $file) { if (strpos($file, 'index.') === 0) { if (substr($file, -3) === '.js') { $jsFilename = $file; } elseif (substr($file, -10) === '.asset.php') { $assetFilename = $file; } } if (strpos($file, '.js') === false) { continue; } $chunk_handle = str_replace('.js', '', $file ); //temporarily register the script, so we can get a translations object. wp_register_script( $chunk_handle, plugins_url('build/'.$file, __FILE__), [], true ); $language_path = defined('rsssl_pro') ? rsssl_path . 'languages' : false; $localeData = load_script_textdomain( $chunk_handle, 'really-simple-ssl', $language_path ); if (!empty($localeData)){ $json_translations[] = $localeData; } wp_deregister_script( $chunk_handle ); } if (empty($jsFilename) || empty($assetFilename) ) { return []; } $assetFile = require( rsssl_path . trailingslashit( $path ) . $assetFilename ); return [ 'json_translations' => $json_translations, 'dependencies' => $assetFile['dependencies'], 'version' => $assetFile['version'], 'js_file' => $jsFilename, ]; } function rsssl_plugin_admin_scripts() { $js_data = rsssl_get_chunk_translations(); // check if the necessary files are found if ( !empty($js_data) ) { $handle = 'rsssl-settings'; wp_enqueue_script( $handle); wp_enqueue_script( 'rsssl-settings', plugins_url( 'build/' . $js_data['js_file'], __FILE__ ), $js_data['dependencies'], $js_data['version'], true ); wp_set_script_translations($handle, 'really-simple-ssl'); wp_localize_script( 'rsssl-settings', 'rsssl_settings', apply_filters('rsssl_localize_script', [ 'json_translations' => $js_data['json_translations'], 'menu' => rsssl_menu(), 'is_bf' => RSSSL()->admin->is_bf(), 'site_url' => get_rest_url(), 'plugins_url' => admin_url('update-core.php'), 'admin_ajax_url' => add_query_arg( array( 'type' => 'errors', 'action' => 'rsssl_rest_api_fallback' ), admin_url('admin-ajax.php') ), 'dashboard_url' => rsssl_admin_url(), 'letsencrypt_url' => rsssl_letsencrypt_wizard_url(), 'le_generated_by_rsssl' => rsssl_generated_by_rsssl(), 'upgrade_link' => rsssl_link('pro', 'upgrade' ), 'ref' => rsssl_get_url_ref(), 'plugin_url' => rsssl_url, 'network_link' => network_site_url('plugins.php'), 'pro_plugin_active' => defined('rsssl_pro'), 'networkwide_active' => !is_multisite() || rsssl_is_networkwide_active(),//true for single sites and network wide activated 'nonce' => wp_create_nonce('wp_rest'),//to authenticate the logged-in user 'rsssl_nonce' => wp_create_nonce('rsssl_nonce'), 'wpconfig_fix_required' => RSSSL()->admin->do_wpconfig_loadbalancer_fix() && ! RSSSL()->admin->wpconfig_has_fixes() && ! RSSSL()->admin->uses_bitnami(), 'cloudflare' => rsssl_uses_cloudflare(), 'email_verified' => rsssl_is_email_verified(), ]) ); } } /** * Check if this server is behind CloudFlare * * @return bool */ function rsssl_uses_cloudflare(): bool { return isset( $_SERVER['HTTP_CF_CONNECTING_IP'] ); } /** * Add SSL menu * * @return void */ function rsssl_add_top_level_menu() { if ( ! rsssl_user_can_manage() ) { return; } if ( is_multisite() && rsssl_is_networkwide_active() ) { return; } $count = RSSSL()->admin->count_plusones(); $update_count = $count > 0 ? "<span class='update-plugins rsssl-update-count'><span class='update-count'>$count</span></span>" : ""; $icon_svg = '<?xml version="1.0" encoding="UTF-8"?> <svg id="rss-menu-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 -15 90 130" width="34" height="34"> <defs> <style>.cls-1{fill:#fff;stroke-width:0px;}</style> </defs> <g fill="none" stroke-width="2"> <path class="cls-1" d="M72.92,26.6h-13v-9.4c0-7.6-6.1-13.7-13.7-13.7s-13.8,6.1-13.8,13.7v9.4h-13.1v-9.4C19.32,2.4,31.32,-9.6,46.12,-9.6s26.8,12,26.8,26.8v9.4h0Z"/> <rect class="cls-1" x="10.02" y="84.6" width="72.3" height="5.6"/> <path class="cls-1" d="M82.32,82H10.02V31.8c0-2.9,2.3-5.2,5.2-5.2h61.9c2.9,0,5.2,2.3,5.2,5.2V82h0ZM64.62,37.8c-2.2-2.2-5.9-2.2-8.2,0l-15.7,15.3l-4.9-4.9c-2.2-2.2-5.9-2.2-8.2,0l-1.9,1.9c-2.2,2.2-2.2,5.9,0,8.2l8.5,8.5c0.1,0.2,0.3,0.4,0.5,0.6l1.9,1.9l4.2,4l3.5-3.5c0.2-0.1,0.4-0.3,0.6-0.5l1.9-1.9c0.2-0.2,0.4-0.4,0.5-0.6l19.1-18.9c2.2-2.2,2.2-5.9,0-8.2l-1.8-1.9Z"/> </g> </svg>'; $icon_base64 = 'data:image/svg+xml;base64,' . base64_encode($icon_svg); $page_hook_suffix = add_menu_page( __( "Security", "really-simple-ssl" ), __( "Security", "really-simple-ssl" ) . $update_count, 'manage_security', 'really-simple-security', 'rsssl_settings_page', $icon_base64, 100 // This will place it near the bottom of the menu ); add_action( "admin_print_scripts-{$page_hook_suffix}", 'rsssl_plugin_admin_scripts' ); // Update the page title to prevent issues with an empty title causing strip_tags deprecation warnings add_action("load-{$page_hook_suffix}", 'rsssl_set_admin_page_title'); add_action('admin_head', 'rsssl_override_wordpress_svg_size'); } add_action( 'admin_menu', 'rsssl_add_top_level_menu' ); function rsssl_override_wordpress_svg_size() { echo '<style> #adminmenu .toplevel_page_really-simple-security div.wp-menu-image.svg { background-size: 23px auto !important; } </style>'; } /** * @return void * * Set title of RSSSL admin page */ function rsssl_set_admin_page_title() { global $title; $title = __( "Security", "really-simple-ssl" ); } /** * Render the settings page */ function rsssl_settings_page() { if ( ! rsssl_user_can_manage()) { return; } ?> <div id="really-simple-ssl" class="rsssl"></div> <div id="really-simple-ssl-modal"></div> <?php } /** * If the rest api is blocked, the code will try an admin ajax call as fall back. * * @return void */ add_action('rest_api_init', 'rsssl_settings_rest_route', 10); function rsssl_settings_rest_route() { if (!rsssl_user_can_manage()) { return; } register_rest_route('really-simple-security/v1', 'fields/get', array( 'methods' => 'GET', 'callback' => 'rsssl_rest_api_fields_get', 'permission_callback' => function () { return rsssl_user_can_manage(); } )); register_rest_route('really-simple-security/v1', 'fields/set', array( 'methods' => 'POST', 'callback' => 'rsssl_rest_api_fields_set', 'permission_callback' => function () { return rsssl_user_can_manage(); } )); register_rest_route('really-simple-security/v1', 'tests/(?P<test>[a-z\_\-]+)', array( 'methods' => 'GET', 'callback' => 'rsssl_run_test', 'permission_callback' => function () { return rsssl_user_can_manage(); } )); register_rest_route('really-simple-security/v1', 'do_action/(?P<action>[a-z\_\-]+)', array( 'methods' => 'POST', 'callback' => 'rsssl_do_action', 'permission_callback' => function () { return rsssl_user_can_manage(); } )); } /** * Store SSL Labs result * @param array $data * * @return array */ function rsssl_store_ssl_labs($data) { if (!rsssl_user_can_manage()) { return []; } update_option('rsssl_ssl_labs_data', $data, false); return []; } /** * @param WP_REST_Request $request * @param array|bool $ajax_data * * @return void */ function rsssl_do_action($request, $ajax_data = false) { if (!rsssl_user_can_manage()) { return; } $action = sanitize_title($request->get_param('action')); $data = $ajax_data !== false ? $ajax_data : $request->get_params(); $nonce = $data['nonce']; if (!wp_verify_nonce($nonce, 'rsssl_nonce')) { return; } switch ($action) { case 'ssltest_get': $response = ['data' => get_option('rsssl_ssl_labs_data')]; break; case 'ssltest_run': $response = rsssl_ssltest_run($data); break; case 'store_ssl_labs': $response = rsssl_store_ssl_labs($data); break; case 'send_test_mail': $mailer = new rsssl_mailer(); $response = $mailer->send_test_mail(); break; case 'send_verification_mail': $mailer = new rsssl_mailer(); $response = $mailer->send_verification_mail( rsssl_get_option('notifications_email_address') ); break; case 'plugin_actions': $response = rsssl_plugin_actions($data); break; case 'clear_cache': $response = rsssl_clear_test_caches($data); break; case 'fix': $response = rsssl_fix($data); break; case 'otherpluginsdata': $response = rsssl_other_plugins_data(); break; case 'get_roles': $roles = rsssl_get_roles(); $response = []; $response['roles'] = $roles; break; case 'get_hosts': $response = [ 'hosts' => [], // fallback response ]; if ( function_exists( 'RSSSL_LE' ) ) { $response['hosts'] = RSSSL_LE()->hosts->getKnownHosts(); } break; default: $response = apply_filters("rsssl_do_action", [], $action, $data); } if (is_array($response)) { $response['request_success'] = true; } return $response; } /** * @param array $data * * @return array */ function rsssl_clear_test_caches($data) { if (!rsssl_user_can_manage()) { return []; } $cache_id = sanitize_title($data['cache_id']); do_action('rsssl_clear_test_caches', $data); return []; } /** * @param array $data * * @return array */ function rsssl_fix($data) { if (!rsssl_user_can_manage()) { return []; } $fix_id = sanitize_title($data['fix_id']); $output = []; $output = apply_filters('rsssl_run_fix', $output, $fix_id); return $output; } /** * Process plugin installation or activation actions * * @param array $data * * @return array */ function rsssl_plugin_actions($data) { if (!rsssl_user_can_manage()) { return []; } $slug = sanitize_title($data['slug']); $action = sanitize_title($data['pluginAction']); if (class_exists('rsssl_installer') === false) { require_once( rsssl_path . 'class-installer.php'); } $installer = new rsssl_installer($slug); if ($action === 'download') { $installer->download_plugin(); } elseif ($action === 'activate') { $installer->activate_plugin(); } return rsssl_other_plugins_data($slug); } /** * Run a request to SSL Labs * * @param $data * * @return string */ function rsssl_ssltest_run( $data ) { if ( ! rsssl_user_can_manage() ) { return ''; } $url = $data['url']; $response = wp_safe_remote_get( $url ); $data = wp_remote_retrieve_body( $response ); if ( empty( $data ) ) { $data = [ 'errors' => 'Request failed, please try again.' ]; } return $data; } /** * @param WP_REST_Request $request * * @return array */ function rsssl_run_test($request, $ajax_data = false) { if (!rsssl_user_can_manage()) { return []; } $nonce = $request->get_param('nonce'); if (!wp_verify_nonce($nonce, 'rsssl_nonce')) { return []; } $data = $ajax_data !== false ? $ajax_data : $request->get_params(); $test = sanitize_title($request->get_param('test')); $state = $request->get_param('state'); $state = $state !== 'undefined' && $state !== 'false' ? $state : false; switch ($test) { case 'progressdata': $response = RSSSL()->progress->get(); break; case 'dismiss_task': $response = RSSSL()->progress->dismiss_task($state); break; default: $response = apply_filters("rsssl_run_test", [], $test, $data); } if (is_array($response)) { $response['request_success'] = true; } return $response; } /** * Get plugin data for other plugin section * @param string $slug * @return array */ function rsssl_other_plugins_data($slug = false) { if (!rsssl_user_can_manage()) { return []; } $plugins = array( [ 'slug' => 'complianz-gdpr', 'constant_premium' => 'cmplz_premium', 'wordpress_url' => 'https://wordpress.org/plugins/complianz-gdpr/', 'upgrade_url' => 'https://complianz.io/pricing?src=rsssl-plugin', 'title' => __("Complianz - Consent Management as it should be", "really-simple-ssl"), ], [ 'slug' => 'complianz-terms-conditions', 'wordpress_url' => 'https://wordpress.org/plugins/complianz-terms-conditions/', 'upgrade_url' => 'https://complianz.io?src=rsssl-plugin', 'title' => 'Complianz - ' . __("Terms and Conditions", "really-simple-ssl"), ], [ 'slug' => 'simplybook', 'wordpress_url' => 'https://wordpress.org/plugins/simplybook/', 'upgrade_url' => 'https://simplybook.me/en/pricing', 'title' => 'SimplyBook.me - ' . __("Online Booking System", "really-simple-ssl"), ], ); if (class_exists('rsssl_installer') === false) { require_once( rsssl_path . 'class-installer.php'); } foreach ($plugins as $index => $plugin) { $installer = new rsssl_installer($plugin['slug']); if (isset($plugin['constant_premium']) && defined($plugin['constant_premium'])) { $plugins[$index]['pluginAction'] = 'installed'; } else if (!$installer->plugin_is_downloaded() && !$installer->plugin_is_activated()) { $plugins[$index]['pluginAction'] = 'download'; } else if ($installer->plugin_is_downloaded() && !$installer->plugin_is_activated()) { $plugins[$index]['pluginAction'] = 'activate'; } else { if (isset($plugin['constant_premium'])) { $plugins[$index]['pluginAction'] = 'upgrade-to-premium'; } else { $plugins[$index]['pluginAction'] = 'installed'; } } } if ($slug) { foreach ($plugins as $key => $plugin) { if ($plugin['slug'] === $slug) { return $plugin; } } } return ['plugins' => $plugins]; } /** * List of allowed field types * @param $type * * @return string|bool */ function rsssl_sanitize_field_type($type) { $types = [ 'hidden', 'license', 'database', 'checkbox', 'password', 'radio', 'text', 'textarea', 'number', 'email', 'select', 'host', 'permissionspolicy', 'learningmode', 'mixedcontentscan', 'vulnerablemeasures', 'LetsEncrypt', 'postdropdown', 'two_fa_roles', 'roles_enabled_dropdown', 'roles_dropdown', 'captcha', 'captcha_key', ]; if (in_array($type, $types, true)) { return $type; } // re-moving checkbox as a return type to the end of the function return false; } /** * @param WP_REST_Request $request * @param array $ajax_data * * @return array */ function rsssl_rest_api_fields_set(WP_REST_Request $request, $ajax_data = false): array { if (!rsssl_user_can_manage()) { return []; } $fields = $ajax_data ?: $request->get_json_params(); //get the nonce $nonce = false; foreach ($fields as $index => $field) { if (isset($field['nonce'])) { $nonce = $field['nonce']; unset($fields[$index]); } } if (!wp_verify_nonce($nonce, 'rsssl_nonce')) { return []; } $config_fields = rsssl_fields(false); $config_ids = array_column($config_fields, 'id'); foreach ($fields as $index => $field) { $config_field_index = array_search($field['id'], $config_ids); $config_field = $config_fields[$config_field_index]; if ($config_field_index === false) { unset($fields[$index]); continue; } $type = rsssl_sanitize_field_type($field['type']); if ($type === false) { return [ 'success' => false, 'error' => 'Invalid field type provided for field ' . sanitize_text_field($field['id']), ]; } $field_id = sanitize_text_field($field['id']); $value = rsssl_sanitize_field($field['value'], $type, $field_id); //if an endpoint is defined, we use that endpoint instead if (isset($config_field['data_endpoint'])) { //the updateItemId allows us to update one specific item in a field set. $update_item_id = isset($field['updateItemId']) ? $field['updateItemId'] : false; $action = isset($field['action']) && $field['action'] === 'delete' ? 'delete' : 'update'; $endpoint = $config_field['data_endpoint']; if (is_array($endpoint)) { $main = $endpoint[0]; $class = $endpoint[1]; $function = $endpoint[2]; if (function_exists($main)) { $main()->$class->$function($value, $update_item_id, $action); } } else if (function_exists($endpoint)) { $endpoint($value, $update_item_id, $action); } unset($fields[$index]); continue; } $field['value'] = $value; $fields[$index] = $field; } if (is_multisite() && rsssl_is_networkwide_active()) { $options = get_site_option('rsssl_options', []); } else { $options = get_option('rsssl_options', []); } //build a new options array foreach ($fields as $field) { $prev_value = isset($options[$field['id']]) ? $options[$field['id']] : false; do_action("rsssl_before_save_option", $field['id'], $field['value'], $prev_value, $field['type']); $options[$field['id']] = apply_filters("rsssl_fieldvalue", $field['value'], $field['id'], $field['type']); } if (!empty($options)) { if (is_multisite() && rsssl_is_networkwide_active()) { update_site_option('rsssl_options', $options); } else { update_option('rsssl_options', $options); } } RSSSL()->admin->clear_admin_notices_cache(); do_action('rsssl_after_saved_fields', $fields ); foreach ( $fields as $field ) { do_action( "rsssl_after_save_field", $field['id'], $field['value'], $prev_value, $field['type'] ); } return [ 'success' => true, 'progress' => RSSSL()->progress->get(), 'fields' => rsssl_fields(true), ]; } /** * Update a rsssl option * @param string $name * @param mixed $value * * @return void */ function rsssl_update_option($name, $value) { if (!rsssl_user_can_manage()) { return; } $config_fields = rsssl_fields(false); $config_ids = array_column($config_fields, 'id'); $config_field_index = array_search($name, $config_ids); if ($config_field_index === false) { return; } $config_field = $config_fields[$config_field_index]; $type = $config_field['type'] ?? false; if (!$type) { return; } if (is_multisite() && rsssl_is_networkwide_active()) { $options = get_site_option('rsssl_options', []); } else { $options = get_option('rsssl_options', []); } if (!is_array($options)) $options = []; $prev_value = $options[$name] ?? false; $name = sanitize_text_field($name); $type = rsssl_sanitize_field_type($config_field['type']); $value = rsssl_sanitize_field($value, $type, $name); $value = apply_filters("rsssl_fieldvalue", $value, sanitize_text_field($name), $type); #skip if value wasn't changed if (isset($options[$name]) && $options[$name] === $value) { return; } $options[$name] = $value; if ( is_multisite() && rsssl_is_networkwide_active() ) { update_site_option( 'rsssl_options', $options ); } else { update_option( 'rsssl_options', $options ); } $config_field['value'] = $value; RSSSL()->admin->clear_admin_notices_cache(); do_action('rsssl_after_saved_fields',[$config_field] ); do_action( "rsssl_after_save_field", $name, $value, $prev_value, $type ); } /** * Get the rest api fields * @return array */ function rsssl_rest_api_fields_get() { if (!rsssl_user_can_manage()) { return []; } $output = array(); $fields = rsssl_fields(); foreach ($fields as $index => $field) { /** * Load data from source */ if (isset($field['data_source'])) { $data_source = $field['data_source']; if (is_array($data_source)) { $main = $data_source[0]; $class = $data_source[1]; $function = $data_source[2]; $field['value'] = []; if (function_exists($main)) { $field['value'] = $main()->$class->$function(); } } else if (function_exists($field['data_source'])) { $func = $field['data_source']; $field['value'] = $func(); } } $fields[$index] = $field; } $output['fields'] = $fields; $output['request_success'] = true; $output['progress'] = RSSSL()->progress->get(); return apply_filters('rsssl_rest_api_fields_get', $output); } /** * Sanitize a field * * @param mixed $value * @param string $type * @oaram string $id * * @return array|bool|int|string|void */ function rsssl_sanitize_field($value, string $type, string $id) { switch ($type) { case 'checkbox': case 'number': return (int)$value; case 'hidden': return sanitize_title($value); case 'select': case 'host': case 'text': case 'license': case 'password': case 'captcha_key': case 'postdropdown': return sanitize_text_field($value); case 'textarea': return wp_kses($value, array()); case 'multicheckbox': if (!is_array($value)) { $value = array($value); } return array_map('sanitize_text_field', $value); case 'email': return sanitize_email($value); case 'url': return esc_url_raw($value); case 'permissionspolicy': return rsssl_sanitize_permissions_policy($value, $type, $id); case 'learningmode': return rsssl_sanitize_datatable($value, $type, $id); case 'mixedcontentscan': return $value; case 'roles_dropdown': case 'roles_enabled_dropdown': case 'two_fa_roles': $value = !is_array($value) ? [] : $value; $roles = rsssl_get_roles(); foreach ($value as $index => $role) { if (! in_array( $role, $roles, true ) ) { unset($value[$index]); } } return $value; default: return sanitize_text_field($value); } } /** * Dedicated permission policy sanitization * * @param $value * @param $type * @param $field_name * * @return array|false */ function rsssl_sanitize_permissions_policy($value, $type, $field_name) { $possible_keys = apply_filters("rsssl_datatable_datatypes_$type", [ 'id' => 'string', 'title' => 'string', 'status' => 'boolean', ]); // Datatable array will look something like this, whith 0 the row index, and id, title the col indexes. // [0] => Array // ( // [id] => camera // [title] => Camera // [value] => () // [status] => 1/0 // ) //) $config_fields = rsssl_fields(false); //check if there is a default available $default = false; foreach ($config_fields as $config_field) { if ($config_field['id'] === $field_name) { $default = isset($config_field['default']) ? $config_field['default'] : false; } } $stored_ids = []; if (!is_array($value)) { return $default; } else { foreach ($value as $row_index => $row) { //check if we have invalid values if (is_array($row)) { foreach ($row as $column_index => $row_value) { if ($column_index === 'id' && $row_value === false) { unset($value[$column_index]); } } } //has to be an array. if (!is_array($row)) { if (isset($default[$row_index])) { $value[$row_index] = $default[$row_index]; } else { unset($value[$row_index]); } } foreach ($row as $col_index => $col_value) { if (!isset($possible_keys[$col_index])) { unset($value[$row_index][$col_index]); } else { $datatype = $possible_keys[$col_index]; switch ($datatype) { case 'string': $value[$row_index][$col_index] = sanitize_text_field($col_value); break; case 'int': case 'boolean': default: $value[$row_index][$col_index] = intval($col_value); break; } } } //Ensure that all required keys are set with at least an empty value foreach ($possible_keys as $key => $data_type) { if (!isset($value[$row_index][$key])) { $value[$row_index][$key] = false; } } } } //ensure that there are no duplicate ids foreach ($value as $index => $item) { if (in_array($item['id'], $stored_ids)) { unset($value[$index]); continue; } $stored_ids[] = $item['id']; } //if the default contains items not in the setting (newly added), add them. if (count($value) < count($default)) { foreach ($default as $def_row_index => $def_row) { //check if it is available in the array. If not, add if (!in_array($def_row['id'], $stored_ids)) { $value[] = $def_row; } } } return $value; } function rsssl_sanitize_datatable($value, $type, $field_name) { $possible_keys = apply_filters("rsssl_datatable_datatypes_$type", [ 'id' => 'string', 'title' => 'string', 'status' => 'boolean', ]); if (!is_array($value)) { return false; } else { foreach ($value as $row_index => $row) { //check if we have invalid values if (is_array($row)) { foreach ($row as $column_index => $row_value) { if ($column_index === 'id' && $row_value === false) { unset($value[$column_index]); } } } //has to be an array. if (!is_array($row)) { unset($value[$row_index]); } foreach ($row as $col_index => $col_value) { if (!isset($possible_keys[$col_index])) { unset($value[$row_index][$col_index]); } else { $datatype = $possible_keys[$col_index]; switch ($datatype) { case 'string': $value[$row_index][$col_index] = sanitize_text_field($col_value); break; case 'int': case 'boolean': default: $value[$row_index][$col_index] = intval($col_value); break; } } } //Ensure that all required keys are set with at least an empty value foreach ($possible_keys as $key => $data_type) { if (!isset($value[$row_index][$key])) { $value[$row_index][$key] = false; } } } } return $value; } /** * Check if the server side conditions apply * * @param array $conditions * * @return bool */ function rsssl_conditions_apply(array $conditions) { $defaults = ['relation' => 'AND']; $conditions = wp_parse_args($conditions, $defaults); $relation = $conditions['relation'] === 'AND' ? 'AND' : 'OR'; unset($conditions['relation']); $condition_applies = true; foreach ($conditions as $condition => $condition_value) { $invert = substr($condition, 1) === '!'; $condition = ltrim($condition, '!'); if (is_array($condition_value)) { $this_condition_applies = rsssl_conditions_apply($condition_value); } else { //check if it's a function if (substr($condition, -2) === '()') { $func = $condition; if (preg_match('/(.*)\(\)\-\>(.*)->(.*)/i', $func, $matches)) { $base = $matches[1]; $class = $matches[2]; $func = $matches[3]; $func = str_replace('()', '', $func); $this_condition_applies = call_user_func(array($base()->{$class}, $func)) === $condition_value; } else { $func = str_replace('()', '', $func); $this_condition_applies = $func() === $condition_value; } } else { $var = $condition; if (preg_match('/(.*)\(\)\-\>(.*)->(.*)/i', $var, $matches)) { $base = $matches[1]; $class = $matches[2]; $var = $matches[3]; $this_condition_applies = $base()->{$class}->_get($var) === $condition_value; } else { $this_condition_applies = rsssl_get_option($var) === $condition_value; } } if ($invert) { $this_condition_applies = !$this_condition_applies; } } if ($relation === 'AND') { $condition_applies = $condition_applies && $this_condition_applies; } else { $condition_applies = $condition_applies || $this_condition_applies; } } return $condition_applies; } /** * Fetch all user roles. * * Tries to get roles from cache first. If roles are not in cache, it fetches them and stores them in cache. * * @return array An array of roles, each role being an associative array with 'label' and 'value' keys. */ function rsssl_get_roles( ): array { if ( ! rsssl_admin_logged_in() ) { return []; } global $wp_roles; // Try to get roles from cache $roles = wp_cache_get( 'rsssl_roles' ); // If roles are not in cache, fetch and set cache if ( ! $roles ) { // Just return the names, not the capabilities $roles_names = array_keys( $wp_roles->roles ); // Extract unique role values from the role names $roles = array_values( array_unique( $roles_names )); // Set the roles in cache for future use wp_cache_set( 'rsssl_roles', $roles ); } return $roles; } /** * @param $response * @param $user * @param $request * * @return mixed * * Add user roles to /users endpoint */ function rsssl_add_user_role_to_api_response( $response, $user, $request ) { if ( rsssl_is_logged_in_rest() ) { $data = $response->get_data(); $data['roles'] = $user->roles; $response->set_data( $data ); } return $response; } add_filter( 'rest_prepare_user', 'rsssl_add_user_role_to_api_response', 10, 3 ); if ( ! function_exists('rsssl_change_email_status_on_email_change' ) ) { function rsssl_change_email_status_on_email_change(string $field_id, $new_value, $previous_value) { if ( $field_id === 'notifications_email_address' && $new_value !== $previous_value ) { update_option( 'rsssl_email_verification_status', 'email_changed' ); } } } add_filter('rsssl_after_save_field', 'rsssl_change_email_status_on_email_change', 10, 3); dist/main.min.css 0000777 00000000046 15252021227 0007734 0 ustar 00 body{background-color:red;color:blue} dist/bundle.js 0000777 00000000000 15252021227 0007311 0 ustar 00 build/366.0e8cd32aeda45546f72d.js 0000777 00000200417 15252021227 0011505 0 ustar 00 "use strict";(self.webpackChunkreally_simple_ssl=self.webpackChunkreally_simple_ssl||[]).push([[366],{8366:(s,e,l)=>{l.r(e),l.d(e,{default:()=>I});var r=l(790);const t=s=>{const e=!!s.block.footer&&s.block.footer,l=s.block;let t="rsssl-grid-item "+l.class+" rsssl-"+l.id;return(0,r.jsxs)("div",{className:t,children:[(0,r.jsxs)("div",{className:"rsssl-grid-item-header",children:[l.header&&wp.element.createElement(l.header),!l.header&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h3",{className:"rsssl-grid-title rsssl-h4",children:l.title}),(0,r.jsx)("div",{className:"rsssl-grid-item-controls"})]})]},"header-"+l.id),(0,r.jsx)("div",{className:"rsssl-grid-item-content",children:wp.element.createElement(s.block.content)},"content-"+l.id),!e&&(0,r.jsx)("div",{className:"rsssl-grid-item-footer"},"footer-"+l.id),e&&(0,r.jsx)("div",{className:"rsssl-grid-item-footer",children:wp.element.createElement(e)},"footer-"+l.id)]},"block-"+l.id)};var a=l(7723),i=l(6087),n=l(2592);const c=()=>{const{setFilter:s,filter:e,fetchFilter:l,notices:t,error:c}=(0,n.A)();(0,i.useEffect)((()=>{l()}),[]);const o=e=>{let l=e.target.getAttribute("data-filter");"all"!==l&&"remaining"!==l||s(l)};if(c)return(0,r.jsx)(r.Fragment,{});let d=0,h=0;return d=t.length,h=t.filter((function(s){return"open"===s.output.status||"warning"===s.output.status})).length,(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h3",{className:"rsssl-grid-title rsssl-h4",children:(0,a.__)("Progress","really-simple-ssl")}),(0,r.jsx)("div",{className:"rsssl-grid-item-controls",children:(0,r.jsxs)("div",{className:"rsssl-task-switcher-container rsssl-active-filter-"+e,children:[(0,r.jsxs)("span",{className:"rsssl-task-switcher rsssl-all-tasks",onClick:o,htmlFor:"rsssl-all-tasks","data-filter":"all",children:[(0,a.__)("All tasks","really-simple-ssl"),(0,r.jsxs)("span",{className:"rsssl_task_count",children:["(",d,")"]})]}),(0,r.jsxs)("span",{className:"rsssl-task-switcher rsssl-remaining-tasks",onClick:o,htmlFor:"rsssl-remaining-tasks","data-filter":"remaining",children:[(0,a.__)("Remaining tasks","really-simple-ssl"),(0,r.jsxs)("span",{className:"rsssl_task_count",children:["(",h,")"]})]})]})})]})};var o=l(2304);const d=s=>{const{percentageCompleted:e,progressText:l,filter:t,notices:c,progressLoaded:d,getProgressData:g,error:u}=(0,n.A)();(0,i.useEffect)((()=>{g()}),[]);const m=()=>Object.assign({},{width:e+"%"});let p="";if(e<80&&(p+="rsssl-orange"),!d||u)return(0,r.jsxs)("div",{className:"rsssl-progress-block",children:[(0,r.jsx)("div",{className:"rsssl-progress-bar",children:(0,r.jsx)("div",{className:"rsssl-progress",children:(0,r.jsx)("div",{className:"rsssl-bar rsssl-orange",style:m()})})}),(0,r.jsxs)("div",{className:"rsssl-progress-text",children:[(0,r.jsx)("h1",{className:"rsssl-progress-percentage",children:"0%"}),(0,r.jsx)("h5",{className:"rsssl-progress-text-span",children:(0,a.__)("Loading...","really-simple-ssl")})]}),(0,r.jsx)("div",{className:"rsssl-scroll-container",children:(0,r.jsxs)("div",{className:"rsssl-task-element",children:[(0,r.jsx)("span",{className:"rsssl-task-status rsssl-loading",children:(0,a.__)("Loading...","really-simple-ssl")}),(0,r.jsx)("p",{className:"rsssl-task-message",children:(0,a.__)("Loading...","really-simple-ssl")})]})})]});let x=c;return"remaining"===t&&(x=x.filter((function(s){return"open"===s.output.status||"warning"===s.output.status}))),(0,r.jsxs)("div",{className:"rsssl-progress-block",children:[(0,r.jsx)("div",{className:"rsssl-progress-bar",children:(0,r.jsx)("div",{className:"rsssl-progress",children:(0,r.jsx)("div",{className:"rsssl-bar "+p,style:m()})})}),(0,r.jsxs)("div",{className:"rsssl-progress-text",children:[(0,r.jsx)(h,{percentageCompleted:e}),(0,r.jsx)("h5",{className:"rsssl-progress-text-span",children:l})]}),(0,r.jsx)("div",{className:"rsssl-scroll-container",children:x.map(((s,e)=>(0,r.jsx)(o.A,{notice:s},"task-"+e)))})]})},h=({percentageCompleted:s})=>{const[e,l]=(0,i.useState)(0),t=(0,i.useRef)(0);return(0,i.useEffect)((()=>{const e=t.current,r=Date.now(),a=setInterval((()=>{const i=Date.now()-r,n=Math.min(i/1e3,1),c=(o=n,1-Math.pow(1-o,3));var o;const d=Math.min(e+(s-e)*c,s);n<1?(l(d),t.current=s):clearInterval(a)}),16);return()=>clearInterval(a)}),[s]),(0,r.jsxs)("h1",{className:"rsssl-progress-percentage",children:[Math.round(e),"%"]})};var g=l(9306),u=l(1254),m=l(2039);const p=s=>{const{setShowOnBoardingModal:e}=(0,m.A)(),{fields:l}=(0,u.A)();let t=l.filter((s=>"enable_vulnerability_scanner"===s.id))[0].value,i=l.filter((s=>"ssl_enabled"===s.id))[0].value,n=rsssl_settings.wpconfig_fix_required,c=l.filter((s=>"enable_firewall"===s.id))[0].value,o=(0,a.__)("SSL","really-simple-ssl"),d=i?"circle-check":"circle-times",h=i?"green":"red",p=t?"circle-check":"circle-times",x=t?"green":"red",f=c?"circle-check":"circle-times",v=c?"green":"red";return(0,r.jsxs)(r.Fragment,{children:[!i&&(0,r.jsx)("button",{disabled:n,onClick:()=>e(!0,!0),className:"button button-primary",children:(0,a.__)("Activate SSL","really-simple-ssl")}),rsssl_settings.pro_plugin_active&&(0,r.jsxs)("span",{className:"rsssl-footer-left",children:["Really Simple Security Pro ",rsssl_settings.pro_version]}),!rsssl_settings.pro_plugin_active&&(0,r.jsx)("a",{href:rsssl_settings.upgrade_link,target:"_blank",rel:"noopener noreferrer",className:"button button-default",children:(0,a.__)("Go Pro","really-simple-ssl")}),(0,r.jsxs)("div",{className:"rsssl-legend",children:[(0,r.jsx)(g.default,{name:d,color:h}),(0,r.jsx)("div",{className:"rsssl-progress-footer-link",children:(0,r.jsx)("a",{href:"#settings/encryption",children:o})})]}),(0,r.jsxs)("div",{className:"rsssl-legend",children:[(0,r.jsx)(g.default,{name:f,color:v}),(0,r.jsx)("div",{className:"rsssl-progress-footer-link",children:c?(0,r.jsx)("a",{href:"#settings/rules",children:(0,a.__)("Firewall","really-simple-ssl")}):(0,r.jsx)("a",{href:"#settings/firewall&highlightfield=enable_firewall",children:(0,a.__)("Firewall","really-simple-ssl")})})]}),(0,r.jsxs)("div",{className:"rsssl-legend",children:[(0,r.jsx)(g.default,{name:p,color:x}),(0,r.jsx)("div",{className:"rsssl-progress-footer-link",children:t?(0,r.jsx)("a",{href:"#settings/vulnerabilities",children:(0,a.__)("Vulnerability scan","really-simple-ssl")}):(0,r.jsx)("a",{href:"#settings/vulnerabilities&highlightfield=enable_vulnerability_scanner",children:(0,a.__)("Vulnerability scan","really-simple-ssl")})})]})]})},x=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h3",{className:"rsssl-grid-title rsssl-h4",children:(0,a.__)("Status","really-simple-ssl")}),(0,r.jsx)("div",{className:"rsssl-grid-item-controls",children:(0,r.jsxs)("span",{className:"rsssl-header-html",children:[" ",(0,a.__)("Powered by Qualys","really-simple-ssl")]})})]});var f=l(8260);const v=(s,e=new Date)=>{if("number"==typeof s&&(s.toString().length<13&&(s*=1e3),s=new Date(s)),!(s instanceof Date))return"-";let l={year:31536e6,month:2628e6,day:864e5,hour:36e5,minute:6e4,second:1e3},r=new Intl.RelativeTimeFormat("en",{numeric:"auto"}),t=s-e;for(let s in l)if(Math.abs(t)>l[s]||"second"===s)return r.format(Math.round(t/l[s]),s)};var j=l(8743);const w=({className:s,content:e,id:l})=>{const[t,a]=(0,i.useState)(!1);let n=t?"rsssl-hover":"";return(0,r.jsx)("div",{className:"rsssl-score-container",children:(0,r.jsx)("div",{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),className:"rsssl-score-snippet "+s+" "+n,children:e})},"score_container-"+l)},b=()=>{const{dataLoaded:s,clearCache:e,endpointData:l,setEndpointData:t,sslData:n,setSslData:c,sslScanStatus:o,setSslScanStatus:d,isLocalHost:h,fetchSslData:u,runSslTest:m,intervalId:p,setIntervalId:x,requestActive:b,setRequestActive:_,setClearCache:C}=(0,f.A)(),y=(0,i.useRef)(!1);(0,i.useEffect)((()=>{s||u()}),[]);const N=()=>!n;(0,i.useEffect)((()=>{if(h())return;"active"===o&&n.summary&&n.summary.progress>=100&&(C(!0),y.current=!1,c(!1),t(!1)),"active"===o&&"ERROR"===n.status&&(C(!0),c(!1),t(!1));let s=n&&"READY"!==n.status,l="active"===o;e&&(s=!0);let r=n.errors||"ERROR"===n.status;if(b||r||!s&&!l)n&&"READY"===n.status&&(d("completed"),clearInterval(p));else if(d("active"),_(!0),!y.current){if(m(),!p){let s=setInterval((function(){m()}),4e3);x(s)}y.current=!0}}),[o,n]);const k=()=>{let s=0;return n&&n.summary.progress?s=n.summary.progress:0==s&&"active"===o&&(s=5),Object.assign({},{width:s+"%"})},S=(s,e,l)=>(0,r.jsx)(w,{className:s,content:e,id:l}),M=s=>{let e=0;return e=0==s?0:s<128?20:s<256?80:100,e};let z="rsssl-inactive",L=n?n.summary.progress:0,H=!!n&&n.summary.startTime,A="";H?((new Date).setTime(H),A=v(H)):A=(0,a.__)("No test started yet","really-simple-ssl");let V=!!n&&n.summary.statusMessage,D=n?n.summary.grade:"?";n&&"READY"===n.status&&(z=-1!==D.indexOf("A")?"rsssl-success":"rsssl-error"),N()&&(z="rsssl-inactive"),N();let E="https://www.ssllabs.com/analyze.html?d="+encodeURIComponent(window.location.protocol+"//"+window.location.host),F=!1,B="",R="black";return h()?(F=!0,R="red",B=(0,a.__)("Not available on localhost","really-simple-ssl")):n&&(n.errors||"ERROR"===n.status)?(F=!0,R="red",B=V):n&&L<100&&(F=!0,R="orange",B=V),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"rsssl-ssl-labs",children:[(0,r.jsx)("div",{className:"rsssl-gridblock-progress-container "+z,children:(0,r.jsx)("div",{className:"rsssl-gridblock-progress",style:k()})}),(0,r.jsx)("div",{className:"rsssl-gridblock-progress",style:k()}),(0,r.jsxs)("div",{className:"rsssl-ssl-labs-select "+z,children:[(0,r.jsxs)("div",{className:"rsssl-ssl-labs-select-item",children:[(()=>{let s="processing";return N()&&(s="inactive"),l&&l.length>0&&(s="success",l.forEach((function(e,l){e.details.protocols&&e.details.protocols.forEach((function(e,l){"1.1"===e.version&&(s="error")}))}))),(0,r.jsxs)(r.Fragment,{children:["inactive"===s&&S("rsssl-test-inactive","Protocol support","protocol"),"processing"===s&&S("rsssl-test-processing","Protocol support...","protocol"),"error"===s&&S("rsssl-test-error","Supports TLS 1.1","protocol"),"success"===s&&S("rsssl-test-success","No TLS 1.1","protocol")]})})(),(()=>{let s="processing";return N()&&(s="inactive"),l&&l.length>0&&(s=l.filter((function(s){return s.details.hstsPolicy&&"present"!==s.details.hstsPolicy.status})).length>0?"error":"success"),(0,r.jsxs)(r.Fragment,{children:["inactive"===s&&S("rsssl-test-inactive","HSTS","hsts"),"processing"===s&&S("rsssl-test-processing","HSTS...","hsts"),"error"===s&&S("rsssl-test-error","No HSTS header","hsts"),"success"===s&&S("rsssl-test-success","HSTS header detected","hsts")]})})(),(()=>{let s="processing";return N()&&(s="inactive"),l&&l.length>0&&(s=l.filter((function(s){return s.grade&&-1===s.grade.indexOf("A")})).length>0?"error":"success"),(0,r.jsxs)(r.Fragment,{children:["inactive"===s&&S("rsssl-test-inactive","Certificate","certificate"),"processing"===s&&S("rsssl-test-processing","Certificate...","certificate"),"error"===s&&!F&&S("rsssl-test-error","Certificate issue","certificate"),"success"===s&&S("rsssl-test-success","Valid certificate","certificate")]})})(),(()=>{let s=0,e="rsssl-test-processing";if(N()&&(e="rsssl-test-inactive"),l&&l.length>0){let r=256,t=128;l.forEach((function(s,e){s.details.suites&&s.details.suites.forEach((function(s,e){s.list.forEach((function(s,e){r=s.cipherStrength<r?s.cipherStrength:r,t=s.cipherStrength>t?s.cipherStrength:t}))}))})),s=(M(r)+M(t))/2,s=Math.round(s),e=s>70?"rsssl-test-success":"rsssl-test-error"}return(0,r.jsx)(r.Fragment,{children:S(e,(0,a.__)("Cipher strength","really-simple-ssl")+" "+s+"%","cipher")})})()]}),(0,r.jsxs)("div",{className:"rsssl-ssl-labs-select-item",children:[N()?(0,r.jsx)("h2",{className:"big-number",children:"?"}):(0,r.jsx)("h2",{className:"big-number",children:D}),N()&&(0,r.jsx)("div",{})]})]}),(0,r.jsxs)("div",{className:"rsssl-ssl-labs-list",children:[(0,r.jsxs)("div",{className:"rsssl-ssl-labs-list-item",children:[(0,r.jsx)(g.default,{name:"info",color:R}),(0,r.jsxs)("p",{className:"rsssl-ssl-labs-list-item-text",children:[F&&B,!F&&(0,a.__)("What does my score mean?","really-simple-ssl")]}),(0,r.jsx)("a",{href:(0,j.g)("https://really-simple-ssl.com/instructions/about-ssl-labs/"),target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Read more","really-simple-ssl")})]}),(0,r.jsxs)("div",{className:"rsssl-ssl-labs-list-item",children:[(0,r.jsx)(g.default,{name:"list",color:"black"}),(0,r.jsx)("p",{className:"rsssl-ssl-labs-list-item-text",children:(0,a.__)("Last check:","really-simple-ssl")}),(0,r.jsx)("p",{className:"rsssl-ssl-labs-list-item-text",children:A})]}),(0,r.jsxs)("div",{className:"rsssl-ssl-labs-list-item",children:[(0,r.jsx)(g.default,{name:"external-link",color:"black"}),(0,r.jsx)("a",{href:E,target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("View detailed report on Qualys SSL Labs","really-simple-ssl")})]})]})]})})},_=()=>{const{sslScanStatus:s,setSslScanStatus:e,isLocalHost:l}=(0,f.A)();let t="active"===s||l();return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("button",{disabled:t,onClick:s=>e("active"),className:"button button-default",children:["paused"===s&&(0,a.__)("Continue SSL Health check","really-simple-ssl"),"paused"!==s&&(0,a.__)("Check SSL Health","really-simple-ssl")]})})},C=()=>{const{fields:s,getFieldValue:e}=(0,u.A)(),[l,t]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{1==e("enable_vulnerability_scanner")&&t(!0)}),[s]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h3",{className:"rsssl-grid-title rsssl-h4",children:l?(0,a.__)("Vulnerabilities","really-simple-ssl"):(0,a.__)("Hardening","really-simple-ssl")}),(0,r.jsx)("div",{className:"rsssl-grid-item-controls",children:(0,r.jsx)("span",{className:"rsssl-header-html"})})]})};var y=l(8069);const N=()=>{const{vulnerabilities:s,vulnerabilityScore:e,updates:l,dataLoaded:t,fetchVulnerabilities:n}=(0,y.A)(),{fields:c,getFieldValue:o}=(0,u.A)(),[d,h]=(0,i.useState)(""),[m,p]=(0,i.useState)(""),[x,f]=(0,i.useState)(""),[v,j]=(0,i.useState)(""),[w,b]=(0,i.useState)(""),[_,C]=(0,i.useState)(""),[N,k]=(0,i.useState)(0),[S,M]=(0,i.useState)(!1);(0,i.useEffect)((()=>{1==o("enable_vulnerability_scanner")&&M(!0)}),[c]),(0,i.useEffect)((()=>{t||n()}),[S]),(0,i.useEffect)((()=>{const e=1===s?(0,a.__)("vulnerability","really-simple-ssl"):(0,a.__)("vulnerabilities","really-simple-ssl");j(e.charAt(0).toUpperCase()+e.slice(1)),h(e);const r=1===l?(0,a.__)("update","really-simple-ssl"):(0,a.__)("updates","really-simple-ssl"),t=(0,a._n)("You have %s update pending","You have %s updates pending",l,"really-simple-ssl").replace("%s",l);p(r),f(r.charAt(0).toUpperCase()+r.slice(1)),b(t);const i=1===N?(0,a.__)("hardening feature","really-simple-ssl"):(0,a.__)("hardening features","really-simple-ssl");C(i)}),[s,l,N]),(0,i.useEffect)((()=>{if(c.length>0){let s=c.filter((s=>s.recommended));s=s.filter((s=>1!==s.value&&!0!==s.disabled)),k(s.length)}}),[c]);let z="rsssl-inactive",L=S?"rsp-success":"rsp-default",H="rsp-success",A="green",V="black";if(S||N>0||l>0){let s=e();s>=5?(L="rsp-critical",A="red"):s<4&&s>0&&(L="rsp-medium",A="yellow"),l>=5?(H="rsp-critical",V="red"):s<5&&s>0&&(H="rsp-medium",V="yellow"),s<N&&(s=N),s<l&&(s=l),z=0===s?"rsssl-success":s<5?"rsssl-warning":"rsssl-error"}const D={marginLeft:"0.3em"};return(0,r.jsx)(r.Fragment,{children:t?(0,r.jsxs)("div",{className:"rsssl-hardening",children:[(0,r.jsx)("div",{className:"rsssl-gridblock-progress"}),(0,r.jsxs)("div",{className:"rsssl-hardening-select "+z,children:[(0,r.jsxs)("div",{className:"rsssl-hardening-select-item",children:[S?(0,r.jsx)(g.default,{color:A,size:23,name:"radar-duotone"}):(0,r.jsx)(g.default,{size:23,color:"red",name:"satellite-dish-duotone"}),(0,r.jsx)("h2",{children:S?s:"?"}),(0,r.jsx)("span",{className:"rsssl-badge "+L,children:v})]}),(0,r.jsxs)("div",{className:"rsssl-hardening-select-item",children:[l?(0,r.jsx)(g.default,{size:23,color:V,name:"rotate-exclamation-light"}):(0,r.jsx)(g.default,{size:23,color:"black",name:"rotate-light"}),(0,r.jsx)("h2",{children:l}),(0,r.jsx)("span",{className:"rsssl-badge "+H,children:x})]})]}),(0,r.jsxs)("div",{className:"rsssl-hardening-list",children:[(()=>{if(N){let s="circle-check",e="green";return N>0&&(s="info",e="yellow"),N>=5&&(s="circle-times",e="red"),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"rsssl-hardening-list-item",children:[(0,r.jsx)(g.default,{name:s,color:e}),(0,r.jsx)("p",{className:"rsssl-hardening-list-item-text",children:(0,a.__)("You have %s open %d","really-simple-ssl").replace("%s",N).replace("%d",_)}),(0,r.jsx)("a",{href:"#settings/hardening",children:(0,a.__)("Settings","really-simple-ssl")})]})})}return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"rsssl-hardening-list-item",children:[(0,r.jsx)(g.default,{name:"circle-check",color:"green"}),(0,r.jsx)("p",{className:"rsssl-hardening-list-item-text",children:(0,a.__)("Hardening features are configured","really-simple-ssl")})]})})})(),S?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"rsssl-hardening-list-item",children:[(0,r.jsx)(g.default,{name:"info",color:"yellow"}),(0,r.jsxs)("p",{className:"rsssl-hardening-list-item-text",children:[" ",(0,a.__)("Enable vulnerability detection","really-simple-ssl")]}),(0,r.jsx)("a",{href:"#settings/vulnerabilities",children:(0,a.__)("Enable","really-simple-ssl")})]})}),(()=>{let l="circle-check",t="green";return e()>0&&(l="info",t="yellow"),e()>=5&&(l="circle-times",t="red"),S?s?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"rsssl-hardening-list-item",children:[(0,r.jsx)(g.default,{name:l,color:t}),(0,r.jsx)("p",{className:"rsssl-hardening-list-item-text",children:(0,a.__)("You have %s %d","really-simple-ssl").replace("%s",s).replace("%d",d)}),(0,r.jsx)("a",{style:D,href:"#settings/vulnerabilities",children:(0,a.__)("Learn more","really-simple-ssl")})]})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"rsssl-hardening-list-item",children:[(0,r.jsx)(g.default,{name:"circle-check",color:"green"}),(0,r.jsx)("p",{className:"rsssl-hardening-list-item-text",children:(0,a.__)("You have %s %d","really-simple-ssl").replace("%d",d).replace("%s",s)})]})}):(0,r.jsx)(r.Fragment,{})})(),(()=>{let s="circle-check",e="green";return l>0&&(s="info",e="yellow"),l>=5&&(s="circle-times",e="red"),l?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"rsssl-hardening-list-item",children:[(0,r.jsx)(g.default,{name:s,color:e}),(0,r.jsx)("p",{className:"rsssl-hardening-list-item-text",children:w}),(0,r.jsx)("a",{href:rsssl_settings.plugins_url+"?plugin_status=upgrade",style:D,children:x})]})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"rsssl-hardening-list-item",children:[(0,r.jsx)(g.default,{name:s,color:e}),(0,r.jsx)("p",{className:"rsssl-hardening-list-item-text",children:w})]})})})()]})]}):(0,r.jsxs)("div",{className:"rsssl-hardening",children:[(0,r.jsx)("div",{className:"rsssl-gridblock-progress"}),(0,r.jsxs)("div",{className:"rsssl-hardening-select",children:[(0,r.jsxs)("div",{className:"rsssl-hardening-select-item",children:[(0,r.jsx)(g.default,{size:23,color:"grey",name:"radar-duotone"}),(0,r.jsx)("h2",{children:"0"}),(0,r.jsx)("span",{className:"rsssl-badge rsp-default",children:v})]}),(0,r.jsxs)("div",{className:"rsssl-hardening-select-item",children:[(0,r.jsx)(g.default,{size:23,color:"grey",name:"rotate-exclamation-light"}),(0,r.jsx)("h2",{children:"0"}),(0,r.jsx)("span",{className:"rsssl-badge rsp-default",children:x})]})]}),(0,r.jsxs)("div",{className:"rsssl-hardening-list",children:[(0,r.jsxs)("div",{className:"rsssl-hardening-list-item",children:[(0,r.jsx)(g.default,{color:"grey",name:"circle-check"}),(0,r.jsx)("p",{className:"rsssl-hardening-list-item-text",children:(0,a.__)("Loading...","really-simple-ssl")})]}),(0,r.jsxs)("div",{className:"rsssl-hardening-list-item",children:[(0,r.jsx)(g.default,{color:"grey",name:"circle-check"}),(0,r.jsx)("p",{className:"rsssl-hardening-list-item-text",children:(0,a.__)("Loading...","really-simple-ssl")})]}),(0,r.jsxs)("div",{className:"rsssl-hardening-list-item",children:[(0,r.jsx)(g.default,{color:"grey",name:"circle-check"}),(0,r.jsx)("p",{className:"rsssl-hardening-list-item-text",children:(0,a.__)("Loading...","really-simple-ssl")})]})]})]})})},k=s=>{const{lastChecked:e}=(0,y.A)(),{fields:l,getFieldValue:t}=(0,u.A)(),[n,c]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{1==t("enable_vulnerability_scanner")&&c(!0)}),[l]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("a",{href:"#settings/vulnerabilities",className:"button button-default",children:(0,a.__)("Settings","really-simple-ssl")}),n?(0,r.jsx)("p",{className:"rsssl-small-text",children:v(e)}):null]})},S=({link:s,content:e})=>(0,r.jsx)("div",{className:"rsssl-tips-tricks-element",children:(0,r.jsxs)("a",{href:s,target:"_blank",rel:"noopener noreferrer",title:e,children:[(0,r.jsx)("div",{className:"rsssl-icon",children:(0,r.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:"15",children:(0,r.jsx)("path",{fill:"var(--rsp-grey-300)",d:"M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"})})}),(0,r.jsx)("div",{className:"rsssl-tips-tricks-content",children:e})]})}),M=()=>(0,r.jsx)("div",{className:"rsssl-tips-tricks-container",children:[{content:"Why WordPress is (in)secure",link:"https://really-simple-ssl.com/why-wordpress-is-insecure/"},{content:"Always be ahead of vulnerabilities",link:"https://really-simple-ssl.com/staying-ahead-of-vulnerabilities/"},{content:"Harden your website's security",link:"https://really-simple-ssl.com/hardening-your-websites-security/"},{content:"Login protection as essential security",link:"https://really-simple-ssl.com/login-protection-as-essential-security/"},{content:"Protect site visitors with Security Headers",link:"https://really-simple-ssl.com/protecting-site-visitors-with-security-headers"},{content:"Enable an efficient and performant firewall",link:"https://really-simple-ssl.com/enable-an-efficient-and-performant-firewall/"}].map(((s,e)=>(0,r.jsx)(S,{link:(0,j.g)(s.link),content:s.content},"trick-"+e)))}),z=()=>(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("a",{href:(0,j.g)("https://really-simple-ssl.com/knowledge-base-overview/"),target:"_blank",rel:"noopener noreferrer",className:"button button-secondary",children:(0,a.__)("Documentation","really-simple-ssl")})}),L=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h3",{className:"rsssl-grid-title rsssl-h4",children:(0,a.__)("Other Plugins","really-simple-ssl")}),(0,r.jsx)("div",{className:"rsssl-grid-item-controls",children:(0,r.jsx)("span",{className:"rsssl-header-html",children:(0,r.jsx)("a",{className:"rsp-logo",href:"https://really-simple-ssl.com/about-us/",children:(0,r.jsx)("img",{src:rsssl_settings.plugin_url+"assets/img/really-simple-plugins.svg",alt:"Really Simple Plugins"})})})})]});var H=l(5315),A=l(1621),V=l(1674);const D=(0,A.vt)(((s,e)=>({error:!1,dataLoaded:!1,pluginData:[],updatePluginData:(l,r)=>{let t=e().pluginData;t.forEach((function(s,e){s.slug===l&&(t[e]=r)})),s((s=>({dataLoaded:!0,pluginData:t})))},getPluginData:s=>e().pluginData.filter((e=>e.slug===s))[0],fetchOtherPluginsData:async()=>{const{pluginData:e,error:l}=await V.Eo("otherpluginsdata").then((s=>{let e=[];e=s.plugins;let l=s.error;return l||e.forEach((function(s,l){e[l].pluginActionNice=E(s.pluginAction)})),{pluginData:e,error:l}}));s((s=>({dataLoaded:!0,pluginData:e,error:l})))},pluginActions:(s,l,r)=>{r&&r.preventDefault();let t={};t.slug=s,t.pluginAction=l;let a=e().getPluginData(s);"download"===l?a.pluginAction="downloading":"activate"===l&&(a.pluginAction="activating"),a.pluginActionNice=E(a.pluginAction),e().updatePluginData(s,a),"installed"!==l&&"upgrade-to-premium"!==l&&V.Eo("plugin_actions",t).then((l=>{a=l,e().updatePluginData(s,a),e().pluginActions(s,a.pluginAction)}))}}))),E=s=>({download:(0,a.__)("Install","really-simple-ssl"),activate:(0,a.__)("Activate","really-simple-ssl"),activating:(0,a.__)("Activating...","really-simple-ssl"),downloading:(0,a.__)("Downloading...","really-simple-ssl"),"upgrade-to-premium":(0,a.__)("Downloading...","really-simple-ssl")}[s]),F=()=>{const{dataLoaded:s,pluginData:e,pluginActions:l,fetchOtherPluginsData:t,error:n}=D();return(0,i.useEffect)((()=>{s||t()}),[]),!s||n?(0,r.jsx)(H.A,{lines:"3",error:n}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"rsssl-other-plugins-container",children:e.map(((s,e)=>((s,e)=>(0,r.jsxs)("div",{className:"rsssl-other-plugins-element rsssl-"+s.slug,children:[(0,r.jsxs)("a",{href:s.wordpress_url,target:"_blank",rel:"noopener noreferrer",title:s.title,children:[(0,r.jsx)("div",{className:"rsssl-bullet"}),(0,r.jsx)("div",{className:"rsssl-other-plugins-content",children:s.title})]}),(0,r.jsxs)("div",{className:"rsssl-other-plugin-status",children:["upgrade-to-premium"===s.pluginAction&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:s.upgrade_url,children:(0,a.__)("Upgrade","really-simple-ssl")})}),"upgrade-to-premium"!==s.pluginAction&&"installed"!==s.pluginAction&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("a",{href:"#",onClick:e=>l(s.slug,s.pluginAction,e),children:s.pluginActionNice})}),"installed"===s.pluginAction&&(0,r.jsx)(r.Fragment,{children:(0,a.__)("Installed","really-simple-ssl")})]})]},"plugin"+e))(s,e)))})})},B=s=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"rsssl-grid-item rsssl-column-2 rsssl-dashboard-placeholder"}),(0,r.jsx)("div",{className:"rsssl-grid-item rsssl-row-2 rsssl-dashboard-placeholder"}),(0,r.jsx)("div",{className:"rsssl-grid-item rsssl-row-2 rsssl-dashboard-placeholder"})]});var R=l(9518);const I=()=>{const{fieldsLoaded:s}=(0,u.A)(),e=[{id:"progress",header:c,content:d,footer:p,class:" rsssl-column-2"},{id:"ssllabs",header:x,content:b,footer:_,class:"border-to-border"},{id:"wpvul",header:C,content:N,footer:k,class:"border-to-border"},{id:"tips_tricks",title:(0,a.__)("Tips & Tricks","really-simple-ssl"),content:M,footer:z,class:" rsssl-column-2"},{id:"other-plugins",header:L,content:F,class:" rsssl-column-2 no-border no-background"}];return(0,r.jsxs)(r.Fragment,{children:[!s&&(0,r.jsx)(B,{}),s&&e.map(((s,e)=>(0,r.jsx)(R.A,{fallback:"Could not load dashboard block",children:(0,r.jsx)(t,{block:s})},"grid_"+e)))]})}},2592:(s,e,l)=>{l.d(e,{A:()=>a});var r=l(1621),t=l(1674);const a=(0,r.vt)(((s,e)=>({filter:"all",progressText:"",notices:[],error:!1,percentageCompleted:0,progressLoaded:!1,setFilter:e=>{sessionStorage.rsssl_task_filter=e,s((s=>({filter:e})))},fetchFilter:()=>{if("undefined"!=typeof Storage&&sessionStorage.rsssl_task_filter){let e=sessionStorage.rsssl_task_filter;s((s=>({filter:e})))}},getProgressData:async()=>{const{percentage:e,text:l,notices:r,error:a}=await t.YA("progressData","refresh").then((s=>s));s((s=>({notices:r,percentageCompleted:e,progressText:l,progressLoaded:!0,error:a})))},dismissNotice:async l=>{let r=e().notices;r=r.filter((function(s){return s.id!==l})),s((s=>({notices:r})));const{percentage:a}=await t.YA("dismiss_task",l);s({percentageCompleted:a})}})))},8260:(s,e,l)=>{l.d(e,{A:()=>a});var r=l(1621),t=l(1674);const a=(0,r.vt)(((s,e)=>({debug:!1,sslScanStatus:!1,sslData:!1,endpointData:[],dataLoaded:!1,clearCache:!1,requestActive:!1,intervalId:!1,setIntervalId:e=>s({intervalId:e}),setRequestActive:e=>s({requestActive:e}),setSslScanStatus:e=>s({sslScanStatus:e}),setClearCache:e=>s({clearCache:e}),setSslData:e=>s({sslData:e}),setEndpointData:e=>s({endpointData:e}),isLocalHost:()=>!e().debug&&-1!==window.location.host.indexOf("localhost"),host:()=>e().debug?"wordpress.org":window.location.host,fetchSslData:async()=>{t.Eo("ssltest_get").then((l=>{if(l.data.hasOwnProperty("host")){let r=e().processSslData(l.data);s({sslData:r,endpointData:r.endpointData,dataLoaded:!0})}}))},getSslLabsData:l=>{let r="";e().clearCache&&(s({clearCache:!1,sslData:!1}),r="&startNew=on");const a="https://api.ssllabs.com/api/v3/analyze?host="+e().host()+r;let i={};return i.url=a,t.Eo("ssltest_run",i).then((s=>!(!s||s.errors)&&JSON.parse(s)))},runSslTest:()=>{e().getSslLabsData().then((l=>{if(l.status&&"ERROR"===l.status)l=e().processSslData(l),s({sslData:l,sslScanStatus:"completed"}),clearInterval(e().intervalId);else if(l.endpoints&&l.endpoints.filter((s=>"Ready"===s.statusMessage)).length>0){let r=l.endpoints.filter((s=>"Ready"===s.statusMessage)),a=r[r.length-1].ipAddress;e().getEndpointData(a).then((r=>{let a=e().endpointData;if(Array.isArray(a)||(a=[]),!r.errors){let e=!1;a.length>0&&a.forEach((function(s,l){s.ipAddress===r.ipAddress&&(a[l]=r,e=!0)})),e||(a[a.length]=r),s({endpointData:a}),l.endpointData=a}l.errors||t.Eo("store_ssl_labs",l),l=e().processSslData(l),s({sslData:l,requestActive:!1})}))}else(l=e().processSslData(l)).errors||t.Eo("store_ssl_labs",l).then((s=>{})),s({sslData:l,requestActive:!1})}))},processSslData:e=>{e||(e={});let l=e.progress?e.progress:0,r=e.startTime?e.startTime:"",t=e.statusMessage?e.statusMessage:"",a=e.grade?e.grade:"?",i="";if(e.endpoints){let s=e.endpoints.filter((s=>"Ready"===s.statusMessage)),r=s.length,n=s[r-1],c=e.endpoints.filter((s=>"In progress"===s.statusMessage))[0],o=0;c&&(o=c.progress?c.progress:0,t=c.statusDetailsMessage,i=c.ipAddress),n&&(a=n.grade),l=(100*r+o)/e.endpoints.length}e.errors&&(a="?",t=e.errors[0].message,l=100);let n={};return l>=100&&s({sslScanStatus:"completed"}),n.grade=a,n.startTime=r,n.statusMessage=t,n.ipAddress=i,n.progress=l,e.summary=n,e},getEndpointData:s=>{const l="https://api.ssllabs.com/api/v3/getEndpointData?host="+e().host()+"&s="+s;let r={};return r.url=l,t.Eo("ssltest_run",r).then((s=>{if(s&&!s.errors)return JSON.parse(s)}))}})))},2304:(s,e,l)=>{l.d(e,{A:()=>u});var r=l(7723),t=l(9306),a=l(1674),i=l(1254),n=l(2592),c=l(7135),o=l(2838),d=l.n(o),h=l(6087),g=l(790);const u=s=>{const{dismissNotice:e,getProgressData:l}=(0,n.A)(),{getField:o,setHighLightField:u,showSavedSettingsNotice:m,updateFieldAttribute:p}=(0,i.A)(),{setSelectedSubMenuItem:x}=(0,c.A)(),[f,v]=(0,h.useState)(!1);let j=s.notice,w="premium"===j.output.icon,b=j.output.url&&-1!==j.output.url.indexOf("really-simple-ssl.com");return(0,g.jsxs)("div",{className:"rsssl-task-element",children:[(0,g.jsx)("span",{className:"rsssl-task-status rsssl-"+j.output.icon,children:j.output.label}),(0,g.jsx)("p",{className:"rsssl-task-message",dangerouslySetInnerHTML:{__html:d().sanitize(j.output.msg)}})," ",b&&j.output.url&&(0,g.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:j.output.url,children:(0,r.__)("More info","really-simple-ssl")}),j.output.clear_cache_id&&(0,g.jsx)("span",{className:"rsssl-task-enable button button-secondary",onClick:()=>(async s=>{v(!0);let e={};e.cache_id=s;try{await a.Eo("clear_cache",e),"rsssl_homepage_contains_404_resources"===s&&(p("404_blocking_threshold","disabled",!1),p("404_blocking_lockout_duration","disabled",!1)),m((0,r.__)("Re-started test","really-simple-ssl")),await l()}catch(s){console.error("Error clearing cache:",s)}finally{v(!1)}})(j.output.clear_cache_id),children:(0,r.__)("Re-check","really-simple-ssl")}),j.output.fix_id&&(0,g.jsxs)("span",{className:"rsssl-task-enable button button-secondary",onClick:()=>(s=>{let e={};e.fix_id=s,v(!0),a.Eo("fix",e).then((s=>{v(!1),m(s.msg),l()}))})(j.output.fix_id),children:[!f&&(0,r.__)("Fix","really-simple-ssl"),f&&(0,g.jsx)(t.default,{name:"loading",color:"black",size:14})]}),!w&&!b&&j.output.url&&(0,g.jsxs)("a",{className:"rsssl-task-enable button button-secondary",href:j.output.url,children:[!f&&(0,r.__)("View","really-simple-ssl"),f&&(0,g.jsx)(t.default,{name:"loading",color:"black",size:14})]}),!w&&j.output.highlight_field_id&&(0,g.jsx)("span",{className:"rsssl-task-enable button button-secondary",onClick:()=>(async()=>{u(s.notice.output.highlight_field_id);let e=o(s.notice.output.highlight_field_id);await x(e.menu_id)})(),children:(0,r.__)("View","really-simple-ssl")}),j.output.plusone&&(0,g.jsx)("span",{className:"rsssl-plusone",children:"1"}),j.output.dismissible&&"completed"!==j.output.status&&(0,g.jsx)("div",{className:"rsssl-task-dismiss",children:(0,g.jsx)("button",{type:"button",onClick:s=>e(j.id),children:(0,g.jsx)(t.default,{name:"times"})})})]})}},5315:(s,e,l)=>{l.d(e,{A:()=>a});var r=l(6064),t=l(790);const a=s=>{let e=s.lines;return e||(e=4),s.error&&(e=0),(0,t.jsxs)("div",{className:"rsssl-placeholder",children:[s.error&&(0,t.jsx)(r.A,{error:s.error}),Array.from({length:e}).map(((s,e)=>(0,t.jsx)("div",{className:"rsssl-placeholder-line"},"placeholder-"+e)))]})}},8069:(s,e,l)=>{l.d(e,{A:()=>o});var r=l(1621),t=l(1674),a=l(7723),i=l(6535),n=(l(1609),l(8743)),c=l(790);const o=(0,r.vt)(((s,e)=>({dummyRiskData:[{id:"force_update",name:"Force Update",value:"l",description:(0,a.__)("Force update the plugin or theme","really-simple-ssl")},{id:"quarantine",name:"Quarantine",value:"m",description:(0,a.__)("Isolates the plugin or theme if no update can be performed","really-simple-ssl")}],riskData:[],riskLevels:{l:1,m:2,h:3,c:4},vulnerabilities:[],processing:!1,dataLoaded:!1,updates:0,HighestRisk:!1,lastChecked:"",vulEnabled:!1,riskNaming:{},vulList:[],setDataLoaded:e=>s({dataLoaded:e}),updateRiskData:async(l,r)=>{if(!e().processing){s({processing:!0}),s((0,i.jM)((s=>{let t=s.riskData.findIndex((s=>s.id===l));s.riskData[t].value=r,s.riskData=e().enforceCascadingRiskLevels(s.riskData)})));try{await t.Eo("vulnerabilities_measures_set",{riskData:e().riskData}),s({dataLoaded:!0,processing:!1})}catch(s){console.log(s)}s({processing:!1})}},enforceCascadingRiskLevels:s=>{if(0===s.length)return s;let l=s.filter((s=>"force_update"===s.id))[0].value,r=s.filter((s=>"quarantine"===s.id))[0].value;l=e().riskLevels.hasOwnProperty(l)?e().riskLevels[l]:5,r=e().riskLevels.hasOwnProperty(r)?e().riskLevels[r]:5;let t=s.findIndex((s=>"quarantine"===s.id));r<l&&(s[t].value=Object.keys(e().riskLevels).find((s=>e().riskLevels[s]===l))),5===l&&(s[t].value="*");let a=l>0?l:0,i=Array.from(Array(a).keys()).map((s=>s));return i=i.map((s=>Object.keys(e().riskLevels).find((l=>e().riskLevels[l]===s)))),s[t].disabledRiskLevels=i,s},fetchFirstRun:async()=>{e().processing||(s({processing:!0}),await t.Eo("vulnerabilities_scan_files"),s({processing:!1}))},fetchVulnerabilities:async()=>{if(e().processing)return;s({processing:!0});let l={};try{const r=await t.Eo("hardening_data",l);let o=[],d=0;r.data.vulList&&(d=r.data.vulnerabilities,o=r.data.vulList,"object"==typeof o&&(o=Object.values(o)),o.forEach((function(s,e){let l=s.update_available?rsssl_settings.plugins_url+"?plugin_status=upgrade":"#settings/vulnerabilities";s.vulnerability_action=(0,c.jsxs)("div",{className:"rsssl-action-buttons",children:[(0,c.jsx)("a",{className:"rsssl-button button-secondary",href:(0,n.g)("https://really-simple-ssl.com/vulnerability/"+s.rss_identifier),target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Details","really-simple-ssl")}),(0,c.jsx)("a",{disabled:!s.update_available,href:l,className:"rsssl-button button-primary",children:(0,a.__)("Update","really-simple-ssl")})]})})));let h=r.data.riskData;Array.isArray(h)||(h=[]),h=e().enforceCascadingRiskLevels(h),s((0,i.jM)((s=>{s.vulnerabilities=d,s.vulList=o,s.updates=r.data.updates,s.dataLoaded=!0,s.riskNaming=r.data.riskNaming,s.lastChecked=r.data.lastChecked,s.vulEnabled=r.data.vulEnabled,s.riskData=h,s.processing=!1})))}catch(s){console.error(s)}},vulnerabilityCount:()=>{let s=e().vulList,l=[];return Object.keys(s).forEach((function(e){l.push(s[e])})),["c","h","m","l"].map((function(s){return{level:s,count:l.filter((function(e){return e.risk_level===s})).length}}))},vulnerabilityScore:()=>{let s=0,l=e().vulList;return Object.keys(l).forEach((function(e){"c"===l[e].risk_level?s=5:s<1&&(s=1)})),s},hardeningScore:()=>{let s=0,l=e().vulnerabilities;for(let e=0;e<l.length;e++)s+=l[e].hardening_score;return s},activateVulnerabilityScanner:async()=>{try{(await t.Eo("rsssl_scan_files")).request_success&&await e().fetchVulnerabilities()}catch(s){console.error(s)}}})))},9306:(s,e,l)=>{l.r(e),l.d(e,{default:()=>i});var r=l(7008),t=l(790);const a=React.forwardRef((function(s,e){const{name:l,color:r,size:a}=s,i=l||"bullet",n=r||"black",c=a||15,o={black:"var(--rsp-black)",green:"var(--rsp-green)",yellow:"var(--rsp-yellow)",orange:"var(--rsp-yellow)","red-faded":"var(--rsp-red-faded)",red:"var(--rsp-red)",grey:"var(--rsp-grey-400)","red-warning":"var(--rsp-red-faded)"};let d="";return"bullet"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"})})),"circle"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"})})),"check"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"})})),"warning"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"})})),"error"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"})})),"times"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"})})),"circle-check"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z"})})),"circle-times"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z"})})),"chevron-up"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M416 352c-8.188 0-16.38-3.125-22.62-9.375L224 173.3l-169.4 169.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25C432.4 348.9 424.2 352 416 352z"})})),"chevron-down"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"})})),"chevron-right"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"})})),"chevron-left"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"})})),"plus"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"})})),"minus"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M400 288h-352c-17.69 0-32-14.32-32-32.01s14.31-31.99 32-31.99h352c17.69 0 32 14.3 32 31.99S417.7 288 400 288z"})})),"sync"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M483.515 28.485L431.35 80.65C386.475 35.767 324.485 8 256 8 123.228 8 14.824 112.338 8.31 243.493 7.971 250.311 13.475 256 20.301 256h28.045c6.353 0 11.613-4.952 11.973-11.294C66.161 141.649 151.453 60 256 60c54.163 0 103.157 21.923 138.614 57.386l-54.128 54.129c-7.56 7.56-2.206 20.485 8.485 20.485H492c6.627 0 12-5.373 12-12V36.971c0-10.691-12.926-16.045-20.485-8.486zM491.699 256h-28.045c-6.353 0-11.613 4.952-11.973 11.294C445.839 370.351 360.547 452 256 452c-54.163 0-103.157-21.923-138.614-57.386l54.128-54.129c7.56-7.56 2.206-20.485-8.485-20.485H20c-6.627 0-12 5.373-12 12v143.029c0 10.691 12.926 16.045 20.485 8.485L80.65 431.35C125.525 476.233 187.516 504 256 504c132.773 0 241.176-104.338 247.69-235.493.339-6.818-5.165-12.507-11.991-12.507z"})})),"sync-error"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M256 79.1C178.5 79.1 112.7 130.1 89.2 199.7C84.96 212.2 71.34 218.1 58.79 214.7C46.23 210.5 39.48 196.9 43.72 184.3C73.6 95.8 157.3 32 256 32C337.5 32 408.8 75.53 448 140.6V104C448 90.75 458.7 80 472 80C485.3 80 496 90.75 496 104V200C496 213.3 485.3 224 472 224H376C362.7 224 352 213.3 352 200C352 186.7 362.7 176 376 176H412.8C383.7 118.1 324.4 80 256 80V79.1zM280 263.1C280 277.3 269.3 287.1 256 287.1C242.7 287.1 232 277.3 232 263.1V151.1C232 138.7 242.7 127.1 256 127.1C269.3 127.1 280 138.7 280 151.1V263.1zM224 352C224 334.3 238.3 319.1 256 319.1C273.7 319.1 288 334.3 288 352C288 369.7 273.7 384 256 384C238.3 384 224 369.7 224 352zM40 432C26.75 432 16 421.3 16 408V311.1C16 298.7 26.75 287.1 40 287.1H136C149.3 287.1 160 298.7 160 311.1C160 325.3 149.3 336 136 336H99.19C128.3 393 187.6 432 256 432C333.5 432 399.3 381.9 422.8 312.3C427 299.8 440.7 293 453.2 297.3C465.8 301.5 472.5 315.1 468.3 327.7C438.4 416.2 354.7 480 256 480C174.5 480 103.2 436.5 64 371.4V408C64 421.3 53.25 432 40 432V432z"})})),"shortcode"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M128 32H32C14.4 32 0 46.4 0 64v384c0 17.6 14.4 32 32 32h96C145.7 480 160 465.7 160 448S145.7 416 128 416H64V96h64C145.7 96 160 81.67 160 64S145.7 32 128 32zM416 32h-96C302.3 32 288 46.33 288 63.1S302.3 96 319.1 96H384v320h-64C302.3 416 288 430.3 288 447.1S302.3 480 319.1 480H416c17.6 0 32-14.4 32-32V64C448 46.4 433.6 32 416 32z"})})),"file"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M0 64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V64zM336 448V160H256C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V448C48 456.8 55.16 464 64 464H320C328.8 464 336 456.8 336 448z"})})),"file-disabled"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M639.1 487.1c0-7.119-3.153-14.16-9.191-18.89l-118.8-93.12l.0013-237.3c0-16.97-6.742-33.26-18.74-45.26l-74.63-74.64C406.6 6.742 390.3 0 373.4 0H192C156.7 0 128 28.65 128 64L128 75.01L38.82 5.11C34.41 1.672 29.19 0 24.04 0C10.19 0-.0002 11.3-.0002 23.1c0 7.12 3.153 14.16 9.192 18.89l591.1 463.1C605.6 510.3 610.8 512 615.1 512C629.8 512 639.1 500.6 639.1 487.1zM464 338.4l-287.1-225.7l-.002-48.51c0-8.836 7.164-16 15.1-16h160l-.0065 79.87c0 17.67 14.33 31.1 31.1 31.1L464 159.1V338.4zM448 463.1H192c-8.834 0-15.1-7.164-15.1-16L176 234.6L128 197L128 447.1c0 35.34 28.65 64 63.1 64H448c20.4 0 38.45-9.851 50.19-24.84l-37.72-29.56C457.5 461.4 453.2 463.1 448 463.1z"})})),"loading"===i&&(d=(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[r],d:"M304 48c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zm0 416c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM48 304c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48zm464-48c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM142.9 437c18.7-18.7 18.7-49.1 0-67.9s-49.1-18.7-67.9 0s-18.7 49.1 0 67.9s49.1 18.7 67.9 0zm0-294.2c18.7-18.7 18.7-49.1 0-67.9S93.7 56.2 75 75s-18.7 49.1 0 67.9s49.1 18.7 67.9 0zM369.1 437c18.7 18.7 49.1 18.7 67.9 0s18.7-49.1 0-67.9s-49.1-18.7-67.9 0s-18.7 49.1 0 67.9z"})})),"file-download"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M216 342.1V240c0-13.25-10.75-24-24-24S168 226.8 168 240v102.1L128.1 303C124.3 298.3 118.2 296 112 296S99.72 298.3 95.03 303c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0L216 342.1zM365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6C384 121.7 377.3 105.4 365.3 93.38zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1V448z"})})),"calendar"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192H48V448z"})})),"calendar-error"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M151.1 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V192H47.1V448C47.1 456.8 55.16 464 63.1 464H284.5C296.7 482.8 312.5 499.1 330.8 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24L151.1 64zM576 368C576 447.5 511.5 512 432 512C352.5 512 287.1 447.5 287.1 368C287.1 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368zM432 416C418.7 416 408 426.7 408 440C408 453.3 418.7 464 432 464C445.3 464 456 453.3 456 440C456 426.7 445.3 416 432 416zM447.1 288C447.1 279.2 440.8 272 431.1 272C423.2 272 415.1 279.2 415.1 288V368C415.1 376.8 423.2 384 431.1 384C440.8 384 447.1 376.8 447.1 368V288z"})})),"help"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 400c-18 0-32-14-32-32s13.1-32 32-32c17.1 0 32 14 32 32S273.1 400 256 400zM325.1 258L280 286V288c0 13-11 24-24 24S232 301 232 288V272c0-8 4-16 12-21l57-34C308 213 312 206 312 198C312 186 301.1 176 289.1 176h-51.1C225.1 176 216 186 216 198c0 13-11 24-24 24s-24-11-24-24C168 159 199 128 237.1 128h51.1C329 128 360 159 360 198C360 222 347 245 325.1 258z"})})),"copy"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"})})),"info"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"})})),"info-open"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464zM256 304c13.25 0 24-10.75 24-24v-128C280 138.8 269.3 128 256 128S232 138.8 232 152v128C232 293.3 242.8 304 256 304zM256 337.1c-17.36 0-31.44 14.08-31.44 31.44C224.6 385.9 238.6 400 256 400s31.44-14.08 31.44-31.44C287.4 351.2 273.4 337.1 256 337.1z"})})),"list"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M184.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM256 96c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zM192 416c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32zM80 464c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48z"})})),"empty"===i&&(d=(0,t.jsx)("svg",{height:c,width:c,"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67"})),"external-link"===i&&(d=(0,t.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,t.jsx)("path",{fill:o[n],d:"M384 32c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96C0 60.7 28.7 32 64 32H384zM160 144c-13.3 0-24 10.7-24 24s10.7 24 24 24h94.1L119 327c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l135-135V328c0 13.3 10.7 24 24 24s24-10.7 24-24V168c0-13.3-10.7-24-24-24H160z"})})),"shield"===i&&(d=(0,t.jsxs)("svg",{height:c,"aria-hidden":"true",focusable:"false",role:"img",id:"uuid-026a4e87-44db-4336-a398-3c29d25b7317",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67",children:[(0,t.jsx)("path",{fill:"#f9c23e",d:"M280.8,62.4L140.5,0,0,62.2V213.3c0,10.7,1.6,21.3,4.9,31.5,9.5,29.9,28.2,52.8,54.4,69.5,26,16.6,52.4,32.4,78.6,48.6,2,1.2,3.4,.9,5.1-.2,19.9-12.3,39.8-24.5,59.6-36.8,12.6-7.8,25.5-15.1,36.5-25.1,26.4-24.2,41.4-53.6,41.5-89.9V62.4h.2Z"}),(0,t.jsxs)("g",{children:[(0,t.jsxs)("g",{children:[(0,t.jsx)("rect",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",x:"155",y:"266.8",width:"77.6",height:"6"}),(0,t.jsx)("path",{fill:"#1d2327",d:"M224.4,204.5h-1.8v-10.1c0-15.9-12.9-28.8-28.8-28.8s-28.8,12.9-28.8,28.8v10.1h-1.8c-4.6,0-8.3,3.7-8.3,8.3v51.3h77.6v-51.3c0-4.6-3.7-8.3-8.3-8.3h.2Zm-45.3-10.1c0-8.1,6.6-14.7,14.7-14.7s14.7,6.6,14.7,14.7v10.1h-29.5v-10.1h.1Zm36.6,32.9l-20.7,20.2c-.2,.2-.3,.4-.5,.6l-2,2c-.2,.2-.4,.4-.6,.5l-3.8,3.8-4.5-4.3-2-2c-.2-.2-.4-.4-.5-.6l-9.1-9.1c-2.4-2.4-2.4-6.4,0-8.8l2-2c2.4-2.4,6.4-2.4,8.8,0l5.3,5.3,16.9-16.4c2.4-2.4,6.4-2.4,8.8,0l2,2c2.4,2.4,2.4,6.4,0,8.8h-.1Z"})]}),(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{fill:"#1d2327",d:"M125.2,192.3c-.5-2.9-.5-5.8-1-8.6-.5-2.4-2.6-4-4.8-3.9-2.3,0-4.2,1.9-4.7,4.3-.2,1,0,1.9,0,2.9,.8,14.6,7.2,26.3,18.2,35.7,2.2,1.9,4.5,3.5,6.9,4.8v-11.8c-7.4-5.8-12.9-14.1-14.6-23.3v-.1Z"}),(0,t.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M96.4,236.1c-13-15-20-32.3-19.5-52.3,.3-13.1,6.1-23.6,16.6-31.2,11.5-8.5,24.5-10.9,38.3-7.1,12.7,3.5,22,10.7,27.4,22,2.1-2.7,4.5-5.2,7.2-7.4-4-7-9.7-12.9-17-17.4-17-10.4-34.9-11.7-52.9-3.1-19,9.1-28.7,24.7-29.3,45.8,0,5.2,.5,10.2,1.4,15.2,3.4,19.4,13.4,35.2,27.2,48.9,1.1,1.1,2.5,1.6,4.1,1.4,1.8-.2,3.2-1.3,3.8-3,.6-1.8,.4-3.6-1-5.1-2.1-2.2-4.2-4.4-6.2-6.7h-.1Z"}),(0,t.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M68.1,89.4c1.1-.4,2.1-1,3.1-1.5,17.9-9.1,36.8-12.7,56.8-11.3,12.2,.8,23.9,3.8,35.1,8.7,3,1.3,5.9,2.8,8.9,4.1,2.7,1.1,5.3,0,6.4-2.4,1.1-2.3,0-5-2.3-6.3-11-5.7-22.4-10-34.6-12.3-4.2-.8-8.5-1.1-12.8-1.7h-17.1c-.3,0-.6,.2-.9,.2-11.2,.8-22,3.2-32.5,7.2-4.9,1.9-9.7,4.1-14.3,6.6-2.5,1.3-3.4,4.2-2.2,6.5,1.1,2.2,4,3.2,6.4,2.1v.1Z"}),(0,t.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M61.1,153.5c13.6-21.6,33.6-31.5,58.7-32.1h6c.8,0,1.6,.2,2.3,.3,13.4,1.7,25.5,6.6,35.9,15.4,5.8,4.9,10.5,10.3,14.1,16.2,3.1-1.2,6.4-2,9.8-2.5-4.7-8.7-11.3-16.3-19.6-22.7-19-14.6-40.5-19.5-64.1-15.1-14.3,2.7-26.9,9-37.7,18.8-10.4,9.5-17.8,20.9-21.2,34.6-2.8,11.3-2.6,22.7-.9,34.1,1.1,7,2.9,13.9,5.4,20.5,.9,2.3,3,3.7,5.2,3.5,2.1-.2,3.9-2,4.3-4.3,.2-1.1-.2-2.2-.6-3.2-4.3-11.9-6.3-24.1-5.6-36.7,.5-9.6,2.8-18.7,8-26.8h0Z"}),(0,t.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M139.8,240.6c-20.9-8.4-34.1-23.7-38.4-46.7-.8-4.3-1.4-8.7-.4-13,1.8-7.1,6.4-11.4,13.4-13.5,11.8-3.4,24.7,5.3,24.5,17.6,0,4.8,1.4,9.3,4,13.4,.3,.5,.6,.9,.9,1.3,1.6-2.4,3.7-4.6,6.1-6.2,0-.9,0-1.9,.2-2.8-.7-1.7-1.1-3.5-1.2-5.3-.3-6.1-1.6-11.9-5.5-16.8-6.8-8.8-15.9-12.4-27-11.5-11.3,.9-21.6,9.6-24.5,20.6-1.8,6.6-.9,13.3,.4,19.8,2.4,12.9,8.2,24,17.1,33.7,8.6,9.4,18.8,15.8,30.6,19.8v-10.4h-.2Z"}),(0,t.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M47.5,133.2c6.8-8.8,15-16,24.6-21.6,20.8-12,43.2-15.2,66.6-11,14.8,2.7,28.2,8.7,39.9,18.2,6.3,5,11.6,11,16.4,17.4,1.9,2.5,4.8,2.8,7,1.1,2.1-1.7,2.4-4.5,.6-7-5.9-8.2-12.8-15.3-20.9-21.3-18.3-13.6-39.1-19.6-61.7-20-6.3,0-12.5,.6-18.6,1.6-15.7,2.8-30.1,8.6-42.9,18.1-8.3,6.2-15.5,13.5-21.5,22-1.6,2.3-1.3,5.1,.7,6.7,2.1,1.7,4.9,1.5,6.8-.7,1-1.2,1.9-2.5,2.9-3.7l.1,.2Z"})]})]})]})),"file-search"===i&&(d=(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:c,fill:"none",viewBox:"0 0 384 512",children:(0,t.jsx)("path",{d:"M374.6 150.6l-141.3-141.3C227.4 3.371 219.2 0 210.7 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.35 0 64-28.66 64-64V173.3C384 164.8 380.6 156.6 374.6 150.6zM224 22.63L361.4 160H248C234.8 160 224 149.2 224 136V22.63zM368 448c0 26.47-21.53 48-48 48H64c-26.47 0-48-21.53-48-48V64c0-26.47 21.53-48 48-48h144v120c0 22.06 17.94 40 40 40h120V448zM176 208c-53.02 0-96 42.98-96 96s42.98 96 96 96c23.62 0 44.96-8.859 61.68-23l68.66 68.66C307.9 447.2 309.9 448 312 448s4.094-.7813 5.656-2.344c3.125-3.125 3.125-8.188 0-11.31l-68.66-68.66C263.1 348.1 272 327.6 272 304C272 250.1 229 208 176 208zM176 384C131.9 384 96 348.1 96 304S131.9 224 176 224S256 259.9 256 304S220.1 384 176 384z"})})),"download"===i&&(d=(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:c,fill:"none",viewBox:"0 0 512 512",children:(0,t.jsx)("path",{d:"M480 352h-88C387.6 352 384 355.6 384 360s3.582 8 8 8H480c8.822 0 16 7.178 16 16v96c0 8.822-7.178 16-16 16H32c-8.822 0-16-7.178-16-16v-96c0-8.822 7.178-16 16-16h88C124.4 368 128 364.4 128 360S124.4 352 120 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96C512 366.3 497.7 352 480 352zM464 432c0-17.6-14.4-32-32-32s-32 14.4-32 32c0 17.6 14.4 32 32 32S464 449.6 464 432zM416 432c0-8.822 7.178-16 16-16s16 7.178 16 16S440.8 448 432 448S416 440.8 416 432zM250.3 413.7c3.125 3.125 8.188 3.125 11.31 0l152-152C415.2 260.1 416 258.1 416 256s-.7813-4.094-2.344-5.656c-3.125-3.125-8.188-3.125-11.31 0L264 388.7V8C264 3.594 260.4 0 256 0S248 3.594 248 8v380.7L109.7 250.3c-3.125-3.125-8.188-3.125-11.31 0s-3.125 8.188 0 11.31L250.3 413.7z"})})),"satellite-dish"===i&&(d=(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",color:o[n],height:c,viewBox:"0 0 512 512",children:(0,t.jsx)("path",{d:"M208 0c-8.8 0-16 7.2-16 16s7.2 16 16 16c150.2 0 272 121.8 272 272c0 8.8 7.2 16 16 16s16-7.2 16-16C512 136.1 375.9 0 208 0zm0 96c-8.8 0-16 7.2-16 16s7.2 16 16 16c97.2 0 176 78.8 176 176c0 8.8 7.2 16 16 16s16-7.2 16-16c0-114.9-93.1-208-208-208zM32 304c0-24.5 5-47.7 13.9-68.8L276.8 466.1C255.7 475 232.5 480 208 480c-97.2 0-176-78.8-176-176zm33.5-94.5c-14-14-37.3-12.1-45.7 5.8C7.1 242.2 0 272.3 0 304C0 418.9 93.1 512 208 512c31.7 0 61.8-7.1 88.7-19.8c17.9-8.4 19.8-31.8 5.8-45.7L195.3 339.3l24-24c6.3 3 13.3 4.7 20.7 4.7c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48c0 7.4 1.7 14.4 4.7 20.7l-24 24L65.5 209.5zM224 272a16 16 0 1 1 32 0 16 16 0 1 1 -32 0z"})})),"rotate-light"===i&&(d=(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",color:o[n],height:c,viewBox:"0 0 512 512",children:(0,t.jsx)("path",{d:"M426.1 301.2C406.2 376.5 337.6 432 256 432c-51 0-96.9-21.7-129-56.3l41-41c5.1-5.1 8-12.1 8-19.3c0-15.1-12.2-27.3-27.3-27.3H48c-8.8 0-16 7.2-16 16V404.7C32 419.8 44.2 432 59.3 432c7.2 0 14.2-2.9 19.3-8l25.7-25.7C142.3 438.7 196.2 464 256 464c97.4 0 179.2-67 201.8-157.4c2.4-9.7-5.2-18.6-15.2-18.6c-7.8 0-14.5 5.6-16.5 13.2zM385 136.3l-41 41c-5.1 5.1-8 12.1-8 19.3c0 15.1 12.2 27.3 27.3 27.3H464c8.8 0 16-7.2 16-16V107.3C480 92.2 467.8 80 452.7 80c-7.2 0-14.2 2.9-19.3 8l-25.7 25.7C369.7 73.3 315.8 48 256 48C158.6 48 76.8 115 54.2 205.4c-2.4 9.7 5.2 18.6 15.2 18.6c7.8 0 14.5-5.6 16.5-13.2C105.8 135.5 174.4 80 256 80c51 0 96.9 21.7 129.1 56.3zM448 192H374.6L448 118.6V192zM64 320h73.4L64 393.4V320z"})})),"rotate-exclamation-light"===i&&(d=(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:[(0,t.jsx)("defs",{children:(0,t.jsx)("style",{children:`\n .fa-secondary {\n opacity: 0.4;\n color: ${o[n]};\n }\n `})}),(0,t.jsx)("path",{className:"fa-primary",d:"M280 152c0-13.3-10.7-24-24-24s-24 10.7-24 24V264c0 13.3 10.7 24 24 24s24-10.7 24-24V152zM256 384a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"}),(0,t.jsx)("path",{className:"fa-secondary",d:"M432 117.4C391 65.4 327.4 32 256 32C158.4 32 75.5 94.4 44.8 181.3c-5.9 16.7 2.8 34.9 19.5 40.8s34.9-2.8 40.8-19.5C127.1 140.5 186.4 96 256 96c52.3 0 98.8 25.1 128 64H352c-17.7 0-32 14.3-32 32s14.3 32 32 32h84.3c.5 0 1 0 1.5 0H464c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v37.4zm35.2 213.2c5.9-16.7-2.8-34.9-19.5-40.8s-34.9 2.8-40.8 19.5C384.9 371.5 325.6 416 256 416c-52.3 0-98.8-25.1-128-64h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H48c-17.7 0-32 14.3-32 32V432c0 17.7 14.3 32 32 32s32-14.3 32-32V394.6c41 52 104.6 85.4 176 85.4c97.6 0 180.5-62.4 211.2-149.3z"})]})),"radar-duotone"===i&&(d=(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:[(0,t.jsx)("defs",{children:(0,t.jsx)("style",{children:`\n .fa-secondary {\n color: ${o[n]} !important;\n } \n `})}),(0,t.jsx)("path",{className:"fa-primary",d:"M497 49c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-182 182c-7.7-3.3-16.1-5.1-25-5.1c-35.3 0-64 28.7-64 64s28.7 64 64 64s64-28.7 64-64c0-8.9-1.8-17.3-5.1-25L497 49z"}),(0,t.jsx)("path",{className:"fa-secondary",d:"M350.9 127.2l-46.1 46.1c-14.3-8.4-31-13.3-48.8-13.3c-53 0-96 43-96 96s43 96 96 96s96-43 96-96h64c0 73.5-49.6 135.5-117.2 154.2C290.8 394.7 274.7 384 256 384s-34.8 10.7-42.8 26.2c-51.7-14.3-92.8-53.9-109.4-104.6c14.4-8.3 24.1-23.8 24.1-41.7c0-19.4-11.5-36.1-28-43.7C116.2 149.1 179.9 96 256 96c35.5 0 68.3 11.6 94.9 31.2zm22.8-22.8C341.2 79 300.4 64 256 64C163.1 64 85.7 129.9 67.9 217.6C47.2 222.9 32 241.7 32 264c0 23.8 17.3 43.6 40.1 47.4c19.3 64.3 71.5 114.4 137 130.9C213.8 463.8 233 480 256 480s42.2-16.2 46.9-37.8C386.3 421.3 448 345.9 448 256h64c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0c62.1 0 118.9 22.1 163.3 58.8l-45.5 45.5z"})]})),"satellite-dish-duotone"===i&&(d=(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:[(0,t.jsx)("defs",{children:(0,t.jsx)("style",{children:`\n .fa-secondary {\n color: ${o[n]} !important;\n } \n `})}),(0,t.jsx)("path",{className:"fa-primary",d:"M60.6 220.6c-14.5-14.5-38.8-11.8-46.3 7.3C5.1 251.5 0 277.1 0 304C0 418.9 93.1 512 208 512c26.9 0 52.5-5.1 76.1-14.4c19-7.5 21.8-31.8 7.3-46.3L187.3 347.3l28.4-28.4c2.6 .7 5.4 1.1 8.3 1.1c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32c0 2.9 .4 5.6 1.1 8.3l-28.4 28.4L60.6 220.6z"}),(0,t.jsx)("path",{className:"fa-secondary",d:"M224 0c-17.7 0-32 14.3-32 32s14.3 32 32 32c123.7 0 224 100.3 224 224c0 17.7 14.3 32 32 32s32-14.3 32-32C512 128.9 383.1 0 224 0zm0 96c-17.7 0-32 14.3-32 32s14.3 32 32 32c70.7 0 128 57.3 128 128c0 17.7 14.3 32 32 32s32-14.3 32-32c0-106-86-192-192-192z"})]})),"spinner"===i&&(d=(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"20",height:"20",children:[(0,t.jsx)("defs",{children:(0,t.jsx)("style",{children:"\n .fa-secondary {\n opacity: 0.4;\n }\n "})}),(0,t.jsx)("path",{className:"fa-primary",d:"M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM96 256A48 48 0 1 0 0 256a48 48 0 1 0 96 0zM75 142.9A48 48 0 1 0 142.9 75 48 48 0 1 0 75 142.9z"}),(0,t.jsx)("path",{className:"fa-secondary",d:"M369.1 75A48 48 0 1 1 437 142.9 48 48 0 1 1 369.1 75zM416 256a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM208 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM75 369.1A48 48 0 1 1 142.9 437 48 48 0 1 1 75 369.1zm294.2 0A48 48 0 1 1 437 437a48 48 0 1 1 -67.9-67.9z"})]})),(0,t.jsx)("div",{...s,ref:e,children:d})})),i=({name:s,color:e,size:l,tooltip:i})=>{const n=s||"bullet",c=e||"black";let o=l||15,d=i?"tooltip-":"",h=Math.floor(1e9*Math.random());return i?(0,t.jsxs)("div",{className:"rsssl-"+d+"icon rsssl-icon-"+n+" rsssl-"+c,children:[(0,t.jsx)(a,{"data-for":".rsssl-"+h,name:n,color:c,size:o,id:h,className:"rsssl-"+h,"data-tooltip-delay-hide":200}),(0,t.jsx)(r.m_,{style:{zIndex:99},id:h,place:"bottom",anchorSelect:".rsssl-"+h,content:i})]}):(0,t.jsx)("div",{className:"rsssl-"+d+"icon rsssl-icon-"+n+" rsssl-"+c,children:(0,t.jsx)(a,{name:n,color:c,size:o})})}}}]); build/8.a58b0fbbca98fed315b4.js 0000777 00000110354 15252021227 0011474 0 ustar 00 (self.webpackChunkreally_simple_ssl=self.webpackChunkreally_simple_ssl||[]).push([[8],{6942:(e,t)=>{var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=i(e,l(o)))}return e}function l(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 o in e)n.call(e,o)&&e[o]&&(t=i(t,o));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},7663:(e,t,o)=>{"use strict";o.d(t,{UE:()=>ce,ll:()=>re,rD:()=>ae,UU:()=>se,cY:()=>le,BN:()=>ie});const n=Math.min,r=Math.max,l=Math.round,i=Math.floor,s=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},a={start:"end",end:"start"};function u(e,t,o){return r(e,n(t,o))}function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function y(e){return"y"===e?"height":"width"}function v(e){return["top","bottom"].includes(f(e))?"y":"x"}function h(e){return m(v(e))}function g(e){return e.replace(/start|end/g,(e=>a[e]))}function w(e){return e.replace(/left|right|bottom|top/g,(e=>c[e]))}function b(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function x(e){const{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function _(e,t,o){let{reference:n,floating:r}=e;const l=v(t),i=h(t),s=y(i),c=f(t),a="y"===l,u=n.x+n.width/2-r.width/2,d=n.y+n.height/2-r.height/2,m=n[s]/2-r[s]/2;let g;switch(c){case"top":g={x:u,y:n.y-r.height};break;case"bottom":g={x:u,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:d};break;case"left":g={x:n.x-r.width,y:d};break;default:g={x:n.x,y:n.y}}switch(p(t)){case"start":g[i]-=m*(o&&a?-1:1);break;case"end":g[i]+=m*(o&&a?-1:1)}return g}async function E(e,t){var o;void 0===t&&(t={});const{x:n,y:r,platform:l,rects:i,elements:s,strategy:c}=e,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=d(t,e),y=b(m),v=s[p?"floating"===f?"reference":"floating":f],h=x(await l.getClippingRect({element:null==(o=await(null==l.isElement?void 0:l.isElement(v)))||o?v:v.contextElement||await(null==l.getDocumentElement?void 0:l.getDocumentElement(s.floating)),boundary:a,rootBoundary:u,strategy:c})),g="floating"===f?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(null==l.getOffsetParent?void 0:l.getOffsetParent(s.floating)),_=await(null==l.isElement?void 0:l.isElement(w))&&await(null==l.getScale?void 0:l.getScale(w))||{x:1,y:1},E=x(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:w,strategy:c}):g);return{top:(h.top-E.top+y.top)/_.y,bottom:(E.bottom-h.bottom+y.bottom)/_.y,left:(h.left-E.left+y.left)/_.x,right:(E.right-h.right+y.right)/_.x}}function S(){return"undefined"!=typeof window}function A(e){return O(e)?(e.nodeName||"").toLowerCase():"#document"}function R(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function T(e){var t;return null==(t=(O(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function O(e){return!!S()&&(e instanceof Node||e instanceof R(e).Node)}function k(e){return!!S()&&(e instanceof Element||e instanceof R(e).Element)}function L(e){return!!S()&&(e instanceof HTMLElement||e instanceof R(e).HTMLElement)}function C(e){return!(!S()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof R(e).ShadowRoot)}function D(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=P(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!["inline","contents"].includes(r)}function N(e){return["table","td","th"].includes(A(e))}function B(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function $(e){const t=j(),o=k(e)?P(e):e;return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!t&&!!o.backdropFilter&&"none"!==o.backdropFilter||!t&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((e=>(o.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(o.contain||"").includes(e)))}function j(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function I(e){return["html","body","#document"].includes(A(e))}function P(e){return R(e).getComputedStyle(e)}function H(e){return k(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function W(e){if("html"===A(e))return e;const t=e.assignedSlot||e.parentNode||C(e)&&e.host||T(e);return C(t)?t.host:t}function z(e){const t=W(e);return I(t)?e.ownerDocument?e.ownerDocument.body:e.body:L(t)&&D(t)?t:z(t)}function F(e,t,o){var n;void 0===t&&(t=[]),void 0===o&&(o=!0);const r=z(e),l=r===(null==(n=e.ownerDocument)?void 0:n.body),i=R(r);if(l){const e=M(i);return t.concat(i,i.visualViewport||[],D(r)?r:[],e&&o?F(e):[])}return t.concat(r,F(r,[],o))}function M(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function V(e){const t=P(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=L(e),i=r?e.offsetWidth:o,s=r?e.offsetHeight:n,c=l(o)!==i||l(n)!==s;return c&&(o=i,n=s),{width:o,height:n,$:c}}function q(e){return k(e)?e:e.contextElement}function K(e){const t=q(e);if(!L(t))return s(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:i}=V(t);let c=(i?l(o.width):o.width)/n,a=(i?l(o.height):o.height)/r;return c&&Number.isFinite(c)||(c=1),a&&Number.isFinite(a)||(a=1),{x:c,y:a}}const U=s(0);function X(e){const t=R(e);return j()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:U}function Y(e,t,o,n){void 0===t&&(t=!1),void 0===o&&(o=!1);const r=e.getBoundingClientRect(),l=q(e);let i=s(1);t&&(n?k(n)&&(i=K(n)):i=K(e));const c=function(e,t,o){return void 0===t&&(t=!1),!(!o||t&&o!==R(e))&&t}(l,o,n)?X(l):s(0);let a=(r.left+c.x)/i.x,u=(r.top+c.y)/i.y,d=r.width/i.x,f=r.height/i.y;if(l){const e=R(l),t=n&&k(n)?R(n):n;let o=e,r=M(o);for(;r&&n&&t!==o;){const e=K(r),t=r.getBoundingClientRect(),n=P(r),l=t.left+(r.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(n.paddingTop))*e.y;a*=e.x,u*=e.y,d*=e.x,f*=e.y,a+=l,u+=i,o=R(r),r=M(o)}}return x({width:d,height:f,x:a,y:u})}function Z(e,t){const o=H(e).scrollLeft;return t?t.left+o:Y(T(e)).left+o}function G(e,t,o){let n;if("viewport"===t)n=function(e,t){const o=R(e),n=T(e),r=o.visualViewport;let l=n.clientWidth,i=n.clientHeight,s=0,c=0;if(r){l=r.width,i=r.height;const e=j();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:l,height:i,x:s,y:c}}(e,o);else if("document"===t)n=function(e){const t=T(e),o=H(e),n=e.ownerDocument.body,l=r(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=r(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+Z(e);const c=-o.scrollTop;return"rtl"===P(n).direction&&(s+=r(t.clientWidth,n.clientWidth)-l),{width:l,height:i,x:s,y:c}}(T(e));else if(k(t))n=function(e,t){const o=Y(e,!0,"fixed"===t),n=o.top+e.clientTop,r=o.left+e.clientLeft,l=L(e)?K(e):s(1);return{width:e.clientWidth*l.x,height:e.clientHeight*l.y,x:r*l.x,y:n*l.y}}(t,o);else{const o=X(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return x(n)}function J(e,t){const o=W(e);return!(o===t||!k(o)||I(o))&&("fixed"===P(o).position||J(o,t))}function Q(e,t,o){const n=L(t),r=T(t),l="fixed"===o,i=Y(e,!0,l,t);let c={scrollLeft:0,scrollTop:0};const a=s(0);if(n||!n&&!l)if(("body"!==A(t)||D(r))&&(c=H(t)),n){const e=Y(t,!0,l,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=Z(r));let u=0,d=0;if(r&&!n&&!l){const e=r.getBoundingClientRect();d=e.top+c.scrollTop,u=e.left+c.scrollLeft-Z(r,e)}return{x:i.left+c.scrollLeft-a.x-u,y:i.top+c.scrollTop-a.y-d,width:i.width,height:i.height}}function ee(e){return"static"===P(e).position}function te(e,t){if(!L(e)||"fixed"===P(e).position)return null;if(t)return t(e);let o=e.offsetParent;return T(e)===o&&(o=o.ownerDocument.body),o}function oe(e,t){const o=R(e);if(B(e))return o;if(!L(e)){let t=W(e);for(;t&&!I(t);){if(k(t)&&!ee(t))return t;t=W(t)}return o}let n=te(e,t);for(;n&&N(n)&&ee(n);)n=te(n,t);return n&&I(n)&&ee(n)&&!$(n)?o:n||function(e){let t=W(e);for(;L(t)&&!I(t);){if($(t))return t;if(B(t))return null;t=W(t)}return null}(e)||o}const ne={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const l="fixed"===r,i=T(n),c=!!t&&B(t.floating);if(n===i||c&&l)return o;let a={scrollLeft:0,scrollTop:0},u=s(1);const d=s(0),f=L(n);if((f||!f&&!l)&&(("body"!==A(n)||D(i))&&(a=H(n)),L(n))){const e=Y(n);u=K(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-a.scrollLeft*u.x+d.x,y:o.y*u.y-a.scrollTop*u.y+d.y}},getDocumentElement:T,getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:l,strategy:i}=e;const s=[..."clippingAncestors"===o?B(t)?[]:function(e,t){const o=t.get(e);if(o)return o;let n=F(e,[],!1).filter((e=>k(e)&&"body"!==A(e))),r=null;const l="fixed"===P(e).position;let i=l?W(e):e;for(;k(i)&&!I(i);){const t=P(i),o=$(i);o||"fixed"!==t.position||(r=null),(l?!o&&!r:!o&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||D(i)&&!o&&J(e,i))?n=n.filter((e=>e!==i)):r=t,i=W(i)}return t.set(e,n),n}(t,this._c):[].concat(o),l],c=s[0],a=s.reduce(((e,o)=>{const l=G(t,o,i);return e.top=r(l.top,e.top),e.right=n(l.right,e.right),e.bottom=n(l.bottom,e.bottom),e.left=r(l.left,e.left),e}),G(t,c,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:oe,getElementRects:async function(e){const t=this.getOffsetParent||oe,o=this.getDimensions,n=await o(e.floating);return{reference:Q(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:o}=V(e);return{width:t,height:o}},getScale:K,isElement:k,isRTL:function(e){return"rtl"===P(e).direction}};function re(e,t,o,l){void 0===l&&(l={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:d=!1}=l,f=q(e),p=s||c?[...f?F(f):[],...F(t)]:[];p.forEach((e=>{s&&e.addEventListener("scroll",o,{passive:!0}),c&&e.addEventListener("resize",o)}));const m=f&&u?function(e,t){let o,l=null;const s=T(e);function c(){var e;clearTimeout(o),null==(e=l)||e.disconnect(),l=null}return function a(u,d){void 0===u&&(u=!1),void 0===d&&(d=1),c();const{left:f,top:p,width:m,height:y}=e.getBoundingClientRect();if(u||t(),!m||!y)return;const v={rootMargin:-i(p)+"px "+-i(s.clientWidth-(f+m))+"px "+-i(s.clientHeight-(p+y))+"px "+-i(f)+"px",threshold:r(0,n(1,d))||1};let h=!0;function g(e){const t=e[0].intersectionRatio;if(t!==d){if(!h)return a();t?a(!1,t):o=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{l=new IntersectionObserver(g,{...v,root:s.ownerDocument})}catch(e){l=new IntersectionObserver(g,v)}l.observe(e)}(!0),c}(f,o):null;let y,v=-1,h=null;a&&(h=new ResizeObserver((e=>{let[n]=e;n&&n.target===f&&h&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),o()})),f&&!d&&h.observe(f),h.observe(t));let g=d?Y(e):null;return d&&function t(){const n=Y(e);!g||n.x===g.x&&n.y===g.y&&n.width===g.width&&n.height===g.height||o(),g=n,y=requestAnimationFrame(t)}(),o(),()=>{var e;p.forEach((e=>{s&&e.removeEventListener("scroll",o),c&&e.removeEventListener("resize",o)})),null==m||m(),null==(e=h)||e.disconnect(),h=null,d&&cancelAnimationFrame(y)}}const le=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:l,placement:i,middlewareData:s}=t,c=await async function(e,t){const{placement:o,platform:n,elements:r}=e,l=await(null==n.isRTL?void 0:n.isRTL(r.floating)),i=f(o),s=p(o),c="y"===v(o),a=["left","top"].includes(i)?-1:1,u=l&&c?-1:1,m=d(t,e);let{mainAxis:y,crossAxis:h,alignmentAxis:g}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&"number"==typeof g&&(h="end"===s?-1*g:g),c?{x:h*u,y:y*a}:{x:y*a,y:h*u}}(t,e);return i===(null==(o=s.offset)?void 0:o.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:r+c.x,y:l+c.y,data:{...c,placement:i}}}}},ie=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:r}=t,{mainAxis:l=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:o}=e;return{x:t,y:o}}},...c}=d(e,t),a={x:o,y:n},p=await E(t,c),y=v(f(r)),h=m(y);let g=a[h],w=a[y];if(l){const e="y"===h?"bottom":"right";g=u(g+p["y"===h?"top":"left"],g,g-p[e])}if(i){const e="y"===y?"bottom":"right";w=u(w+p["y"===y?"top":"left"],w,w-p[e])}const b=s.fn({...t,[h]:g,[y]:w});return{...b,data:{x:b.x-o,y:b.y-n,enabled:{[h]:l,[y]:i}}}}}},se=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:l,rects:i,initialPlacement:s,platform:c,elements:a}=t,{mainAxis:u=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:S=!0,...A}=d(e,t);if(null!=(o=l.arrow)&&o.alignmentOffset)return{};const R=f(r),T=v(s),O=f(s)===s,k=await(null==c.isRTL?void 0:c.isRTL(a.floating)),L=b||(O||!S?[w(s)]:function(e){const t=w(e);return[g(e),t,g(t)]}(s)),C="none"!==_;!b&&C&&L.push(...function(e,t,o,n){const r=p(e);let l=function(e,t,o){const n=["left","right"],r=["right","left"],l=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return o?t?r:n:t?n:r;case"left":case"right":return t?l:i;default:return[]}}(f(e),"start"===o,n);return r&&(l=l.map((e=>e+"-"+r)),t&&(l=l.concat(l.map(g)))),l}(s,S,_,k));const D=[s,...L],N=await E(t,A),B=[];let $=(null==(n=l.flip)?void 0:n.overflows)||[];if(u&&B.push(N[R]),m){const e=function(e,t,o){void 0===o&&(o=!1);const n=p(e),r=h(e),l=y(r);let i="x"===r?n===(o?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[l]>t.floating[l]&&(i=w(i)),[i,w(i)]}(r,i,k);B.push(N[e[0]],N[e[1]])}if($=[...$,{placement:r,overflows:B}],!B.every((e=>e<=0))){var j,I;const e=((null==(j=l.flip)?void 0:j.index)||0)+1,t=D[e];if(t)return{data:{index:e,overflows:$},reset:{placement:t}};let o=null==(I=$.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!o)switch(x){case"bestFit":{var P;const e=null==(P=$.filter((e=>{if(C){const t=v(e.placement);return t===T||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(o=e);break}case"initialPlacement":o=s}if(r!==o)return{reset:{placement:o}}}return{}}}},ce=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:r,placement:l,rects:i,platform:s,elements:c,middlewareData:a}=t,{element:f,padding:m=0}=d(e,t)||{};if(null==f)return{};const v=b(m),g={x:o,y:r},w=h(l),x=y(w),_=await s.getDimensions(f),E="y"===w,S=E?"top":"left",A=E?"bottom":"right",R=E?"clientHeight":"clientWidth",T=i.reference[x]+i.reference[w]-g[w]-i.floating[x],O=g[w]-i.reference[w],k=await(null==s.getOffsetParent?void 0:s.getOffsetParent(f));let L=k?k[R]:0;L&&await(null==s.isElement?void 0:s.isElement(k))||(L=c.floating[R]||i.floating[x]);const C=T/2-O/2,D=L/2-_[x]/2-1,N=n(v[S],D),B=n(v[A],D),$=N,j=L-_[x]-B,I=L/2-_[x]/2+C,P=u($,I,j),H=!a.arrow&&null!=p(l)&&I!==P&&i.reference[x]/2-(I<$?N:B)-_[x]/2<0,W=H?I<$?I-$:I-j:0;return{[w]:g[w]+W,data:{[w]:P,centerOffset:I-P-W,...H&&{alignmentOffset:W}},reset:H}}}),ae=(e,t,o)=>{const n=new Map,r={platform:ne,...o},l={...r.platform,_c:n};return(async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:l=[],platform:i}=o,s=l.filter(Boolean),c=await(null==i.isRTL?void 0:i.isRTL(t));let a=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=_(a,n,c),f=n,p={},m=0;for(let o=0;o<s.length;o++){const{name:l,fn:y}=s[o],{x:v,y:h,data:g,reset:w}=await y({x:u,y:d,initialPlacement:n,placement:f,strategy:r,middlewareData:p,rects:a,platform:i,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=h?h:d,p={...p,[l]:{...p[l],...g}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(a=!0===w.rects?await i.getElementRects({reference:e,floating:t,strategy:r}):w.rects),({x:u,y:d}=_(a,f,c))),o=-1)}return{x:u,y:d,placement:f,strategy:r,middlewareData:p}})(e,t,{...r,platform:l})}},7008:(e,t,o)=>{"use strict";o.d(t,{m_:()=>S});var n=o(1609),r=o(7663),l=o(6942);const i={core:!1,base:!1};function s({css:e,id:t="react-tooltip-base-styles",type:o="base",ref:n}){var r,l;if(!e||"undefined"==typeof document||i[o])return;if("core"===o&&"undefined"!=typeof process&&(null===(r=null===process||void 0===process?void 0:process.env)||void 0===r?void 0:r.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==o&&"undefined"!=typeof process&&(null===(l=null===process||void 0===process?void 0:process.env)||void 0===l?void 0:l.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===o&&(t="react-tooltip-core-styles"),n||(n={});const{insertAt:s}=n;if(document.getElementById(t))return;const c=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.id=t,a.type="text/css","top"===s&&c.firstChild?c.insertBefore(a,c.firstChild):c.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e)),i[o]=!0}const c=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:o=null,place:n="top",offset:l=10,strategy:i="absolute",middlewares:s=[(0,r.cY)(Number(l)),(0,r.UU)({fallbackAxisSideDirection:"start"}),(0,r.BN)({padding:5})],border:c})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};const a=s;return o?(a.push((0,r.UE)({element:o,padding:5})),(0,r.rD)(e,t,{placement:n,strategy:i,middleware:a}).then((({x:e,y:t,placement:o,middlewareData:n})=>{var r,l;const i={left:`${e}px`,top:`${t}px`,border:c},{x:s,y:a}=null!==(r=n.arrow)&&void 0!==r?r:{x:0,y:0},u=null!==(l={top:"bottom",right:"left",bottom:"top",left:"right"}[o.split("-")[0]])&&void 0!==l?l:"bottom",d=c&&{borderBottom:c,borderRight:c};let f=0;if(c){const e=`${c}`.match(/(\d+)px/);f=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:i,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=a?`${a}px`:"",right:"",bottom:"",...d,[u]:`-${4+f}px`},place:o}}))):(0,r.rD)(e,t,{placement:"bottom",strategy:i,middleware:a}).then((({x:e,y:t,placement:o})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:o})))},a=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),u=(e,t,o)=>{let n=null;const r=function(...r){const l=()=>{n=null,o||e.apply(this,r)};o&&!n&&(e.apply(this,r),n=setTimeout(l,t)),o||(n&&clearTimeout(n),n=setTimeout(l,t))};return r.cancel=()=>{n&&(clearTimeout(n),n=null)},r},d=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,f=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,o)=>f(e,t[o])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!d(e)||!d(t))return e===t;const o=Object.keys(e),n=Object.keys(t);return o.length===n.length&&o.every((o=>f(e[o],t[o])))},p=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const o=t.getPropertyValue(e);return"auto"===o||"scroll"===o}))},m=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(p(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},y="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,v=e=>{e.current&&(clearTimeout(e.current),e.current=null)},h={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},g=(0,n.createContext)({getTooltipData:()=>h});function w(e="DEFAULT_TOOLTIP_ID"){return(0,n.useContext)(g).getTooltipData(e)}var b={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},x={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const _=({forwardRef:e,id:t,className:o,classNameArrow:i,variant:s="dark",anchorId:a,anchorSelect:d,place:p="top",offset:h=10,events:g=["hover"],openOnClick:_=!1,positionStrategy:E="absolute",middlewares:S,wrapper:A,delayShow:R=0,delayHide:T=0,float:O=!1,hidden:k=!1,noArrow:L=!1,clickable:C=!1,closeOnEsc:D=!1,closeOnScroll:N=!1,closeOnResize:B=!1,openEvents:$,closeEvents:j,globalCloseEvents:I,imperativeModeOnly:P,style:H,position:W,afterShow:z,afterHide:F,disableTooltip:M,content:V,contentWrapperRef:q,isOpen:K,defaultIsOpen:U=!1,setIsOpen:X,activeAnchor:Y,setActiveAnchor:Z,border:G,opacity:J,arrowColor:Q,role:ee="tooltip"})=>{var te;const oe=(0,n.useRef)(null),ne=(0,n.useRef)(null),re=(0,n.useRef)(null),le=(0,n.useRef)(null),ie=(0,n.useRef)(null),[se,ce]=(0,n.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:p}),[ae,ue]=(0,n.useState)(!1),[de,fe]=(0,n.useState)(!1),[pe,me]=(0,n.useState)(null),ye=(0,n.useRef)(!1),ve=(0,n.useRef)(null),{anchorRefs:he,setActiveAnchor:ge}=w(t),we=(0,n.useRef)(!1),[be,xe]=(0,n.useState)([]),_e=(0,n.useRef)(!1),Ee=_||g.includes("click"),Se=Ee||(null==$?void 0:$.click)||(null==$?void 0:$.dblclick)||(null==$?void 0:$.mousedown),Ae=$?{...$}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!$&&Ee&&Object.assign(Ae,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Re=j?{...j}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!j&&Ee&&Object.assign(Re,{mouseleave:!1,blur:!1,mouseout:!1});const Te=I?{...I}:{escape:D||!1,scroll:N||!1,resize:B||!1,clickOutsideAnchor:Se||!1};P&&(Object.assign(Ae,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Re,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Te,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),y((()=>(_e.current=!0,()=>{_e.current=!1})),[]);const Oe=e=>{_e.current&&(e&&fe(!0),setTimeout((()=>{_e.current&&(null==X||X(e),void 0===K&&ue(e))}),10))};(0,n.useEffect)((()=>{if(void 0===K)return()=>null;K&&fe(!0);const e=setTimeout((()=>{ue(K)}),10);return()=>{clearTimeout(e)}}),[K]),(0,n.useEffect)((()=>{if(ae!==ye.current)if(v(ie),ye.current=ae,ae)null==z||z();else{const e=(()=>{const e=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!e)return 0;const[,t,o]=e;return Number(t)*("ms"===o?1:1e3)})();ie.current=setTimeout((()=>{fe(!1),me(null),null==F||F()}),e+25)}}),[ae]);const ke=e=>{ce((t=>f(t,e)?t:e))},Le=(e=R)=>{v(re),de?Oe(!0):re.current=setTimeout((()=>{Oe(!0)}),e)},Ce=(e=T)=>{v(le),le.current=setTimeout((()=>{we.current||Oe(!1)}),e)},De=e=>{var t;if(!e)return;const o=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==o?void 0:o.isConnected))return Z(null),void ge({current:null});R?Le():Oe(!0),Z(o),ge({current:o}),v(le)},Ne=()=>{C?Ce(T||100):T?Ce():Oe(!1),v(re)},Be=({x:e,y:t})=>{var o;const n={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};c({place:null!==(o=null==pe?void 0:pe.place)&&void 0!==o?o:p,offset:h,elementReference:n,tooltipReference:oe.current,tooltipArrowReference:ne.current,strategy:E,middlewares:S,border:G}).then((e=>{ke(e)}))},$e=e=>{if(!e)return;const t=e,o={x:t.clientX,y:t.clientY};Be(o),ve.current=o},je=e=>{var t;if(!ae)return;const o=e.target;o.isConnected&&((null===(t=oe.current)||void 0===t?void 0:t.contains(o))||[document.querySelector(`[id='${a}']`),...be].some((e=>null==e?void 0:e.contains(o)))||(Oe(!1),v(re)))},Ie=u(De,50,!0),Pe=u(Ne,50,!0),He=e=>{Pe.cancel(),Ie(e)},We=()=>{Ie.cancel(),Pe()},ze=(0,n.useCallback)((()=>{var e,t;const o=null!==(e=null==pe?void 0:pe.position)&&void 0!==e?e:W;o?Be(o):O?ve.current&&Be(ve.current):(null==Y?void 0:Y.isConnected)&&c({place:null!==(t=null==pe?void 0:pe.place)&&void 0!==t?t:p,offset:h,elementReference:Y,tooltipReference:oe.current,tooltipArrowReference:ne.current,strategy:E,middlewares:S,border:G}).then((e=>{_e.current&&ke(e)}))}),[ae,Y,V,H,p,null==pe?void 0:pe.place,h,E,W,null==pe?void 0:pe.position,O]);(0,n.useEffect)((()=>{var e,t;const o=new Set(he);be.forEach((e=>{(null==M?void 0:M(e))||o.add({current:e})}));const n=document.querySelector(`[id='${a}']`);n&&!(null==M?void 0:M(n))&&o.add({current:n});const l=()=>{Oe(!1)},i=m(Y),s=m(oe.current);Te.scroll&&(window.addEventListener("scroll",l),null==i||i.addEventListener("scroll",l),null==s||s.addEventListener("scroll",l));let c=null;Te.resize?window.addEventListener("resize",l):Y&&oe.current&&(c=(0,r.ll)(Y,oe.current,ze,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const u=e=>{"Escape"===e.key&&Oe(!1)};Te.escape&&window.addEventListener("keydown",u),Te.clickOutsideAnchor&&window.addEventListener("click",je);const d=[],f=e=>{ae&&(null==e?void 0:e.target)===Y||De(e)},p=e=>{ae&&(null==e?void 0:e.target)===Y&&Ne()},y=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],v=["click","dblclick","mousedown","mouseup"];Object.entries(Ae).forEach((([e,t])=>{t&&(y.includes(e)?d.push({event:e,listener:He}):v.includes(e)&&d.push({event:e,listener:f}))})),Object.entries(Re).forEach((([e,t])=>{t&&(y.includes(e)?d.push({event:e,listener:We}):v.includes(e)&&d.push({event:e,listener:p}))})),O&&d.push({event:"pointermove",listener:$e});const h=()=>{we.current=!0},g=()=>{we.current=!1,Ne()};return C&&!Se&&(null===(e=oe.current)||void 0===e||e.addEventListener("mouseenter",h),null===(t=oe.current)||void 0===t||t.addEventListener("mouseleave",g)),d.forEach((({event:e,listener:t})=>{o.forEach((o=>{var n;null===(n=o.current)||void 0===n||n.addEventListener(e,t)}))})),()=>{var e,t;Te.scroll&&(window.removeEventListener("scroll",l),null==i||i.removeEventListener("scroll",l),null==s||s.removeEventListener("scroll",l)),Te.resize?window.removeEventListener("resize",l):null==c||c(),Te.clickOutsideAnchor&&window.removeEventListener("click",je),Te.escape&&window.removeEventListener("keydown",u),C&&!Se&&(null===(e=oe.current)||void 0===e||e.removeEventListener("mouseenter",h),null===(t=oe.current)||void 0===t||t.removeEventListener("mouseleave",g)),d.forEach((({event:e,listener:t})=>{o.forEach((o=>{var n;null===(n=o.current)||void 0===n||n.removeEventListener(e,t)}))}))}}),[Y,ze,de,he,be,$,j,I,Ee,R,T]),(0,n.useEffect)((()=>{var e,o;let n=null!==(o=null!==(e=null==pe?void 0:pe.anchorSelect)&&void 0!==e?e:d)&&void 0!==o?o:"";!n&&t&&(n=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const r=new MutationObserver((e=>{const o=[],r=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?o.push(e.target):e.oldValue===t&&r.push(e.target)),"childList"===e.type){if(Y){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(n)try{r.push(...t.filter((e=>e.matches(n)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(n)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,Y))&&(fe(!1),Oe(!1),Z(null),v(re),v(le),!0)}))}if(n)try{const t=[...e.addedNodes].filter((e=>1===e.nodeType));o.push(...t.filter((e=>e.matches(n)))),o.push(...t.flatMap((e=>[...e.querySelectorAll(n)])))}catch(e){}}})),(o.length||r.length)&&xe((e=>[...e.filter((e=>!r.includes(e))),...o]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}}),[t,d,null==pe?void 0:pe.anchorSelect,Y]),(0,n.useEffect)((()=>{ze()}),[ze]),(0,n.useEffect)((()=>{if(!(null==q?void 0:q.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>ze()))}));return e.observe(q.current),()=>{e.disconnect()}}),[V,null==q?void 0:q.current]),(0,n.useEffect)((()=>{var e;const t=document.querySelector(`[id='${a}']`),o=[...be,t];Y&&o.includes(Y)||Z(null!==(e=be[0])&&void 0!==e?e:t)}),[a,be,Y]),(0,n.useEffect)((()=>(U&&Oe(!0),()=>{v(re),v(le)})),[]),(0,n.useEffect)((()=>{var e;let o=null!==(e=null==pe?void 0:pe.anchorSelect)&&void 0!==e?e:d;if(!o&&t&&(o=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),o)try{const e=Array.from(document.querySelectorAll(o));xe(e)}catch(e){xe([])}}),[t,d,null==pe?void 0:pe.anchorSelect]),(0,n.useEffect)((()=>{re.current&&(v(re),Le(R))}),[R]);const Fe=null!==(te=null==pe?void 0:pe.content)&&void 0!==te?te:V,Me=ae&&Object.keys(se.tooltipStyles).length>0;return(0,n.useImperativeHandle)(e,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}me(null!=e?e:null),(null==e?void 0:e.delay)?Le(e.delay):Oe(!0)},close:e=>{(null==e?void 0:e.delay)?Ce(e.delay):Oe(!1)},activeAnchor:Y,place:se.place,isOpen:Boolean(de&&!k&&Fe&&Me)}))),de&&!k&&Fe?n.createElement(A,{id:t,role:ee,className:l("react-tooltip",b.tooltip,x.tooltip,x[s],o,`react-tooltip__place-${se.place}`,b[Me?"show":"closing"],Me?"react-tooltip__show":"react-tooltip__closing","fixed"===E&&b.fixed,C&&b.clickable),onTransitionEnd:e=>{v(ie),ae||"opacity"!==e.propertyName||(fe(!1),me(null),null==F||F())},style:{...H,...se.tooltipStyles,opacity:void 0!==J&&Me?J:void 0},ref:oe},Fe,n.createElement(A,{className:l("react-tooltip-arrow",b.arrow,x.arrow,i,L&&b.noArrow),style:{...se.tooltipArrowStyles,background:Q?`linear-gradient(to right bottom, transparent 50%, ${Q} 50%)`:void 0},ref:ne})):null},E=({content:e})=>n.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),S=n.forwardRef((({id:e,anchorId:t,anchorSelect:o,content:r,html:i,render:s,className:c,classNameArrow:u,variant:d="dark",place:f="top",offset:p=10,wrapper:m="div",children:y=null,events:v=["hover"],openOnClick:h=!1,positionStrategy:g="absolute",middlewares:b,delayShow:x=0,delayHide:S=0,float:A=!1,hidden:R=!1,noArrow:T=!1,clickable:O=!1,closeOnEsc:k=!1,closeOnScroll:L=!1,closeOnResize:C=!1,openEvents:D,closeEvents:N,globalCloseEvents:B,imperativeModeOnly:$=!1,style:j,position:I,isOpen:P,defaultIsOpen:H=!1,disableStyleInjection:W=!1,border:z,opacity:F,arrowColor:M,setIsOpen:V,afterShow:q,afterHide:K,disableTooltip:U,role:X="tooltip"},Y)=>{const[Z,G]=(0,n.useState)(r),[J,Q]=(0,n.useState)(i),[ee,te]=(0,n.useState)(f),[oe,ne]=(0,n.useState)(d),[re,le]=(0,n.useState)(p),[ie,se]=(0,n.useState)(x),[ce,ae]=(0,n.useState)(S),[ue,de]=(0,n.useState)(A),[fe,pe]=(0,n.useState)(R),[me,ye]=(0,n.useState)(m),[ve,he]=(0,n.useState)(v),[ge,we]=(0,n.useState)(g),[be,xe]=(0,n.useState)(null),[_e,Ee]=(0,n.useState)(null),Se=(0,n.useRef)(W),{anchorRefs:Ae,activeAnchor:Re}=w(e),Te=e=>null==e?void 0:e.getAttributeNames().reduce(((t,o)=>{var n;return o.startsWith("data-tooltip-")&&(t[o.replace(/^data-tooltip-/,"")]=null!==(n=null==e?void 0:e.getAttribute(o))&&void 0!==n?n:null),t}),{}),Oe=e=>{const t={place:e=>{var t;te(null!==(t=e)&&void 0!==t?t:f)},content:e=>{G(null!=e?e:r)},html:e=>{Q(null!=e?e:i)},variant:e=>{var t;ne(null!==(t=e)&&void 0!==t?t:d)},offset:e=>{le(null===e?p:Number(e))},wrapper:e=>{var t;ye(null!==(t=e)&&void 0!==t?t:m)},events:e=>{const t=null==e?void 0:e.split(" ");he(null!=t?t:v)},"position-strategy":e=>{var t;we(null!==(t=e)&&void 0!==t?t:g)},"delay-show":e=>{se(null===e?x:Number(e))},"delay-hide":e=>{ae(null===e?S:Number(e))},float:e=>{de(null===e?A:"true"===e)},hidden:e=>{pe(null===e?R:"true"===e)},"class-name":e=>{xe(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,o])=>{var n;null===(n=t[e])||void 0===n||n.call(t,o)}))};(0,n.useEffect)((()=>{G(r)}),[r]),(0,n.useEffect)((()=>{Q(i)}),[i]),(0,n.useEffect)((()=>{te(f)}),[f]),(0,n.useEffect)((()=>{ne(d)}),[d]),(0,n.useEffect)((()=>{le(p)}),[p]),(0,n.useEffect)((()=>{se(x)}),[x]),(0,n.useEffect)((()=>{ae(S)}),[S]),(0,n.useEffect)((()=>{de(A)}),[A]),(0,n.useEffect)((()=>{pe(R)}),[R]),(0,n.useEffect)((()=>{we(g)}),[g]),(0,n.useEffect)((()=>{Se.current!==W&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[W]),(0,n.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===W,disableBase:W}}))}),[]),(0,n.useEffect)((()=>{var n;const r=new Set(Ae);let l=o;if(!l&&e&&(l=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),l)try{document.querySelectorAll(l).forEach((e=>{r.add({current:e})}))}catch(n){console.warn(`[react-tooltip] "${l}" is not a valid CSS selector`)}const i=document.querySelector(`[id='${t}']`);if(i&&r.add({current:i}),!r.size)return()=>null;const s=null!==(n=null!=_e?_e:i)&&void 0!==n?n:Re.current,c=new MutationObserver((e=>{e.forEach((e=>{var t;if(!s||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const o=Te(s);Oe(o)}))})),a={attributes:!0,childList:!1,subtree:!1};if(s){const e=Te(s);Oe(e),c.observe(s,a)}return()=>{c.disconnect()}}),[Ae,Re,_e,t,o]),(0,n.useEffect)((()=>{(null==j?void 0:j.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),z&&!a("border",`${z}`)&&console.warn(`[react-tooltip] "${z}" is not a valid \`border\`.`),(null==j?void 0:j.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),F&&!a("opacity",`${F}`)&&console.warn(`[react-tooltip] "${F}" is not a valid \`opacity\`.`)}),[]);let ke=y;const Le=(0,n.useRef)(null);if(s){const e=s({content:(null==_e?void 0:_e.getAttribute("data-tooltip-content"))||Z||null,activeAnchor:_e});ke=e?n.createElement("div",{ref:Le,className:"react-tooltip-content-wrapper"},e):null}else Z&&(ke=Z);J&&(ke=n.createElement(E,{content:J}));const Ce={forwardRef:Y,id:e,anchorId:t,anchorSelect:o,className:l(c,be),classNameArrow:u,content:ke,contentWrapperRef:Le,place:ee,variant:oe,offset:re,wrapper:me,events:ve,openOnClick:h,positionStrategy:ge,middlewares:b,delayShow:ie,delayHide:ce,float:ue,hidden:fe,noArrow:T,clickable:O,closeOnEsc:k,closeOnScroll:L,closeOnResize:C,openEvents:D,closeEvents:N,globalCloseEvents:B,imperativeModeOnly:$,style:j,position:I,isOpen:P,defaultIsOpen:H,border:z,opacity:F,arrowColor:M,setIsOpen:V,afterShow:q,afterHide:K,disableTooltip:U,activeAnchor:_e,setActiveAnchor:e=>Ee(e),role:X};return n.createElement(_,{...Ce})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||s({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||s({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}))}}]); build/635.1aee1a8a0b3a1aed2ce2.js 0000777 00000155214 15252021227 0011675 0 ustar 00 "use strict";(self.webpackChunkreally_simple_ssl=self.webpackChunkreally_simple_ssl||[]).push([[635],{2592:(e,s,t)=>{t.d(s,{A:()=>i});var l=t(1621),a=t(1674);const i=(0,l.vt)(((e,s)=>({filter:"all",progressText:"",notices:[],error:!1,percentageCompleted:0,progressLoaded:!1,setFilter:s=>{sessionStorage.rsssl_task_filter=s,e((e=>({filter:s})))},fetchFilter:()=>{if("undefined"!=typeof Storage&&sessionStorage.rsssl_task_filter){let s=sessionStorage.rsssl_task_filter;e((e=>({filter:s})))}},getProgressData:async()=>{const{percentage:s,text:t,notices:l,error:i}=await a.YA("progressData","refresh").then((e=>e));e((e=>({notices:l,percentageCompleted:s,progressText:t,progressLoaded:!0,error:i})))},dismissNotice:async t=>{let l=s().notices;l=l.filter((function(e){return e.id!==t})),e((e=>({notices:l})));const{percentage:i}=await a.YA("dismiss_task",t);e({percentageCompleted:i})}})))},8260:(e,s,t)=>{t.d(s,{A:()=>i});var l=t(1621),a=t(1674);const i=(0,l.vt)(((e,s)=>({debug:!1,sslScanStatus:!1,sslData:!1,endpointData:[],dataLoaded:!1,clearCache:!1,requestActive:!1,intervalId:!1,setIntervalId:s=>e({intervalId:s}),setRequestActive:s=>e({requestActive:s}),setSslScanStatus:s=>e({sslScanStatus:s}),setClearCache:s=>e({clearCache:s}),setSslData:s=>e({sslData:s}),setEndpointData:s=>e({endpointData:s}),isLocalHost:()=>!s().debug&&-1!==window.location.host.indexOf("localhost"),host:()=>s().debug?"wordpress.org":window.location.host,fetchSslData:async()=>{a.Eo("ssltest_get").then((t=>{if(t.data.hasOwnProperty("host")){let l=s().processSslData(t.data);e({sslData:l,endpointData:l.endpointData,dataLoaded:!0})}}))},getSslLabsData:t=>{let l="";s().clearCache&&(e({clearCache:!1,sslData:!1}),l="&startNew=on");const i="https://api.ssllabs.com/api/v3/analyze?host="+s().host()+l;let r={};return r.url=i,a.Eo("ssltest_run",r).then((e=>!(!e||e.errors)&&JSON.parse(e)))},runSslTest:()=>{s().getSslLabsData().then((t=>{if(t.status&&"ERROR"===t.status)t=s().processSslData(t),e({sslData:t,sslScanStatus:"completed"}),clearInterval(s().intervalId);else if(t.endpoints&&t.endpoints.filter((e=>"Ready"===e.statusMessage)).length>0){let l=t.endpoints.filter((e=>"Ready"===e.statusMessage)),i=l[l.length-1].ipAddress;s().getEndpointData(i).then((l=>{let i=s().endpointData;if(Array.isArray(i)||(i=[]),!l.errors){let s=!1;i.length>0&&i.forEach((function(e,t){e.ipAddress===l.ipAddress&&(i[t]=l,s=!0)})),s||(i[i.length]=l),e({endpointData:i}),t.endpointData=i}t.errors||a.Eo("store_ssl_labs",t),t=s().processSslData(t),e({sslData:t,requestActive:!1})}))}else(t=s().processSslData(t)).errors||a.Eo("store_ssl_labs",t).then((e=>{})),e({sslData:t,requestActive:!1})}))},processSslData:s=>{s||(s={});let t=s.progress?s.progress:0,l=s.startTime?s.startTime:"",a=s.statusMessage?s.statusMessage:"",i=s.grade?s.grade:"?",r="";if(s.endpoints){let e=s.endpoints.filter((e=>"Ready"===e.statusMessage)),l=e.length,n=e[l-1],c=s.endpoints.filter((e=>"In progress"===e.statusMessage))[0],o=0;c&&(o=c.progress?c.progress:0,a=c.statusDetailsMessage,r=c.ipAddress),n&&(i=n.grade),t=(100*l+o)/s.endpoints.length}s.errors&&(i="?",a=s.errors[0].message,t=100);let n={};return t>=100&&e({sslScanStatus:"completed"}),n.grade=i,n.startTime=l,n.statusMessage=a,n.ipAddress=r,n.progress=t,s.summary=n,s},getEndpointData:e=>{const t="https://api.ssllabs.com/api/v3/getEndpointData?host="+s().host()+"&s="+e;let l={};return l.url=t,a.Eo("ssltest_run",l).then((e=>{if(e&&!e.errors)return JSON.parse(e)}))}})))},2304:(e,s,t)=>{t.d(s,{A:()=>p});var l=t(7723),a=t(9306),i=t(1674),r=t(1254),n=t(2592),c=t(7135),o=t(2838),d=t.n(o),h=t(6087),u=t(790);const p=e=>{const{dismissNotice:s,getProgressData:t}=(0,n.A)(),{getField:o,setHighLightField:p,showSavedSettingsNotice:g,updateFieldAttribute:m}=(0,r.A)(),{setSelectedSubMenuItem:f}=(0,c.A)(),[x,v]=(0,h.useState)(!1);let w=e.notice,C="premium"===w.output.icon,j=w.output.url&&-1!==w.output.url.indexOf("really-simple-ssl.com");return(0,u.jsxs)("div",{className:"rsssl-task-element",children:[(0,u.jsx)("span",{className:"rsssl-task-status rsssl-"+w.output.icon,children:w.output.label}),(0,u.jsx)("p",{className:"rsssl-task-message",dangerouslySetInnerHTML:{__html:d().sanitize(w.output.msg)}})," ",j&&w.output.url&&(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:w.output.url,children:(0,l.__)("More info","really-simple-ssl")}),w.output.clear_cache_id&&(0,u.jsx)("span",{className:"rsssl-task-enable button button-secondary",onClick:()=>(async e=>{v(!0);let s={};s.cache_id=e;try{await i.Eo("clear_cache",s),"rsssl_homepage_contains_404_resources"===e&&(m("404_blocking_threshold","disabled",!1),m("404_blocking_lockout_duration","disabled",!1)),g((0,l.__)("Re-started test","really-simple-ssl")),await t()}catch(e){console.error("Error clearing cache:",e)}finally{v(!1)}})(w.output.clear_cache_id),children:(0,l.__)("Re-check","really-simple-ssl")}),w.output.fix_id&&(0,u.jsxs)("span",{className:"rsssl-task-enable button button-secondary",onClick:()=>(e=>{let s={};s.fix_id=e,v(!0),i.Eo("fix",s).then((e=>{v(!1),g(e.msg),t()}))})(w.output.fix_id),children:[!x&&(0,l.__)("Fix","really-simple-ssl"),x&&(0,u.jsx)(a.default,{name:"loading",color:"black",size:14})]}),!C&&!j&&w.output.url&&(0,u.jsxs)("a",{className:"rsssl-task-enable button button-secondary",href:w.output.url,children:[!x&&(0,l.__)("View","really-simple-ssl"),x&&(0,u.jsx)(a.default,{name:"loading",color:"black",size:14})]}),!C&&w.output.highlight_field_id&&(0,u.jsx)("span",{className:"rsssl-task-enable button button-secondary",onClick:()=>(async()=>{p(e.notice.output.highlight_field_id);let s=o(e.notice.output.highlight_field_id);await f(s.menu_id)})(),children:(0,l.__)("View","really-simple-ssl")}),w.output.plusone&&(0,u.jsx)("span",{className:"rsssl-plusone",children:"1"}),w.output.dismissible&&"completed"!==w.output.status&&(0,u.jsx)("div",{className:"rsssl-task-dismiss",children:(0,u.jsx)("button",{type:"button",onClick:e=>s(w.id),children:(0,u.jsx)(a.default,{name:"times"})})})]})}},8635:(e,s,t)=>{t.r(s),t.d(s,{default:()=>N});var l=t(6087),a=t(7723),i=t(9306),r=t(5315),n=t(1254),c=t(2039),o=t(6427),d=t(7135),h=t(2592),u=t(8069),p=t(8260),g=t(959),m=t(790);const f=({isModal:e})=>{const{getProgressData:s}=(0,h.A)(),{updateField:t,setChangedField:l,updateFieldsData:i,fetchFieldsData:r,saveFields:f,getFieldValue:x}=(0,n.A)(),{setSelectedMainMenuItem:v,selectedSubMenuItem:w}=(0,d.A)(),{licenseStatus:C,toggleActivation:j}=(0,g.A)(),{fetchFirstRun:_,fetchVulnerabilities:b}=(0,u.A)(),{setSslScanStatus:y}=(0,p.A)(),{dismissModal:S,activateSSL:M,certificateValid:z,setFooterStatus:L,networkwide:k,processing:A,setProcessing:N,steps:V,currentStepIndex:H,currentStep:F,setCurrentStepIndex:D,overrideSSL:B,email:E,saveEmail:O,pluginInstaller:I}=(0,c.A)(),R=async()=>{let r=!1;if("features"===F.id){D(H+1),N(!0);for(const e of F.items){if("health_scan"===e.id&&e.activated&&(L((0,a.__)("Starting SSL health scan...","really-simple-ssl")),y("active")),!e.premium||!e.activated)for(const s of Object.values(e.options)){const a=e.value||e.activated;t(s,a),l(s,a)}"vulnerability_detection"===e.id&&(r=e.activated)}L((0,a.__)("Activating options...","really-simple-ssl")),await f(!0,!1),r&&(L((0,a.__)("Initializing vulnerability detection...","really-simple-ssl")),await _(),L((0,a.__)("Scanning for vulnerabilities...","really-simple-ssl")),await b()),L((0,a.__)("Updating dashboard...","really-simple-ssl")),await s(),L(""),N(!1)}if("email"===F.id&&(await O(),D(H+1),t("send_notifications_email",!0),t("notifications_email_address",E),i(w)),"plugins"===F.id){D(H+1);for(const e of F.items)"none"!==e.action&&null!==e.action&&await I(e.id,e.action,e.title);L("")}if("pro"===F.id){if(rsssl_settings.pro_plugin_active){N(!0);for(const e of F.items)if(e.activated)if("advanced_headers"===e.id){for(const s of e.options)if("string"==typeof s)t(s,!0),l(s,!0);else if(Array.isArray(s)){const[e,a]=s;t(e,a),l(e,a)}}else for(const s of Object.values(e.options)){const a=e.value||e.activated;t(s,a),l(s,a)}L((0,a.__)("Activating options...","really-simple-ssl")),await f(!0,!1),L((0,a.__)("Updating dashboard...","really-simple-ssl")),await s(),L(""),N(!1)}e&&S(!0),v("dashboard")}"activate_license"===F.id&&"valid"!==C&&(await j(x("license")),"valid"===C&&D(H+1))};let P=k?(0,a.__)("Activate SSL networkwide","really-simple-ssl"):(0,a.__)("Activate SSL","really-simple-ssl");if("activate_ssl"===F.id)return(0,m.jsxs)(m.Fragment,{children:[e&&!z&&(0,m.jsx)(o.Button,{onClick:()=>{e&&S(!0),window.location.href=rsssl_settings.letsencrypt_url},children:(0,a.__)("Install SSL","really-simple-ssl")}),(0,m.jsx)(o.Button,{disabled:A||!z&&!B,isPrimary:!0,onClick:()=>{(async()=>{await M(),await s(),await r()})()},children:P})]});if("activate_license"===F.id)return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(o.Button,{isPrimary:!0,onClick:()=>R(),children:F.button||(0,a.__)("Activate","really-simple-ssl")})});if(H>0&&H<V.length-1)return(0,m.jsxs)(m.Fragment,{children:["activate_license"!==F.id&&(0,m.jsx)(o.Button,{onClick:()=>{D(H+1)},children:(0,a.__)("Skip","really-simple-ssl")}),(0,m.jsx)(o.Button,{isPrimary:!0,onClick:()=>R(),children:F.button})]});if(V.length-1===H){let e=rsssl_settings.is_bf?(0,a.__)("Get 40% off","really-simple-ssl"):(0,a.__)("Get Pro","really-simple-ssl");return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(o.Button,{isPrimary:!0,onClick:()=>R(),disabled:rsssl_settings.pro_plugin_active&&"valid"!==C,children:(0,a.__)("Finish","really-simple-ssl")}),!rsssl_settings.pro_plugin_active&&(0,m.jsx)(o.Button,{rel:"noreferrer noopener",target:"_blank",isPrimary:!0,href:rsssl_settings.upgrade_link,children:e})]})}},x=(0,l.memo)((()=>{const{fetchFieldsData:e,getFieldValue:s,fieldsLoaded:t}=(0,n.A)(),{email:i,setEmail:r,includeTips:o,setIncludeTips:d}=(0,c.A)();return(0,l.useEffect)((()=>{t||e()}),[]),(0,l.useEffect)((()=>{const e=s("notifications_email_address");e&&!i&&r(e)}),[t,s,i,r]),t?(0,m.jsxs)("div",{className:"rsssl-step-email",children:[(0,m.jsx)("div",{className:"rsssl-email-input",children:(0,m.jsx)("input",{type:"email",value:i||"",placeholder:(0,a.__)("Your email address","really-simple-ssl"),onChange:e=>r(e.target.value)})}),(0,m.jsx)("div",{className:"rsssl-email-options",children:(0,m.jsxs)("label",{className:"rsssl-tips-checkbox",children:[(0,m.jsx)("input",{onChange:e=>d(e.target.checked),type:"checkbox",checked:!!o}),(0,m.jsx)("span",{children:(0,a.__)("Include 6 Tips & Tricks to get started with Really Simple Security.","really-simple-ssl")})," ",(0,m.jsx)("a",{href:"https://really-simple-ssl.com/legal/privacy-statement/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Privacy Statement","really-simple-ssl")})]})})]}):null}));var v=t(1693);const w=(0,l.memo)((({item:e})=>{let{title:s,status:t,id:l}=e;const{overrideSSL:r,setOverrideSSL:n,certificateValid:o}=(0,c.A)(),d={inactive:{icon:"info",color:"grey"},warning:{icon:"circle-times",color:"orange"},error:{icon:"circle-times",color:"red"},success:{icon:"circle-check",color:"green"},processing:{icon:"loading",color:"black"}},h="success"!==e.status&&"none"===e.current_action?"empty":d[t].icon,u=d[t].color;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("li",{children:[(0,m.jsx)(i.default,{name:h,color:u}),s,"certificate"===l&&!o&&(0,m.jsxs)(m.Fragment,{children:[" ",(0,m.jsx)("a",{href:"#",onClick:e=>refreshSSLStatus(e),children:(0,a.__)("Check again","really-simple-ssl")})]})]}),"certificate"===l&&!o&&(0,m.jsx)("li",{children:(0,m.jsxs)("label",{className:"rsssl-override-detection-toggle",children:[(0,m.jsx)("input",{onChange:e=>n(e.target.checked),type:"checkbox",checked:r}),(0,a.__)("Override SSL detection.","really-simple-ssl")]})})]})})),C=(0,l.memo)((({isModal:e})=>{const{fetchFieldsData:s,getField:t,fieldsLoaded:a,updateField:i,setChangedField:r,saveFields:o}=(0,n.A)(),{currentStep:d}=(0,c.A)();(0,l.useEffect)((()=>{a||s()}),[]);let h=a&&t("other_host_type"),u=d.items?d.items:[];if(rsssl_settings.cloudflare&&!u.some((e=>"cf"===e.id))){let e={status:"success",title:"CloudFlare",id:"cf"};u.unshift(e)}return(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(v.A,{field:h,showDisabledWhenSaving:!1}),(0,m.jsx)("ul",{children:u&&u.map(((e,s)=>(0,m.jsx)(w,{item:e},"step-config-"+s)))})]})}));var j=t(215);const _=(0,l.memo)((()=>{const{currentStepIndex:e,setCurrentStepIndex:s}=(0,c.A)(),{getField:t}=(0,n.A)(),{licenseStatus:a}=(0,g.A)(),i=rsssl_settings.pro_plugin_active;return(0,l.useEffect)((()=>{i&&"valid"!==a||s(e+1)}),[a,i]),(0,m.jsx)("div",{className:"rsssl-license",children:(0,m.jsx)(j.A,{field:t("license"),isOnboarding:!0})})})),b=(0,l.memo)((({item:e,disabled:s})=>{const{updateItemStatus:t,currentStep:l}=(0,c.A)(),{title:a,description:i,id:r,activated:n,action:o,default_action:d}=e,h=s&&n;return(0,m.jsxs)("li",{children:[(0,m.jsxs)("label",{className:"rsssl-modal-checkbox-container",children:[(0,m.jsx)("input",{type:"checkbox",disabled:h,checked:n,value:r,id:r,onChange:e=>{const s=e.target.checked;!n&&s&&d?t(l.id,r,d,null,!0):t(l.id,r,s?o:null,null,s)}}),(0,m.jsx)("span",{className:"rsssl-checkmark"})]}),a,i&&(0,m.jsxs)(m.Fragment,{children:[" - ",i]})]})})),y=(0,l.memo)((({item:e})=>{let{title:s}=e;return(0,m.jsxs)("li",{children:[(0,m.jsx)("div",{className:"rsssl-modal-premium-container",children:"PRO"}),s]})})),S=(0,l.memo)((()=>{const{currentStep:e}=(0,c.A)();let s=e.items?e.items:[],t=s.filter((e=>!e.premium)),l=s.filter((e=>e.premium));return(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("ul",{children:[t&&(0,m.jsx)("div",{className:"rsssl-checkbox-items",children:t.map(((e,s)=>(0,m.jsx)(b,{item:e},"step-features"+s)))}),l&&(0,m.jsx)("div",{className:"rsssl-premium-items",children:l.map(((e,s)=>(0,m.jsx)(y,{item:e},"step-features"+s)))})]})})})),M=(0,l.memo)((()=>{const{currentStep:e,currentStepIndex:s,setCurrentStepIndex:t}=(0,c.A)();(0,l.useEffect)((()=>{0===e.items.filter((e=>"none"!==e.action)).length&&t(s+1)}),[]);let a=e.items;return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("ul",{children:a&&a.map(((e,s)=>(0,m.jsx)(b,{item:e,disabled:"none"===e.action},"step-plugins"+s)))})})})),z=(0,l.memo)((()=>{const{currentStep:e}=(0,c.A)();let s=e.items;return(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("ul",{children:[!rsssl_settings.pro_plugin_active&&s&&(0,m.jsx)("div",{className:"rsssl-premium-items",children:s.map(((e,s)=>(0,m.jsx)(y,{item:e},"step-pro"+s)))}),rsssl_settings.pro_plugin_active&&s&&(0,m.jsx)("div",{className:"rsssl-checkbox-items",children:s.map(((e,s)=>(0,m.jsx)(b,{item:e},"step-pro"+s)))})]})})}));t(2838);const L=({isModal:e})=>{const{fetchFieldsData:s,fieldsLoaded:t}=(0,n.A)(),{getSteps:o,error:d,networkwide:h,sslEnabled:u,dataLoaded:p,processing:g,currentStep:v,currentStepIndex:w,networkActivationStatus:j,networkProgress:b,activateSSLNetworkWide:y,emailVerified:L}=(0,c.A)();return(0,l.useEffect)((()=>{o(!1)}),[]),d?(0,m.jsx)(r.A,{lines:"3",error:d}):(0,m.jsxs)(m.Fragment,{children:[!p&&(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("div",{className:"rsssl-onboarding-placeholder",children:[(0,m.jsx)("ul",{children:(0,m.jsxs)("li",{children:[(0,m.jsx)(i.default,{name:"loading",color:"grey"}),(0,a.__)("Fetching next step...","really-simple-ssl")]})}),(0,m.jsx)(r.A,{lines:"3"})]})}),p&&(0,m.jsxs)("div",{className:" rsssl-"+v.id,children:["activate_ssl"===v.id&&(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(C,{isModal:e})}),"activate_license"===v.id&&(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(_,{})}),"features"===v.id&&(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(S,{})}),"email"===v.id&&!L&&(0,m.jsx)(x,{}),"plugins"===v.id&&(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(M,{})}),"pro"===v.id&&(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(z,{})}),!e&&(0,m.jsx)(f,{isModal:!1})]})]})};var k=t(9518);const A=({title:e,subTitle:s,currentStep:i,buttons:r,content:n,list:c,confirmAction:d,confirmText:h,alternativeAction:u,alternativeText:p,alternativeClassName:g,isOpen:f,setOpen:x,className:v})=>{const[w,C]=(0,l.useState)(null);let j="undefined"!=typeof rsssl_modal?rsssl_modal.plugin_url:rsssl_settings.plugin_url;g=g||"rsssl-warning",(0,l.useEffect)((()=>{w||Promise.resolve().then(t.bind(t,9306)).then((({default:e})=>{C((()=>e))}))}));let _=v?" "+v:"";return(0,m.jsx)(m.Fragment,{children:f&&(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(k.A,{fallback:"Error loading modal",children:(0,m.jsxs)(o.Modal,{className:"rsssl-modal"+_,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,title:e,onRequestClose:()=>x(!1),open:f,children:[(0,m.jsxs)("div",{className:"rsssl-modal-body",children:[s&&(0,m.jsx)("p",{dangerouslySetInnerHTML:{__html:s}}),n&&(0,m.jsx)(m.Fragment,{children:n}),c&&w&&(0,m.jsx)("ul",{children:c.map(((e,s)=>(0,m.jsxs)("li",{children:[(0,m.jsx)(w,{name:e.icon,color:e.color}),e.text]},s)))})]}),(0,m.jsxs)("div",{className:"rsssl-modal-footer",children:[(0,m.jsx)("div",{className:"rsssl-modal-footer-image",children:(0,m.jsx)("img",{className:"rsssl-logo",src:j+"assets/img/really-simple-security-logo.svg",alt:"Really Simple Security"})}),(0,m.jsxs)("div",{className:"rsssl-modal-footer-buttons",children:[(0,m.jsx)(o.Button,{onClick:()=>x(!1),children:(0,a.__)("Cancel","really-simple-ssl")}),r&&(0,m.jsx)(m.Fragment,{children:r}),!r&&(0,m.jsxs)(m.Fragment,{children:[p&&(0,m.jsx)(o.Button,{className:g,onClick:()=>u(),children:p}),h&&(0,m.jsx)(o.Button,{isPrimary:!0,onClick:()=>d(),children:h})]})]})]})]})})})})},N=()=>{const{footerStatus:e,showOnboardingModal:s,fetchOnboardingModalStatus:t,modalStatusLoaded:o,currentStep:d,dismissModal:h}=(0,c.A)(),{fieldsLoaded:u}=(0,n.A)();return(0,l.useEffect)((()=>{o||t()}),[]),(0,l.useEffect)((()=>{s&&h(!1)}),[s]),(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(A,{className:"rsssl-onboarding-modal",title:d.title,subTitle:d.subtitle,currentStep:d,content:(0,m.jsxs)(m.Fragment,{children:[!u&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("ul",{children:(0,m.jsxs)("li",{children:[(0,m.jsx)(i.default,{name:"loading"}),(0,a.__)("Please wait while we detect your setup","really-simple-ssl")]})}),(0,m.jsx)(r.A,{lines:"3"})]}),u&&(0,m.jsx)(L,{isModal:!0})]}),isOpen:s,setOpen:e=>{e||h(!0)},buttons:(0,m.jsx)(f,{isModal:!0}),footer:0!==e.length&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(i.default,{name:"loading",color:"grey"}),e]})})})}},5315:(e,s,t)=>{t.d(s,{A:()=>i});var l=t(6064),a=t(790);const i=e=>{let s=e.lines;return s||(s=4),e.error&&(s=0),(0,a.jsxs)("div",{className:"rsssl-placeholder",children:[e.error&&(0,a.jsx)(l.A,{error:e.error}),Array.from({length:s}).map(((e,s)=>(0,a.jsx)("div",{className:"rsssl-placeholder-line"},"placeholder-"+s)))]})}},1693:(e,s,t)=>{t.d(s,{A:()=>x});var l=t(6087),a=t(5415),i=t(1254),r=(t(2838),t(5063)),n=t(2389),c=t(2611),o=t(790);const d=(0,c.A)((()=>({autoComplete:{fontSize:"12px"}}))),h=({field:e,disabled:s,value:t,options:l,label:a,onChange:i})=>{let c=!Array.isArray(s)&&s;const h=d();return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(r.A,{classes:{input:h.autoComplete,option:h.autoComplete},disabled:c,disablePortal:!0,value:t,id:e.id,options:l,isOptionEqualToValue:(e,s)=>("string"==typeof e.value?e.value.toLowerCase():e.value)===("string"==typeof s.value?s.value.toLowerCase():s.value),getOptionLabel:e=>{if(e&&e.label)return e.label;const s=l.find((s=>s.value===e));return s?s.label:e},onChange:(e,s)=>{let t=s&&s.value?s.value:"";i(t)},renderInput:e=>(0,o.jsx)(n.A,{...e,label:a,margin:"normal",variant:"outlined",fullWidth:!0})})})};var u=t(1621),p=t(1674);const g=(0,u.vt)(((e,s)=>({hosts:[],hostsLoaded:!1,fetchHosts:async s=>{try{const t=await p.Eo("get_hosts",{id:s});if(!t)return void console.error("No response received from the server.");let l=t.hosts;e({hosts:l,hostsLoaded:!0})}catch(e){console.error("Error:",e)}}})));var m=t(7723),f=t(4647);const x=(0,l.memo)((({field:e,showDisabledWhenSaving:s=!0})=>{const{updateField:t,setChangedField:r,saveFields:n,handleNextButtonDisabled:c}=(0,i.A)(),[d,u]=(0,l.useState)(!1),{fetchHosts:p,hosts:x,hostsLoaded:v}=g();(0,l.useEffect)((()=>{v||p()}),[]),(0,l.useEffect)((()=>{c(d)}),[d]);let w=v?x:[],C=[],j={label:(0,m.__)("Optional - Select your hosting provider.","really-simple-ssl"),value:""};0===e.value.length&&C.push(j);for(let e in w)if(w.hasOwnProperty(e)){let s={};s.label=w[e].name,s.value=e,C.push(s)}return(0,o.jsx)(a.A,{theme:f.A,children:(0,o.jsx)(h,{className:"rsssl-select",field:e,label:e.label,onChange:l=>(async l=>{s&&u(!0),t(e.id,l),r(e.id,l),await n(!0,!1),u(!1)})(l),value:e.value,options:C,disabled:d})})}))},215:(e,s,t)=>{t.d(s,{A:()=>d});var l=t(2304),a=t(1674),i=t(7723),r=t(1254),n=t(959),c=t(6087),o=t(790);const d=({field:e,isOnboarding:s})=>{const{fields:t,setChangedField:d,updateField:h}=(0,r.A)(),{toggleActivation:u,licenseStatus:p,setLicenseStatus:g,notices:m,setNotices:f,setLoadingState:x}=(0,n.A)();return(0,c.useEffect)((()=>{x()}),[]),(0,c.useEffect)((()=>{a.YA("licenseNotices","refresh").then((e=>e)).then((e=>{g(e.licenseStatus),f(e.notices)}))}),[t]),(0,o.jsxs)("div",{className:"components-base-control",children:[(0,o.jsxs)("div",{className:"components-base-control__field",children:[!s&&(0,o.jsx)("label",{className:"components-base-control__label",htmlFor:e.id,children:e.label}),(0,o.jsxs)("div",{className:"rsssl-license-field",children:[(0,o.jsx)("input",{className:"components-text-control__input",type:"password",id:e.id,value:e.value,onChange:s=>{return t=s.target.value,d(e.id,t),void h(e.id,t);var t}}),!s&&(0,o.jsxs)("button",{className:"button button-default",onClick:()=>u(e.value),children:["valid"===p&&(0,o.jsx)(o.Fragment,{children:(0,i.__)("Deactivate","really-simple-ssl")}),"valid"!==p&&(0,o.jsx)(o.Fragment,{children:(0,i.__)("Activate","really-simple-ssl")})]})]})]}),m.map(((e,s)=>(0,o.jsx)(l.A,{index:s,notice:e,highLightField:""},"task-"+s)))]})}},959:(e,s,t)=>{t.d(s,{A:()=>r});var l=t(1621),a=(t(1254),t(1674)),i=t(7723);const r=(0,l.vt)(((e,s)=>({licenseStatus:rsssl_settings.licenseStatus,setLicenseStatus:s=>e((e=>({licenseStatus:s}))),notices:[],setNotices:s=>e((e=>({notices:s}))),setLoadingState:()=>{const s={output:{dismissible:!1,icon:"skeleton",label:(0,i.__)("Loading","really-simple-ssl"),msg:!1,plusone:!1,url:!1}};e({notices:[s,s,s]})},toggleActivation:async t=>{if(s().setLoadingState(),"valid"===s().licenseStatus)await a.YA("deactivate_license").then((s=>{e({notices:s.notices,licenseStatus:s.licenseStatus})}));else{let s={};s.license=t,await a.Eo("activate_license",s).then((s=>{e({notices:s.notices,licenseStatus:s.licenseStatus})}))}}})))},8069:(e,s,t)=>{t.d(s,{A:()=>o});var l=t(1621),a=t(1674),i=t(7723),r=t(6535),n=(t(1609),t(8743)),c=t(790);const o=(0,l.vt)(((e,s)=>({dummyRiskData:[{id:"force_update",name:"Force Update",value:"l",description:(0,i.__)("Force update the plugin or theme","really-simple-ssl")},{id:"quarantine",name:"Quarantine",value:"m",description:(0,i.__)("Isolates the plugin or theme if no update can be performed","really-simple-ssl")}],riskData:[],riskLevels:{l:1,m:2,h:3,c:4},vulnerabilities:[],processing:!1,dataLoaded:!1,updates:0,HighestRisk:!1,lastChecked:"",vulEnabled:!1,riskNaming:{},vulList:[],setDataLoaded:s=>e({dataLoaded:s}),updateRiskData:async(t,l)=>{if(!s().processing){e({processing:!0}),e((0,r.jM)((e=>{let a=e.riskData.findIndex((e=>e.id===t));e.riskData[a].value=l,e.riskData=s().enforceCascadingRiskLevels(e.riskData)})));try{await a.Eo("vulnerabilities_measures_set",{riskData:s().riskData}),e({dataLoaded:!0,processing:!1})}catch(e){console.log(e)}e({processing:!1})}},enforceCascadingRiskLevels:e=>{if(0===e.length)return e;let t=e.filter((e=>"force_update"===e.id))[0].value,l=e.filter((e=>"quarantine"===e.id))[0].value;t=s().riskLevels.hasOwnProperty(t)?s().riskLevels[t]:5,l=s().riskLevels.hasOwnProperty(l)?s().riskLevels[l]:5;let a=e.findIndex((e=>"quarantine"===e.id));l<t&&(e[a].value=Object.keys(s().riskLevels).find((e=>s().riskLevels[e]===t))),5===t&&(e[a].value="*");let i=t>0?t:0,r=Array.from(Array(i).keys()).map((e=>e));return r=r.map((e=>Object.keys(s().riskLevels).find((t=>s().riskLevels[t]===e)))),e[a].disabledRiskLevels=r,e},fetchFirstRun:async()=>{s().processing||(e({processing:!0}),await a.Eo("vulnerabilities_scan_files"),e({processing:!1}))},fetchVulnerabilities:async()=>{if(s().processing)return;e({processing:!0});let t={};try{const l=await a.Eo("hardening_data",t);let o=[],d=0;l.data.vulList&&(d=l.data.vulnerabilities,o=l.data.vulList,"object"==typeof o&&(o=Object.values(o)),o.forEach((function(e,s){let t=e.update_available?rsssl_settings.plugins_url+"?plugin_status=upgrade":"#settings/vulnerabilities";e.vulnerability_action=(0,c.jsxs)("div",{className:"rsssl-action-buttons",children:[(0,c.jsx)("a",{className:"rsssl-button button-secondary",href:(0,n.g)("https://really-simple-ssl.com/vulnerability/"+e.rss_identifier),target:"_blank",rel:"noopener noreferrer",children:(0,i.__)("Details","really-simple-ssl")}),(0,c.jsx)("a",{disabled:!e.update_available,href:t,className:"rsssl-button button-primary",children:(0,i.__)("Update","really-simple-ssl")})]})})));let h=l.data.riskData;Array.isArray(h)||(h=[]),h=s().enforceCascadingRiskLevels(h),e((0,r.jM)((e=>{e.vulnerabilities=d,e.vulList=o,e.updates=l.data.updates,e.dataLoaded=!0,e.riskNaming=l.data.riskNaming,e.lastChecked=l.data.lastChecked,e.vulEnabled=l.data.vulEnabled,e.riskData=h,e.processing=!1})))}catch(e){console.error(e)}},vulnerabilityCount:()=>{let e=s().vulList,t=[];return Object.keys(e).forEach((function(s){t.push(e[s])})),["c","h","m","l"].map((function(e){return{level:e,count:t.filter((function(s){return s.risk_level===e})).length}}))},vulnerabilityScore:()=>{let e=0,t=s().vulList;return Object.keys(t).forEach((function(s){"c"===t[s].risk_level?e=5:e<1&&(e=1)})),e},hardeningScore:()=>{let e=0,t=s().vulnerabilities;for(let s=0;s<t.length;s++)e+=t[s].hardening_score;return e},activateVulnerabilityScanner:async()=>{try{(await a.Eo("rsssl_scan_files")).request_success&&await s().fetchVulnerabilities()}catch(e){console.error(e)}}})))},9306:(e,s,t)=>{t.r(s),t.d(s,{default:()=>r});var l=t(7008),a=t(790);const i=React.forwardRef((function(e,s){const{name:t,color:l,size:i}=e,r=t||"bullet",n=l||"black",c=i||15,o={black:"var(--rsp-black)",green:"var(--rsp-green)",yellow:"var(--rsp-yellow)",orange:"var(--rsp-yellow)","red-faded":"var(--rsp-red-faded)",red:"var(--rsp-red)",grey:"var(--rsp-grey-400)","red-warning":"var(--rsp-red-faded)"};let d="";return"bullet"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"})})),"circle"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"})})),"check"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"})})),"warning"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"})})),"error"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"})})),"times"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"})})),"circle-check"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z"})})),"circle-times"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z"})})),"chevron-up"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M416 352c-8.188 0-16.38-3.125-22.62-9.375L224 173.3l-169.4 169.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25C432.4 348.9 424.2 352 416 352z"})})),"chevron-down"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"})})),"chevron-right"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"})})),"chevron-left"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"})})),"plus"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"})})),"minus"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M400 288h-352c-17.69 0-32-14.32-32-32.01s14.31-31.99 32-31.99h352c17.69 0 32 14.3 32 31.99S417.7 288 400 288z"})})),"sync"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M483.515 28.485L431.35 80.65C386.475 35.767 324.485 8 256 8 123.228 8 14.824 112.338 8.31 243.493 7.971 250.311 13.475 256 20.301 256h28.045c6.353 0 11.613-4.952 11.973-11.294C66.161 141.649 151.453 60 256 60c54.163 0 103.157 21.923 138.614 57.386l-54.128 54.129c-7.56 7.56-2.206 20.485 8.485 20.485H492c6.627 0 12-5.373 12-12V36.971c0-10.691-12.926-16.045-20.485-8.486zM491.699 256h-28.045c-6.353 0-11.613 4.952-11.973 11.294C445.839 370.351 360.547 452 256 452c-54.163 0-103.157-21.923-138.614-57.386l54.128-54.129c7.56-7.56 2.206-20.485-8.485-20.485H20c-6.627 0-12 5.373-12 12v143.029c0 10.691 12.926 16.045 20.485 8.485L80.65 431.35C125.525 476.233 187.516 504 256 504c132.773 0 241.176-104.338 247.69-235.493.339-6.818-5.165-12.507-11.991-12.507z"})})),"sync-error"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M256 79.1C178.5 79.1 112.7 130.1 89.2 199.7C84.96 212.2 71.34 218.1 58.79 214.7C46.23 210.5 39.48 196.9 43.72 184.3C73.6 95.8 157.3 32 256 32C337.5 32 408.8 75.53 448 140.6V104C448 90.75 458.7 80 472 80C485.3 80 496 90.75 496 104V200C496 213.3 485.3 224 472 224H376C362.7 224 352 213.3 352 200C352 186.7 362.7 176 376 176H412.8C383.7 118.1 324.4 80 256 80V79.1zM280 263.1C280 277.3 269.3 287.1 256 287.1C242.7 287.1 232 277.3 232 263.1V151.1C232 138.7 242.7 127.1 256 127.1C269.3 127.1 280 138.7 280 151.1V263.1zM224 352C224 334.3 238.3 319.1 256 319.1C273.7 319.1 288 334.3 288 352C288 369.7 273.7 384 256 384C238.3 384 224 369.7 224 352zM40 432C26.75 432 16 421.3 16 408V311.1C16 298.7 26.75 287.1 40 287.1H136C149.3 287.1 160 298.7 160 311.1C160 325.3 149.3 336 136 336H99.19C128.3 393 187.6 432 256 432C333.5 432 399.3 381.9 422.8 312.3C427 299.8 440.7 293 453.2 297.3C465.8 301.5 472.5 315.1 468.3 327.7C438.4 416.2 354.7 480 256 480C174.5 480 103.2 436.5 64 371.4V408C64 421.3 53.25 432 40 432V432z"})})),"shortcode"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M128 32H32C14.4 32 0 46.4 0 64v384c0 17.6 14.4 32 32 32h96C145.7 480 160 465.7 160 448S145.7 416 128 416H64V96h64C145.7 96 160 81.67 160 64S145.7 32 128 32zM416 32h-96C302.3 32 288 46.33 288 63.1S302.3 96 319.1 96H384v320h-64C302.3 416 288 430.3 288 447.1S302.3 480 319.1 480H416c17.6 0 32-14.4 32-32V64C448 46.4 433.6 32 416 32z"})})),"file"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M0 64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V64zM336 448V160H256C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V448C48 456.8 55.16 464 64 464H320C328.8 464 336 456.8 336 448z"})})),"file-disabled"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M639.1 487.1c0-7.119-3.153-14.16-9.191-18.89l-118.8-93.12l.0013-237.3c0-16.97-6.742-33.26-18.74-45.26l-74.63-74.64C406.6 6.742 390.3 0 373.4 0H192C156.7 0 128 28.65 128 64L128 75.01L38.82 5.11C34.41 1.672 29.19 0 24.04 0C10.19 0-.0002 11.3-.0002 23.1c0 7.12 3.153 14.16 9.192 18.89l591.1 463.1C605.6 510.3 610.8 512 615.1 512C629.8 512 639.1 500.6 639.1 487.1zM464 338.4l-287.1-225.7l-.002-48.51c0-8.836 7.164-16 15.1-16h160l-.0065 79.87c0 17.67 14.33 31.1 31.1 31.1L464 159.1V338.4zM448 463.1H192c-8.834 0-15.1-7.164-15.1-16L176 234.6L128 197L128 447.1c0 35.34 28.65 64 63.1 64H448c20.4 0 38.45-9.851 50.19-24.84l-37.72-29.56C457.5 461.4 453.2 463.1 448 463.1z"})})),"loading"===r&&(d=(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[l],d:"M304 48c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zm0 416c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM48 304c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48zm464-48c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM142.9 437c18.7-18.7 18.7-49.1 0-67.9s-49.1-18.7-67.9 0s-18.7 49.1 0 67.9s49.1 18.7 67.9 0zm0-294.2c18.7-18.7 18.7-49.1 0-67.9S93.7 56.2 75 75s-18.7 49.1 0 67.9s49.1 18.7 67.9 0zM369.1 437c18.7 18.7 49.1 18.7 67.9 0s18.7-49.1 0-67.9s-49.1-18.7-67.9 0s-18.7 49.1 0 67.9z"})})),"file-download"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M216 342.1V240c0-13.25-10.75-24-24-24S168 226.8 168 240v102.1L128.1 303C124.3 298.3 118.2 296 112 296S99.72 298.3 95.03 303c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0L216 342.1zM365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6C384 121.7 377.3 105.4 365.3 93.38zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1V448z"})})),"calendar"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192H48V448z"})})),"calendar-error"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M151.1 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V192H47.1V448C47.1 456.8 55.16 464 63.1 464H284.5C296.7 482.8 312.5 499.1 330.8 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24L151.1 64zM576 368C576 447.5 511.5 512 432 512C352.5 512 287.1 447.5 287.1 368C287.1 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368zM432 416C418.7 416 408 426.7 408 440C408 453.3 418.7 464 432 464C445.3 464 456 453.3 456 440C456 426.7 445.3 416 432 416zM447.1 288C447.1 279.2 440.8 272 431.1 272C423.2 272 415.1 279.2 415.1 288V368C415.1 376.8 423.2 384 431.1 384C440.8 384 447.1 376.8 447.1 368V288z"})})),"help"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 400c-18 0-32-14-32-32s13.1-32 32-32c17.1 0 32 14 32 32S273.1 400 256 400zM325.1 258L280 286V288c0 13-11 24-24 24S232 301 232 288V272c0-8 4-16 12-21l57-34C308 213 312 206 312 198C312 186 301.1 176 289.1 176h-51.1C225.1 176 216 186 216 198c0 13-11 24-24 24s-24-11-24-24C168 159 199 128 237.1 128h51.1C329 128 360 159 360 198C360 222 347 245 325.1 258z"})})),"copy"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"})})),"info"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"})})),"info-open"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464zM256 304c13.25 0 24-10.75 24-24v-128C280 138.8 269.3 128 256 128S232 138.8 232 152v128C232 293.3 242.8 304 256 304zM256 337.1c-17.36 0-31.44 14.08-31.44 31.44C224.6 385.9 238.6 400 256 400s31.44-14.08 31.44-31.44C287.4 351.2 273.4 337.1 256 337.1z"})})),"list"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M184.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM256 96c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zM192 416c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32zM80 464c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48z"})})),"empty"===r&&(d=(0,a.jsx)("svg",{height:c,width:c,"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67"})),"external-link"===r&&(d=(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:(0,a.jsx)("path",{fill:o[n],d:"M384 32c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96C0 60.7 28.7 32 64 32H384zM160 144c-13.3 0-24 10.7-24 24s10.7 24 24 24h94.1L119 327c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l135-135V328c0 13.3 10.7 24 24 24s24-10.7 24-24V168c0-13.3-10.7-24-24-24H160z"})})),"shield"===r&&(d=(0,a.jsxs)("svg",{height:c,"aria-hidden":"true",focusable:"false",role:"img",id:"uuid-026a4e87-44db-4336-a398-3c29d25b7317",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67",children:[(0,a.jsx)("path",{fill:"#f9c23e",d:"M280.8,62.4L140.5,0,0,62.2V213.3c0,10.7,1.6,21.3,4.9,31.5,9.5,29.9,28.2,52.8,54.4,69.5,26,16.6,52.4,32.4,78.6,48.6,2,1.2,3.4,.9,5.1-.2,19.9-12.3,39.8-24.5,59.6-36.8,12.6-7.8,25.5-15.1,36.5-25.1,26.4-24.2,41.4-53.6,41.5-89.9V62.4h.2Z"}),(0,a.jsxs)("g",{children:[(0,a.jsxs)("g",{children:[(0,a.jsx)("rect",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",x:"155",y:"266.8",width:"77.6",height:"6"}),(0,a.jsx)("path",{fill:"#1d2327",d:"M224.4,204.5h-1.8v-10.1c0-15.9-12.9-28.8-28.8-28.8s-28.8,12.9-28.8,28.8v10.1h-1.8c-4.6,0-8.3,3.7-8.3,8.3v51.3h77.6v-51.3c0-4.6-3.7-8.3-8.3-8.3h.2Zm-45.3-10.1c0-8.1,6.6-14.7,14.7-14.7s14.7,6.6,14.7,14.7v10.1h-29.5v-10.1h.1Zm36.6,32.9l-20.7,20.2c-.2,.2-.3,.4-.5,.6l-2,2c-.2,.2-.4,.4-.6,.5l-3.8,3.8-4.5-4.3-2-2c-.2-.2-.4-.4-.5-.6l-9.1-9.1c-2.4-2.4-2.4-6.4,0-8.8l2-2c2.4-2.4,6.4-2.4,8.8,0l5.3,5.3,16.9-16.4c2.4-2.4,6.4-2.4,8.8,0l2,2c2.4,2.4,2.4,6.4,0,8.8h-.1Z"})]}),(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{fill:"#1d2327",d:"M125.2,192.3c-.5-2.9-.5-5.8-1-8.6-.5-2.4-2.6-4-4.8-3.9-2.3,0-4.2,1.9-4.7,4.3-.2,1,0,1.9,0,2.9,.8,14.6,7.2,26.3,18.2,35.7,2.2,1.9,4.5,3.5,6.9,4.8v-11.8c-7.4-5.8-12.9-14.1-14.6-23.3v-.1Z"}),(0,a.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M96.4,236.1c-13-15-20-32.3-19.5-52.3,.3-13.1,6.1-23.6,16.6-31.2,11.5-8.5,24.5-10.9,38.3-7.1,12.7,3.5,22,10.7,27.4,22,2.1-2.7,4.5-5.2,7.2-7.4-4-7-9.7-12.9-17-17.4-17-10.4-34.9-11.7-52.9-3.1-19,9.1-28.7,24.7-29.3,45.8,0,5.2,.5,10.2,1.4,15.2,3.4,19.4,13.4,35.2,27.2,48.9,1.1,1.1,2.5,1.6,4.1,1.4,1.8-.2,3.2-1.3,3.8-3,.6-1.8,.4-3.6-1-5.1-2.1-2.2-4.2-4.4-6.2-6.7h-.1Z"}),(0,a.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M68.1,89.4c1.1-.4,2.1-1,3.1-1.5,17.9-9.1,36.8-12.7,56.8-11.3,12.2,.8,23.9,3.8,35.1,8.7,3,1.3,5.9,2.8,8.9,4.1,2.7,1.1,5.3,0,6.4-2.4,1.1-2.3,0-5-2.3-6.3-11-5.7-22.4-10-34.6-12.3-4.2-.8-8.5-1.1-12.8-1.7h-17.1c-.3,0-.6,.2-.9,.2-11.2,.8-22,3.2-32.5,7.2-4.9,1.9-9.7,4.1-14.3,6.6-2.5,1.3-3.4,4.2-2.2,6.5,1.1,2.2,4,3.2,6.4,2.1v.1Z"}),(0,a.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M61.1,153.5c13.6-21.6,33.6-31.5,58.7-32.1h6c.8,0,1.6,.2,2.3,.3,13.4,1.7,25.5,6.6,35.9,15.4,5.8,4.9,10.5,10.3,14.1,16.2,3.1-1.2,6.4-2,9.8-2.5-4.7-8.7-11.3-16.3-19.6-22.7-19-14.6-40.5-19.5-64.1-15.1-14.3,2.7-26.9,9-37.7,18.8-10.4,9.5-17.8,20.9-21.2,34.6-2.8,11.3-2.6,22.7-.9,34.1,1.1,7,2.9,13.9,5.4,20.5,.9,2.3,3,3.7,5.2,3.5,2.1-.2,3.9-2,4.3-4.3,.2-1.1-.2-2.2-.6-3.2-4.3-11.9-6.3-24.1-5.6-36.7,.5-9.6,2.8-18.7,8-26.8h0Z"}),(0,a.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M139.8,240.6c-20.9-8.4-34.1-23.7-38.4-46.7-.8-4.3-1.4-8.7-.4-13,1.8-7.1,6.4-11.4,13.4-13.5,11.8-3.4,24.7,5.3,24.5,17.6,0,4.8,1.4,9.3,4,13.4,.3,.5,.6,.9,.9,1.3,1.6-2.4,3.7-4.6,6.1-6.2,0-.9,0-1.9,.2-2.8-.7-1.7-1.1-3.5-1.2-5.3-.3-6.1-1.6-11.9-5.5-16.8-6.8-8.8-15.9-12.4-27-11.5-11.3,.9-21.6,9.6-24.5,20.6-1.8,6.6-.9,13.3,.4,19.8,2.4,12.9,8.2,24,17.1,33.7,8.6,9.4,18.8,15.8,30.6,19.8v-10.4h-.2Z"}),(0,a.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M47.5,133.2c6.8-8.8,15-16,24.6-21.6,20.8-12,43.2-15.2,66.6-11,14.8,2.7,28.2,8.7,39.9,18.2,6.3,5,11.6,11,16.4,17.4,1.9,2.5,4.8,2.8,7,1.1,2.1-1.7,2.4-4.5,.6-7-5.9-8.2-12.8-15.3-20.9-21.3-18.3-13.6-39.1-19.6-61.7-20-6.3,0-12.5,.6-18.6,1.6-15.7,2.8-30.1,8.6-42.9,18.1-8.3,6.2-15.5,13.5-21.5,22-1.6,2.3-1.3,5.1,.7,6.7,2.1,1.7,4.9,1.5,6.8-.7,1-1.2,1.9-2.5,2.9-3.7l.1,.2Z"})]})]})]})),"file-search"===r&&(d=(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:c,fill:"none",viewBox:"0 0 384 512",children:(0,a.jsx)("path",{d:"M374.6 150.6l-141.3-141.3C227.4 3.371 219.2 0 210.7 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.35 0 64-28.66 64-64V173.3C384 164.8 380.6 156.6 374.6 150.6zM224 22.63L361.4 160H248C234.8 160 224 149.2 224 136V22.63zM368 448c0 26.47-21.53 48-48 48H64c-26.47 0-48-21.53-48-48V64c0-26.47 21.53-48 48-48h144v120c0 22.06 17.94 40 40 40h120V448zM176 208c-53.02 0-96 42.98-96 96s42.98 96 96 96c23.62 0 44.96-8.859 61.68-23l68.66 68.66C307.9 447.2 309.9 448 312 448s4.094-.7813 5.656-2.344c3.125-3.125 3.125-8.188 0-11.31l-68.66-68.66C263.1 348.1 272 327.6 272 304C272 250.1 229 208 176 208zM176 384C131.9 384 96 348.1 96 304S131.9 224 176 224S256 259.9 256 304S220.1 384 176 384z"})})),"download"===r&&(d=(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:c,fill:"none",viewBox:"0 0 512 512",children:(0,a.jsx)("path",{d:"M480 352h-88C387.6 352 384 355.6 384 360s3.582 8 8 8H480c8.822 0 16 7.178 16 16v96c0 8.822-7.178 16-16 16H32c-8.822 0-16-7.178-16-16v-96c0-8.822 7.178-16 16-16h88C124.4 368 128 364.4 128 360S124.4 352 120 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96C512 366.3 497.7 352 480 352zM464 432c0-17.6-14.4-32-32-32s-32 14.4-32 32c0 17.6 14.4 32 32 32S464 449.6 464 432zM416 432c0-8.822 7.178-16 16-16s16 7.178 16 16S440.8 448 432 448S416 440.8 416 432zM250.3 413.7c3.125 3.125 8.188 3.125 11.31 0l152-152C415.2 260.1 416 258.1 416 256s-.7813-4.094-2.344-5.656c-3.125-3.125-8.188-3.125-11.31 0L264 388.7V8C264 3.594 260.4 0 256 0S248 3.594 248 8v380.7L109.7 250.3c-3.125-3.125-8.188-3.125-11.31 0s-3.125 8.188 0 11.31L250.3 413.7z"})})),"satellite-dish"===r&&(d=(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",color:o[n],height:c,viewBox:"0 0 512 512",children:(0,a.jsx)("path",{d:"M208 0c-8.8 0-16 7.2-16 16s7.2 16 16 16c150.2 0 272 121.8 272 272c0 8.8 7.2 16 16 16s16-7.2 16-16C512 136.1 375.9 0 208 0zm0 96c-8.8 0-16 7.2-16 16s7.2 16 16 16c97.2 0 176 78.8 176 176c0 8.8 7.2 16 16 16s16-7.2 16-16c0-114.9-93.1-208-208-208zM32 304c0-24.5 5-47.7 13.9-68.8L276.8 466.1C255.7 475 232.5 480 208 480c-97.2 0-176-78.8-176-176zm33.5-94.5c-14-14-37.3-12.1-45.7 5.8C7.1 242.2 0 272.3 0 304C0 418.9 93.1 512 208 512c31.7 0 61.8-7.1 88.7-19.8c17.9-8.4 19.8-31.8 5.8-45.7L195.3 339.3l24-24c6.3 3 13.3 4.7 20.7 4.7c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48c0 7.4 1.7 14.4 4.7 20.7l-24 24L65.5 209.5zM224 272a16 16 0 1 1 32 0 16 16 0 1 1 -32 0z"})})),"rotate-light"===r&&(d=(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",color:o[n],height:c,viewBox:"0 0 512 512",children:(0,a.jsx)("path",{d:"M426.1 301.2C406.2 376.5 337.6 432 256 432c-51 0-96.9-21.7-129-56.3l41-41c5.1-5.1 8-12.1 8-19.3c0-15.1-12.2-27.3-27.3-27.3H48c-8.8 0-16 7.2-16 16V404.7C32 419.8 44.2 432 59.3 432c7.2 0 14.2-2.9 19.3-8l25.7-25.7C142.3 438.7 196.2 464 256 464c97.4 0 179.2-67 201.8-157.4c2.4-9.7-5.2-18.6-15.2-18.6c-7.8 0-14.5 5.6-16.5 13.2zM385 136.3l-41 41c-5.1 5.1-8 12.1-8 19.3c0 15.1 12.2 27.3 27.3 27.3H464c8.8 0 16-7.2 16-16V107.3C480 92.2 467.8 80 452.7 80c-7.2 0-14.2 2.9-19.3 8l-25.7 25.7C369.7 73.3 315.8 48 256 48C158.6 48 76.8 115 54.2 205.4c-2.4 9.7 5.2 18.6 15.2 18.6c7.8 0 14.5-5.6 16.5-13.2C105.8 135.5 174.4 80 256 80c51 0 96.9 21.7 129.1 56.3zM448 192H374.6L448 118.6V192zM64 320h73.4L64 393.4V320z"})})),"rotate-exclamation-light"===r&&(d=(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:[(0,a.jsx)("defs",{children:(0,a.jsx)("style",{children:`\n .fa-secondary {\n opacity: 0.4;\n color: ${o[n]};\n }\n `})}),(0,a.jsx)("path",{className:"fa-primary",d:"M280 152c0-13.3-10.7-24-24-24s-24 10.7-24 24V264c0 13.3 10.7 24 24 24s24-10.7 24-24V152zM256 384a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"}),(0,a.jsx)("path",{className:"fa-secondary",d:"M432 117.4C391 65.4 327.4 32 256 32C158.4 32 75.5 94.4 44.8 181.3c-5.9 16.7 2.8 34.9 19.5 40.8s34.9-2.8 40.8-19.5C127.1 140.5 186.4 96 256 96c52.3 0 98.8 25.1 128 64H352c-17.7 0-32 14.3-32 32s14.3 32 32 32h84.3c.5 0 1 0 1.5 0H464c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v37.4zm35.2 213.2c5.9-16.7-2.8-34.9-19.5-40.8s-34.9 2.8-40.8 19.5C384.9 371.5 325.6 416 256 416c-52.3 0-98.8-25.1-128-64h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H48c-17.7 0-32 14.3-32 32V432c0 17.7 14.3 32 32 32s32-14.3 32-32V394.6c41 52 104.6 85.4 176 85.4c97.6 0 180.5-62.4 211.2-149.3z"})]})),"radar-duotone"===r&&(d=(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:[(0,a.jsx)("defs",{children:(0,a.jsx)("style",{children:`\n .fa-secondary {\n color: ${o[n]} !important;\n } \n `})}),(0,a.jsx)("path",{className:"fa-primary",d:"M497 49c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-182 182c-7.7-3.3-16.1-5.1-25-5.1c-35.3 0-64 28.7-64 64s28.7 64 64 64s64-28.7 64-64c0-8.9-1.8-17.3-5.1-25L497 49z"}),(0,a.jsx)("path",{className:"fa-secondary",d:"M350.9 127.2l-46.1 46.1c-14.3-8.4-31-13.3-48.8-13.3c-53 0-96 43-96 96s43 96 96 96s96-43 96-96h64c0 73.5-49.6 135.5-117.2 154.2C290.8 394.7 274.7 384 256 384s-34.8 10.7-42.8 26.2c-51.7-14.3-92.8-53.9-109.4-104.6c14.4-8.3 24.1-23.8 24.1-41.7c0-19.4-11.5-36.1-28-43.7C116.2 149.1 179.9 96 256 96c35.5 0 68.3 11.6 94.9 31.2zm22.8-22.8C341.2 79 300.4 64 256 64C163.1 64 85.7 129.9 67.9 217.6C47.2 222.9 32 241.7 32 264c0 23.8 17.3 43.6 40.1 47.4c19.3 64.3 71.5 114.4 137 130.9C213.8 463.8 233 480 256 480s42.2-16.2 46.9-37.8C386.3 421.3 448 345.9 448 256h64c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0c62.1 0 118.9 22.1 163.3 58.8l-45.5 45.5z"})]})),"satellite-dish-duotone"===r&&(d=(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:c,children:[(0,a.jsx)("defs",{children:(0,a.jsx)("style",{children:`\n .fa-secondary {\n color: ${o[n]} !important;\n } \n `})}),(0,a.jsx)("path",{className:"fa-primary",d:"M60.6 220.6c-14.5-14.5-38.8-11.8-46.3 7.3C5.1 251.5 0 277.1 0 304C0 418.9 93.1 512 208 512c26.9 0 52.5-5.1 76.1-14.4c19-7.5 21.8-31.8 7.3-46.3L187.3 347.3l28.4-28.4c2.6 .7 5.4 1.1 8.3 1.1c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32c0 2.9 .4 5.6 1.1 8.3l-28.4 28.4L60.6 220.6z"}),(0,a.jsx)("path",{className:"fa-secondary",d:"M224 0c-17.7 0-32 14.3-32 32s14.3 32 32 32c123.7 0 224 100.3 224 224c0 17.7 14.3 32 32 32s32-14.3 32-32C512 128.9 383.1 0 224 0zm0 96c-17.7 0-32 14.3-32 32s14.3 32 32 32c70.7 0 128 57.3 128 128c0 17.7 14.3 32 32 32s32-14.3 32-32c0-106-86-192-192-192z"})]})),"spinner"===r&&(d=(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"20",height:"20",children:[(0,a.jsx)("defs",{children:(0,a.jsx)("style",{children:"\n .fa-secondary {\n opacity: 0.4;\n }\n "})}),(0,a.jsx)("path",{className:"fa-primary",d:"M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM96 256A48 48 0 1 0 0 256a48 48 0 1 0 96 0zM75 142.9A48 48 0 1 0 142.9 75 48 48 0 1 0 75 142.9z"}),(0,a.jsx)("path",{className:"fa-secondary",d:"M369.1 75A48 48 0 1 1 437 142.9 48 48 0 1 1 369.1 75zM416 256a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM208 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM75 369.1A48 48 0 1 1 142.9 437 48 48 0 1 1 75 369.1zm294.2 0A48 48 0 1 1 437 437a48 48 0 1 1 -67.9-67.9z"})]})),(0,a.jsx)("div",{...e,ref:s,children:d})})),r=({name:e,color:s,size:t,tooltip:r})=>{const n=e||"bullet",c=s||"black";let o=t||15,d=r?"tooltip-":"",h=Math.floor(1e9*Math.random());return r?(0,a.jsxs)("div",{className:"rsssl-"+d+"icon rsssl-icon-"+n+" rsssl-"+c,children:[(0,a.jsx)(i,{"data-for":".rsssl-"+h,name:n,color:c,size:o,id:h,className:"rsssl-"+h,"data-tooltip-delay-hide":200}),(0,a.jsx)(l.m_,{style:{zIndex:99},id:h,place:"bottom",anchorSelect:".rsssl-"+h,content:r})]}):(0,a.jsx)("div",{className:"rsssl-"+d+"icon rsssl-icon-"+n+" rsssl-"+c,children:(0,a.jsx)(i,{name:n,color:c,size:o})})}},4647:(e,s,t)=>{t.d(s,{A:()=>l});const l=(0,t(3478).A)({typography:{fontSize:12,fontFamily:"inherit"},components:{MuiAutocomplete:{styleOverrides:{inputRoot:{"& .MuiAutocomplete-input":{border:0},flexWrap:"inherit"},popper:{fontSize:"12px"},paper:{fontSize:"12px"},option:{fontSize:"12px"}}},MuiInputBase:{styleOverrides:{root:{fontSize:"12px",fontFamily:"inherit",height:"40px"}}},MuiList:{styleOverrides:{root:{fontSize:"8px"}}}}})}}]); build/index.978c7d81c599bb78e256.asset.php 0000777 00000000320 15252021227 0013375 0 ustar 00 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices'), 'version' => '978c7d81c599bb78e256'); build/index.978c7d81c599bb78e256.js 0000777 00000161636 15252021227 0012126 0 ustar 00 (()=>{var e,t,s={7135:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var n=s(1621),r=s(1307);const o=(0,n.vt)(((e,t)=>({menu:[],subMenuLoaded:!1,previousMenuItem:!1,nextMenuItem:!1,selectedMainMenuItem:!1,selectedSubMenuItem:!1,selectedFilter:!1,activeGroupId:!1,hasPremiumItems:!1,subMenu:{title:" ",menu_items:[]},setSelectedSubMenuItem:async t=>{let s=u(t);e((e=>({selectedSubMenuItem:t,selectedMainMenuItem:s}))),window.location.hash=s+"/"+t},setSelectedMainMenuItem:t=>{e((e=>({selectedMainMenuItem:t}))),window.location.hash=t},fetchSelectedMainMenuItem:()=>{let t=(0,r.A)("main")||"dashboard";e((e=>({selectedMainMenuItem:t})))},fetchSelectedSubMenuItem:async()=>{let t=(0,r.A)("menu")||"general";e((e=>({selectedSubMenuItem:t})))},fetchMenuData:t=>{let s=rsssl_settings.menu;s=Object.values(s);const n=(0,r.A)("main")||"dashboard";if(s=s.filter((e=>!e.default_hidden||n===e.id)),void 0!==t){let r=c(s,n);const o=d(r,t);r.menu_items=l(r.menu_items,t,o);const{nextMenuItem:i,previousMenuItem:u}=a(s,o,t),f=r.menu_items.filter((e=>!0===e.premium)).length>0;e((e=>({subMenuLoaded:!0,menu:s,nextMenuItem:i,previousMenuItem:u,selectedMainMenuItem:n,selectedSubMenuItem:o,subMenu:r,hasPremiumItems:f})))}else e((e=>({menu:s,selectedMainMenuItem:n})))},getDefaultSubMenuItem:async e=>{let s=t().subMenuLoaded;s||await t().fetchMenuData(e);let n=t().subMenu,o=s&&n.hasOwnProperty(0)?n[0].id:"general",i=(0,r.A)("menu"),a=!1;for(const e in(void 0).menu.menu_items)n.hasOwnProperty(e)&&n[e].id===i&&(a=!0);return a||(i=!1),i||o}}))),i=(e,t,s)=>(t.forEach((t=>{t.visible&&(e.push(t.id),t.hasOwnProperty("menu_items")&&(t.menu_items=l(t.menu_items,s),i(e,t.menu_items,s)))})),e),a=(e,t,s)=>{let n,r;const o=[];i(o,e,s);const a=o.findIndex((e=>e===t));return-1!==a&&(n=o[0===a?"":a-1],f(n,e).hasOwnProperty("menu_items")&&(n=o[0===a?"":a-2]),r=o[a===o.length-1?"":a+1],n=n||o[0],r=r||o[o.length-1]),{nextMenuItem:r,previousMenuItem:n}},l=(e,t)=>{if(!Array.isArray(t))return e;const s=e;for(const[n,r]of e.entries()){let e=t.filter((e=>e.menu_id===r.id));e=e.filter((e=>e.visible)),0!==e.length||r.hasOwnProperty("menu_items")?("object"==typeof s[n]&&null!==s[n]&&(s[n].visible=!0),r.hasOwnProperty("menu_items")&&(s[n].menu_items=l(r.menu_items,t))):"object"==typeof s[n]&&null!==s[n]&&(s[n].visible=!1)}return s},c=(e,t)=>{let s=[];for(const n in e)e.hasOwnProperty(n)&&e[n].id===t&&(s=e[n]);return s=p(s),s},u=e=>{let t=rsssl_settings.menu;for(const s in t){let n=t[s];if(n.id===e)return n.id;if(n.menu_items)for(const t in n.menu_items){let s=n.menu_items[t];if(s.id===e)return n.id;if(s.menu_items)for(const t in s.menu_items)if(s.menu_items[t].id===e)return n.id}}return!1},d=(e,t)=>{let s,n=e&&e.menu_items.hasOwnProperty(0)?e.menu_items[0].id:"general",o=i([],e.menu_items),a=(0,r.A)("menu");s=o.filter((e=>e===a)),s||(a=!1);let l=a||n;if(0===t.filter((e=>e.menu_id===l)).length){let t=f(l,e.menu_items);t&&t.menu_items&&t.menu_items.hasOwnProperty(0)&&(l=t.menu_items[0].id)}return l},f=(e,t)=>{for(const s in t){let n=t[s];if(n.id===e)return n;if(n.menu_items){let t=f(e,n.menu_items);if(t)return t}}return!1},p=e=>{let t=Array.isArray(e.menu_items)?e.menu_items:Object.values(e.menu_items);for(let[e,s]of t.entries())"object"==typeof s&&null!==s&&(s.visible=!0,s.hasOwnProperty("menu_items")&&(s=p(s)),t[e]=s);return e.menu_items=t,e.visible=!0,e}},5131:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});const n=(0,s(1621).vt)(((e,t)=>({modalData:[],buttonsDisabled:!1,showModal:!1,ignoredItems:[],fixedItems:[],item:!1,setIgnoredItemId:s=>{let n=t().ignoredItems;n.push(s),e({ignoredItems:n})},setFixedItemId:s=>{let n=t().fixedItems;n.push(s),e({fixedItems:n})},handleModal:(t,s,n)=>{e({showModal:t,modalData:s,item:n})},setModalData:t=>{e({modalData:t})}})))},2039:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var n=s(1621),r=s(6535),o=s(1674),i=s(7723);const a=(0,n.vt)(((e,t)=>({steps:[],currentStepIndex:0,currentStep:{},error:!1,networkProgress:0,networkActivationStatus:"",certificateValid:"",networkwide:!1,sslEnabled:!1,overrideSSL:!1,showOnboardingModal:!1,modalStatusLoaded:!1,dataLoaded:!1,processing:!1,activateSSLClicked:!1,email:"",includeTips:!1,sendTestEmail:!0,overrideSSLDetection:!1,footerStatus:"",setFooterStatus:t=>{e({footerStatus:t})},setIncludeTips:t=>{e((e=>({includeTips:t})))},setSendTestEmail:t=>{e((e=>({sendTestEmail:t})))},setEmail:t=>{e((e=>({email:t})))},setProcessing:t=>{e((e=>({processing:t})))},setCurrentStepIndex:s=>{const n=t().steps[s];e((e=>({currentStepIndex:s,currentStep:n})))},dismissModal:async t=>{let s={};s.dismiss=t,e((()=>({showOnboardingModal:!t}))),await o.Eo("dismiss_modal",s)},setOverrideSSL:async t=>{e({overrideSSL:t});let s={overrideSSL:t};await o.Eo("override_ssl_detection",s)},activateSSL:()=>{e((e=>({processing:!0}))),o.YA("activate_ssl").then((async s=>{e((e=>({processing:!1}))),t().setCurrentStepIndex(t().currentStepIndex+1),s.success&&(s.site_url_changed?window.location.reload():t().networkwide&&e((e=>({networkActivationStatus:"main_site_activated"}))),e({sslEnabled:!0}))}))},saveEmail:()=>{t().setFooterStatus((0,i.__)("Updating email preferences..","really-simple-ssl"));let s={};s.email=t().email,s.includeTips=t().includeTips,s.sendTestEmail=t().sendTestEmail,e((e=>({processing:!0}))),o.Eo("update_email",s).then((s=>{e((e=>({processing:!1}))),t().setFooterStatus("")}))},updateItemStatus:(s,n,o,i,a)=>{const l=t().steps.findIndex((e=>e.id===s)),c=t().steps[l].items.findIndex((e=>e.id===n));e((0,r.jM)((e=>{void 0!==o&&(e.steps[l].items[c].action=o),void 0!==i&&(e.steps[l].items[c].status=i),void 0!==a&&(e.steps[l].items[c].activated=a)})));let u=t().steps[t().currentStepIndex];e((0,r.jM)((e=>{e.currentStep=u})))},fetchOnboardingModalStatus:async()=>{o.Eo("get_modal_status").then((t=>{e({showOnboardingModal:!1===t?.dismissed,modalStatusLoaded:!0})}))},setShowOnBoardingModal:(t,s=!1)=>e((e=>({showOnboardingModal:t,activateSSLClicked:s}))),pluginInstaller:async(s,n,r)=>{if(!n)return;e((()=>({processing:!0}))),t().updateItemStatus("plugins",s,n,"processing"),t().setFooterStatus((0,i.__)("Installing %d...","really-simple-ssl").replace("%d",r));let o=await c(n,s);t().updateItemStatus("plugins",s,o),"none"!==o&&"completed"!==o?(t().setFooterStatus((0,i.__)("Activating %d...","really-simple-ssl").replace("%d",r)),o=await c(o,s),t().updateItemStatus("plugins",s,o)):t().setFooterStatus(""),e((e=>({processing:!1})))},getSteps:async s=>{const n=t().activateSSLClicked,{steps:r,networkActivationStatus:o,certificateValid:i,networkProgress:a,networkwide:c,overrideSSL:u,error:d,sslEnabled:f,upgradedFromFree:p}=await l(s,n),m=new URLSearchParams(window.location.search),h="1"===m.get("verified_email");let g=0,v=h;if(h){const e=r.findIndex((e=>"features"===e.id));if(-1!==e){g=e,m.delete("verified_email");const t=window.location.pathname+(m.toString()?"?"+m.toString():"");window.history.replaceState({},"",t)}}else!p&&(f||c&&"completed"===o)&&(g=1);e({steps:r,currentStepIndex:g,currentStep:r[g],networkActivationStatus:o,certificateValid:i,networkProgress:a,networkwide:c,overrideSSL:u,sslEnabled:f,dataLoaded:!0,error:d,emailVerified:v,activateSSLClicked:!1}),"completed"===o&&e({networkProgress:100})},refreshSSLStatus:t=>{t.preventDefault(),e({processing:!0}),e((0,r.jM)((e=>{const t=e.steps.findIndex((e=>"activate_ssl"===e.id)),s=e.steps[t];s.items.forEach((function(e,t){"error"===e.status&&(s.items[t].status="processing",s.items[t].title=(0,i.__)("Re-checking SSL certificate, please wait...","really-simple-ssl"))})),e.steps[t]=s}))),setTimeout((async function(){const{steps:t,certificateValid:s,error:n}=await l(!0,!1);e({steps:t,certificateValid:s,processing:!1,error:n})}),1e3)},activateSSLNetworkWide:()=>{let s=t().networkProgress;void 0!==s&&t().setFooterStatus((0,i.__)("%d% of subsites activated.").replace("%d",s)),t().networkProgress>=100?e({sslEnabled:!0,networkActivationStatus:"completed"}):(e((()=>({processing:!0}))),o.YA("activate_ssl_networkwide").then((s=>{s.success&&(e({networkProgress:s.progress,processing:!1}),t().setFooterStatus((0,i.__)("%d% of subsites activated.").replace("%d",s.progress)),s.progress>=100&&(t().setFooterStatus(""),e({sslEnabled:!0,networkActivationStatus:"completed"})))})))}}))),l=(e,t=!1)=>{let s={};return s.forceRefresh=e,s.activateSSLClicked=t,o.Eo("onboarding_data",s).then((e=>{let t=e.steps,s=e.ssl_enabled;return{steps:t,networkActivationStatus:e.network_activation_status,certificateValid:e.certificate_valid,networkProgress:e.network_progress,networkwide:e.networkwide,overrideSSL:e.ssl_detection_overridden,error:e.error,sslEnabled:s,upgradedFromFree:e.rsssl_upgraded_from_free}}))},c=async(e,t)=>{let s={};return s.id=t,await o.Eo(e,s).then((async e=>e.success?e.next_action:"failed")).catch((e=>"failed"))},u=a},1254:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var n=s(1621),r=s(6535),o=s(1674),i=s(7723),a=s(9571);class l{constructor(e,t){this.currentField=e,this.allFields=t,this.disabledReason=this._getDefaultDisabledReason(),this.fieldConditionKeyBlocklist=["disabledTooltipText"]}isEnabled(){return!this.currentField.react_conditions||this._evaluateGroup(this.currentField.react_conditions)}getDisabledTooltipText(){return this.disabledReason}_getDefaultDisabledReason(){return this.currentField.hasOwnProperty("disabled")&&this.currentField.hasOwnProperty("disabledTooltipText")&&this.currentField.disabled?this.currentField.disabledTooltipText:""}_evaluateGroup(e){const t=e.relation?e.relation.toUpperCase():"AND",s=Object.keys(e).filter((e=>"relation"!==e)).map((t=>{const s=e[t];return"object"==typeof s&&s.hasOwnProperty("relation")?this._evaluateGroup(s):"object"==typeof s&&this._evaluateFieldConditions(s)}));return"AND"===t?s.every((e=>e)):s.some((e=>e))}_evaluateFieldConditions(e){let t=Object.keys(e).filter((e=>!this.fieldConditionKeyBlocklist.includes(e))).every((t=>this._checkFieldCondition(t,e[t])));return!1===t&&(this.disabledReason=e.hasOwnProperty("disabledTooltipText")?e.disabledTooltipText:""),t}_checkFieldCondition(e,t){const s=e.startsWith("!"),n=s?e.substring(1):e,r=this.allFields.find((e=>e.id===n));if(!r)return!1;const o=this._evaluateField(r,t);return s?!o:o}_evaluateField(e,t){const s=e.value;switch(e.type){case"text_checkbox":return s&&s.show===t;case"checkbox":return s==t;case"multicheckbox":{const e=Array.isArray(t)?t:[t];return Array.isArray(s)&&s.some((t=>e.includes(t)))}case"radio":return Array.isArray(t)?t.includes(s):t===s;default:return!0===t?1===s||"1"===s||!0===s:!1===t?0===s||"0"===s||!1===s:"string"==typeof t&&t.includes("EMPTY")?Array.isArray(s)?0===s.length:!s:String(s).toLowerCase()===String(t).toLowerCase()}}}const c=(0,n.vt)(((e,t)=>({fieldsLoaded:!1,error:!1,fields:[],changedFields:[],progress:[],nextButtonDisabled:!1,overrideNextButtonDisabled:!1,refreshTests:!1,highLightField:"",setHighLightField:t=>{e({highLightField:t})},setRefreshTests:t=>e((e=>({refreshTests:t}))),handleNextButtonDisabled:t=>{e({overrideNextButtonDisabled:t})},setChangedField:(t,s)=>{e((0,r.jM)((e=>{const n=e.changedFields.findIndex((e=>e.id===t));-1!==n&&e.changedFields.splice(n,1);let r={};r.id=t,r.value=s,e.changedFields.push(r)})))},showSavedSettingsNotice:(e,t="success")=>{f(e,t)},updateField:(t,s)=>{e((0,r.jM)((e=>{let n=e.fields.findIndex((e=>e.id===t));-1!==n&&(e.fields[n].value=s)})))},updateFieldAttribute:(t,s,n)=>{e((0,r.jM)((e=>{let r=e.fields.findIndex((e=>e.id===t));-1!==r&&(e.fields[r][s]=n)})))},updateSubField:(t,s,n)=>{e((0,r.jM)((e=>{let r=e.fields.findIndex((e=>e.id===t)),o=e.fields[r].value;Array.isArray(o)||(o=[]);let i=o.findIndex((e=>e.id===s));-1!==i&&(e.fields[r].updateItemId=s,e.fields[r].value[i].value=n,e.fields[r].value=o.map((e=>{const{deleteControl:t,valueControl:s,statusControl:n,...r}=e;return r})))})))},removeHelpNotice:t=>{e((0,r.jM)((e=>{const s=e.fields.findIndex((e=>e.id===t));e.fields[s].help=!1})))},addHelpNotice:(s,n,o,i,a)=>{t().removeHelpNotice(s);let l={};l.label=n,l.text=o,a&&(l.url=a),i&&(l.title=i),e((0,r.jM)((e=>{const t=e.fields.findIndex((e=>e.id===s));-1!==t&&(e.fields[t].help=l)})))},fieldAlreadyEnabled:e=>{let s=t().changedFields.filter((t=>t.id===e)).length>0,n=t().getFieldValue(e);return!s&&n},getFieldValue:e=>{let s=t().fields.filter((t=>t.id===e))[0];return!!s&&s.value},getField:e=>t().fields.filter((t=>t.id===e))[0]||!1,saveFields:async(s,n,l=!1)=>{let c=void 0===s||s;n=void 0===n||n;let u=t().fields;u=u.filter((e=>"banner"!==e.data_target));let d=t().changedFields,f=[];for(const e of u){let t=d.filter((t=>t.id===e.id)).length>0,s="select"===e.type||"radio"===e.type;(t||e.never_saved&&!e.disabled&&s)&&f.push(e)}if(f.length>0||!0===l){let t=o.Ey(f).then((e=>e));n&&a.toast.promise(t,{pending:(0,i.__)("Saving settings...","really-simple-ssl"),success:(0,i.__)("Settings saved","really-simple-ssl"),error:(0,i.__)("Something went wrong","really-simple-ssl")}),await t.then((t=>{e((0,r.jM)((e=>{e.changedFields=[],e.fields=t.fields,e.progress=t.progress,e.refreshTests=c})))}))}n&&0===f.length&&a.toast.promise(Promise.resolve(),{success:(0,i.__)("Settings saved","really-simple-ssl")})},updateFieldsData:s=>{let n=t().fields;if(n=d(n),s){let o=u(n,s);t().overrideNextButtonDisabled&&(o=t().overrideNextButtonDisabled),e((0,r.jM)((e=>{e.nextButtonDisabled=o})))}e((0,r.jM)((e=>{e.fields=n})))},fetchFieldsData:async t=>{const{fields:s,progress:n,error:r}=await o.ww().then((e=>({fields:e.fields,progress:e.progress,error:e.error}))).catch((e=>{console.error(e)}));let i=d(s),a=i.filter((e=>e.menu_id===t));e({fieldsLoaded:!0,fields:i,selectedFields:a,progress:n,error:r})}}))),u=(e,t)=>{let s=[];for(const n of e)n.menu_id===t&&s.push(n);return s.filter((e=>e.required&&!e.conditionallyDisabled&&(0==e.value.length||!e.value))).length>0},d=e=>{let t=[];return e&&Array.isArray(e)?(e.forEach((function(s,n){let r=new l(s,e),o=r.isEnabled();const i={...s};i.conditionallyDisabled=!1===o,i.disabledTooltipHoverText=r.getDisabledTooltipText(),i.visible=!(!o&&("letsencrypt"===i.type||"hide"===i.condition_action)),t.push(i)})),t):[]},f=(e,t)=>{void 0===e&&(e=(0,i.__)("Settings saved","really-simple-ssl")),void 0===t&&(t="success"),"error"===t&&a.toast.error(e),"warning"===t&&a.toast.warning(e),"info"===t&&a.toast.info(e),"success"===t&&a.toast.success(e)}},340:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>a});var n=s(6427),r=s(7143);const o=window.wp.notices;var i=s(790);const a=()=>{const e=(0,r.useSelect)((e=>e(o.store).getNotices().filter((e=>"snackbar"===e.type))),[]);if(void 0===e)return(0,i.jsx)(i.Fragment,{});const{removeNotice:t}=(0,r.useDispatch)(o.store);return(0,i.jsx)(n.SnackbarList,{className:"edit-site-notices",notices:e,onRemove:t})}},8743:(e,t,s)=>{"use strict";s.d(t,{g:()=>n});const n=e=>{const t=rsssl_settings.ref;if(parseInt(t)>0){const[s,n]=e.split("#"),r=s.includes("?")?"&":"?";e=`${s}${r}ref=${t}${n?`#${n}`:""}`}return e}},6064:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var n=s(7723),r=s(4032),o=s(790);const i=e=>{e.error&&(console.log("errors detected during the loading of the settings page"),console.log(e.error));let t=!1,s=(0,n.__)("Please check if security settings on the server or a plugin is blocking the requests from Really Simple Security.","really-simple-ssl"),i=!1;return e.error&&(i=e.error.message,"string"!=typeof i&&(i=JSON.stringify(i)),"rest_no_route"===e.error.code?t=(0,n.__)("The Really Simple Security Rest API is disabled.","really-simple-ssl")+" "+s:"404"===e.error.data.status?t=(0,n.__)("The Really Simple Security Rest API returned a not found.","really-simple-ssl")+" "+s:"403"===e.error.data.status&&(t=(0,n.__)("The Really Simple Security Rest API returned a 403 forbidden error.","really-simple-ssl")+" "+s),i.length>100&&(i=i.substring(0,100)+"...")),(0,o.jsx)(o.Fragment,{children:e.error&&(0,o.jsxs)("div",{className:"rsssl-rest-error-message",children:[(0,o.jsx)("h3",{children:(0,n.__)("A problem was detected during the loading of the settings","really-simple-ssl")}),t&&(0,o.jsx)("p",{children:t}),(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{children:(0,n.__)("The request returned the following errors:","really-simple-ssl")}),(0,o.jsxs)("ul",{children:[e.error.code&&(0,o.jsxs)("li",{children:[(0,n.__)("Response code:","really-simple-ssl")," ",e.error.code]}),e.error.data.status&&(0,o.jsxs)("li",{children:[(0,n.__)("Status code:","really-simple-ssl")," ",e.error.data.status]}),i&&(0,o.jsxs)("li",{children:[(0,n.__)("Server response:","really-simple-ssl")," ",i]})]})]}),(0,o.jsx)(r.A,{className:"button button-default",target:"_blank",rel:"noopener noreferrer",text:(0,n.__)("More information","really-simple-ssl"),url:"https://really-simple-ssl.com/instructions/how-to-debug-a-blank-settings-page-in-really-simple-ssl/"})]})})}},9518:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var n=s(6087),r=s(5556),o=s.n(r),i=s(790);class a extends n.Component{constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null},this.resetError=this.resetError.bind(this)}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){this.setState({error:e,errorInfo:t}),console.log("ErrorBoundary",e,t)}resetError(){this.setState({hasError:!1,error:null,errorInfo:null})}render(){return this.state.hasError?(0,i.jsxs)("div",{children:[(0,i.jsx)("h1",{children:"Something went wrong."}),(0,i.jsx)("p",{children:this.props.fallback}),(0,i.jsx)("button",{onClick:this.resetError,children:"Try Again"})]}):this.props.children}}a.propTypes={children:o().node,fallback:o().node};const l=a},4032:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var n=s(790);const r=e=>{let t="",s="",r="";if(-1!==e.text.indexOf("%s")){let n=e.text.split(/%s/);t=n[0],r=n[1],s=n[2]}else r=e.text;let o=e.className?e.className:"rsssl-link";return(0,n.jsxs)(n.Fragment,{children:[t,(0,n.jsx)("a",{className:o,target:e.target,rel:e.rel,href:e.url,children:r}),s]})}},1674:(e,t,s)=>{"use strict";s.d(t,{Eo:()=>m,Ey:()=>d,YA:()=>f,bl:()=>p,ww:()=>u});var n=s(1307),r=s(1455),o=s.n(r);const i=()=>"&nonce="+rsssl_settings.rsssl_nonce+"&token="+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),a=e=>o()({path:e}).then((e=>{if(!e.request_success)throw new Error("apiFetch failed with response: "+e);return e})).catch((e=>{throw new Error("apiGet failed with error: "+e.message)})),l=(e,t)=>o()({path:e,method:"POST",data:t}).catch((e=>{throw new Error("apiPost failed with error: "+e.message)})),c=()=>-1!==rsssl_settings.site_url.indexOf("?")?"&":"?",u=()=>{let e=(0,n.A)("main");return a("really-simple-security/v1/fields/get"+c()+e+i())},d=e=>{let t=(0,n.A)("main"),s={nonce:rsssl_settings.rsssl_nonce};return e.push(s),l("really-simple-security/v1/fields/set"+c()+t,e)},f=(e,t,s)=>(t||(t=!1),s||(s=!1),s=encodeURIComponent(JSON.stringify(s)),a("really-simple-security/v1/tests/"+e+c()+"state="+t+i()+"&data="+s)),p=(e,t)=>a("really-simple-security/v1/tests/"+e+c()+"letsencrypt=1&id="+t+i()),m=(e,t)=>{const s={...t};return s.nonce=rsssl_settings.rsssl_nonce,l("really-simple-security/v1/do_action/"+e,s)}},1307:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});const n=e=>{let t=window.location.href;if(-1===t.indexOf("#"))return!1;let s=t.split("#")[1];if(!s)return!1;let n=s.split("&");if("highlightfield"===e){for(let e of n)if(e.startsWith("highlightfield="))return e.split("=")[1];return!1}let r=n[0];if("anchor"===e){if(-1===r.indexOf("/"))return!1;{let e=r.split("/");return e.length>2&&e[2]}}if("menu"===e){if(-1===r.indexOf("/"))return!1;{let e=r.split("/");return e.length>1&&e[1]}}return-1===r.indexOf("/")?r:r.split("/")[0]}},53:(e,t,s)=>{"use strict";function n(e){var t,s,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(s=n(e[t]))&&(r&&(r+=" "),r+=s);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}s.d(t,{A:()=>r});const r=function(){for(var e,t,s=0,r="";s<arguments.length;)(e=arguments[s++])&&(t=n(e))&&(r&&(r+=" "),r+=t);return r}},2694:(e,t,s)=>{"use strict";var n=s(6925);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,s,r,o,i){if(i!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var s={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return s.PropTypes=s,s}},5556:(e,t,s)=>{e.exports=s(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1063:(e,t,s)=>{"use strict";var n=s(1609),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,i=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!r(e,s)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),n=o({inst:{value:s,getSnapshot:t}}),r=n[0].inst,u=n[1];return a((function(){r.value=s,r.getSnapshot=t,c(r)&&u({inst:r})}),[e,s,t]),i((function(){return c(r)&&u({inst:r}),e((function(){c(r)&&u({inst:r})}))}),[e]),l(s),s};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},8940:(e,t,s)=>{"use strict";var n=s(1609),r=s(9888),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=n.useRef,l=n.useEffect,c=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,s,n,r){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!l){if(l=!0,i=e,e=n(e),void 0!==r&&f.hasValue){var t=f.value;if(r(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var s=n(e);return void 0!==r&&r(t,s)?t:(i=e,a=s)}var i,a,l=!1,c=void 0===s?null:s;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,s,n,r]);var p=i(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},9888:(e,t,s)=>{"use strict";e.exports=s(1063)},9242:(e,t,s)=>{"use strict";e.exports=s(8940)},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},1455:e=>{"use strict";e.exports=window.wp.apiFetch},6427:e=>{"use strict";e.exports=window.wp.components},7143:e=>{"use strict";e.exports=window.wp.data},6087:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},6535:(e,t,s)=>{"use strict";function n(e){for(var t=arguments.length,s=Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(s.length?" "+s.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(e){return!!e&&!!e[q]}function o(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var s=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return s===Object||"function"==typeof s&&Function.toString.call(s)===H}(e)||Array.isArray(e)||!!e[V]||!!(null===(t=e.constructor)||void 0===t?void 0:t[V])||u(e)||d(e))}function i(e,t,s){void 0===s&&(s=!1),0===a(e)?(s?Object.keys:W)(e).forEach((function(n){s&&"symbol"==typeof n||t(n,e[n],e)})):e.forEach((function(s,n){return t(n,s,e)}))}function a(e){var t=e[q];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:u(e)?2:d(e)?3:0}function l(e,t){return 2===a(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t,s){var n=a(e);2===n?e.set(t,s):3===n?e.add(s):e[t]=s}function u(e){return R&&e instanceof Map}function d(e){return B&&e instanceof Set}function f(e){return e.o||e.t}function p(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=U(e);delete t[q];for(var s=W(t),n=0;n<s.length;n++){var r=s[n],o=t[r];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[r]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[r]})}return Object.create(Object.getPrototypeOf(e),t)}function m(e,t){return void 0===t&&(t=!1),g(e)||r(e)||!o(e)||(a(e)>1&&(e.set=e.add=e.clear=e.delete=h),Object.freeze(e),t&&i(e,(function(e,t){return m(t,!0)}),!0)),e}function h(){n(2)}function g(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function v(e){var t=K[e];return t||n(18,e),t}function y(){return F}function b(e,t){t&&(v("Patches"),e.u=[],e.s=[],e.v=t)}function _(e){w(e),e.p.forEach(E),e.p=null}function w(e){e===F&&(F=e.l)}function S(e){return F={p:[],l:F,h:e,m:!0,_:0}}function E(e){var t=e[q];0===t.i||1===t.i?t.j():t.g=!0}function x(e,t){t._=t.p.length;var s=t.p[0],r=void 0!==e&&e!==s;return t.h.O||v("ES5").S(t,e,r),r?(s[q].P&&(_(t),n(4)),o(e)&&(e=T(t,e),t.l||I(t,e)),t.u&&v("Patches").M(s[q].t,e,t.u,t.s)):e=T(t,s,[]),_(t),t.u&&t.v(t.u,t.s),e!==z?e:void 0}function T(e,t,s){if(g(t))return t;var n=t[q];if(!n)return i(t,(function(r,o){return O(e,n,t,r,o,s)}),!0),t;if(n.A!==e)return t;if(!n.P)return I(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var r=4===n.i||5===n.i?n.o=p(n.k):n.o,o=r,a=!1;3===n.i&&(o=new Set(r),r.clear(),a=!0),i(o,(function(t,o){return O(e,n,r,t,o,s,a)})),I(e,r,!1),s&&e.u&&v("Patches").N(n,s,e.u,e.s)}return n.o}function O(e,t,s,n,i,a,u){if(r(i)){var d=T(e,i,a&&t&&3!==t.i&&!l(t.R,n)?a.concat(n):void 0);if(c(s,n,d),!r(d))return;e.m=!1}else u&&s.add(i);if(o(i)&&!g(i)){if(!e.h.D&&e._<1)return;T(e,i),t&&t.A.l||I(e,i)}}function I(e,t,s){void 0===s&&(s=!1),!e.l&&e.h.D&&e.m&&m(t,s)}function j(e,t){var s=e[q];return(s?f(s):e)[t]}function A(e,t){if(t in e)for(var s=Object.getPrototypeOf(e);s;){var n=Object.getOwnPropertyDescriptor(s,t);if(n)return n;s=Object.getPrototypeOf(s)}}function P(e){e.P||(e.P=!0,e.l&&P(e.l))}function k(e){e.o||(e.o=p(e.t))}function C(e,t,s){var n=u(t)?v("MapSet").F(t,s):d(t)?v("MapSet").T(t,s):e.O?function(e,t){var s=Array.isArray(e),n={i:s?1:0,A:t?t.A:y(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},r=n,o=G;s&&(r=[n],o=Y);var i=Proxy.revocable(r,o),a=i.revoke,l=i.proxy;return n.k=l,n.j=a,l}(t,s):v("ES5").J(t,s);return(s?s.A:y()).p.push(n),n}function M(e){return r(e)||n(22,e),function e(t){if(!o(t))return t;var s,n=t[q],r=a(t);if(n){if(!n.P&&(n.i<4||!v("ES5").K(n)))return n.t;n.I=!0,s=N(t,r),n.I=!1}else s=N(t,r);return i(s,(function(t,r){n&&function(e,t){return 2===a(e)?e.get(t):e[t]}(n.t,t)===r||c(s,t,e(r))})),3===r?new Set(s):s}(e)}function N(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return p(e)}s.d(t,{Ay:()=>Z,jM:()=>X});var L,F,D="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),R="undefined"!=typeof Map,B="undefined"!=typeof Set,$="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,z=D?Symbol.for("immer-nothing"):((L={})["immer-nothing"]=!0,L),V=D?Symbol.for("immer-draftable"):"__$immer_draftable",q=D?Symbol.for("immer-state"):"__$immer_state",H=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),W="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,U=Object.getOwnPropertyDescriptors||function(e){var t={};return W(e).forEach((function(s){t[s]=Object.getOwnPropertyDescriptor(e,s)})),t},K={},G={get:function(e,t){if(t===q)return e;var s=f(e);if(!l(s,t))return function(e,t,s){var n,r=A(t,s);return r?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(e.k):void 0}(e,s,t);var n=s[t];return e.I||!o(n)?n:n===j(e.t,t)?(k(e),e.o[t]=C(e.A.h,n,e)):n},has:function(e,t){return t in f(e)},ownKeys:function(e){return Reflect.ownKeys(f(e))},set:function(e,t,s){var n=A(f(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,s),!0;if(!e.P){var r=j(f(e),t),o=null==r?void 0:r[q];if(o&&o.t===s)return e.o[t]=s,e.R[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(s,r)&&(void 0!==s||l(e.t,t)))return!0;k(e),P(e)}return e.o[t]===s&&(void 0!==s||t in e.o)||Number.isNaN(s)&&Number.isNaN(e.o[t])||(e.o[t]=s,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==j(e.t,t)||t in e.t?(e.R[t]=!1,k(e),P(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var s=f(e),n=Reflect.getOwnPropertyDescriptor(s,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:s[t]}:n},defineProperty:function(){n(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){n(12)}},Y={};i(G,(function(e,t){Y[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Y.deleteProperty=function(e,t){return Y.set.call(this,e,t,void 0)},Y.set=function(e,t,s){return G.set.call(this,e[0],t,s,e[0])};var Q=function(){function e(e){var t=this;this.O=$,this.D=!0,this.produce=function(e,s,r){if("function"==typeof e&&"function"!=typeof s){var i=s;s=e;var a=t;return function(e){var t=this;void 0===e&&(e=i);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return a.produce(e,(function(e){var n;return(n=s).call.apply(n,[t,e].concat(r))}))}}var l;if("function"!=typeof s&&n(6),void 0!==r&&"function"!=typeof r&&n(7),o(e)){var c=S(t),u=C(t,e,void 0),d=!0;try{l=s(u),d=!1}finally{d?_(c):w(c)}return"undefined"!=typeof Promise&&l instanceof Promise?l.then((function(e){return b(c,r),x(e,c)}),(function(e){throw _(c),e})):(b(c,r),x(l,c))}if(!e||"object"!=typeof e){if(void 0===(l=s(e))&&(l=e),l===z&&(l=void 0),t.D&&m(l,!0),r){var f=[],p=[];v("Patches").M(e,l,f,p),r(f,p)}return l}n(21,e)},this.produceWithPatches=function(e,s){if("function"==typeof e)return function(s){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.produceWithPatches(s,(function(t){return e.apply(void 0,[t].concat(r))}))};var n,r,o=t.produce(e,s,(function(e,t){n=e,r=t}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(e){return[e,n,r]})):[o,n,r]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){o(e)||n(8),r(e)&&(e=M(e));var t=S(this),s=C(this,e,void 0);return s[q].C=!0,w(t),s},t.finishDraft=function(e,t){var s=(e&&e[q]).A;return b(s,t),x(void 0,s)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!$&&n(20),this.O=e},t.applyPatches=function(e,t){var s;for(s=t.length-1;s>=0;s--){var n=t[s];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}s>-1&&(t=t.slice(s+1));var o=v("Patches").$;return r(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),J=new Q,X=J.produce;J.produceWithPatches.bind(J),J.setAutoFreeze.bind(J),J.setUseProxies.bind(J),J.applyPatches.bind(J),J.createDraft.bind(J),J.finishDraft.bind(J);const Z=X},9571:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Bounce:()=>x,Flip:()=>I,Icons:()=>h,Slide:()=>T,ToastContainer:()=>j,Zoom:()=>O,collapseToast:()=>u,cssTransition:()=>d,toast:()=>R,useToast:()=>b,useToastContainer:()=>g});var n=s(1609),r=s(53);const o=e=>"number"==typeof e&&!isNaN(e),i=e=>"string"==typeof e,a=e=>"function"==typeof e,l=e=>i(e)||a(e)?e:null,c=e=>(0,n.isValidElement)(e)||i(e)||a(e)||o(e);function u(e,t,s){void 0===s&&(s=300);const{scrollHeight:n,style:r}=e;requestAnimationFrame((()=>{r.minHeight="initial",r.height=n+"px",r.transition=`all ${s}ms`,requestAnimationFrame((()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(t,s)}))}))}function d(e){let{enter:t,exit:s,appendPosition:r=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(e){let{children:a,position:l,preventExitTransition:c,done:d,nodeRef:f,isIn:p}=e;const m=r?`${t}--${l}`:t,h=r?`${s}--${l}`:s,g=(0,n.useRef)(0);return(0,n.useLayoutEffect)((()=>{const e=f.current,t=m.split(" "),s=n=>{n.target===f.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",s),e.removeEventListener("animationcancel",s),0===g.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",s),e.addEventListener("animationcancel",s)}),[]),(0,n.useEffect)((()=>{const e=f.current,t=()=>{e.removeEventListener("animationend",t),o?u(e,d,i):d()};p||(c?t():(g.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[p]),n.createElement(n.Fragment,null,a)}}function f(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const p={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const s=this.list.get(e).filter((e=>e!==t));return this.list.set(e,s),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const s=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(s)}))}},m=e=>{let{theme:t,type:s,...r}=e;return n.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${s})`,...r})},h={info:function(e){return n.createElement(m,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return n.createElement(m,{...e},n.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return n.createElement(m,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return n.createElement(m,{...e},n.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return n.createElement("div",{className:"Toastify__spinner"})}};function g(e){const[,t]=(0,n.useReducer)((e=>e+1),0),[s,r]=(0,n.useState)([]),u=(0,n.useRef)(null),d=(0,n.useRef)(new Map).current,m=e=>-1!==s.indexOf(e),g=(0,n.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:m,getToast:e=>d.get(e)}).current;function v(e){let{containerId:t}=e;const{limit:s}=g.props;!s||t&&g.containerId!==t||(g.count-=g.queue.length,g.queue=[])}function y(e){r((t=>null==e?[]:t.filter((t=>t!==e))))}function b(){const{toastContent:e,toastProps:t,staleId:s}=g.queue.shift();w(e,t,s)}function _(e,s){let{delay:r,staleId:m,...v}=s;if(!c(e)||function(e){return!u.current||g.props.enableMultiContainer&&e.containerId!==g.props.containerId||d.has(e.toastId)&&null==e.updateId}(v))return;const{toastId:_,updateId:S,data:E}=v,{props:x}=g,T=()=>y(_),O=null==S;O&&g.count++;const I={...x,style:x.toastStyle,key:g.toastKey++,...Object.fromEntries(Object.entries(v).filter((e=>{let[t,s]=e;return null!=s}))),toastId:_,updateId:S,data:E,closeToast:T,isIn:!1,className:l(v.className||x.toastClassName),bodyClassName:l(v.bodyClassName||x.bodyClassName),progressClassName:l(v.progressClassName||x.progressClassName),autoClose:!v.isLoading&&(j=v.autoClose,A=x.autoClose,!1===j||o(j)&&j>0?j:A),deleteToast(){const e=f(d.get(_),"removed");d.delete(_),p.emit(4,e);const s=g.queue.length;if(g.count=null==_?g.count-g.displayedToast:g.count-1,g.count<0&&(g.count=0),s>0){const e=null==_?g.props.limit:1;if(1===s||1===e)g.displayedToast++,b();else{const t=e>s?s:e;g.displayedToast=t;for(let e=0;e<t;e++)b()}}else t()}};var j,A;I.iconOut=function(e){let{theme:t,type:s,isLoading:r,icon:l}=e,c=null;const u={theme:t,type:s};return!1===l||(a(l)?c=l(u):(0,n.isValidElement)(l)?c=(0,n.cloneElement)(l,u):i(l)||o(l)?c=l:r?c=h.spinner():(e=>e in h)(s)&&(c=h[s](u))),c}(I),a(v.onOpen)&&(I.onOpen=v.onOpen),a(v.onClose)&&(I.onClose=v.onClose),I.closeButton=x.closeButton,!1===v.closeButton||c(v.closeButton)?I.closeButton=v.closeButton:!0===v.closeButton&&(I.closeButton=!c(x.closeButton)||x.closeButton);let P=e;(0,n.isValidElement)(e)&&!i(e.type)?P=(0,n.cloneElement)(e,{closeToast:T,toastProps:I,data:E}):a(e)&&(P=e({closeToast:T,toastProps:I,data:E})),x.limit&&x.limit>0&&g.count>x.limit&&O?g.queue.push({toastContent:P,toastProps:I,staleId:m}):o(r)?setTimeout((()=>{w(P,I,m)}),r):w(P,I,m)}function w(e,t,s){const{toastId:n}=t;s&&d.delete(s);const o={content:e,props:t};d.set(n,o),r((e=>[...e,n].filter((e=>e!==s)))),p.emit(4,f(o,null==o.props.updateId?"added":"updated"))}return(0,n.useEffect)((()=>(g.containerId=e.containerId,p.cancelEmit(3).on(0,_).on(1,(e=>u.current&&y(e))).on(5,v).emit(2,g),()=>{d.clear(),p.emit(3,g)})),[]),(0,n.useEffect)((()=>{g.props=e,g.isToastActive=m,g.displayedToast=s.length})),{getToastToRender:function(t){const s=new Map,n=Array.from(d.values());return e.newestOnTop&&n.reverse(),n.forEach((e=>{const{position:t}=e.props;s.has(t)||s.set(t,[]),s.get(t).push(e)})),Array.from(s,(e=>t(e[0],e[1])))},containerRef:u,isToastActive:m}}function v(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function y(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function b(e){const[t,s]=(0,n.useState)(!1),[r,o]=(0,n.useState)(!1),i=(0,n.useRef)(null),l=(0,n.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,n.useRef)(e),{autoClose:u,pauseOnHover:d,closeToast:f,onClick:p,closeOnClick:m}=e;function h(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),l.didMove=!1,document.addEventListener("mousemove",w),document.addEventListener("mouseup",S),document.addEventListener("touchmove",w),document.addEventListener("touchend",S);const s=i.current;l.canCloseOnClick=!0,l.canDrag=!0,l.boundingRect=s.getBoundingClientRect(),s.style.transition="",l.x=v(t.nativeEvent),l.y=y(t.nativeEvent),"x"===e.draggableDirection?(l.start=l.x,l.removalDistance=s.offsetWidth*(e.draggablePercent/100)):(l.start=l.y,l.removalDistance=s.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function g(t){if(l.boundingRect){const{top:s,bottom:n,left:r,right:o}=l.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&l.x>=r&&l.x<=o&&l.y>=s&&l.y<=n?_():b()}}function b(){s(!0)}function _(){s(!1)}function w(s){const n=i.current;l.canDrag&&n&&(l.didMove=!0,t&&_(),l.x=v(s),l.y=y(s),l.delta="x"===e.draggableDirection?l.x-l.start:l.y-l.start,l.start!==l.x&&(l.canCloseOnClick=!1),n.style.transform=`translate${e.draggableDirection}(${l.delta}px)`,n.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function S(){document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",S),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",S);const t=i.current;if(l.canDrag&&l.didMove&&t){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return o(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,n.useEffect)((()=>{c.current=e})),(0,n.useEffect)((()=>(i.current&&i.current.addEventListener("d",b,{once:!0}),a(e.onOpen)&&e.onOpen((0,n.isValidElement)(e.children)&&e.children.props),()=>{const e=c.current;a(e.onClose)&&e.onClose((0,n.isValidElement)(e.children)&&e.children.props)})),[]),(0,n.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||_(),window.addEventListener("focus",b),window.addEventListener("blur",_)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",b),window.removeEventListener("blur",_))})),[e.pauseOnFocusLoss]);const E={onMouseDown:h,onTouchStart:h,onMouseUp:g,onTouchEnd:g};return u&&d&&(E.onMouseEnter=_,E.onMouseLeave=b),m&&(E.onClick=e=>{p&&p(e),l.canCloseOnClick&&f()}),{playToast:b,pauseToast:_,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:E}}function _(e){let{closeToast:t,theme:s,ariaLabel:r="close"}=e;return n.createElement("button",{className:`Toastify__close-button Toastify__close-button--${s}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},n.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function w(e){let{delay:t,isRunning:s,closeToast:o,type:i="default",hide:l,className:c,style:u,controlledProgress:d,progress:f,rtl:p,isIn:m,theme:h}=e;const g=l||d&&0===f,v={...u,animationDuration:`${t}ms`,animationPlayState:s?"running":"paused",opacity:g?0:1};d&&(v.transform=`scaleX(${f})`);const y=(0,r.A)("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":p}),b=a(c)?c({rtl:p,type:i,defaultClassName:y}):(0,r.A)(y,c);return n.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:b,style:v,[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]:d&&f<1?null:()=>{m&&o()}})}const S=e=>{const{isRunning:t,preventExitTransition:s,toastRef:o,eventHandlers:i}=b(e),{closeButton:l,children:c,autoClose:u,onClick:d,type:f,hideProgressBar:p,closeToast:m,transition:h,position:g,className:v,style:y,bodyClassName:S,bodyStyle:E,progressClassName:x,progressStyle:T,updateId:O,role:I,progress:j,rtl:A,toastId:P,deleteToast:k,isIn:C,isLoading:M,iconOut:N,closeOnClick:L,theme:F}=e,D=(0,r.A)("Toastify__toast",`Toastify__toast-theme--${F}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":A},{"Toastify__toast--close-on-click":L}),R=a(v)?v({rtl:A,position:g,type:f,defaultClassName:D}):(0,r.A)(D,v),B=!!j||!u,$={closeToast:m,type:f,theme:F};let z=null;return!1===l||(z=a(l)?l($):(0,n.isValidElement)(l)?(0,n.cloneElement)(l,$):_($)),n.createElement(h,{isIn:C,done:k,position:g,preventExitTransition:s,nodeRef:o},n.createElement("div",{id:P,onClick:d,className:R,...i,style:y,ref:o},n.createElement("div",{...C&&{role:I},className:a(S)?S({type:f}):(0,r.A)("Toastify__toast-body",S),style:E},null!=N&&n.createElement("div",{className:(0,r.A)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!M})},N),n.createElement("div",null,c)),z,n.createElement(w,{...O&&!B?{key:`pb-${O}`}:{},rtl:A,theme:F,delay:u,isRunning:t,isIn:C,closeToast:m,hide:p,type:f,style:T,className:x,controlledProgress:B,progress:j||0})))},E=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},x=d(E("bounce",!0)),T=d(E("slide",!0)),O=d(E("zoom")),I=d(E("flip")),j=(0,n.forwardRef)(((e,t)=>{const{getToastToRender:s,containerRef:o,isToastActive:i}=g(e),{className:c,style:u,rtl:d,containerId:f}=e;function p(e){const t=(0,r.A)("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return a(c)?c({position:e,rtl:d,defaultClassName:t}):(0,r.A)(t,l(c))}return(0,n.useEffect)((()=>{t&&(t.current=o.current)}),[]),n.createElement("div",{ref:o,className:"Toastify",id:f},s(((e,t)=>{const s=t.length?{...u}:{...u,pointerEvents:"none"};return n.createElement("div",{className:p(e),style:s,key:`container-${e}`},t.map(((e,s)=>{let{content:r,props:o}=e;return n.createElement(S,{...o,isIn:i(o.toastId),style:{...o.style,"--nth":s+1,"--len":t.length},key:`toast-${o.key}`},r)})))})))}));j.displayName="ToastContainer",j.defaultProps={position:"top-right",transition:x,autoClose:5e3,closeButton:_,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let A,P=new Map,k=[],C=1;function M(){return""+C++}function N(e){return e&&(i(e.toastId)||o(e.toastId))?e.toastId:M()}function L(e,t){return P.size>0?p.emit(0,e,t):k.push({content:e,options:t}),t.toastId}function F(e,t){return{...t,type:t&&t.type||e,toastId:N(t)}}function D(e){return(t,s)=>L(t,F(e,s))}function R(e,t){return L(e,F("default",t))}R.loading=(e,t)=>L(e,F("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),R.promise=function(e,t,s){let n,{pending:r,error:o,success:l}=t;r&&(n=i(r)?R.loading(r,s):R.loading(r.render,{...s,...r}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(e,t,r)=>{if(null==t)return void R.dismiss(n);const o={type:e,...c,...s,data:r},a=i(t)?{render:t}:t;return n?R.update(n,{...o,...a}):R(a.render,{...o,...a}),r},d=a(e)?e():e;return d.then((e=>u("success",l,e))).catch((e=>u("error",o,e))),d},R.success=D("success"),R.info=D("info"),R.error=D("error"),R.warning=D("warning"),R.warn=R.warning,R.dark=(e,t)=>L(e,F("default",{theme:"dark",...t})),R.dismiss=e=>{P.size>0?p.emit(1,e):k=k.filter((t=>null!=e&&t.options.toastId!==e))},R.clearWaitingQueue=function(e){return void 0===e&&(e={}),p.emit(5,e)},R.isActive=e=>{let t=!1;return P.forEach((s=>{s.isToastActive&&s.isToastActive(e)&&(t=!0)})),t},R.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const s=function(e,t){let{containerId:s}=t;const n=P.get(s||A);return n&&n.getToast(e)}(e,t);if(s){const{props:n,content:r}=s,o={delay:100,...n,...t,toastId:t.toastId||e,updateId:M()};o.toastId!==e&&(o.staleId=e);const i=o.render||r;delete o.render,L(i,o)}}),0)},R.done=e=>{R.update(e,{progress:1})},R.onChange=e=>(p.on(4,e),()=>{p.off(4,e)}),R.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},R.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},p.on(2,(e=>{A=e.containerId||e,P.set(A,e),k.forEach((e=>{p.emit(0,e.content,e.options)})),k=[]})).on(3,(e=>{P.delete(e.containerId||e),0===P.size&&p.off(0).off(1).off(5)}))},1621:(e,t,s)=>{"use strict";s.d(t,{vt:()=>d});const n=e=>{let t;const s=new Set,n=(e,n)=>{const r="function"==typeof e?e(t):e;if(!Object.is(r,t)){const e=t;t=(null!=n?n:"object"!=typeof r||null===r)?r:Object.assign({},t,r),s.forEach((s=>s(t,e)))}},r=()=>t,o={setState:n,getState:r,getInitialState:()=>i,subscribe:e=>(s.add(e),()=>s.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),s.clear()}},i=t=e(n,r,o);return o};var r=s(1609),o=s(9242);const{useDebugValue:i}=r,{useSyncExternalStoreWithSelector:a}=o;let l=!1;const c=e=>e,u=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?n(e):n)(e):e,s=(e,s)=>function(e,t=c,s){s&&!l&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),l=!0);const n=a(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,s);return i(n),n}(t,e,s);return Object.assign(s,t),s},d=e=>e?u(e):u}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return s[e].call(o.exports,o,o.exports,r),o.exports}r.m=s,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,s)=>(r.f[s](e,t),t)),[])),r.u=e=>e+"."+{8:"a58b0fbbca98fed315b4",91:"b0f863c7b47144cb4cdf",139:"12de12bd599af6bb648c",366:"0e8cd32aeda45546f72d",470:"5091a8eb35ca6d3dbc61",485:"09b2206e7cb2f9ad160e",573:"287bf1828cad7f912345",635:"1aee1a8a0b3a1aed2ce2",838:"c841004b517cdf3abd86",995:"7a0675fe0519b06656b3"}[e]+".js",r.miniCssF=e=>e+".css",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="really-simple-ssl:",r.l=(s,n,o,i)=>{if(e[s])e[s].push(n);else{var a,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==s||d.getAttribute("data-webpack")==t+o){a=d;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",t+o),a.src=s),e[s]=[n];var f=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var r=e[s];if(delete e[s],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),l&&document.head.appendChild(a)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var s=t.getElementsByTagName("script");if(s.length)for(var n=s.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=s[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{if("undefined"!=typeof document){var e={57:0};r.f.miniCss=(t,s)=>{e[t]?s.push(e[t]):0!==e[t]&&{485:1,635:1}[t]&&s.push(e[t]=(e=>new Promise(((t,s)=>{var n=r.miniCssF(e),o=r.p+n;if(((e,t)=>{for(var s=document.getElementsByTagName("link"),n=0;n<s.length;n++){var r=(i=s[n]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(r===e||r===t))return i}var o=document.getElementsByTagName("style");for(n=0;n<o.length;n++){var i;if((r=(i=o[n]).getAttribute("data-href"))===e||r===t)return i}})(n,o))return t();((e,t,s,n,o)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",r.nc&&(i.nonce=r.nc),i.onerror=i.onload=s=>{if(i.onerror=i.onload=null,"load"===s.type)n();else{var r=s&&s.type,a=s&&s.target&&s.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+a+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=a,i.parentNode&&i.parentNode.removeChild(i),o(l)}},i.href=t,document.head.appendChild(i)})(e,o,0,t,s)})))(t).then((()=>{e[t]=0}),(s=>{throw delete e[t],s})))}}})(),(()=>{var e={57:0};r.f.j=(t,s)=>{var n=r.o(e,t)?e[t]:void 0;if(0!==n)if(n)s.push(n[2]);else{var o=new Promise(((s,r)=>n=e[t]=[s,r]));s.push(n[2]=o);var i=r.p+r.u(t),a=new Error;r.l(i,(s=>{if(r.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=s&&("load"===s.type?"missing":s.type),i=s&&s.target&&s.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}}),"chunk-"+t,t)}};var t=(t,s)=>{var n,o,i=s[0],a=s[1],l=s[2],c=0;if(i.some((t=>0!==e[t]))){for(n in a)r.o(a,n)&&(r.m[n]=a[n]);l&&l(r)}for(t&&t(s);c<i.length;c++)o=i[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0},s=self.webpackChunkreally_simple_ssl=self.webpackChunkreally_simple_ssl||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})(),r.nc=void 0,(()=>{"use strict";var e=r(6087),t=r(7723),s=r(340),n=r(7135),o=r(8743),i=r(790);const a=()=>{const{menu:r,selectedMainMenuItem:a,fetchMenuData:l}=(0,n.A)();let c=rsssl_settings.plugin_url;(0,e.useEffect)((()=>{l()}),[]);let u=r.filter((e=>null!==e));return(0,i.jsxs)("div",{className:"rsssl-header-container",children:[(0,i.jsxs)("div",{className:"rsssl-header",children:[(0,i.jsx)("img",{className:"rsssl-logo",src:c+"assets/img/really-simple-security-logo.svg",alt:"Really Simple Security logo"}),(0,i.jsx)("div",{className:"rsssl-header-left",children:(0,i.jsx)("nav",{className:"rsssl-header-menu",children:(0,i.jsx)("ul",{children:u.map(((e,t)=>(0,i.jsx)("li",{children:(0,i.jsx)("a",{className:a===e.id?"active":"",href:"#"+e.id.toString(),children:e.title})},"menu-"+t)))})})}),(0,i.jsxs)("div",{className:"rsssl-header-right",children:[!rsssl_settings.le_generated_by_rsssl&&(0,i.jsx)("a",{className:"rsssl-knowledge-base-link",href:(0,o.g)("https://really-simple-ssl.com/knowledge-base"),target:"_blank",rel:"noopener noreferrer",children:(0,t.__)("Documentation","really-simple-ssl")}),rsssl_settings.le_generated_by_rsssl&&(0,i.jsx)("a",{href:rsssl_settings.letsencrypt_url,children:(0,t.__)("Let's Encrypt","really-simple-ssl")}),rsssl_settings.pro_plugin_active&&(0,i.jsx)(i.Fragment,{children:(()=>{const e=rsssl_settings.dashboard_url+"#settings&highlightfield=premium_support";return(0,i.jsx)("a",{href:e,className:"button button-black",target:"_self",rel:"noopener noreferrer",children:(0,t.__)("Support","really-simple-ssl")})})()}),!rsssl_settings.pro_plugin_active&&(0,i.jsx)("a",{href:rsssl_settings.upgrade_link,className:"button button-black",target:"_blank",rel:"noopener noreferrer",children:(0,t.__)("Go Pro","really-simple-ssl")})]})]}),(0,i.jsx)(s.default,{className:"rsssl-wizard-notices"})]})};var l=r(6064);const c=e=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"rsssl-header-container",children:(0,i.jsx)("div",{className:"rsssl-header",children:(0,i.jsx)("img",{className:"rsssl-logo",src:rsssl_settings.plugin_url+"assets/img/really-simple-security-logo.svg",alt:"Really Simple Security logo"})})}),(0,i.jsxs)("div",{className:"rsssl-content-area rsssl-grid rsssl-dashboard rsssl-page-placeholder",children:[(0,i.jsx)("div",{className:"rsssl-grid-item rsssl-column-2 rsssl-row-2 ",children:e.error&&(0,i.jsx)(l.A,{error:e.error})}),(0,i.jsx)("div",{className:"rsssl-grid-item rsssl-row-2"}),(0,i.jsx)("div",{className:"rsssl-grid-item rsssl-row-2"}),(0,i.jsx)("div",{className:"rsssl-grid-item rsssl-column-2"})]})]});var u=r(1307),d=r(1254),f=r(2039),p=r(5131),m=r(9518);const h=()=>{const{error:s,fields:o,changedFields:l,fetchFieldsData:h,updateFieldsData:g,fieldsLoaded:v}=(0,d.A)(),{showOnboardingModal:y,fetchOnboardingModalStatus:b,modalStatusLoaded:_}=(0,f.A)(),{selectedMainMenuItem:w,fetchMenuData:S}=(0,n.A)(),{showModal:E}=(0,p.A)(),[x,T]=(0,e.useState)(null),[O,I]=(0,e.useState)(null),[j,A]=(0,e.useState)(null),[P,k]=(0,e.useState)(null),[C,M]=(0,e.useState)(null);(0,e.useEffect)((()=>{_||b()}),[]),(0,e.useEffect)((()=>{rsssl_settings.json_translations.forEach((e=>{let s=JSON.parse(e),n=s.locale_data["really-simple-ssl"]||s.locale_data.messages;n[""].domain="really-simple-ssl",(0,t.setLocaleData)(n,"really-simple-ssl")}))}),[]),(0,e.useEffect)((()=>{"dashboard"!==w&&(x||Promise.all([r.e(8),r.e(838),r.e(995)]).then(r.bind(r,5995)).then((({default:e})=>{T((()=>e))})),j||Promise.resolve().then(r.bind(r,340)).then((({default:e})=>{A((()=>e))})),P||r.e(470).then(r.bind(r,5470)).then((({default:e})=>{k((()=>e))}))),"dashboard"!==w||O||Promise.all([r.e(8),r.e(838),r.e(366)]).then(r.bind(r,8366)).then((async({default:e})=>{I((()=>e))}))}),[w]);const[N,L]=(0,e.useState)(null);(0,e.useEffect)((()=>{y&&!N&&Promise.all([r.e(8),r.e(838),r.e(573),r.e(635)]).then(r.bind(r,8635)).then((({default:e})=>{L((()=>e))}))}),[y]);const[F,D]=(0,e.useState)(null);return(0,e.useEffect)((()=>{E&&!F&&Promise.all([r.e(8),r.e(91)]).then(r.bind(r,9091)).then((({default:e})=>{D((()=>e))}))}),[E]),(0,e.useEffect)((()=>{Promise.resolve().then(r.bind(r,9571)).then((e=>{const t=e.ToastContainer;M((()=>t))}))}),[]),(0,e.useEffect)((()=>{v&&(S(o),window.addEventListener("hashchange",(e=>{S(o)})))}),[o]),(0,e.useEffect)((()=>{let e=(0,u.A)("menu");g(e)}),[l]),(0,e.useEffect)((()=>{let e=(0,u.A)("menu");h(e)}),[]),s?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(c,{error:s})}):(0,i.jsxs)("div",{className:"rsssl-wrapper",children:[N&&(0,i.jsx)(m.A,{fallback:"Could not load onboarding modal",children:(0,i.jsx)(N,{})}),F&&(0,i.jsx)(m.A,{fallback:"Could not load modal",children:(0,i.jsx)(F,{})}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a,{}),(0,i.jsxs)("div",{className:"rsssl-content-area rsssl-grid rsssl-"+w,children:["dashboard"!==w&&x&&P&&j&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.A,{fallback:"Could not load menu",children:(0,i.jsx)(P,{})}),(0,i.jsx)(m.A,{fallback:"Could not load settings",children:(0,i.jsx)(x,{})}),(0,i.jsx)(m.A,{fallback:"Could not load notices",children:(0,i.jsx)(j,{className:"rsssl-wizard-notices"})})]}),"dashboard"===w&&O&&(0,i.jsx)(m.A,{fallback:"Could not load menu",children:(0,i.jsx)(O,{})})]})]}),C&&(0,i.jsx)(C,{position:"bottom-right",autoClose:2e3,limit:3,hideProgressBar:!0,newestOnTop:!0,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,theme:"light"})]})};document.addEventListener("DOMContentLoaded",(()=>{const t=document.getElementById("really-simple-ssl");t&&(e.createRoot?(0,e.createRoot)(t).render((0,i.jsx)(h,{})):(0,e.render)((0,i.jsx)(h,{}),t))})),document.addEventListener("click",(e=>{e.target.closest("#ssl-labs-check-button")&&(document.querySelector(".rsssl-ssllabs").classList.add("rsssl-block-highlight"),setTimeout((function(){document.querySelector(".rsssl-ssllabs").classList.remove("rsssl-block-highlight")}),6e3))}))})()})(); build/139.12de12bd599af6bb648c.js 0000777 00000407247 15252021227 0011520 0 ustar 00 (self.webpackChunkreally_simple_ssl=self.webpackChunkreally_simple_ssl||[]).push([[139],{3757:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1609),r=n(5713);function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a,s=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}(o),l=i(o),c=i(r);function u(e,t){return e[t]}function d(e=[],t,n=0){return[...e.slice(0,n),t,...e.slice(n)]}function p(e=[],t,n="id"){const o=e.slice(),r=u(t,n);return r?o.splice(o.findIndex((e=>u(e,n)===r)),1):o.splice(o.findIndex((e=>e===t)),1),o}function f(e){return e.map(((e,t)=>{const n=Object.assign(Object.assign({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(n.id=t+1),n}))}function g(e,t){return Math.ceil(e/t)}function h(e,t){return Math.min(e,t)}!function(e){e.ASC="asc",e.DESC="desc"}(a||(a={}));const m=()=>null;function b(e,t=[],n=[]){let o={},r=[...n];return t.length&&t.forEach((t=>{if(!t.when||"function"!=typeof t.when)throw new Error('"when" must be defined in the conditional style object and must be function');t.when(e)&&(o=t.style||{},t.classNames&&(r=[...r,...t.classNames]),"function"==typeof t.style&&(o=t.style(e)||{}))})),{conditionalStyle:o,classNames:r.join(" ")}}function v(e,t=[],n="id"){const o=u(e,n);return o?t.some((e=>u(e,n)===o)):t.some((t=>t===e))}function w(e,t){return t?e.findIndex((e=>y(e.id,t))):-1}function y(e,t){return e==t}function C(e,t){const n=!e.toggleOnSelectedRowsChange;switch(t.type){case"SELECT_ALL_ROWS":{const{keyField:n,rows:o,rowCount:r,mergeSelections:i}=t,a=!e.allSelected,s=!e.toggleOnSelectedRowsChange;if(i){const t=a?[...e.selectedRows,...o.filter((t=>!v(t,e.selectedRows,n)))]:e.selectedRows.filter((e=>!v(e,o,n)));return Object.assign(Object.assign({},e),{allSelected:a,selectedCount:t.length,selectedRows:t,toggleOnSelectedRowsChange:s})}return Object.assign(Object.assign({},e),{allSelected:a,selectedCount:a?r:0,selectedRows:a?o:[],toggleOnSelectedRowsChange:s})}case"SELECT_SINGLE_ROW":{const{keyField:o,row:r,isSelected:i,rowCount:a,singleSelect:s}=t;return s?i?Object.assign(Object.assign({},e),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:1,allSelected:!1,selectedRows:[r],toggleOnSelectedRowsChange:n}):i?Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,selectedRows:p(e.selectedRows,r,o),toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===a,selectedRows:d(e.selectedRows,r),toggleOnSelectedRowsChange:n})}case"SELECT_MULTIPLE_ROWS":{const{keyField:o,selectedRows:r,totalRows:i,mergeSelections:a}=t;if(a){const t=[...e.selectedRows,...r.filter((t=>!v(t,e.selectedRows,o)))];return Object.assign(Object.assign({},e),{selectedCount:t.length,allSelected:!1,selectedRows:t,toggleOnSelectedRowsChange:n})}return Object.assign(Object.assign({},e),{selectedCount:r.length,allSelected:r.length===i,selectedRows:r,toggleOnSelectedRowsChange:n})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:n}=t;return Object.assign(Object.assign({},e),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:n})}case"SORT_CHANGE":{const{sortDirection:o,selectedColumn:r,clearSelectedOnSort:i}=t;return Object.assign(Object.assign(Object.assign({},e),{selectedColumn:r,sortDirection:o,currentPage:1}),i&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_PAGE":{const{page:o,paginationServer:r,visibleOnly:i,persistSelectedOnPageChange:a}=t,s=r&&a,l=r&&!a||i;return Object.assign(Object.assign(Object.assign(Object.assign({},e),{currentPage:o}),s&&{allSelected:!1}),l&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:n,page:o}=t;return Object.assign(Object.assign({},e),{currentPage:o,rowsPerPage:n})}}}const x=r.css` pointer-events: none; opacity: 0.4; `,S=c.default.div` position: relative; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; height: 100%; max-width: 100%; ${({disabled:e})=>e&&x}; ${({theme:e})=>e.table.style}; `,O=r.css` position: sticky; position: -webkit-sticky; /* Safari */ top: 0; z-index: 1; `,R=c.default.div` display: flex; width: 100%; ${({$fixedHeader:e})=>e&&O}; ${({theme:e})=>e.head.style}; `,E=c.default.div` display: flex; align-items: stretch; width: 100%; ${({theme:e})=>e.headRow.style}; ${({$dense:e,theme:t})=>e&&t.headRow.denseStyle}; `,k=(e,...t)=>r.css` @media screen and (max-width: ${599}px) { ${r.css(e,...t)} } `,P=(e,...t)=>r.css` @media screen and (max-width: ${959}px) { ${r.css(e,...t)} } `,A=(e,...t)=>r.css` @media screen and (max-width: ${1280}px) { ${r.css(e,...t)} } `,I=c.default.div` position: relative; display: flex; align-items: center; box-sizing: border-box; line-height: normal; ${({theme:e,$headCell:t})=>e[t?"headCells":"cells"].style}; ${({$noPadding:e})=>e&&"padding: 0"}; `,D=c.default(I)` flex-grow: ${({button:e,grow:t})=>0===t||e?0:t||1}; flex-shrink: 0; flex-basis: 0; max-width: ${({maxWidth:e})=>e||"100%"}; min-width: ${({minWidth:e})=>e||"100px"}; ${({width:e})=>e&&r.css` min-width: ${e}; max-width: ${e}; `}; ${({right:e})=>e&&"justify-content: flex-end"}; ${({button:e,center:t})=>(t||e)&&"justify-content: center"}; ${({compact:e,button:t})=>(e||t)&&"padding: 0"}; /* handle hiding cells */ ${({hide:e})=>e&&"sm"===e&&k` display: none; `}; ${({hide:e})=>e&&"md"===e&&P` display: none; `}; ${({hide:e})=>e&&"lg"===e&&A` display: none; `}; ${({hide:e})=>e&&Number.isInteger(e)&&(e=>(t,...n)=>r.css` @media screen and (max-width: ${e}px) { ${r.css(t,...n)} } `)(e)` display: none; `}; `,M=r.css` div:first-child { white-space: ${({$wrapCell:e})=>e?"normal":"nowrap"}; overflow: ${({$allowOverflow:e})=>e?"visible":"hidden"}; text-overflow: ellipsis; } `,F=c.default(D).attrs((e=>({style:e.style})))` ${({$renderAsCell:e})=>!e&&M}; ${({theme:e,$isDragging:t})=>t&&e.cells.draggingStyle}; ${({$cellStyle:e})=>e}; `;var T=s.memo((function({id:e,column:t,row:n,rowIndex:o,dataTag:r,isDragging:i,onDragStart:a,onDragOver:l,onDragEnd:c,onDragEnter:u,onDragLeave:d}){const{conditionalStyle:p,classNames:f}=b(n,t.conditionalCellStyles,["rdt_TableCell"]);return s.createElement(F,{id:e,"data-column-id":t.id,role:"cell",className:f,"data-tag":r,$cellStyle:t.style,$renderAsCell:!!t.cell,$allowOverflow:t.allowOverflow,button:t.button,center:t.center,compact:t.compact,grow:t.grow,hide:t.hide,maxWidth:t.maxWidth,minWidth:t.minWidth,right:t.right,width:t.width,$wrapCell:t.wrap,style:p,$isDragging:i,onDragStart:a,onDragOver:l,onDragEnd:c,onDragEnter:u,onDragLeave:d},!t.cell&&s.createElement("div",{"data-tag":r},function(e,t,n,o){return t?n&&"function"==typeof n?n(e,o):t(e,o):null}(n,t.selector,t.format,o)),t.cell&&t.cell(n,o,t,e))}));const L="input";var V=s.memo((function({name:e,component:t=L,componentOptions:n={style:{}},indeterminate:o=!1,checked:r=!1,disabled:i=!1,onClick:a=m}){const l=t,c=l!==L?n.style:(e=>Object.assign(Object.assign({fontSize:"18px"},!e&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"}))(i),u=s.useMemo((()=>function(e,...t){let n;return Object.keys(e).map((t=>e[t])).forEach(((o,r)=>{const i=e;"function"==typeof o&&(n=Object.assign(Object.assign({},i),{[Object.keys(e)[r]]:o(...t)}))})),n||e}(n,o)),[n,o]);return s.createElement(l,Object.assign({type:"checkbox",ref:e=>{e&&(e.indeterminate=o)},style:c,onClick:i?m:a,name:e,"aria-label":e,checked:r,disabled:i},u,{onChange:m}))}));const H=c.default(I)` flex: 0 0 48px; min-width: 48px; justify-content: center; align-items: center; user-select: none; white-space: nowrap; `;function $({name:e,keyField:t,row:n,rowCount:o,selected:r,selectableRowsComponent:i,selectableRowsComponentProps:a,selectableRowsSingle:l,selectableRowDisabled:c,onSelectedRow:u}){const d=!(!c||!c(n));return s.createElement(H,{onClick:e=>e.stopPropagation(),className:"rdt_TableCell",$noPadding:!0},s.createElement(V,{name:e,component:i,componentOptions:a,checked:r,"aria-checked":r,onClick:()=>{u({type:"SELECT_SINGLE_ROW",row:n,isSelected:r,keyField:t,rowCount:o,singleSelect:l})},disabled:d}))}const j=c.default.button` display: inline-flex; align-items: center; user-select: none; white-space: nowrap; border: none; background-color: transparent; ${({theme:e})=>e.expanderButton.style}; `;function _({disabled:e=!1,expanded:t=!1,expandableIcon:n,id:o,row:r,onToggled:i}){const a=t?n.expanded:n.collapsed;return s.createElement(j,{"aria-disabled":e,onClick:()=>i&&i(r),"data-testid":`expander-button-${o}`,disabled:e,"aria-label":t?"Collapse Row":"Expand Row",role:"button",type:"button"},a)}const N=c.default(I)` white-space: nowrap; font-weight: 400; min-width: 48px; ${({theme:e})=>e.expanderCell.style}; `;function z({row:e,expanded:t=!1,expandableIcon:n,id:o,onToggled:r,disabled:i=!1}){return s.createElement(N,{onClick:e=>e.stopPropagation(),$noPadding:!0},s.createElement(_,{id:o,row:e,expanded:t,expandableIcon:n,disabled:i,onToggled:r}))}const B=c.default.div` width: 100%; box-sizing: border-box; ${({theme:e})=>e.expanderRow.style}; ${({$extendedRowStyle:e})=>e}; `;var Y=s.memo((function({data:e,ExpanderComponent:t,expanderComponentProps:n,extendedRowStyle:o,extendedClassNames:r}){const i=["rdt_ExpanderRow",...r.split(" ").filter((e=>"rdt_TableRow"!==e))].join(" ");return s.createElement(B,{className:i,$extendedRowStyle:o},s.createElement(t,Object.assign({data:e},n)))}));const W="allowRowEvents";var U,G,q;t.Direction=void 0,(U=t.Direction||(t.Direction={})).LTR="ltr",U.RTL="rtl",U.AUTO="auto",t.Alignment=void 0,(G=t.Alignment||(t.Alignment={})).LEFT="left",G.RIGHT="right",G.CENTER="center",t.Media=void 0,(q=t.Media||(t.Media={})).SM="sm",q.MD="md",q.LG="lg";const X=r.css` &:hover { ${({$highlightOnHover:e,theme:t})=>e&&t.rows.highlightOnHoverStyle}; } `,K=r.css` &:hover { cursor: pointer; } `,Z=c.default.div.attrs((e=>({style:e.style})))` display: flex; align-items: stretch; align-content: stretch; width: 100%; box-sizing: border-box; ${({theme:e})=>e.rows.style}; ${({$dense:e,theme:t})=>e&&t.rows.denseStyle}; ${({$striped:e,theme:t})=>e&&t.rows.stripedStyle}; ${({$highlightOnHover:e})=>e&&X}; ${({$pointerOnHover:e})=>e&&K}; ${({$selected:e,theme:t})=>e&&t.rows.selectedHighlightStyle}; ${({$conditionalStyle:e})=>e}; `;function J({columns:e=[],conditionalRowStyles:t=[],defaultExpanded:n=!1,defaultExpanderDisabled:o=!1,dense:r=!1,expandableIcon:i,expandableRows:a=!1,expandableRowsComponent:l,expandableRowsComponentProps:c,expandableRowsHideExpander:d,expandOnRowClicked:p=!1,expandOnRowDoubleClicked:f=!1,highlightOnHover:g=!1,id:h,expandableInheritConditionalStyles:v,keyField:w,onRowClicked:C=m,onRowDoubleClicked:x=m,onRowMouseEnter:S=m,onRowMouseLeave:O=m,onRowExpandToggled:R=m,onSelectedRow:E=m,pointerOnHover:k=!1,row:P,rowCount:A,rowIndex:I,selectableRowDisabled:D=null,selectableRows:M=!1,selectableRowsComponent:F,selectableRowsComponentProps:L,selectableRowsHighlight:V=!1,selectableRowsSingle:H=!1,selected:j,striped:_=!1,draggingColumnId:N,onDragStart:B,onDragOver:U,onDragEnd:G,onDragEnter:q,onDragLeave:X}){const[K,J]=s.useState(n);s.useEffect((()=>{J(n)}),[n]);const Q=s.useCallback((()=>{J(!K),R(!K,P)}),[K,R,P]),ee=k||a&&(p||f),te=s.useCallback((e=>{e.target.getAttribute("data-tag")===W&&(C(P,e),!o&&a&&p&&Q())}),[o,p,a,Q,C,P]),ne=s.useCallback((e=>{e.target.getAttribute("data-tag")===W&&(x(P,e),!o&&a&&f&&Q())}),[o,f,a,Q,x,P]),oe=s.useCallback((e=>{S(P,e)}),[S,P]),re=s.useCallback((e=>{O(P,e)}),[O,P]),ie=u(P,w),{conditionalStyle:ae,classNames:se}=b(P,t,["rdt_TableRow"]),le=V&&j,ce=v?ae:{},ue=_&&I%2==0;return s.createElement(s.Fragment,null,s.createElement(Z,{id:`row-${h}`,role:"row",$striped:ue,$highlightOnHover:g,$pointerOnHover:!o&&ee,$dense:r,onClick:te,onDoubleClick:ne,onMouseEnter:oe,onMouseLeave:re,className:se,$selected:le,$conditionalStyle:ae},M&&s.createElement($,{name:`select-row-${ie}`,keyField:w,row:P,rowCount:A,selected:j,selectableRowsComponent:F,selectableRowsComponentProps:L,selectableRowDisabled:D,selectableRowsSingle:H,onSelectedRow:E}),a&&!d&&s.createElement(z,{id:ie,expandableIcon:i,expanded:K,row:P,onToggled:Q,disabled:o}),e.map((e=>e.omit?null:s.createElement(T,{id:`cell-${e.id}-${ie}`,key:`cell-${e.id}-${ie}`,dataTag:e.ignoreRowClick||e.button?null:W,column:e,row:P,rowIndex:I,isDragging:y(N,e.id),onDragStart:B,onDragOver:U,onDragEnd:G,onDragEnter:q,onDragLeave:X})))),a&&K&&s.createElement(Y,{key:`expander-${ie}`,data:P,extendedRowStyle:ce,extendedClassNames:se,ExpanderComponent:l,expanderComponentProps:c}))}const Q=c.default.span` padding: 2px; color: inherit; flex-grow: 0; flex-shrink: 0; ${({$sortActive:e})=>e?"opacity: 1":"opacity: 0"}; ${({$sortDirection:e})=>"desc"===e&&"transform: rotate(180deg)"}; `,ee=({sortActive:e,sortDirection:t})=>l.default.createElement(Q,{$sortActive:e,$sortDirection:t},"▲"),te=c.default(D)` ${({button:e})=>e&&"text-align: center"}; ${({theme:e,$isDragging:t})=>t&&e.headCells.draggingStyle}; `,ne=r.css` cursor: pointer; span.__rdt_custom_sort_icon__ { i, svg { transform: 'translate3d(0, 0, 0)'; ${({$sortActive:e})=>e?"opacity: 1":"opacity: 0"}; color: inherit; font-size: 18px; height: 18px; width: 18px; backface-visibility: hidden; transform-style: preserve-3d; transition-duration: 95ms; transition-property: transform; } &.asc i, &.asc svg { transform: rotate(180deg); } } ${({$sortActive:e})=>!e&&r.css` &:hover, &:focus { opacity: 0.7; span, span.__rdt_custom_sort_icon__ * { opacity: 0.7; } } `}; `,oe=c.default.div` display: inline-flex; align-items: center; justify-content: inherit; height: 100%; width: 100%; outline: none; user-select: none; overflow: hidden; ${({disabled:e})=>!e&&ne}; `,re=c.default.div` overflow: hidden; white-space: nowrap; text-overflow: ellipsis; `;var ie=s.memo((function({column:e,disabled:t,draggingColumnId:n,selectedColumn:o={},sortDirection:r,sortIcon:i,sortServer:l,pagination:c,paginationServer:u,persistSelectedOnSort:d,selectableRowsVisibleOnly:p,onSort:f,onDragStart:g,onDragOver:h,onDragEnd:m,onDragEnter:b,onDragLeave:v}){s.useEffect((()=>{"string"==typeof e.selector&&console.error(`Warning: ${e.selector} is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...`)}),[]);const[w,C]=s.useState(!1),x=s.useRef(null);if(s.useEffect((()=>{x.current&&C(x.current.scrollWidth>x.current.clientWidth)}),[w]),e.omit)return null;const S=()=>{if(!e.sortable&&!e.selector)return;let t=r;y(o.id,e.id)&&(t=r===a.ASC?a.DESC:a.ASC),f({type:"SORT_CHANGE",sortDirection:t,selectedColumn:e,clearSelectedOnSort:c&&u&&!d||l||p})},O=e=>s.createElement(ee,{sortActive:e,sortDirection:r}),R=()=>s.createElement("span",{className:[r,"__rdt_custom_sort_icon__"].join(" ")},i),E=!(!e.sortable||!y(o.id,e.id)),k=!e.sortable||t,P=e.sortable&&!i&&!e.right,A=e.sortable&&!i&&e.right,I=e.sortable&&i&&!e.right,D=e.sortable&&i&&e.right;return s.createElement(te,{"data-column-id":e.id,className:"rdt_TableCol",$headCell:!0,allowOverflow:e.allowOverflow,button:e.button,compact:e.compact,grow:e.grow,hide:e.hide,maxWidth:e.maxWidth,minWidth:e.minWidth,right:e.right,center:e.center,width:e.width,draggable:e.reorder,$isDragging:y(e.id,n),onDragStart:g,onDragOver:h,onDragEnd:m,onDragEnter:b,onDragLeave:v},e.name&&s.createElement(oe,{"data-column-id":e.id,"data-sort-id":e.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:k?void 0:S,onKeyPress:k?void 0:e=>{"Enter"===e.key&&S()},$sortActive:!k&&E,disabled:k},!k&&D&&R(),!k&&A&&O(E),"string"==typeof e.name?s.createElement(re,{title:w?e.name:void 0,ref:x,"data-column-id":e.id},e.name):e.name,!k&&I&&R(),!k&&P&&O(E)))}));const ae=c.default(I)` flex: 0 0 48px; justify-content: center; align-items: center; user-select: none; white-space: nowrap; font-size: unset; `;function se({headCell:e=!0,rowData:t,keyField:n,allSelected:o,mergeSelections:r,selectedRows:i,selectableRowsComponent:a,selectableRowsComponentProps:l,selectableRowDisabled:c,onSelectAllRows:u}){const d=i.length>0&&!o,p=c?t.filter((e=>!c(e))):t,f=0===p.length,g=Math.min(t.length,p.length);return s.createElement(ae,{className:"rdt_TableCol",$headCell:e,$noPadding:!0},s.createElement(V,{name:"select-all-rows",component:a,componentOptions:l,onClick:()=>{u({type:"SELECT_ALL_ROWS",rows:p,rowCount:g,mergeSelections:r,keyField:n})},checked:o,indeterminate:d,disabled:f}))}function le(e=t.Direction.AUTO){const n="object"==typeof window,[o,r]=s.useState(!1);return s.useEffect((()=>{if(n)if("auto"!==e)r("rtl"===e);else{const e=!(!window.document||!window.document.createElement),t=document.getElementsByTagName("BODY")[0],n=document.getElementsByTagName("HTML")[0],o="rtl"===t.dir||"rtl"===n.dir;r(e&&o)}}),[e,n]),o}const ce=c.default.div` display: flex; align-items: center; flex: 1 0 auto; height: 100%; color: ${({theme:e})=>e.contextMenu.fontColor}; font-size: ${({theme:e})=>e.contextMenu.fontSize}; font-weight: 400; `,ue=c.default.div` display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; `,de=c.default.div` position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-sizing: inherit; z-index: 1; align-items: center; justify-content: space-between; display: flex; ${({$rtl:e})=>e&&"direction: rtl"}; ${({theme:e})=>e.contextMenu.style}; ${({theme:e,$visible:t})=>t&&e.contextMenu.activeStyle}; `;function pe({contextMessage:e,contextActions:t,contextComponent:n,selectedCount:o,direction:r}){const i=le(r),a=o>0;return n?s.createElement(de,{$visible:a},s.cloneElement(n,{selectedCount:o})):s.createElement(de,{$visible:a,$rtl:i},s.createElement(ce,null,((e,t,n)=>{if(0===t)return null;const o=1===t?e.singular:e.plural;return n?`${t} ${e.message||""} ${o}`:`${t} ${o} ${e.message||""}`})(e,o,i)),s.createElement(ue,null,t))}const fe=c.default.div` position: relative; box-sizing: border-box; overflow: hidden; display: flex; flex: 1 1 auto; align-items: center; justify-content: space-between; width: 100%; flex-wrap: wrap; ${({theme:e})=>e.header.style} `,ge=c.default.div` flex: 1 0 auto; color: ${({theme:e})=>e.header.fontColor}; font-size: ${({theme:e})=>e.header.fontSize}; font-weight: 400; `,he=c.default.div` flex: 1 0 auto; display: flex; align-items: center; justify-content: flex-end; > * { margin-left: 5px; } `,me=({title:e,actions:t=null,contextMessage:n,contextActions:o,contextComponent:r,selectedCount:i,direction:a,showMenu:l=!0})=>s.createElement(fe,{className:"rdt_TableHeader",role:"heading","aria-level":1},s.createElement(ge,null,e),t&&s.createElement(he,null,t),l&&s.createElement(pe,{contextMessage:n,contextActions:o,contextComponent:r,direction:a,selectedCount:i}));function be(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}"function"==typeof SuppressedError&&SuppressedError;const ve={left:"flex-start",right:"flex-end",center:"center"},we=c.default.header` position: relative; display: flex; flex: 1 1 auto; box-sizing: border-box; align-items: center; padding: 4px 16px 4px 24px; width: 100%; justify-content: ${({align:e})=>ve[e]}; flex-wrap: ${({$wrapContent:e})=>e?"wrap":"nowrap"}; ${({theme:e})=>e.subHeader.style} `,ye=e=>{var{align:t="right",wrapContent:n=!0}=e,o=be(e,["align","wrapContent"]);return s.createElement(we,Object.assign({align:t,$wrapContent:n},o))},Ce=c.default.div` display: flex; flex-direction: column; `,xe=c.default.div` position: relative; width: 100%; border-radius: inherit; ${({$responsive:e,$fixedHeader:t})=>e&&r.css` overflow-x: auto; // hidden prevents vertical scrolling in firefox when fixedHeader is disabled overflow-y: ${t?"auto":"hidden"}; min-height: 0; `}; ${({$fixedHeader:e=!1,$fixedHeaderScrollHeight:t="100vh"})=>e&&r.css` max-height: ${t}; -webkit-overflow-scrolling: touch; `}; ${({theme:e})=>e.responsiveWrapper.style}; `,Se=c.default.div` position: relative; box-sizing: border-box; width: 100%; height: 100%; ${e=>e.theme.progress.style}; `,Oe=c.default.div` position: relative; width: 100%; ${({theme:e})=>e.tableWrapper.style}; `,Re=c.default(I)` white-space: nowrap; ${({theme:e})=>e.expanderCell.style}; `,Ee=c.default.div` box-sizing: border-box; width: 100%; height: 100%; ${({theme:e})=>e.noData.style}; `,ke=()=>l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},l.default.createElement("path",{d:"M7 10l5 5 5-5z"}),l.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),Pe=c.default.select` cursor: pointer; height: 24px; max-width: 100%; user-select: none; padding-left: 8px; padding-right: 24px; box-sizing: content-box; font-size: inherit; color: inherit; border: none; background-color: transparent; appearance: none; direction: ltr; flex-shrink: 0; &::-ms-expand { display: none; } &:disabled::-ms-expand { background: #f60; } option { color: initial; } `,Ae=c.default.div` position: relative; flex-shrink: 0; font-size: inherit; color: inherit; margin-top: 1px; svg { top: 0; right: 0; color: inherit; position: absolute; fill: currentColor; width: 24px; height: 24px; display: inline-block; user-select: none; pointer-events: none; } `,Ie=e=>{var{defaultValue:t,onChange:n}=e,o=be(e,["defaultValue","onChange"]);return s.createElement(Ae,null,s.createElement(Pe,Object.assign({onChange:n,defaultValue:t},o)),s.createElement(ke,null))},De={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return l.default.createElement("div",null,"To add an expander pass in a component instance via ",l.default.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:l.default.createElement((()=>l.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},l.default.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),l.default.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"}))),null),expanded:l.default.createElement((()=>l.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},l.default.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),l.default.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"}))),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:l.default.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:l.default.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:t.Alignment.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:l.default.createElement((()=>l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},l.default.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),l.default.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"}))),null),paginationIconLastPage:l.default.createElement((()=>l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},l.default.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),l.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))),null),paginationIconNext:l.default.createElement((()=>l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},l.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),l.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),paginationIconPrevious:l.default.createElement((()=>l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},l.default.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),l.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:t.Direction.AUTO,onChangePage:m,onChangeRowsPerPage:m,onRowClicked:m,onRowDoubleClicked:m,onRowMouseEnter:m,onRowMouseLeave:m,onRowExpandToggled:m,onSelectedRowsChange:m,onSort:m,onColumnOrderChange:m},Me={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},Fe=c.default.nav` display: flex; flex: 1 1 auto; justify-content: flex-end; align-items: center; box-sizing: border-box; padding-right: 8px; padding-left: 8px; width: 100%; ${({theme:e})=>e.pagination.style}; `,Te=c.default.button` position: relative; display: block; user-select: none; border: none; ${({theme:e})=>e.pagination.pageButtonsStyle}; ${({$isRTL:e})=>e&&"transform: scale(-1, -1)"}; `,Le=c.default.div` display: flex; align-items: center; border-radius: 4px; white-space: nowrap; ${k` width: 100%; justify-content: space-around; `}; `,Ve=c.default.span` flex-shrink: 1; user-select: none; `,He=c.default(Ve)` margin: 0 24px; `,$e=c.default(Ve)` margin: 0 4px; `;var je=s.memo((function({rowsPerPage:e,rowCount:t,currentPage:n,direction:o=De.direction,paginationRowsPerPageOptions:r=De.paginationRowsPerPageOptions,paginationIconLastPage:i=De.paginationIconLastPage,paginationIconFirstPage:a=De.paginationIconFirstPage,paginationIconNext:l=De.paginationIconNext,paginationIconPrevious:c=De.paginationIconPrevious,paginationComponentOptions:u=De.paginationComponentOptions,onChangeRowsPerPage:d=De.onChangeRowsPerPage,onChangePage:p=De.onChangePage}){const f=(()=>{const e="object"==typeof window;function t(){return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}}const[n,o]=s.useState(t);return s.useEffect((()=>{if(!e)return()=>null;function n(){o(t())}return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[]),n})(),h=le(o),m=f.width&&f.width>599,b=g(t,e),v=n*e,w=v-e+1,y=1===n,C=n===b,x=Object.assign(Object.assign({},Me),u),S=n===b?`${w}-${t} ${x.rangeSeparatorText} ${t}`:`${w}-${v} ${x.rangeSeparatorText} ${t}`,O=s.useCallback((()=>p(n-1)),[n,p]),R=s.useCallback((()=>p(n+1)),[n,p]),E=s.useCallback((()=>p(1)),[p]),k=s.useCallback((()=>p(g(t,e))),[p,t,e]),P=s.useCallback((e=>d(Number(e.target.value),n)),[n,d]),A=r.map((e=>s.createElement("option",{key:e,value:e},e)));x.selectAllRowsItem&&A.push(s.createElement("option",{key:-1,value:t},x.selectAllRowsItemText));const I=s.createElement(Ie,{onChange:P,defaultValue:e,"aria-label":x.rowsPerPageText},A);return s.createElement(Fe,{className:"rdt_Pagination"},!x.noRowsPerPage&&m&&s.createElement(s.Fragment,null,s.createElement($e,null,x.rowsPerPageText),I),m&&s.createElement(He,null,S),s.createElement(Le,null,s.createElement(Te,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":y,onClick:E,disabled:y,$isRTL:h},a),s.createElement(Te,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":y,onClick:O,disabled:y,$isRTL:h},c),!x.noRowsPerPage&&!m&&I,s.createElement(Te,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":C,onClick:R,disabled:C,$isRTL:h},l),s.createElement(Te,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":C,onClick:k,disabled:C,$isRTL:h},i)))}));const _e=(e,t)=>{const n=s.useRef(!0);s.useEffect((()=>{n.current?n.current=!1:e()}),t)};var Ne=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===ze}(e)}(e)},ze="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Be(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ge((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Ye(e,t,n){return e.concat(t).map((function(e){return Be(e,n)}))}function We(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function Ue(e,t){try{return t in e}catch(e){return!1}}function Ge(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ye,n.isMergeableObject=n.isMergeableObject||Ne,n.cloneUnlessOtherwiseSpecified=Be;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(e,t,n){var o={};return n.isMergeableObject(e)&&We(e).forEach((function(t){o[t]=Be(e[t],n)})),We(t).forEach((function(r){(function(e,t){return Ue(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(Ue(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return Ge;var n=t.customMerge(e);return"function"==typeof n?n:Ge}(r,n)(e[r],t[r],n):o[r]=Be(t[r],n))})),o}(e,t,n):Be(t,n)}Ge.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Ge(e,n,t)}),{})};var qe=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Ge);const Xe={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},Ke={default:Xe,light:Xe,dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};function Ze(e,t,n,o){const[r,i]=s.useState((()=>f(e))),[l,c]=s.useState(""),u=s.useRef("");_e((()=>{i(f(e))}),[e]);const d=s.useCallback((e=>{var t,n,o;const{attributes:i}=e.target,a=null===(t=i.getNamedItem("data-column-id"))||void 0===t?void 0:t.value;a&&(u.current=(null===(o=null===(n=r[w(r,a)])||void 0===n?void 0:n.id)||void 0===o?void 0:o.toString())||"",c(u.current))}),[r]),p=s.useCallback((e=>{var n;const{attributes:o}=e.target,a=null===(n=o.getNamedItem("data-column-id"))||void 0===n?void 0:n.value;if(a&&u.current&&a!==u.current){const e=w(r,u.current),n=w(r,a),o=[...r];o[e]=r[n],o[n]=r[e],i(o),t(o)}}),[t,r]),g=s.useCallback((e=>{e.preventDefault()}),[]),h=s.useCallback((e=>{e.preventDefault()}),[]),m=s.useCallback((e=>{e.preventDefault(),u.current="",c("")}),[]),b=function(e=!1){return e?a.ASC:a.DESC}(o),v=s.useMemo((()=>r[w(r,null==n?void 0:n.toString())]||{}),[n,r]);return{tableColumns:r,draggingColumnId:l,handleDragStart:d,handleDragEnter:p,handleDragOver:g,handleDragLeave:h,handleDragEnd:m,defaultSortDirection:b,defaultSortColumn:v}}var Je=s.memo((function(e){const{data:t=De.data,columns:n=De.columns,title:o=De.title,actions:i=De.actions,keyField:l=De.keyField,striped:c=De.striped,highlightOnHover:d=De.highlightOnHover,pointerOnHover:p=De.pointerOnHover,dense:f=De.dense,selectableRows:m=De.selectableRows,selectableRowsSingle:b=De.selectableRowsSingle,selectableRowsHighlight:w=De.selectableRowsHighlight,selectableRowsNoSelectAll:y=De.selectableRowsNoSelectAll,selectableRowsVisibleOnly:x=De.selectableRowsVisibleOnly,selectableRowSelected:O=De.selectableRowSelected,selectableRowDisabled:k=De.selectableRowDisabled,selectableRowsComponent:P=De.selectableRowsComponent,selectableRowsComponentProps:A=De.selectableRowsComponentProps,onRowExpandToggled:D=De.onRowExpandToggled,onSelectedRowsChange:M=De.onSelectedRowsChange,expandableIcon:F=De.expandableIcon,onChangeRowsPerPage:T=De.onChangeRowsPerPage,onChangePage:L=De.onChangePage,paginationServer:V=De.paginationServer,paginationServerOptions:H=De.paginationServerOptions,paginationTotalRows:$=De.paginationTotalRows,paginationDefaultPage:j=De.paginationDefaultPage,paginationResetDefaultPage:_=De.paginationResetDefaultPage,paginationPerPage:N=De.paginationPerPage,paginationRowsPerPageOptions:z=De.paginationRowsPerPageOptions,paginationIconLastPage:B=De.paginationIconLastPage,paginationIconFirstPage:Y=De.paginationIconFirstPage,paginationIconNext:W=De.paginationIconNext,paginationIconPrevious:U=De.paginationIconPrevious,paginationComponent:G=De.paginationComponent,paginationComponentOptions:q=De.paginationComponentOptions,responsive:X=De.responsive,progressPending:K=De.progressPending,progressComponent:Z=De.progressComponent,persistTableHead:Q=De.persistTableHead,noDataComponent:ee=De.noDataComponent,disabled:te=De.disabled,noTableHead:ne=De.noTableHead,noHeader:oe=De.noHeader,fixedHeader:re=De.fixedHeader,fixedHeaderScrollHeight:ae=De.fixedHeaderScrollHeight,pagination:le=De.pagination,subHeader:ce=De.subHeader,subHeaderAlign:ue=De.subHeaderAlign,subHeaderWrap:de=De.subHeaderWrap,subHeaderComponent:pe=De.subHeaderComponent,noContextMenu:fe=De.noContextMenu,contextMessage:ge=De.contextMessage,contextActions:he=De.contextActions,contextComponent:be=De.contextComponent,expandableRows:ve=De.expandableRows,onRowClicked:we=De.onRowClicked,onRowDoubleClicked:ke=De.onRowDoubleClicked,onRowMouseEnter:Pe=De.onRowMouseEnter,onRowMouseLeave:Ae=De.onRowMouseLeave,sortIcon:Ie=De.sortIcon,onSort:Me=De.onSort,sortFunction:Fe=De.sortFunction,sortServer:Te=De.sortServer,expandableRowsComponent:Le=De.expandableRowsComponent,expandableRowsComponentProps:Ve=De.expandableRowsComponentProps,expandableRowDisabled:He=De.expandableRowDisabled,expandableRowsHideExpander:$e=De.expandableRowsHideExpander,expandOnRowClicked:Ne=De.expandOnRowClicked,expandOnRowDoubleClicked:ze=De.expandOnRowDoubleClicked,expandableRowExpanded:Be=De.expandableRowExpanded,expandableInheritConditionalStyles:Ye=De.expandableInheritConditionalStyles,defaultSortFieldId:We=De.defaultSortFieldId,defaultSortAsc:Ue=De.defaultSortAsc,clearSelectedRows:Ge=De.clearSelectedRows,conditionalRowStyles:Xe=De.conditionalRowStyles,theme:Je=De.theme,customStyles:Qe=De.customStyles,direction:et=De.direction,onColumnOrderChange:tt=De.onColumnOrderChange,className:nt}=e,{tableColumns:ot,draggingColumnId:rt,handleDragStart:it,handleDragEnter:at,handleDragOver:st,handleDragLeave:lt,handleDragEnd:ct,defaultSortDirection:ut,defaultSortColumn:dt}=Ze(n,tt,We,Ue),[{rowsPerPage:pt,currentPage:ft,selectedRows:gt,allSelected:ht,selectedCount:mt,selectedColumn:bt,sortDirection:vt,toggleOnSelectedRowsChange:wt},yt]=s.useReducer(C,{allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:dt,toggleOnSelectedRowsChange:!1,sortDirection:ut,currentPage:j,rowsPerPage:N,selectedRowsFlag:!1,contextMessage:De.contextMessage}),{persistSelectedOnSort:Ct=!1,persistSelectedOnPageChange:xt=!1}=H,St=!(!V||!xt&&!Ct),Ot=le&&!K&&t.length>0,Rt=G||je,Et=s.useMemo((()=>((e={},t="default",n="default")=>{const o=Ke[t]?t:n;return qe({table:{style:{color:(r=Ke[o]).text.primary,backgroundColor:r.background.default}},tableWrapper:{style:{display:"table"}},responsiveWrapper:{style:{}},header:{style:{fontSize:"22px",color:r.text.primary,backgroundColor:r.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:r.background.default,minHeight:"52px"}},head:{style:{color:r.text.primary,fontSize:"12px",fontWeight:500}},headRow:{style:{backgroundColor:r.background.default,minHeight:"52px",borderBottomWidth:"1px",borderBottomColor:r.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"}},contextMenu:{style:{backgroundColor:r.context.background,fontSize:"18px",fontWeight:400,color:r.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",fontWeight:400,color:r.text.primary,backgroundColor:r.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:r.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:r.selected.text,backgroundColor:r.selected.default,borderBottomColor:r.background.default}},highlightOnHoverStyle:{color:r.highlightOnHover.text,backgroundColor:r.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:r.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:r.background.default},stripedStyle:{color:r.striped.text,backgroundColor:r.striped.default}},expanderRow:{style:{color:r.text.primary,backgroundColor:r.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:r.button.default,fill:r.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:r.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:r.button.hover},"&:focus":{outline:"none",backgroundColor:r.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:r.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:r.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:r.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:r.button.default,fill:r.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:r.button.disabled,fill:r.button.disabled},"&:hover:not(:disabled)":{backgroundColor:r.button.hover},"&:focus":{outline:"none",backgroundColor:r.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:r.text.primary,backgroundColor:r.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:r.text.primary,backgroundColor:r.background.default}}},e);var r})(Qe,Je)),[Qe,Je]),kt=s.useMemo((()=>Object.assign({},"auto"!==et&&{dir:et})),[et]),Pt=s.useMemo((()=>{if(Te)return t;if((null==bt?void 0:bt.sortFunction)&&"function"==typeof bt.sortFunction){const e=bt.sortFunction,n=vt===a.ASC?e:(t,n)=>-1*e(t,n);return[...t].sort(n)}return function(e,t,n,o){return t?o&&"function"==typeof o?o(e.slice(0),t,n):e.slice(0).sort(((e,o)=>{const r=t(e),i=t(o);if("asc"===n){if(r<i)return-1;if(r>i)return 1}if("desc"===n){if(r>i)return-1;if(r<i)return 1}return 0})):e}(t,null==bt?void 0:bt.selector,vt,Fe)}),[Te,bt,vt,t,Fe]),At=s.useMemo((()=>{if(le&&!V){const e=ft*pt,t=e-pt;return Pt.slice(t,e)}return Pt}),[ft,le,V,pt,Pt]),It=s.useCallback((e=>{yt(e)}),[]),Dt=s.useCallback((e=>{yt(e)}),[]),Mt=s.useCallback((e=>{yt(e)}),[]),Ft=s.useCallback(((e,t)=>we(e,t)),[we]),Tt=s.useCallback(((e,t)=>ke(e,t)),[ke]),Lt=s.useCallback(((e,t)=>Pe(e,t)),[Pe]),Vt=s.useCallback(((e,t)=>Ae(e,t)),[Ae]),Ht=s.useCallback((e=>yt({type:"CHANGE_PAGE",page:e,paginationServer:V,visibleOnly:x,persistSelectedOnPageChange:xt})),[V,xt,x]),$t=s.useCallback((e=>{const t=g($||At.length,e),n=h(ft,t);V||Ht(n),yt({type:"CHANGE_ROWS_PER_PAGE",page:n,rowsPerPage:e})}),[ft,Ht,V,$,At.length]);if(le&&!V&&Pt.length>0&&0===At.length){const e=g(Pt.length,pt),t=h(ft,e);Ht(t)}_e((()=>{M({allSelected:ht,selectedCount:mt,selectedRows:gt.slice(0)})}),[wt]),_e((()=>{Me(bt,vt,Pt.slice(0))}),[bt,vt]),_e((()=>{L(ft,$||Pt.length)}),[ft]),_e((()=>{T(pt,ft)}),[pt]),_e((()=>{Ht(j)}),[j,_]),_e((()=>{if(le&&V&&$>0){const e=g($,pt),t=h(ft,e);ft!==t&&Ht(t)}}),[$]),s.useEffect((()=>{yt({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:Ge})}),[b,Ge]),s.useEffect((()=>{if(!O)return;const e=Pt.filter((e=>O(e))),t=b?e.slice(0,1):e;yt({type:"SELECT_MULTIPLE_ROWS",keyField:l,selectedRows:t,totalRows:Pt.length,mergeSelections:St})}),[t,O]);const jt=x?At:Pt,_t=xt||b||y;return s.createElement(r.ThemeProvider,{theme:Et},!oe&&(!!o||!!i)&&s.createElement(me,{title:o,actions:i,showMenu:!fe,selectedCount:mt,direction:et,contextActions:he,contextComponent:be,contextMessage:ge}),ce&&s.createElement(ye,{align:ue,wrapContent:de},pe),s.createElement(xe,Object.assign({$responsive:X,$fixedHeader:re,$fixedHeaderScrollHeight:ae,className:nt},kt),s.createElement(Oe,null,K&&!Q&&s.createElement(Se,null,Z),s.createElement(S,{disabled:te,className:"rdt_Table",role:"table"},!ne&&(!!Q||Pt.length>0&&!K)&&s.createElement(R,{className:"rdt_TableHead",role:"rowgroup",$fixedHeader:re},s.createElement(E,{className:"rdt_TableHeadRow",role:"row",$dense:f},m&&(_t?s.createElement(I,{style:{flex:"0 0 48px"}}):s.createElement(se,{allSelected:ht,selectedRows:gt,selectableRowsComponent:P,selectableRowsComponentProps:A,selectableRowDisabled:k,rowData:jt,keyField:l,mergeSelections:St,onSelectAllRows:Dt})),ve&&!$e&&s.createElement(Re,null),ot.map((e=>s.createElement(ie,{key:e.id,column:e,selectedColumn:bt,disabled:K||0===Pt.length,pagination:le,paginationServer:V,persistSelectedOnSort:Ct,selectableRowsVisibleOnly:x,sortDirection:vt,sortIcon:Ie,sortServer:Te,onSort:It,onDragStart:it,onDragOver:st,onDragEnd:ct,onDragEnter:at,onDragLeave:lt,draggingColumnId:rt}))))),!Pt.length&&!K&&s.createElement(Ee,null,ee),K&&Q&&s.createElement(Se,null,Z),!K&&Pt.length>0&&s.createElement(Ce,{className:"rdt_TableBody",role:"rowgroup"},At.map(((e,t)=>{const n=u(e,l),o=function(e=""){return"number"!=typeof e&&(!e||0===e.length)}(n)?t:n,r=v(e,gt,l),i=!!(ve&&Be&&Be(e)),a=!!(ve&&He&&He(e));return s.createElement(J,{id:o,key:o,keyField:l,"data-row-id":o,columns:ot,row:e,rowCount:Pt.length,rowIndex:t,selectableRows:m,expandableRows:ve,expandableIcon:F,highlightOnHover:d,pointerOnHover:p,dense:f,expandOnRowClicked:Ne,expandOnRowDoubleClicked:ze,expandableRowsComponent:Le,expandableRowsComponentProps:Ve,expandableRowsHideExpander:$e,defaultExpanderDisabled:a,defaultExpanded:i,expandableInheritConditionalStyles:Ye,conditionalRowStyles:Xe,selected:r,selectableRowsHighlight:w,selectableRowsComponent:P,selectableRowsComponentProps:A,selectableRowDisabled:k,selectableRowsSingle:b,striped:c,onRowExpandToggled:D,onRowClicked:Ft,onRowDoubleClicked:Tt,onRowMouseEnter:Lt,onRowMouseLeave:Vt,onSelectedRow:Mt,draggingColumnId:rt,onDragStart:it,onDragOver:st,onDragEnd:ct,onDragEnter:at,onDragLeave:lt})})))))),Ot&&s.createElement("div",null,s.createElement(Rt,{onChangePage:Ht,onChangeRowsPerPage:$t,rowCount:$||Pt.length,currentPage:ft,rowsPerPage:pt,direction:et,paginationRowsPerPageOptions:z,paginationIconLastPage:B,paginationIconFirstPage:Y,paginationIconNext:W,paginationIconPrevious:U,paginationComponentOptions:q})))}));t.STOP_PROP_TAG=W,t.createTheme=function(e="default",t,n="default"){return Ke[e]||(Ke[e]=qe(Ke[n],t||{})),Ke[e]=qe(Ke[e],t||{}),Ke[e]},t.default=Je,t.defaultThemes=Ke},1607:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>ht});var o=n(4467);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,o.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var a=n(296),s=n(45),l=n(1609),c=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],u=n(8168),d=n(3029),p=n(2901),f=n(3662);function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var m=n(2284),b=n(9417);var v=n(5458),w=n(7437),y=n(5795),C=n(7663);const x=l.useLayoutEffect;var S=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],O=function(){};function R(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function E(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var i=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(R(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var k=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,m.A)(e)&&null!==e?[e]:[];var t},P=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,i({},(0,s.A)(e,S))},A=function(e,t,n){var o=e.cx,r=e.getStyles,i=e.getClassNames,a=e.className;return{css:r(t,e),className:o(null!=n?n:{},i(t,e),a)}};function I(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function D(e){return I(e)?window.pageYOffset:e.scrollTop}function M(e,t){I(e)?window.scrollTo(0,t):e.scrollTop=t}function F(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,r=D(e),i=t-r,a=0;!function t(){var s,l=i*((s=(s=a+=10)/n-1)*s*s+1)+r;M(e,l),a<n?window.requestAnimationFrame(t):o(e)}()}function T(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?M(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&M(e,Math.max(t.offsetTop-r,0))}function L(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var V=!1,H={get passive(){return V=!0}},$="undefined"!=typeof window?window:{};$.addEventListener&&$.removeEventListener&&($.addEventListener("p",O,H),$.removeEventListener("p",O,!1));var j=V;function _(e){return null!=e}function N(e,t,n){return e?t:n}var z=["children","innerProps"],B=["children","innerProps"];var Y,W,U,G=function(e){return"auto"===e?"bottom":e},q=(0,l.createContext)(null),X=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,r=e.menuPlacement,s=e.menuPosition,c=e.menuShouldScrollIntoView,u=e.theme,d=((0,l.useContext)(q)||{}).setPortalPlacement,p=(0,l.useRef)(null),f=(0,l.useState)(o),g=(0,a.A)(f,2),h=g[0],m=g[1],b=(0,l.useState)(null),v=(0,a.A)(b,2),w=v[0],y=v[1],C=u.spacing.controlHeight;return x((function(){var e=p.current;if(e){var t="fixed"===s,i=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,g=p.height,h=p.top,m=n.offsetParent.getBoundingClientRect().top,b=a||I(u=l)?window.innerHeight:u.clientHeight,v=D(l),w=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),C=m-y,x=b-h,S=C+v,O=d-v-h,R=f-b+v+w,E=v+h-y,k=160;switch(r){case"auto":case"bottom":if(x>=g)return{placement:"bottom",maxHeight:t};if(O>=g&&!a)return i&&F(l,R,k),{placement:"bottom",maxHeight:t};if(!a&&O>=o||a&&x>=o)return i&&F(l,R,k),{placement:"bottom",maxHeight:a?x-w:O-w};if("auto"===r||a){var P=t,A=a?C:S;return A>=o&&(P=Math.min(A-w-s,t)),{placement:"top",maxHeight:P}}if("bottom"===r)return i&&M(l,R),{placement:"bottom",maxHeight:t};break;case"top":if(C>=g)return{placement:"top",maxHeight:t};if(S>=g&&!a)return i&&F(l,E,k),{placement:"top",maxHeight:t};if(!a&&S>=o||a&&C>=o){var T=t;return(!a&&S>=o||a&&C>=o)&&(T=a?C-y:S-y),i&&F(l,E,k),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}({maxHeight:o,menuEl:e,minHeight:n,placement:r,shouldScroll:c&&!t,isFixedPosition:t,controlHeight:C});m(i.maxHeight),y(i.placement),null==d||d(i.placement)}}),[o,r,s,c,n,d,C]),t({ref:p,placerProps:i(i({},e),{},{placement:w||G(r),maxHeight:h})})},K=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return i({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},Z=K,J=K,Q=["size"],ee=["innerProps","isRtl","size"],te={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ne=function(e){var t=e.size,n=(0,s.A)(e,Q);return(0,w.Y)("svg",(0,u.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:te},n))},oe=function(e){return(0,w.Y)(ne,(0,u.A)({size:20},e),(0,w.Y)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},re=function(e){return(0,w.Y)(ne,(0,u.A)({size:20},e),(0,w.Y)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ie=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,a=o.colors;return i({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*r,":hover":{color:n?a.neutral80:a.neutral40}})},ae=ie,se=ie,le=(0,w.i7)(Y||(W=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],U||(U=W.slice(0)),Y=Object.freeze(Object.defineProperties(W,{raw:{value:Object.freeze(U)}})))),ce=function(e){var t=e.delay,n=e.offset;return(0,w.Y)("span",{css:(0,w.AH)({animation:"".concat(le," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ue=["data"],de=["innerRef","isDisabled","isHidden","inputClassName"],pe={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},fe={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":i({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},pe)},ge=function(e){return i({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},pe)},he=function(e){var t=e.children,n=e.innerProps;return(0,w.Y)("div",n,t)},me={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,w.Y)("div",(0,u.A)({},A(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,w.Y)(oe,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return(0,w.Y)("div",(0,u.A)({ref:r},A(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,w.Y)("div",(0,u.A)({},A(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,w.Y)(re,null))},DownChevron:re,CrossIcon:oe,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,d=e.selectProps;return(0,w.Y)("div",(0,u.A)({},A(e,"group",{group:!0}),s),(0,w.Y)(i,(0,u.A)({},a,{selectProps:d,theme:c,getStyles:o,getClassNames:r,cx:n}),l),(0,w.Y)("div",null,t))},GroupHeading:function(e){var t=P(e);t.data;var n=(0,s.A)(t,ue);return(0,w.Y)("div",(0,u.A)({},A(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,w.Y)("div",(0,u.A)({},A(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,w.Y)("span",(0,u.A)({},t,A(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=P(e),r=o.innerRef,i=o.isDisabled,a=o.isHidden,l=o.inputClassName,c=(0,s.A)(o,de);return(0,w.Y)("div",(0,u.A)({},A(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,w.Y)("input",(0,u.A)({className:t({input:!0},l),ref:r,style:ge(a),disabled:i},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,r=void 0===o?4:o,a=(0,s.A)(e,ee);return(0,w.Y)("div",(0,u.A)({},A(i(i({},a),{},{innerProps:t,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,w.Y)(ce,{delay:0,offset:n}),(0,w.Y)(ce,{delay:160,offset:!0}),(0,w.Y)(ce,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return(0,w.Y)("div",(0,u.A)({},A(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,r=e.isMulti;return(0,w.Y)("div",(0,u.A)({},A(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,r=e.innerProps,s=e.menuPlacement,c=e.menuPosition,d=(0,l.useRef)(null),p=(0,l.useRef)(null),f=(0,l.useState)(G(s)),g=(0,a.A)(f,2),h=g[0],m=g[1],b=(0,l.useMemo)((function(){return{setPortalPlacement:m}}),[]),v=(0,l.useState)(null),S=(0,a.A)(v,2),O=S[0],R=S[1],E=(0,l.useCallback)((function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===c?0:window.pageYOffset,n=e[h]+t;n===(null==O?void 0:O.offset)&&e.left===(null==O?void 0:O.rect.left)&&e.width===(null==O?void 0:O.rect.width)||R({offset:n,rect:e})}}),[o,c,h,null==O?void 0:O.offset,null==O?void 0:O.rect.left,null==O?void 0:O.rect.width]);x((function(){E()}),[E]);var k=(0,l.useCallback)((function(){"function"==typeof p.current&&(p.current(),p.current=null),o&&d.current&&(p.current=(0,C.ll)(o,d.current,E,{elementResize:"ResizeObserver"in window}))}),[o,E]);x((function(){k()}),[k]);var P=(0,l.useCallback)((function(e){d.current=e,k()}),[k]);if(!t&&"fixed"!==c||!O)return null;var I=(0,w.Y)("div",(0,u.A)({ref:P},A(i(i({},e),{},{offset:O.offset,position:c,rect:O.rect}),"menuPortal",{"menu-portal":!0}),r),n);return(0,w.Y)(q.Provider,{value:b},t?(0,y.createPortal)(I,t):I)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,r=(0,s.A)(e,B);return(0,w.Y)("div",(0,u.A)({},A(i(i({},r),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,r=(0,s.A)(e,z);return(0,w.Y)("div",(0,u.A)({},A(i(i({},r),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,a=e.isDisabled,s=e.removeProps,l=e.selectProps,c=n.Container,u=n.Label,d=n.Remove;return(0,w.Y)(c,{data:o,innerProps:i(i({},A(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),r),selectProps:l},(0,w.Y)(u,{data:o,innerProps:i({},A(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),(0,w.Y)(d,{data:o,innerProps:i(i({},A(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:l}))},MultiValueContainer:he,MultiValueLabel:he,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,w.Y)("div",(0,u.A)({role:"button"},n),t||(0,w.Y)(oe,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.innerRef,a=e.innerProps;return(0,w.Y)("div",(0,u.A)({},A(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":r}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,w.Y)("div",(0,u.A)({},A(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return(0,w.Y)("div",(0,u.A)({},A(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return(0,w.Y)("div",(0,u.A)({},A(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,r=e.hasValue;return(0,w.Y)("div",(0,u.A)({},A(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},be=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ve(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||be(o)&&be(r)))return!1;var o,r;return!0}for(var we={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},ye=function(e){return(0,w.Y)("span",(0,u.A)({css:we},e))},Ce={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,r=e.context,i=e.isInitialFocus;switch(r){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},xe=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,r=e.focusableOptions,a=e.isFocused,s=e.selectValue,c=e.selectProps,u=e.id,d=e.isAppleDevice,p=c.ariaLiveMessages,f=c.getOptionLabel,g=c.inputValue,h=c.isMulti,m=c.isOptionDisabled,b=c.isSearchable,v=c.menuIsOpen,y=c.options,C=c.screenReaderStatus,x=c.tabSelectsValue,S=c.isLoading,O=c["aria-label"],R=c["aria-live"],E=(0,l.useMemo)((function(){return i(i({},Ce),p||{})}),[p]),k=(0,l.useMemo)((function(){var e,n="";if(t&&E.onChange){var o=t.option,r=t.options,a=t.removedValue,l=t.removedValues,c=t.value,u=a||o||(e=c,Array.isArray(e)?null:e),d=u?f(u):"",p=r||l||void 0,g=p?p.map(f):[],h=i({isDisabled:u&&m(u,s),label:d,labels:g},t);n=E.onChange(h)}return n}),[t,E,m,s,f]),P=(0,l.useMemo)((function(){var e="",t=n||o,i=!!(n&&s&&s.includes(n));if(t&&E.onFocus){var a={focused:t,label:f(t),isDisabled:m(t,s),isSelected:i,options:r,context:t===n?"menu":"value",selectValue:s,isAppleDevice:d};e=E.onFocus(a)}return e}),[n,o,f,m,E,r,s,d]),A=(0,l.useMemo)((function(){var e="";if(v&&y.length&&!S&&E.onFilter){var t=C({count:r.length});e=E.onFilter({inputValue:g,resultsMessage:t})}return e}),[r,g,v,E,y,C,S]),I="initial-input-focus"===(null==t?void 0:t.action),D=(0,l.useMemo)((function(){var e="";if(E.guidance){var t=o?"value":v?"menu":"input";e=E.guidance({"aria-label":O,context:t,isDisabled:n&&m(n,s),isMulti:h,isSearchable:b,tabSelectsValue:x,isInitialFocus:I})}return e}),[O,n,o,h,m,b,v,E,s,x,I]),M=(0,w.Y)(l.Fragment,null,(0,w.Y)("span",{id:"aria-selection"},k),(0,w.Y)("span",{id:"aria-focused"},P),(0,w.Y)("span",{id:"aria-results"},A),(0,w.Y)("span",{id:"aria-guidance"},D));return(0,w.Y)(l.Fragment,null,(0,w.Y)(ye,{id:u},I&&M),(0,w.Y)(ye,{"aria-live":R,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!I&&M))},Se=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Oe=new RegExp("["+Se.map((function(e){return e.letters})).join("")+"]","g"),Re={},Ee=0;Ee<Se.length;Ee++)for(var ke=Se[Ee],Pe=0;Pe<ke.letters.length;Pe++)Re[ke.letters[Pe]]=ke.base;var Ae=function(e){return e.replace(Oe,(function(e){return Re[e]}))},Ie=function(e,t){void 0===t&&(t=ve);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}(Ae),De=function(e){return e.replace(/^\s+|\s+$/g,"")},Me=function(e){return"".concat(e.label," ").concat(e.value)},Fe=["innerRef"];function Te(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=Object.entries(e).filter((function(e){var t=(0,a.A)(e,1)[0];return!n.includes(t)}));return r.reduce((function(e,t){var n=(0,a.A)(t,2),o=n[0],r=n[1];return e[o]=r,e}),{})}((0,s.A)(e,Fe),"onExited","in","enter","exit","appear");return(0,w.Y)("input",(0,u.A)({ref:t},n,{css:(0,w.AH)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Le=["boxSizing","height","overflow","paddingRight","position"],Ve={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function He(e){e.preventDefault()}function $e(e){e.stopPropagation()}function je(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function _e(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ne=!("undefined"==typeof window||!window.document||!window.document.createElement),ze=0,Be={capture:!1,passive:!1},Ye=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},We={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ue(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,r=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,r=e.onTopArrive,i=e.onTopLeave,a=(0,l.useRef)(!1),s=(0,l.useRef)(!1),c=(0,l.useRef)(0),u=(0,l.useRef)(null),d=(0,l.useCallback)((function(e,t){if(null!==u.current){var l=u.current,c=l.scrollTop,d=l.scrollHeight,p=l.clientHeight,f=u.current,g=t>0,h=d-p-c,m=!1;h>t&&a.current&&(o&&o(e),a.current=!1),g&&s.current&&(i&&i(e),s.current=!1),g&&t>h?(n&&!a.current&&n(e),f.scrollTop=d,m=!0,a.current=!0):!g&&-t>c&&(r&&!s.current&&r(e),f.scrollTop=0,m=!0,s.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,r,i]),p=(0,l.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=(0,l.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),g=(0,l.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),h=(0,l.useCallback)((function(e){if(e){var t=!!j&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",g,t)}}),[g,f,p]),m=(0,l.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",g,!1))}),[g,f,p]);return(0,l.useEffect)((function(){if(t){var e=u.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){u.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,r=(0,l.useRef)({}),i=(0,l.useRef)(null),a=(0,l.useCallback)((function(e){if(Ne){var t=document.body,n=t&&t.style;if(o&&Le.forEach((function(e){var t=n&&n[e];r.current[e]=t})),o&&ze<1){var i=parseInt(r.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(Ve).forEach((function(e){var t=Ve[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&_e()&&(t.addEventListener("touchmove",He,Be),e&&(e.addEventListener("touchstart",je,Be),e.addEventListener("touchmove",$e,Be))),ze+=1}}),[o]),s=(0,l.useCallback)((function(e){if(Ne){var t=document.body,n=t&&t.style;ze=Math.max(ze-1,0),o&&ze<1&&Le.forEach((function(e){var t=r.current[e];n&&(n[e]=t)})),t&&_e()&&(t.removeEventListener("touchmove",He,Be),e&&(e.removeEventListener("touchstart",je,Be),e.removeEventListener("touchmove",$e,Be)))}}),[o]);return(0,l.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return(0,w.Y)(l.Fragment,null,n&&(0,w.Y)("div",{onClick:Ye,css:We}),t((function(e){r(e),i(e)})))}var Ge={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},qe=function(e){var t=e.name,n=e.onFocus;return(0,w.Y)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Ge,value:"",onChange:function(){}})};function Xe(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Ke(){return Xe(/^Mac/i)}var Ze={clearIndicator:se,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.theme,a=r.colors,s=r.borderRadius;return i({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:r.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},dropdownIndicator:ae,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,r=n.spacing;return i({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing.baseUnit,a=o.colors;return i({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,t){var n=e.isDisabled,o=e.value,r=e.theme,a=r.spacing,s=r.colors;return i(i({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},fe),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,r=e.theme,a=r.colors,s=r.spacing.baseUnit;return i({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*s})},loadingMessage:J,menu:function(e,t){var n,r=e.placement,a=e.theme,s=a.borderRadius,l=a.spacing,c=a.colors;return i((n={label:"menu"},(0,o.A)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),(0,o.A)(n,"position","absolute"),(0,o.A)(n,"width","100%"),(0,o.A)(n,"zIndex",1),n),t?{}:{backgroundColor:c.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return i({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,a=n.colors;return i({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,a=e.cropWithEllipsis;return i({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,a=n.colors,s=e.isFocused;return i({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:Z,option:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,a=e.theme,s=a.spacing,l=a.colors;return i({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?l.primary:o?l.primary25:"transparent",color:n?l.neutral20:r?l.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,r=n.colors;return i({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,a=o.colors;return i({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,a=e.selectProps.controlShouldRenderValue;return i({alignItems:"center",display:o&&r&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Je={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Qe={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:L(),captureMenuScroll:!L(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=i({ignoreCase:!0,ignoreAccents:!0,stringify:Me,trim:!0,matchFrom:"any"},undefined),o=n.ignoreCase,r=n.ignoreAccents,a=n.stringify,s=n.trim,l=n.matchFrom,c=s?De(t):t,u=s?De(a(e)):a(e);return o&&(c=c.toLowerCase(),u=u.toLowerCase()),r&&(c=Ie(c),u=Ae(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function et(e,t,n,o){return{type:"option",data:t,isDisabled:lt(e,t,n),isSelected:ct(e,t,n),label:at(e,t),value:st(e,t),index:o}}function tt(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return et(e,n,t,o)})).filter((function(t){return rt(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=et(e,n,t,o);return rt(e,i)?i:void 0})).filter(_)}function nt(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,(0,v.A)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function ot(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,(0,v.A)(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function rt(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!dt(e)||!i)&&ut(e,{label:a,value:s,data:r},o)}var it=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},at=function(e,t){return e.getOptionLabel(t)},st=function(e,t){return e.getOptionValue(t)};function lt(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ct(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=st(e,t);return n.some((function(t){return st(e,t)===o}))}function ut(e,t,n){return!e.filterOption||e.filterOption(t,n)}var dt=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},pt=1,ft=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,f.A)(e,t)}(n,e);var t=function(e){var t=h();return function(){var n,o=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==(0,m.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,b.A)(e)}(this,n)}}(n);function n(e){var o;if((0,d.A)(this,n),(o=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=Ke()||Xe(/^iPhone/i)||Xe(/^iPad/i)||Ke()&&navigator.maxTouchPoints>1,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,r=n.onChange,i=n.name;t.name=i,o.ariaOnChange(e,t),r(e,t)},o.setValue=function(e,t,n){var r=o.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,r=t.isMulti,i=t.name,a=o.state.selectValue,s=r&&o.isOptionSelected(e,a),l=o.isOptionDisabled(e,a);if(s){var c=o.getOptionValue(e);o.setValue(a.filter((function(e){return o.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void o.ariaOnChange(e,{action:"select-option",option:e,name:i});r?o.setValue([].concat((0,v.A)(a),[e]),"select-option",e):o.setValue(e,"select-option")}n&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,r=o.getOptionValue(e),i=n.filter((function(e){return o.getOptionValue(e)!==r})),a=N(t,i,i[0]||null);o.onChange(a,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange(N(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],r=t.slice(0,t.length-1),i=N(e,r,r[0]||null);n&&o.onChange(i,{action:"pop-value",removedValue:n})},o.getFocusedOptionId=function(e){return it(o.state.focusableOptionsWithIds,e)},o.getFocusableOptionsWithIds=function(){return ot(tt(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return E.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return at(o.props,e)},o.getOptionValue=function(e){return st(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,r=Ze[e](t,n);r.boxSizing="border-box";var i=o.props.styles[e];return i?i(r,t):r},o.getClassNames=function(e,t){var n,r;return null===(n=(r=o.props.classNames)[e])||void 0===n?void 0:n.call(r,t)},o.getElementId=function(e){return"".concat(o.state.instancePrefix,"-").concat(e)},o.getComponents=function(){return e=o.props,i(i({},me),e.components);var e},o.buildCategorizedOptions=function(){return tt(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return nt(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:i({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,r=t.menuIsOpen;o.focusInput(),r?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout((function(){return o.focusInput()})))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&I(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var r=Math.abs(n.clientX-o.initialTouchX),i=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=r>5||i>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){if(!o.blockOptionHover&&o.state.focusedOption!==e){var t=o.getFocusableOptions().indexOf(e);o.setState({focusedOption:e,focusedOptionId:t>-1?o.getFocusedOptionId(e):null})}},o.shouldHideSelectedOptions=function(){return dt(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,r=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=o.state,g=f.focusedOption,h=f.focusedValue,m=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)o.removeValue(h);else{if(!r)return;n?o.popValue():s&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!c||!d||!g||p&&o.isOptionSelected(g,m))return;o.selectOption(g);break;case"Enter":if(229===e.keyCode)break;if(c){if(!g)return;if(o.isComposing)return;o.selectOption(g);break}return;case"Escape":c?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):s&&i&&o.clearValue();break;case" ":if(a)return;if(!c){o.openMenu("first");break}if(!g)return;o.selectOption(g);break;case"ArrowUp":c?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":c?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!c)return;o.focusOption("pageup");break;case"PageDown":if(!c)return;o.focusOption("pagedown");break;case"Home":if(!c)return;o.focusOption("first");break;case"End":if(!c)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++pt),o.state.selectValue=k(e.value),e.menuIsOpen&&o.state.selectValue.length){var r=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),s=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=r,o.state.focusedOption=a[s],o.state.focusedOptionId=it(r,a[s])}return o}return(0,p.A)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&T(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&o&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(T(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r<i&&(a=r+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[r])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Je):i(i({},Je),this.props.theme):Je}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return lt(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ct(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ut(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,r=e.inputValue,a=e.tabIndex,s=e.form,c=e.menuIsOpen,d=e.required,p=this.getComponents().Input,f=this.state,g=f.inputIsHidden,h=f.ariaSelection,m=this.commonProps,b=o||this.getElementId("input"),v=i(i(i({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?l.createElement(p,(0,u.A)({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:t,isHidden:g,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:r},v)):l.createElement(Te,(0,u.A)({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:O,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,r=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,c=this.commonProps,d=this.props,p=d.controlShouldRenderValue,f=d.isDisabled,g=d.isMulti,h=d.inputValue,m=d.placeholder,b=this.state,v=b.selectValue,w=b.focusedValue,y=b.isFocused;if(!this.hasValue()||!p)return h?null:l.createElement(s,(0,u.A)({},c,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(g)return v.map((function(t,a){var s=t===w,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return l.createElement(n,(0,u.A)({},c,{components:{Container:o,Label:r,Remove:i},isFocused:s,isDisabled:f,key:d,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var C=v[0];return l.createElement(a,(0,u.A)({},c,{data:C,isDisabled:f}),this.formatOptionLabel(C,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||r)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return l.createElement(e,(0,u.A)({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,i=this.state.isFocused;return e&&r?l.createElement(e,(0,u.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused;return l.createElement(n,(0,u.A)({},o,{isDisabled:r,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return l.createElement(e,(0,u.A)({},t,{innerProps:r,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,r=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,d=t.Option,p=this.commonProps,f=this.state.focusedOption,g=this.props,h=g.captureMenuScroll,m=g.inputValue,b=g.isLoading,v=g.loadingMessage,w=g.minMenuHeight,y=g.maxMenuHeight,C=g.menuIsOpen,x=g.menuPlacement,S=g.menuPosition,O=g.menuPortalTarget,R=g.menuShouldBlockScroll,E=g.menuShouldScrollIntoView,k=g.noOptionsMessage,P=g.onMenuScrollToTop,A=g.onMenuScrollToBottom;if(!C)return null;var I,D=function(t,n){var o=t.type,r=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,c=t.value,g=f===r,h=i?void 0:function(){return e.onOptionHover(r)},m=i?void 0:function(){return e.selectOption(r)},b="".concat(e.getElementId("option"),"-").concat(n),v={id:b,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return l.createElement(d,(0,u.A)({},p,{innerProps:v,data:r,isDisabled:i,isSelected:a,key:b,label:s,type:o,value:c,isFocused:g,innerRef:g?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())I=this.getCategorizedOptions().map((function(t){if("group"===t.type){var r=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),c="".concat(s,"-heading");return l.createElement(n,(0,u.A)({},p,{key:s,data:r,options:i,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return D(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return D(t,"".concat(t.index))}));else if(b){var M=v({inputValue:m});if(null===M)return null;I=l.createElement(s,p,M)}else{var F=k({inputValue:m});if(null===F)return null;I=l.createElement(c,p,F)}var T={minMenuHeight:w,maxMenuHeight:y,menuPlacement:x,menuPosition:S,menuShouldScrollIntoView:E},L=l.createElement(X,(0,u.A)({},p,T),(function(t){var n=t.ref,o=t.placerProps,a=o.placement,s=o.maxHeight;return l.createElement(r,(0,u.A)({},p,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:a}),l.createElement(Ue,{captureEnabled:h,onTopArrive:P,onBottomArrive:A,lockEnabled:R},(function(t){return l.createElement(i,(0,u.A)({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:e.getElementId("listbox")},isLoading:b,maxHeight:s,focusedOption:f}),I)})))}));return O||"fixed"===S?l.createElement(a,(0,u.A)({},p,{appendTo:O,controlElement:this.controlRef,menuPlacement:x,menuPosition:S}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,r=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!o)return l.createElement(qe,{name:i,onFocus:this.onValueInputFocus});if(i&&!o){if(r){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return l.createElement("input",{name:i,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return l.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):l.createElement("input",{name:i,type:"hidden",value:""});return l.createElement("div",null,u)}var d=s[0]?this.getOptionValue(s[0]):"";return l.createElement("input",{name:i,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return l.createElement(xe,(0,u.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:r,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,r=e.ValueContainer,i=this.props,a=i.className,s=i.id,c=i.isDisabled,d=i.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return l.createElement(o,(0,u.A)({},f,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:p}),this.renderLiveRegion(),l.createElement(t,(0,u.A)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:p,menuIsOpen:d}),l.createElement(r,(0,u.A)({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),l.createElement(n,(0,u.A)({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,l=t.prevWasFocused,c=t.instancePrefix,u=e.options,d=e.value,p=e.menuIsOpen,f=e.inputValue,g=e.isMulti,h=k(d),m={};if(n&&(d!==n.value||u!==n.options||p!==n.menuIsOpen||f!==n.inputValue)){var b=p?function(e,t){return nt(tt(e,t))}(e,h):[],v=p?ot(tt(e,h),"".concat(c,"-option")):[],w=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,h):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,b);m={selectValue:h,focusedOption:y,focusedOptionId:it(v,y),focusableOptionsWithIds:v,focusedValue:w,clearFocusValueOnUpdate:!1}}var C=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},x=a,S=s&&l;return s&&!S&&(x={value:N(g,h,h[0]||null),options:h,action:"initial-input-focus"},S=!l),"initial-input-focus"===(null==a?void 0:a.action)&&(x=null),i(i(i({},m),C),{},{prevProps:e,ariaSelection:x,prevWasFocused:S})}}]),n}(l.Component);ft.defaultProps=Qe,n(5655);var gt=(0,l.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,r=void 0!==o&&o,u=e.defaultValue,d=void 0===u?null:u,p=e.inputValue,f=e.menuIsOpen,g=e.onChange,h=e.onInputChange,m=e.onMenuClose,b=e.onMenuOpen,v=e.value,w=(0,s.A)(e,c),y=(0,l.useState)(void 0!==p?p:n),C=(0,a.A)(y,2),x=C[0],S=C[1],O=(0,l.useState)(void 0!==f?f:r),R=(0,a.A)(O,2),E=R[0],k=R[1],P=(0,l.useState)(void 0!==v?v:d),A=(0,a.A)(P,2),I=A[0],D=A[1],M=(0,l.useCallback)((function(e,t){"function"==typeof g&&g(e,t),D(e)}),[g]),F=(0,l.useCallback)((function(e,t){var n;"function"==typeof h&&(n=h(e,t)),S(void 0!==n?n:e)}),[h]),T=(0,l.useCallback)((function(){"function"==typeof b&&b(),k(!0)}),[b]),L=(0,l.useCallback)((function(){"function"==typeof m&&m(),k(!1)}),[m]),V=void 0!==p?p:x,H=void 0!==f?f:E,$=void 0!==v?v:I;return i(i({},w),{},{inputValue:V,menuIsOpen:H,onChange:M,onInputChange:F,onMenuClose:L,onMenuOpen:T,value:$})}(e);return l.createElement(ft,(0,u.A)({ref:t},n))})),ht=gt},2833:e=>{e.exports=function(e,t,n,o){var r=n?n.call(o,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(r=n?n.call(o,u,d,c):void 0)||void 0===r&&u!==d)return!1}return!0}},5713:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ServerStyleSheet:()=>_e,StyleSheetConsumer:()=>re,StyleSheetContext:()=>oe,StyleSheetManager:()=>ue,ThemeConsumer:()=>Me,ThemeContext:()=>De,ThemeProvider:()=>Fe,__PRIVATE__:()=>Be,createGlobalStyle:()=>$e,css:()=>ye,default:()=>Ye,isStyledComponent:()=>y,keyframes:()=>je,useTheme:()=>ze,version:()=>x,withTheme:()=>Ne});var o=n(4363),r=n(1609),i=n.n(r),a=n(2833),s=n.n(a);const l=function(e){function t(e,o,l,c,p){for(var f,g,h,m,y,x=0,S=0,O=0,R=0,E=0,M=0,T=h=f=0,V=0,H=0,$=0,j=0,_=l.length,N=_-1,z="",B="",Y="",W="";V<_;){if(g=l.charCodeAt(V),V===N&&0!==S+R+O+x&&(0!==S&&(g=47===S?10:47),R=O=x=0,_++,N++),0===S+R+O+x){if(V===N&&(0<H&&(z=z.replace(d,"")),0<z.trim().length)){switch(g){case 32:case 9:case 59:case 13:case 10:break;default:z+=l.charAt(V)}g=59}switch(g){case 123:for(f=(z=z.trim()).charCodeAt(0),h=1,j=++V;V<_;){switch(g=l.charCodeAt(V)){case 123:h++;break;case 125:h--;break;case 47:switch(g=l.charCodeAt(V+1)){case 42:case 47:e:{for(T=V+1;T<N;++T)switch(l.charCodeAt(T)){case 47:if(42===g&&42===l.charCodeAt(T-1)&&V+2!==T){V=T+1;break e}break;case 10:if(47===g){V=T+1;break e}}V=T}}break;case 91:g++;case 40:g++;case 34:case 39:for(;V++<N&&l.charCodeAt(V)!==g;);}if(0===h)break;V++}if(h=l.substring(j,V),0===f&&(f=(z=z.replace(u,"").trim()).charCodeAt(0)),64===f){switch(0<H&&(z=z.replace(d,"")),g=z.charCodeAt(1)){case 100:case 109:case 115:case 45:H=o;break;default:H=D}if(j=(h=t(o,H,h,g,p+1)).length,0<F&&(y=s(3,h,H=n(D,z,$),o,P,k,j,g,p,c),z=H.join(""),void 0!==y&&0===(j=(h=y.trim()).length)&&(g=0,h="")),0<j)switch(g){case 115:z=z.replace(C,a);case 100:case 109:case 45:h=z+"{"+h+"}";break;case 107:h=(z=z.replace(b,"$1 $2"))+"{"+h+"}",h=1===I||2===I&&i("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=z+h,112===c&&(B+=h,h="")}else h=""}else h=t(o,n(o,z,$),h,c,p+1);Y+=h,h=$=H=T=f=0,z="",g=l.charCodeAt(++V);break;case 125:case 59:if(1<(j=(z=(0<H?z.replace(d,""):z).trim()).length))switch(0===T&&(f=z.charCodeAt(0),45===f||96<f&&123>f)&&(j=(z=z.replace(" ",":")).length),0<F&&void 0!==(y=s(1,z,o,e,P,k,B.length,c,p,c))&&0===(j=(z=y.trim()).length)&&(z="\0\0"),f=z.charCodeAt(0),g=z.charCodeAt(1),f){case 0:break;case 64:if(105===g||99===g){W+=z+l.charAt(V);break}default:58!==z.charCodeAt(j-1)&&(B+=r(z,f,g,z.charCodeAt(2)))}$=H=T=f=0,z="",g=l.charCodeAt(++V)}}switch(g){case 13:case 10:47===S?S=0:0===1+f&&107!==c&&0<z.length&&(H=1,z+="\0"),0<F*L&&s(0,z,o,e,P,k,B.length,c,p,c),k=1,P++;break;case 59:case 125:if(0===S+R+O+x){k++;break}default:switch(k++,m=l.charAt(V),g){case 9:case 32:if(0===R+x+S)switch(E){case 44:case 58:case 9:case 32:m="";break;default:32!==g&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===R+S+x&&(H=$=1,m="\f"+m);break;case 108:if(0===R+S+x+A&&0<T)switch(V-T){case 2:112===E&&58===l.charCodeAt(V-3)&&(A=E);case 8:111===M&&(A=M)}break;case 58:0===R+S+x&&(T=V);break;case 44:0===S+O+R+x&&(H=1,m+="\r");break;case 34:case 39:0===S&&(R=R===g?0:0===R?g:R);break;case 91:0===R+S+O&&x++;break;case 93:0===R+S+O&&x--;break;case 41:0===R+S+x&&O--;break;case 40:0===R+S+x&&(0===f&&(2*E+3*M==533||(f=1)),O++);break;case 64:0===S+O+R+x+T+h&&(h=1);break;case 42:case 47:if(!(0<R+x+O))switch(S){case 0:switch(2*g+3*l.charCodeAt(V+1)){case 235:S=47;break;case 220:j=V,S=42}break;case 42:47===g&&42===E&&j+2!==V&&(33===l.charCodeAt(j+2)&&(B+=l.substring(j,V+1)),m="",S=0)}}0===S&&(z+=m)}M=E,E=g,V++}if(0<(j=B.length)){if(H=o,0<F&&void 0!==(y=s(2,B,H,e,P,k,j,c,p,c))&&0===(B=y).length)return W+B+Y;if(B=H.join(",")+"{"+B+"}",0!=I*A){switch(2!==I||i(B,2)||(A=0),A){case 111:B=B.replace(w,":-moz-$1")+B;break;case 112:B=B.replace(v,"::-webkit-input-$1")+B.replace(v,"::-moz-$1")+B.replace(v,":-ms-input-$1")+B}A=0}}return W+B+Y}function n(e,t,n){var r=t.trim().split(h);t=r;var i=r.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=o(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[l++]=o(e[c]+" ",r[s],n).trim()}return t}function o(e,t,n){var o=t.charCodeAt(0);switch(33>o&&(o=(t=t.trim()).charCodeAt(0)),o){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,o){var a=e+";",s=2*t+3*n+4*o;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===I||2===I&&i(l,1)?"-webkit-"+l+l:l}if(0===I||2===I&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(E,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(y,"tb");break;case 232:l=a.replace(y,"tb-rl");break;case 220:l=a.replace(y,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===R.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+o&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(g,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),o=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),T(2!==t?o:o.replace(O,"$1"),n,t)}function a(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,n,o,r,i,a,s,l,u){for(var d,p=0,f=t;p<F;++p)switch(d=M[p].call(c,e,f,n,o,r,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?I=1:(I=2,T=e):I=0),l}function c(e,n){var o=e;if(33>o.charCodeAt(0)&&(o=o.trim()),o=[o],0<F){var r=s(-1,n,o,o,P,k,0,0,0,0);void 0!==r&&"string"==typeof r&&(n=r)}var i=t(D,o,n,0,0);return 0<F&&void 0!==(r=s(-2,i,o,o,P,k,i.length,0,0,0))&&(i=r),A=0,k=P=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,g=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,w=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,C=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,S=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,R=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,k=1,P=1,A=0,I=1,D=[],M=[],F=0,T=null,L=0;return c.use=function e(t){switch(t){case void 0:case null:F=M.length=0;break;default:if("function"==typeof t)M[F++]=t;else if("object"==typeof t)for(var n=0,o=t.length;n<o;++n)e(t[n]);else L=0|!!t}return e},c.set=l,void 0!==e&&l(e),c},c={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var u=n(1907),d=n(4146),p=n.n(d);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var g=function(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n},h=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,o.typeOf)(e)},m=Object.freeze([]),b=Object.freeze({});function v(e){return"function"==typeof e}function w(e){return e.displayName||e.name||"Component"}function y(e){return e&&"string"==typeof e.styledComponentId}var C="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",x="5.3.11",S="undefined"!=typeof window&&"HTMLElement"in window,O=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),R={};function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var k=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)(r<<=1)<0&&E(16,""+e);this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var i=o;i<r;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,i=o;i<r;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),P=new Map,A=new Map,I=1,D=function(e){if(P.has(e))return P.get(e);for(;A.has(I);)I++;var t=I++;return P.set(e,t),A.set(t,e),t},M=function(e){return A.get(e)},F=function(e,t){t>=I&&(I=t+1),P.set(e,t),A.set(t,e)},T="style["+C+'][data-styled-version="5.3.11"]',L=new RegExp("^"+C+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),V=function(e,t,n){for(var o,r=n.split(","),i=0,a=r.length;i<a;i++)(o=r[i])&&e.registerName(t,o)},H=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),o=[],r=0,i=n.length;r<i;r++){var a=n[r].trim();if(a){var s=a.match(L);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(F(c,l),V(e,c,s[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(a)}}},$=function(){return n.nc},j=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var o=t[n];if(o&&1===o.nodeType&&o.hasAttribute(C))return o}}(n),i=void 0!==r?r.nextSibling:null;o.setAttribute(C,"active"),o.setAttribute("data-styled-version","5.3.11");var a=$();return a&&o.setAttribute("nonce",a),n.insertBefore(o,i),o},_=function(){function e(e){var t=this.element=j(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}E(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),N=function(){function e(e){var t=this.element=j(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),o=this.nodes[e];return this.element.insertBefore(n,o||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),z=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),B=S,Y={isServer:!S,useCSSOMInjection:!O},W=function(){function e(e,t,n){void 0===e&&(e=b),void 0===t&&(t={}),this.options=f({},Y,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&S&&B&&(B=!1,function(e){for(var t=document.querySelectorAll(T),n=0,o=t.length;n<o;n++){var r=t[n];r&&"active"!==r.getAttribute(C)&&(H(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this))}e.registerId=function(e){return D(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(f({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,o=t.useCSSOMInjection,r=t.target,e=n?new z(r):o?new _(r):new N(r),new k(e)));var e,t,n,o,r},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(D(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(D(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(D(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=0;r<n;r++){var i=M(r);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(r);if(a&&s&&a.size){var l=C+".g"+r+'[id="'+i+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),o+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return o}(this)},e}(),U=/(a)(d)/gi,G=function(e){return String.fromCharCode(e+(e>25?39:97))};function q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=G(t%52)+n;return(G(t%52)+n).replace(U,"$1-$2")}var X=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},K=function(e){return X(5381,e)};function Z(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(v(n)&&!y(n))return!1}return!0}var J=K("5.3.11"),Q=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Z(e),this.componentId=t,this.baseHash=X(J,t),this.baseStyle=n,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.componentId,r=[];if(this.baseStyle&&r.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(o,this.staticRulesId))r.push(this.staticRulesId);else{var i=ve(this.rules,e,t,n).join(""),a=q(X(this.baseHash,i)>>>0);if(!t.hasNameForId(o,a)){var s=n(i,"."+a,void 0,o);t.insertRules(o,a,s)}r.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=X(this.baseHash,n.hash),u="",d=0;d<l;d++){var p=this.rules[d];if("string"==typeof p)u+=p;else if(p){var f=ve(p,e,t,n),g=Array.isArray(f)?f.join(""):f;c=X(c,g+d),u+=g}}if(u){var h=q(c>>>0);if(!t.hasNameForId(o,h)){var m=n(u,"."+h,void 0,o);t.insertRules(o,h,m)}r.push(h)}}return r.join(" ")},e}(),ee=/^\s*\/\/.*$/gm,te=[":","[",".","#"];function ne(e){var t,n,o,r,i=void 0===e?b:e,a=i.options,s=void 0===a?b:a,c=i.plugins,u=void 0===c?m:c,d=new l(s),p=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,o,r,i,a,s,l,c,u,d){switch(n){case 1:if(0===u&&64===o.charCodeAt(0))return e(o+";"),"";break;case 2:if(0===c)return o+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(r[0]+o),"";default:return o+(0===d?"/*|*/":"")}case-2:o.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),g=function(e,o,i){return 0===o&&-1!==te.indexOf(i[n.length])||i.match(r)?e:"."+t};function h(e,i,a,s){void 0===s&&(s="&");var l=e.replace(ee,""),c=i&&a?a+" "+i+" { "+l+" }":l;return t=s,n=i,o=new RegExp("\\"+n+"\\b","g"),r=new RegExp("(\\"+n+"\\b){2,}"),d(a||!i?"":i,c)}return d.use([].concat(u,[function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(n)>0&&(r[0]=r[0].replace(o,g))},f,function(e){if(-2===e){var t=p;return p=[],t}}])),h.hash=u.length?u.reduce((function(e,t){return t.name||E(15),X(e,t.name)}),5381).toString():"",h}var oe=i().createContext(),re=oe.Consumer,ie=i().createContext(),ae=(ie.Consumer,new W),se=ne();function le(){return(0,r.useContext)(oe)||ae}function ce(){return(0,r.useContext)(ie)||se}function ue(e){var t=(0,r.useState)(e.stylisPlugins),n=t[0],o=t[1],a=le(),l=(0,r.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,r.useMemo)((function(){return ne({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,r.useEffect)((function(){s()(n,e.stylisPlugins)||o(e.stylisPlugins)}),[e.stylisPlugins]),i().createElement(oe.Provider,{value:l},i().createElement(ie.Provider,{value:c},e.children))}var de=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=se);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.toString=function(){return E(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=se),this.name+e.hash},e}(),pe=/([A-Z])/,fe=/([A-Z])/g,ge=/^ms-/,he=function(e){return"-"+e.toLowerCase()};function me(e){return pe.test(e)?e.replace(fe,he).replace(ge,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function ve(e,t,n,o){if(Array.isArray(e)){for(var r,i=[],a=0,s=e.length;a<s;a+=1)""!==(r=ve(e[a],t,n,o))&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));return i}return be(e)?"":y(e)?"."+e.styledComponentId:v(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:ve(e(t),t,n,o):e instanceof de?n?(e.inject(n,o),e.getName(o)):e:h(e)?function e(t,n){var o,r,i=[];for(var a in t)t.hasOwnProperty(a)&&!be(t[a])&&(Array.isArray(t[a])&&t[a].isCss||v(t[a])?i.push(me(a)+":",t[a],";"):h(t[a])?i.push.apply(i,e(t[a],a)):i.push(me(a)+": "+(o=a,(null==(r=t[a])||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||o in c||o.startsWith("--")?String(r).trim():r+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var l}var we=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ye(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return v(e)||h(e)?we(ve(g(m,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:we(ve(g(e,n)))}new Set;var Ce=function(e,t,n){return void 0===n&&(n=b),e.theme!==n.theme&&e.theme||t||n.theme},xe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Se=/(^-|-$)/g;function Oe(e){return e.replace(xe,"-").replace(Se,"")}var Re=function(e){return q(K(e)>>>0)};function Ee(e){return"string"==typeof e&&!0}var ke=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Pe=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ae(e,t,n){var o=e[n];ke(t)&&ke(o)?Ie(o,t):e[n]=t}function Ie(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(var r=0,i=n;r<i.length;r++){var a=i[r];if(ke(a))for(var s in a)Pe(s)&&Ae(e,a[s],s)}return e}var De=i().createContext(),Me=De.Consumer;function Fe(e){var t=(0,r.useContext)(De),n=(0,r.useMemo)((function(){return function(e,t){return e?v(e)?e(t):Array.isArray(e)||"object"!=typeof e?E(8):t?f({},t,{},e):e:E(14)}(e.theme,t)}),[e.theme,t]);return e.children?i().createElement(De.Provider,{value:n},e.children):null}var Te={};function Le(e,t,n){var o=y(e),a=!Ee(e),s=t.attrs,l=void 0===s?m:s,c=t.componentId,d=void 0===c?function(e,t){var n="string"!=typeof e?"sc":Oe(e);Te[n]=(Te[n]||0)+1;var o=n+"-"+Re("5.3.11"+n+Te[n]);return t?t+"-"+o:o}(t.displayName,t.parentComponentId):c,g=t.displayName,h=void 0===g?function(e){return Ee(e)?"styled."+e:"Styled("+w(e)+")"}(e):g,C=t.displayName&&t.componentId?Oe(t.displayName)+"-"+t.componentId:t.componentId||d,x=o&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,S=t.shouldForwardProp;o&&e.shouldForwardProp&&(S=t.shouldForwardProp?function(n,o,r){return e.shouldForwardProp(n,o,r)&&t.shouldForwardProp(n,o,r)}:e.shouldForwardProp);var O,R=new Q(n,C,o?e.componentStyle:void 0),E=R.isStatic&&0===l.length,k=function(e,t){return function(e,t,n,o){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,c=e.shouldForwardProp,d=e.styledComponentId,p=e.target,g=function(e,t,n){void 0===e&&(e=b);var o=f({},t,{theme:e}),r={};return n.forEach((function(e){var t,n,i,a=e;for(t in v(a)&&(a=a(o)),a)o[t]=r[t]="className"===t?(n=r[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[o,r]}(Ce(t,(0,r.useContext)(De),s)||b,t,i),h=g[0],m=g[1],w=function(e,t,n){var o=le(),r=ce();return t?e.generateAndInjectStyles(b,o,r):e.generateAndInjectStyles(n,o,r)}(a,o,h),y=n,C=m.$as||t.$as||m.as||t.as||p,x=Ee(C),S=m!==t?f({},t,{},m):t,O={};for(var R in S)"$"!==R[0]&&"as"!==R&&("forwardedAs"===R?O.as=S[R]:(c?c(R,u.A,C):!x||(0,u.A)(R))&&(O[R]=S[R]));return t.style&&m.style!==t.style&&(O.style=f({},t.style,{},m.style)),O.className=Array.prototype.concat(l,d,w!==d?w:null,t.className,m.className).filter(Boolean).join(" "),O.ref=y,(0,r.createElement)(C,O)}(O,e,t,E)};return k.displayName=h,(O=i().forwardRef(k)).attrs=x,O.componentStyle=R,O.displayName=h,O.shouldForwardProp=S,O.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):m,O.styledComponentId=C,O.target=o?e.target:e,O.withComponent=function(e){var o=t.componentId,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,["componentId"]),i=o&&o+"-"+(Ee(e)?e:Oe(w(e)));return Le(e,f({},r,{attrs:x,componentId:i}),n)},Object.defineProperty(O,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Ie({},e.defaultProps,t):t}}),Object.defineProperty(O,"toString",{value:function(){return"."+O.styledComponentId}}),a&&p()(O,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),O}var Ve=function(e){return function e(t,n,r){if(void 0===r&&(r=b),!(0,o.isValidElementType)(n))return E(1,String(n));var i=function(){return t(n,r,ye.apply(void 0,arguments))};return i.withConfig=function(o){return e(t,n,f({},r,{},o))},i.attrs=function(o){return e(t,n,f({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},i}(Le,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ve[e]=Ve(e)}));var He=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Z(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,o){var r=o(ve(this.rules,t,n,o).join(""),""),i=this.componentId+e;n.insertRules(i,i,r)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,o){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o)},e}();function $e(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var a=ye.apply(void 0,[e].concat(n)),s="sc-global-"+Re(JSON.stringify(a)),l=new He(a,s);function c(e){var t=le(),n=ce(),o=(0,r.useContext)(De),i=(0,r.useRef)(t.allocateGSInstance(s)).current;return t.server&&u(i,e,t,o,n),(0,r.useLayoutEffect)((function(){if(!t.server)return u(i,e,t,o,n),function(){return l.removeStyles(i,t)}}),[i,e,t,o,n]),null}function u(e,t,n,o,r){if(l.isStatic)l.renderStyles(e,R,n,r);else{var i=f({},t,{theme:Ce(t,o,c.defaultProps)});l.renderStyles(e,i,n,r)}}return i().memo(c)}function je(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=ye.apply(void 0,[e].concat(n)).join(""),i=Re(r);return new de(i,r)}var _e=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=$();return"<style "+[n&&'nonce="'+n+'"',C+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?E(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return E(2);var n=((t={})[C]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=$();return o&&(n.nonce=o),[i().createElement("style",f({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?E(2):i().createElement(ue,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return E(3)},e}(),Ne=function(e){var t=i().forwardRef((function(t,n){var o=(0,r.useContext)(De),a=e.defaultProps,s=Ce(t,o,a);return i().createElement(e,f({},t,{theme:s,ref:n}))}));return p()(t,e),t.displayName="WithTheme("+w(e)+")",t},ze=function(){return(0,r.useContext)(De)},Be={StyleSheet:W,masterSheet:ae};const Ye=Ve}}]); build/838.c841004b517cdf3abd86.js 0000777 00000051311 15252021227 0011417 0 ustar 00 (self.webpackChunkreally_simple_ssl=self.webpackChunkreally_simple_ssl||[]).push([[838],{2838:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:c,construct:s}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),s||(s=function(e,t){return new e(...t)});const u=b(Array.prototype.forEach),m=b(Array.prototype.pop),p=b(Array.prototype.push),f=b(String.prototype.toLowerCase),d=b(String.prototype.toString),h=b(String.prototype.match),g=b(String.prototype.replace),T=b(String.prototype.indexOf),y=b(String.prototype.trim),E=b(Object.prototype.hasOwnProperty),_=b(RegExp.prototype.test),A=(N=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s(N,t)});var N;function b(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return c(e,t,o)}}function S(e,o){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;t&&t(e,null);let i=o.length;for(;i--;){let t=o[i];if("string"==typeof t){const e=r(t);e!==t&&(n(o)||(o[i]=e),t=e)}e[t]=!0}return e}function R(e){for(let t=0;t<e.length;t++)E(e,t)||(e[t]=null);return e}function w(t){const n=l(null);for(const[o,r]of e(t))E(t,o)&&(Array.isArray(r)?n[o]=R(r):r&&"object"==typeof r&&r.constructor===Object?n[o]=w(r):n[o]=r);return n}function C(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return b(n.get);if("function"==typeof n.value)return b(n.value)}e=o(e)}return function(){return null}}const L=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),v=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),k=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),O=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),x=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),I=i(["#text"]),M=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),U=i(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=a(/<%[\w\W]*|[\w\W]*%>/gm),B=a(/\${[\w\W]*}/gm),W=a(/^data-[\-\w.\u00B7-\uFFFF]/),G=a(/^aria-[\-\w]+$/),Y=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),j=a(/^(?:\w+script|data):/i),X=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q=a(/^html$/i),$=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var K=Object.freeze({__proto__:null,MUSTACHE_EXPR:H,ERB_EXPR:z,TMPLIT_EXPR:B,DATA_ATTR:W,ARIA_ATTR:G,IS_ALLOWED_URI:Y,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:X,DOCTYPE_NAME:q,CUSTOM_ELEMENT:$});const V=1,Z=3,J=7,Q=8,ee=9,te=function(){return"undefined"==typeof window?null:window};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const o=e=>t(e);if(o.version="3.1.7",o.removed=[],!n||!n.document||n.document.nodeType!==ee)return o.isSupported=!1,o;let{document:r}=n;const a=r,c=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:N,Node:b,Element:R,NodeFilter:H,NamedNodeMap:z=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:B,DOMParser:W,trustedTypes:G}=n,j=R.prototype,X=C(j,"cloneNode"),$=C(j,"remove"),ne=C(j,"nextSibling"),oe=C(j,"childNodes"),re=C(j,"parentNode");if("function"==typeof N){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ie,ae="";const{implementation:le,createNodeIterator:ce,createDocumentFragment:se,getElementsByTagName:ue}=r,{importNode:me}=a;let pe={};o.isSupported="function"==typeof e&&"function"==typeof re&&le&&void 0!==le.createHTMLDocument;const{MUSTACHE_EXPR:fe,ERB_EXPR:de,TMPLIT_EXPR:he,DATA_ATTR:ge,ARIA_ATTR:Te,IS_SCRIPT_OR_DATA:ye,ATTR_WHITESPACE:Ee,CUSTOM_ELEMENT:_e}=K;let{IS_ALLOWED_URI:Ae}=K,Ne=null;const be=S({},[...L,...v,...D,...O,...I]);let Se=null;const Re=S({},[...M,...U,...P,...F]);let we=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,Le=null,ve=!0,De=!0,ke=!1,Oe=!0,xe=!1,Ie=!0,Me=!1,Ue=!1,Pe=!1,Fe=!1,He=!1,ze=!1,Be=!0,We=!1,Ge=!0,Ye=!1,je={},Xe=null;const qe=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let $e=null;const Ke=S({},["audio","video","img","source","image","track"]);let Ve=null;const Ze=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,nt=!1,ot=null;const rt=S({},[Je,Qe,et],d);let it=null;const at=["application/xhtml+xml","text/html"];let lt=null,ct=null;const st=r.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},mt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ct||ct!==e){if(e&&"object"==typeof e||(e={}),e=w(e),it=-1===at.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,lt="application/xhtml+xml"===it?d:f,Ne=E(e,"ALLOWED_TAGS")?S({},e.ALLOWED_TAGS,lt):be,Se=E(e,"ALLOWED_ATTR")?S({},e.ALLOWED_ATTR,lt):Re,ot=E(e,"ALLOWED_NAMESPACES")?S({},e.ALLOWED_NAMESPACES,d):rt,Ve=E(e,"ADD_URI_SAFE_ATTR")?S(w(Ze),e.ADD_URI_SAFE_ATTR,lt):Ze,$e=E(e,"ADD_DATA_URI_TAGS")?S(w(Ke),e.ADD_DATA_URI_TAGS,lt):Ke,Xe=E(e,"FORBID_CONTENTS")?S({},e.FORBID_CONTENTS,lt):qe,Ce=E(e,"FORBID_TAGS")?S({},e.FORBID_TAGS,lt):{},Le=E(e,"FORBID_ATTR")?S({},e.FORBID_ATTR,lt):{},je=!!E(e,"USE_PROFILES")&&e.USE_PROFILES,ve=!1!==e.ALLOW_ARIA_ATTR,De=!1!==e.ALLOW_DATA_ATTR,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,xe=e.SAFE_FOR_TEMPLATES||!1,Ie=!1!==e.SAFE_FOR_XML,Me=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,ze=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,We=e.SANITIZE_NAMED_PROPS||!1,Ge=!1!==e.KEEP_CONTENT,Ye=e.IN_PLACE||!1,Ae=e.ALLOWED_URI_REGEXP||Y,tt=e.NAMESPACE||et,we=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(we.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(we.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(we.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(De=!1),He&&(Fe=!0),je&&(Ne=S({},I),Se=[],!0===je.html&&(S(Ne,L),S(Se,M)),!0===je.svg&&(S(Ne,v),S(Se,U),S(Se,F)),!0===je.svgFilters&&(S(Ne,D),S(Se,U),S(Se,F)),!0===je.mathMl&&(S(Ne,O),S(Se,P),S(Se,F))),e.ADD_TAGS&&(Ne===be&&(Ne=w(Ne)),S(Ne,e.ADD_TAGS,lt)),e.ADD_ATTR&&(Se===Re&&(Se=w(Se)),S(Se,e.ADD_ATTR,lt)),e.ADD_URI_SAFE_ATTR&&S(Ve,e.ADD_URI_SAFE_ATTR,lt),e.FORBID_CONTENTS&&(Xe===qe&&(Xe=w(Xe)),S(Xe,e.FORBID_CONTENTS,lt)),Ge&&(Ne["#text"]=!0),Me&&S(Ne,["html","head","body"]),Ne.table&&(S(Ne,["tbody"]),delete Ce.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ie=e.TRUSTED_TYPES_POLICY,ae=ie.createHTML("")}else void 0===ie&&(ie=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(G,c)),null!==ie&&"string"==typeof ae&&(ae=ie.createHTML(""));i&&i(e),ct=e}},pt=S({},["mi","mo","mn","ms","mtext"]),ft=S({},["annotation-xml"]),dt=S({},["title","style","font","a","script"]),ht=S({},[...v,...D,...k]),gt=S({},[...O,...x]),Tt=function(e){p(o.removed,{element:e});try{re(e).removeChild(e)}catch(t){$(e)}},yt=function(e,t){try{p(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Se[e])if(Fe||He)try{Tt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Et=function(e){let t=null,n=null;if(Pe)e="<remove></remove>"+e;else{const t=h(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&tt===et&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ie?ie.createHTML(e):e;if(tt===et)try{t=(new W).parseFromString(o,it)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?ae:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),tt===et?ue.call(t,Me?"html":"body")[0]:Me?t.documentElement:i},_t=function(e){return ce.call(e.ownerDocument||e,e,H.SHOW_ELEMENT|H.SHOW_COMMENT|H.SHOW_TEXT|H.SHOW_PROCESSING_INSTRUCTION|H.SHOW_CDATA_SECTION,null)},At=function(e){return e instanceof B&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof z)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Nt=function(e){return"function"==typeof b&&e instanceof b},bt=function(e,t,n){pe[e]&&u(pe[e],(e=>{e.call(o,t,n,ct)}))},St=function(e){let t=null;if(bt("beforeSanitizeElements",e,null),At(e))return Tt(e),!0;const n=lt(e.nodeName);if(bt("uponSanitizeElement",e,{tagName:n,allowedTags:Ne}),e.hasChildNodes()&&!Nt(e.firstElementChild)&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return Tt(e),!0;if(e.nodeType===J)return Tt(e),!0;if(Ie&&e.nodeType===Q&&_(/<[/\w]/g,e.data))return Tt(e),!0;if(!Ne[n]||Ce[n]){if(!Ce[n]&&wt(n)){if(we.tagNameCheck instanceof RegExp&&_(we.tagNameCheck,n))return!1;if(we.tagNameCheck instanceof Function&&we.tagNameCheck(n))return!1}if(Ge&&!Xe[n]){const t=re(e)||e.parentNode,n=oe(e)||e.childNodes;if(n&&t)for(let o=n.length-1;o>=0;--o){const r=X(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,ne(e))}}return Tt(e),!0}return e instanceof R&&!function(e){let t=re(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const n=f(e.tagName),o=f(t.tagName);return!!ot[e.namespaceURI]&&(e.namespaceURI===Qe?t.namespaceURI===et?"svg"===n:t.namespaceURI===Je?"svg"===n&&("annotation-xml"===o||pt[o]):Boolean(ht[n]):e.namespaceURI===Je?t.namespaceURI===et?"math"===n:t.namespaceURI===Qe?"math"===n&&ft[o]:Boolean(gt[n]):e.namespaceURI===et?!(t.namespaceURI===Qe&&!ft[o])&&!(t.namespaceURI===Je&&!pt[o])&&!gt[n]&&(dt[n]||!ht[n]):!("application/xhtml+xml"!==it||!ot[e.namespaceURI]))}(e)?(Tt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!_(/<\/no(script|embed|frames)/i,e.innerHTML)?(xe&&e.nodeType===Z&&(t=e.textContent,u([fe,de,he],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(o.removed,{element:e.cloneNode()}),e.textContent=t)),bt("afterSanitizeElements",e,null),!1):(Tt(e),!0)},Rt=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in r||n in st))return!1;if(De&&!Le[t]&&_(ge,t));else if(ve&&_(Te,t));else if(!Se[t]||Le[t]){if(!(wt(e)&&(we.tagNameCheck instanceof RegExp&&_(we.tagNameCheck,e)||we.tagNameCheck instanceof Function&&we.tagNameCheck(e))&&(we.attributeNameCheck instanceof RegExp&&_(we.attributeNameCheck,t)||we.attributeNameCheck instanceof Function&&we.attributeNameCheck(t))||"is"===t&&we.allowCustomizedBuiltInElements&&(we.tagNameCheck instanceof RegExp&&_(we.tagNameCheck,n)||we.tagNameCheck instanceof Function&&we.tagNameCheck(n))))return!1}else if(Ve[t]);else if(_(Ae,g(n,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==T(n,"data:")||!$e[e])if(ke&&!_(ye,g(n,Ee,"")));else if(n)return!1;return!0},wt=function(e){return"annotation-xml"!==e&&h(e,_e)},Ct=function(e){bt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};let r=t.length;for(;r--;){const i=t[r],{name:a,namespaceURI:l,value:c}=i,s=lt(a);let p="value"===a?c:y(c);if(n.attrName=s,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,bt("uponSanitizeAttribute",e,n),p=n.attrValue,n.forceKeepAttr)continue;if(yt(a,e),!n.keepAttr)continue;if(!Oe&&_(/\/>/i,p)){yt(a,e);continue}xe&&u([fe,de,he],(e=>{p=g(p,e," ")}));const f=lt(e.nodeName);if(Rt(f,s,p))if(!We||"id"!==s&&"name"!==s||(yt(a,e),p="user-content-"+p),Ie&&_(/((--!?|])>)|<\/(style|title)/i,p))yt(a,e);else{if(ie&&"object"==typeof G&&"function"==typeof G.getAttributeType)if(l);else switch(G.getAttributeType(f,s)){case"TrustedHTML":p=ie.createHTML(p);break;case"TrustedScriptURL":p=ie.createScriptURL(p)}try{l?e.setAttributeNS(l,a,p):e.setAttribute(a,p),At(e)?Tt(e):m(o.removed)}catch(e){}}}bt("afterSanitizeAttributes",e,null)},Lt=function e(t){let n=null;const o=_t(t);for(bt("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)bt("uponSanitizeShadowNode",n,null),St(n)||(n.content instanceof s&&e(n.content),Ct(n));bt("afterSanitizeShadowDOM",t,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,i=null,l=null;if(nt=!e,nt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Nt(e)){if("function"!=typeof e.toString)throw A("toString is not a function");if("string"!=typeof(e=e.toString()))throw A("dirty is not a string, aborting")}if(!o.isSupported)return e;if(Ue||mt(t),o.removed=[],"string"==typeof e&&(Ye=!1),Ye){if(e.nodeName){const t=lt(e.nodeName);if(!Ne[t]||Ce[t])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof b)n=Et("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===V&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Fe&&!xe&&!Me&&-1===e.indexOf("<"))return ie&&ze?ie.createHTML(e):e;if(n=Et(e),!n)return Fe?null:ze?ae:""}n&&Pe&&Tt(n.firstChild);const c=_t(Ye?e:n);for(;i=c.nextNode();)St(i)||(i.content instanceof s&&Lt(i.content),Ct(i));if(Ye)return e;if(Fe){if(He)for(l=se.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(Se.shadowroot||Se.shadowrootmode)&&(l=me.call(a,l,!0)),l}let m=Me?n.outerHTML:n.innerHTML;return Me&&Ne["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&_(q,n.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+m),xe&&u([fe,de,he],(e=>{m=g(m,e," ")})),ie&&ze?ie.createHTML(m):m},o.setConfig=function(){mt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ue=!0},o.clearConfig=function(){ct=null,Ue=!1},o.isValidAttribute=function(e,t,n){ct||mt({});const o=lt(e),r=lt(t);return Rt(o,r,n)},o.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],p(pe[e],t))},o.removeHook=function(e){if(pe[e])return m(pe[e])},o.removeHooks=function(e){pe[e]&&(pe[e]=[])},o.removeAllHooks=function(){pe={}},o}()}()}}]); build/635.css 0000777 00000023067 15252021227 0006707 0 ustar 00 .rsssl input.MuiInput-underline:before,.rsssl-modal-body input.MuiInput-underline:before{display:none}.rsssl .MuiAutocomplete-root .MuiInputLabel-outlined[data-shrink=false],.rsssl-modal-body .MuiAutocomplete-root .MuiInputLabel-outlined[data-shrink=false]{transform:translate(14px,16px) scale(1)}.rsssl .MuiAutocomplete-root .MuiFormLabel-root,.rsssl-modal-body .MuiAutocomplete-root .MuiFormLabel-root{font-family:inherit}.rsssl .MuiAutocomplete-root .MuiOutlinedInput-root,.rsssl-modal-body .MuiAutocomplete-root .MuiOutlinedInput-root{padding:0}.rsssl input.MuiAutocomplete-input[type=text],.rsssl-modal-body input.MuiAutocomplete-input[type=text]{border:0;padding-left:12px}.rsssl input.MuiAutocomplete-input[type=text]:focus,.rsssl-modal-body input.MuiAutocomplete-input[type=text]:focus{box-shadow:none;outline:none}.rsssl .MuiInputBase-root,.rsssl-modal-body .MuiInputBase-root{font-family:inherit}.rsssl .MuiInput-root input.MuiInputBase-input,.rsssl-modal-body .MuiInput-root input.MuiInputBase-input{padding-left:10px}.rsssl .MuiPaper-root,.rsssl .MuiPopper-root,.rsssl-modal-body .MuiPaper-root,.rsssl-modal-body .MuiPopper-root{max-height:150px;z-index:999999}.rsssl .MuiPaper-root div,.rsssl .MuiPopper-root div,.rsssl-modal-body .MuiPaper-root div,.rsssl-modal-body .MuiPopper-root div{font-family:inherit!important}.rsssl .MuiPaper-root ul,.rsssl .MuiPopper-root ul,.rsssl-modal-body .MuiPaper-root ul,.rsssl-modal-body .MuiPopper-root ul{max-height:none} .rsssl-modal-premium-container{background-color:var(--rsp-dark-blue);color:#fff;margin-right:22px;padding:0 5px} .rsssl-le-activate_ssl .rsssl-modal-checkbox-container,.rsssl-modal-body .rsssl-modal-checkbox-container{cursor:pointer;display:block;font-size:12px;margin-bottom:5px;overflow:unset!important;padding-left:10px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rsssl-le-activate_ssl .rsssl-modal-checkbox-container:hover input~.rsssl-checkmark,.rsssl-modal-body .rsssl-modal-checkbox-container:hover input~.rsssl-checkmark{background-color:var(--rsp-grey-400);border:1px solid var(--rsp-grey-400);border-radius:3px}.rsssl-le-activate_ssl .rsssl-modal-checkbox-container input:checked~.rsssl-checkmark,.rsssl-modal-body .rsssl-modal-checkbox-container input:checked~.rsssl-checkmark{background-color:var(--rsp-dark-blue);border:1px solid var(--rsp-dark-blue)}.rsssl-le-activate_ssl .rsssl-modal-checkbox-container input:disabled~.rsssl-checkmark,.rsssl-modal-body .rsssl-modal-checkbox-container input:disabled~.rsssl-checkmark{background-color:var(--rsp-grey-400);border:1px solid var(--rsp-grey-400)}.rsssl-le-activate_ssl .rsssl-modal-checkbox-container input:checked~.rsssl-checkmark:after,.rsssl-modal-body .rsssl-modal-checkbox-container input:checked~.rsssl-checkmark:after{display:block}.rsssl-le-activate_ssl .rsssl-modal-checkbox-container .rsssl-checkmark:after,.rsssl-modal-body .rsssl-modal-checkbox-container .rsssl-checkmark:after{border:solid #fff;border-width:0 2px 2px 0;height:7px;left:6px;top:3px;transform:rotate(45deg);-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);width:5px}.rsssl-le-activate_ssl .rsssl-modal-checkbox-container input,.rsssl-modal-body .rsssl-modal-checkbox-container input{cursor:pointer;height:0;opacity:0;width:0}.rsssl-le-activate_ssl .rsssl-modal-checkbox-container .rsssl-checkmark,.rsssl-modal-body .rsssl-modal-checkbox-container .rsssl-checkmark{aspect-ratio:1;background-color:var(--rsp-grey-300);border:1px solid var(--rsp-grey-400);height:var(--rsp-fs-600);left:0;position:absolute;top:0}.rsssl-le-activate_ssl .rsssl-modal-checkbox-container .rsssl-checkmark:after,.rsssl-modal-body .rsssl-modal-checkbox-container .rsssl-checkmark:after{content:"";display:none;position:absolute} .rsssl-letsencrypt .rsssl-le-activate_ssl .rsssl-override-detection-toggle,.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body .rsssl-override-detection-toggle{margin-bottom:-15px}.rsssl-letsencrypt .rsssl-le-activate_ssl input[type=email],.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body input[type=email]{border:2px solid;border-color:var(--rsp-grey-300);height:50px;margin-bottom:var(--rsp-spacing-m);width:100%}.rsssl-letsencrypt .rsssl-le-activate_ssl .rsssl-select label,.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body .rsssl-select label{display:none}.rsssl-letsencrypt .rsssl-le-activate_ssl .rsssl-select .components-select-control__input,.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body .rsssl-select .components-select-control__input{color:var(--rsp-grey-500);height:45px;padding:8px 20px}.rsssl-letsencrypt .rsssl-le-activate_ssl .rsssl-activate_ssl ul,.rsssl-letsencrypt .rsssl-le-activate_ssl .rsssl-plugins ul,.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body .rsssl-activate_ssl ul,.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body .rsssl-plugins ul{-moz-column-count:1;column-count:1}.rsssl-letsencrypt .rsssl-le-activate_ssl ul li,.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body ul li{align-items:flex-start;display:flex;margin-bottom:var(--rsp-spacing-xxs)}.rsssl-letsencrypt .rsssl-le-activate_ssl ul li.rsssl-is-plugin,.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body ul li.rsssl-is-plugin{background-color:var(--rsp-grey-100);border:none;margin:10px 0;padding:5px 0;position:relative}.rsssl-letsencrypt .rsssl-le-activate_ssl ul li .rsssl-icon,.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body ul li .rsssl-icon{margin-right:7px} :root{--rsp-spacing-xxs:5px;--rsp-spacing-xs:10px;--rsp-spacing-s:15px;--rsp-spacing-m:20px;--rsp-spacing-l:25px;--rsp-spacing-xl:30px;--rsp-grid-margin:var(--rsp-spacing-s);--rsp-grid-gap:var(--rsp-spacing-m);--rsp-border-radius:12px;--rsp-border-radius-s:8px;--rsp-border-radius-xs:3px;--rsp-border:1px solid var(--rsp-border-color);--rsp-box-shadow:rgba(0,0,0,.1) 0px 4px 6px -1px,rgba(0,0,0,.06) 0px 2px 4px -1px;--rsp-box-shadow-dark:rgba(0,0,0,.2) 0px 4px 6px -1px,rgba(0,0,0,.12) 1px 0px 4px 1px;--rsp-border-color:#dfdfdf;--rsp-black:#333;--rsp-white:#fff;--rsp-yellow:#fbc43e;--rsp-blue:#009fff;--rsp-dark-yellow:#e6a800;--rsp-dark-blue:#1e73be;--rsp-green:#2e8a37;--rsp-red:#d7263d;--rsp-dark-red:#9b0212;--rsp-pink:#e35899;--rsp-wp-blue:#007cba;--rsp-yellow-faded:#fdf4df;--rsp-blue-faded:#ecf8fe;--rsp-dark-blue-faded:#ebf2f9;--rsp-green-faded:#ecf4ed;--rsp-red-faded:#fbebed;--rsp-pink-faded:#fceff5;--rsp-wp-blue-faded:#c6e0ef;--rsp-simplybook-blue:#06adef;--rsp-background-block-color:var(--rsp-white);--rsp-background-color:#f0f0f1;--rsp-input-background-color:#fff;--rsp-input-text-color:var(--rsp-text-color);--rsp-input-border-color:var(--rsp-grey-400);--rsp-text-color:rgba(26,26,26,.9);--rsp-text-color-invert:hsla(0,0%,100%,.9);--rsp-text-color-white:hsla(0,0%,100%,.9);--rsp-text-color-light:rgba(69,69,82,.9);--rsp-text-color-hover:var(--rsp-green);--rsp-grey-100:#fafafa;--rsp-grey-200:#f7f7f7;--rsp-grey-300:#ededed;--rsp-grey-400:#c6c6c6;--rsp-grey-500:#737373;--rsp-grey-600:#696969;--rsp-color-success:var(--rsp-green);--rsp-color-error:var(--rsp-red);--rsp-color-warning:var(--rsp-yellow);--rsp-color-open:var(--rsp-yellow);--rsp-color-disabled:var(--rsp-grey-300);--rsp-fs-100:0.6875rem;--rsp-fs-200:0.75rem;--rsp-fs-300:0.8125rem;--rsp-fs-400:0.875rem;--rsp-fs-500:1rem;--rsp-fs-600:1.125rem;--rsp-fs-700:1.25rem;--rsp-fs-800:1.5rem;--rsp-fs-850:2.8rem;--rsp-fs-900:3.5rem}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.rsssl-modal{border-radius:var(--rsp-border-radius) var(--rsp-border-radius);border-top:1px solid var(--rsp-grey-300);box-shadow:var(--rsp-box-shadow);margin:auto;max-height:calc(100% - 120px);max-width:700px;overflow:visible;padding:var(--rsp-spacing-m) var(--rsp-spacing-l);width:700px}@media(max-width:768px){.rsssl-modal{width:100%}}.rsssl-modal .components-modal__content{margin-top:45px;min-height:250px;padding:0}.rsssl-modal .components-modal__content>div:nth-child(2){display:flex;flex-direction:column;height:100%}.rsssl-modal .rsssl-modal-body{flex-grow:1;padding:12px 8px 80px}@media(max-width:768px){.rsssl-modal .rsssl-modal-body{padding:12px 8px 180px}}.rsssl-modal .rsssl-modal-body p{margin-top:0}.rsssl-modal .rsssl-modal-body ul{-moz-column-count:2;column-count:2;-moz-column-gap:20px;column-gap:20px;margin-bottom:0}.rsssl-modal .rsssl-modal-body ul li{display:flex;padding-bottom:5px}.rsssl-modal .rsssl-modal-body ul li .rsssl-icon{margin-right:10px;margin-top:2px}.rsssl-modal .rsssl-modal-footer{align-items:center;background-color:var(--rsp-grey-200);border-bottom-left-radius:var(--rsp-border-radius) var(--rsp-border-radius);border-bottom-right-radius:var(--rsp-border-radius) var(--rsp-border-radius);border-top:1px solid var(--rsp-grey-400);bottom:0;display:flex;justify-content:space-between;left:0;padding:20px 32px;position:absolute;right:0}.rsssl-modal .rsssl-modal-footer .rsssl-modal-footer-buttons{display:flex}.rsssl-modal .rsssl-modal-footer .rsssl-modal-footer-buttons .rsssl-activate-license-text{color:var(--rsp-red);margin-right:10px}.rsssl-modal .rsssl-modal-footer img{width:150px}@media(max-width:768px){.rsssl-modal .rsssl-modal-footer .rsssl-modal-footer-image{display:none}.rsssl-modal .rsssl-modal-footer .rsssl-modal-footer-buttons{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.rsssl-modal .rsssl-modal-footer .rsssl-modal-footer-buttons button{margin:0;width:100%}}.rsssl-modal .rsssl-modal-footer button+a,.rsssl-modal .rsssl-modal-footer button+button{margin-left:10px}.rsssl-modal .rsssl-modal-footer button:not(.is-primary){background-color:transparent;border:1px solid var(--wp-admin-theme-color,#3858e9);color:var(--wp-admin-theme-color,#3858e9)}.rsssl-modal .rsssl-modal-footer button.rsssl-modal-warning{background-color:transparent;border:1px solid var(--rsp-red);color:var(--rsp-red)} build/635-rtl.css 0000777 00000023075 15252021227 0007505 0 ustar 00 .rsssl input.MuiInput-underline:before,.rsssl-modal-body input.MuiInput-underline:before{display:none}.rsssl .MuiAutocomplete-root .MuiInputLabel-outlined[data-shrink=false],.rsssl-modal-body .MuiAutocomplete-root .MuiInputLabel-outlined[data-shrink=false]{transform:translate(-14px,16px) scale(1)}.rsssl .MuiAutocomplete-root .MuiFormLabel-root,.rsssl-modal-body .MuiAutocomplete-root .MuiFormLabel-root{font-family:inherit}.rsssl .MuiAutocomplete-root .MuiOutlinedInput-root,.rsssl-modal-body .MuiAutocomplete-root .MuiOutlinedInput-root{padding:0}.rsssl input.MuiAutocomplete-input[type=text],.rsssl-modal-body input.MuiAutocomplete-input[type=text]{border:0;padding-right:12px}.rsssl input.MuiAutocomplete-input[type=text]:focus,.rsssl-modal-body input.MuiAutocomplete-input[type=text]:focus{box-shadow:none;outline:none}.rsssl .MuiInputBase-root,.rsssl-modal-body .MuiInputBase-root{font-family:inherit}.rsssl .MuiInput-root input.MuiInputBase-input,.rsssl-modal-body .MuiInput-root input.MuiInputBase-input{padding-right:10px}.rsssl .MuiPaper-root,.rsssl .MuiPopper-root,.rsssl-modal-body .MuiPaper-root,.rsssl-modal-body .MuiPopper-root{max-height:150px;z-index:999999}.rsssl .MuiPaper-root div,.rsssl .MuiPopper-root div,.rsssl-modal-body .MuiPaper-root div,.rsssl-modal-body .MuiPopper-root div{font-family:inherit!important}.rsssl .MuiPaper-root ul,.rsssl .MuiPopper-root ul,.rsssl-modal-body .MuiPaper-root ul,.rsssl-modal-body .MuiPopper-root ul{max-height:none} .rsssl-modal-premium-container{background-color:var(--rsp-dark-blue);color:#fff;margin-left:22px;padding:0 5px} .rsssl-le-activate_ssl .rsssl-modal-checkbox-container,.rsssl-modal-body .rsssl-modal-checkbox-container{cursor:pointer;display:block;font-size:12px;margin-bottom:5px;overflow:unset!important;padding-right:10px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rsssl-le-activate_ssl .rsssl-modal-checkbox-container:hover input~.rsssl-checkmark,.rsssl-modal-body .rsssl-modal-checkbox-container:hover input~.rsssl-checkmark{background-color:var(--rsp-grey-400);border:1px solid var(--rsp-grey-400);border-radius:3px}.rsssl-le-activate_ssl .rsssl-modal-checkbox-container input:checked~.rsssl-checkmark,.rsssl-modal-body .rsssl-modal-checkbox-container input:checked~.rsssl-checkmark{background-color:var(--rsp-dark-blue);border:1px solid var(--rsp-dark-blue)}.rsssl-le-activate_ssl .rsssl-modal-checkbox-container input:disabled~.rsssl-checkmark,.rsssl-modal-body .rsssl-modal-checkbox-container input:disabled~.rsssl-checkmark{background-color:var(--rsp-grey-400);border:1px solid var(--rsp-grey-400)}.rsssl-le-activate_ssl .rsssl-modal-checkbox-container input:checked~.rsssl-checkmark:after,.rsssl-modal-body .rsssl-modal-checkbox-container input:checked~.rsssl-checkmark:after{display:block}.rsssl-le-activate_ssl .rsssl-modal-checkbox-container .rsssl-checkmark:after,.rsssl-modal-body .rsssl-modal-checkbox-container .rsssl-checkmark:after{border:solid #fff;border-width:0 0 2px 2px;height:7px;right:6px;top:3px;transform:rotate(-45deg);-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);width:5px}.rsssl-le-activate_ssl .rsssl-modal-checkbox-container input,.rsssl-modal-body .rsssl-modal-checkbox-container input{cursor:pointer;height:0;opacity:0;width:0}.rsssl-le-activate_ssl .rsssl-modal-checkbox-container .rsssl-checkmark,.rsssl-modal-body .rsssl-modal-checkbox-container .rsssl-checkmark{aspect-ratio:1;background-color:var(--rsp-grey-300);border:1px solid var(--rsp-grey-400);height:var(--rsp-fs-600);right:0;position:absolute;top:0}.rsssl-le-activate_ssl .rsssl-modal-checkbox-container .rsssl-checkmark:after,.rsssl-modal-body .rsssl-modal-checkbox-container .rsssl-checkmark:after{content:"";display:none;position:absolute} .rsssl-letsencrypt .rsssl-le-activate_ssl .rsssl-override-detection-toggle,.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body .rsssl-override-detection-toggle{margin-bottom:-15px}.rsssl-letsencrypt .rsssl-le-activate_ssl input[type=email],.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body input[type=email]{border:2px solid;border-color:var(--rsp-grey-300);height:50px;margin-bottom:var(--rsp-spacing-m);width:100%}.rsssl-letsencrypt .rsssl-le-activate_ssl .rsssl-select label,.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body .rsssl-select label{display:none}.rsssl-letsencrypt .rsssl-le-activate_ssl .rsssl-select .components-select-control__input,.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body .rsssl-select .components-select-control__input{color:var(--rsp-grey-500);height:45px;padding:8px 20px}.rsssl-letsencrypt .rsssl-le-activate_ssl .rsssl-activate_ssl ul,.rsssl-letsencrypt .rsssl-le-activate_ssl .rsssl-plugins ul,.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body .rsssl-activate_ssl ul,.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body .rsssl-plugins ul{-moz-column-count:1;column-count:1}.rsssl-letsencrypt .rsssl-le-activate_ssl ul li,.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body ul li{align-items:flex-start;display:flex;margin-bottom:var(--rsp-spacing-xxs)}.rsssl-letsencrypt .rsssl-le-activate_ssl ul li.rsssl-is-plugin,.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body ul li.rsssl-is-plugin{background-color:var(--rsp-grey-100);border:none;margin:10px 0;padding:5px 0;position:relative}.rsssl-letsencrypt .rsssl-le-activate_ssl ul li .rsssl-icon,.rsssl-modal.rsssl-onboarding-modal .rsssl-modal-body ul li .rsssl-icon{margin-left:7px} :root{--rsp-spacing-xxs:5px;--rsp-spacing-xs:10px;--rsp-spacing-s:15px;--rsp-spacing-m:20px;--rsp-spacing-l:25px;--rsp-spacing-xl:30px;--rsp-grid-margin:var(--rsp-spacing-s);--rsp-grid-gap:var(--rsp-spacing-m);--rsp-border-radius:12px;--rsp-border-radius-s:8px;--rsp-border-radius-xs:3px;--rsp-border:1px solid var(--rsp-border-color);--rsp-box-shadow:rgba(0,0,0,.1) 0px 4px 6px -1px,rgba(0,0,0,.06) 0px 2px 4px -1px;--rsp-box-shadow-dark:rgba(0,0,0,.2) 0px 4px 6px -1px,rgba(0,0,0,.12) 1px 0px 4px 1px;--rsp-border-color:#dfdfdf;--rsp-black:#333;--rsp-white:#fff;--rsp-yellow:#fbc43e;--rsp-blue:#009fff;--rsp-dark-yellow:#e6a800;--rsp-dark-blue:#1e73be;--rsp-green:#2e8a37;--rsp-red:#d7263d;--rsp-dark-red:#9b0212;--rsp-pink:#e35899;--rsp-wp-blue:#007cba;--rsp-yellow-faded:#fdf4df;--rsp-blue-faded:#ecf8fe;--rsp-dark-blue-faded:#ebf2f9;--rsp-green-faded:#ecf4ed;--rsp-red-faded:#fbebed;--rsp-pink-faded:#fceff5;--rsp-wp-blue-faded:#c6e0ef;--rsp-simplybook-blue:#06adef;--rsp-background-block-color:var(--rsp-white);--rsp-background-color:#f0f0f1;--rsp-input-background-color:#fff;--rsp-input-text-color:var(--rsp-text-color);--rsp-input-border-color:var(--rsp-grey-400);--rsp-text-color:rgba(26,26,26,.9);--rsp-text-color-invert:hsla(0,0%,100%,.9);--rsp-text-color-white:hsla(0,0%,100%,.9);--rsp-text-color-light:rgba(69,69,82,.9);--rsp-text-color-hover:var(--rsp-green);--rsp-grey-100:#fafafa;--rsp-grey-200:#f7f7f7;--rsp-grey-300:#ededed;--rsp-grey-400:#c6c6c6;--rsp-grey-500:#737373;--rsp-grey-600:#696969;--rsp-color-success:var(--rsp-green);--rsp-color-error:var(--rsp-red);--rsp-color-warning:var(--rsp-yellow);--rsp-color-open:var(--rsp-yellow);--rsp-color-disabled:var(--rsp-grey-300);--rsp-fs-100:0.6875rem;--rsp-fs-200:0.75rem;--rsp-fs-300:0.8125rem;--rsp-fs-400:0.875rem;--rsp-fs-500:1rem;--rsp-fs-600:1.125rem;--rsp-fs-700:1.25rem;--rsp-fs-800:1.5rem;--rsp-fs-850:2.8rem;--rsp-fs-900:3.5rem}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.rsssl-modal{border-radius:var(--rsp-border-radius) var(--rsp-border-radius);border-top:1px solid var(--rsp-grey-300);box-shadow:var(--rsp-box-shadow);margin:auto;max-height:calc(100% - 120px);max-width:700px;overflow:visible;padding:var(--rsp-spacing-m) var(--rsp-spacing-l);width:700px}@media(max-width:768px){.rsssl-modal{width:100%}}.rsssl-modal .components-modal__content{margin-top:45px;min-height:250px;padding:0}.rsssl-modal .components-modal__content>div:nth-child(2){display:flex;flex-direction:column;height:100%}.rsssl-modal .rsssl-modal-body{flex-grow:1;padding:12px 8px 80px}@media(max-width:768px){.rsssl-modal .rsssl-modal-body{padding:12px 8px 180px}}.rsssl-modal .rsssl-modal-body p{margin-top:0}.rsssl-modal .rsssl-modal-body ul{-moz-column-count:2;column-count:2;-moz-column-gap:20px;column-gap:20px;margin-bottom:0}.rsssl-modal .rsssl-modal-body ul li{display:flex;padding-bottom:5px}.rsssl-modal .rsssl-modal-body ul li .rsssl-icon{margin-left:10px;margin-top:2px}.rsssl-modal .rsssl-modal-footer{align-items:center;background-color:var(--rsp-grey-200);border-bottom-right-radius:var(--rsp-border-radius) var(--rsp-border-radius);border-bottom-left-radius:var(--rsp-border-radius) var(--rsp-border-radius);border-top:1px solid var(--rsp-grey-400);bottom:0;display:flex;justify-content:space-between;right:0;padding:20px 32px;position:absolute;left:0}.rsssl-modal .rsssl-modal-footer .rsssl-modal-footer-buttons{display:flex}.rsssl-modal .rsssl-modal-footer .rsssl-modal-footer-buttons .rsssl-activate-license-text{color:var(--rsp-red);margin-left:10px}.rsssl-modal .rsssl-modal-footer img{width:150px}@media(max-width:768px){.rsssl-modal .rsssl-modal-footer .rsssl-modal-footer-image{display:none}.rsssl-modal .rsssl-modal-footer .rsssl-modal-footer-buttons{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.rsssl-modal .rsssl-modal-footer .rsssl-modal-footer-buttons button{margin:0;width:100%}}.rsssl-modal .rsssl-modal-footer button+a,.rsssl-modal .rsssl-modal-footer button+button{margin-right:10px}.rsssl-modal .rsssl-modal-footer button:not(.is-primary){background-color:transparent;border:1px solid var(--wp-admin-theme-color,#3858e9);color:var(--wp-admin-theme-color,#3858e9)}.rsssl-modal .rsssl-modal-footer button.rsssl-modal-warning{background-color:transparent;border:1px solid var(--rsp-red);color:var(--rsp-red)} build/91.b0f863c7b47144cb4cdf.js 0000777 00000076072 15252021227 0011430 0 ustar 00 "use strict";(self.webpackChunkreally_simple_ssl=self.webpackChunkreally_simple_ssl||[]).push([[91],{9091:(s,e,l)=>{l.r(e),l.d(e,{default:()=>d});var c=l(7723),i=l(1674),a=l(9306),r=l(5131),h=l(6087),t=l(790);const d=s=>{const{handleModal:e,modalData:l,setModalData:d,showModal:o,setIgnoredItemId:n,setFixedItemId:g,item:w}=(0,r.A)(),[x,C]=(0,h.useState)(!1),v=()=>{e(!1,null,null)},f=(s,c)=>{let a=l.action;C(!0),i.YA(a,"refresh",l).then((s=>{let i={...l};i.description=s.msg,i.subtitle="",d(i),C(!1),s.success&&("ignore"===c&&!1!==w?n(w.id):g(w.id),e(!1,null))}))};if(!o)return(0,t.jsx)(t.Fragment,{});let m=x?"disabled":"",p=l.description;return Array.isArray(p)||(p=[p]),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"rsssl-modal-backdrop",onClick:s=>v(),children:" "}),(0,t.jsxs)("div",{className:"rsssl-modal",id:"{id}",children:[(0,t.jsxs)("div",{className:"rsssl-modal-header",children:[(0,t.jsx)("h2",{className:"modal-title",children:l.title}),(0,t.jsx)("button",{type:"button",className:"rsssl-modal-close","data-dismiss":"modal","aria-label":"Close",onClick:s=>v(),children:(0,t.jsx)(a.default,{name:"times"})})]}),(0,t.jsxs)("div",{className:"rsssl-modal-content",children:[l.subtitle&&(0,t.jsx)("div",{className:"rsssl-modal-subtitle",children:l.subtitle}),Array.isArray(p)&&p.map(((s,e)=>(0,t.jsx)("div",{className:"rsssl-modal-description",children:s},"modalDescription-"+e)))]}),(0,t.jsxs)("div",{className:"rsssl-modal-footer",children:[l.edit&&(0,t.jsx)("a",{href:l.edit,target:"_blank",rel:"noopener noreferrer",className:"button button-secondary",children:(0,c.__)("Edit","really-simple-ssl")}),l.help&&(0,t.jsx)("a",{href:l.help,target:"_blank",rel:"noopener noreferrer",className:"button rsssl-button-help",children:(0,c.__)("Help","really-simple-ssl")}),!l.ignored&&"ignore_url"===l.action&&(0,t.jsx)("button",{disabled:m,className:"button button-primary",onClick:s=>f(0,"ignore"),children:(0,c.__)("Ignore","really-simple-ssl")}),"ignore_url"!==l.action&&(0,t.jsx)("button",{disabled:m,className:"button button-primary",onClick:s=>f(0,"fix"),children:(0,c.__)("Fix","really-simple-ssl")})]})]})]})}},9306:(s,e,l)=>{l.r(e),l.d(e,{default:()=>r});var c=l(7008),i=l(790);const a=React.forwardRef((function(s,e){const{name:l,color:c,size:a}=s,r=l||"bullet",h=c||"black",t=a||15,d={black:"var(--rsp-black)",green:"var(--rsp-green)",yellow:"var(--rsp-yellow)",orange:"var(--rsp-yellow)","red-faded":"var(--rsp-red-faded)",red:"var(--rsp-red)",grey:"var(--rsp-grey-400)","red-warning":"var(--rsp-red-faded)"};let o="";return"bullet"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"})})),"circle"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"})})),"check"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"})})),"warning"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"})})),"error"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"})})),"times"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"})})),"circle-check"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z"})})),"circle-times"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z"})})),"chevron-up"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M416 352c-8.188 0-16.38-3.125-22.62-9.375L224 173.3l-169.4 169.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25C432.4 348.9 424.2 352 416 352z"})})),"chevron-down"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"})})),"chevron-right"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"})})),"chevron-left"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"})})),"plus"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"})})),"minus"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M400 288h-352c-17.69 0-32-14.32-32-32.01s14.31-31.99 32-31.99h352c17.69 0 32 14.3 32 31.99S417.7 288 400 288z"})})),"sync"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M483.515 28.485L431.35 80.65C386.475 35.767 324.485 8 256 8 123.228 8 14.824 112.338 8.31 243.493 7.971 250.311 13.475 256 20.301 256h28.045c6.353 0 11.613-4.952 11.973-11.294C66.161 141.649 151.453 60 256 60c54.163 0 103.157 21.923 138.614 57.386l-54.128 54.129c-7.56 7.56-2.206 20.485 8.485 20.485H492c6.627 0 12-5.373 12-12V36.971c0-10.691-12.926-16.045-20.485-8.486zM491.699 256h-28.045c-6.353 0-11.613 4.952-11.973 11.294C445.839 370.351 360.547 452 256 452c-54.163 0-103.157-21.923-138.614-57.386l54.128-54.129c7.56-7.56 2.206-20.485-8.485-20.485H20c-6.627 0-12 5.373-12 12v143.029c0 10.691 12.926 16.045 20.485 8.485L80.65 431.35C125.525 476.233 187.516 504 256 504c132.773 0 241.176-104.338 247.69-235.493.339-6.818-5.165-12.507-11.991-12.507z"})})),"sync-error"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M256 79.1C178.5 79.1 112.7 130.1 89.2 199.7C84.96 212.2 71.34 218.1 58.79 214.7C46.23 210.5 39.48 196.9 43.72 184.3C73.6 95.8 157.3 32 256 32C337.5 32 408.8 75.53 448 140.6V104C448 90.75 458.7 80 472 80C485.3 80 496 90.75 496 104V200C496 213.3 485.3 224 472 224H376C362.7 224 352 213.3 352 200C352 186.7 362.7 176 376 176H412.8C383.7 118.1 324.4 80 256 80V79.1zM280 263.1C280 277.3 269.3 287.1 256 287.1C242.7 287.1 232 277.3 232 263.1V151.1C232 138.7 242.7 127.1 256 127.1C269.3 127.1 280 138.7 280 151.1V263.1zM224 352C224 334.3 238.3 319.1 256 319.1C273.7 319.1 288 334.3 288 352C288 369.7 273.7 384 256 384C238.3 384 224 369.7 224 352zM40 432C26.75 432 16 421.3 16 408V311.1C16 298.7 26.75 287.1 40 287.1H136C149.3 287.1 160 298.7 160 311.1C160 325.3 149.3 336 136 336H99.19C128.3 393 187.6 432 256 432C333.5 432 399.3 381.9 422.8 312.3C427 299.8 440.7 293 453.2 297.3C465.8 301.5 472.5 315.1 468.3 327.7C438.4 416.2 354.7 480 256 480C174.5 480 103.2 436.5 64 371.4V408C64 421.3 53.25 432 40 432V432z"})})),"shortcode"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M128 32H32C14.4 32 0 46.4 0 64v384c0 17.6 14.4 32 32 32h96C145.7 480 160 465.7 160 448S145.7 416 128 416H64V96h64C145.7 96 160 81.67 160 64S145.7 32 128 32zM416 32h-96C302.3 32 288 46.33 288 63.1S302.3 96 319.1 96H384v320h-64C302.3 416 288 430.3 288 447.1S302.3 480 319.1 480H416c17.6 0 32-14.4 32-32V64C448 46.4 433.6 32 416 32z"})})),"file"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M0 64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V64zM336 448V160H256C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V448C48 456.8 55.16 464 64 464H320C328.8 464 336 456.8 336 448z"})})),"file-disabled"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M639.1 487.1c0-7.119-3.153-14.16-9.191-18.89l-118.8-93.12l.0013-237.3c0-16.97-6.742-33.26-18.74-45.26l-74.63-74.64C406.6 6.742 390.3 0 373.4 0H192C156.7 0 128 28.65 128 64L128 75.01L38.82 5.11C34.41 1.672 29.19 0 24.04 0C10.19 0-.0002 11.3-.0002 23.1c0 7.12 3.153 14.16 9.192 18.89l591.1 463.1C605.6 510.3 610.8 512 615.1 512C629.8 512 639.1 500.6 639.1 487.1zM464 338.4l-287.1-225.7l-.002-48.51c0-8.836 7.164-16 15.1-16h160l-.0065 79.87c0 17.67 14.33 31.1 31.1 31.1L464 159.1V338.4zM448 463.1H192c-8.834 0-15.1-7.164-15.1-16L176 234.6L128 197L128 447.1c0 35.34 28.65 64 63.1 64H448c20.4 0 38.45-9.851 50.19-24.84l-37.72-29.56C457.5 461.4 453.2 463.1 448 463.1z"})})),"loading"===r&&(o=(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[c],d:"M304 48c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zm0 416c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM48 304c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48zm464-48c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM142.9 437c18.7-18.7 18.7-49.1 0-67.9s-49.1-18.7-67.9 0s-18.7 49.1 0 67.9s49.1 18.7 67.9 0zm0-294.2c18.7-18.7 18.7-49.1 0-67.9S93.7 56.2 75 75s-18.7 49.1 0 67.9s49.1 18.7 67.9 0zM369.1 437c18.7 18.7 49.1 18.7 67.9 0s18.7-49.1 0-67.9s-49.1-18.7-67.9 0s-18.7 49.1 0 67.9z"})})),"file-download"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M216 342.1V240c0-13.25-10.75-24-24-24S168 226.8 168 240v102.1L128.1 303C124.3 298.3 118.2 296 112 296S99.72 298.3 95.03 303c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0L216 342.1zM365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6C384 121.7 377.3 105.4 365.3 93.38zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1V448z"})})),"calendar"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192H48V448z"})})),"calendar-error"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M151.1 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V192H47.1V448C47.1 456.8 55.16 464 63.1 464H284.5C296.7 482.8 312.5 499.1 330.8 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24L151.1 64zM576 368C576 447.5 511.5 512 432 512C352.5 512 287.1 447.5 287.1 368C287.1 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368zM432 416C418.7 416 408 426.7 408 440C408 453.3 418.7 464 432 464C445.3 464 456 453.3 456 440C456 426.7 445.3 416 432 416zM447.1 288C447.1 279.2 440.8 272 431.1 272C423.2 272 415.1 279.2 415.1 288V368C415.1 376.8 423.2 384 431.1 384C440.8 384 447.1 376.8 447.1 368V288z"})})),"help"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 400c-18 0-32-14-32-32s13.1-32 32-32c17.1 0 32 14 32 32S273.1 400 256 400zM325.1 258L280 286V288c0 13-11 24-24 24S232 301 232 288V272c0-8 4-16 12-21l57-34C308 213 312 206 312 198C312 186 301.1 176 289.1 176h-51.1C225.1 176 216 186 216 198c0 13-11 24-24 24s-24-11-24-24C168 159 199 128 237.1 128h51.1C329 128 360 159 360 198C360 222 347 245 325.1 258z"})})),"copy"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"})})),"info"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"})})),"info-open"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464zM256 304c13.25 0 24-10.75 24-24v-128C280 138.8 269.3 128 256 128S232 138.8 232 152v128C232 293.3 242.8 304 256 304zM256 337.1c-17.36 0-31.44 14.08-31.44 31.44C224.6 385.9 238.6 400 256 400s31.44-14.08 31.44-31.44C287.4 351.2 273.4 337.1 256 337.1z"})})),"list"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M184.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM256 96c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zM192 416c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32zM80 464c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48z"})})),"empty"===r&&(o=(0,i.jsx)("svg",{height:t,width:t,"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67"})),"external-link"===r&&(o=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:(0,i.jsx)("path",{fill:d[h],d:"M384 32c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96C0 60.7 28.7 32 64 32H384zM160 144c-13.3 0-24 10.7-24 24s10.7 24 24 24h94.1L119 327c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l135-135V328c0 13.3 10.7 24 24 24s24-10.7 24-24V168c0-13.3-10.7-24-24-24H160z"})})),"shield"===r&&(o=(0,i.jsxs)("svg",{height:t,"aria-hidden":"true",focusable:"false",role:"img",id:"uuid-026a4e87-44db-4336-a398-3c29d25b7317",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67",children:[(0,i.jsx)("path",{fill:"#f9c23e",d:"M280.8,62.4L140.5,0,0,62.2V213.3c0,10.7,1.6,21.3,4.9,31.5,9.5,29.9,28.2,52.8,54.4,69.5,26,16.6,52.4,32.4,78.6,48.6,2,1.2,3.4,.9,5.1-.2,19.9-12.3,39.8-24.5,59.6-36.8,12.6-7.8,25.5-15.1,36.5-25.1,26.4-24.2,41.4-53.6,41.5-89.9V62.4h.2Z"}),(0,i.jsxs)("g",{children:[(0,i.jsxs)("g",{children:[(0,i.jsx)("rect",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",x:"155",y:"266.8",width:"77.6",height:"6"}),(0,i.jsx)("path",{fill:"#1d2327",d:"M224.4,204.5h-1.8v-10.1c0-15.9-12.9-28.8-28.8-28.8s-28.8,12.9-28.8,28.8v10.1h-1.8c-4.6,0-8.3,3.7-8.3,8.3v51.3h77.6v-51.3c0-4.6-3.7-8.3-8.3-8.3h.2Zm-45.3-10.1c0-8.1,6.6-14.7,14.7-14.7s14.7,6.6,14.7,14.7v10.1h-29.5v-10.1h.1Zm36.6,32.9l-20.7,20.2c-.2,.2-.3,.4-.5,.6l-2,2c-.2,.2-.4,.4-.6,.5l-3.8,3.8-4.5-4.3-2-2c-.2-.2-.4-.4-.5-.6l-9.1-9.1c-2.4-2.4-2.4-6.4,0-8.8l2-2c2.4-2.4,6.4-2.4,8.8,0l5.3,5.3,16.9-16.4c2.4-2.4,6.4-2.4,8.8,0l2,2c2.4,2.4,2.4,6.4,0,8.8h-.1Z"})]}),(0,i.jsxs)("g",{children:[(0,i.jsx)("path",{fill:"#1d2327",d:"M125.2,192.3c-.5-2.9-.5-5.8-1-8.6-.5-2.4-2.6-4-4.8-3.9-2.3,0-4.2,1.9-4.7,4.3-.2,1,0,1.9,0,2.9,.8,14.6,7.2,26.3,18.2,35.7,2.2,1.9,4.5,3.5,6.9,4.8v-11.8c-7.4-5.8-12.9-14.1-14.6-23.3v-.1Z"}),(0,i.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M96.4,236.1c-13-15-20-32.3-19.5-52.3,.3-13.1,6.1-23.6,16.6-31.2,11.5-8.5,24.5-10.9,38.3-7.1,12.7,3.5,22,10.7,27.4,22,2.1-2.7,4.5-5.2,7.2-7.4-4-7-9.7-12.9-17-17.4-17-10.4-34.9-11.7-52.9-3.1-19,9.1-28.7,24.7-29.3,45.8,0,5.2,.5,10.2,1.4,15.2,3.4,19.4,13.4,35.2,27.2,48.9,1.1,1.1,2.5,1.6,4.1,1.4,1.8-.2,3.2-1.3,3.8-3,.6-1.8,.4-3.6-1-5.1-2.1-2.2-4.2-4.4-6.2-6.7h-.1Z"}),(0,i.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M68.1,89.4c1.1-.4,2.1-1,3.1-1.5,17.9-9.1,36.8-12.7,56.8-11.3,12.2,.8,23.9,3.8,35.1,8.7,3,1.3,5.9,2.8,8.9,4.1,2.7,1.1,5.3,0,6.4-2.4,1.1-2.3,0-5-2.3-6.3-11-5.7-22.4-10-34.6-12.3-4.2-.8-8.5-1.1-12.8-1.7h-17.1c-.3,0-.6,.2-.9,.2-11.2,.8-22,3.2-32.5,7.2-4.9,1.9-9.7,4.1-14.3,6.6-2.5,1.3-3.4,4.2-2.2,6.5,1.1,2.2,4,3.2,6.4,2.1v.1Z"}),(0,i.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M61.1,153.5c13.6-21.6,33.6-31.5,58.7-32.1h6c.8,0,1.6,.2,2.3,.3,13.4,1.7,25.5,6.6,35.9,15.4,5.8,4.9,10.5,10.3,14.1,16.2,3.1-1.2,6.4-2,9.8-2.5-4.7-8.7-11.3-16.3-19.6-22.7-19-14.6-40.5-19.5-64.1-15.1-14.3,2.7-26.9,9-37.7,18.8-10.4,9.5-17.8,20.9-21.2,34.6-2.8,11.3-2.6,22.7-.9,34.1,1.1,7,2.9,13.9,5.4,20.5,.9,2.3,3,3.7,5.2,3.5,2.1-.2,3.9-2,4.3-4.3,.2-1.1-.2-2.2-.6-3.2-4.3-11.9-6.3-24.1-5.6-36.7,.5-9.6,2.8-18.7,8-26.8h0Z"}),(0,i.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M139.8,240.6c-20.9-8.4-34.1-23.7-38.4-46.7-.8-4.3-1.4-8.7-.4-13,1.8-7.1,6.4-11.4,13.4-13.5,11.8-3.4,24.7,5.3,24.5,17.6,0,4.8,1.4,9.3,4,13.4,.3,.5,.6,.9,.9,1.3,1.6-2.4,3.7-4.6,6.1-6.2,0-.9,0-1.9,.2-2.8-.7-1.7-1.1-3.5-1.2-5.3-.3-6.1-1.6-11.9-5.5-16.8-6.8-8.8-15.9-12.4-27-11.5-11.3,.9-21.6,9.6-24.5,20.6-1.8,6.6-.9,13.3,.4,19.8,2.4,12.9,8.2,24,17.1,33.7,8.6,9.4,18.8,15.8,30.6,19.8v-10.4h-.2Z"}),(0,i.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M47.5,133.2c6.8-8.8,15-16,24.6-21.6,20.8-12,43.2-15.2,66.6-11,14.8,2.7,28.2,8.7,39.9,18.2,6.3,5,11.6,11,16.4,17.4,1.9,2.5,4.8,2.8,7,1.1,2.1-1.7,2.4-4.5,.6-7-5.9-8.2-12.8-15.3-20.9-21.3-18.3-13.6-39.1-19.6-61.7-20-6.3,0-12.5,.6-18.6,1.6-15.7,2.8-30.1,8.6-42.9,18.1-8.3,6.2-15.5,13.5-21.5,22-1.6,2.3-1.3,5.1,.7,6.7,2.1,1.7,4.9,1.5,6.8-.7,1-1.2,1.9-2.5,2.9-3.7l.1,.2Z"})]})]})]})),"file-search"===r&&(o=(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,fill:"none",viewBox:"0 0 384 512",children:(0,i.jsx)("path",{d:"M374.6 150.6l-141.3-141.3C227.4 3.371 219.2 0 210.7 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.35 0 64-28.66 64-64V173.3C384 164.8 380.6 156.6 374.6 150.6zM224 22.63L361.4 160H248C234.8 160 224 149.2 224 136V22.63zM368 448c0 26.47-21.53 48-48 48H64c-26.47 0-48-21.53-48-48V64c0-26.47 21.53-48 48-48h144v120c0 22.06 17.94 40 40 40h120V448zM176 208c-53.02 0-96 42.98-96 96s42.98 96 96 96c23.62 0 44.96-8.859 61.68-23l68.66 68.66C307.9 447.2 309.9 448 312 448s4.094-.7813 5.656-2.344c3.125-3.125 3.125-8.188 0-11.31l-68.66-68.66C263.1 348.1 272 327.6 272 304C272 250.1 229 208 176 208zM176 384C131.9 384 96 348.1 96 304S131.9 224 176 224S256 259.9 256 304S220.1 384 176 384z"})})),"download"===r&&(o=(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,fill:"none",viewBox:"0 0 512 512",children:(0,i.jsx)("path",{d:"M480 352h-88C387.6 352 384 355.6 384 360s3.582 8 8 8H480c8.822 0 16 7.178 16 16v96c0 8.822-7.178 16-16 16H32c-8.822 0-16-7.178-16-16v-96c0-8.822 7.178-16 16-16h88C124.4 368 128 364.4 128 360S124.4 352 120 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96C512 366.3 497.7 352 480 352zM464 432c0-17.6-14.4-32-32-32s-32 14.4-32 32c0 17.6 14.4 32 32 32S464 449.6 464 432zM416 432c0-8.822 7.178-16 16-16s16 7.178 16 16S440.8 448 432 448S416 440.8 416 432zM250.3 413.7c3.125 3.125 8.188 3.125 11.31 0l152-152C415.2 260.1 416 258.1 416 256s-.7813-4.094-2.344-5.656c-3.125-3.125-8.188-3.125-11.31 0L264 388.7V8C264 3.594 260.4 0 256 0S248 3.594 248 8v380.7L109.7 250.3c-3.125-3.125-8.188-3.125-11.31 0s-3.125 8.188 0 11.31L250.3 413.7z"})})),"satellite-dish"===r&&(o=(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",color:d[h],height:t,viewBox:"0 0 512 512",children:(0,i.jsx)("path",{d:"M208 0c-8.8 0-16 7.2-16 16s7.2 16 16 16c150.2 0 272 121.8 272 272c0 8.8 7.2 16 16 16s16-7.2 16-16C512 136.1 375.9 0 208 0zm0 96c-8.8 0-16 7.2-16 16s7.2 16 16 16c97.2 0 176 78.8 176 176c0 8.8 7.2 16 16 16s16-7.2 16-16c0-114.9-93.1-208-208-208zM32 304c0-24.5 5-47.7 13.9-68.8L276.8 466.1C255.7 475 232.5 480 208 480c-97.2 0-176-78.8-176-176zm33.5-94.5c-14-14-37.3-12.1-45.7 5.8C7.1 242.2 0 272.3 0 304C0 418.9 93.1 512 208 512c31.7 0 61.8-7.1 88.7-19.8c17.9-8.4 19.8-31.8 5.8-45.7L195.3 339.3l24-24c6.3 3 13.3 4.7 20.7 4.7c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48c0 7.4 1.7 14.4 4.7 20.7l-24 24L65.5 209.5zM224 272a16 16 0 1 1 32 0 16 16 0 1 1 -32 0z"})})),"rotate-light"===r&&(o=(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",color:d[h],height:t,viewBox:"0 0 512 512",children:(0,i.jsx)("path",{d:"M426.1 301.2C406.2 376.5 337.6 432 256 432c-51 0-96.9-21.7-129-56.3l41-41c5.1-5.1 8-12.1 8-19.3c0-15.1-12.2-27.3-27.3-27.3H48c-8.8 0-16 7.2-16 16V404.7C32 419.8 44.2 432 59.3 432c7.2 0 14.2-2.9 19.3-8l25.7-25.7C142.3 438.7 196.2 464 256 464c97.4 0 179.2-67 201.8-157.4c2.4-9.7-5.2-18.6-15.2-18.6c-7.8 0-14.5 5.6-16.5 13.2zM385 136.3l-41 41c-5.1 5.1-8 12.1-8 19.3c0 15.1 12.2 27.3 27.3 27.3H464c8.8 0 16-7.2 16-16V107.3C480 92.2 467.8 80 452.7 80c-7.2 0-14.2 2.9-19.3 8l-25.7 25.7C369.7 73.3 315.8 48 256 48C158.6 48 76.8 115 54.2 205.4c-2.4 9.7 5.2 18.6 15.2 18.6c7.8 0 14.5-5.6 16.5-13.2C105.8 135.5 174.4 80 256 80c51 0 96.9 21.7 129.1 56.3zM448 192H374.6L448 118.6V192zM64 320h73.4L64 393.4V320z"})})),"rotate-exclamation-light"===r&&(o=(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:[(0,i.jsx)("defs",{children:(0,i.jsx)("style",{children:`\n .fa-secondary {\n opacity: 0.4;\n color: ${d[h]};\n }\n `})}),(0,i.jsx)("path",{className:"fa-primary",d:"M280 152c0-13.3-10.7-24-24-24s-24 10.7-24 24V264c0 13.3 10.7 24 24 24s24-10.7 24-24V152zM256 384a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"}),(0,i.jsx)("path",{className:"fa-secondary",d:"M432 117.4C391 65.4 327.4 32 256 32C158.4 32 75.5 94.4 44.8 181.3c-5.9 16.7 2.8 34.9 19.5 40.8s34.9-2.8 40.8-19.5C127.1 140.5 186.4 96 256 96c52.3 0 98.8 25.1 128 64H352c-17.7 0-32 14.3-32 32s14.3 32 32 32h84.3c.5 0 1 0 1.5 0H464c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v37.4zm35.2 213.2c5.9-16.7-2.8-34.9-19.5-40.8s-34.9 2.8-40.8 19.5C384.9 371.5 325.6 416 256 416c-52.3 0-98.8-25.1-128-64h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H48c-17.7 0-32 14.3-32 32V432c0 17.7 14.3 32 32 32s32-14.3 32-32V394.6c41 52 104.6 85.4 176 85.4c97.6 0 180.5-62.4 211.2-149.3z"})]})),"radar-duotone"===r&&(o=(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:[(0,i.jsx)("defs",{children:(0,i.jsx)("style",{children:`\n .fa-secondary {\n color: ${d[h]} !important;\n } \n `})}),(0,i.jsx)("path",{className:"fa-primary",d:"M497 49c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-182 182c-7.7-3.3-16.1-5.1-25-5.1c-35.3 0-64 28.7-64 64s28.7 64 64 64s64-28.7 64-64c0-8.9-1.8-17.3-5.1-25L497 49z"}),(0,i.jsx)("path",{className:"fa-secondary",d:"M350.9 127.2l-46.1 46.1c-14.3-8.4-31-13.3-48.8-13.3c-53 0-96 43-96 96s43 96 96 96s96-43 96-96h64c0 73.5-49.6 135.5-117.2 154.2C290.8 394.7 274.7 384 256 384s-34.8 10.7-42.8 26.2c-51.7-14.3-92.8-53.9-109.4-104.6c14.4-8.3 24.1-23.8 24.1-41.7c0-19.4-11.5-36.1-28-43.7C116.2 149.1 179.9 96 256 96c35.5 0 68.3 11.6 94.9 31.2zm22.8-22.8C341.2 79 300.4 64 256 64C163.1 64 85.7 129.9 67.9 217.6C47.2 222.9 32 241.7 32 264c0 23.8 17.3 43.6 40.1 47.4c19.3 64.3 71.5 114.4 137 130.9C213.8 463.8 233 480 256 480s42.2-16.2 46.9-37.8C386.3 421.3 448 345.9 448 256h64c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0c62.1 0 118.9 22.1 163.3 58.8l-45.5 45.5z"})]})),"satellite-dish-duotone"===r&&(o=(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,children:[(0,i.jsx)("defs",{children:(0,i.jsx)("style",{children:`\n .fa-secondary {\n color: ${d[h]} !important;\n } \n `})}),(0,i.jsx)("path",{className:"fa-primary",d:"M60.6 220.6c-14.5-14.5-38.8-11.8-46.3 7.3C5.1 251.5 0 277.1 0 304C0 418.9 93.1 512 208 512c26.9 0 52.5-5.1 76.1-14.4c19-7.5 21.8-31.8 7.3-46.3L187.3 347.3l28.4-28.4c2.6 .7 5.4 1.1 8.3 1.1c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32c0 2.9 .4 5.6 1.1 8.3l-28.4 28.4L60.6 220.6z"}),(0,i.jsx)("path",{className:"fa-secondary",d:"M224 0c-17.7 0-32 14.3-32 32s14.3 32 32 32c123.7 0 224 100.3 224 224c0 17.7 14.3 32 32 32s32-14.3 32-32C512 128.9 383.1 0 224 0zm0 96c-17.7 0-32 14.3-32 32s14.3 32 32 32c70.7 0 128 57.3 128 128c0 17.7 14.3 32 32 32s32-14.3 32-32c0-106-86-192-192-192z"})]})),"spinner"===r&&(o=(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"20",height:"20",children:[(0,i.jsx)("defs",{children:(0,i.jsx)("style",{children:"\n .fa-secondary {\n opacity: 0.4;\n }\n "})}),(0,i.jsx)("path",{className:"fa-primary",d:"M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM96 256A48 48 0 1 0 0 256a48 48 0 1 0 96 0zM75 142.9A48 48 0 1 0 142.9 75 48 48 0 1 0 75 142.9z"}),(0,i.jsx)("path",{className:"fa-secondary",d:"M369.1 75A48 48 0 1 1 437 142.9 48 48 0 1 1 369.1 75zM416 256a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM208 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM75 369.1A48 48 0 1 1 142.9 437 48 48 0 1 1 75 369.1zm294.2 0A48 48 0 1 1 437 437a48 48 0 1 1 -67.9-67.9z"})]})),(0,i.jsx)("div",{...s,ref:e,children:o})})),r=({name:s,color:e,size:l,tooltip:r})=>{const h=s||"bullet",t=e||"black";let d=l||15,o=r?"tooltip-":"",n=Math.floor(1e9*Math.random());return r?(0,i.jsxs)("div",{className:"rsssl-"+o+"icon rsssl-icon-"+h+" rsssl-"+t,children:[(0,i.jsx)(a,{"data-for":".rsssl-"+n,name:h,color:t,size:d,id:n,className:"rsssl-"+n,"data-tooltip-delay-hide":200}),(0,i.jsx)(c.m_,{style:{zIndex:99},id:n,place:"bottom",anchorSelect:".rsssl-"+n,content:r})]}):(0,i.jsx)("div",{className:"rsssl-"+o+"icon rsssl-icon-"+h+" rsssl-"+t,children:(0,i.jsx)(a,{name:h,color:t,size:d})})}}}]); build/470.5091a8eb35ca6d3dbc61.js 0000777 00000005046 15252021227 0011473 0 ustar 00 "use strict";(self.webpackChunkreally_simple_ssl=self.webpackChunkreally_simple_ssl||[]).push([[470],{5470:(e,s,l)=>{l.r(s),l.d(s,{default:()=>d});var m=l(790);const i=()=>(0,m.jsxs)("div",{className:"rsssl-wizard-menu rsssl-grid-item rsssl-menu-placeholder",children:[(0,m.jsx)("div",{className:"rsssl-grid-item-header",children:(0,m.jsx)("h1",{className:"rsssl-h4"})}),(0,m.jsx)("div",{className:"rsssl-grid-item-content"})]});var n=l(7723),r=l(7135);const a=e=>{const{selectedSubMenuItem:s,selectedMainMenuItem:l,subMenu:i,menu:t}=(0,r.A)(),d=u(s,e.menuItem);let c=d?" rsssl-active":"";c+=e.menuItem.featured?" rsssl-featured":"",c+=e.menuItem.new?" rsssl-new":"",c+=e.menuItem.premium&&!rsssl_settings.pro_plugin_active?" rsssl-premium":"";let h=e.menuItem.directLink||"#"+l+"/"+e.menuItem.id;return(0,m.jsx)(m.Fragment,{children:e.menuItem.visible&&(0,m.jsxs)(m.Fragment,{children:[e.isMainMenu?(0,m.jsx)("div",{className:"rsssl-main-menu",children:(0,m.jsx)("div",{className:"rsssl-menu-item"+c,children:(0,m.jsxs)("a",{href:h,children:[(0,m.jsx)("span",{children:e.menuItem.title}),e.menuItem.featured&&(0,m.jsx)("span",{className:"rsssl-menu-item-beta-pill",children:(0,n.__)("Beta","really-simple-ssl")}),e.menuItem.new&&(0,m.jsx)("span",{className:"rsssl-menu-item-new-pill",children:(0,n.__)("New","really-simple-ssl")})]})})}):(0,m.jsx)("div",{className:"rsssl-menu-item"+c,children:(0,m.jsxs)("a",{href:h,children:[(0,m.jsx)("span",{children:e.menuItem.title}),e.menuItem.featured&&(0,m.jsx)("span",{className:"rsssl-menu-item-beta-pill",children:(0,n.__)("Beta","really-simple-ssl")}),e.menuItem.new&&(0,m.jsx)("span",{className:"rsssl-menu-item-new-pill",children:(0,n.__)("New","really-simple-ssl")})]})}),e.menuItem.menu_items&&d&&(0,m.jsx)("div",{className:"rsssl-submenu-item",children:(j=e.menuItem.menu_items,Array.isArray(j)?j:[j]).map(((e,s)=>e.visible&&(0,m.jsx)(a,{menuItem:e,isMainMenu:!1},"submenuItem"+s)))})]})});var j},t=a,u=(e,s)=>{if(e===s.id)return!0;if(s.menu_items)for(const l of s.menu_items)if(l.id===e)return!0;return!1},d=()=>{const{subMenu:e,subMenuLoaded:s}=(0,r.A)();return s?(0,m.jsxs)("div",{className:"rsssl-wizard-menu rsssl-grid-item",children:[(0,m.jsx)("div",{className:"rsssl-grid-item-header",children:(0,m.jsx)("h1",{className:"rsssl-h4",children:e.title})}),(0,m.jsx)("div",{className:"rsssl-grid-item-content",children:(0,m.jsx)("div",{className:"rsssl-wizard-menu-items",children:e.menu_items.map(((e,s)=>(0,m.jsx)(t,{menuItem:e,isMainMenu:!0},"menuItem-"+s)))})}),(0,m.jsx)("div",{className:"rsssl-grid-item-footer"})]}):(0,m.jsx)(i,{})}}}]); build/485-rtl.css 0000777 00000006141 15252021227 0007503 0 ustar 00 .rsssl input.MuiInput-underline:before,.rsssl-modal-body input.MuiInput-underline:before{display:none}.rsssl .MuiAutocomplete-root .MuiInputLabel-outlined[data-shrink=false],.rsssl-modal-body .MuiAutocomplete-root .MuiInputLabel-outlined[data-shrink=false]{transform:translate(-14px,16px) scale(1)}.rsssl .MuiAutocomplete-root .MuiFormLabel-root,.rsssl-modal-body .MuiAutocomplete-root .MuiFormLabel-root{font-family:inherit}.rsssl .MuiAutocomplete-root .MuiOutlinedInput-root,.rsssl-modal-body .MuiAutocomplete-root .MuiOutlinedInput-root{padding:0}.rsssl input.MuiAutocomplete-input[type=text],.rsssl-modal-body input.MuiAutocomplete-input[type=text]{border:0;padding-right:12px}.rsssl input.MuiAutocomplete-input[type=text]:focus,.rsssl-modal-body input.MuiAutocomplete-input[type=text]:focus{box-shadow:none;outline:none}.rsssl .MuiInputBase-root,.rsssl-modal-body .MuiInputBase-root{font-family:inherit}.rsssl .MuiInput-root input.MuiInputBase-input,.rsssl-modal-body .MuiInput-root input.MuiInputBase-input{padding-right:10px}.rsssl .MuiPaper-root,.rsssl .MuiPopper-root,.rsssl-modal-body .MuiPaper-root,.rsssl-modal-body .MuiPopper-root{max-height:150px;z-index:999999}.rsssl .MuiPaper-root div,.rsssl .MuiPopper-root div,.rsssl-modal-body .MuiPaper-root div,.rsssl-modal-body .MuiPopper-root div{font-family:inherit!important}.rsssl .MuiPaper-root ul,.rsssl .MuiPopper-root ul,.rsssl-modal-body .MuiPaper-root ul,.rsssl-modal-body .MuiPopper-root ul{max-height:none} .rsssl-vulnerabilities_overview div[data-column-id="4"].rdt_TableCol{display:block}.rsssl-vulnerabilities_overview .rdt_TableCell:last-child{flex:auto;margin-left:0;padding-left:20px} div[class$=MenuPortal]{z-index:30} .rsssl input.MuiInput-underline:before,.rsssl-modal-body input.MuiInput-underline:before{display:none}.rsssl .MuiAutocomplete-root .MuiInputLabel-outlined[data-shrink=false],.rsssl-modal-body .MuiAutocomplete-root .MuiInputLabel-outlined[data-shrink=false]{transform:translate(-14px,16px) scale(1)}.rsssl .MuiAutocomplete-root .MuiFormLabel-root,.rsssl-modal-body .MuiAutocomplete-root .MuiFormLabel-root{font-family:inherit}.rsssl .MuiAutocomplete-root .MuiOutlinedInput-root,.rsssl-modal-body .MuiAutocomplete-root .MuiOutlinedInput-root{padding:0}.rsssl input.MuiAutocomplete-input[type=text],.rsssl-modal-body input.MuiAutocomplete-input[type=text]{border:0;padding-right:12px}.rsssl input.MuiAutocomplete-input[type=text]:focus,.rsssl-modal-body input.MuiAutocomplete-input[type=text]:focus{box-shadow:none;outline:none}.rsssl .MuiInputBase-root,.rsssl-modal-body .MuiInputBase-root{font-family:inherit}.rsssl .MuiInput-root input.MuiInputBase-input,.rsssl-modal-body .MuiInput-root input.MuiInputBase-input{padding-right:10px}.rsssl .MuiPaper-root,.rsssl .MuiPopper-root,.rsssl-modal-body .MuiPaper-root,.rsssl-modal-body .MuiPopper-root{max-height:150px;z-index:999999}.rsssl .MuiPaper-root div,.rsssl .MuiPopper-root div,.rsssl-modal-body .MuiPaper-root div,.rsssl-modal-body .MuiPopper-root div{font-family:inherit!important}.rsssl .MuiPaper-root ul,.rsssl .MuiPopper-root ul,.rsssl-modal-body .MuiPaper-root ul,.rsssl-modal-body .MuiPopper-root ul{max-height:none} build/485.css 0000777 00000006135 15252021227 0006707 0 ustar 00 .rsssl input.MuiInput-underline:before,.rsssl-modal-body input.MuiInput-underline:before{display:none}.rsssl .MuiAutocomplete-root .MuiInputLabel-outlined[data-shrink=false],.rsssl-modal-body .MuiAutocomplete-root .MuiInputLabel-outlined[data-shrink=false]{transform:translate(14px,16px) scale(1)}.rsssl .MuiAutocomplete-root .MuiFormLabel-root,.rsssl-modal-body .MuiAutocomplete-root .MuiFormLabel-root{font-family:inherit}.rsssl .MuiAutocomplete-root .MuiOutlinedInput-root,.rsssl-modal-body .MuiAutocomplete-root .MuiOutlinedInput-root{padding:0}.rsssl input.MuiAutocomplete-input[type=text],.rsssl-modal-body input.MuiAutocomplete-input[type=text]{border:0;padding-left:12px}.rsssl input.MuiAutocomplete-input[type=text]:focus,.rsssl-modal-body input.MuiAutocomplete-input[type=text]:focus{box-shadow:none;outline:none}.rsssl .MuiInputBase-root,.rsssl-modal-body .MuiInputBase-root{font-family:inherit}.rsssl .MuiInput-root input.MuiInputBase-input,.rsssl-modal-body .MuiInput-root input.MuiInputBase-input{padding-left:10px}.rsssl .MuiPaper-root,.rsssl .MuiPopper-root,.rsssl-modal-body .MuiPaper-root,.rsssl-modal-body .MuiPopper-root{max-height:150px;z-index:999999}.rsssl .MuiPaper-root div,.rsssl .MuiPopper-root div,.rsssl-modal-body .MuiPaper-root div,.rsssl-modal-body .MuiPopper-root div{font-family:inherit!important}.rsssl .MuiPaper-root ul,.rsssl .MuiPopper-root ul,.rsssl-modal-body .MuiPaper-root ul,.rsssl-modal-body .MuiPopper-root ul{max-height:none} .rsssl-vulnerabilities_overview div[data-column-id="4"].rdt_TableCol{display:block}.rsssl-vulnerabilities_overview .rdt_TableCell:last-child{flex:auto;margin-right:0;padding-right:20px} div[class$=MenuPortal]{z-index:30} .rsssl input.MuiInput-underline:before,.rsssl-modal-body input.MuiInput-underline:before{display:none}.rsssl .MuiAutocomplete-root .MuiInputLabel-outlined[data-shrink=false],.rsssl-modal-body .MuiAutocomplete-root .MuiInputLabel-outlined[data-shrink=false]{transform:translate(14px,16px) scale(1)}.rsssl .MuiAutocomplete-root .MuiFormLabel-root,.rsssl-modal-body .MuiAutocomplete-root .MuiFormLabel-root{font-family:inherit}.rsssl .MuiAutocomplete-root .MuiOutlinedInput-root,.rsssl-modal-body .MuiAutocomplete-root .MuiOutlinedInput-root{padding:0}.rsssl input.MuiAutocomplete-input[type=text],.rsssl-modal-body input.MuiAutocomplete-input[type=text]{border:0;padding-left:12px}.rsssl input.MuiAutocomplete-input[type=text]:focus,.rsssl-modal-body input.MuiAutocomplete-input[type=text]:focus{box-shadow:none;outline:none}.rsssl .MuiInputBase-root,.rsssl-modal-body .MuiInputBase-root{font-family:inherit}.rsssl .MuiInput-root input.MuiInputBase-input,.rsssl-modal-body .MuiInput-root input.MuiInputBase-input{padding-left:10px}.rsssl .MuiPaper-root,.rsssl .MuiPopper-root,.rsssl-modal-body .MuiPaper-root,.rsssl-modal-body .MuiPopper-root{max-height:150px;z-index:999999}.rsssl .MuiPaper-root div,.rsssl .MuiPopper-root div,.rsssl-modal-body .MuiPaper-root div,.rsssl-modal-body .MuiPopper-root div{font-family:inherit!important}.rsssl .MuiPaper-root ul,.rsssl .MuiPopper-root ul,.rsssl-modal-body .MuiPaper-root ul,.rsssl-modal-body .MuiPopper-root ul{max-height:none} build/995.7a0675fe0519b06656b3.js 0000777 00000121106 15252021227 0011215 0 ustar 00 "use strict";(self.webpackChunkreally_simple_ssl=self.webpackChunkreally_simple_ssl||[]).push([[995],{5511:(s,e,l)=>{l.d(e,{A:()=>o});var t=l(1621),i=l(6535),r=l(1674),c=l(7723),a=l(2154),n=l(7143);const o=(0,t.vt)(((s,e)=>({actionIndex:-1,progress:0,attemptCount:0,refreshTests:!1,actionsList:[],updateVerificationType:async s=>{await r.bl("update_verification_type",s).then((e=>{let l="dir"===s?(0,c.__)("Switched to Directory","really-simple-ssl"):(0,c.__)("Switched to DNS","really-simple-ssl");(0,n.dispatch)("core/notices").createNotice("success",l,{__unstableHTML:!0,id:"rsssl_switched_to_dns",type:"snackbar",isDismissible:!0}).then((0,a.A)(3e3)).then((s=>{(0,n.dispatch)("core/notices").removeNotice("rsssl_switched_to_dns")}))}))},setAttemptCount:e=>{s((s=>({attemptCount:e})))},setProgress:e=>{s((s=>({progress:e})))},setActionsList:e=>{s((s=>({actionsList:e})))},setActionsListItem:(e,l)=>{s((0,i.Ay)((s=>{s.actionsList[e]=l})))},setActionsListProperty:(e,l,t)=>{s((0,i.Ay)((s=>{void 0!==s.actionsList[e]&&(s.actionsList[e][l],0)&&(s.actionsList[e][l]=t)})))},setRefreshTests:e=>{s((s=>({refreshTests:e})))},setActionIndex:e=>{s((s=>({actionIndex:e})))},switchButtonDisabled:!1,setSwitchButtonDisabled:e=>{s((s=>({switchButtonDisabled:e})))}})))},5315:(s,e,l)=>{l.d(e,{A:()=>r});var t=l(6064),i=l(790);const r=s=>{let e=s.lines;return e||(e=4),s.error&&(e=0),(0,i.jsxs)("div",{className:"rsssl-placeholder",children:[s.error&&(0,i.jsx)(t.A,{error:s.error}),Array.from({length:e}).map(((s,e)=>(0,i.jsx)("div",{className:"rsssl-placeholder-line"},"placeholder-"+e)))]})}},4476:(s,e,l)=>{l.d(e,{A:()=>t});const t=(0,l(1621).vt)(((s,e)=>({selectedFilter:[],processingFilter:!1,setSelectedFilter:(e,l)=>{s((s=>({selectedFilter:{...s.selectedFilter,[l]:e}})))},getCurrentFilter:s=>e().selectedFilter[s],setProcessingFilter:e=>s({processingFilter:e})})))},959:(s,e,l)=>{l.d(e,{A:()=>c});var t=l(1621),i=(l(1254),l(1674)),r=l(7723);const c=(0,t.vt)(((s,e)=>({licenseStatus:rsssl_settings.licenseStatus,setLicenseStatus:e=>s((s=>({licenseStatus:e}))),notices:[],setNotices:e=>s((s=>({notices:e}))),setLoadingState:()=>{const e={output:{dismissible:!1,icon:"skeleton",label:(0,r.__)("Loading","really-simple-ssl"),msg:!1,plusone:!1,url:!1}};s({notices:[e,e,e]})},toggleActivation:async l=>{if(e().setLoadingState(),"valid"===e().licenseStatus)await i.YA("deactivate_license").then((e=>{s({notices:e.notices,licenseStatus:e.licenseStatus})}));else{let e={};e.license=l,await i.Eo("activate_license",e).then((e=>{s({notices:e.notices,licenseStatus:e.licenseStatus})}))}}})))},5995:(s,e,l)=>{l.r(e),l.d(e,{ScrollProgress:()=>_,default:()=>b});var t=l(6087),i=(l(5315),l(790));const r=()=>(0,i.jsxs)("div",{className:"rsssl-wizard-settings rsssl-column-2 rsssl-settings-placeholder",children:[(0,i.jsx)("div",{className:"rsssl-grid-item",children:(0,i.jsx)("div",{className:"rsssl-grid-item-content",children:(0,i.jsx)("div",{className:"rsssl-settings-block-intro"})})}),(0,i.jsx)("div",{className:"rsssl-grid-item-footer"})]}),c=(s,e)=>{let l=e.length;for(let t=0;t<l;t++)if(e[t]==s)return!0;return!1};var a=l(4032),n=l(1307),o=l(7723),d=l(1674),h=l(1254),g=l(7135),m=l(959),x=l(4476),p=l(9518);const u=({msg:s,title:e,upgrade:l})=>{const{licenseStatus:t}=(0,m.A)();let r="1"===rsssl_settings.pro_plugin_active,c=r?"_self":"_blank",n=r?(0,o.__)("Check license","really-simple-ssl"):(0,o.__)("Go Pro","really-simple-ssl"),d=l||rsssl_settings.upgrade_link;r&&(d="#settings/license");let h=s||(0,i.jsx)(a.A,{text:(0,o.__)("Learn more about %sPremium%s","really-simple-ssl"),url:d});return r&&(h="empty"===t||"deactivated"===t?rsssl_settings.messageInactive:rsssl_settings.messageInvalid),(0,i.jsx)("div",{className:"rsssl-locked rsssl-locked-premium",children:(0,i.jsxs)("div",{className:"rsssl-locked-overlay rsssl-premium",children:[(0,i.jsx)("div",{className:"rsssl-locked-header",children:(0,i.jsx)("h5",{className:"rsssl-locked-header-title",children:e})}),(0,i.jsx)("div",{className:"rsssl-locked-content",children:(0,i.jsxs)("span",{children:[h," "]})}),(0,i.jsx)("div",{className:"rsssl-locked-footer",children:(0,i.jsx)("div",{className:"rsssl-grid-item-footer-buttons",children:(0,i.jsx)("a",{className:"button button-primary left",href:d,target:c,children:n})})})]})})},w=({groupFilter:s,filterId:e,selectedFilter:l,setSelectedFilter:t})=>s?(0,i.jsx)("div",{className:"rsssl-grid-item-controls",children:(0,i.jsx)("select",{className:"rsssl-group-filter",id:e,name:e,value:l[e],onChange:s=>{const l=s.target.value;t(l,e)},children:s.options.map((s=>(0,i.jsx)("option",{value:s.id,children:s.title},`option-${s.id}`)))})}):null,f=s=>{const{fields:e}=(0,h.A)(),{selectedFilter:r,setSelectedFilter:c}=(0,x.A)(),{licenseStatus:f}=(0,m.A)(),{selectedSubMenuItem:v,subMenu:C}=(0,g.A)(),[j,M]=(0,t.useState)(null),[z,b]=(0,t.useState)(null);(0,t.useEffect)((()=>{Promise.all([l.e(573),l.e(139),l.e(485)]).then(l.bind(l,7485)).then((({default:s})=>{M((()=>s))})),_&&_.intro&&"object"==typeof _.intro&&b(_.intro[r[k]])}),[r]);let _,y=[];for(const l of e)l.group_id===s.group&&y.push(l);for(const e of C.menu_items){if(e.id===v&&e.hasOwnProperty("groups"))for(const l of e.groups)if(l.group_id===s.group){_=l;break}if(_)break}if(!_)for(const s of C.menu_items){if(s.id===v){_=s;break}if(s.menu_items){const e=s.menu_items.find((s=>s.id===v));if(e){_=e;break}}}if(_&&_.groups){const e=_.groups.find((e=>e.group_id===s.group));e?_=e:_.groups.find((e=>e.group_id===s.group))}let L="valid"!==f&&_.premium,H=!rsssl_settings.networkwide_active&&_.networkwide_required,N=_.helpLink_text?_.helpLink_text:(0,o.__)("Instructions","really-simple-ssl"),V=(0,n.A)("main"),S=L||H?"rsssl-disabled":"";const k="rsssl-group-filter-"+_.id;return y=y.filter((s=>!s.hasOwnProperty("visible")||s.visible)),0===y.length?null:(0,i.jsxs)("div",{className:"rsssl-grid-item rsssl-"+_.id+" "+S,children:[_.title&&(0,i.jsxs)("div",{className:"rsssl-grid-item-header",children:[(0,i.jsx)("h3",{className:"rsssl-h4",children:_.title}),_.groupFilter&&(0,i.jsx)(w,{groupFilter:_.groupFilter,filterId:k,selectedFilter:r,setSelectedFilter:c}),!_.groupFilter&&_.helpLink&&"letsencrypt"!==V&&(0,i.jsx)("div",{className:"rsssl-grid-item-controls",children:(0,i.jsx)(a.A,{target:"_blank",rel:"noopener noreferrer",className:"rsssl-helplink",text:N,url:_.helpLink})}),"letsencrypt"===V&&(0,i.jsx)("div",{className:"rsssl-grid-item-controls",children:(0,i.jsx)("a",{href:"#",className:"rsssl-helplink",onClick:s=>(s=>{s.preventDefault(),d.bl("reset").then((s=>{window.location.href=window.location.href.replace(/#letsencrypt.*/,"&r="+ +new Date+"#letsencrypt/le-system-status")}))})(s),children:(0,o.__)("Reset Let's Encrypt","really-simple-ssl")})})]}),(0,i.jsxs)("div",{className:"rsssl-grid-item-content",children:[_.intro&&"string"==typeof _.intro&&(0,i.jsxs)(p.A,{fallback:"Could not load group intro",children:[_.intro&&"string"==typeof _.intro&&(0,i.jsx)("div",{className:"rsssl-settings-block-intro",children:_.intro}),_.intro&&"object"==typeof _.intro&&(0,i.jsx)("div",{className:"rsssl-settings-block-intro",children:z})]}),j&&y.map(((s,e)=>(0,i.jsx)(j,{index:e,field:s,fields:y},"selectedFields-"+e)))]}),L&&!H&&(0,i.jsx)(u,{msg:_.premium_text,title:_.premium_title?_.premium_title:_.title,upgrade:_.upgrade,url:_.upgrade}),H&&(0,i.jsx)("div",{className:"rsssl-locked",children:(0,i.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,i.jsx)("span",{className:"rsssl-task-status rsssl-warning",children:(0,o.__)("Network feature","really-simple-ssl")}),(0,i.jsxs)("span",{children:[(0,o.__)("This feature is only available networkwide.","really-simple-ssl"),(0,i.jsx)(a.A,{target:"_blank",rel:"noopener noreferrer",text:(0,o.__)("Network settings","really-simple-ssl"),url:rsssl_settings.network_link})]})]})})]})};var v=l(9306),C=l(2838),j=l.n(C);const M=s=>{let e={...s.help};e.title||(e.title=e.text,e.text=!1);let l=s.noticesExpanded?"open":"",t=e.url&&-1!==e.url.indexOf("really-simple-ssl.com")?"_blank":"_self";return(0,i.jsxs)("div",{children:[e.title&&e.text&&(0,i.jsxs)("details",{className:"rsssl-wizard-help-notice rsssl-"+e.label.toLowerCase(),open:l,children:[(0,i.jsxs)("summary",{children:[e.title," ",(0,i.jsx)(v.default,{name:"chevron-down"})]}),(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:j().sanitize(e.text)}}),e.url&&(0,i.jsx)("div",{className:"rsssl-help-more-info",children:(0,i.jsx)("a",{target:t,href:e.url,children:(0,o.__)("More info","really-simple-ssl")})})]}),e.title&&!e.text&&(0,i.jsx)("div",{className:"rsssl-wizard-help-notice rsssl-"+e.label.toLowerCase(),children:(0,i.jsx)("p",{children:e.title})})]})};var z=l(5511);const b=()=>{const[s,e]=(0,t.useState)(!0),{progress:l,fieldsLoaded:a,saveFields:n,fields:d,nextButtonDisabled:m}=(0,h.A)(),{subMenuLoaded:x,subMenu:u,selectedSubMenuItem:w,selectedMainMenuItem:v,nextMenuItem:C,previousMenuItem:j}=(0,g.A)(),{setRefreshTests:b}=(0,z.A)(),y=async s=>{!s&&(()=>{const{menu_items:s}=u;for(const e of s)if(e.id===w&&e.tests_only)return!0;return!1})()?b(!0):s?await n(!0,!1):await n(!0,!0)},{menu_items:L}=u;if(!x||!a||0===L.length)return(0,i.jsx)(r,{});let H=d.filter((s=>s.menu_id===w)),N=[];for(const s of H)c(s.group_id,N)||N.push(s.group_id);let V=[];for(const s of l.notices){let e=!1;if(s.show_with_options&&(e=H.filter((e=>s.show_with_options.includes(e.id))).length>0),e||s.menu_id===w){let e={};e.title=!!s.output.title&&s.output.title,e.label=s.output.label,e.id=s.id,e.text=s.output.msg,e.url=s.output.url,e.linked_field=s.show_with_option,V.push(e)}}for(const s of H.filter((s=>s.help&&!s.conditionallyDisabled))){let e=s.help;0===V.filter((s=>s.id&&s.id===e.id)).length&&V.push(s.help)}let S=m?`#${v}/${w}`:`#${v}/${C}`,k=(0,o.__)("Save","really-simple-ssl");for(const s of L)s.id===w&&s.tests_only&&(k=(0,o.__)("Refresh","really-simple-ssl"));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"rsssl-wizard-settings",children:[N.map(((s,e)=>(0,i.jsx)(f,{index:e,group:s,fields:H},"settingsGroup-"+e))),(0,i.jsxs)("div",{className:"rsssl-grid-item-footer-container",children:[(0,i.jsx)(_,{}),(0,i.jsx)("div",{className:"rsssl-grid-item-footer",children:(0,i.jsxs)("div",{className:"rsssl-grid-item-footer-buttons",children:[w!==L[0].id&&(0,i.jsx)("a",{className:"rsssl-previous",href:`#${v}/${j}`,children:(0,o.__)("Previous","really-simple-ssl")}),(0,i.jsx)("button",{className:"button button-secondary",onClick:s=>y(!1),children:k}),w!==L[L.length-1].id&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("button",{disabled:m,className:"button button-primary",onClick:s=>{y(!0),window.location.href=S},children:(0,o.__)("Save and continue","really-simple-ssl")})})]})})]})]}),(0,i.jsxs)("div",{className:"rsssl-wizard-help",children:[(0,i.jsxs)("div",{className:"rsssl-help-header",children:[(0,i.jsx)("div",{className:"rsssl-help-title rsssl-h4",children:(0,o.__)("Notifications","really-simple-ssl")}),(0,i.jsxs)("div",{className:"rsssl-help-control",onClick:()=>{e(!s)},children:[!s&&(0,o.__)("Expand all","really-simple-ssl"),s&&(0,o.__)("Collapse all","really-simple-ssl")]})]}),V.map(((e,l)=>(0,i.jsx)(p.A,{fallback:"Could not load notices",children:(0,i.jsx)(M,{noticesExpanded:s,index:l,help:e,fieldId:e.id})},"errorboundary-"+l)))]})]})},_=()=>{const[s,e]=(0,t.useState)(0);return(0,t.useEffect)((()=>{window.addEventListener("scroll",(()=>{let s=document.documentElement.scrollHeight-document.documentElement.clientHeight,l=Math.round(window.scrollY/s*100);l=Math.max(5,l),e(l)}))}),[]),document.documentElement.scrollHeight<=document.documentElement.clientHeight?null:(0,i.jsx)("span",{className:"rsssl-grid-item-footer-scroll-progress-container",children:(0,i.jsxs)("span",{className:"rsssl-grid-item-footer-scroll-progress",style:{width:s+"%"},children:[s,"%"]})})}},9306:(s,e,l)=>{l.r(e),l.d(e,{default:()=>c});var t=l(7008),i=l(790);const r=React.forwardRef((function(s,e){const{name:l,color:t,size:r}=s,c=l||"bullet",a=t||"black",n=r||15,o={black:"var(--rsp-black)",green:"var(--rsp-green)",yellow:"var(--rsp-yellow)",orange:"var(--rsp-yellow)","red-faded":"var(--rsp-red-faded)",red:"var(--rsp-red)",grey:"var(--rsp-grey-400)","red-warning":"var(--rsp-red-faded)"};let d="";return"bullet"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"})})),"circle"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"})})),"check"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"})})),"warning"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"})})),"error"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"})})),"times"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"})})),"circle-check"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z"})})),"circle-times"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z"})})),"chevron-up"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M416 352c-8.188 0-16.38-3.125-22.62-9.375L224 173.3l-169.4 169.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25C432.4 348.9 424.2 352 416 352z"})})),"chevron-down"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"})})),"chevron-right"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"})})),"chevron-left"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"})})),"plus"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"})})),"minus"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M400 288h-352c-17.69 0-32-14.32-32-32.01s14.31-31.99 32-31.99h352c17.69 0 32 14.3 32 31.99S417.7 288 400 288z"})})),"sync"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M483.515 28.485L431.35 80.65C386.475 35.767 324.485 8 256 8 123.228 8 14.824 112.338 8.31 243.493 7.971 250.311 13.475 256 20.301 256h28.045c6.353 0 11.613-4.952 11.973-11.294C66.161 141.649 151.453 60 256 60c54.163 0 103.157 21.923 138.614 57.386l-54.128 54.129c-7.56 7.56-2.206 20.485 8.485 20.485H492c6.627 0 12-5.373 12-12V36.971c0-10.691-12.926-16.045-20.485-8.486zM491.699 256h-28.045c-6.353 0-11.613 4.952-11.973 11.294C445.839 370.351 360.547 452 256 452c-54.163 0-103.157-21.923-138.614-57.386l54.128-54.129c7.56-7.56 2.206-20.485-8.485-20.485H20c-6.627 0-12 5.373-12 12v143.029c0 10.691 12.926 16.045 20.485 8.485L80.65 431.35C125.525 476.233 187.516 504 256 504c132.773 0 241.176-104.338 247.69-235.493.339-6.818-5.165-12.507-11.991-12.507z"})})),"sync-error"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M256 79.1C178.5 79.1 112.7 130.1 89.2 199.7C84.96 212.2 71.34 218.1 58.79 214.7C46.23 210.5 39.48 196.9 43.72 184.3C73.6 95.8 157.3 32 256 32C337.5 32 408.8 75.53 448 140.6V104C448 90.75 458.7 80 472 80C485.3 80 496 90.75 496 104V200C496 213.3 485.3 224 472 224H376C362.7 224 352 213.3 352 200C352 186.7 362.7 176 376 176H412.8C383.7 118.1 324.4 80 256 80V79.1zM280 263.1C280 277.3 269.3 287.1 256 287.1C242.7 287.1 232 277.3 232 263.1V151.1C232 138.7 242.7 127.1 256 127.1C269.3 127.1 280 138.7 280 151.1V263.1zM224 352C224 334.3 238.3 319.1 256 319.1C273.7 319.1 288 334.3 288 352C288 369.7 273.7 384 256 384C238.3 384 224 369.7 224 352zM40 432C26.75 432 16 421.3 16 408V311.1C16 298.7 26.75 287.1 40 287.1H136C149.3 287.1 160 298.7 160 311.1C160 325.3 149.3 336 136 336H99.19C128.3 393 187.6 432 256 432C333.5 432 399.3 381.9 422.8 312.3C427 299.8 440.7 293 453.2 297.3C465.8 301.5 472.5 315.1 468.3 327.7C438.4 416.2 354.7 480 256 480C174.5 480 103.2 436.5 64 371.4V408C64 421.3 53.25 432 40 432V432z"})})),"shortcode"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M128 32H32C14.4 32 0 46.4 0 64v384c0 17.6 14.4 32 32 32h96C145.7 480 160 465.7 160 448S145.7 416 128 416H64V96h64C145.7 96 160 81.67 160 64S145.7 32 128 32zM416 32h-96C302.3 32 288 46.33 288 63.1S302.3 96 319.1 96H384v320h-64C302.3 416 288 430.3 288 447.1S302.3 480 319.1 480H416c17.6 0 32-14.4 32-32V64C448 46.4 433.6 32 416 32z"})})),"file"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M0 64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V64zM336 448V160H256C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V448C48 456.8 55.16 464 64 464H320C328.8 464 336 456.8 336 448z"})})),"file-disabled"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M639.1 487.1c0-7.119-3.153-14.16-9.191-18.89l-118.8-93.12l.0013-237.3c0-16.97-6.742-33.26-18.74-45.26l-74.63-74.64C406.6 6.742 390.3 0 373.4 0H192C156.7 0 128 28.65 128 64L128 75.01L38.82 5.11C34.41 1.672 29.19 0 24.04 0C10.19 0-.0002 11.3-.0002 23.1c0 7.12 3.153 14.16 9.192 18.89l591.1 463.1C605.6 510.3 610.8 512 615.1 512C629.8 512 639.1 500.6 639.1 487.1zM464 338.4l-287.1-225.7l-.002-48.51c0-8.836 7.164-16 15.1-16h160l-.0065 79.87c0 17.67 14.33 31.1 31.1 31.1L464 159.1V338.4zM448 463.1H192c-8.834 0-15.1-7.164-15.1-16L176 234.6L128 197L128 447.1c0 35.34 28.65 64 63.1 64H448c20.4 0 38.45-9.851 50.19-24.84l-37.72-29.56C457.5 461.4 453.2 463.1 448 463.1z"})})),"loading"===c&&(d=(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[t],d:"M304 48c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zm0 416c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM48 304c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48zm464-48c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM142.9 437c18.7-18.7 18.7-49.1 0-67.9s-49.1-18.7-67.9 0s-18.7 49.1 0 67.9s49.1 18.7 67.9 0zm0-294.2c18.7-18.7 18.7-49.1 0-67.9S93.7 56.2 75 75s-18.7 49.1 0 67.9s49.1 18.7 67.9 0zM369.1 437c18.7 18.7 49.1 18.7 67.9 0s18.7-49.1 0-67.9s-49.1-18.7-67.9 0s-18.7 49.1 0 67.9z"})})),"file-download"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M216 342.1V240c0-13.25-10.75-24-24-24S168 226.8 168 240v102.1L128.1 303C124.3 298.3 118.2 296 112 296S99.72 298.3 95.03 303c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0L216 342.1zM365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6C384 121.7 377.3 105.4 365.3 93.38zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1V448z"})})),"calendar"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192H48V448z"})})),"calendar-error"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M151.1 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V192H47.1V448C47.1 456.8 55.16 464 63.1 464H284.5C296.7 482.8 312.5 499.1 330.8 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24L151.1 64zM576 368C576 447.5 511.5 512 432 512C352.5 512 287.1 447.5 287.1 368C287.1 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368zM432 416C418.7 416 408 426.7 408 440C408 453.3 418.7 464 432 464C445.3 464 456 453.3 456 440C456 426.7 445.3 416 432 416zM447.1 288C447.1 279.2 440.8 272 431.1 272C423.2 272 415.1 279.2 415.1 288V368C415.1 376.8 423.2 384 431.1 384C440.8 384 447.1 376.8 447.1 368V288z"})})),"help"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 400c-18 0-32-14-32-32s13.1-32 32-32c17.1 0 32 14 32 32S273.1 400 256 400zM325.1 258L280 286V288c0 13-11 24-24 24S232 301 232 288V272c0-8 4-16 12-21l57-34C308 213 312 206 312 198C312 186 301.1 176 289.1 176h-51.1C225.1 176 216 186 216 198c0 13-11 24-24 24s-24-11-24-24C168 159 199 128 237.1 128h51.1C329 128 360 159 360 198C360 222 347 245 325.1 258z"})})),"copy"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"})})),"info"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"})})),"info-open"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464zM256 304c13.25 0 24-10.75 24-24v-128C280 138.8 269.3 128 256 128S232 138.8 232 152v128C232 293.3 242.8 304 256 304zM256 337.1c-17.36 0-31.44 14.08-31.44 31.44C224.6 385.9 238.6 400 256 400s31.44-14.08 31.44-31.44C287.4 351.2 273.4 337.1 256 337.1z"})})),"list"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M184.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM256 96c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zM192 416c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32zM80 464c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48z"})})),"empty"===c&&(d=(0,i.jsx)("svg",{height:n,width:n,"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67"})),"external-link"===c&&(d=(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:(0,i.jsx)("path",{fill:o[a],d:"M384 32c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96C0 60.7 28.7 32 64 32H384zM160 144c-13.3 0-24 10.7-24 24s10.7 24 24 24h94.1L119 327c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l135-135V328c0 13.3 10.7 24 24 24s24-10.7 24-24V168c0-13.3-10.7-24-24-24H160z"})})),"shield"===c&&(d=(0,i.jsxs)("svg",{height:n,"aria-hidden":"true",focusable:"false",role:"img",id:"uuid-026a4e87-44db-4336-a398-3c29d25b7317",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67",children:[(0,i.jsx)("path",{fill:"#f9c23e",d:"M280.8,62.4L140.5,0,0,62.2V213.3c0,10.7,1.6,21.3,4.9,31.5,9.5,29.9,28.2,52.8,54.4,69.5,26,16.6,52.4,32.4,78.6,48.6,2,1.2,3.4,.9,5.1-.2,19.9-12.3,39.8-24.5,59.6-36.8,12.6-7.8,25.5-15.1,36.5-25.1,26.4-24.2,41.4-53.6,41.5-89.9V62.4h.2Z"}),(0,i.jsxs)("g",{children:[(0,i.jsxs)("g",{children:[(0,i.jsx)("rect",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",x:"155",y:"266.8",width:"77.6",height:"6"}),(0,i.jsx)("path",{fill:"#1d2327",d:"M224.4,204.5h-1.8v-10.1c0-15.9-12.9-28.8-28.8-28.8s-28.8,12.9-28.8,28.8v10.1h-1.8c-4.6,0-8.3,3.7-8.3,8.3v51.3h77.6v-51.3c0-4.6-3.7-8.3-8.3-8.3h.2Zm-45.3-10.1c0-8.1,6.6-14.7,14.7-14.7s14.7,6.6,14.7,14.7v10.1h-29.5v-10.1h.1Zm36.6,32.9l-20.7,20.2c-.2,.2-.3,.4-.5,.6l-2,2c-.2,.2-.4,.4-.6,.5l-3.8,3.8-4.5-4.3-2-2c-.2-.2-.4-.4-.5-.6l-9.1-9.1c-2.4-2.4-2.4-6.4,0-8.8l2-2c2.4-2.4,6.4-2.4,8.8,0l5.3,5.3,16.9-16.4c2.4-2.4,6.4-2.4,8.8,0l2,2c2.4,2.4,2.4,6.4,0,8.8h-.1Z"})]}),(0,i.jsxs)("g",{children:[(0,i.jsx)("path",{fill:"#1d2327",d:"M125.2,192.3c-.5-2.9-.5-5.8-1-8.6-.5-2.4-2.6-4-4.8-3.9-2.3,0-4.2,1.9-4.7,4.3-.2,1,0,1.9,0,2.9,.8,14.6,7.2,26.3,18.2,35.7,2.2,1.9,4.5,3.5,6.9,4.8v-11.8c-7.4-5.8-12.9-14.1-14.6-23.3v-.1Z"}),(0,i.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M96.4,236.1c-13-15-20-32.3-19.5-52.3,.3-13.1,6.1-23.6,16.6-31.2,11.5-8.5,24.5-10.9,38.3-7.1,12.7,3.5,22,10.7,27.4,22,2.1-2.7,4.5-5.2,7.2-7.4-4-7-9.7-12.9-17-17.4-17-10.4-34.9-11.7-52.9-3.1-19,9.1-28.7,24.7-29.3,45.8,0,5.2,.5,10.2,1.4,15.2,3.4,19.4,13.4,35.2,27.2,48.9,1.1,1.1,2.5,1.6,4.1,1.4,1.8-.2,3.2-1.3,3.8-3,.6-1.8,.4-3.6-1-5.1-2.1-2.2-4.2-4.4-6.2-6.7h-.1Z"}),(0,i.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M68.1,89.4c1.1-.4,2.1-1,3.1-1.5,17.9-9.1,36.8-12.7,56.8-11.3,12.2,.8,23.9,3.8,35.1,8.7,3,1.3,5.9,2.8,8.9,4.1,2.7,1.1,5.3,0,6.4-2.4,1.1-2.3,0-5-2.3-6.3-11-5.7-22.4-10-34.6-12.3-4.2-.8-8.5-1.1-12.8-1.7h-17.1c-.3,0-.6,.2-.9,.2-11.2,.8-22,3.2-32.5,7.2-4.9,1.9-9.7,4.1-14.3,6.6-2.5,1.3-3.4,4.2-2.2,6.5,1.1,2.2,4,3.2,6.4,2.1v.1Z"}),(0,i.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M61.1,153.5c13.6-21.6,33.6-31.5,58.7-32.1h6c.8,0,1.6,.2,2.3,.3,13.4,1.7,25.5,6.6,35.9,15.4,5.8,4.9,10.5,10.3,14.1,16.2,3.1-1.2,6.4-2,9.8-2.5-4.7-8.7-11.3-16.3-19.6-22.7-19-14.6-40.5-19.5-64.1-15.1-14.3,2.7-26.9,9-37.7,18.8-10.4,9.5-17.8,20.9-21.2,34.6-2.8,11.3-2.6,22.7-.9,34.1,1.1,7,2.9,13.9,5.4,20.5,.9,2.3,3,3.7,5.2,3.5,2.1-.2,3.9-2,4.3-4.3,.2-1.1-.2-2.2-.6-3.2-4.3-11.9-6.3-24.1-5.6-36.7,.5-9.6,2.8-18.7,8-26.8h0Z"}),(0,i.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M139.8,240.6c-20.9-8.4-34.1-23.7-38.4-46.7-.8-4.3-1.4-8.7-.4-13,1.8-7.1,6.4-11.4,13.4-13.5,11.8-3.4,24.7,5.3,24.5,17.6,0,4.8,1.4,9.3,4,13.4,.3,.5,.6,.9,.9,1.3,1.6-2.4,3.7-4.6,6.1-6.2,0-.9,0-1.9,.2-2.8-.7-1.7-1.1-3.5-1.2-5.3-.3-6.1-1.6-11.9-5.5-16.8-6.8-8.8-15.9-12.4-27-11.5-11.3,.9-21.6,9.6-24.5,20.6-1.8,6.6-.9,13.3,.4,19.8,2.4,12.9,8.2,24,17.1,33.7,8.6,9.4,18.8,15.8,30.6,19.8v-10.4h-.2Z"}),(0,i.jsx)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M47.5,133.2c6.8-8.8,15-16,24.6-21.6,20.8-12,43.2-15.2,66.6-11,14.8,2.7,28.2,8.7,39.9,18.2,6.3,5,11.6,11,16.4,17.4,1.9,2.5,4.8,2.8,7,1.1,2.1-1.7,2.4-4.5,.6-7-5.9-8.2-12.8-15.3-20.9-21.3-18.3-13.6-39.1-19.6-61.7-20-6.3,0-12.5,.6-18.6,1.6-15.7,2.8-30.1,8.6-42.9,18.1-8.3,6.2-15.5,13.5-21.5,22-1.6,2.3-1.3,5.1,.7,6.7,2.1,1.7,4.9,1.5,6.8-.7,1-1.2,1.9-2.5,2.9-3.7l.1,.2Z"})]})]})]})),"file-search"===c&&(d=(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,fill:"none",viewBox:"0 0 384 512",children:(0,i.jsx)("path",{d:"M374.6 150.6l-141.3-141.3C227.4 3.371 219.2 0 210.7 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.35 0 64-28.66 64-64V173.3C384 164.8 380.6 156.6 374.6 150.6zM224 22.63L361.4 160H248C234.8 160 224 149.2 224 136V22.63zM368 448c0 26.47-21.53 48-48 48H64c-26.47 0-48-21.53-48-48V64c0-26.47 21.53-48 48-48h144v120c0 22.06 17.94 40 40 40h120V448zM176 208c-53.02 0-96 42.98-96 96s42.98 96 96 96c23.62 0 44.96-8.859 61.68-23l68.66 68.66C307.9 447.2 309.9 448 312 448s4.094-.7813 5.656-2.344c3.125-3.125 3.125-8.188 0-11.31l-68.66-68.66C263.1 348.1 272 327.6 272 304C272 250.1 229 208 176 208zM176 384C131.9 384 96 348.1 96 304S131.9 224 176 224S256 259.9 256 304S220.1 384 176 384z"})})),"download"===c&&(d=(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,fill:"none",viewBox:"0 0 512 512",children:(0,i.jsx)("path",{d:"M480 352h-88C387.6 352 384 355.6 384 360s3.582 8 8 8H480c8.822 0 16 7.178 16 16v96c0 8.822-7.178 16-16 16H32c-8.822 0-16-7.178-16-16v-96c0-8.822 7.178-16 16-16h88C124.4 368 128 364.4 128 360S124.4 352 120 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96C512 366.3 497.7 352 480 352zM464 432c0-17.6-14.4-32-32-32s-32 14.4-32 32c0 17.6 14.4 32 32 32S464 449.6 464 432zM416 432c0-8.822 7.178-16 16-16s16 7.178 16 16S440.8 448 432 448S416 440.8 416 432zM250.3 413.7c3.125 3.125 8.188 3.125 11.31 0l152-152C415.2 260.1 416 258.1 416 256s-.7813-4.094-2.344-5.656c-3.125-3.125-8.188-3.125-11.31 0L264 388.7V8C264 3.594 260.4 0 256 0S248 3.594 248 8v380.7L109.7 250.3c-3.125-3.125-8.188-3.125-11.31 0s-3.125 8.188 0 11.31L250.3 413.7z"})})),"satellite-dish"===c&&(d=(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",color:o[a],height:n,viewBox:"0 0 512 512",children:(0,i.jsx)("path",{d:"M208 0c-8.8 0-16 7.2-16 16s7.2 16 16 16c150.2 0 272 121.8 272 272c0 8.8 7.2 16 16 16s16-7.2 16-16C512 136.1 375.9 0 208 0zm0 96c-8.8 0-16 7.2-16 16s7.2 16 16 16c97.2 0 176 78.8 176 176c0 8.8 7.2 16 16 16s16-7.2 16-16c0-114.9-93.1-208-208-208zM32 304c0-24.5 5-47.7 13.9-68.8L276.8 466.1C255.7 475 232.5 480 208 480c-97.2 0-176-78.8-176-176zm33.5-94.5c-14-14-37.3-12.1-45.7 5.8C7.1 242.2 0 272.3 0 304C0 418.9 93.1 512 208 512c31.7 0 61.8-7.1 88.7-19.8c17.9-8.4 19.8-31.8 5.8-45.7L195.3 339.3l24-24c6.3 3 13.3 4.7 20.7 4.7c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48c0 7.4 1.7 14.4 4.7 20.7l-24 24L65.5 209.5zM224 272a16 16 0 1 1 32 0 16 16 0 1 1 -32 0z"})})),"rotate-light"===c&&(d=(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",color:o[a],height:n,viewBox:"0 0 512 512",children:(0,i.jsx)("path",{d:"M426.1 301.2C406.2 376.5 337.6 432 256 432c-51 0-96.9-21.7-129-56.3l41-41c5.1-5.1 8-12.1 8-19.3c0-15.1-12.2-27.3-27.3-27.3H48c-8.8 0-16 7.2-16 16V404.7C32 419.8 44.2 432 59.3 432c7.2 0 14.2-2.9 19.3-8l25.7-25.7C142.3 438.7 196.2 464 256 464c97.4 0 179.2-67 201.8-157.4c2.4-9.7-5.2-18.6-15.2-18.6c-7.8 0-14.5 5.6-16.5 13.2zM385 136.3l-41 41c-5.1 5.1-8 12.1-8 19.3c0 15.1 12.2 27.3 27.3 27.3H464c8.8 0 16-7.2 16-16V107.3C480 92.2 467.8 80 452.7 80c-7.2 0-14.2 2.9-19.3 8l-25.7 25.7C369.7 73.3 315.8 48 256 48C158.6 48 76.8 115 54.2 205.4c-2.4 9.7 5.2 18.6 15.2 18.6c7.8 0 14.5-5.6 16.5-13.2C105.8 135.5 174.4 80 256 80c51 0 96.9 21.7 129.1 56.3zM448 192H374.6L448 118.6V192zM64 320h73.4L64 393.4V320z"})})),"rotate-exclamation-light"===c&&(d=(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:[(0,i.jsx)("defs",{children:(0,i.jsx)("style",{children:`\n .fa-secondary {\n opacity: 0.4;\n color: ${o[a]};\n }\n `})}),(0,i.jsx)("path",{className:"fa-primary",d:"M280 152c0-13.3-10.7-24-24-24s-24 10.7-24 24V264c0 13.3 10.7 24 24 24s24-10.7 24-24V152zM256 384a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"}),(0,i.jsx)("path",{className:"fa-secondary",d:"M432 117.4C391 65.4 327.4 32 256 32C158.4 32 75.5 94.4 44.8 181.3c-5.9 16.7 2.8 34.9 19.5 40.8s34.9-2.8 40.8-19.5C127.1 140.5 186.4 96 256 96c52.3 0 98.8 25.1 128 64H352c-17.7 0-32 14.3-32 32s14.3 32 32 32h84.3c.5 0 1 0 1.5 0H464c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v37.4zm35.2 213.2c5.9-16.7-2.8-34.9-19.5-40.8s-34.9 2.8-40.8 19.5C384.9 371.5 325.6 416 256 416c-52.3 0-98.8-25.1-128-64h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H48c-17.7 0-32 14.3-32 32V432c0 17.7 14.3 32 32 32s32-14.3 32-32V394.6c41 52 104.6 85.4 176 85.4c97.6 0 180.5-62.4 211.2-149.3z"})]})),"radar-duotone"===c&&(d=(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:[(0,i.jsx)("defs",{children:(0,i.jsx)("style",{children:`\n .fa-secondary {\n color: ${o[a]} !important;\n } \n `})}),(0,i.jsx)("path",{className:"fa-primary",d:"M497 49c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-182 182c-7.7-3.3-16.1-5.1-25-5.1c-35.3 0-64 28.7-64 64s28.7 64 64 64s64-28.7 64-64c0-8.9-1.8-17.3-5.1-25L497 49z"}),(0,i.jsx)("path",{className:"fa-secondary",d:"M350.9 127.2l-46.1 46.1c-14.3-8.4-31-13.3-48.8-13.3c-53 0-96 43-96 96s43 96 96 96s96-43 96-96h64c0 73.5-49.6 135.5-117.2 154.2C290.8 394.7 274.7 384 256 384s-34.8 10.7-42.8 26.2c-51.7-14.3-92.8-53.9-109.4-104.6c14.4-8.3 24.1-23.8 24.1-41.7c0-19.4-11.5-36.1-28-43.7C116.2 149.1 179.9 96 256 96c35.5 0 68.3 11.6 94.9 31.2zm22.8-22.8C341.2 79 300.4 64 256 64C163.1 64 85.7 129.9 67.9 217.6C47.2 222.9 32 241.7 32 264c0 23.8 17.3 43.6 40.1 47.4c19.3 64.3 71.5 114.4 137 130.9C213.8 463.8 233 480 256 480s42.2-16.2 46.9-37.8C386.3 421.3 448 345.9 448 256h64c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0c62.1 0 118.9 22.1 163.3 58.8l-45.5 45.5z"})]})),"satellite-dish-duotone"===c&&(d=(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:n,children:[(0,i.jsx)("defs",{children:(0,i.jsx)("style",{children:`\n .fa-secondary {\n color: ${o[a]} !important;\n } \n `})}),(0,i.jsx)("path",{className:"fa-primary",d:"M60.6 220.6c-14.5-14.5-38.8-11.8-46.3 7.3C5.1 251.5 0 277.1 0 304C0 418.9 93.1 512 208 512c26.9 0 52.5-5.1 76.1-14.4c19-7.5 21.8-31.8 7.3-46.3L187.3 347.3l28.4-28.4c2.6 .7 5.4 1.1 8.3 1.1c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32c0 2.9 .4 5.6 1.1 8.3l-28.4 28.4L60.6 220.6z"}),(0,i.jsx)("path",{className:"fa-secondary",d:"M224 0c-17.7 0-32 14.3-32 32s14.3 32 32 32c123.7 0 224 100.3 224 224c0 17.7 14.3 32 32 32s32-14.3 32-32C512 128.9 383.1 0 224 0zm0 96c-17.7 0-32 14.3-32 32s14.3 32 32 32c70.7 0 128 57.3 128 128c0 17.7 14.3 32 32 32s32-14.3 32-32c0-106-86-192-192-192z"})]})),"spinner"===c&&(d=(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"20",height:"20",children:[(0,i.jsx)("defs",{children:(0,i.jsx)("style",{children:"\n .fa-secondary {\n opacity: 0.4;\n }\n "})}),(0,i.jsx)("path",{className:"fa-primary",d:"M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM96 256A48 48 0 1 0 0 256a48 48 0 1 0 96 0zM75 142.9A48 48 0 1 0 142.9 75 48 48 0 1 0 75 142.9z"}),(0,i.jsx)("path",{className:"fa-secondary",d:"M369.1 75A48 48 0 1 1 437 142.9 48 48 0 1 1 369.1 75zM416 256a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM208 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM75 369.1A48 48 0 1 1 142.9 437 48 48 0 1 1 75 369.1zm294.2 0A48 48 0 1 1 437 437a48 48 0 1 1 -67.9-67.9z"})]})),(0,i.jsx)("div",{...s,ref:e,children:d})})),c=({name:s,color:e,size:l,tooltip:c})=>{const a=s||"bullet",n=e||"black";let o=l||15,d=c?"tooltip-":"",h=Math.floor(1e9*Math.random());return c?(0,i.jsxs)("div",{className:"rsssl-"+d+"icon rsssl-icon-"+a+" rsssl-"+n,children:[(0,i.jsx)(r,{"data-for":".rsssl-"+h,name:a,color:n,size:o,id:h,className:"rsssl-"+h,"data-tooltip-delay-hide":200}),(0,i.jsx)(t.m_,{style:{zIndex:99},id:h,place:"bottom",anchorSelect:".rsssl-"+h,content:c})]}):(0,i.jsx)("div",{className:"rsssl-"+d+"icon rsssl-icon-"+a+" rsssl-"+n,children:(0,i.jsx)(r,{name:a,color:n,size:o})})}},2154:(s,e,l)=>{l.d(e,{A:()=>t});const t=s=>function(e){return new Promise((l=>setTimeout((()=>l(e)),s)))}}}]); build/573.287bf1828cad7f912345.js 0000777 00000770522 15252021227 0011310 0 ustar 00 (self.webpackChunkreally_simple_ssl=self.webpackChunkreally_simple_ssl||[]).push([[573],{5655:(e,t,n)=>{"use strict";n.d(t,{A:()=>re});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function p(e){return e.length}function f(e){return e.length}function h(e,t){return t.push(e),e}var m=1,v=1,g=0,y=0,b=0,x="";function A(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:m,column:v,length:a,return:""}}function w(e,t){return a(A("",null,null,"",null,null,0),e,{length:-e.length},t)}function k(){return b=y>0?u(x,--y):0,v--,10===b&&(v=1,m--),b}function S(){return b=y<g?u(x,y++):0,v++,10===b&&(v=1,m++),b}function C(){return u(x,y)}function E(){return y}function O(e,t){return d(x,e,t)}function R(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function P(e){return m=v=1,g=p(x=e),y=0,[]}function $(e){return x="",e}function M(e){return s(O(y-1,N(91===e?e+2:40===e?e+1:e)))}function T(e){for(;(b=C())&&b<33;)S();return R(e)>2||R(b)>3?"":" "}function I(e,t){for(;--t&&S()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return O(e,E()+(t<6&&32==C()&&32==S()))}function N(e){for(;S();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&N(b);break;case 40:41===e&&N(e);break;case 92:S()}return y}function j(e,t){for(;S()&&e+b!==57&&(e+b!==84||47!==C()););return"/*"+O(t,y-1)+"*"+i(47===e?e:S())}function L(e){for(;!R(C());)S();return O(e,y)}var z="-ms-",D="-moz-",F="-webkit-",W="comm",_="rule",B="decl",V="@keyframes";function H(e,t){for(var n="",r=f(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function q(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case B:return e.return=e.return||e.value;case W:return"";case V:return e.return=e.value+"{"+H(e.children,r)+"}";case _:e.value=e.props.join(",")}return p(n=H(e.children,r))?e.return=e.value+"{"+n+"}":""}function K(e){return $(U("",null,null,null,[""],e=P(e),0,[0],e))}function U(e,t,n,r,o,a,s,d,f){for(var m=0,v=0,g=s,y=0,b=0,x=0,A=1,w=1,O=1,R=0,P="",$=o,N=a,z=r,D=P;w;)switch(x=R,R=S()){case 40:if(108!=x&&58==u(D,g-1)){-1!=c(D+=l(M(R),"&","&\f"),"&\f")&&(O=-1);break}case 34:case 39:case 91:D+=M(R);break;case 9:case 10:case 13:case 32:D+=T(x);break;case 92:D+=I(E()-1,7);continue;case 47:switch(C()){case 42:case 47:h(G(j(S(),E()),t,n),f);break;default:D+="/"}break;case 123*A:d[m++]=p(D)*O;case 125*A:case 59:case 0:switch(R){case 0:case 125:w=0;case 59+v:-1==O&&(D=l(D,/\f/g,"")),b>0&&p(D)-g&&h(b>32?Y(D+";",r,n,g-1):Y(l(D," ","")+";",r,n,g-2),f);break;case 59:D+=";";default:if(h(z=X(D,t,n,m,v,o,d,P,$=[],N=[],g),a),123===R)if(0===v)U(D,t,z,z,$,a,g,d,N);else switch(99===y&&110===u(D,3)?100:y){case 100:case 108:case 109:case 115:U(e,z,z,r&&h(X(e,z,z,0,0,o,d,P,o,$=[],g),N),o,N,g,d,r?$:N);break;default:U(D,z,z,z,[""],N,0,d,N)}}m=v=b=0,A=O=1,P=D="",g=s;break;case 58:g=1+p(D),b=x;default:if(A<1)if(123==R)--A;else if(125==R&&0==A++&&125==k())continue;switch(D+=i(R),R*A){case 38:O=v>0?1:(D+="\f",-1);break;case 44:d[m++]=(p(D)-1)*O,O=1;break;case 64:45===C()&&(D+=M(S())),y=C(),v=g=p(P=D+=L(E())),R++;break;case 45:45===x&&2==p(D)&&(A=0)}}return a}function X(e,t,n,r,i,a,c,u,p,h,m){for(var v=i-1,g=0===i?a:[""],y=f(g),b=0,x=0,w=0;b<r;++b)for(var k=0,S=d(e,v+1,v=o(x=c[b])),C=e;k<y;++k)(C=s(x>0?g[k]+" "+S:l(S,/&\f/g,g[k])))&&(p[w++]=C);return A(e,t,n,0===i?_:u,p,h,m)}function G(e,t,n){return A(e,t,n,W,i(b),d(e,2,-2),0)}function Y(e,t,n,r){return A(e,t,n,B,d(e,0,r),d(e,r+1,-1),r)}var J=function(e,t,n){for(var r=0,o=0;r=o,o=C(),38===r&&12===o&&(t[n]=1),!R(o);)S();return O(e,y)},Z=new WeakMap,Q=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Z.get(n))&&!r){Z.set(e,!0);for(var o=[],a=function(e,t){return $(function(e,t){var n=-1,r=44;do{switch(R(r)){case 0:38===r&&12===C()&&(t[n]=1),e[n]+=J(y-1,t,n);break;case 2:e[n]+=M(r);break;case 4:if(44===r){e[++n]=58===C()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=S());return e}(P(e),t))}(t,o),s=n.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)e.props[c]=o[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l]}}},ee=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function te(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return F+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return F+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+D+e+z+e+e;case 6828:case 4268:return F+e+z+e+e;case 6165:return F+e+z+"flex-"+e+e;case 5187:return F+e+l(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+z+"flex-$1$2")+e;case 5443:return F+e+z+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return F+e+z+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return F+e+z+l(e,"shrink","negative")+e;case 5292:return F+e+z+l(e,"basis","preferred-size")+e;case 6060:return F+"box-"+l(e,"-grow","")+F+e+z+l(e,"grow","positive")+e;case 4554:return F+l(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,F+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(p(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+D+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?te(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+F)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(45===u(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+z+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return F+e+z+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+z+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+z+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+z+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case B:e.return=te(e.value,e.length);break;case V:return H([w(e,{value:l(e.value,"@","@"+F)})],r);case _:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return H([w(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return H([w(e,{props:[l(t,/:(plac\w+)/,":"+F+"input-$1")]}),w(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),w(e,{props:[l(t,/:(plac\w+)/,z+"input-$1")]})],r)}return""}))}}],re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,i,a=e.stylisPlugins||ne,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,u,d,p,h=[q,(p=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],m=(u=[Q,ee].concat(a,h),d=f(u),function(e,t,n,r){for(var o="",i=0;i<d;i++)o+=u[i](e,t,n,r)||"";return o});i=function(e,t,n,r){c=n,H(K(e?e+"{"+t.styles+"}":t.styles),m),r&&(v.inserted[t.name]=!0)};var v={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return v.sheet.hydrate(l),v}},1907:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6289),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=(0,r.A)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},6289:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},9214:(e,t,n)=>{"use strict";n.d(t,{C:()=>c,E:()=>v,T:()=>d,c:()=>h,h:()=>p,w:()=>u});var r=n(1609),o=n(5655),i=n(41),a=n(5021),s=n(1287),l=r.createContext("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null),c=l.Provider,u=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(l);return e(t,o,n)}))},d=r.createContext({}),p={}.hasOwnProperty,f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",h=function(e,t){var n={};for(var r in t)p.call(t,r)&&(n[r]=t[r]);return n[f]=e,n},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,i.SF)(t,n,r),(0,s.s)((function(){return(0,i.sk)(t,n,r)})),null},v=u((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var s=e[f],l=[o],c="";"string"==typeof e.className?c=(0,i.Rk)(t.registered,l,e.className):null!=e.className&&(c=e.className+" ");var u=(0,a.J)(l,void 0,r.useContext(d));c+=t.key+"-"+u.name;var h={};for(var v in e)p.call(e,v)&&"css"!==v&&v!==f&&(h[v]=e[v]);return h.className=c,n&&(h.ref=n),r.createElement(r.Fragment,null,r.createElement(m,{cache:t,serialized:u,isStringTag:"string"==typeof s}),r.createElement(s,h))}))},7437:(e,t,n)=>{"use strict";n.d(t,{AH:()=>u,Y:()=>l,i7:()=>d,mL:()=>c});var r=n(9214),o=n(1609),i=n(41),a=n(1287),s=n(5021),l=(n(5655),n(4146),function(e,t){var n=arguments;if(null==t||!r.h.call(t,"css"))return o.createElement.apply(void 0,n);var i=n.length,a=new Array(i);a[0]=r.E,a[1]=(0,r.c)(e,t);for(var s=2;s<i;s++)a[s]=n[s];return o.createElement.apply(null,a)}),c=(0,r.w)((function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,o.useContext(r.T)),c=o.useRef();return(0,a.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),c.current=[n,r],function(){n.flush()}}),[t]),(0,a.i)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,i.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null}));function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.J)(t)}var d=function(){var e=u.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},5021:(e,t,n)=>{"use strict";n.d(t,{J:()=>v});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(6289),i=!1,a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},u=(0,o.A)((function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return h={name:t,styles:n,next:h},t}))}return 1===r[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"},p="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function f(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return h={name:o.name,styles:o.styles,next:h},o.name;var a=n;if(void 0!==a.styles){var s=a.next;if(void 0!==s)for(;void 0!==s;)h={name:s.name,styles:s.styles,next:h},s=s.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=f(e,t,n[o])+";";else for(var a in n){var s=n[a];if("object"!=typeof s){var l=s;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":c(l)&&(r+=u(a)+":"+d(a,l)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&i)throw new Error(p);if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var h=f(e,t,s);switch(a){case"animation":case"animationName":r+=u(a)+":"+h+";";break;default:r+=a+"{"+h+"}"}}else for(var m=0;m<s.length;m++)c(s[m])&&(r+=u(a)+":"+d(a,s[m])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=h,m=n(e);return h=l,f(e,t,m)}}var v=n;if(null==t)return v;var g=t[v];return void 0!==g?g:v}var h,m=/label:\s*([^\s;{]+)\s*(;|$)/g;function v(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";h=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=f(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=f(n,t,e[a]),r&&(o+=i[a]);m.lastIndex=0;for(var s,l="";null!==(s=m.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:h}}},1287:(e,t,n)=>{"use strict";n.d(t,{i:()=>a,s:()=>i});var r=n(1609),o=!!r.useInsertionEffect&&r.useInsertionEffect,i=o||function(e){return e()},a=o||r.useLayoutEffect},41:(e,t,n)=>{"use strict";function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}n.d(t,{Rk:()=>r,SF:()=>o,sk:()=>i});var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},2389:(e,t,n)=>{"use strict";n.d(t,{A:()=>Rn});var r=n(8168),o=n(45),i=n(1609),a=n.n(i),s=n(53);function l(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function c(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}var u=i.createContext();const d=u;var p=n(4146),f=n.n(p),h=n(2611);function m(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var v=n(6061);var g=n(2851),y=["xs","sm","md","lg","xl"],b=n(4467);function x(e,t,n){var o;return(0,r.A)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.A)({paddingLeft:t(2),paddingRight:t(2)},n,(0,b.A)({},e.up("sm"),(0,r.A)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(o={minHeight:56},(0,b.A)(o,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,b.A)(o,e.up("sm"),{minHeight:64}),o)},n)}const A={black:"#000",white:"#fff"},w={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},k="#7986cb",S="#3f51b5",C="#303f9f",E="#ff4081",O="#f50057",R="#c51162",P="#e57373",$="#f44336",M="#d32f2f",T="#ffb74d",I="#ff9800",N="#f57c00",j="#64b5f6",L="#2196f3",z="#1976d2",D="#81c784",F="#4caf50",W="#388e3c";function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function B(e){if(e.type)return e;if("#"===e.charAt(0))return B(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(l(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function V(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function H(e){var t="hsl"===(e=B(e)).type?B(function(e){var t=(e=B(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),V({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}var q={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:A.white,default:w[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},K={text:{primary:A.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:w[800],default:"#303030"},action:{active:A.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function U(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=B(e),t=_(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return V(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=B(e),t=_(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return V(e)}(e.main,i)))}function X(e){return Math.round(1e5*e)/1e5}function G(e){return X(e)}var Y={textTransform:"uppercase"},J='"Roboto", "Helvetica", "Arial", sans-serif';function Z(e,t){var n="function"==typeof t?t(e):t,i=n.fontFamily,a=void 0===i?J:i,s=n.fontSize,l=void 0===s?14:s,c=n.fontWeightLight,u=void 0===c?300:c,d=n.fontWeightRegular,p=void 0===d?400:d,f=n.fontWeightMedium,h=void 0===f?500:f,m=n.fontWeightBold,v=void 0===m?700:m,y=n.htmlFontSize,b=void 0===y?16:y,x=n.allVariants,A=n.pxToRem,w=(0,o.A)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),k=l/14,S=A||function(e){return"".concat(e/b*k,"rem")},C=function(e,t,n,o,i){return(0,r.A)({fontFamily:a,fontWeight:e,fontSize:S(t),lineHeight:n},a===J?{letterSpacing:"".concat(X(o/t),"em")}:{},i,x)},E={h1:C(u,96,1.167,-1.5),h2:C(u,60,1.2,-.5),h3:C(p,48,1.167,0),h4:C(p,34,1.235,.25),h5:C(p,24,1.334,0),h6:C(h,20,1.6,.15),subtitle1:C(p,16,1.75,.15),subtitle2:C(h,14,1.57,.1),body1:C(p,16,1.5,.15),body2:C(p,14,1.43,.15),button:C(h,14,1.75,.4,Y),caption:C(p,12,1.66,.4),overline:C(p,12,2.66,1,Y)};return(0,g.A)((0,r.A)({htmlFontSize:b,pxToRem:S,round:G,fontFamily:a,fontSize:l,fontWeightLight:u,fontWeightRegular:p,fontWeightMedium:h,fontWeightBold:v},E),w,{clone:!1})}function Q(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const ee=["none",Q(0,2,1,-1,0,1,1,0,0,1,3,0),Q(0,3,1,-2,0,2,2,0,0,1,5,0),Q(0,3,3,-2,0,3,4,0,0,1,8,0),Q(0,2,4,-1,0,4,5,0,0,1,10,0),Q(0,3,5,-1,0,5,8,0,0,1,14,0),Q(0,3,5,-1,0,6,10,0,0,1,18,0),Q(0,4,5,-2,0,7,10,1,0,2,16,1),Q(0,5,5,-3,0,8,10,1,0,3,14,2),Q(0,5,6,-3,0,9,12,1,0,3,16,2),Q(0,6,6,-3,0,10,14,1,0,4,18,3),Q(0,6,7,-4,0,11,15,1,0,4,20,3),Q(0,7,8,-4,0,12,17,2,0,5,22,4),Q(0,7,8,-4,0,13,19,2,0,5,24,4),Q(0,7,9,-4,0,14,21,2,0,5,26,4),Q(0,8,9,-5,0,15,22,2,0,6,28,5),Q(0,8,10,-5,0,16,24,2,0,6,30,5),Q(0,8,11,-5,0,17,26,2,0,6,32,5),Q(0,9,11,-5,0,18,28,2,0,7,34,6),Q(0,9,12,-6,0,19,29,2,0,7,36,6),Q(0,10,13,-6,0,20,31,3,0,8,38,7),Q(0,10,13,-6,0,21,33,3,0,8,40,7),Q(0,10,14,-6,0,22,35,3,0,8,42,7),Q(0,11,14,-7,0,23,36,3,0,9,44,8),Q(0,11,15,-7,0,24,38,3,0,9,46,8)],te={borderRadius:4};var ne=n(296),re=n(2284),oe={xs:0,sm:600,md:960,lg:1280,xl:1920},ie={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(oe[e],"px)")}};const ae=function(e,t){return t?(0,g.A)(e,t,{clone:!1}):e};var se,le,ce={m:"margin",p:"padding"},ue={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},de={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pe=(se=function(e){if(e.length>2){if(!de[e])return[e];e=de[e]}var t=e.split(""),n=(0,ne.A)(t,2),r=n[0],o=n[1],i=ce[r],a=ue[o]||"";return Array.isArray(a)?a.map((function(e){return i+e})):[i+a]},le={},function(e){return void 0===le[e]&&(le[e]=se(e)),le[e]}),fe=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function he(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function me(e){var t=he(e.theme);return Object.keys(e).map((function(n){if(-1===fe.indexOf(n))return null;var r=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}(pe(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||ie;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===(0,re.A)(t)){var o=e.theme.breakpoints||ie;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(ae,{})}me.propTypes={},me.filterProps=fe;var ve={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ge={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ye(e){return"".concat(Math.round(e),"ms")}const be={easing:ve,duration:ge,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?ge.standard:n,i=t.easing,a=void 0===i?ve.easeInOut:i,s=t.delay,l=void 0===s?0:s;return(0,o.A)(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:ye(r)," ").concat(a," ").concat("string"==typeof l?l:ye(l))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},xe={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Ae=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,i=e.mixins,a=void 0===i?{}:i,s=e.palette,c=void 0===s?{}:s,u=e.spacing,d=e.typography,p=void 0===d?{}:d,f=(0,o.A)(e,["breakpoints","mixins","palette","spacing","typography"]),h=function(e){var t=e.primary,n=void 0===t?{light:k,main:S,dark:C}:t,i=e.secondary,a=void 0===i?{light:E,main:O,dark:R}:i,s=e.error,c=void 0===s?{light:P,main:$,dark:M}:s,u=e.warning,d=void 0===u?{light:T,main:I,dark:N}:u,p=e.info,f=void 0===p?{light:j,main:L,dark:z}:p,h=e.success,m=void 0===h?{light:D,main:F,dark:W}:h,v=e.type,y=void 0===v?"light":v,b=e.contrastThreshold,x=void 0===b?3:b,_=e.tonalOffset,B=void 0===_?.2:_,V=(0,o.A)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function X(e){var t=function(e,t){var n=H(e),r=H(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,K.text.primary)>=x?K.text.primary:q.text.primary;return t}var G=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,r.A)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(l(4,t));if("string"!=typeof e.main)throw new Error(l(5,JSON.stringify(e.main)));return U(e,"light",n,B),U(e,"dark",o,B),e.contrastText||(e.contrastText=X(e.main)),e},Y={dark:K,light:q};return(0,g.A)((0,r.A)({common:A,type:y,primary:G(n),secondary:G(a,"A400","A200","A700"),error:G(c),warning:G(d),info:G(f),success:G(m),grey:w,contrastThreshold:x,getContrastText:X,augmentColor:G,tonalOffset:B},Y[y]),V)}(c),m=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,i=e.unit,a=void 0===i?"px":i,s=e.step,l=void 0===s?5:s,c=(0,o.A)(e,["values","unit","step"]);function u(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(a,")")}function d(e,t){var r=y.indexOf(t);return r===y.length-1?u(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(a,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[y[r+1]]?n[y[r+1]]:t)-l/100).concat(a,")")}return(0,r.A)({keys:y,values:n,up:u,down:function(e){var t=y.indexOf(e)+1,r=n[y[t]];return t===y.length?u("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-l/100).concat(a,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},c)}(n),v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=he({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}(u),b=(0,g.A)({breakpoints:m,direction:"ltr",mixins:x(m,v,a),overrides:{},palette:h,props:{},shadows:ee,typography:Z(h,p),spacing:v,shape:te,transitions:be,zIndex:xe},f),_=arguments.length,B=new Array(_>1?_-1:0),V=1;V<_;V++)B[V-1]=arguments[V];return B.reduce((function(e,t){return(0,g.A)(e,t)}),b)}(),we=function(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,s=t.withTheme,l=void 0!==s&&s,c=t.name,u=(0,o.A)(t,["defaultTheme","withTheme","name"]),d=c,p=(0,h.A)(e,(0,r.A)({defaultTheme:i,Component:n,name:c||n.displayName,classNamePrefix:d},u)),g=a().forwardRef((function(e,t){e.classes;var s,u=e.innerRef,d=(0,o.A)(e,["classes","innerRef"]),f=p((0,r.A)({},n.defaultProps,e)),h=d;return("string"==typeof c||l)&&(s=(0,v.A)()||i,c&&(h=m({theme:s,name:c,props:d})),l&&!h.theme&&(h.theme=s)),a().createElement(n,(0,r.A)({ref:u||t,classes:f},h))}));return f()(g,n),g}}(e,(0,r.A)({defaultTheme:Ae},t))};function ke(e){if("string"!=typeof e)throw new Error(l(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Se(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ce(e,t){return i.useMemo((function(){return null==e&&null==t?null:function(n){Se(e,n),Se(t,n)}}),[e,t])}function Ee(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return r.clear=function(){clearTimeout(t)},r}function Oe(e,t){return parseInt(e[t],10)||0}var Re="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,Pe={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const $e=i.forwardRef((function(e,t){var n=e.onChange,a=e.rows,s=e.rowsMax,l=e.rowsMin,c=e.maxRows,u=e.minRows,d=void 0===u?1:u,p=e.style,f=e.value,h=(0,o.A)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),m=c||s,v=a||l||d,g=i.useRef(null!=f).current,y=i.useRef(null),b=Ce(t,y),x=i.useRef(null),A=i.useRef(0),w=i.useState({}),k=w[0],S=w[1],C=i.useCallback((function(){var t=y.current,n=window.getComputedStyle(t),r=x.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],i=Oe(n,"padding-bottom")+Oe(n,"padding-top"),a=Oe(n,"border-bottom-width")+Oe(n,"border-top-width"),s=r.scrollHeight-i;r.value="x";var l=r.scrollHeight-i,c=s;v&&(c=Math.max(Number(v)*l,c)),m&&(c=Math.min(Number(m)*l,c));var u=(c=Math.max(c,l))+("border-box"===o?i+a:0),d=Math.abs(c-s)<=1;S((function(e){return A.current<20&&(u>0&&Math.abs((e.outerHeightStyle||0)-u)>1||e.overflow!==d)?(A.current+=1,{overflow:d,outerHeightStyle:u}):e}))}),[m,v,e.placeholder]);return i.useEffect((function(){var e=Ee((function(){A.current=0,C()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[C]),Re((function(){C()})),i.useEffect((function(){A.current=0}),[f]),i.createElement(i.Fragment,null,i.createElement("textarea",(0,r.A)({value:f,onChange:function(e){A.current=0,g||C(),n&&n(e)},ref:b,rows:v,style:(0,r.A)({height:k.outerHeightStyle,overflow:k.overflow?"hidden":null},p)},h)),i.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:x,tabIndex:-1,style:(0,r.A)({},Pe,p)}))}));function Me(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Te(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Me(e.value)&&""!==e.value||t&&Me(e.defaultValue)&&""!==e.defaultValue)}var Ie="undefined"==typeof window?i.useEffect:i.useLayoutEffect,Ne=i.forwardRef((function(e,t){var n=e["aria-describedby"],a=e.autoComplete,p=e.autoFocus,f=e.classes,h=e.className,m=(e.color,e.defaultValue),v=e.disabled,g=e.endAdornment,y=(e.error,e.fullWidth),b=void 0!==y&&y,x=e.id,A=e.inputComponent,w=void 0===A?"input":A,k=e.inputProps,S=void 0===k?{}:k,C=e.inputRef,E=(e.margin,e.multiline),O=void 0!==E&&E,R=e.name,P=e.onBlur,$=e.onChange,M=e.onClick,T=e.onFocus,I=e.onKeyDown,N=e.onKeyUp,j=e.placeholder,L=e.readOnly,z=e.renderSuffix,D=e.rows,F=e.rowsMax,W=e.rowsMin,_=e.maxRows,B=e.minRows,V=e.startAdornment,H=e.type,q=void 0===H?"text":H,K=e.value,U=(0,o.A)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),X=null!=S.value?S.value:K,G=i.useRef(null!=X).current,Y=i.useRef(),J=i.useCallback((function(e){}),[]),Z=Ce(S.ref,J),Q=Ce(C,Z),ee=Ce(Y,Q),te=i.useState(!1),ne=te[0],re=te[1],oe=i.useContext(u),ie=c({props:e,muiFormControl:oe,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});ie.focused=oe?oe.focused:ne,i.useEffect((function(){!oe&&v&&ne&&(re(!1),P&&P())}),[oe,v,ne,P]);var ae=oe&&oe.onFilled,se=oe&&oe.onEmpty,le=i.useCallback((function(e){Te(e)?ae&&ae():se&&se()}),[ae,se]);Ie((function(){G&&le({value:X})}),[X,le,G]),i.useEffect((function(){le(Y.current)}),[]);var ce=w,ue=(0,r.A)({},S,{ref:ee});return"string"!=typeof ce?ue=(0,r.A)({inputRef:ee,type:q},ue,{ref:null}):O?!D||_||B||F||W?(ue=(0,r.A)({minRows:D||B,rowsMax:F,maxRows:_},ue),ce=$e):ce="textarea":ue=(0,r.A)({type:q},ue),i.useEffect((function(){oe&&oe.setAdornedStart(Boolean(V))}),[oe,V]),i.createElement("div",(0,r.A)({className:(0,s.A)(f.root,f["color".concat(ke(ie.color||"primary"))],h,ie.disabled&&f.disabled,ie.error&&f.error,b&&f.fullWidth,ie.focused&&f.focused,oe&&f.formControl,O&&f.multiline,V&&f.adornedStart,g&&f.adornedEnd,"dense"===ie.margin&&f.marginDense),onClick:function(e){Y.current&&e.currentTarget===e.target&&Y.current.focus(),M&&M(e)},ref:t},U),V,i.createElement(d.Provider,{value:null},i.createElement(ce,(0,r.A)({"aria-invalid":ie.error,"aria-describedby":n,autoComplete:a,autoFocus:p,defaultValue:m,disabled:ie.disabled,id:x,onAnimationStart:function(e){le("mui-auto-fill-cancel"===e.animationName?Y.current:{value:"x"})},name:R,placeholder:j,readOnly:L,required:ie.required,rows:D,value:X,onKeyDown:I,onKeyUp:N},ue,{className:(0,s.A)(f.input,S.className,ie.disabled&&f.disabled,O&&f.inputMultiline,ie.hiddenLabel&&f.inputHiddenLabel,V&&f.inputAdornedStart,g&&f.inputAdornedEnd,"search"===q&&f.inputTypeSearch,"dense"===ie.margin&&f.inputMarginDense),onBlur:function(e){P&&P(e),S.onBlur&&S.onBlur(e),oe&&oe.onBlur?oe.onBlur(e):re(!1)},onChange:function(e){if(!G){var t=e.target||Y.current;if(null==t)throw new Error(l(1));le({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];S.onChange&&S.onChange.apply(S,[e].concat(r)),$&&$.apply(void 0,[e].concat(r))},onFocus:function(e){ie.disabled?e.stopPropagation():(T&&T(e),S.onFocus&&S.onFocus(e),oe&&oe.onFocus?oe.onFocus(e):re(!0))}}))),g,z?z((0,r.A)({},ie,{startAdornment:V})):null)}));const je=we((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},i={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:(0,r.A)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(Ne);var Le=i.forwardRef((function(e,t){var n=e.disableUnderline,a=e.classes,l=e.fullWidth,c=void 0!==l&&l,u=e.inputComponent,d=void 0===u?"input":u,p=e.multiline,f=void 0!==p&&p,h=e.type,m=void 0===h?"text":h,v=(0,o.A)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(je,(0,r.A)({classes:(0,r.A)({},a,{root:(0,s.A)(a.root,!n&&a.underline),underline:null}),fullWidth:c,inputComponent:d,multiline:f,ref:t,type:m},v))}));Le.muiName="Input";const ze=we((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(Le);var De=i.forwardRef((function(e,t){var n=e.disableUnderline,a=e.classes,l=e.fullWidth,c=void 0!==l&&l,u=e.inputComponent,d=void 0===u?"input":u,p=e.multiline,f=void 0!==p&&p,h=e.type,m=void 0===h?"text":h,v=(0,o.A)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(je,(0,r.A)({classes:(0,r.A)({},a,{root:(0,s.A)(a.root,!n&&a.underline),underline:null}),fullWidth:c,inputComponent:d,multiline:f,ref:t,type:m},v))}));De.muiName="Input";const Fe=we((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(De);function We(){return(0,v.A)()||Ae}var _e=i.forwardRef((function(e,t){e.children;var n=e.classes,a=e.className,l=e.label,c=e.labelWidth,u=e.notched,d=e.style,p=(0,o.A)(e,["children","classes","className","label","labelWidth","notched","style"]),f="rtl"===We().direction?"right":"left";if(void 0!==l)return i.createElement("fieldset",(0,r.A)({"aria-hidden":!0,className:(0,s.A)(n.root,a),ref:t,style:d},p),i.createElement("legend",{className:(0,s.A)(n.legendLabelled,u&&n.legendNotched)},l?i.createElement("span",null,l):i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var h=c>0?.75*c+8:.01;return i.createElement("fieldset",(0,r.A)({"aria-hidden":!0,style:(0,r.A)((0,b.A)({},"padding".concat(ke(f)),8),d),className:(0,s.A)(n.root,a),ref:t},p),i.createElement("legend",{className:n.legend,style:{width:u?h:.01}},i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))}));const Be=we((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(_e);var Ve=i.forwardRef((function(e,t){var n=e.classes,a=e.fullWidth,l=void 0!==a&&a,c=e.inputComponent,u=void 0===c?"input":c,d=e.label,p=e.labelWidth,f=void 0===p?0:p,h=e.multiline,m=void 0!==h&&h,v=e.notched,g=e.type,y=void 0===g?"text":g,b=(0,o.A)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return i.createElement(je,(0,r.A)({renderSuffix:function(e){return i.createElement(Be,{className:n.notchedOutline,label:d,labelWidth:f,notched:void 0!==v?v:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,r.A)({},n,{root:(0,s.A)(n.root,n.underline),notchedOutline:null}),fullWidth:l,inputComponent:u,multiline:m,ref:t,type:y},b))}));Ve.muiName="Input";const He=we((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(Ve);function qe(){return i.useContext(d)}var Ke=i.forwardRef((function(e,t){var n=e.children,a=e.classes,l=e.className,u=(e.color,e.component),d=void 0===u?"label":u,p=(e.disabled,e.error,e.filled,e.focused,e.required,(0,o.A)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),f=c({props:e,muiFormControl:qe(),states:["color","required","focused","disabled","error","filled"]});return i.createElement(d,(0,r.A)({className:(0,s.A)(a.root,a["color".concat(ke(f.color||"primary"))],l,f.disabled&&a.disabled,f.error&&a.error,f.filled&&a.filled,f.focused&&a.focused,f.required&&a.required),ref:t},p),n,f.required&&i.createElement("span",{"aria-hidden":!0,className:(0,s.A)(a.asterisk,f.error&&a.error)}," ","*"))}));const Ue=we((function(e){return{root:(0,r.A)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(Ke);var Xe=i.forwardRef((function(e,t){var n=e.classes,a=e.className,l=e.disableAnimation,u=void 0!==l&&l,d=(e.margin,e.shrink),p=(e.variant,(0,o.A)(e,["classes","className","disableAnimation","margin","shrink","variant"])),f=qe(),h=d;void 0===h&&f&&(h=f.filled||f.focused||f.adornedStart);var m=c({props:e,muiFormControl:f,states:["margin","variant"]});return i.createElement(Ue,(0,r.A)({"data-shrink":h,className:(0,s.A)(n.root,a,f&&n.formControl,!u&&n.animated,h&&n.shrink,"dense"===m.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[m.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},p))}));const Ge=we((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(Xe);function Ye(e,t){return i.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}var Je=i.forwardRef((function(e,t){var n=e.children,a=e.classes,l=e.className,c=e.color,u=void 0===c?"primary":c,p=e.component,f=void 0===p?"div":p,h=e.disabled,m=void 0!==h&&h,v=e.error,g=void 0!==v&&v,y=e.fullWidth,b=void 0!==y&&y,x=e.focused,A=e.hiddenLabel,w=void 0!==A&&A,k=e.margin,S=void 0===k?"none":k,C=e.required,E=void 0!==C&&C,O=e.size,R=e.variant,P=void 0===R?"standard":R,$=(0,o.A)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),M=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){if(Ye(t,["Input","Select"])){var n=Ye(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),T=M[0],I=M[1],N=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){Ye(t,["Input","Select"])&&Te(t.props,!0)&&(e=!0)})),e})),j=N[0],L=N[1],z=i.useState(!1),D=z[0],F=z[1],W=void 0!==x?x:D;m&&W&&F(!1);var _=i.useCallback((function(){L(!0)}),[]),B={adornedStart:T,setAdornedStart:I,color:u,disabled:m,error:g,filled:j,focused:W,fullWidth:b,hiddenLabel:w,margin:("small"===O?"dense":void 0)||S,onBlur:function(){F(!1)},onEmpty:i.useCallback((function(){L(!1)}),[]),onFilled:_,onFocus:function(){F(!0)},registerEffect:void 0,required:E,variant:P};return i.createElement(d.Provider,{value:B},i.createElement(f,(0,r.A)({className:(0,s.A)(a.root,l,"none"!==S&&a["margin".concat(ke(S))],b&&a.fullWidth),ref:t},$),n))}));const Ze=we({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(Je);var Qe=i.forwardRef((function(e,t){var n=e.children,a=e.classes,l=e.className,u=e.component,d=void 0===u?"p":u,p=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,(0,o.A)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),f=c({props:e,muiFormControl:qe(),states:["variant","margin","disabled","error","filled","focused","required"]});return i.createElement(d,(0,r.A)({className:(0,s.A)(a.root,("filled"===f.variant||"outlined"===f.variant)&&a.contained,l,f.disabled&&a.disabled,f.error&&a.error,f.filled&&a.filled,f.focused&&a.focused,f.required&&a.required,"dense"===f.margin&&a.marginDense),ref:t},p)," "===n?i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)}));const et=we((function(e){return{root:(0,r.A)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(Qe);var tt=n(3043);function nt(e){return e&&e.ownerDocument||document}n(4363);var rt=n(5795),ot=n.n(rt);function it(e){return nt(e).defaultView||window}function at(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}var st="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;const lt=i.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,a=void 0!==o&&o,s=e.onRendered,l=i.useState(null),c=l[0],u=l[1],d=Ce(i.isValidElement(n)?n.ref:null,t);return st((function(){a||u(function(e){return e="function"==typeof e?e():e,rt.findDOMNode(e)}(r)||document.body)}),[r,a]),st((function(){if(c&&!a)return Se(t,c),function(){Se(t,null)}}),[t,c,a]),st((function(){s&&(c||a)&&s()}),[s,c,a]),a?i.isValidElement(n)?i.cloneElement(n,{ref:d}):n:c?rt.createPortal(n,c):c}));var ct="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function ut(e){var t=i.useRef(e);return ct((function(){t.current=e})),i.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}var dt=n(3029),pt=n(2901),ft=n(5458);function ht(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function mt(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vt(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function gt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat((0,ft.A)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&mt(e,o)}))}function yt(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}var bt=function(){function e(){(0,dt.A)(this,e),this.modals=[],this.containers=[]}return(0,pt.A)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&mt(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);gt(t,e.mountNode,e.modalRef,r,!0);var o=yt(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=yt(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=function(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=nt(e);return t.body===e?it(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=ht();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(vt(i)+a,"px"),n=nt(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(vt(e)+a,"px")}))}var s=i.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=yt(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&mt(e.modalRef,!0),gt(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&mt(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();const xt=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,a=void 0!==o&&o,s=e.disableRestoreFocus,l=void 0!==s&&s,c=e.getDoc,u=e.isEnabled,d=e.open,p=i.useRef(),f=i.useRef(null),h=i.useRef(null),m=i.useRef(),v=i.useRef(null),g=i.useCallback((function(e){v.current=rt.findDOMNode(e)}),[]),y=Ce(t.ref,g),b=i.useRef();return i.useEffect((function(){b.current=d}),[d]),!b.current&&d&&"undefined"!=typeof window&&(m.current=c().activeElement),i.useEffect((function(){if(d){var e=nt(v.current);r||!v.current||v.current.contains(e.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex",-1),v.current.focus());var t=function(){null!==v.current&&(e.hasFocus()&&!a&&u()&&!p.current?v.current&&!v.current.contains(e.activeElement)&&v.current.focus():p.current=!1)},n=function(t){!a&&u()&&9===t.keyCode&&e.activeElement===v.current&&(p.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}}),[r,a,l,u,d]),i.createElement(i.Fragment,null,i.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),i.cloneElement(t,{ref:y}),i.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))};var At={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};const wt=i.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,s=e.open,l=(0,o.A)(e,["invisible","open"]);return s?i.createElement("div",(0,r.A)({"aria-hidden":!0,ref:t},l,{style:(0,r.A)({},At.root,a?At.invisible:{},l.style)})):null}));var kt=new bt;const St=i.forwardRef((function(e,t){var n=(0,v.A)(),a=m({name:"MuiModal",props:(0,r.A)({},e),theme:n}),s=a.BackdropComponent,l=void 0===s?wt:s,c=a.BackdropProps,u=a.children,d=a.closeAfterTransition,p=void 0!==d&&d,f=a.container,h=a.disableAutoFocus,g=void 0!==h&&h,y=a.disableBackdropClick,b=void 0!==y&&y,x=a.disableEnforceFocus,A=void 0!==x&&x,w=a.disableEscapeKeyDown,k=void 0!==w&&w,S=a.disablePortal,C=void 0!==S&&S,E=a.disableRestoreFocus,O=void 0!==E&&E,R=a.disableScrollLock,P=void 0!==R&&R,$=a.hideBackdrop,M=void 0!==$&&$,T=a.keepMounted,I=void 0!==T&&T,N=a.manager,j=void 0===N?kt:N,L=a.onBackdropClick,z=a.onClose,D=a.onEscapeKeyDown,F=a.onRendered,W=a.open,_=(0,o.A)(a,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),B=i.useState(!0),V=B[0],H=B[1],q=i.useRef({}),K=i.useRef(null),U=i.useRef(null),X=Ce(U,t),G=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(a),Y=function(){return nt(K.current)},J=function(){return q.current.modalRef=U.current,q.current.mountNode=K.current,q.current},Z=function(){j.mount(J(),{disableScrollLock:P}),U.current.scrollTop=0},Q=ut((function(){var e=function(e){return e="function"==typeof e?e():e,rt.findDOMNode(e)}(f)||Y().body;j.add(J(),e),U.current&&Z()})),ee=i.useCallback((function(){return j.isTopModal(J())}),[j]),te=ut((function(e){K.current=e,e&&(F&&F(),W&&ee()?Z():mt(U.current,!0))})),ne=i.useCallback((function(){j.remove(J())}),[j]);if(i.useEffect((function(){return function(){ne()}}),[ne]),i.useEffect((function(){W?Q():G&&p||ne()}),[W,ne,G,p,Q]),!I&&!W&&(!G||V))return null;var re=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:xe}),oe={};return void 0===u.props.tabIndex&&(oe.tabIndex=u.props.tabIndex||"-1"),G&&(oe.onEnter=at((function(){H(!1)}),u.props.onEnter),oe.onExited=at((function(){H(!0),p&&ne()}),u.props.onExited)),i.createElement(lt,{ref:te,container:f,disablePortal:C},i.createElement("div",(0,r.A)({ref:X,onKeyDown:function(e){"Escape"===e.key&&ee()&&(D&&D(e),k||(e.stopPropagation(),z&&z(e,"escapeKeyDown")))},role:"presentation"},_,{style:(0,r.A)({},re.root,!W&&V?re.hidden:{},_.style)}),M?null:i.createElement(l,(0,r.A)({open:W,onClick:function(e){e.target===e.currentTarget&&(L&&L(e),!b&&z&&z(e,"backdropClick"))}},c)),i.createElement(xt,{disableEnforceFocus:A,disableAutoFocus:g,disableRestoreFocus:O,getDoc:Y,isEnabled:ee,open:W},i.cloneElement(u,oe))))}));var Ct=n(8587),Et=n(7387);var Ot=n(7241),Rt="unmounted",Pt="exited",$t="entering",Mt="entered",Tt="exiting",It=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Pt,r.appearStatus=$t):o=Mt:o=t.unmountOnExit||t.mountOnEnter?Rt:Pt,r.state={status:o},r.nextCallback=null,r}(0,Et.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Rt?{status:Pt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==$t&&n!==Mt&&(t=$t):n!==$t&&n!==Mt||(t=Tt)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===$t){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ot().findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pt&&this.setState({status:Rt})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[ot().findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;e||n?(this.props.onEnter(i,a),this.safeSetState({status:$t},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Mt},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:Mt},(function(){t.props.onEntered(i)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ot().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Tt},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Pt},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Pt},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ot().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Rt)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,Ct.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(Ot.A.Provider,{value:null},"function"==typeof n?n(e,r):a().cloneElement(a().Children.only(n),r))},t}(a().Component);function Nt(){}It.contextType=Ot.A,It.propTypes={},It.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Nt,onEntering:Nt,onEntered:Nt,onExit:Nt,onExiting:Nt,onExited:Nt},It.UNMOUNTED=Rt,It.EXITED=Pt,It.ENTERING=$t,It.ENTERED=Mt,It.EXITING=Tt;const jt=It;function Lt(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}function zt(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Dt={entering:{opacity:1,transform:zt(1)},entered:{opacity:1,transform:"none"}},Ft=i.forwardRef((function(e,t){var n=e.children,a=e.disableStrictModeCompat,s=void 0!==a&&a,l=e.in,c=e.onEnter,u=e.onEntered,d=e.onEntering,p=e.onExit,f=e.onExited,h=e.onExiting,m=e.style,v=e.timeout,g=void 0===v?"auto":v,y=e.TransitionComponent,b=void 0===y?jt:y,x=(0,o.A)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),A=i.useRef(),w=i.useRef(),k=We(),S=k.unstable_strictMode&&!s,C=i.useRef(null),E=Ce(n.ref,t),O=Ce(S?C:void 0,E),R=function(e){return function(t,n){if(e){var r=S?[C.current,t]:[t,n],o=(0,ne.A)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},P=R(d),$=R((function(e,t){!function(e){e.scrollTop}(e);var n,r=Lt({style:m,timeout:g},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===g?(n=k.transitions.getAutoHeightDuration(e.clientHeight),w.current=n):n=o,e.style.transition=[k.transitions.create("opacity",{duration:n,delay:i}),k.transitions.create("transform",{duration:.666*n,delay:i})].join(","),c&&c(e,t)})),M=R(u),T=R(h),I=R((function(e){var t,n=Lt({style:m,timeout:g},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===g?(t=k.transitions.getAutoHeightDuration(e.clientHeight),w.current=t):t=r,e.style.transition=[k.transitions.create("opacity",{duration:t,delay:o}),k.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=zt(.75),p&&p(e)})),N=R(f);return i.useEffect((function(){return function(){clearTimeout(A.current)}}),[]),i.createElement(b,(0,r.A)({appear:!0,in:l,nodeRef:S?C:void 0,onEnter:$,onEntered:M,onEntering:P,onExit:I,onExited:N,onExiting:T,addEndListener:function(e,t){var n=S?e:t;"auto"===g&&(A.current=setTimeout(n,w.current||0))},timeout:"auto"===g?null:g},x),(function(e,t){return i.cloneElement(n,(0,r.A)({style:(0,r.A)({opacity:0,transform:zt(.75),visibility:"exited"!==e||l?void 0:"hidden"},Dt[e],m,n.props.style),ref:O},t))}))}));Ft.muiSupportAuto=!0;const Wt=Ft;var _t=i.forwardRef((function(e,t){var n=e.classes,a=e.className,l=e.component,c=void 0===l?"div":l,u=e.square,d=void 0!==u&&u,p=e.elevation,f=void 0===p?1:p,h=e.variant,m=void 0===h?"elevation":h,v=(0,o.A)(e,["classes","className","component","square","elevation","variant"]);return i.createElement(c,(0,r.A)({className:(0,s.A)(n.root,a,"outlined"===m?n.outlined:n["elevation".concat(f)],!d&&n.rounded),ref:t},v))}));const Bt=we((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,r.A)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(_t);function Vt(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Ht(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function qt(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Kt(e){return"function"==typeof e?e():e}var Ut=i.forwardRef((function(e,t){var n=e.action,a=e.anchorEl,l=e.anchorOrigin,c=void 0===l?{vertical:"top",horizontal:"left"}:l,u=e.anchorPosition,d=e.anchorReference,p=void 0===d?"anchorEl":d,f=e.children,h=e.classes,m=e.className,v=e.container,g=e.elevation,y=void 0===g?8:g,b=e.getContentAnchorEl,x=e.marginThreshold,A=void 0===x?16:x,w=e.onEnter,k=e.onEntered,S=e.onEntering,C=e.onExit,E=e.onExited,O=e.onExiting,R=e.open,P=e.PaperProps,$=void 0===P?{}:P,M=e.transformOrigin,T=void 0===M?{vertical:"top",horizontal:"left"}:M,I=e.TransitionComponent,N=void 0===I?Wt:I,j=e.transitionDuration,L=void 0===j?"auto":j,z=e.TransitionProps,D=void 0===z?{}:z,F=(0,o.A)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),W=i.useRef(),_=i.useCallback((function(e){if("anchorPosition"===p)return u;var t=Kt(a),n=(t&&1===t.nodeType?t:nt(W.current).body).getBoundingClientRect(),r=0===e?c.vertical:"center";return{top:n.top+Vt(n,r),left:n.left+Ht(n,c.horizontal)}}),[a,c.horizontal,c.vertical,u,p]),B=i.useCallback((function(e){var t=0;if(b&&"anchorEl"===p){var n=b(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[c.vertical,p,b]),V=i.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Vt(e,T.vertical)+t,horizontal:Ht(e,T.horizontal)}}),[T.horizontal,T.vertical]),H=i.useCallback((function(e){var t=B(e),n={width:e.offsetWidth,height:e.offsetHeight},r=V(n,t);if("none"===p)return{top:null,left:null,transformOrigin:qt(r)};var o=_(t),i=o.top-r.vertical,s=o.left-r.horizontal,l=i+n.height,c=s+n.width,u=it(Kt(a)),d=u.innerHeight-A,f=u.innerWidth-A;if(i<A){var h=i-A;i-=h,r.vertical+=h}else if(l>d){var m=l-d;i-=m,r.vertical+=m}if(s<A){var v=s-A;s-=v,r.horizontal+=v}else if(c>f){var g=c-f;s-=g,r.horizontal+=g}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:qt(r)}}),[a,p,_,B,V,A]),q=i.useCallback((function(){var e=W.current;if(e){var t=H(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[H]),K=i.useCallback((function(e){W.current=rt.findDOMNode(e)}),[]);i.useEffect((function(){R&&q()})),i.useImperativeHandle(n,(function(){return R?{updatePosition:function(){q()}}:null}),[R,q]),i.useEffect((function(){if(R){var e=Ee((function(){q()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[R,q]);var U=L;"auto"!==L||N.muiSupportAuto||(U=void 0);var X=v||(a?nt(Kt(a)).body:void 0);return i.createElement(St,(0,r.A)({container:X,open:R,ref:t,BackdropProps:{invisible:!0},className:(0,s.A)(h.root,m)},F),i.createElement(N,(0,r.A)({appear:!0,in:R,onEnter:w,onEntered:k,onExit:C,onExited:E,onExiting:O,timeout:U},D,{onEntering:at((function(e,t){S&&S(e,t),q()}),D.onEntering)}),i.createElement(Bt,(0,r.A)({elevation:y,ref:K},$,{className:(0,s.A)(h.paper,$.className)}),f)))}));const Xt=we({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Ut),Gt=i.createContext({});var Yt=i.forwardRef((function(e,t){var n=e.children,a=e.classes,l=e.className,c=e.component,u=void 0===c?"ul":c,d=e.dense,p=void 0!==d&&d,f=e.disablePadding,h=void 0!==f&&f,m=e.subheader,v=(0,o.A)(e,["children","classes","className","component","dense","disablePadding","subheader"]),g=i.useMemo((function(){return{dense:p}}),[p]);return i.createElement(Gt.Provider,{value:g},i.createElement(u,(0,r.A)({className:(0,s.A)(a.root,l,p&&a.dense,!h&&a.padding,m&&a.subheader),ref:t},v),m,n))}));const Jt=we({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Yt);function Zt(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Qt(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function en(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function tn(e,t,n,r,o,i){for(var a=!1,s=o(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&en(s,i)&&!l)return void s.focus();s=o(e,s,n)}}var nn="undefined"==typeof window?i.useEffect:i.useLayoutEffect;const rn=i.forwardRef((function(e,t){var n=e.actions,a=e.autoFocus,s=void 0!==a&&a,l=e.autoFocusItem,c=void 0!==l&&l,u=e.children,d=e.className,p=e.disabledItemsFocusable,f=void 0!==p&&p,h=e.disableListWrap,m=void 0!==h&&h,v=e.onKeyDown,g=e.variant,y=void 0===g?"selectedMenu":g,b=(0,o.A)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),x=i.useRef(null),A=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});nn((function(){s&&x.current.focus()}),[s]),i.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!x.current.style.width;if(e.clientHeight<x.current.clientHeight&&n){var r="".concat(ht(),"px");x.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,x.current.style.width="calc(100% + ".concat(r,")")}return x.current}}}),[]);var w=Ce(i.useCallback((function(e){x.current=rt.findDOMNode(e)}),[]),t),k=-1;i.Children.forEach(u,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===y&&e.props.selected||-1===k)&&(k=t))}));var S=i.Children.map(u,(function(e,t){if(t===k){var n={};return c&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===y&&(n.tabIndex=0),i.cloneElement(e,n)}return e}));return i.createElement(Jt,(0,r.A)({role:"menu",ref:w,className:d,onKeyDown:function(e){var t=x.current,n=e.key,r=nt(t).activeElement;if("ArrowDown"===n)e.preventDefault(),tn(t,r,m,f,Zt);else if("ArrowUp"===n)e.preventDefault(),tn(t,r,m,f,Qt);else if("Home"===n)e.preventDefault(),tn(t,null,m,f,Zt);else if("End"===n)e.preventDefault(),tn(t,null,m,f,Qt);else if(1===n.length){var o=A.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var s=r&&!o.repeating&&en(r,o);o.previousKeyMatched&&(s||tn(t,r,!1,f,Zt,o))?e.preventDefault():o.previousKeyMatched=!1}v&&v(e)},tabIndex:s?0:-1},b),S)}));var on={vertical:"top",horizontal:"right"},an={vertical:"top",horizontal:"left"},sn=i.forwardRef((function(e,t){var n=e.autoFocus,a=void 0===n||n,l=e.children,c=e.classes,u=e.disableAutoFocusItem,d=void 0!==u&&u,p=e.MenuListProps,f=void 0===p?{}:p,h=e.onClose,m=e.onEntering,v=e.open,g=e.PaperProps,y=void 0===g?{}:g,b=e.PopoverClasses,x=e.transitionDuration,A=void 0===x?"auto":x,w=e.TransitionProps,k=(w=void 0===w?{}:w).onEntering,S=(0,o.A)(w,["onEntering"]),C=e.variant,E=void 0===C?"selectedMenu":C,O=(0,o.A)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),R=We(),P=a&&!d&&v,$=i.useRef(null),M=i.useRef(null),T=-1;i.Children.map(l,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("menu"!==E&&e.props.selected||-1===T)&&(T=t))}));var I=i.Children.map(l,(function(e,t){return t===T?i.cloneElement(e,{ref:function(t){M.current=rt.findDOMNode(t),Se(e.ref,t)}}):e}));return i.createElement(Xt,(0,r.A)({getContentAnchorEl:function(){return M.current},classes:b,onClose:h,TransitionProps:(0,r.A)({onEntering:function(e,t){$.current&&$.current.adjustStyleForScrollbar(e,R),m&&m(e,t),k&&k(e,t)}},S),anchorOrigin:"rtl"===R.direction?on:an,transformOrigin:"rtl"===R.direction?on:an,PaperProps:(0,r.A)({},y,{classes:(0,r.A)({},y.classes,{root:c.paper})}),open:v,ref:t,transitionDuration:A},O),i.createElement(rn,(0,r.A)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),h&&h(e,"tabKeyDown"))},actions:$,autoFocus:a&&(-1===T||d),autoFocusItem:P,variant:E},f,{className:(0,s.A)(c.list,f.className)}),I))}));const ln=we({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(sn);function cn(e,t){return"object"===(0,re.A)(t)&&null!==t?e===t:String(e)===String(t)}var un=i.forwardRef((function(e,t){var n=e["aria-label"],a=e.autoFocus,c=e.autoWidth,u=e.children,d=e.classes,p=e.className,f=e.defaultValue,h=e.disabled,m=e.displayEmpty,v=e.IconComponent,g=e.inputRef,y=e.labelId,b=e.MenuProps,x=void 0===b?{}:b,A=e.multiple,w=e.name,k=e.onBlur,S=e.onChange,C=e.onClose,E=e.onFocus,O=e.onOpen,R=e.open,P=e.readOnly,$=e.renderValue,M=e.SelectDisplayProps,T=void 0===M?{}:M,I=e.tabIndex,N=(e.type,e.value),j=e.variant,L=void 0===j?"standard":j,z=(0,o.A)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),D=function(e){var t=e.controlled,n=e.default,r=i.useRef(void 0!==t).current,o=i.useState(n),a=o[0],s=o[1];return[r?t:a,i.useCallback((function(e){r||s(e)}),[])]}({controlled:N,default:f,name:"Select"}),F=(0,ne.A)(D,2),W=F[0],_=F[1],B=i.useRef(null),V=i.useState(null),H=V[0],q=V[1],K=i.useRef(null!=R).current,U=i.useState(),X=U[0],G=U[1],Y=i.useState(!1),J=Y[0],Z=Y[1],Q=Ce(t,g);i.useImperativeHandle(Q,(function(){return{focus:function(){H.focus()},node:B.current,value:W}}),[H,W]),i.useEffect((function(){a&&H&&H.focus()}),[a,H]),i.useEffect((function(){if(H){var e=nt(H).getElementById(y);if(e){var t=function(){getSelection().isCollapsed&&H.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[y,H]);var ee,te,re=function(e,t){e?O&&O(t):C&&C(t),K||(G(c?null:H.clientWidth),Z(e))},oe=i.Children.toArray(u),ie=function(e){return function(t){var n;if(A||re(!1,t),A){n=Array.isArray(W)?W.slice():[];var r=W.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),W!==n&&(_(n),S&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:w}}),S(t,e)))}},ae=null!==H&&(K?R:J);delete z["aria-invalid"];var se=[],le=!1;(Te({value:W})||m)&&($?ee=$(W):le=!0);var ce=oe.map((function(e){if(!i.isValidElement(e))return null;var t;if(A){if(!Array.isArray(W))throw new Error(l(2));(t=W.some((function(t){return cn(t,e.props.value)})))&&le&&se.push(e.props.children)}else(t=cn(W,e.props.value))&&le&&(te=e.props.children);return i.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:ie(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));le&&(ee=A?se.join(", "):te);var ue,de=X;!c&&K&&H&&(de=H.clientWidth),ue=void 0!==I?I:h?null:0;var pe=T.id||(w?"mui-component-select-".concat(w):void 0);return i.createElement(i.Fragment,null,i.createElement("div",(0,r.A)({className:(0,s.A)(d.root,d.select,d.selectMenu,d[L],p,h&&d.disabled),ref:q,tabIndex:ue,role:"button","aria-disabled":h?"true":void 0,"aria-expanded":ae?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[y,pe].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){P||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),re(!0,e))},onMouseDown:h||P?null:function(e){0===e.button&&(e.preventDefault(),H.focus(),re(!0,e))},onBlur:function(e){!ae&&k&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:W,name:w}}),k(e))},onFocus:E},T,{id:pe}),function(e){return null==e||"string"==typeof e&&!e.trim()}(ee)?i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):ee),i.createElement("input",(0,r.A)({value:Array.isArray(W)?W.join(","):W,name:w,ref:B,"aria-hidden":!0,onChange:function(e){var t=oe.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=oe[t];_(n.props.value),S&&S(e,n)}},tabIndex:-1,className:d.nativeInput,autoFocus:a},z)),i.createElement(v,{className:(0,s.A)(d.icon,d["icon".concat(ke(L))],ae&&d.iconOpen,h&&d.disabled)}),i.createElement(ln,(0,r.A)({id:"menu-".concat(w||""),anchorEl:H,open:ae,onClose:function(e){re(!1,e)}},x,{MenuListProps:(0,r.A)({"aria-labelledby":y,role:"listbox",disableListWrap:!0},x.MenuListProps),PaperProps:(0,r.A)({},x.PaperProps,{style:(0,r.A)({minWidth:de},null!=x.PaperProps?x.PaperProps.style:null)})}),ce))}));const dn=un;var pn=i.forwardRef((function(e,t){var n=e.children,a=e.classes,l=e.className,c=e.color,u=void 0===c?"inherit":c,d=e.component,p=void 0===d?"svg":d,f=e.fontSize,h=void 0===f?"medium":f,m=e.htmlColor,v=e.titleAccess,g=e.viewBox,y=void 0===g?"0 0 24 24":g,b=(0,o.A)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(p,(0,r.A)({className:(0,s.A)(a.root,l,"inherit"!==u&&a["color".concat(ke(u))],"default"!==h&&"medium"!==h&&a["fontSize".concat(ke(h))]),focusable:"false",viewBox:y,color:m,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:t},b),n,v?i.createElement("title",null,v):null)}));pn.muiName="SvgIcon";const fn=we((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(pn),hn=(mn=i.createElement("path",{d:"M7 10l5 5 5-5z"}),(vn=function(e,t){return a().createElement(fn,(0,r.A)({ref:t},e),mn)}).muiName=fn.muiName,a().memo(a().forwardRef(vn)));var mn,vn;const gn=i.forwardRef((function(e,t){var n=e.classes,a=e.className,l=e.disabled,c=e.IconComponent,u=e.inputRef,d=e.variant,p=void 0===d?"standard":d,f=(0,o.A)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return i.createElement(i.Fragment,null,i.createElement("select",(0,r.A)({className:(0,s.A)(n.root,n.select,n[p],a,l&&n.disabled),disabled:l,ref:u||t},f)),e.multiple?null:i.createElement(c,{className:(0,s.A)(n.icon,n["icon".concat(ke(p))],l&&n.disabled)}))}));var yn=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},bn=i.createElement(ze,null),xn=i.forwardRef((function(e,t){var n=e.children,a=e.classes,s=e.IconComponent,l=void 0===s?hn:s,u=e.input,d=void 0===u?bn:u,p=e.inputProps,f=(e.variant,(0,o.A)(e,["children","classes","IconComponent","input","inputProps","variant"])),h=c({props:e,muiFormControl:qe(),states:["variant"]});return i.cloneElement(d,(0,r.A)({inputComponent:gn,inputProps:(0,r.A)({children:n,classes:a,IconComponent:l,variant:h.variant,type:void 0},p,d?d.props.inputProps:{}),ref:t},f))}));xn.muiName="Select",we(yn,{name:"MuiNativeSelect"})(xn);var An=yn,wn=i.createElement(ze,null),kn=i.createElement(Fe,null),Sn=i.forwardRef((function e(t,n){var a=t.autoWidth,s=void 0!==a&&a,l=t.children,u=t.classes,d=t.displayEmpty,p=void 0!==d&&d,f=t.IconComponent,h=void 0===f?hn:f,m=t.id,v=t.input,g=t.inputProps,y=t.label,b=t.labelId,x=t.labelWidth,A=void 0===x?0:x,w=t.MenuProps,k=t.multiple,S=void 0!==k&&k,C=t.native,E=void 0!==C&&C,O=t.onClose,R=t.onOpen,P=t.open,$=t.renderValue,M=t.SelectDisplayProps,T=t.variant,I=void 0===T?"standard":T,N=(0,o.A)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),j=E?gn:dn,L=c({props:t,muiFormControl:qe(),states:["variant"]}).variant||I,z=v||{standard:wn,outlined:i.createElement(He,{label:y,labelWidth:A}),filled:kn}[L];return i.cloneElement(z,(0,r.A)({inputComponent:j,inputProps:(0,r.A)({children:l,IconComponent:h,variant:L,type:void 0,multiple:S},E?{id:m}:{autoWidth:s,displayEmpty:p,labelId:b,MenuProps:w,onClose:O,onOpen:R,open:P,renderValue:$,SelectDisplayProps:(0,r.A)({id:m},M)},g,{classes:g?(0,tt.A)({baseClasses:u,newClasses:g.classes,Component:e}):u},v?v.props.inputProps:{}),ref:n},N))}));Sn.muiName="Select";const Cn=we(An,{name:"MuiSelect"})(Sn);var En={standard:ze,filled:Fe,outlined:He},On=i.forwardRef((function(e,t){var n=e.autoComplete,a=e.autoFocus,l=void 0!==a&&a,c=e.children,u=e.classes,d=e.className,p=e.color,f=void 0===p?"primary":p,h=e.defaultValue,m=e.disabled,v=void 0!==m&&m,g=e.error,y=void 0!==g&&g,b=e.FormHelperTextProps,x=e.fullWidth,A=void 0!==x&&x,w=e.helperText,k=e.hiddenLabel,S=e.id,C=e.InputLabelProps,E=e.inputProps,O=e.InputProps,R=e.inputRef,P=e.label,$=e.multiline,M=void 0!==$&&$,T=e.name,I=e.onBlur,N=e.onChange,j=e.onFocus,L=e.placeholder,z=e.required,D=void 0!==z&&z,F=e.rows,W=e.rowsMax,_=e.maxRows,B=e.minRows,V=e.select,H=void 0!==V&&V,q=e.SelectProps,K=e.type,U=e.value,X=e.variant,G=void 0===X?"standard":X,Y=(0,o.A)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]),J={};if("outlined"===G&&(C&&void 0!==C.shrink&&(J.notched=C.shrink),P)){var Z,Q=null!==(Z=null==C?void 0:C.required)&&void 0!==Z?Z:D;J.label=i.createElement(i.Fragment,null,P,Q&&" *")}H&&(q&&q.native||(J.id=void 0),J["aria-describedby"]=void 0);var ee=w&&S?"".concat(S,"-helper-text"):void 0,te=P&&S?"".concat(S,"-label"):void 0,ne=En[G],re=i.createElement(ne,(0,r.A)({"aria-describedby":ee,autoComplete:n,autoFocus:l,defaultValue:h,fullWidth:A,multiline:M,name:T,rows:F,rowsMax:W,maxRows:_,minRows:B,type:K,value:U,id:S,inputRef:R,onBlur:I,onChange:N,onFocus:j,placeholder:L,inputProps:E},J,O));return i.createElement(Ze,(0,r.A)({className:(0,s.A)(u.root,d),disabled:v,error:y,fullWidth:A,hiddenLabel:k,ref:t,required:D,color:f,variant:G},Y),P&&i.createElement(Ge,(0,r.A)({htmlFor:S,id:te},C),P),H?i.createElement(Cn,(0,r.A)({"aria-describedby":ee,id:S,labelId:te,value:U,input:re},q),c):re,w&&i.createElement(et,(0,r.A)({id:ee},b),w))}));const Rn=we({root:{}},{name:"MuiTextField"})(On)},2611:(e,t,n)=>{"use strict";n.d(t,{A:()=>on});var r=n(45),o=n(8168),i=n(1609),a=n.n(i),s="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};const l="object"===("undefined"==typeof window?"undefined":s(window))&&"object"===("undefined"==typeof document?"undefined":s(document))&&9===document.nodeType;var c=n(2901),u=n(7387),d=n(9417),p=n(8587),f={}.constructor;function h(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(h);if(e.constructor!==f)return e;var t={};for(var n in e)t[n]=h(e[n]);return t}function m(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=h(t);return r.plugins.onCreateRule(e,o,n)||(e[0],null)}var v=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},g=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=v(e[n]," ");else t=v(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function y(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function b(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function x(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=y(n),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var f=d[p];null!=f&&(r&&(r+=l),r+=b(p+":"+c+g(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=b(h+":"+c+g(m)+";",i))}for(var v in t){var x=t[v];null!=x&&"fallbacks"!==v&&(r&&(r+=l),r+=b(v+":"+c+g(x)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),b(""+e+c+"{"+r,--i)+b("}",i)):r}var A=/([[\].#*$><+~=|^:(),"'`\s])/g,w="undefined"!=typeof CSS&&CSS.escape,k=function(e){return w?w(e):e.replace(A,"\\$1")},S=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),C=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l((0,d.A)((0,d.A)(o)),s),o.selectorText="."+k(o.id)),o}(0,u.A)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=g(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,o.A)({},e,{allowEmpty:!0}):e;return x(this.selectorText,this.style,n)},(0,c.A)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(S),E={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new C(e,t,n)}},O={indent:1,children:!0},R=/@([\w-]+)/,P=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(R);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Q((0,o.A)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=O);var t=y(e).linebreak;if(null==e.indent&&(e.indent=O.indent),null==e.children&&(e.children=O.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),$=/@container|@media|@supports\s+/,M={onCreateRule:function(e,t,n){return $.test(e)?new P(e,t,n):null}},T={indent:1,children:!0},I=/@keyframes\s+([\w-]+)/,N=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(I);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,s=n.generateId;for(var l in this.id=!1===i?this.name:k(s(this,a)),this.rules=new Q((0,o.A)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,o.A)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=T);var t=y(e).linebreak;if(null==e.indent&&(e.indent=T.indent),null==e.children&&(e.children=T.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),j=/@keyframes\s+/,L=/\$([\w-]+)/g,z=function(e,t){return"string"==typeof e?e.replace(L,(function(e,n){return n in t?t[n]:e})):e},D=function(e,t,n){var r=e[t],o=z(r,n);o!==r&&(e[t]=o)},F={onCreateRule:function(e,t,n){return"string"==typeof e&&j.test(e)?new N(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&D(e,"animation-name",n.keyframes),"animation"in e&&D(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return z(e,r.keyframes);default:return e}}},W=function(e){function t(){return e.apply(this,arguments)||this}return(0,u.A)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,o.A)({},e,{allowEmpty:!0}):e;return x(this.key,this.style,n)},t}(S),_={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new W(e,t,n):null}},B=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=y(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=x(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return x(this.at,this.style,e)},e}(),V=/@font-face/,H={onCreateRule:function(e,t,n){return V.test(e)?new B(e,t,n):null}},q=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return x(this.key,this.style,e)},e}(),K={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new q(e,t,n):null}},U=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),X={"@charset":!0,"@import":!0,"@namespace":!0},G={onCreateRule:function(e,t,n){return e in X?new U(e,t,n):null}},Y=[E,M,F,_,H,K,G],J={process:!0},Z={force:!0,process:!0},Q=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,a=r.sheet,s=r.jss,l=r.Renderer,c=r.generateId,u=r.scoped,d=(0,o.A)({classes:this.classes,parent:i,sheet:a,jss:s,Renderer:l,generateId:c,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=t,p in this.classes&&(d.selector="."+k(this.classes[p]));var f=m(p,t,d);if(!f)return null;this.register(f);var h=void 0===d.index?this.index.length:d.index;return this.index.splice(h,0,f),f},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var a=n;return-1!==i&&(a=(0,o.A)({},n,{index:i})),this.add(e,t,a)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof C?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof N&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof C?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof N&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=J);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,Z)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,Z)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=y(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),ee=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,o.A)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Q(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),te=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),ne=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,p.A)(t,["attached"]),o=y(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},(0,c.A)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),re=new ne,oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ie="2f1acc6c3a606b082e5eef5e54414ffb";null==oe[ie]&&(oe[ie]=0);var ae=oe[ie]++,se=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+ae+o+t:i+n.key+"-"+ae+(o?"-"+o:"")+"-"+t}},le=function(e){var t;return function(){return t||(t=e()),t}},ce=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ue=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=g(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},de=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},pe=function(e,t){return e.selectorText=t,e.selectorText===t},fe=le((function(){return document.querySelector("head")}));var he=le((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),me=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},ve=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ge=function(){function e(e){this.getPropertyValue=ce,this.setProperty=ue,this.removeProperty=de,this.setSelector=pe,this.hasInsertedRules=!1,this.cssRules=[],e&&re.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=he();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=re.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=fe(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else fe().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=ve(n,t);if(!1===(o=me(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=ve(n,t),l=me(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof ee&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),ye=0,be=function(){function e(e){this.id=ye++,this.version="10.10.0",this.plugins=new te,this.options={id:{minify:!1},createGenerateId:se,Renderer:l?ge:null,plugins:[]},this.generateId=se({minify:!1});for(var t=0;t<Y.length;t++)this.plugins.use(Y[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,o.A)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===re.index?0:re.index+1);var r=new ee(e,(0,o.A)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),re.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=(0,o.A)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=m(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),xe=function(e){return new be(e)},Ae="object"==typeof CSS&&null!=CSS&&"number"in CSS;function we(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=we(r);i&&(t||(t={}),t[n]=i)}}return t}xe();var ke=n(3043),Se={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}};const Ce=Se;var Ee=n(6061);const Oe="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var Re=["checked","disabled","error","focused","focusVisible","required","expanded","selected"],Pe=Date.now(),$e="fnValues"+Pe,Me="fnStyle"+ ++Pe;var Te="@global",Ie=function(){function e(e,t,n){for(var r in this.type="global",this.at=Te,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Q((0,o.A)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Ne=function(){function e(e,t,n){this.type="global",this.at=Te,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,o.A)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),je=/\s*,\s*/g;function Le(e,t){for(var n=e.split(je),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var ze=/\s*,\s*/g,De=/&/g,Fe=/\$([\w-]+)/g;var We=/[A-Z]/g,_e=/^ms-/,Be={};function Ve(e){return"-"+e.toLowerCase()}const He=function(e){if(Be.hasOwnProperty(e))return Be[e];var t=e.replace(We,Ve);return Be[e]=_e.test(t)?"-"+t:t};function qe(e){var t={};for(var n in e)t[0===n.indexOf("--")?n:He(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(qe):t.fallbacks=qe(e.fallbacks)),t}var Ke=Ae&&CSS?CSS.px:"px",Ue=Ae&&CSS?CSS.ms:"ms",Xe=Ae&&CSS?CSS.percent:"%";function Ge(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var Ye=Ge({"animation-delay":Ue,"animation-duration":Ue,"background-position":Ke,"background-position-x":Ke,"background-position-y":Ke,"background-size":Ke,border:Ke,"border-bottom":Ke,"border-bottom-left-radius":Ke,"border-bottom-right-radius":Ke,"border-bottom-width":Ke,"border-left":Ke,"border-left-width":Ke,"border-radius":Ke,"border-right":Ke,"border-right-width":Ke,"border-top":Ke,"border-top-left-radius":Ke,"border-top-right-radius":Ke,"border-top-width":Ke,"border-width":Ke,"border-block":Ke,"border-block-end":Ke,"border-block-end-width":Ke,"border-block-start":Ke,"border-block-start-width":Ke,"border-block-width":Ke,"border-inline":Ke,"border-inline-end":Ke,"border-inline-end-width":Ke,"border-inline-start":Ke,"border-inline-start-width":Ke,"border-inline-width":Ke,"border-start-start-radius":Ke,"border-start-end-radius":Ke,"border-end-start-radius":Ke,"border-end-end-radius":Ke,margin:Ke,"margin-bottom":Ke,"margin-left":Ke,"margin-right":Ke,"margin-top":Ke,"margin-block":Ke,"margin-block-end":Ke,"margin-block-start":Ke,"margin-inline":Ke,"margin-inline-end":Ke,"margin-inline-start":Ke,padding:Ke,"padding-bottom":Ke,"padding-left":Ke,"padding-right":Ke,"padding-top":Ke,"padding-block":Ke,"padding-block-end":Ke,"padding-block-start":Ke,"padding-inline":Ke,"padding-inline-end":Ke,"padding-inline-start":Ke,"mask-position-x":Ke,"mask-position-y":Ke,"mask-size":Ke,height:Ke,width:Ke,"min-height":Ke,"max-height":Ke,"min-width":Ke,"max-width":Ke,bottom:Ke,left:Ke,top:Ke,right:Ke,inset:Ke,"inset-block":Ke,"inset-block-end":Ke,"inset-block-start":Ke,"inset-inline":Ke,"inset-inline-end":Ke,"inset-inline-start":Ke,"box-shadow":Ke,"text-shadow":Ke,"column-gap":Ke,"column-rule":Ke,"column-rule-width":Ke,"column-width":Ke,"font-size":Ke,"font-size-delta":Ke,"letter-spacing":Ke,"text-decoration-thickness":Ke,"text-indent":Ke,"text-stroke":Ke,"text-stroke-width":Ke,"word-spacing":Ke,motion:Ke,"motion-offset":Ke,outline:Ke,"outline-offset":Ke,"outline-width":Ke,perspective:Ke,"perspective-origin-x":Xe,"perspective-origin-y":Xe,"transform-origin":Xe,"transform-origin-x":Xe,"transform-origin-y":Xe,"transform-origin-z":Xe,"transition-delay":Ue,"transition-duration":Ue,"vertical-align":Ke,"flex-basis":Ke,"shape-margin":Ke,size:Ke,gap:Ke,grid:Ke,"grid-gap":Ke,"row-gap":Ke,"grid-row-gap":Ke,"grid-column-gap":Ke,"grid-template-rows":Ke,"grid-template-columns":Ke,"grid-auto-rows":Ke,"grid-auto-columns":Ke,"box-shadow-x":Ke,"box-shadow-y":Ke,"box-shadow-blur":Ke,"box-shadow-spread":Ke,"font-line-height":Ke,"text-shadow-x":Ke,"text-shadow-y":Ke,"text-shadow-blur":Ke});function Je(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Je(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Je(o,t[o],n);else for(var i in t)t[i]=Je(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||Ye[e];return!a||0===t&&a===Ke?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}var Ze=n(5458),Qe="",et="",tt="",nt="",rt=l&&"ontouchstart"in document.documentElement;if(l){var ot={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},it=document.createElement("p").style;for(var at in ot)if(at+"Transform"in it){Qe=at,et=ot[at];break}"Webkit"===Qe&&"msHyphens"in it&&(Qe="ms",et=ot.ms,nt="edge"),"Webkit"===Qe&&"-apple-trailing-word"in it&&(tt="apple")}var st=Qe,lt=et,ct=tt,ut=nt,dt=rt,pt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===st?"-webkit-"+e:lt+e)}},ft={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===st?lt+"print-"+e:e)}},ht=/[-\s]+(.)?/g;function mt(e,t){return t?t.toUpperCase():""}function vt(e){return e.replace(ht,mt)}function gt(e){return vt("-"+e)}var yt,bt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===st){var n="mask-image";if(vt(n)in t)return e;if(st+gt(n)in t)return lt+e}return e}},xt={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==ct||dt?e:lt+e)}},At={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:lt+e)}},wt={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:lt+e)}},kt={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===st||"ms"===st&&"edge"!==ut?lt+e:e)}},St={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===st||"ms"===st||"apple"===ct?lt+e:e)}},Ct={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===st?"WebkitColumn"+gt(e)in t&<+"column-"+e:"Moz"===st&&"page"+gt(e)in t&&"page-"+e)}},Et={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===st)return e;var n=e.replace("-inline","");return st+gt(n)in t&<+n}},Ot={supportedProperty:function(e,t){return vt(e)in t&&e}},Rt={supportedProperty:function(e,t){var n=gt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:st+n in t?lt+e:"Webkit"!==st&&"Webkit"+n in t&&"-webkit-"+e}},Pt={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===st?""+lt+e:e)}},$t={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===st?lt+"scroll-chaining":e)}},Mt={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Tt={supportedProperty:function(e,t){var n=Mt[e];return!!n&&st+gt(n)in t&<+n}},It={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Nt=Object.keys(It),jt=function(e){return lt+e},Lt={supportedProperty:function(e,t,n){var r=n.multiple;if(Nt.indexOf(e)>-1){var o=It[e];if(!Array.isArray(o))return st+gt(o)in t&<+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(st+gt(o[0])in t))return!1;return o.map(jt)}return!1}},zt=[pt,ft,bt,xt,At,wt,kt,St,Ct,Et,Ot,Rt,Pt,$t,Tt,Lt],Dt=zt.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Ft=zt.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,Ze.A)(t.noPrefill)),e}),[]),Wt={};if(l){yt=document.createElement("p");var _t=window.getComputedStyle(document.documentElement,"");for(var Bt in _t)isNaN(Bt)||(Wt[_t[Bt]]=_t[Bt]);Ft.forEach((function(e){return delete Wt[e]}))}function Vt(e,t){if(void 0===t&&(t={}),!yt)return e;if(null!=Wt[e])return Wt[e];"transition"!==e&&"transform"!==e||(t[e]=e in yt.style);for(var n=0;n<Dt.length&&(Wt[e]=Dt[n](e,yt.style,t),!Wt[e]);n++);try{yt.style[e]=""}catch(e){return!1}return Wt[e]}var Ht,qt={},Kt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ut=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Xt(e,t,n){return"var"===t?"var":"all"===t?"all":"all"===n?", all":(t?Vt(t):", "+Vt(n))||t||n}function Gt(e,t){var n=t;if(!Ht||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=qt[r])return qt[r];try{Ht.style[e]=n}catch(e){return qt[r]=!1,!1}if(Kt[e])n=n.replace(Ut,Xt);else if(""===Ht.style[e]&&("-ms-flex"===(n=lt+n)&&(Ht.style[e]="-ms-flexbox"),Ht.style[e]=n,""===Ht.style[e]))return qt[r]=!1,!1;return Ht.style[e]="",qt[r]=n,qt[r]}l&&(Ht=document.createElement("p"));var Yt,Jt=xe({plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=m(e,{},n);return r[Me]=t,r},onProcessStyle:function(e,t){if($e in t||Me in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[$e]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Me];i&&(o.style=i(e)||{});var a=o[$e];if(a)for(var s in a)o.prop(s,a[s](e),r)}},{onCreateRule:function(e,t,n){if(!e)return null;if(e===Te)return new Ie(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,8))return new Ne(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[Te]:null;if(i){for(var a in i)t.addRule(a,i[a],(0,o.A)({},n,{selector:Le(a,e.selector)}));delete r[Te]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,7)===Te){var a=Le(i.substr(7),e.selector);t.addRule(a,r[i],(0,o.A)({},n,{selector:a})),delete r[i]}}(e,t))}},function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(ze),r=e.split(ze),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(De,a):a+" "+l}return o}function n(e,t,n){if(n)return(0,o.A)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=(0,o.A)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,a){if("style"!==i.type)return r;var s,l,c=i,u=c.options.parent;for(var d in r){var p=-1!==d.indexOf("&"),f="@"===d[0];if(p||f){if(s=n(c,u,s),p){var h=t(d,c.selector);l||(l=e(u,a)),h=h.replace(Fe,l);var m=c.key+"-"+d;"replaceRule"in u?u.replaceRule(m,r[d],(0,o.A)({},s,{selector:h})):u.addRule(m,r[d],(0,o.A)({},s,{selector:h}))}else f&&u.addRule(d,{},s).addRule(c.key,r[d],{selector:c.selector});delete r[d]}}return r}}}(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=qe(e[t]);return e}return qe(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=He(t);return t===r?e:(n.prop(r,e),null)}},function(e){void 0===e&&(e={});var t=Ge(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Je(r,e[r],t);return e},onChangeValue:function(e,n){return Je(n,e,t)}}}(),"undefined"==typeof window?null:function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=Vt(n);i&&i!==n&&(o=!0);var a=!1,s=Gt(i,g(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===st?e:"@"+lt+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Gt(t,g(e))||e}}}(),(Yt=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var n={},r=Object.keys(e).sort(Yt),o=0;o<r.length;o++)n[r[o]]=e[r[o]];return n}})]}),Zt={disableGeneration:!1,generateClassName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Re.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Oe]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(s).concat(o).concat(c())}}(),jss:Jt,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Qt=a().createContext(Zt),en=-1e9,tn=n(2851);const nn={};function rn(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,a=e.stylesCreator,s=e.name;if(!i.disableGeneration){var l=Ce.get(i.sheetsManager,a,r);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Ce.set(i.sheetsManager,a,r,l));var c=(0,o.A)({},a.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var u=i.sheetsRegistry;if(0===l.refs){var d;i.sheetsCache&&(d=Ce.get(i.sheetsCache,a,r));var p=a.create(r,s);d||((d=i.jss.createStyleSheet(p,(0,o.A)({link:!1},c))).attach(),i.sheetsCache&&Ce.set(i.sheetsCache,a,r,d)),u&&u.add(d),l.staticSheet=d,l.dynamicStyles=we(p)}if(l.dynamicStyles){var f=i.jss.createStyleSheet(l.dynamicStyles,(0,o.A)({link:!0},c));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=(0,ke.A)({baseClasses:l.staticSheet.classes,newClasses:f.classes}),u&&u.add(f)}else n.classes=l.staticSheet.classes;l.refs+=1}}function on(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,i=t.classNamePrefix,s=t.Component,l=t.defaultTheme,c=void 0===l?nn:l,u=(0,r.A)(t,["name","classNamePrefix","Component","defaultTheme"]),d=function(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],s=(0,o.A)({},i);return Object.keys(a).forEach((function(e){s[e]=(0,tn.A)(s[e],a[e])})),s},options:{}}}(e),p=n||i||"makeStyles";return d.options={index:en+=1,name:n,meta:p,classNamePrefix:p},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,Ee.A)()||c,r=(0,o.A)({},a().useContext(Qt),u),i=a().useRef(),l=a().useRef();!function(o,s){var c,u,p=a().useRef([]),f=a().useMemo((function(){return{}}),s);p.current!==f&&(p.current=f,rn(u={name:n,state:{},stylesCreator:d,stylesOptions:r,theme:t},e),l.current=!1,i.current=u,c=function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=Ce.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(Ce.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(u)}),a().useEffect((function(){return function(){c&&c()}}),[f])}(0,[t,d]),a().useEffect((function(){l.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),l.current=!0}));var p=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=(0,ke.A)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,s);return p}}},3043:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8168);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var o=(0,r.A)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},6061:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),o=n.n(r);const i=o().createContext(null);function a(){return o().useContext(i)}},2851:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(8168),o=n(2284);function i(e){return e&&"object"===(0,o.A)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,r.A)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},5063:(e,t,n)=>{"use strict";n.d(t,{A:()=>tr});var r=n(8587),o=n(8168),i=n(1609),a=n.n(i);function s(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=s(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const l=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=s(e))&&(r&&(r+=" "),r+=t);return r};function c(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}var u=n(771);let d=0;const p=i["useId".toString()];function f({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=i.useRef(void 0!==e),[a,s]=i.useState(t);return[o?e:a,i.useCallback((e=>{o||s(e)}),[])]}const h="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,m=function(e){const t=i.useRef(e);return h((()=>{t.current=e})),i.useRef(((...e)=>(0,t.current)(...e))).current};function v(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function g(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function y(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const b=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(e,{inputValue:s,getOptionLabel:l})=>{let c=a?s.trim():s;n&&(c=c.toLowerCase()),t&&(c=g(c));const u=c?e.filter((e=>{let r=(i||l)(e);return n&&(r=r.toLowerCase()),t&&(r=g(r)),"start"===o?0===r.indexOf(c):r.indexOf(c)>-1})):e;return"number"==typeof r?u.slice(0,r):u}}(),x=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))},A=function(e){const{unstable_isActiveElementInListbox:t=x,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:a=!1,autoSelect:s=!1,blurOnSelect:l=!1,clearOnBlur:c=!e.freeSolo,clearOnEscape:u=!1,componentName:h="useAutocomplete",defaultValue:g=(e.multiple?[]:null),disableClearable:A=!1,disableCloseOnSelect:w=!1,disabled:k,disabledItemsFocusable:S=!1,disableListWrap:C=!1,filterOptions:E=b,filterSelectedOptions:O=!1,freeSolo:R=!1,getOptionDisabled:P,getOptionKey:$,getOptionLabel:M=e=>{var t;return null!=(t=e.label)?t:e},groupBy:T,handleHomeEndKeys:I=!e.freeSolo,id:N,includeInputInList:j=!1,inputValue:L,isOptionEqualToValue:z=(e,t)=>e===t,multiple:D=!1,onChange:F,onClose:W,onHighlightChange:_,onInputChange:B,onOpen:V,open:H,openOnFocus:q=!1,options:K,readOnly:U=!1,selectOnFocus:X=!e.freeSolo,value:G}=e,Y=function(e){if(void 0!==p){const t=p();return null!=e?e:t}return function(e){const[t,n]=i.useState(e),r=e||t;return i.useEffect((()=>{null==t&&(d+=1,n(`mui-${d}`))}),[t]),r}(e)}(N);let J=M;J=e=>{const t=M(e);return"string"!=typeof t?String(t):t};const Z=i.useRef(!1),Q=i.useRef(!0),ee=i.useRef(null),te=i.useRef(null),[ne,re]=i.useState(null),[oe,ie]=i.useState(-1),ae=a?0:-1,se=i.useRef(ae),[le,ce]=f({controlled:G,default:g,name:h}),[ue,de]=f({controlled:L,default:"",name:h,state:"inputValue"}),[pe,fe]=i.useState(!1),he=i.useCallback(((e,t)=>{if(!(D?le.length<t.length:null!==t)&&!c)return;let n;if(D)n="";else if(null==t)n="";else{const e=J(t);n="string"==typeof e?e:""}ue!==n&&(de(n),B&&B(e,n,"reset"))}),[J,ue,D,B,de,c,le]),[me,ve]=f({controlled:H,default:!1,name:h,state:"open"}),[ge,ye]=i.useState(!0),be=!D&&null!=le&&ue===J(le),xe=me&&!U,Ae=xe?E(K.filter((e=>!O||!(D?le:[le]).some((t=>null!==t&&z(e,t))))),{inputValue:be&&ge?"":ue,getOptionLabel:J}):[],we=(e=>{const t=i.useRef({});return i.useEffect((()=>{t.current=e})),t.current})({filteredOptions:Ae,value:le,inputValue:ue});i.useEffect((()=>{const e=le!==we.value;pe&&!e||R&&!e||he(null,le)}),[le,he,pe,we.value,R]);const ke=me&&Ae.length>0&&!U,Se=m((e=>{-1===e?ee.current.focus():ne.querySelector(`[data-tag-index="${e}"]`).focus()}));i.useEffect((()=>{D&&oe>le.length-1&&(ie(-1),Se(-1))}),[le,D,oe,Se]);const Ce=m((({event:e,index:t,reason:r="auto"})=>{if(se.current=t,-1===t?ee.current.removeAttribute("aria-activedescendant"):ee.current.setAttribute("aria-activedescendant",`${Y}-option-${t}`),_&&_(e,-1===t?null:Ae[t],r),!te.current)return;const o=te.current.querySelector(`[role="option"].${n}-focused`);o&&(o.classList.remove(`${n}-focused`),o.classList.remove(`${n}-focusVisible`));let i=te.current;if("listbox"!==te.current.getAttribute("role")&&(i=te.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t)return void(i.scrollTop=0);const a=te.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(`${n}-focused`),"keyboard"===r&&a.classList.add(`${n}-focusVisible`),i.scrollHeight>i.clientHeight&&"mouse"!==r&&"touch"!==r)){const e=a,t=i.clientHeight+i.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?i.scrollTop=n-i.clientHeight:e.offsetTop-e.offsetHeight*(T?1.3:0)<i.scrollTop&&(i.scrollTop=e.offsetTop-e.offsetHeight*(T?1.3:0))}})),Ee=m((({event:e,diff:t,direction:n="next",reason:o="auto"})=>{if(!xe)return;const i=function(e,t){if(!te.current||e<0||e>=Ae.length)return-1;let n=e;for(;;){const r=te.current.querySelector(`[data-option-index="${n}"]`),o=!S&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!o)return n;if(n="next"===t?(n+1)%Ae.length:(n-1+Ae.length)%Ae.length,n===e)return-1}}((()=>{const e=Ae.length-1;if("reset"===t)return ae;if("start"===t)return 0;if("end"===t)return e;const n=se.current+t;return n<0?-1===n&&j?-1:C&&-1!==se.current||Math.abs(t)>1?0:e:n>e?n===e+1&&j?-1:C||Math.abs(t)>1?e:0:n})(),n);if(Ce({index:i,reason:o,event:e}),r&&"reset"!==t)if(-1===i)ee.current.value=ue;else{const e=J(Ae[i]);ee.current.value=e,0===e.toLowerCase().indexOf(ue.toLowerCase())&&ue.length>0&&ee.current.setSelectionRange(ue.length,e.length)}})),Oe=i.useCallback((()=>{if(!xe)return;const e=(()=>{if(-1!==se.current&&we.filteredOptions&&we.filteredOptions.length!==Ae.length&&we.inputValue===ue&&(D?le.length===we.value.length&&we.value.every(((e,t)=>J(le[t])===J(e))):(e=we.value,t=le,(e?J(e):"")===(t?J(t):"")))){const e=we.filteredOptions[se.current];if(e)return y(Ae,(t=>J(t)===J(e)))}var e,t;return-1})();if(-1!==e)return void(se.current=e);const t=D?le[0]:le;if(0!==Ae.length&&null!=t){if(te.current)if(null==t)se.current>=Ae.length-1?Ce({index:Ae.length-1}):Ce({index:se.current});else{const e=Ae[se.current];if(D&&e&&-1!==y(le,(t=>z(e,t))))return;const n=y(Ae,(e=>z(e,t)));-1===n?Ee({diff:"reset"}):Ce({index:n})}}else Ee({diff:"reset"})}),[Ae.length,!D&&le,O,Ee,Ce,xe,ue,D]),Re=m((e=>{v(te,e),e&&Oe()}));i.useEffect((()=>{Oe()}),[Oe]);const Pe=e=>{me||(ve(!0),ye(!0),V&&V(e))},$e=(e,t)=>{me&&(ve(!1),W&&W(e,t))},Me=(e,t,n,r)=>{if(D){if(le.length===t.length&&le.every(((e,n)=>e===t[n])))return}else if(le===t)return;F&&F(e,t,n,r),ce(t)},Te=i.useRef(!1),Ie=(e,t,n="selectOption",r="options")=>{let o=n,i=t;if(D){i=Array.isArray(le)?le.slice():[];const e=y(i,(e=>z(t,e)));-1===e?i.push(t):"freeSolo"!==r&&(i.splice(e,1),o="removeOption")}he(e,i),Me(e,i,o,{option:t}),w||e&&(e.ctrlKey||e.metaKey)||$e(e,o),(!0===l||"touch"===l&&Te.current||"mouse"===l&&!Te.current)&&ee.current.blur()},Ne=(e,t)=>{if(!D)return;""===ue&&$e(e,"toggleInput");let n=oe;-1===oe?""===ue&&"previous"===t&&(n=le.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===le.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===le.length||"previous"===t&&-1===n)return-1;const e=ne.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),ie(n),Se(n)},je=e=>{Z.current=!0,de(""),B&&B(e,"","clear"),Me(e,D?[]:null,"clear")},Le=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==oe&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(ie(-1),Se(-1)),229!==t.which))switch(t.key){case"Home":xe&&I&&(t.preventDefault(),Ee({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":xe&&I&&(t.preventDefault(),Ee({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Ee({diff:-5,direction:"previous",reason:"keyboard",event:t}),Pe(t);break;case"PageDown":t.preventDefault(),Ee({diff:5,direction:"next",reason:"keyboard",event:t}),Pe(t);break;case"ArrowDown":t.preventDefault(),Ee({diff:1,direction:"next",reason:"keyboard",event:t}),Pe(t);break;case"ArrowUp":t.preventDefault(),Ee({diff:-1,direction:"previous",reason:"keyboard",event:t}),Pe(t);break;case"ArrowLeft":Ne(t,"previous");break;case"ArrowRight":Ne(t,"next");break;case"Enter":if(-1!==se.current&&xe){const e=Ae[se.current],n=!!P&&P(e);if(t.preventDefault(),n)return;Ie(t,e,"selectOption"),r&&ee.current.setSelectionRange(ee.current.value.length,ee.current.value.length)}else R&&""!==ue&&!1===be&&(D&&t.preventDefault(),Ie(t,ue,"createOption","freeSolo"));break;case"Escape":xe?(t.preventDefault(),t.stopPropagation(),$e(t,"escape")):u&&(""!==ue||D&&le.length>0)&&(t.preventDefault(),t.stopPropagation(),je(t));break;case"Backspace":if(D&&!U&&""===ue&&le.length>0){const e=-1===oe?le.length-1:oe,n=le.slice();n.splice(e,1),Me(t,n,"removeOption",{option:le[e]})}break;case"Delete":if(D&&!U&&""===ue&&le.length>0&&-1!==oe){const e=oe,n=le.slice();n.splice(e,1),Me(t,n,"removeOption",{option:le[e]})}}},ze=e=>{fe(!0),q&&!Z.current&&Pe(e)},De=e=>{t(te)?ee.current.focus():(fe(!1),Q.current=!0,Z.current=!1,s&&-1!==se.current&&xe?Ie(e,Ae[se.current],"blur"):s&&R&&""!==ue?Ie(e,ue,"blur","freeSolo"):c&&he(e,le),$e(e,"blur"))},Fe=e=>{const t=e.target.value;ue!==t&&(de(t),ye(!1),B&&B(e,t,"input")),""===t?A||D||Me(e,null,"clear"):Pe(e)},We=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));se.current!==t&&Ce({event:e,index:t,reason:"mouse"})},_e=e=>{Ce({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Te.current=!0},Be=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ie(e,Ae[t],"selectOption"),Te.current=!1},Ve=e=>t=>{const n=le.slice();n.splice(e,1),Me(t,n,"removeOption",{option:le[e]})},He=e=>{me?$e(e,"toggleInput"):Pe(e)},qe=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==Y&&e.preventDefault()},Ke=e=>{e.currentTarget.contains(e.target)&&(ee.current.focus(),X&&Q.current&&ee.current.selectionEnd-ee.current.selectionStart==0&&ee.current.select(),Q.current=!1)},Ue=e=>{k||""!==ue&&me||He(e)};let Xe=R&&ue.length>0;Xe=Xe||(D?le.length>0:null!==le);let Ge=Ae;return T&&(new Map,Ge=Ae.reduce(((e,t,n)=>{const r=T(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])),k&&pe&&De(),{getRootProps:(e={})=>(0,o.A)({"aria-owns":ke?`${Y}-listbox`:null},e,{onKeyDown:Le(e),onMouseDown:qe,onClick:Ke}),getInputLabelProps:()=>({id:`${Y}-label`,htmlFor:Y}),getInputProps:()=>({id:Y,value:ue,onBlur:De,onFocus:ze,onChange:Fe,onMouseDown:Ue,"aria-activedescendant":xe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ke?`${Y}-listbox`:void 0,"aria-expanded":ke,autoComplete:"off",ref:ee,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:k}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:je}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:He}),getTagProps:({index:e})=>(0,o.A)({key:e,"data-tag-index":e,tabIndex:-1},!U&&{onDelete:Ve(e)}),getListboxProps:()=>({role:"listbox",id:`${Y}-listbox`,"aria-labelledby":`${Y}-label`,ref:Re,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var n;const r=(D?le:[le]).some((e=>null!=e&&z(t,e))),o=!!P&&P(t);return{key:null!=(n=null==$?void 0:$(t))?n:J(t),tabIndex:-1,role:"option",id:`${Y}-option-${e}`,onMouseMove:We,onClick:Be,onTouchStart:_e,"data-option-index":e,"aria-disabled":o,"aria-selected":r}},id:Y,inputValue:ue,value:le,dirty:Xe,expanded:xe&&ne,popupOpen:xe,focused:pe||-1!==oe,anchorEl:ne,setAnchorEl:re,focusedTag:oe,groupedOptions:Ge}};var w=n(2923);function k(...e){return i.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{v(e,t)}))}),e)}function S(e){return e&&e.ownerDocument||document}function C(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function E(e){return e instanceof C(e).Element||e instanceof Element}function O(e){return e instanceof C(e).HTMLElement||e instanceof HTMLElement}function R(e){return"undefined"!=typeof ShadowRoot&&(e instanceof C(e).ShadowRoot||e instanceof ShadowRoot)}var P=Math.max,$=Math.min,M=Math.round;function T(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function I(){return!/^((?!chrome|android).)*safari/i.test(T())}function N(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&O(e)&&(o=e.offsetWidth>0&&M(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&M(r.height)/e.offsetHeight||1);var a=(E(e)?C(e):window).visualViewport,s=!I()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function j(e){var t=C(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function L(e){return e?(e.nodeName||"").toLowerCase():null}function z(e){return((E(e)?e.ownerDocument:e.document)||window.document).documentElement}function D(e){return N(z(e)).left+j(e).scrollLeft}function F(e){return C(e).getComputedStyle(e)}function W(e){var t=F(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function _(e,t,n){void 0===n&&(n=!1);var r,o,i=O(t),a=O(t)&&function(e){var t=e.getBoundingClientRect(),n=M(t.width)/e.offsetWidth||1,r=M(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=z(t),l=N(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==L(t)||W(s))&&(c=(r=t)!==C(r)&&O(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:j(r)),O(t)?((u=N(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=D(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function B(e){var t=N(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function V(e){return"html"===L(e)?e:e.assignedSlot||e.parentNode||(R(e)?e.host:null)||z(e)}function H(e){return["html","body","#document"].indexOf(L(e))>=0?e.ownerDocument.body:O(e)&&W(e)?e:H(V(e))}function q(e,t){var n;void 0===t&&(t=[]);var r=H(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=C(r),a=o?[i].concat(i.visualViewport||[],W(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(q(V(a)))}function K(e){return["table","td","th"].indexOf(L(e))>=0}function U(e){return O(e)&&"fixed"!==F(e).position?e.offsetParent:null}function X(e){for(var t=C(e),n=U(e);n&&K(n)&&"static"===F(n).position;)n=U(n);return n&&("html"===L(n)||"body"===L(n)&&"static"===F(n).position)?t:n||function(e){var t=/firefox/i.test(T());if(/Trident/i.test(T())&&O(e)&&"fixed"===F(e).position)return null;var n=V(e);for(R(n)&&(n=n.host);O(n)&&["html","body"].indexOf(L(n))<0;){var r=F(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var G="top",Y="bottom",J="right",Z="left",Q="auto",ee=[G,Y,J,Z],te="start",ne="end",re="viewport",oe="popper",ie=ee.reduce((function(e,t){return e.concat([t+"-"+te,t+"-"+ne])}),[]),ae=[].concat(ee,[Q]).reduce((function(e,t){return e.concat([t,t+"-"+te,t+"-"+ne])}),[]),se=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function le(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ce={placement:"bottom",modifiers:[],strategy:"absolute"};function ue(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function de(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ce:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ce,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:E(e)?q(e):e.contextElement?q(e.contextElement):[],popper:q(t)};var a,c,p=function(e){var t=le(e);return se.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),c=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return s.orderedModifiers=p.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:r});l.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(ue(t,n)){s.rects={reference:_(t,X(n),"fixed"===s.options.strategy),popper:B(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),c=!0}};if(!ue(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var pe={passive:!0};function fe(e){return e.split("-")[0]}function he(e){return e.split("-")[1]}function me(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ve(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?fe(o):null,a=o?he(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case G:t={x:s,y:n.y-r.height};break;case Y:t={x:s,y:n.y+n.height};break;case J:t={x:n.x+n.width,y:l};break;case Z:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?me(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case te:t[c]=t[c]-(n[u]/2-r[u]/2);break;case ne:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var ge={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ye(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,v="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=v.x,m=v.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=Z,x=G,A=window;if(c){var w=X(n),k="clientHeight",S="clientWidth";w===C(n)&&"static"!==F(w=z(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),(o===G||(o===Z||o===J)&&i===ne)&&(x=Y,m-=(d&&w===A&&A.visualViewport?A.visualViewport.height:w[k])-r.height,m*=l?1:-1),o!==Z&&(o!==G&&o!==Y||i!==ne)||(b=J,f-=(d&&w===A&&A.visualViewport?A.visualViewport.width:w[S])-r.width,f*=l?1:-1)}var E,O=Object.assign({position:s},c&&ge),R=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:M(n*o)/o||0,y:M(r*o)/o||0}}({x:f,y:m},C(n)):{x:f,y:m};return f=R.x,m=R.y,l?Object.assign({},O,((E={})[x]=y?"0":"",E[b]=g?"0":"",E.transform=(A.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},O,((t={})[x]=y?m+"px":"",t[b]=g?f+"px":"",t.transform="",t))}var be={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,(function(e){return be[e]}))}var Ae={start:"end",end:"start"};function we(e){return e.replace(/start|end/g,(function(e){return Ae[e]}))}function ke(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&R(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Se(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ce(e,t,n){return t===re?Se(function(e,t){var n=C(e),r=z(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=I();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+D(e),y:l}}(e,n)):E(t)?function(e,t){var n=N(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Se(function(e){var t,n=z(e),r=j(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=P(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=P(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+D(e),l=-r.scrollTop;return"rtl"===F(o||n).direction&&(s+=P(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(z(e)))}function Ee(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Oe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Re(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?re:c,d=n.elementContext,p=void 0===d?oe:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,v=void 0===m?0:m,g=Ee("number"!=typeof v?v:Oe(v,ee)),y=p===oe?"reference":oe,b=e.rects.popper,x=e.elements[h?y:p],A=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=q(V(e)),n=["absolute","fixed"].indexOf(F(e).position)>=0&&O(e)?X(e):e;return E(n)?t.filter((function(e){return E(e)&&ke(e,n)&&"body"!==L(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=Ce(e,n,r);return t.top=P(o.top,t.top),t.right=$(o.right,t.right),t.bottom=$(o.bottom,t.bottom),t.left=P(o.left,t.left),t}),Ce(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(E(x)?x:x.contextElement||z(e.elements.popper),l,u,a),w=N(e.elements.reference),k=ve({reference:w,element:b,strategy:"absolute",placement:o}),S=Se(Object.assign({},b,k)),C=p===oe?S:w,R={top:A.top-C.top+g.top,bottom:C.bottom-A.bottom+g.bottom,left:A.left-C.left+g.left,right:C.right-A.right+g.right},M=e.modifiersData.offset;if(p===oe&&M){var T=M[o];Object.keys(R).forEach((function(e){var t=[J,Y].indexOf(e)>=0?1:-1,n=[G,Y].indexOf(e)>=0?"y":"x";R[e]+=T[n]*t}))}return R}function Pe(e,t,n){return P(e,$(t,n))}function $e(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Me(e){return[G,J,Y,Z].some((function(t){return e[t]>=0}))}var Te=de({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=C(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,pe)})),s&&l.addEventListener("resize",n.update,pe),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,pe)})),s&&l.removeEventListener("resize",n.update,pe)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ve({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:fe(t.placement),variation:he(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ye(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ye(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];O(o)&&L(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});O(r)&&L(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=ae.reduce((function(e,n){return e[n]=function(e,t,n){var r=fe(e),o=[Z,G].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Z,J].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,v=t.options.placement,g=fe(v),y=l||(g!==v&&h?function(e){if(fe(e)===Q)return[];var t=xe(e);return[we(e),t,we(t)]}(v):[xe(v)]),b=[v].concat(y).reduce((function(e,n){return e.concat(fe(n)===Q?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?ae:l,u=he(r),d=u?s?ie:ie.filter((function(e){return he(e)===u})):ee,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=Re(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[fe(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,A=t.rects.popper,w=new Map,k=!0,S=b[0],C=0;C<b.length;C++){var E=b[C],O=fe(E),R=he(E)===te,P=[G,Y].indexOf(O)>=0,$=P?"width":"height",M=Re(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),T=P?R?J:Z:R?Y:G;x[$]>A[$]&&(T=xe(T));var I=xe(T),N=[];if(i&&N.push(M[O]<=0),s&&N.push(M[T]<=0,M[I]<=0),N.every((function(e){return e}))){S=E,k=!1;break}w.set(E,N)}if(k)for(var j=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},L=h?3:1;L>0&&"break"!==j(L);L--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,v=Re(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=fe(t.placement),y=he(t.placement),b=!y,x=me(g),A="x"===x?"y":"x",w=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,E="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(w){if(i){var M,T="y"===x?G:Z,I="y"===x?Y:J,N="y"===x?"height":"width",j=w[x],L=j+v[T],z=j-v[I],D=f?-S[N]/2:0,F=y===te?k[N]:S[N],W=y===te?-S[N]:-k[N],_=t.elements.arrow,V=f&&_?B(_):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},q=H[T],K=H[I],U=Pe(0,k[N],V[N]),Q=b?k[N]/2-D-U-q-E.mainAxis:F-U-q-E.mainAxis,ee=b?-k[N]/2+D+U+K+E.mainAxis:W+U+K+E.mainAxis,ne=t.elements.arrow&&X(t.elements.arrow),re=ne?"y"===x?ne.clientTop||0:ne.clientLeft||0:0,oe=null!=(M=null==O?void 0:O[x])?M:0,ie=j+ee-oe,ae=Pe(f?$(L,j+Q-oe-re):L,j,f?P(z,ie):z);w[x]=ae,R[x]=ae-j}if(s){var se,le="x"===x?G:Z,ce="x"===x?Y:J,ue=w[A],de="y"===A?"height":"width",pe=ue+v[le],ve=ue-v[ce],ge=-1!==[G,Z].indexOf(g),ye=null!=(se=null==O?void 0:O[A])?se:0,be=ge?pe:ue-k[de]-S[de]-ye+E.altAxis,xe=ge?ue+k[de]+S[de]-ye-E.altAxis:ve,Ae=f&&ge?function(e,t,n){var r=Pe(e,t,n);return r>n?n:r}(be,ue,xe):Pe(f?be:pe,ue,f?xe:ve);w[A]=Ae,R[A]=Ae-ue}t.modifiersData[r]=R}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=fe(n.placement),l=me(s),c=[Z,J].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Ee("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Oe(e,ee))}(o.padding,n),d=B(i),p="y"===l?G:Z,f="y"===l?Y:J,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],v=X(i),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,b=u[p],x=g-d[c]-u[f],A=g/2-d[c]/2+y,w=Pe(b,A,x),k=l;n.modifiersData[r]=((t={})[k]=w,t.centerOffset=w-A,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ke(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Re(t,{elementContext:"reference"}),s=Re(t,{altBoundary:!0}),l=$e(a,r),c=$e(s,o,i),u=Me(l),d=Me(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function Ie(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ie(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Ne=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ie(e))&&(r&&(r+=" "),r+=t);return r},je=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t},Le=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const e=Ne(null==n?void 0:n.className,a,null==i?void 0:i.className,null==r?void 0:r.className),t=(0,o.A)({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),s=(0,o.A)({},n,i,r);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}((0,o.A)({},i,r)),l=je(r),c=je(i),u=t(s),d=Ne(null==u?void 0:u.className,null==n?void 0:n.className,a,null==i?void 0:i.className,null==r?void 0:r.className),p=(0,o.A)({},null==u?void 0:u.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),f=(0,o.A)({},u,n,c,l);return d.length>0&&(f.className=d),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:u.ref}},ze=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"],De=function(e){var t;const{elementType:n,externalSlotProps:i,ownerState:a,skipResolvingSlotProps:s=!1}=e,l=(0,r.A)(e,ze),c=s?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(i,a),{props:u,internalRef:d}=Le((0,o.A)({},l,{externalSlotProps:c})),p=k(d,null==c?void 0:c.ref,null==(t=e.additionalProps)?void 0:t.ref);return function(e,t,n){return void 0===e||"string"==typeof e?t:(0,o.A)({},t,{ownerState:(0,o.A)({},t.ownerState,n)})}(n,(0,o.A)({},u,{ref:p}),a)};var Fe=n(5795),We=n(790);const _e=i.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,s]=i.useState(null),l=k(i.isValidElement(n)?n.ref:null,t);if(h((()=>{o||s(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),h((()=>{if(a&&!o)return v(t,a),()=>{v(t,null)}}),[t,a,o]),o){if(i.isValidElement(n)){const e={ref:l};return i.cloneElement(n,e)}return(0,We.jsx)(i.Fragment,{children:n})}return(0,We.jsx)(i.Fragment,{children:a?Fe.createPortal(n,a):a})})),Be=e=>e,Ve=(()=>{let e=Be;return{configure(t){e=t},generate:t=>e(t),reset(){e=Be}}})(),He={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function qe(e,t,n="Mui"){const r=He[t];return r?`${n}-${r}`:`${Ve.generate(e)}-${t}`}function Ke(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=qe(e,t,n)})),r}function Ue(e){return qe("MuiPopper",e)}Ke("MuiPopper",["root"]);const Xe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ge=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Ye(e){return"function"==typeof e?e():e}const Je={},Ze=i.forwardRef((function(e,t){var n;const{anchorEl:a,children:s,direction:l,disablePortal:u,modifiers:d,open:p,placement:f,popperOptions:m,popperRef:v,slotProps:g={},slots:y={},TransitionProps:b}=e,x=(0,r.A)(e,Xe),A=i.useRef(null),w=k(A,t),S=i.useRef(null),C=k(S,v),E=i.useRef(C);h((()=>{E.current=C}),[C]),i.useImperativeHandle(v,(()=>S.current),[]);const O=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(f,l),[R,P]=i.useState(O),[$,M]=i.useState(Ye(a));i.useEffect((()=>{S.current&&S.current.forceUpdate()})),i.useEffect((()=>{a&&M(Ye(a))}),[a]),h((()=>{if(!$||!p)return;let e=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{P(e.placement)}}];null!=d&&(e=e.concat(d)),m&&null!=m.modifiers&&(e=e.concat(m.modifiers));const t=Te($,A.current,(0,o.A)({placement:O},m,{modifiers:e}));return E.current(t),()=>{t.destroy(),E.current(null)}}),[$,u,d,p,m,O]);const T={placement:R};null!==b&&(T.TransitionProps=b);const I=(e=>{const{classes:t}=e;return c({root:["root"]},Ue,t)})(e),N=null!=(n=y.root)?n:"div",j=De({elementType:N,externalSlotProps:g.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:w},ownerState:e,className:I.root});return(0,We.jsx)(N,(0,o.A)({},j,{children:"function"==typeof s?s(T):s}))})),Qe=i.forwardRef((function(e,t){const{anchorEl:n,children:a,container:s,direction:l="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:d,open:p,placement:f="bottom",popperOptions:h=Je,popperRef:m,style:v,transition:g=!1,slotProps:y={},slots:b={}}=e,x=(0,r.A)(e,Ge),[A,w]=i.useState(!0);if(!u&&!p&&(!g||A))return null;let k;if(s)k=s;else if(n){const e=Ye(n);k=e&&void 0!==e.nodeType?S(e).body:S(null).body}const C=p||!u||g&&!A?void 0:"none",E=g?{in:p,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return(0,We.jsx)(_e,{disablePortal:c,container:k,children:(0,We.jsx)(Ze,(0,o.A)({anchorEl:n,direction:l,disablePortal:c,modifiers:d,ref:t,open:g?!A:p,placement:f,popperOptions:h,popperRef:m,slotProps:y,slots:b},x,{style:(0,o.A)({position:"fixed",top:0,left:0,display:C},v),TransitionProps:E,children:a}))})}));var et=n(6461);const tt=(0,n(3478).A)();var nt=n(8312);const rt=(0,et.Ay)({themeId:nt.A,defaultTheme:tt,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e});var ot=n(5603);function it(e){return(0,ot.b)(e)}const at=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],st=rt(Qe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lt=i.forwardRef((function(e,t){var n;const i=(0,w.A)(),a=it({props:e,name:"MuiPopper"}),{anchorEl:s,component:l,components:c,componentsProps:u,container:d,disablePortal:p,keepMounted:f,modifiers:h,open:m,placement:v,popperOptions:g,popperRef:y,transition:b,slots:x,slotProps:A}=a,k=(0,r.A)(a,at),S=null!=(n=null==x?void 0:x.root)?n:null==c?void 0:c.Root,C=(0,o.A)({anchorEl:s,container:d,disablePortal:p,keepMounted:f,modifiers:h,open:m,placement:v,popperOptions:g,popperRef:y,transition:b},k);return(0,We.jsx)(st,(0,o.A)({as:l,direction:null==i?void 0:i.direction,slots:{root:S},slotProps:null!=A?A:u},C,{ref:t}))})),ct=n(3967).A;function ut(e){return qe("MuiListSubheader",e)}Ke("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const dt=["className","color","component","disableGutters","disableSticky","inset"],pt=rt("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${ct(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,o.A)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),ft=i.forwardRef((function(e,t){const n=it({props:e,name:"MuiListSubheader"}),{className:i,color:a="default",component:s="li",disableGutters:u=!1,disableSticky:d=!1,inset:p=!1}=n,f=(0,r.A)(n,dt),h=(0,o.A)({},n,{color:a,component:s,disableGutters:u,disableSticky:d,inset:p}),m=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e;return c({root:["root","default"!==n&&`color${ct(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]},ut,t)})(h);return(0,We.jsx)(pt,(0,o.A)({as:s,className:l(m.root,i),ref:t,ownerState:h},f))}));ft.muiSkipListHighlight=!0;const ht=ft,mt=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function vt(e){return qe("MuiPaper",e)}Ke("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const gt=["className","component","elevation","square","variant"],yt=rt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return(0,o.A)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,o.A)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,u.X4)("#fff",mt(t.elevation))}, ${(0,u.X4)("#fff",mt(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),bt=i.forwardRef((function(e,t){const n=it({props:e,name:"MuiPaper"}),{className:i,component:a="div",elevation:s=1,square:u=!1,variant:d="elevation"}=n,p=(0,r.A)(n,gt),f=(0,o.A)({},n,{component:a,elevation:s,square:u,variant:d}),h=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return c({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},vt,o)})(f);return(0,We.jsx)(yt,(0,o.A)({as:a,ownerState:f,className:l(h.root,i),ref:t},p))})),xt=k,At=m,wt={},kt=[];class St{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new St}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}let Ct=!0,Et=!1;const Ot=new St,Rt={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Pt(e){e.metaKey||e.altKey||e.ctrlKey||(Ct=!0)}function $t(){Ct=!1}function Mt(){"hidden"===this.visibilityState&&Et&&(Ct=!0)}const Tt=function(){const e=i.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Pt,!0),t.addEventListener("mousedown",$t,!0),t.addEventListener("pointerdown",$t,!0),t.addEventListener("touchstart",$t,!0),t.addEventListener("visibilitychange",Mt,!0))}),[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ct||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Rt[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Et=!0,Ot.start(100,(()=>{Et=!1})),t.current=!1,!0)},ref:e}};var It=n(9417),Nt=n(7387),jt=n(7241);function Lt(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function zt(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Dt(e,t,n){var r=Lt(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,i.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,i.isValidElement)(u)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:zt(s,"exit",e),enter:zt(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:zt(s,"exit",e),enter:zt(s,"enter",e)})}})),o}var Ft=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Wt=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,It.A)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,Nt.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,Lt(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:zt(e,"appear",n),enter:zt(e,"enter",n),exit:zt(e,"exit",n)})}))):Dt(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=Lt(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,o.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=(0,r.A)(e,["component","childFactory"]),i=this.state.contextValue,s=Ft(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?a().createElement(jt.A.Provider,{value:i},s):a().createElement(jt.A.Provider,{value:i},a().createElement(t,o,s))},t}(a().Component);Wt.propTypes={},Wt.defaultProps={component:"div",childFactory:function(e){return e}};const _t=Wt;var Bt=n(7437);const Vt=Ke("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ht=["center","classes","className"];let qt,Kt,Ut,Xt,Gt=e=>e;const Yt=(0,Bt.i7)(qt||(qt=Gt` 0% { transform: scale(0); opacity: 0.1; } 100% { transform: scale(1); opacity: 0.3; } `)),Jt=(0,Bt.i7)(Kt||(Kt=Gt` 0% { opacity: 1; } 100% { opacity: 0; } `)),Zt=(0,Bt.i7)(Ut||(Ut=Gt` 0% { transform: scale(1); } 50% { transform: scale(0.92); } 100% { transform: scale(1); } `)),Qt=rt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),en=rt((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:c,onExited:u,timeout:d}=e,[p,f]=i.useState(!1),h=l(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:s,height:s,top:-s/2+a,left:-s/2+o},v=l(n.child,p&&n.childLeaving,r&&n.childPulsate);return c||p||f(!0),i.useEffect((()=>{if(!c&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,c,d]),(0,We.jsx)("span",{className:h,style:m,children:(0,We.jsx)("span",{className:v})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Xt||(Xt=Gt` opacity: 0; position: absolute; &.${0} { opacity: 0.3; transform: scale(1); animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } &.${0} { animation-duration: ${0}ms; } & .${0} { opacity: 1; display: block; width: 100%; height: 100%; border-radius: 50%; background-color: currentColor; } & .${0} { opacity: 0; animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } & .${0} { position: absolute; /* @noflip */ left: 0px; top: 0; animation-name: ${0}; animation-duration: 2500ms; animation-timing-function: ${0}; animation-iteration-count: infinite; animation-delay: 200ms; } `),Vt.rippleVisible,Yt,550,(({theme:e})=>e.transitions.easing.easeInOut),Vt.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Vt.child,Vt.childLeaving,Jt,550,(({theme:e})=>e.transitions.easing.easeInOut),Vt.childPulsate,Zt,(({theme:e})=>e.transitions.easing.easeInOut)),tn=i.forwardRef((function(e,t){const n=it({props:e,name:"MuiTouchRipple"}),{center:a=!1,classes:s={},className:c}=n,u=(0,r.A)(n,Ht),[d,p]=i.useState([]),f=i.useRef(0),h=i.useRef(null);i.useEffect((()=>{h.current&&(h.current(),h.current=null)}),[d]);const m=i.useRef(!1),v=function(){const e=function(e){const t=i.useRef(wt);return t.current===wt&&(t.current=e(void 0)),t}(St.create).current;var t;return t=e.disposeEffect,i.useEffect(t,kt),e}(),g=i.useRef(null),y=i.useRef(null),b=i.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:i}=e;p((e=>[...e,(0,We.jsx)(en,{classes:{ripple:l(s.ripple,Vt.ripple),rippleVisible:l(s.rippleVisible,Vt.rippleVisible),ripplePulsate:l(s.ripplePulsate,Vt.ripplePulsate),child:l(s.child,Vt.child),childLeaving:l(s.childLeaving,Vt.childLeaving),childPulsate:l(s.childPulsate,Vt.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},f.current)])),f.current+=1,h.current=i}),[s]),x=i.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:r=!1,center:o=a||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&m.current)return void(m.current=!1);"touchstart"===(null==e?void 0:e.type)&&(m.current=!0);const s=i?null:y.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(o)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===g.current&&(g.current=()=>{b({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})},v.start(80,(()=>{g.current&&(g.current(),g.current=null)}))):b({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[a,b,v]),A=i.useCallback((()=>{x({},{pulsate:!0})}),[x]),w=i.useCallback(((e,t)=>{if(v.clear(),"touchend"===(null==e?void 0:e.type)&&g.current)return g.current(),g.current=null,void v.start(0,(()=>{w(e,t)}));g.current=null,p((e=>e.length>0?e.slice(1):e)),h.current=t}),[v]);return i.useImperativeHandle(t,(()=>({pulsate:A,start:x,stop:w})),[A,x,w]),(0,We.jsx)(Qt,(0,o.A)({className:l(Vt.root,s.root,c),ref:y},u,{children:(0,We.jsx)(_t,{component:null,exit:!0,children:d})}))})),nn=tn;function rn(e){return qe("MuiButtonBase",e)}const on=Ke("MuiButtonBase",["root","disabled","focusVisible"]),an=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],sn=rt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${on.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ln=i.forwardRef((function(e,t){const n=it({props:e,name:"MuiButtonBase"}),{action:a,centerRipple:s=!1,children:u,className:d,component:p="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:m=!1,focusRipple:v=!1,LinkComponent:g="a",onBlur:y,onClick:b,onContextMenu:x,onDragLeave:A,onFocus:w,onFocusVisible:k,onKeyDown:S,onKeyUp:C,onMouseDown:E,onMouseLeave:O,onMouseUp:R,onTouchEnd:P,onTouchMove:$,onTouchStart:M,tabIndex:T=0,TouchRippleProps:I,touchRippleRef:N,type:j}=n,L=(0,r.A)(n,an),z=i.useRef(null),D=i.useRef(null),F=xt(D,N),{isFocusVisibleRef:W,onFocus:_,onBlur:B,ref:V}=Tt(),[H,q]=i.useState(!1);f&&H&&q(!1),i.useImperativeHandle(a,(()=>({focusVisible:()=>{q(!0),z.current.focus()}})),[]);const[K,U]=i.useState(!1);i.useEffect((()=>{U(!0)}),[]);const X=K&&!h&&!f;function G(e,t,n=m){return At((r=>(t&&t(r),!n&&D.current&&D.current[e](r),!0)))}i.useEffect((()=>{H&&v&&!h&&K&&D.current.pulsate()}),[h,v,H,K]);const Y=G("start",E),J=G("stop",x),Z=G("stop",A),Q=G("stop",R),ee=G("stop",(e=>{H&&e.preventDefault(),O&&O(e)})),te=G("start",M),ne=G("stop",P),re=G("stop",$),oe=G("stop",(e=>{B(e),!1===W.current&&q(!1),y&&y(e)}),!1),ie=At((e=>{z.current||(z.current=e.currentTarget),_(e),!0===W.current&&(q(!0),k&&k(e)),w&&w(e)})),ae=()=>{const e=z.current;return p&&"button"!==p&&!("A"===e.tagName&&e.href)},se=i.useRef(!1),le=At((e=>{v&&!se.current&&H&&D.current&&" "===e.key&&(se.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!f&&(e.preventDefault(),b&&b(e))})),ce=At((e=>{v&&" "===e.key&&D.current&&H&&!e.defaultPrevented&&(se.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),C&&C(e),b&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&b(e)}));let ue=p;"button"===ue&&(L.href||L.to)&&(ue=g);const de={};"button"===ue?(de.type=void 0===j?"button":j,de.disabled=f):(L.href||L.to||(de.role="button"),f&&(de["aria-disabled"]=f));const pe=xt(t,V,z),fe=(0,o.A)({},n,{centerRipple:s,component:p,disabled:f,disableRipple:h,disableTouchRipple:m,focusRipple:v,tabIndex:T,focusVisible:H}),he=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=c({root:["root",t&&"disabled",n&&"focusVisible"]},rn,o);return n&&r&&(i.root+=` ${r}`),i})(fe);return(0,We.jsxs)(sn,(0,o.A)({as:ue,className:l(he.root,d),ownerState:fe,onBlur:oe,onClick:b,onContextMenu:J,onFocus:ie,onKeyDown:le,onKeyUp:ce,onMouseDown:Y,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:pe,tabIndex:f?-1:T,type:j},de,L,{children:[u,X?(0,We.jsx)(nn,(0,o.A)({ref:F,center:s},I)):null]}))})),cn=ln;function un(e){return qe("MuiIconButton",e)}const dn=Ke("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),pn=["edge","children","className","color","disabled","disableFocusRipple","size"],fn=rt(cn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${ct(n.color)}`],n.edge&&t[`edge${ct(n.edge)}`],t[`size${ct(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,o.A)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,u.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return(0,o.A)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,o.A)({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":(0,o.A)({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,u.X4)(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${dn.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),hn=i.forwardRef((function(e,t){const n=it({props:e,name:"MuiIconButton"}),{edge:i=!1,children:a,className:s,color:u="default",disabled:d=!1,disableFocusRipple:p=!1,size:f="medium"}=n,h=(0,r.A)(n,pn),m=(0,o.A)({},n,{edge:i,color:u,disabled:d,disableFocusRipple:p,size:f}),v=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return c({root:["root",n&&"disabled","default"!==r&&`color${ct(r)}`,o&&`edge${ct(o)}`,`size${ct(i)}`]},un,t)})(m);return(0,We.jsx)(fn,(0,o.A)({className:l(v.root,s),centerRipple:!0,focusRipple:!p,disabled:d,ref:t},h,{ownerState:m,children:a}))}));function mn(e){return qe("MuiSvgIcon",e)}Ke("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vn=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gn=rt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ct(n.color)}`],t[`fontSize${ct(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),yn=i.forwardRef((function(e,t){const n=it({props:e,name:"MuiSvgIcon"}),{children:a,className:s,color:u="inherit",component:d="svg",fontSize:p="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:m,viewBox:v="0 0 24 24"}=n,g=(0,r.A)(n,vn),y=i.isValidElement(a)&&"svg"===a.type,b=(0,o.A)({},n,{color:u,component:d,fontSize:p,instanceFontSize:e.fontSize,inheritViewBox:h,viewBox:v,hasSvgAsChild:y}),x={};h||(x.viewBox=v);const A=(e=>{const{color:t,fontSize:n,classes:r}=e;return c({root:["root","inherit"!==t&&`color${ct(t)}`,`fontSize${ct(n)}`]},mn,r)})(b);return(0,We.jsxs)(gn,(0,o.A)({as:d,className:l(A.root,s),focusable:"false",color:f,"aria-hidden":!m||void 0,role:m?"img":void 0,ref:t},x,g,y&&a.props,{ownerState:b,children:[y?a.props.children:a,m?(0,We.jsx)("title",{children:m}):null]}))}));yn.muiName="SvgIcon";const bn=yn;function xn(e,t){function n(n,r){return(0,We.jsx)(bn,(0,o.A)({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=bn.muiName,i.memo(i.forwardRef(n))}const An=xn((0,We.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function wn(e){return qe("MuiChip",e)}const kn=Ke("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Sn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Cn=rt("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${kn.avatar}`]:t.avatar},{[`& .${kn.avatar}`]:t[`avatar${ct(s)}`]},{[`& .${kn.avatar}`]:t[`avatarColor${ct(r)}`]},{[`& .${kn.icon}`]:t.icon},{[`& .${kn.icon}`]:t[`icon${ct(s)}`]},{[`& .${kn.icon}`]:t[`iconColor${ct(o)}`]},{[`& .${kn.deleteIcon}`]:t.deleteIcon},{[`& .${kn.deleteIcon}`]:t[`deleteIcon${ct(s)}`]},{[`& .${kn.deleteIcon}`]:t[`deleteIconColor${ct(r)}`]},{[`& .${kn.deleteIcon}`]:t[`deleteIcon${ct(l)}Color${ct(r)}`]},t.root,t[`size${ct(s)}`],t[`color${ct(r)}`],i&&t.clickable,i&&"default"!==r&&t[`clickableColor${ct(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${ct(r)}`],t[l],t[`${l}${ct(r)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,o.A)({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${kn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${kn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${kn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${kn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${kn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${kn.icon}`]:(0,o.A)({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,o.A)({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},"default"!==t.color&&{color:"inherit"})),[`& .${kn.deleteIcon}`]:(0,o.A)({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,u.X4)(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,u.X4)(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,u.X4)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${kn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,u.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${kn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,o.A)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,u.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${kn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,u.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${kn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,o.A)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${kn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${kn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${kn.avatar}`]:{marginLeft:4},[`& .${kn.avatarSmall}`]:{marginLeft:2},[`& .${kn.icon}`]:{marginLeft:4},[`& .${kn.iconSmall}`]:{marginLeft:2},[`& .${kn.deleteIcon}`]:{marginRight:5},[`& .${kn.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,u.X4)(e.palette[t.color].main,.7)}`,[`&.${kn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,u.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${kn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,u.X4)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${kn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,u.X4)(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}}))),En=rt("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ct(r)}`]]}})((({ownerState:e})=>(0,o.A)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===e.variant&&{paddingLeft:11,paddingRight:11},"small"===e.size&&{paddingLeft:8,paddingRight:8},"small"===e.size&&"outlined"===e.variant&&{paddingLeft:7,paddingRight:7})));function On(e){return"Backspace"===e.key||"Delete"===e.key}const Rn=i.forwardRef((function(e,t){const n=it({props:e,name:"MuiChip"}),{avatar:a,className:s,clickable:u,color:d="default",component:p,deleteIcon:f,disabled:h=!1,icon:m,label:v,onClick:g,onDelete:y,onKeyDown:b,onKeyUp:x,size:A="medium",variant:w="filled",tabIndex:k,skipFocusWhenDisabled:S=!1}=n,C=(0,r.A)(n,Sn),E=i.useRef(null),O=xt(E,t),R=e=>{e.stopPropagation(),y&&y(e)},P=!(!1===u||!g)||u,$=P||y?cn:p||"div",M=(0,o.A)({},n,{component:$,disabled:h,size:A,color:d,iconColor:i.isValidElement(m)&&m.props.color||d,onDelete:!!y,clickable:P,variant:w}),T=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e;return c({root:["root",l,n&&"disabled",`size${ct(r)}`,`color${ct(o)}`,s&&"clickable",s&&`clickableColor${ct(o)}`,a&&"deletable",a&&`deletableColor${ct(o)}`,`${l}${ct(o)}`],label:["label",`label${ct(r)}`],avatar:["avatar",`avatar${ct(r)}`,`avatarColor${ct(o)}`],icon:["icon",`icon${ct(r)}`,`iconColor${ct(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ct(r)}`,`deleteIconColor${ct(o)}`,`deleteIcon${ct(l)}Color${ct(o)}`]},wn,t)})(M),I=$===cn?(0,o.A)({component:p||"div",focusVisibleClassName:T.focusVisible},y&&{disableRipple:!0}):{};let N=null;y&&(N=f&&i.isValidElement(f)?i.cloneElement(f,{className:l(f.props.className,T.deleteIcon),onClick:R}):(0,We.jsx)(An,{className:l(T.deleteIcon),onClick:R}));let j=null;a&&i.isValidElement(a)&&(j=i.cloneElement(a,{className:l(T.avatar,a.props.className)}));let L=null;return m&&i.isValidElement(m)&&(L=i.cloneElement(m,{className:l(T.icon,m.props.className)})),(0,We.jsxs)(Cn,(0,o.A)({as:$,className:l(T.root,s),disabled:!(!P||!h)||void 0,onClick:g,onKeyDown:e=>{e.currentTarget===e.target&&On(e)&&e.preventDefault(),b&&b(e)},onKeyUp:e=>{e.currentTarget===e.target&&(y&&On(e)?y(e):"Escape"===e.key&&E.current&&E.current.blur()),x&&x(e)},ref:O,tabIndex:S&&h?-1:k,ownerState:M},I,C,{children:[j||L,(0,We.jsx)(En,{className:l(T.label),ownerState:M,children:v}),N]}))})),Pn=Ke("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),$n=(0,o.A)({},Pn,Ke("MuiInput",["root","underline","input"])),Mn=(0,o.A)({},Pn,Ke("MuiOutlinedInput",["root","notchedOutline","input"])),Tn=(0,o.A)({},Pn,Ke("MuiFilledInput",["root","underline","input"])),In=xn((0,We.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Nn=xn((0,We.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function jn(e){return qe("MuiAutocomplete",e)}const Ln=Ke("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var zn,Dn;const Fn=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Wn=["ref"],Bn=["key"],Vn=["key"],Hn=rt("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${Ln.tag}`]:t.tag},{[`& .${Ln.tag}`]:t[`tagSize${ct(s)}`]},{[`& .${Ln.inputRoot}`]:t.inputRoot},{[`& .${Ln.input}`]:t.input},{[`& .${Ln.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Ln.focused} .${Ln.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ln.clearIndicator}`]:{visibility:"visible"}},[`& .${Ln.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Ln.inputRoot}`]:{[`.${Ln.hasPopupIcon}&, .${Ln.hasClearIcon}&`]:{paddingRight:30},[`.${Ln.hasPopupIcon}.${Ln.hasClearIcon}&`]:{paddingRight:56},[`& .${Ln.input}`]:{width:0,minWidth:30}},[`& .${$n.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${$n.root}.${Pn.sizeSmall}`]:{[`& .${$n.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Mn.root}`]:{padding:9,[`.${Ln.hasPopupIcon}&, .${Ln.hasClearIcon}&`]:{paddingRight:39},[`.${Ln.hasPopupIcon}.${Ln.hasClearIcon}&`]:{paddingRight:65},[`& .${Ln.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ln.endAdornment}`]:{right:9}},[`& .${Mn.root}.${Pn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ln.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Tn.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ln.hasPopupIcon}&, .${Ln.hasClearIcon}&`]:{paddingRight:39},[`.${Ln.hasPopupIcon}.${Ln.hasClearIcon}&`]:{paddingRight:65},[`& .${Tn.input}`]:{padding:"7px 4px"},[`& .${Ln.endAdornment}`]:{right:9}},[`& .${Tn.root}.${Pn.sizeSmall}`]:{paddingBottom:1,[`& .${Tn.input}`]:{padding:"2.5px 4px"}},[`& .${Pn.hiddenLabel}`]:{paddingTop:8},[`& .${Tn.root}.${Pn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ln.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Tn.root}.${Pn.hiddenLabel}.${Pn.sizeSmall}`]:{[`& .${Ln.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ln.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Ln.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Ln.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Ln.inputRoot}`]:{flexWrap:"wrap"}}}]}),qn=rt("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Kn=rt(hn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Un=rt(hn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,o.A)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),Xn=rt(lt,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ln.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),Gn=rt(bt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>(0,o.A)({},e.typography.body1,{overflow:"auto"}))),Yn=rt("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Jn=rt("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Zn=rt("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ln.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Ln.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Ln.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,u.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ln.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,u.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ln.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,u.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),Qn=rt(ht,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),er=rt("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Ln.option}`]:{paddingLeft:24}}),tr=i.forwardRef((function(e,t){var n,a,s,u;const d=it({props:e,name:"MuiAutocomplete"}),{autoComplete:p=!1,autoHighlight:f=!1,autoSelect:h=!1,blurOnSelect:m=!1,ChipProps:v,className:g,clearIcon:y=zn||(zn=(0,We.jsx)(In,{fontSize:"small"})),clearOnBlur:b=!d.freeSolo,clearOnEscape:x=!1,clearText:w="Clear",closeText:k="Close",componentsProps:S={},defaultValue:C=(d.multiple?[]:null),disableClearable:E=!1,disableCloseOnSelect:O=!1,disabled:R=!1,disabledItemsFocusable:P=!1,disableListWrap:$=!1,disablePortal:M=!1,filterSelectedOptions:T=!1,forcePopupIcon:I="auto",freeSolo:N=!1,fullWidth:j=!1,getLimitTagsText:L=e=>`+${e}`,getOptionLabel:z,groupBy:D,handleHomeEndKeys:F=!d.freeSolo,includeInputInList:W=!1,limitTags:_=-1,ListboxComponent:B="ul",ListboxProps:V,loading:H=!1,loadingText:q="Loading…",multiple:K=!1,noOptionsText:U="No options",openOnFocus:X=!1,openText:G="Open",PaperComponent:Y=bt,PopperComponent:J=lt,popupIcon:Z=Dn||(Dn=(0,We.jsx)(Nn,{})),readOnly:Q=!1,renderGroup:ee,renderInput:te,renderOption:ne,renderTags:re,selectOnFocus:oe=!d.freeSolo,size:ie="medium",slotProps:ae={}}=d,se=(0,r.A)(d,Fn),{getRootProps:le,getInputProps:ce,getInputLabelProps:ue,getPopupIndicatorProps:de,getClearProps:pe,getTagProps:fe,getListboxProps:he,getOptionProps:me,value:ve,dirty:ge,expanded:ye,id:be,popupOpen:xe,focused:Ae,focusedTag:we,anchorEl:ke,setAnchorEl:Se,inputValue:Ce,groupedOptions:Ee}=A((0,o.A)({},d,{componentName:"Autocomplete"})),Oe=!E&&!R&&ge&&!Q,Re=(!N||!0===I)&&!1!==I,{onMouseDown:Pe}=ce(),{ref:$e}=null!=V?V:{},Me=he(),{ref:Te}=Me,Ie=(0,r.A)(Me,Wn),Ne=xt(Te,$e),je=z||(e=>{var t;return null!=(t=e.label)?t:e}),Le=(0,o.A)({},d,{disablePortal:M,expanded:ye,focused:Ae,fullWidth:j,getOptionLabel:je,hasClearIcon:Oe,hasPopupIcon:Re,inputFocused:-1===we,popupOpen:xe,size:ie}),ze=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:d}=e;return c({root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ct(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},jn,t)})(Le);let De;if(K&&ve.length>0){const e=e=>(0,o.A)({className:ze.tag,disabled:R},fe(e));De=re?re(ve,e,Le):ve.map(((t,n)=>{const i=e({index:n}),{key:a}=i,s=(0,r.A)(i,Bn);return(0,We.jsx)(Rn,(0,o.A)({label:je(t),size:ie},s,v),a)}))}if(_>-1&&Array.isArray(De)){const e=De.length-_;!Ae&&e>0&&(De=De.splice(0,_),De.push((0,We.jsx)("span",{className:ze.tag,children:L(e)},De.length)))}const Fe=ee||(e=>(0,We.jsxs)("li",{children:[(0,We.jsx)(Qn,{className:ze.groupLabel,ownerState:Le,component:"div",children:e.group}),(0,We.jsx)(er,{className:ze.groupUl,ownerState:Le,children:e.children})]},e.key)),_e=ne||((e,t)=>{const{key:n}=e,i=(0,r.A)(e,Vn);return(0,We.jsx)("li",(0,o.A)({},i,{children:je(t)}),n)}),Be=(e,t)=>{const n=me({option:e,index:t});return _e((0,o.A)({},n,{className:ze.option}),e,{selected:n["aria-selected"],index:t,inputValue:Ce},Le)},Ve=null!=(n=ae.clearIndicator)?n:S.clearIndicator,He=null!=(a=ae.paper)?a:S.paper,qe=null!=(s=ae.popper)?s:S.popper,Ke=null!=(u=ae.popupIndicator)?u:S.popupIndicator,Ue=e=>(0,We.jsx)(Xn,(0,o.A)({as:J,disablePortal:M,style:{width:ke?ke.clientWidth:null},ownerState:Le,role:"presentation",anchorEl:ke,open:xe},qe,{className:l(ze.popper,null==qe?void 0:qe.className),children:(0,We.jsx)(Gn,(0,o.A)({ownerState:Le,as:Y},He,{className:l(ze.paper,null==He?void 0:He.className),children:e}))}));let Xe=null;return Ee.length>0?Xe=Ue((0,We.jsx)(Zn,(0,o.A)({as:B,className:ze.listbox,ownerState:Le},Ie,V,{ref:Ne,children:Ee.map(((e,t)=>D?Fe({key:e.key,group:e.group,children:e.options.map(((t,n)=>Be(t,e.index+n)))}):Be(e,t)))}))):H&&0===Ee.length?Xe=Ue((0,We.jsx)(Yn,{className:ze.loading,ownerState:Le,children:q})):0!==Ee.length||N||H||(Xe=Ue((0,We.jsx)(Jn,{className:ze.noOptions,ownerState:Le,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:U}))),(0,We.jsxs)(i.Fragment,{children:[(0,We.jsx)(Hn,(0,o.A)({ref:t,className:l(ze.root,g),ownerState:Le},le(se),{children:te({id:be,disabled:R,fullWidth:!0,size:"small"===ie?"small":void 0,InputLabelProps:ue(),InputProps:(0,o.A)({ref:Se,className:ze.inputRoot,startAdornment:De,onClick:e=>{e.target===e.currentTarget&&Pe(e)}},(Oe||Re)&&{endAdornment:(0,We.jsxs)(qn,{className:ze.endAdornment,ownerState:Le,children:[Oe?(0,We.jsx)(Kn,(0,o.A)({},pe(),{"aria-label":w,title:w,ownerState:Le},Ve,{className:l(ze.clearIndicator,null==Ve?void 0:Ve.className),children:y})):null,Re?(0,We.jsx)(Un,(0,o.A)({},de(),{disabled:R,"aria-label":xe?k:G,title:xe?k:G,ownerState:Le},Ke,{className:l(ze.popupIndicator,null==Ke?void 0:Ke.className),children:Z})):null]})}),inputProps:(0,o.A)({className:ze.input,disabled:R,readOnly:Q},ce())})})),ke?Xe:null]})}))},5415:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(8168),o=n(8587),i=n(1609);const a=i.createContext(null);function s(){return i.useContext(a)}const l="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var c=n(790);const u=function(e){const{children:t,theme:n}=e,o=s(),u=i.useMemo((()=>{const e=null===o?n:function(e,t){return"function"==typeof t?t(e):(0,r.A)({},e,t)}(o,n);return null!=e&&(e[l]=null!==o),e}),[n,o]);return(0,c.jsx)(a.Provider,{value:u,children:t})};var d=n(9214);const p=["value"],f=i.createContext(),h=function(e){let{value:t}=e,n=(0,o.A)(e,p);return(0,c.jsx)(f.Provider,(0,r.A)({value:null==t||t},n))};var m=n(5603);const v={};function g(e,t,n,o=!1){return i.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof n){const a=n(i),s=e?(0,r.A)({},t,{[e]:a}):a;return o?()=>s:s}return e?(0,r.A)({},t,{[e]:n}):(0,r.A)({},t,n)}),[e,t,n,o])}const y=function(e){const{children:t,theme:n,themeId:r}=e,o=function(e=null){const t=i.useContext(d.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}(v),a=s()||v,l=g(r,o,n),p=g(r,a,n,!0),f="rtl"===l.direction;return(0,c.jsx)(u,{theme:p,children:(0,c.jsx)(d.T.Provider,{value:l,children:(0,c.jsx)(h,{value:f,children:(0,c.jsx)(m.A,{value:null==l?void 0:l.components,children:t})})})})};var b=n(8312);const x=["theme"];function A(e){let{theme:t}=e,n=(0,o.A)(e,x);const i=t[b.A];return(0,c.jsx)(y,(0,r.A)({},n,{themeId:i?b.A:void 0,theme:i||t}))}},3478:(e,t,n)=>{"use strict";n.d(t,{A:()=>ce});var r=n(8168),o=n(8587),i=n(9453),a=n(1317),s=n(4188),l=n(3571),c=n(8749),u=n(771);const d={black:"#000",white:"#fff"},p={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},f="#f3e5f5",h="#ce93d8",m="#ba68c8",v="#ab47bc",g="#9c27b0",y="#7b1fa2",b="#e57373",x="#ef5350",A="#f44336",w="#d32f2f",k="#c62828",S="#ffb74d",C="#ffa726",E="#ff9800",O="#f57c00",R="#e65100",P="#e3f2fd",$="#90caf9",M="#42a5f5",T="#1976d2",I="#1565c0",N="#4fc3f7",j="#29b6f6",L="#03a9f4",z="#0288d1",D="#01579b",F="#81c784",W="#66bb6a",_="#4caf50",B="#388e3c",V="#2e7d32",H="#1b5e20",q=["mode","contrastThreshold","tonalOffset"],K={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},U={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function X(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.a)(e.main,o):"dark"===t&&(e.dark=(0,u.e$)(e.main,i)))}const G=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],Y={textTransform:"uppercase"},J='"Roboto", "Helvetica", "Arial", sans-serif';function Z(e,t){const n="function"==typeof t?t(e):t,{fontFamily:i=J,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:f,pxToRem:h}=n,m=(0,o.A)(n,G),v=s/14,g=h||(e=>e/p*v+"rem"),y=(e,t,n,o,a)=>{return(0,r.A)({fontFamily:i,fontWeight:e,fontSize:g(t),lineHeight:n},i===J?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5+"em")}:{},a,f);var s},b={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(c,48,1.167,0),h4:y(c,34,1.235,.25),h5:y(c,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(c,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(c,16,1.5,.15),body2:y(c,14,1.43,.15),button:y(u,14,1.75,.4,Y),caption:y(c,12,1.66,.4),overline:y(c,12,2.66,1,Y),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.A)((0,r.A)({htmlFontSize:p,pxToRem:g,fontFamily:i,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),m,{clone:!1})}function Q(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ee=["none",Q(0,2,1,-1,0,1,1,0,0,1,3,0),Q(0,3,1,-2,0,2,2,0,0,1,5,0),Q(0,3,3,-2,0,3,4,0,0,1,8,0),Q(0,2,4,-1,0,4,5,0,0,1,10,0),Q(0,3,5,-1,0,5,8,0,0,1,14,0),Q(0,3,5,-1,0,6,10,0,0,1,18,0),Q(0,4,5,-2,0,7,10,1,0,2,16,1),Q(0,5,5,-3,0,8,10,1,0,3,14,2),Q(0,5,6,-3,0,9,12,1,0,3,16,2),Q(0,6,6,-3,0,10,14,1,0,4,18,3),Q(0,6,7,-4,0,11,15,1,0,4,20,3),Q(0,7,8,-4,0,12,17,2,0,5,22,4),Q(0,7,8,-4,0,13,19,2,0,5,24,4),Q(0,7,9,-4,0,14,21,2,0,5,26,4),Q(0,8,9,-5,0,15,22,2,0,6,28,5),Q(0,8,10,-5,0,16,24,2,0,6,30,5),Q(0,8,11,-5,0,17,26,2,0,6,32,5),Q(0,9,11,-5,0,18,28,2,0,7,34,6),Q(0,9,12,-6,0,19,29,2,0,7,36,6),Q(0,10,13,-6,0,20,31,3,0,8,38,7),Q(0,10,13,-6,0,21,33,3,0,8,40,7),Q(0,10,14,-6,0,22,35,3,0,8,42,7),Q(0,11,14,-7,0,23,36,3,0,9,44,8),Q(0,11,15,-7,0,24,38,3,0,9,46,8)],te=["duration","easing","delay"],ne={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},re={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function oe(e){return`${Math.round(e)}ms`}function ie(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ae(e){const t=(0,r.A)({},ne,e.easing),n=(0,r.A)({},re,e.duration);return(0,r.A)({getAutoHeightDuration:ie,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:s=0}=r;return(0,o.A)(r,te),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:oe(i)} ${a} ${"string"==typeof s?s:oe(s)}`)).join(",")}},e,{easing:t,duration:n})}const se={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},le=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const ce=function(e={},...t){const{mixins:n={},palette:G={},transitions:Y={},typography:J={}}=e,Q=(0,o.A)(e,le);if(e.vars)throw new Error((0,i.A)(18));const te=function(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,o.A)(e,q),c=e.primary||function(e="light"){return"dark"===e?{main:$,light:P,dark:M}:{main:T,light:M,dark:I}}(t),G=e.secondary||function(e="light"){return"dark"===e?{main:h,light:f,dark:v}:{main:g,light:m,dark:y}}(t),Y=e.error||function(e="light"){return"dark"===e?{main:A,light:b,dark:w}:{main:w,light:x,dark:k}}(t),J=e.info||function(e="light"){return"dark"===e?{main:j,light:N,dark:z}:{main:z,light:L,dark:D}}(t),Z=e.success||function(e="light"){return"dark"===e?{main:W,light:F,dark:B}:{main:V,light:_,dark:H}}(t),Q=e.warning||function(e="light"){return"dark"===e?{main:C,light:S,dark:O}:{main:"#ed6c02",light:E,dark:R}}(t);function ee(e){return(0,u.eM)(e,U.text.primary)>=n?U.text.primary:K.text.primary}const te=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=(0,r.A)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error((0,i.A)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error((0,i.A)(12,t?` (${t})`:"",JSON.stringify(e.main)));return X(e,"light",o,s),X(e,"dark",a,s),e.contrastText||(e.contrastText=ee(e.main)),e},ne={dark:U,light:K};return(0,a.A)((0,r.A)({common:(0,r.A)({},d),mode:t,primary:te({color:c,name:"primary"}),secondary:te({color:G,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:te({color:Y,name:"error"}),warning:te({color:Q,name:"warning"}),info:te({color:J,name:"info"}),success:te({color:Z,name:"success"}),grey:p,contrastThreshold:n,getContrastText:ee,augmentColor:te,tonalOffset:s},ne[t]),l)}(G),ne=(0,c.A)(e);let re=(0,a.A)(ne,{mixins:(oe=ne.breakpoints,ie=n,(0,r.A)({toolbar:{minHeight:56,[oe.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[oe.up("sm")]:{minHeight:64}}},ie)),palette:te,shadows:ee.slice(),typography:Z(te,J),transitions:ae(Y),zIndex:(0,r.A)({},se)});var oe,ie;return re=(0,a.A)(re,Q),re=t.reduce(((e,t)=>(0,a.A)(e,t)),re),re.unstable_sxConfig=(0,r.A)({},s.A,null==Q?void 0:Q.unstable_sxConfig),re.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},re}},8312:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="$$material"},7540:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>A,StyledEngineProvider:()=>x,ThemeContext:()=>a.T,css:()=>v.AH,default:()=>w,internal_processStyles:()=>k,keyframes:()=>v.i7});var r=n(8168),o=n(1609),i=n(1907),a=n(9214),s=n(41),l=n(5021),c=n(1287),u=i.A,d=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?u:d},f=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},h=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,s.SF)(t,n,r),(0,c.s)((function(){return(0,s.sk)(t,n,r)})),null},m=function e(t,n){var i,c,u=t.__emotion_real===t,d=u&&t.__emotion_base||t;void 0!==n&&(i=n.label,c=n.target);var m=f(t,n,u),v=m||p(d),g=!v("as");return function(){var y=arguments,b=u&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var x=y.length,A=1;A<x;A++)b.push(y[A],y[0][A])}var w=(0,a.w)((function(e,t,n){var r=g&&e.as||d,i="",u=[],f=e;if(null==e.theme){for(var y in f={},e)f[y]=e[y];f.theme=o.useContext(a.T)}"string"==typeof e.className?i=(0,s.Rk)(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var x=(0,l.J)(b.concat(u),t.registered,f);i+=t.key+"-"+x.name,void 0!==c&&(i+=" "+c);var A=g&&void 0===m?p(r):v,w={};for(var k in e)g&&"as"===k||A(k)&&(w[k]=e[k]);return w.className=i,n&&(w.ref=n),o.createElement(o.Fragment,null,o.createElement(h,{cache:t,serialized:x,isStringTag:"string"==typeof r}),o.createElement(r,w))}));return w.displayName=void 0!==i?i:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=d,w.__emotion_styles=b,w.__emotion_forwardProp=m,Object.defineProperty(w,"toString",{value:function(){return"."+c}}),w.withComponent=function(t,o){return e(t,(0,r.A)({},n,o,{shouldForwardProp:f(w,o,!0)})).apply(void 0,b)},w}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){m[e]=m(e)}));var v=n(7437),g=n(5655),y=n(790);let b;function x(e){const{injectFirst:t,children:n}=e;return t&&b?(0,y.jsx)(a.C,{value:b,children:n}):n}function A(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,y.jsx)(v.mL,{styles:r})}function w(e,t){return m(e,t)}"object"==typeof document&&(b=(0,g.A)({key:"css",prepend:!0}));const k=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},771:(e,t,n)=>{"use strict";var r=n(4994);t.X4=function(e,t){return e=s(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,l(e)},t.e$=u,t.eM=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=d;var o=r(n(8944)),i=r(n(7535));function a(e,t=0,n=1){return(0,i.default)(e,t,n)}function s(e){if(e.type)return e;if("#"===e.charAt(0))return s(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,o.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,o.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}function l(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function c(e){let t="hsl"===(e=s(e)).type||"hsla"===e.type?s(function(e){e=s(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)}function d(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l(e)}},6461:(e,t,n)=>{"use strict";var r=n(4994);t.Ay=function(e={}){const{themeId:t,defaultTheme:n=m,rootShouldForwardProp:r=h,slotShouldForwardProp:l=h}=e,u=e=>(0,c.default)((0,o.default)({},e,{theme:g((0,o.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,(e,c={})=>{(0,a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:f,skipVariantsResolver:m,skipSx:x,overridesResolver:A=y(v(f))}=c,w=(0,i.default)(c,p),k=void 0!==m?m:f&&"Root"!==f&&"root"!==f||!1,S=x||!1;let C=h;"Root"===f||"root"===f?C=r:f?C=l:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(C=void 0);const E=(0,a.default)(e,(0,o.default)({shouldForwardProp:C,label:void 0},w)),O=e=>"function"==typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>b(e,(0,o.default)({},r,{theme:g({theme:r.theme,defaultTheme:n,themeId:t})})):e,R=(r,...i)=>{let a=O(r);const s=i?i.map(O):[];d&&A&&s.push((e=>{const r=g((0,o.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const i=r.components[d].styleOverrides,a={};return Object.entries(i).forEach((([t,n])=>{a[t]=b(n,(0,o.default)({},e,{theme:r}))})),A(e,a)})),d&&!k&&s.push((e=>{var r;const i=g((0,o.default)({},e,{defaultTheme:n,themeId:t}));return b({variants:null==i||null==(r=i.components)||null==(r=r[d])?void 0:r.variants},(0,o.default)({},e,{theme:i}))})),S||s.push(u);const l=s.length-i.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=E(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return E.withConfig&&(R.withConfig=E.withConfig),R}};var o=r(n(4634)),i=r(n(4893)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(7540)),s=n(4239),l=(r(n(7149)),r(n(7320)),r(n(3142))),c=r(n(2891));const u=["ownerState"],d=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function h(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.default)(),v=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function g({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function y(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:n}=t,r=(0,i.default)(t,u);const a="function"==typeof e?e((0,o.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>b(e,(0,o.default)({ownerState:n},r))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,i.default)(a,d);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props((0,o.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,o.default)({ownerState:n},r,n)):e.style))})),t}return a}},5603:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,b:()=>l});var r=n(1609),o=n(8168);function i(e,t){const n=(0,o.A)({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=(0,o.A)({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const a=e[r]||{},s=t[r];n[r]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[r]=(0,o.A)({},s),Object.keys(a).forEach((e=>{n[r][e]=i(a[e],s[e])}))):n[r]=s:n[r]=a}else void 0===n[r]&&(n[r]=e[r])})),n}var a=n(790);const s=r.createContext(void 0);function l({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?i(o.defaultProps,r):o.styleOverrides||o.variants?r:i(o,r)}({props:e,name:t,theme:{components:r.useContext(s)}})}const c=function({value:e,children:t}){return(0,a.jsx)(s.Provider,{value:e,children:t})}},9452:(e,t,n)=>{"use strict";n.d(t,{EU:()=>a,NI:()=>i,vf:()=>s,zu:()=>r});const r={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${r[e]}px)`};function i(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const e=i.breakpoints||o;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=i.breakpoints||o;return Object.keys(t).reduce(((o,i)=>{if(-1!==Object.keys(e.values||r).indexOf(i))o[e.up(i)]=n(t[i],i);else{const e=i;o[e]=t[e]}return o}),{})}return n(t)}function a(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function s(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}},8336:(e,t,n)=>{"use strict";function r(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},8094:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(8587),o=n(8168);const i=["values","unit","step"],a=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,o.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.A)(e,i),c=a(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function p(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-s/100}${n})`}function f(e,r){const o=u.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[u[o]]?t[u[o]]:r)-s/100}${n})`}return(0,o.A)({keys:u,values:c,up:d,down:p,between:f,only:function(e){return u.indexOf(e)+1<u.length?f(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?p(u[t]):f(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}},8749:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(8168),o=n(8587),i=n(1317),a=n(8094);const s={borderRadius:4};var l=n(8248),c=n(3571),u=n(4188),d=n(8336);const p=["breakpoints","palette","spacing","shape"],f=function(e={},...t){const{breakpoints:n={},palette:f={},spacing:h,shape:m={}}=e,v=(0,o.A)(e,p),g=(0,a.A)(n),y=function(e=8){if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(h);let b=(0,i.A)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},f),spacing:y,shape:(0,r.A)({},s,m)},v);return b.applyStyles=d.A,b=t.reduce(((e,t)=>(0,i.A)(e,t)),b),b.unstable_sxConfig=(0,r.A)({},u.A,null==v?void 0:v.unstable_sxConfig),b.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},b}},3142:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>o.A,unstable_applyStyles:()=>i.A});var r=n(8749),o=n(8094),i=n(8336)},4620:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1317);const o=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},8248:(e,t,n)=>{"use strict";n.d(t,{LX:()=>h,MA:()=>f,_W:()=>m,Lc:()=>g,Ms:()=>y});var r=n(9452),o=n(6481),i=n(4620);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],o=s[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})(t)),e[t])}(),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...d];function f(e,t,n,r){var i;const a=null!=(i=(0,o.Yn)(e,t,!1))?i:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function h(e){return f(e,"spacing",8)}function m(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function v(e,t){const n=h(e.theme);return Object.keys(e).map((o=>function(e,t,n,o){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=m(t,n),e)),{})}(c(n),o),a=e[n];return(0,r.NI)(e,a,i)}(e,t,o,n))).reduce(i.A,{})}function g(e){return v(e,u)}function y(e){return v(e,d)}function b(e){return v(e,p)}g.propTypes={},g.filterProps=u,y.propTypes={},y.filterProps=d,b.propTypes={},b.filterProps=p},6481:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>i});var r=n(3967),o=n(9452);function i(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:i(e,n)||r,t&&(o=t(o,r,e)),o}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=i(e.theme,s)||{};return(0,o.NI)(e,c,(e=>{let o=a(u,l,e);return e===o&&"string"==typeof e&&(o=a(u,l,`${t}${"default"===e?"":(0,r.A)(e)}`,e)),!1===n?o:{[n]:o}}))};return c.propTypes={},c.filterProps=[t],c}},4188:(e,t,n)=>{"use strict";n.d(t,{A:()=>N});var r=n(8248),o=n(6481),i=n(4620);const a=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,i.A)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n};var s=n(9452);function l(e){return"number"!=typeof e?e:`${e}px solid`}function c(e,t){return(0,o.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),p=c("borderRight",l),f=c("borderBottom",l),h=c("borderLeft",l),m=c("borderColor"),v=c("borderTopColor"),g=c("borderRightColor"),y=c("borderBottomColor"),b=c("borderLeftColor"),x=c("outline",l),A=c("outlineColor"),w=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,s.NI)(e,e.borderRadius,n)}return null};w.propTypes={},w.filterProps=["borderRadius"],a(u,d,p,f,h,m,v,g,y,b,w,x,A);const k=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,s.NI)(e,e.gap,n)}return null};k.propTypes={},k.filterProps=["gap"];const S=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.columnGap,n)}return null};S.propTypes={},S.filterProps=["columnGap"];const C=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.rowGap,n)}return null};function E(e,t){return"grey"===t?t:e}function O(e){return e<=1&&0!==e?100*e+"%":e}C.propTypes={},C.filterProps=["rowGap"],a(k,S,C,(0,o.Ay)({prop:"gridColumn"}),(0,o.Ay)({prop:"gridRow"}),(0,o.Ay)({prop:"gridAutoFlow"}),(0,o.Ay)({prop:"gridAutoColumns"}),(0,o.Ay)({prop:"gridAutoRows"}),(0,o.Ay)({prop:"gridTemplateColumns"}),(0,o.Ay)({prop:"gridTemplateRows"}),(0,o.Ay)({prop:"gridTemplateAreas"}),(0,o.Ay)({prop:"gridArea"})),a((0,o.Ay)({prop:"color",themeKey:"palette",transform:E}),(0,o.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:E}),(0,o.Ay)({prop:"backgroundColor",themeKey:"palette",transform:E}));const R=(0,o.Ay)({prop:"width",transform:O}),P=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:O(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};P.filterProps=["maxWidth"];const $=(0,o.Ay)({prop:"minWidth",transform:O}),M=(0,o.Ay)({prop:"height",transform:O}),T=(0,o.Ay)({prop:"maxHeight",transform:O}),I=(0,o.Ay)({prop:"minHeight",transform:O}),N=((0,o.Ay)({prop:"size",cssProperty:"width",transform:O}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:O}),a(R,P,$,M,T,I,(0,o.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:w},color:{themeKey:"palette",transform:E},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:E},backgroundColor:{themeKey:"palette",transform:E},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:k},rowGap:{style:C},columnGap:{style:S},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:O},maxWidth:{style:P},minWidth:{transform:O},height:{transform:O},maxHeight:{transform:O},minHeight:{transform:O},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},2891:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>u,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>s.A});var r=n(3571),o=n(8168),i=n(8587),a=n(1317),s=n(4188);const l=["sx"],c=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:s.A;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function u(e){const{sx:t}=e,n=(0,i.A)(e,l),{systemProps:r,otherProps:s}=c(n);let u;return u=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return(0,a.Q)(n)?(0,o.A)({},r,n):r}:(0,o.A)({},r,t),(0,o.A)({},s,{sx:u})}},3571:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,k:()=>l});var r=n(3967),o=n(4620),i=n(6481),a=n(9452),s=n(4188);function l(){function e(e,t,n,o){const s={[e]:t,theme:n},l=o[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:p}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const f=(0,i.Yn)(n,u)||{};return p?p(s):(0,a.NI)(s,t,(t=>{let n=(0,i.BO)(f,d,t);return t===n&&"string"==typeof t&&(n=(0,i.BO)(f,d,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:i,theme:l={}}=n||{};if(!i)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function u(n){let r=n;if("function"==typeof n)r=n(l);else if("object"!=typeof n)return n;if(!r)return null;const i=(0,a.EU)(l.breakpoints),s=Object.keys(i);let u=i;return Object.keys(r).forEach((n=>{const i="function"==typeof(s=r[n])?s(l):s;var s;if(null!=i)if("object"==typeof i)if(c[n])u=(0,o.A)(u,e(n,i,l,c));else{const e=(0,a.NI)({theme:l},i,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,i)?u=(0,o.A)(u,e):u[n]=t({sx:i,theme:l})}else u=(0,o.A)(u,e(n,i,l,c))})),(0,a.vf)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}const c=l();c.filterProps=["sx"];const u=c},2923:(e,t,n)=>{"use strict";t.A=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(1609)),o=n(7540);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}t.A=function(e=null){const t=r.useContext(o.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},3967:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9453);function o(e){if("string"!=typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},7149:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(3967)},7535:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},1317:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,Q:()=>o});var r=n(8168);function o(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function i(e){if(!o(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=i(e[n])})),t}function a(e,t,n={clone:!0}){const s=n.clone?(0,r.A)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((r=>{o(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&o(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=o(t[r])?i(t[r]):t[r]:s[r]=t[r]})),s}},4239:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(1317)},9453:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},8944:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(9453)},7320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>i});var r=n(5492);const o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function i(e){const t=`${e}`.match(o);return t&&t[1]||""}function a(e,t=""){return e.displayName||e.name||i(e)||t}function s(e,t,n){const r=a(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return a(e,"Component");if("object"==typeof e)switch(e.$$typeof){case r.ForwardRef:return s(e,e.render,"ForwardRef");case r.Memo:return s(e,e.type,"memo");default:return}}}},7064:(e,t)=>{"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context");var n=Symbol.for("react.forward_ref"),r=(Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"));Symbol.for("react.lazy"),Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=n,t.Memo=r},5492:(e,t,n)=>{"use strict";e.exports=n(7064)},4146:(e,t,n)=>{"use strict";var r=n(3404),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},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||r&&r[g]||m&&m[g]||s&&s[g])){var y=p(n,g);try{c(t,g,y)}catch(e){}}}}return t}},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function A(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case v:case m:case l:return e;default:return t}}case o:return t}}}function w(e){return A(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return w(e)||A(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return A(e)===c},t.isContextProvider=function(e){return A(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return A(e)===p},t.isFragment=function(e){return A(e)===i},t.isLazy=function(e){return A(e)===v},t.isMemo=function(e){return A(e)===m},t.isPortal=function(e){return A(e)===o},t.isProfiler=function(e){return A(e)===s},t.isStrictMode=function(e){return A(e)===a},t.isSuspense=function(e){return A(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===g)},t.typeOf=A},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},2799:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,f=60116,h=60121,m=60122,v=60117,g=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),p=b("react.memo"),f=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),v=b("react.fundamental"),g=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===a||e===g||e===i||e===u||e===d||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===v||e.$$typeof===h||e[0]===m)},t.typeOf=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case f:case p:case s:return e;default:return t}}case r:return t}}}},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},7241:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609);const o=n.n(r)().createContext(null)},4634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},4893:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},3145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},3029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},2901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(816);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(816);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},8168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},7387:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3662);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},45:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8587);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},3662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},296:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7800);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||(0,r.A)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},5458:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3145),o=n(7800);function i(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},816:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2284);function o(e){var t=function(e){if("object"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},2284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},7800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}}}]); build/485.09b2206e7cb2f9ad160e.js 0000777 00002402246 15252021227 0011426 0 ustar 00 "use strict";(self.webpackChunkreally_simple_ssl=self.webpackChunkreally_simple_ssl||[]).push([[485],{2592:(e,l,s)=>{s.d(l,{A:()=>t});var a=s(1621),i=s(1674);const t=(0,a.vt)(((e,l)=>({filter:"all",progressText:"",notices:[],error:!1,percentageCompleted:0,progressLoaded:!1,setFilter:l=>{sessionStorage.rsssl_task_filter=l,e((e=>({filter:l})))},fetchFilter:()=>{if("undefined"!=typeof Storage&&sessionStorage.rsssl_task_filter){let l=sessionStorage.rsssl_task_filter;e((e=>({filter:l})))}},getProgressData:async()=>{const{percentage:l,text:s,notices:a,error:t}=await i.YA("progressData","refresh").then((e=>e));e((e=>({notices:a,percentageCompleted:l,progressText:s,progressLoaded:!0,error:t})))},dismissNotice:async s=>{let a=l().notices;a=a.filter((function(e){return e.id!==s})),e((e=>({notices:a})));const{percentage:t}=await i.YA("dismiss_task",s);e({percentageCompleted:t})}})))},2304:(e,l,s)=>{s.d(l,{A:()=>m});var a=s(7723),i=s(9306),t=s(1674),d=s(1254),n=s(2592),h=s(7135),c=s(2838),r=s.n(c),o=s(6087),v=s(790);const m=e=>{const{dismissNotice:l,getProgressData:s}=(0,n.A)(),{getField:c,setHighLightField:m,showSavedSettingsNotice:u,updateFieldAttribute:p}=(0,d.A)(),{setSelectedSubMenuItem:_}=(0,h.A)(),[f,g]=(0,o.useState)(!1);let x=e.notice,Z="premium"===x.output.icon,j=x.output.url&&-1!==x.output.url.indexOf("really-simple-ssl.com");return(0,v.jsxs)("div",{className:"rsssl-task-element",children:[(0,v.jsx)("span",{className:"rsssl-task-status rsssl-"+x.output.icon,children:x.output.label}),(0,v.jsx)("p",{className:"rsssl-task-message",dangerouslySetInnerHTML:{__html:r().sanitize(x.output.msg)}})," ",j&&x.output.url&&(0,v.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:x.output.url,children:(0,a.__)("More info","really-simple-ssl")}),x.output.clear_cache_id&&(0,v.jsx)("span",{className:"rsssl-task-enable button button-secondary",onClick:()=>(async e=>{g(!0);let l={};l.cache_id=e;try{await t.Eo("clear_cache",l),"rsssl_homepage_contains_404_resources"===e&&(p("404_blocking_threshold","disabled",!1),p("404_blocking_lockout_duration","disabled",!1)),u((0,a.__)("Re-started test","really-simple-ssl")),await s()}catch(e){console.error("Error clearing cache:",e)}finally{g(!1)}})(x.output.clear_cache_id),children:(0,a.__)("Re-check","really-simple-ssl")}),x.output.fix_id&&(0,v.jsxs)("span",{className:"rsssl-task-enable button button-secondary",onClick:()=>(e=>{let l={};l.fix_id=e,g(!0),t.Eo("fix",l).then((e=>{g(!1),u(e.msg),s()}))})(x.output.fix_id),children:[!f&&(0,a.__)("Fix","really-simple-ssl"),f&&(0,v.jsx)(i.default,{name:"loading",color:"black",size:14})]}),!Z&&!j&&x.output.url&&(0,v.jsxs)("a",{className:"rsssl-task-enable button button-secondary",href:x.output.url,children:[!f&&(0,a.__)("View","really-simple-ssl"),f&&(0,v.jsx)(i.default,{name:"loading",color:"black",size:14})]}),!Z&&x.output.highlight_field_id&&(0,v.jsx)("span",{className:"rsssl-task-enable button button-secondary",onClick:()=>(async()=>{m(e.notice.output.highlight_field_id);let l=c(e.notice.output.highlight_field_id);await _(l.menu_id)})(),children:(0,a.__)("View","really-simple-ssl")}),x.output.plusone&&(0,v.jsx)("span",{className:"rsssl-plusone",children:"1"}),x.output.dismissible&&"completed"!==x.output.status&&(0,v.jsx)("div",{className:"rsssl-task-dismiss",children:(0,v.jsx)("button",{type:"button",onClick:e=>l(x.id),children:(0,v.jsx)(i.default,{name:"times"})})})]})}},7485:(e,l,s)=>{s.r(l),s.d(l,{default:()=>Ii});var a={};s.r(a),s.d(a,{AD:()=>Gs,AE:()=>xs,AF:()=>Cl,AG:()=>Vs,AL:()=>Is,AM:()=>Ks,AO:()=>He,AQ:()=>ke,AR:()=>re,AT:()=>Ws,AU:()=>ve,AZ:()=>qs,BA:()=>$s,BB:()=>As,BD:()=>Vl,BE:()=>Js,BF:()=>Ae,BG:()=>Qs,BH:()=>Hl,BI:()=>Ue,BJ:()=>Ve,BN:()=>Al,BO:()=>La,BR:()=>ce,BS:()=>Ss,BT:()=>Sl,BW:()=>Se,BY:()=>Ys,BZ:()=>ws,CA:()=>ne,CC:()=>Me,CD:()=>Be,CF:()=>Le,CG:()=>Oe,CH:()=>Ma,CI:()=>Xe,CL:()=>Ta,CM:()=>Te,CN:()=>El,CO:()=>oe,CR:()=>ks,CU:()=>Us,CV:()=>Ee,CW:()=>Hs,CY:()=>Tl,CZ:()=>ea,DE:()=>Ha,DJ:()=>ze,DK:()=>la,DM:()=>Es,DO:()=>Ts,DZ:()=>Ce,EC:()=>Da,EE:()=>sa,EG:()=>Pe,ER:()=>Ge,ES:()=>Sa,ET:()=>We,FI:()=>aa,FJ:()=>ue,FM:()=>xe,FR:()=>Va,GA:()=>qe,GB:()=>Ca,GD:()=>Ls,GE:()=>Dl,GH:()=>Je,GM:()=>Ye,GN:()=>$e,GQ:()=>Ie,GR:()=>ia,GT:()=>Ms,GW:()=>Qe,GY:()=>Na,HK:()=>we,HN:()=>bs,HR:()=>Xs,HT:()=>Ds,HU:()=>ta,ID:()=>Ol,IE:()=>na,IL:()=>Pl,IN:()=>Nl,IQ:()=>zl,IR:()=>Bl,IS:()=>da,IT:()=>Aa,JM:()=>Ns,JO:()=>Gl,JP:()=>Il,KE:()=>el,KG:()=>ql,KH:()=>Ul,KI:()=>Oa,KM:()=>Ne,KN:()=>Os,KP:()=>as,KR:()=>os,KW:()=>Wl,KZ:()=>Kl,LA:()=>Yl,LB:()=>Jl,LC:()=>Bs,LI:()=>ca,LK:()=>vs,LR:()=>sl,LS:()=>ll,LT:()=>ra,LU:()=>oa,LV:()=>ha,LY:()=>al,MA:()=>cl,MC:()=>pa,MD:()=>ua,ME:()=>_a,MG:()=>il,MH:()=>Ze,MK:()=>va,ML:()=>dl,MM:()=>ls,MN:()=>es,MO:()=>$l,MR:()=>nl,MT:()=>ma,MU:()=>hl,MV:()=>Xl,MW:()=>tl,MX:()=>he,MY:()=>Ql,MZ:()=>rl,NA:()=>ol,NE:()=>vl,NG:()=>ml,NI:()=>Fs,NL:()=>Ua,NO:()=>fa,NP:()=>ss,NR:()=>Ba,NZ:()=>me,OM:()=>is,PA:()=>Cs,PE:()=>Pa,PG:()=>pe,PH:()=>ns,PK:()=>ts,PL:()=>Ea,PM:()=>Re,PR:()=>ye,PS:()=>ds,PT:()=>ga,PW:()=>je,PY:()=>za,QA:()=>hs,RO:()=>xa,RS:()=>ya,RU:()=>Za,RW:()=>ul,SA:()=>cs,SB:()=>_e,SC:()=>fl,SD:()=>yl,SE:()=>Ra,SG:()=>rs,SI:()=>ka,SK:()=>wa,SL:()=>gl,SM:()=>ja,SN:()=>_l,SO:()=>xl,SS:()=>jl,ST:()=>pl,SV:()=>Rs,SY:()=>ms,SZ:()=>Ke,TD:()=>De,TG:()=>kl,TH:()=>_s,TJ:()=>ps,TL:()=>Ll,TM:()=>gs,TN:()=>Rl,TO:()=>Ia,TR:()=>fs,TT:()=>Ps,TV:()=>Ga,TW:()=>us,TZ:()=>wl,UA:()=>ba,UG:()=>Ml,UK:()=>Ca,US:()=>de,UY:()=>Ka,UZ:()=>Zs,VA:()=>Fa,VC:()=>zs,VE:()=>Wa,VG:()=>be,VI:()=>Fe,VN:()=>js,VU:()=>fe,WS:()=>ge,XK:()=>ya,YE:()=>ys,ZA:()=>Zl,ZM:()=>bl,ZW:()=>Fl});var i=s(6427),t=s(7723),d=s(215),n=s(1254),h=s(790);const c=e=>{const{updateField:l,setChangedField:s}=(0,n.A)();return(0,h.jsx)("div",{className:"components-base-control",children:(0,h.jsxs)("div",{className:"components-base-control__field",children:[(0,h.jsx)("label",{className:"components-base-control__label",htmlFor:e.field.id,children:e.field.label}),(0,h.jsx)("input",{className:"components-text-control__input",type:"password",id:e.field.id,value:e.field.value,onChange:a=>{return i=a.target.value,l(e.field.id,i),void s(e.field.id,i);var i}})]})})};var r=s(2838),o=s.n(r),v=s(6087);const m={display:"none",position:"fixed",backgroundColor:"rgba(0,0,0,0.8)",color:"white",padding:"10px",borderRadius:"3px",zIndex:1e3,fontSize:"13px"},u=(e,l,s)=>{(0,v.useEffect)((()=>{let a=document.getElementById("rsssl-hover-tooltip");a||(a=document.createElement("div"),a.id="rsssl-hover-tooltip",Object.assign(a.style,m),document.body.appendChild(a));const i=()=>{const l=e.current,i=(l.disabled?l.parentElement:l).getBoundingClientRect();a.innerHTML=s,a.style.display="block",a.style.left=`${i.left}px`,a.style.top=i.top-a.offsetHeight-5+"px"},t=()=>{a.style.display="none"},d=e.current;return d&&l&&(d.addEventListener("mouseover",i),d.addEventListener("mouseout",t)),()=>{d&&l&&(d.removeEventListener("mouseover",i),d.removeEventListener("mouseout",t))}}),[e,l,s])},p=e=>{const l=(0,v.useRef)(null),s=Array.isArray(e.disabled);let a=!!s&&e.disabled,i=!1===s&&e.disabled,t=!0===e.field.disabled,d=t||i,n="";return d&&e.field.hasOwnProperty("disabledTooltipHoverText")&&![void 0,null,""].includes(e.field.disabledTooltipHoverText)&&(n=e.field.disabledTooltipHoverText),u(l,d&&""!==n,n),(0,v.useEffect)((()=>{l.current&&(l.current.disabled=d)}),[t,d]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"components-base-control",children:(0,h.jsx)("div",{className:"components-base-control__field",children:(0,h.jsxs)("div",{"data-wp-component":"HStack",className:"components-flex components-select-control",children:[(0,h.jsx)("label",{htmlFor:e.field.id,className:"components-toggle-control__label",style:e.style&&e.style.label?e.style.label:void 0,children:e.label}),(0,h.jsx)("select",{ref:l,disabled:d,value:e.value,onChange:l=>e.onChangeHandler(l.target.value),style:e.style&&e.style.select?e.style.select:void 0,children:e.options.map(((e,l)=>(0,h.jsx)("option",{value:e.value,disabled:a&&a.includes(e.value),children:e.label},"option-"+l)))})]})})}),e.field.comment&&(0,h.jsx)("div",{className:"rsssl-comment",dangerouslySetInnerHTML:{__html:o().sanitize(e.field.comment)}})]})};var _=s(1693),f=s(4032),g=s(1674),x=s(2154),Z=s(7135),j=s(5511),y=s(8743);const w=({action:e,field:l})=>{const{switchButtonDisabled:s,updateVerificationType:a,setRefreshTests:d}=(0,j.A)(),{addHelpNotice:c,updateField:r,setChangedField:o,saveFields:m,fetchFieldsData:u}=(0,n.A)(),{setSelectedSubMenuItem:p}=(0,Z.A)();if((0,v.useEffect)((()=>{e&&"challenge_directory_reachable"===e.action&&"error"===e.status&&c(l.id,"default",(0,t.__)("The challenge directory is used to verify the domain ownership.","really-simple-ssl")),e&&"check_key_directory"===e.action&&"error"===e.status&&c(l.id,"default",(0,t.__)("The key directory is needed to store the generated keys.","really-simple-ssl")+" "+(0,t.__)("By placing it outside the root folder, it is not publicly accessible.","really-simple-ssl")),e&&"check_certs_directory"===e.action&&"error"===e.status&&c(l.id,"default",(0,t.__)("The certificate will get stored in this directory.","really-simple-ssl")+" "+(0,t.__)("By placing it outside the root folder, it is not publicly accessible.","really-simple-ssl"))}),[e]),!e)return(0,h.jsx)(h.Fragment,{});const _=async()=>{r("verification_type","dns"),o("verification_type","dns"),await m(!0,!0),await a("dns"),await p("le-dns-verification"),await u("le-dns-verification"),d(!0)};let g="error"===e.status&&"challenge_directory_reachable"===e.action;return(0,h.jsxs)("div",{className:"rsssl-test-results",children:["error"===e.status&&(0,h.jsx)("h4",{children:(0,t.__)("Next step","really-simple-ssl")}),!g&&"cpanel"===rsssl_settings.hosting_dashboard&&(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)("p",{children:[(0,h.jsx)(f.A,{target:"_blank",rel:"noopener noreferrer",text:(0,t.__)("If you also want to secure subdomains like mail.domain.com, cpanel.domain.com, you have to use the %sDNS%s challenge.","really-simple-ssl"),url:(0,y.g)("https://really-simple-ssl.com/lets-encrypt-authorization-with-dns")})," ",(0,t.__)("Please note that auto-renewal with a DNS challenge might not be possible.","really-simple-ssl")]})}),(0,h.jsxs)("div",{children:[(0,h.jsx)("p",{children:(0,t.__)("If the challenge directory cannot be created, or is not reachable, you can either remove the server limitation, or change to DNS verification.","really-simple-ssl")}),(0,h.jsx)(i.Button,{disabled:s,variant:"secondary",onClick:()=>_(),children:(0,t.__)("Switch to DNS verification","really-simple-ssl")})]}),"error"===e.status&&"check_challenge_directory"===e.action&&(0,h.jsxs)("div",{children:[(0,h.jsx)("h4",{children:(0,t.__)("Create a challenge directory","really-simple-ssl")}),(0,h.jsx)("p",{children:(0,t.__)("Navigate in FTP or File Manager to the root of your WordPress installation:","really-simple-ssl")}),(0,h.jsxs)("ul",{children:[(0,h.jsx)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2",children:(0,t.__)("Create a folder called “.well-known”","really-simple-ssl")}),(0,h.jsx)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2",children:(0,t.__)("Inside the folder called “.well-known” create a new folder called “acme-challenge”, with 644 writing permissions.","really-simple-ssl")}),(0,h.jsx)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2",children:(0,t.__)("Click the refresh button.","really-simple-ssl")})]}),(0,h.jsx)("h4",{children:(0,t.__)("Or you can switch to DNS verification","really-simple-ssl")}),(0,h.jsx)("p",{children:(0,t.__)("If the challenge directory cannot be created, you can either remove the server limitation, or change to DNS verification.","really-simple-ssl")}),(0,h.jsx)(i.Button,{disabled:s,variant:"secondary",onClick:()=>_(),children:(0,t.__)("Switch to DNS verification","really-simple-ssl")})]}),"error"===e.status&&"check_key_directory"===e.action&&(0,h.jsxs)("div",{children:[(0,h.jsx)("h4",{children:(0,t.__)("Create a key directory","really-simple-ssl")}),(0,h.jsx)("p",{children:(0,t.__)("Navigate in FTP or File Manager to one level above the root of your WordPress installation:","really-simple-ssl")}),(0,h.jsxs)("ul",{children:[(0,h.jsx)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2",children:(0,t.__)("Create a folder called “ssl”","really-simple-ssl")}),(0,h.jsx)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2",children:(0,t.__)("Inside the folder called “ssl” create a new folder called “keys”, with 644 writing permissions.","really-simple-ssl")}),(0,h.jsx)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2",children:(0,t.__)("Click the refresh button.","really-simple-ssl")})]})]}),"error"===e.status&&"check_certs_directory"===e.action&&(0,h.jsxs)("div",{children:[(0,h.jsx)("h4",{children:(0,t.__)("Create a certs directory","really-simple-ssl")}),(0,h.jsx)("p",{children:(0,t.__)("Navigate in FTP or File Manager to one level above the root of your WordPress installation:","really-simple-ssl")}),(0,h.jsxs)("ul",{children:[(0,h.jsx)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2",children:(0,t.__)("Create a folder called “ssl”","really-simple-ssl")}),(0,h.jsx)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2",children:(0,t.__)("Inside the folder called “ssl” create a new folder called “certs”, with 644 writing permissions.","really-simple-ssl")}),(0,h.jsx)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2",children:(0,t.__)("Click the refresh button.","really-simple-ssl")})]})]})]})},k=e=>{const{switchButtonDisabled:l,updateVerificationType:s,setRefreshTests:a}=(0,j.A)(),{fields:d,addHelpNotice:c,updateField:r,setChangedField:o,saveFields:m,fetchFieldsData:u,getFieldValue:p}=(0,n.A)(),{selectedSubMenuItem:_,setSelectedSubMenuItem:g}=(0,Z.A)(),[x,w]=(0,v.useState)(!1);let k=e.action;return(0,v.useEffect)((()=>{k&&"challenge_directory_reachable"===k.action&&"error"===k.status&&c(e.field.id,"default",(0,t.__)("The challenge directory is used to verify the domain ownership.","really-simple-ssl"));let l=!!k&&k.output;void 0!==l&&0!==l.length||(l=!1),l&&w(l)}),[k]),"dir"===p("verification_type")?(0,h.jsx)(h.Fragment,{}):(0,h.jsxs)(h.Fragment,{children:[x&&x.length>0&&(0,h.jsxs)("div",{className:"rsssl-test-results",children:[(0,h.jsx)("h4",{children:(0,t.__)("Next step","really-simple-ssl")}),(0,h.jsxs)("p",{children:[(0,t.__)("Add the following token as text record to your DNS records. We recommend to use a short TTL during installation, in case you need to change it.","really-simple-ssl")," ",(0,h.jsx)(f.A,{target:"_blank",rel:"noopener noreferrer",text:(0,t.__)("Read more","really-simple-ssl"),url:(0,y.g)("https://really-simple-ssl.com/how-to-add-a-txt-record-to-dns")})]}),(0,h.jsxs)("div",{className:"rsssl-dns-text-records",children:[(0,h.jsxs)("div",{children:[(0,h.jsxs)("div",{className:"rsssl-dns-domain",children:["@/",(0,t.__)("Domain","really-simple-ssl")]}),(0,h.jsx)("div",{className:"rsssl-dns-field",children:(0,t.__)("Value","really-simple-ssl")})]}),x.map(((e,l)=>(0,h.jsxs)("div",{children:[(0,h.jsxs)("div",{className:"rsssl-dns-",children:["_acme-challenge.",e.domain]}),(0,h.jsx)("div",{className:"rsssl-dns-field rsssl-selectable",children:e.token})]})))]})]}),(0,h.jsxs)("div",{className:"rsssl-test-results",children:[(0,h.jsx)("p",{children:(0,t.__)("DNS verification active. You can switch back to directory verification here.","really-simple-ssl")}),(0,h.jsx)(i.Button,{disabled:l,variant:"secondary",onClick:()=>(async()=>{await g("le-directories"),await r("verification_type","dir"),await o("verification_type","dir"),await m(!0,!0),await s("dir"),await u("le-directories"),a(!0)})(),children:(0,t.__)("Switch to directory verification","really-simple-ssl")})]})]})};var R=s(7143);const M=e=>{let l=e.action;return l?(0,h.jsx)("div",{className:"rsssl-test-results",children:"error"===l.status&&"verify_dns"===l.action&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("p",{children:[(0,t.__)("We could not check the DNS records. If you just added the record, please check in a few minutes.","really-simple-ssl")," ",(0,h.jsx)(f.A,{target:"_blank",rel:"noopener noreferrer",text:(0,t.__)("You can manually check the DNS records in an %sonline tool%s.","really-simple-ssl"),url:"https://mxtoolbox.com/SuperTool.aspx"})," "+(0,t.__)("If you're sure it's set correctly, you can click the button to skip the DNS check.","really-simple-ssl")," "]}),(0,h.jsx)(i.Button,{variant:"secondary",onClick:()=>g.bl("skip_dns_check").then((l=>{e.restartTests(),(0,R.dispatch)("core/notices").createNotice("success",(0,t.__)("Skip DNS verification","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_skip_dns",type:"snackbar",isDismissible:!0}).then((0,x.A)(3e3)).then((e=>{(0,R.dispatch)("core/notices").removeNotice("rsssl_skip_dns")}))})),children:(0,t.__)("Skip DNS check","really-simple-ssl")})]})}):(0,h.jsx)(h.Fragment,{})};var b=s(2039),F=s(2592);const C=()=>{const{activateSSL:e,processing:l,networkwide:s,sslEnabled:a,currentStepIndex:i,steps:d,setShowOnBoardingModal:c}=(0,b.A)(),{fetchFieldsData:r}=(0,n.A)(),{setSelectedMainMenuItem:o}=(0,Z.A)(),{getProgressData:m}=(0,F.A)(),u=(0,v.useRef)(!1);(0,v.useEffect)((()=>{a&&!l&&u.current&&Promise.all([m(),r()]).then((()=>{o("dashboard"),i<d.length-1&&c(!0)}))}),[a,l,i,d.length]);const p=s?(0,t.__)("Activate SSL networkwide","really-simple-ssl"):(0,t.__)("Activate SSL","really-simple-ssl");return a&&!u.current?(0,h.jsxs)("div",{className:"rsssl-test-results",style:{paddingLeft:"var(--rsp-spacing-l)"},children:[(0,h.jsx)("h4",{style:{marginBottom:"8px"},children:(0,t.__)("SSL already activated","really-simple-ssl")}),(0,h.jsx)("div",{className:"rsssl-template-intro",children:(0,t.__)("SSL has already been activated on your site.","really-simple-ssl")})]}):a&&u.current?(0,h.jsxs)("div",{className:"rsssl-test-results",style:{paddingLeft:"var(--rsp-spacing-l)"},children:[(0,h.jsx)("h4",{style:{marginBottom:"8px"},children:(0,t.__)("SSL activated!","really-simple-ssl")}),(0,h.jsx)("div",{className:"rsssl-template-intro",children:(0,t.__)("Redirecting to dashboard...","really-simple-ssl")})]}):(0,h.jsxs)("div",{className:"rsssl-test-results",style:{paddingLeft:"var(--rsp-spacing-l)"},children:[(0,h.jsx)("h4",{style:{marginBottom:"8px"},children:(0,t.__)("Final step","really-simple-ssl")}),(0,h.jsx)("div",{className:"rsssl-template-intro",style:{marginBottom:"10px"},children:(0,t.__)("Your Let's Encrypt SSL certificate has been successfully installed. Click the button below to activate SSL on your WordPress site.","really-simple-ssl")}),s&&(0,h.jsx)("p",{style:{marginBottom:"10px"},children:(0,t.__)("This will activate SSL across your entire network.","really-simple-ssl")}),(0,h.jsx)("button",{type:"button",className:"button button-primary",disabled:l||u.current,onClick:()=>{u.current=!0,e()},children:l||u.current?(0,t.__)("Activating...","really-simple-ssl"):p})]})},H=e=>{const{addHelpNotice:l}=(0,n.A)(),[s,a]=(0,v.useState)(!1);let i=e.action;(0,v.useEffect)((()=>{i&&"warning"===i.status&&s&&s.generated_by_rsssl&&(l(e.field.id,"default",(0,t.__)("This is the certificate, which you need to install in your hosting dashboard.","really-simple-ssl"),(0,t.__)("Certificate (CRT)","really-simple-ssl")),l(e.field.id,"default",(0,t.__)("The private key can be uploaded or pasted in the appropriate field on your hosting dashboard.","really-simple-ssl"),(0,t.__)("Private Key (KEY)","really-simple-ssl")),l(e.field.id,"default",(0,t.__)("The CA Bundle will sometimes be automatically detected. If not, you can use this file.","really-simple-ssl"),(0,t.__)("Certificate Authority Bundle (CABUNDLE)","really-simple-ssl"))),!i||"error"!==i.status&&"warning"!==i.status||g.bl("installation_data").then((e=>{e&&a(e.output)}))}),[i]);const d=e=>{let l,s=document.querySelector(".rsssl-"+e).innerText;const a=document.createElement("textarea");a.value=s,document.body.appendChild(a),a.select();try{l=document.execCommand("copy")}catch(e){l=!1}document.body.removeChild(a),(0,R.dispatch)("core/notices").createNotice("success",(0,t.__)("Copied!","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_copied_data",type:"snackbar",isDismissible:!0}).then((0,x.A)(3e3)).then((e=>{(0,R.dispatch)("core/notices").removeNotice("rsssl_copied_data")}))};return i&&s?(0,h.jsxs)("div",{className:"rsssl-test-results",children:[!s.generated_by_rsssl&&(0,h.jsx)(h.Fragment,{children:(0,t.__)("The certificate is not generated by Really Simple Security, so there are no installation files here","really-simple-ssl")}),s.generated_by_rsssl&&"warning"===i.status&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("h4",{children:(0,t.__)("Next step","really-simple-ssl")}),(0,h.jsx)("div",{className:"rsssl-template-intro",children:(0,t.__)("Install your certificate.","really-simple-ssl")}),(0,h.jsx)("h4",{children:(0,t.__)("Certificate (CRT)","really-simple-ssl")}),(0,h.jsx)("div",{className:"rsssl-certificate-data rsssl-certificate",id:"rsssl-certificate",children:s.certificate_content}),(0,h.jsx)("a",{href:s.download_url+"&type=certificate",className:"button button-secondary",children:(0,t.__)("Download","really-simple-ssl")}),(0,h.jsx)("button",{type:"button",onClick:e=>d("certificate"),className:"button button-primary",children:(0,t.__)("Copy content","really-simple-ssl")}),(0,h.jsx)("h4",{children:(0,t.__)("Private Key (KEY)","really-simple-ssl")}),(0,h.jsx)("div",{className:"rsssl-certificate-data rsssl-key",id:"rsssl-key",children:s.key_content}),(0,h.jsx)("a",{href:s.download_url+"&type=private_key",className:"button button-secondary",children:(0,t.__)("Download","really-simple-ssl")}),(0,h.jsx)("button",{type:"button",className:"button button-primary",onClick:e=>d("key"),children:(0,t.__)("Copy content","really-simple-ssl")}),(0,h.jsx)("h4",{children:(0,t.__)("Certificate Authority Bundle (CABUNDLE)","really-simple-ssl")}),(0,h.jsx)("div",{className:"rsssl-certificate-data rsssl-cabundle",id:"rsssl-cabundle",children:s.ca_bundle_content}),(0,h.jsx)("a",{href:s.download_url+"&type=intermediate",className:"button button-secondary",children:(0,t.__)("Download","really-simple-ssl")}),(0,h.jsx)("button",{type:"button",className:"button button-primary",onClick:e=>d("cabundle"),children:(0,t.__)("Copy content","really-simple-ssl")})]})]}):(0,h.jsx)(h.Fragment,{})};var V=s(9306);const S=({field:e})=>{const{handleNextButtonDisabled:l,getFieldValue:s}=(0,n.A)(),{setSwitchButtonDisabled:a,actionsList:i,setActionsList:d,setActionsListItem:c,setActionsListProperty:r,actionIndex:m,setActionIndex:u,attemptCount:p,setAttemptCount:_,progress:f,setProgress:Z,refreshTests:y,setRefreshTests:R}=(0,j.A)(),b=(0,v.useRef)(1e3),F=((0,v.useRef)(!1),(0,v.useRef)(-1)),S=(0,v.useRef)(1),A=(0,v.useRef)(0),U=(0,v.useRef)({});(0,v.useEffect)((()=>{T()}),[e.id]),(0,v.useEffect)((()=>{a(!0)}),[]),(0,v.useEffect)((()=>(l(!1),i.length>0&&-1===m&&(u(0),D(0,0)),()=>{})),[i]),(0,v.useEffect)((()=>{}),[m,S.current]),(0,v.useEffect)((()=>{F.current=m,Z(100/S.current*m);let e=i[m];e&&"retry"===e.do&&p>1&&Z(90)}),[m]),(0,v.useEffect)((()=>{A.current=f}),[f]),(0,v.useEffect)((()=>{y&&(R(!1),T(),i.forEach((function(e,l){r(l,"status","inactive")})))}),[y]);const E={inactive:{icon:"circle-times",color:"grey"},warning:{icon:"circle-times",color:"orange"},error:{icon:"circle-times",color:"red"},success:{icon:"circle-check",color:"green"}},T=()=>{a(!0),d((()=>{let l=e.actions;return"generation"===e.id&&(l=L(l)),S.current=l.length,l})()),Z(0),A.current=0,u(-1),F.current=-1},L=e=>{let l=s("verification_type");if(l||(l="dir"),"dns"===l){let l=!1;e.forEach((function(e,s){"verify_dns"===e.action&&(l=!0)}));let s=-1;if(e.forEach((function(e,l){"create_bundle_or_renew"===e.action&&(s=l)})),!l&&s>0){let l=[...e],a=l[s],i={action:"verify_dns"};i.description=(0,t.__)("Verifying DNS records...","really-simple-ssl"),i.attempts=2,l[s]=i,l.push(a),e=l}}return e},D=async l=>{let s={...i[l]};if(!s)return;let t=s.action;const d=new Date;await g.bl(t,e.id).then((e=>{let a=new Date-d;const i=Math.round(a);s.status=e.status?e.status:"inactive",s.hide=!1,s.description=e.message,s.do=e.action,s.output=!!e.output&&e.output,b.current=500,i<1500&&(b.current=1500-i),c(l,s)})).then((0,x.A)(b.current)).then((()=>{(async(e,l)=>{"success"===e.status?_(0):(Number.isInteger(e.attemptCount)||_(0),_(parseInt(p)+1));let s=new CustomEvent("rsssl_le_response",{detail:e});document.dispatchEvent(s),"finalize"===e.do?(i.forEach((function(e,s){s>l&&r(s,"hide",!0)})),u(S.current+1),a(!1)):"continue"===e.do||"skip"===e.do?(_(1),"skip"===e.do&&r(l,"hide",!0),S.current-1>l?(u(l+1),await D(l+1)):(u(l+1),a(!1))):"retry"===e.do?p>=e.attempts?(a(!1),u(S.current)):(a(!1),u(l),await D(l)):"stop"===e.do&&(a(!1),u(S.current))})(s,l)}))},N=e=>E.hasOwnProperty(e.status)?E[e.status].icon:E.inactive.icon,O=e=>E.hasOwnProperty(e.status)?E[e.status].color:E.inactive.color;if(!e.actions)return(0,h.jsx)(h.Fragment,{});let B=f;S.current===m+1&&(B=100);let z=i.filter((e=>!0!==e.hide)),P=i[m];P?U.current=P:P=U.current;let I="error"===P.status?"rsssl-orange":"";return(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)("div",{className:"rsssl-lets-encrypt-tests",children:[(0,h.jsx)("div",{className:"rsssl-progress-bar",children:(0,h.jsx)("div",{className:"rsssl-progress",children:(0,h.jsx)("div",{className:"rsssl-bar "+I,style:(G=B,Object.assign({},{width:G+"%"}))})})}),(0,h.jsx)("div",{className:"rsssl_letsencrypt_container rsssl-progress-container field-group",children:(0,h.jsx)("ul",{children:z.map(((e,l)=>(0,h.jsxs)("li",{children:[(0,h.jsx)(V.default,{name:N(e),color:O(e)}),"retry"===e.do&&p>=1&&(0,h.jsxs)(h.Fragment,{children:[(0,t.__)("Attempt %s.","really-simple-ssl").replace("%s",p)," "]})," ",(0,h.jsx)("span",{dangerouslySetInnerHTML:{__html:o().sanitize(e.description)}})," "]},"action-"+l)))})}),"directories"===e.id&&(0,h.jsx)(w,{field:e,action:P}),"dns-verification"===e.id&&(0,h.jsx)(k,{field:e,action:P}),"generation"===e.id&&(0,h.jsx)(M,{field:e,action:P}),"installation"===e.id&&(0,h.jsx)(H,{field:e,action:P}),"activate"===e.id&&(0,h.jsx)(C,{})]})});var G};var A=s(5131);const U=e=>{const{handleModal:l}=(0,A.A)();return(0,h.jsx)("button",{className:"button button-"+e.btnStyle,onClick:s=>{l(!0,e.modalData,e.item)},children:e.btnText})};var E=s(1621);const T=(0,E.vt)(((e,l)=>({mixedContentData:[],dataLoaded:!1,fixedItemId:!1,action:"",nonce:"",completedStatus:"never",progress:0,scanStatus:!1,fetchMixedContentData:async()=>{e({scanStatus:"running"});const{data:l,progress:s,state:a,action:i,nonce:t,completed_status:d}=await L(!1);e({scanStatus:a,mixedContentData:l,progress:s,action:i,nonce:t,completedStatus:d,dataLoaded:!0})},start:async()=>{const{data:l,progress:s,state:a,action:i,nonce:t,completed_status:d}=await L("start");e({scanStatus:a,mixedContentData:l,progress:s,action:i,nonce:t,completedStatus:d,dataLoaded:!0})},runScanIteration:async()=>{let s=l().scanStatus;if("stop"===s)return;const{data:a,progress:i,state:t,action:d,nonce:n,completed_status:h}=await L(s);"stop"!==l().scanStatus&&e({scanStatus:t,mixedContentData:a,progress:i,action:d,nonce:n,completedStatus:h,dataLoaded:!0})},stop:async()=>{e({scanStatus:"stop"});const{data:l,progress:s,state:a,action:i,nonce:t,completed_status:d}=await L("stop");e({scanStatus:"stop",mixedContentData:l,progress:s,action:i,nonce:t,completedStatus:d})},removeDataItem:s=>{let a=l().mixedContentData;for(const e of a)e.id===s.id&&(e.fixed=!0);e({mixedContentData:a})},ignoreDataItem:s=>{let a=l().mixedContentData;for(const e of a)e.id===s.id&&(e.ignored=!0);e({mixedContentData:a})}}))),L=async e=>await g.YA("mixed_content_scan",e).then((l=>{let s=l.data;return"object"==typeof s&&(s=Object.values(s)),Array.isArray(s)||(s=[]),l.data=s,"stop"===e&&(l.state="stop"),l}));var D=s(1609),N=s.n(D);const O=e=>{const{fixedItems:l,ignoredItems:a}=(0,A.A)(),{fetchMixedContentData:d,mixedContentData:n,runScanIteration:c,start:r,stop:o,dataLoaded:m,action:u,scanStatus:p,progress:_,completedStatus:f,nonce:g,removeDataItem:x,ignoreDataItem:Z}=T(),[j,y]=(0,v.useState)(!1),[w,k]=(0,v.useState)(!1),[R,M]=(0,v.useState)(null),[b,F]=(0,v.useState)(null);(0,v.useEffect)((()=>{Promise.resolve().then(s.bind(s,3757)).then((({default:e,createTheme:l})=>{M((()=>e)),F((()=>l("really-simple-plugins",{divider:{default:"transparent"}},"light")))}))}),[]),(0,v.useEffect)((()=>{d()}),[]),(0,v.useEffect)((()=>{"running"===p&&c()}),[_,p]);let C=e.field,H=[];C.columns.forEach((function(e,l){let s={name:e.name,sortable:e.sortable,grow:e.grow,selector:l=>l[e.column],right:!!e.right};H.push(s)}));let S=m?n:[];for(const s of S)s.warningControl=(0,h.jsx)("span",{className:"rsssl-task-status rsssl-warning",children:(0,t.__)("Warning","really-simple-ssl")}),l.includes(s.id)&&(s.fixed=!0),a.includes(s.id)&&(s.ignored=!0),s.fix&&(s.fix.url=s.blocked_url,s.fix.nonce=g),s.details&&(s.details.url=s.blocked_url,s.details.nonce=g,s.details.ignored=s.ignored),s.location.length>0&&(-1!==s.location.indexOf("http://")||-1!==s.location.indexOf("https://")?s.locationControl=(0,h.jsx)("a",{href:s.location,target:"_blank",rel:"noopener noreferrer",children:(0,t.__)("View","really-simple-ssl")}):s.locationControl=s.location),s.detailsControl=s.details&&(0,h.jsx)(U,{handleModal:e.handleModal,item:s,id:s.id,btnText:(0,t.__)("Details","really-simple-ssl"),btnStyle:"secondary",modalData:s.details}),s.fixControl=s.fix&&(0,h.jsx)(U,{className:"button button-primary",handleModal:e.handleModal,item:s,id:s.id,btnText:(0,t.__)("Fix","really-simple-ssl"),btnStyle:"primary",modalData:s.fix});j||(S=S.filter((e=>!e.ignored))),S=S.filter((e=>!e.fixed));let E=_+"%",L="running"===p,D="running"!==p;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"rsssl-progress-container",children:(0,h.jsx)("div",{className:"rsssl-progress-bar",style:{width:E}})}),"running"===p&&(0,h.jsx)("div",{className:"rsssl-current-scan-action",children:u}),0===S.length&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"rsssl-mixed-content-description",children:["running"!==p&&"never"===f&&(0,t.__)("No results. Start your first scan","really-simple-ssl"),"running"!==p&&"completed"===f&&(0,t.__)("Everything is now served over SSL","really-simple-ssl")]}),("running"===p||"completed"!==f)&&(0,h.jsxs)("div",{className:"rsssl-mixed-content-placeholder",children:[(0,h.jsx)("div",{}),(0,h.jsx)("div",{}),(0,h.jsx)("div",{})]}),"running"!==p&&"completed"===f&&(0,h.jsx)("div",{className:"rsssl-shield-overlay",children:(0,h.jsx)(V.default,{name:"shield",size:"80px"})})]}),R&&S.length>0&&(0,h.jsx)("div",{className:"rsssl-mixed-content-datatable",children:(0,h.jsx)(R,{columns:H,data:S,expandableRows:!0,expandableRowsComponent:({data:e,disabled:l,handleFix:s})=>(0,h.jsxs)("div",{className:"rsssl-container",children:[(0,h.jsx)("div",{children:(0,h.jsx)("p",{children:e.details.description.map(((e,l)=>(0,h.jsxs)(N().Fragment,{children:[(0,h.jsx)("span",{children:e}),(0,h.jsx)("br",{})]},"fragment-"+l)))})}),(0,h.jsxs)("div",{className:"",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[e.details.edit&&(0,h.jsx)("a",{href:e.details.edit,target:"_blank",rel:"noopener noreferrer",className:"button button-secondary",style:{display:"flex",alignItems:"center",justifyContent:"center",marginRight:"10px"},children:(0,t.__)("Edit","really-simple-ssl")}),e.details.help&&(0,h.jsx)("button",{href:e.details.help,target:"_blank",rel:"noopener noreferrer",className:"button button-red",style:{display:"flex",alignItems:"center",justifyContent:"center",marginRight:"10px"},children:(0,t.__)("Help","really-simple-ssl")}),!e.details.ignored&&"ignore_url"===e.details.action&&(0,h.jsx)("button",{disabled:l,className:"button button-primary",onClick:e=>s(e,"ignore"),style:{display:"flex",alignItems:"center",justifyContent:"center",marginRight:"10px"},children:(0,t.__)("Ignore","really-simple-ssl")}),"ignore_url"!==e.details.action&&(0,h.jsx)("button",{disabled:l,className:"button button-primary rsssl-action-buttons__button",onClick:e=>s(e,"fix"),children:(0,t.__)("Fix","really-simple-ssl")})]})]}),dense:!0,pagination:!0,paginationResetDefaultPage:w,noDataComponent:(0,t.__)("No results","really-simple-ssl"),theme:b,customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}}})}),(0,h.jsxs)("div",{className:"rsssl-grid-item-content-footer",children:[(0,h.jsx)("button",{className:"button",disabled:L,onClick:()=>r(),children:(0,t.__)("Start scan","really-simple-ssl")}),(0,h.jsx)("button",{className:"button",disabled:D,onClick:()=>o(),children:(0,t.__)("Stop","really-simple-ssl")}),(0,h.jsx)(i.ToggleControl,{checked:1==j,onChange:e=>{y(!j)}}),(0,h.jsx)("label",{children:(0,t.__)("Show ignored URLs","really-simple-ssl")})]})]})},B=e=>{const{fields:l,updateField:a,updateSubField:d,setChangedField:c,saveFields:r}=(0,n.A)(),[o,m]=(0,v.useState)(0),[u,p]=(0,v.useState)(null),[_,f]=(0,v.useState)(null),[g,x]=(0,v.useState)([]),[Z,j]=(0,v.useState)(!1);(0,v.useEffect)((()=>{Promise.resolve().then(s.bind(s,3757)).then((({default:e,createTheme:l})=>{p((()=>e)),f((()=>l("really-simple-plugins",{divider:{default:"transparent"}},"light")))}))}),[]),(0,v.useEffect)((()=>{let e=l.filter((e=>"enable_permissions_policy"===e.id))[0];m(e.value)}),[]);const y=(l,s)=>{let i=e.field;"object"==typeof i.value&&a(i.id,Object.values(i.value)),d(i.id,s.id,l),c(i.id,l),r(!0,!1)},w=(e,s)=>{e.preventDefault();let i=l.filter((e=>"enable_permissions_policy"===e.id))[0];m(s),a(i.id,s),c(i.id,i.value),r(!0,!1)};let k=e.field;k.value;const R=["button-secondary","button-primary","button-red"];let M=e.options.map(((e,l)=>(e.button=R[l],e)));columns=[],k.columns.forEach((function(e,l){let s={name:e.name,sortable:e.sortable,width:e.width,selector:l=>l[e.column]};columns.push(s)}));let b=k.value;"object"==typeof b&&(b=Object.values(b)),Array.isArray(b)||(b=[]);let F=[];for(const e of b){let l={...e};l.valueControl=(0,h.jsx)(i.SelectControl,{help:"",value:e.value,disabled:!1,options:M,label:"",onChange:l=>y(l,e)}),F.push(l)}return u&&_?(0,h.jsxs)("div",{children:[g.length>0&&(0,h.jsx)("div",{style:{marginTop:"1em",marginBottom:"1em"},children:(0,h.jsxs)("div",{className:"rsssl-multiselect-datatable-form rsssl-primary",children:[(0,h.jsxs)("div",{children:[(0,t.__)("You have selected","really-simple-ssl")," ",g.length," ",(0,t.__)("rows","really-simple-ssl")]}),(0,h.jsx)("div",{className:"rsssl-action-buttons",children:M.map((l=>(0,h.jsx)("div",{className:"rsssl-action-buttons__inner",children:(0,h.jsx)(i.Button,{className:"button "+l.button+" rsssl-action-buttons__button",onClick:s=>((l,s)=>{let i=e.field;"object"==typeof i.value&&a(i.id,Object.values(i.value)),l.forEach((e=>{d(i.id,e.id,s),c(i.id,s)})),r(!0,!1),j(!0),x([]),setTimeout((()=>j(!1)),0)})(g,l.value),children:"self"===l.value?(0,t.__)("Reset","really-simple-ssl"):(0,t.__)(l.label,"really-simple-ssl")})},"option-"+l.value)))})]})}),(0,h.jsx)(u,{columns,data:F,dense:!0,pagination:!1,customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}},theme:_,selectableRows:!0,selectableRowsHighlight:!0,onSelectedRowsChange:function(e){j(!1),x(e.selectedRows)},clearSelectedRows:Z}),1!=o&&(0,h.jsx)("button",{className:"button button-primary",onClick:e=>w(e,!0),children:(0,t.__)("Enforce","really-simple-ssl")}),1==o&&(0,h.jsxs)("div",{className:"rsssl-locked",children:[(0,h.jsx)("div",{className:"rsssl-shield-overlay",children:(0,h.jsx)(V.default,{name:"shield",size:"80px"})}),(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,h.jsx)("span",{className:"rsssl-progress-status rsssl-learning-mode-enforced",children:(0,t.__)("Enforced","really-simple-ssl")}),e.disabled&&(0,h.jsxs)(h.Fragment,{children:[(0,t.__)("Permissions Policy is set outside Really Simple Security.","really-simple-ssl")," "]}),!e.disabled&&(0,h.jsxs)(h.Fragment,{children:[(0,t.__)("Permissions Policy is enforced.","really-simple-ssl")," "]}),!e.disabled&&(0,h.jsx)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>w(e,!1),children:(0,t.__)("Disable","really-simple-ssl")})]})]}),e.disabled&&1!=o&&(0,h.jsx)("div",{className:"rsssl-locked",children:(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,h.jsx)("span",{className:"rsssl-progress-status rsssl-disabled",children:(0,t.__)("Disabled","really-simple-ssl")}),(0,t.__)("The Permissions Policy has been disabled.","really-simple-ssl")]})})]}):null},z=({upgradeUrl:e,target:l})=>(0,h.jsx)("a",{style:{marginRight:"auto",marginLeft:"10px",background:"var(--rsp-yellow)",padding:"4px 8px",color:"var(--rsp-text-color-dark)",borderRadius:"var(--rsp-border-radius-xs)",textDecoration:"none",fontWeight:"bold",fontSize:"12px"},href:e,target:l,children:(0,t.__)("Pro","really-simple-ssl")}),P=e=>{const l=(0,v.useRef)(null);let s=!0===e.disabled,a=!0===e.field.disabled||s,t="";a&&e.field.hasOwnProperty("disabledTooltipHoverText")&&![void 0,null,""].includes(e.field.disabledTooltipHoverText)&&(t=e.field.disabledTooltipHoverText),u(l,a&&""!==t,t);const[d,n]=(0,v.useState)(!1),c=l=>{i.__experimentalConfirmDialog&&e.field.warning&&e.field.warning.length>0&&!e.field.value?n(!0):r()},r=l=>{let s=!e.field.value;e.onChangeHandler(s)};let o=e.field,m=o.value?"is-checked":"",p=e.disabled?"is-disabled":"";return(0,h.jsxs)(h.Fragment,{children:[i.__experimentalConfirmDialog&&(0,h.jsx)(i.__experimentalConfirmDialog,{isOpen:d,onConfirm:async()=>{n(!1),r()},onCancel:()=>{n(!1)},children:o.warning}),(0,h.jsx)("div",{className:"components-base-control components-toggle-control",children:(0,h.jsx)("div",{className:"components-base-control__field",children:(0,h.jsxs)("div",{"data-wp-component":"HStack",className:"components-flex components-h-stack",children:[(0,h.jsxs)("span",{className:"components-form-toggle "+m+" "+p,children:[(0,h.jsx)("input",{ref:l,onKeyDown:e=>(e=>{"Enter"===e.key&&(e.preventDefault(),c())})(e),checked:e.value,className:"components-form-toggle__input",onChange:e=>c(),id:e.id,type:"checkbox",disabled:e.disabled}),(0,h.jsx)("span",{className:"components-form-toggle__track"}),(0,h.jsx)("span",{className:"components-form-toggle__thumb"})]}),(0,h.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,h.jsx)("label",{htmlFor:o.id,className:"components-toggle-control__label",children:e.label}),e.premium&&(0,h.jsx)(z,{upgradeUrl:e.field.upgrade,target:"_blank"})]})]})})})]})},I=()=>{const[e,l]=(0,v.useState)(""),[s,a]=(0,v.useState)(!1);let d=s||0===e.length;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(i.TextareaControl,{disabled:s,placeholder:(0,t.__)("Type your question here","really-simple-ssl"),onChange:e=>(e=>{l(e)})(e)}),(0,h.jsx)("button",{className:"button button-secondary",disabled:d,onClick:l=>(a(!0),g.YA("supportData","refresh").then((l=>{let s=e.replace(/(?:\r\n|\r|\n)/g,"--br--"),a="https://really-simple-ssl.com/support?customername="+encodeURIComponent(l.customer_name)+"&email="+l.email+"&domain="+l.domain+"&scanresults="+encodeURIComponent(l.scan_results)+"&licensekey="+encodeURIComponent(l.license_key)+"&supportrequest="+encodeURIComponent(s)+"&htaccesscontents="+encodeURIComponent(l.htaccess_contents)+"&debuglog="+encodeURIComponent(l.system_status);a=(0,y.g)(a),window.location.assign(a)}))),children:(0,t.__)("Send","really-simple-ssl")})]})},G=(0,E.vt)(((e,l)=>({learningModeData:[],dataLoaded:!1,fetchLearningModeData:async l=>{let s={};s.type=l,s.lm_action="get";let a=await g.Eo("learning_mode_data",s).then((e=>e));"object"==typeof a&&!0===a.request_success&&(a=Object.values(a)),Array.isArray(a)||(a=[]),e({learningModeData:a,dataLoaded:!0})},updateStatus:async(s,a,i)=>{let t=l().learningModeData,d={};d.type=i,d.updateItemId=a.id,d.enabled=1==s?0:1,d.lm_action="update";for(const e of t)a.id===e.id&&e.status&&(e.status=d.enabled);e({learningModeData:t}),t=await g.Eo("learning_mode_data",d).then((e=>e)),"object"==typeof t&&(t=Object.values(t)),Array.isArray(t)||(t=[]),e({learningModeData:t,dataLoaded:!0})},deleteData:async(s,a)=>{let i=l().learningModeData,t={};t.type=a,t.updateItemId=s.id,t.lm_action="delete",i.forEach((function(e,l){e.id===s.id&&i.splice(l,1)})),e({learningModeData:i}),i=await g.Eo("learning_mode_data",t).then((e=>e)),"object"==typeof i&&(i=Object.values(i)),Array.isArray(i)||(i=[]),e({learningModeData:i,dataLoaded:!0})}}))),K=e=>{const{updateStatus:l}=G();let s=1==e.item.status?"button button-primary rsssl-status-allowed":"button button-default rsssl-status-revoked",a=1==e.item.status?(0,t.__)("Revoke","really-simple-ssl"):(0,t.__)("Allow","really-simple-ssl");return(0,h.jsx)("button",{onClick:()=>l(e.item.status,e.item,e.field.id),className:s,children:a})},W=e=>{const{deleteData:l}=G();return(0,h.jsx)("button",{type:"button",className:"button button-red rsssl-learning-mode-delete",onClick:()=>l(e.item,e.field.id),children:(0,t.__)("Delete","really-simple-ssl")})},q=(0,E.vt)(((e,l)=>({manualAdditionProcessing:!1,manualAdditionData:[],manualAdditionDataLoaded:!1,cspUri:"",directive:"",setDirective:l=>e({directive:l}),setCspUri:l=>e({cspUri:l}),setDataLoaded:l=>e({manualAdditionDataLoaded:l}),addManualCspEntry:async(l,s)=>{let a;e({manualAdditionProcessing:!0});try{a=await g.Eo("rsssl_csp_uri_add",{cspUri:l,directive:s}),a.request_success&&e({manualAdditionDataLoaded:!1})}catch(e){console.error(e)}finally{e({manualAdditionProcessing:!1,manualAdditionDataLoaded:!0})}return a}}))),Y=e=>{const l=(0,v.useRef)(null),{manualAdditionProcessing:s,directive:a,setCspUri:d,setDirective:c,addManualCspEntry:r}=q(),{fetchLearningModeData:o}=G(),{showSavedSettingsNotice:m}=(0,n.A)(),u=(0,v.useMemo)((()=>Object.keys(e.directives).map((l=>({value:e.directives[l],label:e.directives[l]})))),[]);async function _(){return l.current&&l.current.value?l.current.value.length&&a.length?void await r(l.current.value,a).then((l=>!1===l.success?m(l.message,"error"):(m(l.message),o(e.parentId),f(),g()))):m((0,t.__)('Please enter both the "URI" and the "Directive" before saving.'),"error"):m((0,t.__)("Something went wrong while saving the manual CSP entry."),"error")}function f(){d(""),c(""),l.current&&(l.current.value="")}function g(){e.onRequestClose()}return(0,v.useEffect)((()=>{a||c(e.directives[0])}),[]),e.isOpen?(0,h.jsx)(i.Modal,{title:(0,t.__)("Add Entry","really-simple-ssl"),shouldCloseOnClickOutside:!0,shouldCloseOnEsc:!0,overlayClassName:"rsssl-modal-overlay",className:"rsssl-modal",onRequestClose:g,children:(0,h.jsxs)("div",{className:"modal-content",children:[(0,h.jsx)("div",{className:"modal-body",style:{padding:"0.5em"},children:(0,h.jsxs)("div",{style:{width:"95%",height:"100%",padding:"10px"},children:[(0,h.jsxs)("div",{style:{position:"relative"},children:[(0,h.jsx)("label",{htmlFor:"cspUri",className:"rsssl-label",children:(0,t.__)("URI","really-simple-ssl")}),(0,h.jsx)("input",{id:"cspUri",type:"text",name:"cspUri",ref:l,onKeyDown:function(e){"Enter"===e.key&&_()},style:{width:"100%"},disabled:s})]}),(0,h.jsx)("div",{style:{marginTop:"10px"},children:(0,h.jsx)(p,{field:{id:"directive"},id:"directive",label:(0,t.__)("Directive","really-simple-ssl"),name:"directive",value:a,onChangeHandler:e=>c(e),options:u,style:{label:{display:"block"},select:{maxWidth:"unset",width:"100%"}},disabled:s})})]})}),(0,h.jsx)("div",{className:"modal-footer",children:(0,h.jsxs)("div",{className:"rsssl-grid-item-footer",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",padding:"1em"},children:[(0,h.jsx)(i.Button,{isSecondary:!0,onClick:function(){f(),g()},style:{marginRight:"10px"},children:(0,t.__)("Cancel","really-simple-ssl")}),(0,h.jsx)(i.Button,{isPrimary:!0,onClick:_,children:(0,t.__)("Add","really-simple-ssl")})]})})]})}):null},J=({getCurrentFilter:e,moduleName:l,handleOpen:s,processing:a,blockedText:i,allowedText:t,disabled:d})=>(0,h.jsx)("div",{className:"rsssl-add-button",children:(0,h.jsx)("div",{className:"rsssl-add-button__inner",children:(0,h.jsxs)("button",{className:"button button-secondary button-datatable rsssl-add-button__button",onClick:s,disabled:d,children:[t,a&&(0,h.jsx)(V.default,{name:"loading",color:"grey"})]})})}),$=e=>{const{updateField:l,getFieldValue:a,getField:d,setChangedField:c,highLightField:r,saveFields:o}=(0,n.A)(),{fetchLearningModeData:m,learningModeData:u,dataLoaded:p,updateStatus:_,deleteData:f}=G(),{manualAdditionProcessing:g}=q(),[x,Z]=(0,v.useState)(0),[j,y]=(0,v.useState)(0),[w,k]=(0,v.useState)(0),[R,M]=(0,v.useState)(0),[b,F]=(0,v.useState)(!1),[C,H]=(0,v.useState)(0),[S,A]=(0,v.useState)(-1),[U,E]=(0,v.useState)(!1),[T,L]=(0,v.useState)([]),[D,N]=(0,v.useState)(!1),[O,B]=(0,v.useState)(null),[z,P]=(0,v.useState)(null),[I,$]=(0,v.useState)(!1);(0,v.useEffect)((()=>{Promise.resolve().then(s.bind(s,3757)).then((({default:e,createTheme:l})=>{B((()=>e)),P((()=>l("really-simple-plugins",{divider:{default:"transparent"}},"light")))}))}),[]),(0,v.useEffect)((()=>{(async()=>{await m(e.field.id);let l=d(e.field.control_field),s="enforced-by-thirdparty"===l.value,i=s||"enforce"===l.value;E(l),Z(s),M("completed"===l.value),F("error"===l.value),H(a(e.field.control_field+"_lm_enabled_once")),y(i),k("learning_mode"===l.value)})()}),[j,w]);const Q=async(e,s)=>{e.preventDefault();let a=1==s?"enforce":"disabled";y(s),M(0),k(0),c(U.id,a),l(U.id,a),await o(!0,!1)},X=async s=>{s.preventDefault();let a,i=d(e.field.control_field+"_lm_enabled_once");w&&(H(1),l(i.id,1)),w||R?(k(0),a="disabled"):(k(1),a="learning_mode"),M(0),c(U.id,a),l(U.id,a),c(i.id,i.value),l(i,i.value),await o(!0,!1)},ee=()=>(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)("select",{onChange:e=>A(e.target.value),value:S,children:[(0,h.jsx)("option",{value:"-1",children:(0,t.__)("All","really-simple-ssl")}),(0,h.jsx)("option",{value:"1",children:(0,t.__)("Allowed","really-simple-ssl")}),(0,h.jsx)("option",{value:"0",children:(0,t.__)("Blocked","really-simple-ssl")})]})});let le=e.field,se=(0,t.__)(" The %s is now in report-only mode and will collect directives. This might take a while. Afterwards you can Exit, Edit and Enforce these Directives.","really-simple-ssl").replace("%s",le.label),ae=(0,t.__)("%s has been disabled.","really-simple-ssl").replace("%s",le.label),ie=(0,t.__)("%s is enforced.","really-simple-ssl").replace("%s",le.label),te=!C;x&&(ae=(0,t.__)("%s is already set outside Really Simple Security.","really-simple-ssl").replace("%s",le.label));let de="rsssl-field-wrap";e.field.id;let ne=[];le.columns.forEach((function(e,l){let s={name:e.name,sortable:e.sortable,width:e.width,selector:"documenturi"===e.column||"method"===e.column?l=>(0,h.jsx)("span",{title:l[e.column],children:l[e.column]}):l=>l[e.column]};ne.push(s)}));let he=u;he=he.filter((e=>e.status<2)),-1!=S&&(he=he.filter((e=>e.status==S)));for(const l of he)l.login_status&&(l.login_statusControl=1==l.login_status?(0,t.__)("success","really-simple-ssl"):(0,t.__)("failed","really-simple-ssl")),l.statusControl=(0,h.jsx)(K,{item:l,field:e.field}),l.deleteControl=(0,h.jsx)(W,{item:l,field:e.field}),l.grouped=(0,h.jsxs)("div",{className:"rsssl-action-buttons",children:[(0,h.jsx)(K,{item:l,field:e.field}),(0,h.jsx)(W,{item:l,field:e.field})]});const ce=(e,l,s)=>{l.forEach((l=>{_(e,l,s)})),N(!0),L([]),setTimeout((()=>N(!1)),0)};return O&&z?(0,h.jsxs)(h.Fragment,{children:["content_security_policy_source_directives"===e.field.id&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Y,{isOpen:I,onRequestClose:()=>{$(!1)},status:"blocked",directives:e.field.modal.options,parentId:e.field.id}),(0,h.jsx)("div",{className:"rsssl-container",style:{paddingTop:"0px"},children:(0,h.jsx)(J,{handleOpen:()=>{$(!0)},processing:g,allowedText:(0,t.__)("Add Entry","really-simple-ssl")})})]}),!p&&(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)("div",{className:"rsssl-learningmode-placeholder",children:[(0,h.jsx)("div",{}),(0,h.jsx)("div",{}),(0,h.jsx)("div",{}),(0,h.jsx)("div",{})]})}),T.length>0&&(0,h.jsx)("div",{style:{marginTop:"1em",marginBottom:"1em"},children:(0,h.jsxs)("div",{className:"rsssl-multiselect-datatable-form rsssl-primary",children:[(0,h.jsxs)("div",{children:[(0,t.__)("You have selected","really-simple-ssl")," ",T.length," ",(0,t.__)("rows","really-simple-ssl")]}),(0,h.jsxs)("div",{className:"rsssl-action-buttons",children:[(-1===Number(S)||0===Number(S))&&(0,h.jsx)("div",{className:"rsssl-action-buttons__inner",children:(0,h.jsx)(i.Button,{className:"button button-secondary rsssl-status-allowed rsssl-action-buttons__button",onClick:()=>ce(0,T,e.field.id),children:(0,t.__)("Allow","really-simple-ssl")})}),(-1===Number(S)||1===Number(S))&&(0,h.jsx)("div",{className:"rsssl-action-buttons__inner",children:(0,h.jsx)(i.Button,{className:"button button-primary rsssl-action-buttons__button",onClick:()=>ce(1,T,e.field.id),children:(0,t.__)("Revoke","really-simple-ssl")})}),(0,h.jsx)("div",{className:"rsssl-action-buttons__inner",children:(0,h.jsx)(i.Button,{className:"button button-red rsssl-action-buttons__button",onClick:()=>{return l=T,s=e.field.id,l.forEach((e=>{f(e,s)})),N(!0),L([]),void setTimeout((()=>N(!1)),0);var l,s},children:(0,t.__)("Remove","really-simple-ssl")})})]})]})}),p&&(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(O,{columns:ne,data:he,dense:!0,pagination:!0,noDataComponent:(0,t.__)("No results","really-simple-ssl"),persistTableHead:!0,theme:z,customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}},conditionalRowStyles:[{when:e=>0==e.status,classNames:["rsssl-datatables-revoked"]}],paginationComponentOptions:{rowsPerPageText:(0,t.__)("Rows per page:","really-simple-ssl"),rangeSeparatorText:(0,t.__)("of","really-simple-ssl"),noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:(0,t.__)("All","really-simple-ssl")},selectableRows:!0,selectableRowsHighlight:!0,onSelectedRowsChange:function(e){N(!1),L(e.selectedRows)},clearSelectedRows:D})}),(0,h.jsxs)("div",{className:"rsssl-learning-mode-footer",style:{marginLeft:"0px"},children:[b&&(0,h.jsx)("div",{className:"rsssl-locked",children:(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,h.jsx)("span",{className:"rsssl-progress-status rsssl-learning-mode-error",children:(0,t.__)("Error detected","really-simple-ssl")}),(0,t.__)("%s cannot be implemented due to server limitations. Check your notices for the detected issue.","really-simple-ssl").replace("%s",le.label)," ",(0,h.jsx)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>Q(e,!1),children:(0,t.__)("Disable","really-simple-ssl")})]})}),!b&&(0,h.jsxs)(h.Fragment,{children:[1!=j&&(0,h.jsx)("button",{disabled:te,className:"button button-primary",onClick:e=>Q(e,!0),children:(0,t.__)("Enforce","really-simple-ssl")}),!x&&1==j&&(0,h.jsx)("button",{className:"button",onClick:e=>Q(e,!1),children:(0,t.__)("Disable","really-simple-ssl")}),(0,h.jsxs)("label",{children:[(0,h.jsx)("input",{type:"checkbox",disabled:j,checked:1==w,value:w,onChange:e=>X(e)}),(0,t.__)("Enable Learning Mode to configure automatically","really-simple-ssl")]}),1==j&&(0,h.jsxs)("div",{className:"rsssl-locked",children:[(0,h.jsx)("div",{className:"rsssl-shield-overlay",children:(0,h.jsx)(V.default,{name:"shield",size:"80px"})}),(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,h.jsx)("span",{className:"rsssl-progress-status rsssl-learning-mode-enforced",children:(0,t.__)("Enforced","really-simple-ssl")}),ie," ",(0,h.jsx)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>Q(e),children:(0,t.__)("Disable to configure","really-simple-ssl")})]})]}),1==w&&(0,h.jsx)("div",{className:"rsssl-locked",children:(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,h.jsx)("span",{className:"rsssl-progress-status rsssl-learning-mode",children:(0,t.__)("Learning Mode","really-simple-ssl")}),se," ",(0,h.jsx)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>X(e),children:(0,t.__)("Exit","really-simple-ssl")})]})}),1==R&&(0,h.jsx)("div",{className:"rsssl-locked",children:(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,h.jsx)("span",{className:"rsssl-progress-status rsssl-learning-mode-completed",children:(0,t.__)("Learning Mode","really-simple-ssl")}),(0,t.__)("We finished the configuration.","really-simple-ssl")," ",(0,h.jsx)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>X(e),children:(0,t.__)("Review the settings and enforce the policy","really-simple-ssl")})]})}),rsssl_settings.pro_plugin_active&&e.disabled&&(0,h.jsx)("div",{className:"rsssl-locked ",children:(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[!x&&(0,h.jsx)("span",{className:"rsssl-progress-status rsssl-disabled",children:(0,t.__)("Disabled","really-simple-ssl")}),x&&(0,h.jsx)("span",{className:"rsssl-progress-status rsssl-learning-mode-enforced",children:(0,t.__)("Enforced","really-simple-ssl")}),ae]})})]}),(0,h.jsx)(ee,{})]})]}):null};var Q=s(8069);const X=e=>{const{riskData:l,dummyRiskData:a,processing:i,dataLoaded:d,fetchVulnerabilities:c,updateRiskData:r}=(0,Q.A)(),{fields:o,fieldAlreadyEnabled:m,getFieldValue:u,setChangedField:p,updateField:_,saveFields:f}=(0,n.A)(),[g,x]=(0,v.useState)(!1),[Z,j]=(0,v.useState)(!1),[y,w]=(0,v.useState)(null),[k,R]=(0,v.useState)(null);(0,v.useEffect)((()=>{Promise.resolve().then(s.bind(s,3757)).then((({default:e,createTheme:l})=>{w((()=>e)),R((()=>l("really-simple-plugins",{divider:{default:"transparent"}},"light")))}))}),[]),(0,v.useEffect)((()=>{m("enable_vulnerability_scanner")&&(d||c());let e=m("enable_vulnerability_scanner");j(e);let l=1==u("measures_enabled");x(l)}),[o]),(0,v.useEffect)((()=>{let e=1==u("measures_enabled");x(e)}),[]);let M=[];e.field.columns.forEach((function(e,l){let s={name:(a=e).name,sortable:a.sortable,width:a.width,selector:e=>e[a.column],grow:a.grow};var a;M.push(s)}));let b=e.field.options;b=Object.entries(b).map((e=>({label:e[1],value:e[0]})));let F=Array.isArray(l)?[...l]:[];F=0===F.length?[...a]:F;let C=!Z||!g;for(const e in F){let l={...F[e]};l.riskSelection=(0,h.jsx)("select",{disabled:i||C,value:l.value,onChange:e=>{return s=e.target.value,void r(l.id,s);var s},children:b.map(((e,s)=>(0,h.jsx)("option",{value:e.value,disabled:l.disabledRiskLevels&&l.disabledRiskLevels.includes(e.value),children:e.label},"risk-"+s)))}),F[e]=l}return(0,h.jsx)("div",{children:y&&(0,h.jsx)(y,{columns:M,data:Object.values(F),dense:!0,pagination:!1,persistTableHead:!0,noDataComponent:(0,t.__)("No vulnerabilities found","really-simple-ssl"),theme:k})})};var ee=s(3757),le=s(6535);(0,E.vt)(((e,l)=>({showIntro:!1,setShowIntro:l=>e({showIntro:l}),disabled:!0,introCompleted:!1,setIntroCompleted:l=>{e({introCompleted:l})},setDisabled(l){e((e=>({disabled:l})))},list:[{id:"initialize",icon:"loading",color:"black",text:(0,t.__)("Preparing vulnerability detection","really-simple-ssl")},{id:"fetchVulnerabilities",icon:"loading",color:"black",text:(0,t.__)("Collecting plugin, theme and core data","really-simple-ssl")},{id:"scan",icon:"loading",color:"black",text:(0,t.__)("Scanning your WordPress configuration","really-simple-ssl")},{id:"enabled",icon:"loading",color:"black",text:(0,t.__)("Reporting enabled","really-simple-ssl")}],setItemCompleted:async s=>{const a=l().list.findIndex((e=>e.id===s));e((0,le.jM)((e=>{const l=e.list[a];l.icon="circle-check",l.color="green",e.list[a]=l})))}})));const se=e=>{const{getProgressData:l}=(0,F.A)(),[s,a]=(0,v.useState)(!1),{dataLoaded:i,vulList:d,fetchVulnerabilities:c,setDataLoaded:r,fetchFirstRun:o}=(0,Q.A)(),{getFieldValue:m,handleNextButtonDisabled:u,fieldAlreadyEnabled:p,fieldsLoaded:_}=(0,n.A)(),[f,g]=(0,v.useState)("");let x=[],Z=e.field;const j={headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}};(0,ee.createTheme)("really-simple-plugins",{divider:{default:"transparent"}},"light"),(0,v.useEffect)((()=>{_&&a(1==m("enable_vulnerability_scanner"))}),[m("enable_vulnerability_scanner")]),Z.columns.forEach((function(e,l){let s={name:(a=e).name,sortable:a.sortable,visible:a.visible,selector:e=>e[a.column],searchable:a.searchable,grow:a.grow,width:a.width};var a;x.push(s)})),(0,v.useEffect)((()=>{p("enable_vulnerability_scanner")&&r(!1)}),[m("enable_vulnerability_scanner")]),(0,v.useEffect)((()=>{i||p("enable_vulnerability_scanner")&&y()}),[i]);const y=async()=>{await o(),await c(),await l()};let w=d.map((e=>({...e,risk_name:(0,h.jsx)("span",{className:"rsssl-badge-large rsp-risk-level-"+e.risk_level,children:e.risk_name.charAt(0).toUpperCase()+e.risk_name.slice(1).replace("-risk","")})})));return f.length>0&&(w=w.filter((function(e){if(e.Name.toLowerCase().includes(f.toLowerCase()))return e}))),(0,h.jsx)("div",{style:{marginTop:"5px"},children:s?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"rsssl-container",children:(0,h.jsx)("div",{className:"rsssl-search-bar",children:(0,h.jsxs)("div",{className:"rsssl-search-bar__inner",children:[(0,h.jsx)("div",{className:"rsssl-search-bar__icon"}),(0,h.jsx)("input",{type:"text",className:"rsssl-search-bar__input",placeholder:(0,t.__)("Search","really-simple-ssl"),onKeyUp:e=>{g(e.target.value)}})]})})}),(0,h.jsx)(ee.default,{columns:x,data:w,dense:!0,pagination:!0,persistTableHead:!0,noDataComponent:(0,t.__)("No vulnerabilities found","really-simple-ssl"),theme:"really-simple-plugins",customStyles:j})]}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(ee.default,{columns:x,data:[["","","","",""],["","","","",""],["","","","",""]],dense:!0,pagination:!0,noDataComponent:(0,t.__)("No results","really-simple-ssl"),persistTableHead:!0,theme:"really-simple-plugins",customStyles:j}),(0,h.jsx)("div",{className:"rsssl-locked",children:(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,h.jsx)("span",{className:"rsssl-task-status rsssl-open",children:(0,t.__)("Disabled","really-simple-ssl")}),(0,h.jsx)("span",{children:(0,t.__)("Activate vulnerability detection to enable this block.","really-simple-ssl")})]})})]})})},ae=(0,E.vt)(((e,l)=>({processing:!1,dataLoaded:!1,ipAddress:"",highestIP:"",lowestIP:"",statusSelected:"blocked",inputRangeValidated:!1,cidr:"",ip_count:"",canSetCidr:!1,ipRange:{},idSelected:"",pagination:{},dataActions:{},IpDataTable:[],maskError:!1,rowCleared:!1,setMaskError:l=>{e({maskError:l})},fetchData:async(l,s)=>{if(e({processing:!0}),e({dataLoaded:!1}),e({rowCleared:!0}),0!==Object.keys(s).length)try{const a=await g.Eo(l,s);a&&e({IpDataTable:a,dataLoaded:!0,processing:!1,pagination:a.pagination})}catch(e){console.log(e)}finally{e({processing:!1}),e({rowCleared:!1})}},handleIpTableSearch:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,search:l,searchColumns:s}})))},handleIpTablePageChange:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,page:l,pageSize:s}})))},handleIpTableRowsChange:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,currentRowsPerPage:l,currentPage:s}})))},handleIpTableSort:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,sortColumn:l,sortDirection:s}})))},handleIpTableFilter:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,filterColumn:l,filterValue:s}})))},setIpAddress:l=>{if(0===l.length)return;let s=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,4}|((25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9]))|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9]))$/;if(l.includes("/")){let a="",[i,t]=l.split("/");i=i.replace(/,/g,"."),t.length<=0?(s.test(i)?e({maskError:!1}):e({maskError:!0}),a=`${i}/${t}`):a=t?`${i}/${t}`:i,e({ipAddress:a})}else s.test(l)?e({maskError:!1}):e({maskError:!0}),e({ipAddress:l.replace(/,/g,".")})},resetRange:()=>{e({inputRangeValidated:!1}),e({highestIP:""}),e({lowestIP:""}),e({ipAddress:""}),e({maskError:!1})},setStatusSelected:l=>{e({statusSelected:l})},setId:l=>{e({idSelected:l})},updateRow:async(s,a,i)=>{e({processing:!0});let t={value:s,status:a};try{const e=await g.Eo("ip_update_row",t);return e&&e.request_success?(await l().fetchData("rsssl_limit_login",i),{success:!0,message:e.message,response:e}):{success:!1,message:e?.message||"Failed to add ip",response:e}}catch(e){return{success:!1,message:"Error occurred",error:e}}finally{e({processing:!1})}},validateIpv4:e=>{const l=e.split(".");if(4!==l.length)return!1;for(let e of l){const l=parseInt(e,10);if(isNaN(l)||l<0||l>255)return!1}return!0},validateIpv6:e=>{const l=e.split(":");if(8!==l.length)return!1;for(let e of l)if(e.length>4||!/^[0-9a-fA-F]+$/.test(e))return!1;return!0},extendIpV6:e=>{if("::"===e&&(e="0::0"),e.includes("::")){const l=e.split("::");if(l.length>2)return!1;const s=l[0].split(":").filter(Boolean),a=l[1].split(":").filter(Boolean),i=8-(s.length+a.length);return[...s,...Array(i).fill("0"),...a].join(":")}return e},ipToNumber:e=>l().validateIpv4(e)?l().ipV4ToNumber(e):l().validateIpv6(l().extendIpV6(e))?l().ipV6ToNumber(l().extendIpV6(e)):void 0,ipV4ToNumber:e=>e.split(".").reduce(((e,l)=>256*e+parseInt(l,10)>>>0),0),ipV6ToNumber:e=>e.split(":").reduce(((e,l)=>{const s=parseInt(l,16);return isNaN(s)?(console.warn(`Invalid segment in IPv6 address: ${oldIp}`),e):(e<<BigInt(16))+BigInt(s)}),BigInt(0)),validateIpRange:(s,a)=>{e({inputRangeValidated:!1});let i="",t="";if(s&&a)if(l().validateIpv4(s)&&l().validateIpv4(a)){if(l().ipToNumber(s)>l().ipToNumber(a))return console.warn("lowest is higher than highest"),void e({inputRangeValidated:!1});i=s,t=a,e({inputRangeValidated:!0})}else if(l().validateIpv6(l().extendIpV6(s))&&l().validateIpv6(l().extendIpV6(a))){if(l().ipToNumber(l().extendIpV6(s))>l().ipToNumber(l().extendIpV6(a)))return console.warn("lowest is higher than highest"),void e({inputRangeValidated:!1});i=l().extendIpV6(s),t=l().extendIpV6(a),e({inputRangeValidated:!0})}l().inputRangeValidated&&(e({ipRange:{lowest:i,highest:t}}),l().fetchCidrData("get_mask_from_range"))},fetchCidrData:async s=>{try{const a=await g.Eo(s,l().ipRange);a&&e({cidr:a.cidr,ipAddress:a.cidr,ip_count:a.ip_count,canSetCidr:!0})}catch(e){console.log(e)}},resetRow:async(s,a)=>{e({processing:!0});try{const e=await g.Eo("delete_entries",{id:s});return e&&e.success?(await l().fetchData("rsssl_limit_login",a),{success:!0,message:e.message,response:e}):{success:!1,message:e?.message||"Failed to reset ip",response:e}}catch(e){return console.error(e),{success:!1,message:"Error occurred",error:e}}finally{e({processing:!1})}},resetMultiRow:async(s,a)=>{e({processing:!0});try{const e=await g.Eo("delete_entries",{ids:s});if(e&&e.success)return e.success?(await l().fetchData("rsssl_limit_login",a),{success:!0,message:e.message,response:e}):{success:!1,message:e?.message||"Failed to reset ip",response:e}}catch(e){return console.error(e),{success:!1,message:"Error occurred",error:e}}finally{e({processing:!1})}}}))),ie=(0,E.vt)(((e,l)=>({processing:!1,dataLoaded:!1,pagination:{},dataActions:{},DynamicDataTable:[],sorting:[],rowCleared:!1,fetchDynamicData:async(s,a,i={})=>{e({processing:!0}),e({dataLoaded:!1}),e({rowCleared:!0}),0===Object.keys(i).length&&(i=l().dataActions),i={...i,event_type:a};try{const l=await g.Eo(s,i);l&&e({DynamicDataTable:l,dataLoaded:!0,processing:!1,pagination:l.pagination,sorting:l.sorting})}catch(e){console.log(e)}finally{e({processing:!1}),e({rowCleared:!1})}},handleEventTableSearch:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,search:l,searchColumns:s}})))},handleEventTablePageChange:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,page:l,pageSize:s}})))},handleEventTableRowsChange:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,currentRowsPerPage:l,currentPage:s}})))},handleEventTableSort:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,sortColumn:l,sortDirection:s}})))},handleEventTableFilter:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,filterColumn:l,filterValue:s}})))}})));var te=s(4476);const de=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"US_-_United_States_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#US_-_United_States_svg__a)",children:[(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 1v1h16V1H0Zm0 2v1h16V3H0Zm0 3V5h16v1H0Zm0 1v1h16V7H0Zm0 3V9h16v1H0Zm0 2v-1h16v1H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#2E42A5",d:"M0 0h9v7H0z"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"m1.04 2.174.53-.37.411.297h-.233l.471.416-.159.584h-.249l-.242-.536-.206.536H.748l.471.416-.179.657.53-.37.411.297h-.233l.471.416-.159.584h-.249l-.242-.536-.206.536H.748l.471.416-.179.657.53-.37.513.37-.16-.657.412-.416h-.19l.425-.296.411.296h-.233l.471.416-.179.657.53-.37.513.37-.16-.657.412-.416h-.19l.425-.296.411.296h-.233l.471.416-.179.657.53-.37.513.37-.16-.657.412-.416h-.19l.425-.296.411.296h-.233l.471.416-.179.657.53-.37.513.37-.16-.657.412-.416h-.524l-.242-.536-.206.536h-.298l-.142-.584.412-.416h-.19l.425-.296.513.369-.16-.657.412-.416h-.524l-.242-.536-.206.536h-.298l-.142-.584.412-.416h-.19l.425-.296.513.369-.16-.657.412-.416h-.524L7.569.565l-.206.536h-.615l.471.416-.159.584h-.249l-.242-.536-.206.536h-.298l-.142-.584.412-.416h-.524L5.569.565l-.206.536h-.615l.471.416-.159.584h-.249l-.242-.536-.206.536h-.298l-.142-.584.412-.416h-.524L3.569.565l-.206.536h-.615l.471.416-.159.584h-.249l-.242-.536-.206.536h-.298l-.142-.584.412-.416h-.524L1.569.565l-.206.536H.748l.471.416-.179.657ZM7.06 4.1l.159-.584-.47-.416h.232l-.411-.296-.425.296h.19l-.412.416.142.584h.298l.206-.536.242.536h.249Zm-1.079 0-.411-.296-.425.296h.19l-.412.416.142.584h.298l.206-.536.242.536h.249l.159-.584-.47-.416h.232Zm-1.762.416L4.06 5.1h-.249l-.242-.536-.206.536h-.298l-.142-.584.412-.416h-.19l.425-.296.411.296h-.233l.471.416Zm.144-.416h-.298l-.142-.584.412-.416h-.19l.425-.296.411.296h-.233l.471.416-.159.584h-.249l-.242-.536-.206.536Zm-1.303 0 .159-.584-.47-.416h.232l-.411-.296-.425.296h.19l-.412.416.142.584h.298l.206-.536.242.536h.249Zm3.159-1.584L6.06 3.1h-.249l-.242-.536-.206.536h-.298l-.142-.584.412-.416h-.19l.425-.296.411.296h-.233l.471.416ZM3.981 2.1l-.411-.296-.425.296h.19l-.412.416.142.584h.298l.206-.536.242.536h.249l.159-.584-.47-.416h.232Z",clipRule:"evenodd"})]})]}),ne=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"CA_-_Canada_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#CA_-_Canada_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",d:"M4 0h8.5v12H4V0Z"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"M7.164 4.201 7.987 3 8 10h-.343l.21-1.732s-2.305.423-2.115.21c.191-.214.3-.606.3-.606L4 6.474s.324-.004.587-.164c.264-.16-.263-1.109-.263-1.109l1.036.154.392-.435.782.836h.352l-.352-1.914.63.36ZM8 10V3l.836 1.201.63-.359-.352 1.914h.352l.782-.836.392.435 1.036-.154s-.527.949-.263 1.109c.263.16.587.164.587.164L9.947 7.872s.11.392.3.606c.191.213-2.115-.21-2.115-.21L8.342 10H8ZM12 0h4v12h-4V0ZM0 0h4v12H0V0Z"})]})]}),he=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"MX_-_Mexico_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#MX_-_Mexico_svg__a)",children:[(0,h.jsx)("path",{fill:"#D9071E",fillRule:"evenodd",d:"M11 0h5v12h-5V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#006923",fillRule:"evenodd",d:"M0 0h6v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M5 0h6v12H5V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FCCA3D",fillRule:"evenodd",d:"M7.192 3.957s-.343.266-.279.55c.064.284.74 0 .66-.275-.083-.275-.38-.275-.38-.275Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#A8AC71",fillRule:"evenodd",d:"M6.668 4.634c-.257 0-.364-.214-.311-.442.028-.121.102-.276.222-.476l.43.257a2.861 2.861 0 0 0-.11.198.96.96 0 0 1 .25.113c.234.154.32.428.07.631-.05.04-.128.173-.171.302.12.007.204.025.283.071.221.13.2.37.032.553-.12.13-.278.237-.429.29-.25.091-.516.057-.516-.263v-.002c0-.013-.002-.036.11-.038h.022-.022c-.19-.003-.231-.104-.255-.283a1.853 1.853 0 0 1-.012-.182l-.002-.06-.002-.06-.001-.013c-.004-.058-.007-.097.123-.097h-.29v-.5h.29c.164 0 .255.055.307.17.03-.052.06-.101.094-.145a.386.386 0 0 0-.112-.024Zm.318.878.008-.008-.002.004-.006.004Zm-.218.149Zm0-.189v.008-.015.007Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#8F4620",fillRule:"evenodd",d:"M9.633 6.201s.463-1.37-.272-2.08c-.736-.71-1.585-.662-1.585-.662s-.245.182 0 .32c.245.14.142.272.142.272s-.41-.416-.682-.173c-.272.243.254.206.199.39-.056.182-.292.995.053 1.405.344.41-.326.321-.19.321.137 0 .62.096.62 0 0-.095.168.371.312.371s.255-.164.255-.164.201.164.324.164.552-.107.552-.107l-.81-.682s.049-.301-.066-.366.92.577 1.002.784c.08.207.146.207.146.207Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#9FAB2F",d:"M5.533 5.863s.075-.239.156-.256c.07-.014.216.115.216.115.26 1.445.889 2.01 1.933 2.01 1.055 0 1.695-.43 2.069-1.762 0 0 .198-.203.268-.18.077.024.172.292.172.292-.095 1.559-1.22 2.482-2.492 2.482-1.284 0-2.333-1.035-2.322-2.7Z"}),(0,h.jsx)("path",{fill:"#2FC2DC",fillRule:"evenodd",d:"M6.667 6.828s1.502.319 2.095.319c.593 0-.52.484-.954.484-.435 0-1.14-.803-1.14-.803Z",clipRule:"evenodd"}),(0,h.jsx)("rect",{width:1,height:.536,x:7.333,y:7.05,fill:"#F9AA51",rx:.083}),(0,h.jsx)("path",{fill:"#259485",d:"m6.088 6.068.41-.287c.532.76 1.328 1.009 2.443.748l.114.487c-1.303.305-2.31-.01-2.967-.948Z"}),(0,h.jsx)("path",{fill:"#FCCA3D",fillRule:"evenodd",d:"M8.296 6.175s-.607.32-.405.32c.202 0 .994.16.84 0-.154-.16-.435-.32-.435-.32ZM7.578 5.794s-.115-.333-.355-.333-.172.273-.288.273c-.115 0 .108.193.207.193.1 0 .436-.133.436-.133Z",clipRule:"evenodd"})]})]}),ce=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"BR_-_Brazil_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#BR_-_Brazil_svg__a)",children:[(0,h.jsx)("path",{fill:"#093",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"BR_-_Brazil_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#BR_-_Brazil_svg__b)",children:[(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",filter:"url(#BR_-_Brazil_svg__c)",children:[(0,h.jsx)("path",{fill:"#FFD221",d:"m7.963 1.852 6.101 4.252-6.184 3.982L1.904 6.02l6.06-4.169Z"}),(0,h.jsx)("path",{fill:"url(#BR_-_Brazil_svg__d)",d:"m7.963 1.852 6.101 4.252-6.184 3.982L1.904 6.02l6.06-4.169Z"})]}),(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M8 8.6a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"BR_-_Brazil_svg__e",width:6,height:6,x:5,y:3,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M8 8.6a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fill:"#F7FCFF",mask:"url(#BR_-_Brazil_svg__e)",children:[(0,h.jsx)("path",{fillRule:"evenodd",d:"m7.19 7.285-.112.059.022-.125-.09-.088.124-.018L7.19 7l.056.113.125.018-.09.088.02.125-.111-.059ZM8.19 7.285l-.112.059.022-.125-.09-.088.124-.018L8.19 7l.056.113.125.018-.09.088.02.125-.111-.059ZM8.19 7.885l-.112.059.022-.125-.09-.088.124-.018.056-.113.056.113.125.018-.09.088.02.125-.111-.059ZM7.69 5.785l-.112.059.022-.125-.09-.088.124-.018.056-.113.056.113.125.018-.09.088.02.125-.111-.059ZM7.69 6.785l-.112.059.022-.125-.09-.088.124-.018.056-.113.056.113.125.018-.09.088.02.125-.111-.059ZM6.99 6.285l-.112.059.022-.125-.09-.088.124-.018L6.99 6l.056.113.125.018-.09.088.02.125-.11-.059ZM6.29 6.685l-.112.059.022-.125-.09-.088.124-.018.056-.113.056.113.125.018-.09.088.02.125-.111-.059ZM8.59 4.985l-.112.059.022-.125-.09-.088.124-.018.056-.113.056.113.125.018-.09.088.02.125-.111-.059Z",clipRule:"evenodd"}),(0,h.jsx)("path",{d:"m4.962 5.499.076-.998c2.399.181 4.292.97 5.656 2.373l-.717.697C8.795 6.355 7.131 5.662 4.962 5.5Z"})]})]})]}),(0,h.jsxs)("defs",{children:[(0,h.jsxs)("linearGradient",{id:"BR_-_Brazil_svg__d",x1:16,x2:16,y1:12,y2:0,gradientUnits:"userSpaceOnUse",children:[(0,h.jsx)("stop",{stopColor:"#FFC600"}),(0,h.jsx)("stop",{offset:1,stopColor:"#FFDE42"})]}),(0,h.jsxs)("filter",{id:"BR_-_Brazil_svg__c",width:12.16,height:8.234,x:1.904,y:1.852,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,h.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,h.jsx)("feOffset",{}),(0,h.jsx)("feColorMatrix",{values:"0 0 0 0 0.0313726 0 0 0 0 0.368627 0 0 0 0 0 0 0 0 0.28 0"}),(0,h.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_270_54984"}),(0,h.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_270_54984",result:"shape"})]})]})]}),re=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"AR_-_Argentina_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#AR_-_Argentina_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"AR_-_Argentina_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#AR_-_Argentina_svg__b)",children:[(0,h.jsx)("path",{fill:"#58A5FF",d:"M0 0v4h16V0H0ZM0 8v4h16V8H0Z"}),(0,h.jsx)("path",{fill:"#FFD018",stroke:"#F19900",strokeOpacity:.98,strokeWidth:.25,d:"M8.276 7.244s-.51 1.059-.96 1.276c.194-.486.265-1.477.265-1.477s-1.165.462-1.575.378c.492-.344 1.175-.98 1.175-.98s-1.509-.494-1.472-.704c.682.122 1.618-.011 1.618-.011s-1.058-1.27-.95-1.364c.16.157 1.43.82 1.43.82s.091-1.13.364-1.511c.033.269.416 1.486.416 1.486s.77-.771 1.198-.771c-.187.233-.632 1.256-.632 1.256s1.108-.018 1.53.19c-.51.072-1.405.521-1.405.521s1.165.884 1.058 1.068a5.166 5.166 0 0 0-1.348-.408s.2 1.23.038 1.507c-.157-.41-.75-1.276-.75-1.276Z"}),(0,h.jsx)("path",{fill:"#FFD018",stroke:"#F19900",strokeOpacity:.98,strokeWidth:.25,d:"M8.21 6.67a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"})]})]})]}),oe=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"CO_-_Colombia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#CO_-_Colombia_svg__a)",children:[(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"CO_-_Colombia_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#CO_-_Colombia_svg__b)",children:[(0,h.jsx)("path",{fill:"#FECA00",d:"M0 0v6h16V0H0Z"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 9v3h16V9H0Z"})]})]})]}),ve=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"AU_-_Australia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#AU_-_Australia_svg__a)",children:[(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsxs)("g",{clipPath:"url(#AU_-_Australia_svg__b)",children:[(0,h.jsx)("path",{fill:"#2E42A5",d:"M0 0h9v7H0z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"m-1.002 6.5 1.98.869L9.045.944l1.045-1.29-2.118-.29-3.29 2.768-2.649 1.865L-1.002 6.5Z"}),(0,h.jsx)("path",{fill:"#F50100",d:"m-.731 7.108 1.009.505 9.437-8.08H8.298L-.731 7.109Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"m10.002 6.5-1.98.869L-.045.944-1.09-.346l2.118-.29 3.29 2.768 2.649 1.865L10.002 6.5Z"}),(0,h.jsx)("path",{fill:"#F50100",d:"m9.935 6.937-1.01.504-4.018-3.46-1.19-.386L-1.19-.342H.227L5.13 3.502l1.303.463 3.502 2.972Z"}),(0,h.jsx)("path",{fill:"#F50100",fillRule:"evenodd",d:"M4.992 0h-1v3H0v1h3.992v3h1V4H9V3H4.992V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M3.242-.75h2.5v3H9.75v2.5H5.742v3h-2.5v-3H-.75v-2.5h3.992v-3ZM3.992 3H0v1h3.992v3h1V4H9V3H4.992V0h-1v3Z",clipRule:"evenodd"})]}),(0,h.jsx)("g",{fill:"#F7FCFF",clipPath:"url(#AU_-_Australia_svg__c)",children:(0,h.jsx)("path",{d:"m4.408 9.834-.59.546.058-.802-.795-.121.664-.455-.4-.697.768.236.295-.748.295.748.769-.236-.4.697.663.455-.795.121.058.802-.59-.546ZM10.776 6.069l-.394.364.04-.535-.53-.08.442-.304-.267-.464.512.157.197-.499.197.499.512-.157-.267.464.442.303-.53.081.04.535-.394-.364ZM11.715 2.377l-.394.363.04-.534-.53-.081.442-.303-.268-.465.513.157.197-.498.197.498.512-.157-.267.465.442.303-.53.08.04.535-.394-.363ZM14.061 4.223l-.393.364.039-.535-.53-.08.442-.304-.267-.464.513.157.196-.499.197.499.513-.157-.267.464.442.303-.53.081.039.535-.394-.364ZM12.184 9.53l-.394.364.04-.534-.53-.081.442-.303-.267-.465.512.157.197-.498.197.498.512-.157-.267.465.443.303-.53.08.039.535-.394-.363ZM13.827 6.648l-.4.21.076-.445-.323-.316.447-.065.2-.405.2.405.447.065-.324.316.077.445-.4-.21Z"})})]}),(0,h.jsxs)("defs",{children:[(0,h.jsx)("clipPath",{id:"AU_-_Australia_svg__b",children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h9v7H0z"})}),(0,h.jsx)("clipPath",{id:"AU_-_Australia_svg__c",children:(0,h.jsx)("path",{fill:"#fff",d:"M3 1h12v10H3z"})})]})]}),me=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"NZ_-_New_Zealand_(Aotearoa)_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#NZ_-_New_Zealand_(Aotearoa)_svg__a)",children:[(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsxs)("g",{clipPath:"url(#NZ_-_New_Zealand_(Aotearoa)_svg__b)",children:[(0,h.jsx)("path",{fill:"#2E42A5",d:"M0 0h9v7H0z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"m-1.002 6.5 1.98.869L9.045.944l1.045-1.29-2.118-.29-3.29 2.768-2.649 1.865L-1.002 6.5Z"}),(0,h.jsx)("path",{fill:"#F50100",d:"m-.731 7.108 1.009.505 9.436-8.08H8.298L-.731 7.109Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"m10.002 6.5-1.98.869L-.045.944-1.09-.346l2.118-.29 3.29 2.768 2.649 1.865L10.002 6.5Z"}),(0,h.jsx)("path",{fill:"#F50100",d:"m9.935 6.937-1.01.504-4.018-3.46-1.19-.386L-1.19-.342H.227L5.13 3.502l1.303.463 3.502 2.972Z"}),(0,h.jsx)("path",{fill:"#F50100",fillRule:"evenodd",d:"M4.992 0h-1v3H0v1h3.992v3h1V4H9V3H4.992V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M3.242-.75h2.5v3H9.75v2.5H5.742v3h-2.5v-3H-.75v-2.5h3.992v-3ZM3.992 3H0v1h3.992v3h1V4H9V3H4.992V0h-1v3Z",clipRule:"evenodd"})]}),(0,h.jsx)("path",{fill:"#F50100",fillRule:"evenodd",stroke:"#F7FCFF",strokeWidth:.35,d:"m12.427 10.25-.882.463.168-.981L11 9.036l.986-.143.44-.893.441.893.986.143-.713.696.168.982-.881-.464ZM10.6 6.935l-.68.357.13-.757L9.5 6l.76-.11.34-.689.34.689.76.11-.55.536.13.757-.68-.357ZM14.099 6.933l-.68.357.13-.756L13 5.998l.76-.11.339-.688.34.688.759.11-.55.536.13.756-.68-.357ZM12.6 4.135l-.68.357.13-.757-.55-.536.76-.11.34-.689.34.689.76.11-.55.536.13.757-.68-.357Z",clipRule:"evenodd"})]}),(0,h.jsx)("defs",{children:(0,h.jsx)("clipPath",{id:"NZ_-_New_Zealand_(Aotearoa)_svg__b",children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h9v7H0z"})})})]}),ue=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"FJ_-_Fiji_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#FJ_-_Fiji_svg__a)",children:[(0,h.jsx)("path",{fill:"#67BFE5",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsxs)("g",{clipPath:"url(#FJ_-_Fiji_svg__b)",children:[(0,h.jsx)("path",{fill:"#2E42A5",d:"M0 0h9v7H0z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"m-1.002 6.5 1.98.869L9.045.944l1.045-1.29-2.118-.29-3.29 2.768-2.649 1.865L-1.002 6.5Z"}),(0,h.jsx)("path",{fill:"#F50100",d:"m-.731 7.108 1.009.505 9.437-8.08H8.298L-.731 7.109Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"m10.002 6.5-1.98.869L-.045.944-1.09-.346l2.118-.29 3.29 2.768 2.649 1.865L10.002 6.5Z"}),(0,h.jsx)("path",{fill:"#F50100",d:"m9.935 6.937-1.01.504-4.018-3.46-1.19-.386L-1.19-.342H.227L5.13 3.502l1.303.463 3.502 2.972Z"}),(0,h.jsx)("path",{fill:"#F50100",fillRule:"evenodd",d:"M4.992 0h-1v3H0v1h3.992v3h1V4H9V3H4.992V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M3.242-.75h2.5v3H9.75v2.5H5.742v3h-2.5v-3H-.75v-2.5h3.992v-3ZM3.992 3H0v1h3.992v3h1V4H9V3H4.992V0h-1v3Z",clipRule:"evenodd"})]}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M10 5h4.828v4.167S14.423 11 12.414 11C10.404 11 10 9.167 10 9.167V5Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"FJ_-_Fiji_svg__c",width:5,height:6,x:10,y:5,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M10 5h4.828v4.167S14.423 11 12.414 11C10.404 11 10 9.167 10 9.167V5Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#FJ_-_Fiji_svg__c)",children:[(0,h.jsx)("path",{fill:"#C3352C",d:"M10 5h4.828v1.5H10z"}),(0,h.jsx)("path",{fill:"#C3352C",d:"M12.069 6.333h.69V11h-.69z"}),(0,h.jsx)("path",{fill:"#C3352C",fillRule:"evenodd",d:"M10 8.167h4.828v.666H10v-.666Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#979797",fillRule:"evenodd",d:"M11.27 10.368c.29.41.527.571.694.33.118-.17.13-.34-.037-.374a2.778 2.778 0 0 1-.205-.287l.005-.005c.047-.046.049-.107.04-.13-.004-.03.02-.073.17-.188.137-.104.198-.203.108-.311-.047-.057-.09-.068-.223-.089l-.04-.006a.716.716 0 0 1-.087-.018l-.093-.178a1.145 1.145 0 0 0-.51.098l-.152.064c-.05.021-.06.026-.061.025l.002-.002c.004-.003.01-.008.001-.008-.035 0-.073-.004-.178-.017l-.02-.003c-.302-.038-.378-.037-.427.104-.074.214.367.605.6.653.118.023.258.135.413.342Zm.328-.294a.27.27 0 0 0 .07-.006l.006-.013a.13.13 0 0 1-.076.02Zm-1.101-.59c-.006-.007-.008-.017-.004-.029 0 .003.002.008.008.016a.348.348 0 0 0 .026.03.061.061 0 0 1-.03-.017Zm.41.296c-.084-.016-.297-.194-.38-.28.022.006.051.01.083.013l.043.004.02.003c.118.015.159.02.209.02.029 0 .023.009.02.015-.002.002-.003.003-.002.004a.758.758 0 0 0 .138-.055l.15-.064a.943.943 0 0 1 .259-.072c.01.042.034.08.073.11a.444.444 0 0 0 .217.076c-.128.106-.193.194-.213.28-.116.037-.105.167-.036.298.048.09.14.219.276.39l.098.046c-.03 0-.046-.013-.058-.023-.015-.013-.024-.02-.045.01-.002.002-.093-.06-.287-.334-.19-.254-.376-.402-.565-.44Zm.61.15v-.005.005Zm.08-.106h-.008.007Zm.001 0h-.002.002Z",clipRule:"evenodd"}),(0,h.jsx)("path",{stroke:"#964C36",strokeWidth:.5,d:"M10.828 8.055s-.239-.33-.239-.448"}),(0,h.jsx)("path",{stroke:"#2A8E51",strokeWidth:.5,d:"M10.68 7.771s-.306-.13-.306 0M10.674 7.634s-.214-.272-.375-.272c-.162 0-.158.136-.158.136M10.552 7.361s-.096-.446-.249-.446-.153.223-.153.223M10.59 7.36s-.042-.382.155-.382"}),(0,h.jsx)("path",{stroke:"#964C36",strokeWidth:.5,d:"M11.13 7.99s-.11-.391-.07-.502"}),(0,h.jsx)("path",{stroke:"#2A8E51",strokeWidth:.5,d:"M11.088 7.673s-.242-.226-.286-.104M11.13 7.543s-.108-.33-.26-.385c-.15-.055-.194.074-.194.074M11.11 7.244s.062-.452-.082-.505c-.144-.052-.22.158-.22.158M11.146 7.257s.09-.375.276-.307"}),(0,h.jsx)("path",{stroke:"#964C36",strokeWidth:.35,d:"M11.376 8.13s.158-.375.132-.49"}),(0,h.jsx)("path",{stroke:"#2A8E51",strokeWidth:.35,d:"M11.457 7.82s.268-.195.297-.068M11.43 7.686s.148-.314.305-.35c.158-.037.184.097.184.097M11.488 7.392s-.007-.457.143-.491c.149-.035.2.183.2.183M11.45 7.4s-.044-.383-.236-.338M13.349 7.9s.121-.556.465-.556c.345 0 .499.588.499.588"}),(0,h.jsx)("path",{stroke:"#2A8E51",strokeWidth:.35,d:"M13.065 7.52s.185-.328.797-.301c.612.027.723.302.723.302M12.941 7.103s.336-.417.807-.064l.16.064s.16-.472.933 0"}),(0,h.jsx)("path",{stroke:"#964C36",strokeWidth:.5,d:"M13.87 8.018s.024-.52.106-.662M14.55 9.157s-.31-.145-.402 0c-.093.145-1.207 1.48-1.207 1.48"}),(0,h.jsx)("path",{fill:"#FFF203",fillRule:"evenodd",d:"m13.482 9.298.69.482s.318-.226.16-.354c-.16-.128-.592-.354-.592-.354l-.258.226Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#00A651",fillRule:"evenodd",d:"M13.458 9.322s-.16.168-.16.296c0 .128-.149.47-.149.47s.417.257.503.094c.087-.164.648-.066.549-.315-.1-.25-.743-.545-.743-.545Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFD100",fillRule:"evenodd",d:"M10.528 5.591s.369-.189.551 0c.183.19.332-.016.332-.13s.29-.506.29-.188-.09.498.165.498c.254 0 1.401-.44 1.676-.31.275.13.486.098.416-.088-.07-.187-.25-.303-.596-.201-.346.101-.264.2-.563.2-.3 0-.632-.099-.632-.099s.093-.167.435-.048c.341.119.812-.147.94-.147.128 0 .48-.008.515.094.035.101.248.195.086.29-.162.094-.43.153-.246.275.184.121.608.098.628.224.02.126.221.315.14.315-.08 0-.225.178-.36.124-.136-.054-.152-.102-.022-.146s.128-.228.021-.228-.055.064-.299 0c-.244-.065-.567-.137-.547 0 .02.136.178.346-.115.374-.293.028-.43.14-.487.05-.057-.09-.261-.211-.1-.25.16-.038.313.131.37.104.058-.028.189-.043.08-.16-.11-.118-.29-.187-.123-.275.167-.088.035-.09-.284.092-.32.182-.497.337-.777.315-.28-.022-.386.008-.476-.022-.09-.03-.528.326-.655.236-.126-.09-.534-.125-.46-.236.073-.11.171-.168.281-.11.11.056.22.113.293.056.074-.057.288-.253.234-.292-.054-.04-.002-.171-.306-.171s-.412.147-.484.054c-.072-.092.08-.2.08-.2Z",clipRule:"evenodd"})]})]}),(0,h.jsx)("defs",{children:(0,h.jsx)("clipPath",{id:"FJ_-_Fiji_svg__b",children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h9v7H0z"})})})]}),pe=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"PG_-_Papua_New_Guinea_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#PG_-_Papua_New_Guinea_svg__a)",children:[(0,h.jsx)("path",{fill:"#E11C1B",d:"M0 0h16v12H0z"}),(0,h.jsx)("path",{fill:"#1D1D1D",fillRule:"evenodd",d:"m0 0 16 12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#EEEEF6",fillRule:"evenodd",d:"M3.542 9.134h.666l.316-.746.373.741.682.037-.583.635.3.765-.742-.426-.684.43.258-.743-.586-.693ZM1.542 7.134h.666l.316-.746.373.741.682.038-.583.634.3.765-.742-.426-.684.43.258-.743-.586-.693ZM3.542 6.134h.666l.316-.746.373.741.682.038-.583.634.3.765-.742-.426-.684.43.258-.743-.586-.693Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#EEEEF6",fillRule:"evenodd",d:"m4.856 8.282.457-.015.166-.472.185.47.421.04-.379.268.306.475-.53-.199-.46.205.242-.468-.408-.304ZM5.856 7.282l.457-.015.166-.472.185.47.421.04-.379.268.306.475-.53-.199-.46.205.242-.468-.408-.304Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FBCD17",fillRule:"evenodd",d:"M10.542 1s-1.544.308-1.111 2.455h-.22s.018-.112-.194-.178c-.212-.065-.17-.04-.279 0-.11.041-.774 0-.774 0v.082l.47.204s-.011.169.186.263c.196.093.34.139.34.139s.028.186-.156.186-.926-.24-1.19.35C7.351 5.093 7 5.526 7 5.526h.395l-.106.132h.446l-.12.069s.55-.006.593-.069c.043-.062 0 .169 0 .169s.534-.244.563-.3l.249.17.071-.289.267.118.073-.275s.756 1.264 1.33 1.192v-.21l.523.21.066-.094s.632.258.827.282l-.139-.282h.139l-.139-.522h.139l-.278-.419.078-.113-.051-.15s1.017.325.971.84c-.046.517-.499.725-.499.725s-.434.133-.827.104c0 0 .312.368.971.244.66-.125.878-.764.878-.764s.302.628.053.958c-.248.33-1.357.562-1.357.562s.401.235.781.175.972-.391 1.086-.931c.115-.54-.395-1.536-.626-1.65l-.091-.345.207.083-.426-1.042.207.045-.603-.75.166-.051-.833-.6.25-.065s-.617-.312-1.319.066l.007-.13-.185.03.011-.143.184-.278-.276-.106s.223-.335.19-.33c0 0-.249.071-.235.041 0 0 .125-.322.092-.313 0 0-.287.097-.245.048l.11-.196L10.543 1Z",clipRule:"evenodd"})]})]}),_e=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"SB_-_Solomon_Islands_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#SB_-_Solomon_Islands_svg__a)",children:[(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"SB_-_Solomon_Islands_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#SB_-_Solomon_Islands_svg__b)",children:[(0,h.jsx)("path",{fill:"#579D20",fillRule:"evenodd",d:"M0 12h16V0L0 12Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",d:"m-.391 12.373-.902-1.248L16.837-.977 17.74.27-.39 12.373Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"m1.827 3.273.681-.473.714.425-.25-.762.5-.545h-.677l-.287-.801-.286.8-.678.029.5.517-.217.81Zm2.829 0 .681-.473.714.425-.25-.762.5-.545h-.677l-.287-.801-.286.8-.678.029.5.517-.217.81Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"m3.324 4.727.682-.473.714.425-.25-.762.499-.545h-.677l-.286-.801-.287.8-.678.029.5.517-.217.81ZM2.508 5.8l-.681.473.217-.81-.5-.517.678-.028.286-.801.287.8h.677l-.5.546.25.762-.714-.425Zm2.83 0-.682.473.218-.81-.501-.517.678-.028.286-.801.287.8h.677l-.5.546.25.762-.714-.425Z",clipRule:"evenodd"})]})]})]}),fe=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"VU_-_Vanuatu_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#VU_-_Vanuatu_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",fillRule:"evenodd",d:"m0-1 8.335 7L0 13V-1Z",clipRule:"evenodd"}),(0,h.jsxs)("mask",{id:"VU_-_Vanuatu_svg__b",width:18,height:21,x:-1,y:-4.677,fill:"#000",maskUnits:"userSpaceOnUse",children:[(0,h.jsx)("path",{fill:"#fff",d:"M-1-4.677h18v21H-1z"}),(0,h.jsx)("path",{fillRule:"evenodd",d:"M0-1.677 8.704 5H16v2H8.585L0 13.406V11.17L7 6 0 .767v-2.444Z",clipRule:"evenodd"})]}),(0,h.jsx)("path",{fill:"#FFD018",fillRule:"evenodd",d:"M0-1.677 8.704 5H16v2H8.585L0 13.406V11.17L7 6 0 .767v-2.444Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",d:"m8.704 5-.609.793.27.207h.34V5ZM0-1.677l.609-.794L-1-3.705v2.028h1ZM16 5h1V4h-1v1Zm0 2v1h1V7h-1ZM8.585 7V6h-.332l-.266.199.598.801ZM0 13.406h-1V15.4l1.598-1.193L0 13.406Zm0-2.236-.594-.804-.406.3v.504h1ZM7 6l.594.804 1.083-.8L7.599 5.2 7 6ZM0 .767h-1v.501l.401.3.599-.8Zm9.313 3.44L.609-2.471-.61-.884l8.704 6.677 1.218-1.586ZM16 4H8.704v2H16V4Zm1 3V5h-2v2h2ZM8.585 8H16V6H8.585v2ZM.598 14.207l8.585-6.406L7.987 6.2l-8.585 6.405 1.196 1.603ZM-1 11.17v2.236h2V11.17h-2Zm7.406-5.974-7 5.17 1.188 1.609 7-5.17-1.188-1.61ZM-.6 1.568l7 5.233L7.6 5.199l-7-5.233L-.6 1.568ZM-1-1.677V.767h2v-2.444h-2Z",mask:"url(#VU_-_Vanuatu_svg__b)"}),(0,h.jsx)("path",{fill:"#FFD018",d:"M2.437 8.384v-.79c.705-.155 1.171-.358 1.399-.6.559-.69.187-2.304-.962-2.294-.569 0-1.157.272-1.157.91 0 .793.163 1.132.72 1.132.555 0 .759.03 1.124-.469l.396.123c-.391.533-.919.955-1.52.955-.991 0-1.53-.747-1.53-1.611 0-1.067.866-1.814 1.91-1.814.779 0 2.01.954 2.01 1.814 0 .86 0 1.253-.675 1.854a3.666 3.666 0 0 1-1.715.79Z"}),(0,h.jsx)("path",{fill:"#FFD018",fillRule:"evenodd",d:"M2.496 4.94a.071.071 0 0 0-.088.05l-.027.104-.004-.005a.071.071 0 0 0-.113.087l.049.064-.082.076a.071.071 0 0 0 .097.105l.072-.068.125.164-.137.074a.071.071 0 0 0 .068.126l.156-.084.107.143-.188.1a.071.071 0 1 0 .068.127l.205-.111a14 14 0 0 1 .144.2l-.131.07a.071.071 0 0 0 .067.126l.146-.078c.06.09.091.144.091.159a.071.071 0 1 0 .143 0c0-.037-.037-.113-.116-.235a.075.075 0 0 0 .003-.006l.106-.232a.071.071 0 1 0-.13-.06l-.072.16a10.927 10.927 0 0 0-.159-.221l.075-.165a.071.071 0 1 0-.13-.06l-.042.093-.072-.096.101-.223a.071.071 0 1 0-.13-.059l-.069.152-.138-.18.056-.21a.071.071 0 0 0-.051-.087Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFD018",fillRule:"evenodd",d:"M2.976 4.94a.071.071 0 0 1 .087.05l.028.104.004-.005a.071.071 0 0 1 .113.087l-.05.064.083.076a.071.071 0 0 1-.097.105l-.072-.068-.125.164.137.074a.071.071 0 1 1-.068.126l-.156-.084-.107.143.188.1a.071.071 0 1 1-.068.127l-.206-.111a14 14 0 0 0-.143.2l.131.07a.071.071 0 1 1-.067.126l-.146-.078a.665.665 0 0 0-.092.159.071.071 0 1 1-.142 0c0-.037.037-.113.116-.235a.075.075 0 0 1-.003-.006l-.106-.232a.071.071 0 1 1 .13-.06l.072.16c.045-.065.098-.139.159-.221L2.5 5.61a.071.071 0 1 1 .13-.06l.042.093.072-.096-.101-.223a.071.071 0 0 1 .13-.059l.069.152.138-.18-.056-.21a.071.071 0 0 1 .051-.087Z",clipRule:"evenodd"})]})]}),ge=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"WS_-_Samoa_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#WS_-_Samoa_svg__a)",children:[(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"WS_-_Samoa_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#WS_-_Samoa_svg__b)",children:[(0,h.jsx)("path",{fill:"#2E42A5",d:"M0 0v7h8V0H0Z"}),(0,h.jsx)("path",{fill:"#FEFFFF",d:"m1.783 3.886-.53.32.12-.624-.44-.468.597-.025.253-.583.253.583h.596l-.44.493.133.624-.542-.32ZM5.783 3.886l-.53.32.12-.624-.44-.468.597-.025.253-.583.253.583h.596l-.44.493.133.624-.542-.32ZM3.733 2.069l-.499.301.114-.588-.416-.44.563-.023.238-.549.238.549h.561l-.414.463.125.588-.51-.301ZM4.273 4.213l-.312.188.071-.367-.26-.275.352-.015.15-.343.148.343h.35l-.258.29.078.367-.319-.188ZM3.704 6.414l-.748.452.17-.882-.622-.66.843-.035.357-.823.357.823h.843l-.622.695.187.882-.765-.452Z"})]})]})]}),xe=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"FM_-_Federated_States_of_Micronesia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#FM_-_Federated_States_of_Micronesia_svg__a)",children:[(0,h.jsx)("path",{fill:"#63B3E1",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"FM_-_Federated_States_of_Micronesia_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{fill:"#F7FCFF",fillRule:"evenodd",clipRule:"evenodd",mask:"url(#FM_-_Federated_States_of_Micronesia_svg__b)",children:(0,h.jsx)("path",{d:"m8 3.65-.882.464.169-.982-.714-.696.986-.143L8 1.4l.44.893.987.143-.714.696.169.982L8 3.65ZM8 9.65l-.882.463.169-.981-.714-.696.986-.143L8 7.4l.442.893.986.143-.714.696.169.982L8 9.65ZM4.9 6.75l-.882.464.169-.982-.714-.696.986-.143L4.9 4.5l.44.893.987.143-.714.696.169.982L4.9 6.75ZM11 6.75l-.882.464.169-.982-.714-.696.986-.143L11 4.5l.44.893.987.143-.714.696.169.982L11 6.75Z"})})]})]}),Ze=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"MH_-_Marshall_Islands_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("rect",{width:16,height:12,fill:"#fff",rx:0})}),(0,h.jsxs)("g",{mask:"url(#MH_-_Marshall_Islands_svg__a)",children:[(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"MH_-_Marshall_Islands_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#MH_-_Marshall_Islands_svg__b)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"m4 5.5-.409 1.472.004-1.528-.79 1.308.416-1.47-1.114 1.045.797-1.303-1.355.706 1.12-1.04-1.496.315 1.358-.7-1.524-.1 1.496-.307-1.44-.508 1.524.108-1.25-.878 1.438.515-.968-1.183 1.246.884-.612-1.4.961 1.188-.211-1.513.605 1.403L4 1l.204 1.514.605-1.403-.211 1.513.96-1.187-.611 1.4 1.246-.885-.968 1.183 1.439-.515-1.25.878 1.523-.108-1.44.508 1.496.307-1.524.1 1.358.7-1.495-.315L6.45 5.73l-1.355-.706.797 1.303L4.78 5.282l.416 1.47-.79-1.308.003 1.528L4 5.5Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",d:"M-.391 12.373 16.629.607v3.836l-17.02 7.93Z"}),(0,h.jsx)("path",{fill:"#E2AE57",d:"m-.391 12.373 17.02-14.766v3.836L-.39 12.373Z"})]})]})]}),je=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"PW_-_Palau_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#PW_-_Palau_svg__a)",children:[(0,h.jsx)("path",{fill:"#61C6F0",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"PW_-_Palau_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#PW_-_Palau_svg__b)",children:(0,h.jsx)("path",{fill:"#FBCD17",fillRule:"evenodd",d:"M5.75 9a3.25 3.25 0 1 0 0-6.5 3.25 3.25 0 0 0 0 6.5Z",clipRule:"evenodd"})})]})]}),ye=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"PR_-_Puerto_Rico_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#PR_-_Puerto_Rico_svg__a)",children:[(0,h.jsx)("path",{fill:"#EF0000",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"PR_-_Puerto_Rico_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#PR_-_Puerto_Rico_svg__b)",children:(0,h.jsx)("path",{fill:"#EF0000",stroke:"#F7FCFF",strokeWidth:2,d:"M0 4h-1v4h18V4H0Z"})}),(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0 0v12l9-6-9-6Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"PR_-_Puerto_Rico_svg__c",width:9,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12l9-6-9-6Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#PR_-_Puerto_Rico_svg__c)",children:(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"m3.344 7.108-1.836.97.894-1.948-1.14-1.04 1.407-.052.675-1.76.515 1.76h1.404L4.327 6.13l.744 1.947-1.727-.969Z",clipRule:"evenodd"})})]})]}),we=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"HK_-_Hong_Kong_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#HK_-_Hong_Kong_svg__a)",children:[(0,h.jsx)("path",{fill:"#EA1A1A",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"HK_-_Hong_Kong_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#HK_-_Hong_Kong_svg__b)",children:[(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M7.935 5.787s-2.895-2.581.56-4.085c0 0 1.004 1.108.25 2.352-.247.408-.456.7-.612.919-.321.448-.425.593-.198.814ZM3.662 3.934C3.464 7.696 7.067 6.26 7.067 6.26c-.3.104-.382-.054-.64-.541-.126-.238-.293-.555-.548-.959-.776-1.23-2.217-.827-2.217-.827Zm5.457 1.98s3.716 1.112 1.224 3.938c0 0-1.38-.579-1.224-2.025.051-.474.117-.826.166-1.091.1-.543.133-.718-.166-.822Zm-.977.867s.667 3.821-2.975 2.855c0 0-.1-1.492 1.264-2 .447-.166.791-.265 1.05-.34.53-.152.701-.2.661-.515Zm4.597-1.643c-2.277-3.001-4.102.421-4.102.421.162-.272.327-.206.838 0 .25.1.582.234 1.038.378 1.387.439 2.226-.8 2.226-.8Z",clipRule:"evenodd"}),(0,h.jsx)("path",{stroke:"#EA1A1A",strokeWidth:.5,d:"M5.08 5.104S5.809 6.25 7 6.25M7.93 3.525s-.653 1.205-.093 2.258M11.055 4.88s-1.525-.23-2.323.655M10.164 7.672S9.86 6.16 8.754 5.714M6.967 8.493S8.284 7.69 8.325 6.5"})]})]})]}),ke=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"AQ_-_Antarctica_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#AQ_-_Antarctica_svg__a)",children:[(0,h.jsx)("path",{fill:"#5196ED",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"AQ_-_Antarctica_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",filter:"url(#AQ_-_Antarctica_svg__c)",mask:"url(#AQ_-_Antarctica_svg__b)",children:[(0,h.jsx)("path",{fill:"#fff",d:"M4.359 3.947s1.032.566 1.175.723c.144.156.374.732.732.406.36-.325.718-.072.718-.59s.535-1.72 1.312-1.419c.777.301 1.416.113 1.596.233.179.12.61.719.944.719.335 0 .502.35.526.855.024.506-.107.555.203.615.311.06.43.29.276.59-.156.302-.144.17-.12.482.024.314-.31 2.161-1.34 2.342-1.028.18-2.002.084-1.74-.265.264-.35.628-.752.09-.836-.538-.084-.877-.156-1.415-.012-.538.145-1.1.374-1.435-.06-.335-.434-.263-.747-.538-.952-.275-.205-.61-.168-.335-.566.275-.398.502-.25.275-.562C5.056 5.336 4.2 5.2 4.2 4.887c0-.314-.546-1 .16-.94Z"}),(0,h.jsx)("path",{fill:"#F5F8FB",d:"M4.359 3.947s1.032.566 1.175.723c.144.156.374.732.732.406.36-.325.718-.072.718-.59s.535-1.72 1.312-1.419c.777.301 1.416.113 1.596.233.179.12.61.719.944.719.335 0 .502.35.526.855.024.506-.107.555.203.615.311.06.43.29.276.59-.156.302-.144.17-.12.482.024.314-.31 2.161-1.34 2.342-1.028.18-2.002.084-1.74-.265.264-.35.628-.752.09-.836-.538-.084-.877-.156-1.415-.012-.538.145-1.1.374-1.435-.06-.335-.434-.263-.747-.538-.952-.275-.205-.61-.168-.335-.566.275-.398.502-.25.275-.562C5.056 5.336 4.2 5.2 4.2 4.887c0-.314-.546-1 .16-.94Z"})]})]}),(0,h.jsx)("defs",{children:(0,h.jsxs)("filter",{id:"AQ_-_Antarctica_svg__c",width:8.511,height:6.573,x:3.698,y:2.719,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,h.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,h.jsx)("feOffset",{}),(0,h.jsx)("feGaussianBlur",{stdDeviation:.15}),(0,h.jsx)("feColorMatrix",{values:"0 0 0 0 0.0941176 0 0 0 0 0.32549 0 0 0 0 0.639216 0 0 0 0.43 0"}),(0,h.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_270_54950"}),(0,h.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_270_54950",result:"shape"})]})})]}),Re=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("path",{fill:"#C00",d:"M0 0h4v4H0z"}),(0,h.jsx)("path",{fill:"#08672F",d:"M4 .52V0h-.49L0 3.48V4h.49L4 .52Z"}),(0,h.jsx)("path",{fill:"#08672F",d:"M0 .52V0h.49L4 3.48V4h-.499L0 .52Z"}),(0,h.jsx)("path",{fill:"#fff",d:"M0 1.604 4 1.6v.796L0 2.4v-.796Z"}),(0,h.jsx)("path",{fill:"#fff",d:"M1.6 0h.796L2.4 4h-.796L1.6 0ZM0 4h4v4H0V4Z"}),(0,h.jsx)("path",{fill:"#000",d:"M1.2 4.8h.5v.5h-.5zM1.2 6.8h.5v.5h-.5zM1.2 5.8h.5v.5h-.5zM1 8h.5v.5H1zM2.2 5.8h.5v.5h-.5zM2 8h.5v.5H2zM2.2 4.8h.5v.5h-.5zM2.2 6.8h.5v.5h-.5z"}),(0,h.jsx)("path",{fill:"#C00",d:"M0 12h4V8H0v4Z"}),(0,h.jsx)("path",{fill:"#0092C8",d:"M4 0h12v12H4V0Z"}),(0,h.jsx)("path",{fill:"#FFCF00",stroke:"#650000",strokeWidth:.05,d:"M1.335 9.077c-.038-.046 0-.131.033-.095-.017-.035.012-.062.025-.045-.006-.028.022-.047.035-.02-.004-.032.037-.05.048-.016 0-.031.041-.056.05-.01.008-.035.053-.04.057.01.013-.03.047-.027.049.015.014-.02.052.01.046.045.023-.006.052.044.023.08.05-.028.063.064.032.106.016.01.017.001.031.01.014.007.04.02.063.025.02 0 .098-.003.114-.005.015-.003.037-.011.063-.02.027-.01.066-.01.101-.02.029-.003.82.014.843.012.022-.003.056-.026.054-.054-.002-.028-.028-.049-.054-.051a1.499 1.499 0 0 0-.186.002.168.168 0 0 0-.077.036c-.008.006-.022.028-.034.042-.011.01-.042.011-.042-.002 0-.008-.003.002-.01.005-.01.007-.055.008-.053 0 .003-.01 0-.012-.012-.002a.15.15 0 0 1-.082.002c.006-.012.006-.01-.012-.001-.012.005-.06.01-.064 0 0-.009-.006-.005-.013-.003-.055.016-.06-.002-.052-.01.009-.007.022-.051.008-.049l-.131.026c-.03.005-.246 0-.275-.003-.03-.002-.063-.032-.065-.074-.003-.067.049-.084.08-.094a.69.69 0 0 1 .142-.026c.032 0 .122.012.146.002a.817.817 0 0 1 .12-.041c.031-.003.12.008.163.062-.022.01-.033.016-.008.007l.143-.032c.08-.004.059.009.02.02-.013.042-.129.103-.165.11a.517.517 0 0 1-.133-.001c-.017-.002-.1-.006-.13-.026a.378.378 0 0 0-.178-.057c-.037 0-.143.012-.142.05 0 .069.098.072.14.07.042-.003.147-.008.177-.02a.426.426 0 0 1 .129-.017c.035 0 .086.009.102.006.016-.003.052-.003.07-.016a.178.178 0 0 1 .094-.026c.039 0 .324-.012.363-.01.056 0 .095.065.096.12 0 .025-.012.063-.022.069.017.001.06.006.075.01.027.005.07.036.075.065a.2.2 0 0 0-.083-.035l-.678-.001a.356.356 0 0 1 .26.187c.023.038.08.023.1.018.021-.005.046-.028.063-.046.018-.018.045-.023.057-.018.028-.003.032.028.022.043-.01.016.002.01.03.01.028 0 .052.01.069.033-.016.016-.024.003-.001.006.023.002.05.046.033.059-.015.007-.019.005 0 .007.029.003.037.022.04.057-.024.005-.012-.003 0 .01.013.012.03.069-.013.071-.016-.008-.016-.01-.013.008.004.018-.005.061-.03.061-.033.007-.064-.013-.068-.036-.003-.023-.003.045-.051.055-.045.011-.07-.016-.073-.03-.004-.012-.002-.002-.02-.004-.017-.003-.039-.003-.048-.033 0-.018.003-.042.034-.045.014-.003.018-.022.008-.024-.01-.003-.002-.041.02-.031.023.01.076.013.088.025.012.013.016-.01-.003-.03-.02-.02-.137-.062-.168-.046a.423.423 0 0 1-.218.028c-.02-.005-.081.009-.11-.084a.204.204 0 0 0-.152-.148c-.198-.02-.188-.004-.059.002 0 .018-.005.054.016.06.035-.005.108-.022.125-.006.018.015.035.028.032.064-.004.035.001.025-.014.04-.016.016-.01.046.015.057.025.01.035.023.051.038.016.015-.007.046-.02.036-.015-.01-.015-.01-.017.01-.001.02-.019.059-.048.062-.007-.003-.005-.013-.004-.021.002-.018-.006.022-.015.033-.006.008-.056.022-.07.015.007-.016.003-.01-.01-.002-.011.005-.076.014-.047-.018.007-.012-.01.015-.02.02-.008.005-.047.008-.047-.007-.012.01-.04.01-.045.002-.009-.01-.01.008-.025.01-.016.003-.05-.002-.052-.023-.002-.02.003-.007-.016-.005-.047.033-.07-.012-.07-.028 0-.015-.002-.033.004-.043.005-.01-.033-.014-.022-.034.014-.024.027-.042.053-.038.012.003.01-.005.005-.015-.005-.01.014-.015.037-.005.023.01.039.036.046.059.007.023.06.005.084.007.022.003.024-.038.01-.05-.014-.014-.052-.06-.068-.075-.016-.015-.005-.069.009-.082.081-.058.036-.076.007-.071a.315.315 0 0 0-.131.065c-.025.028-.215.166-.233.181-.017.016-.043.02-.053.002-.01-.018-.018-.006-.016.02.014.097-.068.127-.083.126a.07.07 0 0 1-.034-.016c-.01.054-.056.06-.097.054 0-.006.008-.018.003-.014-.013.019-.054.017-.09.014-.002-.011.012-.025.005-.017-.012.023-.032.02-.066.017 0-.005.016-.022.008-.012-.014.017-.045.011-.068.012-.003-.004.012-.03-.002-.013-.013.015-.04.018-.067.014-.005-.013.006-.013.008-.021.007-.013-.003 0-.012 0-.009 0-.02.003-.026-.01-.005-.013-.002.013-.007.02-.006.006-.011.02-.029.025-.017.005-.063.01-.07-.013-.01-.01-.014-.033-.007-.046.007-.013-.033.025-.05.028-.052.01-.058-.074-.036-.082.023-.007.02-.02.007-.03C.967 9.59.96 9.55.976 9.537c.016-.013.052-.02.075-.005.014.01.043.043.037.018-.004-.016.006-.036.017-.045.01-.009.04-.011.048.009.018.047.031.067.054.066a.833.833 0 0 1 .133-.03c.025-.006.156-.02.156-.032-.079.029-.11-.008-.12-.006-.008.003-.03-.008-.03-.015 0-.016.02-.014-.008-.009-.016-.001-.031-.002-.046-.02-.002-.01.02-.042.027-.07-.018-.005-.058.03-.072.06-.009-.012-.012-.001-.045.007a.07.07 0 0 1-.055-.003c-.014-.007-.069-.051-.042-.057l-.02-.007c-.02-.009-.038-.026-.032-.03-.005-.008.005-.008-.003-.01-.01-.002-.036-.022-.03-.03l-.028-.015C.979 9.306.967 9.28.965 9.266c-.011.001-.035-.021-.024-.028C.922 9.224.907 9.2.919 9.192c-.01-.009-.018-.025-.01-.019-.012-.014-.008-.03 0-.03.009 0 .006-.04-.01-.04s-.041.013-.06 0c-.015-.013-.028-.067-.014-.09.014-.023.042-.048.056-.046.014.003.007.008.004-.015-.004-.023.02-.04.035-.046.018-.009.054-.003.065.008.01.01.014.01.014-.008 0-.013.013-.02.025-.022.02-.005.036 0 .043.01.01.016.017.035.003.05-.014.016-.001.003.021-.002.015-.006.041.001.046.018.006.017.01.048-.005.063-.016.016-.039.054-.027.067.013.013.051.069.06.077.009.007.02.025.033.023l.042-.008c.049-.01.07-.016.008-.014.014-.02.044-.027.057-.03-.012-.018.03-.056.03-.06ZM1.335 10.47c-.038-.047 0-.132.033-.096-.017-.035.012-.062.025-.045-.006-.028.022-.047.035-.02-.004-.032.037-.05.048-.016 0-.031.041-.056.05-.01.008-.035.053-.04.057.01.013-.03.047-.027.049.015.014-.02.052.01.046.044.023-.005.052.045.023.082.05-.029.063.064.032.105.016.01.017.002.031.01a.27.27 0 0 0 .063.025c.02 0 .098-.003.114-.005.015-.003.037-.012.063-.02.027-.01.066-.01.101-.02.029-.003.82.014.843.012.022-.003.056-.026.054-.054-.002-.028-.028-.049-.054-.051a1.508 1.508 0 0 0-.186.002.168.168 0 0 0-.077.036c-.008.006-.022.028-.034.042-.011.01-.042.011-.042-.002 0-.008-.003.002-.01.005-.01.007-.055.008-.053 0 .003-.01 0-.012-.012-.002a.149.149 0 0 1-.082.002c.006-.012.006-.01-.012-.001-.012.005-.06.01-.064 0 0-.009-.006-.005-.013-.003-.055.016-.06-.002-.052-.01.009-.007.022-.051.008-.049l-.131.026c-.03.005-.246 0-.275-.003-.03-.002-.063-.032-.065-.074-.003-.067.049-.084.08-.094a.692.692 0 0 1 .142-.026c.032 0 .122.012.146.002a.818.818 0 0 1 .12-.041c.031-.003.12.008.163.062-.022.01-.033.016-.008.007l.143-.032c.08-.004.059.009.02.02-.013.042-.129.102-.165.11a.517.517 0 0 1-.133-.001c-.017-.002-.1-.006-.13-.027a.379.379 0 0 0-.178-.056c-.037 0-.143.012-.142.05 0 .069.098.072.14.07.042-.003.147-.008.177-.02a.429.429 0 0 1 .129-.017c.035 0 .086.009.102.006.016-.002.052-.003.07-.016a.178.178 0 0 1 .094-.026c.039 0 .324-.012.363-.01.056 0 .095.065.096.12 0 .025-.012.063-.022.069.017.001.06.006.075.01.027.005.07.036.075.065a.201.201 0 0 0-.083-.035l-.678-.001a.356.356 0 0 1 .26.187c.023.038.08.023.1.018.021-.005.046-.028.063-.046.018-.018.045-.023.057-.018.028-.003.032.028.022.043-.01.015.002.01.03.01.028 0 .052.01.069.033-.016.016-.024.003-.001.006.023.002.05.046.033.059-.015.008-.019.005 0 .007.029.003.037.022.04.057-.024.005-.012-.003 0 .01.013.012.03.069-.013.071-.016-.008-.016-.009-.013.008.004.018-.005.061-.03.061-.033.007-.064-.013-.068-.036-.003-.023-.003.045-.051.055-.045.011-.07-.016-.073-.03-.004-.012-.002-.002-.02-.004-.017-.003-.039-.003-.048-.034 0-.017.003-.04.034-.044.014-.003.018-.022.008-.024-.01-.003-.002-.041.02-.031.023.01.076.013.088.025.012.013.016-.01-.003-.03-.02-.02-.137-.061-.168-.046a.422.422 0 0 1-.218.028c-.02-.005-.081.009-.11-.084a.204.204 0 0 0-.152-.148c-.198-.02-.188-.004-.059.002 0 .018-.005.054.016.06.035-.005.108-.022.125-.006.018.015.035.028.032.063-.004.036.001.026-.014.041-.016.016-.01.046.015.057.025.01.035.023.051.038.016.015-.007.046-.02.036-.015-.01-.015-.01-.017.01-.001.02-.019.059-.048.062-.007-.003-.005-.013-.004-.021.002-.018-.006.022-.015.033-.006.008-.056.022-.07.015.007-.016.003-.01-.01-.002-.011.005-.076.014-.047-.018.007-.012-.01.015-.02.02-.008.005-.047.008-.047-.007-.012.01-.04.01-.045.002-.009-.01-.01.008-.025.01-.016.003-.05-.002-.052-.023-.002-.02.003-.007-.016-.005-.047.033-.07-.012-.07-.028 0-.015-.002-.033.004-.043.005-.01-.033-.014-.022-.034.014-.024.027-.042.053-.038.012.003.01-.005.005-.015-.005-.01.014-.015.037-.005.023.01.039.036.046.059.007.023.06.005.084.007.022.003.024-.038.01-.05-.014-.014-.052-.06-.068-.075-.016-.015-.005-.069.009-.082.081-.058.036-.076.007-.071a.315.315 0 0 0-.131.065c-.025.028-.215.166-.233.181-.017.016-.043.02-.053.002-.01-.018-.018-.005-.016.02.014.096-.068.127-.083.126a.07.07 0 0 1-.034-.016c-.01.054-.056.06-.097.054 0-.006.008-.018.003-.014-.013.019-.054.017-.09.014-.002-.011.012-.025.005-.017-.012.023-.032.02-.066.017 0-.005.016-.022.008-.012-.014.017-.045.011-.068.012-.003-.004.012-.03-.002-.013-.013.015-.04.018-.067.014-.005-.013.006-.013.008-.021.007-.013-.003 0-.012 0-.009 0-.02.003-.026-.01-.005-.013-.002.013-.007.02-.006.006-.011.02-.029.025-.017.005-.063.01-.07-.013-.01-.01-.014-.033-.007-.046.007-.013-.033.025-.05.028-.052.01-.058-.074-.036-.082.023-.007.02-.02.007-.03-.012-.01-.019-.051-.003-.064.016-.013.052-.02.075-.005.014.01.043.043.037.018-.004-.016.006-.036.017-.044.01-.01.04-.012.048.008.018.047.031.067.054.066a.83.83 0 0 1 .133-.03c.025-.006.156-.02.156-.032-.079.029-.11-.008-.12-.006-.008.003-.03-.008-.03-.015 0-.016.02-.014-.008-.009-.016-.001-.031-.002-.046-.02-.002-.01.02-.042.027-.07-.018-.005-.058.03-.072.06-.009-.012-.012-.001-.045.007a.07.07 0 0 1-.055-.003c-.014-.007-.069-.051-.042-.057-.007-.004-.015-.006-.02-.007-.02-.009-.038-.026-.032-.03-.005-.008.005-.008-.003-.01-.01-.002-.036-.022-.03-.03l-.028-.015c-.013-.008-.025-.034-.027-.047-.011.001-.035-.021-.024-.028-.019-.014-.034-.038-.022-.046-.01-.009-.018-.025-.01-.019-.012-.014-.008-.03 0-.03.009 0 .006-.04-.01-.04s-.041.013-.06 0c-.015-.013-.028-.067-.014-.09.014-.023.042-.048.056-.046.014.003.007.008.004-.015-.004-.023.02-.04.035-.046.018-.009.054-.003.065.008.01.01.014.01.014-.008 0-.013.013-.02.025-.022.02-.005.036 0 .043.01.01.016.017.035.003.05-.014.016-.001.003.021-.002.015-.006.041.001.046.018.006.018.01.048-.005.063-.016.016-.039.054-.027.067.013.013.051.069.06.077.009.007.02.025.033.023l.042-.008c.049-.01.07-.016.008-.014.014-.02.044-.027.057-.03-.012-.018.03-.056.03-.06Z"}),(0,h.jsx)("path",{fill:"#FFCF00",fillRule:"evenodd",d:"M9.823 1.549c.185-.046.485-.061.646-.034.032.007.09.012.149.018.095.009.19.018.176.03a1.446 1.446 0 0 0-.148.396c0 .021.755.546.787.546.042 0 .106.076.089.106a1.05 1.05 0 0 1-.104.105c-.046.044-.122.27-.194.522a.672.672 0 0 1 .165-.135c.11-.074 1.082-.812 1.365-1.036.032-.023-.048-.038-.215-.036a1.83 1.83 0 0 0-.42.057c-.225.057-.393-.118-.465-.193a.278.278 0 0 0-.031-.03c-.063-.043-.154-.174-.154-.223 0-.01.061-.002.141.02.186.052.35.05.562-.005.19-.049.392-.06.605-.034l.028.004c.038.007.063.01.078.01.014.092.105.389.122.403.034.03.779.323.836.33.084.01.118.044.118.116 0 .07-.086.135-.209.158-.143.028-.502.442-.753.87-.17.287-.262.5-.262.604 0 .106.063.51.129.817.04.182.05.213.071.184.024-.03.087-.034.51-.034h.485l.164-.286c.09-.158.163-.291.158-.294a9.572 9.572 0 0 0-.546-.044c-.296-.019-.54-.038-.545-.04a8.881 8.881 0 0 1 .23-.43l.235-.422.476.08.15.025c.2.034.361.06.387.066.046.008.063 0 .1-.066a.41.41 0 0 0 .027-.058v.01c-.005.137-.02.483-.168.77l-.365.695v.48h-.084a.45.45 0 0 0-.084.005l.016.099.015.085a.635.635 0 0 1 .02.171c-.007.01-.062.02-.121.02l-.11.001-.061.16a6.55 6.55 0 0 1-.618.997l-.051.065.118.055c.167.076.34.258.454.478.088.174.093.186.093.37 0 .18-.049.41-.089.413l-.51.078-.233.036c-.4.061-.738.108-.753.103-.044-.016-.15-.194-.186-.31l-.013-.043c-.014-.044-.026-.082-.031-.093-.004-.017-.087.013-.256.1a3.44 3.44 0 0 1-.852.306 3.73 3.73 0 0 1-2.07-.127 6.052 6.052 0 0 1-.84-.416c-.39-.241-.551-.383-1.203-1.066-.211-.22-.266-.264-.41-.336-.145-.072-.187-.083-.314-.083-.118 0-.15-.006-.175-.04-.053-.074-.032-.16.07-.27 0 0 .031-.072.02-.079l-.247-.16c-.19-.098.499-1.244.784-1.544.139-.148.145-.157.145-.258 0-.203.13-.603.266-.836.064-.105.07-.124.049-.173-.04-.089 0-.14.257-.324.51-.365.808-.59.817-.615.015-.047-.207-.03-.378.03-.342.12-.65.148-.798.071-.067-.033-.17-.152-.17-.196 0-.007.07-.007.156 0 .064.004.051-.1.04-.193a.829.829 0 0 1-.007-.086c0-.03.003-.053.007-.053l.066.023.022.009c.15.052.378.04.67-.04.143-.04.324-.079.4-.087 0 0 .43-.08.368-.013-.034.036-.07.127-.104.256-.03.11-.05.2-.05.203l.065.013.424.086c.32.066.509.095.555.087.08-.017.131.017.131.087 0 .059-.042.095-.211.173a1.796 1.796 0 0 0-.264.16 3.833 3.833 0 0 0-.618.648c-.06.084-.086.123-.099.166-.01.037-.01.078-.01.153 0 .178.041.449.096.635l.034.116.059-.159a2.51 2.51 0 0 1 .325-.62c.095-.13.112-.166.084-.177-.044-.017 0-.188.038-.211.038-.024.292-.248.562-.502l.49-.46v-.123c0-.119.001-.123.065-.136.036-.006.101-.012.143-.012.061-.002.1-.024.203-.117.067-.063.118-.122.107-.13a.63.63 0 0 0-.187-.024c-.137-.006-.23.006-.45.057-.31.074-.462.08-.606.032-.099-.034.049-.093.142-.119 0 0-.22-.378-.186-.368.291.09.412.093.663.03Zm4.95 2.02c-.004-.011-.005.007-.006.047.007-.02.01-.038.007-.047ZM12.89 1.615c-.008-.008-.009.001-.006.023.02 0 .02-.006.006-.023Zm-1.694 1.728c-.093.333-.174.674-.174.674l.074-.16c.04-.09.1-.451.1-.506v-.008Zm.188-.762-.002-.001.002.001Zm-.002-.001c-.043-.028-.771-.54-.771-.54l-.025.084c-.024.08.595.363.759.439l.037.017Zm-2.74-.168c.443.09.452.093.37.116l-.213.06-.258.073-.41.115.015-.057c.047-.195.101-.383.112-.383.008 0 .18.034.384.076Zm-.739.427.043-.152.052-.178c.007-.013.007-.025.005-.025-.007 0-.69.501-.707.516a.563.563 0 0 0 .135-.03l.308-.087.164-.044Zm3.084 1.273-.053.174c-.063.215-.108.429-.142.691a.661.661 0 0 1-.11.336 1.565 1.565 0 0 0-.103.2c-.056.129-.062.036-.071-.259a3.682 3.682 0 0 1 .078-.941c.044-.2.316-.374.346-.313l.055.112Zm-2.662.685c.017-.072.011-.116-.031-.24a2.302 2.302 0 0 1-.118-.555c.004-.21-.018-.224-.097-.023-.135.302-.165.433-.165.746 0 .172.01.322.027.375.024.08.034.09.089.09h.063v.265c0 .22-.004.264-.031.264-.045 0-.04.024.023.174.101.243.633.81.58.706-.173-.357-.422-1.083-.382-1.487.013-.124.032-.268.042-.315Zm4.525.385c.027.108.027.127-.01.237a1.486 1.486 0 0 0-.014.04.816.816 0 0 1-.109.241c-.1.11-.101.112-.127.066-.1-.193-.139-.681-.075-1.013.027-.146.135-.535.147-.535.004 0 .017.078.032.173.027.195.11.614.156.791ZM6.647 4.51l.137.467s-.188-.391-.192-.431l.055-.036Zm1.234.662c0 .01-.086.019-.192.019h-.192l-.525.008c.003-.014.15-.074.32-.145h.001l.104-.043c.197.01.393.023.413.049.04.052.071.103.071.112Zm-.484-.16-.08-.005c-.171-.008-.327-.016-.345-.03l.616-.125.235-.047c-.009.03-.217.12-.426.206Zm-.391.707-.138-.215c0-.176-.008-.24-.046-.328a.553.553 0 0 0-.067-.135c-.004 0-.03.1-.068.247l-.095.357-.158.58.063.023c.036.013.16.078.276.148.119.07.23.127.25.127.067 0 .075-.087.033-.267a1.877 1.877 0 0 1-.046-.35l-.004-.187Zm3.821.176c.049.245.137.476.275.717.065.114.116.211.111.215a.778.778 0 0 1-.255.043c-.03-.02-.148-.275-.228-.495-.09-.248-.173-.59-.158-.654a1.84 1.84 0 0 1 .101-.234l.087-.18.017.207c.008.114.03.286.05.38Zm1.682.03c.005-.036-.019-.058-.101-.1-.11-.055-.403.125-.403.125.067.14.251.383.3.383.012 0 .095-.064.185-.142.175-.152.194-.203.082-.214-.056-.006-.067-.014-.063-.053Zm-.264.46-.054.039c-.074.05-.56.29-.57.28a5.99 5.99 0 0 1 .114-.422l.103-.148c.021.04.081.055.143.07.055.014.11.027.142.059l.123.122Zm-.966.379c.008-.01.065-.176.127-.364.059-.19-.136-.044-.16.127-.016.112.005.265.033.237Zm-2.3-.379c-.049.15-.097.284-.106.292-.008.01-.053 0-.099-.023-.07-.036-.087-.057-.11-.15-.025-.104-.025-.112.028-.203a.457.457 0 0 1 .278-.22c.114-.028.12-.028.11.002-.005.01-.03.086-.063.186l-.038.116Zm.69.305a1.821 1.821 0 0 1-.15-.391c-.03-.144-.044-.176-.082-.186-.085-.024-.093-.013-.148.171l-.068.22-.04.127-.05.163.215.044c.116.023.262.05.323.057l.11.013-.11-.218Zm.234-.4.22.106-.098.11a.788.788 0 0 0-.133.207.579.579 0 0 1-.048.112c-.038.043-.274-.507-.274-.636 0-.045.078-.02.333.101Zm.68.635.263-.02c.043-.004-.268-.238-.5-.38a1.313 1.313 0 0 0-.152-.087.83.83 0 0 0-.093.093.69.69 0 0 0-.179.322l-.013.065.216.013c.118.006.325.002.457-.006Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#000",d:"m10.469 1.515.03-.147h-.005l-.025.147Zm-.646.034-.037-.145.037.145Zm.795-.016.014-.15-.014.15Zm.176.03-.101-.11-.002.002.103.109Zm.728 1.048.125.083.005-.009-.13-.074Zm-.104.105-.101-.11.101.11Zm-.194.522-.144-.041.266.129-.122-.088Zm.165-.135-.084-.124.084.124Zm1.365-1.036-.089-.12-.004.003.093.117Zm-.215-.036-.002-.15.002.15Zm-.42.057-.036-.145.036.145Zm-.465-.193-.112.1.004.003.108-.103Zm0 0 .113-.1-.002-.002-.11.102Zm0 0 .111-.102-.002-.002-.109.104Zm-.031-.03.083-.126-.083.125Zm-.013-.204.041-.144h-.002l-.039.144Zm.562-.004-.038-.145.038.145Zm.605-.034.024-.148h-.006l-.018.148Zm.028.004.026-.147h-.002l-.024.147Zm0 0-.026.148h.002l.024-.147Zm.2.413.1-.113-.006-.004-.094.117Zm.836.33.019-.15h-.003l-.016.15Zm-.09.274-.029-.147.028.147Zm-.754.87-.13-.076.13.076Zm-.133 1.42-.147.032v.001l.147-.032Zm.071.185-.118-.093-.004.006.122.087Zm.995-.034v.15h.086l.043-.075-.13-.075Zm.164-.286.13.075-.13-.075Zm.158-.294-.106.107.018.017.021.01.067-.134Zm-.546-.044-.01.15.01-.15Zm-.545-.04-.134.067.023.045.044.022.067-.134Zm.23-.43-.13-.072.13.073Zm.235-.422.024-.148-.104-.018-.052.093.132.073Zm.476.08-.024.148.024-.148Zm.15.025-.026.148.025-.148Zm0 0-.025.148.025-.148Zm0 0 .025-.148-.025.148Zm0 0 .025-.148-.025.148Zm0 0-.024.148.025-.148Zm0 0 .025-.148-.024.148Zm.387.066-.03.147h.003l.027-.147Zm.1-.066.13.076.002-.003-.131-.073Zm.027-.048-.15-.006.15.006Zm-.168.77.133.07v-.001l-.133-.07Zm-.365.695-.133-.07-.017.033v.037h.15Zm0 .48v.15h.15v-.15h-.15Zm-.152.104.148-.026-.148.026Zm.015.085.148-.026-.148.026Zm.02.171-.12-.09-.005.006-.005.007.13.077Zm-.121.02V5.8h-.003l.003.15Zm-.11.001-.003-.15-.1.002-.037.095.14.053Zm-.061.16.137.062.003-.008-.14-.053Zm-.618.997.118.091.001-.001-.12-.09Zm-.051.065-.119-.091-.114.148.17.08.063-.137Zm.118.055-.063.136.063-.136Zm.454.478.133-.068-.133.068Zm.004.783-.008-.15h-.014l-.014.004.036.146Zm-.51.078-.023-.148.023.148Zm-.233.036-.022-.148.022.148Zm-.753.103-.054.141.013.004.04-.145Zm-.186-.31.144-.045v-.001l-.144.046Zm-.013-.043.142-.046v-.002l-.143.048Zm0 0-.144.044.001.003.143-.047Zm0 0 .143-.045-.143.045Zm-.031-.093-.146.037.003.011.005.011.138-.059Zm-.256.1.068.134h.001l-.069-.134Zm-.852.306.033.147-.033-.147Zm-2.07-.127-.052.141h.001l.05-.14Zm-.84-.416.079-.128-.08.128ZM6.784 7.058l.108-.104-.108.104Zm-.41-.336.068-.134H6.44l-.066.134Zm-.489-.123-.122.087.002.003.12-.09Zm.07-.27.11.101.017-.018.01-.023-.137-.06Zm.02-.079-.081.126.081-.126Zm-.247-.16.082-.126-.007-.005-.006-.003-.069.133Zm.784-1.544.109.103-.11-.103Zm.411-1.094-.128-.077-.001.001.13.076Zm.049-.173.137-.06v-.002l-.137.062Zm.257-.324.087.122-.087-.122Zm.817-.615.142.047v-.002l-.142-.045Zm-.378.03-.049-.142.05.142Zm-.798.071.07-.133h-.002l-.068.133Zm-.014-.196.01-.15-.01.15Zm.04-.193-.149.014v.004l.15-.018Zm0 0 .15-.014v-.003l-.15.017Zm.066-.116.051-.14-.051.14Zm0 0-.052.141.052-.14Zm0 0 .051-.14-.051.14Zm0 0-.052.141.052-.14Zm0 0 .052-.14h-.001l-.051.14Zm0 0-.052.14v.001l.052-.14Zm.022.009-.051.14.002.001.05-.141Zm.67-.04.04.144-.04-.145Zm.4-.087.017.15.01-.003-.027-.147Zm.368-.013.109.103-.11-.103Zm-.104.256.145.039v-.001l-.145-.038Zm-.05.203h-.15v.15h.15v-.15Zm.065.013-.03.147.03-.147Zm0 0 .03-.147-.03.147Zm.424.086.03-.147-.03.147Zm.555.087.027.148.004-.001-.03-.147Zm-.08.26-.063-.136h-.001l.064.136Zm-.264.16.09.12-.09-.12Zm-.618.648.123.086-.123-.086Zm-.099.166.144.042-.144-.042Zm.086.788.144-.042-.144.042Zm.034.116-.144.042.126.435.158-.425-.14-.052Zm.059-.159.14.053.001-.001-.141-.052Zm.325-.62-.121-.087.121.088Zm.084-.177.054-.14-.054.14Zm.038-.211L8.8 3.293l.078.128Zm.562-.502.102.11-.102-.11Zm.49-.46.102.109.047-.045v-.065h-.15Zm.065-.259-.026-.147h-.004l.03.147Zm.143-.012v.15h.005l-.005-.15Zm.203-.117.1.112.003-.002-.103-.11Zm.107-.13-.106.105.006.006.007.005.094-.117Zm-.187-.024-.007.15h.003l.004-.15Zm-.45.057-.034-.146.034.146Zm-.606.032-.048.142.048-.142Zm.142-.119.04.145.187-.051-.097-.169-.13.075ZM9.16 1.52l-.045.144h.001l.044-.144Zm5.614 2.05.14-.053-.002-.004-.138.057Zm-1.885-1.954.115-.097-.006-.007-.109.104Zm-1.867 2.402-.146-.035.282.098-.136-.063Zm.173-.674h.15l-.295-.04.145.04Zm-.1.513.137.063v-.001l-.137-.062Zm.1-.505-.15-.001h.15Zm.188-.77.106-.106-.015-.016-.02-.01-.07.132Zm-.773-.541.086-.123-.17-.12-.06.2.144.043Zm-.025.084.143.044-.143-.044Zm.759.439-.063.136.063-.136ZM9.01 2.528l-.04-.144-.004.001.044.143Zm-.369-.116-.03.147.03-.147Zm.157.176-.04-.144h-.001l.041.144Zm0 0 .04.145h.002l-.042-.145Zm-.258.073.04.145-.04-.145Zm-.41.115-.145-.038-.065.252.25-.07-.04-.144Zm.015-.057.145.037.001-.003-.146-.034Zm-.2-.032L7.8 2.643v.004l.144.04Zm-.043.152.04.145.082-.022.023-.083-.145-.04Zm.095-.33-.134-.067-.006.013-.004.013.144.041ZM7.295 3l-.1-.112-.014.013-.011.017.125.083Zm.135-.029.038.145h.003L7.43 2.97Zm.308-.087.038.146-.038-.146Zm3.195 1.403-.144-.044v.001l.144.043Zm.053-.174.143.044.017-.057-.026-.053-.134.066Zm-.195.865-.148-.02v.001l.148.02Zm-.11.336-.128-.077v.002l.129.075Zm-.103.2.138.059.003-.008.003-.007-.144-.045Zm-.071-.259.15-.005v-.002l-.15.007Zm.078-.941-.147-.032.147.032ZM10.93 4l-.135.065v.001L10.931 4Zm-2.638.556-.142.048.142-.048Zm.031.241-.146-.034v.001l.146.033Zm-.15-.795L8.025 4v.006l.15-.003Zm-.096-.023.137.061.002-.006-.14-.055Zm-.138 1.12.145-.041-.002-.004-.143.046Zm.152.092h.15v-.15h-.15v.15Zm-.008.702.138-.058-.138.058Zm.58.706-.135.065.002.003.133-.068Zm-.382-1.487-.149-.015.15.015Zm4.556.307.142.05v-.001l-.142-.049Zm.011-.237.145-.037-.145.037Zm-.024.277-.143-.047-.001.006.144.04Zm0 0 .143.044.001-.003-.144-.041Zm0 0 .142.047.001-.003-.143-.044Zm-.109.241.111.1-.11-.1Zm-.127.066-.132.07v.002l.132-.072Zm-.075-1.013.147.028-.147-.028Zm.179-.362.148-.02v-.003l-.148.023Zm-5.909.586-.135.065.279-.107-.144.042Zm-.137-.467.144-.043-.057-.194-.17.111.083.126Zm-.055.036L6.51 4.42l-.077.05.01.091.149-.015Zm.905.645v-.15h-.002l.002.15Zm-.525.008-.145-.039-.051.192.198-.003-.002-.15Zm.32-.145.058.14v-.001l-.057-.139Zm0 0 .059.139-.058-.139Zm.001 0-.056-.139-.002.001.058.138Zm0 0-.041-.144-.008.002-.007.003.056.14Zm0 0 .041.145.008-.003.008-.003-.057-.139Zm.517.006.12-.091-.003-.002-.117.093Zm-.492-.053.007-.15-.007.15Zm-.346-.03-.03-.147-.327.066.267.201.09-.12Zm.616-.125.03.147-.03-.147Zm.235-.047.144.04.065-.236-.24.049.03.147Zm-.955.699h-.15v.043l.024.037.126-.08Zm.138.215.15-.003-.001-.042-.023-.035-.126.08Zm-.184-.543-.139.057.001.002.138-.06Zm-.135.112.145.038-.145-.038Zm0 0-.145-.038.145.038Zm-.095.357.145.04-.145-.04Zm-.158.58-.145-.04-.036.133.129.048.052-.141Zm.063.023-.052.14.002.001.05-.141Zm.276.148-.077.129h.001l.076-.129Zm.283-.14.146-.034V6.22l-.146.037Zm-.046-.35.15-.004-.15.003Zm4.092.706-.13.074.13-.074Zm-.275-.717.148-.03-.001-.003-.147.033Zm.386.932.101.112.006-.006-.107-.106Zm-.255.043-.081.126.008.005.073-.131Zm-.228-.495.141-.051-.14.05Zm-.158-.654.146.034v-.002l-.146-.032Zm.101-.234.135.066v-.001l-.135-.065Zm.087-.18.15-.012-.046-.551-.24.498.136.065Zm.017.207.15-.01v-.002l-.15.012Zm1.63.311.07-.133-.002-.001-.067.134Zm.102.1-.149-.018v.001l.15.016Zm-.504.025-.079-.128-.115.071.059.123.135-.066Zm.485.24.098.115-.098-.114Zm.082-.213-.016.15h.002l.014-.15Zm-.381.447.084.123h.001l-.085-.123Zm.054-.039.086.124.147-.103-.126-.126-.107.105Zm-.624.32-.107.106.007.006.006.005.094-.117Zm.114-.423-.123-.086-.015.02-.006.025.144.04Zm.103-.148.132-.07-.115-.218-.14.202.123.086Zm.143.07.036-.145-.036.145Zm.142.059-.106.106.106-.106Zm-.717.137.142.047v-.002l-.142-.045Zm-.127.364.106.106.006-.006.005-.006-.117-.094Zm-.034-.237-.148-.022v.003l.148.02Zm-2.372.15-.106-.106-.006.006-.005.007.117.093Zm.106-.292-.143-.047v.001l.143.046Zm-.205.27-.069.132.002.001.067-.134Zm-.11-.151-.145.036.145-.036Zm.028-.203-.13-.076.13.076Zm.278-.22-.035-.146.035.146Zm.11.002.138.06.003-.01-.141-.05Zm-.063.186.143.047-.143-.047Zm.502.03-.147.03v.003L9.52 6.3Zm.15.391.134-.067-.134.067Zm-.232-.577.04-.145-.04.145Zm-.148.171.143.044v-.001l-.143-.043Zm-.068.22-.143-.045.143.045Zm-.04.127.144.044-.144-.044Zm-.05.163-.144-.045-.049.158.162.034.03-.147Zm.215.044-.03.147.03-.147Zm.323.057.017-.149h-.002l-.015.15Zm.11.013-.018.149.277.032-.126-.249-.134.068Zm.344-.512.112.1.131-.15-.178-.085-.066.135Zm-.22-.106.065-.135h-.001l-.064.135Zm.122.216.112.1-.112-.1Zm-.133.207.142.051-.142-.05Zm-.048.112-.106-.106-.006.006.112.1Zm1.002.08v.15h.015l-.015-.15Zm-.264.02.01.15h.002l-.011-.15Zm-.236-.4-.08.127.002.001.078-.128Zm-.245.006.11.103.001-.001-.11-.102Zm-.179.322.147.028-.147-.028Zm-.013.065-.147-.028-.032.168.17.01.01-.15Zm.216.013-.01.15h.002l.008-.15Zm.369-5.564a2.073 2.073 0 0 0-.708.037l.073.29c.168-.042.447-.054.584-.03l.05-.297Zm.138.016a1.836 1.836 0 0 1-.134-.015l-.059.294c.042.009.11.015.165.02l.028-.299Zm.263.292a.154.154 0 0 0 .009-.218c-.03-.032-.066-.043-.07-.044a.39.39 0 0 0-.065-.015l-.137-.015-.028.3c.049.004.092.008.12.012.017.003.02.004.014.002a.138.138 0 0 1-.053-.035.147.147 0 0 1 .008-.209l.202.222Zm-.1.284c0 .01 0 .013.002 0a2.023 2.023 0 0 1 .112-.3c.007-.011.002 0-.013.014l-.205-.218c-.024.022-.039.05-.045.06a2.13 2.13 0 0 0-.142.379.306.306 0 0 0-.008.065h.3Zm.638.396c.021 0 .037.005.041.006l.012.004.003.001a14.378 14.378 0 0 1-.734-.509l.005.006a.132.132 0 0 1 .013.017c.002.003.023.034.023.08h-.3c0 .046.021.077.024.081a.174.174 0 0 0 .034.04l.031.026.09.068a14.126 14.126 0 0 0 .674.457.288.288 0 0 0 .039.016.157.157 0 0 0 .045.007v-.3Zm.219.33a.183.183 0 0 0 .01-.156.302.302 0 0 0-.112-.137.214.214 0 0 0-.117-.037v.3a.102.102 0 0 1-.048-.012c-.003-.002-.002-.002 0 0l-.005-.009a.099.099 0 0 1-.006-.03c0-.016.002-.041.017-.068l.26.149Zm-.132.142.073-.07a.523.523 0 0 0 .053-.063l-.25-.167.005-.006-.004.005a.83.83 0 0 1-.08.08l.203.221Zm-.152.453c.036-.125.072-.241.104-.33.016-.045.03-.08.042-.105.015-.032.018-.03.006-.019l-.204-.22a.363.363 0 0 0-.073.11 1.521 1.521 0 0 0-.053.132 5.858 5.858 0 0 0-.11.349l.288.083Zm-.063-.3a.794.794 0 0 0-.203.17l.244.176a.6.6 0 0 1 .127-.098l-.168-.249Zm1.356-1.03c-.283.224-1.252.959-1.356 1.029l.168.249a63.98 63.98 0 0 0 1.374-1.043l-.186-.235Zm-.12.231c.081 0 .132.003.154.007h.003a.11.11 0 0 1-.036-.02.143.143 0 0 1-.049-.138c.011-.054.048-.08.052-.084l.178.242a.157.157 0 0 0 .01-.253.19.19 0 0 0-.063-.033.315.315 0 0 0-.044-.01 1.25 1.25 0 0 0-.21-.01l.005.3Zm-.386.053a1.68 1.68 0 0 1 .386-.053l-.005-.3c-.145.003-.289.021-.453.062l.072.29Zm-.609-.236c.036.038.109.114.208.172.101.06.24.104.401.064l-.073-.291a.23.23 0 0 1-.177-.032.67.67 0 0 1-.142-.12l-.217.207Zm-.004-.004.225-.199-.225.2Zm.002.002.221-.203-.221.203Zm-.004-.007a.144.144 0 0 1-.008-.006c-.002 0-.002-.002-.003-.002l.001.001a.522.522 0 0 1 .007.006c.002.003.005.007.01.01l.216-.207-.022-.022a.24.24 0 0 0-.035-.03l-.166.25Zm-.221-.347c0 .048.019.092.03.114a.625.625 0 0 0 .05.085c.034.05.086.111.14.148l.167-.25-.002-.001a.151.151 0 0 1-.021-.02.472.472 0 0 1-.064-.092l-.003-.007.001.006.002.017h-.3Zm.33-.126a1.036 1.036 0 0 0-.12-.025.318.318 0 0 0-.057-.003.175.175 0 0 0-.056.012.153.153 0 0 0-.097.142h.3a.148.148 0 0 1-.091.136c-.022.009-.039.01-.04.01h.001a.747.747 0 0 1 .083.018l.077-.29Zm.485-.004a.846.846 0 0 1-.483.005l-.082.288c.215.062.408.058.64-.003l-.075-.29Zm.661-.038a1.794 1.794 0 0 0-.66.038l.074.29c.17-.043.353-.053.55-.03l.036-.298Zm.034.005-.028-.004-.047.296.028.005.047-.297Zm.002 0-.052.296.052-.295Zm.055.009-.012-.002a2.415 2.415 0 0 1-.045-.007l-.048.297c.032.005.071.011.1.012l.005-.3Zm.213.435c.016.013.025.026.027.029l.007.01c.001.003.002.003 0 0a2.66 2.66 0 0 1-.101-.346l-.297.043a2.869 2.869 0 0 0 .123.422.3.3 0 0 0 .022.042.16.16 0 0 0 .031.034l.188-.234Zm.758.297c.011.002.017.004.008.001a13.676 13.676 0 0 1-.776-.306c-.011-.006 0 0 .015.012l-.198.225c.019.017.04.027.045.03l.035.016.098.043a13.761 13.761 0 0 0 .696.268c.008.002.026.008.044.01l.033-.299Zm.252.266a.256.256 0 0 0-.072-.188.298.298 0 0 0-.178-.077l-.037.297a.144.144 0 0 1 .018.004h.001s-.007-.003-.015-.01a.066.066 0 0 1-.016-.026c-.002-.006-.001-.007-.001 0h.3Zm-.33.306a.512.512 0 0 0 .212-.09.275.275 0 0 0 .118-.216h-.3c0-.03.018-.036 0-.023a.218.218 0 0 1-.087.034l.056.295Zm-.653.798c.121-.206.268-.41.401-.563.067-.076.128-.138.178-.181a.503.503 0 0 1 .06-.046c.018-.01.021-.01.013-.008l-.056-.295a.345.345 0 0 0-.114.047.799.799 0 0 0-.098.074c-.066.056-.137.13-.21.213a4.263 4.263 0 0 0-.433.607l.259.152Zm-.241.528c0-.018.011-.072.055-.173a3.41 3.41 0 0 1 .186-.355l-.259-.152a3.706 3.706 0 0 0-.202.387.803.803 0 0 0-.08.293h.3Zm.126.785a9.328 9.328 0 0 1-.088-.475 2.958 2.958 0 0 1-.038-.31h-.3c0 .067.018.207.042.357.024.154.057.335.09.491l.293-.063Zm-.198.129c.001-.001.011-.016.031-.03a.143.143 0 0 1 .128-.015c.043.016.064.046.068.053.006.009.008.015.007.013a1.657 1.657 0 0 1-.037-.15l-.293.064c.02.086.034.153.05.193a.229.229 0 0 0 .022.043.157.157 0 0 0 .223.048.182.182 0 0 0 .046-.045l-.245-.174Zm.631-.097c-.209 0-.336 0-.414.006a.516.516 0 0 0-.106.016.202.202 0 0 0-.106.07l.236.184a.1.1 0 0 1-.047.034l.043-.005c.066-.004.181-.005.394-.005v-.3Zm.486 0h-.486v.3h.486v-.3Zm.034-.21-.165.285.26.15.165-.286-.26-.15Zm.221-.085a.15.15 0 0 1-.082-.141c0-.017.004-.03.005-.032l.003-.01.001-.003s0 .003-.004.01a9.816 9.816 0 0 1-.144.261l.26.149a9.733 9.733 0 0 0 .165-.304.172.172 0 0 0 .013-.057.151.151 0 0 0-.082-.142l-.135.269Zm-.489-.03a21.94 21.94 0 0 1 .524.042h.001a.124.124 0 0 1-.025-.008c-.002 0-.027-.01-.05-.032l.212-.213a.154.154 0 0 0-.099-.045 22.3 22.3 0 0 0-.544-.043l-.019.3Zm-.602-.055a.148.148 0 0 0 .052.015.587.587 0 0 0 .048.005l.12.01.382.026.02-.3a37.405 37.405 0 0 1-.527-.038h-.006a.048.048 0 0 0 .004 0 .138.138 0 0 1 .042.014l-.135.268Zm.166-.636a27.233 27.233 0 0 0-.23.428.22.22 0 0 0-.013.033.16.16 0 0 0-.005.023c0 .003-.006.042.015.085l.269-.134c.02.042.015.081.014.084a.14.14 0 0 1-.008.035c-.001.003-.002.004 0 .002a25.765 25.765 0 0 1 .222-.41l-.264-.146Zm.234-.423-.234.423.263.145.234-.423-.263-.145Zm.633.005-.477-.08-.05.296.478.08.05-.296Zm.15.025-.15-.025-.05.296.15.025.05-.296Zm0 0-.05.296.05-.296Zm0 0-.05.296.05-.296Zm0 0-.05.296.05-.296Zm0 0-.05.296.05-.296Zm0 0-.05.296.05-.296Zm.391.067c-.028-.006-.194-.034-.39-.067l-.05.296c.202.034.359.06.381.065l.059-.294Zm-.058.006a.236.236 0 0 1-.014.023c-.002.002.004-.006.017-.014a.102.102 0 0 1 .045-.015h.007l-.053.295a.218.218 0 0 0 .16-.026.31.31 0 0 0 .098-.112l-.26-.15Zm.015-.033a.26.26 0 0 1-.017.036l.263.145a.551.551 0 0 0 .037-.081l-.283-.1Zm.291.066v-.01l-.3-.012v.01l.3.012Zm-.184.833c.165-.32.179-.699.184-.833l-.3-.012c-.005.14-.02.454-.15.706l.266.139Zm-.366.696.365-.696-.265-.14-.365.697.265.139Zm.017.41v-.48h-.3v.48h.3Zm-.234.15h.084v-.3h-.084v.3Zm.066-.145a.15.15 0 0 1-.088.136c-.014.006-.025.008-.027.009a.119.119 0 0 1-.012.002h.01l.051-.002v-.3a1.354 1.354 0 0 0-.095.004.193.193 0 0 0-.021.004.15.15 0 0 0-.118.147h.3Zm.014.073-.012-.07-.003-.018v-.003.018h-.3a.12.12 0 0 0 .001.012v.006l.001.005.002.01.003.022.013.07.295-.052Zm.015.085-.015-.085-.295.052.014.084.296-.051Zm-.009.287c.027-.035.03-.073.03-.077a.543.543 0 0 0-.002-.082 2.367 2.367 0 0 0-.019-.128l-.296.051a2.114 2.114 0 0 1 .02.132v-.01l.004-.02a.141.141 0 0 1 .023-.046l.24.18Zm-.24.08a.688.688 0 0 0 .154-.02.198.198 0 0 0 .035-.015.161.161 0 0 0 .06-.058l-.258-.154a.14.14 0 0 1 .07-.058h-.004a.394.394 0 0 1-.057.004v.3Zm-.107.001.11-.002-.006-.3-.11.002.006.3Zm.076.064.061-.16-.28-.107-.061.16.28.107ZM13.325 7.2c.239-.316.522-.772.636-1.025l-.274-.123a6.409 6.409 0 0 1-.601.967l.24.181Zm-.051.067.05-.066-.237-.183-.05.066.237.183Zm.063-.173-.119-.055-.126.272.118.055.126-.272Zm.523.545c-.124-.24-.318-.451-.524-.545l-.125.273c.127.058.279.21.383.41l.266-.138Zm.11.44c0-.089 0-.157-.018-.227-.017-.067-.05-.13-.091-.212l-.268.136c.047.092.061.122.068.15a.648.648 0 0 1 .009.152h.3Zm-.231.561a.171.171 0 0 0 .127-.07.285.285 0 0 0 .035-.062.758.758 0 0 0 .036-.126c.02-.09.033-.202.033-.304h-.3c0 .079-.011.17-.026.242a.467.467 0 0 1-.02.073c-.004.008-.003.004.003-.004 0 0 .031-.045.096-.048l.016.3Zm-.496.078.362-.056a43.084 43.084 0 0 0 .138-.021l.025-.005-.074-.29c.008-.003.013-.003.001-.001a7.058 7.058 0 0 1-.136.02c-.09.015-.216.034-.361.056l.045.297Zm-.232.035.232-.035-.045-.297-.232.036.045.296Zm-.817.1c.02.005.037.006.038.006a.209.209 0 0 0 .036-.002 37.005 37.005 0 0 0 .743-.104l-.045-.296a36.624 36.624 0 0 1-.724.101h-.006.006a.132.132 0 0 1 .034.006l-.082.289Zm-.288-.411a1.114 1.114 0 0 0 .17.32.396.396 0 0 0 .037.043.213.213 0 0 0 .068.044l.107-.28c.013.004.02.01.024.012l.006.004-.002-.002a.83.83 0 0 1-.123-.23l-.287.089Zm-.013-.042.013.043.286-.091-.014-.043-.285.091Zm0 .002.285-.095-.285.095Zm0-.003.286-.089-.287.09Zm-.026-.078.001.004.006.018.019.057.285-.09c-.011-.038-.027-.087-.035-.107l-.276.118Zm-.049.174c.083-.043.14-.069.175-.082l.018-.006c-.001 0-.019.003-.043-.002a.145.145 0 0 1-.109-.106l.291-.073a.156.156 0 0 0-.119-.115.185.185 0 0 0-.068 0 .406.406 0 0 0-.078.022c-.05.02-.118.051-.204.095l.137.267Zm-.888.32c.329-.075.572-.162.887-.32l-.135-.267a3.288 3.288 0 0 1-.818.294l.066.293Zm-2.154-.132a3.88 3.88 0 0 0 2.154.132l-.066-.293a3.58 3.58 0 0 1-1.986-.122l-.102.283Zm-.868-.43c.233.143.654.351.867.43l.103-.282a5.919 5.919 0 0 1-.812-.404l-.158.255Zm-1.233-1.09c.654.684.825.838 1.233 1.09l.158-.256c-.374-.23-.523-.36-1.174-1.042l-.217.208Zm-.368-.306a.727.727 0 0 1 .152.094c.05.041.11.101.217.212l.216-.208a2.982 2.982 0 0 0-.243-.236 1.023 1.023 0 0 0-.207-.13l-.135.268Zm-.247-.067c.06 0 .087.003.112.01a.757.757 0 0 1 .136.057l.133-.269a1.026 1.026 0 0 0-.193-.079.71.71 0 0 0-.188-.019v.3Zm-.295-.1a.23.23 0 0 0 .14.09c.045.01.099.01.155.01v-.3a1.224 1.224 0 0 1-.09-.003s.007.001.017.007a.07.07 0 0 1 .018.016l-.24.18Zm.08-.462a.511.511 0 0 0-.128.213.29.29 0 0 0 .046.246l.244-.174c-.002-.003-.001-.002 0 0v.002a.234.234 0 0 1 .058-.084l-.22-.203Zm.049.15a.146.146 0 0 1-.066-.112c-.001-.016.001-.027.001-.027 0-.004.001-.003-.002.004a.381.381 0 0 1-.006.018l-.003.006v.002l.137.06.137.061a.026.026 0 0 1 0-.001l.002-.004a.76.76 0 0 0 .03-.09.19.19 0 0 0 .003-.047c0-.011-.005-.08-.07-.122l-.163.251Zm-.248-.162.248.161.163-.251-.247-.161-.164.251Zm.757-1.773c-.156.165-.407.54-.593.88-.093.17-.175.341-.222.48a.726.726 0 0 0-.042.201c-.002.055.008.166.114.22l.137-.267c.058.03.048.084.049.056 0-.02.007-.057.027-.115.038-.113.11-.266.2-.431.182-.333.419-.681.548-.817l-.218-.207Zm.104-.154v.038c-.001.001-.001 0 0 0v-.001a3.223 3.223 0 0 1-.104.118l.218.205c.063-.067.116-.122.146-.174.04-.071.04-.134.04-.186h-.3Zm.287-.912a2.368 2.368 0 0 0-.198.46c-.05.158-.089.327-.089.452h.3c0-.078.027-.211.075-.361.047-.147.11-.295.17-.398l-.258-.153Zm.04-.037c.003.007 0 .003 0-.007a.074.074 0 0 1 0-.029c.002-.002.001 0-.006.015a1.293 1.293 0 0 1-.033.057l.257.154c.028-.047.058-.097.071-.144a.227.227 0 0 0-.014-.166l-.275.12Zm.308-.506a1.42 1.42 0 0 0-.27.226.273.273 0 0 0-.062.142.267.267 0 0 0 .025.14l.273-.124c-.004-.01.002-.001 0 .016s-.01.023-.002.013c.022-.027.077-.073.21-.169l-.174-.244Zm.762-.54a.138.138 0 0 1 .025-.045c.001-.002.001-.002-.002.001a5.346 5.346 0 0 1-.191.151c-.138.104-.34.25-.594.433l.175.244c.255-.183.458-.331.6-.437a5.647 5.647 0 0 0 .215-.172.327.327 0 0 0 .021-.022c.002-.001.024-.025.035-.059l-.284-.094Zm-.187.218a.955.955 0 0 1 .259-.048l.013.001s-.004 0-.01-.003a.115.115 0 0 1-.03-.017.138.138 0 0 1-.046-.15l.286.091a.162.162 0 0 0-.056-.178.204.204 0 0 0-.088-.038.515.515 0 0 0-.13-.003 1.254 1.254 0 0 0-.296.062l.098.283Zm-.915.064c.112.058.26.067.408.054.153-.014.328-.054.508-.118l-.1-.283c-.161.057-.312.09-.435.102a.492.492 0 0 1-.244-.022l-.137.267Zm-.252-.33c0 .055.026.102.038.122a.573.573 0 0 0 .059.079c.039.045.097.1.156.13l.135-.269h-.002a.412.412 0 0 1-.09-.094l-.002-.003s.006.014.006.035h-.3Zm.317-.15a1.745 1.745 0 0 0-.17-.003.158.158 0 0 0-.078.026.151.151 0 0 0-.07.127h.3a.149.149 0 0 1-.118.145h-.004H6.745c.024 0 .059.001.1.004l.022-.299Zm-.12-.025a1.515 1.515 0 0 1 .008.1v-.002a.088.088 0 0 1 .014-.026.114.114 0 0 1 .098-.047l-.022.3a.187.187 0 0 0 .167-.078.24.24 0 0 0 .042-.118c.005-.056-.004-.124-.008-.164l-.298.035Zm0-.004.3-.028-.3.028Zm-.008-.1c0 .034.005.074.009.104l.298-.035a.732.732 0 0 1-.007-.07h-.3Zm.157-.203a.152.152 0 0 0-.147.11.51.51 0 0 0-.01.092h.3a.345.345 0 0 1 .001-.019v-.001.003a.139.139 0 0 1-.02.05.148.148 0 0 1-.124.065v-.3Zm.117.032-.047-.017a1.055 1.055 0 0 0-.042-.013l-.028-.002v.3a.148.148 0 0 1-.042-.006c-.001 0-.002 0 0 0a.763.763 0 0 1 .056.02l.103-.282Zm0 0-.103.282.103-.282Zm0 0-.103.282.103-.282Zm0 0-.103.282.103-.282Zm0 0-.103.282.103-.282Zm0 0-.102.282.102-.282Zm0 0-.103.282.104-.281Zm.023.009-.023-.009-.103.282.023.008.103-.281Zm.578-.044c-.284.078-.474.08-.58.043l-.1.283c.195.069.46.045.76-.037l-.08-.29Zm.424-.091c-.088.01-.278.05-.425.09l.08.29c.14-.04.313-.075.378-.082l-.033-.298Zm.493.238a.17.17 0 0 0 .046-.098.158.158 0 0 0-.063-.143.183.183 0 0 0-.07-.031.28.28 0 0 0-.044-.006.956.956 0 0 0-.156.008 3.311 3.311 0 0 0-.216.033h-.001l.027.148.028.147h.004l.013-.003a3.672 3.672 0 0 1 .18-.027.712.712 0 0 1 .102-.007h-.003c-.002-.001-.022-.005-.044-.022a.142.142 0 0 1-.055-.128c.004-.045.03-.071.033-.076l.22.205Zm-.068.192c.016-.061.032-.11.046-.145.016-.04.025-.05.022-.046l-.219-.206a.452.452 0 0 0-.081.14c-.02.051-.04.113-.058.18l.29.077Zm-.045.165-.002.02a.13.13 0 0 1-.001.008.798.798 0 0 1 .012-.054 6.37 6.37 0 0 1 .036-.138l-.29-.078a6.603 6.603 0 0 0-.054.222l-.001.02h.3Zm-.055-.134-.048-.01-.013-.002a.457.457 0 0 0-.009-.002H8.29l-.005-.001-.016-.001v.3a.15.15 0 0 1-.022-.002h-.005.002a3.783 3.783 0 0 1 .06.012l.06-.294Zm0 0-.06.294.06-.294Zm.423.086-.423-.086-.06.294.425.086.058-.294Zm.5.086c.01-.002.008 0-.022-.002a1.672 1.672 0 0 1-.103-.014 8.74 8.74 0 0 1-.374-.07l-.06.294c.161.033.291.057.387.073.048.007.09.013.124.016a.397.397 0 0 0 .101-.001l-.054-.296Zm.307.235a.235.235 0 0 0-.102-.201.273.273 0 0 0-.21-.033l.062.294c.017-.004.004.004-.018-.011a.076.076 0 0 1-.027-.03.048.048 0 0 1-.005-.02h.3Zm-.298.31a.962.962 0 0 0 .201-.115.273.273 0 0 0 .071-.086.237.237 0 0 0 .026-.11h-.3c0-.004.001-.015.007-.026.005-.011.01-.014.005-.01a.287.287 0 0 1-.041.027 1.55 1.55 0 0 1-.095.047l.126.272Zm-.236.143c.061-.047.17-.113.237-.144l-.128-.272a1.94 1.94 0 0 0-.29.177l.18.24Zm-.586.614c.124-.178.426-.492.586-.614l-.181-.239c-.186.141-.51.478-.651.681l.246.172Zm-.078.122a.565.565 0 0 1 .078-.122l-.246-.172c-.053.075-.099.137-.12.21l.288.084Zm-.005.111c0-.084.001-.099.005-.11l-.288-.085c-.018.062-.017.128-.017.195h.3Zm.091.592a2.456 2.456 0 0 1-.09-.592h-.3c0 .194.044.48.102.677l.288-.085Zm.034.117-.034-.116-.288.083.034.117.288-.084Zm-.226-.169-.059.159.281.104.06-.158-.282-.105Zm.344-.655a2.661 2.661 0 0 0-.344.656l.282.103c.078-.215.177-.405.306-.584l-.244-.175Zm.152.05a.135.135 0 0 1-.083-.11.117.117 0 0 1 .003-.042l.003-.009a2.26 2.26 0 0 1-.074.11l.242.177c.046-.063.083-.117.103-.158A.206.206 0 0 0 9 3.629a.165.165 0 0 0-.107-.137l-.108.28Zm.014-.48a.2.2 0 0 0-.06.059.5.5 0 0 0-.068.256.22.22 0 0 0 .02.075c.014.03.042.07.095.09l.107-.28a.127.127 0 0 1 .07.064c.007.016.008.027.008.027l.003-.023a.202.202 0 0 1 .012-.037c.002-.005.003-.005 0-.002a.115.115 0 0 1-.031.028L8.8 3.293Zm.537-.482a19.32 19.32 0 0 1-.49.444c-.037.031-.05.04-.047.039l.157.256a.851.851 0 0 0 .084-.066 19.645 19.645 0 0 0 .501-.454l-.205-.219Zm.49-.46-.49.46.206.219.49-.461-.206-.219Zm-.048-.014v.122h.3v-.122h-.3Zm.186-.283c-.012.003-.041.008-.068.02a.186.186 0 0 0-.094.09.251.251 0 0 0-.022.093 1.231 1.231 0 0 0-.002.08h.3l.001-.06v-.003a.112.112 0 0 1-.062.074l-.007.003a.302.302 0 0 1 .013-.003l-.059-.294Zm.173-.015a1.15 1.15 0 0 0-.17.015l.053.295a.865.865 0 0 1 .117-.01v-.3Zm.102-.078a.628.628 0 0 1-.097.076l-.001.001h-.002a.07.07 0 0 1-.007 0l.01.3a.32.32 0 0 0 .155-.043.878.878 0 0 0 .143-.111l-.2-.223Zm.115.097a.147.147 0 0 1-.052-.14.115.115 0 0 1 .012-.035c.002-.004.002-.002-.006.007a.902.902 0 0 1-.07.073l.205.219c.036-.034.07-.07.095-.1a.363.363 0 0 0 .037-.052.183.183 0 0 0 .02-.054.155.155 0 0 0-.054-.152l-.187.234Zm-.098.01a1.058 1.058 0 0 1 .139.013l-.004-.002a.14.14 0 0 1-.05-.032l.213-.212a.16.16 0 0 0-.063-.039.631.631 0 0 0-.085-.018c-.04-.005-.09-.009-.143-.01l-.007.3Zm-.412.053c.215-.05.292-.059.409-.053l.014-.3c-.158-.007-.266.01-.49.061l.067.292Zm-.688.028c.186.063.374.047.689-.028l-.07-.292c-.305.073-.421.07-.522.036l-.097.284Zm.15-.405a.763.763 0 0 0-.181.073.264.264 0 0 0-.051.04.18.18 0 0 0-.051.102.167.167 0 0 0 .053.144.221.221 0 0 0 .08.046l.097-.284c-.004-.001.01.002.027.018.022.02.047.06.04.113a.121.121 0 0 1-.032.07c-.006.007-.01.008-.006.006a.497.497 0 0 1 .103-.039l-.079-.29Zm-.101-.367a.153.153 0 0 0-.197.129c-.004.035.005.065.007.07.006.02.016.043.024.06a8.203 8.203 0 0 0 .167.31l.008.013.001.003v.001h.001l.13-.075.13-.075a.402.402 0 0 1-.01-.016 8.4 8.4 0 0 1-.155-.287l-.009-.02.003.012c0 .004.003.019 0 .038a.147.147 0 0 1-.19.124l.09-.287Zm.581.028a.917.917 0 0 1-.273.037 1.253 1.253 0 0 1-.31-.065l-.087.287c.15.045.267.073.384.078.119.005.228-.013.36-.047l-.074-.29Zm5.127 2.108c-.002-.002-.011-.029-.035-.052a.151.151 0 0 0-.254.072l-.004.023c-.002.016-.003.038-.003.055l.3.012v-.03l-.002.012a.148.148 0 0 1-.15.111.15.15 0 0 1-.13-.09l.277-.113Zm-.005.154a.306.306 0 0 0 .014-.054.187.187 0 0 0-.008-.096l-.28.105a.126.126 0 0 1-.008-.057c0-.004 0-.003-.001.002l.283.1Zm-1.91-2.155a.153.153 0 0 0-.266.12c0 .011.002.02.003.028l.297-.043c0-.002 0-.002 0 0v.009l-.003.021a.148.148 0 0 1-.249.071l.218-.206Zm-.117.277c.009 0 .032 0 .059-.008.028-.01.089-.04.105-.115.013-.058-.011-.102-.017-.112a.223.223 0 0 0-.024-.035l-.23.193-.008-.013c-.002-.004-.025-.043-.014-.097a.144.144 0 0 1 .124-.113h.01l-.005.3Zm-1.86 2.229.146.035V4.05l.001-.003.003-.011.01-.043a18.56 18.56 0 0 1 .158-.611l-.289-.08a19.58 19.58 0 0 0-.16.62l-.01.044a1.254 1.254 0 0 0-.004.011v.004l.146.035Zm-.062-.223-.074.16.273.126.074-.161-.273-.125Zm.085-.443-.001.017a1.935 1.935 0 0 1-.03.196 3.041 3.041 0 0 1-.052.223l-.002.005v.002l.273.124a.809.809 0 0 0 .042-.136 3.345 3.345 0 0 0 .07-.431h-.3Zm0-.01v.009l.3.002v-.008l-.3-.002Zm.41-.892-.002-.001-.141.264.002.001.14-.264Zm-.154.257.012.007.013.006a.146.146 0 0 0 .017.006.15.15 0 0 0 .17-.222c-.01-.017-.022-.028-.023-.028l-.212.212a.148.148 0 0 1-.043-.12.15.15 0 0 1 .134-.135c.03-.003.053.004.057.005a.15.15 0 0 1 .029.012l.006.004h.002l-.162.253Zm-.69-.666-.086.122.002.002.006.004.023.016a133.157 133.157 0 0 1 .338.238c.185.13.382.268.407.284l.162-.252-.003-.002-.009-.006a4.288 4.288 0 0 1-.122-.085 173.645 173.645 0 0 1-.517-.364l-.083-.058-.024-.016c-.002-.002-.004-.004-.006-.004l-.001-.002-.087.123Zm.118.127.026-.084-.288-.086-.025.084.287.086Zm.678.26a9.846 9.846 0 0 1-.443-.215 2.292 2.292 0 0 1-.208-.12.325.325 0 0 1-.044-.034c-.002-.002.004.003.01.016a.127.127 0 0 1 .007.094l-.287-.087a.173.173 0 0 0 .013.128.24.24 0 0 0 .042.058.58.58 0 0 0 .09.073c.064.043.15.092.238.138.176.092.376.183.457.221l.125-.273Zm.041.018-.04-.019-.126.273.024.011a.358.358 0 0 1 .008.003l.002.002.132-.27Zm-2.396.228.036-.012a.165.165 0 0 0 .08-.055.154.154 0 0 0-.037-.225.243.243 0 0 0-.062-.029c-.057-.018-.181-.043-.397-.087l-.06.294c.228.047.33.068.367.08.011.003 0 .001-.015-.01-.006-.003-.036-.024-.053-.066a.146.146 0 0 1 .022-.143c.018-.023.039-.034.042-.036a.1.1 0 0 1 .008-.004h.003-.004a.741.741 0 0 1-.011.004l.081.289Zm-.212.06.216-.062-.09-.286a17.93 17.93 0 0 1-.207.06l.08.288Zm0 0-.082-.289.083.289Zm-.258.073.258-.073-.081-.289-.26.073.083.289Zm-.41.114.409-.114-.08-.29-.41.115.08.29ZM8 2.68l-.015.058.29.075.015-.057L8 2.681Zm.257-.494a.152.152 0 0 0-.126.066.424.424 0 0 0-.031.066A5.942 5.942 0 0 0 8 2.684l.292.07a5.64 5.64 0 0 1 .092-.336l.004-.01a.083.083 0 0 1-.01.016.148.148 0 0 1-.12.062v-.3Zm.414.079a34.854 34.854 0 0 0-.396-.078l-.018-.001v.3h-.011l-.005-.001H8.24h.003a1.491 1.491 0 0 1 .104.02l.265.054.06-.294Zm-.87.382-.043.152.289.08.042-.152-.289-.08Zm.052-.18c-.004.015-.027.095-.052.176l.287.088.054-.18-.289-.083Zm.149.167a.15.15 0 0 1-.148-.127.127.127 0 0 1 0-.032.097.097 0 0 1 .01-.033l.268.134a.203.203 0 0 0 .02-.111.15.15 0 0 0-.15-.13v.299Zm-.608.479.025-.02a24.022 24.022 0 0 1 .322-.236 62.422 62.422 0 0 1 .337-.244l.002-.002-.005.004a.14.14 0 0 1-.026.011c-.003.001-.022.008-.047.008v-.3a.151.151 0 0 0-.094.032 1.91 1.91 0 0 0-.105.075 61.314 61.314 0 0 0-.563.412l-.044.034.198.226Zm-.003-.288c-.04.01-.072.02-.094.024l-.014.003h.007a.135.135 0 0 1 .054.007.149.149 0 0 1 .075.224l-.25-.166a.151.151 0 0 0 .11.233c.021.003.04 0 .044 0a3.605 3.605 0 0 0 .145-.034l-.077-.29Zm.309-.087c-.091.024-.232.065-.312.088l.083.288c.081-.023.218-.063.305-.085l-.076-.29Zm.163-.044L7.7 2.74l.078.29.164-.045-.078-.29Zm3.213 1.635.053-.173-.287-.088-.053.174.287.087Zm-.136.667c.033-.255.076-.46.137-.668l-.288-.085a4.48 4.48 0 0 0-.146.715l.297.038Zm-.13.395a.852.852 0 0 0 .088-.18c.02-.063.032-.13.042-.215l-.297-.038a.853.853 0 0 1-.03.16.561.561 0 0 1-.06.118l.257.155Zm-.088.166a1.05 1.05 0 0 1 .028-.058l.061-.11-.259-.151c-.023.039-.047.082-.067.12a.748.748 0 0 0-.05.11l.287.089Zm-.365-.298c.002.074.004.137.007.187a.883.883 0 0 0 .015.129c.003.013.01.049.035.081a.158.158 0 0 0 .205.042c.042-.024.063-.06.07-.07a.475.475 0 0 0 .027-.056l-.275-.12a.278.278 0 0 1-.007.016l-.002.004-.001.001v-.001l.005-.006a.125.125 0 0 1 .034-.028.142.142 0 0 1 .183.036c.018.024.02.045.018.036a.635.635 0 0 1-.007-.081 7.413 7.413 0 0 1-.008-.18l-.3.01Zm.081-.978a3.83 3.83 0 0 0-.081.98l.3-.014a3.53 3.53 0 0 1 .074-.902l-.293-.064Zm.628-.346a.173.173 0 0 0-.146-.097.248.248 0 0 0-.1.015.551.551 0 0 0-.15.087.635.635 0 0 0-.232.34l.293.065a.344.344 0 0 1 .125-.169.265.265 0 0 1 .065-.04c.006-.002-.003.003-.022.001a.127.127 0 0 1-.103-.072l.27-.13Zm.054.111-.054-.112-.27.132.055.112.27-.132Zm-2.97.558a.657.657 0 0 1 .032.112.113.113 0 0 1-.004.047l.293.069a.41.41 0 0 0 .009-.155.918.918 0 0 0-.045-.169l-.284.096Zm-.125-.6c.002.146.06.406.126.6l.284-.096A2.18 2.18 0 0 1 8.325 4l-.3.005Zm.192.03a.903.903 0 0 1 .041-.093c.005-.009.003-.004-.005.005a.126.126 0 0 1-.038.026.142.142 0 0 1-.175-.045.117.117 0 0 1-.016-.031c-.002-.008-.002-.01 0 0 0 .018.002.051 0 .103l.3.006c.002-.053.001-.101-.002-.138a.304.304 0 0 0-.013-.064.183.183 0 0 0-.024-.05.16.16 0 0 0-.083-.06.163.163 0 0 0-.166.046.274.274 0 0 0-.04.056 1.156 1.156 0 0 0-.058.129l.28.11Zm-.154.691c0-.152.007-.25.028-.344a1.77 1.77 0 0 1 .124-.34l-.274-.123a2.056 2.056 0 0 0-.143.398 1.838 1.838 0 0 0-.035.41h.3Zm.02.33-.002-.009a3.163 3.163 0 0 1-.018-.32h-.3c0 .088.003.172.008.242a.851.851 0 0 0 .027.177l.285-.09ZM8.03 5.04h-.007.003a.1.1 0 0 1 .055.03c.013.013.017.023.015.02a.349.349 0 0 1-.01-.033l-.289.083c.006.021.013.044.022.064.008.02.022.05.048.075.06.061.135.06.163.06v-.3Zm.063 0H8.03v.3h.063v-.3Zm.15.414v-.264h-.3v.264h.3Zm-.181.414a.167.167 0 0 0 .147-.087.254.254 0 0 0 .028-.095c.006-.05.006-.125.006-.232h-.3c0 .113 0 .17-.004.197v.006c0-.001.002-.01.008-.022a.133.133 0 0 1 .114-.066v.3Zm.161-.035a2.169 2.169 0 0 1-.034-.084l-.007-.021s.01.058-.042.106a.13.13 0 0 1-.073.034H8.06v-.3c-.012 0-.075-.001-.127.047a.175.175 0 0 0-.05.154c.003.03.014.06.023.084.01.027.023.06.039.097l.276-.117Zm.309.833s-.005-.008-.008-.02a.147.147 0 0 1 .021-.12.148.148 0 0 1 .16-.06c.02.005.033.014.034.014.006.004 0 0-.024-.022a3.993 3.993 0 0 1-.369-.427 1.107 1.107 0 0 1-.123-.197l-.277.115c.033.079.095.172.16.26a4.288 4.288 0 0 0 .401.465.5.5 0 0 0 .073.06.173.173 0 0 0 .045.02c.01.004.107.028.167-.059a.153.153 0 0 0 .021-.129.192.192 0 0 0-.014-.036l-.267.136Zm-.398-1.57c-.023.232.036.538.116.817.081.285.19.563.28.75l.27-.13a4.662 4.662 0 0 1-.261-.702c-.078-.273-.124-.533-.106-.705l-.299-.03Zm.045-.333a3.96 3.96 0 0 0-.045.333l.299.03a3.93 3.93 0 0 1 .039-.297l-.293-.066Zm4.802.704a.56.56 0 0 0 .038-.162.55.55 0 0 0-.024-.16l-.29.073a.303.303 0 0 1 .014.075.32.32 0 0 1-.021.076l.283.098Zm-.013.038.013-.037-.283-.1-.014.043.284.094Zm.002-.006-.288-.082.288.082Zm0 .003-.287-.088.286.088Zm-.141.297a.554.554 0 0 0 .089-.154c.02-.05.038-.103.05-.14l-.284-.094a1.81 1.81 0 0 1-.066.168.216.216 0 0 1-.009.015l-.004.005.224.2Zm-.37.038a.196.196 0 0 0 .05.066.164.164 0 0 0 .187.02.296.296 0 0 0 .07-.056c.018-.017.038-.04.062-.067l-.222-.201a2.337 2.337 0 0 1-.064.068c-.001.001.004-.004.014-.009a.136.136 0 0 1 .17.041l-.004-.006-.263.144Zm-.092-1.113c-.035.182-.04.4-.026.598.015.192.051.388.117.513l.265-.14a1.17 1.17 0 0 1-.083-.396 2.088 2.088 0 0 1 .022-.519l-.295-.056Zm.295-.657a.151.151 0 0 0-.136.085 1.046 1.046 0 0 0-.03.082 4.97 4.97 0 0 0-.128.49l.294.056a4.801 4.801 0 0 1 .131-.492l-.001.002a.14.14 0 0 1-.039.046.149.149 0 0 1-.09.03v-.3Zm.18.3a7.672 7.672 0 0 0-.029-.17.27.27 0 0 0-.007-.024.15.15 0 0 0-.144-.106v.3a.15.15 0 0 1-.13-.077c-.007-.011-.01-.02-.01-.022l-.001-.004a6.022 6.022 0 0 1 .025.15l.296-.047Zm.153.776a9.763 9.763 0 0 1-.153-.774l-.297.042c.028.2.112.624.16.808l.29-.076Zm-6.066-.21-.137-.467-.288.085.137.467.288-.084Zm-.485-.373a.504.504 0 0 0 .018.068l.025.06a6.597 6.597 0 0 0 .155.336l.006.012a.875.875 0 0 1 .002.005l.135-.065.135-.065-.002-.004-.006-.012a20.007 20.007 0 0 1-.15-.325 1.33 1.33 0 0 1-.023-.06c-.002-.004.002.005.003.019l-.298.031Zm.122-.177-.055.036.164.251.055-.036-.164-.25Zm1.124.957c.056 0 .11-.003.15-.007a.485.485 0 0 0 .061-.009.205.205 0 0 0 .043-.014.153.153 0 0 0 .089-.139h-.3a.147.147 0 0 1 .08-.132.114.114 0 0 1 .02-.007h-.005a1.318 1.318 0 0 1-.137.007v.3Zm-.192 0h.192v-.3h-.192v.3Zm-.523.008L7.5 5.34l-.005-.3-.525.008.004.3Zm.262-.433-.226.094a1.542 1.542 0 0 0-.112.056.193.193 0 0 0-.025.018c-.003.004-.034.03-.046.076l.29.077a.146.146 0 0 1-.042.07l-.013.01.006-.003c.012-.007.033-.016.062-.029l.22-.092-.114-.277Zm0 0 .115.277-.116-.277Zm-.001 0 .116.277-.116-.277Zm.002 0 .112.278-.112-.279Zm.015-.006.082.289-.082-.289Zm.088-.037-.104.043.114.277.104-.043-.114-.277Zm.587.094c-.03-.04-.072-.054-.082-.057a.361.361 0 0 0-.05-.014 1.164 1.164 0 0 0-.11-.015 6.355 6.355 0 0 0-.28-.02l-.016.3c.1.005.194.011.266.018a.887.887 0 0 1 .08.01l.008.003a.13.13 0 0 1-.051-.04l.235-.185Zm.104.205c0-.034-.012-.06-.012-.062a.549.549 0 0 0-.032-.058 1.258 1.258 0 0 0-.058-.083l-.239.181a.971.971 0 0 1 .053.078l-.002-.005a.123.123 0 0 1-.007-.026.145.145 0 0 1-.003-.025h.3Zm-.721-.015.08.004.015-.3-.08-.003-.015.3Zm-.428-.06c.03.022.061.03.067.03a1.419 1.419 0 0 0 .127.016c.065.006.149.01.234.014l.015-.3-.227-.012a1.149 1.149 0 0 1-.067-.007l-.01-.002.008.003a.13.13 0 0 1 .033.018l-.18.24Zm.676-.392-.616.125.06.294L7.618 5l-.06-.294Zm.235-.047-.235.047.06.294.235-.047-.06-.294Zm-.339.492c.105-.043.212-.088.294-.127.041-.02.08-.038.11-.056a.392.392 0 0 0 .074-.058.167.167 0 0 0 .035-.065l-.289-.08a.133.133 0 0 1 .039-.062 1.124 1.124 0 0 1-.095.05 7.518 7.518 0 0 1-.282.12l.114.278Zm-.712.434.137.216.253-.161-.137-.216-.253.161Zm-.058-.35c.026.061.034.1.034.27h.3c0-.181-.008-.27-.058-.387l-.276.118Zm.07-.043a.148.148 0 0 1-.11-.05l-.007-.01a1.624 1.624 0 0 1 .046.102l.278-.114a1.909 1.909 0 0 0-.067-.143.166.166 0 0 0-.046-.053.153.153 0 0 0-.093-.032v.3Zm.078.135.046-.177.013-.046.002-.004-.007.014a.145.145 0 0 1-.046.052.15.15 0 0 1-.085.026v-.3a.15.15 0 0 0-.143.102 1.97 1.97 0 0 0-.023.078l-.048.18.29.075Zm0 0-.29-.076.29.076Zm-.095.359.095-.359-.29-.076-.095.356.29.079Zm-.159.58.159-.58-.29-.08-.158.58.29.08Zm-.03-.158-.063-.023-.103.282.063.023.104-.282Zm.303.16a4.017 4.017 0 0 0-.175-.099 1.16 1.16 0 0 0-.129-.061l-.1.282.006.003a.67.67 0 0 1 .082.041c.048.026.105.058.161.092l.155-.258Zm.171.106a.13.13 0 0 1 .03.003l.006.002-.007-.003a2.981 2.981 0 0 1-.202-.108l-.152.258a3.268 3.268 0 0 0 .236.126l.03.012c.006.001.03.01.06.01v-.3ZM6.91 6.29c.01.041.016.075.02.101a.22.22 0 0 1 .002.047c-.001.007-.001-.01.018-.032a.1.1 0 0 1 .072-.034v.3a.2.2 0 0 0 .153-.067.238.238 0 0 0 .054-.131.773.773 0 0 0-.027-.253l-.292.069Zm-.05-.382c.002.112.025.282.05.385l.292-.075c-.02-.079-.04-.226-.042-.317l-.3.007Zm-.004-.186.004.186.3-.007-.004-.186-.3.007Zm4.376.815a2.195 2.195 0 0 1-.257-.672l-.295.058c.052.263.147.509.291.762l.261-.148Zm.088.395a.15.15 0 0 0 .035-.16 1.153 1.153 0 0 0-.038-.082 4.416 4.416 0 0 0-.085-.154l-.26.15a4.29 4.29 0 0 1 .098.183c.002.004.002.003 0 0a.128.128 0 0 1-.006-.056.149.149 0 0 1 .043-.092l.213.211Zm-.435.068c.028.015.055.018.06.02h.028l.043-.001a1.31 1.31 0 0 0 .23-.043.174.174 0 0 0 .068-.038l-.2-.223a.134.134 0 0 1 .03-.02l.005-.003a.99.99 0 0 1-.174.028l.008.001.014.003a.139.139 0 0 1 .034.014L10.885 7Zm-.296-.575a4.633 4.633 0 0 0 .2.461.646.646 0 0 0 .048.073.18.18 0 0 0 .04.036l.162-.252c.018.01.027.022.027.023.002.002.003.003.002.001A1.91 1.91 0 0 1 11 6.635a4.335 4.335 0 0 1-.129-.311l-.282.102Zm-.163-.739a.283.283 0 0 0-.005.08 2.29 2.29 0 0 0 .045.247c.03.13.076.283.123.413l.282-.104a3.69 3.69 0 0 1-.145-.53.516.516 0 0 1-.006-.045c0-.014.002-.007-.002.007l-.292-.068Zm.113-.266c-.026.051-.05.105-.07.15a.76.76 0 0 0-.044.12l.294.062.005-.013a3.424 3.424 0 0 1 .084-.187l-.27-.132Zm.086-.18-.087.18.27.13.087-.179-.27-.13Zm.301.261-.017-.207-.299.024.017.207.3-.024Zm.048.36a3.11 3.11 0 0 1-.048-.359l-.299.022c.009.118.03.297.054.402l.293-.065Zm1.365.096c.02.01.032.017.041.023.01.006.01.007.007.004a.099.099 0 0 1-.026-.078l.297.035a.201.201 0 0 0-.063-.173.503.503 0 0 0-.119-.077l-.137.266Zm-.334-.008.078.128.002-.001a.56.56 0 0 1 .04-.023c.026-.014.062-.033.1-.05a.577.577 0 0 1 .105-.036c.036-.007.031.001.01-.009l.135-.268a.318.318 0 0 0-.208-.016.869.869 0 0 0-.162.055 1.606 1.606 0 0 0-.174.09l-.003.001-.001.001.078.128Zm.3.233a.124.124 0 0 1 .06.014l.002.002-.004-.003a1.426 1.426 0 0 1-.223-.311l-.27.13a1.707 1.707 0 0 0 .271.384.426.426 0 0 0 .053.045c.012.009.054.039.11.039v-.3Zm.087-.106a2.689 2.689 0 0 1-.148.12c-.004.001-.003.001 0 0a.102.102 0 0 1 .012-.006c.004-.001.023-.008.049-.008v.3a.159.159 0 0 0 .077-.02.917.917 0 0 0 .078-.053c.036-.028.081-.065.128-.105l-.196-.228Zm.166.05.01.001s-.012-.003-.028-.015a.124.124 0 0 1-.045-.073.112.112 0 0 1 .004-.063c.005-.012.007-.009-.016.015-.02.021-.049.049-.091.086l.197.226c.045-.04.083-.075.113-.107a.363.363 0 0 0 .077-.112.188.188 0 0 0 .01-.106.176.176 0 0 0-.066-.104.262.262 0 0 0-.136-.047l-.029.299Zm-.198-.219a.187.187 0 0 0 .062.17.2.2 0 0 0 .079.04.41.41 0 0 0 .055.008l.033-.298-.014-.002s.019.005.039.021c.024.02.037.048.042.07.004.018.002.029.002.024l-.298-.033Zm-.084.639.055-.038-.171-.247-.055.038.171.247Zm-.749.275c.04.032.082.033.09.033a.157.157 0 0 0 .056-.008 7.509 7.509 0 0 0 .603-.3l-.17-.247a8.586 8.586 0 0 1-.517.258l-.006.002.015-.003a.143.143 0 0 1 .029-.002c.007 0 .048.001.088.033l-.188.234Zm.064-.581a23.903 23.903 0 0 0-.116.425l-.004.02v.024c0 .006 0 .017.004.03.002.01.01.042.04.07l.212-.211a.15.15 0 0 1 .043.098V6.723c0-.002 0-.008.003-.018l.023-.088.083-.294-.288-.082Zm.123-.193-.102.148.246.171.103-.148-.247-.17Zm.303.01a1.273 1.273 0 0 1-.065-.018c-.005-.002-.005-.002 0 0 .003.004.011.011.018.024l-.265.14a.254.254 0 0 0 .131.113c.039.016.082.026.11.033l.071-.291Zm.212.099a.316.316 0 0 0-.117-.071c-.034-.013-.07-.021-.095-.027l-.071.291a.645.645 0 0 1 .063.018c.016.005.014.007.008 0l.212-.211Zm.123.123-.123-.123-.212.212.122.122.213-.211Zm-1.09.074a14.144 14.144 0 0 1-.109.322l-.007.019c0 .001 0 .001 0 0l.003-.007a.132.132 0 0 1 .013-.018l.234.188c.012-.015.02-.03.02-.032l.006-.015.012-.029c.008-.022.019-.05.03-.084.024-.067.053-.157.084-.251l-.285-.093Zm.132.195a.178.178 0 0 1 .024-.064.155.155 0 0 1 .03-.038c.003-.002-.005.005-.024.01a.13.13 0 0 1-.122-.036c-.037-.038-.035-.08-.035-.08 0-.006 0-.002-.005.015l.287.089a.358.358 0 0 0 .018-.098.187.187 0 0 0-.051-.137.17.17 0 0 0-.165-.044.238.238 0 0 0-.086.043.484.484 0 0 0-.168.296l.297.044Zm-.221.11a.143.143 0 0 1 .212.014c.006.008.01.015.011.019.004.008.002.006-.001-.015a.528.528 0 0 1-.001-.13l-.297-.04c-.01.071-.008.151 0 .212a.364.364 0 0 0 .027.098.173.173 0 0 0 .072.08.157.157 0 0 0 .19-.027l-.213-.212Zm-2.194.124c.017-.016.026-.033.027-.035a.239.239 0 0 0 .02-.042l.026-.07a6.42 6.42 0 0 0 .07-.204l-.286-.093a6.17 6.17 0 0 1-.094.266l.002-.004a.122.122 0 0 1 .023-.03l.212.212Zm-.272.005a.456.456 0 0 0 .096.036.243.243 0 0 0 .06.007c.013 0 .08-.001.127-.06l-.234-.187a.14.14 0 0 1 .101-.053l.015.001a.165.165 0 0 1-.03-.012l-.135.268Zm-.188-.248a.411.411 0 0 0 .062.15c.038.05.086.078.124.097l.138-.266c-.031-.016-.027-.018-.02-.01l-.001-.003a.381.381 0 0 1-.012-.04l-.291.072Zm.043-.314c-.023.039-.054.09-.062.152-.008.06.008.119.019.162l.291-.072a.764.764 0 0 1-.012-.05v-.001c-.001.006-.003.009 0 .002a.597.597 0 0 1 .023-.043l-.26-.15Zm.372-.29a.606.606 0 0 0-.371.289l.258.152a.308.308 0 0 1 .185-.15l-.072-.292Zm.287.197a.165.165 0 0 0 .008-.102.156.156 0 0 0-.08-.102.168.168 0 0 0-.074-.018.316.316 0 0 0-.068.008l-.072.016.07.292.062-.015c.018-.003.014-.001.002-.001a.144.144 0 0 1-.132-.11c-.007-.03-.002-.055 0-.06l.002-.008.282.1Zm-.061.183a40.594 40.594 0 0 1 .055-.164l.003-.01-.276-.118a1.354 1.354 0 0 0-.025.071l-.042.127.285.094Zm-.039.117.039-.117-.285-.094-.039.116.285.095Zm.252-.1c.029.124.086.276.162.425l.268-.136a1.675 1.675 0 0 1-.138-.357l-.292.067Zm.023-.076a.093.093 0 0 1-.037-.021c-.012-.012-.016-.022-.015-.02a1.602 1.602 0 0 1 .028.112l.294-.06a.899.899 0 0 0-.048-.173.238.238 0 0 0-.054-.079.207.207 0 0 0-.087-.048l-.08.29Zm.037.07a1.763 1.763 0 0 1 .038-.116l-.006.007a.104.104 0 0 1-.073.035h-.011l.016.004.08-.289c-.02-.005-.057-.016-.098-.014a.194.194 0 0 0-.141.069.33.33 0 0 0-.055.101 2.003 2.003 0 0 0-.038.117l.288.086Zm-.07.222.07-.221-.288-.088-.067.22.286.089Zm-.038.126.039-.127-.287-.089-.039.127.287.09Zm-.051.163.05-.163-.286-.089-.05.163.286.09Zm.102-.147-.215-.044-.06.294.215.044.06-.294Zm.308.055a4.95 4.95 0 0 1-.309-.055l-.059.294c.114.023.267.052.337.06l.031-.3Zm.112.013-.11-.013-.034.298.11.013.034-.298Zm-.261-.002.11.218.267-.135-.11-.217-.267.135Zm.653-.496-.22-.106-.13.27.22.106.13-.27Zm-.05.344.097-.11-.225-.198-.097.11.225.198Zm-.104.159a.664.664 0 0 1 .103-.158l-.223-.2a.927.927 0 0 0-.163.257l.283.101Zm-.084.167c.021-.021.034-.047.036-.051a1.546 1.546 0 0 0 .048-.116l-.283-.101a1.247 1.247 0 0 1-.032.08l.001-.002a.107.107 0 0 1 .018-.022l.212.212Zm-.53-.742c0 .034.007.07.014.1.008.034.018.07.03.107a2.968 2.968 0 0 0 .191.44.48.48 0 0 0 .055.08c.008.01.03.032.063.047a.156.156 0 0 0 .183-.038l-.224-.2a.144.144 0 0 1 .165-.035.122.122 0 0 1 .036.025l-.018-.028a2.672 2.672 0 0 1-.19-.467c-.005-.024-.005-.033-.005-.031h-.3Zm.547-.034c-.126-.06-.219-.101-.282-.12a.272.272 0 0 0-.125-.014.169.169 0 0 0-.14.168h.3a.13.13 0 0 1-.029.08.131.131 0 0 1-.08.048c-.027.005-.04-.004-.015.004.04.012.113.044.243.105l.128-.271Zm.88.6c-.019 0-.148.01-.276.02l.023.3.177-.014.075-.005v-.3Zm-.579-.102c.111.068.242.16.34.233.05.038.087.069.109.088.012.012.011.013.006.005a.14.14 0 0 1-.023-.076.147.147 0 0 1 .131-.147l.03.299a.153.153 0 0 0 .125-.218.17.17 0 0 0-.016-.028.344.344 0 0 0-.05-.055 1.84 1.84 0 0 0-.13-.107 4.712 4.712 0 0 0-.366-.25l-.156.256Zm-.074-.065a.147.147 0 0 1-.046-.007l-.009-.003h.002a2.998 2.998 0 0 1 .126.074l.158-.254a3.345 3.345 0 0 0-.166-.095.195.195 0 0 0-.015-.006c-.001 0-.022-.009-.05-.009v.3Zm.018.045a2 2 0 0 1 .073-.076l-.003.003-.014.008a.145.145 0 0 1-.074.02v-.3a.152.152 0 0 0-.094.033 2.304 2.304 0 0 0-.11.11l.222.202Zm-.143.247a.545.545 0 0 1 .142-.246l-.22-.205a.837.837 0 0 0-.216.396l.294.055Zm-.012.067.012-.066-.294-.057-.013.066.295.057Zm.076-.166-.215-.012-.017.3.215.012.017-.3Zm.44-.006c-.13.008-.33.012-.44.006l-.016.3c.126.007.339.002.475-.007l-.019-.299Z"}),(0,h.jsx)("path",{fill:"#0091C8",d:"M15.055 8.714v2.576H4.67V8.556c.01.043.17.097.282.14.205.077.22.077.42-.065.27-.19.44-.185.747.022.46.311.583.317.72.044.103-.213.333-.213.727.005.17.093.343.164.394.164.046 0 .159-.087.246-.191.194-.24.307-.224.808.087.404.257.542.273.583.06.057-.267.103-.31.338-.31.143.005.358.07.578.18.19.098.384.174.42.174.04 0 .086-.076.107-.17a.453.453 0 0 1 .138-.245c.138-.092.281-.054.732.191.45.24.578.218.578-.103 0-.099.097-.164.245-.164.046 0 .236.098.425.224.41.261.522.261.557-.006.036-.273.205-.278.645-.033.327.191.695.268.695.154Z"}),(0,h.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:.5,d:"M4.709 8.65c.01.043.117.108.23.152.204.076.219.076.418-.066.27-.19.439-.185.745.022.459.311.581.317.72.044.101-.213.33-.213.724.005.168.093.342.164.393.164.046 0 .158-.087.245-.191.193-.24.306-.224.806.087.403.257.54.273.581.06.057-.267.102-.31.337-.31.143.005.357.07.577.18.189.098.383.174.418.174.041 0 .087-.076.107-.17a.453.453 0 0 1 .138-.245c.138-.092.28-.054.73.191.449.24.576.219.576-.103 0-.099.097-.164.245-.164.046 0 .235.098.424.224.408.262.52.262.556-.006.036-.273.204-.278.643-.033.326.191.633.257.633.142"})]}),Me=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"CC_-_Cocos_(Keeling)_Islands_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#CC_-_Cocos_(Keeling)_Islands_svg__a)",children:[(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"m12 3.5-.5.366.067-.616L11 3l.567-.25-.067-.616.5.366.5-.366-.067.616L13 3l-.567.25.067.616L12 3.5ZM11.481 6.84l-.5.365.067-.616-.567-.25.567-.25-.067-.616.5.366.5-.366-.066.616.566.25-.566.25.066.616-.5-.366ZM13 9.5l-.5.366.067-.616L12 9l.567-.25-.067-.616.5.366.5-.366-.067.616L14 9l-.567.25.067.616L13 9.5ZM13.5 4.75l-.25.183.034-.308L13 4.5l.284-.125-.034-.308.25.183.25-.183-.034.308L14 4.5l-.284.125.034.308-.25-.183ZM3.5 7a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#915E2B",d:"m3.245 5.994-.18-.127c.397-.52.292-1.246.18-1.724l.73-.172c.167.712-.205 1.334-.73 2.023Z"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M9.949 7.472c-.33.565-.852.822-1.552.822a1.897 1.897 0 0 1 0-3.794c.8 0 1.437.28 1.73 1.041-.232-.23-.59-.387-1.127-.367-.828 0-1.367.645-1.367 1.198 0 .552.539 1.303 1.367 1.303.417-.006.724-.083.949-.203Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M3.5 4.37c.828 0 1.357-.224 1.357-.5s-.529-.5-1.357-.5-1.258.224-1.258.5.43.5 1.258.5Z",clipRule:"evenodd"})]})]}),be=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"VG_-_Virgin_Islands_(British)_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#VG_-_Virgin_Islands_(British)_svg__a)",children:[(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsxs)("g",{clipPath:"url(#VG_-_Virgin_Islands_(British)_svg__b)",children:[(0,h.jsx)("path",{fill:"#2E42A5",d:"M0 0h9v7H0z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"m-1.002 6.5 1.98.869L9.045.944l1.045-1.29-2.118-.29-3.29 2.768-2.649 1.865L-1.002 6.5Z"}),(0,h.jsx)("path",{fill:"#F50100",d:"m-.731 7.108 1.009.505 9.436-8.08H8.298L-.731 7.109Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"m10.002 6.5-1.98.869L-.045.944-1.09-.346l2.118-.29 3.29 2.768 2.649 1.865L10.002 6.5Z"}),(0,h.jsx)("path",{fill:"#F50100",d:"m9.935 6.937-1.01.504-4.018-3.46-1.19-.386L-1.19-.342H.227L5.13 3.502l1.303.463 3.502 2.972Z"}),(0,h.jsx)("path",{fill:"#F50100",fillRule:"evenodd",d:"M4.992 0h-1v3H0v1h3.992v3h1V4H9V3H4.992V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M3.242-.75h2.5v3H9.75v2.5H5.742v3h-2.5v-3H-.75v-2.5h3.992v-3ZM3.992 3H0v1h3.992v3h1V4H9V3H4.992V0h-1v3Z",clipRule:"evenodd"})]}),(0,h.jsx)("path",{fill:"#3B7E05",fillRule:"evenodd",stroke:"#F7FCFF",strokeWidth:.25,d:"M10.123 5.016v3.265s-.048 2.701 2.441 2.701c2.49 0 2.49-2.701 2.49-2.701V5.016h-4.93Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFD018",fillRule:"evenodd",d:"m10.118 9.944.397-.398c.62.766 1.272 1.138 1.965 1.138.693 0 1.344-.372 1.963-1.138l.226.227.01-.015c.137.117.229.227.272.353a.421.421 0 0 1-.171.51.97.97 0 0 1-.104.058.26.26 0 0 1-.202.022.29.29 0 0 1-.187-.173c-.562.498-1.166.75-1.807.75-.636 0-1.235-.248-1.793-.737a.29.29 0 0 1-.19.168.26.26 0 0 1-.201-.026.957.957 0 0 1-.103-.06.421.421 0 0 1-.162-.512.526.526 0 0 1 .095-.158l-.008-.009Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",d:"m10.515 9.546.058-.047-.052-.065-.059.06.053.052Zm-.397.398-.053-.053-.047.048.042.053.058-.048Zm4.325-.398.053-.053-.059-.059-.052.065.058.047Zm.226.227-.053.053.064.064.051-.075-.062-.042Zm.01-.015.048-.057-.064-.054-.047.07.063.041Zm.272.353.071-.024-.07.024Zm-.171.51-.04-.064.04.063Zm-.104.058-.031-.068.031.068Zm-.202.022.02-.072-.02.072Zm-.187-.173.07-.028-.04-.098-.08.07.05.056Zm-3.6.013.049-.056-.077-.068-.041.094.069.03Zm-.19.168-.018-.072.019.072Zm-.201-.026.032-.067-.032.067Zm-.103-.06-.04.063.04-.063Zm-.162-.512.07.026-.07-.026Zm.095-.158.057.048.04-.047-.04-.048-.057.047Zm.336-.46-.397.398.107.106.396-.398-.106-.106Zm2.018 1.116c-.663 0-1.295-.355-1.907-1.11l-.116.094c.628.776 1.3 1.166 2.023 1.166v-.15Zm1.905-1.11c-.61.755-1.243 1.11-1.905 1.11v.15c.724 0 1.394-.39 2.021-1.165l-.116-.095Zm.337.22-.226-.226-.106.106.226.227.106-.106Zm-.106-.003-.01.015.125.084.01-.015-.125-.084Zm.406.37c-.05-.144-.153-.264-.295-.385l-.097.115c.134.113.213.211.25.32l.142-.05Zm-.203.598a.496.496 0 0 0 .203-.597l-.142.049a.347.347 0 0 1-.14.421l.08.127Zm-.111.063c.033-.016.07-.036.111-.063l-.08-.127a.884.884 0 0 1-.095.054l.064.136Zm-.255.027a.326.326 0 0 0 .255-.027l-.063-.136a.269.269 0 0 1-.076.025.177.177 0 0 1-.075-.007l-.04.145Zm-.235-.217c.043.106.13.187.235.217l.041-.145a.216.216 0 0 1-.137-.13l-.14.058Zm-1.738.797c.663 0 1.283-.262 1.857-.77l-.1-.112c-.551.488-1.138.732-1.757.732v.15Zm-1.843-.756c.57.498 1.186.756 1.843.756v-.15c-.614 0-1.196-.24-1.744-.72l-.099.114Zm-.12.184a.365.365 0 0 0 .238-.21l-.137-.061a.216.216 0 0 1-.14.126l.039.145Zm-.254-.031a.326.326 0 0 0 .254.031l-.039-.145a.18.18 0 0 1-.075.005.269.269 0 0 1-.075-.026l-.065.135Zm-.11-.065c.041.027.077.049.11.065l.065-.135a.87.87 0 0 1-.094-.056l-.082.126Zm-.193-.6a.496.496 0 0 0 .192.6l.082-.126a.347.347 0 0 1-.133-.423l-.141-.052Zm.108-.181a.602.602 0 0 0-.108.18l.14.052a.454.454 0 0 1 .083-.136l-.115-.096Zm-.008.087a.76.76 0 0 0 .008.008l.116-.094-.007-.009-.117.095Z"}),(0,h.jsx)("path",{fill:"#FFD018",d:"m11.066 7.324-.038-.164V5.771a.375.375 0 0 1 .75 0v1.303l.36.74a.375.375 0 0 1-.083.439l-.413.383v.72a.375.375 0 1 1-.75 0v-.884c0-.105.043-.205.12-.276l.33-.304-.276-.568Z"}),(0,h.jsx)("path",{stroke:"#FFD018",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:.75,d:"M13.626 5.75v3.702"}),(0,h.jsx)("path",{fill:"#FFC6B5",fillRule:"evenodd",d:"m12.32 6.293-.168.547s-.282.364-.334.543c-.052.178-.08.297-.066.297.014 0 .13-.05.13-.174 0-.123.438-.52.438-.52l.13-.693h-.13Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFD018",fillRule:"evenodd",d:"M13.686 5.434a.058.058 0 0 0 .006-.026c0-.03-.022-.054-.05-.054-.027 0-.05.024-.05.054 0 .013.004.025.011.034l-.189.293.02.016.189-.293a.047.047 0 0 0 .046-.004l.199.297.02-.016-.202-.3Zm-.007.254a.057.057 0 0 0 .013-.037c0-.03-.022-.054-.05-.054-.027 0-.05.025-.05.054 0 .019.008.035.021.044l-.047.057h-.321s.035.081.144.102c.034.032.12.091.12.091l-.05.06h.347v-.06c.084 0 .116-.067.127-.09.005-.01.006-.013.006 0 0 .042.062 0 .062 0s.102-.103.102-.2c0-.096-.214.097-.214.097h-.145l-.065-.064Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFC6B5",fillRule:"evenodd",d:"M12.73 6.074a.06.06 0 0 1 .008.028c0 .032-.133.078-.23.078-.096 0-.058-.078 0-.121.059-.043-.004-.118-.058-.118-.051 0-.051-.072-.051-.13V5.576c0-.091.025-.08.072-.06a.26.26 0 0 0 .105.027c.072 0 .076.017.087.061.006.028.015.065.044.116.045.08.035.1.021.128-.01.02-.021.044-.021.093 0 .084.014.113.023.133Zm.12.58.027-.307s-.028-.113.038-.113c.067 0 .17.538.207.754.024.138.002.163-.06.237a1.365 1.365 0 0 0-.146.2c-.102.168-.096.266-.09.341.003.05.005.09-.025.133-.072.1-.101.006-.13-.087a1.194 1.194 0 0 0-.006-.02c-.027-.087.097-.348.182-.526l.03-.065c.08-.17.073-.23.038-.302-.034-.072-.066-.245-.066-.245Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFD018",fillRule:"evenodd",d:"M13.01 9.685c0 .078-.06.141-.134.141-.073 0-.133-.063-.133-.141 0-.078.06-.142.133-.142.074 0 .134.064.134.142Zm-.71.04c-.06.05-.133.061-.163.025s-.006-.106.054-.156.132-.062.163-.026c.03.036.006.106-.054.156Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#A95601",fillRule:"evenodd",d:"M12.476 5.392s-.14.029-.093.098c.046.07-.06.052.093.06.152.01.194.065.173.106-.02.041-.037.143 0 .205.038.062.05.169.116.115.066-.053.192-.127.153-.223-.038-.097.016-.209-.069-.263-.085-.054-.104-.021-.152-.098-.048-.076-.12-.097-.17-.049l-.051.05Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M12.448 6.089s-.279.336-.233.454c.045.118.114.125.08.293-.035.168.02.428-.08.76-.1.33-.167 1.107-.134 1.107s.079.429.04.621c-.04.193-.315.354-.04.354s.308.038.418 0c.11-.038.266.11.266 0s.012-.132.096-.132h.154c.074 0 .172.069.172-.095s.018-.517-.077-.79c-.095-.274-.063-.1-.156-.465-.055-.217-.098-.303-.131-.379-.023-.052-.09.04-.105-.042-.005-.027.04-.19.04-.21.004-.13.103-.153.103-.376 0-.26-.062-.544 0-.687.062-.142.215-.057.154-.195-.06-.139-.08-.218-.195-.218h-.372Z",clipRule:"evenodd"})]}),(0,h.jsx)("defs",{children:(0,h.jsx)("clipPath",{id:"VG_-_Virgin_Islands_(British)_svg__b",children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h9v7H0z"})})})]}),Fe=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"VI_-_Virgin_Islands_(U_S_)_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#VI_-_Virgin_Islands_(U_S_)_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"VI_-_Virgin_Islands_(U_S_)_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#VI_-_Virgin_Islands_(U_S_)_svg__b)",children:[(0,h.jsx)("path",{fill:"#E8AA00",fillRule:"evenodd",d:"M8.574 2.963c0 .093.42 1.39.42 1.39H6.952l.574-1.122s.084-.214-.121-.268c-.206-.054-.453.18-.453.18s.06-.373.14-.454c.082-.08.553-.287.947-.287.393 0 .536.47.536.561Zm-7.185-.528c.156-.068 1.75.407 2.944.763.686.205 1.24.37 1.313.37.2 0 1.02.843 1.02.843v1.886s-2.589-.537-5.03-3.185c-.358-.355-.494-.571-.247-.677Zm5.033 3.98s-.272.188-.572.689c-.148.246-.16.463-.168.62-.01.163-.015.26-.162.26-.173 0-.298.038-.4.068a.677.677 0 0 1-.185.039c-.137 0-.4.517-.269.637.132.12.683.31.683 0s.149-.487.418-.487c.27 0 .751-.179.751-.57 0-.392.525-.364.525-.364l-.621-.891Zm5.359-3.217c1.193-.356 2.787-.83 2.944-.763.247.106.111.322-.247.676-.959 1.716-5.03 3.186-5.03 3.186V4.411s.82-.843 1.02-.843c.072 0 .626-.165 1.313-.37ZM9.69 6.416s.272.187.572.688c.148.246.16.463.169.62.009.163.014.26.162.26.173 0 .298.038.4.068.07.021.129.039.184.039.137 0 .4.517.27.637-.133.12-.684.31-.684 0s-.148-.487-.418-.487-.75-.179-.75-.57c0-.392-.526-.364-.526-.364l.622-.891ZM6.255 8.5c0-.17.821-1.082.821-1.082l.918-.387.011.232.012-.232.917.387s.821.912.821 1.082c0 .171-1.574 1.565-1.738 1.565a.017.017 0 0 1-.012-.006.017.017 0 0 1-.011.006c-.164 0-1.739-1.394-1.739-1.565Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#46A000",d:"m3.123 5.496.949-.316c.641 1.927 1.26 3.172 1.815 3.71l-.696.719c-.703-.681-1.379-2.044-2.068-4.113Z"}),(0,h.jsx)("path",{fill:"#0093E1",fillRule:"evenodd",d:"M14.346 5.17h-1.069s.227 0 .252.218c0 0 .005 1.847 0 1.992-.006.145-.252.195-.252.195s1.297.004 1.069 0c-.228-.004-.278-.195-.278-.195V5.388c0-.168.278-.219.278-.219ZM2.283 7.426c-.121-.313-.868-2.225-.868-2.225h.74c-.13 0-.177.164-.177.164l.518 1.476s.5-1.205.5-1.42c0-.213-.21-.22-.21-.22h.964l-.232.078s-.772 1.768-.772 2.147c-.036.084.355.14.355.14H2.066l.217-.14Zm8.85-.699.573-1.055.017 1.174-.178-.057-.125.784.633-1.215-.21-.08.783-.848-.267 1.147-.152-.134-.898 1.676 1.003-1.148-.194-.097.99-.648-.43 1.056-.24-.173-1.018 1.281-.422-.162.422-1.5h-.287Zm-.33 2.002h-.317v.24h-.25l-.706.82h.39l.135.461.181-.162v.162l.354-.162.339.293.252-1.127-.17-.125.088-.076-.088-.324h-.208Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M6.172 4.006s.465.322.93.322c.466 0 .93-.322.93-.322s.466.322.932.322c.465 0 .93-.322.93-.322v1.45c0 1.5-1.861 2.663-1.861 2.663s-1.951-1.067-1.861-2.68V4.006Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"VI_-_Virgin_Islands_(U_S_)_svg__c",width:4,height:5,x:6,y:4,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M6.172 4.006s.465.322.93.322c.466 0 .93-.322.93-.322s.466.322.932.322c.465 0 .93-.322.93-.322v1.45c0 1.5-1.861 2.663-1.861 2.663s-1.951-1.067-1.861-2.68V4.006Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#VI_-_Virgin_Islands_(U_S_)_svg__c)",children:[(0,h.jsx)("path",{fill:"#2E42A5",d:"M6.04 3.91h3.92v1.51H6.04V3.91Z"}),(0,h.jsx)("path",{fill:"#AF0100",d:"M6.798 5.42h-.33v3.052h.33V5.42Zm.56 0h-.33v3.052h.33V5.42Zm.23 0h.33v3.052h-.33V5.42Zm.89 0h-.33v3.052h.33V5.42Zm.23 0h.33v3.052h-.33V5.42Zm.89 0h-.33v3.052h.33V5.42Z"})]})]})]})]}),Ce=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M8 0h8v12H8V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#36A400",fillRule:"evenodd",d:"M0 0h8v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"red",fillRule:"evenodd",d:"M9.313 2.816c.775 0 1.49.26 2.061.696a4.268 4.268 0 1 0-.276 5.595 3.398 3.398 0 1 1-1.785-6.291Zm1.432 1.252-1.07 1.213-1.537-.424.852 1.333-.852 1.419 1.612-.58.881 1.375V6.807l1.44-.617-1.44-.516.114-1.606Z",clipRule:"evenodd"})]}),He=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"AO_-_Angola_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#AO_-_Angola_svg__a)",children:[(0,h.jsx)("path",{fill:"#1D1D1D",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"AO_-_Angola_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#AO_-_Angola_svg__b)",children:[(0,h.jsx)("path",{fill:"#F50100",d:"M0 0v6h16V0H0Z"}),(0,h.jsxs)("g",{filter:"url(#AO_-_Angola_svg__c)",children:[(0,h.jsx)("path",{fill:"#FCFF01",d:"M7.775 6.696c.388-.479.509-1.098.509-1.485 0-2.059-2.569-3.198-2.569-3.198 1.766 0 3.733 1.432 3.733 3.198 0 .748-.256 1.442-.686 1.994.787.392 1.453.699 1.453.699.247.162.316.594.154.841a.536.536 0 0 1-.741.154s-.632-.373-1.017-.626a15.58 15.58 0 0 0-.598-.37c-.505.34-1.111.54-1.763.54 0 0-2.348-.288-2.281-1.492 0 0 .568.435 2.241.435.266 0 .5-.037.705-.103-.724-.395-1.338-.709-1.338-.709-.248-.162-.89-.983-.729-1.23.162-.248 1.143.032 1.39.194 0 0 .343.472.829.76.214.128.456.263.708.398ZM6.59 4.901l-.505.337.162-.577-.371-.368.502-.02.212-.57.213.57h.5l-.37.388.186.543L6.59 4.9Z"}),(0,h.jsx)("path",{fill:"#FFEA42",d:"M7.775 6.696c.388-.479.509-1.098.509-1.485 0-2.059-2.569-3.198-2.569-3.198 1.766 0 3.733 1.432 3.733 3.198 0 .748-.256 1.442-.686 1.994.787.392 1.453.699 1.453.699.247.162.316.594.154.841a.536.536 0 0 1-.741.154s-.632-.373-1.017-.626a15.58 15.58 0 0 0-.598-.37c-.505.34-1.111.54-1.763.54 0 0-2.348-.288-2.281-1.492 0 0 .568.435 2.241.435.266 0 .5-.037.705-.103-.724-.395-1.338-.709-1.338-.709-.248-.162-.89-.983-.729-1.23.162-.248 1.143.032 1.39.194 0 0 .343.472.829.76.214.128.456.263.708.398ZM6.59 4.901l-.505.337.162-.577-.371-.368.502-.02.212-.57.213.57h.5l-.37.388.186.543L6.59 4.9Z"})]})]})]}),(0,h.jsx)("defs",{children:(0,h.jsxs)("filter",{id:"AO_-_Angola_svg__c",width:6.489,height:6.974,x:3.968,y:2.013,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,h.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,h.jsx)("feOffset",{}),(0,h.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),(0,h.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_270_54949"}),(0,h.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_270_54949",result:"shape"})]})})]}),Ve=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"BJ_-_Benin_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#BJ_-_Benin_svg__a)",children:[(0,h.jsx)("path",{fill:"#DD2C2B",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M0 0v7h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#5EAA22",d:"M0 0h7v12H0z"})]})]}),Se=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"BW_-_Botswana_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#BW_-_Botswana_svg__a)",children:[(0,h.jsx)("path",{fill:"#42ADDF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"BW_-_Botswana_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#BW_-_Botswana_svg__b)",children:[(0,h.jsx)("path",{fill:"#58A5FF",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",stroke:"#F7FCFF",d:"M0 4.5h-.5v3h17v-3H0Z"})]})]})]}),Ae=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"BF_-_Burkina_Faso_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#BF_-_Burkina_Faso_svg__a)",children:[(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"BF_-_Burkina_Faso_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#BF_-_Burkina_Faso_svg__b)",children:[(0,h.jsx)("path",{fill:"#C51918",d:"M0 0v6h16V0H0Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"m8.018 7.885-2.352 1.78.753-2.899-2.206-1.764h2.629l1.175-2.573 1.176 2.573h2.629l-2.23 1.767.776 2.896-2.35-1.78Z"})]})]})]}),Ue=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"BI_-_Burundi_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#BI_-_Burundi_svg__a)",children:[(0,h.jsx)("rect",{width:16,height:12,fill:"#5EAA22",rx:1}),(0,h.jsxs)("mask",{id:"BI_-_Burundi_svg__b",width:24,height:16,x:-4,y:-2,fill:"#000",maskUnits:"userSpaceOnUse",children:[(0,h.jsx)("path",{fill:"#fff",d:"M-4-2h24v16H-4z"}),(0,h.jsx)("path",{fillRule:"evenodd",d:"m8 6 8-6H0l8 6Zm0 0-8 6h16L8 6Z",clipRule:"evenodd"})]}),(0,h.jsx)("path",{fill:"#DD2C2B",fillRule:"evenodd",d:"m8 6 8-6H0l8 6Zm0 0-8 6h16L8 6Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",d:"m16 0 .75 1 3-2.25H16V0ZM0 0v-1.25h-3.75l3 2.25L0 0Zm0 12-.75-1-3 2.25H0V12Zm16 0v1.25h3.75l-3-2.25-.75 1Zm-.75-13-8 6 1.5 2 8-6-1.5-2ZM0 1.25h16v-2.5H0v2.5ZM8.75 5l-8-6-1.5 2 8 6 1.5-2Zm-1.5 0-8 6 1.5 2 8-6-1.5-2ZM0 13.25h16v-2.5H0v2.5ZM16.75 11l-8-6-1.5 2 8 6 1.5-2Z",mask:"url(#BI_-_Burundi_svg__b)"}),(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M8 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#DD2C2B",fillRule:"evenodd",d:"m8.084 5.214-.588.31.112-.655-.476-.464h.658l.294-.69.293.69h.658l-.476.464.112.654-.587-.309ZM6.681 7.214l-.588.31.113-.655-.476-.464h.657l.294-.69.294.69h.657l-.475.464.112.654-.588-.309ZM9.481 7.214l-.588.31.113-.655-.476-.464h.657l.294-.69.294.69h.657l-.475.464.112.654-.588-.309Z",clipRule:"evenodd"})]})]}),Ee=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"CV_-_Cabo_Verde_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#CV_-_Cabo_Verde_svg__a)",children:[(0,h.jsx)("path",{fill:"#4141DB",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"CV_-_Cabo_Verde_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#CV_-_Cabo_Verde_svg__b)",children:[(0,h.jsx)("path",{fill:"#F90000",stroke:"#F7FCFF",d:"M0 6.5h-.5v2h17v-2H0Z"}),(0,h.jsx)("path",{stroke:"#FFDE00",d:"M5.5 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z",clipRule:"evenodd"})]})]})]}),Te=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"CM_-_Cameroon_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#CM_-_Cameroon_svg__a)",children:[(0,h.jsx)("path",{fill:"#E11C1B",d:"M5 0h6v12H5V0Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"m8.038 7.245-1.743 1.21.557-2.071-1.28-1.323 1.733-.072.733-2.047.733 2.047h1.73L9.223 6.384l.639 1.948-1.825-1.087Z"}),(0,h.jsx)("path",{fill:"#FBCD17",d:"M11 0h5v12h-5V0Z"}),(0,h.jsx)("path",{fill:"#0B9E7A",d:"M0 0h5v12H0V0Z"})]})]}),Le=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"CF_-_Central_African_Republic_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#CF_-_Central_African_Republic_svg__a)",children:[(0,h.jsx)("path",{fill:"#3D58DB",d:"M0 0h16v3H0V0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 3h16v3H0V3Z"}),(0,h.jsx)("path",{fill:"#73BE4A",d:"M0 6h16v3H0V6Z"}),(0,h.jsx)("path",{fill:"#FFD018",d:"M0 9h16v3H0V9Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"m2.265 2.708-1.213.84.388-1.44-.89-.92 1.205-.049.51-1.424.51 1.424h1.203l-.888.97.444 1.355-1.27-.756Z"}),(0,h.jsx)("path",{fill:"#E11C1B",d:"M6 0h4v12H6V0Z"})]})]}),De=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"TD_-_Chad_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#TD_-_Chad_svg__a)",children:[(0,h.jsx)("path",{fill:"#E11C1B",d:"M11 0h5v12h-5V0Z"}),(0,h.jsx)("path",{fill:"#2E42A5",d:"M0 0h6v12H0V0Z"}),(0,h.jsx)("path",{fill:"#FBCD17",d:"M5 0h6v12H5V0Z"})]})]}),Ne=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("path",{fill:"#5196ED",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"KM_-_Comors_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#KM_-_Comors_svg__a)",children:[(0,h.jsx)("path",{fill:"#AF0100",d:"M0 6v3h16V6H0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 3v3h16V3H0Z"}),(0,h.jsx)("path",{fill:"#FBCD17",d:"M0 0v3h16V0H0Z"}),(0,h.jsx)("path",{fill:"#5EAA22",d:"m0 0 8 6-8 6V0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M3.152 8.728S1.361 8.06 1.424 5.972c.063-2.088 1.888-2.497 1.888-2.497C2.672 2.97.387 3.56.314 5.972.24 8.383 2.47 8.92 3.152 8.728Zm.095-3.585.068-.393-.286-.278.395-.057.176-.358.176.358.395.057-.286.278.068.393-.353-.186-.353.186Zm.068.607-.068.393.353-.186.353.186-.068-.393.286-.278-.395-.057-.176-.358-.176.358-.395.057.286.278Zm-.068 1.393.068-.393-.286-.278.395-.057.176-.358.176.358.395.057-.286.278.068.393-.353-.186-.353.186Zm0 1 .068-.393-.286-.278.395-.057.176-.358.176.358.395.057-.286.278.068.393-.353-.186-.353.186Z"})]})]}),Oe=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"CG_-_Republic_of_the_Congo_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("rect",{width:16,height:12,fill:"#fff",rx:.25})}),(0,h.jsxs)("g",{mask:"url(#CG_-_Republic_of_the_Congo_svg__a)",children:[(0,h.jsx)("path",{fill:"#FA1111",fillRule:"evenodd",d:"M16 0v12H0L16 0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#07A907",fillRule:"evenodd",d:"M0 12V0h16L0 12Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FBCD17",fillRule:"evenodd",d:"M14.746-2.9-.5 11.788l3.026 1.506L17.32-.106 14.746-2.9Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"CG_-_Republic_of_the_Congo_svg__b",width:19,height:17,x:-1,y:-3,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M14.746-2.9-.5 11.788l3.026 1.506L17.32-.106 14.746-2.9Z",clipRule:"evenodd"})})]})]}),Be=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"CD_-_Democratic_Republic_of_the_Congo_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#CD_-_Democratic_Republic_of_the_Congo_svg__a)",children:[(0,h.jsx)("path",{fill:"#3195F9",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"CD_-_Democratic_Republic_of_the_Congo_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#CD_-_Democratic_Republic_of_the_Congo_svg__b)",children:[(0,h.jsx)("path",{fill:"#E31D1C",stroke:"#FECA00",strokeWidth:1.25,d:"m-.91 12.72.346.52.52-.348L18.086.791l.52-.347-.347-.52-1.11-1.664-.347-.52-.52.348-18.13 12.101-.52.347.347.52 1.11 1.664Z"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M2.465 4.303.723 5.512l.556-2.07L0 2.119l1.732-.072L2.465 0l.733 2.047h1.73L3.65 3.442l.64 1.948-1.826-1.087Z",clipRule:"evenodd"})]})]})]}),ze=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"DJ_-_Djibouti_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#DJ_-_Djibouti_svg__a)",children:[(0,h.jsx)("path",{fill:"#73BE4A",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"DJ_-_Djibouti_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#DJ_-_Djibouti_svg__b)",children:(0,h.jsx)("path",{fill:"#69F",fillRule:"evenodd",d:"M0-1v7h16v-7H0Z",clipRule:"evenodd"})}),(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12l9-6-9-6Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"DJ_-_Djibouti_svg__c",width:9,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12l9-6-9-6Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#DJ_-_Djibouti_svg__c)",children:(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M3.501 6.947 2.254 7.7l.285-1.47L1.5 5.132l1.406-.06.595-1.371.595 1.372H5.5L4.464 6.23 4.776 7.7 3.5 6.947Z",clipRule:"evenodd"})})]})]}),Pe=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"EG_-_Egypt_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#EG_-_Egypt_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"EG_-_Egypt_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#EG_-_Egypt_svg__b)",children:[(0,h.jsx)("path",{fill:"#BF2714",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C09302",d:"m6.13 5.11.5.023-.126 2.735-.5-.023.126-2.735ZM6.652 5.28l.5.028-.126 2.218-.5-.028.126-2.218Z"}),(0,h.jsx)("path",{fill:"#C09302",d:"m7.174 5.446.499.04-.126 1.529-.498-.041.125-1.528ZM9.87 5.11l-.5.023.126 2.735.5-.023L9.87 5.11ZM9.348 5.28l-.5.028.126 2.218.5-.028-.126-2.218Z"}),(0,h.jsx)("path",{fill:"#C09302",d:"m8.826 5.446-.499.04.126 1.529.498-.041-.125-1.528ZM7.987 7.663l-.488-.111.207-.9.487.111-.206.9Z"}),(0,h.jsx)("path",{fill:"#C09302",d:"m8.36 7.663.487-.111-.206-.9-.488.111.207.9Z"}),(0,h.jsx)("path",{fill:"#C09302",d:"M8.236 7.655h-.5v-.884h.5v.884ZM7.317 5.457l.5.012-.029 1.19-.5-.012.03-1.19ZM8.187 5.457l.5.012-.03 1.19-.5-.012.03-1.19Z"}),(0,h.jsx)("path",{fill:"#C09302",d:"m6.669 7.961.13-.482c.53.142.938.213 1.215.213.278 0 .686-.07 1.216-.213l.13.482c-.57.153-1.016.23-1.346.23-.33 0-.776-.077-1.345-.23ZM6.141 5.111c-.033-.33.16-.554.488-.525.107.01.228.041.39.096l.092.032c.222.08.282.1.295.102-.05-.011.095-.273.128-.317.004.028-.012.024-.052.016l-.451-.09.32-.33a.585.585 0 0 1 .433-.171c.018 0 .034-.001.088-.005l.085-.004c.312-.01.536.078.536.399 0 .115.015.3.038.44.009.047.024.09-.022.11.002-.017.111-.06.281-.13l.02-.01c.494-.206.552-.225.711-.128.106.065.207.18.32.353l-.418.274a.872.872 0 0 0-.159-.198c.063.044-.149.114-.26.161l-.02.008c-.385.161-.436.18-.546.18-.299 0-.406-.306-.436-.745-.092.304-.367.687-.594.687-.1 0-.052.016-.464-.13l-.086-.03a1.345 1.345 0 0 0-.272-.072.227.227 0 0 1 .02-.02l-.465.047Z"})]})]})]}),Ie=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"GQ_-_Equatorial_Guinea_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#GQ_-_Equatorial_Guinea_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12.288h16.384V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"GQ_-_Equatorial_Guinea_svg__b",width:17,height:13,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12.288h16.384V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#GQ_-_Equatorial_Guinea_svg__b)",children:[(0,h.jsx)("path",{fill:"#009D00",d:"M0 0v4.096h16.384V0H0Z"}),(0,h.jsx)("path",{fill:"#fff",d:"M0 4.096v4.096h16.384V4.096H0Z"}),(0,h.jsx)("path",{fill:"#F80000",d:"M0 8.192v4.096h16.384V8.192H0Z"})]}),(0,h.jsx)("path",{fill:"#0075D5",fillRule:"evenodd",d:"M0 0v12.288l4.096-6.066L0 0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"GQ_-_Equatorial_Guinea_svg__c",width:5,height:13,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12.288l4.096-6.066L0 0Z",clipRule:"evenodd"})}),(0,h.jsx)("path",{fill:"#FFD500",stroke:"#000",strokeWidth:.03,d:"m7.46 4.55.003.011-.016-.014-.103-.095-.012.139h.011l-.019.012-.122.068.128.055.005-.01.004.02.028.138.092-.105-.009-.008.022.003.138.016-.071-.12-.01.006.01-.02.058-.127-.137.031ZM7.972 4.55l.003.011-.016-.014-.103-.095-.012.139h.011l-.02.012-.12.068.127.055.005-.01.004.02.027.138.093-.105-.01-.008.023.003.138.016-.071-.12-.01.006.01-.02.058-.127-.137.031ZM8.484 4.55l.003.011-.016-.014-.103-.095-.012.139h.011l-.019.012-.122.068.129.055.004-.01.004.02.028.138.092-.105-.009-.008.022.003.138.016-.071-.12-.01.006.01-.02.058-.127-.137.031ZM8.996 4.55 9 4.561l-.016-.014-.103-.095-.012.139h.011l-.019.012-.122.068.128.055.005-.01.004.02.028.138.092-.105-.009-.008.022.003.138.016-.071-.12-.01.006.01-.02.058-.127-.137.031ZM9.508 4.55l.003.011-.016-.014-.103-.095-.012.139h.011l-.019.012-.122.068.128.055.005-.01.004.02.027.138.093-.105-.009-.008.022.003.138.016-.071-.12-.01.006.01-.02.058-.127-.137.031ZM10.02 4.55l.003.011-.016-.014-.103-.095-.012.139h.011l-.019.012-.122.068.129.055.004-.01.004.02.028.138.092-.105-.009-.008.022.003.138.016-.071-.12-.01.006.01-.02.058-.127-.136.031Z"}),(0,h.jsx)("path",{stroke:"#373737",strokeWidth:.06,d:"M7.71 5.15h1.988v1.506a.994.994 0 1 1-1.988 0V5.15Z"}),(0,h.jsx)("path",{fill:"#6F3E1D",fillRule:"evenodd",d:"M8.564 6.123s-.103 1.211-.206 1.285c-.104.073.494.11.55.055.058-.055-.26-1.042-.15-1.34.109-.297.285-.321.285-.321s-.222-.047-.286.042c-.063.09-.252-.042-.252-.042l.059.321Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#009D29",fillRule:"evenodd",d:"M8.541 6.055h-.08s-.053.21-.176.105c-.124-.105-.298-.068-.298-.068s.016-.126.205-.176c.19-.05.27-.456.27-.456s.268-.1.431.105c.163.204.393.117.393.117s.168.095.084.234-.227.24-.352.139c-.125-.102-.477 0-.477 0Z",clipRule:"evenodd"})]})]}),Ge=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:17,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"ER_-_Eritrea_svg__a",width:17,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h17v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#ER_-_Eritrea_svg__a)",children:[(0,h.jsx)("path",{fill:"#43B764",d:"M0 0v6h16V0H0Z"}),(0,h.jsx)("path",{fill:"#B4D7F4",d:"M0 6v6h16V6H0Z"}),(0,h.jsx)("path",{fill:"#BE0027",d:"m0 0 16.5 6L0 12V0Z"}),(0,h.jsx)("path",{fill:"#F3E294",d:"m4.557 8.684-.477.01a4.742 4.742 0 0 1-.096-.128 3.157 3.157 0 0 1-.355-1.458v.129c-.002.582-.002.828.355 1.33.102.197.225.39.37.58l.616-.473-.413.01Z"}),(0,h.jsx)("path",{fill:"#F3E294",d:"M1 6.25a3.25 3.25 0 1 0 6.5 0 3.25 3.25 0 0 0-6.5 0Zm5.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z"})]})]}),Ke=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"SZ_-_Swaziland_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#SZ_-_Swaziland_svg__a)",children:[(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",stroke:"#FFD018",d:"M0 2.5h-.5v7h17v-7H0Z"}),(0,h.jsx)("path",{fill:"#FFD018",d:"M3.575 4.666c-.06 0-.109-.136-.109-.303 0-.168.049-.303.109-.303h8.705c.06 0 .109.135.109.303 0 .167-.049.303-.109.303H3.575Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"m12.048 4.301.505-.645.895.645-.895.662-.505-.662Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFD018",d:"M3.575 6.666c-.06 0-.109-.136-.109-.303 0-.168.049-.303.109-.303h8.705c.06 0 .109.135.109.303 0 .167-.049.303-.109.303H3.575Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"m12.048 6.301.505-.645.895.645-.895.662-.505-.662Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFD018",d:"M2.173 7.91c-.08 0-.146-.153-.146-.343 0-.19.065-.344.146-.344h11.672c.08 0 .145.154.145.344 0 .19-.065.344-.145.344H2.173Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M4.409 6.026s1.42-2.99 3.452-2.99 3.5 2.99 3.5 2.99S9.57 8.977 7.886 8.977c-1.683 0-3.476-2.95-3.476-2.95Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"SZ_-_Swaziland_svg__b",width:8,height:6,x:4,y:3,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M4.409 6.026s1.42-2.99 3.452-2.99 3.5 2.99 3.5 2.99S9.57 8.977 7.886 8.977c-1.683 0-3.476-2.95-3.476-2.95Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#SZ_-_Swaziland_svg__b)",children:[(0,h.jsx)("path",{fill:"#272727",d:"M7.962 2.84s-.463.563-.309 1.1c.155.537.515.48.515.953s-.167.955 0 .955c.166 0 .224.327.072.548-.152.221-.287.228-.278.588.01.36.796.714.415.714-.381 0-.884.37-.724.37.16 0 .996.288.996.666v.682H4.286V2.84h3.676Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M5.91 4.962h-.218v.884h.218v-.884Zm.64 0h-.217v.884h.217v-.884Zm-.537 0h.217v.884h-.217v-.884Zm.858 0h-.218v.884h.218v-.884Zm.103 0h.217v.884h-.217v-.884Zm.537 0h-.217v.884h.217v-.884ZM5.692 6.23h.218v.884h-.218v-.884Zm.858 0h-.217v.884h.217v-.884Zm-.537 0h.217v.884h-.217v-.884Zm.858 0h-.218v.884h.218v-.884Zm.103 0h.217v.884h-.217v-.884Zm.537 0h-.217v.884h.217v-.884Z"}),(0,h.jsx)("path",{fill:"#272727",d:"M8.489 4.962H8.27v.884h.218v-.884Zm.64 0h-.217v.884h.217v-.884Zm-.537 0h.217v.884h-.217v-.884Zm.858 0h-.217v.884h.217v-.884Zm.103 0h.217v.884h-.217v-.884Zm.537 0h-.217v.884h.218v-.884ZM8.271 6.23h.218v.884H8.27v-.884Zm.858 0h-.217v.884h.217v-.884Zm-.537 0h.217v.884h-.217v-.884Zm.858 0h-.217v.884h.217v-.884Zm.103 0h.217v.884h-.217v-.884Zm.537 0h-.217v.884h.218v-.884Z"}),(0,h.jsx)("path",{fill:"#3D58DB",d:"M6.616 3.536c-.304.094-.444.892-.41 1.085.034.193.138-.024.138-.024s.21.457.232.58c.022.123.132-.186.132-.186s.366.252.415.532c.05.28.124-.32.124-.32l.082-.015-.052-.297.158.135-.049-.276s.119.155.089-.016l-.047-.266-.041-.234.156-.027s-.623-.765-.927-.671Z"})]}),(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M13.044 6.848c-.316.04-.591.802-.591.997 0 .196.139 0 .139 0s.128.488.128.613.163-.16.163-.16.316.31.316.595.177-.294.177-.294h.084v-.302l.132.16v-.28s.09.174.09 0V7.67h.159s-.48-.862-.797-.822ZM2.796 6.733c.316.04.592.801.592.997 0 .196-.14 0-.14 0s-.127.487-.127.612-.163-.16-.163-.16-.316.311-.316.596c0 .284-.178-.295-.178-.295H2.38v-.301l-.131.16v-.28s-.09.173-.09 0v-.508H2s.48-.861.796-.821Z",clipRule:"evenodd"})]})]}),We=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"ET_-_Ethiopia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#ET_-_Ethiopia_svg__a)",children:[(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"ET_-_Ethiopia_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#ET_-_Ethiopia_svg__b)",children:[(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#2B77B8",fillRule:"evenodd",d:"M8 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",clipRule:"evenodd"}),(0,h.jsx)("path",{stroke:"#FECA00",strokeWidth:.75,d:"m8 7-1.381.463.43-1.154-.937-1.118h1.3L8 4l.588 1.191h1.328l-.965 1.118.343 1.154L8 7Z",clipRule:"evenodd"}),(0,h.jsx)("path",{stroke:"#2B77B8",strokeWidth:.5,d:"m7.848 6.017-1.042 2.18M7.684 5.74h-2M8.06 6.419l1.955.902M8.483 5.937l1.415-1.549"})]})]})]}),qe=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"GA_-_Gabon_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#GA_-_Gabon_svg__a)",children:[(0,h.jsx)("path",{fill:"#40A8FF",d:"M0 8h16v4H0V8Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"M0 4h16v4H0V4Z"}),(0,h.jsx)("path",{fill:"#73BE4A",d:"M0 0h16v4H0V0Z"})]})]}),Ye=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"GM_-_Gambia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#GM_-_Gambia_svg__a)",children:[(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M0 8h16v4H0V8Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0h16v4H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#3D58DB",stroke:"#fff",strokeWidth:1.5,d:"M0 4.25h-.75v3.5h17.5v-3.5H0Z"})]})]}),Je=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"GH_-_Ghana_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#GH_-_Ghana_svg__a)",children:[(0,h.jsx)("path",{fill:"#5EAA22",d:"M0 8h16v4H0V8Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"M0 4h16v4H0V4Z"}),(0,h.jsx)("path",{fill:"#E11C1B",d:"M0 0h16v4H0V0Z"}),(0,h.jsx)("path",{fill:"#1D1D1D",d:"M8.038 7.245 6.295 8.454l.557-2.07-1.28-1.323 1.733-.072.733-2.047.733 2.047h1.73L9.223 6.384l.639 1.948-1.825-1.087Z",opacity:.9})]})]}),$e=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"GN_-_Guinea_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#GN_-_Guinea_svg__a)",children:[(0,h.jsx)("path",{fill:"#FBCD17",d:"M5 0h6v12H5V0Z"}),(0,h.jsx)("path",{fill:"#0B9E7A",d:"M11 0h5v12h-5V0Z"}),(0,h.jsx)("path",{fill:"#E11C1B",d:"M0 0h5v12H0V0Z"})]})]}),Qe=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"GW_-_Guinea-Bissau_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#GW_-_Guinea-Bissau_svg__a)",children:[(0,h.jsx)("path",{fill:"#FBCD17",d:"M8 0h8v6H8V0Z"}),(0,h.jsx)("path",{fill:"#0B9E7A",d:"M8 6h8v6H8V6Z"}),(0,h.jsx)("path",{fill:"#E11C1B",d:"M0 0h8v12H0V0Z"}),(0,h.jsx)("path",{fill:"#1D1D1D",d:"M4.465 7.303 2.723 8.512l.556-2.07L2 5.119l1.732-.072L4.465 3l.733 2.047h1.73L5.65 6.442l.64 1.948-1.826-1.087Z"})]})]}),Xe=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"CI_-_C\\xF4te_d'Ivoire_(Ivory_Coast)_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#CI_-_C\\xF4te_d'Ivoire_(Ivory_Coast)_svg__a)",children:[(0,h.jsx)("path",{fill:"#67BD38",d:"M11 0h5v12h-5V0Z"}),(0,h.jsx)("path",{fill:"#E47E00",d:"M0 0h5v12H0V0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M5 0h6v12H5V0Z"})]})]}),el=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"KE_-_Kenia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#KE_-_Kenia_svg__a)",children:[(0,h.jsx)("path",{fill:"#0067C3",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#4E8B1D",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",stroke:"#F7FCFF",d:"M0 3.5h-.5v5h17v-5H0Z"})]}),(0,h.jsx)("path",{fill:"#fff",d:"M9.812 2.015c.114-.205.42-.43.92-.673a.068.068 0 0 1 .056 0c.03.012.043.044.028.07l-5.179 9.314-.27-.116L9.932 2.4c-.206-.03-.247-.158-.12-.385Z"}),(0,h.jsx)("path",{fill:"#fff",d:"M6.183 2.015c.126.227.086.356-.12.385l4.564 8.21-.27.116L5.18 1.412c-.015-.026-.003-.058.027-.07a.068.068 0 0 1 .056 0c.5.244.807.468.92.673Z"}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M8 10.474c.598 0 3-1.885 3-4.21 0-2.326-2.402-4.211-3-4.211-.598 0-3 1.885-3 4.21 0 2.326 2.402 4.21 3 4.21Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"KE_-_Kenia_svg__b",width:6,height:9,x:5,y:2,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M8 10.474c.598 0 3-1.885 3-4.21 0-2.326-2.402-4.211-3-4.211-.598 0-3 1.885-3 4.21 0 2.326 2.402 4.21 3 4.21Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#KE_-_Kenia_svg__b)",children:[(0,h.jsx)("path",{fill:"#272727",d:"M2.5 9.947c2.32 0 4.2-1.65 4.2-3.684 0-2.035-1.88-3.684-4.2-3.684-2.32 0-4.2 1.65-4.2 3.684 0 2.035 1.88 3.684 4.2 3.684ZM13.5 9.947c2.32 0 4.2-1.65 4.2-3.684 0-2.035-1.88-3.684-4.2-3.684-2.32 0-4.2 1.65-4.2 3.684 0 2.035 1.88 3.684 4.2 3.684Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M8.12 5.7c.274-.17.48-.914.48-1.805 0-.891-.206-1.635-.48-1.806V5.7Zm-.3-.047c-.243-.235-.42-.933-.42-1.758s.177-1.523.42-1.758v3.516Zm0 1.22v3.516c-.243-.234-.42-.933-.42-1.757 0-.825.177-1.523.42-1.758Zm.3 3.564v-3.61c.274.17.48.913.48 1.805 0 .89-.206 1.634-.48 1.805Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M8 5.737c.331 0 .6.235.6.526 0 .29-.269.526-.6.526-.331 0-.6-.235-.6-.526 0-.29.269-.526.6-.526Z"})]})]}),ll=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"LS_-_Lesotho_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#LS_-_Lesotho_svg__a)",children:[(0,h.jsx)("path",{fill:"#55BA07",d:"M0 8h16v4H0V8Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 4h16v4H0V4Z"}),(0,h.jsx)("path",{fill:"#3D58DB",d:"M0 0h16v4H0V0Z"}),(0,h.jsx)("path",{fill:"#1D1D1D",d:"M7.625 4.12c-.261.07-.4.25-.4.57 0 .366.18.708.4.885V4.12Zm.625 1.445c.214-.179.386-.515.386-.874 0-.31-.136-.49-.386-.564v1.438Zm-.021-1.699c.41.091.705.37.705.823 0 .329-.156.73-.4 1.004l1.218 1.193.3-.098.448.68S9.367 8 7.967 8 5.5 7.467 5.5 7.467l.382-.58.308.1 1.129-1.273c-.254-.275-.418-.688-.418-1.026 0-.468.317-.75.749-.83a.313.313 0 0 1 .579.008Z"})]})]}),sl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"LR_-_Liberia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#LR_-_Liberia_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"M.014 2.75h16v1.5h-16z"}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0h16v1.5H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"M-.029 5.5h16V7h-16zM.056 8.2h16v1.5h-16zM.051 10.75h16v1.5h-16z"}),(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0 0h8v7H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M4.066 4.607 2.606 5.62l.466-1.736L2 2.776l1.452-.06L4.066 1l.615 1.716H6.13L5.06 3.884l.536 1.633-1.53-.91Z",clipRule:"evenodd"})]})]}),al=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"LY_-_Libya_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#LY_-_Libya_svg__a)",children:[(0,h.jsx)("path",{fill:"#55BA07",d:"M0 9h16v3H0V9Z"}),(0,h.jsx)("path",{fill:"#1D1D1D",d:"M0 3h16v6H0V3Z"}),(0,h.jsx)("path",{fill:"#E11C1B",d:"M0 0h16v3H0V0Z"}),(0,h.jsx)("path",{fill:"#fff",d:"M7.899 7.533c-.896-.185-1.124-.72-1.115-1.444 0-.765.399-1.473 1.106-1.558.707-.085 1.285.18 1.589.547-.254-.999-1.095-1.108-1.74-1.108-.972-.008-1.998.664-1.998 2.194 0 1.369.908 2.046 2.026 2.068 1.398 0 1.616-.965 1.657-1.294a2.492 2.492 0 0 0-.234.2c-.28.258-.585.541-1.291.395Zm2.209-1.926-.638.247.662.292-.024.775.502-.535.729.15-.442-.593.386-.571-.61.128-.43-.486-.135.593Z"})]})]}),il=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"MG_-_Madagascar_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#MG_-_Madagascar_svg__a)",children:[(0,h.jsx)("path",{fill:"#78D843",d:"M6 6h10v6H6V6Z"}),(0,h.jsx)("path",{fill:"#EA1A1A",d:"M6 0h10v6H6V0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 0h6v12H0V0Z"})]})]}),tl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"MW_-_Malawi_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#MW_-_Malawi_svg__a)",children:[(0,h.jsx)("path",{fill:"#E11C1B",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"MW_-_Malawi_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#MW_-_Malawi_svg__b)",children:[(0,h.jsx)("path",{fill:"#272727",d:"M0 0v5h16V0H0Z"}),(0,h.jsx)("path",{fill:"#5EAA22",d:"M0 8v4h16V8H0Z"}),(0,h.jsx)("path",{fill:"#E11C1B",d:"M2 6.973v-.001h-.004.005Zm.315-1.91h.051l-.078-.012.027.012Zm1.464 0c.026-.05.053-.1.082-.149l-1.145-.758 1.35.44c.076-.106.157-.208.243-.307l-.992-.945 1.264.66c.093-.089.19-.174.291-.255L4.07 2.641l1.133.867a4.78 4.78 0 0 1 .327-.2l-.578-1.24.957 1.051c.114-.05.231-.098.35-.14l-.325-1.333.741 1.202c.12-.032.24-.06.364-.083l-.054-1.378.493 1.312a5.46 5.46 0 0 1 .37-.027L8.07 1.3l.224 1.372c.124.005.247.015.369.028l.493-1.313-.054 1.38c.122.023.243.051.362.083l.743-1.204-.326 1.336c.118.042.235.09.348.14l.96-1.054-.58 1.245c.111.062.22.128.324.198l1.138-.87-.806 1.113c.1.08.197.165.288.253l1.271-.663-.997.95c.085.098.165.2.24.304l1.358-.442-1.152.763.08.144h-.983c-.677-.938-1.915-1.566-3.33-1.566-1.414 0-2.651.628-3.328 1.566h-.933Zm1.5 0c.642-.661 1.65-1.087 2.782-1.087 1.132 0 2.14.426 2.781 1.087H5.28Zm8.495 0h.052l.027-.012-.079.012Zm.367 1.909h.004-.004Z"})]})]})]}),dl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"ML_-_Mali_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("rect",{width:16,height:12,fill:"#fff",rx:0})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#ML_-_Mali_svg__a)",children:[(0,h.jsx)("path",{fill:"#FBCD17",d:"M5 0h6v12H5V0Z"}),(0,h.jsx)("path",{fill:"#E11C1B",d:"M11 0h5v12h-5V0Z"}),(0,h.jsx)("path",{fill:"#0B9E7A",d:"M0 0h5v12H0V0Z"})]})]}),nl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"MR_-_Mauritania_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#MR_-_Mauritania_svg__a)",children:[(0,h.jsx)("path",{fill:"#1C7B4D",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"MR_-_Mauritania_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#MR_-_Mauritania_svg__b)",children:[(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 0v3h16V0H0ZM0 9v3h16V9H0Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"M8.121 7.19c2.593.014 3.323-2.157 3.323-2.157C11.297 6.89 10.27 8.15 8.12 8.15S5.183 6.518 4.798 4.89c0 0 .73 2.285 3.323 2.3Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"m8.819 4.907.168.982-.882-.464-.881.464.168-.982-.713-.767h.985l.441-.965.441.965h.986l-.713.767Z"})]})]})]}),hl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"MU_-_Mauritius_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#MU_-_Mauritius_svg__a)",children:[(0,h.jsx)("path",{fill:"#579D20",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"MU_-_Mauritius_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#MU_-_Mauritius_svg__b)",children:[(0,h.jsx)("path",{fill:"#FECA00",d:"M0 6v3h16V6H0Z"}),(0,h.jsx)("path",{fill:"#3D58DB",d:"M0 3v3h16V3H0Z"}),(0,h.jsx)("path",{fill:"#E11C1B",d:"M0 0v3h16V0H0Z"})]})]})]}),cl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"MA_-_Morocco_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#MA_-_Morocco_svg__a)",children:[(0,h.jsx)("path",{fill:"#C51918",d:"M0 0h16v11a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V0Z"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 0h16v12H0V0Z"}),(0,h.jsx)("path",{fill:"#579D20",d:"M11.241 9.813 8.083 1.35h-.137L4.898 9.813 8.063 7.91l3.178 1.903ZM7.733 4.111l.339-1.32.351 1.358 1.01 2.828.592 1.37-1.28-.902-.682-.41-.673.405-1.25.906.578-1.397 1.015-2.838Z"}),(0,h.jsx)("path",{fill:"#579D20",d:"M6.331 6.737 8.08 7.899 9.71 6.737l3.098-2.619H3.193L6.33 6.737Zm.037-1-1.19-.727h5.613l-1.021.646-1.698 1.288-1.704-1.207Z"})]})]}),rl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"MZ_-_Mozambique_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#MZ_-_Mozambique_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"MZ_-_Mozambique_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#MZ_-_Mozambique_svg__b)",children:[(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#093",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",stroke:"#fff",d:"M0 3.5h-.5v5h17v-5H0Z"})]}),(0,h.jsx)("path",{fill:"#F50100",fillRule:"evenodd",d:"M0 0v12l9-6-9-6Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"MZ_-_Mozambique_svg__c",width:9,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12l9-6-9-6Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#MZ_-_Mozambique_svg__c)",children:[(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"m4.034 7.177-1.89 1.525.868-2.038-1.49-1.435H3.28L4.002 3.5l.766 1.73h1.754L4.955 6.663l.784 2.038-1.705-1.525Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"m3.078 5.992-.32 1.07s1.081-.01 1.211.099c.392-.244 1.198-.099 1.198-.099l-.429-1.145s-.543-.246-.769-.111c-.552-.125-.891.186-.891.186Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#000",d:"M5.782 7.608a.25.25 0 0 1-.4.3l-2.09-2.775a.25.25 0 1 1 .4-.3l2.09 2.775Z"}),(0,h.jsx)("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:.5,d:"m3.487 4.92-.2-.24"}),(0,h.jsx)("path",{fill:"#000",fillRule:"evenodd",d:"m2.802 4.681-.604.968.302.523.691-1.027.125-.317-.125-.147h-.389ZM2.02 7.554l.464.54 3.514-4.072-1.597.995-2.382 2.537Z",clipRule:"evenodd"})]})]})]}),ol=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"NA_-_Namibia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#NA_-_Namibia_svg__a)",children:[(0,h.jsx)("path",{fill:"#093",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"NA_-_Namibia_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#NA_-_Namibia_svg__b)",children:[(0,h.jsx)("path",{fill:"#3195F9",fillRule:"evenodd",d:"M0 0v12L16 0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",stroke:"#F7FCFF",d:"m-.506 13.547.265.48.454-.308L17.629 1.864l.35-.24-.178-.384-1.171-2.52-.246-.528-.485.323-17.678 11.778-.382.255.222.403 1.433 2.596Z"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"m3.115 4.622-.647.808-.157-1.023-.964.376.376-.964L.7 3.662l.807-.647L.7 2.368l1.023-.157-.376-.964.964.376L2.468.6l.647.807L3.762.6l.157 1.023.964-.376-.376.964 1.023.157-.808.647.808.647-1.023.157.376.964-.964-.376-.157 1.023-.647-.808Zm0-.357a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm1-1.25a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"})]})]})]}),vl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"NE_-_Niger_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#NE_-_Niger_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"NE_-_Niger_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#NE_-_Niger_svg__b)",children:[(0,h.jsx)("path",{fill:"#FC6500",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#5EAA22",d:"M0 8v4h16V8H0Z"}),(0,h.jsx)("path",{fill:"#FC6500",d:"M8 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"})]})]})]}),ml=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"NG_-_Nigeria_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#NG_-_Nigeria_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 0h16v12H0V0Z"}),(0,h.jsx)("path",{fill:"#093",d:"M11 0h5v12h-5V0ZM0 0h5v12H0V0Z"})]})]}),ul=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"RW_-_Rwanda_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#RW_-_Rwanda_svg__a)",children:[(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"RW_-_Rwanda_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#RW_-_Rwanda_svg__b)",children:[(0,h.jsx)("path",{fill:"#3CA5D9",d:"M0 0v7h16V0H0Z"}),(0,h.jsx)("path",{fill:"#5A962A",d:"M0 9v3h16V9H0Z"}),(0,h.jsx)("path",{fill:"#FFDC17",d:"M12.04 5.933a2.07 2.07 0 0 1-.092 0l-.302.987-.064-1.028a1.996 1.996 0 0 1-.09-.021l-.524.89.177-1.014a1.955 1.955 0 0 1-.085-.041l-.715.745.408-.944-.073-.06-.87.561.617-.824c-.02-.025-.04-.05-.058-.076l-.975.347.79-.66a1.966 1.966 0 0 1-.038-.089l-1.028.116.922-.462a1.887 1.887 0 0 1-.017-.095l-1.026-.122 1.004-.24.006-.096-.97-.353 1.032-.003.028-.094-.86-.563 1.005.232.05-.085-.706-.745.924.456c.022-.024.045-.048.068-.07l-.513-.887.793.654.082-.053-.293-.98.62.818a2 2 0 0 1 .092-.033l-.057-1.02.413.938a2.04 2.04 0 0 1 .097-.011L11.995 1l.183 1.009c.032.002.064.006.096.01l.413-.939-.057 1.024c.03.01.06.02.09.032l.622-.82-.294.984c.027.016.054.034.08.052l.797-.657-.516.89.065.07.929-.459-.71.75c.017.026.032.054.048.081l1.01-.233-.865.567.027.09 1.038.003-.975.355.005.093 1.011.24-1.033.123-.016.092.928.465-1.034-.116a1.836 1.836 0 0 1-.037.084l.795.665-.98-.35-.056.074.62.83-.874-.565-.07.059.41.948-.719-.748a1.995 1.995 0 0 1-.082.041l.178 1.017-.525-.892-.09.021-.064 1.03-.302-.987Zm-.067-.726c.7 0 1.268-.559 1.268-1.25 0-.69-.568-1.249-1.268-1.249-.7 0-1.268.56-1.268 1.25s.568 1.25 1.268 1.25Zm.73-1.213a.715.715 0 1 1-1.43 0 .715.715 0 0 1 1.43 0Z"})]})]})]}),pl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"ST_-_Sao_Tome_and_Principe_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#ST_-_Sao_Tome_and_Principe_svg__a)",children:[(0,h.jsx)("path",{fill:"#FBCD17",d:"M0 0v12h16V0H0Z"}),(0,h.jsx)("path",{fill:"#73BE4A",d:"M0 0v4h16V0H0ZM0 8v4h16V8H0Z"}),(0,h.jsx)("path",{fill:"#C51918",d:"M0 0v12l5-6-5-6Z"}),(0,h.jsx)("path",{fill:"#272727",d:"m8.5 6.935-.934.565.213-1.102L7 5.573l1.055-.044L8.5 4.5l.446 1.029H10l-.777.87.234 1.101-.956-.565ZM12.5 6.935l-.934.565.213-1.102L11 5.573l1.055-.044L12.5 4.5l.446 1.029H14l-.777.87.234 1.101-.956-.565Z"})]})]}),_l=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"SN_-_Senegal_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#SN_-_Senegal_svg__a)",children:[(0,h.jsx)("path",{fill:"#FBCD17",d:"M5 0h6v12H5V0Z"}),(0,h.jsx)("path",{fill:"#006923",d:"m8.038 7.245-1.743 1.21.557-2.071-1.28-1.323 1.733-.072.733-2.047.733 2.047h1.73L9.223 6.384l.639 1.948-1.825-1.087Z"}),(0,h.jsx)("path",{fill:"#E11C1B",d:"M11 0h5v12h-5V0Z"}),(0,h.jsx)("path",{fill:"#006923",d:"M0 0h5v12H0V0Z"})]})]}),fl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"SC_-_Seychelles_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#SC_-_Seychelles_svg__a)",children:[(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"SC_-_Seychelles_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#SC_-_Seychelles_svg__b)",children:[(0,h.jsx)("path",{fill:"#FFD018",fillRule:"evenodd",d:"M0 11.998 8.076-1h8.075L0 11.998Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 11.998 17.232 5.5v-8.05L0 11.998Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 11.998 17.232 9.5V5.45L0 11.998Z"}),(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M0 11.998h17.232v-3.55L0 11.998Z",clipRule:"evenodd"})]})]})]}),gl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"SL_-_Sierra_Leone_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#SL_-_Sierra_Leone_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"SL_-_Sierra_Leone_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#SL_-_Sierra_Leone_svg__b)",children:[(0,h.jsx)("path",{fill:"#78D843",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#3D58DB",d:"M0 8v4h16V8H0Z"})]})]})]}),xl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"SO_-_Somalia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#SO_-_Somalia_svg__a)",children:[(0,h.jsx)("path",{fill:"#56C6F5",d:"M0 0h16v12H0V0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M7.99 7.359 6.106 8.555l.632-2.094-1.343-1.369 1.85-.04.82-2.068.746 2.095 1.846.032-1.387 1.394.647 1.992L7.99 7.36Z"})]})]}),Zl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"ZA_-_South_Africa_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#ZA_-_South_Africa_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsxs)("mask",{id:"ZA_-_South_Africa_svg__b",width:18,height:20,x:-1,y:-4,fill:"#000",maskUnits:"userSpaceOnUse",children:[(0,h.jsx)("path",{fill:"#fff",d:"M-1-4h18v20H-1z"}),(0,h.jsx)("path",{fillRule:"evenodd",d:"M7.714 5 0-1v14l7.714-6H16V5H7.714Z",clipRule:"evenodd"})]}),(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M7.714 5 0-1v14l7.714-6H16V5H7.714Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"m0-1 .614-.79L-1-3.044V-1h1Zm7.714 6-.614.79.271.21h.343V5ZM0 13h-1v2.045l1.614-1.256L0 13Zm7.714-6V6h-.343l-.27.21.613.79ZM16 7v1h1V7h-1Zm0-2h1V4h-1v1ZM-.614-.21l7.714 6 1.228-1.58-7.714-6L-.614-.21ZM1 13V-1h-2v14h2Zm6.1-6.79-7.714 6 1.228 1.58 7.714-6L7.1 6.21ZM16 6H7.714v2H16V6Zm-1-1v2h2V5h-2ZM7.714 6H16V4H7.714v2Z",mask:"url(#ZA_-_South_Africa_svg__b)"}),(0,h.jsx)("path",{fill:"#272727",stroke:"#FECA00",d:"M.3 2.6-.5 2v8l.8-.6 4-3 .533-.4-.533-.4-4-3Z"})]})]}),jl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"SS_-_South_Sudan_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("rect",{width:16,height:12,fill:"#fff",rx:0})}),(0,h.jsxs)("g",{mask:"url(#SS_-_South_Sudan_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#4E8B1D",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",stroke:"#F7FCFF",d:"M0 3.5h-.5v5h17v-5H0Z"}),(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"m0 0 10 6-10 6V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"m3.324 7.204-1.01 1.05-.105-1.492L.92 5.968l1.343-.421.22-1.48.93 1.172 1.355-.363-.7 1.387.681 1.339-1.426-.398Z",clipRule:"evenodd"})]})]}),yl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"SD_-_Sudan_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#SD_-_Sudan_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 0h16v12H0V0Z"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#272727",d:"M0 8v4h16V8H0Z"}),(0,h.jsx)("path",{fill:"#5EAA22",d:"m0 0 8 6-8 6V0Z"})]})]}),wl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"TZ_-_Tanzania_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#TZ_-_Tanzania_svg__a)",children:[(0,h.jsx)("path",{fill:"#3195F9",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"TZ_-_Tanzania_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#TZ_-_Tanzania_svg__b)",children:[(0,h.jsx)("path",{fill:"#73BE4A",fillRule:"evenodd",d:"M0 0v12L16 0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",stroke:"#FFD018",strokeWidth:1.25,d:"m-.91 12.72.346.52.52-.348L18.086.791l.52-.347-.347-.52-1.11-1.664-.347-.52-.52.348-18.13 12.101-.52.347.347.52 1.11 1.664Z"})]})]})]}),kl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"TG_-_Togo_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#TG_-_Togo_svg__a)",children:[(0,h.jsx)("path",{fill:"#5EAA22",stroke:"#F7FCFF",d:"M0-.5h-.5v13h17v-13H0Z"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M0 3v2h16V3H0ZM0 7v2h16V7H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F50101",d:"M0 0h8v7H0z"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"m4.125 5.072-1.86 1.15.722-1.931L1.5 2.99h1.824l.801-1.925.611 1.925h1.802L5.273 4.29l.623 1.837-1.771-1.056Z",clipRule:"evenodd"})]})]}),Rl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"TN_-_Tunisia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#TN_-_Tunisia_svg__a)",children:[(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"TN_-_Tunisia_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#TN_-_Tunisia_svg__b)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",d:"M8 10a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"M8.701 8.825S6.593 8.25 6.593 5.987c0-2.264 2.108-2.888 2.108-2.888-.871-.338-3.423.18-3.423 2.888 0 2.707 2.623 3.195 3.423 2.838Zm-.116-3.33-1.046.381 1.125.393.037 1.053.685-.818 1.128.08-.813-.663.49-.957-.957.321-.662-.828.013 1.037Z"})]})]})]}),Ml=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"UG_-_Uganda_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("rect",{width:16,height:12,fill:"#fff",rx:0})}),(0,h.jsxs)("g",{mask:"url(#UG_-_Uganda_svg__a)",children:[(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"UG_-_Uganda_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#UG_-_Uganda_svg__b)",children:[(0,h.jsx)("path",{fill:"#272727",d:"M0 0h16v2H0z"}),(0,h.jsx)("path",{fill:"#D74800",d:"M0 4h16v2H0z"}),(0,h.jsx)("path",{fill:"#272727",d:"M0 6h16v2H0z"}),(0,h.jsx)("path",{fill:"#D74800",d:"M0 10h16v2H0z"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M8 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",fillRule:"evenodd",d:"m6.84 4.164-.53.174.53.045s.085.21 0 .373c-.022.041-.078.094-.15.162-.21.2-.553.525-.553 1.055 0 .71 1.37 1.032 1.37 1.032v.337s.159.1-.748.1c-.787 0-.738.298-.711.461a.436.436 0 0 1 .008.065c0 .129.378-.13.555-.387.093-.135.483-.128.884-.09.031.002.324.62.07.94-.107.135-.474.152-.704.163-.117.006-.199.01-.191.026.006.013.075.009.176.003.125-.008.3-.018.461-.003.024.003-.07.085-.166.168-.099.086-.199.172-.17.174.031.001.216-.101.384-.194.139-.077.266-.148.285-.148.127 0 .241.016.342.03.168.023.296.04.377-.03.025-.021-.12-.056-.267-.091-.151-.036-.306-.073-.282-.098.14-.138.081-.428.036-.656a1.198 1.198 0 0 1-.036-.251c.012-.207.232-.099.404-.013.075.037.142.07.178.07.327 0-.079-.413-.301-.64l-.054-.054c-.113-.117-.034-.101.146-.066.137.027.332.066.544.066.49 0 .848-.16.724-.591-.082-.285-.531-.381-1-.483-.243-.052-.49-.105-.695-.186-.505-.199-.48-.49-.457-.734.004-.048.008-.094.008-.137 0-.266.449-.592.449-.592s-.205-.343-.545-.343c-.34 0-.371.343-.371.343Zm.924 3.124v-.25s.21-.008.283.169c.074.176-.283.081-.283.081Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#D74800",fillRule:"evenodd",d:"m6.538 3.356.507.6.263-.061-.126-.607-.644.068Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFD018",fillRule:"evenodd",d:"m7.196 3.21.033.904.433-.107.184-.591-.65-.206Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#D74800",fillRule:"evenodd",d:"M6.788 4.72a.171.171 0 0 0 .174-.17.171.171 0 0 0-.174-.168.171.171 0 0 0-.173.169c0 .093.078.168.173.168ZM7.888 3.38l-.504.603.107.248.575-.23-.178-.621ZM9.06 7.947s.886-.396.886-.95c0-.554-1.44-1.157-1.44-1.157s-.846.194-.464.453c.381.26.892.36.892.704 0 .345.14.674-.144.674-.283 0 .27.276.27.276Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFFDFF",fillRule:"evenodd",d:"M7.78 5.74s-.313.054-.298.105c.041.14.47.324.657.451.381.26.743.23 1.012.061.27-.168-1.37-.618-1.37-.618Z",clipRule:"evenodd"})]})]})]}),bl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"ZM_-_Zambia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#ZM_-_Zambia_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"ZM_-_Zambia_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#ZM_-_Zambia_svg__b)",children:[(0,h.jsx)("path",{fill:"#FF8126",d:"M13 5h3v7h-3z"}),(0,h.jsx)("path",{fill:"#272727",d:"M10 5h3v7h-3z"}),(0,h.jsx)("path",{fill:"#C51918",d:"M7 5h3v7H7z"}),(0,h.jsx)("path",{fill:"#FF8126",fillRule:"evenodd",d:"M10.808 1.558c.27.1 0 .252 0 .252s-.054-.062-.054-.114c0-.052-.207 0-.314.189-.101.178.085.177.282.177h.032c.111 0 .285-.011.446-.021.14-.01.271-.017.344-.017.157 0 .231 0 .438-.14.134-.09.578-.2.909-.283a3.88 3.88 0 0 0 .368-.1c.13-.058-.13.247-.13.247s1.006-.406 1.207-.544c.125-.086.068-.013-.024.107a2.871 2.871 0 0 0-.177.247c-.085.141.088.007.28-.142a4.22 4.22 0 0 1 .29-.212c.22-.139-.057.237-.18.354-.122.118.287 0 .43-.117.103-.086.008.065-.072.192a2.535 2.535 0 0 0-.07.115l-.003.005c-.055.1-.072.132.06.132s-.344.37-.344.37.142-.022 0 .224c-.084.146-.492.293-.822.412-.23.083-.424.153-.445.199-.037.083-.409.18-.582.225-.061.016-.098.025-.085.025.049 0 .13.062.042.062s-.243.05-.243.05.082 0 0 .116c-.039.056-.107.047-.155.04-.053-.006-.08-.01-.02.076.054.077.074.106.068.114-.008.01-.048-.007-.111-.007-.056 0-.116-.024-.18-.05-.069-.027-.142-.057-.218-.057-.139 0 0 .098.088.16l.01.007c.078.055.045.055-.095.054h-.046c-.087 0-.134-.01-.159-.014-.026-.006-.029-.006-.029.014s-.065-.007-.144-.04c-.082-.034-.178-.074-.23-.074-.103 0 .218.212.218.212s-.168-.054-.258-.098c-.052-.024.014.092.073.198.045.08.086.154.07.154a.265.265 0 0 1-.072-.029c-.065-.03-.145-.07-.145-.018 0 .078.074.135.164.135.09 0 .106.12.052.12-.018 0-.041-.008-.063-.015-.041-.015-.08-.028-.08.015 0 .028.017.05.036.073.025.034.055.073.055.145 0 .125-.134.143-.09.06.044-.083-.153-.283-.153-.185v.125c0 .089-.018.094-.044.103-.016.005-.036.012-.058.04-.033.042-.038.065-.04.079-.003.013-.004.016-.027.016-.019 0-.034-.028-.055-.065-.032-.057-.076-.136-.164-.173-.082-.034-.087-.01-.094.034a.163.163 0 0 1-.055.109c-.063.053-.046.075-.025.101.012.015.025.031.025.055 0 .066-.11-.066-.11-.156s-.126-.21-.126-.143 0 .143-.064.143c-.031 0-.032.022-.034.052-.002.032-.004.073-.044.104-.04.031-.04.015-.037-.022.002-.034.004-.087-.027-.134-.038-.058-.006-.149.01-.195.01-.029.015-.04-.01-.014-.062.066-.142.066-.196.066H9.8c-.027 0-.051.035-.068.06-.017.024-.027.038-.027 0 0-.076.08-.278.23-.278.117 0 .175-.047.225-.087a.498.498 0 0 1 .044-.033c.065-.041 0-.095-.064-.135-.03-.018-.019-.075.002-.127.035-.023.062-.052.062-.08 0-.036-.038.018-.063.08a.314.314 0 0 1-.143.05c-.034 0-.012-.062.014-.14a.7.7 0 0 0 .05-.202c0-.057.01-.107.016-.141.008-.045.012-.063-.016-.04-.035.03-.221-.003-.349-.025-.054-.01-.098-.017-.114-.017-.023 0-.004-.044.015-.089.024-.056.047-.111-.015-.077-.097.054-.295.052-.42.05h-.05c-.073 0-.023-.064.004-.1.016-.019.024-.029-.004-.012a.408.408 0 0 1-.233.062c-.037 0-.048-.022-.06-.047-.015-.03-.03-.063-.099-.062-.124 0-.152-.001-.22-.055-.036-.028-.016-.045-.005-.054.01-.009.014-.011-.04-.011h-.338c-.168 0 0-.131.061-.131.06 0 .131-.118 0-.065-.083.034-.173.024-.279.013-.06-.006-.124-.013-.196-.013-.199 0-.237-.092-.12-.092.119 0 .126-.068-.058-.068a.861.861 0 0 1-.28-.054.376.376 0 0 0-.098-.025c-.065 0-.135-.09 0-.09.134 0 .307-.076.16-.076-.084 0-.222-.044-.343-.083-.093-.03-.175-.056-.213-.056-.03 0 .016-.01.077-.023.121-.026.302-.065.071-.065-.247 0-.505-.2-.684-.34a1.144 1.144 0 0 0-.172-.12c-.138-.064 0-.189.04-.137.04.052.32.132.198.062a.724.724 0 0 1-.238-.252c-.04-.064-.009-.108.04-.057.05.05.276.195.276.195s-.121-.138-.218-.354c-.096-.216.097-.163.261 0 .165.164.32.207.398.216.077.01-.078-.117-.227-.216-.15-.098-.116-.45 0-.31.06.074.344.213.623.35.257.125.508.248.573.314.113.115.022-.056-.076-.24l-.06-.114c-.065-.125.197.018.496.18.214.117.448.244.591.288.099.03.217.08.335.129.29.12.581.241.581.085 0-.22.266-.565.551-.682.181-.073.266-.007.374.077.062.049.13.103.23.14ZM10.5 4.142c.064 0 .046-.669.046-.669s.19.41.19.588c0 .081-.005.105-.003.129.002.027.015.054.06.176.047.124.016.11-.068.074-.069-.03-.171-.074-.296-.074-.28 0 .006-.224.07-.224Z",clipRule:"evenodd"})]})]})]}),Fl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"ZW_-_Zimbabwe_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#ZW_-_Zimbabwe_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"ZW_-_Zimbabwe_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#ZW_-_Zimbabwe_svg__b)",children:[(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M0 1v10h16V1H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",stroke:"#E31D1C",strokeWidth:1.75,d:"M0 4.125h-.875v3.75h17.75v-3.75H0Z"}),(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M0 2V0h16v2H0Zm0 10v-2h16v2H0Z",clipRule:"evenodd"})]}),(0,h.jsx)("path",{fill:"#F7FCFF",stroke:"#272727",d:"M.298-.401-.5-.995V12.98l.794-.575L8.459 6.48l.551-.4-.546-.406L.298-.401Z"}),(0,h.jsx)("mask",{id:"ZW_-_Zimbabwe_svg__c",width:11,height:16,x:-1,y:-2,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",stroke:"#fff",d:"M.298-.401-.5-.995V12.98l.794-.575L8.459 6.48l.551-.4-.546-.406L.298-.401Z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#ZW_-_Zimbabwe_svg__c)",children:[(0,h.jsx)("path",{fill:"#E31D1C",d:"M3.74 7.14 1.85 8.663l.866-2.038-1.489-1.434h1.758l.721-1.73.766 1.73h1.755L4.66 6.626l.785 2.038L3.739 7.14Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"M2.509 4.21s-.028-.065.134-.124c.162-.058.212-.182.339-.091.126.091.206-.092.242.17.037.264.137.678.137.678L5.005 6.08h-.309s-.48.706-.402 1.326c0 0-.331-.05-.781-.05s-.744.108-.744.108l-.26-.962s.094-.162.134-.292c.04-.13.208-.154.208-.258 0-.104-.165-.19-.082-.459.082-.268.082-1.07.082-1.07s-.26-.115-.208-.115c.053 0 .174-.096.087-.096H2.51Z"})]})]})]}),Cl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"AF_-_Afghanistan_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#AF_-_Afghanistan_svg__a)",children:[(0,h.jsx)("path",{fill:"#67BD38",d:"M11 0h5v12h-5V0Z"}),(0,h.jsx)("path",{fill:"#D51700",d:"M5 0h6v12H5V0Z"}),(0,h.jsx)("path",{fill:"#272727",d:"M0 0h5v12H0V0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M5 6.05a3.05 3.05 0 1 0 5.48-1.844l-.443 1.338A2.055 2.055 0 0 1 9.3 7.675V5.3H9a1 1 0 0 0-2 0h-.3v2.293a2.045 2.045 0 0 1-.662-1.937H6l-.37-1.462A3.037 3.037 0 0 0 5 6.05Zm2.7.204V8.07a2.063 2.063 0 0 0 .6.015v-1.83a1 1 0 0 1-.6 0Z"})]})]}),Hl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"BH_-_Bahrain_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#BH_-_Bahrain_svg__a)",children:[(0,h.jsx)("rect",{width:16,height:12,fill:"#E31D1C",rx:1}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0h3.4L6 1 3.4 2 6 3 3.4 4 6 5 3.4 6 6 7 3.4 8 6 9l-2.6 1L6 11l-2.6 1H0V0Z",clipRule:"evenodd"})]})]}),Vl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"BD_-_Bangladesh_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#BD_-_Bangladesh_svg__a)",children:[(0,h.jsx)("path",{fill:"#38A17E",d:"M0 0h16v12H0z"}),(0,h.jsx)("path",{fill:"#F72E45",fillRule:"evenodd",d:"M6 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",clipRule:"evenodd"})]})]}),Sl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"BT_-_Bhutan_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#BT_-_Bhutan_svg__a)",children:[(0,h.jsx)("path",{fill:"#FF6230",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M0 0v12L16 0H0Z",clipRule:"evenodd"}),(0,h.jsx)("g",{filter:"url(#BT_-_Bhutan_svg__b)",children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M2.191 8.164s-.751.685-.156.721c.596.036.485.4.972.002.488-.397.015.063.665-.027s.975-.883 1.318-.829c.343.054.144-.072.433.27.29.344.797-.385.526.121-.27.506-.379 1.011.018.993.397-.018.56-.253.74-.505.181-.253 1.59.614.94-.253-.65-.867-.903.095-.957-.357-.054-.451-.183-.686.124-.47.307.218 1.03.163.47-.378-.56-.542-.483-.686-.645-.542-.163.144-.56-.542 0-.632.56-.09 1.204.217 1.42.38.218.162.886-.037 1.03.288.145.325.632.38.759.578.126.199.036 1.174 1.065 1.12 1.03-.055 1.354-.578.921-.994-.434-.415-.397-1.173-.849-.812-.451.36-1.101.307-1.101-.127 0-.433.198-.505.162-.848-.036-.344-.072-.2.596-.181.668.018.434 0 .921-.235.488-.234.813.795 1.011.036.199-.758-.072-1.535-.614-1.228-.541.307-.523 1.066-1.21.47-.686-.596-1.01-.289-.794-.614.217-.325-.054-.56.433-.343.488.217.344.289.759.343.415.054 2.618.325 2.13-.126-.487-.452-.955-.378-1.027-.667-.072-.29.225-.217.658-.38.434-.162.253-.993-.163-.83-.415.162-.38.885-1.228.433-.974.424-.823.211-1.319-.507-.433-.343-.668-.36-1.408.036-.585.241-1.074.687-.767 1.283.308.595 1.039 1.718.642 1.79-.398.072-1.824-.993-2.655-.433-.83.56-1.284 1.104-1.555 1.754-.27.65-1.147 1.029-1.364 1.029-.217 0-.522.382-.9.671Z",clipRule:"evenodd"})})]}),(0,h.jsx)("defs",{children:(0,h.jsxs)("filter",{id:"BT_-_Bhutan_svg__b",width:15.543,height:11.641,x:-.194,y:-.225,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,h.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,h.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,h.jsx)("feOffset",{}),(0,h.jsx)("feGaussianBlur",{stdDeviation:1}),(0,h.jsx)("feColorMatrix",{values:"0 0 0 0 0.866667 0 0 0 0 0.184314 0 0 0 0 0 0 0 0 0.38 0"}),(0,h.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_270_55195"}),(0,h.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_270_55195",result:"shape"})]})})]}),Al=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"BN_-_Brunei_Darussalam_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#BN_-_Brunei_Darussalam_svg__a)",children:[(0,h.jsx)("path",{fill:"#FFD221",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"BN_-_Brunei_Darussalam_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#BN_-_Brunei_Darussalam_svg__b)",children:[(0,h.jsx)("path",{fill:"#313131",d:"m-1.534 5.308 1.004-2.29 17.414 7.636-1.004 2.29-17.414-7.636Z"}),(0,h.jsx)("path",{fill:"#FAF9F9",d:"M-1.509 2.785-.505.495l18.28 8.012-1.004 2.29-18.28-8.012Z"}),(0,h.jsx)("path",{fill:"#CF1225",fillRule:"evenodd",d:"M8 1.444a.5.5 0 0 0-.5.5v1.814a1.461 1.461 0 0 0-.634-.158c-.549 0-1.166.768-1.166.768s1.02.028 1.8.802v2.774c-.863-.229-1.234-1.107-1.136-2.903l-1.498-.082c-.157 2.884.909 4.546 3.155 4.546 2.235 0 3.337-1.647 3.262-4.524l-1.5.038c.048 1.835-.37 2.724-1.283 2.936v-2.88c.765-.682 1.7-.707 1.7-.707S9.583 3.6 9.034 3.6c-.198 0-.38.05-.534.113v-1.77a.5.5 0 0 0-.5-.5ZM2.91 5.492a.5.5 0 1 1 .18-.984c.999.183 1.542.878 1.542 1.94v2.026a.5.5 0 1 1-1 0V6.449c0-.593-.212-.864-.722-.957Zm10.614-.582a.5.5 0 0 1-.402.582c-.51.093-.722.364-.722.957v2.025a.5.5 0 1 1-1 0V6.449c0-1.063.543-1.758 1.542-1.94a.5.5 0 0 1 .582.401ZM4.87 9.22l.826-.563c.463.68 1.211 1.02 2.303 1.02 1.1 0 1.793-.265 2.133-.758l.823.568c-.557.806-1.56 1.19-2.956 1.19-1.404 0-2.467-.484-3.13-1.457Z",clipRule:"evenodd"})]})]})]}),Ul=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("path",{fill:"#032EA1",d:"M0 0h16v12H0V0Z"}),(0,h.jsx)("path",{fill:"#E00025",d:"M0 3h16v6H0V3Z"}),(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M5.167 5.52v.03h.945v-.03h1.323v.06h.888v-.06H9.65v.03h.945v-.03h.11v1.306h-5.7V5.52h.163Zm-.163 1.306h-.302v.249h.69v.005h-.996v.426h.996v.004H4.201v.375h7.36V7.51h-1.195v-.004h1.002V7.08h-1.002v-.005h.696v-.249h-.358v.008h-5.7v-.008Zm5.59-1.306v-.84c-.014 0-.024.02-.035.045-.018.037-.04.084-.091.084-.045 0-.042-.054-.015-.096.021-.039.048-.09.012-.189-.027.075-.093.099-.081.054a.247.247 0 0 1 .028-.062c.022-.04.04-.073.008-.157-.015.102-.081.099-.066.039a.405.405 0 0 1 .015-.045c.017-.042.03-.077-.006-.15-.027.111-.06.105-.06.036 0-.102 0-.21-.126-.249 0 0-.009-.09-.057-.09-.045 0-.054.09-.054.09-.126.038-.126.145-.126.242v.007c0 .069-.033.075-.06-.036-.036.073-.023.108-.006.15l.015.045c.015.06-.05.063-.066-.039-.033.084-.014.118.008.157.01.017.021.036.028.062.012.045-.054.021-.08-.054-.037.099-.01.15.011.189.024.042.03.096-.015.096-.05 0-.073-.046-.09-.082-.012-.024-.022-.044-.036-.044v.837h.945Zm-2.27 0h-.889v-.105c0-.046-.025-.068-.047-.089-.02-.017-.037-.034-.037-.061 0 0-.012-.09.012-.132.033.12.09.099.09.048 0-.039-.025-.077-.084-.166l-.015-.023c-.024-.033-.009-.138.021-.177.012.09.027.135.066.135.024 0 .042-.015.042-.06a.167.167 0 0 0-.033-.092c-.01-.016-.02-.032-.027-.052a.15.15 0 0 1 .033-.159l.007.042c.008.06.012.084.044.084.075-.025.012-.127-.013-.166L7.49 4.54c-.018-.033.03-.102.03-.102.024.081.03.087.06.078.036-.009.03-.06-.012-.102-.027-.03-.024-.069.006-.099.03.057.066.054.069.018L7.618 4.2h.033l-.012-.1h.477l-.012.1h.036l-.027.129c-.006.036.042.045.072-.015.03.03.033.072.006.099-.042.042-.048.093-.012.102.03.009.036 0 .06-.078 0 0 .045.045.03.102l-.004.007c-.024.039-.09.145-.014.167.032 0 .036-.024.044-.084l.007-.042a.15.15 0 0 1 .03.159c-.007.021-.018.039-.028.056-.016.026-.032.051-.032.088 0 .045.021.06.045.06.039 0 .054-.042.066-.135.03.039.045.144.021.18l-.025.037c-.052.076-.077.112-.077.149 0 .051.06.072.09-.048.027.042.015.132.015.132 0 .028-.017.044-.036.062-.022.02-.046.043-.048.088v.105Zm-3.157 0v-.84c.014 0 .024.02.035.045.018.037.04.084.091.084.045 0 .042-.054.015-.096-.021-.039-.048-.09-.012-.189.027.075.093.099.081.054-.007-.026-.017-.045-.028-.062-.022-.04-.04-.073-.008-.157.015.102.081.099.066.039a.397.397 0 0 0-.015-.045c-.017-.042-.03-.077.006-.15.027.111.06.105.06.036 0-.102 0-.21.126-.249 0 0 .01-.09.057-.09.045 0 .054.09.054.09.126.038.126.145.126.242v.007c0 .069.033.075.06-.036.036.073.023.108.006.15a.397.397 0 0 0-.015.045c-.015.06.051.063.066-.039.033.084.014.118-.008.157-.01.017-.021.036-.028.062-.012.045.054.021.081-.054.036.099.01.15-.012.189-.024.042-.03.096.015.096.05 0 .073-.046.09-.082.012-.024.022-.044.036-.044v.837h-.945ZM7.81 4.093s-.003-.123.07-.126c.068 0 .065.126.065.126H7.81Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",d:"M5.167 5.55h-.015l.015.015V5.55Zm.945 0v.015l.015-.015h-.015Zm1.323.03H7.42l.015.015V5.58Zm.888 0v.015l.015-.015h-.015Zm1.326-.03h-.015l.015.015V5.55Zm.945 0v.015l.015-.015h-.015Zm.11-.03h.015l-.015-.015v.015Zm-5.7 0v-.015l-.015.015h.015Zm-.302 1.306v-.015l-.015.015h.015Zm0 .249h-.015l.015.015v-.015Zm.69 0h.015l-.015-.015v.015Zm0 .005v.015l.015-.015h-.015Zm-.996 0v-.015l-.015.015h.015Zm0 .426h-.015l.015.015v-.015Zm.996 0h.015l-.015-.015v.015Zm0 .004v.015l.015-.015h-.015Zm-1.191 0v-.015l-.015.015h.015Zm0 .375h-.015l.015.015v-.015Zm7.36 0V7.9l.014-.015h-.015Zm0-.375h.014l-.015-.015v.015Zm-1.195 0h-.015l.015.015V7.51Zm0-.004V7.49l-.015.015h.015Zm1.002 0v.015l.015-.015h-.015Zm0-.426h.015l-.015-.015v.015Zm-1.002 0h-.015l.015.015V7.08Zm0-.005V7.06l-.015.015h.015Zm.696 0v.015l.015-.015h-.015Zm0-.249h.015l-.015-.015v.015Zm-.358.008v.015l.015-.015h-.015Zm-5.7 0H4.99l.015.015v-.015Zm5.59-2.154h.015l-.015-.015v.015Zm-.035.045.013.006-.013-.006Zm-.106-.012.013.008-.013-.008Zm.012-.189.014-.005h-.028l.014.005Zm-.081.054.014.004-.014-.004Zm.028-.062-.013-.008.013.008Zm.008-.157.014-.005-.029.003.015.002Zm-.066.039-.014-.004.014.004Zm.015-.045-.014-.005.014.005Zm-.006-.15.014-.007-.029.003.015.004Zm-.186-.213-.015.001.01.013.005-.014Zm-.111 0 .004.014.011-.013-.015-.001Zm-.126.242h.015-.015Zm-.06-.029.015-.004-.028-.003.013.007Zm-.006.15.014-.005-.014.005Zm.015.045.015-.004-.015.004Zm-.066-.039.015-.002-.029-.003.014.005Zm.008.157.013-.008-.013.008Zm.028.062-.014.004.014-.004Zm-.08-.054.013-.005h-.028l.014.005Zm.011.189-.013.007.013-.007Zm-.106.014-.013.006.013-.006Zm-.035-.044v-.015l-.015.015h.015Zm-2.261.643-.01.011.01-.01Zm-.037-.061h.015v-.002l-.015.002Zm.012-.132.015-.004-.028-.003.013.007Zm.006-.118-.012.009.012-.009Zm-.015-.023.013-.008-.013.008Zm.021-.177.015-.002-.027-.007.012.009Zm.075-.017.013-.008-.013.008Zm-.027-.052-.014.005.014-.005Zm.033-.159.015-.002-.026-.009.011.011Zm.007.042-.015.003.015-.003Zm0 0 .014-.002-.014.002Zm.044.084v.016l.005-.002-.005-.014Zm-.013-.166-.013.008.013-.008ZM7.49 4.54l-.013.007.013-.007Zm.03-.102.014-.004-.026-.005.012.009Zm.06.078L7.575 4.5l.004.015Zm-.012-.102-.011.01.011-.01Zm.006-.099.013-.007-.024-.004.011.011Zm.069.018.016.001-.001-.004-.015.003ZM7.618 4.2v-.015l-.015.018.015-.003Zm.033 0v.015l.015-.017-.015.002Zm-.012-.1v-.015l-.015.017.015-.002Zm.477 0 .015.002-.015-.017V4.1Zm-.012.1-.015-.002.015.017V4.2Zm.036 0 .015.003-.015-.018V4.2Zm-.027.129-.015-.003.015.003Zm.072-.015.01-.01-.023.003.013.007Zm.006.099-.01-.01.01.01Zm-.012.102.004-.014-.004.014Zm.06-.078.01-.01-.024.006.014.004Zm.03.102.013.008.002-.004-.015-.004Zm-.004.007.012.008-.012-.008Zm-.014.167-.004.015h.004v-.015Zm.044-.084.015.003-.015-.003Zm0 0-.014-.002.014.002Zm0 0 .015.003-.014-.003Zm.007-.042.011-.01-.026.008.015.002Zm.03.159-.014-.006v.001l.014.005Zm-.028.056.013.007-.013-.007Zm.08.013.01-.01-.026.008.015.002Zm.02.18.012.008-.012-.008Zm-.025.037.012.009-.012-.009Zm.013.101.013-.008-.027.004.014.004Zm.015.132-.015-.002v.002h.015Zm-.036.062-.01-.011.01.01Zm-.048.088h-.015.015ZM5.167 4.68v-.015l-.015.015h.015Zm.035.045.014-.007-.014.007Zm.106-.012-.013.007v.001l.013-.008Zm-.012-.189.014-.005h-.028l.014.005Zm.081.054-.014.004.014-.004Zm-.028-.062.013-.008-.013.008Zm-.008-.157.015-.002-.029-.003.014.005Zm.066.039.015-.004-.015.004Zm-.015-.045-.014.006.014-.006Zm.006-.15.015-.004-.028-.003.013.007Zm.186-.213.004.014.011-.013-.015-.001Zm.111 0-.015.001.01.013.005-.014Zm.126.242h-.015.015Zm0 .007h-.015.015Zm.06-.036.013-.007-.028.003.015.004Zm.006.15.014.006-.014-.006Zm-.015.045-.014-.004.014.004Zm.066-.039.014-.005-.029.003.015.002Zm-.008.157-.013-.008.013.008Zm-.028.062.015.004-.015-.004Zm.081-.054.014-.005H5.97l.014.005Zm-.012.189.013.007-.013-.007Zm.106.014-.014-.007.014.007Zm.035-.044h.015l-.015-.015v.015Zm1.767-.716v-.015.015Zm-.069.126h-.015l.015.015v-.015Zm.135 0v.015l.015-.015h-.015ZM5.182 5.55v-.03h-.03v.03h.03Zm.93-.015h-.945v.03h.945v-.03Zm-.015-.015v.03h.03v-.03h-.03Zm1.338-.015H6.112v.03h1.323v-.03Zm.015.075v-.06h-.03v.06h.03Zm.873-.015h-.888v.03h.888v-.03Zm-.015-.045v.06h.03v-.06h-.03Zm1.341-.015H8.323v.03H9.65v-.03Zm.015.045v-.03h-.03v.03h.03Zm.93-.015h-.945v.03h.945v-.03Zm-.015-.015v.03h.03v-.03h-.03Zm.125-.015h-.11v.03h.11v-.03Zm.015 1.321V5.52h-.03v1.306h.03Zm-.015-.015h-5.7v.03h5.7v-.03ZM4.989 5.52v1.306h.03V5.52h-.03Zm.178-.015h-.163v.03h.163v-.03Zm-.163 1.306h-.302v.03h.302v-.03Zm-.317.015v.249h.03v-.249h-.03Zm.015.264h.69v-.03h-.69v.03Zm.675-.015v.005h.03v-.005h-.03Zm.015-.01h-.996v.03h.996v-.03Zm-1.011.015v.426h.03V7.08h-.03Zm.015.44h.996v-.03h-.996v.03Zm.981-.014v.004h.03v-.004h-.03Zm.015-.011H4.201v.03h1.191v-.03Zm-1.206.015v.375h.03V7.51h-.03Zm.015.39h7.36v-.03H4.2v.03Zm7.374-.015V7.51h-.03v.375h.03Zm-.015-.39h-1.194v.03h1.194v-.03Zm-1.179.015v-.004h-.03v.004h.03Zm-.015.01h1.002v-.03h-1.002v.03Zm1.017-.014V7.08h-.03v.426h.03Zm-.015-.441h-1.002v.03h1.002v-.03Zm-.987.015v-.005h-.03v.005h.03Zm-.015.01h.696v-.03h-.696v.03Zm.711-.015v-.249h-.03v.249h.03Zm-.015-.264h-.358v.03h.358v-.03Zm-.343.023v-.008h-.03v.008h.03Zm-5.715.015h5.7v-.03h-5.7v.03Zm-.015-.023v.008h.03v-.008h-.03Zm5.59-2.146v.84h.03v-.84h-.03Zm-.007.051a.224.224 0 0 1 .016-.03.025.025 0 0 1 .005-.005l.001-.001v-.03c-.015 0-.025.01-.031.02a.247.247 0 0 0-.018.033l.027.013Zm-.104.093c.03 0 .053-.015.07-.033.015-.019.026-.042.034-.06l-.027-.013a.235.235 0 0 1-.03.053.059.059 0 0 1-.047.023v.03Zm-.028-.12a.125.125 0 0 0-.021.074c0 .012.004.023.013.032.01.01.022.014.036.014v-.03c-.008 0-.012-.002-.014-.005-.003-.002-.005-.006-.006-.013a.095.095 0 0 1 .018-.055l-.026-.016Zm.011-.175a.216.216 0 0 1 .015.11.205.205 0 0 1-.026.067l.026.014a.235.235 0 0 0 .03-.077.243.243 0 0 0-.017-.124l-.028.01Zm-.081.045c-.004.013-.004.03.01.038a.03.03 0 0 0 .02.003.055.055 0 0 0 .017-.006.148.148 0 0 0 .062-.08l-.028-.01a.118.118 0 0 1-.048.064.024.024 0 0 1-.008.003c-.001 0 0 0 0 0 .005.003 0 .006.004-.004l-.03-.008Zm.029-.066c-.01.018-.022.039-.03.066l.03.008a.228.228 0 0 1 .026-.059l-.026-.015Zm.007-.144c.016.041.019.068.016.088a.155.155 0 0 1-.023.056l.026.015c.01-.02.022-.04.026-.067a.202.202 0 0 0-.017-.102l-.028.01Zm-.067.03c-.004.017-.003.033.004.045.004.006.01.011.016.014a.033.033 0 0 0 .02 0 .062.062 0 0 0 .035-.029.168.168 0 0 0 .02-.063l-.029-.004a.137.137 0 0 1-.016.052c-.007.011-.014.015-.017.016h-.002l-.001-.001c-.002-.003-.004-.01 0-.022l-.03-.008Zm.016-.046a.425.425 0 0 0-.016.046l.03.008c.004-.016.009-.03.014-.043l-.028-.011Zm-.005-.138c.017.035.022.059.021.079a.18.18 0 0 1-.016.059l.028.01c.009-.02.017-.042.018-.068a.191.191 0 0 0-.024-.094l-.027.014Zm-.062.029c0 .018.002.034.007.045a.035.035 0 0 0 .011.015.024.024 0 0 0 .022.004.037.037 0 0 0 .016-.012.092.092 0 0 0 .012-.02.324.324 0 0 0 .022-.064l-.03-.008a.291.291 0 0 1-.02.06.062.062 0 0 1-.007.013l-.003.002.006.001-.002-.003a.095.095 0 0 1-.004-.033h-.03Zm-.115-.235a.141.141 0 0 1 .1.092.443.443 0 0 1 .015.143h.03c0-.05 0-.106-.017-.153a.17.17 0 0 0-.12-.11l-.008.028Zm-.053-.089c.007 0 .013.003.018.01.006.006.01.015.014.025a.19.19 0 0 1 .01.04v.001l.015-.001.015-.002v-.004l-.002-.01a.215.215 0 0 0-.01-.034.11.11 0 0 0-.02-.036.054.054 0 0 0-.04-.019v.03Zm-.054.075.015.001v-.003a.233.233 0 0 1 .01-.038.084.084 0 0 1 .013-.026c.005-.006.01-.009.016-.009v-.03a.05.05 0 0 0-.039.02.113.113 0 0 0-.019.035.219.219 0 0 0-.01.044v.004l.014.002Zm-.111.242c0-.049 0-.097.015-.138.014-.04.042-.072.1-.09l-.008-.028a.17.17 0 0 0-.12.108c-.017.047-.017.1-.017.148h.03Zm0 .007v-.007h-.03v.007h.03Zm-.09-.032c.007.028.015.05.022.065a.096.096 0 0 0 .012.019c.005.005.01.01.017.012a.024.024 0 0 0 .021-.004.036.036 0 0 0 .011-.015.123.123 0 0 0 .007-.045h-.03a.095.095 0 0 1-.004.033l-.002.003a.007.007 0 0 1 .006 0l-.003-.003a.066.066 0 0 1-.008-.013.298.298 0 0 1-.02-.06l-.029.008Zm.023.14a.178.178 0 0 1-.016-.058c0-.02.004-.044.021-.08l-.026-.013a.19.19 0 0 0-.025.094c.001.026.01.048.018.069l.028-.011Zm.016.047-.016-.046-.028.01.015.044.029-.008Zm-.096-.033a.168.168 0 0 0 .021.063c.01.015.021.026.034.03a.033.033 0 0 0 .021-.001.032.032 0 0 0 .016-.014c.007-.012.008-.028.004-.045l-.03.008c.004.013.002.02 0 .022H9.87c-.003 0-.01-.004-.016-.015a.138.138 0 0 1-.017-.052l-.03.004Zm.036.147a.155.155 0 0 1-.023-.056.173.173 0 0 1 .016-.088l-.028-.01a.202.202 0 0 0-.017.102c.004.027.015.048.026.067l.026-.015Zm.03.066c-.008-.027-.02-.048-.03-.066l-.026.015a.23.23 0 0 1 .027.059l.029-.008Zm-.11-.045c.014.04.04.068.062.08a.054.054 0 0 0 .018.006.03.03 0 0 0 .019-.003c.014-.008.014-.025.01-.038l-.028.008c.002.01-.002.007.003.004.001 0 .002 0 0 0a.025.025 0 0 1-.008-.003.119.119 0 0 1-.048-.064l-.028.01Zm.04.177a.206.206 0 0 1-.027-.067.215.215 0 0 1 .015-.11l-.028-.01a.245.245 0 0 0-.016.124.235.235 0 0 0 .029.077l.026-.014Zm-.029.118a.047.047 0 0 0 .036-.014.051.051 0 0 0 .012-.032.139.139 0 0 0-.02-.072l-.026.014a.11.11 0 0 1 .016.056c0 .007-.002.011-.004.014-.002.002-.006.004-.014.004v.03Zm-.104-.09c.009.017.02.04.035.057a.09.09 0 0 0 .07.033v-.03a.06.06 0 0 1-.047-.022.229.229 0 0 1-.031-.052l-.027.013Zm-.022-.036h.001l.005.007c.005.006.01.016.016.028l.027-.013-.018-.033c-.006-.009-.016-.019-.03-.019v.03Zm.015.822v-.837h-.03v.837h.03Zm.93-.015h-.945v.03h.945v-.03Zm-3.159.03h.888v-.03h-.888v.03Zm-.015-.12v.105h.03v-.105h-.03Zm-.042-.078c.022.02.042.04.042.078h.03c0-.053-.03-.08-.052-.1l-.02.022Zm-.042-.072c0 .035.023.055.042.072l.02-.022c-.02-.018-.032-.03-.032-.05h-.03Zm.014-.14a.129.129 0 0 0-.014.044.3.3 0 0 0-.001.083.435.435 0 0 0 .001.014v.001l.015-.002.015-.002a.137.137 0 0 1-.002-.014.422.422 0 0 1 .002-.075.1.1 0 0 1 .01-.034l-.026-.014Zm.088.056c0 .01-.003.017-.006.021s-.006.005-.009.004c-.004 0-.01-.004-.02-.016a.197.197 0 0 1-.025-.061l-.03.008a.225.225 0 0 0 .03.07c.012.016.025.026.04.029a.039.039 0 0 0 .037-.015.064.064 0 0 0 .013-.04h-.03Zm-.081-.157c.03.044.05.075.063.1a.121.121 0 0 1 .018.057h.03a.15.15 0 0 0-.022-.071c-.014-.027-.035-.06-.064-.103l-.025.017ZM7.342 5l.015.024.025-.017-.015-.023L7.342 5Zm.021-.194a.22.22 0 0 0-.034.098.243.243 0 0 0 0 .053.09.09 0 0 0 .013.044l.024-.018a.062.062 0 0 1-.008-.029.214.214 0 0 1 .001-.046.192.192 0 0 1 .028-.084l-.024-.018Zm.078.129a.024.024 0 0 1-.016-.005.052.052 0 0 1-.013-.02.38.38 0 0 1-.022-.097l-.03.004c.006.045.013.08.024.105a.08.08 0 0 0 .023.031c.01.008.021.012.034.012v-.03Zm.027-.045c0 .02-.004.032-.009.038-.004.004-.01.007-.018.007v.03c.015 0 .03-.005.042-.019.01-.013.015-.032.015-.056h-.03Zm-.03-.084c.016.028.03.05.03.084h.03c0-.043-.018-.072-.035-.1l-.026.016Zm-.029-.055c.008.021.019.039.028.055l.026-.016a.31.31 0 0 1-.026-.05l-.028.011Zm.036-.175a.165.165 0 0 0-.036.175l.028-.01a.135.135 0 0 1 .03-.143l-.022-.022Zm.032.051a2.176 2.176 0 0 0-.006-.042l-.03.004.007.043.03-.005Zm0 0-.03.005.03-.005Zm.03.071c-.006 0-.01-.001-.011-.002-.002-.002-.004-.004-.006-.009a.273.273 0 0 1-.013-.06l-.03.005c.005.028.008.052.015.067.004.009.01.017.018.022a.05.05 0 0 0 .027.007v-.03Zm-.026-.143c.013.02.034.054.042.085a.07.07 0 0 1 .003.038c-.003.008-.01.016-.024.02l.01.03a.062.062 0 0 0 .042-.041.098.098 0 0 0-.002-.056c-.01-.035-.033-.072-.045-.092l-.026.016Zm-.005-.008.005.008.026-.015-.005-.009-.026.016Zm.043-.11-.012-.009v.001a.144.144 0 0 0-.008.012.29.29 0 0 0-.015.028.16.16 0 0 0-.013.038.06.06 0 0 0 .005.04l.026-.015c-.002-.004-.003-.01-.001-.02a.13.13 0 0 1 .01-.03.258.258 0 0 1 .019-.034v-.002h.001l-.012-.009Zm.056.064a.037.037 0 0 1-.013.002L7.559 4.5a.76.76 0 0 1-.025-.068l-.03.01.016.048a.11.11 0 0 0 .015.029.034.034 0 0 0 .024.014.063.063 0 0 0 .024-.004l-.008-.028Zm-.019-.077a.1.1 0 0 1 .031.054c.001.007 0 .013-.002.016-.001.003-.004.005-.01.006l.008.03a.044.044 0 0 0 .028-.021.055.055 0 0 0 .006-.034.13.13 0 0 0-.04-.073l-.02.022Zm.006-.12a.093.093 0 0 0-.028.059.082.082 0 0 0 .022.06l.022-.02a.052.052 0 0 1-.014-.039c0-.013.007-.027.02-.04l-.022-.02Zm.065.027c0 .007-.002.01-.004.011l-.003.001c-.006 0-.02-.009-.034-.036l-.026.014c.015.03.035.049.056.052a.033.033 0 0 0 .03-.01.048.048 0 0 0 .011-.03l-.03-.002Zm-.024-.128.024.132.03-.006-.024-.132-.03.006Zm.048-.018h-.033v.03h.033v-.03Zm-.027-.083.012.1.03-.004-.012-.1-.03.004Zm.492-.017h-.477v.03h.477v-.03Zm.003.117.012-.1-.03-.004-.012.1.03.004Zm.021-.017h-.036v.03h.036v-.03Zm-.012.147.027-.129-.03-.006-.027.129.03.006Zm.044-.025c-.014.028-.03.035-.037.036-.004 0-.005-.001-.006-.002 0-.001-.002-.004-.001-.01l-.03-.004a.04.04 0 0 0 .008.033c.008.009.019.013.03.012.023 0 .046-.019.062-.051l-.026-.014Zm.03.117c.034-.034.028-.086-.006-.12l-.022.02c.026.026.026.058.006.078l.022.022Zm-.02.076c-.005 0-.008-.003-.01-.006a.025.025 0 0 1-.001-.016.1.1 0 0 1 .03-.054l-.02-.022a.13.13 0 0 0-.04.073.055.055 0 0 0 .006.034c.006.01.016.017.028.02l.008-.029Zm.043-.067a.821.821 0 0 1-.026.067c-.002.003-.003.003-.004.003L8.183 4.5l-.008.028a.058.058 0 0 0 .025.003.035.035 0 0 0 .023-.014.117.117 0 0 0 .015-.03.851.851 0 0 0 .015-.047l-.028-.008Zm.059.11a.116.116 0 0 0-.011-.083.153.153 0 0 0-.023-.033l-.01.01-.012.01.002.002a.122.122 0 0 1 .017.024.086.086 0 0 1 .008.062l.029.008Zm-.007.011.005-.007-.026-.016-.004.007.025.016Zm-.022.145c-.014-.005-.02-.012-.023-.02a.071.071 0 0 1 .003-.04.38.38 0 0 1 .042-.085l-.025-.016c-.012.02-.035.057-.046.094a.1.1 0 0 0-.002.055c.005.02.02.034.043.04l.008-.028Zm.026-.072a.272.272 0 0 1-.013.06c-.002.005-.004.007-.006.009-.002 0-.005.002-.011.002v.03a.05.05 0 0 0 .027-.007.047.047 0 0 0 .018-.022c.007-.015.01-.039.014-.067l-.03-.005Zm0 0 .03.004-.03-.004Zm0 0 .03.005-.03-.005Zm.006-.042a2.17 2.17 0 0 0-.006.042l.03.005a2.1 2.1 0 0 1 .006-.043l-.03-.004Zm.059.167a.165.165 0 0 0-.033-.175l-.022.02a.135.135 0 0 1 .027.143l.028.012Zm-.03.057c.011-.016.023-.035.03-.058l-.028-.01a.251.251 0 0 1-.027.053l.026.015Zm-.029.081c0-.032.013-.054.03-.08l-.026-.016c-.016.026-.034.055-.034.096h.03Zm.03.045c-.009 0-.015-.003-.02-.008-.005-.006-.01-.017-.01-.037h-.03c0 .025.006.044.017.057a.055.055 0 0 0 .043.018v-.03Zm.051-.122a.372.372 0 0 1-.021.098.048.048 0 0 1-.014.02.025.025 0 0 1-.016.004v.03a.055.055 0 0 0 .034-.011.078.078 0 0 0 .023-.03.397.397 0 0 0 .024-.107l-.03-.004Zm.049.19a.099.099 0 0 0 .013-.044.25.25 0 0 0-.001-.055.219.219 0 0 0-.034-.098l-.024.018c.013.017.024.05.028.084a.221.221 0 0 1 .001.048.07.07 0 0 1-.008.03l.025.017Zm-.026.038.025-.038-.024-.016-.026.037.025.017Zm-.074.14a.11.11 0 0 1 .017-.052c.012-.023.031-.05.057-.088l-.025-.017c-.025.037-.045.066-.058.09a.138.138 0 0 0-.02.067h.029Zm.06-.052a.186.186 0 0 1-.024.06c-.009.013-.016.017-.02.017-.003.001-.006 0-.01-.004a.033.033 0 0 1-.006-.021h-.03c0 .016.005.03.013.04a.04.04 0 0 0 .038.015c.015-.003.029-.013.04-.03a.214.214 0 0 0 .029-.07l-.03-.007Zm.03.136.015.002v-.001a.312.312 0 0 0 .003-.051.18.18 0 0 0-.02-.09l-.026.016a.153.153 0 0 1 .016.074.383.383 0 0 1-.002.044v.003a.052.052 0 0 1 0 .001l.014.002Zm-.026.073c.018-.017.041-.038.041-.073h-.03c0 .02-.012.032-.031.05l.02.023Zm-.043.078c.001-.04.021-.058.043-.078l-.02-.022c-.023.02-.051.047-.053.098l.03.002Zm0 .104v-.105h-.03v.105h.03Zm-3.186-.84v.84h.03v-.84h-.03Zm.064.038c-.006-.012-.011-.024-.018-.033-.006-.01-.016-.02-.031-.02v.03h.001l.005.007c.005.007.01.016.016.029l.027-.013Zm.077.076a.059.059 0 0 1-.046-.023.236.236 0 0 1-.031-.053l-.027.013c.008.018.02.041.035.06a.088.088 0 0 0 .069.033v-.03Zm.002-.073c.013.02.019.04.018.055-.001.007-.003.01-.006.013-.002.003-.006.005-.014.005v.03a.049.049 0 0 0 .036-.014.051.051 0 0 0 .014-.032.125.125 0 0 0-.022-.073l-.026.016Zm-.013-.202a.245.245 0 0 0-.016.124.235.235 0 0 0 .029.077l.026-.014a.206.206 0 0 1-.026-.067.215.215 0 0 1 .015-.11l-.028-.01Zm.08.063c.003.01 0 .007.004.004.001 0 .002 0 0 0a.025.025 0 0 1-.008-.003.119.119 0 0 1-.048-.064l-.028.01c.014.04.04.068.062.08a.054.054 0 0 0 .018.006.03.03 0 0 0 .019-.003c.014-.008.014-.025.01-.038l-.028.008Zm-.026-.059a.23.23 0 0 1 .027.059l.029-.008c-.008-.027-.02-.048-.03-.066l-.026.015Zm-.009-.17a.202.202 0 0 0-.017.103c.004.027.015.048.026.067l.026-.015a.155.155 0 0 1-.023-.056.173.173 0 0 1 .016-.088l-.028-.01Zm.066.049c.003.013 0 .02 0 .022h-.004c-.003 0-.01-.004-.016-.015a.138.138 0 0 1-.017-.052l-.03.004a.168.168 0 0 0 .021.063c.01.015.021.026.034.03a.033.033 0 0 0 .021-.001.032.032 0 0 0 .016-.014c.007-.012.008-.028.004-.045l-.03.008Zm-.015-.043.015.043.029-.008-.016-.046-.028.01Zm.007-.163a.19.19 0 0 0-.025.094c.001.026.01.048.018.069l.028-.011a.178.178 0 0 1-.016-.06c0-.02.004-.044.021-.078l-.026-.014Zm.058.043a.095.095 0 0 1-.004.033l-.002.003a.007.007 0 0 1 .006 0l-.003-.003a.066.066 0 0 1-.008-.013.298.298 0 0 1-.02-.06l-.029.008c.007.028.015.05.022.065a.096.096 0 0 0 .012.019c.005.005.01.01.017.012a.024.024 0 0 0 .021-.004.036.036 0 0 0 .011-.015.123.123 0 0 0 .007-.045h-.03Zm.137-.263a.171.171 0 0 0-.12.11c-.017.047-.017.103-.017.153h.03c0-.052 0-.101.015-.143.014-.04.042-.074.1-.092l-.008-.028Zm.061-.091a.053.053 0 0 0-.04.019.11.11 0 0 0-.02.036.213.213 0 0 0-.012.047v.001a2.735 2.735 0 0 0 .03.003v-.003a.187.187 0 0 1 .01-.038.082.082 0 0 1 .014-.026c.006-.006.011-.009.018-.009v-.03Zm.054.105.015-.002a.225.225 0 0 0-.01-.048.113.113 0 0 0-.02-.036.05.05 0 0 0-.039-.019v.03c.006 0 .01.003.016.009.006.006.01.016.014.026a.197.197 0 0 1 .009.038v.003l.015-.001Zm.141.242c0-.048 0-.101-.017-.148a.17.17 0 0 0-.12-.108l-.008.028c.058.018.086.05.1.09.015.04.015.09.015.138h.03Zm0 .007v-.007h-.03v.007h.03Zm.03-.04a.297.297 0 0 1-.02.06.066.066 0 0 1-.007.013l-.003.002.006.001-.002-.003a.095.095 0 0 1-.004-.033h-.03c0 .018.002.034.007.045a.036.036 0 0 0 .011.015.024.024 0 0 0 .022.004.037.037 0 0 0 .016-.012.096.096 0 0 0 .012-.02.326.326 0 0 0 .022-.064l-.03-.008Zm.035.16c.008-.021.017-.043.018-.07a.19.19 0 0 0-.025-.093l-.026.014c.017.034.022.059.021.079 0 .02-.007.037-.016.059l.028.01Zm-.014.043a.386.386 0 0 1 .014-.043l-.028-.011-.015.046.029.008Zm.036-.045a.138.138 0 0 1-.016.052c-.007.011-.014.015-.017.016h-.002l-.001-.001c-.002-.003-.004-.01 0-.022l-.03-.008c-.004.017-.003.033.004.045.004.006.01.011.016.014a.033.033 0 0 0 .02 0 .062.062 0 0 0 .035-.029.168.168 0 0 0 .02-.063l-.029-.004Zm.02.166c.01-.02.022-.04.026-.067a.202.202 0 0 0-.017-.102l-.028.01c.016.041.019.068.016.088a.155.155 0 0 1-.023.056l.026.015Zm-.026.059a.23.23 0 0 1 .026-.059l-.026-.015c-.01.018-.022.039-.03.066l.03.008Zm.052-.063a.119.119 0 0 1-.048.064.025.025 0 0 1-.008.003c-.001 0 0 0 0 0 .005.003 0 .006.004-.004l-.03-.008c-.003.013-.003.03.011.038a.03.03 0 0 0 .02.003.054.054 0 0 0 .017-.006.148.148 0 0 0 .062-.08l-.028-.01Zm.015.201a.235.235 0 0 0 .03-.077.245.245 0 0 0-.017-.124l-.028.01c.017.048.019.083.015.11a.206.206 0 0 1-.026.067l.026.014Zm.002.074c-.008 0-.012-.002-.014-.004-.002-.003-.004-.007-.004-.014a.11.11 0 0 1 .016-.056l-.026-.014a.139.139 0 0 0-.02.072c0 .011.004.023.012.032.01.01.022.014.036.014v-.03Zm.077-.074a.229.229 0 0 1-.03.052.06.06 0 0 1-.047.022v.03a.09.09 0 0 0 .07-.033c.015-.018.026-.04.034-.058l-.027-.013Zm.05-.052c-.016 0-.026.01-.032.02-.006.008-.012.02-.018.032l.027.013a.217.217 0 0 1 .016-.028.026.026 0 0 1 .005-.006v-.001h.001v-.03Zm.014.852v-.837h-.03v.837h.03Zm-.96.015h.945v-.03h-.945v.03Zm2.711-1.583a.07.07 0 0 0-.052.026.13.13 0 0 0-.023.05.252.252 0 0 0-.008.06v.005h.03v-.001a.177.177 0 0 1 0-.017c.001-.011.003-.026.007-.04a.1.1 0 0 1 .017-.038.04.04 0 0 1 .03-.015v-.03Zm.067.141h.015v-.006a.294.294 0 0 0-.008-.06.13.13 0 0 0-.022-.05.064.064 0 0 0-.05-.025v.03c.01 0 .02.005.027.014a.1.1 0 0 1 .016.038.237.237 0 0 1 .007.058l.015.001Zm-.135.015h.135v-.03H7.81v.03Z"})]}),El=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"CN_-_China_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#CN_-_China_svg__a)",children:[(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 0h16v12H0V0Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"M3.557 4.878 1.61 6.403l.744-2.307-1.299-1.2 1.758-.065.744-1.857.744 1.857h1.754L4.76 4.096l.59 2.307-1.793-1.525ZM7.508 3.086l-.817.493.187-.962-.68-.72.92-.04.39-.898.39.899h.92l-.68.759.205.962-.835-.493Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"m8.508 5.086-.817.493.187-.962-.68-.72.92-.04.39-.898.39.899h.92l-.68.759.205.962-.835-.493Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"m7.508 7.086-.817.493.187-.962-.68-.72.92-.04.39-.898.39.899h.92l-.68.759.205.962-.835-.493Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"m5.508 8.086-.817.493.187-.962-.68-.72.92-.04.39-.898.39.899h.92l-.68.759.205.962-.835-.493Z"})]})]}),Tl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"CY_-_Cyprus_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#CY_-_Cyprus_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"CY_-_Cyprus_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#CY_-_Cyprus_svg__b)",children:[(0,h.jsx)("path",{fill:"#F57A01",d:"M12.284 2.38S9.643 3.839 9.31 3.93c-.332.093-.11.149-.683.112-.573-.037-1.7.206-1.958.04-.258-.167-.35-.462-.369.037-.019.498.388.923-.13.96-.516.037-.572-.444-.923-.148-.35.295-.646.96-.868.794-.221-.166-.535-.61-.443-.185.092.425.37 1.495 1.256 1.513.886.019 1.071-.295 1.108-.036.037.258.425.295.517-.037.092-.333.85.37 1.256.02.406-.351.739-.647.868-.85.13-.203.572-.166.997-.166.425 0 1.053.184.72-.222-.332-.406-.905-.59-.572-.997.332-.406 3.153-1.757 3.283-1.905.129-.148-.698-.702-1.085-.48Z"}),(0,h.jsx)("path",{fill:"url(#CY_-_Cyprus_svg__c)",d:"M12.284 2.38S9.643 3.839 9.31 3.93c-.332.093-.11.149-.683.112-.573-.037-1.7.206-1.958.04-.258-.167-.35-.462-.369.037-.019.498.388.923-.13.96-.516.037-.572-.444-.923-.148-.35.295-.646.96-.868.794-.221-.166-.535-.61-.443-.185.092.425.37 1.495 1.256 1.513.886.019 1.071-.295 1.108-.036.037.258.425.295.517-.037.092-.333.85.37 1.256.02.406-.351.739-.647.868-.85.13-.203.572-.166.997-.166.425 0 1.053.184.72-.222-.332-.406-.905-.59-.572-.997.332-.406 3.153-1.757 3.283-1.905.129-.148-.698-.702-1.085-.48Z"}),(0,h.jsx)("path",{fill:"#006B49",d:"M5.456 8.052c1.311 0 2.438 1.46 2.438 1.46.019.018.036.036.052.054L8 9.511s1.314-1.459 2.625-1.459-.944 2.124-2.403 2.124c0 0-.15-.014-.275-.076-.124.062-.274.076-.274.076-1.459 0-3.527-2.124-2.216-2.124Z"}),(0,h.jsx)("path",{fill:"url(#CY_-_Cyprus_svg__d)",d:"M5.456 8.052c1.311 0 2.438 1.46 2.438 1.46.019.018.036.036.052.054L8 9.511s1.314-1.459 2.625-1.459-.944 2.124-2.403 2.124c0 0-.15-.014-.275-.076-.124.062-.274.076-.274.076-1.459 0-3.527-2.124-2.216-2.124Z"})]})]}),(0,h.jsxs)("defs",{children:[(0,h.jsxs)("linearGradient",{id:"CY_-_Cyprus_svg__c",x1:15,x2:15,y1:9,y2:1,gradientUnits:"userSpaceOnUse",children:[(0,h.jsx)("stop",{stopColor:"#EA5113"}),(0,h.jsx)("stop",{offset:1,stopColor:"#FC9B58"})]}),(0,h.jsxs)("linearGradient",{id:"CY_-_Cyprus_svg__d",x1:11.019,x2:11.019,y1:10.176,y2:8.052,gradientUnits:"userSpaceOnUse",children:[(0,h.jsx)("stop",{stopColor:"#008057"}),(0,h.jsx)("stop",{offset:1,stopColor:"#00B77C"})]})]})]}),Ll=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"TL_-_Timor-Leste_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#TL_-_Timor-Leste_svg__a)",children:[(0,h.jsx)("path",{fill:"#E31D1C",stroke:"#F7FCFF",d:"M0-.5h-.5v13h17v-13H0Z"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"m0 0 12 6-12 6V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",fillRule:"evenodd",d:"m0 0 8 6-8 6V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"m3.324 7.204-1.01 1.05-.105-1.492L.92 5.968l1.343-.421.22-1.48.93 1.172 1.355-.363-.7 1.387.681 1.339-1.426-.398Z",clipRule:"evenodd"})]})]}),Dl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"GE_-_Georgia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#GE_-_Georgia_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"GE_-_Georgia_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fill:"#E31D1C",fillRule:"evenodd",clipRule:"evenodd",mask:"url(#GE_-_Georgia_svg__b)",children:[(0,h.jsx)("path",{d:"M7 0h2v5h7v2H9v5H7V7H0V5h7V0Z"}),(0,h.jsx)("path",{d:"M5 8.611 6.1 8.5v1S5 9.431 5 9.451c0 .02.1 1.049.1 1.049h-1l.08-1H3.1v-1l1.08.111L4.1 7.5h1L5 8.611ZM5 2.611 6.1 2.5v1S5 3.431 5 3.451c0 .02.1 1.049.1 1.049h-1l.08-1H3.1v-1l1.08.111L4.1 1.5h1L5 2.611ZM12 2.611l1.1-.111v1S12 3.431 12 3.451c0 .02.1 1.049.1 1.049h-1l.08-1H10.1v-1l1.08.111L11.1 1.5h1L12 2.611ZM12 8.611l1.1-.111v1S12 9.431 12 9.451c0 .02.1 1.049.1 1.049h-1l.08-1H10.1v-1l1.08.111L11.1 7.5h1L12 8.611Z"})]})]})]}),Nl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"IN_-_India_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#IN_-_India_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"IN_-_India_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#IN_-_India_svg__b)",children:[(0,h.jsx)("path",{fill:"#FF8C1A",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#5EAA22",d:"M0 8v4h16V8H0Z"}),(0,h.jsx)("path",{fill:"#3D58DB",d:"M6 6a2 2 0 1 0 4 0 2 2 0 0 0-4 0Zm3.5 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"}),(0,h.jsx)("path",{fill:"#3D58DB",d:"M7.997 6.43 7.58 7.967l.244-1.573-1.006 1.234.864-1.338-1.422.718 1.333-.871-1.59.078 1.572-.254-1.485-.575 1.54.407-1.123-1.13 1.24.999-.566-1.489.728 1.417L7.997 4l.089 1.59.727-1.417-.566 1.489 1.24-.998-1.122 1.13 1.54-.408-1.485.575 1.572.254-1.59-.078 1.332.871-1.421-.718.863 1.338L8.17 6.394l.244 1.573-.417-1.537Z"})]})]})]}),Ol=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"ID_-_Indonesia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#ID_-_Indonesia_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"ID_-_Indonesia_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#ID_-_Indonesia_svg__b)",children:(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0v6h16V0H0Z",clipRule:"evenodd"})})]})]}),Bl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"IR_-_Iran_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#IR_-_Iran_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"IR_-_Iran_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#IR_-_Iran_svg__b)",children:[(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{stroke:"#F7FCFF",strokeWidth:.5,d:"M.186 8.683H-.95M-.962 9.134v-.261h.37v.252h.374v-.252h-.194M.17 9.123h-.19v-.245h.397v-.2.445h.18v-.445M.759 8.704v.42H.573M2.138 8.683H1M.989 9.134v-.261h.37v.252h.374v-.252h-.194M2.155 9.123h-.188v-.245h.396v-.2.445h.18v-.445M2.745 8.704v.42H2.56M4.124 8.683H2.987M2.975 9.134v-.261h.37v.252h.374v-.252h-.194M4.106 9.123h-.188v-.245h.397v-.2.445h.18v-.445M4.696 8.704v.42H4.51M6.075 8.683H4.938M4.926 9.134v-.261h.37v.252h.374v-.252h-.194M6.058 9.123h-.189v-.245h.397v-.2.445h.18v-.445M6.648 8.704v.42H6.46M8.026 8.683H6.89M6.877 9.134v-.261h.37v.252h.374v-.252h-.194M8.044 9.123h-.189v-.245h.397v-.2.445h.18v-.445M8.634 8.704v.42h-.187M10.012 8.683H8.875M8.863 9.134v-.261h.37v.252h.375v-.252h-.194M10.03 9.123H9.84v-.245h.397v-.2.445h.18v-.445M10.62 8.704v.42h-.187M11.998 8.683h-1.137M10.85 9.134v-.261h.37v.252h.374v-.252H11.4M12.016 9.123h-.189v-.245h.397v-.2.445h.18v-.445M12.606 8.704v.42h-.187M13.984 8.683h-1.137M12.835 9.134v-.261h.37v.252h.375v-.252h-.194M13.967 9.123h-.188v-.245h.396v-.2.445h.18v-.445M14.557 8.704v.42h-.186M15.935 8.683H14.8M14.787 9.134v-.261h.37v.252h.374v-.252h-.194M16.023 9.123h-.189v-.245h.397v-.2.445h.18v-.445M.186 2.583H-.95M-.962 3.034v-.261h.37v.252h.374v-.252h-.194M.17 3.023h-.19v-.245h.397v-.2.445h.18v-.446M.759 2.604v.42H.573M2.138 2.583H1M.989 3.034v-.261h.37v.252h.374v-.252h-.194M2.155 3.023h-.188v-.245h.396v-.2.445h.18v-.446M2.745 2.604v.42H2.56M4.124 2.583H2.987M2.975 3.034v-.261h.37v.252h.374v-.252h-.194M4.106 3.023h-.188v-.245h.397v-.2.445h.18v-.446M4.696 2.604v.42H4.51M6.075 2.583H4.938M4.926 3.034v-.261h.37v.252h.374v-.252h-.194M6.058 3.023h-.189v-.245h.397v-.2.445h.18v-.446M6.648 2.604v.42H6.46M8.026 2.583H6.89M6.877 3.034v-.261h.37v.252h.374v-.252h-.194M8.044 3.023h-.189v-.245h.397v-.2.445h.18v-.446M8.634 2.604v.42h-.187M10.012 2.583H8.875M8.863 3.034v-.261h.37v.252h.375v-.252h-.194M10.03 3.023H9.84v-.245h.397v-.2.445h.18v-.446M10.62 2.604v.42h-.187M11.998 2.583h-1.137M10.85 3.034v-.261h.37v.252h.374v-.252H11.4M12.016 3.023h-.189v-.245h.397v-.2.445h.18v-.446M12.606 2.604v.42h-.187M13.984 2.583h-1.137M12.835 3.034v-.261h.37v.252h.375v-.252h-.194M13.967 3.023h-.188v-.245h.396v-.2.445h.18v-.446M14.557 2.604v.42h-.186M15.935 2.583H14.8M14.787 3.034v-.261h.37v.252h.374v-.252h-.194M16.023 3.023h-.189v-.245h.397v-.2.445h.18v-.446"}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M7.303 4.125s.214.112.432.112c.22 0 .44-.112.44-.112v.15s-.241.112-.454.112c-.213 0-.418-.112-.418-.112v-.15Zm-1.575 1.77c0-.889 1.221-1.47 1.221-1.47s-.706.378-.706 1.433c0 1.055.367 1.512.367 1.512s-.882-.586-.882-1.475Zm4.119-.049c0-.889-1.22-1.421-1.22-1.421s.706.378.706 1.433c0 1.055-.367 1.512-.367 1.512s.881-.635.881-1.524Zm-3.285.243c-.047-.888.692-1.684.692-1.684s-.27.366-.214 1.42c.02.361.162.9.341 1.217v-2.58h.75v2.602c.18-.296.318-.802.338-1.169.055-1.053-.201-1.49-.201-1.49s.738.796.692 1.684c-.028.529-.435 1.088-.76 1.454.158.035.37.078.66.135.007.032-.058.03-.187.028a4.118 4.118 0 0 0-.65.028c-.133.136-.225.216-.225.216l-.037-.047c-.023.027-.037.047-.037.047s-.093-.08-.225-.216a4.118 4.118 0 0 0-.65-.028c-.13.003-.194.004-.188-.028.29-.057.502-.1.66-.135-.325-.366-.732-.925-.76-1.454Z",clipRule:"evenodd"})]})]})]}),zl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"IQ_-_Iraq_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#IQ_-_Iraq_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"IQ_-_Iraq_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#IQ_-_Iraq_svg__b)",children:[(0,h.jsx)("path",{fill:"#BF2714",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#009C4E",fillRule:"evenodd",d:"M2.668 6.406C3.123 7.058 2.5 7.5 2.5 7.5s.545 0 .753-.437h4.46V6.1s-.094-.463-.491-.463-.487.463-.487.463H5.167l1.517-1.34-.295-.26-1.685 1.488v.315h2.393v-.185s.013-.108.125-.108.084.108.084.108v.396H4.291v-.542l-.326.146v.396s-.4-.108-.653-.108c-.252 0-.267-.288-.267-.288l-.377.288Zm6.055.037.245.609h-.973V4.607l.41.132v1.704h.318Zm4.532 0 .245.609h-.973V4.607l.41.132v1.704h.319Zm-1.204-1.81-.254.171v1.637h-.258V5.128l-.425.245v1.068h-.286V5.7l-.323.208v.201s-.622.043-.622.922h2.165l.003-2.399Zm-8.305 2.85c.078 0 .142-.056.142-.125 0-.07-.064-.125-.142-.125-.078 0-.142.056-.142.125s.064.125.142.125Zm7.211-2.662c-.11.145-.443 0-.443 0l.946-.11c-.098.191-.503.11-.503.11Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#009C4E",d:"m2.5 7.5-.145-.204-.64.454H2.5V7.5Zm.168-1.094-.152-.199-.19.145.137.197.205-.143Zm.585.657v-.25h-.157l-.068.142.225.108Zm4.46 0v.25h.25v-.25h-.25Zm0-.963h.25v-.025l-.006-.025-.245.05Zm-.978 0v.25h.207l.039-.203-.246-.047Zm-1.568 0-.165-.188-.496.438h.661V6.1Zm1.517-1.34.166.188.212-.188-.212-.187-.166.187ZM6.39 4.5l.166-.187-.166-.146-.165.146.165.187ZM4.704 5.988 4.539 5.8l-.085.075v.113h.25Zm0 .315h-.25v.25h.25v-.25Zm2.393 0v.25h.25v-.25h-.25Zm0-.185-.249-.031-.001.015v.016h.25Zm.21 0-.243-.062-.008.03v.032h.25Zm0 .396v.25h.25v-.25h-.25Zm-3.016 0h-.25v.25h.25v-.25Zm0-.542h.25v-.386l-.352.158.102.228Zm-.326.146-.102-.229-.148.066v.163h.25Zm0 .396-.066.241.316.086v-.327h-.25Zm-.92-.396.25-.013-.025-.475-.377.289.152.199Zm5.923.934v.25h.37L9.2 6.958l-.232.094Zm-.245-.61.232-.093-.063-.156h-.169v.25Zm-.728.61h-.25v.25h.25v-.25Zm0-2.445.076-.238-.326-.104v.342h.25Zm.41.132h.25v-.183L8.481 4.5l-.076.239Zm0 1.704h-.25v.25h.25v-.25Zm5.095.609v.25h.37l-.138-.344-.232.094Zm-.245-.61.232-.093-.063-.156h-.168v.25Zm-.728.61h-.25v.25h.25v-.25Zm0-2.445.076-.238-.326-.104v.342h.25Zm.41.132h.25v-.183l-.173-.056-.077.239Zm0 1.704h-.25v.25h.25v-.25Zm-1.14-1.639-.14-.207-.11.074v.133h.25Zm.254-.172h.25v-.47l-.39.263.14.207Zm-.254 1.809v.25h.25v-.25h-.25Zm-.258 0h-.25v.25h.25v-.25Zm0-1.313h.25v-.433l-.375.217.125.216Zm-.425.245-.125-.216-.125.072v.144h.25Zm0 1.068v.25h.25v-.25h-.25Zm-.286 0h-.25v.25h.25v-.25Zm0-.741h.25v-.458l-.385.248.135.21Zm-.323.208-.136-.21-.114.073v.137h.25Zm0 .201.017.25.233-.017V6.11h-.25Zm-.622.922h-.25v.25h.25v-.25Zm2.165 0v.25h.25v-.25h-.25Zm-1.534-2.21-.03-.249-.923.108.853.37.1-.23Zm.443 0 .05-.245-.154-.031-.095.125.2.15Zm.503-.11.222.114.213-.416-.464.054.029.248ZM2.5 7.5l.145.204.002-.002a.278.278 0 0 0 .011-.008.885.885 0 0 0 .11-.097c.063-.064.144-.16.209-.285a.936.936 0 0 0 .107-.47 1.087 1.087 0 0 0-.21-.58l-.41.287c.089.128.117.233.12.313a.437.437 0 0 1-.052.221.669.669 0 0 1-.177.213l-.001.001h.001L2.5 7.5Zm.528-.545a.501.501 0 0 1-.31.253.842.842 0 0 1-.22.042H2.5a32.552 32.552 0 0 1 .001.5h.005a.723.723 0 0 0 .115-.009c.066-.008.158-.025.258-.059a1 1 0 0 0 .601-.512l-.451-.215Zm4.684-.142H3.253v.5h4.46v-.5Zm-.25-.713v.963h.5V6.1h-.5Zm-.24-.213c.082 0 .136.042.182.115a.525.525 0 0 1 .063.149.012.012 0 0 0 0-.001 31.831 31.831 0 0 1 .49-.1v-.004a.566.566 0 0 0-.008-.03.986.986 0 0 0-.122-.28.704.704 0 0 0-.605-.349v.5Zm-.487.213.246.048v.001l.001-.007A.482.482 0 0 1 7.042 6c.045-.073.098-.114.18-.114v-.5a.7.7 0 0 0-.605.35 1.018 1.018 0 0 0-.127.315l.245.048Zm-1.568.25h1.568v-.5H5.167v.5ZM6.52 4.573l-1.517 1.34.33.374 1.518-1.34-.331-.374Zm-.295.114.295.26.33-.374-.294-.26-.331.374ZM4.869 6.175l1.686-1.488-.331-.374L4.539 5.8l.33.375Zm.085.128v-.315h-.5v.315h.5Zm2.143-.25H4.704v.5h2.393v-.5Zm-.25.065v.185h.5v-.185h-.5Zm.375-.358a.366.366 0 0 0-.361.27.381.381 0 0 0-.011.047v.005l-.001.002v.002l.248.032.248.03v.004a.152.152 0 0 1-.005.02.105.105 0 0 1-.013.027.135.135 0 0 1-.105.061v-.5Zm.084.358a25.223 25.223 0 0 0 .243.06v-.003a.237.237 0 0 0 .004-.018.38.38 0 0 0-.005-.158.317.317 0 0 0-.114-.17.345.345 0 0 0-.212-.069v.5a.157.157 0 0 1-.092-.035.183.183 0 0 1-.066-.097.14.14 0 0 1 0-.07v-.001l.242.06Zm.25.396v-.396h-.5v.396h.5Zm-3.265.25h3.015v-.5H4.291v.5Zm-.25-.792v.542h.5v-.542h-.5Zm.026.374.326-.146-.204-.456-.326.145.204.457Zm.148.168v-.396h-.5v.396h.5Zm-.903.142c.1 0 .242.022.37.049a4.344 4.344 0 0 1 .217.05 221.104 221.104 0 0 1 .131-.482h-.001l-.004-.002a2.78 2.78 0 0 0-.067-.017 4.842 4.842 0 0 0-.174-.039 2.526 2.526 0 0 0-.472-.06v.5Zm-.267-.538-.25.013a.152.152 0 0 1 0 .01.543.543 0 0 0 .01.07c.009.041.024.1.054.16a.49.49 0 0 0 .453.285v-.5c-.012 0-.008-.003 0 .003.004.003.001.003-.004-.007a.16.16 0 0 1-.014-.05V6.1v.003l-.25.014Zm-.225.486.377-.288-.304-.397-.377.288.304.397Zm6.38.354-.245-.609-.464.187.245.609.464-.187Zm-1.205.344h.973v-.5h-.973v.5Zm-.25-2.695v2.445h.5V4.607h-.5ZM8.48 4.5l-.41-.13-.152.475.41.132.152-.477Zm.174 1.943V4.739h-.5v1.704h.5Zm.068-.25h-.318v.5h.318v-.5Zm5.009.765-.244-.609-.464.187.244.609.464-.187Zm-1.205.344h.973v-.5h-.973v.5Zm-.25-2.695v2.445h.5V4.607h-.5Zm.737-.107-.41-.13-.153.475.41.132.153-.477Zm.173 1.943V4.739h-.5v1.704h.5Zm.069-.25h-.319v.5h.319v-.5ZM11.936 5.01l.254-.171-.28-.415-.254.172.28.414Zm.11 1.43V4.804h-.5v1.637h.5Zm-.508.25h.258v-.5h-.258v.5Zm-.25-1.563v1.313h.5V5.128h-.5Zm-.05.462.425-.245-.25-.433-.425.245.25.433Zm.125.851V5.373h-.5v1.068h.5Zm-.536.25h.286v-.5h-.286v.5Zm-.25-.991v.741h.5V5.7h-.5Zm.062.418.323-.208-.27-.42-.324.208.271.42Zm.115-.009v-.201h-.5v.201h.5Zm-.622.922c0-.372.127-.526.214-.593a.418.418 0 0 1 .173-.079h.007-.004l-.018-.25-.018-.25h-.003a.26.26 0 0 0-.015.002.615.615 0 0 0-.134.03.917.917 0 0 0-.295.152c-.224.174-.407.482-.407.988h.5Zm1.915-.25H9.883v.5h2.165v-.5Zm-.247-2.149-.003 2.4h.5l.003-2.4h-.5ZM3.638 7.358c0-.046.02-.08.043-.1a.1.1 0 0 1 .065-.025v.5c.186 0 .392-.14.392-.375h-.5Zm.108.125a.1.1 0 0 1-.065-.026.132.132 0 0 1-.043-.1h.5c0-.235-.206-.374-.392-.374v.5Zm.108-.125c0 .045-.021.08-.043.099a.1.1 0 0 1-.065.026v-.5c-.186 0-.392.14-.392.375h.5Zm-.108-.125a.1.1 0 0 1 .065.026c.022.019.043.053.043.099h-.5c0 .235.206.375.392.375v-.5Zm6.768-2.412-.1.23h.003l.005.002a.574.574 0 0 0 .064.025c.04.013.098.031.162.043a.71.71 0 0 0 .23.008.418.418 0 0 0 .278-.157l-.398-.302c.025-.034.055-.036.048-.035a.23.23 0 0 1-.066-.006.668.668 0 0 1-.12-.035l-.007-.002-.1.229Zm.917-.358-.946.11.057.496.947-.11-.058-.496Zm-.474.358-.049.245h.003a.271.271 0 0 0 .023.005 1.303 1.303 0 0 0 .246.016.788.788 0 0 0 .247-.044.459.459 0 0 0 .255-.218l-.445-.228c.014-.026.031-.028.016-.023a.302.302 0 0 1-.089.014.787.787 0 0 1-.157-.012h-.001l-.049.245Z"})]})]})]}),Pl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"IL_-_Isreal_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#IL_-_Isreal_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"IL_-_Isreal_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fill:"#3D58DB",fillRule:"evenodd",clipRule:"evenodd",mask:"url(#IL_-_Isreal_svg__b)",children:[(0,h.jsx)("path",{d:"M0 2v1.783h16V2H0ZM0 8.174V10h16V8.174H0Z"}),(0,h.jsx)("path",{d:"M5.69 7.47h4.69L8.057 3.46 5.691 7.47Zm3.735-.55H6.654l1.4-2.371 1.371 2.37Z"}),(0,h.jsx)("path",{d:"M5.546 4.463h4.794L8.068 8.485 5.546 4.463Zm3.852.55H6.54L8.043 7.41l1.355-2.398Z"})]})]})]}),Il=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"JP_-_Japan_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#JP_-_Japan_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"JP_-_Japan_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#JP_-_Japan_svg__b)",children:(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M8 9.75a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5Z",clipRule:"evenodd"})})]})]}),Gl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"JO_-_Jordan_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#JO_-_Jordan_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"JO_-_Jordan_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#JO_-_Jordan_svg__b)",children:[(0,h.jsx)("path",{fill:"#272727",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#093",d:"M0 8v4h16V8H0Z"})]}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0v12l10-6L0 0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"JO_-_Jordan_svg__c",width:10,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12l10-6L0 0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#JO_-_Jordan_svg__c)",children:(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"m4.5 6.935-.934.565.213-1.102L3 5.573l1.055-.044L4.5 4.5l.446 1.029H6l-.777.87.234 1.101-.956-.565Z",clipRule:"evenodd"})})]})]}),Kl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"KZ_-_Kazakhstan_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#KZ_-_Kazakhstan_svg__a)",children:[(0,h.jsx)("path",{fill:"#4EC7EE",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"KZ_-_Kazakhstan_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#KZ_-_Kazakhstan_svg__b)",children:[(0,h.jsx)("path",{fill:"#FFE402",d:"M2.045 11.618c-.032.236.119.403.371.51.34.145.682.01.997-.34l-.408-.368c-.14.155-.241.215-.32.214.154-.11.35-.244.588-.404l.115-.166c.092-.395-.194-.608-.63-.608-.257 0-.463.05-.593.16-.214.18-.177.466.048.615a.593.593 0 0 0 .054.032c-.126.107-.203.217-.222.355Z"}),(0,h.jsx)("path",{stroke:"#FFE402",strokeWidth:.55,d:"M2.282 11.248s.063-.139.032-.21"}),(0,h.jsx)("path",{fill:"#FFE402",d:"M4.285 11.618c.032.236-.119.403-.372.51-.339.145-.681.01-.997-.34l.409-.368c.14.155.24.215.319.214-.153-.11-.349-.244-.587-.404l-.115-.166c-.092-.395.194-.608.63-.608.257 0 .462.05.593.16.214.18.177.466-.048.615a.593.593 0 0 1-.054.032c.126.107.203.217.222.355Z"}),(0,h.jsx)("path",{fill:"#FFE402",d:"m4.298 11.135-.501.226c-.07-.156-.092-.298-.033-.433l.504.219c.017-.04.017-.04.03-.012ZM2.045.382c-.032-.235.119-.403.371-.51.34-.145.682-.01.997.34L3.005.58c-.14-.155-.241-.215-.32-.214.154.11.35.244.588.404l.115.166c.092.395-.194.608-.63.608-.257 0-.463-.05-.593-.16-.214-.18-.177-.466.048-.615a.582.582 0 0 1 .054-.032C2.141.631 2.064.52 2.045.382Z"}),(0,h.jsx)("path",{fill:"#FFE402",d:"M4.285.382c.032-.235-.119-.403-.372-.51-.339-.145-.681-.01-.997.34l.409.368c.14-.155.24-.215.319-.214-.153.11-.349.244-.587.404l-.115.166c-.092.395.194.608.63.608.257 0 .462-.05.593-.16.214-.18.177-.466-.048-.615a.582.582 0 0 0-.054-.032c.126-.106.203-.217.222-.355Z"}),(0,h.jsx)("path",{fill:"#FFE402",fillRule:"evenodd",d:"M2.547 10.031c-.316.01-.512.075-.512.379 0 .335.326.44.673.44.314 0 .667-.195.667-.544 0-.212-.27-.64-.95-1.57-.023-.021-.036-.033-.046-.033a.437.437 0 0 1 .21-.05c.033 0 .076.017.119.039v.364h.72v-.275c0-.31-.46-.678-.84-.678-.331 0-.598.158-.733.385-.133.225-.031.44.16.611.285.393.506.718.645.932h-.113Zm.034.254a.454.454 0 0 1-.029-.007c.007.007.033.038.033.132a.884.884 0 0 1-.006.112.264.264 0 0 1-.05-.335l.001-.002-.01-.02.004-.003c.016-.008.03-.015.006.023l.05.1Zm-.029-.007-.01-.003c.002 0 .003 0 .005.002h.005Zm.273.028c0-.01-.003-.015-.008-.018l.003.004a.049.049 0 0 1 .005.014Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFE402",fillRule:"evenodd",d:"M3.783 10.031c.315.01.512.075.512.379 0 .335-.326.44-.673.44-.314 0-.668-.195-.668-.544 0-.212.27-.64.95-1.57.024-.021.037-.033.047-.033a.437.437 0 0 0-.21-.05.299.299 0 0 0-.119.039v.364h-.72v-.275c0-.31.46-.678.84-.678.331 0 .597.158.732.385.134.225.032.44-.16.611-.285.393-.506.718-.644.932h.113Zm-.034.254a.454.454 0 0 0 .029-.007c-.007.007-.033.038-.033.132 0 .05.002.087.005.112a.264.264 0 0 0 .051-.335l-.001-.002.01-.02-.004-.003c-.016-.008-.03-.015-.006.023l-.051.1Zm.029-.007.01-.003a.022.022 0 0 0-.005.002h-.005Zm-.274.028c0-.01.004-.015.01-.018l-.004.004a.049.049 0 0 0-.006.014Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFE402",fillRule:"evenodd",d:"M2.547 6.677c-.316-.009-.512-.074-.512-.378 0-.335.326-.44.673-.44.314 0 .667.195.667.544 0 .212-.27.64-.95 1.57-.023.021-.036.032-.046.033.04.022.113.05.21.05a.299.299 0 0 0 .119-.039v-.364h.72v.275c0 .31-.46.677-.84.677-.331 0-.598-.157-.733-.384-.133-.225-.031-.44.16-.611.285-.393.506-.718.645-.932h-.113Zm.034-.253a.461.461 0 0 0-.029.007c.007-.007.033-.038.033-.132a.884.884 0 0 0-.006-.112.264.264 0 0 0-.05.334l.001.003-.01.02.004.003c.016.008.03.015.006-.023l.05-.1Zm-.029.007-.01.003a.017.017 0 0 0 .005-.002l.005-.001Zm.273-.028c0 .01-.003.015-.008.018l.003-.004a.05.05 0 0 0 .005-.014Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFE402",fillRule:"evenodd",d:"M3.783 6.677c.315-.009.512-.074.512-.378 0-.335-.326-.44-.673-.44-.314 0-.668.195-.668.544 0 .212.27.64.95 1.57.024.021.037.032.047.033a.437.437 0 0 1-.21.05.299.299 0 0 1-.119-.039v-.364h-.72v.275c0 .31.46.677.84.677.331 0 .597-.157.732-.384.134-.225.032-.44-.16-.611a22.959 22.959 0 0 1-.644-.932h.113Zm-.034-.253.029.007c-.007-.007-.033-.038-.033-.132 0-.05.002-.087.005-.112a.264.264 0 0 1 .051.334l-.001.003.01.02-.004.003c-.016.008-.03.015-.006-.023l-.051-.1Zm.029.007.01.003a.017.017 0 0 1-.005-.002l-.005-.001Zm-.274-.028c0 .01.004.015.01.018l-.004-.004a.049.049 0 0 1-.006-.014Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFE402",fillRule:"evenodd",d:"M2.547 5.323c-.316.009-.512.074-.512.378 0 .335.326.44.673.44.314 0 .667-.195.667-.544 0-.212-.27-.64-.95-1.57-.023-.021-.036-.032-.046-.033a.437.437 0 0 1 .21-.05c.033 0 .076.017.119.039v.364h.72v-.275c0-.31-.46-.677-.84-.677-.331 0-.598.157-.733.384-.133.225-.031.44.16.611.285.393.506.718.645.932h-.113Zm.034.253a.469.469 0 0 1-.029-.007c.007.007.033.038.033.132a.884.884 0 0 1-.006.112.264.264 0 0 1-.05-.334l.001-.003-.01-.02.004-.003c.016-.008.03-.015.006.023l.05.1Zm-.029-.007-.01-.003.005.002.005.001Zm.273.028c0-.01-.003-.015-.008-.018l.003.004a.05.05 0 0 1 .005.014Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFE402",fillRule:"evenodd",d:"M3.783 5.323c.315.009.512.074.512.378 0 .335-.326.44-.673.44-.314 0-.668-.195-.668-.544 0-.212.27-.64.95-1.57.024-.021.037-.032.047-.033a.437.437 0 0 0-.21-.05.299.299 0 0 0-.119.039v.364h-.72v-.275c0-.31.46-.677.84-.677.331 0 .597.157.732.384.134.225.032.44-.16.611-.285.393-.506.718-.644.932h.113Zm-.034.253a.469.469 0 0 0 .029-.007c-.007.007-.033.038-.033.132 0 .05.002.087.005.112a.264.264 0 0 0 .051-.334L3.8 5.476l.01-.02-.004-.003c-.016-.008-.03-.015-.006.023l-.051.1Zm.029-.007.01-.003a.017.017 0 0 0-.005.002l-.005.001Zm-.274.028c0-.01.004-.015.01-.018l-.004.004a.049.049 0 0 0-.006.014Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFE402",fillRule:"evenodd",d:"M2.547 1.968c-.316-.009-.512-.074-.512-.378 0-.335.326-.44.673-.44.314 0 .667.195.667.544 0 .212-.27.64-.95 1.57-.023.021-.036.033-.046.033.04.023.113.05.21.05a.299.299 0 0 0 .119-.039v-.364h.72v.275c0 .31-.46.678-.84.678-.331 0-.598-.158-.733-.385-.133-.225-.031-.44.16-.611.285-.393.506-.718.645-.932h-.113Zm.034-.253a.469.469 0 0 0-.029.007c.007-.007.033-.038.033-.132a.884.884 0 0 0-.006-.112.264.264 0 0 0-.05.335l.001.002-.01.02.004.003c.016.008.03.015.006-.023l.05-.1Zm-.029.007-.01.003a.017.017 0 0 0 .005-.002h.005Zm.273-.028c0 .01-.003.015-.008.018l.003-.004a.05.05 0 0 0 .005-.014Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFE402",fillRule:"evenodd",d:"M3.783 1.968c.315-.009.512-.074.512-.378 0-.335-.326-.44-.673-.44-.314 0-.668.195-.668.544 0 .212.27.64.95 1.57.024.021.037.033.047.033a.437.437 0 0 1-.21.05.299.299 0 0 1-.119-.039v-.364h-.72v.275c0 .31.46.678.84.678.331 0 .597-.158.732-.385.134-.225.032-.44-.16-.611a22.959 22.959 0 0 1-.644-.932h.113Zm-.034-.253.029.007c-.007-.007-.033-.038-.033-.132 0-.05.002-.087.005-.112a.264.264 0 0 1 .051.335l-.001.002.01.02-.004.003c-.016.008-.03.015-.006-.023l-.051-.1Zm.029.007.01.003a.017.017 0 0 1-.005-.002h-.005Zm-.274-.028c0 .01.004.015.01.018l-.004-.004a.049.049 0 0 1-.006-.014ZM9.493 1.392l.205.764s.003.174-.194.174c-.196 0-.205-.174-.205-.174l.194-.764Zm1.732 2.918c0 .994-.759 1.8-1.695 1.8s-1.695-.806-1.695-1.8.76-1.8 1.695-1.8c.936 0 1.695.806 1.695 1.8Zm-.934-2 .027-.79-.41.673s-.04.17.147.227c.187.057.236-.11.236-.11Zm.78-.416-.258.748s-.095.145-.258.036c-.162-.11-.073-.26-.073-.26l.588-.524Zm.147 1.228.465-.64-.716.33s-.129.116-.005.269c.123.152.256.04.256.04Zm.888.117-.64.465s-.161.064-.232-.119a.19.19 0 0 1 .089-.254l.783-.092Zm-.562 1.102.748-.257-.776-.141s-.172.021-.159.217c.014.196.187.181.187.181Zm.686.607-.79.028s-.17-.037-.125-.228c.044-.191.215-.162.215-.162l.7.362Zm-1.067.603.764.204-.564-.55s-.155-.079-.253.091c-.098.17.053.255.053.255Zm.245.883-.67-.42s-.12-.124.023-.258.269-.014.269-.014l.378.692Zm-1.207-.107.52.597-.16-.772S10.476 6 10.3 6.086c-.177.086-.099.24-.099.24Zm-.277.854-.321-.722s-.03-.171.164-.202c.193-.03.23.14.23.14l-.073.784ZM9 6.396l.082.787.312-.724s.018-.173-.176-.204c-.194-.03-.218.141-.218.141Zm-.715.532.151-.776s.074-.157.25-.071c.176.086.11.246.11.246l-.51.601Zm-.318-1.186-.371.699.663-.426s.111-.134-.032-.268c-.143-.133-.26-.005-.26-.005Zm-.892.022.559-.56s.149-.088.247.081a.19.19 0 0 1-.047.266l-.76.213Zm.392-1.178-.698.372.788.018s.167-.049.123-.24c-.045-.191-.213-.15-.213-.15Zm-.763-.493.777-.15s.173.01.16.205c-.014.195-.188.193-.188.193l-.749-.248Zm.97-.762-.786-.083.643.456s.165.053.236-.13c.07-.183-.093-.243-.093-.243Zm-.367-.841.723.321s.136.108.013.26c-.124.152-.265.05-.265.05l-.47-.631Zm1.208-.071-.597-.52.266.743s.105.138.268.029c.162-.11.063-.252.063-.252Zm.154-.896.42.67s.052.166-.135.223c-.188.057-.248-.106-.248-.106l-.037-.787Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFE402",d:"m5.774 4 .721.073c-.346 2.347.588 3.404 3.019 3.404 2.46 0 3.6-1.105 3.6-3.477 0 0 .512-.029.507.073-.11 2.73-1.281 4.481-4.179 4.481-3.036 0-4.104-1.598-3.668-4.554Z"}),(0,h.jsx)("path",{fill:"#FFE402",d:"m5.99 5.4.68.073c-.326 2.347.556 3.404 2.851 3.404 2.324 0 3.4-1.105 3.4-3.477 0 0 .484-.03.48.073-.104 2.73-1.21 4.481-3.947 4.481-2.867 0-3.877-1.598-3.465-4.554Z"})]})]})]}),Wl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"KW_-_Kuwait_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#KW_-_Kuwait_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"KW_-_Kuwait_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#KW_-_Kuwait_svg__b)",children:[(0,h.jsx)("path",{fill:"#093",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 8v4h16V8H0Z"})]}),(0,h.jsx)("path",{fill:"#272727",fillRule:"evenodd",d:"M0 0v12l6-4V4L0 0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"KW_-_Kuwait_svg__c",width:6,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12l6-4V4L0 0Z",clipRule:"evenodd"})})]})]}),ql=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"KG_-_Kyrgyzstan_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#KG_-_Kyrgyzstan_svg__a)",children:[(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"KG_-_Kyrgyzstan_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#KG_-_Kyrgyzstan_svg__b)",children:(0,h.jsx)("path",{fill:"#FFDC17",fillRule:"evenodd",d:"M7.991 8.933c.054 0 .107-.001.16-.004l.308.984.072-1.028c.103-.018.204-.042.304-.071l.529.887-.17-1.017a2.99 2.99 0 0 0 .279-.14l.721.743-.402-.952a2.99 2.99 0 0 0 .239-.198l.875.557-.612-.834a2.95 2.95 0 0 0 .186-.247l.98.342-.788-.671c.046-.092.087-.187.124-.284l1.033.109-.923-.473c.023-.1.04-.201.054-.305l1.03-.13-1.008-.249a2.98 2.98 0 0 0-.018-.309l.972-.362L10.9 5.27a2.926 2.926 0 0 0-.09-.298l.86-.574-1.01.226a2.965 2.965 0 0 0-.157-.27l.703-.755-.93.452a3.002 3.002 0 0 0-.216-.227l.508-.895-.8.651a2.999 2.999 0 0 0-.262-.172l.286-.986-.626.815a2.985 2.985 0 0 0-.296-.107l.049-1.023-.42.936a3.019 3.019 0 0 0-.313-.037L7.995 2l-.19 1.006a3.022 3.022 0 0 0-.315.035l-.418-.934.049 1.02c-.102.031-.202.067-.299.108l-.624-.813.285.982c-.091.053-.18.111-.265.173l-.796-.648.505.89c-.076.073-.149.149-.217.23l-.926-.45.699.75c-.058.089-.11.18-.159.273l-1.005-.224.855.57a2.925 2.925 0 0 0-.091.302l-1.03.01.965.36A2.975 2.975 0 0 0 5 5.955l-1.001.247 1.023.13c.013.104.032.207.055.309l-.917.469L5.187 7c.037.098.079.194.125.287l-.784.667.976-.34c.058.086.121.17.188.25l-.609.83.871-.556c.077.071.157.138.241.2l-.4.948.72-.74c.09.051.183.098.28.14L6.625 9.7l.529-.885c.1.028.201.052.305.07l.071 1.027.308-.983.153.003Zm2.25-2.975a2.259 2.259 0 0 1-2.268 2.25 2.259 2.259 0 0 1-2.268-2.25 2.259 2.259 0 0 1 2.268-2.25 2.259 2.259 0 0 1 2.268 2.25ZM7.988 7.709a1.715 1.715 0 0 0 1.574-2.396c-.61.043-1.075.27-1.384.502L7.932 6l-.229-.198c-.22-.19-.643-.404-1.294-.477a1.715 1.715 0 0 0 1.579 2.384ZM6.75 4.807a1.71 1.71 0 0 1 1.237-.527c.478 0 .91.196 1.222.512-.49.057-.905.18-1.242.37-.3-.172-.706-.289-1.217-.355Z",clipRule:"evenodd"})})]})]}),Yl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"LA_-_Laos_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#LA_-_Laos_svg__a)",children:[(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 8h16v4H0V8Z"}),(0,h.jsx)("path",{fill:"#2E42A5",d:"M0 4h16v4H0V4Z"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 0h16v4H0V0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M8 7.87a1.875 1.875 0 1 0 0-3.75 1.875 1.875 0 0 0 0 3.75Z"})]})]}),Jl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"LB_-_Lebanon_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#LB_-_Lebanon_svg__a)",children:[(0,h.jsx)("path",{fill:"#F50101",d:"M16 0H0v3h16V0Zm0 9H0v3h16V9Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 3h16v6H0V3Z"}),(0,h.jsx)("path",{fill:"#52AB0B",d:"M10.757 6.257c.038.433-1.563-.18-1.563-.007 0 .174 1.715.479 1.712.868-.003.388-2.033-.111-1.578.063.455.175 1.433.594 1.322.854-.238.557-1.813-.386-1.944-.2-.212.3 1.162 1 1.15 1.066-.022.128-.938-.201-1.15.065-.172-.049-.252-.28-.305-.311l-.339-4.362s.304 4.107-.084 4.225c-.388.118-1.466.477-1.497.298-.012-.067 1.298-.681 1.086-.98-.156-.222-1.736.562-1.836.108-.45-.324 1.454-.604 1.454-.935 0-.331-1.741.392-1.533-.069.208-.46 1.602-.626 1.628-.69.048-.116-1.55.182-1.55 0 0-.344.957-.411 1.55-.72.035-.354-1.44.347-1.55.064-.109-.283 1.886-1.016 1.837-1.074-.077-.09-1.685.317-1.42.104.515-.415 1.52-.98 1.75-1.13 0 0 .028-.057.058-.038l.063-.04s0 .355-.005.078c-.005-.277 2.355.935 2.382 1.243.03.359-1.459-.27-1.424.082.303.188 1.164.55 1.52.71.161.073-1.189-.153-1.16-.042.072.282 1.388.317 1.426.77Z"})]})]}),$l=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"MO_-_Macao_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#MO_-_Macao_svg__a)",children:[(0,h.jsx)("path",{fill:"#1C9975",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"MO_-_Macao_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#MO_-_Macao_svg__b)",children:[(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"m8.01 3.427-.816.493.186-.962-.68-.72.921-.04.39-.898.39.899h.92l-.68.759.205.962-.835-.493ZM5.691 3.792l-.505.305.115-.595-.42-.445.57-.024.24-.556.241.556h.569l-.42.47.127.594-.517-.305ZM10.29 3.792l-.504.305.115-.595-.42-.445.569-.024.24-.556.242.556h.568l-.42.47.127.594-.516-.305ZM4.383 4.805l-.405.245.092-.477-.337-.358.457-.02.193-.445.194.446h.456l-.337.377.102.477-.415-.245ZM11.78 4.805l-.405.245.092-.477-.337-.358.457-.02.193-.445.194.446h.456l-.337.377.102.477-.415-.245Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"MO_-_Macao_svg__c",width:8,height:8,x:4,y:3,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M8 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#MO_-_Macao_svg__c)",children:(0,h.jsx)("path",{fill:"#F7FCFF",d:"M6.31 11.64H4.358V9.01h1.949c.69-.01 1.194-.207 1.531-.586l.168-.189.187.17c.45.407.899.605 1.353.605h2.152v2.63H9.546c-.522 0-1.026-.197-1.508-.582-.426.379-1.006.571-1.728.581Z"})}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M8.017 3.804s-.854.844-.854 2.002c0 .248.04.482.1.697-.275-.61-.294-1.271-.056-1.993l-.323-.106c-.242.734-.243 1.424-.003 2.063a4.106 4.106 0 0 0-1.654-.564l-.037.338a3.76 3.76 0 0 1 1.451.48 2.69 2.69 0 0 0-.34-.112c-1.082-.276-2.143.116-2.143.116S4.77 8.098 5.955 8.3c.06.01.118.018.176.024h-.01c-.565 0-1.09-.231-1.582-.7l-.235.246c.553.527 1.16.795 1.818.795.642 0 1.24-.256 1.784-.76.088-.054.14-.091.147-.097l.022.018-.017.03s.054.032.15.078c.54.417 1.213.73 1.746.73.657 0 1.265-.267 1.818-.794l-.235-.246c-.492.469-1.018.7-1.583.7-.207 0-.409-.033-.608-.1.278.015.585-.01.902-.107 1.167-.357 1.654-1.437 1.654-1.437s-.621-.335-1.41-.339c.176-.045.36-.079.553-.1l-.037-.338c-.74.081-1.38.331-1.918.748.314-.69.339-1.443.074-2.247l-.324.106c.217.658.22 1.266.01 1.83.037-.167.058-.345.058-.534 0-1.22-.89-2.002-.89-2.002Zm.376 3.574-.012.018.015-.018h-.003Zm-.826-.08.034-.03c.03.05.06.097.09.142a3.881 3.881 0 0 0-.124-.112Z",clipRule:"evenodd"})]})]})]}),Ql=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"MY_-_Malaysia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#MY_-_Malaysia_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"M.014 2.5h16v1.45h-16zM.014 5.1h16v1.45h-16zM.056 7.6h16v1.25h-16zM.056 10.1h16v1.35h-16z"}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0h16v1.25H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0 0h8v6H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M1.797 3.101c0 .688.324 1.339.983 1.339.99 0 1.182-.211 1.644-.502.109.245-.26 1.294-1.657 1.294C1.649 5.21.745 4.312.745 3.102c0-1.39 1.022-2.14 1.994-2.132.858 0 1.768.487 1.74 1.108-.404-.395-.843-.395-1.574-.395-.73 0-1.108.73-1.108 1.418Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"m5.5 3.65-.464.677.023-.82-.773.275.5-.65L4 2.9l.787-.232-.5-.65.772.275-.023-.82.464.677.464-.677-.023.82.773-.275-.5.65L7 2.9l-.787.232.5.65-.772-.275.023.82L5.5 3.65Z",clipRule:"evenodd"})]})]}),Xl=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"MV_-_Maldives_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#MV_-_Maldives_svg__a)",children:[(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M0 0h16v11a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#579D20",fillRule:"evenodd",d:"M3 3h10v6H3V3Z",clipRule:"evenodd"}),(0,h.jsx)("path",{stroke:"#B6EB9A",strokeOpacity:.238,d:"M3.5 3.5h9v5h-9v-5Z"}),(0,h.jsxs)("mask",{id:"MV_-_Maldives_svg__b",width:10,height:6,x:3,y:3,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:[(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M3 3h10v6H3V3Z",clipRule:"evenodd"}),(0,h.jsx)("path",{stroke:"#fff",d:"M3.5 3.5h9v5h-9v-5Z"})]}),(0,h.jsx)("g",{mask:"url(#MV_-_Maldives_svg__b)",children:(0,h.jsx)("path",{fill:"#F9FAFA",fillRule:"evenodd",d:"M8.016 6.231c-.008 1.533 1.199 2.35 1.199 2.35-1.377.162-2.293-1.086-2.293-2.335 0-1.248 1.248-2.28 2.293-2.745 0 0-1.19 1.197-1.199 2.73Z",clipRule:"evenodd"})})]})]}),es=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"MN_-_Mongolia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("rect",{width:16,height:12,fill:"#fff",rx:0})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#MN_-_Mongolia_svg__a)",children:[(0,h.jsx)("path",{fill:"#4C67E8",d:"M5 0h6v12H5V0Z"}),(0,h.jsx)("path",{fill:"#C51918",d:"M11 0h5v12h-5V0ZM0 0h6v12H0V0Z"}),(0,h.jsx)("path",{fill:"#F8D000",d:"M3.007 3.442c-.507 0-.44-.494-.44-.494l.24-.518v.519c0 .066.091-.067.091-.228 0-.16.109-.401.109-.401l.007-.16a.47.47 0 0 0 .106.13l.03.03c.062.064.053.234.046.38-.007.134-.012.248.037.248.102 0 .095-.459.095-.459l.172.46s.014.493-.493.493Zm0-1.41c.013-.075.011.026.007.128a.218.218 0 0 1-.007-.128Zm.762 2.31a.739.739 0 0 1-.75.727.739.739 0 0 1-.75-.727c0-.401.336-.727.75-.727s.75.326.75.727Zm-1.884 1.36H1v4.286h.885V5.702Zm3.115 0h-.885v4.286H5V5.702Zm-2.885.037.863.534.972-.534H2.115ZM2.978 10l-.863-.534H3.95L2.978 10Zm-.863-3.553h1.808v.336H2.115v-.336Zm1.808 2.497H2.115v.336h1.808v-.336Zm-.885-.186c.51 0 .924-.4.924-.894s-.414-.895-.924-.895-.923.4-.923.895c0 .494.414.894.923.894Zm-1.036-4.15s.03.934.95.934c.921 0 1.07-.934 1.07-.934s-.356.572-1.01.572-1.01-.572-1.01-.572Z"})]})]}),ls=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"MM_-_Myanmar_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#MM_-_Myanmar_svg__a)",children:[(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 8h16v4H0V8Z"}),(0,h.jsx)("path",{fill:"#5EAA22",d:"M0 4h16v4H0V4Z"}),(0,h.jsx)("path",{fill:"#FFD018",d:"M0 0h16v4H0V0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M8.031 7.988 5.456 9.625l.863-2.866-1.837-1.873 2.533-.055L8.135 2l1.022 2.867 2.526.044-1.899 1.907.887 2.727-2.64-1.558Z"})]})]}),ss=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"}),(0,h.jsx)("path",{fill:"#C51918",stroke:"#4857A1",d:"m5.616 6.32 4.316 5.18H.5V.842L9.04 5.5H4.931l.684.82Z"}),(0,h.jsx)("mask",{id:"NP_-_Nepal_svg__a",width:11,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",stroke:"#fff",d:"m5.616 6.32 4.316 5.18H.5V.842L9.04 5.5H4.931l.684.82Z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#NP_-_Nepal_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",d:"m2.915 10.005-.613.795-.028-1.003-.963.283.567-.828-.946-.337.946-.337-.567-.828.963.283.028-1.004.613.796.612-.796.029 1.004.963-.283-.567.828.945.337-.945.337.567.828-.963-.283-.029 1.003-.612-.795ZM2.9 4.07l-.32.415-.015-.524-.503.148.296-.433-.493-.176.493-.176-.296-.433.503.148.015-.524.32.416.32-.416.015.524.503-.148-.296.433.493.176-.493.176.296.433-.503-.148-.015.524-.32-.416Z"}),(0,h.jsx)("path",{fill:"#F9FAFA",d:"M2.833 3.947c1.113.004 1.707-.627 1.707-.627.117.72-.79 1.2-1.696 1.2-.907 0-1.456-.654-1.794-1.2 0 0 .67.623 1.783.627Z"})]})]}),as=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"KP_-_Korea_(North)_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#KP_-_Korea_(North)_svg__a)",children:[(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"KP_-_Korea_(North)_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#KP_-_Korea_(North)_svg__b)",children:[(0,h.jsx)("path",{fill:"#C51918",stroke:"#F7FCFF",d:"M0 2.5h-.5v7h17v-7H0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M5 8.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"m4.998 6.935-1.359.945.48-1.584-1.319-1 1.654-.033.544-1.563.543 1.563 1.654.034-1.318 1 .479 1.583-1.358-.945Z",clipRule:"evenodd"})]})]})]}),is=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"OM_-_Oman_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#OM_-_Oman_svg__a)",children:[(0,h.jsx)("path",{fill:"#F50101",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"OM_-_Oman_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#OM_-_Oman_svg__b)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F50101",d:"M0 0h6v12H0z"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M5.385 1.016C5.39.971 5.332.953 5.308.993a19.138 19.138 0 0 1-1.385 2v-.459c-.07-.077-.299-.286-.299-.286V1.79l.412-.373L3.471 1l-.597.417.451.373v.458c0 .22-.273.286-.273.286l-.05.404a18.687 18.687 0 0 1-1.315-1.924c-.023-.041-.083-.022-.076.025.055.368.221 1.186.68 2.06h-.123v-.017a.043.043 0 0 0-.044-.044H1.07a.043.043 0 0 0-.043.044v.663c0 .024.02.043.043.043h1.054c.024 0 .044-.019.044-.043v-.348H2.3a.3.3 0 0 0 .27.18c.084.13.175.26.275.388-.229-.023-1.74-.151-1.74.398 0 .328.368.502.829.592L.83 5.952c-.033.03-.007.08.036.07a7.128 7.128 0 0 0 2.2-.977h.029c.253 0 .429-.11.55-.258.914.745 1.947 1.09 2.396 1.213.046.013.071-.047.032-.075A13.587 13.587 0 0 1 4.048 4.18l.022-.026c.171-.202.32-.41.45-.619a.298.298 0 0 0 .124-.138h.133v.348c0 .024.02.043.043.043h1.054c.024 0 .044-.019.044-.043v-.663a.043.043 0 0 0-.044-.044H4.82a.043.043 0 0 0-.029.012 6.178 6.178 0 0 0 .594-2.034Zm-.608 2.082v-.02l-.01.02h.01ZM2.82 3.28c0 .134-.11.242-.244.242a.243.243 0 0 1-.245-.242c0-.133.11-.242.245-.242s.244.109.244.242Zm1.304 0c0 .134.11.242.245.242a.243.243 0 0 0 .245-.242.243.243 0 0 0-.245-.242.243.243 0 0 0-.245.242Z",clipRule:"evenodd"})]})]})]}),ts=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"PK_-_Pakistan_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#PK_-_Pakistan_svg__a)",children:[(0,h.jsx)("path",{fill:"#2F8D00",d:"M4 0h12v12H4V0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 0h4v12H0V0Z"}),(0,h.jsx)("path",{fill:"#F1F9FF",d:"M11.215 7.653s-2.233.582-4.006-.605c-1.772-1.188-.88-3.924-.88-3.924-.925.134-2.377 3.507-.037 5.199 2.34 1.692 4.582.066 4.923-.67Zm-2.478-3.22-1.186.58 1.251.223.169 1.223.708-1.042 1.395.094-1.092-.814.581-1.088-1.087.498-.808-.76.069 1.086Z"})]})]}),ds=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"PS_-_Palestinian_Territory_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#PS_-_Palestinian_Territory_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 0h16v12H0V0Z"}),(0,h.jsx)("path",{fill:"#5EAA22",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#272727",d:"M0 8v4h16V8H0Z"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"m0 1 8 5-8 5V1Z"})]})]}),ns=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"PH_-_Philippines_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#PH_-_Philippines_svg__a)",children:[(0,h.jsx)("path",{fill:"#BF2714",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"PH_-_Philippines_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#PH_-_Philippines_svg__b)",children:(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0-1v7h16v-7H0Z",clipRule:"evenodd"})}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12l9-6-9-6Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"PH_-_Philippines_svg__c",width:9,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12l9-6-9-6Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fill:"#FECA00",fillRule:"evenodd",clipRule:"evenodd",mask:"url(#PH_-_Philippines_svg__c)",children:[(0,h.jsx)("path",{d:"m6.803 5.46.638.246.38-.447.01.598.586.19-.618.21.041.55-.407-.421-.64.122.378-.485-.368-.563ZM.803 8.46l.586.26.431-.46-.041.61.638.178-.67.223.093.535-.466-.382-.58.084.325-.471-.316-.577ZM.803 2.46l.648.24.37-.44.02.59.576.198-.607.203.03.555-.404-.402-.643.104.389-.492-.38-.556ZM4.06 7.266a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z"}),(0,h.jsx)("path",{d:"m3.913 4.12.067.803a.112.112 0 0 0 .221.004l.09-.8a.191.191 0 0 0-.214-.221.19.19 0 0 0-.164.214Zm-.21.388.105.35c.01.032.042.052.078.045a.056.056 0 0 0 .042-.067l-.083-.35a.079.079 0 0 0-.098-.058.065.065 0 0 0-.043.08Zm.562.364c-.008.03.01.06.043.07a.067.067 0 0 0 .077-.045l.116-.345a.065.065 0 0 0-.05-.084.079.079 0 0 0-.09.056l-.096.348Zm1.039-.351-.559.617a.112.112 0 0 0 .154.159l.667-.505a.19.19 0 1 0-.262-.271Zm-.17 1.31.834-.065a.19.19 0 1 1-.006.377l-.832-.091a.112.112 0 0 1 .004-.221Zm.433 1.329-.648-.564a.112.112 0 0 0-.16.153l.537.673a.19.19 0 1 0 .271-.262Zm-1.341-.176.05.843a.19.19 0 1 1-.378-.007l.107-.84a.112.112 0 0 1 .221.004Zm-1.315.456.55-.67a.112.112 0 0 0-.154-.16l-.658.558a.19.19 0 1 0 .262.272Zm.161-1.363-.84.069a.19.19 0 1 1 .007-.377l.837.086a.112.112 0 0 1-.004.222ZM2.575 4.76l.712.55a.112.112 0 0 0 .16-.153l-.6-.659a.19.19 0 1 0-.271.262Zm2.095.209.173-.32a.065.065 0 0 1 .095-.023c.033.025.043.07.02.106l-.189.307a.056.056 0 0 1-.076.018.067.067 0 0 1-.023-.088Zm.879.584-.35.104a.067.067 0 0 0-.046.079c.008.03.038.049.068.041l.35-.082a.079.079 0 0 0 .058-.098.065.065 0 0 0-.08-.044Zm-.462.966.32.174a.065.065 0 0 1 .022.094.079.079 0 0 1-.105.021l-.307-.189A.056.056 0 0 1 5 6.543a.067.067 0 0 1 .088-.023Zm-.585.88-.104-.35a.067.067 0 0 0-.078-.046.056.056 0 0 0-.042.067l.083.35a.079.079 0 0 0 .098.059.065.065 0 0 0 .043-.08Zm-.965-.462-.174.32a.065.065 0 0 1-.095.022.079.079 0 0 1-.02-.106l.189-.306a.056.056 0 0 1 .077-.018c.03.02.039.058.023.088Zm-.88-.585.35-.104a.067.067 0 0 0 .046-.079.056.056 0 0 0-.067-.041l-.351.083a.079.079 0 0 0-.058.097c.01.034.046.054.08.044Zm.462-.966-.32-.173a.065.065 0 0 1-.022-.095.079.079 0 0 1 .105-.021l.307.19c.026.016.034.05.018.076a.067.067 0 0 1-.088.023Zm1.864-.084c-.027.016-.036.05-.02.08a.067.067 0 0 0 .086.023l.327-.163A.065.065 0 0 0 5.4 5.15a.079.079 0 0 0-.104-.025l-.313.178Zm.133.855c.008-.033.04-.05.069-.042l.347.095a.079.079 0 0 1 .055.1.065.065 0 0 1-.082.04l-.345-.116a.067.067 0 0 1-.044-.077Zm-.363.675c-.015-.026-.05-.036-.079-.019a.067.067 0 0 0-.023.086l.162.326a.065.065 0 0 0 .094.025.079.079 0 0 0 .025-.105l-.179-.313Zm-.855.133c.033.009.051.04.043.07l-.095.347a.079.079 0 0 1-.1.054.065.065 0 0 1-.04-.081l.116-.346a.067.067 0 0 1 .076-.044Zm-.675-.362c.027-.015.037-.05.02-.08a.067.067 0 0 0-.086-.022l-.326.162a.065.065 0 0 0-.025.094.079.079 0 0 0 .105.024l.312-.178Zm-.132-.855c-.01.033-.04.05-.07.042l-.347-.095a.079.079 0 0 1-.055-.1.065.065 0 0 1 .082-.04l.346.116c.032.01.05.044.044.077Zm.362-.675c.015.027.05.036.079.019a.067.067 0 0 0 .023-.086l-.162-.326a.065.065 0 0 0-.094-.025.079.079 0 0 0-.025.105l.179.313Z"})]})]})]}),hs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"QA_-_Qatar_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#QA_-_Qatar_svg__a)",children:[(0,h.jsx)("path",{fill:"#B61C49",d:"M0 0h16v12H0z"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0h3.4L6 1 3.4 2 6 3 3.4 4 6 5 3.4 6 6 7 3.4 8 6 9l-2.6 1L6 11l-2.6 1H0V0Z",clipRule:"evenodd"})]})]}),cs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"SA_-_Saudi_Arabia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#SA_-_Saudi_Arabia_svg__a)",children:[(0,h.jsx)("path",{fill:"#67BD23",d:"M0 0h16v12H0z"}),(0,h.jsx)("path",{stroke:"#fff",strokeWidth:.5,d:"M3.49 2.288s.256 1.164 0 .941c-.254-.223-.822.628-.23.314.593-.314.698-.64.698 0s.283.314-.207.79c-.49.474 1.718.482.729.78-.99.297-1.458.931-.729.698.729-.233 1.902-1.221 1.596-1.479-.306-.257-.156-.205-.156-.789 0-.584-.194-.735-.448-.886-.253-.15.987 1.02 1.401.326.414-.695.364-.247.664 0 .3.246.765.543.765 0 0-.544.615-1.593.615-.516 0 1.076.772 1.632.772.911 0-.721.71-1.427.71-.911s.407.492.755.34c.348-.15.319-.548.319.571 0 1.12.146 2.869-.319 2.721-.464-.147-.03-.813-.465-1.767-.435-.954.443-.957-.465.26-.908 1.219-.763 1.04-1.035.52-.272-.52.886-1.04 0-.78-.887.26-.405 1.72-.646 1.25-.24-.47-.856-2.964-.931-1.717-.075 1.247.236 1.946-.423 1.946-.66 0-1.217.05-.767-.23.451-.278.451-1.249.451-1.249"}),(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M6.967 7.928c-.407.05-2.461.04-3.075-.107-.138-.03-.06.598.03.742.089.144.787.288 1.03.322.21.028 1.015-.017 1.852-.063l.415-.023c.733-.04 1.804.03 2.363.066.181.011.309.02.355.02.171 0 .158.058.132.174l-.007.031c-.029.138.125.433.193.46.067.028.572 0 .847-.106.156-.06.175-.052.215-.033a.42.42 0 0 0 .2.033c.19 0 .199-.27.206-.46.004-.105.006-.185.037-.185.034 0 .08.102.124.197.066.146.125.276.125.007 0-.447-.525-1.032-.697-.985-.12.033-.319-.003-.453-.028a.98.98 0 0 0-.127-.019c-.033 0-.023-.008-.001-.026.03-.023.08-.064.08-.124 0-.108-.103-.123-.188-.123s-.13.07-.13.123c0 .053.064.107.064.107l-.188-.002c-.69-.01-3.05-.04-3.402.002Zm3.47.945s.055-.031.18-.186c.139-.171.188-.116.24-.06.026.03.052.06.093.06.117 0 .273 0 .374.086.101.086-.133.204-.201.204-.034 0-.06-.021-.084-.043-.026-.021-.052-.043-.088-.043-.041 0-.077.03-.105.055-.02.017-.036.03-.05.03-.011 0-.037-.014-.07-.033a.513.513 0 0 0-.22-.084c-.043 0-.068.014-.069.014Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",d:"m3.892 7.82.011-.048-.011.049Zm3.075.108.006.05-.006-.05Zm-3.045.635.042-.026-.042.026Zm1.03.322.008-.05-.007.05Zm1.852-.063-.003-.05.003.05Zm.415-.023.003.05-.003-.05Zm2.363.066-.003.05.003-.05Zm.487.194.05.01-.05-.01Zm-.007.031-.048-.01.048.01Zm1.04.354.018.047-.018-.047Zm.215-.033.02-.046-.02.046Zm.406-.428.05.002-.05-.002Zm.16.013.046-.02-.045.02Zm-.571-.978-.013-.048.013.048Zm-.453-.028-.01.05.01-.05Zm-.128-.045-.031-.039.031.04Zm-.174-.017v.05h.136l-.104-.088-.032.038Zm-.188-.002v.05-.05Zm.248.761.039.032-.039-.032Zm-.18.186.044-.025-.043.025Zm.42-.245-.038.033.037-.033Zm.467.145.033-.038-.033.038Zm-.285.161-.033.039.033-.039Zm-.193.012.033.038-.033-.038Zm-.12-.003.024-.043-.024.043Zm-.22-.084v-.05.05Zm-6.626-.99c.313.076.986.115 1.626.13.64.014 1.26.004 1.467-.022l-.012-.099c-.2.024-.811.035-1.453.02-.642-.014-1.304-.053-1.605-.126l-.023.097Zm.084.668a.625.625 0 0 1-.055-.166 1.824 1.824 0 0 1-.037-.248.873.873 0 0 1 .003-.21.12.12 0 0 1 .015-.045c.002-.002.001 0-.002 0a.013.013 0 0 1-.007.001l.021-.097a.087.087 0 0 0-.054.005.097.097 0 0 0-.038.031.212.212 0 0 0-.033.087.967.967 0 0 0-.005.236c.007.088.021.181.04.262.017.08.04.152.067.196l.085-.052Zm.996.298a5.176 5.176 0 0 1-.568-.118 2.364 2.364 0 0 1-.286-.094.67.67 0 0 1-.098-.049.143.143 0 0 1-.044-.037l-.085.052c.017.028.046.05.076.07.031.02.07.039.112.056.085.036.19.07.3.099.218.058.455.103.58.12l.013-.099ZM6.8 8.772c-.418.023-.829.046-1.16.06a5.6 5.6 0 0 1-.681.003l-.014.1c.11.014.369.01.699-.004.332-.013.743-.036 1.162-.06l-.006-.1Zm.416-.023-.416.023.006.1.415-.024-.005-.1Zm2.369.066c-.56-.037-1.633-.106-2.37-.066l.006.1c.73-.04 1.796.029 2.357.065l.007-.1Zm.35.02c-.043 0-.168-.008-.35-.02l-.007.1c.18.011.31.02.358.02v-.1Zm.182.235c.006-.028.013-.057.015-.082a.146.146 0 0 0-.012-.083.118.118 0 0 0-.072-.057.375.375 0 0 0-.112-.013v.1c.04 0 .066.003.081.008.007.002.01.005.012.006l.003.002c0 .002.003.008 0 .027a.65.65 0 0 1-.013.07l.098.022Zm-.007.03.007-.03-.098-.022-.006.032.097.02Zm.163.404s-.003-.001-.012-.01a.783.783 0 0 1-.143-.289.252.252 0 0 1-.008-.104l-.098-.021a.348.348 0 0 0 .009.148.867.867 0 0 0 .168.335.142.142 0 0 0 .046.034l.038-.093Zm.81-.106c-.131.05-.32.083-.488.1a2.447 2.447 0 0 1-.293.01.261.261 0 0 1-.022-.002l-.007-.002-.038.093c.016.006.038.01.06.01.022.003.05.004.081.003.063 0 .143-.004.228-.013.17-.017.37-.05.515-.106l-.036-.093Zm.254-.033c-.01-.004-.022-.01-.038-.014a.15.15 0 0 0-.053-.003.716.716 0 0 0-.163.05l.036.093a.643.643 0 0 1 .138-.043.05.05 0 0 1 .019 0l.02.008.04-.09Zm.18.03a.591.591 0 0 1-.126-.011.244.244 0 0 1-.054-.019l-.041.091c.016.008.038.018.074.026.035.007.081.012.146.012v-.1Zm.155-.414a1.258 1.258 0 0 1-.033.29.224.224 0 0 1-.048.093.098.098 0 0 1-.075.03v.1c.061 0 .11-.022.147-.06a.32.32 0 0 0 .072-.135c.03-.098.033-.22.037-.314l-.1-.004Zm.087-.232c-.035 0-.054.024-.063.041a.184.184 0 0 0-.015.054c-.006.037-.007.086-.01.137l.1.004c.003-.053.004-.096.009-.126a.098.098 0 0 1 .005-.024c.001-.001-.006.014-.026.014v-.1Zm.17.227c-.022-.048-.045-.1-.068-.14a.322.322 0 0 0-.037-.053c-.01-.013-.033-.034-.065-.034v.1c-.015 0-.018-.01-.01 0 .007.007.015.02.025.037.02.035.041.082.063.13l.091-.04Zm.029.027a1.031 1.031 0 0 1-.009.12v.003c0-.001.003-.006.01-.01a.04.04 0 0 1 .027-.006.031.031 0 0 1 .014.005c.001.001 0 .001 0 0a.342.342 0 0 1-.024-.04c-.016-.028-.03-.063-.048-.1l-.09.042a2.308 2.308 0 0 0 .072.144.139.139 0 0 0 .03.034.07.07 0 0 0 .03.013.06.06 0 0 0 .043-.008.085.085 0 0 0 .033-.05.606.606 0 0 0 .012-.147h-.1Zm-.634-.937c.006-.001.021-.002.048.009.025.01.056.028.09.054.07.052.148.132.222.227.15.193.274.44.274.647h.1c0-.24-.14-.509-.295-.708a1.35 1.35 0 0 0-.24-.246.515.515 0 0 0-.114-.067.177.177 0 0 0-.111-.012l.026.096Zm-.475-.027c.067.013.152.028.236.036a.7.7 0 0 0 .24-.009l-.027-.096a.606.606 0 0 1-.204.006 2.837 2.837 0 0 1-.227-.035l-.018.098Zm-.118-.018.043.005.075.013.018-.098-.078-.014a.406.406 0 0 0-.058-.006v.1Zm-.032-.115a.322.322 0 0 0-.026.024.06.06 0 0 0-.012.023.053.053 0 0 0 .038.065.113.113 0 0 0 .032.003v-.1h-.003c.002.001.012.005.02.015a.046.046 0 0 1 .01.042c-.002.009-.007.014-.007.015h-.001a.242.242 0 0 1 .011-.009l-.062-.078Zm.06-.085c0 .015-.006.03-.018.045a.258.258 0 0 1-.042.04l.062.078c.015-.011.039-.03.059-.056a.172.172 0 0 0 .04-.107h-.1Zm-.137-.073c.041 0 .079.004.104.016.012.006.02.012.024.02a.065.065 0 0 1 .01.037h.1a.164.164 0 0 0-.027-.092.156.156 0 0 0-.064-.055.35.35 0 0 0-.147-.026v.1Zm-.08.073c0-.03.027-.073.08-.073v-.1a.177.177 0 0 0-.18.173h.1Zm.014.107.032-.038-.002-.002a.23.23 0 0 1-.024-.025c-.014-.018-.02-.034-.02-.042h-.1c0 .044.025.082.043.104a.315.315 0 0 0 .034.037l.003.003a.01.01 0 0 1 .001 0v.001l.033-.038Zm-.188.048c.106 0 .174.002.188.002v-.1l-.187-.002-.001.1Zm-3.396.001a7.48 7.48 0 0 1 .577-.019c.281-.003.63-.003.99 0 .72.003 1.483.013 1.829.018v-.1c-.345-.005-1.107-.015-1.828-.019-.36-.002-.71-.002-.992.001-.28.003-.497.01-.588.02l.012.1Zm3.605.679a1.43 1.43 0 0 1-.166.174h-.001l-.001.002-.002.001-.005.004a.106.106 0 0 0-.006.007.087.087 0 0 0-.003.054l.087-.05a.088.088 0 0 1-.003.054.084.084 0 0 1-.006.008l-.005.003-.002.002.003-.002a.276.276 0 0 0 .046-.038c.032-.03.078-.078.142-.156l-.078-.063Zm.315-.062c-.012-.013-.028-.031-.046-.045a.125.125 0 0 0-.078-.027.163.163 0 0 0-.093.035.547.547 0 0 0-.098.099l.078.063a.453.453 0 0 1 .079-.08c.02-.015.03-.017.035-.017.004 0 .008 0 .017.007a.25.25 0 0 1 .032.032l.074-.067Zm.056.043c-.006 0-.012-.002-.021-.009a.251.251 0 0 1-.035-.034l-.074.067c.022.025.064.076.13.076v-.1Zm.408.098a.414.414 0 0 0-.206-.087c-.07-.011-.143-.01-.201-.01v.1c.059 0 .123 0 .185.01s.116.028.157.063l.065-.076Zm-.234.292a.27.27 0 0 0 .093-.024.488.488 0 0 0 .1-.056.213.213 0 0 0 .076-.088.106.106 0 0 0-.035-.124l-.065.076a.04.04 0 0 1 .006.007v.001h.001v.004a.12.12 0 0 1-.042.044.386.386 0 0 1-.079.044.19.19 0 0 1-.055.016v.1Zm-.117-.054c.023.019.062.054.117.054v-.1c-.013 0-.024-.007-.052-.03l-.065.076Zm-.055-.032c.015 0 .027.008.055.032l.065-.077c-.023-.02-.063-.055-.12-.055v.1Zm-.072.043a.323.323 0 0 1 .04-.032.063.063 0 0 1 .032-.011v-.1a.162.162 0 0 0-.083.026.408.408 0 0 0-.055.041l.066.076Zm-.082.043a.09.09 0 0 0 .05-.018l.032-.025-.066-.076a.31.31 0 0 1-.022.019l-.004.001.01-.001v.1Zm-.096-.04a1.042 1.042 0 0 0 .067.034.084.084 0 0 0 .029.006v-.1h.006a.109.109 0 0 1-.011-.005L10.75 8.9l-.05.087Zm-.194-.078c.025 0 .057.009.093.025.035.015.07.035.101.053l.05-.087c-.03-.018-.07-.04-.11-.058a.344.344 0 0 0-.134-.033v.1Zm-.113-.011c.01.012.031.024.04.025a.047.047 0 0 0 .021-.003l.004-.002h.002l.001-.001a.129.129 0 0 1 .045-.008v-.1a.228.228 0 0 0-.09.019h-.002.002l.003-.002.008-.002h.013c.009 0 .03.012.04.024l-.087.05Z"}),(0,h.jsx)("path",{stroke:"#fff",strokeWidth:.5,d:"M13.116 2.373S13.923 6 13.116 6s-.807-.316-.807-.316.886.407.641-.659c-.245-1.065-.474-.332-.474-1.269 0-.937-.167-1.566-.167-1.087 0 .48-.111 3.375-.549 2.782-.438-.592-.331-2.426-.331-2.604"})]})]}),rs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"SG_-_Singapore_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#SG_-_Singapore_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"SG_-_Singapore_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#SG_-_Singapore_svg__b)",children:[(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 0v6h16V0H0Z"}),(0,h.jsx)("path",{fill:"#F1F9FF",d:"M4.434 5.295s-1.413-.568-1.413-2.108 1.413-2.09 1.413-2.09c-.686-.173-2.509-.018-2.509 2.09 0 2.108 1.795 2.505 2.51 2.108Zm.362-.255.405-.244.415.244-.102-.477.337-.377h-.456l-.193-.446-.194.446-.457.02.338.357-.093.477Zm1.879-.272-.406.245.093-.477-.338-.358.457-.02.194-.445.193.446h.456l-.336.377.1.477-.413-.245ZM5.644 2.885l.405-.245.414.245-.101-.478.337-.376h-.457l-.193-.446-.193.446-.457.02.337.356-.092.478Zm-.96.726-.404.245.092-.477-.337-.358.457-.02.193-.445.193.446h.457l-.337.377.101.477-.414-.245Zm2.275.223.405-.245.414.245-.101-.477.337-.377h-.457l-.193-.446-.193.446-.457.02.337.357-.092.477Z"})]})]})]}),os=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"KR_-_Korea_(South)_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#KR_-_Korea_(South)_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"KR_-_Korea_(South)_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#KR_-_Korea_(South)_svg__b)",children:[(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M7.893 9.286c1.708 0 3.093-1.418 3.093-3.168 0-1.749-1.385-3.167-3.093-3.167S4.8 4.37 4.8 6.118c0 1.75 1.385 3.168 3.093 3.168Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"KR_-_Korea_(South)_svg__c",width:7,height:8,x:4,y:2,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M7.893 9.286c1.708 0 3.093-1.418 3.093-3.168 0-1.749-1.385-3.167-3.093-3.167S4.8 4.37 4.8 6.118c0 1.75 1.385 3.168 3.093 3.168Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#KR_-_Korea_(South)_svg__c)",children:(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M11.094 6.361s-.173-1.493-1.459-1.574c-1.286-.082-1.632 1.095-1.707 1.406-.074.312-.261 1.143-1.615 1.143S4.837 5.222 4.837 5.222V2.73h6.257V6.36Z",clipRule:"evenodd"})}),(0,h.jsx)("path",{fill:"#272727",fillRule:"evenodd",d:"m3.65 1.026.457.414-2.12 2.476-.457-.414 2.12-2.476Zm.754.67.458.413-2.044 2.44-.458-.413 2.044-2.44Zm1.209 1.091-.458-.414-2.05 2.46.458.413 2.05-2.459Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",d:"m4.107 1.44.057.049.048-.056-.055-.049-.05.056Zm-.457-.414L3.7.97 3.643.92l-.05.058.057.05Zm-1.663 2.89-.05.055.057.052.05-.058-.057-.05Zm-.457-.414-.057-.049-.048.056.054.049.05-.056Zm3.332-1.393.057.049.047-.056-.054-.048-.05.055Zm-.458-.413.05-.056-.057-.052-.05.06.057.048ZM2.818 4.55l-.05.055.057.052.05-.06-.057-.047Zm-.458-.414-.057-.048-.047.055.054.048.05-.055Zm2.795-1.763.05-.055-.057-.053-.05.06.057.048Zm.458.414.057.048.046-.055-.053-.048-.05.055ZM3.105 4.832l-.057-.048-.046.055.053.049.05-.056Zm.458.414-.05.055.057.053.05-.06-.057-.048Zm.594-3.862L3.7.97l-.1.112.457.413.1-.11Zm-2.113 2.58 2.12-2.475-.114-.098-2.12 2.476.114.098Zm-.565-.406.458.413.1-.11-.457-.415-.1.112ZM3.593.978l-2.12 2.475.114.098 2.12-2.476-.114-.098Zm1.319 1.076-.458-.414-.1.111.457.414.101-.111ZM2.875 4.598l2.044-2.44-.115-.097-2.044 2.44.115.097ZM2.31 4.19l.457.414.1-.111-.457-.414-.1.111Zm2.037-2.543-2.044 2.44.115.096 2.044-2.44-.115-.097Zm.758.781.457.414.101-.111-.457-.414-.101.111ZM3.163 4.88l2.05-2.458-.115-.097-2.05 2.46.115.095Zm.45.31-.457-.414-.1.112.457.413.1-.11Zm1.942-2.45-2.05 2.458.115.096 2.05-2.459-.115-.096Z"}),(0,h.jsx)("path",{fill:"#272727",fillRule:"evenodd",d:"m12.293 1.026-.458.414 2.12 2.476.458-.414-2.12-2.476Zm-.755.67-.457.413 2.044 2.44.457-.413-2.044-2.44Zm-1.209 1.091.458-.414 2.05 2.46-.458.413-2.05-2.459Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",d:"m11.835 1.44-.057.049-.047-.056.054-.049.05.056Zm.457-.414-.05-.056L12.3.92l.05.058-.056.05Zm1.663 2.89.05.055-.057.052-.05-.058.057-.05Zm.458-.414.057-.049.047.056-.054.049-.05-.056ZM11.08 2.109l-.058.049-.046-.056.053-.048.05.055Zm.457-.413-.05-.056.058-.052.05.06-.058.048Zm1.587 2.854.05.055-.058.052-.05-.06.058-.047Zm.457-.414.058-.048.046.055-.053.048-.05-.055Zm-2.795-1.763-.05-.055.058-.053.05.06-.058.048Zm-.458.414-.057.048-.046-.055.053-.048.05.055Zm2.508 2.045.057-.048.046.055-.053.049-.05-.056Zm-.458.414.05.055-.057.053-.05-.06.057-.048Zm-.594-3.862.457-.414.1.112-.457.413-.1-.11Zm2.113 2.58-2.12-2.475.114-.098 2.12 2.476-.114.098Zm.565-.406-.457.413-.101-.11.457-.415.101.112ZM12.35.978l2.12 2.475-.114.098-2.12-2.476.114-.098Zm-1.32 1.076.458-.414.1.111-.457.414-.1-.111Zm2.037 2.544-2.044-2.44.115-.097 2.044 2.44-.115.097Zm.566-.407-.458.414-.1-.111.457-.414.1.111Zm-2.037-2.543 2.044 2.44-.115.096-2.045-2.44.115-.097Zm-.759.781-.457.414-.1-.111.457-.414.1.111ZM12.78 4.88l-2.05-2.458.116-.097 2.05 2.46-.116.095Zm-.45.31.457-.414.101.112-.457.413-.101-.11Zm-1.942-2.45 2.05 2.458-.115.096-2.05-2.459.115-.096Z"}),(0,h.jsx)("path",{fill:"#272727",fillRule:"evenodd",d:"m3.65 11.246.457-.414-2.12-2.476-.457.414 2.12 2.476Zm.754-.67.458-.414-2.044-2.44-.458.414 2.044 2.44Zm1.209-1.091-.458.413-2.05-2.458.458-.414 2.05 2.459Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",d:"m4.107 10.832.057-.049.048.056-.055.049-.05-.056Zm-.457.414.05.056-.057.051-.05-.058.057-.05Zm-1.663-2.89-.05-.055.057-.052.05.058-.057.05Zm-.457.414-.057.049-.048-.056.054-.049.05.056Zm3.332 1.393.057-.049.047.056-.054.048-.05-.056Zm-.458.413.05.056-.057.052-.05-.06.057-.048ZM2.818 7.722l-.05-.055.057-.052.05.06-.057.047Zm-.458.414-.057.048-.047-.055.054-.048.05.055Zm2.795 1.762.05.056-.057.053-.05-.06.057-.049Zm.458-.413.057-.048.046.055-.053.048-.05-.055ZM3.105 7.44l-.057.048-.046-.055.053-.049.05.056Zm.458-.414-.05-.056.057-.052.05.06-.057.048Zm.594 3.862-.457.414-.1-.112.457-.413.1.11Zm-2.113-2.58 2.12 2.475-.114.098-2.12-2.476.114-.098Zm-.565.406.458-.413.1.11-.457.415-.1-.112Zm2.114 2.58L1.473 8.82l.114-.098 2.12 2.476-.114.098Zm1.319-1.076-.458.414-.1-.111.457-.414.101.111ZM2.875 7.674l2.044 2.44-.115.097L2.76 7.77l.115-.097Zm-.565.407.457-.414.1.111-.457.414-.1-.111Zm2.037 2.543-2.044-2.44.115-.096 2.044 2.44-.115.096Zm.758-.781.457-.414.101.111-.457.414-.101-.111ZM3.163 7.392l2.05 2.458-.115.096-2.05-2.458.115-.096Zm.45-.31-.457.413-.1-.11.457-.415.1.112Zm1.942 2.45-2.05-2.458.115-.096 2.05 2.459-.115.096Z"}),(0,h.jsx)("path",{fill:"#272727",fillRule:"evenodd",d:"m12.293 11.246-.458-.414 2.12-2.476.458.414-2.12 2.476Zm-.755-.67-.457-.414 2.044-2.44.457.414-2.044 2.44Zm-1.209-1.091.458.413 2.05-2.458-.458-.414-2.05 2.459Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",d:"m11.835 10.832-.057-.049-.047.056.054.049.05-.056Zm.457.414-.05.056.057.051.05-.058-.056-.05Zm1.663-2.89.05-.055-.057-.052-.05.058.057.05Zm.458.414.057.049.047-.056-.054-.049-.05.056Zm-3.332 1.393-.058-.049-.046.056.053.048.05-.056Zm.457.413-.05.056.058.052.05-.06-.058-.048Zm1.587-2.854.05-.055-.058-.052-.05.06.058.047Zm.457.414.058.048.046-.055-.053-.048-.05.055Zm-2.795 1.762-.05.056.058.053.05-.06-.058-.049Zm-.458-.413-.057-.048-.046.055.053.048.05-.055Zm2.508-2.045.057.048.046-.055-.053-.049-.05.056Zm-.458-.414.05-.056-.057-.052-.05.06.057.048Zm-.594 3.862.457.414.1-.112-.457-.413-.1.11Zm2.113-2.58-2.12 2.475.114.098 2.12-2.476-.114-.098Zm.565.406-.457-.413-.101.11.457.415.101-.112Zm-2.113 2.58 2.12-2.475-.114-.098-2.12 2.476.114.098Zm-1.32-1.076.458.414.1-.111-.457-.414-.1.111Zm2.037-2.544-2.044 2.44.115.097 2.044-2.44-.115-.097Zm.566.407-.458-.414-.1.111.457.414.1-.111Zm-2.037 2.543 2.044-2.44-.115-.096-2.045 2.44.115.096Zm-.759-.781-.457-.414-.1.111.457.414.1-.111Zm1.942-2.451L10.73 9.85l.116.096 2.05-2.458-.116-.096Zm-.45-.31.457.413.101-.11-.457-.415-.101.112Zm-1.942 2.45 2.05-2.458-.115-.096-2.05 2.459.115.096Z"})]})]})]}),vs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"LK_-_Sri_Lanka_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#LK_-_Sri_Lanka_svg__a)",children:[(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#1F8A6E",d:"M1 1h3v10H1z"}),(0,h.jsx)("path",{fill:"#F56800",d:"M4 1h3v10H4z"}),(0,h.jsx)("path",{fill:"#B01D00",d:"M7 1h8v10H7z"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M8.471 3s-.643-.002-.643 1.119v1.643s-.307.054-.307.245c0 .19.065.357.186.357.12 0 .241.558.12.558-.12 0-.24.24-.12.24.029 0 .05-.005.068-.007.017-.004.029-.006.037-.001.016.01.016.046.016.157 0 .217-.12.305-.12.305s-.115-.032-.115.096.114.16.114.16.065.029-.06.09c-.126.06-.126.09-.126.09h.307l.153.28.147-.28h.302s-.152-.098-.17-.118c-.018-.02-.04-.05 0-.085.011-.01.028-.017.046-.025.044-.02.096-.043.096-.112 0-.096-.193-.096-.193-.096s-.118-.213-.081-.305a.534.534 0 0 0 .02-.07c.014-.05.021-.08.085-.08.087 0 .138-.11.027-.24 0 0 .127.138.09.315-.038.178.039.258.08.258s.107-.06.107-.06.343.306.494.306c.151 0 .367-.246.367-.246l.311.175s.227.318.194.537c-.034.22-.163.341-.316.307-.152-.034-.4.036-.42.13a1.353 1.353 0 0 1-.01.051c-.027.107-.066.268.053.228.141-.046.169-.082.169-.082s-.019.082.095.082c.113 0 .146-.082.146-.082s.118.082.2.082c.083 0 .175-.063.175-.063s.061.094.196.063c.134-.03.236-.382.138-.46 0 0 .325-.048.409-.33 0 0-.315-.005-.282-.198.032-.194.198-.318.198-.318s.478-.231.684-.305c.205-.075.547-.15.632-.15.034 0 .059.08.092.19.049.159.116.378.259.498.242.202.077.664.077.664s-.538.054-.538.2c0 .146.009.21.11.21.1 0 .098-.083.098-.083s.06.082.157.082c.096 0 .173-.082.173-.082s.026.082.152.082c.127 0 .126-.082.126-.082s.022.082.134.082c.111 0 .34-.082.34-.082s.036.082.152.082c.115 0 .118-.082.118-.082s.062.082.162.082.16-.082.16-.082.143.082.243.082.064-.149 0-.279a.758.758 0 0 0-.052-.086c-.05-.076-.087-.13-.001-.225.024-.027.052-.053.08-.08.103-.1.207-.202.13-.29a.38.38 0 0 0-.075-.064c-.087-.06-.176-.122-.135-.465a3.35 3.35 0 0 1 .114-.527c.05-.183.096-.35.096-.542 0-.357-.21-.765-.21-.765s.283-.198.283-.601c0-.403-.633-.447-.633-.447s-.629.162-.906.081c-.063-.018-.116-.031-.16-.042-.149-.038-.195-.05-.195-.153 0-.134-.202.114-.202.114s-.159-.063-.05-.195c.107-.132.155-.183.155-.183s-.094-.108-.255-.054c-.16.054-.188.143-.188.143s-.183-.186-.069-.322c.114-.136.258 0 .258 0s.163.085.176-.027c.013-.112 0-.201 0-.201s.41.117.294.3c-.115.183-.042.25-.042.25s.282.018.333-.177a.41.41 0 0 0 .002-.2c.081.038.173.083.147.158-.047.138-.15.313-.15.313s.283-.017.367-.237c.084-.221.053.054.053.054s.108-.004.27.09c.162.093 0-.144 0-.144s.337.417.655.367c.318-.05.3-.313.3-.313s-.075-.13-.233-.13c-.157 0-.067.13-.067.13s.153.087-.09 0c-.07-.026-.176-.107-.307-.209-.32-.249-.793-.616-1.28-.56-.686.08-.925.386-.925.386v-.256s-.116.178-.223.178-.406-.178-.406-.178l-.19.178s-.072-.178-.198-.178c-.127 0-.127.178-.127.178s-.159-.078-.334-.078a.449.449 0 0 1-.18-.047c-.067-.029-.106-.046-.106.047v.053c.004.125.006.203-.176.226-.206.027-.365.027-.365.027s-.124-.15-.22-.15-.207.116-.207.222c0 .107.124.41.207.474.022.017.018.016 0 .007-.05-.023-.207-.095-.207.058 0 .106.026.132.046.151.018.02.03.031.005.102-.01.03-.025.064-.04.1-.058.138-.126.299-.01.299.061 0 .12-.014.161-.024.056-.013.081-.019.045.024-.014.016-.033.037-.053.057-.066.07-.134.14-.016.087a.79.79 0 0 0 .157-.104c.063-.05.107-.084.132-.04.016.027.003.065-.008.096-.018.053-.031.092.101.048a.524.524 0 0 0 .09-.036c0 .008.007.02.028.036.044.032.036.063.03.087-.008.027-.013.044.065.044.074 0 .179-.057.241-.091.06-.033.08-.045-.006.04-.054.053-.133.089-.22.128-.195.088-.433.195-.54.56-.146.493-.08.594-.071.606l-.448-.49s.107-.084.107-.224-.277-.245-.277-.245.01-1.747.09-2.128C8.43 3.252 8.47 3 8.47 3Zm.893 2.294a.015.015 0 0 0-.014.017c.02-.011.02-.017.014-.017Zm3.369-1.41-.006-.002c-.066-.031-.122-.058-.1-.092.03-.049.083.002.106.094Zm.296 3.78s-.212.209-.077.254c.04.014.09.022.136.03.107.016.194.03.114.108-.116.113-.213.265-.213.404s.003.256.04.197c.02-.032.104-.066.194-.102.075-.03.153-.061.205-.095.096-.064.095-.133.093-.258l-.001-.07c0-.17-.49-.467-.49-.467Zm-1.646-2.786c.05-.04.053-.525.053-.525s.173.058.173.134a.232.232 0 0 1-.033.115.961.961 0 0 0-.042.096c-.038.105.066.17.162.23l.022.014c.065.042.084-.048.098-.118.008-.039.014-.071.027-.071.035 0 .298.06.496.16.172.088.342.045.73-.054l.185-.047c.523-.13.592.066.645.219.054.154-.352.366-.645.405-.13.017-.24.011-.343.006a.92.92 0 0 0-.367.03c-.186.067-.77.06-.998.058h-.072c-.105 0-.125-.034-.164-.1a1.114 1.114 0 0 0-.036-.057c-.071-.104.015-.172.07-.172.056 0 .039-.123 0-.17-.037-.047-.01-.114.039-.153Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E8AA00",d:"M6 1h1v10H6z"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M7.086 1.061v.18c0 .023-.01.053-.02.087-.035.108-.08.252.13.293.278.054.483.175.545.29.04.073.029-.05.016-.193a2.871 2.871 0 0 1-.016-.232c0-.177-.198-.522-.339-.425-.14.097-.316 0-.316 0Zm0 9.693v.18s.176-.097.316 0 .34-.248.34-.425c0-.063.007-.15.015-.231.013-.144.024-.267-.016-.193-.062.114-.267.236-.544.29-.212.04-.166.184-.132.292.011.034.02.064.02.087Zm7.832 0v.18s-.176-.097-.317 0c-.14.097-.339-.248-.339-.425a2.87 2.87 0 0 0-.015-.231c-.013-.144-.025-.267.015-.193.062.114.267.236.545.29.211.04.165.184.131.292a.334.334 0 0 0-.02.087Zm0-9.512v-.18s-.176.096-.317 0c-.14-.098-.339.247-.339.424 0 .064-.008.151-.015.232-.013.144-.025.266.015.193.062-.115.267-.236.545-.29.211-.04.165-.185.131-.293a.334.334 0 0 1-.02-.086Z",clipRule:"evenodd"})]})]}),ms=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"SY_-_Syria_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#SY_-_Syria_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 0h16v12H0V0Z"}),(0,h.jsx)("path",{fill:"#409100",d:"m4.5 6.935-.934.565.213-1.102L3 5.573l1.055-.044L4.5 4.5l.446 1.029H6l-.777.87.234 1.101-.956-.565ZM11.5 6.935l-.934.565.213-1.102L10 5.573l1.055-.044L11.5 4.5l.446 1.029H13l-.777.87.234 1.101-.956-.565Z"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#272727",d:"M0 8v4h16V8H0Z"})]})]}),us=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"TW_-_Taiwan_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#TW_-_Taiwan_svg__a)",children:[(0,h.jsx)("path",{fill:"#EF0000",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"TW_-_Taiwan_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#TW_-_Taiwan_svg__b)",children:[(0,h.jsx)("path",{fill:"#2E42A5",d:"M0 0v7h9V0H0Z"}),(0,h.jsx)("path",{fill:"#FEFFFF",d:"m4.365 5.405-.741.925-.18-1.171-1.103.43.43-1.104-1.171-.18.924-.74-.924-.741 1.17-.18-.43-1.103 1.105.43L3.624.8l.74.924L5.107.8l.18 1.17 1.103-.43-.43 1.105 1.17.179-.924.74.925.742-1.171.18.43 1.103-1.104-.43-.18 1.17-.74-.924Zm0-.409a1.431 1.431 0 1 0 0-2.862 1.431 1.431 0 0 0 0 2.862ZM5.51 3.565a1.145 1.145 0 1 1-2.29 0 1.145 1.145 0 0 1 2.29 0Z"})]})]})]}),ps=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"TJ_-_Tajikistan_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#TJ_-_Tajikistan_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#409100",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FB0",fillRule:"evenodd",d:"M7.973 7.789c-.207.006-.344-.212-.344-.212l.211-.055c.014-.14.11-.214.11-.214.062.041.13.224.13.224l.182.026s-.083.225-.29.23Zm-1.008.062c-.203.035-.37-.162-.37-.162l.202-.084c-.006-.14.078-.226.078-.226.069.031.162.203.162.203h.183s-.051.234-.255.269Zm-.724.198.093.328c.478-.13 1.033-.194 1.664-.194.632 0 1.187.065 1.665.194l.092-.328c-.51-.138-1.096-.207-1.757-.207-.661 0-1.247.07-1.757.207Zm3.129-.326s-.166.197-.37.162c-.203-.035-.254-.269-.254-.269h.183s.093-.172.161-.203c0 0 .085.087.078.226l.202.084Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FB0",fillRule:"evenodd",d:"M7.98 6.85s-.235.536-.605.577c-.369.042-.556-.305-.556-.305s-.025.36-.463.5c-.439.139-.67-.417-.67-.417s.229.205.583.116c.354-.09.494-.418.494-.418s.262.343.612.171c.351-.171.545-.38.545-.581v-.601s-.09-.156-.247-.156-.201.11-.201.11-.061-.625.503-.663V5.18h.031v.002c.565.038.504.663.504.663s-.044-.11-.201-.11c-.157 0-.248.156-.248.156v.6c0 .202.194.411.545.582.35.172.613-.171.613-.171s.14.329.494.418a.663.663 0 0 0 .582-.116s-.23.556-.67.417c-.438-.14-.462-.5-.462-.5s-.188.347-.557.305c-.37-.041-.604-.578-.604-.578l-.011-.708-.012.708Zm-.006-1.5c-.26 0-.313.221-.313.221.23 0 .313.1.313.1s.17-.1.34-.1c0 0-.08-.22-.34-.22Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FB0",d:"m5.95 6.5-.996.085c-.073-.852.278-1.658 1.014-2.396 1.084-1.087 3.279-.98 4.213.01.534.566.807 1.35.833 2.33l-1 .026c-.02-.75-.21-1.3-.56-1.67-.558-.591-2.104-.665-2.778.01-.542.543-.771 1.07-.726 1.604Z"})]})]}),_s=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"TH_-_Thailand_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#TH_-_Thailand_svg__a)",children:[(0,h.jsx)("path",{fill:"#F50101",fillRule:"evenodd",d:"M0 8h16v4H0V8ZM0 0h16v3H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#3D58DB",stroke:"#fff",strokeWidth:1.5,d:"M0 3.25h-.75v5.5h17.5v-5.5H0Z"})]})]}),fs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"TR_-_Turkey_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#TR_-_Turkey_svg__a)",children:[(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"TR_-_Turkey_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#TR_-_Turkey_svg__b)",children:(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M8.013 8.057c-1.071-.264-1.91-1.16-1.9-2.474.01-1.23.754-2.269 1.93-2.55 1.178-.282 2.214.316 2.214.316-.325-.768-1.455-1.308-2.382-1.306-1.725.003-3.563 1.401-3.579 3.54-.016 2.218 1.969 3.48 3.715 3.478 1.4-.003 2.063-.96 2.2-1.368 0 0-1.128.628-2.198.364Zm2.439-2.894-1.067.392 1.204.425-.021 1.268.793-.951 1.31.095-1.038-.893.682-.951-1.11.373-.793-.882.04 1.124Z",clipRule:"evenodd"})})]})]}),gs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"TM_-_Turkmenistan_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#TM_-_Turkmenistan_svg__a)",children:[(0,h.jsx)("path",{fill:"#29C470",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"TM_-_Turkmenistan_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#TM_-_Turkmenistan_svg__b)",children:[(0,h.jsx)("path",{fill:"#C51918",d:"M1-.161h5v13.162H1z"}),(0,h.jsx)("mask",{id:"TM_-_Turkmenistan_svg__c",width:5,height:14,x:1,y:-1,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M1-.161h5v13.162H1z"})}),(0,h.jsxs)("g",{mask:"url(#TM_-_Turkmenistan_svg__c)",children:[(0,h.jsx)("path",{fill:"#E8AA00",fillRule:"evenodd",d:"m1.298.453-.273.35L1 .78l.265-.34V.364L1.298.27l-.02-.033-.155.157.3-.47v.16l.059.053.138-.241-.139-.233-.1.077.04.081-.027.02-.226-.378.144.099.025-.037-.138-.14.061-.068-.2-.293L1.083-1l.22.32-.058.062.135.137-.062.09-.041-.028.078.132.133-.102.169.283-.17.296L1.39.102V.038L1.291.19l.042.074-.035.109v.079Zm-.273 2.862.273-.35v-.08l.035-.109-.042-.073.099-.154v.064l.098.089.17-.296-.17-.284-.132.102-.078-.132.04.029.063-.09-.135-.137.057-.063-.219-.32-.026.023.201.294-.06.067.137.14-.025.037-.144-.098.226.377.028-.02-.04-.08.1-.077.138.232-.138.241-.058-.052v-.16l-.301.469.156-.156.019.033-.031.095-.001.006v.068L1 3.29l.025.025Zm.273 1.94-.273.35L1 5.581l.265-.34V5.165l.032-.095-.02-.033-.155.156.3-.47v.161l.059.052.138-.241-.139-.233-.1.077.04.082-.027.02-.226-.378.144.098.025-.037-.138-.14.061-.067-.2-.294.025-.023.22.32-.058.063.135.137-.062.09-.041-.029.078.132.133-.102.169.283-.17.297-.098-.09V4.84l-.099.154.042.073-.035.11v.078Zm-.273 2.677.273-.351V7.5l.035-.108-.042-.073.099-.154v.064l.098.088.17-.296-.17-.283-.132.102-.078-.132.04.028.063-.09-.135-.136.057-.063-.219-.32-.026.023.201.294-.06.067.137.14-.025.037-.144-.099.226.378.028-.02-.04-.08.1-.078.138.233-.138.241-.058-.052v-.16l-.301.469.156-.157.019.033-.031.095-.001.007v.068L1 7.907l.025.025Zm0 2.068.273-.35v-.08l.035-.109-.042-.073.099-.154v.064l.098.089.17-.297-.17-.283-.132.102-.078-.132.04.029.063-.09-.135-.137.057-.063-.219-.32-.026.023.201.294-.06.067.137.14-.025.037-.144-.098.226.377.028-.02-.04-.08.1-.077.138.232-.138.241-.058-.052v-.16l-.301.469.156-.156.019.033-.031.095-.001.006v.068L1 9.975l.025.025Zm4.95 0-.273-.35v-.08l-.035-.109.042-.073-.099-.154v.064l-.098.089-.17-.297.17-.283.132.102.078-.132-.04.029-.063-.09.135-.137-.057-.063.219-.32.026.023-.201.294.06.067-.137.14.025.037.144-.098-.226.377-.028-.02.04-.08-.1-.077-.138.232.138.241.058-.052v-.16l.301.469-.156-.156-.019.033.031.095.001.006v.068l.265.34-.025.025Zm-.273-2.42.273.352L6 7.907l-.265-.34V7.492l-.032-.095.02-.033.155.157-.3-.47v.16l-.059.053-.138-.241.139-.233.1.077-.04.082.027.019.226-.378-.144.099-.025-.037.138-.14-.061-.067.2-.294-.025-.023-.22.32.058.063-.135.137.062.09.041-.029-.078.132-.133-.102-.169.283.17.296.098-.088v-.064l.099.154-.042.073.035.109v.079Zm.273-1.975-.273-.35v-.08l-.035-.109.042-.073-.099-.154v.064l-.098.089-.17-.297.17-.283.132.102.078-.132-.04.029-.063-.09.135-.137-.057-.063.219-.32.026.023-.201.294.06.067-.137.14.025.037.144-.098-.226.377-.028-.02.04-.08-.1-.078-.138.233.138.241.058-.052v-.16l.301.469-.156-.156-.019.033.031.095.001.006v.068L6 5.58l-.025.025Zm-.273-2.64.273.35L6 3.291l-.265-.34V2.875l-.032-.095.02-.033.155.156-.3-.469v.16l-.059.052-.138-.241.139-.232.1.076-.04.082.027.02.226-.378-.144.098-.025-.037.138-.14-.061-.067.2-.294-.025-.023-.22.32.058.063-.135.137.062.09.041-.029-.078.132-.133-.102-.169.284.17.296.098-.089v-.064l.099.154-.042.073.035.11v.078ZM5.975.803 5.702.453v-.08L5.667.266 5.709.19 5.61.038v.064L5.512.19l-.17-.296.17-.283.132.102.078-.132-.04.028-.063-.09.135-.137-.057-.062.219-.32.026.023-.201.293.06.068-.137.14.025.037.144-.099-.226.378-.028-.02.04-.081-.1-.077-.138.233.138.241.058-.052v-.16l.301.469-.156-.157-.019.033.031.095.001.007v.068L6 .779l-.025.025Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#389F5D",fillRule:"evenodd",d:"M3.653 7.282h.777v.183h.177v.145h.212v.474h-.212v.146H4.43v.146h-.756l-.21.186-.21-.186h-.7V8.23h-.177v-.146H2.2V7.61h.177v-.145h.177v-.183h.722l.189-.167.188.167Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E8AA00",d:"M4.43 7.282h.075v-.075H4.43v.075Zm-.777 0-.05.056.022.02h.028v-.076Zm.777.183h-.075v.075h.075v-.075Zm.177 0h.075V7.39h-.075v.075Zm0 .145h-.075v.075h.075V7.61Zm.212 0h.075v-.075H4.82v.075Zm0 .474v.075h.075v-.075H4.82Zm-.212 0V8.01h-.075v.075h.075Zm0 .146v.075h.075V8.23h-.075Zm-.177 0v-.075h-.075v.075h.075Zm0 .146v.075h.075v-.075H4.43Zm-.756 0v-.075h-.028l-.022.019.05.056Zm-.21.186-.049.056.05.044.05-.044-.05-.056Zm-.21-.186.05-.056-.02-.019h-.03v.075Zm-.7 0h-.075v.075h.075v-.075Zm0-.146h.075v-.075h-.075v.075Zm-.177 0h-.075v.075h.075V8.23Zm0-.146h.075V8.01h-.075v.075Zm-.177 0h-.075v.075H2.2v-.075Zm0-.474v-.075h-.075v.075H2.2Zm.177 0v.075h.075V7.61h-.075Zm0-.145V7.39h-.075v.075h.075Zm.177 0v.075h.075v-.075h-.075Zm0-.183v-.075h-.075v.075h.075Zm.722 0v.075h.028l.021-.018-.05-.057Zm.189-.167.05-.056-.05-.044-.05.044.05.056Zm.965.092h-.777v.15h.777v-.15Zm.075.258v-.183h-.15v.183h.15Zm.102-.075H4.43v.15h.177v-.15Zm.075.22v-.145h-.15v.145h.15Zm.137-.075h-.212v.15h.212v-.15Zm.075.55V7.61h-.15v.474h.15Zm-.287.074h.212v-.15h-.212v.15Zm.075.071v-.146h-.15v.146h.15Zm-.252.075h.177v-.15H4.43v.15Zm.075.071V8.23h-.15v.146h.15Zm-.831.075h.756v-.15h-.756v.15Zm-.16.167.21-.186-.1-.112-.209.186.1.112Zm-.309-.186.21.186.1-.112-.21-.186-.1.112Zm-.651.02h.7v-.15h-.7v.15Zm-.075-.222v.146h.15V8.23h-.15Zm-.102.075h.177v-.15h-.177v.15Zm-.075-.22v.145h.15v-.146h-.15Zm-.102.074h.177v-.15H2.2v.15Zm-.075-.549v.474h.15V7.61h-.15Zm.252-.075H2.2v.15h.177v-.15Zm-.075-.07v.145h.15v-.145h-.15Zm.252-.075h-.177v.15h.177v-.15Zm-.075-.108v.183h.15v-.183h-.15Zm.797-.075h-.722v.15h.722v-.15Zm.05.132.189-.168-.1-.112-.19.167.1.113Zm.089-.168.188.167.1-.112-.188-.167-.1.112Z"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M2.658 7.704v-.322h.375l-.375.322Zm1.578 0v-.322h-.375l.375.322Zm-1.578.583v-.322l.375.322h-.375Zm1.578-.322v.322h-.375l.375-.322Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E8AA00",fillRule:"evenodd",d:"m3.323 7.41.129-.17.128.17h-.257Zm0 .158.129.17.128-.17h-.257Zm.129.4-.13.17h.258l-.128-.17Zm-.13.329.13.17.128-.17h-.257Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#AF0100",fillRule:"evenodd",d:"M3.325 7.39v.072h-.074v.1h.074v.073h.26v-.073h.074v-.1h-.074V7.39h-.26Zm.26.801v-.073h-.26v.073h-.074v.1h.074v.073h.26v-.073h.074v-.1h-.074ZM2.827 7.775l.123-.17.122.17h-.245Zm0 .159.123.17.122-.17h-.245Zm1.15-.33-.124.17H4.1l-.122-.17Zm-.124.33.124.17.122-.17h-.246Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E8AA00",fillRule:"evenodd",d:"M2.826 7.754v.074h-.07v.102h.07v.075h.247V7.93h.07v-.102h-.07v-.074h-.247Zm1.274.074v-.074h-.247v.074h-.071v.102h.07v.075H4.1V7.93h.07v-.102H4.1Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"TM_-_Turkmenistan_svg__d",width:3,height:3,x:2,y:8,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"m3.109 8.625-.886.5v.828l.886.52h.959l.907-.52v-.828l-.907-.5h-.96Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#TM_-_Turkmenistan_svg__d)",children:[(0,h.jsx)("path",{fill:"#E8AA00",d:"M2.235 9.548h1.381v.911h-1.38v-.911Z"}),(0,h.jsx)("path",{fill:"#F9E8E7",d:"M2.094 8.636h1.522v.911H2.094z"}),(0,h.jsx)("path",{fill:"#E8AA00",d:"m2.448 9.168.458-.276v.276h-.458ZM5.138 8.636H3.616v.911h1.522z"}),(0,h.jsx)("path",{fill:"#F9E8E7",d:"m4.678 9.168-.458-.276v.276h.458ZM4.997 10.46H3.616v-.911h1.38z"}),(0,h.jsx)("path",{fill:"#E8AA00",d:"m4.642 9.928-.458.276v-.276h.458Z"}),(0,h.jsx)("path",{fill:"#FCFCFC",d:"m2.448 9.87.458.277V9.87h-.458Z"})]}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M3.12 9.183h.23l.23-.073.23.073h.23v.693h-.23l-.23.11-.23-.11h-.23v-.693Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C9343F",fillRule:"evenodd",d:"M3.9 8.769h.124v.14h.051v.1h-.05v.055h-.126v-.295Zm-1.256.437h-.125v.295h.125v-.054h.05v-.1h-.05v-.14Zm.177 0h-.125v.295h.125v-.295Zm-.177.365h-.125v.295h.125v-.054h.05v-.1h-.05v-.141Zm.052 0h.125v.295h-.125V9.57Zm1.77-.365h.125v.141h.05v.1h-.05v.054h-.125v-.295Zm.302 0h-.125v.295h.125v-.295Zm-.177.365h-.125v.295h.125v-.054h.05v-.1h-.05v-.141Zm.052 0h.125v.295h-.125V9.57ZM4.2 8.769h-.125v.295h.125v-.295Zm-1.026 0H3.05v.295h.125V9.01h.05v-.1h-.05v-.141Zm.052 0h.125v.295h-.125v-.295Zm.672 1.24h.125v.14h.051v.1h-.05v.054h-.126v-.295Zm.302 0h-.125v.294h.125v-.295Zm-1.026 0H3.05v.294h.125v-.054h.05v-.1h-.05v-.14Zm.052 0h.125v.294h-.125v-.295Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M3.513 9.333h.035v-.099h-.177v.113h-.146v.163h.136v-.037h-.1v-.09h.12l.18.157-.18.157h-.12v-.09h.1v-.036h-.136v.162h.146v.114h.177v-.1h-.035v.063h-.107v-.087l.184-.16.184.16v.087h-.106v-.062h-.035v.099h.177v-.114h.146v-.162H3.82v.036h.1v.09H3.8l-.18-.157.18-.156h.12v.09h-.1v.036h.136v-.163H3.81v-.113h-.177v.1h.035V9.27h.106v.087l-.184.16-.184-.16v-.087h.107v.062Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E8AA00",fillRule:"evenodd",d:"M3.792 2.4H3.17v2h.623v-2Zm-1.402.423h.39V3.9h-.39V2.823Zm1.83 0h.39V3.9h-.39V2.823Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#389F5D",fillRule:"evenodd",d:"M3.169 2.554h-.39v1.538h.39V2.554Zm-.78.423H2v.73h.39v-.73Zm2.221 0H5v.73h-.39v-.73Zm-.428-.423h-.39v1.538h.39V2.554Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E1E5E8",fillRule:"evenodd",d:"M3.09 2.746a.116.116 0 0 1-.116.116.116.116 0 0 1-.117-.116c0-.064.052-.115.117-.115s.117.051.117.115Zm-.778.385a.116.116 0 0 1-.117.115.116.116 0 0 1-.117-.115c0-.064.052-.116.117-.116.064 0 .117.052.117.116Zm0 .423a.116.116 0 0 1-.117.115.116.116 0 0 1-.117-.115c0-.064.052-.116.117-.116.064 0 .117.052.117.116Zm.662.461a.116.116 0 0 0 .117-.115.116.116 0 0 0-.117-.115.116.116 0 0 0-.117.115c0 .064.052.115.117.115Zm1.831-.769a.116.116 0 0 0 .117-.115.116.116 0 0 0-.117-.116.116.116 0 0 0-.117.116c0 .064.053.115.117.115Zm.117.308a.116.116 0 0 1-.117.115.116.116 0 0 1-.117-.115c0-.064.053-.116.117-.116.065 0 .117.052.117.116Zm-.935.461a.116.116 0 0 0 .117-.115.116.116 0 0 0-.117-.115.116.116 0 0 0-.117.115c0 .064.052.115.117.115Zm.117-1.269a.116.116 0 0 1-.117.116.116.116 0 0 1-.117-.116c0-.064.052-.115.117-.115s.117.051.117.115Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M3.597 2.592a.116.116 0 0 1-.116.116.116.116 0 0 1-.117-.116c0-.063.052-.115.117-.115.064 0 .116.052.116.115Zm-.896.423a.116.116 0 0 1-.117.116.116.116 0 0 1-.116-.116c0-.063.052-.115.116-.115.065 0 .117.052.117.115Zm.78 1.347a.116.116 0 0 0 .116-.116.116.116 0 0 0-.116-.115.116.116 0 0 0-.117.115c0 .064.052.116.117.116Zm1.051-1.347a.116.116 0 0 1-.116.116.116.116 0 0 1-.117-.116c0-.063.052-.115.117-.115.064 0 .116.052.116.115Zm-1.948.808a.116.116 0 0 0 .117-.115.116.116 0 0 0-.117-.116.116.116 0 0 0-.116.116c0 .063.052.115.116.115Zm1.948-.115a.116.116 0 0 1-.116.115.116.116 0 0 1-.117-.115c0-.064.052-.116.117-.116.064 0 .116.052.116.116Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"m2.803 3.196.38-.343h.615l.433.393h.574V3.4h-.559v.008l-.448.456h-.615l-.38-.412V3.4h-.647v-.154h.647v-.05Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E8AA00",fillRule:"evenodd",d:"m3.505 3.138.185.187-.194.183-.193-.183.184-.187.01-.008.008.008Zm.034.451.022-.02-.023-.02.192-.183.2.203-.09.095h-.053l-.1.063-.148-.138Zm-.043.04-.184.17-.124-.077h-.061l-.146-.154.239-.242-.24-.227.157-.153.058.044.082-.083-.025-.025.042-.04.202.204.202-.205.042.04-.025.026.083.083.057-.044.158.153-.24.227.238.242-.145.154h-.062l-.123.077-.185-.17ZM3.6 3.15l.003-.003-.056-.051-.007-.007.144-.133.11.111.058-.045.078.075-.197.187-.133-.134Zm-.123.418-.171.158-.1-.063h-.053l-.09-.095.2-.203.214.203Zm-.413-.47.198.186.192-.195-.144-.133-.11.111-.058-.045-.078.075ZM2.224 10.72c-.104-.132-.175-.221-.193-.22-.059.004-.113.622.645 1.092 0 0 .112.062.177 0 .065-.062 0-.154 0-.154a6.621 6.621 0 0 1-.629-.717Zm2.552 0c.104-.132.175-.221.193-.22.059.004.113.622-.645 1.092 0 0-.112.062-.177 0-.065-.062 0-.154 0-.154.245-.23.474-.52.629-.717Zm-.056.832c-.249.074-.537.089-.648.041a.637.637 0 0 0-.112-.036 1.008 1.008 0 0 0-.343-.011l-.05.006a.336.336 0 0 1-.02.002.108.108 0 0 0-.025.003.108.108 0 0 0-.025-.003l-.02-.002-.05-.006a1.008 1.008 0 0 0-.344.011.636.636 0 0 0-.111.036c-.11.048-.4.033-.649-.041 0 0 .454.182.723.101a.479.479 0 0 1 .083-.026.774.774 0 0 1 .25-.01c-.04.018-.087.04-.14.06v.023c.106-.043.23-.063.283-.07.053.007.177.027.283.07v-.022a2.952 2.952 0 0 1-.14-.062.774.774 0 0 1 .25.01.479.479 0 0 1 .083.027c.269.08.722-.101.722-.101Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#389F5D",fillRule:"evenodd",d:"m2.882 4.989-.626.551v.526l.547.55h1.118l.616-.587v-.447l-.616-.593H2.882Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M3.097 5.047h-.141v.11h.141v-.11Zm0 1.43h-.141v.11h.141v-.11Zm.213 0h.141v.11H3.31v-.11Zm.141-1.43H3.31v.11h.141v-.11Zm.213 1.43h.141v.11h-.141v-.11Zm.141-1.43h-.141v.11h.141v-.11Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E8AA00",fillRule:"evenodd",d:"M3.277 5.019h-.144v.11h.144v-.11Zm0 1.458h-.144v.11h.144v-.11Zm.216-1.458h.144v.11h-.144v-.11Zm.144 1.458h-.144v.11h.144v-.11Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#750100",fillRule:"evenodd",d:"M2.457 4.921h1.89v.292h.27V6.42h-.27v.25h-1.89v-.25h-.294V5.213h.294v-.292Zm.106.401h-.294v.99h.294v.249h1.678v-.25h.27v-.989h-.27V5.03H2.563v.292Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#389F5D",fillRule:"evenodd",d:"M3.204 4.8h-.177v.182h.176V4.8Zm.283 0H3.31v.182h.177V4.8Zm.106 0h.177v.182h-.177V4.8Zm-.39 1.823h-.176v.182h.176v-.182Zm.107 0h.177v.182H3.31v-.182Zm.46 0h-.177v.182h.177v-.182Zm-1.773-.404v-.177h.183v.177h-.183Zm0-.468v.177h.183V5.75h-.183Zm0-.115v-.177h.183v.177h-.183Zm2.549.406v.177h.182v-.177h-.182Zm0-.114V5.75h.182v.177h-.182Zm0-.47v.178h.182v-.177h-.182Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"m2.89 5.142-.306.266v.859l.253.18h1.099l.252-.18v-.86l-.285-.265H2.889Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E1E5E8",fillRule:"evenodd",d:"m3.402 5.498-.369.315h.369v-.315Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E8AA00",d:"m3.402 6.099-.369-.315h.369v.315Z"}),(0,h.jsx)("path",{fill:"#E8AA00",fillRule:"evenodd",d:"m3.37 5.498.368.315H3.37v-.315Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#29AE66",fillRule:"evenodd",d:"M3.386 5.898a.112.112 0 1 0 0-.223.112.112 0 0 0 0 .223Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E1E5E8",d:"m3.37 6.099.368-.315H3.37v.315Z"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M2.602 5.675h-.319v.102h.319v-.102Zm0 .186h-.319v.102h.319v-.102Zm1.593-.186h.318v.102h-.318v-.102Zm.318.186h-.318v.102h.318v-.102Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E8AA00",fillRule:"evenodd",d:"M2.566 5.566h-.283v.111h.283v-.111Zm0 .186h-.283v.111h.283v-.111Zm-.283.186h.283v.111h-.283v-.111Zm2.195-.372h-.283v.111h.283v-.111Zm-.283.186h.283v.111h-.283v-.111Zm.283.186h-.283v.111h.283v-.111ZM4.993.795 4.99.998H3.512l-.001.92h-.464c-.08 0-.303-.156-.303-.156h-.377l-.174-.177v-.179l-.186-.221V.982h1.48l.001-.92h.464c.081 0 .303.155.303.155h.377l.174.178v.179l.187.221Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E1E5E8",fillRule:"evenodd",d:"M2.007.795v.203h1.48l.001.92h.464c.081 0 .303-.156.303-.156h.377l.174-.177v-.179l.187-.221L4.99.982H3.512l-.001-.92h-.464c-.08 0-.303.155-.303.155h-.377l-.174.178v.179l-.186.221Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M3.001.343 2.985.264l.32-.073C3.341.173 3.408.12 3.5.034l.043.049.008-.009c.091.086.158.139.196.157l.32.073-.017.079-.177-.037.017.015a.22.22 0 0 0-.04.032l-.074-.01.007-.026-.02-.003a.85.85 0 0 0-.045.11L3.643.442l.03-.145L3.504.14 3.386.25c.015.013.03.029.044.046a.705.705 0 0 1-.036.013H3.39l.02.093-.075.022a1.117 1.117 0 0 0-.028-.072l-.007.001a.22.22 0 0 0-.04-.032l.022-.019a.185.185 0 0 0-.01-.015l-.27.056Zm.013.286.043-.067-.22-.148L2.86.38 2.798.333 2.771.37 2.684.312 2.64.379l.084.056-.017.024.063.048.02-.028.223.15Zm-.272.08.042-.067-.22-.148.024-.034-.063-.047-.027.038-.087-.059-.043.067.084.056-.017.024.063.048.02-.028.224.15Zm-.117.24.042-.067-.22-.148L2.47.7 2.41.653 2.382.69 2.294.632l-.043.067.084.056-.017.024.063.048.02-.028.224.15Zm.003.192-.042-.067-.224.15-.02-.027-.063.047.017.024-.083.056.042.067.088-.058.027.038.062-.048-.024-.034.22-.148Zm.075.173.042.067-.22.148.024.034-.062.048-.028-.038-.087.058-.043-.067.084-.056-.017-.024.063-.047.02.027.224-.15Zm.272.08.043.067-.22.148.024.034-.063.048-.027-.038-.087.058-.043-.067.084-.056-.017-.024.063-.047.02.027.223-.15Zm.416.383a.7.7 0 0 0-.036-.013L3.34 1.76l.03-.139-.075-.022a.603.603 0 0 1-.063.137l-.27-.055-.016.078.308.07v.001l.044.03.006-.004c.039.027.092.072.158.133l.025-.028.025.028c.091-.085.158-.138.196-.157l.01-.002a.31.31 0 0 0 .041.03l.045-.03-.005-.015.005-.005.223-.051-.016-.078-.27.055A.602.602 0 0 1 3.68 1.6l-.075.022.03.145-.147.138-.114-.107a.542.542 0 0 0 .018-.02Zm.954-.636.043-.067.224.15.02-.027.062.047-.017.024.084.056-.043.067-.087-.058-.027.038-.063-.048.024-.034-.22-.148Zm-.117.24.043-.067.224.15.02-.027.062.047-.017.024.084.056-.043.067-.087-.058-.027.038-.063-.048.024-.034-.22-.148Zm-.273.08.043-.067.224.15.02-.027.063.047-.018.024.084.056-.042.067-.088-.058-.027.038-.063-.048.025-.034-.22-.148Zm.429-.539.043.067.224-.15.02.028.062-.048-.017-.024L4.8.74 4.757.672 4.67.731 4.643.693 4.58.74l.024.034-.22.148Zm-.117-.24L4.31.75 4.534.6l.02.028.062-.048L4.6.555 4.683.5 4.64.432l-.087.059-.027-.038L4.463.5l.024.034-.22.148Zm-.273-.08.043.067.224-.15.02.028.063-.048-.018-.024L4.41.42 4.368.352 4.28.411 4.253.373 4.19.42l.025.034-.22.148Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"m3.104.577.441-.234v.64h1.091l-.26.187v.245h-.411l-.442.234v-.64h-1.09l.26-.188V.577h.41Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#29AE66",fillRule:"evenodd",d:"M3.965.577 3.523.343v.64h-1.09l.26.187v.245h.41l.442.234v-.64h1.091L4.376.82V.577h-.411Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#29AE66",fillRule:"evenodd",d:"M2.89.742 2.962.6l.183.098.05-.075.128.091-.039.059.542.29.034-.05.128.091-.023.033.059.032-.072.142-.076-.04-.061.09-.129-.09.05-.075-.541-.29-.045.066L3.022.88l.034-.05L2.89.742Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M4.045.703 3.963.567l-.176.11-.055-.071-.122.1.043.055-.52.327-.037-.047-.122.1.025.032-.056.035.082.136.072-.045.068.087.122-.1-.056-.071.52-.327.05.062.121-.1-.037-.046.16-.1Z",clipRule:"evenodd"})]}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M9.537 1s1.165 2.76.13 3.933C8.632 6.106 6 5.88 6 5.88s3.378 1.526 4.85-.575C12.322 3.204 9.537 1 9.537 1Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"m7.422 2.624-.308.217.109-.363-.3-.23.376-.008.123-.358.123.358.376.008-.3.23.11.363-.309-.217Zm.06 1.003-.309.217.11-.364-.3-.23.375-.007.124-.359.123.359.376.008-.3.23.109.363-.308-.217Zm-1.246.294.309-.217.308.217-.109-.363.3-.23-.376-.008-.123-.358-.124.358-.375.008.299.23-.109.363Zm1.246.758-.309.217.11-.364-.3-.23.375-.007.124-.36.123.36.376.008-.3.229.109.364-.308-.217Zm.71-1.142.309-.217.308.217-.109-.363.3-.23-.376-.007-.123-.36-.124.36-.375.007.299.23-.109.363Z",clipRule:"evenodd"})]})]})]}),xs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"AE_-_United_Arab_Emirates_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#AE_-_United_Arab_Emirates_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 0h5v12H0z"})]})]}),Zs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"UZ_-_Uzbekistan_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#UZ_-_Uzbekistan_svg__a)",children:[(0,h.jsx)("path",{fill:"#14DC5A",fillRule:"evenodd",d:"M0 8h16v4H0V8Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#0099B5",fillRule:"evenodd",d:"M0 0h16v5H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",stroke:"#C51918",strokeWidth:.75,d:"M-1 4.625h-.375v3.75h18.75v-3.75H-1Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"m8.364 1.2-.492.28.14-.567-.47-.417h.615l.206-.536.242.536h.524l-.412.417.198.566-.551-.279Zm-2.52 1.538.492-.28.551.28-.198-.567.412-.416h-.524l-.242-.536-.206.536h-.615l.471.416-.14.567ZM4.489 3.777l-.491.278.14-.566-.47-.417h.614l.207-.536.241.536h.524l-.411.417.198.566-.552-.278Zm1.876.002-.49.278.14-.566-.471-.416h.614l.207-.536.241.536h.524l-.411.416.198.566-.552-.278Zm2 0-.49.278.14-.566-.471-.416h.614l.207-.536.241.536h.524l-.411.416.198.566-.552-.278Zm-.52-1.041.492-.28.551.28-.198-.567.412-.416h-.524l-.242-.536-.206.536h-.615l.471.416-.14.567Zm2.03 1.32.49-.28.552.28-.198-.567.412-.416h-.525l-.241-.536-.207.536h-.614l.47.416-.14.566Zm.462-1.6-.491.28.14-.567-.47-.416h.614l.206-.536.242.536h.524l-.412.416.198.567-.55-.28Zm-.464-.979.492-.279.551.28-.198-.567.412-.417h-.524l-.242-.536-.206.536h-.615l.47.417-.14.566Zm2.492 2.3-.49.278.14-.566-.471-.416h.615l.206-.536.241.536h.524l-.411.416.198.566-.552-.278Zm-.52-1.041.492-.28.551.28-.198-.567.412-.416h-.524l-.242-.536-.206.536h-.615l.471.416-.14.567Zm.52-1.538-.492.28.14-.567-.47-.417h.615l.206-.536.242.536h.524l-.412.417.198.566-.551-.279ZM2.942 4.12s-1.207-.327-1.185-1.54C1.78 1.37 3 1.056 3 1.056c-.498-.19-1.972.064-2 1.514-.027 1.45 1.478 1.735 1.942 1.551Z",clipRule:"evenodd"})]})]}),js=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"VN_-_Vietnam_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#VN_-_Vietnam_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"VN_-_Vietnam_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#VN_-_Vietnam_svg__b)",children:(0,h.jsx)("path",{fill:"#FFD221",fillRule:"evenodd",d:"M8.031 7.99 5.456 9.627l.863-2.866-1.837-1.873 2.533-.055 1.12-2.83L9.157 4.87l2.526.044-1.899 1.907.887 2.727-2.64-1.558Z",clipRule:"evenodd"})})]})]}),ys=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"YE_-_Yemen_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#YE_-_Yemen_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"YE_-_Yemen_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#YE_-_Yemen_svg__b)",children:[(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#272727",d:"M0 8v4h16V8H0Z"})]})]})]}),ws=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"BZ_-_Belize_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#BZ_-_Belize_svg__a)",children:[(0,h.jsx)("path",{fill:"#0168B4",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"BZ_-_Belize_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#BZ_-_Belize_svg__b)",children:[(0,h.jsx)("path",{fill:"#E93C43",fillRule:"evenodd",d:"M0 0v2h16V0H0ZM0 10v2h16v-2H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M8 9a3 3 0 1 1 0-6 3 3 0 0 1 0 6Z"}),(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M4.5 6a3.5 3.5 0 1 0 7 0 3.5 3.5 0 0 0-7 0ZM11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#5B8C39",fillRule:"evenodd",d:"M5 6a3 3 0 1 0 6 0 3 3 0 0 0-6 0Zm5.3 0a2.3 2.3 0 1 1-4.6 0 2.3 2.3 0 0 1 4.6 0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#5B8C39",fillRule:"evenodd",d:"m6.5 7 1.47-.188L9.5 7v.5l-1.53-.188L6.5 7.5V7Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#769DF1",fillRule:"evenodd",d:"M7 5h2s.141 3-1 3-1-3-1-3Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",d:"M8 5h1v1H8z"}),(0,h.jsx)("path",{fill:"#F6F7F8",d:"M7 5h1v1H7z",opacity:.6}),(0,h.jsx)("rect",{width:2,height:1,x:7,y:4,fill:"#5B8C39",opacity:.66,rx:.5}),(0,h.jsx)("path",{fill:"#E9AD35",fillRule:"evenodd",d:"M6.9 6.4c.276 0 .5-.448.5-1s-.224-1-.5-1-.5.448-.5 1 .224 1 .5 1Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#5C2216",fillRule:"evenodd",d:"M9.1 6.4c.276 0 .5-.448.5-1s-.224-1-.5-1-.5.448-.5 1 .224 1 .5 1Z",clipRule:"evenodd"})]})]})]}),ks=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"CR_-_Costa_Rica_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#CR_-_Costa_Rica_svg__a)",children:[(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"CR_-_Costa_Rica_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#CR_-_Costa_Rica_svg__b)",children:(0,h.jsx)("path",{fill:"#E31D1C",stroke:"#F7FCFF",strokeWidth:2,d:"M0 4h-1v4h18V4H0Z"})})]})]}),Rs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"SV_-_El_Salvador_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#SV_-_El_Salvador_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"SV_-_El_Salvador_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#SV_-_El_Salvador_svg__b)",children:[(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0 0v4h16V0H0ZM0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{stroke:"#E8AA00",strokeWidth:.5,d:"M9.713 5.93a1.82 1.82 0 1 1-3.642 0 1.82 1.82 0 0 1 3.642 0Z"}),(0,h.jsx)("path",{fill:"#1E601B",fillRule:"evenodd",d:"M6.905 4.831s-.476.784-.476 1.322S7 7.368 7.896 7.368c.875 0 1.504-.523 1.523-1.215.019-.692-.47-1.184-.47-1.184s.276.996.138 1.4c-.139.403-.587.891-1.19.83-.604-.063-1.177-.806-1.177-1.046s.185-1.322.185-1.322Z",clipRule:"evenodd"}),(0,h.jsx)("path",{stroke:"#188396",strokeWidth:.5,d:"M7.08 6.164h1.604"}),(0,h.jsx)("path",{stroke:"#E8AA00",strokeWidth:.5,d:"M7.23 5.903h1.38M8.525 6.206H7.297l.62-1.029.608 1.029Z"})]})]})]}),Ms=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"GT_-_Guatemala_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#GT_-_Guatemala_svg__a)",children:[(0,h.jsx)("path",{fill:"#58A5FF",fillRule:"evenodd",d:"M11 0h5v12h-5V0ZM0 0h6v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M5 0h6v12H5V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C6C6C6",d:"m6.382 8.519-.363-.344 3.844-4.064.363.344-3.844 4.064Z"}),(0,h.jsx)("path",{fill:"#5AB92D",fillRule:"evenodd",d:"M6.492 4.053s-1.23.742-1.23 2.604c0 1.861 2.996 2.113 2.996 2.113S6.465 7.677 6.23 6.894c-.234-.783.262-2.841.262-2.841Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#5AB92D",fillRule:"evenodd",d:"M9.527 4.053s1.23.742 1.23 2.604c0 1.861-2.995 2.113-2.995 2.113S9.646 7.69 9.91 6.657c.264-1.033-.383-2.604-.383-2.604Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#5AB92D",d:"m7.404 3.8.498.045c-.017.18.082.364.326.561.784.634 1.206 1.426.875 2.325-.24.653-.565 1.203-.977 1.651l-.368-.339c.366-.397.658-.891.876-1.484.237-.646-.084-1.25-.72-1.764-.364-.294-.543-.629-.51-.995Z"}),(0,h.jsx)("path",{fill:"#EFE298",fillRule:"evenodd",d:"m7.087 4.904.525 1.484h-.386s-.14.468.123.468h1.614s.176-.118.088-.468c-.088-.351-.532-1.32-.532-1.32s.19-.16.19-.279c0-.119-.19-.132-.19-.132H7.322c-.153.026-.235.247-.235.247Z",clipRule:"evenodd"})]})]}),bs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"HN_-_Honduras_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#HN_-_Honduras_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"HN_-_Honduras_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{fill:"#4564F9",fillRule:"evenodd",clipRule:"evenodd",mask:"url(#HN_-_Honduras_svg__b)",children:(0,h.jsx)("path",{d:"M0 0v4h16V0H0ZM0 8v4h16V8H0ZM8.41 6.566l-.589.309.113-.655-.476-.51h.657l.294-.644.294.643h.657l-.475.511.112.655-.588-.31ZM5.41 5.566l-.589.309.113-.655-.476-.51h.657l.294-.644.294.643h.657l-.475.511.112.655-.588-.31ZM5.41 7.566l-.589.309.113-.655-.476-.51h.657l.294-.644.294.643h.657l-.475.511.112.655-.588-.31ZM11.41 5.566l-.589.309.113-.655-.476-.51h.657l.294-.644.294.643h.657l-.475.511.112.655-.588-.31ZM11.41 7.566l-.589.309.113-.655-.476-.51h.657l.294-.644.294.643h.657l-.475.511.112.655-.588-.31Z"})})]})]}),Fs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"NI_-_Nicaragua_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#NI_-_Nicaragua_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"NI_-_Nicaragua_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#NI_-_Nicaragua_svg__b)",children:[(0,h.jsx)("path",{fill:"#0080EC",fillRule:"evenodd",d:"M0 0v4h16V0H0ZM0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#D0AB00",fillRule:"evenodd",d:"M8 4c.094 0 .187.007.278.02l-.1.637a1.368 1.368 0 0 0-.436.013l-.046-.647c.1-.015.2-.023.304-.023Zm.576.084-.174.622a1.355 1.355 0 0 1 .952 1.339l.644.054L10 6a2 2 0 0 0-1.424-1.916Zm1.18 2.873a2 2 0 0 1-1.608 1.038v-.648c.37-.04.696-.23.915-.508l.694.118Zm-3.468.078a2 2 0 0 0 1.598.962V7.35a1.353 1.353 0 0 1-.968-.535l-.63.22Zm-.286-.95a2 2 0 0 1 1.274-1.95l.167.63c-.468.211-.794.68-.798 1.225l-.643.096Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#7CDFFF",fillRule:"evenodd",d:"M7.987 4.475 6.62 6.84h2.758l-1.39-2.365Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"NI_-_Nicaragua_svg__c",width:4,height:3,x:6,y:4,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M7.987 4.475 6.62 6.84h2.758l-1.39-2.365Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#NI_-_Nicaragua_svg__c)",children:[(0,h.jsx)("path",{stroke:"#E31D1C",strokeWidth:.5,d:"M8 7.56a1.195 1.195 0 1 0 0-2.392A1.195 1.195 0 0 0 8 7.56Z"}),(0,h.jsx)("path",{stroke:"#FFD018",strokeWidth:.5,d:"M8 7.56a1.195 1.195 0 1 0 0-2.392A1.195 1.195 0 0 0 8 7.56Z"}),(0,h.jsx)("path",{stroke:"#4EDD00",strokeWidth:.5,d:"M8 7.56a1.195 1.195 0 1 0 0-2.392A1.195 1.195 0 0 0 8 7.56Z"}),(0,h.jsx)("path",{stroke:"#3D58DB",strokeWidth:.5,d:"M8 7.56a1.195 1.195 0 1 0 0-2.392A1.195 1.195 0 0 0 8 7.56Z"}),(0,h.jsx)("path",{fill:"#3D58DB",d:"M6.509 6.109h3.127v.909H6.509z"}),(0,h.jsx)("path",{fill:"#97C923",fillRule:"evenodd",d:"m6.719 6.495.623-.62.191.31.134-.377.148.283.156-.215.202.215.185-.283.158.283.181-.215.424.45.076.17-2.478.125v-.126Z",clipRule:"evenodd"})]})]})]})]}),Cs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"PA_-_Panama_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#PA_-_Panama_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"PA_-_Panama_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#PA_-_Panama_svg__b)",children:[(0,h.jsx)("path",{fill:"#E31D1C",d:"M8 0v6h8V0H8ZM11.51 9.575l-1.15.712.446-1.196-.978-.905h1.187l.495-1.294.379 1.294h1.189l-.857.905.42 1.196-1.13-.712Z"}),(0,h.jsx)("path",{fill:"#2E42A5",d:"m4.51 4.182-1.15.713.446-1.196-.978-.905h1.187L4.51 1.5l.379 1.294h1.189l-.857.905.42 1.196-1.13-.713ZM0 6v6h8V6H0Z"})]})]})]}),Hs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"CW_-_Cura\\xE7ao_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#CW_-_Cura\\xE7ao_svg__a)",children:[(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"CW_-_Cura\\xE7ao_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#CW_-_Cura\\xE7ao_svg__b)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",d:"m2.127 3.075-.994.524.48-.934L1 1.982l.762-.029L2.127 1l.28.953.89.029-.641.683.407.934-.936-.524ZM5.676 5.538l-1.227.514.481-1.288L3.863 3.9h1.279l.534-1.394.408 1.394h1.28l-.91.864.452 1.288-1.23-.514Z"}),(0,h.jsx)("path",{fill:"#F9E813",d:"M0 7v2h16V7H0Z"})]})]})]}),Vs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"AG_-_Antigua_and_Barbuda_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#AG_-_Antigua_and_Barbuda_svg__a)",children:[(0,h.jsx)("path",{fill:"#1B1B1B",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F9D313",fillRule:"evenodd",d:"M8 7 6.887 8.9l.028-2.098-2.032 1.325 1.162-1.88-2.55.489 2.068-1.291L3 5l2.563-.445-2.068-1.29 2.55.488-1.162-1.88 2.032 1.325L6.887 1.1 8 3l1.113-1.9-.028 2.098 2.032-1.325-1.162 1.88 2.55-.489-2.068 1.291L13 5l-2.563.445 2.068 1.29-2.55-.488 1.162 1.88-2.032-1.325.028 2.098L8 7Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F1F9FF",d:"M3 7h10v5H3z"}),(0,h.jsx)("path",{fill:"#4A80E8",d:"M1 5h14v2H1z"}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"m0 3 8 9 8-9v9H0V3Z",clipRule:"evenodd"})]})]}),Ss=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"BS_-_Bahamas_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#BS_-_Bahamas_svg__a)",children:[(0,h.jsx)("path",{fill:"#FECA00",d:"M0 0h16v12H0V0Z"}),(0,h.jsx)("path",{fill:"#3CB1CF",d:"M0 0v4h16V0H0ZM0 8v4h16V8H0Z"}),(0,h.jsx)("path",{fill:"#272727",d:"m0 0 8 6-8 6V0Z"})]})]}),As=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"BB_-_Barbados_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#BB_-_Barbados_svg__a)",children:[(0,h.jsx)("path",{fill:"#2E42A5",d:"M11 0h5v12h-5V0Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"M5 0h6v12H5V0Z"}),(0,h.jsx)("path",{fill:"#2E42A5",d:"M0 0h5v12H0V0Z"}),(0,h.jsx)("path",{fill:"#000",d:"M9.217 7.637c.317-.655.681-1.85.681-1.85l.277-.822-1.097.398.26.15s-.453.906-.681 1.348c-.228.442-.25.15-.25.15l.038-3.085.252-.068-.628-1.206-.8 1.223.352.01s-.029 3.253-.078 3.126c-.027-.073-.1.151-.136.064-.222-.545-.526-1.601-.526-1.601l.178-.167-1.195-.245.357.734s.314 1.308.66 1.947c.077.202.453.288.453.288s.183-.186.229 0c.045.186 0 .938 0 .938h.843s-.059-.71 0-.938c.06-.228.244 0 .244 0s.49-.192.567-.394Z"})]})]}),Us=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"CU_-_Cuba_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#CU_-_Cuba_svg__a)",children:[(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"CU_-_Cuba_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#CU_-_Cuba_svg__b)",children:(0,h.jsx)("path",{fill:"#3D58DB",stroke:"#F7FCFF",strokeWidth:2,d:"M0 4h-1v4h18V4H0Z"})}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0v12l9-6-9-6Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"CU_-_Cuba_svg__c",width:9,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12l9-6-9-6Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#CU_-_Cuba_svg__c)",children:(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"m3.344 7.108-1.836.97.894-1.948-1.14-1.04 1.407-.052.675-1.76.515 1.76h1.404L4.327 6.13l.744 1.947-1.727-.969Z",clipRule:"evenodd"})})]})]}),Es=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"DM_-_Dominica_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#DM_-_Dominica_svg__a)",children:[(0,h.jsx)("path",{fill:"#279E19",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"DM_-_Dominica_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#DM_-_Dominica_svg__b)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",d:"M8 0h1v7h7v1H9v4H8V8H0V7h8V0Z"}),(0,h.jsx)("path",{fill:"#272727",d:"M7 0h1v6h8v1H8v5H7V7H0V6h7V0Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"M6 0h1v5h9v1H7v6H6V6H0V5h6V0Z"}),(0,h.jsx)("path",{fill:"#C51918",d:"M8 10a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"}),(0,h.jsx)("path",{fill:"#804BFF",d:"M7.363 4.206s.19-.616.631-.298c.692.341.92.733 1.188 1.176.267.444-.655.119-.827-.13-.172-.25-1.127-.331-.992-.54.135-.208 0-.208 0-.208Z"}),(0,h.jsx)("path",{fill:"#A95601",d:"M7.207 7.363s-.47.642 0 .642 2.374-.138 2.146-.32c-.228-.184-1.92 0-1.92 0l-.226-.322Z"}),(0,h.jsx)("path",{fill:"#804BFF",d:"M7.91 7.342c-.05-.054-.906-1.997-.508-2.4.398-.405.632-.167.632.438s.024 2.112-.125 1.962Z"}),(0,h.jsx)("path",{fill:"#279E19",d:"M7.859 7.027s-.05.472.193 1.024c.243.55.734.54.734.09 0-.452.357-.029.495.272.137.302-.219-2.673-.724-3.339-.505-.666-.992-.708-.845-.278.147.43.147 2.231.147 2.231Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"M7.564 3.8s-.214.137-.214.514c0 .378.506-.116.506-.116L7.564 3.8ZM7.61 3.657l.44-.232.44.232-.083-.491.356-.348-.493-.071-.22-.447-.22.447-.493.071.356.348-.084.49Zm0 5.9.44-.232.44.232-.083-.491.356-.348-.493-.071-.22-.447-.22.447-.493.071.356.348-.084.49Zm2.8-2.8.083-.491-.356-.348.493-.071.22-.447.22.447.493.071-.356.348.084.49-.441-.231-.44.232Zm-5.7 0 .44-.232.44.232-.083-.491.356-.348-.493-.071-.22-.447-.22.447-.493.071.356.348-.084.49ZM6.233 4.35l-.14.478-.294-.401-.498.015.29-.405-.167-.469.474.152.394-.305.002.498.412.28-.473.157Zm4.105 4.379.14-.478.472-.156-.412-.28-.002-.499-.394.305-.474-.152.168.47-.29.404.497-.016.295.402Zm.07-4.437-.14.478-.294-.402-.498.015.29-.404-.167-.469.474.152.394-.305.002.498.412.28-.473.157ZM6.211 8.87l.14-.478.472-.156-.411-.28-.003-.499-.394.305-.474-.152.168.47-.29.404.497-.016.295.402Z"})]})]})]}),Ts=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"DO_-_Dominican_Republic_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#DO_-_Dominican_Republic_svg__a)",children:[(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"DO_-_Dominican_Republic_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#DO_-_Dominican_Republic_svg__b)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M7 0h2v5h7v2H9v5H7V7H0V5h7V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#4257BF",d:"M0 0h7v5H0zM9 7h7v5H9z"}),(0,h.jsx)("path",{fill:"#309404",d:"m6.818 5.555.498.048c-.085.89.026 1.265.206 1.265v.5c-.623 0-.815-.65-.704-1.813ZM9.213 5.555l-.497.048c.085.89-.026 1.265-.206 1.265v.5c.622 0 .815-.65.703-1.813Z"}),(0,h.jsx)("path",{fill:"#003994",d:"M7.364 5.346h.473v.738h-.473zM8.09 6.223h.474v.375c0 .2-.163.364-.364.364h-.11v-.739Z"}),(0,h.jsx)("path",{fill:"#DE2110",d:"M8.054 5.3h.473v.738h-.473zM7.364 6.223h.472v.739h-.109a.364.364 0 0 1-.363-.364v-.375Z"}),(0,h.jsx)("path",{fill:"#00319C",d:"m7.167 5.305-.334-.372c.353-.318.721-.483 1.1-.483.38 0 .747.165 1.1.483l-.334.372c-.267-.241-.521-.355-.766-.355-.244 0-.498.114-.766.355Z"}),(0,h.jsx)("path",{fill:"#DE2110",d:"m7.204 7.797-.335-.372c.353-.317.721-.483 1.1-.483.38 0 .748.166 1.1.483l-.334.372c-.267-.24-.521-.355-.766-.355-.244 0-.498.114-.765.355Z"})]})]})]}),Ls=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"GD_-_Grenada_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#GD_-_Grenada_svg__a)",children:[(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M0 0h16v11a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M3 3h10v6H3V3Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"GD_-_Grenada_svg__b",width:10,height:6,x:3,y:3,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M3 3h10v6H3V3Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#GD_-_Grenada_svg__b)",children:[(0,h.jsx)("path",{fill:"#23875F",fillRule:"evenodd",d:"m3 3 5 3-5 3V3ZM13 3 8 6l5 3V3Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"GD_-_Grenada_svg__c",width:5,height:6,x:8,y:3,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M13 3 8 6l5 3V3Z",clipRule:"evenodd"})}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M8 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"m7.965 6.657-1.036.718.331-1.23-.76-.786 1.03-.043.435-1.216.435 1.216h1.028l-.759.829.38 1.157-1.084-.645Z",clipRule:"evenodd"})]}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"m4.388 2.221.566-.35.593.315-.208-.566.415-.405h-.562L4.954.621l-.238.594-.562.021.415.384-.18.601Zm3 0 .566-.35.593.315-.208-.566.415-.405h-.562L7.954.621l-.238.594-.562.021.415.384-.18.601Zm3.566-.35-.566.35.181-.601-.415-.384.562-.02.238-.595.238.594h.562l-.415.405.208.566-.593-.316Zm-6.566 9.213.566-.351.592.315-.207-.565.414-.405h-.561l-.238-.594-.238.594-.563.02.416.385-.181.6Zm3.566-.351-.566.35.18-.6-.415-.384.563-.021.238-.594.238.594h.561l-.414.405.207.565-.592-.315Zm2.434.35.566-.35.592.315-.207-.565.414-.405h-.561l-.238-.594-.238.594-.563.02.416.385-.181.6Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M4.317 6.386s.27.24.416.321c.05-.191-.062-.626-.062-.626-.032-.103-.379-.29-.379-.29s-.097.328.025.595Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M4.598 6.965s-.692-.323-.762-.78C3.766 5.728 3.915 5 3.915 5s1.123.255 1.2.803c.076.548-.178.892-.178.892s-.26-.668-.505-.742c0 0 0 .662.166 1.012Z",clipRule:"evenodd"})]})]}),Ds=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"HT_-_Haiti_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#HT_-_Haiti_svg__a)",children:[(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"HT_-_Haiti_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#HT_-_Haiti_svg__b)",children:[(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 6v6h16V6H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",d:"M3 2h10v8H3z"}),(0,h.jsx)("mask",{id:"HT_-_Haiti_svg__c",width:10,height:8,x:3,y:2,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M3 2h10v8H3z"})}),(0,h.jsxs)("g",{mask:"url(#HT_-_Haiti_svg__c)",children:[(0,h.jsx)("path",{fill:"#279E19",fillRule:"evenodd",d:"M3 8.385s2.4-1.064 5-.999c2.6.065 5 1.249 5 1.249V10H3V8.385Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#026A16",fillRule:"evenodd",d:"M5.72 3.51a.094.094 0 0 0-.006.111c.16.254.866 1.257 2.01 1.257 1.103 0 1.924-.93 2.157-1.226a.1.1 0 0 0-.026-.15C9.685 3.4 9.302 3.2 8.86 3.2c-.597 0-1.135.255-1.135.255S6.924 3.2 6.414 3.2a.893.893 0 0 0-.694.31Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"m7.895 7.407-.896-.567c-.524.243-.786.722-.786 1.44l.694 1.139h2.117l.5-1.14s.196-1.473-.5-1.71l-1.13.838Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#0A328C",fillRule:"evenodd",d:"M5.934 5.816s-1.353.47-1.353 2.202l1.805.357s-.022-.993.518-1.458l-.97-1.101Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFD018",d:"m5.268 5.264.215-.218L8 7.523l-.215.218-2.517-2.477ZM4.481 5.845l.177-.252 3.237 2.463-.177.252L4.48 5.845ZM3.943 6.811l.14-.277 3.676 2.004-.139.277L3.943 6.81Z"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"m4.59 8.004 2.421.318-.136.395h-.384l.262.224.589.162v-.386h.516v.819H6.753l-.424-.595s-.357.411-.704.411c-.348 0-.69-.133-.69-.582v-.312l-.344-.136v-.318Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#0A328C",fillRule:"evenodd",d:"M9.808 5.723s1.586.563 1.586 2.295l-1.82.356s-.083-1.28-.644-1.746l.878-.905Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFD018",d:"m10.68 5.264-.225-.218-2.712 2.277.225.217 2.711-2.276ZM11.499 5.845l-.185-.252-3.37 2.463v.462l3.555-2.673Z"}),(0,h.jsx)("path",{fill:"#FFD018",d:"m12.058 6.811-.143-.277-4.058 1.971.143.278 4.058-1.972Z"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"m11.385 8.004-2.522.318.142.395h.4l-.272.224-.614.162v-.386H7.98v.819h1.152l.441-.595s.371.411.733.411.72-.133.72-.582v-.312l.358-.136v-.318Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M7.692 4.679s-.164 1.203-.164 1.693.164 3.094.164 3.094h.42V6.372c0-.409-.247-1.693-.247-1.693h-.173Z",clipRule:"evenodd"})]})]})]})]}),Ns=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"JM_-_Jamaica_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#JM_-_Jamaica_svg__a)",children:[(0,h.jsx)("path",{fill:"#093",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",stroke:"#FECA00",strokeWidth:1.35,d:"m-.07-.52-1.105-.912v14.864l1.105-.911 7.269-6L7.829 6l-.63-.52-7.27-6Z"}),(0,h.jsx)("path",{fill:"#272727",stroke:"#FECA00",strokeWidth:1.35,d:"m16.082-.53 1.093-.862V13.392l-1.093-.862-7.61-6L7.8 6l.673-.53 7.61-6Z"})]})]}),Os=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"KN_-_Saint_Kitts_and_Nevis_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("rect",{width:16,height:12,fill:"#fff",rx:0})}),(0,h.jsxs)("g",{mask:"url(#KN_-_Saint_Kitts_and_Nevis_svg__a)",children:[(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M0 0v12L16 0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#272727",stroke:"#FFD018",strokeWidth:1.25,d:"m.318 13.976.362.403.45-.3L19.26 1.977l.6-.4-.48-.537-2.661-2.968-.362-.403-.45.3-18.131 12.102-.6.4.482.537 2.66 2.968Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"m6.044 8.46-.544.946-.348-1.067-1.08-.343.9-.55-.108-1.117.889.684.92-.51-.258 1.136.74.85-1.11-.03ZM11.044 5.183l-.544.947-.348-1.067-1.08-.344.9-.55-.108-1.116.889.683.92-.51-.258 1.137.74.85-1.11-.03Z",clipRule:"evenodd"})]})]}),Bs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"LC_-_Saint_Lucia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#LC_-_Saint_Lucia_svg__a)",children:[(0,h.jsx)("path",{fill:"#7CCFF5",d:"M0 0h16v12H0V0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"m8 2 4 8H4l4-8Z"}),(0,h.jsx)("path",{fill:"#272727",d:"m8 4 3.5 6h-7L8 4Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"m8 7 4 3H4l4-3Z"})]})]}),zs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"VC_-_Saint_Vincent_and_the_Grenadines_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#VC_-_Saint_Vincent_and_the_Grenadines_svg__a)",children:[(0,h.jsx)("path",{fill:"#FFDC17",d:"M4 0h8v12H4V0Z"}),(0,h.jsx)("path",{fill:"#5FBF2B",d:"M12 0h4v12h-4V0Z"}),(0,h.jsx)("path",{fill:"#2E42A5",d:"M0 0h4v12H0V0Z"}),(0,h.jsx)("path",{fill:"#5FBF2B",d:"m9.863 2.5-1.52 2.231 1.52 2.153 1.52-2.153L9.863 2.5Zm-3.724.04L4.5 4.73l1.52 2.114L7.54 4.73 6.14 2.54Zm.283 4.654L8.06 5.002l1.402 2.192L8.06 9.451 6.422 7.194Z"})]})]}),Ps=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"TT_-_Trinidad_and_Tobago_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#TT_-_Trinidad_and_Tobago_svg__a)",children:[(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"TT_-_Trinidad_and_Tobago_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#TT_-_Trinidad_and_Tobago_svg__b)",children:(0,h.jsx)("path",{fill:"#272727",stroke:"#F7FCFF",strokeWidth:.732,d:"m14.774 14.74-.265.218-.234-.25-15.172-16.2-.267-.285.303-.248L.687-3.291l.265-.217.234.25 15.172 16.2.267.285-.303.248-1.548 1.266Z"})})]})]}),Is=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"AL_-_Albania_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("rect",{width:16,height:12,fill:"#fff",rx:0})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#AL_-_Albania_svg__a)",children:[(0,h.jsx)("path",{fill:"#F50100",d:"M0 0h16v12H0V0Z"}),(0,h.jsx)("path",{fill:"#1A1A1A",d:"M7.941 7.49a.995.995 0 0 1-.138-.032c-.686.533-1.346.895-1.984 1.082a.5.5 0 0 1-.281-.96c.394-.115.814-.323 1.258-.625-.292.047-.594.099-.776.137-.148.032-.327.124-.497.212-.333.172-.637.329-.637-.003 0-.502.292-.652.834-.879.398-.167.65-.162.892-.157.088.002.173.004.265-.003.05-.003.105-.009.162-.017l-.017-.093c-.05-.007-.1-.012-.145-.015-.092-.006-.177-.005-.265-.003-.242.005-.494.01-.892-.157-.542-.227-.834-.377-.834-.879 0-.332.304-.175.637-.003.17.088.349.18.497.212.203.043.558.103.88.154l-.007-.044a.988.988 0 0 1-.183-.133c-.225-.21-.409-.245-.637-.288a2.487 2.487 0 0 1-.54-.152c-.542-.227-.869-.67-.869-1.173 0-.326.281-.114.616.137.18.136.377.284.553.365.174.08.351.144.514.203.166.06.316.115.43.175a.986.986 0 0 1 .01-.066.577.577 0 0 1-.152-.155c-.265-.414-.622-.563-1.16-.789l-.007-.002c-.542-.227-.868-.67-.868-1.173 0-.326.281-.114.615.137.181.136.378.284.554.365.502.231.888.43 1.133.898a.716.716 0 0 0 .144.198c.062-.065.132-.122.209-.169-.104-.747-.278-1.123-.444-1.154a.5.5 0 1 1 .183-.983c.668.125 1.048.745 1.226 1.83.179-1.085.558-1.705 1.226-1.83a.5.5 0 0 1 .183.983c-.165.031-.34.405-.443 1.149a.994.994 0 0 1 .241.147.782.782 0 0 0 .118-.171c.245-.468.63-.667 1.133-.898.176-.08.373-.228.553-.365.335-.251.616-.463.616-.137 0 .502-.326.946-.868 1.173l-.006.002c-.54.226-.896.375-1.162.79a.523.523 0 0 1-.065.08c.01.03.017.061.024.092.096-.042.21-.083.33-.127a6.58 6.58 0 0 0 .514-.203c.176-.08.372-.229.553-.365.335-.251.616-.463.616-.137 0 .502-.327.946-.869 1.173-.217.09-.389.123-.54.152-.229.043-.412.078-.637.288a.848.848 0 0 1-.048.042l-.023.116c.287-.047.582-.097.76-.135.15-.032.327-.124.498-.212.333-.172.637-.329.637.003 0 .502-.292.652-.834.88-.399.166-.65.161-.893.156a2.024 2.024 0 0 0-.306.006l-.022.117.064.005c.091.007.177.005.264.003.243-.005.494-.01.893.157.542.227.834.377.834.88 0 .331-.304.174-.637.002-.17-.088-.349-.18-.497-.212a17.52 17.52 0 0 0-.735-.13c.44.298.857.504 1.249.619a.5.5 0 0 1-.282.96c-.633-.187-1.288-.544-1.967-1.07a.995.995 0 0 1-.085.018c.122.545 1.077.994 1.077.994S8.464 10.83 8.27 10.83c-.193 0-1.492-2.348-1.492-2.348a2.265 2.265 0 0 0 1.163-.992Z"})]})]}),Gs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"AD_-_Andorra_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#AD_-_Andorra_svg__a)",children:[(0,h.jsx)("path",{fill:"#FFD018",fillRule:"evenodd",d:"M4 0h8v12H4V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M0 0h4v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M12 0h4v12h-4V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#BF9937",fillRule:"evenodd",d:"M4.9 3.607a1 1 0 0 1 1.007-1l4.395.031a1 1 0 0 1 .993 1v4.007s-.444 2-3.146 2S4.9 7.6 4.9 7.6V3.607Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#BF9937",fillRule:"evenodd",d:"M5.15 4.2a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5.15 6.4a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5.15 8.2a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM10.85 4.2a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM10.85 6.4a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM10.85 8.2a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#805440",d:"m5.912 8.335.052-.127c.604.259 1.291.389 2.062.389.77 0 1.44-.13 2.007-.388l.055.126c-.586.266-1.273.4-2.062.4-.788 0-1.493-.134-2.114-.4Z"}),(0,h.jsx)("path",{fill:"#BF9937",fillRule:"evenodd",d:"M6.115 3.81h3.77v3.514s0 .31-.329.446c-.328.136-.713.087-.713.087s-.37-.08-.564 0c-.12.049-.206.073-.255.084v.01L8 7.945a.393.393 0 0 1-.024.004v-.009a1.71 1.71 0 0 1-.255-.084c-.195-.08-.564 0-.564 0s-.386.049-.713-.087c-.328-.136-.33-.446-.33-.446V3.81Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"AD_-_Andorra_svg__b",width:4,height:5,x:6,y:3,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M6.115 3.81h3.77v3.514s0 .31-.329.446c-.328.136-.713.087-.713.087s-.37-.08-.564 0c-.12.049-.206.073-.255.084v.01L8 7.945a.393.393 0 0 1-.024.004v-.009a1.71 1.71 0 0 1-.255-.084c-.195-.08-.564 0-.564 0s-.386.049-.713-.087c-.328-.136-.33-.446-.33-.446V3.81Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#AD_-_Andorra_svg__b)",children:[(0,h.jsx)("path",{fill:"#D00F3A",d:"M6.062 3.765H7.89v1.95H6.062z"}),(0,h.jsx)("path",{fill:"#FEDF00",fillRule:"evenodd",d:"M8.093 3.765H9.99v1.95H8.093v-1.95ZM8.093 5.932h1.829v2.022H8.093V5.932Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FEDF00",d:"M6.062 5.932H7.89v2.022H6.062z"}),(0,h.jsx)("path",{fill:"#D00F3A",fillRule:"evenodd",d:"M9.062 7.265a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FEDF00",fillRule:"evenodd",d:"M7.015 5.218V4.104l.47.533-.241.58c-.09-.03-.12.035-.075.153.028.07.05.12.07.158-.08-.08-.113-.132-.113-.186a.21.21 0 0 0-.015-.095c-.005-.01-.047-.018-.074-.024a.24.24 0 0 1-.022-.005Zm-.22 0-.242-.581.46-.529v1.114a.188.188 0 0 1-.021.004c-.024.005-.06.012-.064.021a.21.21 0 0 0-.015.095c0 .054-.033.105-.114.186.021-.038.043-.089.07-.158.046-.118.015-.183-.074-.152Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#D00F3A",d:"M8.505 4.29h1v1h-1z"}),(0,h.jsx)("path",{fill:"#D00F3A",fillRule:"evenodd",d:"M6.562 6.38h1v1h-1v-1Z",clipRule:"evenodd"})]})]})]}),Ks=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"AM_-_Armenia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#AM_-_Armenia_svg__a)",children:[(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"AM_-_Armenia_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#AM_-_Armenia_svg__b)",children:[(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"M0 8v4h16V8H0Z"})]})]})]}),Ws=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"AT_-_Austria_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#AT_-_Austria_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"AT_-_Austria_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{fill:"#C51918",fillRule:"evenodd",clipRule:"evenodd",mask:"url(#AT_-_Austria_svg__b)",children:(0,h.jsx)("path",{d:"M0 0v4h16V0H0ZM0 8v4h16V8H0Z"})})]})]}),qs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"AZ_-_Azerbaijan_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#AZ_-_Azerbaijan_svg__a)",children:[(0,h.jsx)("path",{fill:"#AF0100",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"AZ_-_Azerbaijan_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#AZ_-_Azerbaijan_svg__b)",children:[(0,h.jsx)("path",{fill:"#3CA5D9",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#73BE4A",d:"M0 8v4h16V8H0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M8.58 7.453c-.673-.155-1.2-.684-1.193-1.461a1.53 1.53 0 0 1 1.217-1.51c.74-.167 1.392.185 1.392.185-.204-.454-.915-.772-1.498-.77-1.085.002-2.243.83-2.254 2.096C6.232 7.304 7.481 8.05 8.58 8.047c.88-.002 1.299-.57 1.386-.81 0 0-.71.372-1.384.216Zm.429-.743.588-.409.588.41-.208-.686.57-.433-.715-.014-.235-.677-.235.677-.716.014.57.433-.207.685Z"})]})]})]}),Ys=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"BY_-_Belarus_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#BY_-_Belarus_svg__a)",children:[(0,h.jsx)("path",{fill:"#73BE4A",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#AF0100",fillRule:"evenodd",d:"M0 0v8h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 0h3v12H0z"}),(0,h.jsx)("path",{fill:"#D0181A",fillRule:"evenodd",d:"M.5 0a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1Zm2 0a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1ZM1 2.5a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0ZM2.5 2a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1Zm0 7a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1ZM1 9.5a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0ZM.5 11a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1Zm2.5.5a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0ZM1.5 10a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1ZM2 1.5a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0Zm.055 4.52L3 7v1l.022.046L1.546 6.57.219 8H0V7l.991-.986-.99-.992V4h.108l1.423 1.476 1.43-1.422L3 4v1l-.945 1.02ZM1.5 3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1ZM2 8.5a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#8F181A",fillRule:"evenodd",d:"M0 0h1v1H0V0Zm1 2H0v1h1V2ZM0 4h1v1H0V4Zm1 3H0v1h1V7ZM0 9h1v1H0V9Zm1 2H0v1h1v-1Zm2 0H2v1h1v-1ZM3 0H2v1h1V0Z",clipRule:"evenodd",opacity:.4})]})]}),Js=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"BE_-_Belgium_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#BE_-_Belgium_svg__a)",children:[(0,h.jsx)("path",{fill:"#FECA00",d:"M5 0h5.5v12H5V0Z"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"M10.5 0H16v12h-5.5V0Z"}),(0,h.jsx)("path",{fill:"#1D1D1D",d:"M0 0h5.5v12H0V0Z"})]})]}),$s=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"BA_-_Bosnia_and_Herzegovina_svg__a",width:17,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h17v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#BA_-_Bosnia_and_Herzegovina_svg__a)",children:[(0,h.jsx)("path",{fill:"#2E42A5",d:"M0 0h16v12H0V0Z"}),(0,h.jsx)("path",{fill:"#FECA00",d:"M5 0h10v12L5 0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"m3.554 1.397-.588.309.112-.655-.475-.463.657-.096.294-.595.294.595.657.096-.475.463.112.655-.588-.31ZM5.297 3.537l-.587.309.112-.655-.476-.463.657-.096.294-.595.294.595.657.096-.475.463.112.655-.588-.309ZM6.932 5.62l-.588.308.112-.654-.475-.464.657-.095.294-.596.294.596.657.095-.476.464.112.654-.587-.309ZM8.533 7.615l-.588.309.112-.655-.475-.463.657-.096.294-.595.294.595.657.096-.476.463.112.655-.587-.31ZM10.257 9.668l-.588.31.113-.655-.476-.464.657-.095.294-.596.294.596.657.095-.475.464.112.654-.588-.309ZM12.164 11.655l-.588.31.112-.655-.476-.463.658-.096.294-.595.293.595.657.096-.475.463.112.654-.587-.309Z"})]})]}),Qs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"BG_-_Bulgaria_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#BG_-_Bulgaria_svg__a)",children:[(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"BG_-_Bulgaria_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#BG_-_Bulgaria_svg__b)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#E22C18",d:"M0 8v4h16V8H0Z"})]})]})]}),Xs=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"HR_-_Croatia_(Hrvatska)_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#HR_-_Croatia_(Hrvatska)_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"HR_-_Croatia_(Hrvatska)_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#HR_-_Croatia_(Hrvatska)_svg__b)",children:[(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"M5.038 3.199h5.7v2h-5.7z"}),(0,h.jsx)("path",{fill:"#F7FCFF",stroke:"#E31D1C",strokeWidth:.563,d:"M5.326 4.48h5.064c.009.384.012 1.055.011 1.7 0 .418 0 .82-.002 1.116l-.001.357v.113l-.001.001a2.474 2.474 0 0 1-.074.295 2.73 2.73 0 0 1-.345.717C9.63 9.286 9 9.808 7.825 9.808c-1.174 0-1.773-.52-2.093-1.023a2.584 2.584 0 0 1-.369-1.01l-.001-.008v-.022l-.001-.098-.005-.354a1915.707 1915.707 0 0 1-.03-2.813Zm.035 3.28Z"}),(0,h.jsx)("mask",{id:"HR_-_Croatia_(Hrvatska)_svg__c",width:6,height:7,x:5,y:4,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",stroke:"#fff",strokeWidth:.563,d:"M5.326 4.48h5.064c.009.384.012 1.055.011 1.7 0 .418 0 .82-.002 1.116l-.001.357v.113l-.001.001a2.474 2.474 0 0 1-.074.295 2.73 2.73 0 0 1-.345.717C9.63 9.286 9 9.808 7.825 9.808c-1.174 0-1.773-.52-2.093-1.023a2.584 2.584 0 0 1-.369-1.01l-.001-.008v-.022l-.001-.098-.005-.354a1915.707 1915.707 0 0 1-.03-2.813Zm.035 3.28Z"})}),(0,h.jsx)("g",{mask:"url(#HR_-_Croatia_(Hrvatska)_svg__c)",children:(0,h.jsx)("path",{fill:"#F50100",fillRule:"evenodd",d:"M5.25 4.52h1.054v1.07H5.249V4.52Zm2.109 1.07H6.304v1.072H5.249v1.07h1.055v1.072H5.249v1.07h1.055v-1.07h1.055v1.07h1.054v-1.07h1.055v1.07h1.055v-1.07H9.468V7.733h1.055V6.662H9.468V5.59h1.055V4.52H9.468v1.07H8.413V4.52H7.36v1.07Zm0 1.072V5.59h1.054v1.07H7.36Zm0 1.07v-1.07H6.304v1.07h1.055Zm1.054 0v1.072H7.36V7.733h1.054Zm0 0v-1.07h1.055v1.07H8.413Z",clipRule:"evenodd"})}),(0,h.jsx)("path",{fill:"#56C6F5",fillRule:"evenodd",stroke:"#fff",strokeWidth:.15,d:"M5.227 4.081s.326-.174.604-.264c.278-.09.498-.139.498-.139l-.414-1.526-.829-.31-.47.775.61 1.464ZM7.27 3.538s.279-.025.57-.02c.293.006.54.009.54.009l.143-1.505-.626-.566-.696.58.07 1.502Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#2E42A5",stroke:"#fff",strokeWidth:.15,d:"m6.234 3.666.022.073.073-.023h.003l.01-.004.04-.012.13-.037c.104-.03.23-.06.322-.073a4.596 4.596 0 0 1 .422-.036l.035-.001H7.3l.002-.001.08-.003-.008-.078-.126-1.463-.003-.034-.028-.02-.681-.484-.053-.038-.045.047-.619.642-.03.031.012.042.433 1.472Z"}),(0,h.jsx)("mask",{id:"HR_-_Croatia_(Hrvatska)_svg__d",width:3,height:3,x:5,y:1,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",stroke:"#fff",strokeWidth:.15,d:"m6.234 3.666.022.073.073-.023h.003l.01-.004.04-.012.13-.037c.104-.03.23-.06.322-.073a4.596 4.596 0 0 1 .422-.036l.035-.001H7.3l.002-.001.08-.003-.008-.078-.126-1.463-.003-.034-.028-.02-.681-.484-.053-.038-.045.047-.619.642-.03.031.012.042.433 1.472Z"})}),(0,h.jsx)("path",{fill:"#2E42A5",stroke:"#fff",strokeWidth:.15,d:"m9.47 3.664-.02.076-.075-.024h-.003l-.01-.004-.04-.012a5.938 5.938 0 0 0-.13-.037 2.826 2.826 0 0 0-.322-.073 4.597 4.597 0 0 0-.423-.036l-.034-.001h-.009l-.002-.001-.08-.003.007-.078.127-1.463.003-.034.028-.02.681-.484.054-.039.045.05.584.639.028.03-.011.04-.398 1.474Z"}),(0,h.jsx)("mask",{id:"HR_-_Croatia_(Hrvatska)_svg__e",width:2,height:3,x:8,y:1,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",stroke:"#fff",strokeWidth:.15,d:"m9.47 3.664-.02.076-.075-.024h-.003l-.01-.004-.04-.012a5.938 5.938 0 0 0-.13-.037 2.826 2.826 0 0 0-.322-.073 4.597 4.597 0 0 0-.423-.036l-.034-.001h-.009l-.002-.001-.08-.003.007-.078.127-1.463.003-.034.028-.02.681-.484.054-.039.045.05.584.639.028.03-.011.04-.398 1.474Z"})}),(0,h.jsx)("path",{fill:"#56C6F5",stroke:"#fff",strokeWidth:.15,d:"m10.63 4.073-.032.075-.072-.039-.003-.001-.01-.006-.04-.02a3.55 3.55 0 0 0-.538-.23 6.56 6.56 0 0 0-.455-.13l-.028-.006-.007-.002h-.002l-.078-.018.022-.076.423-1.488.01-.037.036-.013.829-.31.058-.021.032.053.47.774.02.033-.015.035-.62 1.427Z"}),(0,h.jsx)("mask",{id:"HR_-_Croatia_(Hrvatska)_svg__f",width:3,height:4,x:9,y:1,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",stroke:"#fff",strokeWidth:.15,d:"m10.63 4.073-.032.075-.072-.039-.003-.001-.01-.006-.04-.02a3.55 3.55 0 0 0-.538-.23 6.56 6.56 0 0 0-.455-.13l-.028-.006-.007-.002h-.002l-.078-.018.022-.076.423-1.488.01-.037.036-.013.829-.31.058-.021.032.053.47.774.02.033-.015.035-.62 1.427Z"})})]})]})]}),ea=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"CZ_-_Czech_Republic_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#CZ_-_Czech_Republic_svg__a)",children:[(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"CZ_-_Czech_Republic_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#CZ_-_Czech_Republic_svg__b)",children:(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0-1v7h16v-7H0Z",clipRule:"evenodd"})}),(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0 0v12l9-6-9-6Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"CZ_-_Czech_Republic_svg__c",width:9,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12l9-6-9-6Z",clipRule:"evenodd"})})]})]}),la=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"DK_-_Denmark_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#DK_-_Denmark_svg__a)",children:[(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"DK_-_Denmark_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#DK_-_Denmark_svg__b)",children:(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M5 0h2v5h9v2H7v5H5V7H0V5h5V0Z",clipRule:"evenodd"})})]})]}),sa=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"EE_-_Estonia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#EE_-_Estonia_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"EE_-_Estonia_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#EE_-_Estonia_svg__b)",children:[(0,h.jsx)("path",{fill:"#40A8FF",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#272727",d:"M0 4v4h16V4H0Z"})]})]})]}),aa=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"FI_-_Finland_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#FI_-_Finland_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"FI_-_Finland_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#FI_-_Finland_svg__b)",children:(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M5 0h2v5h9v2H7v5H5V7H0V5h5V0Z",clipRule:"evenodd"})})]})]}),ia=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"GR_-_Greece_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#GR_-_Greece_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#4564F9",d:"M.014 2.75h16v1.5h-16z"}),(0,h.jsx)("path",{fill:"#4564F9",fillRule:"evenodd",d:"M0 0h16v1.5H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#4564F9",d:"M-.029 5.5h16V7h-16zM.056 8.2h16v1.5h-16zM.051 10.75h16v1.5h-16z"}),(0,h.jsx)("path",{fill:"#4564F9",fillRule:"evenodd",d:"M0 0h8v7H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M3.236 0h1.582v2.75H8v1.893H4.818V7.5H3.236V4.643H0V2.75h3.236V0Z",clipRule:"evenodd"})]})]}),ta=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"HU_-_Hungary_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#HU_-_Hungary_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"HU_-_Hungary_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#HU_-_Hungary_svg__b)",children:[(0,h.jsx)("path",{fill:"#F14423",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#5EAA22",d:"M0 8v4h16V8H0Z"})]})]})]}),da=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"IS_-_Iceland_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#IS_-_Iceland_svg__a)",children:[(0,h.jsx)("path",{fill:"#0061C1",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"IS_-_Iceland_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#IS_-_Iceland_svg__b)",children:(0,h.jsx)("path",{fill:"#D21034",stroke:"#F1F9FF",d:"M5-.5h-.5v5h-5v3h5v5h3v-5h9v-3h-9v-5H5Z"})})]})]}),na=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"IE_-_Ireland_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#IE_-_Ireland_svg__a)",children:[(0,h.jsx)("path",{fill:"#FF8C1A",d:"M11 0h5v12h-5V0Z"}),(0,h.jsx)("path",{fill:"#5EAA22",d:"M0 0h6v12H0V0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M5 0h6v12H5V0Z"})]})]}),ha=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"LV_-_Latvia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#LV_-_Latvia_svg__a)",children:[(0,h.jsx)("path",{fill:"#C51918",d:"M0 7h16v5H0V7Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 4h16v3H0V4Z"}),(0,h.jsx)("path",{fill:"#C51918",d:"M0 0h16v5H0V0Z"})]})]}),ca=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"LI_-_Liechtenstein_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#LI_-_Liechtenstein_svg__a)",children:[(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"LI_-_Liechtenstein_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#LI_-_Liechtenstein_svg__b)",children:[(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M0 0v6h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#000",fillRule:"evenodd",d:"M2.4 5.527s.603.375 2 .375c1.399 0 2.14-.375 2.14-.375s-1.096-.638-2.076-.638-2.065.638-2.065.638Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFD83D",stroke:"#000",strokeWidth:.25,d:"m2.435 3.371-.108.063.036.062H6.69l.028-.087-.12-.038.12.038v-.002l.001-.002.003-.01a1.616 1.616 0 0 0 .041-.165c.023-.107.047-.256.054-.422.014-.324-.04-.747-.354-1.02-.296-.258-.71-.386-1.1-.451a6.302 6.302 0 0 0-1.035-.072c-.53 0-1.015.063-1.802.508a.838.838 0 0 0-.404.487 1.16 1.16 0 0 0-.02.552 2.055 2.055 0 0 0 .218.607l.006.01.001.004h.001l.108-.062Z"}),(0,h.jsx)("path",{fill:"#FFD83D",stroke:"#000",strokeWidth:.25,d:"m1.943 3.453.058.11-.058-.11h.001l.003-.002.009-.004a2.363 2.363 0 0 1 .154-.067c.106-.042.265-.097.476-.152.423-.11 1.055-.22 1.902-.22.846 0 1.478.11 1.9.22a4.222 4.222 0 0 1 .6.204l.032.015.008.004.003.001.001.001-.058.11.058-.11.097.051-.038.103-.593 1.585-.04.11-4.515-1.849Zm0 0-.096.05.037.103.576 1.585.04.11.113-.033-.67-1.815Zm4.402 1.814H2.613h.003l.007-.002.031-.009.119-.031c.103-.027.25-.062.427-.097.355-.07.826-.14 1.297-.14.47 0 .933.07 1.279.14a7.53 7.53 0 0 1 .53.128l.03.008.006.003h.002Z"}),(0,h.jsxs)("mask",{id:"LI_-_Liechtenstein_svg__c",width:3,height:3,x:3.059,y:-1,fill:"#000",maskUnits:"userSpaceOnUse",children:[(0,h.jsx)("path",{fill:"#fff",d:"M3.059-1h3v3h-3z"}),(0,h.jsx)("path",{fillRule:"evenodd",d:"M4.563 0h-.252l.032.461L4.06.423V.74L4.348.7l-.037.726h.252L4.526.7l.29.04V.424l-.285.04L4.563 0Z",clipRule:"evenodd"})]}),(0,h.jsx)("path",{fill:"#FFD83D",fillRule:"evenodd",d:"M4.563 0h-.252l.032.461L4.06.423V.74L4.348.7l-.037.726h.252L4.526.7l.29.04V.424l-.285.04L4.563 0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#000",d:"M4.31 0v-.25h-.267l.018.268.25-.018Zm.253 0 .25.017.018-.267h-.268V0Zm-.22.461L4.31.71l.304.042-.021-.307-.25.017ZM4.06.423l.033-.248L3.81.136v.287h.25Zm0 .317h-.25v.286l.284-.039L4.059.74ZM4.348.7l.25.012.015-.301-.3.041.035.248Zm-.037.726-.25-.012-.013.262h.263v-.25Zm.252 0v.25h.263l-.013-.262-.25.012ZM4.526.7 4.56.45 4.26.41l.015.302.25-.012Zm.29.04L4.78.988l.285.04V.74h-.25Zm0-.316h.25V.134L4.78.175l.035.248Zm-.285.04L4.28.446l-.02.309.305-.044-.035-.248ZM4.31.25h.252v-.5h-.252v.5Zm.282.194L4.56-.018l-.499.036.033.46.499-.034ZM4.025.67l.285.04.067-.496-.285-.04-.067.496Zm.284.07V.423h-.5V.74h.5Zm.005-.288-.29.04.069.495.289-.04-.068-.495Zm.247.987.036-.727-.499-.025-.037.727.5.025Zm.002-.263h-.252v.5h.252v-.5ZM4.276.711l.037.728.5-.025-.038-.728-.499.025ZM4.85.492l-.29-.04-.07.494.29.041.07-.495Zm-.285-.07V.74h.5V.423h-.5Zm.001.289.285-.04L4.78.174l-.285.041.071.495Zm-.252-.728-.032.463.498.035.032-.464-.498-.034Z",mask:"url(#LI_-_Liechtenstein_svg__c)"})]})]})]}),ra=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"LT_-_Lithuania_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#LT_-_Lithuania_svg__a)",children:[(0,h.jsx)("path",{fill:"#55BA07",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"LT_-_Lithuania_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#LT_-_Lithuania_svg__b)",children:[(0,h.jsx)("path",{fill:"#FECA00",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#C51918",d:"M0 8v4h16V8H0Z"})]})]})]}),oa=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"LU_-_Luxembourg_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#LU_-_Luxembourg_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"LU_-_Luxembourg_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#LU_-_Luxembourg_svg__b)",children:[(0,h.jsx)("path",{fill:"#F05234",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#2EB7EC",d:"M0 8v4h16V8H0Z"})]})]})]}),va=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"MK_-_North_Macedonia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#MK_-_North_Macedonia_svg__a)",children:[(0,h.jsx)("path",{fill:"#F50100",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"MK_-_North_Macedonia_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fill:"#FFD018",mask:"url(#MK_-_North_Macedonia_svg__b)",children:[(0,h.jsx)("path",{fillRule:"evenodd",d:"M0-.021v2.042l7 2.976L1.628-.021H0ZM8 6l1.5-6h-3L8 6Zm0 0-1.5 6h3L8 6ZM0 9.976v2.042h1.628L7 7 0 9.976Zm16-7.943V-.009h-1.628L9 5.01l7-2.976Zm0 9.997V9.988L9 7.012l5.372 5.018H16Zm0-7.53L10 6l6 1.5v-3ZM6 6 0 4.5v3L6 6Z",clipRule:"evenodd"}),(0,h.jsx)("path",{stroke:"#F50100",d:"M8 8.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"})]})]})]}),ma=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 0h16v12H0z"}),(0,h.jsx)("mask",{id:"MT_-_Malta_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#MT_-_Malta_svg__a)",children:[(0,h.jsx)("mask",{id:"MT_-_Malta_svg__b",fill:"#fff",children:(0,h.jsx)("path",{fillRule:"evenodd",d:"M5 3H3v1.496a.5.5 0 0 0-.384.487V5H1v2h1.665A.501.501 0 0 0 3 7.27V9h2V7.276A.5.5 0 0 0 5.366 7H7V5H5.416v-.017A.5.5 0 0 0 5 4.49V3Z",clipRule:"evenodd"})}),(0,h.jsx)("path",{fill:"#A0A0A0",fillRule:"evenodd",d:"M5 3H3v1.496a.5.5 0 0 0-.384.487V5H1v2h1.665A.501.501 0 0 0 3 7.27V9h2V7.276A.5.5 0 0 0 5.366 7H7V5H5.416v-.017A.5.5 0 0 0 5 4.49V3Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",d:"M3 3v-.5h-.5V3H3Zm2 0h.5v-.5H5V3ZM3 4.496l.115.487.385-.091v-.396H3Zm-.384.487h-.5v.008l.5-.008Zm0 .017v.5h.509l-.009-.508-.5.008ZM1 5v-.5H.5V5H1Zm0 2H.5v.5H1V7Zm1.665 0 .45-.218L2.98 6.5h-.314V7ZM3 7.27h.5v-.396l-.385-.091L3 7.269ZM3 9h-.5v.5H3V9Zm2 0v.5h.5V9H5Zm0-1.724-.084-.493-.416.07v.423H5ZM5.366 7v-.5h-.313l-.137.282.45.218ZM7 7v.5h.5V7H7Zm0-2h.5v-.5H7V5ZM5.416 5l-.5-.008-.009.508h.509V5Zm0-.017.5.008v-.008h-.5ZM5 4.49h-.5v.422l.416.07L5 4.49ZM3 3.5h2v-1H3v1Zm.5.996V3h-1v1.496h1Zm-.384.487-.231-.973a1 1 0 0 0-.77.973h1Zm0 .009v-.018l-1 .017v.017l1-.016ZM1 5.5h1.616v-1H1v1ZM1.5 7V5h-1v2h1Zm1.165-.5H1v1h1.665v-1Zm.45.283-.9.434c.129.267.373.468.67.539l.23-.973ZM3.5 9V7.27h-1V9h1ZM5 8.5H3v1h2v-1Zm-.5-1.224V9h1V7.276h-1Zm.584.493a1 1 0 0 0 .733-.551l-.9-.436.167.987ZM7 6.5H5.366v1H7v-1ZM6.5 5v2h1V5h-1Zm-1.084.5H7v-1H5.416v1Zm-.5-.526v.018l1 .016v-.017l-1-.017Zm0 .009h1a1 1 0 0 0-.832-.986l-.168.986ZM4.5 3v1.49h1V3h-1Z",mask:"url(#MT_-_Malta_svg__b)"}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M8 0h8v12H8V0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"MT_-_Malta_svg__c",width:8,height:12,x:8,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M8 0h8v12H8V0Z",clipRule:"evenodd"})})]})]}),ua=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"MD_-_Moldova_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#MD_-_Moldova_svg__a)",children:[(0,h.jsx)("path",{fill:"#D9071E",fillRule:"evenodd",d:"M11 0h5v12h-5V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0 0h6v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FBCD17",fillRule:"evenodd",d:"M5 0h6v12H5V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FD1900",fillRule:"evenodd",d:"m10.86 9.807-.527.288L8.587 6.9l.527-.287 1.745 3.194Zm-5.603.077.526.288L7.53 6.977l-.527-.288-1.745 3.195Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#A77B3B",fillRule:"evenodd",d:"M5.689 4.695V7.47c0 .617-.53 1.42-.799 1.72-.267.298-.8.983-.8.983V2.704c0-.838.8-1.125.8-1.125s.664.13.799 1.125v.97c.206.161.892.657 1.335.448.526-.249.708-.962.708-.962s-.05-.72-.265-.72c-.216 0-.233-1.015.594-1.015s.924.391.924.703c0 .163-.131.425-.256.675-.113.226-.22.442-.22.565 0 .256.193.754.476.754.198 0 1.153-.371 1.706-.593v-.825c.134-.994.798-1.125.798-1.125s.8.287.8 1.125v7.47s-.532-.686-.8-.985c-.267-.299-.798-1.102-.798-1.719V4.695H5.689Zm.886 5.221c.54-.352 1.332-1.93 1.332-1.93l.263.06s.4 1.046 1.58 1.87c-1.257.335-1.58 1.01-1.58 1.01 0-.54-1.595-1.01-1.595-1.01Zm-.087-1c.365 0 .66-.28.66-.624 0-.346-.295-.625-.66-.625-.365 0-.66.28-.66.625s.295.625.66.625Zm3.872-.624c0 .345-.295.625-.66.625-.365 0-.66-.28-.66-.625 0-.346.295-.625.66-.625.365 0 .66.28.66.625Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FDFF00",d:"m12.57 5.204.459.198-1.87 4.326-.459-.198 1.87-4.326Z"}),(0,h.jsx)("path",{fill:"#E1E5E8",fillRule:"evenodd",d:"M5.52 3.917h5.28v3.82s-1.344.404-2.64 1.068c-.957-.71-2.64-1.069-2.64-1.069v-3.82Z",clipRule:"evenodd",opacity:.3}),(0,h.jsx)("mask",{id:"MD_-_Moldova_svg__b",width:6,height:6,x:5,y:3,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M5.52 3.917h5.28v3.82s-1.344.404-2.64 1.068c-.957-.71-2.64-1.069-2.64-1.069v-3.82Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#MD_-_Moldova_svg__b)",children:[(0,h.jsx)("path",{fill:"#3D58DB",d:"M5.52 6.417h5.28v2.5H5.52z"}),(0,h.jsx)("path",{fill:"#FD1900",d:"M5.52 3.917h5.28v2.5H5.52z"}),(0,h.jsx)("path",{fill:"#FDFF00",fillRule:"evenodd",d:"m7.893 5.041-.4.033.231-.311-.246-.323.402.052.154-.355.172.363.4-.033-.23.311.245.322-.402-.051-.154.355-.172-.363Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FDFF00",fillRule:"evenodd",d:"M7.175 4.336S6.1 4.99 6.458 5.459c.359.47.81.53.81.53s-1.1 1.65.836 2.592c2.072-.91.982-2.592.982-2.592s.638-.141.765-.649c.128-.507-.833-1.09-.833-1.09s.6.87.463 1.09c-.137.22-.87.445-1.377.445s-1.29-.142-1.415-.527c-.127-.386.486-.922.486-.922Z",clipRule:"evenodd"})]}),(0,h.jsx)("path",{fill:"#048F02",fillRule:"evenodd",d:"M2.368 5.764s.527.624 1.024.42c.496-.204.376-.934.376-.934l-.376.34h-.32v.174l-.25-.173v.173h-.454Zm.357.958s.642.56 1.075.402c.433-.158.324-.917.324-.917l-.376.341h-.32v.174l-.25-.174v.174h-.453Zm1.73 1.271c-.433.159-1.075-.401-1.075-.401h.453v-.174l.25.174v-.174h.32l.376-.341s.109.758-.324.916Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FDFF00",fillRule:"evenodd",d:"M6.99 1.124h-.5v.298h-.236v.5h.236v.872h.5v-.872h.286v-.5H6.99v-.298Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#DB4400",fillRule:"evenodd",d:"m7.58 1.692-1.159.299 1.158.366v-.665Z",clipRule:"evenodd"})]})]}),pa=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"MC_-_Monaco_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#MC_-_Monaco_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"MC_-_Monaco_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#MC_-_Monaco_svg__b)",children:(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M0 0v6h16V0H0Z",clipRule:"evenodd"})})]})]}),_a=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"ME_-_Montenegro_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#ME_-_Montenegro_svg__a)",children:[(0,h.jsx)("path",{fill:"#E8AA00",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M2 2h12v8H2V2Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"ME_-_Montenegro_svg__b",width:12,height:8,x:2,y:2,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M2 2h12v8H2V2Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#ME_-_Montenegro_svg__b)",children:[(0,h.jsx)("path",{fill:"#1E5E91",fillRule:"evenodd",d:"M10.115 7.876c.204 0 .37-.17.37-.379a.374.374 0 0 0-.37-.378c-.204 0-.369.17-.369.378 0 .21.165.379.37.379Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F6C540",fillRule:"evenodd",d:"M5.314 6.166c-.969-1.126.42-3.08.42-3.08s.207 1.167.975 1.953c0 .055-.072.138-.146.22a1.087 1.087 0 0 0-.13.168c-.068.123.164.193.276.193.05 0 .078.073.104.14.03.08.057.15.117.061.108-.161-.108-.517-.108-.517l.342-.36.115-.233h-.115v-.24l-.081.066s-.09-.214-.261-.214c-.172 0-.225-.098-.225-.098h.225c.113 0-.018-.15-.113-.228-.042-.034-.107-.022-.165-.012-.072.014-.134.025-.134-.054 0-.088.068-.1.147-.113a.356.356 0 0 0 .152-.05c.074-.053.173-.037.28-.02.057.01.116.02.175.02h.278c.1 0-.163.163-.163.163l.163.144.242.248-.12.072.25.242s-.086.138 0 .138c.034 0 .057.029.072.062.015-.033.038-.062.073-.062.085 0 0-.138 0-.138l.25-.242-.121-.072.242-.248.163-.144s-.263-.163-.163-.163h.279c.059 0 .118-.01.174-.02.108-.017.207-.033.28.02.045.032.1.041.152.05.079.013.147.025.147.113 0 .08-.062.068-.134.054-.058-.01-.122-.022-.165.012-.094.078-.225.228-.113.228h.226s-.054.098-.226.098c-.171 0-.26.214-.26.214l-.081-.066v.24h-.116l.116.233.341.36s-.215.356-.107.517c.059.09.086.02.117-.062.025-.066.053-.14.103-.14.113 0 .345-.07.277-.192-.028-.05-.08-.109-.13-.167-.074-.083-.147-.166-.147-.221.768-.786.976-1.952.976-1.952s1.388 1.953.42 3.079c-.969 1.126-1.68.786-1.68.786s.858.799.953.799c.013 0-.017-.074-.047-.147-.029-.072-.058-.144-.045-.143.028.001.082.067.137.132.043.053.087.105.117.126.02.013.095-.014.166-.038.06-.02.115-.04.13-.033.059.03.043.09.029.148l-.01.044c-.002.012.074-.037.154-.089.085-.054.173-.112.18-.103l.004.005c.029.035.075.09-.265.352 0 .05.002.092.003.125.005.107.006.135-.067.135a.466.466 0 0 0-.13.035c-.134.047-.316.112-.448-.035-.183-.204-1.31-1.024-1.31-1.024l-.12.067s.412 1.14.633 1.147c.11.004-.057.11-.278.252-.223.142-.502.32-.606.464-.03.042-.055-.023-.073-.164-.018.141-.042.206-.073.164-.103-.144-.382-.322-.606-.464-.22-.142-.387-.248-.277-.252.22-.008.633-1.147.633-1.147l-.12-.067-.45.515s-.678.305-.86.51c-.133.146-.314.082-.449.034a.466.466 0 0 0-.13-.035c-.115 0-.154-.161 0-.36.09-.115.229-.13.36-.146.093-.01.183-.02.25-.065.164-.107.433-.386.433-.386l.397-.356s-.712.34-1.68-.786Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F6C540",fillRule:"evenodd",d:"m6.217 8.515-.438-.767s-.572-1.319-.572-1.48c0-.16-.23-.634-.23-.496s-.02 1.242-.02 1.242l.985 1.43v.17h.13l.145-.099Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F6C540",d:"m9.72 7.482.068-.22.813.244-.067.221-.813-.245Z"}),(0,h.jsx)("path",{fill:"#F6C540",d:"m10.154 7.08.22.072-.215.69-.22-.073.215-.689Z"}),(0,h.jsx)("path",{fill:"#F6C540",fillRule:"evenodd",d:"M8.069 2.646a1.301 1.301 0 0 0-.102-.035l-.003.01a.485.485 0 0 0-.116-.009l-.007.001a.957.957 0 0 0-.194.045c-.364.041-.552.202-.532.477.011.142.059.243.138.3v.085s.416.27.624.27c.208 0 .624-.27.624-.27v-.053c.114-.045.183-.158.196-.332.021-.284-.18-.445-.565-.48l-.001.011a1.666 1.666 0 0 0-.062-.02Zm.432.655v-.368c.045.051.063.115.058.192-.006.081-.025.14-.058.176Zm-1.248-.182v-.04.04Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#1E5E91",fillRule:"evenodd",d:"M6.977 5.18s.569-.108.877-.108c.276 0 .877.108.877.108 0 .68.191 1.096 0 1.56-.192.465-.66.242-.871.686-.27-.421-.636-.19-.883-.79-.247-.6.15-.876 0-1.456Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"ME_-_Montenegro_svg__c",width:3,height:3,x:6,y:5,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M6.977 5.18s.569-.108.877-.108c.276 0 .877.108.877.108 0 .68.191 1.096 0 1.56-.192.465-.66.242-.871.686-.27-.421-.636-.19-.883-.79-.247-.6.15-.876 0-1.456Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#ME_-_Montenegro_svg__c)",children:(0,h.jsx)("path",{fill:"#5EAA22",d:"M6.977 6.599h1.754v.851H6.977z"})}),(0,h.jsx)("path",{fill:"#F6C540",fillRule:"evenodd",d:"M7.9 6.4a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z",clipRule:"evenodd"})]})]})]}),fa=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"NO_-_Norway_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#NO_-_Norway_svg__a)",children:[(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"NO_-_Norway_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#NO_-_Norway_svg__b)",children:(0,h.jsx)("path",{fill:"#2E42A5",stroke:"#F7FCFF",d:"M5-.5h-.5v5h-5v3h5v5h3v-5h9v-3h-9v-5H5Z"})})]})]}),ga=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"PT_-_Portugal_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#PT_-_Portugal_svg__a)",children:[(0,h.jsx)("path",{fill:"#EF0000",fillRule:"evenodd",d:"M4 0h12v12H4V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#2F8D00",fillRule:"evenodd",d:"M0 0h6v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"PT_-_Portugal_svg__b",width:8,height:8,x:2,y:2,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M5.952 9.904c-2.13 0-3.857-1.748-3.857-3.904 0-2.156 1.727-3.904 3.857-3.904S9.81 3.844 9.81 6c0 2.156-1.726 3.904-3.857 3.904Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fill:"#FFE017",mask:"url(#PT_-_Portugal_svg__b)",children:[(0,h.jsx)("path",{fillRule:"evenodd",d:"M5.714 2h.5v1.35h-.5V2ZM5.714 8.747h.5V10h-.5V8.747Z",clipRule:"evenodd"}),(0,h.jsx)("path",{d:"m2.157 6.202-.14-.359C3.56 5.227 4.724 4.83 5.514 4.651a29.368 29.368 0 0 1 3.821-.583l.034.384c-1.372.125-2.63.317-3.771.575-.767.174-1.915.566-3.44 1.175Z"}),(0,h.jsx)("path",{d:"m9.57 3.832-.113.368c-1.166-.368-2.116-.526-2.846-.477l-.025-.385c.784-.053 1.778.113 2.984.494ZM9.974 5.89l-.216.318c-.594-.413-1.326-.62-2.201-.62v-.386c.948 0 1.756.229 2.417.688Z"}),(0,h.jsx)("path",{d:"m9.651 6.005.098.373c-1.28.347-2.484.544-3.609.59-1.132.047-2.452-.15-3.96-.591l.105-.37c1.472.429 2.752.62 3.84.576 1.095-.045 2.27-.238 3.526-.578Z"}),(0,h.jsx)("path",{d:"m9.506 7.818-.602.617c-1.145-1.143-2.152-1.96-3.017-2.452-.879-.5-2.025-1.007-3.437-1.52l.29-.816c1.453.528 2.642 1.054 3.567 1.58.94.534 2.004 1.398 3.199 2.59ZM2.73 8.168l-.229-.31a4.64 4.64 0 0 1 .594-.361c.425-.215.852-.35 1.259-.362h.059v.385h-.048c-.343.01-.72.13-1.1.322a4.264 4.264 0 0 0-.536.326Z"}),(0,h.jsx)("path",{d:"m2.906 8.301.096-.373c1.27.335 2.25.501 2.932.501.681 0 1.695-.196 3.034-.59l.106.37c-1.37.403-2.415.606-3.14.606-.721 0-1.73-.172-3.028-.514ZM2.411 4.847l.604-.616.883.887-.603.616-.884-.887Z"}),(0,h.jsx)("path",{d:"m7.418 7.924.449-.74 1.402.873-.45.74-1.401-.873Z"})]}),(0,h.jsx)("path",{fill:"#F9E813",fillRule:"evenodd",d:"M2.095 6c0 2.156 1.727 3.904 3.857 3.904S9.81 8.156 9.81 6c0-2.156-1.726-3.904-3.857-3.904-2.13 0-3.857 1.748-3.857 3.904Zm7.238.048c0 1.863-1.492 3.374-3.333 3.374-1.841 0-3.333-1.51-3.333-3.374 0-1.863 1.492-3.373 3.333-3.373 1.84 0 3.333 1.51 3.333 3.373Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",d:"M3.828 3.593v3.13c.206 1.239.9 1.859 2.083 1.859 1.182 0 1.877-.62 2.083-1.859v-3.13H3.828Z"}),(0,h.jsx)("path",{fill:"#C51918",d:"M3.043 3h5.536v3.711l-.004.026C8.307 8.22 7.359 9 5.81 9c-1.548 0-2.496-.78-2.764-2.263l-.004-.026V3Z"}),(0,h.jsx)("path",{fill:"#F9E813",fillRule:"evenodd",d:"M4.524 3.953h-.9v.9h.9v-.9Zm3.5 0h-.9v.9h.9v-.9ZM3.624 5.953h.9v.9h-.9v-.9Zm3.55.014h.9v.9h-.9v-.9Zm.013 1.458h-.9v.9h.9v-.9ZM4.324 7.42h.9v.9h-.9v-.9Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M4.426 4.355h2.97v2.22s-.22 1.147-1.485 1.147c-1.265 0-1.485-1.146-1.485-1.146v-2.22Z"}),(0,h.jsx)("path",{fill:"#013399",d:"M5.619 4.602h.66v.481s-.049.248-.33.248-.33-.248-.33-.248v-.48ZM5.619 5.663h.66v.48s-.049.249-.33.249-.33-.249-.33-.249v-.48ZM6.476 5.663h.66v.48s-.049.249-.33.249c-.28 0-.33-.249-.33-.249v-.48ZM4.762 5.663h.66v.48s-.049.249-.33.249-.33-.249-.33-.249v-.48ZM5.619 6.723h.66v.48s-.049.249-.33.249-.33-.248-.33-.248v-.481Z"})]})]}),xa=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"RO_-_Romania_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#RO_-_Romania_svg__a)",children:[(0,h.jsx)("path",{fill:"#FBCD17",d:"M5 0h6v12H5V0Z"}),(0,h.jsx)("path",{fill:"#E11C1B",d:"M11 0h5v12h-5V0Z"}),(0,h.jsx)("path",{fill:"#2E42A5",d:"M0 0h5v12H0V0Z"})]})]}),Za=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"RU_-_Russian_Federation_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#RU_-_Russian_Federation_svg__a)",children:[(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"RU_-_Russian_Federation_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#RU_-_Russian_Federation_svg__b)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#C51918",d:"M0 8v4h16V8H0Z"})]})]})]}),ja=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"SM_-_San_Marino_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#SM_-_San_Marino_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"SM_-_San_Marino_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#SM_-_San_Marino_svg__b)",children:[(0,h.jsx)("path",{fill:"#56C6F5",fillRule:"evenodd",d:"M0 6v6h16V6H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#006923",fillRule:"evenodd",d:"M5.127 4.514a.28.28 0 0 0-.028-.107c-.128-.24-.087-.539-.087-.539s-.153.35-.243.681c-.095-.154-.128-.308-.128-.308s-.06.969.126 1.199c.187.23.312.33.312.33s.014-.402-.04-.717c.038-.131.073-.275.085-.399a4.77 4.77 0 0 0 .17-.133 2.01 2.01 0 0 0-.035.291s.705-.512.723-.783c.018-.271.212-.503.212-.503s-.16.11-.344.257c.049-.228.199-.407.199-.407s-.801.548-.867.837a3.274 3.274 0 0 0-.055.301Zm.034 1.665c-.076-.145-.41-.753-.644-.805-.265-.06-.464-.288-.464-.288s.417.877.692.987c.22.088.366.123.414.134-.008.118-.009.2-.009.2s.13-.095.329-.314c.199-.22.188-1.19.188-1.19s-.078.292-.29.462c-.142.114-.196.544-.216.814Zm-.625-.091c.302-.002.768.74.768.74s-.18.01-.496-.04c-.315-.05-.806-.895-.806-.895s.231.196.534.195ZM6.01 7.816s.18-.946-.09-1.166a.958.958 0 0 1-.317-.55s-.24 1.049 0 1.32c.24.272.407.396.407.396Zm-1.088-.255c.176.209.737 0 .737 0s.124.112-.321-.295c-.445-.406-1.35-.15-1.107-.15.244 0 .515.236.69.445Zm.416 1.11c.326.276 1.032-.38 1.032-.38s-.182-.22-.519-.383c-.336-.162-1.578 0-1.578 0l.553.246s-.615.24-.452.227c.163-.013.637.013.964.29Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#093",fillRule:"evenodd",d:"M9.607 8.098s-.28-.472 0-.7c.28-.227.392-.076.392-.338s.028-.184.166-.314.04-.446.225-.288c.184.158.219-.145.219.485v-.925c0-.353-.22-.27-.22-.506 0-.237-.218-.591 0-.591.22 0 .349.263.349.263s.215.367.215 0-.383-.258-.563-.663c-.18-.405-.152.045-.391-.477-.24-.521-.526-.687-.263-.687h.429c.225 0 .573-.187.573 0v.394c0 .293.215.293.215.293s.117-.586.264-.293c.147.293.047.77.155.77s.018-.492.254-.115c.235.377 0 .633 0 .778 0 .146-.254.502-.254.502s.05.174.254 0c.204-.174.397-.349.397-.174 0 .174.398.228 0 .506-.397.279-.144.557-.397.557-.254 0-.553.368-.673.368s-.568.28-.344.28c.224 0 .454-.562.608-.28.155.28.153-.046.28.117.129.164.256 1.05.129.695-.128-.356-.329-.356-.673-.356-.344 0-1.013.025-.788.19.225.166.477-.165.573 0 .095.166.068.33.215.166.148-.166.293 0 .419 0s-.126.184 0 .343c.126.159.406.37.126.37s-.425-.224-.545 0c-.12.224-.125.614-.344.307-.22-.307-.61-.151-.61-.307 0-.155.085-.18-.154-.18-.238 0-.238-.19-.238-.19Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M10.758 4.725a.123.123 0 0 1-.12.125.123.123 0 0 1-.122-.125c0-.07.054-.125.121-.125s.121.056.121.125ZM5.17 5a.123.123 0 0 0 .121-.125.123.123 0 0 0-.12-.125.123.123 0 0 0-.122.125c0 .069.055.125.121.125Zm.121.525a.123.123 0 0 1-.12.125.123.123 0 0 1-.122-.125c0-.07.055-.125.121-.125.067 0 .121.056.121.125ZM5.363 6.8a.123.123 0 0 0 .12-.125.123.123 0 0 0-.12-.125.123.123 0 0 0-.121.125c0 .069.054.125.121.125Zm.968 1.25a.123.123 0 0 0 .12-.125.123.123 0 0 0-.12-.125.123.123 0 0 0-.121.125c0 .069.054.125.12.125Zm4.645-1.9c.067 0 .12-.056.12-.125a.123.123 0 0 0-.12-.125.123.123 0 0 0-.121.125c0 .069.054.125.12.125Zm-.266.875a.123.123 0 0 1-.121.125.123.123 0 0 1-.121-.125c0-.07.054-.125.12-.125.068 0 .122.056.122.125ZM9.573 8.25a.123.123 0 0 0 .12-.125.123.123 0 0 0-.12-.125.123.123 0 0 0-.121.125c0 .069.054.125.12.125ZM6.5 8.275a.123.123 0 0 1-.12.125.123.123 0 0 1-.122-.125c0-.07.054-.125.121-.125s.121.056.121.125Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M9.019 9.91c0-.103-1.55-1.17-1.966-1.407C6.636 8.268 4.605 6.971 5.158 5h-.084S4.7 7.428 7.28 8.938c1.174.788 1.233.972 1.233.972s.506.102.506 0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M6.962 9.91c0-.103 1.55-1.17 1.967-1.407.416-.235 2.448-1.532 1.894-3.503h.084s.374 2.428-2.206 3.938c-1.174.788-1.233.972-1.233.972s-.506.102-.506 0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#56C6F5",fillRule:"evenodd",d:"M8.024 8.443c1.083 0 1.96-1.401 1.96-2.768 0-1.367-.877-2.075-1.96-2.075-1.082 0-1.96.708-1.96 2.075 0 1.367.878 2.768 1.96 2.768Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M7.157 4.77s.301-.267.15-.267c-.029 0-.064-.005-.103-.012-.16-.025-.367-.059-.367.278v.581h-.045a.05.05 0 1 0 0 .1h.04c-.008.124-.02.344-.031.564l-.057.005a.054.054 0 0 0-.05.058l.005.042c.002.03.028.052.058.05l.036-.004a33.75 33.75 0 0 0-.025.51c0 .067.46.04.46.04s-.015-.27-.03-.585l.03-.003a.054.054 0 0 0 .05-.058l-.005-.043a.054.054 0 0 0-.058-.049l-.025.003c-.01-.19-.018-.38-.025-.53h.06a.05.05 0 1 0 0-.1H7.16a5.214 5.214 0 0 1-.004-.159v-.422Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#000",fillRule:"evenodd",d:"M6.936 5.5h.16v.215h-.16V5.5ZM6.887 6.25h.269v.5h-.269v-.5Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M8.173 4.77s.302-.267.15-.267c-.029 0-.064-.005-.103-.012-.16-.025-.367-.059-.367.278v.581h-.045a.05.05 0 0 0 0 .1h.04c-.007.124-.02.344-.03.564l-.058.005a.054.054 0 0 0-.049.058l.004.042c.002.03.028.052.058.05l.036-.004c-.013.257-.025.482-.025.51 0 .067.46.04.46.04s-.015-.27-.03-.585l.03-.003a.054.054 0 0 0 .05-.058l-.005-.043a.054.054 0 0 0-.058-.049l-.025.003c-.01-.19-.018-.38-.025-.53h.06a.05.05 0 1 0 0-.1h-.064a5.224 5.224 0 0 1-.004-.159v-.422ZM9.14 4.77s.302-.267.151-.267c-.029 0-.064-.005-.103-.012-.16-.025-.367-.059-.367.278v.581h-.045a.05.05 0 0 0 0 .1h.039l-.03.564-.057.005a.054.054 0 0 0-.05.058l.004.042c.003.03.03.052.059.05l.036-.004a33.75 33.75 0 0 0-.025.51c0 .067.46.04.46.04s-.015-.27-.03-.585l.03-.003a.054.054 0 0 0 .049-.058l-.004-.043a.054.054 0 0 0-.058-.049l-.025.003c-.01-.19-.018-.38-.025-.53h.06a.05.05 0 1 0 0-.1h-.064a5.224 5.224 0 0 1-.004-.159v-.422Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#000",fillRule:"evenodd",d:"M8.92 5.5h.16v.215h-.16V5.5ZM8.871 6.25h.269v.5H8.87v-.5Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E8AA00",fillRule:"evenodd",d:"M9.258 3.2H6.694v.383l-.018.001s-1.256.977-.907 2.44C6.117 7.485 7.502 8.57 7.502 8.57l.07-.253s-1.32-1.794-1.32-2.512c0-.717.25-1.39.513-1.494.159-.063.186-.05.23-.03.028.013.064.03.149.03.214 0 .428-.154.428-.154s.15.154.288.154c.138 0 .14-.154.14-.154V3.65h.015v.508s.002.154.14.154c.14 0 .288-.154.288-.154s.215.154.429.154c.085 0 .12-.017.15-.03.042-.02.07-.033.228.03.264.104.513.777.513 1.494 0 .718-1.32 2.512-1.32 2.512l.07.253s1.385-1.085 1.734-2.548c.348-1.462-.908-2.439-.908-2.439l-.08-.007V3.2Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFD018",d:"M6.694 3.2v-.25h-.25v.25h.25Zm2.564 0h.25v-.25h-.25v.25Zm-2.564.383.022.249.228-.02v-.23h-.25Zm-.018.001-.022-.249-.073.007-.058.045.153.197Zm-.907 2.44-.244.057.244-.058ZM7.502 8.57l-.154.196.295.231.1-.36-.24-.067Zm.07-.253.241.067.033-.117-.072-.098-.202.148Zm-.807-4.006-.092-.233.092.233Zm.23-.03-.107.226.106-.226Zm.577-.124.18-.174-.15-.154-.175.125.145.203Zm.428 0 .25.004v-.004H8Zm0-.508V3.4h-.25v.25H8Zm.015 0h.25V3.4h-.25v.25Zm0 .508h-.25v.004l.25-.004Zm.428 0 .146-.203-.175-.125-.15.154.18.174Zm.578.124.106.226-.106-.226Zm.23.03-.093.232.092-.232Zm-.808 4.006-.201-.148-.072.098.032.117.241-.067Zm.07.253-.24.066.099.361.295-.23-.154-.197Zm.826-4.987.153-.197-.058-.045-.073-.007-.022.25Zm-.08-.007h-.25v.229l.227.02.022-.249ZM6.693 3.45h2.564v-.5H6.694v.5Zm.25.133V3.2h-.5v.383h.5Zm-.245.25.017-.001-.045-.498-.017.001.045.498Zm-.687 2.132c-.154-.645.044-1.186.291-1.576a2.78 2.78 0 0 1 .527-.608l-.154-.197-.153-.197-.002.002a.832.832 0 0 0-.063.052 3.279 3.279 0 0 0-.578.68c-.293.464-.55 1.143-.355 1.96l.487-.116Zm1.49 2.606.155-.197a.205.205 0 0 1-.013-.01 4.76 4.76 0 0 1-.194-.17 6.14 6.14 0 0 1-.494-.512c-.378-.44-.783-1.04-.944-1.717l-.487.116c.188.787.65 1.46 1.052 1.927a6.64 6.64 0 0 0 .77.758l.001.001.154-.196Zm-.17-.32-.07.253.481.133.07-.252-.482-.134Zm-1.33-2.445c0 .238.105.528.23.8.13.282.3.583.467.856a15.993 15.993 0 0 0 .656.983l.012.015.003.005v.001l.202-.148.202-.148-.001-.001-.003-.004-.01-.014a9.941 9.941 0 0 1-.188-.266 15.51 15.51 0 0 1-.446-.684 8.007 8.007 0 0 1-.44-.804c-.123-.267-.184-.47-.184-.59h-.5Zm.67-1.727a.7.7 0 0 0-.305.27c-.076.11-.14.248-.193.397-.105.3-.172.675-.172 1.06h.5c0-.331.058-.65.144-.894.043-.121.09-.217.135-.283.048-.071.078-.086.076-.085l-.184-.465Zm.428-.024c-.03-.014-.096-.046-.194-.039a.798.798 0 0 0-.233.063l.184.465a.834.834 0 0 1 .074-.026c.015-.005.016-.004.009-.003a.118.118 0 0 1-.044-.005.119.119 0 0 1-.013-.005l.005.003.212-.453Zm.044.007a.25.25 0 0 1-.028-.002H7.11L7.1 4.054l-.212.453c.017.008.051.024.099.036a.638.638 0 0 0 .157.018v-.5Zm.428.096a55.611 55.611 0 0 1-.145-.203l-.003.002a.571.571 0 0 1-.093.052.47.47 0 0 1-.187.053v.5a.959.959 0 0 0 .402-.101 1.316 1.316 0 0 0 .17-.099h.001l-.145-.204Zm.288-.096c.01 0 .009.002-.005-.004a.495.495 0 0 1-.104-.074l-.179.174-.179.175.002.001a.206.206 0 0 0 .01.01.902.902 0 0 0 .115.096.61.61 0 0 0 .34.122v-.5Zm.14.096-.25-.003v-.003a.338.338 0 0 1 0-.01l.005-.012a.117.117 0 0 1 .037-.044.12.12 0 0 1 .068-.024v.5a.382.382 0 0 0 .384-.34.454.454 0 0 0 .006-.056v-.004L8 4.158Zm-.25-.508v.508h.5V3.65h-.5Zm.265-.25H8v.5h.015v-.5Zm-.25.25v.508h.5V3.65h-.5Zm.25.508-.25.004v.004a.323.323 0 0 0 .006.057.455.455 0 0 0 .036.117.382.382 0 0 0 .349.221v-.5a.12.12 0 0 1 .067.025.117.117 0 0 1 .038.044l.004.012a.045.045 0 0 1 0 .007.084.084 0 0 1 0 .005v.001l-.25.003Zm.14.404a.61.61 0 0 0 .34-.122.997.997 0 0 0 .126-.106.015.015 0 0 0 .001-.001l-.179-.175-.179-.174-.001.001a.407.407 0 0 1-.103.073c-.014.006-.014.004-.004.004v.5Zm.288-.404-.145.204.002.001.003.003a.764.764 0 0 0 .046.03c.03.017.07.041.12.065a.959.959 0 0 0 .403.1v-.5a.47.47 0 0 1-.187-.052.815.815 0 0 1-.097-.054l-.145.203Zm.429.404c.059 0 .11-.006.157-.018.047-.012.082-.028.098-.036l-.212-.453a.192.192 0 0 1-.01.004h.001L8.9 4.06a.25.25 0 0 1-.027.002v.5Zm.255-.054.006-.003a.12.12 0 0 1-.038.01h-.02c-.007 0-.005-.002.01.003a.833.833 0 0 1 .073.026l.185-.465a.798.798 0 0 0-.234-.063c-.098-.007-.164.025-.194.04l.212.452Zm.031.036c-.001 0 .029.014.077.085.045.066.092.162.135.283.085.243.143.563.143.894h.5c0-.385-.066-.76-.172-1.06a1.75 1.75 0 0 0-.192-.398.7.7 0 0 0-.306-.269l-.185.465Zm.355 1.262c0 .12-.06.324-.183.591a8.005 8.005 0 0 1-.44.804 15.51 15.51 0 0 1-.634.95l-.01.014-.003.004h-.001v.001a302.845 302.845 0 0 1 .403.296v-.001l.004-.005a4.547 4.547 0 0 0 .054-.075 15.556 15.556 0 0 0 .613-.923c.168-.273.338-.574.468-.856.125-.272.229-.562.229-.8h-.5Zm-1.31 2.579.07.252.481-.133-.07-.253-.482.134Zm.31.186.154.196.002-.001a.407.407 0 0 0 .017-.014 5.25 5.25 0 0 0 .218-.19c.141-.13.332-.318.535-.554.402-.468.864-1.14 1.051-1.927l-.486-.116c-.162.677-.567 1.278-.944 1.717a6.14 6.14 0 0 1-.699.69l-.002.002.154.197Zm1.977-2.49c.195-.817-.061-1.496-.355-1.96a3.28 3.28 0 0 0-.636-.73l-.004-.002-.002-.001v-.001l-.154.197a32.07 32.07 0 0 1-.154.197l.002.001.007.007.033.028a2.78 2.78 0 0 1 .485.572c.248.39.446.93.292 1.576l.486.116ZM9.361 3.335l-.08-.007-.045.498.08.007.045-.498ZM9.008 3.2v.377h.5V3.2h-.5Z"}),(0,h.jsx)("path",{fill:"#8FC753",fillRule:"evenodd",d:"M6.552 6.892s.157-.422.432-.281c.275.14.25.63.501.456.25-.175.108-.456.48-.456.37 0 .315.456.538.456.222 0 .241-.456.49-.456.248 0 .5.281.5.281l-1.47 2.002-1.471-2.002Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFD018",fillRule:"evenodd",d:"M7.947 1.015h.1v.107h.123v.1h-.123v.182a.297.297 0 0 1 .243.296c0 .166-.13.3-.29.3a.295.295 0 0 1-.29-.3c0-.147.102-.27.237-.295v-.183h-.113v-.1h.113v-.107Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M6.874 2.583c-.14 0-.436.182-.436.182l.23.62 1.384-.063 1.385.063.229-.62s-.295-.182-.435-.182c-.062 0-.07-.044-.078-.093-.011-.064-.024-.135-.152-.135a.694.694 0 0 0-.207.033c-.078.022-.129.037-.202-.033l-.01-.01c-.117-.113-.24-.231-.439-.231-.04 0-.069.046-.09.119-.023-.073-.052-.12-.092-.12-.199 0-.321.119-.44.233l-.009.009c-.073.07-.123.055-.202.033a.694.694 0 0 0-.206-.033c-.129 0-.141.071-.152.135-.01.049-.017.093-.078.093Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFD018",fillRule:"evenodd",d:"M7.5 2s.333-.241.5-.241c.167 0 .5.241.5.241v2h-1V2Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFD018",fillRule:"evenodd",d:"m7.804 1.784-.097.034c-.257.089-.48.118-.667.09-.387-.06-.891.141-.828.436.028.129.108.373.193.58.116.286.198.43.293.43a14.365 14.365 0 0 1 .2.011c.14.007.264.01.383.01.345-.001.558-.035.634-.138l.023-.03-.01-.037c-.091-.312-.133-.738-.125-1.28l.001-.106Zm-1.45.527c-.031-.144.363-.302.665-.255.187.029.4.007.638-.065-.002.482.038.873.118 1.174-.069.036-.25.06-.495.06-.116 0-.237-.003-.375-.01l-.192-.01a2.412 2.412 0 0 1-.175-.34 4.11 4.11 0 0 1-.184-.554ZM8.227 1.784l.098.034c.256.089.479.118.667.09.386-.06.89.141.828.436-.028.129-.109.373-.193.58-.117.286-.198.43-.294.43a14.365 14.365 0 0 0-.199.011c-.14.007-.264.01-.384.01-.344-.001-.558-.035-.634-.138l-.022-.03.01-.037c.09-.312.133-.738.125-1.28l-.002-.106Zm1.45.527c.032-.144-.363-.302-.664-.255-.188.029-.4.007-.638-.065.001.482-.038.873-.118 1.174.068.036.25.06.494.06.116 0 .238-.003.376-.01l.191-.01a2.41 2.41 0 0 0 .175-.34c.081-.199.16-.435.185-.554Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",d:"m3.979 10.16-.37-.929c1.53-.61 2.994-.917 4.391-.917 1.38 0 2.682.19 3.905.567l-.295.956A12.151 12.151 0 0 0 8 9.314c-1.264 0-2.604.281-4.021.846Z"}),(0,h.jsx)("path",{fill:"#272727",d:"m6.887 8.942.03-.248c.538.066.896.099 1.077.1.273.011.598-.008.974-.06l.035.247c-.391.054-.73.075-1.014.062-.19 0-.555-.034-1.102-.1Z"}),(0,h.jsx)("path",{fill:"#006923",fillRule:"evenodd",d:"M5.162 4S3.77 5.255 4.045 6.483C4.357 8.352 6.23 9.004 6.23 9.004l.992-.351s-1.9-1.09-1.9-2.17C5.32 5.402 5.606 4 5.606 4h-.444Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#093",fillRule:"evenodd",d:"M11.06 4s1.39 1.255 1.116 2.483c-.312 1.869-2.184 2.521-2.184 2.521L9 8.653s1.9-1.09 1.9-2.17C10.9 5.402 10.616 4 10.616 4h.443Z",clipRule:"evenodd"})]})]})]}),ya=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"RS_-_Serbia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#RS_-_Serbia_svg__a)",children:[(0,h.jsx)("path",{fill:"#4857A1",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"RS_-_Serbia_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#RS_-_Serbia_svg__b)",children:[(0,h.jsx)("path",{fill:"#C51918",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 8v4h16V8H0Z"}),(0,h.jsx)("path",{fill:"#F6C540",d:"m5.26 1.348-.064-.244.171.047-.002-.01c.754.07 1.922.447 2.142.84.085.151.002.28-.106.448l-.05.078c-.054.088-.103.171-.149.25-.17.288-.3.512-.505.624l.004.64-3.369-.028-.004-.644c-.175-.12-.298-.329-.452-.591-.046-.08-.095-.163-.15-.25-.016-.028-.033-.054-.05-.079-.107-.168-.19-.296-.105-.448.166-.296.913-.589 1.593-.744.128-.043.262-.083.394-.121l.055.037a3.72 3.72 0 0 1 .17-.02l.08.171h.264s.166.464.166.721a.86.86 0 0 1-.166.47v.178l.091.008c0-.016.001-.032.004-.05.015-.084.064-.146.109-.138.045.007.07.083.054.168a.29.29 0 0 1-.01.038c.178.023.377.055.566.088.072-.132.16-.261.243-.385.216-.32.406-.6.229-.769a.512.512 0 0 0-.175-.089 5.825 5.825 0 0 0-.82-.138l-.007-.036a31.083 31.083 0 0 0-.15-.022Zm1.282 1.55.152.031.001.1c.334-.24.568-.78.588-.956.012-.105-.163-.228-.439-.34.126.235-.05.469-.271.76a5.13 5.13 0 0 0-.256.362l.083.016a.266.266 0 0 1 .01-.081c.022-.084.075-.142.12-.13.044.012.062.09.04.172a.273.273 0 0 1-.028.067ZM4.82 2.675v-.198s-.143-.15-.166-.465a2.396 2.396 0 0 1 .065-.63c-.2.026-.411.064-.617.11-.165.042-.298.089-.355.142-.177.168.013.449.23.769.08.12.164.244.235.371.121-.025.244-.048.358-.066a.282.282 0 0 1-.01-.054c-.008-.085.023-.158.069-.162.045-.004.088.062.096.148a.286.286 0 0 1 0 .046c.033-.005.065-.008.095-.011Zm-.978.18a5.15 5.15 0 0 0-.255-.36c-.226-.3-.405-.537-.262-.777-.323.121-.54.251-.529.356.019.167.227.655.53.91V2.98s.124-.033.308-.077a.273.273 0 0 1-.031-.065c-.027-.082-.013-.16.03-.174.044-.014.1.041.127.123.01.029.014.057.014.083l.068-.016Z"}),(0,h.jsx)("path",{fill:"#fff",d:"M4.297 1.342a.145.145 0 0 0 .082.025c.077 0 .14-.059.14-.132 0-.073-.063-.132-.14-.132a.141.141 0 0 0-.125.073.145.145 0 0 0-.2.036.145.145 0 0 0-.09-.03c-.077 0-.14.059-.14.131l.001.012a.143.143 0 0 0-.109-.049.138.138 0 0 0-.138.112.143.143 0 0 0-.11-.05.138.138 0 0 0-.137.104.145.145 0 0 0-.082-.025.14.14 0 0 0-.133.09.146.146 0 0 0-.062-.013.138.138 0 0 0-.138.109.149.149 0 0 0-.028-.003.136.136 0 0 0-.14.13.15.15 0 0 0-.025-.002c-.078 0-.14.059-.14.132 0 .009 0 .018.002.027a.149.149 0 0 0-.028-.003c-.077 0-.14.059-.14.132 0 .055.036.102.087.122a.125.125 0 0 0-.004.034c0 .055.036.103.087.122a.125.125 0 0 0-.004.034c0 .071.06.129.134.132a.129.129 0 0 0-.052.102c0 .073.063.132.14.132.078 0 .14-.06.14-.132 0-.071-.06-.13-.134-.132a.129.129 0 0 0 .051-.102.132.132 0 0 0-.087-.122.125.125 0 0 0 .005-.034.132.132 0 0 0-.088-.123.125.125 0 0 0 .002-.06c.01.002.019.003.029.003a.136.136 0 0 0 .14-.13.149.149 0 0 0 .025.002c.07 0 .127-.047.138-.11a.14.14 0 0 0 .16-.088.146.146 0 0 0 .146-.01.128.128 0 0 0 .023.048.126.126 0 0 0-.027.078c0 .07.06.129.134.131a.129.129 0 0 0-.051.103c0 .055.036.102.087.122a.125.125 0 0 0-.004.034c0 .055.036.103.087.122a.125.125 0 0 0-.005.034c0 .073.063.132.14.132.078 0 .14-.06.14-.132a.132.132 0 0 0-.087-.122.125.125 0 0 0 .004-.034.132.132 0 0 0-.087-.123.125.125 0 0 0 .005-.033c0-.071-.06-.13-.135-.132a.126.126 0 0 0 .025-.18.126.126 0 0 0 0-.157.127.127 0 0 0 .025-.057c.026.03.066.05.11.05.078 0 .14-.06.14-.132v-.012c.025.03.065.05.109.05.05 0 .092-.025.117-.061.025.019.056.03.09.03.054 0 .102-.03.125-.073Zm-.83.26a.143.143 0 0 0 .114-.055.143.143 0 0 0-.113-.053c.014 0 .026-.011.026-.025 0-.013-.012-.024-.026-.024-.014 0-.026.011-.026.024 0 .014.012.025.026.025-.03 0-.06.009-.082.025a.132.132 0 0 0-.055-.077.125.125 0 0 0 .024.105.126.126 0 0 0-.023.109.132.132 0 0 0 .054-.08.145.145 0 0 0 .082.025Zm0 .048a.143.143 0 0 0-.112.054.143.143 0 0 0 .113.053.143.143 0 0 0 .113-.053.143.143 0 0 0-.113-.054Zm0 0c.015 0 .027-.011.027-.024 0-.014-.012-.025-.026-.025-.014 0-.026.011-.026.025 0 .013.012.024.026.024Zm-.08-.073a.137.137 0 0 1-.032-.03.137.137 0 0 1 .03-.028.125.125 0 0 1 .001.058Zm.382.629a.147.147 0 0 0-.053-.01.139.139 0 0 0-.135.098c.016.006.034.01.052.01.065 0 .12-.042.136-.098Zm-.083-.156a.147.147 0 0 0-.053-.01.139.139 0 0 0-.135.098c.016.006.034.01.053.01.065 0 .12-.042.135-.099Zm-.13-.166h-.005a.145.145 0 0 0-.089.03h.006a.145.145 0 0 0 .088-.03Zm-.745.546h-.006a.145.145 0 0 0-.088.03h.006a.145.145 0 0 0 .088-.03Zm-.036-.224a.139.139 0 0 1-.135.098.147.147 0 0 1-.053-.01.139.139 0 0 1 .136-.098c.018 0 .036.003.052.01Zm-.083-.156a.139.139 0 0 1-.135.098.147.147 0 0 1-.053-.01.139.139 0 0 1 .136-.098c.018 0 .036.003.052.01Zm-.107-.163a.136.136 0 0 0 .109.102.136.136 0 0 0-.109-.102Zm.277-.025a.134.134 0 0 1-.114-.13V1.73a.134.134 0 0 1 .114.13v.002Zm.164-.107a.134.134 0 0 1-.11-.152.134.134 0 0 1 .11.152Zm.16-.088a.131.131 0 0 1-.077-.118c0-.015.003-.028.007-.041a.131.131 0 0 1 .078.118.125.125 0 0 1-.007.04Zm.42-.177a.127.127 0 0 1-.028-.102.127.127 0 0 1 .028.102Zm.22-.165c.002.027.013.051.03.071a.127.127 0 0 0-.03-.07Zm.256.06a.126.126 0 0 1-.029-.173c.032.024.052.06.052.101 0 .027-.009.051-.023.072Zm.215-.043a.13.13 0 0 1-.058-.107c0-.02.005-.04.015-.059a.13.13 0 0 1 .057.107.125.125 0 0 1-.014.059Zm-1.409.414c.014 0 .026-.01.026-.024 0-.013-.012-.024-.026-.024-.014 0-.026.01-.026.024 0 .013.012.024.026.024Zm-.165.128c.014 0 .025-.011.025-.024 0-.014-.011-.025-.025-.025-.015 0-.026.011-.026.025 0 .013.011.024.026.024Zm-.166.156c.014 0 .026-.01.026-.024s-.012-.024-.026-.024c-.014 0-.026.01-.026.024 0 .013.012.024.026.024Zm.083.156c.014 0 .025-.01.025-.024s-.011-.024-.025-.024c-.014 0-.026.01-.026.024 0 .013.012.024.026.024Zm.083.156c.014 0 .025-.01.025-.024 0-.013-.011-.024-.025-.024-.015 0-.026.01-.026.024 0 .013.011.024.026.024Zm.108.21c0 .013-.011.024-.026.024-.014 0-.025-.01-.025-.024 0-.013.011-.024.025-.024.015 0 .026.01.026.024Zm.223-.912c.014 0 .025-.011.025-.024 0-.014-.011-.025-.025-.025-.014 0-.026.011-.026.025 0 .013.012.024.026.024Zm.195-.077c.015 0 .026-.01.026-.024s-.011-.024-.026-.024c-.014 0-.025.01-.025.024 0 .013.011.024.025.024Zm.467-.14c.014 0 .026-.012.026-.025 0-.013-.012-.024-.026-.024-.014 0-.025.01-.025.024 0 .013.011.024.025.024Zm.249-.095c.014 0 .025-.011.025-.025 0-.013-.011-.024-.025-.024-.014 0-.026.011-.026.024 0 .014.012.025.026.025Zm.206-.03c.014 0 .026-.012.026-.025 0-.013-.012-.024-.026-.024-.014 0-.025.01-.025.024 0 .013.011.024.025.024Zm.208-.048c.014 0 .026-.011.026-.025 0-.013-.012-.024-.026-.024-.014 0-.026.011-.026.024 0 .014.012.025.026.025Zm-.911.546c.014 0 .026-.011.026-.024 0-.014-.012-.025-.026-.025-.014 0-.026.011-.026.025 0 .013.012.024.026.024Zm.083.234c.014 0 .025-.01.025-.024s-.011-.024-.025-.024c-.014 0-.026.01-.026.024 0 .013.012.024.026.024Zm.082.156c.015 0 .026-.01.026-.024s-.011-.024-.026-.024c-.014 0-.025.01-.025.024 0 .013.011.024.025.024Zm.083.156c.014 0 .026-.01.026-.024 0-.013-.012-.024-.026-.024-.014 0-.025.01-.025.024 0 .013.011.024.025.024Zm3.644.234c.014 0 .026-.01.026-.024 0-.013-.012-.024-.026-.024-.014 0-.025.01-.025.024 0 .013.011.024.025.024Zm-.14-.024c0 .073.063.132.14.132.077 0 .14-.06.14-.132a.129.129 0 0 0-.051-.102.136.136 0 0 0 .134-.132.125.125 0 0 0-.005-.034.132.132 0 0 0 .088-.122.125.125 0 0 0-.005-.034.132.132 0 0 0 .088-.122c0-.073-.063-.132-.14-.132-.01 0-.02 0-.029.003a.125.125 0 0 0 .003-.027c0-.073-.063-.132-.14-.132a.15.15 0 0 0-.026.002.136.136 0 0 0-.14-.13c-.01 0-.018.001-.027.003a.138.138 0 0 0-.138-.11.146.146 0 0 0-.063.015.14.14 0 0 0-.133-.091c-.03 0-.059.009-.081.025a.138.138 0 0 0-.137-.104.143.143 0 0 0-.11.05.138.138 0 0 0-.139-.112.143.143 0 0 0-.109.05v-.013c0-.072-.062-.132-.14-.132a.145.145 0 0 0-.088.03.145.145 0 0 0-.2-.035.141.141 0 0 0-.125-.073c-.078 0-.14.06-.14.132 0 .073.062.132.14.132.03 0 .059-.01.082-.025a.145.145 0 0 0 .214.043c.025.036.068.06.118.06.044 0 .083-.019.109-.049v.012c0 .073.062.132.14.132.044 0 .084-.02.11-.05a.127.127 0 0 0 .025.057.126.126 0 0 0 0 .157.126.126 0 0 0 .024.18.136.136 0 0 0-.134.132c0 .011.002.023.005.034a.132.132 0 0 0-.088.122c0 .011.002.023.005.034a.132.132 0 0 0-.088.122c0 .073.063.132.14.132.078 0 .14-.06.14-.132a.125.125 0 0 0-.004-.034.132.132 0 0 0 .087-.122.125.125 0 0 0-.005-.034.132.132 0 0 0 .088-.122.129.129 0 0 0-.052-.103.136.136 0 0 0 .135-.131c0-.03-.01-.057-.027-.078a.128.128 0 0 0 .023-.048.145.145 0 0 0 .145.01.14.14 0 0 0 .16.089c.012.062.07.109.138.109.01 0 .018 0 .026-.002.001.072.063.13.14.13.01 0 .02-.001.029-.003a.126.126 0 0 0 .001.06.132.132 0 0 0-.087.123c0 .011.001.023.005.034a.132.132 0 0 0-.088.122c0 .041.02.078.052.102a.136.136 0 0 0-.135.132Zm-.44-.985a.145.145 0 0 1-.195-.03.145.145 0 0 1 .195-.029.125.125 0 0 0 0 .059Zm.03-.03a.126.126 0 0 1 .024.109.132.132 0 0 1-.055-.08.137.137 0 0 0 .032-.029Zm0 0a.137.137 0 0 0-.03-.028.132.132 0 0 1 .055-.077.125.125 0 0 1-.024.105Zm-.225.747a.139.139 0 0 0-.136-.098.147.147 0 0 0-.052.01c.016.056.07.098.135.098a.147.147 0 0 0 .053-.01Zm.082-.156a.139.139 0 0 0-.135-.098.147.147 0 0 0-.052.01c.015.056.07.098.135.098a.147.147 0 0 0 .052-.01Zm.036-.225a.145.145 0 0 0-.088-.03h-.006c.024.02.055.03.089.03h.005Zm.108-.21a.143.143 0 0 0-.113-.053.143.143 0 0 0-.113.054.143.143 0 0 0 .113.053.143.143 0 0 0 .113-.053Zm-.942-.361a.13.13 0 0 0 .058-.107.125.125 0 0 0-.015-.059.13.13 0 0 0-.058.107c0 .021.006.041.015.059Zm.214.043a.126.126 0 0 0 .029-.173.126.126 0 0 0-.029.173Zm.257-.06a.127.127 0 0 1-.03.071.127.127 0 0 1 .03-.07Zm.22.165a.127.127 0 0 0 .028-.102.127.127 0 0 0-.029.102Zm.419.177a.131.131 0 0 0 .077-.118.125.125 0 0 0-.007-.041.131.131 0 0 0-.077.118c0 .014.002.028.007.04Zm.16.088a.134.134 0 0 0 .11-.152.134.134 0 0 0-.11.152Zm.333.234a.136.136 0 0 0 .108-.102.136.136 0 0 0-.108.102Zm-.055-.259v.002c0 .065-.049.118-.114.13V1.86c0-.065.05-.119.114-.13Zm.056.32a.147.147 0 0 1 .053-.01c.065 0 .12.042.135.098a.147.147 0 0 1-.052.01.139.139 0 0 1-.136-.099Zm-.082.156a.147.147 0 0 1 .052-.01c.065 0 .12.042.135.098a.147.147 0 0 1-.052.01.139.139 0 0 1-.135-.098Zm.052.254a.145.145 0 0 1-.088-.03h.005c.034 0 .064.011.088.03h-.005Zm0-.108c.014 0 .026-.01.026-.024 0-.013-.012-.024-.026-.024-.014 0-.026.01-.026.024 0 .013.012.024.026.024Zm.083-.156c.014 0 .026-.01.026-.024s-.012-.024-.026-.024c-.014 0-.026.01-.026.024 0 .013.012.024.026.024Zm.083-.156c.014 0 .025-.01.025-.024s-.011-.024-.025-.024c-.015 0-.026.01-.026.024 0 .013.011.024.026.024Zm-.166-.156c.014 0 .026-.011.026-.024 0-.014-.012-.025-.026-.025-.014 0-.026.011-.026.025 0 .013.012.024.026.024Zm-.166-.128c.015 0 .026-.01.026-.024 0-.013-.011-.024-.026-.024-.014 0-.025.01-.025.024 0 .013.011.024.025.024Zm-.165-.106c.014 0 .025-.011.025-.024 0-.014-.011-.025-.025-.025-.014 0-.026.011-.026.025 0 .013.012.024.026.024Zm-.196-.077c.014 0 .026-.01.026-.024s-.012-.024-.026-.024c-.014 0-.025.01-.025.024 0 .013.011.024.025.024Zm-.218-.08c.014 0 .025-.01.025-.024 0-.013-.011-.024-.025-.024-.014 0-.026.011-.026.024 0 .014.012.025.026.025Zm-.249-.06c.014 0 .026-.012.026-.025 0-.013-.012-.024-.026-.024-.014 0-.025.01-.025.024 0 .013.011.024.025.024Zm-.248-.095c.014 0 .025-.011.025-.025 0-.013-.011-.024-.025-.024-.014 0-.026.011-.026.024 0 .014.012.025.026.025Zm-.207-.03c.014 0 .026-.012.026-.025 0-.013-.012-.024-.026-.024-.014 0-.025.01-.025.024 0 .013.011.024.025.024Zm-.207-.048c.014 0 .025-.011.025-.025 0-.013-.011-.024-.025-.024-.014 0-.026.011-.026.024 0 .014.012.025.026.025Zm.91.39c.015 0 .026-.011.026-.024 0-.014-.011-.025-.025-.025-.014 0-.026.011-.026.025 0 .013.012.024.026.024Zm0 .156c.015 0 .026-.011.026-.024 0-.014-.011-.025-.025-.025-.014 0-.026.011-.026.025 0 .013.012.024.026.024Zm-.082.234c.014 0 .026-.01.026-.024s-.012-.024-.026-.024c-.014 0-.026.01-.026.024 0 .013.012.024.026.024Zm-.083.156c.014 0 .026-.01.026-.024s-.012-.024-.026-.024c-.014 0-.026.01-.026.024 0 .013.012.024.026.024Zm-.083.156c.014 0 .026-.01.026-.024 0-.013-.012-.024-.026-.024-.014 0-.025.01-.025.024 0 .013.011.024.025.024Z"}),(0,h.jsx)("path",{fill:"#F6C540",d:"m5.11.46-.219.007-.004.341-.404.006.002.207.4-.005-.006.389.219-.007.005-.385.397-.006L5.5.8l-.393.005.004-.344Z"}),(0,h.jsx)("path",{fill:"#C51918",d:"M2.02 4.003h5.943v4.756s-.18 2.37-2.972 2.37c-2.791 0-2.971-2.37-2.971-2.37V4.003Z"}),(0,h.jsx)("path",{fill:"#E8AA00",d:"M3.813 4.168c-.054 0-.138.036-.25.078-.11.042-.227.132-.113.222s.277.289.277.215c0-.074.195-.146.195-.11 0 .036-.06.11.098.11s.24.044.07.044c-.168 0-.186.073-.296.073-.11 0-.344-.074-.344-.117 0-.044.136.214.277.214.142 0 .222.125.293.062.07-.062.063-.062.177-.062.115 0 .073-.253.073-.253s-.402-.476-.457-.476ZM6.107 4.168c.054 0 .138.036.25.078.11.042.227.132.113.222s-.277.289-.277.215c0-.074-.195-.146-.195-.11 0 .036.06.11-.098.11s-.24.044-.07.044c.168 0 .187.073.296.073.11 0 .344-.074.344-.117 0-.044-.135.214-.277.214-.141 0-.222.125-.293.062-.07-.062-.062-.062-.177-.062-.114 0-.073-.253-.073-.253s.402-.476.457-.476Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M6.835 4.685c.114.25-.759 1.18-.759 1.18h-.098c-.04 0-.117-.095-.21-.21a3.243 3.243 0 0 0-.205-.24c-.135-.138-.064-.253.003-.36.02-.034.04-.066.054-.098a.447.447 0 0 0 .038-.129c.005-.03.01-.065.039-.143.042-.116.188-.265.29-.369.04-.04.072-.073.09-.095.054-.068.012-.068-.101-.067h-.051c-.152 0-.44.067-.527.145-.087.079-.177.095-.31.095-.134 0-.051.085.07.142-.13.023-.214.228-.264.41-.026-.182-.086-.387-.216-.41.121-.057.203-.142.07-.142s-.224-.016-.31-.095c-.087-.078-.376-.144-.527-.144H3.86c-.114-.002-.155-.002-.1.066.017.022.05.055.089.095.101.104.248.253.29.369.029.078.034.113.038.143.005.032.01.06.038.129.014.032.034.064.054.097.067.108.139.223.004.36-.072.074-.143.162-.206.24-.092.116-.169.211-.21.211H3.76s-.873-.93-.759-1.18c.044-.097.115-.188.174-.264.093-.12.156-.2.03-.2-.204 0-1.018.487-1.018 1.584s.075 1.72.25 2.158c.119.298.01.588-.071.804-.038.1-.07.185-.07.246 0 .196.32.025.32-.098 0-.058.044.029.09.12.051.1.105.205.105.127 0-.083.05-.17.096-.248.035-.061.067-.115.067-.156 0-.04.045-.039.095-.037.064.002.137.004.137-.079 0-.056.023-.067.051-.081.048-.023.11-.053.11-.305 0-.186.04-.12.086-.044.041.07.088.147.113.044.003-.01.03-.053.061-.106a2.04 2.04 0 0 0 .127-.228 1.67 1.67 0 0 1-.293.557c-.093.113-.255.358-.255.358s.15.08.255 0c.06-.044.063-.002.067.043.004.036.007.075.038.075.02 0 .038.003.054.005a.259.259 0 0 0 .033.004c-.035.084-.066.219.039.129a.712.712 0 0 1 .163-.107c.04-.02.057-.029.057-.07 0-.042.016-.028.042-.006.022.02.052.045.083.045.041 0 .05-.054.062-.132a1.028 1.028 0 0 1 .056-.225c.046-.134.067-.197.119-.027.024.08.067.135.104.184.05.067.091.12.06.2-.011.03-.026.066-.042.104-.055.13-.122.288-.122.413 0 .075-.072.176-.14.271-.079.112-.152.215-.097.257.103.077-.021.337-.125.47-.104.133.767.44.919.44.002 0 .004-.002.006-.004v.003s1.089-.05 1.089-.439c-.104-.133-.228-.393-.126-.47.056-.042-.018-.145-.097-.257-.067-.095-.14-.196-.14-.27 0-.126-.066-.285-.121-.414l-.043-.104c-.03-.08.01-.133.06-.2.038-.049.08-.105.105-.184.052-.17.073-.107.119.027l.015.044c.022.066.032.129.04.181.013.078.021.132.062.132.032 0 .061-.026.084-.045.025-.022.042-.036.042.005 0 .042.016.05.057.07a.712.712 0 0 1 .163.108c.105.09.074-.045.039-.129.01 0 .02-.002.032-.004.017-.002.035-.005.054-.005.031 0 .035-.039.038-.075.005-.045.009-.087.067-.043.105.08.256 0 .256 0s-.162-.245-.256-.358a1.67 1.67 0 0 1-.293-.557c.02.05.08.15.127.228.033.053.059.096.061.106.026.103.072.025.114-.044.046-.076.085-.142.085.044 0 .252.063.282.11.305.029.014.052.025.052.081 0 .083.073.08.137.079.05-.002.095-.003.095.037s.032.095.067.156c.045.077.096.165.096.248 0 .078.053-.027.104-.127.046-.091.09-.178.09-.12 0 .123.32.294.32.098 0-.061-.031-.146-.069-.246-.081-.216-.19-.506-.071-.804.174-.437.25-1.061.25-2.158S6.835 4.22 6.63 4.22c-.125 0-.063.08.03.2.06.076.13.167.174.264Zm-.759 3.213Zm.069 1.018c0-.028.02.003.039.048-.024 0-.04-.008-.04-.049Zm-2.493.048c.024 0 .039-.008.039-.049 0-.027-.02.004-.039.05Zm.101-1.042a.955.955 0 0 1 0 0Z"}),(0,h.jsx)("path",{fill:"#C51918",d:"M3.884 5.942h2.215V7.59s-.238.821-1.108.821c-.87 0-1.107-.821-1.107-.821V5.94Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M5.29 5.918h-.58v.946h-.828v.339h.828V8.42h.58V7.203h.828v-.339H5.29v-.946Z"}),(0,h.jsx)("path",{fill:"#E8AA00",d:"M3.437 9.663c.269-.31.521-.585.297-.78-.225-.195-.493-.026-.762.284s-.437.643-.213.838c.225.195.409-.032.678-.342ZM6.368 9.663c-.27-.31-.522-.585-.297-.78.224-.195.492-.026.761.284.27.31.438.643.214.838-.225.195-.409-.032-.678-.342Z"})]})]})]}),wa=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"SK_-_Slovakia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#SK_-_Slovakia_svg__a)",children:[(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"SK_-_Slovakia_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#SK_-_Slovakia_svg__b)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",stroke:"#fff",strokeWidth:.5,d:"m7.802 3.015.249-.026-.024-.224H2.939l-.016.233.25.017-.25-.017v.008l-.002.024-.006.088a61.92 61.92 0 0 0-.07 1.344c-.033.77-.055 1.67.001 2.091.11.822.61 2.665 2.544 3.5l.1.044.101-.045c1.837-.821 2.452-2.475 2.593-3.497.072-.516.036-1.418-.015-2.168A40.918 40.918 0 0 0 8.062 3.1l-.008-.083-.003-.022V2.99l-.249.026Z"}),(0,h.jsx)("mask",{id:"SK_-_Slovakia_svg__c",width:7,height:9,x:2,y:2,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",stroke:"#fff",strokeWidth:.5,d:"m7.802 3.015.249-.026-.024-.224H2.939l-.016.233.25.017-.25-.017v.008l-.002.024-.006.088a61.92 61.92 0 0 0-.07 1.344c-.033.77-.055 1.67.001 2.091.11.822.61 2.665 2.544 3.5l.1.044.101-.045c1.837-.821 2.452-2.475 2.593-3.497.072-.516.036-1.418-.015-2.168A40.918 40.918 0 0 0 8.062 3.1l-.008-.083-.003-.022V2.99l-.249.026Z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#SK_-_Slovakia_svg__c)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",d:"M4.931 3.295s.103.157.15.398c.046.24.054.514.054.514l-.782-.12v.89l.804-.128-.024.934s-.102.031-.348 0a7.715 7.715 0 0 1-.73-.161v.85s.492-.157.73-.193c.238-.036.348 0 .348 0l.008.815h.797l-.008-.815s.251-.039.516.003.517.19.517.19v-.85s-.255.127-.495.158c-.24.032-.538.003-.538.003l.024-.934s.14-.034.326-.009c.187.026.42.137.42.137v-.89s-.228.123-.407.146c-.179.022-.36-.026-.36-.026s.006-.287.044-.499c.039-.212.148-.413.148-.413H4.931Z"}),(0,h.jsx)("path",{fill:"#2E42A5",d:"M3.449 8.123s.22-.472.577-.562c.358-.09.733.281.733.281s.228-.748.787-.748c.558 0 .753.748.753.748s.239-.28.58-.28c.343 0 .66.56.66.56S6.518 9.98 5.495 9.98 3.45 8.123 3.45 8.123Z"})]})]})]})]}),ka=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"SI_-_Slovenia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#SI_-_Slovenia_svg__a)",children:[(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"SI_-_Slovenia_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#SI_-_Slovenia_svg__b)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M6.87 2.518s-1.052-.497-2.361-.497c-1.31 0-2.361.497-2.361.497s.117 1.997.302 3.056c.079.451.459 1.11.803 1.422.392.356 1.256.777 1.256.777.25-.173.718-.25 1.315-.777.598-.527.747-1.422.747-1.422l.3-3.056Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C51918",d:"m6.731 2.453.438.219-.3 3.011c-.106.637-.37 1.14-.791 1.512a3.422 3.422 0 0 1-.692.477l-.695.36a1.01 1.01 0 0 0-.134.074l-.055.038-.06-.029c-.584-.285-1.13-.669-1.402-.915-.37-.336-.761-1.023-.844-1.5-.125-.711-.237-1.692-.315-3.028l.394-.206c.077 1.326.171 2.384.294 3.083.072.413.432 1.047.76 1.345.244.22.635.465 1.173.73l.108-.057c.001 0 .367-.163.495-.23.223-.116.43-.256.643-.444.375-.33.608-.774.703-1.338l.28-3.102Z"}),(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M2.771 5.512s.258.789.71 1.23c.451.44 1.01.655 1.01.655s.664-.2 1.042-.624c.377-.424.763-1.26.763-1.26L5.42 4.67l-.349.378-.58-.826-.485.826-.372-.378-.862.842Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M3.573 2.943h-.351l.273-.255-.273-.27h.351l.149-.262.149.262h.35l-.258.253.23.272H3.87l-.15.277-.148-.277ZM5.23 2.943H4.88l.272-.255-.272-.27h.351l.149-.262.149.262h.35l-.258.253.23.272h-.322l-.15.277-.148-.277ZM4.3 3.784h-.352l.273-.256-.273-.27H4.3l.148-.262.15.262h.35l-.259.254.23.272h-.322l-.149.276-.148-.276Z",clipRule:"evenodd"})]})]})]}),Ra=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"SE_-_Sweden_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#SE_-_Sweden_svg__a)",children:[(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"SE_-_Sweden_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#SE_-_Sweden_svg__b)",children:(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M5 0h2v5h9v2H7v5H5V7H0V5h5V0Z",clipRule:"evenodd"})})]})]}),Ma=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"CH_-_Switzerland_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#CH_-_Switzerland_svg__a)",children:[(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"CH_-_Switzerland_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#CH_-_Switzerland_svg__b)",children:(0,h.jsx)("path",{fill:"#F1F9FF",fillRule:"evenodd",d:"M9 3H7v2H5v2h2v2h2V7h2V5H9V3Z",clipRule:"evenodd"})})]})]}),ba=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"UA_-_Ukraine_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#UA_-_Ukraine_svg__a)",children:[(0,h.jsx)("path",{fill:"#3195F9",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"UA_-_Ukraine_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#UA_-_Ukraine_svg__b)",children:(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M0 6v6h16V6H0Z",clipRule:"evenodd"})})]})]}),Fa=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"VA_-_Vatican_City_State_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#VA_-_Vatican_City_State_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFDC17",fillRule:"evenodd",d:"M0 0h7v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#AF0100",d:"m11.39 6.376-.172.01c.041.594.169 1.052.385 1.375.349.521.809.924 1.117.924.07 0 .086.026.063.09-.033.091-.137.18-.27.215-.222.058-.727.087-1.506.087v.168c.795 0 1.309-.03 1.55-.093.188-.048.337-.177.389-.322.06-.167-.03-.312-.226-.312-.23 0-.653-.372-.972-.848-.198-.296-.318-.728-.357-1.294ZM10.573 6.376l.173.01c-.041.594-.168 1.052-.385 1.375-.348.521-.808.924-1.116.924-.07 0-.086.026-.063.09.033.091.136.18.27.215.222.058.726.087 1.505.087v.168c-.794 0-1.308-.03-1.55-.093-.188-.048-.337-.177-.389-.322-.06-.167.031-.312.227-.312.228 0 .653-.372.971-.848.198-.296.318-.728.357-1.294Z"}),(0,h.jsx)("path",{fill:"#F4B300",fillRule:"evenodd",d:"M14.034 3.399 9.463 6.962a1.67 1.67 0 0 0-.517-.08c-.742 0-1.362.473-1.362 1.088 0 .614.62 1.088 1.362 1.088.085 0 .169-.006.25-.018a.479.479 0 0 1-.16-.21c-.033-.093-.02-.18.033-.238-.04.004-.081.006-.123.006-.5 0-.886-.295-.886-.628s.386-.628.886-.628.887.295.887.628c0 .102-.037.2-.101.287l.036-.033c.159-.147-.197.461-.505.461-.07 0-.086.026-.063.09.03.086.124.17.245.208.501-.157.863-.544.863-1.013a.92.92 0 0 0-.166-.525l2.456-2.085.165.17.118-.107.41.304-.171.132.35.426.706-.545.012-.006-.002-.001.044-.034-.35-.426-.17.13-.458-.317.053-.048-.147-.153.222-.188.118.122.126-.115.398.315-.167.129.35.425.605-.466.07-.038-.01-.008.095-.074-.35-.426-.198.153-.435-.334.059-.054-.101-.104.452-.384-.358-.439Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#BFBFBF",fillRule:"evenodd",d:"M11.692 7.97c0-.277.125-.524.33-.713L9.399 5.224l-.03.023.077.07-.207.213-.11-.099-.401.31.153.118-.35.426-.699-.539-.02-.012.003-.001-.044-.034.35-.426.17.13.458-.317-.053-.048.198-.205-.231-.18-.16.166-.121-.11-.393.317.157.122-.35.425-.586-.452-.088-.052.01-.008-.096-.074.35-.426.198.153.436-.334-.06-.054.12-.123-.47-.365.296-.36 4.541 3.517c.184-.073.39-.114.608-.114.742 0 1.362.474 1.362 1.089 0 .614-.62 1.088-1.362 1.088-.085 0-.168-.006-.25-.018a.479.479 0 0 0 .16-.21c.033-.093.02-.18-.033-.238.04.004.081.006.123.006.5 0 .887-.295.887-.628s-.387-.628-.887-.628-.886.295-.886.628c0 .102.036.2.1.287a2.008 2.008 0 0 1-.036-.033c-.159-.147.197.461.505.461.07 0 .086.026.063.09-.03.086-.123.17-.245.208-.501-.157-.863-.544-.863-1.013Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#AF0100",fillRule:"evenodd",d:"M10.87 5.898a.065.065 0 0 0-.064.065v.27h-.24a.063.063 0 1 0 0 .125h.24v3.577c0 .036.029.065.064.065H11a.065.065 0 0 0 .065-.065V6.358h.37a.063.063 0 1 0 0-.125h-.37v-.27A.065.065 0 0 0 11 5.898h-.13Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#AF0100",fillRule:"evenodd",d:"M10.935 10.008c.143 0 .26-.058.26-.13 0-.071-.117-.13-.26-.13-.143 0-.26.059-.26.13 0 .072.117.13.26.13Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F4B300",fillRule:"evenodd",d:"M10 2.9a.9.9 0 1 1 1.8 0v1.622H10V2.9Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#AF0100",fillRule:"evenodd",d:"M10.892 4.61c.502 0 .908-.068.908-.152 0-.083-.407-.151-.908-.151-.502 0-.908.068-.908.151 0 .084.406.152.908.152Z",clipRule:"evenodd"})]})]}),Ca=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"GB-UKM_-_United_Kingdom_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#GB-UKM_-_United_Kingdom_svg__a)",children:[(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"GB-UKM_-_United_Kingdom_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#GB-UKM_-_United_Kingdom_svg__b)",children:[(0,h.jsx)("mask",{id:"GB-UKM_-_United_Kingdom_svg__c",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#GB-UKM_-_United_Kingdom_svg__c)",children:[(0,h.jsx)("path",{fill:"#fff",d:"m-1.781 11.143 3.52 1.489L16.08 1.619l1.857-2.213-3.765-.497-5.85 4.745-4.707 3.198-5.396 4.29Z"}),(0,h.jsx)("path",{fill:"#F50100",d:"m-1.3 12.186 1.794.864L17.27-.8h-2.518L-1.3 12.187Z"}),(0,h.jsx)("path",{fill:"#fff",d:"m17.782 11.143-3.521 1.489L-.08 1.619-1.938-.594l3.765-.497 5.85 4.745 4.707 3.198 5.397 4.29Z"}),(0,h.jsx)("path",{fill:"#F50100",d:"m17.662 11.891-1.794.865-7.144-5.93-2.117-.663-8.723-6.75H.403l8.717 6.59 2.316.795 6.226 5.093Z"}),(0,h.jsx)("mask",{id:"GB-UKM_-_United_Kingdom_svg__d",fill:"#fff",children:(0,h.jsx)("path",{fillRule:"evenodd",d:"M9.889-1H6.11v5H-.986v4H6.11v5H9.89V8h7.125V4H9.889v-5Z",clipRule:"evenodd"})}),(0,h.jsx)("path",{fill:"#F50100",fillRule:"evenodd",d:"M9.889-1H6.11v5H-.986v4H6.11v5H9.89V8h7.125V4H9.889v-5Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",d:"M6.111-1v-1h-1v1h1ZM9.89-1h1v-1h-1v1ZM6.11 4v1h1V4h-1ZM-.986 4V3h-1v1h1Zm0 4h-1v1h1V8ZM6.11 8h1V7h-1v1Zm0 5h-1v1h1v-1Zm3.778 0v1h1v-1h-1Zm0-5V7h-1v1h1Zm7.125 0v1h1V8h-1Zm0-4h1V3h-1v1ZM9.889 4h-1v1h1V4ZM6.11 0H9.89v-2H6.11v2Zm1 4v-5h-2v5h2ZM-.986 5H6.11V3H-.986v2Zm1 3V4h-2v4h2ZM6.11 7H-.986v2H6.11V7Zm1 6V8h-2v5h2Zm2.778-1H6.11v2H9.89v-2Zm-1-4v5h2V8h-2Zm8.125-1H9.889v2h7.125V7Zm-1-3v4h2V4h-2ZM9.889 5h7.125V3H9.889v2Zm-1-6v5h2v-5h-2Z",mask:"url(#GB-UKM_-_United_Kingdom_svg__d)"})]})]})]})]}),Ha=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"DE_-_Germany_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("rect",{width:16,height:12,fill:"#fff",rx:0})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#DE_-_Germany_svg__a)",children:[(0,h.jsx)("path",{fill:"#FFD018",d:"M0 8h16v4H0V8Z"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 4h16v4H0V4Z"}),(0,h.jsx)("path",{fill:"#272727",d:"M0 0h16v4H0V0Z"})]})]}),Va=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"FR_-_France_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#FR_-_France_svg__a)",children:[(0,h.jsx)("path",{fill:"#F50100",d:"M11 0h5v12h-5V0Z"}),(0,h.jsx)("path",{fill:"#2E42A5",d:"M0 0h6v12H0V0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M5 0h6v12H5V0Z"})]})]}),Sa=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"ES_-_Spain_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#ES_-_Spain_svg__a)",children:[(0,h.jsx)("path",{fill:"#FFB400",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"ES_-_Spain_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#ES_-_Spain_svg__b)",children:[(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M0 0v3h16V0H0ZM0 9v3h16V9H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F1F9FF",d:"M2.504 5.136h.56v2.912h-.56z"}),(0,h.jsx)("path",{fill:"#C88A02",fillRule:"evenodd",d:"M3.288 4.632H2.28v.28h.168v.224h.672v-.224h.168v-.28ZM3.12 8.216h.168v.28H2.28v-.28h.168v-.224h.672v.224Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#AD1619",fillRule:"evenodd",d:"M2.784 4.688c.122 0 .134-.046.206-.114.056-.054.186-.12.186-.194 0-.17-.175-.308-.392-.308-.216 0-.392.138-.392.308 0 .083.09.138.157.194.072.058.124.114.235.114Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#005BBF",fillRule:"evenodd",d:"M2.28 8.496h1.008v.448s-.126-.056-.252-.056-.252.056-.252.056-.126-.056-.252-.056-.252.056-.252.056v-.448Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"ES_-_Spain_svg__c",width:2,height:1,x:2,y:8,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M2.28 8.496h1.008v.448s-.126-.056-.252-.056-.252.056-.252.056-.126-.056-.252-.056-.252.056-.252.056v-.448Z",clipRule:"evenodd"})}),(0,h.jsx)("path",{fill:"#F1F9FF",d:"M7.992 5.136h.56v2.912h-.56z"}),(0,h.jsx)("path",{fill:"#C88A02",fillRule:"evenodd",d:"M8.776 4.632H7.768v.28h.168v.224h.672v-.224h.168v-.28ZM8.608 8.216h.168v.28H7.768v-.28h.168v-.224h.672v.224Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#AD1619",fillRule:"evenodd",d:"M8.272 4.688c.122 0 .134-.046.206-.114.056-.054.186-.12.186-.194 0-.17-.175-.308-.392-.308-.216 0-.392.138-.392.308 0 .083.09.138.157.194.072.058.124.114.235.114Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#005BBF",fillRule:"evenodd",d:"M7.768 8.496h1.008v.448s-.126-.056-.252-.056-.252.056-.252.056-.126-.056-.252-.056-.252.056-.252.056v-.448Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"ES_-_Spain_svg__d",width:2,height:1,x:7,y:8,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M7.768 8.496h1.008v.448s-.126-.056-.252-.056-.252.056-.252.056-.126-.056-.252-.056-.252.056-.252.056v-.448Z",clipRule:"evenodd"})}),(0,h.jsx)("path",{fill:"#AD1619",fillRule:"evenodd",d:"M2.494 7.84c.101-.122.157-.234.157-.352a.316.316 0 0 0-.06-.192l.006-.003s.11-.048.15-.067c.072-.034.135-.07.197-.116.04-.028.092-.06.173-.103l.096-.051.096-.053c.085-.05.14-.09.183-.144a.268.268 0 0 0-.061-.399.728.728 0 0 0-.301-.096l-.197-.03c-.066-.01-.124-.02-.177-.03.345-.057.836-.036 1.052.076l.206-.398c-.44-.228-1.445-.204-1.82.054-.275.19-.238.476.048.6.12.05.276.085.564.131a1.431 1.431 0 0 0-.126.081.799.799 0 0 1-.127.075 6.71 6.71 0 0 1-.125.055l-.017.008c-.233.106-.346.252-.312.517l.018.143.033.01.344.284Zm-.288-.37v.002-.002Zm6.147.018c0 .118.056.23.157.352l.344-.284.033-.01.018-.143c.034-.265-.079-.411-.312-.517l-.016-.008a6.704 6.704 0 0 1-.125-.055.8.8 0 0 1-.128-.075 1.431 1.431 0 0 0-.126-.08c.289-.047.445-.081.564-.133.286-.123.323-.41.048-.6-.375-.257-1.379-.28-1.82-.053l.206.398c.216-.112.708-.133 1.052-.075l-.177.029-.196.03a.728.728 0 0 0-.301.096.268.268 0 0 0-.062.4.605.605 0 0 0 .183.143l.096.053.096.05c.081.044.134.076.173.104.062.045.126.082.198.116.039.02.15.068.15.067l.006.003a.316.316 0 0 0-.061.192Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F1F9FF",d:"m2.962 6.2.165.034v.247c-.176.14-.623.377-.623.377V6.2h.458ZM8.157 6.2l-.165.034v.247c.176.14.623.377.623.377V6.2h-.458Z"}),(0,h.jsx)("path",{fill:"#AD1619",fillRule:"evenodd",d:"M7.388 3.603v-.082a1.53 1.53 0 0 0-.905-.31 1.806 1.806 0 0 0-.918-.156v-.001c-.465-.046-.934.157-.934.157-.473 0-.905.31-.905.31v.082l.565.567s.159.546 1.272.418v.001s.737-.02.79-.037l.063-.02c.144-.042.31-.09.407-.362l.565-.567Zm-1.825-.519Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C88A02",fillRule:"evenodd",d:"m3.76 3.7.038-.042.513.483c.097-.026.626-.16 1.216-.168h.045a5.281 5.281 0 0 1 1.232.172s-.006.053-.021.116l.056-.11.006-.006.517-.487.038.041-.514.483c-.075.138-.112.23-.112.267 0 .058-.15.092-.444.128-.23.027-.5.046-.722.048h-.056a7.222 7.222 0 0 1-.722-.048c-.294-.036-.444-.07-.444-.128a.118.118 0 0 0-.004-.027.44.44 0 0 1-.064-.154 2.84 2.84 0 0 0-.044-.086L3.76 3.7Zm2.867.75c.039.019.07 0 .095-.035a.18.18 0 0 0-.004.027.541.541 0 0 1-.098.032 3.068 3.068 0 0 1-.296.047c-.238.029-.52.047-.744.049a7.095 7.095 0 0 1-.744-.049 3.067 3.067 0 0 1-.296-.047.633.633 0 0 1-.073-.02l.006-.003c.122-.058.93-.111 1.077-.12.145.009.954.062 1.077.12Zm.154-.01-.001.001Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#005BBF",fillRule:"evenodd",d:"M5.556 2.674a.168.168 0 1 0 0-.336.168.168 0 0 0 0 .336Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C88A02",fillRule:"evenodd",d:"M5.493 2.038h.117v.074h.076v.117H5.61v.233h.076v.117h-.27v-.117h.077v-.233h-.077v-.117h.077v-.074Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C88A02",d:"M5.472 2.672h.224V3.4h-.224z"}),(0,h.jsx)("path",{fill:"#C88A02",d:"m3.854 3.648-.308-.011c.145-.839.86-1.25 2.002-1.25 1.144 0 1.856.413 1.99 1.255l-.415.043c-.066-.41-.752-.78-1.569-.78-.818 0-1.629.33-1.7.743Z"}),(0,h.jsx)("path",{fill:"#E1E5E8",fillRule:"evenodd",d:"M3.736 4.632h3.64v3.27S7.106 9 5.556 9s-1.82-1.127-1.82-1.127V4.632Z",clipRule:"evenodd",opacity:.3}),(0,h.jsx)("mask",{id:"ES_-_Spain_svg__e",width:5,height:5,x:3,y:4,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M3.736 4.632h3.64v3.27S7.106 9 5.556 9s-1.82-1.127-1.82-1.127V4.632Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#ES_-_Spain_svg__e)",children:[(0,h.jsx)("path",{fill:"#FFC034",d:"M3.736 6.648h1.848v2.184H3.736z"}),(0,h.jsx)("path",{fill:"#AD1619",d:"M3.736 4.576h1.848v2.128H3.736z"}),(0,h.jsx)("path",{fill:"#AD1619",d:"M5.528 6.592h1.848V8.72H5.528z"}),(0,h.jsx)("path",{fill:"#F1F9FF",d:"M5.528 4.632h1.96v2.072h-1.96z"}),(0,h.jsx)("path",{fill:"#F1F9FF",fillRule:"evenodd",d:"M6.741 8.721s-1.186.094-1.186-.671c0 0-.011.671-1.25.671v.604h2.436v-.604Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#005BBF",fillRule:"evenodd",stroke:"#AD1619",strokeWidth:.583,d:"M5.556 7.096c.232 0 .42-.2.42-.448 0-.247-.188-.448-.42-.448-.232 0-.42.2-.42.448 0 .247.188.448.42.448Z",clipRule:"evenodd"})]}),(0,h.jsx)("path",{fill:"#C88A02",fillRule:"evenodd",d:"M4.5 6a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#C37C9C",fillRule:"evenodd",d:"M6.5 6a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFC034",fillRule:"evenodd",d:"M6.5 8a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#AD1619",d:"M4.5 8a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"})]})]})]}),Aa=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"IT_-_Italy_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#IT_-_Italy_svg__a)",children:[(0,h.jsx)("path",{fill:"#C51918",d:"M11 0h5v12h-5V0Z"}),(0,h.jsx)("path",{fill:"#5EAA22",d:"M0 0h6v12H0V0Z"}),(0,h.jsx)("path",{fill:"#fff",d:"M5 0h6v12H5V0Z"})]})]}),Ua=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"NL_-_Netherlands_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#NL_-_Netherlands_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"NL_-_Netherlands_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#NL_-_Netherlands_svg__b)",children:[(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 0v4h16V0H0Z"}),(0,h.jsx)("path",{fill:"#3D58DB",d:"M0 8v4h16V8H0Z"})]})]})]}),Ea=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"PL_-_Poland_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#PL_-_Poland_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"PL_-_Poland_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsx)("g",{mask:"url(#PL_-_Poland_svg__b)",children:(0,h.jsx)("path",{fill:"#C51918",fillRule:"evenodd",d:"M0 6v6h16V6H0Z",clipRule:"evenodd"})})]})]}),Ta=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"CL_-_Chile_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#CL_-_Chile_svg__a)",children:[(0,h.jsx)("path",{fill:"#3D58DB",d:"M0 0h7v7H0V0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M7-1h9v8H7v-8Z"}),(0,h.jsx)("path",{fill:"#E31D1C",d:"M0 7h16v5H0V7Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M3.507 4.892 1.605 6.027l.939-1.932L.882 2.84 2.8 2.82l.723-1.714.467 1.713 1.816.009-1.382 1.227.718 1.972-1.636-1.135Z"})]})]}),La=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"BO_-_Bolivia_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#BO_-_Bolivia_svg__a)",children:[(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"BO_-_Bolivia_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#BO_-_Bolivia_svg__b)",children:[(0,h.jsx)("path",{fill:"#DB501C",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{stroke:"#DB501C",strokeWidth:.75,d:"M5.824 5.63S5.638 7.535 7.33 7.535h1.261s1.781-.117 1.574-1.905"}),(0,h.jsx)("path",{fill:"#FECA00",stroke:"#68B9E8",strokeWidth:.75,d:"M9.125 5.9a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0Z"}),(0,h.jsx)("path",{fill:"#DB501C",fillRule:"evenodd",d:"M8 6a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M8.05 6.8c.47 0 .85-.18.85-.4 0-.22-.38-.4-.85-.4s-.85.18-.85.4c0 .22.38.4.85.4Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#674F28",fillRule:"evenodd",d:"M8.05 5c.663 0 1.2-.18 1.2-.4 0-.22-.537-.4-1.2-.4-.663 0-1.2.18-1.2.4 0 .22.537.4 1.2.4Z",clipRule:"evenodd"})]})]})]}),Da=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"EC_-_Ecuador_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#EC_-_Ecuador_svg__a)",children:[(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"EC_-_Ecuador_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#EC_-_Ecuador_svg__b)",children:[(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M0 0v6h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 9v3h16V9H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#7B2900",fillRule:"evenodd",d:"M4.606 2.896c-.06-.136 2.256-.823 2.43-.823.173 0 .392.411.392.411l1.408.114s-.166-.525 0-.525c.167 0 2.716.886 2.716.886s-3.187.384-3.187.47c0 .087.209.562.209.562l-.59.193s.035-.573-.061-.573-.381.685-.381.685l-.28-.867s-2.595-.397-2.656-.533Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",d:"m4.616 5.009.63.15c-.659 2.759-.05 4.082 1.828 4.205l-.042.646c-2.353-.154-3.157-1.9-2.416-5.001Z"}),(0,h.jsx)("path",{fill:"#07138E",d:"m5 4.637.64.1c-.451 2.887-.09 4.192.924 4.156l.023.648C4.967 9.598 4.492 7.883 5 4.637Z"}),(0,h.jsx)("path",{fill:"#E10001",d:"m5.648 4.372.64.1c-.451 2.887-.09 4.192.925 4.156l.022.648c-1.62.057-2.095-1.657-1.587-4.904Z"}),(0,h.jsx)("path",{fill:"#07138E",d:"m6.851 9.637.645-.063c.053.546.013 1.017-.125 1.413l-.612-.214c.104-.299.137-.678.092-1.136Z"}),(0,h.jsx)("path",{stroke:"#FECA00",strokeWidth:.648,d:"M10.75 5.084S11.783 9.731 8.6 9.65"}),(0,h.jsx)("path",{fill:"#07138E",d:"m10.681 4.637-.64.1c.452 2.887.09 4.192-.924 4.156l-.023.648c1.62.057 2.095-1.658 1.587-4.904Z"}),(0,h.jsx)("path",{fill:"#E10001",d:"m10.033 4.372-.64.1c.451 2.887.09 4.192-.924 4.156l-.023.648c1.62.057 2.095-1.657 1.587-4.904Z"}),(0,h.jsx)("path",{fill:"#07138E",d:"m8.704 9.64-.644-.07c-.054.5-.013.931.13 1.295l.603-.236c-.1-.258-.132-.587-.089-.989Z"}),(0,h.jsx)("path",{fill:"#908F89",fillRule:"evenodd",d:"M6.933 8.75h1.945v.926H6.933V8.75Z",clipRule:"evenodd"}),(0,h.jsx)("path",{stroke:"#FEE901",strokeWidth:.5,d:"M7.906 9c.548 0 1.021-.309 1.348-.763.327-.454.522-1.07.522-1.737 0-.668-.195-1.283-.522-1.737C8.927 4.309 8.454 4 7.906 4c-.549 0-1.022.309-1.35.763-.326.454-.52 1.07-.52 1.737 0 .668.194 1.283.52 1.737.328.454.801.763 1.35.763Z"}),(0,h.jsx)("mask",{id:"EC_-_Ecuador_svg__c",width:6,height:7,x:5,y:3,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",stroke:"#fff",strokeWidth:.5,d:"M7.906 9c.548 0 1.021-.309 1.348-.763.327-.454.522-1.07.522-1.737 0-.668-.195-1.283-.522-1.737C8.927 4.309 8.454 4 7.906 4c-.549 0-1.022.309-1.35.763-.326.454-.52 1.07-.52 1.737 0 .668.194 1.283.52 1.737.328.454.801.763 1.35.763Z"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#EC_-_Ecuador_svg__c)",children:[(0,h.jsx)("path",{fill:"#8DDD61",d:"M9.079 7.703s-.788-.43-1.014-.582c-.226-.153-.095-.494-.485-.403-.39.092-.702.25-.702.685 0 .435-.306.693-.41.396-.104-.297-.594-1.687 0-1.687s1.983.312 2.392.312c.409 0 .647.212.647.596a.73.73 0 0 1-.428.683Z"}),(0,h.jsx)("path",{fill:"#FEE901",d:"M7.905 5.441a.328.328 0 0 0 .325-.33.328.328 0 0 0-.325-.332.328.328 0 0 0-.324.331c0 .183.146.331.324.331Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M6.835 5.47s.377-.09.898.26c.52.351 1.783.551 1.783.276v.536s-2.802-.174-2.952 0c-.15.175-.165-.974 0-1.072.165-.097.27 0 .27 0Z"})]})]})]})]}),Na=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"GY_-_Guyana_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#GY_-_Guyana_svg__a)",children:[(0,h.jsx)("path",{fill:"#5EAA22",fillRule:"evenodd",d:"M0 0h16v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FECA00",stroke:"#F7FCFF",d:"M.5 11.293V.707L15.498 6 .5 11.293Z"}),(0,h.jsx)("path",{fill:"#E11C1B",stroke:"#272727",d:"M-.5 11.978V.022L7.186 6-.5 11.978Z"})]})]}),Oa=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"KI_-__Kiribati_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#KI_-__Kiribati_svg__a)",children:[(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"KI_-__Kiribati_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#KI_-__Kiribati_svg__b)",children:[(0,h.jsx)("path",{fill:"#FFC84A",fillRule:"evenodd",d:"m7.662 8.588.229-.496.228.496.136-.528.315.447.038-.544.39.385-.06-.543.454.31-.157-.523.501.224-.248-.487.534.132-.332-.435.549.035-.406-.369.547-.063-.465-.291.527-.159-.51-.204.49-.25-.54-.11.437-.332-.55-.014.37-.403-.543.083.291-.462-.52.178.204-.507-.48.268.11-.535-.424.35.01-.547-.353.418-.087-.538-.273.474-.183-.515-.184.515-.272-.474-.088.538-.354-.418.011.546-.423-.349.109.535-.48-.268.204.507-.52-.178.292.462-.544-.083.37.403-.55.014.437.332-.539.11.49.25-.51.204.526.159-.465.291.547.063-.406.37.55-.036-.333.435.534-.132-.248.487.501-.224-.156.523.453-.31-.06.543.39-.385.038.544.315-.447.136.528Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M-.396 6.96.91 6.43a.781.781 0 0 1 .594.002l1.816.756c.205.085.437.079.638-.017l1.464-.703c.21-.1.454-.103.665-.005l1.534.709a.781.781 0 0 0 .652.001l1.57-.716a.781.781 0 0 1 .65.002l1.55.715a.781.781 0 0 0 .642.006l1.693-.746a.781.781 0 0 1 .58-.02l1.517.546v5.007H-.44l.045-5.007Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"KI_-__Kiribati_svg__c",width:18,height:6,x:-1,y:6,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M-.396 6.96.91 6.43a.781.781 0 0 1 .594.002l1.816.756c.205.085.437.079.638-.017l1.464-.703c.21-.1.454-.103.665-.005l1.534.709a.781.781 0 0 0 .652.001l1.57-.716a.781.781 0 0 1 .65.002l1.55.715a.781.781 0 0 0 .642.006l1.693-.746a.781.781 0 0 1 .58-.02l1.517.546v5.007H-.44l.045-5.007Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#KI_-__Kiribati_svg__c)",children:[(0,h.jsx)("path",{stroke:"#015989",d:"m-.396 8.123 1.307-.53a.781.781 0 0 1 .594.002l1.816.755c.205.086.437.08.638-.017l1.464-.702c.21-.101.454-.103.665-.005l1.534.708a.781.781 0 0 0 .652.002l1.57-.716a.781.781 0 0 1 .65.002l1.55.715a.78.78 0 0 0 .642.006l1.693-.746a.781.781 0 0 1 .58-.02l1.517.546M-.396 9.787l1.307-.53a.781.781 0 0 1 .594.002l1.816.756a.78.78 0 0 0 .638-.017l1.464-.703c.21-.1.454-.102.665-.005L7.622 10a.78.78 0 0 0 .652.001l1.57-.715a.781.781 0 0 1 .65.001l1.55.716a.78.78 0 0 0 .642.005l1.693-.745a.781.781 0 0 1 .58-.02l1.517.545"}),(0,h.jsx)("path",{fill:"#015989",fillRule:"evenodd",d:"m-.396 11.114.546-.222a2.781 2.781 0 0 1 2.114.01l1.057.44a.78.78 0 0 0 .638-.018l.615-.295a2.78 2.78 0 0 1 2.37-.017l.678.313a.78.78 0 0 0 .652.002l.734-.335a2.781 2.781 0 0 1 2.32.005l.716.33a.781.781 0 0 0 .642.007l.962-.424a2.782 2.782 0 0 1 2.062-.072l.766.276v1.657H-.304l-.092-1.657Z",clipRule:"evenodd"})]}),(0,h.jsx)("path",{fill:"#FFC84A",fillRule:"evenodd",d:"M4.8 1.199s.713.143.947.143c.235 0 .763-.359 1.069-.24.306.12.894.685.894.685s.833-.625 1.34-.625c.506 0 1.437.068 1.437.068s-.215.557-.818.651c-.603.094-1.325.556-1.325.556h.98c.15 0 .645.277.645.277s-.702.222-.903.222h-.423s-.427.367-.955.289c-.527-.078-.896-.417-.896-.417s-.745-.049-.745-.128c0 0-.284-.146-.37 0-.086.145.37-.196.37-.196s.412-.334.551-.334c.14 0 .605.287.605.287l.111-.115-.576-.441C5.56 2.004 4.8 1.199 4.8 1.199Z",clipRule:"evenodd"})]})]})]}),Ba=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"NR_-_Nauru_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#NR_-_Nauru_svg__a)",children:[(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"NR_-_Nauru_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{fillRule:"evenodd",clipRule:"evenodd",mask:"url(#NR_-_Nauru_svg__b)",children:[(0,h.jsx)("path",{fill:"#FECA00",d:"M0 4v2h16V4H0Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"m4.415 9.79-.773 1.003-.035-1.266-1.215.357.715-1.044-1.192-.425 1.192-.425-.715-1.045 1.215.357.035-1.265.773 1.003.772-1.003.036 1.265 1.214-.357-.714 1.045 1.192.425-1.192.425.714 1.044-1.214-.357-.036 1.266-.772-1.003Z"})]})]})]}),za=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"PY_-_Paraguay_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#PY_-_Paraguay_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"PY_-_Paraguay_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#PY_-_Paraguay_svg__b)",children:[(0,h.jsx)("path",{fill:"#272727",fillRule:"evenodd",d:"M6 6a2 2 0 1 0 4 0 2 2 0 0 0-4 0Zm3.5 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F05234",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#3D58DB",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#73BE4A",d:"m7.289 4.928.285.411c-.285.197-.37.47-.262.875.107.398.343.584.76.599l-.018.5c-.636-.023-1.061-.359-1.225-.97-.16-.6-.006-1.092.46-1.415Z"}),(0,h.jsx)("path",{fill:"#73BE4A",d:"m8.712 4.928-.284.411c.284.197.37.47.261.875-.106.398-.342.584-.76.599l.018.5c.636-.023 1.061-.359 1.225-.97.161-.6.007-1.092-.46-1.415Z"}),(0,h.jsx)("path",{fill:"#FBCD17",fillRule:"evenodd",d:"M8.001 6.374a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z",clipRule:"evenodd"})]})]})]}),Pa=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"PE_-_Peru_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#PE_-_Peru_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M4 0h8.5v12H4V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F50101",fillRule:"evenodd",d:"M12 0h4v12h-4V0ZM0 0h4v12H0V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#A2BB6A",d:"m7.87 4.373.017.18c-.499.051-.768-.193-.768-.7 0-.502.263-.769.76-.772v.182c-.401.003-.587.19-.587.59 0 .398.18.56.579.52ZM8.092 4.373l-.017.18c.5.051.769-.193.769-.7 0-.502-.264-.769-.76-.772l-.001.182c.402.003.587.19.587.59 0 .398-.18.56-.578.52Z"}),(0,h.jsxs)("mask",{id:"PE_-_Peru_svg__b",width:5,height:6,x:5.588,y:3.441,fill:"#000",maskUnits:"userSpaceOnUse",children:[(0,h.jsx)("path",{fill:"#fff",d:"M5.588 3.441h5v6h-5z"}),(0,h.jsx)("path",{fillRule:"evenodd",d:"m8.043 4.453.021-.012v.023c.096.053.339.178.496.178.2 0 .473-.201.473-.201l.456.643s-.307.643-.072 1.43c.234.785-.013 1.391-1.057 1.458 0 0-.206.04-.296.102v.057c0-.014-.008-.028-.02-.04-.014.012-.021.026-.021.04v-.057c-.09-.063-.296-.102-.296-.102C6.683 7.905 6.435 7.3 6.67 6.513c.235-.786-.072-1.429-.072-1.429l.456-.643s.272.2.472.2c.158 0 .4-.124.497-.177v-.023l.02.012Z",clipRule:"evenodd"})]}),(0,h.jsx)("path",{fill:"#E8AA00",fillRule:"evenodd",d:"m8.043 4.453.021-.012v.023c.096.053.339.178.496.178.2 0 .473-.201.473-.201l.456.643s-.307.643-.072 1.43c.234.785-.013 1.391-1.057 1.458 0 0-.206.04-.296.102v.057c0-.014-.008-.028-.02-.04-.014.012-.021.026-.021.04v-.057c-.09-.063-.296-.102-.296-.102C6.683 7.905 6.435 7.3 6.67 6.513c.235-.786-.072-1.429-.072-1.429l.456-.643s.272.2.472.2c.158 0 .4-.124.497-.177v-.023l.02.012Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E8AA00",d:"M8.064 4.44h.5v-.88l-.756.451.256.43Zm-.02.013-.247.435.246.14.247-.14-.247-.435Zm.02.011h-.5v.295l.259.143.241-.438Zm.969-.023.408-.29-.295-.415-.41.303.297.402Zm.456.643.45.215.127-.264-.17-.24-.407.29Zm-.072 1.43-.48.142.48-.143ZM8.36 7.971l-.032-.499-.031.002-.03.006.093.491Zm-.296.102-.284-.412-.216.15v.262h.5Zm-.02.017.35-.357-.35-.344-.35.344.35.357Zm-.021-.017h.5v-.262l-.216-.15-.284.412Zm-.296-.102.093-.49-.03-.007-.031-.002-.032.5ZM6.598 5.084l-.408-.289-.17.24.127.264.451-.215Zm.456-.643.297-.402-.41-.303-.295.416.408.289Zm.969.023.241.438.259-.143v-.295h-.5Zm0-.023.256-.43-.756-.45v.88h.5Zm.041 0-.256-.43c.001 0 .001 0 0 0l-.011.007.493.87a2.254 2.254 0 0 0 .029-.017h.001l-.256-.43Zm.5.023v-.023h-1v.023h1Zm-.741.438c.056.031.16.086.277.134.101.041.278.106.46.106v-1c.021 0 .023.003 0-.003a.718.718 0 0 1-.082-.029 1.746 1.746 0 0 1-.172-.083l-.483.875Zm.737.24c.234 0 .447-.106.55-.16a2.074 2.074 0 0 0 .212-.133l.005-.004.002-.001v-.001a141.29 141.29 0 0 0-.593-.805h.001l-.003.002a.913.913 0 0 1-.18.099c-.026.008-.021.003.006.003v1Zm.065-.412.456.643.816-.578-.456-.643-.816.578Zm.864.354-.452-.215a.03.03 0 0 0-.001.003l-.002.004a.864.864 0 0 0-.02.046 2.605 2.605 0 0 0-.141.492c-.058.315-.081.755.065 1.242l.958-.286a1.666 1.666 0 0 1 .046-1.074l-.001.001V5.3l-.452-.215Zm-.551 1.572c.098.33.059.507.007.59-.043.068-.178.199-.617.227l.064.998c.605-.039 1.116-.244 1.399-.692.274-.434.24-.954.105-1.409l-.958.286ZM8.36 7.972a223.97 223.97 0 0 0-.093-.49h-.003a.353.353 0 0 0-.014.002 1.907 1.907 0 0 0-.139.034c-.063.018-.21.06-.331.144l.568.823c-.023.017-.035.019-.018.013a.583.583 0 0 1 .106-.03.842.842 0 0 1 .016-.004h.002l-.094-.492Zm.204.16v-.058h-1v.057h1Zm-.87.316a.443.443 0 0 1-.13-.317h1a.557.557 0 0 0-.17-.397l-.7.714Zm0-.714a.557.557 0 0 0-.171.397h1a.443.443 0 0 1-.13.317l-.7-.714Zm.829.397v-.057h-1v.057h1Zm-.796-.159-.094.492h.002a.864.864 0 0 1 .122.034c.017.006.005.004-.019-.013l.569-.823a1.143 1.143 0 0 0-.331-.144 2.103 2.103 0 0 0-.154-.036H7.82l-.094.49ZM6.19 6.37c-.136.455-.17.975.105 1.41.283.447.794.652 1.399.691l.064-.998c-.44-.028-.574-.16-.617-.228-.052-.082-.091-.258.007-.589l-.958-.286Zm.407-1.286-.451.215-.001-.002v-.001h-.001l.004.009a1.605 1.605 0 0 1 .081.289c.037.203.05.477-.039.776l.958.286a2.666 2.666 0 0 0-.096-1.78l-.002-.004V4.87H7.05l-.452.214Zm.048-.932-.456.643.816.578.456-.643-.816-.578Zm.88-.01c.028 0 .033.005.008-.003a1.073 1.073 0 0 1-.18-.099l-.005-.003a.007.007 0 0 1 .002.001l-.297.403-.297.402h.001l.002.002.005.004a1.259 1.259 0 0 0 .06.04c.037.025.09.059.152.092.102.055.316.16.55.16v-1Zm.255-.115c-.04.021-.105.056-.173.083a.718.718 0 0 1-.081.029c-.024.006-.021.003 0 .003v1c.182 0 .358-.065.46-.106.117-.048.22-.103.277-.134l-.483-.875Zm.742.437v-.023h-1v.023h1Zm-.5-.023-.256.43h.001a.19.19 0 0 0 .008.005l.02.012.494-.87-.01-.006-.002-.001-.255.43Z",mask:"url(#PE_-_Peru_svg__b)"}),(0,h.jsxs)("mask",{id:"PE_-_Peru_svg__d",width:5,height:6,x:6,y:3,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:[(0,h.jsxs)("mask",{id:"PE_-_Peru_svg__c",width:5,height:6,x:5.588,y:3.441,fill:"#000",maskUnits:"userSpaceOnUse",children:[(0,h.jsx)("path",{fill:"#fff",d:"M5.588 3.441h5v6h-5z"}),(0,h.jsx)("path",{fillRule:"evenodd",d:"m8.043 4.453.021-.012v.023c.096.053.339.178.496.178.2 0 .473-.201.473-.201l.456.643s-.307.643-.072 1.43c.234.785-.013 1.391-1.057 1.458 0 0-.206.04-.296.102v.057c0-.014-.008-.028-.02-.04-.014.012-.021.026-.021.04v-.057c-.09-.063-.296-.102-.296-.102C6.683 7.905 6.435 7.3 6.67 6.513c.235-.786-.072-1.429-.072-1.429l.456-.643s.272.2.472.2c.158 0 .4-.124.497-.177v-.023l.02.012Z",clipRule:"evenodd"})]}),(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"m8.043 4.453.021-.012v.023c.096.053.339.178.496.178.2 0 .473-.201.473-.201l.456.643s-.307.643-.072 1.43c.234.785-.013 1.391-1.057 1.458 0 0-.206.04-.296.102v.057c0-.014-.008-.028-.02-.04-.014.012-.021.026-.021.04v-.057c-.09-.063-.296-.102-.296-.102C6.683 7.905 6.435 7.3 6.67 6.513c.235-.786-.072-1.429-.072-1.429l.456-.643s.272.2.472.2c.158 0 .4-.124.497-.177v-.023l.02.012Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",d:"M8.064 4.44h.5v-.88l-.756.451.256.43Zm-.02.013-.247.435.246.14.247-.14-.247-.435Zm.02.011h-.5v.295l.259.143.241-.438Zm.969-.023.408-.29-.295-.415-.41.303.297.402Zm.456.643.45.215.127-.264-.17-.24-.407.29Zm-.072 1.43-.48.142.48-.143ZM8.36 7.971l-.032-.499-.031.002-.03.006.093.491Zm-.296.102-.284-.412-.216.15v.262h.5Zm-.02.017.35-.357-.35-.344-.35.344.35.357Zm-.021-.017h.5v-.262l-.216-.15-.284.412Zm-.296-.102.093-.49-.03-.007-.031-.002-.032.5ZM6.598 5.084l-.408-.289-.17.24.127.264.451-.215Zm.456-.643.297-.402-.41-.303-.295.416.408.289Zm.969.023.241.438.259-.143v-.295h-.5Zm0-.023.256-.43-.756-.45v.88h.5Zm.041 0-.256-.43c.001 0 .001 0 0 0l-.011.007.493.87a2.254 2.254 0 0 0 .029-.017h.001l-.256-.43Zm.5.023v-.023h-1v.023h1Zm-.741.438c.056.031.16.086.277.134.101.041.278.106.46.106v-1c.021 0 .023.003 0-.003a.718.718 0 0 1-.082-.029 1.746 1.746 0 0 1-.172-.083l-.483.875Zm.737.24c.234 0 .447-.106.55-.16a2.074 2.074 0 0 0 .212-.133l.005-.004.002-.001v-.001a141.29 141.29 0 0 0-.593-.805h.001l-.003.002a.913.913 0 0 1-.18.099c-.026.008-.021.003.006.003v1Zm.065-.412.456.643.816-.578-.456-.643-.816.578Zm.864.354-.452-.215a.03.03 0 0 0-.001.003l-.002.004a.864.864 0 0 0-.02.046 2.605 2.605 0 0 0-.141.492c-.058.315-.081.755.065 1.242l.958-.286a1.666 1.666 0 0 1 .046-1.074l-.001.001V5.3l-.452-.215Zm-.551 1.572c.098.33.059.507.007.59-.043.068-.178.199-.617.227l.064.998c.605-.039 1.116-.244 1.399-.692.274-.434.24-.954.105-1.409l-.958.286ZM8.36 7.972a223.97 223.97 0 0 0-.093-.49h-.003a.353.353 0 0 0-.014.002 1.907 1.907 0 0 0-.139.034c-.063.018-.21.06-.331.144l.568.823c-.023.017-.035.019-.018.013a.583.583 0 0 1 .106-.03.842.842 0 0 1 .016-.004h.002l-.094-.492Zm.204.16v-.058h-1v.057h1Zm-.87.316a.443.443 0 0 1-.13-.317h1a.557.557 0 0 0-.17-.397l-.7.714Zm0-.714a.557.557 0 0 0-.171.397h1a.443.443 0 0 1-.13.317l-.7-.714Zm.829.397v-.057h-1v.057h1Zm-.796-.159-.094.492h.002a.864.864 0 0 1 .122.034c.017.006.005.004-.019-.013l.569-.823a1.143 1.143 0 0 0-.331-.144 2.103 2.103 0 0 0-.154-.036H7.82l-.094.49ZM6.19 6.37c-.136.455-.17.975.105 1.41.283.447.794.652 1.399.691l.064-.998c-.44-.028-.574-.16-.617-.228-.052-.082-.091-.258.007-.589l-.958-.286Zm.407-1.286-.451.215-.001-.002v-.001h-.001l.004.009a1.605 1.605 0 0 1 .081.289c.037.203.05.477-.039.776l.958.286a2.666 2.666 0 0 0-.096-1.78l-.002-.004V4.87H7.05l-.452.214Zm.048-.932-.456.643.816.578.456-.643-.816-.578Zm.88-.01c.028 0 .033.005.008-.003a1.073 1.073 0 0 1-.18-.099l-.005-.003a.007.007 0 0 1 .002.001l-.297.403-.297.402h.001l.002.002.005.004a1.259 1.259 0 0 0 .06.04c.037.025.09.059.152.092.102.055.316.16.55.16v-1Zm.255-.115c-.04.021-.105.056-.173.083a.718.718 0 0 1-.081.029c-.024.006-.021.003 0 .003v1c.182 0 .358-.065.46-.106.117-.048.22-.103.277-.134l-.483-.875Zm.742.437v-.023h-1v.023h1Zm-.5-.023-.256.43h.001a.19.19 0 0 0 .008.005l.02.012.494-.87-.01-.006-.002-.001-.255.43Z",mask:"url(#PE_-_Peru_svg__c)"})]}),(0,h.jsxs)("g",{mask:"url(#PE_-_Peru_svg__d)",children:[(0,h.jsx)("path",{fill:"#67BAFF",d:"M6.652 4.364h1.391v1.909H6.652z"}),(0,h.jsx)("path",{fill:"#fff",d:"M8.043 4.364h1.391v1.909H8.043z"}),(0,h.jsx)("path",{fill:"#C51918",d:"M6.478 6.455h3.478v2.182H6.478z"}),(0,h.jsx)("path",{fill:"#C9A951",d:"M8.717 6.137h-.174V4.83h.174v1.307Z"}),(0,h.jsx)("path",{fill:"#C9A951",d:"m8.647 5.543-.085.152-.3-.168.085-.152.3.168ZM8.647 5.18l-.085.151-.3-.168.085-.151.3.167Z"}),(0,h.jsx)("path",{fill:"#C9A951",d:"m8.61 5.543.085.152.3-.168-.085-.152-.3.168ZM8.61 5.18l.085.151.3-.168-.085-.151-.3.167Z"}),(0,h.jsx)("path",{fill:"#D18219",fillRule:"evenodd",d:"M7.688 4.785c-.105.092-.037.427-.209.427s-.413-.251-.474-.086c-.061.166 0 .11 0 .251 0 .141-.146.533-.073.6.073.066.147.24.134.159-.013-.082-.068-.202-.045-.333-.022-.134.123-.264.123-.264s-.016.14-.027.192c0 0-.048.105-.028.175 0 0 .049.197.069.21 0 0 .013-.465.028-.542.015-.077.122.086.157.068 0 0 .012.319-.006.357 0 0-.038.075-.024.1 0 0 .035.087.065.061l.016-.087s-.018-.051.01-.168c0 0 .028-.257.04-.201 0 0-.005.121.009.184 0 0 .021.155.026.172 0 0 .105.15.108.087 0 0-.101-.12-.08-.212 0 0-.057-.258.023-.316 0 0 .214-.099.226-.267 0 0 .031-.193.037-.281 0 0-.047-.026.05-.072 0 0 .155-.06.058-.143",clipRule:"evenodd"})]}),(0,h.jsx)("path",{fill:"#00A854",d:"m6.1 3.843.387.31c-.504.829-.387 1.609-.387 2.11 0 .925.695 1.992 1.905 1.992.9 0 1.878-.7 2.109-1.556.181-.674-.236-2.257-.55-2.67l.372-.186c.488.642 1.414 2.111 1.143 3.116-.352 1.306-1.735 2.296-3.074 2.296C6.13 9.255 5.1 7.673 5.1 6.263c0-.716.41-1.449 1-2.42Z"}),(0,h.jsx)("path",{fill:"#FDD200",fillRule:"evenodd",d:"M8 7.6c.552 0 1-.224 1-.5s-.448-.5-1-.5-1 .224-1 .5.448.5 1 .5Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#CA0000",d:"M6.5 8h3v1h-3z"})]})]}),Ia=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"TO_-_Tonga_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#TO_-_Tonga_svg__a)",children:[(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"TO_-_Tonga_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#TO_-_Tonga_svg__b)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 0h9v8H0z"}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M6 1H4v2H2v2h2v2h2V5h2V3H6V1Z",clipRule:"evenodd"})]})]})]}),Ga=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"TV_-_Tuvalu_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#TV_-_Tuvalu_svg__a)",children:[(0,h.jsx)("path",{fill:"#00B4FF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"TV_-_Tuvalu_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#TV_-_Tuvalu_svg__b)",children:[(0,h.jsx)("path",{fill:"#2E42A5",d:"M0 0h9v7H0z"}),(0,h.jsx)("mask",{id:"TV_-_Tuvalu_svg__c",width:9,height:7,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h9v7H0z"})}),(0,h.jsxs)("g",{mask:"url(#TV_-_Tuvalu_svg__c)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",d:"m-1.002 6.5 1.98.868L9.045.944l1.045-1.29-2.118-.29-3.29 2.768-2.649 1.865L-1.002 6.5Z"}),(0,h.jsx)("path",{fill:"#F50100",d:"m-.731 7.108 1.009.505 9.436-8.08H8.298L-.731 7.109Z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"m10.002 6.5-1.98.868L-.045.944-1.09-.346l2.118-.29 3.29 2.768 2.649 1.865L10.002 6.5Z"}),(0,h.jsx)("path",{fill:"#F50100",d:"m9.935 6.937-1.01.504-4.018-3.46-1.19-.386L-1.19-.342H.227L5.13 3.502l1.303.463 3.502 2.972Z"}),(0,h.jsxs)("mask",{id:"TV_-_Tuvalu_svg__d",width:11,height:9,x:-1,y:-1,fill:"#000",maskUnits:"userSpaceOnUse",children:[(0,h.jsx)("path",{fill:"#fff",d:"M-1-1h11v9H-1z"}),(0,h.jsx)("path",{fillRule:"evenodd",d:"M4.992 0h-1v3H0v1h3.992v3h1V4H9V3H4.992V0Z",clipRule:"evenodd"})]}),(0,h.jsx)("path",{fill:"#F50100",fillRule:"evenodd",d:"M4.992 0h-1v3H0v1h3.992v3h1V4H9V3H4.992V0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M3.992 0v-.75h-.75V0h.75Zm1 0h.75v-.75h-.75V0Zm-1 3v.75h.75V3h-.75ZM0 3v-.75h-.75V3H0Zm0 1h-.75v.75H0V4Zm3.992 0h.75v-.75h-.75V4Zm0 3h-.75v.75h.75V7Zm1 0v.75h.75V7h-.75Zm0-3v-.75h-.75V4h.75ZM9 4v.75h.75V4H9Zm0-1h.75v-.75H9V3ZM4.992 3h-.75v.75h.75V3Zm-1-2.25h1v-1.5h-1v1.5ZM4.742 3V0h-1.5v3h1.5ZM0 3.75h3.992v-1.5H0v1.5ZM.75 4V3h-1.5v1h1.5Zm3.242-.75H0v1.5h3.992v-1.5ZM4.742 7V4h-1.5v3h1.5Zm.25-.75h-1v1.5h1v-1.5ZM4.242 4v3h1.5V4h-1.5ZM9 3.25H4.992v1.5H9v-1.5ZM8.25 3v1h1.5V3h-1.5Zm-3.258.75H9v-1.5H4.992v1.5ZM4.242 0v3h1.5V0h-1.5Z",mask:"url(#TV_-_Tuvalu_svg__d)"})]}),(0,h.jsx)("path",{fill:"#FFD018",fillRule:"evenodd",d:"m13.428 5.342.304-.562.666-.02-.516-.43.178-.582-.444.267-.562-.34.054.645-.504.302.654.082.17.638Zm-1.696.438-.304.562-.17-.638-.654-.082.504-.302-.054-.646.562.34.444-.266-.178.581.516.43-.666.02Zm-1.304 1.562.304-.562.666-.02-.516-.43.178-.582-.444.267-.562-.34.054.645-.504.302.654.082.17.638Zm-2 2 .304-.562.666-.02-.516-.43.178-.582-.444.267-.562-.34.054.645-.504.302.654.082.17.638Zm-1.94 1.526-.551.326.183-.635-.518-.407h.587l.286-.581.306.581H7.3l-.452.407.22.635-.58-.326Zm2.244-.088-.304.562-.17-.638-.654-.082.504-.302-.054-.646.562.34.444-.266-.178.581.516.43-.666.02Zm2-1-.304.562-.17-.638-.654-.082.504-.302-.054-.646.562.34.444-.266-.178.581.516.43-.666.02Zm2-1-.304.562-.17-.638-.654-.082.504-.302-.054-.646.562.34.444-.266-.178.581.516.43-.666.02Zm.696-.438.304-.562.666-.02-.516-.43.178-.582-.444.267-.562-.34.054.645-.504.302.654.082.17.638Z",clipRule:"evenodd"})]})]})]}),Ka=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"UY_-_Uruguay_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#UY_-_Uruguay_svg__a)",children:[(0,h.jsx)("path",{fill:"#F7FCFF",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"UY_-_Uruguay_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#UY_-_Uruguay_svg__b)",children:[(0,h.jsx)("path",{fill:"#2E42A5",d:"M0 2h16v1H0zM0 4h16v1H0zM0 6h16v1H0zM0 8h16v1H0zM0 10h16v1H0z"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"M0 0h8v7H0z"}),(0,h.jsx)("path",{fill:"#FFD018",fillRule:"evenodd",stroke:"#F19900",strokeOpacity:.98,strokeWidth:.25,d:"M4.614 5.519s-.511 1.059-.96 1.276c.194-.486.265-1.477.265-1.477s-1.166.462-1.575.378c.492-.344 1.175-.98 1.175-.98s-1.51-.494-1.472-.704C2.728 4.134 3.665 4 3.665 4s-1.059-1.27-.951-1.364c.16.157 1.43.82 1.43.82s.092-1.13.365-1.511c.033.269.416 1.486.416 1.486s.77-.77 1.198-.77c-.188.232-.633 1.255-.633 1.255s1.109-.018 1.53.19c-.51.073-1.405.521-1.405.521s1.165.884 1.059 1.068a5.166 5.166 0 0 0-1.348-.408s.2 1.23.038 1.507c-.158-.41-.75-1.276-.75-1.276Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#FFD018",fillRule:"evenodd",stroke:"#F19900",strokeOpacity:.98,strokeWidth:.25,d:"M4.547 4.946a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z",clipRule:"evenodd"})]})]})]}),Wa=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,fill:"none",...e,children:[(0,h.jsx)("mask",{id:"VE_-_Venezuela_svg__a",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",d:"M0 0h16v12H0z"})}),(0,h.jsxs)("g",{mask:"url(#VE_-_Venezuela_svg__a)",children:[(0,h.jsx)("path",{fill:"#2E42A5",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("mask",{id:"VE_-_Venezuela_svg__b",width:16,height:12,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M0 0v12h16V0H0Z",clipRule:"evenodd"})}),(0,h.jsxs)("g",{mask:"url(#VE_-_Venezuela_svg__b)",children:[(0,h.jsx)("path",{fill:"#FECA00",fillRule:"evenodd",d:"M0 0v4h16V0H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#E31D1C",fillRule:"evenodd",d:"M0 8v4h16V8H0Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#F7FCFF",d:"m4.107 7.62-.911-.41C4.064 5.282 5.695 4.302 8 4.302c2.306 0 3.932.981 4.788 2.91l-.914.406C11.184 6.063 9.924 5.302 8 5.302c-1.924 0-3.192.762-3.893 2.318Z"})]})]})]}),qa=({countryCode:e,style:l,title:s,continent:i=!1})=>{if(i)return(0,h.jsx)("span",{title:s,children:e});const t=a[e];return t?(0,h.jsx)("span",{title:s,children:(0,h.jsx)(t,{style:l})}):(0,h.jsx)("span",{title:s,children:e})},Ya=e=>{const[l,s]=(0,v.useState)(""),[a,i]=(0,v.useState)(!1),{maskError:d,setMaskError:n}=ae();return(0,h.jsxs)(h.Fragment,{children:[e.label&&(0,h.jsx)("label",{htmlFor:e.id,className:"rsssl-label",children:e.label}),(0,h.jsx)("br",{}),(0,h.jsx)("div",{className:"input-container",children:(0,h.jsx)("input",{type:"text",id:e.id,name:e.name,value:e.value,className:"rsssl-input full "+(d?"rsssl-error":"rsssl-success"),onChange:e.onChange})}),d&&(0,h.jsx)("span",{style:{color:"red",marginLeft:"10px"},children:(0,t.__)("Invalid ip address","really-simple-ssl")})]})},Ja=e=>{const{inputRangeValidated:l,fetchCidrData:s,ipAddress:a,setIpAddress:d,maskError:c,dataLoaded:r,updateRow:o,resetRange:m}=ae(),[u,p]=(0,v.useState)(!1),{fetchDynamicData:_}=ie(),{showSavedSettingsNotice:f}=(0,n.A)();return(0,v.useEffect)((()=>{l&&s("get_mask_from_range")}),[l]),e.isOpen?(0,h.jsx)(i.Modal,{title:(0,t.__)("Add IP Address","really-simple-ssl"),shouldCloseOnClickOutside:!0,shouldCloseOnEsc:!0,overlayClassName:"rsssl-modal-overlay",className:"rsssl-modal",onRequestClose:e.onRequestClose,children:(0,h.jsxs)("div",{className:"modal-content",children:[(0,h.jsx)("div",{className:"modal-body",style:{padding:"1em"},children:(0,h.jsx)("div",{style:{width:"95%",height:"100%",padding:"10px"},children:(0,h.jsx)("div",{children:(0,h.jsx)(Ya,{label:(0,t.__)("IP Address","really-simple-ssl"),id:"ip-address",name:"ip-address",showSwitch:!0,value:a,onChange:e=>d(e.target.value)})})})}),(0,h.jsx)("div",{className:"modal-footer",children:(0,h.jsxs)("div",{className:"rsssl-grid-item-footer",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",padding:"1em"},children:[(0,h.jsx)(i.Button,{isSecondary:!0,onClick:function(){p(!1),m(),e.onRequestClose()},style:{marginRight:"10px"},children:(0,t.__)("Cancel","really-simple-ssl")}),(0,h.jsx)(i.Button,{isPrimary:!0,onClick:async function(){let l=e.status;a&&!1===c&&(await o(a,l,e.dataActions).then((e=>{e.success?f(e.message):f(e.message,"error")})),m(),e.onRequestClose(),_("event_log"))},children:(0,t.__)("Add","really-simple-ssl")})]})})]})}):null},$a=({handleSearch:e,searchableColumns:l})=>{const[s,a]=(0,v.useState)(null);return(0,h.jsx)("div",{className:"rsssl-search-bar",children:(0,h.jsxs)("div",{className:"rsssl-search-bar__inner",children:[(0,h.jsx)("div",{className:"rsssl-search-bar__icon"}),(0,h.jsx)("input",{type:"text",className:"rsssl-search-bar__input",placeholder:(0,t.__)("Search","really-simple-ssl"),onKeyUp:i=>{clearTimeout(s),a(setTimeout((()=>{e(i.target.value,l)}),500))}})]})})},Qa=({getCurrentFilter:e,moduleName:l,handleOpen:s,processing:a,blockedText:i,allowedText:t})=>{let d="blocked"===e(l)?i:t;return(0,h.jsx)("div",{className:"rsssl-add-button",children:("blocked"===e(l)||"allowed"===e(l))&&(0,h.jsx)("div",{className:"rsssl-add-button__inner",children:(0,h.jsx)("button",{className:"button button-secondary button-datatable rsssl-add-button__button",onClick:s,disabled:a,children:d})})})},Xa=e=>{const{IpDataTable:l,dataLoaded:s,dataActions:a,handleIpTableRowsChange:i,fetchData:d,handleIpTableSort:c,handleIpTablePageChange:r,handleIpTableSearch:o,handleIpTableFilter:m,ipAddress:u,updateRow:p,pagination:_,resetRow:f,resetMultiRow:g,setStatusSelected:x,rowCleared:Z,processing:j}=ae(),{fetchDynamicData:y}=ie(),{setSelectedFilter:w,getCurrentFilter:k,setProcessingFilter:R}=(0,te.A)(),[M,b]=(0,v.useState)(!1),[F,C]=(0,v.useState)([]),{fieldAlreadyEnabled:H,getFieldValue:V}=(0,n.A)(),{showSavedSettingsNotice:S}=(0,n.A)(),[A,U]=(0,v.useState)(600),E="rsssl-group-filter-limit_login_attempts_ip_address",T=(0,v.useCallback)((e=>({name:e.name,sortable:e.sortable,searchable:e.searchable,width:e.width,visible:e.visible,column:e.column,selector:l=>l[e.column]})),[]);let L=e.field;const D=L.columns.map(T);(0,v.useEffect)((()=>{const e=k(E);e||w("locked",E),R(j),m("status",e)}),[E,m,k(E),w,l,j]),(0,v.useEffect)((()=>{C([])}),[l]),(0,v.useEffect)((()=>{a&&d(L.action,a)}),[a.sortDirection,a.filterValue,a.search,a.page,a.currentRowsPerPage,H("enable_limited_login_attempts")]),(0,ee.createTheme)("really-simple-plugins",{divider:{default:"transparent"}},"light");let N=V("enable_limited_login_attempts"),O=[];D.map((e=>{e.searchable&&O.push(e.column)}));let B=e.field.options;B=Object.entries(B).map((e=>({label:e[1],value:e[0]})));let z=Object.values({...l.data});const P=(0,v.useCallback)((async e=>{if(Array.isArray(e)){const l=e.map((e=>e.id));await g(l,a).then((e=>{e&&e.success,S(e.message)})),C([])}else await f(e,a).then((e=>{e&&e.success,S(e.message)}));await y("event_log")}),[g,f,y,a]),I=({onClick:e,children:l,className:s})=>(0,h.jsx)("div",{className:"rsssl-action-buttons__inner",children:(0,h.jsx)("button",{className:`button ${s} rsssl-action-buttons__button`,onClick:e,disabled:j,children:l})});function G(e){return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{className:"rsssl-action-buttons",children:(0,h.jsx)(I,{className:"button-red",onClick:()=>{P(e)},children:(0,t.__)("Delete","really-simple-ssl")})})})}for(const e in z){let l={...z[e]};l.action=G(l.id),l.status=(0,t.__)(l.status=l.status.charAt(0).toUpperCase()+l.status.slice(1),"really-simple-ssl"),z[e]=l}let K;return K=void 0!==_,(0,v.useEffect)((()=>{0===Object.keys(z).length?U(100):U(50*(K?_.perPage+2:12))}),[K,_?.perPage,z]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Ja,{isOpen:M,onRequestClose:()=>{b(!1)},options:B,value:u,status:k(E),dataActions:a}),(0,h.jsxs)("div",{className:"rsssl-container",children:[(0,h.jsx)(Qa,{getCurrentFilter:k,moduleName:E,handleOpen:()=>{b(!0)},processing:j,blockedText:(0,t.__)("Block IP Address","really-simple-ssl"),allowedText:(0,t.__)("Trust IP Address","really-simple-ssl")}),(0,h.jsx)($a,{handleSearch:o,searchableColumns:O})]}),F.length>0&&(0,h.jsx)("div",{style:{marginTop:"1em",marginBottom:"1em"},children:(0,h.jsxs)("div",{className:"rsssl-multiselect-datatable-form rsssl-primary",children:[(0,h.jsx)("div",{children:(0,t.__)("You have selected %s rows","really-simple-ssl").replace("%s",F.length)}),(0,h.jsx)("div",{className:"rsssl-action-buttons",children:(0,h.jsx)(I,{className:"button-red",onClick:()=>{P(F)},children:(0,t.__)("Delete","really-simple-ssl")})})]})}),(0,h.jsx)(ee.default,{columns:D,data:j?[]:z,dense:!0,paginationServer:!0,paginationTotalRows:K?_.totalRows:10,paginationPerPage:K?_.perPage:10,paginationDefaultPage:K?_.currentPage:1,paginationComponentOptions:{rowsPerPageText:(0,t.__)("Rows per page:","really-simple-ssl"),rangeSeparatorText:(0,t.__)("of","really-simple-ssl"),noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:(0,t.__)("All","really-simple-ssl")},loading:s,pagination:!j,onChangeRowsPerPage:i,onChangePage:r,sortServer:!j,onSort:c,paginationRowsPerPageOptions:[10,25,50,100],noDataComponent:(0,t.__)("No results","really-simple-ssl"),persistTableHead:!0,selectableRows:!j,onSelectedRowsChange:function(e){C(e.selectedRows)},clearSelectedRows:Z,theme:"really-simple-plugins",customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}}}),!N&&(0,h.jsx)("div",{className:"rsssl-locked",children:(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,h.jsx)("span",{className:"rsssl-task-status rsssl-open",children:(0,t.__)("Disabled","really-simple-ssl")}),(0,h.jsx)("span",{children:(0,t.__)("Activate Limit login attempts to enable this block.","really-simple-ssl")})]})})]})};var ei=s(1607);const li=(0,E.vt)(((e,l)=>({roles:[],rolesLoaded:!1,fetchRoles:async l=>{try{const s=await g.Eo("get_roles",{id:l});if(!s)return void console.error("No response received from the server.");const a=s.roles;if("object"!=typeof a)return void console.error("Invalid data received in the server response. Expected an object.");const i=Object.values(a).map(((e,l)=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1)})));e({roles:i,rolesLoaded:!0})}catch(e){console.error("Error:",e)}}}))),si=({field:e,forcedRoledId:l,optionalRolesId:s})=>{const{fetchRoles:a,roles:i,rolesLoaded:d}=li(),[c,r]=(0,v.useState)([]),[o,m]=(0,v.useState)([]),{updateField:u,getFieldValue:p,setChangedField:_,getField:f,fieldsLoaded:g,showSavedSettingsNotice:x,saveField:Z}=(0,n.A)(),j=(0,v.useRef)(null),y=!p("login_protection_enabled")&&!p("enable_passkey_login");(0,v.useEffect)((()=>{d||a(e.id)}),[d]),(0,v.useEffect)((()=>{if(e.id===l){let e=f(s),l=Array.isArray(e.value)?e.value:[];m(l)}else{let e=f(l),s=Array.isArray(e.value)?e.value:[];m(s)}}),[c,f(s),f(l)]),(0,v.useEffect)((()=>{const l=Array.isArray(e.value)?e.value:e.default||[];e.value&&Array.isArray(e.value)||(_(e.id,l),u(e.id,l)),r(l.map(((e,l)=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1)}))))}),[g]);const w={multiValue:a=>({...a,borderRadius:"10px",backgroundColor:e.id===l?"#F5CD54":e.id===s?"#FDF5DC":"default"}),multiValueRemove:(e,l)=>({...e,color:l.isHovered?"initial":e.color,opacity:"0.7",":hover":{backgroundColor:"initial",color:"initial",opacity:"1"}})},k=c.map((e=>e.value));let R=[],M=[...k,...o];return i.forEach((function(e,l){Array.isArray(M)&&M.includes(e.value)?R.splice(l,1):R.push(e)})),(0,h.jsx)("div",{style:{marginTop:"5px"},ref:j,children:(0,h.jsx)(ei.Ay,{isMulti:!0,options:R,onChange:l=>{const s=l.map((e=>e.value));let a=Array.isArray(p("two_fa_enabled_roles_email"))?p("two_fa_enabled_roles_email"):[],i=Array.isArray(p("two_fa_enabled_roles_totp"))?p("two_fa_enabled_roles_totp"):[],d=p("enable_passkey_login"),n=a.concat(i);0===n.filter((e=>l.map((e=>e.value)).includes(e))).length&&l.length>0&&"1"!=d?x((0,t.__)("You have enforced 2FA, but not configured any methods.","really-simple-ssl"),"error"):l.forEach((e=>{n.includes(e.value)||"1"==d||x((0,t.__)("You have enforced 2FA, but not configured any methods for the role: ","really-simple-ssl")+e.label,"error")})),r(l),u(e.id,s),_(e.id,s)},value:c,menuPosition:"fixed",styles:w,isDisabled:y})})},ai=e=>{const{addHelpNotice:l}=(0,n.A)(),[s,a]=(0,v.useState)(!1),{fields:i}=(0,n.A)();let t=!!e.field.disabled;return(0,h.jsxs)(h.Fragment,{children:[e.field.url&&(0,h.jsx)(f.A,{className:"button button-default",disabled:t,text:e.field.button_text,url:e.field.url}),e.field.action&&(0,h.jsxs)("button",{onClick:()=>(async s=>{let t={};a(!0),t.fields=i,await g.Eo(s,t).then((s=>{let i=s.success?"success":"warning",t=s.title,d=s.message;a(!1),l(e.field.id,i,d,t,!1)}))})(e.field.action),className:"button button-default",disabled:t,children:[e.field.button_text,s&&(0,h.jsx)(V.default,{name:"loading",color:"grey"})]})]})};var ii=s(5415),ti=s(1455),di=s.n(ti),ni=s(4647),hi=s(5063),ci=s(2389);const ri=(0,s(2611).A)((()=>({autoComplete:{fontSize:"12px"}}))),oi=({field:e,disabled:l,value:s,options:a,label:i,onChange:t})=>{let d=!Array.isArray(l)&&l;const n=ri();return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(hi.A,{classes:{input:n.autoComplete,option:n.autoComplete},disabled:d,disablePortal:!0,value:s,id:e.id,options:a,isOptionEqualToValue:(e,l)=>("string"==typeof e.value?e.value.toLowerCase():e.value)===("string"==typeof l.value?l.value.toLowerCase():l.value),getOptionLabel:e=>{if(e&&e.label)return e.label;const l=a.find((l=>l.value===e));return l?l.label:e},onChange:(e,l)=>{let s=l&&l.value?l.value:"";t(s)},renderInput:e=>(0,h.jsx)(ci.A,{...e,label:i,margin:"normal",variant:"outlined",fullWidth:!0})})})},vi=({field:e})=>{const[l,s]=(0,D.useState)([]),[a,i]=(0,D.useState)(""),{updateField:d,setChangedField:c}=(0,n.A)();return(0,D.useEffect)((()=>{di()({path:"/wp/v2/pages?per_page=100"}).then((e=>{const l=e.map((e=>({label:e.title.rendered,value:e.id})));s([{label:"404 (default)",value:"404_default"},...l])}))}),[]),(0,D.useEffect)((()=>{"404_default"!==e.value?di()({path:`wp/v2/pages/${e.value}`}).then((l=>{l.title?i({label:l.title.rendered,value:e.value}):i({label:"404 (default)",value:"404_default"})})):i({label:"404 (default)",value:"404_default"})}),[e.value]),(0,h.jsx)(ii.A,{theme:ni.A,children:(0,h.jsxs)("div",{children:[(0,h.jsx)("label",{htmlFor:"rsssl-filter-post-input",children:(0,t.__)("Redirect to this post when someone tries to access /wp-admin or /wp-login.php. The default is a 404 page.","really-simple-ssl")}),(0,h.jsx)(oi,{className:"rsssl-select",field:e,label:(0,t.__)("Search for a post.","really-simple-ssl"),value:a,options:l,onChange:l=>{const s=l||"404_default";d(e.id,s),c(e.id,s)},disabled:!1})]})})},mi=e=>{const{fetchVulnerabilities:l,riskLevels:s}=(0,Q.A)(),[a,i]=(0,v.useState)(!0),[d,c]=(0,v.useState)(!0),[r,o]=(0,v.useState)(!1),[m,p]=(0,v.useState)(!1),{addHelpNotice:_,fields:f,getFieldValue:x,updateField:Z,setChangedField:j,fieldAlreadyEnabled:y,fetchFieldsData:w,updateFieldAttribute:k}=(0,n.A)();let R=e.disabled,M=e.field.disabled||R;const b=(0,v.useRef)(null);let F="";a&&e.field.hasOwnProperty("disabledTooltipText")&&![void 0,null,""].includes(e.field.disabledTooltipHoverText)&&(F=e.field.disabledTooltipHoverText),u(b,M&&""!==F,F),(0,v.useEffect)((()=>{let e=1==x("send_notifications_email"),l=rsssl_settings.email_verified,s=y("enable_vulnerability_scanner");c(e),i(!(l&&s)),c(e),p(s),o(1==x("enable_vulnerability_scanner"))}),[f]),(0,v.useEffect)((()=>{let e=x("vulnerability_notification_dashboard");e=s.hasOwnProperty(e)?s[e]:0;let l=e>0?e-1:e,a=Array.from(Array(l).keys()).map((e=>e));if(a=a.map((e=>Object.keys(s).find((l=>s[l]===e)))),a.length>0){k("vulnerability_notification_sitewide","disabled",a);let l=x("vulnerability_notification_sitewide");if(l=s.hasOwnProperty(l)?s[l]:0,l<e){let l=Object.keys(s).find((l=>s[l]===e));Z("vulnerability_notification_sitewide",l),j("vulnerability_notification_sitewide",l)}}else k("vulnerability_notification_sitewide","disabled",!1)}),[x("vulnerability_notification_dashboard")]);let C={...e.field};return d?r&&!m&&(C.tooltip=(0,t.__)("The notification test only works if you save the setting first.","really-simple-ssl"),C.warning=!0):(C.tooltip=(0,t.__)("You have not enabled the email notifications in the general settings.","really-simple-ssl"),C.warning=!0),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("label",{children:e.labelWrap(C)}),(0,h.jsx)("button",{ref:b,onClick:()=>(async()=>{i(!0),g.Eo("vulnerabilities_test_notification").then((()=>{i(!1),w("vulnerabilities"),l(),_(e.field.id,"success",(0,t.__)("All notifications are triggered successfully, please check your email to double-check if you can receive emails.","really-simple-ssl"),(0,t.__)("Test notifications","really-simple-ssl"),!1)}))})(),disabled:a,className:"button button-default",children:e.field.button_text})]})};var ui=s(1307);const pi=(0,E.vt)(((e,l)=>({processing:!1,dataLoaded:!1,pagination:{},dataActions:{},UserDataTable:[],rowCleared:!1,fetchData:async(s,a)=>{if(e({processing:!0}),e({dataLoaded:!1}),e({rowCleared:!0}),0===Object.keys(a).length&&l().dataActions,l().processing&&0!==Object.keys(a).length){e({UserDataTable:[]});try{const l=await g.Eo(s,a);l&&l.request_success&&e({UserDataTable:l,dataLoaded:!0,processing:!1,pagination:l.pagination}),e({rowCleared:!0})}catch(e){console.log(e)}finally{e({processing:!1}),e({rowCleared:!1})}}},handleUserTableSearch:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,search:l,searchColumns:s}})))},handleUserTablePageChange:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,page:l,pageSize:s}})))},handleUserTableRowsChange:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,currentRowsPerPage:l,currentPage:s}})))},handleUserTableSort:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,sortColumn:l,sortDirection:s}})))},handleUserTableFilter:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,filterColumn:l,filterValue:s}})))},updateRow:async(s,a,i)=>{e({processing:!0});let t={value:s,status:a};try{const e=await g.Eo("user_update_row",t);return e&&e.request_success?(await l().fetchData("rsssl_limit_login_user",i),{success:!0,message:e.message,response:e}):{success:!1,message:e?.message||"Failed to add user",response:e}}catch(e){return{success:!1,message:"Error occurred",error:e}}finally{e({processing:!1})}},resetRow:async(s,a)=>{e({processing:!0});try{const e=await g.Eo("delete_entries",{id:s});return e&&e.success?(await l().fetchData("rsssl_limit_login_user",a),{success:!0,message:e.message,response:e}):{success:!1,message:e?.message||"Failed to reset user",response:e}}catch(e){return console.error(e),{success:!1,message:"Error occurred",error:e}}finally{e({processing:!1})}},resetMultiRow:async(s,a)=>{e({processing:!0});try{const e=await g.Eo("delete_entries",{ids:s});if(console.error(e),e&&e.success)return e.success?(await l().fetchUserData("rsssl_limit_login_user",a),{success:!0,message:e.message,response:e}):{success:!1,message:e?.message||"Failed to reset user",response:e}}catch(e){return console.error(e),{success:!1,message:"Error occurred",error:e}}finally{e({processing:!1})}}}))),_i=e=>{if(!e.isOpen)return null;const{updateRow:l}=pi(),{fetchDynamicData:s}=ie(),[a,d]=(0,v.useState)(""),{showSavedSettingsNotice:c}=(0,n.A)();return(0,h.jsx)(i.Modal,{title:(0,t.__)("Add User","really-simple-ssl"),shouldCloseOnClickOutside:!0,shouldCloseOnEsc:!0,overlayClassName:"rsssl-modal-overlay",className:"rsssl-modal",onRequestClose:e.onRequestClose,children:(0,h.jsxs)("div",{className:"modal-content",children:[(0,h.jsx)("div",{className:"modal-body",style:{padding:"1em"},children:(0,h.jsx)("div",{style:{width:"95%",height:"100%",padding:"10px"},children:(0,h.jsxs)("p",{children:[(0,h.jsx)("label",{htmlFor:"username",className:"rsssl-label",children:(0,t.__)("Username","really-simple-ssl")}),(0,h.jsx)("input",{type:"text",className:"rsssl-input full",id:"username",name:"username",onChange:e=>d(e.target.value)})]})})}),(0,h.jsx)("div",{className:"modal-footer",children:(0,h.jsxs)("div",{className:"rsssl-grid-item-footer",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",padding:"1em"},children:[(0,h.jsx)(i.Button,{isSecondary:!0,onClick:e.onRequestClose,style:{marginRight:"10px"},children:(0,t.__)("Cancel","really-simple-ssl")}),(0,h.jsx)(i.Button,{isPrimary:!0,onClick:async function(){let i=e.status;""!==a&&(await l(a,i,e.dataActions).then((e=>{e.success?c(e.message):c(e.message,"error")})),d(""),await s("event_log")),e.onRequestClose()},children:(0,t.__)("Add","really-simple-ssl")})]})})]})})},fi=e=>{let{UserDataTable:l,dataLoaded:s,fetchData:a,processing:i,handleUserTableFilter:d,handleUserTablePageChange:c,pagination:r,resetRow:o,resetMultiRow:m,dataActions:u,handleUserTableRowsChange:p,handleUserTableSort:_,handleUserTableSearch:f,updateMultiRow:g,updateRow:x,rowCleared:Z}=pi();const{showSavedSettingsNotice:j}=(0,n.A)(),{fetchDynamicData:y}=ie(),{selectedFilter:w,setSelectedFilter:k,activeGroupId:R,getCurrentFilter:M,setProcessingFilter:b}=(0,te.A)(),[F,C]=(0,v.useState)([]),[H,V]=(0,v.useState)(!1),[S,A]=(0,v.useState)(""),[U,E]=(0,v.useState)(600),T="rsssl-group-filter-limit_login_attempts_users",{fields:L,fieldAlreadyEnabled:D,getFieldValue:N,saveFields:O}=(0,n.A)(),B=(0,v.useCallback)((e=>({name:e.name,sortable:e.sortable,searchable:e.searchable,width:e.width,visible:e.visible,column:e.column,selector:l=>l[e.column]})),[]);let z=e.field;const P=z.columns.map(B),I=P.filter((e=>e.searchable)).map((e=>e.column));(0,v.useEffect)((()=>{const e=M(T);e||k("locked",T),b(i),d("status",e)}),[T,d,M(T),k,fi,i]),(0,v.useEffect)((()=>{C([])}),[l]),(0,v.useEffect)((()=>{u&&a(z.action,u)}),[u.sortDirection,u.filterValue,u.search,u.page,u.currentRowsPerPage,D("enable_limited_login_attempts")]);let G=N("enable_limited_login_attempts");(0,ee.createTheme)("really-simple-plugins",{divider:{default:"transparent"}},"light");let K=e.field.options;K=Object.entries(K).map((e=>({label:e[1],value:e[0]})));const W=(0,v.useCallback)((async e=>{if(Array.isArray(e)){const l=e.map((e=>e.id));await m(l,u).then((e=>{e&&e.success?j(e.message):j(e.message,"error")})),C([])}else await o(e,u).then((e=>{e&&e.success,j(e.message)}));await y("event_log")}),[m,o,y,u]),q=(0,v.useCallback)((e=>{C(e.selectedRows)}),[]),Y=({onClick:e,children:l,className:s})=>(0,h.jsx)("div",{className:"rsssl-action-buttons__inner",children:(0,h.jsx)("button",{className:`button ${s} rsssl-action-buttons__button`,onClick:e,disabled:i,children:l})}),J=(0,v.useCallback)(((e,l,s)=>(0,h.jsx)("div",{className:"rsssl-action-buttons",children:(0,h.jsx)(Y,{onClick:()=>{W(e)},className:"button-red",children:(0,t.__)("Delete","really-simple-ssl")})})),[M(T),T,W]);let $,Q={...l.data};for(const e in Q){let l={...Q[e]};l.action=J(l.id),l.status=(0,t.__)(l.status=l.status.charAt(0).toUpperCase()+l.status.slice(1),"really-simple-ssl"),Q[e]=l}return $=void 0!==r,(0,v.useEffect)((()=>{0===Object.keys(Q).length?E(100):E(50*($?r.perPage+2:12))}),[$,r?.perPage,Q]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(_i,{isOpen:H,onRequestClose:()=>{V(!1)},options:K,value:S,status:M(T),dataActions:u}),(0,h.jsxs)("div",{className:"rsssl-container",children:[(0,h.jsx)(Qa,{getCurrentFilter:M,moduleName:T,handleOpen:()=>{V(!0)},processing:i,blockedText:(0,t.__)("Block Username","really-simple-ssl"),allowedText:(0,t.__)("Trust Username","really-simple-ssl")}),(0,h.jsx)($a,{handleSearch:f,searchableColumns:I})]}),F.length>0&&(0,h.jsx)("div",{style:{marginTop:"1em",marginBottom:"1em"},children:(0,h.jsxs)("div",{className:"rsssl-multiselect-datatable-form rsssl-primary",children:[(0,h.jsx)("div",{children:(0,t.__)("You have selected %s rows","really-simple-ssl").replace("%s",F.length)}),(0,h.jsx)("div",{className:"rsssl-action-buttons",children:(0,h.jsx)(Y,{className:"button button-red rsssl-action-buttons__button",onClick:()=>{W(F)},children:(0,t.__)("Delete","really-simple-ssl")})})]})}),(0,h.jsx)(ee.default,{columns:P,data:i&&!s?[]:Object.values(Q),dense:!0,pagination:!i,paginationServer:!0,paginationTotalRows:$?r.totalRows:10,onChangeRowsPerPage:p,onChangePage:c,sortServer:!i,onSort:_,paginationRowsPerPageOptions:[10,25,50,100],selectableRows:!i,onSelectedRowsChange:q,clearSelectedRows:Z,noDataComponent:(0,t.__)("No results","really-simple-ssl"),persistTableHead:!0,theme:"really-simple-plugins",customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}}}),!G&&(0,h.jsx)("div",{className:"rsssl-locked",children:(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,h.jsx)("span",{className:"rsssl-task-status rsssl-open",children:(0,t.__)("Disabled","really-simple-ssl")}),(0,h.jsx)("span",{children:(0,t.__)("Activate Limit login attempts to enable this block.","really-simple-ssl")})]})})]})},gi=fi,xi=(0,E.vt)(((e,l)=>({processing:!1,dataLoaded:!1,pagination:{},dataActions:{page:1,pageSize:10,sortColumn:"country_name",sortDirection:"asc",filterColumn:"",filterValue:"",search:"",searchColumns:["country_name"]},CountryDataTable:[],rowCleared:!1,setDataActions:async l=>{e((0,le.jM)((e=>{e.dataActions=l})))},fetchData:async(l,s)=>{if(e({processing:!0}),e({dataLoaded:!1}),e({rowCleared:!0}),0!==Object.keys(s).length)try{const a=await g.Eo(l,s);a&&a.request_success&&e({CountryDataTable:a,dataLoaded:!0,processing:!1,pagination:a.pagination}),e({rowCleared:!0})}catch(e){console.log(e)}finally{e({processing:!1}),e({rowCleared:!1})}},handleCountryTableSearch:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,search:l,searchColumns:s}})))},handleCountryTablePageChange:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,page:l,pageSize:s}})))},handleCountryTableRowsChange:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,currentRowsPerPage:l,currentPage:s}})))},handleCountryTableSort:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,sortColumn:l,sortDirection:s}})))},handleCountryTableFilter:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,filterColumn:l,filterValue:s}})))},updateRow:async(s,a,i)=>{e({processing:!0});let t={value:s,status:a};try{const e=await g.Eo("country_update_row",t);return e&&e.request_success?(await l().fetchData("rsssl_limit_login_country",i),{success:!0,message:e.message,response:e}):{success:!1,message:e?.message||"Failed to add country",response:e}}catch(e){return console.log(e),{success:!1,message:"Error occurred",error:e}}finally{e({processing:!1})}},updateRowRegion:async(s,a,i)=>{e({processing:!0});let t={value:s,status:a};try{const e=await g.Eo("region_update_row",t);return e&&e.request_success?(await l().fetchData("rsssl_limit_login_country",i),{success:!0,message:e.message,response:e}):{success:!1,message:e?.message||"Failed to add region",response:e}}catch(e){return console.log(e),{success:!1,message:"Error occurred",error:e}}finally{e({processing:!1})}},resetRegions:async(s,a)=>{e({processing:!0});try{const e=await g.Eo("delete_entries_regions",{value:s});return e&&e.success?(await l().fetchData("rsssl_limit_login_country",a),{success:!0,message:e.message,response:e}):{success:!1,message:e?.message||"Failed to reset region",response:e}}catch(e){return console.error(e),{success:!1,message:"Error occurred",error:e}}finally{e({processing:!1})}},resetRow:async(s,a)=>{e({processing:!0});try{const e=await g.Eo("delete_entries",{id:s});return e&&e.success?(await l().fetchData("rsssl_limit_login_country",a),{success:!0,message:e.message,response:e}):{success:!1,message:e?.message||"Failed to reset country",response:e}}catch(e){return console.error(e),{success:!1,message:"Error occurred",error:e}}finally{e({processing:!1})}},resetMultiRow:async(s,a)=>{e({processing:!0});try{const e=await g.Eo("delete_entries",{ids:s});return e&&e.success?(await l().fetchData("rsssl_limit_login_country",a),{success:!0,message:e.message,response:e}):{success:!1,message:e?.message||"Failed to reset country",response:e}}catch(e){return console.error(e),{success:!1,message:"Error occurred",error:e}}finally{e({processing:!1})}}}))),Zi=e=>{const{fieldAlreadyEnabled:l,getFieldValue:s,getField:a,showSavedSettingsNotice:i,saveFields:d,setHighLightField:c}=(0,n.A)(),{CountryDataTable:r,dataLoaded:o,fetchData:m,processing:u,handleCountryTableFilter:p,updateRow:_,pagination:f,handleCountryTablePageChange:g,handleCountryTableRowsChange:x,handleCountryTableSort:j,handleCountryTableSearch:y,addRegion:w,resetRegions:k,addRowMultiple:R,resetRow:M,resetMultiRow:b,updateRowRegion:F,dataActions:C,rowCleared:H,setDataActions:V}=xi(),{setSelectedSubMenuItem:S}=(0,Z.A)(),{fetchDynamicData:A}=ie(),{setSelectedFilter:U,getCurrentFilter:E,setProcessingFilter:T}=(0,te.A)(),[L,D]=(0,v.useState)([]),N="rsssl-group-filter-limit_login_attempts_country",[O,B]=(0,v.useState)(600);(0,v.useEffect)((()=>{const e=document.getElementById("set_to_captcha_configuration"),l=async l=>{l.preventDefault(),e&&await z(e)};return e&&e.addEventListener("click",l),()=>{e&&e.removeEventListener("click",l)}}),[]);const z=async e=>{let l={...a("enabled_captcha_provider"),highlight_field_id:"enabled_captcha_provider"};c(l.highlight_field_id);let s=a(l.highlight_field_id);await S(s.menu_id)},P=(0,v.useCallback)((e=>({omit:"regions"===E(N)&&"status"===e.column,name:e.name,sortable:e.sortable,searchable:e.searchable,width:e.width,visible:e.visible,column:e.column,selector:l=>l[e.column]})),[]);let I=e.field;const G=I.columns.map(P),K=G.filter((e=>e.searchable)).map((e=>e.column));(0,v.useEffect)((()=>{const e=E(N);e||U("blocked",N),T(u),p("status",e)}),[N,p,E(N),U,Zi,u]),(0,v.useEffect)((()=>{if("status"===C.filterColumn){const{search:e,searchColumns:l,...s}=C;V(s)}}),[C.filterColumn]),(0,v.useEffect)((()=>{D([])}),[r]),(0,v.useEffect)((()=>{C&&m(I.action,C)}),[C.sortDirection,C.filterValue,C.search,C.page,C.currentRowsPerPage,l("enable_limited_login_attempts")]);let W=s("enable_limited_login_attempts");(0,v.useEffect)((()=>()=>{d(!1,!1)}),[W]),(0,ee.createTheme)("really-simple-plugins",{divider:{default:"transparent"}},"light");const q=(0,v.useCallback)((e=>{D(e.selectedRows)}),[]),Y=(0,v.useCallback)((async(e,l="")=>{if(Array.isArray(e)){e.map((e=>e.id));const l=e.map((e=>e.iso2_code));let s=!0;l.forEach((e=>{k(e,C).then((e=>{e.success||(i(e.message,"error"),s=!1)}))})),s&&i((0,t.__)("Selected regions are now allowed","really-simple-ssl")),D([])}else await k(e,C),i((0,t.__)("%s is now allowed","really-simple-ssl").replace("%s",l));await A("event_log")}),[k,E(N),C]),J=(0,v.useCallback)((e=>{const l=e.map((e=>e.id));b(l,C).then((e=>{e&&e.success?i(e.message):i(e.message,"error")}))}),[b,E(N),C]),$=(0,v.useCallback)((e=>{M(e,C).then((e=>{e.success&&i(e.message)}))}),[M,E(N),C]),Q=(0,v.useCallback)((async(e,l="")=>{if(Array.isArray(e)){e.map((e=>e.id));const l=e.map((e=>e.iso2_code));await F(l,"blocked",C).then((e=>{e.success?i(e.message):i(e.message,"error")}))}else F(e,"blocked",C).then((e=>{e.success?i(e.message):i(e.message,"error")}));await A("event_log")}),[w,E(N),C]),X=(0,v.useCallback)((async e=>{if(Array.isArray(e)){const l=e.map((e=>e.iso2_code));await _(l,"blocked",C).then((e=>{e.success?i(e.message):i(e.message,"error")})),D([])}else await _(e,"blocked",C).then((e=>{e.success?i(e.message):i(e.message,"error")}));await A("event_log")}),[_,R,C,E(N)]),le={...r.data},se=(0,v.useCallback)(((e,l)=>(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(qa,{countryCode:e,style:{fontSize:"2em"},title:l,continent:"regions"===E(N)})})),[]),ae=({onClick:e,children:l,className:s})=>(0,h.jsx)("button",{className:`button ${s} rsssl-action-buttons__button`,onClick:e,disabled:u,children:l}),de=(0,v.useCallback)(((e,l,s,a)=>(0,h.jsxs)("div",{className:"rsssl-action-buttons",children:["blocked"===E(N)&&(0,h.jsx)(ae,{onClick:()=>$(e),className:"button-secondary",children:(0,t.__)("Allow","really-simple-ssl")}),"regions"===E(N)&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(ae,{onClick:()=>Q(e,s),className:"button-primary",children:(0,t.__)("Block","really-simple-ssl")}),(0,h.jsx)(ae,{onClick:()=>Y(e,s),className:"button-secondary",children:(0,t.__)("Allow","really-simple-ssl")})]}),"countries"===E(N)&&(0,h.jsx)(h.Fragment,{children:"blocked"===l?(0,h.jsx)(ae,{onClick:()=>$(a),className:"button-secondary",children:(0,t.__)("Allow","really-simple-ssl")}):(0,h.jsx)(ae,{onClick:()=>X(e),className:"button-primary",children:(0,t.__)("Block","really-simple-ssl")})})]})),[E,N,$,Q,Y,X]);for(const e in le){const l={...le[e]};"regions"===E(N)||"countries"===E(N)?l.action=de(l.attempt_value,l.status,l.region,l.db_id):l.action=de(l.id),l.attempt_value=se(l.attempt_value,l.country_name),l.status=(0,t.__)(l.status=l.status.charAt(0).toUpperCase()+l.status.slice(1),"really-simple-ssl"),le[e]=l}let ne;return Object.entries(e.field.options).map((([e,l])=>({value:e,label:l}))),ne=void 0!==f,(0,v.useEffect)((()=>{0===Object.keys(le).length?B(100):B(50*(ne?f.perPage+2:12))}),[ne,f?.perPage,le]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"rsssl-container",children:[(0,h.jsx)("div",{}),(0,h.jsx)($a,{handleSearch:y,searchableColumns:K})]}),L.length>0&&(0,h.jsx)("div",{style:{marginTop:"1em",marginBottom:"1em"},children:(0,h.jsxs)("div",{className:"rsssl-multiselect-datatable-form rsssl-primary",children:[(0,h.jsx)("div",{children:(0,t.__)("You have selected %s rows","really-simple-ssl").replace("%s",L.length)}),(0,h.jsxs)("div",{className:"rsssl-action-buttons",children:["countries"===E(N)&&(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(ae,{onClick:()=>X(L),className:"button-primary",children:(0,t.__)("Block","really-simple-ssl")})}),"blocked"===E(N)&&(0,h.jsx)(ae,{onClick:()=>J(L),children:(0,t.__)("Allow","really-simple-ssl")}),"regions"===E(N)&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(ae,{onClick:()=>Q(L),className:"button-primary",children:(0,t.__)("Block","really-simple-ssl")}),(0,h.jsx)(ae,{onClick:()=>Y(L),className:"button-secondary",children:(0,t.__)("Allow","really-simple-ssl")})]})]})]})}),(0,h.jsx)(ee.default,{columns:G,data:Object.values(le),dense:!0,pagination:!u,paginationServer:!0,paginationTotalRows:ne?f.totalRows:10,paginationPerPage:ne?f.perPage:10,paginationDefaultPage:ne?f.currentPage:1,paginationComponentOptions:{rowsPerPageText:(0,t.__)("Rows per page:","really-simple-ssl"),rangeSeparatorText:(0,t.__)("of","really-simple-ssl"),noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:(0,t.__)("All","really-simple-ssl")},onChangeRowsPerPage:x,onChangePage:g,sortServer:!u,onSort:j,paginationRowsPerPageOptions:[10,25,50,100],noDataComponent:(0,t.__)("No results","really-simple-ssl"),persistTableHead:!0,selectableRows:!u,clearSelectedRows:H,onSelectedRowsChange:q,theme:"really-simple-plugins",customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}}}),!W&&(0,h.jsx)("div",{className:"rsssl-locked",children:(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,h.jsx)("span",{className:"rsssl-task-status rsssl-open",children:(0,t.__)("Disabled","really-simple-ssl")}),(0,h.jsx)("span",{children:(0,t.__)("Activate Limit login attempts to enable this block.","really-simple-ssl")})]})})]})},ji=Zi,yi=(0,E.vt)(((e,l)=>({processing:!1,processing_block:!1,dataLoaded:!1,dataLoaded_block:!1,pagination:{},dataActions:{},WhiteListTable:[],BlockListData:[],rowCleared:!1,maskError:!1,ipAddress:"",note:"",fetchWhiteListData:async l=>{e({processing:!0}),e({dataLoaded:!1}),e({rowCleared:!0});try{const s=await g.Eo(l);s&&s.request_success&&e({WhiteListTable:s,dataLoaded:!0,processing:!1,pagination:s.pagination}),e({rowCleared:!0})}catch(e){console.error(e)}finally{e({processing:!1}),e({rowCleared:!1})}},fetchData:async(l,s)=>{e({processing_block:!0}),e({rowCleared:!0});try{const a=await g.Eo(l,{filterValue:s});a&&a.request_success&&e({BlockListData:a,dataLoaded:!0,processing:!1,pagination:a.pagination}),e({rowCleared:!0})}catch(e){console.error(e)}finally{e({dataLoaded_block:!0}),e({processing_block:!1}),e({rowCleared:!1})}},resetRow:async(l,s)=>{e({processing:!0});let a={id:l};try{const e=await g.Eo("geo_block_reset_ip",a);return e&&e.request_success?{success:!0,message:e.message,response:e}:{success:!1,message:e?.message||"Failed to reset Ip",response:e}}catch(e){return console.error(e),{success:!1,message:"Error occurred",error:e}}finally{e({processing:!1})}},updateRow:async(s,a,i,t)=>{e({processing:!0});let d={ip_address:s,note:a,status:i};try{const e=await g.Eo("geo_block_add_white_list_ip",d);return e&&e.request_success?(await l().fetchWhiteListData("rsssl_geo_white_list"),{success:!0,message:e.message,response:e}):{success:!1,message:e?.message||"Failed to add Ip",response:e}}catch(e){return console.error(e),{success:!1,message:"Error occurred",error:e}}finally{e({processing:!1})}},removeRow:async(s,a)=>{e({processing:!0});let i={country_code:s};try{const e=await g.Eo("geo_block_remove_blocked_country",i);return e&&e.request_success?(await l().fetchCountryData("rsssl_geo_white_list"),await l().fetchData("rsssl_geo_block_list",{filterValue:"all"}),{success:!0,message:e.message,response:e}):{success:!1,message:e?.message||"Failed to remove country",response:e}}catch(e){return console.error(e),{success:!1,message:"Error occurred",error:e}}finally{e({processing:!1})}},setIpAddress:l=>{if(0===l.length)return;let s=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,4}|((25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9]))|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9]))$/;if(l.includes("/")){let a="",[i,t]=l.split("/");i=i.replace(/,/g,"."),t.length<=0?(s.test(i)?e({maskError:!1}):e({maskError:!0}),a=`${i}/${t}`):a=t?`${i}/${t}`:i,e({ipAddress:a})}else s.test(l)?e({maskError:!1}):e({maskError:!0}),e({ipAddress:l.replace(/,/g,".")})},setNote:l=>{e({note:l})},resetRange:()=>{e({inputRangeValidated:!1}),e({highestIP:""}),e({lowestIP:""}),e({ipAddress:""}),e({maskError:!1})},setDataLoaded:l=>{e({dataLoaded:l}),e({dataLoaded_block:l})}}))),wi=e=>{const{note:l,setNote:s,ipAddress:a,setIpAddress:d,maskError:c,setDataLoaded:r,dataLoaded:o,updateRow:m,resetRange:u}=yi(),[p,_]=(0,v.useState)(!1),{showSavedSettingsNotice:f}=(0,n.A)();return e.isOpen?(0,h.jsx)(i.Modal,{title:(0,t.__)("Add IP Address","really-simple-ssl"),shouldCloseOnClickOutside:!0,shouldCloseOnEsc:!0,overlayClassName:"rsssl-modal-overlay",className:"rsssl-modal",onRequestClose:e.onRequestClose,children:(0,h.jsxs)("div",{className:"modal-content",children:[(0,h.jsx)("div",{className:"modal-body",style:{padding:"0.5em"},children:(0,h.jsxs)("div",{style:{width:"95%",height:"100%",padding:"10px"},children:[(0,h.jsxs)("div",{style:{position:"relative"},children:[(0,h.jsx)("label",{htmlFor:"ip-address",className:"rsssl-label",children:(0,t.__)("IP Address","really-simple-ssl")}),(0,h.jsx)(i.TextControl,{id:"ip-address",name:"ip-address",onChange:e=>{e.length>0?d(e):u()},value:a}),(0,h.jsx)("div",{className:"rsssl-ip-verified",children:Boolean(!c&&a.length>0)?(0,h.jsx)(V.default,{name:"circle-check",color:"green"}):(0,h.jsx)(V.default,{name:"circle-times",color:"red"})})]}),(0,h.jsxs)("div",{children:[(0,h.jsx)("label",{htmlFor:"note",className:"rsssl-label",children:(0,t.__)("Notes","really-simple-ssl")}),(0,h.jsx)("input",{name:"note",id:"note",type:"text",value:l,onChange:e=>s(e.target.value),style:{width:"100%"}})]})]})}),(0,h.jsx)("div",{className:"modal-footer",children:(0,h.jsxs)("div",{className:"rsssl-grid-item-footer",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",padding:"1em"},children:[(0,h.jsx)(i.Button,{isSecondary:!0,onClick:function(){_(!1),u(),e.onRequestClose()},style:{marginRight:"10px"},children:(0,t.__)("Cancel","really-simple-ssl")}),(0,h.jsx)(i.Button,{isPrimary:!0,onClick:async function(){a&&!1===c&&(await m(a,l,e.status,e.filter).then((e=>{e.success?(f(e.message),r(!1)):f(e.message,"error")})),u(),e.onRequestClose())},children:(0,t.__)("Add","really-simple-ssl")})]})})]})}):null},ki=e=>{const{BlockListData:l,WhiteListTable:a,setDataLoaded:i,dataLoaded:d,dataLoaded_block:c,fetchData:r,processing_block:o,ipAddress:m,pagination:u,resetRow:p,rowCleared:_}=yi(),{showSavedSettingsNotice:f,saveFields:g}=(0,n.A)(),[x,Z]=(0,v.useState)([]),[j,y]=(0,v.useState)(!1),[w,k]=(0,v.useState)(600),R="rsssl-group-filter-firewall_block_list_listing",{fields:M,fieldAlreadyEnabled:b,getFieldValue:F}=(0,n.A)(),[C,H]=(0,v.useState)(""),[V,S]=(0,v.useState)(1),[A,U]=(0,v.useState)(10),[E,T]=(0,v.useState)(null),[L,D]=(0,v.useState)(null);(0,v.useEffect)((()=>{Promise.resolve().then(s.bind(s,3757)).then((e=>{const{default:l,createTheme:s}=e;T((()=>l)),D((()=>s("really-simple-plugins",{divider:{default:"transparent"}},"light")))}))}),[]);const{getCurrentFilter:N}=(0,te.A)(),[O,B]=(0,v.useState)(N(R)),z=(0,v.useCallback)((e=>({name:e.name,sortable:e.sortable,searchable:e.searchable,width:e.width,visible:e.visible,column:e.column,selector:l=>l[e.column]})),[O]);let P=e.field;const I=P.columns.map(z);I.filter((e=>e.searchable)).map((e=>e.column)),(0,v.useEffect)((()=>{Z([])}),[l]);let G=F("enable_firewall");(0,v.useEffect)((()=>{const e=N(R);B(void 0===e?"all":e),Z([])}),[N(R)]),(0,v.useEffect)((()=>()=>{g(!1,!1)}),[G]),(0,v.useEffect)((()=>{void 0!==O&&r(P.action,O)}),[O]),(0,v.useEffect)((()=>{c||r(P.action,O)}),[c]),(0,ee.createTheme)("really-simple-plugins",{divider:{default:"transparent"}},"light");const K=(0,v.useCallback)((e=>{const{selectedCount:l,selectedRows:s,allSelected:a,allRowsSelected:i}=e;let t=[];a?(t=s.slice((V-1)*A,V*A),Z(t)):Z(s)}),[V,A]),W=(0,v.useCallback)((e=>{Array.isArray(e)?(e.map((e=>({id:e.id}))).forEach((e=>{p(e.id).then((e=>{f(e.message)}))})),Z([])):p(e).then((e=>{f(e.message)})),i(!1)}),[p]),q={...l.data},Y=(0,v.useCallback)(((e,l)=>(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(qa,{countryCode:e,style:{fontSize:"2em"},title:l})})),[]),$=({onClick:e,children:l,className:s})=>(0,h.jsx)("button",{className:`button ${s} rsssl-action-buttons__button`,onClick:e,disabled:o,children:l}),Q=(0,v.useCallback)((e=>(0,h.jsx)("div",{className:"rsssl-action-buttons",children:(0,h.jsx)($,{onClick:()=>W(e),className:"button-red",children:(0,t.__)("Reset","really-simple-ssl")})})),[R,W]);for(const e in q){const l={...q[e]};l.action=Q(l.id),l.flag=Y(l.iso2_code,l.country_name),l.status=(0,t.__)(l.status=l.status.charAt(0).toUpperCase()+l.status.slice(1),"really-simple-ssl"),q[e]=l}let X;return X=void 0!==u,(0,v.useEffect)((()=>{0===Object.keys(q).length?k(100):k(50*(X?u.perPage+2:12))}),[X,u?.perPage,q]),(0,v.useEffect)((()=>{let e=[];Object.entries(q).filter((([e,l])=>Object.values(l).some((e=>(null!=e?e:"").toString().toLowerCase().includes(C.toLowerCase()))))).map((([l,s])=>{const a={...s};if(a.action=Q(a.id),a.flag=Y(a.iso2_code,a.country_name),a.status=(0,t.__)(a.status=a.status.charAt(0).toUpperCase()+a.status.slice(1),"really-simple-ssl"),a.time_left>0){const l=setInterval((()=>{a.time_left--}),1e3);e.push(l)}return[l,a]})).reduce(((e,[l,s])=>({...e,[l]:s})),{})}),[C,q]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(wi,{isOpen:j,onRequestClose:()=>{y(!1)},value:m,status:"blocked",filter:O||"all"}),(0,h.jsxs)("div",{className:"rsssl-container",children:[(0,h.jsx)(J,{moduleName:R,handleOpen:()=>{y(!0)},processing:o,allowedText:(0,t.__)("Block IP Address","really-simple-ssl")}),(0,h.jsx)("div",{className:"rsssl-search-bar",children:(0,h.jsxs)("div",{className:"rsssl-search-bar__inner",children:[(0,h.jsx)("div",{className:"rsssl-search-bar__icon"}),(0,h.jsx)("input",{type:"text",className:"rsssl-search-bar__input",placeholder:(0,t.__)("Search","really-simple-ssl"),onChange:e=>H(e.target.value)})]})})]}),x.length>0&&(0,h.jsx)("div",{style:{marginTop:"1em",marginBottom:"1em"},children:(0,h.jsxs)("div",{className:"rsssl-multiselect-datatable-form rsssl-primary",children:[(0,h.jsx)("div",{children:(0,t.__)("You have selected %s rows","really-simple-ssl").replace("%s",x.length)}),(0,h.jsx)("div",{className:"rsssl-action-buttons",children:(0,h.jsx)(h.Fragment,{children:(0,h.jsx)($,{onClick:()=>W(x),className:"button-red",children:(0,t.__)("Reset","really-simple-ssl")})})})]})}),E&&(0,h.jsx)(E,{columns:I,data:Object.values(q).filter((e=>Object.values(e).some((e=>(null!=e?e:"").toString().toLowerCase().includes(C.toLowerCase()))))),dense:!0,pagination:!0,paginationComponentOptions:{rowsPerPageText:(0,t.__)("Rows per page:","really-simple-ssl"),rangeSeparatorText:(0,t.__)("of","really-simple-ssl"),noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:(0,t.__)("All","really-simple-ssl")},noDataComponent:(0,t.__)("No results","really-simple-ssl"),persistTableHead:!0,selectableRows:!0,clearSelectedRows:_,paginationPerPage:A,onChangePage:e=>{S(e)},onChangeRowsPerPage:e=>{U(e)},onSelectedRowsChange:K,theme:"really-simple-plugins",customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}}}),!G&&(0,h.jsx)("div",{className:"rsssl-locked",children:(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,h.jsx)("span",{className:"rsssl-task-status rsssl-open",children:(0,t.__)("Disabled","really-simple-ssl")}),(0,h.jsx)("span",{children:(0,t.__)("Here you can add IP addresses that should never be blocked by region restrictions.","really-simple-ssl")})]})})]})},Ri=()=>(0,h.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,h.jsx)("div",{style:{width:"10px",height:"10px",margin:"0 5px",backgroundColor:"#333",borderRadius:"50%",animation:"dot-blink 1.4s infinite both",animationDelay:"-0.32s"}}),(0,h.jsx)("div",{style:{width:"10px",height:"10px",margin:"0 5px",backgroundColor:"#333",borderRadius:"50%",animation:"dot-blink 1.4s infinite both",animationDelay:"-0.16s"}}),(0,h.jsx)("div",{style:{width:"10px",height:"10px",margin:"0 5px",backgroundColor:"#333",borderRadius:"50%",animation:"dot-blink 1.4s infinite both"}}),(0,h.jsx)("style",{children:"\n @keyframes dot-blink {\n 0%, 80%, 100% {\n transform: scale(0);\n }\n 40% {\n transform: scale(1);\n }\n }\n "})]}),Mi=(0,E.vt)(((e,l)=>({processing:!1,dataLoaded:!1,pagination:{},dataActions:{currentPage:1,currentRowsPerPage:5,filterValue:"all",filterColumn:"user_role"},totalRecords:0,DynamicDataTable:[],setDataLoaded:l=>e((e=>({...e,dataLoaded:l}))),hardResetUser:async s=>{if(!l().processing){e({processing:!0});try{const l=await g.Eo("two_fa_reset_user",{id:s});if(l)return e((e=>({...e,processing:!1}))),l}catch(e){console.log(e)}}},fetchDynamicData:async(s="all")=>{if(l().processing)return;e({processing:!0});let a=[],i=0;const t=1e3;let d=0,n=0;try{for(;;){const e={...l().dataActions,number:t,offset:i,negative_count:n,..."all"!==s&&{role_filter:s}},h=await g.Eo("two_fa_table",e);if(!h||!h.data)break;if(a.push(...h.data),h.totalRecords&&(d=h.totalRecords,n=h.negative_count),h.data.length<t)break;i+=t}return e((e=>({...e,DynamicDataTable:a,dataLoaded:!0,processing:!1,totalRecords:d}))),{data:a,totalRecords:d}}catch(l){console.log(l),e((e=>({...e,processing:!1,dataLoaded:!0})))}},handleTableSearch:async(s,a)=>{const i=setTimeout((async()=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,search:s,searchColumns:a}}))),await l().fetchDynamicData()}),500);return()=>{clearTimeout(i)}},handlePageChange:async(s,a)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,currentPage:s}}))),await l().fetchDynamicData()},handleRowsPerPageChange:async(s,a)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,currentRowsPerPage:s,currentPage:a}}))),await l().fetchDynamicData()},handleTableSort:(l,s)=>{e((0,le.jM)((e=>{e.dataActions.sortColumn=l.column,e.dataActions.sortDirection=s,e.DynamicDataTable.sort(((e,a)=>{const i=e[l.column],t=a[l.column];return i<t?"asc"===s?-1:1:i>t?"asc"===s?1:-1:0}))})))},handleUsersTableFilter:async(s,a)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,filterColumn:s,filterValue:a}}))),await l().fetchDynamicData()}}))),bi=e=>{const{hardResetUser:l,handleUsersTableFilter:s,DynamicDataTable:a,setDataLoaded:i,dataLoaded:d,fetchDynamicData:c,handleTableSort:r,processing:o}=Mi(),{roles:m,fetchRoles:u}=li(),{setSelectedFilter:p,getCurrentFilter:_}=(0,te.A)(),f="rsssl-group-filter-two_fa_users";let g=e.field;const[x,Z]=(0,v.useState)(!1),[j,y]=(0,v.useState)(!1),{fields:w,getFieldValue:k,changedFields:R}=(0,n.A)(),[M,b]=(0,v.useState)([]),[F,C]=(0,v.useState)(!1),[H,V]=(0,v.useState)([]),[S,A]=(0,v.useState)(1),[U,E]=(0,v.useState)(5),T=(0,v.useRef)(null),L=(0,v.useRef)(null),[D,N]=(0,v.useState)("all");(0,v.useEffect)((()=>{d?V(a):c(D)}),[d,a]),(0,v.useEffect)((()=>{"all"!==D&&c(D)}),[D]),(0,v.useEffect)((()=>{m.length||u()}),[m,u]),(0,v.useEffect)((()=>{if(L.current&&T.current){const e=L.current.offsetWidth;T.current.style.width=`${e}px`}}),[m]),(0,v.useEffect)((()=>{y(!0),i(!1)}),[k("two_fa_forced_roles"),k("two_fa_optional_roles"),k("two_fa_forced_roles_totp"),k("two_fa_optional_roles_totp")]),(0,v.useEffect)((()=>{j&&0===R.length&&(i(!1),y(!1))}),[j]),(0,v.useEffect)((()=>{if(d){const e=_(f);e||p("all",f),C(!0),s("user_role",e)}}),[_(f)]),(0,v.useEffect)((()=>{let e=k("two_fa_enabled_roles_email"),l=k("two_fa_enabled_roles_totp");e.concat(l),Z(k("login_protection_enabled")||k("two_fa_enabled")||k("enable_passkey_login"))}),[w]),(0,v.useEffect)((()=>{d&&x===(k("two_fa_enabled_email")||k("two_fa_enabled_totp"))||i(!1)}),[k("two_fa_enabled"),k("two_fa_enabled_totp")]);let O=[];g.columns.forEach((function(e,l){var s;let a={...e,key:e.column};var i;a={name:(i=a).name,column:i.column,sortable:i.sortable,searchable:i.searchable,width:i.width,visible:i.visible,selector:e=>e[i.column]},a.visible=null===(s=a.visible)||void 0===s||s,O.push(a)}));let B=O.filter((e=>e.searchable)).map((e=>e.column));(0,ee.createTheme)("really-simple-plugins",{divider:{default:"transparent"}},"light");const z=async e=>{if(Array.isArray(e))for(const s of e)await l(s.ID);else await l(e.ID);i(!1),b([]),C(!0),setTimeout((()=>{C(!1)}),0)},P=e=>"totp"===e?e.toUpperCase():Array.isArray(e)?e.map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(", "):e.charAt(0).toUpperCase()+e.slice(1);let I=H?[...new Set(H)]:[];const G=I.slice((S-1)*U,S*U);let K=[];return G.forEach((e=>{let l={...e};l.user=P(e.user),l.status_for_user=(0,t.__)(P(e.status_for_user),"really-simple-ssl"),l.rsssl_two_fa_providers=(0,t.__)(P(e.rsssl_two_fa_providers),"really-simple-ssl"),l.resetControl=(0,h.jsx)("button",{disabled:!1===l.can_reset,className:"button button-red rsssl-action-buttons__button",onClick:()=>z(e),children:(0,t.__)("Reset","really-simple-ssl")}),K.push(l)})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"rsssl-container",style:{marginTop:"1em"},children:[(0,h.jsx)("div",{}),(0,h.jsx)("div",{className:"rsssl-search-bar",children:(0,h.jsxs)("div",{className:"rsssl-search-bar__inner",children:[(0,h.jsx)("div",{className:"rsssl-search-bar__icon"}),(0,h.jsx)("input",{type:"text",className:"rsssl-search-bar__input",placeholder:o?(0,t.__)("loading","really-simple-ssl"):(0,t.__)("Search","really-simple-ssl"),onChange:e=>((e,l)=>{const s=e.toLowerCase(),i=l,t=a.filter((e=>i.some((l=>e[l].toString().toLowerCase().includes(s)))));V(t)})(e.target.value,B)})]})})]}),M.length>0&&(0,h.jsx)("div",{style:{marginTop:"1em",marginBottom:"1em"},children:(0,h.jsxs)("div",{className:"rsssl-multiselect-datatable-form rsssl-primary",children:[(0,h.jsx)("div",{children:(0,t.__)("You have selected %s users","really-simple-ssl").replace("%s",M.length)}),(0,h.jsx)("div",{className:"rsssl-action-buttons",children:(0,h.jsx)("div",{className:"rsssl-action-buttons__inner",children:(0,h.jsx)("button",{disabled:!1===(e=>{let l=e.length,s=0;return e.forEach((e=>{e.can_reset&&s++})),l===s})(M),className:"button button-red rsssl-action-buttons__button",onClick:()=>z(M),children:(0,t.__)("Reset","really-simple-ssl")})})})]})}),(0,h.jsx)(ee.default,{keyField:"ID",columns:O,data:K,dense:!0,pagination:!0,paginationServer:!0,onChangePage:e=>{A(e)},onChangeRowsPerPage:e=>{E(e),A(1)},paginationTotalRows:I.length,paginationRowsPerPageOptions:[5,25,50,100],paginationPerPage:U,progressPending:o,progressComponent:(0,h.jsx)(Ri,{}),onSort:r,noDataComponent:(0,t.__)("No results","really-simple-ssl"),persistTableHead:!0,selectableRows:!0,selectableRowsHighlight:!0,onSelectedRowsChange:e=>{b(e.selectedRows)},clearSelectedRows:F,theme:"really-simple-plugins",customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}}}),!x&&(0,h.jsx)("div",{className:"rsssl-locked",children:(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,h.jsx)("span",{className:"rsssl-task-status rsssl-open",children:(0,t.__)("Disabled","really-simple-ssl")}),(0,h.jsx)("span",{children:(0,t.__)("Activate Two-Factor Authentication and one method to enable this block.","really-simple-ssl")})]})})]})},Fi=e=>{const{DynamicDataTable:l,dataLoaded:s,pagination:a,dataActions:i,handleEventTableRowsChange:d,fetchDynamicData:c,handleEventTableSort:r,handleEventTablePageChange:o,handleEventTableSearch:m,handleEventTableFilter:u,processing:p,rowCleared:_}=ie(),{selectedFilter:f,setSelectedFilter:g,activeGroupId:x,getCurrentFilter:Z,setProcessingFilter:j}=(0,te.A)(),{fields:y,fieldAlreadyEnabled:w,getFieldValue:k}=(0,n.A)(),[R,M]=(0,v.useState)(600),b="rsssl-group-filter-"+e.field.id;let F=e.field;(0,v.useEffect)((()=>{const e=Z(b);e||g("all",b),j(p),u("severity",e)}),[b,u,Z(b),g,b,l,p]),(0,v.useEffect)((()=>{i&&c(F.action,F.event_type,i)}),[i.sortDirection,i.filterValue,i.search,i.page,i.currentRowsPerPage]);let C=[];F.columns.forEach((function(e,l){let s={name:(a=e).name,sortable:a.sortable,searchable:a.searchable,width:a.width,visible:a.visible,column:a.column,selector:e=>e[a.column]};var a;C.push(s)}));let H=w("event_log_enabled");if((0,ee.createTheme)("really-simple-plugins",{divider:{default:"transparent"}},"light"),!s&&0===C.length&&0===l.length)return(0,h.jsx)("div",{className:"rsssl-spinner",children:(0,h.jsxs)("div",{className:"rsssl-spinner__inner",children:[(0,h.jsx)("div",{className:"rsssl-spinner__icon"}),(0,h.jsx)("div",{className:"rsssl-spinner__text",children:(0,t.__)("Loading...","really-simple-ssl")})]})});let S=[];C.map((e=>{e.searchable&&S.push(e.column)}));let A,U=[];return l.data&&(U=l.data.map((e=>{let l={...e};var s,a;return l.iso2_code=(s=l.iso2_code,a=l.country_name,(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(qa,{countryCode:s,style:{fontSize:"2em",marginLeft:"0.3em"},title:a})})),l.expandableRows=!0,l}))),A=void 0!==a,(0,v.useEffect)((()=>{0===Object.keys(U).length?M(100):M(50*(A?a.perPage+2:12))}),[A,a?.perPage,U]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"rsssl-container",children:[(0,h.jsx)("div",{}),(0,h.jsx)($a,{handleSearch:m,searchableColumns:S})]}),(0,h.jsx)(ee.default,{columns:C,data:p?[]:U,dense:!0,pagination:!p,paginationServer:!0,paginationTotalRows:A?a.totalRows:10,paginationPerPage:A?a.perPage:10,paginationDefaultPage:A?a.currentPage:1,paginationComponentOptions:{rowsPerPageText:(0,t.__)("Rows per page:","really-simple-ssl"),rangeSeparatorText:(0,t.__)("of","really-simple-ssl"),noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:(0,t.__)("All","really-simple-ssl")},onChangeRowsPerPage:d,onChangePage:o,expandableRows:!p,expandableRowsComponent:({data:e})=>{let l,s,a="";switch(e.severity){case"warning":l="rsssl-warning",s="circle-times",a="red";break;case"informational":l="rsssl-primary",s="info",a="black";break;default:l="rsssl-primary"}return(0,h.jsxs)("div",{className:"rsssl-wizard-help-notice "+l,style:{padding:"1em",borderRadius:"5px"},children:[(0,h.jsx)("div",{style:{float:"right"},children:(0,h.jsx)(V.default,{name:s,color:a})}),(0,h.jsx)("div",{style:{fontSize:"1em",fontWeight:"bold"},children:e.severity.charAt(0).toUpperCase()+e.severity.slice(1)}),(0,h.jsx)("div",{children:e.description})]})},loading:s,onSort:r,sortServer:!p,paginationRowsPerPageOptions:[5,10,25,50,100],noDataComponent:(0,t.__)("No results","really-simple-ssl"),persistTableHead:!0,theme:"really-simple-plugins",customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}}}),!H&&(0,h.jsx)("div",{className:"rsssl-locked",children:(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,h.jsx)("span",{className:"rsssl-task-status rsssl-open",children:(0,t.__)("Disabled","really-simple-ssl")}),(0,h.jsx)("span",{children:(0,t.__)("Activate Limit login attempts to enable this block.","really-simple-ssl")})]})})]})},Ci=({field:e})=>{const{fetchRoles:l,roles:s,rolesLoaded:a}=li(),[i,t]=(0,v.useState)([]),[d,c]=(0,v.useState)(!1),{updateField:r,setChangedField:o,fieldsLoaded:m,getFieldValue:u}=(0,n.A)();return(0,v.useEffect)((()=>{a||l(e.id)}),[a]),(0,v.useEffect)((()=>{const l=Array.isArray(e.value)?e.value:e.default||[];e.value&&Array.isArray(e.value)||(o(e.id,l),r(e.id,l)),t(l.map(((e,l)=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1)}))))}),[m]),(0,v.useEffect)((()=>{c(u("enforce_frequent_password_change"))}),[u("enforce_frequent_password_change")]),(0,h.jsxs)("div",{style:{marginTop:"5px"},children:[(0,h.jsx)(ei.Ay,{isMulti:!0,options:s,onChange:l=>{const s=l.map((e=>e.value));t(l),r(e.id,s),o(e.id,s)},value:i,menuPosition:"fixed",styles:{multiValue:e=>({...e,borderRadius:"10px",backgroundColor:"#F5CD54"}),multiValueRemove:(e,l)=>({...e,color:l.isHovered?"initial":e.color,opacity:"0.7",":hover":{backgroundColor:"initial",color:"initial",opacity:"1"}}),menuList:e=>({...e,height:"125px",zIndex:999})},isDisabled:!d}),!1]})},Hi=(0,E.vt)(((e,l)=>({processing:!1,dataLoaded:!1,pagination:{},dataActions:{},CountryDataTable:[],rowCleared:!1,fetchCountryData:async(l,s)=>{if(e({processing:!0,rowCleared:!0,dataLoaded:!1}),s)try{const a=await g.Eo(l,{filterValue:s});a&&a.request_success&&e({CountryDataTable:a,dataLoaded:!0,processing:!1}),e({rowCleared:!0})}catch(e){console.error(e)}else e({processing:!1})},handleCountryTableSearch:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,search:l,searchColumns:s}})))},handleCountryTablePageChange:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,page:l,pageSize:s}})))},handleCountryTableRowsChange:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,currentRowsPerPage:l,currentPage:s}})))},handleCountryTableSort:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,sortColumn:l,sortDirection:s}})))},handleCountryTableFilter:async(l,s)=>{e((0,le.jM)((e=>{e.dataActions={...e.dataActions,filterColumn:l,filterValue:s}})))},addRow:async(l,s)=>{e({rowCleared:!1});let a={country_code:l,country_name:s};try{const l=await g.Eo("geo_block_add_blocked_country",a);return l&&l.request_success?(e({rowCleared:!0}),{success:!0,message:l.message,response:l}):{success:!1,message:l?.message||"Failed to add country",response:l}}catch(e){return console.error(e),{success:!1,message:"Error occurred",error:e}}},addMultiRow:async l=>{e({processing:!0}),e({rowCleared:!1});let s={country_codes:l};try{const l=await g.Eo("geo_block_add_blocked_country",s);return l&&l.request_success?(e({rowCleared:!0}),{success:!0,message:l.message,response:l}):(e({rowCleared:!0}),{success:!1,message:l?.message||"Failed to add countries",response:l})}catch(l){return console.error(l),e({rowCleared:!0}),{success:!1,message:"Error occurred",error:l}}finally{e({processing:!1}),e({rowCleared:!0})}},removeRowMulti:async(l,s)=>{e({processing:!0}),e({rowCleared:!1});let a={country_codes:l};try{const l=await g.Eo("geo_block_remove_blocked_country",a);return l&&l.request_success?(e({rowCleared:!0}),{success:!0,message:l.message,response:l}):{success:!1,message:l?.message||"Failed to remove countries",response:l}}catch(l){return console.error(l),e({rowCleared:!0}),{success:!1,message:"Error occurred",error:l}}finally{e({rowCleared:!0}),e({processing:!1})}},removeRow:async l=>{e({processing:!0}),e({rowCleared:!1});let s={country_code:l};try{const l=await g.Eo("geo_block_remove_blocked_country",s);return l&&l.request_success?(e({rowCleared:!0}),{success:!0,message:l.message,response:l}):(e({rowCleared:!0}),{success:!1,message:l?.message||"Failed to remove country",response:l})}catch(e){return console.error(e),{success:!1,message:"Error occurred",error:e}}finally{e({rowCleared:!0}),e({processing:!1})}},addRegion:async l=>{e({processing:!0}),e({rowCleared:!1});let s={region_code:l};try{const l=await g.Eo("geo_block_add_blocked_region",s);return l&&l.request_success?(e({rowCleared:!0}),{success:!0,message:l.message,response:l}):(e({rowCleared:!0}),{success:!1,message:l?.message||"Failed to add region",response:l})}catch(e){return console.error(e),{success:!1,message:"Error occurred",error:e}}finally{e({processing:!1}),e({rowCleared:!0})}},addRegionsMulti:async(l,s)=>{e({processing:!0}),e({rowCleared:!1});let a={region_codes:l};try{const l=await g.Eo("geo_block_add_blocked_region",a);return l&&l.request_success?(e({rowCleared:!0}),{success:!0,message:l.message,response:l}):(e({rowCleared:!0}),{success:!1,message:l?.message||"Failed to add regions",response:l})}catch(e){return console.error(e),{success:!1,message:"Error occurred",error:e}}finally{e({rowCleared:!0}),e({processing:!1})}},removeRegion:async l=>{e({processing:!0}),e({rowCleared:!1});let s={region_code:l};try{const l=await g.Eo("geo_block_remove_blocked_region",s);return l&&l.request_success?(e({rowCleared:!0}),{success:!0,message:l.message,response:l}):(e({rowCleared:!0}),{success:!1,message:l?.message||"Failed to remove region",response:l})}catch(e){return console.error(e),{success:!1,message:"Error occurred",error:e}}finally{e({processing:!1}),e({rowCleared:!0})}},removeRegionMulti:async l=>{e({processing:!0}),e({rowCleared:!1});let s={region_codes:l};try{const l=await g.Eo("geo_block_remove_blocked_region",s);return l&&l.request_success?(e({rowCleared:!0}),{success:!0,message:l.message,response:l}):(e({rowCleared:!0}),{success:!1,message:l?.message||"Failed to remove regions",response:l})}catch(l){return console.error(l),e({rowCleared:!0}),{success:!1,message:"Error occurred",error:l}}finally{e({processing:!1}),e({rowCleared:!0})}},resetRowSelection:async l=>{e({rowCleared:l})}}))),Vi=e=>{const{CountryDataTable:l,dataLoaded:a,fetchCountryData:i,addRow:d,addMultiRow:c,removeRegion:r,removeRegionMulti:o,addRegion:m,addRegionsMulti:u,removeRow:p,removeRowMulti:_,rowCleared:f,resetRowSelection:g}=Hi(),x="rsssl-group-filter-firewall_list_listing",[j,y]=(0,v.useState)([]),[w,k]=(0,v.useState)(""),[R,M]=(0,v.useState)([]),{showSavedSettingsNotice:b,saveFields:F}=(0,n.A)(),[C,H]=(0,v.useState)([]),[V,S]=(0,v.useState)([]),{fields:A,fieldAlreadyEnabled:U,getFieldValue:E,setHighLightField:T,getField:L}=(0,n.A)(),[D,N]=(0,v.useState)(1),[O,B]=(0,v.useState)(10),{setSelectedSubMenuItem:z}=(0,Z.A)(),[P,I]=(0,v.useState)(null),[G,K]=(0,v.useState)(null);(0,v.useEffect)((()=>{Promise.resolve().then(s.bind(s,3757)).then((({default:e,createTheme:l})=>{I((()=>e)),K((()=>l("really-simple-plugins",{divider:{default:"transparent"}},"light")))}))}),[]);let W=E("enable_firewall");const{selectedFilter:q,setSelectedFilter:Y,activeGroupId:J,getCurrentFilter:$,setProcessingFilter:Q}=(0,te.A)(),[X,ee]=(0,v.useState)($(x)),le=(0,v.useCallback)((e=>({omit:"regions"===X&&("country_name"===e.column||"flag"===e.column),name:"action"===e.column&&"regions"===X?(0,t.__)("Block / Allow All","really-simple-ssl"):e.name,sortable:e.sortable,searchable:e.searchable,width:e.width,visible:e.visible,column:e.column,selector:l=>l[e.column]})),[X]);let se=e.field;(0,v.useEffect)((()=>{const e=document.getElementById("set_to_captcha_configuration"),l=async l=>{l.preventDefault(),e&&await ae(e)};return e&&e.addEventListener("click",l),()=>{e&&e.removeEventListener("click",l)}}),[]);const ae=async e=>{let l={...L("enabled_captcha_provider"),highlight_field_id:"enabled_captcha_provider"};T(l.highlight_field_id);let s=L(l.highlight_field_id);await z(s.menu_id)},ie=(0,v.useCallback)((async(e,l)=>{if(Array.isArray(e)){const l=e.map((e=>({country_code:e.iso2_code,country_name:e.country_name})));await c(l).then((e=>{e.success?b(e.message):b(e.message,"error")})),await i(se.action,X),H([])}else await d(e,l).then((e=>{b(e.message),e.success&&i(se.action,X)}))}),[d,X,j,W]),de=(0,v.useCallback)((async(e,l="")=>{if(Array.isArray(e)){const l=e.map((e=>({iso2_code:e.iso2_code,country_name:e.country_name})));await o(l).then((e=>{e.success?(b(e.message),e.success&&i(se.action,X)):b(e.message,"error")})),H([])}else await r(e).then((e=>{b(e.message),e.success&&i(se.action,X)}))}),[r,X]),ne=(0,v.useCallback)((async(e,l="")=>{if(Array.isArray(e)){const l=e.map((e=>({iso2_code:e.iso2_code,country_name:e.country_name})));await u(l).then((e=>{e.success?b(e.message):b(e.message,"error")})),await i(se.action,X),H([])}else await m(e).then((e=>{e.success?b(e.message):b(e.message,"error")})),await i(se.action,X)}),[m,X]),he=(0,v.useCallback)((async e=>{if(Array.isArray(e)){const l=e.map((e=>({country_code:e.iso2_code,country_name:e.country_name})));await _(l).then((e=>{e.success?b(e.message):b(e.message,"error")})),H([]),await i(se.action,X)}else await p(e).then((e=>{b(e.message)})),await i(se.action,X)}),[p,X]),ce=({onClick:e,children:l,className:s,disabled:a=!1})=>(0,h.jsx)("button",{className:`button ${s} rsssl-action-buttons__button`,onClick:e,disabled:a,children:l}),re=(0,v.useCallback)(((e,l,s,a=!0,i=!0)=>(0,h.jsxs)("div",{className:"rsssl-action-buttons",children:["blocked"===X&&(0,h.jsx)(ce,{onClick:()=>he(e),className:"button-secondary",children:(0,t.__)("Allow","really-simple-ssl")}),"regions"===X&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(ce,{onClick:()=>ne(e,s),className:"button-primary",disabled:!a,children:(0,t.__)("Block","really-simple-ssl")}),(0,h.jsx)(ce,{onClick:()=>de(e,s),className:"button-secondary",disabled:!i,children:(0,t.__)("Allow","really-simple-ssl")})]}),"countries"===X&&(0,h.jsx)(ce,{onClick:()=>ie(e,l),className:"button-primary",children:(0,t.__)("Block","really-simple-ssl")})]})),[X]),oe=(0,v.useCallback)(((e,l)=>(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(qa,{countryCode:e,style:{fontSize:"2em"},title:l,continent:"regions"===$(x)})})),[X]);(0,v.useEffect)((()=>{const e=$(x);void 0===e?(ee("regions"),Y("regions",x)):ee(e),H([]),g(!0),g(!1)}),[$(x)]),(0,v.useEffect)((()=>{void 0!==X&&(async()=>{await i(se.action,X)})()}),[X]),(0,v.useEffect)((()=>{a&&void 0!==l.data&&y(l.data)}),[a]);const ve=(0,v.useCallback)((e=>{const{selectedCount:l,selectedRows:s,allSelected:a,allRowsSelected:i}=e;let t=[];a?(t=s.slice((D-1)*O,D*O),H(t)):H(s)}),[D,O,R]);return(0,v.useEffect)((()=>{let e=se.columns.map(le);const l=e.findIndex((e=>"action"===e.column));if("regions"===X&&-1!==l){const s=e[l];e.splice(l,1);const a={name:"",selector:"",sortable:!1,omit:!1,searchable:!1};e.push(a,s)}S(e);const s=(j||[]).filter((e=>Object.values(e).some((e=>(null!=e?e:"").toString().toLowerCase().includes(w.toLowerCase()))))).map((e=>{const l={...e};if(V.forEach((s=>{l[s.column]=e[s.column]})),"regions"===X){let e=l.region_count-l.blocked_count>0,s=l.blocked_count>0;l.action=re(l.iso2_code,l.country_name,l.region,e,s)}else l.action=re(l.iso2_code,"countries"===X?l.country_name:l.status,l.region);return l.flag=oe(l.iso2_code,l.country_name),l.status&&(l.status=(0,t.__)(l.status.charAt(0).toUpperCase()+l.status.slice(1),"really-simple-ssl"),"regions"===X&&(l.blocked_count===l.region_count||0===l.blocked_count?l.status=l.status:l.status=l.status+" ("+l.blocked_count+"/ "+l.region_count+")")),l}));M(s)}),[j,w]),(0,v.useEffect)((()=>{C.length}),[C]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"rsssl-container",children:[(0,h.jsx)("div",{}),(0,h.jsx)("div",{className:"rsssl-search-bar",children:(0,h.jsxs)("div",{className:"rsssl-search-bar__inner",children:[(0,h.jsx)("div",{className:"rsssl-search-bar__icon"}),(0,h.jsx)("input",{type:"text",className:"rsssl-search-bar__input",placeholder:(0,t.__)("Search","really-simple-ssl"),onChange:e=>k(e.target.value)})]})})]}),C.length>0&&(0,h.jsx)("div",{style:{marginTop:"1em",marginBottom:"1em"},children:(0,h.jsxs)("div",{className:"rsssl-multiselect-datatable-form rsssl-primary",children:[(0,h.jsx)("div",{children:(0,t.__)("You have selected %s rows","really-simple-ssl").replace("%s",C.length)}),(0,h.jsxs)("div",{className:"rsssl-action-buttons",children:["countries"===X&&(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(ce,{onClick:()=>ie(C),className:"button-primary",children:(0,t.__)("Block","really-simple-ssl")})}),"regions"===X&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(ce,{onClick:()=>de(C),className:"button-secondary",children:(0,t.__)("Allow","really-simple-ssl")}),(0,h.jsx)(ce,{onClick:()=>ne(C),className:"button-primary",children:(0,t.__)("Block","really-simple-ssl")})]}),"blocked"===X&&(0,h.jsx)(ce,{onClick:()=>he(C),children:(0,t.__)("Allow","really-simple-ssl")})]})]})}),P&&(0,h.jsx)(P,{columns:V,data:R,dense:!0,pagination:!0,paginationComponentOptions:{rowsPerPageText:(0,t.__)("Rows per page:","really-simple-ssl"),rangeSeparatorText:(0,t.__)("of","really-simple-ssl"),noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:(0,t.__)("All","really-simple-ssl")},noDataComponent:(0,t.__)("No results","really-simple-ssl"),persistTableHead:!0,selectableRows:!0,paginationPerPage:O,onChangePage:e=>{N(e)},onChangeRowsPerPage:e=>{B(e)},onSelectedRowsChange:ve,clearSelectedRows:f,theme:"really-simple-plugins",customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}}}),!E("enable_firewall")&&(0,h.jsx)("div",{className:"rsssl-locked",children:(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,h.jsx)("span",{className:"rsssl-task-status rsssl-open",children:(0,t.__)("Disabled","really-simple-ssl")}),(0,h.jsx)("span",{children:(0,t.__)("Restrict access from specific countries or continents. You can also allow only specific countries.","really-simple-ssl")})]})})]})},Si=e=>{const{WhiteListTable:l,fetchWhiteListData:a,processing:i,ipAddress:d,addRow:c,removeRow:r,pagination:o,addRegion:m,removeRegion:u,resetRow:p,rowCleared:_}=yi(),{showSavedSettingsNotice:f,saveFields:g}=(0,n.A)(),[x,Z]=(0,v.useState)([]),[j,y]=(0,v.useState)(!1),[w,k]=(0,v.useState)(600),R="rsssl-group-filter-geo_block_list_white_listing",{fields:M,fieldAlreadyEnabled:b,getFieldValue:F}=(0,n.A)(),[C,H]=(0,v.useState)(""),[V,S]=(0,v.useState)(1),[A,U]=(0,v.useState)(10),[E,T]=(0,v.useState)(null),[L,D]=(0,v.useState)(null);(0,v.useEffect)((()=>{Promise.resolve().then(s.bind(s,3757)).then((e=>{const{default:l,createTheme:s}=e;T((()=>l)),D((()=>s("really-simple-plugins",{divider:{default:"transparent"}},"light")))}))}),[]);const N=(0,v.useCallback)((e=>({name:e.name,sortable:e.sortable,searchable:e.searchable,width:e.width,visible:e.visible,column:e.column,selector:l=>l[e.column]})),[]);let O=e.field;const B=O.columns.map(N);B.filter((e=>e.searchable)).map((e=>e.column)),(0,v.useEffect)((()=>{Z([])}),[l]),(0,v.useEffect)((()=>{a(O.action)}),[b("enable_firewall")]);let z=F("enable_firewall");(0,v.useEffect)((()=>()=>{g(!1,!1)}),[z]),(0,ee.createTheme)("really-simple-plugins",{divider:{default:"transparent"}},"light");const P=(0,v.useCallback)((e=>{const{selectedCount:l,selectedRows:s,allSelected:a,allRowsSelected:i}=e;let t=[];a?(t=s.slice((V-1)*A,V*A),Z(t)):Z(s)}),[V,A]),I=(0,v.useCallback)((async(e,l="")=>{Array.isArray(e)?(e.map((e=>({iso2_code:e.iso2_code,country_name:e.country_name}))).forEach((e=>{u(e.iso2_code).then((e=>{f(e.message)}))})),Z([]),await a(O.action),Z([])):await u(e).then((e=>{f(e.message)}))}),[u]),G=(0,v.useCallback)((e=>{Array.isArray(e)?(e.map((e=>({id:e.id}))).forEach((e=>{p(e.id).then((e=>{f(e.message)}))})),a(O.action),Z([])):p(e).then((e=>{f(e.message),a(O.action)}))}),[p]),K=(0,v.useCallback)((async(e,l="")=>{Array.isArray(e)?(e.map((e=>({iso2_code:e.iso2_code,country_name:e.country_name}))).forEach((e=>{m(e.iso2_code).then((e=>{f(e.message)}))})),Z([]),await a(O.action),Z([])):await m(e).then((e=>{f(e.message)}))}),[m]),W=(0,v.useCallback)((async e=>{Array.isArray(e)?(e.map((e=>({iso2_code:e.iso2_code,country_name:e.country_name}))).forEach((e=>{r(e.iso2_code).then((e=>{f(e.message)}))})),Z([]),await a(O.action)):await r(e).then((e=>{f(e.message)}))}),[r]),q=(0,v.useCallback)((async(e,l)=>{Array.isArray(e)?(e.map((e=>({iso2_code:e.iso2_code,country_name:e.country_name}))).forEach((e=>{c(e.iso2_code,e.country_name).then((e=>{f(e.message)}))})),Z([])):await c(e,l).then((e=>{f(e.message)}))}),[c]),Y={...l.data},$=(0,v.useCallback)(((e,l)=>(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(qa,{countryCode:e,style:{fontSize:"2em"},title:l})})),[]),Q=({onClick:e,children:l,className:s})=>(0,h.jsx)("button",{className:`button ${s} rsssl-action-buttons__button`,onClick:e,disabled:i,children:l}),X=(0,v.useCallback)((e=>(0,h.jsx)("div",{className:"rsssl-action-buttons",children:(0,h.jsx)(Q,{onClick:()=>G(e),className:"button-red",children:(0,t.__)("Reset","really-simple-ssl")})})),[R,G,K,I,q,W]);for(const e in Y){const l={...Y[e]};l.action=X(l.id),l.flag=$(l.iso2_code,l.country_name),l.status=(0,t.__)(l.status=l.status.charAt(0).toUpperCase()+l.status.slice(1),"really-simple-ssl"),Y[e]=l}let le;return le=void 0!==o,(0,v.useEffect)((()=>{0===Object.keys(Y).length?k(100):k(50*(le?o.perPage+2:12))}),[le,o?.perPage,Y]),(0,v.useEffect)((()=>{Object.entries(Y).filter((([e,l])=>Object.values(l).some((e=>(null!=e?e:"").toString().toLowerCase().includes(C.toLowerCase()))))).map((([e,l])=>{const s={...l};return s.action=X(s.id),s.flag=$(s.iso2_code,s.country_name),s.status=(0,t.__)(s.status=s.status.charAt(0).toUpperCase()+s.status.slice(1),"really-simple-ssl"),[e,s]})).reduce(((e,[l,s])=>({...e,[l]:s})),{})}),[C,Y]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(wi,{isOpen:j,onRequestClose:()=>{y(!1)},value:d,status:"trusted"}),(0,h.jsxs)("div",{className:"rsssl-container",children:[(0,h.jsx)(J,{moduleName:R,handleOpen:()=>{y(!0)},processing:i,blockedText:(0,t.__)("Block IP Address","really-simple-ssl"),allowedText:(0,t.__)("Trust IP Address","really-simple-ssl")}),(0,h.jsx)("div",{className:"rsssl-search-bar",children:(0,h.jsxs)("div",{className:"rsssl-search-bar__inner",children:[(0,h.jsx)("div",{className:"rsssl-search-bar__icon"}),(0,h.jsx)("input",{type:"text",className:"rsssl-search-bar__input",placeholder:(0,t.__)("Search","really-simple-ssl"),onChange:e=>H(e.target.value)})]})})]}),x.length>0&&(0,h.jsx)("div",{style:{marginTop:"1em",marginBottom:"1em"},children:(0,h.jsxs)("div",{className:"rsssl-multiselect-datatable-form rsssl-primary",children:[(0,h.jsx)("div",{children:(0,t.__)("You have selected %s rows","really-simple-ssl").replace("%s",x.length)}),(0,h.jsx)("div",{className:"rsssl-action-buttons",children:(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(Q,{onClick:()=>G(x),className:"button-red",children:(0,t.__)("Reset","really-simple-ssl")})})})]})}),E&&(0,h.jsx)(E,{columns:B,data:Object.values(Y).filter((e=>Object.values(e).some((e=>(null!=e?e:"").toString().toLowerCase().includes(C.toLowerCase()))))),dense:!0,pagination:!0,paginationComponentOptions:{rowsPerPageText:(0,t.__)("Rows per page:","really-simple-ssl"),rangeSeparatorText:(0,t.__)("of","really-simple-ssl"),noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:(0,t.__)("All","really-simple-ssl")},noDataComponent:(0,t.__)("No results","really-simple-ssl"),persistTableHead:!0,selectableRows:!0,clearSelectedRows:_,paginationPerPage:A,onChangePage:e=>{S(e)},onChangeRowsPerPage:e=>{U(e)},onSelectedRowsChange:P,theme:"really-simple-plugins",customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}}}),!z&&(0,h.jsx)("div",{className:"rsssl-locked",children:(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,h.jsx)("span",{className:"rsssl-task-status rsssl-open",children:(0,t.__)("Disabled","really-simple-ssl")}),(0,h.jsx)("span",{children:(0,t.__)("Here you can add IP addresses that should never be blocked by region restrictions.","really-simple-ssl")})]})})]})},Ai=(0,E.vt)(((e,l)=>({reloadCaptcha:!1,setReloadCaptcha:l=>e({reloadCaptcha:l}),verifyCaptcha:async e=>{try{return await g.Eo("verify_captcha",{responseToken:e})||void console.error("No response received from the server.")}catch(e){console.error("Error:",e)}},removeRecaptchaScript:async(e="recaptcha")=>{window.grecaptcha&&(window.grecaptcha.reset(),delete window.grecaptcha),document.querySelectorAll('script[src^="https://www.google.com/recaptcha/api.js"]').forEach((e=>{e.remove()})),document.querySelectorAll('script[src^="https://www.google.com/recaptcha/api.js"]');const l=document.getElementById("recaptchaContainer");l&&l.remove()}}))),Ui=({handleCaptchaResponse:e,captchaVerified:l})=>{const s=l=>{e(l)},{reloadCaptcha:a,removeRecaptchaScript:i,setReloadCaptcha:t}=Ai(),{getFieldValue:d,updateField:c,saveFields:r}=(0,n.A)(),o=d("recaptcha_site_key");return d("recaptcha_secret_key"),d("captcha_fully_enabled"),(0,v.useEffect)((()=>{const e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js?render=explicit&onload=initRecaptcha",e.async=!0,e.defer=!0,e.onload=()=>{let e=document.getElementById("recaptchaContainer");void 0!==window.grecaptcha&&(window.initRecaptcha=window.initRecaptcha||(()=>{window.grecaptcha&&window.grecaptcha.render(e,{sitekey:o,callback:s})}))},document.body.appendChild(e)}),[o,e]),(0,v.useEffect)((()=>{l&&i()}),[l]),(0,h.jsx)("div",{className:"rsssl-captcha",style:{display:"flex",flexDirection:"column",alignItems:"center",marginBottom:"20px"},children:(0,h.jsx)("div",{id:"recaptchaContainer"})})},Ei=({sitekey:e,handleCaptchaResponse:l})=>{const s=e=>{l(e)};return(0,v.useEffect)((()=>{const l=document.createElement("script");return l.src="https://hcaptcha.com/1/api.js?onload=initHcaptcha",l.async=!0,l.defer=!0,l.onload=()=>{void 0!==window.hcaptcha&&window.hcaptcha.render("hcaptchaContainer",{sitekey:e,callback:s})},document.body.appendChild(l),()=>{window.hcaptcha&&window.hcaptcha.reset(),l&&l.remove()}}),[e,l]),(0,h.jsx)("div",{className:"rsssl-captcha",style:{display:"flex",flexDirection:"column",alignItems:"center",marginBottom:"20px"},children:(0,h.jsx)("div",{id:"hcaptchaContainer"})})};var Ti=s(9518);const Li=({props:e})=>{const{getFieldValue:l,updateField:s,saveFields:a,getField:i}=(0,n.A)(),d=l("enabled_captcha_provider"),c=l(`${d}_site_key`),r=l(`${d}_secret_key`),o=l("captcha_fully_enabled"),{verifyCaptcha:m,setReloadCaptcha:u,removeRecaptchaScript:p}=Ai(),[_,f]=(0,v.useState)(!1),[g,x]=(0,v.useState)(!1),Z=e=>{m(e).then((e=>{e&&e.success?(s("captcha_fully_enabled",1),a(!1,!1,!0)):(s("captcha_fully_enabled",!1),a(!1,!1))}))};return(0,v.useEffect)((()=>{a(!1,!1)}),[d]),(0,v.useEffect)((()=>{o&&(s("captcha_fully_enabled",1),a(!1,!1))}),[o]),(0,v.useEffect)((()=>{switch(f(!1),d){case"recaptcha":40===c.length&&40===r.length?x(!0):x(!1);break;case"hcaptcha":36===c.length&&35===r.length?x(!0):x(!1)}}),[c,r,d]),(0,h.jsx)("div",{children:(0,h.jsxs)(Ti.A,{title:(0,t.__)("Reload Captcha","really-simple-ssl"),children:["recaptcha"===d&&!o&&_&&(0,h.jsx)(Ui,{handleCaptchaResponse:Z}),"hcaptcha"===d&&!o&&_&&(0,h.jsx)(Ei,{sitekey:c,handleCaptchaResponse:Z,captchaVerified:o}),"none"!==d&&!o&&(0,h.jsxs)("button",{disabled:!g,className:"button button-primary "+(g?"":"rsssl-learning-mode-disabled"),onClick:()=>f(!0),children:[" ",(0,t.__)("Validate CAPTCHA","really-simple-ssl")," "]})]})})},Di=({field:e,fields:l,label:s})=>{const{getFieldValue:a,setChangedField:t,updateField:d,saveFields:c}=(0,n.A)();let r=a(e.id),o=a("captcha_fully_enabled");return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(i.TextControl,{required:e.required,placeholder:e.placeholder,help:e.comment,label:s,onChange:l=>(async l=>{t(e.id,l),t("captcha_fully_enabled",!1),d(e.id,l),await c(!1,!1)})(l),value:r}),(0,h.jsx)("div",{className:"rsssl-email-verified",children:Boolean(o)?(0,h.jsx)(V.default,{name:"circle-check",color:"green"}):(0,h.jsx)(V.default,{name:"circle-times",color:"red"})})]})},Ni=(0,E.vt)(((e,l)=>({processing:!1,data:[],dataLoaded:!1,user_agent:"",note:"",fetchData:async(l,s)=>{e({processing:!0}),e({dataLoaded:!1});try{const a=await g.Eo(l,{filter:s});a.request_success&&(e({data:a.data}),a.data&&e({dataLoaded:!0}),e({processing:!1}))}catch(l){console.error(l),e({dataLoaded:!1})}finally{e({processing:!1})}},setNote:l=>e({note:l}),setUserAgent:l=>e({user_agent:l}),setDataLoaded:l=>e({dataLoaded:l}),addRow:async(l,s)=>{e({processing:!0});try{(await g.Eo("rsssl_user_agent_add",{user_agent:l,note:s})).request_success&&e({dataLoaded:!1})}catch(e){console.error(e)}finally{e({processing:!1,dataLoaded:!0})}return{success:!0,message:"User-Agent added successfully"}},deleteValue:async l=>{e({processing:!0});try{const s=await g.Eo("rsssl_user_agent_delete",{id:l});if(s.request_success)return e({dataLoaded:!1}),{success:!0,message:s.message}}catch(e){console.error(e)}finally{e({processing:!1,dataLoaded:!1})}}}))),Oi=e=>{const{note:l,setNote:s,user_agent:a,setUserAgent:d,dataLoaded:c,addRow:r,fetchData:o}=Ni(),{showSavedSettingsNotice:m}=(0,n.A)(),u=(0,v.useRef)(null),p=(0,v.useRef)(null);async function _(){a.length&&(await r(a,l).then((e=>{e.success?(m(e.message),o("rsssl_user_agent_list")):m(e.message,"error")})),f(),e.onRequestClose())}function f(){d(""),s("")}function g(e){console.log("i pressed a key"+e.key),"Enter"===e.key&&_()}return(0,v.useEffect)((()=>(u.current&&u.current.addEventListener("keypress",g),p.current&&p.current.addEventListener("keypress",g),()=>{u.current&&u.current.removeEventListener("keypress",g),p.current&&p.current.removeEventListener("keypress",g)})),[]),e.isOpen?(0,h.jsx)(i.Modal,{title:(0,t.__)("Block User-Agent","really-simple-ssl"),shouldCloseOnClickOutside:!0,shouldCloseOnEsc:!0,overlayClassName:"rsssl-modal-overlay",className:"rsssl-modal",onRequestClose:e.onRequestClose,onKeyPress:g,children:(0,h.jsxs)("div",{className:"modal-content",children:[(0,h.jsx)("div",{className:"modal-body",style:{padding:"0.5em"},children:(0,h.jsxs)("div",{style:{width:"95%",height:"100%",padding:"10px"},children:[(0,h.jsxs)("div",{style:{position:"relative"},children:[(0,h.jsx)("label",{htmlFor:"user_agent",className:"rsssl-label",children:(0,t.__)("User-Agent","really-simple-ssl")}),(0,h.jsx)("input",{id:"user_agent",type:"text",value:a,name:"user_agent",onChange:e=>d(e.target.value),style:{width:"100%"},ref:u})]}),(0,h.jsxs)("div",{style:{marginTop:"10px"},children:[(0,h.jsx)("label",{htmlFor:"note",className:"rsssl-label",children:(0,t.__)("Notes","really-simple-ssl")}),(0,h.jsx)("input",{name:"note",id:"note",type:"text",value:l,onChange:e=>s(e.target.value),style:{width:"100%"},ref:p})]})]})}),(0,h.jsx)("div",{className:"modal-footer",children:(0,h.jsxs)("div",{className:"rsssl-grid-item-footer",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",padding:"1em"},children:[(0,h.jsx)(i.Button,{isSecondary:!0,onClick:function(){f(),e.onRequestClose()},style:{marginRight:"10px"},children:(0,t.__)("Cancel","really-simple-ssl")}),(0,h.jsx)(i.Button,{isPrimary:!0,onClick:_,children:(0,t.__)("Add","really-simple-ssl")})]})})]})}):null},Bi=e=>{const{data:l,processing:s,dataLoaded:a,fetchData:i,user_agent:d,note:c,deleteValue:r,setDataLoaded:o}=Ni(),{selectedFilter:m,setSelectedFilter:u,activeGroupId:p,getCurrentFilter:_,setProcessingFilter:f}=(0,te.A)(),g="rsssl-group-filter-user_agents",{fields:x,fieldAlreadyEnabled:Z,getFieldValue:j,setHighLightField:y,getField:w}=(0,n.A)(),[k,R]=(0,v.useState)(!1),[M,b]=(0,v.useState)([]),[F,C]=(0,v.useState)(!1),[H,V]=(0,v.useState)([]),[S,A]=(0,v.useState)(""),[U,E]=(0,v.useState)([]),{showSavedSettingsNotice:T,saveFields:L}=(0,n.A)(),[D,N]=(0,v.useState)(1),[O,B]=(0,v.useState)(10),[z,P]=(0,v.useState)(_(g));let I=j("enable_firewall");(0,v.useEffect)((()=>{const e=_(g);P(void 0===e?"blocked":e),b([])}),[_(g)]),(0,v.useEffect)((()=>{void 0!==z&&((async()=>{o(!1)})(),b([]))}),[z]),(0,v.useEffect)((()=>{if(e.field){const l=e=>({name:e.name,sortable:e.sortable,searchable:e.searchable,width:e.width,visible:e.visible,column:e.column,selector:l=>l[e.column]});V(e.field.columns.map(l))}}),[e.field]),(0,v.useEffect)((()=>{(async()=>{!a&&I&&await i("rsssl_user_agent_list",z)})()}),[a,I]),(0,v.useEffect)((()=>{L(!1,!1,!0),o(!1)}),[I]);const G=({onClick:e,children:l,className:s})=>(0,h.jsx)("button",{className:`button ${s} rsssl-action-buttons__button`,onClick:e,disabled:!1,children:l}),K=(0,v.useCallback)((e=>{if(Array.isArray(e)){const l=e.map((e=>({id:e.id})));r(l).then((e=>{T(e.message),b([])}))}else r(e).then((e=>{T(e.message)}))}),[r,M,T]),W=(0,v.useCallback)(((e,l)=>(0,h.jsx)("div",{className:"rsssl-action-buttons",children:(0,h.jsx)(G,{onClick:()=>K(e),className:l?"button-primary":"button-red",children:l?(0,t.__)("Block","really-simple-ssl"):(0,t.__)("Delete","really-simple-ssl")})})),[K]);(0,v.useEffect)((()=>{if(l){const e=Object.entries(l).filter((([e,l])=>Object.values(l).some((e=>(null!=e?e:"").toString().toLowerCase().includes(S.toLowerCase()))))).map((([e,l])=>{var s;return[e,{...l,action:W(l.id,(s=l.deleted_at,!(null===s)))}]})).reduce(((e,[l,s])=>({...e,[l]:s})),{});E(e)}}),[S,l,W]);const q=(0,v.useCallback)((e=>{const{selectedCount:l,selectedRows:s,allSelected:a,allRowsSelected:i}=e;let t=[];a?(t=s.slice((D-1)*O,D*O),b(t)):b(s)}),[D,O]);return(0,v.useEffect)((()=>{0===M.length&&C(!F)}),[M]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Oi,{isOpen:k,onRequestClose:()=>{R(!1)},value:d,status:"blocked"}),(0,h.jsxs)("div",{className:"rsssl-container",children:[(0,h.jsx)(J,{handleOpen:()=>{R(!0)},processing:s,allowedText:(0,t.__)("Block User-Agent","really-simple-ssl"),disabled:!a}),(0,h.jsx)("div",{className:"rsssl-search-bar",children:(0,h.jsxs)("div",{className:"rsssl-search-bar__inner",children:[(0,h.jsx)("div",{className:"rsssl-search-bar__icon"}),(0,h.jsx)("input",{type:"text",className:"rsssl-search-bar__input",placeholder:(0,t.__)("Search","really-simple-ssl"),onChange:e=>A(e.target.value)})]})})]}),M.length>0&&(0,h.jsx)("div",{style:{marginTop:"1em",marginBottom:"1em"},children:(0,h.jsxs)("div",{className:"rsssl-multiselect-datatable-form rsssl-primary",children:[(0,h.jsx)("div",{children:(0,t.__)("You have selected %s rows","really-simple-ssl").replace("%s",M.length)}),(0,h.jsx)("div",{className:"rsssl-action-buttons",children:(0,h.jsx)(G,{onClick:()=>K(M),className:"button-red",children:(0,t.__)("Delete","really-simple-ssl")})})]})}),(0,h.jsx)(ee.default,{columns:H,data:Object.values(U),pagination:!0,paginationComponentOptions:{rowsPerPageText:(0,t.__)("Rows per page:","really-simple-ssl"),rangeSeparatorText:(0,t.__)("of","really-simple-ssl"),noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:(0,t.__)("All","really-simple-ssl")},noDataComponent:(0,t.__)("No results","really-simple-ssl"),persistTableHead:!0,onSelectedRowsChange:q,clearSelectedRows:F,paginationPerPage:O,onChangePage:e=>{N(e)},onChangeRowsPerPage:e=>{B(e)},theme:"really-simple-plugins",customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}},selectableRows:!0}),!j("enable_firewall")&&(0,h.jsx)("div",{className:"rsssl-locked",children:(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,h.jsx)("span",{className:"rsssl-task-status rsssl-open",children:(0,t.__)("Disabled","really-simple-ssl")}),(0,h.jsx)("span",{children:(0,t.__)("Restrict access from specific countries or continents. You can also allow only specific countries.","really-simple-ssl")})]})})]})},zi=({field:e,premium:l=!1,disabled:s=!1})=>{const{fetchRoles:a,roles:i,rolesLoaded:d}=li(),[c,r]=(0,v.useState)([]),[o,m]=(0,v.useState)([]),{updateField:p,getFieldValue:_,setChangedField:f,getField:g,fieldsLoaded:x,saveFields:Z}=(0,n.A)(),j=(0,v.useRef)(null),y=_("login_protection_enabled");let w=!0===s||!0===s,k="";w&&e.hasOwnProperty("disabledTooltipText")&&![void 0,null,""].includes(e.disabledTooltipHoverText)&&(k=e.disabledTooltipHoverText),u(j,w&&""!==k,k),(0,v.useEffect)((()=>{1===_("login_protection_enabled")&&"two_fa_enabled_roles_totp"===e.id&&(f(e.id,e.value),Z(!0,!1))}),[y]),(0,v.useEffect)((()=>{d||a(e.id)}),[d]),(0,v.useEffect)((()=>{if(e.id){let l=g(e.id),s=Array.isArray(l.value)?l.value:[];m(s)}}),[c,g(e.id)]),(0,v.useEffect)((()=>{if(e.id){let l=g(e.id),s=Array.isArray(l.value)?l.value:[];r(s.map((e=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1)}))))}if(!e.value||!Array.isArray(e.value)){const l=Array.isArray(e.default)?e.default:[];f(e.id,l),p(e.id,l),r(l.map((e=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1)}))))}}),[x]);const R=c.map((e=>e.value));let M=[],b=[...R,...o];return i.forEach((e=>{b.includes(e.value)||M.push(e)})),(0,h.jsxs)("div",{style:{marginTop:"5px"},ref:j,children:[(0,h.jsx)(ei.Ay,{isMulti:!0,options:M,onChange:l=>{const s=l.map((e=>e.value));r(l),p(e.id,s),f(e.id,s)},value:c,menuPosition:"fixed",styles:{multiValue:e=>({...e,borderRadius:"10px",backgroundColor:"#F5CD54"}),multiValueRemove:(e,l)=>({...e,color:l.isHovered?"initial":e.color,opacity:"0.7",":hover":{backgroundColor:"initial",color:"initial",opacity:"1"}}),menuPortal:e=>({...e,zIndex:30})},isDisabled:!0===w||!0===l}),!y&&(0,h.jsx)("div",{className:"rsssl-locked",children:(0,h.jsxs)("div",{className:"rsssl-locked-overlay",children:[(0,h.jsx)("span",{className:"rsssl-task-status rsssl-open",children:(0,t.__)("Disabled","really-simple-ssl")}),(0,h.jsx)("span",{children:(0,t.__)("Activate Two-Factor Authentication to enable this block.","really-simple-ssl")})]})})]})};var Pi=s(959);const Ii=e=>{const l=(0,v.useRef)(null),{updateField:s,setChangedField:a,highLightField:r,setHighLightField:m,getFieldValue:u}=(0,n.A)(),[g,x]=(0,v.useState)(null),{licenseStatus:j}=(0,Pi.A)(),{selectedFilter:y,setSelectedFilter:w}=(0,Z.A)();(0,v.useEffect)((()=>{const s=(0,ui.A)("anchor"),a=(0,ui.A)("highlightfield");if(x(s),a&&m(a),a===e.field.id&&l.current&&l.current.scrollIntoView({behavior:"smooth",block:"start"}),"enabled_captcha_provider"===r&&e.fields){let e=document.getElementsByClassName("rsssl-highlight")[0];e&&e.scrollIntoView({behavior:"smooth",block:"start"})}s&&s===e.field.id&&l.current.scrollIntoView({behavior:"smooth",block:"start"})}),[]),(0,v.useEffect)((()=>{k()}),[g]),window.addEventListener("hashchange",(()=>{const s=(0,ui.A)("anchor"),a=(0,ui.A)("highlightfield");x(s),a&&m(a),a===e.field.id&&l.current&&l.current.scrollIntoView({behavior:"smooth",block:"start"}),s&&s===e.field.id&&l.current.scrollIntoView({behavior:"smooth",block:"start"})}));const k=()=>{g&&g===e.field.id&&l.current.scrollIntoView({behavior:"smooth",block:"start"})},R=l=>{let i=e.field;if(i.pattern){const e=new RegExp(i.pattern,"g"),s=l.match(e);l=s?s.join(""):""}s(i.id,l);let t=!1;if(i.configure_on_activation){i.configure_on_activation.hasOwnProperty("condition")&&e.field.value==i.configure_on_activation.condition&&(t=!0);let l=i.configure_on_activation[0];for(let e in l)t&&l.hasOwnProperty(e)&&s(e,l[e])}a(i.id,l)},M=e=>{let l=e.warning?"red":"black";return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"cmplz-label-text",children:e.label}),e.tooltip&&(0,h.jsx)(V.default,{name:"info-open",tooltip:e.tooltip,color:l})]})};let b=e.field,F=b.value,H=b.disabled,A="valid"!==j&&b.premium,U="rsssl-field-wrap";r===e.field.id&&(U="rsssl-field-wrap rsssl-highlight");let E=[];if(b.options)for(let e in b.options)if(b.options.hasOwnProperty(e)){let l={};l.label=b.options[e],l.value=e,E.push(l)}if(!rsssl_settings.networkwide_active&&b.networkwide_required&&(H=!0,b.comment=(0,h.jsxs)(h.Fragment,{children:[(0,t.__)("This feature is only available networkwide.","really-simple-ssl"),(0,h.jsx)(f.A,{target:"_blank",rel:"noopener noreferrer",text:(0,t.__)("Network settings","really-simple-ssl"),url:rsssl_settings.network_link})]})),b.conditionallyDisabled&&(H=!0),!b.visible)return null;if("checkbox"===b.type)return(0,h.jsxs)("div",{className:U,ref:l,children:[(0,h.jsx)(P,{label:M(b),premium:A,upgradeUrl:b.upgrade,field:b,disabled:H||A,onChangeHandler:e=>R(e)}),b.comment&&(0,h.jsx)("div",{className:"rsssl-comment",dangerouslySetInnerHTML:{__html:o().sanitize(b.comment)}})]});if("hidden"===b.type)return(0,h.jsx)("input",{type:"hidden",value:b.value});if("radio"===b.type)return(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(i.RadioControl,{label:M(b),onChange:e=>R(e),selected:F,options:E})});if("email"===b.type){const s=e.fields.find((e=>"send_verification_email"===e.id)),a=s&&!1===s.disabled;return(0,h.jsxs)("div",{className:U,ref:l,style:{position:"relative"},children:[(0,h.jsx)(i.TextControl,{required:b.required,placeholder:b.placeholder,disabled:H,help:b.comment,label:M(b),onChange:e=>R(e),value:F}),s&&(0,h.jsx)("div",{className:"rsssl-email-verified",children:a?(0,h.jsx)(V.default,{name:"circle-times",color:"red"}):(0,h.jsx)(V.default,{name:"circle-check",color:"green"})})]})}if("captcha_key"===b.type)return(0,h.jsx)("div",{className:U,ref:l,style:{position:"relative"},children:(0,h.jsx)(Di,{field:b,fields:e.fields,label:M(b)})});if("number"===b.type)return(0,h.jsx)("div",{className:U,ref:l,style:{position:"relative"},children:(0,h.jsx)(i.__experimentalNumberControl,{required:b.required,placeholder:b.placeholder,className:"number_full",disabled:H,help:b.comment,label:M(b),onChange:e=>R(e),value:F})});if("text"===b.type)return(0,h.jsx)("div",{className:U,ref:l,style:{position:"relative"},children:(0,h.jsx)(i.TextControl,{required:b.required,placeholder:b.placeholder,disabled:H,help:b.comment,label:M(b),onChange:e=>R(e),value:F})});if("button"===b.type)return(0,h.jsxs)("div",{className:"rsssl-field-button "+U,ref:l,children:[(0,h.jsx)("label",{children:b.label}),(0,h.jsx)(ai,{field:b})]});if("password"===b.type)return(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(c,{index:e.index,field:b})});if("textarea"===b.type){let e=!1;return"csp_frame_ancestors_urls"===b.id?"disabled"===u("csp_frame_ancestors")&&(e=!0):e=b.disabled,(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(i.TextareaControl,{label:b.label,help:b.comment,value:F,onChange:e=>R(e),disabled:e})})}if("license"===b.type){let s=e.field,a=s.value;return(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(d.A,{index:e.index,field:s,fieldValue:a})})}return"number"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(i.__experimentalNumberControl,{onChange:e=>R(e),help:b.comment,label:b.label,value:F})}):"email"===b.type?(0,h.jsx)("div",{className:(void 0).highLightClass,ref:(void 0).scrollAnchor,children:(0,h.jsx)(i.TextControl,{help:b.comment,label:b.label,onChange:e=>(void 0).onChangeHandler(e),value:F})}):"host"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(_.A,{index:e.index,field:e.field})}):"select"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(p,{disabled:H,label:M(b),onChangeHandler:e=>R(e),value:F,options:E,field:b})}):"support"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(I,{})}):"postdropdown"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(vi,{field:e.field})}):"permissionspolicy"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(B,{disabled:H,field:e.field,options:E})}):"captcha"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(Li,{field:b,label:M(b)})}):"learningmode"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)($,{disabled:H,field:e.field})}):"riskcomponent"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(X,{field:e.field})}):"mixedcontentscan"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(O,{field:e.field})}):"vulnerabilitiestable"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(se,{field:e.field})}):"two_fa_roles"===b.type?(0,h.jsxs)("div",{className:U,ref:l,children:[(0,h.jsx)("label",{htmlFor:`rsssl-two-fa-dropdown-${b.id}`,children:M(b)}),(0,h.jsx)(si,{field:e.field,forcedRoledId:e.field.forced_roles_id,optionalRolesId:e.field.optional_roles_id})]}):"eventlog-datatable"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(Fi,{field:e.field,action:e.field.action})}):"twofa-datatable"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(bi,{field:e.field,action:e.field.action})}):"ip-address-datatable"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(Xa,{field:e.field,action:e.field.action})}):"user-datatable"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(gi,{field:e.field,action:e.field.action})}):"country-datatable"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(ji,{field:e.field,action:e.field.action})}):"geo-datatable"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(Vi,{field:e.field,action:e.field.action})}):"geo-ip-datatable"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(Si,{field:e.field,action:e.field.action})}):"blocklist-datatable"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(ki,{field:e.field,action:e.field.action})}):"user-agents-datatable"===b.type?(0,h.jsx)("div",{className:U,ref:l,children:(0,h.jsx)(Bi,{field:e.field,action:e.field.action})}):"roles_dropdown"===b.type?(0,h.jsxs)("div",{className:U,ref:l,children:[(0,h.jsx)("label",{htmlFor:`rsssl-two-fa-dropdown-${b.id}`,children:M(b)}),(0,h.jsx)(Ci,{field:e.field})]}):"roles_enabled_dropdown"===b.type?(0,h.jsxs)("div",{className:U,ref:l,children:[(0,h.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},className:"rsssl-field-wrap",children:[(0,h.jsx)("label",{htmlFor:`rsssl-two-fa-dropdown-${b.id}`,children:M(b)}),A&&(0,h.jsx)(z,{upgradeUrl:b.upgrade,target:"_blank"})]}),(0,h.jsx)(zi,{field:e.field,premium:A,disabled:H})]}):"notificationtester"===b.type?(0,h.jsx)("div",{className:"rsssl-field-button "+U,ref:l,children:(0,h.jsx)(mi,{field:e.field,disabled:H,labelWrap:M})}):"letsencrypt"===b.type?(0,h.jsx)(S,{field:b}):"activate"===b.type?(0,h.jsx)(C,{}):"not found field type "+b.type}},1693:(e,l,s)=>{s.d(l,{A:()=>f});var a=s(6087),i=s(5415),t=s(1254),d=(s(2838),s(5063)),n=s(2389),h=s(2611),c=s(790);const r=(0,h.A)((()=>({autoComplete:{fontSize:"12px"}}))),o=({field:e,disabled:l,value:s,options:a,label:i,onChange:t})=>{let h=!Array.isArray(l)&&l;const o=r();return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(d.A,{classes:{input:o.autoComplete,option:o.autoComplete},disabled:h,disablePortal:!0,value:s,id:e.id,options:a,isOptionEqualToValue:(e,l)=>("string"==typeof e.value?e.value.toLowerCase():e.value)===("string"==typeof l.value?l.value.toLowerCase():l.value),getOptionLabel:e=>{if(e&&e.label)return e.label;const l=a.find((l=>l.value===e));return l?l.label:e},onChange:(e,l)=>{let s=l&&l.value?l.value:"";t(s)},renderInput:e=>(0,c.jsx)(n.A,{...e,label:i,margin:"normal",variant:"outlined",fullWidth:!0})})})};var v=s(1621),m=s(1674);const u=(0,v.vt)(((e,l)=>({hosts:[],hostsLoaded:!1,fetchHosts:async l=>{try{const s=await m.Eo("get_hosts",{id:l});if(!s)return void console.error("No response received from the server.");let a=s.hosts;e({hosts:a,hostsLoaded:!0})}catch(e){console.error("Error:",e)}}})));var p=s(7723),_=s(4647);const f=(0,a.memo)((({field:e,showDisabledWhenSaving:l=!0})=>{const{updateField:s,setChangedField:d,saveFields:n,handleNextButtonDisabled:h}=(0,t.A)(),[r,v]=(0,a.useState)(!1),{fetchHosts:m,hosts:f,hostsLoaded:g}=u();(0,a.useEffect)((()=>{g||m()}),[]),(0,a.useEffect)((()=>{h(r)}),[r]);let x=g?f:[],Z=[],j={label:(0,p.__)("Optional - Select your hosting provider.","really-simple-ssl"),value:""};0===e.value.length&&Z.push(j);for(let e in x)if(x.hasOwnProperty(e)){let l={};l.label=x[e].name,l.value=e,Z.push(l)}return(0,c.jsx)(i.A,{theme:_.A,children:(0,c.jsx)(o,{className:"rsssl-select",field:e,label:e.label,onChange:a=>(async a=>{l&&v(!0),s(e.id,a),d(e.id,a),await n(!0,!1),v(!1)})(a),value:e.value,options:Z,disabled:r})})}))},215:(e,l,s)=>{s.d(l,{A:()=>r});var a=s(2304),i=s(1674),t=s(7723),d=s(1254),n=s(959),h=s(6087),c=s(790);const r=({field:e,isOnboarding:l})=>{const{fields:s,setChangedField:r,updateField:o}=(0,d.A)(),{toggleActivation:v,licenseStatus:m,setLicenseStatus:u,notices:p,setNotices:_,setLoadingState:f}=(0,n.A)();return(0,h.useEffect)((()=>{f()}),[]),(0,h.useEffect)((()=>{i.YA("licenseNotices","refresh").then((e=>e)).then((e=>{u(e.licenseStatus),_(e.notices)}))}),[s]),(0,c.jsxs)("div",{className:"components-base-control",children:[(0,c.jsxs)("div",{className:"components-base-control__field",children:[!l&&(0,c.jsx)("label",{className:"components-base-control__label",htmlFor:e.id,children:e.label}),(0,c.jsxs)("div",{className:"rsssl-license-field",children:[(0,c.jsx)("input",{className:"components-text-control__input",type:"password",id:e.id,value:e.value,onChange:l=>{return s=l.target.value,r(e.id,s),void o(e.id,s);var s}}),!l&&(0,c.jsxs)("button",{className:"button button-default",onClick:()=>v(e.value),children:["valid"===m&&(0,c.jsx)(c.Fragment,{children:(0,t.__)("Deactivate","really-simple-ssl")}),"valid"!==m&&(0,c.jsx)(c.Fragment,{children:(0,t.__)("Activate","really-simple-ssl")})]})]})]}),p.map(((e,l)=>(0,c.jsx)(a.A,{index:l,notice:e,highLightField:""},"task-"+l)))]})}},8069:(e,l,s)=>{s.d(l,{A:()=>c});var a=s(1621),i=s(1674),t=s(7723),d=s(6535),n=(s(1609),s(8743)),h=s(790);const c=(0,a.vt)(((e,l)=>({dummyRiskData:[{id:"force_update",name:"Force Update",value:"l",description:(0,t.__)("Force update the plugin or theme","really-simple-ssl")},{id:"quarantine",name:"Quarantine",value:"m",description:(0,t.__)("Isolates the plugin or theme if no update can be performed","really-simple-ssl")}],riskData:[],riskLevels:{l:1,m:2,h:3,c:4},vulnerabilities:[],processing:!1,dataLoaded:!1,updates:0,HighestRisk:!1,lastChecked:"",vulEnabled:!1,riskNaming:{},vulList:[],setDataLoaded:l=>e({dataLoaded:l}),updateRiskData:async(s,a)=>{if(!l().processing){e({processing:!0}),e((0,d.jM)((e=>{let i=e.riskData.findIndex((e=>e.id===s));e.riskData[i].value=a,e.riskData=l().enforceCascadingRiskLevels(e.riskData)})));try{await i.Eo("vulnerabilities_measures_set",{riskData:l().riskData}),e({dataLoaded:!0,processing:!1})}catch(e){console.log(e)}e({processing:!1})}},enforceCascadingRiskLevels:e=>{if(0===e.length)return e;let s=e.filter((e=>"force_update"===e.id))[0].value,a=e.filter((e=>"quarantine"===e.id))[0].value;s=l().riskLevels.hasOwnProperty(s)?l().riskLevels[s]:5,a=l().riskLevels.hasOwnProperty(a)?l().riskLevels[a]:5;let i=e.findIndex((e=>"quarantine"===e.id));a<s&&(e[i].value=Object.keys(l().riskLevels).find((e=>l().riskLevels[e]===s))),5===s&&(e[i].value="*");let t=s>0?s:0,d=Array.from(Array(t).keys()).map((e=>e));return d=d.map((e=>Object.keys(l().riskLevels).find((s=>l().riskLevels[s]===e)))),e[i].disabledRiskLevels=d,e},fetchFirstRun:async()=>{l().processing||(e({processing:!0}),await i.Eo("vulnerabilities_scan_files"),e({processing:!1}))},fetchVulnerabilities:async()=>{if(l().processing)return;e({processing:!0});let s={};try{const a=await i.Eo("hardening_data",s);let c=[],r=0;a.data.vulList&&(r=a.data.vulnerabilities,c=a.data.vulList,"object"==typeof c&&(c=Object.values(c)),c.forEach((function(e,l){let s=e.update_available?rsssl_settings.plugins_url+"?plugin_status=upgrade":"#settings/vulnerabilities";e.vulnerability_action=(0,h.jsxs)("div",{className:"rsssl-action-buttons",children:[(0,h.jsx)("a",{className:"rsssl-button button-secondary",href:(0,n.g)("https://really-simple-ssl.com/vulnerability/"+e.rss_identifier),target:"_blank",rel:"noopener noreferrer",children:(0,t.__)("Details","really-simple-ssl")}),(0,h.jsx)("a",{disabled:!e.update_available,href:s,className:"rsssl-button button-primary",children:(0,t.__)("Update","really-simple-ssl")})]})})));let o=a.data.riskData;Array.isArray(o)||(o=[]),o=l().enforceCascadingRiskLevels(o),e((0,d.jM)((e=>{e.vulnerabilities=r,e.vulList=c,e.updates=a.data.updates,e.dataLoaded=!0,e.riskNaming=a.data.riskNaming,e.lastChecked=a.data.lastChecked,e.vulEnabled=a.data.vulEnabled,e.riskData=o,e.processing=!1})))}catch(e){console.error(e)}},vulnerabilityCount:()=>{let e=l().vulList,s=[];return Object.keys(e).forEach((function(l){s.push(e[l])})),["c","h","m","l"].map((function(e){return{level:e,count:s.filter((function(l){return l.risk_level===e})).length}}))},vulnerabilityScore:()=>{let e=0,s=l().vulList;return Object.keys(s).forEach((function(l){"c"===s[l].risk_level?e=5:e<1&&(e=1)})),e},hardeningScore:()=>{let e=0,s=l().vulnerabilities;for(let l=0;l<s.length;l++)e+=s[l].hardening_score;return e},activateVulnerabilityScanner:async()=>{try{(await i.Eo("rsssl_scan_files")).request_success&&await l().fetchVulnerabilities()}catch(e){console.error(e)}}})))},4647:(e,l,s)=>{s.d(l,{A:()=>a});const a=(0,s(3478).A)({typography:{fontSize:12,fontFamily:"inherit"},components:{MuiAutocomplete:{styleOverrides:{inputRoot:{"& .MuiAutocomplete-input":{border:0},flexWrap:"inherit"},popper:{fontSize:"12px"},paper:{fontSize:"12px"},option:{fontSize:"12px"}}},MuiInputBase:{styleOverrides:{root:{fontSize:"12px",fontFamily:"inherit",height:"40px"}}},MuiList:{styleOverrides:{root:{fontSize:"8px"}}}}})}}]); webpack.config.js 0000777 00000001176 15252021227 0007774 0 ustar 00 const defaultConfig = require("@wordpress/scripts/config/webpack.config"); module.exports = { ...defaultConfig, output: { ...defaultConfig.output, filename: '[name].[contenthash].js', chunkFilename: '[name].[contenthash].js', }, resolve: { ...defaultConfig.resolve, fallback: { "path": require.resolve("path-browserify"), }, }, module: { ...defaultConfig.module, rules: [ ...defaultConfig.module.rules, { test: /\.node$/, loader: 'node-loader', }, ], }, };
| ver. 1.6 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0.07 |
proxy
|
phpinfo
|
Настройка