Redux Framework - Version 4.3.16

Version Description

  • Added: Accordion extension. https://devs.redux.io/core-extensions/accordion.html
  • Added: JS Button extension. https://devs.redux.io/core-extensions/js-button.html
  • Fixed: Validation messages dismissed when using ace_editor field after redux_change event.
  • Updated: Extendify Library.
  • Release date: July 21, 2022
Download this release

Release Info

Developer dovyp
Plugin Icon 128x128 Redux Framework
Version 4.3.16
Comparing to
See all releases

Code changes from version 4.3.15 to 4.3.16

extendify-sdk/app/Config.php CHANGED
@@ -92,6 +92,9 @@ class Config
92
  self::$sdkPartner = $GLOBALS['extendify_sdk_partner'];
93
  }
94
 
 
 
 
95
  // Always use the partner name if set as a constant.
96
  if (defined('EXTENDIFY_PARTNER_NAME')) {
97
  self::$sdkPartner = constant('EXTENDIFY_PARTNER_NAME');
@@ -111,7 +114,6 @@ class Config
111
  $isDev = is_readable(EXTENDIFY_PATH . 'public/build/.devbuild');
112
  self::$environment = $isDev ? 'DEVELOPMENT' : 'PRODUCTION';
113
 
114
- self::$standalone = self::$sdkPartner === 'standalone';
115
  self::$showOnboarding = $this->showOnboarding();
116
 
117
  // Add the config.
92
  self::$sdkPartner = $GLOBALS['extendify_sdk_partner'];
93
  }
94
 
95
+ // Set up whether this is the standalone plugin instead of integrated.
96
+ self::$standalone = self::$sdkPartner === 'standalone';
97
+
98
  // Always use the partner name if set as a constant.
99
  if (defined('EXTENDIFY_PARTNER_NAME')) {
100
  self::$sdkPartner = constant('EXTENDIFY_PARTNER_NAME');
114
  $isDev = is_readable(EXTENDIFY_PATH . 'public/build/.devbuild');
115
  self::$environment = $isDev ? 'DEVELOPMENT' : 'PRODUCTION';
116
 
 
117
  self::$showOnboarding = $this->showOnboarding();
118
 
119
  // Add the config.
extendify-sdk/app/Library/Admin.php CHANGED
@@ -50,7 +50,11 @@ class Admin
50
  $theme = get_option('template');
51
  $label = esc_html__('Upgrade', 'extendify');
52
 
53
- $links['upgrade'] = sprintf('<a href="%1$s" target="_blank"><b>%2$s</b></a>', "https://extendify.com/pricing?utm_source=extendify-plugin&utm_medium=wp-dash&utm_campaign=action-link&utm_content=$label&utm_term=$theme", $label);
 
 
 
 
54
 
55
  return $links;
56
  }
50
  $theme = get_option('template');
51
  $label = esc_html__('Upgrade', 'extendify');
52
 
53
+ $links['upgrade'] = sprintf(
54
+ '<a href="%1$s" target="_blank"><b>%2$s</b></a>',
55
+ "https://extendify.com/pricing?utm_source=extendify-plugin&utm_medium=wp-dash&utm_campaign=action-link&utm_content=$label&utm_term=$theme",
56
+ $label
57
+ );
58
 
59
  return $links;
60
  }
extendify-sdk/app/Library/Controllers/SiteSettingsController.php CHANGED
@@ -24,7 +24,14 @@ class SiteSettingsController
24
  */
25
  public static function show()
26
  {
27
- return new \WP_REST_Response(SiteSettings::data());
 
 
 
 
 
 
 
28
  }
29
 
30
  /**
@@ -39,4 +46,16 @@ class SiteSettingsController
39
  \update_option(SiteSettings::key(), $settingsData, true);
40
  return new \WP_REST_Response(SiteSettings::data());
41
  }
 
 
 
 
 
 
 
 
 
 
 
 
42
  }
24
  */
25
  public static function show()
26
  {
27
+ $siteSettings = json_decode(SiteSettings::data(), true);
28
+ // Keep the user sitetype in sync across all users.
29
+ $siteType = \get_option('extendify_siteType', false);
30
+ if ($siteType) {
31
+ $siteSettings['state']['siteType'] = $siteType;
32
+ }
33
+
34
+ return new \WP_REST_Response(wp_json_encode($siteSettings));
35
  }
36
 
37
  /**
46
  \update_option(SiteSettings::key(), $settingsData, true);
47
  return new \WP_REST_Response(SiteSettings::data());
48
  }
49
+ /**
50
+ * Persist the data
51
+ *
52
+ * @param \WP_REST_Request $request - The request.
53
+ * @return \WP_REST_Response
54
+ */
55
+ public static function updateOption($request)
56
+ {
57
+ $params = $request->get_json_params();
58
+ \update_option($params['option'], $params['value']);
59
+ return new \WP_REST_Response(['success' => true], 200);
60
+ }
61
  }
extendify-sdk/app/Library/Welcome.php CHANGED
@@ -76,7 +76,13 @@ class Welcome
76
  <div class="welcome-section has-2-columns has-gutters is-wider-right">
77
  <div class="column is-edge-to-edge">
78
  <h3>
79
- <?php \esc_html_e('1. Open the Extendify Library', 'extendify'); ?>
 
 
 
 
 
 
80
  </h3>
81
  <p>
82
  <?php \esc_html_e("When editing a page or post within the block editor, you'll see the Extendify library button within the editor's header", 'extendify'); ?>
76
  <div class="welcome-section has-2-columns has-gutters is-wider-right">
77
  <div class="column is-edge-to-edge">
78
  <h3>
79
+ <?php
80
+ echo sprintf(
81
+ /* translators: %s: Extendify Library term */
82
+ \esc_html__('1. Open the %s', 'extendify'),
83
+ 'Extendify Library'
84
+ );
85
+ ?>
86
  </h3>
87
  <p>
88
  <?php \esc_html_e("When editing a page or post within the block editor, you'll see the Extendify library button within the editor's header", 'extendify'); ?>
extendify-sdk/app/Onboarding/Admin.php CHANGED
@@ -39,7 +39,31 @@ class Admin
39
  self::$instance = $this;
40
  $this->loadScripts();
41
  $this->addAdminMenu();
42
- $this->redirectOnLogin();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  }
44
 
45
  /**
@@ -81,33 +105,38 @@ class Admin
81
  }
82
 
83
  /**
84
- * Always redirect to Extendify Launch on login unless onboarding has been previously completed or skipped.
85
- *
86
- * Applies to the main admin account, whose email matches the entry in WP Admin > Settings > General.
87
  *
88
  * @return void
89
  */
90
- public function redirectOnLogin()
91
  {
92
- // phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter
93
- \add_filter('login_redirect', function ($location, $request, $user) {
94
- // Don't redirect if Launch previously completed, or user skipped to WP admin.
95
- if (get_option('extendify_onboarding_skipped', 0) || get_option('extendify_onboarding_completed', 0)) {
96
- return $location;
 
 
97
  }
98
 
99
- // Redirect to Extendify Launch if user is admin, and their email matches the entry in general settings.
100
- if (is_object($user) && isset($user->data->user_email)) {
101
- $loginEmail = $user->data->user_email;
102
- $adminEmail = \get_option('admin_email');
103
- if ($loginEmail === $adminEmail && (isset($user->roles) && is_array($user->roles))) {
104
- return in_array('administrator', $user->roles, true) ? admin_url() . 'post-new.php?extendify=onboarding' : $location;
105
- }
106
  }
107
 
108
- // Redirect as normal.
109
- return $location;
110
- }, 10, 3);
 
 
 
 
 
 
 
111
  }
112
 
113
  /**
@@ -149,15 +178,19 @@ class Admin
149
  \wp_add_inline_script(
150
  Config::$slug . '-onboarding-scripts',
151
  'window.extOnbData = ' . wp_json_encode([
 
152
  'site' => \esc_url_raw(\get_site_url()),
153
  'adminUrl' => \esc_url_raw(\admin_url()),
154
  'pluginUrl' => \esc_url_raw(EXTENDIFY_BASE_URL),
155
  'home' => \esc_url_raw(\get_home_url()),
156
  'root' => \esc_url_raw(\rest_url(Config::$slug . '/' . Config::$apiVersion)),
 
157
  'wpRoot' => \esc_url_raw(\rest_url()),
158
  'nonce' => \wp_create_nonce('wp_rest'),
159
  'partnerLogo' => defined('EXTENDIFY_PARTNER_LOGO') ? constant('EXTENDIFY_PARTNER_LOGO') : null,
160
  'partnerName' => defined('EXTENDIFY_PARTNER_NAME') ? constant('EXTENDIFY_PARTNER_NAME') : null,
 
 
161
  ]),
162
  'before'
163
  );
@@ -171,7 +204,7 @@ class Admin
171
  $version,
172
  'all'
173
  );
174
- $bg = defined('EXTENDIFY_ONBOARDING_BG') ? constant('EXTENDIFY_ONBOARDING_BG') : 'var(--wp-admin-theme-color, #007cba)';
175
  $txt = defined('EXTENDIFY_ONBOARDING_TXT') ? constant('EXTENDIFY_ONBOARDING_TXT') : '#ffffff';
176
  \wp_add_inline_style(Config::$slug . '-onboarding-styles', "body {
177
  --ext-partner-theme-primary-bg: {$bg};
39
  self::$instance = $this;
40
  $this->loadScripts();
41
  $this->addAdminMenu();
42
+ $this->redirectOnce();
43
+ $this->addMetaField();
44
+ }
45
+
46
+ /**
47
+ * Adds a meta field so we can indicate a page was made with launch
48
+ *
49
+ * @return void
50
+ */
51
+ public function addMetaField()
52
+ {
53
+ \add_action(
54
+ 'init',
55
+ function () {
56
+ register_post_meta(
57
+ 'page',
58
+ 'made_with_extendify_launch',
59
+ [
60
+ 'single' => true,
61
+ 'type' => 'boolean',
62
+ 'show_in_rest' => true,
63
+ ]
64
+ );
65
+ }
66
+ );
67
  }
68
 
69
  /**
105
  }
106
 
107
  /**
108
+ * Redirect once to Launch, only once (at least once) when
109
+ * the email matches the entry in WP Admin > Settings > General.
 
110
  *
111
  * @return void
112
  */
113
+ public function redirectOnce()
114
  {
115
+ \add_action('admin_init', function () {
116
+ if (\get_option('extendify_launch_loaded', 0)
117
+ // These are here for legacy reasons.
118
+ || \get_option('extendify_onboarding_skipped', 0)
119
+ || \get_option('extendify_onboarding_completed', 0)
120
+ ) {
121
+ return;
122
  }
123
 
124
+ // Only redirect if we aren't already on the page.
125
+ // phpcs:ignore WordPress.Security.NonceVerification.Recommended
126
+ if (isset($_GET['extendify'])) {
127
+ return;
 
 
 
128
  }
129
 
130
+ $user = \wp_get_current_user();
131
+ if ($user
132
+ // Check the main admin email, and they have an admin role.
133
+ // phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
134
+ && \get_option('admin_email') === $user->user_email
135
+ && in_array('administrator', $user->roles, true)
136
+ ) {
137
+ \wp_safe_redirect(\admin_url() . 'post-new.php?extendify=onboarding');
138
+ }
139
+ });
140
  }
141
 
142
  /**
178
  \wp_add_inline_script(
179
  Config::$slug . '-onboarding-scripts',
180
  'window.extOnbData = ' . wp_json_encode([
181
+ 'globalStylesPostID' => \WP_Theme_JSON_Resolver::get_user_global_styles_post_id(),
182
  'site' => \esc_url_raw(\get_site_url()),
183
  'adminUrl' => \esc_url_raw(\admin_url()),
184
  'pluginUrl' => \esc_url_raw(EXTENDIFY_BASE_URL),
185
  'home' => \esc_url_raw(\get_home_url()),
186
  'root' => \esc_url_raw(\rest_url(Config::$slug . '/' . Config::$apiVersion)),
187
+ 'config' => Config::$config,
188
  'wpRoot' => \esc_url_raw(\rest_url()),
189
  'nonce' => \wp_create_nonce('wp_rest'),
190
  'partnerLogo' => defined('EXTENDIFY_PARTNER_LOGO') ? constant('EXTENDIFY_PARTNER_LOGO') : null,
191
  'partnerName' => defined('EXTENDIFY_PARTNER_NAME') ? constant('EXTENDIFY_PARTNER_NAME') : null,
192
+ 'partnerSkipSteps' => defined('EXTENDIFY_SKIP_STEPS') ? constant('EXTENDIFY_SKIP_STEPS') : [],
193
+ 'devbuild' => \esc_attr(Config::$environment === 'DEVELOPMENT'),
194
  ]),
195
  'before'
196
  );
204
  $version,
205
  'all'
206
  );
207
+ $bg = defined('EXTENDIFY_ONBOARDING_BG') ? constant('EXTENDIFY_ONBOARDING_BG') : '#3e58e1';
208
  $txt = defined('EXTENDIFY_ONBOARDING_TXT') ? constant('EXTENDIFY_ONBOARDING_TXT') : '#ffffff';
209
  \wp_add_inline_style(Config::$slug . '-onboarding-styles', "body {
210
  --ext-partner-theme-primary-bg: {$bg};
extendify-sdk/app/Onboarding/Controllers/DataController.php CHANGED
@@ -36,7 +36,11 @@ class DataController
36
  public static function getStyles($request)
37
  {
38
  $siteType = $request->get_param('siteType');
39
- $response = Http::get('/styles', ['siteType' => $siteType]);
 
 
 
 
40
  return new \WP_REST_Response($response);
41
  }
42
  /**
@@ -90,14 +94,13 @@ class DataController
90
  }
91
 
92
  /**
93
- * Send data about the order.
94
  *
95
- * @param \WP_REST_Request $request - The request.
96
  * @return \WP_REST_Response
97
  */
98
- public static function createOrder($request)
99
  {
100
- $response = Http::post('/create-order', $request->get_params());
101
  return new \WP_REST_Response($response);
102
  }
103
  }
36
  public static function getStyles($request)
37
  {
38
  $siteType = $request->get_param('siteType');
39
+ $styles = $request->get_param('styles');
40
+ $response = Http::get('/styles', [
41
+ 'siteType' => $siteType,
42
+ 'styles' => $styles,
43
+ ]);
44
  return new \WP_REST_Response($response);
45
  }
46
  /**
94
  }
95
 
96
  /**
97
+ * Create an order.
98
  *
 
99
  * @return \WP_REST_Response
100
  */
101
+ public static function createOrder()
102
  {
103
+ $response = Http::post('/create-order');
104
  return new \WP_REST_Response($response);
105
  }
106
  }
extendify-sdk/app/Onboarding/Controllers/LibraryController.php DELETED
@@ -1,36 +0,0 @@
1
- <?php
2
- /**
3
- * Library Controller
4
- */
5
-
6
- namespace Extendify\Onboarding\Controllers;
7
-
8
- if (!defined('ABSPATH')) {
9
- die('No direct access.');
10
- }
11
-
12
- /**
13
- * The controller for handling items associated with the library
14
- */
15
- class LibraryController
16
- {
17
- /**
18
- * Update the site type.
19
- *
20
- * @param \WP_REST_Request $request - The request.
21
- * @return \WP_REST_Response
22
- */
23
- public static function updateSiteType($request)
24
- {
25
- $siteType = $request->get_param('siteType');
26
- if (defined('EXTENDIFY_PATH') && is_readable(EXTENDIFY_PATH . 'app/User.php')) {
27
- include_once EXTENDIFY_PATH . 'app/User.php';
28
- }
29
-
30
- if (method_exists('Extendify\User', 'updateSiteType')) {
31
- \Extendify\User::updateSiteType($siteType);
32
- }
33
-
34
- return new \WP_REST_Response(['success' => true], 200);
35
- }
36
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extendify-sdk/app/Onboarding/Controllers/WPController.php CHANGED
@@ -5,8 +5,6 @@
5
 
6
  namespace Extendify\Onboarding\Controllers;
7
 
8
- use Extendify\Onboarding\Helpers\ThemeJson;
9
-
10
  if (!defined('ABSPATH')) {
11
  die('No direct access.');
12
  }
@@ -29,42 +27,13 @@ class WPController
29
  return new \WP_Error('invalid_theme_json', __('Invalid Theme.json file', 'extendify'));
30
  }
31
 
32
- $themeJson = new ThemeJson(json_decode($request->get_param('themeJson'), true), '');
33
  return new \WP_REST_Response([
34
  'success' => true,
35
  'styles' => $themeJson->get_stylesheet(),
36
  ], 200);
37
  }
38
 
39
- /**
40
- * Persist the data
41
- *
42
- * @param \WP_REST_Request $request - The request.
43
- * @return \WP_REST_Response
44
- */
45
- public static function saveThemeJson($request)
46
- {
47
- if (!$request->get_param('themeJson')) {
48
- return new \WP_Error('invalid_theme_json', __('Invalid Theme.json file', 'extendify'));
49
- }
50
-
51
- $themeJson = ThemeJson::justSanitize(json_decode($request->get_param('themeJson'), true));
52
-
53
- require_once ABSPATH . '/wp-admin/includes/file.php';
54
- $maybeError = \wp_edit_theme_plugin_file([
55
- 'theme' => \get_option('template'),
56
- 'file' => 'theme.json',
57
- 'newcontent' => \wp_json_encode($themeJson, JSON_PRETTY_PRINT),
58
- 'nonce' => \wp_create_nonce('edit-theme_' . \get_option('template') . '_theme.json'),
59
- ]);
60
-
61
- if (\is_wp_error($maybeError)) {
62
- return new \WP_Error('invalid_theme_json', __('Error creating theme.json file', 'extendify'));
63
- }
64
-
65
- return new \WP_REST_Response(['success' => true], 200);
66
- }
67
-
68
  /**
69
  * Persist the data
70
  *
5
 
6
  namespace Extendify\Onboarding\Controllers;
7
 
 
 
8
  if (!defined('ABSPATH')) {
9
  die('No direct access.');
10
  }
27
  return new \WP_Error('invalid_theme_json', __('Invalid Theme.json file', 'extendify'));
28
  }
29
 
30
+ $themeJson = new \WP_Theme_JSON(json_decode($request->get_param('themeJson'), true), '');
31
  return new \WP_REST_Response([
32
  'success' => true,
33
  'styles' => $themeJson->get_stylesheet(),
34
  ], 200);
35
  }
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  /**
38
  * Persist the data
39
  *
extendify-sdk/app/Onboarding/Helpers/ThemeJson.php DELETED
@@ -1,27 +0,0 @@
1
- <?php
2
-
3
- namespace Extendify\Onboarding\Helpers;
4
-
5
- if (!defined('ABSPATH')) {
6
- die('No direct access.');
7
- }
8
-
9
- /**
10
- * Class used to expose some WP protectod methods
11
- */
12
- class ThemeJson extends \WP_Theme_JSON
13
- {
14
- /**
15
- * Expose the protected sanitize function to make sure the theme.json is OK.
16
- *
17
- * @param array $themeJson - parsed theme.json array.
18
- * @return array
19
- */
20
- public static function justSanitize($themeJson)
21
- {
22
- $themeJson = \WP_Theme_JSON_Schema::migrate($themeJson);
23
- $validBlockNames = array_keys(static::get_blocks_metadata());
24
- $validElementNames = array_keys(static::ELEMENTS);
25
- return static::sanitize($themeJson, $validBlockNames, $validElementNames);
26
- }
27
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extendify-sdk/app/User.php CHANGED
@@ -68,20 +68,6 @@ class User
68
  $this->uuid = $uuid;
69
  }
70
 
71
- /**
72
- * Updates the site type. Currently used by onboarding only
73
- *
74
- * @param array $siteType - Site type array.
75
- * @return mixed - Data about the user.
76
- */
77
- public static function updateSiteType($siteType)
78
- {
79
- $data = json_decode(static::state(), true);
80
- $data['state']['preferredOptions']['taxonomies']['siteType']['slug'] = $siteType['slug'];
81
- $data['state']['preferredOptions']['taxonomies']['siteType']['title'] = $siteType['title'];
82
- return static::updateState(\wp_json_encode($data));
83
- }
84
-
85
  /**
86
  * Returns data about the user
87
  * Use it like User::data('ID') to get the user id
@@ -99,18 +85,6 @@ class User
99
  return \get_user_meta($this->user->ID, $this->key . $arguments, true);
100
  }
101
 
102
- /**
103
- * Update the user state
104
- *
105
- * @param string $newState - JSON encoded state.
106
- * @return string - JSON representation of the updated state
107
- */
108
- private function updateStateHandler($newState)
109
- {
110
- \update_user_meta($this->user->ID, $this->key . 'user_data', $newState);
111
- return \get_user_meta($this->user->ID, $this->key . 'user_data');
112
- }
113
-
114
  /**
115
  * Returns application state for the current user
116
  * Use it like User::data('ID') to get the user id
@@ -152,6 +126,14 @@ class User
152
  $userData['state']['canActivatePlugins'] = \current_user_can('activate_plugins');
153
  $userData['state']['isAdmin'] = \current_user_can('create_users');
154
 
 
 
 
 
 
 
 
 
155
  return \wp_json_encode($userData);
156
  }
157
 
68
  $this->uuid = $uuid;
69
  }
70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  /**
72
  * Returns data about the user
73
  * Use it like User::data('ID') to get the user id
85
  return \get_user_meta($this->user->ID, $this->key . $arguments, true);
86
  }
87
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  /**
89
  * Returns application state for the current user
90
  * Use it like User::data('ID') to get the user id
126
  $userData['state']['canActivatePlugins'] = \current_user_can('activate_plugins');
127
  $userData['state']['isAdmin'] = \current_user_can('create_users');
128
 
129
+ // If the license key is set on the server, force use it.
130
+ if (defined('EXTENDIFY_SITE_LICENSE')) {
131
+ $userData['state']['apiKey'] = constant('EXTENDIFY_SITE_LICENSE');
132
+ }
133
+
134
+ // This probably shouldn't have been wrapped in wp_json_encode,
135
+ // but needs to remain until we can safely log pro users out,
136
+ // as changing this now would erase all user data.
137
  return \wp_json_encode($userData);
138
  }
139
 
extendify-sdk/public/assets/extendify-preview.png CHANGED
Binary file
extendify-sdk/public/build/extendify-onboarding.css CHANGED
@@ -1 +1 @@
1
- div.extendify-onboarding .sr-only{clip:rect(0,0,0,0)!important;border-width:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}div.extendify-onboarding .focus\:not-sr-only:focus{clip:auto!important;height:auto!important;margin:0!important;overflow:visible!important;padding:0!important;position:static!important;white-space:normal!important;width:auto!important}div.extendify-onboarding .pointer-events-none{pointer-events:none!important}div.extendify-onboarding .invisible{visibility:hidden!important}div.extendify-onboarding .group:focus .group-focus\:visible,div.extendify-onboarding .group:hover .group-hover\:visible{visibility:visible!important}div.extendify-onboarding .static{position:static!important}div.extendify-onboarding .fixed{position:fixed!important}div.extendify-onboarding .absolute{position:absolute!important}div.extendify-onboarding .relative{position:relative!important}div.extendify-onboarding .sticky{position:-webkit-sticky!important;position:sticky!important}div.extendify-onboarding .inset-0{bottom:0!important;left:0!important;right:0!important;top:0!important}div.extendify-onboarding .top-0{top:0!important}div.extendify-onboarding .top-2{top:.5rem!important}div.extendify-onboarding .top-4{top:1rem!important}div.extendify-onboarding .-top-1\/4{top:-25%!important}div.extendify-onboarding .right-0{right:0!important}div.extendify-onboarding .right-1{right:.25rem!important}div.extendify-onboarding .right-2{right:.5rem!important}div.extendify-onboarding .right-3{right:.75rem!important}div.extendify-onboarding .right-4{right:1rem!important}div.extendify-onboarding .right-2\.5{right:.625rem!important}div.extendify-onboarding .bottom-0{bottom:0!important}div.extendify-onboarding .bottom-4{bottom:1rem!important}div.extendify-onboarding .-bottom-2{bottom:-.5rem!important}div.extendify-onboarding .left-0{left:0!important}div.extendify-onboarding .group:hover .group-hover\:-top-2{top:-.5rem!important}div.extendify-onboarding .group:hover .group-hover\:-top-2\.5{top:-.625rem!important}div.extendify-onboarding .group:focus .group-focus\:-top-2{top:-.5rem!important}div.extendify-onboarding .group:focus .group-focus\:-top-2\.5{top:-.625rem!important}div.extendify-onboarding .z-10{z-index:10!important}div.extendify-onboarding .z-20{z-index:20!important}div.extendify-onboarding .z-30{z-index:30!important}div.extendify-onboarding .z-40{z-index:40!important}div.extendify-onboarding .z-50{z-index:50!important}div.extendify-onboarding .z-high{z-index:99999!important}div.extendify-onboarding .z-max{z-index:2147483647!important}div.extendify-onboarding .m-0{margin:0!important}div.extendify-onboarding .m-6{margin:1.5rem!important}div.extendify-onboarding .m-8{margin:2rem!important}div.extendify-onboarding .m-auto{margin:auto!important}div.extendify-onboarding .-m-2{margin:-.5rem!important}div.extendify-onboarding .-m-6{margin:-1.5rem!important}div.extendify-onboarding .-m-8{margin:-2rem!important}div.extendify-onboarding .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}div.extendify-onboarding .mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}div.extendify-onboarding .mx-auto{margin-left:auto!important;margin-right:auto!important}div.extendify-onboarding .-mx-4{margin-left:-1rem!important;margin-right:-1rem!important}div.extendify-onboarding .my-0{margin-bottom:0!important;margin-top:0!important}div.extendify-onboarding .my-px{margin-bottom:1px!important;margin-top:1px!important}div.extendify-onboarding .mt-0{margin-top:0!important}div.extendify-onboarding .mt-2{margin-top:.5rem!important}div.extendify-onboarding .mt-4{margin-top:1rem!important}div.extendify-onboarding .mt-8{margin-top:2rem!important}div.extendify-onboarding .mt-px{margin-top:1px!important}div.extendify-onboarding .-mt-2{margin-top:-.5rem!important}div.extendify-onboarding .-mt-5{margin-top:-1.25rem!important}div.extendify-onboarding .mr-1{margin-right:.25rem!important}div.extendify-onboarding .mr-2{margin-right:.5rem!important}div.extendify-onboarding .mr-6{margin-right:1.5rem!important}div.extendify-onboarding .-mr-1{margin-right:-.25rem!important}div.extendify-onboarding .-mr-1\.5{margin-right:-.375rem!important}div.extendify-onboarding .mb-0{margin-bottom:0!important}div.extendify-onboarding .mb-1{margin-bottom:.25rem!important}div.extendify-onboarding .mb-2{margin-bottom:.5rem!important}div.extendify-onboarding .mb-3{margin-bottom:.75rem!important}div.extendify-onboarding .mb-4{margin-bottom:1rem!important}div.extendify-onboarding .mb-5{margin-bottom:1.25rem!important}div.extendify-onboarding .mb-8{margin-bottom:2rem!important}div.extendify-onboarding .mb-10{margin-bottom:2.5rem!important}div.extendify-onboarding .ml-1{margin-left:.25rem!important}div.extendify-onboarding .ml-2{margin-left:.5rem!important}div.extendify-onboarding .ml-4{margin-left:1rem!important}div.extendify-onboarding .ml-12{margin-left:3rem!important}div.extendify-onboarding .-ml-1{margin-left:-.25rem!important}div.extendify-onboarding .-ml-2{margin-left:-.5rem!important}div.extendify-onboarding .-ml-6{margin-left:-1.5rem!important}div.extendify-onboarding .-ml-px{margin-left:-1px!important}div.extendify-onboarding .-ml-1\.5{margin-left:-.375rem!important}div.extendify-onboarding .block{display:block!important}div.extendify-onboarding .inline-block{display:inline-block!important}div.extendify-onboarding .flex{display:flex!important}div.extendify-onboarding .inline-flex{display:inline-flex!important}div.extendify-onboarding .table{display:table!important}div.extendify-onboarding .grid{display:grid!important}div.extendify-onboarding .hidden{display:none!important}div.extendify-onboarding .h-0{height:0!important}div.extendify-onboarding .h-2{height:.5rem!important}div.extendify-onboarding .h-4{height:1rem!important}div.extendify-onboarding .h-8{height:2rem!important}div.extendify-onboarding .h-12{height:3rem!important}div.extendify-onboarding .h-32{height:8rem!important}div.extendify-onboarding .h-64{height:16rem!important}div.extendify-onboarding .h-auto{height:auto!important}div.extendify-onboarding .h-full{height:100%!important}div.extendify-onboarding .h-screen{height:100vh!important}div.extendify-onboarding .max-h-96{max-height:24rem!important}div.extendify-onboarding .min-h-screen{min-height:100vh!important}div.extendify-onboarding .w-0{width:0!important}div.extendify-onboarding .w-4{width:1rem!important}div.extendify-onboarding .w-6{width:1.5rem!important}div.extendify-onboarding .w-8{width:2rem!important}div.extendify-onboarding .w-10{width:2.5rem!important}div.extendify-onboarding .w-16{width:4rem!important}div.extendify-onboarding .w-20{width:5rem!important}div.extendify-onboarding .w-28{width:7rem!important}div.extendify-onboarding .w-32{width:8rem!important}div.extendify-onboarding .w-72{width:18rem!important}div.extendify-onboarding .w-80{width:20rem!important}div.extendify-onboarding .w-96{width:24rem!important}div.extendify-onboarding .w-auto{width:auto!important}div.extendify-onboarding .w-6\/12{width:50%!important}div.extendify-onboarding .w-7\/12{width:58.333333%!important}div.extendify-onboarding .w-full{width:100%!important}div.extendify-onboarding .w-screen{width:100vw!important}div.extendify-onboarding .min-w-0{min-width:0!important}div.extendify-onboarding .min-w-sm{min-width:7rem!important}div.extendify-onboarding .max-w-sm{max-width:24rem!important}div.extendify-onboarding .max-w-md{max-width:28rem!important}div.extendify-onboarding .max-w-lg{max-width:32rem!important}div.extendify-onboarding .max-w-xl{max-width:36rem!important}div.extendify-onboarding .max-w-2xl{max-width:42rem!important}div.extendify-onboarding .max-w-full{max-width:100%!important}div.extendify-onboarding .max-w-screen-4xl{max-width:1920px!important}div.extendify-onboarding .flex-1{flex:1 1 0%!important}div.extendify-onboarding .flex-shrink-0{flex-shrink:0!important}div.extendify-onboarding .flex-grow-0{flex-grow:0!important}div.extendify-onboarding .flex-grow{flex-grow:1!important}div.extendify-onboarding .transform{--tw-translate-x:0!important;--tw-translate-y:0!important;--tw-rotate:0!important;--tw-skew-x:0!important;--tw-skew-y:0!important;--tw-scale-x:1!important;--tw-scale-y:1!important;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}div.extendify-onboarding .-translate-x-1{--tw-translate-x:-0.25rem!important}div.extendify-onboarding .translate-y-0{--tw-translate-y:0px!important}div.extendify-onboarding .translate-y-4{--tw-translate-y:1rem!important}div.extendify-onboarding .-translate-y-px{--tw-translate-y:-1px!important}div.extendify-onboarding .-translate-y-full{--tw-translate-y:-100%!important}div.extendify-onboarding .rotate-90{--tw-rotate:90deg!important}div.extendify-onboarding .cursor-pointer{cursor:pointer!important}div.extendify-onboarding .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}div.extendify-onboarding .flex-col{flex-direction:column!important}div.extendify-onboarding .flex-wrap{flex-wrap:wrap!important}div.extendify-onboarding .items-start{align-items:flex-start!important}div.extendify-onboarding .items-end{align-items:flex-end!important}div.extendify-onboarding .items-center{align-items:center!important}div.extendify-onboarding .justify-end{justify-content:flex-end!important}div.extendify-onboarding .justify-center{justify-content:center!important}div.extendify-onboarding .justify-between{justify-content:space-between!important}div.extendify-onboarding .justify-evenly{justify-content:space-evenly!important}div.extendify-onboarding .gap-4{gap:1rem!important}div.extendify-onboarding .gap-6{gap:1.5rem!important}div.extendify-onboarding .gap-8{gap:2rem!important}div.extendify-onboarding .space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(0px*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.25rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.5rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.75rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(1rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-0\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.125rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1rem*var(--tw-space-y-reverse))!important;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(2rem*var(--tw-space-y-reverse))!important;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0!important;border-bottom-width:calc(1px*var(--tw-divide-y-reverse))!important;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))!important}div.extendify-onboarding .self-start{align-self:flex-start!important}div.extendify-onboarding .overflow-hidden{overflow:hidden!important}div.extendify-onboarding .overflow-y-auto{overflow-y:auto!important}div.extendify-onboarding .overflow-x-hidden{overflow-x:hidden!important}div.extendify-onboarding .whitespace-nowrap{white-space:nowrap!important}div.extendify-onboarding .rounded-sm{border-radius:.125rem!important}div.extendify-onboarding .rounded{border-radius:.25rem!important}div.extendify-onboarding .rounded-md{border-radius:.375rem!important}div.extendify-onboarding .rounded-lg{border-radius:.5rem!important}div.extendify-onboarding .rounded-full{border-radius:9999px!important}div.extendify-onboarding .rounded-tr-sm{border-top-right-radius:.125rem!important}div.extendify-onboarding .rounded-br-sm{border-bottom-right-radius:.125rem!important}div.extendify-onboarding .border-0{border-width:0!important}div.extendify-onboarding .border-2{border-width:2px!important}div.extendify-onboarding .border-8{border-width:8px!important}div.extendify-onboarding .border{border-width:1px!important}div.extendify-onboarding .border-r{border-right-width:1px!important}div.extendify-onboarding .border-b-0{border-bottom-width:0!important}div.extendify-onboarding .border-b{border-bottom-width:1px!important}div.extendify-onboarding .border-l-8{border-left-width:8px!important}div.extendify-onboarding .border-solid{border-style:solid!important}div.extendify-onboarding .border-none{border-style:none!important}div.extendify-onboarding .border-transparent{border-color:transparent!important}div.extendify-onboarding .border-black{--tw-border-opacity:1!important;border-color:rgba(0,0,0,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-100{--tw-border-opacity:1!important;border-color:rgba(240,240,240,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-200{--tw-border-opacity:1!important;border-color:rgba(224,224,224,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-600{--tw-border-opacity:1!important;border-color:rgba(148,148,148,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-900{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important}div.extendify-onboarding .border-extendify-main{--tw-border-opacity:1!important;border-color:rgba(11,74,67,var(--tw-border-opacity))!important}div.extendify-onboarding .border-extendify-secondary{--tw-border-opacity:1!important;border-color:rgba(203,195,245,var(--tw-border-opacity))!important}div.extendify-onboarding .border-extendify-transparent-black-100{border-color:rgba(0,0,0,.07)!important}div.extendify-onboarding .border-wp-alert-red{--tw-border-opacity:1!important;border-color:rgba(204,24,24,var(--tw-border-opacity))!important}div.extendify-onboarding .focus\:border-transparent:focus{border-color:transparent!important}div.extendify-onboarding .bg-transparent{background-color:transparent!important}div.extendify-onboarding .bg-black{--tw-bg-opacity:1!important;background-color:rgba(0,0,0,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-white{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-50{--tw-bg-opacity:1!important;background-color:rgba(251,251,251,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-100{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-200{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-partner-primary-bg{background-color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify-onboarding .bg-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-extendify-alert{--tw-bg-opacity:1!important;background-color:rgba(132,16,16,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-extendify-secondary{--tw-bg-opacity:1!important;background-color:rgba(203,195,245,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-extendify-transparent-white{background-color:hsla(0,0%,99%,.88)!important}div.extendify-onboarding .bg-wp-theme-500{background-color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-onboarding .group:hover .group-hover\:bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-onboarding .hover\:bg-gray-200:hover{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify-onboarding .hover\:bg-partner-primary-bg:hover{background-color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify-onboarding .hover\:bg-extendify-main-dark:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}div.extendify-onboarding .hover\:bg-wp-theme-600:hover{background-color:var(--wp-admin-theme-color-darker-10,#006ba1)!important}div.extendify-onboarding .focus\:bg-gray-100:focus{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify-onboarding .active\:bg-gray-900:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-opacity-40{--tw-bg-opacity:0.4!important}div.extendify-onboarding .bg-cover{background-size:cover!important}div.extendify-onboarding .bg-clip-padding{background-clip:padding-box!important}div.extendify-onboarding .fill-current{fill:currentColor!important}div.extendify-onboarding .stroke-current{stroke:currentColor!important}div.extendify-onboarding .p-0{padding:0!important}div.extendify-onboarding .p-1{padding:.25rem!important}div.extendify-onboarding .p-2{padding:.5rem!important}div.extendify-onboarding .p-3{padding:.75rem!important}div.extendify-onboarding .p-4{padding:1rem!important}div.extendify-onboarding .p-6{padding:1.5rem!important}div.extendify-onboarding .p-8{padding:2rem!important}div.extendify-onboarding .p-10{padding:2.5rem!important}div.extendify-onboarding .p-12{padding:3rem!important}div.extendify-onboarding .p-0\.5{padding:.125rem!important}div.extendify-onboarding .p-1\.5{padding:.375rem!important}div.extendify-onboarding .p-3\.5{padding:.875rem!important}div.extendify-onboarding .px-0{padding-left:0!important;padding-right:0!important}div.extendify-onboarding .px-1{padding-left:.25rem!important;padding-right:.25rem!important}div.extendify-onboarding .px-2{padding-left:.5rem!important;padding-right:.5rem!important}div.extendify-onboarding .px-3{padding-left:.75rem!important;padding-right:.75rem!important}div.extendify-onboarding .px-4{padding-left:1rem!important;padding-right:1rem!important}div.extendify-onboarding .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}div.extendify-onboarding .px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}div.extendify-onboarding .px-8{padding-left:2rem!important;padding-right:2rem!important}div.extendify-onboarding .px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}div.extendify-onboarding .px-0\.5{padding-left:.125rem!important;padding-right:.125rem!important}div.extendify-onboarding .px-2\.5{padding-left:.625rem!important;padding-right:.625rem!important}div.extendify-onboarding .py-0{padding-bottom:0!important;padding-top:0!important}div.extendify-onboarding .py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}div.extendify-onboarding .py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}div.extendify-onboarding .py-3{padding-bottom:.75rem!important;padding-top:.75rem!important}div.extendify-onboarding .py-4{padding-bottom:1rem!important;padding-top:1rem!important}div.extendify-onboarding .py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}div.extendify-onboarding .py-12{padding-bottom:3rem!important;padding-top:3rem!important}div.extendify-onboarding .py-2\.5{padding-bottom:.625rem!important;padding-top:.625rem!important}div.extendify-onboarding .pt-0{padding-top:0!important}div.extendify-onboarding .pt-2{padding-top:.5rem!important}div.extendify-onboarding .pt-4{padding-top:1rem!important}div.extendify-onboarding .pt-6{padding-top:1.5rem!important}div.extendify-onboarding .pt-px{padding-top:1px!important}div.extendify-onboarding .pt-0\.5{padding-top:.125rem!important}div.extendify-onboarding .pr-3{padding-right:.75rem!important}div.extendify-onboarding .pr-8{padding-right:2rem!important}div.extendify-onboarding .pb-2{padding-bottom:.5rem!important}div.extendify-onboarding .pb-8{padding-bottom:2rem!important}div.extendify-onboarding .pb-20{padding-bottom:5rem!important}div.extendify-onboarding .pb-36{padding-bottom:9rem!important}div.extendify-onboarding .pb-40{padding-bottom:10rem!important}div.extendify-onboarding .pl-0{padding-left:0!important}div.extendify-onboarding .pl-2{padding-left:.5rem!important}div.extendify-onboarding .pl-6{padding-left:1.5rem!important}div.extendify-onboarding .text-left{text-align:left!important}div.extendify-onboarding .text-center{text-align:center!important}div.extendify-onboarding .text-xs{font-size:.75rem!important;line-height:1rem!important}div.extendify-onboarding .text-sm{font-size:.875rem!important;line-height:1.25rem!important}div.extendify-onboarding .text-base{font-size:1rem!important;line-height:1.5rem!important}div.extendify-onboarding .text-lg{font-size:1.125rem!important;line-height:1.75rem!important}div.extendify-onboarding .text-xl{font-size:1.25rem!important;line-height:1.75rem!important}div.extendify-onboarding .text-3xl{font-size:2rem!important;line-height:2.5rem!important}div.extendify-onboarding .text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}div.extendify-onboarding .text-xss{font-size:11px!important}div.extendify-onboarding .font-light{font-weight:300!important}div.extendify-onboarding .font-normal{font-weight:400!important}div.extendify-onboarding .font-medium{font-weight:500!important}div.extendify-onboarding .font-semibold{font-weight:600!important}div.extendify-onboarding .font-bold{font-weight:700!important}div.extendify-onboarding .uppercase{text-transform:uppercase!important}div.extendify-onboarding .italic{font-style:italic!important}div.extendify-onboarding .leading-none{line-height:1!important}div.extendify-onboarding .tracking-tight{letter-spacing:-.025em!important}div.extendify-onboarding .text-black{--tw-text-opacity:1!important;color:rgba(0,0,0,var(--tw-text-opacity))!important}div.extendify-onboarding .text-white{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-500{--tw-text-opacity:1!important;color:rgba(204,204,204,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-700{--tw-text-opacity:1!important;color:rgba(117,117,117,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-800{--tw-text-opacity:1!important;color:rgba(31,41,55,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-900{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify-onboarding .text-green-500{--tw-text-opacity:1!important;color:rgba(16,185,129,var(--tw-text-opacity))!important}div.extendify-onboarding .text-partner-primary-text{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify-onboarding .text-partner-primary-bg{color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify-onboarding .text-extendify-main{--tw-text-opacity:1!important;color:rgba(11,74,67,var(--tw-text-opacity))!important}div.extendify-onboarding .text-extendify-gray{--tw-text-opacity:1!important;color:rgba(95,95,95,var(--tw-text-opacity))!important}div.extendify-onboarding .text-extendify-black{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify-onboarding .text-wp-theme-500{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-onboarding .text-wp-alert-red{--tw-text-opacity:1!important;color:rgba(204,24,24,var(--tw-text-opacity))!important}div.extendify-onboarding .group:hover .group-hover\:text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify-onboarding .hover\:text-white:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-onboarding .hover\:text-partner-primary-text:hover{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify-onboarding .hover\:text-partner-primary-bg:hover{color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify-onboarding .hover\:text-wp-theme-500:hover{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-onboarding .focus\:text-white:focus{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-onboarding .focus\:text-blue-500:focus{--tw-text-opacity:1!important;color:rgba(59,130,246,var(--tw-text-opacity))!important}div.extendify-onboarding .underline{text-decoration:underline!important}div.extendify-onboarding .no-underline{text-decoration:none!important}div.extendify-onboarding .hover\:underline:hover{text-decoration:underline!important}div.extendify-onboarding .hover\:no-underline:hover{text-decoration:none!important}div.extendify-onboarding .opacity-0{opacity:0!important}div.extendify-onboarding .opacity-30{opacity:.3!important}div.extendify-onboarding .opacity-50{opacity:.5!important}div.extendify-onboarding .opacity-70{opacity:.7!important}div.extendify-onboarding .opacity-75{opacity:.75!important}div.extendify-onboarding .focus\:opacity-100:focus,div.extendify-onboarding .group:focus .group-focus\:opacity-100,div.extendify-onboarding .group:hover .group-hover\:opacity-100,div.extendify-onboarding .hover\:opacity-100:hover,div.extendify-onboarding .opacity-100{opacity:1!important}div.extendify-onboarding .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05)!important}div.extendify-onboarding .shadow-md,div.extendify-onboarding .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-onboarding .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06)!important}div.extendify-onboarding .shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25)!important}div.extendify-onboarding .shadow-2xl,div.extendify-onboarding .shadow-modal{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-onboarding .shadow-modal{--tw-shadow:0 0 0 1px rgba(0,0,0,.1),0 3px 15px -3px rgba(0,0,0,.035),0 0 1px rgba(0,0,0,.05)!important}div.extendify-onboarding .focus\:shadow-none:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-onboarding .focus\:outline-none:focus,div.extendify-onboarding .outline-none{outline:2px solid transparent!important;outline-offset:2px!important}div.extendify-onboarding .focus\:ring-wp:focus,div.extendify-onboarding .ring-wp{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}div.extendify-onboarding .ring-partner-primary-bg{--tw-ring-color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify-onboarding .ring-offset-2{--tw-ring-offset-width:2px!important}div.extendify-onboarding .ring-offset-white{--tw-ring-offset-color:#fff!important}div.extendify-onboarding .filter{--tw-blur:var(--tw-empty,/*!*/ /*!*/)!important;--tw-brightness:var(--tw-empty,/*!*/ /*!*/)!important;--tw-contrast:var(--tw-empty,/*!*/ /*!*/)!important;--tw-grayscale:var(--tw-empty,/*!*/ /*!*/)!important;--tw-hue-rotate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-invert:var(--tw-empty,/*!*/ /*!*/)!important;--tw-saturate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-sepia:var(--tw-empty,/*!*/ /*!*/)!important;--tw-drop-shadow:var(--tw-empty,/*!*/ /*!*/)!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}div.extendify-onboarding .blur{--tw-blur:blur(8px)!important}div.extendify-onboarding .invert{--tw-invert:invert(100%)!important}div.extendify-onboarding .backdrop-filter{--tw-backdrop-blur:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-brightness:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-contrast:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-grayscale:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-hue-rotate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-invert:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-opacity:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-saturate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-sepia:var(--tw-empty,/*!*/ /*!*/)!important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}div.extendify-onboarding .backdrop-blur-xl{--tw-backdrop-blur:blur(24px)!important}div.extendify-onboarding .backdrop-saturate-200{--tw-backdrop-saturate:saturate(2)!important}div.extendify-onboarding .transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-onboarding .transition{transition-duration:.15s!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-onboarding .transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-onboarding .delay-200{transition-delay:.2s!important}div.extendify-onboarding .duration-100{transition-duration:.1s!important}div.extendify-onboarding .duration-200{transition-duration:.2s!important}div.extendify-onboarding .duration-300{transition-duration:.3s!important}div.extendify-onboarding .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}div.extendify-onboarding .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.extendify-onboarding{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/)!important;--tw-ring-offset-width:0px!important;--tw-ring-offset-color:transparent!important;--tw-ring-color:var(--ext-partner-theme-primary-bg,#007cba)!important}.extendify-onboarding *,.extendify-onboarding :after,.extendify-onboarding :before{border:0 solid #e5e7eb!important;box-sizing:border-box!important}.extendify-onboarding{-webkit-font-smoothing:antialiased!important}.extendify-onboarding .search-panel .icon-search{position:absolute!important;right:16px!important}.extendify-onboarding .button-focus{background-color:transparent!important;border-radius:.5rem!important;cursor:pointer!important;font-size:1rem!important;line-height:1.5rem!important;text-align:center!important;text-decoration:none!important}.extendify-onboarding .button-focus:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify-onboarding .button-focus{outline:2px solid transparent!important;outline-offset:2px!important}.extendify-onboarding .button-focus:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.extendify-onboarding .button-focus{--tw-ring-color:var(--ext-partner-theme-primary-bg,#007cba)!important;--tw-ring-offset-width:2px!important;--tw-ring-offset-color:#fff!important}.extendify-onboarding .input-focus{border-radius:.5rem!important;font-size:1rem!important;line-height:1.5rem!important}.extendify-onboarding .input-focus:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify-onboarding .input-focus{outline:2px solid transparent!important;outline-offset:2px!important}.extendify-onboarding .input-focus:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.extendify-onboarding .input-focus{--tw-ring-color:var(--ext-partner-theme-primary-bg,#007cba)!important;--tw-ring-offset-width:2px!important;--tw-ring-offset-color:#fff!important}.extendify-onboarding .button-card{border-width:1px!important;display:block!important;flex:1 1 0%!important;margin:0!important;overflow:hidden!important;padding:1rem!important}.extendify-onboarding .preview-container .block-editor-block-preview__content{max-height:none!important}.extendify-onboarding .spin{-webkit-animation:extendify-loading-spinner 2.5s linear infinite;animation:extendify-loading-spinner 2.5s linear infinite}@-webkit-keyframes extendify-loading-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes extendify-loading-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.extendify-onboarding .components-checkbox-control__input[type=checkbox]{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important;border-width:1px!important}.extendify-onboarding .components-checkbox-control__input[type=checkbox]:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-color:var(--ext-partner-theme-primary-bg,#007cba)!important;--tw-ring-offset-width:2px!important;--tw-ring-offset-color:#fff!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important;outline:2px solid transparent!important;outline-offset:2px!important}.extendify-onboarding .components-checkbox-control__input[type=checkbox]:checked{background-color:var(--ext-partner-theme-primary-bg,#007cba)!important}.extendify-onboarding .goal-select .components-base-control__field{margin-bottom:0!important}@media (min-width:480px){div.extendify-onboarding .xs\:inline{display:inline!important}div.extendify-onboarding .xs\:h-9{height:2.25rem!important}div.extendify-onboarding .xs\:pr-3{padding-right:.75rem!important}div.extendify-onboarding .xs\:pl-2{padding-left:.5rem!important}}@media (min-width:600px){div.extendify-onboarding .sm\:mx-0{margin-left:0!important;margin-right:0!important}div.extendify-onboarding .sm\:mt-0{margin-top:0!important}div.extendify-onboarding .sm\:mb-8{margin-bottom:2rem!important}div.extendify-onboarding .sm\:ml-2{margin-left:.5rem!important}div.extendify-onboarding .sm\:block{display:block!important}div.extendify-onboarding .sm\:flex{display:flex!important}div.extendify-onboarding .sm\:h-auto{height:auto!important}div.extendify-onboarding .sm\:w-72{width:18rem!important}div.extendify-onboarding .sm\:w-auto{width:auto!important}div.extendify-onboarding .sm\:translate-y-5{--tw-translate-y:1.25rem!important}div.extendify-onboarding .sm\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .sm\:p-0{padding:0!important}div.extendify-onboarding .sm\:py-0{padding-bottom:0!important;padding-top:0!important}div.extendify-onboarding .sm\:pt-0{padding-top:0!important}div.extendify-onboarding .sm\:pt-5{padding-top:1.25rem!important}}@media (min-width:782px){div.extendify-onboarding .md\:m-0{margin:0!important}div.extendify-onboarding .md\:-ml-8{margin-left:-2rem!important}div.extendify-onboarding .md\:block{display:block!important}div.extendify-onboarding .md\:flex{display:flex!important}div.extendify-onboarding .md\:hidden{display:none!important}div.extendify-onboarding .md\:h-screen{height:100vh!important}div.extendify-onboarding .md\:w-40vw{width:40vw!important}div.extendify-onboarding .md\:max-w-md{max-width:28rem!important}div.extendify-onboarding .md\:max-w-2xl{max-width:42rem!important}div.extendify-onboarding .md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}div.extendify-onboarding .md\:flex-row{flex-direction:row!important}div.extendify-onboarding .md\:gap-8{gap:2rem!important}div.extendify-onboarding .md\:space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(2rem*var(--tw-space-y-reverse))!important;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .md\:overflow-hidden{overflow:hidden!important}div.extendify-onboarding .md\:overflow-y-scroll{overflow-y:scroll!important}div.extendify-onboarding .md\:p-8{padding:2rem!important}div.extendify-onboarding .md\:px-8{padding-left:2rem!important;padding-right:2rem!important}div.extendify-onboarding .md\:pl-8{padding-left:2rem!important}}@media (min-width:1080px){div.extendify-onboarding .lg\:absolute{position:absolute!important}div.extendify-onboarding .lg\:-mr-1{margin-right:-.25rem!important}div.extendify-onboarding .lg\:block{display:block!important}div.extendify-onboarding .lg\:flex{display:flex!important}div.extendify-onboarding .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify-onboarding .lg\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(2rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .lg\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(0px*var(--tw-space-y-reverse))!important;margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .lg\:overflow-hidden{overflow:hidden!important}div.extendify-onboarding .lg\:p-16{padding:4rem!important}div.extendify-onboarding .lg\:px-12{padding-left:3rem!important;padding-right:3rem!important}}
1
+ div.extendify-onboarding .sr-only{clip:rect(0,0,0,0)!important;border-width:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}div.extendify-onboarding .focus\:not-sr-only:focus{clip:auto!important;height:auto!important;margin:0!important;overflow:visible!important;padding:0!important;position:static!important;white-space:normal!important;width:auto!important}div.extendify-onboarding .pointer-events-none{pointer-events:none!important}div.extendify-onboarding .invisible{visibility:hidden!important}div.extendify-onboarding .group:focus .group-focus\:visible,div.extendify-onboarding .group:hover .group-hover\:visible{visibility:visible!important}div.extendify-onboarding .static{position:static!important}div.extendify-onboarding .fixed{position:fixed!important}div.extendify-onboarding .absolute{position:absolute!important}div.extendify-onboarding .relative{position:relative!important}div.extendify-onboarding .sticky{position:-webkit-sticky!important;position:sticky!important}div.extendify-onboarding .inset-0{bottom:0!important;left:0!important;right:0!important;top:0!important}div.extendify-onboarding .top-0{top:0!important}div.extendify-onboarding .top-2{top:.5rem!important}div.extendify-onboarding .top-4{top:1rem!important}div.extendify-onboarding .-top-1\/4{top:-25%!important}div.extendify-onboarding .right-0{right:0!important}div.extendify-onboarding .right-1{right:.25rem!important}div.extendify-onboarding .right-2{right:.5rem!important}div.extendify-onboarding .right-3{right:.75rem!important}div.extendify-onboarding .right-4{right:1rem!important}div.extendify-onboarding .right-2\.5{right:.625rem!important}div.extendify-onboarding .bottom-0{bottom:0!important}div.extendify-onboarding .bottom-4{bottom:1rem!important}div.extendify-onboarding .-bottom-2{bottom:-.5rem!important}div.extendify-onboarding .left-0{left:0!important}div.extendify-onboarding .left-3\/4{left:75%!important}div.extendify-onboarding .group:hover .group-hover\:-top-2{top:-.5rem!important}div.extendify-onboarding .group:hover .group-hover\:-top-2\.5{top:-.625rem!important}div.extendify-onboarding .group:focus .group-focus\:-top-2{top:-.5rem!important}div.extendify-onboarding .group:focus .group-focus\:-top-2\.5{top:-.625rem!important}div.extendify-onboarding .z-10{z-index:10!important}div.extendify-onboarding .z-20{z-index:20!important}div.extendify-onboarding .z-30{z-index:30!important}div.extendify-onboarding .z-40{z-index:40!important}div.extendify-onboarding .z-50{z-index:50!important}div.extendify-onboarding .z-high{z-index:99999!important}div.extendify-onboarding .z-max{z-index:2147483647!important}div.extendify-onboarding .m-0{margin:0!important}div.extendify-onboarding .m-3{margin:.75rem!important}div.extendify-onboarding .m-8{margin:2rem!important}div.extendify-onboarding .m-auto{margin:auto!important}div.extendify-onboarding .-m-2{margin:-.5rem!important}div.extendify-onboarding .-m-px{margin:-1px!important}div.extendify-onboarding .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}div.extendify-onboarding .mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}div.extendify-onboarding .mx-auto{margin-left:auto!important;margin-right:auto!important}div.extendify-onboarding .-mx-4{margin-left:-1rem!important;margin-right:-1rem!important}div.extendify-onboarding .-mx-6{margin-left:-1.5rem!important;margin-right:-1.5rem!important}div.extendify-onboarding .my-0{margin-bottom:0!important;margin-top:0!important}div.extendify-onboarding .my-px{margin-bottom:1px!important;margin-top:1px!important}div.extendify-onboarding .mt-0{margin-top:0!important}div.extendify-onboarding .mt-2{margin-top:.5rem!important}div.extendify-onboarding .mt-4{margin-top:1rem!important}div.extendify-onboarding .mt-8{margin-top:2rem!important}div.extendify-onboarding .mt-20{margin-top:5rem!important}div.extendify-onboarding .mt-px{margin-top:1px!important}div.extendify-onboarding .mt-0\.5{margin-top:.125rem!important}div.extendify-onboarding .-mt-2{margin-top:-.5rem!important}div.extendify-onboarding .-mt-5{margin-top:-1.25rem!important}div.extendify-onboarding .mr-1{margin-right:.25rem!important}div.extendify-onboarding .mr-2{margin-right:.5rem!important}div.extendify-onboarding .mr-3{margin-right:.75rem!important}div.extendify-onboarding .mr-6{margin-right:1.5rem!important}div.extendify-onboarding .-mr-1{margin-right:-.25rem!important}div.extendify-onboarding .-mr-1\.5{margin-right:-.375rem!important}div.extendify-onboarding .mb-0{margin-bottom:0!important}div.extendify-onboarding .mb-1{margin-bottom:.25rem!important}div.extendify-onboarding .mb-2{margin-bottom:.5rem!important}div.extendify-onboarding .mb-4{margin-bottom:1rem!important}div.extendify-onboarding .mb-5{margin-bottom:1.25rem!important}div.extendify-onboarding .mb-8{margin-bottom:2rem!important}div.extendify-onboarding .mb-10{margin-bottom:2.5rem!important}div.extendify-onboarding .mb-12{margin-bottom:3rem!important}div.extendify-onboarding .ml-1{margin-left:.25rem!important}div.extendify-onboarding .ml-2{margin-left:.5rem!important}div.extendify-onboarding .ml-4{margin-left:1rem!important}div.extendify-onboarding .ml-12{margin-left:3rem!important}div.extendify-onboarding .-ml-1{margin-left:-.25rem!important}div.extendify-onboarding .-ml-2{margin-left:-.5rem!important}div.extendify-onboarding .-ml-6{margin-left:-1.5rem!important}div.extendify-onboarding .-ml-px{margin-left:-1px!important}div.extendify-onboarding .-ml-1\.5{margin-left:-.375rem!important}div.extendify-onboarding .block{display:block!important}div.extendify-onboarding .inline-block{display:inline-block!important}div.extendify-onboarding .flex{display:flex!important}div.extendify-onboarding .inline-flex{display:inline-flex!important}div.extendify-onboarding .table{display:table!important}div.extendify-onboarding .grid{display:grid!important}div.extendify-onboarding .hidden{display:none!important}div.extendify-onboarding .h-0{height:0!important}div.extendify-onboarding .h-2{height:.5rem!important}div.extendify-onboarding .h-4{height:1rem!important}div.extendify-onboarding .h-5{height:1.25rem!important}div.extendify-onboarding .h-6{height:1.5rem!important}div.extendify-onboarding .h-8{height:2rem!important}div.extendify-onboarding .h-12{height:3rem!important}div.extendify-onboarding .h-32{height:8rem!important}div.extendify-onboarding .h-64{height:16rem!important}div.extendify-onboarding .h-auto{height:auto!important}div.extendify-onboarding .h-full{height:100%!important}div.extendify-onboarding .h-screen{height:100vh!important}div.extendify-onboarding .max-h-96{max-height:24rem!important}div.extendify-onboarding .min-h-48{min-height:12rem!important}div.extendify-onboarding .min-h-screen{min-height:100vh!important}div.extendify-onboarding .w-0{width:0!important}div.extendify-onboarding .w-4{width:1rem!important}div.extendify-onboarding .w-5{width:1.25rem!important}div.extendify-onboarding .w-6{width:1.5rem!important}div.extendify-onboarding .w-8{width:2rem!important}div.extendify-onboarding .w-10{width:2.5rem!important}div.extendify-onboarding .w-16{width:4rem!important}div.extendify-onboarding .w-28{width:7rem!important}div.extendify-onboarding .w-32{width:8rem!important}div.extendify-onboarding .w-72{width:18rem!important}div.extendify-onboarding .w-80{width:20rem!important}div.extendify-onboarding .w-96{width:24rem!important}div.extendify-onboarding .w-auto{width:auto!important}div.extendify-onboarding .w-6\/12{width:50%!important}div.extendify-onboarding .w-7\/12{width:58.333333%!important}div.extendify-onboarding .w-full{width:100%!important}div.extendify-onboarding .w-screen{width:100vw!important}div.extendify-onboarding .min-w-0{min-width:0!important}div.extendify-onboarding .min-w-sm{min-width:7rem!important}div.extendify-onboarding .max-w-sm{max-width:24rem!important}div.extendify-onboarding .max-w-md{max-width:28rem!important}div.extendify-onboarding .max-w-lg{max-width:32rem!important}div.extendify-onboarding .max-w-xl{max-width:36rem!important}div.extendify-onboarding .max-w-2xl{max-width:42rem!important}div.extendify-onboarding .max-w-4xl{max-width:56rem!important}div.extendify-onboarding .max-w-full{max-width:100%!important}div.extendify-onboarding .max-w-screen-4xl{max-width:1920px!important}div.extendify-onboarding .flex-1{flex:1 1 0%!important}div.extendify-onboarding .flex-shrink-0{flex-shrink:0!important}div.extendify-onboarding .flex-grow-0{flex-grow:0!important}div.extendify-onboarding .flex-grow{flex-grow:1!important}div.extendify-onboarding .transform{--tw-translate-x:0!important;--tw-translate-y:0!important;--tw-rotate:0!important;--tw-skew-x:0!important;--tw-skew-y:0!important;--tw-scale-x:1!important;--tw-scale-y:1!important;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}div.extendify-onboarding .-translate-x-1{--tw-translate-x:-0.25rem!important}div.extendify-onboarding .translate-y-0{--tw-translate-y:0px!important}div.extendify-onboarding .translate-y-4{--tw-translate-y:1rem!important}div.extendify-onboarding .-translate-y-px{--tw-translate-y:-1px!important}div.extendify-onboarding .-translate-y-full{--tw-translate-y:-100%!important}div.extendify-onboarding .rotate-90{--tw-rotate:90deg!important}div.extendify-onboarding .cursor-pointer{cursor:pointer!important}div.extendify-onboarding .grid-cols-3-minmax-300px-1fr{grid-template-columns:repeat(3,minmax(300px,1fr))!important}div.extendify-onboarding .flex-col{flex-direction:column!important}div.extendify-onboarding .flex-wrap{flex-wrap:wrap!important}div.extendify-onboarding .items-start{align-items:flex-start!important}div.extendify-onboarding .items-end{align-items:flex-end!important}div.extendify-onboarding .items-center{align-items:center!important}div.extendify-onboarding .justify-end{justify-content:flex-end!important}div.extendify-onboarding .justify-center{justify-content:center!important}div.extendify-onboarding .justify-between{justify-content:space-between!important}div.extendify-onboarding .justify-evenly{justify-content:space-evenly!important}div.extendify-onboarding .gap-4{gap:1rem!important}div.extendify-onboarding .gap-6{gap:1.5rem!important}div.extendify-onboarding .gap-x-4{-moz-column-gap:1rem!important;column-gap:1rem!important}div.extendify-onboarding .gap-y-1{row-gap:.25rem!important}div.extendify-onboarding .gap-y-3{row-gap:.75rem!important}div.extendify-onboarding .space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(0px*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.25rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.5rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.75rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(1rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-0\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.125rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1rem*var(--tw-space-y-reverse))!important;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(2rem*var(--tw-space-y-reverse))!important;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0!important;border-bottom-width:calc(1px*var(--tw-divide-y-reverse))!important;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))!important}div.extendify-onboarding .self-start{align-self:flex-start!important}div.extendify-onboarding .overflow-hidden{overflow:hidden!important}div.extendify-onboarding .overflow-y-auto{overflow-y:auto!important}div.extendify-onboarding .overflow-x-hidden{overflow-x:hidden!important}div.extendify-onboarding .overflow-y-scroll{overflow-y:scroll!important}div.extendify-onboarding .whitespace-nowrap{white-space:nowrap!important}div.extendify-onboarding .rounded-none{border-radius:0!important}div.extendify-onboarding .rounded-sm{border-radius:.125rem!important}div.extendify-onboarding .rounded{border-radius:.25rem!important}div.extendify-onboarding .rounded-md{border-radius:.375rem!important}div.extendify-onboarding .rounded-lg{border-radius:.5rem!important}div.extendify-onboarding .rounded-full{border-radius:9999px!important}div.extendify-onboarding .rounded-tr-sm{border-top-right-radius:.125rem!important}div.extendify-onboarding .rounded-br-sm{border-bottom-right-radius:.125rem!important}div.extendify-onboarding .border-0{border-width:0!important}div.extendify-onboarding .border-2{border-width:2px!important}div.extendify-onboarding .border-8{border-width:8px!important}div.extendify-onboarding .border{border-width:1px!important}div.extendify-onboarding .border-t{border-top-width:1px!important}div.extendify-onboarding .border-r{border-right-width:1px!important}div.extendify-onboarding .border-b-0{border-bottom-width:0!important}div.extendify-onboarding .border-b{border-bottom-width:1px!important}div.extendify-onboarding .border-l-8{border-left-width:8px!important}div.extendify-onboarding .border-solid{border-style:solid!important}div.extendify-onboarding .border-none{border-style:none!important}div.extendify-onboarding .border-transparent{border-color:transparent!important}div.extendify-onboarding .border-black{--tw-border-opacity:1!important;border-color:rgba(0,0,0,var(--tw-border-opacity))!important}div.extendify-onboarding .border-white{--tw-border-opacity:1!important;border-color:rgba(255,255,255,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-100{--tw-border-opacity:1!important;border-color:rgba(240,240,240,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-200{--tw-border-opacity:1!important;border-color:rgba(224,224,224,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-700{--tw-border-opacity:1!important;border-color:rgba(117,117,117,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-800{--tw-border-opacity:1!important;border-color:rgba(31,41,55,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-900{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important}div.extendify-onboarding .border-partner-primary-bg{border-color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}div.extendify-onboarding .border-extendify-main{--tw-border-opacity:1!important;border-color:rgba(11,74,67,var(--tw-border-opacity))!important}div.extendify-onboarding .border-extendify-secondary{--tw-border-opacity:1!important;border-color:rgba(203,195,245,var(--tw-border-opacity))!important}div.extendify-onboarding .border-extendify-transparent-black-100{border-color:rgba(0,0,0,.07)!important}div.extendify-onboarding .border-wp-alert-red{--tw-border-opacity:1!important;border-color:rgba(204,24,24,var(--tw-border-opacity))!important}div.extendify-onboarding .focus\:border-transparent:focus{border-color:transparent!important}div.extendify-onboarding .bg-transparent{background-color:transparent!important}div.extendify-onboarding .bg-black{--tw-bg-opacity:1!important;background-color:rgba(0,0,0,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-white{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-50{--tw-bg-opacity:1!important;background-color:rgba(251,251,251,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-100{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-200{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-700{--tw-bg-opacity:1!important;background-color:rgba(117,117,117,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-partner-primary-bg{background-color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}div.extendify-onboarding .bg-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-extendify-alert{--tw-bg-opacity:1!important;background-color:rgba(132,16,16,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-extendify-secondary{--tw-bg-opacity:1!important;background-color:rgba(203,195,245,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-extendify-transparent-white{background-color:hsla(0,0%,99%,.88)!important}div.extendify-onboarding .bg-wp-theme-500{background-color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-onboarding .group:hover .group-hover\:bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-onboarding .hover\:bg-gray-100:hover{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify-onboarding .hover\:bg-partner-primary-bg:hover{background-color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}div.extendify-onboarding .hover\:bg-extendify-main-dark:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}div.extendify-onboarding .hover\:bg-wp-theme-600:hover{background-color:var(--wp-admin-theme-color-darker-10,#006ba1)!important}div.extendify-onboarding .focus\:bg-white:focus{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify-onboarding .focus\:bg-gray-100:focus{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify-onboarding .active\:bg-gray-900:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-opacity-40{--tw-bg-opacity:0.4!important}div.extendify-onboarding .bg-gradient-to-l{background-image:linear-gradient(to left,var(--tw-gradient-stops))!important}div.extendify-onboarding .from-white{--tw-gradient-from:#fff!important;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,hsla(0,0%,100%,0))!important}div.extendify-onboarding .bg-cover{background-size:cover!important}div.extendify-onboarding .bg-clip-padding{background-clip:padding-box!important}div.extendify-onboarding .fill-current{fill:currentColor!important}div.extendify-onboarding .stroke-current{stroke:currentColor!important}div.extendify-onboarding .p-0{padding:0!important}div.extendify-onboarding .p-1{padding:.25rem!important}div.extendify-onboarding .p-2{padding:.5rem!important}div.extendify-onboarding .p-3{padding:.75rem!important}div.extendify-onboarding .p-4{padding:1rem!important}div.extendify-onboarding .p-6{padding:1.5rem!important}div.extendify-onboarding .p-8{padding:2rem!important}div.extendify-onboarding .p-10{padding:2.5rem!important}div.extendify-onboarding .p-12{padding:3rem!important}div.extendify-onboarding .p-0\.5{padding:.125rem!important}div.extendify-onboarding .p-1\.5{padding:.375rem!important}div.extendify-onboarding .p-3\.5{padding:.875rem!important}div.extendify-onboarding .px-0{padding-left:0!important;padding-right:0!important}div.extendify-onboarding .px-1{padding-left:.25rem!important;padding-right:.25rem!important}div.extendify-onboarding .px-2{padding-left:.5rem!important;padding-right:.5rem!important}div.extendify-onboarding .px-3{padding-left:.75rem!important;padding-right:.75rem!important}div.extendify-onboarding .px-4{padding-left:1rem!important;padding-right:1rem!important}div.extendify-onboarding .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}div.extendify-onboarding .px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}div.extendify-onboarding .px-8{padding-left:2rem!important;padding-right:2rem!important}div.extendify-onboarding .px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}div.extendify-onboarding .px-0\.5{padding-left:.125rem!important;padding-right:.125rem!important}div.extendify-onboarding .px-2\.5{padding-left:.625rem!important;padding-right:.625rem!important}div.extendify-onboarding .py-0{padding-bottom:0!important;padding-top:0!important}div.extendify-onboarding .py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}div.extendify-onboarding .py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}div.extendify-onboarding .py-3{padding-bottom:.75rem!important;padding-top:.75rem!important}div.extendify-onboarding .py-4{padding-bottom:1rem!important;padding-top:1rem!important}div.extendify-onboarding .py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}div.extendify-onboarding .py-12{padding-bottom:3rem!important;padding-top:3rem!important}div.extendify-onboarding .py-2\.5{padding-bottom:.625rem!important;padding-top:.625rem!important}div.extendify-onboarding .pt-0{padding-top:0!important}div.extendify-onboarding .pt-1{padding-top:.25rem!important}div.extendify-onboarding .pt-2{padding-top:.5rem!important}div.extendify-onboarding .pt-4{padding-top:1rem!important}div.extendify-onboarding .pt-6{padding-top:1.5rem!important}div.extendify-onboarding .pt-px{padding-top:1px!important}div.extendify-onboarding .pt-0\.5{padding-top:.125rem!important}div.extendify-onboarding .pr-3{padding-right:.75rem!important}div.extendify-onboarding .pr-8{padding-right:2rem!important}div.extendify-onboarding .pb-2{padding-bottom:.5rem!important}div.extendify-onboarding .pb-3{padding-bottom:.75rem!important}div.extendify-onboarding .pb-8{padding-bottom:2rem!important}div.extendify-onboarding .pb-20{padding-bottom:5rem!important}div.extendify-onboarding .pb-36{padding-bottom:9rem!important}div.extendify-onboarding .pb-40{padding-bottom:10rem!important}div.extendify-onboarding .pl-0{padding-left:0!important}div.extendify-onboarding .pl-2{padding-left:.5rem!important}div.extendify-onboarding .pl-4{padding-left:1rem!important}div.extendify-onboarding .pl-6{padding-left:1.5rem!important}div.extendify-onboarding .text-left{text-align:left!important}div.extendify-onboarding .text-center{text-align:center!important}div.extendify-onboarding .align-middle{vertical-align:middle!important}div.extendify-onboarding .text-xs{font-size:.75rem!important;line-height:1rem!important}div.extendify-onboarding .text-sm{font-size:.875rem!important;line-height:1.25rem!important}div.extendify-onboarding .text-base{font-size:1rem!important;line-height:1.5rem!important}div.extendify-onboarding .text-lg{font-size:1.125rem!important;line-height:1.75rem!important}div.extendify-onboarding .text-xl{font-size:1.25rem!important;line-height:1.75rem!important}div.extendify-onboarding .text-3xl{font-size:2rem!important;line-height:2.5rem!important}div.extendify-onboarding .text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}div.extendify-onboarding .font-light{font-weight:300!important}div.extendify-onboarding .font-normal{font-weight:400!important}div.extendify-onboarding .font-medium{font-weight:500!important}div.extendify-onboarding .font-semibold{font-weight:600!important}div.extendify-onboarding .font-bold{font-weight:700!important}div.extendify-onboarding .uppercase{text-transform:uppercase!important}div.extendify-onboarding .italic{font-style:italic!important}div.extendify-onboarding .leading-none{line-height:1!important}div.extendify-onboarding .tracking-tight{letter-spacing:-.025em!important}div.extendify-onboarding .text-black{--tw-text-opacity:1!important;color:rgba(0,0,0,var(--tw-text-opacity))!important}div.extendify-onboarding .text-white{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-500{--tw-text-opacity:1!important;color:rgba(204,204,204,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-700{--tw-text-opacity:1!important;color:rgba(117,117,117,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-800{--tw-text-opacity:1!important;color:rgba(31,41,55,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-900{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify-onboarding .text-green-500{--tw-text-opacity:1!important;color:rgba(16,185,129,var(--tw-text-opacity))!important}div.extendify-onboarding .text-partner-primary-text{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify-onboarding .text-partner-primary-bg{color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}div.extendify-onboarding .text-extendify-main{--tw-text-opacity:1!important;color:rgba(11,74,67,var(--tw-text-opacity))!important}div.extendify-onboarding .text-extendify-main-dark{--tw-text-opacity:1!important;color:rgba(5,49,44,var(--tw-text-opacity))!important}div.extendify-onboarding .text-extendify-gray{--tw-text-opacity:1!important;color:rgba(95,95,95,var(--tw-text-opacity))!important}div.extendify-onboarding .text-extendify-black{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify-onboarding .text-wp-theme-500{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-onboarding .text-wp-alert-red{--tw-text-opacity:1!important;color:rgba(204,24,24,var(--tw-text-opacity))!important}div.extendify-onboarding .group:hover .group-hover\:text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify-onboarding .focus-within\:text-partner-primary-bg:focus-within{color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}div.extendify-onboarding .hover\:text-white:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-onboarding .hover\:text-partner-primary-text:hover{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify-onboarding .hover\:text-partner-primary-bg:hover{color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}div.extendify-onboarding .hover\:text-wp-theme-500:hover{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-onboarding .focus\:text-white:focus{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-onboarding .focus\:text-blue-500:focus{--tw-text-opacity:1!important;color:rgba(59,130,246,var(--tw-text-opacity))!important}div.extendify-onboarding .focus\:text-partner-primary-bg:focus{color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}div.extendify-onboarding .underline{text-decoration:underline!important}div.extendify-onboarding .line-through{text-decoration:line-through!important}div.extendify-onboarding .no-underline{text-decoration:none!important}div.extendify-onboarding .hover\:underline:hover{text-decoration:underline!important}div.extendify-onboarding .hover\:no-underline:hover{text-decoration:none!important}div.extendify-onboarding .opacity-0{opacity:0!important}div.extendify-onboarding .opacity-30{opacity:.3!important}div.extendify-onboarding .opacity-50{opacity:.5!important}div.extendify-onboarding .opacity-60{opacity:.6!important}div.extendify-onboarding .opacity-70{opacity:.7!important}div.extendify-onboarding .opacity-75{opacity:.75!important}div.extendify-onboarding .focus\:opacity-100:focus,div.extendify-onboarding .group:focus .group-focus\:opacity-100,div.extendify-onboarding .group:hover .group-hover\:opacity-100,div.extendify-onboarding .hover\:opacity-100:hover,div.extendify-onboarding .opacity-100{opacity:1!important}div.extendify-onboarding .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05)!important}div.extendify-onboarding .shadow-md,div.extendify-onboarding .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-onboarding .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06)!important}div.extendify-onboarding .shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25)!important}div.extendify-onboarding .shadow-2xl,div.extendify-onboarding .shadow-modal{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-onboarding .shadow-modal{--tw-shadow:0 0 0 1px rgba(0,0,0,.1),0 3px 15px -3px rgba(0,0,0,.035),0 0 1px rgba(0,0,0,.05)!important}div.extendify-onboarding .focus\:shadow-none:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-onboarding .focus\:outline-none:focus,div.extendify-onboarding .outline-none{outline:2px solid transparent!important;outline-offset:2px!important}div.extendify-onboarding .focus\:ring-wp:focus,div.extendify-onboarding .ring-wp{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}div.extendify-onboarding .ring-partner-primary-bg{--tw-ring-color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}div.extendify-onboarding .ring-offset-0{--tw-ring-offset-width:0px!important}div.extendify-onboarding .ring-offset-2{--tw-ring-offset-width:2px!important}div.extendify-onboarding .ring-offset-white{--tw-ring-offset-color:#fff!important}div.extendify-onboarding .filter{--tw-blur:var(--tw-empty,/*!*/ /*!*/)!important;--tw-brightness:var(--tw-empty,/*!*/ /*!*/)!important;--tw-contrast:var(--tw-empty,/*!*/ /*!*/)!important;--tw-grayscale:var(--tw-empty,/*!*/ /*!*/)!important;--tw-hue-rotate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-invert:var(--tw-empty,/*!*/ /*!*/)!important;--tw-saturate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-sepia:var(--tw-empty,/*!*/ /*!*/)!important;--tw-drop-shadow:var(--tw-empty,/*!*/ /*!*/)!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}div.extendify-onboarding .blur{--tw-blur:blur(8px)!important}div.extendify-onboarding .invert{--tw-invert:invert(100%)!important}div.extendify-onboarding .backdrop-filter{--tw-backdrop-blur:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-brightness:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-contrast:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-grayscale:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-hue-rotate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-invert:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-opacity:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-saturate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-sepia:var(--tw-empty,/*!*/ /*!*/)!important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}div.extendify-onboarding .backdrop-blur-xl{--tw-backdrop-blur:blur(24px)!important}div.extendify-onboarding .backdrop-saturate-200{--tw-backdrop-saturate:saturate(2)!important}div.extendify-onboarding .transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-onboarding .transition{transition-duration:.15s!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-onboarding .transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-onboarding .delay-200{transition-delay:.2s!important}div.extendify-onboarding .duration-100{transition-duration:.1s!important}div.extendify-onboarding .duration-200{transition-duration:.2s!important}div.extendify-onboarding .duration-300{transition-duration:.3s!important}div.extendify-onboarding .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}div.extendify-onboarding .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.extendify-onboarding{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/)!important;--tw-ring-offset-width:0px!important;--tw-ring-offset-color:transparent!important;--tw-ring-color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}.extendify-onboarding *,.extendify-onboarding :after,.extendify-onboarding :before{border:0 solid #e5e7eb!important;box-sizing:border-box!important}.extendify-onboarding{-webkit-font-smoothing:antialiased!important}.extendify-onboarding .search-panel input[type=text]::-moz-placeholder{font-size:.875rem!important;line-height:1.25rem!important}.extendify-onboarding .search-panel input[type=text]:-ms-input-placeholder{font-size:.875rem!important;line-height:1.25rem!important}.extendify-onboarding .search-panel input[type=text]::placeholder{font-size:.875rem!important;line-height:1.25rem!important}.extendify-onboarding .search-panel .icon-search{position:absolute!important;right:16px!important}.extendify-onboarding .button-focus{background-color:transparent!important;border-radius:.5rem!important;cursor:pointer!important;font-size:1rem!important;line-height:1.5rem!important;text-align:center!important;text-decoration:none!important}.extendify-onboarding .button-focus:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify-onboarding .button-focus{outline:2px solid transparent!important;outline-offset:2px!important}.extendify-onboarding .button-focus:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.extendify-onboarding .button-focus{--tw-ring-color:var(--ext-partner-theme-primary-bg,#3e58e1)!important;--tw-ring-offset-width:2px!important;--tw-ring-offset-color:#fff!important}.extendify-onboarding .input-focus{border-radius:.5rem!important;font-size:1rem!important;line-height:1.5rem!important}.extendify-onboarding .input-focus:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify-onboarding .input-focus{outline:2px solid transparent!important;outline-offset:2px!important}.extendify-onboarding .input-focus:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.extendify-onboarding .input-focus{--tw-ring-color:var(--ext-partner-theme-primary-bg,#3e58e1)!important;--tw-ring-offset-width:2px!important;--tw-ring-offset-color:#fff!important}.extendify-onboarding .button-card{border-width:1px!important;display:block!important;flex:1 1 0%!important;margin:0!important;overflow:hidden!important;padding:1rem!important}.extendify-onboarding .preview-container .block-editor-block-preview__content{max-height:none!important}.extendify-onboarding .spin{-webkit-animation:extendify-loading-spinner 2.5s linear infinite;animation:extendify-loading-spinner 2.5s linear infinite}@-webkit-keyframes extendify-loading-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes extendify-loading-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.extendify-onboarding input[type=checkbox]{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important;border-width:1px!important}.extendify-onboarding input[type=checkbox]:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-color:var(--ext-partner-theme-primary-bg,#3e58e1)!important;--tw-ring-offset-width:2px!important;--tw-ring-offset-color:#fff!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important;outline:2px solid transparent!important;outline-offset:2px!important}.extendify-onboarding input[type=checkbox]:checked{background-color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}.extendify-onboarding input[type=checkbox]:checked:before{content:""!important}.extendify-onboarding .goal-select .components-base-control__field{margin-bottom:0!important}@media (min-width:480px){div.extendify-onboarding .xs\:inline{display:inline!important}div.extendify-onboarding .xs\:h-9{height:2.25rem!important}div.extendify-onboarding .xs\:pr-3{padding-right:.75rem!important}div.extendify-onboarding .xs\:pl-2{padding-left:.5rem!important}}@media (min-width:600px){div.extendify-onboarding .sm\:mx-0{margin-left:0!important;margin-right:0!important}div.extendify-onboarding .sm\:mt-0{margin-top:0!important}div.extendify-onboarding .sm\:mb-8{margin-bottom:2rem!important}div.extendify-onboarding .sm\:ml-2{margin-left:.5rem!important}div.extendify-onboarding .sm\:block{display:block!important}div.extendify-onboarding .sm\:flex{display:flex!important}div.extendify-onboarding .sm\:h-auto{height:auto!important}div.extendify-onboarding .sm\:w-72{width:18rem!important}div.extendify-onboarding .sm\:w-auto{width:auto!important}div.extendify-onboarding .sm\:translate-y-5{--tw-translate-y:1.25rem!important}div.extendify-onboarding .sm\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .sm\:p-0{padding:0!important}div.extendify-onboarding .sm\:py-0{padding-bottom:0!important;padding-top:0!important}div.extendify-onboarding .sm\:pt-0{padding-top:0!important}div.extendify-onboarding .sm\:pt-5{padding-top:1.25rem!important}}@media (min-width:782px){div.extendify-onboarding .md\:m-0{margin:0!important}div.extendify-onboarding .md\:-ml-8{margin-left:-2rem!important}div.extendify-onboarding .md\:block{display:block!important}div.extendify-onboarding .md\:flex{display:flex!important}div.extendify-onboarding .md\:hidden{display:none!important}div.extendify-onboarding .md\:h-screen{height:100vh!important}div.extendify-onboarding .md\:w-40vw{width:40vw!important}div.extendify-onboarding .md\:max-w-md{max-width:28rem!important}div.extendify-onboarding .md\:max-w-2xl{max-width:42rem!important}div.extendify-onboarding .md\:flex-row{flex-direction:row!important}div.extendify-onboarding .md\:gap-8{gap:2rem!important}div.extendify-onboarding .md\:space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(2rem*var(--tw-space-y-reverse))!important;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .md\:overflow-hidden{overflow:hidden!important}div.extendify-onboarding .md\:overflow-y-scroll{overflow-y:scroll!important}div.extendify-onboarding .md\:p-8{padding:2rem!important}div.extendify-onboarding .md\:px-8{padding-left:2rem!important;padding-right:2rem!important}div.extendify-onboarding .md\:pl-8{padding-left:2rem!important}}@media (min-width:1080px){div.extendify-onboarding .lg\:absolute{position:absolute!important}div.extendify-onboarding .lg\:-mr-1{margin-right:-.25rem!important}div.extendify-onboarding .lg\:block{display:block!important}div.extendify-onboarding .lg\:flex{display:flex!important}div.extendify-onboarding .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify-onboarding .lg\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(2rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .lg\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(0px*var(--tw-space-y-reverse))!important;margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .lg\:overflow-hidden{overflow:hidden!important}div.extendify-onboarding .lg\:p-16{padding:4rem!important}div.extendify-onboarding .lg\:px-12{padding-left:3rem!important;padding-right:3rem!important}}@media (min-width:1280px){div.extendify-onboarding .xl\:grid{display:grid!important}}
extendify-sdk/public/build/extendify-onboarding.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! For license information please see extendify-onboarding.js.LICENSE.txt */
2
- (()=>{var e={7135:(e,t,r)=>{e.exports=r(6248)},4206:(e,t,r)=>{e.exports=r(8057)},4387:(e,t,r)=>{"use strict";var n=r(7485),o=r(4570),i=r(2940),a=r(581),s=r(574),u=r(3845),c=r(8338),l=r(4832),f=r(7354),d=r(8870),h=r(4906);e.exports=function(e){return new Promise((function(t,r){var p,y=e.data,v=e.headers,m=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}n.isFormData(y)&&n.isStandardBrowserEnv()&&delete v["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(w+":"+x)}var j=s(e.baseURL,e.url);function O(){if(b){var n="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};o((function(e){t(e),g()}),(function(e){r(e),g()}),i),b=null}}if(b.open(e.method.toUpperCase(),a(j,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=O:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(O)},b.onabort=function(){b&&(r(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new f(t,n.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},n.isStandardBrowserEnv()){var E=(e.withCredentials||c(j))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(v[e.xsrfHeaderName]=E)}"setRequestHeader"in b&&n.forEach(v,(function(e,t){void 0===y&&"content-type"===t.toLowerCase()?delete v[t]:b.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),m&&"json"!==m&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(r(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),y||(y=null);var S=h(j);S&&-1===["http","https","file"].indexOf(S)?r(new f("Unsupported protocol "+S+":",f.ERR_BAD_REQUEST,e)):b.send(y)}))}},8057:(e,t,r)=>{"use strict";var n=r(7485),o=r(875),i=r(5029),a=r(4941);var s=function e(t){var r=new i(t),s=o(i.prototype.request,r);return n.extend(s,i.prototype,r),n.extend(s,r),s.create=function(r){return e(a(t,r))},s}(r(8396));s.Axios=i,s.CanceledError=r(8870),s.CancelToken=r(4603),s.isCancel=r(1475),s.VERSION=r(3345).version,s.toFormData=r(1020),s.AxiosError=r(7354),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=r(5739),s.isAxiosError=r(5835),e.exports=s,e.exports.default=s},4603:(e,t,r)=>{"use strict";var n=r(8870);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},8870:(e,t,r)=>{"use strict";var n=r(7354);function o(e){n.call(this,null==e?"canceled":e,n.ERR_CANCELED),this.name="CanceledError"}r(7485).inherits(o,n,{__CANCEL__:!0}),e.exports=o},1475:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5029:(e,t,r)=>{"use strict";var n=r(7485),o=r(581),i=r(8096),a=r(5009),s=r(4941),u=r(574),c=r(6144),l=c.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,n),f=f.concat(u),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var d=t;n.length;){var h=n.shift(),p=n.shift();try{d=h(d)}catch(e){p(e);break}}try{i=a(d)}catch(e){return Promise.reject(e)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},f.prototype.getUri=function(e){e=s(this.defaults,e);var t=u(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},7354:(e,t,r)=>{"use strict";var n=r(7485);function o(e,t,r,n,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}n.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,r,a,s,u){var c=Object.create(i);return n.toFlatObject(e,c,(function(e){return e!==Error.prototype})),o.call(c,e.message,t,r,a,s),c.name=e.name,u&&Object.assign(c,u),c},e.exports=o},8096:(e,t,r)=>{"use strict";var n=r(7485);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},574:(e,t,r)=>{"use strict";var n=r(2642),o=r(2288);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},5009:(e,t,r)=>{"use strict";var n=r(7485),o=r(9212),i=r(1475),a=r(8396),s=r(8870);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4941:(e,t,r)=>{"use strict";var n=r(7485);e.exports=function(e,t){t=t||{};var r={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(e[r],t[r])}function a(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function s(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(void 0,t[r])}function u(r){return r in t?o(e[r],t[r]):r in e?o(void 0,e[r]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);n.isUndefined(o)&&t!==u||(r[e]=o)})),r}},4570:(e,t,r)=>{"use strict";var n=r(7354);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},9212:(e,t,r)=>{"use strict";var n=r(7485),o=r(8396);e.exports=function(e,t,r){var i=this||o;return n.forEach(r,(function(r){e=r.call(i,e,t)})),e}},8396:(e,t,r)=>{"use strict";var n=r(7061),o=r(7485),i=r(1446),a=r(7354),s=r(4832),u=r(1020),c={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var f,d={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==n&&"[object process]"===Object.prototype.toString.call(n))&&(f=r(4387)),f),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,n=o.isObject(e),a=t&&t["Content-Type"];if((r=o.isFileList(e))||n&&"multipart/form-data"===a){var s=this.env&&this.env.FormData;return u(r?{"files[]":e}:e,s&&new s)}return n||"application/json"===a?(l(t,"application/json"),function(e,t,r){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a.from(e,a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(8750)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){d.headers[e]=o.merge(c)})),e.exports=d},4832:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},3345:e=>{e.exports={version:"0.27.2"}},875:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},581:(e,t,r)=>{"use strict";var n=r(7485);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},2288:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2940:(e,t,r)=>{"use strict";var n=r(7485);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},2642:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5835:(e,t,r)=>{"use strict";var n=r(7485);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},8338:(e,t,r)=>{"use strict";var n=r(7485);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},1446:(e,t,r)=>{"use strict";var n=r(7485);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},8750:e=>{e.exports=null},3845:(e,t,r)=>{"use strict";var n=r(7485),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},4906:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5739:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1020:(e,t,r)=>{"use strict";var n=r(816).Buffer,o=r(7485);e.exports=function(e,t){t=t||new FormData;var r=[];function i(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):n.from(e):e}return function e(n,a){if(o.isPlainObject(n)||o.isArray(n)){if(-1!==r.indexOf(n))throw Error("Circular reference detected in "+a);r.push(n),o.forEach(n,(function(r,n){if(!o.isUndefined(r)){var s,u=a?a+"."+n:n;if(r&&!a&&"object"==typeof r)if(o.endsWith(n,"{}"))r=JSON.stringify(r);else if(o.endsWith(n,"[]")&&(s=o.toArray(r)))return void s.forEach((function(e){!o.isUndefined(e)&&t.append(u,i(e))}));e(r,u)}})),r.pop()}else t.append(a,i(n))}(e),t}},6144:(e,t,r)=>{"use strict";var n=r(3345).version,o=r(7354),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new o(i(n," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),i=n.length;i-- >0;){var a=n[i],s=t[a];if(s){var u=e[a],c=void 0===u||s(u,a,e);if(!0!==c)throw new o("option "+a+" must be "+c,o.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},7485:(e,t,r)=>{"use strict";var n,o=r(875),i=Object.prototype.toString,a=(n=Object.create(null),function(e){var t=i.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var l=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),p=s("File"),y=s("Blob"),v=s("FileList");function m(e){return"[object Function]"===i.call(e)}var g=s("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var w,x=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:u,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||m(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:c,isDate:h,isFile:p,isBlob:y,isFunction:m,isStream:function(e){return f(e)&&m(e.pipe)},isURLSearchParams:g,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:b,merge:function e(){var t={};function r(r,n){d(t[n])&&d(r)?t[n]=e(t[n],r):d(r)?t[n]=e({},r):u(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)b(arguments[n],r);return t},extend:function(e,t,r){return b(t,(function(t,n){e[n]=r&&"function"==typeof t?o(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var n,o,i,a={};t=t||{};do{for(o=(n=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=n[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:x,isFileList:v}},4782:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=u(e),a=i[0],s=i[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),l=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t);1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=16383,s=0,u=n-o;s<u;s+=a)i.push(c(e,s,s+a>u?u:s+a));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},816:(e,t,r)=>{"use strict";var n=r(4782),o=r(8898),i=r(5182);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,r),o=(e=s(e,n)).write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|h(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=s(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function d(e,t){var r=t.length<0?0:0|h(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return N(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,o){var i,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var f=!0,d=0;d<u;d++)if(c(e,i+d)!==c(t,d)){f=!1;break}if(f)return i}return-1}function b(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function w(e,t,r,n){return Y(H(t,e.length-r),e,r,n)}function x(e,t,r,n){return Y(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function j(e,t,r,n){return x(e,t,r,n)}function O(e,t,r,n){return Y(V(t),e,r,n)}function E(e,t,r,n){return Y(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,u,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=P));return r}(n)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==r.g.TYPED_ARRAY_SUPPORT?r.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var a=e[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?_(this,0,e):y.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(n,o),l=e.slice(t,r),f=0;f<s;++f)if(c[f]!==l[f]){i=c[f],a=l[f];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return x(this,e,t,r);case"latin1":case"binary":return j(this,e,t,r);case"base64":return O(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function C(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function N(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function A(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=F(e[i]);return o}function T(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,r,n,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function L(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function I(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function D(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,n,i){return i||D(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,i){return i||D(e,0,r,8),o.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;r=new u(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||k(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||k(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);k(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);k(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=u.isBuffer(e)?e:H(new u(e,n).toString()),s=a.length;for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function V(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}},42:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},8898:(e,t)=>{t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?o-1:0,d=r?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,p=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*y}},5182:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},2525:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,u=o(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))r.call(a,l)&&(u[l]=a[l]);if(t){s=t(a);for(var f=0;f<s.length;f++)n.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},7061:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&d())}function d(){if(!c){var e=a(f);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||c||a(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},1426:(e,t,r)=>{"use strict";r(2525);var n=r(7363),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,i={},c=null,l=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,n)&&!u.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:l,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},4246:(e,t,r)=>{"use strict";e.exports=r(1426)},6248:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=l(e,t,r);if("normal"===u.type){if(n=r.done?p:d,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(e,r,a),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",y={};function v(){}function m(){}function g(){}var b={};u(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&n.call(x,i)&&(b=x);var j=g.prototype=v.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,s){var u=l(e[o],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function S(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:A}}function A(){return{value:t,done:!0}}return m.prototype=g,u(j,"constructor",g),u(g,"constructor",m),m.displayName=u(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,s,"GeneratorFunction")),e.prototype=Object.create(j),e},e.awrap=function(e){return{__await:e}},O(E.prototype),u(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(j),u(j,s,"Generator"),u(j,i,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=N,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},7363:e=>{"use strict";e.exports=React}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=wp.element,t=wp.i18n;var n=r(7363);function o(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function i(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var a,s=function(){},u=s(),c=Object,l=function(e){return e===u},f=function(e){return"function"==typeof e},d=function(e,t){return c.assign({},e,t)},h="undefined",p=function(){return typeof window!=h},y=new WeakMap,v=0,m=function(e){var t,r,n=typeof e,o=e&&e.constructor,i=o==Date;if(c(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=y.get(e))return t;if(t=++v+"~",y.set(e,t),o==Array){for(t="@",r=0;r<e.length;r++)t+=m(e[r])+",";y.set(e,t)}if(o==c){t="#";for(var a=c.keys(e).sort();!l(r=a.pop());)l(e[r])||(t+=r+":"+m(e[r])+",");y.set(e,t)}}return t},g=!0,b=p(),w=typeof document!=h,x=b&&window.addEventListener?window.addEventListener.bind(window):s,j=w?document.addEventListener.bind(document):s,O=b&&window.removeEventListener?window.removeEventListener.bind(window):s,E=w?document.removeEventListener.bind(document):s,S={isOnline:function(){return g},isVisible:function(){var e=w&&document.visibilityState;return l(e)||"hidden"!==e}},_={initFocus:function(e){return j("visibilitychange",e),x("focus",e),function(){E("visibilitychange",e),O("focus",e)}},initReconnect:function(e){var t=function(){g=!0,e()},r=function(){g=!1};return x("online",t),x("offline",r),function(){O("online",t),O("offline",r)}}},P=!p()||"Deno"in window,C=function(e){return p()&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(e):setTimeout(e,1)},N=P?n.useEffect:n.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,T=!P&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),R=function(e){if(f(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?m(e):"",t,e?"$swr$"+e:""]},k=new WeakMap,L=function(e,t,r,n,o,i,a){void 0===a&&(a=!0);var s=k.get(e),u=s[0],c=s[1],l=s[3],f=u[t],d=c[t];if(a&&d)for(var h=0;h<d.length;++h)d[h](r,n,o);return i&&(delete l[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},I=0,D=function(){return++I},M=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(void 0,void 0,void 0,(function(){var t,r,n,o,a,s,c,h,p,y,v,m,g,b,w,x,j,O,E,S,_;return i(this,(function(i){switch(i.label){case 0:if(t=e[0],r=e[1],n=e[2],o=e[3],s=!!l((a="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||a.populateCache,c=!1!==a.revalidate,h=!1!==a.rollbackOnError,p=a.optimisticData,y=R(r),v=y[0],m=y[2],!v)return[2];if(g=k.get(t),b=g[2],e.length<3)return[2,L(t,v,t.get(v),u,u,c,!0)];if(w=n,j=D(),b[v]=[j,0],O=!l(p),E=t.get(v),O&&(S=f(p)?p(E):p,t.set(v,S),L(t,v,S)),f(w))try{w=w(t.get(v))}catch(e){x=e}return w&&f(w.then)?[4,w.catch((function(e){x=e}))]:[3,2];case 1:if(w=i.sent(),j!==b[v][0]){if(x)throw x;return[2,w]}x&&O&&h&&(s=!0,w=E,t.set(v,E)),i.label=2;case 2:return s&&(x||(f(s)&&(w=s(w,E)),t.set(v,w)),t.set(m,d(t.get(m),{error:x}))),b[v][1]=D(),[4,L(t,v,w,x,u,c,!!s)];case 3:if(_=i.sent(),x)throw x;return[2,s?_:w]}}))}))},B=function(e,t){for(var r in e)e[r][0]&&e[r][0](t)},U=function(e,t){if(!k.has(e)){var r=d(_,t),n={},o=M.bind(u,e),i=s;if(k.set(e,[n,{},{},{},o]),!P){var a=r.initFocus(setTimeout.bind(u,B.bind(u,n,0))),c=r.initReconnect(setTimeout.bind(u,B.bind(u,n,1)));i=function(){a&&a(),c&&c(),k.delete(e)}}return[e,o,i]}return[e,k.get(e)[4]]},F=U(new Map),H=F[0],V=F[1],Y=d({onLoadingSlow:s,onSuccess:s,onError:s,onErrorRetry:function(e,t,r,n,o){var i=r.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;!l(i)&&a>i||setTimeout(n,s,o)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:function(e,t){return m(e)==m(t)},isPaused:function(){return!1},cache:H,mutate:V,fallback:{}},S),z=function(e,t){var r=d(e,t);if(t){var n=e.use,o=e.fallback,i=t.use,a=t.fallback;n&&i&&(r.use=n.concat(i)),o&&a&&(r.fallback=d(o,a))}return r},W=(0,n.createContext)({}),q=function(e){return f(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Z=function(){return d(Y,(0,n.useContext)(W))},J=function(e,t,r){var n=t[e]||(t[e]=[]);return n.push(r),function(){var e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}},X={dedupe:!0},$=c.defineProperty((function(e){var t=e.value,r=z((0,n.useContext)(W),t),o=t&&t.provider,i=(0,n.useState)((function(){return o?U(o(r.cache||H),t):u}))[0];return i&&(r.cache=i[0],r.mutate=i[1]),N((function(){return i?i[2]:u}),[]),(0,n.createElement)(W.Provider,d(e,{value:r}))}),"default",{value:Y}),G=(a=function(e,t,r){var a=r.cache,s=r.compare,c=r.fallbackData,h=r.suspense,p=r.revalidateOnMount,y=r.refreshInterval,v=r.refreshWhenHidden,m=r.refreshWhenOffline,g=k.get(a),b=g[0],w=g[1],x=g[2],j=g[3],O=R(e),E=O[0],S=O[1],_=O[2],A=(0,n.useRef)(!1),T=(0,n.useRef)(!1),I=(0,n.useRef)(E),B=(0,n.useRef)(t),U=(0,n.useRef)(r),F=function(){return U.current},H=function(){return F().isVisible()&&F().isOnline()},V=function(e){return a.set(_,d(a.get(_),e))},Y=a.get(E),z=l(c)?r.fallback[E]:c,W=l(Y)?z:Y,q=a.get(_)||{},Z=q.error,$=!A.current,G=function(){return $&&!l(p)?p:!F().isPaused()&&(h?!l(W)&&r.revalidateIfStale:l(W)||r.revalidateIfStale)},K=!(!E||!t)&&(!!q.isValidating||$&&G()),Q=function(e,t){var r=(0,n.useState)({})[1],o=(0,n.useRef)(e),i=(0,n.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,n.useCallback)((function(e){var n=!1,a=o.current;for(var s in e){var u=s;a[u]!==e[u]&&(a[u]=e[u],i.current[u]&&(n=!0))}n&&!t.current&&r({})}),[]);return N((function(){o.current=e})),[o,i.current,a]}({data:W,error:Z,isValidating:K},T),ee=Q[0],te=Q[1],re=Q[2],ne=(0,n.useCallback)((function(e){return o(void 0,void 0,void 0,(function(){var t,n,o,c,d,h,p,y,v,m,g,b,w;return i(this,(function(i){switch(i.label){case 0:if(t=B.current,!E||!t||T.current||F().isPaused())return[2,!1];c=!0,d=e||{},h=!j[E]||!d.dedupe,p=function(){return!T.current&&E===I.current&&A.current},y=function(){var e=j[E];e&&e[1]===o&&delete j[E]},v={isValidating:!1},m=function(){V({isValidating:!1}),p()&&re(v)},V({isValidating:!0}),re({isValidating:!0}),i.label=1;case 1:return i.trys.push([1,3,,4]),h&&(L(a,E,ee.current.data,ee.current.error,!0),r.loadingTimeout&&!a.get(E)&&setTimeout((function(){c&&p()&&F().onLoadingSlow(E,r)}),r.loadingTimeout),j[E]=[t.apply(void 0,S),D()]),w=j[E],n=w[0],o=w[1],[4,n];case 2:return n=i.sent(),h&&setTimeout(y,r.dedupingInterval),j[E]&&j[E][1]===o?(V({error:u}),v.error=u,g=x[E],!l(g)&&(o<=g[0]||o<=g[1]||0===g[1])?(m(),h&&p()&&F().onDiscarded(E),[2,!1]):(s(ee.current.data,n)?v.data=ee.current.data:v.data=n,s(a.get(E),n)||a.set(E,n),h&&p()&&F().onSuccess(n,E,r),[3,4])):(h&&p()&&F().onDiscarded(E),[2,!1]);case 3:return b=i.sent(),y(),F().isPaused()||(V({error:b}),v.error=b,h&&p()&&(F().onError(b,E,r),("boolean"==typeof r.shouldRetryOnError&&r.shouldRetryOnError||f(r.shouldRetryOnError)&&r.shouldRetryOnError(b))&&H()&&F().onErrorRetry(b,E,r,ne,{retryCount:(d.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return c=!1,m(),p()&&h&&L(a,E,v.data,v.error,!1),[2,!0]}}))}))}),[E]),oe=(0,n.useCallback)(M.bind(u,a,(function(){return I.current})),[]);if(N((function(){B.current=t,U.current=r})),N((function(){if(E){var e=E!==I.current,t=ne.bind(u,X),r=0,n=J(E,w,(function(e,t,r){re(d({error:t,isValidating:r},s(ee.current.data,e)?u:{data:e}))})),o=J(E,b,(function(e){if(0==e){var n=Date.now();F().revalidateOnFocus&&n>r&&H()&&(r=n+F().focusThrottleInterval,t())}else if(1==e)F().revalidateOnReconnect&&H()&&t();else if(2==e)return ne()}));return T.current=!1,I.current=E,A.current=!0,e&&re({data:W,error:Z,isValidating:K}),G()&&(l(W)||P?t():C(t)),function(){T.current=!0,n(),o()}}}),[E,ne]),N((function(){var e;function t(){var t=f(y)?y(W):y;t&&-1!==e&&(e=setTimeout(r,t))}function r(){ee.current.error||!v&&!F().isVisible()||!m&&!F().isOnline()?t():ne(X).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[y,v,m,ne]),(0,n.useDebugValue)(W),h&&l(W)&&E)throw B.current=t,U.current=r,T.current=!1,l(Z)?ne(X):Z;return{mutate:oe,get data(){return te.data=!0,W},get error(){return te.error=!0,Z},get isValidating(){return te.isValidating=!0,K}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Z(),n=q(e),o=n[0],i=n[1],s=n[2],u=z(r,s),c=a,l=u.use;if(l)for(var f=l.length;f-- >0;)c=l[f](c);return c(o,i||u.fetcher,u)});const K=wp.components;var Q=r(4246),ee=function(){return(0,Q.jsx)("div",{className:"extendify-onboarding w-full fixed bottom-4 px-4 flex justify-end z-max",children:(0,Q.jsx)("div",{className:"shadow-2xl",children:(0,Q.jsx)(K.Snackbar,{children:(0,t.__)("Just a moment, this is taking longer than expected.","extendify")})})})};const te=wp.data;var re=r(7135),ne=r.n(re),oe=r(4206),ie=r.n(oe)().create({baseURL:window.extOnbData.root,headers:{"X-WP-Nonce":window.extOnbData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Onboarding":!0,"X-Extendify":!0}});function ae(e){return Object.prototype.hasOwnProperty.call(e,"data")?e.data:e}ie.interceptors.response.use((function(e){return ae(e)}),(function(e){return function(e){if(e.response)return console.error(e.response),Promise.reject(ae(e.response))}(e)})),ie.interceptors.request.use((function(e){return function(e){return e.headers["X-Extendify-Onboarding-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Onboarding-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e}(e)}),(function(e){return e}));var se=function(e){return ie.get("onboarding/template",{params:e})};function ue(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function ce(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ue(i,n,o,a,s,"next",e)}function s(e){ue(i,n,o,a,s,"throw",e)}a(void 0)}))}}var le=function(e,t){return ie.post("onboarding/options",{option:e,value:t})},fe=function(){var e=ce(ne().mark((function e(t){var r,n;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ie.get("onboarding/options",{params:{option:t}});case 2:return r=e.sent,n=r.data,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),de=function(){var e=ce(ne().mark((function e(t){var r,n,o,i;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={method:"POST",headers:{"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},body:JSON.stringify(t)},n="".concat(window.extOnbData.wpRoot,"wp/v2/pages"),e.next=4,fetch(n,r);case 4:return o=e.sent,e.next=7,o.json();case 7:return i=e.sent,e.abrupt("return",i);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),he=function(){var e=ce(ne().mark((function e(t){var r,n,o;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return r={"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},n="".concat(window.extOnbData.wpRoot,"wp/v2/plugins"),e.next=6,fetch(n,{method:"POST",headers:r,body:JSON.stringify({slug:t,status:"active"})});case 6:if(!((o=e.sent).status>=200&&o.status<300)){e.next=11;break}return e.next=10,o.json();case 10:case 13:return e.abrupt("return",e.sent);case 11:return e.next=13,pe(t);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),pe=function(){var e=ce(ne().mark((function e(t){var r,n,o,i,a,s,u;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},i="".concat(window.extOnbData.wpRoot,"wp/v2/plugins"),e.next=4,fetch("".concat(i,"?search=").concat(t),{headers:o});case 4:return a=e.sent,e.next=7,a.json();case 7:if(e.t1=r=e.sent,e.t0=null===e.t1,e.t0){e.next=11;break}e.t0=void 0===r;case 11:if(!e.t0){e.next=15;break}e.t2=void 0,e.next=16;break;case 15:e.t2=null===(n=r[0])||void 0===n?void 0:n.plugin;case 16:return s=e.t2,e.next=19,fetch("".concat(i,"/").concat(s),{method:"POST",headers:o,body:JSON.stringify({status:"active"})});case 19:return u=e.sent,e.next=22,u.json();case 22:return e.abrupt("return",e.sent);case 23:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ye=function(){var e=ce(ne().mark((function e(r,n){var o,i,a,s;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={method:"POST",headers:{"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},body:JSON.stringify({slug:"".concat(r),theme:"extendable",type:"wp_template_part",status:"publish",description:(0,t.__)("Added by Extendify Launch","extendify"),content:n})},e.prev=1,i="".concat(window.extOnbData.wpRoot,"wp/v2/template-parts/").concat(r),e.next=5,fetch(i,o);case 5:return a=e.sent,e.next=8,a.json();case 8:return s=e.sent,e.abrupt("return",s);case 12:e.prev=12,e.t0=e.catch(1);case 14:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t,r){return e.apply(this,arguments)}}(),ve=function(e){var t=e.currentPageIndex,r=e.totalPages,n=Math.round((t+1)/r*100),o="(".concat(t+1,"/").concat(r,")");return(0,Q.jsxs)("div",{className:"flex-1 hidden md:flex justify-center items-center",children:[(0,Q.jsx)("div",{role:"progressbar","aria-valuenow":n,"aria-valuemin":"0","aria-valuetext":o,"aria-valuemax":"100",className:"w-32 bg-gray-200 h-2 rounded-full",children:(0,Q.jsx)("div",{className:"rounded-full bg-partner-primary-bg h-2",style:{width:"".concat(n,"%")}})}),(0,Q.jsx)("div",{className:"pl-2 flex justify-center",children:o})]})};function me(e){let t;const r=new Set,n=(e,n)=>{const o="function"==typeof e?e(t):e;if(o!==t){const e=t;t=n?o:Object.assign({},t,o),r.forEach((r=>r(t,e)))}},o=()=>t,i={setState:n,getState:o,subscribe:(e,n,i)=>n||i?((e,n=o,i=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=n(t);function s(){const r=n(t);if(!i(a,r)){const t=a;e(a=r,t)}}return r.add(s),()=>r.delete(s)})(e,n,i):(r.add(e),()=>r.delete(e)),destroy:()=>r.clear()};return t=e(n,o,i),i}const ge="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?n.useEffect:n.useLayoutEffect;function be(e){const t="function"==typeof e?me(e):e,r=(e=t.getState,r=Object.is)=>{const[,o]=(0,n.useReducer)((e=>e+1),0),i=t.getState(),a=(0,n.useRef)(i),s=(0,n.useRef)(e),u=(0,n.useRef)(r),c=(0,n.useRef)(!1),l=(0,n.useRef)();let f;void 0===l.current&&(l.current=e(i));let d=!1;(a.current!==i||s.current!==e||u.current!==r||c.current)&&(f=e(i),d=!r(l.current,f)),ge((()=>{d&&(l.current=f),a.current=i,s.current=e,u.current=r,c.current=!1}));const h=(0,n.useRef)(i);ge((()=>{const e=()=>{try{const e=t.getState(),r=s.current(e);u.current(l.current,r)||(a.current=e,l.current=r,o())}catch(e){c.current=!0,o()}},r=t.subscribe(e);return t.getState()!==h.current&&e(),r}),[]);const p=d?f:l.current;return(0,n.useDebugValue)(p),p};return Object.assign(r,t),r[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[r,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},r}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function we(e,t){return(r,n,o)=>{var i;let a=!1;"string"!=typeof t||a||(console.warn("[zustand devtools middleware]: passing `name` as directly will be not allowed in next majorpass the `name` in an object `{ name: ... }` instead"),a=!0);const s=void 0===t?{name:void 0,anonymousActionType:void 0}:"string"==typeof t?{name:t}:t;let u;void 0!==(null==(i=null==s?void 0:s.serialize)?void 0:i.options)&&console.warn("[zustand devtools middleware]: `serialize.options` is deprecated, just use `serialize`");try{u=window.__REDUX_DEVTOOLS_EXTENSION__||window.top.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return"undefined"!=typeof window&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(r,n,o);let c=Object.create(u.connect(s)),l=!1;Object.defineProperty(o,"devtools",{get:()=>(l||(console.warn("[zustand devtools middleware] `devtools` property on the store is deprecated it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),l=!0),c),set:e=>{l||(console.warn("[zustand devtools middleware] `api.devtools` is deprecated, it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),l=!0),c=e}});let f=!1;Object.defineProperty(c,"prefix",{get:()=>(f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0),""),set:()=>{f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0)}});let d=!0;o.setState=(e,t,o)=>{r(e,t),d&&c.send(void 0===o?{type:s.anonymousActionType||"anonymous"}:"string"==typeof o?{type:o}:o,n())};const h=(...e)=>{const t=d;d=!1,r(...e),d=t},p=e(o.setState,n,o);if(c.init(p),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1;const t=o.dispatch;o.dispatch=(...r)=>{"__setState"!==r[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...r)}}return c.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):xe(e.payload,(e=>{"__setState"!==e.type?o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e):h(e.state)}));case"DISPATCH":switch(e.payload.type){case"RESET":return h(p),c.init(o.getState());case"COMMIT":return c.init(o.getState());case"ROLLBACK":return xe(e.state,(e=>{h(e),c.init(o.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return xe(e.state,(e=>{h(e)}));case"IMPORT_STATE":{const{nextLiftedState:r}=e.payload,n=null==(t=r.computedStates.slice(-1)[0])?void 0:t.state;if(!n)return;return h(n),void c.send(null,r)}case"PAUSE_RECORDING":return d=!d}return}})),p}}const xe=(e,t)=>{let r;try{r=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==r&&t(r)};var je=Object.defineProperty,Oe=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,_e=(e,t,r)=>t in e?je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pe=(e,t)=>{for(var r in t||(t={}))Ee.call(t,r)&&_e(e,r,t[r]);if(Oe)for(var r of Oe(t))Se.call(t,r)&&_e(e,r,t[r]);return e};const Ce=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then:e=>Ce(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>Ce(t)(e)}}};var Ne=be(we((function(){return{generating:!1,generatedPages:{}}}))),Ae=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=G(e,t,n),i=o.data,a=o.error,s=null!==(r=null==i?void 0:i.data)&&void 0!==r?r:i;return{data:s,loading:!s&&!a,error:a}};function Te(e){return function(e){if(Array.isArray(e))return Re(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Re(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Re(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(r),!0).forEach((function(t){Ie(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var De,Me,Be={siteType:{},siteInformation:{title:""},style:null,pages:[],plugins:[],goals:[]},Ue=be((De=we((function(e,t){return Le(Le({},Be),{},{setSiteType:function(t){e({siteType:t})},setSiteInformation:function(r,n){var o=Le(Le({},t().siteInformation),{},Ie({},r,n));e({siteInformation:o})},has:function(e,r){return!(null==r||!r.id)&&t()[e].some((function(e){return e.id===r.id}))},add:function(r,n){t().has(r,n)||e(Ie({},r,[].concat(Te(t()[r]),[n])))},remove:function(r,n){e(Ie({},r,t()[r].filter((function(e){return e.id!==n.id}))))},toggle:function(e,r){t().has(e,r)?t().remove(e,r):t().add(e,r)},setStyle:function(t){e({style:t})},canLaunch:function(){var e,r,n,o,i,a,s,u;return(null===(e=Object.keys(null!==(r=null===(n=t())||void 0===n?void 0:n.siteType)&&void 0!==r?r:{}))||void 0===e?void 0:e.length)>0&&(null===(o=Object.keys(null!==(i=null===(a=t())||void 0===a?void 0:a.style)&&void 0!==i?i:{}))||void 0===o?void 0:o.length)>0&&(null===(s=t())||void 0===s||null===(u=s.pages)||void 0===u?void 0:u.length)>0},resetState:function(){e(Be)}})})),Me={name:"extendify",getStorage:function(){return sessionStorage}},(e,t,r)=>{let n=Pe({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>Pe(Pe({},t),e)},Me);(n.blacklist||n.whitelist)&&console.warn(`The ${n.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let o=!1;const i=new Set,a=new Set;let s;try{s=n.getStorage()}catch(e){}if(!s)return De(((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${n.name}', the given storage is currently unavailable.`),e(...t)}),t,r);s.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${n.name}' does not contain a 'removeItem' method, which will be required in v4.`);const u=Ce(n.serialize),c=()=>{const e=n.partialize(Pe({},t()));let r;n.whitelist&&Object.keys(e).forEach((t=>{var r;!(null==(r=n.whitelist)?void 0:r.includes(t))&&delete e[t]})),n.blacklist&&n.blacklist.forEach((t=>delete e[t]));const o=u({state:e,version:n.version}).then((e=>s.setItem(n.name,e))).catch((e=>{r=e}));if(r)throw r;return o},l=r.setState;r.setState=(e,t)=>{l(e,t),c()};const f=De(((...t)=>{e(...t),c()}),t,r);let d;const h=()=>{var r;if(!s)return;o=!1,i.forEach((e=>e(t())));const u=(null==(r=n.onRehydrateStorage)?void 0:r.call(n,t()))||void 0;return Ce(s.getItem.bind(s))(n.name).then((e=>{if(e)return n.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===n.version)return e.state;if(n.migrate)return n.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((r=>{var o;return d=n.merge(r,null!=(o=t())?o:f),e(d,!0),c()})).then((()=>{null==u||u(d,void 0),o=!0,a.forEach((e=>e(d)))})).catch((e=>{null==u||u(void 0,e)}))};return r.persist={setOptions:e=>{n=Pe(Pe({},n),e),e.getStorage&&(s=e.getStorage())},clearStorage:()=>{var e;null==(e=null==s?void 0:s.removeItem)||e.call(s,n.name)},rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(i.add(e),()=>{i.delete(e)}),onFinishHydration:e=>(a.add(e),()=>{a.delete(e)})},h(),d||f})),Fe=function(){return ie.get("onboarding/goals")},He=function(){return{key:"goals"}};function Ve(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function Ye(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}var ze=function(){var e,t=(e=ne().mark((function e(){var t;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe("blogname");case 2:return t=e.sent,e.abrupt("return",{title:t});case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ye(i,n,o,a,s,"next",e)}function s(e){Ye(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),We=function(){return{key:"site-info"}},qe=r(42),Ze=r.n(qe);const Je=wp.blockEditor,Xe=wp.blocks;var $e=function(e){var t,r;return[null==e||null===(t=e.template)||void 0===t?void 0:t.code,null==e||null===(r=e.template)||void 0===r?void 0:r.code2].filter(Boolean).join("")},Ge=["className"];function Ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(r),!0).forEach((function(t){et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const rt=(0,e.memo)((function(e){var t=e.className,r=tt(e,Ge);return(0,Q.jsx)("svg",Qe(Qe({className:t,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:(0,Q.jsx)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"})}))}));var nt=["className"];function ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function it(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){at(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function at(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function st(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const ut=(0,e.memo)((function(e){var t=e.className,r=st(e,nt);return(0,Q.jsx)("svg",it(it({className:"icon ".concat(t),width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:(0,Q.jsx)("path",{d:"M10 17.5L15 12L10 6.5",stroke:"#1f1f1f",strokeWidth:"1.75"})}))}));var ct=["className"];function lt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(r),!0).forEach((function(t){dt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ht(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const pt=(0,e.memo)((function(e){var t=e.className,r=ht(e,ct);return(0,Q.jsxs)("svg",ft(ft({className:t,viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:[(0,Q.jsx)("path",{d:"M609.404 378.5C585.07 378.5 563.404 373 544.404 362C525.737 350.667 511.07 335.333 500.404 316C489.737 296.333 484.404 273.833 484.404 248.5C484.404 222.833 489.57 200.167 499.904 180.5C510.237 160.833 524.737 145.5 543.404 134.5C562.07 123.167 583.404 117.5 607.404 117.5C632.404 117.5 653.904 122.833 671.904 133.5C689.904 143.833 703.737 158.333 713.404 177C723.404 195.667 728.404 218 728.404 244V262.5L516.404 263L517.404 224H667.904C667.904 207 662.404 193.333 651.404 183C640.737 172.667 626.237 167.5 607.904 167.5C593.57 167.5 581.404 170.5 571.404 176.5C561.737 182.5 554.404 191.5 549.404 203.5C544.404 215.5 541.904 230.167 541.904 247.5C541.904 274.167 547.57 294.333 558.904 308C570.57 321.667 587.737 328.5 610.404 328.5C627.07 328.5 640.737 325.333 651.404 319C662.404 312.667 669.57 303.667 672.904 292H729.404C724.07 319 710.737 340.167 689.404 355.5C668.404 370.833 641.737 378.5 609.404 378.5Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M797.529 372H728.029L813.029 251L728.029 125H799.029L853.529 209L906.029 125H974.529L890.529 250.5L972.029 372H902.029L849.029 290.5L797.529 372Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M1278.62 378.5C1254.29 378.5 1232.62 373 1213.62 362C1194.96 350.667 1180.29 335.333 1169.62 316C1158.96 296.333 1153.62 273.833 1153.62 248.5C1153.62 222.833 1158.79 200.167 1169.12 180.5C1179.46 160.833 1193.96 145.5 1212.62 134.5C1231.29 123.167 1252.62 117.5 1276.62 117.5C1301.62 117.5 1323.12 122.833 1341.12 133.5C1359.12 143.833 1372.96 158.333 1382.62 177C1392.62 195.667 1397.62 218 1397.62 244V262.5L1185.62 263L1186.62 224H1337.12C1337.12 207 1331.62 193.333 1320.62 183C1309.96 172.667 1295.46 167.5 1277.12 167.5C1262.79 167.5 1250.62 170.5 1240.62 176.5C1230.96 182.5 1223.62 191.5 1218.62 203.5C1213.62 215.5 1211.12 230.167 1211.12 247.5C1211.12 274.167 1216.79 294.333 1228.12 308C1239.79 321.667 1256.96 328.5 1279.62 328.5C1296.29 328.5 1309.96 325.333 1320.62 319C1331.62 312.667 1338.79 303.667 1342.12 292H1398.62C1393.29 319 1379.96 340.167 1358.62 355.5C1337.62 370.833 1310.96 378.5 1278.62 378.5Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M1484.44 372H1423.44V125H1479.94L1484.94 157C1492.61 144.667 1503.44 135 1517.44 128C1531.78 121 1547.28 117.5 1563.94 117.5C1594.94 117.5 1618.28 126.667 1633.94 145C1649.94 163.333 1657.94 188.333 1657.94 220V372H1596.94V234.5C1596.94 213.833 1592.28 198.5 1582.94 188.5C1573.61 178.167 1560.94 173 1544.94 173C1525.94 173 1511.11 179 1500.44 191C1489.78 203 1484.44 219 1484.44 239V372Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M1798.38 378.5C1774.38 378.5 1753.71 373.167 1736.38 362.5C1719.38 351.5 1706.04 336.333 1696.38 317C1687.04 297.667 1682.38 275.167 1682.38 249.5C1682.38 223.833 1687.04 201.167 1696.38 181.5C1706.04 161.5 1719.88 145.833 1737.88 134.5C1755.88 123.167 1777.21 117.5 1801.88 117.5C1819.21 117.5 1835.04 121 1849.38 128C1863.71 134.667 1874.71 144.167 1882.38 156.5V0H1942.88V372H1886.88L1882.88 333.5C1875.54 347.5 1864.21 358.5 1848.88 366.5C1833.88 374.5 1817.04 378.5 1798.38 378.5ZM1811.88 322.5C1826.21 322.5 1838.54 319.5 1848.88 313.5C1859.21 307.167 1867.21 298.333 1872.88 287C1878.88 275.333 1881.88 262.167 1881.88 247.5C1881.88 232.5 1878.88 219.5 1872.88 208.5C1867.21 197.167 1859.21 188.333 1848.88 182C1838.54 175.333 1826.21 172 1811.88 172C1797.88 172 1785.71 175.333 1775.38 182C1765.04 188.333 1757.04 197.167 1751.38 208.5C1746.04 219.833 1743.38 232.833 1743.38 247.5C1743.38 262.167 1746.04 275.167 1751.38 286.5C1757.04 297.833 1765.04 306.667 1775.38 313C1785.71 319.333 1797.88 322.5 1811.88 322.5Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M1996.45 372V125H2057.45V372H1996.45ZM2026.45 75.5C2016.11 75.5 2007.28 72 1999.95 65C1992.95 57.6667 1989.45 48.8333 1989.45 38.5C1989.45 28.1667 1992.95 19.5 1999.95 12.5C2007.28 5.50001 2016.11 2.00002 2026.45 2.00002C2036.78 2.00002 2045.45 5.50001 2052.45 12.5C2059.78 19.5 2063.45 28.1667 2063.45 38.5C2063.45 48.8333 2059.78 57.6667 2052.45 65C2045.45 72 2036.78 75.5 2026.45 75.5Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M2085.97 125H2240.97V176H2085.97V125ZM2241.47 2.5V54.5C2238.14 54.5 2234.64 54.5 2230.97 54.5C2227.64 54.5 2224.14 54.5 2220.47 54.5C2205.14 54.5 2194.8 58.1667 2189.47 65.5C2184.47 72.8333 2181.97 82.6667 2181.97 95V372H2121.47V95C2121.47 72.3333 2125.14 54.1667 2132.47 40.5C2139.8 26.5 2150.14 16.3333 2163.47 10C2176.8 3.33334 2192.3 0 2209.97 0C2214.97 0 2220.14 0.166671 2225.47 0.5C2231.14 0.833329 2236.47 1.49999 2241.47 2.5Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M2330.4 125L2410.9 353L2377.9 415.5L2265.9 125H2330.4ZM2272.4 486.5V436H2308.9C2316.9 436 2323.9 435 2329.9 433C2335.9 431.333 2341.24 428 2345.9 423C2350.9 418 2355.07 410.667 2358.4 401L2460.9 125H2523.9L2402.9 427C2393.9 449.667 2382.57 466.167 2368.9 476.5C2355.24 486.833 2338.24 492 2317.9 492C2309.24 492 2301.07 491.5 2293.4 490.5C2286.07 489.833 2279.07 488.5 2272.4 486.5Z",fill:"currentColor"}),(0,Q.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M226.926 25.1299H310.197C333.783 25.1299 342.32 27.5938 350.948 32.1932C359.576 36.8108 366.326 43.5822 370.941 52.1969C375.556 60.8298 378 69.3715 378 92.9707V176.289C378 199.888 375.537 208.43 370.941 217.063C366.326 225.696 359.558 232.449 350.948 237.066C347.091 239.131 343.244 240.83 338.064 242.047V308.355C338.064 344.802 334.261 357.994 327.162 371.327C320.034 384.66 309.583 395.09 296.285 402.221C282.96 409.353 269.775 413.13 233.349 413.13H104.744C68.3172 413.13 55.1327 409.325 41.8073 402.221C28.4819 395.09 18.0583 384.632 10.9308 371.327C3.80323 358.023 0 344.802 0 308.355V179.706C0 143.259 3.80323 130.067 10.9026 116.734C18.0301 103.401 28.4819 92.9431 41.8073 85.8116C55.1045 78.7082 68.3172 74.9028 104.744 74.9028H159.808C160.841 64.0747 162.996 58.1666 166.165 52.2151C170.78 43.5822 177.547 36.8108 186.175 32.1932C194.785 27.5938 203.34 25.1299 226.926 25.1299ZM184.128 78.1641C184.128 62.7001 196.658 50.1641 212.114 50.1641H324.991C340.448 50.1641 352.978 62.7001 352.978 78.1641V191.096C352.978 206.56 340.448 219.096 324.991 219.096H212.114C196.658 219.096 184.128 206.56 184.128 191.096V78.1641Z",fill:"currentColor"})]}))}));var yt=["className"];function vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(r),!0).forEach((function(t){gt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(0,e.memo)((function(e){var t=e.className,r=bt(e,yt);return(0,Q.jsx)("svg",mt(mt({className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:(0,Q.jsx)("path",{fill:"currentColor",d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"})}))}));var wt=["className"];function xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(r),!0).forEach((function(t){Ot(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Et(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const St=(0,e.memo)((function(e){var t=e.className,r=Et(e,wt);return(0,Q.jsxs)("svg",jt(jt({className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:[(0,Q.jsx)("path",{d:"M8 18.5504L12 14.8899",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,Q.jsx)("path",{d:"M20.25 11.7523C20.25 14.547 18.092 16.7546 15.5 16.7546C12.908 16.7546 10.75 14.547 10.75 11.7523C10.75 8.95754 12.908 6.75 15.5 6.75C18.092 6.75 20.25 8.95754 20.25 11.7523Z",stroke:"#1E1E1E",strokeWidth:"1.5"})]}))}));var _t=["className"];function Pt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ct(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(r),!0).forEach((function(t){Nt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function At(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const Tt=(0,e.memo)((function(e){var t=e.className,r=At(e,_t);return(0,Q.jsxs)("svg",Ct(Ct({className:t,width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:[(0,Q.jsx)("path",{d:"M87.5 48.8281H75V51.1719H87.5V48.8281Z",fill:"black"}),(0,Q.jsx)("path",{d:"M25 48.8281H12.5V51.1719H25V48.8281Z",fill:"black"}),(0,Q.jsx)("path",{d:"M51.1719 75H48.8281V87.5H51.1719V75Z",fill:"black"}),(0,Q.jsx)("path",{d:"M51.1719 12.5H48.8281V25H51.1719V12.5Z",fill:"black"}),(0,Q.jsx)("path",{d:"M77.3433 75.6868L69.4082 67.7517L67.7511 69.4088L75.6862 77.344L77.3433 75.6868Z",fill:"black"}),(0,Q.jsx)("path",{d:"M32.2457 30.5897L24.3105 22.6545L22.6534 24.3117L30.5885 32.2468L32.2457 30.5897Z",fill:"black"}),(0,Q.jsx)("path",{d:"M77.3407 24.3131L75.6836 22.656L67.7485 30.5911L69.4056 32.2483L77.3407 24.3131Z",fill:"black"}),(0,Q.jsx)("path",{d:"M32.2431 69.4074L30.5859 67.7502L22.6508 75.6854L24.3079 77.3425L32.2431 69.4074Z",fill:"black"})]}))}));function Rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kt(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 kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Lt=function(r){var n=r.style,o=r.selectStyle,i=r.blockHeight,a=r.onHover,s=void 0===a?null:a,u=Ue((function(e){return e.siteType})),c=function(){var t=(0,e.useRef)(!1);return(0,e.useEffect)((function(){return t.current=!0,function(){return t.current=!1}})),t}(),l=Rt((0,e.useState)(""),2),f=l[0],d=l[1],h=Rt((0,e.useState)(""),2),p=h[0],y=h[1],v=Rt((0,e.useState)(!1),2),m=v[0],g=v[1],b=Rt((0,e.useState)(!1),2),w=b[0],x=b[1],j=Rt((0,e.useState)(null),2),O=j[0],E=j[1],S=(0,e.useRef)(null),_=(0,e.useRef)(null),P=(0,e.useRef)(null),C=(0,e.useRef)(null),N=(0,e.useMemo)((function(){return(0,Xe.rawHandler)({HTML:(e=f,e.replace(/\w+:\/\/\S*(w=(\d*))&\w+\S*"/g,(function(e,t,r){return e.replace(t,"w="+Math.floor(Number(r))+"&q=10")})))});var e}),[f]),A=(0,e.useMemo)((function(){return(0,Je.transformStyles)([{css:p}],".editor-styles-wrapper")}),[p]);return(0,e.useEffect)((function(){null!=n&&n.themeJson?function(e){return ie.post("onboarding/parse-theme-json",{themeJson:e})}(n.themeJson).then((function(e){var t;y(null!==(t=null==e?void 0:e.styles)&&void 0!==t?t:"{}")})):y("{}")}),[null==n?void 0:n.themeJson]),(0,e.useEffect)((function(){if(p&&null!=n&&n.code){var e=[null==n?void 0:n.headerCode,null==n?void 0:n.code,null==n?void 0:n.footerCode].filter(Boolean).join("").replace(/<!-- wp:navigation {(.|\n)*?(\/wp:navigation -->|} \/-->)/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e');d(e)}}),[null==u?void 0:u.slug,p,n]),(0,e.useEffect)((function(){var e,t;if(_.current&&m){var r=S.current,n=r.offsetWidth/1400,o=_.current.contentDocument.body;null!=o&&o.style&&(o.style.transitionProperty="all",o.style.top=0);var a=function(){var t,r;if(o.offsetHeight){var a=(null!==(t=null==P||null===(r=P.current)||void 0===r?void 0:r.offsetHeight)&&void 0!==t?t:i)-32,s=o.getBoundingClientRect().height-a/n;o.style.transitionDuration=Math.max(2*s,3e3)+"ms",e=window.requestAnimationFrame((function(){o.style.top=-1*Math.max(0,s)+"px"}))}},s=function(){var e,r;if(o.offsetHeight){var a=(null!==(e=null==P||null===(r=P.current)||void 0===r?void 0:r.offsetHeight)&&void 0!==e?e:i)-32,s=o.offsetHeight-a/n;o.style.transitionDuration=s+"ms",t=window.requestAnimationFrame((function(){o.style.top=0}))}};return r.addEventListener("focus",a),r.addEventListener("mouseenter",a),r.addEventListener("blur",s),r.addEventListener("mouseleave",s),function(){window.cancelAnimationFrame(e),window.cancelAnimationFrame(t),r.removeEventListener("focus",a),r.removeEventListener("mouseenter",a),r.removeEventListener("blur",s),r.removeEventListener("mouseleave",s)}}}),[i,m]),(0,e.useEffect)((function(){if(null!=N&&N.length&&w){var e,t=function(){var t,r,n;null!==(t=e.contentDocument)&&void 0!==t&&t.getElementById("ext-tj")||(null===(r=e.contentDocument)||void 0===r||null===(n=r.head)||void 0===n||n.insertAdjacentHTML("beforeend",'<style id="ext-tj">'.concat(A,"</style>")));_.current=e,setTimeout((function(){c.current&&g(!0)}),500)},r=new MutationObserver((function(){(e=S.current.querySelector("iframe[title]")).addEventListener("load",t),setTimeout((function(){t()}),2e3),r.disconnect()}));return r.observe(S.current,{attributes:!1,childList:!0,subtree:!1}),function(){var n;r.disconnect(),null===(n=e)||void 0===n||n.removeEventListener("load",t)}}}),[N,A,c,w]),(0,e.useEffect)((function(){return C.current||(C.current=new IntersectionObserver((function(e){e[0].isIntersecting&&x(!0)}))),C.current.observe(P.current),function(){C.current.disconnect()}}),[]),(0,Q.jsxs)(Q.Fragment,{children:[m&&f?null:(0,Q.jsx)("div",{className:"m-6 absolute inset-0 bg-gray-50 flex items-center justify-center",children:(0,Q.jsx)(Tt,{className:"spin w-8"})}),(0,Q.jsx)("div",{ref:P,role:o?"button":void 0,tabIndex:o?0:void 0,"aria-label":o?(0,t.__)("Press to select","extendify"):void 0,className:Ze()("w-full overflow-hidden bg-transparent z-10",{relative:m,"absolute opacity-0":!m,"button-focus button-card":o}),onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&o&&o(n)},onMouseEnter:function(){s&&E(s)},onMouseLeave:function(){O&&(O(),E(null))},onClick:o?function(){return o(n)}:function(){},children:(0,Q.jsx)("div",{ref:S,className:"relative rounded-lg",children:w?(0,Q.jsx)(Je.BlockPreview,{blocks:N,viewportWidth:1400,live:!1}):null})})]})};function It(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?It(Object(r),!0).forEach((function(t){Mt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):It(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bt=function(e){return se(e)},Ut=function(e){var r=e.page,n=e.blockHeight,o=e.lock,i=void 0!==o&&o,a=e.displayOnly,s=void 0!==a&&a,u=Ue(),c=u.siteType,l=u.style,f=u.toggle,d=u.has,h="home"===(null==r?void 0:r.slug),p=Ae({siteType:c.slug,layoutType:r.slug,baseLayout:h?null==l?void 0:l.homeBaseLayout:null,kit:"home"!==r.slug?null==l?void 0:l.kit:null},Bt).data;return s?(0,Q.jsxs)("div",{className:"text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100",children:[(0,Q.jsx)("div",{className:"border-gray-100 border-b p-2 flex justify-between min-w-sm",children:r.title}),(0,Q.jsx)(Lt,{blockHeight:n,style:Dt(Dt({},l),{},{code:$e({template:p})})},null==l?void 0:l.recordId)]}):(0,Q.jsx)("div",{children:(0,Q.jsxs)("div",{role:"button",tabIndex:0,"aria-label":(0,t.__)("Press to select","extendify"),disabled:i,className:"text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100 button-focus",title:i?(0,t.__)("This page is required","extendify"):null,onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(i||f("pages",r))},onClick:function(){return i||f("pages",r)},children:[(0,Q.jsxs)("div",{className:"border-gray-100 border-b p-2 flex justify-between min-w-sm",children:[(0,Q.jsxs)("div",{className:Ze()("flex items-center",{"text-gray-700":!d("pages",r)}),children:[(0,Q.jsx)("span",{children:r.title}),i&&(0,Q.jsx)("span",{className:"w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"})]}),d("pages",r)&&(0,Q.jsx)(rt,{className:"text-partner-primary-bg w-6"})]}),(0,Q.jsx)(Lt,{blockHeight:n,style:Dt(Dt({},l),{},{code:$e({template:p})})},null==l?void 0:l.recordId)]})})};function Ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||Vt(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 Ht(e){return function(e){if(Array.isArray(e))return Yt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(e,t){if(e){if("string"==typeof e)return Yt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Yt(e,t):void 0}}function Yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zt(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}var Wt=function(){var e,t=(e=ne().mark((function e(){var t,r,n,o,i,a;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ie.get("onboarding/layout-types");case 2:if(n=e.sent,null!=(o=null==n||null===(t=n.data)||void 0===t?void 0:t.map((function(e){return{id:e.id,slug:e.slug,title:e.title}})))&&o.length){e.next=6;break}throw new Error("Error fetching pages");case 6:return i=o[0],a=null===(r=o.slice(1))||void 0===r?void 0:r.sort((function(e,t){return e.title>t.title?1:-1})),e.abrupt("return",[i].concat(Ht(null!=a?a:[])));case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){zt(i,n,o,a,s,"next",e)}function s(e){zt(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),qt=function(){return{key:"layout-types"}};function Zt(e){return function(e){if(Array.isArray(e))return Kt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Gt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jt(e){return Jt="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},Jt(e)}function Xt(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Gt(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function $t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||Gt(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 Gt(e,t){if(e){if("string"==typeof e)return Kt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kt(e,t):void 0}}function Kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Qt(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function er(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Qt(i,n,o,a,s,"next",e)}function s(e){Qt(i,n,o,a,s,"throw",e)}a(void 0)}))}}var tr=function(){var e=er(ne().mark((function e(t){var r,n,o;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i=t,ie.get("onboarding/styles",{params:i});case 2:return o=e.sent,e.abrupt("return",null==o||null===(r=o.data)||void 0===r||null===(n=r.map((function(e){return{label:e.title,slug:e.slug,recordId:e.id,themeJson:null==e?void 0:e.themeJson,homeBaseLayout:null==e?void 0:e.homeBaseLayout,header:null==e?void 0:e.header,footer:null==e?void 0:e.footer,kit:null==e?void 0:e.kit,headerCode:null==e?void 0:e.headerCode,footerCode:null==e?void 0:e.footerCode,code:$e(e)}})))||void 0===n?void 0:n.filter((function(e){return e.code})));case 4:case"end":return e.stop()}var i}),e)})));return function(t){return e.apply(this,arguments)}}(),rr=function(e){var t,r,n;return{key:"site-style",siteType:null!==(r=null===(n=e=null!==(t=e)&&void 0!==t?t:null==Ue?void 0:Ue.getState().siteType)||void 0===n?void 0:n.slug)&&void 0!==r?r:"default"}},nr=function(e){var t=e.image,r=e.heading,n=e.name,o=e.description,i=e.selected,a=e.onClick,s=e.lock;return(0,Q.jsxs)("div",{role:s?void 0:"button",tabIndex:s?void 0:0,"aria-label":s?void 0:n,className:Ze()("text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100",{"button-focus":!s}),onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(s||a())},onClick:function(){s||a()},children:[(0,Q.jsxs)("div",{className:"border-gray-100 border-b p-2 flex justify-between min-w-sm",children:[(0,Q.jsxs)("div",{className:Ze()("flex items-center",{"text-gray-700":!i}),children:[(0,Q.jsx)("span",{children:n}),s&&(0,Q.jsx)("span",{className:"w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"})]}),(s||i)&&(0,Q.jsx)(rt,{className:"text-partner-primary-bg w-6"})]}),(0,Q.jsxs)("div",{className:"flex flex-col",children:[(0,Q.jsx)("div",{style:{backgroundImage:"url(".concat(t,")")},className:"h-32 bg-cover"}),(0,Q.jsxs)("div",{className:"p-6 text-left",children:[(0,Q.jsx)("div",{className:"text-base font-bold mb-2",children:r}),(0,Q.jsx)("div",{className:"text-sm",children:o})]})]})]})};function or(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function ir(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ar(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ar(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 ar(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var sr=function(){return ie.get("onboarding/site-types")},ur=function(){return{key:"site-types"}},cr=function(t){var r=t.option,n=t.selectSiteType,o=(0,e.useRef)(0);return(0,Q.jsxs)("button",{onClick:function(){return n(r)},onMouseEnter:function(){window.clearTimeout(o.current),o.current=window.setTimeout((function(){var e=function(){return rr(r)};V(e,(function(t){return null!=t&&t.length?t:tr(e())}))}),100)},onMouseLeave:function(){window.clearTimeout(o.current)},className:"flex bg-gray-100 hover:bg-gray-200 items-center justify-between mb-2 p-4 py-3 relative w-full button-focus",children:[(0,Q.jsx)("span",{children:r.title}),(0,Q.jsx)(ut,{})]})},lr=[["landing",{component:function(){var r=fr((function(e){return e.nextPage})),n=(0,e.useRef)(null);(0,e.useEffect)((function(){var e=requestAnimationFrame((function(){return n.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[n]);var o=function(){var e,t=(e=ne().mark((function e(t){return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,le("extendify_onboarding_skipped",(new Date).toISOString());case 3:location.href=window.extOnbData.adminUrl;case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ve(i,n,o,a,s,"next",e)}function s(e){Ve(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("Welcome to Your WordPress Site","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("Design and launch your site with our guided experience, or jump right to the WordPress dashboard if you already know what you're doing.","extendify")})]}),(0,Q.jsxs)("div",{className:"",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Pick one:","extendify")}),(0,Q.jsxs)("div",{className:"lg:flex lg:space-x-8",children:[(0,Q.jsxs)("button",{onClick:r,ref:n,type:"button","aria-label":(0,t.__)("Press to continue","extendify"),className:"button-card max-w-sm button-focus",children:[(0,Q.jsx)("div",{className:"bg-gray-100 w-full h-64 bg-cover border border-gray-200",style:{backgroundImage:"url(".concat(window.extOnbData.pluginUrl,"/public/assets/extendify-preview.png)")}}),(0,Q.jsx)("p",{className:"font-bold text-lg text-gray-900",children:(0,t.__)("Extendify Launch","extendify")}),(0,Q.jsx)("p",{className:"text-base text-gray-900",children:(0,t.__)("Create a super-fast, beautiful, and fully customized site in minutes. Simply answer a few questions and pick a design to get started. Then, everything can be fully customized in the core WordPress editor.","extendify")})]}),(0,Q.jsxs)("a",{onClick:function(e){return o(e)},className:"button-card max-w-sm button-focus",children:[(0,Q.jsx)("div",{className:"bg-gray-100 w-full h-64 bg-cover border border-gray-200",style:{backgroundImage:"url(".concat(window.extOnbData.pluginUrl,"/public/assets/wp-admin.png)")}}),(0,Q.jsx)("p",{className:"font-bold text-lg text-gray-900",children:(0,t.__)("WordPress Dashboard","extendify")}),(0,Q.jsx)("p",{className:"text-base text-gray-900",children:(0,t.__)("Are you a WordPress developer and want to go straight to the admin dashboard?","extendify")})]})]})]})]})}}],["site-information",{component:function(){var r,n=Ue(),o=n.siteInformation,i=n.setSiteInformation,a=(0,e.useRef)(null),s=fr((function(e){return e.nextPage})),u=Ae(We,ze).data;return(0,e.useEffect)((function(){var e=requestAnimationFrame((function(){return a.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[a]),(0,e.useEffect)((function(){null!=u&&u.title&&i("title",u.title)}),[u,i]),(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("What's the name of your new site?","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("You can change this later.","extendify")})]}),(0,Q.jsx)("div",{className:"w-full",children:(0,Q.jsxs)("form",{onSubmit:function(e){e.preventDefault(),s()},children:[(0,Q.jsx)("label",{htmlFor:"extendify-site-title-input",className:"block mt-0 mb-8 text-base",children:(0,t.__)("What's the name of your site?","extendify")}),(0,Q.jsx)("div",{className:"mb-8",children:(0,Q.jsx)("input",{autoComplete:"off",ref:a,type:"text",name:"site-title-input",id:"extendify-site-title-input",className:"w-96 max-w-full border h-12 input-focus",value:null!==(r=null==o?void 0:o.title)&&void 0!==r?r:"",onChange:function(e){return i("title",e.target.value)},placeholder:(0,t.__)("Enter your preferred site title...","extendify")})})]})})]})},fetcher:ze,fetchData:We}],["site-type-select",{component:function(){var r=Ue((function(e){return e.siteType})),n=fr((function(e){return e.nextPage})),o=ir((0,e.useState)([]),2),i=o[0],a=o[1],s=ir((0,e.useState)(""),2),u=s[0],c=s[1],l=ir((0,e.useState)(!0),2),f=l[0],d=l[1],h=(0,e.useRef)(null),p=Ae(ur,sr),y=p.data,v=p.loading;(0,e.useEffect)((function(){var e=requestAnimationFrame((function(){return h.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[h]),(0,e.useEffect)((function(){if(!(v||null!=r&&r.slug)){var e=null==y?void 0:y.find((function(e){return"default"===e.slug}));e&&Ue.getState().setSiteType({label:e.title,recordId:e.id,slug:e.slug})}}),[v,null==r?void 0:r.slug,y]),(0,e.useEffect)((function(){v||((null==u?void 0:u.length)>0?a(null==y?void 0:y.filter((function(e){var t=e.title,r=e.keywords,n=null==u?void 0:u.toLowerCase();return!n||(t.toLowerCase().indexOf(n)>-1||!(null==r||!r.length)&&r.find((function(e){return e.toLowerCase().indexOf(n)>-1})))}))):(a(null==y?void 0:y.filter((function(e){return e.featured}))),d(!0)))}),[y,u,v]),(0,e.useEffect)((function(){v||a(f?y.filter((function(e){return e.featured})):y)}),[y,f,v]);var m=function(){var e,t=(e=ne().mark((function e(t){return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Ue.getState().setSiteType({label:t.title,recordId:t.id,slug:t.slug}),window.localStorage.removeItem("extendify-global-state"),e.next=4,r={siteType:{title:t.title,slug:t.slug}},ie.post("library/site-type",r);case 4:n();case 5:case"end":return e.stop()}var r}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){or(i,n,o,a,s,"next",e)}function s(e){or(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("What is your site about?","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("Search for the industry that best suits your site.","extendify")})]}),(0,Q.jsxs)("div",{className:"w-80",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Choose a site industry:","extendify")}),(0,Q.jsxs)("div",{className:"search-panel flex items-center justify-center relative mb-8",children:[(0,Q.jsx)("input",{ref:h,type:"text",className:"w-full border h-12 input-focus",value:u,onChange:function(e){return c(e.target.value)},placeholder:(0,t.__)("Search...","extendify")}),(0,Q.jsx)(St,{className:"icon-search"})]}),v&&(0,Q.jsx)("p",{children:(0,t.__)("Loading...","extendify")}),(null==i?void 0:i.length)>0&&(0,Q.jsxs)("div",{children:[(0,Q.jsxs)("div",{className:"flex justify-between mb-3",children:[(0,Q.jsx)("p",{className:"text-left uppercase text-xss m-0",children:(0,t.__)("Industries","extendify")}),(null==u?void 0:u.length)>0?null:(0,Q.jsx)("button",{type:"button",className:"bg-transparent hover:text-partner-primary-bg p-0 text-partner-primary-bg text-xs underline",onClick:function(){d((function(e){return!e})),h.current.focus()},children:f?(0,t.__)("Show all","extendify"):(0,t.__)("Show less","extendify")})]}),(0,Q.jsx)("div",{className:"overflow-y-auto p-2 -m-2",style:{maxHeight:"360px"},children:i.map((function(e){return(0,Q.jsx)(cr,{selectSiteType:m,option:e},e.id)}))})]})]})]})},fetcher:sr,fetchData:ur}],["goals",{component:function(){var r=Ae(He,Fe),n=r.data,o=r.loading,i=Ue(),a=i.toggle,s=i.has,u=fr((function(e){return e.nextPage})),c=(0,e.useRef)();return(0,e.useEffect)((function(){if(c.current){var e=requestAnimationFrame((function(){return c.current.querySelector("input").focus()}));return function(){return cancelAnimationFrame(e)}}}),[c]),(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("What do you want to accomplish with this new site?","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("You can change these later.","extendify")})]}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Select the goals relevant to your site:","extendify")}),o?(0,Q.jsx)("p",{children:(0,t.__)("Loading...","extendify")}):(0,Q.jsxs)("form",{onSubmit:function(e){e.preventDefault(),u()},className:"w-full max-w-2xl grid lg:grid-cols-2 gap-4 goal-select",children:[(0,Q.jsx)("input",{type:"submit",className:"hidden"}),n&&(null==n?void 0:n.map((function(e,t){return(0,Q.jsx)("div",{className:"border p-4",ref:0===t?c:void 0,children:(0,Q.jsx)(K.CheckboxControl,{label:e.title,checked:s("goals",e),onChange:function(){return a("goals",e)}})},e.id)})))]})]})]})},fetcher:Fe,fetchData:He}],["site-style-select",{component:function(){var r,n=Ue((function(e){return e.siteType})),o=fr((function(e){return e.nextPage})),i=Ae(rr,tr),a=i.data,s=i.loading,u=function(){var t=(0,e.useRef)(!1);return(0,e.useLayoutEffect)((function(){return t.current=!0,function(){return t.current=!1}})),t}(),c=(0,e.useCallback)((function(e){Ue.getState().setStyle(e),o()}),[o]),l=$t((0,e.useState)([]),2),f=l[0],d=l[1];return(0,e.useEffect)((function(){null!=a&&a.length&&er(ne().mark((function e(){var t,r,n,o;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Xt(a),e.prev=1,n=ne().mark((function e(){var t;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.value,u.current){e.next=3;break}return e.abrupt("return",{v:void 0});case 3:return d((function(e){return[].concat(Zt(e),[t])})),e.next=6,new Promise((function(e){return setTimeout(e,1e3)}));case 6:case"end":return e.stop()}}),e)})),t.s();case 4:if((r=t.n()).done){e.next=11;break}return e.delegateYield(n(),"t0",6);case 6:if("object"!==Jt(o=e.t0)){e.next=9;break}return e.abrupt("return",o.v);case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),t.e(e.t1);case 16:return e.prev=16,t.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})))()}),[a,u]),(0,e.useEffect)((function(){null!=f&&f.length&&!Ue.getState().style&&Ue.getState().setStyle(f[0])}),[f]),(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.sprintf)((0,t.__)("Now pick a design for your new %s site.","extendify"),null==n||null===(r=n.label)||void 0===r?void 0:r.toLowerCase())}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("You can personalize this later.","extendify")})]}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:s?(0,t.__)("Please wait a moment while we generate style previews...","extendify"):(0,t.__)("Pick your style","extendify")}),(0,Q.jsxs)("div",{className:"lg:flex space-y-6 -m-6 lg:space-y-0 flex-wrap",children:[null==f?void 0:f.map((function(e){return(0,Q.jsx)("div",{className:"p-6 relative",style:{height:590,width:425},children:(0,Q.jsx)(Lt,{style:e,selectStyle:c,blockHeight:590})},e.recordId)})),null==a?void 0:a.slice(null==f?void 0:f.length).map((function(e){return(0,Q.jsx)("div",{style:{height:590,width:425},className:"p-6 relative",children:(0,Q.jsx)("div",{className:"bg-gray-50 h-full w-full flex items-center justify-center",children:(0,Q.jsx)(Tt,{className:"spin w-8"})})},e.slug)}))]})]})]})}}],["site-pages-select",{component:function(){var r=Ae(qt,Wt).data,n=Ft((0,e.useState)(!1),2),o=n[0],i=n[1],a=Ue(),s=a.pages,u=a.add,c=a.remove;return(0,e.useEffect)((function(){i((null==s?void 0:s.length)===(null==r?void 0:r.length))}),[s,r]),(0,e.useEffect)((function(){null==r||r.map((function(e){return u("pages",e)}))}),[r,u]),(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("What pages do you want on this site?","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("You may add more later","extendify")})]}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsxs)("div",{className:"flex justify-between",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Pick the pages you'd like to add to your site","extendify")}),(0,Q.jsx)(K.CheckboxControl,{label:(0,t.__)("Include all pages","extendify"),checked:o,onChange:function(){null==r||r.map((function(e){"home"!==e.slug&&(o?c("pages",e):u("pages",e))}))}})]}),(0,Q.jsx)("div",{className:"lg:flex space-y-6 -m-8 lg:space-y-0 flex-wrap",children:null==r?void 0:r.map((function(e){return(0,Q.jsx)("div",{className:"p-8 relative",style:{height:442.5,width:318.75},children:(0,Q.jsx)(Ut,{lock:"home"===(null==e?void 0:e.slug),page:e,blockHeight:442.5})},e.id)}))})]})]})},fetcher:Wt,fetchData:qt}],["site-summary",{component:function(){var e=Ue(),r=e.siteType,n=e.style,o=e.pages,i=e.plugins,a=fr((function(e){return e.setPage}));return(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("Let's launch your site!","extendify")}),(0,Q.jsx)("p",{className:"text-base",children:(0,t.__)("Review your site configuration.","extendify")})]}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Site settings","extendify")}),(0,Q.jsxs)("div",{className:"flex flex-col space-y-8",children:[(0,Q.jsxs)("div",{className:"flex items-center",children:[(0,Q.jsx)("div",{className:"w-20 flex-shrink-0 text-base",children:(0,t.__)("Industry:","extendify")}),null!=r&&r.label?(0,Q.jsx)("div",{className:"p-4 py-2 rounded-lg text-base flex bg-transparent border border-gray-600 cursor-pointer",onClick:function(){return a("site-type-select")},title:(0,t.__)("Press to change the site type","extendify"),children:r.label}):(0,Q.jsx)("button",{onClick:function(){return a("site-type-select")},className:"bg-transparent text-partner-primary underline text-base",children:(0,t.__)("Press to set a site type","extendify")})]}),(0,Q.jsxs)("div",{className:"flex items-start",children:[(0,Q.jsx)("div",{className:"w-20 flex-shrink-0 text-base",children:(0,t.__)("Style:","extendify")}),null!=n&&n.label?(0,Q.jsx)("div",{className:"cursor-pointer overflow-hidden border rounded-lg",onClick:function(){return a("site-style-select")},title:(0,t.__)("Press to change the site style","extendify"),children:(0,Q.jsx)("div",{className:"p-2 relative",style:{height:354,width:255},children:(0,Q.jsx)(Lt,{style:n,blockHeight:354})},n.recordId)}):(0,Q.jsx)("button",{onClick:function(){return a("site-style-select")},className:"bg-transparent text-partner-primary underline text-base",children:(0,t.__)("Press to set a style type","extendify")})]}),(0,Q.jsxs)("div",{className:"flex items-start",children:[(0,Q.jsx)("div",{className:"w-20 flex-shrink-0 text-base",children:(0,t.__)("Pages:","extendify")}),o.length>0?(0,Q.jsx)("div",{className:"flex items-start space-x-2 cursor-pointer w-full",onClick:function(){return a("site-pages-select")},title:(0,t.__)("Press to change the selected pages","extendify"),children:(0,Q.jsx)("div",{className:"lg:flex space-y-6 -m-8 lg:space-y-0 flex-wrap",children:null==o?void 0:o.map((function(e){return(0,Q.jsx)("div",{className:"p-8 relative",style:{height:354,width:255},children:(0,Q.jsx)(Ut,{displayOnly:!0,page:e,blockHeight:175})},e.id)}))})}):(0,Q.jsx)("button",{onClick:function(){return a("site-pages-select")},className:"bg-transparent text-partner-primary underline text-base",children:(0,t.__)("Press to set your pages","extendify")})]}),i.length>0?(0,Q.jsxs)("div",{className:"flex items-start",children:[(0,Q.jsx)("div",{className:"w-20 flex-shrink-0 text-base",children:(0,t.__)("Plugins:","extendify")}),(0,Q.jsx)("div",{className:"flex items-start space-x-2 cursor-pointer w-full",onClick:function(){return a("suggested-plugins")},title:(0,t.__)("Press to change the selected plugins","extendify"),children:(0,Q.jsx)("div",{className:"grid w-full grid-cols-3 gap-4",children:i.map((function(e){return(0,Q.jsx)(nr,{lock:!0,image:(t=e.previewImage,null==t||null===(r=t[0])||void 0===r||null===(n=r.url)||void 0===n||null===(o=n.split(/[?#]/))||void 0===o?void 0:o[0]),name:e.name,heading:e.heading,description:e.description},e.id);var t,r,n,o}))})})]}):null]})]})]})}}]],fr=be(we((function(e,t){return{pages:new Map(lr),currentPageIndex:0,count:function(){return t().pages.size},pageOrder:function(){return Array.from(t().pages.keys())},currentPageData:function(){return t().pages.get(t().pageOrder()[t().currentPageIndex])},nextPageData:function(){var e=t().currentPageIndex+1;return e>t().pageOrder().length-1?{}:t().pages.get(t().pageOrder()[e])},setPage:function(r){"string"==typeof r&&(r=t().pageOrder().indexOf(r)),r>t().pageOrder().length-1||r<0||e({currentPageIndex:r})},nextPage:function(){t().setPage(t().currentPageIndex+1)},previousPage:function(){t().setPage(t().currentPageIndex-1)}}}))),dr=function(){var e=fr((function(e){return e.nextPage})),r=fr((function(e){return e.previousPage})),n=fr((function(e){return e.currentPageIndex})),o=fr((function(e){return e.count()})),i=Ue((function(e){return e.canLaunch()})),a=n===o-1,s=0===n;return(0,Q.jsxs)("div",{className:"flex items-center justify-between space-x-2",children:[(0,Q.jsx)("div",{className:"flex-1"}),(0,Q.jsx)(ve,{currentPageIndex:n,totalPages:o}),(0,Q.jsxs)("div",{className:"flex space-x-2 flex-1 justify-end",children:[s||(0,Q.jsx)("button",{className:"px-4 py-3 bg-transparent hover:bg-gray-200 font-medium button-focus focus:bg-gray-100",type:"button",onClick:r,children:(0,t.__)("Previous","extendify")}),i&&a?(0,Q.jsx)("button",{className:"px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",type:"button",onClick:function(){return Ne.setState({generating:!0})},children:(0,t.__)("Launch site","extendify")}):(0,Q.jsx)("button",{className:"px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",type:"button",onClick:e,children:(0,t.__)("Next","extendify")})]})]})},hr=function(e){var r,n,o,i=e.children,a=e.includeNav,s=void 0===a||a;return(0,Q.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,Q.jsxs)("div",{className:"bg-partner-primary-bg text-partner-primary-text py-12 px-10 md:h-screen flex flex-col justify-between md:w-40vw md:max-w-md flex-shrink-0",children:[(0,Q.jsxs)("div",{className:"max-w-sm pr-8",children:[(null===(r=window.extOnbData)||void 0===r?void 0:r.partnerLogo)&&(0,Q.jsx)("div",{className:"pb-8",children:(0,Q.jsx)("img",{src:window.extOnbData.partnerLogo,alt:null!==(n=null===(o=window.extOnbData)||void 0===o?void 0:o.partnerName)&&void 0!==n?n:""})}),i[0]]}),(0,Q.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Q.jsx)("span",{className:"opacity-70 text-xs",children:(0,t.__)("Powered by","extendify")}),(0,Q.jsxs)("span",{className:"relative",children:[(0,Q.jsx)(pt,{className:"logo text-white w-28"}),(0,Q.jsx)("span",{className:"absolute -bottom-2 right-3 font-semibold tracking-tight",children:(0,t.__)("Launch","extendify")})]})]})]}),(0,Q.jsxs)("div",{className:"flex-grow md:h-screen md:overflow-y-scroll",children:[s?(0,Q.jsx)("div",{className:"py-4 px-8 sticky top-0 bg-white z-50",children:(0,Q.jsx)(dr,{})}):null,(0,Q.jsx)("div",{className:"mt-8 p-8 lg:px-12 flex justify-center",children:i[1]})]})]})};function pr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return yr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yr(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function yr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vr(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}var mr=function(){var e,t=(e=ne().mark((function e(t,r,n){var o,i,a,s,u,c,l,f,d,h;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o={},i=pr(t),e.prev=2,i.s();case 4:if((a=i.n()).done){e.next=18;break}return s=a.value,e.next=8,se({siteType:r.slug,layoutType:s.slug,baseLayout:"home"===s.slug?null==n?void 0:n.homeBaseLayout:null,kit:"home"!==s.slug?null==n?void 0:n.kit:null});case 8:return u=e.sent,c="",null!=u&&u.data&&(c=[null==u||null===(l=u.data)||void 0===l?void 0:l.code,null==u||null===(f=u.data)||void 0===f?void 0:f.code2].filter(Boolean).join("")),d=s.slug,e.next=14,de({title:s.title,name:d,status:"publish",content:c});case 14:h=e.sent,o[d]={id:h.id,title:s.title};case 16:e.next=4;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(2),i.e(e.t0);case 23:return e.prev=23,i.f(),e.finish(23);case 26:if(null==o||!o.home){e.next=34;break}return e.next=29,le("show_on_front","page");case 29:return e.next=31,le("page_on_front",o.home.id);case 31:if(null==o||!o.blog){e.next=34;break}return e.next=34,le("page_for_posts",o.blog);case 34:return e.next=36,le("extendify_onboarding_completed",(new Date).toISOString());case 36:return e.abrupt("return",o);case 37:case"end":return e.stop()}}),e,null,[[2,20,23,26]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){vr(i,n,o,a,s,"next",e)}function s(e){vr(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}(),gr=function(e){return function(e){return ie.post("onboarding/save-theme-json",{themeJson:e})}(e.themeJson)},br=function(){return(0,Q.jsxs)(hr,{includeNav:!1,children:[(0,Q.jsx)("div",{children:(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("We encountered an error.","extendify")})}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("We encountered an error that we can't recover from. You can attempt to start over by pressing the button below.","extendify")}),(0,Q.jsx)("div",{className:"flex flex-col items-start space-y-4 text-base",children:(0,Q.jsx)("a",{href:"".concat(window.extOnbData.site,"/wp-admin/post-new.php?extendify=onboarding"),children:(0,t.__)("Start over")})})]})]})};function wr(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function xr(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){wr(i,n,o,a,s,"next",e)}function s(e){wr(i,n,o,a,s,"throw",e)}a(void 0)}))}}function jr(e){return function(e){if(Array.isArray(e))return Sr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Er(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Or(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||Er(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 Er(e,t){if(e){if("string"==typeof e)return Sr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sr(e,t):void 0}}function Sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var _r=function(){var r=Ue((function(e){return e.canLaunch()})),n=Ue(),o=n.siteType,i=n.siteInformation,a=n.pages,s=n.style,u=n.goals,c=n.plugins,l=Or((0,e.useState)([]),2),f=l[0],d=l[1],h=(0,te.useSelect)((function(e){return e("core").getCurrentTheme()})),p=function(e){return d((function(t){return[e].concat(jr(t))}))};(0,e.useEffect)((function(){var e=function(e){return e.preventDefault(),e.returnValue=""},t={capture:!0};return window.addEventListener("beforeunload",e,t),function(){window.removeEventListener("beforeunload",e,t)}}),[]);var y=(0,e.useCallback)(xr(ne().mark((function e(){var n;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}throw new Error((0,t.__)("Site is not ready to launch.","extendify"));case 2:return p((0,t.__)("Preparing your website","extendify")),e.next=5,le("blogname",i.title);case 5:return e.next=7,new Promise((function(e){return setTimeout(e,2e3)}));case 7:return p((0,t.__)("Installing your theme","extendify")),e.next=10,gr(s);case 10:if(null==c||!c.length){e.next=14;break}return p((0,t.__)("Installing plugins","extendify")),e.next=14,Promise.all([].concat(jr(c.map((function(e){return he(e.wordpressSlug)}))),[new Promise((function(e){return setTimeout(e,2e3)}))]));case 14:return e.next=16,gr(s);case 16:return e.next=18,new Promise((function(e){return setTimeout(e,2e3)}));case 18:return p((0,t.__)("Inserting header area","extendify")),e.next=21,ye("".concat(null==h?void 0:h.stylesheet,"//header"),null==s?void 0:s.headerCode);case 21:return e.next=23,new Promise((function(e){return setTimeout(e,2e3)}));case 23:return p((0,t.__)("Generating page content","extendify")),e.next=26,mr(a,o,s);case 26:return n=e.sent,e.next=29,new Promise((function(e){return setTimeout(e,2e3)}));case 29:return p((0,t.__)("Inserting footer area","extendify")),e.next=32,ye("".concat(null==h?void 0:h.stylesheet,"//footer"),null==s?void 0:s.footerCode);case 32:return e.next=34,new Promise((function(e){return setTimeout(e,2e3)}));case 34:return p((0,t.__)("Finalizing your site","extendify")),e.next=37,l={siteType:[o.recordId],style:[s.recordId],pages:null==a?void 0:a.map((function(e){return e.id})),goals:null==u?void 0:u.map((function(e){return e.id}))},ie.post("onboarding/orders",l);case 37:return e.abrupt("return",n);case 38:case"end":return e.stop()}var l}),e)}))),[a,u,c,o,s,r,null==h?void 0:h.stylesheet,i.title]);return(0,e.useEffect)((function(){null!=h&&h.stylesheet&&y().then((function(e){Ne.setState({generatedPages:e})}))}),[y,null==h?void 0:h.stylesheet]),r?(0,Q.jsxs)(hr,{includeNav:!1,children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("Building your site now!","extendify")}),(0,Q.jsx)("p",{className:"text-base",children:(0,t.__)("Please don't close the window.","extendify")})]}),(0,Q.jsx)("div",{className:"w-full",children:(0,Q.jsx)("div",{className:"flex flex-col items-start space-y-4",children:f.map((function(e,r){return r?(0,Q.jsxs)("div",{className:"ml-12 text-base text-gray-500 flex",children:[(0,Q.jsx)(rt,{className:"text-green-500 w-6 mr-1"}),(0,t.sprintf)(e,"...")]},e):(0,Q.jsxs)("div",{className:"text-4xl flex space-x-4 items-center",children:[(0,Q.jsx)(Tt,{className:"spin w-10 mr-2"}),(0,t.sprintf)(e,"...")]},e)}))})})]}):(0,Q.jsx)(br,{})};function Pr(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[r,n=""]=t.split("=").filter(Boolean).map(decodeURIComponent);if(r){!function(e,t,r){const n=t.length,o=n-1;for(let i=0;i<n;i++){let n=t[i];!n&&Array.isArray(e)&&(n=e.length.toString()),n=["__proto__","constructor","prototype"].includes(n)?n.toUpperCase():n;const a=!isNaN(Number(t[i+1]));e[n]=i===o?r:e[n]||(a?[]:{}),Array.isArray(e[n])&&!a&&(e[n]={...e[n]}),e=e[n]}}(e,r.replace(/\]/g,"").split("["),n)}return e}),Object.create(null))}function Cr(e){let t="";const r=Object.entries(e);let n;for(;n=r.shift();){let[e,o]=n;if(Array.isArray(o)||o&&o.constructor===Object){const t=Object.entries(o).reverse();for(const[n,o]of t)r.unshift([`${e}[${n}]`,o])}else void 0!==o&&(null===o&&(o=""),t+="&"+[e,o].map(encodeURIComponent).join("="))}return t.substr(1)}function Nr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;let r=e;const n=e.indexOf("?");return-1!==n&&(t=Object.assign(Pr(e),t),r=r.substr(0,n)),r+"?"+Cr(t)}var Ar={};!function e(t,r,n,o){var i=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function a(){}function s(e){var n=r.exports.Promise,o=void 0!==n?n:t.Promise;return"function"==typeof o?new o(e):(e(a,a),null)}var u,c,l,f,d,h,p,y,v,m=(l=Math.floor(1e3/60),f={},d=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(u=function(e){var t=Math.random();return f[t]=requestAnimationFrame((function r(n){d===n||d+l-1<n?(d=n,delete f[t],e()):f[t]=requestAnimationFrame(r)})),t},c=function(e){f[e]&&cancelAnimationFrame(f[e])}):(u=function(e){return setTimeout(e,l)},c=function(e){return clearTimeout(e)}),{frame:u,cancel:c}),g=(y={},function(){if(h)return h;if(!n&&i){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{h=new Worker(URL.createObjectURL(new Blob([t])))}catch(e){return void 0!==typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",e),null}!function(e){function t(t,r){e.postMessage({options:t||{},callback:r})}e.init=function(t){var r=t.transferControlToOffscreen();e.postMessage({canvas:r},[r])},e.fire=function(r,n,o){if(p)return t(r,null),p;var i=Math.random().toString(36).slice(2);return p=s((function(n){function a(t){t.data.callback===i&&(delete y[i],e.removeEventListener("message",a),p=null,o(),n())}e.addEventListener("message",a),t(r,i),y[i]=a.bind(null,{data:{callback:i}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),y)y[t](),delete y[t]}}(h)}return h}),b={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function w(e,t,r){return function(e,t){return t?t(e):e}(e&&null!=e[t]?e[t]:b[t],r)}function x(e){return e<0?0:Math.floor(e)}function j(e){return parseInt(e,16)}function O(e){return e.map(E)}function E(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:j(t.substring(0,2)),g:j(t.substring(2,4)),b:j(t.substring(4,6))}}function S(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function _(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function P(e,t,r,i,a){var u,c,l=t.slice(),f=e.getContext("2d"),d=s((function(t){function s(){u=c=null,f.clearRect(0,0,i.width,i.height),a(),t()}u=m.frame((function t(){!n||i.width===o.width&&i.height===o.height||(i.width=e.width=o.width,i.height=e.height=o.height),i.width||i.height||(r(e),i.width=e.width,i.height=e.height),f.clearRect(0,0,i.width,i.height),l=l.filter((function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.wobble+=t.wobbleSpeed,t.velocity*=t.decay,t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble);var r=t.tick++/t.totalTicks,n=t.x+t.random*t.tiltCos,o=t.y+t.random*t.tiltSin,i=t.wobbleX+t.random*t.tiltCos,a=t.wobbleY+t.random*t.tiltSin;return e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-r)+")",e.beginPath(),"circle"===t.shape?e.ellipse?e.ellipse(t.x,t.y,Math.abs(i-n)*t.ovalScalar,Math.abs(a-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,r,n,o,i,a,s,u){e.save(),e.translate(t,r),e.rotate(i),e.scale(n,o),e.arc(0,0,1,a,s,u),e.restore()}(e,t.x,t.y,Math.abs(i-n)*t.ovalScalar,Math.abs(a-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):(e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(o)),e.lineTo(Math.floor(i),Math.floor(a)),e.lineTo(Math.floor(n),Math.floor(t.wobbleY))),e.closePath(),e.fill(),t.tick<t.totalTicks}(f,e)})),l.length?u=m.frame(t):s()})),c=s}));return{addFettis:function(e){return l=l.concat(e),d},canvas:e,promise:d,reset:function(){u&&m.cancel(u),c&&c()}}}function C(e,r){var n,o=!e,a=!!w(r||{},"resize"),u=w(r,"disableForReducedMotion",Boolean),c=i&&!!w(r||{},"useWorker")?g():null,l=o?S:_,f=!(!e||!c)&&!!e.__confetti_initialized,d="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function h(t,r,o){for(var i,a,s,u,c,f=w(t,"particleCount",x),d=w(t,"angle",Number),h=w(t,"spread",Number),p=w(t,"startVelocity",Number),y=w(t,"decay",Number),v=w(t,"gravity",Number),m=w(t,"drift",Number),g=w(t,"colors",O),b=w(t,"ticks",Number),j=w(t,"shapes"),E=w(t,"scalar"),S=function(e){var t=w(e,"origin",Object);return t.x=w(t,"x",Number),t.y=w(t,"y",Number),t}(t),_=f,C=[],N=e.width*S.x,A=e.height*S.y;_--;)C.push((i={x:N,y:A,angle:d,spread:h,startVelocity:p,color:g[_%g.length],shape:j[(u=0,c=j.length,Math.floor(Math.random()*(c-u))+u)],ticks:b,decay:y,gravity:v,drift:m,scalar:E},a=void 0,s=void 0,a=i.angle*(Math.PI/180),s=i.spread*(Math.PI/180),{x:i.x,y:i.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*i.startVelocity+Math.random()*i.startVelocity,angle2D:-a+(.5*s-Math.random()*s),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:i.color,shape:i.shape,tick:0,totalTicks:i.ticks,decay:i.decay,drift:i.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*i.gravity,ovalScalar:.6,scalar:i.scalar}));return n?n.addFettis(C):(n=P(e,C,l,r,o)).promise}function p(r){var i=u||w(r,"disableForReducedMotion",Boolean),p=w(r,"zIndex",Number);if(i&&d)return s((function(e){e()}));o&&n?e=n.canvas:o&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(p),document.body.appendChild(e)),a&&!f&&l(e);var y={width:e.width,height:e.height};function v(){if(c){var t={getBoundingClientRect:function(){if(!o)return e.getBoundingClientRect()}};return l(t),void c.postMessage({resize:{width:t.width,height:t.height}})}y.width=y.height=null}function m(){n=null,a&&t.removeEventListener("resize",v),o&&e&&(document.body.removeChild(e),e=null,f=!1)}return c&&!f&&c.init(e),f=!0,c&&(e.__confetti_initialized=!0),a&&t.addEventListener("resize",v,!1),c?c.fire(r,y,m):h(r,y,m)}return p.reset=function(){c&&c.reset(),n&&n.reset()},p}function N(){return v||(v=C(null,{useWorker:!0,resize:!0})),v}r.exports=function(){return N().apply(this,arguments)},r.exports.reset=function(){N().reset()},r.exports.create=C}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),Ar,!1);const Tr=Ar.exports;Ar.exports.create;function Rr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(r),!0).forEach((function(t){Lr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Lr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ir=function(){var r,n,o=Ne((function(e){return e.generatedPages})),i=Ue((function(e){return e.siteType}));return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,e.useEffect)((function(){var e=Date.now()+r;!function r(){Tr(kr(kr({},t),{},{disableForReducedMotion:!0,zIndex:1e5})),Date.now()<e&&requestAnimationFrame(r)}()}),[t,r])}({particleCount:2,angle:60,spread:55,origin:{x:0,y:.7},colors:["var(--ext-partner-theme-primary-text, #ffffff)"]},3e3),(0,Q.jsxs)(hr,{includeNav:!1,children:[(0,Q.jsx)("div",{children:(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.sprintf)((0,t.__)("Your site has been successfully created. Enjoy!","extendify"),null==i||null===(r=i.label)||void 0===r?void 0:r.toLowerCase())})}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base text-center",children:(0,t.__)("Your site is ready! You can now go to your site and start editing content.","extendify")}),(0,Q.jsxs)("div",{className:"text-center w-360 flex flex-col justify-center items-center -mt-150",children:[(0,Q.jsx)(rt,{className:"w-16 bg-partner-primary-bg text-partner-primary-text rounded-full"}),(0,Q.jsx)("h3",{className:"mb-8",children:(0,t.__)("All Done","extendify")}),(0,Q.jsx)("div",{className:"flex space-x-4",children:(0,Q.jsx)("a",{className:"px-4 py-3 rounded-md bg-gray-200 text-black no-underline hover:bg-partner-primary-bg hover:text-partner-primary-text font-medium",target:"_blank",rel:"noreferrer",href:window.extOnbData.home,children:(0,t.__)("View Site","extendify")})}),(0,Q.jsxs)("div",{className:"text-left self-start px-10 py-4 w-full",children:[(0,Q.jsx)("h4",{className:"",children:(0,t.__)("New Pages:","extendify")}),(0,Q.jsx)("div",{className:"",children:null===(n=Object.values(o))||void 0===n?void 0:n.map((function(e){return(0,Q.jsxs)("div",{className:"flex items-center mb-2",children:[(0,Q.jsx)(rt,{className:"w-6 text-green-500"}),(0,Q.jsx)("a",{target:"_blank",href:Nr("post.php",{post:e.id,action:"edit"}),className:"text-primary no-underline hover:underline ml-2 text-base",rel:"noreferrer",children:e.title})]},e.id)}))})]})]})]})]})};function Dr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mr(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 Mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Br,Ur=function(){var r,n,o=Ue((function(e){return e.resetState})),i=Dr((0,e.useState)(!1),2),a=i[0],s=i[1],u=fr((function(e){return e.currentPageData()})).component,c=fr((function(e){return e.nextPageData()})),l=c.fetcher,f=c.fetchData,d=Z().mutate,h=Ne((function(e){return e.generating})),p=Ne((function(e){return e.generatedPages})),y=Dr((0,e.useState)(!1),2),v=y[0],m=y[1];return n=(0,te.useSelect)((function(e){return e("core/edit-post").isFeatureActive("welcomeGuide")}),[]),(0,e.useEffect)((function(){n&&(0,te.dispatch)("core/edit-post").toggleFeature("welcomeGuide")}),[n]),(0,e.useLayoutEffect)((function(){var e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){return document.body.style.overflow=e}}),[]),(0,e.useEffect)((function(){if(v){var e=setTimeout((function(){window.dispatchEvent(new CustomEvent("extendify::close-library",{bubbles:!0}))}),0);return document.title=(0,t.__)("Extendify Launch","extendify"),function(){return clearTimeout(e)}}}),[v]),(0,e.useEffect)((function(){o();var e=new URLSearchParams(window.location.search);m(["onboarding"].includes(e.get("extendify")))}),[o]),(0,e.useEffect)((function(){l&&d(f,l)}),[l,d,f]),v?null!==(r=Object.keys(p))&&void 0!==r&&r.length?(0,Q.jsx)("div",{className:"h-screen w-screen fixed z-high inset-0 overflow-y-auto md:overflow-hidden bg-white",children:(0,Q.jsx)(Ir,{})}):(0,Q.jsxs)($,{value:{errorRetryInterval:1e3,onErrorRetry:function(e,t){var r;console.error(t,e),403!==(null==e||null===(r=e.data)||void 0===r?void 0:r.status)?a||(s(!0),setTimeout((function(){s(!1)}),5e3)):window.location.reload()}},children:[(0,Q.jsx)("div",{style:{zIndex:1e5},className:"h-screen w-screen fixed inset-0 overflow-y-auto md:overflow-hidden bg-white",children:h?(0,Q.jsx)(_r,{}):(0,Q.jsx)(u,{})}),a&&(0,Q.jsx)(ee,{})]}):null},Fr=Object.assign(document.createElement("div"),{id:"extendify-onboarding-root",className:"extendify-onboarding"});document.body.append(Fr),Br=function(){window._wpLoadBlockEditor&&(0,e.render)((0,Q.jsx)(Ur,{}),Fr)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",Br):Br())})()})();
1
  /*! For license information please see extendify-onboarding.js.LICENSE.txt */
2
+ (()=>{var e={7135:(e,t,r)=>{e.exports=r(6248)},4206:(e,t,r)=>{e.exports=r(8057)},4387:(e,t,r)=>{"use strict";var n=r(7485),o=r(4570),i=r(2940),a=r(581),s=r(574),u=r(3845),c=r(8338),l=r(4832),f=r(7354),d=r(8870),p=r(4906);e.exports=function(e){return new Promise((function(t,r){var h,y=e.data,v=e.headers,m=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}n.isFormData(y)&&n.isStandardBrowserEnv()&&delete v["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(w+":"+x)}var j=s(e.baseURL,e.url);function O(){if(b){var n="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};o((function(e){t(e),g()}),(function(e){r(e),g()}),i),b=null}}if(b.open(e.method.toUpperCase(),a(j,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=O:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(O)},b.onabort=function(){b&&(r(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new f(t,n.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},n.isStandardBrowserEnv()){var E=(e.withCredentials||c(j))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(v[e.xsrfHeaderName]=E)}"setRequestHeader"in b&&n.forEach(v,(function(e,t){void 0===y&&"content-type"===t.toLowerCase()?delete v[t]:b.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),m&&"json"!==m&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){b&&(r(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),y||(y=null);var S=p(j);S&&-1===["http","https","file"].indexOf(S)?r(new f("Unsupported protocol "+S+":",f.ERR_BAD_REQUEST,e)):b.send(y)}))}},8057:(e,t,r)=>{"use strict";var n=r(7485),o=r(875),i=r(5029),a=r(4941);var s=function e(t){var r=new i(t),s=o(i.prototype.request,r);return n.extend(s,i.prototype,r),n.extend(s,r),s.create=function(r){return e(a(t,r))},s}(r(8396));s.Axios=i,s.CanceledError=r(8870),s.CancelToken=r(4603),s.isCancel=r(1475),s.VERSION=r(3345).version,s.toFormData=r(1020),s.AxiosError=r(7354),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=r(5739),s.isAxiosError=r(5835),e.exports=s,e.exports.default=s},4603:(e,t,r)=>{"use strict";var n=r(8870);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},8870:(e,t,r)=>{"use strict";var n=r(7354);function o(e){n.call(this,null==e?"canceled":e,n.ERR_CANCELED),this.name="CanceledError"}r(7485).inherits(o,n,{__CANCEL__:!0}),e.exports=o},1475:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5029:(e,t,r)=>{"use strict";var n=r(7485),o=r(581),i=r(8096),a=r(5009),s=r(4941),u=r(574),c=r(6144),l=c.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,n),f=f.concat(u),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var d=t;n.length;){var p=n.shift(),h=n.shift();try{d=p(d)}catch(e){h(e);break}}try{i=a(d)}catch(e){return Promise.reject(e)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},f.prototype.getUri=function(e){e=s(this.defaults,e);var t=u(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},7354:(e,t,r)=>{"use strict";var n=r(7485);function o(e,t,r,n,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}n.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,r,a,s,u){var c=Object.create(i);return n.toFlatObject(e,c,(function(e){return e!==Error.prototype})),o.call(c,e.message,t,r,a,s),c.name=e.name,u&&Object.assign(c,u),c},e.exports=o},8096:(e,t,r)=>{"use strict";var n=r(7485);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},574:(e,t,r)=>{"use strict";var n=r(2642),o=r(2288);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},5009:(e,t,r)=>{"use strict";var n=r(7485),o=r(9212),i=r(1475),a=r(8396),s=r(8870);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4941:(e,t,r)=>{"use strict";var n=r(7485);e.exports=function(e,t){t=t||{};var r={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(e[r],t[r])}function a(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function s(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(void 0,t[r])}function u(r){return r in t?o(e[r],t[r]):r in e?o(void 0,e[r]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);n.isUndefined(o)&&t!==u||(r[e]=o)})),r}},4570:(e,t,r)=>{"use strict";var n=r(7354);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},9212:(e,t,r)=>{"use strict";var n=r(7485),o=r(8396);e.exports=function(e,t,r){var i=this||o;return n.forEach(r,(function(r){e=r.call(i,e,t)})),e}},8396:(e,t,r)=>{"use strict";var n=r(7061),o=r(7485),i=r(1446),a=r(7354),s=r(4832),u=r(1020),c={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var f,d={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==n&&"[object process]"===Object.prototype.toString.call(n))&&(f=r(4387)),f),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,n=o.isObject(e),a=t&&t["Content-Type"];if((r=o.isFileList(e))||n&&"multipart/form-data"===a){var s=this.env&&this.env.FormData;return u(r?{"files[]":e}:e,s&&new s)}return n||"application/json"===a?(l(t,"application/json"),function(e,t,r){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a.from(e,a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(8750)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){d.headers[e]=o.merge(c)})),e.exports=d},4832:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},3345:e=>{e.exports={version:"0.27.2"}},875:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},581:(e,t,r)=>{"use strict";var n=r(7485);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},2288:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2940:(e,t,r)=>{"use strict";var n=r(7485);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},2642:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5835:(e,t,r)=>{"use strict";var n=r(7485);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},8338:(e,t,r)=>{"use strict";var n=r(7485);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},1446:(e,t,r)=>{"use strict";var n=r(7485);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},8750:e=>{e.exports=null},3845:(e,t,r)=>{"use strict";var n=r(7485),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},4906:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5739:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1020:(e,t,r)=>{"use strict";var n=r(816).Buffer,o=r(7485);e.exports=function(e,t){t=t||new FormData;var r=[];function i(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):n.from(e):e}return function e(n,a){if(o.isPlainObject(n)||o.isArray(n)){if(-1!==r.indexOf(n))throw Error("Circular reference detected in "+a);r.push(n),o.forEach(n,(function(r,n){if(!o.isUndefined(r)){var s,u=a?a+"."+n:n;if(r&&!a&&"object"==typeof r)if(o.endsWith(n,"{}"))r=JSON.stringify(r);else if(o.endsWith(n,"[]")&&(s=o.toArray(r)))return void s.forEach((function(e){!o.isUndefined(e)&&t.append(u,i(e))}));e(r,u)}})),r.pop()}else t.append(a,i(n))}(e),t}},6144:(e,t,r)=>{"use strict";var n=r(3345).version,o=r(7354),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new o(i(n," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),i=n.length;i-- >0;){var a=n[i],s=t[a];if(s){var u=e[a],c=void 0===u||s(u,a,e);if(!0!==c)throw new o("option "+a+" must be "+c,o.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},7485:(e,t,r)=>{"use strict";var n,o=r(875),i=Object.prototype.toString,a=(n=Object.create(null),function(e){var t=i.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var l=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),h=s("File"),y=s("Blob"),v=s("FileList");function m(e){return"[object Function]"===i.call(e)}var g=s("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var w,x=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:u,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||m(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:c,isDate:p,isFile:h,isBlob:y,isFunction:m,isStream:function(e){return f(e)&&m(e.pipe)},isURLSearchParams:g,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:b,merge:function e(){var t={};function r(r,n){d(t[n])&&d(r)?t[n]=e(t[n],r):d(r)?t[n]=e({},r):u(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)b(arguments[n],r);return t},extend:function(e,t,r){return b(t,(function(t,n){e[n]=r&&"function"==typeof t?o(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var n,o,i,a={};t=t||{};do{for(o=(n=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=n[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:x,isFileList:v}},4782:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=u(e),a=i[0],s=i[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),l=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t);1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=16383,s=0,u=n-o;s<u;s+=a)i.push(c(e,s,s+a>u?u:s+a));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},816:(e,t,r)=>{"use strict";var n=r(4782),o=r(8898),i=r(5182);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|h(t,r),o=(e=s(e,n)).write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|p(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=s(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function d(e,t){var r=t.length<0?0:0|p(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return P(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return N(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,o){var i,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var f=!0,d=0;d<u;d++)if(c(e,i+d)!==c(t,d)){f=!1;break}if(f)return i}return-1}function b(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function w(e,t,r,n){return z(H(t,e.length-r),e,r,n)}function x(e,t,r,n){return z(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function j(e,t,r,n){return x(e,t,r,n)}function O(e,t,r,n){return z(V(t),e,r,n)}function E(e,t,r,n){return z(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function P(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,u,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(e){var t=e.length;if(t<=_)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=_));return r}(n)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==r.g.TYPED_ARRAY_SUPPORT?r.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var a=e[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},u.byteLength=h,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):y.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(n,o),l=e.slice(t,r),f=0;f<s;++f)if(c[f]!==l[f]){i=c[f],a=l[f];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return x(this,e,t,r);case"latin1":case"binary":return j(this,e,t,r);case"base64":return O(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;function C(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function N(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function A(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=F(e[i]);return o}function k(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,r,n,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function D(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function I(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function L(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,n,i){return i||L(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,i){return i||L(e,0,r,8),o.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;r=new u(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},u.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||R(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||R(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);R(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);R(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=u.isBuffer(e)?e:H(new u(e,n).toString()),s=a.length;for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function V(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}},42:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},8898:(e,t)=>{t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?o-1:0,d=r?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=c}return(p?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[r+p]=255&a,p+=h,a/=256,c-=8);e[r+p-h]|=128*y}},5182:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},2525:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,u=o(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))r.call(a,l)&&(u[l]=a[l]);if(t){s=t(a);for(var f=0;f<s.length;f++)n.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},7061:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&d())}function d(){if(!c){var e=a(f);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new p(e,t)),1!==u.length||c||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=h,n.addListener=h,n.once=h,n.off=h,n.removeListener=h,n.removeAllListeners=h,n.emit=h,n.prependListener=h,n.prependOnceListener=h,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},1426:(e,t,r)=>{"use strict";r(2525);var n=r(7363),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,i={},c=null,l=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,n)&&!u.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:l,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},4246:(e,t,r)=>{"use strict";e.exports=r(1426)},6248:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=l(e,t,r);if("normal"===u.type){if(n=r.done?h:d,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=h,r.method="throw",r.arg=u.arg)}}}(e,r,a),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",y={};function v(){}function m(){}function g(){}var b={};u(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&n.call(x,i)&&(b=x);var j=g.prototype=v.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,s){var u=l(e[o],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function S(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function N(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:A}}function A(){return{value:t,done:!0}}return m.prototype=g,u(j,"constructor",g),u(g,"constructor",m),m.displayName=u(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,s,"GeneratorFunction")),e.prototype=Object.create(j),e},e.awrap=function(e){return{__await:e}},O(E.prototype),u(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(j),u(j,s,"Generator"),u(j,i,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=N,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},7363:e=>{"use strict";e.exports=React}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=wp.element,t=wp.data;var n=r(7363);function o(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function i(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var a,s=function(){},u=s(),c=Object,l=function(e){return e===u},f=function(e){return"function"==typeof e},d=function(e,t){return c.assign({},e,t)},p="undefined",h=function(){return typeof window!=p},y=new WeakMap,v=0,m=function(e){var t,r,n=typeof e,o=e&&e.constructor,i=o==Date;if(c(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=y.get(e))return t;if(t=++v+"~",y.set(e,t),o==Array){for(t="@",r=0;r<e.length;r++)t+=m(e[r])+",";y.set(e,t)}if(o==c){t="#";for(var a=c.keys(e).sort();!l(r=a.pop());)l(e[r])||(t+=r+":"+m(e[r])+",");y.set(e,t)}}return t},g=!0,b=h(),w=typeof document!=p,x=b&&window.addEventListener?window.addEventListener.bind(window):s,j=w?document.addEventListener.bind(document):s,O=b&&window.removeEventListener?window.removeEventListener.bind(window):s,E=w?document.removeEventListener.bind(document):s,S={isOnline:function(){return g},isVisible:function(){var e=w&&document.visibilityState;return l(e)||"hidden"!==e}},P={initFocus:function(e){return j("visibilitychange",e),x("focus",e),function(){E("visibilitychange",e),O("focus",e)}},initReconnect:function(e){var t=function(){g=!0,e()},r=function(){g=!1};return x("online",t),x("offline",r),function(){O("online",t),O("offline",r)}}},_=!h()||"Deno"in window,C=function(e){return h()&&typeof window.requestAnimationFrame!=p?window.requestAnimationFrame(e):setTimeout(e,1)},N=_?n.useEffect:n.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,k=!_&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),T=function(e){if(f(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?m(e):"",t,e?"$swr$"+e:""]},R=new WeakMap,D=function(e,t,r,n,o,i,a){void 0===a&&(a=!0);var s=R.get(e),u=s[0],c=s[1],l=s[3],f=u[t],d=c[t];if(a&&d)for(var p=0;p<d.length;++p)d[p](r,n,o);return i&&(delete l[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},I=0,L=function(){return++I},M=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(void 0,void 0,void 0,(function(){var t,r,n,o,a,s,c,p,h,y,v,m,g,b,w,x,j,O,E,S,P;return i(this,(function(i){switch(i.label){case 0:if(t=e[0],r=e[1],n=e[2],o=e[3],s=!!l((a="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||a.populateCache,c=!1!==a.revalidate,p=!1!==a.rollbackOnError,h=a.optimisticData,y=T(r),v=y[0],m=y[2],!v)return[2];if(g=R.get(t),b=g[2],e.length<3)return[2,D(t,v,t.get(v),u,u,c,!0)];if(w=n,j=L(),b[v]=[j,0],O=!l(h),E=t.get(v),O&&(S=f(h)?h(E):h,t.set(v,S),D(t,v,S)),f(w))try{w=w(t.get(v))}catch(e){x=e}return w&&f(w.then)?[4,w.catch((function(e){x=e}))]:[3,2];case 1:if(w=i.sent(),j!==b[v][0]){if(x)throw x;return[2,w]}x&&O&&p&&(s=!0,w=E,t.set(v,E)),i.label=2;case 2:return s&&(x||(f(s)&&(w=s(w,E)),t.set(v,w)),t.set(m,d(t.get(m),{error:x}))),b[v][1]=L(),[4,D(t,v,w,x,u,c,!!s)];case 3:if(P=i.sent(),x)throw x;return[2,s?P:w]}}))}))},B=function(e,t){for(var r in e)e[r][0]&&e[r][0](t)},U=function(e,t){if(!R.has(e)){var r=d(P,t),n={},o=M.bind(u,e),i=s;if(R.set(e,[n,{},{},{},o]),!_){var a=r.initFocus(setTimeout.bind(u,B.bind(u,n,0))),c=r.initReconnect(setTimeout.bind(u,B.bind(u,n,1)));i=function(){a&&a(),c&&c(),R.delete(e)}}return[e,o,i]}return[e,R.get(e)[4]]},F=U(new Map),H=F[0],V=F[1],z=d({onLoadingSlow:s,onSuccess:s,onError:s,onErrorRetry:function(e,t,r,n,o){var i=r.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;!l(i)&&a>i||setTimeout(n,s,o)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:k?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:k?5e3:3e3,compare:function(e,t){return m(e)==m(t)},isPaused:function(){return!1},cache:H,mutate:V,fallback:{}},S),Y=function(e,t){var r=d(e,t);if(t){var n=e.use,o=e.fallback,i=t.use,a=t.fallback;n&&i&&(r.use=n.concat(i)),o&&a&&(r.fallback=d(o,a))}return r},q=(0,n.createContext)({}),W=function(e){return f(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Z=function(){return d(z,(0,n.useContext)(q))},X=function(e,t,r){var n=t[e]||(t[e]=[]);return n.push(r),function(){var e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}},J={dedupe:!0},$=c.defineProperty((function(e){var t=e.value,r=Y((0,n.useContext)(q),t),o=t&&t.provider,i=(0,n.useState)((function(){return o?U(o(r.cache||H),t):u}))[0];return i&&(r.cache=i[0],r.mutate=i[1]),N((function(){return i?i[2]:u}),[]),(0,n.createElement)(q.Provider,d(e,{value:r}))}),"default",{value:z}),G=(a=function(e,t,r){var a=r.cache,s=r.compare,c=r.fallbackData,p=r.suspense,h=r.revalidateOnMount,y=r.refreshInterval,v=r.refreshWhenHidden,m=r.refreshWhenOffline,g=R.get(a),b=g[0],w=g[1],x=g[2],j=g[3],O=T(e),E=O[0],S=O[1],P=O[2],A=(0,n.useRef)(!1),k=(0,n.useRef)(!1),I=(0,n.useRef)(E),B=(0,n.useRef)(t),U=(0,n.useRef)(r),F=function(){return U.current},H=function(){return F().isVisible()&&F().isOnline()},V=function(e){return a.set(P,d(a.get(P),e))},z=a.get(E),Y=l(c)?r.fallback[E]:c,q=l(z)?Y:z,W=a.get(P)||{},Z=W.error,$=!A.current,G=function(){return $&&!l(h)?h:!F().isPaused()&&(p?!l(q)&&r.revalidateIfStale:l(q)||r.revalidateIfStale)},K=!(!E||!t)&&(!!W.isValidating||$&&G()),Q=function(e,t){var r=(0,n.useState)({})[1],o=(0,n.useRef)(e),i=(0,n.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,n.useCallback)((function(e){var n=!1,a=o.current;for(var s in e){var u=s;a[u]!==e[u]&&(a[u]=e[u],i.current[u]&&(n=!0))}n&&!t.current&&r({})}),[]);return N((function(){o.current=e})),[o,i.current,a]}({data:q,error:Z,isValidating:K},k),ee=Q[0],te=Q[1],re=Q[2],ne=(0,n.useCallback)((function(e){return o(void 0,void 0,void 0,(function(){var t,n,o,c,d,p,h,y,v,m,g,b,w;return i(this,(function(i){switch(i.label){case 0:if(t=B.current,!E||!t||k.current||F().isPaused())return[2,!1];c=!0,d=e||{},p=!j[E]||!d.dedupe,h=function(){return!k.current&&E===I.current&&A.current},y=function(){var e=j[E];e&&e[1]===o&&delete j[E]},v={isValidating:!1},m=function(){V({isValidating:!1}),h()&&re(v)},V({isValidating:!0}),re({isValidating:!0}),i.label=1;case 1:return i.trys.push([1,3,,4]),p&&(D(a,E,ee.current.data,ee.current.error,!0),r.loadingTimeout&&!a.get(E)&&setTimeout((function(){c&&h()&&F().onLoadingSlow(E,r)}),r.loadingTimeout),j[E]=[t.apply(void 0,S),L()]),w=j[E],n=w[0],o=w[1],[4,n];case 2:return n=i.sent(),p&&setTimeout(y,r.dedupingInterval),j[E]&&j[E][1]===o?(V({error:u}),v.error=u,g=x[E],!l(g)&&(o<=g[0]||o<=g[1]||0===g[1])?(m(),p&&h()&&F().onDiscarded(E),[2,!1]):(s(ee.current.data,n)?v.data=ee.current.data:v.data=n,s(a.get(E),n)||a.set(E,n),p&&h()&&F().onSuccess(n,E,r),[3,4])):(p&&h()&&F().onDiscarded(E),[2,!1]);case 3:return b=i.sent(),y(),F().isPaused()||(V({error:b}),v.error=b,p&&h()&&(F().onError(b,E,r),("boolean"==typeof r.shouldRetryOnError&&r.shouldRetryOnError||f(r.shouldRetryOnError)&&r.shouldRetryOnError(b))&&H()&&F().onErrorRetry(b,E,r,ne,{retryCount:(d.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return c=!1,m(),h()&&p&&D(a,E,v.data,v.error,!1),[2,!0]}}))}))}),[E]),oe=(0,n.useCallback)(M.bind(u,a,(function(){return I.current})),[]);if(N((function(){B.current=t,U.current=r})),N((function(){if(E){var e=E!==I.current,t=ne.bind(u,J),r=0,n=X(E,w,(function(e,t,r){re(d({error:t,isValidating:r},s(ee.current.data,e)?u:{data:e}))})),o=X(E,b,(function(e){if(0==e){var n=Date.now();F().revalidateOnFocus&&n>r&&H()&&(r=n+F().focusThrottleInterval,t())}else if(1==e)F().revalidateOnReconnect&&H()&&t();else if(2==e)return ne()}));return k.current=!1,I.current=E,A.current=!0,e&&re({data:q,error:Z,isValidating:K}),G()&&(l(q)||_?t():C(t)),function(){k.current=!0,n(),o()}}}),[E,ne]),N((function(){var e;function t(){var t=f(y)?y(q):y;t&&-1!==e&&(e=setTimeout(r,t))}function r(){ee.current.error||!v&&!F().isVisible()||!m&&!F().isOnline()?t():ne(J).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[y,v,m,ne]),(0,n.useDebugValue)(q),p&&l(q)&&E)throw B.current=t,U.current=r,k.current=!1,l(Z)?ne(J):Z;return{mutate:oe,get data(){return te.data=!0,q},get error(){return te.error=!0,Z},get isValidating(){return te.isValidating=!0,K}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Z(),n=W(e),o=n[0],i=n[1],s=n[2],u=Y(r,s),c=a,l=u.use;if(l)for(var f=l.length;f-- >0;)c=l[f](c);return c(o,i||u.fetcher,u)});const K=wp.components,Q=wp.i18n;var ee=r(4246),te=function(){return(0,ee.jsx)("div",{className:"extendify-onboarding w-full fixed bottom-4 px-4 flex justify-end z-max",children:(0,ee.jsx)("div",{className:"shadow-2xl",children:(0,ee.jsx)(K.Snackbar,{children:(0,Q.__)("Just a moment, this is taking longer than expected.","extendify")})})})},re=r(7135),ne=r.n(re),oe=r(4206),ie=r.n(oe)().create({baseURL:window.extOnbData.root,headers:{"X-WP-Nonce":window.extOnbData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Onboarding":!0,"X-Extendify":!0}});function ae(e){return Object.prototype.hasOwnProperty.call(e,"data")?e.data:e}function se(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function ue(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){se(i,n,o,a,s,"next",e)}function s(e){se(i,n,o,a,s,"throw",e)}a(void 0)}))}}ie.interceptors.response.use((function(e){return ae(e)}),(function(e){return function(e){if(e.response)return console.error(e.response),Promise.reject(ae(e.response))}(e)})),ie.interceptors.request.use((function(e){return function(e){return e.headers["X-Extendify-Onboarding-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Onboarding-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e}(e)}),(function(e){return e}));var ce=function(e){return ie.post("onboarding/parse-theme-json",{themeJson:e})},le=function(e,t){return ie.post("onboarding/options",{option:e,value:t})},fe=function(){var e=ue(ne().mark((function e(t){var r,n;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ie.get("onboarding/options",{params:{option:t}});case 2:return r=e.sent,n=r.data,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),de=function(){var e=ue(ne().mark((function e(t){var r,n,o,i;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={method:"POST",headers:{"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},body:JSON.stringify(t)},n="".concat(window.extOnbData.wpRoot,"wp/v2/pages"),e.next=4,fetch(n,r);case 4:return o=e.sent,e.next=7,o.json();case 7:return i=e.sent,e.abrupt("return",i);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),pe=function(){var e=ue(ne().mark((function e(t){var r,n,o;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t&&t.wordpressSlug){e.next=2;break}return e.abrupt("return");case 2:return r={"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},n="".concat(window.extOnbData.wpRoot,"wp/v2/plugins"),e.prev=4,e.next=7,fetch(n,{method:"POST",headers:r,body:JSON.stringify({slug:t.wordpressSlug,status:"active"})});case 7:if(!((o=e.sent).status>=200&&o.status<300)){e.next=12;break}return e.next=11,o.json();case 11:return e.abrupt("return",e.sent);case 12:e.next=16;break;case 14:e.prev=14,e.t0=e.catch(4);case 16:return e.prev=16,e.next=19,he(t);case 19:return e.abrupt("return",e.sent);case 22:e.prev=22,e.t1=e.catch(16);case 24:case"end":return e.stop()}}),e,null,[[4,14],[16,22]])})));return function(t){return e.apply(this,arguments)}}(),he=function(){var e=ue(ne().mark((function e(t){var r,n,o,i,a,s,u;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},i="".concat(window.extOnbData.wpRoot,"wp/v2/plugins"),e.next=4,fetch("".concat(i,"?search=").concat(t.wordpressSlug),{headers:o});case 4:return a=e.sent,e.next=7,a.json();case 7:if(e.t1=r=e.sent,e.t0=null===e.t1,e.t0){e.next=11;break}e.t0=void 0===r;case 11:if(!e.t0){e.next=15;break}e.t2=void 0,e.next=16;break;case 15:e.t2=null===(n=r[0])||void 0===n?void 0:n.plugin;case 16:if(s=e.t2){e.next=19;break}throw new Error("Plugin not found");case 19:return e.next=21,fetch("".concat(i,"/").concat(s),{method:"POST",headers:o,body:JSON.stringify({status:"active"})});case 21:return u=e.sent,e.next=24,u.json();case 24:return e.abrupt("return",e.sent);case 25:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ye=function(){var e=ue(ne().mark((function e(t,r){var n,o,i,a;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"POST",headers:{"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},body:JSON.stringify({slug:"".concat(t),theme:"extendable",type:"wp_template_part",status:"publish",description:(0,Q.sprintf)((0,Q.__)("Added by %s","extendify"),"Extendify Launch"),content:r})},e.prev=1,o="".concat(window.extOnbData.wpRoot,"wp/v2/template-parts/").concat(t),e.next=5,fetch(o,n);case 5:return i=e.sent,e.next=8,i.json();case 8:return a=e.sent,e.abrupt("return",a);case 12:e.prev=12,e.t0=e.catch(1);case 14:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t,r){return e.apply(this,arguments)}}(),ve=function(){var e=ue(ne().mark((function e(){var t,r,n,o,i,a;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,me();case 2:return o=e.sent,o=null===(t=o)||void 0===t?void 0:t.filter((function(e){return"extendable"===e.theme})),i=null===(r=o)||void 0===r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.slug)||void 0===t?void 0:t.includes("header")})),a=null===(n=o)||void 0===n?void 0:n.filter((function(e){var t;return null==e||null===(t=e.slug)||void 0===t?void 0:t.includes("footer")})),e.abrupt("return",{headers:i,footers:a});case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),me=function(){var e=ue(ne().mark((function e(){var t;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(window.extOnbData.wpRoot+"wp/v2/template-parts",{headers:{"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce}});case 3:if((t=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,t.json();case 8:return e.abrupt("return",e.sent);case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),ge=function(){var e=ue(ne().mark((function e(){var t;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(window.extOnbData.wpRoot+"wp/v2/global-styles/themes/extendable/variations",{headers:{"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce}});case 3:if((t=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,t.json();case 8:return e.abrupt("return",e.sent);case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),be=function(){var e=ue(ne().mark((function e(t,r){var n;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(window.extOnbData.wpRoot,"wp/v2/global-styles/").concat(t),{method:"POST",headers:{"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},body:JSON.stringify({id:t,settings:r.settings,styles:r.styles})});case 3:if((n=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n.json();case 8:return e.abrupt("return",e.sent);case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),we=r(42),xe=r.n(we);function je(e){let t;const r=new Set,n=(e,n)=>{const o="function"==typeof e?e(t):e;if(o!==t){const e=t;t=n?o:Object.assign({},t,o),r.forEach((r=>r(t,e)))}},o=()=>t,i={setState:n,getState:o,subscribe:(e,n,i)=>n||i?((e,n=o,i=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=n(t);function s(){const r=n(t);if(!i(a,r)){const t=a;e(a=r,t)}}return r.add(s),()=>r.delete(s)})(e,n,i):(r.add(e),()=>r.delete(e)),destroy:()=>r.clear()};return t=e(n,o,i),i}const Oe="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?n.useEffect:n.useLayoutEffect;function Ee(e){const t="function"==typeof e?je(e):e,r=(e=t.getState,r=Object.is)=>{const[,o]=(0,n.useReducer)((e=>e+1),0),i=t.getState(),a=(0,n.useRef)(i),s=(0,n.useRef)(e),u=(0,n.useRef)(r),c=(0,n.useRef)(!1),l=(0,n.useRef)();let f;void 0===l.current&&(l.current=e(i));let d=!1;(a.current!==i||s.current!==e||u.current!==r||c.current)&&(f=e(i),d=!r(l.current,f)),Oe((()=>{d&&(l.current=f),a.current=i,s.current=e,u.current=r,c.current=!1}));const p=(0,n.useRef)(i);Oe((()=>{const e=()=>{try{const e=t.getState(),r=s.current(e);u.current(l.current,r)||(a.current=e,l.current=r,o())}catch(e){c.current=!0,o()}},r=t.subscribe(e);return t.getState()!==p.current&&e(),r}),[]);const h=d?f:l.current;return(0,n.useDebugValue)(h),h};return Object.assign(r,t),r[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[r,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},r}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function Se(e,t){return(r,n,o)=>{var i;let a=!1;"string"!=typeof t||a||(console.warn("[zustand devtools middleware]: passing `name` as directly will be not allowed in next majorpass the `name` in an object `{ name: ... }` instead"),a=!0);const s=void 0===t?{name:void 0,anonymousActionType:void 0}:"string"==typeof t?{name:t}:t;let u;void 0!==(null==(i=null==s?void 0:s.serialize)?void 0:i.options)&&console.warn("[zustand devtools middleware]: `serialize.options` is deprecated, just use `serialize`");try{u=window.__REDUX_DEVTOOLS_EXTENSION__||window.top.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return"undefined"!=typeof window&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(r,n,o);let c=Object.create(u.connect(s)),l=!1;Object.defineProperty(o,"devtools",{get:()=>(l||(console.warn("[zustand devtools middleware] `devtools` property on the store is deprecated it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),l=!0),c),set:e=>{l||(console.warn("[zustand devtools middleware] `api.devtools` is deprecated, it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),l=!0),c=e}});let f=!1;Object.defineProperty(c,"prefix",{get:()=>(f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0),""),set:()=>{f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0)}});let d=!0;o.setState=(e,t,o)=>{r(e,t),d&&c.send(void 0===o?{type:s.anonymousActionType||"anonymous"}:"string"==typeof o?{type:o}:o,n())};const p=(...e)=>{const t=d;d=!1,r(...e),d=t},h=e(o.setState,n,o);if(c.init(h),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1;const t=o.dispatch;o.dispatch=(...r)=>{"__setState"!==r[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...r)}}return c.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):Pe(e.payload,(e=>{"__setState"!==e.type?o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e):p(e.state)}));case"DISPATCH":switch(e.payload.type){case"RESET":return p(h),c.init(o.getState());case"COMMIT":return c.init(o.getState());case"ROLLBACK":return Pe(e.state,(e=>{p(e),c.init(o.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Pe(e.state,(e=>{p(e)}));case"IMPORT_STATE":{const{nextLiftedState:r}=e.payload,n=null==(t=r.computedStates.slice(-1)[0])?void 0:t.state;if(!n)return;return p(n),void c.send(null,r)}case"PAUSE_RECORDING":return d=!d}return}})),h}}const Pe=(e,t)=>{let r;try{r=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==r&&t(r)};var _e=Object.defineProperty,Ce=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ke=(e,t,r)=>t in e?_e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Te=(e,t)=>{for(var r in t||(t={}))Ne.call(t,r)&&ke(e,r,t[r]);if(Ce)for(var r of Ce(t))Ae.call(t,r)&&ke(e,r,t[r]);return e};const Re=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then:e=>Re(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>Re(t)(e)}}},De=(e,t)=>(r,n,o)=>{let i=Te({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>Te(Te({},t),e)},t);(i.blacklist||i.whitelist)&&console.warn(`The ${i.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let a=!1;const s=new Set,u=new Set;let c;try{c=i.getStorage()}catch(e){}if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),r(...e)}),n,o);c.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${i.name}' does not contain a 'removeItem' method, which will be required in v4.`);const l=Re(i.serialize),f=()=>{const e=i.partialize(Te({},n()));let t;i.whitelist&&Object.keys(e).forEach((t=>{var r;!(null==(r=i.whitelist)?void 0:r.includes(t))&&delete e[t]})),i.blacklist&&i.blacklist.forEach((t=>delete e[t]));const r=l({state:e,version:i.version}).then((e=>c.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return r},d=o.setState;o.setState=(e,t)=>{d(e,t),f()};const p=e(((...e)=>{r(...e),f()}),n,o);let h;const y=()=>{var e;if(!c)return;a=!1,s.forEach((e=>e(n())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,n()))||void 0;return Re(c.getItem.bind(c))(i.name).then((e=>{if(e)return i.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return h=i.merge(e,null!=(t=n())?t:p),r(h,!0),f()})).then((()=>{null==t||t(h,void 0),a=!0,u.forEach((e=>e(h)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{i=Te(Te({},i),e),e.getStorage&&(c=e.getStorage())},clearStorage:()=>{var e;null==(e=null==c?void 0:c.removeItem)||e.call(c,i.name)},rehydrate:()=>y(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},y(),h||p};function Ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(r),!0).forEach((function(t){Me(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Me(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Be(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}var Ue=function(){var e,t=(e=ne().mark((function e(t){var r,n,o,i,a;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ie.get("onboarding/styles",{params:t});case 2:return n=e.sent,e.next=5,ve();case 5:return o=e.sent,i=o.headers,a=o.footers,e.abrupt("return",null==n||null===(r=n.data)||void 0===r?void 0:r.map((function(e){var t,r,n,o,s,u,c=null==i?void 0:i.find((function(t){var r;return null!==(r=(null==t?void 0:t.slug)===(null==e?void 0:e.headerSlug))&&void 0!==r?r:"header"})),l=null==a?void 0:a.find((function(t){var r;return null!==(r=(null==t?void 0:t.slug)===(null==e?void 0:e.footerSlug))&&void 0!==r?r:"footer"}));return Le(Le({},e),{},{headerCode:null!==(t=null==c||null===(r=c.content)||void 0===r||null===(n=r.raw)||void 0===n?void 0:n.trim())&&void 0!==t?t:"",footerCode:null!==(o=null==l||null===(s=l.content)||void 0===s||null===(u=s.raw)||void 0===u?void 0:u.trim())&&void 0!==o?o:""})})));case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Be(i,n,o,a,s,"next",e)}function s(e){Be(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),Fe=function(e){return ie.get("onboarding/template",{params:e})},He=["className"];function Ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(r),!0).forEach((function(t){Ye(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qe(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const We=(0,e.memo)((function(e){var t=e.className,r=qe(e,He);return(0,ee.jsx)("svg",ze(ze({className:t,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:(0,ee.jsx)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"})}))}));var Ze=["className"];function Xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){$e(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ge(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const Ke=(0,e.memo)((function(e){var t=e.className,r=Ge(e,Ze);return(0,ee.jsx)("svg",Je(Je({className:"icon ".concat(t),width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:(0,ee.jsx)("path",{d:"M10 17.5L15 12L10 6.5",stroke:"currentColor",strokeWidth:"1.75"})}))}));var Qe=["className"];function et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?et(Object(r),!0).forEach((function(t){rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const ot=(0,e.memo)((function(e){var t=e.className,r=nt(e,Qe);return(0,ee.jsxs)("svg",tt(tt({className:t,viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:[(0,ee.jsx)("path",{d:"M609.404 378.5C585.07 378.5 563.404 373 544.404 362C525.737 350.667 511.07 335.333 500.404 316C489.737 296.333 484.404 273.833 484.404 248.5C484.404 222.833 489.57 200.167 499.904 180.5C510.237 160.833 524.737 145.5 543.404 134.5C562.07 123.167 583.404 117.5 607.404 117.5C632.404 117.5 653.904 122.833 671.904 133.5C689.904 143.833 703.737 158.333 713.404 177C723.404 195.667 728.404 218 728.404 244V262.5L516.404 263L517.404 224H667.904C667.904 207 662.404 193.333 651.404 183C640.737 172.667 626.237 167.5 607.904 167.5C593.57 167.5 581.404 170.5 571.404 176.5C561.737 182.5 554.404 191.5 549.404 203.5C544.404 215.5 541.904 230.167 541.904 247.5C541.904 274.167 547.57 294.333 558.904 308C570.57 321.667 587.737 328.5 610.404 328.5C627.07 328.5 640.737 325.333 651.404 319C662.404 312.667 669.57 303.667 672.904 292H729.404C724.07 319 710.737 340.167 689.404 355.5C668.404 370.833 641.737 378.5 609.404 378.5Z",fill:"currentColor"}),(0,ee.jsx)("path",{d:"M797.529 372H728.029L813.029 251L728.029 125H799.029L853.529 209L906.029 125H974.529L890.529 250.5L972.029 372H902.029L849.029 290.5L797.529 372Z",fill:"currentColor"}),(0,ee.jsx)("path",{d:"M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z",fill:"currentColor"}),(0,ee.jsx)("path",{d:"M1278.62 378.5C1254.29 378.5 1232.62 373 1213.62 362C1194.96 350.667 1180.29 335.333 1169.62 316C1158.96 296.333 1153.62 273.833 1153.62 248.5C1153.62 222.833 1158.79 200.167 1169.12 180.5C1179.46 160.833 1193.96 145.5 1212.62 134.5C1231.29 123.167 1252.62 117.5 1276.62 117.5C1301.62 117.5 1323.12 122.833 1341.12 133.5C1359.12 143.833 1372.96 158.333 1382.62 177C1392.62 195.667 1397.62 218 1397.62 244V262.5L1185.62 263L1186.62 224H1337.12C1337.12 207 1331.62 193.333 1320.62 183C1309.96 172.667 1295.46 167.5 1277.12 167.5C1262.79 167.5 1250.62 170.5 1240.62 176.5C1230.96 182.5 1223.62 191.5 1218.62 203.5C1213.62 215.5 1211.12 230.167 1211.12 247.5C1211.12 274.167 1216.79 294.333 1228.12 308C1239.79 321.667 1256.96 328.5 1279.62 328.5C1296.29 328.5 1309.96 325.333 1320.62 319C1331.62 312.667 1338.79 303.667 1342.12 292H1398.62C1393.29 319 1379.96 340.167 1358.62 355.5C1337.62 370.833 1310.96 378.5 1278.62 378.5Z",fill:"currentColor"}),(0,ee.jsx)("path",{d:"M1484.44 372H1423.44V125H1479.94L1484.94 157C1492.61 144.667 1503.44 135 1517.44 128C1531.78 121 1547.28 117.5 1563.94 117.5C1594.94 117.5 1618.28 126.667 1633.94 145C1649.94 163.333 1657.94 188.333 1657.94 220V372H1596.94V234.5C1596.94 213.833 1592.28 198.5 1582.94 188.5C1573.61 178.167 1560.94 173 1544.94 173C1525.94 173 1511.11 179 1500.44 191C1489.78 203 1484.44 219 1484.44 239V372Z",fill:"currentColor"}),(0,ee.jsx)("path",{d:"M1798.38 378.5C1774.38 378.5 1753.71 373.167 1736.38 362.5C1719.38 351.5 1706.04 336.333 1696.38 317C1687.04 297.667 1682.38 275.167 1682.38 249.5C1682.38 223.833 1687.04 201.167 1696.38 181.5C1706.04 161.5 1719.88 145.833 1737.88 134.5C1755.88 123.167 1777.21 117.5 1801.88 117.5C1819.21 117.5 1835.04 121 1849.38 128C1863.71 134.667 1874.71 144.167 1882.38 156.5V0H1942.88V372H1886.88L1882.88 333.5C1875.54 347.5 1864.21 358.5 1848.88 366.5C1833.88 374.5 1817.04 378.5 1798.38 378.5ZM1811.88 322.5C1826.21 322.5 1838.54 319.5 1848.88 313.5C1859.21 307.167 1867.21 298.333 1872.88 287C1878.88 275.333 1881.88 262.167 1881.88 247.5C1881.88 232.5 1878.88 219.5 1872.88 208.5C1867.21 197.167 1859.21 188.333 1848.88 182C1838.54 175.333 1826.21 172 1811.88 172C1797.88 172 1785.71 175.333 1775.38 182C1765.04 188.333 1757.04 197.167 1751.38 208.5C1746.04 219.833 1743.38 232.833 1743.38 247.5C1743.38 262.167 1746.04 275.167 1751.38 286.5C1757.04 297.833 1765.04 306.667 1775.38 313C1785.71 319.333 1797.88 322.5 1811.88 322.5Z",fill:"currentColor"}),(0,ee.jsx)("path",{d:"M1996.45 372V125H2057.45V372H1996.45ZM2026.45 75.5C2016.11 75.5 2007.28 72 1999.95 65C1992.95 57.6667 1989.45 48.8333 1989.45 38.5C1989.45 28.1667 1992.95 19.5 1999.95 12.5C2007.28 5.50001 2016.11 2.00002 2026.45 2.00002C2036.78 2.00002 2045.45 5.50001 2052.45 12.5C2059.78 19.5 2063.45 28.1667 2063.45 38.5C2063.45 48.8333 2059.78 57.6667 2052.45 65C2045.45 72 2036.78 75.5 2026.45 75.5Z",fill:"currentColor"}),(0,ee.jsx)("path",{d:"M2085.97 125H2240.97V176H2085.97V125ZM2241.47 2.5V54.5C2238.14 54.5 2234.64 54.5 2230.97 54.5C2227.64 54.5 2224.14 54.5 2220.47 54.5C2205.14 54.5 2194.8 58.1667 2189.47 65.5C2184.47 72.8333 2181.97 82.6667 2181.97 95V372H2121.47V95C2121.47 72.3333 2125.14 54.1667 2132.47 40.5C2139.8 26.5 2150.14 16.3333 2163.47 10C2176.8 3.33334 2192.3 0 2209.97 0C2214.97 0 2220.14 0.166671 2225.47 0.5C2231.14 0.833329 2236.47 1.49999 2241.47 2.5Z",fill:"currentColor"}),(0,ee.jsx)("path",{d:"M2330.4 125L2410.9 353L2377.9 415.5L2265.9 125H2330.4ZM2272.4 486.5V436H2308.9C2316.9 436 2323.9 435 2329.9 433C2335.9 431.333 2341.24 428 2345.9 423C2350.9 418 2355.07 410.667 2358.4 401L2460.9 125H2523.9L2402.9 427C2393.9 449.667 2382.57 466.167 2368.9 476.5C2355.24 486.833 2338.24 492 2317.9 492C2309.24 492 2301.07 491.5 2293.4 490.5C2286.07 489.833 2279.07 488.5 2272.4 486.5Z",fill:"currentColor"}),(0,ee.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M226.926 25.1299H310.197C333.783 25.1299 342.32 27.5938 350.948 32.1932C359.576 36.8108 366.326 43.5822 370.941 52.1969C375.556 60.8298 378 69.3715 378 92.9707V176.289C378 199.888 375.537 208.43 370.941 217.063C366.326 225.696 359.558 232.449 350.948 237.066C347.091 239.131 343.244 240.83 338.064 242.047V308.355C338.064 344.802 334.261 357.994 327.162 371.327C320.034 384.66 309.583 395.09 296.285 402.221C282.96 409.353 269.775 413.13 233.349 413.13H104.744C68.3172 413.13 55.1327 409.325 41.8073 402.221C28.4819 395.09 18.0583 384.632 10.9308 371.327C3.80323 358.023 0 344.802 0 308.355V179.706C0 143.259 3.80323 130.067 10.9026 116.734C18.0301 103.401 28.4819 92.9431 41.8073 85.8116C55.1045 78.7082 68.3172 74.9028 104.744 74.9028H159.808C160.841 64.0747 162.996 58.1666 166.165 52.2151C170.78 43.5822 177.547 36.8108 186.175 32.1932C194.785 27.5938 203.34 25.1299 226.926 25.1299ZM184.128 78.1641C184.128 62.7001 196.658 50.1641 212.114 50.1641H324.991C340.448 50.1641 352.978 62.7001 352.978 78.1641V191.096C352.978 206.56 340.448 219.096 324.991 219.096H212.114C196.658 219.096 184.128 206.56 184.128 191.096V78.1641Z",fill:"currentColor"})]}))}));var it=["className"];function at(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function st(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?at(Object(r),!0).forEach((function(t){ut(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):at(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ut(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ct(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const lt=(0,e.memo)((function(e){var t=e.className,r=ct(e,it);return(0,ee.jsx)("svg",st(st({className:t,viewBox:"-4 -4 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:(0,ee.jsx)("path",{stroke:"currentColor",d:"M6.5 0.5h0s6 0 6 6v0s0 6 -6 6h0s-6 0 -6 -6v0s0 -6 6 -6"})}))}));var ft=["className"];function dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(r),!0).forEach((function(t){ht(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ht(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(0,e.memo)((function(e){var t=e.className,r=yt(e,ft);return(0,ee.jsx)("svg",pt(pt({className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:(0,ee.jsx)("path",{fill:"currentColor",d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"})}))}));var vt=["className"];function mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(r),!0).forEach((function(t){bt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const xt=(0,e.memo)((function(e){var t=e.className,r=wt(e,vt);return(0,ee.jsx)("svg",gt(gt({className:"icon ".concat(t),width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:(0,ee.jsx)("path",{d:"M15 17.5L10 12L15 6.5",stroke:"currentColor",strokeWidth:"1.75"})}))}));var jt=["className"];function Ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(r),!0).forEach((function(t){St(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function St(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const _t=(0,e.memo)((function(e){var t=e.className,r=Pt(e,jt);return(0,ee.jsxs)("svg",Et(Et({className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:[(0,ee.jsx)("path",{d:"M8 18.5504L12 14.8899",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,ee.jsx)("path",{d:"M20.25 11.7523C20.25 14.547 18.092 16.7546 15.5 16.7546C12.908 16.7546 10.75 14.547 10.75 11.7523C10.75 8.95754 12.908 6.75 15.5 6.75C18.092 6.75 20.25 8.95754 20.25 11.7523Z",stroke:"#1E1E1E",strokeWidth:"1.5"})]}))}));var Ct=["className"];function Nt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function At(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(r),!0).forEach((function(t){kt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function kt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const Rt=(0,e.memo)((function(e){var t=e.className,r=Tt(e,Ct);return(0,ee.jsxs)("svg",At(At({className:t,width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:[(0,ee.jsx)("path",{d:"M87.5 48.8281H75V51.1719H87.5V48.8281Z",fill:"black"}),(0,ee.jsx)("path",{d:"M25 48.8281H12.5V51.1719H25V48.8281Z",fill:"black"}),(0,ee.jsx)("path",{d:"M51.1719 75H48.8281V87.5H51.1719V75Z",fill:"black"}),(0,ee.jsx)("path",{d:"M51.1719 12.5H48.8281V25H51.1719V12.5Z",fill:"black"}),(0,ee.jsx)("path",{d:"M77.3433 75.6868L69.4082 67.7517L67.7511 69.4088L75.6862 77.344L77.3433 75.6868Z",fill:"black"}),(0,ee.jsx)("path",{d:"M32.2457 30.5897L24.3105 22.6545L22.6534 24.3117L30.5885 32.2468L32.2457 30.5897Z",fill:"black"}),(0,ee.jsx)("path",{d:"M77.3407 24.3131L75.6836 22.656L67.7485 30.5911L69.4056 32.2483L77.3407 24.3131Z",fill:"black"}),(0,ee.jsx)("path",{d:"M32.2431 69.4074L30.5859 67.7502L22.6508 75.6854L24.3079 77.3425L32.2431 69.4074Z",fill:"black"})]}))}));var Dt=function(e){var t=e.label,r=e.slug,n=e.description,o=e.checked,i=e.onClick,a=e.onChange;return(0,ee.jsxs)("label",{className:"flex hover:text-partner-primary-bg focus-within:text-partner-primary-bg",htmlFor:r,onClick:i,onChange:null!=a?a:i,children:[(0,ee.jsxs)("span",{className:"mt-0.5 w-6 h-6 relative inline-block mr-3 align-middle",children:[(0,ee.jsx)("input",{id:r,className:"h-5 w-5 rounded-sm",type:"checkbox",defaultChecked:o}),(0,ee.jsx)(We,{className:"absolute components-checkbox-control__checked",style:{width:24,color:"#fff"},role:"presentation"})]}),(0,ee.jsxs)("span",{children:[(0,ee.jsx)("span",{className:"text-base",children:t}),n?(0,ee.jsx)("span",{className:"block pt-1",children:n}):(0,ee.jsx)("span",{})]})]})};function It(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?It(Object(r),!0).forEach((function(t){Mt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):It(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bt,Ut,Ft=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=G(e,t,Lt({dedupingInterval:6e4,refreshInterval:0},n)),i=o.data,a=o.error,s=null!==(r=null==i?void 0:i.data)&&void 0!==r?r:i;return{data:s,loading:!s&&!a,error:a}};function Ht(e){return function(e){if(Array.isArray(e))return Vt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Vt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(r),!0).forEach((function(t){qt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Wt,Zt,Xt={touched:[]},Jt=function(e){return Yt(Yt({},Xt),{},{touch:function(t){e((function(e){e.touched.includes(t)||(e.touched=[].concat(Ht(e.touched),[t]))}))},resetState:function(){e(Xt)}})},$t=null!==(Bt=window)&&void 0!==Bt&&null!==(Ut=Bt.extOnbData)&&void 0!==Ut&&Ut.devbuild?Ee(Se(Jt)):Ee(De(Se(Jt),{name:"extendify-progress",getStorage:function(){return localStorage},partialize:function(e){return{touched:e.touched}}}));function Gt(e){return function(e){if(Array.isArray(e))return Kt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Kt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Qt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function er(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(r),!0).forEach((function(t){tr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var rr={siteType:{},siteInformation:{title:void 0},style:null,pages:[],plugins:[],goals:[]},nr=function(e,t){return er(er({},rr),{},{setSiteType:function(t){e({siteType:t})},setSiteInformation:function(r,n){var o=er(er({},t().siteInformation),{},tr({},r,n));e({siteInformation:o})},has:function(e,r){return!(null==r||!r.id)&&t()[e].some((function(e){return e.id===r.id}))},add:function(r,n){t().has(r,n)||e(tr({},r,[].concat(Gt(t()[r]),[n])))},remove:function(r,n){e(tr({},r,t()[r].filter((function(e){return e.id!==n.id}))))},reset:function(t){e(tr({},t,[]))},toggle:function(e,r){t().has(e,r)?t().remove(e,r):t().add(e,r)},setStyle:function(t){e({style:t})},canLaunch:function(){var e,r,n,o,i,a,s,u;return(null===(e=Object.keys(null!==(r=null===(n=t())||void 0===n?void 0:n.siteType)&&void 0!==r?r:{}))||void 0===e?void 0:e.length)>0&&(null===(o=Object.keys(null!==(i=null===(a=t())||void 0===a?void 0:a.style)&&void 0!==i?i:{}))||void 0===o?void 0:o.length)>0&&(null===(s=t())||void 0===s||null===(u=s.pages)||void 0===u?void 0:u.length)>0},resetState:function(){e(rr)}})},or=null!==(Wt=window)&&void 0!==Wt&&null!==(Zt=Wt.extOnbData)&&void 0!==Zt&&Zt.devbuild?Ee(Se(nr)):Ee(De(Se(nr),{name:"extendify-site-selection",getStorage:function(){return localStorage},partialize:function(e){var t,r,n,o,i,a;return{siteType:null!==(t=null==e?void 0:e.siteType)&&void 0!==t?t:{},siteInformation:null!==(r=null==e?void 0:e.siteInformation)&&void 0!==r?r:{},style:null!==(n=null==e?void 0:e.style)&&void 0!==n?n:null,pages:null!==(o=null==e?void 0:e.pages)&&void 0!==o?o:[],plugins:null!==(i=null==e?void 0:e.plugins)&&void 0!==i?i:[],goals:null!==(a=null==e?void 0:e.goals)&&void 0!==a?a:[]}}})),ir=function(){return ie.get("onboarding/goals")},ar=function(){return{key:"goals"}},sr={key:"goals",title:(0,Q.__)("Goals","extendify"),completed:function(){return!0}};function ur(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function cr(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}var lr=function(){var e,t=(e=ne().mark((function e(){var t;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe("blogname");case 2:return t=e.sent,e.abrupt("return",{title:t});case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){cr(i,n,o,a,s,"next",e)}function s(e){cr(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),fr=function(){return{key:"site-info"}},dr={key:"site-title",title:(0,Q.__)("Site Title","extendify"),completed:function(){return!0}};const pr=wp.blockEditor,hr=wp.blocks;var yr=function(e){var t,r;return[null==e||null===(t=e.template)||void 0===t?void 0:t.code,null==e||null===(r=e.template)||void 0===r?void 0:r.code2].filter(Boolean).join("")};function vr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(r),!0).forEach((function(t){gr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function br(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return wr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wr(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 wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xr(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}var jr=function(){var e,t=(e=ne().mark((function e(t){var r,n;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return","{}");case 2:return e.next=4,ce(JSON.stringify(t));case 4:return n=e.sent,e.abrupt("return",null!==(r=null==n?void 0:n.styles)&&void 0!==r?r:"{}");case 6:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){xr(i,n,o,a,s,"next",e)}function s(e){xr(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),Or=function(t){var r,n,o=t.style,i=t.selectStyle,a=t.blockHeight,s=t.onHover,u=void 0===s?null:s,c=or((function(e){return e.siteType})),l=function(){var t=(0,e.useRef)(!1);return(0,e.useEffect)((function(){return t.current=!0,function(){return t.current=!1}})),t}(),f=br((0,e.useState)(""),2),d=f[0],p=f[1],h=br((0,e.useState)(!1),2),y=h[0],v=h[1],m=br((0,e.useState)(!1),2),g=m[0],b=m[1],w=br((0,e.useState)(null),2),x=w[0],j=w[1],O=br((0,e.useState)(),2),E=O[0],S=O[1],P=(0,e.useRef)(null),_=(0,e.useRef)(null),C=(0,e.useRef)(null),N=(0,e.useRef)(null),A=Ft(g&&E?E:null,jr).data,k=Ft("variations",ge).data,T=(0,e.useMemo)((function(){return(0,hr.rawHandler)({HTML:(e=d,e.replace(/\w+:\/\/\S*(w=(\d*))&\w+\S*"/g,(function(e,t,r){return e.replace(t,"w="+Math.floor(Number(r))+"&q=10")})))});var e}),[d]),R=(0,e.useMemo)((function(){return A?(0,pr.transformStyles)([{css:A}],".editor-styles-wrapper"):null}),[A]);return(0,e.useEffect)((function(){if(null!=k&&k.length){var e=k.find((function(e){return e.title===o.label}));S(e)}}),[o,k]),(0,e.useEffect)((function(){if(A&&null!=o&&o.code){var e=[null==o?void 0:o.headerCode,null==o?void 0:o.code,null==o?void 0:o.footerCode].filter(Boolean).join("").replace(/<!-- wp:navigation[.\S\s]*?\/wp:navigation -->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e').replace(/<!-- wp:navigation.*\/-->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e');p(e)}}),[null==c?void 0:c.slug,A,o]),(0,e.useEffect)((function(){var e,t;if(_.current&&y){var r=P.current,n=r.offsetWidth/1400,o=_.current.contentDocument.body;null!=o&&o.style&&(o.style.transitionProperty="all",o.style.top=0);var i=function(){var t,r;if(o.offsetHeight){var i=(null!==(t=null==C||null===(r=C.current)||void 0===r?void 0:r.offsetHeight)&&void 0!==t?t:a)-32,s=o.getBoundingClientRect().height-i/n;o.style.transitionDuration=Math.max(2*s,3e3)+"ms",e=window.requestAnimationFrame((function(){o.style.top=-1*Math.max(0,s)+"px"}))}},s=function(){var e,r;if(o.offsetHeight){var i=(null!==(e=null==C||null===(r=C.current)||void 0===r?void 0:r.offsetHeight)&&void 0!==e?e:a)-32,s=o.offsetHeight-i/n;o.style.transitionDuration=s+"ms",t=window.requestAnimationFrame((function(){o.style.top=0}))}};return r.addEventListener("focus",i),r.addEventListener("mouseenter",i),r.addEventListener("blur",s),r.addEventListener("mouseleave",s),function(){window.cancelAnimationFrame(e),window.cancelAnimationFrame(t),r.removeEventListener("focus",i),r.removeEventListener("mouseenter",i),r.removeEventListener("blur",s),r.removeEventListener("mouseleave",s)}}}),[a,y]),(0,e.useEffect)((function(){if(null!=T&&T.length&&g){var e,t=function(){var t,r,n;null!==(t=e.contentDocument)&&void 0!==t&&t.getElementById("ext-tj")||(null===(r=e.contentDocument)||void 0===r||null===(n=r.head)||void 0===n||n.insertAdjacentHTML("beforeend",'<style id="ext-tj">'.concat(R,"</style>")));_.current=e,setTimeout((function(){l.current&&v(!0)}),500)},r=new MutationObserver((function(){(e=P.current.querySelector("iframe[title]")).addEventListener("load",t),setTimeout((function(){t()}),2e3),r.disconnect()}));return r.observe(P.current,{attributes:!1,childList:!0,subtree:!1}),function(){var n;r.disconnect(),null===(n=e)||void 0===n||n.removeEventListener("load",t)}}}),[T,R,l,g]),(0,e.useEffect)((function(){return N.current||(N.current=new IntersectionObserver((function(e){e[0].isIntersecting&&b(!0)}))),N.current.observe(C.current),function(){N.current.disconnect()}}),[]),(0,ee.jsxs)(ee.Fragment,{children:[y&&d?null:(0,ee.jsx)("div",{className:"m-3 absolute inset-0 bg-gray-50 flex items-center justify-center",children:(0,ee.jsx)(Rt,{className:"spin w-8"})}),(0,ee.jsxs)("div",{ref:C,role:i?"button":void 0,tabIndex:i?0:void 0,"aria-label":i?(0,Q.__)("Press to select","extendify"):void 0,className:xe()("group w-full overflow-hidden bg-transparent z-10",{relative:y,"absolute opacity-0":!y,"button-focus button-card":i}),onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&i&&i(mr(mr({},o),{},{variation:E}))},onMouseEnter:function(){u&&j(u)},onMouseLeave:function(){x&&(x(),j(null))},onClick:i?function(){return i(mr(mr({},o),{},{variation:E}))}:function(){},children:[null!==(r=window)&&void 0!==r&&null!==(n=r.extOnbData)&&void 0!==n&&n.devbuild?(0,ee.jsx)("div",{className:"-m-px absolute bg-gray-900 border border-t border-white bottom-0 group-hover:opacity-100 left-0 opacity-0 p-1 px-4 text-left text-sm text-white z-30 transition duration-300",children:null==o?void 0:o.label}):null,(0,ee.jsx)("div",{ref:P,className:"relative rounded-lg",children:g?(0,ee.jsx)(pr.BlockPreview,{blocks:T,viewportWidth:1400,live:!1}):null})]})]})};function Er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Er(Object(r),!0).forEach((function(t){Pr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Er(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _r=function(e){return Fe(e)},Cr=function(e){var t=e.page,r=e.blockHeight,n=e.required,o=void 0!==n&&n,i=e.displayOnly,a=void 0!==i&&i,s=or(),u=s.siteType,c=s.style,l=s.toggle,f=s.has,d="home"===(null==t?void 0:t.slug),p=Ft({siteType:u.slug,layoutType:t.slug,baseLayout:d?null==c?void 0:c.homeBaseLayout:null,kit:"home"!==t.slug?null==c?void 0:c.kit:null},_r).data;return a?(0,ee.jsxs)("div",{className:"text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100",children:[(0,ee.jsx)("div",{className:"border-gray-100 border-b p-2 flex justify-between min-w-sm z-30 relative bg-white",children:t.title}),(0,ee.jsx)(Or,{blockHeight:r,style:Sr(Sr({},c),{},{code:yr({template:p})})},null==c?void 0:c.recordId)]}):(0,ee.jsx)("div",{children:(0,ee.jsxs)("div",{role:"button",tabIndex:0,"aria-label":(0,Q.__)("Press to select","extendify"),disabled:o,className:"text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100 button-focus",onClick:function(){return o||l("pages",t)},title:o?(0,Q.sprintf)((0,Q.__)("%s page is required","extendify"),t.title):(0,Q.sprintf)((0,Q.__)("Toggle %s page","extendify"),t.title),onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(o||l("pages",t))},children:[(0,ee.jsx)("div",{className:"border-gray-100 border-b min-w-sm z-30 relative bg-white",children:(0,ee.jsxs)("div",{className:"p-2 flex justify-between",children:[(0,ee.jsxs)("div",{className:xe()("flex items-center",{"text-gray-700":!f("pages",t)}),children:[(0,ee.jsx)("span",{children:t.title}),o&&(0,ee.jsx)("span",{className:"w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"})]}),f("pages",t)?(0,ee.jsx)("div",{className:xe()("w-5 h-5 rounded-sm",{"bg-gray-700":o,"bg-partner-primary-bg":!o}),children:(0,ee.jsx)(We,{className:"text-white w-5"})}):(0,ee.jsx)("div",{className:xe()("border w-5 h-5 rounded-sm",{"border-gray-700":o,"border-partner-primary-bg":!o})})]})}),(0,ee.jsx)(Or,{blockHeight:r,style:Sr(Sr({},c),{},{code:yr({template:p})})},null==c?void 0:c.recordId)]})})};function Nr(e){return Nr="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},Nr(e)}function Ar(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Rr(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function kr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||Rr(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 Tr(e){return function(e){if(Array.isArray(e))return Dr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rr(e,t){if(e){if("string"==typeof e)return Dr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Dr(e,t):void 0}}function Dr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ir(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function Lr(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ir(i,n,o,a,s,"next",e)}function s(e){Ir(i,n,o,a,s,"throw",e)}a(void 0)}))}}var Mr=function(){var e=Lr(ne().mark((function e(){var t,r,n,o,i,a;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ie.get("onboarding/layout-types");case 2:if(n=e.sent,null!=(o=null!==(t=null==n?void 0:n.data)&&void 0!==t?t:[])&&o.length){e.next=6;break}throw new Error("Error fetching pages");case 6:return i=o[0],a=null===(r=o.slice(1))||void 0===r?void 0:r.sort((function(e,t){return e.title>t.title?1:-1})),e.abrupt("return",[i].concat(Tr(null!=a?a:[])));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Br=function(){return{key:"layout-types"}},Ur={key:"pages",title:(0,Q.__)("Pages","extendify"),completed:function(){return!0}};function Fr(e){return function(e){if(Array.isArray(e))return Wr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hr(e){return Hr="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},Hr(e)}function Vr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=qr(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function zr(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function Yr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||qr(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 qr(e,t){if(e){if("string"==typeof e)return Wr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wr(e,t):void 0}}function Wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Zr=function(e){return Ue(e)},Xr=function(e){var t,r,n,o,i;return{key:"site-style",siteType:null!==(r=null===(n=e=null!==(t=e)&&void 0!==t?t:null==or?void 0:or.getState().siteType)||void 0===n?void 0:n.slug)&&void 0!==r?r:"default",styles:null!==(o=null===(i=e)||void 0===i?void 0:i.styles)&&void 0!==o?o:[]}},Jr={key:"style",title:(0,Q.__)("Design","extendify"),completed:function(){return!0}},$r=function(){return ie.get("onboarding/suggested-plugins")},Gr=function(){return{key:"plugins"}},Kr=function(){var t,r=Ft(Gr,$r).data,n=or(),o=n.goals,i=n.add,a=n.toggle,s=n.remove,u=(0,e.useMemo)((function(){return null==o||!o.length||!(null!=o&&o.find((function(e){return null==r?void 0:r.some((function(t){var r;return null==t||null===(r=t.goals)||void 0===r?void 0:r.includes(null==e?void 0:e.slug)}))})))}),[o,r]),c=(0,e.useCallback)((function(e){if(u)return!0;var t=o.map((function(e){return e.slug}));return null==e?void 0:e.goals.find((function(e){return t.includes(e)}))}),[o,u]);return(0,e.useEffect)((function(){var e;null==r||r.forEach((function(e){return s("plugins",e)})),u||null==r||null===(e=r.filter(c))||void 0===e||e.forEach((function(e){return i("plugins",e)}))}),[r,i,u,c,s]),(0,ee.jsx)("div",{className:"w-full",children:(0,ee.jsx)("div",{className:"xl:grid grid-cols-3-minmax-300px-1fr max-w-4xl gap-x-4 gap-y-3",children:null==r||null===(t=r.filter(c))||void 0===t?void 0:t.map((function(e){return(0,ee.jsx)("div",{className:"pb-3",children:(0,ee.jsx)(Dt,{label:e.name,slug:e.wordpressSlug,description:e.description,checked:!u,onClick:function(){return a("plugins",e)}})},e.id)}))})})};function Qr(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function en(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tn(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 tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var rn,nn,on=function(){return ie.get("onboarding/site-types")},an=function(){return{key:"site-types"}},sn={key:"site-type",title:(0,Q.__)("Site Industry","extendify"),completed:function(){return!0}},un=function(t){var r=t.option,n=t.selectSiteType,o=(0,e.useRef)(0),i=$t((function(e){return e.touch}));return(0,ee.jsxs)("button",{onClick:function(){n(r),i(sn.key)},onMouseEnter:function(){window.clearTimeout(o.current),o.current=window.setTimeout((function(){var e=function(){return Xr(r)};V(e,(function(t){return null!=t&&t.length?t:Zr(e())}))}),100)},onMouseLeave:function(){window.clearTimeout(o.current)},className:"flex border border-gray-800 hover:text-partner-primary-bg focus:text-partner-primary-bg items-center justify-between mb-2 p-4 py-3 relative w-full button-focus",children:[(0,ee.jsx)("span",{className:"text-left",children:r.title}),(0,ee.jsx)(Ke,{})]})},cn=[["welcome",{component:function(){var t=dn((function(e){return e.nextPage})),r=(0,e.useRef)(null);(0,e.useEffect)((function(){var e=requestAnimationFrame((function(){return r.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[r]);var n=function(){var e,t=(e=ne().mark((function e(t){return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,le("extendify_onboarding_skipped",(new Date).toISOString());case 3:location.href=window.extOnbData.adminUrl;case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ur(i,n,o,a,s,"next",e)}function s(e){ur(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,ee.jsxs)(bn,{children:[(0,ee.jsxs)("div",{children:[(0,ee.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,Q.__)("Welcome to Your WordPress Site","extendify")}),(0,ee.jsx)("p",{className:"text-base opacity-70",children:(0,Q.__)("Design and launch your site with this guided experience, or head right into the WordPress dashboard if you know your way around.","extendify")})]}),(0,ee.jsxs)("div",{className:"",children:[(0,ee.jsx)("h2",{className:"text-lg m-0 mb-4 text-gray-900",children:(0,Q.__)("Pick one:","extendify")}),(0,ee.jsxs)("div",{className:"lg:flex lg:space-x-8",children:[(0,ee.jsxs)("button",{onClick:t,ref:r,type:"button","aria-label":(0,Q.__)("Press to continue","extendify"),className:"button-card max-w-sm button-focus",children:[(0,ee.jsx)("div",{className:"bg-gray-100 w-full h-64 bg-cover border border-gray-200",style:{backgroundImage:"url(".concat(window.extOnbData.pluginUrl,"/public/assets/extendify-preview.png)")}}),(0,ee.jsx)("p",{className:"font-bold text-lg text-gray-900",children:"Extendify Launch"}),(0,ee.jsx)("p",{className:"text-base text-gray-900",children:(0,Q.__)("Create a super-fast, beautiful, and fully customized site in minutes. Simply answer a few questions and pick a design to get started. Then, everything can be fully customized in the core WordPress editor.","extendify")})]}),(0,ee.jsxs)("a",{onClick:function(e){return n(e)},className:"button-card max-w-sm button-focus",children:[(0,ee.jsx)("div",{className:"bg-gray-100 w-full h-64 bg-cover border border-gray-200",style:{backgroundImage:"url(".concat(window.extOnbData.pluginUrl,"/public/assets/wp-admin.png)")}}),(0,ee.jsx)("p",{className:"font-bold text-lg text-gray-900",children:(0,Q.__)("WordPress Dashboard","extendify")}),(0,ee.jsx)("p",{className:"text-base text-gray-900",children:(0,Q.__)("Are you a WordPress developer and want to go straight to the admin dashboard?","extendify")})]})]})]})]})},metadata:{key:"welcome",skippable:!0}}],["goals",{component:function(){var t=Ft(ar,ir),r=t.data,n=t.loading,o=or(),i=o.toggle,a=o.has,s=dn((function(e){return e.nextPage})),u=(0,e.useRef)(),c=$t((function(e){return e.touch}));return(0,e.useEffect)((function(){if(u.current){var e=requestAnimationFrame((function(){return u.current.querySelector("input").focus()}));return function(){return cancelAnimationFrame(e)}}}),[u]),(0,ee.jsxs)(bn,{children:[(0,ee.jsxs)("div",{children:[(0,ee.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,Q.__)("What do you want to accomplish with this new site?","extendify")}),(0,ee.jsx)("p",{className:"text-base opacity-70",children:(0,Q.__)("You can change these later.","extendify")})]}),(0,ee.jsxs)("div",{className:"w-full",children:[(0,ee.jsx)("h2",{className:"text-lg m-0 mb-4 text-gray-900",children:(0,Q.__)("Select the goals relevant to your site:","extendify")}),n?(0,ee.jsx)("p",{children:(0,Q.__)("Loading...","extendify")}):(0,ee.jsxs)("form",{onSubmit:function(e){e.preventDefault(),s()},className:"w-full max-w-2xl grid lg:grid-cols-2 gap-4 goal-select",children:[(0,ee.jsx)("input",{type:"submit",className:"hidden"}),r&&(null==r?void 0:r.length)>0?null==r?void 0:r.map((function(e,t){return(0,ee.jsx)("div",{className:"border border-gray-800 rounded-lg p-4",ref:0===t?u:void 0,children:(0,ee.jsx)(Dt,{label:e.title,checked:a(sr.key,e),onChange:function(){i(sr.key,e),c(sr.key)}})},e.id)})):null]})]})]})},fetcher:ir,fetchData:ar,metadata:sr}],["site-type",{component:function(){var t=or((function(e){return e.siteType})),r=dn((function(e){return e.nextPage})),n=en((0,e.useState)([]),2),o=n[0],i=n[1],a=en((0,e.useState)(""),2),s=a[0],u=a[1],c=en((0,e.useState)(!0),2),l=c[0],f=c[1],d=(0,e.useRef)(null),p=Ft(an,on),h=p.data,y=p.loading;(0,e.useEffect)((function(){var e=requestAnimationFrame((function(){return d.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[d]),(0,e.useEffect)((function(){if(!(y||null!=t&&t.slug)){var e=null==h?void 0:h.find((function(e){return"default"===e.slug}));e&&or.getState().setSiteType({label:e.title,recordId:e.id,slug:e.slug})}}),[y,null==t?void 0:t.slug,h]),(0,e.useEffect)((function(){y||((null==s?void 0:s.length)>0?i(null==h?void 0:h.filter((function(e){var t=e.title,r=e.keywords,n=null==s?void 0:s.toLowerCase();return!n||(t.toLowerCase().indexOf(n)>-1||!(null==r||!r.length)&&r.find((function(e){return e.toLowerCase().indexOf(n)>-1})))}))):(i(null==h?void 0:h.filter((function(e){return e.featured}))),f(!0)))}),[h,s,y]),(0,e.useEffect)((function(){y||i(l?h.filter((function(e){return e.featured})):h)}),[h,l,y]);var v=function(){var e,t=(e=ne().mark((function e(t){return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return or.getState().setSiteType({label:t.title,recordId:t.id,slug:t.slug,styles:t.styles}),e.next=3,le("extendify_siteType",t);case 3:r();case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Qr(i,n,o,a,s,"next",e)}function s(e){Qr(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,ee.jsxs)(bn,{children:[(0,ee.jsxs)("div",{children:[(0,ee.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,Q.__)("What is your site about?","extendify")}),(0,ee.jsx)("p",{className:"text-base opacity-70",children:(0,Q.__)("Search for your site industry.","extendify")})]}),(0,ee.jsxs)("div",{className:"w-80",children:[(0,ee.jsxs)("div",{className:"flex justify-between mb-4",children:[(0,ee.jsx)("h2",{className:"text-lg m-0 text-gray-900",children:(0,Q.__)("Choose an industry","extendify")}),(null==s?void 0:s.length)>0?null:(0,ee.jsx)("button",{type:"button",className:"bg-transparent hover:text-partner-primary-bg p-0 text-partner-primary-bg text-xs underline cursor-pointer",onClick:function(){f((function(e){return!e})),d.current.focus()},children:l?(0,Q.sprintf)((0,Q.__)("Show all %s","extendify"),y?"...":h.length):(0,Q.__)("Show less","extendify")})]}),(0,ee.jsxs)("div",{className:"search-panel flex items-center justify-center relative mb-8",children:[(0,ee.jsx)("input",{ref:d,type:"text",className:"w-full bg-gray-100 h-12 pl-4 input-focus rounded-none ring-offset-0 focus:bg-white",value:s,onChange:function(e){return u(e.target.value)},placeholder:(0,Q.__)("Search...","extendify")}),(0,ee.jsx)(_t,{className:"icon-search"})]}),y&&(0,ee.jsx)("p",{children:(0,Q.__)("Loading...","extendify")}),(null==o?void 0:o.length)>0&&(0,ee.jsx)("div",{children:(0,ee.jsx)("div",{className:"overflow-y-auto p-2 -m-2",style:{maxHeight:"380px"},children:o.map((function(e){return(0,ee.jsx)(un,{selectSiteType:v,option:e},e.id)}))})})]})]})},fetcher:on,fetchData:an,metadata:sn}],["style",{component:function(){var t,r=or((function(e){return e.siteType})),n=dn((function(e){return e.nextPage})),o=Ft(Xr,Zr),i=o.data,a=o.loading,s=(0,e.useRef)(!1),u=(0,e.useRef)(),c=function(){var t=(0,e.useRef)(!1);return(0,e.useLayoutEffect)((function(){return t.current=!0,function(){return t.current=!1}})),t}(),l=(0,e.useCallback)((function(e){or.getState().setStyle(e),h(Jr.key),n()}),[n,h]),f=Yr((0,e.useState)([]),2),d=f[0],p=f[1],h=$t((function(e){return e.touch}));return(0,e.useEffect)((function(){var e;null!=i&&i.length&&(e=ne().mark((function e(){var t,r,n,o;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Vr(i),e.prev=1,n=ne().mark((function e(){var t;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.value,c.current){e.next=3;break}return e.abrupt("return",{v:void 0});case 3:return p((function(e){return[].concat(Fr(e),[t])})),e.next=6,new Promise((function(e){return setTimeout(e,1e3)}));case 6:case"end":return e.stop()}}),e)})),t.s();case 4:if((r=t.n()).done){e.next=11;break}return e.delegateYield(n(),"t0",6);case 6:if("object"!==Hr(o=e.t0)){e.next=9;break}return e.abrupt("return",o.v);case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),t.e(e.t1);case 16:return e.prev=16,t.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){zr(i,n,o,a,s,"next",e)}function s(e){zr(i,n,o,a,s,"throw",e)}a(void 0)}))})()}),[i,c]),(0,e.useEffect)((function(){null!=d&&d.length&&!or.getState().style&&or.getState().setStyle(d[0])}),[d]),(0,e.useEffect)((function(){var e,t;null!=d&&d.length&&!s.current&&(s.current=!0,null==u||null===(e=u.current)||void 0===e||null===(t=e.querySelector("[role=button]"))||void 0===t||t.focus())}),[d]),(0,ee.jsxs)(bn,{children:[(0,ee.jsxs)("div",{children:[(0,ee.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,Q.sprintf)((0,Q.__)("Now pick a design for your new %s site.","extendify"),null==r||null===(t=r.label)||void 0===t?void 0:t.toLowerCase())}),(0,ee.jsx)("p",{className:"text-base opacity-70",children:(0,Q.__)("You can personalize this later.","extendify")})]}),(0,ee.jsxs)("div",{className:"w-full",children:[(0,ee.jsx)("h2",{className:"text-lg m-0 mb-4 text-gray-900",children:a?(0,Q.__)("Please wait a moment while we generate style previews...","extendify"):(0,Q.__)("Pick your style","extendify")}),(0,ee.jsxs)("div",{ref:u,className:"lg:flex space-y-6 lg:space-y-0 flex-wrap",children:[null==d?void 0:d.map((function(e){return(0,ee.jsx)("div",{className:"p-3 relative",style:{height:590,width:425},children:(0,ee.jsx)(Or,{style:e,selectStyle:l,blockHeight:590})},e.recordId)})),null==i?void 0:i.slice(null==d?void 0:d.length).map((function(e){return(0,ee.jsx)("div",{style:{height:590,width:425},className:"p-3 relative",children:(0,ee.jsx)("div",{className:"bg-gray-50 h-full w-full flex items-center justify-center",children:(0,ee.jsx)(Rt,{className:"spin w-8"})})},e.slug)}))]})]})]})},metadata:Jr}],["pages",{component:function(){var t=Ft(Br,Mr).data,r=kr((0,e.useState)([]),2),n=r[0],o=r[1],i=or(),a=i.add,s=i.goals,u=i.reset,c=function(){var t=(0,e.useRef)(!1);return(0,e.useEffect)((function(){return t.current=!0,function(){return t.current=!1}})),t}(),l=$t((function(e){return e.touch}));return(0,e.useEffect)((function(){if(null!=t&&t.length){var e=t.filter((function(e){var t,r,n;return null==s||!s.length||(null==e||null===(t=e.goals)||void 0===t||!t.length||(null===(r=null==e||null===(n=e.goals)||void 0===n?void 0:n.some((function(e){return s.some((function(t){return e==t.id}))})))||void 0===r||r))}));Lr(ne().mark((function t(){var r,n,i,a;return ne().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=Ar(e),t.prev=1,i=ne().mark((function e(){var t;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.value,c.current){e.next=3;break}return e.abrupt("return",{v:void 0});case 3:return o((function(e){return[].concat(Tr(e),[t])})),e.next=6,new Promise((function(e){return setTimeout(e,100)}));case 6:case"end":return e.stop()}}),e)})),r.s();case 4:if((n=r.n()).done){t.next=11;break}return t.delegateYield(i(),"t0",6);case 6:if("object"!==Nr(a=t.t0)){t.next=9;break}return t.abrupt("return",a.v);case 9:t.next=4;break;case 11:t.next=16;break;case 13:t.prev=13,t.t1=t.catch(1),r.e(t.t1);case 16:return t.prev=16,r.f(),t.finish(16);case 19:case"end":return t.stop()}}),t,null,[[1,13,16,19]])})))()}}),[t,s,c]),(0,e.useEffect)((function(){u("pages"),null==n||n.map((function(e){return a("pages",e)}))}),[n,a,u]),(0,ee.jsxs)(bn,{children:[(0,ee.jsxs)("div",{children:[(0,ee.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,Q.__)("What pages do you want on this site?","extendify")}),(0,ee.jsx)("p",{className:"text-base opacity-70",children:(0,Q.__)("You may add more later","extendify")})]}),(0,ee.jsxs)("div",{className:"w-full",children:[(0,ee.jsx)("h2",{className:"text-lg m-0 mb-4 text-gray-900",children:(0,Q.__)("Pick the pages you'd like to add to your site","extendify")}),(0,ee.jsx)("div",{className:"lg:flex mt-0 flex-wrap",children:null==n?void 0:n.map((function(e){return(0,ee.jsx)("div",{onClick:function(){return l(Ur.key)},className:"px-3 mb-12 relative",style:{height:442.5,width:318.75},children:(0,ee.jsx)(Cr,{required:"home"===(null==e?void 0:e.slug),page:e,blockHeight:442.5})},e.id)}))})]})]})},fetcher:Mr,fetchData:Br,metadata:Ur}],["site-title",{component:function(){var t,r=or(),n=r.siteInformation,o=r.setSiteInformation,i=(0,e.useRef)(null),a=dn((function(e){return e.nextPage})),s=Ft(fr,lr).data,u=$t((function(e){return e.touch}));return(0,e.useEffect)((function(){var e=requestAnimationFrame((function(){return i.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[i]),(0,e.useEffect)((function(){null!=s&&s.title&&void 0===(null==n?void 0:n.title)&&o("title",s.title)}),[s,o,n]),(0,ee.jsxs)(bn,{children:[(0,ee.jsxs)("div",{children:[(0,ee.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,Q.__)("What's the name of your new site?","extendify")}),(0,ee.jsx)("p",{className:"text-base opacity-70",children:(0,Q.__)("You can change this later.","extendify")})]}),(0,ee.jsx)("div",{className:"w-full",children:(0,ee.jsxs)("form",{onSubmit:function(e){e.preventDefault(),a()},children:[(0,ee.jsx)("label",{htmlFor:"extendify-site-title-input",className:"block text-lg m-0 mb-4 font-semibold text-gray-900",children:(0,Q.__)("What's the name of your site?","extendify")}),(0,ee.jsx)("div",{className:"mb-8",children:(0,ee.jsx)("input",{autoComplete:"off",ref:i,type:"text",name:"site-title-input",id:"extendify-site-title-input",className:"w-96 max-w-full border h-12 input-focus",value:null!==(t=null==n?void 0:n.title)&&void 0!==t?t:"",onChange:function(e){o("title",e.target.value),u(dr.key)},placeholder:(0,Q.__)("Enter your preferred site title...","extendify")})})]})})]})},fetcher:lr,fetchData:fr,metadata:dr}],["confirmation",{component:function(){var e=or(),t=e.siteType,r=e.style,n=e.pages,o=e.goals,i=dn((function(e){return e.setPage}));return(0,ee.jsxs)(bn,{children:[(0,ee.jsxs)("div",{children:[(0,ee.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,Q.__)("Let's launch your site!","extendify")}),(0,ee.jsx)("p",{className:"text-base",children:(0,Q.__)("Review your site configuration.","extendify")})]}),(0,ee.jsx)("div",{className:"w-full",children:(0,ee.jsxs)("div",{className:"flex flex-col space-y-8",children:[(0,ee.jsxs)("div",{className:"block",children:[(0,ee.jsxs)("div",{className:"flex align-center",children:[(0,ee.jsx)("h2",{className:"text-lg m-0 mb-4 text-gray-900",children:(0,Q.__)("Design","extendify")}),(0,ee.jsx)("button",{className:"text-xs underline cursor-pointer text-partner-primary-bg bg-white mb-4 ml-2",onClick:function(){return i("style")},title:(0,Q.__)("Press to change the style","extendify"),children:(0,Q.__)("Change","extendify")})]}),null!=r&&r.label?(0,ee.jsxs)("div",{className:"overflow-hidden rounded-lg relative",children:[(0,ee.jsx)("span",{"aria-hidden":"true",className:"absolute top-0 bottom-0 left-3/4 right-0 z-40 bg-gradient-to-l from-white"}),n.length>0&&(0,ee.jsx)("div",{className:"flex items-start space-x-2 w-full overflow-y-scroll",children:(0,ee.jsx)("div",{className:"lg:flex flex-no-wrap",children:null==n?void 0:n.map((function(e){return(0,ee.jsx)("div",{className:"px-3 relative pointer-events-none",style:{height:387,width:255},children:(0,ee.jsx)(Cr,{displayOnly:!0,page:e,blockHeight:175})},e.id)}))})})]}):(0,ee.jsx)("button",{onClick:function(){return i("style")},className:"bg-transparent text-partner-primary underline text-base cursor-pointer",children:(0,Q.__)("Press to change the style","extendify")})]}),(0,ee.jsxs)("div",{className:"block",children:[(0,ee.jsxs)("div",{className:"flex align-center",children:[(0,ee.jsx)("h2",{className:"text-lg m-0 mb-4",children:(0,Q.__)("Industry","extendify")}),(0,ee.jsx)("button",{className:"text-xs underline cursor-pointer text-partner-primary-bg bg-white mb-4 ml-2",onClick:function(){return i("site-type")},title:(0,Q.__)("Press to change the site type","extendify"),children:(0,Q.__)("Change","extendify")})]}),null!=t&&t.label?(0,ee.jsxs)("div",{className:"flex items-center",children:[(0,ee.jsx)(We,{className:"text-extendify-main-dark",style:{width:24}}),(0,ee.jsx)("span",{className:"text-base pl-2",children:t.label})]}):(0,ee.jsx)("button",{onClick:function(){return i("site-type")},className:"bg-transparent text-partner-primary underline text-base cursor-pointer",children:(0,Q.__)("Press to set a site type","extendify")})]}),(0,ee.jsxs)("div",{className:"block",children:[(0,ee.jsxs)("div",{className:"flex align-center",children:[(0,ee.jsx)("h2",{className:"text-lg m-0 mb-4",children:(0,Q.__)("Goals","extendify")}),(0,ee.jsx)("button",{className:"text-xs underline cursor-pointer text-partner-primary-bg bg-white mb-4 ml-2",onClick:function(){return i("goals")},title:(0,Q.__)("Press to change the selected goals","extendify"),children:(0,Q.__)("Change","extendify")})]}),o.length>0?(0,ee.jsx)("div",{className:"xl:grid grid-cols-3-minmax-300px-1fr gap-x-4 gap-y-1 -mx-6",children:null==o?void 0:o.map((function(e){return(0,ee.jsxs)("div",{className:"px-6 pb-2 flex items-center",children:[(0,ee.jsx)(We,{className:"text-extendify-main-dark",style:{width:24}}),(0,ee.jsx)("span",{className:"text-base pl-2",children:e.title})]},e.id)}))}):(0,ee.jsx)("button",{onClick:function(){return i("goals")},className:"bg-transparent text-partner-primary underline text-base cursor-pointer",children:(0,Q.__)("Press to set your goals","extendify")})]}),(0,ee.jsxs)("div",{className:"block",children:[(0,ee.jsxs)("div",{className:"flex align-center",children:[(0,ee.jsx)("h2",{className:"text-lg m-0 mb-4",children:(0,Q.__)("Pages","extendify")}),(0,ee.jsx)("button",{className:"text-xs underline cursor-pointer text-partner-primary-bg bg-white mb-4 ml-2",onClick:function(){return i("pages")},title:(0,Q.__)("Press to change the selected pages","extendify"),children:(0,Q.__)("Change","extendify")})]}),n.length>0?(0,ee.jsx)("div",{className:"xl:grid grid-cols-3-minmax-300px-1fr gap-x-4 gap-y-1 -mx-6",children:null==n?void 0:n.map((function(e){return(0,ee.jsxs)("div",{className:"px-6 pb-2 flex items-center",children:[(0,ee.jsx)(We,{className:"text-extendify-main-dark",style:{width:24}}),(0,ee.jsx)("span",{className:"text-base pl-2",children:e.title})]},e.id)}))}):(0,ee.jsx)("button",{onClick:function(){return i("pages")},className:"bg-transparent text-partner-primary underline text-base cursor-pointer",children:(0,Q.__)("Press to set your pages","extendify")})]}),(0,ee.jsxs)("div",{className:"block",children:[(0,ee.jsx)("h2",{className:"text-lg m-0 mb-4",children:(0,Q.__)("Plugins","extendify")}),(0,ee.jsx)("div",{className:"flex items-start space-x-2 cursor-pointer w-full",children:(0,ee.jsx)(Kr,{})})]})]})})]})},metadata:{key:"confirmation"}}]],ln=cn.filter((function(e){var t,r;return!(null!==(t=window.extOnbData)&&void 0!==t&&null!==(r=t.partnerSkipSteps)&&void 0!==r&&r.includes(e[0]))})),fn=function(e,t){return{pages:new Map(ln),currentPageIndex:0,count:function(){return t().pages.size},pageOrder:function(){return Array.from(t().pages.keys())},currentPageData:function(){return t().pages.get(t().currentPageSlug())},currentPageSlug:function(){return t().pageOrder()[t().currentPageIndex]},nextPageData:function(){var e=t().currentPageIndex+1;return e>t().count()-1?{}:t().pages.get(t().pageOrder()[e])},setPage:function(r){"string"==typeof r&&(r=t().pageOrder().indexOf(r)),r>t().count()-1||r<0||e({currentPageIndex:r})},nextPage:function(){t().setPage(t().currentPageIndex+1)},previousPage:function(){t().setPage(t().currentPageIndex-1)}}},dn=null!==(rn=window)&&void 0!==rn&&null!==(nn=rn.extOnbData)&&void 0!==nn&&nn.devbuild?Ee(Se(fn)):Ee(De(Se(fn),{name:"extendify-pages",getStorage:function(){return localStorage},partialize:function(e){var t;return{currentPageIndex:null!==(t=null==e?void 0:e.currentPageIndex)&&void 0!==t?t:0}}}));function pn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(r),!0).forEach((function(t){yn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vn=function(t){var r=t.disabled,n=void 0!==r&&r,o=dn().setPage,i=dn((function(e){return e.pages})),a=dn((function(e){return e.currentPageIndex})),s=(0,e.useMemo)((function(){return Array.from(i.values()).map((function(e,t){return hn(hn({},e),{},{pageIndex:t})})).filter((function(e){var t;return void 0!==(null==e||null===(t=e.metadata)||void 0===t?void 0:t.completed)}))}),[i]),u=(0,e.useMemo)((function(){return s.reduce((function(e,t){return Math.min(e,t.pageIndex)}),1/0)}),[s]);return null==s||!s.length||a<u?null:(0,ee.jsxs)("div",{className:"mt-20",children:[(0,ee.jsx)("h3",{className:"text-sm text-partner-primary-text uppercase",children:(0,Q.__)("Steps","extendify")}),(0,ee.jsx)("ul",{children:s.map((function(e){var t,r;return(0,ee.jsx)("li",{className:xe()("text-base",{hidden:e.pageIndex>a,"line-through opacity-60":e.pageIndex<a,"hover:opacity-100 hover:no-underline":!n}),children:(0,ee.jsxs)("button",{className:xe()("bg-transparent p-0 text-partner-primary-text flex items-center",{"cursor-pointer":e.pageIndex<a&&!n}),type:"button",disabled:n,onClick:function(){return o(null==e?void 0:e.pageIndex)},children:[e.pageIndex<a?(0,ee.jsx)(We,{className:"text-partner-primary-text h-6 w-6 mr-1"}):(0,ee.jsx)(lt,{className:"text-partner-primary-text h-6 w-6 mr-1"}),null==e||null===(r=e.metadata)||void 0===r?void 0:r.title]})},null==e||null===(t=e.metadata)||void 0===t?void 0:t.title)}))})]})},mn=Ee(De(Se((function(e){return{generating:!1,generatedPages:{},orderId:null,setOrderId:function(t){e({orderId:t})}}})),{name:"extendify-launch-globals",getStorage:function(){return localStorage},partialize:function(e){var t;return{orderId:null!==(t=null==e?void 0:e.orderId)&&void 0!==t?t:null}}})),gn=function(){var e,t,r=dn(),n=r.nextPage,o=r.previousPage,i=r.currentPageIndex,a=r.pages,s=dn((function(e){return e.count()})),u=or((function(e){return e.canLaunch()})),c=$t((function(e){return e.touched})),l=i===s-1,f=0===i,d=Array.from(a.keys())[i],p=c.includes(d),h=null===(e=a.get(d))||void 0===e||null===(t=e.metadata)||void 0===t?void 0:t.skippable;return(0,ee.jsx)("div",{className:"flex items-center space-x-2",children:(0,ee.jsxs)("div",{className:xe()("flex flex-1",{"justify-end":"welcome"===d,"justify-between":"welcome"!==d}),children:[f||(0,ee.jsxs)("button",{className:"flex items-center px-4 py-3 text-partner-primary-bg hover:bg-gray-100 font-medium button-focus focus:bg-gray-100",type:"button",onClick:o,children:[(0,ee.jsx)(xt,{className:"h-5 w-5"}),(0,Q.__)("Back","extendify")]}),u&&l?(0,ee.jsx)("button",{className:"px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",type:"button",onClick:function(){return mn.setState({generating:!0})},children:(0,Q.__)("Launch site","extendify")}):p||h?(0,ee.jsx)("button",{className:"px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",type:"button",onClick:n,children:(0,Q.__)("Next","extendify")}):(0,ee.jsxs)("button",{className:"flex items-center px-4 py-3 text-partner-primary-bg hover:bg-gray-100 font-medium button-focus focus:bg-gray-100",type:"button",onClick:n,children:[(0,Q.__)("Skip","extendify"),(0,ee.jsx)(Ke,{className:"h-5 w-5"})]})]})})},bn=function(e){var t,r,n,o=e.children,i=e.includeNav,a=void 0===i||i;return(0,ee.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,ee.jsxs)("div",{className:"bg-partner-primary-bg text-partner-primary-text py-12 px-10 md:h-screen flex flex-col justify-between md:w-40vw md:max-w-md flex-shrink-0",children:[(0,ee.jsxs)("div",{className:"max-w-sm pr-8",children:[(0,ee.jsxs)("div",{className:"min-h-48",children:[(null===(t=window.extOnbData)||void 0===t?void 0:t.partnerLogo)&&(0,ee.jsx)("div",{className:"pb-8",children:(0,ee.jsx)("img",{style:{maxWidth:"200px"},src:window.extOnbData.partnerLogo,alt:null!==(r=null===(n=window.extOnbData)||void 0===n?void 0:n.partnerName)&&void 0!==r?r:""})}),o[0]]}),(0,ee.jsx)(vn,{disabled:!a})]}),(0,ee.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,ee.jsx)("span",{className:"opacity-70 text-xs",children:(0,Q.__)("Powered by","extendify")}),(0,ee.jsxs)("span",{className:"relative",children:[(0,ee.jsx)(ot,{className:"logo text-partner-primary-text w-28"}),(0,ee.jsx)("span",{className:"absolute -bottom-2 right-3 font-semibold tracking-tight",children:"Launch"})]})]})]}),(0,ee.jsxs)("div",{className:"flex-grow md:h-screen md:overflow-y-scroll",children:[a?(0,ee.jsx)("div",{className:"py-4 px-8 sticky top-0 bg-white z-50",children:(0,ee.jsx)(gn,{})}):null,(0,ee.jsx)("div",{className:"mt-8 p-8 lg:px-12 flex justify-center",children:o[1]})]})]})};function wn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return xn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xn(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jn(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}var On=function(){var e,t=(e=ne().mark((function e(t,r,n){var o,i,a,s,u,c,l,f,d,p;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o={},i=wn(t),e.prev=2,i.s();case 4:if((a=i.n()).done){e.next=18;break}return s=a.value,e.next=8,Fe({siteType:r.slug,layoutType:s.slug,baseLayout:"home"===s.slug?null==n?void 0:n.homeBaseLayout:null,kit:"home"!==s.slug?null==n?void 0:n.kit:null});case 8:return u=e.sent,c="",null!=u&&u.data&&(c=[null==u||null===(l=u.data)||void 0===l?void 0:l.code,null==u||null===(f=u.data)||void 0===f?void 0:f.code2].filter(Boolean).join("")),d=s.slug,e.next=14,de({title:s.title,name:d,status:"publish",content:c,template:"no-title",meta:{made_with_extendify_launch:!0}});case 14:p=e.sent,o[d]={id:p.id,title:s.title};case 16:e.next=4;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(2),i.e(e.t0);case 23:return e.prev=23,i.f(),e.finish(23);case 26:if(null==o||!o.home){e.next=34;break}return e.next=29,le("show_on_front","page");case 29:return e.next=31,le("page_on_front",o.home.id);case 31:if(null==o||!o.blog){e.next=34;break}return e.next=34,le("page_for_posts",o.blog);case 34:return e.next=36,le("extendify_onboarding_completed",(new Date).toISOString());case 36:return e.abrupt("return",o);case 37:case"end":return e.stop()}}),e,null,[[2,20,23,26]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){jn(i,n,o,a,s,"next",e)}function s(e){jn(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}();function En(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Nn(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Sn(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function Pn(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Sn(i,n,o,a,s,"next",e)}function s(e){Sn(i,n,o,a,s,"throw",e)}a(void 0)}))}}function _n(e){return function(e){if(Array.isArray(e))return An(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Nn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||Nn(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 Nn(e,t){if(e){if("string"==typeof e)return An(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?An(e,t):void 0}}function An(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var kn=function(){var t=or((function(e){return e.canLaunch()})),r=or(),n=r.siteType,o=r.siteInformation,i=r.pages,a=r.style,s=r.plugins,u=Cn((0,e.useState)([]),2),c=u[0],l=u[1],f=function(e){return l((function(t){return[e].concat(_n(t))}))};(0,e.useEffect)((function(){var e=function(e){return e.preventDefault(),e.returnValue=""},t={capture:!0};return window.addEventListener("beforeunload",e,t),function(){window.removeEventListener("beforeunload",e,t)}}),[]);var d=(0,e.useCallback)(Pn(ne().mark((function e(){var r,u,c,l,d,p;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw new Error((0,Q.__)("Site is not ready to launch.","extendify"));case 2:return f((0,Q.__)("Preparing your website","extendify")),e.next=5,le("blogname",o.title);case 5:return e.next=7,new Promise((function(e){return setTimeout(e,2e3)}));case 7:return f((0,Q.__)("Installing your theme","extendify")),e.next=10,h=a.variation,be(window.extOnbData.globalStylesPostID,h);case 10:if(null==s||!s.length){e.next=32;break}return f((0,Q._n)("Getting ready to install ".concat(s.length," plugin"),"Getting ready to install ".concat(s.length," plugins"),s.length,"extendify")),e.next=14,new Promise((function(e){return setTimeout(e,2e3)}));case 14:r=En(s.entries()),e.prev=15,r.s();case 17:if((u=r.n()).done){e.next=24;break}return c=Cn(u.value,2),l=c[0],d=c[1],f((0,Q.__)("Installing (".concat(l+1,"/").concat(s.length,"): ").concat(d.name),"extendify")),e.next=22,pe(d);case 22:e.next=17;break;case 24:e.next=29;break;case 26:e.prev=26,e.t0=e.catch(15),r.e(e.t0);case 29:return e.prev=29,r.f(),e.finish(29);case 32:return e.next=34,new Promise((function(e){return setTimeout(e,2e3)}));case 34:return f((0,Q.__)("Inserting header area","extendify")),e.next=37,ye("extendable//header",null==a?void 0:a.headerCode);case 37:return e.next=39,new Promise((function(e){return setTimeout(e,2e3)}));case 39:return f((0,Q.__)("Generating page content","extendify")),e.next=42,On(i,n,a);case 42:return p=e.sent,e.next=45,new Promise((function(e){return setTimeout(e,2e3)}));case 45:return f((0,Q.__)("Inserting footer area","extendify")),e.next=48,ye("extendable//footer",null==a?void 0:a.footerCode);case 48:return e.next=50,new Promise((function(e){return setTimeout(e,2e3)}));case 50:return f((0,Q.__)("Finalizing your site","extendify")),e.abrupt("return",p);case 52:case"end":return e.stop()}var h}),e,null,[[15,26,29,32]])}))),[i,s,n,a,t,o.title]);return(0,e.useEffect)((function(){d().then((function(e){mn.setState({generatedPages:e})}))}),[d]),(0,ee.jsxs)(bn,{includeNav:!1,children:[(0,ee.jsxs)("div",{children:[(0,ee.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,Q.__)("Building your site now!","extendify")}),(0,ee.jsx)("p",{className:"text-base",children:(0,Q.__)("Please don't close the window.","extendify")})]}),(0,ee.jsx)("div",{className:"w-full",children:(0,ee.jsx)("div",{className:"flex flex-col items-start space-y-4",children:c.map((function(e,t){return t?(0,ee.jsxs)("div",{className:"ml-12 text-base text-gray-500 flex",children:[(0,ee.jsx)(We,{className:"text-green-500 w-6 mr-1"}),(0,Q.sprintf)(e,"...")]},e):(0,ee.jsxs)("div",{className:"text-4xl flex space-x-4 items-center",children:[(0,ee.jsx)(Rt,{className:"spin w-10 mr-2"}),(0,Q.sprintf)(e,"...")]},e)}))})})]})};function Tn(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[r,n=""]=t.split("=").filter(Boolean).map(decodeURIComponent);if(r){!function(e,t,r){const n=t.length,o=n-1;for(let i=0;i<n;i++){let n=t[i];!n&&Array.isArray(e)&&(n=e.length.toString()),n=["__proto__","constructor","prototype"].includes(n)?n.toUpperCase():n;const a=!isNaN(Number(t[i+1]));e[n]=i===o?r:e[n]||(a?[]:{}),Array.isArray(e[n])&&!a&&(e[n]={...e[n]}),e=e[n]}}(e,r.replace(/\]/g,"").split("["),n)}return e}),Object.create(null))}function Rn(e){let t="";const r=Object.entries(e);let n;for(;n=r.shift();){let[e,o]=n;if(Array.isArray(o)||o&&o.constructor===Object){const t=Object.entries(o).reverse();for(const[n,o]of t)r.unshift([`${e}[${n}]`,o])}else void 0!==o&&(null===o&&(o=""),t+="&"+[e,o].map(encodeURIComponent).join("="))}return t.substr(1)}function Dn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;let r=e;const n=e.indexOf("?");return-1!==n&&(t=Object.assign(Tn(e),t),r=r.substr(0,n)),r+"?"+Rn(t)}var In={};!function e(t,r,n,o){var i=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function a(){}function s(e){var n=r.exports.Promise,o=void 0!==n?n:t.Promise;return"function"==typeof o?new o(e):(e(a,a),null)}var u,c,l,f,d,p,h,y,v,m=(l=Math.floor(1e3/60),f={},d=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(u=function(e){var t=Math.random();return f[t]=requestAnimationFrame((function r(n){d===n||d+l-1<n?(d=n,delete f[t],e()):f[t]=requestAnimationFrame(r)})),t},c=function(e){f[e]&&cancelAnimationFrame(f[e])}):(u=function(e){return setTimeout(e,l)},c=function(e){return clearTimeout(e)}),{frame:u,cancel:c}),g=(y={},function(){if(p)return p;if(!n&&i){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{p=new Worker(URL.createObjectURL(new Blob([t])))}catch(e){return void 0!==typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",e),null}!function(e){function t(t,r){e.postMessage({options:t||{},callback:r})}e.init=function(t){var r=t.transferControlToOffscreen();e.postMessage({canvas:r},[r])},e.fire=function(r,n,o){if(h)return t(r,null),h;var i=Math.random().toString(36).slice(2);return h=s((function(n){function a(t){t.data.callback===i&&(delete y[i],e.removeEventListener("message",a),h=null,o(),n())}e.addEventListener("message",a),t(r,i),y[i]=a.bind(null,{data:{callback:i}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),y)y[t](),delete y[t]}}(p)}return p}),b={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function w(e,t,r){return function(e,t){return t?t(e):e}(e&&null!=e[t]?e[t]:b[t],r)}function x(e){return e<0?0:Math.floor(e)}function j(e){return parseInt(e,16)}function O(e){return e.map(E)}function E(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:j(t.substring(0,2)),g:j(t.substring(2,4)),b:j(t.substring(4,6))}}function S(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function P(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function _(e,t,r,i,a){var u,c,l=t.slice(),f=e.getContext("2d"),d=s((function(t){function s(){u=c=null,f.clearRect(0,0,i.width,i.height),a(),t()}u=m.frame((function t(){!n||i.width===o.width&&i.height===o.height||(i.width=e.width=o.width,i.height=e.height=o.height),i.width||i.height||(r(e),i.width=e.width,i.height=e.height),f.clearRect(0,0,i.width,i.height),l=l.filter((function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.wobble+=t.wobbleSpeed,t.velocity*=t.decay,t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble);var r=t.tick++/t.totalTicks,n=t.x+t.random*t.tiltCos,o=t.y+t.random*t.tiltSin,i=t.wobbleX+t.random*t.tiltCos,a=t.wobbleY+t.random*t.tiltSin;return e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-r)+")",e.beginPath(),"circle"===t.shape?e.ellipse?e.ellipse(t.x,t.y,Math.abs(i-n)*t.ovalScalar,Math.abs(a-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,r,n,o,i,a,s,u){e.save(),e.translate(t,r),e.rotate(i),e.scale(n,o),e.arc(0,0,1,a,s,u),e.restore()}(e,t.x,t.y,Math.abs(i-n)*t.ovalScalar,Math.abs(a-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):(e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(o)),e.lineTo(Math.floor(i),Math.floor(a)),e.lineTo(Math.floor(n),Math.floor(t.wobbleY))),e.closePath(),e.fill(),t.tick<t.totalTicks}(f,e)})),l.length?u=m.frame(t):s()})),c=s}));return{addFettis:function(e){return l=l.concat(e),d},canvas:e,promise:d,reset:function(){u&&m.cancel(u),c&&c()}}}function C(e,r){var n,o=!e,a=!!w(r||{},"resize"),u=w(r,"disableForReducedMotion",Boolean),c=i&&!!w(r||{},"useWorker")?g():null,l=o?S:P,f=!(!e||!c)&&!!e.__confetti_initialized,d="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function p(t,r,o){for(var i,a,s,u,c,f=w(t,"particleCount",x),d=w(t,"angle",Number),p=w(t,"spread",Number),h=w(t,"startVelocity",Number),y=w(t,"decay",Number),v=w(t,"gravity",Number),m=w(t,"drift",Number),g=w(t,"colors",O),b=w(t,"ticks",Number),j=w(t,"shapes"),E=w(t,"scalar"),S=function(e){var t=w(e,"origin",Object);return t.x=w(t,"x",Number),t.y=w(t,"y",Number),t}(t),P=f,C=[],N=e.width*S.x,A=e.height*S.y;P--;)C.push((i={x:N,y:A,angle:d,spread:p,startVelocity:h,color:g[P%g.length],shape:j[(u=0,c=j.length,Math.floor(Math.random()*(c-u))+u)],ticks:b,decay:y,gravity:v,drift:m,scalar:E},a=void 0,s=void 0,a=i.angle*(Math.PI/180),s=i.spread*(Math.PI/180),{x:i.x,y:i.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*i.startVelocity+Math.random()*i.startVelocity,angle2D:-a+(.5*s-Math.random()*s),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:i.color,shape:i.shape,tick:0,totalTicks:i.ticks,decay:i.decay,drift:i.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*i.gravity,ovalScalar:.6,scalar:i.scalar}));return n?n.addFettis(C):(n=_(e,C,l,r,o)).promise}function h(r){var i=u||w(r,"disableForReducedMotion",Boolean),h=w(r,"zIndex",Number);if(i&&d)return s((function(e){e()}));o&&n?e=n.canvas:o&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(h),document.body.appendChild(e)),a&&!f&&l(e);var y={width:e.width,height:e.height};function v(){if(c){var t={getBoundingClientRect:function(){if(!o)return e.getBoundingClientRect()}};return l(t),void c.postMessage({resize:{width:t.width,height:t.height}})}y.width=y.height=null}function m(){n=null,a&&t.removeEventListener("resize",v),o&&e&&(document.body.removeChild(e),e=null,f=!1)}return c&&!f&&c.init(e),f=!0,c&&(e.__confetti_initialized=!0),a&&t.addEventListener("resize",v,!1),c?c.fire(r,y,m):p(r,y,m)}return h.reset=function(){c&&c.reset(),n&&n.reset()},h}function N(){return v||(v=C(null,{useWorker:!0,resize:!0})),v}r.exports=function(){return N().apply(this,arguments)},r.exports.reset=function(){N().reset()},r.exports.create=C}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),In,!1);const Ln=In.exports;In.exports.create;function Mn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(r),!0).forEach((function(t){Un(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Un(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Fn=function(){var t,r,n=mn((function(e){return e.generatedPages})),o=or((function(e){return e.siteType}));return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,e.useEffect)((function(){var e=Date.now()+r;!function r(){Ln(Bn(Bn({},t),{},{disableForReducedMotion:!0,zIndex:1e5})),Date.now()<e&&requestAnimationFrame(r)}()}),[t,r])}({particleCount:2,angle:60,spread:55,origin:{x:0,y:.7},colors:["var(--ext-partner-theme-primary-text, #ffffff)"]},3e3),(0,ee.jsxs)(bn,{includeNav:!1,children:[(0,ee.jsx)("div",{children:(0,ee.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,Q.sprintf)((0,Q.__)("Your site has been successfully created. Enjoy!","extendify"),null==o||null===(t=o.label)||void 0===t?void 0:t.toLowerCase())})}),(0,ee.jsxs)("div",{className:"w-full",children:[(0,ee.jsx)("p",{className:"mt-0 mb-8 text-base text-center",children:(0,Q.__)("Your site is ready! You can now go to your site and start editing content.","extendify")}),(0,ee.jsxs)("div",{className:"text-center w-360 flex flex-col justify-center items-center -mt-150",children:[(0,ee.jsx)(We,{className:"w-16 bg-partner-primary-bg text-partner-primary-text rounded-full"}),(0,ee.jsx)("h3",{className:"mb-8",children:(0,Q.__)("All Done","extendify")}),(0,ee.jsx)("div",{className:"flex space-x-4",children:(0,ee.jsx)("a",{className:"px-4 py-3 rounded-md bg-gray-200 text-black no-underline hover:bg-partner-primary-bg hover:text-partner-primary-text font-medium",target:"_blank",rel:"noreferrer",href:window.extOnbData.home,children:(0,Q.__)("View Site","extendify")})}),(0,ee.jsxs)("div",{className:"text-left self-start px-10 py-4 w-full",children:[(0,ee.jsx)("h4",{className:"",children:(0,Q.__)("New Pages:","extendify")}),(0,ee.jsx)("div",{className:"",children:null===(r=Object.values(n))||void 0===r?void 0:r.map((function(e){return(0,ee.jsxs)("div",{className:"flex items-center mb-2",children:[(0,ee.jsx)(We,{className:"w-6 text-green-500"}),(0,ee.jsx)("a",{target:"_blank",href:Dn("post.php",{post:e.id,action:"edit"}),className:"text-primary no-underline hover:underline ml-2 text-base",rel:"noreferrer",children:e.title})]},e.id)}))})]})]})]})]})};function Hn(e){return function(e){if(Array.isArray(e))return Yn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||zn(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 zn(e,t){if(e){if("string"==typeof e)return Yn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Yn(e,t):void 0}}function Yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var qn=function(){var t=or(),r=t.goals,n=t.pages,o=t.plugins,i=t.siteType,a=t.style,s=mn(),u=s.orderId,c=s.setOrderId,l=s.generating,f=dn(),d=f.pages,p=f.currentPageIndex,h=Vn((0,e.useState)(),2),y=h[0],v=h[1],m=Vn((0,e.useState)([]),2),g=m[0],b=m[1],w=Vn((0,e.useState)(new Set),2),x=w[0],j=w[1];(0,e.useEffect)((function(){var e=Hn(d).map((function(e){return e[0]}));b((function(t){return(null==t?void 0:t.at(-1))===e[p]?t:[].concat(Hn(t),[e[p]])}))}),[p,d]),(0,e.useEffect)((function(){l&&b((function(e){return[].concat(Hn(e),["launched"])}))}),[l]),(0,e.useEffect)((function(){var e;null!==(e=Object.keys(null!=a?a:{}))&&void 0!==e&&e.length&&j((function(e){var t=new Set(e);return t.add(a.recordId),t}))}),[a]),(0,e.useEffect)((function(){var e,t,r,n,o="onboarding",i=null===(e=window.location)||void 0===e?void 0:e.search;o=(null==i?void 0:i.indexOf("DEVMODE"))>-1?"onboarding-dev":o,o=(null==i?void 0:i.indexOf("LOCALMODE"))>-1?"onboarding-local":o,v(null===(t=window)||void 0===t||null===(r=t.extOnbData)||void 0===r||null===(n=r.config)||void 0===n?void 0:n.api[o])}),[]),(0,e.useEffect)((function(){!y||null!=u&&u.length||ie.post("onboarding/create-order").then((function(e){c(e.data.id)}))}),[y,c,u]),(0,e.useEffect)((function(){if(y&&u){var e;return e=window.setTimeout((function(){fetch("".concat(y,"/progress"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({orderId:u,selectedGoals:null==r?void 0:r.map((function(e){return e.id})),selectedPages:null==n?void 0:n.map((function(e){return e.id})),selectedPlugins:o,selectedSiteType:null!=i&&i.recordId?[i.recordId]:[],selectedStyle:null!=a&&a.recordId?[a.recordId]:[],stepProgress:g,pages:d,viewedStyles:Hn(x).slice(1)})})}),1e3),function(){return window.clearTimeout(e)}}}),[y,r,n,o,i,a,d,u,g,x])},Wn=function(){return(0,ee.jsxs)(bn,{includeNav:!1,children:[(0,ee.jsx)("div",{children:(0,ee.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,Q.__)("Hey, one more thing before we start.","extendify")})}),(0,ee.jsxs)("div",{className:"w-full",children:[(0,ee.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,Q.__)("Hey there, Launch is powered by Extendable and is required to proceed. You can install it from the link below and start over once activated.","extendify")}),(0,ee.jsx)("div",{className:"flex flex-col items-start space-y-4 text-base",children:(0,ee.jsx)("a",{href:"".concat(window.extOnbData.site,"/wp-admin/theme-install.php?theme=extendable"),children:(0,Q.__)("Take me there")})})]})]})};function Zn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xn(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 Xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Jn,$n=function(){var r,n=Zn((0,e.useState)(!1),2),o=n[0],i=n[1],a=dn((function(e){return e.currentPageData()})).component,s=dn((function(e){return e.nextPageData()})),u=s.fetcher,c=s.fetchData,l=Z().mutate,f=mn((function(e){return e.generating})),d=mn((function(e){return e.generatedPages})),p=Zn((0,e.useState)(!1),2),h=p[0],y=p[1],v=Zn((0,e.useState)(!1),2),m=v[0],g=v[1],b=(0,t.useSelect)((function(e){return e("core").getCurrentTheme()}));r=(0,t.useSelect)((function(e){return e("core/edit-post").isFeatureActive("welcomeGuide")}),[]),(0,e.useEffect)((function(){r&&(0,t.dispatch)("core/edit-post").toggleFeature("welcomeGuide")}),[r]),(0,e.useLayoutEffect)((function(){var e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){return document.body.style.overflow=e}}),[]),qn();var w;return(0,e.useEffect)((function(){null!=b&&b.textdomain&&"extendable"!==(null==b?void 0:b.textdomain)&&g(!0)}),[b]),(0,e.useEffect)((function(){if(h){var e=setTimeout((function(){window.dispatchEvent(new CustomEvent("extendify::close-library",{bubbles:!0}))}),0);return document.title="Extendify Launch",function(){return clearTimeout(e)}}}),[h]),(0,e.useEffect)((function(){var e=new URLSearchParams(window.location.search);["onboarding"].includes(e.get("extendify"))&&(y(!0),le("extendify_launch_loaded",(new Date).toISOString()))}),[]),(0,e.useEffect)((function(){u&&l(c,u)}),[u,l,c]),h?(0,ee.jsxs)($,{value:{errorRetryInterval:1e3,onErrorRetry:function(e,t){var r;console.error(t,e),403!==(null==e||null===(r=e.data)||void 0===r?void 0:r.status)?o||(i(!0),setTimeout((function(){i(!1)}),5e3)):window.location.reload()}},children:[(0,ee.jsx)("div",{style:{zIndex:1e5},className:"h-screen w-screen fixed inset-0 overflow-y-auto md:overflow-hidden bg-white",children:m?(0,ee.jsx)(Wn,{}):null!==(w=Object.keys(d))&&void 0!==w&&w.length?(0,ee.jsx)(Fn,{}):f?(0,ee.jsx)(kn,{}):(0,ee.jsx)(a,{})}),o&&(0,ee.jsx)(te,{})]}):null},Gn=Object.assign(document.createElement("div"),{id:"extendify-onboarding-root",className:"extendify-onboarding"});document.body.append(Gn),Jn=function(){window._wpLoadBlockEditor&&(0,e.render)((0,ee.jsx)($n,{}),Gn)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",Jn):Jn())})()})();
extendify-sdk/public/build/extendify.css CHANGED
@@ -1 +1 @@
1
- div.extendify .sr-only{clip:rect(0,0,0,0)!important;border-width:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}div.extendify .focus\:not-sr-only:focus{clip:auto!important;height:auto!important;margin:0!important;overflow:visible!important;padding:0!important;position:static!important;white-space:normal!important;width:auto!important}div.extendify .pointer-events-none{pointer-events:none!important}div.extendify .invisible{visibility:hidden!important}div.extendify .group:focus .group-focus\:visible,div.extendify .group:hover .group-hover\:visible{visibility:visible!important}div.extendify .static{position:static!important}div.extendify .fixed{position:fixed!important}div.extendify .absolute{position:absolute!important}div.extendify .relative{position:relative!important}div.extendify .sticky{position:-webkit-sticky!important;position:sticky!important}div.extendify .inset-0{bottom:0!important;left:0!important;right:0!important;top:0!important}div.extendify .top-0{top:0!important}div.extendify .top-2{top:.5rem!important}div.extendify .top-4{top:1rem!important}div.extendify .-top-1\/4{top:-25%!important}div.extendify .right-0{right:0!important}div.extendify .right-1{right:.25rem!important}div.extendify .right-2{right:.5rem!important}div.extendify .right-3{right:.75rem!important}div.extendify .right-4{right:1rem!important}div.extendify .right-2\.5{right:.625rem!important}div.extendify .bottom-0{bottom:0!important}div.extendify .bottom-4{bottom:1rem!important}div.extendify .-bottom-2{bottom:-.5rem!important}div.extendify .left-0{left:0!important}div.extendify .group:hover .group-hover\:-top-2{top:-.5rem!important}div.extendify .group:hover .group-hover\:-top-2\.5{top:-.625rem!important}div.extendify .group:focus .group-focus\:-top-2{top:-.5rem!important}div.extendify .group:focus .group-focus\:-top-2\.5{top:-.625rem!important}div.extendify .z-10{z-index:10!important}div.extendify .z-20{z-index:20!important}div.extendify .z-30{z-index:30!important}div.extendify .z-40{z-index:40!important}div.extendify .z-50{z-index:50!important}div.extendify .z-high{z-index:99999!important}div.extendify .z-max{z-index:2147483647!important}div.extendify .m-0{margin:0!important}div.extendify .m-6{margin:1.5rem!important}div.extendify .m-8{margin:2rem!important}div.extendify .m-auto{margin:auto!important}div.extendify .-m-2{margin:-.5rem!important}div.extendify .-m-6{margin:-1.5rem!important}div.extendify .-m-8{margin:-2rem!important}div.extendify .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}div.extendify .mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}div.extendify .mx-auto{margin-left:auto!important;margin-right:auto!important}div.extendify .-mx-4{margin-left:-1rem!important;margin-right:-1rem!important}div.extendify .my-0{margin-bottom:0!important;margin-top:0!important}div.extendify .my-px{margin-bottom:1px!important;margin-top:1px!important}div.extendify .mt-0{margin-top:0!important}div.extendify .mt-2{margin-top:.5rem!important}div.extendify .mt-4{margin-top:1rem!important}div.extendify .mt-8{margin-top:2rem!important}div.extendify .mt-px{margin-top:1px!important}div.extendify .-mt-2{margin-top:-.5rem!important}div.extendify .-mt-5{margin-top:-1.25rem!important}div.extendify .mr-1{margin-right:.25rem!important}div.extendify .mr-2{margin-right:.5rem!important}div.extendify .mr-6{margin-right:1.5rem!important}div.extendify .-mr-1{margin-right:-.25rem!important}div.extendify .-mr-1\.5{margin-right:-.375rem!important}div.extendify .mb-0{margin-bottom:0!important}div.extendify .mb-1{margin-bottom:.25rem!important}div.extendify .mb-2{margin-bottom:.5rem!important}div.extendify .mb-3{margin-bottom:.75rem!important}div.extendify .mb-4{margin-bottom:1rem!important}div.extendify .mb-5{margin-bottom:1.25rem!important}div.extendify .mb-8{margin-bottom:2rem!important}div.extendify .mb-10{margin-bottom:2.5rem!important}div.extendify .ml-1{margin-left:.25rem!important}div.extendify .ml-2{margin-left:.5rem!important}div.extendify .ml-4{margin-left:1rem!important}div.extendify .ml-12{margin-left:3rem!important}div.extendify .-ml-1{margin-left:-.25rem!important}div.extendify .-ml-2{margin-left:-.5rem!important}div.extendify .-ml-6{margin-left:-1.5rem!important}div.extendify .-ml-px{margin-left:-1px!important}div.extendify .-ml-1\.5{margin-left:-.375rem!important}div.extendify .block{display:block!important}div.extendify .inline-block{display:inline-block!important}div.extendify .flex{display:flex!important}div.extendify .inline-flex{display:inline-flex!important}div.extendify .table{display:table!important}div.extendify .grid{display:grid!important}div.extendify .hidden{display:none!important}div.extendify .h-0{height:0!important}div.extendify .h-2{height:.5rem!important}div.extendify .h-4{height:1rem!important}div.extendify .h-8{height:2rem!important}div.extendify .h-12{height:3rem!important}div.extendify .h-32{height:8rem!important}div.extendify .h-64{height:16rem!important}div.extendify .h-auto{height:auto!important}div.extendify .h-full{height:100%!important}div.extendify .h-screen{height:100vh!important}div.extendify .max-h-96{max-height:24rem!important}div.extendify .min-h-screen{min-height:100vh!important}div.extendify .w-0{width:0!important}div.extendify .w-4{width:1rem!important}div.extendify .w-6{width:1.5rem!important}div.extendify .w-8{width:2rem!important}div.extendify .w-10{width:2.5rem!important}div.extendify .w-16{width:4rem!important}div.extendify .w-20{width:5rem!important}div.extendify .w-28{width:7rem!important}div.extendify .w-32{width:8rem!important}div.extendify .w-72{width:18rem!important}div.extendify .w-80{width:20rem!important}div.extendify .w-96{width:24rem!important}div.extendify .w-auto{width:auto!important}div.extendify .w-6\/12{width:50%!important}div.extendify .w-7\/12{width:58.333333%!important}div.extendify .w-full{width:100%!important}div.extendify .w-screen{width:100vw!important}div.extendify .min-w-0{min-width:0!important}div.extendify .min-w-sm{min-width:7rem!important}div.extendify .max-w-sm{max-width:24rem!important}div.extendify .max-w-md{max-width:28rem!important}div.extendify .max-w-lg{max-width:32rem!important}div.extendify .max-w-xl{max-width:36rem!important}div.extendify .max-w-2xl{max-width:42rem!important}div.extendify .max-w-full{max-width:100%!important}div.extendify .max-w-screen-4xl{max-width:1920px!important}div.extendify .flex-1{flex:1 1 0%!important}div.extendify .flex-shrink-0{flex-shrink:0!important}div.extendify .flex-grow-0{flex-grow:0!important}div.extendify .flex-grow{flex-grow:1!important}div.extendify .transform{--tw-translate-x:0!important;--tw-translate-y:0!important;--tw-rotate:0!important;--tw-skew-x:0!important;--tw-skew-y:0!important;--tw-scale-x:1!important;--tw-scale-y:1!important;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}div.extendify .-translate-x-1{--tw-translate-x:-0.25rem!important}div.extendify .translate-y-0{--tw-translate-y:0px!important}div.extendify .translate-y-4{--tw-translate-y:1rem!important}div.extendify .-translate-y-px{--tw-translate-y:-1px!important}div.extendify .-translate-y-full{--tw-translate-y:-100%!important}div.extendify .rotate-90{--tw-rotate:90deg!important}div.extendify .cursor-pointer{cursor:pointer!important}div.extendify .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}div.extendify .flex-col{flex-direction:column!important}div.extendify .flex-wrap{flex-wrap:wrap!important}div.extendify .items-start{align-items:flex-start!important}div.extendify .items-end{align-items:flex-end!important}div.extendify .items-center{align-items:center!important}div.extendify .justify-end{justify-content:flex-end!important}div.extendify .justify-center{justify-content:center!important}div.extendify .justify-between{justify-content:space-between!important}div.extendify .justify-evenly{justify-content:space-evenly!important}div.extendify .gap-4{gap:1rem!important}div.extendify .gap-6{gap:1.5rem!important}div.extendify .gap-8{gap:2rem!important}div.extendify .space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(0px*var(--tw-space-x-reverse))!important}div.extendify .space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.25rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.5rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.75rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(1rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-0\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.125rem*var(--tw-space-x-reverse))!important}div.extendify .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1rem*var(--tw-space-y-reverse))!important;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(2rem*var(--tw-space-y-reverse))!important;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0!important;border-bottom-width:calc(1px*var(--tw-divide-y-reverse))!important;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))!important}div.extendify .self-start{align-self:flex-start!important}div.extendify .overflow-hidden{overflow:hidden!important}div.extendify .overflow-y-auto{overflow-y:auto!important}div.extendify .overflow-x-hidden{overflow-x:hidden!important}div.extendify .whitespace-nowrap{white-space:nowrap!important}div.extendify .rounded-sm{border-radius:.125rem!important}div.extendify .rounded{border-radius:.25rem!important}div.extendify .rounded-md{border-radius:.375rem!important}div.extendify .rounded-lg{border-radius:.5rem!important}div.extendify .rounded-full{border-radius:9999px!important}div.extendify .rounded-tr-sm{border-top-right-radius:.125rem!important}div.extendify .rounded-br-sm{border-bottom-right-radius:.125rem!important}div.extendify .border-0{border-width:0!important}div.extendify .border-2{border-width:2px!important}div.extendify .border-8{border-width:8px!important}div.extendify .border{border-width:1px!important}div.extendify .border-r{border-right-width:1px!important}div.extendify .border-b-0{border-bottom-width:0!important}div.extendify .border-b{border-bottom-width:1px!important}div.extendify .border-l-8{border-left-width:8px!important}div.extendify .border-solid{border-style:solid!important}div.extendify .border-none{border-style:none!important}div.extendify .border-transparent{border-color:transparent!important}div.extendify .border-black{--tw-border-opacity:1!important;border-color:rgba(0,0,0,var(--tw-border-opacity))!important}div.extendify .border-gray-100{--tw-border-opacity:1!important;border-color:rgba(240,240,240,var(--tw-border-opacity))!important}div.extendify .border-gray-200{--tw-border-opacity:1!important;border-color:rgba(224,224,224,var(--tw-border-opacity))!important}div.extendify .border-gray-600{--tw-border-opacity:1!important;border-color:rgba(148,148,148,var(--tw-border-opacity))!important}div.extendify .border-gray-900{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important}div.extendify .border-extendify-main{--tw-border-opacity:1!important;border-color:rgba(11,74,67,var(--tw-border-opacity))!important}div.extendify .border-extendify-secondary{--tw-border-opacity:1!important;border-color:rgba(203,195,245,var(--tw-border-opacity))!important}div.extendify .border-extendify-transparent-black-100{border-color:rgba(0,0,0,.07)!important}div.extendify .border-wp-alert-red{--tw-border-opacity:1!important;border-color:rgba(204,24,24,var(--tw-border-opacity))!important}div.extendify .focus\:border-transparent:focus{border-color:transparent!important}div.extendify .bg-transparent{background-color:transparent!important}div.extendify .bg-black{--tw-bg-opacity:1!important;background-color:rgba(0,0,0,var(--tw-bg-opacity))!important}div.extendify .bg-white{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify .bg-gray-50{--tw-bg-opacity:1!important;background-color:rgba(251,251,251,var(--tw-bg-opacity))!important}div.extendify .bg-gray-100{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify .bg-gray-200{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify .bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify .bg-partner-primary-bg{background-color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify .bg-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-alert{--tw-bg-opacity:1!important;background-color:rgba(132,16,16,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-secondary{--tw-bg-opacity:1!important;background-color:rgba(203,195,245,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-transparent-white{background-color:hsla(0,0%,99%,.88)!important}div.extendify .bg-wp-theme-500{background-color:var(--wp-admin-theme-color,#007cba)!important}div.extendify .group:hover .group-hover\:bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify .hover\:bg-gray-200:hover{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify .hover\:bg-partner-primary-bg:hover{background-color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify .hover\:bg-extendify-main-dark:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}div.extendify .hover\:bg-wp-theme-600:hover{background-color:var(--wp-admin-theme-color-darker-10,#006ba1)!important}div.extendify .focus\:bg-gray-100:focus{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify .active\:bg-gray-900:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify .bg-opacity-40{--tw-bg-opacity:0.4!important}div.extendify .bg-cover{background-size:cover!important}div.extendify .bg-clip-padding{background-clip:padding-box!important}div.extendify .fill-current{fill:currentColor!important}div.extendify .stroke-current{stroke:currentColor!important}div.extendify .p-0{padding:0!important}div.extendify .p-1{padding:.25rem!important}div.extendify .p-2{padding:.5rem!important}div.extendify .p-3{padding:.75rem!important}div.extendify .p-4{padding:1rem!important}div.extendify .p-6{padding:1.5rem!important}div.extendify .p-8{padding:2rem!important}div.extendify .p-10{padding:2.5rem!important}div.extendify .p-12{padding:3rem!important}div.extendify .p-0\.5{padding:.125rem!important}div.extendify .p-1\.5{padding:.375rem!important}div.extendify .p-3\.5{padding:.875rem!important}div.extendify .px-0{padding-left:0!important;padding-right:0!important}div.extendify .px-1{padding-left:.25rem!important;padding-right:.25rem!important}div.extendify .px-2{padding-left:.5rem!important;padding-right:.5rem!important}div.extendify .px-3{padding-left:.75rem!important;padding-right:.75rem!important}div.extendify .px-4{padding-left:1rem!important;padding-right:1rem!important}div.extendify .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}div.extendify .px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}div.extendify .px-8{padding-left:2rem!important;padding-right:2rem!important}div.extendify .px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}div.extendify .px-0\.5{padding-left:.125rem!important;padding-right:.125rem!important}div.extendify .px-2\.5{padding-left:.625rem!important;padding-right:.625rem!important}div.extendify .py-0{padding-bottom:0!important;padding-top:0!important}div.extendify .py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}div.extendify .py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}div.extendify .py-3{padding-bottom:.75rem!important;padding-top:.75rem!important}div.extendify .py-4{padding-bottom:1rem!important;padding-top:1rem!important}div.extendify .py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}div.extendify .py-12{padding-bottom:3rem!important;padding-top:3rem!important}div.extendify .py-2\.5{padding-bottom:.625rem!important;padding-top:.625rem!important}div.extendify .pt-0{padding-top:0!important}div.extendify .pt-2{padding-top:.5rem!important}div.extendify .pt-4{padding-top:1rem!important}div.extendify .pt-6{padding-top:1.5rem!important}div.extendify .pt-px{padding-top:1px!important}div.extendify .pt-0\.5{padding-top:.125rem!important}div.extendify .pr-3{padding-right:.75rem!important}div.extendify .pr-8{padding-right:2rem!important}div.extendify .pb-2{padding-bottom:.5rem!important}div.extendify .pb-8{padding-bottom:2rem!important}div.extendify .pb-20{padding-bottom:5rem!important}div.extendify .pb-36{padding-bottom:9rem!important}div.extendify .pb-40{padding-bottom:10rem!important}div.extendify .pl-0{padding-left:0!important}div.extendify .pl-2{padding-left:.5rem!important}div.extendify .pl-6{padding-left:1.5rem!important}div.extendify .text-left{text-align:left!important}div.extendify .text-center{text-align:center!important}div.extendify .text-xs{font-size:.75rem!important;line-height:1rem!important}div.extendify .text-sm{font-size:.875rem!important;line-height:1.25rem!important}div.extendify .text-base{font-size:1rem!important;line-height:1.5rem!important}div.extendify .text-lg{font-size:1.125rem!important;line-height:1.75rem!important}div.extendify .text-xl{font-size:1.25rem!important;line-height:1.75rem!important}div.extendify .text-3xl{font-size:2rem!important;line-height:2.5rem!important}div.extendify .text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}div.extendify .text-xss{font-size:11px!important}div.extendify .font-light{font-weight:300!important}div.extendify .font-normal{font-weight:400!important}div.extendify .font-medium{font-weight:500!important}div.extendify .font-semibold{font-weight:600!important}div.extendify .font-bold{font-weight:700!important}div.extendify .uppercase{text-transform:uppercase!important}div.extendify .italic{font-style:italic!important}div.extendify .leading-none{line-height:1!important}div.extendify .tracking-tight{letter-spacing:-.025em!important}div.extendify .text-black{--tw-text-opacity:1!important;color:rgba(0,0,0,var(--tw-text-opacity))!important}div.extendify .text-white{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify .text-gray-500{--tw-text-opacity:1!important;color:rgba(204,204,204,var(--tw-text-opacity))!important}div.extendify .text-gray-700{--tw-text-opacity:1!important;color:rgba(117,117,117,var(--tw-text-opacity))!important}div.extendify .text-gray-800{--tw-text-opacity:1!important;color:rgba(31,41,55,var(--tw-text-opacity))!important}div.extendify .text-gray-900{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify .text-green-500{--tw-text-opacity:1!important;color:rgba(16,185,129,var(--tw-text-opacity))!important}div.extendify .text-partner-primary-text{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify .text-partner-primary-bg{color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify .text-extendify-main{--tw-text-opacity:1!important;color:rgba(11,74,67,var(--tw-text-opacity))!important}div.extendify .text-extendify-gray{--tw-text-opacity:1!important;color:rgba(95,95,95,var(--tw-text-opacity))!important}div.extendify .text-extendify-black{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify .text-wp-theme-500{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify .text-wp-alert-red{--tw-text-opacity:1!important;color:rgba(204,24,24,var(--tw-text-opacity))!important}div.extendify .group:hover .group-hover\:text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify .hover\:text-white:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .hover\:text-partner-primary-text:hover{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify .hover\:text-partner-primary-bg:hover{color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify .hover\:text-wp-theme-500:hover{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify .focus\:text-white:focus{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .focus\:text-blue-500:focus{--tw-text-opacity:1!important;color:rgba(59,130,246,var(--tw-text-opacity))!important}div.extendify .underline{text-decoration:underline!important}div.extendify .no-underline{text-decoration:none!important}div.extendify .hover\:underline:hover{text-decoration:underline!important}div.extendify .hover\:no-underline:hover{text-decoration:none!important}div.extendify .opacity-0{opacity:0!important}div.extendify .opacity-30{opacity:.3!important}div.extendify .opacity-50{opacity:.5!important}div.extendify .opacity-70{opacity:.7!important}div.extendify .opacity-75{opacity:.75!important}div.extendify .focus\:opacity-100:focus,div.extendify .group:focus .group-focus\:opacity-100,div.extendify .group:hover .group-hover\:opacity-100,div.extendify .hover\:opacity-100:hover,div.extendify .opacity-100{opacity:1!important}div.extendify .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05)!important}div.extendify .shadow-md,div.extendify .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06)!important}div.extendify .shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25)!important}div.extendify .shadow-2xl,div.extendify .shadow-modal{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify .shadow-modal{--tw-shadow:0 0 0 1px rgba(0,0,0,.1),0 3px 15px -3px rgba(0,0,0,.035),0 0 1px rgba(0,0,0,.05)!important}div.extendify .focus\:shadow-none:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify .focus\:outline-none:focus,div.extendify .outline-none{outline:2px solid transparent!important;outline-offset:2px!important}div.extendify .focus\:ring-wp:focus,div.extendify .ring-wp{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}div.extendify .ring-partner-primary-bg{--tw-ring-color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify .ring-offset-2{--tw-ring-offset-width:2px!important}div.extendify .ring-offset-white{--tw-ring-offset-color:#fff!important}div.extendify .filter{--tw-blur:var(--tw-empty,/*!*/ /*!*/)!important;--tw-brightness:var(--tw-empty,/*!*/ /*!*/)!important;--tw-contrast:var(--tw-empty,/*!*/ /*!*/)!important;--tw-grayscale:var(--tw-empty,/*!*/ /*!*/)!important;--tw-hue-rotate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-invert:var(--tw-empty,/*!*/ /*!*/)!important;--tw-saturate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-sepia:var(--tw-empty,/*!*/ /*!*/)!important;--tw-drop-shadow:var(--tw-empty,/*!*/ /*!*/)!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}div.extendify .blur{--tw-blur:blur(8px)!important}div.extendify .invert{--tw-invert:invert(100%)!important}div.extendify .backdrop-filter{--tw-backdrop-blur:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-brightness:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-contrast:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-grayscale:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-hue-rotate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-invert:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-opacity:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-saturate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-sepia:var(--tw-empty,/*!*/ /*!*/)!important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}div.extendify .backdrop-blur-xl{--tw-backdrop-blur:blur(24px)!important}div.extendify .backdrop-saturate-200{--tw-backdrop-saturate:saturate(2)!important}div.extendify .transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify .transition{transition-duration:.15s!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify .transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify .delay-200{transition-delay:.2s!important}div.extendify .duration-100{transition-duration:.1s!important}div.extendify .duration-200{transition-duration:.2s!important}div.extendify .duration-300{transition-duration:.3s!important}div.extendify .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}div.extendify .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.extendify{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/)!important;--tw-ring-offset-width:0px!important;--tw-ring-offset-color:transparent!important;--tw-ring-color:var(--wp-admin-theme-color)!important}.extendify *,.extendify :after,.extendify :before{border:0 solid #e5e7eb!important;box-sizing:border-box!important}.extendify .button-focus:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify .button-focus{outline:2px solid transparent!important;outline-offset:2px!important}.extendify .button-focus:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-color:var(--wp-admin-theme-color,#007cba)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}div.extendify button.extendify-skip-to-sr-link:focus{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important;padding:1rem!important;position:fixed!important;top:0!important;z-index:99999!important}.button-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important;border-radius:.25rem!important;cursor:pointer!important;white-space:nowrap!important}.button-extendify-main:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}.button-extendify-main:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}.button-extendify-main{font-size:1rem!important;line-height:1.5rem!important;padding:.375rem .75rem!important}.button-extendify-main,.button-extendify-main:active,.button-extendify-main:focus,.button-extendify-main:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}.button-extendify-main{text-decoration:none!important;transition-duration:.15s!important;transition-duration:.2s!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.extendify .button-extendify-main:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify .button-extendify-main{outline:2px solid transparent!important;outline-offset:2px!important}.extendify .button-extendify-main:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-color:var(--wp-admin-theme-color,#007cba)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.extendify input.button-extendify-main:focus,.extendify input.button-focus:focus,.extendify select.button-extendify-main:focus,.extendify select.button-focus:focus{--tw-shadow:0 0 #0000!important;border-color:transparent!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;outline:2px solid transparent!important;outline-offset:2px!important}#extendify-search-input:not(:-moz-placeholder-shown)~svg{display:none!important}#extendify-search-input:not(:-ms-input-placeholder)~svg{display:none!important}#extendify-search-input:focus~svg,#extendify-search-input:not(:placeholder-shown)~svg{display:none!important}#extendify-search-input::-webkit-textfield-decoration-container{margin-right:.75rem!important}.extendify .components-panel__body>.components-panel__body-title{background-color:transparent!important;border-bottom:1px solid #e0e0e0!important}.extendify .components-modal__header{--tw-border-opacity:1!important;border-bottom-width:1px!important;border-color:rgba(221,221,221,var(--tw-border-opacity))!important}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.ext{max-width:none!important}.extendify .block-editor-block-preview__container{-webkit-animation:extendifyOpacityIn .2s cubic-bezier(.694,0,.335,1) 0ms forwards;animation:extendifyOpacityIn .2s cubic-bezier(.694,0,.335,1) 0ms forwards;opacity:0}.extendify .is-root-container>[data-align=full],.extendify .is-root-container>[data-align=full]>.wp-block,.extendify .is-root-container>[data-block]{margin-bottom:0!important;margin-top:0!important}.editor-styles-wrapper:not(.block-editor-writing-flow)>.is-root-container :where(.wp-block)[data-align=full]{margin-bottom:0!important;margin-top:0!important}@-webkit-keyframes extendifyOpacityIn{0%{opacity:0}to{opacity:1}}@keyframes extendifyOpacityIn{0%{opacity:0}to{opacity:1}}.extendify .with-light-shadow:after{--tw-shadow:inset 0 0 0 1px rgba(0,0,0,.1),0 3px 15px -3px rgba(0,0,0,.035),0 0 1px rgba(0,0,0,.025)!important;border-width:0!important;bottom:0!important;content:""!important;left:0!important;position:absolute!important;right:0!important;top:0!important}.extendify .with-light-shadow:after,.extendify .with-light-shadow:hover:after{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify .with-light-shadow:hover:after{--tw-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 3px 15px -3px rgba(0,0,0,.025),0 0 1px rgba(0,0,0,.02)!important}@supports not (((-webkit-backdrop-filter:saturate(2) blur(24px)) or (backdrop-filter:saturate(2) blur(24px)))){div.extendify .bg-extendify-transparent-white{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}}.components-panel__body.ext-type-control .components-panel__body-title{border-bottom-width:0!important;margin:0 -1rem!important;padding-left:1.25rem!important;padding-right:1.25rem!important}.extendify .animate-pulse{-webkit-animation:extendifyPulse 3s cubic-bezier(.4,0,.6,1) infinite;animation:extendifyPulse 3s cubic-bezier(.4,0,.6,1) infinite}@-webkit-keyframes extendifyPulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes extendifyPulse{0%,to{opacity:1}50%{opacity:.5}}.is-template--in-review:before,.is-template--inactive:before{--tw-border-opacity:1!important;border-color:rgba(203,195,245,var(--tw-border-opacity))!important;border-style:solid!important;border-width:8px!important;bottom:0!important;content:""!important;height:100%!important;left:0!important;position:absolute!important;right:0!important;top:0!important;width:100%!important;z-index:40!important}.is-template--inactive:before{border-color:#fdeab6!important}.extendify-tooltip-default:not(.is-without-arrow)[data-y-axis=bottom]:after{border-bottom-color:#1e1e1e!important}.extendify-tooltip-default:not(.is-without-arrow):before{border-color:transparent!important}.extendify-tooltip-default:not(.is-without-arrow) .components-popover__content{--tw-bg-opacity:1!important;--tw-text-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important;border-color:transparent!important;color:rgba(255,255,255,var(--tw-text-opacity))!important;min-width:250px!important;padding:1rem!important}.extendify-bottom-arrow:after{--tw-translate-x:0!important;--tw-translate-y:0!important;--tw-rotate:0!important;--tw-skew-x:0!important;--tw-skew-y:0!important;--tw-scale-x:1!important;--tw-scale-y:1!important;--tw-translate-y:-1px!important;border-color:#1e1e1e transparent transparent!important;border-width:8px!important;bottom:-15px!important;content:""!important;display:inline-block!important;height:0!important;position:absolute!important;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;width:0!important}@media (min-width:480px){div.extendify .xs\:inline{display:inline!important}div.extendify .xs\:h-9{height:2.25rem!important}div.extendify .xs\:pr-3{padding-right:.75rem!important}div.extendify .xs\:pl-2{padding-left:.5rem!important}}@media (min-width:600px){div.extendify .sm\:mx-0{margin-left:0!important;margin-right:0!important}div.extendify .sm\:mt-0{margin-top:0!important}div.extendify .sm\:mb-8{margin-bottom:2rem!important}div.extendify .sm\:ml-2{margin-left:.5rem!important}div.extendify .sm\:block{display:block!important}div.extendify .sm\:flex{display:flex!important}div.extendify .sm\:h-auto{height:auto!important}div.extendify .sm\:w-72{width:18rem!important}div.extendify .sm\:w-auto{width:auto!important}div.extendify .sm\:translate-y-5{--tw-translate-y:1.25rem!important}div.extendify .sm\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .sm\:p-0{padding:0!important}div.extendify .sm\:py-0{padding-bottom:0!important;padding-top:0!important}div.extendify .sm\:pt-0{padding-top:0!important}div.extendify .sm\:pt-5{padding-top:1.25rem!important}}@media (min-width:782px){div.extendify .md\:m-0{margin:0!important}div.extendify .md\:-ml-8{margin-left:-2rem!important}div.extendify .md\:block{display:block!important}div.extendify .md\:flex{display:flex!important}div.extendify .md\:hidden{display:none!important}div.extendify .md\:h-screen{height:100vh!important}div.extendify .md\:w-40vw{width:40vw!important}div.extendify .md\:max-w-md{max-width:28rem!important}div.extendify .md\:max-w-2xl{max-width:42rem!important}div.extendify .md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}div.extendify .md\:flex-row{flex-direction:row!important}div.extendify .md\:gap-8{gap:2rem!important}div.extendify .md\:space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(2rem*var(--tw-space-y-reverse))!important;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .md\:overflow-hidden{overflow:hidden!important}div.extendify .md\:overflow-y-scroll{overflow-y:scroll!important}div.extendify .md\:p-8{padding:2rem!important}div.extendify .md\:px-8{padding-right:2rem!important}div.extendify .md\:pl-8,div.extendify .md\:px-8{padding-left:2rem!important}}@media (min-width:1080px){div.extendify .lg\:absolute{position:absolute!important}div.extendify .lg\:-mr-1{margin-right:-.25rem!important}div.extendify .lg\:block{display:block!important}div.extendify .lg\:flex{display:flex!important}div.extendify .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify .lg\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(2rem*var(--tw-space-x-reverse))!important}div.extendify .lg\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(0px*var(--tw-space-y-reverse))!important;margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))!important}div.extendify .lg\:overflow-hidden{overflow:hidden!important}div.extendify .lg\:p-16{padding:4rem!important}div.extendify .lg\:px-12{padding-left:3rem!important;padding-right:3rem!important}}
1
+ div.extendify .sr-only{clip:rect(0,0,0,0)!important;border-width:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}div.extendify .focus\:not-sr-only:focus{clip:auto!important;height:auto!important;margin:0!important;overflow:visible!important;padding:0!important;position:static!important;white-space:normal!important;width:auto!important}div.extendify .pointer-events-none{pointer-events:none!important}div.extendify .invisible{visibility:hidden!important}div.extendify .group:focus .group-focus\:visible,div.extendify .group:hover .group-hover\:visible{visibility:visible!important}div.extendify .static{position:static!important}div.extendify .fixed{position:fixed!important}div.extendify .absolute{position:absolute!important}div.extendify .relative{position:relative!important}div.extendify .sticky{position:-webkit-sticky!important;position:sticky!important}div.extendify .inset-0{bottom:0!important;left:0!important;right:0!important;top:0!important}div.extendify .top-0{top:0!important}div.extendify .top-2{top:.5rem!important}div.extendify .top-4{top:1rem!important}div.extendify .-top-1\/4{top:-25%!important}div.extendify .right-0{right:0!important}div.extendify .right-1{right:.25rem!important}div.extendify .right-2{right:.5rem!important}div.extendify .right-3{right:.75rem!important}div.extendify .right-4{right:1rem!important}div.extendify .right-2\.5{right:.625rem!important}div.extendify .bottom-0{bottom:0!important}div.extendify .bottom-4{bottom:1rem!important}div.extendify .-bottom-2{bottom:-.5rem!important}div.extendify .left-0{left:0!important}div.extendify .left-3\/4{left:75%!important}div.extendify .group:hover .group-hover\:-top-2{top:-.5rem!important}div.extendify .group:hover .group-hover\:-top-2\.5{top:-.625rem!important}div.extendify .group:focus .group-focus\:-top-2{top:-.5rem!important}div.extendify .group:focus .group-focus\:-top-2\.5{top:-.625rem!important}div.extendify .z-10{z-index:10!important}div.extendify .z-20{z-index:20!important}div.extendify .z-30{z-index:30!important}div.extendify .z-40{z-index:40!important}div.extendify .z-50{z-index:50!important}div.extendify .z-high{z-index:99999!important}div.extendify .z-max{z-index:2147483647!important}div.extendify .m-0{margin:0!important}div.extendify .m-3{margin:.75rem!important}div.extendify .m-8{margin:2rem!important}div.extendify .m-auto{margin:auto!important}div.extendify .-m-2{margin:-.5rem!important}div.extendify .-m-px{margin:-1px!important}div.extendify .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}div.extendify .mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}div.extendify .mx-auto{margin-left:auto!important;margin-right:auto!important}div.extendify .-mx-4{margin-left:-1rem!important;margin-right:-1rem!important}div.extendify .-mx-6{margin-left:-1.5rem!important;margin-right:-1.5rem!important}div.extendify .my-0{margin-bottom:0!important;margin-top:0!important}div.extendify .my-px{margin-bottom:1px!important;margin-top:1px!important}div.extendify .mt-0{margin-top:0!important}div.extendify .mt-2{margin-top:.5rem!important}div.extendify .mt-4{margin-top:1rem!important}div.extendify .mt-8{margin-top:2rem!important}div.extendify .mt-20{margin-top:5rem!important}div.extendify .mt-px{margin-top:1px!important}div.extendify .mt-0\.5{margin-top:.125rem!important}div.extendify .-mt-2{margin-top:-.5rem!important}div.extendify .-mt-5{margin-top:-1.25rem!important}div.extendify .mr-1{margin-right:.25rem!important}div.extendify .mr-2{margin-right:.5rem!important}div.extendify .mr-3{margin-right:.75rem!important}div.extendify .mr-6{margin-right:1.5rem!important}div.extendify .-mr-1{margin-right:-.25rem!important}div.extendify .-mr-1\.5{margin-right:-.375rem!important}div.extendify .mb-0{margin-bottom:0!important}div.extendify .mb-1{margin-bottom:.25rem!important}div.extendify .mb-2{margin-bottom:.5rem!important}div.extendify .mb-4{margin-bottom:1rem!important}div.extendify .mb-5{margin-bottom:1.25rem!important}div.extendify .mb-8{margin-bottom:2rem!important}div.extendify .mb-10{margin-bottom:2.5rem!important}div.extendify .mb-12{margin-bottom:3rem!important}div.extendify .ml-1{margin-left:.25rem!important}div.extendify .ml-2{margin-left:.5rem!important}div.extendify .ml-4{margin-left:1rem!important}div.extendify .ml-12{margin-left:3rem!important}div.extendify .-ml-1{margin-left:-.25rem!important}div.extendify .-ml-2{margin-left:-.5rem!important}div.extendify .-ml-6{margin-left:-1.5rem!important}div.extendify .-ml-px{margin-left:-1px!important}div.extendify .-ml-1\.5{margin-left:-.375rem!important}div.extendify .block{display:block!important}div.extendify .inline-block{display:inline-block!important}div.extendify .flex{display:flex!important}div.extendify .inline-flex{display:inline-flex!important}div.extendify .table{display:table!important}div.extendify .grid{display:grid!important}div.extendify .hidden{display:none!important}div.extendify .h-0{height:0!important}div.extendify .h-2{height:.5rem!important}div.extendify .h-4{height:1rem!important}div.extendify .h-5{height:1.25rem!important}div.extendify .h-6{height:1.5rem!important}div.extendify .h-8{height:2rem!important}div.extendify .h-12{height:3rem!important}div.extendify .h-32{height:8rem!important}div.extendify .h-64{height:16rem!important}div.extendify .h-auto{height:auto!important}div.extendify .h-full{height:100%!important}div.extendify .h-screen{height:100vh!important}div.extendify .max-h-96{max-height:24rem!important}div.extendify .min-h-48{min-height:12rem!important}div.extendify .min-h-screen{min-height:100vh!important}div.extendify .w-0{width:0!important}div.extendify .w-4{width:1rem!important}div.extendify .w-5{width:1.25rem!important}div.extendify .w-6{width:1.5rem!important}div.extendify .w-8{width:2rem!important}div.extendify .w-10{width:2.5rem!important}div.extendify .w-16{width:4rem!important}div.extendify .w-28{width:7rem!important}div.extendify .w-32{width:8rem!important}div.extendify .w-72{width:18rem!important}div.extendify .w-80{width:20rem!important}div.extendify .w-96{width:24rem!important}div.extendify .w-auto{width:auto!important}div.extendify .w-6\/12{width:50%!important}div.extendify .w-7\/12{width:58.333333%!important}div.extendify .w-full{width:100%!important}div.extendify .w-screen{width:100vw!important}div.extendify .min-w-0{min-width:0!important}div.extendify .min-w-sm{min-width:7rem!important}div.extendify .max-w-sm{max-width:24rem!important}div.extendify .max-w-md{max-width:28rem!important}div.extendify .max-w-lg{max-width:32rem!important}div.extendify .max-w-xl{max-width:36rem!important}div.extendify .max-w-2xl{max-width:42rem!important}div.extendify .max-w-4xl{max-width:56rem!important}div.extendify .max-w-full{max-width:100%!important}div.extendify .max-w-screen-4xl{max-width:1920px!important}div.extendify .flex-1{flex:1 1 0%!important}div.extendify .flex-shrink-0{flex-shrink:0!important}div.extendify .flex-grow-0{flex-grow:0!important}div.extendify .flex-grow{flex-grow:1!important}div.extendify .transform{--tw-translate-x:0!important;--tw-translate-y:0!important;--tw-rotate:0!important;--tw-skew-x:0!important;--tw-skew-y:0!important;--tw-scale-x:1!important;--tw-scale-y:1!important;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}div.extendify .-translate-x-1{--tw-translate-x:-0.25rem!important}div.extendify .translate-y-0{--tw-translate-y:0px!important}div.extendify .translate-y-4{--tw-translate-y:1rem!important}div.extendify .-translate-y-px{--tw-translate-y:-1px!important}div.extendify .-translate-y-full{--tw-translate-y:-100%!important}div.extendify .rotate-90{--tw-rotate:90deg!important}div.extendify .cursor-pointer{cursor:pointer!important}div.extendify .grid-cols-3-minmax-300px-1fr{grid-template-columns:repeat(3,minmax(300px,1fr))!important}div.extendify .flex-col{flex-direction:column!important}div.extendify .flex-wrap{flex-wrap:wrap!important}div.extendify .items-start{align-items:flex-start!important}div.extendify .items-end{align-items:flex-end!important}div.extendify .items-center{align-items:center!important}div.extendify .justify-end{justify-content:flex-end!important}div.extendify .justify-center{justify-content:center!important}div.extendify .justify-between{justify-content:space-between!important}div.extendify .justify-evenly{justify-content:space-evenly!important}div.extendify .gap-4{gap:1rem!important}div.extendify .gap-6{gap:1.5rem!important}div.extendify .gap-x-4{-moz-column-gap:1rem!important;column-gap:1rem!important}div.extendify .gap-y-1{row-gap:.25rem!important}div.extendify .gap-y-3{row-gap:.75rem!important}div.extendify .space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(0px*var(--tw-space-x-reverse))!important}div.extendify .space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.25rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.5rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.75rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(1rem*var(--tw-space-x-reverse))!important}div.extendify .space-x-0\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.125rem*var(--tw-space-x-reverse))!important}div.extendify .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1rem*var(--tw-space-y-reverse))!important;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(2rem*var(--tw-space-y-reverse))!important;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0!important;border-bottom-width:calc(1px*var(--tw-divide-y-reverse))!important;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))!important}div.extendify .self-start{align-self:flex-start!important}div.extendify .overflow-hidden{overflow:hidden!important}div.extendify .overflow-y-auto{overflow-y:auto!important}div.extendify .overflow-x-hidden{overflow-x:hidden!important}div.extendify .overflow-y-scroll{overflow-y:scroll!important}div.extendify .whitespace-nowrap{white-space:nowrap!important}div.extendify .rounded-none{border-radius:0!important}div.extendify .rounded-sm{border-radius:.125rem!important}div.extendify .rounded{border-radius:.25rem!important}div.extendify .rounded-md{border-radius:.375rem!important}div.extendify .rounded-lg{border-radius:.5rem!important}div.extendify .rounded-full{border-radius:9999px!important}div.extendify .rounded-tr-sm{border-top-right-radius:.125rem!important}div.extendify .rounded-br-sm{border-bottom-right-radius:.125rem!important}div.extendify .border-0{border-width:0!important}div.extendify .border-2{border-width:2px!important}div.extendify .border-8{border-width:8px!important}div.extendify .border{border-width:1px!important}div.extendify .border-t{border-top-width:1px!important}div.extendify .border-r{border-right-width:1px!important}div.extendify .border-b-0{border-bottom-width:0!important}div.extendify .border-b{border-bottom-width:1px!important}div.extendify .border-l-8{border-left-width:8px!important}div.extendify .border-solid{border-style:solid!important}div.extendify .border-none{border-style:none!important}div.extendify .border-transparent{border-color:transparent!important}div.extendify .border-black{--tw-border-opacity:1!important;border-color:rgba(0,0,0,var(--tw-border-opacity))!important}div.extendify .border-white{--tw-border-opacity:1!important;border-color:rgba(255,255,255,var(--tw-border-opacity))!important}div.extendify .border-gray-100{--tw-border-opacity:1!important;border-color:rgba(240,240,240,var(--tw-border-opacity))!important}div.extendify .border-gray-200{--tw-border-opacity:1!important;border-color:rgba(224,224,224,var(--tw-border-opacity))!important}div.extendify .border-gray-700{--tw-border-opacity:1!important;border-color:rgba(117,117,117,var(--tw-border-opacity))!important}div.extendify .border-gray-800{--tw-border-opacity:1!important;border-color:rgba(31,41,55,var(--tw-border-opacity))!important}div.extendify .border-gray-900{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important}div.extendify .border-partner-primary-bg{border-color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}div.extendify .border-extendify-main{--tw-border-opacity:1!important;border-color:rgba(11,74,67,var(--tw-border-opacity))!important}div.extendify .border-extendify-secondary{--tw-border-opacity:1!important;border-color:rgba(203,195,245,var(--tw-border-opacity))!important}div.extendify .border-extendify-transparent-black-100{border-color:rgba(0,0,0,.07)!important}div.extendify .border-wp-alert-red{--tw-border-opacity:1!important;border-color:rgba(204,24,24,var(--tw-border-opacity))!important}div.extendify .focus\:border-transparent:focus{border-color:transparent!important}div.extendify .bg-transparent{background-color:transparent!important}div.extendify .bg-black{--tw-bg-opacity:1!important;background-color:rgba(0,0,0,var(--tw-bg-opacity))!important}div.extendify .bg-white{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify .bg-gray-50{--tw-bg-opacity:1!important;background-color:rgba(251,251,251,var(--tw-bg-opacity))!important}div.extendify .bg-gray-100{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify .bg-gray-200{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify .bg-gray-700{--tw-bg-opacity:1!important;background-color:rgba(117,117,117,var(--tw-bg-opacity))!important}div.extendify .bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify .bg-partner-primary-bg{background-color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}div.extendify .bg-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-alert{--tw-bg-opacity:1!important;background-color:rgba(132,16,16,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-secondary{--tw-bg-opacity:1!important;background-color:rgba(203,195,245,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-transparent-white{background-color:hsla(0,0%,99%,.88)!important}div.extendify .bg-wp-theme-500{background-color:var(--wp-admin-theme-color,#007cba)!important}div.extendify .group:hover .group-hover\:bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify .hover\:bg-gray-100:hover{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify .hover\:bg-partner-primary-bg:hover{background-color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}div.extendify .hover\:bg-extendify-main-dark:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}div.extendify .hover\:bg-wp-theme-600:hover{background-color:var(--wp-admin-theme-color-darker-10,#006ba1)!important}div.extendify .focus\:bg-white:focus{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify .focus\:bg-gray-100:focus{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify .active\:bg-gray-900:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify .bg-opacity-40{--tw-bg-opacity:0.4!important}div.extendify .bg-gradient-to-l{background-image:linear-gradient(to left,var(--tw-gradient-stops))!important}div.extendify .from-white{--tw-gradient-from:#fff!important;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,hsla(0,0%,100%,0))!important}div.extendify .bg-cover{background-size:cover!important}div.extendify .bg-clip-padding{background-clip:padding-box!important}div.extendify .fill-current{fill:currentColor!important}div.extendify .stroke-current{stroke:currentColor!important}div.extendify .p-0{padding:0!important}div.extendify .p-1{padding:.25rem!important}div.extendify .p-2{padding:.5rem!important}div.extendify .p-3{padding:.75rem!important}div.extendify .p-4{padding:1rem!important}div.extendify .p-6{padding:1.5rem!important}div.extendify .p-8{padding:2rem!important}div.extendify .p-10{padding:2.5rem!important}div.extendify .p-12{padding:3rem!important}div.extendify .p-0\.5{padding:.125rem!important}div.extendify .p-1\.5{padding:.375rem!important}div.extendify .p-3\.5{padding:.875rem!important}div.extendify .px-0{padding-left:0!important;padding-right:0!important}div.extendify .px-1{padding-left:.25rem!important;padding-right:.25rem!important}div.extendify .px-2{padding-left:.5rem!important;padding-right:.5rem!important}div.extendify .px-3{padding-left:.75rem!important;padding-right:.75rem!important}div.extendify .px-4{padding-left:1rem!important;padding-right:1rem!important}div.extendify .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}div.extendify .px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}div.extendify .px-8{padding-left:2rem!important;padding-right:2rem!important}div.extendify .px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}div.extendify .px-0\.5{padding-left:.125rem!important;padding-right:.125rem!important}div.extendify .px-2\.5{padding-left:.625rem!important;padding-right:.625rem!important}div.extendify .py-0{padding-bottom:0!important;padding-top:0!important}div.extendify .py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}div.extendify .py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}div.extendify .py-3{padding-bottom:.75rem!important;padding-top:.75rem!important}div.extendify .py-4{padding-bottom:1rem!important;padding-top:1rem!important}div.extendify .py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}div.extendify .py-12{padding-bottom:3rem!important;padding-top:3rem!important}div.extendify .py-2\.5{padding-bottom:.625rem!important;padding-top:.625rem!important}div.extendify .pt-0{padding-top:0!important}div.extendify .pt-1{padding-top:.25rem!important}div.extendify .pt-2{padding-top:.5rem!important}div.extendify .pt-4{padding-top:1rem!important}div.extendify .pt-6{padding-top:1.5rem!important}div.extendify .pt-px{padding-top:1px!important}div.extendify .pt-0\.5{padding-top:.125rem!important}div.extendify .pr-3{padding-right:.75rem!important}div.extendify .pr-8{padding-right:2rem!important}div.extendify .pb-2{padding-bottom:.5rem!important}div.extendify .pb-3{padding-bottom:.75rem!important}div.extendify .pb-8{padding-bottom:2rem!important}div.extendify .pb-20{padding-bottom:5rem!important}div.extendify .pb-36{padding-bottom:9rem!important}div.extendify .pb-40{padding-bottom:10rem!important}div.extendify .pl-0{padding-left:0!important}div.extendify .pl-2{padding-left:.5rem!important}div.extendify .pl-4{padding-left:1rem!important}div.extendify .pl-6{padding-left:1.5rem!important}div.extendify .text-left{text-align:left!important}div.extendify .text-center{text-align:center!important}div.extendify .align-middle{vertical-align:middle!important}div.extendify .text-xs{font-size:.75rem!important;line-height:1rem!important}div.extendify .text-sm{font-size:.875rem!important;line-height:1.25rem!important}div.extendify .text-base{font-size:1rem!important;line-height:1.5rem!important}div.extendify .text-lg{font-size:1.125rem!important;line-height:1.75rem!important}div.extendify .text-xl{font-size:1.25rem!important;line-height:1.75rem!important}div.extendify .text-3xl{font-size:2rem!important;line-height:2.5rem!important}div.extendify .text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}div.extendify .font-light{font-weight:300!important}div.extendify .font-normal{font-weight:400!important}div.extendify .font-medium{font-weight:500!important}div.extendify .font-semibold{font-weight:600!important}div.extendify .font-bold{font-weight:700!important}div.extendify .uppercase{text-transform:uppercase!important}div.extendify .italic{font-style:italic!important}div.extendify .leading-none{line-height:1!important}div.extendify .tracking-tight{letter-spacing:-.025em!important}div.extendify .text-black{--tw-text-opacity:1!important;color:rgba(0,0,0,var(--tw-text-opacity))!important}div.extendify .text-white{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify .text-gray-500{--tw-text-opacity:1!important;color:rgba(204,204,204,var(--tw-text-opacity))!important}div.extendify .text-gray-700{--tw-text-opacity:1!important;color:rgba(117,117,117,var(--tw-text-opacity))!important}div.extendify .text-gray-800{--tw-text-opacity:1!important;color:rgba(31,41,55,var(--tw-text-opacity))!important}div.extendify .text-gray-900{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify .text-green-500{--tw-text-opacity:1!important;color:rgba(16,185,129,var(--tw-text-opacity))!important}div.extendify .text-partner-primary-text{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify .text-partner-primary-bg{color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}div.extendify .text-extendify-main{--tw-text-opacity:1!important;color:rgba(11,74,67,var(--tw-text-opacity))!important}div.extendify .text-extendify-main-dark{--tw-text-opacity:1!important;color:rgba(5,49,44,var(--tw-text-opacity))!important}div.extendify .text-extendify-gray{--tw-text-opacity:1!important;color:rgba(95,95,95,var(--tw-text-opacity))!important}div.extendify .text-extendify-black{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify .text-wp-theme-500{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify .text-wp-alert-red{--tw-text-opacity:1!important;color:rgba(204,24,24,var(--tw-text-opacity))!important}div.extendify .group:hover .group-hover\:text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify .focus-within\:text-partner-primary-bg:focus-within{color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}div.extendify .hover\:text-white:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .hover\:text-partner-primary-text:hover{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify .hover\:text-partner-primary-bg:hover{color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}div.extendify .hover\:text-wp-theme-500:hover{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify .focus\:text-white:focus{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .focus\:text-blue-500:focus{--tw-text-opacity:1!important;color:rgba(59,130,246,var(--tw-text-opacity))!important}div.extendify .focus\:text-partner-primary-bg:focus{color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}div.extendify .underline{text-decoration:underline!important}div.extendify .line-through{text-decoration:line-through!important}div.extendify .no-underline{text-decoration:none!important}div.extendify .hover\:underline:hover{text-decoration:underline!important}div.extendify .hover\:no-underline:hover{text-decoration:none!important}div.extendify .opacity-0{opacity:0!important}div.extendify .opacity-30{opacity:.3!important}div.extendify .opacity-50{opacity:.5!important}div.extendify .opacity-60{opacity:.6!important}div.extendify .opacity-70{opacity:.7!important}div.extendify .opacity-75{opacity:.75!important}div.extendify .focus\:opacity-100:focus,div.extendify .group:focus .group-focus\:opacity-100,div.extendify .group:hover .group-hover\:opacity-100,div.extendify .hover\:opacity-100:hover,div.extendify .opacity-100{opacity:1!important}div.extendify .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05)!important}div.extendify .shadow-md,div.extendify .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06)!important}div.extendify .shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25)!important}div.extendify .shadow-2xl,div.extendify .shadow-modal{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify .shadow-modal{--tw-shadow:0 0 0 1px rgba(0,0,0,.1),0 3px 15px -3px rgba(0,0,0,.035),0 0 1px rgba(0,0,0,.05)!important}div.extendify .focus\:shadow-none:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify .focus\:outline-none:focus,div.extendify .outline-none{outline:2px solid transparent!important;outline-offset:2px!important}div.extendify .focus\:ring-wp:focus,div.extendify .ring-wp{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}div.extendify .ring-partner-primary-bg{--tw-ring-color:var(--ext-partner-theme-primary-bg,#3e58e1)!important}div.extendify .ring-offset-0{--tw-ring-offset-width:0px!important}div.extendify .ring-offset-2{--tw-ring-offset-width:2px!important}div.extendify .ring-offset-white{--tw-ring-offset-color:#fff!important}div.extendify .filter{--tw-blur:var(--tw-empty,/*!*/ /*!*/)!important;--tw-brightness:var(--tw-empty,/*!*/ /*!*/)!important;--tw-contrast:var(--tw-empty,/*!*/ /*!*/)!important;--tw-grayscale:var(--tw-empty,/*!*/ /*!*/)!important;--tw-hue-rotate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-invert:var(--tw-empty,/*!*/ /*!*/)!important;--tw-saturate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-sepia:var(--tw-empty,/*!*/ /*!*/)!important;--tw-drop-shadow:var(--tw-empty,/*!*/ /*!*/)!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}div.extendify .blur{--tw-blur:blur(8px)!important}div.extendify .invert{--tw-invert:invert(100%)!important}div.extendify .backdrop-filter{--tw-backdrop-blur:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-brightness:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-contrast:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-grayscale:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-hue-rotate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-invert:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-opacity:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-saturate:var(--tw-empty,/*!*/ /*!*/)!important;--tw-backdrop-sepia:var(--tw-empty,/*!*/ /*!*/)!important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}div.extendify .backdrop-blur-xl{--tw-backdrop-blur:blur(24px)!important}div.extendify .backdrop-saturate-200{--tw-backdrop-saturate:saturate(2)!important}div.extendify .transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify .transition{transition-duration:.15s!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify .transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify .delay-200{transition-delay:.2s!important}div.extendify .duration-100{transition-duration:.1s!important}div.extendify .duration-200{transition-duration:.2s!important}div.extendify .duration-300{transition-duration:.3s!important}div.extendify .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}div.extendify .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.extendify{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/)!important;--tw-ring-offset-width:0px!important;--tw-ring-offset-color:transparent!important;--tw-ring-color:var(--wp-admin-theme-color)!important}.extendify *,.extendify :after,.extendify :before{border:0 solid #e5e7eb!important;box-sizing:border-box!important}.extendify .button-focus:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify .button-focus{outline:2px solid transparent!important;outline-offset:2px!important}.extendify .button-focus:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-color:var(--wp-admin-theme-color,#007cba)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}div.extendify button.extendify-skip-to-sr-link:focus{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important;padding:1rem!important;position:fixed!important;top:0!important;z-index:99999!important}.button-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important;border-radius:.25rem!important;cursor:pointer!important;white-space:nowrap!important}.button-extendify-main:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}.button-extendify-main:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}.button-extendify-main{font-size:1rem!important;line-height:1.5rem!important;padding:.375rem .75rem!important}.button-extendify-main,.button-extendify-main:active,.button-extendify-main:focus,.button-extendify-main:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}.button-extendify-main{text-decoration:none!important;transition-duration:.15s!important;transition-duration:.2s!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.extendify .button-extendify-main:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify .button-extendify-main{outline:2px solid transparent!important;outline-offset:2px!important}.extendify .button-extendify-main:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-color:var(--wp-admin-theme-color,#007cba)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.extendify input.button-extendify-main:focus,.extendify input.button-focus:focus,.extendify select.button-extendify-main:focus,.extendify select.button-focus:focus{--tw-shadow:0 0 #0000!important;border-color:transparent!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;outline:2px solid transparent!important;outline-offset:2px!important}#extendify-search-input:not(:-moz-placeholder-shown)~svg{display:none!important}#extendify-search-input:not(:-ms-input-placeholder)~svg{display:none!important}#extendify-search-input:focus~svg,#extendify-search-input:not(:placeholder-shown)~svg{display:none!important}#extendify-search-input::-webkit-textfield-decoration-container{margin-right:.75rem!important}.extendify .components-panel__body>.components-panel__body-title{background-color:transparent!important;border-bottom:1px solid #e0e0e0!important}.extendify .components-modal__header{--tw-border-opacity:1!important;border-bottom-width:1px!important;border-color:rgba(221,221,221,var(--tw-border-opacity))!important}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.ext{max-width:none!important}.extendify .block-editor-block-preview__container{-webkit-animation:extendifyOpacityIn .2s cubic-bezier(.694,0,.335,1) 0ms forwards;animation:extendifyOpacityIn .2s cubic-bezier(.694,0,.335,1) 0ms forwards;opacity:0}.extendify .is-root-container>[data-align=full],.extendify .is-root-container>[data-align=full]>.wp-block,.extendify .is-root-container>[data-block]{margin-bottom:0!important;margin-top:0!important}.editor-styles-wrapper:not(.block-editor-writing-flow)>.is-root-container :where(.wp-block)[data-align=full]{margin-bottom:0!important;margin-top:0!important}@-webkit-keyframes extendifyOpacityIn{0%{opacity:0}to{opacity:1}}@keyframes extendifyOpacityIn{0%{opacity:0}to{opacity:1}}.extendify .with-light-shadow:after{--tw-shadow:inset 0 0 0 1px rgba(0,0,0,.1),0 3px 15px -3px rgba(0,0,0,.035),0 0 1px rgba(0,0,0,.025)!important;border-width:0!important;bottom:0!important;content:""!important;left:0!important;position:absolute!important;right:0!important;top:0!important}.extendify .with-light-shadow:after,.extendify .with-light-shadow:hover:after{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify .with-light-shadow:hover:after{--tw-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 3px 15px -3px rgba(0,0,0,.025),0 0 1px rgba(0,0,0,.02)!important}@supports not (((-webkit-backdrop-filter:saturate(2) blur(24px)) or (backdrop-filter:saturate(2) blur(24px)))){div.extendify .bg-extendify-transparent-white{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}}.components-panel__body.ext-type-control .components-panel__body-title{border-bottom-width:0!important;margin:0 -1rem!important;padding-left:1.25rem!important;padding-right:1.25rem!important}.extendify .animate-pulse{-webkit-animation:extendifyPulse 3s cubic-bezier(.4,0,.6,1) infinite;animation:extendifyPulse 3s cubic-bezier(.4,0,.6,1) infinite}@-webkit-keyframes extendifyPulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes extendifyPulse{0%,to{opacity:1}50%{opacity:.5}}.is-template--in-review:before,.is-template--inactive:before{--tw-border-opacity:1!important;border-color:rgba(203,195,245,var(--tw-border-opacity))!important;border-style:solid!important;border-width:8px!important;bottom:0!important;content:""!important;height:100%!important;left:0!important;position:absolute!important;right:0!important;top:0!important;width:100%!important;z-index:40!important}.is-template--inactive:before{border-color:#fdeab6!important}.extendify-tooltip-default:not(.is-without-arrow)[data-y-axis=bottom]:after{border-bottom-color:#1e1e1e!important}.extendify-tooltip-default:not(.is-without-arrow):before{border-color:transparent!important}.extendify-tooltip-default:not(.is-without-arrow) .components-popover__content{--tw-bg-opacity:1!important;--tw-text-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important;border-color:transparent!important;color:rgba(255,255,255,var(--tw-text-opacity))!important;min-width:250px!important;padding:1rem!important}.extendify-bottom-arrow:after{--tw-translate-x:0!important;--tw-translate-y:0!important;--tw-rotate:0!important;--tw-skew-x:0!important;--tw-skew-y:0!important;--tw-scale-x:1!important;--tw-scale-y:1!important;--tw-translate-y:-1px!important;border-color:#1e1e1e transparent transparent!important;border-width:8px!important;bottom:-15px!important;content:""!important;display:inline-block!important;height:0!important;position:absolute!important;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;width:0!important}@media (min-width:480px){div.extendify .xs\:inline{display:inline!important}div.extendify .xs\:h-9{height:2.25rem!important}div.extendify .xs\:pr-3{padding-right:.75rem!important}div.extendify .xs\:pl-2{padding-left:.5rem!important}}@media (min-width:600px){div.extendify .sm\:mx-0{margin-left:0!important;margin-right:0!important}div.extendify .sm\:mt-0{margin-top:0!important}div.extendify .sm\:mb-8{margin-bottom:2rem!important}div.extendify .sm\:ml-2{margin-left:.5rem!important}div.extendify .sm\:block{display:block!important}div.extendify .sm\:flex{display:flex!important}div.extendify .sm\:h-auto{height:auto!important}div.extendify .sm\:w-72{width:18rem!important}div.extendify .sm\:w-auto{width:auto!important}div.extendify .sm\:translate-y-5{--tw-translate-y:1.25rem!important}div.extendify .sm\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .sm\:p-0{padding:0!important}div.extendify .sm\:py-0{padding-bottom:0!important;padding-top:0!important}div.extendify .sm\:pt-0{padding-top:0!important}div.extendify .sm\:pt-5{padding-top:1.25rem!important}}@media (min-width:782px){div.extendify .md\:m-0{margin:0!important}div.extendify .md\:-ml-8{margin-left:-2rem!important}div.extendify .md\:block{display:block!important}div.extendify .md\:flex{display:flex!important}div.extendify .md\:hidden{display:none!important}div.extendify .md\:h-screen{height:100vh!important}div.extendify .md\:w-40vw{width:40vw!important}div.extendify .md\:max-w-md{max-width:28rem!important}div.extendify .md\:max-w-2xl{max-width:42rem!important}div.extendify .md\:flex-row{flex-direction:row!important}div.extendify .md\:gap-8{gap:2rem!important}div.extendify .md\:space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(2rem*var(--tw-space-y-reverse))!important;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify .md\:overflow-hidden{overflow:hidden!important}div.extendify .md\:overflow-y-scroll{overflow-y:scroll!important}div.extendify .md\:p-8{padding:2rem!important}div.extendify .md\:px-8{padding-right:2rem!important}div.extendify .md\:pl-8,div.extendify .md\:px-8{padding-left:2rem!important}}@media (min-width:1080px){div.extendify .lg\:absolute{position:absolute!important}div.extendify .lg\:-mr-1{margin-right:-.25rem!important}div.extendify .lg\:block{display:block!important}div.extendify .lg\:flex{display:flex!important}div.extendify .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify .lg\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(2rem*var(--tw-space-x-reverse))!important}div.extendify .lg\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(0px*var(--tw-space-y-reverse))!important;margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))!important}div.extendify .lg\:overflow-hidden{overflow:hidden!important}div.extendify .lg\:p-16{padding:4rem!important}div.extendify .lg\:px-12{padding-left:3rem!important;padding-right:3rem!important}}@media (min-width:1280px){div.extendify .xl\:grid{display:grid!important}}
extendify-sdk/public/build/extendify.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! For license information please see extendify.js.LICENSE.txt */
2
- (()=>{var e,t={7135:(e,t,n)=>{e.exports=n(6248)},4206:(e,t,n)=>{e.exports=n(8057)},4387:(e,t,n)=>{"use strict";var r=n(7485),o=n(4570),i=n(2940),s=n(581),a=n(574),l=n(3845),u=n(8338),c=n(4832),f=n(7354),d=n(8870),p=n(4906);e.exports=function(e){return new Promise((function(t,n){var h,m=e.data,x=e.headers,y=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete x["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";x.Authorization="Basic "+btoa(b+":"+w)}var j=a(e.baseURL,e.url);function k(){if(g){var r="getAllResponseHeaders"in g?l(g.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};o((function(e){t(e),v()}),(function(e){n(e),v()}),i),g=null}}if(g.open(e.method.toUpperCase(),s(j,e.params,e.paramsSerializer),!0),g.timeout=e.timeout,"onloadend"in g?g.onloadend=k:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(k)},g.onabort=function(){g&&(n(new f("Request aborted",f.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,g,g)),g=null},g.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,g)),g=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||u(j))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(x[e.xsrfHeaderName]=E)}"setRequestHeader"in g&&r.forEach(x,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete x[t]:g.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),y&&"json"!==y&&(g.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&g.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){g&&(n(!e||e&&e.type?new d:e),g.abort(),g=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null);var _=p(j);_&&-1===["http","https","file"].indexOf(_)?n(new f("Unsupported protocol "+_+":",f.ERR_BAD_REQUEST,e)):g.send(m)}))}},8057:(e,t,n)=>{"use strict";var r=n(7485),o=n(875),i=n(5029),s=n(4941);var a=function e(t){var n=new i(t),a=o(i.prototype.request,n);return r.extend(a,i.prototype,n),r.extend(a,n),a.create=function(n){return e(s(t,n))},a}(n(8396));a.Axios=i,a.CanceledError=n(8870),a.CancelToken=n(4603),a.isCancel=n(1475),a.VERSION=n(3345).version,a.toFormData=n(1020),a.AxiosError=n(7354),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(5739),a.isAxiosError=n(5835),e.exports=a,e.exports.default=a},4603:(e,t,n)=>{"use strict";var r=n(8870);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},8870:(e,t,n)=>{"use strict";var r=n(7354);function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(7485).inherits(o,r,{__CANCEL__:!0}),e.exports=o},1475:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5029:(e,t,n)=>{"use strict";var r=n(7485),o=n(581),i=n(8096),s=n(5009),a=n(4941),l=n(574),u=n(6144),c=u.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!o){var f=[s,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(l),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var d=t;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(e){h(e);break}}try{i=s(d)}catch(e){return Promise.reject(e)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},f.prototype.getUri=function(e){e=a(this.defaults,e);var t=l(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(a(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},7354:(e,t,n)=>{"use strict";var r=n(7485);function o(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(o,s),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,n,s,a,l){var u=Object.create(i);return r.toFlatObject(e,u,(function(e){return e!==Error.prototype})),o.call(u,e.message,t,n,s,a),u.name=e.name,l&&Object.assign(u,l),u},e.exports=o},8096:(e,t,n)=>{"use strict";var r=n(7485);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},574:(e,t,n)=>{"use strict";var r=n(2642),o=n(2288);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},5009:(e,t,n)=>{"use strict";var r=n(7485),o=n(9212),i=n(1475),s=n(8396),a=n(8870);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4941:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function s(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function l(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==l||(n[e]=o)})),n}},4570:(e,t,n)=>{"use strict";var r=n(7354);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},9212:(e,t,n)=>{"use strict";var r=n(7485),o=n(8396);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},8396:(e,t,n)=>{"use strict";var r=n(7061),o=n(7485),i=n(1446),s=n(7354),a=n(4832),l=n(1020),u={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var f,d={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(f=n(4387)),f),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=o.isObject(e),s=t&&t["Content-Type"];if((n=o.isFileList(e))||r&&"multipart/form-data"===s){var a=this.env&&this.env.FormData;return l(n?{"files[]":e}:e,a&&new a)}return r||"application/json"===s?(c(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw s.from(e,s.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(8750)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){d.headers[e]=o.merge(u)})),e.exports=d},4832:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},3345:e=>{e.exports={version:"0.27.2"}},875:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},581:(e,t,n)=>{"use strict";var r=n(7485);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},2288:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2940:(e,t,n)=>{"use strict";var r=n(7485);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},2642:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5835:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},8338:(e,t,n)=>{"use strict";var r=n(7485);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},1446:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},8750:e=>{e.exports=null},3845:(e,t,n)=>{"use strict";var r=n(7485),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,s={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},4906:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5739:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1020:(e,t,n)=>{"use strict";var r=n(816).Buffer,o=n(7485);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return function e(r,s){if(o.isPlainObject(r)||o.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+s);n.push(r),o.forEach(r,(function(n,r){if(!o.isUndefined(n)){var a,l=s?s+"."+r:r;if(n&&!s&&"object"==typeof n)if(o.endsWith(r,"{}"))n=JSON.stringify(n);else if(o.endsWith(r,"[]")&&(a=o.toArray(n)))return void a.forEach((function(e){!o.isUndefined(e)&&t.append(l,i(e))}));e(n,l)}})),n.pop()}else t.append(s,i(r))}(e),t}},6144:(e,t,n)=>{"use strict";var r=n(3345).version,o=n(7354),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var s={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new o(i(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!s[r]&&(s[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var s=r[i],a=t[s];if(a){var l=e[s],u=void 0===l||a(l,s,e);if(!0!==u)throw new o("option "+s+" must be "+u,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+s,o.ERR_BAD_OPTION)}},validators:i}},7485:(e,t,n)=>{"use strict";var r,o=n(875),i=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function l(e){return Array.isArray(e)}function u(e){return void 0===e}var c=a("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=a("Date"),h=a("File"),m=a("Blob"),x=a("FileList");function y(e){return"[object Function]"===i.call(e)}var v=a("URLSearchParams");function g(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var b,w=(b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return b&&e instanceof b});e.exports={isArray:l,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||y(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:u,isDate:p,isFile:h,isBlob:m,isFunction:y,isStream:function(e){return f(e)&&y(e.pipe)},isURLSearchParams:v,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:g,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)g(arguments[r],n);return t},extend:function(e,t,n){return g(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,s={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)s[i=r[o]]||(t[i]=e[i],s[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:x}},4330:(e,t,n)=>{"use strict";const r=wp.blocks,o=wp.element;var i=n(7135),s=n.n(i),a=n(7363),l=n.n(a);function u(e){let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(o!==t){const e=t;t=r?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:(e,r,i)=>r||i?((e,r=o,i=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let s=r(t);function a(){const n=r(t);if(!i(s,n)){const t=s;e(s=n,t)}}return n.add(a),()=>n.delete(a)})(e,r,i):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,i),i}const c="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?a.useEffect:a.useLayoutEffect;function f(e){const t="function"==typeof e?u(e):e,n=(e=t.getState,n=Object.is)=>{const[,r]=(0,a.useReducer)((e=>e+1),0),o=t.getState(),i=(0,a.useRef)(o),s=(0,a.useRef)(e),l=(0,a.useRef)(n),u=(0,a.useRef)(!1),f=(0,a.useRef)();let d;void 0===f.current&&(f.current=e(o));let p=!1;(i.current!==o||s.current!==e||l.current!==n||u.current)&&(d=e(o),p=!n(f.current,d)),c((()=>{p&&(f.current=d),i.current=o,s.current=e,l.current=n,u.current=!1}));const h=(0,a.useRef)(o);c((()=>{const e=()=>{try{const e=t.getState(),n=s.current(e);l.current(f.current,n)||(i.current=e,f.current=n,r())}catch(e){u.current=!0,r()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n}),[]);const m=p?d:f.current;return(0,a.useDebugValue)(m),m};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[n,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},n}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const d=e=>(t,n,r)=>{const o=r.subscribe;r.subscribe=(e,t,n)=>{let i=e;if(t){const o=(null==n?void 0:n.equalityFn)||Object.is;let s=e(r.getState());i=n=>{const r=e(n);if(!o(s,r)){const e=s;t(s=r,e)}},(null==n?void 0:n.fireImmediately)&&t(s,s)}return o(i)};return e(t,n,r)};var p=Object.defineProperty,h=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,y=(e,t,n)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))m.call(t,n)&&y(e,n,t[n]);if(h)for(var n of h(t))x.call(t,n)&&y(e,n,t[n]);return e};const g=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>g(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>g(t)(e)}}},b=(e,t)=>(n,r,o)=>{let i=v({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>v(v({},t),e)},t);(i.blacklist||i.whitelist)&&console.warn(`The ${i.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let s=!1;const a=new Set,l=new Set;let u;try{u=i.getStorage()}catch(e){}if(!u)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,o);u.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${i.name}' does not contain a 'removeItem' method, which will be required in v4.`);const c=g(i.serialize),f=()=>{const e=i.partialize(v({},r()));let t;i.whitelist&&Object.keys(e).forEach((t=>{var n;!(null==(n=i.whitelist)?void 0:n.includes(t))&&delete e[t]})),i.blacklist&&i.blacklist.forEach((t=>delete e[t]));const n=c({state:e,version:i.version}).then((e=>u.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return n},d=o.setState;o.setState=(e,t)=>{d(e,t),f()};const p=e(((...e)=>{n(...e),f()}),r,o);let h;const m=()=>{var e;if(!u)return;s=!1,a.forEach((e=>e(r())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return g(u.getItem.bind(u))(i.name).then((e=>{if(e)return i.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return h=i.merge(e,null!=(t=r())?t:p),n(h,!0),f()})).then((()=>{null==t||t(h,void 0),s=!0,l.forEach((e=>e(h)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{i=v(v({},i),e),e.getStorage&&(u=e.getStorage())},clearStorage:()=>{var e;null==(e=null==u?void 0:u.removeItem)||e.call(u,i.name)},rehydrate:()=>m(),hasHydrated:()=>s,onHydrate:e=>(a.add(e),()=>{a.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),h||p};function w(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return j(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 j(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var k=f(d(b((function(e,t){return{open:!1,ready:!1,metaData:{},currentTaxonomies:{},currentType:"pattern",modals:[],pushModal:function(n){return e({modals:[n].concat(w(t().modals))})},popModal:function(){return e({modals:t().modals.slice(1)})},removeAllModals:function(){return e({modals:[]})},updateCurrentTaxonomies:function(t){return e({currentTaxonomies:Object.assign({},t)})},updateCurrentType:function(t){return e({currentType:t})},setOpen:function(t){return e({open:t})},setReady:function(t){return e({ready:t})}}}),{name:"extendify-global-state",partialize:function(e){return delete e.modals,delete e.ready,e}}))),E=n(4206),_=n.n(E);const S=lodash;function C(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}var O=function(){return(e=s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(window.extendifyData.root,"/user"),{method:"GET",headers:{"X-WP-Nonce":window.extendifyData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify":!0}});case 2:return t=e.sent,e.next=5,t.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){C(i,r,o,s,a,"next",e)}function a(e){C(i,r,o,s,a,"throw",e)}s(void 0)}))})();var e},A=function(e,t){var n=new FormData;return n.append("email",e),n.append("key",t),Y.post("login",n,{headers:{"Content-Type":"multipart/form-data"}})},P=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),Y.post("user",t,{headers:{"Content-Type":"multipart/form-data"}})},T=function(){return Y.post("clear-user")},N=function(){return Y.get("max-free-imports")};function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(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)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return M(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 M(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 M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function F(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){B(i,r,o,s,a,"next",e)}function a(e){B(i,r,o,s,a,"throw",e)}s(void 0)}))}}var U,z,$,V={getItem:($=F(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return $.apply(this,arguments)}),setItem:(z=F(s().mark((function e(t,n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e,t){return z.apply(this,arguments)}),removeItem:(U=F(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return U.apply(this,arguments)})},W=function(){var e,t,n;return null===window.extendifyData.sitesettings||(null===(e=window.extendifyData)||void 0===e||null===(t=e.sitesettings)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.enabled)},q=D({},"main-button-text2","0007"),H=f(b((function(e,t){return{_hasHydrated:!1,firstLoadedOn:(new Date).toISOString(),email:"",apiKey:"",uuid:"",sdkPartner:"",noticesDismissedAt:{},modalNoticesDismissedAt:{},imports:0,runningImports:0,allowedImports:0,freebieImports:0,entryPoint:"not-set",enabled:W(),canInstallPlugins:!1,canActivatePlugins:!1,participatingTestsGroups:{},preferredOptions:{taxonomies:{},type:"",search:""},incrementImports:function(){var n=Number(t().freebieImports)>0?Number(t().freebieImports)-1:Number(t().freebieImports),r=Number(t().runningImports)+ +(n<1);e({imports:Number(t().imports)+1,runningImports:r,freebieImports:n})},giveFreebieImports:function(n){e({freebieImports:t().freebieImports+n})},totalAvailableImports:function(){return Number(t().allowedImports)+Number(t().freebieImports)},testGroup:function(n,r){if(Object.keys(q).includes(n)){var o=t().participatingTestsGroups;return o[n]||e({participatingTestsGroups:Object.assign({},o,D({},n,(0,S.sample)(r)))}),(o=t().participatingTestsGroups)[n]}},activeTestGroups:function(){return Object.entries(t().participatingTestsGroups).filter((function(e){var t=L(e,1)[0];return Object.keys(q).includes(t)})).reduce((function(e,t){var n=L(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})},activeTestGroupsUtmValue:function(){var e=Object.entries(t().activeTestGroups()).map((function(e){var t=L(e,2),n=t[0],r=t[1];return"".concat(q[n],"=").concat(r)}),"").join(":");return encodeURIComponent(e)},hasAvailableImports:function(){return!!t().apiKey||Number(t().runningImports)<Number(t().totalAvailableImports())},remainingImports:function(){var e=Number(t().totalAvailableImports())-Number(t().runningImports);return t().allowedImports?e>0?e:0:null},updatePreferredSiteType:function(e){t().updatePreferredOption("siteType",e)},updatePreferredOption:function(n,r){var o,i;Object.prototype.hasOwnProperty.call(t().preferredOptions,n)||(r=Object.assign({},null!==(o=null===(i=t().preferredOptions)||void 0===i?void 0:i.taxonomies)&&void 0!==o?o:{},D({},n,r)),n="taxonomies");e({preferredOptions:I({},Object.assign({},t().preferredOptions,D({},n,r)))})},markNoticeSeen:function(n,r){e(D({},"".concat(r,"DismissedAt"),I(I({},t()["".concat(r,"DismissedAt")]),{},D({},n,(new Date).toISOString()))))}}}),{name:"extendify-user",getStorage:function(){return V},onRehydrateStorage:function(){return function(){H.setState({_hasHydrated:!0})}},partialize:function(e){return delete e._hasHydrated,e}})),Y=_().create({baseURL:window.extendifyData.root,headers:{"X-WP-Nonce":window.extendifyData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Library":!0,"X-Extendify":!0}});function G(e){return Object.prototype.hasOwnProperty.call(e,"data")?e.data:e}function J(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}Y.interceptors.response.use((function(e){return function(e){return Object.prototype.hasOwnProperty.call(e,"soft_error")&&window.dispatchEvent(new CustomEvent("extendify::softerror-encountered",{detail:e.soft_error,bubbles:!0})),e}(G(e))}),(function(e){return function(e){if(e.response)return console.error(e.response),Promise.reject(G(e.response))}(e)})),Y.interceptors.request.use((function(e){return function(e){return e.headers["X-Extendify-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e}(function(e){var t=H.getState(),n=t.apiKey?"unlimited":t.remainingImports();return e.data&&(e.data.remaining_imports=n,e.data.entry_point=t.entryPoint,e.data.total_imports=t.imports,e.data.participating_tests=t.activeTestGroups()),e}(e))}),(function(e){return e}));var K=function(){return(e=s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Y.get("taxonomies");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){J(i,r,o,s,a,"next",e)}function a(e){J(i,r,o,s,a,"throw",e)}s(void 0)}))})();var e};function X(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}var Z=f(b((function(e,t){return{taxonomies:{},setTaxonomies:function(t){return e({taxonomies:t})},fetchTaxonomies:(n=s().mark((function e(){var n,r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K();case 2:if(r=e.sent,r=Object.keys(r).reduce((function(e,t){return e[t]=r[t],e}),{}),null!==(n=Object.keys(r))&&void 0!==n&&n.length){e.next=6;break}return e.abrupt("return");case 6:t().setTaxonomies(r);case 7:case"end":return e.stop()}}),e)})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function s(e){X(i,r,o,s,a,"next",e)}function a(e){X(i,r,o,s,a,"throw",e)}s(void 0)}))},function(){return r.apply(this,arguments)})};var n,r}),{name:"extendify-taxonomies"}));function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(e){return function(e){if(Array.isArray(e))return ie(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||oe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function re(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=oe(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function oe(e,t){if(e){if("string"==typeof e)return ie(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ie(e,t):void 0}}function ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function se(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}var ae=f(d((function(e,t){return{templates:[],skipNextFetch:!1,fetchToken:null,taxonomyDefaultState:{},nextPage:"",searchParams:{taxonomies:{},type:"pattern"},initTemplateData:function(){e({activeTemplate:{}}),t().setupDefaultTaxonomies(),t().updateType(k.getState().currentType)},appendTemplates:(n=s().mark((function n(r){var o,i,a;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:o=re(r),n.prev=1,a=s().mark((function n(){var r;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=i.value,!t().templates.find((function(e){return e.id===r.id}))){n.next=3;break}return n.abrupt("return","continue");case 3:return n.next=5,new Promise((function(e){return setTimeout(e,5)}));case 5:requestAnimationFrame((function(){var n=[].concat(ne(t().templates),[r]);e({templates:n})}));case 6:case"end":return n.stop()}}),n)})),o.s();case 4:if((i=o.n()).done){n.next=11;break}return n.delegateYield(a(),"t0",6);case 6:if("continue"!==n.t0){n.next=9;break}return n.abrupt("continue",9);case 9:n.next=4;break;case 11:n.next=16;break;case 13:n.prev=13,n.t1=n.catch(1),o.e(n.t1);case 16:return n.prev=16,o.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[1,13,16,19]])})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function s(e){se(i,r,o,s,a,"next",e)}function a(e){se(i,r,o,s,a,"throw",e)}s(void 0)}))},function(e){return r.apply(this,arguments)}),setupDefaultTaxonomies:function(){var n,r,o,i,s=Z.getState().taxonomies,a=Object.entries(s).reduce((function(e,t){return e[t[0]]=function(e){return"siteType"===e?{slug:"",title:"Not set"}:{slug:"",title:"Featured"}}(t[0]),e}),{}),l={},u=null!==(n=null===(r=H.getState().preferredOptions)||void 0===r?void 0:r.taxonomies)&&void 0!==n?n:{};u.tax_categories&&(u=t().getLegacySiteType(u,s)),a=Object.assign({},a,u,null!==(o=null===(i=k.getState())||void 0===i?void 0:i.currentTaxonomies)&&void 0!==o?o:{}),l.taxonomies=Object.assign({},a),e({taxonomyDefaultState:a,searchParams:ee({},Object.assign(t().searchParams,l))})},updateTaxonomies:function(e){var n,r,o={};(o.taxonomies=Object.assign({},t().searchParams.taxonomies,e),null!=o&&null!==(n=o.taxonomies)&&void 0!==n&&n.siteType)&&H.getState().updatePreferredOption("siteType",null==o||null===(r=o.taxonomies)||void 0===r?void 0:r.siteType);k.getState().updateCurrentTaxonomies(null==o?void 0:o.taxonomies),t().updateSearchParams(o)},updateType:function(e){k.getState().updateCurrentType(e),t().updateSearchParams({type:e})},updateSearchParams:function(n){null!=n&&n.taxonomies&&!Object.keys(n.taxonomies).length&&(n.taxonomies=t().taxonomyDefaultState);var r=Object.assign({},t().searchParams,n);JSON.stringify(r)!==JSON.stringify(t().searchParams)&&e({templates:[],nextPage:"",searchParams:r})},resetTemplates:function(){return e({templates:[],nextPage:""})},getLegacySiteType:function(e,n){var r=n.siteType.find((function(t){return[t.slug,null==t?void 0:t.title].includes(e.tax_categories)}));return H.getState().updatePreferredSiteType(r),t().updateTaxonomies({siteType:r}),H.getState().updatePreferredOption("tax_categories",null),H.getState().preferredOptions.taxonomies}};var n,r}))),le=function(){return Y.get("meta-data")},ue=function(e){var t,n,r,o,i,s=null!==(t=null===(n=ae.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return Y.post("simple-ping",{action:e,categories:s,sdk_partner:null!==(o=null===(i=H.getState())||void 0===i?void 0:i.sdkPartner)&&void 0!==o?o:""})};function ce(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ce),r}var fe,de=((fe=de||{})[fe.None=0]="None",fe[fe.RenderStrategy=1]="RenderStrategy",fe[fe.Static=2]="Static",fe),pe=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pe||{});function he({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let a=xe(t,e);if(i)return me(a,n,r,s);let l=null!=o?o:0;if(2&l){let{static:e=!1,...t}=a;if(e)return me(t,n,r,s)}if(1&l){let{unmount:e=!0,...t}=a;return ce(e?0:1,{0:()=>null,1:()=>me({...t,hidden:!0,style:{display:"none"}},n,r,s)})}return me(a,n,r,s)}function me(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...l}=ge(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},c="function"==typeof i?i(t):i;if(l.className&&"function"==typeof l.className&&(l.className=l.className(t)),o===a.Fragment&&Object.keys(ve(l)).length>0){if(!(0,a.isValidElement)(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return(0,a.cloneElement)(c,Object.assign({},xe(c.props,ve(ge(l,["ref"]))),u))}return(0,a.createElement)(o,Object.assign({},ge(l,["ref"]),o!==a.Fragment&&u),c)}function xe(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t){let r=n[e];for(let e of r){if(t.defaultPrevented)return;e(t)}}});return t}function ye(e){var t;return Object.assign((0,a.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ve(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function ge(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let be=Symbol();function we(e,t=!0){return Object.assign(e,{[be]:t})}function je(...e){let t=(0,a.useRef)(e);(0,a.useEffect)((()=>{t.current=e}),[e]);let n=(0,a.useCallback)((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}),[t]);return e.every((e=>null==e||(null==e?void 0:e[be])))?void 0:n}var ke=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ke||{});function Ee(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}const _e="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;let Se={serverHandoffComplete:!1};function Ce(){let[e,t]=(0,a.useState)(Se.serverHandoffComplete);return(0,a.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,a.useEffect)((()=>{!1===Se.serverHandoffComplete&&(Se.serverHandoffComplete=!0)}),[]),e}var Oe;let Ae=0;function Pe(){return++Ae}let Te=null!=(Oe=a.useId)?Oe:function(){let e=Ce(),[t,n]=a.useState(e?Pe:null);return _e((()=>{null===t&&n(Pe())}),[t]),null!=t?""+t:void 0},Ne=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Re,Ie=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Ie||{}),Le=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Le||{}),Me=((Re=Me||{})[Re.Previous=-1]="Previous",Re[Re.Next=1]="Next",Re);var De=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(De||{});function Be(e){null==e||e.focus({preventScroll:!0})}let Fe=["textarea","input"].join(",");function Ue(e,t){let n,r=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Ne))}(e),i=r.activeElement,s=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,o.indexOf(i))-1;if(4&t)return Math.max(0,o.indexOf(i))+1;if(8&t)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=32&t?{preventScroll:!0}:{},u=0,c=o.length;do{if(u>=c||u+c<=0)return 0;let e=a+u;if(16&t)e=(e+c)%c;else{if(e<0)return 3;if(e>=c)return 1}n=o[e],null==n||n.focus(l),u+=s}while(n!==r.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Fe))&&n}(n)&&n.select(),n.hasAttribute("tabindex")||n.setAttribute("tabindex","0"),2}function ze(e){let t=(0,a.useRef)(e);return _e((()=>{t.current=e}),[e]),t}function $e(e,t,n,r){let o=ze(n);(0,a.useEffect)((()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}),[e,t,r])}function Ve(){let e=(0,a.useRef)(!1);return _e((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function We(e){return"undefined"==typeof window?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function qe(...e){return(0,a.useMemo)((()=>We(...e)),[...e])}var He=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(He||{});function Ye(e,t=30,{initialFocus:n,containers:r}={}){let o=(0,a.useRef)(null),i=(0,a.useRef)(null),s=Ve(),l=Boolean(16&t),u=Boolean(2&t),c=qe(e);return(0,a.useEffect)((()=>{!l||o.current||(o.current=null==c?void 0:c.activeElement)}),[l,c]),(0,a.useEffect)((()=>{if(l)return()=>{Be(o.current),o.current=null}}),[l]),(0,a.useEffect)((()=>{if(!u)return;let t=e.current;if(!t)return;let r=null==c?void 0:c.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===r)return void(i.current=r)}else if(t.contains(r))return void(i.current=r);null!=n&&n.current?Be(n.current):Ue(t,Ie.First)===Le.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.current=null==c?void 0:c.activeElement}),[e,n,u,c]),$e(null==c?void 0:c.defaultView,"keydown",(n=>{!(4&t)||!e.current||n.key===ke.Tab&&(n.preventDefault(),Ue(e.current,(n.shiftKey?Ie.Previous:Ie.Next)|Ie.WrapAround)===Le.Success&&(i.current=null==c?void 0:c.activeElement))})),$e(null==c?void 0:c.defaultView,"focus",(n=>{if(!(8&t))return;let o=new Set(null==r?void 0:r.current);if(o.add(e),!o.size)return;let a=i.current;if(!a||!s.current)return;let l=n.target;l&&l instanceof HTMLElement?function(e,t){var n;for(let r of e)if(null!=(n=r.current)&&n.contains(t))return!0;return!1}(o,l)?(i.current=l,Be(l)):(n.preventDefault(),n.stopPropagation(),Be(a)):Be(i.current)}),!0),o}let Ge=new Set,Je=new Map;function Ke(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function Xe(e){let t=Je.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}const Ze=ReactDOM;let Qe=(0,a.createContext)(!1);function et(){return(0,a.useContext)(Qe)}function tt(e){return a.createElement(Qe.Provider,{value:e.force},e.children)}let nt=a.Fragment,rt=ye((function(e,t){let n=e,r=(0,a.useRef)(null),o=je(we((e=>{r.current=e})),t),i=qe(r),s=function(e){let t=et(),n=(0,a.useContext)(it),r=qe(e),[o,i]=(0,a.useState)((()=>{if(!t&&null!==n||"undefined"==typeof window)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return(0,a.useEffect)((()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))}),[o,r]),(0,a.useEffect)((()=>{t||null!==n&&i(n.current)}),[n,i,t]),o}(r),[l]=(0,a.useState)((()=>{var e;return"undefined"==typeof window?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),u=Ce();return _e((()=>{if(s&&l)return s.appendChild(l),()=>{var e;!s||!l||(s.removeChild(l),s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s)))}}),[s,l]),u&&s&&l?(0,Ze.createPortal)(he({ourProps:{ref:o},theirProps:n,defaultTag:nt,name:"Portal"}),l):null})),ot=a.Fragment,it=(0,a.createContext)(null),st=ye((function(e,t){let{target:n,...r}=e,o={ref:je(t)};return a.createElement(it.Provider,{value:n},he({ourProps:o,theirProps:r,defaultTag:ot,name:"Popover.Group"}))})),at=Object.assign(rt,{Group:st}),lt=(0,a.createContext)(null);function ut(){let e=(0,a.useContext)(lt);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,ut),e}return e}function ct(){let[e,t]=(0,a.useState)([]);return[e.length>0?e.join(" "):void 0,(0,a.useMemo)((()=>function(e){let n=(0,a.useCallback)((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n})))),[]),r=(0,a.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return a.createElement(lt.Provider,{value:r},e.children)}),[t])]}let ft=ye((function(e,t){let n=ut(),r=`headlessui-description-${Te()}`,o=je(t);_e((()=>n.register(r)),[r,n.register]);let i=e;return he({ourProps:{ref:o,...n.props,id:r},theirProps:i,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})})),dt=(0,a.createContext)(null);dt.displayName="OpenClosedContext";var pt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(pt||{});function ht(){return(0,a.useContext)(dt)}function mt({value:e,children:t}){return a.createElement(dt.Provider,{value:e},t)}let xt=(0,a.createContext)((()=>{}));xt.displayName="StackContext";var yt=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(yt||{});function vt({children:e,onUpdate:t,type:n,element:r}){let o=(0,a.useContext)(xt),i=(0,a.useCallback)(((...e)=>{null==t||t(...e),o(...e)}),[o,t]);return _e((()=>(i(0,n,r),()=>i(1,n,r))),[i,n,r]),a.createElement(xt.Provider,{value:i},e)}function gt(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function bt(e,t,n){let r=ze(t);(0,a.useEffect)((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}var wt=(e=>(e[e.None=1]="None",e[e.IgnoreScrollbars=2]="IgnoreScrollbars",e))(wt||{});var jt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(jt||{}),kt=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(kt||{});let Et={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},_t=(0,a.createContext)(null);function St(e){let t=(0,a.useContext)(_t);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,St),t}return t}function Ct(e,t){return ce(t.type,Et,e,t)}_t.displayName="DialogContext";let Ot=de.RenderStrategy|de.Static,At=ye((function(e,t){let{open:n,onClose:r,initialFocus:o,__demoMode:i=!1,...s}=e,[l,u]=(0,a.useState)(0),c=ht();void 0===n&&null!==c&&(n=ce(c,{[pt.Open]:!0,[pt.Closed]:!1}));let f=(0,a.useRef)(new Set),d=(0,a.useRef)(null),p=je(d,t),h=qe(d),m=e.hasOwnProperty("open")||null!==c,x=e.hasOwnProperty("onClose");if(!m&&!x)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!m)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!x)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof n)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n}`);if("function"!=typeof r)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${r}`);let y=n?0:1,[v,g]=(0,a.useReducer)(Ct,{titleId:null,descriptionId:null,panelRef:(0,a.createRef)()}),b=(0,a.useCallback)((()=>r(!1)),[r]),w=(0,a.useCallback)((e=>g({type:0,id:e})),[g]),j=!!Ce()&&(!i&&0===y),k=l>1,E=null!==(0,a.useContext)(_t),_=Ye(d,j?ce(k?"parent":"leaf",{parent:He.RestoreFocus,leaf:He.All&~He.FocusLock}):He.None,{initialFocus:o,containers:f});(function(e,t=!0){_e((()=>{if(!t||!e.current)return;let n=e.current,r=We(n);if(r){Ge.add(n);for(let e of Je.keys())e.contains(n)&&(Xe(e),Je.delete(e));return r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement){for(let t of Ge)if(e.contains(t))return;1===Ge.size&&(Je.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Ke(e))}})),()=>{if(Ge.delete(n),Ge.size>0)r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement&&!Je.has(e)){for(let t of Ge)if(e.contains(t))return;Je.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Ke(e)}}));else for(let e of Je.keys())Xe(e),Je.delete(e)}}}),[t])})(d,!!k&&j),function(e,t,n=1){let r=(0,a.useRef)(!1),o=ze((o=>{if(r.current)return;r.current=!0,gt((()=>{r.current=!1}));let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),s=o.target;if(s.ownerDocument.documentElement.contains(s)){if(2==(2&n)){let e=20,t=s.ownerDocument.documentElement;if(o.clientX>t.clientWidth-e||o.clientX<e||o.clientY>t.clientHeight-e||o.clientY<e)return}for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(s))return}return t(o,s)}}));bt("pointerdown",((...e)=>o.current(...e))),bt("mousedown",((...e)=>o.current(...e)))}((()=>{var e,t;return[...Array.from(null!=(e=null==h?void 0:h.querySelectorAll("body > *"))?e:[]).filter((e=>!(!(e instanceof HTMLElement)||e.contains(_.current)||v.panelRef.current&&e.contains(v.panelRef.current)))),null!=(t=v.panelRef.current)?t:d.current]}),(()=>{0===y&&(k||b())}),wt.IgnoreScrollbars),$e(null==h?void 0:h.defaultView,"keydown",(e=>{e.key===ke.Escape&&0===y&&(k||(e.preventDefault(),e.stopPropagation(),b()))})),(0,a.useEffect)((()=>{var e;if(0!==y||E)return;let t=We(d);if(!t)return;let n=t.documentElement,r=null!=(e=t.defaultView)?e:window,o=n.style.overflow,i=n.style.paddingRight,s=r.innerWidth-n.clientWidth;return n.style.overflow="hidden",n.style.paddingRight=`${s}px`,()=>{n.style.overflow=o,n.style.paddingRight=i}}),[y,E]),(0,a.useEffect)((()=>{if(0!==y||!d.current)return;let e=new IntersectionObserver((e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&b()}));return e.observe(d.current),()=>e.disconnect()}),[y,d,b]);let[S,C]=ct(),O=`headlessui-dialog-${Te()}`,A=(0,a.useMemo)((()=>[{dialogState:y,close:b,setTitleId:w},v]),[y,v,b,w]),P=(0,a.useMemo)((()=>({open:0===y})),[y]),T={ref:p,id:O,role:"dialog","aria-modal":0===y||void 0,"aria-labelledby":v.titleId,"aria-describedby":S,onClick(e){e.stopPropagation()}};return a.createElement(vt,{type:"Dialog",element:d,onUpdate:(0,a.useCallback)(((e,t,n)=>{"Dialog"===t&&ce(e,{[yt.Add](){f.current.add(n),u((e=>e+1))},[yt.Remove](){f.current.add(n),u((e=>e-1))}})}),[])},a.createElement(tt,{force:!0},a.createElement(at,null,a.createElement(_t.Provider,{value:A},a.createElement(at.Group,{target:d},a.createElement(tt,{force:!1},a.createElement(C,{slot:P,name:"Dialog.Description"},he({ourProps:T,theirProps:s,slot:P,defaultTag:"div",features:Ot,visible:0===y,name:"Dialog"}))))))))})),Pt=ye((function(e,t){let[{dialogState:n,close:r}]=St("Dialog.Overlay"),o=je(t),i=`headlessui-dialog-overlay-${Te()}`,s=(0,a.useCallback)((e=>{if(e.target===e.currentTarget){if(Ee(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),r()}}),[r]);return he({ourProps:{ref:o,id:i,"aria-hidden":!0,onClick:s},theirProps:e,slot:(0,a.useMemo)((()=>({open:0===n})),[n]),defaultTag:"div",name:"Dialog.Overlay"})})),Tt=ye((function(e,t){let[{dialogState:n},r]=St("Dialog.Backdrop"),o=je(t),i=`headlessui-dialog-backdrop-${Te()}`;(0,a.useEffect)((()=>{if(null===r.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[r.panelRef]);let s=(0,a.useMemo)((()=>({open:0===n})),[n]);return a.createElement(tt,{force:!0},a.createElement(at,null,he({ourProps:{ref:o,id:i,"aria-hidden":!0},theirProps:e,slot:s,defaultTag:"div",name:"Dialog.Backdrop"})))})),Nt=ye((function(e,t){let[{dialogState:n},r]=St("Dialog.Panel");return he({ourProps:{ref:je(t,r.panelRef),id:`headlessui-dialog-panel-${Te()}`},theirProps:e,slot:(0,a.useMemo)((()=>({open:0===n})),[n]),defaultTag:"div",name:"Dialog.Panel"})})),Rt=ye((function(e,t){let[{dialogState:n,setTitleId:r}]=St("Dialog.Title"),o=`headlessui-dialog-title-${Te()}`,i=je(t);(0,a.useEffect)((()=>(r(o),()=>r(null))),[o,r]);let s=(0,a.useMemo)((()=>({open:0===n})),[n]);return he({ourProps:{ref:i,id:o},theirProps:e,slot:s,defaultTag:"h2",name:"Dialog.Title"})})),It=Object.assign(At,{Backdrop:Tt,Panel:Nt,Overlay:Pt,Title:Rt,Description:ft});const Lt=wp.components,Mt=wp.i18n;const Dt=function(e){let{icon:t,size:n=24,...r}=e;return(0,o.cloneElement)(t,{width:n,height:n,...r})};var Bt=n(42),Ft=n.n(Bt);const Ut=e=>(0,o.createElement)("circle",e),zt=e=>(0,o.createElement)("g",e),$t=e=>(0,o.createElement)("path",e),Vt=e=>(0,o.createElement)("rect",e),Wt=e=>{let{className:t,isPressed:n,...r}=e;const i={...r,className:Ft()(t,{"is-pressed":n})||void 0,"aria-hidden":!0,focusable:!1};return(0,o.createElement)("svg",i)},qt=(0,o.createElement)(Wt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)($t,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));var Ht=n(4246);function Yt(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Gt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Yt(i,r,o,s,a,"next",e)}function a(e){Yt(i,r,o,s,a,"throw",e)}s(void 0)}))}}var Jt=function(){return Y.get("plugins")},Kt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=new FormData;return t.append("plugins",JSON.stringify(e)),Y.post("plugins",t,{headers:{"Content-Type":"multipart/form-data"}})},Xt=function(){return Y.get("active-plugins")};function Zt(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Qt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Zt(i,r,o,s,a,"next",e)}function a(e){Zt(i,r,o,s,a,"throw",e)}s(void 0)}))}}function en(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)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tn(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 tn(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 tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nn(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function rn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){nn(i,r,o,s,a,"next",e)}function a(e){nn(i,r,o,s,a,"throw",e)}s(void 0)}))}}function on(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function sn(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)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return an(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 an(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 an(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ln={promotion:function(e){var t,n=e.promotionData;return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)("span",{className:"text-black",children:null!==(t=null==n?void 0:n.text)&&void 0!==t?t:""}),(0,Ht.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,Ht.jsx)("div",{className:"flex items-center justify-center space-x-2",children:(null==n?void 0:n.url)&&(0,Ht.jsx)(Lt.Button,{variant:"link",className:"h-auto p-0 text-black underline hover:no-underline",href:"".concat(n.url,"&utm_source=").concat(window.extendifyData.sdk_partner,"&utm_group=").concat(H.getState().activeTestGroupsUtmValue()),onClick:rn(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("promotion-notice-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),target:"_blank",children:null==n?void 0:n.button_text})})]})},feedback:function(){return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)("span",{className:"text-black",children:(0,Mt.__)("Tell us how to make the Extendify Library work better for you","extendify")}),(0,Ht.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,Ht.jsx)("div",{className:"flex items-center justify-center space-x-2",children:(0,Ht.jsx)(Lt.Button,{variant:"link",className:"h-auto p-0 text-black underline hover:no-underline",href:"https://extendify.com/feedback/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=feedback-notice&utm_content=give-feedback&utm_group=").concat(H.getState().activeTestGroupsUtmValue()),onClick:Gt(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("feedback-notice-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),target:"_blank",children:(0,Mt.__)("Give feedback","extendify")})})]})},standalone:function(){var e=en((0,o.useState)(""),2),t=e[0],n=e[1],r=H((function(e){return e.giveFreebieImports}));return(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("span",{className:"text-black",children:(0,Mt.__)("Install the new Extendify Library plugin to get the latest we have to offer","extendify")}),(0,Ht.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,Ht.jsxs)("div",{className:"relative inline-flex items-center space-x-2",children:[(0,Ht.jsx)(Lt.Button,{variant:"link",className:Ft()("h-auto p-0 text-black underline hover:no-underline",{"opacity-0":t}),onClick:function(){n((0,Mt.__)("Installing...","extendify")),Promise.all([ue("stln-footer-install"),Kt(["extendify"]),new Promise((function(e){return setTimeout(e,1e3)}))]).then(Qt(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(10),n((0,Mt.__)("Success! Reloading...","extendify")),e.next=4,ue("stln-footer-success");case 4:window.location.reload();case 5:case"end":return e.stop()}}),e)})))).catch(function(){var e=Qt(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.error(t),n((0,Mt.__)("Error. See console.","extendify")),e.next=4,ue("stln-footer-fail");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},children:(0,Mt.__)("Install Extendify standalone plugin","extendify")}),t?(0,Ht.jsx)(Lt.Button,{variant:"link",disabled:!0,className:"absolute left-0 h-auto p-0 text-black underline opacity-100 hover:no-underline",onClick:function(){},children:t}):null]})]})}};function un(e){var t,n=e.className,r=void 0===n?"":n,i=sn((0,o.useState)(null),2),a=i[0],l=i[1],u=(0,o.useRef)(!1),c=k((function(e){var t,n;return null===(t=e.metaData)||void 0===t||null===(n=t.banners)||void 0===n?void 0:n.footer})),f=null!==(t=Object.keys(ln).find((function(e){var t,n,r,o,i,s,a;return"promotion"===e?!(null!==(t=H.getState().apiKey)&&void 0!==t&&t.length)&&(null==c?void 0:c.key)&&!H.getState().noticesDismissedAt[c.key]:"feedback"===e?(i=null!==(n=H.getState().imports)&&void 0!==n?n:0,s=null!==(r=null===(o=H.getState())||void 0===o?void 0:o.firstLoadedOn)&&void 0!==r?r:new Date,a=(new Date).getTime()-new Date(s).getTime(),i>=3&&a/864e5>3&&!H.getState().noticesDismissedAt[e]):"standalone"===e?!window.extendifyData.standalone&&!H.getState().noticesDismissedAt[e]:!H.getState().noticesDismissedAt[e]})))&&void 0!==t?t:null,d=ln[f],p=function(){var e,t=(e=s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(!1),t="promotion"===f?c.key:f,H.getState().markNoticeSeen(t,"notices"),e.next=5,ue("footer-notice-x-".concat(t));case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){on(i,r,o,s,a,"next",e)}function a(e){on(i,r,o,s,a,"throw",e)}s(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){ln[f]&&!u.current&&(l(!0),u.current=!0)}),[f]),a&&d?(0,Ht.jsxs)("div",{className:"".concat(r," relative mx-auto hidden max-w-screen-4xl items-center justify-center space-x-4 bg-extendify-secondary py-3 px-5 lg:flex"),children:[(0,Ht.jsx)(d,{promotionData:c}),(0,Ht.jsx)("div",{className:"absolute right-1",children:(0,Ht.jsx)(Lt.Button,{className:"text-extendify-black opacity-50 hover:opacity-100 focus:opacity-100",icon:(0,Ht.jsx)(Dt,{icon:qt}),label:(0,Mt.__)("Dismiss this notice","extendify"),onClick:p,showTooltip:!1})})]}):null}function cn(e){const{body:t}=document.implementation.createHTMLDocument("");t.innerHTML=e;const n=t.getElementsByTagName("*");let r=n.length;for(;r--;){const e=n[r];if("SCRIPT"===e.tagName)(o=e).parentNode,o.parentNode.removeChild(o);else{let t=e.attributes.length;for(;t--;){const{name:n}=e.attributes[t];n.startsWith("on")&&e.removeAttribute(n)}}}var o;return t.innerHTML}const fn=(0,Ht.jsxs)(Wt,{viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ht.jsx)($t,{d:"M7.32457 0.907043C3.98785 0.907043 1.2829 3.61199 1.2829 6.94871C1.2829 10.2855 3.98785 12.9904 7.32457 12.9904C10.6613 12.9904 13.3663 10.2855 13.3663 6.94871C13.3663 3.61199 10.6613 0.907043 7.32457 0.907043V0.907043Z",stroke:"currentColor",strokeWidth:"1.25",fill:"none"}),(0,Ht.jsx)($t,{d:"M6.34684 9.72526C6.34684 9.18224 6.77716 8.74168 7.32018 8.74168C7.8632 8.74168 8.30377 9.18224 8.30377 9.72526C8.30377 10.2683 7.8632 10.6986 7.32018 10.6986C6.77716 10.6986 6.34684 10.2683 6.34684 9.72526Z",fill:"currentColor"}),(0,Ht.jsx)($t,{d:"M7.9759 7.11261C7.93492 7.47121 7.67878 7.76834 7.32018 7.76834C6.95134 7.76834 6.70544 7.46097 6.6747 7.11261L6.34684 4.1721C6.28537 3.67006 6.81814 3.19876 7.32018 3.19876C7.82222 3.19876 8.35499 3.67006 8.30377 4.1721L7.9759 7.11261Z",fill:"currentColor"})]});const dn=(0,Ht.jsx)(Wt,{fill:"none",viewBox:"0 0 25 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ht.jsx)($t,{clipRule:"evenodd",d:"m14.4063 2h4.1856c1.1856 0 1.6147.12701 2.0484.36409.4336.23802.7729.58706 1.0049 1.03111.2319.445.3548.8853.3548 2.10175v4.29475c0 1.2165-.1238 1.6567-.3548 2.1017-.232.445-.5722.7931-1.0049 1.0312-.1939.1064-.3873.1939-.6476.2567v3.4179c0 1.8788-.1912 2.5588-.5481 3.246-.3582.6873-.8836 1.2249-1.552 1.5925-.6697.3676-1.3325.5623-3.1634.5623h-6.46431c-1.83096 0-2.49367-.1962-3.16346-.5623-.6698-.3676-1.19374-.9067-1.552-1.5925s-.54943-1.3672-.54943-3.246v-6.63138c0-1.87871.19117-2.55871.54801-3.24597.35827-.68727.88362-1.22632 1.55342-1.59393.66837-.36615 1.3325-.56231 3.16346-.56231h2.76781c.0519-.55814.1602-.86269.3195-1.16946.232-.445.5721-.79404 1.0058-1.03206.4328-.23708.8628-.36409 2.0483-.36409zm-2.1512 2.73372c0-.79711.6298-1.4433 1.4067-1.4433h5.6737c.777 0 1.4068.64619 1.4068 1.4433v5.82118c0 .7971-.6298 1.4433-1.4068 1.4433h-5.6737c-.7769 0-1.4067-.6462-1.4067-1.4433z",fill:"currentColor",fillRule:"evenodd"})});const pn=(0,Ht.jsx)(Wt,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ht.jsx)($t,{clipRule:"evenodd",d:"m13.505 4h3.3044c.936 0 1.2747.10161 1.6171.29127.3424.19042.6102.46965.7934.82489.1831.356.2801.70824.2801 1.6814v3.43584c0 .9731-.0977 1.3254-.2801 1.6814-.1832.356-.4517.6344-.7934.8248-.153.0852-.3057.1552-.5112.2054v2.7344c0 1.503-.151 2.047-.4327 2.5968-.2828.5498-.6976.9799-1.2252 1.274-.5288.294-1.052.4498-2.4975.4498h-5.10341c-1.44549 0-1.96869-.1569-2.49747-.4498-.52878-.2941-.94242-.7254-1.22526-1.274-.28284-.5487-.43376-1.0938-.43376-2.5968v-5.3051c0-1.50301.15092-2.04701.43264-2.59682.28284-.54981.6976-.98106 1.22638-1.27514.52767-.29293 1.05198-.44985 2.49747-.44985h2.18511c.041-.44652.1265-.69015.2522-.93557.1832-.356.4517-.63523.7941-.82565.3417-.18966.6812-.29127 1.6171-.29127zm-1.6984 2.18698c0-.63769.4973-1.15464 1.1106-1.15464h4.4793c.6133 0 1.1106.51695 1.1106 1.15464v4.65692c0 .6377-.4973 1.1547-1.1106 1.1547h-4.4793c-.6133 0-1.1106-.517-1.1106-1.1547z",fill:"currentColor",fillRule:"evenodd"})});const hn=(0,Ht.jsx)(Wt,{fill:"none",width:"150",height:"30",viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg",children:(0,Ht.jsxs)(zt,{fill:"currentColor",children:[(0,Ht.jsx)($t,{d:"m609.404 378.5c-24.334 0-46-5.5-65-16.5-18.667-11.333-33.334-26.667-44-46-10.667-19.667-16-42.167-16-67.5 0-25.667 5.166-48.333 15.5-68 10.333-19.667 24.833-35 43.5-46 18.666-11.333 40-17 64-17 25 0 46.5 5.333 64.5 16 18 10.333 31.833 24.833 41.5 43.5 10 18.667 15 41 15 67v18.5l-212 .5 1-39h150.5c0-17-5.5-30.667-16.5-41-10.667-10.333-25.167-15.5-43.5-15.5-14.334 0-26.5 3-36.5 9-9.667 6-17 15-22 27s-7.5 26.667-7.5 44c0 26.667 5.666 46.833 17 60.5 11.666 13.667 28.833 20.5 51.5 20.5 16.666 0 30.333-3.167 41-9.5 11-6.333 18.166-15.333 21.5-27h56.5c-5.334 27-18.667 48.167-40 63.5-21 15.333-47.667 23-80 23z"}),(0,Ht.jsx)("path",{d:"m797.529 372h-69.5l85-121-85-126h71l54.5 84 52.5-84h68.5l-84 125.5 81.5 121.5h-70l-53-81.5z"}),(0,Ht.jsx)("path",{d:"m994.142 125h155.998v51h-155.998zm108.498 247h-61v-324h61z"}),(0,Ht.jsx)("path",{d:"m1278.62 378.5c-24.33 0-46-5.5-65-16.5-18.66-11.333-33.33-26.667-44-46-10.66-19.667-16-42.167-16-67.5 0-25.667 5.17-48.333 15.5-68 10.34-19.667 24.84-35 43.5-46 18.67-11.333 40-17 64-17 25 0 46.5 5.333 64.5 16 18 10.333 31.84 24.833 41.5 43.5 10 18.667 15 41 15 67v18.5l-212 .5 1-39h150.5c0-17-5.5-30.667-16.5-41-10.66-10.333-25.16-15.5-43.5-15.5-14.33 0-26.5 3-36.5 9-9.66 6-17 15-22 27s-7.5 26.667-7.5 44c0 26.667 5.67 46.833 17 60.5 11.67 13.667 28.84 20.5 51.5 20.5 16.67 0 30.34-3.167 41-9.5 11-6.333 18.17-15.333 21.5-27h56.5c-5.33 27-18.66 48.167-40 63.5-21 15.333-47.66 23-80 23z"}),(0,Ht.jsx)("path",{d:"m1484.44 372h-61v-247h56.5l5 32c7.67-12.333 18.5-22 32.5-29 14.34-7 29.84-10.5 46.5-10.5 31 0 54.34 9.167 70 27.5 16 18.333 24 43.333 24 75v152h-61v-137.5c0-20.667-4.66-36-14-46-9.33-10.333-22-15.5-38-15.5-19 0-33.83 6-44.5 18-10.66 12-16 28-16 48z"}),(0,Ht.jsx)("path",{d:"m1798.38 378.5c-24 0-44.67-5.333-62-16-17-11-30.34-26.167-40-45.5-9.34-19.333-14-41.833-14-67.5s4.66-48.333 14-68c9.66-20 23.5-35.667 41.5-47s39.33-17 64-17c17.33 0 33.16 3.5 47.5 10.5 14.33 6.667 25.33 16.167 33 28.5v-156.5h60.5v372h-56l-4-38.5c-7.34 14-18.67 25-34 33-15 8-31.84 12-50.5 12zm13.5-56c14.33 0 26.66-3 37-9 10.33-6.333 18.33-15.167 24-26.5 6-11.667 9-24.833 9-39.5 0-15-3-28-9-39-5.67-11.333-13.67-20.167-24-26.5-10.34-6.667-22.67-10-37-10-14 0-26.17 3.333-36.5 10-10.34 6.333-18.34 15.167-24 26.5-5.34 11.333-8 24.333-8 39s2.66 27.667 8 39c5.66 11.333 13.66 20.167 24 26.5 10.33 6.333 22.5 9.5 36.5 9.5z"}),(0,Ht.jsx)("path",{d:"m1996.45 372v-247h61v247zm30-296.5c-10.34 0-19.17-3.5-26.5-10.5-7-7.3333-10.5-16.1667-10.5-26.5s3.5-19 10.5-26c7.33-6.99999 16.16-10.49998 26.5-10.49998 10.33 0 19 3.49999 26 10.49998 7.33 7 11 15.6667 11 26s-3.67 19.1667-11 26.5c-7 7-15.67 10.5-26 10.5z"}),(0,Ht.jsx)("path",{d:"m2085.97 125h155v51h-155zm155.5-122.5v52c-3.33 0-6.83 0-10.5 0-3.33 0-6.83 0-10.5 0-15.33 0-25.67 3.6667-31 11-5 7.3333-7.5 17.1667-7.5 29.5v277h-60.5v-277c0-22.6667 3.67-40.8333 11-54.5 7.33-14 17.67-24.1667 31-30.5 13.33-6.66666 28.83-10 46.5-10 5 0 10.17.166671 15.5.5 5.67.333329 11 .99999 16 2z"}),(0,Ht.jsx)("path",{d:"m2330.4 125 80.5 228-33 62.5-112-290.5zm-58 361.5v-50.5h36.5c8 0 15-1 21-3 6-1.667 11.34-5 16-10 5-5 9.17-12.333 12.5-22l102.5-276h63l-121 302c-9 22.667-20.33 39.167-34 49.5-13.66 10.333-30.66 15.5-51 15.5-8.66 0-16.83-.5-24.5-1.5-7.33-.667-14.33-2-21-4z"}),(0,Ht.jsx)("path",{clipRule:"evenodd",d:"m226.926 25.1299h83.271c23.586 0 32.123 2.4639 40.751 7.0633 8.628 4.6176 15.378 11.389 19.993 20.0037 4.615 8.6329 7.059 17.1746 7.059 40.7738v83.3183c0 23.599-2.463 32.141-7.059 40.774-4.615 8.633-11.383 15.386-19.993 20.003-3.857 2.065-7.704 3.764-12.884 4.981v66.308c0 36.447-3.803 49.639-10.902 62.972-7.128 13.333-17.579 23.763-30.877 30.894-13.325 7.132-26.51 10.909-62.936 10.909h-128.605c-36.4268 0-49.6113-3.805-62.9367-10.909-13.3254-7.131-23.749-17.589-30.8765-30.894-7.12757-13.304-10.9308-26.525-10.9308-62.972v-128.649c0-36.447 3.80323-49.639 10.9026-62.972 7.1275-13.333 17.5793-23.7909 30.9047-30.9224 13.2972-7.1034 26.5099-10.9088 62.9367-10.9088h55.064c1.033-10.8281 3.188-16.7362 6.357-22.6877 4.615-8.6329 11.382-15.4043 20.01-20.0219 8.61-4.5994 17.165-7.0633 40.751-7.0633zm-42.798 53.0342c0-15.464 12.53-28 27.986-28h112.877c15.457 0 27.987 12.536 27.987 28v112.9319c0 15.464-12.53 28-27.987 28h-112.877c-15.456 0-27.986-12.536-27.986-28z",fillRule:"evenodd"})]})});const mn=(0,Ht.jsx)(Wt,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ht.jsx)("path",{d:"m11.9893 2.59931c-.1822.00285-.3558.07789-.4827.20864s-.1967.30653-.1941.48871v1.375c-.0013.0911.0156.18155.0495.26609.034.08454.0844.16149.1484.22637s.1402.11639.2242.15156c.0841.03516.1743.05327.2654.05327s.1813-.01811.2654-.05327c.084-.03517.1603-.08668.2242-.15156.064-.06488.1144-.14183.1484-.22637s.0508-.17499.0495-.26609v-1.375c.0013-.09202-.0158-.18337-.0505-.26863-.0346-.08526-.086-.1627-.1511-.22773s-.1426-.11633-.2279-.15085c-.0853-.03453-.1767-.05158-.2687-.05014zm-5.72562.46013c-.1251.00033-.24775.0348-.35471.09968-.10697.06488-.19421.15771-.25232.2685-.05812.1108-.0849.23534-.07747.36023.00744.12488.0488.24537.11964.34849l.91667 1.375c.04939.07667.11354.14274.18872.19437.07517.05164.15987.0878.24916.10639.08928.01858.18137.01922.27091.00187.08953-.01734.17472-.05233.2506-.10292.07589-.05059.14095-.11577.1914-.19174.05045-.07598.08528-.16123.10246-.2508.01719-.08956.01638-.18165-.00237-.2709s-.05507-.17388-.10684-.24897l-.91666-1.375c-.06252-.09667-.14831-.1761-.2495-.231-.1012-.0549-.21456-.08351-.32969-.0832zm11.45212 0c-.1117.00307-.2209.03329-.3182.08804-.0973.05474-.1798.13237-.2404.22616l-.9167 1.375c-.0518.07509-.0881.15972-.1068.24897-.0188.08925-.0196.18134-.0024.2709.0172.08957.052.17482.1024.2508.0505.07597.1156.14115.1914.19174.0759.05059.1611.08558.2506.10292.0896.01735.1817.01671.271-.00187.0892-.01859.1739-.05475.2491-.10639.0752-.05163.1393-.1177.1887-.19437l.9167-1.375c.0719-.10456.1135-.22698.1201-.3537s-.022-.25281-.0826-.36429c-.0606-.11149-.1508-.20403-.2608-.26738-.11-.06334-.2353-.09502-.3621-.09153zm-9.61162 3.67472c-.09573-.00001-.1904.01998-.27795.05867-.08756.03869-.16607.09524-.23052.16602l-4.58333 5.04165c-.11999.1319-.18407.3052-.17873.4834.00535.1782.0797.3473.20738.4718l8.47917 8.25c.1284.1251.3006.1951.4798.1951.1793 0 .3514-.07.4798-.1951l8.4792-8.25c.1277-.1245.202-.2936.2074-.4718.0053-.1782-.0588-.3515-.1788-.4834l-4.5833-5.04165c-.0644-.07078-.1429-.12733-.2305-.16602s-.1822-.05868-.278-.05867h-3.877zm.30436 1.375h2.21646l-2.61213 3.48314c-.04258.0557-.07639.1176-.10026.1835h-2.83773zm4.96646 0h2.2165l3.3336 3.66664h-2.8368c-.0241-.066-.0582-.1278-.1011-.1835zm-1.375.45833 2.4063 3.20831h-4.81254zm-6.78637 4.58331h2.70077c.00665.0188.01412.0374.02238.0555l2.11442 4.6505zm4.20826 0h5.15621l-2.5781 5.6719zm6.66371 0h2.7008l-4.8376 4.706 2.1144-4.6505c.0083-.0181.0158-.0367.0224-.0555z",fill:"#000"})});const xn=(0,Ht.jsxs)(Wt,{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ht.jsx)($t,{d:"M7.32457 0.907043C3.98785 0.907043 1.2829 3.61199 1.2829 6.94871C1.2829 10.2855 3.98785 12.9904 7.32457 12.9904C10.6613 12.9904 13.3663 10.2855 13.3663 6.94871C13.3663 3.61199 10.6613 0.907043 7.32457 0.907043V0.907043Z",stroke:"white",strokeWidth:"1.25"}),(0,Ht.jsx)($t,{d:"M7.32458 10.0998L4.82458 7.59977M7.32458 10.0998V3.79764V10.0998ZM7.32458 10.0998L9.82458 7.59977L7.32458 10.0998Z",stroke:"white",strokeWidth:"1.25"})]});const yn=(0,Ht.jsxs)(Wt,{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ht.jsx)("path",{d:"M7.93298 20.2773L17.933 20.2773C18.1982 20.2773 18.4526 20.172 18.6401 19.9845C18.8276 19.7969 18.933 19.5426 18.933 19.2773C18.933 19.0121 18.8276 18.7578 18.6401 18.5702C18.4526 18.3827 18.1982 18.2773 17.933 18.2773L7.93298 18.2773C7.66777 18.2773 7.41341 18.3827 7.22588 18.5702C7.03834 18.7578 6.93298 19.0121 6.93298 19.2773C6.93298 19.5426 7.03834 19.7969 7.22588 19.9845C7.41341 20.172 7.66777 20.2773 7.93298 20.2773Z",fill:"white"}),(0,Ht.jsx)("path",{d:"M12.933 4.27734C12.6678 4.27734 12.4134 4.3827 12.2259 4.57024C12.0383 4.75777 11.933 5.01213 11.933 5.27734L11.933 12.8673L9.64298 10.5773C9.55333 10.4727 9.44301 10.3876 9.31895 10.3276C9.19488 10.2676 9.05975 10.2339 8.92203 10.2285C8.78431 10.2232 8.64698 10.2464 8.51865 10.2967C8.39033 10.347 8.27378 10.4232 8.17632 10.5207C8.07887 10.6181 8.00261 10.7347 7.95234 10.863C7.90206 10.9913 7.87886 11.1287 7.88418 11.2664C7.8895 11.4041 7.92323 11.5392 7.98325 11.6633C8.04327 11.7874 8.12829 11.8977 8.23297 11.9873L12.233 15.9873C12.3259 16.0811 12.4365 16.1555 12.5584 16.2062C12.6803 16.257 12.811 16.2831 12.943 16.2831C13.075 16.2831 13.2057 16.257 13.3276 16.2062C13.4494 16.1555 13.56 16.0811 13.653 15.9873L17.653 11.9873C17.8168 11.796 17.9024 11.55 17.8927 11.2983C17.883 11.0466 17.7786 10.8079 17.6005 10.6298C17.4224 10.4517 17.1837 10.3474 16.932 10.3376C16.6804 10.3279 16.4343 10.4135 16.243 10.5773L13.933 12.8673L13.933 5.27734C13.933 5.01213 13.8276 4.75777 13.6401 4.57024C13.4525 4.3827 13.1982 4.27734 12.933 4.27734Z",fill:"white"})]});const vn=(0,Ht.jsxs)(Wt,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ht.jsx)($t,{d:"m11.2721 16.9866.6041 2.2795.6042-2.2795.6213-2.3445c.0001-.0002.0001-.0004.0002-.0006.2404-.9015.8073-1.5543 1.4638-1.8165.0005-.0002.0009-.0004.0013-.0006l1.9237-.7555 1.4811-.5818-1.4811-.5817-1.9264-.7566c0-.0001-.0001-.0001-.0001-.0001-.0001 0-.0001 0-.0001 0-.654-.25727-1.2213-.90816-1.4621-1.81563-.0001-.00006-.0001-.00011-.0001-.00017l-.6215-2.34519-.6042-2.27947-.6041 2.27947-.6216 2.34519v.00017c-.2409.90747-.80819 1.55836-1.46216 1.81563-.00002 0-.00003 0-.00005 0-.00006 0-.00011 0-.00017.0001l-1.92637.7566-1.48108.5817 1.48108.5818 1.92637.7566c.00007 0 .00015.0001.00022.0001.65397.2572 1.22126.9082 1.46216 1.8156v.0002z",stroke:"currentColor",strokeWidth:"1.25",fill:"none"}),(0,Ht.jsxs)(zt,{fill:"currentColor",children:[(0,Ht.jsx)($t,{d:"m18.1034 18.3982-.2787.8625-.2787-.8625c-.1314-.4077-.4511-.7275-.8589-.8589l-.8624-.2786.8624-.2787c.4078-.1314.7275-.4512.8589-.8589l.2787-.8624.2787.8624c.1314.4077.4511.7275.8589.8589l.8624.2787-.8624.2786c-.4078.1314-.7269.4512-.8589.8589z"}),(0,Ht.jsx)($t,{d:"m6.33141 6.97291-.27868.86242-.27867-.86242c-.13142-.40775-.45116-.72749-.8589-.85891l-.86243-.27867.86243-.27868c.40774-.13141.72748-.45115.8589-.8589l.27867-.86242.27868.86242c.13142.40775.45116.72749.8589.8589l.86242.27868-.86242.27867c-.40774.13142-.7269.45116-.8589.85891z"})]})]});const gn=(0,Ht.jsx)(Wt,{fill:"none",height:"25",viewBox:"0 0 25 25",width:"25",xmlns:"http://www.w3.org/2000/svg",children:(0,Ht.jsx)($t,{d:"m16.2382 9.17969.7499.00645.0066-.75988-.7599.00344zm-5.5442.77506 5.5475-.02507-.0067-1.49998-5.5476.02506zm4.7942-.78152-.0476 5.52507 1.5.0129.0475-5.52506zm.2196-.52387-7.68099 7.68104 1.06066 1.0606 7.68103-7.68098z",fill:"currentColor"})});const bn=(0,Ht.jsx)(Wt,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ht.jsxs)(zt,{stroke:"currentColor",strokeWidth:"1.5",children:[(0,Ht.jsx)($t,{d:"m6 4.75h12c.6904 0 1.25.55964 1.25 1.25v12c0 .6904-.5596 1.25-1.25 1.25h-12c-.69036 0-1.25-.5596-1.25-1.25v-12c0-.69036.55964-1.25 1.25-1.25z"}),(0,Ht.jsx)($t,{d:"m9.25 19v-14"})]})});const wn=(0,Ht.jsxs)(Wt,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ht.jsx)($t,{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49271 18.0092C6.97815 17.1176 7.28413 15.9755 8.17569 15.4609C9.06724 14.946 10.2094 15.252 10.7243 16.1435C11.2389 17.0355 10.9329 18.1772 10.0413 18.6922C9.14978 19.2071 8.00764 18.9011 7.49271 18.0092V18.0092Z",fill:"currentColor"}),(0,Ht.jsx)($t,{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5073 6.12747C17.0218 7.01903 16.7158 8.16117 15.8243 8.67573C14.9327 9.19066 13.7906 8.88467 13.2757 7.99312C12.7611 7.10119 13.0671 5.95942 13.9586 5.44449C14.8502 4.92956 15.9923 5.23555 16.5073 6.12747V6.12747Z",fill:"currentColor"}),(0,Ht.jsx)($t,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.60135 11.1355C5.11628 10.2439 6.25805 9.93793 7.14998 10.4525C8.04153 10.9674 8.34752 12.1096 7.83296 13.0011C7.31803 13.8927 6.17588 14.1987 5.28433 13.6841C4.39278 13.1692 4.08679 12.0274 4.60135 11.1355V11.1355Z",fill:"currentColor"}),(0,Ht.jsx)($t,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3986 13.0011C18.8837 13.8927 17.7419 14.1987 16.85 13.6841C15.9584 13.1692 15.6525 12.027 16.167 11.1355C16.682 10.2439 17.8241 9.93793 18.7157 10.4525C19.6072 10.9674 19.9132 12.1092 19.3986 13.0011V13.0011Z",fill:"currentColor"}),(0,Ht.jsx)($t,{d:"M9.10857 8.92594C10.1389 8.92594 10.9742 8.09066 10.9742 7.06029C10.9742 6.02992 10.1389 5.19464 9.10857 5.19464C8.0782 5.19464 7.24292 6.02992 7.24292 7.06029C7.24292 8.09066 8.0782 8.92594 9.10857 8.92594Z",fill:"currentColor"}),(0,Ht.jsx)($t,{d:"M14.8913 18.942C15.9217 18.942 16.7569 18.1067 16.7569 17.0763C16.7569 16.046 15.9217 15.2107 14.8913 15.2107C13.8609 15.2107 13.0256 16.046 13.0256 17.0763C13.0256 18.1067 13.8609 18.942 14.8913 18.942Z",fill:"currentColor"}),(0,Ht.jsx)($t,{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3841 13.0011C9.86951 12.1096 10.1755 10.9674 11.067 10.4525C11.9586 9.93793 13.1007 10.2439 13.6157 11.1355C14.1302 12.0274 13.8242 13.1692 12.9327 13.6841C12.0411 14.1987 10.899 13.8927 10.3841 13.0011V13.0011Z",fill:"currentColor"})]});const jn=(0,Ht.jsxs)(Wt,{fill:"none",viewBox:"0 0 151 148",width:"151",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ht.jsx)(Ut,{cx:"65.6441",cy:"66.6114",fill:"#0b4a43",r:"65.3897"}),(0,Ht.jsxs)(zt,{fill:"#cbc3f5",stroke:"#0b4a43",children:[(0,Ht.jsx)($t,{d:"m61.73 11.3928 3.0825 8.3304.1197.3234.3234.1197 8.3304 3.0825-8.3304 3.0825-.3234.1197-.1197.3234-3.0825 8.3304-3.0825-8.3304-.1197-.3234-.3234-.1197-8.3304-3.0825 8.3304-3.0825.3234-.1197.1197-.3234z",strokeWidth:"1.5"}),(0,Ht.jsx)($t,{d:"m84.3065 31.2718c0 5.9939-12.4614 22.323-18.6978 22.323h-17.8958v56.1522c3.5249.9 11.6535 0 17.8958 0h6.2364c11.2074 3.33 36.0089 7.991 45.5529 0l-9.294-62.1623c-2.267-1.7171-5.949-6.6968-2.55-12.8786 3.4-6.1817 2.55-18.0406 0-24.5756-1.871-4.79616-8.3289-8.90882-14.4482-8.90882s-7.0825 4.00668-6.7993 6.01003z",strokeWidth:"1.75"}),(0,Ht.jsx)(Vt,{height:"45.5077",rx:"9.13723",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 191.5074 -96.0026)",width:"18.2745",x:"143.755",y:"47.7524"}),(0,Ht.jsx)(Vt,{height:"42.3038",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 241.97 -50.348)",width:"17.4735",x:"146.159",y:"95.811"}),(0,Ht.jsx)(Vt,{height:"55.9204",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 213.1347 -85.5913)",width:"17.4735",x:"149.363",y:"63.7717"}),(0,Ht.jsx)(Vt,{height:"51.1145",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 229.1545 -69.5715)",width:"17.4735",x:"149.363",y:"79.7915"}),(0,Ht.jsx)($t,{d:"m75.7483 105.349c.9858-25.6313-19.2235-42.0514-32.8401-44.0538v12.0146c8.5438 1.068 24.8303 9.7642 24.8303 36.0442 0 23.228 19.4905 33.374 29.6362 33.641v-10.413s-22.6122-1.602-21.6264-27.233z",strokeWidth:"1.75"}),(0,Ht.jsx)($t,{d:"m68.5388 109.354c.9858-25.6312-19.2234-42.0513-32.8401-44.0537v12.0147c8.5438 1.0679 24.8303 9.7641 24.8303 36.044 0 23.228 19.4905 33.374 29.6362 33.641v-10.413s-22.6122-1.602-21.6264-27.233z",strokeWidth:"1.75"})]})]});const kn=(0,Ht.jsxs)(Wt,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ht.jsx)(Ut,{cx:"12",cy:"12",r:"7.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,Ht.jsx)(Ut,{cx:"12",cy:"12",r:"4.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,Ht.jsx)(Ut,{cx:"11.9999",cy:"12.2",r:"6",transform:"rotate(-45 11.9999 12.2)",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"1.5 4"})]});const En=(0,Ht.jsx)(Wt,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ht.jsx)($t,{d:"m11.7758 3.45425c.0917-.18582.3567-.18581.4484 0l2.3627 4.78731c.0364.07379.1068.12493.1882.13676l5.2831.76769c.2051.02979.287.28178.1386.42642l-3.8229 3.72637c-.0589.0575-.0858.1402-.0719.2213l.9024 5.2618c.0351.2042-.1793.36-.3627.2635l-4.7254-2.4842c-.0728-.0383-.1598-.0383-.2326 0l-4.7254 2.4842c-.18341.0965-.39776-.0593-.36274-.2635l.90247-5.2618c.01391-.0811-.01298-.1638-.0719-.2213l-3.8229-3.72637c-.14838-.14464-.0665-.39663.13855-.42642l5.28312-.76769c.08143-.01183.15182-.06297.18823-.13676z",fill:"currentColor"})});const _n=(0,Ht.jsx)(Wt,{fill:"none",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",children:(0,Ht.jsx)($t,{clipRule:"evenodd",d:"m13 4c4.9545 0 9 4.04545 9 9 0 4.9545-4.0455 9-9 9-4.95455 0-9-4.0455-9-9 0-4.95455 4.04545-9 9-9zm5.0909 13.4545c-1.9545 3.8637-8.22726 3.8637-10.22726 0-.04546-.1818-.04546-.3636 0-.5454 2-3.8636 8.27276-3.8636 10.22726 0 .0909.1818.0909.3636 0 .5454zm-5.0909-8.90905c-1.2727 0-2.3182 1.04546-2.3182 2.31815 0 1.2728 1.0455 2.3182 2.3182 2.3182s2.3182-1.0454 2.3182-2.3182c0-1.27269-1.0455-2.31815-2.3182-2.31815z",fill:"currentColor",fillRule:"evenodd"})}),Sn=(0,o.createElement)(Wt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)($t,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function Cn(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function On(e,...t){e&&t.length>0&&e.classList.add(...t)}function An(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Pn=(e=>(e.Ended="ended",e.Cancelled="cancelled",e))(Pn||{});function Tn(e,t,n,r){let o=n?"enter":"leave",i=Cn(),s=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{},a=ce(o,{enter:()=>t.enter,leave:()=>t.leave}),l=ce(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=ce(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return An(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),On(e,...a,...u),i.nextFrame((()=>{An(e,...u),On(e,...l),function(e,t){let n=Cn();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,s]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(i+s!==0){let r=[];r.push(n.addEventListener(e,"transitionrun",(()=>{r.splice(0).forEach((e=>e())),r.push(n.addEventListener(e,"transitionend",(()=>{t("ended"),r.splice(0).forEach((e=>e()))}),{once:!0}),n.addEventListener(e,"transitioncancel",(()=>{t("cancelled"),r.splice(0).forEach((e=>e()))}),{once:!0}))}),{once:!0}))}else t("ended");n.add((()=>t("cancelled"))),n.dispose}(e,(n=>("ended"===n&&(An(e,...a),On(e,...t.entered)),s(n))))})),i.dispose}function Nn({container:e,direction:t,classes:n,events:r,onStart:o,onStop:i}){let s=Ve(),l=function(){let[e]=(0,a.useState)(Cn);return(0,a.useEffect)((()=>()=>e.dispose()),[e]),e}(),u=ze(t),c=ze((()=>ce(u.current,{enter:()=>r.current.beforeEnter(),leave:()=>r.current.beforeLeave(),idle:()=>{}}))),f=ze((()=>ce(u.current,{enter:()=>r.current.afterEnter(),leave:()=>r.current.afterLeave(),idle:()=>{}})));_e((()=>{let t=Cn();l.add(t.dispose);let r=e.current;if(r&&"idle"!==u.current&&s.current)return t.dispose(),c.current(),o.current(u.current),t.add(Tn(r,n.current,"enter"===u.current,(e=>{t.dispose(),ce(e,{[Pn.Ended](){f.current(),i.current(u.current)},[Pn.Cancelled]:()=>{}})}))),t.dispose}),[t])}function Rn(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let In=(0,a.createContext)(null);In.displayName="TransitionContext";var Ln=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Ln||{});let Mn=(0,a.createContext)(null);function Dn(e){return"children"in e?Dn(e.children):e.current.filter((({state:e})=>"visible"===e)).length>0}function Bn(e){let t=ze(e),n=(0,a.useRef)([]),r=Ve(),o=ze(((e,o=pe.Hidden)=>{let i=n.current.findIndex((({id:t})=>t===e));-1!==i&&(ce(o,{[pe.Unmount](){n.current.splice(i,1)},[pe.Hidden](){n.current[i].state="hidden"}}),gt((()=>{var e;!Dn(n)&&r.current&&(null==(e=t.current)||e.call(t))})))})),i=ze((e=>{let t=n.current.find((({id:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):n.current.push({id:e,state:"visible"}),()=>o.current(e,pe.Unmount)}));return(0,a.useMemo)((()=>({children:n,register:i,unregister:o})),[i,o,n])}function Fn(){}Mn.displayName="NestingContext";let Un=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function zn(e){var t;let n={};for(let r of Un)n[r]=null!=(t=e[r])?t:Fn;return n}let $n=de.RenderStrategy,Vn=ye((function(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i,enter:s,enterFrom:l,enterTo:u,entered:c,leave:f,leaveFrom:d,leaveTo:p,...h}=e,m=(0,a.useRef)(null),x=je(m,t),[y,v]=(0,a.useState)("visible"),g=h.unmount?pe.Unmount:pe.Hidden,{show:b,appear:w,initial:j}=function(){let e=(0,a.useContext)(In);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:k,unregister:E}=function(){let e=(0,a.useContext)(Mn);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),_=(0,a.useRef)(null),S=Te(),C=(0,a.useRef)(!1),O=Bn((()=>{C.current||(v("hidden"),E.current(S))}));(0,a.useEffect)((()=>{if(S)return k.current(S)}),[k,S]),(0,a.useEffect)((()=>{if(g===pe.Hidden&&S){if(b&&"visible"!==y)return void v("visible");ce(y,{hidden:()=>E.current(S),visible:()=>k.current(S)})}}),[y,S,k,E,b,g]);let A=ze({enter:Rn(s),enterFrom:Rn(l),enterTo:Rn(u),entered:Rn(c),leave:Rn(f),leaveFrom:Rn(d),leaveTo:Rn(p)}),P=function(e){let t=(0,a.useRef)(zn(e));return(0,a.useEffect)((()=>{t.current=zn(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),T=Ce();(0,a.useEffect)((()=>{if(T&&"visible"===y&&null===m.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[m,y,T]);let N=j&&!w,R=!T||N||_.current===b?"idle":b?"enter":"leave";Nn({container:m,classes:A,events:P,direction:R,onStart:ze((()=>{})),onStop:ze((e=>{"leave"===e&&!Dn(O)&&(v("hidden"),E.current(S))}))}),(0,a.useEffect)((()=>{!N||(g===pe.Hidden?_.current=null:_.current=b)}),[b,N,y]);let I=h,L={ref:x};return a.createElement(Mn.Provider,{value:O},a.createElement(mt,{value:ce(y,{visible:pt.Open,hidden:pt.Closed})},he({ourProps:L,theirProps:I,defaultTag:"div",features:$n,visible:"visible"===y,name:"Transition.Child"})))})),Wn=ye((function(e,t){let{show:n,appear:r=!1,unmount:o,...i}=e,s=je(t);Ce();let l=ht();if(void 0===n&&null!==l&&(n=ce(l,{[pt.Open]:!0,[pt.Closed]:!1})),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=(0,a.useState)(n?"visible":"hidden"),f=Bn((()=>{c("hidden")})),[d,p]=(0,a.useState)(!0),h=(0,a.useRef)([n]);_e((()=>{!1!==d&&h.current[h.current.length-1]!==n&&(h.current.push(n),p(!1))}),[h,n]);let m=(0,a.useMemo)((()=>({show:n,appear:r,initial:d})),[n,r,d]);(0,a.useEffect)((()=>{n?c("visible"):Dn(f)||c("hidden")}),[n,f]);let x={unmount:o};return a.createElement(Mn.Provider,{value:f},a.createElement(In.Provider,{value:m},he({ourProps:{...x,as:a.Fragment,children:a.createElement(Vn,{ref:s,...x,...i})},theirProps:{},defaultTag:a.Fragment,features:$n,visible:"visible"===u,name:"Transition"})))}));let qn=Object.assign(Wn,{Child:function(e){let t=null!==(0,a.useContext)(In),n=null!==ht();return a.createElement(a.Fragment,null,!t&&n?a.createElement(Wn,{...e}):a.createElement(Vn,{...e}))},Root:Wn});var Hn=(0,o.forwardRef)((function(e,t){var n,r=e.onClose,i=e.isOpen,s=e.invertedButtonColor,a=e.children,l=e.leftContainerBgColor,u=void 0===l?"bg-white":l,c=e.rightContainerBgColor,f=void 0===c?"bg-gray-100":c,d=(0,o.useRef)(null),p=k((function(e){return e.removeAllModals}));return r=null!==(n=r)&&void 0!==n?n:p,(0,Ht.jsx)(qn.Root,{appear:!0,show:!0,as:o.Fragment,children:(0,Ht.jsx)(It,{as:"div",static:!0,open:i,className:"extendify",initialFocus:null!=t?t:d,onClose:r,children:(0,Ht.jsxs)("div",{className:"fixed inset-0 z-high flex",children:[(0,Ht.jsx)(qn.Child,{as:o.Fragment,enter:"ease-out duration-50 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,Ht.jsx)(It.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity"})}),(0,Ht.jsx)(qn.Child,{as:o.Fragment,enter:"ease-out duration-300 translate transform",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,Ht.jsx)("div",{className:"m-auto",children:(0,Ht.jsxs)("div",{className:"relative m-8 max-w-md justify-between rounded-sm shadow-modal md:m-0 md:flex md:max-w-2xl",children:[(0,Ht.jsxs)("button",{onClick:r,ref:d,className:"absolute top-0 right-0 block cursor-pointer rounded-md bg-transparent p-4 text-gray-700 opacity-30 hover:opacity-100",style:s&&{filter:"invert(1)"},children:[(0,Ht.jsx)("span",{className:"sr-only",children:(0,Mt.__)("Close","extendify")}),(0,Ht.jsx)(Dt,{icon:Sn})]}),(0,Ht.jsx)("div",{className:"w-7/12 p-12 ".concat(u),children:a[0]}),(0,Ht.jsx)("div",{className:"hidden w-6/12 md:block ".concat(f),children:a[1]})]})})})]})})})}));function Yn(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Gn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Yn(i,r,o,s,a,"next",e)}function a(e){Yn(i,r,o,s,a,"throw",e)}s(void 0)}))}}function Jn(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)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Kn(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 Kn(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 Kn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Xn=function(){var e=Jn((0,o.useState)((0,Mt.__)("Install Extendify","extendify")),2),t=e[0],n=e[1],r=Jn((0,o.useState)(!1),2),i=r[0],a=r[1],l=Jn((0,o.useState)(!1),2),u=l[0],c=l[1],f=(0,o.useRef)(null),d=H((function(e){return e.markNoticeSeen})),p=H((function(e){return e.giveFreebieImports})),h=k((function(e){return e.removeAllModals})),m=function(){var e=Gn(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(),d("standalone","modalNotices"),e.next=4,ue("stln-modal-x");case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,Ht.jsxs)(Hn,{ref:f,onClose:m,children:[(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("div",{className:"mb-10 flex items-center space-x-2 text-extendify-black",children:hn}),(0,Ht.jsx)("h3",{className:"text-xl",children:(0,Mt.__)("Get the brand new Extendify plugin today!","extendify")}),(0,Ht.jsx)("p",{className:"text-sm text-black",dangerouslySetInnerHTML:{__html:cn((0,Mt.sprintf)((0,Mt.__)("Install the new Extendify Library plugin to get the latest we have to offer — right from WordPress.org. Plus, well send you %1$s10 more imports%2$s. Nice.","extendify"),"<strong>","</strong>"))}}),(0,Ht.jsx)("div",{children:(0,Ht.jsxs)("button",{onClick:function(){n((0,Mt.__)("Installing...","extendify")),c(!0),Promise.all([ue("stln-modal-install"),Kt(["extendify"]),new Promise((function(e){return setTimeout(e,1e3)}))]).then(Gn(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n((0,Mt.__)("Success! Reloading...","extendify")),a(!0),p(10),e.next=5,ue("stln-modal-success");case 5:window.location.reload();case 6:case"end":return e.stop()}}),e)})))).catch(function(){var e=Gn(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.error(t),n((0,Mt.__)("Error. See console.","extendify")),e.next=4,ue("stln-modal-fail");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},ref:f,disabled:u,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},children:[t,i||(0,Ht.jsx)(Lt.Icon,{icon:yn,size:24,className:"ml-2 w-6 flex-grow-0"})]})})]}),(0,Ht.jsx)("div",{className:"flex w-full justify-end rounded-tr-sm rounded-br-sm bg-extendify-secondary",children:(0,Ht.jsx)("img",{alt:(0,Mt.__)("Upgrade Now","extendify"),className:"rounded-br-sm max-w-full rounded-tr-sm",src:window.extendifyData.asset_path+"/modal-extendify-purple.png"})})]})};function Zn(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)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qn(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 Qn(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 Qn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function er(){return er=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},er.apply(this,arguments)}function tr(e,t){return tr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tr(e,t)}var nr=new Map,rr=new WeakMap,or=0,ir=void 0;function sr(e){return Object.keys(e).sort().filter((function(t){return void 0!==e[t]})).map((function(t){return t+"_"+("root"===t?(n=e.root)?(rr.has(n)||(or+=1,rr.set(n,or.toString())),rr.get(n)):"0":e[t]);var n})).toString()}function ar(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r=ir),void 0===window.IntersectionObserver&&void 0!==r){var o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),function(){}}var i=function(e){var t=sr(e),n=nr.get(t);if(!n){var r,o=new Map,i=new IntersectionObserver((function(t){t.forEach((function(t){var n,i=t.isIntersecting&&r.some((function(e){return t.intersectionRatio>=e}));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=o.get(t.target))||n.forEach((function(e){e(i,t)}))}))}),e);r=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:o},nr.set(t,n)}return n}(n),s=i.id,a=i.observer,l=i.elements,u=l.get(e)||[];return l.has(e)||l.set(e,u),u.push(t),a.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(l.delete(e),a.unobserve(e)),0===l.size&&(a.disconnect(),nr.delete(s))}}var lr=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function ur(e){return"function"!=typeof e.children}var cr=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){n.node&&(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),ur(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,tr(t,n);var o=r.prototype;return o.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},o.componentWillUnmount=function(){this.unobserve(),this.node=null},o.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin,o=e.trackVisibility,i=e.delay,s=e.fallbackInView;this._unobserveCb=ar(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r,trackVisibility:o,delay:i},s)}},o.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},o.render=function(){if(!ur(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var r=this.props,o=r.children,i=r.as,s=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,lr);return a.createElement(i||"div",er({ref:this.handleNode},s),o)},r}(a.Component);function fr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function dr(){return dr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dr.apply(this,arguments)}function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(n),!0).forEach((function(t){mr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}cr.displayName="InView",cr.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};const xr={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};class yr extends l().Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame((()=>{this.reCalculateColumnCount()}))):this.reCalculateColumnCount()}reCalculateColumnCount(){const e=window&&window.innerWidth||1/0;let t=this.props.breakpointCols;"object"!=typeof t&&(t={default:parseInt(t)||2});let n=1/0,r=t.default||2;for(let o in t){const i=parseInt(o);i>0&&e<=i&&i<n&&(n=i,r=t[o])}r=Math.max(1,parseInt(r)||1),this.state.columnCount!==r&&this.setState({columnCount:r})}itemsInColumns(){const e=this.state.columnCount,t=new Array(e),n=l().Children.toArray(this.props.children);for(let r=0;r<n.length;r++){const o=r%e;t[o]||(t[o]=[]),t[o].push(n[r])}return t}renderColumns(){const{column:e,columnAttrs:t={},columnClassName:n}=this.props,r=this.itemsInColumns(),o=100/r.length+"%";let i=n;i&&"string"!=typeof i&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===i&&(i="my-masonry-grid_column"));const s=hr(hr(hr({},e),t),{},{style:hr(hr({},t.style),{},{width:o}),className:i});return r.map(((e,t)=>l().createElement("div",dr({},s,{key:t}),e)))}logDeprecated(e){console.error("[Masonry]",e)}render(){const e=this.props,{children:t,breakpointCols:n,columnClassName:r,columnAttrs:o,column:i,className:s}=e,a=fr(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let u=s;return"string"!=typeof s&&(this.logDeprecated('The property "className" requires a string'),void 0===s&&(u="my-masonry-grid")),l().createElement("div",dr({},a,{className:u}),this.renderColumns())}}yr.defaultProps=xr;const vr=yr;function gr(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function br(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){gr(i,r,o,s,a,"next",e)}function a(e){gr(i,r,o,s,a,"throw",e)}s(void 0)}))}}var wr=0,jr=function(e){var t=arguments;return br(s().mark((function n(){var r,o,i,a,l;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.length>1&&void 0!==t[1]?t[1]:{},wr++,i="pattern"===e.type?"8":"4",a="pattern"===e.type?"patternType":"layoutType",l=Object.assign({filterByFormula:_r(e,a),pageSize:i,categories:e.taxonomies,search:e.search,type:e.type,offset:"",initial:1===wr,request_count:wr,sdk_partner:null!==(r=H.getState().sdkPartner)&&void 0!==r?r:""},o),n.next=7,Y.post("templates",l);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),n)})))()},kr=function(e){var t,n,r,o,i,s,a=null!==(t=null===(n=ae.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return Y.post("templates/".concat(e.id),{template_id:null==e?void 0:e.id,categories:a,maybe_import:!0,type:null===(o=e.fields)||void 0===o?void 0:o.type,sdk_partner:null!==(i=H.getState().sdkPartner)&&void 0!==i?i:"",pageSize:"1",template_name:null===(s=e.fields)||void 0===s?void 0:s.title})},Er=function(e){var t,n,r,o,i,s,a,l,u,c=null!==(t=null===(n=ae.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return Y.post("templates/".concat(e.id),{template_id:e.id,categories:c,imported:!0,basePattern:null!==(o=null!==(i=null===(s=e.fields)||void 0===s?void 0:s.basePattern)&&void 0!==i?i:null===(a=e.fields)||void 0===a?void 0:a.baseLayout)&&void 0!==o?o:"",type:e.fields.type,sdk_partner:null!==(l=H.getState().sdkPartner)&&void 0!==l?l:"",pageSize:"1",template_name:null===(u=e.fields)||void 0===u?void 0:u.title})},_r=function(e,t){var n,r,o=e.taxonomies,i=null==o||null===(n=o.siteType)||void 0===n?void 0:n.slug,s=['{type}="'.concat(t.replace("Type",""),'"'),'{siteType}="'.concat(i,'"')];return null!==(r=o[t])&&void 0!==r&&r.slug&&s.push("{".concat(t,'}="').concat(o[t].slug,'"')),"AND(".concat(s.join(", "),")").replace(/\r?\n|\r/g,"")};const Sr=wp.blockEditor;function Cr(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)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Or(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 Or(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 Or(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ar=function(){var e=Cr((0,o.useState)(!1),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){var e=function(){return n(window.location.search.indexOf("DEVMODE")>-1||window.location.search.indexOf("LOCALMODE")>-1)};return e(),window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}}),[]),t};function Pr(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Tr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Pr(i,r,o,s,a,"next",e)}function a(e){Pr(i,r,o,s,a,"throw",e)}s(void 0)}))}}var Nr=[],Rr=[];function Ir(e){return Lr.apply(this,arguments)}function Lr(){return Lr=Tr(s().mark((function e(t){var n,r,o,i,a,l,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=(l=null!==(n=null==t||null===(r=t.fields)||void 0===r?void 0:r.required_plugins)&&void 0!==n?n:[]).filter((function(e){return"editorplus"!==e})),null!==(o=l)&&void 0!==o&&o.length){e.next=4;break}return e.abrupt("return",!1);case 4:if(null!==(i=Nr)&&void 0!==i&&i.length){e.next=10;break}return e.t0=Object,e.next=8,Jt();case 8:e.t1=e.sent,Nr=e.t0.keys.call(e.t0,e.t1);case 10:return u=!(null===(a=l)||void 0===a||!a.length)&&l.filter((function(e){return!Nr.some((function(t){return t.includes(e)}))})),e.abrupt("return",u.length);case 12:case"end":return e.stop()}}),e)}))),Lr.apply(this,arguments)}function Mr(e){return Dr.apply(this,arguments)}function Dr(){return Dr=Tr(s().mark((function e(t){var n,r,o,i,a,l,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=(l=null!==(n=null==t||null===(r=t.fields)||void 0===r?void 0:r.required_plugins)&&void 0!==n?n:[]).filter((function(e){return"editorplus"!==e})),null!==(o=l)&&void 0!==o&&o.length){e.next=4;break}return e.abrupt("return",!1);case 4:if(null!==(i=Rr)&&void 0!==i&&i.length){e.next=10;break}return e.t0=Object,e.next=8,Xt();case 8:e.t1=e.sent,Rr=e.t0.values.call(e.t0,e.t1);case 10:if(u=!(null===(a=l)||void 0===a||!a.length)&&l.filter((function(e){return!Rr.some((function(t){return t.includes(e)}))})),!u){e.next=16;break}return e.next=14,Ir(t);case 14:if(!e.sent){e.next=16;break}return e.abrupt("return",!1);case 16:return e.abrupt("return",null==u?void 0:u.length);case 17:case"end":return e.stop()}}),e)}))),Dr.apply(this,arguments)}var Br=f(b((function(e){return{wantedTemplate:{},importOnLoad:!1,setWanted:function(t){return e({wantedTemplate:t})},removeWanted:function(){return e({wantedTemplate:{}})}}}),{name:"extendify-wanted-template"}));var Fr=function(e){return Ur(e,"open")};function Ur(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"broken-event",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"open";H.setState({entryPoint:e}),window.dispatchEvent(new CustomEvent("extendify::".concat(t,"-library"),{detail:e,bubbles:!0}))}function zr(e){switch(e){case"editorplus":return"Editor Plus";case"ml-slider":return"MetaSlider"}return e}function $r(e){switch(e){case"siteType":return(0,Mt.__)("Site Type","extendify");case"patternType":return(0,Mt.__)("Content","extendify");case"layoutType":return(0,Mt.__)("Page Types","extendify")}return e}function Vr(){var e,t,n,r=Br((function(e){return e.wantedTemplate})),i=(null==r||null===(e=r.fields)||void 0===e?void 0:e.required_plugins)||[];return(0,Ht.jsxs)(Lt.Modal,{title:(0,Mt.__)("Plugins required","extendify"),isDismissible:!1,children:[(0,Ht.jsx)("p",{style:{maxWidth:"400px"},children:(0,Mt.sprintf)((0,Mt.__)("In order to add this %s to your site, the following plugins are required to be installed and activated.","extendify"),null!==(t=null==r||null===(n=r.fields)||void 0===n?void 0:n.type)&&void 0!==t?t:"template")}),(0,Ht.jsx)("ul",{children:i.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,Ht.jsx)("li",{children:zr(e)},e)}))}),(0,Ht.jsx)("p",{style:{maxWidth:"400px",fontWeight:"bold"},children:(0,Mt.__)("Please contact a site admin for assistance in adding these plugins to your site.","extendify")}),(0,Ht.jsx)(Lt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,Ht.jsx)(js,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none"},children:(0,Mt.__)("Return to library","extendify")})]})}const Wr=wp.data;function qr(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)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Hr(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 Hr(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 Hr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yr(){var e=qr((0,o.useState)(!1),2),t=e[0],n=e[1],r=function(){};return(0,(0,Wr.select)("core/editor").isEditedPostDirty)()?(0,Ht.jsxs)(Lt.Modal,{title:(0,Mt.__)("Reload required","extendify"),isDismissible:!1,children:[(0,Ht.jsx)("p",{style:{maxWidth:"400px"},children:(0,Mt.__)("Just one more thing! We need to reload the page to continue.","extendify")}),(0,Ht.jsxs)(Lt.ButtonGroup,{children:[(0,Ht.jsx)(Lt.Button,{isPrimary:!0,onClick:r,disabled:t,children:(0,Mt.__)("Reload page","extendify")}),(0,Ht.jsx)(Lt.Button,{isSecondary:!0,onClick:function(){n(!0),(0,Wr.dispatch)("core/editor").savePost(),n(!1)},isBusy:t,style:{margin:"0 4px"},children:(0,Mt.__)("Save changes","extendify")})]})]}):null}function Gr(e){var t=e.msg;return(0,Ht.jsxs)(Lt.Modal,{style:{maxWidth:"500px"},title:(0,Mt.__)("Error Activating plugins","extendify"),isDismissible:!1,children:[(0,Mt.__)("You have encountered an error that we cannot recover from. Please try again.","extendify"),(0,Ht.jsx)("br",{}),(0,Ht.jsx)(Lt.Notice,{isDismissible:!1,status:"error",children:t}),(0,Ht.jsx)(Lt.Button,{isPrimary:!0,onClick:function(){(0,o.render)((0,Ht.jsx)(eo,{}),document.getElementById("extendify-root"))},children:(0,Mt.__)("Go back","extendify")})]})}function Jr(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Kr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Jr(i,r,o,s,a,"next",e)}function a(e){Jr(i,r,o,s,a,"throw",e)}s(void 0)}))}}function Xr(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)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Zr(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 Zr(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 Zr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qr(){var e,t=Xr((0,o.useState)(""),2),n=t[0],r=t[1],i=Br((function(e){return e.wantedTemplate})),a=null==i||null===(e=i.fields)||void 0===e?void 0:e.required_plugins.filter((function(e){return"editorplus"!==e}));return Kt(a).then((function(){Br.setState({importOnLoad:!0})})).then(Kr(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){return setTimeout(e,1e3)}));case 2:(0,o.render)((0,Ht.jsx)(Yr,{}),document.getElementById("extendify-root"));case 3:case"end":return e.stop()}}),e)})))).catch((function(e){var t=e.response;r(t.data.message)})),n?(0,Ht.jsx)(Gr,{msg:n}):(0,Ht.jsx)(Lt.Modal,{title:(0,Mt.__)("Activating plugins","extendify"),isDismissible:!1,children:(0,Ht.jsx)(Lt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,Mt.__)("Activating...","extendify")})})}function eo(e){var t,n,r,i,s,a=Br((function(e){return e.wantedTemplate})),l=(null==a||null===(t=a.fields)||void 0===t?void 0:t.required_plugins)||[];return null!==(n=H.getState())&&void 0!==n&&n.canActivatePlugins?(0,Ht.jsx)(Lt.Modal,{title:(0,Mt.__)("Activate required plugins","extendify"),isDismissible:!1,children:(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("p",{style:{maxWidth:"400px"},children:null!==(r=e.message)&&void 0!==r?r:(0,Mt.__)((0,Mt.sprintf)("There is just one more step. This %s requires the following plugins to be installed and activated:",null!==(i=null==a||null===(s=a.fields)||void 0===s?void 0:s.type)&&void 0!==i?i:"template"),"extendify")}),(0,Ht.jsx)("ul",{children:l.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,Ht.jsx)("li",{children:zr(e)},e)}))}),(0,Ht.jsxs)(Lt.ButtonGroup,{children:[(0,Ht.jsx)(Lt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,Ht.jsx)(Qr,{}),document.getElementById("extendify-root"))},children:(0,Mt.__)("Activate Plugins","extendify")}),e.showClose&&(0,Ht.jsx)(Lt.Button,{isTertiary:!0,onClick:function(){return(0,o.render)((0,Ht.jsx)(js,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,Mt.__)("No thanks, return to library","extendify")})]})]})}):(0,Ht.jsx)(Vr,{})}function to(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}var no=function(){var e,t=(e=s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Mr(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,o.render)((0,Ht.jsx)(eo,{showClose:!0}),document.getElementById("extendify-root"))}))},e.abrupt("return",{id:"hasPluginsActivated",pass:e.t0,allow:e.t1,deny:e.t2});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){to(i,r,o,s,a,"next",e)}function a(e){to(i,r,o,s,a,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}();function ro(e){var t=e.msg;return(0,Ht.jsxs)(Lt.Modal,{style:{maxWidth:"500px"},title:(0,Mt.__)("Error installing plugins","extendify"),isDismissible:!1,children:[(0,Mt.__)("You have encountered an error that we cannot recover from. Please try again.","extendify"),(0,Ht.jsx)("br",{}),(0,Ht.jsx)(Lt.Notice,{isDismissible:!1,status:"error",children:t}),(0,Ht.jsx)(Lt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,Ht.jsx)(ao,{}),document.getElementById("extendify-root"))},children:(0,Mt.__)("Go back","extendify")})]})}function oo(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)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return io(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 io(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 io(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function so(e){var t,n=e.requiredPlugins,r=oo((0,o.useState)(""),2),i=r[0],s=r[1],a=Br((function(e){return e.wantedTemplate})),l=null!=n?n:null==a||null===(t=a.fields)||void 0===t?void 0:t.required_plugins.filter((function(e){return"editorplus"!==e}));return Kt(l).then((function(){Br.setState({importOnLoad:!0}),(0,o.render)((0,Ht.jsx)(Yr,{}),document.getElementById("extendify-root"))})).catch((function(e){var t=e.message;s(t)})),i?(0,Ht.jsx)(ro,{msg:i}):(0,Ht.jsx)(Lt.Modal,{title:(0,Mt.__)("Installing plugins","extendify"),isDismissible:!1,children:(0,Ht.jsx)(Lt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,Mt.__)("Installing...","extendify")})})}function ao(e){var t,n,r,i,s,a=e.forceOpen,l=e.buttonLabel,u=e.title,c=e.message,f=e.requiredPlugins,d=Br((function(e){return e.wantedTemplate}));f=null!==(t=f)&&void 0!==t?t:null==d||null===(n=d.fields)||void 0===n?void 0:n.required_plugins;return null!==(r=H.getState())&&void 0!==r&&r.canInstallPlugins?(0,Ht.jsxs)(Lt.Modal,{title:null!=u?u:(0,Mt.__)("Install required plugins","extendify"),isDismissible:!1,children:[(0,Ht.jsx)("p",{style:{maxWidth:"400px"},children:null!=c?c:(0,Mt.__)((0,Mt.sprintf)("There is just one more step. This %s requires the following to be automatically installed and activated:",null!==(i=null==d||null===(s=d.fields)||void 0===s?void 0:s.type)&&void 0!==i?i:"template"),"extendify")}),(null==c?void 0:c.length)>0||(0,Ht.jsx)("ul",{children:f.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,Ht.jsx)("li",{children:zr(e)},e)}))}),(0,Ht.jsxs)(Lt.ButtonGroup,{children:[(0,Ht.jsx)(Lt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,Ht.jsx)(so,{requiredPlugins:f}),document.getElementById("extendify-root"))},children:null!=l?l:(0,Mt.__)("Install Plugins","extendify")}),a||(0,Ht.jsx)(Lt.Button,{isTertiary:!0,onClick:function(){a||(0,o.render)((0,Ht.jsx)(js,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,Mt.__)("No thanks, take me back","extendify")})]})]}):(0,Ht.jsx)(Vr,{})}function lo(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}var uo=function(){var e,t=(e=s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ir(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,o.render)((0,Ht.jsx)(ao,{}),document.getElementById("extendify-root"))}))},e.abrupt("return",{id:"hasRequiredPlugins",pass:e.t0,allow:e.t1,deny:e.t2});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){lo(i,r,o,s,a,"next",e)}function a(e){lo(i,r,o,s,a,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}();function co(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return fo(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 fo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function fo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function po(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function ho(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){po(i,r,o,s,a,"next",e)}function a(e){po(i,r,o,s,a,"throw",e)}s(void 0)}))}}function mo(e){return new vo(e)}function xo(e){return function(){return new yo(e.apply(this,arguments))}}function yo(e){var t,n;function r(t,n){try{var i=e[t](n),s=i.value,a=s instanceof vo;Promise.resolve(a?s.wrapped:s).then((function(e){a?r("return"===t?"return":"next",e):o(i.done?"return":"normal",e)}),(function(e){r("throw",e)}))}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise((function(i,s){var a={key:e,arg:o,resolve:i,reject:s,next:null};n?n=n.next=a:(t=n=a,r(e,o))}))},"function"!=typeof e.return&&(this.return=void 0)}function vo(e){this.wrapped=e}yo.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},yo.prototype.next=function(e){return this._invoke("next",e)},yo.prototype.throw=function(e){return this._invoke("throw",e)},yo.prototype.return=function(e){return this._invoke("return",e)};function go(e){return bo.apply(this,arguments)}function bo(){return(bo=ho(s().mark((function e(t){var n,r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=wo(t.stack);case 1:return r=void 0,e.prev=3,e.next=6,n.next();case 6:r=e.sent,e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(3),t.reset(),"Middleware exited";case 13:if(!r.done){e.next=15;break}return e.abrupt("break",17);case 15:e.next=1;break;case 17:case"end":return e.stop()}}),e,null,[[3,9]])})))).apply(this,arguments)}function wo(e){return jo.apply(this,arguments)}function jo(){return(jo=xo(s().mark((function e(t){var n,r,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=co(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}return o=r.value,e.next=7,mo(o());case 7:return e.next=9,e.sent;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),n.e(e.t0);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})))).apply(this,arguments)}function ko(e,t){var n=(0,Wr.dispatch)("core/block-editor"),r=n.insertBlocks,o=n.replaceBlock,i=(0,Wr.select)("core/block-editor"),s=i.getSelectedBlock,a=i.getBlockHierarchyRootClientId,l=i.getBlockIndex,u=i.getGlobalBlockCount,c=s()||{},f=c.clientId,d=c.name,p=c.attributes,h=f?a(f):"",m=(h?l(h):u())+1;return("core/paragraph"===d&&""===(null==p?void 0:p.content)?o(f,e):r(e,m)).then((function(){return window.dispatchEvent(new CustomEvent("extendify::template-inserted",{detail:{template:t},bubbles:!0}))}))}var Eo=n(4306);function _o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return So(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 So(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 So(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Co=function(e){var t,n,r,i,s,a=e.template,l=null!=a&&null!==(t=a.fields)&&void 0!==t&&null!==(n=t.basePattern)&&void 0!==n&&n.length?null==a||null===(r=a.fields)||void 0===r?void 0:r.basePattern[0]:"",u=_o((0,o.useState)(l),2),c=u[0],f=u[1];return(0,o.useEffect)((function(){null!=l&&l.length&&c!==l&&setTimeout((function(){return f(l)}),1e3)}),[c,l]),l?(0,Ht.jsxs)("div",{className:"absolute bottom-0 left-0 z-50 mb-4 ml-4 flex items-center space-x-2 opacity-0 transition duration-100 group-hover:opacity-100 space-x-0.5",children:[(0,Ht.jsx)(Eo.CopyToClipboard,{text:null==a||null===(i=a.fields)||void 0===i?void 0:i.basePattern,onCopy:function(){return f((0,Mt.__)("Copied!","extendify"))},children:(0,Ht.jsx)("button",{className:"text-sm rounded-md border border-black bg-white py-1 px-2.5 font-medium text-black no-underline m-0 cursor-pointer",children:(0,Mt.sprintf)((0,Mt.__)("Base: %s","extendify"),c)})}),(0,Ht.jsx)("a",{target:"_blank",className:"text-sm rounded-md border border-black bg-white py-1 px-2.5 font-medium text-black no-underline m-0",href:null==a||null===(s=a.fields)||void 0===s?void 0:s.editURL,rel:"noreferrer",children:(0,Mt.__)("Edit","extendify")})]}):null};function Oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oo(Object(n),!0).forEach((function(t){Po(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Po(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var To=(0,o.forwardRef)((function(e,t){var n,r=e.isOpen,i=e.heading,s=e.onClose,a=e.children,l=(0,o.useRef)(null),u=k((function(e){return e.removeAllModals}));return s=null!==(n=s)&&void 0!==n?n:u,(0,Ht.jsx)(qn,{appear:!0,show:r,as:o.Fragment,className:"extendify",children:(0,Ht.jsx)(It,{initialFocus:null!=t?t:l,onClose:s,children:(0,Ht.jsxs)("div",{className:"fixed inset-0 z-high flex",children:[(0,Ht.jsx)(qn.Child,{as:o.Fragment,enter:"ease-out duration-200 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,Ht.jsx)(It.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40"})}),(0,Ht.jsx)(qn.Child,{as:o.Fragment,enter:"ease-out duration-300 translate transform",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,Ht.jsx)("div",{className:"relative m-auto w-full",children:(0,Ht.jsxs)("div",{className:"relative m-auto w-full max-w-lg items-center justify-center rounded-sm bg-white shadow-modal",children:[i?(0,Ht.jsxs)("div",{className:"flex items-center justify-between border-b py-2 pl-6 pr-3 leading-none",children:[(0,Ht.jsx)("span",{className:"whitespace-nowrap text-base text-extendify-black",children:i}),(0,Ht.jsx)(No,{onClick:s})]}):(0,Ht.jsx)("div",{className:"absolute top-0 right-0 block px-4 py-4 ",children:(0,Ht.jsx)(No,{ref:l,onClick:s})}),(0,Ht.jsx)("div",{children:a})]})})})]})})})})),No=(0,o.forwardRef)((function(e,t){return(0,Ht.jsx)(Lt.Button,Ao(Ao({},e),{},{icon:(0,Ht.jsx)(Dt,{icon:Sn}),ref:t,className:"text-extendify-black opacity-75 hover:opacity-100",showTooltip:!1,label:(0,Mt.__)("Close dialog","extendify")}))}));function Ro(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Io(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Ro(i,r,o,s,a,"next",e)}function a(e){Ro(i,r,o,s,a,"throw",e)}s(void 0)}))}}function Lo(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)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mo(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 Mo(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 Mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Do=function(){var e=Lo((0,o.useState)(!1),2),t=e[0],n=e[1],r=Lo((0,o.useState)(!1),2),i=r[0],a=r[1],l=Ar(),u=function(){var e=Io(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=2;break}return e.abrupt("return");case 2:if(n(!0),!i){e.next=11;break}return a(!1),H.setState({participatingTestsGroups:[]}),e.next=8,H.persist.rehydrate();case 8:return window.extendifyData._canRehydrate=!1,n(!1),e.abrupt("return");case 11:return H.persist.clearStorage(),k.persist.clearStorage(),e.next=15,new Promise((function(e){return setTimeout(e,1e3)}));case 15:window.extendifyData._canRehydrate=!0,a(!0),n(!1);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),c=function(){var e=Io(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new URLSearchParams(window.location.search)).delete("LOCALMODE",1),t[t.has("DEVMODE")||l?"delete":"append"]("DEVMODE",1),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString()),e.next=6,new Promise((function(e){return setTimeout(e,500)}));case 6:window.dispatchEvent(new Event("popstate")),ae.getState().resetTemplates(),ae.getState().updateSearchParams({}),Z.persist.clearStorage(),Z.persist.rehydrate(),ae.setState({taxonomyDefaultState:{}}),Z.getState().fetchTaxonomies().then((function(){ae.getState().setupDefaultTaxonomies()}));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return window.extendifyData.devbuild?(0,Ht.jsxs)("section",{className:"p-6 flex flex-col space-y-6 border-l-8 border-extendify-secondary",children:[(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("p",{className:"text-base m-0 text-extendify-black",children:"Development Settings"}),(0,Ht.jsx)("p",{className:"text-sm italic m-0 text-gray-500",children:"Only available on dev builds"})]}),(0,Ht.jsxs)("div",{className:"flex space-x-2",children:[(0,Ht.jsxs)(Lt.Button,{isSecondary:!0,onClick:c,children:["Switch to ",l?"Live":"Dev"," Server"]}),(0,Ht.jsx)(Lt.Button,{isSecondary:!0,onClick:u,children:t?"Processing...":i?"OK! Press to rehydrate app":"Reset User Data"})]})]}):null};function Bo(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Fo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Bo(i,r,o,s,a,"next",e)}function a(e){Bo(i,r,o,s,a,"throw",e)}s(void 0)}))}}function Uo(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)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return zo(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 zo(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 zo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $o(e){var t=e.actionCallback,n=e.initialFocus,r=H((function(e){return e.apiKey.length})),i=Uo((0,o.useState)(""),2),a=i[0],l=i[1],u=Uo((0,o.useState)(""),2),c=u[0],f=u[1],d=Uo((0,o.useState)(""),2),p=d[0],h=d[1],m=Uo((0,o.useState)("info"),2),x=m[0],y=m[1],v=Uo((0,o.useState)(!1),2),g=v[0],b=v[1],w=Uo((0,o.useState)(!1),2),j=w[0],k=w[1],E=(0,o.useRef)(null),_=(0,o.useRef)(null),S=Ar();(0,o.useEffect)((function(){return l(H.getState().email),function(){return y("info")}}),[]),(0,o.useEffect)((function(){var e;j&&(null==E||null===(e=E.current)||void 0===e||e.focus())}),[j]);var C=function(){var e=Fo(s().mark((function e(t){var n,r,o,i,l;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),b(!0),h(""),e.next=5,A(a,c);case 5:if(n=e.sent,r=n.token,o=n.error,i=n.exception,void 0===(l=n.message)){e.next=15;break}return y("error"),b(!1),h(null!=l&&l.length?l:"Error: Are you interacting with the wrong server?"),e.abrupt("return");case 15:if(!o&&!i){e.next=20;break}return y("error"),b(!1),h(null!=o&&o.length?o:i),e.abrupt("return");case 20:if(r&&"string"==typeof r){e.next=25;break}return y("error"),b(!1),h((0,Mt.__)("Something went wrong","extendify")),e.abrupt("return");case 25:y("success"),h("Success!"),k(!0),b(!1),H.setState({email:a,apiKey:r});case 30:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return j?(0,Ht.jsxs)("section",{className:"space-y-6 p-6 text-center flex flex-col items-center",children:[(0,Ht.jsx)(Dt,{icon:jn,size:148}),(0,Ht.jsx)("p",{className:"text-center text-lg font-semibold m-0 text-extendify-black",children:(0,Mt.__)("You've signed in to Extendify","extendify")}),(0,Ht.jsx)(Lt.Button,{ref:E,className:"cursor-pointer rounded bg-extendify-main p-2 px-4 text-center text-white",onClick:t,children:(0,Mt.__)("View patterns","extendify")})]}):r?(0,Ht.jsxs)("section",{className:"w-full space-y-6 p-6",children:[(0,Ht.jsx)("p",{className:"text-base m-0 text-extendify-black",children:(0,Mt.__)("Account","extendify")}),(0,Ht.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ht.jsxs)("div",{className:"-ml-2 flex items-center space-x-2",children:[(0,Ht.jsx)(Dt,{icon:_n,size:48}),(0,Ht.jsx)("p",{className:"text-extendify-black",children:null!=a&&a.length?a:(0,Mt.__)("Logged In","extendify")})]}),S&&(0,Ht.jsx)(Lt.Button,{className:"cursor-pointer rounded bg-extendify-main px-4 py-3 text-center text-white hover:bg-extendify-main-dark",onClick:function(){f(""),H.setState({apiKey:""}),setTimeout((function(){var e;null==_||null===(e=_.current)||void 0===e||e.focus()}),0)},children:(0,Mt.__)("Sign out","extendify")})]})]}):(0,Ht.jsxs)("section",{className:"space-y-6 p-6 text-left",children:[(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("p",{className:"text-center text-lg font-semibold m-0 text-extendify-black",children:(0,Mt.__)("Sign in to Extendify","extendify")}),(0,Ht.jsxs)("p",{className:"space-x-1 text-center text-sm m-0 text-extendify-gray",children:[(0,Ht.jsx)("span",{children:(0,Mt.__)("Don't have an account?","extendify")}),(0,Ht.jsx)("a",{href:"https://extendify.com/pricing?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=sign-in-form&utm_content=sign-up&utm_group=").concat(H.getState().activeTestGroupsUtmValue()),target:"_blank",onClick:Fo(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("sign-up-link-from-login-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),className:"underline hover:no-underline text-extendify-gray",rel:"noreferrer",children:(0,Mt.__)("Sign up","extendify")})]})]}),(0,Ht.jsxs)("form",{onSubmit:C,className:"flex flex-col items-center justify-center space-y-2",children:[(0,Ht.jsxs)("div",{className:"flex items-center",children:[(0,Ht.jsx)("label",{className:"sr-only",htmlFor:"extendify-login-email",children:(0,Mt.__)("Email address","extendify")}),(0,Ht.jsx)("input",{ref:n,id:"extendify-login-email",name:"extendify-login-email",style:{minWidth:"320px"},type:"email",className:"w-full rounded border-2 p-2",placeholder:(0,Mt.__)("Email address","extendify"),value:a.length?a:"",onChange:function(e){return l(e.target.value)}})]}),(0,Ht.jsxs)("div",{className:"flex items-center",children:[(0,Ht.jsx)("label",{className:"sr-only",htmlFor:"extendify-login-license",children:(0,Mt.__)("License key","extendify")}),(0,Ht.jsx)("input",{ref:_,id:"extendify-login-license",name:"extendify-login-license",style:{minWidth:"320px"},type:"text",className:"w-full rounded border-2 p-2",placeholder:(0,Mt.__)("License key","extendify"),value:c,onChange:function(e){return f(e.target.value)}})]}),(0,Ht.jsx)("div",{className:"flex justify-center pt-2",children:(0,Ht.jsxs)("button",{type:"submit",className:"relative flex w-72 max-w-full cursor-pointer justify-center rounded bg-extendify-main p-2 py-3 text-center text-base text-white hover:bg-extendify-main-dark ",children:[(0,Ht.jsx)("span",{children:(0,Mt.__)("Sign In","extendify")}),g&&(0,Ht.jsx)("div",{className:"absolute right-2.5",children:(0,Ht.jsx)(Lt.Spinner,{})})]})}),p&&(0,Ht.jsx)("div",{className:Ft()({"border-gray-900 text-gray-900":"info"===x,"border-wp-alert-red text-wp-alert-red":"error"===x,"border-extendify-main text-extendify-main":"success"===x}),children:p}),(0,Ht.jsx)("div",{className:"pt-4 text-center",children:(0,Ht.jsx)("a",{target:"_blank",rel:"noreferrer",href:"https://extendify.com/guides/sign-in?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=sign-in-form&utm_content=need-help&utm_group=").concat(H.getState().activeTestGroupsUtmValue()),onClick:Fo(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("need-help-link-from-login-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),className:"underline hover:no-underline text-sm text-extendify-gray",children:(0,Mt.__)("Need Help?","extendify")})})]})]})}var Vo=function(){var e=(0,o.useRef)(null),t=k((function(e){return e.removeAllModals}));return(0,Ht.jsx)(To,{heading:(0,Mt.__)("Settings","extendify"),isOpen:!0,ref:e,children:(0,Ht.jsxs)("div",{className:"flex justify-center flex-col divide-y",children:[(0,Ht.jsx)(Do,{}),(0,Ht.jsx)($o,{initialFocus:e,actionCallback:t})]})})};function Wo(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function qo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Wo(i,r,o,s,a,"next",e)}function a(e){Wo(i,r,o,s,a,"throw",e)}s(void 0)}))}}var Ho=function(){var e=k((function(e){return e.pushModal})),t=(0,o.useRef)(null);return(0,Ht.jsxs)(Hn,{isOpen:!0,ref:t,leftContainerBgColor:"bg-white",children:[(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("div",{className:"mb-5 flex items-center space-x-2 text-extendify-black",children:hn}),(0,Ht.jsx)("h3",{className:"mt-0 text-xl",children:(0,Mt.__)("You're out of imports","extendify")}),(0,Ht.jsx)("p",{className:"text-sm text-black",children:(0,Mt.__)("Sign up today and get unlimited access to our entire collection of patterns and page layouts.","extendify")}),(0,Ht.jsxs)("div",{children:[(0,Ht.jsxs)("a",{target:"_blank",ref:t,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},href:"https://extendify.com/pricing/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=no-imports-modal&utm_content=get-unlimited-imports&utm_group=").concat(H.getState().activeTestGroupsUtmValue()),onClick:qo(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("no-imports-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),rel:"noreferrer",children:[(0,Mt.__)("Get Unlimited Imports","extendify"),(0,Ht.jsx)(Lt.Icon,{icon:gn,size:24,className:"-mr-1"})]}),(0,Ht.jsxs)("p",{className:"mb-0 text-left text-sm text-extendify-gray",children:[(0,Mt.__)("Have an account?","extendify"),(0,Ht.jsx)(Lt.Button,{onClick:function(){return e((0,Ht.jsx)(Vo,{}))},className:"pl-2 text-sm text-extendify-gray underline hover:no-underline",children:(0,Mt.__)("Sign in","extendify")})]})]})]}),(0,Ht.jsxs)("div",{className:"flex h-full flex-col justify-center space-y-2 p-10 text-black",children:[(0,Ht.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Ht.jsx)(Lt.Icon,{icon:wn,size:24}),(0,Ht.jsx)("span",{className:"text-sm leading-none",children:(0,Mt.__)("Access to 100's of Patterns","extendify")})]}),(0,Ht.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Ht.jsx)(Lt.Icon,{icon:mn,size:24}),(0,Ht.jsx)("span",{className:"text-sm leading-none",children:(0,Mt.__)('Access to "Pro" catalog',"extendify")})]}),(0,Ht.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Ht.jsx)(Lt.Icon,{icon:bn,size:24}),(0,Ht.jsx)("span",{className:"text-sm leading-none",children:(0,Mt.__)("Beautiful full page layouts","extendify")})]}),(0,Ht.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Ht.jsx)(Lt.Icon,{icon:kn,size:24}),(0,Ht.jsx)("span",{className:"text-sm leading-none",children:(0,Mt.__)("Fast and friendly support","extendify")})]}),(0,Ht.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Ht.jsx)(Lt.Icon,{icon:En,size:24}),(0,Ht.jsx)("span",{className:"text-sm leading-none",children:(0,Mt.__)("14-Day guarantee","extendify")})]})]})]})};function Yo(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Go(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Yo(i,r,o,s,a,"next",e)}function a(e){Yo(i,r,o,s,a,"throw",e)}s(void 0)}))}}var Jo=function(){var e=(0,o.useRef)(null);return(0,Ht.jsxs)(Hn,{isOpen:!0,invertedButtonColor:!0,ref:e,children:[(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("div",{className:"mb-5 flex items-center space-x-2 text-extendify-black",children:hn}),(0,Ht.jsx)("h3",{className:"mt-0 text-xl",children:(0,Mt.__)("Get unlimited access to all our Pro patterns & layouts","extendify")}),(0,Ht.jsx)("p",{className:"text-sm text-black",children:(0,Mt.__)("Upgrade to Extendify Pro and use all the patterns and layouts you'd like, including our exclusive Pro catalog.","extendify")}),(0,Ht.jsx)("div",{children:(0,Ht.jsxs)("a",{target:"_blank",ref:e,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},href:"https://extendify.com/pricing/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=pro-modal&utm_content=upgrade-now&utm_group=").concat(H.getState().activeTestGroupsUtmValue()),onClick:Go(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("pro-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),rel:"noreferrer",children:[(0,Mt.__)("Upgrade Now","extendify"),(0,Ht.jsx)(Lt.Icon,{icon:gn,size:24,className:"-mr-1"})]})})]}),(0,Ht.jsx)("div",{className:"justify-endrounded-tr-sm flex w-full rounded-br-sm bg-black",children:(0,Ht.jsx)("img",{alt:(0,Mt.__)("Upgrade Now","extendify"),className:"max-w-full rounded-tr-sm rounded-br-sm",src:window.extendifyData.asset_path+"/modal-extendify-black.png"})})]})};function Ko(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xo(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Zo(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)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qo(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 Qo(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 Qo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ei=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{hasRequiredPlugins:uo,hasPluginsActivated:no,stack:[],check:function(t){var n=this;return ho(s().mark((function r(){var o,i,a,l;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=co(e),r.prev=1,o.s();case 3:if((i=o.n()).done){r.next=11;break}return a=i.value,r.next=7,n["".concat(a)](t);case 7:l=r.sent,n.stack.push(l.pass?l.allow:l.deny);case 9:r.next=3;break;case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),o.e(r.t0);case 16:return r.prev=16,o.f(),r.finish(16);case 19:case"end":return r.stop()}}),r,null,[[1,13,16,19]])})))()},reset:function(){this.stack=[]}}}(["hasRequiredPlugins","hasPluginsActivated"]);function ti(e){var t,n,i,a,l,u,c=e.template,f=e.maxHeight,d=(0,o.useRef)(null),p=H((function(e){return e.hasAvailableImports})),h=H((function(e){return e.apiKey.length})),m=k((function(e){return e.setOpen})),x=k((function(e){return e.pushModal})),y=k((function(e){return e.removeAllModals})),v=Zo((0,o.useState)(0),2),g=v[0],b=v[1],w=Array.isArray(null==c||null===(t=c.fields)||void 0===t?void 0:t.type)?c.fields.type[0]:null==c||null===(n=c.fields)||void 0===n?void 0:n.type,j=(0,o.useMemo)((function(){return(0,r.rawHandler)({HTML:ni(c.fields.code)})}),[c.fields.code]),E=(0,o.useMemo)((function(){return(0,r.rawHandler)({HTML:c.fields.code})}),[c.fields.code]),_=Ar(),S=function(){var e,t=(e=s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ei.check(c);case 2:go(ei).then((function(){setTimeout((function(){ko(E,c).then((function(){return y()})).then((function(){return m(!1)})).then((function(){return ei.reset()}))}),100)})).catch((function(){}));case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Xo(i,r,o,s,a,"next",e)}function a(e){Xo(i,r,o,s,a,"throw",e)}s(void 0)}))});return function(){return t.apply(this,arguments)}}(),C=function(){var e;kr(c),null==c||null===(e=c.fields)||void 0===e||!e.pro||h?p()?S():x((0,Ht.jsx)(Ho,{})):x((0,Ht.jsx)(Jo,{}))};return(0,o.useEffect)((function(){if(Number.isInteger(f)&&"layout"===w){var e=d.current,t=function(){var t=e.offsetHeight;e.style.transitionDuration=1.5*t+"ms",b(-1*Math.abs(t-f))},n=function(){var t=e.offsetHeight;e.style.transitionDuration=t/1.5+"ms",b(0)};return e.addEventListener("focus",t),e.addEventListener("mouseenter",t),e.addEventListener("blur",n),e.addEventListener("mouseleave",n),function(){e.removeEventListener("focus",t),e.removeEventListener("mouseenter",t),e.removeEventListener("blur",n),e.removeEventListener("mouseleave",n)}}}),[f,w]),(0,Ht.jsxs)("div",{className:"group relative",children:[(0,Ht.jsx)("div",{role:"button",tabIndex:"0","aria-label":(0,Mt.sprintf)((0,Mt.__)("Press to import %s","extendify"),null==c||null===(i=c.fields)||void 0===i?void 0:i.type),style:{maxHeight:f},className:"button-focus relative m-0 cursor-pointer overflow-hidden bg-gray-100 ease-in-out",onClick:C,onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(e.stopPropagation(),e.preventDefault(),C())},children:(0,Ht.jsx)("div",{ref:d,style:{top:g,transitionProperty:"all"},className:Ft()("with-light-shadow relative",(l={},Ko(l,"is-template--".concat(c.fields.status),(null==c||null===(a=c.fields)||void 0===a?void 0:a.status)&&_),Ko(l,"p-6 md:p-8",Number.isInteger(f)),l)),children:(0,Ht.jsx)(Sr.BlockPreview,{blocks:j,live:!1,viewportWidth:1400})})}),_&&(0,Ht.jsx)(Co,{template:c}),(null==c||null===(u=c.fields)||void 0===u?void 0:u.pro)&&(0,Ht.jsx)("div",{className:"pointer-events-none absolute top-4 right-4 z-20 rounded-md border border-none bg-white bg-wp-theme-500 py-1 px-2.5 font-medium text-white no-underline shadow-sm",children:(0,Mt.__)("Pro","extendify")})]})}var ni=function(e){return e.replace(/\w+:\/\/\S*(w=(\d*))&(h=(\d*))&\w+\S*"/g,(function(e,t,n,r,o){return e.replace(t,"w="+Math.floor(Number(n)/2)).replace(r,"h="+Math.floor(Number(o)/2))}))};function ri(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)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oi(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 oi(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 oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ii=(0,o.memo)((function(){var e=function(){var e=(0,o.useRef)(!1);return(0,o.useEffect)((function(){return e.current=!0,function(){return e.current=!1}})),e}(),t=ae((function(e){return e.templates})),n=ri((0,o.useState)(0),2),r=n[0],i=n[1],s=ae((function(e){return e.appendTemplates})),l=ri((0,o.useState)(""),2),u=l[0],c=l[1],f=(0,o.useRef)(!1),d=ri((0,o.useState)(!1),2),p=d[0],h=d[1],m=ri((0,o.useState)(!1),2),x=m[0],y=m[1],v=function(e){var t=void 0===e?{}:e,n=t.threshold,r=t.delay,o=t.trackVisibility,i=t.rootMargin,s=t.root,l=t.triggerOnce,u=t.skip,c=t.initialInView,f=t.fallbackInView,d=a.useRef(),p=a.useState({inView:!!c}),h=p[0],m=p[1],x=a.useCallback((function(e){void 0!==d.current&&(d.current(),d.current=void 0),u||e&&(d.current=ar(e,(function(e,t){m({inView:e,entry:t}),t.isIntersecting&&l&&d.current&&(d.current(),d.current=void 0)}),{root:s,rootMargin:i,threshold:n,trackVisibility:o,delay:r},f))}),[Array.isArray(n)?n.toString():n,s,i,l,u,o,f,r]);(0,a.useEffect)((function(){d.current||!h.entry||l||u||m({inView:!!c})}));var y=[x,h.inView,h.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}(),g=ri(v,2),b=g[0],w=g[1],j=ae((function(e){return e.searchParams})),E=k((function(e){return e.currentType})),_=ae((function(e){return e.resetTemplates})),C=k((function(e){return e.open})),O=Z((function(e){return e.taxonomies})),A=ae((function(e){return e.updateType})),P=ae((function(e){return e.updateTaxonomies})),T=(0,o.useRef)(ae.getState().nextPage),N=(0,o.useRef)(ae.getState().searchParams),R="pattern"===N.current.type?"patternType":"layoutType",I=N.current.taxonomies[R];(0,o.useEffect)((function(){return ae.subscribe((function(e){return e.nextPage}),(function(e){return T.current=e}))}),[]),(0,o.useEffect)((function(){return ae.subscribe((function(e){return e.searchParams}),(function(e){return N.current=e}))}),[]);var L,M=(0,o.useCallback)((function(){var t,n,r;c(""),h(!1);var o=(0,Mt.__)("Unknown error occurred. Check browser console or contact support.","extendify"),a={offset:T.current},l=null!==(t=N.current.taxonomies)&&void 0!==t&&null!==(n=t.siteType)&&void 0!==n&&null!==(r=n.slug)&&void 0!==r&&r.length?N.current.taxonomies.siteType:{slug:"default"},u=(0,S.cloneDeep)(N.current);u.taxonomies.siteType=l,jr(u,a).then((function(t){var n,r,o,a;e.current&&(null!=t&&null!==(n=t.error)&&void 0!==n&&n.length?c(null==t?void 0:t.error):(null==t||null===(r=t.records)||void 0===r?void 0:r.length)<=0?h(!0):j===N.current&&null!=t&&null!==(o=t.records)&&void 0!==o&&o.length&&(ae.setState({nextPage:null!==(a=null==t?void 0:t.offset)&&void 0!==a?a:""}),s(t.records),i((function(e){return t.records.length+e})),y(!1)))})).catch((function(t){e.current&&(console.error(t),c(o))}))}),[s,e,j]);return(0,o.useEffect)((function(){0!==(null==t?void 0:t.length)||y(!0)}),[null==t?void 0:t.length,j]),(0,o.useEffect)((function(){!f.current&&u.length&&(f.current=!0,M())}),[u,M]),(0,o.useEffect)((function(){var e;if(C&&null!=O&&null!==(e=O.patternType)&&void 0!==e&&e.length){var t=new URLSearchParams(window.location.search);if(t.has("ext-patternType")){var n=t.get("ext-patternType");t.delete("ext-patternType"),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString());var r=O.patternType.find((function(e){return e.slug===n}));r&&(P({patternType:r}),A("pattern"))}}}),[C,O,A,P]),(0,o.useEffect)((function(){var e,t;if(null!==(e=Object.keys(null===(t=N.current)||void 0===t?void 0:t.taxonomies))&&void 0!==e&&e.length){if(!ae.getState().skipNextFetch)return M(),function(){return _()};ae.setState({skipNextFetch:!1})}}),[M,N,_]),(0,o.useEffect)((function(){T.current&&w&&M()}),[w,M,r]),u.length&&f.current?(0,Ht.jsxs)("div",{className:"text-left",children:[(0,Ht.jsx)("h2",{className:"text-left",children:(0,Mt.__)("Server error","extendify")}),(0,Ht.jsx)("code",{className:"mb-4 block max-w-xl p-4",style:{minHeight:"10rem"},children:u}),(0,Ht.jsx)(Lt.Button,{isTertiary:!0,onClick:function(){f.current=!1,M()},children:(0,Mt.__)("Press here to reload")})]}):p?(0,Ht.jsx)("div",{className:"-mt-2 flex h-full w-full items-center justify-center sm:mt-0",children:(0,Ht.jsx)("h2",{className:"text-sm font-normal text-extendify-gray",children:(0,Mt.sprintf)("template"===N.current.type?(0,Mt.__)('We couldn\'t find any layouts in the "%s" category.',"extendify"):(0,Mt.__)('We couldn\'t find any patterns in the "%s" category.',"extendify"),null!==(L=null==I?void 0:I.title)&&void 0!==L?L:I.slug)})}):(0,Ht.jsxs)(Ht.Fragment,{children:[x&&(0,Ht.jsx)("div",{className:"-mt-2 flex h-full w-full items-center justify-center sm:mt-0",children:(0,Ht.jsx)(Lt.Spinner,{})}),(0,Ht.jsx)(si,{type:E,templates:t,children:t.map((function(e){return(0,Ht.jsx)(ti,{maxHeight:"template"===E?520:"none",template:e},e.id)}))}),T.current&&(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)("div",{className:"mt-8",children:(0,Ht.jsx)(Lt.Spinner,{})}),(0,Ht.jsx)("div",{className:"relative flex flex-col items-end justify-end -top-1/4 h-4",ref:b,style:{zIndex:-1}})]})]})})),si=function(e){var t=e.type,n=e.children,r="relative min-h-screen z-10 pb-40 pt-0.5";if("template"===t)return(0,Ht.jsx)("div",{className:"grid gap-6 md:gap-8 lg:grid-cols-2 ".concat(r),children:n});return(0,Ht.jsx)(vr,{breakpointCols:{default:3,1600:2,860:1,599:2,400:1},className:"-ml-6 flex w-auto px-0.5 md:-ml-8 ".concat(r),columnClassName:"pl-6 md:pl-8 bg-clip-padding space-y-6 md:space-y-8",children:n})};function ai(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function li(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){ai(i,r,o,s,a,"next",e)}function a(e){ai(i,r,o,s,a,"throw",e)}s(void 0)}))}}var ui=(0,o.memo)((function(){var e=H((function(e){return e.remainingImports})),t=H((function(e){return e.allowedImports})),n=e(),r=n>0?"has-imports":"no-imports",i=(0,o.useRef)();return(0,o.useEffect)((function(){if(t<1||!t){N().then((function(e){e=/^[1-9]\d*$/.test(e)?e:5,H.setState({allowedImports:e})})).catch((function(){return H.setState({allowedImports:5})}))}}),[t]),t?(0,Ht.jsxs)("div",{tabIndex:"0",className:"group relative mb-5",children:[(0,Ht.jsxs)("a",{target:"_blank",ref:i,rel:"noreferrer",className:Ft()("button-focus hidden w-full justify-between rounded py-3 px-4 text-sm text-white no-underline sm:flex",{"bg-wp-theme-500 hover:bg-wp-theme-600":n>0,"bg-extendify-alert":!n}),onClick:li(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("import-counter-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),href:"https://www.extendify.com/pricing/?utm_source=".concat(encodeURIComponent(window.extendifyData.sdk_partner),"&utm_medium=library&utm_campaign=import-counter&utm_content=get-more&utm_term=").concat(r,"&utm_group=").concat(H.getState().activeTestGroupsUtmValue()),children:[(0,Ht.jsxs)("span",{className:"flex items-center space-x-2 text-xs no-underline",children:[(0,Ht.jsx)(Dt,{icon:n>0?xn:fn,size:14}),(0,Ht.jsx)("span",{children:(0,Mt.sprintf)((0,Mt._n)("%s Import","%s Imports",n,"extendify"),n)})]}),(0,Ht.jsxs)("span",{className:"outline-none flex items-center text-sm font-medium text-white no-underline",children:[(0,Mt.__)("Get more","extendify"),(0,Ht.jsx)(Dt,{icon:gn,size:24,className:"-mr-1.5"})]})]}),(0,Ht.jsx)("div",{className:"extendify-bottom-arrow invisible absolute top-0 w-full -translate-y-full transform opacity-0 shadow-md transition-all delay-200 duration-300 ease-in-out group-hover:visible group-hover:-top-2.5 group-hover:opacity-100 group-focus:visible group-focus:-top-2.5 group-focus:opacity-100",tabIndex:"-1",children:(0,Ht.jsx)("a",{href:"https://www.extendify.com/pricing/?utm_source=".concat(encodeURIComponent(window.extendifyData.sdk_partner),"&utm_medium=library&utm_campaign=import-counter-tooltip&utm_content=get-50-off&utm_term=").concat(r,"&utm_group=").concat(H.getState().activeTestGroupsUtmValue()),className:"block bg-gray-900 text-white p-4 no-underline rounded bg-cover",onClick:li(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("import-counter-tooltip-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),style:{backgroundImage:"url(".concat(window.extendifyData.asset_path,"/logo-tips.png)"),backgroundSize:"100% 100%"},children:(0,Ht.jsx)("span",{dangerouslySetInnerHTML:{__html:cn((0,Mt.sprintf)((0,Mt.__)("%1$sGet %2$s off%3$s Extendify Pro when you upgrade today!","extendify"),"<strong>","50%","</strong>"))}})})})]}):null}));function ci(e){return Array.isArray?Array.isArray(e):"[object Array]"===yi(e)}function fi(e){return"string"==typeof e}function di(e){return"number"==typeof e}function pi(e){return!0===e||!1===e||function(e){return hi(e)&&null!==e}(e)&&"[object Boolean]"==yi(e)}function hi(e){return"object"==typeof e}function mi(e){return null!=e}function xi(e){return!e.trim().length}function yi(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const vi=Object.prototype.hasOwnProperty;class gi{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=bi(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function bi(e){let t=null,n=null,r=null,o=1,i=null;if(fi(e)||ci(e))r=e,t=wi(e),n=ji(e);else{if(!vi.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const s=e.name;if(r=s,vi.call(e,"weight")&&(o=e.weight,o<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(s));t=wi(s),n=ji(s),i=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:i}}function wi(e){return ci(e)?e:e.split(".")}function ji(e){return ci(e)?e.join("."):e}const ki={useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const o=(e,t,i)=>{if(mi(e))if(t[i]){const s=e[t[i]];if(!mi(s))return;if(i===t.length-1&&(fi(s)||di(s)||pi(s)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(s));else if(ci(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)o(s[e],t,i+1)}else t.length&&o(s,t,i+1)}else n.push(e)};return o(e,fi(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Ei={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...ki};const _i=/[^ ]+/g;class Si{constructor({getFn:e=Ei.getFn,fieldNormWeight:t=Ei.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const o=t.match(_i).length;if(n.has(o))return n.get(o);const i=1/Math.pow(o,.5*e),s=parseFloat(Math.round(i*r)/r);return n.set(o,s),s},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,fi(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();fi(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!mi(e)||xi(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach(((t,r)=>{let o=t.getFn?t.getFn(e):this.getFn(e,t.path);if(mi(o))if(ci(o)){let e=[];const t=[{nestedArrIndex:-1,value:o}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(mi(r))if(fi(r)&&!xi(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else ci(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(fi(o)&&!xi(o)){let e={v:o,n:this.norm.get(o)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function Ci(e,t,{getFn:n=Ei.getFn,fieldNormWeight:r=Ei.fieldNormWeight}={}){const o=new Si({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(bi)),o.setSources(t),o.create(),o}function Oi(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=Ei.distance,ignoreLocation:i=Ei.ignoreLocation}={}){const s=t/e.length;if(i)return s;const a=Math.abs(r-n);return o?s+a/o:a?1:s}const Ai=32;function Pi(e,t,n,{location:r=Ei.location,distance:o=Ei.distance,threshold:i=Ei.threshold,findAllMatches:s=Ei.findAllMatches,minMatchCharLength:a=Ei.minMatchCharLength,includeMatches:l=Ei.includeMatches,ignoreLocation:u=Ei.ignoreLocation}={}){if(t.length>Ai)throw new Error(`Pattern length exceeds max of ${Ai}.`);const c=t.length,f=e.length,d=Math.max(0,Math.min(r,f));let p=i,h=d;const m=a>1||l,x=m?Array(f):[];let y;for(;(y=e.indexOf(t,h))>-1;){let e=Oi(t,{currentLocation:y,expectedLocation:d,distance:o,ignoreLocation:u});if(p=Math.min(e,p),h=y+c,m){let e=0;for(;e<c;)x[y+e]=1,e+=1}}h=-1;let v=[],g=1,b=c+f;const w=1<<c-1;for(let r=0;r<c;r+=1){let i=0,a=b;for(;i<a;){Oi(t,{errors:r,currentLocation:d+a,expectedLocation:d,distance:o,ignoreLocation:u})<=p?i=a:b=a,a=Math.floor((b-i)/2+i)}b=a;let l=Math.max(1,d-a+1),y=s?f:Math.min(d+a,f)+c,j=Array(y+2);j[y+1]=(1<<r)-1;for(let i=y;i>=l;i-=1){let s=i-1,a=n[e.charAt(s)];if(m&&(x[s]=+!!a),j[i]=(j[i+1]<<1|1)&a,r&&(j[i]|=(v[i+1]|v[i])<<1|1|v[i+1]),j[i]&w&&(g=Oi(t,{errors:r,currentLocation:s,expectedLocation:d,distance:o,ignoreLocation:u}),g<=p)){if(p=g,h=s,h<=d)break;l=Math.max(1,2*d-h)}}if(Oi(t,{errors:r+1,currentLocation:d,expectedLocation:d,distance:o,ignoreLocation:u})>p)break;v=j}const j={isMatch:h>=0,score:Math.max(.001,g)};if(m){const e=function(e=[],t=Ei.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let s=e.length;i<s;i+=1){let s=e[i];s&&-1===r?r=i:s||-1===r||(o=i-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}(x,a);e.length?l&&(j.indices=e):j.isMatch=!1}return j}function Ti(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}class Ni{constructor(e,{location:t=Ei.location,threshold:n=Ei.threshold,distance:r=Ei.distance,includeMatches:o=Ei.includeMatches,findAllMatches:i=Ei.findAllMatches,minMatchCharLength:s=Ei.minMatchCharLength,isCaseSensitive:a=Ei.isCaseSensitive,ignoreLocation:l=Ei.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:s,isCaseSensitive:a,ignoreLocation:l},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const u=(e,t)=>{this.chunks.push({pattern:e,alphabet:Ti(e),startIndex:t})},c=this.pattern.length;if(c>Ai){let e=0;const t=c%Ai,n=c-t;for(;e<n;)u(this.pattern.substr(e,Ai),e),e+=Ai;if(t){const e=c-Ai;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:r,distance:o,threshold:i,findAllMatches:s,minMatchCharLength:a,ignoreLocation:l}=this.options;let u=[],c=0,f=!1;this.chunks.forEach((({pattern:t,alphabet:d,startIndex:p})=>{const{isMatch:h,score:m,indices:x}=Pi(e,t,d,{location:r+p,distance:o,threshold:i,findAllMatches:s,minMatchCharLength:a,includeMatches:n,ignoreLocation:l});h&&(f=!0),c+=m,h&&x&&(u=[...u,...x])}));let d={isMatch:f,score:f?c/this.chunks.length:1};return f&&n&&(d.indices=u),d}}class Ri{constructor(e){this.pattern=e}static isMultiMatch(e){return Ii(e,this.multiRegex)}static isSingleMatch(e){return Ii(e,this.singleRegex)}search(){}}function Ii(e,t){const n=e.match(t);return n?n[1]:null}class Li extends Ri{constructor(e,{location:t=Ei.location,threshold:n=Ei.threshold,distance:r=Ei.distance,includeMatches:o=Ei.includeMatches,findAllMatches:i=Ei.findAllMatches,minMatchCharLength:s=Ei.minMatchCharLength,isCaseSensitive:a=Ei.isCaseSensitive,ignoreLocation:l=Ei.ignoreLocation}={}){super(e),this._bitapSearch=new Ni(e,{location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:s,isCaseSensitive:a,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Mi extends Ri{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],o=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+o,r.push([t,n-1]);const i=!!r.length;return{isMatch:i,score:i?0:1,indices:r}}}const Di=[class extends Ri{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Mi,class extends Ri{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends Ri{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Ri{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Ri{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends Ri{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Li],Bi=Di.length,Fi=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const Ui=new Set([Li.type,Mi.type]);class zi{constructor(e,{isCaseSensitive:t=Ei.isCaseSensitive,includeMatches:n=Ei.includeMatches,minMatchCharLength:r=Ei.minMatchCharLength,ignoreLocation:o=Ei.ignoreLocation,findAllMatches:i=Ei.findAllMatches,location:s=Ei.location,threshold:a=Ei.threshold,distance:l=Ei.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:i,ignoreLocation:o,location:s,threshold:a,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(Fi).filter((e=>e&&!!e.trim())),r=[];for(let e=0,o=n.length;e<o;e+=1){const o=n[e];let i=!1,s=-1;for(;!i&&++s<Bi;){const e=Di[s];let n=e.isMultiMatch(o);n&&(r.push(new e(n,t)),i=!0)}if(!i)for(s=-1;++s<Bi;){const e=Di[s];let n=e.isSingleMatch(o);if(n){r.push(new e(n,t));break}}}return r}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let o=0,i=[],s=0;for(let r=0,a=t.length;r<a;r+=1){const a=t[r];i.length=0,o=0;for(let t=0,r=a.length;t<r;t+=1){const r=a[t],{isMatch:l,indices:u,score:c}=r.search(e);if(!l){s=0,o=0,i.length=0;break}if(o+=1,s+=c,n){const e=r.constructor.type;Ui.has(e)?i=[...i,...u]:i.push(u)}}if(o){let e={isMatch:!0,score:s/o};return n&&(e.indices=i),e}}return{isMatch:!1,score:1}}}const $i=[];function Vi(e,t){for(let n=0,r=$i.length;n<r;n+=1){let r=$i[n];if(r.condition(e,t))return new r(e,t)}return new Ni(e,t)}const Wi="$and",qi="$or",Hi="$path",Yi="$val",Gi=e=>!(!e[Wi]&&!e[qi]),Ji=e=>({[Wi]:Object.keys(e).map((t=>({[t]:e[t]})))});function Ki(e,t,{auto:n=!0}={}){const r=e=>{let o=Object.keys(e);const i=(e=>!!e[Hi])(e);if(!i&&o.length>1&&!Gi(e))return r(Ji(e));if((e=>!ci(e)&&hi(e)&&!Gi(e))(e)){const r=i?e[Hi]:o[0],s=i?e[Yi]:e[r];if(!fi(s))throw new Error((e=>`Invalid value for key ${e}`)(r));const a={keyId:ji(r),pattern:s};return n&&(a.searcher=Vi(s,t)),a}let s={children:[],operator:o[0]};return o.forEach((t=>{const n=e[t];ci(n)&&n.forEach((e=>{s.children.push(r(e))}))})),s};return Gi(e)||(e=Ji(e)),r(e)}function Xi(e,t){const n=e.matches;t.matches=[],mi(n)&&n.forEach((e=>{if(!mi(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let o={indices:n,value:r};e.key&&(o.key=e.key.src),e.idx>-1&&(o.refIndex=e.idx),t.matches.push(o)}))}function Zi(e,t){t.score=e.score}class Qi{constructor(e,t={},n){this.options={...Ei,...t},this.options.useExtendedSearch,this._keyStore=new gi(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Si))throw new Error("Incorrect 'index' type");this._myIndex=t||Ci(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){mi(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,r=this._docs.length;n<r;n+=1){const o=this._docs[n];e(o,n)&&(this.removeAt(n),n-=1,r-=1,t.push(o))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:o,sortFn:i,ignoreFieldNorm:s}=this.options;let a=fi(e)?fi(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=Ei.ignoreFieldNorm}){e.forEach((e=>{let n=1;e.matches.forEach((({key:e,norm:r,score:o})=>{const i=e?e.weight:null;n*=Math.pow(0===o&&i?Number.EPSILON:o,(i||1)*(t?1:r))})),e.score=n}))}(a,{ignoreFieldNorm:s}),o&&a.sort(i),di(t)&&t>-1&&(a=a.slice(0,t)),function(e,t,{includeMatches:n=Ei.includeMatches,includeScore:r=Ei.includeScore}={}){const o=[];return n&&o.push(Xi),r&&o.push(Zi),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return o.length&&o.forEach((t=>{t(e,r)})),r}))}(a,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=Vi(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:o})=>{if(!mi(e))return;const{isMatch:i,score:s,indices:a}=t.searchIn(e);i&&r.push({item:e,idx:n,matches:[{score:s,value:e,norm:o,indices:a}]})})),r}_searchLogical(e){const t=Ki(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:o}=e,i=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:o});return i&&i.length?[{idx:r,item:t,matches:i}]:[]}const o=[];for(let i=0,s=e.children.length;i<s;i+=1){const s=e.children[i],a=n(s,t,r);if(a.length)o.push(...a);else if(e.operator===Wi)return[]}return o},r=this._myIndex.records,o={},i=[];return r.forEach((({$:e,i:r})=>{if(mi(e)){let s=n(t,e,r);s.length&&(o[r]||(o[r]={idx:r,item:e,matches:[]},i.push(o[r])),s.forEach((({matches:e})=>{o[r].matches.push(...e)})))}})),i}_searchObjectList(e){const t=Vi(e,this.options),{keys:n,records:r}=this._myIndex,o=[];return r.forEach((({$:e,i:r})=>{if(!mi(e))return;let i=[];n.forEach(((n,r)=>{i.push(...this._findMatches({key:n,value:e[r],searcher:t}))})),i.length&&o.push({idx:r,item:e,matches:i})})),o}_findMatches({key:e,value:t,searcher:n}){if(!mi(t))return[];let r=[];if(ci(t))t.forEach((({v:t,i:o,n:i})=>{if(!mi(t))return;const{isMatch:s,score:a,indices:l}=n.searchIn(t);s&&r.push({score:a,key:e,value:t,idx:o,norm:i,indices:l})}));else{const{v:o,n:i}=t,{isMatch:s,score:a,indices:l}=n.searchIn(o);s&&r.push({score:a,key:e,value:o,norm:i,indices:l})}return r}}function es(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)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ts(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 ts(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 ts(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Qi.version="6.6.2",Qi.createIndex=Ci,Qi.parseIndex=function(e,{getFn:t=Ei.getFn,fieldNormWeight:n=Ei.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new Si({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i},Qi.config=Ei,Qi.parseQuery=Ki,function(...e){$i.push(...e)}(zi);var ns=new Map,rs=function(e){var t,n,r=e.value,i=e.setValue,s=e.terms,a=ae((function(e){return e.searchParams})),l=es((0,o.useState)(!1),2),u=l[0],c=l[1],f=(0,o.useRef)(),d=es((0,o.useState)({}),2),p=d[0],h=d[1],m=es((0,o.useState)(""),2),x=m[0],y=m[1],v=es((0,o.useState)([]),2),g=v[0],b=v[1],w=es((0,o.useState)(!0),2),j=w[0],k=w[1],E=(0,o.useMemo)((function(){return s.sort((function(e,t){return e.slug<t.slug?-1:e.slug>t.slug?1:0}))}),[s]),_=(0,o.useMemo)((function(){return E.filter((function(e){return null==e?void 0:e.featured}))}),[E]),S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(ns.has(e))b(ns.get(e));else{var t=p.search(e);ns.set(e,null!=t&&t.length?t.map((function(e){return e.item})):_),b(ns.get(e))}};(0,o.useEffect)((function(){h(new Qi(s,{keys:["slug","title","keywords"],minMatchCharLength:1,threshold:.3}))}),[s]),(0,o.useEffect)((function(){null!=x&&x.length||b(j?_:E)}),[_,x,E,j]),(0,o.useEffect)((function(){u&&f.current.focus()}),[u]),(0,o.useEffect)((function(){r.slug||c(!0)}),[r.slug]);var C,O,A;return(0,Ht.jsxs)("div",{className:"w-full rounded bg-gray-50 border border-gray-900",children:[(0,Ht.jsx)("button",{type:"button",onClick:function(){return c((function(e){return!e}))},className:"button-focus m-0 flex w-full cursor-pointer items-center justify-between rounded bg-transparent p-4 text-gray-800",children:(O=u?(0,Mt.__)("Choose a site industry","extendify"):null!==(t=null!==(n=null==r?void 0:r.title)&&void 0!==n?n:r.slug)&&void 0!==t?t:"Not set",(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)("span",{className:"flex flex-col text-left",children:[(0,Ht.jsx)("span",{className:Ft()("mb-1",{"text-base font-normal":!r.slug,"text-sm font-normal":null===(A=r.slug)||void 0===A?void 0:A.length}),children:(0,Mt.__)("Site Type","extendify")}),(0,Ht.jsx)("span",{className:"text-xs font-light",children:O})]}),(0,Ht.jsxs)("span",{className:"flex items-center space-x-4",children:[!u&&!r.slug&&(0,Ht.jsxs)("svg",{className:"text-wp-alert-red","aria-hidden":"true",focusable:"false",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ht.jsx)("title",{children:(0,Mt.__)("Click to select a preferred site industry","extendify")}),(0,Ht.jsx)("path",{className:"stroke-current",d:"M10.9982 4.05371C7.66149 4.05371 4.95654 6.75866 4.95654 10.0954C4.95654 13.4321 7.66149 16.137 10.9982 16.137C14.3349 16.137 17.0399 13.4321 17.0399 10.0954C17.0399 6.75866 14.3349 4.05371 10.9982 4.05371V4.05371Z",strokeWidth:"1.25"}),(0,Ht.jsx)("path",{className:"fill-current",d:"M10.0205 12.8717C10.0205 12.3287 10.4508 11.8881 10.9938 11.8881C11.5368 11.8881 11.9774 12.3287 11.9774 12.8717C11.9774 13.4147 11.5368 13.8451 10.9938 13.8451C10.4508 13.8451 10.0205 13.4147 10.0205 12.8717Z"}),(0,Ht.jsx)("path",{className:"fill-current",d:"M11.6495 10.2591C11.6086 10.6177 11.3524 10.9148 10.9938 10.9148C10.625 10.9148 10.3791 10.6074 10.3483 10.2591L10.0205 7.31855C9.95901 6.81652 10.4918 6.34521 10.9938 6.34521C11.4959 6.34521 12.0286 6.81652 11.9774 7.31855L11.6495 10.2591Z"})]}),(0,Ht.jsx)("svg",{className:Ft()("stroke-current text-gray-900",{"-translate-x-1 rotate-90 transform":u}),"aria-hidden":"true",focusable:"false",width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Ht.jsx)("path",{d:"M1.24194 11.5952L6.24194 6.09519L1.24194 0.595215",strokeWidth:"1.5"})})]})]}))}),u&&(0,Ht.jsxs)("div",{className:"max-h-96 overflow-y-auto px-4 py-0",children:[(0,Ht.jsx)("div",{className:"sticky top-0 pt-0.5 pb-2 bg-gray-50",children:(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsx)("label",{htmlFor:"site-type-search",className:"sr-only",children:(0,Mt.__)("Search","extendify")}),(0,Ht.jsx)("input",{ref:f,id:"site-type-search",value:null!=x?x:"",onChange:function(e){return t=e.target.value,y(t),void S(t);var t},type:"text",className:"button-focus m-0 w-full bg-white p-3.5 py-2.5 text-sm border border-gray-900",placeholder:(0,Mt.__)("Search","extendify")}),(0,Ht.jsx)("svg",{className:"pointer-events-none absolute top-2 right-2 hidden lg:block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false",children:(0,Ht.jsx)("path",{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})})]})}),(null==x?void 0:x.length)>1&&g===_&&(0,Ht.jsx)("p",{className:"text-left",children:(0,Mt.__)("Nothing found...","extendify")}),(null==g?void 0:g.length)>0&&(0,Ht.jsx)("div",{children:(C=g,(0,Ht.jsx)(Ht.Fragment,{children:(0,Ht.jsx)("ul",{className:"mt-4 mb-0",children:C.map((function(e){var t,n,r,o=null!==(t=null==e?void 0:e.title)&&void 0!==t?t:e.slug,s=(null==a||null===(n=a.taxonomies)||void 0===n||null===(r=n.siteType)||void 0===r?void 0:r.slug)===e.slug;return(0,Ht.jsx)("li",{className:"m-0 mb-1",children:(0,Ht.jsx)("button",{type:"button",className:Ft()("m-0 w-full cursor-pointer bg-transparent pl-0 text-left text-sm font-normal hover:text-wp-theme-500",{"text-gray-800":!s}),onClick:function(){c(!1),i(e)},children:o})},e.slug+(null==e?void 0:e.title))}))})}))})]}),x||!u?null:(0,Ht.jsx)("button",{type:"button",className:"w-full cursor-pointer bg-transparent p-4 py-2 text-left text-sm text-wp-theme-500 hover:text-wp-theme-500",onClick:function(){return k((function(e){return!e}))},children:j?(0,Mt.__)("Show all","extendify"):(0,Mt.__)("Close","extendify")})]})};var os=function(e){var t,n=e.active,r=e.tax,o=e.update;return(0,Ht.jsx)("li",{className:"m-0 w-full",children:(0,Ht.jsx)("button",{type:"button",className:"group m-0 p-0 flex w-full cursor-pointer text-left text-sm leading-none my-px bg-transparent",onClick:o,children:(0,Ht.jsx)("span",{className:Ft()("w-full group-hover:bg-gray-900 p-2 group-hover:text-gray-50 rounded",{"bg-transparent text-gray-900":!n,"bg-gray-900 text-gray-50":n}),children:null!==(t=null==r?void 0:r.title)&&void 0!==t?t:r.slug})})},r.slug)},is=function(e){var t=e.taxType,n=e.taxonomies,r=e.taxLabel,o=ae((function(e){return e.searchParams})),i=ae((function(e){return e.updateTaxonomies}));return!(null!=n&&n.length)>0?null:(0,Ht.jsx)(Lt.PanelBody,{title:$r(null!=r?r:t),className:"ext-type-control p-0",initialOpen:!0,children:(0,Ht.jsx)(Lt.PanelRow,{children:(0,Ht.jsx)("div",{className:"relative w-full overflow-hidden",children:(0,Ht.jsx)("ul",{className:"m-0 w-full px-5 py-1",children:n.map((function(e){var n,r=(null==o||null===(n=o.taxonomies[t])||void 0===n?void 0:n.slug)===(null==e?void 0:e.slug);return(0,Ht.jsx)(os,{active:r,tax:e,update:function(){return i((o=e,(r=t)in(n={})?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));var n,r,o}},null==e?void 0:e.slug)}))})})})})},ss=function(e){var t=e.className,n=ae((function(e){return e.updateType})),r=k((function(e){var t;return null!==(t=null==e?void 0:e.currentType)&&void 0!==t?t:"pattern"}));return(0,Ht.jsxs)("div",{className:t,children:[(0,Ht.jsx)("h4",{className:"sr-only",children:(0,Mt.__)("Type select","extendify")}),(0,Ht.jsxs)("div",{className:"flex justify-evenly border border-gray-900 p-0.5 rounded",children:[(0,Ht.jsx)("button",{type:"button",className:Ft()({"w-full m-0 min-w-sm cursor-pointer rounded py-2.5 px-4 text-xs leading-none":!0,"bg-gray-900 text-white":"pattern"===r,"bg-transparent text-black":"pattern"!==r}),onClick:function(){return n("pattern")},children:(0,Ht.jsx)("span",{className:"",children:(0,Mt.__)("Patterns","extendify")})}),(0,Ht.jsx)("button",{type:"button",className:Ft()({"outline-none w-full m-0 -ml-px min-w-sm cursor-pointer items-center rounded-tr-sm rounded-br-sm py-2.5 px-4 text-xs leading-none":!0,"bg-gray-900 text-white":"template"===r,"bg-transparent text-black":"template"!==r}),onClick:function(){return n("template")},children:(0,Ht.jsx)("span",{className:"",children:(0,Mt.__)("Templates","extendify")})})]})]})};var as=(0,o.memo)((function(){var e,t,n,r,o,i,s,a=Z((function(e){return e.taxonomies})),l=ae((function(e){return e.searchParams})),u=H((function(e){return e.updatePreferredSiteType})),c=ae((function(e){return e.updateTaxonomies})),f=H((function(e){return e.apiKey})),d="pattern"===l.type?"patternType":"layoutType",p=!(null!=l&&null!==(e=l.taxonomies[d])&&void 0!==e&&null!==(t=e.slug)&&void 0!==t&&t.length),h=k((function(e){return e.setOpen}));return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)("div",{className:"-ml-1.5 hidden px-5 text-extendify-black sm:flex",children:(0,Ht.jsx)(Dt,{icon:pn,size:40})}),(0,Ht.jsx)("div",{className:"flex md:hidden items-center justify-end -mt-5 mx-1",children:(0,Ht.jsx)(Lt.Button,{onClick:function(){return h(!1)},icon:(0,Ht.jsx)(Dt,{icon:Sn,size:24}),label:(0,Mt.__)("Close library","extendify")})}),(0,Ht.jsx)("div",{className:"px-5 hidden md:block",children:(0,Ht.jsxs)("button",{onClick:function(){return c((n={slug:"",title:"Featured"},(t=d)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));var e,t,n},className:Ft()("m-0 flex w-full cursor-pointer items-center space-x-1 bg-transparent px-0 py-2 text-left text-sm leading-none transition duration-200 hover:text-wp-theme-500",{"text-wp-theme-500":p}),children:[(0,Ht.jsx)(Dt,{icon:vn,size:24}),(0,Ht.jsx)("span",{className:"text-sm",children:(0,Mt.__)("Featured","extendify")})]})}),(0,Ht.jsx)("div",{className:"mx-6 px-5 pt-0.5 sm:mx-0 sm:mb-8 sm:mt-0",children:Object.keys(null!==(n=null==a?void 0:a.siteType)&&void 0!==n?n:{}).length>0&&(0,Ht.jsx)(rs,{value:null!==(r=null==l||null===(o=l.taxonomies)||void 0===o?void 0:o.siteType)&&void 0!==r?r:"",setValue:function(e){u(e),c({siteType:e})},terms:a.siteType})}),(0,Ht.jsx)(ss,{className:"mx-6 px-5 pt-0.5 sm:mx-0 sm:mb-8 sm:mt-0"}),(0,Ht.jsxs)("div",{className:"mt-px hidden flex-grow overflow-y-auto overflow-x-hidden pb-36 pt-px sm:block space-y-6",children:[(0,Ht.jsx)(Lt.Panel,{className:"bg-transparent",children:(0,Ht.jsx)(is,{taxType:d,taxonomies:null===(i=a[d])||void 0===i?void 0:i.filter((function(e){return!(null!=e&&e.designType)}))})}),(0,Ht.jsx)(Lt.Panel,{className:"bg-transparent",children:(0,Ht.jsx)(is,{taxLabel:(0,Mt.__)("Design","extendify"),taxType:d,taxonomies:null===(s=a[d])||void 0===s?void 0:s.filter((function(e){return Boolean(null==e?void 0:e.designType)}))})})]}),!f.length&&(0,Ht.jsx)("div",{className:"px-5",children:(0,Ht.jsx)(ui,{})})]})}));function ls(e){var t=e.children,n=k((function(e){return e.ready}));return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)("aside",{className:"relative flex-shrink-0 border-r border-extendify-transparent-black-100 bg-extendify-transparent-white py-0 backdrop-blur-xl backdrop-saturate-200 backdrop-filter sm:pt-5",children:(0,Ht.jsx)("div",{className:"flex h-full flex-col py-6 sm:w-72 sm:space-y-6 sm:py-0",children:n?t[0]:null})}),(0,Ht.jsx)("main",{id:"extendify-templates",className:"h-full w-full overflow-hidden bg-gray-50 pt-6 sm:pt-0",children:n?t[1]:null})]})}var us=(0,o.memo)((function(e){var t=e.className,n=k((function(e){return e.setOpen})),r=k((function(e){return e.pushModal})),o=H((function(e){return e.apiKey.length}));return(0,Ht.jsx)("div",{className:t,children:(0,Ht.jsx)("div",{className:"flex h-full items-center justify-between",children:(0,Ht.jsxs)("div",{className:"flex flex-1 items-center justify-end lg:-mr-1",children:[(0,Ht.jsx)(Lt.Button,{onClick:function(){return r((0,Ht.jsx)(Vo,{}))},icon:(0,Ht.jsx)(Dt,{icon:_n,size:24}),label:(0,Mt.__)("Login and settings area","extendify"),children:o?"":(0,Mt.__)("Sign in","extendify")}),(0,Ht.jsx)(Lt.Button,{onClick:function(){return n(!1)},icon:(0,Ht.jsx)(Dt,{icon:Sn,size:24}),label:(0,Mt.__)("Close library","extendify")})]})})})})),cs=function(e){var t=e.setOpen,n=(0,o.useRef)(),r=ae((function(e){return e.searchParams}));return(0,o.useEffect)((function(){n.current&&(n.current.scrollTop=0)}),[r]),(0,Ht.jsx)("div",{className:"relative mx-auto flex h-full max-w-screen-4xl flex-col items-center",children:(0,Ht.jsxs)("div",{className:"w-full flex-grow overflow-hidden",children:[(0,Ht.jsx)("button",{onClick:function(){return document.getElementById("extendify-templates").querySelector("button").focus()},className:"extendify-skip-to-sr-link sr-only focus:not-sr-only focus:text-blue-500",children:(0,Mt.__)("Skip to templates","extendify")}),(0,Ht.jsx)("div",{className:"relative mx-auto h-full sm:flex",children:(0,Ht.jsxs)(ls,{children:[(0,Ht.jsx)(as,{}),(0,Ht.jsxs)("div",{className:"relative z-30 flex h-full flex-col",children:[(0,Ht.jsx)(us,{className:"hidden h-12 w-full flex-shrink-0 px-6 sm:block md:px-8",hideLibrary:function(){return t(!1)}}),(0,Ht.jsx)("div",{ref:n,className:"z-20 flex-grow overflow-y-auto px-6 md:px-8",children:(0,Ht.jsx)(ii,{})})]})]})})]})})};function fs(){var e=(0,o.useRef)(null),t=k((function(e){return e.open})),n=k((function(e){return e.setOpen})),r=function(){var e=Zn((0,o.useState)(null),2),t=e[0],n=e[1],r=k((function(e){return e.open})),i=k((function(e){return e.pushModal})),s=k((function(e){return e.removeAllModals}));return(0,o.useEffect)((function(){return k.subscribe((function(e){return e.modals}),(function(e){return n((null==e?void 0:e.length)>0?e[0]:null)}))}),[]),(0,o.useEffect)((function(){var e;if(r){var t={standalone:Xn},n=t[null!==(e=Object.keys(t).find((function(e){return"standalone"===e?!window.extendifyData.standalone&&!H.getState().modalNoticesDismissedAt[e]:!H.getState().modalNoticesDismissedAt[e]})))&&void 0!==e?e:null];n&&i((0,Ht.jsx)(n,{}))}else s()}),[r,i,s]),t}(),i=k((function(e){return e.ready}));return(0,Ht.jsxs)(It,{as:"div",className:"extendify",initialFocus:e,open:t,onClose:function(){return n(!1)},children:[(0,Ht.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity"}),(0,Ht.jsx)("div",{className:"fixed inset-0 z-high m-auto h-screen w-screen overflow-y-auto sm:h-auto sm:w-auto",children:(0,Ht.jsx)("div",{className:"flex min-h-screen items-end justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0",children:(0,Ht.jsxs)("div",{ref:e,tabIndex:"0",onClick:function(e){return e.target===e.currentTarget&&n(!1)},className:"fixed inset-0 transform p-2 transition-all lg:absolute lg:overflow-hidden lg:p-16",children:[(0,Ht.jsx)(cs,{}),i?(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(un,{}),r]}):null]})})})]})}const ds=wp.compose,ps=wp.hooks,hs=JSON.parse('{"t":["ext-absolute","ext-relative","ext-top-base","ext-top-lg","ext--top-base","ext--top-lg","ext-right-base","ext-right-lg","ext--right-base","ext--right-lg","ext-bottom-base","ext-bottom-lg","ext--bottom-base","ext--bottom-lg","ext-left-base","ext-left-lg","ext--left-base","ext--left-lg","ext-order-1","ext-order-2","ext-col-auto","ext-col-span-1","ext-col-span-2","ext-col-span-3","ext-col-span-4","ext-col-span-5","ext-col-span-6","ext-col-span-7","ext-col-span-8","ext-col-span-9","ext-col-span-10","ext-col-span-11","ext-col-span-12","ext-col-span-full","ext-col-start-1","ext-col-start-2","ext-col-start-3","ext-col-start-4","ext-col-start-5","ext-col-start-6","ext-col-start-7","ext-col-start-8","ext-col-start-9","ext-col-start-10","ext-col-start-11","ext-col-start-12","ext-col-start-13","ext-col-start-auto","ext-col-end-1","ext-col-end-2","ext-col-end-3","ext-col-end-4","ext-col-end-5","ext-col-end-6","ext-col-end-7","ext-col-end-8","ext-col-end-9","ext-col-end-10","ext-col-end-11","ext-col-end-12","ext-col-end-13","ext-col-end-auto","ext-row-auto","ext-row-span-1","ext-row-span-2","ext-row-span-3","ext-row-span-4","ext-row-span-5","ext-row-span-6","ext-row-span-full","ext-row-start-1","ext-row-start-2","ext-row-start-3","ext-row-start-4","ext-row-start-5","ext-row-start-6","ext-row-start-7","ext-row-start-auto","ext-row-end-1","ext-row-end-2","ext-row-end-3","ext-row-end-4","ext-row-end-5","ext-row-end-6","ext-row-end-7","ext-row-end-auto","ext-m-0","ext-m-auto","ext-m-base","ext-m-lg","ext--m-base","ext--m-lg","ext-mx-0","ext-mx-auto","ext-mx-base","ext-mx-lg","ext--mx-base","ext--mx-lg","ext-my-0","ext-my-auto","ext-my-base","ext-my-lg","ext--my-base","ext--my-lg","ext-mt-0","ext-mt-auto","ext-mt-base","ext-mt-lg","ext--mt-base","ext--mt-lg","ext-mr-0","ext-mr-auto","ext-mr-base","ext-mr-lg","ext--mr-base","ext--mr-lg","ext-mb-0","ext-mb-auto","ext-mb-base","ext-mb-lg","ext--mb-base","ext--mb-lg","ext-ml-0","ext-ml-auto","ext-ml-base","ext-ml-lg","ext--ml-base","ext--ml-lg","ext-block","ext-inline-block","ext-inline","ext-flex","ext-inline-flex","ext-grid","ext-inline-grid","ext-hidden","ext-w-auto","ext-w-full","ext-max-w-full","ext-flex-1","ext-flex-auto","ext-flex-initial","ext-flex-none","ext-flex-shrink-0","ext-flex-shrink","ext-flex-grow-0","ext-flex-grow","ext-list-none","ext-grid-cols-1","ext-grid-cols-2","ext-grid-cols-3","ext-grid-cols-4","ext-grid-cols-5","ext-grid-cols-6","ext-grid-cols-7","ext-grid-cols-8","ext-grid-cols-9","ext-grid-cols-10","ext-grid-cols-11","ext-grid-cols-12","ext-grid-cols-none","ext-grid-rows-1","ext-grid-rows-2","ext-grid-rows-3","ext-grid-rows-4","ext-grid-rows-5","ext-grid-rows-6","ext-grid-rows-none","ext-flex-row","ext-flex-row-reverse","ext-flex-col","ext-flex-col-reverse","ext-flex-wrap","ext-flex-wrap-reverse","ext-flex-nowrap","ext-items-start","ext-items-end","ext-items-center","ext-items-baseline","ext-items-stretch","ext-justify-start","ext-justify-end","ext-justify-center","ext-justify-between","ext-justify-around","ext-justify-evenly","ext-justify-items-start","ext-justify-items-end","ext-justify-items-center","ext-justify-items-stretch","ext-gap-0","ext-gap-base","ext-gap-lg","ext-gap-x-0","ext-gap-x-base","ext-gap-x-lg","ext-gap-y-0","ext-gap-y-base","ext-gap-y-lg","ext-justify-self-auto","ext-justify-self-start","ext-justify-self-end","ext-justify-self-center","ext-justify-self-stretch","ext-rounded-none","ext-rounded-full","ext-rounded-t-none","ext-rounded-t-full","ext-rounded-r-none","ext-rounded-r-full","ext-rounded-b-none","ext-rounded-b-full","ext-rounded-l-none","ext-rounded-l-full","ext-rounded-tl-none","ext-rounded-tl-full","ext-rounded-tr-none","ext-rounded-tr-full","ext-rounded-br-none","ext-rounded-br-full","ext-rounded-bl-none","ext-rounded-bl-full","ext-border-0","ext-border-t-0","ext-border-r-0","ext-border-b-0","ext-border-l-0","ext-p-0","ext-p-base","ext-p-lg","ext-px-0","ext-px-base","ext-px-lg","ext-py-0","ext-py-base","ext-py-lg","ext-pt-0","ext-pt-base","ext-pt-lg","ext-pr-0","ext-pr-base","ext-pr-lg","ext-pb-0","ext-pb-base","ext-pb-lg","ext-pl-0","ext-pl-base","ext-pl-lg","ext-text-left","ext-text-center","ext-text-right","ext-leading-none","ext-leading-tight","ext-leading-snug","ext-leading-normal","ext-leading-relaxed","ext-leading-loose","clip-path--rhombus","clip-path--diamond","clip-path--rhombus-alt","wp-block-columns[class*=\\"fullwidth-cols\\"]\\n","tablet\\\\:fullwidth-cols","desktop\\\\:fullwidth-cols","direction-rtl","direction-ltr","bring-to-front","text-stroke","text-stroke--primary","text-stroke--secondary","editor\\\\:no-caption","editor\\\\:no-inserter","editor\\\\:no-resize","editor\\\\:pointer-events-none","tablet\\\\:ext-absolute","tablet\\\\:ext-relative","tablet\\\\:ext-top-base","tablet\\\\:ext-top-lg","tablet\\\\:ext--top-base","tablet\\\\:ext--top-lg","tablet\\\\:ext-right-base","tablet\\\\:ext-right-lg","tablet\\\\:ext--right-base","tablet\\\\:ext--right-lg","tablet\\\\:ext-bottom-base","tablet\\\\:ext-bottom-lg","tablet\\\\:ext--bottom-base","tablet\\\\:ext--bottom-lg","tablet\\\\:ext-left-base","tablet\\\\:ext-left-lg","tablet\\\\:ext--left-base","tablet\\\\:ext--left-lg","tablet\\\\:ext-order-1","tablet\\\\:ext-order-2","tablet\\\\:ext-m-0","tablet\\\\:ext-m-auto","tablet\\\\:ext-m-base","tablet\\\\:ext-m-lg","tablet\\\\:ext--m-base","tablet\\\\:ext--m-lg","tablet\\\\:ext-mx-0","tablet\\\\:ext-mx-auto","tablet\\\\:ext-mx-base","tablet\\\\:ext-mx-lg","tablet\\\\:ext--mx-base","tablet\\\\:ext--mx-lg","tablet\\\\:ext-my-0","tablet\\\\:ext-my-auto","tablet\\\\:ext-my-base","tablet\\\\:ext-my-lg","tablet\\\\:ext--my-base","tablet\\\\:ext--my-lg","tablet\\\\:ext-mt-0","tablet\\\\:ext-mt-auto","tablet\\\\:ext-mt-base","tablet\\\\:ext-mt-lg","tablet\\\\:ext--mt-base","tablet\\\\:ext--mt-lg","tablet\\\\:ext-mr-0","tablet\\\\:ext-mr-auto","tablet\\\\:ext-mr-base","tablet\\\\:ext-mr-lg","tablet\\\\:ext--mr-base","tablet\\\\:ext--mr-lg","tablet\\\\:ext-mb-0","tablet\\\\:ext-mb-auto","tablet\\\\:ext-mb-base","tablet\\\\:ext-mb-lg","tablet\\\\:ext--mb-base","tablet\\\\:ext--mb-lg","tablet\\\\:ext-ml-0","tablet\\\\:ext-ml-auto","tablet\\\\:ext-ml-base","tablet\\\\:ext-ml-lg","tablet\\\\:ext--ml-base","tablet\\\\:ext--ml-lg","tablet\\\\:ext-block","tablet\\\\:ext-inline-block","tablet\\\\:ext-inline","tablet\\\\:ext-flex","tablet\\\\:ext-inline-flex","tablet\\\\:ext-grid","tablet\\\\:ext-inline-grid","tablet\\\\:ext-hidden","tablet\\\\:ext-w-auto","tablet\\\\:ext-w-full","tablet\\\\:ext-max-w-full","tablet\\\\:ext-flex-1","tablet\\\\:ext-flex-auto","tablet\\\\:ext-flex-initial","tablet\\\\:ext-flex-none","tablet\\\\:ext-flex-shrink-0","tablet\\\\:ext-flex-shrink","tablet\\\\:ext-flex-grow-0","tablet\\\\:ext-flex-grow","tablet\\\\:ext-list-none","tablet\\\\:ext-grid-cols-1","tablet\\\\:ext-grid-cols-2","tablet\\\\:ext-grid-cols-3","tablet\\\\:ext-grid-cols-4","tablet\\\\:ext-grid-cols-5","tablet\\\\:ext-grid-cols-6","tablet\\\\:ext-grid-cols-7","tablet\\\\:ext-grid-cols-8","tablet\\\\:ext-grid-cols-9","tablet\\\\:ext-grid-cols-10","tablet\\\\:ext-grid-cols-11","tablet\\\\:ext-grid-cols-12","tablet\\\\:ext-grid-cols-none","tablet\\\\:ext-flex-row","tablet\\\\:ext-flex-row-reverse","tablet\\\\:ext-flex-col","tablet\\\\:ext-flex-col-reverse","tablet\\\\:ext-flex-wrap","tablet\\\\:ext-flex-wrap-reverse","tablet\\\\:ext-flex-nowrap","tablet\\\\:ext-items-start","tablet\\\\:ext-items-end","tablet\\\\:ext-items-center","tablet\\\\:ext-items-baseline","tablet\\\\:ext-items-stretch","tablet\\\\:ext-justify-start","tablet\\\\:ext-justify-end","tablet\\\\:ext-justify-center","tablet\\\\:ext-justify-between","tablet\\\\:ext-justify-around","tablet\\\\:ext-justify-evenly","tablet\\\\:ext-justify-items-start","tablet\\\\:ext-justify-items-end","tablet\\\\:ext-justify-items-center","tablet\\\\:ext-justify-items-stretch","tablet\\\\:ext-justify-self-auto","tablet\\\\:ext-justify-self-start","tablet\\\\:ext-justify-self-end","tablet\\\\:ext-justify-self-center","tablet\\\\:ext-justify-self-stretch","tablet\\\\:ext-p-0","tablet\\\\:ext-p-base","tablet\\\\:ext-p-lg","tablet\\\\:ext-px-0","tablet\\\\:ext-px-base","tablet\\\\:ext-px-lg","tablet\\\\:ext-py-0","tablet\\\\:ext-py-base","tablet\\\\:ext-py-lg","tablet\\\\:ext-pt-0","tablet\\\\:ext-pt-base","tablet\\\\:ext-pt-lg","tablet\\\\:ext-pr-0","tablet\\\\:ext-pr-base","tablet\\\\:ext-pr-lg","tablet\\\\:ext-pb-0","tablet\\\\:ext-pb-base","tablet\\\\:ext-pb-lg","tablet\\\\:ext-pl-0","tablet\\\\:ext-pl-base","tablet\\\\:ext-pl-lg","tablet\\\\:ext-text-left","tablet\\\\:ext-text-center","tablet\\\\:ext-text-right","desktop\\\\:ext-absolute","desktop\\\\:ext-relative","desktop\\\\:ext-top-base","desktop\\\\:ext-top-lg","desktop\\\\:ext--top-base","desktop\\\\:ext--top-lg","desktop\\\\:ext-right-base","desktop\\\\:ext-right-lg","desktop\\\\:ext--right-base","desktop\\\\:ext--right-lg","desktop\\\\:ext-bottom-base","desktop\\\\:ext-bottom-lg","desktop\\\\:ext--bottom-base","desktop\\\\:ext--bottom-lg","desktop\\\\:ext-left-base","desktop\\\\:ext-left-lg","desktop\\\\:ext--left-base","desktop\\\\:ext--left-lg","desktop\\\\:ext-order-1","desktop\\\\:ext-order-2","desktop\\\\:ext-m-0","desktop\\\\:ext-m-auto","desktop\\\\:ext-m-base","desktop\\\\:ext-m-lg","desktop\\\\:ext--m-base","desktop\\\\:ext--m-lg","desktop\\\\:ext-mx-0","desktop\\\\:ext-mx-auto","desktop\\\\:ext-mx-base","desktop\\\\:ext-mx-lg","desktop\\\\:ext--mx-base","desktop\\\\:ext--mx-lg","desktop\\\\:ext-my-0","desktop\\\\:ext-my-auto","desktop\\\\:ext-my-base","desktop\\\\:ext-my-lg","desktop\\\\:ext--my-base","desktop\\\\:ext--my-lg","desktop\\\\:ext-mt-0","desktop\\\\:ext-mt-auto","desktop\\\\:ext-mt-base","desktop\\\\:ext-mt-lg","desktop\\\\:ext--mt-base","desktop\\\\:ext--mt-lg","desktop\\\\:ext-mr-0","desktop\\\\:ext-mr-auto","desktop\\\\:ext-mr-base","desktop\\\\:ext-mr-lg","desktop\\\\:ext--mr-base","desktop\\\\:ext--mr-lg","desktop\\\\:ext-mb-0","desktop\\\\:ext-mb-auto","desktop\\\\:ext-mb-base","desktop\\\\:ext-mb-lg","desktop\\\\:ext--mb-base","desktop\\\\:ext--mb-lg","desktop\\\\:ext-ml-0","desktop\\\\:ext-ml-auto","desktop\\\\:ext-ml-base","desktop\\\\:ext-ml-lg","desktop\\\\:ext--ml-base","desktop\\\\:ext--ml-lg","desktop\\\\:ext-block","desktop\\\\:ext-inline-block","desktop\\\\:ext-inline","desktop\\\\:ext-flex","desktop\\\\:ext-inline-flex","desktop\\\\:ext-grid","desktop\\\\:ext-inline-grid","desktop\\\\:ext-hidden","desktop\\\\:ext-w-auto","desktop\\\\:ext-w-full","desktop\\\\:ext-max-w-full","desktop\\\\:ext-flex-1","desktop\\\\:ext-flex-auto","desktop\\\\:ext-flex-initial","desktop\\\\:ext-flex-none","desktop\\\\:ext-flex-shrink-0","desktop\\\\:ext-flex-shrink","desktop\\\\:ext-flex-grow-0","desktop\\\\:ext-flex-grow","desktop\\\\:ext-list-none","desktop\\\\:ext-grid-cols-1","desktop\\\\:ext-grid-cols-2","desktop\\\\:ext-grid-cols-3","desktop\\\\:ext-grid-cols-4","desktop\\\\:ext-grid-cols-5","desktop\\\\:ext-grid-cols-6","desktop\\\\:ext-grid-cols-7","desktop\\\\:ext-grid-cols-8","desktop\\\\:ext-grid-cols-9","desktop\\\\:ext-grid-cols-10","desktop\\\\:ext-grid-cols-11","desktop\\\\:ext-grid-cols-12","desktop\\\\:ext-grid-cols-none","desktop\\\\:ext-flex-row","desktop\\\\:ext-flex-row-reverse","desktop\\\\:ext-flex-col","desktop\\\\:ext-flex-col-reverse","desktop\\\\:ext-flex-wrap","desktop\\\\:ext-flex-wrap-reverse","desktop\\\\:ext-flex-nowrap","desktop\\\\:ext-items-start","desktop\\\\:ext-items-end","desktop\\\\:ext-items-center","desktop\\\\:ext-items-baseline","desktop\\\\:ext-items-stretch","desktop\\\\:ext-justify-start","desktop\\\\:ext-justify-end","desktop\\\\:ext-justify-center","desktop\\\\:ext-justify-between","desktop\\\\:ext-justify-around","desktop\\\\:ext-justify-evenly","desktop\\\\:ext-justify-items-start","desktop\\\\:ext-justify-items-end","desktop\\\\:ext-justify-items-center","desktop\\\\:ext-justify-items-stretch","desktop\\\\:ext-justify-self-auto","desktop\\\\:ext-justify-self-start","desktop\\\\:ext-justify-self-end","desktop\\\\:ext-justify-self-center","desktop\\\\:ext-justify-self-stretch","desktop\\\\:ext-p-0","desktop\\\\:ext-p-base","desktop\\\\:ext-p-lg","desktop\\\\:ext-px-0","desktop\\\\:ext-px-base","desktop\\\\:ext-px-lg","desktop\\\\:ext-py-0","desktop\\\\:ext-py-base","desktop\\\\:ext-py-lg","desktop\\\\:ext-pt-0","desktop\\\\:ext-pt-base","desktop\\\\:ext-pt-lg","desktop\\\\:ext-pr-0","desktop\\\\:ext-pr-base","desktop\\\\:ext-pr-lg","desktop\\\\:ext-pb-0","desktop\\\\:ext-pb-base","desktop\\\\:ext-pb-lg","desktop\\\\:ext-pl-0","desktop\\\\:ext-pl-base","desktop\\\\:ext-pl-lg","desktop\\\\:ext-text-left","desktop\\\\:ext-text-center","desktop\\\\:ext-text-right"]}');function ms(e){return function(e){if(Array.isArray(e))return xs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return xs(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 xs(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ys(Object(n),!0).forEach((function(t){gs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bs=(0,ds.createHigherOrderComponent)((function(e){return function(t){var n,r,o=null!==(n=null==t||null===(r=t.attributes)||void 0===r?void 0:r.extUtilities)&&void 0!==n?n:[],i=hs.t.map((function(e){return e.replace(".","").replace(new RegExp("\\\\","g"),"")}));return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(e,vs({},t)),o&&(0,Ht.jsx)(Sr.InspectorAdvancedControls,{children:(0,Ht.jsx)(Lt.FormTokenField,{label:(0,Mt.__)("Extendify Utilities","extendify"),tokenizeOnSpace:!0,value:o,suggestions:i,onChange:function(e){t.setAttributes({extUtilities:e})}})})]})}}),"utilityClassEdit");function ws(e,t,n){var r,o,i,s=null!==(r=null==e?void 0:e.className)&&void 0!==r?r:[],a=null!==(o=null==n?void 0:n.extUtilities)&&void 0!==o?o:[],l=null!==(i=null==n?void 0:n.className)&&void 0!==i?i:[];if(!a||!Object.keys(a).length)return e;var u=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return e.split(" ");case"[object Array]":return e;default:return[]}},c=new Set([].concat(ms(u(l)),ms(u(s)),ms(u(a))));return Object.assign({},e,{className:ms(c).join(" ")})}function js(e){var t=e.show,n=void 0!==t&&t,r=k((function(e){return e.open})),i=k((function(e){return e.setReady})),s=k((function(e){return e.setOpen})),a=(0,o.useCallback)((function(){return s(!0)}),[s]),l=(0,o.useCallback)((function(){return s(!1)}),[s]),u=ae((function(e){return e.initTemplateData})),c=Z((function(e){return e.fetchTaxonomies})),f=H((function(e){return e._hasHydrated})),d=ae((function(e){return Object.keys(e.taxonomyDefaultState).length>0}));return(0,o.useEffect)((function(){r&&c().then((function(){ae.getState().setupDefaultTaxonomies()}))}),[r,c]),(0,o.useEffect)((function(){f&&d&&(u(),i(!0))}),[f,d,u,i]),(0,o.useEffect)((function(){var e=new URLSearchParams(window.location.search);(n||e.has("ext-open"))&&s(!0)}),[n,s]),(0,o.useEffect)((function(){le().then((function(e){k.setState({metaData:e})}))}),[]),(0,o.useEffect)((function(){return window.addEventListener("extendify::open-library",a),window.addEventListener("extendify::close-library",l),function(){window.removeEventListener("extendify::open-library",a),window.removeEventListener("extendify::close-library",l)}}),[l,a]),(0,Ht.jsx)(fs,{})}function ks(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}(0,ps.addFilter)("blocks.registerBlockType","extendify/utilities/attributes",(function(e){return vs(vs({},e),{},{attributes:vs(vs({},e.attributes),{},{extUtilities:{type:"array",default:[]}})})})),(0,ps.addFilter)("blocks.registerBlockType","extendify/utilities/addEditProps",(function(e){var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),ws(r,e,n)},e})),(0,ps.addFilter)("editor.BlockEdit","extendify/utilities/advancedClassControls",bs),(0,ps.addFilter)("blocks.getSaveContent.extraProps","extendify/utilities/extra-props",ws);var Es,_s=(0,Wr.select)("core/blocks").getCategories();(0,r.setCategories)([{slug:"extendify",title:"Extendify",icon:null}].concat(function(e){if(Array.isArray(e))return ks(e)}(Es=_s)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(Es)||function(e,t){if(e){if("string"==typeof e)return ks(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ks(e,t):void 0}}(Es)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),(0,r.registerBlockCollection)("extendify",{title:"Extendify",icon:(0,Ht.jsx)(Lt.Icon,{icon:dn})});const Ss=(0,o.createElement)(Wt,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)($t,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"})),Cs=(0,o.createElement)(Wt,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)($t,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})),Os=(0,o.createElement)(Wt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)($t,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"})),As=(0,o.createElement)(Wt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)($t,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})),Ps=(0,o.createElement)(Wt,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)($t,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})),Ts=(0,o.createElement)(Wt,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)($t,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 12.8h8v-1.5H8v1.5z"})),Ns=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"extendify/library","title":"Pattern Library","description":"Add block patterns and full page layouts with the Extendify Library.","keywords":["template","layouts"],"textdomain":"extendify","attributes":{"preview":{"type":"string"},"search":{"type":"string"}}}');(0,r.registerBlockType)(Ns,{icon:dn,category:"extendify",example:{attributes:{preview:window.extendifyData.asset_path+"/preview.png"}},variations:[{name:"gallery",icon:(0,Ht.jsx)(Dt,{icon:Ss}),category:"extendify",attributes:{search:"gallery"},title:(0,Mt.__)("Gallery Patterns","extendify"),description:(0,Mt.__)("Add gallery patterns and layouts.","extendify"),keywords:[(0,Mt.__)("slideshow","extendify"),(0,Mt.__)("images","extendify")]},{name:"team",icon:(0,Ht.jsx)(Dt,{icon:Cs}),category:"extendify",attributes:{search:"team"},title:(0,Mt.__)("Team Patterns","extendify"),description:(0,Mt.__)("Add team patterns and layouts.","extendify"),keywords:[(0,Mt._x)("crew","As in team","extendify"),(0,Mt.__)("colleagues","extendify"),(0,Mt.__)("members","extendify")]},{name:"hero",icon:(0,Ht.jsx)(Dt,{icon:Os}),category:"extendify",attributes:{search:"hero"},title:(0,Mt._x)("Hero Patterns","Hero being a hero/top section of a webpage","extendify"),description:(0,Mt.__)("Add hero patterns and layouts.","extendify"),keywords:[(0,Mt.__)("heading","extendify"),(0,Mt.__)("headline","extendify")]},{name:"text",icon:(0,Ht.jsx)(Dt,{icon:As}),category:"extendify",attributes:{search:"text"},title:(0,Mt._x)("Text Patterns","Relating to patterns that feature text only","extendify"),description:(0,Mt.__)("Add text patterns and layouts.","extendify"),keywords:[(0,Mt.__)("simple","extendify"),(0,Mt.__)("paragraph","extendify")]},{name:"about",icon:(0,Ht.jsx)(Dt,{icon:Ps}),category:"extendify",attributes:{search:"about"},title:(0,Mt._x)("About Page Patterns","Add patterns relating to an about us page","extendify"),description:(0,Mt.__)("About patterns and layouts.","extendify"),keywords:[(0,Mt.__)("who we are","extendify"),(0,Mt.__)("team","extendify")]},{name:"call-to-action",icon:(0,Ht.jsx)(Dt,{icon:Ts}),category:"extendify",attributes:{search:"call-to-action"},title:(0,Mt.__)("Call to Action Patterns","extendify"),description:(0,Mt.__)("Add call to action patterns and layouts.","extendify"),keywords:[(0,Mt._x)("cta","Initialism for call to action","extendify"),(0,Mt.__)("callout","extendify"),(0,Mt.__)("buttons","extendify")]}],edit:function(e){var t=e.clientId,n=e.attributes,r=(0,Wr.useDispatch)("core/block-editor").removeBlock;return(0,o.useEffect)((function(){n.preview||(n.search&&Rs(n.search),Ur("library-block","open"),r(t))}),[t,n,r]),(0,Ht.jsx)("img",{style:{display:"block",maxWidth:"100%"},src:n.preview,alt:(0,Mt.sprintf)((0,Mt.__)("%s Pattern Library","extendify"),"Extendify")})}});var Rs=function(e){var t=new URLSearchParams(window.location.search);t.append("ext-patternType",e),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString())};const Is=wp.editPost,Ls=wp.plugins;var Ms=function(){return Y.get("site-settings")},Ds=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),Y.post("site-settings",t,{headers:{"Content-Type":"multipart/form-data"}})};function Bs(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Fs(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Bs(i,r,o,s,a,"next",e)}function a(e){Bs(i,r,o,s,a,"throw",e)}s(void 0)}))}}var Us={getItem:function(){var e=Fs(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ms();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),setItem:function(){var e=Fs(s().mark((function e(t,n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ds(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),removeItem:function(){}},zs=f(b((function(){return{enabled:!0}}),{name:"extendify-sitesettings",getStorage:function(){return Us}}));function $s(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Vs(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){$s(i,r,o,s,a,"next",e)}function a(e){$s(i,r,o,s,a,"throw",e)}s(void 0)}))}}function Ws(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)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qs(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 qs(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 qs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const Hs=function(){var e=(0,Wr.useSelect)((function(e){return e("core").canUser("create","users")})),t=Ws((0,o.useState)(H.getState().enabled),2),n=t[0],r=t[1],i=Ws((0,o.useState)(zs.getState().enabled),2),a=i[0],l=i[1];function u(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=document.getElementById("extendify-templates-inserter-btn");t&&(e?t.classList.add("hidden"):t.classList.remove("hidden"))}function c(e){return f.apply(this,arguments)}function f(){return(f=Vs(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,H.setState({enabled:t});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e){return p.apply(this,arguments)}function p(){return(p=Vs(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,zs.setState({enabled:t});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e,t){return m.apply(this,arguments)}function m(){return(m=Vs(s().mark((function e(t,n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("global"!==n){e.next=5;break}return e.next=3,d(t);case 3:e.next=7;break;case 5:return e.next=7,c(t);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){"global"===e?l((function(t){return h(!t,e),!t})):r((function(t){return u(!t),h(!t,e),!t}))}return(0,o.useEffect)((function(){u(!n)}),[n]),(0,Ht.jsxs)(Lt.Modal,{title:(0,Mt.__)("Extendify Settings","extendify"),onRequestClose:function(){var e=document.getElementById("extendify-util");(0,o.unmountComponentAtNode)(e)},children:[(0,Ht.jsx)(Lt.ToggleControl,{label:e?(0,Mt.__)("Enable the library for myself","extendify"):(0,Mt.__)("Enable the library","extendify"),help:(0,Mt.__)("Publish with hundreds of patterns & page layouts","extendify"),checked:n,onChange:function(){return x("user")}}),e&&(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)("br",{}),(0,Ht.jsx)(Lt.ToggleControl,{label:(0,Mt.__)("Allow all users to publish with the library"),help:(0,Mt.__)("Everyone publishes with patterns & page layouts","extendify"),checked:a,onChange:function(){return x("global")}})]})]})};function Ys(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)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gs(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 Gs(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 Gs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Js=function(e){var t=e.anchorRef,n=e.onPressX,r=e.onClick,o=e.onClickOutside;return t.current?(0,Ht.jsx)(Lt.Popover,{anchorRef:t.current,shouldAnchorIncludePadding:!0,className:"extendify-tooltip-default",focusOnMount:!1,onFocusOutside:o,onClick:r,position:"bottom center",noArrow:!1,children:(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"0.5rem"},children:[(0,Ht.jsx)("span",{style:{textTransform:"uppercase",color:"#8b8b8b"},children:(0,Mt.__)("Monthly Imports","extendify")}),(0,Ht.jsx)(Lt.Button,{style:{color:"white",position:"relative",right:"-5px",padding:"0",minWidth:"0",height:"20px",width:"20px"},onClick:function(e){e.stopPropagation(),n()},icon:(0,Ht.jsx)(Dt,{icon:Sn,size:12}),showTooltip:!1,label:(0,Mt.__)("Close callout","extendify")})]}),(0,Ht.jsx)("div",{dangerouslySetInnerHTML:{__html:cn((0,Mt.sprintf)((0,Mt.__)("%1$sGood news!%2$s We've added more imports to your library. Enjoy!","extendify"),"<strong>","</strong>"))}})]})}):null};function Ks(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Xs(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Ks(i,r,o,s,a,"next",e)}function a(e){Ks(i,r,o,s,a,"throw",e)}s(void 0)}))}}function Zs(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)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qs(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 Qs(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 Qs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ea,ta,na,ra,oa,ia,sa,aa,la,ua,ca=function(){var e=Zs((0,o.useState)(!1),2),t=e[0],n=e[1],r=(0,o.useRef)(!1),i=(0,o.useRef)(),a=H((function(e){return e.apiKey.length})),l=H((function(e){return e.imports>0})),u=k((function(e){return e.open})),c=H((function(e){return 0===e.allowedImports})),f=H((function(e){return e.uuid})),d=function(e,t,n){var r=Ys((0,o.useState)(),2),i=r[0],s=r[1],a=k((function(e){return e.ready}));return(0,o.useLayoutEffect)((function(){if(n||a&&!i||window.extendifyData._canRehydrate){var r=H.getState().testGroup(e,t);s(r)}}),[e,t,i,a,n]),i}("main-button-text2",["A","B"],!0),p=Zs((0,o.useState)(),2),h=p[0],m=p[1],x=function(){var e=Xs(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("mb-tooltip-closed");case 2:n(!1),H.setState({allowedImports:-1});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){if(f){m(function(){switch(d){case"A":return(0,Mt.__)("Add template","extendify");case"B":return(0,Mt.__)("Design Library","extendify")}}())}}),[d,f]),(0,o.useEffect)((function(){u&&(n(!1),r.current=!0),!a&&c&&l&&(r.current||n(!0),r.current=!0)}),[a,c,l,u]),(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(fa,{buttonRef:i,text:h}),t&&(0,Ht.jsx)(Js,{anchorRef:i,onClick:Xs(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue("mb-tooltip-pressed");case 2:Fr("main-button-tooltip");case 3:case"end":return e.stop()}}),e)}))),onPressX:x})]})},fa=function(e){var t=e.buttonRef,n=e.text;return(0,Ht.jsx)("div",{className:"extendify",children:(0,Ht.jsx)(Lt.Button,{isPrimary:!0,ref:t,className:"h-8 xs:h-9 px-1 min-w-0 xs:pl-2 xs:pr-3 sm:ml-2",onClick:function(){return Fr("main-button")},id:"extendify-templates-inserter-btn",icon:(0,Ht.jsx)(Dt,{icon:pn,size:24,style:{marginRight:0}}),children:(0,Ht.jsx)("span",{className:"hidden xs:inline ml-1",children:n})})})},da=function(){return(0,Ht.jsx)(Lt.Button,{id:"extendify-cta-button",style:{margin:"1rem 1rem 0",width:"calc(100% - 2rem)",justifyContent:" center"},onClick:function(){return Fr("patterns-cta")},isSecondary:!0,children:(0,Mt.__)("Discover patterns in Extendify Library","extendify")})},pa=null===(ea=window.extendifyData)||void 0===ea||null===(ta=ea.user)||void 0===ta?void 0:ta.state,ha=function(){return null===window.extendifyData.user||(null==pa?void 0:pa.isAdmin)},ma=function(){var e,t,n;return null===window.extendifyData.sitesettings||(null===(e=window.extendifyData)||void 0===e||null===(t=e.sitesettings)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.enabled)},xa=null===(na=window)||void 0===na||null===(ra=na.wp)||void 0===ra||null===(oa=ra.data)||void 0===oa?void 0:oa.subscribe((function(){requestAnimationFrame((function(){var e,t;if((ma()||ha())&&!document.getElementById("extendify-templates-inserter")&&(document.querySelector(".edit-post-header-toolbar")||document.querySelector(".edit-site-header_start"))){var n=Object.assign(document.createElement("div"),{id:"extendify-templates-inserter"});null===(e=document.querySelector(".edit-post-header-toolbar"))||void 0===e||e.append(n),null===(t=document.querySelector(".edit-site-header_start"))||void 0===t||t.append(n),(0,o.render)((0,Ht.jsx)(ca,{}),n),(null===window.extendifyData.user?ma():null==pa?void 0:pa.enabled)||document.getElementById("extendify-templates-inserter-btn").classList.add("hidden"),xa()}}))})),ya=null===(ia=window)||void 0===ia||null===(sa=ia.wp)||void 0===sa||null===(aa=sa.data)||void 0===aa?void 0:aa.subscribe((function(){requestAnimationFrame((function(){if((ma()||ha())&&document.querySelector("[id$=patterns-view]")&&!document.getElementById("extendify-cta-button")){var e=Object.assign(document.createElement("div"),{id:"extendify-cta-button-container"});document.querySelector("[id$=patterns-view]").prepend(e),(0,o.render)((0,Ht.jsx)(da,{}),e),ya()}}))}));try{(0,Ls.registerPlugin)("extendify-settings-enable-disable",{render:function(){return(0,Ht.jsx)(Ht.Fragment,{children:(0,Ht.jsxs)(Is.PluginSidebarMoreMenuItem,{onClick:function(){var e=document.getElementById("extendify-util");(0,o.render)((0,Ht.jsx)(Hs,{}),e)},icon:(0,Ht.jsx)(Dt,{icon:pn,size:24}),children:[" ",(0,Mt.__)("Extendify","extendify")]})})}})}catch(Qe){console.error("registerPlugin not supported? (error handled gracefully)",Qe.message)}[{register:function(){var e=(0,Wr.dispatch)("core/notices").createNotice,t=H.getState().incrementImports;window.addEventListener("extendify::template-inserted",(function(n){e("info",(0,Mt.__)("Page layout added"),{isDismissible:!0,type:"snackbar"}),setTimeout((function(){var e;t(),Er(null===(e=n.detail)||void 0===e?void 0:e.template)}),0)}))}},{register:function(){var e=this;window.addEventListener("extendify::softerror-encountered",(function(t){e[(0,S.camelCase)(t.detail.type)](t.detail)}))},versionOutdated:function(e){(0,o.render)((0,Ht.jsx)(ao,{title:e.data.title,requiredPlugins:["extendify"],message:e.data.message,buttonLabel:e.data.buttonLabel,forceOpen:!0}),document.getElementById("extendify-root"))}}].forEach((function(e){return e.register()})),null===(la=window)||void 0===la||null===(ua=la.wp)||void 0===ua||ua.domReady((function(){var e=Object.assign(document.createElement("div"),{id:"extendify-root"});if(document.body.append(e),(0,o.render)((0,Ht.jsx)(js,{}),e),e.parentNode.insertBefore(Object.assign(document.createElement("div"),{id:"extendify-util"}),e.nextSibling),Br.getState().importOnLoad){var t=Br.getState().wantedTemplate;setTimeout((function(){ko((0,r.rawHandler)({HTML:t.fields.code}),t)}),0)}Br.setState({importOnLoad:!1,wantedTemplate:{}})}))},4782:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=l(e),s=i[0],a=i[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),c=0,f=a>0?s-4:s;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t);1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],s=16383,a=0,l=r-o;a<l;a+=s)i.push(u(e,a,a+s>l?l:a+s));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=i.length;s<a;++s)n[s]=i[s],r[i.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var o,i,s=[],a=t;a<r;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},816:(e,t,n)=>{"use strict";var r=n(4782),o=n(8898),i=n(5182);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),o=(e=a(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?a(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=a(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var c=-1;for(i=n;i<a;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*s}else-1!==c&&(i-=i-c),c=-1}else for(n+l>a&&(n=a-l),i=n;i>=0;i--){for(var f=!0,d=0;d<l;d++)if(u(e,i+d)!==u(t,d)){f=!1;break}if(f)return i}return-1}function g(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function b(e,t,n,r){return V(z(t,e.length-n),e,n,r)}function w(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function j(e,t,n,r){return w(e,t,n,r)}function k(e,t,n,r){return V($(t),e,n,r)}function E(e,t,n,r){return V(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,l,u=e[o],c=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(l=(15&u)<<12|(63&i)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(l=(15&u)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=C));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var s=e[n];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,o),o+=s.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)x(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),u=this.slice(r,o),c=e.slice(t,n),f=0;f<a;++f)if(u[f]!==c[f]){i=u[f],s=c[f];break}return i<s?-1:s<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return g(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return j(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function O(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function P(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=U(e[i]);return o}function T(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function M(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return i||M(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return i||M(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=l.isBuffer(e)?e:z(new l(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function $(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}},42:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var s=o.apply(null,n);s&&e.push(s)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},6012:(e,t,n)=>{"use strict";var r=n(3185),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,s,a,l,u,c=!1;t||(t={}),n=t.debug||!1;try{if(s=r(),a=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),a.selectNodeContents(u),l.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(a):l.removeAllRanges()),u&&document.body.removeChild(u),s()}return c}},8898:(e,t)=>{t.read=function(e,t,n,r,o){var i,s,a=8*o-r-1,l=(1<<a)-1,u=l>>1,c=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=a;c>0;i=256*i+e[t+f],f+=d,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=r;c>0;s=256*s+e[t+f],f+=d,c-=8);if(0===i)i=1-u;else{if(i===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=u}return(p?-1:1)*s*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var s,a,l,u=8*i-o-1,c=(1<<u)-1,f=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(s++,l/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*l-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[n+p]=255&a,p+=h,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[n+p]=255&s,p+=h,s/=256,u-=8);e[n+p-h]|=128*m}},5182:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},7721:()=>{},1461:()=>{},9086:()=>{},2525:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var s,a,l=o(e),u=1;u<arguments.length;u++){for(var c in s=Object(arguments[u]))n.call(s,c)&&(l[c]=s[c]);if(t){a=t(s);for(var f=0;f<a.length;f++)r.call(s,a[f])&&(l[a[f]]=s[a[f]])}}return l}},7061:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var a,l=[],u=!1,c=-1;function f(){u&&a&&(u=!1,a.length?l=a.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(a=l,l=[];++c<t;)a&&a[c].run();c=-1,t=l.length}a=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},4218:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=a(n(7363)),i=a(n(6012)),s=["text","onCopy","options","children"];function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x(e)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(l,e);var t,n,r,a=h(l);function l(){var e;f(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(x(e=a.call.apply(a,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,s=n.onCopy,a=n.children,l=n.options,u=o.default.Children.only(a),c=(0,i.default)(r,l);s&&s(r,c),u&&u.props&&"function"==typeof u.props.onClick&&u.props.onClick(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=c(e,s),r=o.default.Children.only(t);return o.default.cloneElement(r,u(u({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.default.PureComponent);t.CopyToClipboard=g,v(g,"defaultProps",{onCopy:void 0,options:void 0})},4306:(e,t,n)=>{"use strict";var r=n(4218).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},1426:(e,t,n)=>{"use strict";n(2525);var r=n(7363),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:s.current}}t.jsx=u,t.jsxs=u},4246:(e,t,n)=>{"use strict";e.exports=n(1426)},6248:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof x?t:x,i=Object.create(o.prototype),s=new O(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=_(s,n);if(a){if(a===m)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?h:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(e,n,s),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",m={};function x(){}function y(){}function v(){}var g={};l(g,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(A([])));w&&w!==n&&r.call(w,i)&&(g=w);var j=v.prototype=x.prototype=Object.create(g);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,s,a){var l=c(e[o],e,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(f).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,a)}))}a(l.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function _(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,_(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=c(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,s=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:P}}function P(){return{value:t,done:!0}}return y.prototype=v,l(j,"constructor",v),l(v,"constructor",y),y.displayName=l(v,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,a,"GeneratorFunction")),e.prototype=Object.create(j),e},e.awrap=function(e){return{__await:e}},k(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var s=new E(u(t,n,r,o),i);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},k(j),l(j,a,"Generator"),l(j,i,(function(){return this})),l(j,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=A,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var l=r.call(s,"catchLoc"),u=r.call(s,"finallyLoc");if(l&&u){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},3185:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},7363:e=>{"use strict";e.exports=React}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.m=t,e=[],r.O=(t,n,o,i)=>{if(!n){var s=1/0;for(c=0;c<e.length;c++){for(var[n,o,i]=e[c],a=!0,l=0;l<n.length;l++)(!1&i||s>=i)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(a=!1,i<s&&(s=i));if(a){e.splice(c--,1);var u=o();void 0!==u&&(t=u)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[n,o,i]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={76:0,885:0,394:0,786:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,[s,a,l]=n,u=0;if(s.some((t=>0!==e[t]))){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(l)var c=l(r)}for(t&&t(n);u<s.length;u++)i=s[u],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(c)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.O(void 0,[885,394,786],(()=>r(4330))),r.O(void 0,[885,394,786],(()=>r(7721))),r.O(void 0,[885,394,786],(()=>r(1461)));var o=r.O(void 0,[885,394,786],(()=>r(9086)));o=r.O(o)})();
1
  /*! For license information please see extendify.js.LICENSE.txt */
2
+ (()=>{var e,t={7135:(e,t,n)=>{e.exports=n(6248)},4206:(e,t,n)=>{e.exports=n(8057)},4387:(e,t,n)=>{"use strict";var r=n(7485),o=n(4570),i=n(2940),a=n(581),s=n(574),l=n(3845),u=n(8338),c=n(4832),f=n(7354),d=n(8870),p=n(4906);e.exports=function(e){return new Promise((function(t,n){var h,m=e.data,x=e.headers,y=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete x["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";x.Authorization="Basic "+btoa(b+":"+w)}var j=s(e.baseURL,e.url);function k(){if(g){var r="getAllResponseHeaders"in g?l(g.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};o((function(e){t(e),v()}),(function(e){n(e),v()}),i),g=null}}if(g.open(e.method.toUpperCase(),a(j,e.params,e.paramsSerializer),!0),g.timeout=e.timeout,"onloadend"in g?g.onloadend=k:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(k)},g.onabort=function(){g&&(n(new f("Request aborted",f.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,g,g)),g=null},g.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,g)),g=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||u(j))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(x[e.xsrfHeaderName]=E)}"setRequestHeader"in g&&r.forEach(x,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete x[t]:g.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),y&&"json"!==y&&(g.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&g.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){g&&(n(!e||e&&e.type?new d:e),g.abort(),g=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null);var _=p(j);_&&-1===["http","https","file"].indexOf(_)?n(new f("Unsupported protocol "+_+":",f.ERR_BAD_REQUEST,e)):g.send(m)}))}},8057:(e,t,n)=>{"use strict";var r=n(7485),o=n(875),i=n(5029),a=n(4941);var s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(8396));s.Axios=i,s.CanceledError=n(8870),s.CancelToken=n(4603),s.isCancel=n(1475),s.VERSION=n(3345).version,s.toFormData=n(1020),s.AxiosError=n(7354),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(5739),s.isAxiosError=n(5835),e.exports=s,e.exports.default=s},4603:(e,t,n)=>{"use strict";var r=n(8870);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},8870:(e,t,n)=>{"use strict";var r=n(7354);function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(7485).inherits(o,r,{__CANCEL__:!0}),e.exports=o},1475:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5029:(e,t,n)=>{"use strict";var r=n(7485),o=n(581),i=n(8096),a=n(5009),s=n(4941),l=n(574),u=n(6144),c=u.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(l),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var d=t;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(e){h(e);break}}try{i=a(d)}catch(e){return Promise.reject(e)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},f.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},7354:(e,t,n)=>{"use strict";var r=n(7485);function o(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,n,a,s,l){var u=Object.create(i);return r.toFlatObject(e,u,(function(e){return e!==Error.prototype})),o.call(u,e.message,t,n,a,s),u.name=e.name,l&&Object.assign(u,l),u},e.exports=o},8096:(e,t,n)=>{"use strict";var r=n(7485);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},574:(e,t,n)=>{"use strict";var r=n(2642),o=n(2288);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},5009:(e,t,n)=>{"use strict";var r=n(7485),o=n(9212),i=n(1475),a=n(8396),s=n(8870);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4941:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function l(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==l||(n[e]=o)})),n}},4570:(e,t,n)=>{"use strict";var r=n(7354);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},9212:(e,t,n)=>{"use strict";var r=n(7485),o=n(8396);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},8396:(e,t,n)=>{"use strict";var r=n(7061),o=n(7485),i=n(1446),a=n(7354),s=n(4832),l=n(1020),u={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var f,d={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(f=n(4387)),f),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=o.isObject(e),a=t&&t["Content-Type"];if((n=o.isFileList(e))||r&&"multipart/form-data"===a){var s=this.env&&this.env.FormData;return l(n?{"files[]":e}:e,s&&new s)}return r||"application/json"===a?(c(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a.from(e,a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(8750)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){d.headers[e]=o.merge(u)})),e.exports=d},4832:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},3345:e=>{e.exports={version:"0.27.2"}},875:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},581:(e,t,n)=>{"use strict";var r=n(7485);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},2288:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2940:(e,t,n)=>{"use strict";var r=n(7485);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},2642:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5835:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},8338:(e,t,n)=>{"use strict";var r=n(7485);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},1446:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},8750:e=>{e.exports=null},3845:(e,t,n)=>{"use strict";var r=n(7485),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},4906:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5739:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1020:(e,t,n)=>{"use strict";var r=n(816).Buffer,o=n(7485);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return function e(r,a){if(o.isPlainObject(r)||o.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),o.forEach(r,(function(n,r){if(!o.isUndefined(n)){var s,l=a?a+"."+r:r;if(n&&!a&&"object"==typeof n)if(o.endsWith(r,"{}"))n=JSON.stringify(n);else if(o.endsWith(r,"[]")&&(s=o.toArray(n)))return void s.forEach((function(e){!o.isUndefined(e)&&t.append(l,i(e))}));e(n,l)}})),n.pop()}else t.append(a,i(r))}(e),t}},6144:(e,t,n)=>{"use strict";var r=n(3345).version,o=n(7354),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new o(i(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new o("option "+a+" must be "+u,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},7485:(e,t,n)=>{"use strict";var r,o=n(875),i=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function l(e){return Array.isArray(e)}function u(e){return void 0===e}var c=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),h=s("File"),m=s("Blob"),x=s("FileList");function y(e){return"[object Function]"===i.call(e)}var v=s("URLSearchParams");function g(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var b,w=(b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return b&&e instanceof b});e.exports={isArray:l,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||y(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:u,isDate:p,isFile:h,isBlob:m,isFunction:y,isStream:function(e){return f(e)&&y(e.pipe)},isURLSearchParams:v,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:g,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)g(arguments[r],n);return t},extend:function(e,t,n){return g(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,a={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:x}},4330:(e,t,n)=>{"use strict";const r=wp.blocks,o=wp.element;var i=n(7135),a=n.n(i),s=n(7363),l=n.n(s);function u(e){let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(o!==t){const e=t;t=r?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:(e,r,i)=>r||i?((e,r=o,i=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(t);function s(){const n=r(t);if(!i(a,n)){const t=a;e(a=n,t)}}return n.add(s),()=>n.delete(s)})(e,r,i):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,i),i}const c="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?s.useEffect:s.useLayoutEffect;function f(e){const t="function"==typeof e?u(e):e,n=(e=t.getState,n=Object.is)=>{const[,r]=(0,s.useReducer)((e=>e+1),0),o=t.getState(),i=(0,s.useRef)(o),a=(0,s.useRef)(e),l=(0,s.useRef)(n),u=(0,s.useRef)(!1),f=(0,s.useRef)();let d;void 0===f.current&&(f.current=e(o));let p=!1;(i.current!==o||a.current!==e||l.current!==n||u.current)&&(d=e(o),p=!n(f.current,d)),c((()=>{p&&(f.current=d),i.current=o,a.current=e,l.current=n,u.current=!1}));const h=(0,s.useRef)(o);c((()=>{const e=()=>{try{const e=t.getState(),n=a.current(e);l.current(f.current,n)||(i.current=e,f.current=n,r())}catch(e){u.current=!0,r()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n}),[]);const m=p?d:f.current;return(0,s.useDebugValue)(m),m};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[n,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},n}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const d=e=>(t,n,r)=>{const o=r.subscribe;r.subscribe=(e,t,n)=>{let i=e;if(t){const o=(null==n?void 0:n.equalityFn)||Object.is;let a=e(r.getState());i=n=>{const r=e(n);if(!o(a,r)){const e=a;t(a=r,e)}},(null==n?void 0:n.fireImmediately)&&t(a,a)}return o(i)};return e(t,n,r)};var p=Object.defineProperty,h=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,y=(e,t,n)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))m.call(t,n)&&y(e,n,t[n]);if(h)for(var n of h(t))x.call(t,n)&&y(e,n,t[n]);return e};const g=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>g(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>g(t)(e)}}},b=(e,t)=>(n,r,o)=>{let i=v({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>v(v({},t),e)},t);(i.blacklist||i.whitelist)&&console.warn(`The ${i.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let a=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch(e){}if(!u)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,o);u.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${i.name}' does not contain a 'removeItem' method, which will be required in v4.`);const c=g(i.serialize),f=()=>{const e=i.partialize(v({},r()));let t;i.whitelist&&Object.keys(e).forEach((t=>{var n;!(null==(n=i.whitelist)?void 0:n.includes(t))&&delete e[t]})),i.blacklist&&i.blacklist.forEach((t=>delete e[t]));const n=c({state:e,version:i.version}).then((e=>u.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return n},d=o.setState;o.setState=(e,t)=>{d(e,t),f()};const p=e(((...e)=>{n(...e),f()}),r,o);let h;const m=()=>{var e;if(!u)return;a=!1,s.forEach((e=>e(r())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return g(u.getItem.bind(u))(i.name).then((e=>{if(e)return i.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return h=i.merge(e,null!=(t=r())?t:p),n(h,!0),f()})).then((()=>{null==t||t(h,void 0),a=!0,l.forEach((e=>e(h)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{i=v(v({},i),e),e.getStorage&&(u=e.getStorage())},clearStorage:()=>{var e;null==(e=null==u?void 0:u.removeItem)||e.call(u,i.name)},rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),h||p};function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _(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 _(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var S=f(d(b((function(e,t){return{open:!1,ready:!1,metaData:{},currentTaxonomies:{},currentType:"pattern",modals:[],pushModal:function(n){return e({modals:[n].concat(E(t().modals))})},popModal:function(){return e({modals:t().modals.slice(1)})},removeAllModals:function(){return e({modals:[]})},updateCurrentTaxonomies:function(t){return e({currentTaxonomies:j({},t)})},updateCurrentType:function(t){return e({currentType:t})},setOpen:function(t){return e({open:t})},setReady:function(t){return e({ready:t})}}}),{name:"extendify-global-state",partialize:function(e){return delete e.modals,delete e.ready,e}}))),C=n(4206),O=n.n(C);const A=lodash;function P(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var T=function(){return(e=a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(window.extendifyData.root,"/user"),{method:"GET",headers:{"X-WP-Nonce":window.extendifyData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify":!0}});case 2:return t=e.sent,e.next=5,t.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){P(i,r,o,a,s,"next",e)}function s(e){P(i,r,o,a,s,"throw",e)}a(void 0)}))})();var e},N=function(e,t){var n=new FormData;return n.append("email",e),n.append("key",t),K.post("login",n,{headers:{"Content-Type":"multipart/form-data"}})},R=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),K.post("user",t,{headers:{"Content-Type":"multipart/form-data"}})},I=function(){return K.post("clear-user")},L=function(){return K.get("max-free-imports")};function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function B(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(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);n<t;n++)r[n]=e[n];return r}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function $(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){z(i,r,o,a,s,"next",e)}function s(e){z(i,r,o,a,s,"throw",e)}a(void 0)}))}}var V,W,q,H={getItem:(q=$(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return q.apply(this,arguments)}),setItem:(W=$(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e,t){return W.apply(this,arguments)}),removeItem:(V=$(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return V.apply(this,arguments)})},Y=function(){var e,t,n;return null===window.extendifyData.sitesettings||(null===(e=window.extendifyData)||void 0===e||null===(t=e.sitesettings)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.enabled)},G=U({},"main-button-text2","0007"),J=f(b((function(e,t){return{_hasHydrated:!1,firstLoadedOn:(new Date).toISOString(),email:"",apiKey:"",uuid:"",sdkPartner:"",noticesDismissedAt:{},modalNoticesDismissedAt:{},imports:0,runningImports:0,allowedImports:0,freebieImports:0,entryPoint:"not-set",enabled:Y(),canInstallPlugins:!1,canActivatePlugins:!1,participatingTestsGroups:{},incrementImports:function(){var n=Number(t().freebieImports)>0?Number(t().freebieImports)-1:Number(t().freebieImports),r=Number(t().runningImports)+ +(n<1);e({imports:Number(t().imports)+1,runningImports:r,freebieImports:n})},giveFreebieImports:function(n){e({freebieImports:t().freebieImports+n})},totalAvailableImports:function(){return Number(t().allowedImports)+Number(t().freebieImports)},testGroup:function(n,r){if(Object.keys(G).includes(n)){var o=t().participatingTestsGroups;return o[n]||e({participatingTestsGroups:Object.assign({},o,U({},n,(0,A.sample)(r)))}),(o=t().participatingTestsGroups)[n]}},activeTestGroups:function(){return Object.entries(t().participatingTestsGroups).filter((function(e){var t=B(e,1)[0];return Object.keys(G).includes(t)})).reduce((function(e,t){var n=B(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})},activeTestGroupsUtmValue:function(){var e=Object.entries(t().activeTestGroups()).map((function(e){var t=B(e,2),n=t[0],r=t[1];return"".concat(G[n],"=").concat(r)}),"").join(":");return encodeURIComponent(e)},hasAvailableImports:function(){return!!t().apiKey||Number(t().runningImports)<Number(t().totalAvailableImports())},remainingImports:function(){var e=Number(t().totalAvailableImports())-Number(t().runningImports);return t().allowedImports?e>0?e:0:null},markNoticeSeen:function(n,r){e(U({},"".concat(r,"DismissedAt"),D(D({},t()["".concat(r,"DismissedAt")]),{},U({},n,(new Date).toISOString()))))}}}),{name:"extendify-user",getStorage:function(){return H},onRehydrateStorage:function(){return function(){J.setState({_hasHydrated:!0})}},partialize:function(e){return delete e._hasHydrated,e}})),K=O().create({baseURL:window.extendifyData.root,headers:{"X-WP-Nonce":window.extendifyData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Library":!0,"X-Extendify":!0}});function X(e){return Object.prototype.hasOwnProperty.call(e,"data")?e.data:e}K.interceptors.response.use((function(e){return function(e){return Object.prototype.hasOwnProperty.call(e,"soft_error")&&window.dispatchEvent(new CustomEvent("extendify::softerror-encountered",{detail:e.soft_error,bubbles:!0})),e}(X(e))}),(function(e){return function(e){if(e.response)return console.error(e.response),Promise.reject(X(e.response))}(e)})),K.interceptors.request.use((function(e){return function(e){return e.headers["X-Extendify-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e}(function(e){var t=J.getState(),n=t.apiKey?"unlimited":t.remainingImports();return e.data&&(e.data.remaining_imports=n,e.data.entry_point=t.entryPoint,e.data.total_imports=t.imports,e.data.participating_tests=t.activeTestGroups()),e}(e))}),(function(e){return e}));var Z=function(){return K.get("site-settings")},Q=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),K.post("site-settings",t,{headers:{"Content-Type":"multipart/form-data"}})},ee=function(e,t){return K.post("site-settings/options",{option:e,value:t})};function te(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ne(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){te(i,r,o,a,s,"next",e)}function s(e){te(i,r,o,a,s,"throw",e)}a(void 0)}))}}var re={getItem:function(){var e=ne(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),setItem:function(){var e=ne(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),removeItem:function(){}},oe=f(b((function(e){return{enabled:!0,siteType:{},setSiteType:(t=ne(a().mark((function t(n){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e({siteType:n}),t.next=3,ee("extendify_siteType",n);case 3:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})};var t}),{name:"extendify-sitesettings",getStorage:function(){return re}}));function ie(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var ae=function(){return(e=a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K.get("taxonomies");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ie(i,r,o,a,s,"next",e)}function s(e){ie(i,r,o,a,s,"throw",e)}a(void 0)}))})();var e};function se(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var le=f(b((function(e,t){return{taxonomies:{},setTaxonomies:function(t){return e({taxonomies:t})},fetchTaxonomies:(n=a().mark((function e(){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ae();case 2:if(r=e.sent,r=Object.keys(r).reduce((function(e,t){return e[t]=r[t],e}),{}),null!==(n=Object.keys(r))&&void 0!==n&&n.length){e.next=6;break}return e.abrupt("return");case 6:t().setTaxonomies(r);case 7:case"end":return e.stop()}}),e)})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){se(i,r,o,a,s,"next",e)}function s(e){se(i,r,o,a,s,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})};var n,r}),{name:"extendify-taxonomies"}));function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||he(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=he(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function he(e,t){if(e){if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,t):void 0}}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xe(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var ye=f(d((function(e,t){return{templates:[],skipNextFetch:!1,fetchToken:null,taxonomyDefaultState:{},nextPage:"",searchParams:{taxonomies:{},type:"pattern"},initTemplateData:function(){e({activeTemplate:{}}),t().setupDefaultTaxonomies(),t().updateType(S.getState().currentType)},appendTemplates:(n=a().mark((function n(r){var o,i,s;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:o=pe(r),n.prev=1,s=a().mark((function n(){var r;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=i.value,!t().templates.find((function(e){return e.id===r.id}))){n.next=3;break}return n.abrupt("return","continue");case 3:return n.next=5,new Promise((function(e){return setTimeout(e,5)}));case 5:requestAnimationFrame((function(){var n=[].concat(de(t().templates),[r]);e({templates:n})}));case 6:case"end":return n.stop()}}),n)})),o.s();case 4:if((i=o.n()).done){n.next=11;break}return n.delegateYield(s(),"t0",6);case 6:if("continue"!==n.t0){n.next=9;break}return n.abrupt("continue",9);case 9:n.next=4;break;case 11:n.next=16;break;case 13:n.prev=13,n.t1=n.catch(1),o.e(n.t1);case 16:return n.prev=16,o.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[1,13,16,19]])})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){xe(i,r,o,a,s,"next",e)}function s(e){xe(i,r,o,a,s,"throw",e)}a(void 0)}))},function(e){return r.apply(this,arguments)}),setupDefaultTaxonomies:function(){var t,n,r=le.getState().taxonomies,o=Object.entries(r).reduce((function(e,t){return e[t[0]]={slug:"",title:"Featured"},e}),{}),i={taxonomies:ce(ce(ce({},o),null!==(t=null===(n=S.getState())||void 0===n?void 0:n.currentTaxonomies)&&void 0!==t?t:{}),{},{siteType:oe.getState().siteType})};e((function(e){return{taxonomyDefaultState:o,searchParams:ce(ce({},e.searchParams),i)}})),S.getState().updateCurrentTaxonomies(i.taxonomies)},updateTaxonomies:function(e){var n={};n.taxonomies=Object.assign({},t().searchParams.taxonomies,e),S.getState().updateCurrentTaxonomies(null==n?void 0:n.taxonomies),t().updateSearchParams(n)},updateType:function(e){S.getState().updateCurrentType(e),t().updateSearchParams({type:e})},updateSearchParams:function(n){null!=n&&n.taxonomies&&!Object.keys(n.taxonomies).length&&(n.taxonomies=t().taxonomyDefaultState);var r=Object.assign({},t().searchParams,n);JSON.stringify(r)!==JSON.stringify(t().searchParams)&&e({templates:[],nextPage:"",searchParams:r})},resetTemplates:function(){return e({templates:[],nextPage:""})}};var n,r}))),ve=function(){return K.get("meta-data")},ge=function(e){var t,n,r,o,i,a=null!==(t=null===(n=ye.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return K.post("simple-ping",{action:e,categories:a,sdk_partner:null!==(o=null===(i=J.getState())||void 0===i?void 0:i.sdkPartner)&&void 0!==o?o:""})};function be(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,be),r}var we,je=((we=je||{})[we.None=0]="None",we[we.RenderStrategy=1]="RenderStrategy",we[we.Static=2]="Static",we),ke=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ke||{});function Ee({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=Se(t,e);if(i)return _e(s,n,r,a);let l=null!=o?o:0;if(2&l){let{static:e=!1,...t}=s;if(e)return _e(t,n,r,a)}if(1&l){let{unmount:e=!0,...t}=s;return be(e?0:1,{0:()=>null,1:()=>_e({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return _e(s,n,r,a)}function _e(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...l}=Ae(e,["unmount","static"]),u=void 0!==e.ref?{[a]:e.ref}:{},c="function"==typeof i?i(t):i;if(l.className&&"function"==typeof l.className&&(l.className=l.className(t)),o===s.Fragment&&Object.keys(Oe(l)).length>0){if(!(0,s.isValidElement)(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return(0,s.cloneElement)(c,Object.assign({},Se(c.props,Oe(Ae(l,["ref"]))),u))}return(0,s.createElement)(o,Object.assign({},Ae(l,["ref"]),o!==s.Fragment&&u),c)}function Se(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t){let r=n[e];for(let e of r){if(t.defaultPrevented)return;e(t)}}});return t}function Ce(e){var t;return Object.assign((0,s.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Oe(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Ae(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let Pe=Symbol();function Te(e,t=!0){return Object.assign(e,{[Pe]:t})}function Ne(...e){let t=(0,s.useRef)(e);(0,s.useEffect)((()=>{t.current=e}),[e]);let n=(0,s.useCallback)((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}),[t]);return e.every((e=>null==e||(null==e?void 0:e[Pe])))?void 0:n}var Re=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Re||{});function Ie(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}const Le="undefined"!=typeof window?s.useLayoutEffect:s.useEffect;let Me={serverHandoffComplete:!1};function De(){let[e,t]=(0,s.useState)(Me.serverHandoffComplete);return(0,s.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,s.useEffect)((()=>{!1===Me.serverHandoffComplete&&(Me.serverHandoffComplete=!0)}),[]),e}var Be;let Fe=0;function Ue(){return++Fe}let ze=null!=(Be=s.useId)?Be:function(){let e=De(),[t,n]=s.useState(e?Ue:null);return Le((()=>{null===t&&n(Ue())}),[t]),null!=t?""+t:void 0},$e=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Ve,We=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(We||{}),qe=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(qe||{}),He=((Ve=He||{})[Ve.Previous=-1]="Previous",Ve[Ve.Next=1]="Next",Ve);var Ye=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ye||{});function Ge(e){null==e||e.focus({preventScroll:!0})}let Je=["textarea","input"].join(",");function Ke(e,t){let n,r=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll($e))}(e),i=r.activeElement,a=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,o.indexOf(i))-1;if(4&t)return Math.max(0,o.indexOf(i))+1;if(8&t)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=32&t?{preventScroll:!0}:{},u=0,c=o.length;do{if(u>=c||u+c<=0)return 0;let e=s+u;if(16&t)e=(e+c)%c;else{if(e<0)return 3;if(e>=c)return 1}n=o[e],null==n||n.focus(l),u+=a}while(n!==r.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Je))&&n}(n)&&n.select(),n.hasAttribute("tabindex")||n.setAttribute("tabindex","0"),2}function Xe(e){let t=(0,s.useRef)(e);return Le((()=>{t.current=e}),[e]),t}function Ze(e,t,n,r){let o=Xe(n);(0,s.useEffect)((()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}),[e,t,r])}function Qe(){let e=(0,s.useRef)(!1);return Le((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function et(e){return"undefined"==typeof window?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function tt(...e){return(0,s.useMemo)((()=>et(...e)),[...e])}var nt=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(nt||{});function rt(e,t=30,{initialFocus:n,containers:r}={}){let o=(0,s.useRef)(null),i=(0,s.useRef)(null),a=Qe(),l=Boolean(16&t),u=Boolean(2&t),c=tt(e);return(0,s.useEffect)((()=>{!l||o.current||(o.current=null==c?void 0:c.activeElement)}),[l,c]),(0,s.useEffect)((()=>{if(l)return()=>{Ge(o.current),o.current=null}}),[l]),(0,s.useEffect)((()=>{if(!u)return;let t=e.current;if(!t)return;let r=null==c?void 0:c.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===r)return void(i.current=r)}else if(t.contains(r))return void(i.current=r);null!=n&&n.current?Ge(n.current):Ke(t,We.First)===qe.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.current=null==c?void 0:c.activeElement}),[e,n,u,c]),Ze(null==c?void 0:c.defaultView,"keydown",(n=>{!(4&t)||!e.current||n.key===Re.Tab&&(n.preventDefault(),Ke(e.current,(n.shiftKey?We.Previous:We.Next)|We.WrapAround)===qe.Success&&(i.current=null==c?void 0:c.activeElement))})),Ze(null==c?void 0:c.defaultView,"focus",(n=>{if(!(8&t))return;let o=new Set(null==r?void 0:r.current);if(o.add(e),!o.size)return;let s=i.current;if(!s||!a.current)return;let l=n.target;l&&l instanceof HTMLElement?function(e,t){var n;for(let r of e)if(null!=(n=r.current)&&n.contains(t))return!0;return!1}(o,l)?(i.current=l,Ge(l)):(n.preventDefault(),n.stopPropagation(),Ge(s)):Ge(i.current)}),!0),o}let ot=new Set,it=new Map;function at(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function st(e){let t=it.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}const lt=ReactDOM;let ut=(0,s.createContext)(!1);function ct(){return(0,s.useContext)(ut)}function ft(e){return s.createElement(ut.Provider,{value:e.force},e.children)}let dt=s.Fragment,pt=Ce((function(e,t){let n=e,r=(0,s.useRef)(null),o=Ne(Te((e=>{r.current=e})),t),i=tt(r),a=function(e){let t=ct(),n=(0,s.useContext)(mt),r=tt(e),[o,i]=(0,s.useState)((()=>{if(!t&&null!==n||"undefined"==typeof window)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return(0,s.useEffect)((()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))}),[o,r]),(0,s.useEffect)((()=>{t||null!==n&&i(n.current)}),[n,i,t]),o}(r),[l]=(0,s.useState)((()=>{var e;return"undefined"==typeof window?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),u=De();return Le((()=>{if(a&&l)return a.appendChild(l),()=>{var e;!a||!l||(a.removeChild(l),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}}),[a,l]),u&&a&&l?(0,lt.createPortal)(Ee({ourProps:{ref:o},theirProps:n,defaultTag:dt,name:"Portal"}),l):null})),ht=s.Fragment,mt=(0,s.createContext)(null),xt=Ce((function(e,t){let{target:n,...r}=e,o={ref:Ne(t)};return s.createElement(mt.Provider,{value:n},Ee({ourProps:o,theirProps:r,defaultTag:ht,name:"Popover.Group"}))})),yt=Object.assign(pt,{Group:xt}),vt=(0,s.createContext)(null);function gt(){let e=(0,s.useContext)(vt);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,gt),e}return e}function bt(){let[e,t]=(0,s.useState)([]);return[e.length>0?e.join(" "):void 0,(0,s.useMemo)((()=>function(e){let n=(0,s.useCallback)((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n})))),[]),r=(0,s.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return s.createElement(vt.Provider,{value:r},e.children)}),[t])]}let wt=Ce((function(e,t){let n=gt(),r=`headlessui-description-${ze()}`,o=Ne(t);Le((()=>n.register(r)),[r,n.register]);let i=e;return Ee({ourProps:{ref:o,...n.props,id:r},theirProps:i,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})})),jt=(0,s.createContext)(null);jt.displayName="OpenClosedContext";var kt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(kt||{});function Et(){return(0,s.useContext)(jt)}function _t({value:e,children:t}){return s.createElement(jt.Provider,{value:e},t)}let St=(0,s.createContext)((()=>{}));St.displayName="StackContext";var Ct=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Ct||{});function Ot({children:e,onUpdate:t,type:n,element:r}){let o=(0,s.useContext)(St),i=(0,s.useCallback)(((...e)=>{null==t||t(...e),o(...e)}),[o,t]);return Le((()=>(i(0,n,r),()=>i(1,n,r))),[i,n,r]),s.createElement(St.Provider,{value:i},e)}function At(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Pt(e,t,n){let r=Xe(t);(0,s.useEffect)((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}var Tt=(e=>(e[e.None=1]="None",e[e.IgnoreScrollbars=2]="IgnoreScrollbars",e))(Tt||{});var Nt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Nt||{}),Rt=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Rt||{});let It={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},Lt=(0,s.createContext)(null);function Mt(e){let t=(0,s.useContext)(Lt);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Mt),t}return t}function Dt(e,t){return be(t.type,It,e,t)}Lt.displayName="DialogContext";let Bt=je.RenderStrategy|je.Static,Ft=Ce((function(e,t){let{open:n,onClose:r,initialFocus:o,__demoMode:i=!1,...a}=e,[l,u]=(0,s.useState)(0),c=Et();void 0===n&&null!==c&&(n=be(c,{[kt.Open]:!0,[kt.Closed]:!1}));let f=(0,s.useRef)(new Set),d=(0,s.useRef)(null),p=Ne(d,t),h=tt(d),m=e.hasOwnProperty("open")||null!==c,x=e.hasOwnProperty("onClose");if(!m&&!x)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!m)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!x)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof n)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n}`);if("function"!=typeof r)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${r}`);let y=n?0:1,[v,g]=(0,s.useReducer)(Dt,{titleId:null,descriptionId:null,panelRef:(0,s.createRef)()}),b=(0,s.useCallback)((()=>r(!1)),[r]),w=(0,s.useCallback)((e=>g({type:0,id:e})),[g]),j=!!De()&&(!i&&0===y),k=l>1,E=null!==(0,s.useContext)(Lt),_=rt(d,j?be(k?"parent":"leaf",{parent:nt.RestoreFocus,leaf:nt.All&~nt.FocusLock}):nt.None,{initialFocus:o,containers:f});(function(e,t=!0){Le((()=>{if(!t||!e.current)return;let n=e.current,r=et(n);if(r){ot.add(n);for(let e of it.keys())e.contains(n)&&(st(e),it.delete(e));return r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement){for(let t of ot)if(e.contains(t))return;1===ot.size&&(it.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),at(e))}})),()=>{if(ot.delete(n),ot.size>0)r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement&&!it.has(e)){for(let t of ot)if(e.contains(t))return;it.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),at(e)}}));else for(let e of it.keys())st(e),it.delete(e)}}}),[t])})(d,!!k&&j),function(e,t,n=1){let r=(0,s.useRef)(!1),o=Xe((o=>{if(r.current)return;r.current=!0,At((()=>{r.current=!1}));let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),a=o.target;if(a.ownerDocument.documentElement.contains(a)){if(2==(2&n)){let e=20,t=a.ownerDocument.documentElement;if(o.clientX>t.clientWidth-e||o.clientX<e||o.clientY>t.clientHeight-e||o.clientY<e)return}for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a))return}return t(o,a)}}));Pt("pointerdown",((...e)=>o.current(...e))),Pt("mousedown",((...e)=>o.current(...e)))}((()=>{var e,t;return[...Array.from(null!=(e=null==h?void 0:h.querySelectorAll("body > *"))?e:[]).filter((e=>!(!(e instanceof HTMLElement)||e.contains(_.current)||v.panelRef.current&&e.contains(v.panelRef.current)))),null!=(t=v.panelRef.current)?t:d.current]}),(()=>{0===y&&(k||b())}),Tt.IgnoreScrollbars),Ze(null==h?void 0:h.defaultView,"keydown",(e=>{e.key===Re.Escape&&0===y&&(k||(e.preventDefault(),e.stopPropagation(),b()))})),(0,s.useEffect)((()=>{var e;if(0!==y||E)return;let t=et(d);if(!t)return;let n=t.documentElement,r=null!=(e=t.defaultView)?e:window,o=n.style.overflow,i=n.style.paddingRight,a=r.innerWidth-n.clientWidth;return n.style.overflow="hidden",n.style.paddingRight=`${a}px`,()=>{n.style.overflow=o,n.style.paddingRight=i}}),[y,E]),(0,s.useEffect)((()=>{if(0!==y||!d.current)return;let e=new IntersectionObserver((e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&b()}));return e.observe(d.current),()=>e.disconnect()}),[y,d,b]);let[S,C]=bt(),O=`headlessui-dialog-${ze()}`,A=(0,s.useMemo)((()=>[{dialogState:y,close:b,setTitleId:w},v]),[y,v,b,w]),P=(0,s.useMemo)((()=>({open:0===y})),[y]),T={ref:p,id:O,role:"dialog","aria-modal":0===y||void 0,"aria-labelledby":v.titleId,"aria-describedby":S,onClick(e){e.stopPropagation()}};return s.createElement(Ot,{type:"Dialog",element:d,onUpdate:(0,s.useCallback)(((e,t,n)=>{"Dialog"===t&&be(e,{[Ct.Add](){f.current.add(n),u((e=>e+1))},[Ct.Remove](){f.current.add(n),u((e=>e-1))}})}),[])},s.createElement(ft,{force:!0},s.createElement(yt,null,s.createElement(Lt.Provider,{value:A},s.createElement(yt.Group,{target:d},s.createElement(ft,{force:!1},s.createElement(C,{slot:P,name:"Dialog.Description"},Ee({ourProps:T,theirProps:a,slot:P,defaultTag:"div",features:Bt,visible:0===y,name:"Dialog"}))))))))})),Ut=Ce((function(e,t){let[{dialogState:n,close:r}]=Mt("Dialog.Overlay"),o=Ne(t),i=`headlessui-dialog-overlay-${ze()}`,a=(0,s.useCallback)((e=>{if(e.target===e.currentTarget){if(Ie(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),r()}}),[r]);return Ee({ourProps:{ref:o,id:i,"aria-hidden":!0,onClick:a},theirProps:e,slot:(0,s.useMemo)((()=>({open:0===n})),[n]),defaultTag:"div",name:"Dialog.Overlay"})})),zt=Ce((function(e,t){let[{dialogState:n},r]=Mt("Dialog.Backdrop"),o=Ne(t),i=`headlessui-dialog-backdrop-${ze()}`;(0,s.useEffect)((()=>{if(null===r.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[r.panelRef]);let a=(0,s.useMemo)((()=>({open:0===n})),[n]);return s.createElement(ft,{force:!0},s.createElement(yt,null,Ee({ourProps:{ref:o,id:i,"aria-hidden":!0},theirProps:e,slot:a,defaultTag:"div",name:"Dialog.Backdrop"})))})),$t=Ce((function(e,t){let[{dialogState:n},r]=Mt("Dialog.Panel");return Ee({ourProps:{ref:Ne(t,r.panelRef),id:`headlessui-dialog-panel-${ze()}`},theirProps:e,slot:(0,s.useMemo)((()=>({open:0===n})),[n]),defaultTag:"div",name:"Dialog.Panel"})})),Vt=Ce((function(e,t){let[{dialogState:n,setTitleId:r}]=Mt("Dialog.Title"),o=`headlessui-dialog-title-${ze()}`,i=Ne(t);(0,s.useEffect)((()=>(r(o),()=>r(null))),[o,r]);let a=(0,s.useMemo)((()=>({open:0===n})),[n]);return Ee({ourProps:{ref:i,id:o},theirProps:e,slot:a,defaultTag:"h2",name:"Dialog.Title"})})),Wt=Object.assign(Ft,{Backdrop:zt,Panel:$t,Overlay:Ut,Title:Vt,Description:wt});const qt=wp.components,Ht=wp.i18n;const Yt=function(e){let{icon:t,size:n=24,...r}=e;return(0,o.cloneElement)(t,{width:n,height:n,...r})};var Gt=n(42),Jt=n.n(Gt);const Kt=e=>(0,o.createElement)("circle",e),Xt=e=>(0,o.createElement)("g",e),Zt=e=>(0,o.createElement)("path",e),Qt=e=>(0,o.createElement)("rect",e),en=e=>{let{className:t,isPressed:n,...r}=e;const i={...r,className:Jt()(t,{"is-pressed":n})||void 0,"aria-hidden":!0,focusable:!1};return(0,o.createElement)("svg",i)},tn=(0,o.createElement)(en,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Zt,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));var nn=n(4246);function rn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function on(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){rn(i,r,o,a,s,"next",e)}function s(e){rn(i,r,o,a,s,"throw",e)}a(void 0)}))}}var an=function(){return K.get("plugins")},sn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=new FormData;return t.append("plugins",JSON.stringify(e)),K.post("plugins",t,{headers:{"Content-Type":"multipart/form-data"}})},ln=function(){return K.get("active-plugins")};function un(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function cn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){un(i,r,o,a,s,"next",e)}function s(e){un(i,r,o,a,s,"throw",e)}a(void 0)}))}}function fn(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dn(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 dn(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 dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function hn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){pn(i,r,o,a,s,"next",e)}function s(e){pn(i,r,o,a,s,"throw",e)}a(void 0)}))}}function mn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function xn(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yn(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 yn(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 yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vn={promotion:function(e){var t,n=e.promotionData;return(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("span",{className:"text-black",children:null!==(t=null==n?void 0:n.text)&&void 0!==t?t:""}),(0,nn.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,nn.jsx)("div",{className:"flex items-center justify-center space-x-2",children:(null==n?void 0:n.url)&&(0,nn.jsx)(qt.Button,{variant:"link",className:"h-auto p-0 text-black underline hover:no-underline",href:"".concat(n.url,"&utm_source=").concat(window.extendifyData.sdk_partner,"&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),onClick:hn(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("promotion-notice-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),target:"_blank",children:null==n?void 0:n.button_text})})]})},feedback:function(){return(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("span",{className:"text-black",children:(0,Ht.__)("Tell us how to make the Extendify Library work better for you","extendify")}),(0,nn.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,nn.jsx)("div",{className:"flex items-center justify-center space-x-2",children:(0,nn.jsx)(qt.Button,{variant:"link",className:"h-auto p-0 text-black underline hover:no-underline",href:"https://extendify.com/feedback/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=feedback-notice&utm_content=give-feedback&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),onClick:on(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("feedback-notice-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),target:"_blank",children:(0,Ht.__)("Give feedback","extendify")})})]})},standalone:function(){var e=fn((0,o.useState)(""),2),t=e[0],n=e[1],r=J((function(e){return e.giveFreebieImports}));return(0,nn.jsxs)("div",{children:[(0,nn.jsx)("span",{className:"text-black",children:(0,Ht.__)("Install the new Extendify Library plugin to get the latest we have to offer","extendify")}),(0,nn.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,nn.jsxs)("div",{className:"relative inline-flex items-center space-x-2",children:[(0,nn.jsx)(qt.Button,{variant:"link",className:Jt()("h-auto p-0 text-black underline hover:no-underline",{"opacity-0":t}),onClick:function(){n((0,Ht.__)("Installing...","extendify")),Promise.all([ge("stln-footer-install"),sn(["extendify"]),new Promise((function(e){return setTimeout(e,1e3)}))]).then(cn(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(10),n((0,Ht.__)("Success! Reloading...","extendify")),e.next=4,ge("stln-footer-success");case 4:window.location.reload();case 5:case"end":return e.stop()}}),e)})))).catch(function(){var e=cn(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.error(t),n((0,Ht.__)("Error. See console.","extendify")),e.next=4,ge("stln-footer-fail");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},children:(0,Ht.__)("Install Extendify standalone plugin","extendify")}),t?(0,nn.jsx)(qt.Button,{variant:"link",disabled:!0,className:"absolute left-0 h-auto p-0 text-black underline opacity-100 hover:no-underline",onClick:function(){},children:t}):null]})]})}};function gn(e){var t,n=e.className,r=void 0===n?"":n,i=xn((0,o.useState)(null),2),s=i[0],l=i[1],u=(0,o.useRef)(!1),c=S((function(e){var t,n;return null===(t=e.metaData)||void 0===t||null===(n=t.banners)||void 0===n?void 0:n.footer})),f=null!==(t=Object.keys(vn).find((function(e){var t,n,r,o,i,a,s;return"promotion"===e?!(null!==(t=J.getState().apiKey)&&void 0!==t&&t.length)&&(null==c?void 0:c.key)&&!J.getState().noticesDismissedAt[c.key]:"feedback"===e?(i=null!==(n=J.getState().imports)&&void 0!==n?n:0,a=null!==(r=null===(o=J.getState())||void 0===o?void 0:o.firstLoadedOn)&&void 0!==r?r:new Date,s=(new Date).getTime()-new Date(a).getTime(),i>=3&&s/864e5>3&&!J.getState().noticesDismissedAt[e]):"standalone"===e?!window.extendifyData.standalone&&!J.getState().noticesDismissedAt[e]:!J.getState().noticesDismissedAt[e]})))&&void 0!==t?t:null,d=vn[f],p=function(){var e,t=(e=a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(!1),t="promotion"===f?c.key:f,J.getState().markNoticeSeen(t,"notices"),e.next=5,ge("footer-notice-x-".concat(t));case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){mn(i,r,o,a,s,"next",e)}function s(e){mn(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){vn[f]&&!u.current&&(l(!0),u.current=!0)}),[f]),s&&d?(0,nn.jsxs)("div",{className:"".concat(r," relative mx-auto hidden max-w-screen-4xl items-center justify-center space-x-4 bg-extendify-secondary py-3 px-5 lg:flex"),children:[(0,nn.jsx)(d,{promotionData:c}),(0,nn.jsx)("div",{className:"absolute right-1",children:(0,nn.jsx)(qt.Button,{className:"text-extendify-black opacity-50 hover:opacity-100 focus:opacity-100",icon:(0,nn.jsx)(Yt,{icon:tn}),label:(0,Ht.__)("Dismiss this notice","extendify"),onClick:p,showTooltip:!1})})]}):null}function bn(e){const{body:t}=document.implementation.createHTMLDocument("");t.innerHTML=e;const n=t.getElementsByTagName("*");let r=n.length;for(;r--;){const e=n[r];if("SCRIPT"===e.tagName)(o=e).parentNode,o.parentNode.removeChild(o);else{let t=e.attributes.length;for(;t--;){const{name:n}=e.attributes[t];n.startsWith("on")&&e.removeAttribute(n)}}}var o;return t.innerHTML}const wn=(0,nn.jsxs)(en,{viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Zt,{d:"M7.32457 0.907043C3.98785 0.907043 1.2829 3.61199 1.2829 6.94871C1.2829 10.2855 3.98785 12.9904 7.32457 12.9904C10.6613 12.9904 13.3663 10.2855 13.3663 6.94871C13.3663 3.61199 10.6613 0.907043 7.32457 0.907043V0.907043Z",stroke:"currentColor",strokeWidth:"1.25",fill:"none"}),(0,nn.jsx)(Zt,{d:"M6.34684 9.72526C6.34684 9.18224 6.77716 8.74168 7.32018 8.74168C7.8632 8.74168 8.30377 9.18224 8.30377 9.72526C8.30377 10.2683 7.8632 10.6986 7.32018 10.6986C6.77716 10.6986 6.34684 10.2683 6.34684 9.72526Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{d:"M7.9759 7.11261C7.93492 7.47121 7.67878 7.76834 7.32018 7.76834C6.95134 7.76834 6.70544 7.46097 6.6747 7.11261L6.34684 4.1721C6.28537 3.67006 6.81814 3.19876 7.32018 3.19876C7.82222 3.19876 8.35499 3.67006 8.30377 4.1721L7.9759 7.11261Z",fill:"currentColor"})]});const jn=(0,nn.jsx)(en,{fill:"none",viewBox:"0 0 25 24",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)(Zt,{clipRule:"evenodd",d:"m14.4063 2h4.1856c1.1856 0 1.6147.12701 2.0484.36409.4336.23802.7729.58706 1.0049 1.03111.2319.445.3548.8853.3548 2.10175v4.29475c0 1.2165-.1238 1.6567-.3548 2.1017-.232.445-.5722.7931-1.0049 1.0312-.1939.1064-.3873.1939-.6476.2567v3.4179c0 1.8788-.1912 2.5588-.5481 3.246-.3582.6873-.8836 1.2249-1.552 1.5925-.6697.3676-1.3325.5623-3.1634.5623h-6.46431c-1.83096 0-2.49367-.1962-3.16346-.5623-.6698-.3676-1.19374-.9067-1.552-1.5925s-.54943-1.3672-.54943-3.246v-6.63138c0-1.87871.19117-2.55871.54801-3.24597.35827-.68727.88362-1.22632 1.55342-1.59393.66837-.36615 1.3325-.56231 3.16346-.56231h2.76781c.0519-.55814.1602-.86269.3195-1.16946.232-.445.5721-.79404 1.0058-1.03206.4328-.23708.8628-.36409 2.0483-.36409zm-2.1512 2.73372c0-.79711.6298-1.4433 1.4067-1.4433h5.6737c.777 0 1.4068.64619 1.4068 1.4433v5.82118c0 .7971-.6298 1.4433-1.4068 1.4433h-5.6737c-.7769 0-1.4067-.6462-1.4067-1.4433z",fill:"currentColor",fillRule:"evenodd"})});const kn=(0,nn.jsx)(en,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)(Zt,{clipRule:"evenodd",d:"m13.505 4h3.3044c.936 0 1.2747.10161 1.6171.29127.3424.19042.6102.46965.7934.82489.1831.356.2801.70824.2801 1.6814v3.43584c0 .9731-.0977 1.3254-.2801 1.6814-.1832.356-.4517.6344-.7934.8248-.153.0852-.3057.1552-.5112.2054v2.7344c0 1.503-.151 2.047-.4327 2.5968-.2828.5498-.6976.9799-1.2252 1.274-.5288.294-1.052.4498-2.4975.4498h-5.10341c-1.44549 0-1.96869-.1569-2.49747-.4498-.52878-.2941-.94242-.7254-1.22526-1.274-.28284-.5487-.43376-1.0938-.43376-2.5968v-5.3051c0-1.50301.15092-2.04701.43264-2.59682.28284-.54981.6976-.98106 1.22638-1.27514.52767-.29293 1.05198-.44985 2.49747-.44985h2.18511c.041-.44652.1265-.69015.2522-.93557.1832-.356.4517-.63523.7941-.82565.3417-.18966.6812-.29127 1.6171-.29127zm-1.6984 2.18698c0-.63769.4973-1.15464 1.1106-1.15464h4.4793c.6133 0 1.1106.51695 1.1106 1.15464v4.65692c0 .6377-.4973 1.1547-1.1106 1.1547h-4.4793c-.6133 0-1.1106-.517-1.1106-1.1547z",fill:"currentColor",fillRule:"evenodd"})});const En=(0,nn.jsx)(en,{fill:"none",width:"150",height:"30",viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsxs)(Xt,{fill:"currentColor",children:[(0,nn.jsx)(Zt,{d:"m609.404 378.5c-24.334 0-46-5.5-65-16.5-18.667-11.333-33.334-26.667-44-46-10.667-19.667-16-42.167-16-67.5 0-25.667 5.166-48.333 15.5-68 10.333-19.667 24.833-35 43.5-46 18.666-11.333 40-17 64-17 25 0 46.5 5.333 64.5 16 18 10.333 31.833 24.833 41.5 43.5 10 18.667 15 41 15 67v18.5l-212 .5 1-39h150.5c0-17-5.5-30.667-16.5-41-10.667-10.333-25.167-15.5-43.5-15.5-14.334 0-26.5 3-36.5 9-9.667 6-17 15-22 27s-7.5 26.667-7.5 44c0 26.667 5.666 46.833 17 60.5 11.666 13.667 28.833 20.5 51.5 20.5 16.666 0 30.333-3.167 41-9.5 11-6.333 18.166-15.333 21.5-27h56.5c-5.334 27-18.667 48.167-40 63.5-21 15.333-47.667 23-80 23z"}),(0,nn.jsx)("path",{d:"m797.529 372h-69.5l85-121-85-126h71l54.5 84 52.5-84h68.5l-84 125.5 81.5 121.5h-70l-53-81.5z"}),(0,nn.jsx)("path",{d:"m994.142 125h155.998v51h-155.998zm108.498 247h-61v-324h61z"}),(0,nn.jsx)("path",{d:"m1278.62 378.5c-24.33 0-46-5.5-65-16.5-18.66-11.333-33.33-26.667-44-46-10.66-19.667-16-42.167-16-67.5 0-25.667 5.17-48.333 15.5-68 10.34-19.667 24.84-35 43.5-46 18.67-11.333 40-17 64-17 25 0 46.5 5.333 64.5 16 18 10.333 31.84 24.833 41.5 43.5 10 18.667 15 41 15 67v18.5l-212 .5 1-39h150.5c0-17-5.5-30.667-16.5-41-10.66-10.333-25.16-15.5-43.5-15.5-14.33 0-26.5 3-36.5 9-9.66 6-17 15-22 27s-7.5 26.667-7.5 44c0 26.667 5.67 46.833 17 60.5 11.67 13.667 28.84 20.5 51.5 20.5 16.67 0 30.34-3.167 41-9.5 11-6.333 18.17-15.333 21.5-27h56.5c-5.33 27-18.66 48.167-40 63.5-21 15.333-47.66 23-80 23z"}),(0,nn.jsx)("path",{d:"m1484.44 372h-61v-247h56.5l5 32c7.67-12.333 18.5-22 32.5-29 14.34-7 29.84-10.5 46.5-10.5 31 0 54.34 9.167 70 27.5 16 18.333 24 43.333 24 75v152h-61v-137.5c0-20.667-4.66-36-14-46-9.33-10.333-22-15.5-38-15.5-19 0-33.83 6-44.5 18-10.66 12-16 28-16 48z"}),(0,nn.jsx)("path",{d:"m1798.38 378.5c-24 0-44.67-5.333-62-16-17-11-30.34-26.167-40-45.5-9.34-19.333-14-41.833-14-67.5s4.66-48.333 14-68c9.66-20 23.5-35.667 41.5-47s39.33-17 64-17c17.33 0 33.16 3.5 47.5 10.5 14.33 6.667 25.33 16.167 33 28.5v-156.5h60.5v372h-56l-4-38.5c-7.34 14-18.67 25-34 33-15 8-31.84 12-50.5 12zm13.5-56c14.33 0 26.66-3 37-9 10.33-6.333 18.33-15.167 24-26.5 6-11.667 9-24.833 9-39.5 0-15-3-28-9-39-5.67-11.333-13.67-20.167-24-26.5-10.34-6.667-22.67-10-37-10-14 0-26.17 3.333-36.5 10-10.34 6.333-18.34 15.167-24 26.5-5.34 11.333-8 24.333-8 39s2.66 27.667 8 39c5.66 11.333 13.66 20.167 24 26.5 10.33 6.333 22.5 9.5 36.5 9.5z"}),(0,nn.jsx)("path",{d:"m1996.45 372v-247h61v247zm30-296.5c-10.34 0-19.17-3.5-26.5-10.5-7-7.3333-10.5-16.1667-10.5-26.5s3.5-19 10.5-26c7.33-6.99999 16.16-10.49998 26.5-10.49998 10.33 0 19 3.49999 26 10.49998 7.33 7 11 15.6667 11 26s-3.67 19.1667-11 26.5c-7 7-15.67 10.5-26 10.5z"}),(0,nn.jsx)("path",{d:"m2085.97 125h155v51h-155zm155.5-122.5v52c-3.33 0-6.83 0-10.5 0-3.33 0-6.83 0-10.5 0-15.33 0-25.67 3.6667-31 11-5 7.3333-7.5 17.1667-7.5 29.5v277h-60.5v-277c0-22.6667 3.67-40.8333 11-54.5 7.33-14 17.67-24.1667 31-30.5 13.33-6.66666 28.83-10 46.5-10 5 0 10.17.166671 15.5.5 5.67.333329 11 .99999 16 2z"}),(0,nn.jsx)("path",{d:"m2330.4 125 80.5 228-33 62.5-112-290.5zm-58 361.5v-50.5h36.5c8 0 15-1 21-3 6-1.667 11.34-5 16-10 5-5 9.17-12.333 12.5-22l102.5-276h63l-121 302c-9 22.667-20.33 39.167-34 49.5-13.66 10.333-30.66 15.5-51 15.5-8.66 0-16.83-.5-24.5-1.5-7.33-.667-14.33-2-21-4z"}),(0,nn.jsx)("path",{clipRule:"evenodd",d:"m226.926 25.1299h83.271c23.586 0 32.123 2.4639 40.751 7.0633 8.628 4.6176 15.378 11.389 19.993 20.0037 4.615 8.6329 7.059 17.1746 7.059 40.7738v83.3183c0 23.599-2.463 32.141-7.059 40.774-4.615 8.633-11.383 15.386-19.993 20.003-3.857 2.065-7.704 3.764-12.884 4.981v66.308c0 36.447-3.803 49.639-10.902 62.972-7.128 13.333-17.579 23.763-30.877 30.894-13.325 7.132-26.51 10.909-62.936 10.909h-128.605c-36.4268 0-49.6113-3.805-62.9367-10.909-13.3254-7.131-23.749-17.589-30.8765-30.894-7.12757-13.304-10.9308-26.525-10.9308-62.972v-128.649c0-36.447 3.80323-49.639 10.9026-62.972 7.1275-13.333 17.5793-23.7909 30.9047-30.9224 13.2972-7.1034 26.5099-10.9088 62.9367-10.9088h55.064c1.033-10.8281 3.188-16.7362 6.357-22.6877 4.615-8.6329 11.382-15.4043 20.01-20.0219 8.61-4.5994 17.165-7.0633 40.751-7.0633zm-42.798 53.0342c0-15.464 12.53-28 27.986-28h112.877c15.457 0 27.987 12.536 27.987 28v112.9319c0 15.464-12.53 28-27.987 28h-112.877c-15.456 0-27.986-12.536-27.986-28z",fillRule:"evenodd"})]})});const _n=(0,nn.jsx)(en,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)("path",{d:"m11.9893 2.59931c-.1822.00285-.3558.07789-.4827.20864s-.1967.30653-.1941.48871v1.375c-.0013.0911.0156.18155.0495.26609.034.08454.0844.16149.1484.22637s.1402.11639.2242.15156c.0841.03516.1743.05327.2654.05327s.1813-.01811.2654-.05327c.084-.03517.1603-.08668.2242-.15156.064-.06488.1144-.14183.1484-.22637s.0508-.17499.0495-.26609v-1.375c.0013-.09202-.0158-.18337-.0505-.26863-.0346-.08526-.086-.1627-.1511-.22773s-.1426-.11633-.2279-.15085c-.0853-.03453-.1767-.05158-.2687-.05014zm-5.72562.46013c-.1251.00033-.24775.0348-.35471.09968-.10697.06488-.19421.15771-.25232.2685-.05812.1108-.0849.23534-.07747.36023.00744.12488.0488.24537.11964.34849l.91667 1.375c.04939.07667.11354.14274.18872.19437.07517.05164.15987.0878.24916.10639.08928.01858.18137.01922.27091.00187.08953-.01734.17472-.05233.2506-.10292.07589-.05059.14095-.11577.1914-.19174.05045-.07598.08528-.16123.10246-.2508.01719-.08956.01638-.18165-.00237-.2709s-.05507-.17388-.10684-.24897l-.91666-1.375c-.06252-.09667-.14831-.1761-.2495-.231-.1012-.0549-.21456-.08351-.32969-.0832zm11.45212 0c-.1117.00307-.2209.03329-.3182.08804-.0973.05474-.1798.13237-.2404.22616l-.9167 1.375c-.0518.07509-.0881.15972-.1068.24897-.0188.08925-.0196.18134-.0024.2709.0172.08957.052.17482.1024.2508.0505.07597.1156.14115.1914.19174.0759.05059.1611.08558.2506.10292.0896.01735.1817.01671.271-.00187.0892-.01859.1739-.05475.2491-.10639.0752-.05163.1393-.1177.1887-.19437l.9167-1.375c.0719-.10456.1135-.22698.1201-.3537s-.022-.25281-.0826-.36429c-.0606-.11149-.1508-.20403-.2608-.26738-.11-.06334-.2353-.09502-.3621-.09153zm-9.61162 3.67472c-.09573-.00001-.1904.01998-.27795.05867-.08756.03869-.16607.09524-.23052.16602l-4.58333 5.04165c-.11999.1319-.18407.3052-.17873.4834.00535.1782.0797.3473.20738.4718l8.47917 8.25c.1284.1251.3006.1951.4798.1951.1793 0 .3514-.07.4798-.1951l8.4792-8.25c.1277-.1245.202-.2936.2074-.4718.0053-.1782-.0588-.3515-.1788-.4834l-4.5833-5.04165c-.0644-.07078-.1429-.12733-.2305-.16602s-.1822-.05868-.278-.05867h-3.877zm.30436 1.375h2.21646l-2.61213 3.48314c-.04258.0557-.07639.1176-.10026.1835h-2.83773zm4.96646 0h2.2165l3.3336 3.66664h-2.8368c-.0241-.066-.0582-.1278-.1011-.1835zm-1.375.45833 2.4063 3.20831h-4.81254zm-6.78637 4.58331h2.70077c.00665.0188.01412.0374.02238.0555l2.11442 4.6505zm4.20826 0h5.15621l-2.5781 5.6719zm6.66371 0h2.7008l-4.8376 4.706 2.1144-4.6505c.0083-.0181.0158-.0367.0224-.0555z",fill:"#000"})});const Sn=(0,nn.jsxs)(en,{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Zt,{d:"M7.32457 0.907043C3.98785 0.907043 1.2829 3.61199 1.2829 6.94871C1.2829 10.2855 3.98785 12.9904 7.32457 12.9904C10.6613 12.9904 13.3663 10.2855 13.3663 6.94871C13.3663 3.61199 10.6613 0.907043 7.32457 0.907043V0.907043Z",stroke:"white",strokeWidth:"1.25"}),(0,nn.jsx)(Zt,{d:"M7.32458 10.0998L4.82458 7.59977M7.32458 10.0998V3.79764V10.0998ZM7.32458 10.0998L9.82458 7.59977L7.32458 10.0998Z",stroke:"white",strokeWidth:"1.25"})]});const Cn=(0,nn.jsxs)(en,{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)("path",{d:"M7.93298 20.2773L17.933 20.2773C18.1982 20.2773 18.4526 20.172 18.6401 19.9845C18.8276 19.7969 18.933 19.5426 18.933 19.2773C18.933 19.0121 18.8276 18.7578 18.6401 18.5702C18.4526 18.3827 18.1982 18.2773 17.933 18.2773L7.93298 18.2773C7.66777 18.2773 7.41341 18.3827 7.22588 18.5702C7.03834 18.7578 6.93298 19.0121 6.93298 19.2773C6.93298 19.5426 7.03834 19.7969 7.22588 19.9845C7.41341 20.172 7.66777 20.2773 7.93298 20.2773Z",fill:"white"}),(0,nn.jsx)("path",{d:"M12.933 4.27734C12.6678 4.27734 12.4134 4.3827 12.2259 4.57024C12.0383 4.75777 11.933 5.01213 11.933 5.27734L11.933 12.8673L9.64298 10.5773C9.55333 10.4727 9.44301 10.3876 9.31895 10.3276C9.19488 10.2676 9.05975 10.2339 8.92203 10.2285C8.78431 10.2232 8.64698 10.2464 8.51865 10.2967C8.39033 10.347 8.27378 10.4232 8.17632 10.5207C8.07887 10.6181 8.00261 10.7347 7.95234 10.863C7.90206 10.9913 7.87886 11.1287 7.88418 11.2664C7.8895 11.4041 7.92323 11.5392 7.98325 11.6633C8.04327 11.7874 8.12829 11.8977 8.23297 11.9873L12.233 15.9873C12.3259 16.0811 12.4365 16.1555 12.5584 16.2062C12.6803 16.257 12.811 16.2831 12.943 16.2831C13.075 16.2831 13.2057 16.257 13.3276 16.2062C13.4494 16.1555 13.56 16.0811 13.653 15.9873L17.653 11.9873C17.8168 11.796 17.9024 11.55 17.8927 11.2983C17.883 11.0466 17.7786 10.8079 17.6005 10.6298C17.4224 10.4517 17.1837 10.3474 16.932 10.3376C16.6804 10.3279 16.4343 10.4135 16.243 10.5773L13.933 12.8673L13.933 5.27734C13.933 5.01213 13.8276 4.75777 13.6401 4.57024C13.4525 4.3827 13.1982 4.27734 12.933 4.27734Z",fill:"white"})]});const On=(0,nn.jsxs)(en,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Zt,{d:"m11.2721 16.9866.6041 2.2795.6042-2.2795.6213-2.3445c.0001-.0002.0001-.0004.0002-.0006.2404-.9015.8073-1.5543 1.4638-1.8165.0005-.0002.0009-.0004.0013-.0006l1.9237-.7555 1.4811-.5818-1.4811-.5817-1.9264-.7566c0-.0001-.0001-.0001-.0001-.0001-.0001 0-.0001 0-.0001 0-.654-.25727-1.2213-.90816-1.4621-1.81563-.0001-.00006-.0001-.00011-.0001-.00017l-.6215-2.34519-.6042-2.27947-.6041 2.27947-.6216 2.34519v.00017c-.2409.90747-.80819 1.55836-1.46216 1.81563-.00002 0-.00003 0-.00005 0-.00006 0-.00011 0-.00017.0001l-1.92637.7566-1.48108.5817 1.48108.5818 1.92637.7566c.00007 0 .00015.0001.00022.0001.65397.2572 1.22126.9082 1.46216 1.8156v.0002z",stroke:"currentColor",strokeWidth:"1.25",fill:"none"}),(0,nn.jsxs)(Xt,{fill:"currentColor",children:[(0,nn.jsx)(Zt,{d:"m18.1034 18.3982-.2787.8625-.2787-.8625c-.1314-.4077-.4511-.7275-.8589-.8589l-.8624-.2786.8624-.2787c.4078-.1314.7275-.4512.8589-.8589l.2787-.8624.2787.8624c.1314.4077.4511.7275.8589.8589l.8624.2787-.8624.2786c-.4078.1314-.7269.4512-.8589.8589z"}),(0,nn.jsx)(Zt,{d:"m6.33141 6.97291-.27868.86242-.27867-.86242c-.13142-.40775-.45116-.72749-.8589-.85891l-.86243-.27867.86243-.27868c.40774-.13141.72748-.45115.8589-.8589l.27867-.86242.27868.86242c.13142.40775.45116.72749.8589.8589l.86242.27868-.86242.27867c-.40774.13142-.7269.45116-.8589.85891z"})]})]});const An=(0,nn.jsx)(en,{fill:"none",height:"25",viewBox:"0 0 25 25",width:"25",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)(Zt,{d:"m16.2382 9.17969.7499.00645.0066-.75988-.7599.00344zm-5.5442.77506 5.5475-.02507-.0067-1.49998-5.5476.02506zm4.7942-.78152-.0476 5.52507 1.5.0129.0475-5.52506zm.2196-.52387-7.68099 7.68104 1.06066 1.0606 7.68103-7.68098z",fill:"currentColor"})});const Pn=(0,nn.jsx)(en,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsxs)(Xt,{stroke:"currentColor",strokeWidth:"1.5",children:[(0,nn.jsx)(Zt,{d:"m6 4.75h12c.6904 0 1.25.55964 1.25 1.25v12c0 .6904-.5596 1.25-1.25 1.25h-12c-.69036 0-1.25-.5596-1.25-1.25v-12c0-.69036.55964-1.25 1.25-1.25z"}),(0,nn.jsx)(Zt,{d:"m9.25 19v-14"})]})});const Tn=(0,nn.jsxs)(en,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Zt,{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49271 18.0092C6.97815 17.1176 7.28413 15.9755 8.17569 15.4609C9.06724 14.946 10.2094 15.252 10.7243 16.1435C11.2389 17.0355 10.9329 18.1772 10.0413 18.6922C9.14978 19.2071 8.00764 18.9011 7.49271 18.0092V18.0092Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5073 6.12747C17.0218 7.01903 16.7158 8.16117 15.8243 8.67573C14.9327 9.19066 13.7906 8.88467 13.2757 7.99312C12.7611 7.10119 13.0671 5.95942 13.9586 5.44449C14.8502 4.92956 15.9923 5.23555 16.5073 6.12747V6.12747Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.60135 11.1355C5.11628 10.2439 6.25805 9.93793 7.14998 10.4525C8.04153 10.9674 8.34752 12.1096 7.83296 13.0011C7.31803 13.8927 6.17588 14.1987 5.28433 13.6841C4.39278 13.1692 4.08679 12.0274 4.60135 11.1355V11.1355Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3986 13.0011C18.8837 13.8927 17.7419 14.1987 16.85 13.6841C15.9584 13.1692 15.6525 12.027 16.167 11.1355C16.682 10.2439 17.8241 9.93793 18.7157 10.4525C19.6072 10.9674 19.9132 12.1092 19.3986 13.0011V13.0011Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{d:"M9.10857 8.92594C10.1389 8.92594 10.9742 8.09066 10.9742 7.06029C10.9742 6.02992 10.1389 5.19464 9.10857 5.19464C8.0782 5.19464 7.24292 6.02992 7.24292 7.06029C7.24292 8.09066 8.0782 8.92594 9.10857 8.92594Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{d:"M14.8913 18.942C15.9217 18.942 16.7569 18.1067 16.7569 17.0763C16.7569 16.046 15.9217 15.2107 14.8913 15.2107C13.8609 15.2107 13.0256 16.046 13.0256 17.0763C13.0256 18.1067 13.8609 18.942 14.8913 18.942Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3841 13.0011C9.86951 12.1096 10.1755 10.9674 11.067 10.4525C11.9586 9.93793 13.1007 10.2439 13.6157 11.1355C14.1302 12.0274 13.8242 13.1692 12.9327 13.6841C12.0411 14.1987 10.899 13.8927 10.3841 13.0011V13.0011Z",fill:"currentColor"})]});const Nn=(0,nn.jsxs)(en,{fill:"none",viewBox:"0 0 151 148",width:"151",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Kt,{cx:"65.6441",cy:"66.6114",fill:"#0b4a43",r:"65.3897"}),(0,nn.jsxs)(Xt,{fill:"#cbc3f5",stroke:"#0b4a43",children:[(0,nn.jsx)(Zt,{d:"m61.73 11.3928 3.0825 8.3304.1197.3234.3234.1197 8.3304 3.0825-8.3304 3.0825-.3234.1197-.1197.3234-3.0825 8.3304-3.0825-8.3304-.1197-.3234-.3234-.1197-8.3304-3.0825 8.3304-3.0825.3234-.1197.1197-.3234z",strokeWidth:"1.5"}),(0,nn.jsx)(Zt,{d:"m84.3065 31.2718c0 5.9939-12.4614 22.323-18.6978 22.323h-17.8958v56.1522c3.5249.9 11.6535 0 17.8958 0h6.2364c11.2074 3.33 36.0089 7.991 45.5529 0l-9.294-62.1623c-2.267-1.7171-5.949-6.6968-2.55-12.8786 3.4-6.1817 2.55-18.0406 0-24.5756-1.871-4.79616-8.3289-8.90882-14.4482-8.90882s-7.0825 4.00668-6.7993 6.01003z",strokeWidth:"1.75"}),(0,nn.jsx)(Qt,{height:"45.5077",rx:"9.13723",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 191.5074 -96.0026)",width:"18.2745",x:"143.755",y:"47.7524"}),(0,nn.jsx)(Qt,{height:"42.3038",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 241.97 -50.348)",width:"17.4735",x:"146.159",y:"95.811"}),(0,nn.jsx)(Qt,{height:"55.9204",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 213.1347 -85.5913)",width:"17.4735",x:"149.363",y:"63.7717"}),(0,nn.jsx)(Qt,{height:"51.1145",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 229.1545 -69.5715)",width:"17.4735",x:"149.363",y:"79.7915"}),(0,nn.jsx)(Zt,{d:"m75.7483 105.349c.9858-25.6313-19.2235-42.0514-32.8401-44.0538v12.0146c8.5438 1.068 24.8303 9.7642 24.8303 36.0442 0 23.228 19.4905 33.374 29.6362 33.641v-10.413s-22.6122-1.602-21.6264-27.233z",strokeWidth:"1.75"}),(0,nn.jsx)(Zt,{d:"m68.5388 109.354c.9858-25.6312-19.2234-42.0513-32.8401-44.0537v12.0147c8.5438 1.0679 24.8303 9.7641 24.8303 36.044 0 23.228 19.4905 33.374 29.6362 33.641v-10.413s-22.6122-1.602-21.6264-27.233z",strokeWidth:"1.75"})]})]});const Rn=(0,nn.jsxs)(en,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Kt,{cx:"12",cy:"12",r:"7.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,nn.jsx)(Kt,{cx:"12",cy:"12",r:"4.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,nn.jsx)(Kt,{cx:"11.9999",cy:"12.2",r:"6",transform:"rotate(-45 11.9999 12.2)",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"1.5 4"})]});const In=(0,nn.jsx)(en,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)(Zt,{d:"m11.7758 3.45425c.0917-.18582.3567-.18581.4484 0l2.3627 4.78731c.0364.07379.1068.12493.1882.13676l5.2831.76769c.2051.02979.287.28178.1386.42642l-3.8229 3.72637c-.0589.0575-.0858.1402-.0719.2213l.9024 5.2618c.0351.2042-.1793.36-.3627.2635l-4.7254-2.4842c-.0728-.0383-.1598-.0383-.2326 0l-4.7254 2.4842c-.18341.0965-.39776-.0593-.36274-.2635l.90247-5.2618c.01391-.0811-.01298-.1638-.0719-.2213l-3.8229-3.72637c-.14838-.14464-.0665-.39663.13855-.42642l5.28312-.76769c.08143-.01183.15182-.06297.18823-.13676z",fill:"currentColor"})});const Ln=(0,nn.jsx)(en,{fill:"none",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)(Zt,{clipRule:"evenodd",d:"m13 4c4.9545 0 9 4.04545 9 9 0 4.9545-4.0455 9-9 9-4.95455 0-9-4.0455-9-9 0-4.95455 4.04545-9 9-9zm5.0909 13.4545c-1.9545 3.8637-8.22726 3.8637-10.22726 0-.04546-.1818-.04546-.3636 0-.5454 2-3.8636 8.27276-3.8636 10.22726 0 .0909.1818.0909.3636 0 .5454zm-5.0909-8.90905c-1.2727 0-2.3182 1.04546-2.3182 2.31815 0 1.2728 1.0455 2.3182 2.3182 2.3182s2.3182-1.0454 2.3182-2.3182c0-1.27269-1.0455-2.31815-2.3182-2.31815z",fill:"currentColor",fillRule:"evenodd"})}),Mn=(0,o.createElement)(en,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Zt,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function Dn(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function Bn(e,...t){e&&t.length>0&&e.classList.add(...t)}function Fn(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Un=(e=>(e.Ended="ended",e.Cancelled="cancelled",e))(Un||{});function zn(e,t,n,r){let o=n?"enter":"leave",i=Dn(),a=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{},s=be(o,{enter:()=>t.enter,leave:()=>t.leave}),l=be(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=be(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Fn(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Bn(e,...s,...u),i.nextFrame((()=>{Fn(e,...u),Bn(e,...l),function(e,t){let n=Dn();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(i+a!==0){let r=[];r.push(n.addEventListener(e,"transitionrun",(()=>{r.splice(0).forEach((e=>e())),r.push(n.addEventListener(e,"transitionend",(()=>{t("ended"),r.splice(0).forEach((e=>e()))}),{once:!0}),n.addEventListener(e,"transitioncancel",(()=>{t("cancelled"),r.splice(0).forEach((e=>e()))}),{once:!0}))}),{once:!0}))}else t("ended");n.add((()=>t("cancelled"))),n.dispose}(e,(n=>("ended"===n&&(Fn(e,...s),Bn(e,...t.entered)),a(n))))})),i.dispose}function $n({container:e,direction:t,classes:n,events:r,onStart:o,onStop:i}){let a=Qe(),l=function(){let[e]=(0,s.useState)(Dn);return(0,s.useEffect)((()=>()=>e.dispose()),[e]),e}(),u=Xe(t),c=Xe((()=>be(u.current,{enter:()=>r.current.beforeEnter(),leave:()=>r.current.beforeLeave(),idle:()=>{}}))),f=Xe((()=>be(u.current,{enter:()=>r.current.afterEnter(),leave:()=>r.current.afterLeave(),idle:()=>{}})));Le((()=>{let t=Dn();l.add(t.dispose);let r=e.current;if(r&&"idle"!==u.current&&a.current)return t.dispose(),c.current(),o.current(u.current),t.add(zn(r,n.current,"enter"===u.current,(e=>{t.dispose(),be(e,{[Un.Ended](){f.current(),i.current(u.current)},[Un.Cancelled]:()=>{}})}))),t.dispose}),[t])}function Vn(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Wn=(0,s.createContext)(null);Wn.displayName="TransitionContext";var qn=(e=>(e.Visible="visible",e.Hidden="hidden",e))(qn||{});let Hn=(0,s.createContext)(null);function Yn(e){return"children"in e?Yn(e.children):e.current.filter((({state:e})=>"visible"===e)).length>0}function Gn(e){let t=Xe(e),n=(0,s.useRef)([]),r=Qe(),o=Xe(((e,o=ke.Hidden)=>{let i=n.current.findIndex((({id:t})=>t===e));-1!==i&&(be(o,{[ke.Unmount](){n.current.splice(i,1)},[ke.Hidden](){n.current[i].state="hidden"}}),At((()=>{var e;!Yn(n)&&r.current&&(null==(e=t.current)||e.call(t))})))})),i=Xe((e=>{let t=n.current.find((({id:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):n.current.push({id:e,state:"visible"}),()=>o.current(e,ke.Unmount)}));return(0,s.useMemo)((()=>({children:n,register:i,unregister:o})),[i,o,n])}function Jn(){}Hn.displayName="NestingContext";let Kn=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Xn(e){var t;let n={};for(let r of Kn)n[r]=null!=(t=e[r])?t:Jn;return n}let Zn=je.RenderStrategy,Qn=Ce((function(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i,enter:a,enterFrom:l,enterTo:u,entered:c,leave:f,leaveFrom:d,leaveTo:p,...h}=e,m=(0,s.useRef)(null),x=Ne(m,t),[y,v]=(0,s.useState)("visible"),g=h.unmount?ke.Unmount:ke.Hidden,{show:b,appear:w,initial:j}=function(){let e=(0,s.useContext)(Wn);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:k,unregister:E}=function(){let e=(0,s.useContext)(Hn);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),_=(0,s.useRef)(null),S=ze(),C=(0,s.useRef)(!1),O=Gn((()=>{C.current||(v("hidden"),E.current(S))}));(0,s.useEffect)((()=>{if(S)return k.current(S)}),[k,S]),(0,s.useEffect)((()=>{if(g===ke.Hidden&&S){if(b&&"visible"!==y)return void v("visible");be(y,{hidden:()=>E.current(S),visible:()=>k.current(S)})}}),[y,S,k,E,b,g]);let A=Xe({enter:Vn(a),enterFrom:Vn(l),enterTo:Vn(u),entered:Vn(c),leave:Vn(f),leaveFrom:Vn(d),leaveTo:Vn(p)}),P=function(e){let t=(0,s.useRef)(Xn(e));return(0,s.useEffect)((()=>{t.current=Xn(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),T=De();(0,s.useEffect)((()=>{if(T&&"visible"===y&&null===m.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[m,y,T]);let N=j&&!w,R=!T||N||_.current===b?"idle":b?"enter":"leave";$n({container:m,classes:A,events:P,direction:R,onStart:Xe((()=>{})),onStop:Xe((e=>{"leave"===e&&!Yn(O)&&(v("hidden"),E.current(S))}))}),(0,s.useEffect)((()=>{!N||(g===ke.Hidden?_.current=null:_.current=b)}),[b,N,y]);let I=h,L={ref:x};return s.createElement(Hn.Provider,{value:O},s.createElement(_t,{value:be(y,{visible:kt.Open,hidden:kt.Closed})},Ee({ourProps:L,theirProps:I,defaultTag:"div",features:Zn,visible:"visible"===y,name:"Transition.Child"})))})),er=Ce((function(e,t){let{show:n,appear:r=!1,unmount:o,...i}=e,a=Ne(t);De();let l=Et();if(void 0===n&&null!==l&&(n=be(l,{[kt.Open]:!0,[kt.Closed]:!1})),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=(0,s.useState)(n?"visible":"hidden"),f=Gn((()=>{c("hidden")})),[d,p]=(0,s.useState)(!0),h=(0,s.useRef)([n]);Le((()=>{!1!==d&&h.current[h.current.length-1]!==n&&(h.current.push(n),p(!1))}),[h,n]);let m=(0,s.useMemo)((()=>({show:n,appear:r,initial:d})),[n,r,d]);(0,s.useEffect)((()=>{n?c("visible"):Yn(f)||c("hidden")}),[n,f]);let x={unmount:o};return s.createElement(Hn.Provider,{value:f},s.createElement(Wn.Provider,{value:m},Ee({ourProps:{...x,as:s.Fragment,children:s.createElement(Qn,{ref:a,...x,...i})},theirProps:{},defaultTag:s.Fragment,features:Zn,visible:"visible"===u,name:"Transition"})))}));let tr=Object.assign(er,{Child:function(e){let t=null!==(0,s.useContext)(Wn),n=null!==Et();return s.createElement(s.Fragment,null,!t&&n?s.createElement(er,{...e}):s.createElement(Qn,{...e}))},Root:er});var nr=(0,o.forwardRef)((function(e,t){var n,r=e.onClose,i=e.isOpen,a=e.invertedButtonColor,s=e.children,l=e.leftContainerBgColor,u=void 0===l?"bg-white":l,c=e.rightContainerBgColor,f=void 0===c?"bg-gray-100":c,d=(0,o.useRef)(null),p=S((function(e){return e.removeAllModals}));return r=null!==(n=r)&&void 0!==n?n:p,(0,nn.jsx)(tr.Root,{appear:!0,show:!0,as:o.Fragment,children:(0,nn.jsx)(Wt,{as:"div",static:!0,open:i,className:"extendify",initialFocus:null!=t?t:d,onClose:r,children:(0,nn.jsxs)("div",{className:"fixed inset-0 z-high flex",children:[(0,nn.jsx)(tr.Child,{as:o.Fragment,enter:"ease-out duration-50 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,nn.jsx)(Wt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity"})}),(0,nn.jsx)(tr.Child,{as:o.Fragment,enter:"ease-out duration-300 translate transform",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,nn.jsx)("div",{className:"m-auto",children:(0,nn.jsxs)("div",{className:"relative m-8 max-w-md justify-between rounded-sm shadow-modal md:m-0 md:flex md:max-w-2xl",children:[(0,nn.jsxs)("button",{onClick:r,ref:d,className:"absolute top-0 right-0 block cursor-pointer rounded-md bg-transparent p-4 text-gray-700 opacity-30 hover:opacity-100",style:a&&{filter:"invert(1)"},children:[(0,nn.jsx)("span",{className:"sr-only",children:(0,Ht.__)("Close","extendify")}),(0,nn.jsx)(Yt,{icon:Mn})]}),(0,nn.jsx)("div",{className:"w-7/12 p-12 ".concat(u),children:s[0]}),(0,nn.jsx)("div",{className:"hidden w-6/12 md:block ".concat(f),children:s[1]})]})})})]})})})}));function rr(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function or(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){rr(i,r,o,a,s,"next",e)}function s(e){rr(i,r,o,a,s,"throw",e)}a(void 0)}))}}function ir(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ar(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 ar(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 ar(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sr=function(){var e=ir((0,o.useState)((0,Ht.__)("Install Extendify","extendify")),2),t=e[0],n=e[1],r=ir((0,o.useState)(!1),2),i=r[0],s=r[1],l=ir((0,o.useState)(!1),2),u=l[0],c=l[1],f=(0,o.useRef)(null),d=J((function(e){return e.markNoticeSeen})),p=J((function(e){return e.giveFreebieImports})),h=S((function(e){return e.removeAllModals})),m=function(){var e=or(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(),d("standalone","modalNotices"),e.next=4,ge("stln-modal-x");case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,nn.jsxs)(nr,{ref:f,onClose:m,children:[(0,nn.jsxs)("div",{children:[(0,nn.jsx)("div",{className:"mb-10 flex items-center space-x-2 text-extendify-black",children:En}),(0,nn.jsx)("h3",{className:"text-xl",children:(0,Ht.__)("Get the brand new Extendify plugin today!","extendify")}),(0,nn.jsx)("p",{className:"text-sm text-black",dangerouslySetInnerHTML:{__html:bn((0,Ht.sprintf)((0,Ht.__)("Install the new Extendify Library plugin to get the latest we have to offer — right from WordPress.org. Plus, well send you %1$s10 more imports%2$s. Nice.","extendify"),"<strong>","</strong>"))}}),(0,nn.jsx)("div",{children:(0,nn.jsxs)("button",{onClick:function(){n((0,Ht.__)("Installing...","extendify")),c(!0),Promise.all([ge("stln-modal-install"),sn(["extendify"]),new Promise((function(e){return setTimeout(e,1e3)}))]).then(or(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n((0,Ht.__)("Success! Reloading...","extendify")),s(!0),p(10),e.next=5,ge("stln-modal-success");case 5:window.location.reload();case 6:case"end":return e.stop()}}),e)})))).catch(function(){var e=or(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.error(t),n((0,Ht.__)("Error. See console.","extendify")),e.next=4,ge("stln-modal-fail");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},ref:f,disabled:u,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},children:[t,i||(0,nn.jsx)(qt.Icon,{icon:Cn,size:24,className:"ml-2 w-6 flex-grow-0"})]})})]}),(0,nn.jsx)("div",{className:"flex w-full justify-end rounded-tr-sm rounded-br-sm bg-extendify-secondary",children:(0,nn.jsx)("img",{alt:(0,Ht.__)("Upgrade Now","extendify"),className:"rounded-br-sm max-w-full rounded-tr-sm",src:window.extendifyData.asset_path+"/modal-extendify-purple.png"})})]})};function lr(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ur(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 ur(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 ur(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cr(){return cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cr.apply(this,arguments)}function fr(e,t){return fr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fr(e,t)}var dr=new Map,pr=new WeakMap,hr=0,mr=void 0;function xr(e){return Object.keys(e).sort().filter((function(t){return void 0!==e[t]})).map((function(t){return t+"_"+("root"===t?(n=e.root)?(pr.has(n)||(hr+=1,pr.set(n,hr.toString())),pr.get(n)):"0":e[t]);var n})).toString()}function yr(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r=mr),void 0===window.IntersectionObserver&&void 0!==r){var o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),function(){}}var i=function(e){var t=xr(e),n=dr.get(t);if(!n){var r,o=new Map,i=new IntersectionObserver((function(t){t.forEach((function(t){var n,i=t.isIntersecting&&r.some((function(e){return t.intersectionRatio>=e}));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=o.get(t.target))||n.forEach((function(e){e(i,t)}))}))}),e);r=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:o},dr.set(t,n)}return n}(n),a=i.id,s=i.observer,l=i.elements,u=l.get(e)||[];return l.has(e)||l.set(e,u),u.push(t),s.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(l.delete(e),s.unobserve(e)),0===l.size&&(s.disconnect(),dr.delete(a))}}var vr=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function gr(e){return"function"!=typeof e.children}var br=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){n.node&&(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),gr(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,fr(t,n);var o=r.prototype;return o.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},o.componentWillUnmount=function(){this.unobserve(),this.node=null},o.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin,o=e.trackVisibility,i=e.delay,a=e.fallbackInView;this._unobserveCb=yr(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r,trackVisibility:o,delay:i},a)}},o.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},o.render=function(){if(!gr(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var r=this.props,o=r.children,i=r.as,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,vr);return s.createElement(i||"div",cr({ref:this.handleNode},a),o)},r}(s.Component);function wr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jr(){return jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jr.apply(this,arguments)}function kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kr(Object(n),!0).forEach((function(t){_r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}br.displayName="InView",br.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};const Sr={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};class Cr extends l().Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame((()=>{this.reCalculateColumnCount()}))):this.reCalculateColumnCount()}reCalculateColumnCount(){const e=window&&window.innerWidth||1/0;let t=this.props.breakpointCols;"object"!=typeof t&&(t={default:parseInt(t)||2});let n=1/0,r=t.default||2;for(let o in t){const i=parseInt(o);i>0&&e<=i&&i<n&&(n=i,r=t[o])}r=Math.max(1,parseInt(r)||1),this.state.columnCount!==r&&this.setState({columnCount:r})}itemsInColumns(){const e=this.state.columnCount,t=new Array(e),n=l().Children.toArray(this.props.children);for(let r=0;r<n.length;r++){const o=r%e;t[o]||(t[o]=[]),t[o].push(n[r])}return t}renderColumns(){const{column:e,columnAttrs:t={},columnClassName:n}=this.props,r=this.itemsInColumns(),o=100/r.length+"%";let i=n;i&&"string"!=typeof i&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===i&&(i="my-masonry-grid_column"));const a=Er(Er(Er({},e),t),{},{style:Er(Er({},t.style),{},{width:o}),className:i});return r.map(((e,t)=>l().createElement("div",jr({},a,{key:t}),e)))}logDeprecated(e){console.error("[Masonry]",e)}render(){const e=this.props,{children:t,breakpointCols:n,columnClassName:r,columnAttrs:o,column:i,className:a}=e,s=wr(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let u=a;return"string"!=typeof a&&(this.logDeprecated('The property "className" requires a string'),void 0===a&&(u="my-masonry-grid")),l().createElement("div",jr({},s,{className:u}),this.renderColumns())}}Cr.defaultProps=Sr;const Or=Cr;function Ar(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Pr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ar(i,r,o,a,s,"next",e)}function s(e){Ar(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Tr=0,Nr=function(e){var t=arguments;return Pr(a().mark((function n(){var r,o,i,s,l;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.length>1&&void 0!==t[1]?t[1]:{},Tr++,i="pattern"===e.type?"8":"4",s="pattern"===e.type?"patternType":"layoutType",l=Object.assign({filterByFormula:Lr(e,s),pageSize:i,categories:e.taxonomies,search:e.search,type:e.type,offset:"",initial:1===Tr,request_count:Tr,sdk_partner:null!==(r=J.getState().sdkPartner)&&void 0!==r?r:""},o),n.next=7,K.post("templates",l);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),n)})))()},Rr=function(e){var t,n,r,o,i,a,s=null!==(t=null===(n=ye.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return K.post("templates/".concat(e.id),{template_id:null==e?void 0:e.id,categories:s,maybe_import:!0,type:null===(o=e.fields)||void 0===o?void 0:o.type,sdk_partner:null!==(i=J.getState().sdkPartner)&&void 0!==i?i:"",pageSize:"1",template_name:null===(a=e.fields)||void 0===a?void 0:a.title})},Ir=function(e){var t,n,r,o,i,a,s,l,u,c=null!==(t=null===(n=ye.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return K.post("templates/".concat(e.id),{template_id:e.id,categories:c,imported:!0,basePattern:null!==(o=null!==(i=null===(a=e.fields)||void 0===a?void 0:a.basePattern)&&void 0!==i?i:null===(s=e.fields)||void 0===s?void 0:s.baseLayout)&&void 0!==o?o:"",type:e.fields.type,sdk_partner:null!==(l=J.getState().sdkPartner)&&void 0!==l?l:"",pageSize:"1",template_name:null===(u=e.fields)||void 0===u?void 0:u.title})},Lr=function(e,t){var n,r,o=e.taxonomies,i=null==o||null===(n=o.siteType)||void 0===n?void 0:n.slug,a=['{type}="'.concat(t.replace("Type",""),'"'),'{siteType}="'.concat(i,'"')];return null!==(r=o[t])&&void 0!==r&&r.slug&&a.push("{".concat(t,'}="').concat(o[t].slug,'"')),"AND(".concat(a.join(", "),")").replace(/\r?\n|\r/g,"")};const Mr=wp.blockEditor;function Dr(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Br(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 Br(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 Br(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Fr=function(){var e=Dr((0,o.useState)(!1),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){var e=function(){return n(window.location.search.indexOf("DEVMODE")>-1||window.location.search.indexOf("LOCALMODE")>-1)};return e(),window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}}),[]),t};function Ur(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function zr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ur(i,r,o,a,s,"next",e)}function s(e){Ur(i,r,o,a,s,"throw",e)}a(void 0)}))}}var $r=[],Vr=[];function Wr(e){return qr.apply(this,arguments)}function qr(){return qr=zr(a().mark((function e(t){var n,r,o,i,s,l,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=(l=null!==(n=null==t||null===(r=t.fields)||void 0===r?void 0:r.required_plugins)&&void 0!==n?n:[]).filter((function(e){return"editorplus"!==e})),null!==(o=l)&&void 0!==o&&o.length){e.next=4;break}return e.abrupt("return",!1);case 4:if(null!==(i=$r)&&void 0!==i&&i.length){e.next=10;break}return e.t0=Object,e.next=8,an();case 8:e.t1=e.sent,$r=e.t0.keys.call(e.t0,e.t1);case 10:return u=!(null===(s=l)||void 0===s||!s.length)&&l.filter((function(e){return!$r.some((function(t){return t.includes(e)}))})),e.abrupt("return",u.length);case 12:case"end":return e.stop()}}),e)}))),qr.apply(this,arguments)}function Hr(e){return Yr.apply(this,arguments)}function Yr(){return Yr=zr(a().mark((function e(t){var n,r,o,i,s,l,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=(l=null!==(n=null==t||null===(r=t.fields)||void 0===r?void 0:r.required_plugins)&&void 0!==n?n:[]).filter((function(e){return"editorplus"!==e})),null!==(o=l)&&void 0!==o&&o.length){e.next=4;break}return e.abrupt("return",!1);case 4:if(null!==(i=Vr)&&void 0!==i&&i.length){e.next=10;break}return e.t0=Object,e.next=8,ln();case 8:e.t1=e.sent,Vr=e.t0.values.call(e.t0,e.t1);case 10:if(u=!(null===(s=l)||void 0===s||!s.length)&&l.filter((function(e){return!Vr.some((function(t){return t.includes(e)}))})),!u){e.next=16;break}return e.next=14,Wr(t);case 14:if(!e.sent){e.next=16;break}return e.abrupt("return",!1);case 16:return e.abrupt("return",null==u?void 0:u.length);case 17:case"end":return e.stop()}}),e)}))),Yr.apply(this,arguments)}var Gr=f(b((function(e){return{wantedTemplate:{},importOnLoad:!1,setWanted:function(t){return e({wantedTemplate:t})},removeWanted:function(){return e({wantedTemplate:{}})}}}),{name:"extendify-wanted-template"}));var Jr=function(e){return Kr(e,"open")};function Kr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"broken-event",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"open";J.setState({entryPoint:e}),window.dispatchEvent(new CustomEvent("extendify::".concat(t,"-library"),{detail:e,bubbles:!0}))}function Xr(e){switch(e){case"editorplus":return"Editor Plus";case"ml-slider":return"MetaSlider"}return e}function Zr(e){switch(e){case"siteType":return(0,Ht.__)("Site Type","extendify");case"patternType":return(0,Ht.__)("Content","extendify");case"layoutType":return(0,Ht.__)("Page Types","extendify")}return e}function Qr(){var e,t,n,r=Gr((function(e){return e.wantedTemplate})),i=(null==r||null===(e=r.fields)||void 0===e?void 0:e.required_plugins)||[];return(0,nn.jsxs)(qt.Modal,{title:(0,Ht.__)("Plugins required","extendify"),isDismissible:!1,children:[(0,nn.jsx)("p",{style:{maxWidth:"400px"},children:(0,Ht.sprintf)((0,Ht.__)("In order to add this %s to your site, the following plugins are required to be installed and activated.","extendify"),null!==(t=null==r||null===(n=r.fields)||void 0===n?void 0:n.type)&&void 0!==t?t:"template")}),(0,nn.jsx)("ul",{children:i.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,nn.jsx)("li",{children:Xr(e)},e)}))}),(0,nn.jsx)("p",{style:{maxWidth:"400px",fontWeight:"bold"},children:(0,Ht.__)("Please contact a site admin for assistance in adding these plugins to your site.","extendify")}),(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,nn.jsx)(Ma,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none"},children:(0,Ht.__)("Return to library","extendify")})]})}const eo=wp.data;function to(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return no(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 no(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 no(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ro(){var e=to((0,o.useState)(!1),2),t=e[0],n=e[1],r=function(){};return(0,(0,eo.select)("core/editor").isEditedPostDirty)()?(0,nn.jsxs)(qt.Modal,{title:(0,Ht.__)("Reload required","extendify"),isDismissible:!1,children:[(0,nn.jsx)("p",{style:{maxWidth:"400px"},children:(0,Ht.__)("Just one more thing! We need to reload the page to continue.","extendify")}),(0,nn.jsxs)(qt.ButtonGroup,{children:[(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:r,disabled:t,children:(0,Ht.__)("Reload page","extendify")}),(0,nn.jsx)(qt.Button,{isSecondary:!0,onClick:function(){n(!0),(0,eo.dispatch)("core/editor").savePost(),n(!1)},isBusy:t,style:{margin:"0 4px"},children:(0,Ht.__)("Save changes","extendify")})]})]}):null}function oo(e){var t=e.msg;return(0,nn.jsxs)(qt.Modal,{style:{maxWidth:"500px"},title:(0,Ht.__)("Error Activating plugins","extendify"),isDismissible:!1,children:[(0,Ht.__)("You have encountered an error that we cannot recover from. Please try again.","extendify"),(0,nn.jsx)("br",{}),(0,nn.jsx)(qt.Notice,{isDismissible:!1,status:"error",children:t}),(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:function(){(0,o.render)((0,nn.jsx)(co,{}),document.getElementById("extendify-root"))},children:(0,Ht.__)("Go back","extendify")})]})}function io(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ao(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){io(i,r,o,a,s,"next",e)}function s(e){io(i,r,o,a,s,"throw",e)}a(void 0)}))}}function so(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return lo(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 lo(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 lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uo(){var e,t=so((0,o.useState)(""),2),n=t[0],r=t[1],i=Gr((function(e){return e.wantedTemplate})),s=null==i||null===(e=i.fields)||void 0===e?void 0:e.required_plugins.filter((function(e){return"editorplus"!==e}));return sn(s).then((function(){Gr.setState({importOnLoad:!0})})).then(ao(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){return setTimeout(e,1e3)}));case 2:(0,o.render)((0,nn.jsx)(ro,{}),document.getElementById("extendify-root"));case 3:case"end":return e.stop()}}),e)})))).catch((function(e){var t=e.response;r(t.data.message)})),n?(0,nn.jsx)(oo,{msg:n}):(0,nn.jsx)(qt.Modal,{title:(0,Ht.__)("Activating plugins","extendify"),isDismissible:!1,children:(0,nn.jsx)(qt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,Ht.__)("Activating...","extendify")})})}function co(e){var t,n,r,i,a,s=Gr((function(e){return e.wantedTemplate})),l=(null==s||null===(t=s.fields)||void 0===t?void 0:t.required_plugins)||[];return null!==(n=J.getState())&&void 0!==n&&n.canActivatePlugins?(0,nn.jsx)(qt.Modal,{title:(0,Ht.__)("Activate required plugins","extendify"),isDismissible:!1,children:(0,nn.jsxs)("div",{children:[(0,nn.jsx)("p",{style:{maxWidth:"400px"},children:null!==(r=e.message)&&void 0!==r?r:(0,Ht.__)((0,Ht.sprintf)("There is just one more step. This %s requires the following plugins to be installed and activated:",null!==(i=null==s||null===(a=s.fields)||void 0===a?void 0:a.type)&&void 0!==i?i:"template"),"extendify")}),(0,nn.jsx)("ul",{children:l.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,nn.jsx)("li",{children:Xr(e)},e)}))}),(0,nn.jsxs)(qt.ButtonGroup,{children:[(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,nn.jsx)(uo,{}),document.getElementById("extendify-root"))},children:(0,Ht.__)("Activate Plugins","extendify")}),e.showClose&&(0,nn.jsx)(qt.Button,{isTertiary:!0,onClick:function(){return(0,o.render)((0,nn.jsx)(Ma,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,Ht.__)("No thanks, return to library","extendify")})]})]})}):(0,nn.jsx)(Qr,{})}function fo(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var po=function(){var e,t=(e=a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Hr(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,o.render)((0,nn.jsx)(co,{showClose:!0}),document.getElementById("extendify-root"))}))},e.abrupt("return",{id:"hasPluginsActivated",pass:e.t0,allow:e.t1,deny:e.t2});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){fo(i,r,o,a,s,"next",e)}function s(e){fo(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function ho(e){var t=e.msg;return(0,nn.jsxs)(qt.Modal,{style:{maxWidth:"500px"},title:(0,Ht.__)("Error installing plugins","extendify"),isDismissible:!1,children:[(0,Ht.__)("You have encountered an error that we cannot recover from. Please try again.","extendify"),(0,nn.jsx)("br",{}),(0,nn.jsx)(qt.Notice,{isDismissible:!1,status:"error",children:t}),(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,nn.jsx)(vo,{}),document.getElementById("extendify-root"))},children:(0,Ht.__)("Go back","extendify")})]})}function mo(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xo(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 xo(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 xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yo(e){var t,n=e.requiredPlugins,r=mo((0,o.useState)(""),2),i=r[0],a=r[1],s=Gr((function(e){return e.wantedTemplate})),l=null!=n?n:null==s||null===(t=s.fields)||void 0===t?void 0:t.required_plugins.filter((function(e){return"editorplus"!==e}));return sn(l).then((function(){Gr.setState({importOnLoad:!0}),(0,o.render)((0,nn.jsx)(ro,{}),document.getElementById("extendify-root"))})).catch((function(e){var t=e.message;a(t)})),i?(0,nn.jsx)(ho,{msg:i}):(0,nn.jsx)(qt.Modal,{title:(0,Ht.__)("Installing plugins","extendify"),isDismissible:!1,children:(0,nn.jsx)(qt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,Ht.__)("Installing...","extendify")})})}function vo(e){var t,n,r,i,a,s=e.forceOpen,l=e.buttonLabel,u=e.title,c=e.message,f=e.requiredPlugins,d=Gr((function(e){return e.wantedTemplate}));f=null!==(t=f)&&void 0!==t?t:null==d||null===(n=d.fields)||void 0===n?void 0:n.required_plugins;return null!==(r=J.getState())&&void 0!==r&&r.canInstallPlugins?(0,nn.jsxs)(qt.Modal,{title:null!=u?u:(0,Ht.__)("Install required plugins","extendify"),isDismissible:!1,children:[(0,nn.jsx)("p",{style:{maxWidth:"400px"},children:null!=c?c:(0,Ht.__)((0,Ht.sprintf)("There is just one more step. This %s requires the following to be automatically installed and activated:",null!==(i=null==d||null===(a=d.fields)||void 0===a?void 0:a.type)&&void 0!==i?i:"template"),"extendify")}),(null==c?void 0:c.length)>0||(0,nn.jsx)("ul",{children:f.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,nn.jsx)("li",{children:Xr(e)},e)}))}),(0,nn.jsxs)(qt.ButtonGroup,{children:[(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,nn.jsx)(yo,{requiredPlugins:f}),document.getElementById("extendify-root"))},children:null!=l?l:(0,Ht.__)("Install Plugins","extendify")}),s||(0,nn.jsx)(qt.Button,{isTertiary:!0,onClick:function(){s||(0,o.render)((0,nn.jsx)(Ma,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,Ht.__)("No thanks, take me back","extendify")})]})]}):(0,nn.jsx)(Qr,{})}function go(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var bo=function(){var e,t=(e=a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wr(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,o.render)((0,nn.jsx)(vo,{}),document.getElementById("extendify-root"))}))},e.abrupt("return",{id:"hasRequiredPlugins",pass:e.t0,allow:e.t1,deny:e.t2});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){go(i,r,o,a,s,"next",e)}function s(e){go(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function wo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return jo(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 jo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function jo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ko(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Eo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ko(i,r,o,a,s,"next",e)}function s(e){ko(i,r,o,a,s,"throw",e)}a(void 0)}))}}function _o(e){return new Oo(e)}function So(e){return function(){return new Co(e.apply(this,arguments))}}function Co(e){var t,n;function r(t,n){try{var i=e[t](n),a=i.value,s=a instanceof Oo;Promise.resolve(s?a.wrapped:a).then((function(e){s?r("return"===t?"return":"next",e):o(i.done?"return":"normal",e)}),(function(e){r("throw",e)}))}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise((function(i,a){var s={key:e,arg:o,resolve:i,reject:a,next:null};n?n=n.next=s:(t=n=s,r(e,o))}))},"function"!=typeof e.return&&(this.return=void 0)}function Oo(e){this.wrapped=e}Co.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Co.prototype.next=function(e){return this._invoke("next",e)},Co.prototype.throw=function(e){return this._invoke("throw",e)},Co.prototype.return=function(e){return this._invoke("return",e)};function Ao(e){return Po.apply(this,arguments)}function Po(){return(Po=Eo(a().mark((function e(t){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=To(t.stack);case 1:return r=void 0,e.prev=3,e.next=6,n.next();case 6:r=e.sent,e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(3),t.reset(),"Middleware exited";case 13:if(!r.done){e.next=15;break}return e.abrupt("break",17);case 15:e.next=1;break;case 17:case"end":return e.stop()}}),e,null,[[3,9]])})))).apply(this,arguments)}function To(e){return No.apply(this,arguments)}function No(){return(No=So(a().mark((function e(t){var n,r,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=wo(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}return o=r.value,e.next=7,_o(o());case 7:return e.next=9,e.sent;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),n.e(e.t0);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})))).apply(this,arguments)}function Ro(e,t){var n=(0,eo.dispatch)("core/block-editor"),r=n.insertBlocks,o=n.replaceBlock,i=(0,eo.select)("core/block-editor"),a=i.getSelectedBlock,s=i.getBlockHierarchyRootClientId,l=i.getBlockIndex,u=i.getGlobalBlockCount,c=a()||{},f=c.clientId,d=c.name,p=c.attributes,h=f?s(f):"",m=(h?l(h):u())+1;return("core/paragraph"===d&&""===(null==p?void 0:p.content)?o(f,e):r(e,m)).then((function(){return window.dispatchEvent(new CustomEvent("extendify::template-inserted",{detail:{template:t},bubbles:!0}))}))}var Io=n(4306);function Lo(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mo(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 Mo(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 Mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Do=function(e){var t,n,r,i,a,s=e.template,l=null!=s&&null!==(t=s.fields)&&void 0!==t&&null!==(n=t.basePattern)&&void 0!==n&&n.length?null==s||null===(r=s.fields)||void 0===r?void 0:r.basePattern[0]:"",u=Lo((0,o.useState)(l),2),c=u[0],f=u[1];return(0,o.useEffect)((function(){null!=l&&l.length&&c!==l&&setTimeout((function(){return f(l)}),1e3)}),[c,l]),l?(0,nn.jsxs)("div",{className:"absolute bottom-0 left-0 z-50 mb-4 ml-4 flex items-center space-x-2 opacity-0 transition duration-100 group-hover:opacity-100 space-x-0.5",children:[(0,nn.jsx)(Io.CopyToClipboard,{text:null==s||null===(i=s.fields)||void 0===i?void 0:i.basePattern,onCopy:function(){return f((0,Ht.__)("Copied!","extendify"))},children:(0,nn.jsx)("button",{className:"text-sm rounded-md border border-black bg-white py-1 px-2.5 font-medium text-black no-underline m-0 cursor-pointer",children:(0,Ht.sprintf)((0,Ht.__)("Base: %s","extendify"),c)})}),(0,nn.jsx)("a",{target:"_blank",className:"text-sm rounded-md border border-black bg-white py-1 px-2.5 font-medium text-black no-underline m-0",href:null==s||null===(a=s.fields)||void 0===a?void 0:a.editURL,rel:"noreferrer",children:(0,Ht.__)("Edit","extendify")})]}):null};function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){Uo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zo=(0,o.forwardRef)((function(e,t){var n,r=e.isOpen,i=e.heading,a=e.onClose,s=e.children,l=(0,o.useRef)(null),u=S((function(e){return e.removeAllModals}));return a=null!==(n=a)&&void 0!==n?n:u,(0,nn.jsx)(tr,{appear:!0,show:r,as:o.Fragment,className:"extendify",children:(0,nn.jsx)(Wt,{initialFocus:null!=t?t:l,onClose:a,children:(0,nn.jsxs)("div",{className:"fixed inset-0 z-high flex",children:[(0,nn.jsx)(tr.Child,{as:o.Fragment,enter:"ease-out duration-200 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,nn.jsx)(Wt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40"})}),(0,nn.jsx)(tr.Child,{as:o.Fragment,enter:"ease-out duration-300 translate transform",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,nn.jsx)("div",{className:"relative m-auto w-full",children:(0,nn.jsxs)("div",{className:"relative m-auto w-full max-w-lg items-center justify-center rounded-sm bg-white shadow-modal",children:[i?(0,nn.jsxs)("div",{className:"flex items-center justify-between border-b py-2 pl-6 pr-3 leading-none",children:[(0,nn.jsx)("span",{className:"whitespace-nowrap text-base text-extendify-black",children:i}),(0,nn.jsx)($o,{onClick:a})]}):(0,nn.jsx)("div",{className:"absolute top-0 right-0 block px-4 py-4 ",children:(0,nn.jsx)($o,{ref:l,onClick:a})}),(0,nn.jsx)("div",{children:s})]})})})]})})})})),$o=(0,o.forwardRef)((function(e,t){return(0,nn.jsx)(qt.Button,Fo(Fo({},e),{},{icon:(0,nn.jsx)(Yt,{icon:Mn}),ref:t,className:"text-extendify-black opacity-75 hover:opacity-100",showTooltip:!1,label:(0,Ht.__)("Close dialog","extendify")}))}));function Vo(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Wo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Vo(i,r,o,a,s,"next",e)}function s(e){Vo(i,r,o,a,s,"throw",e)}a(void 0)}))}}function qo(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ho(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 Ho(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 Ho(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Yo=function(){var e=qo((0,o.useState)(!1),2),t=e[0],n=e[1],r=qo((0,o.useState)(!1),2),i=r[0],s=r[1],l=Fr(),u=function(){var e=Wo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=2;break}return e.abrupt("return");case 2:if(n(!0),!i){e.next=11;break}return s(!1),J.setState({participatingTestsGroups:[]}),e.next=8,J.persist.rehydrate();case 8:return window.extendifyData._canRehydrate=!1,n(!1),e.abrupt("return");case 11:return J.persist.clearStorage(),S.persist.clearStorage(),e.next=15,new Promise((function(e){return setTimeout(e,1e3)}));case 15:window.extendifyData._canRehydrate=!0,s(!0),n(!1);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),c=function(){var e=Wo(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new URLSearchParams(window.location.search)).delete("LOCALMODE",1),t[t.has("DEVMODE")||l?"delete":"append"]("DEVMODE",1),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString()),e.next=6,new Promise((function(e){return setTimeout(e,500)}));case 6:window.dispatchEvent(new Event("popstate")),ye.getState().resetTemplates(),ye.getState().updateSearchParams({}),le.persist.clearStorage(),le.persist.rehydrate(),ye.setState({taxonomyDefaultState:{}}),le.getState().fetchTaxonomies().then((function(){ye.getState().setupDefaultTaxonomies()}));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return window.extendifyData.devbuild?(0,nn.jsxs)("section",{className:"p-6 flex flex-col space-y-6 border-l-8 border-extendify-secondary",children:[(0,nn.jsxs)("div",{children:[(0,nn.jsx)("p",{className:"text-base m-0 text-extendify-black",children:"Development Settings"}),(0,nn.jsx)("p",{className:"text-sm italic m-0 text-gray-500",children:"Only available on dev builds"})]}),(0,nn.jsxs)("div",{className:"flex space-x-2",children:[(0,nn.jsxs)(qt.Button,{isSecondary:!0,onClick:c,children:["Switch to ",l?"Live":"Dev"," Server"]}),(0,nn.jsx)(qt.Button,{isSecondary:!0,onClick:u,children:t?"Processing...":i?"OK! Press to rehydrate app":"Reset User Data"})]})]}):null};function Go(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Jo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Go(i,r,o,a,s,"next",e)}function s(e){Go(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Ko(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xo(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 Xo(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 Xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zo(e){var t=e.actionCallback,n=e.initialFocus,r=J((function(e){return e.apiKey.length})),i=Ko((0,o.useState)(""),2),s=i[0],l=i[1],u=Ko((0,o.useState)(""),2),c=u[0],f=u[1],d=Ko((0,o.useState)(""),2),p=d[0],h=d[1],m=Ko((0,o.useState)("info"),2),x=m[0],y=m[1],v=Ko((0,o.useState)(!1),2),g=v[0],b=v[1],w=Ko((0,o.useState)(!1),2),j=w[0],k=w[1],E=(0,o.useRef)(null),_=(0,o.useRef)(null),S=Fr();(0,o.useEffect)((function(){return l(J.getState().email),function(){return y("info")}}),[]),(0,o.useEffect)((function(){var e;j&&(null==E||null===(e=E.current)||void 0===e||e.focus())}),[j]);var C=function(){var e=Jo(a().mark((function e(t){var n,r,o,i,l;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),b(!0),h(""),e.next=5,N(s,c);case 5:if(n=e.sent,r=n.token,o=n.error,i=n.exception,void 0===(l=n.message)){e.next=15;break}return y("error"),b(!1),h(null!=l&&l.length?l:"Error: Are you interacting with the wrong server?"),e.abrupt("return");case 15:if(!o&&!i){e.next=20;break}return y("error"),b(!1),h(null!=o&&o.length?o:i),e.abrupt("return");case 20:if(r&&"string"==typeof r){e.next=25;break}return y("error"),b(!1),h((0,Ht.__)("Something went wrong","extendify")),e.abrupt("return");case 25:y("success"),h("Success!"),k(!0),b(!1),J.setState({email:s,apiKey:r});case 30:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return j?(0,nn.jsxs)("section",{className:"space-y-6 p-6 text-center flex flex-col items-center",children:[(0,nn.jsx)(Yt,{icon:Nn,size:148}),(0,nn.jsx)("p",{className:"text-center text-lg font-semibold m-0 text-extendify-black",children:(0,Ht.__)("You've signed in to Extendify","extendify")}),(0,nn.jsx)(qt.Button,{ref:E,className:"cursor-pointer rounded bg-extendify-main p-2 px-4 text-center text-white",onClick:t,children:(0,Ht.__)("View patterns","extendify")})]}):r?(0,nn.jsxs)("section",{className:"w-full space-y-6 p-6",children:[(0,nn.jsx)("p",{className:"text-base m-0 text-extendify-black",children:(0,Ht.__)("Account","extendify")}),(0,nn.jsxs)("div",{className:"flex items-center justify-between",children:[(0,nn.jsxs)("div",{className:"-ml-2 flex items-center space-x-2",children:[(0,nn.jsx)(Yt,{icon:Ln,size:48}),(0,nn.jsx)("p",{className:"text-extendify-black",children:null!=s&&s.length?s:(0,Ht.__)("Logged In","extendify")})]}),S&&(0,nn.jsx)(qt.Button,{className:"cursor-pointer rounded bg-extendify-main px-4 py-3 text-center text-white hover:bg-extendify-main-dark",onClick:function(){f(""),J.setState({apiKey:""}),setTimeout((function(){var e;null==_||null===(e=_.current)||void 0===e||e.focus()}),0)},children:(0,Ht.__)("Sign out","extendify")})]})]}):(0,nn.jsxs)("section",{className:"space-y-6 p-6 text-left",children:[(0,nn.jsxs)("div",{children:[(0,nn.jsx)("p",{className:"text-center text-lg font-semibold m-0 text-extendify-black",children:(0,Ht.__)("Sign in to Extendify","extendify")}),(0,nn.jsxs)("p",{className:"space-x-1 text-center text-sm m-0 text-extendify-gray",children:[(0,nn.jsx)("span",{children:(0,Ht.__)("Don't have an account?","extendify")}),(0,nn.jsx)("a",{href:"https://extendify.com/pricing?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=sign-in-form&utm_content=sign-up&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),target:"_blank",onClick:Jo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("sign-up-link-from-login-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),className:"underline hover:no-underline text-extendify-gray",rel:"noreferrer",children:(0,Ht.__)("Sign up","extendify")})]})]}),(0,nn.jsxs)("form",{onSubmit:C,className:"flex flex-col items-center justify-center space-y-2",children:[(0,nn.jsxs)("div",{className:"flex items-center",children:[(0,nn.jsx)("label",{className:"sr-only",htmlFor:"extendify-login-email",children:(0,Ht.__)("Email address","extendify")}),(0,nn.jsx)("input",{ref:n,id:"extendify-login-email",name:"extendify-login-email",style:{minWidth:"320px"},type:"email",className:"w-full rounded border-2 p-2",placeholder:(0,Ht.__)("Email address","extendify"),value:s.length?s:"",onChange:function(e){return l(e.target.value)}})]}),(0,nn.jsxs)("div",{className:"flex items-center",children:[(0,nn.jsx)("label",{className:"sr-only",htmlFor:"extendify-login-license",children:(0,Ht.__)("License key","extendify")}),(0,nn.jsx)("input",{ref:_,id:"extendify-login-license",name:"extendify-login-license",style:{minWidth:"320px"},type:"text",className:"w-full rounded border-2 p-2",placeholder:(0,Ht.__)("License key","extendify"),value:c,onChange:function(e){return f(e.target.value)}})]}),(0,nn.jsx)("div",{className:"flex justify-center pt-2",children:(0,nn.jsxs)("button",{type:"submit",className:"relative flex w-72 max-w-full cursor-pointer justify-center rounded bg-extendify-main p-2 py-3 text-center text-base text-white hover:bg-extendify-main-dark ",children:[(0,nn.jsx)("span",{children:(0,Ht.__)("Sign In","extendify")}),g&&(0,nn.jsx)("div",{className:"absolute right-2.5",children:(0,nn.jsx)(qt.Spinner,{})})]})}),p&&(0,nn.jsx)("div",{className:Jt()({"border-gray-900 text-gray-900":"info"===x,"border-wp-alert-red text-wp-alert-red":"error"===x,"border-extendify-main text-extendify-main":"success"===x}),children:p}),(0,nn.jsx)("div",{className:"pt-4 text-center",children:(0,nn.jsx)("a",{target:"_blank",rel:"noreferrer",href:"https://extendify.com/guides/sign-in?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=sign-in-form&utm_content=need-help&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),onClick:Jo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("need-help-link-from-login-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),className:"underline hover:no-underline text-sm text-extendify-gray",children:(0,Ht.__)("Need Help?","extendify")})})]})]})}var Qo=function(){var e=(0,o.useRef)(null),t=S((function(e){return e.removeAllModals}));return(0,nn.jsx)(zo,{heading:(0,Ht.__)("Settings","extendify"),isOpen:!0,ref:e,children:(0,nn.jsxs)("div",{className:"flex justify-center flex-col divide-y",children:[(0,nn.jsx)(Yo,{}),(0,nn.jsx)(Zo,{initialFocus:e,actionCallback:t})]})})};function ei(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ti(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ei(i,r,o,a,s,"next",e)}function s(e){ei(i,r,o,a,s,"throw",e)}a(void 0)}))}}var ni=function(){var e=S((function(e){return e.pushModal})),t=(0,o.useRef)(null);return(0,nn.jsxs)(nr,{isOpen:!0,ref:t,leftContainerBgColor:"bg-white",children:[(0,nn.jsxs)("div",{children:[(0,nn.jsx)("div",{className:"mb-5 flex items-center space-x-2 text-extendify-black",children:En}),(0,nn.jsx)("h3",{className:"mt-0 text-xl",children:(0,Ht.__)("You're out of imports","extendify")}),(0,nn.jsx)("p",{className:"text-sm text-black",children:(0,Ht.__)("Sign up today and get unlimited access to our entire collection of patterns and page layouts.","extendify")}),(0,nn.jsxs)("div",{children:[(0,nn.jsxs)("a",{target:"_blank",ref:t,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},href:"https://extendify.com/pricing/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=no-imports-modal&utm_content=get-unlimited-imports&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),onClick:ti(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("no-imports-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),rel:"noreferrer",children:[(0,Ht.__)("Get Unlimited Imports","extendify"),(0,nn.jsx)(qt.Icon,{icon:An,size:24,className:"-mr-1"})]}),(0,nn.jsxs)("p",{className:"mb-0 text-left text-sm text-extendify-gray",children:[(0,Ht.__)("Have an account?","extendify"),(0,nn.jsx)(qt.Button,{onClick:function(){return e((0,nn.jsx)(Qo,{}))},className:"pl-2 text-sm text-extendify-gray underline hover:no-underline",children:(0,Ht.__)("Sign in","extendify")})]})]})]}),(0,nn.jsxs)("div",{className:"flex h-full flex-col justify-center space-y-2 p-10 text-black",children:[(0,nn.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,nn.jsx)(qt.Icon,{icon:Tn,size:24}),(0,nn.jsx)("span",{className:"text-sm leading-none",children:(0,Ht.__)("Access to 100's of Patterns","extendify")})]}),(0,nn.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,nn.jsx)(qt.Icon,{icon:_n,size:24}),(0,nn.jsx)("span",{className:"text-sm leading-none",children:(0,Ht.__)('Access to "Pro" catalog',"extendify")})]}),(0,nn.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,nn.jsx)(qt.Icon,{icon:Pn,size:24}),(0,nn.jsx)("span",{className:"text-sm leading-none",children:(0,Ht.__)("Beautiful full page layouts","extendify")})]}),(0,nn.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,nn.jsx)(qt.Icon,{icon:Rn,size:24}),(0,nn.jsx)("span",{className:"text-sm leading-none",children:(0,Ht.__)("Fast and friendly support","extendify")})]}),(0,nn.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,nn.jsx)(qt.Icon,{icon:In,size:24}),(0,nn.jsx)("span",{className:"text-sm leading-none",children:(0,Ht.__)("14-Day guarantee","extendify")})]})]})]})};function ri(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function oi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ri(i,r,o,a,s,"next",e)}function s(e){ri(i,r,o,a,s,"throw",e)}a(void 0)}))}}var ii=function(){var e=(0,o.useRef)(null);return(0,nn.jsxs)(nr,{isOpen:!0,invertedButtonColor:!0,ref:e,children:[(0,nn.jsxs)("div",{children:[(0,nn.jsx)("div",{className:"mb-5 flex items-center space-x-2 text-extendify-black",children:En}),(0,nn.jsx)("h3",{className:"mt-0 text-xl",children:(0,Ht.__)("Get unlimited access to all our Pro patterns & layouts","extendify")}),(0,nn.jsx)("p",{className:"text-sm text-black",children:(0,Ht.__)("Upgrade to Extendify Pro and use all the patterns and layouts you'd like, including our exclusive Pro catalog.","extendify")}),(0,nn.jsx)("div",{children:(0,nn.jsxs)("a",{target:"_blank",ref:e,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},href:"https://extendify.com/pricing/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=pro-modal&utm_content=upgrade-now&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),onClick:oi(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("pro-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),rel:"noreferrer",children:[(0,Ht.__)("Upgrade Now","extendify"),(0,nn.jsx)(qt.Icon,{icon:An,size:24,className:"-mr-1"})]})})]}),(0,nn.jsx)("div",{className:"justify-endrounded-tr-sm flex w-full rounded-br-sm bg-black",children:(0,nn.jsx)("img",{alt:(0,Ht.__)("Upgrade Now","extendify"),className:"max-w-full rounded-tr-sm rounded-br-sm",src:window.extendifyData.asset_path+"/modal-extendify-black.png"})})]})};function ai(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function si(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function li(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ui(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 ui(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 ui(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ci=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{hasRequiredPlugins:bo,hasPluginsActivated:po,stack:[],check:function(t){var n=this;return Eo(a().mark((function r(){var o,i,s,l;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=wo(e),r.prev=1,o.s();case 3:if((i=o.n()).done){r.next=11;break}return s=i.value,r.next=7,n["".concat(s)](t);case 7:l=r.sent,n.stack.push(l.pass?l.allow:l.deny);case 9:r.next=3;break;case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),o.e(r.t0);case 16:return r.prev=16,o.f(),r.finish(16);case 19:case"end":return r.stop()}}),r,null,[[1,13,16,19]])})))()},reset:function(){this.stack=[]}}}(["hasRequiredPlugins","hasPluginsActivated"]);function fi(e){var t,n,i,s,l,u,c=e.template,f=e.maxHeight,d=(0,o.useRef)(null),p=J((function(e){return e.hasAvailableImports})),h=J((function(e){return e.apiKey.length})),m=S((function(e){return e.setOpen})),x=S((function(e){return e.pushModal})),y=S((function(e){return e.removeAllModals})),v=li((0,o.useState)(0),2),g=v[0],b=v[1],w=Array.isArray(null==c||null===(t=c.fields)||void 0===t?void 0:t.type)?c.fields.type[0]:null==c||null===(n=c.fields)||void 0===n?void 0:n.type,j=(0,o.useMemo)((function(){return(0,r.rawHandler)({HTML:di(c.fields.code)})}),[c.fields.code]),k=(0,o.useMemo)((function(){return(0,r.rawHandler)({HTML:c.fields.code})}),[c.fields.code]),E=Fr(),_=function(){var e,t=(e=a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ci.check(c);case 2:Ao(ci).then((function(){setTimeout((function(){Ro(k,c).then((function(){return y()})).then((function(){return m(!1)})).then((function(){return ci.reset()}))}),100)})).catch((function(){}));case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){si(i,r,o,a,s,"next",e)}function s(e){si(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),C=function(){var e;Rr(c),null==c||null===(e=c.fields)||void 0===e||!e.pro||h?p()?_():x((0,nn.jsx)(ni,{})):x((0,nn.jsx)(ii,{}))};return(0,o.useEffect)((function(){if(Number.isInteger(f)&&"layout"===w){var e=d.current,t=function(){var t=e.offsetHeight;e.style.transitionDuration=1.5*t+"ms",b(-1*Math.abs(t-f))},n=function(){var t=e.offsetHeight;e.style.transitionDuration=t/1.5+"ms",b(0)};return e.addEventListener("focus",t),e.addEventListener("mouseenter",t),e.addEventListener("blur",n),e.addEventListener("mouseleave",n),function(){e.removeEventListener("focus",t),e.removeEventListener("mouseenter",t),e.removeEventListener("blur",n),e.removeEventListener("mouseleave",n)}}}),[f,w]),(0,nn.jsxs)("div",{className:"group relative",children:[(0,nn.jsx)("div",{role:"button",tabIndex:"0","aria-label":(0,Ht.sprintf)((0,Ht.__)("Press to import %s","extendify"),null==c||null===(i=c.fields)||void 0===i?void 0:i.type),style:{maxHeight:f},className:"button-focus relative m-0 cursor-pointer overflow-hidden bg-gray-100 ease-in-out",onClick:C,onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(e.stopPropagation(),e.preventDefault(),C())},children:(0,nn.jsx)("div",{ref:d,style:{top:g,transitionProperty:"all"},className:Jt()("with-light-shadow relative",(l={},ai(l,"is-template--".concat(c.fields.status),(null==c||null===(s=c.fields)||void 0===s?void 0:s.status)&&E),ai(l,"p-6 md:p-8",Number.isInteger(f)),l)),children:(0,nn.jsx)(Mr.BlockPreview,{blocks:j,live:!1,viewportWidth:1400})})}),E&&(0,nn.jsx)(Do,{template:c}),(null==c||null===(u=c.fields)||void 0===u?void 0:u.pro)&&(0,nn.jsx)("div",{className:"pointer-events-none absolute top-4 right-4 z-20 rounded-md border border-none bg-white bg-wp-theme-500 py-1 px-2.5 font-medium text-white no-underline shadow-sm",children:(0,Ht.__)("Pro","extendify")})]})}var di=function(e){return e.replace(/\w+:\/\/\S*(w=(\d*))&(h=(\d*))&\w+\S*"/g,(function(e,t,n,r,o){return e.replace(t,"w="+Math.floor(Number(n)/2)).replace(r,"h="+Math.floor(Number(o)/2))}))};function pi(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return hi(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 hi(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 hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mi=(0,o.memo)((function(){var e=function(){var e=(0,o.useRef)(!1);return(0,o.useEffect)((function(){return e.current=!0,function(){return e.current=!1}})),e}(),t=ye((function(e){return e.templates})),n=pi((0,o.useState)(0),2),r=n[0],i=n[1],a=ye((function(e){return e.appendTemplates})),l=pi((0,o.useState)(""),2),u=l[0],c=l[1],f=(0,o.useRef)(!1),d=pi((0,o.useState)(!1),2),p=d[0],h=d[1],m=pi((0,o.useState)(!1),2),x=m[0],y=m[1],v=function(e){var t=void 0===e?{}:e,n=t.threshold,r=t.delay,o=t.trackVisibility,i=t.rootMargin,a=t.root,l=t.triggerOnce,u=t.skip,c=t.initialInView,f=t.fallbackInView,d=s.useRef(),p=s.useState({inView:!!c}),h=p[0],m=p[1],x=s.useCallback((function(e){void 0!==d.current&&(d.current(),d.current=void 0),u||e&&(d.current=yr(e,(function(e,t){m({inView:e,entry:t}),t.isIntersecting&&l&&d.current&&(d.current(),d.current=void 0)}),{root:a,rootMargin:i,threshold:n,trackVisibility:o,delay:r},f))}),[Array.isArray(n)?n.toString():n,a,i,l,u,o,f,r]);(0,s.useEffect)((function(){d.current||!h.entry||l||u||m({inView:!!c})}));var y=[x,h.inView,h.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}(),g=pi(v,2),b=g[0],w=g[1],j=ye((function(e){return e.searchParams})),k=S((function(e){return e.currentType})),E=ye((function(e){return e.resetTemplates})),_=S((function(e){return e.open})),C=le((function(e){return e.taxonomies})),O=ye((function(e){return e.updateType})),P=ye((function(e){return e.updateTaxonomies})),T=(0,o.useRef)(ye.getState().nextPage),N=(0,o.useRef)(ye.getState().searchParams),R="pattern"===N.current.type?"patternType":"layoutType",I=N.current.taxonomies[R];(0,o.useEffect)((function(){return ye.subscribe((function(e){return e.nextPage}),(function(e){return T.current=e}))}),[]),(0,o.useEffect)((function(){return ye.subscribe((function(e){return e.searchParams}),(function(e){return N.current=e}))}),[]);var L,M=(0,o.useCallback)((function(){var t,n,r;c(""),h(!1);var o=(0,Ht.__)("Unknown error occurred. Check browser console or contact support.","extendify"),s={offset:T.current},l=null!==(t=N.current.taxonomies)&&void 0!==t&&null!==(n=t.siteType)&&void 0!==n&&null!==(r=n.slug)&&void 0!==r&&r.length?N.current.taxonomies.siteType:{slug:"default"},u=(0,A.cloneDeep)(N.current);u.taxonomies.siteType=l,Nr(u,s).then((function(t){var n,r,o,s;e.current&&(null!=t&&null!==(n=t.error)&&void 0!==n&&n.length?c(null==t?void 0:t.error):(null==t||null===(r=t.records)||void 0===r?void 0:r.length)<=0?h(!0):j===N.current&&null!=t&&null!==(o=t.records)&&void 0!==o&&o.length&&(ye.setState({nextPage:null!==(s=null==t?void 0:t.offset)&&void 0!==s?s:""}),a(t.records),i((function(e){return t.records.length+e})),y(!1)))})).catch((function(t){e.current&&(console.error(t),c(o))}))}),[a,e,j]);return(0,o.useEffect)((function(){0!==(null==t?void 0:t.length)||y(!0)}),[null==t?void 0:t.length,j]),(0,o.useEffect)((function(){!f.current&&u.length&&(f.current=!0,M())}),[u,M]),(0,o.useEffect)((function(){var e;if(_&&null!=C&&null!==(e=C.patternType)&&void 0!==e&&e.length){var t=new URLSearchParams(window.location.search);if(t.has("ext-patternType")){var n=t.get("ext-patternType");t.delete("ext-patternType"),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString());var r=C.patternType.find((function(e){return e.slug===n}));r&&(P({patternType:r}),O("pattern"))}}}),[_,C,O,P]),(0,o.useEffect)((function(){var e,t;if(null!==(e=Object.keys(null===(t=N.current)||void 0===t?void 0:t.taxonomies))&&void 0!==e&&e.length){if(!ye.getState().skipNextFetch)return M(),function(){return E()};ye.setState({skipNextFetch:!1})}}),[M,N,E]),(0,o.useEffect)((function(){T.current&&w&&M()}),[w,M,r]),u.length&&f.current?(0,nn.jsxs)("div",{className:"text-left",children:[(0,nn.jsx)("h2",{className:"text-left",children:(0,Ht.__)("Server error","extendify")}),(0,nn.jsx)("code",{className:"mb-4 block max-w-xl p-4",style:{minHeight:"10rem"},children:u}),(0,nn.jsx)(qt.Button,{isTertiary:!0,onClick:function(){f.current=!1,M()},children:(0,Ht.__)("Press here to reload")})]}):p?(0,nn.jsx)("div",{className:"-mt-2 flex h-full w-full items-center justify-center sm:mt-0",children:(0,nn.jsx)("h2",{className:"text-sm font-normal text-extendify-gray",children:(0,Ht.sprintf)("template"===N.current.type?(0,Ht.__)('We couldn\'t find any layouts in the "%s" category.',"extendify"):(0,Ht.__)('We couldn\'t find any patterns in the "%s" category.',"extendify"),null!==(L=null==I?void 0:I.title)&&void 0!==L?L:I.slug)})}):(0,nn.jsxs)(nn.Fragment,{children:[x&&(0,nn.jsx)("div",{className:"-mt-2 flex h-full w-full items-center justify-center sm:mt-0",children:(0,nn.jsx)(qt.Spinner,{})}),(0,nn.jsx)(xi,{type:k,templates:t,children:t.map((function(e){return(0,nn.jsx)(fi,{maxHeight:"template"===k?520:"none",template:e},e.id)}))}),T.current&&(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("div",{className:"mt-8",children:(0,nn.jsx)(qt.Spinner,{})}),(0,nn.jsx)("div",{className:"relative flex flex-col items-end justify-end -top-1/4 h-4",ref:b,style:{zIndex:-1}})]})]})})),xi=function(e){var t=e.type,n=e.children,r="relative min-h-screen z-10 pb-40 pt-0.5";if("template"===t)return(0,nn.jsx)("div",{className:"grid gap-6 md:gap-8 lg:grid-cols-2 ".concat(r),children:n});return(0,nn.jsx)(Or,{breakpointCols:{default:3,1600:2,860:1,599:2,400:1},className:"-ml-6 flex w-auto px-0.5 md:-ml-8 ".concat(r),columnClassName:"pl-6 md:pl-8 bg-clip-padding space-y-6 md:space-y-8",children:n})};function yi(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function vi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){yi(i,r,o,a,s,"next",e)}function s(e){yi(i,r,o,a,s,"throw",e)}a(void 0)}))}}var gi=(0,o.memo)((function(){var e=J((function(e){return e.remainingImports})),t=J((function(e){return e.allowedImports})),n=e(),r=n>0?"has-imports":"no-imports",i=(0,o.useRef)();return(0,o.useEffect)((function(){if(t<1||!t){L().then((function(e){e=/^[1-9]\d*$/.test(e)?e:5,J.setState({allowedImports:e})})).catch((function(){return J.setState({allowedImports:5})}))}}),[t]),t?(0,nn.jsxs)("div",{tabIndex:"0",className:"group relative mb-5",children:[(0,nn.jsxs)("a",{target:"_blank",ref:i,rel:"noreferrer",className:Jt()("button-focus hidden w-full justify-between rounded py-3 px-4 text-sm text-white no-underline sm:flex",{"bg-wp-theme-500 hover:bg-wp-theme-600":n>0,"bg-extendify-alert":!n}),onClick:vi(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("import-counter-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),href:"https://www.extendify.com/pricing/?utm_source=".concat(encodeURIComponent(window.extendifyData.sdk_partner),"&utm_medium=library&utm_campaign=import-counter&utm_content=get-more&utm_term=").concat(r,"&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),children:[(0,nn.jsxs)("span",{className:"flex items-center space-x-2 text-xs no-underline",children:[(0,nn.jsx)(Yt,{icon:n>0?Sn:wn,size:14}),(0,nn.jsx)("span",{children:(0,Ht.sprintf)((0,Ht._n)("%s Import","%s Imports",n,"extendify"),n)})]}),(0,nn.jsxs)("span",{className:"outline-none flex items-center text-sm font-medium text-white no-underline",children:[(0,Ht.__)("Get more","extendify"),(0,nn.jsx)(Yt,{icon:An,size:24,className:"-mr-1.5"})]})]}),(0,nn.jsx)("div",{className:"extendify-bottom-arrow invisible absolute top-0 w-full -translate-y-full transform opacity-0 shadow-md transition-all delay-200 duration-300 ease-in-out group-hover:visible group-hover:-top-2.5 group-hover:opacity-100 group-focus:visible group-focus:-top-2.5 group-focus:opacity-100",tabIndex:"-1",children:(0,nn.jsx)("a",{href:"https://www.extendify.com/pricing/?utm_source=".concat(encodeURIComponent(window.extendifyData.sdk_partner),"&utm_medium=library&utm_campaign=import-counter-tooltip&utm_content=get-50-off&utm_term=").concat(r,"&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),className:"block bg-gray-900 text-white p-4 no-underline rounded bg-cover",onClick:vi(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("import-counter-tooltip-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),style:{backgroundImage:"url(".concat(window.extendifyData.asset_path,"/logo-tips.png)"),backgroundSize:"100% 100%"},children:(0,nn.jsx)("span",{dangerouslySetInnerHTML:{__html:bn((0,Ht.sprintf)((0,Ht.__)("%1$sGet %2$s off%3$s Extendify Pro when you upgrade today!","extendify"),"<strong>","50%","</strong>"))}})})})]}):null}));function bi(e){return Array.isArray?Array.isArray(e):"[object Array]"===Ci(e)}function wi(e){return"string"==typeof e}function ji(e){return"number"==typeof e}function ki(e){return!0===e||!1===e||function(e){return Ei(e)&&null!==e}(e)&&"[object Boolean]"==Ci(e)}function Ei(e){return"object"==typeof e}function _i(e){return null!=e}function Si(e){return!e.trim().length}function Ci(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Oi=Object.prototype.hasOwnProperty;class Ai{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=Pi(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Pi(e){let t=null,n=null,r=null,o=1,i=null;if(wi(e)||bi(e))r=e,t=Ti(e),n=Ni(e);else{if(!Oi.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const a=e.name;if(r=a,Oi.call(e,"weight")&&(o=e.weight,o<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(a));t=Ti(a),n=Ni(a),i=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:i}}function Ti(e){return bi(e)?e:e.split(".")}function Ni(e){return bi(e)?e.join("."):e}const Ri={useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const o=(e,t,i)=>{if(_i(e))if(t[i]){const a=e[t[i]];if(!_i(a))return;if(i===t.length-1&&(wi(a)||ji(a)||ki(a)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(a));else if(bi(a)){r=!0;for(let e=0,n=a.length;e<n;e+=1)o(a[e],t,i+1)}else t.length&&o(a,t,i+1)}else n.push(e)};return o(e,wi(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Ii={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...Ri};const Li=/[^ ]+/g;class Mi{constructor({getFn:e=Ii.getFn,fieldNormWeight:t=Ii.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const o=t.match(Li).length;if(n.has(o))return n.get(o);const i=1/Math.pow(o,.5*e),a=parseFloat(Math.round(i*r)/r);return n.set(o,a),a},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,wi(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();wi(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!_i(e)||Si(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach(((t,r)=>{let o=t.getFn?t.getFn(e):this.getFn(e,t.path);if(_i(o))if(bi(o)){let e=[];const t=[{nestedArrIndex:-1,value:o}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(_i(r))if(wi(r)&&!Si(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else bi(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(wi(o)&&!Si(o)){let e={v:o,n:this.norm.get(o)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function Di(e,t,{getFn:n=Ii.getFn,fieldNormWeight:r=Ii.fieldNormWeight}={}){const o=new Mi({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(Pi)),o.setSources(t),o.create(),o}function Bi(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=Ii.distance,ignoreLocation:i=Ii.ignoreLocation}={}){const a=t/e.length;if(i)return a;const s=Math.abs(r-n);return o?a+s/o:s?1:a}const Fi=32;function Ui(e,t,n,{location:r=Ii.location,distance:o=Ii.distance,threshold:i=Ii.threshold,findAllMatches:a=Ii.findAllMatches,minMatchCharLength:s=Ii.minMatchCharLength,includeMatches:l=Ii.includeMatches,ignoreLocation:u=Ii.ignoreLocation}={}){if(t.length>Fi)throw new Error(`Pattern length exceeds max of ${Fi}.`);const c=t.length,f=e.length,d=Math.max(0,Math.min(r,f));let p=i,h=d;const m=s>1||l,x=m?Array(f):[];let y;for(;(y=e.indexOf(t,h))>-1;){let e=Bi(t,{currentLocation:y,expectedLocation:d,distance:o,ignoreLocation:u});if(p=Math.min(e,p),h=y+c,m){let e=0;for(;e<c;)x[y+e]=1,e+=1}}h=-1;let v=[],g=1,b=c+f;const w=1<<c-1;for(let r=0;r<c;r+=1){let i=0,s=b;for(;i<s;){Bi(t,{errors:r,currentLocation:d+s,expectedLocation:d,distance:o,ignoreLocation:u})<=p?i=s:b=s,s=Math.floor((b-i)/2+i)}b=s;let l=Math.max(1,d-s+1),y=a?f:Math.min(d+s,f)+c,j=Array(y+2);j[y+1]=(1<<r)-1;for(let i=y;i>=l;i-=1){let a=i-1,s=n[e.charAt(a)];if(m&&(x[a]=+!!s),j[i]=(j[i+1]<<1|1)&s,r&&(j[i]|=(v[i+1]|v[i])<<1|1|v[i+1]),j[i]&w&&(g=Bi(t,{errors:r,currentLocation:a,expectedLocation:d,distance:o,ignoreLocation:u}),g<=p)){if(p=g,h=a,h<=d)break;l=Math.max(1,2*d-h)}}if(Bi(t,{errors:r+1,currentLocation:d,expectedLocation:d,distance:o,ignoreLocation:u})>p)break;v=j}const j={isMatch:h>=0,score:Math.max(.001,g)};if(m){const e=function(e=[],t=Ii.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let a=e.length;i<a;i+=1){let a=e[i];a&&-1===r?r=i:a||-1===r||(o=i-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}(x,s);e.length?l&&(j.indices=e):j.isMatch=!1}return j}function zi(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}class $i{constructor(e,{location:t=Ii.location,threshold:n=Ii.threshold,distance:r=Ii.distance,includeMatches:o=Ii.includeMatches,findAllMatches:i=Ii.findAllMatches,minMatchCharLength:a=Ii.minMatchCharLength,isCaseSensitive:s=Ii.isCaseSensitive,ignoreLocation:l=Ii.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:l},this.pattern=s?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const u=(e,t)=>{this.chunks.push({pattern:e,alphabet:zi(e),startIndex:t})},c=this.pattern.length;if(c>Fi){let e=0;const t=c%Fi,n=c-t;for(;e<n;)u(this.pattern.substr(e,Fi),e),e+=Fi;if(t){const e=c-Fi;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:r,distance:o,threshold:i,findAllMatches:a,minMatchCharLength:s,ignoreLocation:l}=this.options;let u=[],c=0,f=!1;this.chunks.forEach((({pattern:t,alphabet:d,startIndex:p})=>{const{isMatch:h,score:m,indices:x}=Ui(e,t,d,{location:r+p,distance:o,threshold:i,findAllMatches:a,minMatchCharLength:s,includeMatches:n,ignoreLocation:l});h&&(f=!0),c+=m,h&&x&&(u=[...u,...x])}));let d={isMatch:f,score:f?c/this.chunks.length:1};return f&&n&&(d.indices=u),d}}class Vi{constructor(e){this.pattern=e}static isMultiMatch(e){return Wi(e,this.multiRegex)}static isSingleMatch(e){return Wi(e,this.singleRegex)}search(){}}function Wi(e,t){const n=e.match(t);return n?n[1]:null}class qi extends Vi{constructor(e,{location:t=Ii.location,threshold:n=Ii.threshold,distance:r=Ii.distance,includeMatches:o=Ii.includeMatches,findAllMatches:i=Ii.findAllMatches,minMatchCharLength:a=Ii.minMatchCharLength,isCaseSensitive:s=Ii.isCaseSensitive,ignoreLocation:l=Ii.ignoreLocation}={}){super(e),this._bitapSearch=new $i(e,{location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Hi extends Vi{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],o=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+o,r.push([t,n-1]);const i=!!r.length;return{isMatch:i,score:i?0:1,indices:r}}}const Yi=[class extends Vi{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Hi,class extends Vi{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends Vi{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Vi{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Vi{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends Vi{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},qi],Gi=Yi.length,Ji=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const Ki=new Set([qi.type,Hi.type]);class Xi{constructor(e,{isCaseSensitive:t=Ii.isCaseSensitive,includeMatches:n=Ii.includeMatches,minMatchCharLength:r=Ii.minMatchCharLength,ignoreLocation:o=Ii.ignoreLocation,findAllMatches:i=Ii.findAllMatches,location:a=Ii.location,threshold:s=Ii.threshold,distance:l=Ii.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:i,ignoreLocation:o,location:a,threshold:s,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(Ji).filter((e=>e&&!!e.trim())),r=[];for(let e=0,o=n.length;e<o;e+=1){const o=n[e];let i=!1,a=-1;for(;!i&&++a<Gi;){const e=Yi[a];let n=e.isMultiMatch(o);n&&(r.push(new e(n,t)),i=!0)}if(!i)for(a=-1;++a<Gi;){const e=Yi[a];let n=e.isSingleMatch(o);if(n){r.push(new e(n,t));break}}}return r}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let o=0,i=[],a=0;for(let r=0,s=t.length;r<s;r+=1){const s=t[r];i.length=0,o=0;for(let t=0,r=s.length;t<r;t+=1){const r=s[t],{isMatch:l,indices:u,score:c}=r.search(e);if(!l){a=0,o=0,i.length=0;break}if(o+=1,a+=c,n){const e=r.constructor.type;Ki.has(e)?i=[...i,...u]:i.push(u)}}if(o){let e={isMatch:!0,score:a/o};return n&&(e.indices=i),e}}return{isMatch:!1,score:1}}}const Zi=[];function Qi(e,t){for(let n=0,r=Zi.length;n<r;n+=1){let r=Zi[n];if(r.condition(e,t))return new r(e,t)}return new $i(e,t)}const ea="$and",ta="$or",na="$path",ra="$val",oa=e=>!(!e[ea]&&!e[ta]),ia=e=>({[ea]:Object.keys(e).map((t=>({[t]:e[t]})))});function aa(e,t,{auto:n=!0}={}){const r=e=>{let o=Object.keys(e);const i=(e=>!!e[na])(e);if(!i&&o.length>1&&!oa(e))return r(ia(e));if((e=>!bi(e)&&Ei(e)&&!oa(e))(e)){const r=i?e[na]:o[0],a=i?e[ra]:e[r];if(!wi(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const s={keyId:Ni(r),pattern:a};return n&&(s.searcher=Qi(a,t)),s}let a={children:[],operator:o[0]};return o.forEach((t=>{const n=e[t];bi(n)&&n.forEach((e=>{a.children.push(r(e))}))})),a};return oa(e)||(e=ia(e)),r(e)}function sa(e,t){const n=e.matches;t.matches=[],_i(n)&&n.forEach((e=>{if(!_i(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let o={indices:n,value:r};e.key&&(o.key=e.key.src),e.idx>-1&&(o.refIndex=e.idx),t.matches.push(o)}))}function la(e,t){t.score=e.score}class ua{constructor(e,t={},n){this.options={...Ii,...t},this.options.useExtendedSearch,this._keyStore=new Ai(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Mi))throw new Error("Incorrect 'index' type");this._myIndex=t||Di(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){_i(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,r=this._docs.length;n<r;n+=1){const o=this._docs[n];e(o,n)&&(this.removeAt(n),n-=1,r-=1,t.push(o))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:o,sortFn:i,ignoreFieldNorm:a}=this.options;let s=wi(e)?wi(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=Ii.ignoreFieldNorm}){e.forEach((e=>{let n=1;e.matches.forEach((({key:e,norm:r,score:o})=>{const i=e?e.weight:null;n*=Math.pow(0===o&&i?Number.EPSILON:o,(i||1)*(t?1:r))})),e.score=n}))}(s,{ignoreFieldNorm:a}),o&&s.sort(i),ji(t)&&t>-1&&(s=s.slice(0,t)),function(e,t,{includeMatches:n=Ii.includeMatches,includeScore:r=Ii.includeScore}={}){const o=[];return n&&o.push(sa),r&&o.push(la),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return o.length&&o.forEach((t=>{t(e,r)})),r}))}(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=Qi(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:o})=>{if(!_i(e))return;const{isMatch:i,score:a,indices:s}=t.searchIn(e);i&&r.push({item:e,idx:n,matches:[{score:a,value:e,norm:o,indices:s}]})})),r}_searchLogical(e){const t=aa(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:o}=e,i=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:o});return i&&i.length?[{idx:r,item:t,matches:i}]:[]}const o=[];for(let i=0,a=e.children.length;i<a;i+=1){const a=e.children[i],s=n(a,t,r);if(s.length)o.push(...s);else if(e.operator===ea)return[]}return o},r=this._myIndex.records,o={},i=[];return r.forEach((({$:e,i:r})=>{if(_i(e)){let a=n(t,e,r);a.length&&(o[r]||(o[r]={idx:r,item:e,matches:[]},i.push(o[r])),a.forEach((({matches:e})=>{o[r].matches.push(...e)})))}})),i}_searchObjectList(e){const t=Qi(e,this.options),{keys:n,records:r}=this._myIndex,o=[];return r.forEach((({$:e,i:r})=>{if(!_i(e))return;let i=[];n.forEach(((n,r)=>{i.push(...this._findMatches({key:n,value:e[r],searcher:t}))})),i.length&&o.push({idx:r,item:e,matches:i})})),o}_findMatches({key:e,value:t,searcher:n}){if(!_i(t))return[];let r=[];if(bi(t))t.forEach((({v:t,i:o,n:i})=>{if(!_i(t))return;const{isMatch:a,score:s,indices:l}=n.searchIn(t);a&&r.push({score:s,key:e,value:t,idx:o,norm:i,indices:l})}));else{const{v:o,n:i}=t,{isMatch:a,score:s,indices:l}=n.searchIn(o);a&&r.push({score:s,key:e,value:o,norm:i,indices:l})}return r}}function ca(e){return function(e){if(Array.isArray(e))return pa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||da(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fa(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||da(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 da(e,t){if(e){if("string"==typeof e)return pa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pa(e,t):void 0}}function pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}ua.version="6.6.2",ua.createIndex=Di,ua.parseIndex=function(e,{getFn:t=Ii.getFn,fieldNormWeight:n=Ii.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new Mi({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i},ua.config=Ii,ua.parseQuery=aa,function(...e){Zi.push(...e)}(Xi);var ha=new Map,ma=function(e){var t,n,r=e.value,i=e.setValue,a=e.terms,s=ye((function(e){return e.searchParams})),l=fa((0,o.useState)(!1),2),u=l[0],c=l[1],f=(0,o.useRef)(),d=fa((0,o.useState)({}),2),p=d[0],h=d[1],m=fa((0,o.useState)(""),2),x=m[0],y=m[1],v=fa((0,o.useState)([]),2),g=v[0],b=v[1],w=fa((0,o.useState)(!0),2),j=w[0],k=w[1],E=(0,o.useMemo)((function(){return ca(a).sort((function(e,t){return e.slug<t.slug?-1:e.slug>t.slug?1:0}))}),[a]),_=(0,o.useMemo)((function(){return E.filter((function(e){return null==e?void 0:e.featured}))}),[E]),S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(ha.has(e))b(ha.get(e));else{var t=p.search(e);ha.set(e,null!=t&&t.length?t.map((function(e){return e.item})):_),b(ha.get(e))}};(0,o.useEffect)((function(){h(new ua(a,{keys:["slug","title","keywords"],minMatchCharLength:1,threshold:.3}))}),[a]),(0,o.useEffect)((function(){null!=x&&x.length||b(j?_:E)}),[_,x,E,j]),(0,o.useEffect)((function(){u&&f.current.focus()}),[u]),(0,o.useEffect)((function(){r.slug||c(!0)}),[r.slug]);var C,O,A;return(0,nn.jsxs)("div",{className:"w-full rounded bg-gray-50 border border-gray-900",children:[(0,nn.jsx)("button",{type:"button",onClick:function(){return c((function(e){return!e}))},className:"button-focus m-0 flex w-full cursor-pointer items-center justify-between rounded bg-transparent p-4 text-gray-800",children:(O=u?(0,Ht.__)("Choose a site industry","extendify"):null!==(t=null!==(n=null==r?void 0:r.title)&&void 0!==n?n:r.slug)&&void 0!==t?t:"Not set",(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsxs)("span",{className:"flex flex-col text-left",children:[(0,nn.jsx)("span",{className:Jt()("mb-1",{"text-base font-normal":!r.slug,"text-sm font-normal":null===(A=r.slug)||void 0===A?void 0:A.length}),children:(0,Ht.__)("Site Type","extendify")}),(0,nn.jsx)("span",{className:"text-xs font-light",children:O})]}),(0,nn.jsxs)("span",{className:"flex items-center space-x-4",children:[!u&&!r.slug&&(0,nn.jsxs)("svg",{className:"text-wp-alert-red","aria-hidden":"true",focusable:"false",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)("title",{children:(0,Ht.__)("Click to select a preferred site industry","extendify")}),(0,nn.jsx)("path",{className:"stroke-current",d:"M10.9982 4.05371C7.66149 4.05371 4.95654 6.75866 4.95654 10.0954C4.95654 13.4321 7.66149 16.137 10.9982 16.137C14.3349 16.137 17.0399 13.4321 17.0399 10.0954C17.0399 6.75866 14.3349 4.05371 10.9982 4.05371V4.05371Z",strokeWidth:"1.25"}),(0,nn.jsx)("path",{className:"fill-current",d:"M10.0205 12.8717C10.0205 12.3287 10.4508 11.8881 10.9938 11.8881C11.5368 11.8881 11.9774 12.3287 11.9774 12.8717C11.9774 13.4147 11.5368 13.8451 10.9938 13.8451C10.4508 13.8451 10.0205 13.4147 10.0205 12.8717Z"}),(0,nn.jsx)("path",{className:"fill-current",d:"M11.6495 10.2591C11.6086 10.6177 11.3524 10.9148 10.9938 10.9148C10.625 10.9148 10.3791 10.6074 10.3483 10.2591L10.0205 7.31855C9.95901 6.81652 10.4918 6.34521 10.9938 6.34521C11.4959 6.34521 12.0286 6.81652 11.9774 7.31855L11.6495 10.2591Z"})]}),(0,nn.jsx)("svg",{className:Jt()("stroke-current text-gray-900",{"-translate-x-1 rotate-90 transform":u}),"aria-hidden":"true",focusable:"false",width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)("path",{d:"M1.24194 11.5952L6.24194 6.09519L1.24194 0.595215",strokeWidth:"1.5"})})]})]}))}),u&&(0,nn.jsxs)("div",{className:"max-h-96 overflow-y-auto px-4 py-0",children:[(0,nn.jsx)("div",{className:"sticky top-0 pt-0.5 pb-2 bg-gray-50",children:(0,nn.jsxs)("div",{className:"relative",children:[(0,nn.jsx)("label",{htmlFor:"site-type-search",className:"sr-only",children:(0,Ht.__)("Search","extendify")}),(0,nn.jsx)("input",{ref:f,id:"site-type-search",value:null!=x?x:"",onChange:function(e){return t=e.target.value,y(t),void S(t);var t},type:"text",className:"button-focus m-0 w-full bg-white p-3.5 py-2.5 text-sm border border-gray-900",placeholder:(0,Ht.__)("Search","extendify")}),(0,nn.jsx)("svg",{className:"pointer-events-none absolute top-2 right-2 hidden lg:block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false",children:(0,nn.jsx)("path",{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})})]})}),(null==x?void 0:x.length)>1&&g===_&&(0,nn.jsx)("p",{className:"text-left",children:(0,Ht.__)("Nothing found...","extendify")}),(null==g?void 0:g.length)>0&&(0,nn.jsx)("div",{children:(C=g,(0,nn.jsx)(nn.Fragment,{children:(0,nn.jsx)("ul",{className:"mt-4 mb-0",children:C.map((function(e){var t,n,r,o=null!==(t=null==e?void 0:e.title)&&void 0!==t?t:e.slug,a=(null==s||null===(n=s.taxonomies)||void 0===n||null===(r=n.siteType)||void 0===r?void 0:r.slug)===e.slug;return(0,nn.jsx)("li",{className:"m-0 mb-1",children:(0,nn.jsx)("button",{type:"button",className:Jt()("m-0 w-full cursor-pointer bg-transparent pl-0 text-left text-sm font-normal hover:text-wp-theme-500",{"text-gray-800":!a}),onClick:function(){c(!1),i(e)},children:o})},e.slug+(null==e?void 0:e.title))}))})}))})]}),x||!u?null:(0,nn.jsx)("button",{type:"button",className:"w-full cursor-pointer bg-transparent p-4 py-2 text-left text-sm text-wp-theme-500 hover:text-wp-theme-500",onClick:function(){return k((function(e){return!e}))},children:j?(0,Ht.__)("Show all","extendify"):(0,Ht.__)("Close","extendify")})]})};var xa=function(e){var t,n=e.active,r=e.tax,o=e.update;return(0,nn.jsx)("li",{className:"m-0 w-full",children:(0,nn.jsx)("button",{type:"button",className:"group m-0 p-0 flex w-full cursor-pointer text-left text-sm leading-none my-px bg-transparent",onClick:o,children:(0,nn.jsx)("span",{className:Jt()("w-full group-hover:bg-gray-900 p-2 group-hover:text-gray-50 rounded",{"bg-transparent text-gray-900":!n,"bg-gray-900 text-gray-50":n}),children:null!==(t=null==r?void 0:r.title)&&void 0!==t?t:r.slug})})},r.slug)},ya=function(e){var t=e.taxType,n=e.taxonomies,r=e.taxLabel,o=ye((function(e){return e.searchParams})),i=ye((function(e){return e.updateTaxonomies}));return!(null!=n&&n.length)>0?null:(0,nn.jsx)(qt.PanelBody,{title:Zr(null!=r?r:t),className:"ext-type-control p-0",initialOpen:!0,children:(0,nn.jsx)(qt.PanelRow,{children:(0,nn.jsx)("div",{className:"relative w-full overflow-hidden",children:(0,nn.jsx)("ul",{className:"m-0 w-full px-5 py-1",children:n.map((function(e){var n,r=(null==o||null===(n=o.taxonomies[t])||void 0===n?void 0:n.slug)===(null==e?void 0:e.slug);return(0,nn.jsx)(xa,{active:r,tax:e,update:function(){return i((o=e,(r=t)in(n={})?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));var n,r,o}},null==e?void 0:e.slug)}))})})})})},va=function(e){var t=e.className,n=ye((function(e){return e.updateType})),r=S((function(e){var t;return null!==(t=null==e?void 0:e.currentType)&&void 0!==t?t:"pattern"}));return(0,nn.jsxs)("div",{className:t,children:[(0,nn.jsx)("h4",{className:"sr-only",children:(0,Ht.__)("Type select","extendify")}),(0,nn.jsxs)("div",{className:"flex justify-evenly border border-gray-900 p-0.5 rounded",children:[(0,nn.jsx)("button",{type:"button",className:Jt()({"w-full m-0 min-w-sm cursor-pointer rounded py-2.5 px-4 text-xs leading-none":!0,"bg-gray-900 text-white":"pattern"===r,"bg-transparent text-black":"pattern"!==r}),onClick:function(){return n("pattern")},children:(0,nn.jsx)("span",{className:"",children:(0,Ht.__)("Patterns","extendify")})}),(0,nn.jsx)("button",{type:"button",className:Jt()({"outline-none w-full m-0 -ml-px min-w-sm cursor-pointer items-center rounded-tr-sm rounded-br-sm py-2.5 px-4 text-xs leading-none":!0,"bg-gray-900 text-white":"template"===r,"bg-transparent text-black":"template"!==r}),onClick:function(){return n("template")},children:(0,nn.jsx)("span",{className:"",children:(0,Ht.__)("Templates","extendify")})})]})]})};function ga(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ba(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 ba(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 ba(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wa=(0,o.memo)((function(){var e,t,n,r,o=le((function(e){return e.taxonomies})),i=ye((function(e){return e.searchParams})),a=ye((function(e){return e.updateTaxonomies})),s=J((function(e){return e.apiKey})),l="pattern"===i.type?"patternType":"layoutType",u=!(null!=i&&null!==(e=i.taxonomies[l])&&void 0!==e&&null!==(t=e.slug)&&void 0!==t&&t.length),c=S((function(e){return e.setOpen})),f=ga(oe((function(e){var t;return[(null===(t=Object.keys(null==e?void 0:e.siteType))||void 0===t?void 0:t.length)>0?null==e?void 0:e.siteType:{slug:"",title:"Not set"},e.setSiteType]})),2),d=f[0],p=f[1];return(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("div",{className:"-ml-1.5 hidden px-5 text-extendify-black sm:flex",children:(0,nn.jsx)(Yt,{icon:kn,size:40})}),(0,nn.jsx)("div",{className:"flex md:hidden items-center justify-end -mt-5 mx-1",children:(0,nn.jsx)(qt.Button,{onClick:function(){return c(!1)},icon:(0,nn.jsx)(Yt,{icon:Mn,size:24}),label:(0,Ht.__)("Close library","extendify")})}),(0,nn.jsx)("div",{className:"px-5 hidden md:block",children:(0,nn.jsxs)("button",{onClick:function(){return a((n={slug:"",title:"Featured"},(t=l)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));var e,t,n},className:Jt()("m-0 flex w-full cursor-pointer items-center space-x-1 bg-transparent px-0 py-2 text-left text-sm leading-none transition duration-200 hover:text-wp-theme-500",{"text-wp-theme-500":u}),children:[(0,nn.jsx)(Yt,{icon:On,size:24}),(0,nn.jsx)("span",{className:"text-sm",children:(0,Ht.__)("Featured","extendify")})]})}),(0,nn.jsx)("div",{className:"mx-6 px-5 pt-0.5 sm:mx-0 sm:mb-8 sm:mt-0",children:Object.keys(d).length>0&&(0,nn.jsx)(ma,{value:d,setValue:function(e){p(e),a({siteType:e})},terms:o.siteType})}),(0,nn.jsx)(va,{className:"mx-6 px-5 pt-0.5 sm:mx-0 sm:mb-8 sm:mt-0"}),(0,nn.jsxs)("div",{className:"mt-px hidden flex-grow overflow-y-auto overflow-x-hidden pb-36 pt-px sm:block space-y-6",children:[(0,nn.jsx)(qt.Panel,{className:"bg-transparent",children:(0,nn.jsx)(ya,{taxType:l,taxonomies:null===(n=o[l])||void 0===n?void 0:n.filter((function(e){return!(null!=e&&e.designType)}))})}),(0,nn.jsx)(qt.Panel,{className:"bg-transparent",children:(0,nn.jsx)(ya,{taxLabel:(0,Ht.__)("Design","extendify"),taxType:l,taxonomies:null===(r=o[l])||void 0===r?void 0:r.filter((function(e){return Boolean(null==e?void 0:e.designType)}))})})]}),!s.length&&(0,nn.jsx)("div",{className:"px-5",children:(0,nn.jsx)(gi,{})})]})}));function ja(e){var t=e.children,n=S((function(e){return e.ready}));return(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("aside",{className:"relative flex-shrink-0 border-r border-extendify-transparent-black-100 bg-extendify-transparent-white py-0 backdrop-blur-xl backdrop-saturate-200 backdrop-filter sm:pt-5",children:(0,nn.jsx)("div",{className:"flex h-full flex-col py-6 sm:w-72 sm:space-y-6 sm:py-0",children:n?t[0]:null})}),(0,nn.jsx)("main",{id:"extendify-templates",className:"h-full w-full overflow-hidden bg-gray-50 pt-6 sm:pt-0",children:n?t[1]:null})]})}var ka=(0,o.memo)((function(e){var t=e.className,n=S((function(e){return e.setOpen})),r=S((function(e){return e.pushModal})),o=J((function(e){return e.apiKey.length}));return(0,nn.jsx)("div",{className:t,children:(0,nn.jsx)("div",{className:"flex h-full items-center justify-between",children:(0,nn.jsxs)("div",{className:"flex flex-1 items-center justify-end lg:-mr-1",children:[(0,nn.jsx)(qt.Button,{onClick:function(){return r((0,nn.jsx)(Qo,{}))},icon:(0,nn.jsx)(Yt,{icon:Ln,size:24}),label:(0,Ht.__)("Login and settings area","extendify"),children:o?"":(0,Ht.__)("Sign in","extendify")}),(0,nn.jsx)(qt.Button,{onClick:function(){return n(!1)},icon:(0,nn.jsx)(Yt,{icon:Mn,size:24}),label:(0,Ht.__)("Close library","extendify")})]})})})})),Ea=function(e){var t=e.setOpen,n=(0,o.useRef)(),r=ye((function(e){return e.searchParams}));return(0,o.useEffect)((function(){n.current&&(n.current.scrollTop=0)}),[r]),(0,nn.jsx)("div",{className:"relative mx-auto flex h-full max-w-screen-4xl flex-col items-center",children:(0,nn.jsxs)("div",{className:"w-full flex-grow overflow-hidden",children:[(0,nn.jsx)("button",{onClick:function(){return document.getElementById("extendify-templates").querySelector("button").focus()},className:"extendify-skip-to-sr-link sr-only focus:not-sr-only focus:text-blue-500",children:(0,Ht.__)("Skip to templates","extendify")}),(0,nn.jsx)("div",{className:"relative mx-auto h-full sm:flex",children:(0,nn.jsxs)(ja,{children:[(0,nn.jsx)(wa,{}),(0,nn.jsxs)("div",{className:"relative z-30 flex h-full flex-col",children:[(0,nn.jsx)(ka,{className:"hidden h-12 w-full flex-shrink-0 px-6 sm:block md:px-8",hideLibrary:function(){return t(!1)}}),(0,nn.jsx)("div",{ref:n,className:"z-20 flex-grow overflow-y-auto px-6 md:px-8",children:(0,nn.jsx)(mi,{})})]})]})})]})})};function _a(){var e=(0,o.useRef)(null),t=S((function(e){return e.open})),n=S((function(e){return e.setOpen})),r=function(){var e=lr((0,o.useState)(null),2),t=e[0],n=e[1],r=S((function(e){return e.open})),i=S((function(e){return e.pushModal})),a=S((function(e){return e.removeAllModals}));return(0,o.useEffect)((function(){return S.subscribe((function(e){return e.modals}),(function(e){return n((null==e?void 0:e.length)>0?e[0]:null)}))}),[]),(0,o.useEffect)((function(){var e;if(r){var t={standalone:sr},n=t[null!==(e=Object.keys(t).find((function(e){return"standalone"===e?!window.extendifyData.standalone&&!J.getState().modalNoticesDismissedAt[e]:!J.getState().modalNoticesDismissedAt[e]})))&&void 0!==e?e:null];n&&i((0,nn.jsx)(n,{}))}else a()}),[r,i,a]),t}(),i=S((function(e){return e.ready}));return(0,nn.jsxs)(Wt,{as:"div",className:"extendify",initialFocus:e,open:t,onClose:function(){return n(!1)},children:[(0,nn.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity"}),(0,nn.jsx)("div",{className:"fixed inset-0 z-high m-auto h-screen w-screen overflow-y-auto sm:h-auto sm:w-auto",children:(0,nn.jsx)("div",{className:"flex min-h-screen items-end justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0",children:(0,nn.jsxs)("div",{ref:e,tabIndex:"0",onClick:function(e){return e.target===e.currentTarget&&n(!1)},className:"fixed inset-0 transform p-2 transition-all lg:absolute lg:overflow-hidden lg:p-16",children:[(0,nn.jsx)(Ea,{}),i?(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)(gn,{}),r]}):null]})})})]})}const Sa=wp.compose,Ca=wp.hooks,Oa=JSON.parse('{"t":["ext-absolute","ext-relative","ext-top-base","ext-top-lg","ext--top-base","ext--top-lg","ext-right-base","ext-right-lg","ext--right-base","ext--right-lg","ext-bottom-base","ext-bottom-lg","ext--bottom-base","ext--bottom-lg","ext-left-base","ext-left-lg","ext--left-base","ext--left-lg","ext-order-1","ext-order-2","ext-col-auto","ext-col-span-1","ext-col-span-2","ext-col-span-3","ext-col-span-4","ext-col-span-5","ext-col-span-6","ext-col-span-7","ext-col-span-8","ext-col-span-9","ext-col-span-10","ext-col-span-11","ext-col-span-12","ext-col-span-full","ext-col-start-1","ext-col-start-2","ext-col-start-3","ext-col-start-4","ext-col-start-5","ext-col-start-6","ext-col-start-7","ext-col-start-8","ext-col-start-9","ext-col-start-10","ext-col-start-11","ext-col-start-12","ext-col-start-13","ext-col-start-auto","ext-col-end-1","ext-col-end-2","ext-col-end-3","ext-col-end-4","ext-col-end-5","ext-col-end-6","ext-col-end-7","ext-col-end-8","ext-col-end-9","ext-col-end-10","ext-col-end-11","ext-col-end-12","ext-col-end-13","ext-col-end-auto","ext-row-auto","ext-row-span-1","ext-row-span-2","ext-row-span-3","ext-row-span-4","ext-row-span-5","ext-row-span-6","ext-row-span-full","ext-row-start-1","ext-row-start-2","ext-row-start-3","ext-row-start-4","ext-row-start-5","ext-row-start-6","ext-row-start-7","ext-row-start-auto","ext-row-end-1","ext-row-end-2","ext-row-end-3","ext-row-end-4","ext-row-end-5","ext-row-end-6","ext-row-end-7","ext-row-end-auto","ext-m-0","ext-m-auto","ext-m-base","ext-m-lg","ext--m-base","ext--m-lg","ext-mx-0","ext-mx-auto","ext-mx-base","ext-mx-lg","ext--mx-base","ext--mx-lg","ext-my-0","ext-my-auto","ext-my-base","ext-my-lg","ext--my-base","ext--my-lg","ext-mt-0","ext-mt-auto","ext-mt-base","ext-mt-lg","ext--mt-base","ext--mt-lg","ext-mr-0","ext-mr-auto","ext-mr-base","ext-mr-lg","ext--mr-base","ext--mr-lg","ext-mb-0","ext-mb-auto","ext-mb-base","ext-mb-lg","ext--mb-base","ext--mb-lg","ext-ml-0","ext-ml-auto","ext-ml-base","ext-ml-lg","ext--ml-base","ext--ml-lg","ext-block","ext-inline-block","ext-inline","ext-flex","ext-inline-flex","ext-grid","ext-inline-grid","ext-hidden","ext-w-auto","ext-w-full","ext-max-w-full","ext-flex-1","ext-flex-auto","ext-flex-initial","ext-flex-none","ext-flex-shrink-0","ext-flex-shrink","ext-flex-grow-0","ext-flex-grow","ext-list-none","ext-grid-cols-1","ext-grid-cols-2","ext-grid-cols-3","ext-grid-cols-4","ext-grid-cols-5","ext-grid-cols-6","ext-grid-cols-7","ext-grid-cols-8","ext-grid-cols-9","ext-grid-cols-10","ext-grid-cols-11","ext-grid-cols-12","ext-grid-cols-none","ext-grid-rows-1","ext-grid-rows-2","ext-grid-rows-3","ext-grid-rows-4","ext-grid-rows-5","ext-grid-rows-6","ext-grid-rows-none","ext-flex-row","ext-flex-row-reverse","ext-flex-col","ext-flex-col-reverse","ext-flex-wrap","ext-flex-wrap-reverse","ext-flex-nowrap","ext-items-start","ext-items-end","ext-items-center","ext-items-baseline","ext-items-stretch","ext-justify-start","ext-justify-end","ext-justify-center","ext-justify-between","ext-justify-around","ext-justify-evenly","ext-justify-items-start","ext-justify-items-end","ext-justify-items-center","ext-justify-items-stretch","ext-gap-0","ext-gap-base","ext-gap-lg","ext-gap-x-0","ext-gap-x-base","ext-gap-x-lg","ext-gap-y-0","ext-gap-y-base","ext-gap-y-lg","ext-justify-self-auto","ext-justify-self-start","ext-justify-self-end","ext-justify-self-center","ext-justify-self-stretch","ext-rounded-none","ext-rounded-full","ext-rounded-t-none","ext-rounded-t-full","ext-rounded-r-none","ext-rounded-r-full","ext-rounded-b-none","ext-rounded-b-full","ext-rounded-l-none","ext-rounded-l-full","ext-rounded-tl-none","ext-rounded-tl-full","ext-rounded-tr-none","ext-rounded-tr-full","ext-rounded-br-none","ext-rounded-br-full","ext-rounded-bl-none","ext-rounded-bl-full","ext-border-0","ext-border-t-0","ext-border-r-0","ext-border-b-0","ext-border-l-0","ext-p-0","ext-p-base","ext-p-lg","ext-px-0","ext-px-base","ext-px-lg","ext-py-0","ext-py-base","ext-py-lg","ext-pt-0","ext-pt-base","ext-pt-lg","ext-pr-0","ext-pr-base","ext-pr-lg","ext-pb-0","ext-pb-base","ext-pb-lg","ext-pl-0","ext-pl-base","ext-pl-lg","ext-text-left","ext-text-center","ext-text-right","ext-leading-none","ext-leading-tight","ext-leading-snug","ext-leading-normal","ext-leading-relaxed","ext-leading-loose","clip-path--rhombus","clip-path--diamond","clip-path--rhombus-alt","tablet\\\\:fullwidth-cols","desktop\\\\:fullwidth-cols","direction-rtl","direction-ltr","bring-to-front","text-stroke","text-stroke--primary","text-stroke--secondary","editor\\\\:no-caption","editor\\\\:no-inserter","editor\\\\:no-resize","editor\\\\:pointer-events-none","tablet\\\\:ext-absolute","tablet\\\\:ext-relative","tablet\\\\:ext-top-base","tablet\\\\:ext-top-lg","tablet\\\\:ext--top-base","tablet\\\\:ext--top-lg","tablet\\\\:ext-right-base","tablet\\\\:ext-right-lg","tablet\\\\:ext--right-base","tablet\\\\:ext--right-lg","tablet\\\\:ext-bottom-base","tablet\\\\:ext-bottom-lg","tablet\\\\:ext--bottom-base","tablet\\\\:ext--bottom-lg","tablet\\\\:ext-left-base","tablet\\\\:ext-left-lg","tablet\\\\:ext--left-base","tablet\\\\:ext--left-lg","tablet\\\\:ext-order-1","tablet\\\\:ext-order-2","tablet\\\\:ext-m-0","tablet\\\\:ext-m-auto","tablet\\\\:ext-m-base","tablet\\\\:ext-m-lg","tablet\\\\:ext--m-base","tablet\\\\:ext--m-lg","tablet\\\\:ext-mx-0","tablet\\\\:ext-mx-auto","tablet\\\\:ext-mx-base","tablet\\\\:ext-mx-lg","tablet\\\\:ext--mx-base","tablet\\\\:ext--mx-lg","tablet\\\\:ext-my-0","tablet\\\\:ext-my-auto","tablet\\\\:ext-my-base","tablet\\\\:ext-my-lg","tablet\\\\:ext--my-base","tablet\\\\:ext--my-lg","tablet\\\\:ext-mt-0","tablet\\\\:ext-mt-auto","tablet\\\\:ext-mt-base","tablet\\\\:ext-mt-lg","tablet\\\\:ext--mt-base","tablet\\\\:ext--mt-lg","tablet\\\\:ext-mr-0","tablet\\\\:ext-mr-auto","tablet\\\\:ext-mr-base","tablet\\\\:ext-mr-lg","tablet\\\\:ext--mr-base","tablet\\\\:ext--mr-lg","tablet\\\\:ext-mb-0","tablet\\\\:ext-mb-auto","tablet\\\\:ext-mb-base","tablet\\\\:ext-mb-lg","tablet\\\\:ext--mb-base","tablet\\\\:ext--mb-lg","tablet\\\\:ext-ml-0","tablet\\\\:ext-ml-auto","tablet\\\\:ext-ml-base","tablet\\\\:ext-ml-lg","tablet\\\\:ext--ml-base","tablet\\\\:ext--ml-lg","tablet\\\\:ext-block","tablet\\\\:ext-inline-block","tablet\\\\:ext-inline","tablet\\\\:ext-flex","tablet\\\\:ext-inline-flex","tablet\\\\:ext-grid","tablet\\\\:ext-inline-grid","tablet\\\\:ext-hidden","tablet\\\\:ext-w-auto","tablet\\\\:ext-w-full","tablet\\\\:ext-max-w-full","tablet\\\\:ext-flex-1","tablet\\\\:ext-flex-auto","tablet\\\\:ext-flex-initial","tablet\\\\:ext-flex-none","tablet\\\\:ext-flex-shrink-0","tablet\\\\:ext-flex-shrink","tablet\\\\:ext-flex-grow-0","tablet\\\\:ext-flex-grow","tablet\\\\:ext-list-none","tablet\\\\:ext-grid-cols-1","tablet\\\\:ext-grid-cols-2","tablet\\\\:ext-grid-cols-3","tablet\\\\:ext-grid-cols-4","tablet\\\\:ext-grid-cols-5","tablet\\\\:ext-grid-cols-6","tablet\\\\:ext-grid-cols-7","tablet\\\\:ext-grid-cols-8","tablet\\\\:ext-grid-cols-9","tablet\\\\:ext-grid-cols-10","tablet\\\\:ext-grid-cols-11","tablet\\\\:ext-grid-cols-12","tablet\\\\:ext-grid-cols-none","tablet\\\\:ext-flex-row","tablet\\\\:ext-flex-row-reverse","tablet\\\\:ext-flex-col","tablet\\\\:ext-flex-col-reverse","tablet\\\\:ext-flex-wrap","tablet\\\\:ext-flex-wrap-reverse","tablet\\\\:ext-flex-nowrap","tablet\\\\:ext-items-start","tablet\\\\:ext-items-end","tablet\\\\:ext-items-center","tablet\\\\:ext-items-baseline","tablet\\\\:ext-items-stretch","tablet\\\\:ext-justify-start","tablet\\\\:ext-justify-end","tablet\\\\:ext-justify-center","tablet\\\\:ext-justify-between","tablet\\\\:ext-justify-around","tablet\\\\:ext-justify-evenly","tablet\\\\:ext-justify-items-start","tablet\\\\:ext-justify-items-end","tablet\\\\:ext-justify-items-center","tablet\\\\:ext-justify-items-stretch","tablet\\\\:ext-justify-self-auto","tablet\\\\:ext-justify-self-start","tablet\\\\:ext-justify-self-end","tablet\\\\:ext-justify-self-center","tablet\\\\:ext-justify-self-stretch","tablet\\\\:ext-p-0","tablet\\\\:ext-p-base","tablet\\\\:ext-p-lg","tablet\\\\:ext-px-0","tablet\\\\:ext-px-base","tablet\\\\:ext-px-lg","tablet\\\\:ext-py-0","tablet\\\\:ext-py-base","tablet\\\\:ext-py-lg","tablet\\\\:ext-pt-0","tablet\\\\:ext-pt-base","tablet\\\\:ext-pt-lg","tablet\\\\:ext-pr-0","tablet\\\\:ext-pr-base","tablet\\\\:ext-pr-lg","tablet\\\\:ext-pb-0","tablet\\\\:ext-pb-base","tablet\\\\:ext-pb-lg","tablet\\\\:ext-pl-0","tablet\\\\:ext-pl-base","tablet\\\\:ext-pl-lg","tablet\\\\:ext-text-left","tablet\\\\:ext-text-center","tablet\\\\:ext-text-right","desktop\\\\:ext-absolute","desktop\\\\:ext-relative","desktop\\\\:ext-top-base","desktop\\\\:ext-top-lg","desktop\\\\:ext--top-base","desktop\\\\:ext--top-lg","desktop\\\\:ext-right-base","desktop\\\\:ext-right-lg","desktop\\\\:ext--right-base","desktop\\\\:ext--right-lg","desktop\\\\:ext-bottom-base","desktop\\\\:ext-bottom-lg","desktop\\\\:ext--bottom-base","desktop\\\\:ext--bottom-lg","desktop\\\\:ext-left-base","desktop\\\\:ext-left-lg","desktop\\\\:ext--left-base","desktop\\\\:ext--left-lg","desktop\\\\:ext-order-1","desktop\\\\:ext-order-2","desktop\\\\:ext-m-0","desktop\\\\:ext-m-auto","desktop\\\\:ext-m-base","desktop\\\\:ext-m-lg","desktop\\\\:ext--m-base","desktop\\\\:ext--m-lg","desktop\\\\:ext-mx-0","desktop\\\\:ext-mx-auto","desktop\\\\:ext-mx-base","desktop\\\\:ext-mx-lg","desktop\\\\:ext--mx-base","desktop\\\\:ext--mx-lg","desktop\\\\:ext-my-0","desktop\\\\:ext-my-auto","desktop\\\\:ext-my-base","desktop\\\\:ext-my-lg","desktop\\\\:ext--my-base","desktop\\\\:ext--my-lg","desktop\\\\:ext-mt-0","desktop\\\\:ext-mt-auto","desktop\\\\:ext-mt-base","desktop\\\\:ext-mt-lg","desktop\\\\:ext--mt-base","desktop\\\\:ext--mt-lg","desktop\\\\:ext-mr-0","desktop\\\\:ext-mr-auto","desktop\\\\:ext-mr-base","desktop\\\\:ext-mr-lg","desktop\\\\:ext--mr-base","desktop\\\\:ext--mr-lg","desktop\\\\:ext-mb-0","desktop\\\\:ext-mb-auto","desktop\\\\:ext-mb-base","desktop\\\\:ext-mb-lg","desktop\\\\:ext--mb-base","desktop\\\\:ext--mb-lg","desktop\\\\:ext-ml-0","desktop\\\\:ext-ml-auto","desktop\\\\:ext-ml-base","desktop\\\\:ext-ml-lg","desktop\\\\:ext--ml-base","desktop\\\\:ext--ml-lg","desktop\\\\:ext-block","desktop\\\\:ext-inline-block","desktop\\\\:ext-inline","desktop\\\\:ext-flex","desktop\\\\:ext-inline-flex","desktop\\\\:ext-grid","desktop\\\\:ext-inline-grid","desktop\\\\:ext-hidden","desktop\\\\:ext-w-auto","desktop\\\\:ext-w-full","desktop\\\\:ext-max-w-full","desktop\\\\:ext-flex-1","desktop\\\\:ext-flex-auto","desktop\\\\:ext-flex-initial","desktop\\\\:ext-flex-none","desktop\\\\:ext-flex-shrink-0","desktop\\\\:ext-flex-shrink","desktop\\\\:ext-flex-grow-0","desktop\\\\:ext-flex-grow","desktop\\\\:ext-list-none","desktop\\\\:ext-grid-cols-1","desktop\\\\:ext-grid-cols-2","desktop\\\\:ext-grid-cols-3","desktop\\\\:ext-grid-cols-4","desktop\\\\:ext-grid-cols-5","desktop\\\\:ext-grid-cols-6","desktop\\\\:ext-grid-cols-7","desktop\\\\:ext-grid-cols-8","desktop\\\\:ext-grid-cols-9","desktop\\\\:ext-grid-cols-10","desktop\\\\:ext-grid-cols-11","desktop\\\\:ext-grid-cols-12","desktop\\\\:ext-grid-cols-none","desktop\\\\:ext-flex-row","desktop\\\\:ext-flex-row-reverse","desktop\\\\:ext-flex-col","desktop\\\\:ext-flex-col-reverse","desktop\\\\:ext-flex-wrap","desktop\\\\:ext-flex-wrap-reverse","desktop\\\\:ext-flex-nowrap","desktop\\\\:ext-items-start","desktop\\\\:ext-items-end","desktop\\\\:ext-items-center","desktop\\\\:ext-items-baseline","desktop\\\\:ext-items-stretch","desktop\\\\:ext-justify-start","desktop\\\\:ext-justify-end","desktop\\\\:ext-justify-center","desktop\\\\:ext-justify-between","desktop\\\\:ext-justify-around","desktop\\\\:ext-justify-evenly","desktop\\\\:ext-justify-items-start","desktop\\\\:ext-justify-items-end","desktop\\\\:ext-justify-items-center","desktop\\\\:ext-justify-items-stretch","desktop\\\\:ext-justify-self-auto","desktop\\\\:ext-justify-self-start","desktop\\\\:ext-justify-self-end","desktop\\\\:ext-justify-self-center","desktop\\\\:ext-justify-self-stretch","desktop\\\\:ext-p-0","desktop\\\\:ext-p-base","desktop\\\\:ext-p-lg","desktop\\\\:ext-px-0","desktop\\\\:ext-px-base","desktop\\\\:ext-px-lg","desktop\\\\:ext-py-0","desktop\\\\:ext-py-base","desktop\\\\:ext-py-lg","desktop\\\\:ext-pt-0","desktop\\\\:ext-pt-base","desktop\\\\:ext-pt-lg","desktop\\\\:ext-pr-0","desktop\\\\:ext-pr-base","desktop\\\\:ext-pr-lg","desktop\\\\:ext-pb-0","desktop\\\\:ext-pb-base","desktop\\\\:ext-pb-lg","desktop\\\\:ext-pl-0","desktop\\\\:ext-pl-base","desktop\\\\:ext-pl-lg","desktop\\\\:ext-text-left","desktop\\\\:ext-text-center","desktop\\\\:ext-text-right"]}');function Aa(e){return function(e){if(Array.isArray(e))return Pa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Pa(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 Pa(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ta(Object(n),!0).forEach((function(t){Ra(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ra(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ia=(0,Sa.createHigherOrderComponent)((function(e){return function(t){var n,r,o=null!==(n=null==t||null===(r=t.attributes)||void 0===r?void 0:r.extUtilities)&&void 0!==n?n:[],i=Oa.t.map((function(e){return e.replace(".","").replace(new RegExp("\\\\","g"),"")}));return(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)(e,Na({},t)),o&&(0,nn.jsx)(Mr.InspectorAdvancedControls,{children:(0,nn.jsx)(qt.FormTokenField,{label:(0,Ht.__)("Extendify Utilities","extendify"),tokenizeOnSpace:!0,value:o,suggestions:i,onChange:function(e){t.setAttributes({extUtilities:e})}})})]})}}),"utilityClassEdit");function La(e,t,n){var r,o,i,a=null!==(r=null==e?void 0:e.className)&&void 0!==r?r:[],s=null!==(o=null==n?void 0:n.extUtilities)&&void 0!==o?o:[],l=null!==(i=null==n?void 0:n.className)&&void 0!==i?i:[];if(!s||!Object.keys(s).length)return e;var u=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return e.split(" ");case"[object Array]":return e;default:return[]}},c=new Set([].concat(Aa(u(l)),Aa(u(a)),Aa(u(s))));return Object.assign({},e,{className:Aa(c).join(" ")})}function Ma(e){var t=e.show,n=void 0!==t&&t,r=S((function(e){return e.open})),i=S((function(e){return e.setReady})),a=S((function(e){return e.setOpen})),s=(0,o.useCallback)((function(){return a(!0)}),[a]),l=(0,o.useCallback)((function(){return a(!1)}),[a]),u=ye((function(e){return e.initTemplateData})),c=le((function(e){return e.fetchTaxonomies})),f=J((function(e){return e._hasHydrated})),d=ye((function(e){return Object.keys(e.taxonomyDefaultState).length>0}));return(0,o.useEffect)((function(){r&&c().then((function(){ye.getState().setupDefaultTaxonomies()}))}),[r,c]),(0,o.useEffect)((function(){f&&d&&(u(),i(!0))}),[f,d,u,i]),(0,o.useEffect)((function(){var e=new URLSearchParams(window.location.search);(n||e.has("ext-open"))&&a(!0)}),[n,a]),(0,o.useEffect)((function(){ve().then((function(e){S.setState({metaData:e})}))}),[]),(0,o.useEffect)((function(){return window.addEventListener("extendify::open-library",s),window.addEventListener("extendify::close-library",l),function(){window.removeEventListener("extendify::open-library",s),window.removeEventListener("extendify::close-library",l)}}),[l,s]),(0,nn.jsx)(_a,{})}function Da(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}(0,Ca.addFilter)("blocks.registerBlockType","extendify/utilities/attributes",(function(e){return Na(Na({},e),{},{attributes:Na(Na({},e.attributes),{},{extUtilities:{type:"array",default:[]}})})})),(0,Ca.addFilter)("blocks.registerBlockType","extendify/utilities/addEditProps",(function(e){var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),La(r,e,n)},e})),(0,Ca.addFilter)("editor.BlockEdit","extendify/utilities/advancedClassControls",Ia),(0,Ca.addFilter)("blocks.getSaveContent.extraProps","extendify/utilities/extra-props",La);var Ba,Fa=(0,eo.select)("core/blocks").getCategories();(0,r.setCategories)([{slug:"extendify",title:"Extendify",icon:null}].concat(function(e){if(Array.isArray(e))return Da(e)}(Ba=Fa)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(Ba)||function(e,t){if(e){if("string"==typeof e)return Da(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Da(e,t):void 0}}(Ba)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),(0,r.registerBlockCollection)("extendify",{title:"Extendify",icon:(0,nn.jsx)(qt.Icon,{icon:jn})});const Ua=(0,o.createElement)(en,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Zt,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"})),za=(0,o.createElement)(en,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Zt,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})),$a=(0,o.createElement)(en,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Zt,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"})),Va=(0,o.createElement)(en,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Zt,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})),Wa=(0,o.createElement)(en,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Zt,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})),qa=(0,o.createElement)(en,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Zt,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 12.8h8v-1.5H8v1.5z"})),Ha=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"extendify/library","title":"Pattern Library","description":"Add block patterns and full page layouts with the Extendify Library.","keywords":["template","layouts"],"textdomain":"extendify","attributes":{"preview":{"type":"string"},"search":{"type":"string"}}}');(0,r.registerBlockType)(Ha,{icon:jn,category:"extendify",example:{attributes:{preview:window.extendifyData.asset_path+"/preview.png"}},variations:[{name:"gallery",icon:(0,nn.jsx)(Yt,{icon:Ua}),category:"extendify",attributes:{search:"gallery"},title:(0,Ht.__)("Gallery Patterns","extendify"),description:(0,Ht.__)("Add gallery patterns and layouts.","extendify"),keywords:[(0,Ht.__)("slideshow","extendify"),(0,Ht.__)("images","extendify")]},{name:"team",icon:(0,nn.jsx)(Yt,{icon:za}),category:"extendify",attributes:{search:"team"},title:(0,Ht.__)("Team Patterns","extendify"),description:(0,Ht.__)("Add team patterns and layouts.","extendify"),keywords:[(0,Ht._x)("crew","As in team","extendify"),(0,Ht.__)("colleagues","extendify"),(0,Ht.__)("members","extendify")]},{name:"hero",icon:(0,nn.jsx)(Yt,{icon:$a}),category:"extendify",attributes:{search:"hero"},title:(0,Ht._x)("Hero Patterns","Hero being a hero/top section of a webpage","extendify"),description:(0,Ht.__)("Add hero patterns and layouts.","extendify"),keywords:[(0,Ht.__)("heading","extendify"),(0,Ht.__)("headline","extendify")]},{name:"text",icon:(0,nn.jsx)(Yt,{icon:Va}),category:"extendify",attributes:{search:"text"},title:(0,Ht._x)("Text Patterns","Relating to patterns that feature text only","extendify"),description:(0,Ht.__)("Add text patterns and layouts.","extendify"),keywords:[(0,Ht.__)("simple","extendify"),(0,Ht.__)("paragraph","extendify")]},{name:"about",icon:(0,nn.jsx)(Yt,{icon:Wa}),category:"extendify",attributes:{search:"about"},title:(0,Ht._x)("About Page Patterns","Add patterns relating to an about us page","extendify"),description:(0,Ht.__)("About patterns and layouts.","extendify"),keywords:[(0,Ht.__)("who we are","extendify"),(0,Ht.__)("team","extendify")]},{name:"call-to-action",icon:(0,nn.jsx)(Yt,{icon:qa}),category:"extendify",attributes:{search:"call-to-action"},title:(0,Ht.__)("Call to Action Patterns","extendify"),description:(0,Ht.__)("Add call to action patterns and layouts.","extendify"),keywords:[(0,Ht._x)("cta","Initialism for call to action","extendify"),(0,Ht.__)("callout","extendify"),(0,Ht.__)("buttons","extendify")]}],edit:function(e){var t=e.clientId,n=e.attributes,r=(0,eo.useDispatch)("core/block-editor").removeBlock;return(0,o.useEffect)((function(){n.preview||(n.search&&Ya(n.search),Kr("library-block","open"),r(t))}),[t,n,r]),(0,nn.jsx)("img",{style:{display:"block",maxWidth:"100%"},src:n.preview,alt:(0,Ht.sprintf)((0,Ht.__)("%s Pattern Library","extendify"),"Extendify")})}});var Ya=function(e){var t=new URLSearchParams(window.location.search);t.append("ext-patternType",e),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString())};const Ga=wp.editPost,Ja=wp.plugins;function Ka(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Xa(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ka(i,r,o,a,s,"next",e)}function s(e){Ka(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Za(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qa(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 Qa(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 Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const es=function(){var e=(0,eo.useSelect)((function(e){return e("core").canUser("create","users")})),t=Za((0,o.useState)(J.getState().enabled),2),n=t[0],r=t[1],i=Za((0,o.useState)(oe.getState().enabled),2),s=i[0],l=i[1];function u(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=document.getElementById("extendify-templates-inserter-btn");t&&(e?t.classList.add("hidden"):t.classList.remove("hidden"))}function c(e){return f.apply(this,arguments)}function f(){return(f=Xa(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,J.setState({enabled:t});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e){return p.apply(this,arguments)}function p(){return(p=Xa(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oe.setState({enabled:t});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e,t){return m.apply(this,arguments)}function m(){return(m=Xa(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("global"!==n){e.next=5;break}return e.next=3,d(t);case 3:e.next=7;break;case 5:return e.next=7,c(t);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){"global"===e?l((function(t){return h(!t,e),!t})):r((function(t){return u(!t),h(!t,e),!t}))}return(0,o.useEffect)((function(){u(!n)}),[n]),(0,nn.jsxs)(qt.Modal,{title:(0,Ht.__)("Extendify Settings","extendify"),onRequestClose:function(){var e=document.getElementById("extendify-util");(0,o.unmountComponentAtNode)(e)},children:[(0,nn.jsx)(qt.ToggleControl,{label:e?(0,Ht.__)("Enable the library for myself","extendify"):(0,Ht.__)("Enable the library","extendify"),help:(0,Ht.__)("Publish with hundreds of patterns & page layouts","extendify"),checked:n,onChange:function(){return x("user")}}),e&&(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("br",{}),(0,nn.jsx)(qt.ToggleControl,{label:(0,Ht.__)("Allow all users to publish with the library"),help:(0,Ht.__)("Everyone publishes with patterns & page layouts","extendify"),checked:s,onChange:function(){return x("global")}})]})]})};function ts(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ns(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 ns(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 ns(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var rs=function(e){var t=e.anchorRef,n=e.onPressX,r=e.onClick,o=e.onClickOutside;return t.current?(0,nn.jsx)(qt.Popover,{anchorRef:t.current,shouldAnchorIncludePadding:!0,className:"extendify-tooltip-default",focusOnMount:!1,onFocusOutside:o,onClick:r,position:"bottom center",noArrow:!1,children:(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"0.5rem"},children:[(0,nn.jsx)("span",{style:{textTransform:"uppercase",color:"#8b8b8b"},children:(0,Ht.__)("Monthly Imports","extendify")}),(0,nn.jsx)(qt.Button,{style:{color:"white",position:"relative",right:"-5px",padding:"0",minWidth:"0",height:"20px",width:"20px"},onClick:function(e){e.stopPropagation(),n()},icon:(0,nn.jsx)(Yt,{icon:Mn,size:12}),showTooltip:!1,label:(0,Ht.__)("Close callout","extendify")})]}),(0,nn.jsx)("div",{dangerouslySetInnerHTML:{__html:bn((0,Ht.sprintf)((0,Ht.__)("%1$sGood news!%2$s We've added more imports to your library. Enjoy!","extendify"),"<strong>","</strong>"))}})]})}):null};function os(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function is(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){os(i,r,o,a,s,"next",e)}function s(e){os(i,r,o,a,s,"throw",e)}a(void 0)}))}}function as(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)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ss(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 ss(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 ss(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ls,us,cs,fs,ds,ps,hs,ms,xs,ys,vs=function(){var e=as((0,o.useState)(!1),2),t=e[0],n=e[1],r=(0,o.useRef)(!1),i=(0,o.useRef)(),s=J((function(e){return e.apiKey.length})),l=J((function(e){return e.imports>0})),u=S((function(e){return e.open})),c=J((function(e){return 0===e.allowedImports})),f=J((function(e){return e.uuid})),d=function(e,t,n){var r=ts((0,o.useState)(),2),i=r[0],a=r[1],s=S((function(e){return e.ready}));return(0,o.useLayoutEffect)((function(){if(n||s&&!i||window.extendifyData._canRehydrate){var r=J.getState().testGroup(e,t);a(r)}}),[e,t,i,s,n]),i}("main-button-text2",["A","B"],!0),p=as((0,o.useState)(),2),h=p[0],m=p[1],x=function(){var e=is(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("mb-tooltip-closed");case 2:n(!1),J.setState({allowedImports:-1});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){if(f){m(function(){switch(d){case"A":return(0,Ht.__)("Add template","extendify");case"B":return(0,Ht.__)("Design Library","extendify")}}())}}),[d,f]),(0,o.useEffect)((function(){u&&(n(!1),r.current=!0),!s&&c&&l&&(r.current||n(!0),r.current=!0)}),[s,c,l,u]),(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)(gs,{buttonRef:i,text:h}),t&&(0,nn.jsx)(rs,{anchorRef:i,onClick:is(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("mb-tooltip-pressed");case 2:Jr("main-button-tooltip");case 3:case"end":return e.stop()}}),e)}))),onPressX:x})]})},gs=function(e){var t=e.buttonRef,n=e.text;return(0,nn.jsx)("div",{className:"extendify",children:(0,nn.jsx)(qt.Button,{isPrimary:!0,ref:t,className:"h-8 xs:h-9 px-1 min-w-0 xs:pl-2 xs:pr-3 sm:ml-2",onClick:function(){return Jr("main-button")},id:"extendify-templates-inserter-btn",icon:(0,nn.jsx)(Yt,{icon:kn,size:24,style:{marginRight:0}}),children:(0,nn.jsx)("span",{className:"hidden xs:inline ml-1",children:n})})})},bs=function(){return(0,nn.jsx)(qt.Button,{id:"extendify-cta-button",style:{margin:"1rem 1rem 0",width:"calc(100% - 2rem)",justifyContent:" center"},onClick:function(){return Jr("patterns-cta")},isSecondary:!0,children:(0,Ht.__)("Discover patterns in Extendify Library","extendify")})},ws=null===(ls=window.extendifyData)||void 0===ls||null===(us=ls.user)||void 0===us?void 0:us.state,js=function(){return null===window.extendifyData.user||(null==ws?void 0:ws.isAdmin)},ks=function(){var e,t,n;return null===window.extendifyData.sitesettings||(null===(e=window.extendifyData)||void 0===e||null===(t=e.sitesettings)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.enabled)},Es=null===(cs=window)||void 0===cs||null===(fs=cs.wp)||void 0===fs||null===(ds=fs.data)||void 0===ds?void 0:ds.subscribe((function(){requestAnimationFrame((function(){var e,t;if((ks()||js())&&!document.getElementById("extendify-templates-inserter")&&(document.querySelector(".edit-post-header-toolbar")||document.querySelector(".edit-site-header_start"))){var n=Object.assign(document.createElement("div"),{id:"extendify-templates-inserter"});null===(e=document.querySelector(".edit-post-header-toolbar"))||void 0===e||e.append(n),null===(t=document.querySelector(".edit-site-header_start"))||void 0===t||t.append(n),(0,o.render)((0,nn.jsx)(vs,{}),n),(null===window.extendifyData.user?ks():null==ws?void 0:ws.enabled)||document.getElementById("extendify-templates-inserter-btn").classList.add("hidden"),Es()}}))})),_s=null===(ps=window)||void 0===ps||null===(hs=ps.wp)||void 0===hs||null===(ms=hs.data)||void 0===ms?void 0:ms.subscribe((function(){requestAnimationFrame((function(){if((ks()||js())&&document.querySelector("[id$=patterns-view]")&&!document.getElementById("extendify-cta-button")){var e=Object.assign(document.createElement("div"),{id:"extendify-cta-button-container"});document.querySelector("[id$=patterns-view]").prepend(e),(0,o.render)((0,nn.jsx)(bs,{}),e),_s()}}))}));try{(0,Ja.registerPlugin)("extendify-settings-enable-disable",{render:function(){return(0,nn.jsx)(nn.Fragment,{children:(0,nn.jsxs)(Ga.PluginSidebarMoreMenuItem,{onClick:function(){var e=document.getElementById("extendify-util");(0,o.render)((0,nn.jsx)(es,{}),e)},icon:(0,nn.jsx)(Yt,{icon:kn,size:24}),children:[" ",(0,Ht.__)("Extendify","extendify")]})})}})}catch(ut){console.error("registerPlugin not supported? (error handled gracefully)",ut.message)}[{register:function(){var e=(0,eo.dispatch)("core/notices").createNotice,t=J.getState().incrementImports;window.addEventListener("extendify::template-inserted",(function(n){e("info",(0,Ht.__)("Page layout added"),{isDismissible:!0,type:"snackbar"}),setTimeout((function(){var e;t(),Ir(null===(e=n.detail)||void 0===e?void 0:e.template)}),0)}))}},{register:function(){var e=this;window.addEventListener("extendify::softerror-encountered",(function(t){e[(0,A.camelCase)(t.detail.type)](t.detail)}))},versionOutdated:function(e){(0,o.render)((0,nn.jsx)(vo,{title:e.data.title,requiredPlugins:["extendify"],message:e.data.message,buttonLabel:e.data.buttonLabel,forceOpen:!0}),document.getElementById("extendify-root"))}}].forEach((function(e){return e.register()})),null===(xs=window)||void 0===xs||null===(ys=xs.wp)||void 0===ys||ys.domReady((function(){var e=Object.assign(document.createElement("div"),{id:"extendify-root"});if(document.body.append(e),(0,o.render)((0,nn.jsx)(Ma,{}),e),e.parentNode.insertBefore(Object.assign(document.createElement("div"),{id:"extendify-util"}),e.nextSibling),Gr.getState().importOnLoad){var t=Gr.getState().wantedTemplate;setTimeout((function(){Ro((0,r.rawHandler)({HTML:t.fields.code}),t)}),0)}Gr.setState({importOnLoad:!1,wantedTemplate:{}})}))},4782:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=l(e),a=i[0],s=i[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,l=r-o;s<l;s+=a)i.push(u(e,s,s+a>l?l:s+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var o,i,a=[],s=t;s<r;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},816:(e,t,n)=>{"use strict";var r=n(4782),o=n(8898),i=n(5182);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),o=(e=s(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=n;i<s;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var f=!0,d=0;d<l;d++)if(u(e,i+d)!==u(t,d)){f=!1;break}if(f)return i}return-1}function g(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return V(z(t,e.length-n),e,n,r)}function w(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function j(e,t,n,r){return w(e,t,n,r)}function k(e,t,n,r){return V($(t),e,n,r)}function E(e,t,n,r){return V(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,u=e[o],c=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&u)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=C));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)x(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),u=this.slice(r,o),c=e.slice(t,n),f=0;f<s;++f)if(u[f]!==c[f]){i=u[f],a=c[f];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return g(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return j(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function O(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function P(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=U(e[i]);return o}function T(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function M(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return i||M(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return i||M(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=l.isBuffer(e)?e:z(new l(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function $(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}},42:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},6012:(e,t,n)=>{"use strict";var r=n(3185),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,l,u,c=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},8898:(e,t)=>{t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=s;c>0;i=256*i+e[t+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=u}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,u=8*i-o-1,c=(1<<u)-1,f=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*m}},5182:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},7721:()=>{},1461:()=>{},9086:()=>{},2525:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,l=o(e),u=1;u<arguments.length;u++){for(var c in a=Object(arguments[u]))n.call(a,c)&&(l[c]=a[c]);if(t){s=t(a);for(var f=0;f<s.length;f++)r.call(a,s[f])&&(l[s[f]]=a[s[f]])}}return l}},7061:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,l=[],u=!1,c=-1;function f(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=a(f);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c<t;)s&&s[c].run();c=-1,t=l.length}s=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},4218:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=s(n(7363)),i=s(n(6012)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x(e)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(l,e);var t,n,r,s=h(l);function l(){var e;f(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(x(e=s.call.apply(s,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,s=n.children,l=n.options,u=o.default.Children.only(s),c=(0,i.default)(r,l);a&&a(r,c),u&&u.props&&"function"==typeof u.props.onClick&&u.props.onClick(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=c(e,a),r=o.default.Children.only(t);return o.default.cloneElement(r,u(u({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.default.PureComponent);t.CopyToClipboard=g,v(g,"defaultProps",{onCopy:void 0,options:void 0})},4306:(e,t,n)=>{"use strict";var r=n(4218).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},1426:(e,t,n)=>{"use strict";n(2525);var r=n(7363),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:a.current}}t.jsx=u,t.jsxs=u},4246:(e,t,n)=>{"use strict";e.exports=n(1426)},6248:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof x?t:x,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?h:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",m={};function x(){}function y(){}function v(){}var g={};l(g,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(A([])));w&&w!==n&&r.call(w,i)&&(g=w);var j=v.prototype=x.prototype=Object.create(g);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,s){var l=c(e[o],e,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function _(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,_(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=c(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:P}}function P(){return{value:t,done:!0}}return y.prototype=v,l(j,"constructor",v),l(v,"constructor",y),y.displayName=l(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,s,"GeneratorFunction")),e.prototype=Object.create(j),e},e.awrap=function(e){return{__await:e}},k(E.prototype),l(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(j),l(j,s,"Generator"),l(j,i,(function(){return this})),l(j,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=A,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},3185:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},7363:e=>{"use strict";e.exports=React}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.expor