Weak hands cannot be planted, meager skills have no foundation. Shallow wisdom is futile, how can one hope for a good name?扰扰从役倦，屑屑身事微。少壮轻年月，迟暮惜光辉。
<html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><?php
declare(strict_types=1);

namespace Imagify\ThirdParty\Plugins;

use GFForms;
use Imagify\EventManagement\SubscriberInterface;

/**
 * Subscriber for compatibility with GravityForms
 */
class GravityForms implements SubscriberInterface {
	/**
	 * Returns an array of events that this subscriber wants to listen to.
	 *
	 * @return array
	 */
	public static function get_subscribed_events(): array {
		if ( ! class_exists( 'GFCommon' ) ) {
			return [];
		}

		return [
			// @filter
			'gform_noconflict_styles'  => 'imagify_gf_noconflict_styles',
			// @filter
			'gform_noconflict_scripts' => 'imagify_gf_noconflict_scripts',
		];
	}

	/**
	 * Register imagify styles to gravity forms conflict styles
	 *
	 * @param array $styles Array fo registered styles.
	 *
	 * @return array
	 */
	public function imagify_gf_noconflict_styles( $styles ): array {
		if ( ! $this->is_gravity_forms_no_conflict_mode_enabled() ) {
			return $styles;
		}

		$styles[] = 'imagify-admin-bar';
		$styles[] = 'imagify-admin';
		$styles[] = 'imagify-notices';
		$styles[] = 'imagify-pricing-modal';

		return $styles;
	}

	/**
	 * Register Imagify scripts to gravity forms conflict scripts
	 *
	 * @param array $scripts Array fo registered scripts.
	 *
	 * @return array
	 */
	public