Plugin Directory

Changeset 3192496


Ignore:
Timestamp:
11/19/2024 04:34:32 PM (16 months ago)
Author:
tfirdaus
Message:

Update to version 1.4.0 from GitHub

Location:
syntatis-feature-flipper
Files:
2 added
2 deleted
37 edited
1 copied

Legend:

Unmodified
Added
Removed
  • syntatis-feature-flipper/tags/1.4.0/app/Features/AdminBar.php

    r3190602 r3192496  
    66
    77use SSFV\Codex\Contracts\Hookable;
    8 use SSFV\Codex\Facades\App;
    98use SSFV\Codex\Foundation\Hooks\Hook;
    109use Syntatis\FeatureFlipper\Option;
    1110use WP_Admin_Bar;
    1211
     12use function count;
    1313use function in_array;
    1414use function is_array;
    1515use function is_string;
    16 use function json_encode;
    17 use function sprintf;
    1816
    1917use const PHP_INT_MAX;
     
    2725    ];
    2826
    29     /** @var array<array{id:string}> */
    30     private static array $menu = [];
    31 
    3227    public function hook(Hook $hook): void
    3328    {
    34         $hook->addAction('admin_bar_menu', static fn () => self::$menu = self::getRegisteredMenu(), PHP_INT_MAX);
    35         $hook->addAction('admin_bar_menu', static fn () => wp_add_inline_script(
    36             App::name() . '-settings',
    37             self::getInlineScript(),
    38             'before',
    39         ), PHP_INT_MAX);
    40 
    41         // Admin Bar.
     29        $hook->addFilter('syntatis/feature_flipper/inline_data', [$this, 'setInlineData']);
    4230        $hook->addAction('admin_bar_menu', static function ($wpAdminBar): void {
    4331            $adminBarMenu = Option::get('admin_bar_menu');
     
    4735            }
    4836
    49             foreach (self::$menu as $menu) {
    50                 if (in_array($menu['id'], $adminBarMenu, true)) {
     37            $menu = self::getRegisteredMenu();
     38
     39            foreach ($menu as $item) {
     40                if (in_array($item['id'], $adminBarMenu, true)) {
    5141                    continue;
    5242                }
    5343
    54                 $wpAdminBar->remove_node($menu['id']);
     44                $wpAdminBar->remove_node($item['id']);
    5545            }
    5646        }, PHP_INT_MAX);
     
    6656    }
    6757
    68     private static function getInlineScript(): string
     58    /**
     59     * @param array<string,mixed> $data
     60     *
     61     * @return array<string,mixed>
     62     */
     63    public function setInlineData(array $data): array
    6964    {
    70         return sprintf(
    71             <<<'SCRIPT'
    72             window.$syntatis.featureFlipper = Object.assign({}, window.$syntatis.featureFlipper, {
    73                 adminBarMenu: %s,
    74             });
    75             SCRIPT,
    76             json_encode(self::$menu),
    77         );
     65        $data['adminBarMenu'] = self::getRegisteredMenu();
     66
     67        return $data;
    7868    }
    7969
     
    8171    private static function getRegisteredMenu(): array
    8272    {
     73        /** @var array<array{id:string}>|null $items */
     74        static $items = null;
     75
     76        if (is_array($items) && count($items) > 0) {
     77            return $items;
     78        }
     79
    8380        /** @var WP_Admin_Bar $wpAdminBarMenu */
    8481        $wpAdminBarMenu = $GLOBALS['wp_admin_bar'];
  • syntatis-feature-flipper/tags/1.4.0/app/Features/DashboardWidgets.php

    r3191076 r3192496  
    77use SSFV\Codex\Contracts\Hookable;
    88use SSFV\Codex\Facades\App;
    9 use SSFV\Codex\Facades\Config;
    109use SSFV\Codex\Foundation\Hooks\Hook;
    1110use Syntatis\FeatureFlipper\Option;
     
    1413use function array_map;
    1514use function array_values;
     15use function count;
    1616use function in_array;
    1717use function is_array;
    18 use function json_encode;
    1918use function preg_replace;
    20 use function sprintf;
    2119
    2220use const PHP_INT_MAX;
     
    3129    public function hook(Hook $hook): void
    3230    {
    33         $hook->addAction('admin_enqueue_scripts', static fn () => wp_add_inline_script(
    34             App::name() . '-settings',
    35             self::getInlineScript(),
    36             'before',
    37         ));
     31        $hook->addFilter('syntatis/feature_flipper/settings', [$this, 'setSettings']);
     32        $hook->addFilter('syntatis/feature_flipper/inline_data', [$this, 'setInlineData']);
    3833        $hook->addAction('current_screen', static function (WP_Screen $screen): void {
    3934            if ($screen->id !== 'settings_page_' . App::name()) {
     
    4641        });
    4742        $hook->addAction('wp_dashboard_setup', [$this, 'setup'], PHP_INT_MAX);
    48         $hook->addFilter('syntatis/feature_flipper/settings', [$this, 'setSettings']);
    4943    }
    5044
     
    6761    private static function setupEach(): void
    6862    {
    69         $widgets = self::getRegisteredWidgets();
    7063        $dashboardWidgets = $GLOBALS['wp_meta_boxes']['dashboard'] ?? null;
    7164        $values = Option::get('dashboard_widgets_enabled') ?? self::getAllDashboardId();
     
    9588    public function setSettings(array $data): array
    9689    {
    97         $optionName = Config::get('app.option_prefix') . 'dashboard_widgets_enabled';
     90        $optionName = Option::name('dashboard_widgets_enabled');
    9891        $widgetsEnabled = $data[$optionName] ?? null;
    9992
     
    10598    }
    10699
    107     public function addInlineScripts(): void
     100    /**
     101     * @param array<string,mixed> $data
     102     *
     103     * @return array<mixed>
     104     */
     105    public function setInlineData(array $data): array
    108106    {
    109     }
     107        $data['dashboardWidgets'] = self::$widgets;
    110108
    111     private static function getInlineScript(): string
    112     {
    113         return sprintf(
    114             <<<'SCRIPT'
    115             window.$syntatis.featureFlipper = Object.assign({}, window.$syntatis.featureFlipper, {
    116                 dashboardWidgets: %s,
    117             });
    118             SCRIPT,
    119             json_encode(self::$widgets),
    120         );
     109        return $data;
    121110    }
    122111
     
    131120        return array_values(array_map(
    132121            static fn (array $widget): string => $widget['id'],
    133             self::$widgets,
     122            self::getRegisteredWidgets(),
    134123        ));
    135124    }
     
    143132    private static function getRegisteredWidgets(): array
    144133    {
    145         static $dashboardWidgets = null;
     134        static $widgets = null;
     135
     136        if (is_array($widgets) && count($widgets) > 0) {
     137            return $widgets;
     138        }
     139
    146140        $currentScreen = get_current_screen();
    147141
     
    155149            set_current_screen('dashboard');
    156150            wp_dashboard_setup();
     151            set_current_screen($currentScreen->id);
    157152
    158153            $dashboardWidgets = $GLOBALS['wp_meta_boxes']['dashboard'] ?? null;
    159154            unset($GLOBALS['wp_meta_boxes']['dashboard']);
     155        } else {
     156            $dashboardWidgets = $GLOBALS['wp_meta_boxes']['dashboard'] ?? null;
    160157        }
    161158
    162         $optionName = Config::get('app.option_prefix') . 'dashboard_widgets_enabled';
     159        $optionName = Option::name('dashboard_widgets_enabled');
    163160        $widgets = [];
    164161
  • syntatis-feature-flipper/tags/1.4.0/app/Features/Embeds.php

    r3190602 r3192496  
    77use SSFV\Codex\Contracts\Hookable;
    88use SSFV\Codex\Facades\App;
    9 use SSFV\Codex\Facades\Config;
    109use SSFV\Codex\Foundation\Hooks\Hook;
     10use Syntatis\FeatureFlipper\Option;
    1111use WP;
    1212use WP_Scripts;
     
    2424    public function hook(Hook $hook): void
    2525    {
     26        if ((bool) Option::get('embed')) {
     27            return;
     28        }
     29
    2630        $hook->addAction('init', fn () => $this->disables($hook), PHP_INT_MAX);
    2731    }
     
    3539        // phpcs:enable
    3640
    37         $hook->addAction('update_option_' . Config::get('app.option_prefix') . 'cron', [$this, 'flushPermalinks']);
     41        $hook->addAction('update_option_' . Option::name('cron'), [$this, 'flushPermalinks']);
    3842        $hook->addAction('enqueue_block_editor_assets', [$this, 'disableOnBlockEditor']);
    3943        $hook->addAction('wp_default_scripts', [$this, 'disableScriptDependencies']);
  • syntatis-feature-flipper/tags/1.4.0/app/Option.php

    r3172294 r3192496  
    1212     * Retrieve the value of the plugin option.
    1313     *
     14     * @phpstan-param non-empty-string $name
     15     *
    1416     * @return mixed
    1517     */
    1618    public static function get(string $name)
    1719    {
    18         return get_option(Config::get('app.option_prefix') . $name);
     20        return get_option(self::name($name));
     21    }
     22
     23    /**
     24     * Retrieve the option name with th prefix.
     25     *
     26     * @phpstan-param non-empty-string $name
     27     */
     28    public static function name(string $name): string
     29    {
     30        return Config::get('app.option_prefix') . $name;
    1931    }
    2032}
  • syntatis-feature-flipper/tags/1.4.0/app/Plugin.php

    r3190602 r3192496  
    1515    {
    1616        $settings = $container->get(Settings::class);
     17        $switches = $this->getSwitches();
    1718
    1819        if ($settings instanceof Settings) {
    19             // Add the setting page.
    2020            yield new SettingPage($settings);
    2121        }
    2222
    23         // Apply the feature switches.
     23        foreach ($switches as $switch) {
     24            yield $switch;
     25
     26            if (! ($switch instanceof Extendable)) {
     27                continue;
     28            }
     29
     30            yield from $switch->getInstances($container);
     31        }
     32
     33        // Mark as initialized.
     34        do_action('syntatis/feature_flipper/init', $container);
     35    }
     36
     37    /** @return iterable<object> */
     38    private function getSwitches(): iterable
     39    {
    2440        yield new Switches\Admin();
    2541        yield new Switches\Assets();
     
    2844        yield new Switches\Security();
    2945        yield new Switches\Webpage();
    30 
    31         // Mark as initialized.
    32         do_action('syntatis/feature-flipper/init', $container);
    3346    }
    3447}
  • syntatis-feature-flipper/tags/1.4.0/app/SettingPage.php

    r3191076 r3192496  
    1919
    2020use const ARRAY_FILTER_USE_KEY;
     21use const PHP_INT_MAX;
    2122
    2223class SettingPage implements Hookable
     
    2425    private Settings $settings;
    2526
     27    private string $handle;
     28
     29    private string $pageName;
     30
    2631    public function __construct(Settings $settings)
    2732    {
     33        $name = App::name();
     34
    2835        $this->settings = $settings;
     36        $this->handle = $name . '-settings';
     37        $this->pageName = 'settings_page_' . $name;
    2938    }
    3039
     
    3342        $hook->addAction('admin_menu', [$this, 'addMenu']);
    3443        $hook->addAction('admin_enqueue_scripts', [$this, 'enqueueAdminScripts']);
     44        $hook->addAction('admin_bar_menu', [$this, 'addAdminInlineScripts'], PHP_INT_MAX);
    3545    }
    3646
     
    7989    public function enqueueAdminScripts(string $adminPage): void
    8090    {
    81         /**
    82          * List of admin pages where the plugin scripts and stylesheet should load.
    83          */
    84         $adminPages = [
    85             'settings_page_' . App::name(),
    86             'post.php',
    87             'post-new.php',
    88         ];
    89 
    90         if (! in_array($adminPage, $adminPages, true)) {
     91        if ($adminPage !== $this->pageName) {
    9192            return;
    9293        }
    9394
    94         $handle = App::name() . '-settings';
    9595        $assets = App::dir('dist/assets/setting-page/index.asset.php');
    9696        $assets = is_readable($assets) ? require $assets : [];
    9797
    9898        wp_enqueue_style(
    99             $handle,
     99            $this->handle,
    100100            App::url('dist/assets/setting-page/index.css'),
    101101            [],
     
    104104
    105105        wp_enqueue_script(
    106             $handle,
     106            $this->handle,
    107107            App::url('dist/assets/setting-page/index.js'),
    108108            $assets['dependencies'] ?? [],
     
    111111        );
    112112
     113        wp_set_script_translations($this->handle, 'syntatis-feature-flipper');
     114    }
     115
     116    public function addAdminInlineScripts(): void
     117    {
     118        $currentScreen = get_current_screen();
     119
     120        if ($currentScreen === null || $currentScreen->id !== $this->pageName) {
     121            return;
     122        }
     123
    113124        wp_add_inline_script(
    114             $handle,
     125            $this->handle,
    115126            $this->getInlineScript(),
    116127            'before',
    117128        );
    118 
    119         wp_set_script_translations($handle, 'syntatis-feature-flipper');
    120129    }
    121130
     
    155164            window.$syntatis = { featureFlipper: %s };
    156165            SCRIPT,
    157             wp_json_encode(['/wp/v2/settings' => ['body' => apply_filters('syntatis/feature_flipper/settings', $data)]]),
    158166            wp_json_encode([
    159                 'settingPage' => get_admin_url(null, 'options-general.php?page=' . App::name()),
    160                 'settingPageTab' => $_GET['tab'] ?? null,
     167                '/wp/v2/settings' => [
     168                    'body' => apply_filters('syntatis/feature_flipper/settings', $data),
     169                ],
    161170            ]),
     171            wp_json_encode(
     172                apply_filters('syntatis/feature_flipper/inline_data', [
     173                    'settingPage' => get_admin_url(null, 'options-general.php?page=' . App::name()),
     174                    'settingPageTab' => $_GET['tab'] ?? null,
     175                    'themeSupport' => [
     176                        'widgetsBlockEditor' => get_theme_support('widgets-block-editor'),
     177                    ],
     178                ]),
     179            ),
    162180        );
    163181    }
  • syntatis-feature-flipper/tags/1.4.0/app/Switches/Admin.php

    r3190602 r3192496  
    55namespace Syntatis\FeatureFlipper\Switches;
    66
     7use SSFV\Codex\Contracts\Extendable;
    78use SSFV\Codex\Contracts\Hookable;
    89use SSFV\Codex\Foundation\Hooks\Hook;
     10use SSFV\Psr\Container\ContainerInterface;
    911use Syntatis\FeatureFlipper\Features\AdminBar;
    1012use Syntatis\FeatureFlipper\Features\DashboardWidgets;
    1113use Syntatis\FeatureFlipper\Option;
    1214
    13 class Admin implements Hookable
     15class Admin implements Hookable, Extendable
    1416{
    1517    public function hook(Hook $hook): void
     
    2022        }
    2123
    22         if (! (bool) Option::get('update_nags')) {
    23             $hook->addAction('admin_init', static function () use ($hook): void {
    24                 $hook->removeAction('admin_notices', 'update_nag', 3);
    25                 $hook->removeAction('network_admin_notices', 'update_nag', 3);
    26             }, 99);
     24        if ((bool) Option::get('update_nags')) {
     25            return;
    2726        }
    2827
    29         $dashboardWidgets = new DashboardWidgets();
    30         $dashboardWidgets->hook($hook);
     28        $hook->addAction('admin_init', static function () use ($hook): void {
     29            $hook->removeAction('admin_notices', 'update_nag', 3);
     30            $hook->removeAction('network_admin_notices', 'update_nag', 3);
     31        }, 99);
     32    }
    3133
    32         $adminBar = new AdminBar();
    33         $adminBar->hook($hook);
     34    /** @return iterable<object> */
     35    public function getInstances(ContainerInterface $container): iterable
     36    {
     37        yield new DashboardWidgets();
     38        yield new AdminBar();
    3439    }
    3540}
  • syntatis-feature-flipper/tags/1.4.0/app/Switches/General.php

    r3191076 r3192496  
    55namespace Syntatis\FeatureFlipper\Switches;
    66
     7use SSFV\Codex\Contracts\Extendable;
    78use SSFV\Codex\Contracts\Hookable;
    8 use SSFV\Codex\Facades\Config;
    99use SSFV\Codex\Foundation\Hooks\Hook;
     10use SSFV\Psr\Container\ContainerInterface;
    1011use Syntatis\FeatureFlipper\Features\Embeds;
     12use Syntatis\FeatureFlipper\Features\Feeds;
    1113use Syntatis\FeatureFlipper\Option;
    1214
     
    1416use function define;
    1517use function defined;
     18use function is_numeric;
    1619use function str_starts_with;
    1720
    18 class General implements Hookable
     21use const PHP_INT_MAX;
     22
     23class General implements Hookable, Extendable
    1924{
    2025    public function hook(Hook $hook): void
     
    5358        }
    5459
    55         // 4. Cron.
    56         if (! (bool) Option::get('cron') && ! defined('DISABLE_WP_CRON')) {
     60        if (! (bool) Option::get('cron') && defined('DISABLE_WP_CRON')) {
    5761            define('DISABLE_WP_CRON', true);
    5862        }
    5963
    60         // 5. Embed.
    61         if (! (bool) Option::get('embed')) {
    62             (new Embeds())->hook($hook);
     64        $maxRevisions = Option::get('revisions_max');
     65
     66        if (! (bool) Option::get('revisions')) {
     67            if (! defined('WP_POST_REVISIONS')) {
     68                define('WP_POST_REVISIONS', 0);
     69            }
     70
     71            $maxRevisions = 0;
    6372        }
    6473
    65         // 6. Feeds.
    66         if ((bool) Option::get('feeds')) {
    67             return;
    68         }
    69 
    70         // Disable feeds.
    71         $hook->addAction('do_feed', [$this, 'toHomepage'], -99);
    72         $hook->addAction('do_feed_rdf', [$this, 'toHomepage'], -99);
    73         $hook->addAction('do_feed_rss', [$this, 'toHomepage'], -99);
    74         $hook->addAction('do_feed_rss2', [$this, 'toHomepage'], -99);
    75         $hook->addAction('do_feed_atom', [$this, 'toHomepage'], -99);
    76 
    77         // Disable comments feeds.
    78         $hook->addAction('do_feed_rss2_comments', [$this, 'toHomepage'], -99);
    79         $hook->addAction('do_feed_atom_comments', [$this, 'toHomepage'], -99);
    80 
    81         // Remove RSS feed links.
    82         $hook->addFilter('feed_links_show_posts_feed', '__return_false', 99);
    83 
    84         // Remove all extra RSS feed links.
    85         $hook->addFilter('feed_links_show_comments_feed', '__return_false', 99);
    86     }
    87 
    88     public function toHomepage(): void
    89     {
    90         wp_redirect(home_url());
    91         exit;
     74        $hook->addFilter(
     75            'wp_revisions_to_keep',
     76            static fn ($num) => is_numeric($maxRevisions) ?
     77                (int) $maxRevisions :
     78                $num,
     79            PHP_INT_MAX,
     80        );
    9281    }
    9382
     
    9988    public function setSettings(array $data): array
    10089    {
    101         $optionName = Config::get('app.option_prefix') . 'block_based_widgets';
     90        $optionName = Option::name('block_based_widgets');
    10291        $value = Option::get('block_based_widgets');
    10392
     
    10897        return $data;
    10998    }
     99
     100    /** @return iterable<object> */
     101    public function getInstances(ContainerInterface $container): iterable
     102    {
     103        yield new Embeds();
     104        yield new Feeds();
     105    }
    110106}
  • syntatis-feature-flipper/tags/1.4.0/app/Switches/Media.php

    r3191076 r3192496  
    7070            'jpeg_quality',
    7171            static function ($quality, string $context) {
    72                 if ((bool) Option::get('jpeg_compression')) {
    73                     return Option::get('jpeg_compression_quality');
     72                if (! (bool) Option::get('jpeg_compression')) {
     73                    return $quality;
    7474                }
    7575
    76                 return 100;
     76                return Option::get('jpeg_compression_quality');
    7777            },
    7878            99,
  • syntatis-feature-flipper/tags/1.4.0/dist/assets/setting-page/index-rtl.css

    r3191076 r3192496  
    33.Sow9V_g44_njwPuM6v_z{padding-top:1rem}.rbliHJE9bgQbN73QIyJv{margin-bottom:.5rem;margin-top:1rem}.AuG3fVwRuf5i2coEeXag{margin-top:0}
    44.wp-core-ui ._root_umbom_1 ._track_umbom_1{fill:#c3c4c7}.wp-core-ui ._root_umbom_1 ._thumb_umbom_4{fill:#fff}.wp-core-ui ._root_umbom_1 ._input_umbom_7{align-items:center;display:flex;gap:4px;transform:translate(4px)}.wp-core-ui ._root_umbom_1 ._focusRing_umbom_13{stroke:var(--kubrick-accent-color)}.wp-core-ui ._root_umbom_1._isSelected_umbom_16 ._track_umbom_1{fill:var(--kubrick-accent-color)}.wp-core-ui ._root_umbom_1._isDisabled_umbom_19{cursor:not-allowed}.wp-core-ui ._root_umbom_1._isDisabled_umbom_19 ._track_umbom_1{opacity:.7}
    5 .TUy4RFlIpp1NJGmEaFMV{margin-top:.75rem}
     5.as6IPxn7zk9kjjsv9cX6{margin-top:.75rem}
    66._root_mk25k_1{display:grid;grid-template-columns:auto;grid-template-rows:max-content max-content 1fr max-content max-content}._root_mk25k_1 ._inputWrapper_mk25k_6{align-items:center;display:flex;gap:6px}._root_mk25k_1 ._input_mk25k_6[type=number]{padding-left:0}._root_mk25k_1._invalid_mk25k_14 ._input_mk25k_6{border-color:var(--kubrick-invalid-color);outline-color:var(--kubrick-invalid-color);outline-width:1px}._root_mk25k_1 ._label_mk25k_19{cursor:pointer;display:inline-block;font-weight:600;grid-row:1/2;margin-block-end:6px;width:-moz-max-content;width:max-content}._root_mk25k_1 ._markedRequired_mk25k_27{color:var(--kubrick-invalid-color);margin-inline-start:.25rem}._root_mk25k_1[aria-disabled=true] ._label_mk25k_19{cursor:not-allowed}._root_mk25k_1._descriptionBeforeInput_mk25k_34 ._label_mk25k_19{margin-block-end:0}._root_mk25k_1 ._description_mk25k_34{color:var(--kubrick-description-color);grid-row:4/5;margin-block:6px 0}._root_mk25k_1._descriptionBeforeInput_mk25k_34 ._description_mk25k_34{grid-row:2/3;margin-block:0 6px}._root_mk25k_1 ._errorMessage_mk25k_46{color:var(--kubrick-invalid-color);grid-row:3/4;margin-block:6px 0}._root_mk25k_1 ._errorMessage_mk25k_46 p{margin-block:0 2px}._root_mk25k_1 ._label_mk25k_19{cursor:default}._root_mk25k_1 ._items_mk25k_57{display:flex;flex-direction:column;gap:6px;margin-block:2px}._root_mk25k_1._horizontal_mk25k_63 ._items_mk25k_57{flex-direction:row;gap:12px}
    77._root_lmlip_1{display:flex;flex-direction:column;gap:4px;max-width:100%;width:-moz-max-content;width:max-content}._root_lmlip_1 ._label_lmlip_8{display:flex;gap:8px}._root_lmlip_1 ._label_lmlip_8 input{flex-shrink:0}._root_lmlip_1 ._input_lmlip_15[type=checkbox]{margin:0}._root_lmlip_1 ._description_lmlip_18{color:#646970}._root_lmlip_1 ._input_lmlip_15:-moz-read-only{cursor:default}._root_lmlip_1 ._input_lmlip_15:read-only,._root_lmlip_1._readOnly_lmlip_21{cursor:default}._root_lmlip_1 ._input_lmlip_15:disabled,._root_lmlip_1._disabled_lmlip_25{cursor:not-allowed}._root_lmlip_1 ._labelContent_lmlip_29{display:flex;flex-direction:column;gap:4px}@media screen and (width <= 782px){._root_lmlip_1 ._labelContent_lmlip_29{padding-top:3px}}
    8 .nahtfAEfFXgPHNvOz8wZ{margin-top:.75rem}
    9 .d3SxeXcdHN_itpLm8MKC,.sCDPQZ_IJkwNEdVCg6sf{margin-top:.75rem}.sCDPQZ_IJkwNEdVCg6sf{display:flex;justify-content:space-between}
    108._root_ptfvg_1{display:grid;grid-template-columns:auto;grid-template-rows:max-content max-content 1fr max-content max-content}._root_ptfvg_1 ._inputWrapper_ptfvg_6{align-items:center;display:flex;gap:6px}._root_ptfvg_1 ._input_ptfvg_6[type=number]{padding-left:0}._root_ptfvg_1._invalid_ptfvg_14 ._input_ptfvg_6{border-color:var(--kubrick-invalid-color);outline-color:var(--kubrick-invalid-color);outline-width:1px}._root_ptfvg_1 ._label_ptfvg_19{cursor:pointer;display:inline-block;font-weight:600;grid-row:1/2;margin-block-end:6px;width:-moz-max-content;width:max-content}._root_ptfvg_1 ._markedRequired_ptfvg_27{color:var(--kubrick-invalid-color);margin-inline-start:.25rem}._root_ptfvg_1[aria-disabled=true] ._label_ptfvg_19{cursor:not-allowed}._root_ptfvg_1._descriptionBeforeInput_ptfvg_34 ._label_ptfvg_19{margin-block-end:0}._root_ptfvg_1 ._description_ptfvg_34{color:var(--kubrick-description-color);grid-row:4/5;margin-block:6px 0}._root_ptfvg_1._descriptionBeforeInput_ptfvg_34 ._description_ptfvg_34{grid-row:2/3;margin-block:0 6px}._root_ptfvg_1 ._errorMessage_ptfvg_46{color:var(--kubrick-invalid-color);grid-row:3/4;margin-block:6px 0}._root_ptfvg_1 ._errorMessage_ptfvg_46 p{margin-block:0 2px}
    119:root{--kubrick-accent-color:#2271b1;--kubrick-invalid-color:#d63638;--kubrick-description-color:#646970;--kubrick-outline-color:var(--kubrick-accent-color);--kubrick-body-background-color:#f0f0f1}.admin-color-blue{--kubrick-accent-color:#096484}.admin-color-coffee{--kubrick-accent-color:#c7a589}.admin-color-ectoplasm{--kubrick-accent-color:#a3b745}.admin-color-midnight{--kubrick-accent-color:#e14d43}.admin-color-ocean{--kubrick-accent-color:#9ebaa0}.admin-color-sunrise{--kubrick-accent-color:#dd823b}.admin-color-modern{--kubrick-accent-color:#3858e9}.admin-color-light{--kubrick-accent-color:#04a4cc;--kubrick-body-background-color:#f5f5f5}.admin-color-light body{background-color:var(--kubrick-body-background-color)}
  • syntatis-feature-flipper/tags/1.4.0/dist/assets/setting-page/index.asset.php

    r3191076 r3192496  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '5f64071b59e2f122e4eb');
     1<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '23b2ba6c668e291df029');
  • syntatis-feature-flipper/tags/1.4.0/dist/assets/setting-page/index.css

    r3191076 r3192496  
    33.Sow9V_g44_njwPuM6v_z{padding-top:1rem}.rbliHJE9bgQbN73QIyJv{margin-bottom:.5rem;margin-top:1rem}.AuG3fVwRuf5i2coEeXag{margin-top:0}
    44.wp-core-ui ._root_umbom_1 ._track_umbom_1{fill:#c3c4c7}.wp-core-ui ._root_umbom_1 ._thumb_umbom_4{fill:#fff}.wp-core-ui ._root_umbom_1 ._input_umbom_7{align-items:center;display:flex;gap:4px;transform:translate(-4px)}.wp-core-ui ._root_umbom_1 ._focusRing_umbom_13{stroke:var(--kubrick-accent-color)}.wp-core-ui ._root_umbom_1._isSelected_umbom_16 ._track_umbom_1{fill:var(--kubrick-accent-color)}.wp-core-ui ._root_umbom_1._isDisabled_umbom_19{cursor:not-allowed}.wp-core-ui ._root_umbom_1._isDisabled_umbom_19 ._track_umbom_1{opacity:.7}
    5 .TUy4RFlIpp1NJGmEaFMV{margin-top:.75rem}
     5.as6IPxn7zk9kjjsv9cX6{margin-top:.75rem}
    66._root_mk25k_1{display:grid;grid-template-columns:auto;grid-template-rows:max-content max-content 1fr max-content max-content}._root_mk25k_1 ._inputWrapper_mk25k_6{align-items:center;display:flex;gap:6px}._root_mk25k_1 ._input_mk25k_6[type=number]{padding-right:0}._root_mk25k_1._invalid_mk25k_14 ._input_mk25k_6{border-color:var(--kubrick-invalid-color);outline-color:var(--kubrick-invalid-color);outline-width:1px}._root_mk25k_1 ._label_mk25k_19{cursor:pointer;display:inline-block;font-weight:600;grid-row:1/2;margin-block-end:6px;width:-moz-max-content;width:max-content}._root_mk25k_1 ._markedRequired_mk25k_27{color:var(--kubrick-invalid-color);margin-inline-start:.25rem}._root_mk25k_1[aria-disabled=true] ._label_mk25k_19{cursor:not-allowed}._root_mk25k_1._descriptionBeforeInput_mk25k_34 ._label_mk25k_19{margin-block-end:0}._root_mk25k_1 ._description_mk25k_34{color:var(--kubrick-description-color);grid-row:4/5;margin-block:6px 0}._root_mk25k_1._descriptionBeforeInput_mk25k_34 ._description_mk25k_34{grid-row:2/3;margin-block:0 6px}._root_mk25k_1 ._errorMessage_mk25k_46{color:var(--kubrick-invalid-color);grid-row:3/4;margin-block:6px 0}._root_mk25k_1 ._errorMessage_mk25k_46 p{margin-block:0 2px}._root_mk25k_1 ._label_mk25k_19{cursor:default}._root_mk25k_1 ._items_mk25k_57{display:flex;flex-direction:column;gap:6px;margin-block:2px}._root_mk25k_1._horizontal_mk25k_63 ._items_mk25k_57{flex-direction:row;gap:12px}
    77._root_lmlip_1{display:flex;flex-direction:column;gap:4px;max-width:100%;width:-moz-max-content;width:max-content}._root_lmlip_1 ._label_lmlip_8{display:flex;gap:8px}._root_lmlip_1 ._label_lmlip_8 input{flex-shrink:0}._root_lmlip_1 ._input_lmlip_15[type=checkbox]{margin:0}._root_lmlip_1 ._description_lmlip_18{color:#646970}._root_lmlip_1 ._input_lmlip_15:-moz-read-only{cursor:default}._root_lmlip_1 ._input_lmlip_15:read-only,._root_lmlip_1._readOnly_lmlip_21{cursor:default}._root_lmlip_1 ._input_lmlip_15:disabled,._root_lmlip_1._disabled_lmlip_25{cursor:not-allowed}._root_lmlip_1 ._labelContent_lmlip_29{display:flex;flex-direction:column;gap:4px}@media screen and (width <= 782px){._root_lmlip_1 ._labelContent_lmlip_29{padding-top:3px}}
    8 .nahtfAEfFXgPHNvOz8wZ{margin-top:.75rem}
    9 .d3SxeXcdHN_itpLm8MKC,.sCDPQZ_IJkwNEdVCg6sf{margin-top:.75rem}.sCDPQZ_IJkwNEdVCg6sf{display:flex;justify-content:space-between}
    108._root_ptfvg_1{display:grid;grid-template-columns:auto;grid-template-rows:max-content max-content 1fr max-content max-content}._root_ptfvg_1 ._inputWrapper_ptfvg_6{align-items:center;display:flex;gap:6px}._root_ptfvg_1 ._input_ptfvg_6[type=number]{padding-right:0}._root_ptfvg_1._invalid_ptfvg_14 ._input_ptfvg_6{border-color:var(--kubrick-invalid-color);outline-color:var(--kubrick-invalid-color);outline-width:1px}._root_ptfvg_1 ._label_ptfvg_19{cursor:pointer;display:inline-block;font-weight:600;grid-row:1/2;margin-block-end:6px;width:-moz-max-content;width:max-content}._root_ptfvg_1 ._markedRequired_ptfvg_27{color:var(--kubrick-invalid-color);margin-inline-start:.25rem}._root_ptfvg_1[aria-disabled=true] ._label_ptfvg_19{cursor:not-allowed}._root_ptfvg_1._descriptionBeforeInput_ptfvg_34 ._label_ptfvg_19{margin-block-end:0}._root_ptfvg_1 ._description_ptfvg_34{color:var(--kubrick-description-color);grid-row:4/5;margin-block:6px 0}._root_ptfvg_1._descriptionBeforeInput_ptfvg_34 ._description_ptfvg_34{grid-row:2/3;margin-block:0 6px}._root_ptfvg_1 ._errorMessage_ptfvg_46{color:var(--kubrick-invalid-color);grid-row:3/4;margin-block:6px 0}._root_ptfvg_1 ._errorMessage_ptfvg_46 p{margin-block:0 2px}
    119:root{--kubrick-accent-color:#2271b1;--kubrick-invalid-color:#d63638;--kubrick-description-color:#646970;--kubrick-outline-color:var(--kubrick-accent-color);--kubrick-body-background-color:#f0f0f1}.admin-color-blue{--kubrick-accent-color:#096484}.admin-color-coffee{--kubrick-accent-color:#c7a589}.admin-color-ectoplasm{--kubrick-accent-color:#a3b745}.admin-color-midnight{--kubrick-accent-color:#e14d43}.admin-color-ocean{--kubrick-accent-color:#9ebaa0}.admin-color-sunrise{--kubrick-accent-color:#dd823b}.admin-color-modern{--kubrick-accent-color:#3858e9}.admin-color-light{--kubrick-accent-color:#04a4cc;--kubrick-body-background-color:#f5f5f5}.admin-color-light body{background-color:var(--kubrick-body-background-color)}
  • syntatis-feature-flipper/tags/1.4.0/dist/assets/setting-page/index.js

    r3191076 r3192496  
    1 (()=>{"use strict";var e,t,n,i,r={6858:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{Y:()=>p});var r=n(7723),s=n(1034),a=n(6420),l=n(3412),o=n(9662),d=(n(6044),n(4709)),c=n(790),u=e([o,d]);[o,d]=u.then?(await u)():u;const p=()=>{const{inlineData:e}=(0,d.Mp)();return(0,c.jsx)(s.O,{navigate:!0,url:e.settingPage,children:(0,c.jsxs)(a.t,{selectedKey:e.settingPageTab||void 0,children:[(0,c.jsx)(l.o,{title:(0,r.__)("General","syntatis-feature-flipper"),children:(0,c.jsx)(o.a5,{})},"general"),(0,c.jsx)(l.o,{title:(0,r.__)("Admin","syntatis-feature-flipper"),children:(0,c.jsx)(o.nQ,{})},"admin"),(0,c.jsx)(l.o,{title:(0,r.__)("Media","syntatis-feature-flipper"),children:(0,c.jsx)(o.Ct,{})},"media"),(0,c.jsx)(l.o,{title:(0,r.__)("Assets","syntatis-feature-flipper"),children:(0,c.jsx)(o.Bh,{})},"assets"),(0,c.jsx)(l.o,{title:(0,r.__)("Webpage","syntatis-feature-flipper"),children:(0,c.jsx)(o.p2,{})},"webpage"),(0,c.jsx)(l.o,{title:(0,r.__)("Security","syntatis-feature-flipper"),children:(0,c.jsx)(o.SV,{})},"security")]})})};i()}catch(e){i(e)}}))},3951:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{L:()=>o});var r=n(8740),s=n(1270),a=n(790),l=e([r]);r=(l.then?(await l)():l)[0];const o=({children:e,title:t,description:n})=>{const{updating:i}=(0,r.M)();return(0,a.jsxs)("div",{className:s.A.section,children:[t?(0,a.jsx)("h2",{className:`title ${s.A.title}`,children:t}):null,n?(0,a.jsx)("p",{className:s.A.description,children:n}):null,(0,a.jsx)("fieldset",{disabled:i,children:(0,a.jsx)("table",{className:"form-table",role:"presentation",children:(0,a.jsx)("tbody",{children:e})})})]})};i()}catch(e){i(e)}}))},3397:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{c:()=>c,l:()=>u});var r=n(6087),s=n(3731),a=n(8740),l=n(6017),o=n(790),d=e([s,a,l]);[s,a,l]=d.then?(await d)():d;const c=(0,r.createContext)(),u=({children:e})=>{const t=(0,r.useRef)(),{submitValues:n,optionPrefix:i,values:d,setStatus:u}=(0,a.M)(),[p,f]=(0,r.useState)({});return(0,r.useEffect)((()=>{if(!t)return;const e=t.current,n={};for(const t in e.elements){const r=e.elements[t];r.name!==i&&r.name?.startsWith(i)&&(n[r.name]=d[r.name])}f(n)}),[]),(0,o.jsx)(c.Provider,{value:{setFieldsetValues:(e,t)=>{f({...p,[`${i}${e}`]:t})}},children:(0,o.jsxs)("form",{ref:t,method:"POST",onSubmit:e=>{e.preventDefault();const t={};for(const e in p)e in d&&d[e]!==p[e]&&(t[e]=p[e]);0!==Object.keys(t).length?n(t):u("no-change")},children:[(0,o.jsx)(l.N,{}),e,(0,o.jsx)(s.b,{})]})})};i()}catch(e){i(e)}}))},6017:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{N:()=>f});var r=n(9180),s=n(7723),a=n(8740),l=n(790),o=e([a]);a=(o.then?(await o)():o)[0];const d={success:(0,s.__)("Settings saved.","syntatis-feature-flipper"),error:(0,s.__)("Settings failed to save.","syntatis-feature-flipper"),"no-change":(0,s.__)("No changes were made.","syntatis-feature-flipper")},c={success:"success",error:"error","no-change":"info"};function u(e){return d[e]||""}function p(e){return c[e]||"info"}const f=()=>{const{updating:e,status:t,setStatus:n}=(0,a.M)();if(e)return null;const i=u(t);return t&&i&&(0,l.jsx)(r.$,{isDismissable:!0,level:p(t),onDismiss:()=>n(null),children:(0,l.jsx)("strong",{children:i})})};i()}catch(h){i(h)}}))},5143:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{Z:()=>d,l:()=>o});var r=n(6087),s=n(4427),a=n(790),l=e([s]);s=(l.then?(await l)():l)[0];const o=(0,r.createContext)(),d=({children:e,inlineData:t})=>{const n="syntatis_feature_flipper_",i="syntatis-feature-flipper-",{status:r,updating:l,values:d,errorMessages:c,setStatus:u,setValues:p,submitValues:f,getOption:h,initialValues:g,updatedValues:v}=(0,s.t)();return(0,a.jsx)(o.Provider,{value:{errorMessages:c,status:r,updating:l,values:d,optionPrefix:n,setStatus:u,submitValues:f,initialValues:g,inlineData:t,updatedValues:v,setValues:(e,t)=>{p({...d,[`${n}${e}`]:t})},getOption:e=>h(`${n}${e}`),labelProps:e=>({htmlFor:`${i}${e}`,id:`${i}${e}-label`}),inputProps:e=>{const t=e.replaceAll("_","-");return{"aria-labelledby":`${i}${t}-label`,id:`${i}${t}`,name:`${n}${e}`}}},children:e})};i()}catch(e){i(e)}}))},3731:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{b:()=>c});var r=n(7723),s=n(1152),a=n(3677),l=n(8740),o=n(790),d=e([l]);l=(d.then?(await d)():d)[0];const c=()=>{const{updating:e}=(0,l.M)();return(0,o.jsx)("div",{className:"submit",children:(0,o.jsx)(s.$,{isDisabled:e,prefix:e&&(0,o.jsx)(a.y,{}),type:"submit",children:e?(0,r.__)("Saving Changes","syntatis-feature-flipper"):(0,r.__)("Save Changes","syntatis-feature-flipper")})})};i()}catch(e){i(e)}}))},4709:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{LB:()=>s.L,Mp:()=>o.M,Z6:()=>l.Z,lV:()=>r.l,xW:()=>d.x});var r=n(3397),s=n(3951),a=n(6017),l=n(5143),o=n(8740),d=n(2221),c=e([r,s,a,l,o,d]);[r,s,a,l,o,d]=c.then?(await c)():c,i()}catch(e){i(e)}}))},2221:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{x:()=>l});var r=n(6087),s=n(3397),a=e([s]);s=(a.then?(await a)():a)[0];const l=()=>{const e=(0,r.useContext)(s.c);if(!e)throw new Error("useFormContext must be used within a Fieldset");return e};i()}catch(e){i(e)}}))},4427:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{t:()=>d});var r=n(1455),s=n.n(r),a=n(6087);const l=await s()({path:"/wp/v2/settings",method:"GET"});function o(e){const t=e?.match(/: \[(.*?)\] (.+) in/);return t?{[t[1]]:t[2]}:null}const d=()=>{const[e,t]=(0,a.useState)(l),[n,i]=(0,a.useState)(),[r,d]=(0,a.useState)(),[c,u]=(0,a.useState)(!1),[p,f]=(0,a.useState)({});return(0,a.useEffect)((()=>{c&&f({})}),[c]),{values:e,status:n,errorMessages:p,updating:c,submitValues:n=>{u(!0),s()({path:"/wp/v2/settings",method:"POST",data:n}).then((n=>{t((t=>{for(const n in t)Object.keys(e).includes(n)||delete t[n];return t})(n)),i("success")})).catch((e=>{const t=o(e?.data?.error?.message);f((e=>{if(t)return{...e,...t}})),i("error")})).finally((()=>{d(n),u(!1)}))},setValues:t,setStatus:i,getOption:function(t){return e[t]},initialValues:l,updatedValues:r}};i()}catch(c){i(c)}}),1)},8740:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{M:()=>l});var r=n(6087),s=n(5143),a=e([s]);s=(a.then?(await a)():a)[0];const l=()=>{const e=(0,r.useContext)(s.l);if(!e)throw new Error("useSettingsContext must be used within a SettingsProvider");return e};i()}catch(e){i(e)}}))},7719:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{q:()=>f});var r=n(7723),s=n(6754),a=n(8509),l=n(9204),o=n(4709),d=n(9580),c=n(6087),u=n(790),p=e([s,o]);[s,o]=p.then?(await p)():p;const f=()=>{var e;const{getOption:t,inputProps:n,inlineData:i}=(0,o.Mp)(),{setFieldsetValues:p}=(0,o.xW)(),f=(0,c.useId)(),h=i.adminBarMenu||[];return(0,u.jsx)(s.d,{name:"admin_bar",id:"admin-bar",title:(0,r.__)("Admin Bar","syntatis-feature-flipper"),label:(0,r.__)("Show the Admin bar on the front end","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the Admin bar will not be displayed on the front end.","syntatis-feature-flipper"),children:(0,u.jsxs)("details",{className:d.A.menuDetails,children:[(0,u.jsx)("summary",{children:(0,u.jsx)("strong",{id:f,children:(0,r.__)("Menu","syntatis-feature-flipper")})}),(0,u.jsx)(a.$,{defaultValue:null!==(e=t("admin_bar_menu"))&&void 0!==e?e:h.map((({id:e})=>e)),"aria-labelledby":f,description:(0,r.__)("Unchecked menu items will be hidden from the Admin bar.","syntatis-feature-flipper"),onChange:e=>p("admin_bar_menu",e),...n("admin_bar_menu"),children:h.map((({id:e})=>(0,u.jsx)(l.S,{value:e,label:(0,u.jsx)("code",{children:e})},e)))})]})})};i()}catch(e){i(e)}}))},6832:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{T:()=>f});var r=n(7723),s=n(6754),a=n(8509),l=n(9204),o=n(4709),d=n(8071),c=n(6087),u=n(790),p=e([s,o]);[s,o]=p.then?(await p)():p;const f=()=>{var e;const{getOption:t,inputProps:n,inlineData:i}=(0,o.Mp)(),{setFieldsetValues:p}=(0,o.xW)(),[f,h]=(0,c.useState)(t("dashboard_widgets")),g=(0,c.useId)(),v=i.dashboardWidgets||[],y=null!==(e=t("dashboard_widgets_enabled"))&&void 0!==e?e:null;return(0,u.jsx)(s.d,{name:"dashboard_widgets",id:"dashboard-widgets",title:(0,r.__)("Dashboard Widgets","syntatis-feature-flipper"),label:(0,r.__)("Enable Dashboard widgets","syntatis-feature-flipper"),description:(0,r.__)("When switched off, all widgets will be hidden from the dashboard.","syntatis-feature-flipper"),onChange:h,children:f&&(0,u.jsxs)("details",{className:d.A.widgetsDetails,children:[(0,u.jsx)("summary",{children:(0,u.jsx)("strong",{id:g,children:(0,r.__)("Widgets","syntatis-feature-flipper")})}),(0,u.jsx)(a.$,{defaultValue:y,"aria-labelledby":g,description:(0,r.__)("Unchecked widgets will be hidden from the dashboard.","syntatis-feature-flipper"),onChange:e=>{p("dashboard_widgets_enabled",e)},...n("dashboard_widgets_enabled"),children:v.map((({id:e,title:t})=>(0,u.jsx)(l.S,{value:e,label:t},e)))})]})})};i()}catch(e){i(e)}}))},3277:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{k:()=>p});var r=n(7723),s=n(6754),a=n(3682),l=n(4709),o=n(3766),d=n(6087),c=n(790),u=e([s,l]);[s,l]=u.then?(await u)():u;const p=()=>{const{getOption:e}=(0,l.Mp)(),{setFieldsetValues:t}=(0,l.xW)(),[n,i]=(0,d.useState)(e("jpeg_compression"));return(0,c.jsx)(s.d,{name:"jpeg_compression",id:"jpeg-compression",title:(0,r.__)("JPEG Compression","syntatis-feature-flipper"),label:(0,r.__)("Enable JPEG image compression","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will upload the original JPEG image in its full quality, without any compression.","syntatis-feature-flipper"),onChange:i,children:n&&(0,c.jsxs)("details",{className:o.A.settingsDetails,children:[(0,c.jsx)("summary",{children:(0,c.jsx)("strong",{children:(0,r.__)("Settings","syntatis-feature-flipper")})}),(0,c.jsx)("div",{className:o.A.settingsInputs,children:(0,c.jsx)(a.A,{min:10,max:100,type:"number",name:"jpeg_compression_quality",defaultValue:e("jpeg_compression_quality"),onChange:e=>{t("jpeg_compression_quality",e)},className:"code",label:(0,r.__)("Quality","syntatis-feature-flipper"),description:(0,r.__)("The quality of the compressed JPEG image. 100 is the highest quality.","syntatis-feature-flipper"),suffix:"%"})})]})})};i()}catch(e){i(e)}}))},6754:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{d:()=>o});var r=n(3413),s=n(4709),a=n(790),l=e([s]);s=(l.then?(await l)():l)[0];const o=({description:e,id:t,label:n,name:i,onChange:l,title:o,children:d})=>{const{labelProps:c,inputProps:u,getOption:p}=(0,s.Mp)(),{setFieldsetValues:f}=(0,s.xW)();return(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{scope:"row",children:(0,a.jsx)("label",{...c(t),children:o})}),(0,a.jsxs)("td",{children:[(0,a.jsx)(r.d,{...u(i),onChange:e=>{void 0!==l&&l(e),f(i,e)},defaultSelected:p(i),description:e,label:n}),d]})]})};i()}catch(e){i(e)}}))},1238:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{TF:()=>s.T,dR:()=>l.d,km:()=>a.k,qE:()=>r.q});var r=n(7719),s=n(6832),a=n(3277),l=n(6754),o=e([r,s,a,l]);[r,s,a,l]=o.then?(await o)():o,i()}catch(e){i(e)}}))},341:(e,t,n)=>{n.a(e,(async(e,t)=>{try{var i=n(8490),r=n.n(i),s=n(6087),a=n(4709),l=n(6858),o=n(790),d=e([a,l]);[a,l]=d.then?(await d)():d,r()((()=>{const e=document.querySelector("#syntatis-feature-flipper-settings");e&&(0,s.createRoot)(e).render((0,o.jsx)(a.Z6,{inlineData:window.$syntatis.featureFlipper,children:(0,o.jsx)(l.Y,{})}))})),t()}catch(e){t(e)}}))},7834:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{n:()=>u});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=document.querySelector("#wpfooter"),c=d?.style?.display,u=()=>(0,l.jsxs)(s.lV,{children:[(0,l.jsxs)(s.LB,{children:[(0,l.jsx)(a.TF,{}),(0,l.jsx)(a.dR,{name:"admin_footer_text",id:"admin-footer-text",title:(0,r.__)("Footer Text","syntatis-feature-flipper"),label:(0,r.__)("Show the footer text","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the footer text in the admin area will be removed.","syntatis-feature-flipper"),onChange:e=>{d&&(d.style.display=e?c:"none")}}),(0,l.jsx)(a.dR,{name:"update_nags",id:"update-nags",title:(0,r.__)("Update Nags","syntatis-feature-flipper"),label:(0,r.__)("Enable WordPress update notification message","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not show notification message when update is available.","syntatis-feature-flipper")})]}),(0,l.jsxs)(s.LB,{title:(0,r.__)("Admin Bar","syntatis-feature-flipper"),description:(0,r.__)("Customize the Admin bar area","syntatis-feature-flipper"),children:[(0,l.jsx)(a.qE,{}),(0,l.jsx)(a.dR,{name:"admin_bar_howdy",id:"admin-bar-howdy",title:(0,r.__)("Howdy Text","syntatis-feature-flipper"),label:(0,r.__)('Show the "Howdy" text',"syntatis-feature-flipper"),description:(0,r.__)('When switched off, the "Howdy" text in the Account menu in the admin bar will be removed.',"syntatis-feature-flipper")})]})]});i()}catch(e){i(e)}}))},922:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{B:()=>d});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{description:(0,r.__)("Control the behavior of scripts, styles, and images loaded on your site.","syntatis-feature-flipper"),children:[(0,l.jsx)(a.dR,{name:"emojis",id:"emojis",title:(0,r.__)("Emojis","syntatis-feature-flipper"),label:(0,r.__)("Enable the WordPress built-in emojis","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not load the emojis scripts, styles, and images.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"scripts_version",id:"scripts-version",title:(0,r.__)("Scripts Version","syntatis-feature-flipper"),label:(0,r.__)("Show scripts and styles version","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not append the version to the scripts and styles URLs.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"jquery_migrate",id:"scripts-version",title:(0,r.__)("jQuery Migrate","syntatis-feature-flipper"),label:(0,r.__)("Load jQuery Migrate script","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not load the jQuery Migrate script.","syntatis-feature-flipper")})]})});i()}catch(e){i(e)}}))},8905:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{a:()=>d});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{children:[(0,l.jsx)(a.dR,{name:"gutenberg",id:"gutenberg",title:"Gutenberg",label:(0,r.__)("Enable the block editor","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the block editor will be disabled and the classic editor will be used.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"block_based_widgets",id:"block-based-widgets",title:"Block-based Widgets",label:(0,r.__)("Enable the block-based widgets","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the block-based widgets will be disabled and the classic widgets will be used.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"heartbeat",id:"heartbeat",title:"Heartbeat",label:(0,r.__)("Enable the Heartbeat API","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the Heartbeat API will be disabled; it will not be sending requests.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"self_ping",id:"self-ping",title:"Self-ping",label:(0,r.__)("Enable self-pingbacks","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not send pingbacks to your own site.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"cron",id:"cron",title:"Cron",label:(0,r.__)("Enable cron","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not run scheduled events.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"embed",id:"embed",title:"Embed",label:(0,r.__)("Enable post embedding","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will disable other sites from embedding content from your site, and vice-versa.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"feeds",id:"feeds",title:"Feeds",label:(0,r.__)("Enable RSS feeds","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will disable the RSS feed URLs.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"auto_update",id:"auto-update",title:(0,r.__)("Auto Update","syntatis-feature-flipper"),label:(0,r.__)("Enable WordPress auto update","syntatis-feature-flipper"),description:(0,r.__)("When switched off, you will need to manually update WordPress.","syntatis-feature-flipper")})]})});i()}catch(e){i(e)}}))},8357:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{C:()=>d});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{children:[(0,l.jsx)(a.dR,{name:"attachment_page",id:"attachment-page",title:(0,r.__)("Attachment Page","syntatis-feature-flipper"),label:(0,r.__)("Enable page for uploaded media files","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not create attachment pages for media files.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"attachment_slug",id:"attachment-slug",title:(0,r.__)("Attachment Slug","syntatis-feature-flipper"),label:(0,r.__)("Enable default media file slug","syntatis-feature-flipper"),description:(0,r.__)("When switched off, attachment page will get a randomized slug instead of taking from the original file name.","syntatis-feature-flipper")}),(0,l.jsx)(a.km,{})]})});i()}catch(e){i(e)}}))},3061:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{S:()=>p});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=document.querySelector('#adminmenu a[href="theme-editor.php"]'),c=document.querySelector('#adminmenu a[href="plugin-editor.php"]'),u={themeEditors:d?.parentElement?.style?.display,pluginEditors:c?.parentElement?.style?.display},p=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{children:[(0,l.jsx)(a.dR,{name:"file_edit",id:"file-edit",title:(0,r.__)("File Edit","syntatis-feature-flipper"),label:(0,r.__)("Enable the File Editor","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will disable the file editor for themes and plugins.","syntatis-feature-flipper"),onChange:e=>{d&&(d.parentElement.style.display=e?u.themeEditors:"none"),c&&(c.parentElement.style.display=e?u.pluginEditors:"none")}}),(0,l.jsx)(a.dR,{name:"xmlrpc",id:"xmlrpc",title:(0,r.__)("XML-RPC","syntatis-feature-flipper"),label:(0,r.__)("Enable XML-RPC","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will disable the XML-RPC endpoint.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"authenticated_rest_api",id:"authenticated-rest-api",title:(0,r.__)("REST API Authentication","syntatis-feature-flipper"),label:(0,r.__)("Enable REST API Authentication","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will allow users to make request to the public REST API endpoint without authentication.","syntatis-feature-flipper")})]})});i()}catch(e){i(e)}}))},5088:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{p:()=>d});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{title:"Metadata",description:(0,r.__)("Control the document metadata added in the HTML head.","syntatis-feature-flipper"),children:[(0,l.jsx)(a.dR,{name:"rsd_link",id:"rsd-link",title:(0,r.__)("RSD Link","syntatis-feature-flipper"),label:(0,r.__)("Enable RSD link","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will remove the Really Simple Discovery (RSD) link from the webpage head.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"generator_tag",id:"generator-tag",title:(0,r.__)("Generator Meta Tag","syntatis-feature-flipper"),label:(0,r.__)("Add WordPress generator meta tag","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will remove the generator meta tag which shows WordPress and its version.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"shortlink",id:"shortlink",title:(0,r.__)("Shortlink","syntatis-feature-flipper"),label:(0,r.__)("Add Shortlink","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will remove the shortlink meta tag which shows the short URL of the webpage head.","syntatis-feature-flipper")})]})});i()}catch(e){i(e)}}))},9662:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{Bh:()=>s.B,Ct:()=>l.C,SV:()=>o.S,a5:()=>a.a,nQ:()=>r.n,p2:()=>d.p});var r=n(7834),s=n(922),a=n(8905),l=n(8357),o=n(3061),d=n(5088),c=e([r,s,a,l,o,d]);[r,s,a,l,o,d]=c.then?(await c)():c,i()}catch(e){i(e)}}))},6044:()=>{},1270:(e,t,n)=>{n.d(t,{A:()=>i});const i={section:"Sow9V_g44_njwPuM6v_z",title:"rbliHJE9bgQbN73QIyJv",description:"AuG3fVwRuf5i2coEeXag"}},9580:(e,t,n)=>{n.d(t,{A:()=>i});const i={menuDetails:"TUy4RFlIpp1NJGmEaFMV"}},8071:(e,t,n)=>{n.d(t,{A:()=>i});const i={widgetsDetails:"nahtfAEfFXgPHNvOz8wZ"}},3766:(e,t,n)=>{n.d(t,{A:()=>i});const i={settingsDetails:"d3SxeXcdHN_itpLm8MKC",settingsInputs:"sCDPQZ_IJkwNEdVCg6sf"}},1609:e=>{e.exports=window.React},790:e=>{e.exports=window.ReactJSXRuntime},1455:e=>{e.exports=window.wp.apiFetch},8490:e=>{e.exports=window.wp.domReady},6087:e=>{e.exports=window.wp.element},7723:e=>{e.exports=window.wp.i18n},9229:(e,t,n)=>{n.d(t,{s:()=>l});var i=n(2217),r=n(5987),s=n(9681),a=n(364);function l(e,t){let n,{elementType:l="button",isDisabled:o,onPress:d,onPressStart:c,onPressEnd:u,onPressUp:p,onPressChange:f,preventFocusOnPress:h,allowFocusWhenDisabled:g,onClick:v,href:y,target:m,rel:b,type:A="button"}=e;n="button"===l?{type:A,disabled:o}:{role:"button",tabIndex:o?void 0:0,href:"a"===l&&o?void 0:y,target:"a"===l?m:void 0,type:"input"===l?A:void 0,disabled:"input"===l?o:void 0,"aria-disabled":o&&"input"!==l?o:void 0,rel:"a"===l?b:void 0};let{pressProps:w,isPressed:E}=(0,a.d)({onPressStart:c,onPressEnd:u,onPressChange:f,onPress:d,onPressUp:p,isDisabled:o,preventFocusOnPress:h,ref:t}),{focusableProps:x}=(0,s.W)(e,t);g&&(x.tabIndex=o?-1:x.tabIndex);let C=(0,i.v)(x,w,(0,r.$)(e,{labelable:!0}));return{isPressed:E,buttonProps:(0,i.v)(n,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{v&&(v(e),console.warn("onClick is deprecated, please use onPress"))}})}}},2526:(e,t,n)=>{n.d(t,{n:()=>i});const i=new WeakMap},8374:(e,t,n)=>{n.d(t,{l:()=>l});var i=n(4836),r=n(7233),s=n(2268),a=n(5562);function l(e){const t=(0,i.T)(e);if("virtual"===(0,a.ME)()){let n=t.activeElement;(0,r.v)((()=>{t.activeElement===n&&e.isConnected&&(0,s.e)(e)}))}else(0,s.e)(e)}},6133:(e,t,n)=>{n.d(t,{o:()=>l});var i=n(5562),r=n(3424),s=n(9461),a=n(1609);function l(e={}){let{autoFocus:t=!1,isTextInput:n,within:l}=e,o=(0,a.useRef)({isFocused:!1,isFocusVisible:t||(0,i.pP)()}),[d,c]=(0,a.useState)(!1),[u,p]=(0,a.useState)((()=>o.current.isFocused&&o.current.isFocusVisible)),f=(0,a.useCallback)((()=>p(o.current.isFocused&&o.current.isFocusVisible)),[]),h=(0,a.useCallback)((e=>{o.current.isFocused=e,c(e),f()}),[f]);(0,i.K7)((e=>{o.current.isFocusVisible=e,f()}),[],{isTextInput:n});let{focusProps:g}=(0,r.i)({isDisabled:l,onFocusChange:h}),{focusWithinProps:v}=(0,s.R)({isDisabled:!l,onFocusWithinChange:h});return{isFocused:d,isFocusVisible:u,focusProps:l?v:g}}},9681:(e,t,n)=>{n.d(t,{W:()=>c});var i=n(8374),r=n(6660),s=n(2217),a=n(1609),l=n(3424);function o(e){if(!e)return;let t=!0;return n=>{let i={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(i),t&&n.stopPropagation()}}let d=a.createContext(null);function c(e,t){let{focusProps:n}=(0,l.i)(e),{keyboardProps:c}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:o(e.onKeyDown),onKeyUp:o(e.onKeyUp)}}}(e),u=(0,s.v)(n,c),p=function(e){let t=(0,a.useContext)(d)||{};(0,r.w)(t,e);let{ref:n,...i}=t;return i}(t),f=e.isDisabled?{}:p,h=(0,a.useRef)(e.autoFocus);return(0,a.useEffect)((()=>{h.current&&t.current&&(0,i.l)(t.current),h.current=!1}),[t]),{focusableProps:(0,s.v)({...u,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},f)}}},8868:(e,t,n)=>{n.d(t,{X:()=>l});var i=n(5562),r=n(1609),s=n(9953),a=n(7049);function l(e,t,n){let{validationBehavior:l,focus:d}=e;(0,s.N)((()=>{if("native"===l&&(null==n?void 0:n.current)){let i=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(i),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=n.current).validity.valid,validationDetails:o(e),validationErrors:e.validationMessage?[e.validationMessage]:[]})}var e}));let c=(0,a.J)((()=>{t.resetValidation()})),u=(0,a.J)((e=>{var r;t.displayValidation.isInvalid||t.commitValidation();let s=null==n||null===(r=n.current)||void 0===r?void 0:r.form;var a;!e.defaultPrevented&&n&&s&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}(s)===n.current&&(d?d():null===(a=n.current)||void 0===a||a.focus(),(0,i.Cl)("keyboard")),e.preventDefault()})),p=(0,a.J)((()=>{t.commitValidation()}));(0,r.useEffect)((()=>{let e=null==n?void 0:n.current;if(!e)return;let t=e.form;return e.addEventListener("invalid",u),e.addEventListener("change",p),null==t||t.addEventListener("reset",c),()=>{e.removeEventListener("invalid",u),e.removeEventListener("change",p),null==t||t.removeEventListener("reset",c)}}),[n,u,p,c,l])}function o(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}},3424:(e,t,n)=>{n.d(t,{i:()=>a});var i=n(2894),r=n(1609),s=n(4836);function a(e){let{isDisabled:t,onFocus:n,onBlur:a,onFocusChange:l}=e;const o=(0,r.useCallback)((e=>{if(e.target===e.currentTarget)return a&&a(e),l&&l(!1),!0}),[a,l]),d=(0,i.y)(o),c=(0,r.useCallback)((e=>{const t=(0,s.T)(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),l&&l(!0),d(e))}),[l,n,d]);return{focusProps:{onFocus:!t&&(n||l||a)?c:void 0,onBlur:t||!a&&!l?void 0:o}}}},5562:(e,t,n)=>{n.d(t,{Cl:()=>x,K7:()=>k,ME:()=>E,pP:()=>w});var i=n(9202),r=n(8948),s=n(4836),a=n(1609);let l=null,o=new Set,d=new Map,c=!1,u=!1;const p={Tab:!0,Escape:!0};function f(e,t){for(let n of o)n(e,t)}function h(e){c=!0,function(e){return!(e.metaKey||!(0,i.cX)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(l="keyboard",f("keyboard",e))}function g(e){l="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(c=!0,f("pointer",e))}function v(e){(0,r.Y)(e)&&(c=!0,l="virtual")}function y(e){e.target!==window&&e.target!==document&&(c||u||(l="virtual",f("virtual",e)),c=!1,u=!1)}function m(){c=!1,u=!0}function b(e){if("undefined"==typeof window||d.get((0,s.m)(e)))return;const t=(0,s.m)(e),n=(0,s.T)(e);let i=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){c=!0,i.apply(this,arguments)},n.addEventListener("keydown",h,!0),n.addEventListener("keyup",h,!0),n.addEventListener("click",v,!0),t.addEventListener("focus",y,!0),t.addEventListener("blur",m,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",g,!0),n.addEventListener("pointermove",g,!0),n.addEventListener("pointerup",g,!0)):(n.addEventListener("mousedown",g,!0),n.addEventListener("mousemove",g,!0),n.addEventListener("mouseup",g,!0)),t.addEventListener("beforeunload",(()=>{A(e)}),{once:!0}),d.set(t,{focus:i})}const A=(e,t)=>{const n=(0,s.m)(e),i=(0,s.T)(e);t&&i.removeEventListener("DOMContentLoaded",t),d.has(n)&&(n.HTMLElement.prototype.focus=d.get(n).focus,i.removeEventListener("keydown",h,!0),i.removeEventListener("keyup",h,!0),i.removeEventListener("click",v,!0),n.removeEventListener("focus",y,!0),n.removeEventListener("blur",m,!1),"undefined"!=typeof PointerEvent?(i.removeEventListener("pointerdown",g,!0),i.removeEventListener("pointermove",g,!0),i.removeEventListener("pointerup",g,!0)):(i.removeEventListener("mousedown",g,!0),i.removeEventListener("mousemove",g,!0),i.removeEventListener("mouseup",g,!0)),d.delete(n))};function w(){return"pointer"!==l}function E(){return l}function x(e){l=e,f(e,null)}"undefined"!=typeof document&&function(e){const t=(0,s.T)(e);let n;"loading"!==t.readyState?b(e):(n=()=>{b(e)},t.addEventListener("DOMContentLoaded",n))}();const C=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function k(e,t,n){b(),(0,a.useEffect)((()=>{let t=(t,i)=>{(function(e,t,n){var i;const r="undefined"!=typeof window?(0,s.m)(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,a="undefined"!=typeof window?(0,s.m)(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l="undefined"!=typeof window?(0,s.m)(null==n?void 0:n.target).HTMLElement:HTMLElement,o="undefined"!=typeof window?(0,s.m)(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof r&&!C.has(null==n||null===(i=n.target)||void 0===i?void 0:i.type)||(null==n?void 0:n.target)instanceof a||(null==n?void 0:n.target)instanceof l&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof o&&!p[n.key])})(!!(null==n?void 0:n.isTextInput),t,i)&&e(w())};return o.add(t),()=>{o.delete(t)}}),t)}},9461:(e,t,n)=>{n.d(t,{R:()=>s});var i=n(2894),r=n(1609);function s(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:s,onFocusWithinChange:a}=e,l=(0,r.useRef)({isFocusWithin:!1}),o=(0,r.useCallback)((e=>{l.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(l.current.isFocusWithin=!1,n&&n(e),a&&a(!1))}),[n,a,l]),d=(0,i.y)(o),c=(0,r.useCallback)((e=>{l.current.isFocusWithin||document.activeElement!==e.target||(s&&s(e),a&&a(!0),l.current.isFocusWithin=!0,d(e))}),[s,a,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:o}}}},364:(e,t,n)=>{n.d(t,{d:()=>S});var i=n(9202),r=n(4836),s=n(7233);let a="default",l="",o=new WeakMap;function d(e){if((0,i.un)()){if("default"===a){const t=(0,r.T)(e);l=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}a="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(o.set(e,e.style.userSelect),e.style.userSelect="none")}function c(e){if((0,i.un)()){if("disabled"!==a)return;a="restoring",setTimeout((()=>{(0,s.v)((()=>{if("restoring"===a){const t=(0,r.T)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=l||""),l="",a="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&o.has(e)){let t=o.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),o.delete(e)}}var u=n(1609);const p=u.createContext({register:()=>{}});function f(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function h(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,f(e,t,"set"),n),n}p.displayName="PressResponderContext";var g=n(2217),v=n(6660),y=n(6948),m=n(7049),b=n(2166),A=n(3831),w=n(8948),E=n(2268),x=new WeakMap;class C{continuePropagation(){h(this,x,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(this,f(this,x,"get"))}constructor(e,t,n,i){var r,s,a,l;l={writable:!0,value:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(s=this,a=x),a.set(s,l),h(this,x,!0);let o=null!==(r=null==i?void 0:i.target)&&void 0!==r?r:n.currentTarget;const d=null==o?void 0:o.getBoundingClientRect();let c,u,p=0,f=null;null!=n.clientX&&null!=n.clientY&&(u=n.clientX,f=n.clientY),d&&(null!=u&&null!=f?(c=u-d.left,p=f-d.top):(c=d.width/2,p=d.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=c,this.y=p}}const k=Symbol("linkClicked");function S(e){let{onPress:t,onPressChange:n,onPressStart:s,onPressEnd:a,onPressUp:l,isDisabled:o,isPressed:f,preventFocusOnPress:h,shouldCancelOnPointerExit:x,allowTextSelectionOnPress:S,ref:B,...L}=function(e){let t=(0,u.useContext)(p);if(t){let{register:n,...i}=t;e=(0,g.v)(i,e),n()}return(0,v.w)(t,e.ref),e}(e),[j,F]=(0,u.useState)(!1),Q=(0,u.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:Y,removeAllGlobalListeners:G}=(0,y.A)(),W=(0,m.J)(((e,t)=>{let i=Q.current;if(o||i.didFirePressStart)return!1;let r=!0;if(i.isTriggeringEvent=!0,s){let n=new C("pressstart",t,e);s(n),r=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,F(!0),r})),H=(0,m.J)(((e,i,r=!0)=>{let s=Q.current;if(!s.didFirePressStart)return!1;s.ignoreClickAfterPress=!0,s.didFirePressStart=!1,s.isTriggeringEvent=!0;let l=!0;if(a){let t=new C("pressend",i,e);a(t),l=t.shouldStopPropagation}if(n&&n(!1),F(!1),t&&r&&!o){let n=new C("press",i,e);t(n),l&&(l=n.shouldStopPropagation)}return s.isTriggeringEvent=!1,l})),U=(0,m.J)(((e,t)=>{let n=Q.current;if(o)return!1;if(l){n.isTriggeringEvent=!0;let i=new C("pressup",t,e);return l(i),n.isTriggeringEvent=!1,i.shouldStopPropagation}return!0})),O=(0,m.J)((e=>{let t=Q.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&H(I(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,G(),S||c(t.target))})),J=(0,m.J)((e=>{x&&O(e)})),V=(0,u.useMemo)((()=>{let e=Q.current,t={onKeyDown(t){if(P(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var s;N(t.target,t.key)&&t.preventDefault();let a=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,a=W(t,"keyboard");let i=t.currentTarget,s=t=>{P(t,i)&&!t.repeat&&i.contains(t.target)&&e.target&&U(I(e.target,t),"keyboard")};Y((0,r.T)(t.currentTarget),"keyup",(0,b.c)(s,n),!0)}a&&t.stopPropagation(),t.metaKey&&(0,i.cX)()&&(null===(s=e.metaKeyEvents)||void 0===s||s.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!A.Fe.isOpening){let n=!0;if(o&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||(0,w.Y)(t.nativeEvent))){o||h||(0,E.e)(t.currentTarget);let e=W(t,"virtual"),i=U(t,"virtual"),r=H(t,"virtual");n=e&&i&&r}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&P(t,e.target)){var i;N(t.target,t.key)&&t.preventDefault();let n=t.target;H(I(e.target,t),"keyboard",e.target.contains(n)),G(),"Enter"!==t.key&&T(e.target)&&e.target.contains(n)&&!t[k]&&(t[k]=!0,(0,A.Fe)(e.target,t,!1)),e.isPressed=!1,null===(i=e.metaKeyEvents)||void 0===i||i.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var r;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(r=e.target)||void 0===r||r.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if((0,w.P)(t.nativeEvent))return void(e.pointerType="virtual");D(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let s=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,o||h||(0,E.e)(t.currentTarget),S||d(e.target),s=W(t,e.pointerType),Y((0,r.T)(t.currentTarget),"pointermove",n,!1),Y((0,r.T)(t.currentTarget),"pointerup",i,!1),Y((0,r.T)(t.currentTarget),"pointercancel",a,!1)),s&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(D(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&_(t,t.currentTarget)&&U(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&_(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,W(I(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,H(I(e.target,t),e.pointerType,!1),J(t)))},i=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(_(t,e.target)&&null!=e.pointerType?H(I(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&H(I(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,G(),S||c(e.target),"ontouchend"in e.target&&"mouse"!==t.pointerType&&Y(e.target,"touchend",s,{once:!0}))},s=e=>{R(e.currentTarget)&&e.preventDefault()},a=e=>{O(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&O(e)}}else{t.onMouseDown=t=>{0===t.button&&t.currentTarget.contains(t.target)&&(D(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents?t.stopPropagation():(e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=(0,w.Y)(t.nativeEvent)?"virtual":"mouse",o||h||(0,E.e)(t.currentTarget),W(t,e.pointerType)&&t.stopPropagation(),Y((0,r.T)(t.currentTarget),"mouseup",n,!1)))},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=W(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=H(t,e.pointerType,!1),J(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||U(t,e.pointerType||"mouse"))};let n=t=>{0===t.button&&(e.isPressed=!1,G(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&_(t,e.target)&&null!=e.pointerType?H(I(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&H(I(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",o||h||(0,E.e)(t.currentTarget),S||d(e.target),W(M(e.target,t),e.pointerType)&&t.stopPropagation(),Y((0,r.m)(t.currentTarget),"scroll",i,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=K(t.nativeEvent,e.activePointerId),i=!0;n&&_(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,i=W(M(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,i=H(M(e.target,t),e.pointerType,!1),J(M(e.target,t))),i&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=K(t.nativeEvent,e.activePointerId),i=!0;n&&_(n,t.currentTarget)&&null!=e.pointerType?(U(M(e.target,t),e.pointerType),i=H(M(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(i=H(M(e.target,t),e.pointerType,!1)),i&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!S&&c(e.target),G()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&O(M(e.target,t)))};let i=t=>{e.isPressed&&t.target.contains(e.target)&&O({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&O(e)}}return t}),[Y,o,h,G,S,O,J,H,W,U]);return(0,u.useEffect)((()=>()=>{var e;S||c(null!==(e=Q.current.target)&&void 0!==e?e:void 0)}),[S]),{isPressed:f||j,pressProps:(0,g.v)(L,V)}}function T(e){return"A"===e.tagName&&e.hasAttribute("href")}function P(e,t){const{key:n,code:i}=e,s=t,a=s.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==i||s instanceof(0,r.m)(s).HTMLInputElement&&!L(s,n)||s instanceof(0,r.m)(s).HTMLTextAreaElement||s.isContentEditable||("link"===a||!a&&T(s))&&"Enter"!==n)}function K(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const i=n[e];if(i.identifier===t)return i}return null}function M(e,t){let n=0,i=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,i=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:i}}function I(e,t){let n=t.clientX,i=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:i}}function _(e,t){let n=t.getBoundingClientRect(),i=function(e){let t=0,n=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?n=e.height/2:void 0!==e.radiusY&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return s=i,!((r=n).left>s.right||s.left>r.right||r.top>s.bottom||s.top>r.bottom);var r,s}function D(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function R(e){return!(e instanceof HTMLInputElement||(e instanceof HTMLButtonElement?"submit"===e.type||"reset"===e.type:T(e)))}function N(e,t){return e instanceof HTMLInputElement?!L(e,t):R(e)}const B=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function L(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:B.has(e.type)}},2894:(e,t,n)=>{n.d(t,{y:()=>l});var i=n(1609),r=n(9953),s=n(7049);class a{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function l(e){let t=(0,i.useRef)({isFocused:!1,observer:null});(0,r.N)((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=(0,s.J)((t=>{null==e||e(t)}));return(0,i.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=e.target,r=e=>{t.current.isFocused=!1,i.disabled&&n(new a("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",r,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&i.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}},4742:(e,t,n)=>{n.d(t,{M:()=>a});var i=n(2145),r=n(7061);var s=n(2217);function a(e){let{description:t,errorMessage:n,isInvalid:a,validationState:l}=e,{labelProps:o,fieldProps:d}=function(e){let{id:t,label:n,"aria-labelledby":s,"aria-label":a,labelElementType:l="label"}=e;t=(0,i.Bi)(t);let o=(0,i.Bi)(),d={};return n?(s=s?`${o} ${s}`:o,d={id:o,htmlFor:"label"===l?t:void 0}):s||a||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:d,fieldProps:(0,r.b)({id:t,"aria-label":a,"aria-labelledby":s})}}(e),c=(0,i.X1)([Boolean(t),Boolean(n),a,l]),u=(0,i.X1)([Boolean(t),Boolean(n),a,l]);return d=(0,s.v)(d,{"aria-describedby":[c,u,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:d,descriptionProps:{id:c},errorMessageProps:{id:u}}}},415:(e,t,n)=>{n.d(t,{Cc:()=>d,wR:()=>f});var i=n(1609);const r={prefix:String(Math.round(1e10*Math.random())),current:0},s=i.createContext(r),a=i.createContext(!1);let l=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),o=new WeakMap;const d="function"==typeof i.useId?function(e){let t=i.useId(),[n]=(0,i.useState)(f());return e||`${n?"react-aria":`react-aria${r.prefix}`}-${t}`}:function(e){let t=(0,i.useContext)(s);t!==r||l||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=function(e=!1){let t=(0,i.useContext)(s),n=(0,i.useRef)(null);if(null===n.current&&!e){var r,a;let e=null===(a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===a||null===(r=a.ReactCurrentOwner)||void 0===r?void 0:r.current;if(e){let n=o.get(e);null==n?o.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,o.delete(e))}n.current=++t.current}return n.current}(!!e),a=`react-aria${t.prefix}`;return e||`${a}-${n}`};function c(){return!1}function u(){return!0}function p(e){return()=>{}}function f(){return"function"==typeof i.useSyncExternalStore?i.useSyncExternalStore(p,c,u):(0,i.useContext)(a)}},5353:(e,t,n)=>{n.d(t,{e:()=>o});var i=n(2217),r=n(5987),s=n(8343),a=n(9681),l=n(364);function o(e,t,n){let{isDisabled:o=!1,isReadOnly:d=!1,value:c,name:u,children:p,"aria-label":f,"aria-labelledby":h,validationState:g="valid",isInvalid:v}=e;null!=p||null!=f||null!=h||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:y,isPressed:m}=(0,l.d)({isDisabled:o}),{pressProps:b,isPressed:A}=(0,l.d)({isDisabled:o||d,onPress(){t.toggle()}}),{focusableProps:w}=(0,a.W)(e,n),E=(0,i.v)(y,w),x=(0,r.$)(e,{labelable:!0});return(0,s.F)(n,t.isSelected,t.setSelected),{labelProps:(0,i.v)(b,{onClick:e=>e.preventDefault()}),inputProps:(0,i.v)(x,{"aria-invalid":v||"invalid"===g||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":d||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:o,...null==c?{}:{value:c},name:u,type:"checkbox",...E}),isSelected:t.isSelected,isPressed:m||A,isDisabled:o,isReadOnly:d,isInvalid:v||"invalid"===g}}},2166:(e,t,n)=>{function i(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}n.d(t,{c:()=>i})},4836:(e,t,n)=>{n.d(t,{T:()=>i,m:()=>r});const i=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},r=e=>e&&"window"in e&&e.window===e?e:i(e).defaultView||window},5987:(e,t,n)=>{n.d(t,{$:()=>l});const i=new Set(["id"]),r=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),s=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),a=/^(data-.*)$/;function l(e,t={}){let{labelable:n,isLink:l,propNames:o}=t,d={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i.has(t)||n&&r.has(t)||l&&s.has(t)||(null==o?void 0:o.has(t))||a.test(t))&&(d[t]=e[t]);return d}},2268:(e,t,n)=>{function i(e){if(function(){if(null==r){r=!1;try{document.createElement("div").focus({get preventScroll(){return r=!0,!0}})}catch(e){}}return r}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],i=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==i;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return i instanceof HTMLElement&&n.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}(t)}}n.d(t,{e:()=>i});let r=null},8948:(e,t,n)=>{n.d(t,{P:()=>s,Y:()=>r});var i=n(9202);function r(e){return!(0!==e.mozInputSource||!e.isTrusted)||((0,i.m0)()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function s(e){return!(0,i.m0)()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType}},2217:(e,t,n)=>{n.d(t,{v:()=>a});var i=n(2166),r=n(2145),s=n(4164);function a(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let a=e[n];for(let e in a){let n=t[e],l=a[e];"function"==typeof n&&"function"==typeof l&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=(0,i.c)(n,l):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof l?"id"===e&&n&&l?t.id=(0,r.Tw)(n,l):t[e]=void 0!==l?l:n:t[e]=(0,s.A)(n,l)}}return t}},3831:(e,t,n)=>{n.d(t,{Fe:()=>o,_h:()=>d,rd:()=>l});var i=n(2268),r=n(9202),s=n(1609);const a=(0,s.createContext)({isNative:!0,open:function(e,t){!function(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}(e,(e=>o(e,t)))},useHref:e=>e});function l(){return(0,s.useContext)(a)}function o(e,t,n=!0){var s,a;let{metaKey:l,ctrlKey:d,altKey:c,shiftKey:u}=t;(0,r.gm)()&&(null===(a=window.event)||void 0===a||null===(s=a.type)||void 0===s?void 0:s.startsWith("key"))&&"_blank"===e.target&&((0,r.cX)()?l=!0:d=!0);let p=(0,r.Tc)()&&(0,r.cX)()&&!(0,r.bh)()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:d,altKey:c,shiftKey:u}):new MouseEvent("click",{metaKey:l,ctrlKey:d,altKey:c,shiftKey:u,bubbles:!0,cancelable:!0});o.isOpening=n,(0,i.e)(e),e.dispatchEvent(p),o.isOpening=!1}function d(e){var t;const n=l().useHref(null!==(t=null==e?void 0:e.href)&&void 0!==t?t:"");return{href:(null==e?void 0:e.href)?n:void 0,target:null==e?void 0:e.target,rel:null==e?void 0:e.rel,download:null==e?void 0:e.download,ping:null==e?void 0:e.ping,referrerPolicy:null==e?void 0:e.referrerPolicy}}o.isOpening=!1},9202:(e,t,n)=>{function i(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function r(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 s(e){let t=null;return()=>(null==t&&(t=e()),t)}n.d(t,{Tc:()=>u,bh:()=>o,cX:()=>a,gm:()=>h,lg:()=>c,m0:()=>f,un:()=>d});const a=s((function(){return r(/^Mac/i)})),l=s((function(){return r(/^iPhone/i)})),o=s((function(){return r(/^iPad/i)||a()&&navigator.maxTouchPoints>1})),d=s((function(){return l()||o()})),c=s((function(){return a()||d()})),u=s((function(){return i(/AppleWebKit/i)&&!p()})),p=s((function(){return i(/Chrome/i)})),f=s((function(){return i(/Android/i)})),h=s((function(){return i(/Firefox/i)}))},7233:(e,t,n)=>{n.d(t,{v:()=>a});let i=new Map,r=new Set;function s(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let s=i.get(n.target);if(s&&(s.delete(n.propertyName),0===s.size&&(n.target.removeEventListener("transitioncancel",t),i.delete(n.target)),0===i.size)){for(let e of r)e();r.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let r=i.get(n.target);r||(r=new Set,i.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function a(e){requestAnimationFrame((()=>{0===i.size?e():r.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?s():document.addEventListener("DOMContentLoaded",s))},7049:(e,t,n)=>{n.d(t,{J:()=>s});var i=n(9953),r=n(1609);function s(e){const t=(0,r.useRef)(null);return(0,i.N)((()=>{t.current=e}),[e]),(0,r.useCallback)(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}},8343:(e,t,n)=>{n.d(t,{F:()=>s});var i=n(7049),r=n(1609);function s(e,t,n){let s=(0,r.useRef)(t),a=(0,i.J)((()=>{n&&n(s.current)}));(0,r.useEffect)((()=>{var t;let n=null==e||null===(t=e.current)||void 0===t?void 0:t.form;return null==n||n.addEventListener("reset",a),()=>{null==n||n.removeEventListener("reset",a)}}),[e,a])}},6948:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(1609);function r(){let e=(0,i.useRef)(new Map),t=(0,i.useCallback)(((t,n,i,r)=>{let s=(null==r?void 0:r.once)?(...t)=>{e.current.delete(i),i(...t)}:i;e.current.set(i,{type:n,eventTarget:t,fn:s,options:r}),t.addEventListener(n,i,r)}),[]),n=(0,i.useCallback)(((t,n,i,r)=>{var s;let a=(null===(s=e.current.get(i))||void 0===s?void 0:s.fn)||i;t.removeEventListener(n,a,r),e.current.delete(i)}),[]),r=(0,i.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,i.useEffect)((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}},2145:(e,t,n)=>{n.d(t,{Tw:()=>c,Bi:()=>d,X1:()=>u});var i=n(9953),r=n(7049),s=n(1609);var a=n(415);let l=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),o=new Map;function d(e){let[t,n]=(0,s.useState)(e),r=(0,s.useRef)(null),d=(0,a.Cc)(t),c=(0,s.useCallback)((e=>{r.current=e}),[]);return l&&(o.has(d)&&!o.get(d).includes(c)?o.set(d,[...o.get(d),c]):o.set(d,[c])),(0,i.N)((()=>{let e=d;return()=>{o.delete(e)}}),[d]),(0,s.useEffect)((()=>{let e=r.current;e&&(r.current=null,n(e))})),d}function c(e,t){if(e===t)return e;let n=o.get(e);if(n)return n.forEach((e=>e(t))),t;let i=o.get(t);return i?(i.forEach((t=>t(e))),e):t}function u(e=[]){let t=d(),[n,a]=function(e){let[t,n]=(0,s.useState)(e),a=(0,s.useRef)(null),l=(0,r.J)((()=>{if(!a.current)return;let e=a.current.next();e.done?a.current=null:t===e.value?l():n(e.value)}));(0,i.N)((()=>{a.current&&l()}));let o=(0,r.J)((e=>{a.current=e(t),l()}));return[t,o]}(t),l=(0,s.useCallback)((()=>{a((function*(){yield t,yield document.getElementById(t)?t:void 0}))}),[t,a]);return(0,i.N)(l,[t,l,...e]),n}},7061:(e,t,n)=>{n.d(t,{b:()=>r});var i=n(2145);function r(e,t){let{id:n,"aria-label":r,"aria-labelledby":s}=e;if(n=(0,i.Bi)(n),s&&r){let e=new Set([n,...s.trim().split(/\s+/)]);s=[...e].join(" ")}else s&&(s=s.trim().split(/\s+/).join(" "));return r||s||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":s}}},9953:(e,t,n)=>{n.d(t,{N:()=>r});var i=n(1609);const r="undefined"!=typeof document?i.useLayoutEffect:()=>{}},3908:(e,t,n)=>{n.d(t,{U:()=>r});var i=n(1609);function r(e){const t=(0,i.useRef)(null);return(0,i.useMemo)((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}},6660:(e,t,n)=>{n.d(t,{w:()=>r});var i=n(9953);function r(e,t){(0,i.N)((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}},7979:(e,t,n)=>{n.d(t,{s:()=>l});var i=n(2217),r=n(1609),s=n(9461);const a={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function l(e){let{children:t,elementType:n="div",isFocusable:l,style:o,...d}=e,{visuallyHiddenProps:c}=function(e={}){let{style:t,isFocusable:n}=e,[i,l]=(0,r.useState)(!1),{focusWithinProps:o}=(0,s.R)({isDisabled:!n,onFocusWithinChange:e=>l(e)});return{visuallyHiddenProps:{...o,style:(0,r.useMemo)((()=>i?t:t?{...a,...t}:a),[i])}}}(e);return r.createElement(n,(0,i.v)(d,c),t)}},1144:(e,t,n)=>{n.d(t,{KZ:()=>d,Lf:()=>o,YD:()=>a,cX:()=>f});var i=n(1609);const r={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},s={...r,customError:!0,valid:!1},a={isInvalid:!1,validationDetails:r,validationErrors:[]},l=(0,i.createContext)({}),o="__formValidationState"+Date.now();function d(e){if(e[o]){let{realtimeValidation:t,displayValidation:n,updateValidation:i,resetValidation:r,commitValidation:s}=e[o];return{realtimeValidation:t,displayValidation:n,updateValidation:i,resetValidation:r,commitValidation:s}}return function(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:d,validate:f,validationBehavior:h="aria"}=e;n&&(t||(t="invalid"===n));let g=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:s}:null,v=(0,i.useMemo)((()=>u(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return c(n)}return[]}(f,o))),[f,o]);(null==d?void 0:d.validationDetails.valid)&&(d=null);let y=(0,i.useContext)(l),m=(0,i.useMemo)((()=>r?Array.isArray(r)?r.flatMap((e=>c(y[e]))):c(y[r]):[]),[y,r]),[b,A]=(0,i.useState)(y),[w,E]=(0,i.useState)(!1);y!==b&&(A(y),E(!1));let x=(0,i.useMemo)((()=>u(w?[]:m)),[w,m]),C=(0,i.useRef)(a),[k,S]=(0,i.useState)(a),T=(0,i.useRef)(a),[P,K]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{if(!P)return;K(!1);let e=v||d||C.current;p(e,T.current)||(T.current=e,S(e))})),{realtimeValidation:g||x||v||d||a,displayValidation:"native"===h?g||x||k:g||x||v||d||k,updateValidation(e){"aria"!==h||p(k,e)?C.current=e:S(e)},resetValidation(){let e=a;p(e,T.current)||(T.current=e,S(e)),"native"===h&&K(!1),E(!0)},commitValidation(){"native"===h&&K(!0),E(!0)}}}(e)}function c(e){return e?Array.isArray(e)?e:[e]:[]}function u(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:s}:null}function p(e,t){return e===t||e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every(((e,n)=>e===t.validationErrors[n]))&&Object.entries(e.validationDetails).every((([e,n])=>t.validationDetails[e]===n))}function f(...e){let t=new Set,n=!1,i={...r};for(let r of e){var s,a;for(let e of r.validationErrors)t.add(e);n||(n=r.isInvalid);for(let e in i)(s=i)[a=e]||(s[a]=r.validationDetails[e])}return i.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:i}}},1623:(e,t,n)=>{n.d(t,{H:()=>r});var i=n(8356);function r(e={}){let{isReadOnly:t}=e,[n,r]=(0,i.P)(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:n,setSelected:function(e){t||r(e)},toggle:function(){t||r(!n)}}}},8356:(e,t,n)=>{n.d(t,{P:()=>r});var i=n(1609);function r(e,t,n){let[r,s]=(0,i.useState)(e||t),a=(0,i.useRef)(void 0!==e),l=void 0!==e;(0,i.useEffect)((()=>{let e=a.current;e!==l&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),a.current=l}),[l]);let o=l?e:r,d=(0,i.useCallback)(((e,...t)=>{let i=(e,...t)=>{n&&(Object.is(o,e)||n(e,...t)),l||(o=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),s(((n,...r)=>{let s=e(l?o:n,...r);return i(s,...t),l?n:s}))):(l||s(e),i(e,...t))}),[l,o,n]);return[o,d]}},1152:(e,t,n)=>{n.d(t,{$:()=>y});var i=n(790),r=n(3908),s=n(2217),a=n(1609),l=n(9229);let o=!1,d=0;function c(){o=!0,setTimeout((()=>{o=!1}),50)}function u(e){"touch"===e.pointerType&&c()}function p(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",u):document.addEventListener("touchend",c),d++,()=>{d--,d>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",u):document.removeEventListener("touchend",c))}}var f=n(6133),h=n(9781);const g="_affix_1mh99_4",v="_hasAffix_1mh99_15",y=(0,a.forwardRef)(((e,t)=>{const{autoFocus:n,children:d,prefix:c,role:u,size:y,suffix:m,variant:b="primary"}=e,A=(0,r.U)(t),{buttonProps:w}=(0,l.s)(e,A),{hoverProps:E}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:r}=e,[s,l]=(0,a.useState)(!1),d=(0,a.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,a.useEffect)(p,[]);let{hoverProps:c,triggerHoverEnd:u}=(0,a.useMemo)((()=>{let e=(e,i)=>{if(d.pointerType=i,r||"touch"===i||d.isHovered||!e.currentTarget.contains(e.target))return;d.isHovered=!0;let s=e.currentTarget;d.target=s,t&&t({type:"hoverstart",target:s,pointerType:i}),n&&n(!0),l(!0)},s=(e,t)=>{if(d.pointerType="",d.target=null,"touch"===t||!d.isHovered)return;d.isHovered=!1;let r=e.currentTarget;i&&i({type:"hoverend",target:r,pointerType:t}),n&&n(!1),l(!1)},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{o&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!r&&e.currentTarget.contains(e.target)&&s(e,e.pointerType)}):(a.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{d.ignoreEmulatedMouseEvents||o||e(t,"mouse"),d.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!r&&e.currentTarget.contains(e.target)&&s(e,"mouse")}),{hoverProps:a,triggerHoverEnd:s}}),[t,n,i,r,d]);return(0,a.useEffect)((()=>{r&&u({currentTarget:d.target},d.pointerType)}),[r]),{hoverProps:c,isHovered:s}}(e),{focusProps:x}=(0,f.o)({autoFocus:n}),{clsx:C,rootProps:k}=(0,h.Y)("Button",e),S=!!c||!!m;return(0,i.jsxs)("button",{...k({classNames:["button",y?`button-${y}`:"",`button-${"link-danger"===b?"link":b}`,{"button-link-delete":"link-danger"===b,[v]:S},"_root_1mh99_1"]}),...(0,s.v)(w,E,x),role:u,children:[c&&(0,i.jsx)("span",{className:C({classNames:[g],prefixedNames:["affix","prefix"]}),children:c}),S?(0,i.jsx)("span",{className:C({classNames:[g],prefixedNames:["affix","infix"]}),children:d}):d,m&&(0,i.jsx)("span",{className:C({classNames:[g],prefixedNames:["affix","suffix"]}),children:m})]})}));y.displayName="Button"},9204:(e,t,n)=>{n.d(t,{S:()=>y});var i=n(790),r=n(3908),s=n(2145),a=n(1609),l=n(8868),o=n(1144),d=n(5353);function c(e,t,n){let i=(0,o.KZ)({...e,value:t.isSelected}),{isInvalid:r,validationErrors:s,validationDetails:c}=i.displayValidation,{labelProps:u,inputProps:p,isSelected:f,isPressed:h,isDisabled:g,isReadOnly:v}=(0,d.e)({...e,isInvalid:r},t,n);(0,l.X)(e,i,n);let{isIndeterminate:y,isRequired:m,validationBehavior:b="aria"}=e;return(0,a.useEffect)((()=>{n.current&&(n.current.indeterminate=!!y)})),{labelProps:u,inputProps:{...p,checked:f,"aria-required":m&&"aria"===b||void 0,required:m&&"native"===b},isSelected:f,isPressed:h,isDisabled:g,isReadOnly:v,isInvalid:r,validationErrors:s,validationDetails:c}}var u=n(2526),p=n(1623),f=n(8509),h=n(9781);const g="_readOnly_lmlip_21",v="_disabled_lmlip_25",y=(0,a.forwardRef)(((e,t)=>{const{description:n}=e,{clsx:l,componentProps:d,rootProps:y}=(0,h.Y)("Checkbox",e),m=(0,r.U)(t),b=(0,a.useRef)(null),A=(0,s.Bi)(),w=n?(0,s.Bi)():void 0,E=(0,a.useContext)(f.I),{inputProps:x,isDisabled:C,isReadOnly:k,labelProps:S}=E?function(e,t,n){const i=(0,p.H)({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}});let{name:r,descriptionId:s,errorMessageId:l,validationBehavior:d}=u.n.get(t);var f;d=null!==(f=e.validationBehavior)&&void 0!==f?f:d;let{realtimeValidation:h}=(0,o.KZ)({...e,value:i.isSelected,name:void 0,validationBehavior:"aria"}),g=(0,a.useRef)(o.YD),v=()=>{t.setInvalid(e.value,h.isInvalid?h:g.current)};(0,a.useEffect)(v);let y=t.realtimeValidation.isInvalid?t.realtimeValidation:h,m="native"===d?t.displayValidation:y;var b;let A=c({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||r,isRequired:null!==(b=e.isRequired)&&void 0!==b?b:t.isRequired,validationBehavior:d,[o.Lf]:{realtimeValidation:y,displayValidation:m,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(e){g.current=e,v()}}},i,n);return{...A,inputProps:{...A.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?l:null,s].filter(Boolean).join(" ")||void 0}}}({...d,children:e.label,value:d.value},E,b):c({...d,children:e.label},(0,p.H)(d),b),T=(0,i.jsx)("span",{...S,className:l({classNames:"_labelContent_lmlip_29",prefixedNames:"label-content"}),children:e.label});return(0,i.jsxs)("div",{...y({classNames:["_root_lmlip_1",{[v]:C,[g]:k}]}),children:[(0,i.jsxs)("label",{className:l({classNames:"_label_lmlip_8",prefixedNames:"label"}),id:A,ref:m,children:[(0,i.jsx)("input",{...x,"aria-describedby":w,"aria-labelledby":A,className:l({classNames:"_input_lmlip_15",prefixedNames:"input"}),ref:b}),T]}),n&&(0,i.jsx)("div",{className:l({classNames:["_description_lmlip_18","description"],prefixedNames:"description"}),id:w,children:n})]})}));y.displayName="Checkbox"},8509:(e,t,n)=>{n.d(t,{$:()=>y,I:()=>v});var i=n(790),r=n(2526),s=n(5987),a=n(2217),l=n(4742),o=n(9461),d=n(3908),c=n(1144),u=n(8356),p=n(1609),f=n(9781);const h="_descriptionBeforeInput_mk25k_34",g="_horizontal_mk25k_63",v=(0,p.createContext)(null),y=(0,p.forwardRef)(((e,t)=>{const{children:n,description:y,descriptionArea:m,errorMessage:b,isRequired:A,label:w,orientation:E="vertical"}=e,{clsx:x,componentProps:C,rootProps:k}=(0,f.Y)("CheckboxGroup",e),S=(0,d.U)(t),T=function(e={}){let[t,n]=(0,u.P)(e.value,e.defaultValue||[],e.onChange),i=!!e.isRequired&&0===t.length,r=(0,p.useRef)(new Map),s=(0,c.KZ)({...e,value:t}),a=s.displayValidation.isInvalid;var l;return{...s,value:t,setValue(t){e.isReadOnly||e.isDisabled||n(t)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected:e=>t.includes(e),addValue(i){e.isReadOnly||e.isDisabled||t.includes(i)||n(t.concat(i))},removeValue(i){e.isReadOnly||e.isDisabled||t.includes(i)&&n(t.filter((e=>e!==i)))},toggleValue(i){e.isReadOnly||e.isDisabled||(t.includes(i)?n(t.filter((e=>e!==i))):n(t.concat(i)))},setInvalid(e,t){let n=new Map(r.current);t.isInvalid?n.set(e,t):n.delete(e),r.current=n,s.updateValidation((0,c.cX)(...n.values()))},validationState:null!==(l=e.validationState)&&void 0!==l?l:a?"invalid":null,isInvalid:a,isRequired:i}}(C),{descriptionProps:P,errorMessageProps:K,groupProps:M,isInvalid:I,labelProps:_,validationDetails:D,validationErrors:R}=function(e,t){let{isDisabled:n,name:i,validationBehavior:d="aria"}=e,{isInvalid:c,validationErrors:u,validationDetails:p}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:g,errorMessageProps:v}=(0,l.M)({...e,labelElementType:"span",isInvalid:c,errorMessage:e.errorMessage||u});r.n.set(t,{name:i,descriptionId:g.id,errorMessageId:v.id,validationBehavior:d});let y=(0,s.$)(e,{labelable:!0}),{focusWithinProps:m}=(0,o.R)({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:(0,a.v)(y,{role:"group","aria-disabled":n||void 0,...h,...m}),labelProps:f,descriptionProps:g,errorMessageProps:v,isInvalid:c,validationErrors:u,validationDetails:p}}(C,T);return(0,i.jsxs)("div",{...k({classNames:["_root_mk25k_1",{[h]:"before-input"===m,[g]:"horizontal"===E}]}),...M,"aria-invalid":I,ref:S,children:[(0,i.jsxs)("span",{..._,className:x({classNames:"_label_mk25k_19",prefixedNames:"label"}),children:[w,A?(0,i.jsx)("span",{className:x({classNames:"_markedRequired_mk25k_27",prefixedNames:"marked-required"}),children:"*"}):""]}),(0,i.jsx)(v.Provider,{value:T,children:(0,i.jsx)("div",{className:x({classNames:"_items_mk25k_57",prefixedNames:"items"}),children:n})}),y&&(0,i.jsx)("div",{...P,className:x({classNames:"_description_mk25k_34",prefixedNames:"description"}),children:y}),I&&(0,i.jsxs)("div",{...K,className:x({classNames:"_errorMessage_mk25k_46",prefixedNames:"error-message"}),children:["function"==typeof b?b({isInvalid:I,validationDetails:D,validationErrors:R}):b,R.join(" ")]})]})}));y.displayName="CheckboxGroup"},9180:(e,t,n)=>{n.d(t,{$:()=>c});var i=n(790),r=n(3908),s=n(1609),a=n(9229),l=n(9781);const o="info",d="default",c=(0,s.forwardRef)(((e,t)=>{const{children:n,isDismissable:s=!1,isDismissed:c,level:u=o,onDismiss:p,variant:f=d}=e,h=(0,r.U)(t),g=(0,r.U)(null),{clsx:v,rootProps:y}=(0,l.Y)("Notice",e),{buttonProps:m}=(0,a.s)({onPress:()=>null==p?void 0:p()},g);return!c&&(0,i.jsxs)("div",{...y({classNames:["notice",`notice-${u}`,"_root_kbeg9_1",{"notice-alt":"alt"===f}]}),ref:h,children:[(0,i.jsx)("div",{className:v({classNames:"_content_kbeg9_4",prefixedNames:"content"}),children:n}),s&&(0,i.jsx)("button",{...m,"aria-label":"object"==typeof s?s.label:"Dismiss notice",className:v({classNames:["notice-dismiss"],prefixedNames:"dismiss-button"}),type:"button"})]})}));c.displayName="Notice"},3677:(e,t,n)=>{n.d(t,{y:()=>d});var i=n(790),r=n(1609),s=n(3908),a=n(7979),l=n(9781);const o=24,d=(0,r.forwardRef)(((e,t)=>{const n=(0,s.U)(t),{componentProps:r,rootProps:d}=(0,l.Y)("Spinner",e),{role:c="status",size:u=o}=r;return(0,i.jsxs)("span",{ref:n,role:c,...d(),children:[(0,i.jsx)(a.s,{children:r.label||"Loading"}),(0,i.jsx)("img",{"aria-hidden":"true",height:u,src:"data:image/gif;base64,R0lGODlhKAAoAPIHAJmZmdPT04qKivHx8fz8/LGxsYCAgP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAwAHACwAAAAAKAAoAEAD1Hi63P4wEmCqtcGFywF5BSeOJFkwW6muGDRQ7AoM0RPAsQFktZKqHsaLxVvkjqPGBJkL9hSEG2v3eT4HgQJAUBEACgGa9TEcUaO4jjjyI1UZhFVxMWAy1weu/ShgpPcyDX+AZhAhhCInTwSHdgVvY5GSk5SSaFMBkJGMgI9jZSIzQoMVojWN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QWgCQPg4YkEIeKBhGLhxKOhmiRlJUtk5Y0gpk1F5w1GJ80GaItGnacfgdtpRRfZKVrbK10DXyZZkeoi7INRJZLQ7uAwSkykTcwDCuGL8oxzFImVc9QEJAVFxnPCQA7",width:u})]})}));d.displayName="Spinner"},3413:(e,t,n)=>{n.d(t,{d:()=>h});var i=n(790),r=n(1609),s=n(3908),a=n(5353),l=n(6133),o=n(2145),d=n(7979),c=n(1623),u=n(9781);const p="_isSelected_umbom_16",f="_isDisabled_umbom_19",h=(0,r.forwardRef)(((e,t)=>{const{description:n,label:r}=e,h=(0,s.U)(t),g=(0,c.H)(e),{clsx:v,componentProps:y,rootProps:m}=(0,u.Y)("Switch",e),{inputProps:b,isDisabled:A,labelProps:w}=function(e,t,n){let{labelProps:i,inputProps:r,isSelected:s,isPressed:l,isDisabled:o,isReadOnly:d}=(0,a.e)(e,t,n);return{labelProps:i,inputProps:{...r,role:"switch",checked:s},isSelected:s,isPressed:l,isDisabled:o,isReadOnly:d}}({...y,children:r},g,h),{focusProps:E,isFocusVisible:x}=(0,l.o)(),C=n?(0,o.Bi)():void 0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("label",{...m({classNames:["_root_umbom_1",{[f]:A,[p]:g.isSelected}]}),...w,children:[(0,i.jsx)(d.s,{children:(0,i.jsx)("input",{...b,...E,"aria-describedby":C,ref:h})}),(0,i.jsxs)("div",{className:v({classNames:["_input_umbom_7"],prefixedNames:"input"}),children:[(0,i.jsxs)("svg",{"aria-hidden":"true",height:28,width:44,children:[(0,i.jsx)("rect",{className:v({classNames:["_track_umbom_1"]}),height:20,rx:10,width:36,x:4,y:4}),(0,i.jsx)("circle",{className:v({classNames:["_thumb_umbom_4"]}),cx:g.isSelected?30:14,cy:14,r:8}),x&&(0,i.jsx)("rect",{className:v({classNames:["_focusRing_umbom_13"],prefixedNames:"focusRing"}),fill:"none",height:26,rx:14,strokeWidth:2,width:42,x:1,y:1})]}),(0,i.jsx)("span",{className:v({prefixedNames:"label"}),children:r})]})]}),n&&(0,i.jsx)("p",{className:v({classNames:["description"],prefixedNames:"description"}),id:C,children:n})]})}));h.displayName="Switch"},3412:(e,t,n)=>{n.d(t,{o:()=>i});const i=e=>null;i.getCollectionNode=function*(e){const{title:t}=e;yield{props:e,rendered:t,type:"item"}}},6420:(e,t,n)=>{n.d(t,{t:()=>ke});var i=n(790),r=n(1609),s=n(3908);const a=new WeakMap;function l(e,t,n){return e?("string"==typeof t&&(t=t.replace(/\s+/g,"")),`${a.get(e)}-${n}-${t}`):""}class o{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,n;return this.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return null!=e&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return null!=e&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){do{null==(e=this.collection.getKeyAfter(e))&&(e=this.collection.getFirstKey())}while(this.isDisabled(e));return e}getPreviousKey(e){do{null==(e=this.collection.getKeyBefore(e))&&(e=this.collection.getLastKey())}while(this.isDisabled(e));return e}constructor(e,t,n,i=new Set){this.collection=e,this.flipDirection="rtl"===t&&"horizontal"===n,this.disabledKeys=i,this.tabDirection="horizontal"===n}}var d=n(2145),c=n(7061),u=n(2217);const p=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),f=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function h(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return p.has(t.script)}let t=e.split("-")[0];return f.has(t)}var g=n(415);const v=Symbol.for("react-aria.i18n.locale");function y(){let e="undefined"!=typeof window&&window[v]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:h(e)?"rtl":"ltr"}}let m=y(),b=new Set;function A(){m=y();for(let e of b)e(m)}const w=r.createContext(null);function E(){let e=function(){let e=(0,g.wR)(),[t,n]=(0,r.useState)(m);return(0,r.useEffect)((()=>(0===b.size&&window.addEventListener("languagechange",A),b.add(n),()=>{b.delete(n),0===b.size&&window.removeEventListener("languagechange",A)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return(0,r.useContext)(w)||e}var x=n(9202);function C(e){return(0,x.lg)()?e.altKey:e.ctrlKey}function k(e){return(0,x.cX)()?e.metaKey:e.ctrlKey}const S=window.ReactDOM;var T=n(4836);function P(e,t){return"#comment"!==e.nodeName&&function(e){const t=(0,T.m)(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:n,visibility:i}=e.style,r="none"!==n&&"hidden"!==i&&"collapse"!==i;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:i}=t(e);r="none"!==n&&"hidden"!==i&&"collapse"!==i}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||P(e.parentElement,e))}const K=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],M=K.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";K.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const I=K.join(':not([hidden]):not([tabindex="-1"]),');function _(e,t){return!!e&&!!t&&t.some((t=>t.contains(e)))}function D(e,t,n){let i=(null==t?void 0:t.tabbable)?I:M,r=(0,T.T)(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var r;return(null==t||null===(r=t.from)||void 0===r?void 0:r.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(i)||!P(e)||n&&!_(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(r.currentNode=t.from),r}class R{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let i=this.fastMap.get(null!=t?t:null);if(!i)return;let r=new N({scopeRef:e});i.addChild(r),r.parent=i,this.fastMap.set(e,r),n&&(r.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&_(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let i=t.children;n&&(n.removeChild(t),i.size>0&&i.forEach((e=>n&&n.addChild(e)))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new R;var n;for(let i of this.traverse())t.addTreeNode(i.scopeRef,null!==(n=null===(e=i.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,i.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new N({scopeRef:null}),this.fastMap.set(null,this.root)}}class N{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}new R;var B=n(8374),L=n(3831),j=n(2268),F=n(7049);function Q(e,t,n,i){let s=(0,F.J)(n),a=null==n;(0,r.useEffect)((()=>{if(a||!e.current)return;let n=e.current;return n.addEventListener(t,s,i),()=>{n.removeEventListener(t,s,i)}}),[e,t,i,a,s])}function Y(e,t){let n=window.getComputedStyle(e),i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function G(e,t){let n=W(e,t,"left"),i=W(e,t,"top"),r=t.offsetWidth,s=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,{borderTopWidth:o,borderLeftWidth:d}=getComputedStyle(e),c=e.scrollLeft+parseInt(d,10),u=e.scrollTop+parseInt(o,10),p=c+e.clientWidth,f=u+e.clientHeight;n<=a?a=n-parseInt(d,10):n+r>p&&(a+=n+r-p),i<=u?l=i-parseInt(o,10):i+s>f&&(l+=i+s-f),e.scrollLeft=a,e.scrollTop=l}function W(e,t,n){const i="left"===n?"offsetLeft":"offsetTop";let r=0;for(;t.offsetParent&&(r+=t[i],t.offsetParent!==e);){if(t.offsetParent.contains(e)){r-=e[i];break}t=t.offsetParent}return r}function H(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(a).overflow){let t=function(e,t){const n=[];for(;e&&e!==document.documentElement;)Y(e,t)&&n.push(e),e=e.parentElement;return n}(e);for(let n of t)G(n,e)}else{var n;let{left:a,top:l}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:o,top:d}=e.getBoundingClientRect();var i,r,s;(Math.abs(a-o)>1||Math.abs(l-d)>1)&&(null==t||null===(r=t.containingElement)||void 0===r||null===(i=r.scrollIntoView)||void 0===i||i.call(r,{block:"center",inline:"center"}),null===(s=e.scrollIntoView)||void 0===s||s.call(e,{block:"nearest"}))}}}var U=n(5562);function O(e){let{selectionManager:t,keyboardDelegate:n,ref:i,autoFocus:s=!1,shouldFocusWrap:a=!1,disallowEmptySelection:l=!1,disallowSelectAll:o=!1,selectOnFocus:d="replace"===t.selectionBehavior,disallowTypeAhead:c=!1,shouldUseVirtualFocus:p,allowsTabNavigation:f=!1,isVirtualized:h,scrollRef:g=i,linkBehavior:v="action"}=e,{direction:y}=E(),m=(0,L.rd)(),b=(0,r.useRef)({top:0,left:0});Q(g,"scroll",h?null:()=>{b.current={top:g.current.scrollTop,left:g.current.scrollLeft}});const A=(0,r.useRef)(s);(0,r.useEffect)((()=>{if(A.current){let e=null;"first"===s&&(e=n.getFirstKey()),"last"===s&&(e=n.getLastKey());let r=t.selectedKeys;if(r.size)for(let n of r)if(t.canSelectItem(n)){e=n;break}t.setFocused(!0),t.setFocusedKey(e),null!=e||p||(0,B.l)(i.current)}}),[]);let w=(0,r.useRef)(t.focusedKey);(0,r.useEffect)((()=>{if(t.isFocused&&null!=t.focusedKey&&(t.focusedKey!==w.current||A.current)&&(null==g?void 0:g.current)){let e=(0,U.ME)(),n=i.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!n)return;("keyboard"===e||A.current)&&(G(g.current,n),"virtual"!==e&&H(n,{containingElement:i.current}))}!p&&t.isFocused&&null==t.focusedKey&&null!=w.current&&(0,B.l)(i.current),w.current=t.focusedKey,A.current=!1})),Q(i,"react-aria-focus-scope-restore",(e=>{e.preventDefault(),t.setFocused(!0)}));let x,T={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!i.current.contains(e.target))return;const r=(n,i)=>{if(null!=n){if(t.isLink(n)&&"selection"===v&&d&&!C(e)){(0,S.flushSync)((()=>{t.setFocusedKey(n,i)}));let r=g.current.querySelector(`[data-key="${CSS.escape(n.toString())}"]`),s=t.getItemProps(n);return void m.open(r,e,s.href,s.routerOptions)}if(t.setFocusedKey(n,i),t.isLink(n)&&"override"===v)return;e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(n):d&&!C(e)&&t.replaceSelection(n)}};switch(e.key){case"ArrowDown":if(n.getKeyBelow){var s,c,u;let i=null!=t.focusedKey?null===(s=n.getKeyBelow)||void 0===s?void 0:s.call(n,t.focusedKey):null===(c=n.getFirstKey)||void 0===c?void 0:c.call(n);null==i&&a&&(i=null===(u=n.getFirstKey)||void 0===u?void 0:u.call(n,t.focusedKey)),null!=i&&(e.preventDefault(),r(i))}break;case"ArrowUp":if(n.getKeyAbove){var p,h,b;let i=null!=t.focusedKey?null===(p=n.getKeyAbove)||void 0===p?void 0:p.call(n,t.focusedKey):null===(h=n.getLastKey)||void 0===h?void 0:h.call(n);null==i&&a&&(i=null===(b=n.getLastKey)||void 0===b?void 0:b.call(n,t.focusedKey)),null!=i&&(e.preventDefault(),r(i))}break;case"ArrowLeft":if(n.getKeyLeftOf){var A,w,E;let i=null===(A=n.getKeyLeftOf)||void 0===A?void 0:A.call(n,t.focusedKey);null==i&&a&&(i="rtl"===y?null===(w=n.getFirstKey)||void 0===w?void 0:w.call(n,t.focusedKey):null===(E=n.getLastKey)||void 0===E?void 0:E.call(n,t.focusedKey)),null!=i&&(e.preventDefault(),r(i,"rtl"===y?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var x,T,P;let i=null===(x=n.getKeyRightOf)||void 0===x?void 0:x.call(n,t.focusedKey);null==i&&a&&(i="rtl"===y?null===(T=n.getLastKey)||void 0===T?void 0:T.call(n,t.focusedKey):null===(P=n.getFirstKey)||void 0===P?void 0:P.call(n,t.focusedKey)),null!=i&&(e.preventDefault(),r(i,"rtl"===y?"last":"first"))}break;case"Home":if(n.getFirstKey){e.preventDefault();let i=n.getFirstKey(t.focusedKey,k(e));t.setFocusedKey(i),k(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(i):d&&t.replaceSelection(i)}break;case"End":if(n.getLastKey){e.preventDefault();let i=n.getLastKey(t.focusedKey,k(e));t.setFocusedKey(i),k(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(i):d&&t.replaceSelection(i)}break;case"PageDown":if(n.getKeyPageBelow){let i=n.getKeyPageBelow(t.focusedKey);null!=i&&(e.preventDefault(),r(i))}break;case"PageUp":if(n.getKeyPageAbove){let i=n.getKeyPageAbove(t.focusedKey);null!=i&&(e.preventDefault(),r(i))}break;case"a":k(e)&&"multiple"===t.selectionMode&&!0!==o&&(e.preventDefault(),t.selectAll());break;case"Escape":l||0===t.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(e.shiftKey)i.current.focus();else{let e,t,n=D(i.current,{tabbable:!0});do{t=n.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&(0,j.e)(e)}break}}},onFocus:e=>{if(t.isFocused)e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),null==t.focusedKey){let i=e=>{null!=e&&(t.setFocusedKey(e),d&&t.replaceSelection(e))},a=e.relatedTarget;var r,s;a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?i(null!==(r=t.lastSelectedKey)&&void 0!==r?r:n.getLastKey()):i(null!==(s=t.firstSelectedKey)&&void 0!==s?s:n.getFirstKey())}else h||(g.current.scrollTop=b.current.top,g.current.scrollLeft=b.current.left);if(null!=t.focusedKey){let e=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);e&&(e.contains(document.activeElement)||(0,j.e)(e),"keyboard"===(0,U.ME)()&&H(e,{containingElement:i.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){g.current===e.target&&e.preventDefault()}},{typeSelectProps:P}=function(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:i}=e,s=(0,r.useRef)({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let r=function(e){return 1!==e.length&&/^[A-Z]/i.test(e)?"":e}(e.key);if(!r||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target))return;" "===r&&s.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),s.search+=r;let a=t.getKeyForSearch(s.search,n.focusedKey);null==a&&(a=t.getKeyForSearch(s.search)),null!=a&&(n.setFocusedKey(a),i&&i(a)),clearTimeout(s.timeout),s.timeout=setTimeout((()=>{s.search=""}),1e3)}:null}}}({keyboardDelegate:n,selectionManager:t});return c||(T=(0,u.v)(P,T)),p||(x=null==t.focusedKey?0:-1),{collectionProps:{...T,tabIndex:x}}}class J{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var n;return t&&null!==(n=t.prevKey)&&void 0!==n?n:null}getKeyAfter(e){let t=this.keyMap.get(e);var n;return t&&null!==(n=t.nextKey)&&void 0!==n?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let n of e.childNodes)t(n)};for(let n of e)t(n);let n=null,i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),n=t,n.nextKey=void 0;var r;this.lastKey=null!==(r=null==n?void 0:n.key)&&void 0!==r?r:null}}class V extends Set{constructor(e,t,n){super(e),e instanceof V?(this.anchorKey=null!=t?t:e.anchorKey,this.currentKey=null!=n?n:e.currentKey):(this.anchorKey=t,this.currentKey=n)}}var q=n(8356);function z(e,t){return e?"all"===e?"all":new V(e):t}function Z(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let i=[...X(e,t),t],r=[...X(e,n),n],s=i.slice(0,r.length).findIndex(((e,t)=>e!==r[t]));return-1!==s?(t=i[s],n=r[s],t.index-n.index):i.findIndex((e=>e===n))>=0?1:(r.findIndex((e=>e===t)),-1)}function X(e,t){let n=[];for(;null!=(null==t?void 0:t.parentKey);)t=e.getItem(t.parentKey),n.unshift(t);return n}class ${get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&Z(this.collection,n,e)<0)&&(e=n)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&Z(this.collection,n,e)>0)&&(e=n)}return null==e?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new V([e],e,e);else{let r=this.state.selectedKeys;var n;let s=null!==(n=r.anchorKey)&&void 0!==n?n:e;var i;t=new V(r,s,e);for(let n of this.getKeyRange(s,null!==(i=r.currentKey)&&void 0!==i?i:e))t.delete(n);for(let n of this.getKeyRange(e,s))this.canSelectItem(n)&&t.add(n)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let n=this.collection.getItem(e),i=this.collection.getItem(t);return n&&i?Z(this.collection,n,i)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if(null===(n=this.layoutDelegate)||void 0===n?void 0:n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let i=[],r=e;for(;null!=r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&i.push(r),r===t)return i;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let t=new V("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):this.canSelectItem(e)&&(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){if("none"===this.selectionMode)return;if(null==(e=this.getKey(e)))return;let t=this.canSelectItem(e)?new V([e],e,e):new V;this.state.setSelectedKeys(t)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new V;for(let n of e)if(n=this.getKey(n),null!=n&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;null!=n;){if(this.canSelectItem(n)){let a=this.collection.getItem(n);"item"===a.type&&e.push(n),a.hasChildNodes&&(this.allowsCellSelection||"item"!==a.type)&&t((r=a,s=this.collection,i="function"==typeof s.getChildren?s.getChildren(r.key):r.childNodes,function(e){let t=0;for(let n of e){if(0===t)return n;t++}}(i)).key)}n=this.collection.getKeyAfter(n)}var i,r,s};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new V)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||(null==n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)||"cell"===n.type&&!this.allowsCellSelection)}isDisabled(e){var t,n;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,n;return!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}constructor(e,t,n){var i;this.collection=e,this.state=t,this.allowsCellSelection=null!==(i=null==n?void 0:n.allowsCellSelection)&&void 0!==i&&i,this._isSelectAll=null,this.layoutDelegate=(null==n?void 0:n.layoutDelegate)||null}}class ee{build(e,t){return this.context=t,te((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:t,items:n}=e;if(r.isValidElement(t)&&t.type===r.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if("function"==typeof t){if(!n)throw new Error("props.children was a function but props.items is missing");for(let n of e.items)yield*this.getFullNode({value:n},{renderer:t})}else{let e=[];r.Children.forEach(t,(t=>{e.push(t)}));let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,i){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${i}${t.key}`;let r=t.value;if(null!=r){var s;let e=null!==(s=r.key)&&void 0!==s?s:r.id;if(null==e)throw new Error("No key found for item");return e}return i?`${i}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,i){if(r.isValidElement(e.element)&&e.element.type===r.Fragment){let s=[];r.Children.forEach(e.element.props.children,(e=>{s.push(e)}));let a=e.index;for(const e of s)yield*this.getFullNode({element:e,index:a++},t,n,i);return}let s=e.element;if(!s&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context)))return n.index=e.index,n.parentKey=i?i.key:null,void(yield n);s=t.renderer(e.value)}if(r.isValidElement(s)){let r=s.type;if("function"!=typeof r&&"function"!=typeof r.getCollectionNode){let e="function"==typeof s.type?s.type.name:s.type;throw new Error(`Unknown element <${e}> in collection.`)}let a=r.getCollectionNode(s.props,this.context),l=e.index,o=a.next();for(;!o.done&&o.value;){let r=o.value;e.index=l;let d=r.key;d||(d=r.element?null:this.getKey(s,e,t,n));let c=[...this.getFullNode({...r,key:d,index:l,wrapper:ne(e.wrapper,r.wrapper)},this.getChildState(t,r),n?`${n}${s.key}`:s.key,i)];for(let t of c){if(t.value=r.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw new Error(`Unsupported type <${ie(t.type)}> in <${ie(i.type)}>. Only <${ie(e.type)}> is supported.`);l++,yield t}o=a.next(c)}return}if(null==e.key)return;let a=this,l={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:e.value,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:te((function*(){if(!e.hasChildNodes)return;let n=0;for(let i of e.childNodes()){null!=i.key&&(i.key=`${l.key}${i.key}`),i.index=n;let e=a.getFullNode(i,a.getChildState(t,i),l.key,l);for(let t of e)n++,yield t}}))};yield l}constructor(){this.cache=new WeakMap}}function te(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||(n=e());for(let e of n)t.push(e),yield e}}}function ne(e,t){return e&&t?n=>e(t(n)):e||t||void 0}function ie(e){return e[0].toUpperCase()+e.slice(1)}function re(e){let{filter:t,layoutDelegate:n}=e,i=function(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:i,selectionBehavior:s="toggle",disabledBehavior:a="all"}=e,l=(0,r.useRef)(!1),[,o]=(0,r.useState)(!1),d=(0,r.useRef)(null),c=(0,r.useRef)(null),[,u]=(0,r.useState)(null),p=(0,r.useMemo)((()=>z(e.selectedKeys)),[e.selectedKeys]),f=(0,r.useMemo)((()=>z(e.defaultSelectedKeys,new V)),[e.defaultSelectedKeys]),[h,g]=(0,q.P)(p,f,e.onSelectionChange),v=(0,r.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[y,m]=(0,r.useState)(s);"replace"===s&&"toggle"===y&&"object"==typeof h&&0===h.size&&m("replace");let b=(0,r.useRef)(s);return(0,r.useEffect)((()=>{s!==b.current&&(m(s),b.current=s)}),[s]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(e){l.current=e,o(e)},get focusedKey(){return d.current},get childFocusStrategy(){return c.current},setFocusedKey(e,t="first"){d.current=e,c.current=t,u(e)},selectedKeys:h,setSelectedKeys(e){!i&&function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,h)||g(e)},disabledKeys:v,disabledBehavior:a}}(e),s=(0,r.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),a=(0,r.useCallback)((e=>new J(t?t(e):e)),[t]),l=(0,r.useMemo)((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),o=function(e,t,n){let i=(0,r.useMemo)((()=>new ee),[]),{children:s,items:a,collection:l}=e;return(0,r.useMemo)((()=>{if(l)return l;let e=i.build({children:s,items:a},n);return t(e)}),[i,s,a,l,n,t])}(e,a,l),d=(0,r.useMemo)((()=>new $(o,i,{layoutDelegate:n})),[o,i,n]);const c=(0,r.useRef)(null);return(0,r.useEffect)((()=>{if(null!=i.focusedKey&&!o.getItem(i.focusedKey)&&c.current){const u=c.current.getItem(i.focusedKey),p=[...c.current.getKeys()].map((e=>{const t=c.current.getItem(e);return"item"===(null==t?void 0:t.type)?t:null})).filter((e=>null!==e)),f=[...o.getKeys()].map((e=>{const t=o.getItem(e);return"item"===(null==t?void 0:t.type)?t:null})).filter((e=>null!==e));var e,t;const h=(null!==(e=null==p?void 0:p.length)&&void 0!==e?e:0)-(null!==(t=null==f?void 0:f.length)&&void 0!==t?t:0);var n,r,s;let g=Math.min(h>1?Math.max((null!==(n=null==u?void 0:u.index)&&void 0!==n?n:0)-h+1,0):null!==(r=null==u?void 0:u.index)&&void 0!==r?r:0,(null!==(s=null==f?void 0:f.length)&&void 0!==s?s:0)-1),v=null,y=!1;for(;g>=0;){if(!d.isDisabled(f[g].key)){v=f[g];break}var a,l;g<f.length-1&&!y?g++:(y=!0,g>(null!==(a=null==u?void 0:u.index)&&void 0!==a?a:0)&&(g=null!==(l=null==u?void 0:u.index)&&void 0!==l?l:0),g--)}i.setFocusedKey(v?v.key:null)}c.current=o}),[o,d,i,i.focusedKey]),{collection:o,disabledKeys:s,selectionManager:d}}function se(e){var t;let n=function(e){var t;let[n,i]=(0,q.P)(e.selectedKey,null!==(t=e.defaultSelectedKey)&&void 0!==t?t:null,e.onSelectionChange),s=(0,r.useMemo)((()=>null!=n?[n]:[]),[n]),{collection:a,disabledKeys:l,selectionManager:o}=re({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:s,onSelectionChange:t=>{if("all"===t)return;var r;let s=null!==(r=t.values().next().value)&&void 0!==r?r:null;s===n&&e.onSelectionChange&&e.onSelectionChange(s),i(s)}}),d=null!=n?a.getItem(n):null;return{collection:a,disabledKeys:l,selectionManager:o,selectedKey:n,setSelectedKey:i,selectedItem:d}}({...e,suppressTextValueWarning:!0,defaultSelectedKey:null!==(t=e.defaultSelectedKey)&&void 0!==t?t:ae(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:i,collection:s,selectedKey:a}=n,l=(0,r.useRef)(a);return(0,r.useEffect)((()=>{let e=a;!i.isEmpty&&s.getItem(e)||(e=ae(s,n.disabledKeys),null!=e&&i.setSelectedKeys([e])),(null!=e&&null==i.focusedKey||!i.isFocused&&e!==l.current)&&i.setFocusedKey(e),l.current=e})),{...n,isDisabled:e.isDisabled||!1}}function ae(e,t){let n=null;if(e){var i,r,s,a;for(n=e.getFirstKey();(t.has(n)||(null===(r=e.getItem(n))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.isDisabled))&&n!==e.getLastKey();)n=e.getKeyAfter(n);(t.has(n)||(null===(a=e.getItem(n))||void 0===a||null===(s=a.props)||void 0===s?void 0:s.isDisabled))&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}var le=n(9781),oe=n(5987),de=n(364),ce=n(6948),ue=n(9953);let pe=0;const fe=new Map;const he=500;function ge(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:i,onLongPress:s,threshold:a=he,accessibilityDescription:l}=e;const o=(0,r.useRef)(void 0);let{addGlobalListener:d,removeGlobalListener:c}=(0,ce.A)(),{pressProps:p}=(0,de.d)({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),o.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),s&&s({...e,type:"longpress"}),o.current=void 0}),a),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};d(e.target,"contextmenu",t,{once:!0}),d(window,"pointerup",(()=>{setTimeout((()=>{c(e.target,"contextmenu",t)}),30)}),{once:!0})}},onPressEnd(e){o.current&&clearTimeout(o.current),!i||"mouse"!==e.pointerType&&"touch"!==e.pointerType||i({...e,type:"longpressend"})}}),f=function(e){let[t,n]=(0,r.useState)();return(0,ue.N)((()=>{if(!e)return;let t=fe.get(e);if(t)n(t.element.id);else{let i="react-aria-description-"+pe++;n(i);let r=document.createElement("div");r.id=i,r.style.display="none",r.textContent=e,document.body.appendChild(r),t={refCount:0,element:r},fe.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),fe.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}(s&&!t?l:void 0);return{longPressProps:(0,u.v)(p,f)}}function ve(){let e=window.event;return"Enter"===(null==e?void 0:e.key)}function ye(){let e=window.event;return" "===(null==e?void 0:e.key)||"Space"===(null==e?void 0:e.code)}function me(e,t,n){let{key:i,isDisabled:s,shouldSelectOnPressUp:a}=e,{selectionManager:o,selectedKey:d}=t,c=i===d,p=s||t.isDisabled||t.selectionManager.isDisabled(i),{itemProps:f,isPressed:h}=function(e){let{selectionManager:t,key:n,ref:i,shouldSelectOnPressUp:s,shouldUseVirtualFocus:a,focus:l,isDisabled:o,onAction:d,allowsDifferentPressOrigin:c,linkBehavior:p="action"}=e,f=(0,L.rd)(),h=e=>{if("keyboard"===e.pointerType&&C(e))t.toggleSelection(n);else{if("none"===t.selectionMode)return;if(t.isLink(n)){if("selection"===p){let r=t.getItemProps(n);return f.open(i.current,e,r.href,r.routerOptions),void t.setSelectedKeys(t.selectedKeys)}if("override"===p||"none"===p)return}"single"===t.selectionMode?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):e&&e.shiftKey?t.extendSelection(n):"toggle"===t.selectionBehavior||e&&(k(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?t.toggleSelection(n):t.replaceSelection(n)}};(0,r.useEffect)((()=>{n===t.focusedKey&&t.isFocused&&!a&&(l?l():document.activeElement!==i.current&&(0,B.l)(i.current))}),[i,n,t.focusedKey,t.childFocusStrategy,t.isFocused,a]),o=o||t.isDisabled(n);let g={};a||o?o&&(g.onMouseDown=e=>{e.preventDefault()}):g={tabIndex:n===t.focusedKey?0:-1,onFocus(e){e.target===i.current&&t.setFocusedKey(n)}};let v=t.isLink(n)&&"override"===p,y=t.isLink(n)&&"selection"!==p&&"none"!==p,m=!o&&t.canSelectItem(n)&&!v,b=(d||y)&&!o,A=b&&("replace"===t.selectionBehavior?!m:!m||t.isEmpty),w=b&&m&&"replace"===t.selectionBehavior,E=A||w,x=(0,r.useRef)(null),S=E&&m,T=(0,r.useRef)(!1),P=(0,r.useRef)(!1),K=e=>{if(d&&d(),y){let r=t.getItemProps(n);f.open(i.current,e,r.href,r.routerOptions)}},M={};s?(M.onPressStart=e=>{x.current=e.pointerType,T.current=S,"keyboard"!==e.pointerType||E&&!ye()||h(e)},c?(M.onPressUp=A?null:e=>{"keyboard"!==e.pointerType&&m&&h(e)},M.onPress=A?K:null):M.onPress=e=>{if(A||w&&"mouse"!==e.pointerType){if("keyboard"===e.pointerType&&!ve())return;K(e)}else"keyboard"!==e.pointerType&&m&&h(e)}):(M.onPressStart=e=>{x.current=e.pointerType,T.current=S,P.current=A,m&&("mouse"===e.pointerType&&!A||"keyboard"===e.pointerType&&(!b||ye()))&&h(e)},M.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&E&&ve()||"mouse"===e.pointerType&&P.current)&&(E?K(e):m&&h(e))}),g["data-key"]=n,M.preventFocusOnPress=a;let{pressProps:I,isPressed:_}=(0,de.d)(M),D=w?e=>{"mouse"===x.current&&(e.stopPropagation(),e.preventDefault(),K(e))}:void 0,{longPressProps:R}=ge({isDisabled:!S,onLongPress(e){"touch"===e.pointerType&&(h(e),t.setSelectionBehavior("toggle"))}}),N=t.isLink(n)?e=>{L.Fe.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,u.v)(g,m||A?I:{},S?R:{},{onDoubleClick:D,onDragStartCapture:e=>{"touch"===x.current&&T.current&&e.preventDefault()},onClick:N}),isPressed:_,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:o,allowsSelection:m,hasAction:E}}({selectionManager:o,key:i,ref:n,isDisabled:p,shouldSelectOnPressUp:a,linkBehavior:"selection"}),g=l(t,i,"tab"),v=l(t,i,"tabpanel"),{tabIndex:y}=f,m=t.collection.getItem(i),b=(0,oe.$)(null==m?void 0:m.props,{labelable:!0});delete b.id;let A=(0,L._h)(null==m?void 0:m.props);return{tabProps:(0,u.v)(b,A,f,{id:g,"aria-selected":c,"aria-disabled":p||void 0,"aria-controls":c?v:void 0,tabIndex:p?void 0:y,role:"tab"}),isSelected:c,isDisabled:p,isPressed:h}}var be=n(6133);const Ae={root:"_root_1fp5f_1",tabItems:"_tabItems_1fp5f_1",tabItem:"_tabItem_1fp5f_1"};var we=n(1034);const Ee=e=>{const{item:t,state:n}=e,{key:s,rendered:a}=t,l=(0,r.useRef)(null),{componentProps:o,rootProps:d}=(0,le.Y)("Tabs",e),{isDisabled:c,isSelected:u,tabProps:p}=me({key:s},n,l),{focusProps:f,isFocusVisible:h}=(0,be.o)(o),{navigate:g,url:v}=(0,we.T)();if(g&&v){const e=new URL(v);return null==e||e.searchParams.set(g,`${s}`),(0,i.jsx)("a",{...f,...d({classNames:Ae.tabItem,prefixedNames:"item"}),"data-disabled":c||void 0,"data-focus-visible":h||void 0,"data-selected":u||void 0,href:`${null==e?void 0:e.toString()}`,ref:l,children:a})}return(0,i.jsx)("div",{...d({classNames:Ae.tabItem,prefixedNames:"item"}),...p,...f,"data-disabled":c||void 0,"data-focus-visible":h||void 0,"data-selected":u||void 0,ref:l,children:a})};function xe(e,t,n){let i=function(e,t){let n=null==t?void 0:t.isDisabled,[i,s]=(0,r.useState)(!1);return(0,ue.N)((()=>{if((null==e?void 0:e.current)&&!n){let t=()=>{if(e.current){let t=D(e.current,{tabbable:!0});s(!!t.nextNode())}};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{n.disconnect()}}})),!n&&i}(n)?void 0:0;var s;const a=l(t,null!==(s=e.id)&&void 0!==s?s:null==t?void 0:t.selectedKey,"tabpanel"),o=(0,c.b)({...e,id:a,"aria-labelledby":l(t,null==t?void 0:t.selectedKey,"tab")});return{tabPanelProps:(0,u.v)(o,{tabIndex:i,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}const Ce=e=>{var t;const{state:n}=e,s=(0,r.useRef)(null),{tabPanelProps:a}=xe(e,n,s),{clsx:l}=(0,le.Y)("Tabs",e);return(0,i.jsx)("div",{...a,className:l({classNames:Ae.tabPanel,prefixedNames:"panel"}),ref:s,children:null==(t=n.selectedItem)?void 0:t.props.children})},ke=(0,r.forwardRef)(((e,t)=>{var n;const l=(0,s.U)(t),{context:p,navigate:f}=(0,we.T)(),{clsx:h,componentProps:g,rootProps:v}=(0,le.Y)("Tabs",e),y=se(g);let{orientation:m}=e;m="settings"===p?"horizontal":m;const{tabListProps:b}=function(e,t,n){let{orientation:i="horizontal",keyboardActivation:s="automatic"}=e,{collection:l,selectionManager:p,disabledKeys:f}=t,{direction:h}=E(),g=(0,r.useMemo)((()=>new o(l,h,i,f)),[l,f,i,h]),{collectionProps:v}=O({ref:n,selectionManager:p,keyboardDelegate:g,selectOnFocus:"automatic"===s,disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),y=(0,d.Bi)();a.set(t,y);let m=(0,c.b)({...e,id:y});return{tabListProps:{...(0,u.v)(v,m),role:"tablist","aria-orientation":i,tabIndex:void 0}}}({...g,keyboardActivation:f?"manual":void 0,orientation:m},y,l);return(0,i.jsxs)("div",{...v({classNames:Ae.root}),"data-context":p,"data-orientation":m,children:[(0,i.jsx)("div",{...b,className:h({classNames:Ae.tabItems,prefixedNames:"items"}),ref:l,children:[...y.collection].map((e=>(0,i.jsx)(Ee,{item:e,state:y},e.key)))}),(0,i.jsx)(Ce,{state:y},null==(n=y.selectedItem)?void 0:n.key)]})}));ke.displayName="Tabs"},1034:(e,t,n)=>{n.d(t,{O:()=>a,T:()=>l});var i=n(790),r=n(1609);const s=(0,r.createContext)({context:"settings"}),a=e=>{const{children:t,context:n,url:r}=e;let a="tab";return"string"==typeof e.navigate&&(a=e.navigate),(0,i.jsx)(s.Provider,{value:{context:n,navigate:a,url:r},children:t})},l=()=>(0,r.useContext)(s)},3682:(e,t,n)=>{n.d(t,{A:()=>y});var i=n(790),r=n(3908),s=n(1609),a=n(5987),l=n(8343),o=n(4836),d=n(2217),c=n(8356),u=n(4742),p=n(9681),f=n(8868),h=n(1144),g=n(9781);const v={root:"_root_ptfvg_1",inputWrapper:"_inputWrapper_ptfvg_6",input:"_input_ptfvg_6",invalid:"_invalid_ptfvg_14",label:"_label_ptfvg_19",markedRequired:"_markedRequired_ptfvg_27",descriptionBeforeInput:"_descriptionBeforeInput_ptfvg_34",description:"_description_ptfvg_34",errorMessage:"_errorMessage_ptfvg_46"},y=(0,s.forwardRef)(((e,t)=>{var n,y,m,b,A,w;const{description:E,descriptionArea:x,errorMessage:C,isDisabled:k,isRequired:S,label:T,max:P,min:K,prefix:M,step:I,suffix:_}=e;let D=e.className;const R=null==(n=e.className)?void 0:n.includes("code"),N=null==(y=e.className)?void 0:y.includes("regular-text"),B=null==(m=e.className)?void 0:m.includes("small-text");N&&(D=null==(b=e.className)?void 0:b.replace("regular-text","")),B&&(D=null==(A=e.className)?void 0:A.replace("small-text","")),R&&(D=null==(w=e.className)?void 0:w.replace("code",""));const L=(0,r.U)(t),{clsx:j,componentProps:F,rootProps:Q}=(0,g.Y)("TextField",{...e,className:D}),{descriptionProps:Y,errorMessageProps:G,inputProps:W,isInvalid:H,labelProps:U,validationDetails:O,validationErrors:J}=function(e,t){let{inputElementType:n="input",isDisabled:i=!1,isRequired:r=!1,isReadOnly:g=!1,type:v="text",validationBehavior:y="aria"}=e,[m,b]=(0,c.P)(e.value,e.defaultValue||"",e.onChange),{focusableProps:A}=(0,p.W)(e,t),w=(0,h.KZ)({...e,value:m}),{isInvalid:E,validationErrors:x,validationDetails:C}=w.displayValidation,{labelProps:k,fieldProps:S,descriptionProps:T,errorMessageProps:P}=(0,u.M)({...e,isInvalid:E,errorMessage:e.errorMessage||x}),K=(0,a.$)(e,{labelable:!0});const M={type:v,pattern:e.pattern};return(0,l.F)(t,m,b),(0,f.X)(e,w,t),(0,s.useEffect)((()=>{if(t.current instanceof(0,o.m)(t.current).HTMLTextAreaElement){let e=t.current;Object.defineProperty(e,"defaultValue",{get:()=>e.value,set:()=>{},configurable:!0})}}),[t]),{labelProps:k,inputProps:(0,d.v)(K,"input"===n?M:void 0,{disabled:i,readOnly:g,required:r&&"native"===y,"aria-required":r&&"aria"===y||void 0,"aria-invalid":E||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:m,onChange:e=>b(e.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...A,...S}),descriptionProps:T,errorMessageProps:P,isInvalid:E,validationErrors:x,validationDetails:C}}(F,L),{errorMessageList:V}=function(e){const t=[],{isInvalid:n,validationDetails:i,validationErrors:r}=e,{errorMessage:s}=e,a="function"==typeof s?s({isInvalid:n,validationDetails:i,validationErrors:r}):s;return a&&t.push(a),t.push(...r),{errorMessageList:t||[]}}({errorMessage:C,isInvalid:H,validationDetails:O,validationErrors:J});return(0,i.jsxs)("div",{...Q({classNames:[v.root,{[v.descriptionBeforeInput]:"before-input"===x,[v.disabled]:k,[v.invalid]:H}]}),children:[T&&(0,i.jsxs)("label",{...U,className:j({classNames:v.label,prefixedNames:"label"}),children:[T,S?(0,i.jsx)("span",{className:j({classNames:v.markedRequired,prefixedNames:"marked-required"}),children:"*"}):""]}),(0,i.jsxs)("div",{className:j({classNames:v.inputWrapper,prefixedNames:"input-wrapper"}),children:[M&&(0,i.jsx)("div",{className:j({classNames:v.prefix,prefixedNames:"prefix"}),children:M}),(0,i.jsx)("input",{...W,className:j({classNames:{[v.input]:!0,code:R,"regular-text":N,"small-text":B},prefixedNames:"input"}),max:P,min:K,ref:L,step:I}),_&&(0,i.jsx)("div",{className:j({classNames:v.suffix,prefixedNames:"suffix"}),children:_})]}),V.length>=1&&(0,i.jsx)("div",{...G,className:j({classNames:v.errorMessage,prefixedNames:"error-message"}),children:V.map(((e,t)=>(0,i.jsx)("p",{children:e},t)))}),E&&(0,i.jsx)("p",{...Y,className:j({classNames:[v.description,"description"],prefixedNames:"description"}),children:E})]})}));y.displayName="TextField"},9781:(e,t,n)=>{n.d(t,{Y:()=>r});var i=n(4164);function r(e,t){const{className:n,"data-testid":r,id:s,style:a,...l}=t||{},{clsx:o}=function(e){const t=`kubrick-${e}-`;return{clsx:e=>{const{classNames:n="",prefixedNames:r=""}=e,s=function(e){return"string"==typeof e?e.split(" "):e.map((e=>e.split(" "))).flat()}(r).map((e=>e&&`${t}${e}`)),a=(0,i.A)(s,n);return""!==a.trim()?a:void 0}}}(e);return{clsx:o,componentProps:{...l,id:s},rootProps(t){const{classNames:i,prefixedNames:l}=t||{},d={...a,...(null==t?void 0:t.styles)||{}};return{className:o({classNames:[i,n],prefixedNames:l||"root"}),"data-testid":r,id:s?`${s}-${e}-root`:void 0,style:Object.keys(d).length>=1?d:void 0}}}}},4164:(e,t,n)=>{function i(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}n.d(t,{A:()=>r});const r=function(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=i(e))&&(r&&(r+=" "),r+=t);return r}}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return r[e](n,n.exports,a),n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",i=e=>{e&&e.d<1&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},a.a=(r,s,a)=>{var l;a&&((l=[]).d=-1);var o,d,c,u=new Set,p=r.exports,f=new Promise(((e,t)=>{c=t,d=e}));f[t]=p,f[e]=e=>(l&&e(l),u.forEach(e),f.catch((e=>{}))),r.exports=f,s((r=>{var s;o=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var s=[];s.d=0,r.then((e=>{a[t]=e,i(s)}),(e=>{a[n]=e,i(s)}));var a={};return a[e]=e=>e(s),a}}var l={};return l[e]=e=>{},l[t]=r,l})))(r);var a=()=>o.map((e=>{if(e[n])throw e[n];return e[t]})),d=new Promise((t=>{(s=()=>t(a)).r=0;var n=e=>e!==l&&!u.has(e)&&(u.add(e),e&&!e.d&&(s.r++,e.push(s)));o.map((t=>t[e](n)))}));return s.r?d:a()}),(e=>(e?c(f[n]=e):d(p),i(l)))),l&&l.d<0&&(l.d=0)},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a(341)})();
     1(()=>{"use strict";var e,t,n,i,r={6858:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{Y:()=>p});var r=n(7723),s=n(1034),a=n(6420),l=n(3412),o=n(9662),d=(n(6044),n(4709)),c=n(790),u=e([o,d]);[o,d]=u.then?(await u)():u;const p=()=>{const{inlineData:e}=(0,d.Mp)();return(0,c.jsx)(s.O,{navigate:!0,url:e.settingPage,children:(0,c.jsxs)(a.t,{selectedKey:e.settingPageTab||void 0,children:[(0,c.jsx)(l.o,{title:(0,r.__)("General","syntatis-feature-flipper"),children:(0,c.jsx)(o.a5,{})},"general"),(0,c.jsx)(l.o,{title:(0,r.__)("Admin","syntatis-feature-flipper"),children:(0,c.jsx)(o.nQ,{})},"admin"),(0,c.jsx)(l.o,{title:(0,r.__)("Media","syntatis-feature-flipper"),children:(0,c.jsx)(o.Ct,{})},"media"),(0,c.jsx)(l.o,{title:(0,r.__)("Assets","syntatis-feature-flipper"),children:(0,c.jsx)(o.Bh,{})},"assets"),(0,c.jsx)(l.o,{title:(0,r.__)("Webpage","syntatis-feature-flipper"),children:(0,c.jsx)(o.p2,{})},"webpage"),(0,c.jsx)(l.o,{title:(0,r.__)("Security","syntatis-feature-flipper"),children:(0,c.jsx)(o.SV,{})},"security")]})})};i()}catch(e){i(e)}}))},3951:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{L:()=>o});var r=n(8740),s=n(1270),a=n(790),l=e([r]);r=(l.then?(await l)():l)[0];const o=({children:e,title:t,description:n})=>{const{updating:i}=(0,r.M)();return(0,a.jsxs)("div",{className:s.A.section,children:[t?(0,a.jsx)("h2",{className:`title ${s.A.title}`,children:t}):null,n?(0,a.jsx)("p",{className:s.A.description,children:n}):null,(0,a.jsx)("fieldset",{disabled:i,children:(0,a.jsx)("table",{className:"form-table",role:"presentation",children:(0,a.jsx)("tbody",{children:e})})})]})};i()}catch(e){i(e)}}))},3397:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{c:()=>c,l:()=>u});var r=n(6087),s=n(3731),a=n(8740),l=n(6017),o=n(790),d=e([s,a,l]);[s,a,l]=d.then?(await d)():d;const c=(0,r.createContext)(),u=({children:e})=>{const t=(0,r.useRef)(),{submitValues:n,optionPrefix:i,values:d,setStatus:u}=(0,a.M)(),[p,f]=(0,r.useState)({});return(0,r.useEffect)((()=>{if(!t)return;const e=t.current,n={};for(const t in e.elements){const r=e.elements[t];r.name!==i&&r.name?.startsWith(i)&&(n[r.name]=d[r.name])}f(n)}),[]),(0,o.jsx)(c.Provider,{value:{setFieldsetValues:(e,t)=>{f({...p,[`${i}${e}`]:t})}},children:(0,o.jsxs)("form",{ref:t,method:"POST",onSubmit:e=>{e.preventDefault();const t={};for(const e in p)e in d&&d[e]!==p[e]&&(t[e]=p[e]);0!==Object.keys(t).length?n(t):u("no-change")},children:[(0,o.jsx)(l.N,{}),e,(0,o.jsx)(s.b,{})]})})};i()}catch(e){i(e)}}))},6017:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{N:()=>f});var r=n(9180),s=n(7723),a=n(8740),l=n(790),o=e([a]);a=(o.then?(await o)():o)[0];const d={success:(0,s.__)("Settings saved.","syntatis-feature-flipper"),error:(0,s.__)("Settings failed to save.","syntatis-feature-flipper"),"no-change":(0,s.__)("No changes were made.","syntatis-feature-flipper")},c={success:"success",error:"error","no-change":"info"};function u(e){return d[e]||""}function p(e){return c[e]||"info"}const f=()=>{const{updating:e,status:t,setStatus:n}=(0,a.M)();if(e)return null;const i=u(t);return t&&i&&(0,l.jsx)(r.$,{isDismissable:!0,level:p(t),onDismiss:()=>n(null),children:(0,l.jsx)("strong",{children:i})})};i()}catch(h){i(h)}}))},5143:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{Z:()=>d,l:()=>o});var r=n(6087),s=n(4427),a=n(790),l=e([s]);s=(l.then?(await l)():l)[0];const o=(0,r.createContext)(),d=({children:e,inlineData:t})=>{const n="syntatis_feature_flipper_",i="syntatis-feature-flipper-",{status:r,updating:l,values:d,errorMessages:c,setStatus:u,setValues:p,submitValues:f,getOption:h,initialValues:g,updatedValues:v}=(0,s.t)();return(0,a.jsx)(o.Provider,{value:{errorMessages:c,status:r,updating:l,values:d,optionPrefix:n,setStatus:u,submitValues:f,initialValues:g,inlineData:t,updatedValues:v,setValues:(e,t)=>{p({...d,[`${n}${e}`]:t})},getOption:e=>h(`${n}${e}`),labelProps:e=>({htmlFor:`${i}${e}`,id:`${i}${e}-label`}),inputProps:e=>{const t=e.replaceAll("_","-");return{"aria-labelledby":`${i}${t}-label`,id:`${i}${t}`,name:`${n}${e}`}}},children:e})};i()}catch(e){i(e)}}))},3731:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{b:()=>c});var r=n(7723),s=n(1152),a=n(3677),l=n(8740),o=n(790),d=e([l]);l=(d.then?(await d)():d)[0];const c=()=>{const{updating:e}=(0,l.M)();return(0,o.jsx)("div",{className:"submit",children:(0,o.jsx)(s.$,{isDisabled:e,prefix:e&&(0,o.jsx)(a.y,{}),type:"submit",children:e?(0,r.__)("Saving Changes","syntatis-feature-flipper"):(0,r.__)("Save Changes","syntatis-feature-flipper")})})};i()}catch(e){i(e)}}))},4709:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{LB:()=>s.L,Mp:()=>o.M,Z6:()=>l.Z,lV:()=>r.l,xW:()=>d.x});var r=n(3397),s=n(3951),a=n(6017),l=n(5143),o=n(8740),d=n(2221),c=e([r,s,a,l,o,d]);[r,s,a,l,o,d]=c.then?(await c)():c,i()}catch(e){i(e)}}))},2221:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{x:()=>l});var r=n(6087),s=n(3397),a=e([s]);s=(a.then?(await a)():a)[0];const l=()=>{const e=(0,r.useContext)(s.c);if(!e)throw new Error("useFormContext must be used within a Fieldset");return e};i()}catch(e){i(e)}}))},4427:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{t:()=>d});var r=n(1455),s=n.n(r),a=n(6087);const l=await s()({path:"/wp/v2/settings",method:"GET"});function o(e){const t=e?.match(/: \[(.*?)\] (.+) in/);return t?{[t[1]]:t[2]}:null}const d=()=>{const[e,t]=(0,a.useState)(l),[n,i]=(0,a.useState)(),[r,d]=(0,a.useState)(),[c,u]=(0,a.useState)(!1),[p,f]=(0,a.useState)({});return(0,a.useEffect)((()=>{c&&f({})}),[c]),{values:e,status:n,errorMessages:p,updating:c,submitValues:n=>{u(!0),s()({path:"/wp/v2/settings",method:"POST",data:n}).then((n=>{t((t=>{for(const n in t)Object.keys(e).includes(n)||delete t[n];return t})(n)),i("success")})).catch((e=>{const t=o(e?.data?.error?.message);f((e=>{if(t)return{...e,...t}})),i("error")})).finally((()=>{d(n),u(!1)}))},setValues:t,setStatus:i,getOption:function(t){return e[t]},initialValues:l,updatedValues:r}};i()}catch(c){i(c)}}),1)},8740:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{M:()=>l});var r=n(6087),s=n(5143),a=e([s]);s=(a.then?(await a)():a)[0];const l=()=>{const e=(0,r.useContext)(s.l);if(!e)throw new Error("useSettingsContext must be used within a SettingsProvider");return e};i()}catch(e){i(e)}}))},7719:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{q:()=>f});var r=n(7723),s=n(6754),a=n(8509),l=n(9204),o=n(4709),d=n(3273),c=n(6087),u=n(790),p=e([s,o]);[s,o]=p.then?(await p)():p;const f=()=>{var e;const{getOption:t,inputProps:n,inlineData:i}=(0,o.Mp)(),{setFieldsetValues:p}=(0,o.xW)(),f=(0,c.useId)(),h=i.adminBarMenu||[];return(0,u.jsx)(s.d,{name:"admin_bar",id:"admin-bar",title:(0,r.__)("Admin Bar","syntatis-feature-flipper"),label:(0,r.__)("Show the Admin bar on the front end","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the Admin bar will not be displayed on the front end.","syntatis-feature-flipper"),children:(0,u.jsxs)("details",{className:d.A.inputDetails,children:[(0,u.jsx)("summary",{id:f,children:(0,r.__)("Menu","syntatis-feature-flipper")}),(0,u.jsx)(a.$,{defaultValue:null!==(e=t("admin_bar_menu"))&&void 0!==e?e:h.map((({id:e})=>e)),"aria-labelledby":f,description:(0,r.__)("Unchecked menu items will be hidden from the Admin bar.","syntatis-feature-flipper"),onChange:e=>p("admin_bar_menu",e),...n("admin_bar_menu"),children:h.map((({id:e})=>(0,u.jsx)(l.S,{value:e,label:(0,u.jsx)("code",{children:e})},e)))})]})})};i()}catch(e){i(e)}}))},6832:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{T:()=>f});var r=n(7723),s=n(6754),a=n(8509),l=n(9204),o=n(4709),d=n(3273),c=n(6087),u=n(790),p=e([s,o]);[s,o]=p.then?(await p)():p;const f=()=>{var e;const{getOption:t,inputProps:n,inlineData:i}=(0,o.Mp)(),{setFieldsetValues:p}=(0,o.xW)(),[f,h]=(0,c.useState)(t("dashboard_widgets")),g=(0,c.useId)(),v=i.dashboardWidgets||[],y=null!==(e=t("dashboard_widgets_enabled"))&&void 0!==e?e:null;return(0,u.jsx)(s.d,{name:"dashboard_widgets",id:"dashboard-widgets",title:(0,r.__)("Dashboard Widgets","syntatis-feature-flipper"),label:(0,r.__)("Enable Dashboard widgets","syntatis-feature-flipper"),description:(0,r.__)("When switched off, all widgets will be hidden from the dashboard.","syntatis-feature-flipper"),onChange:h,children:f&&(0,u.jsxs)("details",{className:d.A.inputDetails,children:[(0,u.jsx)("summary",{id:g,children:(0,r.__)("Widgets","syntatis-feature-flipper")}),(0,u.jsx)(a.$,{defaultValue:y,"aria-labelledby":g,description:(0,r.__)("Unchecked widgets will be hidden from the dashboard.","syntatis-feature-flipper"),onChange:e=>{p("dashboard_widgets_enabled",e)},...n("dashboard_widgets_enabled"),children:v.map((({id:e,title:t})=>(0,u.jsx)(l.S,{value:e,label:t},e)))})]})})};i()}catch(e){i(e)}}))},3277:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{k:()=>p});var r=n(7723),s=n(6754),a=n(3682),l=n(4709),o=n(3273),d=n(6087),c=n(790),u=e([s,l]);[s,l]=u.then?(await u)():u;const p=()=>{const{getOption:e}=(0,l.Mp)(),{setFieldsetValues:t}=(0,l.xW)(),[n,i]=(0,d.useState)(e("jpeg_compression"));return(0,c.jsx)(s.d,{name:"jpeg_compression",id:"jpeg-compression",title:(0,r.__)("JPEG Compression","syntatis-feature-flipper"),label:(0,r.__)("Enable JPEG image compression","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will upload the original JPEG image in its full quality, without any compression.","syntatis-feature-flipper"),onChange:i,children:n&&(0,c.jsx)("div",{className:o.A.inputDetails,children:(0,c.jsx)(a.A,{min:10,max:100,type:"number",name:"jpeg_compression_quality",defaultValue:e("jpeg_compression_quality"),onChange:e=>{t("jpeg_compression_quality",e)},className:"code",prefix:(0,c.jsx)("span",{"aria-hidden":!0,children:(0,r.__)("Quality","syntatis-feature-flipper")}),"aria-label":(0,r.__)("Quality","syntatis-feature-flipper"),description:(0,r.__)("The quality of the compressed JPEG image. 100 is the highest quality.","syntatis-feature-flipper"),suffix:"%"})})})};i()}catch(e){i(e)}}))},7687:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{Q:()=>p});var r=n(7723),s=n(6754),a=n(3682),l=n(4709),o=n(3273),d=n(6087),c=n(790),u=e([s,l]);[s,l]=u.then?(await u)():u;const p=()=>{const{getOption:e}=(0,l.Mp)(),{setFieldsetValues:t}=(0,l.xW)(),[n,i]=(0,d.useState)(e("revisions"));return(0,c.jsx)(s.d,{name:"revisions",id:"revisions",title:(0,r.__)("Revisions","syntatis-feature-flipper"),label:(0,r.__)("Enable post revisions","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not save revisions of your posts.","syntatis-feature-flipper"),onChange:i,children:n&&(0,c.jsx)("div",{className:o.A.inputDetails,children:(0,c.jsx)(a.A,{min:1,max:100,placeholder:"-",defaultValue:e("revisions_max"),type:"number",name:"revisions_max",onChange:e=>{t("revisions_max",e)},className:"code",suffix:(0,c.jsx)("span",{"aria-hidden":!0,children:(0,r.__)("Revisions","syntatis-feature-flipper")}),"aria-label":(0,r.__)("Maximum","syntatis-feature-flipper"),description:(0,r.__)("The maximum number of revisions to keep.","syntatis-feature-flipper")})})})};i()}catch(e){i(e)}}))},6754:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{d:()=>o});var r=n(3413),s=n(4709),a=n(790),l=e([s]);s=(l.then?(await l)():l)[0];const o=({description:e,id:t,label:n,name:i,onChange:l,title:o,children:d,isDisabled:c,isSelected:u})=>{const{labelProps:p,inputProps:f,getOption:h}=(0,s.Mp)(),{setFieldsetValues:g}=(0,s.xW)();return(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{scope:"row",children:(0,a.jsx)("label",{...p(t),children:o})}),(0,a.jsxs)("td",{children:[(0,a.jsx)(r.d,{...f(i),onChange:e=>{void 0!==l&&l(e),g(i,e)},defaultSelected:h(i),description:e,label:n,isDisabled:c,isSelected:u}),d]})]})};i()}catch(e){i(e)}}))},1238:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{Q3:()=>l.Q,TF:()=>s.T,dR:()=>o.d,km:()=>a.k,qE:()=>r.q});var r=n(7719),s=n(6832),a=n(3277),l=n(7687),o=n(6754),d=e([r,s,a,l,o]);[r,s,a,l,o]=d.then?(await d)():d,i()}catch(e){i(e)}}))},341:(e,t,n)=>{n.a(e,(async(e,t)=>{try{var i=n(8490),r=n.n(i),s=n(6087),a=n(4709),l=n(6858),o=n(790),d=e([a,l]);[a,l]=d.then?(await d)():d,r()((()=>{const e=document.querySelector("#syntatis-feature-flipper-settings");e&&(0,s.createRoot)(e).render((0,o.jsx)(a.Z6,{inlineData:window.$syntatis.featureFlipper,children:(0,o.jsx)(l.Y,{})}))})),t()}catch(e){t(e)}}))},7834:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{n:()=>u});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=document.querySelector("#wpfooter"),c=d?.style?.display,u=()=>(0,l.jsxs)(s.lV,{children:[(0,l.jsxs)(s.LB,{children:[(0,l.jsx)(a.TF,{}),(0,l.jsx)(a.dR,{name:"admin_footer_text",id:"admin-footer-text",title:(0,r.__)("Footer Text","syntatis-feature-flipper"),label:(0,r.__)("Show the footer text","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the footer text in the admin area will be removed.","syntatis-feature-flipper"),onChange:e=>{d&&(d.style.display=e?c:"none")}}),(0,l.jsx)(a.dR,{name:"update_nags",id:"update-nags",title:(0,r.__)("Update Nags","syntatis-feature-flipper"),label:(0,r.__)("Enable WordPress update notification message","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not show notification message when update is available.","syntatis-feature-flipper")})]}),(0,l.jsxs)(s.LB,{title:(0,r.__)("Admin Bar","syntatis-feature-flipper"),description:(0,r.__)("Customize the Admin bar area","syntatis-feature-flipper"),children:[(0,l.jsx)(a.qE,{}),(0,l.jsx)(a.dR,{name:"admin_bar_howdy",id:"admin-bar-howdy",title:(0,r.__)("Howdy Text","syntatis-feature-flipper"),label:(0,r.__)('Show the "Howdy" text',"syntatis-feature-flipper"),description:(0,r.__)('When switched off, the "Howdy" text in the Account menu in the admin bar will be removed.',"syntatis-feature-flipper")})]})]});i()}catch(e){i(e)}}))},922:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{B:()=>d});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{description:(0,r.__)("Control the behavior of scripts, styles, and images loaded on your site.","syntatis-feature-flipper"),children:[(0,l.jsx)(a.dR,{name:"emojis",id:"emojis",title:(0,r.__)("Emojis","syntatis-feature-flipper"),label:(0,r.__)("Enable the WordPress built-in emojis","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not load the emojis scripts, styles, and images.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"scripts_version",id:"scripts-version",title:(0,r.__)("Scripts Version","syntatis-feature-flipper"),label:(0,r.__)("Show scripts and styles version","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not append the version to the scripts and styles URLs.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"jquery_migrate",id:"scripts-version",title:(0,r.__)("jQuery Migrate","syntatis-feature-flipper"),label:(0,r.__)("Load jQuery Migrate script","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not load the jQuery Migrate script.","syntatis-feature-flipper")})]})});i()}catch(e){i(e)}}))},8905:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{a:()=>d});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=()=>{const{inlineData:e}=(0,s.Mp)();return(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{children:[(0,l.jsx)(a.dR,{name:"gutenberg",id:"gutenberg",title:"Gutenberg",label:(0,r.__)("Enable the block editor","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the block editor will be disabled and the classic editor will be used.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{isSelected:!0===e.themeSupport.widgetsBlockEditor&&void 0,isDisabled:!0!==e.themeSupport.widgetsBlockEditor||void 0,name:"block_based_widgets",id:"block-based-widgets",title:"Block-based Widgets",label:(0,r.__)("Enable the block-based widgets","syntatis-feature-flipper"),description:e.themeSupport.widgetsBlockEditor?(0,r.__)("When switched off, the block-based widgets will be disabled and the classic widgets will be used.","syntatis-feature-flipper"):(0,r.__)("The current theme in-use does not support block-based widgets.","syntatis-feature-flipper")}),(0,l.jsx)(a.Q3,{}),(0,l.jsx)(a.dR,{name:"heartbeat",id:"heartbeat",title:"Heartbeat",label:(0,r.__)("Enable the Heartbeat API","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the Heartbeat API will be disabled; it will not be sending requests.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"self_ping",id:"self-ping",title:"Self-ping",label:(0,r.__)("Enable self-pingbacks","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not send pingbacks to your own site.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"cron",id:"cron",title:"Cron",label:(0,r.__)("Enable cron","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not run scheduled events.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"embed",id:"embed",title:"Embed",label:(0,r.__)("Enable post embedding","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will disable other sites from embedding content from your site, and vice-versa.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"feeds",id:"feeds",title:"Feeds",label:(0,r.__)("Enable RSS feeds","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will disable the RSS feed URLs.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"auto_update",id:"auto-update",title:(0,r.__)("Auto Update","syntatis-feature-flipper"),label:(0,r.__)("Enable WordPress auto update","syntatis-feature-flipper"),description:(0,r.__)("When switched off, you will need to manually update WordPress.","syntatis-feature-flipper")})]})})};i()}catch(e){i(e)}}))},8357:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{C:()=>d});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{children:[(0,l.jsx)(a.dR,{name:"attachment_page",id:"attachment-page",title:(0,r.__)("Attachment Page","syntatis-feature-flipper"),label:(0,r.__)("Enable page for uploaded media files","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not create attachment pages for media files.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"attachment_slug",id:"attachment-slug",title:(0,r.__)("Attachment Slug","syntatis-feature-flipper"),label:(0,r.__)("Enable default media file slug","syntatis-feature-flipper"),description:(0,r.__)("When switched off, attachment page will get a randomized slug instead of taking from the original file name.","syntatis-feature-flipper")}),(0,l.jsx)(a.km,{})]})});i()}catch(e){i(e)}}))},3061:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{S:()=>p});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=document.querySelector('#adminmenu a[href="theme-editor.php"]'),c=document.querySelector('#adminmenu a[href="plugin-editor.php"]'),u={themeEditors:d?.parentElement?.style?.display,pluginEditors:c?.parentElement?.style?.display},p=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{children:[(0,l.jsx)(a.dR,{name:"file_edit",id:"file-edit",title:(0,r.__)("File Edit","syntatis-feature-flipper"),label:(0,r.__)("Enable the File Editor","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will disable the file editor for themes and plugins.","syntatis-feature-flipper"),onChange:e=>{d&&(d.parentElement.style.display=e?u.themeEditors:"none"),c&&(c.parentElement.style.display=e?u.pluginEditors:"none")}}),(0,l.jsx)(a.dR,{name:"xmlrpc",id:"xmlrpc",title:(0,r.__)("XML-RPC","syntatis-feature-flipper"),label:(0,r.__)("Enable XML-RPC","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will disable the XML-RPC endpoint.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"authenticated_rest_api",id:"authenticated-rest-api",title:(0,r.__)("REST API Authentication","syntatis-feature-flipper"),label:(0,r.__)("Enable REST API Authentication","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will allow users to make request to the public REST API endpoint without authentication.","syntatis-feature-flipper")})]})});i()}catch(e){i(e)}}))},5088:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{p:()=>d});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{title:"Metadata",description:(0,r.__)("Control the document metadata added in the HTML head.","syntatis-feature-flipper"),children:[(0,l.jsx)(a.dR,{name:"rsd_link",id:"rsd-link",title:(0,r.__)("RSD Link","syntatis-feature-flipper"),label:(0,r.__)("Enable RSD link","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will remove the Really Simple Discovery (RSD) link from the webpage head.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"generator_tag",id:"generator-tag",title:(0,r.__)("Generator Meta Tag","syntatis-feature-flipper"),label:(0,r.__)("Add WordPress generator meta tag","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will remove the generator meta tag which shows WordPress and its version.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"shortlink",id:"shortlink",title:(0,r.__)("Shortlink","syntatis-feature-flipper"),label:(0,r.__)("Add Shortlink","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will remove the shortlink meta tag which shows the short URL of the webpage head.","syntatis-feature-flipper")})]})});i()}catch(e){i(e)}}))},9662:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{Bh:()=>s.B,Ct:()=>l.C,SV:()=>o.S,a5:()=>a.a,nQ:()=>r.n,p2:()=>d.p});var r=n(7834),s=n(922),a=n(8905),l=n(8357),o=n(3061),d=n(5088),c=e([r,s,a,l,o,d]);[r,s,a,l,o,d]=c.then?(await c)():c,i()}catch(e){i(e)}}))},6044:()=>{},1270:(e,t,n)=>{n.d(t,{A:()=>i});const i={section:"Sow9V_g44_njwPuM6v_z",title:"rbliHJE9bgQbN73QIyJv",description:"AuG3fVwRuf5i2coEeXag"}},3273:(e,t,n)=>{n.d(t,{A:()=>i});const i={inputDetails:"as6IPxn7zk9kjjsv9cX6"}},1609:e=>{e.exports=window.React},790:e=>{e.exports=window.ReactJSXRuntime},1455:e=>{e.exports=window.wp.apiFetch},8490:e=>{e.exports=window.wp.domReady},6087:e=>{e.exports=window.wp.element},7723:e=>{e.exports=window.wp.i18n},9229:(e,t,n)=>{n.d(t,{s:()=>l});var i=n(2217),r=n(5987),s=n(9681),a=n(364);function l(e,t){let n,{elementType:l="button",isDisabled:o,onPress:d,onPressStart:c,onPressEnd:u,onPressUp:p,onPressChange:f,preventFocusOnPress:h,allowFocusWhenDisabled:g,onClick:v,href:y,target:m,rel:b,type:A="button"}=e;n="button"===l?{type:A,disabled:o}:{role:"button",tabIndex:o?void 0:0,href:"a"===l&&o?void 0:y,target:"a"===l?m:void 0,type:"input"===l?A:void 0,disabled:"input"===l?o:void 0,"aria-disabled":o&&"input"!==l?o:void 0,rel:"a"===l?b:void 0};let{pressProps:w,isPressed:E}=(0,a.d)({onPressStart:c,onPressEnd:u,onPressChange:f,onPress:d,onPressUp:p,isDisabled:o,preventFocusOnPress:h,ref:t}),{focusableProps:x}=(0,s.W)(e,t);g&&(x.tabIndex=o?-1:x.tabIndex);let C=(0,i.v)(x,w,(0,r.$)(e,{labelable:!0}));return{isPressed:E,buttonProps:(0,i.v)(n,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{v&&(v(e),console.warn("onClick is deprecated, please use onPress"))}})}}},2526:(e,t,n)=>{n.d(t,{n:()=>i});const i=new WeakMap},8374:(e,t,n)=>{n.d(t,{l:()=>l});var i=n(4836),r=n(7233),s=n(2268),a=n(5562);function l(e){const t=(0,i.T)(e);if("virtual"===(0,a.ME)()){let n=t.activeElement;(0,r.v)((()=>{t.activeElement===n&&e.isConnected&&(0,s.e)(e)}))}else(0,s.e)(e)}},6133:(e,t,n)=>{n.d(t,{o:()=>l});var i=n(5562),r=n(3424),s=n(9461),a=n(1609);function l(e={}){let{autoFocus:t=!1,isTextInput:n,within:l}=e,o=(0,a.useRef)({isFocused:!1,isFocusVisible:t||(0,i.pP)()}),[d,c]=(0,a.useState)(!1),[u,p]=(0,a.useState)((()=>o.current.isFocused&&o.current.isFocusVisible)),f=(0,a.useCallback)((()=>p(o.current.isFocused&&o.current.isFocusVisible)),[]),h=(0,a.useCallback)((e=>{o.current.isFocused=e,c(e),f()}),[f]);(0,i.K7)((e=>{o.current.isFocusVisible=e,f()}),[],{isTextInput:n});let{focusProps:g}=(0,r.i)({isDisabled:l,onFocusChange:h}),{focusWithinProps:v}=(0,s.R)({isDisabled:!l,onFocusWithinChange:h});return{isFocused:d,isFocusVisible:u,focusProps:l?v:g}}},9681:(e,t,n)=>{n.d(t,{W:()=>c});var i=n(8374),r=n(6660),s=n(2217),a=n(1609),l=n(3424);function o(e){if(!e)return;let t=!0;return n=>{let i={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(i),t&&n.stopPropagation()}}let d=a.createContext(null);function c(e,t){let{focusProps:n}=(0,l.i)(e),{keyboardProps:c}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:o(e.onKeyDown),onKeyUp:o(e.onKeyUp)}}}(e),u=(0,s.v)(n,c),p=function(e){let t=(0,a.useContext)(d)||{};(0,r.w)(t,e);let{ref:n,...i}=t;return i}(t),f=e.isDisabled?{}:p,h=(0,a.useRef)(e.autoFocus);return(0,a.useEffect)((()=>{h.current&&t.current&&(0,i.l)(t.current),h.current=!1}),[t]),{focusableProps:(0,s.v)({...u,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},f)}}},8868:(e,t,n)=>{n.d(t,{X:()=>l});var i=n(5562),r=n(1609),s=n(9953),a=n(7049);function l(e,t,n){let{validationBehavior:l,focus:d}=e;(0,s.N)((()=>{if("native"===l&&(null==n?void 0:n.current)){let i=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(i),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=n.current).validity.valid,validationDetails:o(e),validationErrors:e.validationMessage?[e.validationMessage]:[]})}var e}));let c=(0,a.J)((()=>{t.resetValidation()})),u=(0,a.J)((e=>{var r;t.displayValidation.isInvalid||t.commitValidation();let s=null==n||null===(r=n.current)||void 0===r?void 0:r.form;var a;!e.defaultPrevented&&n&&s&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}(s)===n.current&&(d?d():null===(a=n.current)||void 0===a||a.focus(),(0,i.Cl)("keyboard")),e.preventDefault()})),p=(0,a.J)((()=>{t.commitValidation()}));(0,r.useEffect)((()=>{let e=null==n?void 0:n.current;if(!e)return;let t=e.form;return e.addEventListener("invalid",u),e.addEventListener("change",p),null==t||t.addEventListener("reset",c),()=>{e.removeEventListener("invalid",u),e.removeEventListener("change",p),null==t||t.removeEventListener("reset",c)}}),[n,u,p,c,l])}function o(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}},3424:(e,t,n)=>{n.d(t,{i:()=>a});var i=n(2894),r=n(1609),s=n(4836);function a(e){let{isDisabled:t,onFocus:n,onBlur:a,onFocusChange:l}=e;const o=(0,r.useCallback)((e=>{if(e.target===e.currentTarget)return a&&a(e),l&&l(!1),!0}),[a,l]),d=(0,i.y)(o),c=(0,r.useCallback)((e=>{const t=(0,s.T)(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),l&&l(!0),d(e))}),[l,n,d]);return{focusProps:{onFocus:!t&&(n||l||a)?c:void 0,onBlur:t||!a&&!l?void 0:o}}}},5562:(e,t,n)=>{n.d(t,{Cl:()=>x,K7:()=>k,ME:()=>E,pP:()=>w});var i=n(9202),r=n(8948),s=n(4836),a=n(1609);let l=null,o=new Set,d=new Map,c=!1,u=!1;const p={Tab:!0,Escape:!0};function f(e,t){for(let n of o)n(e,t)}function h(e){c=!0,function(e){return!(e.metaKey||!(0,i.cX)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(l="keyboard",f("keyboard",e))}function g(e){l="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(c=!0,f("pointer",e))}function v(e){(0,r.Y)(e)&&(c=!0,l="virtual")}function y(e){e.target!==window&&e.target!==document&&(c||u||(l="virtual",f("virtual",e)),c=!1,u=!1)}function m(){c=!1,u=!0}function b(e){if("undefined"==typeof window||d.get((0,s.m)(e)))return;const t=(0,s.m)(e),n=(0,s.T)(e);let i=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){c=!0,i.apply(this,arguments)},n.addEventListener("keydown",h,!0),n.addEventListener("keyup",h,!0),n.addEventListener("click",v,!0),t.addEventListener("focus",y,!0),t.addEventListener("blur",m,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",g,!0),n.addEventListener("pointermove",g,!0),n.addEventListener("pointerup",g,!0)):(n.addEventListener("mousedown",g,!0),n.addEventListener("mousemove",g,!0),n.addEventListener("mouseup",g,!0)),t.addEventListener("beforeunload",(()=>{A(e)}),{once:!0}),d.set(t,{focus:i})}const A=(e,t)=>{const n=(0,s.m)(e),i=(0,s.T)(e);t&&i.removeEventListener("DOMContentLoaded",t),d.has(n)&&(n.HTMLElement.prototype.focus=d.get(n).focus,i.removeEventListener("keydown",h,!0),i.removeEventListener("keyup",h,!0),i.removeEventListener("click",v,!0),n.removeEventListener("focus",y,!0),n.removeEventListener("blur",m,!1),"undefined"!=typeof PointerEvent?(i.removeEventListener("pointerdown",g,!0),i.removeEventListener("pointermove",g,!0),i.removeEventListener("pointerup",g,!0)):(i.removeEventListener("mousedown",g,!0),i.removeEventListener("mousemove",g,!0),i.removeEventListener("mouseup",g,!0)),d.delete(n))};function w(){return"pointer"!==l}function E(){return l}function x(e){l=e,f(e,null)}"undefined"!=typeof document&&function(e){const t=(0,s.T)(e);let n;"loading"!==t.readyState?b(e):(n=()=>{b(e)},t.addEventListener("DOMContentLoaded",n))}();const C=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function k(e,t,n){b(),(0,a.useEffect)((()=>{let t=(t,i)=>{(function(e,t,n){var i;const r="undefined"!=typeof window?(0,s.m)(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,a="undefined"!=typeof window?(0,s.m)(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l="undefined"!=typeof window?(0,s.m)(null==n?void 0:n.target).HTMLElement:HTMLElement,o="undefined"!=typeof window?(0,s.m)(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof r&&!C.has(null==n||null===(i=n.target)||void 0===i?void 0:i.type)||(null==n?void 0:n.target)instanceof a||(null==n?void 0:n.target)instanceof l&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof o&&!p[n.key])})(!!(null==n?void 0:n.isTextInput),t,i)&&e(w())};return o.add(t),()=>{o.delete(t)}}),t)}},9461:(e,t,n)=>{n.d(t,{R:()=>s});var i=n(2894),r=n(1609);function s(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:s,onFocusWithinChange:a}=e,l=(0,r.useRef)({isFocusWithin:!1}),o=(0,r.useCallback)((e=>{l.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(l.current.isFocusWithin=!1,n&&n(e),a&&a(!1))}),[n,a,l]),d=(0,i.y)(o),c=(0,r.useCallback)((e=>{l.current.isFocusWithin||document.activeElement!==e.target||(s&&s(e),a&&a(!0),l.current.isFocusWithin=!0,d(e))}),[s,a,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:o}}}},364:(e,t,n)=>{n.d(t,{d:()=>S});var i=n(9202),r=n(4836),s=n(7233);let a="default",l="",o=new WeakMap;function d(e){if((0,i.un)()){if("default"===a){const t=(0,r.T)(e);l=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}a="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(o.set(e,e.style.userSelect),e.style.userSelect="none")}function c(e){if((0,i.un)()){if("disabled"!==a)return;a="restoring",setTimeout((()=>{(0,s.v)((()=>{if("restoring"===a){const t=(0,r.T)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=l||""),l="",a="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&o.has(e)){let t=o.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),o.delete(e)}}var u=n(1609);const p=u.createContext({register:()=>{}});function f(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function h(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,f(e,t,"set"),n),n}p.displayName="PressResponderContext";var g=n(2217),v=n(6660),y=n(6948),m=n(7049),b=n(2166),A=n(3831),w=n(8948),E=n(2268),x=new WeakMap;class C{continuePropagation(){h(this,x,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(this,f(this,x,"get"))}constructor(e,t,n,i){var r,s,a,l;l={writable:!0,value:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(s=this,a=x),a.set(s,l),h(this,x,!0);let o=null!==(r=null==i?void 0:i.target)&&void 0!==r?r:n.currentTarget;const d=null==o?void 0:o.getBoundingClientRect();let c,u,p=0,f=null;null!=n.clientX&&null!=n.clientY&&(u=n.clientX,f=n.clientY),d&&(null!=u&&null!=f?(c=u-d.left,p=f-d.top):(c=d.width/2,p=d.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=c,this.y=p}}const k=Symbol("linkClicked");function S(e){let{onPress:t,onPressChange:n,onPressStart:s,onPressEnd:a,onPressUp:l,isDisabled:o,isPressed:f,preventFocusOnPress:h,shouldCancelOnPointerExit:x,allowTextSelectionOnPress:S,ref:B,...j}=function(e){let t=(0,u.useContext)(p);if(t){let{register:n,...i}=t;e=(0,g.v)(i,e),n()}return(0,v.w)(t,e.ref),e}(e),[L,F]=(0,u.useState)(!1),Q=(0,u.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:Y,removeAllGlobalListeners:G}=(0,y.A)(),W=(0,m.J)(((e,t)=>{let i=Q.current;if(o||i.didFirePressStart)return!1;let r=!0;if(i.isTriggeringEvent=!0,s){let n=new C("pressstart",t,e);s(n),r=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,F(!0),r})),U=(0,m.J)(((e,i,r=!0)=>{let s=Q.current;if(!s.didFirePressStart)return!1;s.ignoreClickAfterPress=!0,s.didFirePressStart=!1,s.isTriggeringEvent=!0;let l=!0;if(a){let t=new C("pressend",i,e);a(t),l=t.shouldStopPropagation}if(n&&n(!1),F(!1),t&&r&&!o){let n=new C("press",i,e);t(n),l&&(l=n.shouldStopPropagation)}return s.isTriggeringEvent=!1,l})),H=(0,m.J)(((e,t)=>{let n=Q.current;if(o)return!1;if(l){n.isTriggeringEvent=!0;let i=new C("pressup",t,e);return l(i),n.isTriggeringEvent=!1,i.shouldStopPropagation}return!0})),O=(0,m.J)((e=>{let t=Q.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&U(I(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,G(),S||c(t.target))})),J=(0,m.J)((e=>{x&&O(e)})),V=(0,u.useMemo)((()=>{let e=Q.current,t={onKeyDown(t){if(P(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var s;N(t.target,t.key)&&t.preventDefault();let a=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,a=W(t,"keyboard");let i=t.currentTarget,s=t=>{P(t,i)&&!t.repeat&&i.contains(t.target)&&e.target&&H(I(e.target,t),"keyboard")};Y((0,r.T)(t.currentTarget),"keyup",(0,b.c)(s,n),!0)}a&&t.stopPropagation(),t.metaKey&&(0,i.cX)()&&(null===(s=e.metaKeyEvents)||void 0===s||s.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!A.Fe.isOpening){let n=!0;if(o&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||(0,w.Y)(t.nativeEvent))){o||h||(0,E.e)(t.currentTarget);let e=W(t,"virtual"),i=H(t,"virtual"),r=U(t,"virtual");n=e&&i&&r}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&P(t,e.target)){var i;N(t.target,t.key)&&t.preventDefault();let n=t.target;U(I(e.target,t),"keyboard",e.target.contains(n)),G(),"Enter"!==t.key&&T(e.target)&&e.target.contains(n)&&!t[k]&&(t[k]=!0,(0,A.Fe)(e.target,t,!1)),e.isPressed=!1,null===(i=e.metaKeyEvents)||void 0===i||i.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var r;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(r=e.target)||void 0===r||r.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if((0,w.P)(t.nativeEvent))return void(e.pointerType="virtual");D(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let s=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,o||h||(0,E.e)(t.currentTarget),S||d(e.target),s=W(t,e.pointerType),Y((0,r.T)(t.currentTarget),"pointermove",n,!1),Y((0,r.T)(t.currentTarget),"pointerup",i,!1),Y((0,r.T)(t.currentTarget),"pointercancel",a,!1)),s&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(D(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&_(t,t.currentTarget)&&H(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&_(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,W(I(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,U(I(e.target,t),e.pointerType,!1),J(t)))},i=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(_(t,e.target)&&null!=e.pointerType?U(I(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&U(I(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,G(),S||c(e.target),"ontouchend"in e.target&&"mouse"!==t.pointerType&&Y(e.target,"touchend",s,{once:!0}))},s=e=>{R(e.currentTarget)&&e.preventDefault()},a=e=>{O(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&O(e)}}else{t.onMouseDown=t=>{0===t.button&&t.currentTarget.contains(t.target)&&(D(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents?t.stopPropagation():(e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=(0,w.Y)(t.nativeEvent)?"virtual":"mouse",o||h||(0,E.e)(t.currentTarget),W(t,e.pointerType)&&t.stopPropagation(),Y((0,r.T)(t.currentTarget),"mouseup",n,!1)))},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=W(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=U(t,e.pointerType,!1),J(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||H(t,e.pointerType||"mouse"))};let n=t=>{0===t.button&&(e.isPressed=!1,G(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&_(t,e.target)&&null!=e.pointerType?U(I(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&U(I(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",o||h||(0,E.e)(t.currentTarget),S||d(e.target),W(M(e.target,t),e.pointerType)&&t.stopPropagation(),Y((0,r.m)(t.currentTarget),"scroll",i,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=K(t.nativeEvent,e.activePointerId),i=!0;n&&_(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,i=W(M(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,i=U(M(e.target,t),e.pointerType,!1),J(M(e.target,t))),i&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=K(t.nativeEvent,e.activePointerId),i=!0;n&&_(n,t.currentTarget)&&null!=e.pointerType?(H(M(e.target,t),e.pointerType),i=U(M(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(i=U(M(e.target,t),e.pointerType,!1)),i&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!S&&c(e.target),G()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&O(M(e.target,t)))};let i=t=>{e.isPressed&&t.target.contains(e.target)&&O({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&O(e)}}return t}),[Y,o,h,G,S,O,J,U,W,H]);return(0,u.useEffect)((()=>()=>{var e;S||c(null!==(e=Q.current.target)&&void 0!==e?e:void 0)}),[S]),{isPressed:f||L,pressProps:(0,g.v)(j,V)}}function T(e){return"A"===e.tagName&&e.hasAttribute("href")}function P(e,t){const{key:n,code:i}=e,s=t,a=s.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==i||s instanceof(0,r.m)(s).HTMLInputElement&&!j(s,n)||s instanceof(0,r.m)(s).HTMLTextAreaElement||s.isContentEditable||("link"===a||!a&&T(s))&&"Enter"!==n)}function K(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const i=n[e];if(i.identifier===t)return i}return null}function M(e,t){let n=0,i=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,i=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:i}}function I(e,t){let n=t.clientX,i=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:i}}function _(e,t){let n=t.getBoundingClientRect(),i=function(e){let t=0,n=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?n=e.height/2:void 0!==e.radiusY&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return s=i,!((r=n).left>s.right||s.left>r.right||r.top>s.bottom||s.top>r.bottom);var r,s}function D(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function R(e){return!(e instanceof HTMLInputElement||(e instanceof HTMLButtonElement?"submit"===e.type||"reset"===e.type:T(e)))}function N(e,t){return e instanceof HTMLInputElement?!j(e,t):R(e)}const B=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function j(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:B.has(e.type)}},2894:(e,t,n)=>{n.d(t,{y:()=>l});var i=n(1609),r=n(9953),s=n(7049);class a{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function l(e){let t=(0,i.useRef)({isFocused:!1,observer:null});(0,r.N)((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=(0,s.J)((t=>{null==e||e(t)}));return(0,i.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=e.target,r=e=>{t.current.isFocused=!1,i.disabled&&n(new a("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",r,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&i.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}},4742:(e,t,n)=>{n.d(t,{M:()=>a});var i=n(2145),r=n(7061);var s=n(2217);function a(e){let{description:t,errorMessage:n,isInvalid:a,validationState:l}=e,{labelProps:o,fieldProps:d}=function(e){let{id:t,label:n,"aria-labelledby":s,"aria-label":a,labelElementType:l="label"}=e;t=(0,i.Bi)(t);let o=(0,i.Bi)(),d={};return n?(s=s?`${o} ${s}`:o,d={id:o,htmlFor:"label"===l?t:void 0}):s||a||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:d,fieldProps:(0,r.b)({id:t,"aria-label":a,"aria-labelledby":s})}}(e),c=(0,i.X1)([Boolean(t),Boolean(n),a,l]),u=(0,i.X1)([Boolean(t),Boolean(n),a,l]);return d=(0,s.v)(d,{"aria-describedby":[c,u,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:d,descriptionProps:{id:c},errorMessageProps:{id:u}}}},415:(e,t,n)=>{n.d(t,{Cc:()=>d,wR:()=>f});var i=n(1609);const r={prefix:String(Math.round(1e10*Math.random())),current:0},s=i.createContext(r),a=i.createContext(!1);let l=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),o=new WeakMap;const d="function"==typeof i.useId?function(e){let t=i.useId(),[n]=(0,i.useState)(f());return e||`${n?"react-aria":`react-aria${r.prefix}`}-${t}`}:function(e){let t=(0,i.useContext)(s);t!==r||l||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=function(e=!1){let t=(0,i.useContext)(s),n=(0,i.useRef)(null);if(null===n.current&&!e){var r,a;let e=null===(a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===a||null===(r=a.ReactCurrentOwner)||void 0===r?void 0:r.current;if(e){let n=o.get(e);null==n?o.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,o.delete(e))}n.current=++t.current}return n.current}(!!e),a=`react-aria${t.prefix}`;return e||`${a}-${n}`};function c(){return!1}function u(){return!0}function p(e){return()=>{}}function f(){return"function"==typeof i.useSyncExternalStore?i.useSyncExternalStore(p,c,u):(0,i.useContext)(a)}},5353:(e,t,n)=>{n.d(t,{e:()=>o});var i=n(2217),r=n(5987),s=n(8343),a=n(9681),l=n(364);function o(e,t,n){let{isDisabled:o=!1,isReadOnly:d=!1,value:c,name:u,children:p,"aria-label":f,"aria-labelledby":h,validationState:g="valid",isInvalid:v}=e;null!=p||null!=f||null!=h||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:y,isPressed:m}=(0,l.d)({isDisabled:o}),{pressProps:b,isPressed:A}=(0,l.d)({isDisabled:o||d,onPress(){t.toggle()}}),{focusableProps:w}=(0,a.W)(e,n),E=(0,i.v)(y,w),x=(0,r.$)(e,{labelable:!0});return(0,s.F)(n,t.isSelected,t.setSelected),{labelProps:(0,i.v)(b,{onClick:e=>e.preventDefault()}),inputProps:(0,i.v)(x,{"aria-invalid":v||"invalid"===g||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":d||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:o,...null==c?{}:{value:c},name:u,type:"checkbox",...E}),isSelected:t.isSelected,isPressed:m||A,isDisabled:o,isReadOnly:d,isInvalid:v||"invalid"===g}}},2166:(e,t,n)=>{function i(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}n.d(t,{c:()=>i})},4836:(e,t,n)=>{n.d(t,{T:()=>i,m:()=>r});const i=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},r=e=>e&&"window"in e&&e.window===e?e:i(e).defaultView||window},5987:(e,t,n)=>{n.d(t,{$:()=>l});const i=new Set(["id"]),r=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),s=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),a=/^(data-.*)$/;function l(e,t={}){let{labelable:n,isLink:l,propNames:o}=t,d={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i.has(t)||n&&r.has(t)||l&&s.has(t)||(null==o?void 0:o.has(t))||a.test(t))&&(d[t]=e[t]);return d}},2268:(e,t,n)=>{function i(e){if(function(){if(null==r){r=!1;try{document.createElement("div").focus({get preventScroll(){return r=!0,!0}})}catch(e){}}return r}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],i=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==i;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return i instanceof HTMLElement&&n.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}(t)}}n.d(t,{e:()=>i});let r=null},8948:(e,t,n)=>{n.d(t,{P:()=>s,Y:()=>r});var i=n(9202);function r(e){return!(0!==e.mozInputSource||!e.isTrusted)||((0,i.m0)()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function s(e){return!(0,i.m0)()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType}},2217:(e,t,n)=>{n.d(t,{v:()=>a});var i=n(2166),r=n(2145),s=n(4164);function a(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let a=e[n];for(let e in a){let n=t[e],l=a[e];"function"==typeof n&&"function"==typeof l&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=(0,i.c)(n,l):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof l?"id"===e&&n&&l?t.id=(0,r.Tw)(n,l):t[e]=void 0!==l?l:n:t[e]=(0,s.A)(n,l)}}return t}},3831:(e,t,n)=>{n.d(t,{Fe:()=>o,_h:()=>d,rd:()=>l});var i=n(2268),r=n(9202),s=n(1609);const a=(0,s.createContext)({isNative:!0,open:function(e,t){!function(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}(e,(e=>o(e,t)))},useHref:e=>e});function l(){return(0,s.useContext)(a)}function o(e,t,n=!0){var s,a;let{metaKey:l,ctrlKey:d,altKey:c,shiftKey:u}=t;(0,r.gm)()&&(null===(a=window.event)||void 0===a||null===(s=a.type)||void 0===s?void 0:s.startsWith("key"))&&"_blank"===e.target&&((0,r.cX)()?l=!0:d=!0);let p=(0,r.Tc)()&&(0,r.cX)()&&!(0,r.bh)()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:d,altKey:c,shiftKey:u}):new MouseEvent("click",{metaKey:l,ctrlKey:d,altKey:c,shiftKey:u,bubbles:!0,cancelable:!0});o.isOpening=n,(0,i.e)(e),e.dispatchEvent(p),o.isOpening=!1}function d(e){var t;const n=l().useHref(null!==(t=null==e?void 0:e.href)&&void 0!==t?t:"");return{href:(null==e?void 0:e.href)?n:void 0,target:null==e?void 0:e.target,rel:null==e?void 0:e.rel,download:null==e?void 0:e.download,ping:null==e?void 0:e.ping,referrerPolicy:null==e?void 0:e.referrerPolicy}}o.isOpening=!1},9202:(e,t,n)=>{function i(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function r(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 s(e){let t=null;return()=>(null==t&&(t=e()),t)}n.d(t,{Tc:()=>u,bh:()=>o,cX:()=>a,gm:()=>h,lg:()=>c,m0:()=>f,un:()=>d});const a=s((function(){return r(/^Mac/i)})),l=s((function(){return r(/^iPhone/i)})),o=s((function(){return r(/^iPad/i)||a()&&navigator.maxTouchPoints>1})),d=s((function(){return l()||o()})),c=s((function(){return a()||d()})),u=s((function(){return i(/AppleWebKit/i)&&!p()})),p=s((function(){return i(/Chrome/i)})),f=s((function(){return i(/Android/i)})),h=s((function(){return i(/Firefox/i)}))},7233:(e,t,n)=>{n.d(t,{v:()=>a});let i=new Map,r=new Set;function s(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let s=i.get(n.target);if(s&&(s.delete(n.propertyName),0===s.size&&(n.target.removeEventListener("transitioncancel",t),i.delete(n.target)),0===i.size)){for(let e of r)e();r.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let r=i.get(n.target);r||(r=new Set,i.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function a(e){requestAnimationFrame((()=>{0===i.size?e():r.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?s():document.addEventListener("DOMContentLoaded",s))},7049:(e,t,n)=>{n.d(t,{J:()=>s});var i=n(9953),r=n(1609);function s(e){const t=(0,r.useRef)(null);return(0,i.N)((()=>{t.current=e}),[e]),(0,r.useCallback)(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}},8343:(e,t,n)=>{n.d(t,{F:()=>s});var i=n(7049),r=n(1609);function s(e,t,n){let s=(0,r.useRef)(t),a=(0,i.J)((()=>{n&&n(s.current)}));(0,r.useEffect)((()=>{var t;let n=null==e||null===(t=e.current)||void 0===t?void 0:t.form;return null==n||n.addEventListener("reset",a),()=>{null==n||n.removeEventListener("reset",a)}}),[e,a])}},6948:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(1609);function r(){let e=(0,i.useRef)(new Map),t=(0,i.useCallback)(((t,n,i,r)=>{let s=(null==r?void 0:r.once)?(...t)=>{e.current.delete(i),i(...t)}:i;e.current.set(i,{type:n,eventTarget:t,fn:s,options:r}),t.addEventListener(n,i,r)}),[]),n=(0,i.useCallback)(((t,n,i,r)=>{var s;let a=(null===(s=e.current.get(i))||void 0===s?void 0:s.fn)||i;t.removeEventListener(n,a,r),e.current.delete(i)}),[]),r=(0,i.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,i.useEffect)((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}},2145:(e,t,n)=>{n.d(t,{Tw:()=>c,Bi:()=>d,X1:()=>u});var i=n(9953),r=n(7049),s=n(1609);var a=n(415);let l=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),o=new Map;function d(e){let[t,n]=(0,s.useState)(e),r=(0,s.useRef)(null),d=(0,a.Cc)(t),c=(0,s.useCallback)((e=>{r.current=e}),[]);return l&&(o.has(d)&&!o.get(d).includes(c)?o.set(d,[...o.get(d),c]):o.set(d,[c])),(0,i.N)((()=>{let e=d;return()=>{o.delete(e)}}),[d]),(0,s.useEffect)((()=>{let e=r.current;e&&(r.current=null,n(e))})),d}function c(e,t){if(e===t)return e;let n=o.get(e);if(n)return n.forEach((e=>e(t))),t;let i=o.get(t);return i?(i.forEach((t=>t(e))),e):t}function u(e=[]){let t=d(),[n,a]=function(e){let[t,n]=(0,s.useState)(e),a=(0,s.useRef)(null),l=(0,r.J)((()=>{if(!a.current)return;let e=a.current.next();e.done?a.current=null:t===e.value?l():n(e.value)}));(0,i.N)((()=>{a.current&&l()}));let o=(0,r.J)((e=>{a.current=e(t),l()}));return[t,o]}(t),l=(0,s.useCallback)((()=>{a((function*(){yield t,yield document.getElementById(t)?t:void 0}))}),[t,a]);return(0,i.N)(l,[t,l,...e]),n}},7061:(e,t,n)=>{n.d(t,{b:()=>r});var i=n(2145);function r(e,t){let{id:n,"aria-label":r,"aria-labelledby":s}=e;if(n=(0,i.Bi)(n),s&&r){let e=new Set([n,...s.trim().split(/\s+/)]);s=[...e].join(" ")}else s&&(s=s.trim().split(/\s+/).join(" "));return r||s||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":s}}},9953:(e,t,n)=>{n.d(t,{N:()=>r});var i=n(1609);const r="undefined"!=typeof document?i.useLayoutEffect:()=>{}},3908:(e,t,n)=>{n.d(t,{U:()=>r});var i=n(1609);function r(e){const t=(0,i.useRef)(null);return(0,i.useMemo)((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}},6660:(e,t,n)=>{n.d(t,{w:()=>r});var i=n(9953);function r(e,t){(0,i.N)((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}},7979:(e,t,n)=>{n.d(t,{s:()=>l});var i=n(2217),r=n(1609),s=n(9461);const a={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function l(e){let{children:t,elementType:n="div",isFocusable:l,style:o,...d}=e,{visuallyHiddenProps:c}=function(e={}){let{style:t,isFocusable:n}=e,[i,l]=(0,r.useState)(!1),{focusWithinProps:o}=(0,s.R)({isDisabled:!n,onFocusWithinChange:e=>l(e)});return{visuallyHiddenProps:{...o,style:(0,r.useMemo)((()=>i?t:t?{...a,...t}:a),[i])}}}(e);return r.createElement(n,(0,i.v)(d,c),t)}},1144:(e,t,n)=>{n.d(t,{KZ:()=>d,Lf:()=>o,YD:()=>a,cX:()=>f});var i=n(1609);const r={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},s={...r,customError:!0,valid:!1},a={isInvalid:!1,validationDetails:r,validationErrors:[]},l=(0,i.createContext)({}),o="__formValidationState"+Date.now();function d(e){if(e[o]){let{realtimeValidation:t,displayValidation:n,updateValidation:i,resetValidation:r,commitValidation:s}=e[o];return{realtimeValidation:t,displayValidation:n,updateValidation:i,resetValidation:r,commitValidation:s}}return function(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:d,validate:f,validationBehavior:h="aria"}=e;n&&(t||(t="invalid"===n));let g=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:s}:null,v=(0,i.useMemo)((()=>u(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return c(n)}return[]}(f,o))),[f,o]);(null==d?void 0:d.validationDetails.valid)&&(d=null);let y=(0,i.useContext)(l),m=(0,i.useMemo)((()=>r?Array.isArray(r)?r.flatMap((e=>c(y[e]))):c(y[r]):[]),[y,r]),[b,A]=(0,i.useState)(y),[w,E]=(0,i.useState)(!1);y!==b&&(A(y),E(!1));let x=(0,i.useMemo)((()=>u(w?[]:m)),[w,m]),C=(0,i.useRef)(a),[k,S]=(0,i.useState)(a),T=(0,i.useRef)(a),[P,K]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{if(!P)return;K(!1);let e=v||d||C.current;p(e,T.current)||(T.current=e,S(e))})),{realtimeValidation:g||x||v||d||a,displayValidation:"native"===h?g||x||k:g||x||v||d||k,updateValidation(e){"aria"!==h||p(k,e)?C.current=e:S(e)},resetValidation(){let e=a;p(e,T.current)||(T.current=e,S(e)),"native"===h&&K(!1),E(!0)},commitValidation(){"native"===h&&K(!0),E(!0)}}}(e)}function c(e){return e?Array.isArray(e)?e:[e]:[]}function u(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:s}:null}function p(e,t){return e===t||e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every(((e,n)=>e===t.validationErrors[n]))&&Object.entries(e.validationDetails).every((([e,n])=>t.validationDetails[e]===n))}function f(...e){let t=new Set,n=!1,i={...r};for(let r of e){var s,a;for(let e of r.validationErrors)t.add(e);n||(n=r.isInvalid);for(let e in i)(s=i)[a=e]||(s[a]=r.validationDetails[e])}return i.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:i}}},1623:(e,t,n)=>{n.d(t,{H:()=>r});var i=n(8356);function r(e={}){let{isReadOnly:t}=e,[n,r]=(0,i.P)(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:n,setSelected:function(e){t||r(e)},toggle:function(){t||r(!n)}}}},8356:(e,t,n)=>{n.d(t,{P:()=>r});var i=n(1609);function r(e,t,n){let[r,s]=(0,i.useState)(e||t),a=(0,i.useRef)(void 0!==e),l=void 0!==e;(0,i.useEffect)((()=>{let e=a.current;e!==l&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),a.current=l}),[l]);let o=l?e:r,d=(0,i.useCallback)(((e,...t)=>{let i=(e,...t)=>{n&&(Object.is(o,e)||n(e,...t)),l||(o=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),s(((n,...r)=>{let s=e(l?o:n,...r);return i(s,...t),l?n:s}))):(l||s(e),i(e,...t))}),[l,o,n]);return[o,d]}},1152:(e,t,n)=>{n.d(t,{$:()=>y});var i=n(790),r=n(3908),s=n(2217),a=n(1609),l=n(9229);let o=!1,d=0;function c(){o=!0,setTimeout((()=>{o=!1}),50)}function u(e){"touch"===e.pointerType&&c()}function p(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",u):document.addEventListener("touchend",c),d++,()=>{d--,d>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",u):document.removeEventListener("touchend",c))}}var f=n(6133),h=n(9781);const g="_affix_1mh99_4",v="_hasAffix_1mh99_15",y=(0,a.forwardRef)(((e,t)=>{const{autoFocus:n,children:d,prefix:c,role:u,size:y,suffix:m,variant:b="primary"}=e,A=(0,r.U)(t),{buttonProps:w}=(0,l.s)(e,A),{hoverProps:E}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:r}=e,[s,l]=(0,a.useState)(!1),d=(0,a.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,a.useEffect)(p,[]);let{hoverProps:c,triggerHoverEnd:u}=(0,a.useMemo)((()=>{let e=(e,i)=>{if(d.pointerType=i,r||"touch"===i||d.isHovered||!e.currentTarget.contains(e.target))return;d.isHovered=!0;let s=e.currentTarget;d.target=s,t&&t({type:"hoverstart",target:s,pointerType:i}),n&&n(!0),l(!0)},s=(e,t)=>{if(d.pointerType="",d.target=null,"touch"===t||!d.isHovered)return;d.isHovered=!1;let r=e.currentTarget;i&&i({type:"hoverend",target:r,pointerType:t}),n&&n(!1),l(!1)},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{o&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!r&&e.currentTarget.contains(e.target)&&s(e,e.pointerType)}):(a.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{d.ignoreEmulatedMouseEvents||o||e(t,"mouse"),d.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!r&&e.currentTarget.contains(e.target)&&s(e,"mouse")}),{hoverProps:a,triggerHoverEnd:s}}),[t,n,i,r,d]);return(0,a.useEffect)((()=>{r&&u({currentTarget:d.target},d.pointerType)}),[r]),{hoverProps:c,isHovered:s}}(e),{focusProps:x}=(0,f.o)({autoFocus:n}),{clsx:C,rootProps:k}=(0,h.Y)("Button",e),S=!!c||!!m;return(0,i.jsxs)("button",{...k({classNames:["button",y?`button-${y}`:"",`button-${"link-danger"===b?"link":b}`,{"button-link-delete":"link-danger"===b,[v]:S},"_root_1mh99_1"]}),...(0,s.v)(w,E,x),role:u,children:[c&&(0,i.jsx)("span",{className:C({classNames:[g],prefixedNames:["affix","prefix"]}),children:c}),S?(0,i.jsx)("span",{className:C({classNames:[g],prefixedNames:["affix","infix"]}),children:d}):d,m&&(0,i.jsx)("span",{className:C({classNames:[g],prefixedNames:["affix","suffix"]}),children:m})]})}));y.displayName="Button"},9204:(e,t,n)=>{n.d(t,{S:()=>y});var i=n(790),r=n(3908),s=n(2145),a=n(1609),l=n(8868),o=n(1144),d=n(5353);function c(e,t,n){let i=(0,o.KZ)({...e,value:t.isSelected}),{isInvalid:r,validationErrors:s,validationDetails:c}=i.displayValidation,{labelProps:u,inputProps:p,isSelected:f,isPressed:h,isDisabled:g,isReadOnly:v}=(0,d.e)({...e,isInvalid:r},t,n);(0,l.X)(e,i,n);let{isIndeterminate:y,isRequired:m,validationBehavior:b="aria"}=e;return(0,a.useEffect)((()=>{n.current&&(n.current.indeterminate=!!y)})),{labelProps:u,inputProps:{...p,checked:f,"aria-required":m&&"aria"===b||void 0,required:m&&"native"===b},isSelected:f,isPressed:h,isDisabled:g,isReadOnly:v,isInvalid:r,validationErrors:s,validationDetails:c}}var u=n(2526),p=n(1623),f=n(8509),h=n(9781);const g="_readOnly_lmlip_21",v="_disabled_lmlip_25",y=(0,a.forwardRef)(((e,t)=>{const{description:n}=e,{clsx:l,componentProps:d,rootProps:y}=(0,h.Y)("Checkbox",e),m=(0,r.U)(t),b=(0,a.useRef)(null),A=(0,s.Bi)(),w=n?(0,s.Bi)():void 0,E=(0,a.useContext)(f.I),{inputProps:x,isDisabled:C,isReadOnly:k,labelProps:S}=E?function(e,t,n){const i=(0,p.H)({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}});let{name:r,descriptionId:s,errorMessageId:l,validationBehavior:d}=u.n.get(t);var f;d=null!==(f=e.validationBehavior)&&void 0!==f?f:d;let{realtimeValidation:h}=(0,o.KZ)({...e,value:i.isSelected,name:void 0,validationBehavior:"aria"}),g=(0,a.useRef)(o.YD),v=()=>{t.setInvalid(e.value,h.isInvalid?h:g.current)};(0,a.useEffect)(v);let y=t.realtimeValidation.isInvalid?t.realtimeValidation:h,m="native"===d?t.displayValidation:y;var b;let A=c({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||r,isRequired:null!==(b=e.isRequired)&&void 0!==b?b:t.isRequired,validationBehavior:d,[o.Lf]:{realtimeValidation:y,displayValidation:m,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(e){g.current=e,v()}}},i,n);return{...A,inputProps:{...A.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?l:null,s].filter(Boolean).join(" ")||void 0}}}({...d,children:e.label,value:d.value},E,b):c({...d,children:e.label},(0,p.H)(d),b),T=(0,i.jsx)("span",{...S,className:l({classNames:"_labelContent_lmlip_29",prefixedNames:"label-content"}),children:e.label});return(0,i.jsxs)("div",{...y({classNames:["_root_lmlip_1",{[v]:C,[g]:k}]}),children:[(0,i.jsxs)("label",{className:l({classNames:"_label_lmlip_8",prefixedNames:"label"}),id:A,ref:m,children:[(0,i.jsx)("input",{...x,"aria-describedby":w,"aria-labelledby":A,className:l({classNames:"_input_lmlip_15",prefixedNames:"input"}),ref:b}),T]}),n&&(0,i.jsx)("div",{className:l({classNames:["_description_lmlip_18","description"],prefixedNames:"description"}),id:w,children:n})]})}));y.displayName="Checkbox"},8509:(e,t,n)=>{n.d(t,{$:()=>y,I:()=>v});var i=n(790),r=n(2526),s=n(5987),a=n(2217),l=n(4742),o=n(9461),d=n(3908),c=n(1144),u=n(8356),p=n(1609),f=n(9781);const h="_descriptionBeforeInput_mk25k_34",g="_horizontal_mk25k_63",v=(0,p.createContext)(null),y=(0,p.forwardRef)(((e,t)=>{const{children:n,description:y,descriptionArea:m,errorMessage:b,isRequired:A,label:w,orientation:E="vertical"}=e,{clsx:x,componentProps:C,rootProps:k}=(0,f.Y)("CheckboxGroup",e),S=(0,d.U)(t),T=function(e={}){let[t,n]=(0,u.P)(e.value,e.defaultValue||[],e.onChange),i=!!e.isRequired&&0===t.length,r=(0,p.useRef)(new Map),s=(0,c.KZ)({...e,value:t}),a=s.displayValidation.isInvalid;var l;return{...s,value:t,setValue(t){e.isReadOnly||e.isDisabled||n(t)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected:e=>t.includes(e),addValue(i){e.isReadOnly||e.isDisabled||t.includes(i)||n(t.concat(i))},removeValue(i){e.isReadOnly||e.isDisabled||t.includes(i)&&n(t.filter((e=>e!==i)))},toggleValue(i){e.isReadOnly||e.isDisabled||(t.includes(i)?n(t.filter((e=>e!==i))):n(t.concat(i)))},setInvalid(e,t){let n=new Map(r.current);t.isInvalid?n.set(e,t):n.delete(e),r.current=n,s.updateValidation((0,c.cX)(...n.values()))},validationState:null!==(l=e.validationState)&&void 0!==l?l:a?"invalid":null,isInvalid:a,isRequired:i}}(C),{descriptionProps:P,errorMessageProps:K,groupProps:M,isInvalid:I,labelProps:_,validationDetails:D,validationErrors:R}=function(e,t){let{isDisabled:n,name:i,validationBehavior:d="aria"}=e,{isInvalid:c,validationErrors:u,validationDetails:p}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:g,errorMessageProps:v}=(0,l.M)({...e,labelElementType:"span",isInvalid:c,errorMessage:e.errorMessage||u});r.n.set(t,{name:i,descriptionId:g.id,errorMessageId:v.id,validationBehavior:d});let y=(0,s.$)(e,{labelable:!0}),{focusWithinProps:m}=(0,o.R)({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:(0,a.v)(y,{role:"group","aria-disabled":n||void 0,...h,...m}),labelProps:f,descriptionProps:g,errorMessageProps:v,isInvalid:c,validationErrors:u,validationDetails:p}}(C,T);return(0,i.jsxs)("div",{...k({classNames:["_root_mk25k_1",{[h]:"before-input"===m,[g]:"horizontal"===E}]}),...M,"aria-invalid":I,ref:S,children:[(0,i.jsxs)("span",{..._,className:x({classNames:"_label_mk25k_19",prefixedNames:"label"}),children:[w,A?(0,i.jsx)("span",{className:x({classNames:"_markedRequired_mk25k_27",prefixedNames:"marked-required"}),children:"*"}):""]}),(0,i.jsx)(v.Provider,{value:T,children:(0,i.jsx)("div",{className:x({classNames:"_items_mk25k_57",prefixedNames:"items"}),children:n})}),y&&(0,i.jsx)("div",{...P,className:x({classNames:"_description_mk25k_34",prefixedNames:"description"}),children:y}),I&&(0,i.jsxs)("div",{...K,className:x({classNames:"_errorMessage_mk25k_46",prefixedNames:"error-message"}),children:["function"==typeof b?b({isInvalid:I,validationDetails:D,validationErrors:R}):b,R.join(" ")]})]})}));y.displayName="CheckboxGroup"},9180:(e,t,n)=>{n.d(t,{$:()=>c});var i=n(790),r=n(3908),s=n(1609),a=n(9229),l=n(9781);const o="info",d="default",c=(0,s.forwardRef)(((e,t)=>{const{children:n,isDismissable:s=!1,isDismissed:c,level:u=o,onDismiss:p,variant:f=d}=e,h=(0,r.U)(t),g=(0,r.U)(null),{clsx:v,rootProps:y}=(0,l.Y)("Notice",e),{buttonProps:m}=(0,a.s)({onPress:()=>null==p?void 0:p()},g);return!c&&(0,i.jsxs)("div",{...y({classNames:["notice",`notice-${u}`,"_root_kbeg9_1",{"notice-alt":"alt"===f}]}),ref:h,children:[(0,i.jsx)("div",{className:v({classNames:"_content_kbeg9_4",prefixedNames:"content"}),children:n}),s&&(0,i.jsx)("button",{...m,"aria-label":"object"==typeof s?s.label:"Dismiss notice",className:v({classNames:["notice-dismiss"],prefixedNames:"dismiss-button"}),type:"button"})]})}));c.displayName="Notice"},3677:(e,t,n)=>{n.d(t,{y:()=>d});var i=n(790),r=n(1609),s=n(3908),a=n(7979),l=n(9781);const o=24,d=(0,r.forwardRef)(((e,t)=>{const n=(0,s.U)(t),{componentProps:r,rootProps:d}=(0,l.Y)("Spinner",e),{role:c="status",size:u=o}=r;return(0,i.jsxs)("span",{ref:n,role:c,...d(),children:[(0,i.jsx)(a.s,{children:r.label||"Loading"}),(0,i.jsx)("img",{"aria-hidden":"true",height:u,src:"data:image/gif;base64,R0lGODlhKAAoAPIHAJmZmdPT04qKivHx8fz8/LGxsYCAgP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAwAHACwAAAAAKAAoAEAD1Hi63P4wEmCqtcGFywF5BSeOJFkwW6muGDRQ7AoM0RPAsQFktZKqHsaLxVvkjqPGBJkL9hSEG2v3eT4HgQJAUBEACgGa9TEcUaO4jjjyI1UZhFVxMWAy1weu/ShgpPcyDX+AZhAhhCInTwSHdgVvY5GSk5SSaFMBkJGMgI9jZSIzQoMVojWNI5oHcSWKDksqcz4yqqQiApmXUw1tiCRztr4WAAzCLAx6xiN9C6jKF64Hdc8ieAe9z7Kz1AbaC7DCTjWge6aRUkc7lQ1YWnpeYNbr8xAJACH5BAkDAAcALAIAAgAkACQAAAO7eLqsEwUIYwQoYbTNFwkAJY4iEBBdCp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.d(t,{d:()=>h});var i=n(790),r=n(1609),s=n(3908),a=n(5353),l=n(6133),o=n(2145),d=n(7979),c=n(1623),u=n(9781);const p="_isSelected_umbom_16",f="_isDisabled_umbom_19",h=(0,r.forwardRef)(((e,t)=>{const{description:n,label:r}=e,h=(0,s.U)(t),g=(0,c.H)(e),{clsx:v,componentProps:y,rootProps:m}=(0,u.Y)("Switch",e),{inputProps:b,isDisabled:A,labelProps:w}=function(e,t,n){let{labelProps:i,inputProps:r,isSelected:s,isPressed:l,isDisabled:o,isReadOnly:d}=(0,a.e)(e,t,n);return{labelProps:i,inputProps:{...r,role:"switch",checked:s},isSelected:s,isPressed:l,isDisabled:o,isReadOnly:d}}({...y,children:r},g,h),{focusProps:E,isFocusVisible:x}=(0,l.o)(),C=n?(0,o.Bi)():void 0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("label",{...m({classNames:["_root_umbom_1",{[f]:A,[p]:g.isSelected}]}),...w,children:[(0,i.jsx)(d.s,{children:(0,i.jsx)("input",{...b,...E,"aria-describedby":C,ref:h})}),(0,i.jsxs)("div",{className:v({classNames:["_input_umbom_7"],prefixedNames:"input"}),children:[(0,i.jsxs)("svg",{"aria-hidden":"true",height:28,width:44,children:[(0,i.jsx)("rect",{className:v({classNames:["_track_umbom_1"]}),height:20,rx:10,width:36,x:4,y:4}),(0,i.jsx)("circle",{className:v({classNames:["_thumb_umbom_4"]}),cx:g.isSelected?30:14,cy:14,r:8}),x&&(0,i.jsx)("rect",{className:v({classNames:["_focusRing_umbom_13"],prefixedNames:"focusRing"}),fill:"none",height:26,rx:14,strokeWidth:2,width:42,x:1,y:1})]}),(0,i.jsx)("span",{className:v({prefixedNames:"label"}),children:r})]})]}),n&&(0,i.jsx)("p",{className:v({classNames:["description"],prefixedNames:"description"}),id:C,children:n})]})}));h.displayName="Switch"},3412:(e,t,n)=>{n.d(t,{o:()=>i});const i=e=>null;i.getCollectionNode=function*(e){const{title:t}=e;yield{props:e,rendered:t,type:"item"}}},6420:(e,t,n)=>{n.d(t,{t:()=>ke});var i=n(790),r=n(1609),s=n(3908);const a=new WeakMap;function l(e,t,n){return e?("string"==typeof t&&(t=t.replace(/\s+/g,"")),`${a.get(e)}-${n}-${t}`):""}class o{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,n;return this.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return null!=e&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return null!=e&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){do{null==(e=this.collection.getKeyAfter(e))&&(e=this.collection.getFirstKey())}while(this.isDisabled(e));return e}getPreviousKey(e){do{null==(e=this.collection.getKeyBefore(e))&&(e=this.collection.getLastKey())}while(this.isDisabled(e));return e}constructor(e,t,n,i=new Set){this.collection=e,this.flipDirection="rtl"===t&&"horizontal"===n,this.disabledKeys=i,this.tabDirection="horizontal"===n}}var d=n(2145),c=n(7061),u=n(2217);const p=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),f=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function h(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return p.has(t.script)}let t=e.split("-")[0];return f.has(t)}var g=n(415);const v=Symbol.for("react-aria.i18n.locale");function y(){let e="undefined"!=typeof window&&window[v]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:h(e)?"rtl":"ltr"}}let m=y(),b=new Set;function A(){m=y();for(let e of b)e(m)}const w=r.createContext(null);function E(){let e=function(){let e=(0,g.wR)(),[t,n]=(0,r.useState)(m);return(0,r.useEffect)((()=>(0===b.size&&window.addEventListener("languagechange",A),b.add(n),()=>{b.delete(n),0===b.size&&window.removeEventListener("languagechange",A)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return(0,r.useContext)(w)||e}var x=n(9202);function C(e){return(0,x.lg)()?e.altKey:e.ctrlKey}function k(e){return(0,x.cX)()?e.metaKey:e.ctrlKey}const S=window.ReactDOM;var T=n(4836);function P(e,t){return"#comment"!==e.nodeName&&function(e){const t=(0,T.m)(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:n,visibility:i}=e.style,r="none"!==n&&"hidden"!==i&&"collapse"!==i;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:i}=t(e);r="none"!==n&&"hidden"!==i&&"collapse"!==i}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||P(e.parentElement,e))}const K=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],M=K.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";K.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const I=K.join(':not([hidden]):not([tabindex="-1"]),');function _(e,t){return!!e&&!!t&&t.some((t=>t.contains(e)))}function D(e,t,n){let i=(null==t?void 0:t.tabbable)?I:M,r=(0,T.T)(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var r;return(null==t||null===(r=t.from)||void 0===r?void 0:r.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(i)||!P(e)||n&&!_(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(r.currentNode=t.from),r}class R{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let i=this.fastMap.get(null!=t?t:null);if(!i)return;let r=new N({scopeRef:e});i.addChild(r),r.parent=i,this.fastMap.set(e,r),n&&(r.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&_(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let i=t.children;n&&(n.removeChild(t),i.size>0&&i.forEach((e=>n&&n.addChild(e)))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new R;var n;for(let i of this.traverse())t.addTreeNode(i.scopeRef,null!==(n=null===(e=i.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,i.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new N({scopeRef:null}),this.fastMap.set(null,this.root)}}class N{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}new R;var B=n(8374),j=n(3831),L=n(2268),F=n(7049);function Q(e,t,n,i){let s=(0,F.J)(n),a=null==n;(0,r.useEffect)((()=>{if(a||!e.current)return;let n=e.current;return n.addEventListener(t,s,i),()=>{n.removeEventListener(t,s,i)}}),[e,t,i,a,s])}function Y(e,t){let n=window.getComputedStyle(e),i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function G(e,t){let n=W(e,t,"left"),i=W(e,t,"top"),r=t.offsetWidth,s=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,{borderTopWidth:o,borderLeftWidth:d}=getComputedStyle(e),c=e.scrollLeft+parseInt(d,10),u=e.scrollTop+parseInt(o,10),p=c+e.clientWidth,f=u+e.clientHeight;n<=a?a=n-parseInt(d,10):n+r>p&&(a+=n+r-p),i<=u?l=i-parseInt(o,10):i+s>f&&(l+=i+s-f),e.scrollLeft=a,e.scrollTop=l}function W(e,t,n){const i="left"===n?"offsetLeft":"offsetTop";let r=0;for(;t.offsetParent&&(r+=t[i],t.offsetParent!==e);){if(t.offsetParent.contains(e)){r-=e[i];break}t=t.offsetParent}return r}function U(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(a).overflow){let t=function(e,t){const n=[];for(;e&&e!==document.documentElement;)Y(e,t)&&n.push(e),e=e.parentElement;return n}(e);for(let n of t)G(n,e)}else{var n;let{left:a,top:l}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:o,top:d}=e.getBoundingClientRect();var i,r,s;(Math.abs(a-o)>1||Math.abs(l-d)>1)&&(null==t||null===(r=t.containingElement)||void 0===r||null===(i=r.scrollIntoView)||void 0===i||i.call(r,{block:"center",inline:"center"}),null===(s=e.scrollIntoView)||void 0===s||s.call(e,{block:"nearest"}))}}}var H=n(5562);function O(e){let{selectionManager:t,keyboardDelegate:n,ref:i,autoFocus:s=!1,shouldFocusWrap:a=!1,disallowEmptySelection:l=!1,disallowSelectAll:o=!1,selectOnFocus:d="replace"===t.selectionBehavior,disallowTypeAhead:c=!1,shouldUseVirtualFocus:p,allowsTabNavigation:f=!1,isVirtualized:h,scrollRef:g=i,linkBehavior:v="action"}=e,{direction:y}=E(),m=(0,j.rd)(),b=(0,r.useRef)({top:0,left:0});Q(g,"scroll",h?null:()=>{b.current={top:g.current.scrollTop,left:g.current.scrollLeft}});const A=(0,r.useRef)(s);(0,r.useEffect)((()=>{if(A.current){let e=null;"first"===s&&(e=n.getFirstKey()),"last"===s&&(e=n.getLastKey());let r=t.selectedKeys;if(r.size)for(let n of r)if(t.canSelectItem(n)){e=n;break}t.setFocused(!0),t.setFocusedKey(e),null!=e||p||(0,B.l)(i.current)}}),[]);let w=(0,r.useRef)(t.focusedKey);(0,r.useEffect)((()=>{if(t.isFocused&&null!=t.focusedKey&&(t.focusedKey!==w.current||A.current)&&(null==g?void 0:g.current)){let e=(0,H.ME)(),n=i.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!n)return;("keyboard"===e||A.current)&&(G(g.current,n),"virtual"!==e&&U(n,{containingElement:i.current}))}!p&&t.isFocused&&null==t.focusedKey&&null!=w.current&&(0,B.l)(i.current),w.current=t.focusedKey,A.current=!1})),Q(i,"react-aria-focus-scope-restore",(e=>{e.preventDefault(),t.setFocused(!0)}));let x,T={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!i.current.contains(e.target))return;const r=(n,i)=>{if(null!=n){if(t.isLink(n)&&"selection"===v&&d&&!C(e)){(0,S.flushSync)((()=>{t.setFocusedKey(n,i)}));let r=g.current.querySelector(`[data-key="${CSS.escape(n.toString())}"]`),s=t.getItemProps(n);return void m.open(r,e,s.href,s.routerOptions)}if(t.setFocusedKey(n,i),t.isLink(n)&&"override"===v)return;e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(n):d&&!C(e)&&t.replaceSelection(n)}};switch(e.key){case"ArrowDown":if(n.getKeyBelow){var s,c,u;let i=null!=t.focusedKey?null===(s=n.getKeyBelow)||void 0===s?void 0:s.call(n,t.focusedKey):null===(c=n.getFirstKey)||void 0===c?void 0:c.call(n);null==i&&a&&(i=null===(u=n.getFirstKey)||void 0===u?void 0:u.call(n,t.focusedKey)),null!=i&&(e.preventDefault(),r(i))}break;case"ArrowUp":if(n.getKeyAbove){var p,h,b;let i=null!=t.focusedKey?null===(p=n.getKeyAbove)||void 0===p?void 0:p.call(n,t.focusedKey):null===(h=n.getLastKey)||void 0===h?void 0:h.call(n);null==i&&a&&(i=null===(b=n.getLastKey)||void 0===b?void 0:b.call(n,t.focusedKey)),null!=i&&(e.preventDefault(),r(i))}break;case"ArrowLeft":if(n.getKeyLeftOf){var A,w,E;let i=null===(A=n.getKeyLeftOf)||void 0===A?void 0:A.call(n,t.focusedKey);null==i&&a&&(i="rtl"===y?null===(w=n.getFirstKey)||void 0===w?void 0:w.call(n,t.focusedKey):null===(E=n.getLastKey)||void 0===E?void 0:E.call(n,t.focusedKey)),null!=i&&(e.preventDefault(),r(i,"rtl"===y?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var x,T,P;let i=null===(x=n.getKeyRightOf)||void 0===x?void 0:x.call(n,t.focusedKey);null==i&&a&&(i="rtl"===y?null===(T=n.getLastKey)||void 0===T?void 0:T.call(n,t.focusedKey):null===(P=n.getFirstKey)||void 0===P?void 0:P.call(n,t.focusedKey)),null!=i&&(e.preventDefault(),r(i,"rtl"===y?"last":"first"))}break;case"Home":if(n.getFirstKey){e.preventDefault();let i=n.getFirstKey(t.focusedKey,k(e));t.setFocusedKey(i),k(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(i):d&&t.replaceSelection(i)}break;case"End":if(n.getLastKey){e.preventDefault();let i=n.getLastKey(t.focusedKey,k(e));t.setFocusedKey(i),k(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(i):d&&t.replaceSelection(i)}break;case"PageDown":if(n.getKeyPageBelow){let i=n.getKeyPageBelow(t.focusedKey);null!=i&&(e.preventDefault(),r(i))}break;case"PageUp":if(n.getKeyPageAbove){let i=n.getKeyPageAbove(t.focusedKey);null!=i&&(e.preventDefault(),r(i))}break;case"a":k(e)&&"multiple"===t.selectionMode&&!0!==o&&(e.preventDefault(),t.selectAll());break;case"Escape":l||0===t.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(e.shiftKey)i.current.focus();else{let e,t,n=D(i.current,{tabbable:!0});do{t=n.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&(0,L.e)(e)}break}}},onFocus:e=>{if(t.isFocused)e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),null==t.focusedKey){let i=e=>{null!=e&&(t.setFocusedKey(e),d&&t.replaceSelection(e))},a=e.relatedTarget;var r,s;a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?i(null!==(r=t.lastSelectedKey)&&void 0!==r?r:n.getLastKey()):i(null!==(s=t.firstSelectedKey)&&void 0!==s?s:n.getFirstKey())}else h||(g.current.scrollTop=b.current.top,g.current.scrollLeft=b.current.left);if(null!=t.focusedKey){let e=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);e&&(e.contains(document.activeElement)||(0,L.e)(e),"keyboard"===(0,H.ME)()&&U(e,{containingElement:i.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){g.current===e.target&&e.preventDefault()}},{typeSelectProps:P}=function(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:i}=e,s=(0,r.useRef)({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let r=function(e){return 1!==e.length&&/^[A-Z]/i.test(e)?"":e}(e.key);if(!r||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target))return;" "===r&&s.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),s.search+=r;let a=t.getKeyForSearch(s.search,n.focusedKey);null==a&&(a=t.getKeyForSearch(s.search)),null!=a&&(n.setFocusedKey(a),i&&i(a)),clearTimeout(s.timeout),s.timeout=setTimeout((()=>{s.search=""}),1e3)}:null}}}({keyboardDelegate:n,selectionManager:t});return c||(T=(0,u.v)(P,T)),p||(x=null==t.focusedKey?0:-1),{collectionProps:{...T,tabIndex:x}}}class J{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var n;return t&&null!==(n=t.prevKey)&&void 0!==n?n:null}getKeyAfter(e){let t=this.keyMap.get(e);var n;return t&&null!==(n=t.nextKey)&&void 0!==n?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let n of e.childNodes)t(n)};for(let n of e)t(n);let n=null,i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),n=t,n.nextKey=void 0;var r;this.lastKey=null!==(r=null==n?void 0:n.key)&&void 0!==r?r:null}}class V extends Set{constructor(e,t,n){super(e),e instanceof V?(this.anchorKey=null!=t?t:e.anchorKey,this.currentKey=null!=n?n:e.currentKey):(this.anchorKey=t,this.currentKey=n)}}var q=n(8356);function z(e,t){return e?"all"===e?"all":new V(e):t}function Z(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let i=[...X(e,t),t],r=[...X(e,n),n],s=i.slice(0,r.length).findIndex(((e,t)=>e!==r[t]));return-1!==s?(t=i[s],n=r[s],t.index-n.index):i.findIndex((e=>e===n))>=0?1:(r.findIndex((e=>e===t)),-1)}function X(e,t){let n=[];for(;null!=(null==t?void 0:t.parentKey);)t=e.getItem(t.parentKey),n.unshift(t);return n}class ${get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&Z(this.collection,n,e)<0)&&(e=n)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&Z(this.collection,n,e)>0)&&(e=n)}return null==e?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new V([e],e,e);else{let r=this.state.selectedKeys;var n;let s=null!==(n=r.anchorKey)&&void 0!==n?n:e;var i;t=new V(r,s,e);for(let n of this.getKeyRange(s,null!==(i=r.currentKey)&&void 0!==i?i:e))t.delete(n);for(let n of this.getKeyRange(e,s))this.canSelectItem(n)&&t.add(n)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let n=this.collection.getItem(e),i=this.collection.getItem(t);return n&&i?Z(this.collection,n,i)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if(null===(n=this.layoutDelegate)||void 0===n?void 0:n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let i=[],r=e;for(;null!=r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&i.push(r),r===t)return i;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let t=new V("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):this.canSelectItem(e)&&(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){if("none"===this.selectionMode)return;if(null==(e=this.getKey(e)))return;let t=this.canSelectItem(e)?new V([e],e,e):new V;this.state.setSelectedKeys(t)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new V;for(let n of e)if(n=this.getKey(n),null!=n&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;null!=n;){if(this.canSelectItem(n)){let a=this.collection.getItem(n);"item"===a.type&&e.push(n),a.hasChildNodes&&(this.allowsCellSelection||"item"!==a.type)&&t((r=a,s=this.collection,i="function"==typeof s.getChildren?s.getChildren(r.key):r.childNodes,function(e){let t=0;for(let n of e){if(0===t)return n;t++}}(i)).key)}n=this.collection.getKeyAfter(n)}var i,r,s};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new V)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||(null==n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)||"cell"===n.type&&!this.allowsCellSelection)}isDisabled(e){var t,n;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,n;return!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}constructor(e,t,n){var i;this.collection=e,this.state=t,this.allowsCellSelection=null!==(i=null==n?void 0:n.allowsCellSelection)&&void 0!==i&&i,this._isSelectAll=null,this.layoutDelegate=(null==n?void 0:n.layoutDelegate)||null}}class ee{build(e,t){return this.context=t,te((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:t,items:n}=e;if(r.isValidElement(t)&&t.type===r.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if("function"==typeof t){if(!n)throw new Error("props.children was a function but props.items is missing");for(let n of e.items)yield*this.getFullNode({value:n},{renderer:t})}else{let e=[];r.Children.forEach(t,(t=>{e.push(t)}));let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,i){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${i}${t.key}`;let r=t.value;if(null!=r){var s;let e=null!==(s=r.key)&&void 0!==s?s:r.id;if(null==e)throw new Error("No key found for item");return e}return i?`${i}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,i){if(r.isValidElement(e.element)&&e.element.type===r.Fragment){let s=[];r.Children.forEach(e.element.props.children,(e=>{s.push(e)}));let a=e.index;for(const e of s)yield*this.getFullNode({element:e,index:a++},t,n,i);return}let s=e.element;if(!s&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context)))return n.index=e.index,n.parentKey=i?i.key:null,void(yield n);s=t.renderer(e.value)}if(r.isValidElement(s)){let r=s.type;if("function"!=typeof r&&"function"!=typeof r.getCollectionNode){let e="function"==typeof s.type?s.type.name:s.type;throw new Error(`Unknown element <${e}> in collection.`)}let a=r.getCollectionNode(s.props,this.context),l=e.index,o=a.next();for(;!o.done&&o.value;){let r=o.value;e.index=l;let d=r.key;d||(d=r.element?null:this.getKey(s,e,t,n));let c=[...this.getFullNode({...r,key:d,index:l,wrapper:ne(e.wrapper,r.wrapper)},this.getChildState(t,r),n?`${n}${s.key}`:s.key,i)];for(let t of c){if(t.value=r.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw new Error(`Unsupported type <${ie(t.type)}> in <${ie(i.type)}>. Only <${ie(e.type)}> is supported.`);l++,yield t}o=a.next(c)}return}if(null==e.key)return;let a=this,l={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:e.value,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:te((function*(){if(!e.hasChildNodes)return;let n=0;for(let i of e.childNodes()){null!=i.key&&(i.key=`${l.key}${i.key}`),i.index=n;let e=a.getFullNode(i,a.getChildState(t,i),l.key,l);for(let t of e)n++,yield t}}))};yield l}constructor(){this.cache=new WeakMap}}function te(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||(n=e());for(let e of n)t.push(e),yield e}}}function ne(e,t){return e&&t?n=>e(t(n)):e||t||void 0}function ie(e){return e[0].toUpperCase()+e.slice(1)}function re(e){let{filter:t,layoutDelegate:n}=e,i=function(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:i,selectionBehavior:s="toggle",disabledBehavior:a="all"}=e,l=(0,r.useRef)(!1),[,o]=(0,r.useState)(!1),d=(0,r.useRef)(null),c=(0,r.useRef)(null),[,u]=(0,r.useState)(null),p=(0,r.useMemo)((()=>z(e.selectedKeys)),[e.selectedKeys]),f=(0,r.useMemo)((()=>z(e.defaultSelectedKeys,new V)),[e.defaultSelectedKeys]),[h,g]=(0,q.P)(p,f,e.onSelectionChange),v=(0,r.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[y,m]=(0,r.useState)(s);"replace"===s&&"toggle"===y&&"object"==typeof h&&0===h.size&&m("replace");let b=(0,r.useRef)(s);return(0,r.useEffect)((()=>{s!==b.current&&(m(s),b.current=s)}),[s]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(e){l.current=e,o(e)},get focusedKey(){return d.current},get childFocusStrategy(){return c.current},setFocusedKey(e,t="first"){d.current=e,c.current=t,u(e)},selectedKeys:h,setSelectedKeys(e){!i&&function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,h)||g(e)},disabledKeys:v,disabledBehavior:a}}(e),s=(0,r.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),a=(0,r.useCallback)((e=>new J(t?t(e):e)),[t]),l=(0,r.useMemo)((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),o=function(e,t,n){let i=(0,r.useMemo)((()=>new ee),[]),{children:s,items:a,collection:l}=e;return(0,r.useMemo)((()=>{if(l)return l;let e=i.build({children:s,items:a},n);return t(e)}),[i,s,a,l,n,t])}(e,a,l),d=(0,r.useMemo)((()=>new $(o,i,{layoutDelegate:n})),[o,i,n]);const c=(0,r.useRef)(null);return(0,r.useEffect)((()=>{if(null!=i.focusedKey&&!o.getItem(i.focusedKey)&&c.current){const u=c.current.getItem(i.focusedKey),p=[...c.current.getKeys()].map((e=>{const t=c.current.getItem(e);return"item"===(null==t?void 0:t.type)?t:null})).filter((e=>null!==e)),f=[...o.getKeys()].map((e=>{const t=o.getItem(e);return"item"===(null==t?void 0:t.type)?t:null})).filter((e=>null!==e));var e,t;const h=(null!==(e=null==p?void 0:p.length)&&void 0!==e?e:0)-(null!==(t=null==f?void 0:f.length)&&void 0!==t?t:0);var n,r,s;let g=Math.min(h>1?Math.max((null!==(n=null==u?void 0:u.index)&&void 0!==n?n:0)-h+1,0):null!==(r=null==u?void 0:u.index)&&void 0!==r?r:0,(null!==(s=null==f?void 0:f.length)&&void 0!==s?s:0)-1),v=null,y=!1;for(;g>=0;){if(!d.isDisabled(f[g].key)){v=f[g];break}var a,l;g<f.length-1&&!y?g++:(y=!0,g>(null!==(a=null==u?void 0:u.index)&&void 0!==a?a:0)&&(g=null!==(l=null==u?void 0:u.index)&&void 0!==l?l:0),g--)}i.setFocusedKey(v?v.key:null)}c.current=o}),[o,d,i,i.focusedKey]),{collection:o,disabledKeys:s,selectionManager:d}}function se(e){var t;let n=function(e){var t;let[n,i]=(0,q.P)(e.selectedKey,null!==(t=e.defaultSelectedKey)&&void 0!==t?t:null,e.onSelectionChange),s=(0,r.useMemo)((()=>null!=n?[n]:[]),[n]),{collection:a,disabledKeys:l,selectionManager:o}=re({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:s,onSelectionChange:t=>{if("all"===t)return;var r;let s=null!==(r=t.values().next().value)&&void 0!==r?r:null;s===n&&e.onSelectionChange&&e.onSelectionChange(s),i(s)}}),d=null!=n?a.getItem(n):null;return{collection:a,disabledKeys:l,selectionManager:o,selectedKey:n,setSelectedKey:i,selectedItem:d}}({...e,suppressTextValueWarning:!0,defaultSelectedKey:null!==(t=e.defaultSelectedKey)&&void 0!==t?t:ae(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:i,collection:s,selectedKey:a}=n,l=(0,r.useRef)(a);return(0,r.useEffect)((()=>{let e=a;!i.isEmpty&&s.getItem(e)||(e=ae(s,n.disabledKeys),null!=e&&i.setSelectedKeys([e])),(null!=e&&null==i.focusedKey||!i.isFocused&&e!==l.current)&&i.setFocusedKey(e),l.current=e})),{...n,isDisabled:e.isDisabled||!1}}function ae(e,t){let n=null;if(e){var i,r,s,a;for(n=e.getFirstKey();(t.has(n)||(null===(r=e.getItem(n))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.isDisabled))&&n!==e.getLastKey();)n=e.getKeyAfter(n);(t.has(n)||(null===(a=e.getItem(n))||void 0===a||null===(s=a.props)||void 0===s?void 0:s.isDisabled))&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}var le=n(9781),oe=n(5987),de=n(364),ce=n(6948),ue=n(9953);let pe=0;const fe=new Map;const he=500;function ge(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:i,onLongPress:s,threshold:a=he,accessibilityDescription:l}=e;const o=(0,r.useRef)(void 0);let{addGlobalListener:d,removeGlobalListener:c}=(0,ce.A)(),{pressProps:p}=(0,de.d)({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),o.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),s&&s({...e,type:"longpress"}),o.current=void 0}),a),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};d(e.target,"contextmenu",t,{once:!0}),d(window,"pointerup",(()=>{setTimeout((()=>{c(e.target,"contextmenu",t)}),30)}),{once:!0})}},onPressEnd(e){o.current&&clearTimeout(o.current),!i||"mouse"!==e.pointerType&&"touch"!==e.pointerType||i({...e,type:"longpressend"})}}),f=function(e){let[t,n]=(0,r.useState)();return(0,ue.N)((()=>{if(!e)return;let t=fe.get(e);if(t)n(t.element.id);else{let i="react-aria-description-"+pe++;n(i);let r=document.createElement("div");r.id=i,r.style.display="none",r.textContent=e,document.body.appendChild(r),t={refCount:0,element:r},fe.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),fe.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}(s&&!t?l:void 0);return{longPressProps:(0,u.v)(p,f)}}function ve(){let e=window.event;return"Enter"===(null==e?void 0:e.key)}function ye(){let e=window.event;return" "===(null==e?void 0:e.key)||"Space"===(null==e?void 0:e.code)}function me(e,t,n){let{key:i,isDisabled:s,shouldSelectOnPressUp:a}=e,{selectionManager:o,selectedKey:d}=t,c=i===d,p=s||t.isDisabled||t.selectionManager.isDisabled(i),{itemProps:f,isPressed:h}=function(e){let{selectionManager:t,key:n,ref:i,shouldSelectOnPressUp:s,shouldUseVirtualFocus:a,focus:l,isDisabled:o,onAction:d,allowsDifferentPressOrigin:c,linkBehavior:p="action"}=e,f=(0,j.rd)(),h=e=>{if("keyboard"===e.pointerType&&C(e))t.toggleSelection(n);else{if("none"===t.selectionMode)return;if(t.isLink(n)){if("selection"===p){let r=t.getItemProps(n);return f.open(i.current,e,r.href,r.routerOptions),void t.setSelectedKeys(t.selectedKeys)}if("override"===p||"none"===p)return}"single"===t.selectionMode?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):e&&e.shiftKey?t.extendSelection(n):"toggle"===t.selectionBehavior||e&&(k(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?t.toggleSelection(n):t.replaceSelection(n)}};(0,r.useEffect)((()=>{n===t.focusedKey&&t.isFocused&&!a&&(l?l():document.activeElement!==i.current&&(0,B.l)(i.current))}),[i,n,t.focusedKey,t.childFocusStrategy,t.isFocused,a]),o=o||t.isDisabled(n);let g={};a||o?o&&(g.onMouseDown=e=>{e.preventDefault()}):g={tabIndex:n===t.focusedKey?0:-1,onFocus(e){e.target===i.current&&t.setFocusedKey(n)}};let v=t.isLink(n)&&"override"===p,y=t.isLink(n)&&"selection"!==p&&"none"!==p,m=!o&&t.canSelectItem(n)&&!v,b=(d||y)&&!o,A=b&&("replace"===t.selectionBehavior?!m:!m||t.isEmpty),w=b&&m&&"replace"===t.selectionBehavior,E=A||w,x=(0,r.useRef)(null),S=E&&m,T=(0,r.useRef)(!1),P=(0,r.useRef)(!1),K=e=>{if(d&&d(),y){let r=t.getItemProps(n);f.open(i.current,e,r.href,r.routerOptions)}},M={};s?(M.onPressStart=e=>{x.current=e.pointerType,T.current=S,"keyboard"!==e.pointerType||E&&!ye()||h(e)},c?(M.onPressUp=A?null:e=>{"keyboard"!==e.pointerType&&m&&h(e)},M.onPress=A?K:null):M.onPress=e=>{if(A||w&&"mouse"!==e.pointerType){if("keyboard"===e.pointerType&&!ve())return;K(e)}else"keyboard"!==e.pointerType&&m&&h(e)}):(M.onPressStart=e=>{x.current=e.pointerType,T.current=S,P.current=A,m&&("mouse"===e.pointerType&&!A||"keyboard"===e.pointerType&&(!b||ye()))&&h(e)},M.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&E&&ve()||"mouse"===e.pointerType&&P.current)&&(E?K(e):m&&h(e))}),g["data-key"]=n,M.preventFocusOnPress=a;let{pressProps:I,isPressed:_}=(0,de.d)(M),D=w?e=>{"mouse"===x.current&&(e.stopPropagation(),e.preventDefault(),K(e))}:void 0,{longPressProps:R}=ge({isDisabled:!S,onLongPress(e){"touch"===e.pointerType&&(h(e),t.setSelectionBehavior("toggle"))}}),N=t.isLink(n)?e=>{j.Fe.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,u.v)(g,m||A?I:{},S?R:{},{onDoubleClick:D,onDragStartCapture:e=>{"touch"===x.current&&T.current&&e.preventDefault()},onClick:N}),isPressed:_,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:o,allowsSelection:m,hasAction:E}}({selectionManager:o,key:i,ref:n,isDisabled:p,shouldSelectOnPressUp:a,linkBehavior:"selection"}),g=l(t,i,"tab"),v=l(t,i,"tabpanel"),{tabIndex:y}=f,m=t.collection.getItem(i),b=(0,oe.$)(null==m?void 0:m.props,{labelable:!0});delete b.id;let A=(0,j._h)(null==m?void 0:m.props);return{tabProps:(0,u.v)(b,A,f,{id:g,"aria-selected":c,"aria-disabled":p||void 0,"aria-controls":c?v:void 0,tabIndex:p?void 0:y,role:"tab"}),isSelected:c,isDisabled:p,isPressed:h}}var be=n(6133);const Ae={root:"_root_1fp5f_1",tabItems:"_tabItems_1fp5f_1",tabItem:"_tabItem_1fp5f_1"};var we=n(1034);const Ee=e=>{const{item:t,state:n}=e,{key:s,rendered:a}=t,l=(0,r.useRef)(null),{componentProps:o,rootProps:d}=(0,le.Y)("Tabs",e),{isDisabled:c,isSelected:u,tabProps:p}=me({key:s},n,l),{focusProps:f,isFocusVisible:h}=(0,be.o)(o),{navigate:g,url:v}=(0,we.T)();if(g&&v){const e=new URL(v);return null==e||e.searchParams.set(g,`${s}`),(0,i.jsx)("a",{...f,...d({classNames:Ae.tabItem,prefixedNames:"item"}),"data-disabled":c||void 0,"data-focus-visible":h||void 0,"data-selected":u||void 0,href:`${null==e?void 0:e.toString()}`,ref:l,children:a})}return(0,i.jsx)("div",{...d({classNames:Ae.tabItem,prefixedNames:"item"}),...p,...f,"data-disabled":c||void 0,"data-focus-visible":h||void 0,"data-selected":u||void 0,ref:l,children:a})};function xe(e,t,n){let i=function(e,t){let n=null==t?void 0:t.isDisabled,[i,s]=(0,r.useState)(!1);return(0,ue.N)((()=>{if((null==e?void 0:e.current)&&!n){let t=()=>{if(e.current){let t=D(e.current,{tabbable:!0});s(!!t.nextNode())}};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{n.disconnect()}}})),!n&&i}(n)?void 0:0;var s;const a=l(t,null!==(s=e.id)&&void 0!==s?s:null==t?void 0:t.selectedKey,"tabpanel"),o=(0,c.b)({...e,id:a,"aria-labelledby":l(t,null==t?void 0:t.selectedKey,"tab")});return{tabPanelProps:(0,u.v)(o,{tabIndex:i,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}const Ce=e=>{var t;const{state:n}=e,s=(0,r.useRef)(null),{tabPanelProps:a}=xe(e,n,s),{clsx:l}=(0,le.Y)("Tabs",e);return(0,i.jsx)("div",{...a,className:l({classNames:Ae.tabPanel,prefixedNames:"panel"}),ref:s,children:null==(t=n.selectedItem)?void 0:t.props.children})},ke=(0,r.forwardRef)(((e,t)=>{var n;const l=(0,s.U)(t),{context:p,navigate:f}=(0,we.T)(),{clsx:h,componentProps:g,rootProps:v}=(0,le.Y)("Tabs",e),y=se(g);let{orientation:m}=e;m="settings"===p?"horizontal":m;const{tabListProps:b}=function(e,t,n){let{orientation:i="horizontal",keyboardActivation:s="automatic"}=e,{collection:l,selectionManager:p,disabledKeys:f}=t,{direction:h}=E(),g=(0,r.useMemo)((()=>new o(l,h,i,f)),[l,f,i,h]),{collectionProps:v}=O({ref:n,selectionManager:p,keyboardDelegate:g,selectOnFocus:"automatic"===s,disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),y=(0,d.Bi)();a.set(t,y);let m=(0,c.b)({...e,id:y});return{tabListProps:{...(0,u.v)(v,m),role:"tablist","aria-orientation":i,tabIndex:void 0}}}({...g,keyboardActivation:f?"manual":void 0,orientation:m},y,l);return(0,i.jsxs)("div",{...v({classNames:Ae.root}),"data-context":p,"data-orientation":m,children:[(0,i.jsx)("div",{...b,className:h({classNames:Ae.tabItems,prefixedNames:"items"}),ref:l,children:[...y.collection].map((e=>(0,i.jsx)(Ee,{item:e,state:y},e.key)))}),(0,i.jsx)(Ce,{state:y},null==(n=y.selectedItem)?void 0:n.key)]})}));ke.displayName="Tabs"},1034:(e,t,n)=>{n.d(t,{O:()=>a,T:()=>l});var i=n(790),r=n(1609);const s=(0,r.createContext)({context:"settings"}),a=e=>{const{children:t,context:n,url:r}=e;let a="tab";return"string"==typeof e.navigate&&(a=e.navigate),(0,i.jsx)(s.Provider,{value:{context:n,navigate:a,url:r},children:t})},l=()=>(0,r.useContext)(s)},3682:(e,t,n)=>{n.d(t,{A:()=>y});var i=n(790),r=n(3908),s=n(1609),a=n(5987),l=n(8343),o=n(4836),d=n(2217),c=n(8356),u=n(4742),p=n(9681),f=n(8868),h=n(1144),g=n(9781);const v={root:"_root_ptfvg_1",inputWrapper:"_inputWrapper_ptfvg_6",input:"_input_ptfvg_6",invalid:"_invalid_ptfvg_14",label:"_label_ptfvg_19",markedRequired:"_markedRequired_ptfvg_27",descriptionBeforeInput:"_descriptionBeforeInput_ptfvg_34",description:"_description_ptfvg_34",errorMessage:"_errorMessage_ptfvg_46"},y=(0,s.forwardRef)(((e,t)=>{var n,y,m,b,A,w;const{description:E,descriptionArea:x,errorMessage:C,isDisabled:k,isRequired:S,label:T,max:P,min:K,prefix:M,step:I,suffix:_}=e;let D=e.className;const R=null==(n=e.className)?void 0:n.includes("code"),N=null==(y=e.className)?void 0:y.includes("regular-text"),B=null==(m=e.className)?void 0:m.includes("small-text");N&&(D=null==(b=e.className)?void 0:b.replace("regular-text","")),B&&(D=null==(A=e.className)?void 0:A.replace("small-text","")),R&&(D=null==(w=e.className)?void 0:w.replace("code",""));const j=(0,r.U)(t),{clsx:L,componentProps:F,rootProps:Q}=(0,g.Y)("TextField",{...e,className:D}),{descriptionProps:Y,errorMessageProps:G,inputProps:W,isInvalid:U,labelProps:H,validationDetails:O,validationErrors:J}=function(e,t){let{inputElementType:n="input",isDisabled:i=!1,isRequired:r=!1,isReadOnly:g=!1,type:v="text",validationBehavior:y="aria"}=e,[m,b]=(0,c.P)(e.value,e.defaultValue||"",e.onChange),{focusableProps:A}=(0,p.W)(e,t),w=(0,h.KZ)({...e,value:m}),{isInvalid:E,validationErrors:x,validationDetails:C}=w.displayValidation,{labelProps:k,fieldProps:S,descriptionProps:T,errorMessageProps:P}=(0,u.M)({...e,isInvalid:E,errorMessage:e.errorMessage||x}),K=(0,a.$)(e,{labelable:!0});const M={type:v,pattern:e.pattern};return(0,l.F)(t,m,b),(0,f.X)(e,w,t),(0,s.useEffect)((()=>{if(t.current instanceof(0,o.m)(t.current).HTMLTextAreaElement){let e=t.current;Object.defineProperty(e,"defaultValue",{get:()=>e.value,set:()=>{},configurable:!0})}}),[t]),{labelProps:k,inputProps:(0,d.v)(K,"input"===n?M:void 0,{disabled:i,readOnly:g,required:r&&"native"===y,"aria-required":r&&"aria"===y||void 0,"aria-invalid":E||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:m,onChange:e=>b(e.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...A,...S}),descriptionProps:T,errorMessageProps:P,isInvalid:E,validationErrors:x,validationDetails:C}}(F,j),{errorMessageList:V}=function(e){const t=[],{isInvalid:n,validationDetails:i,validationErrors:r}=e,{errorMessage:s}=e,a="function"==typeof s?s({isInvalid:n,validationDetails:i,validationErrors:r}):s;return a&&t.push(a),t.push(...r),{errorMessageList:t||[]}}({errorMessage:C,isInvalid:U,validationDetails:O,validationErrors:J});return(0,i.jsxs)("div",{...Q({classNames:[v.root,{[v.descriptionBeforeInput]:"before-input"===x,[v.disabled]:k,[v.invalid]:U}]}),children:[T&&(0,i.jsxs)("label",{...H,className:L({classNames:v.label,prefixedNames:"label"}),children:[T,S?(0,i.jsx)("span",{className:L({classNames:v.markedRequired,prefixedNames:"marked-required"}),children:"*"}):""]}),(0,i.jsxs)("div",{className:L({classNames:v.inputWrapper,prefixedNames:"input-wrapper"}),children:[M&&(0,i.jsx)("div",{className:L({classNames:v.prefix,prefixedNames:"prefix"}),children:M}),(0,i.jsx)("input",{...W,className:L({classNames:{[v.input]:!0,code:R,"regular-text":N,"small-text":B},prefixedNames:"input"}),max:P,min:K,ref:j,step:I}),_&&(0,i.jsx)("div",{className:L({classNames:v.suffix,prefixedNames:"suffix"}),children:_})]}),V.length>=1&&(0,i.jsx)("div",{...G,className:L({classNames:v.errorMessage,prefixedNames:"error-message"}),children:V.map(((e,t)=>(0,i.jsx)("p",{children:e},t)))}),E&&(0,i.jsx)("p",{...Y,className:L({classNames:[v.description,"description"],prefixedNames:"description"}),children:E})]})}));y.displayName="TextField"},9781:(e,t,n)=>{n.d(t,{Y:()=>r});var i=n(4164);function r(e,t){const{className:n,"data-testid":r,id:s,style:a,...l}=t||{},{clsx:o}=function(e){const t=`kubrick-${e}-`;return{clsx:e=>{const{classNames:n="",prefixedNames:r=""}=e,s=function(e){return"string"==typeof e?e.split(" "):e.map((e=>e.split(" "))).flat()}(r).map((e=>e&&`${t}${e}`)),a=(0,i.A)(s,n);return""!==a.trim()?a:void 0}}}(e);return{clsx:o,componentProps:{...l,id:s},rootProps(t){const{classNames:i,prefixedNames:l}=t||{},d={...a,...(null==t?void 0:t.styles)||{}};return{className:o({classNames:[i,n],prefixedNames:l||"root"}),"data-testid":r,id:s?`${s}-${e}-root`:void 0,style:Object.keys(d).length>=1?d:void 0}}}}},4164:(e,t,n)=>{function i(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}n.d(t,{A:()=>r});const r=function(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=i(e))&&(r&&(r+=" "),r+=t);return r}}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return r[e](n,n.exports,a),n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",i=e=>{e&&e.d<1&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},a.a=(r,s,a)=>{var l;a&&((l=[]).d=-1);var o,d,c,u=new Set,p=r.exports,f=new Promise(((e,t)=>{c=t,d=e}));f[t]=p,f[e]=e=>(l&&e(l),u.forEach(e),f.catch((e=>{}))),r.exports=f,s((r=>{var s;o=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var s=[];s.d=0,r.then((e=>{a[t]=e,i(s)}),(e=>{a[n]=e,i(s)}));var a={};return a[e]=e=>e(s),a}}var l={};return l[e]=e=>{},l[t]=r,l})))(r);var a=()=>o.map((e=>{if(e[n])throw e[n];return e[t]})),d=new Promise((t=>{(s=()=>t(a)).r=0;var n=e=>e!==l&&!u.has(e)&&(u.add(e),e&&!e.d&&(s.r++,e.push(s)));o.map((t=>t[e](n)))}));return s.r?d:a()}),(e=>(e?c(f[n]=e):d(p),i(l)))),l&&l.d<0&&(l.d=0)},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a(341)})();
  • syntatis-feature-flipper/tags/1.4.0/dist/autoload/vendor/composer/installed.php

    r3191076 r3192496  
    33namespace SSFV;
    44
    5 return array('root' => array('name' => '__root__', 'pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => 'b9b70186f66b8f191edc92860db3f37e883f9f04', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \false), 'versions' => array('__root__' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => 'b9b70186f66b8f191edc92860db3f37e883f9f04', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'adbario/php-dot-notation' => array('pretty_version' => '3.3.0', 'version' => '3.3.0.0', 'reference' => 'a94ce4493d19ea430baa8d7d210a2c9bd7129fc2', 'type' => 'library', 'install_path' => __DIR__ . '/../adbario/php-dot-notation', 'aliases' => array(), 'dev_requirement' => \false), 'pimple/pimple' => array('pretty_version' => 'v3.5.0', 'version' => '3.5.0.0', 'reference' => 'a94b3a4db7fb774b3d78dad2315ddc07629e1bed', 'type' => 'library', 'install_path' => __DIR__ . '/../pimple/pimple', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '2.0.2', 'version' => '2.0.2.0', 'reference' => 'c71ecc56dfe541dbd90c5360474fbc405f8d5963', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-uuid' => array('pretty_version' => 'v1.31.0', 'version' => '1.31.0.0', 'reference' => '21533be36c24be3f4b1669c4725c7d1d2bab4ae2', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-uuid', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/uid' => array('pretty_version' => 'v5.4.45', 'version' => '5.4.45.0', 'reference' => '512de7894f93ad63a7d5e33f590a83e054f571bc', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/uid', 'aliases' => array(), 'dev_requirement' => \false), 'syntatis/codex' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'facd6c434e43ff4e4861107ca827984c4104e9f1', 'type' => 'library', 'install_path' => __DIR__ . '/../syntatis/codex', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'syntatis/codex-settings-provider' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '7a9f5c939cac6ea7aeb1643140dd79cc1149bdf9', 'type' => 'library', 'install_path' => __DIR__ . '/../syntatis/codex-settings-provider', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false)));
     5return array('root' => array('name' => '__root__', 'pretty_version' => 'v1.4.0', 'version' => '1.4.0.0', 'reference' => '98170ac56890471bb544a2cbd2040f2562688c35', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \false), 'versions' => array('__root__' => array('pretty_version' => 'v1.4.0', 'version' => '1.4.0.0', 'reference' => '98170ac56890471bb544a2cbd2040f2562688c35', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'adbario/php-dot-notation' => array('pretty_version' => '3.3.0', 'version' => '3.3.0.0', 'reference' => 'a94ce4493d19ea430baa8d7d210a2c9bd7129fc2', 'type' => 'library', 'install_path' => __DIR__ . '/../adbario/php-dot-notation', 'aliases' => array(), 'dev_requirement' => \false), 'pimple/pimple' => array('pretty_version' => 'v3.5.0', 'version' => '3.5.0.0', 'reference' => 'a94b3a4db7fb774b3d78dad2315ddc07629e1bed', 'type' => 'library', 'install_path' => __DIR__ . '/../pimple/pimple', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '2.0.2', 'version' => '2.0.2.0', 'reference' => 'c71ecc56dfe541dbd90c5360474fbc405f8d5963', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-uuid' => array('pretty_version' => 'v1.31.0', 'version' => '1.31.0.0', 'reference' => '21533be36c24be3f4b1669c4725c7d1d2bab4ae2', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-uuid', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/uid' => array('pretty_version' => 'v5.4.45', 'version' => '5.4.45.0', 'reference' => '512de7894f93ad63a7d5e33f590a83e054f571bc', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/uid', 'aliases' => array(), 'dev_requirement' => \false), 'syntatis/codex' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'facd6c434e43ff4e4861107ca827984c4104e9f1', 'type' => 'library', 'install_path' => __DIR__ . '/../syntatis/codex', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'syntatis/codex-settings-provider' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '7a9f5c939cac6ea7aeb1643140dd79cc1149bdf9', 'type' => 'library', 'install_path' => __DIR__ . '/../syntatis/codex-settings-provider', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false)));
  • syntatis-feature-flipper/tags/1.4.0/inc/languages/syntatis-feature-flipper.pot

    r3191076 r3192496  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Feature Flipper 1.3.0\n"
     5"Project-Id-Version: Feature Flipper 1.4.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-feature-flipper\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-11-18T10:18:03+00:00\n"
     12"POT-Creation-Date: 2024-11-19T16:34:05+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
     
    1717#. Plugin Name of the plugin
    1818#: syntatis-feature-flipper.php
    19 #: app/SettingPage.php:44
     19#: app/SettingPage.php:54
    2020msgid "Feature Flipper"
    2121msgstr ""
     
    4141msgstr ""
    4242
    43 #: app/SettingPage.php:45
     43#: app/SettingPage.php:55
    4444msgid "Flipper"
    4545msgstr ""
    4646
    47 #: app/SettingPage.php:70
     47#: app/SettingPage.php:80
    4848msgid "This setting page requires JavaScript to be enabled in your browser. Please enable JavaScript and reload the page."
    4949msgstr ""
     
    8686msgstr ""
    8787
    88 #: src/setting-page/components/inputs/AdminBarInputs.jsx:31
     88#: src/setting-page/components/inputs/AdminBarInputs.jsx:30
    8989msgid "Menu"
    9090msgstr ""
    9191
    92 #: src/setting-page/components/inputs/AdminBarInputs.jsx:40
     92#: src/setting-page/components/inputs/AdminBarInputs.jsx:38
    9393msgid "Unchecked menu items will be hidden from the Admin bar."
    9494msgstr ""
     
    106106msgstr ""
    107107
    108 #: src/setting-page/components/inputs/DashboardWidgetsInputs.jsx:37
     108#: src/setting-page/components/inputs/DashboardWidgetsInputs.jsx:36
    109109msgid "Widgets"
    110110msgstr ""
    111111
    112 #: src/setting-page/components/inputs/DashboardWidgetsInputs.jsx:43
     112#: src/setting-page/components/inputs/DashboardWidgetsInputs.jsx:41
    113113msgid "Unchecked widgets will be hidden from the dashboard."
    114114msgstr ""
     
    126126msgstr ""
    127127
    128 #: src/setting-page/components/inputs/JPEGCompressionInputs.jsx:34
    129 msgid "Settings"
    130 msgstr ""
    131 
    132 #: src/setting-page/components/inputs/JPEGCompressionInputs.jsx:53
     128#: src/setting-page/components/inputs/JPEGCompressionInputs.jsx:47
     129#: src/setting-page/components/inputs/JPEGCompressionInputs.jsx:50
    133130msgid "Quality"
    134131msgstr ""
    135132
    136 #: src/setting-page/components/inputs/JPEGCompressionInputs.jsx:57
     133#: src/setting-page/components/inputs/JPEGCompressionInputs.jsx:54
    137134msgid "The quality of the compressed JPEG image. 100 is the highest quality."
     135msgstr ""
     136
     137#: src/setting-page/components/inputs/RevisionsInputs.jsx:17
     138#: src/setting-page/components/inputs/RevisionsInputs.jsx:40
     139msgid "Revisions"
     140msgstr ""
     141
     142#: src/setting-page/components/inputs/RevisionsInputs.jsx:18
     143msgid "Enable post revisions"
     144msgstr ""
     145
     146#: src/setting-page/components/inputs/RevisionsInputs.jsx:19
     147msgid "When switched off, WordPress will not save revisions of your posts."
     148msgstr ""
     149
     150#: src/setting-page/components/inputs/RevisionsInputs.jsx:46
     151msgid "Maximum"
     152msgstr ""
     153
     154#: src/setting-page/components/inputs/RevisionsInputs.jsx:50
     155msgid "The maximum number of revisions to keep."
    138156msgstr ""
    139157
     
    242260msgstr ""
    243261
    244 #: src/setting-page/tabs/GeneralTab.jsx:13
     262#: src/setting-page/tabs/GeneralTab.jsx:15
    245263msgid "Enable the block editor"
    246264msgstr ""
    247265
    248 #: src/setting-page/tabs/GeneralTab.jsx:17
     266#: src/setting-page/tabs/GeneralTab.jsx:19
    249267msgid "When switched off, the block editor will be disabled and the classic editor will be used."
    250268msgstr ""
    251269
    252 #: src/setting-page/tabs/GeneralTab.jsx:26
     270#: src/setting-page/tabs/GeneralTab.jsx:38
    253271msgid "Enable the block-based widgets"
    254272msgstr ""
    255273
    256 #: src/setting-page/tabs/GeneralTab.jsx:30
     274#: src/setting-page/tabs/GeneralTab.jsx:44
    257275msgid "When switched off, the block-based widgets will be disabled and the classic widgets will be used."
    258276msgstr ""
    259277
    260 #: src/setting-page/tabs/GeneralTab.jsx:39
     278#: src/setting-page/tabs/GeneralTab.jsx:48
     279msgid "The current theme in-use does not support block-based widgets."
     280msgstr ""
     281
     282#: src/setting-page/tabs/GeneralTab.jsx:59
    261283msgid "Enable the Heartbeat API"
    262284msgstr ""
    263285
    264 #: src/setting-page/tabs/GeneralTab.jsx:43
     286#: src/setting-page/tabs/GeneralTab.jsx:63
    265287msgid "When switched off, the Heartbeat API will be disabled; it will not be sending requests."
    266288msgstr ""
    267289
    268 #: src/setting-page/tabs/GeneralTab.jsx:52
     290#: src/setting-page/tabs/GeneralTab.jsx:72
    269291msgid "Enable self-pingbacks"
    270292msgstr ""
    271293
    272 #: src/setting-page/tabs/GeneralTab.jsx:56
     294#: src/setting-page/tabs/GeneralTab.jsx:76
    273295msgid "When switched off, WordPress will not send pingbacks to your own site."
    274296msgstr ""
    275297
    276 #: src/setting-page/tabs/GeneralTab.jsx:65
     298#: src/setting-page/tabs/GeneralTab.jsx:85
    277299msgid "Enable cron"
    278300msgstr ""
    279301
    280 #: src/setting-page/tabs/GeneralTab.jsx:66
     302#: src/setting-page/tabs/GeneralTab.jsx:86
    281303msgid "When switched off, WordPress will not run scheduled events."
    282304msgstr ""
    283305
    284 #: src/setting-page/tabs/GeneralTab.jsx:75
     306#: src/setting-page/tabs/GeneralTab.jsx:95
    285307msgid "Enable post embedding"
    286308msgstr ""
    287309
    288 #: src/setting-page/tabs/GeneralTab.jsx:79
     310#: src/setting-page/tabs/GeneralTab.jsx:99
    289311msgid "When switched off, it will disable other sites from embedding content from your site, and vice-versa."
    290312msgstr ""
    291313
    292 #: src/setting-page/tabs/GeneralTab.jsx:88
     314#: src/setting-page/tabs/GeneralTab.jsx:108
    293315msgid "Enable RSS feeds"
    294316msgstr ""
    295317
    296 #: src/setting-page/tabs/GeneralTab.jsx:92
     318#: src/setting-page/tabs/GeneralTab.jsx:112
    297319msgid "When switched off, it will disable the RSS feed URLs."
    298320msgstr ""
    299321
    300 #: src/setting-page/tabs/GeneralTab.jsx:100
     322#: src/setting-page/tabs/GeneralTab.jsx:120
    301323msgid "Auto Update"
    302324msgstr ""
    303325
    304 #: src/setting-page/tabs/GeneralTab.jsx:101
     326#: src/setting-page/tabs/GeneralTab.jsx:121
    305327msgid "Enable WordPress auto update"
    306328msgstr ""
    307329
    308 #: src/setting-page/tabs/GeneralTab.jsx:105
     330#: src/setting-page/tabs/GeneralTab.jsx:125
    309331msgid "When switched off, you will need to manually update WordPress."
    310332msgstr ""
  • syntatis-feature-flipper/tags/1.4.0/inc/settings/all.php

    r3191076 r3192496  
    2323         * Since it's too early to determine whether the current theme supports the
    2424         * block-based widgets, set the default to `null`, and patch it through
    25          * the filter `syntatis/feature_flipper/settings`.
     25         * the filter.
    2626         *
    27          * @see \Syntatis\FeatureFlipper\Switches\General
     27         * @see syntatis/feature_flipper/settings The filter to patch the setting values.
     28         * @see \Syntatis\FeatureFlipper\Switches\General The class that patches the `block_based_widgets` value.
    2829         */
     30        ->withDefault(null),
     31    (new Setting('revisions', 'boolean'))
     32        ->withDefault(defined('WP_POST_REVISIONS') ? ! (bool) WP_POST_REVISIONS : true),
     33    (new Setting('revisions_max', 'integer'))
    2934        ->withDefault(null),
    3035    (new Setting('heartbeat', 'boolean'))
  • syntatis-feature-flipper/tags/1.4.0/readme.txt

    r3191076 r3192496  
    55Requires at least: 6.0
    66Tested up to: 6.7
    7 Stable tag: 1.3.0
     7Stable tag: 1.4.0
    88Requires PHP: 7.4
    99License: GPLv3 or later
  • syntatis-feature-flipper/tags/1.4.0/syntatis-feature-flipper.php

    r3191076 r3192496  
    1212 * Plugin URI:        https://github.com/syntatis/wp-feature-flipper
    1313 * Description:       Easily switch some features in WordPress, on and off
    14  * Version:           1.3.0
     14 * Version:           1.4.0
    1515 * Requires at least: 6.0
    1616 * Requires PHP:      7.4
     
    3939 * versions.
    4040 */
    41 const PLUGIN_VERSION = '1.3.0';
     41const PLUGIN_VERSION = '1.4.0';
    4242
    4343/**
  • syntatis-feature-flipper/trunk/app/Features/AdminBar.php

    r3190602 r3192496  
    66
    77use SSFV\Codex\Contracts\Hookable;
    8 use SSFV\Codex\Facades\App;
    98use SSFV\Codex\Foundation\Hooks\Hook;
    109use Syntatis\FeatureFlipper\Option;
    1110use WP_Admin_Bar;
    1211
     12use function count;
    1313use function in_array;
    1414use function is_array;
    1515use function is_string;
    16 use function json_encode;
    17 use function sprintf;
    1816
    1917use const PHP_INT_MAX;
     
    2725    ];
    2826
    29     /** @var array<array{id:string}> */
    30     private static array $menu = [];
    31 
    3227    public function hook(Hook $hook): void
    3328    {
    34         $hook->addAction('admin_bar_menu', static fn () => self::$menu = self::getRegisteredMenu(), PHP_INT_MAX);
    35         $hook->addAction('admin_bar_menu', static fn () => wp_add_inline_script(
    36             App::name() . '-settings',
    37             self::getInlineScript(),
    38             'before',
    39         ), PHP_INT_MAX);
    40 
    41         // Admin Bar.
     29        $hook->addFilter('syntatis/feature_flipper/inline_data', [$this, 'setInlineData']);
    4230        $hook->addAction('admin_bar_menu', static function ($wpAdminBar): void {
    4331            $adminBarMenu = Option::get('admin_bar_menu');
     
    4735            }
    4836
    49             foreach (self::$menu as $menu) {
    50                 if (in_array($menu['id'], $adminBarMenu, true)) {
     37            $menu = self::getRegisteredMenu();
     38
     39            foreach ($menu as $item) {
     40                if (in_array($item['id'], $adminBarMenu, true)) {
    5141                    continue;
    5242                }
    5343
    54                 $wpAdminBar->remove_node($menu['id']);
     44                $wpAdminBar->remove_node($item['id']);
    5545            }
    5646        }, PHP_INT_MAX);
     
    6656    }
    6757
    68     private static function getInlineScript(): string
     58    /**
     59     * @param array<string,mixed> $data
     60     *
     61     * @return array<string,mixed>
     62     */
     63    public function setInlineData(array $data): array
    6964    {
    70         return sprintf(
    71             <<<'SCRIPT'
    72             window.$syntatis.featureFlipper = Object.assign({}, window.$syntatis.featureFlipper, {
    73                 adminBarMenu: %s,
    74             });
    75             SCRIPT,
    76             json_encode(self::$menu),
    77         );
     65        $data['adminBarMenu'] = self::getRegisteredMenu();
     66
     67        return $data;
    7868    }
    7969
     
    8171    private static function getRegisteredMenu(): array
    8272    {
     73        /** @var array<array{id:string}>|null $items */
     74        static $items = null;
     75
     76        if (is_array($items) && count($items) > 0) {
     77            return $items;
     78        }
     79
    8380        /** @var WP_Admin_Bar $wpAdminBarMenu */
    8481        $wpAdminBarMenu = $GLOBALS['wp_admin_bar'];
  • syntatis-feature-flipper/trunk/app/Features/DashboardWidgets.php

    r3191076 r3192496  
    77use SSFV\Codex\Contracts\Hookable;
    88use SSFV\Codex\Facades\App;
    9 use SSFV\Codex\Facades\Config;
    109use SSFV\Codex\Foundation\Hooks\Hook;
    1110use Syntatis\FeatureFlipper\Option;
     
    1413use function array_map;
    1514use function array_values;
     15use function count;
    1616use function in_array;
    1717use function is_array;
    18 use function json_encode;
    1918use function preg_replace;
    20 use function sprintf;
    2119
    2220use const PHP_INT_MAX;
     
    3129    public function hook(Hook $hook): void
    3230    {
    33         $hook->addAction('admin_enqueue_scripts', static fn () => wp_add_inline_script(
    34             App::name() . '-settings',
    35             self::getInlineScript(),
    36             'before',
    37         ));
     31        $hook->addFilter('syntatis/feature_flipper/settings', [$this, 'setSettings']);
     32        $hook->addFilter('syntatis/feature_flipper/inline_data', [$this, 'setInlineData']);
    3833        $hook->addAction('current_screen', static function (WP_Screen $screen): void {
    3934            if ($screen->id !== 'settings_page_' . App::name()) {
     
    4641        });
    4742        $hook->addAction('wp_dashboard_setup', [$this, 'setup'], PHP_INT_MAX);
    48         $hook->addFilter('syntatis/feature_flipper/settings', [$this, 'setSettings']);
    4943    }
    5044
     
    6761    private static function setupEach(): void
    6862    {
    69         $widgets = self::getRegisteredWidgets();
    7063        $dashboardWidgets = $GLOBALS['wp_meta_boxes']['dashboard'] ?? null;
    7164        $values = Option::get('dashboard_widgets_enabled') ?? self::getAllDashboardId();
     
    9588    public function setSettings(array $data): array
    9689    {
    97         $optionName = Config::get('app.option_prefix') . 'dashboard_widgets_enabled';
     90        $optionName = Option::name('dashboard_widgets_enabled');
    9891        $widgetsEnabled = $data[$optionName] ?? null;
    9992
     
    10598    }
    10699
    107     public function addInlineScripts(): void
     100    /**
     101     * @param array<string,mixed> $data
     102     *
     103     * @return array<mixed>
     104     */
     105    public function setInlineData(array $data): array
    108106    {
    109     }
     107        $data['dashboardWidgets'] = self::$widgets;
    110108
    111     private static function getInlineScript(): string
    112     {
    113         return sprintf(
    114             <<<'SCRIPT'
    115             window.$syntatis.featureFlipper = Object.assign({}, window.$syntatis.featureFlipper, {
    116                 dashboardWidgets: %s,
    117             });
    118             SCRIPT,
    119             json_encode(self::$widgets),
    120         );
     109        return $data;
    121110    }
    122111
     
    131120        return array_values(array_map(
    132121            static fn (array $widget): string => $widget['id'],
    133             self::$widgets,
     122            self::getRegisteredWidgets(),
    134123        ));
    135124    }
     
    143132    private static function getRegisteredWidgets(): array
    144133    {
    145         static $dashboardWidgets = null;
     134        static $widgets = null;
     135
     136        if (is_array($widgets) && count($widgets) > 0) {
     137            return $widgets;
     138        }
     139
    146140        $currentScreen = get_current_screen();
    147141
     
    155149            set_current_screen('dashboard');
    156150            wp_dashboard_setup();
     151            set_current_screen($currentScreen->id);
    157152
    158153            $dashboardWidgets = $GLOBALS['wp_meta_boxes']['dashboard'] ?? null;
    159154            unset($GLOBALS['wp_meta_boxes']['dashboard']);
     155        } else {
     156            $dashboardWidgets = $GLOBALS['wp_meta_boxes']['dashboard'] ?? null;
    160157        }
    161158
    162         $optionName = Config::get('app.option_prefix') . 'dashboard_widgets_enabled';
     159        $optionName = Option::name('dashboard_widgets_enabled');
    163160        $widgets = [];
    164161
  • syntatis-feature-flipper/trunk/app/Features/Embeds.php

    r3190602 r3192496  
    77use SSFV\Codex\Contracts\Hookable;
    88use SSFV\Codex\Facades\App;
    9 use SSFV\Codex\Facades\Config;
    109use SSFV\Codex\Foundation\Hooks\Hook;
     10use Syntatis\FeatureFlipper\Option;
    1111use WP;
    1212use WP_Scripts;
     
    2424    public function hook(Hook $hook): void
    2525    {
     26        if ((bool) Option::get('embed')) {
     27            return;
     28        }
     29
    2630        $hook->addAction('init', fn () => $this->disables($hook), PHP_INT_MAX);
    2731    }
     
    3539        // phpcs:enable
    3640
    37         $hook->addAction('update_option_' . Config::get('app.option_prefix') . 'cron', [$this, 'flushPermalinks']);
     41        $hook->addAction('update_option_' . Option::name('cron'), [$this, 'flushPermalinks']);
    3842        $hook->addAction('enqueue_block_editor_assets', [$this, 'disableOnBlockEditor']);
    3943        $hook->addAction('wp_default_scripts', [$this, 'disableScriptDependencies']);
  • syntatis-feature-flipper/trunk/app/Option.php

    r3172294 r3192496  
    1212     * Retrieve the value of the plugin option.
    1313     *
     14     * @phpstan-param non-empty-string $name
     15     *
    1416     * @return mixed
    1517     */
    1618    public static function get(string $name)
    1719    {
    18         return get_option(Config::get('app.option_prefix') . $name);
     20        return get_option(self::name($name));
     21    }
     22
     23    /**
     24     * Retrieve the option name with th prefix.
     25     *
     26     * @phpstan-param non-empty-string $name
     27     */
     28    public static function name(string $name): string
     29    {
     30        return Config::get('app.option_prefix') . $name;
    1931    }
    2032}
  • syntatis-feature-flipper/trunk/app/Plugin.php

    r3190602 r3192496  
    1515    {
    1616        $settings = $container->get(Settings::class);
     17        $switches = $this->getSwitches();
    1718
    1819        if ($settings instanceof Settings) {
    19             // Add the setting page.
    2020            yield new SettingPage($settings);
    2121        }
    2222
    23         // Apply the feature switches.
     23        foreach ($switches as $switch) {
     24            yield $switch;
     25
     26            if (! ($switch instanceof Extendable)) {
     27                continue;
     28            }
     29
     30            yield from $switch->getInstances($container);
     31        }
     32
     33        // Mark as initialized.
     34        do_action('syntatis/feature_flipper/init', $container);
     35    }
     36
     37    /** @return iterable<object> */
     38    private function getSwitches(): iterable
     39    {
    2440        yield new Switches\Admin();
    2541        yield new Switches\Assets();
     
    2844        yield new Switches\Security();
    2945        yield new Switches\Webpage();
    30 
    31         // Mark as initialized.
    32         do_action('syntatis/feature-flipper/init', $container);
    3346    }
    3447}
  • syntatis-feature-flipper/trunk/app/SettingPage.php

    r3191076 r3192496  
    1919
    2020use const ARRAY_FILTER_USE_KEY;
     21use const PHP_INT_MAX;
    2122
    2223class SettingPage implements Hookable
     
    2425    private Settings $settings;
    2526
     27    private string $handle;
     28
     29    private string $pageName;
     30
    2631    public function __construct(Settings $settings)
    2732    {
     33        $name = App::name();
     34
    2835        $this->settings = $settings;
     36        $this->handle = $name . '-settings';
     37        $this->pageName = 'settings_page_' . $name;
    2938    }
    3039
     
    3342        $hook->addAction('admin_menu', [$this, 'addMenu']);
    3443        $hook->addAction('admin_enqueue_scripts', [$this, 'enqueueAdminScripts']);
     44        $hook->addAction('admin_bar_menu', [$this, 'addAdminInlineScripts'], PHP_INT_MAX);
    3545    }
    3646
     
    7989    public function enqueueAdminScripts(string $adminPage): void
    8090    {
    81         /**
    82          * List of admin pages where the plugin scripts and stylesheet should load.
    83          */
    84         $adminPages = [
    85             'settings_page_' . App::name(),
    86             'post.php',
    87             'post-new.php',
    88         ];
    89 
    90         if (! in_array($adminPage, $adminPages, true)) {
     91        if ($adminPage !== $this->pageName) {
    9192            return;
    9293        }
    9394
    94         $handle = App::name() . '-settings';
    9595        $assets = App::dir('dist/assets/setting-page/index.asset.php');
    9696        $assets = is_readable($assets) ? require $assets : [];
    9797
    9898        wp_enqueue_style(
    99             $handle,
     99            $this->handle,
    100100            App::url('dist/assets/setting-page/index.css'),
    101101            [],
     
    104104
    105105        wp_enqueue_script(
    106             $handle,
     106            $this->handle,
    107107            App::url('dist/assets/setting-page/index.js'),
    108108            $assets['dependencies'] ?? [],
     
    111111        );
    112112
     113        wp_set_script_translations($this->handle, 'syntatis-feature-flipper');
     114    }
     115
     116    public function addAdminInlineScripts(): void
     117    {
     118        $currentScreen = get_current_screen();
     119
     120        if ($currentScreen === null || $currentScreen->id !== $this->pageName) {
     121            return;
     122        }
     123
    113124        wp_add_inline_script(
    114             $handle,
     125            $this->handle,
    115126            $this->getInlineScript(),
    116127            'before',
    117128        );
    118 
    119         wp_set_script_translations($handle, 'syntatis-feature-flipper');
    120129    }
    121130
     
    155164            window.$syntatis = { featureFlipper: %s };
    156165            SCRIPT,
    157             wp_json_encode(['/wp/v2/settings' => ['body' => apply_filters('syntatis/feature_flipper/settings', $data)]]),
    158166            wp_json_encode([
    159                 'settingPage' => get_admin_url(null, 'options-general.php?page=' . App::name()),
    160                 'settingPageTab' => $_GET['tab'] ?? null,
     167                '/wp/v2/settings' => [
     168                    'body' => apply_filters('syntatis/feature_flipper/settings', $data),
     169                ],
    161170            ]),
     171            wp_json_encode(
     172                apply_filters('syntatis/feature_flipper/inline_data', [
     173                    'settingPage' => get_admin_url(null, 'options-general.php?page=' . App::name()),
     174                    'settingPageTab' => $_GET['tab'] ?? null,
     175                    'themeSupport' => [
     176                        'widgetsBlockEditor' => get_theme_support('widgets-block-editor'),
     177                    ],
     178                ]),
     179            ),
    162180        );
    163181    }
  • syntatis-feature-flipper/trunk/app/Switches/Admin.php

    r3190602 r3192496  
    55namespace Syntatis\FeatureFlipper\Switches;
    66
     7use SSFV\Codex\Contracts\Extendable;
    78use SSFV\Codex\Contracts\Hookable;
    89use SSFV\Codex\Foundation\Hooks\Hook;
     10use SSFV\Psr\Container\ContainerInterface;
    911use Syntatis\FeatureFlipper\Features\AdminBar;
    1012use Syntatis\FeatureFlipper\Features\DashboardWidgets;
    1113use Syntatis\FeatureFlipper\Option;
    1214
    13 class Admin implements Hookable
     15class Admin implements Hookable, Extendable
    1416{
    1517    public function hook(Hook $hook): void
     
    2022        }
    2123
    22         if (! (bool) Option::get('update_nags')) {
    23             $hook->addAction('admin_init', static function () use ($hook): void {
    24                 $hook->removeAction('admin_notices', 'update_nag', 3);
    25                 $hook->removeAction('network_admin_notices', 'update_nag', 3);
    26             }, 99);
     24        if ((bool) Option::get('update_nags')) {
     25            return;
    2726        }
    2827
    29         $dashboardWidgets = new DashboardWidgets();
    30         $dashboardWidgets->hook($hook);
     28        $hook->addAction('admin_init', static function () use ($hook): void {
     29            $hook->removeAction('admin_notices', 'update_nag', 3);
     30            $hook->removeAction('network_admin_notices', 'update_nag', 3);
     31        }, 99);
     32    }
    3133
    32         $adminBar = new AdminBar();
    33         $adminBar->hook($hook);
     34    /** @return iterable<object> */
     35    public function getInstances(ContainerInterface $container): iterable
     36    {
     37        yield new DashboardWidgets();
     38        yield new AdminBar();
    3439    }
    3540}
  • syntatis-feature-flipper/trunk/app/Switches/General.php

    r3191076 r3192496  
    55namespace Syntatis\FeatureFlipper\Switches;
    66
     7use SSFV\Codex\Contracts\Extendable;
    78use SSFV\Codex\Contracts\Hookable;
    8 use SSFV\Codex\Facades\Config;
    99use SSFV\Codex\Foundation\Hooks\Hook;
     10use SSFV\Psr\Container\ContainerInterface;
    1011use Syntatis\FeatureFlipper\Features\Embeds;
     12use Syntatis\FeatureFlipper\Features\Feeds;
    1113use Syntatis\FeatureFlipper\Option;
    1214
     
    1416use function define;
    1517use function defined;
     18use function is_numeric;
    1619use function str_starts_with;
    1720
    18 class General implements Hookable
     21use const PHP_INT_MAX;
     22
     23class General implements Hookable, Extendable
    1924{
    2025    public function hook(Hook $hook): void
     
    5358        }
    5459
    55         // 4. Cron.
    56         if (! (bool) Option::get('cron') && ! defined('DISABLE_WP_CRON')) {
     60        if (! (bool) Option::get('cron') && defined('DISABLE_WP_CRON')) {
    5761            define('DISABLE_WP_CRON', true);
    5862        }
    5963
    60         // 5. Embed.
    61         if (! (bool) Option::get('embed')) {
    62             (new Embeds())->hook($hook);
     64        $maxRevisions = Option::get('revisions_max');
     65
     66        if (! (bool) Option::get('revisions')) {
     67            if (! defined('WP_POST_REVISIONS')) {
     68                define('WP_POST_REVISIONS', 0);
     69            }
     70
     71            $maxRevisions = 0;
    6372        }
    6473
    65         // 6. Feeds.
    66         if ((bool) Option::get('feeds')) {
    67             return;
    68         }
    69 
    70         // Disable feeds.
    71         $hook->addAction('do_feed', [$this, 'toHomepage'], -99);
    72         $hook->addAction('do_feed_rdf', [$this, 'toHomepage'], -99);
    73         $hook->addAction('do_feed_rss', [$this, 'toHomepage'], -99);
    74         $hook->addAction('do_feed_rss2', [$this, 'toHomepage'], -99);
    75         $hook->addAction('do_feed_atom', [$this, 'toHomepage'], -99);
    76 
    77         // Disable comments feeds.
    78         $hook->addAction('do_feed_rss2_comments', [$this, 'toHomepage'], -99);
    79         $hook->addAction('do_feed_atom_comments', [$this, 'toHomepage'], -99);
    80 
    81         // Remove RSS feed links.
    82         $hook->addFilter('feed_links_show_posts_feed', '__return_false', 99);
    83 
    84         // Remove all extra RSS feed links.
    85         $hook->addFilter('feed_links_show_comments_feed', '__return_false', 99);
    86     }
    87 
    88     public function toHomepage(): void
    89     {
    90         wp_redirect(home_url());
    91         exit;
     74        $hook->addFilter(
     75            'wp_revisions_to_keep',
     76            static fn ($num) => is_numeric($maxRevisions) ?
     77                (int) $maxRevisions :
     78                $num,
     79            PHP_INT_MAX,
     80        );
    9281    }
    9382
     
    9988    public function setSettings(array $data): array
    10089    {
    101         $optionName = Config::get('app.option_prefix') . 'block_based_widgets';
     90        $optionName = Option::name('block_based_widgets');
    10291        $value = Option::get('block_based_widgets');
    10392
     
    10897        return $data;
    10998    }
     99
     100    /** @return iterable<object> */
     101    public function getInstances(ContainerInterface $container): iterable
     102    {
     103        yield new Embeds();
     104        yield new Feeds();
     105    }
    110106}
  • syntatis-feature-flipper/trunk/app/Switches/Media.php

    r3191076 r3192496  
    7070            'jpeg_quality',
    7171            static function ($quality, string $context) {
    72                 if ((bool) Option::get('jpeg_compression')) {
    73                     return Option::get('jpeg_compression_quality');
     72                if (! (bool) Option::get('jpeg_compression')) {
     73                    return $quality;
    7474                }
    7575
    76                 return 100;
     76                return Option::get('jpeg_compression_quality');
    7777            },
    7878            99,
  • syntatis-feature-flipper/trunk/dist/assets/setting-page/index-rtl.css

    r3191076 r3192496  
    33.Sow9V_g44_njwPuM6v_z{padding-top:1rem}.rbliHJE9bgQbN73QIyJv{margin-bottom:.5rem;margin-top:1rem}.AuG3fVwRuf5i2coEeXag{margin-top:0}
    44.wp-core-ui ._root_umbom_1 ._track_umbom_1{fill:#c3c4c7}.wp-core-ui ._root_umbom_1 ._thumb_umbom_4{fill:#fff}.wp-core-ui ._root_umbom_1 ._input_umbom_7{align-items:center;display:flex;gap:4px;transform:translate(4px)}.wp-core-ui ._root_umbom_1 ._focusRing_umbom_13{stroke:var(--kubrick-accent-color)}.wp-core-ui ._root_umbom_1._isSelected_umbom_16 ._track_umbom_1{fill:var(--kubrick-accent-color)}.wp-core-ui ._root_umbom_1._isDisabled_umbom_19{cursor:not-allowed}.wp-core-ui ._root_umbom_1._isDisabled_umbom_19 ._track_umbom_1{opacity:.7}
    5 .TUy4RFlIpp1NJGmEaFMV{margin-top:.75rem}
     5.as6IPxn7zk9kjjsv9cX6{margin-top:.75rem}
    66._root_mk25k_1{display:grid;grid-template-columns:auto;grid-template-rows:max-content max-content 1fr max-content max-content}._root_mk25k_1 ._inputWrapper_mk25k_6{align-items:center;display:flex;gap:6px}._root_mk25k_1 ._input_mk25k_6[type=number]{padding-left:0}._root_mk25k_1._invalid_mk25k_14 ._input_mk25k_6{border-color:var(--kubrick-invalid-color);outline-color:var(--kubrick-invalid-color);outline-width:1px}._root_mk25k_1 ._label_mk25k_19{cursor:pointer;display:inline-block;font-weight:600;grid-row:1/2;margin-block-end:6px;width:-moz-max-content;width:max-content}._root_mk25k_1 ._markedRequired_mk25k_27{color:var(--kubrick-invalid-color);margin-inline-start:.25rem}._root_mk25k_1[aria-disabled=true] ._label_mk25k_19{cursor:not-allowed}._root_mk25k_1._descriptionBeforeInput_mk25k_34 ._label_mk25k_19{margin-block-end:0}._root_mk25k_1 ._description_mk25k_34{color:var(--kubrick-description-color);grid-row:4/5;margin-block:6px 0}._root_mk25k_1._descriptionBeforeInput_mk25k_34 ._description_mk25k_34{grid-row:2/3;margin-block:0 6px}._root_mk25k_1 ._errorMessage_mk25k_46{color:var(--kubrick-invalid-color);grid-row:3/4;margin-block:6px 0}._root_mk25k_1 ._errorMessage_mk25k_46 p{margin-block:0 2px}._root_mk25k_1 ._label_mk25k_19{cursor:default}._root_mk25k_1 ._items_mk25k_57{display:flex;flex-direction:column;gap:6px;margin-block:2px}._root_mk25k_1._horizontal_mk25k_63 ._items_mk25k_57{flex-direction:row;gap:12px}
    77._root_lmlip_1{display:flex;flex-direction:column;gap:4px;max-width:100%;width:-moz-max-content;width:max-content}._root_lmlip_1 ._label_lmlip_8{display:flex;gap:8px}._root_lmlip_1 ._label_lmlip_8 input{flex-shrink:0}._root_lmlip_1 ._input_lmlip_15[type=checkbox]{margin:0}._root_lmlip_1 ._description_lmlip_18{color:#646970}._root_lmlip_1 ._input_lmlip_15:-moz-read-only{cursor:default}._root_lmlip_1 ._input_lmlip_15:read-only,._root_lmlip_1._readOnly_lmlip_21{cursor:default}._root_lmlip_1 ._input_lmlip_15:disabled,._root_lmlip_1._disabled_lmlip_25{cursor:not-allowed}._root_lmlip_1 ._labelContent_lmlip_29{display:flex;flex-direction:column;gap:4px}@media screen and (width <= 782px){._root_lmlip_1 ._labelContent_lmlip_29{padding-top:3px}}
    8 .nahtfAEfFXgPHNvOz8wZ{margin-top:.75rem}
    9 .d3SxeXcdHN_itpLm8MKC,.sCDPQZ_IJkwNEdVCg6sf{margin-top:.75rem}.sCDPQZ_IJkwNEdVCg6sf{display:flex;justify-content:space-between}
    108._root_ptfvg_1{display:grid;grid-template-columns:auto;grid-template-rows:max-content max-content 1fr max-content max-content}._root_ptfvg_1 ._inputWrapper_ptfvg_6{align-items:center;display:flex;gap:6px}._root_ptfvg_1 ._input_ptfvg_6[type=number]{padding-left:0}._root_ptfvg_1._invalid_ptfvg_14 ._input_ptfvg_6{border-color:var(--kubrick-invalid-color);outline-color:var(--kubrick-invalid-color);outline-width:1px}._root_ptfvg_1 ._label_ptfvg_19{cursor:pointer;display:inline-block;font-weight:600;grid-row:1/2;margin-block-end:6px;width:-moz-max-content;width:max-content}._root_ptfvg_1 ._markedRequired_ptfvg_27{color:var(--kubrick-invalid-color);margin-inline-start:.25rem}._root_ptfvg_1[aria-disabled=true] ._label_ptfvg_19{cursor:not-allowed}._root_ptfvg_1._descriptionBeforeInput_ptfvg_34 ._label_ptfvg_19{margin-block-end:0}._root_ptfvg_1 ._description_ptfvg_34{color:var(--kubrick-description-color);grid-row:4/5;margin-block:6px 0}._root_ptfvg_1._descriptionBeforeInput_ptfvg_34 ._description_ptfvg_34{grid-row:2/3;margin-block:0 6px}._root_ptfvg_1 ._errorMessage_ptfvg_46{color:var(--kubrick-invalid-color);grid-row:3/4;margin-block:6px 0}._root_ptfvg_1 ._errorMessage_ptfvg_46 p{margin-block:0 2px}
    119:root{--kubrick-accent-color:#2271b1;--kubrick-invalid-color:#d63638;--kubrick-description-color:#646970;--kubrick-outline-color:var(--kubrick-accent-color);--kubrick-body-background-color:#f0f0f1}.admin-color-blue{--kubrick-accent-color:#096484}.admin-color-coffee{--kubrick-accent-color:#c7a589}.admin-color-ectoplasm{--kubrick-accent-color:#a3b745}.admin-color-midnight{--kubrick-accent-color:#e14d43}.admin-color-ocean{--kubrick-accent-color:#9ebaa0}.admin-color-sunrise{--kubrick-accent-color:#dd823b}.admin-color-modern{--kubrick-accent-color:#3858e9}.admin-color-light{--kubrick-accent-color:#04a4cc;--kubrick-body-background-color:#f5f5f5}.admin-color-light body{background-color:var(--kubrick-body-background-color)}
  • syntatis-feature-flipper/trunk/dist/assets/setting-page/index.asset.php

    r3191076 r3192496  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '5f64071b59e2f122e4eb');
     1<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '23b2ba6c668e291df029');
  • syntatis-feature-flipper/trunk/dist/assets/setting-page/index.css

    r3191076 r3192496  
    33.Sow9V_g44_njwPuM6v_z{padding-top:1rem}.rbliHJE9bgQbN73QIyJv{margin-bottom:.5rem;margin-top:1rem}.AuG3fVwRuf5i2coEeXag{margin-top:0}
    44.wp-core-ui ._root_umbom_1 ._track_umbom_1{fill:#c3c4c7}.wp-core-ui ._root_umbom_1 ._thumb_umbom_4{fill:#fff}.wp-core-ui ._root_umbom_1 ._input_umbom_7{align-items:center;display:flex;gap:4px;transform:translate(-4px)}.wp-core-ui ._root_umbom_1 ._focusRing_umbom_13{stroke:var(--kubrick-accent-color)}.wp-core-ui ._root_umbom_1._isSelected_umbom_16 ._track_umbom_1{fill:var(--kubrick-accent-color)}.wp-core-ui ._root_umbom_1._isDisabled_umbom_19{cursor:not-allowed}.wp-core-ui ._root_umbom_1._isDisabled_umbom_19 ._track_umbom_1{opacity:.7}
    5 .TUy4RFlIpp1NJGmEaFMV{margin-top:.75rem}
     5.as6IPxn7zk9kjjsv9cX6{margin-top:.75rem}
    66._root_mk25k_1{display:grid;grid-template-columns:auto;grid-template-rows:max-content max-content 1fr max-content max-content}._root_mk25k_1 ._inputWrapper_mk25k_6{align-items:center;display:flex;gap:6px}._root_mk25k_1 ._input_mk25k_6[type=number]{padding-right:0}._root_mk25k_1._invalid_mk25k_14 ._input_mk25k_6{border-color:var(--kubrick-invalid-color);outline-color:var(--kubrick-invalid-color);outline-width:1px}._root_mk25k_1 ._label_mk25k_19{cursor:pointer;display:inline-block;font-weight:600;grid-row:1/2;margin-block-end:6px;width:-moz-max-content;width:max-content}._root_mk25k_1 ._markedRequired_mk25k_27{color:var(--kubrick-invalid-color);margin-inline-start:.25rem}._root_mk25k_1[aria-disabled=true] ._label_mk25k_19{cursor:not-allowed}._root_mk25k_1._descriptionBeforeInput_mk25k_34 ._label_mk25k_19{margin-block-end:0}._root_mk25k_1 ._description_mk25k_34{color:var(--kubrick-description-color);grid-row:4/5;margin-block:6px 0}._root_mk25k_1._descriptionBeforeInput_mk25k_34 ._description_mk25k_34{grid-row:2/3;margin-block:0 6px}._root_mk25k_1 ._errorMessage_mk25k_46{color:var(--kubrick-invalid-color);grid-row:3/4;margin-block:6px 0}._root_mk25k_1 ._errorMessage_mk25k_46 p{margin-block:0 2px}._root_mk25k_1 ._label_mk25k_19{cursor:default}._root_mk25k_1 ._items_mk25k_57{display:flex;flex-direction:column;gap:6px;margin-block:2px}._root_mk25k_1._horizontal_mk25k_63 ._items_mk25k_57{flex-direction:row;gap:12px}
    77._root_lmlip_1{display:flex;flex-direction:column;gap:4px;max-width:100%;width:-moz-max-content;width:max-content}._root_lmlip_1 ._label_lmlip_8{display:flex;gap:8px}._root_lmlip_1 ._label_lmlip_8 input{flex-shrink:0}._root_lmlip_1 ._input_lmlip_15[type=checkbox]{margin:0}._root_lmlip_1 ._description_lmlip_18{color:#646970}._root_lmlip_1 ._input_lmlip_15:-moz-read-only{cursor:default}._root_lmlip_1 ._input_lmlip_15:read-only,._root_lmlip_1._readOnly_lmlip_21{cursor:default}._root_lmlip_1 ._input_lmlip_15:disabled,._root_lmlip_1._disabled_lmlip_25{cursor:not-allowed}._root_lmlip_1 ._labelContent_lmlip_29{display:flex;flex-direction:column;gap:4px}@media screen and (width <= 782px){._root_lmlip_1 ._labelContent_lmlip_29{padding-top:3px}}
    8 .nahtfAEfFXgPHNvOz8wZ{margin-top:.75rem}
    9 .d3SxeXcdHN_itpLm8MKC,.sCDPQZ_IJkwNEdVCg6sf{margin-top:.75rem}.sCDPQZ_IJkwNEdVCg6sf{display:flex;justify-content:space-between}
    108._root_ptfvg_1{display:grid;grid-template-columns:auto;grid-template-rows:max-content max-content 1fr max-content max-content}._root_ptfvg_1 ._inputWrapper_ptfvg_6{align-items:center;display:flex;gap:6px}._root_ptfvg_1 ._input_ptfvg_6[type=number]{padding-right:0}._root_ptfvg_1._invalid_ptfvg_14 ._input_ptfvg_6{border-color:var(--kubrick-invalid-color);outline-color:var(--kubrick-invalid-color);outline-width:1px}._root_ptfvg_1 ._label_ptfvg_19{cursor:pointer;display:inline-block;font-weight:600;grid-row:1/2;margin-block-end:6px;width:-moz-max-content;width:max-content}._root_ptfvg_1 ._markedRequired_ptfvg_27{color:var(--kubrick-invalid-color);margin-inline-start:.25rem}._root_ptfvg_1[aria-disabled=true] ._label_ptfvg_19{cursor:not-allowed}._root_ptfvg_1._descriptionBeforeInput_ptfvg_34 ._label_ptfvg_19{margin-block-end:0}._root_ptfvg_1 ._description_ptfvg_34{color:var(--kubrick-description-color);grid-row:4/5;margin-block:6px 0}._root_ptfvg_1._descriptionBeforeInput_ptfvg_34 ._description_ptfvg_34{grid-row:2/3;margin-block:0 6px}._root_ptfvg_1 ._errorMessage_ptfvg_46{color:var(--kubrick-invalid-color);grid-row:3/4;margin-block:6px 0}._root_ptfvg_1 ._errorMessage_ptfvg_46 p{margin-block:0 2px}
    119:root{--kubrick-accent-color:#2271b1;--kubrick-invalid-color:#d63638;--kubrick-description-color:#646970;--kubrick-outline-color:var(--kubrick-accent-color);--kubrick-body-background-color:#f0f0f1}.admin-color-blue{--kubrick-accent-color:#096484}.admin-color-coffee{--kubrick-accent-color:#c7a589}.admin-color-ectoplasm{--kubrick-accent-color:#a3b745}.admin-color-midnight{--kubrick-accent-color:#e14d43}.admin-color-ocean{--kubrick-accent-color:#9ebaa0}.admin-color-sunrise{--kubrick-accent-color:#dd823b}.admin-color-modern{--kubrick-accent-color:#3858e9}.admin-color-light{--kubrick-accent-color:#04a4cc;--kubrick-body-background-color:#f5f5f5}.admin-color-light body{background-color:var(--kubrick-body-background-color)}
  • syntatis-feature-flipper/trunk/dist/assets/setting-page/index.js

    r3191076 r3192496  
    1 (()=>{"use strict";var e,t,n,i,r={6858:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{Y:()=>p});var r=n(7723),s=n(1034),a=n(6420),l=n(3412),o=n(9662),d=(n(6044),n(4709)),c=n(790),u=e([o,d]);[o,d]=u.then?(await u)():u;const p=()=>{const{inlineData:e}=(0,d.Mp)();return(0,c.jsx)(s.O,{navigate:!0,url:e.settingPage,children:(0,c.jsxs)(a.t,{selectedKey:e.settingPageTab||void 0,children:[(0,c.jsx)(l.o,{title:(0,r.__)("General","syntatis-feature-flipper"),children:(0,c.jsx)(o.a5,{})},"general"),(0,c.jsx)(l.o,{title:(0,r.__)("Admin","syntatis-feature-flipper"),children:(0,c.jsx)(o.nQ,{})},"admin"),(0,c.jsx)(l.o,{title:(0,r.__)("Media","syntatis-feature-flipper"),children:(0,c.jsx)(o.Ct,{})},"media"),(0,c.jsx)(l.o,{title:(0,r.__)("Assets","syntatis-feature-flipper"),children:(0,c.jsx)(o.Bh,{})},"assets"),(0,c.jsx)(l.o,{title:(0,r.__)("Webpage","syntatis-feature-flipper"),children:(0,c.jsx)(o.p2,{})},"webpage"),(0,c.jsx)(l.o,{title:(0,r.__)("Security","syntatis-feature-flipper"),children:(0,c.jsx)(o.SV,{})},"security")]})})};i()}catch(e){i(e)}}))},3951:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{L:()=>o});var r=n(8740),s=n(1270),a=n(790),l=e([r]);r=(l.then?(await l)():l)[0];const o=({children:e,title:t,description:n})=>{const{updating:i}=(0,r.M)();return(0,a.jsxs)("div",{className:s.A.section,children:[t?(0,a.jsx)("h2",{className:`title ${s.A.title}`,children:t}):null,n?(0,a.jsx)("p",{className:s.A.description,children:n}):null,(0,a.jsx)("fieldset",{disabled:i,children:(0,a.jsx)("table",{className:"form-table",role:"presentation",children:(0,a.jsx)("tbody",{children:e})})})]})};i()}catch(e){i(e)}}))},3397:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{c:()=>c,l:()=>u});var r=n(6087),s=n(3731),a=n(8740),l=n(6017),o=n(790),d=e([s,a,l]);[s,a,l]=d.then?(await d)():d;const c=(0,r.createContext)(),u=({children:e})=>{const t=(0,r.useRef)(),{submitValues:n,optionPrefix:i,values:d,setStatus:u}=(0,a.M)(),[p,f]=(0,r.useState)({});return(0,r.useEffect)((()=>{if(!t)return;const e=t.current,n={};for(const t in e.elements){const r=e.elements[t];r.name!==i&&r.name?.startsWith(i)&&(n[r.name]=d[r.name])}f(n)}),[]),(0,o.jsx)(c.Provider,{value:{setFieldsetValues:(e,t)=>{f({...p,[`${i}${e}`]:t})}},children:(0,o.jsxs)("form",{ref:t,method:"POST",onSubmit:e=>{e.preventDefault();const t={};for(const e in p)e in d&&d[e]!==p[e]&&(t[e]=p[e]);0!==Object.keys(t).length?n(t):u("no-change")},children:[(0,o.jsx)(l.N,{}),e,(0,o.jsx)(s.b,{})]})})};i()}catch(e){i(e)}}))},6017:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{N:()=>f});var r=n(9180),s=n(7723),a=n(8740),l=n(790),o=e([a]);a=(o.then?(await o)():o)[0];const d={success:(0,s.__)("Settings saved.","syntatis-feature-flipper"),error:(0,s.__)("Settings failed to save.","syntatis-feature-flipper"),"no-change":(0,s.__)("No changes were made.","syntatis-feature-flipper")},c={success:"success",error:"error","no-change":"info"};function u(e){return d[e]||""}function p(e){return c[e]||"info"}const f=()=>{const{updating:e,status:t,setStatus:n}=(0,a.M)();if(e)return null;const i=u(t);return t&&i&&(0,l.jsx)(r.$,{isDismissable:!0,level:p(t),onDismiss:()=>n(null),children:(0,l.jsx)("strong",{children:i})})};i()}catch(h){i(h)}}))},5143:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{Z:()=>d,l:()=>o});var r=n(6087),s=n(4427),a=n(790),l=e([s]);s=(l.then?(await l)():l)[0];const o=(0,r.createContext)(),d=({children:e,inlineData:t})=>{const n="syntatis_feature_flipper_",i="syntatis-feature-flipper-",{status:r,updating:l,values:d,errorMessages:c,setStatus:u,setValues:p,submitValues:f,getOption:h,initialValues:g,updatedValues:v}=(0,s.t)();return(0,a.jsx)(o.Provider,{value:{errorMessages:c,status:r,updating:l,values:d,optionPrefix:n,setStatus:u,submitValues:f,initialValues:g,inlineData:t,updatedValues:v,setValues:(e,t)=>{p({...d,[`${n}${e}`]:t})},getOption:e=>h(`${n}${e}`),labelProps:e=>({htmlFor:`${i}${e}`,id:`${i}${e}-label`}),inputProps:e=>{const t=e.replaceAll("_","-");return{"aria-labelledby":`${i}${t}-label`,id:`${i}${t}`,name:`${n}${e}`}}},children:e})};i()}catch(e){i(e)}}))},3731:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{b:()=>c});var r=n(7723),s=n(1152),a=n(3677),l=n(8740),o=n(790),d=e([l]);l=(d.then?(await d)():d)[0];const c=()=>{const{updating:e}=(0,l.M)();return(0,o.jsx)("div",{className:"submit",children:(0,o.jsx)(s.$,{isDisabled:e,prefix:e&&(0,o.jsx)(a.y,{}),type:"submit",children:e?(0,r.__)("Saving Changes","syntatis-feature-flipper"):(0,r.__)("Save Changes","syntatis-feature-flipper")})})};i()}catch(e){i(e)}}))},4709:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{LB:()=>s.L,Mp:()=>o.M,Z6:()=>l.Z,lV:()=>r.l,xW:()=>d.x});var r=n(3397),s=n(3951),a=n(6017),l=n(5143),o=n(8740),d=n(2221),c=e([r,s,a,l,o,d]);[r,s,a,l,o,d]=c.then?(await c)():c,i()}catch(e){i(e)}}))},2221:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{x:()=>l});var r=n(6087),s=n(3397),a=e([s]);s=(a.then?(await a)():a)[0];const l=()=>{const e=(0,r.useContext)(s.c);if(!e)throw new Error("useFormContext must be used within a Fieldset");return e};i()}catch(e){i(e)}}))},4427:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{t:()=>d});var r=n(1455),s=n.n(r),a=n(6087);const l=await s()({path:"/wp/v2/settings",method:"GET"});function o(e){const t=e?.match(/: \[(.*?)\] (.+) in/);return t?{[t[1]]:t[2]}:null}const d=()=>{const[e,t]=(0,a.useState)(l),[n,i]=(0,a.useState)(),[r,d]=(0,a.useState)(),[c,u]=(0,a.useState)(!1),[p,f]=(0,a.useState)({});return(0,a.useEffect)((()=>{c&&f({})}),[c]),{values:e,status:n,errorMessages:p,updating:c,submitValues:n=>{u(!0),s()({path:"/wp/v2/settings",method:"POST",data:n}).then((n=>{t((t=>{for(const n in t)Object.keys(e).includes(n)||delete t[n];return t})(n)),i("success")})).catch((e=>{const t=o(e?.data?.error?.message);f((e=>{if(t)return{...e,...t}})),i("error")})).finally((()=>{d(n),u(!1)}))},setValues:t,setStatus:i,getOption:function(t){return e[t]},initialValues:l,updatedValues:r}};i()}catch(c){i(c)}}),1)},8740:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{M:()=>l});var r=n(6087),s=n(5143),a=e([s]);s=(a.then?(await a)():a)[0];const l=()=>{const e=(0,r.useContext)(s.l);if(!e)throw new Error("useSettingsContext must be used within a SettingsProvider");return e};i()}catch(e){i(e)}}))},7719:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{q:()=>f});var r=n(7723),s=n(6754),a=n(8509),l=n(9204),o=n(4709),d=n(9580),c=n(6087),u=n(790),p=e([s,o]);[s,o]=p.then?(await p)():p;const f=()=>{var e;const{getOption:t,inputProps:n,inlineData:i}=(0,o.Mp)(),{setFieldsetValues:p}=(0,o.xW)(),f=(0,c.useId)(),h=i.adminBarMenu||[];return(0,u.jsx)(s.d,{name:"admin_bar",id:"admin-bar",title:(0,r.__)("Admin Bar","syntatis-feature-flipper"),label:(0,r.__)("Show the Admin bar on the front end","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the Admin bar will not be displayed on the front end.","syntatis-feature-flipper"),children:(0,u.jsxs)("details",{className:d.A.menuDetails,children:[(0,u.jsx)("summary",{children:(0,u.jsx)("strong",{id:f,children:(0,r.__)("Menu","syntatis-feature-flipper")})}),(0,u.jsx)(a.$,{defaultValue:null!==(e=t("admin_bar_menu"))&&void 0!==e?e:h.map((({id:e})=>e)),"aria-labelledby":f,description:(0,r.__)("Unchecked menu items will be hidden from the Admin bar.","syntatis-feature-flipper"),onChange:e=>p("admin_bar_menu",e),...n("admin_bar_menu"),children:h.map((({id:e})=>(0,u.jsx)(l.S,{value:e,label:(0,u.jsx)("code",{children:e})},e)))})]})})};i()}catch(e){i(e)}}))},6832:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{T:()=>f});var r=n(7723),s=n(6754),a=n(8509),l=n(9204),o=n(4709),d=n(8071),c=n(6087),u=n(790),p=e([s,o]);[s,o]=p.then?(await p)():p;const f=()=>{var e;const{getOption:t,inputProps:n,inlineData:i}=(0,o.Mp)(),{setFieldsetValues:p}=(0,o.xW)(),[f,h]=(0,c.useState)(t("dashboard_widgets")),g=(0,c.useId)(),v=i.dashboardWidgets||[],y=null!==(e=t("dashboard_widgets_enabled"))&&void 0!==e?e:null;return(0,u.jsx)(s.d,{name:"dashboard_widgets",id:"dashboard-widgets",title:(0,r.__)("Dashboard Widgets","syntatis-feature-flipper"),label:(0,r.__)("Enable Dashboard widgets","syntatis-feature-flipper"),description:(0,r.__)("When switched off, all widgets will be hidden from the dashboard.","syntatis-feature-flipper"),onChange:h,children:f&&(0,u.jsxs)("details",{className:d.A.widgetsDetails,children:[(0,u.jsx)("summary",{children:(0,u.jsx)("strong",{id:g,children:(0,r.__)("Widgets","syntatis-feature-flipper")})}),(0,u.jsx)(a.$,{defaultValue:y,"aria-labelledby":g,description:(0,r.__)("Unchecked widgets will be hidden from the dashboard.","syntatis-feature-flipper"),onChange:e=>{p("dashboard_widgets_enabled",e)},...n("dashboard_widgets_enabled"),children:v.map((({id:e,title:t})=>(0,u.jsx)(l.S,{value:e,label:t},e)))})]})})};i()}catch(e){i(e)}}))},3277:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{k:()=>p});var r=n(7723),s=n(6754),a=n(3682),l=n(4709),o=n(3766),d=n(6087),c=n(790),u=e([s,l]);[s,l]=u.then?(await u)():u;const p=()=>{const{getOption:e}=(0,l.Mp)(),{setFieldsetValues:t}=(0,l.xW)(),[n,i]=(0,d.useState)(e("jpeg_compression"));return(0,c.jsx)(s.d,{name:"jpeg_compression",id:"jpeg-compression",title:(0,r.__)("JPEG Compression","syntatis-feature-flipper"),label:(0,r.__)("Enable JPEG image compression","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will upload the original JPEG image in its full quality, without any compression.","syntatis-feature-flipper"),onChange:i,children:n&&(0,c.jsxs)("details",{className:o.A.settingsDetails,children:[(0,c.jsx)("summary",{children:(0,c.jsx)("strong",{children:(0,r.__)("Settings","syntatis-feature-flipper")})}),(0,c.jsx)("div",{className:o.A.settingsInputs,children:(0,c.jsx)(a.A,{min:10,max:100,type:"number",name:"jpeg_compression_quality",defaultValue:e("jpeg_compression_quality"),onChange:e=>{t("jpeg_compression_quality",e)},className:"code",label:(0,r.__)("Quality","syntatis-feature-flipper"),description:(0,r.__)("The quality of the compressed JPEG image. 100 is the highest quality.","syntatis-feature-flipper"),suffix:"%"})})]})})};i()}catch(e){i(e)}}))},6754:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{d:()=>o});var r=n(3413),s=n(4709),a=n(790),l=e([s]);s=(l.then?(await l)():l)[0];const o=({description:e,id:t,label:n,name:i,onChange:l,title:o,children:d})=>{const{labelProps:c,inputProps:u,getOption:p}=(0,s.Mp)(),{setFieldsetValues:f}=(0,s.xW)();return(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{scope:"row",children:(0,a.jsx)("label",{...c(t),children:o})}),(0,a.jsxs)("td",{children:[(0,a.jsx)(r.d,{...u(i),onChange:e=>{void 0!==l&&l(e),f(i,e)},defaultSelected:p(i),description:e,label:n}),d]})]})};i()}catch(e){i(e)}}))},1238:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{TF:()=>s.T,dR:()=>l.d,km:()=>a.k,qE:()=>r.q});var r=n(7719),s=n(6832),a=n(3277),l=n(6754),o=e([r,s,a,l]);[r,s,a,l]=o.then?(await o)():o,i()}catch(e){i(e)}}))},341:(e,t,n)=>{n.a(e,(async(e,t)=>{try{var i=n(8490),r=n.n(i),s=n(6087),a=n(4709),l=n(6858),o=n(790),d=e([a,l]);[a,l]=d.then?(await d)():d,r()((()=>{const e=document.querySelector("#syntatis-feature-flipper-settings");e&&(0,s.createRoot)(e).render((0,o.jsx)(a.Z6,{inlineData:window.$syntatis.featureFlipper,children:(0,o.jsx)(l.Y,{})}))})),t()}catch(e){t(e)}}))},7834:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{n:()=>u});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=document.querySelector("#wpfooter"),c=d?.style?.display,u=()=>(0,l.jsxs)(s.lV,{children:[(0,l.jsxs)(s.LB,{children:[(0,l.jsx)(a.TF,{}),(0,l.jsx)(a.dR,{name:"admin_footer_text",id:"admin-footer-text",title:(0,r.__)("Footer Text","syntatis-feature-flipper"),label:(0,r.__)("Show the footer text","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the footer text in the admin area will be removed.","syntatis-feature-flipper"),onChange:e=>{d&&(d.style.display=e?c:"none")}}),(0,l.jsx)(a.dR,{name:"update_nags",id:"update-nags",title:(0,r.__)("Update Nags","syntatis-feature-flipper"),label:(0,r.__)("Enable WordPress update notification message","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not show notification message when update is available.","syntatis-feature-flipper")})]}),(0,l.jsxs)(s.LB,{title:(0,r.__)("Admin Bar","syntatis-feature-flipper"),description:(0,r.__)("Customize the Admin bar area","syntatis-feature-flipper"),children:[(0,l.jsx)(a.qE,{}),(0,l.jsx)(a.dR,{name:"admin_bar_howdy",id:"admin-bar-howdy",title:(0,r.__)("Howdy Text","syntatis-feature-flipper"),label:(0,r.__)('Show the "Howdy" text',"syntatis-feature-flipper"),description:(0,r.__)('When switched off, the "Howdy" text in the Account menu in the admin bar will be removed.',"syntatis-feature-flipper")})]})]});i()}catch(e){i(e)}}))},922:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{B:()=>d});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{description:(0,r.__)("Control the behavior of scripts, styles, and images loaded on your site.","syntatis-feature-flipper"),children:[(0,l.jsx)(a.dR,{name:"emojis",id:"emojis",title:(0,r.__)("Emojis","syntatis-feature-flipper"),label:(0,r.__)("Enable the WordPress built-in emojis","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not load the emojis scripts, styles, and images.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"scripts_version",id:"scripts-version",title:(0,r.__)("Scripts Version","syntatis-feature-flipper"),label:(0,r.__)("Show scripts and styles version","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not append the version to the scripts and styles URLs.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"jquery_migrate",id:"scripts-version",title:(0,r.__)("jQuery Migrate","syntatis-feature-flipper"),label:(0,r.__)("Load jQuery Migrate script","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not load the jQuery Migrate script.","syntatis-feature-flipper")})]})});i()}catch(e){i(e)}}))},8905:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{a:()=>d});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{children:[(0,l.jsx)(a.dR,{name:"gutenberg",id:"gutenberg",title:"Gutenberg",label:(0,r.__)("Enable the block editor","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the block editor will be disabled and the classic editor will be used.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"block_based_widgets",id:"block-based-widgets",title:"Block-based Widgets",label:(0,r.__)("Enable the block-based widgets","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the block-based widgets will be disabled and the classic widgets will be used.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"heartbeat",id:"heartbeat",title:"Heartbeat",label:(0,r.__)("Enable the Heartbeat API","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the Heartbeat API will be disabled; it will not be sending requests.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"self_ping",id:"self-ping",title:"Self-ping",label:(0,r.__)("Enable self-pingbacks","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not send pingbacks to your own site.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"cron",id:"cron",title:"Cron",label:(0,r.__)("Enable cron","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not run scheduled events.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"embed",id:"embed",title:"Embed",label:(0,r.__)("Enable post embedding","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will disable other sites from embedding content from your site, and vice-versa.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"feeds",id:"feeds",title:"Feeds",label:(0,r.__)("Enable RSS feeds","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will disable the RSS feed URLs.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"auto_update",id:"auto-update",title:(0,r.__)("Auto Update","syntatis-feature-flipper"),label:(0,r.__)("Enable WordPress auto update","syntatis-feature-flipper"),description:(0,r.__)("When switched off, you will need to manually update WordPress.","syntatis-feature-flipper")})]})});i()}catch(e){i(e)}}))},8357:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{C:()=>d});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{children:[(0,l.jsx)(a.dR,{name:"attachment_page",id:"attachment-page",title:(0,r.__)("Attachment Page","syntatis-feature-flipper"),label:(0,r.__)("Enable page for uploaded media files","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not create attachment pages for media files.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"attachment_slug",id:"attachment-slug",title:(0,r.__)("Attachment Slug","syntatis-feature-flipper"),label:(0,r.__)("Enable default media file slug","syntatis-feature-flipper"),description:(0,r.__)("When switched off, attachment page will get a randomized slug instead of taking from the original file name.","syntatis-feature-flipper")}),(0,l.jsx)(a.km,{})]})});i()}catch(e){i(e)}}))},3061:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{S:()=>p});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=document.querySelector('#adminmenu a[href="theme-editor.php"]'),c=document.querySelector('#adminmenu a[href="plugin-editor.php"]'),u={themeEditors:d?.parentElement?.style?.display,pluginEditors:c?.parentElement?.style?.display},p=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{children:[(0,l.jsx)(a.dR,{name:"file_edit",id:"file-edit",title:(0,r.__)("File Edit","syntatis-feature-flipper"),label:(0,r.__)("Enable the File Editor","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will disable the file editor for themes and plugins.","syntatis-feature-flipper"),onChange:e=>{d&&(d.parentElement.style.display=e?u.themeEditors:"none"),c&&(c.parentElement.style.display=e?u.pluginEditors:"none")}}),(0,l.jsx)(a.dR,{name:"xmlrpc",id:"xmlrpc",title:(0,r.__)("XML-RPC","syntatis-feature-flipper"),label:(0,r.__)("Enable XML-RPC","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will disable the XML-RPC endpoint.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"authenticated_rest_api",id:"authenticated-rest-api",title:(0,r.__)("REST API Authentication","syntatis-feature-flipper"),label:(0,r.__)("Enable REST API Authentication","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will allow users to make request to the public REST API endpoint without authentication.","syntatis-feature-flipper")})]})});i()}catch(e){i(e)}}))},5088:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{p:()=>d});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{title:"Metadata",description:(0,r.__)("Control the document metadata added in the HTML head.","syntatis-feature-flipper"),children:[(0,l.jsx)(a.dR,{name:"rsd_link",id:"rsd-link",title:(0,r.__)("RSD Link","syntatis-feature-flipper"),label:(0,r.__)("Enable RSD link","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will remove the Really Simple Discovery (RSD) link from the webpage head.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"generator_tag",id:"generator-tag",title:(0,r.__)("Generator Meta Tag","syntatis-feature-flipper"),label:(0,r.__)("Add WordPress generator meta tag","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will remove the generator meta tag which shows WordPress and its version.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"shortlink",id:"shortlink",title:(0,r.__)("Shortlink","syntatis-feature-flipper"),label:(0,r.__)("Add Shortlink","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will remove the shortlink meta tag which shows the short URL of the webpage head.","syntatis-feature-flipper")})]})});i()}catch(e){i(e)}}))},9662:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{Bh:()=>s.B,Ct:()=>l.C,SV:()=>o.S,a5:()=>a.a,nQ:()=>r.n,p2:()=>d.p});var r=n(7834),s=n(922),a=n(8905),l=n(8357),o=n(3061),d=n(5088),c=e([r,s,a,l,o,d]);[r,s,a,l,o,d]=c.then?(await c)():c,i()}catch(e){i(e)}}))},6044:()=>{},1270:(e,t,n)=>{n.d(t,{A:()=>i});const i={section:"Sow9V_g44_njwPuM6v_z",title:"rbliHJE9bgQbN73QIyJv",description:"AuG3fVwRuf5i2coEeXag"}},9580:(e,t,n)=>{n.d(t,{A:()=>i});const i={menuDetails:"TUy4RFlIpp1NJGmEaFMV"}},8071:(e,t,n)=>{n.d(t,{A:()=>i});const i={widgetsDetails:"nahtfAEfFXgPHNvOz8wZ"}},3766:(e,t,n)=>{n.d(t,{A:()=>i});const i={settingsDetails:"d3SxeXcdHN_itpLm8MKC",settingsInputs:"sCDPQZ_IJkwNEdVCg6sf"}},1609:e=>{e.exports=window.React},790:e=>{e.exports=window.ReactJSXRuntime},1455:e=>{e.exports=window.wp.apiFetch},8490:e=>{e.exports=window.wp.domReady},6087:e=>{e.exports=window.wp.element},7723:e=>{e.exports=window.wp.i18n},9229:(e,t,n)=>{n.d(t,{s:()=>l});var i=n(2217),r=n(5987),s=n(9681),a=n(364);function l(e,t){let n,{elementType:l="button",isDisabled:o,onPress:d,onPressStart:c,onPressEnd:u,onPressUp:p,onPressChange:f,preventFocusOnPress:h,allowFocusWhenDisabled:g,onClick:v,href:y,target:m,rel:b,type:A="button"}=e;n="button"===l?{type:A,disabled:o}:{role:"button",tabIndex:o?void 0:0,href:"a"===l&&o?void 0:y,target:"a"===l?m:void 0,type:"input"===l?A:void 0,disabled:"input"===l?o:void 0,"aria-disabled":o&&"input"!==l?o:void 0,rel:"a"===l?b:void 0};let{pressProps:w,isPressed:E}=(0,a.d)({onPressStart:c,onPressEnd:u,onPressChange:f,onPress:d,onPressUp:p,isDisabled:o,preventFocusOnPress:h,ref:t}),{focusableProps:x}=(0,s.W)(e,t);g&&(x.tabIndex=o?-1:x.tabIndex);let C=(0,i.v)(x,w,(0,r.$)(e,{labelable:!0}));return{isPressed:E,buttonProps:(0,i.v)(n,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{v&&(v(e),console.warn("onClick is deprecated, please use onPress"))}})}}},2526:(e,t,n)=>{n.d(t,{n:()=>i});const i=new WeakMap},8374:(e,t,n)=>{n.d(t,{l:()=>l});var i=n(4836),r=n(7233),s=n(2268),a=n(5562);function l(e){const t=(0,i.T)(e);if("virtual"===(0,a.ME)()){let n=t.activeElement;(0,r.v)((()=>{t.activeElement===n&&e.isConnected&&(0,s.e)(e)}))}else(0,s.e)(e)}},6133:(e,t,n)=>{n.d(t,{o:()=>l});var i=n(5562),r=n(3424),s=n(9461),a=n(1609);function l(e={}){let{autoFocus:t=!1,isTextInput:n,within:l}=e,o=(0,a.useRef)({isFocused:!1,isFocusVisible:t||(0,i.pP)()}),[d,c]=(0,a.useState)(!1),[u,p]=(0,a.useState)((()=>o.current.isFocused&&o.current.isFocusVisible)),f=(0,a.useCallback)((()=>p(o.current.isFocused&&o.current.isFocusVisible)),[]),h=(0,a.useCallback)((e=>{o.current.isFocused=e,c(e),f()}),[f]);(0,i.K7)((e=>{o.current.isFocusVisible=e,f()}),[],{isTextInput:n});let{focusProps:g}=(0,r.i)({isDisabled:l,onFocusChange:h}),{focusWithinProps:v}=(0,s.R)({isDisabled:!l,onFocusWithinChange:h});return{isFocused:d,isFocusVisible:u,focusProps:l?v:g}}},9681:(e,t,n)=>{n.d(t,{W:()=>c});var i=n(8374),r=n(6660),s=n(2217),a=n(1609),l=n(3424);function o(e){if(!e)return;let t=!0;return n=>{let i={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(i),t&&n.stopPropagation()}}let d=a.createContext(null);function c(e,t){let{focusProps:n}=(0,l.i)(e),{keyboardProps:c}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:o(e.onKeyDown),onKeyUp:o(e.onKeyUp)}}}(e),u=(0,s.v)(n,c),p=function(e){let t=(0,a.useContext)(d)||{};(0,r.w)(t,e);let{ref:n,...i}=t;return i}(t),f=e.isDisabled?{}:p,h=(0,a.useRef)(e.autoFocus);return(0,a.useEffect)((()=>{h.current&&t.current&&(0,i.l)(t.current),h.current=!1}),[t]),{focusableProps:(0,s.v)({...u,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},f)}}},8868:(e,t,n)=>{n.d(t,{X:()=>l});var i=n(5562),r=n(1609),s=n(9953),a=n(7049);function l(e,t,n){let{validationBehavior:l,focus:d}=e;(0,s.N)((()=>{if("native"===l&&(null==n?void 0:n.current)){let i=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(i),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=n.current).validity.valid,validationDetails:o(e),validationErrors:e.validationMessage?[e.validationMessage]:[]})}var e}));let c=(0,a.J)((()=>{t.resetValidation()})),u=(0,a.J)((e=>{var r;t.displayValidation.isInvalid||t.commitValidation();let s=null==n||null===(r=n.current)||void 0===r?void 0:r.form;var a;!e.defaultPrevented&&n&&s&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}(s)===n.current&&(d?d():null===(a=n.current)||void 0===a||a.focus(),(0,i.Cl)("keyboard")),e.preventDefault()})),p=(0,a.J)((()=>{t.commitValidation()}));(0,r.useEffect)((()=>{let e=null==n?void 0:n.current;if(!e)return;let t=e.form;return e.addEventListener("invalid",u),e.addEventListener("change",p),null==t||t.addEventListener("reset",c),()=>{e.removeEventListener("invalid",u),e.removeEventListener("change",p),null==t||t.removeEventListener("reset",c)}}),[n,u,p,c,l])}function o(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}},3424:(e,t,n)=>{n.d(t,{i:()=>a});var i=n(2894),r=n(1609),s=n(4836);function a(e){let{isDisabled:t,onFocus:n,onBlur:a,onFocusChange:l}=e;const o=(0,r.useCallback)((e=>{if(e.target===e.currentTarget)return a&&a(e),l&&l(!1),!0}),[a,l]),d=(0,i.y)(o),c=(0,r.useCallback)((e=>{const t=(0,s.T)(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),l&&l(!0),d(e))}),[l,n,d]);return{focusProps:{onFocus:!t&&(n||l||a)?c:void 0,onBlur:t||!a&&!l?void 0:o}}}},5562:(e,t,n)=>{n.d(t,{Cl:()=>x,K7:()=>k,ME:()=>E,pP:()=>w});var i=n(9202),r=n(8948),s=n(4836),a=n(1609);let l=null,o=new Set,d=new Map,c=!1,u=!1;const p={Tab:!0,Escape:!0};function f(e,t){for(let n of o)n(e,t)}function h(e){c=!0,function(e){return!(e.metaKey||!(0,i.cX)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(l="keyboard",f("keyboard",e))}function g(e){l="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(c=!0,f("pointer",e))}function v(e){(0,r.Y)(e)&&(c=!0,l="virtual")}function y(e){e.target!==window&&e.target!==document&&(c||u||(l="virtual",f("virtual",e)),c=!1,u=!1)}function m(){c=!1,u=!0}function b(e){if("undefined"==typeof window||d.get((0,s.m)(e)))return;const t=(0,s.m)(e),n=(0,s.T)(e);let i=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){c=!0,i.apply(this,arguments)},n.addEventListener("keydown",h,!0),n.addEventListener("keyup",h,!0),n.addEventListener("click",v,!0),t.addEventListener("focus",y,!0),t.addEventListener("blur",m,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",g,!0),n.addEventListener("pointermove",g,!0),n.addEventListener("pointerup",g,!0)):(n.addEventListener("mousedown",g,!0),n.addEventListener("mousemove",g,!0),n.addEventListener("mouseup",g,!0)),t.addEventListener("beforeunload",(()=>{A(e)}),{once:!0}),d.set(t,{focus:i})}const A=(e,t)=>{const n=(0,s.m)(e),i=(0,s.T)(e);t&&i.removeEventListener("DOMContentLoaded",t),d.has(n)&&(n.HTMLElement.prototype.focus=d.get(n).focus,i.removeEventListener("keydown",h,!0),i.removeEventListener("keyup",h,!0),i.removeEventListener("click",v,!0),n.removeEventListener("focus",y,!0),n.removeEventListener("blur",m,!1),"undefined"!=typeof PointerEvent?(i.removeEventListener("pointerdown",g,!0),i.removeEventListener("pointermove",g,!0),i.removeEventListener("pointerup",g,!0)):(i.removeEventListener("mousedown",g,!0),i.removeEventListener("mousemove",g,!0),i.removeEventListener("mouseup",g,!0)),d.delete(n))};function w(){return"pointer"!==l}function E(){return l}function x(e){l=e,f(e,null)}"undefined"!=typeof document&&function(e){const t=(0,s.T)(e);let n;"loading"!==t.readyState?b(e):(n=()=>{b(e)},t.addEventListener("DOMContentLoaded",n))}();const C=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function k(e,t,n){b(),(0,a.useEffect)((()=>{let t=(t,i)=>{(function(e,t,n){var i;const r="undefined"!=typeof window?(0,s.m)(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,a="undefined"!=typeof window?(0,s.m)(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l="undefined"!=typeof window?(0,s.m)(null==n?void 0:n.target).HTMLElement:HTMLElement,o="undefined"!=typeof window?(0,s.m)(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof r&&!C.has(null==n||null===(i=n.target)||void 0===i?void 0:i.type)||(null==n?void 0:n.target)instanceof a||(null==n?void 0:n.target)instanceof l&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof o&&!p[n.key])})(!!(null==n?void 0:n.isTextInput),t,i)&&e(w())};return o.add(t),()=>{o.delete(t)}}),t)}},9461:(e,t,n)=>{n.d(t,{R:()=>s});var i=n(2894),r=n(1609);function s(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:s,onFocusWithinChange:a}=e,l=(0,r.useRef)({isFocusWithin:!1}),o=(0,r.useCallback)((e=>{l.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(l.current.isFocusWithin=!1,n&&n(e),a&&a(!1))}),[n,a,l]),d=(0,i.y)(o),c=(0,r.useCallback)((e=>{l.current.isFocusWithin||document.activeElement!==e.target||(s&&s(e),a&&a(!0),l.current.isFocusWithin=!0,d(e))}),[s,a,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:o}}}},364:(e,t,n)=>{n.d(t,{d:()=>S});var i=n(9202),r=n(4836),s=n(7233);let a="default",l="",o=new WeakMap;function d(e){if((0,i.un)()){if("default"===a){const t=(0,r.T)(e);l=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}a="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(o.set(e,e.style.userSelect),e.style.userSelect="none")}function c(e){if((0,i.un)()){if("disabled"!==a)return;a="restoring",setTimeout((()=>{(0,s.v)((()=>{if("restoring"===a){const t=(0,r.T)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=l||""),l="",a="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&o.has(e)){let t=o.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),o.delete(e)}}var u=n(1609);const p=u.createContext({register:()=>{}});function f(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function h(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,f(e,t,"set"),n),n}p.displayName="PressResponderContext";var g=n(2217),v=n(6660),y=n(6948),m=n(7049),b=n(2166),A=n(3831),w=n(8948),E=n(2268),x=new WeakMap;class C{continuePropagation(){h(this,x,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(this,f(this,x,"get"))}constructor(e,t,n,i){var r,s,a,l;l={writable:!0,value:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(s=this,a=x),a.set(s,l),h(this,x,!0);let o=null!==(r=null==i?void 0:i.target)&&void 0!==r?r:n.currentTarget;const d=null==o?void 0:o.getBoundingClientRect();let c,u,p=0,f=null;null!=n.clientX&&null!=n.clientY&&(u=n.clientX,f=n.clientY),d&&(null!=u&&null!=f?(c=u-d.left,p=f-d.top):(c=d.width/2,p=d.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=c,this.y=p}}const k=Symbol("linkClicked");function S(e){let{onPress:t,onPressChange:n,onPressStart:s,onPressEnd:a,onPressUp:l,isDisabled:o,isPressed:f,preventFocusOnPress:h,shouldCancelOnPointerExit:x,allowTextSelectionOnPress:S,ref:B,...L}=function(e){let t=(0,u.useContext)(p);if(t){let{register:n,...i}=t;e=(0,g.v)(i,e),n()}return(0,v.w)(t,e.ref),e}(e),[j,F]=(0,u.useState)(!1),Q=(0,u.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:Y,removeAllGlobalListeners:G}=(0,y.A)(),W=(0,m.J)(((e,t)=>{let i=Q.current;if(o||i.didFirePressStart)return!1;let r=!0;if(i.isTriggeringEvent=!0,s){let n=new C("pressstart",t,e);s(n),r=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,F(!0),r})),H=(0,m.J)(((e,i,r=!0)=>{let s=Q.current;if(!s.didFirePressStart)return!1;s.ignoreClickAfterPress=!0,s.didFirePressStart=!1,s.isTriggeringEvent=!0;let l=!0;if(a){let t=new C("pressend",i,e);a(t),l=t.shouldStopPropagation}if(n&&n(!1),F(!1),t&&r&&!o){let n=new C("press",i,e);t(n),l&&(l=n.shouldStopPropagation)}return s.isTriggeringEvent=!1,l})),U=(0,m.J)(((e,t)=>{let n=Q.current;if(o)return!1;if(l){n.isTriggeringEvent=!0;let i=new C("pressup",t,e);return l(i),n.isTriggeringEvent=!1,i.shouldStopPropagation}return!0})),O=(0,m.J)((e=>{let t=Q.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&H(I(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,G(),S||c(t.target))})),J=(0,m.J)((e=>{x&&O(e)})),V=(0,u.useMemo)((()=>{let e=Q.current,t={onKeyDown(t){if(P(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var s;N(t.target,t.key)&&t.preventDefault();let a=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,a=W(t,"keyboard");let i=t.currentTarget,s=t=>{P(t,i)&&!t.repeat&&i.contains(t.target)&&e.target&&U(I(e.target,t),"keyboard")};Y((0,r.T)(t.currentTarget),"keyup",(0,b.c)(s,n),!0)}a&&t.stopPropagation(),t.metaKey&&(0,i.cX)()&&(null===(s=e.metaKeyEvents)||void 0===s||s.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!A.Fe.isOpening){let n=!0;if(o&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||(0,w.Y)(t.nativeEvent))){o||h||(0,E.e)(t.currentTarget);let e=W(t,"virtual"),i=U(t,"virtual"),r=H(t,"virtual");n=e&&i&&r}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&P(t,e.target)){var i;N(t.target,t.key)&&t.preventDefault();let n=t.target;H(I(e.target,t),"keyboard",e.target.contains(n)),G(),"Enter"!==t.key&&T(e.target)&&e.target.contains(n)&&!t[k]&&(t[k]=!0,(0,A.Fe)(e.target,t,!1)),e.isPressed=!1,null===(i=e.metaKeyEvents)||void 0===i||i.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var r;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(r=e.target)||void 0===r||r.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if((0,w.P)(t.nativeEvent))return void(e.pointerType="virtual");D(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let s=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,o||h||(0,E.e)(t.currentTarget),S||d(e.target),s=W(t,e.pointerType),Y((0,r.T)(t.currentTarget),"pointermove",n,!1),Y((0,r.T)(t.currentTarget),"pointerup",i,!1),Y((0,r.T)(t.currentTarget),"pointercancel",a,!1)),s&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(D(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&_(t,t.currentTarget)&&U(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&_(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,W(I(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,H(I(e.target,t),e.pointerType,!1),J(t)))},i=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(_(t,e.target)&&null!=e.pointerType?H(I(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&H(I(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,G(),S||c(e.target),"ontouchend"in e.target&&"mouse"!==t.pointerType&&Y(e.target,"touchend",s,{once:!0}))},s=e=>{R(e.currentTarget)&&e.preventDefault()},a=e=>{O(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&O(e)}}else{t.onMouseDown=t=>{0===t.button&&t.currentTarget.contains(t.target)&&(D(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents?t.stopPropagation():(e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=(0,w.Y)(t.nativeEvent)?"virtual":"mouse",o||h||(0,E.e)(t.currentTarget),W(t,e.pointerType)&&t.stopPropagation(),Y((0,r.T)(t.currentTarget),"mouseup",n,!1)))},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=W(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=H(t,e.pointerType,!1),J(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||U(t,e.pointerType||"mouse"))};let n=t=>{0===t.button&&(e.isPressed=!1,G(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&_(t,e.target)&&null!=e.pointerType?H(I(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&H(I(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",o||h||(0,E.e)(t.currentTarget),S||d(e.target),W(M(e.target,t),e.pointerType)&&t.stopPropagation(),Y((0,r.m)(t.currentTarget),"scroll",i,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=K(t.nativeEvent,e.activePointerId),i=!0;n&&_(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,i=W(M(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,i=H(M(e.target,t),e.pointerType,!1),J(M(e.target,t))),i&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=K(t.nativeEvent,e.activePointerId),i=!0;n&&_(n,t.currentTarget)&&null!=e.pointerType?(U(M(e.target,t),e.pointerType),i=H(M(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(i=H(M(e.target,t),e.pointerType,!1)),i&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!S&&c(e.target),G()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&O(M(e.target,t)))};let i=t=>{e.isPressed&&t.target.contains(e.target)&&O({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&O(e)}}return t}),[Y,o,h,G,S,O,J,H,W,U]);return(0,u.useEffect)((()=>()=>{var e;S||c(null!==(e=Q.current.target)&&void 0!==e?e:void 0)}),[S]),{isPressed:f||j,pressProps:(0,g.v)(L,V)}}function T(e){return"A"===e.tagName&&e.hasAttribute("href")}function P(e,t){const{key:n,code:i}=e,s=t,a=s.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==i||s instanceof(0,r.m)(s).HTMLInputElement&&!L(s,n)||s instanceof(0,r.m)(s).HTMLTextAreaElement||s.isContentEditable||("link"===a||!a&&T(s))&&"Enter"!==n)}function K(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const i=n[e];if(i.identifier===t)return i}return null}function M(e,t){let n=0,i=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,i=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:i}}function I(e,t){let n=t.clientX,i=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:i}}function _(e,t){let n=t.getBoundingClientRect(),i=function(e){let t=0,n=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?n=e.height/2:void 0!==e.radiusY&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return s=i,!((r=n).left>s.right||s.left>r.right||r.top>s.bottom||s.top>r.bottom);var r,s}function D(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function R(e){return!(e instanceof HTMLInputElement||(e instanceof HTMLButtonElement?"submit"===e.type||"reset"===e.type:T(e)))}function N(e,t){return e instanceof HTMLInputElement?!L(e,t):R(e)}const B=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function L(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:B.has(e.type)}},2894:(e,t,n)=>{n.d(t,{y:()=>l});var i=n(1609),r=n(9953),s=n(7049);class a{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function l(e){let t=(0,i.useRef)({isFocused:!1,observer:null});(0,r.N)((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=(0,s.J)((t=>{null==e||e(t)}));return(0,i.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=e.target,r=e=>{t.current.isFocused=!1,i.disabled&&n(new a("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",r,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&i.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}},4742:(e,t,n)=>{n.d(t,{M:()=>a});var i=n(2145),r=n(7061);var s=n(2217);function a(e){let{description:t,errorMessage:n,isInvalid:a,validationState:l}=e,{labelProps:o,fieldProps:d}=function(e){let{id:t,label:n,"aria-labelledby":s,"aria-label":a,labelElementType:l="label"}=e;t=(0,i.Bi)(t);let o=(0,i.Bi)(),d={};return n?(s=s?`${o} ${s}`:o,d={id:o,htmlFor:"label"===l?t:void 0}):s||a||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:d,fieldProps:(0,r.b)({id:t,"aria-label":a,"aria-labelledby":s})}}(e),c=(0,i.X1)([Boolean(t),Boolean(n),a,l]),u=(0,i.X1)([Boolean(t),Boolean(n),a,l]);return d=(0,s.v)(d,{"aria-describedby":[c,u,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:d,descriptionProps:{id:c},errorMessageProps:{id:u}}}},415:(e,t,n)=>{n.d(t,{Cc:()=>d,wR:()=>f});var i=n(1609);const r={prefix:String(Math.round(1e10*Math.random())),current:0},s=i.createContext(r),a=i.createContext(!1);let l=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),o=new WeakMap;const d="function"==typeof i.useId?function(e){let t=i.useId(),[n]=(0,i.useState)(f());return e||`${n?"react-aria":`react-aria${r.prefix}`}-${t}`}:function(e){let t=(0,i.useContext)(s);t!==r||l||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=function(e=!1){let t=(0,i.useContext)(s),n=(0,i.useRef)(null);if(null===n.current&&!e){var r,a;let e=null===(a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===a||null===(r=a.ReactCurrentOwner)||void 0===r?void 0:r.current;if(e){let n=o.get(e);null==n?o.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,o.delete(e))}n.current=++t.current}return n.current}(!!e),a=`react-aria${t.prefix}`;return e||`${a}-${n}`};function c(){return!1}function u(){return!0}function p(e){return()=>{}}function f(){return"function"==typeof i.useSyncExternalStore?i.useSyncExternalStore(p,c,u):(0,i.useContext)(a)}},5353:(e,t,n)=>{n.d(t,{e:()=>o});var i=n(2217),r=n(5987),s=n(8343),a=n(9681),l=n(364);function o(e,t,n){let{isDisabled:o=!1,isReadOnly:d=!1,value:c,name:u,children:p,"aria-label":f,"aria-labelledby":h,validationState:g="valid",isInvalid:v}=e;null!=p||null!=f||null!=h||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:y,isPressed:m}=(0,l.d)({isDisabled:o}),{pressProps:b,isPressed:A}=(0,l.d)({isDisabled:o||d,onPress(){t.toggle()}}),{focusableProps:w}=(0,a.W)(e,n),E=(0,i.v)(y,w),x=(0,r.$)(e,{labelable:!0});return(0,s.F)(n,t.isSelected,t.setSelected),{labelProps:(0,i.v)(b,{onClick:e=>e.preventDefault()}),inputProps:(0,i.v)(x,{"aria-invalid":v||"invalid"===g||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":d||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:o,...null==c?{}:{value:c},name:u,type:"checkbox",...E}),isSelected:t.isSelected,isPressed:m||A,isDisabled:o,isReadOnly:d,isInvalid:v||"invalid"===g}}},2166:(e,t,n)=>{function i(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}n.d(t,{c:()=>i})},4836:(e,t,n)=>{n.d(t,{T:()=>i,m:()=>r});const i=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},r=e=>e&&"window"in e&&e.window===e?e:i(e).defaultView||window},5987:(e,t,n)=>{n.d(t,{$:()=>l});const i=new Set(["id"]),r=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),s=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),a=/^(data-.*)$/;function l(e,t={}){let{labelable:n,isLink:l,propNames:o}=t,d={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i.has(t)||n&&r.has(t)||l&&s.has(t)||(null==o?void 0:o.has(t))||a.test(t))&&(d[t]=e[t]);return d}},2268:(e,t,n)=>{function i(e){if(function(){if(null==r){r=!1;try{document.createElement("div").focus({get preventScroll(){return r=!0,!0}})}catch(e){}}return r}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],i=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==i;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return i instanceof HTMLElement&&n.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}(t)}}n.d(t,{e:()=>i});let r=null},8948:(e,t,n)=>{n.d(t,{P:()=>s,Y:()=>r});var i=n(9202);function r(e){return!(0!==e.mozInputSource||!e.isTrusted)||((0,i.m0)()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function s(e){return!(0,i.m0)()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType}},2217:(e,t,n)=>{n.d(t,{v:()=>a});var i=n(2166),r=n(2145),s=n(4164);function a(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let a=e[n];for(let e in a){let n=t[e],l=a[e];"function"==typeof n&&"function"==typeof l&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=(0,i.c)(n,l):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof l?"id"===e&&n&&l?t.id=(0,r.Tw)(n,l):t[e]=void 0!==l?l:n:t[e]=(0,s.A)(n,l)}}return t}},3831:(e,t,n)=>{n.d(t,{Fe:()=>o,_h:()=>d,rd:()=>l});var i=n(2268),r=n(9202),s=n(1609);const a=(0,s.createContext)({isNative:!0,open:function(e,t){!function(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}(e,(e=>o(e,t)))},useHref:e=>e});function l(){return(0,s.useContext)(a)}function o(e,t,n=!0){var s,a;let{metaKey:l,ctrlKey:d,altKey:c,shiftKey:u}=t;(0,r.gm)()&&(null===(a=window.event)||void 0===a||null===(s=a.type)||void 0===s?void 0:s.startsWith("key"))&&"_blank"===e.target&&((0,r.cX)()?l=!0:d=!0);let p=(0,r.Tc)()&&(0,r.cX)()&&!(0,r.bh)()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:d,altKey:c,shiftKey:u}):new MouseEvent("click",{metaKey:l,ctrlKey:d,altKey:c,shiftKey:u,bubbles:!0,cancelable:!0});o.isOpening=n,(0,i.e)(e),e.dispatchEvent(p),o.isOpening=!1}function d(e){var t;const n=l().useHref(null!==(t=null==e?void 0:e.href)&&void 0!==t?t:"");return{href:(null==e?void 0:e.href)?n:void 0,target:null==e?void 0:e.target,rel:null==e?void 0:e.rel,download:null==e?void 0:e.download,ping:null==e?void 0:e.ping,referrerPolicy:null==e?void 0:e.referrerPolicy}}o.isOpening=!1},9202:(e,t,n)=>{function i(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function r(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 s(e){let t=null;return()=>(null==t&&(t=e()),t)}n.d(t,{Tc:()=>u,bh:()=>o,cX:()=>a,gm:()=>h,lg:()=>c,m0:()=>f,un:()=>d});const a=s((function(){return r(/^Mac/i)})),l=s((function(){return r(/^iPhone/i)})),o=s((function(){return r(/^iPad/i)||a()&&navigator.maxTouchPoints>1})),d=s((function(){return l()||o()})),c=s((function(){return a()||d()})),u=s((function(){return i(/AppleWebKit/i)&&!p()})),p=s((function(){return i(/Chrome/i)})),f=s((function(){return i(/Android/i)})),h=s((function(){return i(/Firefox/i)}))},7233:(e,t,n)=>{n.d(t,{v:()=>a});let i=new Map,r=new Set;function s(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let s=i.get(n.target);if(s&&(s.delete(n.propertyName),0===s.size&&(n.target.removeEventListener("transitioncancel",t),i.delete(n.target)),0===i.size)){for(let e of r)e();r.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let r=i.get(n.target);r||(r=new Set,i.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function a(e){requestAnimationFrame((()=>{0===i.size?e():r.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?s():document.addEventListener("DOMContentLoaded",s))},7049:(e,t,n)=>{n.d(t,{J:()=>s});var i=n(9953),r=n(1609);function s(e){const t=(0,r.useRef)(null);return(0,i.N)((()=>{t.current=e}),[e]),(0,r.useCallback)(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}},8343:(e,t,n)=>{n.d(t,{F:()=>s});var i=n(7049),r=n(1609);function s(e,t,n){let s=(0,r.useRef)(t),a=(0,i.J)((()=>{n&&n(s.current)}));(0,r.useEffect)((()=>{var t;let n=null==e||null===(t=e.current)||void 0===t?void 0:t.form;return null==n||n.addEventListener("reset",a),()=>{null==n||n.removeEventListener("reset",a)}}),[e,a])}},6948:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(1609);function r(){let e=(0,i.useRef)(new Map),t=(0,i.useCallback)(((t,n,i,r)=>{let s=(null==r?void 0:r.once)?(...t)=>{e.current.delete(i),i(...t)}:i;e.current.set(i,{type:n,eventTarget:t,fn:s,options:r}),t.addEventListener(n,i,r)}),[]),n=(0,i.useCallback)(((t,n,i,r)=>{var s;let a=(null===(s=e.current.get(i))||void 0===s?void 0:s.fn)||i;t.removeEventListener(n,a,r),e.current.delete(i)}),[]),r=(0,i.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,i.useEffect)((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}},2145:(e,t,n)=>{n.d(t,{Tw:()=>c,Bi:()=>d,X1:()=>u});var i=n(9953),r=n(7049),s=n(1609);var a=n(415);let l=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),o=new Map;function d(e){let[t,n]=(0,s.useState)(e),r=(0,s.useRef)(null),d=(0,a.Cc)(t),c=(0,s.useCallback)((e=>{r.current=e}),[]);return l&&(o.has(d)&&!o.get(d).includes(c)?o.set(d,[...o.get(d),c]):o.set(d,[c])),(0,i.N)((()=>{let e=d;return()=>{o.delete(e)}}),[d]),(0,s.useEffect)((()=>{let e=r.current;e&&(r.current=null,n(e))})),d}function c(e,t){if(e===t)return e;let n=o.get(e);if(n)return n.forEach((e=>e(t))),t;let i=o.get(t);return i?(i.forEach((t=>t(e))),e):t}function u(e=[]){let t=d(),[n,a]=function(e){let[t,n]=(0,s.useState)(e),a=(0,s.useRef)(null),l=(0,r.J)((()=>{if(!a.current)return;let e=a.current.next();e.done?a.current=null:t===e.value?l():n(e.value)}));(0,i.N)((()=>{a.current&&l()}));let o=(0,r.J)((e=>{a.current=e(t),l()}));return[t,o]}(t),l=(0,s.useCallback)((()=>{a((function*(){yield t,yield document.getElementById(t)?t:void 0}))}),[t,a]);return(0,i.N)(l,[t,l,...e]),n}},7061:(e,t,n)=>{n.d(t,{b:()=>r});var i=n(2145);function r(e,t){let{id:n,"aria-label":r,"aria-labelledby":s}=e;if(n=(0,i.Bi)(n),s&&r){let e=new Set([n,...s.trim().split(/\s+/)]);s=[...e].join(" ")}else s&&(s=s.trim().split(/\s+/).join(" "));return r||s||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":s}}},9953:(e,t,n)=>{n.d(t,{N:()=>r});var i=n(1609);const r="undefined"!=typeof document?i.useLayoutEffect:()=>{}},3908:(e,t,n)=>{n.d(t,{U:()=>r});var i=n(1609);function r(e){const t=(0,i.useRef)(null);return(0,i.useMemo)((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}},6660:(e,t,n)=>{n.d(t,{w:()=>r});var i=n(9953);function r(e,t){(0,i.N)((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}},7979:(e,t,n)=>{n.d(t,{s:()=>l});var i=n(2217),r=n(1609),s=n(9461);const a={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function l(e){let{children:t,elementType:n="div",isFocusable:l,style:o,...d}=e,{visuallyHiddenProps:c}=function(e={}){let{style:t,isFocusable:n}=e,[i,l]=(0,r.useState)(!1),{focusWithinProps:o}=(0,s.R)({isDisabled:!n,onFocusWithinChange:e=>l(e)});return{visuallyHiddenProps:{...o,style:(0,r.useMemo)((()=>i?t:t?{...a,...t}:a),[i])}}}(e);return r.createElement(n,(0,i.v)(d,c),t)}},1144:(e,t,n)=>{n.d(t,{KZ:()=>d,Lf:()=>o,YD:()=>a,cX:()=>f});var i=n(1609);const r={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},s={...r,customError:!0,valid:!1},a={isInvalid:!1,validationDetails:r,validationErrors:[]},l=(0,i.createContext)({}),o="__formValidationState"+Date.now();function d(e){if(e[o]){let{realtimeValidation:t,displayValidation:n,updateValidation:i,resetValidation:r,commitValidation:s}=e[o];return{realtimeValidation:t,displayValidation:n,updateValidation:i,resetValidation:r,commitValidation:s}}return function(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:d,validate:f,validationBehavior:h="aria"}=e;n&&(t||(t="invalid"===n));let g=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:s}:null,v=(0,i.useMemo)((()=>u(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return c(n)}return[]}(f,o))),[f,o]);(null==d?void 0:d.validationDetails.valid)&&(d=null);let y=(0,i.useContext)(l),m=(0,i.useMemo)((()=>r?Array.isArray(r)?r.flatMap((e=>c(y[e]))):c(y[r]):[]),[y,r]),[b,A]=(0,i.useState)(y),[w,E]=(0,i.useState)(!1);y!==b&&(A(y),E(!1));let x=(0,i.useMemo)((()=>u(w?[]:m)),[w,m]),C=(0,i.useRef)(a),[k,S]=(0,i.useState)(a),T=(0,i.useRef)(a),[P,K]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{if(!P)return;K(!1);let e=v||d||C.current;p(e,T.current)||(T.current=e,S(e))})),{realtimeValidation:g||x||v||d||a,displayValidation:"native"===h?g||x||k:g||x||v||d||k,updateValidation(e){"aria"!==h||p(k,e)?C.current=e:S(e)},resetValidation(){let e=a;p(e,T.current)||(T.current=e,S(e)),"native"===h&&K(!1),E(!0)},commitValidation(){"native"===h&&K(!0),E(!0)}}}(e)}function c(e){return e?Array.isArray(e)?e:[e]:[]}function u(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:s}:null}function p(e,t){return e===t||e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every(((e,n)=>e===t.validationErrors[n]))&&Object.entries(e.validationDetails).every((([e,n])=>t.validationDetails[e]===n))}function f(...e){let t=new Set,n=!1,i={...r};for(let r of e){var s,a;for(let e of r.validationErrors)t.add(e);n||(n=r.isInvalid);for(let e in i)(s=i)[a=e]||(s[a]=r.validationDetails[e])}return i.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:i}}},1623:(e,t,n)=>{n.d(t,{H:()=>r});var i=n(8356);function r(e={}){let{isReadOnly:t}=e,[n,r]=(0,i.P)(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:n,setSelected:function(e){t||r(e)},toggle:function(){t||r(!n)}}}},8356:(e,t,n)=>{n.d(t,{P:()=>r});var i=n(1609);function r(e,t,n){let[r,s]=(0,i.useState)(e||t),a=(0,i.useRef)(void 0!==e),l=void 0!==e;(0,i.useEffect)((()=>{let e=a.current;e!==l&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),a.current=l}),[l]);let o=l?e:r,d=(0,i.useCallback)(((e,...t)=>{let i=(e,...t)=>{n&&(Object.is(o,e)||n(e,...t)),l||(o=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),s(((n,...r)=>{let s=e(l?o:n,...r);return i(s,...t),l?n:s}))):(l||s(e),i(e,...t))}),[l,o,n]);return[o,d]}},1152:(e,t,n)=>{n.d(t,{$:()=>y});var i=n(790),r=n(3908),s=n(2217),a=n(1609),l=n(9229);let o=!1,d=0;function c(){o=!0,setTimeout((()=>{o=!1}),50)}function u(e){"touch"===e.pointerType&&c()}function p(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",u):document.addEventListener("touchend",c),d++,()=>{d--,d>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",u):document.removeEventListener("touchend",c))}}var f=n(6133),h=n(9781);const g="_affix_1mh99_4",v="_hasAffix_1mh99_15",y=(0,a.forwardRef)(((e,t)=>{const{autoFocus:n,children:d,prefix:c,role:u,size:y,suffix:m,variant:b="primary"}=e,A=(0,r.U)(t),{buttonProps:w}=(0,l.s)(e,A),{hoverProps:E}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:r}=e,[s,l]=(0,a.useState)(!1),d=(0,a.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,a.useEffect)(p,[]);let{hoverProps:c,triggerHoverEnd:u}=(0,a.useMemo)((()=>{let e=(e,i)=>{if(d.pointerType=i,r||"touch"===i||d.isHovered||!e.currentTarget.contains(e.target))return;d.isHovered=!0;let s=e.currentTarget;d.target=s,t&&t({type:"hoverstart",target:s,pointerType:i}),n&&n(!0),l(!0)},s=(e,t)=>{if(d.pointerType="",d.target=null,"touch"===t||!d.isHovered)return;d.isHovered=!1;let r=e.currentTarget;i&&i({type:"hoverend",target:r,pointerType:t}),n&&n(!1),l(!1)},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{o&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!r&&e.currentTarget.contains(e.target)&&s(e,e.pointerType)}):(a.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{d.ignoreEmulatedMouseEvents||o||e(t,"mouse"),d.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!r&&e.currentTarget.contains(e.target)&&s(e,"mouse")}),{hoverProps:a,triggerHoverEnd:s}}),[t,n,i,r,d]);return(0,a.useEffect)((()=>{r&&u({currentTarget:d.target},d.pointerType)}),[r]),{hoverProps:c,isHovered:s}}(e),{focusProps:x}=(0,f.o)({autoFocus:n}),{clsx:C,rootProps:k}=(0,h.Y)("Button",e),S=!!c||!!m;return(0,i.jsxs)("button",{...k({classNames:["button",y?`button-${y}`:"",`button-${"link-danger"===b?"link":b}`,{"button-link-delete":"link-danger"===b,[v]:S},"_root_1mh99_1"]}),...(0,s.v)(w,E,x),role:u,children:[c&&(0,i.jsx)("span",{className:C({classNames:[g],prefixedNames:["affix","prefix"]}),children:c}),S?(0,i.jsx)("span",{className:C({classNames:[g],prefixedNames:["affix","infix"]}),children:d}):d,m&&(0,i.jsx)("span",{className:C({classNames:[g],prefixedNames:["affix","suffix"]}),children:m})]})}));y.displayName="Button"},9204:(e,t,n)=>{n.d(t,{S:()=>y});var i=n(790),r=n(3908),s=n(2145),a=n(1609),l=n(8868),o=n(1144),d=n(5353);function c(e,t,n){let i=(0,o.KZ)({...e,value:t.isSelected}),{isInvalid:r,validationErrors:s,validationDetails:c}=i.displayValidation,{labelProps:u,inputProps:p,isSelected:f,isPressed:h,isDisabled:g,isReadOnly:v}=(0,d.e)({...e,isInvalid:r},t,n);(0,l.X)(e,i,n);let{isIndeterminate:y,isRequired:m,validationBehavior:b="aria"}=e;return(0,a.useEffect)((()=>{n.current&&(n.current.indeterminate=!!y)})),{labelProps:u,inputProps:{...p,checked:f,"aria-required":m&&"aria"===b||void 0,required:m&&"native"===b},isSelected:f,isPressed:h,isDisabled:g,isReadOnly:v,isInvalid:r,validationErrors:s,validationDetails:c}}var u=n(2526),p=n(1623),f=n(8509),h=n(9781);const g="_readOnly_lmlip_21",v="_disabled_lmlip_25",y=(0,a.forwardRef)(((e,t)=>{const{description:n}=e,{clsx:l,componentProps:d,rootProps:y}=(0,h.Y)("Checkbox",e),m=(0,r.U)(t),b=(0,a.useRef)(null),A=(0,s.Bi)(),w=n?(0,s.Bi)():void 0,E=(0,a.useContext)(f.I),{inputProps:x,isDisabled:C,isReadOnly:k,labelProps:S}=E?function(e,t,n){const i=(0,p.H)({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}});let{name:r,descriptionId:s,errorMessageId:l,validationBehavior:d}=u.n.get(t);var f;d=null!==(f=e.validationBehavior)&&void 0!==f?f:d;let{realtimeValidation:h}=(0,o.KZ)({...e,value:i.isSelected,name:void 0,validationBehavior:"aria"}),g=(0,a.useRef)(o.YD),v=()=>{t.setInvalid(e.value,h.isInvalid?h:g.current)};(0,a.useEffect)(v);let y=t.realtimeValidation.isInvalid?t.realtimeValidation:h,m="native"===d?t.displayValidation:y;var b;let A=c({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||r,isRequired:null!==(b=e.isRequired)&&void 0!==b?b:t.isRequired,validationBehavior:d,[o.Lf]:{realtimeValidation:y,displayValidation:m,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(e){g.current=e,v()}}},i,n);return{...A,inputProps:{...A.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?l:null,s].filter(Boolean).join(" ")||void 0}}}({...d,children:e.label,value:d.value},E,b):c({...d,children:e.label},(0,p.H)(d),b),T=(0,i.jsx)("span",{...S,className:l({classNames:"_labelContent_lmlip_29",prefixedNames:"label-content"}),children:e.label});return(0,i.jsxs)("div",{...y({classNames:["_root_lmlip_1",{[v]:C,[g]:k}]}),children:[(0,i.jsxs)("label",{className:l({classNames:"_label_lmlip_8",prefixedNames:"label"}),id:A,ref:m,children:[(0,i.jsx)("input",{...x,"aria-describedby":w,"aria-labelledby":A,className:l({classNames:"_input_lmlip_15",prefixedNames:"input"}),ref:b}),T]}),n&&(0,i.jsx)("div",{className:l({classNames:["_description_lmlip_18","description"],prefixedNames:"description"}),id:w,children:n})]})}));y.displayName="Checkbox"},8509:(e,t,n)=>{n.d(t,{$:()=>y,I:()=>v});var i=n(790),r=n(2526),s=n(5987),a=n(2217),l=n(4742),o=n(9461),d=n(3908),c=n(1144),u=n(8356),p=n(1609),f=n(9781);const h="_descriptionBeforeInput_mk25k_34",g="_horizontal_mk25k_63",v=(0,p.createContext)(null),y=(0,p.forwardRef)(((e,t)=>{const{children:n,description:y,descriptionArea:m,errorMessage:b,isRequired:A,label:w,orientation:E="vertical"}=e,{clsx:x,componentProps:C,rootProps:k}=(0,f.Y)("CheckboxGroup",e),S=(0,d.U)(t),T=function(e={}){let[t,n]=(0,u.P)(e.value,e.defaultValue||[],e.onChange),i=!!e.isRequired&&0===t.length,r=(0,p.useRef)(new Map),s=(0,c.KZ)({...e,value:t}),a=s.displayValidation.isInvalid;var l;return{...s,value:t,setValue(t){e.isReadOnly||e.isDisabled||n(t)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected:e=>t.includes(e),addValue(i){e.isReadOnly||e.isDisabled||t.includes(i)||n(t.concat(i))},removeValue(i){e.isReadOnly||e.isDisabled||t.includes(i)&&n(t.filter((e=>e!==i)))},toggleValue(i){e.isReadOnly||e.isDisabled||(t.includes(i)?n(t.filter((e=>e!==i))):n(t.concat(i)))},setInvalid(e,t){let n=new Map(r.current);t.isInvalid?n.set(e,t):n.delete(e),r.current=n,s.updateValidation((0,c.cX)(...n.values()))},validationState:null!==(l=e.validationState)&&void 0!==l?l:a?"invalid":null,isInvalid:a,isRequired:i}}(C),{descriptionProps:P,errorMessageProps:K,groupProps:M,isInvalid:I,labelProps:_,validationDetails:D,validationErrors:R}=function(e,t){let{isDisabled:n,name:i,validationBehavior:d="aria"}=e,{isInvalid:c,validationErrors:u,validationDetails:p}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:g,errorMessageProps:v}=(0,l.M)({...e,labelElementType:"span",isInvalid:c,errorMessage:e.errorMessage||u});r.n.set(t,{name:i,descriptionId:g.id,errorMessageId:v.id,validationBehavior:d});let y=(0,s.$)(e,{labelable:!0}),{focusWithinProps:m}=(0,o.R)({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:(0,a.v)(y,{role:"group","aria-disabled":n||void 0,...h,...m}),labelProps:f,descriptionProps:g,errorMessageProps:v,isInvalid:c,validationErrors:u,validationDetails:p}}(C,T);return(0,i.jsxs)("div",{...k({classNames:["_root_mk25k_1",{[h]:"before-input"===m,[g]:"horizontal"===E}]}),...M,"aria-invalid":I,ref:S,children:[(0,i.jsxs)("span",{..._,className:x({classNames:"_label_mk25k_19",prefixedNames:"label"}),children:[w,A?(0,i.jsx)("span",{className:x({classNames:"_markedRequired_mk25k_27",prefixedNames:"marked-required"}),children:"*"}):""]}),(0,i.jsx)(v.Provider,{value:T,children:(0,i.jsx)("div",{className:x({classNames:"_items_mk25k_57",prefixedNames:"items"}),children:n})}),y&&(0,i.jsx)("div",{...P,className:x({classNames:"_description_mk25k_34",prefixedNames:"description"}),children:y}),I&&(0,i.jsxs)("div",{...K,className:x({classNames:"_errorMessage_mk25k_46",prefixedNames:"error-message"}),children:["function"==typeof b?b({isInvalid:I,validationDetails:D,validationErrors:R}):b,R.join(" ")]})]})}));y.displayName="CheckboxGroup"},9180:(e,t,n)=>{n.d(t,{$:()=>c});var i=n(790),r=n(3908),s=n(1609),a=n(9229),l=n(9781);const o="info",d="default",c=(0,s.forwardRef)(((e,t)=>{const{children:n,isDismissable:s=!1,isDismissed:c,level:u=o,onDismiss:p,variant:f=d}=e,h=(0,r.U)(t),g=(0,r.U)(null),{clsx:v,rootProps:y}=(0,l.Y)("Notice",e),{buttonProps:m}=(0,a.s)({onPress:()=>null==p?void 0:p()},g);return!c&&(0,i.jsxs)("div",{...y({classNames:["notice",`notice-${u}`,"_root_kbeg9_1",{"notice-alt":"alt"===f}]}),ref:h,children:[(0,i.jsx)("div",{className:v({classNames:"_content_kbeg9_4",prefixedNames:"content"}),children:n}),s&&(0,i.jsx)("button",{...m,"aria-label":"object"==typeof s?s.label:"Dismiss notice",className:v({classNames:["notice-dismiss"],prefixedNames:"dismiss-button"}),type:"button"})]})}));c.displayName="Notice"},3677:(e,t,n)=>{n.d(t,{y:()=>d});var i=n(790),r=n(1609),s=n(3908),a=n(7979),l=n(9781);const o=24,d=(0,r.forwardRef)(((e,t)=>{const n=(0,s.U)(t),{componentProps:r,rootProps:d}=(0,l.Y)("Spinner",e),{role:c="status",size:u=o}=r;return(0,i.jsxs)("span",{ref:n,role:c,...d(),children:[(0,i.jsx)(a.s,{children:r.label||"Loading"}),(0,i.jsx)("img",{"aria-hidden":"true",height:u,src:"data:image/gif;base64,R0lGODlhKAAoAPIHAJmZmdPT04qKivHx8fz8/LGxsYCAgP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAwAHACwAAAAAKAAoAEAD1Hi63P4wEmCqtcGFywF5BSeOJFkwW6muGDRQ7AoM0RPAsQFktZKqHsaLxVvkjqPGBJkL9hSEG2v3eT4HgQJAUBEACgGa9TEcUaO4jjjyI1UZhFVxMWAy1weu/ShgpPcyDX+AZhAhhCInTwSHdgVvY5GSk5SSaFMBkJGMgI9jZSIzQoMVojWNI5oHcSWKDksqcz4yqqQiApmXUw1tiCRztr4WAAzCLAx6xiN9C6jKF64Hdc8ieAe9z7Kz1AbaC7DCTjWge6aRUkc7lQ1YWnpeYNbr8xAJACH5BAkDAAcALAIAAgAkACQAAAO7eLqsEwUIYwQoYbTNFwkAJY4iEBBdCpIsaaYNUbQ0WaDwENbmM7MATUdXMwBwikAryCHsakLGz4VcTGkAjrJVaGyL2c2XFfA8a4KqojBZ4sbFLmPQppUP56LhdvjkgQcDei0CdXoPg4k1EIqNNn+OgxKRkYaUl5h6lpk0FpySV59ccKIkGaVQeKiAB6Sod06rJUiun3dWsnIMsaVHHESfTEOQjcIpMph8MAsrxbfLHs1gJ9ApPpMVFxnQCQAh+QQJAwAHACwCAAIAJAAkAAADuni6rBMFCGMEKGG0zRcJACWOIhAQXQqSLGmmDVG0NFmg8BDWZcQCmo6ORwEuBpORcUPY8QTBReCHY8yIhgLHKdIyplhDgHMljRXNcJbcA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nemwPPRaCdEZ0bBGKbBKNZBSQk5Q1kpU2Fpg9F5s2GJ41GaEuGnehfAdwpHVnp5hub6ytVaRdDGibsQ1CsHIMvZNJMQczkIDEb682MMm4LD4nas7AEI8VFxnJCQAh+QQJAwAHACwCAAIAJAAkAAADvHi6rBMFCGMEKGG0zRcJACWOIhAQXQqSLGmmDVG0NFmg8BC6UT0Cmo6OJAgehj4DkEPYjQKNwSQJwDFmLg42WWgEWt3NN1mBKpotgJZMqSrGrGJsyjY7Wcvzlq0eJAUYBXRsFA+EFYciEImMBj2NhxKQh4OTlpdEmH93mnh7nTZwoCQZoy0anKNqB6KmZmimSlatnWYLn5hhDLCabhtIl3kcwJC+KTKTNzAMK5G2yx7NPiZW0L8QkhUXGdAJACH5BAUDAAcALAIAAgAkACQAAAO7eLqsEwUIYwQoYbTNFwkAJY4iEBBdCpIsaaYNUbQ0WaDwELLYs9MATUfXCjAIv1aQg2wVNoMaBYBjzIqcpLMRqBk3WqyiSXvGJlIDVdGtCYSLa9rwDZMEp8NAPgfo5xQWgCQPg4YkEIeKBhGLhxKOhmiRlJUtk5Y0gpk1F5w1GJ80GaItGnacfgdtpRRfZKVrbK10DXyZZkeoi7INRJZLQ7uAwSkykTcwDCuGL8oxzFImVc9QEJAVFxnPCQA7",width:u})]})}));d.displayName="Spinner"},3413:(e,t,n)=>{n.d(t,{d:()=>h});var i=n(790),r=n(1609),s=n(3908),a=n(5353),l=n(6133),o=n(2145),d=n(7979),c=n(1623),u=n(9781);const p="_isSelected_umbom_16",f="_isDisabled_umbom_19",h=(0,r.forwardRef)(((e,t)=>{const{description:n,label:r}=e,h=(0,s.U)(t),g=(0,c.H)(e),{clsx:v,componentProps:y,rootProps:m}=(0,u.Y)("Switch",e),{inputProps:b,isDisabled:A,labelProps:w}=function(e,t,n){let{labelProps:i,inputProps:r,isSelected:s,isPressed:l,isDisabled:o,isReadOnly:d}=(0,a.e)(e,t,n);return{labelProps:i,inputProps:{...r,role:"switch",checked:s},isSelected:s,isPressed:l,isDisabled:o,isReadOnly:d}}({...y,children:r},g,h),{focusProps:E,isFocusVisible:x}=(0,l.o)(),C=n?(0,o.Bi)():void 0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("label",{...m({classNames:["_root_umbom_1",{[f]:A,[p]:g.isSelected}]}),...w,children:[(0,i.jsx)(d.s,{children:(0,i.jsx)("input",{...b,...E,"aria-describedby":C,ref:h})}),(0,i.jsxs)("div",{className:v({classNames:["_input_umbom_7"],prefixedNames:"input"}),children:[(0,i.jsxs)("svg",{"aria-hidden":"true",height:28,width:44,children:[(0,i.jsx)("rect",{className:v({classNames:["_track_umbom_1"]}),height:20,rx:10,width:36,x:4,y:4}),(0,i.jsx)("circle",{className:v({classNames:["_thumb_umbom_4"]}),cx:g.isSelected?30:14,cy:14,r:8}),x&&(0,i.jsx)("rect",{className:v({classNames:["_focusRing_umbom_13"],prefixedNames:"focusRing"}),fill:"none",height:26,rx:14,strokeWidth:2,width:42,x:1,y:1})]}),(0,i.jsx)("span",{className:v({prefixedNames:"label"}),children:r})]})]}),n&&(0,i.jsx)("p",{className:v({classNames:["description"],prefixedNames:"description"}),id:C,children:n})]})}));h.displayName="Switch"},3412:(e,t,n)=>{n.d(t,{o:()=>i});const i=e=>null;i.getCollectionNode=function*(e){const{title:t}=e;yield{props:e,rendered:t,type:"item"}}},6420:(e,t,n)=>{n.d(t,{t:()=>ke});var i=n(790),r=n(1609),s=n(3908);const a=new WeakMap;function l(e,t,n){return e?("string"==typeof t&&(t=t.replace(/\s+/g,"")),`${a.get(e)}-${n}-${t}`):""}class o{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,n;return this.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return null!=e&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return null!=e&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){do{null==(e=this.collection.getKeyAfter(e))&&(e=this.collection.getFirstKey())}while(this.isDisabled(e));return e}getPreviousKey(e){do{null==(e=this.collection.getKeyBefore(e))&&(e=this.collection.getLastKey())}while(this.isDisabled(e));return e}constructor(e,t,n,i=new Set){this.collection=e,this.flipDirection="rtl"===t&&"horizontal"===n,this.disabledKeys=i,this.tabDirection="horizontal"===n}}var d=n(2145),c=n(7061),u=n(2217);const p=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),f=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function h(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return p.has(t.script)}let t=e.split("-")[0];return f.has(t)}var g=n(415);const v=Symbol.for("react-aria.i18n.locale");function y(){let e="undefined"!=typeof window&&window[v]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:h(e)?"rtl":"ltr"}}let m=y(),b=new Set;function A(){m=y();for(let e of b)e(m)}const w=r.createContext(null);function E(){let e=function(){let e=(0,g.wR)(),[t,n]=(0,r.useState)(m);return(0,r.useEffect)((()=>(0===b.size&&window.addEventListener("languagechange",A),b.add(n),()=>{b.delete(n),0===b.size&&window.removeEventListener("languagechange",A)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return(0,r.useContext)(w)||e}var x=n(9202);function C(e){return(0,x.lg)()?e.altKey:e.ctrlKey}function k(e){return(0,x.cX)()?e.metaKey:e.ctrlKey}const S=window.ReactDOM;var T=n(4836);function P(e,t){return"#comment"!==e.nodeName&&function(e){const t=(0,T.m)(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:n,visibility:i}=e.style,r="none"!==n&&"hidden"!==i&&"collapse"!==i;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:i}=t(e);r="none"!==n&&"hidden"!==i&&"collapse"!==i}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||P(e.parentElement,e))}const K=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],M=K.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";K.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const I=K.join(':not([hidden]):not([tabindex="-1"]),');function _(e,t){return!!e&&!!t&&t.some((t=>t.contains(e)))}function D(e,t,n){let i=(null==t?void 0:t.tabbable)?I:M,r=(0,T.T)(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var r;return(null==t||null===(r=t.from)||void 0===r?void 0:r.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(i)||!P(e)||n&&!_(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(r.currentNode=t.from),r}class R{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let i=this.fastMap.get(null!=t?t:null);if(!i)return;let r=new N({scopeRef:e});i.addChild(r),r.parent=i,this.fastMap.set(e,r),n&&(r.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&_(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let i=t.children;n&&(n.removeChild(t),i.size>0&&i.forEach((e=>n&&n.addChild(e)))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new R;var n;for(let i of this.traverse())t.addTreeNode(i.scopeRef,null!==(n=null===(e=i.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,i.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new N({scopeRef:null}),this.fastMap.set(null,this.root)}}class N{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}new R;var B=n(8374),L=n(3831),j=n(2268),F=n(7049);function Q(e,t,n,i){let s=(0,F.J)(n),a=null==n;(0,r.useEffect)((()=>{if(a||!e.current)return;let n=e.current;return n.addEventListener(t,s,i),()=>{n.removeEventListener(t,s,i)}}),[e,t,i,a,s])}function Y(e,t){let n=window.getComputedStyle(e),i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function G(e,t){let n=W(e,t,"left"),i=W(e,t,"top"),r=t.offsetWidth,s=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,{borderTopWidth:o,borderLeftWidth:d}=getComputedStyle(e),c=e.scrollLeft+parseInt(d,10),u=e.scrollTop+parseInt(o,10),p=c+e.clientWidth,f=u+e.clientHeight;n<=a?a=n-parseInt(d,10):n+r>p&&(a+=n+r-p),i<=u?l=i-parseInt(o,10):i+s>f&&(l+=i+s-f),e.scrollLeft=a,e.scrollTop=l}function W(e,t,n){const i="left"===n?"offsetLeft":"offsetTop";let r=0;for(;t.offsetParent&&(r+=t[i],t.offsetParent!==e);){if(t.offsetParent.contains(e)){r-=e[i];break}t=t.offsetParent}return r}function H(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(a).overflow){let t=function(e,t){const n=[];for(;e&&e!==document.documentElement;)Y(e,t)&&n.push(e),e=e.parentElement;return n}(e);for(let n of t)G(n,e)}else{var n;let{left:a,top:l}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:o,top:d}=e.getBoundingClientRect();var i,r,s;(Math.abs(a-o)>1||Math.abs(l-d)>1)&&(null==t||null===(r=t.containingElement)||void 0===r||null===(i=r.scrollIntoView)||void 0===i||i.call(r,{block:"center",inline:"center"}),null===(s=e.scrollIntoView)||void 0===s||s.call(e,{block:"nearest"}))}}}var U=n(5562);function O(e){let{selectionManager:t,keyboardDelegate:n,ref:i,autoFocus:s=!1,shouldFocusWrap:a=!1,disallowEmptySelection:l=!1,disallowSelectAll:o=!1,selectOnFocus:d="replace"===t.selectionBehavior,disallowTypeAhead:c=!1,shouldUseVirtualFocus:p,allowsTabNavigation:f=!1,isVirtualized:h,scrollRef:g=i,linkBehavior:v="action"}=e,{direction:y}=E(),m=(0,L.rd)(),b=(0,r.useRef)({top:0,left:0});Q(g,"scroll",h?null:()=>{b.current={top:g.current.scrollTop,left:g.current.scrollLeft}});const A=(0,r.useRef)(s);(0,r.useEffect)((()=>{if(A.current){let e=null;"first"===s&&(e=n.getFirstKey()),"last"===s&&(e=n.getLastKey());let r=t.selectedKeys;if(r.size)for(let n of r)if(t.canSelectItem(n)){e=n;break}t.setFocused(!0),t.setFocusedKey(e),null!=e||p||(0,B.l)(i.current)}}),[]);let w=(0,r.useRef)(t.focusedKey);(0,r.useEffect)((()=>{if(t.isFocused&&null!=t.focusedKey&&(t.focusedKey!==w.current||A.current)&&(null==g?void 0:g.current)){let e=(0,U.ME)(),n=i.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!n)return;("keyboard"===e||A.current)&&(G(g.current,n),"virtual"!==e&&H(n,{containingElement:i.current}))}!p&&t.isFocused&&null==t.focusedKey&&null!=w.current&&(0,B.l)(i.current),w.current=t.focusedKey,A.current=!1})),Q(i,"react-aria-focus-scope-restore",(e=>{e.preventDefault(),t.setFocused(!0)}));let x,T={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!i.current.contains(e.target))return;const r=(n,i)=>{if(null!=n){if(t.isLink(n)&&"selection"===v&&d&&!C(e)){(0,S.flushSync)((()=>{t.setFocusedKey(n,i)}));let r=g.current.querySelector(`[data-key="${CSS.escape(n.toString())}"]`),s=t.getItemProps(n);return void m.open(r,e,s.href,s.routerOptions)}if(t.setFocusedKey(n,i),t.isLink(n)&&"override"===v)return;e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(n):d&&!C(e)&&t.replaceSelection(n)}};switch(e.key){case"ArrowDown":if(n.getKeyBelow){var s,c,u;let i=null!=t.focusedKey?null===(s=n.getKeyBelow)||void 0===s?void 0:s.call(n,t.focusedKey):null===(c=n.getFirstKey)||void 0===c?void 0:c.call(n);null==i&&a&&(i=null===(u=n.getFirstKey)||void 0===u?void 0:u.call(n,t.focusedKey)),null!=i&&(e.preventDefault(),r(i))}break;case"ArrowUp":if(n.getKeyAbove){var p,h,b;let i=null!=t.focusedKey?null===(p=n.getKeyAbove)||void 0===p?void 0:p.call(n,t.focusedKey):null===(h=n.getLastKey)||void 0===h?void 0:h.call(n);null==i&&a&&(i=null===(b=n.getLastKey)||void 0===b?void 0:b.call(n,t.focusedKey)),null!=i&&(e.preventDefault(),r(i))}break;case"ArrowLeft":if(n.getKeyLeftOf){var A,w,E;let i=null===(A=n.getKeyLeftOf)||void 0===A?void 0:A.call(n,t.focusedKey);null==i&&a&&(i="rtl"===y?null===(w=n.getFirstKey)||void 0===w?void 0:w.call(n,t.focusedKey):null===(E=n.getLastKey)||void 0===E?void 0:E.call(n,t.focusedKey)),null!=i&&(e.preventDefault(),r(i,"rtl"===y?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var x,T,P;let i=null===(x=n.getKeyRightOf)||void 0===x?void 0:x.call(n,t.focusedKey);null==i&&a&&(i="rtl"===y?null===(T=n.getLastKey)||void 0===T?void 0:T.call(n,t.focusedKey):null===(P=n.getFirstKey)||void 0===P?void 0:P.call(n,t.focusedKey)),null!=i&&(e.preventDefault(),r(i,"rtl"===y?"last":"first"))}break;case"Home":if(n.getFirstKey){e.preventDefault();let i=n.getFirstKey(t.focusedKey,k(e));t.setFocusedKey(i),k(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(i):d&&t.replaceSelection(i)}break;case"End":if(n.getLastKey){e.preventDefault();let i=n.getLastKey(t.focusedKey,k(e));t.setFocusedKey(i),k(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(i):d&&t.replaceSelection(i)}break;case"PageDown":if(n.getKeyPageBelow){let i=n.getKeyPageBelow(t.focusedKey);null!=i&&(e.preventDefault(),r(i))}break;case"PageUp":if(n.getKeyPageAbove){let i=n.getKeyPageAbove(t.focusedKey);null!=i&&(e.preventDefault(),r(i))}break;case"a":k(e)&&"multiple"===t.selectionMode&&!0!==o&&(e.preventDefault(),t.selectAll());break;case"Escape":l||0===t.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(e.shiftKey)i.current.focus();else{let e,t,n=D(i.current,{tabbable:!0});do{t=n.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&(0,j.e)(e)}break}}},onFocus:e=>{if(t.isFocused)e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),null==t.focusedKey){let i=e=>{null!=e&&(t.setFocusedKey(e),d&&t.replaceSelection(e))},a=e.relatedTarget;var r,s;a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?i(null!==(r=t.lastSelectedKey)&&void 0!==r?r:n.getLastKey()):i(null!==(s=t.firstSelectedKey)&&void 0!==s?s:n.getFirstKey())}else h||(g.current.scrollTop=b.current.top,g.current.scrollLeft=b.current.left);if(null!=t.focusedKey){let e=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);e&&(e.contains(document.activeElement)||(0,j.e)(e),"keyboard"===(0,U.ME)()&&H(e,{containingElement:i.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){g.current===e.target&&e.preventDefault()}},{typeSelectProps:P}=function(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:i}=e,s=(0,r.useRef)({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let r=function(e){return 1!==e.length&&/^[A-Z]/i.test(e)?"":e}(e.key);if(!r||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target))return;" "===r&&s.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),s.search+=r;let a=t.getKeyForSearch(s.search,n.focusedKey);null==a&&(a=t.getKeyForSearch(s.search)),null!=a&&(n.setFocusedKey(a),i&&i(a)),clearTimeout(s.timeout),s.timeout=setTimeout((()=>{s.search=""}),1e3)}:null}}}({keyboardDelegate:n,selectionManager:t});return c||(T=(0,u.v)(P,T)),p||(x=null==t.focusedKey?0:-1),{collectionProps:{...T,tabIndex:x}}}class J{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var n;return t&&null!==(n=t.prevKey)&&void 0!==n?n:null}getKeyAfter(e){let t=this.keyMap.get(e);var n;return t&&null!==(n=t.nextKey)&&void 0!==n?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let n of e.childNodes)t(n)};for(let n of e)t(n);let n=null,i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),n=t,n.nextKey=void 0;var r;this.lastKey=null!==(r=null==n?void 0:n.key)&&void 0!==r?r:null}}class V extends Set{constructor(e,t,n){super(e),e instanceof V?(this.anchorKey=null!=t?t:e.anchorKey,this.currentKey=null!=n?n:e.currentKey):(this.anchorKey=t,this.currentKey=n)}}var q=n(8356);function z(e,t){return e?"all"===e?"all":new V(e):t}function Z(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let i=[...X(e,t),t],r=[...X(e,n),n],s=i.slice(0,r.length).findIndex(((e,t)=>e!==r[t]));return-1!==s?(t=i[s],n=r[s],t.index-n.index):i.findIndex((e=>e===n))>=0?1:(r.findIndex((e=>e===t)),-1)}function X(e,t){let n=[];for(;null!=(null==t?void 0:t.parentKey);)t=e.getItem(t.parentKey),n.unshift(t);return n}class ${get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&Z(this.collection,n,e)<0)&&(e=n)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&Z(this.collection,n,e)>0)&&(e=n)}return null==e?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new V([e],e,e);else{let r=this.state.selectedKeys;var n;let s=null!==(n=r.anchorKey)&&void 0!==n?n:e;var i;t=new V(r,s,e);for(let n of this.getKeyRange(s,null!==(i=r.currentKey)&&void 0!==i?i:e))t.delete(n);for(let n of this.getKeyRange(e,s))this.canSelectItem(n)&&t.add(n)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let n=this.collection.getItem(e),i=this.collection.getItem(t);return n&&i?Z(this.collection,n,i)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if(null===(n=this.layoutDelegate)||void 0===n?void 0:n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let i=[],r=e;for(;null!=r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&i.push(r),r===t)return i;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let t=new V("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):this.canSelectItem(e)&&(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){if("none"===this.selectionMode)return;if(null==(e=this.getKey(e)))return;let t=this.canSelectItem(e)?new V([e],e,e):new V;this.state.setSelectedKeys(t)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new V;for(let n of e)if(n=this.getKey(n),null!=n&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;null!=n;){if(this.canSelectItem(n)){let a=this.collection.getItem(n);"item"===a.type&&e.push(n),a.hasChildNodes&&(this.allowsCellSelection||"item"!==a.type)&&t((r=a,s=this.collection,i="function"==typeof s.getChildren?s.getChildren(r.key):r.childNodes,function(e){let t=0;for(let n of e){if(0===t)return n;t++}}(i)).key)}n=this.collection.getKeyAfter(n)}var i,r,s};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new V)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||(null==n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)||"cell"===n.type&&!this.allowsCellSelection)}isDisabled(e){var t,n;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,n;return!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}constructor(e,t,n){var i;this.collection=e,this.state=t,this.allowsCellSelection=null!==(i=null==n?void 0:n.allowsCellSelection)&&void 0!==i&&i,this._isSelectAll=null,this.layoutDelegate=(null==n?void 0:n.layoutDelegate)||null}}class ee{build(e,t){return this.context=t,te((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:t,items:n}=e;if(r.isValidElement(t)&&t.type===r.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if("function"==typeof t){if(!n)throw new Error("props.children was a function but props.items is missing");for(let n of e.items)yield*this.getFullNode({value:n},{renderer:t})}else{let e=[];r.Children.forEach(t,(t=>{e.push(t)}));let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,i){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${i}${t.key}`;let r=t.value;if(null!=r){var s;let e=null!==(s=r.key)&&void 0!==s?s:r.id;if(null==e)throw new Error("No key found for item");return e}return i?`${i}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,i){if(r.isValidElement(e.element)&&e.element.type===r.Fragment){let s=[];r.Children.forEach(e.element.props.children,(e=>{s.push(e)}));let a=e.index;for(const e of s)yield*this.getFullNode({element:e,index:a++},t,n,i);return}let s=e.element;if(!s&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context)))return n.index=e.index,n.parentKey=i?i.key:null,void(yield n);s=t.renderer(e.value)}if(r.isValidElement(s)){let r=s.type;if("function"!=typeof r&&"function"!=typeof r.getCollectionNode){let e="function"==typeof s.type?s.type.name:s.type;throw new Error(`Unknown element <${e}> in collection.`)}let a=r.getCollectionNode(s.props,this.context),l=e.index,o=a.next();for(;!o.done&&o.value;){let r=o.value;e.index=l;let d=r.key;d||(d=r.element?null:this.getKey(s,e,t,n));let c=[...this.getFullNode({...r,key:d,index:l,wrapper:ne(e.wrapper,r.wrapper)},this.getChildState(t,r),n?`${n}${s.key}`:s.key,i)];for(let t of c){if(t.value=r.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw new Error(`Unsupported type <${ie(t.type)}> in <${ie(i.type)}>. Only <${ie(e.type)}> is supported.`);l++,yield t}o=a.next(c)}return}if(null==e.key)return;let a=this,l={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:e.value,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:te((function*(){if(!e.hasChildNodes)return;let n=0;for(let i of e.childNodes()){null!=i.key&&(i.key=`${l.key}${i.key}`),i.index=n;let e=a.getFullNode(i,a.getChildState(t,i),l.key,l);for(let t of e)n++,yield t}}))};yield l}constructor(){this.cache=new WeakMap}}function te(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||(n=e());for(let e of n)t.push(e),yield e}}}function ne(e,t){return e&&t?n=>e(t(n)):e||t||void 0}function ie(e){return e[0].toUpperCase()+e.slice(1)}function re(e){let{filter:t,layoutDelegate:n}=e,i=function(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:i,selectionBehavior:s="toggle",disabledBehavior:a="all"}=e,l=(0,r.useRef)(!1),[,o]=(0,r.useState)(!1),d=(0,r.useRef)(null),c=(0,r.useRef)(null),[,u]=(0,r.useState)(null),p=(0,r.useMemo)((()=>z(e.selectedKeys)),[e.selectedKeys]),f=(0,r.useMemo)((()=>z(e.defaultSelectedKeys,new V)),[e.defaultSelectedKeys]),[h,g]=(0,q.P)(p,f,e.onSelectionChange),v=(0,r.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[y,m]=(0,r.useState)(s);"replace"===s&&"toggle"===y&&"object"==typeof h&&0===h.size&&m("replace");let b=(0,r.useRef)(s);return(0,r.useEffect)((()=>{s!==b.current&&(m(s),b.current=s)}),[s]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(e){l.current=e,o(e)},get focusedKey(){return d.current},get childFocusStrategy(){return c.current},setFocusedKey(e,t="first"){d.current=e,c.current=t,u(e)},selectedKeys:h,setSelectedKeys(e){!i&&function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,h)||g(e)},disabledKeys:v,disabledBehavior:a}}(e),s=(0,r.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),a=(0,r.useCallback)((e=>new J(t?t(e):e)),[t]),l=(0,r.useMemo)((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),o=function(e,t,n){let i=(0,r.useMemo)((()=>new ee),[]),{children:s,items:a,collection:l}=e;return(0,r.useMemo)((()=>{if(l)return l;let e=i.build({children:s,items:a},n);return t(e)}),[i,s,a,l,n,t])}(e,a,l),d=(0,r.useMemo)((()=>new $(o,i,{layoutDelegate:n})),[o,i,n]);const c=(0,r.useRef)(null);return(0,r.useEffect)((()=>{if(null!=i.focusedKey&&!o.getItem(i.focusedKey)&&c.current){const u=c.current.getItem(i.focusedKey),p=[...c.current.getKeys()].map((e=>{const t=c.current.getItem(e);return"item"===(null==t?void 0:t.type)?t:null})).filter((e=>null!==e)),f=[...o.getKeys()].map((e=>{const t=o.getItem(e);return"item"===(null==t?void 0:t.type)?t:null})).filter((e=>null!==e));var e,t;const h=(null!==(e=null==p?void 0:p.length)&&void 0!==e?e:0)-(null!==(t=null==f?void 0:f.length)&&void 0!==t?t:0);var n,r,s;let g=Math.min(h>1?Math.max((null!==(n=null==u?void 0:u.index)&&void 0!==n?n:0)-h+1,0):null!==(r=null==u?void 0:u.index)&&void 0!==r?r:0,(null!==(s=null==f?void 0:f.length)&&void 0!==s?s:0)-1),v=null,y=!1;for(;g>=0;){if(!d.isDisabled(f[g].key)){v=f[g];break}var a,l;g<f.length-1&&!y?g++:(y=!0,g>(null!==(a=null==u?void 0:u.index)&&void 0!==a?a:0)&&(g=null!==(l=null==u?void 0:u.index)&&void 0!==l?l:0),g--)}i.setFocusedKey(v?v.key:null)}c.current=o}),[o,d,i,i.focusedKey]),{collection:o,disabledKeys:s,selectionManager:d}}function se(e){var t;let n=function(e){var t;let[n,i]=(0,q.P)(e.selectedKey,null!==(t=e.defaultSelectedKey)&&void 0!==t?t:null,e.onSelectionChange),s=(0,r.useMemo)((()=>null!=n?[n]:[]),[n]),{collection:a,disabledKeys:l,selectionManager:o}=re({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:s,onSelectionChange:t=>{if("all"===t)return;var r;let s=null!==(r=t.values().next().value)&&void 0!==r?r:null;s===n&&e.onSelectionChange&&e.onSelectionChange(s),i(s)}}),d=null!=n?a.getItem(n):null;return{collection:a,disabledKeys:l,selectionManager:o,selectedKey:n,setSelectedKey:i,selectedItem:d}}({...e,suppressTextValueWarning:!0,defaultSelectedKey:null!==(t=e.defaultSelectedKey)&&void 0!==t?t:ae(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:i,collection:s,selectedKey:a}=n,l=(0,r.useRef)(a);return(0,r.useEffect)((()=>{let e=a;!i.isEmpty&&s.getItem(e)||(e=ae(s,n.disabledKeys),null!=e&&i.setSelectedKeys([e])),(null!=e&&null==i.focusedKey||!i.isFocused&&e!==l.current)&&i.setFocusedKey(e),l.current=e})),{...n,isDisabled:e.isDisabled||!1}}function ae(e,t){let n=null;if(e){var i,r,s,a;for(n=e.getFirstKey();(t.has(n)||(null===(r=e.getItem(n))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.isDisabled))&&n!==e.getLastKey();)n=e.getKeyAfter(n);(t.has(n)||(null===(a=e.getItem(n))||void 0===a||null===(s=a.props)||void 0===s?void 0:s.isDisabled))&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}var le=n(9781),oe=n(5987),de=n(364),ce=n(6948),ue=n(9953);let pe=0;const fe=new Map;const he=500;function ge(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:i,onLongPress:s,threshold:a=he,accessibilityDescription:l}=e;const o=(0,r.useRef)(void 0);let{addGlobalListener:d,removeGlobalListener:c}=(0,ce.A)(),{pressProps:p}=(0,de.d)({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),o.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),s&&s({...e,type:"longpress"}),o.current=void 0}),a),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};d(e.target,"contextmenu",t,{once:!0}),d(window,"pointerup",(()=>{setTimeout((()=>{c(e.target,"contextmenu",t)}),30)}),{once:!0})}},onPressEnd(e){o.current&&clearTimeout(o.current),!i||"mouse"!==e.pointerType&&"touch"!==e.pointerType||i({...e,type:"longpressend"})}}),f=function(e){let[t,n]=(0,r.useState)();return(0,ue.N)((()=>{if(!e)return;let t=fe.get(e);if(t)n(t.element.id);else{let i="react-aria-description-"+pe++;n(i);let r=document.createElement("div");r.id=i,r.style.display="none",r.textContent=e,document.body.appendChild(r),t={refCount:0,element:r},fe.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),fe.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}(s&&!t?l:void 0);return{longPressProps:(0,u.v)(p,f)}}function ve(){let e=window.event;return"Enter"===(null==e?void 0:e.key)}function ye(){let e=window.event;return" "===(null==e?void 0:e.key)||"Space"===(null==e?void 0:e.code)}function me(e,t,n){let{key:i,isDisabled:s,shouldSelectOnPressUp:a}=e,{selectionManager:o,selectedKey:d}=t,c=i===d,p=s||t.isDisabled||t.selectionManager.isDisabled(i),{itemProps:f,isPressed:h}=function(e){let{selectionManager:t,key:n,ref:i,shouldSelectOnPressUp:s,shouldUseVirtualFocus:a,focus:l,isDisabled:o,onAction:d,allowsDifferentPressOrigin:c,linkBehavior:p="action"}=e,f=(0,L.rd)(),h=e=>{if("keyboard"===e.pointerType&&C(e))t.toggleSelection(n);else{if("none"===t.selectionMode)return;if(t.isLink(n)){if("selection"===p){let r=t.getItemProps(n);return f.open(i.current,e,r.href,r.routerOptions),void t.setSelectedKeys(t.selectedKeys)}if("override"===p||"none"===p)return}"single"===t.selectionMode?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):e&&e.shiftKey?t.extendSelection(n):"toggle"===t.selectionBehavior||e&&(k(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?t.toggleSelection(n):t.replaceSelection(n)}};(0,r.useEffect)((()=>{n===t.focusedKey&&t.isFocused&&!a&&(l?l():document.activeElement!==i.current&&(0,B.l)(i.current))}),[i,n,t.focusedKey,t.childFocusStrategy,t.isFocused,a]),o=o||t.isDisabled(n);let g={};a||o?o&&(g.onMouseDown=e=>{e.preventDefault()}):g={tabIndex:n===t.focusedKey?0:-1,onFocus(e){e.target===i.current&&t.setFocusedKey(n)}};let v=t.isLink(n)&&"override"===p,y=t.isLink(n)&&"selection"!==p&&"none"!==p,m=!o&&t.canSelectItem(n)&&!v,b=(d||y)&&!o,A=b&&("replace"===t.selectionBehavior?!m:!m||t.isEmpty),w=b&&m&&"replace"===t.selectionBehavior,E=A||w,x=(0,r.useRef)(null),S=E&&m,T=(0,r.useRef)(!1),P=(0,r.useRef)(!1),K=e=>{if(d&&d(),y){let r=t.getItemProps(n);f.open(i.current,e,r.href,r.routerOptions)}},M={};s?(M.onPressStart=e=>{x.current=e.pointerType,T.current=S,"keyboard"!==e.pointerType||E&&!ye()||h(e)},c?(M.onPressUp=A?null:e=>{"keyboard"!==e.pointerType&&m&&h(e)},M.onPress=A?K:null):M.onPress=e=>{if(A||w&&"mouse"!==e.pointerType){if("keyboard"===e.pointerType&&!ve())return;K(e)}else"keyboard"!==e.pointerType&&m&&h(e)}):(M.onPressStart=e=>{x.current=e.pointerType,T.current=S,P.current=A,m&&("mouse"===e.pointerType&&!A||"keyboard"===e.pointerType&&(!b||ye()))&&h(e)},M.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&E&&ve()||"mouse"===e.pointerType&&P.current)&&(E?K(e):m&&h(e))}),g["data-key"]=n,M.preventFocusOnPress=a;let{pressProps:I,isPressed:_}=(0,de.d)(M),D=w?e=>{"mouse"===x.current&&(e.stopPropagation(),e.preventDefault(),K(e))}:void 0,{longPressProps:R}=ge({isDisabled:!S,onLongPress(e){"touch"===e.pointerType&&(h(e),t.setSelectionBehavior("toggle"))}}),N=t.isLink(n)?e=>{L.Fe.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,u.v)(g,m||A?I:{},S?R:{},{onDoubleClick:D,onDragStartCapture:e=>{"touch"===x.current&&T.current&&e.preventDefault()},onClick:N}),isPressed:_,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:o,allowsSelection:m,hasAction:E}}({selectionManager:o,key:i,ref:n,isDisabled:p,shouldSelectOnPressUp:a,linkBehavior:"selection"}),g=l(t,i,"tab"),v=l(t,i,"tabpanel"),{tabIndex:y}=f,m=t.collection.getItem(i),b=(0,oe.$)(null==m?void 0:m.props,{labelable:!0});delete b.id;let A=(0,L._h)(null==m?void 0:m.props);return{tabProps:(0,u.v)(b,A,f,{id:g,"aria-selected":c,"aria-disabled":p||void 0,"aria-controls":c?v:void 0,tabIndex:p?void 0:y,role:"tab"}),isSelected:c,isDisabled:p,isPressed:h}}var be=n(6133);const Ae={root:"_root_1fp5f_1",tabItems:"_tabItems_1fp5f_1",tabItem:"_tabItem_1fp5f_1"};var we=n(1034);const Ee=e=>{const{item:t,state:n}=e,{key:s,rendered:a}=t,l=(0,r.useRef)(null),{componentProps:o,rootProps:d}=(0,le.Y)("Tabs",e),{isDisabled:c,isSelected:u,tabProps:p}=me({key:s},n,l),{focusProps:f,isFocusVisible:h}=(0,be.o)(o),{navigate:g,url:v}=(0,we.T)();if(g&&v){const e=new URL(v);return null==e||e.searchParams.set(g,`${s}`),(0,i.jsx)("a",{...f,...d({classNames:Ae.tabItem,prefixedNames:"item"}),"data-disabled":c||void 0,"data-focus-visible":h||void 0,"data-selected":u||void 0,href:`${null==e?void 0:e.toString()}`,ref:l,children:a})}return(0,i.jsx)("div",{...d({classNames:Ae.tabItem,prefixedNames:"item"}),...p,...f,"data-disabled":c||void 0,"data-focus-visible":h||void 0,"data-selected":u||void 0,ref:l,children:a})};function xe(e,t,n){let i=function(e,t){let n=null==t?void 0:t.isDisabled,[i,s]=(0,r.useState)(!1);return(0,ue.N)((()=>{if((null==e?void 0:e.current)&&!n){let t=()=>{if(e.current){let t=D(e.current,{tabbable:!0});s(!!t.nextNode())}};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{n.disconnect()}}})),!n&&i}(n)?void 0:0;var s;const a=l(t,null!==(s=e.id)&&void 0!==s?s:null==t?void 0:t.selectedKey,"tabpanel"),o=(0,c.b)({...e,id:a,"aria-labelledby":l(t,null==t?void 0:t.selectedKey,"tab")});return{tabPanelProps:(0,u.v)(o,{tabIndex:i,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}const Ce=e=>{var t;const{state:n}=e,s=(0,r.useRef)(null),{tabPanelProps:a}=xe(e,n,s),{clsx:l}=(0,le.Y)("Tabs",e);return(0,i.jsx)("div",{...a,className:l({classNames:Ae.tabPanel,prefixedNames:"panel"}),ref:s,children:null==(t=n.selectedItem)?void 0:t.props.children})},ke=(0,r.forwardRef)(((e,t)=>{var n;const l=(0,s.U)(t),{context:p,navigate:f}=(0,we.T)(),{clsx:h,componentProps:g,rootProps:v}=(0,le.Y)("Tabs",e),y=se(g);let{orientation:m}=e;m="settings"===p?"horizontal":m;const{tabListProps:b}=function(e,t,n){let{orientation:i="horizontal",keyboardActivation:s="automatic"}=e,{collection:l,selectionManager:p,disabledKeys:f}=t,{direction:h}=E(),g=(0,r.useMemo)((()=>new o(l,h,i,f)),[l,f,i,h]),{collectionProps:v}=O({ref:n,selectionManager:p,keyboardDelegate:g,selectOnFocus:"automatic"===s,disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),y=(0,d.Bi)();a.set(t,y);let m=(0,c.b)({...e,id:y});return{tabListProps:{...(0,u.v)(v,m),role:"tablist","aria-orientation":i,tabIndex:void 0}}}({...g,keyboardActivation:f?"manual":void 0,orientation:m},y,l);return(0,i.jsxs)("div",{...v({classNames:Ae.root}),"data-context":p,"data-orientation":m,children:[(0,i.jsx)("div",{...b,className:h({classNames:Ae.tabItems,prefixedNames:"items"}),ref:l,children:[...y.collection].map((e=>(0,i.jsx)(Ee,{item:e,state:y},e.key)))}),(0,i.jsx)(Ce,{state:y},null==(n=y.selectedItem)?void 0:n.key)]})}));ke.displayName="Tabs"},1034:(e,t,n)=>{n.d(t,{O:()=>a,T:()=>l});var i=n(790),r=n(1609);const s=(0,r.createContext)({context:"settings"}),a=e=>{const{children:t,context:n,url:r}=e;let a="tab";return"string"==typeof e.navigate&&(a=e.navigate),(0,i.jsx)(s.Provider,{value:{context:n,navigate:a,url:r},children:t})},l=()=>(0,r.useContext)(s)},3682:(e,t,n)=>{n.d(t,{A:()=>y});var i=n(790),r=n(3908),s=n(1609),a=n(5987),l=n(8343),o=n(4836),d=n(2217),c=n(8356),u=n(4742),p=n(9681),f=n(8868),h=n(1144),g=n(9781);const v={root:"_root_ptfvg_1",inputWrapper:"_inputWrapper_ptfvg_6",input:"_input_ptfvg_6",invalid:"_invalid_ptfvg_14",label:"_label_ptfvg_19",markedRequired:"_markedRequired_ptfvg_27",descriptionBeforeInput:"_descriptionBeforeInput_ptfvg_34",description:"_description_ptfvg_34",errorMessage:"_errorMessage_ptfvg_46"},y=(0,s.forwardRef)(((e,t)=>{var n,y,m,b,A,w;const{description:E,descriptionArea:x,errorMessage:C,isDisabled:k,isRequired:S,label:T,max:P,min:K,prefix:M,step:I,suffix:_}=e;let D=e.className;const R=null==(n=e.className)?void 0:n.includes("code"),N=null==(y=e.className)?void 0:y.includes("regular-text"),B=null==(m=e.className)?void 0:m.includes("small-text");N&&(D=null==(b=e.className)?void 0:b.replace("regular-text","")),B&&(D=null==(A=e.className)?void 0:A.replace("small-text","")),R&&(D=null==(w=e.className)?void 0:w.replace("code",""));const L=(0,r.U)(t),{clsx:j,componentProps:F,rootProps:Q}=(0,g.Y)("TextField",{...e,className:D}),{descriptionProps:Y,errorMessageProps:G,inputProps:W,isInvalid:H,labelProps:U,validationDetails:O,validationErrors:J}=function(e,t){let{inputElementType:n="input",isDisabled:i=!1,isRequired:r=!1,isReadOnly:g=!1,type:v="text",validationBehavior:y="aria"}=e,[m,b]=(0,c.P)(e.value,e.defaultValue||"",e.onChange),{focusableProps:A}=(0,p.W)(e,t),w=(0,h.KZ)({...e,value:m}),{isInvalid:E,validationErrors:x,validationDetails:C}=w.displayValidation,{labelProps:k,fieldProps:S,descriptionProps:T,errorMessageProps:P}=(0,u.M)({...e,isInvalid:E,errorMessage:e.errorMessage||x}),K=(0,a.$)(e,{labelable:!0});const M={type:v,pattern:e.pattern};return(0,l.F)(t,m,b),(0,f.X)(e,w,t),(0,s.useEffect)((()=>{if(t.current instanceof(0,o.m)(t.current).HTMLTextAreaElement){let e=t.current;Object.defineProperty(e,"defaultValue",{get:()=>e.value,set:()=>{},configurable:!0})}}),[t]),{labelProps:k,inputProps:(0,d.v)(K,"input"===n?M:void 0,{disabled:i,readOnly:g,required:r&&"native"===y,"aria-required":r&&"aria"===y||void 0,"aria-invalid":E||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:m,onChange:e=>b(e.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...A,...S}),descriptionProps:T,errorMessageProps:P,isInvalid:E,validationErrors:x,validationDetails:C}}(F,L),{errorMessageList:V}=function(e){const t=[],{isInvalid:n,validationDetails:i,validationErrors:r}=e,{errorMessage:s}=e,a="function"==typeof s?s({isInvalid:n,validationDetails:i,validationErrors:r}):s;return a&&t.push(a),t.push(...r),{errorMessageList:t||[]}}({errorMessage:C,isInvalid:H,validationDetails:O,validationErrors:J});return(0,i.jsxs)("div",{...Q({classNames:[v.root,{[v.descriptionBeforeInput]:"before-input"===x,[v.disabled]:k,[v.invalid]:H}]}),children:[T&&(0,i.jsxs)("label",{...U,className:j({classNames:v.label,prefixedNames:"label"}),children:[T,S?(0,i.jsx)("span",{className:j({classNames:v.markedRequired,prefixedNames:"marked-required"}),children:"*"}):""]}),(0,i.jsxs)("div",{className:j({classNames:v.inputWrapper,prefixedNames:"input-wrapper"}),children:[M&&(0,i.jsx)("div",{className:j({classNames:v.prefix,prefixedNames:"prefix"}),children:M}),(0,i.jsx)("input",{...W,className:j({classNames:{[v.input]:!0,code:R,"regular-text":N,"small-text":B},prefixedNames:"input"}),max:P,min:K,ref:L,step:I}),_&&(0,i.jsx)("div",{className:j({classNames:v.suffix,prefixedNames:"suffix"}),children:_})]}),V.length>=1&&(0,i.jsx)("div",{...G,className:j({classNames:v.errorMessage,prefixedNames:"error-message"}),children:V.map(((e,t)=>(0,i.jsx)("p",{children:e},t)))}),E&&(0,i.jsx)("p",{...Y,className:j({classNames:[v.description,"description"],prefixedNames:"description"}),children:E})]})}));y.displayName="TextField"},9781:(e,t,n)=>{n.d(t,{Y:()=>r});var i=n(4164);function r(e,t){const{className:n,"data-testid":r,id:s,style:a,...l}=t||{},{clsx:o}=function(e){const t=`kubrick-${e}-`;return{clsx:e=>{const{classNames:n="",prefixedNames:r=""}=e,s=function(e){return"string"==typeof e?e.split(" "):e.map((e=>e.split(" "))).flat()}(r).map((e=>e&&`${t}${e}`)),a=(0,i.A)(s,n);return""!==a.trim()?a:void 0}}}(e);return{clsx:o,componentProps:{...l,id:s},rootProps(t){const{classNames:i,prefixedNames:l}=t||{},d={...a,...(null==t?void 0:t.styles)||{}};return{className:o({classNames:[i,n],prefixedNames:l||"root"}),"data-testid":r,id:s?`${s}-${e}-root`:void 0,style:Object.keys(d).length>=1?d:void 0}}}}},4164:(e,t,n)=>{function i(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}n.d(t,{A:()=>r});const r=function(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=i(e))&&(r&&(r+=" "),r+=t);return r}}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return r[e](n,n.exports,a),n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",i=e=>{e&&e.d<1&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},a.a=(r,s,a)=>{var l;a&&((l=[]).d=-1);var o,d,c,u=new Set,p=r.exports,f=new Promise(((e,t)=>{c=t,d=e}));f[t]=p,f[e]=e=>(l&&e(l),u.forEach(e),f.catch((e=>{}))),r.exports=f,s((r=>{var s;o=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var s=[];s.d=0,r.then((e=>{a[t]=e,i(s)}),(e=>{a[n]=e,i(s)}));var a={};return a[e]=e=>e(s),a}}var l={};return l[e]=e=>{},l[t]=r,l})))(r);var a=()=>o.map((e=>{if(e[n])throw e[n];return e[t]})),d=new Promise((t=>{(s=()=>t(a)).r=0;var n=e=>e!==l&&!u.has(e)&&(u.add(e),e&&!e.d&&(s.r++,e.push(s)));o.map((t=>t[e](n)))}));return s.r?d:a()}),(e=>(e?c(f[n]=e):d(p),i(l)))),l&&l.d<0&&(l.d=0)},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a(341)})();
     1(()=>{"use strict";var e,t,n,i,r={6858:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{Y:()=>p});var r=n(7723),s=n(1034),a=n(6420),l=n(3412),o=n(9662),d=(n(6044),n(4709)),c=n(790),u=e([o,d]);[o,d]=u.then?(await u)():u;const p=()=>{const{inlineData:e}=(0,d.Mp)();return(0,c.jsx)(s.O,{navigate:!0,url:e.settingPage,children:(0,c.jsxs)(a.t,{selectedKey:e.settingPageTab||void 0,children:[(0,c.jsx)(l.o,{title:(0,r.__)("General","syntatis-feature-flipper"),children:(0,c.jsx)(o.a5,{})},"general"),(0,c.jsx)(l.o,{title:(0,r.__)("Admin","syntatis-feature-flipper"),children:(0,c.jsx)(o.nQ,{})},"admin"),(0,c.jsx)(l.o,{title:(0,r.__)("Media","syntatis-feature-flipper"),children:(0,c.jsx)(o.Ct,{})},"media"),(0,c.jsx)(l.o,{title:(0,r.__)("Assets","syntatis-feature-flipper"),children:(0,c.jsx)(o.Bh,{})},"assets"),(0,c.jsx)(l.o,{title:(0,r.__)("Webpage","syntatis-feature-flipper"),children:(0,c.jsx)(o.p2,{})},"webpage"),(0,c.jsx)(l.o,{title:(0,r.__)("Security","syntatis-feature-flipper"),children:(0,c.jsx)(o.SV,{})},"security")]})})};i()}catch(e){i(e)}}))},3951:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{L:()=>o});var r=n(8740),s=n(1270),a=n(790),l=e([r]);r=(l.then?(await l)():l)[0];const o=({children:e,title:t,description:n})=>{const{updating:i}=(0,r.M)();return(0,a.jsxs)("div",{className:s.A.section,children:[t?(0,a.jsx)("h2",{className:`title ${s.A.title}`,children:t}):null,n?(0,a.jsx)("p",{className:s.A.description,children:n}):null,(0,a.jsx)("fieldset",{disabled:i,children:(0,a.jsx)("table",{className:"form-table",role:"presentation",children:(0,a.jsx)("tbody",{children:e})})})]})};i()}catch(e){i(e)}}))},3397:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{c:()=>c,l:()=>u});var r=n(6087),s=n(3731),a=n(8740),l=n(6017),o=n(790),d=e([s,a,l]);[s,a,l]=d.then?(await d)():d;const c=(0,r.createContext)(),u=({children:e})=>{const t=(0,r.useRef)(),{submitValues:n,optionPrefix:i,values:d,setStatus:u}=(0,a.M)(),[p,f]=(0,r.useState)({});return(0,r.useEffect)((()=>{if(!t)return;const e=t.current,n={};for(const t in e.elements){const r=e.elements[t];r.name!==i&&r.name?.startsWith(i)&&(n[r.name]=d[r.name])}f(n)}),[]),(0,o.jsx)(c.Provider,{value:{setFieldsetValues:(e,t)=>{f({...p,[`${i}${e}`]:t})}},children:(0,o.jsxs)("form",{ref:t,method:"POST",onSubmit:e=>{e.preventDefault();const t={};for(const e in p)e in d&&d[e]!==p[e]&&(t[e]=p[e]);0!==Object.keys(t).length?n(t):u("no-change")},children:[(0,o.jsx)(l.N,{}),e,(0,o.jsx)(s.b,{})]})})};i()}catch(e){i(e)}}))},6017:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{N:()=>f});var r=n(9180),s=n(7723),a=n(8740),l=n(790),o=e([a]);a=(o.then?(await o)():o)[0];const d={success:(0,s.__)("Settings saved.","syntatis-feature-flipper"),error:(0,s.__)("Settings failed to save.","syntatis-feature-flipper"),"no-change":(0,s.__)("No changes were made.","syntatis-feature-flipper")},c={success:"success",error:"error","no-change":"info"};function u(e){return d[e]||""}function p(e){return c[e]||"info"}const f=()=>{const{updating:e,status:t,setStatus:n}=(0,a.M)();if(e)return null;const i=u(t);return t&&i&&(0,l.jsx)(r.$,{isDismissable:!0,level:p(t),onDismiss:()=>n(null),children:(0,l.jsx)("strong",{children:i})})};i()}catch(h){i(h)}}))},5143:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{Z:()=>d,l:()=>o});var r=n(6087),s=n(4427),a=n(790),l=e([s]);s=(l.then?(await l)():l)[0];const o=(0,r.createContext)(),d=({children:e,inlineData:t})=>{const n="syntatis_feature_flipper_",i="syntatis-feature-flipper-",{status:r,updating:l,values:d,errorMessages:c,setStatus:u,setValues:p,submitValues:f,getOption:h,initialValues:g,updatedValues:v}=(0,s.t)();return(0,a.jsx)(o.Provider,{value:{errorMessages:c,status:r,updating:l,values:d,optionPrefix:n,setStatus:u,submitValues:f,initialValues:g,inlineData:t,updatedValues:v,setValues:(e,t)=>{p({...d,[`${n}${e}`]:t})},getOption:e=>h(`${n}${e}`),labelProps:e=>({htmlFor:`${i}${e}`,id:`${i}${e}-label`}),inputProps:e=>{const t=e.replaceAll("_","-");return{"aria-labelledby":`${i}${t}-label`,id:`${i}${t}`,name:`${n}${e}`}}},children:e})};i()}catch(e){i(e)}}))},3731:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{b:()=>c});var r=n(7723),s=n(1152),a=n(3677),l=n(8740),o=n(790),d=e([l]);l=(d.then?(await d)():d)[0];const c=()=>{const{updating:e}=(0,l.M)();return(0,o.jsx)("div",{className:"submit",children:(0,o.jsx)(s.$,{isDisabled:e,prefix:e&&(0,o.jsx)(a.y,{}),type:"submit",children:e?(0,r.__)("Saving Changes","syntatis-feature-flipper"):(0,r.__)("Save Changes","syntatis-feature-flipper")})})};i()}catch(e){i(e)}}))},4709:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{LB:()=>s.L,Mp:()=>o.M,Z6:()=>l.Z,lV:()=>r.l,xW:()=>d.x});var r=n(3397),s=n(3951),a=n(6017),l=n(5143),o=n(8740),d=n(2221),c=e([r,s,a,l,o,d]);[r,s,a,l,o,d]=c.then?(await c)():c,i()}catch(e){i(e)}}))},2221:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{x:()=>l});var r=n(6087),s=n(3397),a=e([s]);s=(a.then?(await a)():a)[0];const l=()=>{const e=(0,r.useContext)(s.c);if(!e)throw new Error("useFormContext must be used within a Fieldset");return e};i()}catch(e){i(e)}}))},4427:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{t:()=>d});var r=n(1455),s=n.n(r),a=n(6087);const l=await s()({path:"/wp/v2/settings",method:"GET"});function o(e){const t=e?.match(/: \[(.*?)\] (.+) in/);return t?{[t[1]]:t[2]}:null}const d=()=>{const[e,t]=(0,a.useState)(l),[n,i]=(0,a.useState)(),[r,d]=(0,a.useState)(),[c,u]=(0,a.useState)(!1),[p,f]=(0,a.useState)({});return(0,a.useEffect)((()=>{c&&f({})}),[c]),{values:e,status:n,errorMessages:p,updating:c,submitValues:n=>{u(!0),s()({path:"/wp/v2/settings",method:"POST",data:n}).then((n=>{t((t=>{for(const n in t)Object.keys(e).includes(n)||delete t[n];return t})(n)),i("success")})).catch((e=>{const t=o(e?.data?.error?.message);f((e=>{if(t)return{...e,...t}})),i("error")})).finally((()=>{d(n),u(!1)}))},setValues:t,setStatus:i,getOption:function(t){return e[t]},initialValues:l,updatedValues:r}};i()}catch(c){i(c)}}),1)},8740:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{M:()=>l});var r=n(6087),s=n(5143),a=e([s]);s=(a.then?(await a)():a)[0];const l=()=>{const e=(0,r.useContext)(s.l);if(!e)throw new Error("useSettingsContext must be used within a SettingsProvider");return e};i()}catch(e){i(e)}}))},7719:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{q:()=>f});var r=n(7723),s=n(6754),a=n(8509),l=n(9204),o=n(4709),d=n(3273),c=n(6087),u=n(790),p=e([s,o]);[s,o]=p.then?(await p)():p;const f=()=>{var e;const{getOption:t,inputProps:n,inlineData:i}=(0,o.Mp)(),{setFieldsetValues:p}=(0,o.xW)(),f=(0,c.useId)(),h=i.adminBarMenu||[];return(0,u.jsx)(s.d,{name:"admin_bar",id:"admin-bar",title:(0,r.__)("Admin Bar","syntatis-feature-flipper"),label:(0,r.__)("Show the Admin bar on the front end","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the Admin bar will not be displayed on the front end.","syntatis-feature-flipper"),children:(0,u.jsxs)("details",{className:d.A.inputDetails,children:[(0,u.jsx)("summary",{id:f,children:(0,r.__)("Menu","syntatis-feature-flipper")}),(0,u.jsx)(a.$,{defaultValue:null!==(e=t("admin_bar_menu"))&&void 0!==e?e:h.map((({id:e})=>e)),"aria-labelledby":f,description:(0,r.__)("Unchecked menu items will be hidden from the Admin bar.","syntatis-feature-flipper"),onChange:e=>p("admin_bar_menu",e),...n("admin_bar_menu"),children:h.map((({id:e})=>(0,u.jsx)(l.S,{value:e,label:(0,u.jsx)("code",{children:e})},e)))})]})})};i()}catch(e){i(e)}}))},6832:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{T:()=>f});var r=n(7723),s=n(6754),a=n(8509),l=n(9204),o=n(4709),d=n(3273),c=n(6087),u=n(790),p=e([s,o]);[s,o]=p.then?(await p)():p;const f=()=>{var e;const{getOption:t,inputProps:n,inlineData:i}=(0,o.Mp)(),{setFieldsetValues:p}=(0,o.xW)(),[f,h]=(0,c.useState)(t("dashboard_widgets")),g=(0,c.useId)(),v=i.dashboardWidgets||[],y=null!==(e=t("dashboard_widgets_enabled"))&&void 0!==e?e:null;return(0,u.jsx)(s.d,{name:"dashboard_widgets",id:"dashboard-widgets",title:(0,r.__)("Dashboard Widgets","syntatis-feature-flipper"),label:(0,r.__)("Enable Dashboard widgets","syntatis-feature-flipper"),description:(0,r.__)("When switched off, all widgets will be hidden from the dashboard.","syntatis-feature-flipper"),onChange:h,children:f&&(0,u.jsxs)("details",{className:d.A.inputDetails,children:[(0,u.jsx)("summary",{id:g,children:(0,r.__)("Widgets","syntatis-feature-flipper")}),(0,u.jsx)(a.$,{defaultValue:y,"aria-labelledby":g,description:(0,r.__)("Unchecked widgets will be hidden from the dashboard.","syntatis-feature-flipper"),onChange:e=>{p("dashboard_widgets_enabled",e)},...n("dashboard_widgets_enabled"),children:v.map((({id:e,title:t})=>(0,u.jsx)(l.S,{value:e,label:t},e)))})]})})};i()}catch(e){i(e)}}))},3277:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{k:()=>p});var r=n(7723),s=n(6754),a=n(3682),l=n(4709),o=n(3273),d=n(6087),c=n(790),u=e([s,l]);[s,l]=u.then?(await u)():u;const p=()=>{const{getOption:e}=(0,l.Mp)(),{setFieldsetValues:t}=(0,l.xW)(),[n,i]=(0,d.useState)(e("jpeg_compression"));return(0,c.jsx)(s.d,{name:"jpeg_compression",id:"jpeg-compression",title:(0,r.__)("JPEG Compression","syntatis-feature-flipper"),label:(0,r.__)("Enable JPEG image compression","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will upload the original JPEG image in its full quality, without any compression.","syntatis-feature-flipper"),onChange:i,children:n&&(0,c.jsx)("div",{className:o.A.inputDetails,children:(0,c.jsx)(a.A,{min:10,max:100,type:"number",name:"jpeg_compression_quality",defaultValue:e("jpeg_compression_quality"),onChange:e=>{t("jpeg_compression_quality",e)},className:"code",prefix:(0,c.jsx)("span",{"aria-hidden":!0,children:(0,r.__)("Quality","syntatis-feature-flipper")}),"aria-label":(0,r.__)("Quality","syntatis-feature-flipper"),description:(0,r.__)("The quality of the compressed JPEG image. 100 is the highest quality.","syntatis-feature-flipper"),suffix:"%"})})})};i()}catch(e){i(e)}}))},7687:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{Q:()=>p});var r=n(7723),s=n(6754),a=n(3682),l=n(4709),o=n(3273),d=n(6087),c=n(790),u=e([s,l]);[s,l]=u.then?(await u)():u;const p=()=>{const{getOption:e}=(0,l.Mp)(),{setFieldsetValues:t}=(0,l.xW)(),[n,i]=(0,d.useState)(e("revisions"));return(0,c.jsx)(s.d,{name:"revisions",id:"revisions",title:(0,r.__)("Revisions","syntatis-feature-flipper"),label:(0,r.__)("Enable post revisions","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not save revisions of your posts.","syntatis-feature-flipper"),onChange:i,children:n&&(0,c.jsx)("div",{className:o.A.inputDetails,children:(0,c.jsx)(a.A,{min:1,max:100,placeholder:"-",defaultValue:e("revisions_max"),type:"number",name:"revisions_max",onChange:e=>{t("revisions_max",e)},className:"code",suffix:(0,c.jsx)("span",{"aria-hidden":!0,children:(0,r.__)("Revisions","syntatis-feature-flipper")}),"aria-label":(0,r.__)("Maximum","syntatis-feature-flipper"),description:(0,r.__)("The maximum number of revisions to keep.","syntatis-feature-flipper")})})})};i()}catch(e){i(e)}}))},6754:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{d:()=>o});var r=n(3413),s=n(4709),a=n(790),l=e([s]);s=(l.then?(await l)():l)[0];const o=({description:e,id:t,label:n,name:i,onChange:l,title:o,children:d,isDisabled:c,isSelected:u})=>{const{labelProps:p,inputProps:f,getOption:h}=(0,s.Mp)(),{setFieldsetValues:g}=(0,s.xW)();return(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{scope:"row",children:(0,a.jsx)("label",{...p(t),children:o})}),(0,a.jsxs)("td",{children:[(0,a.jsx)(r.d,{...f(i),onChange:e=>{void 0!==l&&l(e),g(i,e)},defaultSelected:h(i),description:e,label:n,isDisabled:c,isSelected:u}),d]})]})};i()}catch(e){i(e)}}))},1238:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{Q3:()=>l.Q,TF:()=>s.T,dR:()=>o.d,km:()=>a.k,qE:()=>r.q});var r=n(7719),s=n(6832),a=n(3277),l=n(7687),o=n(6754),d=e([r,s,a,l,o]);[r,s,a,l,o]=d.then?(await d)():d,i()}catch(e){i(e)}}))},341:(e,t,n)=>{n.a(e,(async(e,t)=>{try{var i=n(8490),r=n.n(i),s=n(6087),a=n(4709),l=n(6858),o=n(790),d=e([a,l]);[a,l]=d.then?(await d)():d,r()((()=>{const e=document.querySelector("#syntatis-feature-flipper-settings");e&&(0,s.createRoot)(e).render((0,o.jsx)(a.Z6,{inlineData:window.$syntatis.featureFlipper,children:(0,o.jsx)(l.Y,{})}))})),t()}catch(e){t(e)}}))},7834:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{n:()=>u});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=document.querySelector("#wpfooter"),c=d?.style?.display,u=()=>(0,l.jsxs)(s.lV,{children:[(0,l.jsxs)(s.LB,{children:[(0,l.jsx)(a.TF,{}),(0,l.jsx)(a.dR,{name:"admin_footer_text",id:"admin-footer-text",title:(0,r.__)("Footer Text","syntatis-feature-flipper"),label:(0,r.__)("Show the footer text","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the footer text in the admin area will be removed.","syntatis-feature-flipper"),onChange:e=>{d&&(d.style.display=e?c:"none")}}),(0,l.jsx)(a.dR,{name:"update_nags",id:"update-nags",title:(0,r.__)("Update Nags","syntatis-feature-flipper"),label:(0,r.__)("Enable WordPress update notification message","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not show notification message when update is available.","syntatis-feature-flipper")})]}),(0,l.jsxs)(s.LB,{title:(0,r.__)("Admin Bar","syntatis-feature-flipper"),description:(0,r.__)("Customize the Admin bar area","syntatis-feature-flipper"),children:[(0,l.jsx)(a.qE,{}),(0,l.jsx)(a.dR,{name:"admin_bar_howdy",id:"admin-bar-howdy",title:(0,r.__)("Howdy Text","syntatis-feature-flipper"),label:(0,r.__)('Show the "Howdy" text',"syntatis-feature-flipper"),description:(0,r.__)('When switched off, the "Howdy" text in the Account menu in the admin bar will be removed.',"syntatis-feature-flipper")})]})]});i()}catch(e){i(e)}}))},922:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{B:()=>d});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{description:(0,r.__)("Control the behavior of scripts, styles, and images loaded on your site.","syntatis-feature-flipper"),children:[(0,l.jsx)(a.dR,{name:"emojis",id:"emojis",title:(0,r.__)("Emojis","syntatis-feature-flipper"),label:(0,r.__)("Enable the WordPress built-in emojis","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not load the emojis scripts, styles, and images.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"scripts_version",id:"scripts-version",title:(0,r.__)("Scripts Version","syntatis-feature-flipper"),label:(0,r.__)("Show scripts and styles version","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not append the version to the scripts and styles URLs.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"jquery_migrate",id:"scripts-version",title:(0,r.__)("jQuery Migrate","syntatis-feature-flipper"),label:(0,r.__)("Load jQuery Migrate script","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not load the jQuery Migrate script.","syntatis-feature-flipper")})]})});i()}catch(e){i(e)}}))},8905:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{a:()=>d});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=()=>{const{inlineData:e}=(0,s.Mp)();return(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{children:[(0,l.jsx)(a.dR,{name:"gutenberg",id:"gutenberg",title:"Gutenberg",label:(0,r.__)("Enable the block editor","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the block editor will be disabled and the classic editor will be used.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{isSelected:!0===e.themeSupport.widgetsBlockEditor&&void 0,isDisabled:!0!==e.themeSupport.widgetsBlockEditor||void 0,name:"block_based_widgets",id:"block-based-widgets",title:"Block-based Widgets",label:(0,r.__)("Enable the block-based widgets","syntatis-feature-flipper"),description:e.themeSupport.widgetsBlockEditor?(0,r.__)("When switched off, the block-based widgets will be disabled and the classic widgets will be used.","syntatis-feature-flipper"):(0,r.__)("The current theme in-use does not support block-based widgets.","syntatis-feature-flipper")}),(0,l.jsx)(a.Q3,{}),(0,l.jsx)(a.dR,{name:"heartbeat",id:"heartbeat",title:"Heartbeat",label:(0,r.__)("Enable the Heartbeat API","syntatis-feature-flipper"),description:(0,r.__)("When switched off, the Heartbeat API will be disabled; it will not be sending requests.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"self_ping",id:"self-ping",title:"Self-ping",label:(0,r.__)("Enable self-pingbacks","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not send pingbacks to your own site.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"cron",id:"cron",title:"Cron",label:(0,r.__)("Enable cron","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not run scheduled events.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"embed",id:"embed",title:"Embed",label:(0,r.__)("Enable post embedding","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will disable other sites from embedding content from your site, and vice-versa.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"feeds",id:"feeds",title:"Feeds",label:(0,r.__)("Enable RSS feeds","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will disable the RSS feed URLs.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"auto_update",id:"auto-update",title:(0,r.__)("Auto Update","syntatis-feature-flipper"),label:(0,r.__)("Enable WordPress auto update","syntatis-feature-flipper"),description:(0,r.__)("When switched off, you will need to manually update WordPress.","syntatis-feature-flipper")})]})})};i()}catch(e){i(e)}}))},8357:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{C:()=>d});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{children:[(0,l.jsx)(a.dR,{name:"attachment_page",id:"attachment-page",title:(0,r.__)("Attachment Page","syntatis-feature-flipper"),label:(0,r.__)("Enable page for uploaded media files","syntatis-feature-flipper"),description:(0,r.__)("When switched off, WordPress will not create attachment pages for media files.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"attachment_slug",id:"attachment-slug",title:(0,r.__)("Attachment Slug","syntatis-feature-flipper"),label:(0,r.__)("Enable default media file slug","syntatis-feature-flipper"),description:(0,r.__)("When switched off, attachment page will get a randomized slug instead of taking from the original file name.","syntatis-feature-flipper")}),(0,l.jsx)(a.km,{})]})});i()}catch(e){i(e)}}))},3061:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{S:()=>p});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=document.querySelector('#adminmenu a[href="theme-editor.php"]'),c=document.querySelector('#adminmenu a[href="plugin-editor.php"]'),u={themeEditors:d?.parentElement?.style?.display,pluginEditors:c?.parentElement?.style?.display},p=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{children:[(0,l.jsx)(a.dR,{name:"file_edit",id:"file-edit",title:(0,r.__)("File Edit","syntatis-feature-flipper"),label:(0,r.__)("Enable the File Editor","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will disable the file editor for themes and plugins.","syntatis-feature-flipper"),onChange:e=>{d&&(d.parentElement.style.display=e?u.themeEditors:"none"),c&&(c.parentElement.style.display=e?u.pluginEditors:"none")}}),(0,l.jsx)(a.dR,{name:"xmlrpc",id:"xmlrpc",title:(0,r.__)("XML-RPC","syntatis-feature-flipper"),label:(0,r.__)("Enable XML-RPC","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will disable the XML-RPC endpoint.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"authenticated_rest_api",id:"authenticated-rest-api",title:(0,r.__)("REST API Authentication","syntatis-feature-flipper"),label:(0,r.__)("Enable REST API Authentication","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will allow users to make request to the public REST API endpoint without authentication.","syntatis-feature-flipper")})]})});i()}catch(e){i(e)}}))},5088:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{p:()=>d});var r=n(7723),s=n(4709),a=n(1238),l=n(790),o=e([s,a]);[s,a]=o.then?(await o)():o;const d=()=>(0,l.jsx)(s.lV,{children:(0,l.jsxs)(s.LB,{title:"Metadata",description:(0,r.__)("Control the document metadata added in the HTML head.","syntatis-feature-flipper"),children:[(0,l.jsx)(a.dR,{name:"rsd_link",id:"rsd-link",title:(0,r.__)("RSD Link","syntatis-feature-flipper"),label:(0,r.__)("Enable RSD link","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will remove the Really Simple Discovery (RSD) link from the webpage head.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"generator_tag",id:"generator-tag",title:(0,r.__)("Generator Meta Tag","syntatis-feature-flipper"),label:(0,r.__)("Add WordPress generator meta tag","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will remove the generator meta tag which shows WordPress and its version.","syntatis-feature-flipper")}),(0,l.jsx)(a.dR,{name:"shortlink",id:"shortlink",title:(0,r.__)("Shortlink","syntatis-feature-flipper"),label:(0,r.__)("Add Shortlink","syntatis-feature-flipper"),description:(0,r.__)("When switched off, it will remove the shortlink meta tag which shows the short URL of the webpage head.","syntatis-feature-flipper")})]})});i()}catch(e){i(e)}}))},9662:(e,t,n)=>{n.a(e,(async(e,i)=>{try{n.d(t,{Bh:()=>s.B,Ct:()=>l.C,SV:()=>o.S,a5:()=>a.a,nQ:()=>r.n,p2:()=>d.p});var r=n(7834),s=n(922),a=n(8905),l=n(8357),o=n(3061),d=n(5088),c=e([r,s,a,l,o,d]);[r,s,a,l,o,d]=c.then?(await c)():c,i()}catch(e){i(e)}}))},6044:()=>{},1270:(e,t,n)=>{n.d(t,{A:()=>i});const i={section:"Sow9V_g44_njwPuM6v_z",title:"rbliHJE9bgQbN73QIyJv",description:"AuG3fVwRuf5i2coEeXag"}},3273:(e,t,n)=>{n.d(t,{A:()=>i});const i={inputDetails:"as6IPxn7zk9kjjsv9cX6"}},1609:e=>{e.exports=window.React},790:e=>{e.exports=window.ReactJSXRuntime},1455:e=>{e.exports=window.wp.apiFetch},8490:e=>{e.exports=window.wp.domReady},6087:e=>{e.exports=window.wp.element},7723:e=>{e.exports=window.wp.i18n},9229:(e,t,n)=>{n.d(t,{s:()=>l});var i=n(2217),r=n(5987),s=n(9681),a=n(364);function l(e,t){let n,{elementType:l="button",isDisabled:o,onPress:d,onPressStart:c,onPressEnd:u,onPressUp:p,onPressChange:f,preventFocusOnPress:h,allowFocusWhenDisabled:g,onClick:v,href:y,target:m,rel:b,type:A="button"}=e;n="button"===l?{type:A,disabled:o}:{role:"button",tabIndex:o?void 0:0,href:"a"===l&&o?void 0:y,target:"a"===l?m:void 0,type:"input"===l?A:void 0,disabled:"input"===l?o:void 0,"aria-disabled":o&&"input"!==l?o:void 0,rel:"a"===l?b:void 0};let{pressProps:w,isPressed:E}=(0,a.d)({onPressStart:c,onPressEnd:u,onPressChange:f,onPress:d,onPressUp:p,isDisabled:o,preventFocusOnPress:h,ref:t}),{focusableProps:x}=(0,s.W)(e,t);g&&(x.tabIndex=o?-1:x.tabIndex);let C=(0,i.v)(x,w,(0,r.$)(e,{labelable:!0}));return{isPressed:E,buttonProps:(0,i.v)(n,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{v&&(v(e),console.warn("onClick is deprecated, please use onPress"))}})}}},2526:(e,t,n)=>{n.d(t,{n:()=>i});const i=new WeakMap},8374:(e,t,n)=>{n.d(t,{l:()=>l});var i=n(4836),r=n(7233),s=n(2268),a=n(5562);function l(e){const t=(0,i.T)(e);if("virtual"===(0,a.ME)()){let n=t.activeElement;(0,r.v)((()=>{t.activeElement===n&&e.isConnected&&(0,s.e)(e)}))}else(0,s.e)(e)}},6133:(e,t,n)=>{n.d(t,{o:()=>l});var i=n(5562),r=n(3424),s=n(9461),a=n(1609);function l(e={}){let{autoFocus:t=!1,isTextInput:n,within:l}=e,o=(0,a.useRef)({isFocused:!1,isFocusVisible:t||(0,i.pP)()}),[d,c]=(0,a.useState)(!1),[u,p]=(0,a.useState)((()=>o.current.isFocused&&o.current.isFocusVisible)),f=(0,a.useCallback)((()=>p(o.current.isFocused&&o.current.isFocusVisible)),[]),h=(0,a.useCallback)((e=>{o.current.isFocused=e,c(e),f()}),[f]);(0,i.K7)((e=>{o.current.isFocusVisible=e,f()}),[],{isTextInput:n});let{focusProps:g}=(0,r.i)({isDisabled:l,onFocusChange:h}),{focusWithinProps:v}=(0,s.R)({isDisabled:!l,onFocusWithinChange:h});return{isFocused:d,isFocusVisible:u,focusProps:l?v:g}}},9681:(e,t,n)=>{n.d(t,{W:()=>c});var i=n(8374),r=n(6660),s=n(2217),a=n(1609),l=n(3424);function o(e){if(!e)return;let t=!0;return n=>{let i={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(i),t&&n.stopPropagation()}}let d=a.createContext(null);function c(e,t){let{focusProps:n}=(0,l.i)(e),{keyboardProps:c}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:o(e.onKeyDown),onKeyUp:o(e.onKeyUp)}}}(e),u=(0,s.v)(n,c),p=function(e){let t=(0,a.useContext)(d)||{};(0,r.w)(t,e);let{ref:n,...i}=t;return i}(t),f=e.isDisabled?{}:p,h=(0,a.useRef)(e.autoFocus);return(0,a.useEffect)((()=>{h.current&&t.current&&(0,i.l)(t.current),h.current=!1}),[t]),{focusableProps:(0,s.v)({...u,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},f)}}},8868:(e,t,n)=>{n.d(t,{X:()=>l});var i=n(5562),r=n(1609),s=n(9953),a=n(7049);function l(e,t,n){let{validationBehavior:l,focus:d}=e;(0,s.N)((()=>{if("native"===l&&(null==n?void 0:n.current)){let i=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(i),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=n.current).validity.valid,validationDetails:o(e),validationErrors:e.validationMessage?[e.validationMessage]:[]})}var e}));let c=(0,a.J)((()=>{t.resetValidation()})),u=(0,a.J)((e=>{var r;t.displayValidation.isInvalid||t.commitValidation();let s=null==n||null===(r=n.current)||void 0===r?void 0:r.form;var a;!e.defaultPrevented&&n&&s&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}(s)===n.current&&(d?d():null===(a=n.current)||void 0===a||a.focus(),(0,i.Cl)("keyboard")),e.preventDefault()})),p=(0,a.J)((()=>{t.commitValidation()}));(0,r.useEffect)((()=>{let e=null==n?void 0:n.current;if(!e)return;let t=e.form;return e.addEventListener("invalid",u),e.addEventListener("change",p),null==t||t.addEventListener("reset",c),()=>{e.removeEventListener("invalid",u),e.removeEventListener("change",p),null==t||t.removeEventListener("reset",c)}}),[n,u,p,c,l])}function o(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}},3424:(e,t,n)=>{n.d(t,{i:()=>a});var i=n(2894),r=n(1609),s=n(4836);function a(e){let{isDisabled:t,onFocus:n,onBlur:a,onFocusChange:l}=e;const o=(0,r.useCallback)((e=>{if(e.target===e.currentTarget)return a&&a(e),l&&l(!1),!0}),[a,l]),d=(0,i.y)(o),c=(0,r.useCallback)((e=>{const t=(0,s.T)(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),l&&l(!0),d(e))}),[l,n,d]);return{focusProps:{onFocus:!t&&(n||l||a)?c:void 0,onBlur:t||!a&&!l?void 0:o}}}},5562:(e,t,n)=>{n.d(t,{Cl:()=>x,K7:()=>k,ME:()=>E,pP:()=>w});var i=n(9202),r=n(8948),s=n(4836),a=n(1609);let l=null,o=new Set,d=new Map,c=!1,u=!1;const p={Tab:!0,Escape:!0};function f(e,t){for(let n of o)n(e,t)}function h(e){c=!0,function(e){return!(e.metaKey||!(0,i.cX)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(l="keyboard",f("keyboard",e))}function g(e){l="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(c=!0,f("pointer",e))}function v(e){(0,r.Y)(e)&&(c=!0,l="virtual")}function y(e){e.target!==window&&e.target!==document&&(c||u||(l="virtual",f("virtual",e)),c=!1,u=!1)}function m(){c=!1,u=!0}function b(e){if("undefined"==typeof window||d.get((0,s.m)(e)))return;const t=(0,s.m)(e),n=(0,s.T)(e);let i=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){c=!0,i.apply(this,arguments)},n.addEventListener("keydown",h,!0),n.addEventListener("keyup",h,!0),n.addEventListener("click",v,!0),t.addEventListener("focus",y,!0),t.addEventListener("blur",m,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",g,!0),n.addEventListener("pointermove",g,!0),n.addEventListener("pointerup",g,!0)):(n.addEventListener("mousedown",g,!0),n.addEventListener("mousemove",g,!0),n.addEventListener("mouseup",g,!0)),t.addEventListener("beforeunload",(()=>{A(e)}),{once:!0}),d.set(t,{focus:i})}const A=(e,t)=>{const n=(0,s.m)(e),i=(0,s.T)(e);t&&i.removeEventListener("DOMContentLoaded",t),d.has(n)&&(n.HTMLElement.prototype.focus=d.get(n).focus,i.removeEventListener("keydown",h,!0),i.removeEventListener("keyup",h,!0),i.removeEventListener("click",v,!0),n.removeEventListener("focus",y,!0),n.removeEventListener("blur",m,!1),"undefined"!=typeof PointerEvent?(i.removeEventListener("pointerdown",g,!0),i.removeEventListener("pointermove",g,!0),i.removeEventListener("pointerup",g,!0)):(i.removeEventListener("mousedown",g,!0),i.removeEventListener("mousemove",g,!0),i.removeEventListener("mouseup",g,!0)),d.delete(n))};function w(){return"pointer"!==l}function E(){return l}function x(e){l=e,f(e,null)}"undefined"!=typeof document&&function(e){const t=(0,s.T)(e);let n;"loading"!==t.readyState?b(e):(n=()=>{b(e)},t.addEventListener("DOMContentLoaded",n))}();const C=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function k(e,t,n){b(),(0,a.useEffect)((()=>{let t=(t,i)=>{(function(e,t,n){var i;const r="undefined"!=typeof window?(0,s.m)(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,a="undefined"!=typeof window?(0,s.m)(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l="undefined"!=typeof window?(0,s.m)(null==n?void 0:n.target).HTMLElement:HTMLElement,o="undefined"!=typeof window?(0,s.m)(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof r&&!C.has(null==n||null===(i=n.target)||void 0===i?void 0:i.type)||(null==n?void 0:n.target)instanceof a||(null==n?void 0:n.target)instanceof l&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof o&&!p[n.key])})(!!(null==n?void 0:n.isTextInput),t,i)&&e(w())};return o.add(t),()=>{o.delete(t)}}),t)}},9461:(e,t,n)=>{n.d(t,{R:()=>s});var i=n(2894),r=n(1609);function s(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:s,onFocusWithinChange:a}=e,l=(0,r.useRef)({isFocusWithin:!1}),o=(0,r.useCallback)((e=>{l.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(l.current.isFocusWithin=!1,n&&n(e),a&&a(!1))}),[n,a,l]),d=(0,i.y)(o),c=(0,r.useCallback)((e=>{l.current.isFocusWithin||document.activeElement!==e.target||(s&&s(e),a&&a(!0),l.current.isFocusWithin=!0,d(e))}),[s,a,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:o}}}},364:(e,t,n)=>{n.d(t,{d:()=>S});var i=n(9202),r=n(4836),s=n(7233);let a="default",l="",o=new WeakMap;function d(e){if((0,i.un)()){if("default"===a){const t=(0,r.T)(e);l=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}a="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(o.set(e,e.style.userSelect),e.style.userSelect="none")}function c(e){if((0,i.un)()){if("disabled"!==a)return;a="restoring",setTimeout((()=>{(0,s.v)((()=>{if("restoring"===a){const t=(0,r.T)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=l||""),l="",a="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&o.has(e)){let t=o.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),o.delete(e)}}var u=n(1609);const p=u.createContext({register:()=>{}});function f(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function h(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,f(e,t,"set"),n),n}p.displayName="PressResponderContext";var g=n(2217),v=n(6660),y=n(6948),m=n(7049),b=n(2166),A=n(3831),w=n(8948),E=n(2268),x=new WeakMap;class C{continuePropagation(){h(this,x,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(this,f(this,x,"get"))}constructor(e,t,n,i){var r,s,a,l;l={writable:!0,value:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(s=this,a=x),a.set(s,l),h(this,x,!0);let o=null!==(r=null==i?void 0:i.target)&&void 0!==r?r:n.currentTarget;const d=null==o?void 0:o.getBoundingClientRect();let c,u,p=0,f=null;null!=n.clientX&&null!=n.clientY&&(u=n.clientX,f=n.clientY),d&&(null!=u&&null!=f?(c=u-d.left,p=f-d.top):(c=d.width/2,p=d.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=c,this.y=p}}const k=Symbol("linkClicked");function S(e){let{onPress:t,onPressChange:n,onPressStart:s,onPressEnd:a,onPressUp:l,isDisabled:o,isPressed:f,preventFocusOnPress:h,shouldCancelOnPointerExit:x,allowTextSelectionOnPress:S,ref:B,...j}=function(e){let t=(0,u.useContext)(p);if(t){let{register:n,...i}=t;e=(0,g.v)(i,e),n()}return(0,v.w)(t,e.ref),e}(e),[L,F]=(0,u.useState)(!1),Q=(0,u.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:Y,removeAllGlobalListeners:G}=(0,y.A)(),W=(0,m.J)(((e,t)=>{let i=Q.current;if(o||i.didFirePressStart)return!1;let r=!0;if(i.isTriggeringEvent=!0,s){let n=new C("pressstart",t,e);s(n),r=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,F(!0),r})),U=(0,m.J)(((e,i,r=!0)=>{let s=Q.current;if(!s.didFirePressStart)return!1;s.ignoreClickAfterPress=!0,s.didFirePressStart=!1,s.isTriggeringEvent=!0;let l=!0;if(a){let t=new C("pressend",i,e);a(t),l=t.shouldStopPropagation}if(n&&n(!1),F(!1),t&&r&&!o){let n=new C("press",i,e);t(n),l&&(l=n.shouldStopPropagation)}return s.isTriggeringEvent=!1,l})),H=(0,m.J)(((e,t)=>{let n=Q.current;if(o)return!1;if(l){n.isTriggeringEvent=!0;let i=new C("pressup",t,e);return l(i),n.isTriggeringEvent=!1,i.shouldStopPropagation}return!0})),O=(0,m.J)((e=>{let t=Q.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&U(I(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,G(),S||c(t.target))})),J=(0,m.J)((e=>{x&&O(e)})),V=(0,u.useMemo)((()=>{let e=Q.current,t={onKeyDown(t){if(P(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var s;N(t.target,t.key)&&t.preventDefault();let a=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,a=W(t,"keyboard");let i=t.currentTarget,s=t=>{P(t,i)&&!t.repeat&&i.contains(t.target)&&e.target&&H(I(e.target,t),"keyboard")};Y((0,r.T)(t.currentTarget),"keyup",(0,b.c)(s,n),!0)}a&&t.stopPropagation(),t.metaKey&&(0,i.cX)()&&(null===(s=e.metaKeyEvents)||void 0===s||s.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!A.Fe.isOpening){let n=!0;if(o&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||(0,w.Y)(t.nativeEvent))){o||h||(0,E.e)(t.currentTarget);let e=W(t,"virtual"),i=H(t,"virtual"),r=U(t,"virtual");n=e&&i&&r}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&P(t,e.target)){var i;N(t.target,t.key)&&t.preventDefault();let n=t.target;U(I(e.target,t),"keyboard",e.target.contains(n)),G(),"Enter"!==t.key&&T(e.target)&&e.target.contains(n)&&!t[k]&&(t[k]=!0,(0,A.Fe)(e.target,t,!1)),e.isPressed=!1,null===(i=e.metaKeyEvents)||void 0===i||i.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var r;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(r=e.target)||void 0===r||r.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if((0,w.P)(t.nativeEvent))return void(e.pointerType="virtual");D(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let s=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,o||h||(0,E.e)(t.currentTarget),S||d(e.target),s=W(t,e.pointerType),Y((0,r.T)(t.currentTarget),"pointermove",n,!1),Y((0,r.T)(t.currentTarget),"pointerup",i,!1),Y((0,r.T)(t.currentTarget),"pointercancel",a,!1)),s&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(D(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&_(t,t.currentTarget)&&H(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&_(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,W(I(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,U(I(e.target,t),e.pointerType,!1),J(t)))},i=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(_(t,e.target)&&null!=e.pointerType?U(I(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&U(I(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,G(),S||c(e.target),"ontouchend"in e.target&&"mouse"!==t.pointerType&&Y(e.target,"touchend",s,{once:!0}))},s=e=>{R(e.currentTarget)&&e.preventDefault()},a=e=>{O(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&O(e)}}else{t.onMouseDown=t=>{0===t.button&&t.currentTarget.contains(t.target)&&(D(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents?t.stopPropagation():(e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=(0,w.Y)(t.nativeEvent)?"virtual":"mouse",o||h||(0,E.e)(t.currentTarget),W(t,e.pointerType)&&t.stopPropagation(),Y((0,r.T)(t.currentTarget),"mouseup",n,!1)))},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=W(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=U(t,e.pointerType,!1),J(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||H(t,e.pointerType||"mouse"))};let n=t=>{0===t.button&&(e.isPressed=!1,G(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&_(t,e.target)&&null!=e.pointerType?U(I(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&U(I(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",o||h||(0,E.e)(t.currentTarget),S||d(e.target),W(M(e.target,t),e.pointerType)&&t.stopPropagation(),Y((0,r.m)(t.currentTarget),"scroll",i,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=K(t.nativeEvent,e.activePointerId),i=!0;n&&_(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,i=W(M(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,i=U(M(e.target,t),e.pointerType,!1),J(M(e.target,t))),i&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=K(t.nativeEvent,e.activePointerId),i=!0;n&&_(n,t.currentTarget)&&null!=e.pointerType?(H(M(e.target,t),e.pointerType),i=U(M(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(i=U(M(e.target,t),e.pointerType,!1)),i&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!S&&c(e.target),G()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&O(M(e.target,t)))};let i=t=>{e.isPressed&&t.target.contains(e.target)&&O({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&O(e)}}return t}),[Y,o,h,G,S,O,J,U,W,H]);return(0,u.useEffect)((()=>()=>{var e;S||c(null!==(e=Q.current.target)&&void 0!==e?e:void 0)}),[S]),{isPressed:f||L,pressProps:(0,g.v)(j,V)}}function T(e){return"A"===e.tagName&&e.hasAttribute("href")}function P(e,t){const{key:n,code:i}=e,s=t,a=s.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==i||s instanceof(0,r.m)(s).HTMLInputElement&&!j(s,n)||s instanceof(0,r.m)(s).HTMLTextAreaElement||s.isContentEditable||("link"===a||!a&&T(s))&&"Enter"!==n)}function K(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const i=n[e];if(i.identifier===t)return i}return null}function M(e,t){let n=0,i=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,i=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:i}}function I(e,t){let n=t.clientX,i=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:i}}function _(e,t){let n=t.getBoundingClientRect(),i=function(e){let t=0,n=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?n=e.height/2:void 0!==e.radiusY&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return s=i,!((r=n).left>s.right||s.left>r.right||r.top>s.bottom||s.top>r.bottom);var r,s}function D(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function R(e){return!(e instanceof HTMLInputElement||(e instanceof HTMLButtonElement?"submit"===e.type||"reset"===e.type:T(e)))}function N(e,t){return e instanceof HTMLInputElement?!j(e,t):R(e)}const B=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function j(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:B.has(e.type)}},2894:(e,t,n)=>{n.d(t,{y:()=>l});var i=n(1609),r=n(9953),s=n(7049);class a{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function l(e){let t=(0,i.useRef)({isFocused:!1,observer:null});(0,r.N)((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=(0,s.J)((t=>{null==e||e(t)}));return(0,i.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=e.target,r=e=>{t.current.isFocused=!1,i.disabled&&n(new a("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",r,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&i.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}},4742:(e,t,n)=>{n.d(t,{M:()=>a});var i=n(2145),r=n(7061);var s=n(2217);function a(e){let{description:t,errorMessage:n,isInvalid:a,validationState:l}=e,{labelProps:o,fieldProps:d}=function(e){let{id:t,label:n,"aria-labelledby":s,"aria-label":a,labelElementType:l="label"}=e;t=(0,i.Bi)(t);let o=(0,i.Bi)(),d={};return n?(s=s?`${o} ${s}`:o,d={id:o,htmlFor:"label"===l?t:void 0}):s||a||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:d,fieldProps:(0,r.b)({id:t,"aria-label":a,"aria-labelledby":s})}}(e),c=(0,i.X1)([Boolean(t),Boolean(n),a,l]),u=(0,i.X1)([Boolean(t),Boolean(n),a,l]);return d=(0,s.v)(d,{"aria-describedby":[c,u,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:d,descriptionProps:{id:c},errorMessageProps:{id:u}}}},415:(e,t,n)=>{n.d(t,{Cc:()=>d,wR:()=>f});var i=n(1609);const r={prefix:String(Math.round(1e10*Math.random())),current:0},s=i.createContext(r),a=i.createContext(!1);let l=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),o=new WeakMap;const d="function"==typeof i.useId?function(e){let t=i.useId(),[n]=(0,i.useState)(f());return e||`${n?"react-aria":`react-aria${r.prefix}`}-${t}`}:function(e){let t=(0,i.useContext)(s);t!==r||l||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=function(e=!1){let t=(0,i.useContext)(s),n=(0,i.useRef)(null);if(null===n.current&&!e){var r,a;let e=null===(a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===a||null===(r=a.ReactCurrentOwner)||void 0===r?void 0:r.current;if(e){let n=o.get(e);null==n?o.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,o.delete(e))}n.current=++t.current}return n.current}(!!e),a=`react-aria${t.prefix}`;return e||`${a}-${n}`};function c(){return!1}function u(){return!0}function p(e){return()=>{}}function f(){return"function"==typeof i.useSyncExternalStore?i.useSyncExternalStore(p,c,u):(0,i.useContext)(a)}},5353:(e,t,n)=>{n.d(t,{e:()=>o});var i=n(2217),r=n(5987),s=n(8343),a=n(9681),l=n(364);function o(e,t,n){let{isDisabled:o=!1,isReadOnly:d=!1,value:c,name:u,children:p,"aria-label":f,"aria-labelledby":h,validationState:g="valid",isInvalid:v}=e;null!=p||null!=f||null!=h||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:y,isPressed:m}=(0,l.d)({isDisabled:o}),{pressProps:b,isPressed:A}=(0,l.d)({isDisabled:o||d,onPress(){t.toggle()}}),{focusableProps:w}=(0,a.W)(e,n),E=(0,i.v)(y,w),x=(0,r.$)(e,{labelable:!0});return(0,s.F)(n,t.isSelected,t.setSelected),{labelProps:(0,i.v)(b,{onClick:e=>e.preventDefault()}),inputProps:(0,i.v)(x,{"aria-invalid":v||"invalid"===g||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":d||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:o,...null==c?{}:{value:c},name:u,type:"checkbox",...E}),isSelected:t.isSelected,isPressed:m||A,isDisabled:o,isReadOnly:d,isInvalid:v||"invalid"===g}}},2166:(e,t,n)=>{function i(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}n.d(t,{c:()=>i})},4836:(e,t,n)=>{n.d(t,{T:()=>i,m:()=>r});const i=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},r=e=>e&&"window"in e&&e.window===e?e:i(e).defaultView||window},5987:(e,t,n)=>{n.d(t,{$:()=>l});const i=new Set(["id"]),r=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),s=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),a=/^(data-.*)$/;function l(e,t={}){let{labelable:n,isLink:l,propNames:o}=t,d={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i.has(t)||n&&r.has(t)||l&&s.has(t)||(null==o?void 0:o.has(t))||a.test(t))&&(d[t]=e[t]);return d}},2268:(e,t,n)=>{function i(e){if(function(){if(null==r){r=!1;try{document.createElement("div").focus({get preventScroll(){return r=!0,!0}})}catch(e){}}return r}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],i=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==i;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return i instanceof HTMLElement&&n.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}(t)}}n.d(t,{e:()=>i});let r=null},8948:(e,t,n)=>{n.d(t,{P:()=>s,Y:()=>r});var i=n(9202);function r(e){return!(0!==e.mozInputSource||!e.isTrusted)||((0,i.m0)()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function s(e){return!(0,i.m0)()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType}},2217:(e,t,n)=>{n.d(t,{v:()=>a});var i=n(2166),r=n(2145),s=n(4164);function a(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let a=e[n];for(let e in a){let n=t[e],l=a[e];"function"==typeof n&&"function"==typeof l&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=(0,i.c)(n,l):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof l?"id"===e&&n&&l?t.id=(0,r.Tw)(n,l):t[e]=void 0!==l?l:n:t[e]=(0,s.A)(n,l)}}return t}},3831:(e,t,n)=>{n.d(t,{Fe:()=>o,_h:()=>d,rd:()=>l});var i=n(2268),r=n(9202),s=n(1609);const a=(0,s.createContext)({isNative:!0,open:function(e,t){!function(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}(e,(e=>o(e,t)))},useHref:e=>e});function l(){return(0,s.useContext)(a)}function o(e,t,n=!0){var s,a;let{metaKey:l,ctrlKey:d,altKey:c,shiftKey:u}=t;(0,r.gm)()&&(null===(a=window.event)||void 0===a||null===(s=a.type)||void 0===s?void 0:s.startsWith("key"))&&"_blank"===e.target&&((0,r.cX)()?l=!0:d=!0);let p=(0,r.Tc)()&&(0,r.cX)()&&!(0,r.bh)()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:d,altKey:c,shiftKey:u}):new MouseEvent("click",{metaKey:l,ctrlKey:d,altKey:c,shiftKey:u,bubbles:!0,cancelable:!0});o.isOpening=n,(0,i.e)(e),e.dispatchEvent(p),o.isOpening=!1}function d(e){var t;const n=l().useHref(null!==(t=null==e?void 0:e.href)&&void 0!==t?t:"");return{href:(null==e?void 0:e.href)?n:void 0,target:null==e?void 0:e.target,rel:null==e?void 0:e.rel,download:null==e?void 0:e.download,ping:null==e?void 0:e.ping,referrerPolicy:null==e?void 0:e.referrerPolicy}}o.isOpening=!1},9202:(e,t,n)=>{function i(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function r(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 s(e){let t=null;return()=>(null==t&&(t=e()),t)}n.d(t,{Tc:()=>u,bh:()=>o,cX:()=>a,gm:()=>h,lg:()=>c,m0:()=>f,un:()=>d});const a=s((function(){return r(/^Mac/i)})),l=s((function(){return r(/^iPhone/i)})),o=s((function(){return r(/^iPad/i)||a()&&navigator.maxTouchPoints>1})),d=s((function(){return l()||o()})),c=s((function(){return a()||d()})),u=s((function(){return i(/AppleWebKit/i)&&!p()})),p=s((function(){return i(/Chrome/i)})),f=s((function(){return i(/Android/i)})),h=s((function(){return i(/Firefox/i)}))},7233:(e,t,n)=>{n.d(t,{v:()=>a});let i=new Map,r=new Set;function s(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let s=i.get(n.target);if(s&&(s.delete(n.propertyName),0===s.size&&(n.target.removeEventListener("transitioncancel",t),i.delete(n.target)),0===i.size)){for(let e of r)e();r.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let r=i.get(n.target);r||(r=new Set,i.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function a(e){requestAnimationFrame((()=>{0===i.size?e():r.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?s():document.addEventListener("DOMContentLoaded",s))},7049:(e,t,n)=>{n.d(t,{J:()=>s});var i=n(9953),r=n(1609);function s(e){const t=(0,r.useRef)(null);return(0,i.N)((()=>{t.current=e}),[e]),(0,r.useCallback)(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}},8343:(e,t,n)=>{n.d(t,{F:()=>s});var i=n(7049),r=n(1609);function s(e,t,n){let s=(0,r.useRef)(t),a=(0,i.J)((()=>{n&&n(s.current)}));(0,r.useEffect)((()=>{var t;let n=null==e||null===(t=e.current)||void 0===t?void 0:t.form;return null==n||n.addEventListener("reset",a),()=>{null==n||n.removeEventListener("reset",a)}}),[e,a])}},6948:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(1609);function r(){let e=(0,i.useRef)(new Map),t=(0,i.useCallback)(((t,n,i,r)=>{let s=(null==r?void 0:r.once)?(...t)=>{e.current.delete(i),i(...t)}:i;e.current.set(i,{type:n,eventTarget:t,fn:s,options:r}),t.addEventListener(n,i,r)}),[]),n=(0,i.useCallback)(((t,n,i,r)=>{var s;let a=(null===(s=e.current.get(i))||void 0===s?void 0:s.fn)||i;t.removeEventListener(n,a,r),e.current.delete(i)}),[]),r=(0,i.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,i.useEffect)((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}},2145:(e,t,n)=>{n.d(t,{Tw:()=>c,Bi:()=>d,X1:()=>u});var i=n(9953),r=n(7049),s=n(1609);var a=n(415);let l=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),o=new Map;function d(e){let[t,n]=(0,s.useState)(e),r=(0,s.useRef)(null),d=(0,a.Cc)(t),c=(0,s.useCallback)((e=>{r.current=e}),[]);return l&&(o.has(d)&&!o.get(d).includes(c)?o.set(d,[...o.get(d),c]):o.set(d,[c])),(0,i.N)((()=>{let e=d;return()=>{o.delete(e)}}),[d]),(0,s.useEffect)((()=>{let e=r.current;e&&(r.current=null,n(e))})),d}function c(e,t){if(e===t)return e;let n=o.get(e);if(n)return n.forEach((e=>e(t))),t;let i=o.get(t);return i?(i.forEach((t=>t(e))),e):t}function u(e=[]){let t=d(),[n,a]=function(e){let[t,n]=(0,s.useState)(e),a=(0,s.useRef)(null),l=(0,r.J)((()=>{if(!a.current)return;let e=a.current.next();e.done?a.current=null:t===e.value?l():n(e.value)}));(0,i.N)((()=>{a.current&&l()}));let o=(0,r.J)((e=>{a.current=e(t),l()}));return[t,o]}(t),l=(0,s.useCallback)((()=>{a((function*(){yield t,yield document.getElementById(t)?t:void 0}))}),[t,a]);return(0,i.N)(l,[t,l,...e]),n}},7061:(e,t,n)=>{n.d(t,{b:()=>r});var i=n(2145);function r(e,t){let{id:n,"aria-label":r,"aria-labelledby":s}=e;if(n=(0,i.Bi)(n),s&&r){let e=new Set([n,...s.trim().split(/\s+/)]);s=[...e].join(" ")}else s&&(s=s.trim().split(/\s+/).join(" "));return r||s||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":s}}},9953:(e,t,n)=>{n.d(t,{N:()=>r});var i=n(1609);const r="undefined"!=typeof document?i.useLayoutEffect:()=>{}},3908:(e,t,n)=>{n.d(t,{U:()=>r});var i=n(1609);function r(e){const t=(0,i.useRef)(null);return(0,i.useMemo)((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}},6660:(e,t,n)=>{n.d(t,{w:()=>r});var i=n(9953);function r(e,t){(0,i.N)((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}},7979:(e,t,n)=>{n.d(t,{s:()=>l});var i=n(2217),r=n(1609),s=n(9461);const a={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function l(e){let{children:t,elementType:n="div",isFocusable:l,style:o,...d}=e,{visuallyHiddenProps:c}=function(e={}){let{style:t,isFocusable:n}=e,[i,l]=(0,r.useState)(!1),{focusWithinProps:o}=(0,s.R)({isDisabled:!n,onFocusWithinChange:e=>l(e)});return{visuallyHiddenProps:{...o,style:(0,r.useMemo)((()=>i?t:t?{...a,...t}:a),[i])}}}(e);return r.createElement(n,(0,i.v)(d,c),t)}},1144:(e,t,n)=>{n.d(t,{KZ:()=>d,Lf:()=>o,YD:()=>a,cX:()=>f});var i=n(1609);const r={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},s={...r,customError:!0,valid:!1},a={isInvalid:!1,validationDetails:r,validationErrors:[]},l=(0,i.createContext)({}),o="__formValidationState"+Date.now();function d(e){if(e[o]){let{realtimeValidation:t,displayValidation:n,updateValidation:i,resetValidation:r,commitValidation:s}=e[o];return{realtimeValidation:t,displayValidation:n,updateValidation:i,resetValidation:r,commitValidation:s}}return function(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:d,validate:f,validationBehavior:h="aria"}=e;n&&(t||(t="invalid"===n));let g=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:s}:null,v=(0,i.useMemo)((()=>u(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return c(n)}return[]}(f,o))),[f,o]);(null==d?void 0:d.validationDetails.valid)&&(d=null);let y=(0,i.useContext)(l),m=(0,i.useMemo)((()=>r?Array.isArray(r)?r.flatMap((e=>c(y[e]))):c(y[r]):[]),[y,r]),[b,A]=(0,i.useState)(y),[w,E]=(0,i.useState)(!1);y!==b&&(A(y),E(!1));let x=(0,i.useMemo)((()=>u(w?[]:m)),[w,m]),C=(0,i.useRef)(a),[k,S]=(0,i.useState)(a),T=(0,i.useRef)(a),[P,K]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{if(!P)return;K(!1);let e=v||d||C.current;p(e,T.current)||(T.current=e,S(e))})),{realtimeValidation:g||x||v||d||a,displayValidation:"native"===h?g||x||k:g||x||v||d||k,updateValidation(e){"aria"!==h||p(k,e)?C.current=e:S(e)},resetValidation(){let e=a;p(e,T.current)||(T.current=e,S(e)),"native"===h&&K(!1),E(!0)},commitValidation(){"native"===h&&K(!0),E(!0)}}}(e)}function c(e){return e?Array.isArray(e)?e:[e]:[]}function u(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:s}:null}function p(e,t){return e===t||e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every(((e,n)=>e===t.validationErrors[n]))&&Object.entries(e.validationDetails).every((([e,n])=>t.validationDetails[e]===n))}function f(...e){let t=new Set,n=!1,i={...r};for(let r of e){var s,a;for(let e of r.validationErrors)t.add(e);n||(n=r.isInvalid);for(let e in i)(s=i)[a=e]||(s[a]=r.validationDetails[e])}return i.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:i}}},1623:(e,t,n)=>{n.d(t,{H:()=>r});var i=n(8356);function r(e={}){let{isReadOnly:t}=e,[n,r]=(0,i.P)(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:n,setSelected:function(e){t||r(e)},toggle:function(){t||r(!n)}}}},8356:(e,t,n)=>{n.d(t,{P:()=>r});var i=n(1609);function r(e,t,n){let[r,s]=(0,i.useState)(e||t),a=(0,i.useRef)(void 0!==e),l=void 0!==e;(0,i.useEffect)((()=>{let e=a.current;e!==l&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),a.current=l}),[l]);let o=l?e:r,d=(0,i.useCallback)(((e,...t)=>{let i=(e,...t)=>{n&&(Object.is(o,e)||n(e,...t)),l||(o=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),s(((n,...r)=>{let s=e(l?o:n,...r);return i(s,...t),l?n:s}))):(l||s(e),i(e,...t))}),[l,o,n]);return[o,d]}},1152:(e,t,n)=>{n.d(t,{$:()=>y});var i=n(790),r=n(3908),s=n(2217),a=n(1609),l=n(9229);let o=!1,d=0;function c(){o=!0,setTimeout((()=>{o=!1}),50)}function u(e){"touch"===e.pointerType&&c()}function p(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",u):document.addEventListener("touchend",c),d++,()=>{d--,d>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",u):document.removeEventListener("touchend",c))}}var f=n(6133),h=n(9781);const g="_affix_1mh99_4",v="_hasAffix_1mh99_15",y=(0,a.forwardRef)(((e,t)=>{const{autoFocus:n,children:d,prefix:c,role:u,size:y,suffix:m,variant:b="primary"}=e,A=(0,r.U)(t),{buttonProps:w}=(0,l.s)(e,A),{hoverProps:E}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:r}=e,[s,l]=(0,a.useState)(!1),d=(0,a.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,a.useEffect)(p,[]);let{hoverProps:c,triggerHoverEnd:u}=(0,a.useMemo)((()=>{let e=(e,i)=>{if(d.pointerType=i,r||"touch"===i||d.isHovered||!e.currentTarget.contains(e.target))return;d.isHovered=!0;let s=e.currentTarget;d.target=s,t&&t({type:"hoverstart",target:s,pointerType:i}),n&&n(!0),l(!0)},s=(e,t)=>{if(d.pointerType="",d.target=null,"touch"===t||!d.isHovered)return;d.isHovered=!1;let r=e.currentTarget;i&&i({type:"hoverend",target:r,pointerType:t}),n&&n(!1),l(!1)},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{o&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!r&&e.currentTarget.contains(e.target)&&s(e,e.pointerType)}):(a.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{d.ignoreEmulatedMouseEvents||o||e(t,"mouse"),d.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!r&&e.currentTarget.contains(e.target)&&s(e,"mouse")}),{hoverProps:a,triggerHoverEnd:s}}),[t,n,i,r,d]);return(0,a.useEffect)((()=>{r&&u({currentTarget:d.target},d.pointerType)}),[r]),{hoverProps:c,isHovered:s}}(e),{focusProps:x}=(0,f.o)({autoFocus:n}),{clsx:C,rootProps:k}=(0,h.Y)("Button",e),S=!!c||!!m;return(0,i.jsxs)("button",{...k({classNames:["button",y?`button-${y}`:"",`button-${"link-danger"===b?"link":b}`,{"button-link-delete":"link-danger"===b,[v]:S},"_root_1mh99_1"]}),...(0,s.v)(w,E,x),role:u,children:[c&&(0,i.jsx)("span",{className:C({classNames:[g],prefixedNames:["affix","prefix"]}),children:c}),S?(0,i.jsx)("span",{className:C({classNames:[g],prefixedNames:["affix","infix"]}),children:d}):d,m&&(0,i.jsx)("span",{className:C({classNames:[g],prefixedNames:["affix","suffix"]}),children:m})]})}));y.displayName="Button"},9204:(e,t,n)=>{n.d(t,{S:()=>y});var i=n(790),r=n(3908),s=n(2145),a=n(1609),l=n(8868),o=n(1144),d=n(5353);function c(e,t,n){let i=(0,o.KZ)({...e,value:t.isSelected}),{isInvalid:r,validationErrors:s,validationDetails:c}=i.displayValidation,{labelProps:u,inputProps:p,isSelected:f,isPressed:h,isDisabled:g,isReadOnly:v}=(0,d.e)({...e,isInvalid:r},t,n);(0,l.X)(e,i,n);let{isIndeterminate:y,isRequired:m,validationBehavior:b="aria"}=e;return(0,a.useEffect)((()=>{n.current&&(n.current.indeterminate=!!y)})),{labelProps:u,inputProps:{...p,checked:f,"aria-required":m&&"aria"===b||void 0,required:m&&"native"===b},isSelected:f,isPressed:h,isDisabled:g,isReadOnly:v,isInvalid:r,validationErrors:s,validationDetails:c}}var u=n(2526),p=n(1623),f=n(8509),h=n(9781);const g="_readOnly_lmlip_21",v="_disabled_lmlip_25",y=(0,a.forwardRef)(((e,t)=>{const{description:n}=e,{clsx:l,componentProps:d,rootProps:y}=(0,h.Y)("Checkbox",e),m=(0,r.U)(t),b=(0,a.useRef)(null),A=(0,s.Bi)(),w=n?(0,s.Bi)():void 0,E=(0,a.useContext)(f.I),{inputProps:x,isDisabled:C,isReadOnly:k,labelProps:S}=E?function(e,t,n){const i=(0,p.H)({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}});let{name:r,descriptionId:s,errorMessageId:l,validationBehavior:d}=u.n.get(t);var f;d=null!==(f=e.validationBehavior)&&void 0!==f?f:d;let{realtimeValidation:h}=(0,o.KZ)({...e,value:i.isSelected,name:void 0,validationBehavior:"aria"}),g=(0,a.useRef)(o.YD),v=()=>{t.setInvalid(e.value,h.isInvalid?h:g.current)};(0,a.useEffect)(v);let y=t.realtimeValidation.isInvalid?t.realtimeValidation:h,m="native"===d?t.displayValidation:y;var b;let A=c({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||r,isRequired:null!==(b=e.isRequired)&&void 0!==b?b:t.isRequired,validationBehavior:d,[o.Lf]:{realtimeValidation:y,displayValidation:m,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(e){g.current=e,v()}}},i,n);return{...A,inputProps:{...A.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?l:null,s].filter(Boolean).join(" ")||void 0}}}({...d,children:e.label,value:d.value},E,b):c({...d,children:e.label},(0,p.H)(d),b),T=(0,i.jsx)("span",{...S,className:l({classNames:"_labelContent_lmlip_29",prefixedNames:"label-content"}),children:e.label});return(0,i.jsxs)("div",{...y({classNames:["_root_lmlip_1",{[v]:C,[g]:k}]}),children:[(0,i.jsxs)("label",{className:l({classNames:"_label_lmlip_8",prefixedNames:"label"}),id:A,ref:m,children:[(0,i.jsx)("input",{...x,"aria-describedby":w,"aria-labelledby":A,className:l({classNames:"_input_lmlip_15",prefixedNames:"input"}),ref:b}),T]}),n&&(0,i.jsx)("div",{className:l({classNames:["_description_lmlip_18","description"],prefixedNames:"description"}),id:w,children:n})]})}));y.displayName="Checkbox"},8509:(e,t,n)=>{n.d(t,{$:()=>y,I:()=>v});var i=n(790),r=n(2526),s=n(5987),a=n(2217),l=n(4742),o=n(9461),d=n(3908),c=n(1144),u=n(8356),p=n(1609),f=n(9781);const h="_descriptionBeforeInput_mk25k_34",g="_horizontal_mk25k_63",v=(0,p.createContext)(null),y=(0,p.forwardRef)(((e,t)=>{const{children:n,description:y,descriptionArea:m,errorMessage:b,isRequired:A,label:w,orientation:E="vertical"}=e,{clsx:x,componentProps:C,rootProps:k}=(0,f.Y)("CheckboxGroup",e),S=(0,d.U)(t),T=function(e={}){let[t,n]=(0,u.P)(e.value,e.defaultValue||[],e.onChange),i=!!e.isRequired&&0===t.length,r=(0,p.useRef)(new Map),s=(0,c.KZ)({...e,value:t}),a=s.displayValidation.isInvalid;var l;return{...s,value:t,setValue(t){e.isReadOnly||e.isDisabled||n(t)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected:e=>t.includes(e),addValue(i){e.isReadOnly||e.isDisabled||t.includes(i)||n(t.concat(i))},removeValue(i){e.isReadOnly||e.isDisabled||t.includes(i)&&n(t.filter((e=>e!==i)))},toggleValue(i){e.isReadOnly||e.isDisabled||(t.includes(i)?n(t.filter((e=>e!==i))):n(t.concat(i)))},setInvalid(e,t){let n=new Map(r.current);t.isInvalid?n.set(e,t):n.delete(e),r.current=n,s.updateValidation((0,c.cX)(...n.values()))},validationState:null!==(l=e.validationState)&&void 0!==l?l:a?"invalid":null,isInvalid:a,isRequired:i}}(C),{descriptionProps:P,errorMessageProps:K,groupProps:M,isInvalid:I,labelProps:_,validationDetails:D,validationErrors:R}=function(e,t){let{isDisabled:n,name:i,validationBehavior:d="aria"}=e,{isInvalid:c,validationErrors:u,validationDetails:p}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:g,errorMessageProps:v}=(0,l.M)({...e,labelElementType:"span",isInvalid:c,errorMessage:e.errorMessage||u});r.n.set(t,{name:i,descriptionId:g.id,errorMessageId:v.id,validationBehavior:d});let y=(0,s.$)(e,{labelable:!0}),{focusWithinProps:m}=(0,o.R)({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:(0,a.v)(y,{role:"group","aria-disabled":n||void 0,...h,...m}),labelProps:f,descriptionProps:g,errorMessageProps:v,isInvalid:c,validationErrors:u,validationDetails:p}}(C,T);return(0,i.jsxs)("div",{...k({classNames:["_root_mk25k_1",{[h]:"before-input"===m,[g]:"horizontal"===E}]}),...M,"aria-invalid":I,ref:S,children:[(0,i.jsxs)("span",{..._,className:x({classNames:"_label_mk25k_19",prefixedNames:"label"}),children:[w,A?(0,i.jsx)("span",{className:x({classNames:"_markedRequired_mk25k_27",prefixedNames:"marked-required"}),children:"*"}):""]}),(0,i.jsx)(v.Provider,{value:T,children:(0,i.jsx)("div",{className:x({classNames:"_items_mk25k_57",prefixedNames:"items"}),children:n})}),y&&(0,i.jsx)("div",{...P,className:x({classNames:"_description_mk25k_34",prefixedNames:"description"}),children:y}),I&&(0,i.jsxs)("div",{...K,className:x({classNames:"_errorMessage_mk25k_46",prefixedNames:"error-message"}),children:["function"==typeof b?b({isInvalid:I,validationDetails:D,validationErrors:R}):b,R.join(" ")]})]})}));y.displayName="CheckboxGroup"},9180:(e,t,n)=>{n.d(t,{$:()=>c});var i=n(790),r=n(3908),s=n(1609),a=n(9229),l=n(9781);const o="info",d="default",c=(0,s.forwardRef)(((e,t)=>{const{children:n,isDismissable:s=!1,isDismissed:c,level:u=o,onDismiss:p,variant:f=d}=e,h=(0,r.U)(t),g=(0,r.U)(null),{clsx:v,rootProps:y}=(0,l.Y)("Notice",e),{buttonProps:m}=(0,a.s)({onPress:()=>null==p?void 0:p()},g);return!c&&(0,i.jsxs)("div",{...y({classNames:["notice",`notice-${u}`,"_root_kbeg9_1",{"notice-alt":"alt"===f}]}),ref:h,children:[(0,i.jsx)("div",{className:v({classNames:"_content_kbeg9_4",prefixedNames:"content"}),children:n}),s&&(0,i.jsx)("button",{...m,"aria-label":"object"==typeof s?s.label:"Dismiss notice",className:v({classNames:["notice-dismiss"],prefixedNames:"dismiss-button"}),type:"button"})]})}));c.displayName="Notice"},3677:(e,t,n)=>{n.d(t,{y:()=>d});var i=n(790),r=n(1609),s=n(3908),a=n(7979),l=n(9781);const o=24,d=(0,r.forwardRef)(((e,t)=>{const n=(0,s.U)(t),{componentProps:r,rootProps:d}=(0,l.Y)("Spinner",e),{role:c="status",size:u=o}=r;return(0,i.jsxs)("span",{ref:n,role:c,...d(),children:[(0,i.jsx)(a.s,{children:r.label||"Loading"}),(0,i.jsx)("img",{"aria-hidden":"true",height:u,src:"data:image/gif;base64,R0lGODlhKAAoAPIHAJmZmdPT04qKivHx8fz8/LGxsYCAgP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAwAHACwAAAAAKAAoAEAD1Hi63P4wEmCqtcGFywF5BSeOJFkwW6muGDRQ7AoM0RPAsQFktZKqHsaLxVvkjqPGBJkL9hSEG2v3eT4HgQJAUBEACgGa9TEcUaO4jjjyI1UZhFVxMWAy1weu/ShgpPcyDX+AZhAhhCInTwSHdgVvY5GSk5SSaFMBkJGMgI9jZSIzQoMVojWNI5oHcSWKDksqcz4yqqQiApmXUw1tiCRztr4WAAzCLAx6xiN9C6jKF64Hdc8ieAe9z7Kz1AbaC7DCTjWge6aRUkc7lQ1YWnpeYNbr8xAJACH5BAkDAAcALAIAAgAkACQAAAO7eLqsEwUIYwQoYbTNFwkAJY4iEBBdCpIsaaYNUbQ0WaDwENbmM7MATUdXMwBwikAryCHsakLGz4VcTGkAjrJVaGyL2c2XFfA8a4KqojBZ4sbFLmPQppUP56LhdvjkgQcDei0CdXoPg4k1EIqNNn+OgxKRkYaUl5h6lpk0FpySV59ccKIkGaVQeKiAB6Sod06rJUiun3dWsnIMsaVHHESfTEOQjcIpMph8MAsrxbfLHs1gJ9ApPpMVFxnQCQAh+QQJAwAHACwCAAIAJAAkAAADuni6rBMFCGMEKGG0zRcJACWOIhAQXQqSLGmmDVG0NFmg8BDWZcQCmo6ORwEuBpORcUPY8QTBReCHY8yIhgLHKdIyplhDgHMljRXNcJbcAuDAYUHVUTtzsbfjXXkYqJUYBUk1D3+GIhCHhz6KfxKNf4OQk5QskpUtFpg8F5s1GJ40GaEtGnueAApwpGJop5VuUqytVqReDGmbsRtDsFG8r2pLKTKQeTBSwW1nyLgrRCZzzQ0PEUkWGL8dCQAh+QQJAwAHACwCAAIA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G0zRcJACWOIhAQXQqSLGmmDVG0NFmg8BC6UT0Cmo6OJAgehj4DkEPYjQKNwSQJwDFmLg42WWgEWt3NN1mBKpotgJZMqSrGrGJsyjY7Wcvzlq0eJAUYBXRsFA+EFYciEImMBj2NhxKQh4OTlpdEmH93mnh7nTZwoCQZoy0anKNqB6KmZmimSlatnWYLn5hhDLCabhtIl3kcwJC+KTKTNzAMK5G2yx7NPiZW0L8QkhUXGdAJACH5BAUDAAcALAIAAgAkACQAAAO7eLqsEwUIYwQoYbTNFwkAJY4iEBBdCpIsaaYNUbQ0WaDwELLYs9MATUfXCjAIv1aQg2wVNoMaBYBjzIqcpLMRqBk3WqyiSXvGJlIDVdGtCYSLa9rwDZMEp8NAPgfo5xQWgCQPg4YkEIeKBhGLhxKOhmiRlJUtk5Y0gpk1F5w1GJ80GaItGnacfgdtpRRfZKVrbK10DXyZZkeoi7INRJZLQ7uAwSkykTcwDCuGL8oxzFImVc9QEJAVFxnPCQA7",width:u})]})}));d.displayName="Spinner"},3413:(e,t,n)=>{n.d(t,{d:()=>h});var i=n(790),r=n(1609),s=n(3908),a=n(5353),l=n(6133),o=n(2145),d=n(7979),c=n(1623),u=n(9781);const p="_isSelected_umbom_16",f="_isDisabled_umbom_19",h=(0,r.forwardRef)(((e,t)=>{const{description:n,label:r}=e,h=(0,s.U)(t),g=(0,c.H)(e),{clsx:v,componentProps:y,rootProps:m}=(0,u.Y)("Switch",e),{inputProps:b,isDisabled:A,labelProps:w}=function(e,t,n){let{labelProps:i,inputProps:r,isSelected:s,isPressed:l,isDisabled:o,isReadOnly:d}=(0,a.e)(e,t,n);return{labelProps:i,inputProps:{...r,role:"switch",checked:s},isSelected:s,isPressed:l,isDisabled:o,isReadOnly:d}}({...y,children:r},g,h),{focusProps:E,isFocusVisible:x}=(0,l.o)(),C=n?(0,o.Bi)():void 0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("label",{...m({classNames:["_root_umbom_1",{[f]:A,[p]:g.isSelected}]}),...w,children:[(0,i.jsx)(d.s,{children:(0,i.jsx)("input",{...b,...E,"aria-describedby":C,ref:h})}),(0,i.jsxs)("div",{className:v({classNames:["_input_umbom_7"],prefixedNames:"input"}),children:[(0,i.jsxs)("svg",{"aria-hidden":"true",height:28,width:44,children:[(0,i.jsx)("rect",{className:v({classNames:["_track_umbom_1"]}),height:20,rx:10,width:36,x:4,y:4}),(0,i.jsx)("circle",{className:v({classNames:["_thumb_umbom_4"]}),cx:g.isSelected?30:14,cy:14,r:8}),x&&(0,i.jsx)("rect",{className:v({classNames:["_focusRing_umbom_13"],prefixedNames:"focusRing"}),fill:"none",height:26,rx:14,strokeWidth:2,width:42,x:1,y:1})]}),(0,i.jsx)("span",{className:v({prefixedNames:"label"}),children:r})]})]}),n&&(0,i.jsx)("p",{className:v({classNames:["description"],prefixedNames:"description"}),id:C,children:n})]})}));h.displayName="Switch"},3412:(e,t,n)=>{n.d(t,{o:()=>i});const i=e=>null;i.getCollectionNode=function*(e){const{title:t}=e;yield{props:e,rendered:t,type:"item"}}},6420:(e,t,n)=>{n.d(t,{t:()=>ke});var i=n(790),r=n(1609),s=n(3908);const a=new WeakMap;function l(e,t,n){return e?("string"==typeof t&&(t=t.replace(/\s+/g,"")),`${a.get(e)}-${n}-${t}`):""}class o{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,n;return this.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return null!=e&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return null!=e&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){do{null==(e=this.collection.getKeyAfter(e))&&(e=this.collection.getFirstKey())}while(this.isDisabled(e));return e}getPreviousKey(e){do{null==(e=this.collection.getKeyBefore(e))&&(e=this.collection.getLastKey())}while(this.isDisabled(e));return e}constructor(e,t,n,i=new Set){this.collection=e,this.flipDirection="rtl"===t&&"horizontal"===n,this.disabledKeys=i,this.tabDirection="horizontal"===n}}var d=n(2145),c=n(7061),u=n(2217);const p=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),f=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function h(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return p.has(t.script)}let t=e.split("-")[0];return f.has(t)}var g=n(415);const v=Symbol.for("react-aria.i18n.locale");function y(){let e="undefined"!=typeof window&&window[v]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:h(e)?"rtl":"ltr"}}let m=y(),b=new Set;function A(){m=y();for(let e of b)e(m)}const w=r.createContext(null);function E(){let e=function(){let e=(0,g.wR)(),[t,n]=(0,r.useState)(m);return(0,r.useEffect)((()=>(0===b.size&&window.addEventListener("languagechange",A),b.add(n),()=>{b.delete(n),0===b.size&&window.removeEventListener("languagechange",A)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return(0,r.useContext)(w)||e}var x=n(9202);function C(e){return(0,x.lg)()?e.altKey:e.ctrlKey}function k(e){return(0,x.cX)()?e.metaKey:e.ctrlKey}const S=window.ReactDOM;var T=n(4836);function P(e,t){return"#comment"!==e.nodeName&&function(e){const t=(0,T.m)(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:n,visibility:i}=e.style,r="none"!==n&&"hidden"!==i&&"collapse"!==i;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:i}=t(e);r="none"!==n&&"hidden"!==i&&"collapse"!==i}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||P(e.parentElement,e))}const K=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],M=K.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";K.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const I=K.join(':not([hidden]):not([tabindex="-1"]),');function _(e,t){return!!e&&!!t&&t.some((t=>t.contains(e)))}function D(e,t,n){let i=(null==t?void 0:t.tabbable)?I:M,r=(0,T.T)(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var r;return(null==t||null===(r=t.from)||void 0===r?void 0:r.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(i)||!P(e)||n&&!_(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(r.currentNode=t.from),r}class R{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let i=this.fastMap.get(null!=t?t:null);if(!i)return;let r=new N({scopeRef:e});i.addChild(r),r.parent=i,this.fastMap.set(e,r),n&&(r.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&_(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let i=t.children;n&&(n.removeChild(t),i.size>0&&i.forEach((e=>n&&n.addChild(e)))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new R;var n;for(let i of this.traverse())t.addTreeNode(i.scopeRef,null!==(n=null===(e=i.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,i.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new N({scopeRef:null}),this.fastMap.set(null,this.root)}}class N{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}new R;var B=n(8374),j=n(3831),L=n(2268),F=n(7049);function Q(e,t,n,i){let s=(0,F.J)(n),a=null==n;(0,r.useEffect)((()=>{if(a||!e.current)return;let n=e.current;return n.addEventListener(t,s,i),()=>{n.removeEventListener(t,s,i)}}),[e,t,i,a,s])}function Y(e,t){let n=window.getComputedStyle(e),i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function G(e,t){let n=W(e,t,"left"),i=W(e,t,"top"),r=t.offsetWidth,s=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,{borderTopWidth:o,borderLeftWidth:d}=getComputedStyle(e),c=e.scrollLeft+parseInt(d,10),u=e.scrollTop+parseInt(o,10),p=c+e.clientWidth,f=u+e.clientHeight;n<=a?a=n-parseInt(d,10):n+r>p&&(a+=n+r-p),i<=u?l=i-parseInt(o,10):i+s>f&&(l+=i+s-f),e.scrollLeft=a,e.scrollTop=l}function W(e,t,n){const i="left"===n?"offsetLeft":"offsetTop";let r=0;for(;t.offsetParent&&(r+=t[i],t.offsetParent!==e);){if(t.offsetParent.contains(e)){r-=e[i];break}t=t.offsetParent}return r}function U(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(a).overflow){let t=function(e,t){const n=[];for(;e&&e!==document.documentElement;)Y(e,t)&&n.push(e),e=e.parentElement;return n}(e);for(let n of t)G(n,e)}else{var n;let{left:a,top:l}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:o,top:d}=e.getBoundingClientRect();var i,r,s;(Math.abs(a-o)>1||Math.abs(l-d)>1)&&(null==t||null===(r=t.containingElement)||void 0===r||null===(i=r.scrollIntoView)||void 0===i||i.call(r,{block:"center",inline:"center"}),null===(s=e.scrollIntoView)||void 0===s||s.call(e,{block:"nearest"}))}}}var H=n(5562);function O(e){let{selectionManager:t,keyboardDelegate:n,ref:i,autoFocus:s=!1,shouldFocusWrap:a=!1,disallowEmptySelection:l=!1,disallowSelectAll:o=!1,selectOnFocus:d="replace"===t.selectionBehavior,disallowTypeAhead:c=!1,shouldUseVirtualFocus:p,allowsTabNavigation:f=!1,isVirtualized:h,scrollRef:g=i,linkBehavior:v="action"}=e,{direction:y}=E(),m=(0,j.rd)(),b=(0,r.useRef)({top:0,left:0});Q(g,"scroll",h?null:()=>{b.current={top:g.current.scrollTop,left:g.current.scrollLeft}});const A=(0,r.useRef)(s);(0,r.useEffect)((()=>{if(A.current){let e=null;"first"===s&&(e=n.getFirstKey()),"last"===s&&(e=n.getLastKey());let r=t.selectedKeys;if(r.size)for(let n of r)if(t.canSelectItem(n)){e=n;break}t.setFocused(!0),t.setFocusedKey(e),null!=e||p||(0,B.l)(i.current)}}),[]);let w=(0,r.useRef)(t.focusedKey);(0,r.useEffect)((()=>{if(t.isFocused&&null!=t.focusedKey&&(t.focusedKey!==w.current||A.current)&&(null==g?void 0:g.current)){let e=(0,H.ME)(),n=i.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!n)return;("keyboard"===e||A.current)&&(G(g.current,n),"virtual"!==e&&U(n,{containingElement:i.current}))}!p&&t.isFocused&&null==t.focusedKey&&null!=w.current&&(0,B.l)(i.current),w.current=t.focusedKey,A.current=!1})),Q(i,"react-aria-focus-scope-restore",(e=>{e.preventDefault(),t.setFocused(!0)}));let x,T={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!i.current.contains(e.target))return;const r=(n,i)=>{if(null!=n){if(t.isLink(n)&&"selection"===v&&d&&!C(e)){(0,S.flushSync)((()=>{t.setFocusedKey(n,i)}));let r=g.current.querySelector(`[data-key="${CSS.escape(n.toString())}"]`),s=t.getItemProps(n);return void m.open(r,e,s.href,s.routerOptions)}if(t.setFocusedKey(n,i),t.isLink(n)&&"override"===v)return;e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(n):d&&!C(e)&&t.replaceSelection(n)}};switch(e.key){case"ArrowDown":if(n.getKeyBelow){var s,c,u;let i=null!=t.focusedKey?null===(s=n.getKeyBelow)||void 0===s?void 0:s.call(n,t.focusedKey):null===(c=n.getFirstKey)||void 0===c?void 0:c.call(n);null==i&&a&&(i=null===(u=n.getFirstKey)||void 0===u?void 0:u.call(n,t.focusedKey)),null!=i&&(e.preventDefault(),r(i))}break;case"ArrowUp":if(n.getKeyAbove){var p,h,b;let i=null!=t.focusedKey?null===(p=n.getKeyAbove)||void 0===p?void 0:p.call(n,t.focusedKey):null===(h=n.getLastKey)||void 0===h?void 0:h.call(n);null==i&&a&&(i=null===(b=n.getLastKey)||void 0===b?void 0:b.call(n,t.focusedKey)),null!=i&&(e.preventDefault(),r(i))}break;case"ArrowLeft":if(n.getKeyLeftOf){var A,w,E;let i=null===(A=n.getKeyLeftOf)||void 0===A?void 0:A.call(n,t.focusedKey);null==i&&a&&(i="rtl"===y?null===(w=n.getFirstKey)||void 0===w?void 0:w.call(n,t.focusedKey):null===(E=n.getLastKey)||void 0===E?void 0:E.call(n,t.focusedKey)),null!=i&&(e.preventDefault(),r(i,"rtl"===y?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var x,T,P;let i=null===(x=n.getKeyRightOf)||void 0===x?void 0:x.call(n,t.focusedKey);null==i&&a&&(i="rtl"===y?null===(T=n.getLastKey)||void 0===T?void 0:T.call(n,t.focusedKey):null===(P=n.getFirstKey)||void 0===P?void 0:P.call(n,t.focusedKey)),null!=i&&(e.preventDefault(),r(i,"rtl"===y?"last":"first"))}break;case"Home":if(n.getFirstKey){e.preventDefault();let i=n.getFirstKey(t.focusedKey,k(e));t.setFocusedKey(i),k(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(i):d&&t.replaceSelection(i)}break;case"End":if(n.getLastKey){e.preventDefault();let i=n.getLastKey(t.focusedKey,k(e));t.setFocusedKey(i),k(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(i):d&&t.replaceSelection(i)}break;case"PageDown":if(n.getKeyPageBelow){let i=n.getKeyPageBelow(t.focusedKey);null!=i&&(e.preventDefault(),r(i))}break;case"PageUp":if(n.getKeyPageAbove){let i=n.getKeyPageAbove(t.focusedKey);null!=i&&(e.preventDefault(),r(i))}break;case"a":k(e)&&"multiple"===t.selectionMode&&!0!==o&&(e.preventDefault(),t.selectAll());break;case"Escape":l||0===t.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(e.shiftKey)i.current.focus();else{let e,t,n=D(i.current,{tabbable:!0});do{t=n.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&(0,L.e)(e)}break}}},onFocus:e=>{if(t.isFocused)e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),null==t.focusedKey){let i=e=>{null!=e&&(t.setFocusedKey(e),d&&t.replaceSelection(e))},a=e.relatedTarget;var r,s;a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?i(null!==(r=t.lastSelectedKey)&&void 0!==r?r:n.getLastKey()):i(null!==(s=t.firstSelectedKey)&&void 0!==s?s:n.getFirstKey())}else h||(g.current.scrollTop=b.current.top,g.current.scrollLeft=b.current.left);if(null!=t.focusedKey){let e=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);e&&(e.contains(document.activeElement)||(0,L.e)(e),"keyboard"===(0,H.ME)()&&U(e,{containingElement:i.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){g.current===e.target&&e.preventDefault()}},{typeSelectProps:P}=function(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:i}=e,s=(0,r.useRef)({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let r=function(e){return 1!==e.length&&/^[A-Z]/i.test(e)?"":e}(e.key);if(!r||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target))return;" "===r&&s.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),s.search+=r;let a=t.getKeyForSearch(s.search,n.focusedKey);null==a&&(a=t.getKeyForSearch(s.search)),null!=a&&(n.setFocusedKey(a),i&&i(a)),clearTimeout(s.timeout),s.timeout=setTimeout((()=>{s.search=""}),1e3)}:null}}}({keyboardDelegate:n,selectionManager:t});return c||(T=(0,u.v)(P,T)),p||(x=null==t.focusedKey?0:-1),{collectionProps:{...T,tabIndex:x}}}class J{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var n;return t&&null!==(n=t.prevKey)&&void 0!==n?n:null}getKeyAfter(e){let t=this.keyMap.get(e);var n;return t&&null!==(n=t.nextKey)&&void 0!==n?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let n of e.childNodes)t(n)};for(let n of e)t(n);let n=null,i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),n=t,n.nextKey=void 0;var r;this.lastKey=null!==(r=null==n?void 0:n.key)&&void 0!==r?r:null}}class V extends Set{constructor(e,t,n){super(e),e instanceof V?(this.anchorKey=null!=t?t:e.anchorKey,this.currentKey=null!=n?n:e.currentKey):(this.anchorKey=t,this.currentKey=n)}}var q=n(8356);function z(e,t){return e?"all"===e?"all":new V(e):t}function Z(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let i=[...X(e,t),t],r=[...X(e,n),n],s=i.slice(0,r.length).findIndex(((e,t)=>e!==r[t]));return-1!==s?(t=i[s],n=r[s],t.index-n.index):i.findIndex((e=>e===n))>=0?1:(r.findIndex((e=>e===t)),-1)}function X(e,t){let n=[];for(;null!=(null==t?void 0:t.parentKey);)t=e.getItem(t.parentKey),n.unshift(t);return n}class ${get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&Z(this.collection,n,e)<0)&&(e=n)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&Z(this.collection,n,e)>0)&&(e=n)}return null==e?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new V([e],e,e);else{let r=this.state.selectedKeys;var n;let s=null!==(n=r.anchorKey)&&void 0!==n?n:e;var i;t=new V(r,s,e);for(let n of this.getKeyRange(s,null!==(i=r.currentKey)&&void 0!==i?i:e))t.delete(n);for(let n of this.getKeyRange(e,s))this.canSelectItem(n)&&t.add(n)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let n=this.collection.getItem(e),i=this.collection.getItem(t);return n&&i?Z(this.collection,n,i)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if(null===(n=this.layoutDelegate)||void 0===n?void 0:n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let i=[],r=e;for(;null!=r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&i.push(r),r===t)return i;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let t=new V("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):this.canSelectItem(e)&&(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){if("none"===this.selectionMode)return;if(null==(e=this.getKey(e)))return;let t=this.canSelectItem(e)?new V([e],e,e):new V;this.state.setSelectedKeys(t)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new V;for(let n of e)if(n=this.getKey(n),null!=n&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;null!=n;){if(this.canSelectItem(n)){let a=this.collection.getItem(n);"item"===a.type&&e.push(n),a.hasChildNodes&&(this.allowsCellSelection||"item"!==a.type)&&t((r=a,s=this.collection,i="function"==typeof s.getChildren?s.getChildren(r.key):r.childNodes,function(e){let t=0;for(let n of e){if(0===t)return n;t++}}(i)).key)}n=this.collection.getKeyAfter(n)}var i,r,s};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new V)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||(null==n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)||"cell"===n.type&&!this.allowsCellSelection)}isDisabled(e){var t,n;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,n;return!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}constructor(e,t,n){var i;this.collection=e,this.state=t,this.allowsCellSelection=null!==(i=null==n?void 0:n.allowsCellSelection)&&void 0!==i&&i,this._isSelectAll=null,this.layoutDelegate=(null==n?void 0:n.layoutDelegate)||null}}class ee{build(e,t){return this.context=t,te((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:t,items:n}=e;if(r.isValidElement(t)&&t.type===r.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if("function"==typeof t){if(!n)throw new Error("props.children was a function but props.items is missing");for(let n of e.items)yield*this.getFullNode({value:n},{renderer:t})}else{let e=[];r.Children.forEach(t,(t=>{e.push(t)}));let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,i){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${i}${t.key}`;let r=t.value;if(null!=r){var s;let e=null!==(s=r.key)&&void 0!==s?s:r.id;if(null==e)throw new Error("No key found for item");return e}return i?`${i}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,i){if(r.isValidElement(e.element)&&e.element.type===r.Fragment){let s=[];r.Children.forEach(e.element.props.children,(e=>{s.push(e)}));let a=e.index;for(const e of s)yield*this.getFullNode({element:e,index:a++},t,n,i);return}let s=e.element;if(!s&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context)))return n.index=e.index,n.parentKey=i?i.key:null,void(yield n);s=t.renderer(e.value)}if(r.isValidElement(s)){let r=s.type;if("function"!=typeof r&&"function"!=typeof r.getCollectionNode){let e="function"==typeof s.type?s.type.name:s.type;throw new Error(`Unknown element <${e}> in collection.`)}let a=r.getCollectionNode(s.props,this.context),l=e.index,o=a.next();for(;!o.done&&o.value;){let r=o.value;e.index=l;let d=r.key;d||(d=r.element?null:this.getKey(s,e,t,n));let c=[...this.getFullNode({...r,key:d,index:l,wrapper:ne(e.wrapper,r.wrapper)},this.getChildState(t,r),n?`${n}${s.key}`:s.key,i)];for(let t of c){if(t.value=r.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw new Error(`Unsupported type <${ie(t.type)}> in <${ie(i.type)}>. Only <${ie(e.type)}> is supported.`);l++,yield t}o=a.next(c)}return}if(null==e.key)return;let a=this,l={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:e.value,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:te((function*(){if(!e.hasChildNodes)return;let n=0;for(let i of e.childNodes()){null!=i.key&&(i.key=`${l.key}${i.key}`),i.index=n;let e=a.getFullNode(i,a.getChildState(t,i),l.key,l);for(let t of e)n++,yield t}}))};yield l}constructor(){this.cache=new WeakMap}}function te(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||(n=e());for(let e of n)t.push(e),yield e}}}function ne(e,t){return e&&t?n=>e(t(n)):e||t||void 0}function ie(e){return e[0].toUpperCase()+e.slice(1)}function re(e){let{filter:t,layoutDelegate:n}=e,i=function(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:i,selectionBehavior:s="toggle",disabledBehavior:a="all"}=e,l=(0,r.useRef)(!1),[,o]=(0,r.useState)(!1),d=(0,r.useRef)(null),c=(0,r.useRef)(null),[,u]=(0,r.useState)(null),p=(0,r.useMemo)((()=>z(e.selectedKeys)),[e.selectedKeys]),f=(0,r.useMemo)((()=>z(e.defaultSelectedKeys,new V)),[e.defaultSelectedKeys]),[h,g]=(0,q.P)(p,f,e.onSelectionChange),v=(0,r.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[y,m]=(0,r.useState)(s);"replace"===s&&"toggle"===y&&"object"==typeof h&&0===h.size&&m("replace");let b=(0,r.useRef)(s);return(0,r.useEffect)((()=>{s!==b.current&&(m(s),b.current=s)}),[s]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(e){l.current=e,o(e)},get focusedKey(){return d.current},get childFocusStrategy(){return c.current},setFocusedKey(e,t="first"){d.current=e,c.current=t,u(e)},selectedKeys:h,setSelectedKeys(e){!i&&function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,h)||g(e)},disabledKeys:v,disabledBehavior:a}}(e),s=(0,r.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),a=(0,r.useCallback)((e=>new J(t?t(e):e)),[t]),l=(0,r.useMemo)((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),o=function(e,t,n){let i=(0,r.useMemo)((()=>new ee),[]),{children:s,items:a,collection:l}=e;return(0,r.useMemo)((()=>{if(l)return l;let e=i.build({children:s,items:a},n);return t(e)}),[i,s,a,l,n,t])}(e,a,l),d=(0,r.useMemo)((()=>new $(o,i,{layoutDelegate:n})),[o,i,n]);const c=(0,r.useRef)(null);return(0,r.useEffect)((()=>{if(null!=i.focusedKey&&!o.getItem(i.focusedKey)&&c.current){const u=c.current.getItem(i.focusedKey),p=[...c.current.getKeys()].map((e=>{const t=c.current.getItem(e);return"item"===(null==t?void 0:t.type)?t:null})).filter((e=>null!==e)),f=[...o.getKeys()].map((e=>{const t=o.getItem(e);return"item"===(null==t?void 0:t.type)?t:null})).filter((e=>null!==e));var e,t;const h=(null!==(e=null==p?void 0:p.length)&&void 0!==e?e:0)-(null!==(t=null==f?void 0:f.length)&&void 0!==t?t:0);var n,r,s;let g=Math.min(h>1?Math.max((null!==(n=null==u?void 0:u.index)&&void 0!==n?n:0)-h+1,0):null!==(r=null==u?void 0:u.index)&&void 0!==r?r:0,(null!==(s=null==f?void 0:f.length)&&void 0!==s?s:0)-1),v=null,y=!1;for(;g>=0;){if(!d.isDisabled(f[g].key)){v=f[g];break}var a,l;g<f.length-1&&!y?g++:(y=!0,g>(null!==(a=null==u?void 0:u.index)&&void 0!==a?a:0)&&(g=null!==(l=null==u?void 0:u.index)&&void 0!==l?l:0),g--)}i.setFocusedKey(v?v.key:null)}c.current=o}),[o,d,i,i.focusedKey]),{collection:o,disabledKeys:s,selectionManager:d}}function se(e){var t;let n=function(e){var t;let[n,i]=(0,q.P)(e.selectedKey,null!==(t=e.defaultSelectedKey)&&void 0!==t?t:null,e.onSelectionChange),s=(0,r.useMemo)((()=>null!=n?[n]:[]),[n]),{collection:a,disabledKeys:l,selectionManager:o}=re({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:s,onSelectionChange:t=>{if("all"===t)return;var r;let s=null!==(r=t.values().next().value)&&void 0!==r?r:null;s===n&&e.onSelectionChange&&e.onSelectionChange(s),i(s)}}),d=null!=n?a.getItem(n):null;return{collection:a,disabledKeys:l,selectionManager:o,selectedKey:n,setSelectedKey:i,selectedItem:d}}({...e,suppressTextValueWarning:!0,defaultSelectedKey:null!==(t=e.defaultSelectedKey)&&void 0!==t?t:ae(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:i,collection:s,selectedKey:a}=n,l=(0,r.useRef)(a);return(0,r.useEffect)((()=>{let e=a;!i.isEmpty&&s.getItem(e)||(e=ae(s,n.disabledKeys),null!=e&&i.setSelectedKeys([e])),(null!=e&&null==i.focusedKey||!i.isFocused&&e!==l.current)&&i.setFocusedKey(e),l.current=e})),{...n,isDisabled:e.isDisabled||!1}}function ae(e,t){let n=null;if(e){var i,r,s,a;for(n=e.getFirstKey();(t.has(n)||(null===(r=e.getItem(n))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.isDisabled))&&n!==e.getLastKey();)n=e.getKeyAfter(n);(t.has(n)||(null===(a=e.getItem(n))||void 0===a||null===(s=a.props)||void 0===s?void 0:s.isDisabled))&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}var le=n(9781),oe=n(5987),de=n(364),ce=n(6948),ue=n(9953);let pe=0;const fe=new Map;const he=500;function ge(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:i,onLongPress:s,threshold:a=he,accessibilityDescription:l}=e;const o=(0,r.useRef)(void 0);let{addGlobalListener:d,removeGlobalListener:c}=(0,ce.A)(),{pressProps:p}=(0,de.d)({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),o.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),s&&s({...e,type:"longpress"}),o.current=void 0}),a),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};d(e.target,"contextmenu",t,{once:!0}),d(window,"pointerup",(()=>{setTimeout((()=>{c(e.target,"contextmenu",t)}),30)}),{once:!0})}},onPressEnd(e){o.current&&clearTimeout(o.current),!i||"mouse"!==e.pointerType&&"touch"!==e.pointerType||i({...e,type:"longpressend"})}}),f=function(e){let[t,n]=(0,r.useState)();return(0,ue.N)((()=>{if(!e)return;let t=fe.get(e);if(t)n(t.element.id);else{let i="react-aria-description-"+pe++;n(i);let r=document.createElement("div");r.id=i,r.style.display="none",r.textContent=e,document.body.appendChild(r),t={refCount:0,element:r},fe.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),fe.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}(s&&!t?l:void 0);return{longPressProps:(0,u.v)(p,f)}}function ve(){let e=window.event;return"Enter"===(null==e?void 0:e.key)}function ye(){let e=window.event;return" "===(null==e?void 0:e.key)||"Space"===(null==e?void 0:e.code)}function me(e,t,n){let{key:i,isDisabled:s,shouldSelectOnPressUp:a}=e,{selectionManager:o,selectedKey:d}=t,c=i===d,p=s||t.isDisabled||t.selectionManager.isDisabled(i),{itemProps:f,isPressed:h}=function(e){let{selectionManager:t,key:n,ref:i,shouldSelectOnPressUp:s,shouldUseVirtualFocus:a,focus:l,isDisabled:o,onAction:d,allowsDifferentPressOrigin:c,linkBehavior:p="action"}=e,f=(0,j.rd)(),h=e=>{if("keyboard"===e.pointerType&&C(e))t.toggleSelection(n);else{if("none"===t.selectionMode)return;if(t.isLink(n)){if("selection"===p){let r=t.getItemProps(n);return f.open(i.current,e,r.href,r.routerOptions),void t.setSelectedKeys(t.selectedKeys)}if("override"===p||"none"===p)return}"single"===t.selectionMode?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):e&&e.shiftKey?t.extendSelection(n):"toggle"===t.selectionBehavior||e&&(k(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?t.toggleSelection(n):t.replaceSelection(n)}};(0,r.useEffect)((()=>{n===t.focusedKey&&t.isFocused&&!a&&(l?l():document.activeElement!==i.current&&(0,B.l)(i.current))}),[i,n,t.focusedKey,t.childFocusStrategy,t.isFocused,a]),o=o||t.isDisabled(n);let g={};a||o?o&&(g.onMouseDown=e=>{e.preventDefault()}):g={tabIndex:n===t.focusedKey?0:-1,onFocus(e){e.target===i.current&&t.setFocusedKey(n)}};let v=t.isLink(n)&&"override"===p,y=t.isLink(n)&&"selection"!==p&&"none"!==p,m=!o&&t.canSelectItem(n)&&!v,b=(d||y)&&!o,A=b&&("replace"===t.selectionBehavior?!m:!m||t.isEmpty),w=b&&m&&"replace"===t.selectionBehavior,E=A||w,x=(0,r.useRef)(null),S=E&&m,T=(0,r.useRef)(!1),P=(0,r.useRef)(!1),K=e=>{if(d&&d(),y){let r=t.getItemProps(n);f.open(i.current,e,r.href,r.routerOptions)}},M={};s?(M.onPressStart=e=>{x.current=e.pointerType,T.current=S,"keyboard"!==e.pointerType||E&&!ye()||h(e)},c?(M.onPressUp=A?null:e=>{"keyboard"!==e.pointerType&&m&&h(e)},M.onPress=A?K:null):M.onPress=e=>{if(A||w&&"mouse"!==e.pointerType){if("keyboard"===e.pointerType&&!ve())return;K(e)}else"keyboard"!==e.pointerType&&m&&h(e)}):(M.onPressStart=e=>{x.current=e.pointerType,T.current=S,P.current=A,m&&("mouse"===e.pointerType&&!A||"keyboard"===e.pointerType&&(!b||ye()))&&h(e)},M.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&E&&ve()||"mouse"===e.pointerType&&P.current)&&(E?K(e):m&&h(e))}),g["data-key"]=n,M.preventFocusOnPress=a;let{pressProps:I,isPressed:_}=(0,de.d)(M),D=w?e=>{"mouse"===x.current&&(e.stopPropagation(),e.preventDefault(),K(e))}:void 0,{longPressProps:R}=ge({isDisabled:!S,onLongPress(e){"touch"===e.pointerType&&(h(e),t.setSelectionBehavior("toggle"))}}),N=t.isLink(n)?e=>{j.Fe.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,u.v)(g,m||A?I:{},S?R:{},{onDoubleClick:D,onDragStartCapture:e=>{"touch"===x.current&&T.current&&e.preventDefault()},onClick:N}),isPressed:_,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:o,allowsSelection:m,hasAction:E}}({selectionManager:o,key:i,ref:n,isDisabled:p,shouldSelectOnPressUp:a,linkBehavior:"selection"}),g=l(t,i,"tab"),v=l(t,i,"tabpanel"),{tabIndex:y}=f,m=t.collection.getItem(i),b=(0,oe.$)(null==m?void 0:m.props,{labelable:!0});delete b.id;let A=(0,j._h)(null==m?void 0:m.props);return{tabProps:(0,u.v)(b,A,f,{id:g,"aria-selected":c,"aria-disabled":p||void 0,"aria-controls":c?v:void 0,tabIndex:p?void 0:y,role:"tab"}),isSelected:c,isDisabled:p,isPressed:h}}var be=n(6133);const Ae={root:"_root_1fp5f_1",tabItems:"_tabItems_1fp5f_1",tabItem:"_tabItem_1fp5f_1"};var we=n(1034);const Ee=e=>{const{item:t,state:n}=e,{key:s,rendered:a}=t,l=(0,r.useRef)(null),{componentProps:o,rootProps:d}=(0,le.Y)("Tabs",e),{isDisabled:c,isSelected:u,tabProps:p}=me({key:s},n,l),{focusProps:f,isFocusVisible:h}=(0,be.o)(o),{navigate:g,url:v}=(0,we.T)();if(g&&v){const e=new URL(v);return null==e||e.searchParams.set(g,`${s}`),(0,i.jsx)("a",{...f,...d({classNames:Ae.tabItem,prefixedNames:"item"}),"data-disabled":c||void 0,"data-focus-visible":h||void 0,"data-selected":u||void 0,href:`${null==e?void 0:e.toString()}`,ref:l,children:a})}return(0,i.jsx)("div",{...d({classNames:Ae.tabItem,prefixedNames:"item"}),...p,...f,"data-disabled":c||void 0,"data-focus-visible":h||void 0,"data-selected":u||void 0,ref:l,children:a})};function xe(e,t,n){let i=function(e,t){let n=null==t?void 0:t.isDisabled,[i,s]=(0,r.useState)(!1);return(0,ue.N)((()=>{if((null==e?void 0:e.current)&&!n){let t=()=>{if(e.current){let t=D(e.current,{tabbable:!0});s(!!t.nextNode())}};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{n.disconnect()}}})),!n&&i}(n)?void 0:0;var s;const a=l(t,null!==(s=e.id)&&void 0!==s?s:null==t?void 0:t.selectedKey,"tabpanel"),o=(0,c.b)({...e,id:a,"aria-labelledby":l(t,null==t?void 0:t.selectedKey,"tab")});return{tabPanelProps:(0,u.v)(o,{tabIndex:i,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}const Ce=e=>{var t;const{state:n}=e,s=(0,r.useRef)(null),{tabPanelProps:a}=xe(e,n,s),{clsx:l}=(0,le.Y)("Tabs",e);return(0,i.jsx)("div",{...a,className:l({classNames:Ae.tabPanel,prefixedNames:"panel"}),ref:s,children:null==(t=n.selectedItem)?void 0:t.props.children})},ke=(0,r.forwardRef)(((e,t)=>{var n;const l=(0,s.U)(t),{context:p,navigate:f}=(0,we.T)(),{clsx:h,componentProps:g,rootProps:v}=(0,le.Y)("Tabs",e),y=se(g);let{orientation:m}=e;m="settings"===p?"horizontal":m;const{tabListProps:b}=function(e,t,n){let{orientation:i="horizontal",keyboardActivation:s="automatic"}=e,{collection:l,selectionManager:p,disabledKeys:f}=t,{direction:h}=E(),g=(0,r.useMemo)((()=>new o(l,h,i,f)),[l,f,i,h]),{collectionProps:v}=O({ref:n,selectionManager:p,keyboardDelegate:g,selectOnFocus:"automatic"===s,disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),y=(0,d.Bi)();a.set(t,y);let m=(0,c.b)({...e,id:y});return{tabListProps:{...(0,u.v)(v,m),role:"tablist","aria-orientation":i,tabIndex:void 0}}}({...g,keyboardActivation:f?"manual":void 0,orientation:m},y,l);return(0,i.jsxs)("div",{...v({classNames:Ae.root}),"data-context":p,"data-orientation":m,children:[(0,i.jsx)("div",{...b,className:h({classNames:Ae.tabItems,prefixedNames:"items"}),ref:l,children:[...y.collection].map((e=>(0,i.jsx)(Ee,{item:e,state:y},e.key)))}),(0,i.jsx)(Ce,{state:y},null==(n=y.selectedItem)?void 0:n.key)]})}));ke.displayName="Tabs"},1034:(e,t,n)=>{n.d(t,{O:()=>a,T:()=>l});var i=n(790),r=n(1609);const s=(0,r.createContext)({context:"settings"}),a=e=>{const{children:t,context:n,url:r}=e;let a="tab";return"string"==typeof e.navigate&&(a=e.navigate),(0,i.jsx)(s.Provider,{value:{context:n,navigate:a,url:r},children:t})},l=()=>(0,r.useContext)(s)},3682:(e,t,n)=>{n.d(t,{A:()=>y});var i=n(790),r=n(3908),s=n(1609),a=n(5987),l=n(8343),o=n(4836),d=n(2217),c=n(8356),u=n(4742),p=n(9681),f=n(8868),h=n(1144),g=n(9781);const v={root:"_root_ptfvg_1",inputWrapper:"_inputWrapper_ptfvg_6",input:"_input_ptfvg_6",invalid:"_invalid_ptfvg_14",label:"_label_ptfvg_19",markedRequired:"_markedRequired_ptfvg_27",descriptionBeforeInput:"_descriptionBeforeInput_ptfvg_34",description:"_description_ptfvg_34",errorMessage:"_errorMessage_ptfvg_46"},y=(0,s.forwardRef)(((e,t)=>{var n,y,m,b,A,w;const{description:E,descriptionArea:x,errorMessage:C,isDisabled:k,isRequired:S,label:T,max:P,min:K,prefix:M,step:I,suffix:_}=e;let D=e.className;const R=null==(n=e.className)?void 0:n.includes("code"),N=null==(y=e.className)?void 0:y.includes("regular-text"),B=null==(m=e.className)?void 0:m.includes("small-text");N&&(D=null==(b=e.className)?void 0:b.replace("regular-text","")),B&&(D=null==(A=e.className)?void 0:A.replace("small-text","")),R&&(D=null==(w=e.className)?void 0:w.replace("code",""));const j=(0,r.U)(t),{clsx:L,componentProps:F,rootProps:Q}=(0,g.Y)("TextField",{...e,className:D}),{descriptionProps:Y,errorMessageProps:G,inputProps:W,isInvalid:U,labelProps:H,validationDetails:O,validationErrors:J}=function(e,t){let{inputElementType:n="input",isDisabled:i=!1,isRequired:r=!1,isReadOnly:g=!1,type:v="text",validationBehavior:y="aria"}=e,[m,b]=(0,c.P)(e.value,e.defaultValue||"",e.onChange),{focusableProps:A}=(0,p.W)(e,t),w=(0,h.KZ)({...e,value:m}),{isInvalid:E,validationErrors:x,validationDetails:C}=w.displayValidation,{labelProps:k,fieldProps:S,descriptionProps:T,errorMessageProps:P}=(0,u.M)({...e,isInvalid:E,errorMessage:e.errorMessage||x}),K=(0,a.$)(e,{labelable:!0});const M={type:v,pattern:e.pattern};return(0,l.F)(t,m,b),(0,f.X)(e,w,t),(0,s.useEffect)((()=>{if(t.current instanceof(0,o.m)(t.current).HTMLTextAreaElement){let e=t.current;Object.defineProperty(e,"defaultValue",{get:()=>e.value,set:()=>{},configurable:!0})}}),[t]),{labelProps:k,inputProps:(0,d.v)(K,"input"===n?M:void 0,{disabled:i,readOnly:g,required:r&&"native"===y,"aria-required":r&&"aria"===y||void 0,"aria-invalid":E||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:m,onChange:e=>b(e.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...A,...S}),descriptionProps:T,errorMessageProps:P,isInvalid:E,validationErrors:x,validationDetails:C}}(F,j),{errorMessageList:V}=function(e){const t=[],{isInvalid:n,validationDetails:i,validationErrors:r}=e,{errorMessage:s}=e,a="function"==typeof s?s({isInvalid:n,validationDetails:i,validationErrors:r}):s;return a&&t.push(a),t.push(...r),{errorMessageList:t||[]}}({errorMessage:C,isInvalid:U,validationDetails:O,validationErrors:J});return(0,i.jsxs)("div",{...Q({classNames:[v.root,{[v.descriptionBeforeInput]:"before-input"===x,[v.disabled]:k,[v.invalid]:U}]}),children:[T&&(0,i.jsxs)("label",{...H,className:L({classNames:v.label,prefixedNames:"label"}),children:[T,S?(0,i.jsx)("span",{className:L({classNames:v.markedRequired,prefixedNames:"marked-required"}),children:"*"}):""]}),(0,i.jsxs)("div",{className:L({classNames:v.inputWrapper,prefixedNames:"input-wrapper"}),children:[M&&(0,i.jsx)("div",{className:L({classNames:v.prefix,prefixedNames:"prefix"}),children:M}),(0,i.jsx)("input",{...W,className:L({classNames:{[v.input]:!0,code:R,"regular-text":N,"small-text":B},prefixedNames:"input"}),max:P,min:K,ref:j,step:I}),_&&(0,i.jsx)("div",{className:L({classNames:v.suffix,prefixedNames:"suffix"}),children:_})]}),V.length>=1&&(0,i.jsx)("div",{...G,className:L({classNames:v.errorMessage,prefixedNames:"error-message"}),children:V.map(((e,t)=>(0,i.jsx)("p",{children:e},t)))}),E&&(0,i.jsx)("p",{...Y,className:L({classNames:[v.description,"description"],prefixedNames:"description"}),children:E})]})}));y.displayName="TextField"},9781:(e,t,n)=>{n.d(t,{Y:()=>r});var i=n(4164);function r(e,t){const{className:n,"data-testid":r,id:s,style:a,...l}=t||{},{clsx:o}=function(e){const t=`kubrick-${e}-`;return{clsx:e=>{const{classNames:n="",prefixedNames:r=""}=e,s=function(e){return"string"==typeof e?e.split(" "):e.map((e=>e.split(" "))).flat()}(r).map((e=>e&&`${t}${e}`)),a=(0,i.A)(s,n);return""!==a.trim()?a:void 0}}}(e);return{clsx:o,componentProps:{...l,id:s},rootProps(t){const{classNames:i,prefixedNames:l}=t||{},d={...a,...(null==t?void 0:t.styles)||{}};return{className:o({classNames:[i,n],prefixedNames:l||"root"}),"data-testid":r,id:s?`${s}-${e}-root`:void 0,style:Object.keys(d).length>=1?d:void 0}}}}},4164:(e,t,n)=>{function i(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}n.d(t,{A:()=>r});const r=function(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=i(e))&&(r&&(r+=" "),r+=t);return r}}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return r[e](n,n.exports,a),n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",i=e=>{e&&e.d<1&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},a.a=(r,s,a)=>{var l;a&&((l=[]).d=-1);var o,d,c,u=new Set,p=r.exports,f=new Promise(((e,t)=>{c=t,d=e}));f[t]=p,f[e]=e=>(l&&e(l),u.forEach(e),f.catch((e=>{}))),r.exports=f,s((r=>{var s;o=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var s=[];s.d=0,r.then((e=>{a[t]=e,i(s)}),(e=>{a[n]=e,i(s)}));var a={};return a[e]=e=>e(s),a}}var l={};return l[e]=e=>{},l[t]=r,l})))(r);var a=()=>o.map((e=>{if(e[n])throw e[n];return e[t]})),d=new Promise((t=>{(s=()=>t(a)).r=0;var n=e=>e!==l&&!u.has(e)&&(u.add(e),e&&!e.d&&(s.r++,e.push(s)));o.map((t=>t[e](n)))}));return s.r?d:a()}),(e=>(e?c(f[n]=e):d(p),i(l)))),l&&l.d<0&&(l.d=0)},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a(341)})();
  • syntatis-feature-flipper/trunk/dist/autoload/vendor/composer/installed.php

    r3191076 r3192496  
    33namespace SSFV;
    44
    5 return array('root' => array('name' => '__root__', 'pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => 'b9b70186f66b8f191edc92860db3f37e883f9f04', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \false), 'versions' => array('__root__' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => 'b9b70186f66b8f191edc92860db3f37e883f9f04', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'adbario/php-dot-notation' => array('pretty_version' => '3.3.0', 'version' => '3.3.0.0', 'reference' => 'a94ce4493d19ea430baa8d7d210a2c9bd7129fc2', 'type' => 'library', 'install_path' => __DIR__ . '/../adbario/php-dot-notation', 'aliases' => array(), 'dev_requirement' => \false), 'pimple/pimple' => array('pretty_version' => 'v3.5.0', 'version' => '3.5.0.0', 'reference' => 'a94b3a4db7fb774b3d78dad2315ddc07629e1bed', 'type' => 'library', 'install_path' => __DIR__ . '/../pimple/pimple', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '2.0.2', 'version' => '2.0.2.0', 'reference' => 'c71ecc56dfe541dbd90c5360474fbc405f8d5963', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-uuid' => array('pretty_version' => 'v1.31.0', 'version' => '1.31.0.0', 'reference' => '21533be36c24be3f4b1669c4725c7d1d2bab4ae2', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-uuid', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/uid' => array('pretty_version' => 'v5.4.45', 'version' => '5.4.45.0', 'reference' => '512de7894f93ad63a7d5e33f590a83e054f571bc', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/uid', 'aliases' => array(), 'dev_requirement' => \false), 'syntatis/codex' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'facd6c434e43ff4e4861107ca827984c4104e9f1', 'type' => 'library', 'install_path' => __DIR__ . '/../syntatis/codex', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'syntatis/codex-settings-provider' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '7a9f5c939cac6ea7aeb1643140dd79cc1149bdf9', 'type' => 'library', 'install_path' => __DIR__ . '/../syntatis/codex-settings-provider', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false)));
     5return array('root' => array('name' => '__root__', 'pretty_version' => 'v1.4.0', 'version' => '1.4.0.0', 'reference' => '98170ac56890471bb544a2cbd2040f2562688c35', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \false), 'versions' => array('__root__' => array('pretty_version' => 'v1.4.0', 'version' => '1.4.0.0', 'reference' => '98170ac56890471bb544a2cbd2040f2562688c35', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'adbario/php-dot-notation' => array('pretty_version' => '3.3.0', 'version' => '3.3.0.0', 'reference' => 'a94ce4493d19ea430baa8d7d210a2c9bd7129fc2', 'type' => 'library', 'install_path' => __DIR__ . '/../adbario/php-dot-notation', 'aliases' => array(), 'dev_requirement' => \false), 'pimple/pimple' => array('pretty_version' => 'v3.5.0', 'version' => '3.5.0.0', 'reference' => 'a94b3a4db7fb774b3d78dad2315ddc07629e1bed', 'type' => 'library', 'install_path' => __DIR__ . '/../pimple/pimple', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '2.0.2', 'version' => '2.0.2.0', 'reference' => 'c71ecc56dfe541dbd90c5360474fbc405f8d5963', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-uuid' => array('pretty_version' => 'v1.31.0', 'version' => '1.31.0.0', 'reference' => '21533be36c24be3f4b1669c4725c7d1d2bab4ae2', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-uuid', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/uid' => array('pretty_version' => 'v5.4.45', 'version' => '5.4.45.0', 'reference' => '512de7894f93ad63a7d5e33f590a83e054f571bc', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/uid', 'aliases' => array(), 'dev_requirement' => \false), 'syntatis/codex' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'facd6c434e43ff4e4861107ca827984c4104e9f1', 'type' => 'library', 'install_path' => __DIR__ . '/../syntatis/codex', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'syntatis/codex-settings-provider' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '7a9f5c939cac6ea7aeb1643140dd79cc1149bdf9', 'type' => 'library', 'install_path' => __DIR__ . '/../syntatis/codex-settings-provider', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false)));
  • syntatis-feature-flipper/trunk/inc/languages/syntatis-feature-flipper.pot

    r3191076 r3192496  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Feature Flipper 1.3.0\n"
     5"Project-Id-Version: Feature Flipper 1.4.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-feature-flipper\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-11-18T10:18:03+00:00\n"
     12"POT-Creation-Date: 2024-11-19T16:34:05+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
     
    1717#. Plugin Name of the plugin
    1818#: syntatis-feature-flipper.php
    19 #: app/SettingPage.php:44
     19#: app/SettingPage.php:54
    2020msgid "Feature Flipper"
    2121msgstr ""
     
    4141msgstr ""
    4242
    43 #: app/SettingPage.php:45
     43#: app/SettingPage.php:55
    4444msgid "Flipper"
    4545msgstr ""
    4646
    47 #: app/SettingPage.php:70
     47#: app/SettingPage.php:80
    4848msgid "This setting page requires JavaScript to be enabled in your browser. Please enable JavaScript and reload the page."
    4949msgstr ""
     
    8686msgstr ""
    8787
    88 #: src/setting-page/components/inputs/AdminBarInputs.jsx:31
     88#: src/setting-page/components/inputs/AdminBarInputs.jsx:30
    8989msgid "Menu"
    9090msgstr ""
    9191
    92 #: src/setting-page/components/inputs/AdminBarInputs.jsx:40
     92#: src/setting-page/components/inputs/AdminBarInputs.jsx:38
    9393msgid "Unchecked menu items will be hidden from the Admin bar."
    9494msgstr ""
     
    106106msgstr ""
    107107
    108 #: src/setting-page/components/inputs/DashboardWidgetsInputs.jsx:37
     108#: src/setting-page/components/inputs/DashboardWidgetsInputs.jsx:36
    109109msgid "Widgets"
    110110msgstr ""
    111111
    112 #: src/setting-page/components/inputs/DashboardWidgetsInputs.jsx:43
     112#: src/setting-page/components/inputs/DashboardWidgetsInputs.jsx:41
    113113msgid "Unchecked widgets will be hidden from the dashboard."
    114114msgstr ""
     
    126126msgstr ""
    127127
    128 #: src/setting-page/components/inputs/JPEGCompressionInputs.jsx:34
    129 msgid "Settings"
    130 msgstr ""
    131 
    132 #: src/setting-page/components/inputs/JPEGCompressionInputs.jsx:53
     128#: src/setting-page/components/inputs/JPEGCompressionInputs.jsx:47
     129#: src/setting-page/components/inputs/JPEGCompressionInputs.jsx:50
    133130msgid "Quality"
    134131msgstr ""
    135132
    136 #: src/setting-page/components/inputs/JPEGCompressionInputs.jsx:57
     133#: src/setting-page/components/inputs/JPEGCompressionInputs.jsx:54
    137134msgid "The quality of the compressed JPEG image. 100 is the highest quality."
     135msgstr ""
     136
     137#: src/setting-page/components/inputs/RevisionsInputs.jsx:17
     138#: src/setting-page/components/inputs/RevisionsInputs.jsx:40
     139msgid "Revisions"
     140msgstr ""
     141
     142#: src/setting-page/components/inputs/RevisionsInputs.jsx:18
     143msgid "Enable post revisions"
     144msgstr ""
     145
     146#: src/setting-page/components/inputs/RevisionsInputs.jsx:19
     147msgid "When switched off, WordPress will not save revisions of your posts."
     148msgstr ""
     149
     150#: src/setting-page/components/inputs/RevisionsInputs.jsx:46
     151msgid "Maximum"
     152msgstr ""
     153
     154#: src/setting-page/components/inputs/RevisionsInputs.jsx:50
     155msgid "The maximum number of revisions to keep."
    138156msgstr ""
    139157
     
    242260msgstr ""
    243261
    244 #: src/setting-page/tabs/GeneralTab.jsx:13
     262#: src/setting-page/tabs/GeneralTab.jsx:15
    245263msgid "Enable the block editor"
    246264msgstr ""
    247265
    248 #: src/setting-page/tabs/GeneralTab.jsx:17
     266#: src/setting-page/tabs/GeneralTab.jsx:19
    249267msgid "When switched off, the block editor will be disabled and the classic editor will be used."
    250268msgstr ""
    251269
    252 #: src/setting-page/tabs/GeneralTab.jsx:26
     270#: src/setting-page/tabs/GeneralTab.jsx:38
    253271msgid "Enable the block-based widgets"
    254272msgstr ""
    255273
    256 #: src/setting-page/tabs/GeneralTab.jsx:30
     274#: src/setting-page/tabs/GeneralTab.jsx:44
    257275msgid "When switched off, the block-based widgets will be disabled and the classic widgets will be used."
    258276msgstr ""
    259277
    260 #: src/setting-page/tabs/GeneralTab.jsx:39
     278#: src/setting-page/tabs/GeneralTab.jsx:48
     279msgid "The current theme in-use does not support block-based widgets."
     280msgstr ""
     281
     282#: src/setting-page/tabs/GeneralTab.jsx:59
    261283msgid "Enable the Heartbeat API"
    262284msgstr ""
    263285
    264 #: src/setting-page/tabs/GeneralTab.jsx:43
     286#: src/setting-page/tabs/GeneralTab.jsx:63
    265287msgid "When switched off, the Heartbeat API will be disabled; it will not be sending requests."
    266288msgstr ""
    267289
    268 #: src/setting-page/tabs/GeneralTab.jsx:52
     290#: src/setting-page/tabs/GeneralTab.jsx:72
    269291msgid "Enable self-pingbacks"
    270292msgstr ""
    271293
    272 #: src/setting-page/tabs/GeneralTab.jsx:56
     294#: src/setting-page/tabs/GeneralTab.jsx:76
    273295msgid "When switched off, WordPress will not send pingbacks to your own site."
    274296msgstr ""
    275297
    276 #: src/setting-page/tabs/GeneralTab.jsx:65
     298#: src/setting-page/tabs/GeneralTab.jsx:85
    277299msgid "Enable cron"
    278300msgstr ""
    279301
    280 #: src/setting-page/tabs/GeneralTab.jsx:66
     302#: src/setting-page/tabs/GeneralTab.jsx:86
    281303msgid "When switched off, WordPress will not run scheduled events."
    282304msgstr ""
    283305
    284 #: src/setting-page/tabs/GeneralTab.jsx:75
     306#: src/setting-page/tabs/GeneralTab.jsx:95
    285307msgid "Enable post embedding"
    286308msgstr ""
    287309
    288 #: src/setting-page/tabs/GeneralTab.jsx:79
     310#: src/setting-page/tabs/GeneralTab.jsx:99
    289311msgid "When switched off, it will disable other sites from embedding content from your site, and vice-versa."
    290312msgstr ""
    291313
    292 #: src/setting-page/tabs/GeneralTab.jsx:88
     314#: src/setting-page/tabs/GeneralTab.jsx:108
    293315msgid "Enable RSS feeds"
    294316msgstr ""
    295317
    296 #: src/setting-page/tabs/GeneralTab.jsx:92
     318#: src/setting-page/tabs/GeneralTab.jsx:112
    297319msgid "When switched off, it will disable the RSS feed URLs."
    298320msgstr ""
    299321
    300 #: src/setting-page/tabs/GeneralTab.jsx:100
     322#: src/setting-page/tabs/GeneralTab.jsx:120
    301323msgid "Auto Update"
    302324msgstr ""
    303325
    304 #: src/setting-page/tabs/GeneralTab.jsx:101
     326#: src/setting-page/tabs/GeneralTab.jsx:121
    305327msgid "Enable WordPress auto update"
    306328msgstr ""
    307329
    308 #: src/setting-page/tabs/GeneralTab.jsx:105
     330#: src/setting-page/tabs/GeneralTab.jsx:125
    309331msgid "When switched off, you will need to manually update WordPress."
    310332msgstr ""
  • syntatis-feature-flipper/trunk/inc/settings/all.php

    r3191076 r3192496  
    2323         * Since it's too early to determine whether the current theme supports the
    2424         * block-based widgets, set the default to `null`, and patch it through
    25          * the filter `syntatis/feature_flipper/settings`.
     25         * the filter.
    2626         *
    27          * @see \Syntatis\FeatureFlipper\Switches\General
     27         * @see syntatis/feature_flipper/settings The filter to patch the setting values.
     28         * @see \Syntatis\FeatureFlipper\Switches\General The class that patches the `block_based_widgets` value.
    2829         */
     30        ->withDefault(null),
     31    (new Setting('revisions', 'boolean'))
     32        ->withDefault(defined('WP_POST_REVISIONS') ? ! (bool) WP_POST_REVISIONS : true),
     33    (new Setting('revisions_max', 'integer'))
    2934        ->withDefault(null),
    3035    (new Setting('heartbeat', 'boolean'))
  • syntatis-feature-flipper/trunk/readme.txt

    r3191076 r3192496  
    55Requires at least: 6.0
    66Tested up to: 6.7
    7 Stable tag: 1.3.0
     7Stable tag: 1.4.0
    88Requires PHP: 7.4
    99License: GPLv3 or later
  • syntatis-feature-flipper/trunk/syntatis-feature-flipper.php

    r3191076 r3192496  
    1212 * Plugin URI:        https://github.com/syntatis/wp-feature-flipper
    1313 * Description:       Easily switch some features in WordPress, on and off
    14  * Version:           1.3.0
     14 * Version:           1.4.0
    1515 * Requires at least: 6.0
    1616 * Requires PHP:      7.4
     
    3939 * versions.
    4040 */
    41 const PLUGIN_VERSION = '1.3.0';
     41const PLUGIN_VERSION = '1.4.0';
    4242
    4343/**
Note: See TracChangeset for help on using the changeset viewer.