From a9ddb5e29acb411661fb0838cd9c6ed78fcad9ca Mon Sep 17 00:00:00 2001 From: Rebecca Hum Date: Thu, 11 Apr 2024 20:15:13 +0200 Subject: [PATCH 01/14] Add Jetpack 13.3 as default (#5453) --- jetpack.php | 4 ++-- tests/test-jetpack.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jetpack.php b/jetpack.php index c961ce09bd..8d8c863918 100644 --- a/jetpack.php +++ b/jetpack.php @@ -4,7 +4,7 @@ * Plugin URI: https://jetpack.com * Description: Security, performance, and marketing tools made by WordPress experts. Jetpack keeps your site protected so you can focus on more important things. * Author: Automattic - * Version: 13.2.1 + * Version: 13.3.1 * Author URI: https://jetpack.com * License: GPL2+ * Text Domain: jetpack @@ -39,7 +39,7 @@ function vip_default_jetpack_version() { return '13.1'; } else { // WordPress 6.4 and newer. - return '13.2'; + return '13.3'; } } diff --git a/tests/test-jetpack.php b/tests/test-jetpack.php index b71847b34d..e6363695f2 100644 --- a/tests/test-jetpack.php +++ b/tests/test-jetpack.php @@ -7,7 +7,7 @@ public function test__vip_default_jetpack_version() { global $wp_version; $saved_wp_version = $wp_version; - $latest = '13.2'; + $latest = '13.3'; $versions_map = [ // WordPress version => Jetpack version From 92eb440454f750ac0408e4f47bd8ee4c5bec4a28 Mon Sep 17 00:00:00 2001 From: Rebecca Hum Date: Tue, 7 May 2024 10:43:17 -0700 Subject: [PATCH 02/14] Production release v20230507.0 (#5549) * Exclude versioned Jetpacks from the `-built` version. (#5496) * Don't delete jetpack-* recursively, do the root only. Supply --delete-excluded flag (#5498) * CI: Preserve the .git folder when running --delete-excluded (#5500) * Don't delete jetpack-* recursively, do the root only. Supply --delete-excluded flag * Preserve .git * Use full path * Add debug to rsync output in Deploy workflow (#5501) * Move backup one folder up to prevent the deletion during the rsync (#5502) * Add debug to rsync output in Deploy workflow * Move .git backup one level up * Remove debug info from Deploy action (#5503) * fix: `count_users()` returns an array (#5499) * fix: `count_users()` returns an array * test: fix tests * CI: set minimum Parse.ly version to 3.5 (#5506) * CI: update Parse.ly minimum version, fix some typos * Remove debug-bar and debug-bar-cron as they're not the part of mu-plugins * Add the ability to define a custom VIP integrations config directory (#5505) * Search: Defaults Enterprise Search to ElasticPress 4.2.2 (#4607) * Search: Remove exception list * Search: Switch to new EP as default * Sync changes down * Update submodule change to latest one * Update the PR template to include the new Changelog format (#5477) * Remove limitation on "wp db size" (#5507) * Revert "Remove limitation on "wp db size" (#5507)" (#5522) This reverts commit 2efcab4ee5294e5530cfabfb59d17fadd288e427. Revert "Remove limitation on "wp db size" (#5507)" This reverts commit 720c8b98573a32926a7fc2cc7ebc1f9c85693a29. * Search: Fix potential prolonged rate-limiting (#5524) * Fix potential prolonged rate-limiting: the rate-limit start time object didn't have an expiration which may prevent the ratelimit window reset * Fix context * Apply settings on after_setup_theme to make sure customer code is included * Only consider requests in current window when enabling ratelimiting * Address feedback * Apply SonarCloud suggestions * remove ttl for indexing ratelimit start. More static over self. --------- Co-authored-by: Rinat K Co-authored-by: Volodymyr Kolesnykov Co-authored-by: Luis Henrique Mulinari Co-authored-by: Luiz Tiago Oliveira --- .github/PULL_REQUEST_TEMPLATE.md | 48 +++++++++++-------- .github/actions/run-wp-tests/action.yml | 4 +- .github/workflows/deploy.yml | 5 +- .github/workflows/parsely.yml | 24 +++++----- integrations/integration-vip-config.php | 4 +- search/elasticpress | 2 +- search/includes/classes/class-health.php | 32 ++++--------- search/includes/classes/class-queue.php | 27 ++++++++--- search/includes/classes/class-search.php | 22 +-------- .../includes/functions/ep-get-query-log.php | 6 +-- .../includes/classes/test-class-health.php | 4 +- .../includes/classes/test-class-search.php | 15 ++---- .../classes/test-concurrency-limiter.php | 4 +- tests/search/test-search-dev-tools.php | 2 +- 14 files changed, 90 insertions(+), 109 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 44b4ab5b4f..35b10f243f 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -3,45 +3,50 @@ :wave: Just a quick reminder that this is a public repo. Please don't include any internal links or sensitive data (like PII, private code, customer names, site URLs, etc. Any fixes related to security should be discussed with Platform before opening a PR. If you're not sure if something is safe to share, please just ask! -### BEFORE YOU PROCEED!! - -If you’re editing a feature without changing the spirit of the implementation, fixing bugs, or performing upgrades, then please proceed! - -If you’re adding a feature or changing the spirit of an existing implementation, please create a proposal in Cantina P2 using the MU Plugins Proposal Block Pattern. Please mention the [CODEOWNERS](.github/CODEOWNERS) of this repository and relevant stakeholders in your proposal :). Please be aware that any unplanned work may take some time to get reviewed. Thank you 🙇‍♀️🙇! - ## For external contributors! Welcome! We look forward to your contribution! ❤️ --> ## Description ## Changelog Description - + + -Example for a plugin upgrade: +### Added +- +- -### Plugin Updated: Jetpack 9.2.1 +### Removed +- +- + +### Fixed +- + +### Changed +- +- -We upgraded Jetpack 9.2 to Jetpack 9.2.1. -Not a lot of significant changes in this patch release, just bugfixes and compatibility improvements. ---> ## Pre-review checklist Please make sure the items below have been covered before requesting a review: -- [ ] This change works and has been tested locally (or has an appropriate fallback). -- [ ] This change works and has been tested on a Go sandbox. +- [ ] This change works and has been tested locally or in Codespaces (or has an appropriate fallback). +- [ ] This change works and has been tested on a sandbox. - [ ] This change has relevant unit tests (if applicable). - [ ] This change uses a rollout method to ease with deployment (if applicable - especially for large scale actions that require writes). - [ ] This change has relevant documentation additions / updates (if applicable). @@ -52,6 +57,7 @@ Please make sure the items below have been covered before requesting a review: - [ ] VIP staff: Ensure any alerts added/updated conform to internal standards (see internal documentation). ## Steps to Test + +--> \ No newline at end of file diff --git a/.github/actions/run-wp-tests/action.yml b/.github/actions/run-wp-tests/action.yml index b59393b5d7..43920c2a35 100644 --- a/.github/actions/run-wp-tests/action.yml +++ b/.github/actions/run-wp-tests/action.yml @@ -54,7 +54,7 @@ runs: run: | if [ "${{ inputs.coverage }}" = "yes" ] && [ -n "${{ inputs.coverage-file }}" ]; then echo "coverage=pcov" >> $GITHUB_OUTPUT - echo 'ini=apc.enable_cli=1, pcov.directory=., pcov.exclude="~/(vendor|tests|node_modules|jetpack[^/]*|wp-parsely[^/]+|advanced-post-cache|akismet|cron-control|debug-bar|debug-bar-cron|drop-ins|http-concat|lightweight-term-count-update|query-monitor|(search/(elasticpress|debug-bar-elasticpress|es-wp-query))|shared-plugins|rewrite-rules-inspector|vaultpress|wordpress-importer)/~"' >> $GITHUB_OUTPUT + echo 'ini=apc.enable_cli=1, pcov.directory=., pcov.exclude="~/(vendor|tests|node_modules|jetpack[^/]*|wp-parsely[^/]+|advanced-post-cache|akismet|cron-control|drop-ins|http-concat|lightweight-term-count-update|query-monitor|(search/(elasticpress|debug-bar-elasticpress|es-wp-query))|shared-plugins|rewrite-rules-inspector|vaultpress|wordpress-importer)/~"' >> $GITHUB_OUTPUT else echo "coverage=none" >> $GITHUB_OUTPUT echo "ini=apc.enable_cli=1, opcache.enable_cli=1" >> $GITHUB_OUTPUT @@ -89,7 +89,7 @@ runs: run: echo "WP_MULTISITE=1" >> $GITHUB_ENV if: inputs.multisite == 'yes' - - name: Disable JetPack + - name: Disable Jetpack shell: bash run: echo "VIP_JETPACK_SKIP_LOAD=1" >> $GITHUB_ENV if: inputs.jetpack == 'no' diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 18913b70d3..b7a0c7c0e4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -49,8 +49,9 @@ jobs: - name: Synchronize files run: | - rsync --delete -a "${GITHUB_WORKSPACE}/${SOURCE_REPO_PATH}/" "${GITHUB_WORKSPACE}/${EXT_REPO_PATH}/"* "${GITHUB_WORKSPACE}/${TARGET_REPO_PATH}/" --exclude-from="${GITHUB_WORKSPACE}/${SOURCE_REPO_PATH}/.dockerignore" --exclude-from="${GITHUB_WORKSPACE}/${EXT_REPO_PATH}/.dockerignore" - + mv "${GITHUB_WORKSPACE}/${TARGET_REPO_PATH}/.git" "${GITHUB_WORKSPACE}/${TARGET_REPO_PATH}/../built-git-bak" + rsync --delete --delete-excluded -a "${GITHUB_WORKSPACE}/${SOURCE_REPO_PATH}/" "${GITHUB_WORKSPACE}/${EXT_REPO_PATH}/"* "${GITHUB_WORKSPACE}/${TARGET_REPO_PATH}/" --exclude-from="${GITHUB_WORKSPACE}/${SOURCE_REPO_PATH}/.dockerignore" --exclude-from="${GITHUB_WORKSPACE}/${EXT_REPO_PATH}/.dockerignore" --exclude="/jetpack-*/" + mv "${GITHUB_WORKSPACE}/${TARGET_REPO_PATH}/../built-git-bak" "${GITHUB_WORKSPACE}/${TARGET_REPO_PATH}/.git" - name: Clean up run: | TARGET="${GITHUB_WORKSPACE}/${TARGET_REPO_PATH}" diff --git a/.github/workflows/parsely.yml b/.github/workflows/parsely.yml index 770e75a004..e2020889f8 100644 --- a/.github/workflows/parsely.yml +++ b/.github/workflows/parsely.yml @@ -23,20 +23,20 @@ jobs: matrix: config: # Oldest version of the parsely plugin - - { wp: latest, parsely: '3.1', mode: 'filter_enabled', php: '8.0' } - - { wp: latest, parsely: '3.1', mode: 'filter_disabled', php: '8.0' } - - { wp: latest, parsely: '3.1', mode: 'option_enabled', php: '8.0' } - - { wp: latest, parsely: '3.1', mode: 'option_disabled', php: '8.0' } - - { wp: latest, parsely: '3.1', mode: 'filter_and_option_enabled', php: '8.0' } - - { wp: latest, parsely: '3.1', mode: 'filter_and_option_disabled', php: '8.0' } + - { wp: latest, parsely: '3.5', mode: 'filter_enabled', php: '8.1' } + - { wp: latest, parsely: '3.5', mode: 'filter_disabled', php: '8.1' } + - { wp: latest, parsely: '3.5', mode: 'option_enabled', php: '8.1' } + - { wp: latest, parsely: '3.5', mode: 'option_disabled', php: '8.1' } + - { wp: latest, parsely: '3.5', mode: 'filter_and_option_enabled', php: '8.1' } + - { wp: latest, parsely: '3.5', mode: 'filter_and_option_disabled', php: '8.1' } # Latest version of the parsely plugin - - { wp: latest, mode: 'filter_enabled', php: '8.0' } - - { wp: latest, mode: 'filter_disabled', php: '8.0' } - - { wp: latest, mode: 'option_enabled', php: '8.0' } - - { wp: latest, mode: 'option_disabled', php: '8.0' } - - { wp: latest, mode: 'filter_and_option_enabled', php: '8.0' } - - { wp: latest, mode: 'filter_and_option_disabled', php: '8.0' } + - { wp: latest, mode: 'filter_enabled', php: '8.1' } + - { wp: latest, mode: 'filter_disabled', php: '8.1' } + - { wp: latest, mode: 'option_enabled', php: '8.1' } + - { wp: latest, mode: 'option_disabled', php: '8.1' } + - { wp: latest, mode: 'filter_and_option_enabled', php: '8.1' } + - { wp: latest, mode: 'filter_and_option_disabled', php: '8.1' } services: mysql: image: mysql:8 diff --git a/integrations/integration-vip-config.php b/integrations/integration-vip-config.php index e6ff61af30..cda5bc4a40 100644 --- a/integrations/integration-vip-config.php +++ b/integrations/integration-vip-config.php @@ -78,7 +78,9 @@ private function set_config( string $slug ): void { * @return null|mixed */ protected function get_vip_config_from_file( string $slug ) { - $config_file_directory = ABSPATH . 'config/integrations-config'; + $config_file_directory = defined( 'WPVIP_INTEGRATIONS_CONFIG_DIR' ) + ? constant( 'WPVIP_INTEGRATIONS_CONFIG_DIR' ) + : ABSPATH . 'config/integrations-config'; $config_file_name = $slug . '-config.php'; $config_file_path = $config_file_directory . '/' . $config_file_name; diff --git a/search/elasticpress b/search/elasticpress index 3d198a779a..445401e47e 160000 --- a/search/elasticpress +++ b/search/elasticpress @@ -1 +1 @@ -Subproject commit 3d198a779ac3425601ad35c23e814e63dd3b9d63 +Subproject commit 445401e47eb6d1781a116302e91bc15ffb261948 diff --git a/search/includes/classes/class-health.php b/search/includes/classes/class-health.php index 5c7ac362c5..877a050804 100644 --- a/search/includes/classes/class-health.php +++ b/search/includes/classes/class-health.php @@ -1034,13 +1034,9 @@ public function get_index_settings_diff_for_indexable( \ElasticPress\Indexable $ $diff = []; if ( $indexable->index_exists() ) { - if ( method_exists( '\Automattic\VIP\Search\Search', 'should_load_new_ep' ) && \Automattic\VIP\Search\Search::should_load_new_ep() ) { - $index_name = $indexable->get_index_name(); - $settings = $this->elasticsearch->get_index_settings( $index_name ); - $actual_settings = $settings[ $index_name ]['settings'] ?? []; - } else { - $actual_settings = $indexable->get_index_settings(); - } + $index_name = $indexable->get_index_name(); + $settings = $this->elasticsearch->get_index_settings( $index_name ); + $actual_settings = $settings[ $index_name ]['settings'] ?? []; if ( is_wp_error( $actual_settings ) ) { $this->search->versioning->reset_current_version_number( $indexable ); @@ -1048,12 +1044,8 @@ public function get_index_settings_diff_for_indexable( \ElasticPress\Indexable $ return $actual_settings; } - if ( method_exists( '\Automattic\VIP\Search\Search', 'should_load_new_ep' ) && \Automattic\VIP\Search\Search::should_load_new_ep() ) { - $mapping = $indexable->generate_mapping(); - $desired_settings = $mapping['settings']; - } else { - $desired_settings = $indexable->build_settings(); - } + $mapping = $indexable->generate_mapping(); + $desired_settings = $mapping['settings']; // We only monitor certain settings $actual_settings_to_check = self::limit_index_settings_to_keys( $actual_settings, self::INDEX_SETTINGS_HEALTH_MONITORED_KEYS ); @@ -1118,12 +1110,8 @@ public function heal_index_settings_for_indexable( \ElasticPress\Indexable $inde } } - if ( method_exists( '\Automattic\VIP\Search\Search', 'should_load_new_ep' ) && \Automattic\VIP\Search\Search::should_load_new_ep() ) { - $mapping = $indexable->generate_mapping(); - $desired_settings = $mapping['settings']; - } else { - $desired_settings = $indexable->build_settings(); - } + $mapping = $indexable->generate_mapping(); + $desired_settings = $mapping['settings']; \Automattic\VIP\Logstash\log2logstash( [ @@ -1141,11 +1129,7 @@ public function heal_index_settings_for_indexable( \ElasticPress\Indexable $inde // Limit to only the settings that we auto-heal $desired_settings_to_heal = self::limit_index_settings_to_keys( $desired_settings, self::INDEX_SETTINGS_HEALTH_AUTO_HEAL_KEYS ); $index_name = $indexable->get_index_name(); - if ( method_exists( '\Automattic\VIP\Search\Search', 'should_load_new_ep' ) && \Automattic\VIP\Search\Search::should_load_new_ep() ) { - $result = $this->elasticsearch->update_index_settings( $index_name, $desired_settings_to_heal, false ); - } else { - $result = $indexable->update_index_settings( $desired_settings_to_heal ); - } + $result = $this->elasticsearch->update_index_settings( $index_name, $desired_settings_to_heal, false ); $index_version = $this->search->versioning->get_current_version_number( $indexable ); diff --git a/search/includes/classes/class-queue.php b/search/includes/classes/class-queue.php index 66325c01aa..f417742a2c 100644 --- a/search/includes/classes/class-queue.php +++ b/search/includes/classes/class-queue.php @@ -261,6 +261,9 @@ public function apply_settings() { } public function setup_hooks() { + // We should make sure to apply the settings again after the customer code have been loaded to ensure the consistency. + add_action( 'after_setup_theme', array( $this, 'apply_settings' ), PHP_INT_MAX ); + add_action( 'saved_term', [ $this, 'offload_term_indexing_to_queue' ], 0, 3 ); // saved_term fires after SyncManager_Helper actions add_action( 'pre_delete_term', [ $this, 'offload_indexing_to_queue' ] ); @@ -1084,10 +1087,10 @@ public function ratelimit_indexing( $bail, $sync_manager, $indexable_slug ) { // Increment first to prevent overrunning ratelimiting $increment = count( $sync_manager->sync_queue ); - $index_count_in_period = self::index_count_incr( $increment ); + $index_count_in_period = static::index_count_incr( $increment ); // If indexing operation ratelimiting is hit, queue index operations - if ( $index_count_in_period > self::$max_indexing_op_count || self::is_indexing_ratelimited() ) { + if ( $index_count_in_period > static::$max_indexing_op_count ) { if ( class_exists( Prometheus_Collector::class ) ) { Prometheus_Collector::increment_ratelimited_index_counter( Search::instance()->get_current_host(), $increment ); } @@ -1103,6 +1106,7 @@ public function ratelimit_indexing( $bail, $sync_manager, $indexable_slug ) { $this->log_index_ratelimiting_start(); } } else { + static::turn_off_index_ratelimiting(); $this->clear_index_limiting_start_timestamp(); } @@ -1171,6 +1175,15 @@ public static function turn_on_index_ratelimiting() { return wp_cache_set( self::INDEX_QUEUEING_ENABLED_KEY, true, self::INDEX_COUNT_CACHE_GROUP, self::$index_queueing_ttl ); } + /** + * Turn off ratelimit indexing + * + * @return bool void + */ + public static function turn_off_index_ratelimiting() { + wp_cache_delete( self::INDEX_QUEUEING_ENABLED_KEY, self::INDEX_COUNT_CACHE_GROUP ); + } + /** * Get the current queue stats * @@ -1263,9 +1276,10 @@ public function delete_jobs_for_index_version( $indexable_slug, $index_version ) * @return int|bool New value on success, false on failure */ private static function index_count_incr( $increment = 1 ) { - if ( false === wp_cache_get( self::INDEX_COUNT_CACHE_KEY, self::INDEX_COUNT_CACHE_GROUP ) ) { + if ( false === wp_cache_get( static::INDEX_COUNT_CACHE_KEY, static::INDEX_COUNT_CACHE_GROUP ) ) { // phpcs:ignore WordPressVIPMinimum.Performance.LowExpiryCacheTime.CacheTimeUndetermined - wp_cache_set( self::INDEX_COUNT_CACHE_KEY, 0, self::INDEX_COUNT_CACHE_GROUP, self::$index_count_ttl ); + wp_cache_set( static::INDEX_COUNT_CACHE_KEY, 0, static::INDEX_COUNT_CACHE_GROUP, static::$index_count_ttl ); + static::turn_off_index_ratelimiting(); } return wp_cache_incr( self::INDEX_COUNT_CACHE_KEY, $increment, self::INDEX_COUNT_CACHE_GROUP ); @@ -1277,12 +1291,13 @@ private static function index_count_incr( $increment = 1 ) { public function handle_index_limiting_start_timestamp() { if ( false === static::get_indexing_rate_limit_start() ) { $start_timestamp = time(); - wp_cache_set( self::INDEX_RATE_LIMITED_START_CACHE_KEY, $start_timestamp, self::INDEX_COUNT_CACHE_GROUP ); + // phpcs:ignore WordPressVIPMinimum.Performance.LowExpiryCacheTime.CacheTimeUndetermined + wp_cache_set( static::INDEX_RATE_LIMITED_START_CACHE_KEY, $start_timestamp, static::INDEX_COUNT_CACHE_GROUP ); } } public function clear_index_limiting_start_timestamp() { - wp_cache_delete( self::INDEX_RATE_LIMITED_START_CACHE_KEY, self::INDEX_COUNT_CACHE_GROUP ); + wp_cache_delete( static::INDEX_RATE_LIMITED_START_CACHE_KEY, static::INDEX_COUNT_CACHE_GROUP ); } /** diff --git a/search/includes/classes/class-search.php b/search/includes/classes/class-search.php index 74cb5eabd1..817c995119 100644 --- a/search/includes/classes/class-search.php +++ b/search/includes/classes/class-search.php @@ -239,27 +239,9 @@ public static function instance() { return static::$instance; } - /** - * Whether to load the latest ElasticPress version. - * Can be overridden by defining `VIP_SEARCH_USE_NEXT_EP` to false. - * - * @return bool Whether to load the latest version or not. Defaults to true. - */ - public static function should_load_new_ep() { - if ( defined( 'VIP_SEARCH_USE_NEXT_EP' ) && true !== constant( 'VIP_SEARCH_USE_NEXT_EP' ) ) { - return false; - } - - return true; - } - protected function load_dependencies() { // Load ElasticPress - if ( static::should_load_new_ep() ) { - require_once __DIR__ . '/../../elasticpress-next/elasticpress.php'; - } else { - require_once __DIR__ . '/../../elasticpress/elasticpress.php'; - } + require_once __DIR__ . '/../../elasticpress/elasticpress.php'; // Load health check cron job require_once __DIR__ . '/class-healthjob.php'; @@ -1707,7 +1689,7 @@ public function filter__ep_post_mapping( $mapping ) { public function filter__ep_user_mapping( $mapping ) { $users_count = count_users(); - if ( isset( $users_count->total_users ) && ( $users_count->total_users > self::USER_SHARD_THRESHOLD ) ) { + if ( isset( $users_count['total_users'] ) && ( $users_count['total_users'] > self::USER_SHARD_THRESHOLD ) ) { $mapping['settings']['index.number_of_shards'] = 4; } diff --git a/search/includes/functions/ep-get-query-log.php b/search/includes/functions/ep-get-query-log.php index 3a7b65394d..e320a459bd 100644 --- a/search/includes/functions/ep-get-query-log.php +++ b/search/includes/functions/ep-get-query-log.php @@ -1,9 +1,5 @@ setup_features(); // Simulate a large site - $return_big_count = function () { - $counts = new stdClass(); - $counts->avail_roles = 100; - $counts->total_users = 3000000; - - return $counts; - }; + $return_big_count = fn () => [ + 'avail_roles' => 100, + 'total_users' => 3000000, + ]; add_filter( 'pre_count_users', $return_big_count ); @@ -405,8 +402,6 @@ public function test__vip_search_filter_filter__ep_user_mapping__large_site() { $settings = $mapping['settings']; } $this->assertEquals( 4, $settings['index.number_of_shards'] ); - - remove_filter( 'pre_count_users', $return_big_count ); } public function test__vip_search_filter_ep_default_index_number_of_replicas() { diff --git a/tests/search/includes/classes/test-concurrency-limiter.php b/tests/search/includes/classes/test-concurrency-limiter.php index b7ff571c3f..f8b85925f7 100644 --- a/tests/search/includes/classes/test-concurrency-limiter.php +++ b/tests/search/includes/classes/test-concurrency-limiter.php @@ -10,8 +10,8 @@ require_once __DIR__ . '/../../../../search/includes/classes/class-concurrency-limiter.php'; require_once __DIR__ . '/../../../../search/includes/classes/concurrency-limiter/class-apcu-backend.php'; -require_once __DIR__ . '/../../../../search/elasticpress-next/includes/classes/Elasticsearch.php'; // TODO: Switch back to `elasticpress` once we're ready to completely remove the old EP. -require_once __DIR__ . '/../../../../search/elasticpress-next/includes/utils.php'; // TODO: Switch back to `elasticpress` once we're ready to completely remove the old EP. +require_once __DIR__ . '/../../../../search/elasticpress/includes/classes/Elasticsearch.php'; +require_once __DIR__ . '/../../../../search/elasticpress/includes/utils.php'; class Test_Concurrency_Limiter extends WP_UnitTestCase { public function setUp(): void { diff --git a/tests/search/test-search-dev-tools.php b/tests/search/test-search-dev-tools.php index 4d96501716..a1d5056f78 100644 --- a/tests/search/test-search-dev-tools.php +++ b/tests/search/test-search-dev-tools.php @@ -6,7 +6,7 @@ require_once __DIR__ . '/../../search/search.php'; require_once __DIR__ . '/../../search/includes/classes/class-versioning.php'; -require_once __DIR__ . '/../../search/elasticpress-next/elasticpress.php'; // TODO: Switch back to `elasticpress` once we're ready to completely remove the old EP. +require_once __DIR__ . '/../../search/elasticpress/elasticpress.php'; class Search_Dev_Tools_Test extends WP_UnitTestCase { public function setUp(): void { From 94bb6ab0354a85f06f141c41ee7e613d051abff7 Mon Sep 17 00:00:00 2001 From: Rebecca Hum Date: Wed, 8 May 2024 09:55:00 -0700 Subject: [PATCH 03/14] Jetpack: Update default to 13.4 from 13.3 (#5551) * Jetpack: Update default to 13.4 from 13.3 * Bump version in file meta --- jetpack.php | 4 ++-- tests/test-jetpack.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jetpack.php b/jetpack.php index 8d8c863918..b196fc1596 100644 --- a/jetpack.php +++ b/jetpack.php @@ -4,7 +4,7 @@ * Plugin URI: https://jetpack.com * Description: Security, performance, and marketing tools made by WordPress experts. Jetpack keeps your site protected so you can focus on more important things. * Author: Automattic - * Version: 13.3.1 + * Version: 13.4 * Author URI: https://jetpack.com * License: GPL2+ * Text Domain: jetpack @@ -39,7 +39,7 @@ function vip_default_jetpack_version() { return '13.1'; } else { // WordPress 6.4 and newer. - return '13.3'; + return '13.4'; } } diff --git a/tests/test-jetpack.php b/tests/test-jetpack.php index e6363695f2..37691f48a6 100644 --- a/tests/test-jetpack.php +++ b/tests/test-jetpack.php @@ -7,7 +7,7 @@ public function test__vip_default_jetpack_version() { global $wp_version; $saved_wp_version = $wp_version; - $latest = '13.3'; + $latest = '13.4'; $versions_map = [ // WordPress version => Jetpack version From 4727668e97114de02391c809034e2250ffcf746f Mon Sep 17 00:00:00 2001 From: Rebecca Hum Date: Mon, 13 May 2024 08:44:13 -0700 Subject: [PATCH 04/14] Jetpack: Update submodule to 13.4.2 (#5557) --- jetpack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetpack b/jetpack index 62e845363f..b4cf3d87ce 160000 --- a/jetpack +++ b/jetpack @@ -1 +1 @@ -Subproject commit 62e845363f7784e1cd69ac726e94e1dd0108bc65 +Subproject commit b4cf3d87ce760910a703df7320850b4626df9fef From 1c531bcd6d4d2dae334165cf90129bf0f86cd3ca Mon Sep 17 00:00:00 2001 From: Rebecca Hum Date: Mon, 13 May 2024 08:33:29 -0700 Subject: [PATCH 05/14] Jetpack 13.4.2 bump (#5556) --- jetpack.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetpack.php b/jetpack.php index b196fc1596..68d38f215c 100644 --- a/jetpack.php +++ b/jetpack.php @@ -4,7 +4,7 @@ * Plugin URI: https://jetpack.com * Description: Security, performance, and marketing tools made by WordPress experts. Jetpack keeps your site protected so you can focus on more important things. * Author: Automattic - * Version: 13.4 + * Version: 13.4.2 * Author URI: https://jetpack.com * License: GPL2+ * Text Domain: jetpack From 34340a4072078c4dd5fc95487619788293c7ac41 Mon Sep 17 00:00:00 2001 From: Rebecca Hum Date: Mon, 17 Jun 2024 17:16:11 +0100 Subject: [PATCH 06/14] Jetpack: Update to 13.5 (#5648) --- jetpack | 2 +- jetpack.php | 4 ++-- tests/test-jetpack.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/jetpack b/jetpack index 012936881b..ab5672e52a 160000 --- a/jetpack +++ b/jetpack @@ -1 +1 @@ -Subproject commit 012936881bdfad318b1e5bca4b44983c1b7b5401 +Subproject commit ab5672e52a7d3ed91280b422a958e0c80384bff0 diff --git a/jetpack.php b/jetpack.php index 951b0e8a52..eb3bd9ab07 100644 --- a/jetpack.php +++ b/jetpack.php @@ -4,7 +4,7 @@ * Plugin URI: https://jetpack.com * Description: Security, performance, and marketing tools made by WordPress experts. Jetpack keeps your site protected so you can focus on more important things. * Author: Automattic - * Version: 13.4.3 + * Version: 13.5 * Author URI: https://jetpack.com * License: GPL2+ * Text Domain: jetpack @@ -39,7 +39,7 @@ function vip_default_jetpack_version() { return '13.1'; } else { // WordPress 6.4 and newer. - return '13.4'; + return '13.5'; } } diff --git a/tests/test-jetpack.php b/tests/test-jetpack.php index 37691f48a6..3c3b2199ff 100644 --- a/tests/test-jetpack.php +++ b/tests/test-jetpack.php @@ -7,7 +7,7 @@ public function test__vip_default_jetpack_version() { global $wp_version; $saved_wp_version = $wp_version; - $latest = '13.4'; + $latest = '13.5'; $versions_map = [ // WordPress version => Jetpack version From 4d6fd54fa6b12a6a8d8b8f7a507e8069173172f2 Mon Sep 17 00:00:00 2001 From: Rebecca Hum Date: Wed, 17 Jul 2024 10:47:34 -0600 Subject: [PATCH 07/14] Jetpack: Update to 13.6 as default (#5725) --- jetpack | 2 +- jetpack.php | 4 ++-- tests/test-jetpack.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/jetpack b/jetpack index ab5672e52a..29f0e711bc 160000 --- a/jetpack +++ b/jetpack @@ -1 +1 @@ -Subproject commit ab5672e52a7d3ed91280b422a958e0c80384bff0 +Subproject commit 29f0e711bc317261c281b993fdc45d4624391ae4 diff --git a/jetpack.php b/jetpack.php index eb3bd9ab07..6b6cdf69d6 100644 --- a/jetpack.php +++ b/jetpack.php @@ -4,7 +4,7 @@ * Plugin URI: https://jetpack.com * Description: Security, performance, and marketing tools made by WordPress experts. Jetpack keeps your site protected so you can focus on more important things. * Author: Automattic - * Version: 13.5 + * Version: 13.6 * Author URI: https://jetpack.com * License: GPL2+ * Text Domain: jetpack @@ -39,7 +39,7 @@ function vip_default_jetpack_version() { return '13.1'; } else { // WordPress 6.4 and newer. - return '13.5'; + return '13.6'; } } diff --git a/tests/test-jetpack.php b/tests/test-jetpack.php index 3c3b2199ff..f285b443e2 100644 --- a/tests/test-jetpack.php +++ b/tests/test-jetpack.php @@ -7,7 +7,7 @@ public function test__vip_default_jetpack_version() { global $wp_version; $saved_wp_version = $wp_version; - $latest = '13.5'; + $latest = '13.6'; $versions_map = [ // WordPress version => Jetpack version From b288a0bd5a62cc4b50be194156decd4365c737be Mon Sep 17 00:00:00 2001 From: Andrea Grassi Date: Tue, 23 Jul 2024 18:29:34 +0200 Subject: [PATCH 08/14] Adds support for the TWILIO_MESSAGING_SERVICE_SID when sending SMS (#5737) --- lib/sms.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/sms.php b/lib/sms.php index 13e5691ace..0bb4ce13b7 100644 --- a/lib/sms.php +++ b/lib/sms.php @@ -43,10 +43,18 @@ function send_sms( $to, $message ) { } $body = array( - 'From' => SMS_FROM_NUMBER, 'To' => $to_number, 'Body' => $message_split, ); + /** + * If defined, we want to use the MessagingServiceSid to leverage all the automatic logic of the messaging service to route the SMS from the right "From" number. + * For example in some countries, the "From" number should be a local number to the recipient or an alphanumeric sender ID. + */ + if ( defined( 'TWILIO_MESSAGING_SERVICE_SID' ) ) { + $body['MessagingServiceSid'] = TWILIO_MESSAGING_SERVICE_SID; + } else { + $body['From'] = SMS_FROM_NUMBER; + } $result = send_single_sms_via_rest( $body ); if ( is_wp_error( $result ) ) { From 0e736788c17fe591b5eb36990c5166cb8057a434 Mon Sep 17 00:00:00 2001 From: Andrea Grassi Date: Tue, 23 Jul 2024 18:43:44 +0200 Subject: [PATCH 09/14] rename TWILIO_MESSAGING_SERVICE_SID to VIP_TWILIO_MESSAGING_SERVICE_SID (#5739) --- lib/sms.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sms.php b/lib/sms.php index 0bb4ce13b7..94d10a1792 100644 --- a/lib/sms.php +++ b/lib/sms.php @@ -50,8 +50,8 @@ function send_sms( $to, $message ) { * If defined, we want to use the MessagingServiceSid to leverage all the automatic logic of the messaging service to route the SMS from the right "From" number. * For example in some countries, the "From" number should be a local number to the recipient or an alphanumeric sender ID. */ - if ( defined( 'TWILIO_MESSAGING_SERVICE_SID' ) ) { - $body['MessagingServiceSid'] = TWILIO_MESSAGING_SERVICE_SID; + if ( defined( 'VIP_TWILIO_MESSAGING_SERVICE_SID' ) ) { + $body['MessagingServiceSid'] = VIP_TWILIO_MESSAGING_SERVICE_SID; } else { $body['From'] = SMS_FROM_NUMBER; } From 4b38fdf427fd587aa65cd02376f680f88035e020 Mon Sep 17 00:00:00 2001 From: Rebecca Hum Date: Wed, 14 Aug 2024 14:56:11 -0600 Subject: [PATCH 10/14] ACL: Default to restricting all on non-prod if ACL is enabled but no options are set (#5796) --- files/acl/acl.php | 24 ++++++++++++++++++------ tests/files/acl/test-acl.php | 6 +++--- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/files/acl/acl.php b/files/acl/acl.php index 4d177e706c..c61de59136 100644 --- a/files/acl/acl.php +++ b/files/acl/acl.php @@ -18,8 +18,9 @@ function maybe_load_restrictions() { $is_files_acl_enabled = defined( 'VIP_FILES_ACL_ENABLED' ) && true === constant( 'VIP_FILES_ACL_ENABLED' ); - $is_restrict_all_enabled = get_option_as_bool( 'vip_files_acl_restrict_all_enabled' ); - $is_restrict_unpublished_enabled = get_option_as_bool( 'vip_files_acl_restrict_unpublished_enabled' ); + $is_restrict_all_enabled = get_option_as_bool_if_exists( 'vip_files_acl_restrict_all_enabled' ); + $is_restrict_unpublished_enabled = get_option_as_bool_if_exists( 'vip_files_acl_restrict_unpublished_enabled' ); + $no_option_set = null === $is_restrict_all_enabled && null === $is_restrict_unpublished_enabled; if ( ! $is_files_acl_enabled ) { // Throw warning if restrictions are enabled but ACL constant is not set. @@ -32,11 +33,11 @@ function maybe_load_restrictions() { return; } - if ( $is_restrict_all_enabled ) { + if ( true === $is_restrict_all_enabled || ( $no_option_set && ( defined( 'VIP_GO_ENV' ) && 'production' !== VIP_GO_ENV ) ) ) { require_once __DIR__ . '/restrict-all-files.php'; add_filter( 'vip_files_acl_file_visibility', __NAMESPACE__ . '\Restrict_All_Files\check_file_visibility', 10, 2 ); - } elseif ( $is_restrict_unpublished_enabled ) { + } elseif ( true === $is_restrict_unpublished_enabled ) { require_once __DIR__ . '/restrict-unpublished-files.php'; add_filter( 'vip_files_acl_file_visibility', __NAMESPACE__ . '\Restrict_Unpublished_Files\check_file_visibility', 10, 2 ); @@ -45,8 +46,19 @@ function maybe_load_restrictions() { } } -function get_option_as_bool( $option_name ) { - $value = get_option( $option_name, false ); +/** + * Get an option as a boolean if it exists. If it does not exist, return null. + * + * @param string $option_name The name of the option to get. + * + * @return boolean|null The option value as a boolean, or null if the option does not exist. + */ +function get_option_as_bool_if_exists( $option_name ) { + $value = get_option( $option_name, null ); + + if ( null === $value ) { + return $value; + } return in_array( $value, [ true, diff --git a/tests/files/acl/test-acl.php b/tests/files/acl/test-acl.php index 156479154d..e2948cc90c 100644 --- a/tests/files/acl/test-acl.php +++ b/tests/files/acl/test-acl.php @@ -111,9 +111,9 @@ public function test__maybe_load_restrictions__constant_and_restrict_unpublished } public function test__get_option_as_bool__option_not_exists() { - $actual_value = get_option_as_bool( 'my_test_get_option_as_bool_option_not_exists' ); + $actual_value = get_option_as_bool_if_exists( 'my_test_get_option_as_bool_option_not_exists' ); - $this->assertEquals( false, $actual_value ); + $this->assertEquals( null, $actual_value ); } public function data_provider__get_option_as_bool__option_exists() { @@ -166,7 +166,7 @@ public function data_provider__get_option_as_bool__option_exists() { public function test__get_option_as_bool__option_exists( $option_value, $expected_value ) { update_option( 'my_test_get_option_as_bool_option', $option_value ); - $actual_value = get_option_as_bool( 'my_test_get_option_as_bool_option' ); + $actual_value = get_option_as_bool_if_exists( 'my_test_get_option_as_bool_option' ); $this->assertEquals( $expected_value, $actual_value ); } From 7a68dc45c3c40dab33dcb72e3c792cf9489d4f29 Mon Sep 17 00:00:00 2001 From: Rebecca Hum Date: Tue, 20 Aug 2024 10:45:02 -0600 Subject: [PATCH 11/14] Jetpack: Set 13.7 as default (for WP 6.5+) (#5809) * Jetpack: Set 13.7 as default * Account for min version bump --- jetpack | 2 +- jetpack.php | 9 ++++++--- tests/test-jetpack.php | 5 +++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/jetpack b/jetpack index 29f0e711bc..593ff1d429 160000 --- a/jetpack +++ b/jetpack @@ -1 +1 @@ -Subproject commit 29f0e711bc317261c281b993fdc45d4624391ae4 +Subproject commit 593ff1d429df61f01d2ddd21a9ce3e9e3c40071f diff --git a/jetpack.php b/jetpack.php index 6b6cdf69d6..b60cf4e396 100644 --- a/jetpack.php +++ b/jetpack.php @@ -4,7 +4,7 @@ * Plugin URI: https://jetpack.com * Description: Security, performance, and marketing tools made by WordPress experts. Jetpack keeps your site protected so you can focus on more important things. * Author: Automattic - * Version: 13.6 + * Version: 13.7 * Author URI: https://jetpack.com * License: GPL2+ * Text Domain: jetpack @@ -37,9 +37,12 @@ function vip_default_jetpack_version() { } elseif ( version_compare( $wp_version, '6.4', '<' ) ) { // WordPress 6.3.x return '13.1'; - } else { - // WordPress 6.4 and newer. + } elseif ( version_compare( $wp_version, '6.5', '<' ) ) { + // WordPress 6.4.x return '13.6'; + } else { + // WordPress 6.5 and newer. + return '13.7'; } } diff --git a/tests/test-jetpack.php b/tests/test-jetpack.php index f285b443e2..0396420e11 100644 --- a/tests/test-jetpack.php +++ b/tests/test-jetpack.php @@ -7,7 +7,7 @@ public function test__vip_default_jetpack_version() { global $wp_version; $saved_wp_version = $wp_version; - $latest = '13.6'; + $latest = '13.7'; $versions_map = [ // WordPress version => Jetpack version @@ -18,7 +18,8 @@ public function test__vip_default_jetpack_version() { '6.1' => '12.5', '6.2' => '12.8', '6.3' => '13.1', - '6.4' => $latest, + '6.4' => '13.6', + '6.5' => $latest, ]; foreach ( $versions_map as $wordpress_version => $jetpack_version ) { From b28491148e949ea48ee2e7768d2481b9c3ba9362 Mon Sep 17 00:00:00 2001 From: Rebecca Hum Date: Wed, 18 Sep 2024 15:02:16 -0600 Subject: [PATCH 12/14] Jetpack: Update to 13.8 (#5871) --- jetpack | 2 +- jetpack.php | 4 ++-- tests/test-jetpack.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/jetpack b/jetpack index 593ff1d429..c07c76be37 160000 --- a/jetpack +++ b/jetpack @@ -1 +1 @@ -Subproject commit 593ff1d429df61f01d2ddd21a9ce3e9e3c40071f +Subproject commit c07c76be37a0a3030524222368118a43e924fc71 diff --git a/jetpack.php b/jetpack.php index b60cf4e396..0229baad5f 100644 --- a/jetpack.php +++ b/jetpack.php @@ -4,7 +4,7 @@ * Plugin URI: https://jetpack.com * Description: Security, performance, and marketing tools made by WordPress experts. Jetpack keeps your site protected so you can focus on more important things. * Author: Automattic - * Version: 13.7 + * Version: 13.8.1 * Author URI: https://jetpack.com * License: GPL2+ * Text Domain: jetpack @@ -42,7 +42,7 @@ function vip_default_jetpack_version() { return '13.6'; } else { // WordPress 6.5 and newer. - return '13.7'; + return '13.8'; } } diff --git a/tests/test-jetpack.php b/tests/test-jetpack.php index 0396420e11..82df349221 100644 --- a/tests/test-jetpack.php +++ b/tests/test-jetpack.php @@ -7,7 +7,7 @@ public function test__vip_default_jetpack_version() { global $wp_version; $saved_wp_version = $wp_version; - $latest = '13.7'; + $latest = '13.8'; $versions_map = [ // WordPress version => Jetpack version From 7836cca542896f5ba1d1f7dd0ab1d20fbefb5894 Mon Sep 17 00:00:00 2001 From: Rebecca Hum Date: Tue, 24 Sep 2024 14:35:57 -0600 Subject: [PATCH 13/14] Integrations: Temporarily disable loading of ES until backfilling is complete (#5889) * Add Jetpack 13.3 as default (#5453) * Production release v20230507.0 (#5549) * Exclude versioned Jetpacks from the `-built` version. (#5496) * Don't delete jetpack-* recursively, do the root only. Supply --delete-excluded flag (#5498) * CI: Preserve the .git folder when running --delete-excluded (#5500) * Don't delete jetpack-* recursively, do the root only. Supply --delete-excluded flag * Preserve .git * Use full path * Add debug to rsync output in Deploy workflow (#5501) * Move backup one folder up to prevent the deletion during the rsync (#5502) * Add debug to rsync output in Deploy workflow * Move .git backup one level up * Remove debug info from Deploy action (#5503) * fix: `count_users()` returns an array (#5499) * fix: `count_users()` returns an array * test: fix tests * CI: set minimum Parse.ly version to 3.5 (#5506) * CI: update Parse.ly minimum version, fix some typos * Remove debug-bar and debug-bar-cron as they're not the part of mu-plugins * Add the ability to define a custom VIP integrations config directory (#5505) * Search: Defaults Enterprise Search to ElasticPress 4.2.2 (#4607) * Search: Remove exception list * Search: Switch to new EP as default * Sync changes down * Update submodule change to latest one * Update the PR template to include the new Changelog format (#5477) * Remove limitation on "wp db size" (#5507) * Revert "Remove limitation on "wp db size" (#5507)" (#5522) This reverts commit 2efcab4ee5294e5530cfabfb59d17fadd288e427. Revert "Remove limitation on "wp db size" (#5507)" This reverts commit 720c8b98573a32926a7fc2cc7ebc1f9c85693a29. * Search: Fix potential prolonged rate-limiting (#5524) * Fix potential prolonged rate-limiting: the rate-limit start time object didn't have an expiration which may prevent the ratelimit window reset * Fix context * Apply settings on after_setup_theme to make sure customer code is included * Only consider requests in current window when enabling ratelimiting * Address feedback * Apply SonarCloud suggestions * remove ttl for indexing ratelimit start. More static over self. --------- Co-authored-by: Rinat K Co-authored-by: Volodymyr Kolesnykov Co-authored-by: Luis Henrique Mulinari Co-authored-by: Luiz Tiago Oliveira * Jetpack: Update default to 13.4 from 13.3 (#5551) * Jetpack: Update default to 13.4 from 13.3 * Bump version in file meta * Jetpack: Update submodule to 13.4.2 (#5557) * Jetpack 13.4.2 bump (#5556) * Jetpack: Update to 13.5 (#5648) * Jetpack: Update to 13.6 as default (#5725) * Jetpack: Update to 13.6 as default (#5725) * Adds support for the TWILIO_MESSAGING_SERVICE_SID when sending SMS (#5737) * rename TWILIO_MESSAGING_SERVICE_SID to VIP_TWILIO_MESSAGING_SERVICE_SID (#5739) * ACL: Default to restricting all on non-prod if ACL is enabled but no options are set (#5796) * ACL: Default to restricting all on non-prod if ACL is enabled but no options are set (#5796) * Jetpack: Set 13.7 as default (for WP 6.5+) (#5809) * Jetpack: Set 13.7 as default * Account for min version bump * Jetpack: Update to 13.8 (#5871) * Integrations: Temporarily disable ES for now --------- Co-authored-by: Caleb Burks Co-authored-by: Noah Allen Co-authored-by: Rinat K Co-authored-by: Luiz Tiago Oliveira Co-authored-by: Volodymyr Kolesnykov Co-authored-by: Luis Henrique Mulinari Co-authored-by: Andrea Grassi --- integrations/enterprise-search.php | 26 +++++++++++++++++++++++--- integrations/integration.php | 2 +- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/integrations/enterprise-search.php b/integrations/enterprise-search.php index b85ea82f02..efbf666a98 100644 --- a/integrations/enterprise-search.php +++ b/integrations/enterprise-search.php @@ -27,14 +27,34 @@ public function is_loaded(): bool { return class_exists( \Automattic\VIP\Search\Search::class ); } + /** + * Activates this integration with given options array. + * + * @param array $options An associative options array for the integration. + * This can contain common parameters and integration specific parameters in `config` key. + * + * @private + */ + public function activate( array $options = [] ): void { + // If integration is already available in customer code then don't activate it from platform side. + if ( $this->is_loaded() ) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedIf + // Do nothing. + } + + // Don't do anything if integration is already activated. + if ( $this->is_active() ) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedIf + // Do nothing. + } + + $this->is_active = true; + $this->options = $options; + } + /** * Loads the plugin. */ public function load(): void { // Return if the integration is already loaded. - // - // In activate() method we do make sure to not activate the integration if its already loaded - // but still adding it here as a safety measure i.e. if load() is called directly. if ( $this->is_loaded() ) { return; } diff --git a/integrations/integration.php b/integrations/integration.php index 5c6e9dcdbe..b5fcf9b551 100644 --- a/integrations/integration.php +++ b/integrations/integration.php @@ -38,7 +38,7 @@ abstract class Integration { * 'config'?: array, * } */ - private array $options = []; + protected array $options = []; /** * A boolean indicating if this integration should be loaded. Defaults to false. From 1564c8e5fe4ac7ede30cf36f4adac9a5adb1bf08 Mon Sep 17 00:00:00 2001 From: Volodymyr Kolesnykov Date: Tue, 1 Oct 2024 18:02:34 +0300 Subject: [PATCH 14/14] Production release: v20241001.0 (#5900) * Deprecations: fix version number for get_page_by_path() (#5868) The WordPress core function `get_page_by_path()` had caching added in WP 4.6.0 via https://core.trac.wordpress.org/ticket/36711. The confusing bit is that the effort to make the function use WP_Query (adds priming of caches) internally is the bit that was tried and reverted in https://core.trac.wordpress.org/ticket/56689#comment:19 for WP 6.1. See #5224. * Jetpack: Update to 13.8 (#5871) * Jetpack: Update to 13.8 (#5871) * chore(deps): Bump send and express (#5867) Bumps [send](https://github.com/pillarjs/send) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together. Updates `send` from 0.18.0 to 0.19.0 - [Release notes](https://github.com/pillarjs/send/releases) - [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md) - [Commits](https://github.com/pillarjs/send/compare/0.18.0...0.19.0) Updates `express` from 4.19.2 to 4.21.0 - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md) - [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0) --- updated-dependencies: - dependency-name: send dependency-type: indirect - dependency-name: express dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): Bump serve-static and express in /search/search-dev-tools (#5864) Bumps [serve-static](https://github.com/expressjs/serve-static) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together. Updates `serve-static` from 1.15.0 to 1.16.2 - [Release notes](https://github.com/expressjs/serve-static/releases) - [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md) - [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2) Updates `express` from 4.19.2 to 4.21.0 - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md) - [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0) --- updated-dependencies: - dependency-name: serve-static dependency-type: indirect - dependency-name: express dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): Bump send and express in /search/search-dev-tools (#5865) Bumps [send](https://github.com/pillarjs/send) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together. Updates `send` from 0.18.0 to 0.19.0 - [Release notes](https://github.com/pillarjs/send/releases) - [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md) - [Commits](https://github.com/pillarjs/send/compare/0.18.0...0.19.0) Updates `express` from 4.19.2 to 4.21.0 - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md) - [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0) --- updated-dependencies: - dependency-name: send dependency-type: indirect - dependency-name: express dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): Bump eslint (#5860) Bumps the eslint group in /search/search-dev-tools with 1 update: [eslint](https://github.com/eslint/eslint). Updates `eslint` from 8.57.0 to 8.57.1 - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.57.0...v8.57.1) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-patch dependency-group: eslint ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): Bump babel-loader (#5858) Bumps the babel group in /search/search-dev-tools with 1 update: [babel-loader](https://github.com/babel/babel-loader). Updates `babel-loader` from 9.1.3 to 9.2.1 - [Release notes](https://github.com/babel/babel-loader/releases) - [Changelog](https://github.com/babel/babel-loader/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel-loader/compare/v9.1.3...v9.2.1) --- updated-dependencies: - dependency-name: babel-loader dependency-type: direct:development update-type: version-update:semver-minor dependency-group: babel ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): Bump postcss-preset-env from 10.0.3 to 10.0.5 (#5876) Bumps [postcss-preset-env](https://github.com/csstools/postcss-plugins/tree/HEAD/plugin-packs/postcss-preset-env) from 10.0.3 to 10.0.5. - [Changelog](https://github.com/csstools/postcss-plugins/blob/main/plugin-packs/postcss-preset-env/CHANGELOG.md) - [Commits](https://github.com/csstools/postcss-plugins/commits/HEAD/plugin-packs/postcss-preset-env) --- updated-dependencies: - dependency-name: postcss-preset-env dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): Bump react-select from 5.8.0 to 5.8.1 (#5877) Bumps [react-select](https://github.com/JedWatson/react-select) from 5.8.0 to 5.8.1. - [Release notes](https://github.com/JedWatson/react-select/releases) - [Changelog](https://github.com/JedWatson/react-select/blob/master/docs/CHANGELOG.md) - [Commits](https://github.com/JedWatson/react-select/compare/react-select@5.8.0...react-select@5.8.1) --- updated-dependencies: - dependency-name: react-select dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): Bump github/codeql-action from 3.26.6 to 3.26.7 (#5862) Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.6 to 3.26.7. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v3.26.6...v3.26.7) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): Bump @wordpress/i18n from 5.7.0 to 5.8.0 (#5879) Bumps [@wordpress/i18n](https://github.com/WordPress/gutenberg/tree/HEAD/packages/i18n) from 5.7.0 to 5.8.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/i18n/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/i18n@5.8.0/packages/i18n) --- updated-dependencies: - dependency-name: "@wordpress/i18n" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): Bump johnpbloch/wordpress-core from 6.6.1 to 6.6.2 (#5857) Bumps [johnpbloch/wordpress-core](https://github.com/johnpbloch/wordpress-core) from 6.6.1 to 6.6.2. - [Commits](https://github.com/johnpbloch/wordpress-core/compare/6.6.1...6.6.2) --- updated-dependencies: - dependency-name: johnpbloch/wordpress-core dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): Bump @playwright/test in /__tests__/e2e (#5856) Bumps [@playwright/test](https://github.com/microsoft/playwright) from 1.47.0 to 1.47.1. - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](https://github.com/microsoft/playwright/compare/v1.47.0...v1.47.1) --- updated-dependencies: - dependency-name: "@playwright/test" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): Bump wp-phpunit/wp-phpunit from 6.6.1 to 6.6.2 (#5859) Bumps [wp-phpunit/wp-phpunit](https://github.com/wp-phpunit/wp-phpunit) from 6.6.1 to 6.6.2. - [Commits](https://github.com/wp-phpunit/wp-phpunit/compare/6.6.1...6.6.2) --- updated-dependencies: - dependency-name: wp-phpunit/wp-phpunit dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): Bump @types/node in /__tests__/e2e (#5854) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.5.4 to 22.5.5. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): Bump @wordpress/env from 10.7.0 to 10.8.0 (#5878) Bumps [@wordpress/env](https://github.com/WordPress/gutenberg/tree/HEAD/packages/env) from 10.7.0 to 10.8.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/env/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/env@10.8.0/packages/env) --- updated-dependencies: - dependency-name: "@wordpress/env" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): Bump eslint from 8.57.0 to 8.57.1 in /__tests__/e2e (#5855) Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 8.57.1. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.57.0...v8.57.1) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): Bump husky from 9.1.5 to 9.1.6 (#5853) Bumps [husky](https://github.com/typicode/husky) from 9.1.5 to 9.1.6. - [Release notes](https://github.com/typicode/husky/releases) - [Commits](https://github.com/typicode/husky/compare/v9.1.5...v9.1.6) --- updated-dependencies: - dependency-name: husky dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): Bump actions/setup-node from 4.0.3 to 4.0.4 (#5885) Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.0.3 to 4.0.4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v4.0.3...v4.0.4) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): Bump sass in /search/search-dev-tools (#5884) Bumps [sass](https://github.com/sass/dart-sass) from 1.78.0 to 1.79.3. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.78.0...1.79.3) --- updated-dependencies: - dependency-name: sass dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): Bump @wordpress/api-fetch from 7.7.0 to 7.8.0 (#5875) Bumps [@wordpress/api-fetch](https://github.com/WordPress/gutenberg/tree/HEAD/packages/api-fetch) from 7.7.0 to 7.8.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/api-fetch/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/api-fetch@7.8.0/packages/api-fetch) --- updated-dependencies: - dependency-name: "@wordpress/api-fetch" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): Bump @playwright/test in /__tests__/e2e (#5880) Bumps [@playwright/test](https://github.com/microsoft/playwright) from 1.47.1 to 1.47.2. - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](https://github.com/microsoft/playwright/compare/v1.47.1...v1.47.2) --- updated-dependencies: - dependency-name: "@playwright/test" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): Bump @types/node in /__tests__/e2e (#5881) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.5.5 to 22.6.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): Bump github/codeql-action from 3.26.7 to 3.26.8 (#5886) Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.7 to 3.26.8. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v3.26.7...v3.26.8) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): Bump preact from 10.23.2 to 10.24.0 in /search/search-dev-tools (#5861) * chore(deps): Bump preact in /search/search-dev-tools Bumps [preact](https://github.com/preactjs/preact) from 10.23.2 to 10.24.0. - [Release notes](https://github.com/preactjs/preact/releases) - [Commits](https://github.com/preactjs/preact/compare/10.23.2...10.24.0) --- updated-dependencies: - dependency-name: preact dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Regenerate the bundle --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: WordPress VIP Bot * chore(deps-dev): Bump eslint-config-preact (#5882) Bumps the eslint group in /search/search-dev-tools with 1 update: [eslint-config-preact](https://github.com/preactjs/eslint-config-preact). Updates `eslint-config-preact` from 1.4.0 to 1.5.0 - [Release notes](https://github.com/preactjs/eslint-config-preact/releases) - [Commits](https://github.com/preactjs/eslint-config-preact/compare/v1.4.0...1.5.0) --- updated-dependencies: - dependency-name: eslint-config-preact dependency-type: direct:development update-type: version-update:semver-minor dependency-group: eslint ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Integrations: Temporarily disable loading of ES until backfilling is complete (#5889) * Add Jetpack 13.3 as default (#5453) * Production release v20230507.0 (#5549) * Exclude versioned Jetpacks from the `-built` version. (#5496) * Don't delete jetpack-* recursively, do the root only. Supply --delete-excluded flag (#5498) * CI: Preserve the .git folder when running --delete-excluded (#5500) * Don't delete jetpack-* recursively, do the root only. Supply --delete-excluded flag * Preserve .git * Use full path * Add debug to rsync output in Deploy workflow (#5501) * Move backup one folder up to prevent the deletion during the rsync (#5502) * Add debug to rsync output in Deploy workflow * Move .git backup one level up * Remove debug info from Deploy action (#5503) * fix: `count_users()` returns an array (#5499) * fix: `count_users()` returns an array * test: fix tests * CI: set minimum Parse.ly version to 3.5 (#5506) * CI: update Parse.ly minimum version, fix some typos * Remove debug-bar and debug-bar-cron as they're not the part of mu-plugins * Add the ability to define a custom VIP integrations config directory (#5505) * Search: Defaults Enterprise Search to ElasticPress 4.2.2 (#4607) * Search: Remove exception list * Search: Switch to new EP as default * Sync changes down * Update submodule change to latest one * Update the PR template to include the new Changelog format (#5477) * Remove limitation on "wp db size" (#5507) * Revert "Remove limitation on "wp db size" (#5507)" (#5522) This reverts commit 2efcab4ee5294e5530cfabfb59d17fadd288e427. Revert "Remove limitation on "wp db size" (#5507)" This reverts commit 720c8b98573a32926a7fc2cc7ebc1f9c85693a29. * Search: Fix potential prolonged rate-limiting (#5524) * Fix potential prolonged rate-limiting: the rate-limit start time object didn't have an expiration which may prevent the ratelimit window reset * Fix context * Apply settings on after_setup_theme to make sure customer code is included * Only consider requests in current window when enabling ratelimiting * Address feedback * Apply SonarCloud suggestions * remove ttl for indexing ratelimit start. More static over self. --------- Co-authored-by: Rinat K Co-authored-by: Volodymyr Kolesnykov Co-authored-by: Luis Henrique Mulinari Co-authored-by: Luiz Tiago Oliveira * Jetpack: Update default to 13.4 from 13.3 (#5551) * Jetpack: Update default to 13.4 from 13.3 * Bump version in file meta * Jetpack: Update submodule to 13.4.2 (#5557) * Jetpack 13.4.2 bump (#5556) * Jetpack: Update to 13.5 (#5648) * Jetpack: Update to 13.6 as default (#5725) * Jetpack: Update to 13.6 as default (#5725) * Adds support for the TWILIO_MESSAGING_SERVICE_SID when sending SMS (#5737) * rename TWILIO_MESSAGING_SERVICE_SID to VIP_TWILIO_MESSAGING_SERVICE_SID (#5739) * ACL: Default to restricting all on non-prod if ACL is enabled but no options are set (#5796) * ACL: Default to restricting all on non-prod if ACL is enabled but no options are set (#5796) * Jetpack: Set 13.7 as default (for WP 6.5+) (#5809) * Jetpack: Set 13.7 as default * Account for min version bump * Jetpack: Update to 13.8 (#5871) * Integrations: Temporarily disable ES for now --------- Co-authored-by: Caleb Burks Co-authored-by: Noah Allen Co-authored-by: Rinat K Co-authored-by: Luiz Tiago Oliveira Co-authored-by: Volodymyr Kolesnykov Co-authored-by: Luis Henrique Mulinari Co-authored-by: Andrea Grassi --------- Signed-off-by: dependabot[bot] Co-authored-by: Gary Jones Co-authored-by: Rebecca Hum Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: WordPress VIP Bot Co-authored-by: Luiz Tiago Oliveira Co-authored-by: Caleb Burks Co-authored-by: Noah Allen Co-authored-by: Rinat K Co-authored-by: Luis Henrique Mulinari Co-authored-by: Andrea Grassi --- .github/workflows/codeql-analysis.yml | 4 +- .github/workflows/core-tests.yml | 2 +- .github/workflows/e2e.yml | 4 +- .github/workflows/lint.yml | 4 +- .github/workflows/search-dev-tools.yml | 2 +- .github/workflows/search-e2e.yml | 2 +- __tests__/e2e/package-lock.json | 60 +- composer.json | 4 +- composer.lock | 16 +- package-lock.json | 166 +++--- package.json | 2 +- search/search-dev-tools/build/bundle.js | 2 +- search/search-dev-tools/package-lock.json | 684 ++++------------------ vip-helpers/vip-deprecated.php | 4 +- 14 files changed, 251 insertions(+), 705 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 67d0d6b4dc..934ecbc14c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -32,10 +32,10 @@ jobs: uses: actions/checkout@v4.1.7 - name: Initialize CodeQL - uses: github/codeql-action/init@v3.26.6 + uses: github/codeql-action/init@v3.26.8 with: languages: ${{ matrix.language }} config-file: ./.github/codeql-config.yml - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3.26.6 + uses: github/codeql-action/analyze@v3.26.8 diff --git a/.github/workflows/core-tests.yml b/.github/workflows/core-tests.yml index 394866be04..555401de0c 100644 --- a/.github/workflows/core-tests.yml +++ b/.github/workflows/core-tests.yml @@ -60,7 +60,7 @@ jobs: echo "GITHUB_EVENT_NAME=pull_request" >> "wordpress/.env" - name: Set up Node.js - uses: actions/setup-node@v4.0.3 + uses: actions/setup-node@v4.0.4 with: node-version-file: 'wordpress/.nvmrc' cache: npm diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index ceb971bee6..6e26adf975 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -76,7 +76,7 @@ jobs: uses: ./.github/actions/prepare-source - name: Setup Node - uses: actions/setup-node@v4.0.3 + uses: actions/setup-node@v4.0.4 with: node-version: 'lts/*' cache: npm @@ -134,7 +134,7 @@ jobs: uses: actions/checkout@v4.1.7 - name: Setup Node - uses: actions/setup-node@v4.0.3 + uses: actions/setup-node@v4.0.4 with: node-version: 'lts/*' cache: npm diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fcfd9883df..8d4818baa8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -35,7 +35,7 @@ jobs: fail-fast: 'true' - name: Setup Node - uses: actions/setup-node@v4.0.3 + uses: actions/setup-node@v4.0.4 with: node-version: 'lts/*' cache: npm @@ -54,7 +54,7 @@ jobs: uses: actions/checkout@v4.1.7 - name: Setup Node - uses: actions/setup-node@v4.0.3 + uses: actions/setup-node@v4.0.4 with: node-version: 'lts/*' cache: npm diff --git a/.github/workflows/search-dev-tools.yml b/.github/workflows/search-dev-tools.yml index 304a2d7f3a..7509e98bef 100644 --- a/.github/workflows/search-dev-tools.yml +++ b/.github/workflows/search-dev-tools.yml @@ -27,7 +27,7 @@ jobs: token: ${{ secrets.WPCOM_VIP_BOT_TOKEN }} - name: Setup Node - uses: actions/setup-node@v4.0.3 + uses: actions/setup-node@v4.0.4 with: node-version: 'lts/*' cache: npm diff --git a/.github/workflows/search-e2e.yml b/.github/workflows/search-e2e.yml index a18f368fd8..463d0ea892 100644 --- a/.github/workflows/search-e2e.yml +++ b/.github/workflows/search-e2e.yml @@ -38,7 +38,7 @@ jobs: uses: ./.github/actions/prepare-source - name: "Install node v${{ env.NODE_VERSION }}" - uses: actions/setup-node@v4.0.3 + uses: actions/setup-node@v4.0.4 with: node-version: ${{ env.NODE_VERSION }} cache: npm diff --git a/__tests__/e2e/package-lock.json b/__tests__/e2e/package-lock.json index aaa9dc821b..e03710fa9d 100644 --- a/__tests__/e2e/package-lock.json +++ b/__tests__/e2e/package-lock.json @@ -514,24 +514,22 @@ } }, "node_modules/@eslint/js": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", - "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz", + "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", "dev": true, - "license": "MIT", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, "node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", - "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", + "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", "deprecated": "Use @eslint/config-array instead", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", + "@humanwhocodes/object-schema": "^2.0.3", "debug": "^4.3.1", "minimatch": "^3.0.5" }, @@ -544,7 +542,6 @@ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, - "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -555,7 +552,6 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, - "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -582,8 +578,7 @@ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", "deprecated": "Use @eslint/object-schema instead", - "dev": true, - "license": "BSD-3-Clause" + "dev": true }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.5", @@ -692,12 +687,12 @@ } }, "node_modules/@playwright/test": { - "version": "1.47.0", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.47.0.tgz", - "integrity": "sha512-SgAdlSwYVpToI4e/IH19IHHWvoijAYH5hu2MWSXptRypLSnzj51PcGD+rsOXFayde4P9ZLi+loXVwArg6IUkCA==", + "version": "1.47.2", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.47.2.tgz", + "integrity": "sha512-jTXRsoSPONAs8Za9QEQdyjFn+0ZQFjCiIztAIF6bi1HqhBzG9Ma7g1WotyiGqFSBRZjIEqMdT8RUlbk1QVhzCQ==", "dev": true, "dependencies": { - "playwright": "1.47.0" + "playwright": "1.47.2" }, "bin": { "playwright": "cli.js" @@ -721,9 +716,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "22.5.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.4.tgz", - "integrity": "sha512-FDuKUJQm/ju9fT/SeX/6+gBzoPzlVCzfzmGkwKvRHQVxi4BntVbyIwf6a4Xn62mrvndLiml6z/UBXIdEVjQLXg==", + "version": "22.6.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.6.0.tgz", + "integrity": "sha512-QyR8d5bmq+eR72TwQDfujwShHMcIrWIYsaQFtXRE58MHPTEKUNxjxvl0yS0qPMds5xbSDWtp7ZpvGFtd7dfMdQ==", "dev": true, "dependencies": { "undici-types": "~6.19.2" @@ -1823,17 +1818,16 @@ } }, "node_modules/eslint": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", - "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", + "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", "dev": true, - "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.0", - "@humanwhocodes/config-array": "^0.11.14", + "@eslint/js": "8.57.1", + "@humanwhocodes/config-array": "^0.13.0", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", "@ungap/structured-clone": "^1.2.0", @@ -4211,12 +4205,12 @@ } }, "node_modules/playwright": { - "version": "1.47.0", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.47.0.tgz", - "integrity": "sha512-jOWiRq2pdNAX/mwLiwFYnPHpEZ4rM+fRSQpRHwEwZlP2PUANvL3+aJOF/bvISMhFD30rqMxUB4RJx9aQbfh4Ww==", + "version": "1.47.2", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.47.2.tgz", + "integrity": "sha512-nx1cLMmQWqmA3UsnjaaokyoUpdVaaDhJhMoxX2qj3McpjnsqFHs516QAKYhqHAgOP+oCFTEOCOAaD1RgD/RQfA==", "dev": true, "dependencies": { - "playwright-core": "1.47.0" + "playwright-core": "1.47.2" }, "bin": { "playwright": "cli.js" @@ -4229,9 +4223,9 @@ } }, "node_modules/playwright-core": { - "version": "1.47.0", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.47.0.tgz", - "integrity": "sha512-1DyHT8OqkcfCkYUD9zzUTfg7EfTd+6a8MkD/NWOvjo0u/SCNd5YmY/lJwFvUZOxJbWNds+ei7ic2+R/cRz/PDg==", + "version": "1.47.2", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.47.2.tgz", + "integrity": "sha512-3JvMfF+9LJfe16l7AbSmU555PaTl2tPyQsVInqm3id16pdDfvZ8TTZ/pyzmkbDrZTQefyzU7AIHlZqQnxpqHVQ==", "dev": true, "bin": { "playwright-core": "cli.js" diff --git a/composer.json b/composer.json index b7adfa57a3..0522fa5515 100644 --- a/composer.json +++ b/composer.json @@ -6,8 +6,8 @@ "erusev/parsedown": "1.7.4", "dms/phpunit-arraysubset-asserts": "0.5.0", "yoast/phpunit-polyfills": "3.0.0", - "johnpbloch/wordpress-core": "6.6.1", - "wp-phpunit/wp-phpunit": "6.6.1", + "johnpbloch/wordpress-core": "6.6.2", + "wp-phpunit/wp-phpunit": "6.6.2", "wp-cli/wp-cli": "2.11.0" }, "config": { diff --git a/composer.lock b/composer.lock index d07381e728..301a40ad91 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "1ce0766f1e65a17ef699ff852c74d186", + "content-hash": "119b018f33e17ffb6fc4259fa2203394", "packages": [], "packages-dev": [ { @@ -305,16 +305,16 @@ }, { "name": "johnpbloch/wordpress-core", - "version": "6.6.1", + "version": "6.6.2", "source": { "type": "git", "url": "https://github.com/johnpbloch/wordpress-core.git", - "reference": "fa02256788137720864796f1fb290db6a35cb035" + "reference": "dbb5f96e78905e26cbfb4c4796d9d5b92c451a81" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/johnpbloch/wordpress-core/zipball/fa02256788137720864796f1fb290db6a35cb035", - "reference": "fa02256788137720864796f1fb290db6a35cb035", + "url": "https://api.github.com/repos/johnpbloch/wordpress-core/zipball/dbb5f96e78905e26cbfb4c4796d9d5b92c451a81", + "reference": "dbb5f96e78905e26cbfb4c4796d9d5b92c451a81", "shasum": "" }, "require": { @@ -322,7 +322,7 @@ "php": ">=7.2.24" }, "provide": { - "wordpress/core-implementation": "6.6.1" + "wordpress/core-implementation": "6.6.2" }, "type": "wordpress-core", "notification-url": "https://packagist.org/downloads/", @@ -349,7 +349,7 @@ "source": "https://core.trac.wordpress.org/browser", "wiki": "https://codex.wordpress.org/" }, - "time": "2024-07-23T15:25:57+00:00" + "time": "2024-09-10T15:26:41+00:00" }, { "name": "mustache/mustache", @@ -3042,7 +3042,7 @@ }, { "name": "wp-phpunit/wp-phpunit", - "version": "6.6.1", + "version": "6.6.2", "source": { "type": "git", "url": "https://github.com/wp-phpunit/wp-phpunit.git", diff --git a/package-lock.json b/package-lock.json index 5fcb64401a..3c7a6260d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "cypress-file-upload": "^5.0.8", "cypress-multi-reporters": "^1.6.1", "eslint-plugin-cypress": "^3.0.3", - "husky": "9.1.5", + "husky": "9.1.6", "jsdoc": "^4.0.0", "lint-staged": "^15.0.1", "mocha-junit-reporter": "^2.1.1", @@ -3185,9 +3185,9 @@ } }, "node_modules/@csstools/postcss-light-dark-function": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@csstools/postcss-light-dark-function/-/postcss-light-dark-function-2.0.2.tgz", - "integrity": "sha512-QAWWDJtJ7ywzhaMe09QwhjhuwB0XN04fW1MFwoEJMcYyiQub4a57mVFV+ngQEekUhsqe/EtKVCzyOx4q3xshag==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@csstools/postcss-light-dark-function/-/postcss-light-dark-function-2.0.4.tgz", + "integrity": "sha512-yHUt5DZ61Irvp72notmAl3Zt4Me50EWToWNocazyIFTVYFwwo/EucmV3hWi9zJehu3rOSvMclL7DzvRDfbak/A==", "dev": true, "funding": [ { @@ -6796,13 +6796,13 @@ } }, "node_modules/@wordpress/api-fetch": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.7.0.tgz", - "integrity": "sha512-Si/Ep5yXmxTpUT1Fxgd8PjhK6amohcSCUR50QGK9FIeCGoxBZiH7gi+VSvFAZsC2z8XvvP/tJZthB2j/9UHfPA==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.8.0.tgz", + "integrity": "sha512-yQx/zoM9e1vNWHSJVPvvspqGap/JMwtnxAvMDqUVUEETXwwGqaBffJCxVyGOfPhx/3cIw2T88xVxz0dgZ76a1w==", "dependencies": { "@babel/runtime": "^7.16.0", - "@wordpress/i18n": "^5.7.0", - "@wordpress/url": "^4.7.0" + "@wordpress/i18n": "^5.8.0", + "@wordpress/url": "^4.8.0" }, "engines": { "node": ">=18.12.0", @@ -6869,9 +6869,9 @@ } }, "node_modules/@wordpress/env": { - "version": "10.7.0", - "resolved": "https://registry.npmjs.org/@wordpress/env/-/env-10.7.0.tgz", - "integrity": "sha512-tRUZJV4K5T/5lq814FaAdk35kNf50a+YcB9xay7LX5D+VN0PhAVGLPudfexc1yOIINh6cFYnDaCB+1TcAdqKhQ==", + "version": "10.8.0", + "resolved": "https://registry.npmjs.org/@wordpress/env/-/env-10.8.0.tgz", + "integrity": "sha512-kU66r7y/3AnUd6D4XeWE7h6bVJmzteTKDMMWoIoJsSNI5YP/BmXRa+/dJ4bwk0KFKxfh3tcRBhearGeEa4TGBw==", "dev": true, "dependencies": { "chalk": "^4.0.0", @@ -7144,9 +7144,9 @@ } }, "node_modules/@wordpress/hooks": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-4.7.0.tgz", - "integrity": "sha512-EGHMsNCt+PyStm3o1JWujaTA+HKcTxuEXdSHBBFDavzsgOF13bxTf1LpDYgTZJT3K9TSMP983IwfckP5t66pDw==", + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-4.8.0.tgz", + "integrity": "sha512-6CPXtkZOHg8Q9gFulbuB+V74yCaPK2E2nRMw2BXE1yNfIAItqMbUiC8zrNOamtLcg3ifsk1PPeJ2DX5mR7Wyug==", "dependencies": { "@babel/runtime": "^7.16.0" }, @@ -7156,12 +7156,12 @@ } }, "node_modules/@wordpress/i18n": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-5.7.0.tgz", - "integrity": "sha512-o1cq1zutE5rMAM//Ra1hRfgHuWNBxFtd7XNk+BuAcILRENMaEoqAoGBmGj9lRtOcqAj+cdoWxFjBIxRa67vIrg==", + "version": "5.8.0", + "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-5.8.0.tgz", + "integrity": "sha512-pPx8RPT69Kds8wygHGfkt+D2jxdyu2HIYw3yM+dj47rNW2rHtZFVoOr+QzwOJ4yoHRuN1zMhOfzHsC4WV+ARcg==", "dependencies": { "@babel/runtime": "^7.16.0", - "@wordpress/hooks": "^4.7.0", + "@wordpress/hooks": "^4.8.0", "gettext-parser": "^1.3.1", "memize": "^2.1.0", "sprintf-js": "^1.1.1", @@ -7204,9 +7204,9 @@ } }, "node_modules/@wordpress/url": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-4.7.0.tgz", - "integrity": "sha512-c9L3L4+YrygKtf5S7DKFP1wNbFvqPLp8Uub4VgPKWmlZnIB2hsRNXELba5qGHpPmzTg82KwXImRAuHSMrfr+LA==", + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-4.8.0.tgz", + "integrity": "sha512-8Za/lrTTH3+Y5/shsqmDgQ493Sr1Do99tIyCu62Z2hm6KmP5KH6nHX+kInKtBamdW+fHTBFN56cZj5/AgByM8w==", "dependencies": { "@babel/runtime": "^7.16.0", "remove-accents": "^0.5.0" @@ -10029,9 +10029,9 @@ "dev": true }, "node_modules/body-parser": { - "version": "1.20.2", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz", - "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==", + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", + "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", "dev": true, "dependencies": { "bytes": "3.1.2", @@ -10042,7 +10042,7 @@ "http-errors": "2.0.0", "iconv-lite": "0.4.24", "on-finished": "2.4.1", - "qs": "6.11.0", + "qs": "6.13.0", "raw-body": "2.5.2", "type-is": "~1.6.18", "unpipe": "1.0.0" @@ -10089,12 +10089,12 @@ "dev": true }, "node_modules/body-parser/node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", "dev": true, "dependencies": { - "side-channel": "^1.0.4" + "side-channel": "^1.0.6" }, "engines": { "node": ">=0.6" @@ -12530,9 +12530,9 @@ } }, "node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", "dev": true, "engines": { "node": ">= 0.8" @@ -13919,37 +13919,37 @@ } }, "node_modules/express": { - "version": "4.19.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz", - "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==", + "version": "4.21.0", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.0.tgz", + "integrity": "sha512-VqcNGcj/Id5ZT1LZ/cfihi3ttTn+NJmkli2eZADigjq29qTlWi/hAQ43t/VLPq8+UX06FCEx3ByOYet6ZFblng==", "dev": true, "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", - "body-parser": "1.20.2", + "body-parser": "1.20.3", "content-disposition": "0.5.4", "content-type": "~1.0.4", "cookie": "0.6.0", "cookie-signature": "1.0.6", "debug": "2.6.9", "depd": "2.0.0", - "encodeurl": "~1.0.2", + "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "etag": "~1.8.1", - "finalhandler": "1.2.0", + "finalhandler": "1.3.1", "fresh": "0.5.2", "http-errors": "2.0.0", - "merge-descriptors": "1.0.1", + "merge-descriptors": "1.0.3", "methods": "~1.1.2", "on-finished": "2.4.1", "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", + "path-to-regexp": "0.1.10", "proxy-addr": "~2.0.7", - "qs": "6.11.0", + "qs": "6.13.0", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", - "send": "0.18.0", - "serve-static": "1.15.0", + "send": "0.19.0", + "serve-static": "1.16.2", "setprototypeof": "1.2.0", "statuses": "2.0.1", "type-is": "~1.6.18", @@ -13976,12 +13976,12 @@ "dev": true }, "node_modules/express/node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", "dev": true, "dependencies": { - "side-channel": "^1.0.4" + "side-channel": "^1.0.6" }, "engines": { "node": ">=0.6" @@ -14222,13 +14222,13 @@ } }, "node_modules/finalhandler": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", - "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", + "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", "dev": true, "dependencies": { "debug": "2.6.9", - "encodeurl": "~1.0.2", + "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "on-finished": "2.4.1", "parseurl": "~1.3.3", @@ -15214,9 +15214,9 @@ } }, "node_modules/husky": { - "version": "9.1.5", - "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.5.tgz", - "integrity": "sha512-rowAVRUBfI0b4+niA4SJMhfQwc107VLkBUgEYYAOQAbqDCnra1nYh83hF/MDmhYs9t9n1E3DuKOrs2LYNC+0Ag==", + "version": "9.1.6", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.6.tgz", + "integrity": "sha512-sqbjZKK7kf44hfdE94EoX8MZNk0n7HeW37O4YrVGCF4wzgQjp+akPAkfUK5LZ6KuR/6sqeAVuXHji+RzQgOn5A==", "dev": true, "bin": { "husky": "bin.js" @@ -19403,10 +19403,13 @@ } }, "node_modules/merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==", - "dev": true + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/merge-stream": { "version": "2.0.0", @@ -20739,9 +20742,9 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, "node_modules/path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz", + "integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==", "dev": true }, "node_modules/path-type": { @@ -22530,9 +22533,9 @@ } }, "node_modules/postcss-preset-env": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-10.0.3.tgz", - "integrity": "sha512-1nrZ4IeBXEEj53IMoRKE+k/Ub6nQb3gFjaxTeyUNG5zv3JQclFDY5GKKhAi3nsa1lnPMWgzQX+/1y6wUt2+I7Q==", + "version": "10.0.5", + "resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-10.0.5.tgz", + "integrity": "sha512-ipPOgr3RY0utgJDbNoCX2dxKoQ4e4WO1pC21QhDlxCAX8+qC8O2Ezkzb54fd+8XtZ1UveA5gLjBsVo6dJDoWIg==", "dev": true, "funding": [ { @@ -22557,7 +22560,7 @@ "@csstools/postcss-ic-unit": "^4.0.0", "@csstools/postcss-initial": "^2.0.0", "@csstools/postcss-is-pseudo-class": "^5.0.0", - "@csstools/postcss-light-dark-function": "^2.0.2", + "@csstools/postcss-light-dark-function": "^2.0.4", "@csstools/postcss-logical-float-and-clear": "^3.0.0", "@csstools/postcss-logical-overflow": "^2.0.0", "@csstools/postcss-logical-overscroll-behavior": "^2.0.0", @@ -23383,9 +23386,9 @@ } }, "node_modules/react-select": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/react-select/-/react-select-5.8.0.tgz", - "integrity": "sha512-TfjLDo58XrhP6VG5M/Mi56Us0Yt8X7xD6cDybC7yoRMUNm7BGO7qk8J0TLQOua/prb8vUOtsfnXZwfm30HGsAA==", + "version": "5.8.1", + "resolved": "https://registry.npmjs.org/react-select/-/react-select-5.8.1.tgz", + "integrity": "sha512-RT1CJmuc+ejqm5MPgzyZujqDskdvB9a9ZqrdnVLsvAHjJ3Tj0hELnLeVPQlmYdVKCdCpxanepl6z7R5KhXhWzg==", "dependencies": { "@babel/runtime": "^7.12.0", "@emotion/cache": "^11.4.0", @@ -24150,9 +24153,9 @@ } }, "node_modules/send": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", - "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", + "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", "dev": true, "dependencies": { "debug": "2.6.9", @@ -24188,6 +24191,15 @@ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "dev": true }, + "node_modules/send/node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/send/node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -24282,15 +24294,15 @@ } }, "node_modules/serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", + "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", "dev": true, "dependencies": { - "encodeurl": "~1.0.2", + "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "parseurl": "~1.3.3", - "send": "0.18.0" + "send": "0.19.0" }, "engines": { "node": ">= 0.8.0" diff --git a/package.json b/package.json index 0c0d8f7e6a..040b18347b 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "cypress-file-upload": "^5.0.8", "cypress-multi-reporters": "^1.6.1", "eslint-plugin-cypress": "^3.0.3", - "husky": "9.1.5", + "husky": "9.1.6", "jsdoc": "^4.0.0", "lint-staged": "^15.0.1", "mocha-junit-reporter": "^2.1.1", diff --git a/search/search-dev-tools/build/bundle.js b/search/search-dev-tools/build/bundle.js index af846e7a29..f00931d552 100644 --- a/search/search-dev-tools/build/bundle.js +++ b/search/search-dev-tools/build/bundle.js @@ -1 +1 @@ -(()=>{function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r].call(i.exports,i,i.exports,e),i.exports}var t={624:(e,t,n)=>{n.p=window.VIPSearchDevTools.__webpack_public_path__},576:function(e){var t;t=function(){return function(){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{}};return t[r](o,o.exports,e),o.exports}var t={686:function(e,t,n){"use strict";function r(e){try{return document.execCommand(e)}catch(e){return!1}}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=g(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=g(e.value,t):(n=m()(e),r("copy")),n},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,a=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==o(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return a?b(a,{container:r}):i?"cut"===n?y(i):b(i,{container:r}):void 0},k=function(e){function t(e,t){var n;return(n=s.call(this)).resolveOptions(t),n.listenClick(e),n}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e);var n,r,o,s=u(t);return n=t,r=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===i(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=h()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=w({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return f("action",e)}},{key:"defaultTarget",value:function(e){var t=f("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return f("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],o=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return b(e,t)}},{key:"cut",value:function(e){return y(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t=!!document.queryCommandSupported;return("string"==typeof e?[e]:e).forEach((function(e){t=t&&!!document.queryCommandSupported(e)})),t}}],r&&a(n.prototype,r),o&&a(n,o),t}(d()),S=k},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){function r(e,t,n,r,i){var a=o.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}function o(e,t,n,r){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&r.call(e,n)}}var i=n(828);e.exports=function(e,t,n,o,i){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return r(e,t,n,o,i)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){o.off(e,r),t.apply(n,arguments)}var o=this;return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r{"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function i(e,t){this.props=e,this.context=t}function a(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:o(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,L.n)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}function l(e){function t(t){var n=r({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=R,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function u(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=r({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return u(e,t,n)}))),e}function s(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return s(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function c(){this.__u=0,this.t=null,this.__b=null}function f(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _(e){function t(t){if(n||(n=e()).then((function(e){r=e.default||e}),(function(e){o=e})),o)throw o;if(!r)throw n;return(0,L.n)(r,t)}var n,r,o;return t.displayName="Lazy",t.__f=!0,t}function d(){this.u=null,this.o=null}function p(e){return this.getChildContext=function(){return e.context},e.children}function h(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,L.XX)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,L.XX)((0,L.n)(p,{context:t.context},e.__v),t.l)}function v(e,t){var n=(0,L.n)(h,{__v:e,i:t});return n.containerInfo=t,n}function m(e,t,n){return null==t.__k&&(t.textContent=""),(0,L.XX)(e,t),"function"==typeof n&&n(),e?e.__c:null}function y(e,t,n){return(0,L.Qv)(e,t),"function"==typeof n&&n(),e?e.__c:null}function g(){}function b(){return this.cancelBubble}function w(){return this.defaultPrevented}function k(e){return L.n.bind(null,e)}function S(e){return!!e&&e.$$typeof===W}function x(e){return S(e)&&e.type===L.FK}function C(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function E(e){return S(e)?L.Ob.apply(null,arguments):e}function N(e){return!!e.__k&&((0,L.XX)(null,e),!0)}function O(e){return e&&(e.base||1===e.nodeType&&e)||null}function P(e){e()}function A(e){return e}function $(){return[!1,P]}function T(e,t){var n=t(),r=(0,M.J0)({h:{__:n,v:t}}),o=r[0].h,i=r[1];return(0,M.Nf)((function(){o.__=n,o.v=t,j(o)&&i({h:o})}),[e,n,t]),(0,M.vJ)((function(){return j(o)&&i({h:o}),e((function(){j(o)&&i({h:o})}))}),[e]),n}function j(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}n.r(t),n.d(t,{Children:()=>D,Component:()=>L.uA,Fragment:()=>L.FK,PureComponent:()=>i,StrictMode:()=>ie,Suspense:()=>c,SuspenseList:()=>d,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>te,cloneElement:()=>E,createContext:()=>L.q6,createElement:()=>L.n,createFactory:()=>k,createPortal:()=>v,createRef:()=>L._3,default:()=>ue,findDOMNode:()=>O,flushSync:()=>oe,forwardRef:()=>l,hydrate:()=>y,isElement:()=>le,isFragment:()=>x,isMemo:()=>C,isValidElement:()=>S,lazy:()=>_,memo:()=>a,render:()=>m,startTransition:()=>P,unmountComponentAtNode:()=>N,unstable_batchedUpdates:()=>re,useCallback:()=>M.hb,useContext:()=>M.NT,useDebugValue:()=>M.MN,useDeferredValue:()=>A,useEffect:()=>M.vJ,useErrorBoundary:()=>M.Md,useId:()=>M.Bi,useImperativeHandle:()=>M.Yn,useInsertionEffect:()=>ae,useLayoutEffect:()=>M.Nf,useMemo:()=>M.Kr,useReducer:()=>M.WO,useRef:()=>M.li,useState:()=>M.J0,useSyncExternalStore:()=>T,useTransition:()=>$,version:()=>ne});var L=n(172),M=n(994);(i.prototype=new L.uA).isPureReactComponent=!0,i.prototype.shouldComponentUpdate=function(e,t){return o(this.props,e)||o(this.state,t)};var I=L.fF.__b;L.fF.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),I&&I(e)};var R="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,q=function(e,t){return null==e?null:(0,L.v2)((0,L.v2)(e).map(t))},D={map:q,forEach:q,count:function(e){return e?(0,L.v2)(e).length:0},only:function(e){var t=(0,L.v2)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:L.v2},F=L.fF.__e;L.fF.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);F(e,t,n,r)};var H=L.fF.unmount;L.fF.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),H&&H(e)},(c.prototype=new L.uA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=f(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=a;var l=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=s(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},c.prototype.componentWillUnmount=function(){this.t=[]},c.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=u(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&(0,L.n)(L.FK,null,e.fallback);return o&&(o.__u&=-33),[(0,L.n)(L.FK,null,t.__a?null:e.children),o]};var U=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]{"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e){var t=e.parentNode;t&&t.removeChild(e)}function i(e,t,n){var r,o,i,l={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:l[i]=t[i];if(arguments.length>2&&(l.children=arguments.length>3?T.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===l[i]&&(l[i]=e.defaultProps[i]);return a(e,l,r,o,null)}function a(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++L:o,__i:-1,__u:0};return null==o&&null!=j.vnode&&j.vnode(i),i}function l(){return{current:null}}function u(e){return e.children}function s(e,t){this.props=e,this.context=t}function c(e,t){if(null==t)return e.__?c(e.__,e.__i+1):null;for(var n;tt&&M.sort(q));d.__r=0}function p(e,t,n,r,o,i,a,l,u,s,c){var f,_,d,p,m,y=r&&r.__k||z,g=t.length;for(n.__d=u,h(n,t,y),u=n.__d,f=0;f0?a(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=y(o,n,l,d),o.__i=s,i=null,-1!==s&&(d--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&p--,"function"!=typeof o.type&&(o.__u|=65536)):s!==l&&(s==l-1?p--:s==l+1?p++:s>l?d>f-l?p+=s-l:p--:s(null==u||131072&u.__u?0:1))for(;a>=0||l=0){if((u=t[a])&&!(131072&u.__u)&&o==u.key&&i===u.type)return a;a--}if(l2&&(s.children=arguments.length>3?T.call(arguments,2):n),a(e.type,s,o||e.key,i||e.ref,null)}function $(e,t){var n={__c:t="__cC"+U++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,_(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n.d(t,{FK:()=>u,Ob:()=>A,Qv:()=>P,XX:()=>O,_3:()=>l,fF:()=>j,h:()=>i,n:()=>i,q6:()=>$,uA:()=>s,v2:()=>m});var T,j,L,M,I,R,q,D,F,H,U,W={},z=[],K=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,V=Array.isArray;T=z.slice,j={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},L=0,s.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=r({},this.state),"function"==typeof e&&(e=e(r({},n),this.props)),e&&r(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),_(this))},s.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},s.prototype.render=u,M=[],R="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,q=function(e,t){return e.__v.__b-t.__v.__b},d.__r=0,D=0,F=w(!1),H=w(!0),U=0},994:(e,t,n)=>{"use strict";function r(e,t){P.__h&&P.__h(S,e,N||t),N=0;var n=S.__H||(S.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function o(e){return N=1,i(w,e)}function i(e,t,n){var o=r(k++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):w(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=S,!S.u)){var i=function(e,t,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(e){return!!e.__c}));if(r.every((function(e){return!e.__N})))return!a||a.call(this,e,t,n);var i=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),!(!i&&o.__c.props===e)&&(!a||a.call(this,e,t,n))};S.u=!0;var a=S.shouldComponentUpdate,l=S.componentWillUpdate;S.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}l&&l.call(this,e,t,n)},S.shouldComponentUpdate=i}return o.__N||o.__}function a(e,t){var n=r(k++,3);!P.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__H.__h.push(n))}function l(e,t){var n=r(k++,4);!P.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__h.push(n))}function u(e){return N=5,c((function(){return{current:e}}),[])}function s(e,t,n){N=6,l((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function c(e,t){var n=r(k++,7);return b(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function f(e,t){return N=8,c((function(){return e}),t)}function _(e){var t=S.context[e.__c],n=r(k++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(S)),t.props.value):e.__}function d(e,t){P.useDebugValue&&P.useDebugValue(t?t(e):e)}function p(e){var t=r(k++,10),n=o();return t.__=e,S.componentDidCatch||(S.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function h(){var e=r(k++,11);if(!e.__){for(var t=S.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function v(){for(var e;e=O.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(y),e.__H.__h.forEach(g),e.__H.__h=[]}catch(t){e.__H.__h=[],P.__e(t,e.__v)}}function m(e){var t,n=function(){clearTimeout(r),I&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);I&&(t=requestAnimationFrame(n))}function y(e){var t=S,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),S=t}function g(e){var t=S;e.__c=e.__(),S=t}function b(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function w(e,t){return"function"==typeof t?t(e):t}n.d(t,{Bi:()=>h,J0:()=>o,Kr:()=>c,MN:()=>d,Md:()=>p,NT:()=>_,Nf:()=>l,WO:()=>i,Yn:()=>s,hb:()=>f,li:()=>u,vJ:()=>a});var k,S,x,C,E=n(172),N=0,O=[],P=E.fF,A=P.__b,$=P.__r,T=P.diffed,j=P.__c,L=P.unmount,M=P.__;P.__b=function(e){S=null,A&&A(e)},P.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),M&&M(e,t)},P.__r=function(e){$&&$(e),k=0;var t=(S=e.__c).__H;t&&(x===S?(t.__h=[],S.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(y),t.__h.forEach(g),t.__h=[],k=0)),x=S},P.diffed=function(e){T&&T(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==O.push(t)&&C===P.requestAnimationFrame||((C=P.requestAnimationFrame)||m)(v)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),x=S=null},P.__c=function(e,t){t.some((function(e){try{e.__h.forEach(y),e.__h=e.__h.filter((function(e){return!e.__||g(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],P.__e(n,e.__v)}})),j&&j(e,t)},P.unmount=function(e){L&&L(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{y(e)}catch(e){t=e}})),n.__H=void 0,t&&P.__e(t,n.__v))};var I="function"==typeof requestAnimationFrame},983:(e,t,n)=>{var r=function(e){function t(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function n(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function r(e,o,l,u,s,c){for(var _ in l)if(l.hasOwnProperty(_)&&l[_]){var d=l[_];d=Array.isArray(d)?d:[d];for(var p=0;p=c.reach);S+=k.value.length,k=k.next){var x=k.value;if(o.length>e.length)return;if(!(x instanceof t)){var C,E=1;if(y){if(!(C=n(w,S,e,m))||C.index>=e.length)break;var N=C.index,O=C.index+C[0].length,P=S;for(P+=k.value.length;N>=P;)P+=(k=k.next).value.length;if(S=P-=k.value.length,k.value instanceof t)continue;for(var A=k;A!==o.tail&&(Pc.reach&&(c.reach=L);var M=k.prev;if(T&&(M=i(o,M,T),S+=T.length),a(o,M,E),k=i(o,M,new t(_,v?f.tokenize($,v):$,g,$)),j&&i(o,k,j),E>1){var I={cause:_+","+p,reach:L};r(e,o,l,k.prev,S,I),c&&I.reach>c.reach&&(c.reach=I.reach)}}}}}}function o(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function i(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function a(e,t,n){for(var r=t.next,o=0;o"+o.content+""},!e.document)return e.addEventListener?(f.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.immediateClose;e.postMessage(f.highlight(n.code,f.languages[r],r)),o&&e.close()}),!1),f):f;var _=f.util.currentScript();if(_&&(f.filename=_.src,_.hasAttribute("data-manual")&&(f.manual=!0)),!f.manual){var d=document.readyState;"loading"===d||"interactive"===d&&_&&_.defer?document.addEventListener("DOMContentLoaded",l):window.requestAnimationFrame?window.requestAnimationFrame(l):window.setTimeout(l,16)}return f}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},514:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},837:()=>{!function(){function e(e){if(0!=(e=e.filter((function(e){var t=function(e){if(!e)return null;return window.getComputedStyle?getComputedStyle(e):e.currentStyle||null}(e)["white-space"];return"pre-wrap"===t||"pre-line"===t}))).length){var t=e.map((function(e){var t=e.querySelector("code"),r=e.querySelector(".line-numbers-rows");if(t&&r){var o=e.querySelector(".line-numbers-sizer"),i=t.textContent.split(n);o||((o=document.createElement("span")).className="line-numbers-sizer",t.appendChild(o)),o.innerHTML="0",o.style.display="block";var a=o.getBoundingClientRect().height;return o.innerHTML="",{element:e,lines:i,lineHeights:[],oneLinerHeight:a,sizer:o}}})).filter(Boolean);t.forEach((function(e){var t=e.sizer,n=e.lines,r=e.lineHeights,o=e.oneLinerHeight;r[n.length-1]=void 0,n.forEach((function(e,n){if(e&&e.length>1){var i=t.appendChild(document.createElement("span"));i.style.display="block",i.textContent=e}else r[n]=o}))})),t.forEach((function(e){for(var t=e.sizer,n=e.lineHeights,r=0,o=0;oi&&(n=i),r.children[n-o]}}},resize:function(t){e([t])},assumeViewportIndependence:!0},o=void 0;window.addEventListener("resize",(function(){r.assumeViewportIndependence&&o===window.innerWidth||(o=window.innerWidth,e(Array.prototype.slice.call(document.querySelectorAll("pre."+t))))})),Prism.hooks.add("complete",(function(r){if(r.code){var o=r.element,i=o.parentNode;if(i&&/pre/i.test(i.nodeName)&&!o.querySelector(".line-numbers-rows")&&Prism.util.isActive(o,t)){o.classList.remove(t),i.classList.add(t);var a,l=r.code.match(n),u=new Array((l?l.length+1:1)+1).join("");(a=document.createElement("span")).setAttribute("aria-hidden","true"),a.className="line-numbers-rows",a.innerHTML=u,i.hasAttribute("data-start")&&(i.style.counterReset="linenumber "+(parseInt(i.getAttribute("data-start"),10)-1)),r.element.appendChild(a),e([i]),Prism.hooks.run("line-numbers",r)}}})),Prism.hooks.add("line-numbers",(function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}))}}()},69:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1){F.current.stack=l.slice(0,u+1);var s=F.current.stack.length;if(s>100){var c=s-100;F.current.stack=l.slice(c,s),F.current.offset=Math.max(F.current.offset-c,0)}}var f=Date.now();if(t){var _=F.current.stack[F.current.offset];if(_&&f-_.timestamp<3e3){var d=/[^a-z0-9]([a-z0-9]+)$/i,p=null===(n=B(_.value,_.selectionStart).pop())||void 0===n?void 0:n.match(d),h=null===(o=B(e.value,e.selectionStart).pop())||void 0===o?void 0:o.match(d);if((null==p?void 0:p[1])&&(null===(i=null==h?void 0:h[1])||void 0===i?void 0:i.startsWith(p[1])))return void(F.current.stack[F.current.offset]=r(r({},e),{timestamp:f}))}}F.current.stack.push(r(r({},e),{timestamp:f})),F.current.offset++}),[]),G=u.useCallback((function(){var e=H.current;e&&J({value:e.value,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd})}),[J]),X=function(e){var t=H.current;t&&(t.value=e.value,t.selectionStart=e.selectionStart,t.selectionEnd=e.selectionEnd,null==E||E(e.value))},Z=function(e){var t=H.current,n=F.current.stack[F.current.offset];n&&t&&(F.current.stack[F.current.offset]=r(r({},n),{selectionStart:t.selectionStart,selectionEnd:t.selectionEnd})),J(e),X(e)};return u.useEffect((function(){G()}),[G]),u.useImperativeHandle(t,(function(){return{get session(){return{history:F.current}},set session(e){F.current=e.history}}}),[]),u.createElement("div",r({},D,{style:r(r({},p.container),j)}),u.createElement("pre",r({className:A,"aria-hidden":"true",style:r(r(r({},p.editor),p.highlight),K)},"string"==typeof V?{dangerouslySetInnerHTML:{__html:V+"
"}}:{children:V})),u.createElement("textarea",{ref:function(e){return H.current=e},style:r(r(r({},p.editor),p.textarea),K),className:f+(I?" ".concat(I):""),id:R,value:q,onChange:function(e){var t=e.currentTarget,n=t.value;J({value:n,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd},!0),E(n)},onKeyDown:function(e){if(!x||(x(e),!e.defaultPrevented)){"Escape"===e.key&&e.currentTarget.blur();var t=e.currentTarget,n=t.value,r=t.selectionStart,o=t.selectionEnd,i=(m?" ":"\t").repeat(M);if("Tab"===e.key&&!h&&W)if(e.preventDefault(),e.shiftKey){var a=(f=B(n,r)).length-1,l=B(n,o).length-1,u=n.split("\n").map((function(e,t){return t>=a&&t<=l&&e.startsWith(i)?e.substring(i.length):e})).join("\n");if(n!==u)Z({value:u,selectionStart:(null==(p=f[a])?void 0:p.startsWith(i))?r-i.length:r,selectionEnd:o-(n.length-u.length)})}else if(r!==o){var f,_=(f=B(n,r)).length-1,d=B(n,o).length-1,p=f[_];Z({value:n.split("\n").map((function(e,t){return t>=_&&t<=d?i+e:e})).join("\n"),selectionStart:p&&/\S/.test(p)?r+i.length:r,selectionEnd:o+i.length*(d-_+1)})}else{var v=r+i.length;Z({value:n.substring(0,r)+i+n.substring(o),selectionStart:v,selectionEnd:v})}else if("Backspace"===e.key){var y=r!==o;if(n.substring(0,r).endsWith(i)&&!y){e.preventDefault();v=r-i.length;Z({value:n.substring(0,r-i.length)+n.substring(o),selectionStart:v,selectionEnd:v})}}else if("Enter"===e.key){if(r===o){var g=B(n,r).pop(),b=null==g?void 0:g.match(/^\s+/);if(null==b?void 0:b[0]){e.preventDefault();var w="\n"+b[0];v=r+w.length;Z({value:n.substring(0,r)+w+n.substring(o),selectionStart:v,selectionEnd:v})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var k=void 0;57===e.keyCode&&e.shiftKey?k=["(",")"]:219===e.keyCode?k=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?k=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(k=["`","`"]),r!==o&&k&&(e.preventDefault(),Z({value:n.substring(0,r)+k[0]+n.substring(r,o)+k[1]+n.substring(o),selectionStart:r,selectionEnd:o+2}))}else!(c?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(c?e.metaKey&&90===e.keyCode&&e.shiftKey:s?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),function(){var e=F.current,t=e.stack,n=e.offset,r=t[n+1];r&&(X(r),F.current.offset=Math.min(n+1,t.length-1))}()):77!==e.keyCode||!e.ctrlKey||c&&!e.shiftKey||(e.preventDefault(),z((function(e){return!e}))):(e.preventDefault(),function(){var e=F.current,t=e.offset,n=e.stack[t-1];n&&(X(n),F.current.offset=Math.max(t-1,0))}())}},onClick:k,onKeyUp:C,onFocus:S,onBlur:w,disabled:o,form:i,maxLength:y,minLength:g,name:b,placeholder:P,readOnly:$,required:T,autoFocus:n,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),u.createElement("style",{dangerouslySetInnerHTML:{__html:_}}))})),p={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};t.default=d},942:(e,t)=>{var n;!function(){"use strict";function r(){for(var e="",t=0;t{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.p="/",(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(yield fetch(e,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":n},body:JSON.stringify(t)})).json()},l=function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){a(u,r,o,i,l,"next",e)}function l(e){a(u,r,o,i,l,"throw",e)}var u=e.apply(t,n);i(void 0)}))},l.apply(this,arguments)}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nE,BM:()=>N,MT:()=>O,P4:()=>P,KQ:()=>A,C:()=>$,Hp:()=>T,j0:()=>j});e(624);var g=e(172),b=e(127),w=e.n(b),k=e(402),S=e(994),x=e(942),C=e.n(x),E="info_block__MmcRf",N="info_block_collapsed__nKHMe",O="info_block_inner__HUWuS",P="info_block_item__VRzq4",A="info_block_teaser__WU82D",$="info_label__zb5kV",T="info_wrapper__hfoFu",j="query_count__yBMaQ",L=(0,g.q6)(null),M=e(172).FK,I=function(){var e=(0,S.NT)(L),t=e.queries,n=e.information;return(0,g.h)("div",null,(0,g.h)("h2",{className:"vip-h2 ".concat(j)},w()("query",t.length,!0)," ",w()("was",t.length)," run on this page"),(0,g.h)("div",{className:T},n.map((function(e,t){return(0,g.h)(R,i({key:t},e))}))))},R=function(e){var t=e.label,o=e.value,i=e.options,a=void 0===i?{collapsible:!1}:i,l=r((0,S.J0)(!0),2),u=l[0],s=l[1],c=function(){a.collapsible&&s(!u)},f=Array.isArray(o),_=o.length,d=f&&_>2?"+ ".concat(w()("other",_-2,!0)):"";return(0,g.h)("div",{className:C()(n(n(n({},E,!0),y.info_block_collapsible,a.collapsible||!1),N,u))},(0,g.h)("h5",{className:$,onClick:c},t),a.collapsible?(0,g.h)(M,null,(0,g.h)("div",{className:C()(n({},O,!0))},f?o.map((function(e){return(0,g.h)("span",{key:e,className:P},e)})):(0,g.h)("span",null,o)),(0,g.h)("span",{className:A,onClick:c},f?" ".concat(o.slice(0,2).join(", ")," ").concat(d):"Click to show")):(0,g.h)("span",null,f?o.join(", "):o))};const q=function(e){var t=e.children,n=e.closeOverlay,r=e.colorTheme,o=void 0===r?"light":r,i=e.isVisible,a=(0,S.Kr)((function(){return function(e){return"Escape"===e.key&&n()}}),[n]);return(0,S.vJ)((function(){return window.addEventListener("keydown",a),function(){window.removeEventListener("keydown",a)}}),[a]),i?(0,g.h)("div",{className:"search-dev-tools__overlay search-dev-tools__overlay--".concat(o),role:"dialog"},(0,g.h)("button",{"aria-label":"Close VIP Search Dev Tools",className:"search-dev-tools__overlay__close",onClick:n},(0,g.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljc5MyA5LjUuNjQ2IDE3LjY0NmwuNzA4LjcwN0w5LjUgMTAuMjA3bDguMTQ2IDguMTQ2LjcwOC0uNzA3TDEwLjIwNyA5LjVsOC4xNDctOC4xNDYtLjcwNy0uNzA4TDkuNSA4Ljc5MyAxLjM1NC42NDZsLS43MDguNzA4TDguNzkzIDkuNVoiIGZpbGw9IiMwMDAiLz48L3N2Zz4=",alt:"Close"})),t):null};var D=e(576),F=e.n(D),H=e(983),U=(e(837),e(514),e(69)),W=e.n(U),z="query_actions__ImK9_",K=function(e){var t=e.list,n=void 0===t?[]:t,r=e.title,o=void 0===r?"View":r,i=c((0,S.J0)(!1),2),a=i[0],l=i[1],u=o.toLowerCase();return(0,g.h)("div",{className:C()(s(s({},"collapsible_list__PJS0Z",!0),"visible__M2eJW",a))},(0,g.h)("strong",{className:"".concat(u," vip-h4"),onClick:n.length?function(){l(!a)}:null},o," (","".concat(n.length),")"),(0,g.h)("ol",{className:"".concat("collapsible_list_details__u5Pq3"," ").concat(u," vip-collapse-ol")},n.map((function(e,t){return(0,g.h)("li",{key:t},e)}))))},V=e(172).FK,B=function(e){var t,n,r=e.request,o=e.url,i=e.query_args,a=e.backtrace,u=void 0===a?[]:a,s=JSON.stringify(e.args.body,null,2),c=JSON.stringify(r.body,null,2),f={editing:!1,query:s,result:c,collapsed:!0},h=p((0,S.J0)(f),2),v=h[0],m=h[1],y="#query-response-copy-handle",b=(0,S.hb)(function(){var e,t=(e=function*(e){try{var t=yield function(){return l.apply(this,arguments)}(window.VIPSearchDevTools.ajaxurl,{action:window.VIPSearchDevTools.action,url:o,query:e},window.VIPSearchDevTools.nonce);m((function(e){var n;return _({},e,{result:JSON.stringify(null==t||null===(n=t.result)||void 0===n?void 0:n.body,null,2)})}))}catch(e){console.log(e)}},function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){d(l,r,o,i,a,"next",e)}function a(e){d(l,r,o,i,a,"throw",e)}var l=e.apply(t,n);i(void 0)}))});return function(e){return t.apply(this,arguments)}}(),[o]);(0,S.vJ)((function(){var e=new(F())(y);return e.on("success",(function(e){document.querySelector(y).innerHTML="COPIED!",setTimeout((function(){document.querySelector(y).innerHTML="COPY"}),2e3),e.clearSelection()})),function(){return e.destroy()}}),[]),(0,S.vJ)((function(){v.query!==f.query&&(v.editing||b(v.query))}),[v.query,v.editing,f.query,b]);var k;return(0,g.h)("div",{className:C()("query_wrap__uIeve",v.collapsed?"query_collapsed__PGXWS":null)},(0,g.h)("div",{className:"query_handle__e0c8G",onClick:function(){return m(_({},v,{collapsed:!v.collapsed}))}},(0,g.h)("h3",{className:"vip-h3"},w()("result",(null==r||null===(t=r.body)||void 0===t||null===(t=t.hits)||void 0===t||null===(t=t.hits)||void 0===t?void 0:t.length)||0,!0),(0,g.h)("span",{style:"color: var(--vip-grey-60);"}," that took")," ",(0,g.h)("span",{style:{color:"var(--vip-".concat((k=r.body.took)<200?"green-60":k<500?"red-30":"red-60",")"),fontWeight:"bold"}},k,"ms"),(0,g.h)("small",null," (",(null==r||null===(n=r.response)||void 0===n?void 0:n.code)||"unknown",")"))),(0,g.h)("div",{className:"grid_container__esEnb"},(0,g.h)("div",{className:"query_src_header__wWAup"},(0,g.h)("span",{style:"margin-right: auto;"},"Request"),(0,g.h)("div",{className:"query_src_extra__aZwxj"},(0,g.h)(K,{title:"WP_Query",list:Object.entries(i).map((function(e){var t=p(e,2),n=t[1];return"".concat(t[0],": ").concat(JSON.stringify(n))}))}),(0,g.h)(K,{title:"Trace",list:u}))),(0,g.h)("div",{className:"query_res_header__DMOpO"},"Response"),(0,g.h)("div",{className:"".concat("query_src__MoJsW"," query-src-box")},(0,g.h)("div",{className:z},v.editing||v.result!==c?(0,g.h)(V,null,(0,g.h)("button",{onClick:function(){return m(_({},v,{editing:!1}))},style:"background-color: var(--vip-green-40) !important"},"RUN"),(0,g.h)("button",{onClick:function(){return m(_({},f,{collapsed:!1}))},style:"background-color: var(--vip-blue-10) !important"},"RESET")):"Edit me!"),(0,g.h)(W(),{value:v.query,onValueChange:function(e){return m(_({},v,{query:e,editing:!0}))},highlight:function(e){return(0,H.highlight)(e,H.languages.json,"json").split("\n").map((function(e){return'').concat(e,"")})).join("\n")},padding:0,className:"container_editor___Y1qC",style:{fontSize:"var(--vip-sdt-editor-font-size)",lineHeight:"1.2em"}})),(0,g.h)("div",{className:"".concat("query_res__FZmqB"," query-result-box")},(0,g.h)("div",{className:"query_result__k_RWY"},(0,g.h)("div",{className:z},(0,g.h)("button",{id:"query-response-copy-handle","data-clipboard-target":"#query-response-text"},"COPY")),(0,g.h)("pre",{className:"line-numbers"},(0,g.h)("code",{className:"language-json",id:"query-response-text"},v.result))))))},J=function(){var e=(0,S.NT)(L).queries;return(0,g.h)("div",null,e.length<1?"No queries to show":e.map((function(e,t){return(0,g.h)(B,_({key:t},e))})))},G=function(e){var t=(0,S.NT)(L).queries;return(0,g.h)("button",e,"Search: ",w()("query",t.length,!0))};const X=function(){var e,t=v((0,S.J0)(!1),2),n=t[0],r=t[1],o=(0,S.hb)((function(){return r(!1)}),[]),i=(0,S.hb)((function(){return r(!n)}),[n]);return(0,g.h)(L.Provider,{value:(null===(e=window)||void 0===e?void 0:e.VIPSearchDevTools)||{status:"disabled",queries:[],information:[]}},(0,g.h)("div",{className:"search-dev-tools__wrapper"},(0,g.h)(G,{class:"ab_btn__Grxiu",onClick:i}),(0,k.createPortal)((0,g.h)(q,{isVisible:n,closeOverlay:o,opacity:"100"},(0,g.h)("div",{className:"vip_search_dev_tools__WdCFa"},(0,g.h)("h4",{className:"vip-h4 main_caption"},"Enterprise Search Dev Tools"),(0,g.h)(I,null),(0,g.h)(J,null))),document.getElementById("search-dev-tools-portal"))))};var Z=function(){return(0,g.XX)((0,g.h)(X,null),document.querySelector('[data-widget-host="vip-search-dev-tools"]'))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Z):Z()})()})(); \ No newline at end of file +(()=>{function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r].call(i.exports,i,i.exports,e),i.exports}var t={624:(e,t,n)=>{n.p=window.VIPSearchDevTools.__webpack_public_path__},576:function(e){var t;t=function(){return function(){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{}};return t[r](o,o.exports,e),o.exports}var t={686:function(e,t,n){"use strict";function r(e){try{return document.execCommand(e)}catch(e){return!1}}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=g(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=g(e.value,t):(n=m()(e),r("copy")),n},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,a=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==o(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return a?b(a,{container:r}):i?"cut"===n?y(i):b(i,{container:r}):void 0},k=function(e){function t(e,t){var n;return(n=s.call(this)).resolveOptions(t),n.listenClick(e),n}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e);var n,r,o,s=l(t);return n=t,r=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===i(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=h()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=w({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return f("action",e)}},{key:"defaultTarget",value:function(e){var t=f("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return f("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],o=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return b(e,t)}},{key:"cut",value:function(e){return y(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t=!!document.queryCommandSupported;return("string"==typeof e?[e]:e).forEach((function(e){t=t&&!!document.queryCommandSupported(e)})),t}}],r&&a(n.prototype,r),o&&a(n,o),t}(d()),S=k},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){function r(e,t,n,r,i){var a=o.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}function o(e,t,n,r){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&r.call(e,n)}}var i=n(828);e.exports=function(e,t,n,o,i){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return r(e,t,n,o,i)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){o.off(e,r),t.apply(n,arguments)}var o=this;return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r{"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function i(e,t){this.props=e,this.context=t}function a(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:o(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,L.n)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}function u(e){function t(t){var n=r({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=R,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function l(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=r({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return l(e,t,n)}))),e}function s(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return s(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function c(){this.__u=0,this.t=null,this.__b=null}function f(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _(e){function t(t){if(n||(n=e()).then((function(e){r=e.default||e}),(function(e){o=e})),o)throw o;if(!r)throw n;return(0,L.n)(r,t)}var n,r,o;return t.displayName="Lazy",t.__f=!0,t}function d(){this.u=null,this.o=null}function p(e){return this.getChildContext=function(){return e.context},e.children}function h(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,L.XX)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,L.XX)((0,L.n)(p,{context:t.context},e.__v),t.l)}function v(e,t){var n=(0,L.n)(h,{__v:e,i:t});return n.containerInfo=t,n}function m(e,t,n){return null==t.__k&&(t.textContent=""),(0,L.XX)(e,t),"function"==typeof n&&n(),e?e.__c:null}function y(e,t,n){return(0,L.Qv)(e,t),"function"==typeof n&&n(),e?e.__c:null}function g(){}function b(){return this.cancelBubble}function w(){return this.defaultPrevented}function k(e){return L.n.bind(null,e)}function S(e){return!!e&&e.$$typeof===W}function x(e){return S(e)&&e.type===L.FK}function C(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function E(e){return S(e)?L.Ob.apply(null,arguments):e}function N(e){return!!e.__k&&((0,L.XX)(null,e),!0)}function O(e){return e&&(e.base||1===e.nodeType&&e)||null}function P(e){e()}function A(e){return e}function $(){return[!1,P]}function T(e,t){var n=t(),r=(0,M.J0)({h:{__:n,v:t}}),o=r[0].h,i=r[1];return(0,M.Nf)((function(){o.__=n,o.v=t,j(o)&&i({h:o})}),[e,n,t]),(0,M.vJ)((function(){return j(o)&&i({h:o}),e((function(){j(o)&&i({h:o})}))}),[e]),n}function j(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}n.r(t),n.d(t,{Children:()=>D,Component:()=>L.uA,Fragment:()=>L.FK,PureComponent:()=>i,StrictMode:()=>ie,Suspense:()=>c,SuspenseList:()=>d,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>te,cloneElement:()=>E,createContext:()=>L.q6,createElement:()=>L.n,createFactory:()=>k,createPortal:()=>v,createRef:()=>L._3,default:()=>le,findDOMNode:()=>O,flushSync:()=>oe,forwardRef:()=>u,hydrate:()=>y,isElement:()=>ue,isFragment:()=>x,isMemo:()=>C,isValidElement:()=>S,lazy:()=>_,memo:()=>a,render:()=>m,startTransition:()=>P,unmountComponentAtNode:()=>N,unstable_batchedUpdates:()=>re,useCallback:()=>M.hb,useContext:()=>M.NT,useDebugValue:()=>M.MN,useDeferredValue:()=>A,useEffect:()=>M.vJ,useErrorBoundary:()=>M.Md,useId:()=>M.Bi,useImperativeHandle:()=>M.Yn,useInsertionEffect:()=>ae,useLayoutEffect:()=>M.Nf,useMemo:()=>M.Kr,useReducer:()=>M.WO,useRef:()=>M.li,useState:()=>M.J0,useSyncExternalStore:()=>T,useTransition:()=>$,version:()=>ne});var L=n(172),M=n(994);(i.prototype=new L.uA).isPureReactComponent=!0,i.prototype.shouldComponentUpdate=function(e,t){return o(this.props,e)||o(this.state,t)};var I=L.fF.__b;L.fF.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),I&&I(e)};var R="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,q=function(e,t){return null==e?null:(0,L.v2)((0,L.v2)(e).map(t))},D={map:q,forEach:q,count:function(e){return e?(0,L.v2)(e).length:0},only:function(e){var t=(0,L.v2)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:L.v2},F=L.fF.__e;L.fF.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);F(e,t,n,r)};var H=L.fF.unmount;L.fF.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),H&&H(e)},(c.prototype=new L.uA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=f(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(u):u())};n.__R=a;var u=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=s(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},c.prototype.componentWillUnmount=function(){this.t=[]},c.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=l(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&(0,L.n)(L.FK,null,e.fallback);return o&&(o.__u&=-33),[(0,L.n)(L.FK,null,t.__a?null:e.children),o]};var U=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]{"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function i(e,t,n){var r,o,i,u={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:u[i]=t[i];if(arguments.length>2&&(u.children=arguments.length>3?T.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===u[i]&&(u[i]=e.defaultProps[i]);return a(e,u,r,o,null)}function a(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++L:o,__i:-1,__u:0};return null==o&&null!=j.vnode&&j.vnode(i),i}function u(){return{current:null}}function l(e){return e.children}function s(e,t){this.props=e,this.context=t}function c(e,t){if(null==t)return e.__?c(e.__,e.__i+1):null;for(var n;tt&&M.sort(q));d.__r=0}function p(e,t,n,r,o,i,a,u,l,s,c){var f,_,d,p,m,y=r&&r.__k||z,g=t.length;for(n.__d=l,h(n,t,y),l=n.__d,f=0;f0?a(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,-1!==(s=o.__i=y(o,n,u,d))&&(d--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&p--,"function"!=typeof o.type&&(o.__u|=65536)):s!==u&&(s==u-1?p--:s==u+1?p++:(s>u?p--:p++,o.__u|=65536))):o=e.__k[r]=null;if(d)for(r=0;r<_;r++)null!=(i=n[r])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=c(i)),E(i,i))}function v(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o(null==l||131072&l.__u?0:1))for(;a>=0||u=0){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(u2&&(s.children=arguments.length>3?T.call(arguments,2):n),a(e.type,s,o||e.key,i||e.ref,null)}function $(e,t){var n={__c:t="__cC"+U++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,_(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n.d(t,{FK:()=>l,Ob:()=>A,Qv:()=>P,XX:()=>O,_3:()=>u,fF:()=>j,h:()=>i,n:()=>i,q6:()=>$,uA:()=>s,v2:()=>m});var T,j,L,M,I,R,q,D,F,H,U,W={},z=[],K=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,V=Array.isArray;T=z.slice,j={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},L=0,s.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=r({},this.state),"function"==typeof e&&(e=e(r({},n),this.props)),e&&r(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),_(this))},s.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},s.prototype.render=l,M=[],R="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,q=function(e,t){return e.__v.__b-t.__v.__b},d.__r=0,D=0,F=w(!1),H=w(!0),U=0},994:(e,t,n)=>{"use strict";function r(e,t){P.__h&&P.__h(S,e,N||t),N=0;var n=S.__H||(S.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function o(e){return N=1,i(w,e)}function i(e,t,n){var o=r(k++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):w(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=S,!S.u)){var i=function(e,t,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(e){return!!e.__c}));if(r.every((function(e){return!e.__N})))return!a||a.call(this,e,t,n);var i=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),!(!i&&o.__c.props===e)&&(!a||a.call(this,e,t,n))};S.u=!0;var a=S.shouldComponentUpdate,u=S.componentWillUpdate;S.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}u&&u.call(this,e,t,n)},S.shouldComponentUpdate=i}return o.__N||o.__}function a(e,t){var n=r(k++,3);!P.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__H.__h.push(n))}function u(e,t){var n=r(k++,4);!P.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__h.push(n))}function l(e){return N=5,c((function(){return{current:e}}),[])}function s(e,t,n){N=6,u((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function c(e,t){var n=r(k++,7);return b(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function f(e,t){return N=8,c((function(){return e}),t)}function _(e){var t=S.context[e.__c],n=r(k++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(S)),t.props.value):e.__}function d(e,t){P.useDebugValue&&P.useDebugValue(t?t(e):e)}function p(e){var t=r(k++,10),n=o();return t.__=e,S.componentDidCatch||(S.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function h(){var e=r(k++,11);if(!e.__){for(var t=S.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function v(){for(var e;e=O.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(y),e.__H.__h.forEach(g),e.__H.__h=[]}catch(t){e.__H.__h=[],P.__e(t,e.__v)}}function m(e){var t,n=function(){clearTimeout(r),I&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);I&&(t=requestAnimationFrame(n))}function y(e){var t=S,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),S=t}function g(e){var t=S;e.__c=e.__(),S=t}function b(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function w(e,t){return"function"==typeof t?t(e):t}n.d(t,{Bi:()=>h,J0:()=>o,Kr:()=>c,MN:()=>d,Md:()=>p,NT:()=>_,Nf:()=>u,WO:()=>i,Yn:()=>s,hb:()=>f,li:()=>l,vJ:()=>a});var k,S,x,C,E=n(172),N=0,O=[],P=E.fF,A=P.__b,$=P.__r,T=P.diffed,j=P.__c,L=P.unmount,M=P.__;P.__b=function(e){S=null,A&&A(e)},P.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),M&&M(e,t)},P.__r=function(e){$&&$(e),k=0;var t=(S=e.__c).__H;t&&(x===S?(t.__h=[],S.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(y),t.__h.forEach(g),t.__h=[],k=0)),x=S},P.diffed=function(e){T&&T(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==O.push(t)&&C===P.requestAnimationFrame||((C=P.requestAnimationFrame)||m)(v)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),x=S=null},P.__c=function(e,t){t.some((function(e){try{e.__h.forEach(y),e.__h=e.__h.filter((function(e){return!e.__||g(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],P.__e(n,e.__v)}})),j&&j(e,t)},P.unmount=function(e){L&&L(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{y(e)}catch(e){t=e}})),n.__H=void 0,t&&P.__e(t,n.__v))};var I="function"==typeof requestAnimationFrame},983:(e,t,n)=>{var r=function(e){function t(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function n(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function r(e,o,u,l,s,c){for(var _ in u)if(u.hasOwnProperty(_)&&u[_]){var d=u[_];d=Array.isArray(d)?d:[d];for(var p=0;p=c.reach);S+=k.value.length,k=k.next){var x=k.value;if(o.length>e.length)return;if(!(x instanceof t)){var C,E=1;if(y){if(!(C=n(w,S,e,m))||C.index>=e.length)break;var N=C.index,O=C.index+C[0].length,P=S;for(P+=k.value.length;N>=P;)P+=(k=k.next).value.length;if(S=P-=k.value.length,k.value instanceof t)continue;for(var A=k;A!==o.tail&&(Pc.reach&&(c.reach=L);var M=k.prev;if(T&&(M=i(o,M,T),S+=T.length),a(o,M,E),k=i(o,M,new t(_,v?f.tokenize($,v):$,g,$)),j&&i(o,k,j),E>1){var I={cause:_+","+p,reach:L};r(e,o,u,k.prev,S,I),c&&I.reach>c.reach&&(c.reach=I.reach)}}}}}}function o(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function i(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function a(e,t,n){for(var r=t.next,o=0;o"+o.content+""},!e.document)return e.addEventListener?(f.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.immediateClose;e.postMessage(f.highlight(n.code,f.languages[r],r)),o&&e.close()}),!1),f):f;var _=f.util.currentScript();if(_&&(f.filename=_.src,_.hasAttribute("data-manual")&&(f.manual=!0)),!f.manual){var d=document.readyState;"loading"===d||"interactive"===d&&_&&_.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return f}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},514:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},837:()=>{!function(){function e(e){if(0!=(e=e.filter((function(e){var t=function(e){if(!e)return null;return window.getComputedStyle?getComputedStyle(e):e.currentStyle||null}(e)["white-space"];return"pre-wrap"===t||"pre-line"===t}))).length){var t=e.map((function(e){var t=e.querySelector("code"),r=e.querySelector(".line-numbers-rows");if(t&&r){var o=e.querySelector(".line-numbers-sizer"),i=t.textContent.split(n);o||((o=document.createElement("span")).className="line-numbers-sizer",t.appendChild(o)),o.innerHTML="0",o.style.display="block";var a=o.getBoundingClientRect().height;return o.innerHTML="",{element:e,lines:i,lineHeights:[],oneLinerHeight:a,sizer:o}}})).filter(Boolean);t.forEach((function(e){var t=e.sizer,n=e.lines,r=e.lineHeights,o=e.oneLinerHeight;r[n.length-1]=void 0,n.forEach((function(e,n){if(e&&e.length>1){var i=t.appendChild(document.createElement("span"));i.style.display="block",i.textContent=e}else r[n]=o}))})),t.forEach((function(e){for(var t=e.sizer,n=e.lineHeights,r=0,o=0;oi&&(n=i),r.children[n-o]}}},resize:function(t){e([t])},assumeViewportIndependence:!0},o=void 0;window.addEventListener("resize",(function(){r.assumeViewportIndependence&&o===window.innerWidth||(o=window.innerWidth,e(Array.prototype.slice.call(document.querySelectorAll("pre."+t))))})),Prism.hooks.add("complete",(function(r){if(r.code){var o=r.element,i=o.parentNode;if(i&&/pre/i.test(i.nodeName)&&!o.querySelector(".line-numbers-rows")&&Prism.util.isActive(o,t)){o.classList.remove(t),i.classList.add(t);var a,u=r.code.match(n),l=new Array((u?u.length+1:1)+1).join("");(a=document.createElement("span")).setAttribute("aria-hidden","true"),a.className="line-numbers-rows",a.innerHTML=l,i.hasAttribute("data-start")&&(i.style.counterReset="linenumber "+(parseInt(i.getAttribute("data-start"),10)-1)),r.element.appendChild(a),e([i]),Prism.hooks.run("line-numbers",r)}}})),Prism.hooks.add("line-numbers",(function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}))}}()},69:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1){F.current.stack=u.slice(0,l+1);var s=F.current.stack.length;if(s>100){var c=s-100;F.current.stack=u.slice(c,s),F.current.offset=Math.max(F.current.offset-c,0)}}var f=Date.now();if(t){var _=F.current.stack[F.current.offset];if(_&&f-_.timestamp<3e3){var d=/[^a-z0-9]([a-z0-9]+)$/i,p=null===(n=B(_.value,_.selectionStart).pop())||void 0===n?void 0:n.match(d),h=null===(o=B(e.value,e.selectionStart).pop())||void 0===o?void 0:o.match(d);if((null==p?void 0:p[1])&&(null===(i=null==h?void 0:h[1])||void 0===i?void 0:i.startsWith(p[1])))return void(F.current.stack[F.current.offset]=r(r({},e),{timestamp:f}))}}F.current.stack.push(r(r({},e),{timestamp:f})),F.current.offset++}),[]),G=l.useCallback((function(){var e=H.current;e&&J({value:e.value,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd})}),[J]),X=function(e){var t=H.current;t&&(t.value=e.value,t.selectionStart=e.selectionStart,t.selectionEnd=e.selectionEnd,null==E||E(e.value))},Z=function(e){var t=H.current,n=F.current.stack[F.current.offset];n&&t&&(F.current.stack[F.current.offset]=r(r({},n),{selectionStart:t.selectionStart,selectionEnd:t.selectionEnd})),J(e),X(e)};return l.useEffect((function(){G()}),[G]),l.useImperativeHandle(t,(function(){return{get session(){return{history:F.current}},set session(e){F.current=e.history}}}),[]),l.createElement("div",r({},D,{style:r(r({},p.container),j)}),l.createElement("pre",r({className:A,"aria-hidden":"true",style:r(r(r({},p.editor),p.highlight),K)},"string"==typeof V?{dangerouslySetInnerHTML:{__html:V+"
"}}:{children:V})),l.createElement("textarea",{ref:function(e){return H.current=e},style:r(r(r({},p.editor),p.textarea),K),className:f+(I?" ".concat(I):""),id:R,value:q,onChange:function(e){var t=e.currentTarget,n=t.value;J({value:n,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd},!0),E(n)},onKeyDown:function(e){if(!x||(x(e),!e.defaultPrevented)){"Escape"===e.key&&e.currentTarget.blur();var t=e.currentTarget,n=t.value,r=t.selectionStart,o=t.selectionEnd,i=(m?" ":"\t").repeat(M);if("Tab"===e.key&&!h&&W)if(e.preventDefault(),e.shiftKey){var a=(f=B(n,r)).length-1,u=B(n,o).length-1,l=n.split("\n").map((function(e,t){return t>=a&&t<=u&&e.startsWith(i)?e.substring(i.length):e})).join("\n");if(n!==l)Z({value:l,selectionStart:(null==(p=f[a])?void 0:p.startsWith(i))?r-i.length:r,selectionEnd:o-(n.length-l.length)})}else if(r!==o){var f,_=(f=B(n,r)).length-1,d=B(n,o).length-1,p=f[_];Z({value:n.split("\n").map((function(e,t){return t>=_&&t<=d?i+e:e})).join("\n"),selectionStart:p&&/\S/.test(p)?r+i.length:r,selectionEnd:o+i.length*(d-_+1)})}else{var v=r+i.length;Z({value:n.substring(0,r)+i+n.substring(o),selectionStart:v,selectionEnd:v})}else if("Backspace"===e.key){var y=r!==o;if(n.substring(0,r).endsWith(i)&&!y){e.preventDefault();v=r-i.length;Z({value:n.substring(0,r-i.length)+n.substring(o),selectionStart:v,selectionEnd:v})}}else if("Enter"===e.key){if(r===o){var g=B(n,r).pop(),b=null==g?void 0:g.match(/^\s+/);if(null==b?void 0:b[0]){e.preventDefault();var w="\n"+b[0];v=r+w.length;Z({value:n.substring(0,r)+w+n.substring(o),selectionStart:v,selectionEnd:v})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var k=void 0;57===e.keyCode&&e.shiftKey?k=["(",")"]:219===e.keyCode?k=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?k=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(k=["`","`"]),r!==o&&k&&(e.preventDefault(),Z({value:n.substring(0,r)+k[0]+n.substring(r,o)+k[1]+n.substring(o),selectionStart:r,selectionEnd:o+2}))}else!(c?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(c?e.metaKey&&90===e.keyCode&&e.shiftKey:s?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),function(){var e=F.current,t=e.stack,n=e.offset,r=t[n+1];r&&(X(r),F.current.offset=Math.min(n+1,t.length-1))}()):77!==e.keyCode||!e.ctrlKey||c&&!e.shiftKey||(e.preventDefault(),z((function(e){return!e}))):(e.preventDefault(),function(){var e=F.current,t=e.offset,n=e.stack[t-1];n&&(X(n),F.current.offset=Math.max(t-1,0))}())}},onClick:k,onKeyUp:C,onFocus:S,onBlur:w,disabled:o,form:i,maxLength:y,minLength:g,name:b,placeholder:P,readOnly:$,required:T,autoFocus:n,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),l.createElement("style",{dangerouslySetInnerHTML:{__html:_}}))})),p={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};t.default=d},942:(e,t)=>{var n;!function(){"use strict";function r(){for(var e="",t=0;t{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.p="/",(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(yield fetch(e,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":n},body:JSON.stringify(t)})).json()},u=function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){a(l,r,o,i,u,"next",e)}function u(e){a(l,r,o,i,u,"throw",e)}var l=e.apply(t,n);i(void 0)}))},u.apply(this,arguments)}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nE,BM:()=>N,MT:()=>O,P4:()=>P,KQ:()=>A,C:()=>$,Hp:()=>T,j0:()=>j});e(624);var g=e(172),b=e(127),w=e.n(b),k=e(402),S=e(994),x=e(942),C=e.n(x),E="info_block__MmcRf",N="info_block_collapsed__nKHMe",O="info_block_inner__HUWuS",P="info_block_item__VRzq4",A="info_block_teaser__WU82D",$="info_label__zb5kV",T="info_wrapper__hfoFu",j="query_count__yBMaQ",L=(0,g.q6)(null),M=e(172).FK,I=function(){var e=(0,S.NT)(L),t=e.queries,n=e.information;return(0,g.h)("div",null,(0,g.h)("h2",{className:"vip-h2 ".concat(j)},w()("query",t.length,!0)," ",w()("was",t.length)," run on this page"),(0,g.h)("div",{className:T},n.map((function(e,t){return(0,g.h)(R,i({key:t},e))}))))},R=function(e){var t=e.label,o=e.value,i=e.options,a=void 0===i?{collapsible:!1}:i,u=r((0,S.J0)(!0),2),l=u[0],s=u[1],c=function(){a.collapsible&&s(!l)},f=Array.isArray(o),_=o.length,d=f&&_>2?"+ ".concat(w()("other",_-2,!0)):"";return(0,g.h)("div",{className:C()(n(n(n({},E,!0),y.info_block_collapsible,a.collapsible||!1),N,l))},(0,g.h)("h5",{className:$,onClick:c},t),a.collapsible?(0,g.h)(M,null,(0,g.h)("div",{className:C()(n({},O,!0))},f?o.map((function(e){return(0,g.h)("span",{key:e,className:P},e)})):(0,g.h)("span",null,o)),(0,g.h)("span",{className:A,onClick:c},f?" ".concat(o.slice(0,2).join(", ")," ").concat(d):"Click to show")):(0,g.h)("span",null,f?o.join(", "):o))};const q=function(e){var t=e.children,n=e.closeOverlay,r=e.colorTheme,o=void 0===r?"light":r,i=e.isVisible,a=(0,S.Kr)((function(){return function(e){return"Escape"===e.key&&n()}}),[n]);return(0,S.vJ)((function(){return window.addEventListener("keydown",a),function(){window.removeEventListener("keydown",a)}}),[a]),i?(0,g.h)("div",{className:"search-dev-tools__overlay search-dev-tools__overlay--".concat(o),role:"dialog"},(0,g.h)("button",{"aria-label":"Close VIP Search Dev Tools",className:"search-dev-tools__overlay__close",onClick:n},(0,g.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljc5MyA5LjUuNjQ2IDE3LjY0NmwuNzA4LjcwN0w5LjUgMTAuMjA3bDguMTQ2IDguMTQ2LjcwOC0uNzA3TDEwLjIwNyA5LjVsOC4xNDctOC4xNDYtLjcwNy0uNzA4TDkuNSA4Ljc5MyAxLjM1NC42NDZsLS43MDguNzA4TDguNzkzIDkuNVoiIGZpbGw9IiMwMDAiLz48L3N2Zz4=",alt:"Close"})),t):null};var D=e(576),F=e.n(D),H=e(983),U=(e(837),e(514),e(69)),W=e.n(U),z="query_actions__ImK9_",K=function(e){var t=e.list,n=void 0===t?[]:t,r=e.title,o=void 0===r?"View":r,i=c((0,S.J0)(!1),2),a=i[0],u=i[1],l=o.toLowerCase();return(0,g.h)("div",{className:C()(s(s({},"collapsible_list__PJS0Z",!0),"visible__M2eJW",a))},(0,g.h)("strong",{className:"".concat(l," vip-h4"),onClick:n.length?function(){u(!a)}:null},o," (","".concat(n.length),")"),(0,g.h)("ol",{className:"".concat("collapsible_list_details__u5Pq3"," ").concat(l," vip-collapse-ol")},n.map((function(e,t){return(0,g.h)("li",{key:t},e)}))))},V=e(172).FK,B=function(e){var t,n,r=e.request,o=e.url,i=e.query_args,a=e.backtrace,l=void 0===a?[]:a,s=JSON.stringify(e.args.body,null,2),c=JSON.stringify(r.body,null,2),f={editing:!1,query:s,result:c,collapsed:!0},h=p((0,S.J0)(f),2),v=h[0],m=h[1],y="#query-response-copy-handle",b=(0,S.hb)(function(){var e,t=(e=function*(e){try{var t=yield function(){return u.apply(this,arguments)}(window.VIPSearchDevTools.ajaxurl,{action:window.VIPSearchDevTools.action,url:o,query:e},window.VIPSearchDevTools.nonce);m((function(e){var n;return _({},e,{result:JSON.stringify(null==t||null===(n=t.result)||void 0===n?void 0:n.body,null,2)})}))}catch(e){console.log(e)}},function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){d(u,r,o,i,a,"next",e)}function a(e){d(u,r,o,i,a,"throw",e)}var u=e.apply(t,n);i(void 0)}))});return function(e){return t.apply(this,arguments)}}(),[o]);(0,S.vJ)((function(){var e=new(F())(y);return e.on("success",(function(e){document.querySelector(y).innerHTML="COPIED!",setTimeout((function(){document.querySelector(y).innerHTML="COPY"}),2e3),e.clearSelection()})),function(){return e.destroy()}}),[]),(0,S.vJ)((function(){v.query!==f.query&&(v.editing||b(v.query))}),[v.query,v.editing,f.query,b]);var k;return(0,g.h)("div",{className:C()("query_wrap__uIeve",v.collapsed?"query_collapsed__PGXWS":null)},(0,g.h)("div",{className:"query_handle__e0c8G",onClick:function(){return m(_({},v,{collapsed:!v.collapsed}))}},(0,g.h)("h3",{className:"vip-h3"},w()("result",(null==r||null===(t=r.body)||void 0===t||null===(t=t.hits)||void 0===t||null===(t=t.hits)||void 0===t?void 0:t.length)||0,!0),(0,g.h)("span",{style:"color: var(--vip-grey-60);"}," that took")," ",(0,g.h)("span",{style:{color:"var(--vip-".concat((k=r.body.took)<200?"green-60":k<500?"red-30":"red-60",")"),fontWeight:"bold"}},k,"ms"),(0,g.h)("small",null," (",(null==r||null===(n=r.response)||void 0===n?void 0:n.code)||"unknown",")"))),(0,g.h)("div",{className:"grid_container__esEnb"},(0,g.h)("div",{className:"query_src_header__wWAup"},(0,g.h)("span",{style:"margin-right: auto;"},"Request"),(0,g.h)("div",{className:"query_src_extra__aZwxj"},(0,g.h)(K,{title:"WP_Query",list:Object.entries(i).map((function(e){var t=p(e,2),n=t[1];return"".concat(t[0],": ").concat(JSON.stringify(n))}))}),(0,g.h)(K,{title:"Trace",list:l}))),(0,g.h)("div",{className:"query_res_header__DMOpO"},"Response"),(0,g.h)("div",{className:"".concat("query_src__MoJsW"," query-src-box")},(0,g.h)("div",{className:z},v.editing||v.result!==c?(0,g.h)(V,null,(0,g.h)("button",{onClick:function(){return m(_({},v,{editing:!1}))},style:"background-color: var(--vip-green-40) !important"},"RUN"),(0,g.h)("button",{onClick:function(){return m(_({},f,{collapsed:!1}))},style:"background-color: var(--vip-blue-10) !important"},"RESET")):"Edit me!"),(0,g.h)(W(),{value:v.query,onValueChange:function(e){return m(_({},v,{query:e,editing:!0}))},highlight:function(e){return(0,H.highlight)(e,H.languages.json,"json").split("\n").map((function(e){return'').concat(e,"")})).join("\n")},padding:0,className:"container_editor___Y1qC",style:{fontSize:"var(--vip-sdt-editor-font-size)",lineHeight:"1.2em"}})),(0,g.h)("div",{className:"".concat("query_res__FZmqB"," query-result-box")},(0,g.h)("div",{className:"query_result__k_RWY"},(0,g.h)("div",{className:z},(0,g.h)("button",{id:"query-response-copy-handle","data-clipboard-target":"#query-response-text"},"COPY")),(0,g.h)("pre",{className:"line-numbers"},(0,g.h)("code",{className:"language-json",id:"query-response-text"},v.result))))))},J=function(){var e=(0,S.NT)(L).queries;return(0,g.h)("div",null,e.length<1?"No queries to show":e.map((function(e,t){return(0,g.h)(B,_({key:t},e))})))},G=function(e){var t=(0,S.NT)(L).queries;return(0,g.h)("button",e,"Search: ",w()("query",t.length,!0))};const X=function(){var e,t=v((0,S.J0)(!1),2),n=t[0],r=t[1],o=(0,S.hb)((function(){return r(!1)}),[]),i=(0,S.hb)((function(){return r(!n)}),[n]);return(0,g.h)(L.Provider,{value:(null===(e=window)||void 0===e?void 0:e.VIPSearchDevTools)||{status:"disabled",queries:[],information:[]}},(0,g.h)("div",{className:"search-dev-tools__wrapper"},(0,g.h)(G,{class:"ab_btn__Grxiu",onClick:i}),(0,k.createPortal)((0,g.h)(q,{isVisible:n,closeOverlay:o,opacity:"100"},(0,g.h)("div",{className:"vip_search_dev_tools__WdCFa"},(0,g.h)("h4",{className:"vip-h4 main_caption"},"Enterprise Search Dev Tools"),(0,g.h)(I,null),(0,g.h)(J,null))),document.getElementById("search-dev-tools-portal"))))};var Z=function(){return(0,g.XX)((0,g.h)(X,null),document.querySelector('[data-widget-host="vip-search-dev-tools"]'))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Z):Z()})()})(); \ No newline at end of file diff --git a/search/search-dev-tools/package-lock.json b/search/search-dev-tools/package-lock.json index 1e1b60e4c3..7775247a1c 100644 --- a/search/search-dev-tools/package-lock.json +++ b/search/search-dev-tools/package-lock.json @@ -2015,24 +2015,22 @@ } }, "node_modules/@eslint/js": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", - "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz", + "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", "dev": true, - "license": "MIT", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, "node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", - "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", + "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", "deprecated": "Use @eslint/config-array instead", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", + "@humanwhocodes/object-schema": "^2.0.3", "debug": "^4.3.1", "minimatch": "^3.0.5" }, @@ -2045,7 +2043,6 @@ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, - "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -2056,7 +2053,6 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, - "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -2083,8 +2079,7 @@ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", "deprecated": "Use @eslint/object-schema instead", - "dev": true, - "license": "BSD-3-Clause" + "dev": true }, "node_modules/@jest/schemas": { "version": "29.6.3", @@ -2601,13 +2596,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/semver": { - "version": "7.5.8", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz", - "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==", - "dev": true, - "license": "MIT" - }, "node_modules/@types/send": { "version": "0.17.4", "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz", @@ -2711,157 +2699,6 @@ } } }, - "node_modules/@typescript-eslint/experimental-utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.62.0.tgz", - "integrity": "sha512-RTXpeB3eMkpoclG3ZHft6vG/Z30azNHuqY6wKPBHlVMZFuEvrtlEDe8gMqDb+SO+9hjC/pLekeSCryf9vMZlCw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/utils": "5.62.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/@typescript-eslint/experimental-utils/node_modules/@typescript-eslint/scope-manager": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", - "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/experimental-utils/node_modules/@typescript-eslint/types": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", - "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/experimental-utils/node_modules/@typescript-eslint/typescript-estree": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", - "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/experimental-utils/node_modules/@typescript-eslint/utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", - "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/@typescript-eslint/experimental-utils/node_modules/@typescript-eslint/visitor-keys": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", - "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "5.62.0", - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/experimental-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@typescript-eslint/experimental-utils/node_modules/semver": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", - "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@typescript-eslint/parser": { "version": "7.15.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.15.0.tgz", @@ -3714,11 +3551,10 @@ } }, "node_modules/babel-loader": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-9.1.3.tgz", - "integrity": "sha512-xG3ST4DglodGf8qSwv0MdeWLhrDsw/32QMdTO5T1ZIp9gQur0HkCyFs7Awskr10JKXFXwpAhiCuYX5oGXnRGbw==", + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-9.2.1.tgz", + "integrity": "sha512-fqe8naHt46e0yIdkjUZYqddSXfej3AHajX+CSO5X7oy0EmPc6o5Xh+RClNoHjnieWz9AW4kZxW9yyFMhVB1QLA==", "dev": true, - "license": "MIT", "dependencies": { "find-cache-dir": "^4.0.0", "schema-utils": "^4.0.0" @@ -3810,11 +3646,10 @@ } }, "node_modules/body-parser": { - "version": "1.20.2", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz", - "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==", + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", + "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", "dev": true, - "license": "MIT", "dependencies": { "bytes": "3.1.2", "content-type": "~1.0.5", @@ -3824,7 +3659,7 @@ "http-errors": "2.0.0", "iconv-lite": "0.4.24", "on-finished": "2.4.1", - "qs": "6.11.0", + "qs": "6.13.0", "raw-body": "2.5.2", "type-is": "~1.6.18", "unpipe": "1.0.0" @@ -3839,7 +3674,6 @@ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.8" } @@ -3849,7 +3683,6 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, - "license": "MIT", "dependencies": { "ms": "2.0.0" } @@ -3858,8 +3691,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/bonjour-service": { "version": "1.2.1", @@ -4343,7 +4175,6 @@ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.6" } @@ -4948,7 +4779,6 @@ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.8" } @@ -4968,7 +4798,6 @@ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.8", "npm": "1.2.8000 || >= 1.4.16" @@ -5131,11 +4960,10 @@ } }, "node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.8" } @@ -5396,17 +5224,16 @@ } }, "node_modules/eslint": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", - "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", + "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", "dev": true, - "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.0", - "@humanwhocodes/config-array": "^0.11.14", + "@eslint/js": "8.57.1", + "@humanwhocodes/config-array": "^0.13.0", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", "@ungap/structured-clone": "^1.2.0", @@ -5452,18 +5279,16 @@ } }, "node_modules/eslint-config-preact": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/eslint-config-preact/-/eslint-config-preact-1.4.0.tgz", - "integrity": "sha512-nAQ8ndJ3y5qPNAcxnztaVmCnCw3oBadKbx1CFt2ste0uQTrHwxiiHczouZI249oWHSaYzji/pT6/s6txczakvQ==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/eslint-config-preact/-/eslint-config-preact-1.5.0.tgz", + "integrity": "sha512-ELK0QvBNwfdzhjzpKAioqemoupXk/WQocGXMc8aLxKC0//sQwKAhIzAXTHKSYuelG/op45uiTQEq51KCVHkN+A==", "dev": true, - "license": "MIT", "dependencies": { "@babel/core": "^7.13.16", "@babel/eslint-parser": "^7.13.14", "@babel/plugin-syntax-class-properties": "^7.12.13", "@babel/plugin-syntax-jsx": "^7.12.13", "eslint-plugin-compat": "^4.0.0", - "eslint-plugin-jest": "^25.2.4", "eslint-plugin-react": "^7.27.0", "eslint-plugin-react-hooks": "^4.3.0" }, @@ -5471,273 +5296,6 @@ "eslint": "6.x || 7.x || 8.x" } }, - "node_modules/eslint-config-preact/node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", - "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/type-utils": "5.62.0", - "@typescript-eslint/utils": "5.62.0", - "debug": "^4.3.4", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/eslint-config-preact/node_modules/@typescript-eslint/parser": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz", - "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", - "dev": true, - "license": "BSD-2-Clause", - "optional": true, - "peer": true, - "dependencies": { - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", - "debug": "^4.3.4" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/eslint-config-preact/node_modules/@typescript-eslint/scope-manager": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", - "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/eslint-config-preact/node_modules/@typescript-eslint/type-utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz", - "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "@typescript-eslint/typescript-estree": "5.62.0", - "@typescript-eslint/utils": "5.62.0", - "debug": "^4.3.4", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/eslint-config-preact/node_modules/@typescript-eslint/types": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", - "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/eslint-config-preact/node_modules/@typescript-eslint/typescript-estree": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", - "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", - "dev": true, - "license": "BSD-2-Clause", - "optional": true, - "peer": true, - "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/eslint-config-preact/node_modules/@typescript-eslint/utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", - "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/eslint-config-preact/node_modules/@typescript-eslint/visitor-keys": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", - "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "@typescript-eslint/types": "5.62.0", - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/eslint-config-preact/node_modules/eslint-plugin-jest": { - "version": "25.7.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-25.7.0.tgz", - "integrity": "sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/experimental-utils": "^5.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - }, - "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^4.0.0 || ^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "@typescript-eslint/eslint-plugin": { - "optional": true - }, - "jest": { - "optional": true - } - } - }, - "node_modules/eslint-config-preact/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "peer": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-config-preact/node_modules/semver": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", - "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", - "dev": true, - "license": "ISC", - "optional": true, - "peer": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/eslint-config-prettier": { "version": "8.7.0", "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.7.0.tgz", @@ -6521,7 +6079,6 @@ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.6" } @@ -6544,38 +6101,37 @@ } }, "node_modules/express": { - "version": "4.19.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz", - "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==", + "version": "4.21.0", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.0.tgz", + "integrity": "sha512-VqcNGcj/Id5ZT1LZ/cfihi3ttTn+NJmkli2eZADigjq29qTlWi/hAQ43t/VLPq8+UX06FCEx3ByOYet6ZFblng==", "dev": true, - "license": "MIT", "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", - "body-parser": "1.20.2", + "body-parser": "1.20.3", "content-disposition": "0.5.4", "content-type": "~1.0.4", "cookie": "0.6.0", "cookie-signature": "1.0.6", "debug": "2.6.9", "depd": "2.0.0", - "encodeurl": "~1.0.2", + "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "etag": "~1.8.1", - "finalhandler": "1.2.0", + "finalhandler": "1.3.1", "fresh": "0.5.2", "http-errors": "2.0.0", - "merge-descriptors": "1.0.1", + "merge-descriptors": "1.0.3", "methods": "~1.1.2", "on-finished": "2.4.1", "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", + "path-to-regexp": "0.1.10", "proxy-addr": "~2.0.7", - "qs": "6.11.0", + "qs": "6.13.0", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", - "send": "0.18.0", - "serve-static": "1.15.0", + "send": "0.19.0", + "serve-static": "1.16.2", "setprototypeof": "1.2.0", "statuses": "2.0.1", "type-is": "~1.6.18", @@ -6721,14 +6277,13 @@ } }, "node_modules/finalhandler": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", - "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", + "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", "dev": true, - "license": "MIT", "dependencies": { "debug": "2.6.9", - "encodeurl": "~1.0.2", + "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "on-finished": "2.4.1", "parseurl": "~1.3.3", @@ -6744,7 +6299,6 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, - "license": "MIT", "dependencies": { "ms": "2.0.0" } @@ -6753,8 +6307,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/find-cache-dir": { "version": "4.0.0", @@ -6906,7 +6459,6 @@ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.6" } @@ -7451,7 +7003,6 @@ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", "dev": true, - "license": "MIT", "dependencies": { "depd": "2.0.0", "inherits": "2.0.4", @@ -7524,7 +7075,6 @@ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, - "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3" }, @@ -8761,7 +8311,6 @@ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.6" } @@ -8786,11 +8335,13 @@ } }, "node_modules/merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", "dev": true, - "license": "MIT" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/merge-stream": { "version": "2.0.0", @@ -8838,7 +8389,6 @@ "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", "dev": true, - "license": "MIT", "bin": { "mime": "cli.js" }, @@ -8969,15 +8519,6 @@ "dev": true, "license": "MIT" }, - "node_modules/natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true - }, "node_modules/negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", @@ -9445,11 +8986,10 @@ "license": "MIT" }, "node_modules/path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==", - "dev": true, - "license": "MIT" + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz", + "integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==", + "dev": true }, "node_modules/path-type": { "version": "4.0.0", @@ -10234,9 +9774,9 @@ "license": "MIT" }, "node_modules/preact": { - "version": "10.23.2", - "resolved": "https://registry.npmjs.org/preact/-/preact-10.23.2.tgz", - "integrity": "sha512-kKYfePf9rzKnxOAKDpsWhg/ysrHPqT+yQ7UW4JjdnqjFIeNUnNcEJvhuA8fDenxAGWzUqtd51DfVg7xp/8T9NA==", + "version": "10.24.0", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.24.0.tgz", + "integrity": "sha512-aK8Cf+jkfyuZ0ZZRG9FbYqwmEiGQ4y/PUO4SuTWoyWL244nZZh7bd5h2APd4rSNDYTBNghg1L+5iJN3Skxtbsw==", "funding": { "type": "opencollective", "url": "https://opencollective.com/preact" @@ -10356,13 +9896,12 @@ } }, "node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { - "side-channel": "^1.0.4" + "side-channel": "^1.0.6" }, "engines": { "node": ">=0.6" @@ -10417,7 +9956,6 @@ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", "dev": true, - "license": "MIT", "dependencies": { "bytes": "3.1.2", "http-errors": "2.0.0", @@ -10433,7 +9971,6 @@ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.8" } @@ -10896,16 +10433,15 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/sass": { - "version": "1.78.0", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.78.0.tgz", - "integrity": "sha512-AaIqGSrjo5lA2Yg7RvFZrlXDBCp3nV4XP73GrLGvdRWWwk+8H3l0SDvq/5bA4eF+0RFPLuWUk3E+P1U/YqnpsQ==", + "version": "1.79.3", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.79.3.tgz", + "integrity": "sha512-m7dZxh0W9EZ3cw50Me5GOuYm/tVAJAn91SUnohLRo9cXBixGUOdvmryN+dXpwR831bhoY3Zv7rEFt85PUwTmzA==", "dev": true, "dependencies": { - "chokidar": ">=3.0.0 <4.0.0", + "chokidar": "^4.0.0", "immutable": "^4.0.0", "source-map-js": ">=0.6.2 <2.0.0" }, @@ -10957,6 +10493,34 @@ } } }, + "node_modules/sass/node_modules/chokidar": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.1.tgz", + "integrity": "sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==", + "dev": true, + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/sass/node_modules/readdirp": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.0.1.tgz", + "integrity": "sha512-GkMg9uOTpIWWKbSsgwb5fA4EavTR+SG/PMPoAY8hkhHfEEY0/vqljY+XHqtDf2cr2IJtoNRDbrrEpZUiZCkYRw==", + "dev": true, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/scheduler": { "version": "0.23.2", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", @@ -11062,11 +10626,10 @@ } }, "node_modules/send": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", - "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", + "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", "dev": true, - "license": "MIT", "dependencies": { "debug": "2.6.9", "depd": "2.0.0", @@ -11091,7 +10654,6 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, - "license": "MIT", "dependencies": { "ms": "2.0.0" } @@ -11100,15 +10662,22 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/send/node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", "dev": true, - "license": "MIT" + "engines": { + "node": ">= 0.8" + } }, "node_modules/send/node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/serialize-javascript": { "version": "6.0.2", @@ -11207,16 +10776,15 @@ } }, "node_modules/serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", + "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", "dev": true, - "license": "MIT", "dependencies": { - "encodeurl": "~1.0.2", + "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "parseurl": "~1.3.3", - "send": "0.18.0" + "send": "0.19.0" }, "engines": { "node": ">= 0.8.0" @@ -11260,8 +10828,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/shallow-clone": { "version": "3.0.1", @@ -11443,7 +11010,6 @@ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.8" } @@ -11943,7 +11509,6 @@ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.6" } @@ -12010,29 +11575,6 @@ "dev": true, "license": "0BSD" }, - "node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^1.8.1" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" - } - }, - "node_modules/tsutils/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true, - "license": "0BSD" - }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -12064,7 +11606,6 @@ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", "dev": true, - "license": "MIT", "dependencies": { "media-typer": "0.3.0", "mime-types": "~2.1.24" @@ -12237,7 +11778,6 @@ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.8" } diff --git a/vip-helpers/vip-deprecated.php b/vip-helpers/vip-deprecated.php index 1331e0ce7d..df012ab067 100644 --- a/vip-helpers/vip-deprecated.php +++ b/vip-helpers/vip-deprecated.php @@ -1332,7 +1332,7 @@ function wpcom_vip_term_exists( $term, $taxonomy = '', $parent = null ) { /** * `get_page_by_path()` is now cached and no longer calls direct SQL. * - * @deprecated Since WP 6.1 + * @deprecated Since WP 4.6.0 * * @param string $page_path Page path * @param string $output Optional. Output type; OBJECT*, ARRAY_N, or ARRAY_A. @@ -1340,7 +1340,7 @@ function wpcom_vip_term_exists( $term, $taxonomy = '', $parent = null ) { * @return WP_Post|null WP_Post on success or null on failure */ function wpcom_vip_get_page_by_path( $page_path, $output = OBJECT, $post_type = 'page' ) { - _deprecated_function( __FUNCTION__, '6.1', 'get_page_by_path' ); + _deprecated_function( __FUNCTION__, '4.6', 'get_page_by_path' ); return get_page_by_path( $page_path, $output, $post_type ); // phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.get_page_by_path_get_page_by_path }