From 1f809f473b9cc86d37a56f2504c2964b96bfb470 Mon Sep 17 00:00:00 2001 From: Rebecca Hum Date: Tue, 21 Nov 2023 15:02:23 -0700 Subject: [PATCH 01/30] Search e2e: Fix tests with recent updates (#5041) --- .../integration/features/woocommerce.spec.js | 21 +++++++++++-------- .../e2e/integration/indexables/user.spec.js | 2 +- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/tests/search/e2e/integration/features/woocommerce.spec.js b/tests/search/e2e/integration/features/woocommerce.spec.js index 828ae4bbe4..ee0c65f288 100644 --- a/tests/search/e2e/integration/features/woocommerce.spec.js +++ b/tests/search/e2e/integration/features/woocommerce.spec.js @@ -69,7 +69,7 @@ describe('WooCommerce Feature', { tags: '@slow' }, () => { it('Can not display other users orders on the My Account Order page', () => { // enable payment gateway. cy.visitAdminPage('admin.php?page=wc-settings&tab=checkout§ion=cod'); - cy.get('#woocommerce_cod_enabled').check(); + cy.get('#woocommerce_cod_enabled').check({waitForAnimations: false}); cy.get('.button-primary.woocommerce-save-button').click(); cy.logout(); @@ -87,13 +87,16 @@ describe('WooCommerce Feature', { tags: '@slow' }, () => { // checkout and place order. cy.visit('checkout'); - cy.get('#billing_first_name').type(userData.firstName); - cy.get('#billing_last_name').type(userData.lastName); - cy.get('#billing_address_1').type(userData.address); - cy.get('#billing_city').type(userData.city); - cy.get('#billing_postcode').type(userData.postCode); - cy.get('#billing_phone').type(userData.phoneNumber); - cy.get('#place_order').click(); + cy.get('#billing-first_name').type(userData.firstName); + cy.get('#billing-last_name').type(userData.lastName); + cy.get('#billing-address_1').type(userData.address); + cy.get('#billing-city').type(userData.city); + cy.get('#billing-postcode').type(userData.postCode); + cy.get('#billing-phone').type(userData.phoneNumber); + cy.get('button.wc-block-components-checkout-place-order-button').trigger('click'); // VIP: Need to use .trigger('click') because Cypress can't click on the button. + + // VIP: Give some time for the order to be placed. + cy.wait(2000); // eslint-disable-line cypress/no-unnecessary-waiting // ensure order is placed. cy.url().should('include', '/checkout/order-received'); @@ -110,7 +113,7 @@ describe('WooCommerce Feature', { tags: '@slow' }, () => { cy.get('.woocommerce-orders-table tbody tr').should('have.length', 1); // VIP: Use Search Dev Tools instead of Debug Bar - cy.searchDevToolsResponseOK('shop_order', 2); + cy.searchDevToolsResponseOK('shop_order'); cy.get('#vip-search-dev-tools-mount').click(); cy.get('h3.vip-h3').eq(2).click(); cy.get('strong.vip-h4.wp_query').eq(2).click(); diff --git a/tests/search/e2e/integration/indexables/user.spec.js b/tests/search/e2e/integration/indexables/user.spec.js index ab12354fa6..5bd289cc9a 100644 --- a/tests/search/e2e/integration/indexables/user.spec.js +++ b/tests/search/e2e/integration/indexables/user.spec.js @@ -47,7 +47,7 @@ describe('User Indexable', () => { cy.searchDevToolsResponseOK('"user_email": "testuser@example.com"'); // VIP: Use Search Dev Tools over Debug Bar // Test if the user is still found a reindex. - cy.wpCli('vip-search index --setup --skip-confirm').its('stdout').should('contain', 'Number of users indexed: 3'); // VIP: There were 3 users from the WooCommerce test. + cy.wpCli('vip-search index --setup --skip-confirm'); searchUser(); From 07403640ba6ec9639c33941c4968a27e428e1b85 Mon Sep 17 00:00:00 2001 From: Rebecca Hum Date: Wed, 22 Nov 2023 13:40:49 -0700 Subject: [PATCH 02/30] Revert "update query monitor (#5028)" (#5042) This reverts commit d527d41324e281c2f81cf5d86e7ae218049fa2ad. --- query-monitor/assets/query-monitor.css | 26 +- query-monitor/assets/query-monitor.js | 26 +- query-monitor/classes/Activation.php | 11 +- query-monitor/classes/Backtrace.php | 40 +- query-monitor/classes/Collector.php | 16 +- query-monitor/classes/Dispatcher.php | 2 +- query-monitor/classes/Hook.php | 6 +- query-monitor/classes/PHP.php | 2 +- query-monitor/classes/Plugin.php | 6 + query-monitor/classes/QM.php | 19 - query-monitor/classes/QueryMonitor.php | 31 +- query-monitor/classes/Timer.php | 10 +- query-monitor/classes/Util.php | 22 +- query-monitor/classes/debug_bar.php | 4 +- .../assets.php} | 25 +- query-monitor/collectors/block_editor.php | 4 +- query-monitor/collectors/cache.php | 1 - query-monitor/collectors/caps.php | 22 +- query-monitor/collectors/conditionals.php | 4 +- query-monitor/collectors/db_dupes.php | 10 +- query-monitor/collectors/db_queries.php | 57 ++- query-monitor/collectors/debug_bar.php | 4 +- query-monitor/collectors/doing_it_wrong.php | 341 ------------------ query-monitor/collectors/environment.php | 12 +- query-monitor/collectors/hooks.php | 11 +- query-monitor/collectors/http.php | 34 +- query-monitor/collectors/languages.php | 1 - query-monitor/collectors/logger.php | 64 +--- query-monitor/collectors/php_errors.php | 16 +- query-monitor/collectors/raw_request.php | 2 +- query-monitor/collectors/theme.php | 43 +-- query-monitor/composer.json | 32 +- query-monitor/data/assets.php | 5 - query-monitor/data/db_queries.php | 19 +- query-monitor/data/doing_it_wrong.php | 19 - query-monitor/data/environment.php | 1 - query-monitor/data/http.php | 2 +- query-monitor/dispatchers/Html.php | 73 ++-- query-monitor/dispatchers/REST.php | 12 +- query-monitor/dispatchers/REST_Envelope.php | 6 +- query-monitor/dispatchers/Redirect.php | 6 +- query-monitor/output/Html.php | 7 +- query-monitor/output/html/assets.php | 2 +- query-monitor/output/html/db_callers.php | 4 +- query-monitor/output/html/db_queries.php | 238 ++++++------ query-monitor/output/html/doing_it_wrong.php | 194 ---------- query-monitor/output/html/environment.php | 20 - query-monitor/output/html/hooks.php | 38 +- query-monitor/output/html/http.php | 21 +- query-monitor/output/html/php_errors.php | 19 +- query-monitor/output/html/request.php | 2 +- query-monitor/output/html/theme.php | 32 +- query-monitor/output/raw/db_queries.php | 53 ++- query-monitor/query-monitor.php | 17 +- query-monitor/readme.txt | 256 +------------ query-monitor/vendor/autoload.php | 2 +- query-monitor/vendor/composer/ClassLoader.php | 96 ++--- .../vendor/composer/autoload_classmap.php | 92 +++++ .../vendor/composer/autoload_namespaces.php | 9 + .../vendor/composer/autoload_psr4.php | 9 + .../vendor/composer/autoload_real.php | 8 +- .../vendor/composer/autoload_static.php | 7 +- query-monitor/vendor/composer/installed.json | 5 + query-monitor/vendor/composer/installed.php | 23 ++ .../vendor/composer/platform_check.php | 4 +- query-monitor/wp-content/db.php | 13 +- 66 files changed, 688 insertions(+), 1530 deletions(-) rename query-monitor/{classes/Collector_Assets.php => collectors/assets.php} (93%) delete mode 100644 query-monitor/collectors/doing_it_wrong.php delete mode 100644 query-monitor/data/doing_it_wrong.php delete mode 100644 query-monitor/output/html/doing_it_wrong.php create mode 100644 query-monitor/vendor/composer/autoload_classmap.php create mode 100644 query-monitor/vendor/composer/autoload_namespaces.php create mode 100644 query-monitor/vendor/composer/autoload_psr4.php create mode 100644 query-monitor/vendor/composer/installed.json create mode 100644 query-monitor/vendor/composer/installed.php diff --git a/query-monitor/assets/query-monitor.css b/query-monitor/assets/query-monitor.css index 91b4356f42..a83e4858c0 100644 --- a/query-monitor/assets/query-monitor.css +++ b/query-monitor/assets/query-monitor.css @@ -167,7 +167,6 @@ #wpadminbar .qm-alert { background-color: #f60; } -#wpadminbar #wp-admin-bar-query-monitor-doing_it_wrong a, #wpadminbar #wp-admin-bar-query-monitor-stricts a, #wpadminbar #wp-admin-bar-query-monitor-deprecateds a, #wpadminbar #wp-admin-bar-query-monitor-notices a, @@ -176,9 +175,7 @@ #wpadminbar .qm-notice { background-color: #740; } -#wpadminbar #wp-admin-bar-query-monitor-doing_it_wrong a:focus, #wpadminbar #wp-admin-bar-query-monitor-doing_it_wrong a:hover, -#wpadminbar #wp-admin-bar-query-monitor-stricts a:focus, -#wpadminbar #wp-admin-bar-query-monitor-stricts a:hover, +#wpadminbar #wp-admin-bar-query-monitor-stricts a:focus, #wpadminbar #wp-admin-bar-query-monitor-stricts a:hover, #wpadminbar #wp-admin-bar-query-monitor-deprecateds a:focus, #wpadminbar #wp-admin-bar-query-monitor-deprecateds a:hover, #wpadminbar #wp-admin-bar-query-monitor-notices a:focus, @@ -244,7 +241,6 @@ body.admin-color-light #wp-admin-bar-query-monitor:not(.qm-all-clear):not(:hover #wp-admin-bar-query-monitor-default .qm-alert a, #wp-admin-bar-query-monitor-default .qm-error a, #wp-admin-bar-query-monitor-default .qm-warning a, -#wp-admin-bar-query-monitor-doing_it_wrong a, #wp-admin-bar-query-monitor-deprecateds a, #wp-admin-bar-query-monitor-stricts a, #wp-admin-bar-query-monitor-notices a, @@ -442,8 +438,8 @@ body.admin-color-light #wp-admin-bar-query-monitor:not(.qm-all-clear):not(:hover height: 27px; } #query-monitor-main.qm-show { - height: 60%; - width: 60%; + height: 40%; + width: 40%; } #query-monitor-main:not(.qm-show-right) { width: 100% !important; @@ -606,7 +602,7 @@ body.admin-color-light #wp-admin-bar-query-monitor:not(.qm-all-clear):not(:hover color: var(--qm-panel-menu-fg) !important; cursor: pointer !important; display: block !important; - padding: 7px 32px 7px 10px !important; + padding: 6px 32px 6px 10px !important; position: relative !important; text-decoration: none !important; width: 100% !important; @@ -733,7 +729,7 @@ body.admin-color-light #wp-admin-bar-query-monitor:not(.qm-all-clear):not(:hover #query-monitor-main .qm tfoot th, #query-monitor-main .qm tfoot td { border: 1px solid var(--qm-cell-border) !important; - padding: 6px 6px 5px 6px !important; + padding: 5px 5px 4px 5px !important; vertical-align: top !important; } #query-monitor-main .qm tbody th, @@ -746,7 +742,7 @@ body.admin-color-light #wp-admin-bar-query-monitor:not(.qm-all-clear):not(:hover border: 1px solid var(--qm-cell-border) !important; border-top: none !important; box-shadow: 0 1px 0 var(--qm-cell-border) !important; - padding: 5px 5px 5px 6px !important; + padding: 5px !important; position: -webkit-sticky !important; position: sticky !important; top: 0 !important; @@ -789,7 +785,7 @@ body.admin-color-light #wp-admin-bar-query-monitor:not(.qm-all-clear):not(:hover #query-monitor-main .qm td.qm-num { font-family: Menlo, Monaco, Consolas, monospace !important; font-size: 11px !important; - line-height: 20px !important; + line-height: 19px !important; } #query-monitor-main .qm td.qm-row-sql { min-width: 25em !important; @@ -809,7 +805,7 @@ body.admin-color-light #wp-admin-bar-query-monitor:not(.qm-all-clear):not(:hover min-width: 15em !important; } #query-monitor-main .qm td.qm-has-toggle { - padding-right: 28px !important; + padding-right: 24px !important; position: relative !important; } #query-monitor-main .qm td.qm-has-toggle:not(.qm-toggled-on) .qm-supplemental { @@ -901,7 +897,6 @@ body.admin-color-light #wp-admin-bar-query-monitor:not(.qm-all-clear):not(:hover #query-monitor-main .qm li { display: list-item !important; list-style: none !important; - line-height: 20px !important; } #query-monitor-main .qm li::before { content: "" !important; @@ -910,7 +905,7 @@ body.admin-color-light #wp-admin-bar-query-monitor:not(.qm-all-clear):not(:hover #query-monitor-main .qm pre { font-family: Menlo, Monaco, Consolas, monospace !important; font-size: 11px !important; - line-height: 20px !important; + line-height: 19px !important; } #query-monitor-main .qm pre { background: transparent !important; @@ -1264,8 +1259,7 @@ body.admin-color-light #wp-admin-bar-query-monitor:not(.qm-all-clear):not(:hover #query-monitor-main .qm-hide-name, #query-monitor-main .qm-hide-type, #query-monitor-main .qm-hide-caller, -#query-monitor-main .qm-hide-component, -#query-monitor-main .qm-hide-host { +#query-monitor-main .qm-hide-component { display: none !important; } #query-monitor-main .qm thead th.qm-sortable-column { diff --git a/query-monitor/assets/query-monitor.js b/query-monitor/assets/query-monitor.js index e02cfefb4a..9aa2aadfd9 100644 --- a/query-monitor/assets/query-monitor.js +++ b/query-monitor/assets/query-monitor.js @@ -253,38 +253,20 @@ if ( window.jQuery ) { } var matches = tr.filter(':visible'); - var filtered_count = 0; - var total_count = 0; matches.each(function(i){ var row_time = $(this).attr('data-qm-time'); if ( row_time ) { time += parseFloat( row_time ); } - - var row_count = $(this).attr('data-qm-count'); - if ( row_count ) { - filtered_count += parseFloat( row_count ); - } else { - filtered_count++; - } }); if ( time ) { time = QM_i18n.number_format( time, 4 ); } - tr.each(function(i){ - var row_count = $(this).attr('data-qm-count'); - if ( row_count ) { - total_count += parseFloat( row_count ); - } else { - total_count++; - } - }); - if ( table.find('.qm-filtered').length ) { - var count = filtered_count + ' / ' + total_count; + var count = matches.length + ' / ' + tr.length; } else { - var count = filtered_count; + var count = matches.length; } table.find('.qm-items-number').text(count); @@ -328,7 +310,7 @@ if ( window.jQuery ) { var toggle = $(this).closest('td').find('.qm-toggled'); if ( currentState === 'true' ) { if ( toggle.length ) { - toggle.slideToggle(150,function(){ + toggle.slideToggle(200,function(){ el.closest('td').removeClass('qm-toggled-on'); el.text(el.attr('data-on')); }); @@ -339,7 +321,7 @@ if ( window.jQuery ) { } else { el.closest('td').addClass('qm-toggled-on'); el.text(el.attr('data-off')); - toggle.slideToggle(150); + toggle.slideToggle(200); } e.preventDefault(); }); diff --git a/query-monitor/classes/Activation.php b/query-monitor/classes/Activation.php index f17b9c27c0..c32d556235 100644 --- a/query-monitor/classes/Activation.php +++ b/query-monitor/classes/Activation.php @@ -32,10 +32,6 @@ public function activate( $sitewide = false ) { $db = WP_CONTENT_DIR . '/db.php'; $create_symlink = defined( 'QM_DB_SYMLINK' ) ? QM_DB_SYMLINK : true; - if ( $create_symlink && defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) { - $create_symlink = false; - } - if ( $create_symlink && ! file_exists( $db ) && function_exists( 'symlink' ) ) { @symlink( $this->plugin_path( 'wp-content/db.php' ), $db ); // phpcs:ignore } @@ -49,10 +45,9 @@ public function activate( $sitewide = false ) { } /** - * @param bool $network_wide * @return void */ - public function deactivate( $network_wide = false ) { + public function deactivate() { $admins = QM_Util::get_admins(); // Remove legacy capability handling: @@ -60,8 +55,8 @@ public function deactivate( $network_wide = false ) { $admins->remove_cap( 'view_query_monitor' ); } - # Only delete db.php if a single site and db.php belongs to Query Monitor - if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && class_exists( 'QM_DB', false ) && ( $network_wide || ! is_multisite() ) ) { + # Only delete db.php if it belongs to Query Monitor + if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && class_exists( 'QM_DB', false ) ) { unlink( WP_CONTENT_DIR . '/db.php' ); // phpcs:ignore } diff --git a/query-monitor/classes/Backtrace.php b/query-monitor/classes/Backtrace.php index d4caf1de2f..9ec8d5ea3c 100644 --- a/query-monitor/classes/Backtrace.php +++ b/query-monitor/classes/Backtrace.php @@ -26,11 +26,10 @@ class QM_Backtrace { 'Altis\Cloud\DB' => true, 'Yoast\WP\Lib\ORM' => true, 'Perflab_SQLite_DB' => true, - 'WP_SQLite_DB' => true, ); /** - * @var array> + * @var array */ protected static $ignore_method = array(); @@ -47,12 +46,9 @@ class QM_Backtrace { 'trigger_error' => true, '_doing_it_wrong' => true, '_deprecated_argument' => true, - '_deprecated_constructor' => true, '_deprecated_file' => true, '_deprecated_function' => true, - '_deprecated_hook' => true, 'dbDelta' => true, - 'maybe_create_table' => true, ); /** @@ -100,9 +96,9 @@ class QM_Backtrace { protected $args = array(); /** - * @var mixed[] + * @var mixed[]|null */ - protected $trace; + protected $trace = null; /** * @var mixed[]|null @@ -225,10 +221,7 @@ public function get_component() { } } - $file_dirs = QM_Util::get_file_dirs(); - $file_dirs['dropin'] = WP_CONTENT_DIR; - - foreach ( $file_dirs as $type => $dir ) { + foreach ( QM_Util::get_file_dirs() as $type => $dir ) { if ( isset( $components[ $type ] ) ) { $this->component = $components[ $type ]; return $this->component; @@ -411,8 +404,8 @@ public function filter_trace( array $frame ) { * * @since 2.7.0 * - * @param array $ignore_class Array of class names to ignore. The array keys are class names to ignore, - * the array values are whether to ignore the class (usually true). + * @param bool[] $ignore_class Array of class names to ignore. The array keys are class names to ignore, + * the array values are whether to ignore the class or not (usually true). */ self::$ignore_class = apply_filters( 'qm/trace/ignore_class', self::$ignore_class ); @@ -421,9 +414,8 @@ public function filter_trace( array $frame ) { * * @since 2.7.0 * - * @param array> $ignore_method Array of method names to ignore. The top level array keys are - * class names, the second level array keys are method names, and - * the array values are whether to ignore the method (usually true). + * @param bool[] $ignore_method Array of method names to ignore. The array keys are method names to ignore, + * the array values are whether to ignore the method or not (usually true). */ self::$ignore_method = apply_filters( 'qm/trace/ignore_method', self::$ignore_method ); @@ -432,18 +424,18 @@ public function filter_trace( array $frame ) { * * @since 2.7.0 * - * @param array $ignore_func Array of function names to ignore. The array keys are function names to ignore, - * the array values are whether to ignore the function (usually true). + * @param bool[] $ignore_func Array of function names to ignore. The array keys are function names to ignore, + * the array values are whether to ignore the function or not (usually true). */ self::$ignore_func = apply_filters( 'qm/trace/ignore_func', self::$ignore_func ); /** * Filters which action and filter names to ignore when constructing user-facing call stacks. * - * @since 3.8.0 + * @since x.x.x * - * @param array $ignore_hook Array of hook names to ignore. The array keys are hook names to ignore, - * the array values are whether to ignore the hook (usually true). + * @param bool[] $ignore_hook Array of hook names to ignore. The array keys are hook names to ignore, + * the array values are whether to ignore the hook or not (usually true). */ self::$ignore_hook = apply_filters( 'qm/trace/ignore_hook', self::$ignore_hook ); @@ -453,9 +445,9 @@ public function filter_trace( array $frame ) { * * @since 2.7.0 * - * @param array $show_args The number of argument values to show for the given function name. The - * array keys are function names, the array values are either integers or - * "dir" to specifically treat the function argument as a directory path. + * @param (int|string)[] $show_args The number of argument values to show for the given function name. The + * array keys are function names, the array values are either integers or + * "dir" to specifically treat the function argument as a directory path. */ self::$show_args = apply_filters( 'qm/trace/show_args', self::$show_args ); diff --git a/query-monitor/classes/Collector.php b/query-monitor/classes/Collector.php index aa14071c7e..2e9ffb9f77 100644 --- a/query-monitor/classes/Collector.php +++ b/query-monitor/classes/Collector.php @@ -118,8 +118,6 @@ public static function format_bool_constant( $constant ) { if ( ! defined( $constant ) ) { /* translators: Undefined PHP constant */ return __( 'undefined', 'query-monitor' ); - } elseif ( constant( $constant ) === '' ) { - return __( 'empty string', 'query-monitor' ); } elseif ( is_string( constant( $constant ) ) && ! is_numeric( constant( $constant ) ) ) { return constant( $constant ); } elseif ( ! constant( $constant ) ) { @@ -175,7 +173,7 @@ final public function process_concerns() { * * @since 3.3.0 * - * @param array $actions Array of action names that this panel concerns itself with. + * @param string[] $actions Array of action names that this panel concerns itself with. */ $concerned_actions = apply_filters( "qm/collect/concerned_actions/{$id}", $this->get_concerned_actions() ); @@ -187,7 +185,7 @@ final public function process_concerns() { * * @since 3.3.0 * - * @param array $filters Array of filter names that this panel concerns itself with. + * @param string[] $filters Array of filter names that this panel concerns itself with. */ $concerned_filters = apply_filters( "qm/collect/concerned_filters/{$id}", $this->get_concerned_filters() ); @@ -199,7 +197,7 @@ final public function process_concerns() { * * @since 3.3.0 * - * @param array $options Array of option names that this panel concerns itself with. + * @param string[] $options Array of option names that this panel concerns itself with. */ $concerned_options = apply_filters( "qm/collect/concerned_options/{$id}", $this->get_concerned_options() ); @@ -211,20 +209,20 @@ final public function process_concerns() { * * @since 3.3.0 * - * @param array $constants Array of constant names that this panel concerns itself with. + * @param string[] $constants Array of constant names that this panel concerns itself with. */ $concerned_constants = apply_filters( "qm/collect/concerned_constants/{$id}", $this->get_concerned_constants() ); foreach ( $concerned_actions as $action ) { if ( has_action( $action ) ) { - $this->concerned_actions[ $action ] = QM_Hook::process( $action, 'action', $wp_filter, true, false ); + $this->concerned_actions[ $action ] = QM_Hook::process( $action, $wp_filter, true, false ); } $tracked[] = $action; } foreach ( $concerned_filters as $filter ) { if ( has_filter( $filter ) ) { - $this->concerned_filters[ $filter ] = QM_Hook::process( $filter, 'filter', $wp_filter, true, false ); + $this->concerned_filters[ $filter ] = QM_Hook::process( $filter, $wp_filter, true, false ); } $tracked[] = $filter; } @@ -246,7 +244,7 @@ final public function process_concerns() { $option ); if ( has_filter( $filter ) ) { - $this->concerned_filters[ $filter ] = QM_Hook::process( $filter, 'filter', $wp_filter, true, false ); + $this->concerned_filters[ $filter ] = QM_Hook::process( $filter, $wp_filter, true, false ); } $tracked[] = $filter; } diff --git a/query-monitor/classes/Dispatcher.php b/query-monitor/classes/Dispatcher.php index b24ce39cf0..02ab0d3dae 100644 --- a/query-monitor/classes/Dispatcher.php +++ b/query-monitor/classes/Dispatcher.php @@ -101,7 +101,7 @@ public function cease() { * Processes and fetches the outputters for this dispatcher. * * @param string $outputter_id The outputter ID. - * @return array Array of outputters. + * @return QM_Output[] Array of outputters. */ public function get_outputters( $outputter_id ) { $collectors = QM_Collectors::init(); diff --git a/query-monitor/classes/Hook.php b/query-monitor/classes/Hook.php index fe3156e854..10d6debd6d 100644 --- a/query-monitor/classes/Hook.php +++ b/query-monitor/classes/Hook.php @@ -9,15 +9,12 @@ class QM_Hook { /** * @param string $name - * @param string $type * @param array $wp_filter * @param bool $hide_qm * @param bool $hide_core * @return array> - * @phpstan-param 'action'|'filter' $type * @phpstan-return array{ * name: string, - * type: 'action'|'filter', * actions: list, @@ -26,7 +23,7 @@ class QM_Hook { * components: array, * } */ - public static function process( $name, string $type, array $wp_filter, $hide_qm = false, $hide_core = false ) { + public static function process( $name, array $wp_filter, $hide_qm = false, $hide_core = false ) { $actions = array(); $components = array(); @@ -66,7 +63,6 @@ public static function process( $name, string $type, array $wp_filter, $hide_qm return array( 'name' => $name, - 'type' => $type, 'actions' => $actions, 'parts' => $parts, 'components' => $components, diff --git a/query-monitor/classes/PHP.php b/query-monitor/classes/PHP.php index 468b2327ab..55f5e060ff 100644 --- a/query-monitor/classes/PHP.php +++ b/query-monitor/classes/PHP.php @@ -11,7 +11,7 @@ class QM_PHP { /** * @var string */ - public static $minimum_version = '7.4.0'; + public static $minimum_version = '7.2.0'; /** * @return bool diff --git a/query-monitor/classes/Plugin.php b/query-monitor/classes/Plugin.php index c994bf49c2..2a010253a0 100644 --- a/query-monitor/classes/Plugin.php +++ b/query-monitor/classes/Plugin.php @@ -54,6 +54,12 @@ final public function plugin_path( $file = '' ) { * @return string Version */ final public function plugin_ver( $file ) { + $path = $this->plugin_path( $file ); + + if ( file_exists( $path ) ) { + return (string) filemtime( $path ); + } + return QM_VERSION; } diff --git a/query-monitor/classes/QM.php b/query-monitor/classes/QM.php index 095cc2fc40..3d60c324b1 100644 --- a/query-monitor/classes/QM.php +++ b/query-monitor/classes/QM.php @@ -143,25 +143,6 @@ public static function debug( $message, array $context = array() ) { do_action( 'qm/debug', $message, $context ); } - /** - * @param mixed $assertion - * @param string $message - * @param ?mixed $value - * @return void - */ - public static function assert( $assertion, string $message = '', $value = null ) { - /** - * Fires when an assertion is performed. - * - * @since x.y.z - * - * @param mixed $assertion The assertion result, ideally something that evaluates to true. - * @param string $message The assertion message. May be an empty string. - * @param mixed $value Optional. A value to show along with the message when the assertion fails. - */ - do_action( 'qm/assert', $assertion, $message, $value ); - } - /** * @param string $level * @param string $message diff --git a/query-monitor/classes/QueryMonitor.php b/query-monitor/classes/QueryMonitor.php index b8417ba96d..599107b07f 100644 --- a/query-monitor/classes/QueryMonitor.php +++ b/query-monitor/classes/QueryMonitor.php @@ -42,8 +42,7 @@ public function set_up() { * * @since 2.14.0 * - * @param array $collectors Array of file paths to be loaded, keyed by the base - * name of the file. + * @param string[] $collectors Array of file paths to be loaded. */ foreach ( apply_filters( 'qm/built-in-collectors', $collectors ) as $file ) { include_once $file; @@ -65,9 +64,9 @@ public function filter_plugin_action_links( array $actions ) { /** * Filters the array of row meta for each plugin in the Plugins list table. * - * @param array $plugin_meta An array of the plugin's metadata. - * @param string $plugin_file Path to the plugin file relative to the plugins directory. - * @return array Updated array of the plugin's metadata. + * @param string[] $plugin_meta An array of the plugin's metadata. + * @param string $plugin_file Path to the plugin file relative to the plugins directory. + * @return string[] An array of the plugin's metadata. */ public function filter_plugin_row_meta( array $plugin_meta, $plugin_file ) { if ( 'query-monitor/query-monitor.php' !== $plugin_file ) { @@ -91,22 +90,18 @@ public function filter_plugin_row_meta( array $plugin_meta, $plugin_file ) { * * This does not get called for Super Admins. * - * @param array $user_caps Array of key/value pairs where keys represent a capability name and boolean values - * represent whether the user has that capability. - * @param array $required_caps Required primitive capabilities for the requested capability. - * @param mixed[] $args { + * @param bool[] $user_caps Array of key/value pairs where keys represent a capability name and boolean values + * represent whether the user has that capability. + * @param string[] $required_caps Required primitive capabilities for the requested capability. + * @param mixed[] $args { * Arguments that accompany the requested capability check. * * @type string $0 Requested capability. * @type int $1 Concerned user ID. * @type mixed ...$2 Optional second and further parameters. * } - * @phpstan-param array{ - * 0: string, - * 1: int, - * } $args * @param WP_User $user Concerned user object. - * @return array Concerned user's capabilities. + * @return bool[] Concerned user's capabilities. */ public function filter_user_has_cap( array $user_caps, array $required_caps, array $args, WP_User $user ) { if ( 'view_query_monitor' !== $args[0] ) { @@ -138,8 +133,8 @@ public function action_plugins_loaded() { * * @since 2.11.2 * - * @param array $collectors Array of collector instances. - * @param QueryMonitor $instance QueryMonitor instance. + * @param QM_Collector[] $collectors Array of collector instances. + * @param QueryMonitor $instance QueryMonitor instance. */ foreach ( apply_filters( 'qm/collectors', array(), $this ) as $collector ) { QM_Collectors::add( $collector ); @@ -155,8 +150,8 @@ public function action_plugins_loaded() { * * @since 2.11.2 * - * @param array $dispatchers Array of dispatcher instances. - * @param QueryMonitor $instance QueryMonitor instance. + * @param QM_Dispatcher[] $dispatchers Array of dispatcher instances. + * @param QueryMonitor $instance QueryMonitor instance. */ foreach ( apply_filters( 'qm/dispatchers', array(), $this ) as $dispatcher ) { QM_Dispatchers::add( $dispatcher ); diff --git a/query-monitor/classes/Timer.php b/query-monitor/classes/Timer.php index dd6b6aeca6..5372dbad7a 100644 --- a/query-monitor/classes/Timer.php +++ b/query-monitor/classes/Timer.php @@ -8,14 +8,14 @@ class QM_Timer { /** - * @var array + * @var array|null * @phpstan-var array{ * time: float, * memory: int, * data: mixed[]|null, - * } + * }|null */ - protected $start; + protected $start = null; /** * @var array|null @@ -28,9 +28,9 @@ class QM_Timer { protected $end = null; /** - * @var QM_Backtrace + * @var QM_Backtrace|null */ - protected $trace; + protected $trace = null; /** * @var array> diff --git a/query-monitor/classes/Util.php b/query-monitor/classes/Util.php index a36751bbea..b45ee63c5c 100644 --- a/query-monitor/classes/Util.php +++ b/query-monitor/classes/Util.php @@ -309,26 +309,6 @@ public static function get_file_component( $file ) { break; } - if ( 'other' === $type ) { - if ( ! function_exists( '_get_dropins' ) ) { - require_once trailingslashit( constant( 'ABSPATH' ) ) . 'wp-admin/includes/plugin.php'; - } - - $dropins = array_keys( _get_dropins() ); - - foreach ( $dropins as $dropin ) { - $dropin_path = trailingslashit( constant( 'WP_CONTENT_DIR' ) ) . $dropin; - - if ( $file !== $dropin_path ) { - continue; - } - - $type = 'dropin'; - /* translators: %s: Drop-in plugin file name */ - $name = sprintf( __( 'Drop-in: %s', 'query-monitor' ), pathinfo( $dropin, PATHINFO_BASENAME ) ); - } - } - $component = new QM_Component(); $component->type = $type; $component->name = $name; @@ -650,9 +630,9 @@ public static function json_format( $data ) { public static function get_site_editor_url( string $template, string $type = 'wp_template_part' ): string { return add_query_arg( array( + 'canvas' => 'view', 'postType' => $type, 'postId' => urlencode( $template ), - 'canvas' => 'edit', ), admin_url( 'site-editor.php' ) ); diff --git a/query-monitor/classes/debug_bar.php b/query-monitor/classes/debug_bar.php index 0f3baf4731..318274bde9 100644 --- a/query-monitor/classes/debug_bar.php +++ b/query-monitor/classes/debug_bar.php @@ -7,7 +7,7 @@ class Debug_Bar { /** - * @var array + * @var Debug_Bar_Panel[] */ public $panels = array(); @@ -48,7 +48,7 @@ public function init_panels() { * * @since 2.7.0 * - * @param array $panels Array of Debug Bar panel instances. + * @param Debug_Bar_Panel[] $panels Array of Debug Bar panel instances. */ $this->panels = apply_filters( 'debug_bar_panels', array() ); } diff --git a/query-monitor/classes/Collector_Assets.php b/query-monitor/collectors/assets.php similarity index 93% rename from query-monitor/classes/Collector_Assets.php rename to query-monitor/collectors/assets.php index e6ad9cd669..a49e0ccfdc 100644 --- a/query-monitor/classes/Collector_Assets.php +++ b/query-monitor/collectors/assets.php @@ -87,10 +87,9 @@ public function process() { } $this->data->is_ssl = is_ssl(); - $this->data->full_host = wp_unslash( $_SERVER['HTTP_HOST'] ); - $this->data->host = (string) parse_url( $this->data->full_host, PHP_URL_HOST ); + $this->data->host = wp_unslash( $_SERVER['HTTP_HOST'] ); $this->data->default_version = get_bloginfo( 'version' ); - $this->data->port = (string) parse_url( $this->data->full_host, PHP_URL_PORT ); + $this->data->port = (string) parse_url( $this->data->host, PHP_URL_PORT ); $positions = array( 'missing', @@ -186,7 +185,7 @@ public function process() { if ( $source instanceof WP_Error ) { $display = $source->get_error_message(); } else { - $display = ltrim( preg_replace( '#https?://' . preg_quote( $this->data->full_host, '#' ) . '#', '', remove_query_arg( 'ver', $source ) ), '/' ); + $display = ltrim( preg_replace( '#https?://' . preg_quote( $this->data->host, '#' ) . '#', '', remove_query_arg( 'ver', $source ) ), '/' ); } $dependencies = $dependency->deps; @@ -287,7 +286,6 @@ public function get_dependency_data( _WP_Dependency $dependency ) { $loader = rtrim( $this->get_dependency_type(), 's' ); $src = $dependency->src; $host = ''; - $full_host = ''; $scheme = ''; $port = ''; @@ -308,17 +306,14 @@ public function get_dependency_data( _WP_Dependency $dependency ) { $host = (string) parse_url( $source, PHP_URL_HOST ); $scheme = (string) parse_url( $source, PHP_URL_SCHEME ); $port = (string) parse_url( $source, PHP_URL_PORT ); - $full_host = $host; - - if ( ! empty( $port ) ) { - $full_host .= ':' . $port; - } } - if ( empty( $host ) ) { - $full_host = $data->full_host; - $host = $data->host; - $port = $data->port; + $http_host = $data->host; + $http_port = $data->port; + + if ( empty( $host ) && ! empty( $http_host ) ) { + $host = $http_host; + $port = $http_port; } if ( $scheme && $data->is_ssl && ( 'https' !== $scheme ) && ( 'localhost' !== $host ) ) { @@ -337,7 +332,7 @@ public function get_dependency_data( _WP_Dependency $dependency ) { $host = ''; } - $local = ( $data->full_host === $full_host ); + $local = ( $http_host === $host ); return array( $host, $source, $local, $port ); } diff --git a/query-monitor/collectors/block_editor.php b/query-monitor/collectors/block_editor.php index 5813f16601..d4a63427f0 100644 --- a/query-monitor/collectors/block_editor.php +++ b/query-monitor/collectors/block_editor.php @@ -228,7 +228,7 @@ protected static function wp_has_blocks( $content ) { /** * @param string $content - * @return array|null + * @return mixed[]|null */ protected static function wp_parse_blocks( $content ) { if ( function_exists( 'parse_blocks' ) ) { @@ -241,7 +241,7 @@ protected static function wp_parse_blocks( $content ) { } /** - * @return array|null + * @return string[]|null */ protected static function wp_get_dynamic_block_names() { if ( function_exists( 'get_dynamic_block_names' ) ) { diff --git a/query-monitor/collectors/cache.php b/query-monitor/collectors/cache.php index 2461bdfbe1..7800ec274e 100644 --- a/query-monitor/collectors/cache.php +++ b/query-monitor/collectors/cache.php @@ -96,7 +96,6 @@ public function process() { if ( function_exists( 'extension_loaded' ) ) { $this->data->object_cache_extensions = array_map( 'extension_loaded', array( - 'Afterburner' => 'afterburner', 'APCu' => 'apcu', 'Redis' => 'redis', 'Relay' => 'relay', diff --git a/query-monitor/collectors/caps.php b/query-monitor/collectors/caps.php index da241ee4a1..b1a33aaf8a 100644 --- a/query-monitor/collectors/caps.php +++ b/query-monitor/collectors/caps.php @@ -110,20 +110,16 @@ public function get_concerned_constants() { * * This does not get called for Super Admins. See filter_map_meta_cap() below. * - * @param array $user_caps Concerned user's capabilities. - * @param array $caps Required primitive capabilities for the requested capability. - * @param array $args { + * @param bool[] $user_caps Concerned user's capabilities. + * @param string[] $caps Required primitive capabilities for the requested capability. + * @param mixed[] $args { * Arguments that accompany the requested capability check. * * @type string $0 Requested capability. * @type int $1 Concerned user ID. * @type mixed ...$2 Optional second and further parameters. * } - * @phpstan-param array{ - * 0: string, - * 1: int, - * } $args - * @return array Concerned user's capabilities. + * @return bool[] Concerned user's capabilities. */ public function filter_user_has_cap( array $user_caps, array $caps, array $args ) { $trace = new QM_Backtrace( array( @@ -165,15 +161,15 @@ public function filter_user_has_cap( array $user_caps, array $caps, array $args * * This is needed because the `user_has_cap` filter doesn't fire for Super Admins. * - * @param array $required_caps Required primitive capabilities for the requested capability. - * @param string $cap Capability or meta capability being checked. - * @param int $user_id Concerned user ID. - * @param mixed[] $args { + * @param string[] $required_caps Required primitive capabilities for the requested capability. + * @param string $cap Capability or meta capability being checked. + * @param int $user_id Concerned user ID. + * @param mixed[] $args { * Arguments that accompany the requested capability check. * * @type mixed ...$0 Optional second and further parameters. * } - * @return array Required capabilities for the requested action. + * @return string[] Required capabilities for the requested action. */ public function filter_map_meta_cap( array $required_caps, $cap, $user_id, array $args ) { if ( ! is_multisite() ) { diff --git a/query-monitor/collectors/conditionals.php b/query-monitor/collectors/conditionals.php index 22d3372b04..1370b40e97 100644 --- a/query-monitor/collectors/conditionals.php +++ b/query-monitor/collectors/conditionals.php @@ -30,7 +30,7 @@ public function process() { * * @since 2.7.0 * - * @param array $conditionals The list of conditional function names. + * @param string[] $conditionals The list of conditional function names. */ $conds = apply_filters( 'qm/collect/conditionals', array( 'is_404', @@ -79,7 +79,7 @@ public function process() { * * @since 2.7.0 * - * @param array $conditionals The list of conditional function names. + * @param string[] $conditionals The list of conditional function names. */ $conds = apply_filters( 'query_monitor_conditionals', $conds ); diff --git a/query-monitor/collectors/db_dupes.php b/query-monitor/collectors/db_dupes.php index e6733b5038..9d93c2652e 100644 --- a/query-monitor/collectors/db_dupes.php +++ b/query-monitor/collectors/db_dupes.php @@ -55,9 +55,9 @@ public function process() { // Loop over each query foreach ( $query_ids as $query_id ) { - if ( isset( $dbq_data->rows[ $query_id ]['trace'] ) ) { + if ( isset( $dbq_data->wpdb->rows[ $query_id ]['trace'] ) ) { /** @var QM_Backtrace */ - $trace = $dbq_data->rows[ $query_id ]['trace']; + $trace = $dbq_data->wpdb->rows[ $query_id ]['trace']; $stack = array_column( $trace->get_filtered_trace(), 'id' ); $component = $trace->get_component(); @@ -69,7 +69,7 @@ public function process() { } } else { /** @var array */ - $stack = $dbq_data->rows[ $query_id ]['stack']; + $stack = $dbq_data->wpdb->rows[ $query_id ]['stack']; } // Populate the caller counts for this query @@ -84,9 +84,9 @@ public function process() { // Populate the time for this query if ( isset( $times[ $sql ] ) ) { - $times[ $sql ] += $dbq->data->rows[ $query_id ]['ltime']; + $times[ $sql ] += $dbq->data->wpdb->rows[ $query_id ]['ltime']; } else { - $times[ $sql ] = $dbq->data->rows[ $query_id ]['ltime']; + $times[ $sql ] = $dbq->data->wpdb->rows[ $query_id ]['ltime']; } } diff --git a/query-monitor/collectors/db_queries.php b/query-monitor/collectors/db_queries.php index 94309e4ba6..7e5ec30e62 100644 --- a/query-monitor/collectors/db_queries.php +++ b/query-monitor/collectors/db_queries.php @@ -107,7 +107,7 @@ protected function log_caller( $caller, $ltime, $type ) { * @return void */ public function process_db_object() { - global $wp_the_query, $wpdb; + global $EZSQL_ERROR, $wp_the_query, $wpdb; $this->wpdb = $wpdb; @@ -117,6 +117,7 @@ public function process_db_object() { return; } + $rows = array(); $types = array(); $total_time = 0; $has_result = false; @@ -142,6 +143,8 @@ public function process_db_object() { * } $query */ foreach ( $wpdb->queries as $query ) { + $has_trace = false; + $has_result = false; $callers = array(); if ( isset( $query['query'], $query['elapsed'], $query['debug'] ) ) { @@ -197,13 +200,27 @@ public function process_db_object() { $this->log_type( $type ); $this->log_caller( $caller_name, $ltime, $type ); + $this->maybe_log_dupe( $sql, $i ); if ( $component ) { $this->log_component( $component, $ltime, $type ); } + if ( ! isset( $types[ $type ]['total'] ) ) { + $types[ $type ]['total'] = 1; + } else { + $types[ $type ]['total']++; + } + + if ( ! isset( $types[ $type ]['callers'][ $caller ] ) ) { + $types[ $type ]['callers'][ $caller ] = 1; + } else { + $types[ $type ]['callers'][ $caller ]++; + } + $is_main_query = ( $request === $sql && ( false !== strpos( $stack, ' WP->main,' ) ) ); + $row = compact( 'caller', 'caller_name', 'sql', 'ltime', 'result', 'type', 'component', 'trace', 'is_main_query' ); if ( ! isset( $trace ) ) { @@ -220,19 +237,43 @@ public function process_db_object() { $this->data->expensive[] = $row; } - $this->data->rows[ $i ] = $row; + $rows[ $i ] = $row; $i++; + + } + + if ( ! $has_result && ! empty( $EZSQL_ERROR ) && is_array( $EZSQL_ERROR ) ) { + // Fallback for displaying database errors when wp-content/db.php isn't in place + foreach ( $EZSQL_ERROR as $error ) { + $row = array( + 'caller' => null, + 'caller_name' => null, + 'stack' => array(), + 'sql' => $error['query'], + 'ltime' => 0, + 'result' => new WP_Error( 'qmdb', $error['error_str'] ), + 'type' => '', + 'component' => false, + 'trace' => null, + 'is_main_query' => false, + ); + $this->data->errors[] = $row; + } } - $has_main_query = wp_list_filter( $this->data->rows, array( + $total_qs = count( $rows ); + + $this->data->total_qs += $total_qs; + $this->data->total_time += $total_time; + + $has_main_query = wp_list_filter( $rows, array( 'is_main_query' => true, ) ); - $this->data->total_qs = count( $this->data->rows ); - $this->data->total_time = $total_time; - $this->data->has_result = $has_result; - $this->data->has_trace = $has_trace; - $this->data->has_main_query = ! empty( $has_main_query ); + # @TODO put errors in here too: + # @TODO proper class instead of (object) + $this->data->wpdb = (object) compact( 'rows', 'types', 'has_result', 'has_trace', 'total_time', 'total_qs', 'has_main_query' ); + } /** diff --git a/query-monitor/collectors/debug_bar.php b/query-monitor/collectors/debug_bar.php index 418cedd607..ccd3abb4b7 100644 --- a/query-monitor/collectors/debug_bar.php +++ b/query-monitor/collectors/debug_bar.php @@ -66,9 +66,7 @@ function register_qm_collectors_debug_bar() { global $debug_bar; - $debug_bar_exists = isset( $GLOBALS['debug_bar'] ) && ( $GLOBALS['debug_bar'] instanceof Debug_Bar ); - - if ( $debug_bar_exists || qm_debug_bar_being_activated() ) { + if ( class_exists( 'Debug_Bar', false ) || qm_debug_bar_being_activated() ) { return; } diff --git a/query-monitor/collectors/doing_it_wrong.php b/query-monitor/collectors/doing_it_wrong.php deleted file mode 100644 index fb55f230e0..0000000000 --- a/query-monitor/collectors/doing_it_wrong.php +++ /dev/null @@ -1,341 +0,0 @@ - - */ -class QM_Collector_Doing_It_Wrong extends QM_DataCollector { - - public $id = 'doing_it_wrong'; - - public function get_storage(): QM_Data { - return new QM_Data_Doing_It_Wrong(); - } - - /** - * @return void - */ - public function set_up() { - parent::set_up(); - - add_action( 'doing_it_wrong_run', array( $this, 'action_doing_it_wrong_run' ), 10, 3 ); - add_action( 'deprecated_function_run', array( $this, 'action_deprecated_function_run' ), 10, 3 ); - add_action( 'deprecated_constructor_run', array( $this, 'action_deprecated_constructor_run' ), 10, 3 ); - add_action( 'deprecated_file_included', array( $this, 'action_deprecated_file_included' ), 10, 4 ); - add_action( 'deprecated_argument_run', array( $this, 'action_deprecated_argument_run' ), 10, 3 ); - add_action( 'deprecated_hook_run', array( $this, 'action_deprecated_hook_run' ), 10, 4 ); - - add_filter( 'deprecated_function_trigger_error', array( $this, 'maybe_prevent_error' ), 999 ); - add_filter( 'deprecated_constructor_trigger_error', array( $this, 'maybe_prevent_error' ), 999 ); - add_filter( 'deprecated_file_trigger_error', array( $this, 'maybe_prevent_error' ), 999 ); - add_filter( 'deprecated_argument_trigger_error', array( $this, 'maybe_prevent_error' ), 999 ); - add_filter( 'deprecated_hook_trigger_error', array( $this, 'maybe_prevent_error' ), 999 ); - add_filter( 'doing_it_wrong_trigger_error', array( $this, 'maybe_prevent_error' ), 999 ); - } - - /** - * @return void - */ - public function tear_down() { - parent::tear_down(); - - remove_action( 'doing_it_wrong_run', array( $this, 'action_doing_it_wrong_run' ) ); - remove_action( 'deprecated_function_run', array( $this, 'action_deprecated_function_run' ) ); - remove_action( 'deprecated_constructor_run', array( $this, 'action_deprecated_constructor_run' ) ); - remove_action( 'deprecated_file_included', array( $this, 'action_deprecated_file_included' ) ); - remove_action( 'deprecated_argument_run', array( $this, 'action_deprecated_argument_run' ) ); - remove_action( 'deprecated_hook_run', array( $this, 'action_deprecated_hook_run' ) ); - - remove_filter( 'deprecated_function_trigger_error', array( $this, 'maybe_prevent_error' ) ); - remove_filter( 'deprecated_constructor_trigger_error', array( $this, 'maybe_prevent_error' ) ); - remove_filter( 'deprecated_file_trigger_error', array( $this, 'maybe_prevent_error' ) ); - remove_filter( 'deprecated_argument_trigger_error', array( $this, 'maybe_prevent_error' ) ); - remove_filter( 'deprecated_hook_trigger_error', array( $this, 'maybe_prevent_error' ) ); - remove_filter( 'doing_it_wrong_trigger_error', array( $this, 'maybe_prevent_error' ) ); - } - - /** - * Prevents the PHP error (notice or deprecated) from being triggered for doing it wrong calls when the - * current user can view Query Monitor output. - * - * @param bool $trigger - * @return bool - */ - public function maybe_prevent_error( $trigger ) { - if ( function_exists( 'wp_get_current_user' ) && current_user_can( 'view_query_monitor' ) ) { - return false; - } - - return $trigger; - } - - /** - * @return array - */ - public function get_concerned_actions() { - return array( - 'doing_it_wrong_run', - 'deprecated_function_run', - 'deprecated_constructor_run', - 'deprecated_file_included', - 'deprecated_argument_run', - 'deprecated_hook_run', - ); - } - - /** - * @return array - */ - public function get_concerned_filters() { - return array( - 'deprecated_function_trigger_error', - 'deprecated_constructor_trigger_error', - 'deprecated_file_trigger_error', - 'deprecated_argument_trigger_error', - 'deprecated_hook_trigger_error', - 'doing_it_wrong_trigger_error', - ); - } - - /** - * @param string $function_name - * @param string $message - * @param string $version - * @return void - */ - public function action_doing_it_wrong_run( $function_name, $message, $version ) { - $trace = new QM_Backtrace( array( - 'ignore_hook' => array( - current_action() => true, - ), - ) ); - - if ( $version ) { - /* translators: %s: Version number. */ - $version = sprintf( __( '(This message was added in version %s.)', 'query-monitor' ), $version ); - } - - $this->data->actions[] = array( - 'hook' => 'doing_it_wrong_run', - 'filtered_trace' => $trace->get_filtered_trace(), - 'component' => $trace->get_component(), - 'message' => sprintf( - /* translators: Developer debugging message. 1: PHP function name, 2: Explanatory message, 3: WordPress version number. */ - __( 'Function %1$s was called incorrectly. %2$s %3$s', 'query-monitor' ), - $function_name, - $message, - $version - ), - ); - } - - /** - * @param string $function_name - * @param string $replacement - * @param string $version - * @return void - */ - public function action_deprecated_function_run( $function_name, $replacement, $version ) { - $trace = new QM_Backtrace( array( - 'ignore_hook' => array( - current_action() => true, - ), - ) ); - - $message = sprintf( - /* translators: 1: PHP function name, 2: Version number. */ - __( 'Function %1$s is deprecated since version %2$s with no alternative available.', 'query-monitor' ), - $function_name, - $version - ); - - if ( $replacement ) { - $message = sprintf( - /* translators: 1: PHP function name, 2: Version number, 3: Alternative function name. */ - __( 'Function %1$s is deprecated since version %2$s! Use %3$s instead.', 'query-monitor' ), - $function_name, - $version, - $replacement - ); - } - - $this->data->actions[] = array( - 'hook' => 'deprecated_function_run', - 'filtered_trace' => $trace->get_filtered_trace(), - 'component' => $trace->get_component(), - 'message' => $message, - ); - } - - /** - * @param string $class_name - * @param string $version - * @param string $parent_class - * @return void - */ - public function action_deprecated_constructor_run( $class_name, $version, $parent_class ) { - $trace = new QM_Backtrace( array( - 'ignore_hook' => array( - current_action() => true, - ), - ) ); - - $message = sprintf( - /* translators: 1: PHP class name, 2: Version number, 3: __construct() method. */ - __( 'The called constructor method for %1$s class is deprecated since version %2$s! Use %3$s instead.', 'query-monitor' ), - $class_name, - $version, - '__construct()' - ); - - if ( $parent_class ) { - $message = sprintf( - /* translators: 1: PHP class name, 2: PHP parent class name, 3: Version number, 4: __construct() method. */ - __( 'The called constructor method for %1$s class in %2$s is deprecated since version %3$s! Use %4$s instead.', 'query-monitor' ), - $class_name, - $parent_class, - $version, - '__construct()' - ); - } - - $this->data->actions[] = array( - 'hook' => 'deprecated_constructor_run', - 'filtered_trace' => $trace->get_filtered_trace(), - 'component' => $trace->get_component(), - 'message' => $message, - ); - } - - /** - * @param string $file - * @param string $replacement - * @param string $version - * @param string $message - * @return void - */ - public function action_deprecated_file_included( $file, $replacement, $version, $message ) { - $trace = new QM_Backtrace( array( - 'ignore_hook' => array( - current_action() => true, - ), - ) ); - - if ( $replacement ) { - $message = sprintf( - /* translators: 1: PHP file name, 2: Version number, 3: Alternative file name, 4: Optional message regarding the change. */ - __( 'File %1$s is deprecated since version %2$s! Use %3$s instead. %4$s', 'query-monitor' ), - $file, - $version, - $replacement, - $message - ); - } else { - $message = sprintf( - /* translators: 1: PHP file name, 2: Version number, 3: Optional message regarding the change. */ - __( 'File %1$s is deprecated since version %2$s with no alternative available. %3$s', 'query-monitor' ), - $file, - $version, - $message - ); - } - - $this->data->actions[] = array( - 'hook' => 'deprecated_file_included', - 'filtered_trace' => $trace->get_filtered_trace(), - 'component' => $trace->get_component(), - 'message' => $message, - ); - } - - /** - * @param string $function_name - * @param string $message - * @param string $version - * @return void - */ - public function action_deprecated_argument_run( $function_name, $message, $version ) { - $trace = new QM_Backtrace( array( - 'ignore_hook' => array( - current_action() => true, - ), - ) ); - - if ( $message ) { - $message = sprintf( - /* translators: 1: PHP function name, 2: Version number, 3: Optional message regarding the change. */ - __( 'Function %1$s was called with an argument that is deprecated since version %2$s! %3$s', 'query-monitor' ), - $function_name, - $version, - $message - ); - } else { - $message = sprintf( - /* translators: 1: PHP function name, 2: Version number. */ - __( 'Function %1$s was called with an argument that is deprecated since version %2$s with no alternative available.', 'query-monitor' ), - $function_name, - $version - ); - } - - $this->data->actions[] = array( - 'hook' => 'deprecated_argument_run', - 'filtered_trace' => $trace->get_filtered_trace(), - 'component' => $trace->get_component(), - 'message' => $message, - ); - } - - /** - * @param string $hook - * @param string $replacement - * @param string $version - * @param string $message - * @return void - */ - public function action_deprecated_hook_run( $hook, $replacement, $version, $message ) { - $trace = new QM_Backtrace( array( - 'ignore_hook' => array( - current_action() => true, - ), - ) ); - - if ( $replacement ) { - $message = sprintf( - /* translators: 1: WordPress hook name, 2: Version number, 3: Alternative hook name, 4: Optional message regarding the change. */ - __( 'Hook %1$s is deprecated since version %2$s! Use %3$s instead. %4$s', 'query-monitor' ), - $hook, - $version, - $replacement, - $message - ); - } else { - $message = sprintf( - /* translators: 1: WordPress hook name, 2: Version number, 3: Optional message regarding the change. */ - __( 'Hook %1$s is deprecated since version %2$s with no alternative available. %3$s', 'query-monitor' ), - $hook, - $version, - $message - ); - } - - $this->data->actions[] = array( - 'hook' => 'deprecated_hook_run', - 'filtered_trace' => $trace->get_filtered_trace(), - 'component' => $trace->get_component(), - 'message' => $message, - ); - } - -} - -# Load early to catch early actions -QM_Collectors::add( new QM_Collector_Doing_It_Wrong() ); diff --git a/query-monitor/collectors/environment.php b/query-monitor/collectors/environment.php index 4f303cf34e..54690df7e9 100644 --- a/query-monitor/collectors/environment.php +++ b/query-monitor/collectors/environment.php @@ -119,8 +119,7 @@ public function process() { $extension = null; } - // mysqli_get_client_version() may not exist in Wasm environment. - $client = function_exists( 'mysqli_get_client_version' ) ? mysqli_get_client_version() : null; + $client = mysqli_get_client_version(); if ( $client ) { $client_version = implode( '.', QM_Util::get_client_version( $client ) ); @@ -143,7 +142,7 @@ public function process() { $this->data->db = array( 'info' => $info, 'vars' => $mysql_vars, - 'variables' => is_array( $variables ) ? $variables : array(), + 'variables' => $variables ?: array(), ); } @@ -165,7 +164,7 @@ public function process() { if ( function_exists( 'get_loaded_extensions' ) ) { $extensions = get_loaded_extensions(); sort( $extensions, SORT_STRING | SORT_FLAG_CASE ); - $php_data['extensions'] = array_combine( $extensions, array_map( array( $this, 'get_extension_version' ), $extensions ) ) ?: array(); + $php_data['extensions'] = array_combine( $extensions, array_map( array( $this, 'get_extension_version' ), $extensions ) ); } else { $php_data['extensions'] = array(); } @@ -184,17 +183,12 @@ public function process() { 'COMPRESS_SCRIPTS' => self::format_bool_constant( 'COMPRESS_SCRIPTS' ), 'COMPRESS_CSS' => self::format_bool_constant( 'COMPRESS_CSS' ), 'WP_ENVIRONMENT_TYPE' => self::format_bool_constant( 'WP_ENVIRONMENT_TYPE' ), - 'WP_DEVELOPMENT_MODE' => self::format_bool_constant( 'WP_DEVELOPMENT_MODE' ), ); if ( function_exists( 'wp_get_environment_type' ) ) { $this->data->wp['environment_type'] = wp_get_environment_type(); } - if ( function_exists( 'wp_get_development_mode' ) ) { - $this->data->wp['development_mode'] = wp_get_development_mode(); - } - $this->data->wp['constants'] = apply_filters( 'qm/environment-constants', $constants ); if ( is_multisite() ) { diff --git a/query-monitor/collectors/hooks.php b/query-monitor/collectors/hooks.php index d0771261ed..5bd76f4355 100644 --- a/query-monitor/collectors/hooks.php +++ b/query-monitor/collectors/hooks.php @@ -45,8 +45,8 @@ public function process() { $all_parts = array(); $components = array(); - if ( has_action( 'all' ) ) { - $hooks[] = QM_Hook::process( 'all', 'action', $wp_filter, self::$hide_qm, self::$hide_core ); + if ( has_filter( 'all' ) ) { + $hooks[] = QM_Hook::process( 'all', $wp_filter, self::$hide_qm, self::$hide_core ); } $this->data->all_hooks = defined( 'QM_SHOW_ALL_HOOKS' ) && QM_SHOW_ALL_HOOKS; @@ -60,13 +60,8 @@ public function process() { } foreach ( $hook_names as $name ) { - $type = 'action'; - if ( $this->data->all_hooks ) { - $type = array_key_exists( $name, $wp_actions ) ? 'action' : 'filter'; - } - - $hook = QM_Hook::process( $name, $type, $wp_filter, self::$hide_qm, self::$hide_core ); + $hook = QM_Hook::process( $name, $wp_filter, self::$hide_qm, self::$hide_core ); $hooks[] = $hook; $all_parts = array_merge( $all_parts, $hook['parts'] ); diff --git a/query-monitor/collectors/http.php b/query-monitor/collectors/http.php index 0189a3a6bc..9da8d9ebe2 100644 --- a/query-monitor/collectors/http.php +++ b/query-monitor/collectors/http.php @@ -19,6 +19,11 @@ class QM_Collector_HTTP extends QM_DataCollector { */ public $id = 'http'; + /** + * @var string|null + */ + private $transport = null; + /** * @var mixed|null */ @@ -42,6 +47,7 @@ class QM_Collector_HTTP extends QM_DataCollector { * end: float, * args: array, * response: mixed[]|WP_Error, + * transport: string|null, * info: array|null, * }> */ @@ -62,7 +68,9 @@ public function set_up() { add_filter( 'pre_http_request', array( $this, 'filter_pre_http_request' ), 9999, 3 ); add_action( 'http_api_debug', array( $this, 'action_http_api_debug' ), 9999, 5 ); + add_action( 'requests-curl.before_request', array( $this, 'action_curl_before_request' ), 9999 ); add_action( 'requests-curl.after_request', array( $this, 'action_curl_after_request' ), 9999, 2 ); + add_action( 'requests-fsockopen.before_request', array( $this, 'action_fsockopen_before_request' ), 9999 ); add_action( 'requests-fsockopen.after_request', array( $this, 'action_fsockopen_after_request' ), 9999, 2 ); } @@ -241,9 +249,15 @@ public function filter_pre_http_request( $response, array $args, $url ) { * @return void */ public function action_http_api_debug( $response, $action, $class, $args, $url ) { + $this->transport = null; + switch ( $action ) { case 'response': + if ( ! empty( $class ) ) { + $this->transport = str_replace( 'wp_http_', '', strtolower( $class ) ); + } + $this->log_http_response( $response, $args, $url ); break; @@ -256,6 +270,13 @@ public function action_http_api_debug( $response, $action, $class, $args, $url ) } + /** + * @return void + */ + public function action_curl_before_request() { + $this->transport = 'curl'; + } + /** * @param mixed $headers * @param mixed[] $info @@ -265,6 +286,13 @@ public function action_curl_after_request( $headers, array $info = null ) { $this->info = $info; } + /** + * @return void + */ + public function action_fsockopen_before_request() { + $this->transport = 'fsockopen'; + } + /** * @param mixed $headers * @param mixed[] $info @@ -291,6 +319,7 @@ public function log_http_response( $response, array $args, $url ) { 'response' => $response, 'args' => $args, 'info' => $this->info, + 'transport' => $this->transport, ); if ( isset( $args['_qm_original_key'] ) ) { @@ -307,6 +336,7 @@ public function log_http_response( $response, array $args, $url ) { $this->http_responses[ $key ] = $http_response; $this->info = null; + $this->transport = null; } /** @@ -360,7 +390,7 @@ public function process() { $ltime = ( $response['end'] - $request['start'] ); $redirected_to = null; - if ( isset( $response['info'] ) && ! empty( $response['info']['url'] ) && is_string( $response['info']['url'] ) ) { + if ( isset( $response['info'] ) && is_string( $response['info']['url'] ) && ! empty( $response['info']['url'] ) ) { // Ignore query variables when detecting a redirect. $from = untrailingslashit( preg_replace( '#\?[^$]+$#', '', $request['url'] ) ); $to = untrailingslashit( preg_replace( '#\?[^$]+$#', '', $response['info']['url'] ) ); @@ -380,12 +410,12 @@ public function process() { 'args' => $response['args'], 'component' => $request['component'], 'filtered_trace' => $request['filtered_trace'], - 'host' => $host, 'info' => $response['info'], 'local' => $local, 'ltime' => $ltime, 'redirected_to' => $redirected_to, 'response' => $response['response'], + 'transport' => $response['transport'], 'type' => $type, 'url' => $request['url'], ); diff --git a/query-monitor/collectors/languages.php b/query-monitor/collectors/languages.php index 5af9448c54..044762eb10 100644 --- a/query-monitor/collectors/languages.php +++ b/query-monitor/collectors/languages.php @@ -93,7 +93,6 @@ public function get_concerned_filters() { 'plugin_locale', 'pre_determine_locale', 'pre_load_script_translations', - 'pre_load_textdomain', 'theme_locale', ); } diff --git a/query-monitor/collectors/logger.php b/query-monitor/collectors/logger.php index eb8c9f2d98..a3f22d8ce3 100644 --- a/query-monitor/collectors/logger.php +++ b/query-monitor/collectors/logger.php @@ -42,7 +42,6 @@ public function set_up() { add_action( "qm/{$level}", array( $this, $level ), 10, 2 ); } - add_action( 'qm/assert', array( $this, 'assert' ), 10, 3 ); add_action( 'qm/log', array( $this, 'log' ), 10, 3 ); } @@ -139,49 +138,6 @@ public function debug( $message, array $context = array() ) { $this->store( self::DEBUG, $message, $context ); } - /** - * @param mixed $assertion - * @param string $message - * @param ?mixed $value - * @return void - */ - public function assert( $assertion, string $message = '', $value = null ) { - $prefix = null; - - if ( $assertion ) { - $level = self::DEBUG; - - if ( $message ) { - $message = sprintf( - /* translators: %s: Assertion message */ - __( 'Assertion passed: %s', 'query-monitor' ), - $message - ); - } else { - $message = __( 'Assertion passed', 'query-monitor' ); - } - } else { - $level = self::ERROR; - - if ( $message ) { - $message = sprintf( - /* translators: %s: Assertion message */ - __( 'Assertion failed: %s', 'query-monitor' ), - $message - ); - } else { - $message = __( 'Assertion failed', 'query-monitor' ); - } - - if ( $value !== null ) { - $prefix = $message; - $message = $value; - } - } - - $this->store( $level, $message, array(), $prefix ); - } - /** * @param string $level * @param mixed $message @@ -202,12 +158,11 @@ public function log( $level, $message, array $context = array() ) { * @param string $level * @param mixed $message * @param array $context - * @param ?string $prefix * @phpstan-param self::* $level * @phpstan-param LogMessage $message * @return void */ - protected function store( $level, $message, array $context = array(), string $prefix = null ) { + protected function store( $level, $message, array $context = array() ) { $trace = new QM_Backtrace( array( 'ignore_hook' => array( current_filter() => true, @@ -246,7 +201,7 @@ protected function store( $level, $message, array $context = array(), string $pr $this->data->counts[ $level ]++; $this->data->logs[] = array( - 'message' => self::interpolate( $message, $context, $prefix ), + 'message' => self::interpolate( $message, $context ), 'filtered_trace' => $trace->get_filtered_trace(), 'component' => $trace->get_component(), 'level' => $level, @@ -256,10 +211,9 @@ protected function store( $level, $message, array $context = array(), string $pr /** * @param string $message * @param array $context - * @param ?string $prefix * @return string */ - protected static function interpolate( $message, array $context = array(), string $prefix = null ) { + protected static function interpolate( $message, array $context = array() ) { // build a replacement array with braces around the context keys $replace = array(); @@ -269,21 +223,11 @@ protected static function interpolate( $message, array $context = array(), strin $replace[ "{{$key}}" ] = ( $val ? 'true' : 'false' ); } elseif ( is_scalar( $val ) ) { $replace[ "{{$key}}" ] = $val; - } elseif ( is_object( $val ) ) { - $replace[ "{{$key}}" ] = sprintf( '[%s]', get_class( $val ) ); - } else { - $replace[ "{{$key}}" ] = sprintf( '[%s]', gettype( $val ) ); } } // interpolate replacement values into the message and return - $message = strtr( $message, $replace ); - - if ( $prefix !== null ) { - $message = $prefix . "\n" . $message; - } - - return $message; + return strtr( $message, $replace ); } /** diff --git a/query-monitor/collectors/php_errors.php b/query-monitor/collectors/php_errors.php index 9aaf0149b7..dac74a4dee 100644 --- a/query-monitor/collectors/php_errors.php +++ b/query-monitor/collectors/php_errors.php @@ -124,7 +124,7 @@ public function tear_down() { error_reporting( $this->error_reporting ); } - if ( is_string( $this->display_errors ) ) { + if ( false !== $this->display_errors ) { ini_set( 'display_errors', $this->display_errors ); } @@ -317,9 +317,8 @@ protected function output_fatal( $error, array $e ) { printf( // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet - '', - esc_url( QueryMonitor::init()->plugin_url( 'assets/query-monitor.css' ) ), - esc_attr( QM_VERSION ) + '', + esc_url( QueryMonitor::init()->plugin_url( 'assets/query-monitor.css' ) ) ); // This unused wrapper with an attribute serves to help the #qm-fatal div break out of an @@ -341,8 +340,11 @@ protected function output_fatal( $error, array $e ) { $file = esc_html( $e['file'] ); } + $warning = QueryMonitor::icon( 'warning' ); + printf( - '

%1$s: %2$s
in %3$s on line %4$d

', + '

%1$s %2$s: %3$s
in %4$s on line %5$d

', + $warning, esc_html( $error ), nl2br( esc_html( $e['message'] ), false ), $file, @@ -472,8 +474,8 @@ public function process() { * Filters the reportable PHP errors using the table specified. Users can customize the levels * using the `qm/collect/php_error_levels` filter. * - * @param array $components The error levels keyed by component name. - * @param string $component_type The component type, for example 'plugin' or 'theme'. + * @param int[] $components The error levels keyed by component name. + * @param string $component_type The component type, for example 'plugin' or 'theme'. * @return void */ public function filter_reportable_errors( array $components, $component_type ) { diff --git a/query-monitor/collectors/raw_request.php b/query-monitor/collectors/raw_request.php index edcad78124..5dc8d56ff7 100644 --- a/query-monitor/collectors/raw_request.php +++ b/query-monitor/collectors/raw_request.php @@ -51,7 +51,7 @@ protected function get_headers( array $server ) { */ public function process() { $request = array( - 'ip' => $_SERVER['REMOTE_ADDR'] ?? '', + 'ip' => $_SERVER['REMOTE_ADDR'], 'method' => strtoupper( wp_unslash( $_SERVER['REQUEST_METHOD'] ) ), 'scheme' => is_ssl() ? 'https' : 'http', 'host' => wp_unslash( $_SERVER['HTTP_HOST'] ), diff --git a/query-monitor/collectors/theme.php b/query-monitor/collectors/theme.php index 229cacc64e..1b744b4a07 100644 --- a/query-monitor/collectors/theme.php +++ b/query-monitor/collectors/theme.php @@ -69,9 +69,6 @@ public function set_up() { add_action( 'render_block_core_template_part_post', array( $this, 'action_render_block_core_template_part_post' ), 10, 3 ); add_action( 'render_block_core_template_part_file', array( $this, 'action_render_block_core_template_part_file' ), 10, 3 ); add_action( 'render_block_core_template_part_none', array( $this, 'action_render_block_core_template_part_none' ), 10, 3 ); - add_action( 'gutenberg_render_block_core_template_part_post', array( $this, 'action_render_block_core_template_part_post' ), 10, 3 ); - add_action( 'gutenberg_render_block_core_template_part_file', array( $this, 'action_render_block_core_template_part_file' ), 10, 3 ); - add_action( 'gutenberg_render_block_core_template_part_none', array( $this, 'action_render_block_core_template_part_none' ), 10, 3 ); } /** @@ -88,9 +85,6 @@ public function tear_down() { remove_action( 'render_block_core_template_part_post', array( $this, 'action_render_block_core_template_part_post' ), 10 ); remove_action( 'render_block_core_template_part_file', array( $this, 'action_render_block_core_template_part_file' ), 10 ); remove_action( 'render_block_core_template_part_none', array( $this, 'action_render_block_core_template_part_none' ), 10 ); - remove_action( 'gutenberg_render_block_core_template_part_post', array( $this, 'action_render_block_core_template_part_post' ), 10 ); - remove_action( 'gutenberg_render_block_core_template_part_file', array( $this, 'action_render_block_core_template_part_file' ), 10 ); - remove_action( 'gutenberg_render_block_core_template_part_none', array( $this, 'action_render_block_core_template_part_none' ), 10 ); parent::tear_down(); } @@ -177,7 +171,11 @@ public static function get_query_template_names() { $names['search'] = 'is_search'; $names['front_page'] = 'is_front_page'; $names['home'] = 'is_home'; - $names['privacy_policy'] = 'is_privacy_policy'; + + if ( function_exists( 'is_privacy_policy' ) ) { + $names['privacy_policy'] = 'is_privacy_policy'; + } + $names['post_type_archive'] = 'is_post_type_archive'; $names['taxonomy'] = 'is_tax'; $names['attachment'] = 'is_attachment'; @@ -195,7 +193,7 @@ public static function get_query_template_names() { } /** - * @return array + * @return string[] */ public static function get_query_filter_names() { $names = array(); @@ -205,7 +203,11 @@ public static function get_query_filter_names() { $names['search'] = 'search_template'; $names['front_page'] = 'frontpage_template'; $names['home'] = 'home_template'; - $names['privacy_policy'] = 'privacypolicy_template'; + + if ( function_exists( 'is_privacy_policy' ) ) { + $names['privacy_policy'] = 'privacypolicy_template'; + } + $names['taxonomy'] = 'taxonomy_template'; $names['attachment'] = 'attachment_template'; $names['single'] = 'single_template'; @@ -249,10 +251,9 @@ public function action_template_redirect() { /** * Fires before a template part is loaded. * - * @param string $slug The slug name for the generic template. - * @param string $name The name of the specialized template or an empty - * string if there is none. - * @param array $templates Array of template files to search for, in order. + * @param string $slug The slug name for the generic template. + * @param string $name The name of the specialized template. + * @param string[] $templates Array of template files to search for, in order. * @return void */ public function action_get_template_part( $slug, $name, $templates ) { @@ -356,9 +357,9 @@ public function filter_template_hierarchy( array $templates ) { } /** - * @param string $template Path to the template. See locate_template(). - * @param string $type Sanitized filename without extension. - * @param array $templates A list of template candidates, in descending order of priority. + * @param string $template Path to the template. See locate_template(). + * @param string $type Sanitized filename without extension. + * @param string[] $templates A list of template candidates, in descending order of priority. * @return string Full path to template file. */ public function filter_template( $template, $type, $templates ) { @@ -561,9 +562,9 @@ protected static function wp_get_block_theme_folders() { } /** - * @param string $template_type The current template type. - * @param array $template_hierarchy The current template hierarchy, ordered by priority. - * @param string $fallback_template A PHP fallback template to use if no matching block template is found. + * @param string $template_type The current template type. + * @param string[] $template_hierarchy The current template hierarchy, ordered by priority. + * @param string $fallback_template A PHP fallback template to use if no matching block template is found. * @return WP_Block_Template|null template A template object, or null if none could be found. */ protected static function wp_resolve_block_template( $template_type, $template_hierarchy, $fallback_template ) { @@ -571,10 +572,6 @@ protected static function wp_resolve_block_template( $template_type, $template_h return null; } - if ( ! current_theme_supports( 'block-templates' ) ) { - return null; - } - return resolve_block_template( $template_type, $template_hierarchy, $fallback_template ); } } diff --git a/query-monitor/composer.json b/query-monitor/composer.json index 0265614b31..0560a0a273 100644 --- a/query-monitor/composer.json +++ b/query-monitor/composer.json @@ -22,8 +22,8 @@ } ], "require": { - "php": ">=7.4.0", - "composer/installers": "^1.0 || ^2.0" + "php": ">=7.2.0", + "composer/installers": "~1.0 || ~2.0" }, "require-dev": { "codeception/module-asserts": "^1.0", @@ -33,14 +33,13 @@ "dealerdirect/phpcodesniffer-composer-installer": "0.7.2", "ergebnis/composer-normalize": "^2", "johnbillion/plugin-infrastructure": "dev-trunk", - "lucatume/wp-browser": "3.2.1", + "lucatume/wp-browser": "^3.0.21", "phpcompatibility/phpcompatibility-wp": "2.1.4", - "phpstan/phpstan": "1.10.39", - "phpstan/phpstan-phpunit": "1.3.15", - "roots/wordpress-core-installer": "1.100.0", - "roots/wordpress-full": "*", + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "roots/wordpress": "*", "squizlabs/php_codesniffer": "3.7.1", - "szepeviktor/phpstan-wordpress": "1.3.0", + "szepeviktor/phpstan-wordpress": "1.1.6", "wp-coding-standards/wpcs": "2.3.0" }, "autoload": { @@ -68,15 +67,15 @@ "sort-packages": true }, "extra": { - "wordpress-install-dir": "vendor/wordpress/wordpress" + "wordpress-install-dir": "vendor/roots/wordpress" }, "scripts": { "build-vendor": [ "build-vendor" ], "test": [ - "@composer validate --strict --no-check-lock", - "@composer normalize --dry-run", + "composer validate --strict --no-check-lock", + "composer normalize --dry-run", "@test:phpstan", "@test:phpcs", "@test:integration", @@ -84,16 +83,13 @@ ], "test:acceptance": [ "npm run build", - "acceptance-tests" - ], - "test:destroy": [ - "COMPOSE_PROJECT_NAME=query-monitor docker compose down --volumes --remove-orphans" + "bin/acceptance-tests.sh" ], "test:integration": [ "integration-tests" ], "test:phpcs": [ - "phpcs -nps --colors --report-code --report-summary --report-width=80 --cache=tests/cache/phpcs56.json --basepath='./' --standard=phpcs56.xml", + "phpcs -nps --colors --report-code --report-summary --report-width=80 --cache=tests/cache/phpcs.json --basepath='./' --standard=phpcs53.xml", "phpcs -nps --colors --report-code --report-summary --report-width=80 --cache=tests/cache/phpcs.json --basepath='./' ." ], "test:phpstan": [ @@ -101,10 +97,10 @@ "phpstan analyze --memory-limit=1024M" ], "test:start": [ - "COMPOSE_PROJECT_NAME=query-monitor docker compose up -d" + "docker-compose up -d" ], "test:stop": [ - "COMPOSE_PROJECT_NAME=query-monitor docker compose down" + "docker-compose down" ] } } diff --git a/query-monitor/data/assets.php b/query-monitor/data/assets.php index 5cfa9b3400..dc3b248be7 100644 --- a/query-monitor/data/assets.php +++ b/query-monitor/data/assets.php @@ -46,11 +46,6 @@ class QM_Data_Assets extends QM_Data { */ public $header; - /** - * @var string - */ - public $full_host; - /** * @var string */ diff --git a/query-monitor/data/db_queries.php b/query-monitor/data/db_queries.php index 9d5b6e4653..9b0acb8476 100644 --- a/query-monitor/data/db_queries.php +++ b/query-monitor/data/db_queries.php @@ -27,24 +27,9 @@ class QM_Data_DB_Queries extends QM_Data { public $expensive; /** - * @var array> - */ - public $rows; - - /** - * @var bool - */ - public $has_result; - - /** - * @var bool - */ - public $has_trace; - - /** - * @var bool + * @var ?stdClass */ - public $has_main_query; + public $wpdb; /** * @var ?array> diff --git a/query-monitor/data/doing_it_wrong.php b/query-monitor/data/doing_it_wrong.php deleted file mode 100644 index 6f2c694f55..0000000000 --- a/query-monitor/data/doing_it_wrong.php +++ /dev/null @@ -1,19 +0,0 @@ -> - * @phpstan-var array>, - * message: string, - * component: QM_Component, - * }> - */ - public $actions; -} diff --git a/query-monitor/data/environment.php b/query-monitor/data/environment.php index 8742660039..fc5e79c1d8 100644 --- a/query-monitor/data/environment.php +++ b/query-monitor/data/environment.php @@ -46,7 +46,6 @@ class QM_Data_Environment extends QM_Data { * @phpstan-var array{ * version: string, * environment_type?: string, - * development_mode?: string, * constants: array, * }> */ diff --git a/query-monitor/data/http.php b/query-monitor/data/http.php index 18028e9ef6..5c5ded4fda 100644 --- a/query-monitor/data/http.php +++ b/query-monitor/data/http.php @@ -13,11 +13,11 @@ class QM_Data_HTTP extends QM_Data { * component: QM_Component, * filtered_trace: list>, * info: array|null, - * host: string, * local: bool, * ltime: float, * redirected_to: string|null, * response: mixed[]|WP_Error, + * transport: string|null, * type: string, * url: string, * }> diff --git a/query-monitor/dispatchers/Html.php b/query-monitor/dispatchers/Html.php index 17a848a7e9..1b7939984b 100644 --- a/query-monitor/dispatchers/Html.php +++ b/query-monitor/dispatchers/Html.php @@ -237,13 +237,13 @@ public function enqueue_assets() { 'query-monitor', $this->qm->plugin_url( 'assets/query-monitor.css' ), array(), - QM_VERSION + $this->qm->plugin_ver( 'assets/query-monitor.css' ) ); wp_enqueue_script( 'query-monitor', $this->qm->plugin_url( 'assets/query-monitor.js' ), $deps, - QM_VERSION, + $this->qm->plugin_ver( 'assets/query-monitor.js' ), false ); wp_localize_script( @@ -348,7 +348,7 @@ protected function before_output() { require_once $file; } - /** @var array $outputters */ + /** @var QM_Output_Html[] */ $outputters = $this->get_outputters( 'html' ); $this->outputters = $outputters; @@ -561,43 +561,34 @@ protected function after_output() { echo '

' . esc_html__( 'Editor', 'query-monitor' ) . '

'; - if ( ! has_filter( 'qm/output/file_link_format' ) ) { - echo '

' . esc_html__( 'You can set your editor here, so that when you click on stack trace links the file opens in your editor.', 'query-monitor' ) . '

'; - - echo '

'; - echo ''; - echo '

'; - echo ''; - echo '

'; + echo '

'; + echo ''; + echo '

'; + echo ''; + echo '

'; + + $yes = QueryMonitor::icon( 'yes-alt' ); + + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + echo '

' . $yes . ' ' . esc_html__( 'Saved! Reload to apply changes.', 'query-monitor' ) . '

'; echo ''; echo '
'; @@ -725,8 +716,8 @@ protected function after_output() { * * @since 3.1.0 * - * @param QM_Dispatcher_Html $dispatcher The HTML dispatcher instance. - * @param array $outputters Array of outputters. + * @param QM_Dispatcher_Html $dispatcher The HTML dispatcher instance. + * @param QM_Output_Html[] $outputters Array of outputters. */ do_action( 'qm/output/after', $this, $this->outputters ); @@ -868,12 +859,6 @@ public static function request_supported() { return false; } - // Don't dispatch on the interim login screen: - // phpcs:ignore WordPress.Security.NonceVerification.Recommended - if ( ! empty( $_GET['interim-login'] ) ) { - return false; - } - return true; } diff --git a/query-monitor/dispatchers/REST.php b/query-monitor/dispatchers/REST.php index 164fe49d19..695ebdc7c3 100644 --- a/query-monitor/dispatchers/REST.php +++ b/query-monitor/dispatchers/REST.php @@ -16,7 +16,7 @@ class QM_Dispatcher_REST extends QM_Dispatcher { public function __construct( QM_Plugin $qm ) { parent::__construct( $qm ); - add_filter( 'rest_post_dispatch', array( $this, 'filter_rest_post_dispatch' ), 1 ); + add_filter( 'rest_post_dispatch', array( $this, 'filter_rest_post_dispatch' ), 1, 3 ); } @@ -24,9 +24,11 @@ public function __construct( QM_Plugin $qm ) { * Filters a REST API response in order to add QM's headers. * * @param WP_HTTP_Response $result Result to send to the client. Usually a WP_REST_Response. + * @param WP_REST_Server $server Server instance. + * @param WP_REST_Request $request Request used to generate the response. * @return WP_HTTP_Response Result to send to the client. */ - public function filter_rest_post_dispatch( WP_HTTP_Response $result ) { + public function filter_rest_post_dispatch( WP_HTTP_Response $result, WP_REST_Server $server, WP_REST_Request $request ) { if ( ! $this->should_dispatch() ) { return $result; @@ -34,10 +36,8 @@ public function filter_rest_post_dispatch( WP_HTTP_Response $result ) { $this->before_output(); - /** @var array $outputters */ - $outputters = $this->get_outputters( 'headers' ); - - foreach ( $outputters as $output ) { + /* @var QM_Output_Headers[] */ + foreach ( $this->get_outputters( 'headers' ) as $id => $output ) { $output->output(); } diff --git a/query-monitor/dispatchers/REST_Envelope.php b/query-monitor/dispatchers/REST_Envelope.php index de914aa719..92afdd5469 100644 --- a/query-monitor/dispatchers/REST_Envelope.php +++ b/query-monitor/dispatchers/REST_Envelope.php @@ -31,10 +31,8 @@ public function filter_rest_envelope_response( array $envelope, WP_REST_Response $this->before_output(); - /** @var array $outputters */ - $outputters = $this->get_outputters( 'raw' ); - - foreach ( $outputters as $id => $output ) { + /* @var QM_Output_Raw[] */ + foreach ( $this->get_outputters( 'raw' ) as $id => $output ) { $data[ $id ] = $output->get_output(); } diff --git a/query-monitor/dispatchers/Redirect.php b/query-monitor/dispatchers/Redirect.php index 1d0ee14aa5..c3d144df08 100644 --- a/query-monitor/dispatchers/Redirect.php +++ b/query-monitor/dispatchers/Redirect.php @@ -35,10 +35,8 @@ public function filter_wp_redirect( $location, $status ) { $this->before_output(); - /** @var array $outputters */ - $outputters = $this->get_outputters( 'headers' ); - - foreach ( $outputters as $output ) { + /* @var QM_Output_Headers[] */ + foreach ( $this->get_outputters( 'headers' ) as $id => $output ) { $output->output(); } diff --git a/query-monitor/output/Html.php b/query-monitor/output/Html.php index d003846218..1517d170d7 100644 --- a/query-monitor/output/Html.php +++ b/query-monitor/output/Html.php @@ -172,7 +172,6 @@ protected function output_concerns() { echo ''; echo ''; echo '' . esc_html__( 'Hook', 'query-monitor' ) . ''; - echo '' . esc_html__( 'Type', 'query-monitor' ) . ''; echo '' . esc_html__( 'Priority', 'query-monitor' ) . ''; echo '' . esc_html__( 'Callback', 'query-monitor' ) . ''; echo '' . esc_html__( 'Component', 'query-monitor' ) . ''; @@ -186,7 +185,7 @@ protected function output_concerns() { continue; } - QM_Output_Html_Hooks::output_hook_table( $this->collector->$key, true ); + QM_Output_Html_Hooks::output_hook_table( $this->collector->$key ); } echo ''; @@ -561,8 +560,6 @@ public static function get_editor_file_link_format( $editor, $default_format ) { return 'txmt://open/?url=file://%f&line=%l'; case 'netbeans': return 'nbopen://%f:%l'; - case 'nova': - return 'nova://open?path=%f&line=%l'; default: return $default_format; } @@ -611,7 +608,7 @@ public static function get_file_path_map() { * @link https://querymonitor.com/blog/2019/02/clickable-stack-traces-and-function-names-in-query-monitor/ * @since 3.0.0 * - * @param array $file_map Array of file path mappings. Keys are the source paths and values are the replacement paths. + * @param string[] $file_map Array of file path mappings. Keys are the source paths and values are the replacement paths. */ return apply_filters( 'qm/output/file_path_map', array() ); } diff --git a/query-monitor/output/html/assets.php b/query-monitor/output/html/assets.php index 5636edaa53..c0cedb7741 100644 --- a/query-monitor/output/html/assets.php +++ b/query-monitor/output/html/assets.php @@ -69,7 +69,7 @@ public function output() { echo ''; $args = array( 'prepend' => array( - 'local' => $data->full_host, + 'local' => $data->host, ), ); echo $this->build_filter( $type . '-host', $hosts, __( 'Host', 'query-monitor' ), $args ); // WPCS: XSS ok. diff --git a/query-monitor/output/html/db_callers.php b/query-monitor/output/html/db_callers.php index c03751b2ed..1461d0b260 100644 --- a/query-monitor/output/html/db_callers.php +++ b/query-monitor/output/html/db_callers.php @@ -50,7 +50,7 @@ public function output() { echo ''; echo '' . esc_html__( 'Caller', 'query-monitor' ) . ''; - foreach ( array_keys( $data->types ) as $type_name ) { + foreach ( $data->types as $type_name => $type_count ) { echo ''; echo $this->build_sorter( $type_name ); // WPCS: XSS ok; echo ''; @@ -73,7 +73,7 @@ public function output() { echo self::build_filter_trigger( 'db_queries', 'caller', $row['caller'], '' . esc_html( $row['caller'] ) . '' ); // WPCS: XSS ok; echo ''; - foreach ( array_keys( $data->types ) as $type_name ) { + foreach ( $data->types as $type_name => $type_count ) { if ( isset( $row['types'][ $type_name ] ) ) { echo "" . esc_html( number_format_i18n( $row['types'][ $type_name ] ) ) . ''; } else { diff --git a/query-monitor/output/html/db_queries.php b/query-monitor/output/html/db_queries.php index fe9115fa5d..dc0f952410 100644 --- a/query-monitor/output/html/db_queries.php +++ b/query-monitor/output/html/db_queries.php @@ -45,7 +45,7 @@ public function output() { /** @var QM_Data_DB_Queries $data */ $data = $this->collector->get_data(); - if ( empty( $data->rows ) ) { + if ( empty( $data->wpdb ) ) { $this->output_empty_queries(); return; } @@ -58,7 +58,7 @@ public function output() { $this->output_expensive_queries( $data->expensive ); } - $this->output_queries( $data ); + $this->output_queries( $data->wpdb, $data ); } /** @@ -151,149 +151,159 @@ protected function output_expensive_queries( array $expensive ) { } /** + * @param stdClass $db * @param QM_Data_DB_Queries $data * @return void */ - protected function output_queries( QM_Data_DB_Queries $data ) { + protected function output_queries( stdClass $db, QM_Data_DB_Queries $data ) { $this->query_row = 0; $span = 4; - if ( $data->has_result ) { + if ( $db->has_result ) { $span++; } - if ( $data->has_trace ) { + if ( $db->has_trace ) { $span++; } - $this->before_tabular_output(); + if ( ! empty( $db->rows ) ) { + $this->before_tabular_output(); - echo ''; + echo ''; - /** - * Filter whether to show the QM extended query information prompt. - * - * By default QM shows a prompt to install the QM db.php drop-in, - * this filter allows a dev to choose not to show the prompt. - * - * @since 2.9.0 - * - * @param bool $show_prompt Whether to show the prompt. - */ - if ( apply_filters( 'qm/show_extended_query_prompt', true ) && ! $data->has_trace ) { - echo ''; - // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - echo '' . QueryMonitor::icon( 'warning' ); - if ( file_exists( WP_CONTENT_DIR . '/db.php' ) ) { - /* translators: %s: File name */ - $message = __( 'Extended query information such as the component and affected rows is not available. A conflicting %s file is present.', 'query-monitor' ); - } elseif ( defined( 'QM_DB_SYMLINK' ) && ! QM_DB_SYMLINK ) { - /* translators: 1: File name, 2: Configuration constant name */ - $message = __( 'Extended query information such as the component and affected rows is not available. Query Monitor was prevented from symlinking its %1$s file into place by the %2$s constant.', 'query-monitor' ); - } else { - /* translators: %s: File name */ - $message = __( 'Extended query information such as the component and affected rows is not available. Query Monitor was unable to symlink its %s file into place.', 'query-monitor' ); - } - printf( - esc_html( $message ), - 'db.php', - 'QM_DB_SYMLINK' - ); + /** + * Filter whether to show the QM extended query information prompt. + * + * By default QM shows a prompt to install the QM db.php drop-in, + * this filter allows a dev to choose not to show the prompt. + * + * @since 2.9.0 + * + * @param bool $show_prompt Whether to show the prompt. + */ + if ( apply_filters( 'qm/show_extended_query_prompt', true ) && ! $db->has_trace ) { + echo ''; + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + echo '' . QueryMonitor::icon( 'warning' ); + if ( file_exists( WP_CONTENT_DIR . '/db.php' ) ) { + /* translators: %s: File name */ + $message = __( 'Extended query information such as the component and affected rows is not available. A conflicting %s file is present.', 'query-monitor' ); + } elseif ( defined( 'QM_DB_SYMLINK' ) && ! QM_DB_SYMLINK ) { + /* translators: 1: File name, 2: Configuration constant name */ + $message = __( 'Extended query information such as the component and affected rows is not available. Query Monitor was prevented from symlinking its %1$s file into place by the %2$s constant.', 'query-monitor' ); + } else { + /* translators: %s: File name */ + $message = __( 'Extended query information such as the component and affected rows is not available. Query Monitor was unable to symlink its %s file into place.', 'query-monitor' ); + } + printf( + esc_html( $message ), + 'db.php', + 'QM_DB_SYMLINK' + ); - printf( - ' See this wiki page for more information.', - 'https://github.com/johnbillion/query-monitor/wiki/db.php-Symlink' - ); - echo ''; - echo ''; - } + printf( + ' See this wiki page for more information.', + 'https://github.com/johnbillion/query-monitor/wiki/db.php-Symlink' + ); + echo ''; + echo ''; + } - $types = array_keys( $data->types ); - $prepend = array(); - $callers = array_column( $data->times, 'caller' ); + $types = array_keys( $db->types ); + $prepend = array(); + $callers = array_column( $data->times, 'caller' ); - sort( $types ); - usort( $callers, 'strcasecmp' ); + sort( $types ); + usort( $callers, 'strcasecmp' ); - if ( count( $types ) > 1 ) { - $prepend['non-select'] = __( 'Non-SELECT', 'query-monitor' ); - } + if ( count( $types ) > 1 ) { + $prepend['non-select'] = __( 'Non-SELECT', 'query-monitor' ); + } - $args = array( - 'prepend' => $prepend, - ); + $args = array( + 'prepend' => $prepend, + ); - echo ''; - echo ''; - echo $this->build_sorter( '#' ); // WPCS: XSS ok; - echo ''; - echo ''; - echo $this->build_filter( 'type', $types, __( 'Query', 'query-monitor' ), $args ); // WPCS: XSS ok; - echo ''; - echo ''; + echo ''; + echo ''; + echo $this->build_sorter( '#' ); // WPCS: XSS ok; + echo ''; + echo ''; + echo $this->build_filter( 'type', $types, __( 'Query', 'query-monitor' ), $args ); // WPCS: XSS ok; + echo ''; + echo ''; - $prepend = array(); + $prepend = array(); - if ( $data->has_main_query ) { - $prepend['qm-main-query'] = __( 'Main Query', 'query-monitor' ); - } + if ( $db->has_main_query ) { + $prepend['qm-main-query'] = __( 'Main Query', 'query-monitor' ); + } - $args = array( - 'prepend' => $prepend, - ); - echo $this->build_filter( 'caller', $callers, __( 'Caller', 'query-monitor' ), $args ); // WPCS: XSS ok. - echo ''; + $args = array( + 'prepend' => $prepend, + ); + echo $this->build_filter( 'caller', $callers, __( 'Caller', 'query-monitor' ), $args ); // WPCS: XSS ok. + echo ''; - if ( $data->has_trace ) { - $components = array_column( $data->component_times, 'component' ); + if ( $db->has_trace ) { + $components = array_column( $data->component_times, 'component' ); - usort( $components, 'strcasecmp' ); + usort( $components, 'strcasecmp' ); - echo ''; - echo $this->build_filter( 'component', $components, __( 'Component', 'query-monitor' ) ); // WPCS: XSS ok. - echo ''; - } + echo ''; + echo $this->build_filter( 'component', $components, __( 'Component', 'query-monitor' ) ); // WPCS: XSS ok. + echo ''; + } - if ( $data->has_result ) { - if ( empty( $data->errors ) ) { - $class = 'qm-num'; - } else { - $class = ''; + if ( $db->has_result ) { + if ( empty( $data->errors ) ) { + $class = 'qm-num'; + } else { + $class = ''; + } + echo ''; + echo $this->build_sorter( __( 'Rows', 'query-monitor' ) ); // WPCS: XSS ok. + echo ''; } - echo ''; - echo $this->build_sorter( __( 'Rows', 'query-monitor' ) ); // WPCS: XSS ok. + + echo ''; + echo $this->build_sorter( __( 'Time', 'query-monitor' ) ); // WPCS: XSS ok. echo ''; - } + echo ''; + echo ''; - echo ''; - echo $this->build_sorter( __( 'Time', 'query-monitor' ) ); // WPCS: XSS ok. - echo ''; - echo ''; - echo ''; + echo ''; - echo ''; + foreach ( $db->rows as $row ) { + $this->output_query_row( $row, array( 'row', 'sql', 'caller', 'component', 'result', 'time' ) ); + } - foreach ( $data->rows as $row ) { - $this->output_query_row( $row, array( 'row', 'sql', 'caller', 'component', 'result', 'time' ) ); - } + echo ''; + echo ''; - echo ''; - echo ''; + $total_stime = number_format_i18n( $db->total_time, 4 ); - $total_stime = number_format_i18n( $data->total_time, 4 ); + echo ''; + echo ''; + printf( + /* translators: %s: Number of database queries */ + esc_html( _nx( 'Total: %s', 'Total: %s', $db->total_qs, 'Query count', 'query-monitor' ) ), + '' . esc_html( number_format_i18n( $db->total_qs ) ) . '' + ); + echo ''; + echo '' . esc_html( $total_stime ) . ''; + echo ''; + echo ''; - echo ''; - echo ''; - printf( - /* translators: %s: Number of database queries */ - esc_html( _nx( 'Total: %s', 'Total: %s', $data->total_qs, 'Query count', 'query-monitor' ) ), - '' . esc_html( number_format_i18n( $data->total_qs ) ) . '' - ); - echo ''; - echo '' . esc_html( $total_stime ) . ''; - echo ''; - echo ''; + $this->after_tabular_output(); + } else { + $this->before_non_tabular_output(); - $this->after_tabular_output(); + $notice = __( 'No queries! Nice work.', 'query-monitor' ); + echo $this->build_notice( $notice ); // WPCS: XSS ok. + + $this->after_non_tabular_output(); + } } /** @@ -481,15 +491,15 @@ public function admin_title( array $title ) { /** @var QM_Data_DB_Queries $data */ $data = $this->collector->get_data(); - if ( isset( $data->rows ) ) { + if ( isset( $data->wpdb ) ) { $title[] = sprintf( /* translators: %s: A time in seconds with a decimal fraction. No space between value and unit symbol. */ esc_html_x( '%ss', 'Time in seconds', 'query-monitor' ), - number_format_i18n( $data->total_time, 2 ) + number_format_i18n( $data->wpdb->total_time, 2 ) ); /* translators: %s: Number of database queries. Note the space between value and unit symbol. */ - $text = _n( '%s Q', '%s Q', $data->total_qs, 'query-monitor' ); + $text = _n( '%s Q', '%s Q', $data->wpdb->total_qs, 'query-monitor' ); // Avoid a potentially blank translation for the plural form. // @see https://meta.trac.wordpress.org/ticket/5377 @@ -499,7 +509,7 @@ public function admin_title( array $title ) { $title[] = preg_replace( '#\s?([^0-9,\.]+)#', '$1', sprintf( esc_html( $text ), - number_format_i18n( $data->total_qs ) + number_format_i18n( $data->wpdb->total_qs ) ) ); } elseif ( isset( $data->total_qs ) ) { /* translators: %s: Number of database queries. Note the space between value and unit symbol. */ diff --git a/query-monitor/output/html/doing_it_wrong.php b/query-monitor/output/html/doing_it_wrong.php deleted file mode 100644 index 0b1e0589de..0000000000 --- a/query-monitor/output/html/doing_it_wrong.php +++ /dev/null @@ -1,194 +0,0 @@ - - */ - public function get_type_labels() { - return array( - /* translators: %s: Total number of Doing it Wrong occurrences */ - 'total' => _x( 'Total: %s', 'Doing it Wrong', 'query-monitor' ), - 'plural' => __( 'Doing it Wrong occurrences', 'query-monitor' ), - /* translators: %s: Total number of Doing it Wrong occurrences */ - 'count' => _x( 'Doing it Wrong (%s)', 'Doing it Wrong', 'query-monitor' ), - ); - } - - /** - * @return void - */ - public function output() { - /** @var QM_Data_Doing_It_Wrong $data */ - $data = $this->collector->get_data(); - - if ( empty( $data->actions ) ) { - $this->before_non_tabular_output(); - - $notice = __( 'No occurrences.', 'query-monitor' ); - echo $this->build_notice( $notice ); // WPCS: XSS ok. - - $this->after_non_tabular_output(); - - return; - } - - $this->before_tabular_output(); - - echo ''; - echo ''; - echo '' . esc_html__( 'Message', 'query-monitor' ) . ''; - echo '' . esc_html__( 'Caller', 'query-monitor' ) . ''; - echo '' . esc_html__( 'Component', 'query-monitor' ) . ''; - echo ''; - echo ''; - - echo ''; - - foreach ( $data->actions as $row ) { - $stack = array(); - - foreach ( $row['filtered_trace'] as $frame ) { - $stack[] = self::output_filename( $frame['display'], $frame['calling_file'], $frame['calling_line'] ); - } - - $caller = array_shift( $stack ); - - echo ''; - - printf( '%s', esc_html( wp_strip_all_tags( $row['message'] ) ) ); - - echo ''; - - if ( ! empty( $stack ) ) { - echo self::build_toggler(); // WPCS: XSS ok; - } - - echo '
    '; - - echo "
  1. {$caller}
  2. "; // WPCS: XSS ok. - - if ( ! empty( $stack ) ) { - echo '
  3. ' . implode( '
  4. ', $stack ) . '
  5. '; // WPCS: XSS ok. - } - - echo '
'; - - echo '' . esc_html( $row['component']->name ) . ''; - - echo ''; - } - - echo ''; - - echo ''; - printf( - '%s', - sprintf( - /* translators: %s: Total number of Doing it Wrong occurrences */ - esc_html_x( 'Total: %s', 'Total Doing it Wrong occurrences', 'query-monitor' ), - '' . esc_html( number_format_i18n( count( $data->actions ) ) ) . '' - ) - ); - echo ''; - - $this->after_tabular_output(); - - } - - /** - * @param array $class - * @return array - */ - public function admin_class( array $class ) { - /** @var QM_Data_Doing_It_Wrong */ - $data = $this->collector->get_data(); - - if ( ! empty( $data->actions ) ) { - $class[] = 'qm-notice'; - } - - return $class; - - } - - /** - * @param array $menu - * @return array - */ - public function admin_menu( array $menu ) { - /** @var QM_Data_Doing_It_Wrong */ - $data = $this->collector->get_data(); - - if ( empty( $data->actions ) ) { - return $menu; - } - - $type_label = $this->get_type_labels(); - $label = sprintf( - $type_label['count'], - number_format_i18n( count( $data->actions ) ) - ); - - $args = array( - 'title' => esc_html( $label ), - 'id' => esc_attr( "query-monitor-{$this->collector->id}" ), - 'href' => esc_attr( '#' . $this->collector->id() ), - ); - - if ( ! empty( $data->actions ) ) { - $args['meta']['classname'] = 'qm-notice'; - } - - $id = $this->collector->id(); - $menu[ $id ] = $this->menu( $args ); - - return $menu; - - } - -} - -/** - * @param array $output - * @param QM_Collectors $collectors - * @return array - */ -function register_qm_output_html_doing_it_wrong( array $output, QM_Collectors $collectors ) { - $collector = QM_Collectors::get( 'doing_it_wrong' ); - if ( $collector ) { - $output['doing_it_wrong'] = new QM_Output_Html_Doing_It_Wrong( $collector ); - } - return $output; -} - -add_filter( 'qm/outputter/html', 'register_qm_output_html_doing_it_wrong', 110, 2 ); diff --git a/query-monitor/output/html/environment.php b/query-monitor/output/html/environment.php index 76d4a06481..1a339319de 100644 --- a/query-monitor/output/html/environment.php +++ b/query-monitor/output/html/environment.php @@ -235,26 +235,6 @@ public function output() { echo ''; } - if ( isset( $data->wp['development_mode'] ) ) { - $mode = $data->wp['development_mode']; - - if ( '' === $mode ) { - $mode = __( 'empty string', 'query-monitor' ); - } - - echo ''; - echo ''; - esc_html_e( 'Development Mode', 'query-monitor' ); - printf( - ' (%s)', - 'https://core.trac.wordpress.org/changeset/56042', - esc_html__( 'Help', 'query-monitor' ) - ); - echo ''; - echo '' . esc_html( $mode ) . ''; - echo ''; - } - foreach ( $data->wp['constants'] as $key => $val ) { echo ''; diff --git a/query-monitor/output/html/hooks.php b/query-monitor/output/html/hooks.php index 89fa40e6d3..769c69e616 100644 --- a/query-monitor/output/html/hooks.php +++ b/query-monitor/output/html/hooks.php @@ -27,16 +27,7 @@ public function __construct( QM_Collector $collector ) { * @return string */ public function name() { - /** @var QM_Data_Hooks */ - $data = $this->collector->get_data(); - - $name = __( 'Hooks & Actions', 'query-monitor' ); - - if ( $data->all_hooks ) { - $name = __( 'Hooks, Actions, & Filters', 'query-monitor' ); - } - - return $name; + return __( 'Hooks & Actions', 'query-monitor' ); } /** @@ -52,23 +43,13 @@ public function output() { $this->before_tabular_output(); - $callback_label = __( 'Action', 'query-monitor' ); - $th_type = ''; - - if ( $data->all_hooks ) { - $callback_label = __( 'Callback', 'query-monitor' ); - $th_type = '' . $this->build_filter( 'type', array( - 'action' => __( 'Action', 'query-monitor' ), - 'filter' => __( 'Filter', 'query-monitor' ), - ), __( 'Type', 'query-monitor' ) ) . ''; - } + $callback_label = $data->all_hooks ? __( 'Callback', 'query-monitor' ) : __( 'Action', 'query-monitor' ); echo ''; echo ''; echo ''; echo $this->build_filter( 'name', $data->parts, __( 'Hook', 'query-monitor' ) ); // WPCS: XSS ok. echo ''; - echo $th_type; // WPCS: XSS ok. echo '' . esc_html__( 'Priority', 'query-monitor' ) . ''; echo '' . esc_html( $callback_label ) . ''; echo ''; @@ -80,7 +61,7 @@ public function output() { echo ''; echo ''; - self::output_hook_table( $data->hooks, $data->all_hooks ); + self::output_hook_table( $data->hooks ); echo ''; $this->after_tabular_output(); @@ -88,17 +69,15 @@ public function output() { /** * @param array $hooks - * @param bool $all_hooks * @return void */ - public static function output_hook_table( array $hooks, bool $all_hooks ) { + public static function output_hook_table( array $hooks ) { $core = __( 'WordPress Core', 'query-monitor' ); foreach ( $hooks as $hook ) { $row_attr = array(); $row_attr['data-qm-name'] = implode( ' ', $hook['parts'] ); $row_attr['data-qm-component'] = implode( ' ', $hook['components'] ); - $row_attr['data-qm-type'] = $hook['type']; if ( ! empty( $row_attr['data-qm-component'] ) && $core !== $row_attr['data-qm-component'] ) { $row_attr['data-qm-component'] .= ' non-core'; @@ -155,10 +134,6 @@ public static function output_hook_table( array $hooks, bool $all_hooks ) { } echo ''; - if ( $all_hooks ) { - $type = ( 'action' === $hook['type'] ) ? __( 'Action', 'query-monitor' ) : __( 'Filter', 'query-monitor' ); - echo '' . esc_html( $type ) . ''; - } } if ( isset( $action['callback']['error'] ) ) { @@ -226,11 +201,6 @@ public static function output_hook_table( array $hooks, bool $all_hooks ) { echo ''; echo ''; echo ''; - - if ( $all_hooks ) { - echo ''; - } - echo ''; } } diff --git a/query-monitor/output/html/http.php b/query-monitor/output/html/http.php index 8da2990ac4..509f4f7144 100644 --- a/query-monitor/output/html/http.php +++ b/query-monitor/output/html/http.php @@ -46,8 +46,6 @@ public function output() { usort( $components, 'strcasecmp' ); $status_output = array(); - $hosts = array_unique( array_column( $data->http, 'host' ) ); - sort( $hosts ); foreach ( $statuses as $status ) { if ( 'error' === $status ) { @@ -65,9 +63,7 @@ public function output() { echo ''; echo ''; echo '' . esc_html__( 'Method', 'query-monitor' ) . ''; - echo ''; - echo $this->build_filter( 'host', $hosts, __( 'URL', 'query-monitor' ) ); // WPCS: XSS ok. - echo ''; + echo '' . esc_html__( 'URL', 'query-monitor' ) . ''; echo ''; echo $this->build_filter( 'type', $status_output, __( 'Status', 'query-monitor' ) ); // WPCS: XSS ok. echo ''; @@ -143,7 +139,6 @@ public function output() { $row_attr['data-qm-component'] = $component->name; $row_attr['data-qm-type'] = $row['type']; $row_attr['data-qm-time'] = $row['ltime']; - $row_attr['data-qm-host'] = $row['host']; if ( 'core' !== $component->context ) { $row_attr['data-qm-component'] .= ' non-core'; @@ -180,7 +175,7 @@ public function output() { $url ); - $show_toggle = ! empty( $row['info'] ); + $show_toggle = ( ! empty( $row['transport'] ) && ! empty( $row['info'] ) ); echo ''; if ( $is_error ) { @@ -194,6 +189,18 @@ public function output() { echo '
    '; } + if ( ! empty( $row['transport'] ) ) { + $transport = sprintf( + /* translators: %s HTTP API transport name */ + __( 'HTTP API Transport: %s', 'query-monitor' ), + $row['transport'] + ); + printf( + '
  • %s
  • ', + esc_html( $transport ) + ); + } + if ( ! empty( $row['info'] ) ) { $time_fields = array( 'namelookup_time' => __( 'DNS Resolution Time', 'query-monitor' ), diff --git a/query-monitor/output/html/php_errors.php b/query-monitor/output/html/php_errors.php index 5d644fccf0..f119d54685 100644 --- a/query-monitor/output/html/php_errors.php +++ b/query-monitor/output/html/php_errors.php @@ -50,7 +50,6 @@ public function output() { 'Deprecated', ); $components = $data->components; - $count = 0; usort( $components, 'strcasecmp' ); @@ -62,8 +61,8 @@ public function output() { echo $this->build_filter( 'type', $levels, __( 'Level', 'query-monitor' ) ); // WPCS: XSS ok. echo ''; echo '' . esc_html__( 'Message', 'query-monitor' ) . ''; - echo '' . esc_html__( 'Location', 'query-monitor' ) . ''; echo '' . esc_html__( 'Count', 'query-monitor' ) . ''; + echo '' . esc_html__( 'Location', 'query-monitor' ) . ''; echo ''; echo $this->build_filter( 'component', $components, __( 'Component', 'query-monitor' ) ); // WPCS: XSS ok. echo ''; @@ -80,12 +79,10 @@ public function output() { } foreach ( $data->{$error_group}[ $type ] as $error_key => $error ) { - $count += $error['calls']; $row_attr = array(); $row_attr['data-qm-type'] = ucfirst( $type ); $row_attr['data-qm-key'] = $error_key; - $row_attr['data-qm-count'] = $error['calls']; if ( $error['component'] ) { $component = $error['component']; @@ -125,6 +122,7 @@ public function output() { echo ''; echo '' . esc_html( $error['message'] ) . ''; + echo '' . esc_html( number_format_i18n( $error['calls'] ) ) . ''; $stack = array(); @@ -162,7 +160,6 @@ public function output() { } echo ''; - echo '' . esc_html( number_format_i18n( $error['calls'] ) ) . ''; if ( ! empty( $component ) ) { echo '' . esc_html( $component->name ) . ''; @@ -177,18 +174,6 @@ public function output() { echo ''; - echo ''; - echo ''; - echo ''; - printf( - /* translators: %s: Number of PHP errors */ - esc_html( _nx( 'Total: %s', 'Total: %s', $count, 'PHP error count', 'query-monitor' ) ), - '' . esc_html( number_format_i18n( $count ) ) . '' - ); - echo ''; - echo ''; - echo ''; - $this->after_tabular_output(); } diff --git a/query-monitor/output/html/request.php b/query-monitor/output/html/request.php index 5007b2d7e2..3bb8eae40f 100644 --- a/query-monitor/output/html/request.php +++ b/query-monitor/output/html/request.php @@ -102,7 +102,7 @@ public function output() { if ( $db_queries ) { $db_queries_data = $db_queries->get_data(); - if ( $db_queries_data->has_main_query ) { + if ( ! empty( $db_queries_data->wpdb->has_main_query ) ) { echo '

    '; echo self::build_filter_trigger( 'db_queries', 'caller', 'qm-main-query', esc_html__( 'View Main Query', 'query-monitor' ) ); // WPCS: XSS ok; echo '

    '; diff --git a/query-monitor/output/html/theme.php b/query-monitor/output/html/theme.php index 9e3f3a5789..508b02b725 100644 --- a/query-monitor/output/html/theme.php +++ b/query-monitor/output/html/theme.php @@ -48,32 +48,36 @@ public function output() { echo '

    ' . esc_html__( 'Theme', 'query-monitor' ) . '

    '; echo '

    ' . esc_html( $data->stylesheet ) . '

    '; - echo '

    '; - // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - echo self::output_filename( 'style.css', sprintf( '%s/style.css', $data->theme_dirs[ $data->stylesheet ] ), 0, true ); - echo '

    '; - - if ( $data->stylesheet_theme_json ) { + if ( self::has_clickable_links() ) { echo '

    '; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - echo self::output_filename( 'theme.json', $data->stylesheet_theme_json, 0, true ); + echo self::output_filename( 'style.css', sprintf( '%s/style.css', $data->theme_dirs[ $data->stylesheet ] ), 0, true ); echo '

    '; + + if ( $data->stylesheet_theme_json ) { + echo '

    '; + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + echo self::output_filename( 'theme.json', $data->stylesheet_theme_json, 0, true ); + echo '

    '; + } } if ( $data->is_child_theme ) { echo '

    ' . esc_html__( 'Parent Theme', 'query-monitor' ) . '

    '; echo '

    ' . esc_html( $data->template ) . '

    '; - echo '

    '; - // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - echo self::output_filename( 'style.css', sprintf( '%s/style.css', $data->theme_dirs[ $data->template ] ), 0, true ); - echo '

    '; - - if ( $data->template_theme_json ) { + if ( self::has_clickable_links() ) { echo '

    '; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - echo self::output_filename( 'theme.json', $data->template_theme_json, 0, true ); + echo self::output_filename( 'style.css', sprintf( '%s/style.css', $data->theme_dirs[ $data->template ] ), 0, true ); echo '

    '; + + if ( $data->template_theme_json ) { + echo '

    '; + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + echo self::output_filename( 'theme.json', $data->template_theme_json, 0, true ); + echo '

    '; + } } } diff --git a/query-monitor/output/raw/db_queries.php b/query-monitor/output/raw/db_queries.php index 621bc78644..e8cd1b6f33 100644 --- a/query-monitor/output/raw/db_queries.php +++ b/query-monitor/output/raw/db_queries.php @@ -28,33 +28,17 @@ public function name() { /** * @return array - * @phpstan-return array{ - * total: int, - * time: float, - * queries: mixed[], - * errors?: array{ - * total: int, - * errors: array>, - * }, - * dupes?: array{ - * total: int, - * queries: array, - * }, - * }|array{} */ public function get_output() { + $output = array(); /** @var QM_Data_DB_Queries $data */ $data = $this->collector->get_data(); - if ( empty( $data->rows ) ) { - return array(); + if ( empty( $data->wpdb ) ) { + return $output; } - $output = array( - 'total' => $data->total_qs, - 'time' => round( $data->total_time, 4 ), - 'queries' => array_map( array( $this, 'output_query_row' ), $data->rows ), - ); + $output['wpdb'] = $this->output_queries( $data->wpdb ); if ( ! empty( $data->errors ) ) { $output['errors'] = array( @@ -81,6 +65,35 @@ public function get_output() { return $output; } + /** + * @param stdClass $db + * @return array + * @phpstan-return array{ + * total: int, + * time: float, + * queries: mixed[], + * }|array{} + */ + protected function output_queries( stdClass $db ) { + $this->query_row = 0; + + $output = array(); + + if ( empty( $db->rows ) ) { + return $output; + } + + foreach ( $db->rows as $row ) { + $output[] = $this->output_query_row( $row ); + } + + return array( + 'total' => $db->total_qs, + 'time' => round( $db->total_time, 4 ), + 'queries' => $output, + ); + } + /** * @param array $row * @return array diff --git a/query-monitor/query-monitor.php b/query-monitor/query-monitor.php index 6e325de8d3..80f0004402 100644 --- a/query-monitor/query-monitor.php +++ b/query-monitor/query-monitor.php @@ -10,13 +10,13 @@ * * Plugin Name: Query Monitor * Description: The developer tools panel for WordPress. - * Version: 3.15.0 + * Version: 3.12.1 * Plugin URI: https://querymonitor.com/ * Author: John Blackbourn * Author URI: https://querymonitor.com/ * Text Domain: query-monitor * Domain Path: /languages/ - * Requires PHP: 7.4 + * Requires PHP: 7.2 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -33,7 +33,7 @@ exit; } -define( 'QM_VERSION', '3.15.0' ); +define( 'QM_VERSION', '3.12.1' ); $qm_dir = dirname( __FILE__ ); @@ -77,17 +77,6 @@ return; } -# Don't load QM during plugin updates to prevent function signature changes causing issues between versions. -if ( is_admin() ) { - if ( isset( $_GET['action'] ) && 'upgrade-plugin' === $_GET['action'] ) { - return; - } - - if ( isset( $_POST['action'] ) && 'update-plugin' === $_POST['action'] ) { - return; - } -} - unset( $qm_dir ); QueryMonitor::init( __FILE__ )->set_up(); diff --git a/query-monitor/readme.txt b/query-monitor/readme.txt index aa8598ea77..ac1395ef2b 100644 --- a/query-monitor/readme.txt +++ b/query-monitor/readme.txt @@ -1,11 +1,11 @@ # Query Monitor Contributors: johnbillion Tags: debug, debug-bar, development, performance, query monitor, rest-api -Requires at least: 5.6 -Tested up to: 6.4 -Stable tag: 3.15.0 +Requires at least: 5.2 +Tested up to: 6.2 +Stable tag: 3.12.1 License: GPLv2 or later -Requires PHP: 7.4 +Requires PHP: 7.2 Donate link: https://github.com/sponsors/johnbillion Query Monitor is the developer tools panel for WordPress. @@ -18,8 +18,6 @@ It includes some advanced features such as debugging of Ajax calls, REST API cal Query Monitor focuses heavily on presenting its information in a useful manner, for example by showing aggregate database queries grouped by the plugins, themes, or functions that are responsible for them. It adds an admin toolbar menu showing an overview of the current page, with complete debugging information shown in panels once you select a menu item. -Query Monitor supports versions of WordPress up to three years old, and PHP version 7.4 or higher. - For complete information, please see [the Query Monitor website](https://querymonitor.com/). Here's an overview of what's shown for each page load: @@ -27,7 +25,6 @@ Here's an overview of what's shown for each page load: * Database queries, including notifications for slow, duplicate, or erroneous queries. Allows filtering by query type (`SELECT`, `UPDATE`, `DELETE`, etc), responsible component (plugin, theme, WordPress core), and calling function, and provides separate aggregate views for each. * The template filename, the complete template hierarchy, and names of all template parts that were loaded or not loaded (for block themes and classic themes). * PHP errors presented nicely along with their responsible component and call stack, and a visible warning in the admin toolbar. -* Usage of "Doing it Wrong" or "Deprecated" functionality in the code on your site. * Blocks and associated properties within post content and within full site editing (FSE). * Matched rewrite rules, associated query strings, and query vars. * Enqueued scripts and stylesheets, along with their dependencies, dependents, and alerts for broken dependencies. @@ -37,7 +34,6 @@ Here's an overview of what's shown for each page load: * Environment information, including detailed information about PHP, the database, WordPress, and the web server. * The values of all WordPress conditional functions such as `is_single()`, `is_home()`, etc. * Transients that were updated. -* Usage of `switch_to_blog()` and `restore_current_blog()` on Multisite installations. In addition: @@ -124,9 +120,11 @@ Please use [the issue tracker on Query Monitor's GitHub repo](https://github.com Yes, the [Altis Developer Tools](https://www.altis-dxp.com/resources/developer-docs/dev-tools/) are built on top of Query Monitor. -### Is Query Monitor available on WordPress VIP? +### Is Query Monitor available on WordPress.com VIP Go? + +Yes, it's included as part of the VIP Go platform. However, a user needs to be granted the `view_query_monitor` capability to see Query Monitor even if they're an administrator. -Yes, but a user needs to be granted the `view_query_monitor` capability to see Query Monitor even if they're an administrator. [See the WordPress VIP documentation for more details](https://docs.wpvip.com/how-tos/enable-query-monitor/). +Please note that information about database queries and the environment is somewhat restricted on VIP. This is a platform restriction and not a Query Monitor issue. ### I'm using multiple instances of `wpdb`. How do I get my additional instances to show up in Query Monitor? @@ -142,240 +140,4 @@ Yes. You can enable this on the Settings panel. In addition, if you like the plugin then I'd love for you to [leave a review](https://wordpress.org/support/view/plugin-reviews/query-monitor). Tell all your friends about it too! -## Changelog ## - -### 3.15.0 (10 November 2023) ### - -* Adds [a new assertion feature via the `qm/assert` action](https://querymonitor.com/wordpress-debugging/assertions/) -* Confirms the plugin is tested up to WordPress 6.4 - - -### 3.14.1 (21 October 2023) ### - -* Improves compatibility with WordPress Playground - -### 3.14.0 (18 October 2023) ### - -* Corrects the port number handling when displaying URLs for scripts and styles -* Improves the `db.php` handling when activating and deactivating Query Monitor on a single site within a Multisite network, and when `DISALLOW_FILE_MODS` is in use -* Improves check for Debug Bar existence -* Identifies drop-in plugins as a specific component instead of "other" -* Simplifies some of the data structure used when logging queries -* Specifies that Query Monitor supports WordPress versions up to three years old - - -### 3.13.1 (15 July 2023) ### - -* Avoids a fatal error if a deprecated warning is triggered early on during the bootstrap process -* Avoids a PHP warning that can be triggered during certain HTTP API requests when Curl is not in use -* Skips loading QM during the plugin update process - -### 3.13.0 (9 July 2023) ### - -* Adds a dedicated panel for "Doing it Wrong" and deprecated functionality usage -* Allows data in the HTTP API requests panel to be filtered by host name -* Adds a "Type" column wherever a list of hooks can show both actions and filters -* Improves various aspects of the "Editor" setting -* Increases the minimum supported version of PHP to 7.4 -* Many thanks to @crstauf for the majority of the new features in this release - -### 3.12.3 (17 May 2023) ### - -* Improves theme template part data collection when the Gutenberg plugin is in use with a block theme -* Skips attempting to resolve a block template if the theme doesn't support block templates -* Removes the fallback to `$EZSQL_ERROR` for database query errors as it's not possible to determine if the error should be ignored - -### 3.12.2 (27 April 2023) ### - -* Adds the total count to the table footer of the PHP Errors panel -* Improves the destination URL for links that point to the site editor -* Implements some minor visual improvements -* Removes unreliable information about the transport for HTTP API requests -* Removes Query Monitor output from the interim login modal - -### 3.12.1 (24 March 2023) ### - -* Corrects some inter-panel links that point to the Queries panel and sub-panels -* Switches to `sessionStorage` for the selected table column filters so they don't persist across tabs or sessions -* Removes the "Debug Bar:" prefix on the menus for panels inherited from the Debug Bar plugin - - -### 3.12.0 (16 March 2023) ### - -* Clarifies and improves information in the Template panel when a block theme or full site editing (FSE) is in use -* Avoids PHP warnings if a third party plugin makes unexpected changes to language file paths -* Implements some minor performance improvements -* Removes misleading information about WordPress memory limits -* Removes support for multiple instances of `wpdb` (see the FAQ for more information) - -### 3.11.2 (23 February 2023) ### - -* Implements various accessibility improvements -* Fixes an issue where not all admin area footer scripts were shown in the Scripts panel -* Improves output when the SQLite feature in the Performance Labs plugin is in use -* Removes QM output altogether from the Customizer -* Ensures `wp-content/db.php` from another plugin doesn't get removed when deactivating QM - - -### 3.11.1 (3 January 2023) ### - -* Avoids a fatal error in PHP 8 when `posix_getpwuid()` or `posix_getgrgid()` doesn't return an expected value. - -### 3.11.0 (30 December 2022) ### - -* Adds a new "Multisite" panel that shows usage of `switch_to_blog()` and `restore_current_blog()` on Multisite installations -* Improves the output shown for blocks and template parts when block themes or full site editing is in use -* Introduces new `QM_Data` and `QM_Component` classes to make the data collection more structured and reliable -* Increases the minimum supported version of PHP to 7.2 -* Improves the performance of SVG icons -* Removes the ability to completely hide silenced PHP errors -* Avoids some deprecated notices in PHP 8.2 -* Improves the performance of the PHP class autoloader - -### 3.10.1 (9 September 2022) ### - -* Prevents logging duplicate entries for multiple calls to load the same translation file -* Brings the dispatcher priority back down to `9` for maximum compatibility with other plugins that use a shutdown handler - - -### 3.10.0 (8 September 2022) ### - -* Adds information about the current language on the Languages panel -* Reduces the chance that Query Monitor blames itself for PHP errors that don't have a stack trace -* Replaces the use of Dashicons with inline SVGs and removes the `dashicons` dependency -* Switches to class autoloading via Composer for reduced memory usage -* Changes the priority of the `shutdown` dispatcher from `0` to `PHP_INT_MAX` to ensure as much data as possible is collected -* Improves the styling of Debug Bar add-ons -* Fixes some erroneous localisation of float values in REST API output -* Bumps the minimum supported PHP version to 5.6 -* Improves various other bits and bobs - -### 3.9.0 (15 April 2022) ### - -* Introduces a dark mode toggle on the Settings panel, which replaces the `QM_DARK_MODE` constant -* Prevents errors with undefined constants being reported in `db.php` -* Adds more comprehensive handling of unexpected values in stack traces -* Fixes PHP Warning 'Header may not contain NUL bytes' when outputting headers - -### 3.8.2 (7 January 2022) ### - -* Fixes some deprecated notices with PHP 8.1 -* Improves the handling of SQL queries that consist only of MySQL comments - -### 3.8.1 (2 January 2022) ### - -* Fixes an incompatibility with PHP versions prior to 7.2 -* Fixes a warning that was being triggered within the PHP header dispatcher -* Introduces the `qm/component_type/{$type}` filter -* Introduces a `QM_VERSION` constant - -### 3.8.0 (27 December 2021) ### - -* Introduces the ability for a third party to cease all further data collection and output at any point by calling `do_action( 'qm/cease' )`, for example to prevent memory exhaustion during long-running operations -* Reduces the width of the admin toolbar menu item by using lower decimal precision -* Improves the Template panel information when a block theme is in use (for Full Site Editing) -* Improves the performance and accuracy of stack traces and calling function information -* Corrects some formatting of numbers and error messages in the REST API output -* Adds more useful information when a persistent object cache or opcode cache isn't in use -* Improves clarity in the Scripts and Styles panels when any of the URLs include a port number -* Introduces the `qm/component_context/{$type}` filter to complement `qm/component_name/{$type}` and `qm/component_dirs` -* Improves internal code quality, internationalisation, and further reduces overall memory usage - -### 3.7.1 (13 May 2021) ### - -* Add a fallback for timing processing during Ajax requests that are dispatched before the `shutdown` hook. - -### 3.7.0 (13 May 2021) ### - -* Introduce debugging output in a `qm` property in enveloped REST API responses -* Add HTTP API call information to the overview panel -* Don't show QM output inside WordPress embeds as nobody uses this -* Don't try to access the `QM_HIDE_SELF` constant before it's defined -* Process the timing and memory related stats as early as possible so the data isn't too skewed - - -### 3.6.8 (9 May 2021) ### - -* Add WordPress memory usage statistic to Overview panel -* Add block context information to the Blocks panel -* Fix row highlighting of TH cells -* Fix some panel resizing bugs - - -### 3.6.7 (20 January 2021) ### - -* Implement a `QM_DB_SYMLINK` constant to prevent the `db.php` symlink being put into place. -* Remove a dependency on `SAVEQUERIES` in the query collector. -* Remove invalid `scope` attributes on table cells. - - -### 3.6.6 (13 January 2021) ### - -* PHP 8 fix. -* Improve the display for various empty values when logging. -* Don't display child menus until the parent menu is active. Makes the menu clearer. -* Detect local host names in HTTP API requests and don't mark them as ignoring certificate verification. -* Prevent the text in toggle buttons from being selected when selecting data in tables. -* Remove support for the Dark Mode plugin which isn't Dark Mode any more. - - -### 3.6.5 (13 November 2020) ### - -* Always show the Logs panel, with a link to help docs. -* Whole bunch of improvements to QM's "broken" state handling. -* Remove usage of deprecated jQuery methods. -* Add support for Altis dependencies as components. -* Add `innodb_buffer_pool_size` variable to the mysql environment list. -* Preformat the Logger output -* Fix the PHP version check. - - -### 3.6.4 (20 August 2020) ### - -* Correct an error introduced in 3.6.2 with the extra early error handling (ironic). - -### 3.6.3 (20 August 2020) ### - -* Correct the size of the close icon. - -### 3.6.2 (20 August 2020) ### - - * Capture and display the most recent PHP error that occurred before QM loaded. - * Add support for the environment type added in WP 5.5. - * Avoid a potentially blank translation for some plural forms. - * Increase some contrast in dark mode. - * Combine the response-related sections of the Request panel. - * Add extra sanity checking when attempting to fetch the posix user information. - -### 3.6.1 (25 July 2020) ### - -* Adjust the bottom margin when the QM panel is open so QM doesn't cover the bottom of the page. Works more often than not. -* Prevent QM from triggering a fatal itself if a fatal occurs before the HTML dispatcher is loaded. -* Add an informational message to the template output when template hooks are in use. -* Fix errors caused by missing user or group IDs when collecting environment data. -* Add TextMate to list of supported editors. -* Demote some cache warnings to informational messages. -* Support passing backtrace to `QM_Backtrace`. - - -### 3.6.0 (8 May 2020) ### - -* Improvements to the UI when a fatal error occurs, including an admin toolbar warning. -* Improvements to the UI when QM is running in "broken" mode due to missing jQuery or an unrecoverable JavaScript error. -* Don't display fatal errors if error display is off and the user cannot view QM. -* Improvements to the visual appearance of the `wp_die()` output. -* Simplify re-throwing a caught exception so QM doesn't get the blame for fatal errors, eg. in the WordPress core fatal error handler. -* Add support for logging a variable of any type in the logger, as a replacement for var dumping. -* Don't show a message for errors in Ajax calls that have already occurred on the main page load. -* Don't dispatch QM during an iframed request, eg the plugin info modal or an upgrader action. -* Hide QM itself from various panels by default to remove noise. Can be controlled via the existing `QM_HIDE_SELF` configuration constant. -* Support for the new `is_favicon()` conditional added in WP 5.4. -* Fix the side panel resizing functionality. -* Add a WP-CLI command for creating the symlink to the db file. -* Add filters to `QM_Util::get_file_dirs()` and `get_file_component()` to allow support for non-standard plugin and theme locations. -* Add an action that fires when QM enqueues its assets, so add-on plugins can enqueue theirs only when necessary. - - -### 3.5.2 (2 December 2019) ### - -* Add support for exposing [Full Site Editing](https://github.com/WordPress/gutenberg/issues?q=label%3A%22%5BFeature%5D+Full+Site+Editing%22) blocks in the Block Editor panel. + diff --git a/query-monitor/vendor/autoload.php b/query-monitor/vendor/autoload.php index 1d4019b09e..d906ff5de1 100644 --- a/query-monitor/vendor/autoload.php +++ b/query-monitor/vendor/autoload.php @@ -22,4 +22,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit9bc748a33ab984c092a749a74d7b8261::getLoader(); +return ComposerAutoloaderInitfaf42c5f235c65e8397793ae676be6da::getLoader(); diff --git a/query-monitor/vendor/composer/ClassLoader.php b/query-monitor/vendor/composer/ClassLoader.php index 7824d8f7ea..a72151c77c 100644 --- a/query-monitor/vendor/composer/ClassLoader.php +++ b/query-monitor/vendor/composer/ClassLoader.php @@ -45,34 +45,35 @@ class ClassLoader /** @var \Closure(string):void */ private static $includeFile; - /** @var string|null */ + /** @var ?string */ private $vendorDir; // PSR-4 /** - * @var array> + * @var array[] + * @psalm-var array> */ private $prefixLengthsPsr4 = array(); /** - * @var array> + * @var array[] + * @psalm-var array> */ private $prefixDirsPsr4 = array(); /** - * @var list + * @var array[] + * @psalm-var array */ private $fallbackDirsPsr4 = array(); // PSR-0 /** - * List of PSR-0 prefixes - * - * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) - * - * @var array>> + * @var array[] + * @psalm-var array> */ private $prefixesPsr0 = array(); /** - * @var list + * @var array[] + * @psalm-var array */ private $fallbackDirsPsr0 = array(); @@ -80,7 +81,8 @@ class ClassLoader private $useIncludePath = false; /** - * @var array + * @var string[] + * @psalm-var array */ private $classMap = array(); @@ -88,20 +90,21 @@ class ClassLoader private $classMapAuthoritative = false; /** - * @var array + * @var bool[] + * @psalm-var array */ private $missingClasses = array(); - /** @var string|null */ + /** @var ?string */ private $apcuPrefix; /** - * @var array + * @var self[] */ private static $registeredLoaders = array(); /** - * @param string|null $vendorDir + * @param ?string $vendorDir */ public function __construct($vendorDir = null) { @@ -110,7 +113,7 @@ public function __construct($vendorDir = null) } /** - * @return array> + * @return string[] */ public function getPrefixes() { @@ -122,7 +125,8 @@ public function getPrefixes() } /** - * @return array> + * @return array[] + * @psalm-return array> */ public function getPrefixesPsr4() { @@ -130,7 +134,8 @@ public function getPrefixesPsr4() } /** - * @return list + * @return array[] + * @psalm-return array */ public function getFallbackDirs() { @@ -138,7 +143,8 @@ public function getFallbackDirs() } /** - * @return list + * @return array[] + * @psalm-return array */ public function getFallbackDirsPsr4() { @@ -146,7 +152,8 @@ public function getFallbackDirsPsr4() } /** - * @return array Array of classname => path + * @return string[] Array of classname => path + * @psalm-return array */ public function getClassMap() { @@ -154,7 +161,8 @@ public function getClassMap() } /** - * @param array $classMap Class to filename map + * @param string[] $classMap Class to filename map + * @psalm-param array $classMap * * @return void */ @@ -171,25 +179,24 @@ public function addClassMap(array $classMap) * Registers a set of PSR-0 directories for a given prefix, either * appending or prepending to the ones previously set for this prefix. * - * @param string $prefix The prefix - * @param list|string $paths The PSR-0 root directories - * @param bool $prepend Whether to prepend the directories + * @param string $prefix The prefix + * @param string[]|string $paths The PSR-0 root directories + * @param bool $prepend Whether to prepend the directories * * @return void */ public function add($prefix, $paths, $prepend = false) { - $paths = (array) $paths; if (!$prefix) { if ($prepend) { $this->fallbackDirsPsr0 = array_merge( - $paths, + (array) $paths, $this->fallbackDirsPsr0 ); } else { $this->fallbackDirsPsr0 = array_merge( $this->fallbackDirsPsr0, - $paths + (array) $paths ); } @@ -198,19 +205,19 @@ public function add($prefix, $paths, $prepend = false) $first = $prefix[0]; if (!isset($this->prefixesPsr0[$first][$prefix])) { - $this->prefixesPsr0[$first][$prefix] = $paths; + $this->prefixesPsr0[$first][$prefix] = (array) $paths; return; } if ($prepend) { $this->prefixesPsr0[$first][$prefix] = array_merge( - $paths, + (array) $paths, $this->prefixesPsr0[$first][$prefix] ); } else { $this->prefixesPsr0[$first][$prefix] = array_merge( $this->prefixesPsr0[$first][$prefix], - $paths + (array) $paths ); } } @@ -219,9 +226,9 @@ public function add($prefix, $paths, $prepend = false) * Registers a set of PSR-4 directories for a given namespace, either * appending or prepending to the ones previously set for this namespace. * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param list|string $paths The PSR-4 base directories - * @param bool $prepend Whether to prepend the directories + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param string[]|string $paths The PSR-4 base directories + * @param bool $prepend Whether to prepend the directories * * @throws \InvalidArgumentException * @@ -229,18 +236,17 @@ public function add($prefix, $paths, $prepend = false) */ public function addPsr4($prefix, $paths, $prepend = false) { - $paths = (array) $paths; if (!$prefix) { // Register directories for the root namespace. if ($prepend) { $this->fallbackDirsPsr4 = array_merge( - $paths, + (array) $paths, $this->fallbackDirsPsr4 ); } else { $this->fallbackDirsPsr4 = array_merge( $this->fallbackDirsPsr4, - $paths + (array) $paths ); } } elseif (!isset($this->prefixDirsPsr4[$prefix])) { @@ -250,18 +256,18 @@ public function addPsr4($prefix, $paths, $prepend = false) throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); } $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = $paths; + $this->prefixDirsPsr4[$prefix] = (array) $paths; } elseif ($prepend) { // Prepend directories for an already registered namespace. $this->prefixDirsPsr4[$prefix] = array_merge( - $paths, + (array) $paths, $this->prefixDirsPsr4[$prefix] ); } else { // Append directories for an already registered namespace. $this->prefixDirsPsr4[$prefix] = array_merge( $this->prefixDirsPsr4[$prefix], - $paths + (array) $paths ); } } @@ -270,8 +276,8 @@ public function addPsr4($prefix, $paths, $prepend = false) * Registers a set of PSR-0 directories for a given prefix, * replacing any others previously set for this prefix. * - * @param string $prefix The prefix - * @param list|string $paths The PSR-0 base directories + * @param string $prefix The prefix + * @param string[]|string $paths The PSR-0 base directories * * @return void */ @@ -288,8 +294,8 @@ public function set($prefix, $paths) * Registers a set of PSR-4 directories for a given namespace, * replacing any others previously set for this namespace. * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param list|string $paths The PSR-4 base directories + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param string[]|string $paths The PSR-4 base directories * * @throws \InvalidArgumentException * @@ -475,9 +481,9 @@ public function findFile($class) } /** - * Returns the currently registered loaders keyed by their corresponding vendor directories. + * Returns the currently registered loaders indexed by their corresponding vendor directories. * - * @return array + * @return self[] */ public static function getRegisteredLoaders() { diff --git a/query-monitor/vendor/composer/autoload_classmap.php b/query-monitor/vendor/composer/autoload_classmap.php new file mode 100644 index 0000000000..fbe1e55337 --- /dev/null +++ b/query-monitor/vendor/composer/autoload_classmap.php @@ -0,0 +1,92 @@ + $baseDir . '/classes/debug_bar.php', + 'Debug_Bar_Panel' => $baseDir . '/classes/debug_bar_panel.php', + 'QM' => $baseDir . '/classes/QM.php', + 'QM_Activation' => $baseDir . '/classes/Activation.php', + 'QM_Backtrace' => $baseDir . '/classes/Backtrace.php', + 'QM_CLI' => $baseDir . '/classes/CLI.php', + 'QM_Collector' => $baseDir . '/classes/Collector.php', + 'QM_Collectors' => $baseDir . '/classes/Collectors.php', + 'QM_Component' => $baseDir . '/classes/Component.php', + 'QM_DB' => $baseDir . '/classes/DB.php', + 'QM_Data' => $baseDir . '/classes/Data.php', + 'QM_DataCollector' => $baseDir . '/classes/DataCollector.php', + 'QM_Data_Admin' => $baseDir . '/data/admin.php', + 'QM_Data_Assets' => $baseDir . '/data/assets.php', + 'QM_Data_Block_Editor' => $baseDir . '/data/block_editor.php', + 'QM_Data_Cache' => $baseDir . '/data/cache.php', + 'QM_Data_Caps' => $baseDir . '/data/caps.php', + 'QM_Data_Conditionals' => $baseDir . '/data/conditionals.php', + 'QM_Data_DB_Callers' => $baseDir . '/data/db_callers.php', + 'QM_Data_DB_Components' => $baseDir . '/data/db_components.php', + 'QM_Data_DB_Dupes' => $baseDir . '/data/db_dupes.php', + 'QM_Data_DB_Queries' => $baseDir . '/data/db_queries.php', + 'QM_Data_Environment' => $baseDir . '/data/environment.php', + 'QM_Data_Fallback' => $baseDir . '/data/fallback.php', + 'QM_Data_HTTP' => $baseDir . '/data/http.php', + 'QM_Data_Hooks' => $baseDir . '/data/hooks.php', + 'QM_Data_Languages' => $baseDir . '/data/languages.php', + 'QM_Data_Logger' => $baseDir . '/data/logger.php', + 'QM_Data_Multisite' => $baseDir . '/data/multisite.php', + 'QM_Data_Overview' => $baseDir . '/data/overview.php', + 'QM_Data_PHP_Errors' => $baseDir . '/data/php_errors.php', + 'QM_Data_Raw_Request' => $baseDir . '/data/raw_request.php', + 'QM_Data_Redirect' => $baseDir . '/data/redirect.php', + 'QM_Data_Request' => $baseDir . '/data/request.php', + 'QM_Data_Theme' => $baseDir . '/data/theme.php', + 'QM_Data_Timing' => $baseDir . '/data/timing.php', + 'QM_Data_Transients' => $baseDir . '/data/transients.php', + 'QM_Dispatcher' => $baseDir . '/classes/Dispatcher.php', + 'QM_Dispatchers' => $baseDir . '/classes/Dispatchers.php', + 'QM_Hook' => $baseDir . '/classes/Hook.php', + 'QM_Output' => $baseDir . '/classes/Output.php', + 'QM_Output_Headers' => $baseDir . '/output/Headers.php', + 'QM_Output_Headers_Overview' => $baseDir . '/output/headers/overview.php', + 'QM_Output_Headers_PHP_Errors' => $baseDir . '/output/headers/php_errors.php', + 'QM_Output_Headers_Redirects' => $baseDir . '/output/headers/redirects.php', + 'QM_Output_Html' => $baseDir . '/output/Html.php', + 'QM_Output_Html_Admin' => $baseDir . '/output/html/admin.php', + 'QM_Output_Html_Assets' => $baseDir . '/output/html/assets.php', + 'QM_Output_Html_Assets_Scripts' => $baseDir . '/output/html/assets_scripts.php', + 'QM_Output_Html_Assets_Styles' => $baseDir . '/output/html/assets_styles.php', + 'QM_Output_Html_Block_Editor' => $baseDir . '/output/html/block_editor.php', + 'QM_Output_Html_Caps' => $baseDir . '/output/html/caps.php', + 'QM_Output_Html_Conditionals' => $baseDir . '/output/html/conditionals.php', + 'QM_Output_Html_DB_Callers' => $baseDir . '/output/html/db_callers.php', + 'QM_Output_Html_DB_Components' => $baseDir . '/output/html/db_components.php', + 'QM_Output_Html_DB_Dupes' => $baseDir . '/output/html/db_dupes.php', + 'QM_Output_Html_DB_Queries' => $baseDir . '/output/html/db_queries.php', + 'QM_Output_Html_Debug_Bar' => $baseDir . '/output/html/debug_bar.php', + 'QM_Output_Html_Environment' => $baseDir . '/output/html/environment.php', + 'QM_Output_Html_HTTP' => $baseDir . '/output/html/http.php', + 'QM_Output_Html_Headers' => $baseDir . '/output/html/headers.php', + 'QM_Output_Html_Hooks' => $baseDir . '/output/html/hooks.php', + 'QM_Output_Html_Languages' => $baseDir . '/output/html/languages.php', + 'QM_Output_Html_Logger' => $baseDir . '/output/html/logger.php', + 'QM_Output_Html_Multisite' => $baseDir . '/output/html/multisite.php', + 'QM_Output_Html_Overview' => $baseDir . '/output/html/overview.php', + 'QM_Output_Html_PHP_Errors' => $baseDir . '/output/html/php_errors.php', + 'QM_Output_Html_Request' => $baseDir . '/output/html/request.php', + 'QM_Output_Html_Theme' => $baseDir . '/output/html/theme.php', + 'QM_Output_Html_Timing' => $baseDir . '/output/html/timing.php', + 'QM_Output_Html_Transients' => $baseDir . '/output/html/transients.php', + 'QM_Output_Raw' => $baseDir . '/output/Raw.php', + 'QM_Output_Raw_Cache' => $baseDir . '/output/raw/cache.php', + 'QM_Output_Raw_Conditionals' => $baseDir . '/output/raw/conditionals.php', + 'QM_Output_Raw_DB_Queries' => $baseDir . '/output/raw/db_queries.php', + 'QM_Output_Raw_HTTP' => $baseDir . '/output/raw/http.php', + 'QM_Output_Raw_Logger' => $baseDir . '/output/raw/logger.php', + 'QM_Output_Raw_Transients' => $baseDir . '/output/raw/transients.php', + 'QM_PHP' => $baseDir . '/classes/PHP.php', + 'QM_Plugin' => $baseDir . '/classes/Plugin.php', + 'QM_Timer' => $baseDir . '/classes/Timer.php', + 'QM_Util' => $baseDir . '/classes/Util.php', + 'QueryMonitor' => $baseDir . '/classes/QueryMonitor.php', +); diff --git a/query-monitor/vendor/composer/autoload_namespaces.php b/query-monitor/vendor/composer/autoload_namespaces.php new file mode 100644 index 0000000000..15a2ff3ad6 --- /dev/null +++ b/query-monitor/vendor/composer/autoload_namespaces.php @@ -0,0 +1,9 @@ +setClassMapAuthoritative(true); diff --git a/query-monitor/vendor/composer/autoload_static.php b/query-monitor/vendor/composer/autoload_static.php index 62cbeba3ec..e6cfecd708 100644 --- a/query-monitor/vendor/composer/autoload_static.php +++ b/query-monitor/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit9bc748a33ab984c092a749a74d7b8261 +class ComposerStaticInitfaf42c5f235c65e8397793ae676be6da { public static $classMap = array ( 'Debug_Bar' => __DIR__ . '/../..' . '/classes/debug_bar.php', @@ -14,7 +14,6 @@ class ComposerStaticInit9bc748a33ab984c092a749a74d7b8261 'QM_Backtrace' => __DIR__ . '/../..' . '/classes/Backtrace.php', 'QM_CLI' => __DIR__ . '/../..' . '/classes/CLI.php', 'QM_Collector' => __DIR__ . '/../..' . '/classes/Collector.php', - 'QM_Collector_Assets' => __DIR__ . '/../..' . '/classes/Collector_Assets.php', 'QM_Collectors' => __DIR__ . '/../..' . '/classes/Collectors.php', 'QM_Component' => __DIR__ . '/../..' . '/classes/Component.php', 'QM_DB' => __DIR__ . '/../..' . '/classes/DB.php', @@ -30,7 +29,6 @@ class ComposerStaticInit9bc748a33ab984c092a749a74d7b8261 'QM_Data_DB_Components' => __DIR__ . '/../..' . '/data/db_components.php', 'QM_Data_DB_Dupes' => __DIR__ . '/../..' . '/data/db_dupes.php', 'QM_Data_DB_Queries' => __DIR__ . '/../..' . '/data/db_queries.php', - 'QM_Data_Doing_It_Wrong' => __DIR__ . '/../..' . '/data/doing_it_wrong.php', 'QM_Data_Environment' => __DIR__ . '/../..' . '/data/environment.php', 'QM_Data_Fallback' => __DIR__ . '/../..' . '/data/fallback.php', 'QM_Data_HTTP' => __DIR__ . '/../..' . '/data/http.php', @@ -67,7 +65,6 @@ class ComposerStaticInit9bc748a33ab984c092a749a74d7b8261 'QM_Output_Html_DB_Dupes' => __DIR__ . '/../..' . '/output/html/db_dupes.php', 'QM_Output_Html_DB_Queries' => __DIR__ . '/../..' . '/output/html/db_queries.php', 'QM_Output_Html_Debug_Bar' => __DIR__ . '/../..' . '/output/html/debug_bar.php', - 'QM_Output_Html_Doing_It_Wrong' => __DIR__ . '/../..' . '/output/html/doing_it_wrong.php', 'QM_Output_Html_Environment' => __DIR__ . '/../..' . '/output/html/environment.php', 'QM_Output_Html_HTTP' => __DIR__ . '/../..' . '/output/html/http.php', 'QM_Output_Html_Headers' => __DIR__ . '/../..' . '/output/html/headers.php', @@ -98,7 +95,7 @@ class ComposerStaticInit9bc748a33ab984c092a749a74d7b8261 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->classMap = ComposerStaticInit9bc748a33ab984c092a749a74d7b8261::$classMap; + $loader->classMap = ComposerStaticInitfaf42c5f235c65e8397793ae676be6da::$classMap; }, null, ClassLoader::class); } diff --git a/query-monitor/vendor/composer/installed.json b/query-monitor/vendor/composer/installed.json new file mode 100644 index 0000000000..f20a6c47c6 --- /dev/null +++ b/query-monitor/vendor/composer/installed.json @@ -0,0 +1,5 @@ +{ + "packages": [], + "dev": false, + "dev-package-names": [] +} diff --git a/query-monitor/vendor/composer/installed.php b/query-monitor/vendor/composer/installed.php new file mode 100644 index 0000000000..64205780c7 --- /dev/null +++ b/query-monitor/vendor/composer/installed.php @@ -0,0 +1,23 @@ + array( + 'name' => 'johnbillion/query-monitor', + 'pretty_version' => 'dev-release', + 'version' => 'dev-release', + 'reference' => '10c40a3e8a9d62b091d235646ac0dc80892d2b6b', + 'type' => 'wordpress-plugin', + 'install_path' => __DIR__ . '/../../', + 'aliases' => array(), + 'dev' => false, + ), + 'versions' => array( + 'johnbillion/query-monitor' => array( + 'pretty_version' => 'dev-release', + 'version' => 'dev-release', + 'reference' => '10c40a3e8a9d62b091d235646ac0dc80892d2b6b', + 'type' => 'wordpress-plugin', + 'install_path' => __DIR__ . '/../../', + 'aliases' => array(), + 'dev_requirement' => false, + ), + ), +); diff --git a/query-monitor/vendor/composer/platform_check.php b/query-monitor/vendor/composer/platform_check.php index 580fa96095..589e9e770b 100644 --- a/query-monitor/vendor/composer/platform_check.php +++ b/query-monitor/vendor/composer/platform_check.php @@ -4,8 +4,8 @@ $issues = array(); -if (!(PHP_VERSION_ID >= 70400)) { - $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.'; +if (!(PHP_VERSION_ID >= 70200)) { + $issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.0". You are running ' . PHP_VERSION . '.'; } if ($issues) { diff --git a/query-monitor/wp-content/db.php b/query-monitor/wp-content/db.php index 8363a46d75..2e272ec3cc 100644 --- a/query-monitor/wp-content/db.php +++ b/query-monitor/wp-content/db.php @@ -2,7 +2,7 @@ /** * Plugin Name: Query Monitor Database Class (Drop-in) * Description: Database drop-in for Query Monitor, the developer tools panel for WordPress. - * Version: 3.15.0 + * Version: 3.12.1 * Plugin URI: https://querymonitor.com/ * Author: John Blackbourn * Author URI: https://querymonitor.com/ @@ -46,17 +46,6 @@ return; } -# Don't load QM during plugin updates to prevent function signature changes causing issues between versions. -if ( is_admin() ) { - if ( isset( $_GET['action'] ) && 'upgrade-plugin' === $_GET['action'] ) { - return; - } - - if ( isset( $_POST['action'] ) && 'update-plugin' === $_POST['action'] ) { - return; - } -} - // This must be required before vendor/autoload.php so QM can serve its own message about PHP compatibility. $qm_dir = dirname( dirname( __FILE__ ) ); $qm_php = "{$qm_dir}/classes/PHP.php"; From fe8660cc395c6be8b4141f59ca3e8be27186ad93 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 21:53:08 +0200 Subject: [PATCH 03/30] chore(deps-dev): Bump typescript from 5.2.2 to 5.3.2 in /__tests__/e2e (#5036) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.2.2 to 5.3.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v5.2.2...v5.3.2) --- updated-dependencies: - dependency-name: typescript 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> --- __tests__/e2e/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/e2e/package-lock.json b/__tests__/e2e/package-lock.json index 8070f0b2e9..68c562a4af 100644 --- a/__tests__/e2e/package-lock.json +++ b/__tests__/e2e/package-lock.json @@ -4579,9 +4579,9 @@ } }, "node_modules/typescript": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", - "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.2.tgz", + "integrity": "sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==", "dev": true, "bin": { "tsc": "bin/tsc", From 4f2e0182bc291e82d8357152a71dedd105142c2a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 21:53:38 +0200 Subject: [PATCH 04/30] chore(deps-dev): Bump eslint from 8.53.0 to 8.54.0 in /__tests__/e2e (#5035) Bumps [eslint](https://github.com/eslint/eslint) from 8.53.0 to 8.54.0. - [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.53.0...v8.54.0) --- updated-dependencies: - dependency-name: eslint 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> --- __tests__/e2e/package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/__tests__/e2e/package-lock.json b/__tests__/e2e/package-lock.json index 68c562a4af..f4cff09f78 100644 --- a/__tests__/e2e/package-lock.json +++ b/__tests__/e2e/package-lock.json @@ -518,9 +518,9 @@ } }, "node_modules/@eslint/js": { - "version": "8.53.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.53.0.tgz", - "integrity": "sha512-Kn7K8dx/5U6+cT1yEhpX1w4PCSg0M+XyRILPgvwcEBjerFWCwQj5sbr3/VmxqV0JGHCBCzyd6LxypEuehypY1w==", + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.54.0.tgz", + "integrity": "sha512-ut5V+D+fOoWPgGGNj83GGjnntO39xDy6DWxO0wb7Jp3DcMX0TfIqdzHF85VTQkerdyGmuuMD9AKAo5KiNlf/AQ==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -1704,15 +1704,15 @@ } }, "node_modules/eslint": { - "version": "8.53.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.53.0.tgz", - "integrity": "sha512-N4VuiPjXDUa4xVeV/GC/RV3hQW9Nw+Y463lkWaKKXKYMvmRiRDAtfpuPFLN+E1/6ZhyR8J2ig+eVREnYgUsiag==", + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.54.0.tgz", + "integrity": "sha512-NY0DfAkM8BIZDVl6PgSa1ttZbx3xHgJzSNJKYcQglem6CppHyMhRIQkBVSSMaSRnLhig3jsDbEzOjwCVt4AmmA==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.3", - "@eslint/js": "8.53.0", + "@eslint/js": "8.54.0", "@humanwhocodes/config-array": "^0.11.13", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", From 62761cf1b300ee9d010896b8fe66daceea9feb3e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 21:54:13 +0200 Subject: [PATCH 05/30] chore(deps-dev): Bump playwright from 1.39.0 to 1.40.0 in /__tests__/e2e (#5030) Bumps [playwright](https://github.com/microsoft/playwright) from 1.39.0 to 1.40.0. - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](https://github.com/microsoft/playwright/compare/v1.39.0...v1.40.0) --- updated-dependencies: - dependency-name: playwright 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> --- __tests__/e2e/package-lock.json | 44 +++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/__tests__/e2e/package-lock.json b/__tests__/e2e/package-lock.json index f4cff09f78..6b9c6a2122 100644 --- a/__tests__/e2e/package-lock.json +++ b/__tests__/e2e/package-lock.json @@ -671,6 +671,36 @@ "node": ">=16" } }, + "node_modules/@playwright/test/node_modules/playwright": { + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.39.0.tgz", + "integrity": "sha512-naE5QT11uC/Oiq0BwZ50gDmy8c8WLPRTEWuSSFVG2egBka/1qMoSqYQcROMT9zLwJ86oPofcTH2jBY/5wWOgIw==", + "dev": true, + "dependencies": { + "playwright-core": "1.39.0" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=16" + }, + "optionalDependencies": { + "fsevents": "2.3.2" + } + }, + "node_modules/@playwright/test/node_modules/playwright-core": { + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.39.0.tgz", + "integrity": "sha512-+k4pdZgs1qiM+OUkSjx96YiKsXsmb59evFoqv8SKO067qBA+Z2s/dCzJij/ZhdQcs2zlTAgRKfeiiLm8PQ2qvw==", + "dev": true, + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=16" + } + }, "node_modules/@rushstack/eslint-patch": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.5.1.tgz", @@ -3895,12 +3925,12 @@ } }, "node_modules/playwright": { - "version": "1.39.0", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.39.0.tgz", - "integrity": "sha512-naE5QT11uC/Oiq0BwZ50gDmy8c8WLPRTEWuSSFVG2egBka/1qMoSqYQcROMT9zLwJ86oPofcTH2jBY/5wWOgIw==", + "version": "1.40.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.40.0.tgz", + "integrity": "sha512-gyHAgQjiDf1m34Xpwzaqb76KgfzYrhK7iih+2IzcOCoZWr/8ZqmdBw+t0RU85ZmfJMgtgAiNtBQ/KS2325INXw==", "dev": true, "dependencies": { - "playwright-core": "1.39.0" + "playwright-core": "1.40.0" }, "bin": { "playwright": "cli.js" @@ -3913,9 +3943,9 @@ } }, "node_modules/playwright-core": { - "version": "1.39.0", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.39.0.tgz", - "integrity": "sha512-+k4pdZgs1qiM+OUkSjx96YiKsXsmb59evFoqv8SKO067qBA+Z2s/dCzJij/ZhdQcs2zlTAgRKfeiiLm8PQ2qvw==", + "version": "1.40.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.40.0.tgz", + "integrity": "sha512-fvKewVJpGeca8t0ipM56jkVSU6Eo0RmFvQ/MaCQNDYm+sdvKkMBBWTE1FdeMqIdumRaXXjZChWHvIzCGM/tA/Q==", "dev": true, "bin": { "playwright-core": "cli.js" From f5da4202d74f3b865c1886f64275ffad027d8228 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 21:54:44 +0200 Subject: [PATCH 06/30] chore(deps-dev): Bump @playwright/test in /__tests__/e2e (#5029) Bumps [@playwright/test](https://github.com/microsoft/playwright) from 1.39.0 to 1.40.0. - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](https://github.com/microsoft/playwright/compare/v1.39.0...v1.40.0) --- updated-dependencies: - dependency-name: "@playwright/test" 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> --- __tests__/e2e/package-lock.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/__tests__/e2e/package-lock.json b/__tests__/e2e/package-lock.json index 6b9c6a2122..232550a49e 100644 --- a/__tests__/e2e/package-lock.json +++ b/__tests__/e2e/package-lock.json @@ -657,12 +657,12 @@ } }, "node_modules/@playwright/test": { - "version": "1.39.0", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.39.0.tgz", - "integrity": "sha512-3u1iFqgzl7zr004bGPYiN/5EZpRUSFddQBra8Rqll5N0/vfpqlP9I9EXqAoGacuAbX6c9Ulg/Cjqglp5VkK6UQ==", + "version": "1.40.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.40.0.tgz", + "integrity": "sha512-PdW+kn4eV99iP5gxWNSDQCbhMaDVej+RXL5xr6t04nbKLCBwYtA046t7ofoczHOm8u6c+45hpDKQVZqtqwkeQg==", "dev": true, "dependencies": { - "playwright": "1.39.0" + "playwright": "1.40.0" }, "bin": { "playwright": "cli.js" From 0482bf0a9b1e2ba0baa2bac044cfdcb1bd508b59 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 22:44:24 +0200 Subject: [PATCH 07/30] chore(deps): Bump preact from 10.18.1 to 10.19.2 in /search/search-dev-tools (#5044) * chore(deps): Bump preact in /search/search-dev-tools Bumps [preact](https://github.com/preactjs/preact) from 10.18.1 to 10.19.2. - [Release notes](https://github.com/preactjs/preact/releases) - [Commits](https://github.com/preactjs/preact/compare/10.18.1...10.19.2) --- 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 --- search/search-dev-tools/build/bundle.js | 2 +- search/search-dev-tools/package-lock.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/search/search-dev-tools/build/bundle.js b/search/search-dev-tools/build/bundle.js index 75db04552e..b0072cd0b3 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={798:(e,t,n)=>{n.p=window.VIPSearchDevTools.__webpack_public_path__},184:(e,t)=>{var n;!function(){"use strict";function r(){for(var e=[],t=0;t1&&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=y()(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?m(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 m(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}(p()),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){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}function a(e){this.props=e}function l(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,M.az)(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=I,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function s(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 s(e,t,n)}))),e}function c(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return c(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function f(){this.__u=0,this.t=null,this.__b=null}function _(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function p(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,M.az)(r,t)}var n,r,o;return t.displayName="Lazy",t.__f=!0,t}function d(){this.u=null,this.o=null}function h(e){return this.getChildContext=function(){return e.context},e.children}function v(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,M.sY)(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:[],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,M.sY)((0,M.az)(h,{context:t.context},e.__v),t.l)}function y(e,t){var n=(0,M.az)(v,{__v:e,i:t});return n.containerInfo=t,n}function m(e,t,n){return null==t.__k&&(t.textContent=""),(0,M.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function g(e,t,n){return(0,M.ZB)(e,t),"function"==typeof n&&n(),e?e.__c:null}function b(){}function w(){return this.cancelBubble}function k(){return this.defaultPrevented}function S(e){return M.az.bind(null,e)}function x(e){return!!e&&e.$$typeof===z}function C(e){return x(e)&&e.type===M.HY}function E(e){return x(e)?M.Tm.apply(null,arguments):e}function O(e){return!!e.__k&&((0,M.sY)(null,e),!0)}function P(e){return e&&(e.base||1===e.nodeType&&e)||null}function N(e){e()}function A(e){return e}function $(){return[!1,N]}function j(e,t){var n=t(),r=(0,L.eJ)({h:{__:n,v:t}}),o=r[0].h,a=r[1];return(0,L.bt)((function(){o.__=n,o.v=t,i(o.__,t())||a({h:o})}),[e,n,t]),(0,L.d4)((function(){return i(o.__,o.v())||a({h:o}),e((function(){i(o.__,o.v())||a({h:o})}))}),[e]),n}n.r(t),n.d(t,{Children:()=>q,Component:()=>M.wA,Fragment:()=>M.HY,PureComponent:()=>a,StrictMode:()=>oe,Suspense:()=>f,SuspenseList:()=>d,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>ee,cloneElement:()=>E,createContext:()=>M.kr,createElement:()=>M.az,createFactory:()=>S,createPortal:()=>y,createRef:()=>M.Vf,default:()=>le,findDOMNode:()=>P,flushSync:()=>re,forwardRef:()=>u,hydrate:()=>g,isElement:()=>ae,isFragment:()=>C,isValidElement:()=>x,lazy:()=>p,memo:()=>l,render:()=>m,startTransition:()=>N,unmountComponentAtNode:()=>O,unstable_batchedUpdates:()=>ne,useCallback:()=>L.I4,useContext:()=>L.qp,useDebugValue:()=>L.Qb,useDeferredValue:()=>A,useEffect:()=>L.d4,useErrorBoundary:()=>L.cO,useId:()=>L.Me,useImperativeHandle:()=>L.aP,useInsertionEffect:()=>ie,useLayoutEffect:()=>L.bt,useMemo:()=>L.Ye,useReducer:()=>L._Y,useRef:()=>L.sO,useState:()=>L.eJ,useSyncExternalStore:()=>j,useTransition:()=>$,version:()=>te});var M=n(400),L=n(396);(a.prototype=new M.wA).isPureReactComponent=!0,a.prototype.shouldComponentUpdate=function(e,t){return o(this.props,e)||o(this.state,t)};var T=M.YM.__b;M.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),T&&T(e)};var I="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,R=function(e,t){return null==e?null:(0,M.bR)((0,M.bR)(e).map(t))},q={map:R,forEach:R,count:function(e){return e?(0,M.bR)(e).length:0},only:function(e){var t=(0,M.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:M.bR},D=M.YM.__e;M.YM.__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);D(e,t,n,r)};var H=M.YM.unmount;M.YM.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),H&&H(e)},(f.prototype=new M.wA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=_(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]=c(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},f.prototype.componentWillUnmount=function(){this.t=[]},f.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]=s(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&(0,M.az)(M.HY,null,e.fallback);return o&&(o.__h=null),[(0,M.az)(M.HY,null,t.__a?null:e.children),o]};var Y=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?M.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,__h:null,constructor:void 0,__v:null==o?++T:o};return null==o&&null!=L.vnode&&L.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.__.__k.indexOf(e)+1):null;for(var n;tt&&I.sort(D));p.__r=0}function d(e,t,n,r,o,i,l,s,f,_,p){var d,v,g,b,w,k,x,C,P,N=0,A=r&&r.__k||z,$=A.length,j=$,M=t.length;for(n.__k=[],d=0;d0?a(b.type,b.props,b.key,b.ref?b.ref:null,b.__v):b)?(b.__=n,b.__b=n.__b+1,-1===(C=m(b,A,x=d+N,j))?g=Y:(g=A[C]||Y,A[C]=void 0,j--),S(e,b,g,o,i,l,s,f,_,p),w=b.__e,(v=b.ref)&&g.ref!=v&&(g.ref&&E(g.ref,null,b),p.push(v,b.__c||w,b)),null!=w&&(null==k&&(k=w),(P=g===Y||null===g.__v)?-1==C&&N--:C!==x&&(C===x+1?N++:C>x?j>M-x?N+=C-x:N--:N=C(null!=u?1:0))for(;a>=0||l=0){if((u=t[a])&&o==u.key&&i===u.type)return a;a--}if(l2&&(s.children=arguments.length>3?M.call(arguments,2):n),a(e.type,s,o||e.key,i||e.ref,null)}function j(e,t){var n={__c:t="__cC"+H++,__: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.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.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n.d(t,{HY:()=>u,Tm:()=>$,Vf:()=>l,YM:()=>L,ZB:()=>A,az:()=>i,bR:()=>v,h:()=>i,kr:()=>j,sY:()=>N,wA:()=>s});var M,L,T,I,R,q,D,H,Y={},z=[],U=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,W=Array.isArray;M=z.slice,L={__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}},T=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,I=[],q="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D=function(e,t){return e.__v.__b-t.__v.__b},p.__r=0,H=0},396:(e,t,n)=>{"use strict";function r(e,t){E.YM.__h&&E.YM.__h(S,e,O||t),O=0;var n=S.__H||(S.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:N}),n.__[e]}function o(e){return O=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);!E.YM.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__H.__h.push(n))}function l(e,t){var n=r(k++,4);!E.YM.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__h.push(n))}function u(e){return O=5,c((function(){return{current:e}}),[])}function s(e,t,n){O=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.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function f(e,t){return O=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 p(e,t){E.YM.useDebugValue&&E.YM.useDebugValue(t?t(e):e)}function d(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=P.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(m),e.__H.__h.forEach(g),e.__H.__h=[]}catch(t){e.__H.__h=[],E.YM.__e(t,e.__v)}}function y(e){var t,n=function(){clearTimeout(r),T&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);T&&(t=requestAnimationFrame(n))}function m(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,{I4:()=>f,Me:()=>h,Qb:()=>p,Ye:()=>c,_Y:()=>i,aP:()=>s,bt:()=>l,cO:()=>d,d4:()=>a,eJ:()=>o,qp:()=>_,sO:()=>u});var k,S,x,C,E=n(400),O=0,P=[],N=[],A=E.YM.__b,$=E.YM.__r,j=E.YM.diffed,M=E.YM.__c,L=E.YM.unmount;E.YM.__b=function(e){S=null,A&&A(e)},E.YM.__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.__V=N,e.__N=e.i=void 0}))):(t.__h.forEach(m),t.__h.forEach(g),t.__h=[],k=0)),x=S},E.YM.diffed=function(e){j&&j(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==P.push(t)&&C===E.YM.requestAnimationFrame||((C=E.YM.requestAnimationFrame)||y)(v)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==N&&(e.__=e.__V),e.i=void 0,e.__V=N}))),x=S=null},E.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(m),e.__h=e.__h.filter((function(e){return!e.__||g(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],E.YM.__e(n,e.__v)}})),M&&M(e,t)},E.YM.unmount=function(e){L&&L(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{m(e)}catch(e){t=e}})),n.__H=void 0,t&&E.YM.__e(t,n.__v))};var T="function"==typeof requestAnimationFrame},325:(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 p=l[_];p=Array.isArray(p)?p:[p];for(var d=0;d=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(m){if(!(C=n(w,S,e,y))||C.index>=e.length)break;var O=C.index,P=C.index+C[0].length,N=S;for(N+=k.value.length;O>=N;)N+=(k=k.next).value.length;if(S=N-=k.value.length,k.value instanceof t)continue;for(var A=k;A!==o.tail&&(Nc.reach&&(c.reach=L);var T=k.prev;if(j&&(T=i(o,T,j),S+=j.length),a(o,T,E),k=i(o,T,new t(_,v?f.tokenize($,v):$,g,$)),M&&i(o,k,M),E>1){var I={cause:_+","+d,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 p=document.readyState;"loading"===p||"interactive"===p&&_&&_.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)},277:()=>{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},759:()=>{!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}))}}()},460:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1){t._history.stack=u.slice(0,s+1);var c=t._history.stack.length;if(c>100){var f=c-100;t._history.stack=u.slice(f,c),t._history.offset=Math.max(t._history.offset-f,0)}}var _=Date.now();if(n){var p=t._history.stack[t._history.offset];if(p&&_-p.timestamp<3e3){var d=/[^a-z0-9]([a-z0-9]+)$/i,h=null===(r=t._getLines(p.value,p.selectionStart).pop())||void 0===r?void 0:r.match(d),v=null===(o=t._getLines(e.value,e.selectionStart).pop())||void 0===o?void 0:o.match(d);if((null==h?void 0:h[1])&&(null===(a=null==v?void 0:v[1])||void 0===a?void 0:a.startsWith(h[1])))return void(t._history.stack[t._history.offset]=i(i({},e),{timestamp:_}))}}t._history.stack.push(i(i({},e),{timestamp:_})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,r=t._history.stack[t._history.offset];r&&n&&(t._history.stack[t._history.offset]=i(i({},r),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.offset,r=e.stack[n-1];r&&(t._updateInput(r),t._history.offset=Math.max(n-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,r=e.offset,o=n[r+1];o&&(t._updateInput(o),t._history.offset=Math.min(r+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,r=n.tabSize,o=n.insertSpaces,i=n.ignoreTabKey,a=n.onKeyDown;if(!a||(a(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var l=e.currentTarget,u=l.value,s=l.selectionStart,c=l.selectionEnd,p=(o?" ":"\t").repeat(r);if(9===e.keyCode&&!i&&t.state.capture)if(e.preventDefault(),e.shiftKey){var d=(y=t._getLines(u,s)).length-1,h=t._getLines(u,c).length-1,v=u.split("\n").map((function(e,t){return t>=d&&t<=h&&e.startsWith(p)?e.substring(p.length):e})).join("\n");if(u!==v)t._applyEdits({value:v,selectionStart:(null==(b=y[d])?void 0:b.startsWith(p))?s-p.length:s,selectionEnd:c-(u.length-v.length)})}else if(s!==c){var y,m=(y=t._getLines(u,s)).length-1,g=t._getLines(u,c).length-1,b=y[m];t._applyEdits({value:u.split("\n").map((function(e,t){return t>=m&&t<=g?p+e:e})).join("\n"),selectionStart:b&&/\S/.test(b)?s+p.length:s,selectionEnd:c+p.length*(g-m+1)})}else{var w=s+p.length;t._applyEdits({value:u.substring(0,s)+p+u.substring(c),selectionStart:w,selectionEnd:w})}else if(8===e.keyCode){var k=s!==c;if(u.substring(0,s).endsWith(p)&&!k){e.preventDefault();w=s-p.length;t._applyEdits({value:u.substring(0,s-p.length)+u.substring(c),selectionStart:w,selectionEnd:w})}}else if(13===e.keyCode){if(s===c){var S=t._getLines(u,s).pop(),x=null==S?void 0:S.match(/^\s+/);if(null==x?void 0:x[0]){e.preventDefault();var C="\n"+x[0];w=s+C.length;t._applyEdits({value:u.substring(0,s)+C+u.substring(c),selectionStart:w,selectionEnd:w})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var E=void 0;57===e.keyCode&&e.shiftKey?E=["(",")"]:219===e.keyCode?E=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?E=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(E=["`","`"]),s!==c&&E&&(e.preventDefault(),t._applyEdits({value:u.substring(0,s)+E[0]+u.substring(s,c)+E[1]+u.substring(c),selectionStart:s,selectionEnd:c+2}))}else!(_?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(_?e.metaKey&&90===e.keyCode&&e.shiftKey:f?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||_&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,r=n.value;t._recordChange({value:r,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd},!0),t.props.onValueChange(r)},t._history={stack:[],offset:-1},t._input=null,t}return o(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,r=t.style,o=t.padding,a=t.highlight,l=t.textareaId,u=t.textareaClassName,f=t.autoFocus,_=t.disabled,h=t.form,y=t.maxLength,m=t.minLength,g=t.name,b=t.placeholder,w=t.readOnly,k=t.required,S=t.onClick,x=t.onFocus,C=t.onBlur,E=t.onKeyUp,O=t.preClassName,P=s(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),N={paddingTop:o,paddingRight:o,paddingBottom:o,paddingLeft:o},A=a(n);return c.createElement("div",i({},P,{style:i(i({},v.container),r)}),c.createElement("textarea",{ref:function(t){return e._input=t},style:i(i(i({},v.editor),v.textarea),N),className:p+(u?" ".concat(u):""),id:l,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:S,onKeyUp:E,onFocus:x,onBlur:C,disabled:_,form:h,maxLength:y,minLength:m,name:g,placeholder:b,readOnly:w,required:k,autoFocus:f,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),c.createElement("pre",i({className:O,"aria-hidden":"true",style:i(i(i({},v.editor),v.highlight),N)},"string"==typeof A?{dangerouslySetInnerHTML:{__html:A+"
    "}}:{children:A})),c.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:d}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(c.Component);t.default=h;var v={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"}}}},n={};e.n=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)||null===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:String(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)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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=new 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)||null===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:String(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)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(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=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2?"+ ".concat(E()("other",p-2,!0)):"";return(0,m.h)("div",{className:P()((t={},n(t,N.info_block,!0),n(t,N.info_block_collapsible,l.collapsible||!1),n(t,N.info_block_collapsed,s),t))},(0,m.h)("h5",{className:N.info_label,onClick:f},o),l.collapsible?(0,m.h)(A,null,(0,m.h)("div",{className:P()(n({},N.info_block_inner,!0))},_?i.map((function(e){return(0,m.h)("span",{key:e,className:N.info_block_item},e)})):(0,m.h)("span",null,i)),(0,m.h)("span",{className:N.info_block_teaser,onClick:f},_?" ".concat(i.slice(0,2).join(", ")," ").concat(d):"Click to show")):(0,m.h)("span",null,_?i.join(", "):i))},M=e(325),L=(e(759),e(277),e(460)),T=e.n(L),I=e(152),R=e.n(I);const q="collapsible_list__PJS0Z",D="collapsible_list_details__u5Pq3",H="visible__M2eJW";var Y=function(e){var t,n=e.list,r=void 0===n?[]:n,o=e.title,i=void 0===o?"View":o,a=c((0,g.eJ)(!1),2),l=a[0],u=a[1],f=i.toLowerCase();return(0,m.h)("div",{className:P()((t={},s(t,q,!0),s(t,H,l),t))},(0,m.h)("strong",{className:"".concat(f," vip-h4"),onClick:r.length?function(){u(!l)}:null},i," (","".concat(r.length),")"),(0,m.h)("ol",{className:"".concat(D," ").concat(f," vip-collapse-ol")},r.map((function(e,t){return(0,m.h)("li",{key:t},e)}))))};const z="query_wrap__uIeve",U="query_result__k_RWY",W="query_actions__ImK9_",V="query_handle__e0c8G",F="query_collapsed__PGXWS",B="grid_container__esEnb",K="query_src_header__wWAup",J="query_res_header__DMOpO",G="query_src__MoJsW",Z="query_res__FZmqB",Q="query_src_extra__aZwxj",X="container_editor___Y1qC",ee="container_editor_line_number__FU7Ow";var te=e(400).HY,ne=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=d((0,g.eJ)(f),2),v=h[0],y=h[1],b="#query-response-copy-handle",w=(0,g.I4)(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);y((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){p(l,r,o,i,a,"next",e)}function a(e){p(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,g.d4)((function(){var e=new(R())(b);return e.on("success",(function(e){document.querySelector(b).innerHTML="COPIED!",setTimeout((function(){document.querySelector(b).innerHTML="COPY"}),2e3),e.clearSelection()})),function(){return e.destroy()}}),[]),(0,g.d4)((function(){v.query!==f.query&&(v.editing||w(v.query))}),[v.query,v.editing,f.query,w]);var k;return(0,m.h)("div",{className:P()(z,v.collapsed?F:null)},(0,m.h)("div",{className:V,onClick:function(){return y(_({},v,{collapsed:!v.collapsed}))}},(0,m.h)("h3",{className:"vip-h3"},E()("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,m.h)("span",{style:"color: var(--vip-grey-60);"}," that took")," ",(0,m.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,m.h)("small",null," (",(null==r||null===(n=r.response)||void 0===n?void 0:n.code)||"unknown",")"))),(0,m.h)("div",{className:B},(0,m.h)("div",{className:K},(0,m.h)("span",{style:"margin-right: auto;"},"Request"),(0,m.h)("div",{className:Q},(0,m.h)(Y,{title:"WP_Query",list:Object.entries(i).map((function(e){var t=d(e,2),n=t[1];return"".concat(t[0],": ").concat(JSON.stringify(n))}))}),(0,m.h)(Y,{title:"Trace",list:u}))),(0,m.h)("div",{className:J},"Response"),(0,m.h)("div",{className:"".concat(G," query-src-box")},(0,m.h)("div",{className:W},v.editing||v.result!==c?(0,m.h)(te,null,(0,m.h)("button",{onClick:function(){return y(_({},v,{editing:!1}))},style:"background-color: var(--vip-green-40) !important"},"RUN"),(0,m.h)("button",{onClick:function(){return y(_({},f,{collapsed:!1}))},style:"background-color: var(--vip-blue-10) !important"},"RESET")):"Edit me!"),(0,m.h)(T(),{value:v.query,onValueChange:function(e){return y(_({},v,{query:e,editing:!0}))},highlight:function(e){return(0,M.highlight)(e,M.languages.json,"json").split("\n").map((function(e){return'').concat(e,"")})).join("\n")},padding:0,className:X,style:{fontSize:"var(--vip-sdt-editor-font-size)",lineHeight:"1.2em"}})),(0,m.h)("div",{className:"".concat(Z," query-result-box")},(0,m.h)("div",{className:U},(0,m.h)("div",{className:W},(0,m.h)("button",{id:"query-response-copy-handle","data-clipboard-target":"#query-response-text"},"COPY")),(0,m.h)("pre",{className:"line-numbers"},(0,m.h)("code",{className:"language-json",id:"query-response-text"},v.result))))))},re=function(){var e=(0,g.qp)(x).queries;return(0,m.h)("div",null,e.length<1?"No queries to show":e.map((function(e,t){return(0,m.h)(ne,_({key:t},e))})))},oe=function(e){var t=(0,g.qp)(x).queries;return(0,m.h)("button",e,"Search: ",E()("query",t.length,!0))};const ie=function(){var e,t=v((0,g.eJ)(!1),2),n=t[0],r=t[1],o=(0,g.I4)((function(){return r(!1)}),[]),i=(0,g.I4)((function(){return r(!n)}),[n]);return(0,m.h)(x.Provider,{value:(null===(e=window)||void 0===e?void 0:e.VIPSearchDevTools)||{status:"disabled",queries:[],information:[]}},(0,m.h)("div",{className:"search-dev-tools__wrapper"},(0,m.h)(oe,{class:k,onClick:i}),(0,b.createPortal)((0,m.h)(S,{isVisible:n,closeOverlay:o,opacity:"100"},(0,m.h)("div",{className:w},(0,m.h)("h4",{className:"vip-h4 main_caption"},"Enterprise Search Dev Tools"),(0,m.h)($,null),(0,m.h)(re,null))),document.getElementById("search-dev-tools-portal"))))};var ae=function(){return(0,m.sY)((0,m.h)(ie,null),document.querySelector('[data-widget-host="vip-search-dev-tools"]'))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ae):ae()})()})(); \ 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={798:(e,t,n)=>{n.p=window.VIPSearchDevTools.__webpack_public_path__},184:(e,t)=>{var n;!function(){"use strict";function r(){for(var e=[],t=0;t1&&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=y()(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?m(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 m(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}(p()),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){this.props=e}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,M.az)(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=I,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,M.az)(r,t)}var n,r,o;return t.displayName="Lazy",t.__f=!0,t}function p(){this.u=null,this.o=null}function d(e){return this.getChildContext=function(){return e.context},e.children}function h(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,M.sY)(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:[],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,M.sY)((0,M.az)(d,{context:t.context},e.__v),t.l)}function v(e,t){var n=(0,M.az)(h,{__v:e,i:t});return n.containerInfo=t,n}function y(e,t,n){return null==t.__k&&(t.textContent=""),(0,M.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function m(e,t,n){return(0,M.ZB)(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 M.az.bind(null,e)}function S(e){return!!e&&e.$$typeof===z}function x(e){return S(e)&&e.type===M.HY}function C(e){return S(e)?M.Tm.apply(null,arguments):e}function E(e){return!!e.__k&&((0,M.sY)(null,e),!0)}function O(e){return e&&(e.base||1===e.nodeType&&e)||null}function P(e){e()}function N(e){return e}function A(){return[!1,P]}function $(e,t){var n=t(),r=(0,L.eJ)({h:{__:n,v:t}}),o=r[0].h,i=r[1];return(0,L.bt)((function(){o.__=n,o.v=t,j(o)&&i({h:o})}),[e,n,t]),(0,L.d4)((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:()=>q,Component:()=>M.wA,Fragment:()=>M.HY,PureComponent:()=>i,StrictMode:()=>oe,Suspense:()=>c,SuspenseList:()=>p,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>ee,cloneElement:()=>C,createContext:()=>M.kr,createElement:()=>M.az,createFactory:()=>k,createPortal:()=>v,createRef:()=>M.Vf,default:()=>le,findDOMNode:()=>O,flushSync:()=>re,forwardRef:()=>l,hydrate:()=>m,isElement:()=>ae,isFragment:()=>x,isValidElement:()=>S,lazy:()=>_,memo:()=>a,render:()=>y,startTransition:()=>P,unmountComponentAtNode:()=>E,unstable_batchedUpdates:()=>ne,useCallback:()=>L.I4,useContext:()=>L.qp,useDebugValue:()=>L.Qb,useDeferredValue:()=>N,useEffect:()=>L.d4,useErrorBoundary:()=>L.cO,useId:()=>L.Me,useImperativeHandle:()=>L.aP,useInsertionEffect:()=>ie,useLayoutEffect:()=>L.bt,useMemo:()=>L.Ye,useReducer:()=>L._Y,useRef:()=>L.sO,useState:()=>L.eJ,useSyncExternalStore:()=>$,useTransition:()=>A,version:()=>te});var M=n(400),L=n(396);(i.prototype=new M.wA).isPureReactComponent=!0,i.prototype.shouldComponentUpdate=function(e,t){return o(this.props,e)||o(this.state,t)};var T=M.YM.__b;M.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),T&&T(e)};var I="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,R=function(e,t){return null==e?null:(0,M.bR)((0,M.bR)(e).map(t))},q={map:R,forEach:R,count:function(e){return e?(0,M.bR)(e).length:0},only:function(e){var t=(0,M.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:M.bR},D=M.YM.__e;M.YM.__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);D(e,t,n,r)};var H=M.YM.unmount;M.YM.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 M.wA).__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,M.az)(M.HY,null,e.fallback);return o&&(o.__u&=-33),[(0,M.az)(M.HY,null,t.__a?null:e.children),o]};var Y=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?M.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?++T:o,__i:-1,__u:0};return null==o&&null!=L.vnode&&L.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&&I.sort(D));p.__r=0}function d(e,t,n,r,o,i,a,l,u,s,c){var f,_,p,d,y,m=r&&r.__k||z,g=t.length;for(n.__d=u,h(n,t,m),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=m(o,n,l=r+d,p),o.__i=s,i=null,-1!==s&&(p--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==l&&(s===l+1?d++:s>l?p>f-l?d+=s-l:d--:d=s(null!=u&&0==(131072&u.__u)?1:0))for(;a>=0||l=0){if((u=t[a])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return a;a--}if(l2&&(s.children=arguments.length>3?M.call(arguments,2):n),a(e.type,s,o||e.key,i||e.ref,null)}function j(e,t){var n={__c:t="__cC"+H++,__: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.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.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n.d(t,{HY:()=>u,Tm:()=>$,Vf:()=>l,YM:()=>L,ZB:()=>A,az:()=>i,bR:()=>y,h:()=>i,kr:()=>j,sY:()=>N,wA:()=>s});var M,L,T,I,R,q,D,H,Y={},z=[],U=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,W=Array.isArray;M=z.slice,L={__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}},T=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,I=[],q="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D=function(e,t){return e.__v.__b-t.__v.__b},p.__r=0,H=0},396:(e,t,n)=>{"use strict";function r(e,t){E.YM.__h&&E.YM.__h(S,e,O||t),O=0;var n=S.__H||(S.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:N}),n.__[e]}function o(e){return O=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);!E.YM.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__H.__h.push(n))}function l(e,t){var n=r(k++,4);!E.YM.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__h.push(n))}function u(e){return O=5,c((function(){return{current:e}}),[])}function s(e,t,n){O=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.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function f(e,t){return O=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 p(e,t){E.YM.useDebugValue&&E.YM.useDebugValue(t?t(e):e)}function d(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=P.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(m),e.__H.__h.forEach(g),e.__H.__h=[]}catch(t){e.__H.__h=[],E.YM.__e(t,e.__v)}}function y(e){var t,n=function(){clearTimeout(r),T&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);T&&(t=requestAnimationFrame(n))}function m(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,{I4:()=>f,Me:()=>h,Qb:()=>p,Ye:()=>c,_Y:()=>i,aP:()=>s,bt:()=>l,cO:()=>d,d4:()=>a,eJ:()=>o,qp:()=>_,sO:()=>u});var k,S,x,C,E=n(400),O=0,P=[],N=[],A=E.YM.__b,$=E.YM.__r,j=E.YM.diffed,M=E.YM.__c,L=E.YM.unmount;E.YM.__b=function(e){S=null,A&&A(e)},E.YM.__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.__V=N,e.__N=e.i=void 0}))):(t.__h.forEach(m),t.__h.forEach(g),t.__h=[],k=0)),x=S},E.YM.diffed=function(e){j&&j(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==P.push(t)&&C===E.YM.requestAnimationFrame||((C=E.YM.requestAnimationFrame)||y)(v)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==N&&(e.__=e.__V),e.i=void 0,e.__V=N}))),x=S=null},E.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(m),e.__h=e.__h.filter((function(e){return!e.__||g(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],E.YM.__e(n,e.__v)}})),M&&M(e,t)},E.YM.unmount=function(e){L&&L(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{m(e)}catch(e){t=e}})),n.__H=void 0,t&&E.YM.__e(t,n.__v))};var T="function"==typeof requestAnimationFrame},325:(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 p=l[_];p=Array.isArray(p)?p:[p];for(var d=0;d=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(m){if(!(C=n(w,S,e,y))||C.index>=e.length)break;var O=C.index,P=C.index+C[0].length,N=S;for(N+=k.value.length;O>=N;)N+=(k=k.next).value.length;if(S=N-=k.value.length,k.value instanceof t)continue;for(var A=k;A!==o.tail&&(Nc.reach&&(c.reach=L);var T=k.prev;if(j&&(T=i(o,T,j),S+=j.length),a(o,T,E),k=i(o,T,new t(_,v?f.tokenize($,v):$,g,$)),M&&i(o,k,M),E>1){var I={cause:_+","+d,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 p=document.readyState;"loading"===p||"interactive"===p&&_&&_.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)},277:()=>{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},759:()=>{!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}))}}()},460:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1){t._history.stack=u.slice(0,s+1);var c=t._history.stack.length;if(c>100){var f=c-100;t._history.stack=u.slice(f,c),t._history.offset=Math.max(t._history.offset-f,0)}}var _=Date.now();if(n){var p=t._history.stack[t._history.offset];if(p&&_-p.timestamp<3e3){var d=/[^a-z0-9]([a-z0-9]+)$/i,h=null===(r=t._getLines(p.value,p.selectionStart).pop())||void 0===r?void 0:r.match(d),v=null===(o=t._getLines(e.value,e.selectionStart).pop())||void 0===o?void 0:o.match(d);if((null==h?void 0:h[1])&&(null===(a=null==v?void 0:v[1])||void 0===a?void 0:a.startsWith(h[1])))return void(t._history.stack[t._history.offset]=i(i({},e),{timestamp:_}))}}t._history.stack.push(i(i({},e),{timestamp:_})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,r=t._history.stack[t._history.offset];r&&n&&(t._history.stack[t._history.offset]=i(i({},r),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.offset,r=e.stack[n-1];r&&(t._updateInput(r),t._history.offset=Math.max(n-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,r=e.offset,o=n[r+1];o&&(t._updateInput(o),t._history.offset=Math.min(r+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,r=n.tabSize,o=n.insertSpaces,i=n.ignoreTabKey,a=n.onKeyDown;if(!a||(a(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var l=e.currentTarget,u=l.value,s=l.selectionStart,c=l.selectionEnd,p=(o?" ":"\t").repeat(r);if(9===e.keyCode&&!i&&t.state.capture)if(e.preventDefault(),e.shiftKey){var d=(y=t._getLines(u,s)).length-1,h=t._getLines(u,c).length-1,v=u.split("\n").map((function(e,t){return t>=d&&t<=h&&e.startsWith(p)?e.substring(p.length):e})).join("\n");if(u!==v)t._applyEdits({value:v,selectionStart:(null==(b=y[d])?void 0:b.startsWith(p))?s-p.length:s,selectionEnd:c-(u.length-v.length)})}else if(s!==c){var y,m=(y=t._getLines(u,s)).length-1,g=t._getLines(u,c).length-1,b=y[m];t._applyEdits({value:u.split("\n").map((function(e,t){return t>=m&&t<=g?p+e:e})).join("\n"),selectionStart:b&&/\S/.test(b)?s+p.length:s,selectionEnd:c+p.length*(g-m+1)})}else{var w=s+p.length;t._applyEdits({value:u.substring(0,s)+p+u.substring(c),selectionStart:w,selectionEnd:w})}else if(8===e.keyCode){var k=s!==c;if(u.substring(0,s).endsWith(p)&&!k){e.preventDefault();w=s-p.length;t._applyEdits({value:u.substring(0,s-p.length)+u.substring(c),selectionStart:w,selectionEnd:w})}}else if(13===e.keyCode){if(s===c){var S=t._getLines(u,s).pop(),x=null==S?void 0:S.match(/^\s+/);if(null==x?void 0:x[0]){e.preventDefault();var C="\n"+x[0];w=s+C.length;t._applyEdits({value:u.substring(0,s)+C+u.substring(c),selectionStart:w,selectionEnd:w})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var E=void 0;57===e.keyCode&&e.shiftKey?E=["(",")"]:219===e.keyCode?E=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?E=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(E=["`","`"]),s!==c&&E&&(e.preventDefault(),t._applyEdits({value:u.substring(0,s)+E[0]+u.substring(s,c)+E[1]+u.substring(c),selectionStart:s,selectionEnd:c+2}))}else!(_?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(_?e.metaKey&&90===e.keyCode&&e.shiftKey:f?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||_&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,r=n.value;t._recordChange({value:r,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd},!0),t.props.onValueChange(r)},t._history={stack:[],offset:-1},t._input=null,t}return o(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,r=t.style,o=t.padding,a=t.highlight,l=t.textareaId,u=t.textareaClassName,f=t.autoFocus,_=t.disabled,h=t.form,y=t.maxLength,m=t.minLength,g=t.name,b=t.placeholder,w=t.readOnly,k=t.required,S=t.onClick,x=t.onFocus,C=t.onBlur,E=t.onKeyUp,O=t.preClassName,P=s(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),N={paddingTop:o,paddingRight:o,paddingBottom:o,paddingLeft:o},A=a(n);return c.createElement("div",i({},P,{style:i(i({},v.container),r)}),c.createElement("textarea",{ref:function(t){return e._input=t},style:i(i(i({},v.editor),v.textarea),N),className:p+(u?" ".concat(u):""),id:l,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:S,onKeyUp:E,onFocus:x,onBlur:C,disabled:_,form:h,maxLength:y,minLength:m,name:g,placeholder:b,readOnly:w,required:k,autoFocus:f,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),c.createElement("pre",i({className:O,"aria-hidden":"true",style:i(i(i({},v.editor),v.highlight),N)},"string"==typeof A?{dangerouslySetInnerHTML:{__html:A+"
    "}}:{children:A})),c.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:d}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(c.Component);t.default=h;var v={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"}}}},n={};e.n=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)||null===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:String(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)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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=new 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)||null===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:String(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)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(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=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2?"+ ".concat(E()("other",p-2,!0)):"";return(0,m.h)("div",{className:P()((t={},n(t,N.info_block,!0),n(t,N.info_block_collapsible,l.collapsible||!1),n(t,N.info_block_collapsed,s),t))},(0,m.h)("h5",{className:N.info_label,onClick:f},o),l.collapsible?(0,m.h)(A,null,(0,m.h)("div",{className:P()(n({},N.info_block_inner,!0))},_?i.map((function(e){return(0,m.h)("span",{key:e,className:N.info_block_item},e)})):(0,m.h)("span",null,i)),(0,m.h)("span",{className:N.info_block_teaser,onClick:f},_?" ".concat(i.slice(0,2).join(", ")," ").concat(d):"Click to show")):(0,m.h)("span",null,_?i.join(", "):i))},M=e(325),L=(e(759),e(277),e(460)),T=e.n(L),I=e(152),R=e.n(I);const q="collapsible_list__PJS0Z",D="collapsible_list_details__u5Pq3",H="visible__M2eJW";var Y=function(e){var t,n=e.list,r=void 0===n?[]:n,o=e.title,i=void 0===o?"View":o,a=c((0,g.eJ)(!1),2),l=a[0],u=a[1],f=i.toLowerCase();return(0,m.h)("div",{className:P()((t={},s(t,q,!0),s(t,H,l),t))},(0,m.h)("strong",{className:"".concat(f," vip-h4"),onClick:r.length?function(){u(!l)}:null},i," (","".concat(r.length),")"),(0,m.h)("ol",{className:"".concat(D," ").concat(f," vip-collapse-ol")},r.map((function(e,t){return(0,m.h)("li",{key:t},e)}))))};const z="query_wrap__uIeve",U="query_result__k_RWY",W="query_actions__ImK9_",V="query_handle__e0c8G",F="query_collapsed__PGXWS",K="grid_container__esEnb",B="query_src_header__wWAup",J="query_res_header__DMOpO",G="query_src__MoJsW",Z="query_res__FZmqB",Q="query_src_extra__aZwxj",X="container_editor___Y1qC",ee="container_editor_line_number__FU7Ow";var te=e(400).HY,ne=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=d((0,g.eJ)(f),2),v=h[0],y=h[1],b="#query-response-copy-handle",w=(0,g.I4)(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);y((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){p(l,r,o,i,a,"next",e)}function a(e){p(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,g.d4)((function(){var e=new(R())(b);return e.on("success",(function(e){document.querySelector(b).innerHTML="COPIED!",setTimeout((function(){document.querySelector(b).innerHTML="COPY"}),2e3),e.clearSelection()})),function(){return e.destroy()}}),[]),(0,g.d4)((function(){v.query!==f.query&&(v.editing||w(v.query))}),[v.query,v.editing,f.query,w]);var k;return(0,m.h)("div",{className:P()(z,v.collapsed?F:null)},(0,m.h)("div",{className:V,onClick:function(){return y(_({},v,{collapsed:!v.collapsed}))}},(0,m.h)("h3",{className:"vip-h3"},E()("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,m.h)("span",{style:"color: var(--vip-grey-60);"}," that took")," ",(0,m.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,m.h)("small",null," (",(null==r||null===(n=r.response)||void 0===n?void 0:n.code)||"unknown",")"))),(0,m.h)("div",{className:K},(0,m.h)("div",{className:B},(0,m.h)("span",{style:"margin-right: auto;"},"Request"),(0,m.h)("div",{className:Q},(0,m.h)(Y,{title:"WP_Query",list:Object.entries(i).map((function(e){var t=d(e,2),n=t[1];return"".concat(t[0],": ").concat(JSON.stringify(n))}))}),(0,m.h)(Y,{title:"Trace",list:u}))),(0,m.h)("div",{className:J},"Response"),(0,m.h)("div",{className:"".concat(G," query-src-box")},(0,m.h)("div",{className:W},v.editing||v.result!==c?(0,m.h)(te,null,(0,m.h)("button",{onClick:function(){return y(_({},v,{editing:!1}))},style:"background-color: var(--vip-green-40) !important"},"RUN"),(0,m.h)("button",{onClick:function(){return y(_({},f,{collapsed:!1}))},style:"background-color: var(--vip-blue-10) !important"},"RESET")):"Edit me!"),(0,m.h)(T(),{value:v.query,onValueChange:function(e){return y(_({},v,{query:e,editing:!0}))},highlight:function(e){return(0,M.highlight)(e,M.languages.json,"json").split("\n").map((function(e){return'').concat(e,"")})).join("\n")},padding:0,className:X,style:{fontSize:"var(--vip-sdt-editor-font-size)",lineHeight:"1.2em"}})),(0,m.h)("div",{className:"".concat(Z," query-result-box")},(0,m.h)("div",{className:U},(0,m.h)("div",{className:W},(0,m.h)("button",{id:"query-response-copy-handle","data-clipboard-target":"#query-response-text"},"COPY")),(0,m.h)("pre",{className:"line-numbers"},(0,m.h)("code",{className:"language-json",id:"query-response-text"},v.result))))))},re=function(){var e=(0,g.qp)(x).queries;return(0,m.h)("div",null,e.length<1?"No queries to show":e.map((function(e,t){return(0,m.h)(ne,_({key:t},e))})))},oe=function(e){var t=(0,g.qp)(x).queries;return(0,m.h)("button",e,"Search: ",E()("query",t.length,!0))};const ie=function(){var e,t=v((0,g.eJ)(!1),2),n=t[0],r=t[1],o=(0,g.I4)((function(){return r(!1)}),[]),i=(0,g.I4)((function(){return r(!n)}),[n]);return(0,m.h)(x.Provider,{value:(null===(e=window)||void 0===e?void 0:e.VIPSearchDevTools)||{status:"disabled",queries:[],information:[]}},(0,m.h)("div",{className:"search-dev-tools__wrapper"},(0,m.h)(oe,{class:k,onClick:i}),(0,b.createPortal)((0,m.h)(S,{isVisible:n,closeOverlay:o,opacity:"100"},(0,m.h)("div",{className:w},(0,m.h)("h4",{className:"vip-h4 main_caption"},"Enterprise Search Dev Tools"),(0,m.h)($,null),(0,m.h)(re,null))),document.getElementById("search-dev-tools-portal"))))};var ae=function(){return(0,m.sY)((0,m.h)(ie,null),document.querySelector('[data-widget-host="vip-search-dev-tools"]'))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ae):ae()})()})(); \ 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 0c4c6bec4e..9b7b62a232 100644 --- a/search/search-dev-tools/package-lock.json +++ b/search/search-dev-tools/package-lock.json @@ -9626,9 +9626,9 @@ "dev": true }, "node_modules/preact": { - "version": "10.18.1", - "resolved": "https://registry.npmjs.org/preact/-/preact-10.18.1.tgz", - "integrity": "sha512-mKUD7RRkQQM6s7Rkmi7IFkoEHjuFqRQUaXamO61E6Nn7vqF/bo7EZCmSyrUnp2UWHw0O7XjZ2eeXis+m7tf4lg==", + "version": "10.19.2", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.19.2.tgz", + "integrity": "sha512-UA9DX/OJwv6YwP9Vn7Ti/vF80XL+YA5H2l7BpCtUr3ya8LWHFzpiO5R+N7dN16ujpIxhekRFuOOF82bXX7K/lg==", "funding": { "type": "opencollective", "url": "https://opencollective.com/preact" From 3fcf9c30ea15426cd30046967f8912966a61b295 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 22:45:08 +0200 Subject: [PATCH 08/30] chore(deps-dev): Bump eslint in /search/search-dev-tools (#5034) Bumps [eslint](https://github.com/eslint/eslint) from 8.52.0 to 8.54.0. - [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.52.0...v8.54.0) --- updated-dependencies: - dependency-name: eslint 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> --- search/search-dev-tools/package-lock.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/search/search-dev-tools/package-lock.json b/search/search-dev-tools/package-lock.json index 9b7b62a232..4def1df584 100644 --- a/search/search-dev-tools/package-lock.json +++ b/search/search-dev-tools/package-lock.json @@ -1896,9 +1896,9 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz", - "integrity": "sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.3.tgz", + "integrity": "sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA==", "dev": true, "dependencies": { "ajv": "^6.12.4", @@ -1919,9 +1919,9 @@ } }, "node_modules/@eslint/js": { - "version": "8.52.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.52.0.tgz", - "integrity": "sha512-mjZVbpaeMZludF2fsWLD0Z9gCref1Tk4i9+wddjRvpUNqqcndPkBD09N/Mapey0b3jaXbLm2kICwFv2E64QinA==", + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.54.0.tgz", + "integrity": "sha512-ut5V+D+fOoWPgGGNj83GGjnntO39xDy6DWxO0wb7Jp3DcMX0TfIqdzHF85VTQkerdyGmuuMD9AKAo5KiNlf/AQ==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -5093,15 +5093,15 @@ } }, "node_modules/eslint": { - "version": "8.52.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.52.0.tgz", - "integrity": "sha512-zh/JHnaixqHZsolRB/w9/02akBk9EPrOs9JwcTP2ek7yL5bVvXuRariiaAjjoJ5DvuwQ1WAE/HsMz+w17YgBCg==", + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.54.0.tgz", + "integrity": "sha512-NY0DfAkM8BIZDVl6PgSa1ttZbx3xHgJzSNJKYcQglem6CppHyMhRIQkBVSSMaSRnLhig3jsDbEzOjwCVt4AmmA==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.2", - "@eslint/js": "8.52.0", + "@eslint/eslintrc": "^2.1.3", + "@eslint/js": "8.54.0", "@humanwhocodes/config-array": "^0.11.13", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", From 7d2de5a4a52bcec9868daf8c222dfb9c8ff14768 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 22:45:36 +0200 Subject: [PATCH 09/30] chore(deps-dev): Bump @babel/core in /search/search-dev-tools (#5017) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.23.2 to 7.23.3. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.3/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/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> --- search/search-dev-tools/package-lock.json | 78 +++++++++++------------ 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/search/search-dev-tools/package-lock.json b/search/search-dev-tools/package-lock.json index 4def1df584..f5f4375adf 100644 --- a/search/search-dev-tools/package-lock.json +++ b/search/search-dev-tools/package-lock.json @@ -99,12 +99,12 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.22.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", - "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.4.tgz", + "integrity": "sha512-r1IONyb6Ia+jYR2vvIDhdWdlTGhqbBoFqLTQidzZ4kepUFH15ejXvFHxCVbtl7BOXIudsIubf4E81xeA3h3IXA==", "dev": true, "dependencies": { - "@babel/highlight": "^7.22.13", + "@babel/highlight": "^7.23.4", "chalk": "^2.4.2" }, "engines": { @@ -121,21 +121,21 @@ } }, "node_modules/@babel/core": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.2.tgz", - "integrity": "sha512-n7s51eWdaWZ3vGT2tD4T7J6eJs3QoBXydv7vkUM06Bf1cbVD2Kc2UrkzhiQwobfV7NwOnQXYL7UBJ5VPU+RGoQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.3.tgz", + "integrity": "sha512-Jg+msLuNuCJDyBvFv5+OKOUjWMZgd85bKjbICd3zWrKAo+bJ49HJufi7CQE0q0uR8NGyO6xkCACScNqyjHSZew==", "dev": true, "dependencies": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.0", + "@babel/generator": "^7.23.3", "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-module-transforms": "^7.23.0", + "@babel/helper-module-transforms": "^7.23.3", "@babel/helpers": "^7.23.2", - "@babel/parser": "^7.23.0", + "@babel/parser": "^7.23.3", "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.2", - "@babel/types": "^7.23.0", + "@babel/traverse": "^7.23.3", + "@babel/types": "^7.23.3", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -169,12 +169,12 @@ } }, "node_modules/@babel/generator": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", - "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.4.tgz", + "integrity": "sha512-esuS49Cga3HcThFNebGhlgsrVLkvhqvYDTzgjfFFlHJcIfLe5jFmRRfCQ1KuBfc4Jrtn3ndLgKWAKjBE+IraYQ==", "dev": true, "dependencies": { - "@babel/types": "^7.23.0", + "@babel/types": "^7.23.4", "@jridgewell/gen-mapping": "^0.3.2", "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" @@ -338,9 +338,9 @@ } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.0.tgz", - "integrity": "sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", + "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", "dev": true, "dependencies": { "@babel/helper-environment-visitor": "^7.22.20", @@ -448,9 +448,9 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", - "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", "dev": true, "engines": { "node": ">=6.9.0" @@ -503,9 +503,9 @@ } }, "node_modules/@babel/highlight": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", - "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", + "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", "dev": true, "dependencies": { "@babel/helper-validator-identifier": "^7.22.20", @@ -517,9 +517,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz", - "integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.4.tgz", + "integrity": "sha512-vf3Xna6UEprW+7t6EtOmFpHNAuxw3xqPZghy+brsnusscJRW5BMUzzHZc5ICjULee81WeUV2jjakG09MDglJXQ==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -1793,19 +1793,19 @@ } }, "node_modules/@babel/traverse": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", - "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.4.tgz", + "integrity": "sha512-IYM8wSUwunWTB6tFC2dkKZhxbIjHoWemdK+3f8/wq8aKhbUscxD5MX72ubd90fxvFknaLPeGw5ycU84V1obHJg==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.0", + "@babel/code-frame": "^7.23.4", + "@babel/generator": "^7.23.4", "@babel/helper-environment-visitor": "^7.22.20", "@babel/helper-function-name": "^7.23.0", "@babel/helper-hoist-variables": "^7.22.5", "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.0", - "@babel/types": "^7.23.0", + "@babel/parser": "^7.23.4", + "@babel/types": "^7.23.4", "debug": "^4.1.0", "globals": "^11.1.0" }, @@ -1823,12 +1823,12 @@ } }, "node_modules/@babel/types": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz", - "integrity": "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.4.tgz", + "integrity": "sha512-7uIFwVYpoplT5jp/kVv6EF93VaJ8H+Yn5IczYiaAi98ajzjfoZfslet/e0sLh+wVBjb2qqIut1b0S26VSafsSQ==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-string-parser": "^7.23.4", "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" }, From 6a6dd31c1805dc44cccc46ae3f9b32f3d5b42686 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 22:46:07 +0200 Subject: [PATCH 10/30] chore(deps-dev): Bump @babel/plugin-syntax-decorators in /__tests__/e2e (#5016) Bumps [@babel/plugin-syntax-decorators](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-syntax-decorators) from 7.22.10 to 7.23.3. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.3/packages/babel-plugin-syntax-decorators) --- updated-dependencies: - dependency-name: "@babel/plugin-syntax-decorators" 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> --- __tests__/e2e/package-lock.json | 36 +++------------------------------ 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/__tests__/e2e/package-lock.json b/__tests__/e2e/package-lock.json index 232550a49e..49558c66b8 100644 --- a/__tests__/e2e/package-lock.json +++ b/__tests__/e2e/package-lock.json @@ -356,9 +356,9 @@ } }, "node_modules/@babel/plugin-syntax-decorators": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.22.10.tgz", - "integrity": "sha512-z1KTVemBjnz+kSEilAsI4lbkPOl5TvJH7YDSY1CTIzvLWJ+KHXp+mRe8VPmfnyvqOPqar1V2gid2PleKzRUstQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.23.3.tgz", + "integrity": "sha512-cf7Niq4/+/juY67E0PbgH0TDhLQ5J7zS8C/Q5FFx+DWyrRa9sUQdTXkjqKu8zGvuqr7vw1muKiukseihU+PJDA==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -671,36 +671,6 @@ "node": ">=16" } }, - "node_modules/@playwright/test/node_modules/playwright": { - "version": "1.39.0", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.39.0.tgz", - "integrity": "sha512-naE5QT11uC/Oiq0BwZ50gDmy8c8WLPRTEWuSSFVG2egBka/1qMoSqYQcROMT9zLwJ86oPofcTH2jBY/5wWOgIw==", - "dev": true, - "dependencies": { - "playwright-core": "1.39.0" - }, - "bin": { - "playwright": "cli.js" - }, - "engines": { - "node": ">=16" - }, - "optionalDependencies": { - "fsevents": "2.3.2" - } - }, - "node_modules/@playwright/test/node_modules/playwright-core": { - "version": "1.39.0", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.39.0.tgz", - "integrity": "sha512-+k4pdZgs1qiM+OUkSjx96YiKsXsmb59evFoqv8SKO067qBA+Z2s/dCzJij/ZhdQcs2zlTAgRKfeiiLm8PQ2qvw==", - "dev": true, - "bin": { - "playwright-core": "cli.js" - }, - "engines": { - "node": ">=16" - } - }, "node_modules/@rushstack/eslint-patch": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.5.1.tgz", From 418181f97e74a940356a7d379b1aacab938797af Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 23:25:14 +0200 Subject: [PATCH 11/30] chore(deps): Bump @wordpress/i18n from 4.44.0 to 4.46.0 (#5032) Bumps [@wordpress/i18n](https://github.com/WordPress/gutenberg/tree/HEAD/packages/i18n) from 4.44.0 to 4.46.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@4.46.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> --- package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 146dd906ba..ab979c58e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5798,9 +5798,9 @@ } }, "node_modules/@wordpress/hooks": { - "version": "3.44.0", - "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.44.0.tgz", - "integrity": "sha512-rWYI98Nu2S8D0bfHeoc8Lj43vZr59lFn3tGuDMnr0dZ1vDZXOiNSIPMn7qncmCuErFxWBbyXkax6mnam7Ds6jw==", + "version": "3.46.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.46.0.tgz", + "integrity": "sha512-TTYNZwMZeATpkWmvAoShP43UONd/WPNTtsy1czMSyiqPzFhzGJbKD75CdJtPp5DqIAiuWQEuDmcxRAPcZ/1Qgw==", "dependencies": { "@babel/runtime": "^7.16.0" }, @@ -5809,12 +5809,12 @@ } }, "node_modules/@wordpress/i18n": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-4.44.0.tgz", - "integrity": "sha512-90SY4//QgqoKLf3HK0vNk+D/PGwK+0KOMuIwnkwKDKBw+Vr/Vusg6qiEngVc/BETfuG9ssDtAiNEBSMm8+YGYA==", + "version": "4.46.0", + "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-4.46.0.tgz", + "integrity": "sha512-5/61hd50KkqGgoQpf66DDft6sMTKfeGVdmZOt42GWymylxFSmbZLLnR8YafECQrmia/TdwIco5I4n0hIikYbNQ==", "dependencies": { "@babel/runtime": "^7.16.0", - "@wordpress/hooks": "^3.44.0", + "@wordpress/hooks": "^3.46.0", "gettext-parser": "^1.3.1", "memize": "^2.1.0", "sprintf-js": "^1.1.1", From 4dfbb15a84f79353d9fa5b23c26ecd95f89ea57c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 23:25:45 +0200 Subject: [PATCH 12/30] chore(deps-dev): Bump @automattic/eslint-plugin-wpvip from 0.7.0 to 0.8.0 in /search/search-dev-tools (#4994) * chore(deps-dev): Bump @automattic/eslint-plugin-wpvip Bumps [@automattic/eslint-plugin-wpvip](https://github.com/Automattic/eslint-config-wpvip) from 0.7.0 to 0.8.0. - [Release notes](https://github.com/Automattic/eslint-config-wpvip/releases) - [Commits](https://github.com/Automattic/eslint-config-wpvip/compare/0.7.0...0.8.0) --- updated-dependencies: - dependency-name: "@automattic/eslint-plugin-wpvip" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * style: fix ESLint errors and warnings --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Volodymyr Kolesnykov --- search/search-dev-tools/build/bundle.css | 2 +- search/search-dev-tools/build/bundle.js | 2 +- search/search-dev-tools/package-lock.json | 887 +++++++----------- search/search-dev-tools/package.json | 2 +- search/search-dev-tools/src/components/app.js | 11 +- .../src/components/collapsible-list/index.js | 3 +- .../src/components/information-pane/index.js | 6 +- .../src/components/query/index.js | 9 +- 8 files changed, 363 insertions(+), 559 deletions(-) diff --git a/search/search-dev-tools/build/bundle.css b/search/search-dev-tools/build/bundle.css index 83504a9f6e..649a142215 100644 --- a/search/search-dev-tools/build/bundle.css +++ b/search/search-dev-tools/build/bundle.css @@ -1 +1 @@ -:root{--vip-font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--vip-secondary-font-family:"SF Pro Text",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;--vip-brand-0:#fcfafa;--vip-brand-10:#f2efec;--vip-brand-20:#eee9e5;--vip-brand-30:#e7dbcc;--vip-brand-40:#dfc39e;--vip-brand-50:#d8a45f;--vip-brand-60:#ad7832;--vip-brand-70:#835418;--vip-brand-80:#58340b;--vip-brand-90:#2d1803;--vip-brand-100:#030100;--vip-grey-0:#fafafa;--vip-grey-10:#f3f3f3;--vip-grey-20:#e4e4e4;--vip-grey-30:#c8c8c8;--vip-grey-40:#9d9d9d;--vip-grey-50:#666;--vip-grey-60:#5c5c5c;--vip-grey-70:#484848;--vip-grey-80:#2a2a2a;--vip-grey-90:#202020;--vip-grey-100:#030303;--vip-red-0:#fafafa;--vip-red-10:#ffeded;--vip-red-20:#ffd4d1;--vip-red-30:#ffaca6;--vip-red-40:#ff786f;--vip-red-50:#f24033;--vip-red-60:#c72316;--vip-red-70:#971005;--vip-red-80:#650800;--vip-red-90:#330400;--vip-red-100:#030000;--vip-green-0:#f5faf7;--vip-green-10:#e6f6eb;--vip-green-20:#c0ebcf;--vip-green-30:#85d7a4;--vip-green-40:#3eb974;--vip-green-50:#00944b;--vip-green-60:#006b3f;--vip-green-70:#00482f;--vip-green-80:#002f21;--vip-green-90:#002017;--vip-green-100:#001a13;--vip-blue-0:#fafbfc;--vip-blue-10:#ecf3f8;--vip-blue-20:#d7e9f0;--vip-blue-30:#b9dbe5;--vip-blue-40:#8bc9d6;--vip-blue-50:#2fb3c2;--vip-blue-60:#0693a9;--vip-blue-70:#00738a;--vip-blue-80:#005064;--vip-blue-90:#002c39;--vip-blue-100:#00090d;--vip-sdt-editor-font-size:0.8em}.vip-h2{font-size:32px;font-weight:400;line-height:38px}.vip-h2,.vip-h3{color:var(--vip-grey-100);font-family:var(--vip-font-family);font-style:normal}.vip-h3{font-size:20px;font-weight:500;line-height:24px}.vip-h4{color:var(--vip-grey-80);font-size:15px}.vip-h4,.vip-h5{font-family:var(--vip-secondary-font-family);font-style:normal;font-weight:400;line-height:150%}.vip-h5{color:var(--vip-grey-60);font-size:13px}.search-dev-tools__wrapper{-ms-flex-pack:center;display:-ms-flexbox;display:flex;justify-content:center;margin-top:40px}.vip-search-dev-tools-ab .ab-item{display:none!important}.main_caption{margin-bottom:4px}.vip_search_dev_tools__WdCFa{font-family:var(--vip-font-family)}.vip_search_dev_tools__WdCFa .main_caption___9dJ7{margin-bottom:4px}.ab_btn__Grxiu{-ms-flex-align:center;align-items:center;background-color:transparent;border:0;color:#eee;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;height:31px;padding:0 8px!important}.ab_btn__Grxiu:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMSIgaGVpZ2h0PSIxNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0Q4QTQ1RiIgZD0iTTYuNjI4Ljc1OUMyLjk4MS43NTkgMCAzLjczMyAwIDcuMzcyIDAgMTEuMDI2IDIuOTgxIDE0IDYuNjI4IDE0YzMuNjYyIDAgNi42NDQtMi45NzQgNi42NDQtNi42MjggMC0zLjYzOS0yLjk4Mi02LjYxMy02LjY0NC02LjYxM1pNLjY2NiA3LjM3MmMwLS44Ni4xODEtMS42NzYuNTE0LTIuNDE2bDIuODQ1IDcuNzc2YTUuOTcgNS45NyAwIDAgMS0zLjM2LTUuMzZabTUuOTYyIDUuOTQ5YTYuMSA2LjEgMCAwIDEtMS42OC0uMjQybDEuNzg2LTUuMTk0IDEuODMxIDUuMDEzYy4wMTUuMDMuMDMuMDYuMDQ2LjA3NWE1Ljc2IDUuNzYgMCAwIDEtMS45ODMuMzQ4Wm0uODMzLTguNzI3Yy4zNjMtLjAxNS42OC0uMDYuNjgtLjA2LjMxOC0uMDQ2LjI4OC0uNTE0LS4wNDUtLjQ4NCAwIDAtLjk2OC4wNzYtMS41ODkuMDc2LS41OSAwLTEuNTc0LS4wNzYtMS41NzQtLjA3Ni0uMzE3LS4wMTUtLjM2My40NjgtLjAzLjQ4M2wuNjIuMDYuOTI0IDIuNTM3LTEuMzAyIDMuODk2LTIuMTY0LTYuNDMyYy4zNjMtLjAxNS42ODEtLjA2LjY4MS0uMDYuMzE4LS4wNDYuMjg4LS41MTQtLjA0NS0uNDg0IDAgMC0uOTY5LjA3Ni0xLjU5LjA3NkgxLjY1YzEuMDc1LTEuNjMxIDIuOTA2LTIuNzAzIDQuOTgtMi43MDNhNS45NCA1Ljk0IDAgMCAxIDQuMDI1IDEuNTU1aC0uMDc2Yy0uNTkgMC0uOTk5LjUxMy0uOTk5IDEuMDU3IDAgLjQ4My4yODguOTA2LjU5IDEuMzg5LjIyNy4zOTMuNDg1LjkwNi40ODUgMS42NDYgMCAuNTEzLS4xNTIgMS4xNDctLjQ1NCAxLjkxN2wtLjU5IDEuOTc4LTIuMTUtNi4zNzFabTIuMTY0IDcuOTI2IDEuODE2LTUuMjU0Yy4zMzItLjg0NS40NTQtMS41MjUuNDU0LTIuMTI5IDAtLjIyNi0uMDE2LS40MjMtLjA0Ni0uNjE5YTUuODggNS44OCAwIDAgMSAuNzI2IDIuODU0IDUuODY2IDUuODY2IDAgMCAxLTIuOTUgNS4xNDhabTkuNjQtOC4xOTgtMS4zNDggMy45NGMtLjEzNi40ODQtLjI1Ny45MzctLjMwMiAxLjM2aC0uMDNjLS4wMy0uNDIzLS4xNTItLjg5MS0uMzAzLTEuMzZsLTEuMzQ3LTMuOTRoLTEuNzdsMi41NDIgNi42NThoMS44MTZsMi41NDItNi42NThoLTEuOFptMi42NzggMC0uNSAxLjMxM3Y1LjMzaDEuNzg2VjQuMzIyaC0xLjI4NlptNy42NTcuNzg1Yy0uNDM5LS42MDQtMS4wNi0uOTA2LTEuODQ2LS45MDYtLjgzMiAwLTEuNDA3LjMzMi0xLjgzMS45ODFoLS4wOTFsLS4yNTctLjg2aC0xLjQ1M1YxNGgxLjc4NnYtMi43OTNjMC0uMDktLjAzLS40MDgtLjA5MS0uOTY2aC4wOWMuNDQuNTczIDEgLjg0NSAxLjc4Ni44NDUuNTE1IDAgLjk2OS0uMTM2IDEuMzYyLS40MDguMzc5LS4yNzIuNjgxLS42OC44OTMtMS4xOTIuMjEyLS41MjkuMzE4LTEuMTQ4LjMxOC0xLjg1OCAwLTEuMDcyLS4yMjctMS45MTctLjY2Ni0yLjUyMVptLTIuMzQ2IDQuNTE0Yy0uNDUzIDAtLjgwMi0uMTUtMS4wMTMtLjQ2OC0uMjEyLS4zMDItLjMxOC0uODE1LS4zMTgtMS41NHYtLjE5NmMuMDE1LS42MzQuMTItMS4wODcuMzE4LTEuMzU5LjIxMi0uMjcyLjUzLS40MDcuOTgzLS40MDcuNDI0IDAgLjc0Mi4xNjYuOTM5LjQ5OC4xOTYuMzMyLjMwMi44MTUuMzAyIDEuNDguMDE1IDEuMzEzLS4zOTMgMS45OTItMS4yMSAxLjk5MloiLz48L3N2Zz4=);margin-right:7px}.ab_btn__Grxiu:hover{background:#fff;color:var(--vip-blue-60)}.search-dev-tools__overlay{background:hsla(0,0%,100%,.975);box-sizing:border-box;height:100vh;left:0;overflow-x:hidden;overflow-y:auto;padding:2rem;position:fixed;top:32px;transition:opacity .15s ease-in-out;width:100vw;z-index:9991}.search-dev-tools__overlay__close{background:transparent;background-color:#fff!important;border:0;position:absolute;right:24px;top:24px}.search-dev-tools__overlay.search-dev-tools__overlay--light{background:#fff}.search-dev-tools__overlay.search-dev-tools__overlay--dark{background:#777}.search-dev-tools__overlay *,.search-dev-tools__overlay :after,.search-dev-tools__overlay :before{box-sizing:border-box}.query_count__yBMaQ{margin:0 0 24px}.query_count__yBMaQ:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxNyIgZmlsbD0ibm9uZSI+PHBhdGggc3Ryb2tlPSIjNjc2NzY3IiBzdHJva2Utd2lkdGg9IjEuNSIgZD0ibTEgMTYgNS01Ii8+PGNpcmNsZSBjeD0iMTAuNSIgY3k9IjcuNSIgcj0iNi43NSIgc3Ryb2tlPSIjNjc2NzY3IiBzdHJva2Utd2lkdGg9IjEuNSIvPjwvc3ZnPg==);margin-right:16px}.info_wrapper__hfoFu{display:-ms-flexbox;display:flex;-ms-flex-flow:row;flex-flow:row;margin-bottom:32px}.info_label__zb5kV{color:var(--vip-grey-60);font-family:var(--vip-secondary-font-family);font-size:13px;font-style:normal;font-weight:400;line-height:150%}.info_block__MmcRf,.info_value__UCuW_{color:var(--vip-grey-80);font-family:var(--vip-secondary-font-family);font-size:13px;font-style:normal;font-weight:400;line-height:150%}.info_block__MmcRf{-ms-flex-order:0;-ms-flex-positive:0;-ms-flex:none;flex:none;flex-grow:0;margin-right:32px;order:0;position:relative}.info_block_inner__HUWuS{-ms-flex-align:start;align-items:flex-start;background:#fff;border-radius:3px;box-shadow:0 14px 38px rgba(0,0,0,.07),0 1.6711px 15.8755px rgba(0,0,0,.05),0 .893452px 8.4878px rgba(0,0,0,.042),0 .500862px 4.75819px rgba(0,0,0,.035),0 .266004px 2.52704px rgba(0,0,0,.028),0 .11069px 1.05156px rgba(0,0,0,.02);display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;min-width:300px;padding:16px;position:absolute;top:calc(100% + 12px);z-index:3}.info_block_collapsed__nKHMe .info_block_inner__HUWuS{display:none}.info_block_teaser__WU82D{color:var(--vip-brand-60);cursor:pointer}.info_block_item__VRzq4{-ms-flex-align:center;-ms-flex-order:0;-ms-flex-positive:0;align-items:center;background:var(--vip-grey-10);border-radius:2px;color:var(--vip-grey-80);display:-ms-flexbox;display:flex;-ms-flex:none;flex:none;-ms-flex-direction:row;flex-direction:row;flex-grow:0;font-family:var(--vip-secondary-font-family);font-size:11px;font-style:normal;font-weight:400;line-height:150%;margin:4px;order:0;padding:4px 8px}.collapsible_list__PJS0Z{position:relative}.collapsible_list__PJS0Z strong{color:var(--vip-grey-80);font-family:var(--vip-secondary-font-family);font-size:11px;font-style:normal;font-weight:400;line-height:150%}.collapsible_list__PJS0Z .vip-h4{color:var(--vip-brand-60);cursor:pointer}.collapsible_list_details__u5Pq3{-ms-flex-align:start;align-items:flex-start;background:#fff;border-radius:3px;box-shadow:0 14px 38px rgba(0,0,0,.07),0 1.6711px 15.8755px rgba(0,0,0,.05),0 .893452px 8.4878px rgba(0,0,0,.042),0 .500862px 4.75819px rgba(0,0,0,.035),0 .266004px 2.52704px rgba(0,0,0,.028),0 .11069px 1.05156px rgba(0,0,0,.02);display:none;list-style-position:inside;padding:16px;position:absolute;top:calc(100% + 12px);width:400px}.collapsible_list_details__u5Pq3 li{color:var(--vip-grey-80);font-family:var(--vip-secondary-font-family);font-size:13px;font-style:normal;font-weight:400;line-height:150%;margin-bottom:8px;overflow-wrap:break-word}.visible__M2eJW .collapsible_list_details__u5Pq3{display:block;z-index:2}.query_wrap__uIeve{border-top:1px solid var(--vip-grey-10);display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;margin-bottom:32px}.query_result__k_RWY,.query_val__j0UJH{background-color:var(--vip-grey-0);font-size:var(--vip-sdt-editor-font-size);margin-bottom:32px;overflow-y:scroll;padding:32px;white-space:pre;width:100%}.query_result__k_RWY>pre,.query_val__j0UJH>pre{line-height:1.2em}.query_actions__ImK9_{color:var(--vip-grey-80);font-family:var(--vip-secondary-font-family);font-size:11px;font-style:normal;font-weight:400;line-height:150%;margin:32px 0;position:absolute;right:32px;top:0;z-index:1}.query_actions__ImK9_ button{background-color:#fff!important;border:0;color:var(--vip-grey-90)!important;font-size:.8rem;font-weight:700;padding:.5em;text-transform:uppercase}.query_actions__ImK9_ button:not(:last-of-type){margin-right:32px}.query_handle__e0c8G{cursor:pointer;margin:32px 0}.query_handle__e0c8G .vip-h3{margin:0}.query_handle__e0c8G .vip-h3::selection{background-color:initial}.query_handle__e0c8G .vip-h3:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIzIiBmaWxsPSJub25lIj48cGF0aCBmaWxsPSIjNjc2NzY3IiBkPSJNMTYgLjg2djEuMjhIMFYuODZoMTZaIi8+PC9zdmc+);background-position:50%;background-repeat:no-repeat;content:"";display:inline-block;height:16px;margin-right:16px;width:16px}.query_collapsed__PGXWS .grid_container__esEnb{display:none}.query_collapsed__PGXWS .vip-h3:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNyIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzY3Njc2NyIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNOC42NC41SDcuMzZ2Ny4zNkgwdjEuMjhoNy4zNnY3LjM2aDEuMjhWOS4xNEgxNlY3Ljg2SDguNjRWLjVaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=);content:""}.grid_container__esEnb{border:1px solid var(--vip-grey-10);border-radius:3px;display:grid;gap:0 0;grid-template-areas:"query-src-header query-res-header" "query-src query-res";grid-template-columns:1fr 1fr;width:100%}.query_src_header__wWAup{-ms-flex-pack:distribute;background-color:#fff;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;grid-area:query-src-header;justify-content:space-around}.query_res_header__DMOpO{grid-area:query-res-header}.query_res_header__DMOpO,.query_src_header__wWAup{-ms-flex-align:center;align-items:center;border-bottom:1px solid var(--vip-grey-10);display:-ms-flexbox;display:flex;-ms-flex-flow:row;flex-flow:row;padding:16px 32px}.query_res__FZmqB,.query_src__MoJsW{font-size:var(--vip-sdt-editor-font-size);max-width:calc(50vw - 32px);position:relative}.query_src__MoJsW{background-color:#fff;grid-area:query-src}.query_src_extra__aZwxj{color:var(--vip-grey-80);display:-ms-flexbox;display:flex;font-family:var(--vip-secondary-font-family);font-size:11px;font-style:normal;font-weight:400;line-height:150%}.query_src_extra__aZwxj>*{margin:0 4px}.query_res__FZmqB{grid-area:query-res}.query_wrap__uIeve .container_editor___Y1qC{counter-reset:line;position:relative}.query_wrap__uIeve .container_editor___Y1qC>pre,.query_wrap__uIeve .container_editor___Y1qC>textarea{line-height:1.2em;padding:32px 64px!important}.query_wrap__uIeve .container_editor_line_number__FU7Ow:before{color:var(--vip-grey-60);content:counter(line);counter-increment:line;margin-right:12px;opacity:.5;position:absolute;right:calc(100% - 56px);text-align:right;-webkit-user-select:none;-ms-user-select:none;user-select:none}#search-dev-tools-portal code[class*=language-],#search-dev-tools-portal pre[class*=language-]{color:#e3116c;direction:ltr;font-family:var(--vip-font-family);-webkit-hyphens:none;-ms-hyphens:none;hyphens:none;line-height:1.2em;-o-tab-size:4;tab-size:4;text-align:left;white-space:pre;word-break:normal;word-spacing:normal}#search-dev-tools-portal code[class*=language-] ::selection,#search-dev-tools-portal code[class*=language-]::selection,#search-dev-tools-portal pre[class*=language-] ::selection,#search-dev-tools-portal pre[class*=language-]::selection{background:#b3d4fc}#search-dev-tools-portal pre[class*=language-]{background-color:#fff;border:1px solid #ddd;margin:.5em 0;overflow:auto;padding:1em}#search-dev-tools-portal :not(pre)>code[class*=language-]{background:#f8f8f8;border:1px solid #ddd;padding:1px .2em}#search-dev-tools-portal .token.cdata,#search-dev-tools-portal .token.comment,#search-dev-tools-portal .token.doctype,#search-dev-tools-portal .token.prolog{color:#998;font-style:italic}#search-dev-tools-portal .token.namespace{opacity:.7}#search-dev-tools-portal .token.attr-value,#search-dev-tools-portal .token.string{color:#e3116c}#search-dev-tools-portal .token.operator,#search-dev-tools-portal .token.punctuation{color:#393a34}#search-dev-tools-portal .token.boolean,#search-dev-tools-portal .token.constant,#search-dev-tools-portal .token.entity,#search-dev-tools-portal .token.inserted,#search-dev-tools-portal .token.number,#search-dev-tools-portal .token.property,#search-dev-tools-portal .token.regex,#search-dev-tools-portal .token.symbol,#search-dev-tools-portal .token.url,#search-dev-tools-portal .token.variable{color:#36acaa}#search-dev-tools-portal .language-autohotkey .token.selector,#search-dev-tools-portal .token.atrule,#search-dev-tools-portal .token.attr-name,#search-dev-tools-portal .token.keyword{color:#00a4db}#search-dev-tools-portal .language-autohotkey .token.tag,#search-dev-tools-portal .token.deleted,#search-dev-tools-portal .token.function{color:#9a050f}#search-dev-tools-portal .language-autohotkey .token.keyword,#search-dev-tools-portal .token.selector,#search-dev-tools-portal .token.tag{color:#00009f}#search-dev-tools-portal .token.bold,#search-dev-tools-portal .token.function,#search-dev-tools-portal .token.important{font-weight:700}#search-dev-tools-portal .token.italic{font-style:italic}#search-dev-tools-portal pre[class*=language-]{background-color:unset;border:0;margin-top:0;padding-top:0}#search-dev-tools-portal pre[class*=language-].line-numbers{counter-reset:linenumber;padding-left:3.8em;position:relative}#search-dev-tools-portal pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}#search-dev-tools-portal .line-numbers .line-numbers-rows{font-size:12px;left:-3.8em;pointer-events:none;position:absolute;top:0;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:3em}#search-dev-tools-portal .line-numbers-rows>span{counter-increment:linenumber;display:block}#search-dev-tools-portal .line-numbers-rows>span:before{color:var(--vip-grey-60);content:counter(linenumber);display:block;opacity:.5;padding-right:.8em;text-align:right} \ No newline at end of file +:root{--vip-font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--vip-secondary-font-family:"SF Pro Text",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;--vip-brand-0:#fcfafa;--vip-brand-10:#f2efec;--vip-brand-20:#eee9e5;--vip-brand-30:#e7dbcc;--vip-brand-40:#dfc39e;--vip-brand-50:#d8a45f;--vip-brand-60:#ad7832;--vip-brand-70:#835418;--vip-brand-80:#58340b;--vip-brand-90:#2d1803;--vip-brand-100:#030100;--vip-grey-0:#fafafa;--vip-grey-10:#f3f3f3;--vip-grey-20:#e4e4e4;--vip-grey-30:#c8c8c8;--vip-grey-40:#9d9d9d;--vip-grey-50:#666;--vip-grey-60:#5c5c5c;--vip-grey-70:#484848;--vip-grey-80:#2a2a2a;--vip-grey-90:#202020;--vip-grey-100:#030303;--vip-red-0:#fafafa;--vip-red-10:#ffeded;--vip-red-20:#ffd4d1;--vip-red-30:#ffaca6;--vip-red-40:#ff786f;--vip-red-50:#f24033;--vip-red-60:#c72316;--vip-red-70:#971005;--vip-red-80:#650800;--vip-red-90:#330400;--vip-red-100:#030000;--vip-green-0:#f5faf7;--vip-green-10:#e6f6eb;--vip-green-20:#c0ebcf;--vip-green-30:#85d7a4;--vip-green-40:#3eb974;--vip-green-50:#00944b;--vip-green-60:#006b3f;--vip-green-70:#00482f;--vip-green-80:#002f21;--vip-green-90:#002017;--vip-green-100:#001a13;--vip-blue-0:#fafbfc;--vip-blue-10:#ecf3f8;--vip-blue-20:#d7e9f0;--vip-blue-30:#b9dbe5;--vip-blue-40:#8bc9d6;--vip-blue-50:#2fb3c2;--vip-blue-60:#0693a9;--vip-blue-70:#00738a;--vip-blue-80:#005064;--vip-blue-90:#002c39;--vip-blue-100:#00090d;--vip-sdt-editor-font-size:0.8em}.vip-h2{font-size:32px;font-weight:400;line-height:38px}.vip-h2,.vip-h3{color:var(--vip-grey-100);font-family:var(--vip-font-family);font-style:normal}.vip-h3{font-size:20px;font-weight:500;line-height:24px}.vip-h4{color:var(--vip-grey-80);font-size:15px}.vip-h4,.vip-h5{font-family:var(--vip-secondary-font-family);font-style:normal;font-weight:400;line-height:150%}.vip-h5{color:var(--vip-grey-60);font-size:13px}.search-dev-tools__wrapper{-ms-flex-pack:center;display:-ms-flexbox;display:flex;justify-content:center;margin-top:40px}.vip-search-dev-tools-ab .ab-item{display:none!important}.main_caption{margin-bottom:4px}.query_count__yBMaQ{margin:0 0 24px}.query_count__yBMaQ:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxNyIgZmlsbD0ibm9uZSI+PHBhdGggc3Ryb2tlPSIjNjc2NzY3IiBzdHJva2Utd2lkdGg9IjEuNSIgZD0ibTEgMTYgNS01Ii8+PGNpcmNsZSBjeD0iMTAuNSIgY3k9IjcuNSIgcj0iNi43NSIgc3Ryb2tlPSIjNjc2NzY3IiBzdHJva2Utd2lkdGg9IjEuNSIvPjwvc3ZnPg==);margin-right:16px}.info_wrapper__hfoFu{display:-ms-flexbox;display:flex;-ms-flex-flow:row;flex-flow:row;margin-bottom:32px}.info_label__zb5kV{color:var(--vip-grey-60);font-family:var(--vip-secondary-font-family);font-size:13px;font-style:normal;font-weight:400;line-height:150%}.info_block__MmcRf,.info_value__UCuW_{color:var(--vip-grey-80);font-family:var(--vip-secondary-font-family);font-size:13px;font-style:normal;font-weight:400;line-height:150%}.info_block__MmcRf{-ms-flex-order:0;-ms-flex-positive:0;-ms-flex:none;flex:none;flex-grow:0;margin-right:32px;order:0;position:relative}.info_block_inner__HUWuS{-ms-flex-align:start;align-items:flex-start;background:#fff;border-radius:3px;box-shadow:0 14px 38px rgba(0,0,0,.07),0 1.6711px 15.8755px rgba(0,0,0,.05),0 .893452px 8.4878px rgba(0,0,0,.042),0 .500862px 4.75819px rgba(0,0,0,.035),0 .266004px 2.52704px rgba(0,0,0,.028),0 .11069px 1.05156px rgba(0,0,0,.02);display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;min-width:300px;padding:16px;position:absolute;top:calc(100% + 12px);z-index:3}.info_block_collapsed__nKHMe .info_block_inner__HUWuS{display:none}.info_block_teaser__WU82D{color:var(--vip-brand-60);cursor:pointer}.info_block_item__VRzq4{-ms-flex-align:center;-ms-flex-order:0;-ms-flex-positive:0;align-items:center;background:var(--vip-grey-10);border-radius:2px;color:var(--vip-grey-80);display:-ms-flexbox;display:flex;-ms-flex:none;flex:none;-ms-flex-direction:row;flex-direction:row;flex-grow:0;font-family:var(--vip-secondary-font-family);font-size:11px;font-style:normal;font-weight:400;line-height:150%;margin:4px;order:0;padding:4px 8px}.search-dev-tools__overlay{background:hsla(0,0%,100%,.975);box-sizing:border-box;height:100vh;left:0;overflow-x:hidden;overflow-y:auto;padding:2rem;position:fixed;top:32px;transition:opacity .15s ease-in-out;width:100vw;z-index:9991}.search-dev-tools__overlay__close{background:transparent;background-color:#fff!important;border:0;position:absolute;right:24px;top:24px}.search-dev-tools__overlay.search-dev-tools__overlay--light{background:#fff}.search-dev-tools__overlay.search-dev-tools__overlay--dark{background:#777}.search-dev-tools__overlay *,.search-dev-tools__overlay :after,.search-dev-tools__overlay :before{box-sizing:border-box}.query_wrap__uIeve{border-top:1px solid var(--vip-grey-10);display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;margin-bottom:32px}.query_result__k_RWY,.query_val__j0UJH{background-color:var(--vip-grey-0);font-size:var(--vip-sdt-editor-font-size);margin-bottom:32px;overflow-y:scroll;padding:32px;white-space:pre;width:100%}.query_result__k_RWY>pre,.query_val__j0UJH>pre{line-height:1.2em}.query_actions__ImK9_{color:var(--vip-grey-80);font-family:var(--vip-secondary-font-family);font-size:11px;font-style:normal;font-weight:400;line-height:150%;margin:32px 0;position:absolute;right:32px;top:0;z-index:1}.query_actions__ImK9_ button{background-color:#fff!important;border:0;color:var(--vip-grey-90)!important;font-size:.8rem;font-weight:700;padding:.5em;text-transform:uppercase}.query_actions__ImK9_ button:not(:last-of-type){margin-right:32px}.query_handle__e0c8G{cursor:pointer;margin:32px 0}.query_handle__e0c8G .vip-h3{margin:0}.query_handle__e0c8G .vip-h3::selection{background-color:initial}.query_handle__e0c8G .vip-h3:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIzIiBmaWxsPSJub25lIj48cGF0aCBmaWxsPSIjNjc2NzY3IiBkPSJNMTYgLjg2djEuMjhIMFYuODZoMTZaIi8+PC9zdmc+);background-position:50%;background-repeat:no-repeat;content:"";display:inline-block;height:16px;margin-right:16px;width:16px}.query_collapsed__PGXWS .grid_container__esEnb{display:none}.query_collapsed__PGXWS .vip-h3:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNyIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzY3Njc2NyIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNOC42NC41SDcuMzZ2Ny4zNkgwdjEuMjhoNy4zNnY3LjM2aDEuMjhWOS4xNEgxNlY3Ljg2SDguNjRWLjVaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=);content:""}.grid_container__esEnb{border:1px solid var(--vip-grey-10);border-radius:3px;display:grid;gap:0 0;grid-template-areas:"query-src-header query-res-header" "query-src query-res";grid-template-columns:1fr 1fr;width:100%}.query_src_header__wWAup{-ms-flex-pack:distribute;background-color:#fff;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;grid-area:query-src-header;justify-content:space-around}.query_res_header__DMOpO{grid-area:query-res-header}.query_res_header__DMOpO,.query_src_header__wWAup{-ms-flex-align:center;align-items:center;border-bottom:1px solid var(--vip-grey-10);display:-ms-flexbox;display:flex;-ms-flex-flow:row;flex-flow:row;padding:16px 32px}.query_res__FZmqB,.query_src__MoJsW{font-size:var(--vip-sdt-editor-font-size);max-width:calc(50vw - 32px);position:relative}.query_src__MoJsW{background-color:#fff;grid-area:query-src}.query_src_extra__aZwxj{color:var(--vip-grey-80);display:-ms-flexbox;display:flex;font-family:var(--vip-secondary-font-family);font-size:11px;font-style:normal;font-weight:400;line-height:150%}.query_src_extra__aZwxj>*{margin:0 4px}.query_res__FZmqB{grid-area:query-res}.query_wrap__uIeve .container_editor___Y1qC{counter-reset:line;position:relative}.query_wrap__uIeve .container_editor___Y1qC>pre,.query_wrap__uIeve .container_editor___Y1qC>textarea{line-height:1.2em;padding:32px 64px!important}.query_wrap__uIeve .container_editor_line_number__FU7Ow:before{color:var(--vip-grey-60);content:counter(line);counter-increment:line;margin-right:12px;opacity:.5;position:absolute;right:calc(100% - 56px);text-align:right;-webkit-user-select:none;-ms-user-select:none;user-select:none}.collapsible_list__PJS0Z{position:relative}.collapsible_list__PJS0Z strong{color:var(--vip-grey-80);font-family:var(--vip-secondary-font-family);font-size:11px;font-style:normal;font-weight:400;line-height:150%}.collapsible_list__PJS0Z .vip-h4{color:var(--vip-brand-60);cursor:pointer}.collapsible_list_details__u5Pq3{-ms-flex-align:start;align-items:flex-start;background:#fff;border-radius:3px;box-shadow:0 14px 38px rgba(0,0,0,.07),0 1.6711px 15.8755px rgba(0,0,0,.05),0 .893452px 8.4878px rgba(0,0,0,.042),0 .500862px 4.75819px rgba(0,0,0,.035),0 .266004px 2.52704px rgba(0,0,0,.028),0 .11069px 1.05156px rgba(0,0,0,.02);display:none;list-style-position:inside;padding:16px;position:absolute;top:calc(100% + 12px);width:400px}.collapsible_list_details__u5Pq3 li{color:var(--vip-grey-80);font-family:var(--vip-secondary-font-family);font-size:13px;font-style:normal;font-weight:400;line-height:150%;margin-bottom:8px;overflow-wrap:break-word}.visible__M2eJW .collapsible_list_details__u5Pq3{display:block;z-index:2}#search-dev-tools-portal code[class*=language-],#search-dev-tools-portal pre[class*=language-]{color:#e3116c;direction:ltr;font-family:var(--vip-font-family);-webkit-hyphens:none;-ms-hyphens:none;hyphens:none;line-height:1.2em;-o-tab-size:4;tab-size:4;text-align:left;white-space:pre;word-break:normal;word-spacing:normal}#search-dev-tools-portal code[class*=language-] ::selection,#search-dev-tools-portal code[class*=language-]::selection,#search-dev-tools-portal pre[class*=language-] ::selection,#search-dev-tools-portal pre[class*=language-]::selection{background:#b3d4fc}#search-dev-tools-portal pre[class*=language-]{background-color:#fff;border:1px solid #ddd;margin:.5em 0;overflow:auto;padding:1em}#search-dev-tools-portal :not(pre)>code[class*=language-]{background:#f8f8f8;border:1px solid #ddd;padding:1px .2em}#search-dev-tools-portal .token.cdata,#search-dev-tools-portal .token.comment,#search-dev-tools-portal .token.doctype,#search-dev-tools-portal .token.prolog{color:#998;font-style:italic}#search-dev-tools-portal .token.namespace{opacity:.7}#search-dev-tools-portal .token.attr-value,#search-dev-tools-portal .token.string{color:#e3116c}#search-dev-tools-portal .token.operator,#search-dev-tools-portal .token.punctuation{color:#393a34}#search-dev-tools-portal .token.boolean,#search-dev-tools-portal .token.constant,#search-dev-tools-portal .token.entity,#search-dev-tools-portal .token.inserted,#search-dev-tools-portal .token.number,#search-dev-tools-portal .token.property,#search-dev-tools-portal .token.regex,#search-dev-tools-portal .token.symbol,#search-dev-tools-portal .token.url,#search-dev-tools-portal .token.variable{color:#36acaa}#search-dev-tools-portal .language-autohotkey .token.selector,#search-dev-tools-portal .token.atrule,#search-dev-tools-portal .token.attr-name,#search-dev-tools-portal .token.keyword{color:#00a4db}#search-dev-tools-portal .language-autohotkey .token.tag,#search-dev-tools-portal .token.deleted,#search-dev-tools-portal .token.function{color:#9a050f}#search-dev-tools-portal .language-autohotkey .token.keyword,#search-dev-tools-portal .token.selector,#search-dev-tools-portal .token.tag{color:#00009f}#search-dev-tools-portal .token.bold,#search-dev-tools-portal .token.function,#search-dev-tools-portal .token.important{font-weight:700}#search-dev-tools-portal .token.italic{font-style:italic}#search-dev-tools-portal pre[class*=language-]{background-color:unset;border:0;margin-top:0;padding-top:0}#search-dev-tools-portal pre[class*=language-].line-numbers{counter-reset:linenumber;padding-left:3.8em;position:relative}#search-dev-tools-portal pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}#search-dev-tools-portal .line-numbers .line-numbers-rows{font-size:12px;left:-3.8em;pointer-events:none;position:absolute;top:0;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:3em}#search-dev-tools-portal .line-numbers-rows>span{counter-increment:linenumber;display:block}#search-dev-tools-portal .line-numbers-rows>span:before{color:var(--vip-grey-60);content:counter(linenumber);display:block;opacity:.5;padding-right:.8em;text-align:right}.vip_search_dev_tools__WdCFa{font-family:var(--vip-font-family)}.vip_search_dev_tools__WdCFa .main_caption___9dJ7{margin-bottom:4px}.ab_btn__Grxiu{-ms-flex-align:center;align-items:center;background-color:transparent;border:0;color:#eee;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;height:31px;padding:0 8px!important}.ab_btn__Grxiu:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMSIgaGVpZ2h0PSIxNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0Q4QTQ1RiIgZD0iTTYuNjI4Ljc1OUMyLjk4MS43NTkgMCAzLjczMyAwIDcuMzcyIDAgMTEuMDI2IDIuOTgxIDE0IDYuNjI4IDE0YzMuNjYyIDAgNi42NDQtMi45NzQgNi42NDQtNi42MjggMC0zLjYzOS0yLjk4Mi02LjYxMy02LjY0NC02LjYxM1pNLjY2NiA3LjM3MmMwLS44Ni4xODEtMS42NzYuNTE0LTIuNDE2bDIuODQ1IDcuNzc2YTUuOTcgNS45NyAwIDAgMS0zLjM2LTUuMzZabTUuOTYyIDUuOTQ5YTYuMSA2LjEgMCAwIDEtMS42OC0uMjQybDEuNzg2LTUuMTk0IDEuODMxIDUuMDEzYy4wMTUuMDMuMDMuMDYuMDQ2LjA3NWE1Ljc2IDUuNzYgMCAwIDEtMS45ODMuMzQ4Wm0uODMzLTguNzI3Yy4zNjMtLjAxNS42OC0uMDYuNjgtLjA2LjMxOC0uMDQ2LjI4OC0uNTE0LS4wNDUtLjQ4NCAwIDAtLjk2OC4wNzYtMS41ODkuMDc2LS41OSAwLTEuNTc0LS4wNzYtMS41NzQtLjA3Ni0uMzE3LS4wMTUtLjM2My40NjgtLjAzLjQ4M2wuNjIuMDYuOTI0IDIuNTM3LTEuMzAyIDMuODk2LTIuMTY0LTYuNDMyYy4zNjMtLjAxNS42ODEtLjA2LjY4MS0uMDYuMzE4LS4wNDYuMjg4LS41MTQtLjA0NS0uNDg0IDAgMC0uOTY5LjA3Ni0xLjU5LjA3NkgxLjY1YzEuMDc1LTEuNjMxIDIuOTA2LTIuNzAzIDQuOTgtMi43MDNhNS45NCA1Ljk0IDAgMCAxIDQuMDI1IDEuNTU1aC0uMDc2Yy0uNTkgMC0uOTk5LjUxMy0uOTk5IDEuMDU3IDAgLjQ4My4yODguOTA2LjU5IDEuMzg5LjIyNy4zOTMuNDg1LjkwNi40ODUgMS42NDYgMCAuNTEzLS4xNTIgMS4xNDctLjQ1NCAxLjkxN2wtLjU5IDEuOTc4LTIuMTUtNi4zNzFabTIuMTY0IDcuOTI2IDEuODE2LTUuMjU0Yy4zMzItLjg0NS40NTQtMS41MjUuNDU0LTIuMTI5IDAtLjIyNi0uMDE2LS40MjMtLjA0Ni0uNjE5YTUuODggNS44OCAwIDAgMSAuNzI2IDIuODU0IDUuODY2IDUuODY2IDAgMCAxLTIuOTUgNS4xNDhabTkuNjQtOC4xOTgtMS4zNDggMy45NGMtLjEzNi40ODQtLjI1Ny45MzctLjMwMiAxLjM2aC0uMDNjLS4wMy0uNDIzLS4xNTItLjg5MS0uMzAzLTEuMzZsLTEuMzQ3LTMuOTRoLTEuNzdsMi41NDIgNi42NThoMS44MTZsMi41NDItNi42NThoLTEuOFptMi42NzggMC0uNSAxLjMxM3Y1LjMzaDEuNzg2VjQuMzIyaC0xLjI4NlptNy42NTcuNzg1Yy0uNDM5LS42MDQtMS4wNi0uOTA2LTEuODQ2LS45MDYtLjgzMiAwLTEuNDA3LjMzMi0xLjgzMS45ODFoLS4wOTFsLS4yNTctLjg2aC0xLjQ1M1YxNGgxLjc4NnYtMi43OTNjMC0uMDktLjAzLS40MDgtLjA5MS0uOTY2aC4wOWMuNDQuNTczIDEgLjg0NSAxLjc4Ni44NDUuNTE1IDAgLjk2OS0uMTM2IDEuMzYyLS40MDguMzc5LS4yNzIuNjgxLS42OC44OTMtMS4xOTIuMjEyLS41MjkuMzE4LTEuMTQ4LjMxOC0xLjg1OCAwLTEuMDcyLS4yMjctMS45MTctLjY2Ni0yLjUyMVptLTIuMzQ2IDQuNTE0Yy0uNDUzIDAtLjgwMi0uMTUtMS4wMTMtLjQ2OC0uMjEyLS4zMDItLjMxOC0uODE1LS4zMTgtMS41NHYtLjE5NmMuMDE1LS42MzQuMTItMS4wODcuMzE4LTEuMzU5LjIxMi0uMjcyLjUzLS40MDcuOTgzLS40MDcuNDI0IDAgLjc0Mi4xNjYuOTM5LjQ5OC4xOTYuMzMyLjMwMi44MTUuMzAyIDEuNDguMDE1IDEuMzEzLS4zOTMgMS45OTItMS4yMSAxLjk5MloiLz48L3N2Zz4=);margin-right:7px}.ab_btn__Grxiu:hover{background:#fff;color:var(--vip-blue-60)} \ No newline at end of file diff --git a/search/search-dev-tools/build/bundle.js b/search/search-dev-tools/build/bundle.js index b0072cd0b3..ef469bcbb1 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={798:(e,t,n)=>{n.p=window.VIPSearchDevTools.__webpack_public_path__},184:(e,t)=>{var n;!function(){"use strict";function r(){for(var e=[],t=0;t1&&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=y()(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?m(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 m(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}(p()),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){this.props=e}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,M.az)(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=I,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,M.az)(r,t)}var n,r,o;return t.displayName="Lazy",t.__f=!0,t}function p(){this.u=null,this.o=null}function d(e){return this.getChildContext=function(){return e.context},e.children}function h(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,M.sY)(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:[],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,M.sY)((0,M.az)(d,{context:t.context},e.__v),t.l)}function v(e,t){var n=(0,M.az)(h,{__v:e,i:t});return n.containerInfo=t,n}function y(e,t,n){return null==t.__k&&(t.textContent=""),(0,M.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function m(e,t,n){return(0,M.ZB)(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 M.az.bind(null,e)}function S(e){return!!e&&e.$$typeof===z}function x(e){return S(e)&&e.type===M.HY}function C(e){return S(e)?M.Tm.apply(null,arguments):e}function E(e){return!!e.__k&&((0,M.sY)(null,e),!0)}function O(e){return e&&(e.base||1===e.nodeType&&e)||null}function P(e){e()}function N(e){return e}function A(){return[!1,P]}function $(e,t){var n=t(),r=(0,L.eJ)({h:{__:n,v:t}}),o=r[0].h,i=r[1];return(0,L.bt)((function(){o.__=n,o.v=t,j(o)&&i({h:o})}),[e,n,t]),(0,L.d4)((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:()=>q,Component:()=>M.wA,Fragment:()=>M.HY,PureComponent:()=>i,StrictMode:()=>oe,Suspense:()=>c,SuspenseList:()=>p,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>ee,cloneElement:()=>C,createContext:()=>M.kr,createElement:()=>M.az,createFactory:()=>k,createPortal:()=>v,createRef:()=>M.Vf,default:()=>le,findDOMNode:()=>O,flushSync:()=>re,forwardRef:()=>l,hydrate:()=>m,isElement:()=>ae,isFragment:()=>x,isValidElement:()=>S,lazy:()=>_,memo:()=>a,render:()=>y,startTransition:()=>P,unmountComponentAtNode:()=>E,unstable_batchedUpdates:()=>ne,useCallback:()=>L.I4,useContext:()=>L.qp,useDebugValue:()=>L.Qb,useDeferredValue:()=>N,useEffect:()=>L.d4,useErrorBoundary:()=>L.cO,useId:()=>L.Me,useImperativeHandle:()=>L.aP,useInsertionEffect:()=>ie,useLayoutEffect:()=>L.bt,useMemo:()=>L.Ye,useReducer:()=>L._Y,useRef:()=>L.sO,useState:()=>L.eJ,useSyncExternalStore:()=>$,useTransition:()=>A,version:()=>te});var M=n(400),L=n(396);(i.prototype=new M.wA).isPureReactComponent=!0,i.prototype.shouldComponentUpdate=function(e,t){return o(this.props,e)||o(this.state,t)};var T=M.YM.__b;M.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),T&&T(e)};var I="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,R=function(e,t){return null==e?null:(0,M.bR)((0,M.bR)(e).map(t))},q={map:R,forEach:R,count:function(e){return e?(0,M.bR)(e).length:0},only:function(e){var t=(0,M.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:M.bR},D=M.YM.__e;M.YM.__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);D(e,t,n,r)};var H=M.YM.unmount;M.YM.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 M.wA).__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,M.az)(M.HY,null,e.fallback);return o&&(o.__u&=-33),[(0,M.az)(M.HY,null,t.__a?null:e.children),o]};var Y=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?M.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?++T:o,__i:-1,__u:0};return null==o&&null!=L.vnode&&L.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&&I.sort(D));p.__r=0}function d(e,t,n,r,o,i,a,l,u,s,c){var f,_,p,d,y,m=r&&r.__k||z,g=t.length;for(n.__d=u,h(n,t,m),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=m(o,n,l=r+d,p),o.__i=s,i=null,-1!==s&&(p--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==l&&(s===l+1?d++:s>l?p>f-l?d+=s-l:d--:d=s(null!=u&&0==(131072&u.__u)?1:0))for(;a>=0||l=0){if((u=t[a])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return a;a--}if(l2&&(s.children=arguments.length>3?M.call(arguments,2):n),a(e.type,s,o||e.key,i||e.ref,null)}function j(e,t){var n={__c:t="__cC"+H++,__: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.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.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n.d(t,{HY:()=>u,Tm:()=>$,Vf:()=>l,YM:()=>L,ZB:()=>A,az:()=>i,bR:()=>y,h:()=>i,kr:()=>j,sY:()=>N,wA:()=>s});var M,L,T,I,R,q,D,H,Y={},z=[],U=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,W=Array.isArray;M=z.slice,L={__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}},T=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,I=[],q="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D=function(e,t){return e.__v.__b-t.__v.__b},p.__r=0,H=0},396:(e,t,n)=>{"use strict";function r(e,t){E.YM.__h&&E.YM.__h(S,e,O||t),O=0;var n=S.__H||(S.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:N}),n.__[e]}function o(e){return O=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);!E.YM.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__H.__h.push(n))}function l(e,t){var n=r(k++,4);!E.YM.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__h.push(n))}function u(e){return O=5,c((function(){return{current:e}}),[])}function s(e,t,n){O=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.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function f(e,t){return O=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 p(e,t){E.YM.useDebugValue&&E.YM.useDebugValue(t?t(e):e)}function d(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=P.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(m),e.__H.__h.forEach(g),e.__H.__h=[]}catch(t){e.__H.__h=[],E.YM.__e(t,e.__v)}}function y(e){var t,n=function(){clearTimeout(r),T&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);T&&(t=requestAnimationFrame(n))}function m(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,{I4:()=>f,Me:()=>h,Qb:()=>p,Ye:()=>c,_Y:()=>i,aP:()=>s,bt:()=>l,cO:()=>d,d4:()=>a,eJ:()=>o,qp:()=>_,sO:()=>u});var k,S,x,C,E=n(400),O=0,P=[],N=[],A=E.YM.__b,$=E.YM.__r,j=E.YM.diffed,M=E.YM.__c,L=E.YM.unmount;E.YM.__b=function(e){S=null,A&&A(e)},E.YM.__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.__V=N,e.__N=e.i=void 0}))):(t.__h.forEach(m),t.__h.forEach(g),t.__h=[],k=0)),x=S},E.YM.diffed=function(e){j&&j(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==P.push(t)&&C===E.YM.requestAnimationFrame||((C=E.YM.requestAnimationFrame)||y)(v)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==N&&(e.__=e.__V),e.i=void 0,e.__V=N}))),x=S=null},E.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(m),e.__h=e.__h.filter((function(e){return!e.__||g(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],E.YM.__e(n,e.__v)}})),M&&M(e,t)},E.YM.unmount=function(e){L&&L(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{m(e)}catch(e){t=e}})),n.__H=void 0,t&&E.YM.__e(t,n.__v))};var T="function"==typeof requestAnimationFrame},325:(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 p=l[_];p=Array.isArray(p)?p:[p];for(var d=0;d=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(m){if(!(C=n(w,S,e,y))||C.index>=e.length)break;var O=C.index,P=C.index+C[0].length,N=S;for(N+=k.value.length;O>=N;)N+=(k=k.next).value.length;if(S=N-=k.value.length,k.value instanceof t)continue;for(var A=k;A!==o.tail&&(Nc.reach&&(c.reach=L);var T=k.prev;if(j&&(T=i(o,T,j),S+=j.length),a(o,T,E),k=i(o,T,new t(_,v?f.tokenize($,v):$,g,$)),M&&i(o,k,M),E>1){var I={cause:_+","+d,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 p=document.readyState;"loading"===p||"interactive"===p&&_&&_.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)},277:()=>{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},759:()=>{!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}))}}()},460:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1){t._history.stack=u.slice(0,s+1);var c=t._history.stack.length;if(c>100){var f=c-100;t._history.stack=u.slice(f,c),t._history.offset=Math.max(t._history.offset-f,0)}}var _=Date.now();if(n){var p=t._history.stack[t._history.offset];if(p&&_-p.timestamp<3e3){var d=/[^a-z0-9]([a-z0-9]+)$/i,h=null===(r=t._getLines(p.value,p.selectionStart).pop())||void 0===r?void 0:r.match(d),v=null===(o=t._getLines(e.value,e.selectionStart).pop())||void 0===o?void 0:o.match(d);if((null==h?void 0:h[1])&&(null===(a=null==v?void 0:v[1])||void 0===a?void 0:a.startsWith(h[1])))return void(t._history.stack[t._history.offset]=i(i({},e),{timestamp:_}))}}t._history.stack.push(i(i({},e),{timestamp:_})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,r=t._history.stack[t._history.offset];r&&n&&(t._history.stack[t._history.offset]=i(i({},r),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.offset,r=e.stack[n-1];r&&(t._updateInput(r),t._history.offset=Math.max(n-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,r=e.offset,o=n[r+1];o&&(t._updateInput(o),t._history.offset=Math.min(r+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,r=n.tabSize,o=n.insertSpaces,i=n.ignoreTabKey,a=n.onKeyDown;if(!a||(a(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var l=e.currentTarget,u=l.value,s=l.selectionStart,c=l.selectionEnd,p=(o?" ":"\t").repeat(r);if(9===e.keyCode&&!i&&t.state.capture)if(e.preventDefault(),e.shiftKey){var d=(y=t._getLines(u,s)).length-1,h=t._getLines(u,c).length-1,v=u.split("\n").map((function(e,t){return t>=d&&t<=h&&e.startsWith(p)?e.substring(p.length):e})).join("\n");if(u!==v)t._applyEdits({value:v,selectionStart:(null==(b=y[d])?void 0:b.startsWith(p))?s-p.length:s,selectionEnd:c-(u.length-v.length)})}else if(s!==c){var y,m=(y=t._getLines(u,s)).length-1,g=t._getLines(u,c).length-1,b=y[m];t._applyEdits({value:u.split("\n").map((function(e,t){return t>=m&&t<=g?p+e:e})).join("\n"),selectionStart:b&&/\S/.test(b)?s+p.length:s,selectionEnd:c+p.length*(g-m+1)})}else{var w=s+p.length;t._applyEdits({value:u.substring(0,s)+p+u.substring(c),selectionStart:w,selectionEnd:w})}else if(8===e.keyCode){var k=s!==c;if(u.substring(0,s).endsWith(p)&&!k){e.preventDefault();w=s-p.length;t._applyEdits({value:u.substring(0,s-p.length)+u.substring(c),selectionStart:w,selectionEnd:w})}}else if(13===e.keyCode){if(s===c){var S=t._getLines(u,s).pop(),x=null==S?void 0:S.match(/^\s+/);if(null==x?void 0:x[0]){e.preventDefault();var C="\n"+x[0];w=s+C.length;t._applyEdits({value:u.substring(0,s)+C+u.substring(c),selectionStart:w,selectionEnd:w})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var E=void 0;57===e.keyCode&&e.shiftKey?E=["(",")"]:219===e.keyCode?E=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?E=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(E=["`","`"]),s!==c&&E&&(e.preventDefault(),t._applyEdits({value:u.substring(0,s)+E[0]+u.substring(s,c)+E[1]+u.substring(c),selectionStart:s,selectionEnd:c+2}))}else!(_?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(_?e.metaKey&&90===e.keyCode&&e.shiftKey:f?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||_&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,r=n.value;t._recordChange({value:r,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd},!0),t.props.onValueChange(r)},t._history={stack:[],offset:-1},t._input=null,t}return o(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,r=t.style,o=t.padding,a=t.highlight,l=t.textareaId,u=t.textareaClassName,f=t.autoFocus,_=t.disabled,h=t.form,y=t.maxLength,m=t.minLength,g=t.name,b=t.placeholder,w=t.readOnly,k=t.required,S=t.onClick,x=t.onFocus,C=t.onBlur,E=t.onKeyUp,O=t.preClassName,P=s(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),N={paddingTop:o,paddingRight:o,paddingBottom:o,paddingLeft:o},A=a(n);return c.createElement("div",i({},P,{style:i(i({},v.container),r)}),c.createElement("textarea",{ref:function(t){return e._input=t},style:i(i(i({},v.editor),v.textarea),N),className:p+(u?" ".concat(u):""),id:l,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:S,onKeyUp:E,onFocus:x,onBlur:C,disabled:_,form:h,maxLength:y,minLength:m,name:g,placeholder:b,readOnly:w,required:k,autoFocus:f,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),c.createElement("pre",i({className:O,"aria-hidden":"true",style:i(i(i({},v.editor),v.highlight),N)},"string"==typeof A?{dangerouslySetInnerHTML:{__html:A+"
    "}}:{children:A})),c.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:d}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(c.Component);t.default=h;var v={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"}}}},n={};e.n=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)||null===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:String(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)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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=new 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)||null===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:String(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)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(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=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2?"+ ".concat(E()("other",p-2,!0)):"";return(0,m.h)("div",{className:P()((t={},n(t,N.info_block,!0),n(t,N.info_block_collapsible,l.collapsible||!1),n(t,N.info_block_collapsed,s),t))},(0,m.h)("h5",{className:N.info_label,onClick:f},o),l.collapsible?(0,m.h)(A,null,(0,m.h)("div",{className:P()(n({},N.info_block_inner,!0))},_?i.map((function(e){return(0,m.h)("span",{key:e,className:N.info_block_item},e)})):(0,m.h)("span",null,i)),(0,m.h)("span",{className:N.info_block_teaser,onClick:f},_?" ".concat(i.slice(0,2).join(", ")," ").concat(d):"Click to show")):(0,m.h)("span",null,_?i.join(", "):i))},M=e(325),L=(e(759),e(277),e(460)),T=e.n(L),I=e(152),R=e.n(I);const q="collapsible_list__PJS0Z",D="collapsible_list_details__u5Pq3",H="visible__M2eJW";var Y=function(e){var t,n=e.list,r=void 0===n?[]:n,o=e.title,i=void 0===o?"View":o,a=c((0,g.eJ)(!1),2),l=a[0],u=a[1],f=i.toLowerCase();return(0,m.h)("div",{className:P()((t={},s(t,q,!0),s(t,H,l),t))},(0,m.h)("strong",{className:"".concat(f," vip-h4"),onClick:r.length?function(){u(!l)}:null},i," (","".concat(r.length),")"),(0,m.h)("ol",{className:"".concat(D," ").concat(f," vip-collapse-ol")},r.map((function(e,t){return(0,m.h)("li",{key:t},e)}))))};const z="query_wrap__uIeve",U="query_result__k_RWY",W="query_actions__ImK9_",V="query_handle__e0c8G",F="query_collapsed__PGXWS",K="grid_container__esEnb",B="query_src_header__wWAup",J="query_res_header__DMOpO",G="query_src__MoJsW",Z="query_res__FZmqB",Q="query_src_extra__aZwxj",X="container_editor___Y1qC",ee="container_editor_line_number__FU7Ow";var te=e(400).HY,ne=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=d((0,g.eJ)(f),2),v=h[0],y=h[1],b="#query-response-copy-handle",w=(0,g.I4)(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);y((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){p(l,r,o,i,a,"next",e)}function a(e){p(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,g.d4)((function(){var e=new(R())(b);return e.on("success",(function(e){document.querySelector(b).innerHTML="COPIED!",setTimeout((function(){document.querySelector(b).innerHTML="COPY"}),2e3),e.clearSelection()})),function(){return e.destroy()}}),[]),(0,g.d4)((function(){v.query!==f.query&&(v.editing||w(v.query))}),[v.query,v.editing,f.query,w]);var k;return(0,m.h)("div",{className:P()(z,v.collapsed?F:null)},(0,m.h)("div",{className:V,onClick:function(){return y(_({},v,{collapsed:!v.collapsed}))}},(0,m.h)("h3",{className:"vip-h3"},E()("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,m.h)("span",{style:"color: var(--vip-grey-60);"}," that took")," ",(0,m.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,m.h)("small",null," (",(null==r||null===(n=r.response)||void 0===n?void 0:n.code)||"unknown",")"))),(0,m.h)("div",{className:K},(0,m.h)("div",{className:B},(0,m.h)("span",{style:"margin-right: auto;"},"Request"),(0,m.h)("div",{className:Q},(0,m.h)(Y,{title:"WP_Query",list:Object.entries(i).map((function(e){var t=d(e,2),n=t[1];return"".concat(t[0],": ").concat(JSON.stringify(n))}))}),(0,m.h)(Y,{title:"Trace",list:u}))),(0,m.h)("div",{className:J},"Response"),(0,m.h)("div",{className:"".concat(G," query-src-box")},(0,m.h)("div",{className:W},v.editing||v.result!==c?(0,m.h)(te,null,(0,m.h)("button",{onClick:function(){return y(_({},v,{editing:!1}))},style:"background-color: var(--vip-green-40) !important"},"RUN"),(0,m.h)("button",{onClick:function(){return y(_({},f,{collapsed:!1}))},style:"background-color: var(--vip-blue-10) !important"},"RESET")):"Edit me!"),(0,m.h)(T(),{value:v.query,onValueChange:function(e){return y(_({},v,{query:e,editing:!0}))},highlight:function(e){return(0,M.highlight)(e,M.languages.json,"json").split("\n").map((function(e){return'').concat(e,"")})).join("\n")},padding:0,className:X,style:{fontSize:"var(--vip-sdt-editor-font-size)",lineHeight:"1.2em"}})),(0,m.h)("div",{className:"".concat(Z," query-result-box")},(0,m.h)("div",{className:U},(0,m.h)("div",{className:W},(0,m.h)("button",{id:"query-response-copy-handle","data-clipboard-target":"#query-response-text"},"COPY")),(0,m.h)("pre",{className:"line-numbers"},(0,m.h)("code",{className:"language-json",id:"query-response-text"},v.result))))))},re=function(){var e=(0,g.qp)(x).queries;return(0,m.h)("div",null,e.length<1?"No queries to show":e.map((function(e,t){return(0,m.h)(ne,_({key:t},e))})))},oe=function(e){var t=(0,g.qp)(x).queries;return(0,m.h)("button",e,"Search: ",E()("query",t.length,!0))};const ie=function(){var e,t=v((0,g.eJ)(!1),2),n=t[0],r=t[1],o=(0,g.I4)((function(){return r(!1)}),[]),i=(0,g.I4)((function(){return r(!n)}),[n]);return(0,m.h)(x.Provider,{value:(null===(e=window)||void 0===e?void 0:e.VIPSearchDevTools)||{status:"disabled",queries:[],information:[]}},(0,m.h)("div",{className:"search-dev-tools__wrapper"},(0,m.h)(oe,{class:k,onClick:i}),(0,b.createPortal)((0,m.h)(S,{isVisible:n,closeOverlay:o,opacity:"100"},(0,m.h)("div",{className:w},(0,m.h)("h4",{className:"vip-h4 main_caption"},"Enterprise Search Dev Tools"),(0,m.h)($,null),(0,m.h)(re,null))),document.getElementById("search-dev-tools-portal"))))};var ae=function(){return(0,m.sY)((0,m.h)(ie,null),document.querySelector('[data-widget-host="vip-search-dev-tools"]'))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ae):ae()})()})(); \ 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={798:(e,t,n)=>{n.p=window.VIPSearchDevTools.__webpack_public_path__},184:(e,t)=>{var n;!function(){"use strict";function r(){for(var e=[],t=0;t1&&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=y()(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?m(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 m(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}(p()),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){this.props=e}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,M.az)(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=I,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,M.az)(r,t)}var n,r,o;return t.displayName="Lazy",t.__f=!0,t}function p(){this.u=null,this.o=null}function d(e){return this.getChildContext=function(){return e.context},e.children}function h(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,M.sY)(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:[],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,M.sY)((0,M.az)(d,{context:t.context},e.__v),t.l)}function v(e,t){var n=(0,M.az)(h,{__v:e,i:t});return n.containerInfo=t,n}function y(e,t,n){return null==t.__k&&(t.textContent=""),(0,M.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function m(e,t,n){return(0,M.ZB)(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 M.az.bind(null,e)}function S(e){return!!e&&e.$$typeof===z}function x(e){return S(e)&&e.type===M.HY}function C(e){return S(e)?M.Tm.apply(null,arguments):e}function E(e){return!!e.__k&&((0,M.sY)(null,e),!0)}function O(e){return e&&(e.base||1===e.nodeType&&e)||null}function P(e){e()}function N(e){return e}function A(){return[!1,P]}function $(e,t){var n=t(),r=(0,L.eJ)({h:{__:n,v:t}}),o=r[0].h,i=r[1];return(0,L.bt)((function(){o.__=n,o.v=t,j(o)&&i({h:o})}),[e,n,t]),(0,L.d4)((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:()=>q,Component:()=>M.wA,Fragment:()=>M.HY,PureComponent:()=>i,StrictMode:()=>oe,Suspense:()=>c,SuspenseList:()=>p,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>ee,cloneElement:()=>C,createContext:()=>M.kr,createElement:()=>M.az,createFactory:()=>k,createPortal:()=>v,createRef:()=>M.Vf,default:()=>le,findDOMNode:()=>O,flushSync:()=>re,forwardRef:()=>l,hydrate:()=>m,isElement:()=>ae,isFragment:()=>x,isValidElement:()=>S,lazy:()=>_,memo:()=>a,render:()=>y,startTransition:()=>P,unmountComponentAtNode:()=>E,unstable_batchedUpdates:()=>ne,useCallback:()=>L.I4,useContext:()=>L.qp,useDebugValue:()=>L.Qb,useDeferredValue:()=>N,useEffect:()=>L.d4,useErrorBoundary:()=>L.cO,useId:()=>L.Me,useImperativeHandle:()=>L.aP,useInsertionEffect:()=>ie,useLayoutEffect:()=>L.bt,useMemo:()=>L.Ye,useReducer:()=>L._Y,useRef:()=>L.sO,useState:()=>L.eJ,useSyncExternalStore:()=>$,useTransition:()=>A,version:()=>te});var M=n(400),L=n(396);(i.prototype=new M.wA).isPureReactComponent=!0,i.prototype.shouldComponentUpdate=function(e,t){return o(this.props,e)||o(this.state,t)};var T=M.YM.__b;M.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),T&&T(e)};var I="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,R=function(e,t){return null==e?null:(0,M.bR)((0,M.bR)(e).map(t))},q={map:R,forEach:R,count:function(e){return e?(0,M.bR)(e).length:0},only:function(e){var t=(0,M.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:M.bR},D=M.YM.__e;M.YM.__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);D(e,t,n,r)};var H=M.YM.unmount;M.YM.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 M.wA).__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,M.az)(M.HY,null,e.fallback);return o&&(o.__u&=-33),[(0,M.az)(M.HY,null,t.__a?null:e.children),o]};var Y=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?M.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?++T:o,__i:-1,__u:0};return null==o&&null!=L.vnode&&L.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&&I.sort(D));p.__r=0}function d(e,t,n,r,o,i,a,l,u,s,c){var f,_,p,d,y,m=r&&r.__k||z,g=t.length;for(n.__d=u,h(n,t,m),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=m(o,n,l=r+d,p),o.__i=s,i=null,-1!==s&&(p--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==l&&(s===l+1?d++:s>l?p>f-l?d+=s-l:d--:d=s(null!=u&&0==(131072&u.__u)?1:0))for(;a>=0||l=0){if((u=t[a])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return a;a--}if(l2&&(s.children=arguments.length>3?M.call(arguments,2):n),a(e.type,s,o||e.key,i||e.ref,null)}function j(e,t){var n={__c:t="__cC"+H++,__: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.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.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n.d(t,{HY:()=>u,Tm:()=>$,Vf:()=>l,YM:()=>L,ZB:()=>A,az:()=>i,bR:()=>y,h:()=>i,kr:()=>j,sY:()=>N,wA:()=>s});var M,L,T,I,R,q,D,H,Y={},z=[],U=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,W=Array.isArray;M=z.slice,L={__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}},T=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,I=[],q="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D=function(e,t){return e.__v.__b-t.__v.__b},p.__r=0,H=0},396:(e,t,n)=>{"use strict";function r(e,t){E.YM.__h&&E.YM.__h(S,e,O||t),O=0;var n=S.__H||(S.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:N}),n.__[e]}function o(e){return O=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);!E.YM.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__H.__h.push(n))}function l(e,t){var n=r(k++,4);!E.YM.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__h.push(n))}function u(e){return O=5,c((function(){return{current:e}}),[])}function s(e,t,n){O=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.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function f(e,t){return O=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 p(e,t){E.YM.useDebugValue&&E.YM.useDebugValue(t?t(e):e)}function d(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=P.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(m),e.__H.__h.forEach(g),e.__H.__h=[]}catch(t){e.__H.__h=[],E.YM.__e(t,e.__v)}}function y(e){var t,n=function(){clearTimeout(r),T&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);T&&(t=requestAnimationFrame(n))}function m(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,{I4:()=>f,Me:()=>h,Qb:()=>p,Ye:()=>c,_Y:()=>i,aP:()=>s,bt:()=>l,cO:()=>d,d4:()=>a,eJ:()=>o,qp:()=>_,sO:()=>u});var k,S,x,C,E=n(400),O=0,P=[],N=[],A=E.YM.__b,$=E.YM.__r,j=E.YM.diffed,M=E.YM.__c,L=E.YM.unmount;E.YM.__b=function(e){S=null,A&&A(e)},E.YM.__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.__V=N,e.__N=e.i=void 0}))):(t.__h.forEach(m),t.__h.forEach(g),t.__h=[],k=0)),x=S},E.YM.diffed=function(e){j&&j(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==P.push(t)&&C===E.YM.requestAnimationFrame||((C=E.YM.requestAnimationFrame)||y)(v)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==N&&(e.__=e.__V),e.i=void 0,e.__V=N}))),x=S=null},E.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(m),e.__h=e.__h.filter((function(e){return!e.__||g(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],E.YM.__e(n,e.__v)}})),M&&M(e,t)},E.YM.unmount=function(e){L&&L(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{m(e)}catch(e){t=e}})),n.__H=void 0,t&&E.YM.__e(t,n.__v))};var T="function"==typeof requestAnimationFrame},325:(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 p=l[_];p=Array.isArray(p)?p:[p];for(var d=0;d=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(m){if(!(C=n(w,S,e,y))||C.index>=e.length)break;var O=C.index,P=C.index+C[0].length,N=S;for(N+=k.value.length;O>=N;)N+=(k=k.next).value.length;if(S=N-=k.value.length,k.value instanceof t)continue;for(var A=k;A!==o.tail&&(Nc.reach&&(c.reach=L);var T=k.prev;if(j&&(T=i(o,T,j),S+=j.length),a(o,T,E),k=i(o,T,new t(_,v?f.tokenize($,v):$,g,$)),M&&i(o,k,M),E>1){var I={cause:_+","+d,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 p=document.readyState;"loading"===p||"interactive"===p&&_&&_.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)},277:()=>{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},759:()=>{!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}))}}()},460:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1){t._history.stack=u.slice(0,s+1);var c=t._history.stack.length;if(c>100){var f=c-100;t._history.stack=u.slice(f,c),t._history.offset=Math.max(t._history.offset-f,0)}}var _=Date.now();if(n){var p=t._history.stack[t._history.offset];if(p&&_-p.timestamp<3e3){var d=/[^a-z0-9]([a-z0-9]+)$/i,h=null===(r=t._getLines(p.value,p.selectionStart).pop())||void 0===r?void 0:r.match(d),v=null===(o=t._getLines(e.value,e.selectionStart).pop())||void 0===o?void 0:o.match(d);if((null==h?void 0:h[1])&&(null===(a=null==v?void 0:v[1])||void 0===a?void 0:a.startsWith(h[1])))return void(t._history.stack[t._history.offset]=i(i({},e),{timestamp:_}))}}t._history.stack.push(i(i({},e),{timestamp:_})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,r=t._history.stack[t._history.offset];r&&n&&(t._history.stack[t._history.offset]=i(i({},r),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.offset,r=e.stack[n-1];r&&(t._updateInput(r),t._history.offset=Math.max(n-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,r=e.offset,o=n[r+1];o&&(t._updateInput(o),t._history.offset=Math.min(r+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,r=n.tabSize,o=n.insertSpaces,i=n.ignoreTabKey,a=n.onKeyDown;if(!a||(a(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var l=e.currentTarget,u=l.value,s=l.selectionStart,c=l.selectionEnd,p=(o?" ":"\t").repeat(r);if(9===e.keyCode&&!i&&t.state.capture)if(e.preventDefault(),e.shiftKey){var d=(y=t._getLines(u,s)).length-1,h=t._getLines(u,c).length-1,v=u.split("\n").map((function(e,t){return t>=d&&t<=h&&e.startsWith(p)?e.substring(p.length):e})).join("\n");if(u!==v)t._applyEdits({value:v,selectionStart:(null==(b=y[d])?void 0:b.startsWith(p))?s-p.length:s,selectionEnd:c-(u.length-v.length)})}else if(s!==c){var y,m=(y=t._getLines(u,s)).length-1,g=t._getLines(u,c).length-1,b=y[m];t._applyEdits({value:u.split("\n").map((function(e,t){return t>=m&&t<=g?p+e:e})).join("\n"),selectionStart:b&&/\S/.test(b)?s+p.length:s,selectionEnd:c+p.length*(g-m+1)})}else{var w=s+p.length;t._applyEdits({value:u.substring(0,s)+p+u.substring(c),selectionStart:w,selectionEnd:w})}else if(8===e.keyCode){var k=s!==c;if(u.substring(0,s).endsWith(p)&&!k){e.preventDefault();w=s-p.length;t._applyEdits({value:u.substring(0,s-p.length)+u.substring(c),selectionStart:w,selectionEnd:w})}}else if(13===e.keyCode){if(s===c){var S=t._getLines(u,s).pop(),x=null==S?void 0:S.match(/^\s+/);if(null==x?void 0:x[0]){e.preventDefault();var C="\n"+x[0];w=s+C.length;t._applyEdits({value:u.substring(0,s)+C+u.substring(c),selectionStart:w,selectionEnd:w})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var E=void 0;57===e.keyCode&&e.shiftKey?E=["(",")"]:219===e.keyCode?E=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?E=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(E=["`","`"]),s!==c&&E&&(e.preventDefault(),t._applyEdits({value:u.substring(0,s)+E[0]+u.substring(s,c)+E[1]+u.substring(c),selectionStart:s,selectionEnd:c+2}))}else!(_?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(_?e.metaKey&&90===e.keyCode&&e.shiftKey:f?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||_&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,r=n.value;t._recordChange({value:r,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd},!0),t.props.onValueChange(r)},t._history={stack:[],offset:-1},t._input=null,t}return o(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,r=t.style,o=t.padding,a=t.highlight,l=t.textareaId,u=t.textareaClassName,f=t.autoFocus,_=t.disabled,h=t.form,y=t.maxLength,m=t.minLength,g=t.name,b=t.placeholder,w=t.readOnly,k=t.required,S=t.onClick,x=t.onFocus,C=t.onBlur,E=t.onKeyUp,O=t.preClassName,P=s(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),N={paddingTop:o,paddingRight:o,paddingBottom:o,paddingLeft:o},A=a(n);return c.createElement("div",i({},P,{style:i(i({},v.container),r)}),c.createElement("textarea",{ref:function(t){return e._input=t},style:i(i(i({},v.editor),v.textarea),N),className:p+(u?" ".concat(u):""),id:l,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:S,onKeyUp:E,onFocus:x,onBlur:C,disabled:_,form:h,maxLength:y,minLength:m,name:g,placeholder:b,readOnly:w,required:k,autoFocus:f,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),c.createElement("pre",i({className:O,"aria-hidden":"true",style:i(i(i({},v.editor),v.highlight),N)},"string"==typeof A?{dangerouslySetInnerHTML:{__html:A+"
    "}}:{children:A})),c.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:d}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(c.Component);t.default=h;var v={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"}}}},n={};e.n=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)||null===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:String(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)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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=new 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)||null===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:String(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)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(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=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2?"+ ".concat(b()("other",p-2,!0)):"";return(0,m.h)("div",{className:x()((t={},n(t,C.info_block,!0),n(t,C.info_block_collapsible,l.collapsible||!1),n(t,C.info_block_collapsed,s),t))},(0,m.h)("h5",{className:C.info_label,onClick:f},o),l.collapsible?(0,m.h)(O,null,(0,m.h)("div",{className:x()(n({},C.info_block_inner,!0))},_?i.map((function(e){return(0,m.h)("span",{key:e,className:C.info_block_item},e)})):(0,m.h)("span",null,i)),(0,m.h)("span",{className:C.info_block_teaser,onClick:f},_?" ".concat(i.slice(0,2).join(", ")," ").concat(d):"Click to show")):(0,m.h)("span",null,_?i.join(", "):i))};const A=function(e){var t=e.children,n=e.closeOverlay,r=e.colorTheme,o=void 0===r?"light":r,i=e.isVisible,a=(0,k.Ye)((function(){return function(e){return"Escape"===e.key&&n()}}),[n]);return(0,k.d4)((function(){return window.addEventListener("keydown",a),function(){window.removeEventListener("keydown",a)}}),[a]),i?(0,m.h)("div",{className:"search-dev-tools__overlay search-dev-tools__overlay--".concat(o),role:"dialog"},(0,m.h)("button",{"aria-label":"Close VIP Search Dev Tools",className:"search-dev-tools__overlay__close",onClick:n},(0,m.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljc5MyA5LjUuNjQ2IDE3LjY0NmwuNzA4LjcwN0w5LjUgMTAuMjA3bDguMTQ2IDguMTQ2LjcwOC0uNzA3TDEwLjIwNyA5LjVsOC4xNDctOC4xNDYtLjcwNy0uNzA4TDkuNSA4Ljc5MyAxLjM1NC42NDZsLS43MDguNzA4TDguNzkzIDkuNVoiIGZpbGw9IiMwMDAiLz48L3N2Zz4=",alt:"Close"})),t):null};var $=e(152),j=e.n($),M=e(325),L=(e(759),e(277),e(460)),T=e.n(L);const I="query_wrap__uIeve",R="query_result__k_RWY",q="query_actions__ImK9_",D="query_handle__e0c8G",H="query_collapsed__PGXWS",Y="grid_container__esEnb",z="query_src_header__wWAup",U="query_res_header__DMOpO",W="query_src__MoJsW",V="query_res__FZmqB",F="query_src_extra__aZwxj",K="container_editor___Y1qC",B="container_editor_line_number__FU7Ow",J="collapsible_list__PJS0Z",G="collapsible_list_details__u5Pq3",Z="visible__M2eJW";var Q=function(e){var t,n=e.list,r=void 0===n?[]:n,o=e.title,i=void 0===o?"View":o,a=c((0,k.eJ)(!1),2),l=a[0],u=a[1],f=i.toLowerCase();return(0,m.h)("div",{className:x()((t={},s(t,J,!0),s(t,Z,l),t))},(0,m.h)("strong",{className:"".concat(f," vip-h4"),onClick:r.length?function(){u(!l)}:null},i," (","".concat(r.length),")"),(0,m.h)("ol",{className:"".concat(G," ").concat(f," vip-collapse-ol")},r.map((function(e,t){return(0,m.h)("li",{key:t},e)}))))},X=e(400).HY,ee=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=d((0,k.eJ)(f),2),v=h[0],y=h[1],g="#query-response-copy-handle",w=(0,k.I4)(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);y((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){p(l,r,o,i,a,"next",e)}function a(e){p(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,k.d4)((function(){var e=new(j())(g);return e.on("success",(function(e){document.querySelector(g).innerHTML="COPIED!",setTimeout((function(){document.querySelector(g).innerHTML="COPY"}),2e3),e.clearSelection()})),function(){return e.destroy()}}),[]),(0,k.d4)((function(){v.query!==f.query&&(v.editing||w(v.query))}),[v.query,v.editing,f.query,w]);var S;return(0,m.h)("div",{className:x()(I,v.collapsed?H:null)},(0,m.h)("div",{className:D,onClick:function(){return y(_({},v,{collapsed:!v.collapsed}))}},(0,m.h)("h3",{className:"vip-h3"},b()("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,m.h)("span",{style:"color: var(--vip-grey-60);"}," that took")," ",(0,m.h)("span",{style:{color:"var(--vip-".concat((S=r.body.took)<200?"green-60":S<500?"red-30":"red-60",")"),fontWeight:"bold"}},S,"ms"),(0,m.h)("small",null," (",(null==r||null===(n=r.response)||void 0===n?void 0:n.code)||"unknown",")"))),(0,m.h)("div",{className:Y},(0,m.h)("div",{className:z},(0,m.h)("span",{style:"margin-right: auto;"},"Request"),(0,m.h)("div",{className:F},(0,m.h)(Q,{title:"WP_Query",list:Object.entries(i).map((function(e){var t=d(e,2),n=t[1];return"".concat(t[0],": ").concat(JSON.stringify(n))}))}),(0,m.h)(Q,{title:"Trace",list:u}))),(0,m.h)("div",{className:U},"Response"),(0,m.h)("div",{className:"".concat(W," query-src-box")},(0,m.h)("div",{className:q},v.editing||v.result!==c?(0,m.h)(X,null,(0,m.h)("button",{onClick:function(){return y(_({},v,{editing:!1}))},style:"background-color: var(--vip-green-40) !important"},"RUN"),(0,m.h)("button",{onClick:function(){return y(_({},f,{collapsed:!1}))},style:"background-color: var(--vip-blue-10) !important"},"RESET")):"Edit me!"),(0,m.h)(T(),{value:v.query,onValueChange:function(e){return y(_({},v,{query:e,editing:!0}))},highlight:function(e){return(0,M.highlight)(e,M.languages.json,"json").split("\n").map((function(e){return'').concat(e,"")})).join("\n")},padding:0,className:K,style:{fontSize:"var(--vip-sdt-editor-font-size)",lineHeight:"1.2em"}})),(0,m.h)("div",{className:"".concat(V," query-result-box")},(0,m.h)("div",{className:R},(0,m.h)("div",{className:q},(0,m.h)("button",{id:"query-response-copy-handle","data-clipboard-target":"#query-response-text"},"COPY")),(0,m.h)("pre",{className:"line-numbers"},(0,m.h)("code",{className:"language-json",id:"query-response-text"},v.result))))))},te=function(){var e=(0,k.qp)(E).queries;return(0,m.h)("div",null,e.length<1?"No queries to show":e.map((function(e,t){return(0,m.h)(ee,_({key:t},e))})))};const ne="vip_search_dev_tools__WdCFa",re="ab_btn__Grxiu";var oe=function(e){var t=(0,k.qp)(E).queries;return(0,m.h)("button",e,"Search: ",b()("query",t.length,!0))};const ie=function(){var e,t=v((0,k.eJ)(!1),2),n=t[0],r=t[1],o=(0,k.I4)((function(){return r(!1)}),[]),i=(0,k.I4)((function(){return r(!n)}),[n]);return(0,m.h)(E.Provider,{value:(null===(e=window)||void 0===e?void 0:e.VIPSearchDevTools)||{status:"disabled",queries:[],information:[]}},(0,m.h)("div",{className:"search-dev-tools__wrapper"},(0,m.h)(oe,{class:re,onClick:i}),(0,w.createPortal)((0,m.h)(A,{isVisible:n,closeOverlay:o,opacity:"100"},(0,m.h)("div",{className:ne},(0,m.h)("h4",{className:"vip-h4 main_caption"},"Enterprise Search Dev Tools"),(0,m.h)(P,null),(0,m.h)(te,null))),document.getElementById("search-dev-tools-portal"))))};var ae=function(){return(0,m.sY)((0,m.h)(ie,null),document.querySelector('[data-widget-host="vip-search-dev-tools"]'))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ae):ae()})()})(); \ 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 f5f4375adf..edd3b3b912 100644 --- a/search/search-dev-tools/package-lock.json +++ b/search/search-dev-tools/package-lock.json @@ -17,7 +17,7 @@ "react-simple-code-editor": "^0.11.3" }, "devDependencies": { - "@automattic/eslint-plugin-wpvip": "^0.7.0", + "@automattic/eslint-plugin-wpvip": "^0.8.0", "@babel/core": "^7.23.2", "@babel/plugin-transform-class-properties": "^7.22.5", "@babel/plugin-transform-object-assign": "^7.22.5", @@ -69,30 +69,30 @@ } }, "node_modules/@automattic/eslint-plugin-wpvip": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/@automattic/eslint-plugin-wpvip/-/eslint-plugin-wpvip-0.7.0.tgz", - "integrity": "sha512-WDtS6OwSbgdM2UMucCMMYxi4BG6/GubD8jKYItDWbkHgYE4im7Gg8KOXApREpOo9SRrbpHc/9cW5Ysy4uyzKpg==", + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@automattic/eslint-plugin-wpvip/-/eslint-plugin-wpvip-0.8.0.tgz", + "integrity": "sha512-yRqS4BTFJ1/U9lpQoUFnJwQsu9OvKcZB0/iiR0jiSmM/eeI3jtkpJLG2wYdwESUjsI5/AeApzFFVLRfrcHaQ1A==", "dev": true, "dependencies": { - "@babel/eslint-parser": "7.22.10", - "@rushstack/eslint-patch": "1.3.3", - "@typescript-eslint/eslint-plugin": "^6.0.0", - "@typescript-eslint/parser": "^6.0.0", + "@babel/eslint-parser": "7.22.15", + "@rushstack/eslint-patch": "1.5.1", + "@typescript-eslint/eslint-plugin": "6.9.1", + "@typescript-eslint/parser": "6.9.1", "eslint-config-prettier": "8.7.0", - "eslint-import-resolver-typescript": "3.5.3", - "eslint-plugin-import": "2.28.1", - "eslint-plugin-jest": "27.2.3", - "eslint-plugin-jsdoc": "40.0.2", + "eslint-import-resolver-typescript": "3.6.1", + "eslint-plugin-import": "2.29.0", + "eslint-plugin-jest": "27.6.0", + "eslint-plugin-jsdoc": "46.8.2", "eslint-plugin-json": "3.1.0", "eslint-plugin-jsx-a11y": "6.7.1", "eslint-plugin-prettier": "4.2.1", "eslint-plugin-promise": "6.1.1", - "eslint-plugin-react": "7.32.2", + "eslint-plugin-react": "7.33.2", "eslint-plugin-react-hooks": "4.6.0", "eslint-plugin-security": "1.7.1", "eslint-plugin-unused-imports": "3.0.0", "find-package-json": "1.2.0", - "globals": "13.20.0" + "globals": "13.23.0" }, "peerDependencies": { "eslint": ">=8" @@ -151,9 +151,9 @@ } }, "node_modules/@babel/eslint-parser": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.22.10.tgz", - "integrity": "sha512-0J8DNPRXQRLeR9rPaUMM3fA+RbixjnVLe/MRMYCkp3hzgsSuxCHQ8NN8xQG1wIHKJ4a1DTROTvFJdW+B5/eOsg==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.22.15.tgz", + "integrity": "sha512-yc8OOBIQk1EcRrpizuARSQS0TWAcOMpEJ1aafhNznaeYkeL+OhqnDObGFylB8ka8VFF/sZc+S4RzHyO+3LjQxg==", "dev": true, "dependencies": { "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", @@ -1846,17 +1846,17 @@ } }, "node_modules/@es-joy/jsdoccomment": { - "version": "0.36.1", - "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.36.1.tgz", - "integrity": "sha512-922xqFsTpHs6D0BUiG4toiyPOMc8/jafnWKxz1KWgS4XzKPy2qXf1Pe6UFuNSCQqt6tOuhAWXBNuuyUhJmw9Vg==", + "version": "0.40.1", + "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.40.1.tgz", + "integrity": "sha512-YORCdZSusAlBrFpZ77pJjc5r1bQs5caPWtAu+WWmiSo+8XaUzseapVrfAtiRFbQWnrBxxLLEwF6f6ZG/UgCQCg==", "dev": true, "dependencies": { - "comment-parser": "1.3.1", - "esquery": "^1.4.0", - "jsdoc-type-pratt-parser": "~3.1.0" + "comment-parser": "1.4.0", + "esquery": "^1.5.0", + "jsdoc-type-pratt-parser": "~4.0.0" }, "engines": { - "node": "^14 || ^16 || ^17 || ^18 || ^19" + "node": ">=16" } }, "node_modules/@eslint-community/eslint-utils": { @@ -2173,30 +2173,10 @@ "node": ">= 8" } }, - "node_modules/@pkgr/utils": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.4.2.tgz", - "integrity": "sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "fast-glob": "^3.3.0", - "is-glob": "^4.0.3", - "open": "^9.1.0", - "picocolors": "^1.0.0", - "tslib": "^2.6.0" - }, - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/unts" - } - }, "node_modules/@rushstack/eslint-patch": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.3.3.tgz", - "integrity": "sha512-0xd7qez0AQ+MbHatZTlI1gu5vkG8r7MYRUJAHPAHJBmGLs16zpkrpAVLvjQKQOqaXPDUBwOiJzNc00znHSCVBw==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.5.1.tgz", + "integrity": "sha512-6i/8UoL0P5y4leBIGzvkZdS85RDMG9y1ihZzmTZQ5LdHUYmZ7pKFoj8X0236s3lusPs1Fa5HTQUpwI+UfTcmeA==", "dev": true }, "node_modules/@sinclair/typebox": { @@ -2478,16 +2458,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.8.0.tgz", - "integrity": "sha512-GosF4238Tkes2SHPQ1i8f6rMtG6zlKwMEB0abqSJ3Npvos+doIlc/ATG+vX1G9coDF3Ex78zM3heXHLyWEwLUw==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.9.1.tgz", + "integrity": "sha512-w0tiiRc9I4S5XSXXrMHOWgHgxbrBn1Ro+PmiYhSg2ZVdxrAJtQgzU5o2m1BfP6UOn7Vxcc6152vFjQfmZR4xEg==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.8.0", - "@typescript-eslint/type-utils": "6.8.0", - "@typescript-eslint/utils": "6.8.0", - "@typescript-eslint/visitor-keys": "6.8.0", + "@typescript-eslint/scope-manager": "6.9.1", + "@typescript-eslint/type-utils": "6.9.1", + "@typescript-eslint/utils": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -2710,15 +2690,15 @@ "dev": true }, "node_modules/@typescript-eslint/parser": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.8.0.tgz", - "integrity": "sha512-5tNs6Bw0j6BdWuP8Fx+VH4G9fEPDxnVI7yH1IAPkQH5RUtvKwRoqdecAPdQXv4rSOADAaz1LFBZvZG7VbXivSg==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.9.1.tgz", + "integrity": "sha512-C7AK2wn43GSaCUZ9do6Ksgi2g3mwFkMO3Cis96kzmgudoVaKyt62yNzJOktP0HDLb/iO2O0n2lBOzJgr6Q/cyg==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.8.0", - "@typescript-eslint/types": "6.8.0", - "@typescript-eslint/typescript-estree": "6.8.0", - "@typescript-eslint/visitor-keys": "6.8.0", + "@typescript-eslint/scope-manager": "6.9.1", + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/typescript-estree": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1", "debug": "^4.3.4" }, "engines": { @@ -2738,13 +2718,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.8.0.tgz", - "integrity": "sha512-xe0HNBVwCph7rak+ZHcFD6A+q50SMsFwcmfdjs9Kz4qDh5hWhaPhFjRs/SODEhroBI5Ruyvyz9LfwUJ624O40g==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.9.1.tgz", + "integrity": "sha512-38IxvKB6NAne3g/+MyXMs2Cda/Sz+CEpmm+KLGEM8hx/CvnSRuw51i8ukfwB/B/sESdeTGet1NH1Wj7I0YXswg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.8.0", - "@typescript-eslint/visitor-keys": "6.8.0" + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -2755,13 +2735,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.8.0.tgz", - "integrity": "sha512-RYOJdlkTJIXW7GSldUIHqc/Hkto8E+fZN96dMIFhuTJcQwdRoGN2rEWA8U6oXbLo0qufH7NPElUb+MceHtz54g==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.9.1.tgz", + "integrity": "sha512-eh2oHaUKCK58qIeYp19F5V5TbpM52680sB4zNSz29VBQPTWIlE/hCj5P5B1AChxECe/fmZlspAWFuRniep1Skg==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.8.0", - "@typescript-eslint/utils": "6.8.0", + "@typescript-eslint/typescript-estree": "6.9.1", + "@typescript-eslint/utils": "6.9.1", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -2782,9 +2762,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.8.0.tgz", - "integrity": "sha512-p5qOxSum7W3k+llc7owEStXlGmSl8FcGvhYt8Vjy7FqEnmkCVlM3P57XQEGj58oqaBWDQXbJDZxwUWMS/EAPNQ==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.9.1.tgz", + "integrity": "sha512-BUGslGOb14zUHOUmDB2FfT6SI1CcZEJYfF3qFwBeUrU6srJfzANonwRYHDpLBuzbq3HaoF2XL2hcr01c8f8OaQ==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -2795,13 +2775,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.8.0.tgz", - "integrity": "sha512-ISgV0lQ8XgW+mvv5My/+iTUdRmGspducmQcDw5JxznasXNnZn3SKNrTRuMsEXv+V/O+Lw9AGcQCfVaOPCAk/Zg==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.9.1.tgz", + "integrity": "sha512-U+mUylTHfcqeO7mLWVQ5W/tMLXqVpRv61wm9ZtfE5egz7gtnmqVIw9ryh0mgIlkKk9rZLY3UHygsBSdB9/ftyw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.8.0", - "@typescript-eslint/visitor-keys": "6.8.0", + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -2855,17 +2835,17 @@ "dev": true }, "node_modules/@typescript-eslint/utils": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.8.0.tgz", - "integrity": "sha512-dKs1itdE2qFG4jr0dlYLQVppqTE+Itt7GmIf/vX6CSvsW+3ov8PbWauVKyyfNngokhIO9sKZeRGCUo1+N7U98Q==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.9.1.tgz", + "integrity": "sha512-L1T0A5nFdQrMVunpZgzqPL6y2wVreSyHhKGZryS6jrEN7bD9NplVAyMryUhXsQ4TWLnZmxc2ekar/lSGIlprCA==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.8.0", - "@typescript-eslint/types": "6.8.0", - "@typescript-eslint/typescript-estree": "6.8.0", + "@typescript-eslint/scope-manager": "6.9.1", + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/typescript-estree": "6.9.1", "semver": "^7.5.4" }, "engines": { @@ -2913,12 +2893,12 @@ "dev": true }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.8.0.tgz", - "integrity": "sha512-oqAnbA7c+pgOhW2OhGvxm0t1BULX5peQI/rLsNDpGM78EebV3C9IGbX5HNZabuZ6UQrYveCLjKo8Iy/lLlBkkg==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.9.1.tgz", + "integrity": "sha512-MUaPUe/QRLEffARsmNfmpghuQkW436DvESW+h+M52w0coICHRfD6Np9/K6PdACwnrq1HmuLl+cSPZaJmeVPkSw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.8.0", + "@typescript-eslint/types": "6.9.1", "eslint-visitor-keys": "^3.4.1" }, "engines": { @@ -3302,6 +3282,15 @@ "node": ">= 8" } }, + "node_modules/are-docs-informative": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/are-docs-informative/-/are-docs-informative-0.0.2.tgz", + "integrity": "sha512-ixiS0nLNNG5jNQzgZJNoUpBKdo9yTYZMGJ+QgT2jmjR7G7+QHRCc4v6LQ3NgE7EBJq+o0ams3waJwkrlBom8Ig==", + "dev": true, + "engines": { + "node": ">=14" + } + }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", @@ -3477,6 +3466,15 @@ "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", "dev": true }, + "node_modules/asynciterator.prototype": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/asynciterator.prototype/-/asynciterator.prototype-1.0.0.tgz", + "integrity": "sha512-wwHYEIS0Q80f5mosx3L/dfG5t5rjEa9Ft51GTaNt862EnpyGHpgz2RkZvLPp1oF5TnAiTohkEKVEu8pQPJI7Vg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.3" + } + }, "node_modules/autoprefixer": { "version": "10.4.16", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.16.tgz", @@ -3612,15 +3610,6 @@ "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==", "dev": true }, - "node_modules/big-integer": { - "version": "1.6.51", - "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", - "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, "node_modules/big.js": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", @@ -3705,18 +3694,6 @@ "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", "dev": true }, - "node_modules/bplist-parser": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz", - "integrity": "sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==", - "dev": true, - "dependencies": { - "big-integer": "^1.6.44" - }, - "engines": { - "node": ">= 5.10.0" - } - }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -3777,16 +3754,13 @@ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true }, - "node_modules/bundle-name": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz", - "integrity": "sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==", + "node_modules/builtin-modules": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", + "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", "dev": true, - "dependencies": { - "run-applescript": "^5.0.0" - }, "engines": { - "node": ">=12" + "node": ">=6" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -4035,9 +4009,9 @@ } }, "node_modules/comment-parser": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.3.1.tgz", - "integrity": "sha512-B52sN2VNghyq5ofvUsqZjmk6YkihBX5vMSChmSK9v4ShjKf3Vk5Xcmgpw4o+iIgtrnM/u5FiMpz9VKb8lpBveA==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.4.0.tgz", + "integrity": "sha512-QLyTNiZ2KDOibvFPlZ6ZngVsZ/0gYnE6uTXi5aoDg8ed3AkJAz4sEje3Y8a29hQ1s6A99MZXe47fLAXQ1rTqaw==", "dev": true, "engines": { "node": ">= 12.0.0" @@ -4502,40 +4476,6 @@ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, - "node_modules/default-browser": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz", - "integrity": "sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==", - "dev": true, - "dependencies": { - "bundle-name": "^3.0.0", - "default-browser-id": "^3.0.0", - "execa": "^7.1.1", - "titleize": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/default-browser-id": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-3.0.0.tgz", - "integrity": "sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==", - "dev": true, - "dependencies": { - "bplist-parser": "^0.2.0", - "untildify": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/default-gateway": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", @@ -4651,18 +4591,6 @@ "node": ">= 0.4" } }, - "node_modules/define-lazy-prop": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", - "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/define-properties": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", @@ -5022,6 +4950,28 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/es-iterator-helpers": { + "version": "1.0.15", + "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.0.15.tgz", + "integrity": "sha512-GhoY8uYqd6iwUl2kgjTm4CZAf6oo5mHK7BPqx3rKgx893YSsy0LGHV6gfqqQvZt/8xM8xeOnfXBCfqclMKkJ5g==", + "dev": true, + "dependencies": { + "asynciterator.prototype": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.1", + "es-abstract": "^1.22.1", + "es-set-tostringtag": "^2.0.1", + "function-bind": "^1.1.1", + "get-intrinsic": "^1.2.1", + "globalthis": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "iterator.prototype": "^1.1.2", + "safe-array-concat": "^1.0.1" + } + }, "node_modules/es-module-lexer": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.1.tgz", @@ -5481,18 +5431,18 @@ } }, "node_modules/eslint-import-resolver-typescript": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.5.3.tgz", - "integrity": "sha512-njRcKYBc3isE42LaTcJNVANR3R99H9bAxBDMNDr2W7yq5gYPxbU3MkdhsQukxZ/Xg9C2vcyLlDsbKfRDg0QvCQ==", + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.6.1.tgz", + "integrity": "sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg==", "dev": true, "dependencies": { "debug": "^4.3.4", - "enhanced-resolve": "^5.10.0", - "get-tsconfig": "^4.2.0", - "globby": "^13.1.2", - "is-core-module": "^2.10.0", - "is-glob": "^4.0.3", - "synckit": "^0.8.4" + "enhanced-resolve": "^5.12.0", + "eslint-module-utils": "^2.7.4", + "fast-glob": "^3.3.1", + "get-tsconfig": "^4.5.0", + "is-core-module": "^2.11.0", + "is-glob": "^4.0.3" }, "engines": { "node": "^14.18.0 || >=16.0.0" @@ -5505,37 +5455,6 @@ "eslint-plugin-import": "*" } }, - "node_modules/eslint-import-resolver-typescript/node_modules/globby": { - "version": "13.2.2", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.2.2.tgz", - "integrity": "sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==", - "dev": true, - "dependencies": { - "dir-glob": "^3.0.1", - "fast-glob": "^3.3.0", - "ignore": "^5.2.4", - "merge2": "^1.4.1", - "slash": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint-import-resolver-typescript/node_modules/slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/eslint-module-utils": { "version": "2.8.0", "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", @@ -5617,26 +5536,26 @@ "dev": true }, "node_modules/eslint-plugin-import": { - "version": "2.28.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.28.1.tgz", - "integrity": "sha512-9I9hFlITvOV55alzoKBI+K9q74kv0iKMeY6av5+umsNwayt59fz692daGyjR+oStBQgx6nwR9rXldDev3Clw+A==", + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.0.tgz", + "integrity": "sha512-QPOO5NO6Odv5lpoTkddtutccQjysJuFxoPS7fAHO+9m9udNHvTCPSAMW9zGAYj8lAIdr40I8yPCdUYrncXtrwg==", "dev": true, "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.findlastindex": "^1.2.2", - "array.prototype.flat": "^1.3.1", - "array.prototype.flatmap": "^1.3.1", + "array-includes": "^3.1.7", + "array.prototype.findlastindex": "^1.2.3", + "array.prototype.flat": "^1.3.2", + "array.prototype.flatmap": "^1.3.2", "debug": "^3.2.7", "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.7", + "eslint-import-resolver-node": "^0.3.9", "eslint-module-utils": "^2.8.0", - "has": "^1.0.3", - "is-core-module": "^2.13.0", + "hasown": "^2.0.0", + "is-core-module": "^2.13.1", "is-glob": "^4.0.3", "minimatch": "^3.1.2", - "object.fromentries": "^2.0.6", - "object.groupby": "^1.0.0", - "object.values": "^1.1.6", + "object.fromentries": "^2.0.7", + "object.groupby": "^1.0.1", + "object.values": "^1.1.7", "semver": "^6.3.1", "tsconfig-paths": "^3.14.2" }, @@ -5669,9 +5588,9 @@ } }, "node_modules/eslint-plugin-jest": { - "version": "27.2.3", - "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.2.3.tgz", - "integrity": "sha512-sRLlSCpICzWuje66Gl9zvdF6mwD5X86I4u55hJyFBsxYOsBCmT5+kSUjf+fkFWVMMgpzNEupjW8WzUqi83hJAQ==", + "version": "27.6.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.6.0.tgz", + "integrity": "sha512-MTlusnnDMChbElsszJvrwD1dN3x6nZl//s4JD23BxB6MgR66TZlL064su24xEIS3VACfAoHV1vgyMgPw8nkdng==", "dev": true, "dependencies": { "@typescript-eslint/utils": "^5.10.0" @@ -5839,21 +5758,23 @@ "dev": true }, "node_modules/eslint-plugin-jsdoc": { - "version": "40.0.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-40.0.2.tgz", - "integrity": "sha512-EjcpQX64+d02kKMlBZbTc7xIkCOa0A9TF2AlB/3NlM7Xl8bywwvJ5Wo7ickEn/EzfauMbZcCCKSZItAH+6Xakg==", + "version": "46.8.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-46.8.2.tgz", + "integrity": "sha512-5TSnD018f3tUJNne4s4gDWQflbsgOycIKEUBoCLn6XtBMgNHxQFmV8vVxUtiPxAQq8lrX85OaSG/2gnctxw9uQ==", "dev": true, "dependencies": { - "@es-joy/jsdoccomment": "~0.36.1", - "comment-parser": "1.3.1", + "@es-joy/jsdoccomment": "~0.40.1", + "are-docs-informative": "^0.0.2", + "comment-parser": "1.4.0", "debug": "^4.3.4", "escape-string-regexp": "^4.0.0", - "esquery": "^1.4.0", - "semver": "^7.3.8", + "esquery": "^1.5.0", + "is-builtin-module": "^3.2.1", + "semver": "^7.5.4", "spdx-expression-parse": "^3.0.1" }, "engines": { - "node": "^14 || ^16 || ^17 || ^18 || ^19" + "node": ">=16" }, "peerDependencies": { "eslint": "^7.0.0 || ^8.0.0" @@ -5981,15 +5902,16 @@ } }, "node_modules/eslint-plugin-react": { - "version": "7.32.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz", - "integrity": "sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==", + "version": "7.33.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.33.2.tgz", + "integrity": "sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==", "dev": true, "dependencies": { "array-includes": "^3.1.6", "array.prototype.flatmap": "^1.3.1", "array.prototype.tosorted": "^1.1.1", "doctrine": "^2.1.0", + "es-iterator-helpers": "^1.0.12", "estraverse": "^5.3.0", "jsx-ast-utils": "^2.4.1 || ^3.0.0", "minimatch": "^3.1.2", @@ -5999,7 +5921,7 @@ "object.values": "^1.1.6", "prop-types": "^15.8.1", "resolve": "^2.0.0-next.4", - "semver": "^6.3.0", + "semver": "^6.3.1", "string.prototype.matchall": "^4.0.8" }, "engines": { @@ -6325,29 +6247,6 @@ "node": ">=0.8.x" } }, - "node_modules/execa": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-7.2.0.tgz", - "integrity": "sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.1", - "human-signals": "^4.3.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^3.0.7", - "strip-final-newline": "^3.0.0" - }, - "engines": { - "node": "^14.18.0 || ^16.14.0 || >=18.0.0" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, "node_modules/express": { "version": "4.18.2", "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", @@ -6857,9 +6756,9 @@ "dev": true }, "node_modules/globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "version": "13.23.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", + "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -7022,6 +6921,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -7215,15 +7126,6 @@ } } }, - "node_modules/human-signals": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", - "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", - "dev": true, - "engines": { - "node": ">=14.18.0" - } - }, "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -7439,6 +7341,21 @@ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", "dev": true }, + "node_modules/is-async-function": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.0.0.tgz", + "integrity": "sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-bigint": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", @@ -7479,6 +7396,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-builtin-module": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.1.tgz", + "integrity": "sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==", + "dev": true, + "dependencies": { + "builtin-modules": "^3.3.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-callable": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", @@ -7492,12 +7424,12 @@ } }, "node_modules/is-core-module": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", - "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", "dev": true, "dependencies": { - "has": "^1.0.3" + "hasown": "^2.0.0" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -7518,28 +7450,40 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-docker": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", - "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true, - "bin": { - "is-docker": "cli.js" - }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=0.10.0" + } + }, + "node_modules/is-finalizationregistry": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.0.2.tgz", + "integrity": "sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "node_modules/is-generator-function": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", + "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/is-glob": { @@ -7554,22 +7498,13 @@ "node": ">=0.10.0" } }, - "node_modules/is-inside-container": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", - "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "node_modules/is-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", + "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", "dev": true, - "dependencies": { - "is-docker": "^3.0.0" - }, - "bin": { - "is-inside-container": "cli.js" - }, - "engines": { - "node": ">=14.16" - }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/is-negative-zero": { @@ -7690,6 +7625,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-set": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", + "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-shared-array-buffer": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", @@ -7702,18 +7646,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/is-string": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", @@ -7759,6 +7691,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-weakmap": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", + "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-weakref": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", @@ -7771,6 +7712,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-weakset": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", + "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-wsl": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", @@ -7819,6 +7773,19 @@ "node": ">=0.10.0" } }, + "node_modules/iterator.prototype": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.2.tgz", + "integrity": "sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==", + "dev": true, + "dependencies": { + "define-properties": "^1.2.1", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "reflect.getprototypeof": "^1.0.4", + "set-function-name": "^2.0.1" + } + }, "node_modules/jest-util": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", @@ -7972,9 +7939,9 @@ } }, "node_modules/jsdoc-type-pratt-parser": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-3.1.0.tgz", - "integrity": "sha512-MgtD0ZiCDk9B+eI73BextfRrVQl0oyzRG8B2BjORts6jbunj4ScKPcyXGTbB6eXL4y9TzxCm6hyeLq/2ASzNdw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-4.0.0.tgz", + "integrity": "sha512-YtOli5Cmzy3q4dP26GraSOeAhqecewG04hoO8DY56CH4KJ9Fvv5qKWUCCo3HZob7esJQHCv6/+bnTy72xZZaVQ==", "dev": true, "engines": { "node": ">=12.0.0" @@ -8320,18 +8287,6 @@ "node": ">= 0.6" } }, - "node_modules/mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/mini-css-extract-plugin": { "version": "2.7.6", "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.7.6.tgz", @@ -8487,33 +8442,6 @@ "node": ">=0.10.0" } }, - "node_modules/npm-run-path": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", - "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", - "dev": true, - "dependencies": { - "path-key": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/npm-run-path/node_modules/path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/nth-check": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", @@ -8680,39 +8608,6 @@ "wrappy": "1" } }, - "node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", - "dev": true, - "dependencies": { - "mimic-fn": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/open": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz", - "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==", - "dev": true, - "dependencies": { - "default-browser": "^4.0.0", - "define-lazy-prop": "^3.0.0", - "is-inside-container": "^1.0.0", - "is-wsl": "^2.2.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/optionator": { "version": "0.9.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", @@ -9892,6 +9787,26 @@ "node": ">= 10.13.0" } }, + "node_modules/reflect.getprototypeof": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.4.tgz", + "integrity": "sha512-ECkTw8TmJwW60lOTR+ZkODISW6RQ8+2CL3COqtiJKLd6MmB45hN51HprHFziKLGkAuTGQhBb91V8cy+KHlaCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "globalthis": "^1.0.3", + "which-builtin-type": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/regenerate": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", @@ -10113,110 +10028,6 @@ "rimraf": "bin.js" } }, - "node_modules/run-applescript": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz", - "integrity": "sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==", - "dev": true, - "dependencies": { - "execa": "^5.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/run-applescript/node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/run-applescript/node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true, - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/run-applescript/node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/run-applescript/node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/run-applescript/node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/run-applescript/node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/run-applescript/node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -10894,18 +10705,6 @@ "node": ">=4" } }, - "node_modules/strip-final-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", - "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -11078,22 +10877,6 @@ "url": "https://github.com/fb55/entities?sponsor=1" } }, - "node_modules/synckit": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.5.tgz", - "integrity": "sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==", - "dev": true, - "dependencies": { - "@pkgr/utils": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/unts" - } - }, "node_modules/tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", @@ -11234,18 +11017,6 @@ "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz", "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==" }, - "node_modules/titleize": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz", - "integrity": "sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", @@ -11525,15 +11296,6 @@ "node": ">= 0.8" } }, - "node_modules/untildify": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", - "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/update-browserslist-db": { "version": "1.0.13", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", @@ -12050,6 +11812,47 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/which-builtin-type": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.1.3.tgz", + "integrity": "sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw==", + "dev": true, + "dependencies": { + "function.prototype.name": "^1.1.5", + "has-tostringtag": "^1.0.0", + "is-async-function": "^2.0.0", + "is-date-object": "^1.0.5", + "is-finalizationregistry": "^1.0.2", + "is-generator-function": "^1.0.10", + "is-regex": "^1.1.4", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", + "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", + "dev": true, + "dependencies": { + "is-map": "^2.0.1", + "is-set": "^2.0.1", + "is-weakmap": "^2.0.1", + "is-weakset": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/which-typed-array": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.11.tgz", diff --git a/search/search-dev-tools/package.json b/search/search-dev-tools/package.json index 752a933c9b..913185788b 100644 --- a/search/search-dev-tools/package.json +++ b/search/search-dev-tools/package.json @@ -14,7 +14,7 @@ "build/*" ], "devDependencies": { - "@automattic/eslint-plugin-wpvip": "^0.7.0", + "@automattic/eslint-plugin-wpvip": "^0.8.0", "@babel/core": "^7.23.2", "@babel/plugin-transform-class-properties": "^7.22.5", "@babel/plugin-transform-object-assign": "^7.22.5", diff --git a/search/search-dev-tools/src/components/app.js b/search/search-dev-tools/src/components/app.js index c3de39c95f..04f3a51f3b 100644 --- a/search/search-dev-tools/src/components/app.js +++ b/search/search-dev-tools/src/components/app.js @@ -1,17 +1,16 @@ +import pluralize from 'pluralize'; import { h } from 'preact'; -import { useCallback, useContext, useState } from 'preact/hooks'; import { createPortal } from 'preact/compat'; +import { useCallback, useContext, useState } from 'preact/hooks'; // Global styles import '../style/style.scss'; -import style from './style.scss'; -import Overlay from './overlay'; -import { SearchContext } from '../context'; import { GeneralInformation } from './information-pane'; +import Overlay from './overlay'; import { Queries } from './query'; - -import pluralize from 'pluralize'; +import style from './style.scss'; +import { SearchContext } from '../context'; const AdminBarButton = props => { const { queries } = useContext( SearchContext ); diff --git a/search/search-dev-tools/src/components/collapsible-list/index.js b/search/search-dev-tools/src/components/collapsible-list/index.js index feaec5013d..c24a1b083f 100644 --- a/search/search-dev-tools/src/components/collapsible-list/index.js +++ b/search/search-dev-tools/src/components/collapsible-list/index.js @@ -1,8 +1,9 @@ /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ /* eslint-disable jsx-a11y/click-events-have-key-events */ +import cx from 'classnames'; import { h } from 'preact'; import { useState } from 'preact/hooks'; -import cx from 'classnames'; + import style from './style.scss'; /** diff --git a/search/search-dev-tools/src/components/information-pane/index.js b/search/search-dev-tools/src/components/information-pane/index.js index fc73020a46..81a1dadf67 100644 --- a/search/search-dev-tools/src/components/information-pane/index.js +++ b/search/search-dev-tools/src/components/information-pane/index.js @@ -1,13 +1,13 @@ /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ /* eslint-disable jsx-a11y/no-static-element-interactions */ /* eslint-disable jsx-a11y/click-events-have-key-events */ +import cx from 'classnames'; +import pluralize from 'pluralize'; import { h } from 'preact'; import { useContext, useState } from 'preact/hooks'; -import pluralize from 'pluralize'; -import cx from 'classnames'; -import { SearchContext } from '../../context'; import style from './style.scss'; +import { SearchContext } from '../../context'; // More than this number of elements in the list will be hidden in the collapsible. const EXPAND_THRESHOLD = 2; diff --git a/search/search-dev-tools/src/components/query/index.js b/search/search-dev-tools/src/components/query/index.js index b42d461494..82402fbfb2 100644 --- a/search/search-dev-tools/src/components/query/index.js +++ b/search/search-dev-tools/src/components/query/index.js @@ -1,19 +1,20 @@ /* eslint-disable jsx-a11y/no-static-element-interactions */ /* eslint-disable jsx-a11y/click-events-have-key-events */ +import cx from 'classnames'; +import ClipboardJS from 'clipboard'; +import pluralize from 'pluralize'; import { h } from 'preact'; import { useCallback, useContext, useEffect, useState } from 'preact/hooks'; import { highlight, languages } from 'prismjs/components/prism-core'; import 'prismjs/plugins/line-numbers/prism-line-numbers.js'; import 'prismjs/components/prism-json'; import Editor from 'react-simple-code-editor'; -import cx from 'classnames'; -import pluralize from 'pluralize'; -import ClipboardJS from 'clipboard'; + +import style from './style.scss'; import { SearchContext } from '../../context'; import { postData } from '../../utils'; import { CollapsibleList } from '../collapsible-list'; -import style from './style.scss'; import '../../style/prism.scss'; /** From cae06c18484c90da31ec46307e5586d955934d8d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 02:22:12 +0200 Subject: [PATCH 13/30] chore(deps): Bump react-select from 5.7.7 to 5.8.0 (#5006) Bumps [react-select](https://github.com/JedWatson/react-select) from 5.7.7 to 5.8.0. - [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.7.7...react-select@5.8.0) --- updated-dependencies: - dependency-name: react-select 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> --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index ab979c58e2..96461feb81 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20555,9 +20555,9 @@ } }, "node_modules/react-select": { - "version": "5.7.7", - "resolved": "https://registry.npmjs.org/react-select/-/react-select-5.7.7.tgz", - "integrity": "sha512-HhashZZJDRlfF/AKj0a0Lnfs3sRdw/46VJIRd8IbB9/Ovr74+ZIwkAdSBjSPXsFMG+u72c5xShqwLSKIJllzqw==", + "version": "5.8.0", + "resolved": "https://registry.npmjs.org/react-select/-/react-select-5.8.0.tgz", + "integrity": "sha512-TfjLDo58XrhP6VG5M/Mi56Us0Yt8X7xD6cDybC7yoRMUNm7BGO7qk8J0TLQOua/prb8vUOtsfnXZwfm30HGsAA==", "dependencies": { "@babel/runtime": "^7.12.0", "@emotion/cache": "^11.4.0", From dc1329a731546d123c5c20a1c40ad7b8051f777f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 02:22:21 +0200 Subject: [PATCH 14/30] chore(deps-dev): Bump @babel/plugin-syntax-decorators (#5014) Bumps [@babel/plugin-syntax-decorators](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-syntax-decorators) from 7.22.10 to 7.23.3. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.3/packages/babel-plugin-syntax-decorators) --- updated-dependencies: - dependency-name: "@babel/plugin-syntax-decorators" 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> --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 96461feb81..a4902af981 100644 --- a/package-lock.json +++ b/package-lock.json @@ -655,9 +655,9 @@ } }, "node_modules/@babel/plugin-syntax-decorators": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.22.10.tgz", - "integrity": "sha512-z1KTVemBjnz+kSEilAsI4lbkPOl5TvJH7YDSY1CTIzvLWJ+KHXp+mRe8VPmfnyvqOPqar1V2gid2PleKzRUstQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.23.3.tgz", + "integrity": "sha512-cf7Niq4/+/juY67E0PbgH0TDhLQ5J7zS8C/Q5FFx+DWyrRa9sUQdTXkjqKu8zGvuqr7vw1muKiukseihU+PJDA==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" From 3add305343ab5105f04f928e9443bd7f3739e36a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 02:22:30 +0200 Subject: [PATCH 15/30] chore(deps-dev): Bump sharp from 0.32.5 to 0.32.6 (#5026) Bumps [sharp](https://github.com/lovell/sharp) from 0.32.5 to 0.32.6. - [Release notes](https://github.com/lovell/sharp/releases) - [Changelog](https://github.com/lovell/sharp/blob/main/docs/changelog.md) - [Commits](https://github.com/lovell/sharp/compare/v0.32.5...v0.32.6) --- updated-dependencies: - dependency-name: sharp dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index a4902af981..8940787ade 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21467,9 +21467,9 @@ "dev": true }, "node_modules/sharp": { - "version": "0.32.5", - "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.32.5.tgz", - "integrity": "sha512-0dap3iysgDkNaPOaOL4X/0akdu0ma62GcdC2NBQ+93eqpePdDdr2/LM0sFdDSMmN7yS+odyZtPsb7tx/cYBKnQ==", + "version": "0.32.6", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.32.6.tgz", + "integrity": "sha512-KyLTWwgcR9Oe4d9HwCwNM2l7+J0dUQwn/yf7S0EnTtb0eVS4RxO0eUSvxPtzT4F3SY+C4K6fqdv/DO27sJ/v/w==", "dev": true, "hasInstallScript": true, "dependencies": { From 8bbaba184bdc0e9ea14444ffa70e63afd4ee1e24 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 02:22:38 +0200 Subject: [PATCH 16/30] chore(deps-dev): Bump @wordpress/env from 8.10.0 to 8.12.0 (#5031) Bumps [@wordpress/env](https://github.com/WordPress/gutenberg/tree/HEAD/packages/env) from 8.10.0 to 8.12.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@8.12.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> --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8940787ade..a7f48aba45 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5578,9 +5578,9 @@ } }, "node_modules/@wordpress/env": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/@wordpress/env/-/env-8.10.0.tgz", - "integrity": "sha512-VkzLjWGiiELm1wxCt+349u4KZ4H2zpGjW9oN94vmy3UwsaN9xBPnYJscditklSU7lN+kUOgBP83e6MdDV0U8nA==", + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/env/-/env-8.12.0.tgz", + "integrity": "sha512-AP4rvv9oEqNtAk1o+V/sDeSDuBnTrbAc1nGp2Q8KMgaxhNSnMB4gn5K6zggG5HF0GPWbR5YaFkID+2FvT0DPIw==", "dev": true, "dependencies": { "chalk": "^4.0.0", From d02a2b752739acb3d56c5fb23b4dd9ab390930af Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 02:22:49 +0200 Subject: [PATCH 17/30] chore(deps): Bump @wordpress/api-fetch from 6.41.0 to 6.43.0 (#5033) Bumps [@wordpress/api-fetch](https://github.com/WordPress/gutenberg/tree/HEAD/packages/api-fetch) from 6.41.0 to 6.43.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@6.43.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> --- package-lock.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index a7f48aba45..72c92b7a5d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5486,13 +5486,13 @@ } }, "node_modules/@wordpress/api-fetch": { - "version": "6.41.0", - "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-6.41.0.tgz", - "integrity": "sha512-IrwfTrdKFz+fwPbhd5RedaR3aGNVJIshWhKkL2Six8Mcc+h257RFIzESghywyk5YJ8HDIKElTO05Vge+rBPK3Q==", + "version": "6.43.0", + "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-6.43.0.tgz", + "integrity": "sha512-DYtawNaOHDxgIl+B/E1oU+VMhFJJfy/oYR5e7+PFUX0t0yHhHuH8XaWKpZvpvo0Y/GOuJ2NkDcJDqSZXD2TFYw==", "dependencies": { "@babel/runtime": "^7.16.0", - "@wordpress/i18n": "^4.44.0", - "@wordpress/url": "^3.45.0" + "@wordpress/i18n": "^4.46.0", + "@wordpress/url": "^3.47.0" }, "engines": { "node": ">=12" @@ -5873,9 +5873,9 @@ } }, "node_modules/@wordpress/url": { - "version": "3.45.0", - "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-3.45.0.tgz", - "integrity": "sha512-SYVFNuhotfxpDloGXcut4XvXYHtqhTDJT7UZ/LvXBwVFFxtXyey+Ej8h7FuDqnakbkWauUp0cmD0iDHMhtb9sw==", + "version": "3.47.0", + "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-3.47.0.tgz", + "integrity": "sha512-eDj7eDDYS8/UaUioulM54JkhmYvplvwW8+rbidR0fKZLr9zu3mfM7vrlwpIv9OK2RMenqEvu7Ij2gc5n/YEAcQ==", "dependencies": { "@babel/runtime": "^7.16.0", "remove-accents": "^0.5.0" From e95ab068439bfd6d19209569fee68efa7af9ac95 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 26 Nov 2023 08:05:14 +0200 Subject: [PATCH 18/30] chore(deps-dev): Bump lint-staged from 15.0.2 to 15.1.0 (#5046) Bumps [lint-staged](https://github.com/okonet/lint-staged) from 15.0.2 to 15.1.0. - [Release notes](https://github.com/okonet/lint-staged/releases) - [Changelog](https://github.com/lint-staged/lint-staged/blob/master/CHANGELOG.md) - [Commits](https://github.com/okonet/lint-staged/compare/v15.0.2...v15.1.0) --- updated-dependencies: - dependency-name: lint-staged 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> --- package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 72c92b7a5d..c38b439b82 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16010,9 +16010,9 @@ } }, "node_modules/lint-staged": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-15.0.2.tgz", - "integrity": "sha512-vnEy7pFTHyVuDmCAIFKR5QDO8XLVlPFQQyujQ/STOxe40ICWqJ6knS2wSJ/ffX/Lw0rz83luRDh+ET7toN+rOw==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-15.1.0.tgz", + "integrity": "sha512-ZPKXWHVlL7uwVpy8OZ7YQjYDAuO5X4kMh0XgZvPNxLcCCngd0PO5jKQyy3+s4TL2EnHoIXIzP1422f/l3nZKMw==", "dev": true, "dependencies": { "chalk": "5.3.0", @@ -16024,7 +16024,7 @@ "micromatch": "4.0.5", "pidtree": "0.6.0", "string-argv": "0.3.2", - "yaml": "2.3.3" + "yaml": "2.3.4" }, "bin": { "lint-staged": "bin/lint-staged.js" @@ -24540,9 +24540,9 @@ "dev": true }, "node_modules/yaml": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.3.tgz", - "integrity": "sha512-zw0VAJxgeZ6+++/su5AFoqBbZbrEakwu+X0M5HmcwUiBL7AzcuPKjj5we4xfQLp78LkEMpD0cOnUhmgOVy3KdQ==", + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.4.tgz", + "integrity": "sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==", "dev": true, "engines": { "node": ">= 14" From 3c5721f3bf91442ff495f24783d4ff5f7e87aa6b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 26 Nov 2023 08:05:47 +0200 Subject: [PATCH 19/30] chore(deps-dev): Bump 10up-toolkit from 5.2.2 to 5.2.3 (#5045) Bumps [10up-toolkit](https://github.com/10up/10up-toolkit/tree/HEAD/packages/toolkit) from 5.2.2 to 5.2.3. - [Release notes](https://github.com/10up/10up-toolkit/releases) - [Changelog](https://github.com/10up/10up-toolkit/blob/develop/packages/toolkit/CHANGELOG.md) - [Commits](https://github.com/10up/10up-toolkit/commits/HEAD/packages/toolkit) --- updated-dependencies: - dependency-name: 10up-toolkit 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> --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index c38b439b82..9d2e972dea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5906,9 +5906,9 @@ "dev": true }, "node_modules/10up-toolkit": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/10up-toolkit/-/10up-toolkit-5.2.2.tgz", - "integrity": "sha512-k6/yqPvJuSf1g8ZfP4c7yie6Hyg7WCCFqWAA0ucyLm9R3woZ069VrZ+EpO1VkbLrfjQkINvilP121RaEJDFnpg==", + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/10up-toolkit/-/10up-toolkit-5.2.3.tgz", + "integrity": "sha512-M6bI4AQDo8+XEopm627mWMwNiZyn+i8nmnm9M5szJNpFIW56ehjHpLvF654BocyyAqCPQf3lv6hcfv9mgTs+7w==", "dev": true, "dependencies": { "@babel/core": "^7.21.8", From 220f85782ed1e78f7c621434af83e87a7f758afa Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 26 Nov 2023 08:06:20 +0200 Subject: [PATCH 20/30] chore(deps-dev): Bump @babel/plugin-transform-private-property-in-object (#5050) Bumps [@babel/plugin-transform-private-property-in-object](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-private-property-in-object) from 7.22.11 to 7.23.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.4/packages/babel-plugin-transform-private-property-in-object) --- updated-dependencies: - dependency-name: "@babel/plugin-transform-private-property-in-object" 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> --- search/search-dev-tools/package-lock.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/search/search-dev-tools/package-lock.json b/search/search-dev-tools/package-lock.json index edd3b3b912..570647b940 100644 --- a/search/search-dev-tools/package-lock.json +++ b/search/search-dev-tools/package-lock.json @@ -1431,13 +1431,13 @@ } }, "node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.11.tgz", - "integrity": "sha512-sSCbqZDBKHetvjSwpyWzhuHkmW5RummxJBVbYLkGkaiTOWGxml7SXt0iWa03bzxFIx7wOj3g/ILRd0RcJKBeSQ==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.23.4.tgz", + "integrity": "sha512-9G3K1YqTq3F4Vt88Djx1UZ79PDyj+yKRnUy7cZGSMe+a7jkwD259uKKuUzQlPkGam7R+8RJwh5z4xO27fA1o2A==", "dev": true, "dependencies": { "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-create-class-features-plugin": "^7.22.11", + "@babel/helper-create-class-features-plugin": "^7.22.15", "@babel/helper-plugin-utils": "^7.22.5", "@babel/plugin-syntax-private-property-in-object": "^7.14.5" }, From 67ca4943320e1da602682e8d0a14a362e552a40b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 26 Nov 2023 08:06:38 +0200 Subject: [PATCH 21/30] chore(deps-dev): Bump @babel/plugin-transform-object-rest-spread (#5049) Bumps [@babel/plugin-transform-object-rest-spread](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-object-rest-spread) from 7.22.15 to 7.23.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.4/packages/babel-plugin-transform-object-rest-spread) --- updated-dependencies: - dependency-name: "@babel/plugin-transform-object-rest-spread" 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> --- search/search-dev-tools/package-lock.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/search/search-dev-tools/package-lock.json b/search/search-dev-tools/package-lock.json index 570647b940..ed09994563 100644 --- a/search/search-dev-tools/package-lock.json +++ b/search/search-dev-tools/package-lock.json @@ -112,9 +112,9 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.2.tgz", - "integrity": "sha512-0S9TQMmDHlqAZ2ITT95irXKfxN9bncq8ZCoJhun3nHL/lLUxd2NKBJYoNGWH7S0hz6fRQwWlAWn/ILM0C70KZQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.3.tgz", + "integrity": "sha512-BmR4bWbDIoFJmJ9z2cZ8Gmm2MXgEDgjdWgpKmKWUt54UGFJdlj31ECtbaDvCG/qVdG3AQ1SfpZEs01lUFbzLOQ==", "dev": true, "engines": { "node": ">=6.9.0" @@ -1332,16 +1332,16 @@ } }, "node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.15.tgz", - "integrity": "sha512-fEB+I1+gAmfAyxZcX1+ZUwLeAuuf8VIg67CTznZE0MqVFumWkh8xWtn58I4dxdVf080wn7gzWoF8vndOViJe9Q==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.23.4.tgz", + "integrity": "sha512-9x9K1YyeQVw0iOXJlIzwm8ltobIIv7j2iLyP2jIhEbqPRQ7ScNgwQufU2I0Gq11VjyG4gI4yMXt2VFags+1N3g==", "dev": true, "dependencies": { - "@babel/compat-data": "^7.22.9", + "@babel/compat-data": "^7.23.3", "@babel/helper-compilation-targets": "^7.22.15", "@babel/helper-plugin-utils": "^7.22.5", "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.22.15" + "@babel/plugin-transform-parameters": "^7.23.3" }, "engines": { "node": ">=6.9.0" @@ -1400,9 +1400,9 @@ } }, "node_modules/@babel/plugin-transform-parameters": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.15.tgz", - "integrity": "sha512-hjk7qKIqhyzhhUvRT683TYQOFa/4cQKwQy7ALvTpODswN40MljzNDa0YldevS6tGbxwaEKVn502JmY0dP7qEtQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.23.3.tgz", + "integrity": "sha512-09lMt6UsUb3/34BbECKVbVwrT9bO6lILWln237z7sLaWnMsTi7Yc9fhX5DLpkJzAGfaReXI22wP41SZmnAA3Vw==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" From 6b9ff5c74f90d1eeb75826034d75677176744191 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 26 Nov 2023 08:07:17 +0200 Subject: [PATCH 22/30] chore(deps-dev): Bump @babel/plugin-transform-object-assign (#5048) Bumps [@babel/plugin-transform-object-assign](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-object-assign) from 7.22.5 to 7.23.3. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.3/packages/babel-plugin-transform-object-assign) --- updated-dependencies: - dependency-name: "@babel/plugin-transform-object-assign" 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> --- search/search-dev-tools/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/search/search-dev-tools/package-lock.json b/search/search-dev-tools/package-lock.json index ed09994563..23f78525e2 100644 --- a/search/search-dev-tools/package-lock.json +++ b/search/search-dev-tools/package-lock.json @@ -1317,9 +1317,9 @@ } }, "node_modules/@babel/plugin-transform-object-assign": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-assign/-/plugin-transform-object-assign-7.22.5.tgz", - "integrity": "sha512-iDhx9ARkXq4vhZ2CYOSnQXkmxkDgosLi3J8Z17mKz7LyzthtkdVchLD7WZ3aXeCuvJDOW3+1I5TpJmwIbF9MKQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-assign/-/plugin-transform-object-assign-7.23.3.tgz", + "integrity": "sha512-TPJ6O7gVC2rlQH2hvQGRH273G1xdoloCj9Pc07Q7JbIZYDi+Sv5gaE2fu+r5E7qK4zyt6vj0FbZaZTRU5C3OMA==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" From c7e206c75727a83c5f08fead639ff9d8a31d0d76 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 26 Nov 2023 08:07:25 +0200 Subject: [PATCH 23/30] chore(deps-dev): Bump @babel/plugin-transform-react-jsx (#5047) Bumps [@babel/plugin-transform-react-jsx](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-react-jsx) from 7.22.15 to 7.23.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.4/packages/babel-plugin-transform-react-jsx) --- updated-dependencies: - dependency-name: "@babel/plugin-transform-react-jsx" 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> --- search/search-dev-tools/package-lock.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/search/search-dev-tools/package-lock.json b/search/search-dev-tools/package-lock.json index 23f78525e2..5f17308fd6 100644 --- a/search/search-dev-tools/package-lock.json +++ b/search/search-dev-tools/package-lock.json @@ -705,9 +705,9 @@ } }, "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz", - "integrity": "sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz", + "integrity": "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -1464,16 +1464,16 @@ } }, "node_modules/@babel/plugin-transform-react-jsx": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.15.tgz", - "integrity": "sha512-oKckg2eZFa8771O/5vi7XeTvmM6+O9cxZu+kanTU7tD4sin5nO/G8jGJhq8Hvt2Z0kUoEDRayuZLaUlYl8QuGA==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.23.4.tgz", + "integrity": "sha512-5xOpoPguCZCRbo/JeHlloSkTA8Bld1J/E1/kLfD1nsuiW1m8tduTA1ERCgIZokDflX/IBzKcqR3l7VlRgiIfHA==", "dev": true, "dependencies": { "@babel/helper-annotate-as-pure": "^7.22.5", "@babel/helper-module-imports": "^7.22.15", "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-jsx": "^7.22.5", - "@babel/types": "^7.22.15" + "@babel/plugin-syntax-jsx": "^7.23.3", + "@babel/types": "^7.23.4" }, "engines": { "node": ">=6.9.0" From 122e5a0d9315daf9b294fcb5e058e10fb7eef5ea Mon Sep 17 00:00:00 2001 From: Rebecca Hum Date: Mon, 27 Nov 2023 10:58:57 -0700 Subject: [PATCH 24/30] CI: Remove PHP 7.4 and 8.0 from matrix (#5052) --- .github/workflows/ci.yml | 50 ++++++++++------------------------------ 1 file changed, 12 insertions(+), 38 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c7c2f9fed..4e457642a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,45 +27,19 @@ jobs: fail-fast: false matrix: config: - # Jetpack, Single-Site, PHP 7.4 - - { wp: 5.9.x, ms: 'no', jp: 'yes', php: '7.4', phpunit: 7 } - - { wp: 6.0.x, ms: 'no', jp: 'yes', php: '7.4', phpunit: 7 } - - { wp: 6.1.x, ms: 'no', jp: 'yes', php: '7.4', phpunit: 7 } - - { wp: latest, ms: 'no', jp: 'yes', php: '7.4', phpunit: 7 } - - { wp: nightly, ms: 'no', jp: 'yes', php: '7.4', phpunit: 7 } - # Jetpack, Multi-Site, PHP 7.4 - - { wp: latest, ms: 'yes', jp: 'yes', php: '7.4', phpunit: 7 } - - { wp: nightly, ms: 'yes', jp: 'yes', php: '7.4', phpunit: 7 } - # No Jetpack, WP latest, PHP 7.4 - - { wp: latest, ms: 'no', jp: 'no', php: '7.4', phpunit: 7 } - - { wp: latest, ms: 'yes', jp: 'no', php: '7.4', phpunit: 7 } - # PHP 8.0, Jetpack - - { wp: 6.0.x, ms: 'no', jp: 'yes', php: '8.0', phpunit: '' } - - { wp: 6.0.x, ms: 'yes', jp: 'yes', php: '8.0', phpunit: '' } - - { wp: 6.1.x, ms: 'no', jp: 'yes', php: '8.0', phpunit: '' } - - { wp: 6.1.x, ms: 'yes', jp: 'yes', php: '8.0', phpunit: '' } - - { wp: 6.2.x, ms: 'no', jp: 'yes', php: '8.0', phpunit: '' } - - { wp: 6.2.x, ms: 'yes', jp: 'yes', php: '8.0', phpunit: '' } - - { wp: 6.3.x, ms: 'no', jp: 'yes', php: '8.0', phpunit: '' } - - { wp: 6.3.x, ms: 'yes', jp: 'yes', php: '8.0', phpunit: '' } - - { wp: latest, ms: 'no', jp: 'yes', php: '8.0', phpunit: '', coverage: 'yes' } - - { wp: latest, ms: 'yes', jp: 'yes', php: '8.0', phpunit: '', coverage: 'yes' } - - { wp: nightly, ms: 'no', jp: 'yes', php: '8.0', phpunit: '' } - - { wp: nightly, ms: 'yes', jp: 'yes', php: '8.0', phpunit: '' } - # No Jetpack, WP latest, PHP 8.0 - - { wp: latest, ms: 'no', jp: 'no', php: '8.0', phpunit: '' } - - { wp: latest, ms: 'yes', jp: 'no', php: '8.0', phpunit: '' } # PHP 8.1, Jetpack - - { wp: 6.0.x, ms: 'no', jp: 'yes', php: '8.0', phpunit: '' } - - { wp: 6.0.x, ms: 'yes', jp: 'yes', php: '8.0', phpunit: '' } - - { wp: 6.1.x, ms: 'no', jp: 'yes', php: '8.0', phpunit: '' } - - { wp: 6.1.x, ms: 'yes', jp: 'yes', php: '8.0', phpunit: '' } - - { wp: 6.2.x, ms: 'no', jp: 'yes', php: '8.0', phpunit: '' } - - { wp: 6.2.x, ms: 'yes', jp: 'yes', php: '8.0', phpunit: '' } - - { wp: 6.3.x, ms: 'no', jp: 'yes', php: '8.0', phpunit: '' } - - { wp: 6.3.x, ms: 'yes', jp: 'yes', php: '8.0', phpunit: '' } - - { wp: latest, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' } - - { wp: latest, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' } + - { wp: 6.0.x, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' } + - { wp: 6.0.x, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' } + - { wp: 6.1.x, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' } + - { wp: 6.1.x, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' } + - { wp: 6.2.x, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' } + - { wp: 6.2.x, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' } + - { wp: 6.3.x, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' } + - { wp: 6.3.x, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' } + - { wp: latest, ms: 'no', jp: 'yes', php: '8.1', phpunit: '', coverage: 'yes' } + - { wp: latest, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '', coverage: 'yes' } + - { wp: nightly, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' } + - { wp: nightly, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' } # No Jetpack, WP latest, PHP 8.1 - { wp: latest, ms: 'no', jp: 'no', php: '8.1', phpunit: '' } - { wp: latest, ms: 'yes', jp: 'no', php: '8.1', phpunit: '' } From 837f5bdbe17d3b5c9fb74403fe984ec1fca1ea87 Mon Sep 17 00:00:00 2001 From: Mehmood Ahmad <31419912+mehmoodak@users.noreply.github.com> Date: Tue, 28 Nov 2023 11:37:49 +0500 Subject: [PATCH 25/30] Parsely: Fix config values of Site Details Sync (#5051) If the plugin is managed via Platform then Site Details Service was not receiving correct values because wp_parsely_credentials filter was not executing, this has been fixed now. --- config/class-site-details-index.php | 1 + tests/parsely/test-mu-parsely-integration.php | 74 ++++++++++++++++++- wp-parsely.php | 26 ++++--- 3 files changed, 86 insertions(+), 15 deletions(-) diff --git a/config/class-site-details-index.php b/config/class-site-details-index.php index e2993118d6..26cb993030 100644 --- a/config/class-site-details-index.php +++ b/config/class-site-details-index.php @@ -292,6 +292,7 @@ public function get_jetpack_info() { /** * Gather all the information about Parse.ly. + * * @return array Parse.ly plugin info. */ public function get_parsely_info() { diff --git a/tests/parsely/test-mu-parsely-integration.php b/tests/parsely/test-mu-parsely-integration.php index 4666738475..4576b9bc1f 100644 --- a/tests/parsely/test-mu-parsely-integration.php +++ b/tests/parsely/test-mu-parsely-integration.php @@ -2,10 +2,12 @@ namespace Automattic\VIP\WP_Parsely_Integration; -use Automattic\Test\Constant_Mocker; +use Automattic\VIP\Integrations\Integration; +use Automattic\VIP\Integrations\ParselyIntegration; use Parsely\UI\Row_Actions; use WP_UnitTestCase; +use function Automattic\Test\Utils\get_class_property_as_public; use function Automattic\Test\Utils\get_parsely_test_mode; use function Automattic\Test\Utils\is_parsely_disabled; @@ -14,6 +16,15 @@ function test_version() { return $major_version ?: SUPPORTED_VERSIONS[0]; } +/** + * Checks if the version of the Parse.ly is latest or not. + * + * @return boolean + */ +function is_latest_version() { + return test_version() === SUPPORTED_VERSIONS[0]; +} + /** * @runTestsInSeparateProcesses * @preserveGlobalState disabled @@ -282,21 +293,23 @@ public function test_default_parsely_configs() { return; } + \Parsely\parsely_initialize_plugin(); + $this->assertEquals( Parsely_Loader_Info::get_configs(), array( 'is_pinned_version' => has_filter( 'wpvip_parsely_version' ), 'site_id' => '', 'have_api_secret' => false, 'is_javascript_disabled' => false, 'is_autotracking_disabled' => false, - 'should_track_logged_in_users' => false, + 'should_track_logged_in_users' => is_latest_version() ? false : true, 'tracked_post_types' => array( array( 'name' => 'post', - 'track_type' => 'do-not-track', + 'track_type' => 'post', ), array( 'name' => 'page', - 'track_type' => 'do-not-track', + 'track_type' => 'non-post', ), array( 'name' => 'attachment', @@ -314,6 +327,7 @@ public function test_custom_parsely_configs() { return; } + \Parsely\parsely_initialize_plugin(); $current_settings = get_option( 'parsely' ) ?: []; update_option( 'parsely', array_merge( $current_settings, array( 'apikey' => 'example.com', @@ -352,6 +366,58 @@ public function test_custom_parsely_configs() { update_option( 'parsely', $current_settings ); } + /** + * Verify Parse.ly data is correctly setting when the plugin is in Managed Mode. + * + * @return void + */ + public function test_parsely_configs_for_managed_mode() { + maybe_load_plugin(); + + if ( is_parsely_disabled() ) { + $this->assertNull( Parsely_Loader_Info::get_configs() ); + return; + } + + // Arrange. + $parsely_integration = new ParselyIntegration( 'parsely' ); + get_class_property_as_public( Integration::class, 'options' )->setValue( $parsely_integration, [ + 'config' => [ + 'site_id' => 'site_id_value', + 'api_secret' => 'api_secret_value', + ], + ] ); + $parsely_integration->configure(); + + // Act. + \Parsely\parsely_initialize_plugin(); + $configs = Parsely_Loader_Info::get_configs(); + + // Assert. + $this->assertEquals( $configs, array( + 'is_pinned_version' => has_filter( 'wpvip_parsely_version' ), + 'site_id' => is_latest_version() ? 'site_id_value' : '', + 'have_api_secret' => is_latest_version() ? true : false, + 'is_javascript_disabled' => false, + 'is_autotracking_disabled' => false, + 'should_track_logged_in_users' => is_latest_version() ? false : true, + 'tracked_post_types' => array( + array( + 'name' => 'post', + 'track_type' => 'post', + ), + array( + 'name' => 'page', + 'track_type' => 'non-post', + ), + array( + 'name' => 'attachment', + 'track_type' => 'do-not-track', + ), + ), + ) ); + } + public function test_alter_option_use_repeated_metas() { maybe_load_plugin(); $options = alter_option_use_repeated_metas(); diff --git a/wp-parsely.php b/wp-parsely.php index 6db893d4e1..0af656b37f 100644 --- a/wp-parsely.php +++ b/wp-parsely.php @@ -61,13 +61,6 @@ final class Parsely_Loader_Info { */ private static string $version; - /** - * Options of the plugin. - * - * @var array - */ - private static array $parsely_options; - /** * Check if the plugin is active. * @@ -144,7 +137,7 @@ public static function get_configs() { } $configs = array(); - $options = self::get_parsely_options() ?: []; + $options = self::get_parsely_options(); $configs['is_pinned_version'] = has_filter( 'wpvip_parsely_version' ); $configs['site_id'] = $options['apikey'] ?? ''; @@ -179,11 +172,22 @@ public static function get_configs() { * Get Parse.ly options. */ public static function get_parsely_options(): array { - if ( ! isset( self::$parsely_options ) ) { - self::$parsely_options = get_option( 'parsely', [] ); + if ( ! self::is_active() ) { + return array(); } - return is_array( self::$parsely_options ) ? self::$parsely_options : []; + /** + * Parse.ly options. + * + * @var array + */ + $parsely_options = array(); + + if ( isset( $GLOBALS['parsely'] ) && is_a( $GLOBALS['parsely'], 'Parsely\Parsely' ) ) { + $parsely_options = $GLOBALS['parsely']->get_options(); + } + + return $parsely_options; } } From 72b8aab3554adbeaaa750ff3ac3013c07744f9a9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 28 Nov 2023 09:54:22 +0200 Subject: [PATCH 26/30] chore(deps-dev): Bump @automattic/eslint-plugin-wpvip (#5057) Bumps [@automattic/eslint-plugin-wpvip](https://github.com/Automattic/eslint-config-wpvip) from 0.8.0 to 0.9.0. - [Release notes](https://github.com/Automattic/eslint-config-wpvip/releases) - [Commits](https://github.com/Automattic/eslint-config-wpvip/compare/0.8.0...0.9.0) --- updated-dependencies: - dependency-name: "@automattic/eslint-plugin-wpvip" 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> --- search/search-dev-tools/package-lock.json | 112 +++++++++++----------- search/search-dev-tools/package.json | 2 +- 2 files changed, 57 insertions(+), 57 deletions(-) diff --git a/search/search-dev-tools/package-lock.json b/search/search-dev-tools/package-lock.json index 5f17308fd6..c13ec5a576 100644 --- a/search/search-dev-tools/package-lock.json +++ b/search/search-dev-tools/package-lock.json @@ -17,7 +17,7 @@ "react-simple-code-editor": "^0.11.3" }, "devDependencies": { - "@automattic/eslint-plugin-wpvip": "^0.8.0", + "@automattic/eslint-plugin-wpvip": "^0.9.0", "@babel/core": "^7.23.2", "@babel/plugin-transform-class-properties": "^7.22.5", "@babel/plugin-transform-object-assign": "^7.22.5", @@ -69,15 +69,15 @@ } }, "node_modules/@automattic/eslint-plugin-wpvip": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@automattic/eslint-plugin-wpvip/-/eslint-plugin-wpvip-0.8.0.tgz", - "integrity": "sha512-yRqS4BTFJ1/U9lpQoUFnJwQsu9OvKcZB0/iiR0jiSmM/eeI3jtkpJLG2wYdwESUjsI5/AeApzFFVLRfrcHaQ1A==", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@automattic/eslint-plugin-wpvip/-/eslint-plugin-wpvip-0.9.0.tgz", + "integrity": "sha512-wP0qu/Buu8Vmd1bN0OIw3iUzYaqQNd3IoL4gUqmuTqkMzzA69agwhT0vrDSIY2IbN4fXlzp2eGyoKrwO+/8gSQ==", "dev": true, "dependencies": { - "@babel/eslint-parser": "7.22.15", - "@rushstack/eslint-patch": "1.5.1", - "@typescript-eslint/eslint-plugin": "6.9.1", - "@typescript-eslint/parser": "6.9.1", + "@babel/eslint-parser": "7.23.3", + "@rushstack/eslint-patch": "1.6.0", + "@typescript-eslint/eslint-plugin": "6.12.0", + "@typescript-eslint/parser": "6.12.0", "eslint-config-prettier": "8.7.0", "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.0", @@ -151,9 +151,9 @@ } }, "node_modules/@babel/eslint-parser": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.22.15.tgz", - "integrity": "sha512-yc8OOBIQk1EcRrpizuARSQS0TWAcOMpEJ1aafhNznaeYkeL+OhqnDObGFylB8ka8VFF/sZc+S4RzHyO+3LjQxg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.23.3.tgz", + "integrity": "sha512-9bTuNlyx7oSstodm1cR1bECj4fkiknsDa1YniISkJemMY3DGhJNYBECbe6QD/q54mp2J8VO66jW3/7uP//iFCw==", "dev": true, "dependencies": { "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", @@ -2174,9 +2174,9 @@ } }, "node_modules/@rushstack/eslint-patch": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.5.1.tgz", - "integrity": "sha512-6i/8UoL0P5y4leBIGzvkZdS85RDMG9y1ihZzmTZQ5LdHUYmZ7pKFoj8X0236s3lusPs1Fa5HTQUpwI+UfTcmeA==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.6.0.tgz", + "integrity": "sha512-2/U3GXA6YiPYQDLGwtGlnNgKYBSwCFIHf8Y9LUY5VATHdtbLlU0Y1R3QoBnT0aB4qv/BEiVVsj7LJXoQCgJ2vA==", "dev": true }, "node_modules/@sinclair/typebox": { @@ -2458,16 +2458,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.9.1.tgz", - "integrity": "sha512-w0tiiRc9I4S5XSXXrMHOWgHgxbrBn1Ro+PmiYhSg2ZVdxrAJtQgzU5o2m1BfP6UOn7Vxcc6152vFjQfmZR4xEg==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.12.0.tgz", + "integrity": "sha512-XOpZ3IyJUIV1b15M7HVOpgQxPPF7lGXgsfcEIu3yDxFPaf/xZKt7s9QO/pbk7vpWQyVulpJbu4E5LwpZiQo4kA==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.9.1", - "@typescript-eslint/type-utils": "6.9.1", - "@typescript-eslint/utils": "6.9.1", - "@typescript-eslint/visitor-keys": "6.9.1", + "@typescript-eslint/scope-manager": "6.12.0", + "@typescript-eslint/type-utils": "6.12.0", + "@typescript-eslint/utils": "6.12.0", + "@typescript-eslint/visitor-keys": "6.12.0", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -2690,15 +2690,15 @@ "dev": true }, "node_modules/@typescript-eslint/parser": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.9.1.tgz", - "integrity": "sha512-C7AK2wn43GSaCUZ9do6Ksgi2g3mwFkMO3Cis96kzmgudoVaKyt62yNzJOktP0HDLb/iO2O0n2lBOzJgr6Q/cyg==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.12.0.tgz", + "integrity": "sha512-s8/jNFPKPNRmXEnNXfuo1gemBdVmpQsK1pcu+QIvuNJuhFzGrpD7WjOcvDc/+uEdfzSYpNu7U/+MmbScjoQ6vg==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.9.1", - "@typescript-eslint/types": "6.9.1", - "@typescript-eslint/typescript-estree": "6.9.1", - "@typescript-eslint/visitor-keys": "6.9.1", + "@typescript-eslint/scope-manager": "6.12.0", + "@typescript-eslint/types": "6.12.0", + "@typescript-eslint/typescript-estree": "6.12.0", + "@typescript-eslint/visitor-keys": "6.12.0", "debug": "^4.3.4" }, "engines": { @@ -2718,13 +2718,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.9.1.tgz", - "integrity": "sha512-38IxvKB6NAne3g/+MyXMs2Cda/Sz+CEpmm+KLGEM8hx/CvnSRuw51i8ukfwB/B/sESdeTGet1NH1Wj7I0YXswg==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.12.0.tgz", + "integrity": "sha512-5gUvjg+XdSj8pcetdL9eXJzQNTl3RD7LgUiYTl8Aabdi8hFkaGSYnaS6BLc0BGNaDH+tVzVwmKtWvu0jLgWVbw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.9.1", - "@typescript-eslint/visitor-keys": "6.9.1" + "@typescript-eslint/types": "6.12.0", + "@typescript-eslint/visitor-keys": "6.12.0" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -2735,13 +2735,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.9.1.tgz", - "integrity": "sha512-eh2oHaUKCK58qIeYp19F5V5TbpM52680sB4zNSz29VBQPTWIlE/hCj5P5B1AChxECe/fmZlspAWFuRniep1Skg==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.12.0.tgz", + "integrity": "sha512-WWmRXxhm1X8Wlquj+MhsAG4dU/Blvf1xDgGaYCzfvStP2NwPQh6KBvCDbiOEvaE0filhranjIlK/2fSTVwtBng==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.9.1", - "@typescript-eslint/utils": "6.9.1", + "@typescript-eslint/typescript-estree": "6.12.0", + "@typescript-eslint/utils": "6.12.0", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -2762,9 +2762,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.9.1.tgz", - "integrity": "sha512-BUGslGOb14zUHOUmDB2FfT6SI1CcZEJYfF3qFwBeUrU6srJfzANonwRYHDpLBuzbq3HaoF2XL2hcr01c8f8OaQ==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.12.0.tgz", + "integrity": "sha512-MA16p/+WxM5JG/F3RTpRIcuOghWO30//VEOvzubM8zuOOBYXsP+IfjoCXXiIfy2Ta8FRh9+IO9QLlaFQUU+10Q==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -2775,13 +2775,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.9.1.tgz", - "integrity": "sha512-U+mUylTHfcqeO7mLWVQ5W/tMLXqVpRv61wm9ZtfE5egz7gtnmqVIw9ryh0mgIlkKk9rZLY3UHygsBSdB9/ftyw==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.12.0.tgz", + "integrity": "sha512-vw9E2P9+3UUWzhgjyyVczLWxZ3GuQNT7QpnIY3o5OMeLO/c8oHljGc8ZpryBMIyympiAAaKgw9e5Hl9dCWFOYw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.9.1", - "@typescript-eslint/visitor-keys": "6.9.1", + "@typescript-eslint/types": "6.12.0", + "@typescript-eslint/visitor-keys": "6.12.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -2835,17 +2835,17 @@ "dev": true }, "node_modules/@typescript-eslint/utils": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.9.1.tgz", - "integrity": "sha512-L1T0A5nFdQrMVunpZgzqPL6y2wVreSyHhKGZryS6jrEN7bD9NplVAyMryUhXsQ4TWLnZmxc2ekar/lSGIlprCA==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.12.0.tgz", + "integrity": "sha512-LywPm8h3tGEbgfyjYnu3dauZ0U7R60m+miXgKcZS8c7QALO9uWJdvNoP+duKTk2XMWc7/Q3d/QiCuLN9X6SWyQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.9.1", - "@typescript-eslint/types": "6.9.1", - "@typescript-eslint/typescript-estree": "6.9.1", + "@typescript-eslint/scope-manager": "6.12.0", + "@typescript-eslint/types": "6.12.0", + "@typescript-eslint/typescript-estree": "6.12.0", "semver": "^7.5.4" }, "engines": { @@ -2893,12 +2893,12 @@ "dev": true }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.9.1.tgz", - "integrity": "sha512-MUaPUe/QRLEffARsmNfmpghuQkW436DvESW+h+M52w0coICHRfD6Np9/K6PdACwnrq1HmuLl+cSPZaJmeVPkSw==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.12.0.tgz", + "integrity": "sha512-rg3BizTZHF1k3ipn8gfrzDXXSFKyOEB5zxYXInQ6z0hUvmQlhaZQzK+YmHmNViMA9HzW5Q9+bPPt90bU6GQwyw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/types": "6.12.0", "eslint-visitor-keys": "^3.4.1" }, "engines": { diff --git a/search/search-dev-tools/package.json b/search/search-dev-tools/package.json index 913185788b..44b76ac0f6 100644 --- a/search/search-dev-tools/package.json +++ b/search/search-dev-tools/package.json @@ -14,7 +14,7 @@ "build/*" ], "devDependencies": { - "@automattic/eslint-plugin-wpvip": "^0.8.0", + "@automattic/eslint-plugin-wpvip": "^0.9.0", "@babel/core": "^7.23.2", "@babel/plugin-transform-class-properties": "^7.22.5", "@babel/plugin-transform-object-assign": "^7.22.5", From 171c8b3f42ab93bdc70a1149424a5096b7b6624c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 28 Nov 2023 09:55:04 +0200 Subject: [PATCH 27/30] chore(deps): Bump shivammathur/setup-php from 2.27.1 to 2.28.0 (#5056) Bumps [shivammathur/setup-php](https://github.com/shivammathur/setup-php) from 2.27.1 to 2.28.0. - [Release notes](https://github.com/shivammathur/setup-php/releases) - [Commits](https://github.com/shivammathur/setup-php/compare/2.27.1...2.28.0) --- updated-dependencies: - dependency-name: shivammathur/setup-php 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> --- .github/workflows/changelog-summary-prod.yml | 2 +- .github/workflows/changelog-summary-staging.yml | 2 +- .github/workflows/core-tests.yml | 2 +- .github/workflows/lint.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/changelog-summary-prod.yml b/.github/workflows/changelog-summary-prod.yml index 74ba3b21b0..ea3eaaec8a 100644 --- a/.github/workflows/changelog-summary-prod.yml +++ b/.github/workflows/changelog-summary-prod.yml @@ -64,7 +64,7 @@ jobs: uses: actions/checkout@v4.1.1 - name: Setup PHP - uses: shivammathur/setup-php@2.27.1 + uses: shivammathur/setup-php@2.28.0 with: php-version: '7.4' diff --git a/.github/workflows/changelog-summary-staging.yml b/.github/workflows/changelog-summary-staging.yml index 3f98e50a6f..db3e02ebbe 100644 --- a/.github/workflows/changelog-summary-staging.yml +++ b/.github/workflows/changelog-summary-staging.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v4.1.1 - name: Setup PHP - uses: shivammathur/setup-php@2.27.1 + uses: shivammathur/setup-php@2.28.0 with: php-version: '7.4' diff --git a/.github/workflows/core-tests.yml b/.github/workflows/core-tests.yml index 9a1a5e940b..31c2a9b8fc 100644 --- a/.github/workflows/core-tests.yml +++ b/.github/workflows/core-tests.yml @@ -67,7 +67,7 @@ jobs: cache-dependency-path: 'wordpress/package-lock.json' - name: Set up PHP - uses: shivammathur/setup-php@2.27.1 + uses: shivammathur/setup-php@2.28.0 with: php-version: 8.0 coverage: none diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fbcb9dcc80..5c83de925d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -28,7 +28,7 @@ jobs: uses: actions/checkout@v4.1.1 - name: Set up PHP - uses: shivammathur/setup-php@2.27.1 + uses: shivammathur/setup-php@2.28.0 with: coverage: none php-version: "8.0" From c6fd953f5ef6e05c8c71efdd06deb8265df15e4a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 28 Nov 2023 09:55:40 +0200 Subject: [PATCH 28/30] chore(deps-dev): Bump @babel/preset-env from 7.23.2 to 7.23.3 in /search/search-dev-tools (#5055) * chore(deps-dev): Bump @babel/preset-env in /search/search-dev-tools Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.23.2 to 7.23.3. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.3/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... 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 --- search/search-dev-tools/build/bundle.js | 2 +- search/search-dev-tools/package-lock.json | 460 +++++++++++----------- 2 files changed, 239 insertions(+), 223 deletions(-) diff --git a/search/search-dev-tools/build/bundle.js b/search/search-dev-tools/build/bundle.js index ef469bcbb1..cde26146d3 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={798:(e,t,n)=>{n.p=window.VIPSearchDevTools.__webpack_public_path__},184:(e,t)=>{var n;!function(){"use strict";function r(){for(var e=[],t=0;t1&&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=y()(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?m(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 m(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}(p()),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){this.props=e}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,M.az)(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=I,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,M.az)(r,t)}var n,r,o;return t.displayName="Lazy",t.__f=!0,t}function p(){this.u=null,this.o=null}function d(e){return this.getChildContext=function(){return e.context},e.children}function h(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,M.sY)(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:[],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,M.sY)((0,M.az)(d,{context:t.context},e.__v),t.l)}function v(e,t){var n=(0,M.az)(h,{__v:e,i:t});return n.containerInfo=t,n}function y(e,t,n){return null==t.__k&&(t.textContent=""),(0,M.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function m(e,t,n){return(0,M.ZB)(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 M.az.bind(null,e)}function S(e){return!!e&&e.$$typeof===z}function x(e){return S(e)&&e.type===M.HY}function C(e){return S(e)?M.Tm.apply(null,arguments):e}function E(e){return!!e.__k&&((0,M.sY)(null,e),!0)}function O(e){return e&&(e.base||1===e.nodeType&&e)||null}function P(e){e()}function N(e){return e}function A(){return[!1,P]}function $(e,t){var n=t(),r=(0,L.eJ)({h:{__:n,v:t}}),o=r[0].h,i=r[1];return(0,L.bt)((function(){o.__=n,o.v=t,j(o)&&i({h:o})}),[e,n,t]),(0,L.d4)((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:()=>q,Component:()=>M.wA,Fragment:()=>M.HY,PureComponent:()=>i,StrictMode:()=>oe,Suspense:()=>c,SuspenseList:()=>p,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>ee,cloneElement:()=>C,createContext:()=>M.kr,createElement:()=>M.az,createFactory:()=>k,createPortal:()=>v,createRef:()=>M.Vf,default:()=>le,findDOMNode:()=>O,flushSync:()=>re,forwardRef:()=>l,hydrate:()=>m,isElement:()=>ae,isFragment:()=>x,isValidElement:()=>S,lazy:()=>_,memo:()=>a,render:()=>y,startTransition:()=>P,unmountComponentAtNode:()=>E,unstable_batchedUpdates:()=>ne,useCallback:()=>L.I4,useContext:()=>L.qp,useDebugValue:()=>L.Qb,useDeferredValue:()=>N,useEffect:()=>L.d4,useErrorBoundary:()=>L.cO,useId:()=>L.Me,useImperativeHandle:()=>L.aP,useInsertionEffect:()=>ie,useLayoutEffect:()=>L.bt,useMemo:()=>L.Ye,useReducer:()=>L._Y,useRef:()=>L.sO,useState:()=>L.eJ,useSyncExternalStore:()=>$,useTransition:()=>A,version:()=>te});var M=n(400),L=n(396);(i.prototype=new M.wA).isPureReactComponent=!0,i.prototype.shouldComponentUpdate=function(e,t){return o(this.props,e)||o(this.state,t)};var T=M.YM.__b;M.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),T&&T(e)};var I="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,R=function(e,t){return null==e?null:(0,M.bR)((0,M.bR)(e).map(t))},q={map:R,forEach:R,count:function(e){return e?(0,M.bR)(e).length:0},only:function(e){var t=(0,M.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:M.bR},D=M.YM.__e;M.YM.__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);D(e,t,n,r)};var H=M.YM.unmount;M.YM.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 M.wA).__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,M.az)(M.HY,null,e.fallback);return o&&(o.__u&=-33),[(0,M.az)(M.HY,null,t.__a?null:e.children),o]};var Y=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?M.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?++T:o,__i:-1,__u:0};return null==o&&null!=L.vnode&&L.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&&I.sort(D));p.__r=0}function d(e,t,n,r,o,i,a,l,u,s,c){var f,_,p,d,y,m=r&&r.__k||z,g=t.length;for(n.__d=u,h(n,t,m),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=m(o,n,l=r+d,p),o.__i=s,i=null,-1!==s&&(p--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==l&&(s===l+1?d++:s>l?p>f-l?d+=s-l:d--:d=s(null!=u&&0==(131072&u.__u)?1:0))for(;a>=0||l=0){if((u=t[a])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return a;a--}if(l2&&(s.children=arguments.length>3?M.call(arguments,2):n),a(e.type,s,o||e.key,i||e.ref,null)}function j(e,t){var n={__c:t="__cC"+H++,__: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.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.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n.d(t,{HY:()=>u,Tm:()=>$,Vf:()=>l,YM:()=>L,ZB:()=>A,az:()=>i,bR:()=>y,h:()=>i,kr:()=>j,sY:()=>N,wA:()=>s});var M,L,T,I,R,q,D,H,Y={},z=[],U=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,W=Array.isArray;M=z.slice,L={__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}},T=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,I=[],q="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D=function(e,t){return e.__v.__b-t.__v.__b},p.__r=0,H=0},396:(e,t,n)=>{"use strict";function r(e,t){E.YM.__h&&E.YM.__h(S,e,O||t),O=0;var n=S.__H||(S.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:N}),n.__[e]}function o(e){return O=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);!E.YM.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__H.__h.push(n))}function l(e,t){var n=r(k++,4);!E.YM.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__h.push(n))}function u(e){return O=5,c((function(){return{current:e}}),[])}function s(e,t,n){O=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.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function f(e,t){return O=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 p(e,t){E.YM.useDebugValue&&E.YM.useDebugValue(t?t(e):e)}function d(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=P.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(m),e.__H.__h.forEach(g),e.__H.__h=[]}catch(t){e.__H.__h=[],E.YM.__e(t,e.__v)}}function y(e){var t,n=function(){clearTimeout(r),T&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);T&&(t=requestAnimationFrame(n))}function m(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,{I4:()=>f,Me:()=>h,Qb:()=>p,Ye:()=>c,_Y:()=>i,aP:()=>s,bt:()=>l,cO:()=>d,d4:()=>a,eJ:()=>o,qp:()=>_,sO:()=>u});var k,S,x,C,E=n(400),O=0,P=[],N=[],A=E.YM.__b,$=E.YM.__r,j=E.YM.diffed,M=E.YM.__c,L=E.YM.unmount;E.YM.__b=function(e){S=null,A&&A(e)},E.YM.__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.__V=N,e.__N=e.i=void 0}))):(t.__h.forEach(m),t.__h.forEach(g),t.__h=[],k=0)),x=S},E.YM.diffed=function(e){j&&j(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==P.push(t)&&C===E.YM.requestAnimationFrame||((C=E.YM.requestAnimationFrame)||y)(v)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==N&&(e.__=e.__V),e.i=void 0,e.__V=N}))),x=S=null},E.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(m),e.__h=e.__h.filter((function(e){return!e.__||g(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],E.YM.__e(n,e.__v)}})),M&&M(e,t)},E.YM.unmount=function(e){L&&L(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{m(e)}catch(e){t=e}})),n.__H=void 0,t&&E.YM.__e(t,n.__v))};var T="function"==typeof requestAnimationFrame},325:(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 p=l[_];p=Array.isArray(p)?p:[p];for(var d=0;d=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(m){if(!(C=n(w,S,e,y))||C.index>=e.length)break;var O=C.index,P=C.index+C[0].length,N=S;for(N+=k.value.length;O>=N;)N+=(k=k.next).value.length;if(S=N-=k.value.length,k.value instanceof t)continue;for(var A=k;A!==o.tail&&(Nc.reach&&(c.reach=L);var T=k.prev;if(j&&(T=i(o,T,j),S+=j.length),a(o,T,E),k=i(o,T,new t(_,v?f.tokenize($,v):$,g,$)),M&&i(o,k,M),E>1){var I={cause:_+","+d,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 p=document.readyState;"loading"===p||"interactive"===p&&_&&_.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)},277:()=>{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},759:()=>{!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}))}}()},460:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1){t._history.stack=u.slice(0,s+1);var c=t._history.stack.length;if(c>100){var f=c-100;t._history.stack=u.slice(f,c),t._history.offset=Math.max(t._history.offset-f,0)}}var _=Date.now();if(n){var p=t._history.stack[t._history.offset];if(p&&_-p.timestamp<3e3){var d=/[^a-z0-9]([a-z0-9]+)$/i,h=null===(r=t._getLines(p.value,p.selectionStart).pop())||void 0===r?void 0:r.match(d),v=null===(o=t._getLines(e.value,e.selectionStart).pop())||void 0===o?void 0:o.match(d);if((null==h?void 0:h[1])&&(null===(a=null==v?void 0:v[1])||void 0===a?void 0:a.startsWith(h[1])))return void(t._history.stack[t._history.offset]=i(i({},e),{timestamp:_}))}}t._history.stack.push(i(i({},e),{timestamp:_})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,r=t._history.stack[t._history.offset];r&&n&&(t._history.stack[t._history.offset]=i(i({},r),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.offset,r=e.stack[n-1];r&&(t._updateInput(r),t._history.offset=Math.max(n-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,r=e.offset,o=n[r+1];o&&(t._updateInput(o),t._history.offset=Math.min(r+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,r=n.tabSize,o=n.insertSpaces,i=n.ignoreTabKey,a=n.onKeyDown;if(!a||(a(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var l=e.currentTarget,u=l.value,s=l.selectionStart,c=l.selectionEnd,p=(o?" ":"\t").repeat(r);if(9===e.keyCode&&!i&&t.state.capture)if(e.preventDefault(),e.shiftKey){var d=(y=t._getLines(u,s)).length-1,h=t._getLines(u,c).length-1,v=u.split("\n").map((function(e,t){return t>=d&&t<=h&&e.startsWith(p)?e.substring(p.length):e})).join("\n");if(u!==v)t._applyEdits({value:v,selectionStart:(null==(b=y[d])?void 0:b.startsWith(p))?s-p.length:s,selectionEnd:c-(u.length-v.length)})}else if(s!==c){var y,m=(y=t._getLines(u,s)).length-1,g=t._getLines(u,c).length-1,b=y[m];t._applyEdits({value:u.split("\n").map((function(e,t){return t>=m&&t<=g?p+e:e})).join("\n"),selectionStart:b&&/\S/.test(b)?s+p.length:s,selectionEnd:c+p.length*(g-m+1)})}else{var w=s+p.length;t._applyEdits({value:u.substring(0,s)+p+u.substring(c),selectionStart:w,selectionEnd:w})}else if(8===e.keyCode){var k=s!==c;if(u.substring(0,s).endsWith(p)&&!k){e.preventDefault();w=s-p.length;t._applyEdits({value:u.substring(0,s-p.length)+u.substring(c),selectionStart:w,selectionEnd:w})}}else if(13===e.keyCode){if(s===c){var S=t._getLines(u,s).pop(),x=null==S?void 0:S.match(/^\s+/);if(null==x?void 0:x[0]){e.preventDefault();var C="\n"+x[0];w=s+C.length;t._applyEdits({value:u.substring(0,s)+C+u.substring(c),selectionStart:w,selectionEnd:w})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var E=void 0;57===e.keyCode&&e.shiftKey?E=["(",")"]:219===e.keyCode?E=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?E=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(E=["`","`"]),s!==c&&E&&(e.preventDefault(),t._applyEdits({value:u.substring(0,s)+E[0]+u.substring(s,c)+E[1]+u.substring(c),selectionStart:s,selectionEnd:c+2}))}else!(_?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(_?e.metaKey&&90===e.keyCode&&e.shiftKey:f?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||_&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,r=n.value;t._recordChange({value:r,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd},!0),t.props.onValueChange(r)},t._history={stack:[],offset:-1},t._input=null,t}return o(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,r=t.style,o=t.padding,a=t.highlight,l=t.textareaId,u=t.textareaClassName,f=t.autoFocus,_=t.disabled,h=t.form,y=t.maxLength,m=t.minLength,g=t.name,b=t.placeholder,w=t.readOnly,k=t.required,S=t.onClick,x=t.onFocus,C=t.onBlur,E=t.onKeyUp,O=t.preClassName,P=s(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),N={paddingTop:o,paddingRight:o,paddingBottom:o,paddingLeft:o},A=a(n);return c.createElement("div",i({},P,{style:i(i({},v.container),r)}),c.createElement("textarea",{ref:function(t){return e._input=t},style:i(i(i({},v.editor),v.textarea),N),className:p+(u?" ".concat(u):""),id:l,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:S,onKeyUp:E,onFocus:x,onBlur:C,disabled:_,form:h,maxLength:y,minLength:m,name:g,placeholder:b,readOnly:w,required:k,autoFocus:f,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),c.createElement("pre",i({className:O,"aria-hidden":"true",style:i(i(i({},v.editor),v.highlight),N)},"string"==typeof A?{dangerouslySetInnerHTML:{__html:A+"
    "}}:{children:A})),c.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:d}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(c.Component);t.default=h;var v={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"}}}},n={};e.n=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)||null===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:String(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)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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=new 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)||null===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:String(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)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(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=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2?"+ ".concat(b()("other",p-2,!0)):"";return(0,m.h)("div",{className:x()((t={},n(t,C.info_block,!0),n(t,C.info_block_collapsible,l.collapsible||!1),n(t,C.info_block_collapsed,s),t))},(0,m.h)("h5",{className:C.info_label,onClick:f},o),l.collapsible?(0,m.h)(O,null,(0,m.h)("div",{className:x()(n({},C.info_block_inner,!0))},_?i.map((function(e){return(0,m.h)("span",{key:e,className:C.info_block_item},e)})):(0,m.h)("span",null,i)),(0,m.h)("span",{className:C.info_block_teaser,onClick:f},_?" ".concat(i.slice(0,2).join(", ")," ").concat(d):"Click to show")):(0,m.h)("span",null,_?i.join(", "):i))};const A=function(e){var t=e.children,n=e.closeOverlay,r=e.colorTheme,o=void 0===r?"light":r,i=e.isVisible,a=(0,k.Ye)((function(){return function(e){return"Escape"===e.key&&n()}}),[n]);return(0,k.d4)((function(){return window.addEventListener("keydown",a),function(){window.removeEventListener("keydown",a)}}),[a]),i?(0,m.h)("div",{className:"search-dev-tools__overlay search-dev-tools__overlay--".concat(o),role:"dialog"},(0,m.h)("button",{"aria-label":"Close VIP Search Dev Tools",className:"search-dev-tools__overlay__close",onClick:n},(0,m.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljc5MyA5LjUuNjQ2IDE3LjY0NmwuNzA4LjcwN0w5LjUgMTAuMjA3bDguMTQ2IDguMTQ2LjcwOC0uNzA3TDEwLjIwNyA5LjVsOC4xNDctOC4xNDYtLjcwNy0uNzA4TDkuNSA4Ljc5MyAxLjM1NC42NDZsLS43MDguNzA4TDguNzkzIDkuNVoiIGZpbGw9IiMwMDAiLz48L3N2Zz4=",alt:"Close"})),t):null};var $=e(152),j=e.n($),M=e(325),L=(e(759),e(277),e(460)),T=e.n(L);const I="query_wrap__uIeve",R="query_result__k_RWY",q="query_actions__ImK9_",D="query_handle__e0c8G",H="query_collapsed__PGXWS",Y="grid_container__esEnb",z="query_src_header__wWAup",U="query_res_header__DMOpO",W="query_src__MoJsW",V="query_res__FZmqB",F="query_src_extra__aZwxj",K="container_editor___Y1qC",B="container_editor_line_number__FU7Ow",J="collapsible_list__PJS0Z",G="collapsible_list_details__u5Pq3",Z="visible__M2eJW";var Q=function(e){var t,n=e.list,r=void 0===n?[]:n,o=e.title,i=void 0===o?"View":o,a=c((0,k.eJ)(!1),2),l=a[0],u=a[1],f=i.toLowerCase();return(0,m.h)("div",{className:x()((t={},s(t,J,!0),s(t,Z,l),t))},(0,m.h)("strong",{className:"".concat(f," vip-h4"),onClick:r.length?function(){u(!l)}:null},i," (","".concat(r.length),")"),(0,m.h)("ol",{className:"".concat(G," ").concat(f," vip-collapse-ol")},r.map((function(e,t){return(0,m.h)("li",{key:t},e)}))))},X=e(400).HY,ee=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=d((0,k.eJ)(f),2),v=h[0],y=h[1],g="#query-response-copy-handle",w=(0,k.I4)(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);y((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){p(l,r,o,i,a,"next",e)}function a(e){p(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,k.d4)((function(){var e=new(j())(g);return e.on("success",(function(e){document.querySelector(g).innerHTML="COPIED!",setTimeout((function(){document.querySelector(g).innerHTML="COPY"}),2e3),e.clearSelection()})),function(){return e.destroy()}}),[]),(0,k.d4)((function(){v.query!==f.query&&(v.editing||w(v.query))}),[v.query,v.editing,f.query,w]);var S;return(0,m.h)("div",{className:x()(I,v.collapsed?H:null)},(0,m.h)("div",{className:D,onClick:function(){return y(_({},v,{collapsed:!v.collapsed}))}},(0,m.h)("h3",{className:"vip-h3"},b()("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,m.h)("span",{style:"color: var(--vip-grey-60);"}," that took")," ",(0,m.h)("span",{style:{color:"var(--vip-".concat((S=r.body.took)<200?"green-60":S<500?"red-30":"red-60",")"),fontWeight:"bold"}},S,"ms"),(0,m.h)("small",null," (",(null==r||null===(n=r.response)||void 0===n?void 0:n.code)||"unknown",")"))),(0,m.h)("div",{className:Y},(0,m.h)("div",{className:z},(0,m.h)("span",{style:"margin-right: auto;"},"Request"),(0,m.h)("div",{className:F},(0,m.h)(Q,{title:"WP_Query",list:Object.entries(i).map((function(e){var t=d(e,2),n=t[1];return"".concat(t[0],": ").concat(JSON.stringify(n))}))}),(0,m.h)(Q,{title:"Trace",list:u}))),(0,m.h)("div",{className:U},"Response"),(0,m.h)("div",{className:"".concat(W," query-src-box")},(0,m.h)("div",{className:q},v.editing||v.result!==c?(0,m.h)(X,null,(0,m.h)("button",{onClick:function(){return y(_({},v,{editing:!1}))},style:"background-color: var(--vip-green-40) !important"},"RUN"),(0,m.h)("button",{onClick:function(){return y(_({},f,{collapsed:!1}))},style:"background-color: var(--vip-blue-10) !important"},"RESET")):"Edit me!"),(0,m.h)(T(),{value:v.query,onValueChange:function(e){return y(_({},v,{query:e,editing:!0}))},highlight:function(e){return(0,M.highlight)(e,M.languages.json,"json").split("\n").map((function(e){return'').concat(e,"")})).join("\n")},padding:0,className:K,style:{fontSize:"var(--vip-sdt-editor-font-size)",lineHeight:"1.2em"}})),(0,m.h)("div",{className:"".concat(V," query-result-box")},(0,m.h)("div",{className:R},(0,m.h)("div",{className:q},(0,m.h)("button",{id:"query-response-copy-handle","data-clipboard-target":"#query-response-text"},"COPY")),(0,m.h)("pre",{className:"line-numbers"},(0,m.h)("code",{className:"language-json",id:"query-response-text"},v.result))))))},te=function(){var e=(0,k.qp)(E).queries;return(0,m.h)("div",null,e.length<1?"No queries to show":e.map((function(e,t){return(0,m.h)(ee,_({key:t},e))})))};const ne="vip_search_dev_tools__WdCFa",re="ab_btn__Grxiu";var oe=function(e){var t=(0,k.qp)(E).queries;return(0,m.h)("button",e,"Search: ",b()("query",t.length,!0))};const ie=function(){var e,t=v((0,k.eJ)(!1),2),n=t[0],r=t[1],o=(0,k.I4)((function(){return r(!1)}),[]),i=(0,k.I4)((function(){return r(!n)}),[n]);return(0,m.h)(E.Provider,{value:(null===(e=window)||void 0===e?void 0:e.VIPSearchDevTools)||{status:"disabled",queries:[],information:[]}},(0,m.h)("div",{className:"search-dev-tools__wrapper"},(0,m.h)(oe,{class:re,onClick:i}),(0,w.createPortal)((0,m.h)(A,{isVisible:n,closeOverlay:o,opacity:"100"},(0,m.h)("div",{className:ne},(0,m.h)("h4",{className:"vip-h4 main_caption"},"Enterprise Search Dev Tools"),(0,m.h)(P,null),(0,m.h)(te,null))),document.getElementById("search-dev-tools-portal"))))};var ae=function(){return(0,m.sY)((0,m.h)(ie,null),document.querySelector('[data-widget-host="vip-search-dev-tools"]'))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ae):ae()})()})(); \ 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={798:(e,t,n)=>{n.p=window.VIPSearchDevTools.__webpack_public_path__},184:(e,t)=>{var n;!function(){"use strict";function r(){for(var e=[],t=0;t1&&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=y()(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?m(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 m(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}(p()),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){this.props=e}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,M.az)(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=I,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,M.az)(r,t)}var n,r,o;return t.displayName="Lazy",t.__f=!0,t}function p(){this.u=null,this.o=null}function d(e){return this.getChildContext=function(){return e.context},e.children}function h(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,M.sY)(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:[],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,M.sY)((0,M.az)(d,{context:t.context},e.__v),t.l)}function v(e,t){var n=(0,M.az)(h,{__v:e,i:t});return n.containerInfo=t,n}function y(e,t,n){return null==t.__k&&(t.textContent=""),(0,M.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function m(e,t,n){return(0,M.ZB)(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 M.az.bind(null,e)}function S(e){return!!e&&e.$$typeof===z}function x(e){return S(e)&&e.type===M.HY}function C(e){return S(e)?M.Tm.apply(null,arguments):e}function E(e){return!!e.__k&&((0,M.sY)(null,e),!0)}function O(e){return e&&(e.base||1===e.nodeType&&e)||null}function P(e){e()}function N(e){return e}function A(){return[!1,P]}function $(e,t){var n=t(),r=(0,L.eJ)({h:{__:n,v:t}}),o=r[0].h,i=r[1];return(0,L.bt)((function(){o.__=n,o.v=t,j(o)&&i({h:o})}),[e,n,t]),(0,L.d4)((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:()=>q,Component:()=>M.wA,Fragment:()=>M.HY,PureComponent:()=>i,StrictMode:()=>oe,Suspense:()=>c,SuspenseList:()=>p,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>ee,cloneElement:()=>C,createContext:()=>M.kr,createElement:()=>M.az,createFactory:()=>k,createPortal:()=>v,createRef:()=>M.Vf,default:()=>le,findDOMNode:()=>O,flushSync:()=>re,forwardRef:()=>l,hydrate:()=>m,isElement:()=>ae,isFragment:()=>x,isValidElement:()=>S,lazy:()=>_,memo:()=>a,render:()=>y,startTransition:()=>P,unmountComponentAtNode:()=>E,unstable_batchedUpdates:()=>ne,useCallback:()=>L.I4,useContext:()=>L.qp,useDebugValue:()=>L.Qb,useDeferredValue:()=>N,useEffect:()=>L.d4,useErrorBoundary:()=>L.cO,useId:()=>L.Me,useImperativeHandle:()=>L.aP,useInsertionEffect:()=>ie,useLayoutEffect:()=>L.bt,useMemo:()=>L.Ye,useReducer:()=>L._Y,useRef:()=>L.sO,useState:()=>L.eJ,useSyncExternalStore:()=>$,useTransition:()=>A,version:()=>te});var M=n(400),L=n(396);(i.prototype=new M.wA).isPureReactComponent=!0,i.prototype.shouldComponentUpdate=function(e,t){return o(this.props,e)||o(this.state,t)};var T=M.YM.__b;M.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),T&&T(e)};var I="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,R=function(e,t){return null==e?null:(0,M.bR)((0,M.bR)(e).map(t))},q={map:R,forEach:R,count:function(e){return e?(0,M.bR)(e).length:0},only:function(e){var t=(0,M.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:M.bR},D=M.YM.__e;M.YM.__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);D(e,t,n,r)};var H=M.YM.unmount;M.YM.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 M.wA).__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,M.az)(M.HY,null,e.fallback);return o&&(o.__u&=-33),[(0,M.az)(M.HY,null,t.__a?null:e.children),o]};var Y=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?M.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?++T:o,__i:-1,__u:0};return null==o&&null!=L.vnode&&L.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&&I.sort(D));p.__r=0}function d(e,t,n,r,o,i,a,l,u,s,c){var f,_,p,d,y,m=r&&r.__k||z,g=t.length;for(n.__d=u,h(n,t,m),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=m(o,n,l=r+d,p),o.__i=s,i=null,-1!==s&&(p--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==l&&(s===l+1?d++:s>l?p>f-l?d+=s-l:d--:d=s(null!=u&&0==(131072&u.__u)?1:0))for(;a>=0||l=0){if((u=t[a])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return a;a--}if(l2&&(s.children=arguments.length>3?M.call(arguments,2):n),a(e.type,s,o||e.key,i||e.ref,null)}function j(e,t){var n={__c:t="__cC"+H++,__: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.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.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n.d(t,{HY:()=>u,Tm:()=>$,Vf:()=>l,YM:()=>L,ZB:()=>A,az:()=>i,bR:()=>y,h:()=>i,kr:()=>j,sY:()=>N,wA:()=>s});var M,L,T,I,R,q,D,H,Y={},z=[],U=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,W=Array.isArray;M=z.slice,L={__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}},T=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,I=[],q="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D=function(e,t){return e.__v.__b-t.__v.__b},p.__r=0,H=0},396:(e,t,n)=>{"use strict";function r(e,t){E.YM.__h&&E.YM.__h(S,e,O||t),O=0;var n=S.__H||(S.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:N}),n.__[e]}function o(e){return O=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);!E.YM.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__H.__h.push(n))}function l(e,t){var n=r(k++,4);!E.YM.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__h.push(n))}function u(e){return O=5,c((function(){return{current:e}}),[])}function s(e,t,n){O=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.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function f(e,t){return O=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 p(e,t){E.YM.useDebugValue&&E.YM.useDebugValue(t?t(e):e)}function d(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=P.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(m),e.__H.__h.forEach(g),e.__H.__h=[]}catch(t){e.__H.__h=[],E.YM.__e(t,e.__v)}}function y(e){var t,n=function(){clearTimeout(r),T&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);T&&(t=requestAnimationFrame(n))}function m(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,{I4:()=>f,Me:()=>h,Qb:()=>p,Ye:()=>c,_Y:()=>i,aP:()=>s,bt:()=>l,cO:()=>d,d4:()=>a,eJ:()=>o,qp:()=>_,sO:()=>u});var k,S,x,C,E=n(400),O=0,P=[],N=[],A=E.YM.__b,$=E.YM.__r,j=E.YM.diffed,M=E.YM.__c,L=E.YM.unmount;E.YM.__b=function(e){S=null,A&&A(e)},E.YM.__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.__V=N,e.__N=e.i=void 0}))):(t.__h.forEach(m),t.__h.forEach(g),t.__h=[],k=0)),x=S},E.YM.diffed=function(e){j&&j(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==P.push(t)&&C===E.YM.requestAnimationFrame||((C=E.YM.requestAnimationFrame)||y)(v)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==N&&(e.__=e.__V),e.i=void 0,e.__V=N}))),x=S=null},E.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(m),e.__h=e.__h.filter((function(e){return!e.__||g(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],E.YM.__e(n,e.__v)}})),M&&M(e,t)},E.YM.unmount=function(e){L&&L(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{m(e)}catch(e){t=e}})),n.__H=void 0,t&&E.YM.__e(t,n.__v))};var T="function"==typeof requestAnimationFrame},325:(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 p=l[_];p=Array.isArray(p)?p:[p];for(var d=0;d=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(m){if(!(C=n(w,S,e,y))||C.index>=e.length)break;var O=C.index,P=C.index+C[0].length,N=S;for(N+=k.value.length;O>=N;)N+=(k=k.next).value.length;if(S=N-=k.value.length,k.value instanceof t)continue;for(var A=k;A!==o.tail&&(Nc.reach&&(c.reach=L);var T=k.prev;if(j&&(T=i(o,T,j),S+=j.length),a(o,T,E),k=i(o,T,new t(_,v?f.tokenize($,v):$,g,$)),M&&i(o,k,M),E>1){var I={cause:_+","+d,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 p=document.readyState;"loading"===p||"interactive"===p&&_&&_.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)},277:()=>{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},759:()=>{!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}))}}()},460:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1){t._history.stack=u.slice(0,s+1);var c=t._history.stack.length;if(c>100){var f=c-100;t._history.stack=u.slice(f,c),t._history.offset=Math.max(t._history.offset-f,0)}}var _=Date.now();if(n){var p=t._history.stack[t._history.offset];if(p&&_-p.timestamp<3e3){var d=/[^a-z0-9]([a-z0-9]+)$/i,h=null===(r=t._getLines(p.value,p.selectionStart).pop())||void 0===r?void 0:r.match(d),v=null===(o=t._getLines(e.value,e.selectionStart).pop())||void 0===o?void 0:o.match(d);if((null==h?void 0:h[1])&&(null===(a=null==v?void 0:v[1])||void 0===a?void 0:a.startsWith(h[1])))return void(t._history.stack[t._history.offset]=i(i({},e),{timestamp:_}))}}t._history.stack.push(i(i({},e),{timestamp:_})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,r=t._history.stack[t._history.offset];r&&n&&(t._history.stack[t._history.offset]=i(i({},r),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.offset,r=e.stack[n-1];r&&(t._updateInput(r),t._history.offset=Math.max(n-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,r=e.offset,o=n[r+1];o&&(t._updateInput(o),t._history.offset=Math.min(r+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,r=n.tabSize,o=n.insertSpaces,i=n.ignoreTabKey,a=n.onKeyDown;if(!a||(a(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var l=e.currentTarget,u=l.value,s=l.selectionStart,c=l.selectionEnd,p=(o?" ":"\t").repeat(r);if(9===e.keyCode&&!i&&t.state.capture)if(e.preventDefault(),e.shiftKey){var d=(y=t._getLines(u,s)).length-1,h=t._getLines(u,c).length-1,v=u.split("\n").map((function(e,t){return t>=d&&t<=h&&e.startsWith(p)?e.substring(p.length):e})).join("\n");if(u!==v)t._applyEdits({value:v,selectionStart:(null==(b=y[d])?void 0:b.startsWith(p))?s-p.length:s,selectionEnd:c-(u.length-v.length)})}else if(s!==c){var y,m=(y=t._getLines(u,s)).length-1,g=t._getLines(u,c).length-1,b=y[m];t._applyEdits({value:u.split("\n").map((function(e,t){return t>=m&&t<=g?p+e:e})).join("\n"),selectionStart:b&&/\S/.test(b)?s+p.length:s,selectionEnd:c+p.length*(g-m+1)})}else{var w=s+p.length;t._applyEdits({value:u.substring(0,s)+p+u.substring(c),selectionStart:w,selectionEnd:w})}else if(8===e.keyCode){var k=s!==c;if(u.substring(0,s).endsWith(p)&&!k){e.preventDefault();w=s-p.length;t._applyEdits({value:u.substring(0,s-p.length)+u.substring(c),selectionStart:w,selectionEnd:w})}}else if(13===e.keyCode){if(s===c){var S=t._getLines(u,s).pop(),x=null==S?void 0:S.match(/^\s+/);if(null==x?void 0:x[0]){e.preventDefault();var C="\n"+x[0];w=s+C.length;t._applyEdits({value:u.substring(0,s)+C+u.substring(c),selectionStart:w,selectionEnd:w})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var E=void 0;57===e.keyCode&&e.shiftKey?E=["(",")"]:219===e.keyCode?E=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?E=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(E=["`","`"]),s!==c&&E&&(e.preventDefault(),t._applyEdits({value:u.substring(0,s)+E[0]+u.substring(s,c)+E[1]+u.substring(c),selectionStart:s,selectionEnd:c+2}))}else!(_?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(_?e.metaKey&&90===e.keyCode&&e.shiftKey:f?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||_&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,r=n.value;t._recordChange({value:r,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd},!0),t.props.onValueChange(r)},t._history={stack:[],offset:-1},t._input=null,t}return o(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,r=t.style,o=t.padding,a=t.highlight,l=t.textareaId,u=t.textareaClassName,f=t.autoFocus,_=t.disabled,h=t.form,y=t.maxLength,m=t.minLength,g=t.name,b=t.placeholder,w=t.readOnly,k=t.required,S=t.onClick,x=t.onFocus,C=t.onBlur,E=t.onKeyUp,O=t.preClassName,P=s(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),N={paddingTop:o,paddingRight:o,paddingBottom:o,paddingLeft:o},A=a(n);return c.createElement("div",i({},P,{style:i(i({},v.container),r)}),c.createElement("textarea",{ref:function(t){return e._input=t},style:i(i(i({},v.editor),v.textarea),N),className:p+(u?" ".concat(u):""),id:l,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:S,onKeyUp:E,onFocus:x,onBlur:C,disabled:_,form:h,maxLength:y,minLength:m,name:g,placeholder:b,readOnly:w,required:k,autoFocus:f,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),c.createElement("pre",i({className:O,"aria-hidden":"true",style:i(i(i({},v.editor),v.highlight),N)},"string"==typeof A?{dangerouslySetInnerHTML:{__html:A+"
    "}}:{children:A})),c.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:d}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(c.Component);t.default=h;var v={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"}}}},n={};e.n=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)||null===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:String(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)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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=new 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)||null===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:String(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)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(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=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2?"+ ".concat(b()("other",_-2,!0)):"";return(0,m.h)("div",{className:x()(n(n(n({},C.info_block,!0),C.info_block_collapsible,a.collapsible||!1),C.info_block_collapsed,u))},(0,m.h)("h5",{className:C.info_label,onClick:c},t),a.collapsible?(0,m.h)(O,null,(0,m.h)("div",{className:x()(n({},C.info_block_inner,!0))},f?o.map((function(e){return(0,m.h)("span",{key:e,className:C.info_block_item},e)})):(0,m.h)("span",null,o)),(0,m.h)("span",{className:C.info_block_teaser,onClick:c},f?" ".concat(o.slice(0,2).join(", ")," ").concat(p):"Click to show")):(0,m.h)("span",null,f?o.join(", "):o))};const A=function(e){var t=e.children,n=e.closeOverlay,r=e.colorTheme,o=void 0===r?"light":r,i=e.isVisible,a=(0,k.Ye)((function(){return function(e){return"Escape"===e.key&&n()}}),[n]);return(0,k.d4)((function(){return window.addEventListener("keydown",a),function(){window.removeEventListener("keydown",a)}}),[a]),i?(0,m.h)("div",{className:"search-dev-tools__overlay search-dev-tools__overlay--".concat(o),role:"dialog"},(0,m.h)("button",{"aria-label":"Close VIP Search Dev Tools",className:"search-dev-tools__overlay__close",onClick:n},(0,m.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljc5MyA5LjUuNjQ2IDE3LjY0NmwuNzA4LjcwN0w5LjUgMTAuMjA3bDguMTQ2IDguMTQ2LjcwOC0uNzA3TDEwLjIwNyA5LjVsOC4xNDctOC4xNDYtLjcwNy0uNzA4TDkuNSA4Ljc5MyAxLjM1NC42NDZsLS43MDguNzA4TDguNzkzIDkuNVoiIGZpbGw9IiMwMDAiLz48L3N2Zz4=",alt:"Close"})),t):null};var $=e(152),j=e.n($),M=e(325),L=(e(759),e(277),e(460)),T=e.n(L);const I="query_wrap__uIeve",R="query_result__k_RWY",q="query_actions__ImK9_",D="query_handle__e0c8G",H="query_collapsed__PGXWS",Y="grid_container__esEnb",z="query_src_header__wWAup",U="query_res_header__DMOpO",W="query_src__MoJsW",V="query_res__FZmqB",F="query_src_extra__aZwxj",K="container_editor___Y1qC",B="container_editor_line_number__FU7Ow",J="collapsible_list__PJS0Z",G="collapsible_list_details__u5Pq3",Z="visible__M2eJW";var Q=function(e){var t=e.list,n=void 0===t?[]:t,r=e.title,o=void 0===r?"View":r,i=c((0,k.eJ)(!1),2),a=i[0],l=i[1],u=o.toLowerCase();return(0,m.h)("div",{className:x()(s(s({},J,!0),Z,a))},(0,m.h)("strong",{className:"".concat(u," vip-h4"),onClick:n.length?function(){l(!a)}:null},o," (","".concat(n.length),")"),(0,m.h)("ol",{className:"".concat(G," ").concat(u," vip-collapse-ol")},n.map((function(e,t){return(0,m.h)("li",{key:t},e)}))))},X=e(400).HY,ee=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=d((0,k.eJ)(f),2),v=h[0],y=h[1],g="#query-response-copy-handle",w=(0,k.I4)(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);y((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){p(l,r,o,i,a,"next",e)}function a(e){p(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,k.d4)((function(){var e=new(j())(g);return e.on("success",(function(e){document.querySelector(g).innerHTML="COPIED!",setTimeout((function(){document.querySelector(g).innerHTML="COPY"}),2e3),e.clearSelection()})),function(){return e.destroy()}}),[]),(0,k.d4)((function(){v.query!==f.query&&(v.editing||w(v.query))}),[v.query,v.editing,f.query,w]);var S;return(0,m.h)("div",{className:x()(I,v.collapsed?H:null)},(0,m.h)("div",{className:D,onClick:function(){return y(_({},v,{collapsed:!v.collapsed}))}},(0,m.h)("h3",{className:"vip-h3"},b()("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,m.h)("span",{style:"color: var(--vip-grey-60);"}," that took")," ",(0,m.h)("span",{style:{color:"var(--vip-".concat((S=r.body.took)<200?"green-60":S<500?"red-30":"red-60",")"),fontWeight:"bold"}},S,"ms"),(0,m.h)("small",null," (",(null==r||null===(n=r.response)||void 0===n?void 0:n.code)||"unknown",")"))),(0,m.h)("div",{className:Y},(0,m.h)("div",{className:z},(0,m.h)("span",{style:"margin-right: auto;"},"Request"),(0,m.h)("div",{className:F},(0,m.h)(Q,{title:"WP_Query",list:Object.entries(i).map((function(e){var t=d(e,2),n=t[1];return"".concat(t[0],": ").concat(JSON.stringify(n))}))}),(0,m.h)(Q,{title:"Trace",list:u}))),(0,m.h)("div",{className:U},"Response"),(0,m.h)("div",{className:"".concat(W," query-src-box")},(0,m.h)("div",{className:q},v.editing||v.result!==c?(0,m.h)(X,null,(0,m.h)("button",{onClick:function(){return y(_({},v,{editing:!1}))},style:"background-color: var(--vip-green-40) !important"},"RUN"),(0,m.h)("button",{onClick:function(){return y(_({},f,{collapsed:!1}))},style:"background-color: var(--vip-blue-10) !important"},"RESET")):"Edit me!"),(0,m.h)(T(),{value:v.query,onValueChange:function(e){return y(_({},v,{query:e,editing:!0}))},highlight:function(e){return(0,M.highlight)(e,M.languages.json,"json").split("\n").map((function(e){return'').concat(e,"")})).join("\n")},padding:0,className:K,style:{fontSize:"var(--vip-sdt-editor-font-size)",lineHeight:"1.2em"}})),(0,m.h)("div",{className:"".concat(V," query-result-box")},(0,m.h)("div",{className:R},(0,m.h)("div",{className:q},(0,m.h)("button",{id:"query-response-copy-handle","data-clipboard-target":"#query-response-text"},"COPY")),(0,m.h)("pre",{className:"line-numbers"},(0,m.h)("code",{className:"language-json",id:"query-response-text"},v.result))))))},te=function(){var e=(0,k.qp)(E).queries;return(0,m.h)("div",null,e.length<1?"No queries to show":e.map((function(e,t){return(0,m.h)(ee,_({key:t},e))})))};const ne="vip_search_dev_tools__WdCFa",re="ab_btn__Grxiu";var oe=function(e){var t=(0,k.qp)(E).queries;return(0,m.h)("button",e,"Search: ",b()("query",t.length,!0))};const ie=function(){var e,t=v((0,k.eJ)(!1),2),n=t[0],r=t[1],o=(0,k.I4)((function(){return r(!1)}),[]),i=(0,k.I4)((function(){return r(!n)}),[n]);return(0,m.h)(E.Provider,{value:(null===(e=window)||void 0===e?void 0:e.VIPSearchDevTools)||{status:"disabled",queries:[],information:[]}},(0,m.h)("div",{className:"search-dev-tools__wrapper"},(0,m.h)(oe,{class:re,onClick:i}),(0,w.createPortal)((0,m.h)(A,{isVisible:n,closeOverlay:o,opacity:"100"},(0,m.h)("div",{className:ne},(0,m.h)("h4",{className:"vip-h4 main_caption"},"Enterprise Search Dev Tools"),(0,m.h)(P,null),(0,m.h)(te,null))),document.getElementById("search-dev-tools-portal"))))};var ae=function(){return(0,m.sY)((0,m.h)(ie,null),document.querySelector('[data-widget-host="vip-search-dev-tools"]'))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ae):ae()})()})(); \ 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 c13ec5a576..8f8cfad719 100644 --- a/search/search-dev-tools/package-lock.json +++ b/search/search-dev-tools/package-lock.json @@ -529,9 +529,9 @@ } }, "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.22.15.tgz", - "integrity": "sha512-FB9iYlz7rURmRJyXRKEnalYPPdn87H5no108cyuQQyMwlpJ2SJtpIUBI27kdTin956pz+LPypkPVPUTlxOmrsg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.23.3.tgz", + "integrity": "sha512-iRkKcCqb7iGnq9+3G6rZ+Ciz5VywC4XNRHe57lKM+jOeYAoR0lVqdeeDRfh0tQcTfw/+vBhHn926FmQhLtlFLQ==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -544,14 +544,14 @@ } }, "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.15.tgz", - "integrity": "sha512-Hyph9LseGvAeeXzikV88bczhsrLrIZqDPxO+sSmAunMPaGrBGhfMWzCPYTtiW9t+HzSE2wtV8e5cc5P6r1xMDQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.23.3.tgz", + "integrity": "sha512-WwlxbfMNdVEpQjZmK5mhm7oSwD3dS6eU+Iwsi4Knl9wAletWem7kaRsGOG+8UEbRyqxY4SS5zvtfXwX+jMxUwQ==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5", "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/plugin-transform-optional-chaining": "^7.22.15" + "@babel/plugin-transform-optional-chaining": "^7.23.3" }, "engines": { "node": ">=6.9.0" @@ -560,6 +560,22 @@ "@babel/core": "^7.13.0" } }, + "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.23.3.tgz", + "integrity": "sha512-XaJak1qcityzrX0/IU5nKHb34VaibwP3saKqG6a/tppelgllOH13LUann4ZCIBcVOeE6H18K4Vx9QKkVww3z/w==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, "node_modules/@babel/plugin-proposal-private-property-in-object": { "version": "7.21.0-placeholder-for-preset-env.2", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", @@ -651,9 +667,9 @@ } }, "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.22.5.tgz", - "integrity": "sha512-rdV97N7KqsRzeNGoWUOK6yUsWarLjE5Su/Snk9IYPU9CwkWHs4t+rTGOvffTR8XGkJMTAdLfO0xVnXm8wugIJg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.23.3.tgz", + "integrity": "sha512-lPgDSU+SJLK3xmFDTV2ZRQAiM7UuUjGidwBywFavObCiZc1BeAAcMtHJKUya92hPHO+at63JJPLygilZard8jw==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -666,9 +682,9 @@ } }, "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.5.tgz", - "integrity": "sha512-KwvoWDeNKPETmozyFE0P2rOLqh39EoQHNjqizrI5B8Vt0ZNS7M56s7dAiAqbYfiAYOuIzIh96z3iR2ktgu3tEg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.23.3.tgz", + "integrity": "sha512-pawnE0P9g10xgoP7yKr6CK63K2FMsTE+FZidZO/1PwRdzmAPVs+HS1mAURUsgaoxammTJvULUdIkEK0gOcU2tA==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -838,9 +854,9 @@ } }, "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.22.5.tgz", - "integrity": "sha512-26lTNXoVRdAnsaDXPpvCNUq+OVWEVC6bx7Vvz9rC53F2bagUWW4u4ii2+h8Fejfh7RYqPxn+libeFBBck9muEw==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.23.3.tgz", + "integrity": "sha512-NzQcQrzaQPkaEwoTm4Mhyl8jI1huEL/WWIEvudjTCMJ9aBZNpsJbMASx7EQECtQQPS/DcnFpo0FIh3LvEO9cxQ==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -853,9 +869,9 @@ } }, "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.2.tgz", - "integrity": "sha512-BBYVGxbDVHfoeXbOwcagAkOQAm9NxoTdMGfTqghu1GrvadSaw6iW3Je6IcL5PNOw8VwjxqBECXy50/iCQSY/lQ==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.4.tgz", + "integrity": "sha512-efdkfPhHYTtn0G6n2ddrESE91fgXxjlqLsnUtPWnJs4a4mZIbUaK7ffqKIIUKXSHwcDvaCVX6GXkaJJFqtX7jw==", "dev": true, "dependencies": { "@babel/helper-environment-visitor": "^7.22.20", @@ -871,14 +887,14 @@ } }, "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.22.5.tgz", - "integrity": "sha512-b1A8D8ZzE/VhNDoV1MSJTnpKkCG5bJo+19R4o4oy03zM7ws8yEMK755j61Dc3EyvdysbqH5BOOTquJ7ZX9C6vQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.23.3.tgz", + "integrity": "sha512-A7LFsKi4U4fomjqXJlZg/u0ft/n8/7n7lpffUP/ZULx/DtV9SGlNKZolHH6PE8Xl1ngCc0M11OaeZptXVkfKSw==", "dev": true, "dependencies": { - "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-module-imports": "^7.22.15", "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-remap-async-to-generator": "^7.22.5" + "@babel/helper-remap-async-to-generator": "^7.22.20" }, "engines": { "node": ">=6.9.0" @@ -888,9 +904,9 @@ } }, "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.22.5.tgz", - "integrity": "sha512-tdXZ2UdknEKQWKJP1KMNmuF5Lx3MymtMN/pvA+p/VEkhK8jVcQ1fzSy8KM9qRYhAf2/lV33hoMPKI/xaI9sADA==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.23.3.tgz", + "integrity": "sha512-vI+0sIaPIO6CNuM9Kk5VmXcMVRiOpDh7w2zZt9GXzmE/9KD70CUEVhvPR/etAeNK/FAEkhxQtXOzVF3EuRL41A==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -903,9 +919,9 @@ } }, "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.0.tgz", - "integrity": "sha512-cOsrbmIOXmf+5YbL99/S49Y3j46k/T16b9ml8bm9lP6N9US5iQ2yBK7gpui1pg0V/WMcXdkfKbTb7HXq9u+v4g==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.4.tgz", + "integrity": "sha512-0QqbP6B6HOh7/8iNR4CQU2Th/bbRtBp4KS9vcaZd1fZ0wSh5Fyssg0UCIHwxh+ka+pNDREbVLQnHCMHKZfPwfw==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -918,12 +934,12 @@ } }, "node_modules/@babel/plugin-transform-class-properties": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.5.tgz", - "integrity": "sha512-nDkQ0NfkOhPTq8YCLiWNxp1+f9fCobEjCb0n8WdbNUBc4IB5V7P1QnX9IjpSoquKrXF5SKojHleVNs2vGeHCHQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.23.3.tgz", + "integrity": "sha512-uM+AN8yCIjDPccsKGlw271xjJtGii+xQIF/uMPS8H15L12jZTsLfF4o5vNO7d/oUguOyfdikHGc/yi9ge4SGIg==", "dev": true, "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.5", + "@babel/helper-create-class-features-plugin": "^7.22.15", "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { @@ -934,12 +950,12 @@ } }, "node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.11.tgz", - "integrity": "sha512-GMM8gGmqI7guS/llMFk1bJDkKfn3v3C4KHK9Yg1ey5qcHcOlKb0QvcMrgzvxo+T03/4szNh5lghY+fEC98Kq9g==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.23.4.tgz", + "integrity": "sha512-nsWu/1M+ggti1SOALj3hfx5FXzAY06fwPJsUZD4/A5e1bWi46VUIWtD+kOX6/IdhXGsXBWllLFDSnqSCdUNydQ==", "dev": true, "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.11", + "@babel/helper-create-class-features-plugin": "^7.22.15", "@babel/helper-plugin-utils": "^7.22.5", "@babel/plugin-syntax-class-static-block": "^7.14.5" }, @@ -951,18 +967,18 @@ } }, "node_modules/@babel/plugin-transform-classes": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.22.15.tgz", - "integrity": "sha512-VbbC3PGjBdE0wAWDdHM9G8Gm977pnYI0XpqMd6LrKISj8/DJXEsWqgRuTYaNE9Bv0JGhTZUzHDlMk18IpOuoqw==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.23.3.tgz", + "integrity": "sha512-FGEQmugvAEu2QtgtU0uTASXevfLMFfBeVCIIdcQhn/uBQsMTjBajdnAtanQlOcuihWh10PZ7+HWvc7NtBwP74w==", "dev": true, "dependencies": { "@babel/helper-annotate-as-pure": "^7.22.5", "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", "@babel/helper-optimise-call-expression": "^7.22.5", "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.9", + "@babel/helper-replace-supers": "^7.22.20", "@babel/helper-split-export-declaration": "^7.22.6", "globals": "^11.1.0" }, @@ -983,13 +999,13 @@ } }, "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.22.5.tgz", - "integrity": "sha512-4GHWBgRf0krxPX+AaPtgBAlTgTeZmqDynokHOX7aqqAB4tHs3U2Y02zH6ETFdLZGcg9UQSD1WCmkVrE9ErHeOg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.23.3.tgz", + "integrity": "sha512-dTj83UVTLw/+nbiHqQSFdwO9CbTtwq1DsDqm3CUEtDrZNET5rT5E6bIdTlOftDTDLMYxvxHNEYO4B9SLl8SLZw==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5", - "@babel/template": "^7.22.5" + "@babel/template": "^7.22.15" }, "engines": { "node": ">=6.9.0" @@ -999,9 +1015,9 @@ } }, "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.23.0.tgz", - "integrity": "sha512-vaMdgNXFkYrB+8lbgniSYWHsgqK5gjaMNcc84bMIOMRLH0L9AqYq3hwMdvnyqj1OPqea8UtjPEuS/DCenah1wg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.23.3.tgz", + "integrity": "sha512-n225npDqjDIr967cMScVKHXJs7rout1q+tt50inyBCPkyZ8KxeI6d+GIbSBTT/w/9WdlWDOej3V9HE5Lgk57gw==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -1014,12 +1030,12 @@ } }, "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.22.5.tgz", - "integrity": "sha512-5/Yk9QxCQCl+sOIB1WelKnVRxTJDSAIxtJLL2/pqL14ZVlbH0fUQUZa/T5/UnQtBNgghR7mfB8ERBKyKPCi7Vw==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.23.3.tgz", + "integrity": "sha512-vgnFYDHAKzFaTVp+mneDsIEbnJ2Np/9ng9iviHw3P/KVcgONxpNULEW/51Z/BaFojG2GI2GwwXck5uV1+1NOYQ==", "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-create-regexp-features-plugin": "^7.22.15", "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { @@ -1030,9 +1046,9 @@ } }, "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.22.5.tgz", - "integrity": "sha512-dEnYD+9BBgld5VBXHnF/DbYGp3fqGMsyxKbtD1mDyIA7AkTSpKXFhCVuj/oQVOoALfBs77DudA0BE4d5mcpmqw==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.23.3.tgz", + "integrity": "sha512-RrqQ+BQmU3Oyav3J+7/myfvRCq7Tbz+kKLLshUmMwNlDHExbGL7ARhajvoBJEvc+fCguPPu887N+3RRXBVKZUA==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -1045,9 +1061,9 @@ } }, "node_modules/@babel/plugin-transform-dynamic-import": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.11.tgz", - "integrity": "sha512-g/21plo58sfteWjaO0ZNVb+uEOkJNjAaHhbejrnBmu011l/eNDScmkbjCC3l4FKb10ViaGU4aOkFznSu2zRHgA==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.23.4.tgz", + "integrity": "sha512-V6jIbLhdJK86MaLh4Jpghi8ho5fGzt3imHOBu/x0jlBaPYqDoWz4RDXjmMOfnh+JWNaQleEAByZLV0QzBT4YQQ==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5", @@ -1061,12 +1077,12 @@ } }, "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.22.5.tgz", - "integrity": "sha512-vIpJFNM/FjZ4rh1myqIya9jXwrwwgFRHPjT3DkUA9ZLHuzox8jiXkOLvwm1H+PQIP3CqfC++WPKeuDi0Sjdj1g==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.23.3.tgz", + "integrity": "sha512-5fhCsl1odX96u7ILKHBj4/Y8vipoqwsJMh4csSA8qFfxrZDEA4Ssku2DyNvMJSmZNOEBT750LfFPbtrnTP90BQ==", "dev": true, "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.22.5", + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.22.15", "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { @@ -1077,9 +1093,9 @@ } }, "node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.11.tgz", - "integrity": "sha512-xa7aad7q7OiT8oNZ1mU7NrISjlSkVdMbNxn9IuLZyL9AJEhs1Apba3I+u5riX1dIkdptP5EKDG5XDPByWxtehw==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.23.4.tgz", + "integrity": "sha512-GzuSBcKkx62dGzZI1WVgTWvkkz84FZO5TC5T8dl/Tht/rAla6Dg/Mz9Yhypg+ezVACf/rgDuQt3kbWEv7LdUDQ==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5", @@ -1093,9 +1109,9 @@ } }, "node_modules/@babel/plugin-transform-for-of": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.22.15.tgz", - "integrity": "sha512-me6VGeHsx30+xh9fbDLLPi0J1HzmeIIyenoOQHuw2D4m2SAU3NrspX5XxJLBpqn5yrLzrlw2Iy3RA//Bx27iOA==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.23.3.tgz", + "integrity": "sha512-X8jSm8X1CMwxmK878qsUGJRmbysKNbdpTv/O1/v0LuY/ZkZrng5WYiekYSdg9m09OTmDDUWeEDsTE+17WYbAZw==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -1108,13 +1124,13 @@ } }, "node_modules/@babel/plugin-transform-function-name": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.22.5.tgz", - "integrity": "sha512-UIzQNMS0p0HHiQm3oelztj+ECwFnj+ZRV4KnguvlsD2of1whUeM6o7wGNj6oLwcDoAXQ8gEqfgC24D+VdIcevg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.23.3.tgz", + "integrity": "sha512-I1QXp1LxIvt8yLaib49dRW5Okt7Q4oaxao6tFVKS/anCdEOMtYwWVKoiOA1p34GOWIZjUK0E+zCp7+l1pfQyiw==", "dev": true, "dependencies": { - "@babel/helper-compilation-targets": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-function-name": "^7.23.0", "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { @@ -1125,9 +1141,9 @@ } }, "node_modules/@babel/plugin-transform-json-strings": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.11.tgz", - "integrity": "sha512-CxT5tCqpA9/jXFlme9xIBCc5RPtdDq3JpkkhgHQqtDdiTnTI0jtZ0QzXhr5DILeYifDPp2wvY2ad+7+hLMW5Pw==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.23.4.tgz", + "integrity": "sha512-81nTOqM1dMwZ/aRXQ59zVubN9wHGqk6UtqRK+/q+ciXmRy8fSolhGVvG09HHRGo4l6fr/c4ZhXUQH0uFW7PZbg==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5", @@ -1141,9 +1157,9 @@ } }, "node_modules/@babel/plugin-transform-literals": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.22.5.tgz", - "integrity": "sha512-fTLj4D79M+mepcw3dgFBTIDYpbcB9Sm0bpm4ppXPaO+U+PKFFyV9MGRvS0gvGw62sd10kT5lRMKXAADb9pWy8g==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.23.3.tgz", + "integrity": "sha512-wZ0PIXRxnwZvl9AYpqNUxpZ5BiTGrYt7kueGQ+N5FiQ7RCOD4cm8iShd6S6ggfVIWaJf2EMk8eRzAh52RfP4rQ==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -1156,9 +1172,9 @@ } }, "node_modules/@babel/plugin-transform-logical-assignment-operators": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.11.tgz", - "integrity": "sha512-qQwRTP4+6xFCDV5k7gZBF3C31K34ut0tbEcTKxlX/0KXxm9GLcO14p570aWxFvVzx6QAfPgq7gaeIHXJC8LswQ==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.23.4.tgz", + "integrity": "sha512-Mc/ALf1rmZTP4JKKEhUwiORU+vcfarFVLfcFiolKUo6sewoxSEgl36ak5t+4WamRsNr6nzjZXQjM35WsU+9vbg==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5", @@ -1172,9 +1188,9 @@ } }, "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.22.5.tgz", - "integrity": "sha512-RZEdkNtzzYCFl9SE9ATaUMTj2hqMb4StarOJLrZRbqqU4HSBE7UlBw9WBWQiDzrJZJdUWiMTVDI6Gv/8DPvfew==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.23.3.tgz", + "integrity": "sha512-sC3LdDBDi5x96LA+Ytekz2ZPk8i/Ck+DEuDbRAll5rknJ5XRTSaPKEYwomLcs1AA8wg9b3KjIQRsnApj+q51Ag==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -1187,12 +1203,12 @@ } }, "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.23.0.tgz", - "integrity": "sha512-xWT5gefv2HGSm4QHtgc1sYPbseOyf+FFDo2JbpE25GWl5BqTGO9IMwTYJRoIdjsF85GE+VegHxSCUt5EvoYTAw==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.23.3.tgz", + "integrity": "sha512-vJYQGxeKM4t8hYCKVBlZX/gtIY2I7mRGFNcm85sgXGMTBcoV3QdVtdpbcWEbzbfUIUZKwvgFT82mRvaQIebZzw==", "dev": true, "dependencies": { - "@babel/helper-module-transforms": "^7.23.0", + "@babel/helper-module-transforms": "^7.23.3", "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { @@ -1203,12 +1219,12 @@ } }, "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.0.tgz", - "integrity": "sha512-32Xzss14/UVc7k9g775yMIvkVK8xwKE0DPdP5JTapr3+Z9w4tzeOuLNY6BXDQR6BdnzIlXnCGAzsk/ICHBLVWQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.3.tgz", + "integrity": "sha512-aVS0F65LKsdNOtcz6FRCpE4OgsP2OFnW46qNxNIX9h3wuzaNcSQsJysuMwqSibC98HPrf2vCgtxKNwS0DAlgcA==", "dev": true, "dependencies": { - "@babel/helper-module-transforms": "^7.23.0", + "@babel/helper-module-transforms": "^7.23.3", "@babel/helper-plugin-utils": "^7.22.5", "@babel/helper-simple-access": "^7.22.5" }, @@ -1220,13 +1236,13 @@ } }, "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.0.tgz", - "integrity": "sha512-qBej6ctXZD2f+DhlOC9yO47yEYgUh5CZNz/aBoH4j/3NOlRfJXJbY7xDQCqQVf9KbrqGzIWER1f23doHGrIHFg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.3.tgz", + "integrity": "sha512-ZxyKGTkF9xT9YJuKQRo19ewf3pXpopuYQd8cDXqNzc3mUNbOME0RKMoZxviQk74hwzfQsEe66dE92MaZbdHKNQ==", "dev": true, "dependencies": { "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-module-transforms": "^7.23.0", + "@babel/helper-module-transforms": "^7.23.3", "@babel/helper-plugin-utils": "^7.22.5", "@babel/helper-validator-identifier": "^7.22.20" }, @@ -1238,12 +1254,12 @@ } }, "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.22.5.tgz", - "integrity": "sha512-+S6kzefN/E1vkSsKx8kmQuqeQsvCKCd1fraCM7zXm4SFoggI099Tr4G8U81+5gtMdUeMQ4ipdQffbKLX0/7dBQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.23.3.tgz", + "integrity": "sha512-zHsy9iXX2nIsCBFPud3jKn1IRPWg3Ing1qOZgeKV39m1ZgIdpJqvlWVeiHBZC6ITRG0MfskhYe9cLgntfSFPIg==", "dev": true, "dependencies": { - "@babel/helper-module-transforms": "^7.22.5", + "@babel/helper-module-transforms": "^7.23.3", "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { @@ -1270,9 +1286,9 @@ } }, "node_modules/@babel/plugin-transform-new-target": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.5.tgz", - "integrity": "sha512-AsF7K0Fx/cNKVyk3a+DW0JLo+Ua598/NxMRvxDnkpCIGFh43+h/v2xyhRUYf6oD8gE4QtL83C7zZVghMjHd+iw==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.23.3.tgz", + "integrity": "sha512-YJ3xKqtJMAT5/TIZnpAR3I+K+WaDowYbN3xyxI8zxx/Gsypwf9B9h0VB+1Nh6ACAAPRS5NSRje0uVv5i79HYGQ==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -1285,9 +1301,9 @@ } }, "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.11.tgz", - "integrity": "sha512-YZWOw4HxXrotb5xsjMJUDlLgcDXSfO9eCmdl1bgW4+/lAGdkjaEvOnQ4p5WKKdUgSzO39dgPl0pTnfxm0OAXcg==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.23.4.tgz", + "integrity": "sha512-jHE9EVVqHKAQx+VePv5LLGHjmHSJR76vawFPTdlxR/LVJPfOEGxREQwQfjuZEOPTwG92X3LINSh3M40Rv4zpVA==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5", @@ -1301,9 +1317,9 @@ } }, "node_modules/@babel/plugin-transform-numeric-separator": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.11.tgz", - "integrity": "sha512-3dzU4QGPsILdJbASKhF/V2TVP+gJya1PsueQCxIPCEcerqF21oEcrob4mzjsp2Py/1nLfF5m+xYNMDpmA8vffg==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.23.4.tgz", + "integrity": "sha512-mps6auzgwjRrwKEZA05cOwuDc9FAzoyFS4ZsG/8F43bTLf/TgkJg7QXOrPO1JO599iA3qgK9MXdMGOEC8O1h6Q==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5", @@ -1351,13 +1367,13 @@ } }, "node_modules/@babel/plugin-transform-object-super": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.22.5.tgz", - "integrity": "sha512-klXqyaT9trSjIUrcsYIfETAzmOEZL3cBYqOYLJxBHfMFFggmXOv+NYSX/Jbs9mzMVESw/WycLFPRx8ba/b2Ipw==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.23.3.tgz", + "integrity": "sha512-BwQ8q0x2JG+3lxCVFohg+KbQM7plfpBwThdW9A6TMtWwLsbDA01Ek2Zb/AgDN39BiZsExm4qrXxjk+P1/fzGrA==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.5" + "@babel/helper-replace-supers": "^7.22.20" }, "engines": { "node": ">=6.9.0" @@ -1367,9 +1383,9 @@ } }, "node_modules/@babel/plugin-transform-optional-catch-binding": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.11.tgz", - "integrity": "sha512-rli0WxesXUeCJnMYhzAglEjLWVDF6ahb45HuprcmQuLidBJFWjNnOzssk2kuc6e33FlLaiZhG/kUIzUMWdBKaQ==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.23.4.tgz", + "integrity": "sha512-XIq8t0rJPHf6Wvmbn9nFxU6ao4c7WhghTR5WyV8SrJfUFzyxhCm4nhC+iAp3HFhbAKLfYpgzhJ6t4XCtVwqO5A==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5", @@ -1383,9 +1399,9 @@ } }, "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.23.0.tgz", - "integrity": "sha512-sBBGXbLJjxTzLBF5rFWaikMnOGOk/BmK6vVByIdEggZ7Vn6CvWXZyRkkLFK6WE0IF8jSliyOkUN6SScFgzCM0g==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.23.4.tgz", + "integrity": "sha512-ZU8y5zWOfjM5vZ+asjgAPwDaBjJzgufjES89Rs4Lpq63O300R/kOz30WCLo6BxxX6QVEilwSlpClnG5cZaikTA==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5", @@ -1415,12 +1431,12 @@ } }, "node_modules/@babel/plugin-transform-private-methods": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.5.tgz", - "integrity": "sha512-PPjh4gyrQnGe97JTalgRGMuU4icsZFnWkzicB/fUtzlKUqvsWBKEpPPfr5a2JiyirZkHxnAqkQMO5Z5B2kK3fA==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.23.3.tgz", + "integrity": "sha512-UzqRcRtWsDMTLrRWFvUBDwmw06tCQH9Rl1uAjfh6ijMSmGYQ+fpdB+cnqRC8EMh5tuuxSv0/TejGL+7vyj+50g==", "dev": true, "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.5", + "@babel/helper-create-class-features-plugin": "^7.22.15", "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { @@ -1449,9 +1465,9 @@ } }, "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.22.5.tgz", - "integrity": "sha512-TiOArgddK3mK/x1Qwf5hay2pxI6wCZnvQqrFSqbtg1GLl2JcNMitVH/YnqjP+M31pLUeTfzY1HAXFDnUBV30rQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.23.3.tgz", + "integrity": "sha512-jR3Jn3y7cZp4oEWPFAlRsSWjxKe4PZILGBSd4nis1TsC5qeSpb+nrtihJuDhNI7QHiVbUaiXa0X2RZY3/TI6Nw==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -1483,9 +1499,9 @@ } }, "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.22.10.tgz", - "integrity": "sha512-F28b1mDt8KcT5bUyJc/U9nwzw6cV+UmTeRlXYIl2TNqMMJif0Jeey9/RQ3C4NOd2zp0/TRsDns9ttj2L523rsw==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.23.3.tgz", + "integrity": "sha512-KP+75h0KghBMcVpuKisx3XTu9Ncut8Q8TuvGO4IhY+9D5DFEckQefOuIsB/gQ2tG71lCke4NMrtIPS8pOj18BQ==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5", @@ -1499,9 +1515,9 @@ } }, "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.22.5.tgz", - "integrity": "sha512-DTtGKFRQUDm8svigJzZHzb/2xatPc6TzNvAIJ5GqOKDsGFYgAskjRulbR/vGsPKq3OPqtexnz327qYpP57RFyA==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.23.3.tgz", + "integrity": "sha512-QnNTazY54YqgGxwIexMZva9gqbPa15t/x9VS+0fsEFWplwVpXYZivtgl43Z1vMpc1bdPP2PP8siFeVcnFvA3Cg==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -1514,9 +1530,9 @@ } }, "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.22.5.tgz", - "integrity": "sha512-vM4fq9IXHscXVKzDv5itkO1X52SmdFBFcMIBZ2FRn2nqVYqw6dBexUgMvAjHW+KXpPPViD/Yo3GrDEBaRC0QYA==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.23.3.tgz", + "integrity": "sha512-ED2fgqZLmexWiN+YNFX26fx4gh5qHDhn1O2gvEhreLW2iI63Sqm4llRLCXALKrCnbN4Jy0VcMQZl/SAzqug/jg==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -1529,9 +1545,9 @@ } }, "node_modules/@babel/plugin-transform-spread": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.22.5.tgz", - "integrity": "sha512-5ZzDQIGyvN4w8+dMmpohL6MBo+l2G7tfC/O2Dg7/hjpgeWvUx8FzfeOKxGog9IimPa4YekaQ9PlDqTLOljkcxg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.23.3.tgz", + "integrity": "sha512-VvfVYlrlBVu+77xVTOAoxQ6mZbnIq5FM0aGBSFEcIh03qHf+zNqA4DC/3XMUozTg7bZV3e3mZQ0i13VB6v5yUg==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5", @@ -1545,9 +1561,9 @@ } }, "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.22.5.tgz", - "integrity": "sha512-zf7LuNpHG0iEeiyCNwX4j3gDg1jgt1k3ZdXBKbZSoA3BbGQGvMiSvfbZRR3Dr3aeJe3ooWFZxOOG3IRStYp2Bw==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.23.3.tgz", + "integrity": "sha512-HZOyN9g+rtvnOU3Yh7kSxXrKbzgrm5X4GncPY1QOquu7epga5MxKHVpYu2hvQnry/H+JjckSYRb93iNfsioAGg==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -1560,9 +1576,9 @@ } }, "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.22.5.tgz", - "integrity": "sha512-5ciOehRNf+EyUeewo8NkbQiUs4d6ZxiHo6BcBcnFlgiJfu16q0bQUw9Jvo0b0gBKFG1SMhDSjeKXSYuJLeFSMA==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.23.3.tgz", + "integrity": "sha512-Flok06AYNp7GV2oJPZZcP9vZdszev6vPBkHLwxwSpaIqx75wn6mUd3UFWsSsA0l8nXAKkyCmL/sR02m8RYGeHg==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -1575,9 +1591,9 @@ } }, "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.22.5.tgz", - "integrity": "sha512-bYkI5lMzL4kPii4HHEEChkD0rkc+nvnlR6+o/qdqR6zrm0Sv/nodmyLhlq2DO0YKLUNd2VePmPRjJXSBh9OIdA==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.23.3.tgz", + "integrity": "sha512-4t15ViVnaFdrPC74be1gXBSMzXk3B4Us9lP7uLRQHTFpV5Dvt33pn+2MyyNxmN3VTTm3oTrZVMUmuw3oBnQ2oQ==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -1590,9 +1606,9 @@ } }, "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.22.10.tgz", - "integrity": "sha512-lRfaRKGZCBqDlRU3UIFovdp9c9mEvlylmpod0/OatICsSfuQ9YFthRo1tpTkGsklEefZdqlEFdY4A2dwTb6ohg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.23.3.tgz", + "integrity": "sha512-OMCUx/bU6ChE3r4+ZdylEqAjaQgHAgipgW8nsCfu5pGqDcFytVd91AwRvUJSBZDz0exPGgnjoqhgRYLRjFZc9Q==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -1605,12 +1621,12 @@ } }, "node_modules/@babel/plugin-transform-unicode-property-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.5.tgz", - "integrity": "sha512-HCCIb+CbJIAE6sXn5CjFQXMwkCClcOfPCzTlilJ8cUatfzwHlWQkbtV0zD338u9dZskwvuOYTuuaMaA8J5EI5A==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.23.3.tgz", + "integrity": "sha512-KcLIm+pDZkWZQAFJ9pdfmh89EwVfmNovFBcXko8szpBeF8z68kWIPeKlmSOkT9BXJxs2C0uk+5LxoxIv62MROA==", "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-create-regexp-features-plugin": "^7.22.15", "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { @@ -1621,12 +1637,12 @@ } }, "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.22.5.tgz", - "integrity": "sha512-028laaOKptN5vHJf9/Arr/HiJekMd41hOEZYvNsrsXqJ7YPYuX2bQxh31fkZzGmq3YqHRJzYFFAVYvKfMPKqyg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.23.3.tgz", + "integrity": "sha512-wMHpNA4x2cIA32b/ci3AfwNgheiva2W0WUKWTK7vBHBhDKfPsc5cFGNWm69WBqpwd86u1qwZ9PWevKqm1A3yAw==", "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-create-regexp-features-plugin": "^7.22.15", "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { @@ -1637,12 +1653,12 @@ } }, "node_modules/@babel/plugin-transform-unicode-sets-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.5.tgz", - "integrity": "sha512-lhMfi4FC15j13eKrh3DnYHjpGj6UKQHtNKTbtc1igvAhRy4+kLhV07OpLcsN0VgDEw/MjAvJO4BdMJsHwMhzCg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.23.3.tgz", + "integrity": "sha512-W7lliA/v9bNR83Qc3q1ip9CQMZ09CcHDbHfbLRDNuAhn1Mvkr1ZNF7hPmztMQvtTGVLJ9m8IZqWsTkXOml8dbw==", "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-create-regexp-features-plugin": "^7.22.15", "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { @@ -1653,25 +1669,26 @@ } }, "node_modules/@babel/preset-env": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.23.2.tgz", - "integrity": "sha512-BW3gsuDD+rvHL2VO2SjAUNTBe5YrjsTiDyqamPDWY723na3/yPQ65X5oQkFVJZ0o50/2d+svm1rkPoJeR1KxVQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.23.3.tgz", + "integrity": "sha512-ovzGc2uuyNfNAs/jyjIGxS8arOHS5FENZaNn4rtE7UdKMMkqHCvboHfcuhWLZNX5cB44QfcGNWjaevxMzzMf+Q==", "dev": true, "dependencies": { - "@babel/compat-data": "^7.23.2", + "@babel/compat-data": "^7.23.3", "@babel/helper-compilation-targets": "^7.22.15", "@babel/helper-plugin-utils": "^7.22.5", "@babel/helper-validator-option": "^7.22.15", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.22.15", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.15", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.23.3", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.23.3", + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.23.3", "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-class-properties": "^7.12.13", "@babel/plugin-syntax-class-static-block": "^7.14.5", "@babel/plugin-syntax-dynamic-import": "^7.8.3", "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.22.5", - "@babel/plugin-syntax-import-attributes": "^7.22.5", + "@babel/plugin-syntax-import-assertions": "^7.23.3", + "@babel/plugin-syntax-import-attributes": "^7.23.3", "@babel/plugin-syntax-import-meta": "^7.10.4", "@babel/plugin-syntax-json-strings": "^7.8.3", "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", @@ -1683,56 +1700,55 @@ "@babel/plugin-syntax-private-property-in-object": "^7.14.5", "@babel/plugin-syntax-top-level-await": "^7.14.5", "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.22.5", - "@babel/plugin-transform-async-generator-functions": "^7.23.2", - "@babel/plugin-transform-async-to-generator": "^7.22.5", - "@babel/plugin-transform-block-scoped-functions": "^7.22.5", - "@babel/plugin-transform-block-scoping": "^7.23.0", - "@babel/plugin-transform-class-properties": "^7.22.5", - "@babel/plugin-transform-class-static-block": "^7.22.11", - "@babel/plugin-transform-classes": "^7.22.15", - "@babel/plugin-transform-computed-properties": "^7.22.5", - "@babel/plugin-transform-destructuring": "^7.23.0", - "@babel/plugin-transform-dotall-regex": "^7.22.5", - "@babel/plugin-transform-duplicate-keys": "^7.22.5", - "@babel/plugin-transform-dynamic-import": "^7.22.11", - "@babel/plugin-transform-exponentiation-operator": "^7.22.5", - "@babel/plugin-transform-export-namespace-from": "^7.22.11", - "@babel/plugin-transform-for-of": "^7.22.15", - "@babel/plugin-transform-function-name": "^7.22.5", - "@babel/plugin-transform-json-strings": "^7.22.11", - "@babel/plugin-transform-literals": "^7.22.5", - "@babel/plugin-transform-logical-assignment-operators": "^7.22.11", - "@babel/plugin-transform-member-expression-literals": "^7.22.5", - "@babel/plugin-transform-modules-amd": "^7.23.0", - "@babel/plugin-transform-modules-commonjs": "^7.23.0", - "@babel/plugin-transform-modules-systemjs": "^7.23.0", - "@babel/plugin-transform-modules-umd": "^7.22.5", + "@babel/plugin-transform-arrow-functions": "^7.23.3", + "@babel/plugin-transform-async-generator-functions": "^7.23.3", + "@babel/plugin-transform-async-to-generator": "^7.23.3", + "@babel/plugin-transform-block-scoped-functions": "^7.23.3", + "@babel/plugin-transform-block-scoping": "^7.23.3", + "@babel/plugin-transform-class-properties": "^7.23.3", + "@babel/plugin-transform-class-static-block": "^7.23.3", + "@babel/plugin-transform-classes": "^7.23.3", + "@babel/plugin-transform-computed-properties": "^7.23.3", + "@babel/plugin-transform-destructuring": "^7.23.3", + "@babel/plugin-transform-dotall-regex": "^7.23.3", + "@babel/plugin-transform-duplicate-keys": "^7.23.3", + "@babel/plugin-transform-dynamic-import": "^7.23.3", + "@babel/plugin-transform-exponentiation-operator": "^7.23.3", + "@babel/plugin-transform-export-namespace-from": "^7.23.3", + "@babel/plugin-transform-for-of": "^7.23.3", + "@babel/plugin-transform-function-name": "^7.23.3", + "@babel/plugin-transform-json-strings": "^7.23.3", + "@babel/plugin-transform-literals": "^7.23.3", + "@babel/plugin-transform-logical-assignment-operators": "^7.23.3", + "@babel/plugin-transform-member-expression-literals": "^7.23.3", + "@babel/plugin-transform-modules-amd": "^7.23.3", + "@babel/plugin-transform-modules-commonjs": "^7.23.3", + "@babel/plugin-transform-modules-systemjs": "^7.23.3", + "@babel/plugin-transform-modules-umd": "^7.23.3", "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5", - "@babel/plugin-transform-new-target": "^7.22.5", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.11", - "@babel/plugin-transform-numeric-separator": "^7.22.11", - "@babel/plugin-transform-object-rest-spread": "^7.22.15", - "@babel/plugin-transform-object-super": "^7.22.5", - "@babel/plugin-transform-optional-catch-binding": "^7.22.11", - "@babel/plugin-transform-optional-chaining": "^7.23.0", - "@babel/plugin-transform-parameters": "^7.22.15", - "@babel/plugin-transform-private-methods": "^7.22.5", - "@babel/plugin-transform-private-property-in-object": "^7.22.11", - "@babel/plugin-transform-property-literals": "^7.22.5", - "@babel/plugin-transform-regenerator": "^7.22.10", - "@babel/plugin-transform-reserved-words": "^7.22.5", - "@babel/plugin-transform-shorthand-properties": "^7.22.5", - "@babel/plugin-transform-spread": "^7.22.5", - "@babel/plugin-transform-sticky-regex": "^7.22.5", - "@babel/plugin-transform-template-literals": "^7.22.5", - "@babel/plugin-transform-typeof-symbol": "^7.22.5", - "@babel/plugin-transform-unicode-escapes": "^7.22.10", - "@babel/plugin-transform-unicode-property-regex": "^7.22.5", - "@babel/plugin-transform-unicode-regex": "^7.22.5", - "@babel/plugin-transform-unicode-sets-regex": "^7.22.5", + "@babel/plugin-transform-new-target": "^7.23.3", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.23.3", + "@babel/plugin-transform-numeric-separator": "^7.23.3", + "@babel/plugin-transform-object-rest-spread": "^7.23.3", + "@babel/plugin-transform-object-super": "^7.23.3", + "@babel/plugin-transform-optional-catch-binding": "^7.23.3", + "@babel/plugin-transform-optional-chaining": "^7.23.3", + "@babel/plugin-transform-parameters": "^7.23.3", + "@babel/plugin-transform-private-methods": "^7.23.3", + "@babel/plugin-transform-private-property-in-object": "^7.23.3", + "@babel/plugin-transform-property-literals": "^7.23.3", + "@babel/plugin-transform-regenerator": "^7.23.3", + "@babel/plugin-transform-reserved-words": "^7.23.3", + "@babel/plugin-transform-shorthand-properties": "^7.23.3", + "@babel/plugin-transform-spread": "^7.23.3", + "@babel/plugin-transform-sticky-regex": "^7.23.3", + "@babel/plugin-transform-template-literals": "^7.23.3", + "@babel/plugin-transform-typeof-symbol": "^7.23.3", + "@babel/plugin-transform-unicode-escapes": "^7.23.3", + "@babel/plugin-transform-unicode-property-regex": "^7.23.3", + "@babel/plugin-transform-unicode-regex": "^7.23.3", + "@babel/plugin-transform-unicode-sets-regex": "^7.23.3", "@babel/preset-modules": "0.1.6-no-external-plugins", - "@babel/types": "^7.23.0", "babel-plugin-polyfill-corejs2": "^0.4.6", "babel-plugin-polyfill-corejs3": "^0.8.5", "babel-plugin-polyfill-regenerator": "^0.5.3", From 69f208c289facd54a0e7239c63a5d5fd3f1a9ffa Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 28 Nov 2023 09:55:56 +0200 Subject: [PATCH 29/30] chore(deps-dev): Bump @automattic/eslint-plugin-wpvip in /__tests__/e2e (#5053) Bumps [@automattic/eslint-plugin-wpvip](https://github.com/Automattic/eslint-config-wpvip) from 0.8.0 to 0.9.0. - [Release notes](https://github.com/Automattic/eslint-config-wpvip/releases) - [Commits](https://github.com/Automattic/eslint-config-wpvip/compare/0.8.0...0.9.0) --- updated-dependencies: - dependency-name: "@automattic/eslint-plugin-wpvip" 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> --- __tests__/e2e/package-lock.json | 112 ++++++++++++++++---------------- __tests__/e2e/package.json | 2 +- 2 files changed, 57 insertions(+), 57 deletions(-) diff --git a/__tests__/e2e/package-lock.json b/__tests__/e2e/package-lock.json index 49558c66b8..509c4c0068 100644 --- a/__tests__/e2e/package-lock.json +++ b/__tests__/e2e/package-lock.json @@ -8,7 +8,7 @@ "name": "vip-go-mu-plugins-e2e", "version": "1.0.0", "devDependencies": { - "@automattic/eslint-plugin-wpvip": "^0.8.0", + "@automattic/eslint-plugin-wpvip": "^0.9.0", "@babel/plugin-syntax-decorators": "^7.22.10", "@playwright/test": "^1.39.0", "asana-phrase": "^0.0.8", @@ -42,15 +42,15 @@ } }, "node_modules/@automattic/eslint-plugin-wpvip": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@automattic/eslint-plugin-wpvip/-/eslint-plugin-wpvip-0.8.0.tgz", - "integrity": "sha512-yRqS4BTFJ1/U9lpQoUFnJwQsu9OvKcZB0/iiR0jiSmM/eeI3jtkpJLG2wYdwESUjsI5/AeApzFFVLRfrcHaQ1A==", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@automattic/eslint-plugin-wpvip/-/eslint-plugin-wpvip-0.9.0.tgz", + "integrity": "sha512-wP0qu/Buu8Vmd1bN0OIw3iUzYaqQNd3IoL4gUqmuTqkMzzA69agwhT0vrDSIY2IbN4fXlzp2eGyoKrwO+/8gSQ==", "dev": true, "dependencies": { - "@babel/eslint-parser": "7.22.15", - "@rushstack/eslint-patch": "1.5.1", - "@typescript-eslint/eslint-plugin": "6.9.1", - "@typescript-eslint/parser": "6.9.1", + "@babel/eslint-parser": "7.23.3", + "@rushstack/eslint-patch": "1.6.0", + "@typescript-eslint/eslint-plugin": "6.12.0", + "@typescript-eslint/parser": "6.12.0", "eslint-config-prettier": "8.7.0", "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.0", @@ -127,9 +127,9 @@ } }, "node_modules/@babel/eslint-parser": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.22.15.tgz", - "integrity": "sha512-yc8OOBIQk1EcRrpizuARSQS0TWAcOMpEJ1aafhNznaeYkeL+OhqnDObGFylB8ka8VFF/sZc+S4RzHyO+3LjQxg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.23.3.tgz", + "integrity": "sha512-9bTuNlyx7oSstodm1cR1bECj4fkiknsDa1YniISkJemMY3DGhJNYBECbe6QD/q54mp2J8VO66jW3/7uP//iFCw==", "dev": true, "dependencies": { "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", @@ -672,9 +672,9 @@ } }, "node_modules/@rushstack/eslint-patch": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.5.1.tgz", - "integrity": "sha512-6i/8UoL0P5y4leBIGzvkZdS85RDMG9y1ihZzmTZQ5LdHUYmZ7pKFoj8X0236s3lusPs1Fa5HTQUpwI+UfTcmeA==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.6.0.tgz", + "integrity": "sha512-2/U3GXA6YiPYQDLGwtGlnNgKYBSwCFIHf8Y9LUY5VATHdtbLlU0Y1R3QoBnT0aB4qv/BEiVVsj7LJXoQCgJ2vA==", "dev": true }, "node_modules/@types/json-schema": { @@ -696,16 +696,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.9.1.tgz", - "integrity": "sha512-w0tiiRc9I4S5XSXXrMHOWgHgxbrBn1Ro+PmiYhSg2ZVdxrAJtQgzU5o2m1BfP6UOn7Vxcc6152vFjQfmZR4xEg==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.12.0.tgz", + "integrity": "sha512-XOpZ3IyJUIV1b15M7HVOpgQxPPF7lGXgsfcEIu3yDxFPaf/xZKt7s9QO/pbk7vpWQyVulpJbu4E5LwpZiQo4kA==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.9.1", - "@typescript-eslint/type-utils": "6.9.1", - "@typescript-eslint/utils": "6.9.1", - "@typescript-eslint/visitor-keys": "6.9.1", + "@typescript-eslint/scope-manager": "6.12.0", + "@typescript-eslint/type-utils": "6.12.0", + "@typescript-eslint/utils": "6.12.0", + "@typescript-eslint/visitor-keys": "6.12.0", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -764,15 +764,15 @@ "dev": true }, "node_modules/@typescript-eslint/parser": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.9.1.tgz", - "integrity": "sha512-C7AK2wn43GSaCUZ9do6Ksgi2g3mwFkMO3Cis96kzmgudoVaKyt62yNzJOktP0HDLb/iO2O0n2lBOzJgr6Q/cyg==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.12.0.tgz", + "integrity": "sha512-s8/jNFPKPNRmXEnNXfuo1gemBdVmpQsK1pcu+QIvuNJuhFzGrpD7WjOcvDc/+uEdfzSYpNu7U/+MmbScjoQ6vg==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.9.1", - "@typescript-eslint/types": "6.9.1", - "@typescript-eslint/typescript-estree": "6.9.1", - "@typescript-eslint/visitor-keys": "6.9.1", + "@typescript-eslint/scope-manager": "6.12.0", + "@typescript-eslint/types": "6.12.0", + "@typescript-eslint/typescript-estree": "6.12.0", + "@typescript-eslint/visitor-keys": "6.12.0", "debug": "^4.3.4" }, "engines": { @@ -792,13 +792,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.9.1.tgz", - "integrity": "sha512-38IxvKB6NAne3g/+MyXMs2Cda/Sz+CEpmm+KLGEM8hx/CvnSRuw51i8ukfwB/B/sESdeTGet1NH1Wj7I0YXswg==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.12.0.tgz", + "integrity": "sha512-5gUvjg+XdSj8pcetdL9eXJzQNTl3RD7LgUiYTl8Aabdi8hFkaGSYnaS6BLc0BGNaDH+tVzVwmKtWvu0jLgWVbw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.9.1", - "@typescript-eslint/visitor-keys": "6.9.1" + "@typescript-eslint/types": "6.12.0", + "@typescript-eslint/visitor-keys": "6.12.0" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -809,13 +809,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.9.1.tgz", - "integrity": "sha512-eh2oHaUKCK58qIeYp19F5V5TbpM52680sB4zNSz29VBQPTWIlE/hCj5P5B1AChxECe/fmZlspAWFuRniep1Skg==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.12.0.tgz", + "integrity": "sha512-WWmRXxhm1X8Wlquj+MhsAG4dU/Blvf1xDgGaYCzfvStP2NwPQh6KBvCDbiOEvaE0filhranjIlK/2fSTVwtBng==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.9.1", - "@typescript-eslint/utils": "6.9.1", + "@typescript-eslint/typescript-estree": "6.12.0", + "@typescript-eslint/utils": "6.12.0", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -836,9 +836,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.9.1.tgz", - "integrity": "sha512-BUGslGOb14zUHOUmDB2FfT6SI1CcZEJYfF3qFwBeUrU6srJfzANonwRYHDpLBuzbq3HaoF2XL2hcr01c8f8OaQ==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.12.0.tgz", + "integrity": "sha512-MA16p/+WxM5JG/F3RTpRIcuOghWO30//VEOvzubM8zuOOBYXsP+IfjoCXXiIfy2Ta8FRh9+IO9QLlaFQUU+10Q==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -849,13 +849,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.9.1.tgz", - "integrity": "sha512-U+mUylTHfcqeO7mLWVQ5W/tMLXqVpRv61wm9ZtfE5egz7gtnmqVIw9ryh0mgIlkKk9rZLY3UHygsBSdB9/ftyw==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.12.0.tgz", + "integrity": "sha512-vw9E2P9+3UUWzhgjyyVczLWxZ3GuQNT7QpnIY3o5OMeLO/c8oHljGc8ZpryBMIyympiAAaKgw9e5Hl9dCWFOYw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.9.1", - "@typescript-eslint/visitor-keys": "6.9.1", + "@typescript-eslint/types": "6.12.0", + "@typescript-eslint/visitor-keys": "6.12.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -909,17 +909,17 @@ "dev": true }, "node_modules/@typescript-eslint/utils": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.9.1.tgz", - "integrity": "sha512-L1T0A5nFdQrMVunpZgzqPL6y2wVreSyHhKGZryS6jrEN7bD9NplVAyMryUhXsQ4TWLnZmxc2ekar/lSGIlprCA==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.12.0.tgz", + "integrity": "sha512-LywPm8h3tGEbgfyjYnu3dauZ0U7R60m+miXgKcZS8c7QALO9uWJdvNoP+duKTk2XMWc7/Q3d/QiCuLN9X6SWyQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.9.1", - "@typescript-eslint/types": "6.9.1", - "@typescript-eslint/typescript-estree": "6.9.1", + "@typescript-eslint/scope-manager": "6.12.0", + "@typescript-eslint/types": "6.12.0", + "@typescript-eslint/typescript-estree": "6.12.0", "semver": "^7.5.4" }, "engines": { @@ -967,12 +967,12 @@ "dev": true }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.9.1.tgz", - "integrity": "sha512-MUaPUe/QRLEffARsmNfmpghuQkW436DvESW+h+M52w0coICHRfD6Np9/K6PdACwnrq1HmuLl+cSPZaJmeVPkSw==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.12.0.tgz", + "integrity": "sha512-rg3BizTZHF1k3ipn8gfrzDXXSFKyOEB5zxYXInQ6z0hUvmQlhaZQzK+YmHmNViMA9HzW5Q9+bPPt90bU6GQwyw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/types": "6.12.0", "eslint-visitor-keys": "^3.4.1" }, "engines": { diff --git a/__tests__/e2e/package.json b/__tests__/e2e/package.json index 39db0c9108..2b7ffd8698 100644 --- a/__tests__/e2e/package.json +++ b/__tests__/e2e/package.json @@ -11,7 +11,7 @@ }, "author": "Automattic", "devDependencies": { - "@automattic/eslint-plugin-wpvip": "^0.8.0", + "@automattic/eslint-plugin-wpvip": "^0.9.0", "@babel/plugin-syntax-decorators": "^7.22.10", "@playwright/test": "^1.39.0", "asana-phrase": "^0.0.8", From 708003d890739d47fb2d704862729d2b8d45ef69 Mon Sep 17 00:00:00 2001 From: Rinat K Date: Tue, 28 Nov 2023 13:45:07 -0600 Subject: [PATCH 30/30] Query monitor tweaks: Implement a new Header outputter for PHP Errors. (#5040) * Implement a new Header outputter for PHP Errors. The main purpose of it is to reduce the chances of requests breaking due to too many errors presented as headers for REST and redirect contexts * Pad values some more --- .../output/headers/php-errors.php | 118 ++++++++++++++++++ query-monitor.php | 4 + 2 files changed, 122 insertions(+) create mode 100644 qm-plugins/qm-limited-header-php-errors/output/headers/php-errors.php diff --git a/qm-plugins/qm-limited-header-php-errors/output/headers/php-errors.php b/qm-plugins/qm-limited-header-php-errors/output/headers/php-errors.php new file mode 100644 index 0000000000..b4b085a590 --- /dev/null +++ b/qm-plugins/qm-limited-header-php-errors/output/headers/php-errors.php @@ -0,0 +1,118 @@ + + */ + public function get_output() { + /** @var QM_Data_PHP_Errors $data */ + $data = $this->collector->get_data(); + $headers = array(); + + if ( empty( $data->errors ) ) { + return array(); + } + + $count = 0; + + foreach ( $data->errors as $type => $errors ) { + + foreach ( $errors as $error_key => $error ) { + + // phpcs:ignore Universal.Operators.DisallowStandalonePostIncrementDecrement.PostIncrementFound + $count++; + + $stack = array(); + + if ( ! empty( $error['filtered_trace'] ) ) { + $stack = array_column( $error['filtered_trace'], 'display' ); + } + + $output_error = array( + 'key' => $error_key, + 'type' => $error['type'], + 'message' => $error['message'], + 'file' => QM_Util::standard_dir( $error['file'], '' ), + 'line' => $error['line'], + 'stack' => $stack, + 'component' => $error['component']->name, + ); + + $key = sprintf( 'error-%d', $count ); + $headers[ $key ] = json_encode( $output_error ); // phpcs:ignore WordPress.WP.AlternativeFunctions.json_encode_json_encode + + } + } + + // VIP: hack to avoid failed requests due to headers being too large + // these are subject to change at any time + // All of the values are padded to make sure failsafe is triggered earlier + $max_header_length = 10 * 1024; // padded + $max_total_header_length = 30 * 1024; // padded + $max_total_headers = 50; // padded + + $current_headers_length = strlen( join( "\n", headers_list() ) ); + $current_headers_count = count( headers_list() ); + + // Any single header too long, truncate it + foreach ( $headers as $key => $value ) { + if ( strlen( $value ) + strlen( $key ) > $max_header_length ) { + $headers[ $key ] = substr( $value, 0, $max_header_length ); + } + } + + // Too many headers, slice the array + if ( $current_headers_count + $count > $max_total_headers ) { + $headers = array_slice( $headers, 0, $max_total_headers - $current_headers_count ); + } + + // Wholesale remove QM error headers if we're still over the limit + $max_qm_headers_length = $max_total_header_length - $current_headers_length; + if ( strlen( join( "\n", $headers ) ) > $max_qm_headers_length ) { + $headers = [ 'errors-truncated' => 'Too many errors, check your Application performance monitor for details.' ]; + } + // End VIP Hack + + return array_merge( + array( + 'error-count' => $count, + ), + $headers + ); + } +} + +/** + * @param array $output + * @param QM_Collectors $collectors + * @return array + * phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed,Universal.Files.SeparateFunctionsFromOO.Mixed + */ +function vip_register_qm_output_headers_php_errors( array $output, QM_Collectors $collectors ) { + $collector = QM_Collectors::get( 'php_errors' ); + if ( $collector ) { + $output['php_errors'] = new QM_Output_Headers_Limited_PHP_Errors( $collector ); + } + return $output; +} + +add_filter( 'qm/outputter/headers', 'vip_register_qm_output_headers_php_errors', 111, 2 ); diff --git a/query-monitor.php b/query-monitor.php index 9b5d9492d5..4f55ecb560 100644 --- a/query-monitor.php +++ b/query-monitor.php @@ -107,6 +107,10 @@ function wpcom_vip_qm_require() { if ( file_exists( __DIR__ . '/qm-plugins/qm-db-connections/qm-db-connections.php' ) ) { require_once __DIR__ . '/qm-plugins/qm-db-connections/qm-db-connections.php'; } + + if ( file_exists( __DIR__ . '/qm-plugins/qm-limited-header-php-errors/output/headers/php-errors.php' ) ) { + require_once __DIR__ . '/qm-plugins/qm-limited-header-php-errors/output/headers/php-errors.php'; + } } add_action( 'plugins_loaded', 'wpcom_vip_qm_require', 1 );