Metform Elementor Contact Form Builder – Flexible and Design-Friendly Contact Form builder plugin for WordPress - Version 1.5.0

Version Description

Metform 1.3.0-beta1 is a major update. We have reconstructed the widgets with react and huge optimization for future proof. If you faced any issue please contact our support team from here https://wpmet.com/support-ticket

Download this release

Release Info

Developer ataurr
Plugin Icon 128x128 Metform Elementor Contact Form Builder – Flexible and Design-Friendly Contact Form builder plugin for WordPress
Version 1.5.0
Comparing to
See all releases

Code changes from version 1.4.10 to 1.5.0

core/admin/base.php CHANGED
@@ -37,7 +37,7 @@ class Base {
37
  if(did_action('xpd_metform_pro/plugin_loaded')) {
38
  #Must be pro loaded....
39
 
40
- if(!empty($_REQUEST['code'])) {
41
 
42
  $code = $_REQUEST['code'];
43
  $nonce = $_REQUEST['state'];
@@ -57,7 +57,14 @@ class Base {
57
 
58
  $disabledAttr = empty($code)? '': 'disabled';
59
  }
60
- }
 
 
 
 
 
 
 
61
  #Let check if this is returned from aweber..
62
  #Give state check
63
 
37
  if(did_action('xpd_metform_pro/plugin_loaded')) {
38
  #Must be pro loaded....
39
 
40
+ if(!empty($_REQUEST['code']) && !empty($_REQUEST['state'])) {
41
 
42
  $code = $_REQUEST['code'];
43
  $nonce = $_REQUEST['state'];
57
 
58
  $disabledAttr = empty($code)? '': 'disabled';
59
  }
60
+
61
+ if(!empty($_REQUEST['code']) && empty($_REQUEST['state'])) {
62
+ $google = new \MetForm_Pro\Core\Integrations\Google_Sheet\Google_Access_Token;
63
+ $access_code = $google->get_access_token();
64
+
65
+ $access_code !== false ? update_option('wf_google_access_token', $access_code['body']) : null;
66
+ }
67
+ }
68
  #Let check if this is returned from aweber..
69
  #Give state check
70
 
core/admin/css/mf-wp-dashboard.css ADDED
@@ -0,0 +1 @@
 
1
+ #adminmenu .toplevel_page_metform-menu .wp-menu-image>img{-webkit-filter:grayscale(1);filter:grayscale(1);transition:opacity .3s,-webkit-filter .3s;transition:opacity .3s,filter .3s;transition:opacity .3s,filter .3s,-webkit-filter .3s}#adminmenu .toplevel_page_metform-menu.opensub .wp-menu-image>img,#adminmenu .toplevel_page_metform-menu.wp-menu-open .wp-menu-image>img,#adminmenu .toplevel_page_metform-menu:hover .wp-menu-image>img{-webkit-filter:grayscale(0);filter:grayscale(0)}
core/admin/images/banner.png DELETED
Binary file
core/admin/images/dashboard-banner.jpg ADDED
Binary file
core/admin/images/icon-menu.png ADDED
Binary file
core/admin/images/metform_logo.png CHANGED
Binary file
core/admin/views/settings.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  defined('ABSPATH') || exit;
3
 
4
  $settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
@@ -51,7 +52,16 @@ $settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
51
  </div>
52
  </a>
53
  </li>
54
-
 
 
 
 
 
 
 
 
 
55
  <?php echo do_action('metform_settings_tab'); ?>
56
 
57
  <li><a href="#" class="mf-setting-nav-link mf-setting-nav-hidden"></a></li>
@@ -74,7 +84,7 @@ $settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
74
  </div>
75
 
76
  <div class="mf-setting-dashboard-banner">
77
- <img src="<?php echo plugin_dir_url(__FILE__) . '../images/banner.png'; ?>" class="mf-admin-dashboard-banner">
78
  </div>
79
 
80
  <div class="mf-set-dash-section">
@@ -886,7 +896,62 @@ $settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
886
  </div>
887
  </div>
888
  <!-- ./End Mail Integration Tab -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
889
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
890
  <!-- Integrations settings action -->
891
 
892
  <?php echo do_action('metform_settings_content'); ?>
1
  <?php
2
+
3
  defined('ABSPATH') || exit;
4
 
5
  $settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
52
  </div>
53
  </a>
54
  </li>
55
+ <?php if (class_exists('\MetForm_Pro\Core\Integrations\Google_Sheet\WF_Google_Sheet')) :?>
56
+ <li>
57
+ <a href="#mf-google_sheet_integration" class="mf-setting-nav-link">
58
+ <div class="mf-setting-tab-content">
59
+ <span class="mf-setting-title"><?php echo esc_html__('Google Sheet Integration', 'metform'); ?></span>
60
+ <span class="mf-setting-subtitle"><?php echo esc_html__('All sheets info here', 'metform'); ?></span>
61
+ </div>
62
+ </a>
63
+ </li>
64
+ <?php endif;?>
65
  <?php echo do_action('metform_settings_tab'); ?>
66
 
67
  <li><a href="#" class="mf-setting-nav-link mf-setting-nav-hidden"></a></li>
84
  </div>
85
 
86
  <div class="mf-setting-dashboard-banner">
87
+ <img src="<?php echo plugin_dir_url(__FILE__) . '../images/dashboard-banner.jpg'; ?>" class="mf-admin-dashboard-banner">
88
  </div>
89
 
90
  <div class="mf-set-dash-section">
896
  </div>
897
  </div>
898
  <!-- ./End Mail Integration Tab -->
899
+ <?php if (class_exists('\MetForm_Pro\Core\Integrations\Google_Sheet\WF_Google_Sheet')) :?>
900
+ <!-- google sheet Integration Tab -->
901
+ <div class="mf-settings-section" id="mf-google_sheet_integration">
902
+ <div class="mf-settings-single-section">
903
+ <div class="mf-setting-header">
904
+ <h3 class="mf-settings-single-section--title"><span class="mf mf-settings"></span><?php esc_html_e('Google Sheet Integration', 'metform'); ?>
905
+ </h3>
906
+ <button type="submit" name="submit" id="submit" class="mf-admin-setting-btn active"><span class="mf mf-icon-checked-fillpng"></span><?php esc_attr_e('Save Changes', 'metform'); ?></button>
907
+ </div>
908
+ <div class="mf-setting-tab-nav">
909
+ <ul class="attr-nav attr-nav-tabs" id="nav-tab" role="attr-tablist">
910
+ <li class="attr-active attr-in">
911
+ <a class="attr-nav-item attr-nav-link" data-toggle="tab" href="#mf-google-sheet-tab" role="tab"><?php esc_attr_e('Google Sheet', 'metform'); ?></a>
912
+ </li>
913
+ </ul>
914
+ </div>
915
+ <div class="attr-form-group">
916
+ <div class="attr-tab-content" id="nav-tabContent">
917
+ <div class="attr-tab-pane attr-fade attr-active attr-in" id="mf-google-sheet-tab" role="tabpanel" aria-labelledby="nav-home-tab">
918
+ <div class="attr-row">
919
 
920
+ <div class="attr-col-lg-6">
921
+ <div class="mf-setting-input-group">
922
+ <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php esc_html_e('Google Client Id:', 'metform'); ?></label>
923
+ <input type="text" name="mf_google_sheet_client_id" value="<?php echo esc_attr(isset($settings['mf_google_sheet_client_id']) ? $settings['mf_google_sheet_client_id'] : ''); ?>" class="mf-setting-input mf-google-sheet-api-key attr-form-control" placeholder="<?php esc_html_e('Google OAuth Client Id', 'metform'); ?>">
924
+ <p class="description">
925
+ <?php esc_html_e('Enter here your google client id. ', 'metform'); ?><a class="mf-setting-btn-link" target="__blank" href="<?php echo esc_url('https://console.cloud.google.com', 'metform'); ?>"><?php esc_html_e('Create from here', 'metform'); ?></a>
926
+ </p>
927
+ </div>
928
+ <div class="mf-setting-input-group">
929
+ <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php esc_html_e('Google Client Secret:', 'metform'); ?></label>
930
+ <input type="text" name="mf_google_sheet_client_secret" value="<?php echo esc_attr(isset($settings['mf_google_sheet_client_secret']) ? $settings['mf_google_sheet_client_secret'] : ''); ?>" class="mf-setting-input mf-google-sheet-api-key attr-form-control" placeholder="<?php esc_html_e('Google OAuth Client Secret', 'metform'); ?>">
931
+ <p class="description">
932
+ <?php esc_html_e('Enter here your google secret id. ', 'metform'); ?><a class="mf-setting-btn-link" target="__blank" href="<?php echo esc_url('https://console.cloud.google.com', 'metform'); ?>"><?php esc_html_e('Create from here', 'metform'); ?></a>
933
+ </p>
934
+ </div>
935
+ </div>
936
+ </div>
937
+ <?php $google = new \MetForm_Pro\Core\Integrations\Google_Sheet\Google_Access_Token;?>
938
+ <ol class="xs_social_ol">
939
+ <li><?php echo esc_html__('Check how to create App/Project On Google developer account', 'metform')?> - <a href="https://help.wpmet.com/docs/google-sheet-integration" target="_blank">https://help.wpmet.com/docs/google-sheet-integration</a></li>
940
+ <li><?php echo esc_html__('Must add the following URL to the "Valid OAuth redirect URIs" field:', 'metform')?> <strong style="font-weight:700;"><?php echo admin_url('admin.php?page=metform-menu-settings')?></strong></li>
941
+ <li><?php echo esc_html__('After getting the App ID & App Secret, put those information', 'metform')?></li>
942
+ <li><?php echo esc_html__('Click on "Save Changes"', 'metform')?></li>
943
+ <li><?php echo esc_html__('Click on "Genarate Access Token"', 'metform')?></li>
944
+ </ol>
945
+ <a class="mf-setting-btn-link achor-style" href="<?php echo $google->get_code();?>"><?php esc_attr_e('Genarate Access Token', 'metform'); ?></a>
946
+ </div>
947
+ <p class="mf-set-dash-top-notch--item__desc">
948
+ <?php esc_html_e("Note:- After 200 days your token will be expired, before the expiry of your token, generate a new token.", 'metform'); ?>
949
+ </p>
950
+ </div>
951
+ </div>
952
+ </div>
953
+ </div>
954
+ <?php endif;?>
955
  <!-- Integrations settings action -->
956
 
957
  <?php echo do_action('metform_settings_content'); ?>
core/entries/action.php CHANGED
@@ -591,8 +591,7 @@ class Action
591
  return $this->response;
592
  }
593
 
594
- public function validate_form_data($form_data)
595
- {
596
 
597
  $field_count = 0;
598
  $errors = 0;
@@ -637,8 +636,7 @@ class Action
637
  return (($errors > 0) ? false : true);
638
  }
639
 
640
- public function store($form_id, $form_data)
641
- {
642
  $this->form_id = $form_id;
643
  //$this->sanitize($form_data);
644
 
@@ -647,8 +645,19 @@ class Action
647
  }
648
  }
649
 
650
- private function insert()
651
- {
 
 
 
 
 
 
 
 
 
 
 
652
 
653
  $form_settings = $this->form_settings;
654
  $form_id = $this->form_id;
591
  return $this->response;
592
  }
593
 
594
+ public function validate_form_data($form_data) {
 
595
 
596
  $field_count = 0;
597
  $errors = 0;
636
  return (($errors > 0) ? false : true);
637
  }
638
 
639
+ public function store($form_id, $form_data) {
 
640
  $this->form_id = $form_id;
641
  //$this->sanitize($form_data);
642
 
645
  }
646
  }
647
 
648
+ private function insert() {
649
+ // google sheet
650
+ if(class_exists('\MetForm_Pro\Core\Integrations\Google_Sheet\WF_Google_Sheet')) {
651
+ if(isset($this->form_settings['mf_google_sheet']) && $this->form_settings['mf_google_sheet'] == 1) {
652
+ $sheet = \MetForm_Pro\Core\Integrations\Google_Sheet\WF_Google_Sheet::instance()->insert($this->form_id, $this->title, $this->form_data, $this->file_upload_info, $this->get_fields($this->form_id));
653
+ if($sheet === false) {
654
+ $this->response->error[] = esc_html__('ssl certificate or google oauth credentials problem', 'metform');
655
+ $this->response->status = 0;
656
+ return $this->response;
657
+ }
658
+
659
+ }
660
+ }
661
 
662
  $form_settings = $this->form_settings;
663
  $form_id = $this->form_id;
core/entries/file-data-validation.php CHANGED
@@ -29,15 +29,19 @@ class File_Data_Validation {
29
 
30
  if(in_array($upload_extension, $mf_input_file_types) === true && array_key_exists($upload_extension, self::mimes()) === true) {
31
 
32
- $mime_type = self::mimes()[$upload_extension];
33
-
34
- $finfo = finfo_open(FILEINFO_MIME);
35
- $mime = finfo_file($finfo, $_FILES[$key]['tmp_name']);
36
- finfo_close($finfo);
37
-
38
- if(strpos($mime, $mime_type['mime']) !== false) {
39
- $result = true;
40
- }
 
 
 
 
41
  }
42
  if($result == false){
43
  $extensions = implode(', ', $mf_input_file_types);
29
 
30
  if(in_array($upload_extension, $mf_input_file_types) === true && array_key_exists($upload_extension, self::mimes()) === true) {
31
 
32
+ if(!function_exists('finfo_open')){
33
+ $result = true;
34
+ }else{
35
+ $mime_type = self::mimes()[$upload_extension];
36
+
37
+ $finfo = finfo_open(FILEINFO_MIME);
38
+ $mime = finfo_file($finfo, $_FILES[$key]['tmp_name']);
39
+ finfo_close($finfo);
40
+
41
+ if(strpos($mime, $mime_type['mime']) !== false) {
42
+ $result = true;
43
+ }
44
+ }
45
  }
46
  if($result == false){
47
  $extensions = implode(', ', $mf_input_file_types);
core/entries/form-data.php CHANGED
@@ -92,7 +92,7 @@ class Form_Data
92
  ob_start();
93
 
94
  ?>
95
- <div>
96
  <table width="100%" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF" style="border: 1px solid #EAF2FA">
97
  <tbody>
98
  <?php
92
  ob_start();
93
 
94
  ?>
95
+ <div style="border-left:5px solid #2EB5AB;padding-left:5px;">
96
  <table width="100%" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF" style="border: 1px solid #EAF2FA">
97
  <tbody>
98
  <?php
core/forms/cpt.php CHANGED
@@ -361,7 +361,16 @@ class Cpt extends \MetForm\Base\Cpt
361
  'mf_helpscout_conversation_customer_message' => [
362
  'name' => 'mf_helpscout_conversation_customer_message'
363
  ],
364
-
 
 
 
 
 
 
 
 
 
365
  ];
366
 
367
 
361
  'mf_helpscout_conversation_customer_message' => [
362
  'name' => 'mf_helpscout_conversation_customer_message'
363
  ],
364
+ // google sheet
365
+ 'mf_google_sheet' => [
366
+ 'name' => 'mf_google_sheet'
367
+ ],
368
+ 'mf_google_sheet_client_id' => [
369
+ 'name' => 'mf_google_sheet_client_id'
370
+ ],
371
+ 'mf_google_sheet_client_secret' => [
372
+ 'name' => 'mf_google_sheet_client_secret'
373
+ ]
374
  ];
375
 
376
 
core/forms/views/modal-editor.php CHANGED
@@ -265,7 +265,16 @@
265
 
266
  <?php endif ?>
267
 
268
-
 
 
 
 
 
 
 
 
 
269
  <?php if (did_action('xpd_metform_pro/plugin_loaded')) :
270
 
271
  if (class_exists('\MetForm_Pro\Core\Integrations\Mail_Poet')) : ?>
265
 
266
  <?php endif ?>
267
 
268
+ <?php if (class_exists('\MetForm_Pro\Core\Integrations\Google_Sheet\WF_Google_Sheet')) :?>
269
+ <div class="mf-input-group">
270
+ <label class="attr-input-label">
271
+ <input type="checkbox" value="1" name="mf_google_sheet" class="mf-admin-control-input mf-form-modal_input-google_sheet">
272
+ <span><?php esc_html_e('Google Sheet:', 'metform'); ?></span>
273
+ </label>
274
+ <span class='mf-input-help'><?php esc_html_e('Integrate google sheet with this form.', 'metform'); ?><strong><a target="_blank" href="<?php echo get_dashboard_url() . 'admin.php?page=metform-menu-settings#mf-google_sheet_integration'; ?>"><?php esc_html_e('Configure Google Sheet.', 'metform'); ?></a></strong></span>
275
+ </div>
276
+ <?php endif; ?>
277
+
278
  <?php if (did_action('xpd_metform_pro/plugin_loaded')) :
279
 
280
  if (class_exists('\MetForm_Pro\Core\Integrations\Mail_Poet')) : ?>
languages/metform.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: MetForm 1.4.10\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/metform\n"
7
- "POT-Creation-Date: 2021-06-14 11:07:25+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -106,525 +106,593 @@ msgstr ""
106
  msgid "Settings"
107
  msgstr ""
108
 
109
- #: core/admin/views/settings.php:21 core/admin/views/settings.php:72
110
  msgid "Dashboard"
111
  msgstr ""
112
 
113
- #: core/admin/views/settings.php:22
114
  msgid "All dashboard info here"
115
  msgstr ""
116
 
117
- #: core/admin/views/settings.php:30 core/admin/views/settings.php:294
118
  #: core/forms/views/modal-editor.php:14
119
  msgid "General"
120
  msgstr ""
121
 
122
- #: core/admin/views/settings.php:31
123
  msgid "All General info here"
124
  msgstr ""
125
 
126
- #: core/admin/views/settings.php:40 core/admin/views/settings.php:415
127
  #: core/entries/meta-data.php:286 core/forms/views/modal-editor.php:23
128
  msgid "Payment"
129
  msgstr ""
130
 
131
- #: core/admin/views/settings.php:41
132
  msgid "All payment info here"
133
  msgstr ""
134
 
135
- #: core/admin/views/settings.php:49 core/admin/views/settings.php:577
136
  msgid "Newsletter Integration"
137
  msgstr ""
138
 
139
- #: core/admin/views/settings.php:50
140
  msgid "All newsletter integration info here"
141
  msgstr ""
142
 
143
- #: core/admin/views/settings.php:73 core/admin/views/settings.php:295
144
- #: core/admin/views/settings.php:416 core/admin/views/settings.php:579
 
 
 
 
 
 
 
 
 
145
  msgid "Save Changes"
146
  msgstr ""
147
 
148
- #: core/admin/views/settings.php:83
149
  msgid "Top Notch"
150
  msgstr ""
151
 
152
- #: core/admin/views/settings.php:84
153
  msgid "Features"
154
  msgstr ""
155
 
156
- #: core/admin/views/settings.php:85 core/admin/views/settings.php:144
157
  msgid "features"
158
  msgstr ""
159
 
160
- #: core/admin/views/settings.php:87 core/admin/views/settings.php:146
161
- #: core/admin/views/settings.php:220
162
  msgid ""
163
  "Get started by spending some time with the documentation to get familiar "
164
  "with ElementsKit."
165
  msgstr ""
166
 
167
- #: core/admin/views/settings.php:95 core/admin/views/settings.php:154
168
  msgid "Easy to use"
169
  msgstr ""
170
 
171
- #: core/admin/views/settings.php:97 core/admin/views/settings.php:104
172
- #: core/admin/views/settings.php:111 core/admin/views/settings.php:118
173
- #: core/admin/views/settings.php:125 core/admin/views/settings.php:132
174
  msgid ""
175
  "Get started by spending some time with the documentation to get familiar "
176
  "with MetForm"
177
  msgstr ""
178
 
179
- #: core/admin/views/settings.php:102
180
  msgid "Moden Typography"
181
  msgstr ""
182
 
183
- #: core/admin/views/settings.php:109 core/admin/views/settings.php:160
184
  msgid "Perfectly Match"
185
  msgstr ""
186
 
187
- #: core/admin/views/settings.php:116
188
  msgid "Dynamic Forms"
189
  msgstr ""
190
 
191
- #: core/admin/views/settings.php:123
192
  msgid "Create Faster"
193
  msgstr ""
194
 
195
- #: core/admin/views/settings.php:130
196
  msgid "Awesome Layout"
197
  msgstr ""
198
 
199
- #: core/admin/views/settings.php:142
200
  msgid "What included with Free &"
201
  msgstr ""
202
 
203
- #: core/admin/views/settings.php:143
204
  msgid "PRO"
205
  msgstr ""
206
 
207
- #: core/admin/views/settings.php:154 core/admin/views/settings.php:157
208
- #: core/admin/views/settings.php:160
209
  msgid "Pro"
210
  msgstr ""
211
 
212
- #: core/admin/views/settings.php:157
213
  msgid "Modern Typography"
214
  msgstr ""
215
 
216
- #: core/admin/views/settings.php:169 core/admin/views/settings.php:185
217
- #: core/admin/views/settings.php:199
218
  msgid ""
219
  "Get started by spending some time with the documentation to get familiar "
220
  "with MetForm Get started by spending some time with the documentation to "
221
  "get notification in real time."
222
  msgstr ""
223
 
224
- #: core/admin/views/settings.php:172 core/admin/views/settings.php:188
225
- #: core/admin/views/settings.php:202
226
  msgid "Success Message"
227
  msgstr ""
228
 
229
- #: core/admin/views/settings.php:173 core/admin/views/settings.php:189
230
- #: core/admin/views/settings.php:203
231
  msgid "Required Login"
232
  msgstr ""
233
 
234
- #: core/admin/views/settings.php:174 core/admin/views/settings.php:190
235
- #: core/admin/views/settings.php:204
236
  msgid "Hide Form After Submission"
237
  msgstr ""
238
 
239
- #: core/admin/views/settings.php:176 core/admin/views/settings.php:192
240
- #: core/admin/views/settings.php:206
241
  msgid "Store Entries"
242
  msgstr ""
243
 
244
- #: core/admin/views/settings.php:179
245
  msgid "View Details"
246
  msgstr ""
247
 
248
- #: core/admin/views/settings.php:217
249
  msgid "General Knowledge Base"
250
  msgstr ""
251
 
252
- #: core/admin/views/settings.php:218
253
  msgid "FAQ"
254
  msgstr ""
255
 
256
- #: core/admin/views/settings.php:228
257
  msgid "1. How to create a Invitation Form using MetForm?"
258
  msgstr ""
259
 
260
- #: core/admin/views/settings.php:232 core/admin/views/settings.php:243
261
- #: core/admin/views/settings.php:254
262
  msgid ""
263
  "You will get 20+ complete homepages and total 450+ blocks in our layout "
264
  "library and we’re continuously updating the numbers there."
265
  msgstr ""
266
 
267
- #: core/admin/views/settings.php:239
268
  msgid "2. How to translate language with WPML?"
269
  msgstr ""
270
 
271
- #: core/admin/views/settings.php:250
272
  msgid "3. How to add custom css in specific section shortcode?"
273
  msgstr ""
274
 
275
- #: core/admin/views/settings.php:261
276
  msgid "View all faq’s"
277
  msgstr ""
278
 
279
- #: core/admin/views/settings.php:270
280
  msgid "Satisfied!"
281
  msgstr ""
282
 
283
- #: core/admin/views/settings.php:270
284
  msgid "Don’t forget to rate our item."
285
  msgstr ""
286
 
287
- #: core/admin/views/settings.php:272
288
  msgid "review"
289
  msgstr ""
290
 
291
- #: core/admin/views/settings.php:278
292
  msgid "Rate it now"
293
  msgstr ""
294
 
295
- #: core/admin/views/settings.php:283
296
  msgid "Rate Now Thumb"
297
  msgstr ""
298
 
299
- #: core/admin/views/settings.php:301
300
  msgid "reCaptcha"
301
  msgstr ""
302
 
303
- #: core/admin/views/settings.php:306
304
  msgid "Map"
305
  msgstr ""
306
 
307
- #: core/admin/views/settings.php:319
308
  msgid "Select version:"
309
  msgstr ""
310
 
311
- #: core/admin/views/settings.php:323
312
  msgid "reCAPTCHA V2"
313
  msgstr ""
314
 
315
- #: core/admin/views/settings.php:326
316
  msgid "reCAPTCHA V3"
317
  msgstr ""
318
 
319
- #: core/admin/views/settings.php:331
320
  msgid "Select google reCaptcha version which one want to use."
321
  msgstr ""
322
 
323
- #: core/admin/views/settings.php:338 core/admin/views/settings.php:357
324
  msgid "Site key:"
325
  msgstr ""
326
 
327
- #: core/admin/views/settings.php:340 core/admin/views/settings.php:359
328
  msgid "Insert site key"
329
  msgstr ""
330
 
331
- #: core/admin/views/settings.php:342 core/admin/views/settings.php:361
332
  msgid "Create google reCaptcha site key from reCaptcha admin panel. "
333
  msgstr ""
334
 
335
- #: core/admin/views/settings.php:342 core/admin/views/settings.php:350
336
- #: core/admin/views/settings.php:361 core/admin/views/settings.php:369
337
- #: core/admin/views/settings.php:387 core/admin/views/settings.php:446
338
- #: core/admin/views/settings.php:454 core/admin/views/settings.php:486
339
- #: core/admin/views/settings.php:494 core/admin/views/settings.php:513
340
- #: core/admin/views/settings.php:520
 
341
  msgid "Create from here"
342
  msgstr ""
343
 
344
- #: core/admin/views/settings.php:346 core/admin/views/settings.php:365
345
  msgid "Secret key:"
346
  msgstr ""
347
 
348
- #: core/admin/views/settings.php:348 core/admin/views/settings.php:367
349
  msgid "Insert secret key"
350
  msgstr ""
351
 
352
- #: core/admin/views/settings.php:350 core/admin/views/settings.php:369
353
  msgid "Create google reCaptcha secret key from reCaptcha admin panel. "
354
  msgstr ""
355
 
356
- #: core/admin/views/settings.php:383
357
  msgid "API:"
358
  msgstr ""
359
 
360
- #: core/admin/views/settings.php:385
361
  msgid "Insert map api key"
362
  msgstr ""
363
 
364
- #: core/admin/views/settings.php:387
365
  msgid "Create google map api key from google developer console. "
366
  msgstr ""
367
 
368
- #: core/admin/views/settings.php:422
369
  msgid "Paypal"
370
  msgstr ""
371
 
372
- #: core/admin/views/settings.php:427
373
  msgid "Stripe"
374
  msgstr ""
375
 
376
- #: core/admin/views/settings.php:432
377
  msgid "Tankyou Page"
378
  msgstr ""
379
 
380
- #: core/admin/views/settings.php:443
381
  msgid "Paypal email:"
382
  msgstr ""
383
 
384
- #: core/admin/views/settings.php:444
385
  msgid "Paypal email"
386
  msgstr ""
387
 
388
- #: core/admin/views/settings.php:446
389
  msgid "Enter here your paypal email. "
390
  msgstr ""
391
 
392
- #: core/admin/views/settings.php:451
393
  msgid "Paypal token:"
394
  msgstr ""
395
 
396
- #: core/admin/views/settings.php:452
397
  msgid "Paypal token"
398
  msgstr ""
399
 
400
- #: core/admin/views/settings.php:454
401
  msgid "Enter here your paypal token. This is optional. "
402
  msgstr ""
403
 
404
- #: core/admin/views/settings.php:459 core/admin/views/settings.php:500
405
  msgid "Enable sandbox mode:"
406
  msgstr ""
407
 
408
- #: core/admin/views/settings.php:462
409
  msgid "Enable this for testing payment method. "
410
  msgstr ""
411
 
412
- #: core/admin/views/settings.php:475
413
  msgid "Image url:"
414
  msgstr ""
415
 
416
- #: core/admin/views/settings.php:476
417
  msgid "Stripe image url"
418
  msgstr ""
419
 
420
- #: core/admin/views/settings.php:478
421
  msgid ""
422
  "Enter here your stripe image url. This image will show on stripe payment "
423
  "pop up modal. "
424
  msgstr ""
425
 
426
- #: core/admin/views/settings.php:483
427
  msgid "Live publishiable key:"
428
  msgstr ""
429
 
430
- #: core/admin/views/settings.php:484
431
  msgid "Stripe live publishiable key"
432
  msgstr ""
433
 
434
- #: core/admin/views/settings.php:486
435
  msgid "Enter here your stripe live publishiable key. "
436
  msgstr ""
437
 
438
- #: core/admin/views/settings.php:491
439
  msgid "Live secret key:"
440
  msgstr ""
441
 
442
- #: core/admin/views/settings.php:492
443
  msgid "Stripe live secret key"
444
  msgstr ""
445
 
446
- #: core/admin/views/settings.php:494
447
  msgid "Enter here your stripe live secret key. "
448
  msgstr ""
449
 
450
- #: core/admin/views/settings.php:503
451
  msgid "Enable this for testing your payment system. "
452
  msgstr ""
453
 
454
- #: core/admin/views/settings.php:510
455
  msgid "Test publishiable key:"
456
  msgstr ""
457
 
458
- #: core/admin/views/settings.php:511
459
  msgid "Stripe test publishiable key"
460
  msgstr ""
461
 
462
- #: core/admin/views/settings.php:513
463
  msgid "Enter here your test publishiable key. "
464
  msgstr ""
465
 
466
- #: core/admin/views/settings.php:517
467
  msgid "Test secret key:"
468
  msgstr ""
469
 
470
- #: core/admin/views/settings.php:518
471
  msgid "Stripe test secret key"
472
  msgstr ""
473
 
474
- #: core/admin/views/settings.php:520
475
  msgid "Enter here your test secret key. "
476
  msgstr ""
477
 
478
- #: core/admin/views/settings.php:586
479
  msgid "MailChimp"
480
  msgstr ""
481
 
482
- #: core/admin/views/settings.php:591
483
  msgid "Aweber"
484
  msgstr ""
485
 
486
- #: core/admin/views/settings.php:595
487
  msgid "ActiveCampaign"
488
  msgstr ""
489
 
490
- #: core/admin/views/settings.php:599
491
  msgid "Get Response"
492
  msgstr ""
493
 
494
- #: core/admin/views/settings.php:603
495
  msgid "ConvertKit"
496
  msgstr ""
497
 
498
- #: core/admin/views/settings.php:616 core/admin/views/settings.php:713
499
- #: core/admin/views/settings.php:765 core/admin/views/settings.php:792
500
  msgid "API Key:"
501
  msgstr ""
502
 
503
- #: core/admin/views/settings.php:617
504
  msgid "Mailchimp api key"
505
  msgstr ""
506
 
507
- #: core/admin/views/settings.php:619
508
  msgid "Enter here your Mailchimp api key. "
509
  msgstr ""
510
 
511
- #: core/admin/views/settings.php:619 core/admin/views/settings.php:653
512
- #: core/admin/views/settings.php:661 core/admin/views/settings.php:716
513
- #: core/admin/views/settings.php:725 core/admin/views/settings.php:760
514
- #: core/admin/views/settings.php:768 core/admin/views/settings.php:795
515
  msgid "Get API."
516
  msgstr ""
517
 
518
- #: core/admin/views/settings.php:628 core/admin/views/settings.php:693
519
- #: core/admin/views/settings.php:735 core/admin/views/settings.php:776
520
- #: core/admin/views/settings.php:803 core/admin/views/settings.php:836
521
- #: core/admin/views/settings.php:863
522
  msgid "How To"
523
  msgstr ""
524
 
525
- #: core/admin/views/settings.php:629 core/admin/views/settings.php:694
526
- #: core/admin/views/settings.php:736 core/admin/views/settings.php:777
527
- #: core/admin/views/settings.php:804 core/admin/views/settings.php:837
528
- #: core/admin/views/settings.php:864
529
  msgid ""
530
  "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. "
531
  "Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse "
532
  "urna nibh, viverra non, semper suscipit, posuere a, pede."
533
  msgstr ""
534
 
535
- #: core/admin/views/settings.php:632 core/admin/views/settings.php:697
536
- #: core/admin/views/settings.php:739 core/admin/views/settings.php:780
537
- #: core/admin/views/settings.php:807 core/admin/views/settings.php:840
538
- #: core/admin/views/settings.php:867
539
  msgid "Item 1"
540
  msgstr ""
541
 
542
- #: core/admin/views/settings.php:633 core/admin/views/settings.php:698
543
- #: core/admin/views/settings.php:740 core/admin/views/settings.php:781
544
- #: core/admin/views/settings.php:808 core/admin/views/settings.php:841
545
- #: core/admin/views/settings.php:868
546
  msgid "Item 2"
547
  msgstr ""
548
 
549
- #: core/admin/views/settings.php:634 core/admin/views/settings.php:699
550
- #: core/admin/views/settings.php:741 core/admin/views/settings.php:782
551
- #: core/admin/views/settings.php:809 core/admin/views/settings.php:842
552
- #: core/admin/views/settings.php:869
553
  msgid "Item 3"
554
  msgstr ""
555
 
556
- #: core/admin/views/settings.php:637 core/admin/views/settings.php:702
557
- #: core/admin/views/settings.php:744 core/admin/views/settings.php:785
558
- #: core/admin/views/settings.php:812 core/admin/views/settings.php:845
559
- #: core/admin/views/settings.php:872
560
  msgid "View Documentation"
561
  msgstr ""
562
 
563
- #: core/admin/views/settings.php:650
564
  msgid "Developer App ID:"
565
  msgstr ""
566
 
567
- #: core/admin/views/settings.php:651
568
  msgid "Aweber developer clientId key"
569
  msgstr ""
570
 
571
- #: core/admin/views/settings.php:653
572
  msgid "Enter here your Aweber developer app key. "
573
  msgstr ""
574
 
575
- #: core/admin/views/settings.php:658
576
  msgid "Developer App Secret:"
577
  msgstr ""
578
 
579
- #: core/admin/views/settings.php:659
580
  msgid "Aweber developer secret key"
581
  msgstr ""
582
 
583
- #: core/admin/views/settings.php:661
584
  msgid "Enter here your Aweber developer secret key. "
585
  msgstr ""
586
 
587
- #: core/admin/views/settings.php:666
588
  msgid "Redirect url:"
589
  msgstr ""
590
 
591
- #: core/admin/views/settings.php:714 core/admin/views/settings.php:723
592
  msgid "ConvertKit api key"
593
  msgstr ""
594
 
595
- #: core/admin/views/settings.php:716 core/admin/views/settings.php:725
596
  msgid "Enter here your ConvertKit api key. "
597
  msgstr ""
598
 
599
- #: core/admin/views/settings.php:722
600
  msgid "Secret Key:"
601
  msgstr ""
602
 
603
- #: core/admin/views/settings.php:757
604
  msgid "API URL:"
605
  msgstr ""
606
 
607
- #: core/admin/views/settings.php:758
608
  msgid "ActiveCampaign API URL"
609
  msgstr ""
610
 
611
- #: core/admin/views/settings.php:760 core/admin/views/settings.php:768
612
- #: core/admin/views/settings.php:795
613
  msgid "Enter here your ActiveCampaign api key. "
614
  msgstr ""
615
 
616
- #: core/admin/views/settings.php:766 core/admin/views/settings.php:793
617
  msgid "ActiveCampaign api key"
618
  msgstr ""
619
 
620
- #: core/admin/views/settings.php:826 core/admin/views/settings.php:853
621
  msgid "GetResponse API Key:"
622
  msgstr ""
623
 
624
- #: core/admin/views/settings.php:827 core/admin/views/settings.php:854
625
  msgid "GetResponse api key"
626
  msgstr ""
627
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
628
  #: core/entries/action.php:41
629
  msgid "Some thing went wrong."
630
  msgstr ""
@@ -665,15 +733,19 @@ msgstr ""
665
  msgid " Please wait... Open a Stripe Popup Box."
666
  msgstr ""
667
 
668
- #: core/entries/action.php:725
 
 
 
 
669
  msgid "Mail not found."
670
  msgstr ""
671
 
672
- #: core/entries/action.php:767
673
  msgid "Admin mail not found to send email."
674
  msgstr ""
675
 
676
- #: core/entries/action.php:856
677
  msgid "There was an error uploading your file. The error is: "
678
  msgstr ""
679
 
@@ -689,7 +761,7 @@ msgstr ""
689
  msgid "Entry Attributes"
690
  msgstr ""
691
 
692
- #: core/entries/cpt.php:20 core/forms/cpt.php:380
693
  msgid "Parent Item:"
694
  msgstr ""
695
 
@@ -701,7 +773,7 @@ msgstr ""
701
  msgid "Add New Item"
702
  msgstr ""
703
 
704
- #: core/entries/cpt.php:23 core/forms/cpt.php:383
705
  msgid "Add New"
706
  msgstr ""
707
 
@@ -729,27 +801,27 @@ msgstr ""
729
  msgid "Search Item"
730
  msgstr ""
731
 
732
- #: core/entries/cpt.php:30 core/forms/cpt.php:390
733
  msgid "Not found"
734
  msgstr ""
735
 
736
- #: core/entries/cpt.php:31 core/forms/cpt.php:391
737
  msgid "Not found in Trash"
738
  msgstr ""
739
 
740
- #: core/entries/cpt.php:32 core/forms/cpt.php:392
741
  msgid "Featured Image"
742
  msgstr ""
743
 
744
- #: core/entries/cpt.php:33 core/forms/cpt.php:393
745
  msgid "Set featured image"
746
  msgstr ""
747
 
748
- #: core/entries/cpt.php:34 core/forms/cpt.php:394
749
  msgid "Remove featured image"
750
  msgstr ""
751
 
752
- #: core/entries/cpt.php:35 core/forms/cpt.php:395
753
  msgid "Use as featured image"
754
  msgstr ""
755
 
@@ -859,71 +931,71 @@ msgstr ""
859
  msgid "You must enable \"store entries\" for integrating payment method."
860
  msgstr ""
861
 
862
- #: core/forms/cpt.php:376 core/forms/cpt.php:377 widgets/form.php:37
863
  msgid "Form"
864
  msgstr ""
865
 
866
- #: core/forms/cpt.php:378
867
  msgid "Form Archives"
868
  msgstr ""
869
 
870
- #: core/forms/cpt.php:379
871
  msgid "Form Attributes"
872
  msgstr ""
873
 
874
- #: core/forms/cpt.php:381 core/forms/cpt.php:409
875
  msgid "Forms"
876
  msgstr ""
877
 
878
- #: core/forms/cpt.php:382
879
  msgid "Add New Form"
880
  msgstr ""
881
 
882
- #: core/forms/cpt.php:384
883
  msgid "New Form"
884
  msgstr ""
885
 
886
- #: core/forms/cpt.php:385
887
  msgid "Edit Form"
888
  msgstr ""
889
 
890
- #: core/forms/cpt.php:386
891
  msgid "Update Form"
892
  msgstr ""
893
 
894
- #: core/forms/cpt.php:387
895
  msgid "View Form"
896
  msgstr ""
897
 
898
- #: core/forms/cpt.php:388
899
  msgid "View Forms"
900
  msgstr ""
901
 
902
- #: core/forms/cpt.php:389
903
  msgid "Search Forms"
904
  msgstr ""
905
 
906
- #: core/forms/cpt.php:396
907
  msgid "Insert into form"
908
  msgstr ""
909
 
910
- #: core/forms/cpt.php:397
911
  msgid "Uploaded to this form"
912
  msgstr ""
913
 
914
- #: core/forms/cpt.php:398
915
  msgid "Forms list"
916
  msgstr ""
917
 
918
- #: core/forms/cpt.php:399
919
  msgid "Forms list navigation"
920
  msgstr ""
921
 
922
- #: core/forms/cpt.php:400
923
  msgid "Filter froms list"
924
  msgstr ""
925
 
926
- #: core/forms/cpt.php:410
927
  msgid "metform form"
928
  msgstr ""
929
 
@@ -1067,7 +1139,7 @@ msgstr ""
1067
  msgid "Want to send a submission copy to user by email? Active this one."
1068
  msgstr ""
1069
 
1070
- #: core/forms/views/modal-editor.php:134 core/forms/views/modal-editor.php:446
1071
  msgid "The form must have at least one Email widget and it should be required."
1072
  msgstr ""
1073
 
@@ -1213,10 +1285,10 @@ msgstr ""
1213
  msgid "Integrate mailchimp with this form."
1214
  msgstr ""
1215
 
1216
- #: core/forms/views/modal-editor.php:251 core/forms/views/modal-editor.php:280
1217
- #: core/forms/views/modal-editor.php:309 core/forms/views/modal-editor.php:331
1218
- #: core/forms/views/modal-editor.php:359 core/forms/views/modal-editor.php:387
1219
- #: core/forms/views/modal-editor.php:406
1220
  msgid "The form must have at least one Email widget and it should be required. "
1221
  msgstr ""
1222
 
@@ -1232,272 +1304,284 @@ msgstr ""
1232
  msgid "Mailchimp contact list id"
1233
  msgstr ""
1234
 
1235
- #: core/forms/views/modal-editor.php:276
 
 
 
 
 
 
 
 
 
 
 
 
1236
  msgid "MailPoet:"
1237
  msgstr ""
1238
 
1239
- #: core/forms/views/modal-editor.php:279
1240
  msgid "Integrate MailPoet with this form."
1241
  msgstr ""
1242
 
1243
- #: core/forms/views/modal-editor.php:282
1244
  msgid "Configure MailPoet."
1245
  msgstr ""
1246
 
1247
- #: core/forms/views/modal-editor.php:289
1248
  msgid "MailPoet List ID:"
1249
  msgstr ""
1250
 
1251
- #: core/forms/views/modal-editor.php:295
1252
  msgid "Enter here MailPoet list id. "
1253
  msgstr ""
1254
 
1255
- #: core/forms/views/modal-editor.php:296 core/forms/views/modal-editor.php:320
1256
- #: core/forms/views/modal-editor.php:343
1257
  msgid "Refresh List"
1258
  msgstr ""
1259
 
1260
- #: core/forms/views/modal-editor.php:307
1261
  msgid "Aweber:"
1262
  msgstr ""
1263
 
1264
- #: core/forms/views/modal-editor.php:309
1265
  msgid "Integrate aweber with this form."
1266
  msgstr ""
1267
 
1268
- #: core/forms/views/modal-editor.php:309
1269
  msgid "Configure aweber."
1270
  msgstr ""
1271
 
1272
- #: core/forms/views/modal-editor.php:313
1273
  msgid "Aweber List ID:"
1274
  msgstr ""
1275
 
1276
- #: core/forms/views/modal-editor.php:319
1277
  msgid "Enter here aweber list id. "
1278
  msgstr ""
1279
 
1280
- #: core/forms/views/modal-editor.php:329
1281
  msgid "ConvertKit:"
1282
  msgstr ""
1283
 
1284
- #: core/forms/views/modal-editor.php:331
1285
  msgid "Integrate convertKit with this form."
1286
  msgstr ""
1287
 
1288
- #: core/forms/views/modal-editor.php:331
1289
  msgid "Configure ConvertKit."
1290
  msgstr ""
1291
 
1292
- #: core/forms/views/modal-editor.php:335
1293
  msgid "ConvertKit Forms ID:"
1294
  msgstr ""
1295
 
1296
- #: core/forms/views/modal-editor.php:341
1297
  msgid "Enter here ConvertKit form id. "
1298
  msgstr ""
1299
 
1300
- #: core/forms/views/modal-editor.php:356
1301
  msgid "GetResponse:"
1302
  msgstr ""
1303
 
1304
- #: core/forms/views/modal-editor.php:359
1305
  msgid "Integrate GetResponse with this form."
1306
  msgstr ""
1307
 
1308
- #: core/forms/views/modal-editor.php:359
1309
  msgid "Configure GetResponse."
1310
  msgstr ""
1311
 
1312
- #: core/forms/views/modal-editor.php:365
1313
  msgid "GetResponse List ID:"
1314
  msgstr ""
1315
 
1316
- #: core/forms/views/modal-editor.php:373
1317
  msgid "GetResponse contact list id"
1318
  msgstr ""
1319
 
1320
- #: core/forms/views/modal-editor.php:374
1321
  msgid "Enter here GetResponse list id. "
1322
  msgstr ""
1323
 
1324
- #: core/forms/views/modal-editor.php:385
1325
  msgid "ActiveCampaign:"
1326
  msgstr ""
1327
 
1328
- #: core/forms/views/modal-editor.php:387
1329
  msgid "Integrate ActiveCampaign with this form."
1330
  msgstr ""
1331
 
1332
- #: core/forms/views/modal-editor.php:387
1333
  msgid "Configure ActiveCampaign."
1334
  msgstr ""
1335
 
1336
- #: core/forms/views/modal-editor.php:403
1337
  msgid "Mailster:"
1338
  msgstr ""
1339
 
1340
- #: core/forms/views/modal-editor.php:406
1341
  msgid "Integrate Mailster with this form."
1342
  msgstr ""
1343
 
1344
- #: core/forms/views/modal-editor.php:412
1345
  msgid "Mailster Forms"
1346
  msgstr ""
1347
 
1348
- #: core/forms/views/modal-editor.php:444
1349
  msgid "Zapier:"
1350
  msgstr ""
1351
 
1352
- #: core/forms/views/modal-editor.php:446
1353
  msgid "Integrate zapier with this form."
1354
  msgstr ""
1355
 
1356
- #: core/forms/views/modal-editor.php:450
1357
  msgid "Zapier webhook:"
1358
  msgstr ""
1359
 
1360
- #: core/forms/views/modal-editor.php:451
1361
  msgid "Zapier webhook"
1362
  msgstr ""
1363
 
1364
- #: core/forms/views/modal-editor.php:452
1365
  msgid "Enter here zapier web hook."
1366
  msgstr ""
1367
 
1368
- #: core/forms/views/modal-editor.php:461
1369
  msgid "Slack:"
1370
  msgstr ""
1371
 
1372
- #: core/forms/views/modal-editor.php:463
1373
  msgid "Integrate slack with this form."
1374
  msgstr ""
1375
 
1376
- #: core/forms/views/modal-editor.php:463
1377
  msgid "slack info."
1378
  msgstr ""
1379
 
1380
- #: core/forms/views/modal-editor.php:467
1381
  msgid "Slack webhook:"
1382
  msgstr ""
1383
 
1384
- #: core/forms/views/modal-editor.php:468
1385
  msgid "Slack webhook"
1386
  msgstr ""
1387
 
1388
- #: core/forms/views/modal-editor.php:469
1389
  msgid "Enter here slack web hook."
1390
  msgstr ""
1391
 
1392
- #: core/forms/views/modal-editor.php:469
1393
  msgid "create from here"
1394
  msgstr ""
1395
 
1396
- #: core/forms/views/modal-editor.php:483
1397
  msgid "Success url:"
1398
  msgstr ""
1399
 
1400
- #: core/forms/views/modal-editor.php:486
1401
  msgid "Success url"
1402
  msgstr ""
1403
 
1404
- #: core/forms/views/modal-editor.php:488
1405
  msgid ""
1406
  "Users will be redirected to the this link after successfully form "
1407
  "submission."
1408
  msgstr ""
1409
 
1410
- #: core/forms/views/modal-editor.php:493
1411
  msgid "Failed/ Cancel url:"
1412
  msgstr ""
1413
 
1414
- #: core/forms/views/modal-editor.php:496
1415
  msgid "Failed/Cancel url"
1416
  msgstr ""
1417
 
1418
- #: core/forms/views/modal-editor.php:498
1419
  msgid ""
1420
  "Users will be redirected to the this link after any failure/ cancelation of "
1421
  "form submission."
1422
  msgstr ""
1423
 
1424
- #: core/forms/views/modal-editor.php:504
1425
  msgid "Paypal:"
1426
  msgstr ""
1427
 
1428
- #: core/forms/views/modal-editor.php:506
1429
  msgid "Integrate paypal payment with this form."
1430
  msgstr ""
1431
 
1432
- #: core/forms/views/modal-editor.php:506
1433
  msgid "Configure paypal payment."
1434
  msgstr ""
1435
 
1436
- #: core/forms/views/modal-editor.php:515
1437
  msgid "Stripe:"
1438
  msgstr ""
1439
 
1440
- #: core/forms/views/modal-editor.php:517
1441
  msgid "Integrate stripe payment with this form. "
1442
  msgstr ""
1443
 
1444
- #: core/forms/views/modal-editor.php:517
1445
  msgid "Configure stripe payment."
1446
  msgstr ""
1447
 
1448
- #: core/forms/views/modal-editor.php:533
1449
  msgid "Hubspot Contact:"
1450
  msgstr ""
1451
 
1452
- #: core/forms/views/modal-editor.php:535
1453
  msgid "Integrate hubspot with this form. "
1454
  msgstr ""
1455
 
1456
- #: core/forms/views/modal-editor.php:535
1457
  msgid "Configure Hubspot."
1458
  msgstr ""
1459
 
1460
- #: core/forms/views/modal-editor.php:542
1461
  msgid "Hubspot Forms:"
1462
  msgstr ""
1463
 
1464
- #: core/forms/views/modal-editor.php:550
1465
  msgid "Fetch hubspot forms"
1466
  msgstr ""
1467
 
1468
- #: core/forms/views/modal-editor.php:573
1469
  msgid "Zoho Contact:"
1470
  msgstr ""
1471
 
1472
- #: core/forms/views/modal-editor.php:575
1473
  msgid "Integrate Zoho contacts with this form. "
1474
  msgstr ""
1475
 
1476
- #: core/forms/views/modal-editor.php:575
1477
  msgid "Configure Zoho."
1478
  msgstr ""
1479
 
1480
- #: core/forms/views/modal-editor.php:585
1481
  msgid "Helpscout"
1482
  msgstr ""
1483
 
1484
- #: core/forms/views/modal-editor.php:587
1485
  msgid "Integrate Helpscout with this form. "
1486
  msgstr ""
1487
 
1488
- #: core/forms/views/modal-editor.php:587
1489
  msgid "Configure Helpscout."
1490
  msgstr ""
1491
 
1492
- #: core/forms/views/modal-editor.php:592
1493
  msgid "Available Mailboxes"
1494
  msgstr ""
1495
 
1496
- #: core/forms/views/modal-editor.php:629
1497
  msgid "Edit content"
1498
  msgstr ""
1499
 
1500
- #: core/forms/views/modal-editor.php:631
1501
  msgid "Save changes"
1502
  msgstr ""
1503
 
@@ -1514,27 +1598,27 @@ msgstr ""
1514
  msgid "Your data inserted on slack."
1515
  msgstr ""
1516
 
1517
- #: plugin.php:369
1518
  msgid "Activate Elementor"
1519
  msgstr ""
1520
 
1521
- #: plugin.php:376
1522
  msgid "Install Elementor"
1523
  msgstr ""
1524
 
1525
- #: plugin.php:380 plugin.php:412
1526
  msgid "MetForm requires Elementor version %1$s+, which is currently NOT RUNNING."
1527
  msgstr ""
1528
 
1529
- #: plugin.php:395
1530
  msgid "MetForm Pro"
1531
  msgstr ""
1532
 
1533
- #: plugin.php:399 plugin.php:415
1534
  msgid "We have MetForm Pro version. Check out our pro feature."
1535
  msgstr ""
1536
 
1537
- #: plugin.php:411
1538
  msgid "Update Elementor"
1539
  msgstr ""
1540
 
@@ -3054,7 +3138,7 @@ msgstr ""
3054
  msgid "Summary"
3055
  msgstr ""
3056
 
3057
- #: widgets/summary/summary.php:146
3058
  msgid "Summary will be shown on preview."
3059
  msgstr ""
3060
 
@@ -3139,7 +3223,7 @@ msgctxt "Post Type General Name"
3139
  msgid "Entries"
3140
  msgstr ""
3141
 
3142
- #: core/forms/cpt.php:374
3143
  msgctxt "Post Type General Name"
3144
  msgid "Forms"
3145
  msgstr ""
@@ -3149,7 +3233,7 @@ msgctxt "Post Type Singular Name"
3149
  msgid "Entry"
3150
  msgstr ""
3151
 
3152
- #: core/forms/cpt.php:375
3153
  msgctxt "Post Type Singular Name"
3154
  msgid "Form"
3155
  msgstr ""
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: MetForm 1.5.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/metform\n"
7
+ "POT-Creation-Date: 2021-07-13 04:22:01+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
106
  msgid "Settings"
107
  msgstr ""
108
 
109
+ #: core/admin/views/settings.php:22 core/admin/views/settings.php:82
110
  msgid "Dashboard"
111
  msgstr ""
112
 
113
+ #: core/admin/views/settings.php:23
114
  msgid "All dashboard info here"
115
  msgstr ""
116
 
117
+ #: core/admin/views/settings.php:31 core/admin/views/settings.php:304
118
  #: core/forms/views/modal-editor.php:14
119
  msgid "General"
120
  msgstr ""
121
 
122
+ #: core/admin/views/settings.php:32
123
  msgid "All General info here"
124
  msgstr ""
125
 
126
+ #: core/admin/views/settings.php:41 core/admin/views/settings.php:425
127
  #: core/entries/meta-data.php:286 core/forms/views/modal-editor.php:23
128
  msgid "Payment"
129
  msgstr ""
130
 
131
+ #: core/admin/views/settings.php:42
132
  msgid "All payment info here"
133
  msgstr ""
134
 
135
+ #: core/admin/views/settings.php:50 core/admin/views/settings.php:587
136
  msgid "Newsletter Integration"
137
  msgstr ""
138
 
139
+ #: core/admin/views/settings.php:51
140
  msgid "All newsletter integration info here"
141
  msgstr ""
142
 
143
+ #: core/admin/views/settings.php:59 core/admin/views/settings.php:904
144
+ msgid "Google Sheet Integration"
145
+ msgstr ""
146
+
147
+ #: core/admin/views/settings.php:60
148
+ msgid "All sheets info here"
149
+ msgstr ""
150
+
151
+ #: core/admin/views/settings.php:83 core/admin/views/settings.php:305
152
+ #: core/admin/views/settings.php:426 core/admin/views/settings.php:589
153
+ #: core/admin/views/settings.php:906
154
  msgid "Save Changes"
155
  msgstr ""
156
 
157
+ #: core/admin/views/settings.php:93
158
  msgid "Top Notch"
159
  msgstr ""
160
 
161
+ #: core/admin/views/settings.php:94
162
  msgid "Features"
163
  msgstr ""
164
 
165
+ #: core/admin/views/settings.php:95 core/admin/views/settings.php:154
166
  msgid "features"
167
  msgstr ""
168
 
169
+ #: core/admin/views/settings.php:97 core/admin/views/settings.php:156
170
+ #: core/admin/views/settings.php:230
171
  msgid ""
172
  "Get started by spending some time with the documentation to get familiar "
173
  "with ElementsKit."
174
  msgstr ""
175
 
176
+ #: core/admin/views/settings.php:105 core/admin/views/settings.php:164
177
  msgid "Easy to use"
178
  msgstr ""
179
 
180
+ #: core/admin/views/settings.php:107 core/admin/views/settings.php:114
181
+ #: core/admin/views/settings.php:121 core/admin/views/settings.php:128
182
+ #: core/admin/views/settings.php:135 core/admin/views/settings.php:142
183
  msgid ""
184
  "Get started by spending some time with the documentation to get familiar "
185
  "with MetForm"
186
  msgstr ""
187
 
188
+ #: core/admin/views/settings.php:112
189
  msgid "Moden Typography"
190
  msgstr ""
191
 
192
+ #: core/admin/views/settings.php:119 core/admin/views/settings.php:170
193
  msgid "Perfectly Match"
194
  msgstr ""
195
 
196
+ #: core/admin/views/settings.php:126
197
  msgid "Dynamic Forms"
198
  msgstr ""
199
 
200
+ #: core/admin/views/settings.php:133
201
  msgid "Create Faster"
202
  msgstr ""
203
 
204
+ #: core/admin/views/settings.php:140
205
  msgid "Awesome Layout"
206
  msgstr ""
207
 
208
+ #: core/admin/views/settings.php:152
209
  msgid "What included with Free &"
210
  msgstr ""
211
 
212
+ #: core/admin/views/settings.php:153
213
  msgid "PRO"
214
  msgstr ""
215
 
216
+ #: core/admin/views/settings.php:164 core/admin/views/settings.php:167
217
+ #: core/admin/views/settings.php:170
218
  msgid "Pro"
219
  msgstr ""
220
 
221
+ #: core/admin/views/settings.php:167
222
  msgid "Modern Typography"
223
  msgstr ""
224
 
225
+ #: core/admin/views/settings.php:179 core/admin/views/settings.php:195
226
+ #: core/admin/views/settings.php:209
227
  msgid ""
228
  "Get started by spending some time with the documentation to get familiar "
229
  "with MetForm Get started by spending some time with the documentation to "
230
  "get notification in real time."
231
  msgstr ""
232
 
233
+ #: core/admin/views/settings.php:182 core/admin/views/settings.php:198
234
+ #: core/admin/views/settings.php:212
235
  msgid "Success Message"
236
  msgstr ""
237
 
238
+ #: core/admin/views/settings.php:183 core/admin/views/settings.php:199
239
+ #: core/admin/views/settings.php:213
240
  msgid "Required Login"
241
  msgstr ""
242
 
243
+ #: core/admin/views/settings.php:184 core/admin/views/settings.php:200
244
+ #: core/admin/views/settings.php:214
245
  msgid "Hide Form After Submission"
246
  msgstr ""
247
 
248
+ #: core/admin/views/settings.php:186 core/admin/views/settings.php:202
249
+ #: core/admin/views/settings.php:216
250
  msgid "Store Entries"
251
  msgstr ""
252
 
253
+ #: core/admin/views/settings.php:189
254
  msgid "View Details"
255
  msgstr ""
256
 
257
+ #: core/admin/views/settings.php:227
258
  msgid "General Knowledge Base"
259
  msgstr ""
260
 
261
+ #: core/admin/views/settings.php:228
262
  msgid "FAQ"
263
  msgstr ""
264
 
265
+ #: core/admin/views/settings.php:238
266
  msgid "1. How to create a Invitation Form using MetForm?"
267
  msgstr ""
268
 
269
+ #: core/admin/views/settings.php:242 core/admin/views/settings.php:253
270
+ #: core/admin/views/settings.php:264
271
  msgid ""
272
  "You will get 20+ complete homepages and total 450+ blocks in our layout "
273
  "library and we’re continuously updating the numbers there."
274
  msgstr ""
275
 
276
+ #: core/admin/views/settings.php:249
277
  msgid "2. How to translate language with WPML?"
278
  msgstr ""
279
 
280
+ #: core/admin/views/settings.php:260
281
  msgid "3. How to add custom css in specific section shortcode?"
282
  msgstr ""
283
 
284
+ #: core/admin/views/settings.php:271
285
  msgid "View all faq’s"
286
  msgstr ""
287
 
288
+ #: core/admin/views/settings.php:280
289
  msgid "Satisfied!"
290
  msgstr ""
291
 
292
+ #: core/admin/views/settings.php:280
293
  msgid "Don’t forget to rate our item."
294
  msgstr ""
295
 
296
+ #: core/admin/views/settings.php:282
297
  msgid "review"
298
  msgstr ""
299
 
300
+ #: core/admin/views/settings.php:288
301
  msgid "Rate it now"
302
  msgstr ""
303
 
304
+ #: core/admin/views/settings.php:293
305
  msgid "Rate Now Thumb"
306
  msgstr ""
307
 
308
+ #: core/admin/views/settings.php:311
309
  msgid "reCaptcha"
310
  msgstr ""
311
 
312
+ #: core/admin/views/settings.php:316
313
  msgid "Map"
314
  msgstr ""
315
 
316
+ #: core/admin/views/settings.php:329
317
  msgid "Select version:"
318
  msgstr ""
319
 
320
+ #: core/admin/views/settings.php:333
321
  msgid "reCAPTCHA V2"
322
  msgstr ""
323
 
324
+ #: core/admin/views/settings.php:336
325
  msgid "reCAPTCHA V3"
326
  msgstr ""
327
 
328
+ #: core/admin/views/settings.php:341
329
  msgid "Select google reCaptcha version which one want to use."
330
  msgstr ""
331
 
332
+ #: core/admin/views/settings.php:348 core/admin/views/settings.php:367
333
  msgid "Site key:"
334
  msgstr ""
335
 
336
+ #: core/admin/views/settings.php:350 core/admin/views/settings.php:369
337
  msgid "Insert site key"
338
  msgstr ""
339
 
340
+ #: core/admin/views/settings.php:352 core/admin/views/settings.php:371
341
  msgid "Create google reCaptcha site key from reCaptcha admin panel. "
342
  msgstr ""
343
 
344
+ #: core/admin/views/settings.php:352 core/admin/views/settings.php:360
345
+ #: core/admin/views/settings.php:371 core/admin/views/settings.php:379
346
+ #: core/admin/views/settings.php:397 core/admin/views/settings.php:456
347
+ #: core/admin/views/settings.php:464 core/admin/views/settings.php:496
348
+ #: core/admin/views/settings.php:504 core/admin/views/settings.php:523
349
+ #: core/admin/views/settings.php:530 core/admin/views/settings.php:925
350
+ #: core/admin/views/settings.php:932
351
  msgid "Create from here"
352
  msgstr ""
353
 
354
+ #: core/admin/views/settings.php:356 core/admin/views/settings.php:375
355
  msgid "Secret key:"
356
  msgstr ""
357
 
358
+ #: core/admin/views/settings.php:358 core/admin/views/settings.php:377
359
  msgid "Insert secret key"
360
  msgstr ""
361
 
362
+ #: core/admin/views/settings.php:360 core/admin/views/settings.php:379
363
  msgid "Create google reCaptcha secret key from reCaptcha admin panel. "
364
  msgstr ""
365
 
366
+ #: core/admin/views/settings.php:393
367
  msgid "API:"
368
  msgstr ""
369
 
370
+ #: core/admin/views/settings.php:395
371
  msgid "Insert map api key"
372
  msgstr ""
373
 
374
+ #: core/admin/views/settings.php:397
375
  msgid "Create google map api key from google developer console. "
376
  msgstr ""
377
 
378
+ #: core/admin/views/settings.php:432
379
  msgid "Paypal"
380
  msgstr ""
381
 
382
+ #: core/admin/views/settings.php:437
383
  msgid "Stripe"
384
  msgstr ""
385
 
386
+ #: core/admin/views/settings.php:442
387
  msgid "Tankyou Page"
388
  msgstr ""
389
 
390
+ #: core/admin/views/settings.php:453
391
  msgid "Paypal email:"
392
  msgstr ""
393
 
394
+ #: core/admin/views/settings.php:454
395
  msgid "Paypal email"
396
  msgstr ""
397
 
398
+ #: core/admin/views/settings.php:456
399
  msgid "Enter here your paypal email. "
400
  msgstr ""
401
 
402
+ #: core/admin/views/settings.php:461
403
  msgid "Paypal token:"
404
  msgstr ""
405
 
406
+ #: core/admin/views/settings.php:462
407
  msgid "Paypal token"
408
  msgstr ""
409
 
410
+ #: core/admin/views/settings.php:464
411
  msgid "Enter here your paypal token. This is optional. "
412
  msgstr ""
413
 
414
+ #: core/admin/views/settings.php:469 core/admin/views/settings.php:510
415
  msgid "Enable sandbox mode:"
416
  msgstr ""
417
 
418
+ #: core/admin/views/settings.php:472
419
  msgid "Enable this for testing payment method. "
420
  msgstr ""
421
 
422
+ #: core/admin/views/settings.php:485
423
  msgid "Image url:"
424
  msgstr ""
425
 
426
+ #: core/admin/views/settings.php:486
427
  msgid "Stripe image url"
428
  msgstr ""
429
 
430
+ #: core/admin/views/settings.php:488
431
  msgid ""
432
  "Enter here your stripe image url. This image will show on stripe payment "
433
  "pop up modal. "
434
  msgstr ""
435
 
436
+ #: core/admin/views/settings.php:493
437
  msgid "Live publishiable key:"
438
  msgstr ""
439
 
440
+ #: core/admin/views/settings.php:494
441
  msgid "Stripe live publishiable key"
442
  msgstr ""
443
 
444
+ #: core/admin/views/settings.php:496
445
  msgid "Enter here your stripe live publishiable key. "
446
  msgstr ""
447
 
448
+ #: core/admin/views/settings.php:501
449
  msgid "Live secret key:"
450
  msgstr ""
451
 
452
+ #: core/admin/views/settings.php:502
453
  msgid "Stripe live secret key"
454
  msgstr ""
455
 
456
+ #: core/admin/views/settings.php:504
457
  msgid "Enter here your stripe live secret key. "
458
  msgstr ""
459
 
460
+ #: core/admin/views/settings.php:513
461
  msgid "Enable this for testing your payment system. "
462
  msgstr ""
463
 
464
+ #: core/admin/views/settings.php:520
465
  msgid "Test publishiable key:"
466
  msgstr ""
467
 
468
+ #: core/admin/views/settings.php:521
469
  msgid "Stripe test publishiable key"
470
  msgstr ""
471
 
472
+ #: core/admin/views/settings.php:523
473
  msgid "Enter here your test publishiable key. "
474
  msgstr ""
475
 
476
+ #: core/admin/views/settings.php:527
477
  msgid "Test secret key:"
478
  msgstr ""
479
 
480
+ #: core/admin/views/settings.php:528
481
  msgid "Stripe test secret key"
482
  msgstr ""
483
 
484
+ #: core/admin/views/settings.php:530
485
  msgid "Enter here your test secret key. "
486
  msgstr ""
487
 
488
+ #: core/admin/views/settings.php:596
489
  msgid "MailChimp"
490
  msgstr ""
491
 
492
+ #: core/admin/views/settings.php:601
493
  msgid "Aweber"
494
  msgstr ""
495
 
496
+ #: core/admin/views/settings.php:605
497
  msgid "ActiveCampaign"
498
  msgstr ""
499
 
500
+ #: core/admin/views/settings.php:609
501
  msgid "Get Response"
502
  msgstr ""
503
 
504
+ #: core/admin/views/settings.php:613
505
  msgid "ConvertKit"
506
  msgstr ""
507
 
508
+ #: core/admin/views/settings.php:626 core/admin/views/settings.php:723
509
+ #: core/admin/views/settings.php:775 core/admin/views/settings.php:802
510
  msgid "API Key:"
511
  msgstr ""
512
 
513
+ #: core/admin/views/settings.php:627
514
  msgid "Mailchimp api key"
515
  msgstr ""
516
 
517
+ #: core/admin/views/settings.php:629
518
  msgid "Enter here your Mailchimp api key. "
519
  msgstr ""
520
 
521
+ #: core/admin/views/settings.php:629 core/admin/views/settings.php:663
522
+ #: core/admin/views/settings.php:671 core/admin/views/settings.php:726
523
+ #: core/admin/views/settings.php:735 core/admin/views/settings.php:770
524
+ #: core/admin/views/settings.php:778 core/admin/views/settings.php:805
525
  msgid "Get API."
526
  msgstr ""
527
 
528
+ #: core/admin/views/settings.php:638 core/admin/views/settings.php:703
529
+ #: core/admin/views/settings.php:745 core/admin/views/settings.php:786
530
+ #: core/admin/views/settings.php:813 core/admin/views/settings.php:846
531
+ #: core/admin/views/settings.php:873
532
  msgid "How To"
533
  msgstr ""
534
 
535
+ #: core/admin/views/settings.php:639 core/admin/views/settings.php:704
536
+ #: core/admin/views/settings.php:746 core/admin/views/settings.php:787
537
+ #: core/admin/views/settings.php:814 core/admin/views/settings.php:847
538
+ #: core/admin/views/settings.php:874
539
  msgid ""
540
  "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. "
541
  "Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse "
542
  "urna nibh, viverra non, semper suscipit, posuere a, pede."
543
  msgstr ""
544
 
545
+ #: core/admin/views/settings.php:642 core/admin/views/settings.php:707
546
+ #: core/admin/views/settings.php:749 core/admin/views/settings.php:790
547
+ #: core/admin/views/settings.php:817 core/admin/views/settings.php:850
548
+ #: core/admin/views/settings.php:877
549
  msgid "Item 1"
550
  msgstr ""
551
 
552
+ #: core/admin/views/settings.php:643 core/admin/views/settings.php:708
553
+ #: core/admin/views/settings.php:750 core/admin/views/settings.php:791
554
+ #: core/admin/views/settings.php:818 core/admin/views/settings.php:851
555
+ #: core/admin/views/settings.php:878
556
  msgid "Item 2"
557
  msgstr ""
558
 
559
+ #: core/admin/views/settings.php:644 core/admin/views/settings.php:709
560
+ #: core/admin/views/settings.php:751 core/admin/views/settings.php:792
561
+ #: core/admin/views/settings.php:819 core/admin/views/settings.php:852
562
+ #: core/admin/views/settings.php:879
563
  msgid "Item 3"
564
  msgstr ""
565
 
566
+ #: core/admin/views/settings.php:647 core/admin/views/settings.php:712
567
+ #: core/admin/views/settings.php:754 core/admin/views/settings.php:795
568
+ #: core/admin/views/settings.php:822 core/admin/views/settings.php:855
569
+ #: core/admin/views/settings.php:882
570
  msgid "View Documentation"
571
  msgstr ""
572
 
573
+ #: core/admin/views/settings.php:660
574
  msgid "Developer App ID:"
575
  msgstr ""
576
 
577
+ #: core/admin/views/settings.php:661
578
  msgid "Aweber developer clientId key"
579
  msgstr ""
580
 
581
+ #: core/admin/views/settings.php:663
582
  msgid "Enter here your Aweber developer app key. "
583
  msgstr ""
584
 
585
+ #: core/admin/views/settings.php:668
586
  msgid "Developer App Secret:"
587
  msgstr ""
588
 
589
+ #: core/admin/views/settings.php:669
590
  msgid "Aweber developer secret key"
591
  msgstr ""
592
 
593
+ #: core/admin/views/settings.php:671
594
  msgid "Enter here your Aweber developer secret key. "
595
  msgstr ""
596
 
597
+ #: core/admin/views/settings.php:676
598
  msgid "Redirect url:"
599
  msgstr ""
600
 
601
+ #: core/admin/views/settings.php:724 core/admin/views/settings.php:733
602
  msgid "ConvertKit api key"
603
  msgstr ""
604
 
605
+ #: core/admin/views/settings.php:726 core/admin/views/settings.php:735
606
  msgid "Enter here your ConvertKit api key. "
607
  msgstr ""
608
 
609
+ #: core/admin/views/settings.php:732
610
  msgid "Secret Key:"
611
  msgstr ""
612
 
613
+ #: core/admin/views/settings.php:767
614
  msgid "API URL:"
615
  msgstr ""
616
 
617
+ #: core/admin/views/settings.php:768
618
  msgid "ActiveCampaign API URL"
619
  msgstr ""
620
 
621
+ #: core/admin/views/settings.php:770 core/admin/views/settings.php:778
622
+ #: core/admin/views/settings.php:805
623
  msgid "Enter here your ActiveCampaign api key. "
624
  msgstr ""
625
 
626
+ #: core/admin/views/settings.php:776 core/admin/views/settings.php:803
627
  msgid "ActiveCampaign api key"
628
  msgstr ""
629
 
630
+ #: core/admin/views/settings.php:836 core/admin/views/settings.php:863
631
  msgid "GetResponse API Key:"
632
  msgstr ""
633
 
634
+ #: core/admin/views/settings.php:837 core/admin/views/settings.php:864
635
  msgid "GetResponse api key"
636
  msgstr ""
637
 
638
+ #: core/admin/views/settings.php:911
639
+ msgid "Google Sheet"
640
+ msgstr ""
641
+
642
+ #: core/admin/views/settings.php:922
643
+ msgid "Google Client Id:"
644
+ msgstr ""
645
+
646
+ #: core/admin/views/settings.php:923
647
+ msgid "Google OAuth Client Id"
648
+ msgstr ""
649
+
650
+ #: core/admin/views/settings.php:925
651
+ msgid "Enter here your google client id. "
652
+ msgstr ""
653
+
654
+ #: core/admin/views/settings.php:929
655
+ msgid "Google Client Secret:"
656
+ msgstr ""
657
+
658
+ #: core/admin/views/settings.php:930
659
+ msgid "Google OAuth Client Secret"
660
+ msgstr ""
661
+
662
+ #: core/admin/views/settings.php:932
663
+ msgid "Enter here your google secret id. "
664
+ msgstr ""
665
+
666
+ #: core/admin/views/settings.php:939
667
+ msgid "Check how to create App/Project On Google developer account"
668
+ msgstr ""
669
+
670
+ #: core/admin/views/settings.php:940
671
+ msgid "Must add the following URL to the \"Valid OAuth redirect URIs\" field:"
672
+ msgstr ""
673
+
674
+ #: core/admin/views/settings.php:941
675
+ msgid "After getting the App ID & App Secret, put those information"
676
+ msgstr ""
677
+
678
+ #: core/admin/views/settings.php:942
679
+ msgid "Click on \"Save Changes\""
680
+ msgstr ""
681
+
682
+ #: core/admin/views/settings.php:943
683
+ msgid "Click on \"Genarate Access Token\""
684
+ msgstr ""
685
+
686
+ #: core/admin/views/settings.php:945
687
+ msgid "Genarate Access Token"
688
+ msgstr ""
689
+
690
+ #: core/admin/views/settings.php:948
691
+ msgid ""
692
+ "Note:- After 200 days your token will be expired, before the expiry of your "
693
+ "token, generate a new token."
694
+ msgstr ""
695
+
696
  #: core/entries/action.php:41
697
  msgid "Some thing went wrong."
698
  msgstr ""
733
  msgid " Please wait... Open a Stripe Popup Box."
734
  msgstr ""
735
 
736
+ #: core/entries/action.php:654
737
+ msgid "ssl certificate or google oauth credentials problem"
738
+ msgstr ""
739
+
740
+ #: core/entries/action.php:734
741
  msgid "Mail not found."
742
  msgstr ""
743
 
744
+ #: core/entries/action.php:776
745
  msgid "Admin mail not found to send email."
746
  msgstr ""
747
 
748
+ #: core/entries/action.php:865
749
  msgid "There was an error uploading your file. The error is: "
750
  msgstr ""
751
 
761
  msgid "Entry Attributes"
762
  msgstr ""
763
 
764
+ #: core/entries/cpt.php:20 core/forms/cpt.php:389
765
  msgid "Parent Item:"
766
  msgstr ""
767
 
773
  msgid "Add New Item"
774
  msgstr ""
775
 
776
+ #: core/entries/cpt.php:23 core/forms/cpt.php:392
777
  msgid "Add New"
778
  msgstr ""
779
 
801
  msgid "Search Item"
802
  msgstr ""
803
 
804
+ #: core/entries/cpt.php:30 core/forms/cpt.php:399
805
  msgid "Not found"
806
  msgstr ""
807
 
808
+ #: core/entries/cpt.php:31 core/forms/cpt.php:400
809
  msgid "Not found in Trash"
810
  msgstr ""
811
 
812
+ #: core/entries/cpt.php:32 core/forms/cpt.php:401
813
  msgid "Featured Image"
814
  msgstr ""
815
 
816
+ #: core/entries/cpt.php:33 core/forms/cpt.php:402
817
  msgid "Set featured image"
818
  msgstr ""
819
 
820
+ #: core/entries/cpt.php:34 core/forms/cpt.php:403
821
  msgid "Remove featured image"
822
  msgstr ""
823
 
824
+ #: core/entries/cpt.php:35 core/forms/cpt.php:404
825
  msgid "Use as featured image"
826
  msgstr ""
827
 
931
  msgid "You must enable \"store entries\" for integrating payment method."
932
  msgstr ""
933
 
934
+ #: core/forms/cpt.php:385 core/forms/cpt.php:386 widgets/form.php:37
935
  msgid "Form"
936
  msgstr ""
937
 
938
+ #: core/forms/cpt.php:387
939
  msgid "Form Archives"
940
  msgstr ""
941
 
942
+ #: core/forms/cpt.php:388
943
  msgid "Form Attributes"
944
  msgstr ""
945
 
946
+ #: core/forms/cpt.php:390 core/forms/cpt.php:418
947
  msgid "Forms"
948
  msgstr ""
949
 
950
+ #: core/forms/cpt.php:391
951
  msgid "Add New Form"
952
  msgstr ""
953
 
954
+ #: core/forms/cpt.php:393
955
  msgid "New Form"
956
  msgstr ""
957
 
958
+ #: core/forms/cpt.php:394
959
  msgid "Edit Form"
960
  msgstr ""
961
 
962
+ #: core/forms/cpt.php:395
963
  msgid "Update Form"
964
  msgstr ""
965
 
966
+ #: core/forms/cpt.php:396
967
  msgid "View Form"
968
  msgstr ""
969
 
970
+ #: core/forms/cpt.php:397
971
  msgid "View Forms"
972
  msgstr ""
973
 
974
+ #: core/forms/cpt.php:398
975
  msgid "Search Forms"
976
  msgstr ""
977
 
978
+ #: core/forms/cpt.php:405
979
  msgid "Insert into form"
980
  msgstr ""
981
 
982
+ #: core/forms/cpt.php:406
983
  msgid "Uploaded to this form"
984
  msgstr ""
985
 
986
+ #: core/forms/cpt.php:407
987
  msgid "Forms list"
988
  msgstr ""
989
 
990
+ #: core/forms/cpt.php:408
991
  msgid "Forms list navigation"
992
  msgstr ""
993
 
994
+ #: core/forms/cpt.php:409
995
  msgid "Filter froms list"
996
  msgstr ""
997
 
998
+ #: core/forms/cpt.php:419
999
  msgid "metform form"
1000
  msgstr ""
1001
 
1139
  msgid "Want to send a submission copy to user by email? Active this one."
1140
  msgstr ""
1141
 
1142
+ #: core/forms/views/modal-editor.php:134 core/forms/views/modal-editor.php:455
1143
  msgid "The form must have at least one Email widget and it should be required."
1144
  msgstr ""
1145
 
1285
  msgid "Integrate mailchimp with this form."
1286
  msgstr ""
1287
 
1288
+ #: core/forms/views/modal-editor.php:251 core/forms/views/modal-editor.php:289
1289
+ #: core/forms/views/modal-editor.php:318 core/forms/views/modal-editor.php:340
1290
+ #: core/forms/views/modal-editor.php:368 core/forms/views/modal-editor.php:396
1291
+ #: core/forms/views/modal-editor.php:415
1292
  msgid "The form must have at least one Email widget and it should be required. "
1293
  msgstr ""
1294
 
1304
  msgid "Mailchimp contact list id"
1305
  msgstr ""
1306
 
1307
+ #: core/forms/views/modal-editor.php:272
1308
+ msgid "Google Sheet:"
1309
+ msgstr ""
1310
+
1311
+ #: core/forms/views/modal-editor.php:274
1312
+ msgid "Integrate google sheet with this form."
1313
+ msgstr ""
1314
+
1315
+ #: core/forms/views/modal-editor.php:274
1316
+ msgid "Configure Google Sheet."
1317
+ msgstr ""
1318
+
1319
+ #: core/forms/views/modal-editor.php:285
1320
  msgid "MailPoet:"
1321
  msgstr ""
1322
 
1323
+ #: core/forms/views/modal-editor.php:288
1324
  msgid "Integrate MailPoet with this form."
1325
  msgstr ""
1326
 
1327
+ #: core/forms/views/modal-editor.php:291
1328
  msgid "Configure MailPoet."
1329
  msgstr ""
1330
 
1331
+ #: core/forms/views/modal-editor.php:298
1332
  msgid "MailPoet List ID:"
1333
  msgstr ""
1334
 
1335
+ #: core/forms/views/modal-editor.php:304
1336
  msgid "Enter here MailPoet list id. "
1337
  msgstr ""
1338
 
1339
+ #: core/forms/views/modal-editor.php:305 core/forms/views/modal-editor.php:329
1340
+ #: core/forms/views/modal-editor.php:352
1341
  msgid "Refresh List"
1342
  msgstr ""
1343
 
1344
+ #: core/forms/views/modal-editor.php:316
1345
  msgid "Aweber:"
1346
  msgstr ""
1347
 
1348
+ #: core/forms/views/modal-editor.php:318
1349
  msgid "Integrate aweber with this form."
1350
  msgstr ""
1351
 
1352
+ #: core/forms/views/modal-editor.php:318
1353
  msgid "Configure aweber."
1354
  msgstr ""
1355
 
1356
+ #: core/forms/views/modal-editor.php:322
1357
  msgid "Aweber List ID:"
1358
  msgstr ""
1359
 
1360
+ #: core/forms/views/modal-editor.php:328
1361
  msgid "Enter here aweber list id. "
1362
  msgstr ""
1363
 
1364
+ #: core/forms/views/modal-editor.php:338
1365
  msgid "ConvertKit:"
1366
  msgstr ""
1367
 
1368
+ #: core/forms/views/modal-editor.php:340
1369
  msgid "Integrate convertKit with this form."
1370
  msgstr ""
1371
 
1372
+ #: core/forms/views/modal-editor.php:340
1373
  msgid "Configure ConvertKit."
1374
  msgstr ""
1375
 
1376
+ #: core/forms/views/modal-editor.php:344
1377
  msgid "ConvertKit Forms ID:"
1378
  msgstr ""
1379
 
1380
+ #: core/forms/views/modal-editor.php:350
1381
  msgid "Enter here ConvertKit form id. "
1382
  msgstr ""
1383
 
1384
+ #: core/forms/views/modal-editor.php:365
1385
  msgid "GetResponse:"
1386
  msgstr ""
1387
 
1388
+ #: core/forms/views/modal-editor.php:368
1389
  msgid "Integrate GetResponse with this form."
1390
  msgstr ""
1391
 
1392
+ #: core/forms/views/modal-editor.php:368
1393
  msgid "Configure GetResponse."
1394
  msgstr ""
1395
 
1396
+ #: core/forms/views/modal-editor.php:374
1397
  msgid "GetResponse List ID:"
1398
  msgstr ""
1399
 
1400
+ #: core/forms/views/modal-editor.php:382
1401
  msgid "GetResponse contact list id"
1402
  msgstr ""
1403
 
1404
+ #: core/forms/views/modal-editor.php:383
1405
  msgid "Enter here GetResponse list id. "
1406
  msgstr ""
1407
 
1408
+ #: core/forms/views/modal-editor.php:394
1409
  msgid "ActiveCampaign:"
1410
  msgstr ""
1411
 
1412
+ #: core/forms/views/modal-editor.php:396
1413
  msgid "Integrate ActiveCampaign with this form."
1414
  msgstr ""
1415
 
1416
+ #: core/forms/views/modal-editor.php:396
1417
  msgid "Configure ActiveCampaign."
1418
  msgstr ""
1419
 
1420
+ #: core/forms/views/modal-editor.php:412
1421
  msgid "Mailster:"
1422
  msgstr ""
1423
 
1424
+ #: core/forms/views/modal-editor.php:415
1425
  msgid "Integrate Mailster with this form."
1426
  msgstr ""
1427
 
1428
+ #: core/forms/views/modal-editor.php:421
1429
  msgid "Mailster Forms"
1430
  msgstr ""
1431
 
1432
+ #: core/forms/views/modal-editor.php:453
1433
  msgid "Zapier:"
1434
  msgstr ""
1435
 
1436
+ #: core/forms/views/modal-editor.php:455
1437
  msgid "Integrate zapier with this form."
1438
  msgstr ""
1439
 
1440
+ #: core/forms/views/modal-editor.php:459
1441
  msgid "Zapier webhook:"
1442
  msgstr ""
1443
 
1444
+ #: core/forms/views/modal-editor.php:460
1445
  msgid "Zapier webhook"
1446
  msgstr ""
1447
 
1448
+ #: core/forms/views/modal-editor.php:461
1449
  msgid "Enter here zapier web hook."
1450
  msgstr ""
1451
 
1452
+ #: core/forms/views/modal-editor.php:470
1453
  msgid "Slack:"
1454
  msgstr ""
1455
 
1456
+ #: core/forms/views/modal-editor.php:472
1457
  msgid "Integrate slack with this form."
1458
  msgstr ""
1459
 
1460
+ #: core/forms/views/modal-editor.php:472
1461
  msgid "slack info."
1462
  msgstr ""
1463
 
1464
+ #: core/forms/views/modal-editor.php:476
1465
  msgid "Slack webhook:"
1466
  msgstr ""
1467
 
1468
+ #: core/forms/views/modal-editor.php:477
1469
  msgid "Slack webhook"
1470
  msgstr ""
1471
 
1472
+ #: core/forms/views/modal-editor.php:478
1473
  msgid "Enter here slack web hook."
1474
  msgstr ""
1475
 
1476
+ #: core/forms/views/modal-editor.php:478
1477
  msgid "create from here"
1478
  msgstr ""
1479
 
1480
+ #: core/forms/views/modal-editor.php:492
1481
  msgid "Success url:"
1482
  msgstr ""
1483
 
1484
+ #: core/forms/views/modal-editor.php:495
1485
  msgid "Success url"
1486
  msgstr ""
1487
 
1488
+ #: core/forms/views/modal-editor.php:497
1489
  msgid ""
1490
  "Users will be redirected to the this link after successfully form "
1491
  "submission."
1492
  msgstr ""
1493
 
1494
+ #: core/forms/views/modal-editor.php:502
1495
  msgid "Failed/ Cancel url:"
1496
  msgstr ""
1497
 
1498
+ #: core/forms/views/modal-editor.php:505
1499
  msgid "Failed/Cancel url"
1500
  msgstr ""
1501
 
1502
+ #: core/forms/views/modal-editor.php:507
1503
  msgid ""
1504
  "Users will be redirected to the this link after any failure/ cancelation of "
1505
  "form submission."
1506
  msgstr ""
1507
 
1508
+ #: core/forms/views/modal-editor.php:513
1509
  msgid "Paypal:"
1510
  msgstr ""
1511
 
1512
+ #: core/forms/views/modal-editor.php:515
1513
  msgid "Integrate paypal payment with this form."
1514
  msgstr ""
1515
 
1516
+ #: core/forms/views/modal-editor.php:515
1517
  msgid "Configure paypal payment."
1518
  msgstr ""
1519
 
1520
+ #: core/forms/views/modal-editor.php:524
1521
  msgid "Stripe:"
1522
  msgstr ""
1523
 
1524
+ #: core/forms/views/modal-editor.php:526
1525
  msgid "Integrate stripe payment with this form. "
1526
  msgstr ""
1527
 
1528
+ #: core/forms/views/modal-editor.php:526
1529
  msgid "Configure stripe payment."
1530
  msgstr ""
1531
 
1532
+ #: core/forms/views/modal-editor.php:542
1533
  msgid "Hubspot Contact:"
1534
  msgstr ""
1535
 
1536
+ #: core/forms/views/modal-editor.php:544
1537
  msgid "Integrate hubspot with this form. "
1538
  msgstr ""
1539
 
1540
+ #: core/forms/views/modal-editor.php:544
1541
  msgid "Configure Hubspot."
1542
  msgstr ""
1543
 
1544
+ #: core/forms/views/modal-editor.php:551
1545
  msgid "Hubspot Forms:"
1546
  msgstr ""
1547
 
1548
+ #: core/forms/views/modal-editor.php:559
1549
  msgid "Fetch hubspot forms"
1550
  msgstr ""
1551
 
1552
+ #: core/forms/views/modal-editor.php:582
1553
  msgid "Zoho Contact:"
1554
  msgstr ""
1555
 
1556
+ #: core/forms/views/modal-editor.php:584
1557
  msgid "Integrate Zoho contacts with this form. "
1558
  msgstr ""
1559
 
1560
+ #: core/forms/views/modal-editor.php:584
1561
  msgid "Configure Zoho."
1562
  msgstr ""
1563
 
1564
+ #: core/forms/views/modal-editor.php:594
1565
  msgid "Helpscout"
1566
  msgstr ""
1567
 
1568
+ #: core/forms/views/modal-editor.php:596
1569
  msgid "Integrate Helpscout with this form. "
1570
  msgstr ""
1571
 
1572
+ #: core/forms/views/modal-editor.php:596
1573
  msgid "Configure Helpscout."
1574
  msgstr ""
1575
 
1576
+ #: core/forms/views/modal-editor.php:601
1577
  msgid "Available Mailboxes"
1578
  msgstr ""
1579
 
1580
+ #: core/forms/views/modal-editor.php:638
1581
  msgid "Edit content"
1582
  msgstr ""
1583
 
1584
+ #: core/forms/views/modal-editor.php:640
1585
  msgid "Save changes"
1586
  msgstr ""
1587
 
1598
  msgid "Your data inserted on slack."
1599
  msgstr ""
1600
 
1601
+ #: plugin.php:370
1602
  msgid "Activate Elementor"
1603
  msgstr ""
1604
 
1605
+ #: plugin.php:377
1606
  msgid "Install Elementor"
1607
  msgstr ""
1608
 
1609
+ #: plugin.php:381 plugin.php:413
1610
  msgid "MetForm requires Elementor version %1$s+, which is currently NOT RUNNING."
1611
  msgstr ""
1612
 
1613
+ #: plugin.php:396
1614
  msgid "MetForm Pro"
1615
  msgstr ""
1616
 
1617
+ #: plugin.php:400 plugin.php:416
1618
  msgid "We have MetForm Pro version. Check out our pro feature."
1619
  msgstr ""
1620
 
1621
+ #: plugin.php:412
1622
  msgid "Update Elementor"
1623
  msgstr ""
1624
 
3138
  msgid "Summary"
3139
  msgstr ""
3140
 
3141
+ #: widgets/summary/summary.php:148
3142
  msgid "Summary will be shown on preview."
3143
  msgstr ""
3144
 
3223
  msgid "Entries"
3224
  msgstr ""
3225
 
3226
+ #: core/forms/cpt.php:383
3227
  msgctxt "Post Type General Name"
3228
  msgid "Forms"
3229
  msgstr ""
3233
  msgid "Entry"
3234
  msgstr ""
3235
 
3236
+ #: core/forms/cpt.php:384
3237
  msgctxt "Post Type Singular Name"
3238
  msgid "Form"
3239
  msgstr ""
metform.php CHANGED
@@ -5,7 +5,7 @@ defined( 'ABSPATH' ) || exit;
5
  * Plugin Name: MetForm
6
  * Plugin URI: http://products.wpmet.com/metform/
7
  * Description: Most flexible and design friendly form builder for Elementor
8
- * Version: 1.4.10
9
  * Author: Wpmet
10
  * Author URI: https://wpmet.com
11
  * Text Domain: metform
5
  * Plugin Name: MetForm
6
  * Plugin URI: http://products.wpmet.com/metform/
7
  * Description: Most flexible and design friendly form builder for Elementor
8
+ * Version: 1.5.0
9
  * Author: Wpmet
10
  * Author URI: https://wpmet.com
11
  * Text Domain: metform
plugin.php CHANGED
@@ -20,7 +20,7 @@ final class Plugin
20
 
21
  public function version()
22
  {
23
- return '1.4.9';
24
  }
25
 
26
  public function package_type()
@@ -298,6 +298,7 @@ final class Plugin
298
 
299
  function js_css_admin()
300
  {
 
301
 
302
  $screen = get_current_screen();
303
 
@@ -354,7 +355,7 @@ final class Plugin
354
  'read',
355
  'metform-menu',
356
  '',
357
- 'dashicons-feedback',
358
  5
359
  );
360
  }
20
 
21
  public function version()
22
  {
23
+ return '1.5.0';
24
  }
25
 
26
  public function package_type()
298
 
299
  function js_css_admin()
300
  {
301
+ wp_enqueue_style( 'mf-wp-dashboard', $this->core_url() . 'admin/css/mf-wp-dashboard.css', [], $this->version() );
302
 
303
  $screen = get_current_screen();
304
 
355
  'read',
356
  'metform-menu',
357
  '',
358
+ $this->core_url() . 'admin/images/icon-menu.png',
359
  5
360
  );
361
  }
public/assets/css/admin-style.css CHANGED
@@ -1 +1 @@
1
- body.metform_page_metform-menu-settings{overflow-y:scroll}.mf-settings-dashboard{margin-top:40px}.mf-settings-dashboard .attr-row>div{-webkit-box-sizing:border-box;box-sizing:border-box}.mf-settings-dashboard>.attr-row{margin:0}.mf-settings-dashboard .mf-setting-sidebar{position:fixed;width:415px}.nav-tab-wrapper{border:none;padding:0}.mf-admin-setting-btn{border:2px solid #ff433c;color:#ff433c;font-size:14px;line-height:16px;text-decoration:none;text-transform:uppercase;border-radius:100px;padding:10px 23px;-webkit-transition:all .4s;transition:all .4s;font-weight:700;cursor:pointer;background-color:#fff;display:inline-block}.mf-admin-setting-btn span{margin-right:6px}.mf-admin-setting-btn.medium{padding:13px 23px}.mf-admin-setting-btn.fatty{padding:17px 23px}.mf-admin-setting-btn.active,.mf-admin-setting-btn:hover{background-color:#ff433c;color:#fff}.mf-admin-setting-btn:focus{-webkit-box-shadow:none;box-shadow:none;outline:0}.mf-settings-tab{margin-bottom:40px}.mf-settings-tab li{-webkit-box-shadow:none;box-shadow:none;border:none;margin:0;background-color:#fff}.mf-settings-tab li:focus,.mf-settings-tab li:hover{outline:0;-webkit-box-shadow:none;box-shadow:none;border:none}.mf-settings-tab li.nav-tab-active{background-color:#fff;border-left-color:#ff324d;border-radius:10px}.mf-settings-tab li.nav-tab-active .mf-setting-title{color:#ff433c}.mf-settings-tab li.nav-tab-active .mf-setting-nav-link{background-color:#fff;border-top-left-radius:10px;border-bottom-left-radius:10px}.mf-settings-tab li.nav-tab-active .mf-setting-nav-link::before{content:"";background-color:#ff433c;height:10px;width:10px;position:absolute;left:17px;border-radius:100px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.mf-settings-tab .mf-setting-nav-link{outline:0;float:none;display:-webkit-box;display:-ms-flexbox;display:flex;color:#121116;border:none;background-color:#f1f1f1;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:0;-webkit-box-shadow:none;box-shadow:none;position:relative;padding:23px 40px;text-decoration:none;-webkit-transition:all .4s;transition:all .4s}.mf-settings-tab .mf-setting-nav-link:focus,.mf-settings-tab .mf-setting-nav-link:hover{outline:0;-webkit-box-shadow:none;box-shadow:none;border:none}.mf-settings-tab .mf-setting-nav-link.mf-setting-nav-link.top{border-bottom-right-radius:20px}.mf-settings-tab .mf-setting-nav-link.mf-setting-nav-link.bottom{border-top-right-radius:20px}.mf-settings-tab .mf-setting-nav-link.mf-setting-nav-hidden{background-color:#f1f1f1;cursor:default;padding:15px}.mf-settings-tab.nav-tab-active.mf-setting-nav-link{border-radius:10px;background-color:#fff}.mf-settings-tab .mf-setting-tab-content .mf-setting-title{font-size:.8125rem;font-weight:700;color:#333;display:block;margin-bottom:2px;line-height:1;text-transform:uppercase}.mf-settings-tab .mf-setting-tab-content .mf-setting-subtitle{color:#72777c;font-size:.8125rem;-webkit-transition:all 150ms ease-out;transition:all 150ms ease-out}.mf-settings-section{opacity:0;visibility:hidden;-webkit-transition:opacity .4s;transition:opacity .4s;position:absolute;top:-9999px;display:none}.mf-settings-section.active{opacity:1;position:static;visibility:visible;display:block}.metform-admin-container{background-color:#fff;padding:50px;border-radius:20px;border:none;min-height:550px;padding-top:30px;margin-bottom:0}.metform-admin-container--body .mf-settings-single-section--title{margin:0;margin-top:0;color:#ff433c;font-size:24px;line-height:28px;font-weight:700;vertical-align:middle;position:relative}.metform-admin-container--body .mf-settings-single-section--title span{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;display:inline-block;width:40px;height:40px;line-height:40px!important;margin-right:24px;background-color:rgba(255,67,60,.1);color:#ff433c;text-align:center;border-radius:5px;vertical-align:middle;font-size:18px;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased}.metform-admin-container--body .mf-setting-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:40px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-bottom:17px;position:relative;margin-left:-50px;margin-right:-50px;padding-left:50px;padding-right:51px}.metform-admin-container--body .mf-setting-header::before{content:"";position:absolute;display:block;width:48px;height:2px;bottom:-1px;left:0;background:#ff433c;margin-left:50px;margin-right:50px;z-index:2}.metform-admin-container--body .mf-setting-header::after{content:"";position:absolute;display:block;width:calc(100% - 100px);height:1px;bottom:-1px;left:0;background:#e0e4e9;margin-left:50px;z-index:1}.metform-admin-container--body .mf-setting-header.fixed{position:fixed;top:0;padding-top:20px;background-color:#fff;z-index:999}.metform-admin-container--body .mf-setting-header.fixed+div{padding-top:88px}.metform-admin-container--body .mf-setting-input{width:100%;max-width:100%;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box}.metform-admin-container--body .mf-setting-label{display:block;margin-bottom:8px;color:#101010;font-size:16px;line-height:19px;font-weight:500}.metform-admin-container--body .mf-admin-control-input{margin:0}.metform-admin-container--body .mf-admin-control-input[type=checkbox]{position:relative;-webkit-box-shadow:none;box-shadow:none;height:16px;width:16px;border:2px solid #ff5d20}.metform-admin-container--body .mf-admin-control-input[type=checkbox]:checked::before{content:"";position:absolute;background-color:#ff3747;width:8px;height:9px;-webkit-box-sizing:border-box;box-sizing:border-box;left:2px;border-radius:2px;text-align:center;margin:0;top:1.6px}.metform-admin-container .mf-setting-input{border-radius:3px;padding:5px 15px;height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px;line-height:17px;display:inline-block;-webkit-box-shadow:none;box-shadow:none;color:#121116;border:1px solid #dee3ea;font-weight:400}.metform-admin-container .mf-setting-input:active,.metform-admin-container .mf-setting-input:focus{border-color:#ff324d;-webkit-box-shadow:none;box-shadow:none;outline:0}.metform-admin-container .mf-admin-save-icon{color:#fff;font-size:14px;margin-right:6px;height:14px;width:14px}.metform-admin-container .button-primary{text-decoration:none;text-shadow:none;background-color:#ff324d;border-radius:4px;-webkit-box-shadow:0 7px 15px rgba(242,41,91,.3);box-shadow:0 7px 15px rgba(242,41,91,.3);font-size:14px;line-height:16px;text-transform:uppercase;color:#fff;font-weight:500;border:none;padding:12px 23px;-webkit-transition:all .4s;transition:all .4s;display:-webkit-box;display:-ms-flexbox;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-image:linear-gradient(45deg,#ff324d,#ff6b11);position:relative;z-index:9}.metform-admin-container .button-primary:focus,.metform-admin-container .button-primary:hover{border:none;outline:0;-webkit-box-shadow:0 7px 15px rgba(242,41,91,.3);box-shadow:0 7px 15px rgba(242,41,91,.3)}.metform-admin-container .button-primary::before{border-radius:inherit;background-image:linear-gradient(45deg,#ff6b11,#ff324d);content:"";display:block;height:100%;position:absolute;top:0;left:0;opacity:0;width:100%;z-index:-1;-webkit-transition:opacity .7s ease-in-out;transition:opacity .7s ease-in-out}.metform-admin-container .button-primary:hover{background-color:#dc0420}.metform-admin-container .button-primary:hover::before{opacity:1}.mf-recaptcha-settings{display:none}.mf_setting_logo{padding-top:25px}.mf_setting_logo img{max-width:200px}.mf-setting-dashboard-banner{border-radius:20px;padding-top:0}.mf-setting-dashboard-banner img{width:100%}.mf-setting-dashboard-banner--content{padding:30px}.mf-setting-dashboard-banner--content h3{margin:0;margin-bottom:15px}.mf-setting-btn{text-decoration:none;background-color:#ff324d;padding:8px 15px;border:none;-webkit-box-shadow:none;box-shadow:none;background-image:linear-gradient(45deg,#ff324d,#ff6b11);font-weight:500}.mf-setting-btn-link{background-image:none;color:#1f55f8;border-radius:0;background-color:transparent;border:none;padding:0;text-decoration:none;border-bottom:1px solid #1f55f8;font-weight:600;font-size:14px;display:inline-block;line-height:18px;-webkit-transition:all .4s;transition:all .4s}.mf-setting-btn-link:hover{color:#507bff}.mf-setting-separator{margin:50px 0}.mf-setting-input-group{margin-bottom:30px}.mf-setting-input-group:last-child{margin-bottom:0}.mf-setting-input-group .description{font-weight:400;font-size:13px;line-height:15px;color:#999;font-style:normal;margin:0;margin-top:8px}.mf-setting-input-desc{display:none;padding-right:100px}.mf-setting-input-desc .mf-setting-btn-link{margin-top:15px}.mf-setting-input-desc--title{margin-top:0;margin-bottom:8px}.mf-setting-input-desc li,.mf-setting-input-desc p{font-size:14px;line-height:18px;color:#111}.mf-setting-tab-nav{margin-bottom:30px}.mf-setting-tab-nav li{margin-right:15px;cursor:pointer}.mf-setting-tab-nav li:last-child{margin-right:0}.mf-setting-tab-nav .attr-nav-tabs{border:none}.mf-setting-tab-nav .attr-nav-item{border:none;border-radius:4px;text-decoration:none;text-align:center;color:#111;font-size:14px;text-transform:capitalize;font-weight:600;padding:8px 14px;margin-right:0;display:inline-block;-webkit-box-shadow:none;box-shadow:none;z-index:2}.mf-setting-tab-nav .attr-nav-item:hover{color:#fff;background-color:#ff433c}.mf-setting-tab-nav .attr-active .attr-nav-item{color:#fff;background-color:#ff433c;border:none}.mf-setting-tab-nav .attr-active .attr-nav-item:active,.mf-setting-tab-nav .attr-active .attr-nav-item:focus,.mf-setting-tab-nav .attr-active .attr-nav-item:hover{border:none;-webkit-box-shadow:none;box-shadow:none;outline:0;color:#fff;background-color:#ff433c}.mf-setting-input-desc-data{display:none}.mf-setting-select-container{position:relative}.mf-setting-select-container .mf-setting-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:0 0}.mf-setting-select-container::before{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #111;position:absolute;right:15px;-webkit-transform:translateY(-50%);transform:translateY(-50%);top:50%}.mf-setting-refresh-btn{margin:0 10px;font-size:18px;line-height:24px}.mf-set-dash-tab-img{text-align:center}.mf-set-dash-section{padding:100px 0}.mf-set-dash-section:not(:first-child):not(:last-child){padding-bottom:20px;display:none}.mf-setting-dash-section-heading{text-align:center;position:relative;margin:0 auto;margin-bottom:32px}.mf-setting-dash-section-heading--title{font-size:36px;line-height:42px;margin:0;color:#121116;font-weight:700;letter-spacing:-1px}.mf-setting-dash-section-heading--title strong{color:#ff433c}.mf-setting-dash-section-heading--subtitle{color:rgba(0,0,0,.05);font-size:60px;line-height:69px;margin:0;font-weight:700;position:absolute;top:-25px;left:50%;width:100%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.mf-setting-dash-section-heading--content{width:440px;margin:0 auto;margin-top:8px}.mf-setting-dash-section-heading--content p{font-size:16px;line-height:21px;color:#121116}.mf-setting-dash-section-heading--content p:first-child{margin-top:0}.mf-setting-dash-section-heading--content p:last-child{margin-bottom:0}.mf-set-dash-top-notch{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;border-right:1px solid #f0f0f0;border-bottom:1px solid #f0f0f0}.mf-set-dash-top-notch--item{-webkit-box-flex:0;-ms-flex:0 0 33.33%;flex:0 0 33.33%;border:1px solid #f0f0f0;-webkit-box-sizing:border-box;box-sizing:border-box;padding:40px;position:relative;border-right:0;border-bottom:0}.mf-set-dash-top-notch--item__title{font-size:18px;line-height:21px;color:#121116;font-weight:600;margin:0;margin-bottom:17px}.mf-set-dash-top-notch--item__desc{font-weight:400;font-size:16px;line-height:21px;color:#999}.mf-set-dash-top-notch--item::before{content:attr(data-count);font-size:60px;line-height:69px;position:absolute;top:-5px;right:5px;-webkit-text-stroke:2px;-webkit-text-fill-color:transparent;color:#f0f0f0}.mf-set-dash-free-pro-content{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.mf-set-dash-free-pro-content img{max-width:100%}.mf-set-dash-free-pro-content .attr-nav-tabs{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:0;border:1px solid #f0f0f0;width:290px}.mf-set-dash-free-pro-content .attr-nav-link{text-decoration:none;font-size:16px;line-height:18px;color:#121116!important;border:none!important;padding:20px 23px;margin:0;border-radius:0;-webkit-transition:all .4s;transition:all .4s}.mf-set-dash-free-pro-content .attr-nav-link:focus{outline:0;-webkit-box-shadow:none;box-shadow:none;background-color:transparent;border:none}.mf-set-dash-free-pro-content .attr-nav-link:hover{background-color:transparent}.mf-set-dash-free-pro-content .attr-nav-item{border-bottom:1px solid #f0f0f0}.mf-set-dash-free-pro-content .attr-nav-item:last-child{border-bottom:0}.mf-set-dash-free-pro-content .attr-nav-item:focus{outline:0;-webkit-box-shadow:none;box-shadow:none}.mf-set-dash-free-pro-content .attr-nav-item.attr-active>a{border:none}.mf-set-dash-free-pro-content .attr-nav-item.attr-active .attr-nav-link{background-color:#ff433c;color:#fff!important}.mf-set-dash-free-pro-content .attr-nav-item.attr-active .mf-icon{color:#fff}.mf-set-dash-free-pro-content .attr-nav-item.attr-active .mf-set-dash-badge{background-color:#fff}.mf-set-dash-free-pro-content .mf-icon{font-size:14px;color:#ff433c;margin-right:7px}.mf-set-dash-free-pro-content .mf-set-dash-badge{background-color:rgba(242,41,91,.1);color:#f2295b;font-size:10px;line-height:11px;border-radius:2px;display:inline-block;padding:3px 6px;margin-left:18px;font-weight:600;text-transform:uppercase}.mf-set-dash-free-pro-content .attr-tab-content{border:1px solid #f0f0f0;border-left:0;padding:50px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-flex:0;-ms-flex:0 0 calc(100% - 292px);flex:0 0 calc(100% - 292px)}.mf-set-dash-free-pro-content .attr-tab-content p{font-size:16px;line-height:24px;font-weight:400;color:#444}.mf-set-dash-free-pro-content .attr-tab-content ul li{color:#444;font-size:16px;line-height:21px}.mf-set-dash-free-pro-content .attr-tab-content ul li::before{content:"";height:5px;width:5px;background-color:#f2295b;border-radius:100px;display:inline-block;vertical-align:middle;margin-right:7px}.mf-set-dash-free-pro-content .attr-tab-content .mf-admin-setting-btn{margin-top:35px}.admin-bar .mf-setting-header.fixed{top:30px}#mf-set-dash-faq{background-color:#f1f1f1;padding-bottom:100px;margin:100px 0;text-align:center;margin-left:-50px;margin-right:-50px}#mf-set-dash-faq .mf-admin-setting-btn{margin-top:30px}.mf-admin-accordion{max-width:700px;margin:0 auto;margin-top:30px}.mf-admin-single-accordion{background-color:#fff;-webkit-box-shadow:0 7px 15px rgba(0,0,0,.07);box-shadow:0 7px 15px rgba(0,0,0,.07);margin:10px 0;text-align:left}.mf-admin-single-accordion.active .mf-admin-single-accordion--heading::after{content:"\e995";color:#f2295b}.mf-admin-single-accordion--heading{cursor:pointer;margin:0;color:#121116;font-size:14px;line-height:20px;padding:18px 20px;position:relative}.mf-admin-single-accordion--heading::after{content:"\e994";font-family:metform;position:absolute;right:30px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:12px}.mf-admin-single-accordion--body{padding:0;display:none}.mf-admin-single-accordion--body__content{padding:30px;padding-top:0}.mf-admin-single-accordion--body p{margin:0}#mf-set-dash-rate-now{margin-top:100px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-bottom:0;padding-top:0;-ms-flex-wrap:wrap;flex-wrap:wrap}#mf-set-dash-rate-now .mf-setting-dash-section-heading{text-align:left}#mf-set-dash-rate-now .mf-admin-left-thumb{margin-bottom:-50px;-ms-flex-item-align:end;align-self:flex-end}#mf-set-dash-rate-now>div{-webkit-box-flex:1;-ms-flex:1;flex:1}.mf-admin-left-thumb img{max-width:100%}@media (min-width:768px){.mf-setting-input-desc-data{display:block}.mf-settings-dashboard>.attr-row>div:last-of-type{padding-left:0}.mf-settings-dashboard>.attr-row>div:first-of-type{padding-right:0}}@media (max-width:767px){.mf-setting-dash-section-heading--content{width:100%}.mf-set-dash-free-pro-content .attr-nav-tabs{min-width:100%}.mf-set-dash-free-pro-content .attr-tab-content{border-left:1px solid #f0f0f0;padding:20px;-webkit-box-flex:100%;-ms-flex:100%;flex:100%}.mf-settings-dashboard .mf-setting-sidebar{position:static;width:100%!important}.metform-admin-container{padding:30px}.metform-admin-container--body .mf-setting-header{margin-left:-30px;margin-right:-30px;padding-left:30px;padding-right:30px}.metform-admin-container--body .mf-setting-header::after,.metform-admin-container--body .mf-setting-header::before{margin-left:30px;margin-right:30px}.metform-admin-container--body .mf-setting-header::after{width:calc(100% - 60px)}.mf-set-dash-top-notch--item{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%}.admin-bar .mf-setting-header.fixed{top:0}#mf-set-dash-faq{margin-left:-30px;margin-right:-30px}.mf-admin-left-thumb{margin-bottom:-30px;text-align:center;width:100%;margin-top:15px}.metform-admin-container--body .mf-settings-single-section--title{font-size:19px}.metform-admin-container--body .mf-settings-single-section--title span{display:none}.mf-setting-dash-section-heading--title{font-size:25px;line-height:30px}.mf-setting-dash-section-heading--subtitle{font-size:52px;line-height:59px}}.mf-setting-spin{-webkit-animation-name:rotate;animation-name:rotate;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.loading .attr-modal-content::before{opacity:.8;position:absolute;content:"";top:0;left:0;height:100%;width:100%;background-color:#fff;-webkit-transition:opaicty .5s ease;transition:opaicty .5s ease;z-index:5;border-radius:inherit}.loading .mf-spinner{display:block}#metform_form_modal{overflow-y:scroll}.elementor-editor-active .metform-form-save-btn-editor{display:none!important}.attr-modal-dialog-centered{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-top:30px;width:725px;max-width:100%}.attr-modal-dialog-centered .attr-modal-header{padding:36px 50px;border-bottom:none}.attr-modal-dialog-centered .attr-modal-header .attr-modal-title{font-size:20px;font-weight:700;color:#111;text-transform:capitalize;margin-bottom:38px;line-height:1}.attr-modal-dialog-centered .attr-modal-header .attr-nav-tabs{border:none;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.attr-modal-dialog-centered .attr-modal-header .attr-nav-tabs li{-webkit-transition:all .4s;transition:all .4s}.attr-modal-dialog-centered .attr-modal-header .attr-nav-tabs a{text-decoration:none;color:#111;font-size:14px;text-transform:capitalize;font-weight:600;padding:8px 10px;border:none;margin-right:0;-webkit-transition:all .4s;transition:all .4s}.attr-modal-dialog-centered .attr-modal-header .attr-nav-tabs a:hover{border:none;background-color:transparent}.attr-modal-dialog-centered .attr-modal-header .attr-nav-tabs a:focus{outline:0;-webkit-box-shadow:none;box-shadow:none;border:none}.attr-modal-dialog-centered .attr-modal-header .attr-nav-tabs li.attr-active a{border:none;color:#fff;background-color:#1f55f8;border-radius:4px;text-align:center}.attr-modal-dialog-centered .attr-modal-header button.attr-close{opacity:.8;font-size:inherit;outline:0;margin-top:-15px;margin-right:-25px}.attr-modal-dialog-centered .attr-modal-header button.attr-close span{color:#e81123;font-size:35px;font-weight:100;background-color:#fce7e9;height:36px;width:36px;display:inline-block;line-height:36px;border-radius:100px;outline:0;margin-top:5px;font-family:initial}.attr-modal-dialog-centered .attr-tab-content .attr-modal-body{padding:40px 50px;padding-top:0}.attr-modal-dialog-centered .attr-tab-content div#limit_status.hide_input{display:none}.attr-modal-dialog-centered .attr-tab-content .mf-input-group label.attr-input-label{color:#111;font-size:16px;margin-bottom:7px;display:block;font-weight:500;padding:15px 0 8px}.attr-modal-dialog-centered .attr-tab-content .mf-input-group{border-bottom:1px solid #f5f5f5;padding-bottom:14px;margin-bottom:14px}.attr-modal-dialog-centered .attr-tab-content .mf-input-group:last-of-type{border-bottom:none;padding-bottom:0}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .attr-form-control,.attr-modal-dialog-centered .attr-tab-content .mf-input-group input{color:#000;font-size:14px;height:48px;padding:0 22px;border-color:#ededed;margin-top:12px;max-width:100%;background-color:#f9f9f9;-webkit-transition:all .4s;transition:all .4s}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .attr-form-control:focus,.attr-modal-dialog-centered .attr-tab-content .mf-input-group .attr-form-control:hover,.attr-modal-dialog-centered .attr-tab-content .mf-input-group input:focus,.attr-modal-dialog-centered .attr-tab-content .mf-input-group input:hover{background-color:#fff}.attr-modal-dialog-centered .attr-tab-content .mf-input-group textarea{padding:22px!important}.attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=checkbox]{display:none}.attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=checkbox]+span{position:relative;display:block}.attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=checkbox]+span::before{content:"No";width:55px;height:25px;background-color:#ededed;left:0;border-radius:15px;text-align:right;color:#fff;text-transform:uppercase;font-weight:700;font-size:10px;padding:3px;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:10px;-webkit-transition:all .4s;transition:all .4s;float:right;line-height:18px;cursor:pointer}.attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=checkbox]+span::after{content:"";width:20px;height:20px;background-color:#fff;border-radius:100px;display:inline-block;position:absolute;right:31px;top:2px;-webkit-transition:all .4s;transition:all .4s}.attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=checkbox]:checked+span::before{content:"Yes";width:55px;height:25px;background-color:#1f55f8;left:0;border-radius:15px;display:inline-block;text-align:left;color:#fff;text-transform:uppercase;font-weight:700;font-size:10px;padding:3px;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:10px}.attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=checkbox]:checked+span::after{content:"";width:20px;height:20px;background-color:#fff;border-radius:100px;display:inline-block;position:absolute;right:2px;top:2px}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .mf-rest-api-method{padding:0 18px;margin:0}.attr-modal-dialog-centered .attr-tab-content .mf-input-group span.mf-input-help{color:#b7b7b7;font-style:italic;font-size:12px}.attr-modal-dialog-centered .attr-tab-content .mf-input-group span.mf-input-help strong{color:#555;font-weight:700}.attr-modal-dialog-centered .attr-tab-content .mf-input-group span.mf-input-help a{color:#1f55f8;text-decoration:none;font-weight:700}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .mf-input-group-inner label.attr-input-label{display:inline-block}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .mf-input-group-inner #limit_status{width:100px;margin:0;position:relative;margin-left:15px;float:right;margin-top:-2px}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .mf-input-group-inner input{margin:0}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .mf-input-group-inner input[type=checkbox]+span::before{position:relative;top:-2px;left:5px}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .mf-input-group-inner input[type=checkbox]+span::after{right:28px;top:0}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .mf-input-group-inner input[type=checkbox]:checked+span::after{right:-2px;top:0}.attr-modal-dialog-centered .attr-tab-content .mf-input-group.mf-input-group-inline{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:initial;-ms-flex-align:initial;align-items:initial}.attr-modal-dialog-centered .attr-tab-content .mf-input-group.mf-input-group-inline .attr-input-label,.attr-modal-dialog-centered .attr-tab-content .mf-input-group.mf-input-group-inline .mf-inputs{-webkit-box-flex:1;-ms-flex:1;flex:1}.attr-modal-dialog-centered .attr-tab-content .mf-input-group.mf-input-group-inline .attr-input-label select,.attr-modal-dialog-centered .attr-tab-content .mf-input-group.mf-input-group-inline .mf-inputs select{margin:0}.attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=number]+span,.attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=text]+span{display:block;margin-top:5px}.attr-modal-dialog-centered .attr-tab-content #limit_status.show_input{margin-top:32px}.attr-modal-dialog-centered .attr-modal-footer{padding:30px 50px}.attr-modal-dialog-centered .attr-modal-footer button{color:#fff;background-color:#1f55f8;font-size:16px;font-weight:700;-webkit-box-sizing:border-box;box-sizing:border-box;padding:12px 20px;-webkit-box-shadow:none;box-shadow:none;border:1px solid transparent;-webkit-transition:all .4s;transition:all .4s;outline:0}.attr-modal-dialog-centered .attr-modal-footer button:focus{border:none;outline:0}.attr-modal-dialog-centered .attr-modal-footer button.metform-form-save-btn-editor{background-color:#d8d8d8;color:#111}.attr-modal-dialog-centered>form{width:100%}.modal-backdrop{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0,0,0,.5);z-index:9999}.attr-modal{z-index:10000}.mf_multipile_ajax_search_filed .select2-container--default .select2-selection--multiple .select2-selection__choice{line-height:1.5;font-size:.9em;border:none;border-radius:0;color:#6d7882}.mf-headerfooter-status{display:inline-block;margin-left:5px;padding:2px 5px 3px;color:#fff;background-color:#9a9a9a;border-radius:3px;font-size:10px;line-height:1;font-weight:700}.mf-headerfooter-status-active{background-color:#00cd00}.irs--round .irs-max,.irs--round .irs-min{display:none}.irs--round .irs-handle{cursor:pointer}.mf-success-msg{position:fixed;z-index:9;text-align:center;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-box-shadow:0 2px 5px rgba(153,153,153,.2);box-shadow:0 2px 5px rgba(153,153,153,.2);min-width:300px}textarea.attr-form-control{height:auto!important}.post-type-metform-form .row-actions .inline{display:none!important}div.metform-entry-browser-data table tbody,div.metform-entry-browser-data table thead,div.metform-entry-data table tbody,div.metform-entry-data table thead{text-align:left}img.form-editor-icon{height:20px;width:20px;margin-right:5px;vertical-align:middle}div.mf-file-show button.attr-btn.attr-btn-primary{margin-left:10px}.mf-file-show a{text-decoration:none}.mf-modal-container{margin-top:50px}.mf-modal-container .attr-modal-body img{margin:0 auto}.mf-entry-input,.mf-entry-label{-webkit-box-sizing:border-box;box-sizing:border-box}.mf-entry-filter{margin-right:10px;min-width:15%}.mf-entry-export-csv{min-width:20%}.metform_open_content_editor_modal .attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=checkbox]+span::before{line-height:20px}.mf-image-select-input,.mf-toggle-select-input{position:absolute;opacity:0;width:0;height:0}.mf-image-select-input+img,.mf-toggle-select-input+p{cursor:pointer}.mf-input-rest-api-group .mf-rest-api-key{width:100px;display:inline-block;position:relative;top:17px}.mf-input-rest-api-group .mf-rest-api{width:calc(100% - 110px);vertical-align:middle;display:inline-block!important}.metform_open_content_editor_modal .mf-rest-api-key{top:19px}.metform-entry-data table.mf-entry-data{width:100%;background-color:#fff;border:1px solid #eaf2fa;color:#000}.metform-entry-data table.mf-entry-data tbody tr.mf-data-label{background-color:#eaf2fa}.metform-entry-data table.mf-entry-data tbody tr.mf-data-value{background-color:#fff}.metform-entry-data table.mf-entry-data tbody tr.mf-data-value pre{margin:0;font:inherit}.metform-entry-data table.mf-entry-data tbody tr.mf-data-value td.mf-value-space{width:20px}.metform-entry-data table.mf-entry-data tbody tr.mf-data-value .signature-img{max-width:100%}.mf-cf-single-field{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;position:relative;margin-bottom:1rem;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mf-cf-single-field .mf-cf-single-field-input{width:48%}.mf-cf-single-field .mf-cf-single-field-input label{color:#111;font-size:12px;display:block;font-weight:500}.mf-cf-single-field .mf-cf-single-field-input input,.mf-cf-single-field .mf-cf-single-field-input select{margin-top:8px!important}.mf-cf-single-field .mf-btn-del-singl-field{outline:0;color:#fd397a;background-color:rgba(253,57,122,.1);text-decoration:none;font-size:12px;font-weight:700;padding:0 10px;position:absolute;right:0;top:0;line-height:19px;display:inline-block;border-radius:4px}.mf-cf-single-field .mf-btn-del-singl-field:hover{color:#fff;background-color:#fd397a}.mf-cf-single-field .mf-btn-del-singl-field:focus{color:#fff;background-color:#c9302c}.mf-add-cf{color:#716aca;background-color:rgba(113,106,202,.1);font-size:20px;line-height:.65em;padding:10px 10px;border:none!important;-webkit-box-shadow:none;box-shadow:none;font-weight:700;cursor:pointer;border-radius:4px;outline:0}.mf-add-cf span{-webkit-transform:translateY(-2px);transform:translateY(-2px);display:block}.mf-add-cf:hover{color:#fff;background-color:#716aca}.mf-add-cf:focus{color:#fff;background-color:#286090}
1
+ body.metform_page_metform-menu-settings{overflow-y:scroll}.mf-settings-dashboard{margin-top:40px}.mf-settings-dashboard .attr-row>div{-webkit-box-sizing:border-box;box-sizing:border-box}.mf-settings-dashboard>.attr-row{margin:0}.mf-settings-dashboard .mf-setting-sidebar{position:fixed;width:415px}.nav-tab-wrapper{border:none;padding:0}.mf-admin-setting-btn{border:2px solid #ff433c;color:#ff433c;font-size:14px;line-height:16px;text-decoration:none;text-transform:uppercase;border-radius:100px;padding:10px 23px;-webkit-transition:all .4s;-o-transition:all .4s;transition:all .4s;font-weight:700;cursor:pointer;background-color:#fff;display:inline-block}.mf-admin-setting-btn span{margin-right:6px}.mf-admin-setting-btn.medium{padding:13px 23px}.mf-admin-setting-btn.fatty{padding:17px 23px}.mf-admin-setting-btn.active,.mf-admin-setting-btn:hover{background-color:#ff433c;color:#fff}.mf-admin-setting-btn:focus{-webkit-box-shadow:none;box-shadow:none;outline:0}.mf-settings-tab{margin-bottom:40px}.mf-settings-tab li{-webkit-box-shadow:none;box-shadow:none;border:none;margin:0;background-color:#fff}.mf-settings-tab li:focus,.mf-settings-tab li:hover{outline:0;-webkit-box-shadow:none;box-shadow:none;border:none}.mf-settings-tab li.nav-tab-active{background-color:#fff;border-left-color:#ff324d;border-radius:10px}.mf-settings-tab li.nav-tab-active .mf-setting-title{color:#ff433c}.mf-settings-tab li.nav-tab-active .mf-setting-nav-link{background-color:#fff;border-top-left-radius:10px;border-bottom-left-radius:10px}.mf-settings-tab li.nav-tab-active .mf-setting-nav-link::before{content:"";background-color:#ff433c;height:10px;width:10px;position:absolute;left:17px;border-radius:100px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.mf-settings-tab .mf-setting-nav-link{outline:0;float:none;display:-webkit-box;display:-ms-flexbox;display:flex;color:#121116;border:none;background-color:#f1f1f1;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:0;-webkit-box-shadow:none;box-shadow:none;position:relative;padding:23px 40px;text-decoration:none;-webkit-transition:all .4s;-o-transition:all .4s;transition:all .4s}.mf-settings-tab .mf-setting-nav-link:focus,.mf-settings-tab .mf-setting-nav-link:hover{outline:0;-webkit-box-shadow:none;box-shadow:none;border:none}.mf-settings-tab .mf-setting-nav-link.mf-setting-nav-link.top{border-bottom-right-radius:20px}.mf-settings-tab .mf-setting-nav-link.mf-setting-nav-link.bottom{border-top-right-radius:20px}.mf-settings-tab .mf-setting-nav-link.mf-setting-nav-hidden{background-color:#f1f1f1;cursor:default;padding:15px}.mf-settings-tab.nav-tab-active.mf-setting-nav-link{border-radius:10px;background-color:#fff}.mf-settings-tab .mf-setting-tab-content .mf-setting-title{font-size:.8125rem;font-weight:700;color:#333;display:block;margin-bottom:2px;line-height:1;text-transform:uppercase}.mf-settings-tab .mf-setting-tab-content .mf-setting-subtitle{color:#72777c;font-size:.8125rem;-webkit-transition:all 150ms ease-out;-o-transition:all 150ms ease-out;transition:all 150ms ease-out}.mf-settings-section{opacity:0;visibility:hidden;-webkit-transition:opacity .4s;-o-transition:opacity .4s;transition:opacity .4s;position:absolute;top:-9999px;display:none}.mf-settings-section.active{opacity:1;position:static;visibility:visible;display:block}.metform-admin-container{background-color:#fff;padding:50px;border-radius:20px;border:none;min-height:550px;padding-top:30px;margin-bottom:0}.metform-admin-container--body .mf-settings-single-section--title{margin:0;margin-top:0;color:#ff433c;font-size:24px;line-height:28px;font-weight:700;vertical-align:middle;position:relative}.metform-admin-container--body .mf-settings-single-section--title span{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;display:inline-block;width:40px;height:40px;line-height:40px!important;margin-right:24px;background-color:rgba(255,67,60,.1);color:#ff433c;text-align:center;border-radius:5px;vertical-align:middle;font-size:18px;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased}.metform-admin-container--body .mf-setting-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:40px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-bottom:17px;position:relative;margin-left:-50px;margin-right:-50px;padding-left:50px;padding-right:51px}.metform-admin-container--body .mf-setting-header::before{content:"";position:absolute;display:block;width:48px;height:2px;bottom:-1px;left:0;background:#ff433c;margin-left:50px;margin-right:50px;z-index:2}.metform-admin-container--body .mf-setting-header::after{content:"";position:absolute;display:block;width:calc(100% - 100px);height:1px;bottom:-1px;left:0;background:#e0e4e9;margin-left:50px;z-index:1}.metform-admin-container--body .mf-setting-header.fixed{position:fixed;top:0;padding-top:20px;background-color:#fff;z-index:999}.metform-admin-container--body .mf-setting-header.fixed+div{padding-top:88px}.metform-admin-container--body .mf-setting-input{width:100%;max-width:100%;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box}.metform-admin-container--body .mf-setting-label{display:block;margin-bottom:8px;color:#101010;font-size:16px;line-height:19px;font-weight:500}.metform-admin-container--body .mf-admin-control-input{margin:0}.metform-admin-container--body .mf-admin-control-input[type=checkbox]{position:relative;-webkit-box-shadow:none;box-shadow:none;height:16px;width:16px;border:2px solid #ff5d20}.metform-admin-container--body .mf-admin-control-input[type=checkbox]:checked::before{content:"";position:absolute;background-color:#ff3747;width:8px;height:9px;-webkit-box-sizing:border-box;box-sizing:border-box;left:2px;border-radius:2px;text-align:center;margin:0;top:1.6px}.metform-admin-container .mf-setting-input{border-radius:3px;padding:5px 15px;height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px;line-height:17px;display:inline-block;-webkit-box-shadow:none;box-shadow:none;color:#121116;border:1px solid #dee3ea;font-weight:400}.metform-admin-container .mf-setting-input:active,.metform-admin-container .mf-setting-input:focus{border-color:#ff324d;-webkit-box-shadow:none;box-shadow:none;outline:0}.metform-admin-container .mf-admin-save-icon{color:#fff;font-size:14px;margin-right:6px;height:14px;width:14px}.metform-admin-container .button-primary{text-decoration:none;text-shadow:none;background-color:#ff324d;border-radius:4px;-webkit-box-shadow:0 7px 15px rgba(242,41,91,.3);box-shadow:0 7px 15px rgba(242,41,91,.3);font-size:14px;line-height:16px;text-transform:uppercase;color:#fff;font-weight:500;border:none;padding:12px 23px;-webkit-transition:all .4s;-o-transition:all .4s;transition:all .4s;display:-webkit-box;display:-ms-flexbox;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-image:-webkit-linear-gradient(45deg,#ff324d,#ff6b11);background-image:-o-linear-gradient(45deg,#ff324d,#ff6b11);background-image:linear-gradient(45deg,#ff324d,#ff6b11);position:relative;z-index:9}.metform-admin-container .button-primary:focus,.metform-admin-container .button-primary:hover{border:none;outline:0;-webkit-box-shadow:0 7px 15px rgba(242,41,91,.3);box-shadow:0 7px 15px rgba(242,41,91,.3)}.metform-admin-container .button-primary::before{border-radius:inherit;background-image:-webkit-linear-gradient(45deg,#ff6b11,#ff324d);background-image:-o-linear-gradient(45deg,#ff6b11,#ff324d);background-image:linear-gradient(45deg,#ff6b11,#ff324d);content:"";display:block;height:100%;position:absolute;top:0;left:0;opacity:0;width:100%;z-index:-1;-webkit-transition:opacity .7s ease-in-out;-o-transition:opacity .7s ease-in-out;transition:opacity .7s ease-in-out}.metform-admin-container .button-primary:hover{background-color:#dc0420}.metform-admin-container .button-primary:hover::before{opacity:1}.mf-recaptcha-settings{display:none}.mf_setting_logo{padding-top:25px}.mf_setting_logo img{max-width:200px}.mf-setting-dashboard-banner{border-radius:20px;padding-top:0}.mf-setting-dashboard-banner img{width:100%}.mf-setting-dashboard-banner--content{padding:30px}.mf-setting-dashboard-banner--content h3{margin:0;margin-bottom:15px}.mf-setting-btn{text-decoration:none;background-color:#ff324d;padding:8px 15px;border:none;-webkit-box-shadow:none;box-shadow:none;background-image:-webkit-linear-gradient(45deg,#ff324d,#ff6b11);background-image:-o-linear-gradient(45deg,#ff324d,#ff6b11);background-image:linear-gradient(45deg,#ff324d,#ff6b11);font-weight:500}.mf-setting-btn-link{background-image:none;color:#1f55f8;border-radius:0;background-color:transparent;border:none;padding:0;text-decoration:none;border-bottom:1px solid #1f55f8;font-weight:600;font-size:14px;display:inline-block;line-height:18px;-webkit-transition:all .4s;-o-transition:all .4s;transition:all .4s}.mf-setting-btn-link:hover{color:#507bff}.mf-setting-separator{margin:50px 0}.mf-setting-input-group{margin-bottom:30px}.mf-setting-input-group:last-child{margin-bottom:0}.mf-setting-input-group .description{font-weight:400;font-size:13px;line-height:15px;color:#999;font-style:normal;margin:0;margin-top:8px}.mf-setting-input-desc{display:none;padding-right:100px}.mf-setting-input-desc .mf-setting-btn-link{margin-top:15px}.mf-setting-input-desc--title{margin-top:0;margin-bottom:8px}.mf-setting-input-desc li,.mf-setting-input-desc p{font-size:14px;line-height:18px;color:#111}.mf-setting-tab-nav{margin-bottom:30px}.mf-setting-tab-nav li{margin-right:15px;cursor:pointer}.mf-setting-tab-nav li:last-child{margin-right:0}.mf-setting-tab-nav .attr-nav-tabs{border:none}.mf-setting-tab-nav .attr-nav-item{border:none;border-radius:4px;text-decoration:none;text-align:center;color:#111;font-size:14px;text-transform:capitalize;font-weight:600;padding:8px 14px;margin-right:0;display:inline-block;-webkit-box-shadow:none;box-shadow:none;z-index:2}.mf-setting-tab-nav .attr-nav-item:hover{color:#fff;background-color:#ff433c}.mf-setting-tab-nav .attr-active .attr-nav-item{color:#fff;background-color:#ff433c;border:none}.mf-setting-tab-nav .attr-active .attr-nav-item:active,.mf-setting-tab-nav .attr-active .attr-nav-item:focus,.mf-setting-tab-nav .attr-active .attr-nav-item:hover{border:none;-webkit-box-shadow:none;box-shadow:none;outline:0;color:#fff;background-color:#ff433c}.mf-setting-input-desc-data{display:none}.mf-setting-select-container{position:relative}.mf-setting-select-container .mf-setting-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:0 0}.mf-setting-select-container::before{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #111;position:absolute;right:15px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);top:50%}.mf-setting-refresh-btn{margin:0 10px;font-size:18px;line-height:24px}.mf-set-dash-tab-img{text-align:center}.mf-set-dash-section{padding:100px 0}.mf-set-dash-section:not(:first-child):not(:last-child){padding-bottom:20px;display:none}.mf-setting-dash-section-heading{text-align:center;position:relative;margin:0 auto;margin-bottom:32px}.mf-setting-dash-section-heading--title{font-size:36px;line-height:42px;margin:0;color:#121116;font-weight:700;letter-spacing:-1px}.mf-setting-dash-section-heading--title strong{color:#ff433c}.mf-setting-dash-section-heading--subtitle{color:rgba(0,0,0,.05);font-size:60px;line-height:69px;margin:0;font-weight:700;position:absolute;top:-25px;left:50%;width:100%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.mf-setting-dash-section-heading--content{width:440px;margin:0 auto;margin-top:8px}.mf-setting-dash-section-heading--content p{font-size:16px;line-height:21px;color:#121116}.mf-setting-dash-section-heading--content p:first-child{margin-top:0}.mf-setting-dash-section-heading--content p:last-child{margin-bottom:0}.mf-set-dash-top-notch{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;border-right:1px solid #f0f0f0;border-bottom:1px solid #f0f0f0}.mf-set-dash-top-notch--item{-webkit-box-flex:0;-ms-flex:0 0 33.33%;flex:0 0 33.33%;border:1px solid #f0f0f0;-webkit-box-sizing:border-box;box-sizing:border-box;padding:40px;position:relative;border-right:0;border-bottom:0}.mf-set-dash-top-notch--item__title{font-size:18px;line-height:21px;color:#121116;font-weight:600;margin:0;margin-bottom:17px}.mf-set-dash-top-notch--item__desc{font-weight:400;font-size:16px;line-height:21px;color:#999}.mf-set-dash-top-notch--item::before{content:attr(data-count);font-size:60px;line-height:69px;position:absolute;top:-5px;right:5px;-webkit-text-stroke:2px;-webkit-text-fill-color:transparent;color:#f0f0f0}.mf-set-dash-free-pro-content{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.mf-set-dash-free-pro-content img{max-width:100%}.mf-set-dash-free-pro-content .attr-nav-tabs{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:0;border:1px solid #f0f0f0;width:290px}.mf-set-dash-free-pro-content .attr-nav-link{text-decoration:none;font-size:16px;line-height:18px;color:#121116!important;border:none!important;padding:20px 23px;margin:0;border-radius:0;-webkit-transition:all .4s;-o-transition:all .4s;transition:all .4s}.mf-set-dash-free-pro-content .attr-nav-link:focus{outline:0;-webkit-box-shadow:none;box-shadow:none;background-color:transparent;border:none}.mf-set-dash-free-pro-content .attr-nav-link:hover{background-color:transparent}.mf-set-dash-free-pro-content .attr-nav-item{border-bottom:1px solid #f0f0f0}.mf-set-dash-free-pro-content .attr-nav-item:last-child{border-bottom:0}.mf-set-dash-free-pro-content .attr-nav-item:focus{outline:0;-webkit-box-shadow:none;box-shadow:none}.mf-set-dash-free-pro-content .attr-nav-item.attr-active>a{border:none}.mf-set-dash-free-pro-content .attr-nav-item.attr-active .attr-nav-link{background-color:#ff433c;color:#fff!important}.mf-set-dash-free-pro-content .attr-nav-item.attr-active .mf-icon{color:#fff}.mf-set-dash-free-pro-content .attr-nav-item.attr-active .mf-set-dash-badge{background-color:#fff}.mf-set-dash-free-pro-content .mf-icon{font-size:14px;color:#ff433c;margin-right:7px}.mf-set-dash-free-pro-content .mf-set-dash-badge{background-color:rgba(242,41,91,.1);color:#f2295b;font-size:10px;line-height:11px;border-radius:2px;display:inline-block;padding:3px 6px;margin-left:18px;font-weight:600;text-transform:uppercase}.mf-set-dash-free-pro-content .attr-tab-content{border:1px solid #f0f0f0;border-left:0;padding:50px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-flex:0;-ms-flex:0 0 calc(100% - 292px);flex:0 0 calc(100% - 292px)}.mf-set-dash-free-pro-content .attr-tab-content p{font-size:16px;line-height:24px;font-weight:400;color:#444}.mf-set-dash-free-pro-content .attr-tab-content ul li{color:#444;font-size:16px;line-height:21px}.mf-set-dash-free-pro-content .attr-tab-content ul li::before{content:"";height:5px;width:5px;background-color:#f2295b;border-radius:100px;display:inline-block;vertical-align:middle;margin-right:7px}.mf-set-dash-free-pro-content .attr-tab-content .mf-admin-setting-btn{margin-top:35px}.admin-bar .mf-setting-header.fixed{top:30px}#mf-set-dash-faq{background-color:#f1f1f1;padding-bottom:100px;margin:100px 0;text-align:center;margin-left:-50px;margin-right:-50px}#mf-set-dash-faq .mf-admin-setting-btn{margin-top:30px}.mf-admin-accordion{max-width:700px;margin:0 auto;margin-top:30px}.mf-admin-single-accordion{background-color:#fff;-webkit-box-shadow:0 7px 15px rgba(0,0,0,.07);box-shadow:0 7px 15px rgba(0,0,0,.07);margin:10px 0;text-align:left}.mf-admin-single-accordion.active .mf-admin-single-accordion--heading::after{content:"\e995";color:#f2295b}.mf-admin-single-accordion--heading{cursor:pointer;margin:0;color:#121116;font-size:14px;line-height:20px;padding:18px 20px;position:relative}.mf-admin-single-accordion--heading::after{content:"\e994";font-family:metform;position:absolute;right:30px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);font-size:12px}.mf-admin-single-accordion--body{padding:0;display:none}.mf-admin-single-accordion--body__content{padding:30px;padding-top:0}.mf-admin-single-accordion--body p{margin:0}#mf-set-dash-rate-now{margin-top:100px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-bottom:0;padding-top:0;-ms-flex-wrap:wrap;flex-wrap:wrap}#mf-set-dash-rate-now .mf-setting-dash-section-heading{text-align:left}#mf-set-dash-rate-now .mf-admin-left-thumb{margin-bottom:-50px;-ms-flex-item-align:end;align-self:flex-end}#mf-set-dash-rate-now>div{-webkit-box-flex:1;-ms-flex:1;flex:1}.mf-admin-left-thumb img{max-width:100%}@media (min-width:768px){.mf-setting-input-desc-data{display:block}.mf-settings-dashboard>.attr-row>div:last-of-type{padding-left:0}.mf-settings-dashboard>.attr-row>div:first-of-type{padding-right:0}}@media (max-width:767px){.mf-setting-dash-section-heading--content{width:100%}.mf-set-dash-free-pro-content .attr-nav-tabs{min-width:100%}.mf-set-dash-free-pro-content .attr-tab-content{border-left:1px solid #f0f0f0;padding:20px;-webkit-box-flex:100%;-ms-flex:100%;flex:100%}.mf-settings-dashboard .mf-setting-sidebar{position:static;width:100%!important}.metform-admin-container{padding:30px}.metform-admin-container--body .mf-setting-header{margin-left:-30px;margin-right:-30px;padding-left:30px;padding-right:30px}.metform-admin-container--body .mf-setting-header::after,.metform-admin-container--body .mf-setting-header::before{margin-left:30px;margin-right:30px}.metform-admin-container--body .mf-setting-header::after{width:calc(100% - 60px)}.mf-set-dash-top-notch--item{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%}.admin-bar .mf-setting-header.fixed{top:0}#mf-set-dash-faq{margin-left:-30px;margin-right:-30px}.mf-admin-left-thumb{margin-bottom:-30px;text-align:center;width:100%;margin-top:15px}.metform-admin-container--body .mf-settings-single-section--title{font-size:19px}.metform-admin-container--body .mf-settings-single-section--title span{display:none}.mf-setting-dash-section-heading--title{font-size:25px;line-height:30px}.mf-setting-dash-section-heading--subtitle{font-size:52px;line-height:59px}}.mf-setting-spin{-webkit-animation-name:rotate;animation-name:rotate;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.loading .attr-modal-content::before{opacity:.8;position:absolute;content:"";top:0;left:0;height:100%;width:100%;background-color:#fff;-webkit-transition:opaicty .5s ease;-o-transition:opaicty .5s ease;transition:opaicty .5s ease;z-index:5;border-radius:inherit}.loading .mf-spinner{display:block}#metform_form_modal{overflow-y:scroll}.elementor-editor-active .metform-form-save-btn-editor{display:none!important}.attr-modal-dialog-centered{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-top:30px;width:725px;max-width:100%}.attr-modal-dialog-centered .attr-modal-header{padding:36px 50px;border-bottom:none}.attr-modal-dialog-centered .attr-modal-header .attr-modal-title{font-size:20px;font-weight:700;color:#111;text-transform:capitalize;margin-bottom:38px;line-height:1}.attr-modal-dialog-centered .attr-modal-header .attr-nav-tabs{border:none;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.attr-modal-dialog-centered .attr-modal-header .attr-nav-tabs li{-webkit-transition:all .4s;-o-transition:all .4s;transition:all .4s}.attr-modal-dialog-centered .attr-modal-header .attr-nav-tabs a{text-decoration:none;color:#111;font-size:14px;text-transform:capitalize;font-weight:600;padding:8px 10px;border:none;margin-right:0;-webkit-transition:all .4s;-o-transition:all .4s;transition:all .4s}.attr-modal-dialog-centered .attr-modal-header .attr-nav-tabs a:hover{border:none;background-color:transparent}.attr-modal-dialog-centered .attr-modal-header .attr-nav-tabs a:focus{outline:0;-webkit-box-shadow:none;box-shadow:none;border:none}.attr-modal-dialog-centered .attr-modal-header .attr-nav-tabs li.attr-active a{border:none;color:#fff;background-color:#1f55f8;border-radius:4px;text-align:center}.attr-modal-dialog-centered .attr-modal-header button.attr-close{opacity:.8;font-size:inherit;outline:0;margin-top:-15px;margin-right:-25px}.attr-modal-dialog-centered .attr-modal-header button.attr-close span{color:#e81123;font-size:35px;font-weight:100;background-color:#fce7e9;height:36px;width:36px;display:inline-block;line-height:36px;border-radius:100px;outline:0;margin-top:5px;font-family:initial}.attr-modal-dialog-centered .attr-tab-content .attr-modal-body{padding:40px 50px;padding-top:0}.attr-modal-dialog-centered .attr-tab-content div#limit_status.hide_input{display:none}.attr-modal-dialog-centered .attr-tab-content .mf-input-group label.attr-input-label{color:#111;font-size:16px;margin-bottom:7px;display:block;font-weight:500;padding:15px 0 8px}.attr-modal-dialog-centered .attr-tab-content .mf-input-group{border-bottom:1px solid #f5f5f5;padding-bottom:14px;margin-bottom:14px}.attr-modal-dialog-centered .attr-tab-content .mf-input-group:last-of-type{border-bottom:none;padding-bottom:0}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .attr-form-control,.attr-modal-dialog-centered .attr-tab-content .mf-input-group input{color:#000;font-size:14px;height:48px;padding:0 22px;border-color:#ededed;margin-top:12px;max-width:100%;background-color:#f9f9f9;-webkit-transition:all .4s;-o-transition:all .4s;transition:all .4s}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .attr-form-control:focus,.attr-modal-dialog-centered .attr-tab-content .mf-input-group .attr-form-control:hover,.attr-modal-dialog-centered .attr-tab-content .mf-input-group input:focus,.attr-modal-dialog-centered .attr-tab-content .mf-input-group input:hover{background-color:#fff}.attr-modal-dialog-centered .attr-tab-content .mf-input-group textarea{padding:22px!important}.attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=checkbox]{display:none}.attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=checkbox]+span{position:relative;display:block}.attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=checkbox]+span::before{content:"No";width:55px;height:25px;background-color:#ededed;left:0;border-radius:15px;text-align:right;color:#fff;text-transform:uppercase;font-weight:700;font-size:10px;padding:3px;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:10px;-webkit-transition:all .4s;-o-transition:all .4s;transition:all .4s;float:right;line-height:18px;cursor:pointer}.attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=checkbox]+span::after{content:"";width:20px;height:20px;background-color:#fff;border-radius:100px;display:inline-block;position:absolute;right:31px;top:2px;-webkit-transition:all .4s;-o-transition:all .4s;transition:all .4s}.attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=checkbox]:checked+span::before{content:"Yes";width:55px;height:25px;background-color:#1f55f8;left:0;border-radius:15px;display:inline-block;text-align:left;color:#fff;text-transform:uppercase;font-weight:700;font-size:10px;padding:3px;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:10px}.attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=checkbox]:checked+span::after{content:"";width:20px;height:20px;background-color:#fff;border-radius:100px;display:inline-block;position:absolute;right:2px;top:2px}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .mf-rest-api-method{padding:0 18px;margin:0}.attr-modal-dialog-centered .attr-tab-content .mf-input-group span.mf-input-help{color:#b7b7b7;font-style:italic;font-size:12px}.attr-modal-dialog-centered .attr-tab-content .mf-input-group span.mf-input-help strong{color:#555;font-weight:700}.attr-modal-dialog-centered .attr-tab-content .mf-input-group span.mf-input-help a{color:#1f55f8;text-decoration:none;font-weight:700}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .mf-input-group-inner label.attr-input-label{display:inline-block}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .mf-input-group-inner #limit_status{width:100px;margin:0;position:relative;margin-left:15px;float:right;margin-top:-2px}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .mf-input-group-inner input{margin:0}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .mf-input-group-inner input[type=checkbox]+span::before{position:relative;top:-2px;left:5px}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .mf-input-group-inner input[type=checkbox]+span::after{right:28px;top:0}.attr-modal-dialog-centered .attr-tab-content .mf-input-group .mf-input-group-inner input[type=checkbox]:checked+span::after{right:-2px;top:0}.attr-modal-dialog-centered .attr-tab-content .mf-input-group.mf-input-group-inline{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:initial;-ms-flex-align:initial;align-items:initial}.attr-modal-dialog-centered .attr-tab-content .mf-input-group.mf-input-group-inline .attr-input-label,.attr-modal-dialog-centered .attr-tab-content .mf-input-group.mf-input-group-inline .mf-inputs{-webkit-box-flex:1;-ms-flex:1;flex:1}.attr-modal-dialog-centered .attr-tab-content .mf-input-group.mf-input-group-inline .attr-input-label select,.attr-modal-dialog-centered .attr-tab-content .mf-input-group.mf-input-group-inline .mf-inputs select{margin:0}.attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=number]+span,.attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=text]+span{display:block;margin-top:5px}.attr-modal-dialog-centered .attr-tab-content #limit_status.show_input{margin-top:32px}.attr-modal-dialog-centered .attr-modal-footer{padding:30px 50px}.attr-modal-dialog-centered .attr-modal-footer button{color:#fff;background-color:#1f55f8;font-size:16px;font-weight:700;-webkit-box-sizing:border-box;box-sizing:border-box;padding:12px 20px;-webkit-box-shadow:none;box-shadow:none;border:1px solid transparent;-webkit-transition:all .4s;-o-transition:all .4s;transition:all .4s;outline:0}.attr-modal-dialog-centered .attr-modal-footer button:focus{border:none;outline:0}.attr-modal-dialog-centered .attr-modal-footer button.metform-form-save-btn-editor{background-color:#d8d8d8;color:#111}.attr-modal-dialog-centered>form{width:100%}.modal-backdrop{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0,0,0,.5);z-index:9999}.attr-modal{z-index:10000}.mf_multipile_ajax_search_filed .select2-container--default .select2-selection--multiple .select2-selection__choice{line-height:1.5;font-size:.9em;border:none;border-radius:0;color:#6d7882}.mf-headerfooter-status{display:inline-block;margin-left:5px;padding:2px 5px 3px;color:#fff;background-color:#9a9a9a;border-radius:3px;font-size:10px;line-height:1;font-weight:700}.mf-headerfooter-status-active{background-color:#00cd00}.irs--round .irs-max,.irs--round .irs-min{display:none}.irs--round .irs-handle{cursor:pointer}.mf-success-msg{position:fixed;z-index:9;text-align:center;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-box-shadow:0 2px 5px rgba(153,153,153,.2);box-shadow:0 2px 5px rgba(153,153,153,.2);min-width:300px}textarea.attr-form-control{height:auto!important}.post-type-metform-form .row-actions .inline{display:none!important}div.metform-entry-browser-data table tbody,div.metform-entry-browser-data table thead,div.metform-entry-data table tbody,div.metform-entry-data table thead{text-align:left}img.form-editor-icon{height:20px;width:20px;margin-right:5px;vertical-align:middle}div.mf-file-show button.attr-btn.attr-btn-primary{margin-left:10px}.mf-file-show a{text-decoration:none}.mf-modal-container{margin-top:50px}.mf-modal-container .attr-modal-body img{margin:0 auto}.mf-entry-input,.mf-entry-label{-webkit-box-sizing:border-box;box-sizing:border-box}.mf-entry-filter{margin-right:10px;min-width:15%}.mf-entry-export-csv{min-width:20%}.metform_open_content_editor_modal .attr-modal-dialog-centered .attr-tab-content .mf-input-group input[type=checkbox]+span::before{line-height:20px}.mf-image-select-input,.mf-toggle-select-input{position:absolute;opacity:0;width:0;height:0}.mf-image-select-input+img,.mf-toggle-select-input+p{cursor:pointer}.mf-input-rest-api-group .mf-rest-api-key{width:100px;display:inline-block;position:relative;top:17px}.mf-input-rest-api-group .mf-rest-api{width:calc(100% - 110px);vertical-align:middle;display:inline-block!important}.metform_open_content_editor_modal .mf-rest-api-key{top:19px}.metform-entry-data table.mf-entry-data{width:100%;background-color:#fff;border:1px solid #eaf2fa;color:#000}.metform-entry-data table.mf-entry-data tbody tr.mf-data-label{background-color:#eaf2fa}.metform-entry-data table.mf-entry-data tbody tr.mf-data-value{background-color:#fff}.metform-entry-data table.mf-entry-data tbody tr.mf-data-value pre{margin:0;font:inherit}.metform-entry-data table.mf-entry-data tbody tr.mf-data-value td.mf-value-space{width:20px}.metform-entry-data table.mf-entry-data tbody tr.mf-data-value .signature-img{max-width:100%}.mf-cf-single-field{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;position:relative;margin-bottom:1rem;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mf-cf-single-field .mf-cf-single-field-input{width:48%}.mf-cf-single-field .mf-cf-single-field-input label{color:#111;font-size:12px;display:block;font-weight:500}.mf-cf-single-field .mf-cf-single-field-input input,.mf-cf-single-field .mf-cf-single-field-input select{margin-top:8px!important}.mf-cf-single-field .mf-btn-del-singl-field{outline:0;color:#fd397a;background-color:rgba(253,57,122,.1);text-decoration:none;font-size:12px;font-weight:700;padding:0 10px;position:absolute;right:0;top:0;line-height:19px;display:inline-block;border-radius:4px}.mf-cf-single-field .mf-btn-del-singl-field:hover{color:#fff;background-color:#fd397a}.mf-cf-single-field .mf-btn-del-singl-field:focus{color:#fff;background-color:#c9302c}.mf-add-cf{color:#716aca;background-color:rgba(113,106,202,.1);font-size:20px;line-height:.65em;padding:10px 10px;border:none!important;-webkit-box-shadow:none;box-shadow:none;font-weight:700;cursor:pointer;border-radius:4px;outline:0}.mf-add-cf span{-webkit-transform:translateY(-2px);-ms-transform:translateY(-2px);transform:translateY(-2px);display:block}.mf-add-cf:hover{color:#fff;background-color:#716aca}.mf-add-cf:focus{color:#fff;background-color:#286090}.achor-style{color:#1f55f8;text-decoration:none;font-weight:700}
public/assets/css/style.css CHANGED
@@ -1 +1 @@
1
- #elementor .mf-btn-wraper a.metform-btn{background:#337ab7;color:#fff;border-radius:5px;height:20%;font-size:16px;padding:10px}.mf-form-wrapper section,.single-metform-form section{padding-top:0;padding-bottom:0}.mf-input-switch-control{position:relative;display:inline-block}.mf-input-switch-control>input[type=checkbox]{display:none!important}.mf-input-control{position:absolute;z-index:-1;opacity:0}.mf-input-switch .mf-input-control-label::before{content:attr(data-disable);width:55px;height:25px;background-color:#ededed;left:0;border-radius:15px;text-align:right;color:#fff;text-transform:uppercase;font-weight:700;font-size:10px;padding:3px;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:10px;-webkit-transition:all .4s;transition:all .4s;float:right;line-height:18px;cursor:pointer;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:end;-webkit-box-pack:end;justify-content:flex-end}.metform-form-content{position:relative;z-index:0}.mf-response-msg-wrap{-webkit-transition:height .45s,opacity .45s,visibility .45s;transition:height .45s,opacity .45s,visibility .45s;background-color:#fff}.mf-main-response-wrap{border-radius:10px;border:1px solid #101010}.mf-response-msg-wrap[data-show="0"]{height:0!important;opacity:0;visibility:hidden}.mf-response-msg-wrap[data-show="1"]{height:auto;opacity:1;visibility:visible;margin-bottom:20px}.mf-response-msg{border-radius:5px;text-align:center;padding:15px 34px;height:100%}.wf-error-res{background-color:#f8d7da;border-color:#f5c6cb}.mf-success-icon,.wf-error-res .mf-alert-icon{color:#721c24;font-size:30px;margin-bottom:5px}.mf-success-icon{color:#101010}.mf-response-msg p{font-size:17px;line-height:20px;color:#101010;margin-bottom:0}.wf-error-res p{color:#721c24}.custom-file-label,.custom-select,.mf-input-control-label::before{-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out}.mf-input-control-label::after{position:absolute;top:2px;left:2px;display:block;width:14px;height:14px;content:"";background-color:#adb5bd;border-radius:100px;-webkit-transition:all .4s;transition:all .4s;cursor:pointer}.mf-input-switch label.mf-input-control-label{display:inline-block;vertical-align:middle;position:relative;margin:0}.mf-input-control:checked~.mf-input-control-label::before{color:#fff;border-color:#007bff;background-color:#007bff;content:attr(data-enable);text-align:left;padding-left:10px;-ms-flex-pack:start;-webkit-box-pack:start;justify-content:flex-start}.mf-input-switch .mf-input-control:checked~.mf-input-control-label::after{background-color:#fff}.mf-input-wrapper .mf-input-help{display:block;font-size:.9em;margin-top:5px;opacity:.7;clear:both;font-weight:400}.mf-input-wrapper .mf-input{width:100%;max-width:100%;padding:12px;height:auto;border-width:1px;border-style:solid;border-color:#eaeaea;border-radius:2px;background:0 0;background-color:#fafafa;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all .2s linear;transition:all .2s linear;font-size:14px;line-height:21px}.mf-input-wrapper .mf-input:focus,.mf-input-wrapper.mf-field-error .mf-input,.mf-input-wrapper.mf-field-error .mf-input:focus{outline:0}.mf-input-wrapper .mf-input:focus{border-color:#4285f478}.mf-input-wrapper .mf-input:-ms-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-webkit-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-moz-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-ms-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-webkit-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input:-moz-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}@media (max-width:767px){.attr-form-group>.attr-control-label,.attr-form-group>.mf-input,.mf-input-wrapper>.mf-captcha-input-wrapper,.mf-input-wrapper>.mf-checkbox,.mf-input-wrapper>.mf-image-select,.mf-input-wrapper>.mf-input-label,.mf-input-wrapper>.mf-input:not(.mf-left-parent),.mf-input-wrapper>.mf-payment-method,.mf-input-wrapper>.mf-radio,.mf-input-wrapper>.mf-repeater-field-label,.mf-input-wrapper>.mf-signature{width:100%;min-width:100%}}.mf-input-wrapper .mf-input-label,.mf-repeater-field-label{font-family:Roboto,Sans-serif;font-weight:600;font-size:14px;display:block;color:#000;font-size:14px;line-height:16px;margin-bottom:5px}.mf-input-wrapper .mf-input,.mf-input-wrapper .mf-input-label{vertical-align:middle}div.mf-input-wrapper>textarea.mf-input{padding:15px}.irs--round .irs-max,.irs--round .irs-min{display:none}.irs--round .irs-handle{cursor:pointer}.multi-option-input-type{vertical-align:middle}.mf-checkbox-option input[type=checkbox]{display:none!important}.mf-checkbox-option:not(.disabled) label{cursor:pointer}.mf-checkbox-option input[type=checkbox]+span:before{position:relative;content:"\f0c8";font-family:"Font Awesome 5 Free"!important;font-weight:500!important;display:inline-block;border:none;font-size:18px;color:#5f7bff;font-weight:400;width:25px;line-height:1;top:2px}.mf-checkbox-option input[type=checkbox]+span{font-weight:400;font-size:14px;cursor:pointer}.mf-checkbox-option input[type=checkbox]:checked+span:before{content:"\f14a";font-family:"Font Awesome 5 Free"!important;display:inline-block;border:none;font-size:18px;color:#5f7bff}.mf-radio-option input[type=radio]{display:none!important}.mf-checkbox-option,.mf-radio-option{padding-right:15px}.mf-radio-option input[type=radio]+span:before{content:"\f111";font-family:"Font Awesome 5 Free"!important;font-weight:500!important;display:inline-block;border:none;font-size:18px;color:#5f7bff;font-weight:400;width:25px;line-height:1;top:2px;position:relative}.mf-radio-option input[type=radio]+span{font-weight:400;font-size:14px;cursor:pointer}.mf-radio-option input[type=radio]:checked+span:before{content:"\f058";font-family:"Font Awesome 5 Free"!important;display:inline-block;border:none;font-size:18px;color:#5f7bff}.mf-input-wrapper .mf-input-select{padding:0!important}.mf-input-select .mf_select__control{min-height:0;padding:12px;border-width:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer;border-radius:none!important;border:1px solid #eaeaea;background-color:transparent}.mf-input-select .mf_select__control:hover{border:1px solid #eaeaea}.mf-input-select .mf_select__indicator-separator{display:none}.mf-input-select .mf_select__value-container,.mf-input-select .mf_select__value-container input{padding:0}.mf-input-select .mf_select__placeholder{margin-left:0;margin-right:0;color:inherit}.mf-input-select .mf_select__indicators{margin-right:2px}.mf-input-multiselect .mf_multiselect__indicators{margin-right:15px}.mf-input-multiselect .mf_multiselect__dropdown-indicator,.mf-input-select .mf_select__indicator{padding:0;border-style:solid;border-width:5px 4px 0;border-color:currentColor transparent transparent}.mf-input-multiselect .mf_multiselect__control--menu-is-open .mf_multiselect__dropdown-indicator,.mf-input-select .mf_select__control--menu-is-open .mf_select__indicator{border-width:0 4px 5px;border-color:transparent transparent currentColor}.mf-input-multiselect .mf_multiselect__dropdown-indicator>svg,.mf-input-select .mf_select__indicator>svg{display:none}.mf-input-select .mf_select__menu{width:100%;margin:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;background-color:#fff}.mf-input-select .mf_select__menu>div{overflow-X:hidden}.mf-input-select .mf_select__menu-list{padding:0}.mf-input-select .mf_select__option{cursor:pointer;border:1px solid #eaeaea}.mf-input-select .mf_select__option.mf_select__option--is-focused,.mf-input-select .mf_select__option.mf_select__option--is-selected,.mf-input-select .mf_select__option:hover{background-color:#f0f0f0}.mf-input-select .mf_select__control.mf_select__control--is-focused{border-color:#4285f478;background-color:inherit}.mf-input.mf-input-select{border:none!important;background-color:#fafafa}.mf-input-select .mf_select__single-value{position:relative;top:0;width:100%;max-width:calc(100% - 22px);margin-left:0;margin-right:0;-webkit-transform:none;transform:none}.mf-input-wrapper select.mf-input-dropdown{border:none;padding:15px 25px;font-size:15px;font-weight:500!important;-webkit-appearance:none;-o-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-style:solid;border-color:#eaeaea}.mf-input-wrapper select.mf-input-dropdown option{background-color:#fff;color:#222;font-size:15px}.mf-input-switch-control.mf-input-switch.mf-input{-webkit-box-shadow:none!important;box-shadow:none!important;vertical-align:-webkit-baseline-middle;border:none;padding:0}.mf-input-wrapper .range-slider{display:inline-block;width:100%}.mf-input-wrapper .asRange{width:100%;background-color:#f1f4f9}.mf-input-wrapper .asRange .asRange-pointer .asRange-tip:before,.mf-input-wrapper .asRange .asRange-pointer:before,.mf-input-wrapper .asRange .asRange-selected{background-color:#1fb787}.mf-input-wrapper .asRange .asRange-pointer .asRange-tip{background-color:#1fb787;border:1px solid #1fb787;top:inherit;bottom:18px;left:-50%;margin-left:8px;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.metform-btn{background-color:#4285f4;border:none;-webkit-box-shadow:none;box-shadow:none;display:inline-block;max-width:100%;padding:16px 40px;font-size:16px;border-radius:2px;cursor:pointer;-webkit-box-shadow:0 5px 5px 0 rgba(66,133,244,.3);box-shadow:0 5px 5px 0 rgba(66,133,244,.3);line-height:18px;-webkit-transition:all .4s;transition:all .4s;font-weight:500;text-decoration:none}.metform-btn:focus,.metform-btn:hover{background-color:#4285f4;text-decoration:none;outline:0}button.metform-btn,button.metform-btn:not(.toggle){background-color:#4285f4}button.metform-btn:focus,button.metform-btn:hover{background-color:#4285f4}@media (max-width:767px){.mf-btn--mobile-justify .metform-btn{width:100%}}@media (min-width:768px) and (max-width:1024px){.mf-btn--tablet-justify .metform-btn{width:100%}}@media (min-width:1025px){.mf-btn--justify .metform-btn{width:100%}}.metform-submit-btn{position:relative;z-index:0}.metform-submit-btn:after,.metform-submit-btn:before{content:" ";position:absolute;top:50%;left:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border-style:solid;border-color:currentColor;border-width:0;border-radius:50%;opacity:0;-webkit-transition:opacity .3s ease;transition:opacity .3s ease}.metform-submit-btn[disabled]:after,.metform-submit-btn[disabled]:before{opacity:1;-webkit-transition-delay:.15s;transition-delay:.15s}.metform-submit-btn:before{border-width:2px}.metform-submit-btn[disabled]:before{opacity:.25}.metform-submit-btn:after{border-top-width:2px;-webkit-animation:submitSpin .55s linear infinite;animation:submitSpin .55s linear infinite}.metform-submit-btn>span{-webkit-transition:opacity .15s ease .15s;transition:opacity .15s ease .15s}.metform-submit-btn[disabled]>span{opacity:0;-webkit-transition-delay:0;transition-delay:0}@-webkit-keyframes submitSpin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes submitSpin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.mf-input-wrapper .iti{display:block}.mf-input-wrapper>.iti{display:inline-block;width:100%}.mf-input-wrapper .iti .mf-input{width:100%!important}.mf-input-wrapper .iti--separate-dial-code .iti__selected-flag{background-color:#f7f6f6}.mf-input-wrapper .iti .iti__flag-container{display:none}.mf-input-wrapper .iti>.iti__flag-container{display:block}.flatpickr-calendar{margin-top:8px}.flatpickr-month{margin-top:3px;margin-bottom:5px}.mf-input-wrapper>.flatpickr-wrapper{display:block}.flatpickr-wrapper select{display:inline-block}.elementor-widget-mf-date.elementor-element-edit-mode .flatpickr-calendar,.elementor-widget-mf-time.elementor-element-edit-mode .flatpickr-calendar{top:100%!important;left:0!important}.mf-ratings{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;cursor:pointer}.mf-ratings>input{display:none!important}.mf-ratings>label{cursor:pointer}.mf-ratings>label:not(:last-child){padding-right:5px}.mf-ratings.is-selected>label,.mf-ratings:not(.is-selected):hover>label{color:#ffdb72}.mf-ratings.is-selected:not(:hover)>input:checked+label~label,.mf-ratings.is-selected>label:hover~label,.mf-ratings:not(.is-selected),.mf-ratings:not(.is-selected)>label:hover~label{color:#ccc}.mf-input-file-upload{width:.1px;height:.1px;opacity:0;visibility:hidden;position:absolute}.mf-input-file-upload-label{color:#fff;margin-right:10px;padding:5px 15px;display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-webkit-box-shadow:none;box-shadow:none;font-size:16px;font-weight:400;line-height:28px}.mf-input-file-upload-label i{font-size:18px}.mf-input-file-upload-label svg{max-width:18px;height:auto;vertical-align:middle}.mf-file-name span{display:inline-block;font-size:15px}.mf-input-wrapper .error{display:block;font-size:14px}.mf-input-multiselect,.mf-input-select{padding:0;cursor:pointer}.mf-input.mf-input-multiselect{padding:0!important;-webkit-box-shadow:none!important;box-shadow:none!important;border:none!important}.mf-input-multiselect .mf_multiselect__control{border:1px solid #eaeaea;border-radius:0;background-color:#fafafa;cursor:pointer}.mf-input-multiselect .mf_multiselect__control:focus,.mf-input-multiselect .mf_multiselect__control:hover{border:1px solid #eaeaea;outline:0;-webkit-box-shadow:none;box-shadow:none}.mf_multiselect__indicator-separator{display:none}.mf_multiselect__option.mf_multiselect__option--is-focused,.mf_multiselect__option:hover{background-color:#f0f0f0}.mf_multiselect__option.mf_multiselect__option--is-focused{background-color:#fff}.mf_multiselect__option{border:1px solid #eaeaea;background-color:#fff;padding:10px 15px;font-size:15px}.mf-input-multiselect .mf_multiselect__menu{margin:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}.mf-input-multiselect .mf_multiselect__menu-list{padding:0}.mf-input-multiselect .mf_multiselect__placeholder{color:#c9c1c1}.mf_multiselect__menu-notice--no-options{border:1px solid #eaeaea;color:#c9c1c1}.mf_multiselect__control .mf_multiselect__value-container{padding:8px 12px}.mf_multiselect__control .mf_multiselect__value-container>div:last-child{height:25px}.mf-input-multiselect .mf_multiselect__multi-value{margin:0 5px 0 0}.mf_multiselect__multi-value__remove{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.mf_multiselect__multi-value__label{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.mf-input-multiselect .mf_multiselect__input>input{min-height:0}.mf-input.mf-input-summary{padding:0;background-color:#fff;border-width:0}.mf-entry-data{margin:0;padding:0;list-style:none;word-break:break-word}.mf-entry-data>li{border:1px solid rgba(0,0,0,.1)}.mf-entry-data>li:not(:last-child){border-bottom-width:0}.mf-entry-data>li>strong{display:block;padding:8px;background-color:#eaf2fa;border-bottom:1px solid rgba(0,0,0,.1)}.mf-entry-data>li>span{display:block;padding:8px 28px;min-height:42px}.elementor-widget-mf-range .mf-field-error .error{display:none!important}.g-recaptcha>div{position:relative;z-index:0}.g-recaptcha>div:after,.g-recaptcha>div:before,.g-recaptcha>div>div:after,.g-recaptcha>div>div:before{content:" ";position:absolute;border-style:solid;border-color:#d3d3d3;border-width:0;z-index:0}.g-recaptcha>div:before{top:0;left:0;bottom:2px;border-left-width:1px}.g-recaptcha>div:after{top:0;right:2px;bottom:2px;border-right-width:1px}.g-recaptcha>div>div:before{top:0;left:0;right:2px;border-top-width:1px}.g-recaptcha>div>div:after{left:0;right:2px;bottom:2px;border-bottom-width:1px}.g-recaptcha+.attr-alert{display:none}.g-recaptcha:empty+.attr-alert{display:block!important}.mf-captcha-input-wrapper.mf-captcha-block>i{padding-left:25px}img.mf-input.mf-captcha-image{max-width:200px;border:none;-webkit-box-sizing:unset;box-sizing:unset;background:0 0;padding:0;display:inline-block}.mf-captcha-block>img.mf-input.mf-captcha-image{margin:5px 0 5px 0}.mf-captcha-inline>img.mf-input.mf-captcha-image{margin:0 5px 0 0}.mf-captcha-input-wrapper.mf-captcha-inline{display:-ms-inline-flexbox!important;display:-webkit-inline-box!important;display:inline-flex!important;-ms-flex-align:center;-webkit-box-align:center;align-items:center;width:100%}.mf-captcha-input-wrapper.mf-captcha-inline>i{margin-left:25px!important;-ms-flex-order:1;-webkit-box-ordinal-group:2;order:1}.mf-refresh-captcha:before{content:"\f01e";font-family:"Font Awesome 5 Free";font-weight:700;font-style:normal;cursor:pointer}.mf-error-message{display:block}.mf-input-wrapper .input-range__slider{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border:4px solid #000;border-radius:100%;cursor:pointer;display:block;height:15px;margin-left:-7.5px;margin-top:-11px;outline:0;position:absolute;top:50%;-webkit-transition:-webkit-transform .3s ease-out,box-shadow .3s ease-out;-webkit-transition:-webkit-transform .3s ease-out,-webkit-box-shadow .3s ease-out;transition:-webkit-transform .3s ease-out,-webkit-box-shadow .3s ease-out;transition:transform .3s ease-out,box-shadow .3s ease-out;transition:transform .3s ease-out,box-shadow .3s ease-out,-webkit-transform .3s ease-out,-webkit-box-shadow .3s ease-out;-webkit-transition:-webkit-transform .3s ease-out,box-shadow .3s ease-out,-webkit-transform .3s ease-out;transition:transform .3s ease-out,box-shadow .3s ease-out,-webkit-transform .3s ease-out;width:15px}.mf-input-wrapper .input-range__slider:focus{-webkit-box-shadow:0 0 0 5px rgba(63,81,181,.2);box-shadow:0 0 0 5px rgba(63,81,181,.2)}.input-range--disabled .input-range__slider{background:#ccc;border:1px solid #ccc;-webkit-box-shadow:none;box-shadow:none;-webkit-transform:none;transform:none}.mf-input-wrapper .input-range__slider-container{-webkit-transition:left .3s ease-out;transition:left .3s ease-out}.mf-input-wrapper .input-range__label{color:#aaa;font-family:"Helvetica Neue",san-serif;font-size:.8rem;-webkit-transform:translateZ(0);transform:translateZ(0);white-space:nowrap}.mf-input-wrapper .input-range__label--max,.mf-input-wrapper .input-range__label--min{bottom:-1.4rem;position:absolute;display:none}.mf-input-wrapper .input-range__label--min{left:0}.mf-input-wrapper .input-range__label--max{right:0}.mf-input-wrapper .input-range__label--value{position:absolute;bottom:20px}.mf-input-wrapper .input-range__label-container{left:-50%;position:relative;background-color:#000;width:36px;height:20px;display:inline-block;color:#fff;font-size:12px;text-align:center;border-radius:3px}.mf-input-wrapper .input-range__label-container:before{position:absolute;bottom:-3px;left:50%;display:inline-block;width:6px;height:6px;margin-left:-3px;content:"";background-color:#000;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.mf-input-wrapper .input-range__label--max .input-range__label-container{left:50%}.mf-input-wrapper .input-range__track{background:#f1f4f9;border-radius:.3rem;cursor:pointer;display:block;height:8px;position:relative;-webkit-transition:left .3s ease-out,width .3s ease-out;transition:left .3s ease-out,width .3s ease-out}.mf-input-wrapper .input-range--disabled .input-range__track{background:#f1f4f9}.mf-input-wrapper .input-range__track--background{left:0;margin-top:-.15rem;position:absolute;right:0;top:50%}.mf-input-wrapper .input-range__track--active{background:#000}.mf-input-wrapper .input-range{height:1rem;position:relative;width:100%}.mf-condition--hidden,[mf-condition-hidden=true]{display:none;visibility:hidden}
1
+ @-webkit-keyframes metform-responseOpen{from{-webkit-transform:scaleY(0);transform:scaleY(0);opacity:0;-webkit-transform-origin:top center;transform-origin:top center}to{-webkit-transform:scaley(1);transform:scaley(1);opacity:1;-webkit-transform-origin:top center;transform-origin:top center}}@keyframes metform-responseOpen{from{-webkit-transform:scaleY(0);transform:scaleY(0);opacity:0;-webkit-transform-origin:top center;transform-origin:top center}to{-webkit-transform:scaley(1);transform:scaley(1);opacity:1;-webkit-transform-origin:top center;transform-origin:top center}}@-webkit-keyframes metform-responseClose{from{-webkit-transform:scaley(1);transform:scaley(1);-webkit-transform-origin:top center;transform-origin:top center}to{-webkit-transform:scaley(0);transform:scaley(0);-webkit-transform-origin:top center;transform-origin:top center}}@keyframes metform-responseClose{from{-webkit-transform:scaley(1);transform:scaley(1);-webkit-transform-origin:top center;transform-origin:top center}to{-webkit-transform:scaley(0);transform:scaley(0);-webkit-transform-origin:top center;transform-origin:top center}}@-webkit-keyframes metform-zoom-out-zero{from{opacity:1;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform:scale(0);transform:scale(0)}}@keyframes metform-zoom-out-zero{from{opacity:1;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform:scale(0);transform:scale(0)}}@-webkit-keyframes metform-zoom-in-full{from{opacity:0;-webkit-transform:scale(0);transform:scale(0)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes metform-zoom-in-full{from{opacity:0;-webkit-transform:scale(0);transform:scale(0)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}#elementor .mf-btn-wraper a.metform-btn{background:#337ab7;color:#fff;border-radius:5px;height:20%;font-size:16px;padding:10px}.mf-form-wrapper section,.single-metform-form section{padding-top:0;padding-bottom:0}.mf-input-switch-control{position:relative;display:inline-block}.mf-input-switch-control>input[type=checkbox]{display:none!important}.mf-input-control{position:absolute;z-index:-1;opacity:0}.mf-input-switch .mf-input-control-label::before{content:attr(data-disable);width:55px;height:25px;background-color:#ededed;left:0;border-radius:15px;text-align:right;color:#fff;text-transform:uppercase;font-weight:700;font-size:10px;padding:3px;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:10px;-webkit-transition:all .4s;transition:all .4s;float:right;line-height:18px;cursor:pointer;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:end;-webkit-box-pack:end;justify-content:flex-end}.metform-form-content{position:relative;z-index:0}.mf-response-msg-wrap{-webkit-transition:height .45s,opacity .45s,visibility .45s;transition:height .45s,opacity .45s,visibility .45s;background-color:#fff}.mf-response-msg-wrap[data-show="0"]{height:0!important;opacity:0;visibility:hidden}.mf-response-msg-wrap[data-show="1"]{height:auto;opacity:1;visibility:visible;margin-bottom:20px}.mf-response-msg{border-radius:5px;text-align:center;padding:15px 34px;height:100%}.wf-error-res{background-color:#f8d7da;border-color:#f5c6cb}.mf-success-icon,.wf-error-res .mf-alert-icon{color:#721c24;font-size:30px;margin-bottom:5px}.mf-success-icon{color:#101010}.mf-response-msg p{font-size:17px;line-height:20px;color:#101010;margin-bottom:0}.wf-error-res p{color:#721c24}.custom-file-label,.custom-select,.mf-input-control-label::before{-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out}.mf-input-control-label::after{position:absolute;top:2px;left:2px;display:block;width:14px;height:14px;content:"";background-color:#adb5bd;border-radius:100px;-webkit-transition:all .4s;transition:all .4s;cursor:pointer}.mf-input-switch label.mf-input-control-label{display:inline-block;vertical-align:middle;position:relative;margin:0}.mf-input-control:checked~.mf-input-control-label::before{color:#fff;border-color:#007bff;background-color:#007bff;content:attr(data-enable);text-align:left;padding-left:10px;-ms-flex-pack:start;-webkit-box-pack:start;justify-content:flex-start}.mf-input-switch .mf-input-control:checked~.mf-input-control-label::after{background-color:#fff}.mf-input-wrapper .mf-input-help{display:block;font-size:.9em;margin-top:5px;opacity:.7;clear:both;font-weight:400}.mf-input-wrapper .mf-input{width:100%;max-width:100%;padding:12px;height:auto;border-width:1px;border-style:solid;border-color:#eaeaea;border-radius:2px;background:0 0;background-color:#fafafa;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all .2s linear;transition:all .2s linear;font-size:14px;line-height:21px}.mf-input-wrapper .mf-input:focus,.mf-input-wrapper.mf-field-error .mf-input,.mf-input-wrapper.mf-field-error .mf-input:focus{outline:0}.mf-input-wrapper .mf-input:focus{border-color:#4285f478}.mf-input-wrapper .mf-input:-ms-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-webkit-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-moz-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-ms-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-webkit-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input:-moz-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}@media (max-width:767px){.attr-form-group>.attr-control-label,.attr-form-group>.mf-input,.mf-input-wrapper>.mf-captcha-input-wrapper,.mf-input-wrapper>.mf-checkbox,.mf-input-wrapper>.mf-image-select,.mf-input-wrapper>.mf-input-label,.mf-input-wrapper>.mf-input:not(.mf-left-parent),.mf-input-wrapper>.mf-payment-method,.mf-input-wrapper>.mf-radio,.mf-input-wrapper>.mf-repeater-field-label,.mf-input-wrapper>.mf-signature{width:100%;min-width:100%}}.mf-input-wrapper .mf-input-label,.mf-repeater-field-label{font-family:Roboto,sans-serif;font-weight:600;font-size:14px;display:block;color:#000;font-size:14px;line-height:16px;margin-bottom:5px}.mf-input-wrapper .mf-input,.mf-input-wrapper .mf-input-label{vertical-align:middle}div.mf-input-wrapper>textarea.mf-input{padding:15px}.irs--round .irs-max,.irs--round .irs-min{display:none}.irs--round .irs-handle{cursor:pointer}.multi-option-input-type{vertical-align:middle}.mf-checkbox-option input[type=checkbox]{display:none!important}.mf-checkbox-option:not(.disabled) label{cursor:pointer}.mf-checkbox-option input[type=checkbox]+span::before{position:relative;content:"\f0c8";font-family:"Font Awesome 5 Free"!important;font-weight:500!important;display:inline-block;border:none;font-size:18px;color:#5f7bff;font-weight:400;width:25px;line-height:1;top:2px}.mf-checkbox-option input[type=checkbox]+span{font-weight:400;font-size:14px;cursor:pointer}.mf-checkbox-option input[type=checkbox]:checked+span::before{content:"\f14a";font-family:"Font Awesome 5 Free"!important;display:inline-block;border:none;font-size:18px;color:#5f7bff}.mf-radio-option input[type=radio]{display:none!important}.mf-checkbox-option,.mf-radio-option{padding-right:15px}.mf-radio-option input[type=radio]+span::before{content:"\f111";font-family:"Font Awesome 5 Free"!important;font-weight:500!important;display:inline-block;border:none;font-size:18px;color:#5f7bff;font-weight:400;width:25px;line-height:1;top:2px;position:relative}.mf-radio-option input[type=radio]+span{font-weight:400;font-size:14px;cursor:pointer}.mf-radio-option input[type=radio]:checked+span::before{content:"\f058";font-family:"Font Awesome 5 Free"!important;display:inline-block;border:none;font-size:18px;color:#5f7bff}.mf-input-wrapper .mf-input-select{padding:0!important}.mf-input-select .mf_select__control{min-height:0;padding:12px;border-width:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer;border-radius:none!important;border:1px solid #eaeaea;background-color:transparent}.mf-input-select .mf_select__control:hover{border:1px solid #eaeaea}.mf-input-select .mf_select__indicator-separator{display:none}.mf-input-select .mf_select__value-container,.mf-input-select .mf_select__value-container input{padding:0}.mf-input-select .mf_select__placeholder{margin-left:0;margin-right:0;color:inherit}.mf-input-select .mf_select__indicators{margin-right:2px}.mf-input-multiselect .mf_multiselect__indicators{margin-right:15px}.mf-input-multiselect .mf_multiselect__dropdown-indicator,.mf-input-select .mf_select__indicator{padding:0;border-style:solid;border-width:5px 4px 0;border-color:currentColor transparent transparent}.mf-input-multiselect .mf_multiselect__control--menu-is-open .mf_multiselect__dropdown-indicator,.mf-input-select .mf_select__control--menu-is-open .mf_select__indicator{border-width:0 4px 5px;border-color:transparent transparent currentColor}.mf-input-multiselect .mf_multiselect__dropdown-indicator>svg,.mf-input-select .mf_select__indicator>svg{display:none}.mf-input-select .mf_select__menu{width:100%;margin:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;background-color:#fff}.mf-input-select .mf_select__menu>div{overflow-x:hidden}.mf-input-select .mf_select__menu-list{padding:0}.mf-input-select .mf_select__option{cursor:pointer;border:1px solid #eaeaea}.mf-input-select .mf_select__option.mf_select__option--is-focused,.mf-input-select .mf_select__option.mf_select__option--is-selected,.mf-input-select .mf_select__option:hover{background-color:#f0f0f0}.mf-input-select .mf_select__control.mf_select__control--is-focused{border-color:#4285f478;background-color:inherit}.mf-input.mf-input-select{border:none!important;background-color:#fafafa}.mf-input-select .mf_select__single-value{position:relative;top:0;width:100%;max-width:calc(100% - 22px);margin-left:0;margin-right:0;-webkit-transform:none;transform:none}.mf-input-wrapper select.mf-input-dropdown{border:none;padding:15px 25px;font-size:15px;font-weight:500!important;-webkit-appearance:none;-o-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-style:solid;border-color:#eaeaea}.mf-input-wrapper select.mf-input-dropdown option{background-color:#fff;color:#222;font-size:15px}.mf-input-switch-control.mf-input-switch.mf-input{-webkit-box-shadow:none!important;box-shadow:none!important;vertical-align:-webkit-baseline-middle;border:none;padding:0}.mf-input-wrapper .range-slider{display:inline-block;width:100%}.mf-input-wrapper .asRange{width:100%;background-color:#f1f4f9}.mf-input-wrapper .asRange .asRange-pointer .asRange-tip::before,.mf-input-wrapper .asRange .asRange-pointer::before,.mf-input-wrapper .asRange .asRange-selected{background-color:#1fb787}.mf-input-wrapper .asRange .asRange-pointer .asRange-tip{background-color:#1fb787;border:1px solid #1fb787;top:inherit;bottom:18px;left:-50%;margin-left:8px;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.metform-btn{background-color:#4285f4;border:none;-webkit-box-shadow:none;box-shadow:none;display:inline-block;max-width:100%;padding:16px 40px;font-size:16px;border-radius:2px;cursor:pointer;-webkit-box-shadow:0 5px 5px 0 rgba(66,133,244,.3);box-shadow:0 5px 5px 0 rgba(66,133,244,.3);line-height:18px;-webkit-transition:all .4s;transition:all .4s;font-weight:500;text-decoration:none}.metform-btn:focus,.metform-btn:hover{background-color:#4285f4;text-decoration:none;outline:0}button.metform-btn,button.metform-btn:not(.toggle){background-color:#4285f4}button.metform-btn:focus,button.metform-btn:hover{background-color:#4285f4}@media (max-width:767px){.mf-btn--mobile-justify .metform-btn{width:100%}}@media (min-width:768px) and (max-width:1024px){.mf-btn--tablet-justify .metform-btn{width:100%}}@media (min-width:1025px){.mf-btn--justify .metform-btn{width:100%}}.metform-submit-btn{position:relative;z-index:0}.metform-submit-btn::after,.metform-submit-btn::before{content:" ";position:absolute;top:50%;left:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border-style:solid;border-color:currentColor;border-width:0;border-radius:50%;opacity:0;-webkit-transition:opacity .3s ease;transition:opacity .3s ease}.metform-submit-btn[disabled]::after,.metform-submit-btn[disabled]::before{opacity:1;-webkit-transition-delay:.15s;transition-delay:.15s}.metform-submit-btn::before{border-width:2px}.metform-submit-btn[disabled]::before{opacity:.25}.metform-submit-btn::after{border-top-width:2px;-webkit-animation:submitspin .55s linear infinite;animation:submitSpin .55s linear infinite}.metform-submit-btn>span{-webkit-transition:opacity .15s ease .15s;transition:opacity .15s ease .15s}.metform-submit-btn[disabled]>span{opacity:0;-webkit-transition-delay:0;transition-delay:0}@-webkit-keyframes submitSpin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes submitSpin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.mf-input-wrapper .iti{display:block}.mf-input-wrapper>.iti{display:inline-block;width:100%}.mf-input-wrapper .iti .mf-input{width:100%!important}.mf-input-wrapper .iti--separate-dial-code .iti__selected-flag{background-color:#f7f6f6}.mf-input-wrapper .iti .iti__flag-container{display:none}.mf-input-wrapper .iti>.iti__flag-container{display:block}.flatpickr-calendar{margin-top:8px}.flatpickr-month{margin-top:3px;margin-bottom:5px}.mf-input-wrapper>.flatpickr-wrapper{display:block}.flatpickr-wrapper select{display:inline-block}.elementor-widget-mf-date.elementor-element-edit-mode .flatpickr-calendar,.elementor-widget-mf-time.elementor-element-edit-mode .flatpickr-calendar{top:100%!important;left:0!important}.mf-ratings{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;cursor:pointer}.mf-ratings>input{display:none!important}.mf-ratings>label{cursor:pointer}.mf-ratings>label:not(:last-child){padding-right:5px}.mf-ratings.is-selected>label,.mf-ratings:not(.is-selected):hover>label{color:#ffdb72}.mf-ratings.is-selected:not(:hover)>input:checked+label~label,.mf-ratings.is-selected>label:hover~label,.mf-ratings:not(.is-selected),.mf-ratings:not(.is-selected)>label:hover~label{color:#ccc}.mf-input-file-upload{width:.1px;height:.1px;opacity:0;visibility:hidden;position:absolute}.mf-input-file-upload-label{color:#fff;margin-right:10px;padding:5px 15px;display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-webkit-box-shadow:none;box-shadow:none;font-size:16px;font-weight:400;line-height:28px}.mf-input-file-upload-label i{font-size:18px}.mf-input-file-upload-label svg{max-width:18px;height:auto;vertical-align:middle}.mf-file-name span{display:inline-block;font-size:15px}.mf-input-wrapper .error{display:block;font-size:14px}.mf-input-multiselect,.mf-input-select{padding:0;cursor:pointer}.mf-input.mf-input-multiselect{padding:0!important;-webkit-box-shadow:none!important;box-shadow:none!important;border:none!important}.mf-input-multiselect .mf_multiselect__control{border:1px solid #eaeaea;border-radius:0;background-color:#fafafa;cursor:pointer}.mf-input-multiselect .mf_multiselect__control:focus,.mf-input-multiselect .mf_multiselect__control:hover{border:1px solid #eaeaea;outline:0;-webkit-box-shadow:none;box-shadow:none}.mf_multiselect__indicator-separator{display:none}.mf_multiselect__option.mf_multiselect__option--is-focused,.mf_multiselect__option:hover{background-color:#f0f0f0}.mf_multiselect__option.mf_multiselect__option--is-focused{background-color:#fff}.mf_multiselect__option{border:1px solid #eaeaea;background-color:#fff;padding:10px 15px;font-size:15px}.mf-input-multiselect .mf_multiselect__menu{margin:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}.mf-input-multiselect .mf_multiselect__menu-list{padding:0}.mf-input-multiselect .mf_multiselect__placeholder{color:#c9c1c1}.mf_multiselect__menu-notice--no-options{border:1px solid #eaeaea;color:#c9c1c1}.mf_multiselect__control .mf_multiselect__value-container{padding:8px 12px}.mf_multiselect__control .mf_multiselect__value-container>div:last-child{height:25px}.mf-input-multiselect .mf_multiselect__multi-value{margin:0 5px 0 0}.mf_multiselect__multi-value__remove{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.mf_multiselect__multi-value__label{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.mf-input-multiselect .mf_multiselect__input>input{min-height:0}.mf-input.mf-input-summary{padding:0;background-color:#fff;border-width:0}.mf-entry-data{margin:0;padding:0;list-style:none;word-break:break-word}.mf-entry-data>li{border:1px solid rgba(0,0,0,.1)}.mf-entry-data>li:not(:last-child){border-bottom-width:0}.mf-entry-data>li>strong{display:block;padding:8px;background-color:#eaf2fa;border-bottom:1px solid rgba(0,0,0,.1)}.mf-entry-data>li>span{display:block;padding:8px 28px;min-height:42px}.elementor-widget-mf-range .mf-field-error .error{display:none!important}.g-recaptcha>div{position:relative;z-index:0}.g-recaptcha>div::after,.g-recaptcha>div::before,.g-recaptcha>div>div::after,.g-recaptcha>div>div::before{content:" ";position:absolute;border-style:solid;border-color:#d3d3d3;border-width:0;z-index:0}.g-recaptcha>div::before{top:0;left:0;bottom:2px;border-left-width:1px}.g-recaptcha>div::after{top:0;right:2px;bottom:2px;border-right-width:1px}.g-recaptcha>div>div::before{top:0;left:0;right:2px;border-top-width:1px}.g-recaptcha>div>div::after{left:0;right:2px;bottom:2px;border-bottom-width:1px}.g-recaptcha+.attr-alert{display:none}.g-recaptcha:empty+.attr-alert{display:block!important}.mf-captcha-input-wrapper.mf-captcha-block>i{padding-left:25px}img.mf-input.mf-captcha-image{max-width:200px;border:none;-webkit-box-sizing:unset;box-sizing:unset;background:0 0;padding:0;display:inline-block}.mf-captcha-block>img.mf-input.mf-captcha-image{margin:5px 0 5px 0}.mf-captcha-inline>img.mf-input.mf-captcha-image{margin:0 5px 0 0}.mf-captcha-input-wrapper.mf-captcha-inline{display:-ms-inline-flexbox!important;display:-webkit-inline-box!important;display:inline-flex!important;-ms-flex-align:center;-webkit-box-align:center;align-items:center;width:100%}.mf-captcha-input-wrapper.mf-captcha-inline>i{margin-left:25px!important;-ms-flex-order:1;-webkit-box-ordinal-group:2;order:1}.mf-refresh-captcha::before{content:"\f01e";font-family:"Font Awesome 5 Free";font-weight:700;font-style:normal;cursor:pointer}.mf-error-message{display:block}.mf-input-wrapper .input-range__slider{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border:4px solid #000;border-radius:100%;cursor:pointer;display:block;height:15px;margin-left:-7.5px;margin-top:-11px;outline:0;position:absolute;top:50%;-webkit-transition:-webkit-transform .3s ease-out,box-shadow .3s ease-out;-webkit-transition:-webkit-transform .3s ease-out,-webkit-box-shadow .3s ease-out;transition:-webkit-transform .3s ease-out,-webkit-box-shadow .3s ease-out;transition:transform .3s ease-out,box-shadow .3s ease-out;transition:transform .3s ease-out,box-shadow .3s ease-out,-webkit-transform .3s ease-out,-webkit-box-shadow .3s ease-out;-webkit-transition:-webkit-transform .3s ease-out,box-shadow .3s ease-out,-webkit-transform .3s ease-out;transition:transform .3s ease-out,box-shadow .3s ease-out,-webkit-transform .3s ease-out;width:15px}.mf-input-wrapper .input-range__slider:focus{-webkit-box-shadow:0 0 0 5px rgba(63,81,181,.2);box-shadow:0 0 0 5px rgba(63,81,181,.2)}.input-range--disabled .input-range__slider{background:#ccc;border:1px solid #ccc;-webkit-box-shadow:none;box-shadow:none;-webkit-transform:none;transform:none}.mf-input-wrapper .input-range__slider-container{-webkit-transition:left .3s ease-out;transition:left .3s ease-out}.mf-input-wrapper .input-range__label{color:#aaa;font-family:"Helvetica Neue",san-serif;font-size:.8rem;-webkit-transform:translateZ(0);transform:translateZ(0);white-space:nowrap}.mf-input-wrapper .input-range__label--max,.mf-input-wrapper .input-range__label--min{bottom:-1.4rem;position:absolute;display:none}.mf-input-wrapper .input-range__label--min{left:0}.mf-input-wrapper .input-range__label--max{right:0}.mf-input-wrapper .input-range__label--value{position:absolute;bottom:20px}.mf-input-wrapper .input-range__label-container{left:-50%;position:relative;background-color:#000;width:36px;height:20px;display:inline-block;color:#fff;font-size:12px;text-align:center;border-radius:3px}.mf-input-wrapper .input-range__label-container::before{position:absolute;bottom:-3px;left:50%;display:inline-block;width:6px;height:6px;margin-left:-3px;content:"";background-color:#000;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.mf-input-wrapper .input-range__label--max .input-range__label-container{left:50%}.mf-input-wrapper .input-range__track{background:#f1f4f9;border-radius:.3rem;cursor:pointer;display:block;height:8px;position:relative;-webkit-transition:left .3s ease-out,width .3s ease-out;transition:left .3s ease-out,width .3s ease-out}.mf-input-wrapper .input-range--disabled .input-range__track{background:#f1f4f9}.mf-input-wrapper .input-range__track--background{left:0;margin-top:-.15rem;position:absolute;right:0;top:50%}.mf-input-wrapper .input-range__track--active{background:#000}.mf-input-wrapper .input-range{height:1rem;position:relative;width:100%}.mf-condition--hidden,[mf-condition-hidden=true]{display:none;visibility:hidden}.mf-main-response-wrap[data-show="1"] .mf-response-msg{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-name:metform-responseOpen;animation-name:metform-responseOpen}.mf-main-response-wrap[data-show="0"] .mf-response-msg{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-name:metform-responseClose;animation-name:metform-responseClose}.mf-main-response-wrap .mf-response-msg{border-radius:10px;border:1px solid #c3c2c2}.mf-main-response-wrap:not(.mf_pro_activated) .mf-response-msg{background-color:#fff}.mf-close-this-form{-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-name:metform-zoom-out-zero;animation-name:metform-zoom-out-zero}.mf-close-this-form>h2{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-name:metform-zoom-in-full;animation-name:metform-zoom-in-full}
public/assets/js/admin-script.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready((function(e){"use strict";function t(){var t=e(".mf-mailchimp-list-id").val();e(".mailchimp_list option").each(((i,s)=>{e(s).attr("selected",!1),s.value===t&&e(s).attr("selected",!0)}))}function i(){e(".mf-btn-del-singl-field").click((function(){e(this).parent(".mf-cf-single-field").remove()}))}function s(e,t="",i=""){return'<div id="mf-cf-single-field" class="mf-cf-single-field"">\n <div class="mf-cf-single-field-input">\n <label>Name</label>\n <input type="text" name="mf_post_submission_custom_fields_name[]" class="attr-form-control" value="'+t+'">\n </div>\n <div class="mf-cf-single-field-input">\n <label>Select Field</label>\n <select data-selected="'+i+'" name="mf_post_submission_mf_field_name[]" class="attr-form-control">'+e+'</select>\n </div>\n <a href="#" class="mf-btn-del-singl-field">Delete</a>\n </div>'}e(".metfrom-btn-refresh-get-response-list").click((function(){var t=e(this);t.addClass("mf-setting-spin");var i,s=e("#metform_form_modal"),o=e("#metform-form-modalinput-settings").attr("data-nonce"),a=e(".get-response-campaign-list");i=s.find("form").attr("data-mf-id"),e.ajax({url:window.metform_api.resturl+"metform/v1/entries/store_get_response_list/"+i,type:"get",headers:{"X-WP-Nonce":o},dataType:"json",success:function(e){a.empty(),e.forEach((e=>{a.append('<option value="'+e.campaignId+'">'+e.description+"</option>")})),t.removeClass("mf-setting-spin")},error:function(e){t.removeClass("mf-setting-spin")}})})),e(".metfrom-btn-refresh-mailchimp-list").on("click",(function(){var i=e(this);i.addClass("mf-setting-spin");var s,o=e("#metform_form_modal"),a=e("#metform-form-modalinput-settings").attr("data-nonce"),n=e(".mailchimp_list");s=o.find("form").attr("data-mf-id"),e.ajax({url:window.metform_api.resturl+"metform/v1/entries/store_mailchimp_list/"+s,type:"get",headers:{"X-WP-Nonce":a},dataType:"json",success:function(s){try{n.empty(),s.lists.forEach((e=>{n.append("<option value="+e.id+">"+e.name+"</option>")})),1===s.lists.length?e(".mf-mailchimp-list-id").attr("value",s.lists[0].id):(t(),e(".mailchimp_list").on("change",(t=>{e(".mf-mailchimp-list-id").attr("value",t.target.value)})))}catch(o){}i.removeClass("mf-setting-spin")},error:function(e){i.removeClass("mf-setting-spin")}})})),e(".metfrom-btn-refresh-hubsopt-list").click((function(){var t=e(this);t.addClass("mf-setting-spin");var i,s=e("#metform_form_modal"),o=e("#metform-form-modalinput-settings").attr("data-nonce"),a=e(".hubspot_forms");i=s.find("form").attr("data-mf-id"),e.ajax({url:window.metform_api.resturl+"metform/v1/forms/hubspot_forms/"+i,type:"get",headers:{"X-WP-Nonce":o},dataType:"json",success:function(e){try{a.empty(),a.append('<option value="select">Select a form</option>'),e.forEach((e=>{a.append("<option value="+e.portalId+" guid="+e.guid+">"+e.name+"</option>")}))}catch(i){}t.removeClass("mf-setting-spin")},error:function(e){t.removeClass("mf-setting-spin")}})})),e(".hubspot_forms").on("change",(function(){var t=e("option:selected",this).attr("guid"),i=e("option:selected",this).val();e(".mf_hubspot_form_guid").val(t),e(".mf_hubspot_form_portalId").val(i);var s,o=e("#metform_form_modal"),a=e("#metform-form-modalinput-settings").attr("data-nonce");s=o.find("form").attr("data-mf-id"),e("#mf-hubsopt-fileds").html("Please wait....");var n="";e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+s,type:"get",headers:{"X-WP-Nonce":a},dataType:"json",success:function(i){n=i,e.ajax({url:window.metform_api.resturl+"metform/v1/forms/hubspot_form_fields/"+s,type:"post",headers:{"X-WP-Nonce":a},dataType:"json",data:{guid:t},success:function(t){var i="",s="";Object.keys(n).map((function(e){return[n[e]]})).map((e=>{s+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));t.forEach((e=>{i+="<tr><td>"+e.label+"</td><td><select name=mf_hubspot_form_field_name_"+e.name+' class="attr-form-control">'+s+"</select></td></tr>"})),e("#mf-hubsopt-fileds").html('<table width="100%">'+i+"</table>")},error:function(t){e("#mf-hubsopt-fileds").html("Sorry ! Something went wrong")}})},error:function(t){e("#mf-hubsopt-fileds").html("Sorry ! Something went wrong")}})})),e(".mf-mailchimp-list-id").attr("value",""),e(".row-actions .edit a, .page-title-action, .metform-form-edit-btn, body.post-type-metform-form a.row-title").on("click",(function(o){o.preventDefault();var a=0,n=e("#metform_form_modal"),r=e(this).parents(".column-title"),m=e("body").attr("data-metform-template-key");n.addClass("loading"),n.modal("show");if(r.length>0){a=e(this).attr("data-metform-form-id"),"undefined"!==m&&(a=m),a=a!==undefined?a:r.find(".hidden").attr("id").split("_")[1];var l=e("#metform-form-modalinput-settings").attr("data-nonce");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get/"+a,type:"get",headers:{"X-WP-Nonce":l},dataType:"json",success:function(t){t,g(t),n.removeClass("loading"),function(t,i,s){e(".mf-helpscout").length&&e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+t,type:"get",headers:{"X-WP-Nonce":i},dataType:"json",success:function(t){var i=t,o="";Object.keys(i).map((function(e){return[i[e]]})).map((e=>{o+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));var a='<div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Subject*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_subject" name="mf_helpscout_conversation_subject">'+o+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Customer Email*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_customer_email" name="mf_helpscout_conversation_customer_email">'+o+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Customer First Name*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_customer_first_name" name="mf_helpscout_conversation_customer_first_name">'+o+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Customer Last Name*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_customer_last_name" name="mf_helpscout_conversation_customer_last_name">'+o+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Message*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_customer_message" name="mf_helpscout_conversation_customer_message">'+o+"</select></div>")+"</div>";e("#mf-helpscout-fileds").html(a),s.mf_helpscout_conversation_subject&&(e('#mf_helpscout_conversation_subject option[value="'+s.mf_helpscout_conversation_subject+'"]').prop("selected",!0),e('#mf_helpscout_conversation_customer_email option[value="'+s.mf_helpscout_conversation_customer_email+'"]').prop("selected",!0),e('#mf_helpscout_conversation_customer_first_name option[value="'+s.mf_helpscout_conversation_customer_first_name+'"]').prop("selected",!0),e('#mf_helpscout_conversation_customer_last_name option[value="'+s.mf_helpscout_conversation_customer_last_name+'"]').prop("selected",!0),e('#mf_helpscout_conversation_customer_message option[value="'+s.mf_helpscout_conversation_customer_message+'"]').prop("selected",!0))},error:function(e){}})}(a,l,t)}})}else{g({form_title:e(".mf-form-modalinput-title").attr("data-default-value"),admin_email_body:"",admin_email_from:"",admin_email_reply_to:"",admin_email_subject:"",capture_user_browser_data:"",enable_admin_notification:"",limit_total_entries_status:"",limit_total_entries:"0",redirect_to:"",success_url:"",failed_cancel_url:"",require_login:"",store_entries:"1",entry_title:"",success_message:e(".mf-form-modalinput-success_message").attr("data-default-value"),user_email_body:"",user_email_from:"",user_email_reply_to:"",user_email_subject:"",input_names:"Example: [mf-inputname]"}),n.removeClass("loading")}function c(e,t=""){let i="";return Array.isArray(e)&&e.map((e=>{const s=t===e[0].mf_input_name?" selected":"";i+="<option value="+e[0].mf_input_name+s+">"+e[0].mf_input_label+"</option>"})),i}e(".mf-register").length&&e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+a,type:"get",headers:{"X-WP-Nonce":l},dataType:"json",success:function(t){var i=t,s="";e.ajax({url:window.metform_api.resturl+"xs/register/settings/"+a,type:"get",headers:{"X-WP-Nonce":l},dataType:"json",success:function(t){Object.keys(i).map((function(e){return[i[e]]})).map((e=>{s+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));var o='<div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">User Name</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_reg_user_name" name="mf_auth_reg_user_name">'+s+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">User Email</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_reg_user_email" name="mf_auth_reg_user_email">'+s+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline"><label class="attr-input-label">Role</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_reg_role" name="mf_auth_reg_role"><option value="administrator">Administrator</option><option value="editor">Editor</option><option value="author">Author</option><option value="contributor">Contributor</option><option selected="selected" value="subscriber">Subscriber</option></select></div></div>';e(".mf_register_form_fields").html(o),0!=t&&(e('#mf_auth_reg_user_name option[value="'+t.mf_auth_reg_user_name+'"]').prop("selected",!0),e('#mf_auth_reg_user_email option[value="'+t.mf_auth_reg_user_email+'"]').prop("selected",!0),e('#mf_auth_reg_role option[value="'+t.mf_auth_reg_role+'"]').prop("selected",!0))},error:function(e){}})},error:function(e){}}),e(".mf-login").length&&e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+a,type:"get",headers:{"X-WP-Nonce":l},dataType:"json",success:function(t){var i=t,s="";e.ajax({url:window.metform_api.resturl+"xs/login/settings/"+a,type:"get",headers:{"X-WP-Nonce":l},dataType:"json",success:function(t){Object.keys(i).map((function(e){return[i[e]]})).map((e=>{s+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));var o='<div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">User Name</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_login_user_name" name="mf_auth_login_user_name">'+s+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">User Password</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_login_user_password" name="mf_auth_login_user_password">'+s+"</select></div>")+"</div>";e(".mf_login_form_fields").html(o),0!=t&&(e('#mf_auth_login_user_name option[value="'+t.mf_auth_login_user_name+'"]').prop("selected",!0),e('#mf_auth_login_user_password option[value="'+t.mf_auth_login_user_password+'"]').prop("selected",!0))},error:function(e){}})},error:function(e){}}),e(".mf-form-to-post").length&&e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+a,type:"get",headers:{"X-WP-Nonce":l},dataType:"json",success:function(t){var o=t,n="";e.ajax({url:window.metform_api.resturl+"xs/post/settings/"+a,type:"get",headers:{"X-WP-Nonce":l},dataType:"json",success:function(t){var a=Object.keys(o).map((function(e){return[o[e]]}));a.map((e=>{n+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));var r='<label class="attr-input-label">Title</label><div class="mf-inputs"><select class="attr-form-control mf_post_submission_title" id="mf_post_submission_title" name="mf_post_submission_title">'+n+"</select></div>",m='<label class="attr-input-label">Content</label><div class="mf-inputs"><select class="attr-form-control mf_post_submission_content" id="mf_post_submission_content" name="mf_post_submission_content">'+n+"</select></div>",l='<label class="attr-input-label">Featured Image</label><div class="mf-inputs"><select class="attr-form-control mf_post_submission_featured_image" id="mf_post_submission_featured_image" name="mf_post_submission_featured_image">'+n+"</select></div>",f=s(n);if(0!=t.custom_fields_settings){f="";var d=Object.entries(t.custom_fields_settings);for(const[e,t]of d)f+=s(c(a,t),e,t)}var p='<div class="mf-input-group mf-input-group-inline">'+r+'</div><div class="mf-input-group mf-input-group-inline">'+m+'</div></div><div class="mf-input-group mf-input-group-inline">'+l+'</div><div class="mf-input-group mf-input-group-inline">'+function(e,t){return'<label class="attr-input-label">Custom Fields</label>\n <div class="mf-inputs mf-cf-fields">\n <div style="display:none">\n <div id="mf-cf-single-field" class="mf-cf-single-field"">\n <div class="mf-cf-single-field-input">\n <label>Name</label>\n <input type="text" name="mf_post_submission_custom_fields_name[]" class="attr-form-control" >\n </div>\n <div class="mf-cf-single-field-input">\n <label>Select Field</label>\n <select name="mf_post_submission_mf_field_name[]" class="attr-form-control">'+t+'</select>\n </div>\n <a href="#" class="mf-btn-del-singl-field">Delete</a>\n </div>\n </div>\n <div class="repeaterResult">'+e+'</div>\n <button class="mf-add-cf" type="button"><span>+</span></button>\n </div>'}(f,n)+"</div>";e(".mf-post-submission-fields-section").html(p);var _=0;e(".mf-add-cf").click((function(){var t=e("#mf-cf-single-field").clone();_++,t.attr("id","mf-repeater-field-"+_),e(".mf-btn-del-singl-field",t).attr("data-id",_),t.appendTo(e(".repeaterResult")),i()})),i(),0!=t.fields_settings&&(e('.mf_post_submission_post_type option[value="'+t.fields_settings.mf_post_submission_post_type+'"]').prop("selected",!0),e('.mf_post_submission_title option[value="'+t.fields_settings.mf_post_submission_title+'"]').prop("selected",!0),e('.mf_post_submission_content option[value="'+t.fields_settings.mf_post_submission_content+'"]').prop("selected",!0),e('.mf_post_submission_featured_image option[value="'+t.fields_settings.mf_post_submission_featured_image+'"]').prop("selected",!0),e('.mf_post_submission_author option[value="'+t.fields_settings.mf_post_submission_author+'"]').prop("selected",!0))},error:function(e){}})},error:function(e){}}),function(t){var i=e("#metform-form-modalinput-settings").attr("data-nonce"),s=e(".get-response-campaign-list");e.ajax({url:window.metform_api.resturl+"metform/v1/entries/get_response_list/"+t,type:"get",headers:{"X-WP-Nonce":i},dataType:"json",success:function(e){s.empty(),e.length&&e.forEach((e=>{s.append("<option value="+e.campaignId+">"+e.description+"</option>")}))},error:function(e){}})}(a),function(t){var i=e(".metfrom-btn-refresh-hubsopt-list");i.addClass("mf-setting-spin");var s=e("#metform-form-modalinput-settings").attr("data-nonce"),o=e(".hubspot_forms"),a=t;e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_hubspot_forms/"+a,type:"get",headers:{"X-WP-Nonce":s},dataType:"json",success:function(e){try{o.empty(),o.append('<option value="select">Select a form</option>'),e.forEach((e=>{o.append("<option value="+e.portalId+" guid="+e.guid+">"+e.name+"</option>")}))}catch(t){}i.removeClass("mf-setting-spin")},error:function(e){i.removeClass("mf-setting-spin")}})}(a),function(i){e("#metform_form_modal");var s,o=e("#metform-form-modalinput-settings").attr("data-nonce"),a=e(".mailchimp_list");s=i,e.ajax({url:window.metform_api.resturl+"metform/v1/entries/get_mailchimp_list/"+s,type:"get",headers:{"X-WP-Nonce":o},dataType:"json",success:function(i){try{a.empty(),i.lists.forEach((e=>{a.append("<option value="+e.id+">"+e.name+"</option>")})),1===i.lists.length?e(".mf-mailchimp-list-id").attr("value",i.lists[0].id):(t(),e(".mailchimp_list").on("change",(t=>{e(".mf-mailchimp-list-id").attr("value",t.target.value)})))}catch(s){}},error:function(e){}})}(a),n.find("form").attr("data-mf-id",a),n.find(".get-response-campaign-list").attr("get-response-list-id",a)})),e(".metform-form-save-btn-editor").on("click",(function(){e(".metform-form-save-btn-editor").attr("disabled",!0);var t=e("#metform-form-modalinput-settings");t.attr("data-open-editor","1"),t.trigger("submit")})),e("#metform-form-modalinput-settings").on("submit",(function(t){t.preventDefault();var i=e("#metform-form-modal"),s=e(this);i.addClass("loading"),e(".metform-form-save-btn-editor").attr("disabled",!0),e(".metform-form-save-btn").attr("disabled",!0);var o=e(this).serialize(),a=e(this).attr("data-mf-id"),n=e(this).attr("data-open-editor"),r=e(this).attr("data-editor-url"),m=e(this).attr("data-nonce");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/update/"+a,type:"post",data:o,headers:{"X-WP-Nonce":m},dataType:"json",success:function(t){e("#message").css("display","block"),1==t.saved?(e("#post-"+t.data.id).find(".row-title").html(t.data.title),e("#message").removeClass("attr-alert-warning").addClass("attr-alert-success").html(t.status)):e("#message").removeClass("attr-alert-success").addClass("attr-alert-warning").html(t.status),setTimeout((function(){e("#message").css("display","none"),s.find(".attr-close").trigger("click")}),1e3),i.removeClass("loading"),"1"==n&&1==t.saved?setTimeout((function(){window.location.href=r+"?post="+t.data.id+"&action=elementor"}),1e3):"0"!=a?(e(".metform-form-save-btn-editor").removeAttr("disabled"),e(".metform-form-save-btn").removeAttr("disabled")):"0"==a&&setTimeout((function(){location.reload()}),1e3)}})}));var o=e(".mf-entry-title"),a=e(".mf-form-user-confirmation"),n=e(".mf-form-admin-notification"),r=e(".mf-input-rest-api-group"),m=e(".mf-mailchimp"),l=e(".mf-get_response"),c=e(".mf-zapier"),f=e(".mf-slack"),d=e(".mf-paypal"),p=e(".mf-stripe"),_=e(".mf-ckit"),u=e(".mf-aweber"),h=e(".mf-mail-poet");function v(t,i=null){var s=e("#metform-form-modalinput-settings").attr("data-nonce");e('.mf-mailster-list-id option[value="'+t+'"]').prop("selected",!0),e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+i,type:"get",headers:{"X-WP-Nonce":s},dataType:"json",success:function(s){var o=s,a="";Object.keys(o).map((function(e){return[o[e]]})).map((e=>{a+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"})),function(t,i,s){var o=e("#metform-form-modalinput-settings").attr("data-nonce");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_mailster_form/"+t,type:"get",headers:{"X-WP-Nonce":o},dataType:"json",success:function(t){var o="";for(const[e,s]of Object.entries(t))if("fields"==e)for(const[e,t]of Object.entries(s))o+='<div class="mf-input-group mf-input-group-inline"><label class="attr-input-label">'+t.name+'</label><div class="mf-inputs"><select class="attr-form-control" id="mailster_field_'+e+'" name="mailster_field_'+e+'">'+i+"</select></div></div>";e(".mf-mailster-settings-section").html(o),function(t,i){var s=window.mf_mailster_list_id;if(e(".mf-mailster-list-id").val()==s){var o=e("#metform-form-modalinput-settings").attr("data-nonce");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_mailster_form_data/"+i,type:"get",headers:{"X-WP-Nonce":o},dataType:"json",success:function(t){for(const[i,s]of Object.entries(t))for(const[t,i]of Object.entries(s))e("#"+t+' option[value="'+i+'"]').prop("selected",!0)},error:function(e){}})}}(0,s)},error:function(e){}})}(t,a,i)},error:function(e){}})}function g(i){if(o.hide(),a.hide(),n.hide(),r.hide(),m.hide(),c.hide(),f.hide(),d.hide(),p.hide(),_.hide(),u.hide(),h.hide(),""!=i.form_title){e(".mf-form-modalinput-title").val(i.form_title),e(".mf-form-modalinput-success_message").val(i.success_message),e(".mf-entry-title-input").val("undefined"!=typeof i.entry_title&&""!=i.entry_title?i.entry_title:"undefined"==typeof i.entry_title||""==i.entry_title?"Entry # [mf_id]":""),e(".mf-form-modalinput-redirect_to").val(i.redirect_to),e(".mf-form-modalinput-success_url").val(i.success_url),e(".mf-form-modalinput-failed_cancel_url").val(i.failed_cancel_url),e(".mf-form-modalinput-limit_total_entries").val(i.limit_total_entries);var s=e(".mf-form-modalinput-store_entries");"1"==i.store_entries?(s.attr("checked",!0),o.show()):(s.removeAttr("checked"),o.hide());var l=e(".mf-form-modalinput-hide_form_after_submission");"1"==i.hide_form_after_submission?l.attr("checked",!0):l.removeAttr("checked");var g=e(".mf-form-modalinput-require_login");"1"==i.require_login?g.attr("checked",!0):g.removeAttr("checked");var b=e(".mf-form-modalinput-limit_status");"1"==i.limit_total_entries_status?b.attr("checked",!0):b.removeAttr("checked");var k=e(".mf-form-modalinput-count_views");"1"==i.count_views?k.attr("checked",!0):k.removeAttr("checked");var w=e(".mf-form-modalinput-stop_vertical_scrolling");"1"==i.mf_stop_vertical_scrolling?w.attr("checked",!0):w.removeAttr("checked");var y=e(".mf-form-modalinput-multiple_submission");"1"==i.multiple_submission?y.attr("checked",!0):y.removeAttr("checked");var j=e(".mf-form-modalinput-enable_recaptcha");"1"==i.enable_recaptcha?j.attr("checked",!0):j.removeAttr("checked");var x=e(".mf-form-modalinput-capture_user_browser_data");"1"==i.capture_user_browser_data?(x.attr("checked",!0),e("#multiple_submission").removeClass("hide_input"),e("#multiple_submission").addClass("show_input")):x.removeAttr("checked"),e(".mf-form-user-email-subject").val(i.user_email_subject),e(".mf-form-user-email-from").val(i.user_email_from),e(".mf-form-user-reply-to").val(i.user_email_reply_to),e(".mf-form-user-email-body").val(i.user_email_body);var A=e(".mf-form-user-enable");"1"==i.enable_user_notification?(A.attr("checked",!0),a.show()):(A.removeAttr("checked"),a.hide());var C=e(".mf-form-user-submission-copy");"1"==i.user_email_attach_submission_copy?C.attr("checked",!0):C.removeAttr("checked"),e(".mf-form-admin-email-subject").val(i.admin_email_subject),e(".mf-form-admin-email-from").val(i.admin_email_from),e(".mf-form-admin-email-to").val(i.admin_email_to),e(".mf-form-admin-reply-to").val(i.admin_email_reply_to),e(".mf-form-admin-email-body").val(i.admin_email_body);var T=e(".mf-form-admin-enable");"1"==i.enable_admin_notification?(T.attr("checked",!0),n.show()):(T.removeAttr("checked"),n.hide());var P=e(".mf-form-admin-submission-copy");"1"==i.admin_email_attach_submission_copy?P.attr("checked",!0):P.removeAttr("checked");var N=e(".mf-form-modalinput-rest_api");"1"==i.mf_rest_api?(N.attr("checked",!0),e(".mf-rest-api").show()):(N.removeAttr("checked"),e(".mf-rest-api").hide());var W=e(".mf-form-modalinput-mail_chimp");"1"==i.mf_mail_chimp?(W.attr("checked",!0),m.show()):(W.removeAttr("checked"),m.hide());let r=e(".mf-form-modalinput-ckit"),v=e(".mf-form-modalinput-mail_aweber"),Y=e(".mf-form-modalinput-mail_poet");if("1"==i.mf_convert_kit?(r.attr("checked",!0),_.show()):(r.removeAttr("checked"),_.hide()),"1"==i.mf_mail_aweber?(v.attr("checked",!0),u.show()):(v.removeAttr("checked"),u.hide()),"1"==i.mf_mail_poet?(Y.attr("checked",!0),h.show()):(Y.removeAttr("checked"),h.hide()),i.ckit_opt){let t=e("select.mf-ckit-list-id").first(),s=i.mf_ckit_list_id||"";t.html(),i.ckit_opt.forEach((function(e){t.append('<option value="'+e.id+'">'+e.name+"</option>")})),t.val(s)}if(i.aweber_opt){let t=e("select.mf-aweber-list-id").first(),s=i.mf_aweber_list_id||"";t.html();for(let e in i.aweber_opt)t.append('<option value="'+i.aweber_opt[e].id+'">'+i.aweber_opt[e].name+"</option>");t.val(s)}if(i.mp_opt){let t=e("select.mf-mail-poet-list-id").first(),s=i.mf_mail_poet_list_id||"";t.html();for(let e in i.mp_opt)t.append('<option value="'+i.mp_opt[e].id+'">'+i.mp_opt[e].name+"</option>");t.val(s)}var z=e(".mf-form-modalinput-active_campaign");"1"==i.mf_active_campaign?z.attr("checked",!0):z.removeAttr("checked");var X=e(".mf-form-modalinput-get_response");"1"==i.mf_get_response?(X.attr("checked",!0),e(".mf-get_response").show()):(X.removeAttr("checked"),e(".mf-get_response").hide());var S=e(".mf-hubsopt");"1"==i.mf_hubspot?S.attr("checked",!0):S.removeAttr("checked");var O=e(".mf-hubspot-forms"),E=e(".hubspot_forms_section");"1"==i.mf_hubspot_forms?(O.attr("checked",!0),E.show()):(O.removeAttr("checked"),E.hide()),e(".mf_hubspot_form_portalId").val(i.mf_hubspot_form_portalId),e(".mf_hubspot_form_guid").val(i.mf_hubspot_form_guid);var D=e(".mf-zoho");"1"==i.mf_zoho?D.attr("checked",!0):D.removeAttr("checked");var I=e(".mf-helpscout");"1"==i.mf_helpscout?(I.attr("checked",!0),e(".helpscout_forms_section").show()):(I.removeAttr("chekced"),e(".helpscout_forms_section").hide()),i.mf_helpscout_mailbox&&e('#mf_helpscout_mailbox option[value="'+i.mf_helpscout_mailbox+'"]').prop("selected",!0);var U=e(".mf-form-modalinput-mailster"),q=e(".mf-mailster-settings-section");"1"==i.mf_mailster?(U.attr("checked",!0),q.show(),e(".mf-mailster-forms").show()):(U.removeAttr("checked"),q.hide(),e(".mf-mailster-forms").hide());var F=e(".mf-register");1==i.mf_registration?(F.attr("checked",!0),e(".mf_register_form_fields").show()):(F.removeAttr("checked"),e(".mf_register_form_fields").hide());var R=e(".mf-login");1==i.mf_login?(R.attr("checked",!0),e(".mf_login_form_fields").show()):(e(".mf_login_form_fields").hide(),R.removeAttr("checked"));var L=e(".mf-form-to-post"),Q=e(".mf-form-to-post-fields");1==i.mf_form_to_post?(L.attr("checked",!0),Q.show()):(L.removeAttr("checked"),Q.hide());var G=e(".mf-form-modalinput-zapier");"1"==i.mf_zapier?(G.attr("checked",!0),c.show()):(G.removeAttr("checked",!0),c.hide());var K=e(".mf-form-modalinput-slack");"1"==i.mf_slack?(K.attr("checked",!0),f.show()):(K.removeAttr("checked",!0),f.hide());var M=e(".mf-form-modalinput-paypal");"1"==i.mf_paypal?(M.attr("checked",!0),d.show()):(M.removeAttr("checked",!0),d.hide());var B=e(".mf-form-modalinput-stripe");"1"==i.mf_stripe?(B.attr("checked",!0),p.show()):(B.removeAttr("checked",!0),p.hide());B=e(".mf-form-modalinput-stripe");"1"==i.mf_stripe?(B.attr("checked",!0),p.show()):(B.removeAttr("checked",!0),p.hide());var H=e(".mf-form-modalinput-paypal_sandbox");"1"==i.mf_paypal_sandbox?H.attr("checked",!0):H.removeAttr("checked",!0);var J=e(".mf-form-modalinput-stripe_sandbox");"1"==i.mf_stripe_sandbox?J.attr("checked",!0):J.removeAttr("checked",!0);var V=i.mf_rest_api_method&&i.mf_rest_api_method.length?i.mf_rest_api_method:"POST";e('.mf-rest-api-method option[value="'+V+'"]').prop("selected",!0),e(".mf-rest-api-url").val(i.mf_rest_api_url),e(".mf-mailchimp-api-key").val(i.mf_mailchimp_api_key),e(".mf-mailchimp-list-id").val(i.mf_mailchimp_list_id),""==i.mf_mailchimp_list_id&&e(".mf-mailchimp-list-id").val(e(".mailchimp_list").find(":selected").val()),0!=i.mf_mailchimp_list_id&&e('.mailchimp_list option[value="'+i.mf_get_response_list_id+'"]').prop("selected",!0),t(),e(".mf-get_response-list-id").val(i.mf_get_response_list_id),0!=i.mf_get_response_list_id&&e('.get-response-campaign-list option[value="'+i.mf_get_response_list_id+'"]').prop("selected",!0),e(".mf-zapier-web-hook").val(i.mf_zapier_webhook),e(".mf-slack-web-hook").val(i.mf_slack_webhook),e(".mf-paypal-email").val(i.mf_paypal_email),e(".mf-paypal-token").val(i.mf_paypal_token),e(".mf-stripe-image-url").val(i.mf_stripe_image_url),e(".mf-stripe-live-publishiable-key").val(i.mf_stripe_live_publishiable_key),e(".mf-stripe-live-secret-key").val(i.mf_stripe_live_secret_key),e(".mf-stripe-test-publishiable-key").val(i.mf_stripe_test_publishiable_key),e(".mf-stripe-test-secret-key").val(i.mf_stripe_test_secret_key),e(".mf-recaptcha-site-key").val(i.mf_recaptcha_site_key),e(".mf-recaptcha-secret-key").val(i.mf_recaptcha_secret_key),e("input.mf-form-modalinput-limit_status, .mf-form-modalinput-rest_api").trigger("change")}(window.mf_mailster_list_id=i.mf_mailster_list_id,e('.mf-mailster-list-id option[value="'+i.mf_mailster_list_id+'"]').prop("selected",!0),e(".mf-form-modalinput-mailster").length)&&v(e(".mf-mailster-list-id").find(":selected").val(),e("#metform_form_modal").find("form").attr("data-mf-id"))}e("input.mf-form-modalinput-store_entries").on("change",(function(){e(this).is(":checked")?o.show():e(this).is(":not(:checked)")&&o.hide()})),e("input.mf-form-modalinput-limit_status").on("change",(function(){e(this).is(":checked")?e("#limit_status").find("input").removeAttr("disabled"):e(this).is(":not(:checked)")&&e("#limit_status").find("input").attr("disabled","disabled")})),e("input.mf-form-user-enable").on("change",(function(){e(this).is(":checked")?a.show():e(this).is(":not(:checked)")&&a.hide()})),e("input.mf-form-admin-enable").on("change",(function(){e(this).is(":checked")?n.show():e(this).is(":not(:checked)")&&n.hide()})),e("input.mf-form-modalinput-rest_api").on("change",(function(){e(this).is(":checked")?r.show():e(this).is(":not(:checked)")&&r.hide()})),e("input.mf-form-modalinput-mail_chimp").on("change",(function(){e(this).is(":checked")?m.show():e(this).is(":not(:checked)")&&m.hide()})),e(".mf-form-modalinput-get_response").on("change",(function(){e(this).is(":checked")?l.show():l.hide()})),e("input.mf-form-modalinput-mail_aweber").on("change",(function(){e(this).is(":checked")?u.show():e(this).is(":not(:checked)")&&u.hide()})),e("input.mf-form-modalinput-mail_poet").on("change",(function(){e(this).is(":checked")?h.show():e(this).is(":not(:checked)")&&h.hide()})),e("input.mf-form-modalinput-ckit").on("change",(function(){e(this).is(":checked")?_.show():e(this).is(":not(:checked)")&&_.hide()})),e("input.mf-form-modalinput-zapier").on("change",(function(){e(this).is(":checked")?c.show():e(this).is(":not(:checked)")&&c.hide()})),e("input.mf-form-modalinput-slack").on("change",(function(){e(this).is(":checked")?f.show():e(this).is(":not(:checked)")&&f.hide()})),e("input.mf-form-modalinput-paypal").on("change",(function(){e(this).is(":checked")?d.show():e(this).is(":not(:checked)")&&d.hide()})),e("input.mf-form-modalinput-stripe").on("change",(function(){e(this).is(":checked")?stripe.show():e(this).is(":not(:checked)")&&stripe.hide()})),e("input.mf-form-modalinput-stripe_sandbox").on("change",(function(){e(this).is(":checked")?e(".mf_stripe_sandbox").show():e(this).is(":not(:checked)")&&e(".mf_stripe_sandbox").hide()})),e(".mf-hubspot-forms").on("change",(function(){e(this).is(":checked")?e(".hubspot_forms_section").show():e(".hubspot_forms_section").hide()})),e(".mf-register").on("change",(function(){e(this).is(":checked")?e(".mf_register_form_fields").show():e(".mf_register_form_fields").hide()})),e(".mf-login").on("change",(function(){e(this).is(":checked")?e(".mf_login_form_fields").show():e(".mf_login_form_fields").hide()})),e(".mf-form-to-post").on("change",(function(){e(this).is(":checked")?e(".mf-form-to-post-fields").show():e(".mf-form-to-post-fields").hide()})),e(".mf-helpscout").on("change",(function(){e(this).is(":checked")?e(".helpscout_forms_section").show():e(".helpscout_forms_section").hide()})),e(".mf-form-modalinput-mailster").on("change",(function(){e(this).is(":checked")?(e(".mf-mailster-settings-section").show(),e(".mf-mailster-forms").show()):(e(".mf-mailster-settings-section").hide(),e(".mf-mailster-forms").hide())})),e(".mf-mailster-list-id").on("change",(function(){e(this).val(),e("#metform-form-modalinput-settings").attr("data-mf-id")})),e(".get-response-campaign-list").on("change",(function(){e(".mf-get_response-list-id ").val(e(this).val())})),e("input.mf-form-modalinput-capture_user_browser_data").click((function(){e(this).is(":checked")?(e("#multiple_submission").removeClass("hide_input"),e("#multiple_submission").addClass("show_input")):e(this).is(":not(:checked)")&&(e("#multiple_submission").removeClass("show_input"),e("#multiple_submission").addClass("hide_input"))})),e(".mf-settings-tab .mf-setting-nav-link").on("click",(function(t){if(!e(this).hasClass("mf-setting-nav-hidden")){t.preventDefault();var i=e(this).attr("href");window.location.hash=i,e(this).parent().addClass("nav-tab-active").siblings().removeClass("nav-tab-active"),e(i).addClass("active").siblings().removeClass("active")}})),e(".mf-setting-nav-link").on("click",(function(t){e(this).hasClass("mf-setting-nav-hidden")?t.preventDefault():(e(this).parents(".nav-tab-wrapper").find("a").removeClass("top").removeClass("bottom"),e(this).parents("li").prev().find("a").addClass("top"),e(this).parents("li").next().find("a").addClass("bottom"))}));var b=e(".mf-settings-tab .mf-setting-nav-link").eq(1).attr("href");if(window.location.hash&&(b=window.location.hash),e('.mf-settings-tab .mf-setting-nav-link[href="'+b+'"]').trigger("click"),e(window).on("resize.mfSettings",(function(){e(".mf-setting-sidebar").css("width",e(".mf-setting-sidebar-column").width())})).trigger("resize.mfSettings"),e(".mf-setting-header").length>0){var k=e(".mf-setting-header").offset().top;e(window).scroll((function(){var t=e(".mf-setting-header");e(window).scrollTop()>=k?t.addClass("fixed").css({width:jQuery(".metform-admin-container").width()}):t.removeClass("fixed").css({width:"auto"})}))}e(".mf-admin-single-accordion").on("click",".mf-admin-single-accordion--heading",(function(){e(this).next().slideToggle().parent().toggleClass("active").siblings().removeClass("active").find(".mf-admin-single-accordion--body").slideUp()})),e(".mf-admin-single-accordion:first-child .mf-admin-single-accordion--heading").trigger("click"),e(".mf-recaptcha-version").on("change",(function(){var t=e(this).val();e("#mf-"+t).fadeIn().siblings().hide()})),e(".mf-recaptcha-version").trigger("change"),e(".mf-form-modalinput-stripe_sandbox").on("change",(function(){var t=e(this).parents(".attr-form-group").eq(0).next(".mf-form-modalinput-stripe_sandbox_keys");e(this).is(":checked")?t.fadeIn():t.fadeOut()})),e(".mf-form-modalinput-stripe_sandbox").trigger("change"),e(document).on("click","#met_pro_aweber_authorize",(function(t){t.preventDefault();let i=e(this).closest("p.description");i.html("<span>Wait....</span>");var s=metform_api.admin_url+"admin-ajax.php",o={action:"get_aweber_authorization_url",api_key:e("#mf_aweber_dev_api_key").val(),api_sec:e("#mf_aweber_dev_api_sec").val()};e.ajax({url:s,method:"POST",data:o,dataType:"json",success:function(e){if(!0===e.success){let t='<a class=" button mf-setting-btn-link" href="'+e.data.url+'">Authorize The App </a>';i.html(t)}else if(e.data){let t=e.data;i.html('<span style="background-color: red; padding: 1px 5px;">'+t.msg+"</span>")}},error:function(e){i.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(document).on("click","#met_pro_aweber_propmpt_re_auth",(function(t){t.preventDefault(),e("#mf_aweber_dev_api_key").val("").prop("disabled",!1),e("#mf_aweber_dev_api_sec").val("").prop("disabled",!1),e(this).closest("p.description").html('<a class="button mf-setting-btn-link" id="met_pro_aweber_re_authorize"> Get Re - Authorization URL </a>')})),e(document).on("click","#met_pro_aweber_re_authorize",(function(t){t.preventDefault();let i=e(this).closest("p.description");i.html("<span>Wait....</span>");let s=e("#mf_aweber_dev_api_key").val();if(!s||s.length<1)return i.html('<span style="color: red">API Key can not be empty..</span>'),!1;var o=metform_api.admin_url+"admin-ajax.php",a={action:"get_aweber_re_authorization_url",api_key:s,api_sec:e("#mf_aweber_dev_api_sec").val()};e.ajax({url:o,method:"POST",data:a,dataType:"json",success:function(e){if(!0===e.success){let t=e.data;if("ok"==t.result){let e='<a class="mf-setting-btn-link" href="'+t.url+'">Authorize The App </a>';i.html(e)}else i.html("<span>"+t.msg+"</span>")}else if(e.data){let t=e.data;i.html('<span style="background-color: red; padding: 1px 5px;">'+t.msg+"</span>")}},error:function(e){i.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(document).on("click","#met_form_aweber_get_list",(function(t){t.preventDefault();let i=e(this),s=e("#mf_aweber_info"),o=metform_api.admin_url+"admin-ajax.php";e.ajax({url:o,method:"POST",data:{action:"get_list_lists"},dataType:"json",success:function(e){if(!0===e.success){let t=e.data,o=i.closest("div.mf-aweber").find("select");if(o.html(""),t.lists)for(let e in t.lists)o.append('<option value="'+t.lists[e].id+'">'+t.lists[e].name+"</option>");s.html("")}else if(e.data){let t=e.data;s.html('<span style="background-color: red; padding: 1px 5px;">'+t.msg+"</span>")}},error:function(e){s.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(document).on("click","#met_form_mail_poet_get_list",(function(t){t.preventDefault();let i=e(this),s=e("#mf_mail_poet_info"),o=metform_api.admin_url+"admin-ajax.php";e.ajax({url:o,method:"POST",data:{action:"mail_poet_get_email_list_lists"},dataType:"json",success:function(e){if(!0===e.success){let t=e.data,o=i.closest("div.mf-mail-poet").find("select");if(o.html(""),t.lists)for(let e in t.lists)o.append('<option value="'+t.lists[e].id+'">'+t.lists[e].name+"</option>");s.html("")}else if(e.data){let t=e.data;s.html('<span style="background-color: red; padding: 1px 5px;">'+t.msg+"</span>")}},error:function(e){s.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(document).on("click","#met_form_ckit_get_list",(function(t){t.preventDefault();var i=metform_api.admin_url+"admin-ajax.php";let s=e(this);e.ajax({url:i,method:"POST",data:{action:"get_form_lists"},dataType:"json",success:function(e){if(!0===e.success){let t=e.data,i=s.closest("div.mf-ckit").find("select");i.html(""),t.forms&&t.forms.forEach((function(e){i.append('<option value="'+e.id+'">'+e.name+"</option>")}))}else alert("Error occurred when trying to check for aweber authorization.")},error:function(e){},complete:function(){}})})),e("#mf-helpscout-btn-token").click((function(){let t=window.metform_api.resturl+"metform/v1/forms/get_helpscout_access_token/123";e.ajax({url:t,type:"get",success:function(e){200==e.status&&location.reload()},error:function(e){alert("Something went wrong")}})}))}));
1
+ jQuery(document).ready((function(e){"use strict";function t(){var t=e(".mf-mailchimp-list-id").val();e(".mailchimp_list option").each(((i,s)=>{e(s).attr("selected",!1),s.value===t&&e(s).attr("selected",!0)}))}function i(){e(".mf-btn-del-singl-field").click((function(){e(this).parent(".mf-cf-single-field").remove()}))}function s(e,t="",i=""){return'<div id="mf-cf-single-field" class="mf-cf-single-field"">\n <div class="mf-cf-single-field-input">\n <label>Name</label>\n <input type="text" name="mf_post_submission_custom_fields_name[]" class="attr-form-control" value="'+t+'">\n </div>\n <div class="mf-cf-single-field-input">\n <label>Select Field</label>\n <select data-selected="'+i+'" name="mf_post_submission_mf_field_name[]" class="attr-form-control">'+e+'</select>\n </div>\n <a href="#" class="mf-btn-del-singl-field">Delete</a>\n </div>'}e(".metfrom-btn-refresh-get-response-list").click((function(){var t=e(this);t.addClass("mf-setting-spin");var i,s=e("#metform_form_modal"),o=e("#metform-form-modalinput-settings").attr("data-nonce"),a=e(".get-response-campaign-list");i=s.find("form").attr("data-mf-id"),e.ajax({url:window.metform_api.resturl+"metform/v1/entries/store_get_response_list/"+i,type:"get",headers:{"X-WP-Nonce":o},dataType:"json",success:function(e){a.empty(),e.forEach((e=>{a.append('<option value="'+e.campaignId+'">'+e.description+"</option>")})),t.removeClass("mf-setting-spin")},error:function(e){t.removeClass("mf-setting-spin")}})})),e(".metfrom-btn-refresh-mailchimp-list").on("click",(function(){var i=e(this);i.addClass("mf-setting-spin");var s,o=e("#metform_form_modal"),a=e("#metform-form-modalinput-settings").attr("data-nonce"),n=e(".mailchimp_list");s=o.find("form").attr("data-mf-id"),e.ajax({url:window.metform_api.resturl+"metform/v1/entries/store_mailchimp_list/"+s,type:"get",headers:{"X-WP-Nonce":a},dataType:"json",success:function(s){try{n.empty(),s.lists.forEach((e=>{n.append("<option value="+e.id+">"+e.name+"</option>")})),1===s.lists.length?e(".mf-mailchimp-list-id").attr("value",s.lists[0].id):(t(),e(".mailchimp_list").on("change",(t=>{e(".mf-mailchimp-list-id").attr("value",t.target.value)})))}catch(o){}i.removeClass("mf-setting-spin")},error:function(e){i.removeClass("mf-setting-spin")}})})),e(".metfrom-btn-refresh-hubsopt-list").click((function(){var t=e(this);t.addClass("mf-setting-spin");var i,s=e("#metform_form_modal"),o=e("#metform-form-modalinput-settings").attr("data-nonce"),a=e(".hubspot_forms");i=s.find("form").attr("data-mf-id"),e.ajax({url:window.metform_api.resturl+"metform/v1/forms/hubspot_forms/"+i,type:"get",headers:{"X-WP-Nonce":o},dataType:"json",success:function(e){try{a.empty(),a.append('<option value="select">Select a form</option>'),e.forEach((e=>{a.append("<option value="+e.portalId+" guid="+e.guid+">"+e.name+"</option>")}))}catch(i){}t.removeClass("mf-setting-spin")},error:function(e){t.removeClass("mf-setting-spin")}})})),e(".hubspot_forms").on("change",(function(){var t=e("option:selected",this).attr("guid"),i=e("option:selected",this).val();e(".mf_hubspot_form_guid").val(t),e(".mf_hubspot_form_portalId").val(i);var s,o=e("#metform_form_modal"),a=e("#metform-form-modalinput-settings").attr("data-nonce");s=o.find("form").attr("data-mf-id"),e("#mf-hubsopt-fileds").html("Please wait....");var n="";e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+s,type:"get",headers:{"X-WP-Nonce":a},dataType:"json",success:function(i){n=i,e.ajax({url:window.metform_api.resturl+"metform/v1/forms/hubspot_form_fields/"+s,type:"post",headers:{"X-WP-Nonce":a},dataType:"json",data:{guid:t},success:function(t){var i="",s="";Object.keys(n).map((function(e){return[n[e]]})).map((e=>{s+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));t.forEach((e=>{i+="<tr><td>"+e.label+"</td><td><select name=mf_hubspot_form_field_name_"+e.name+' class="attr-form-control">'+s+"</select></td></tr>"})),e("#mf-hubsopt-fileds").html('<table width="100%">'+i+"</table>")},error:function(t){e("#mf-hubsopt-fileds").html("Sorry ! Something went wrong")}})},error:function(t){e("#mf-hubsopt-fileds").html("Sorry ! Something went wrong")}})})),e(".mf-mailchimp-list-id").attr("value",""),e(".row-actions .edit a, .page-title-action, .metform-form-edit-btn, body.post-type-metform-form a.row-title").on("click",(function(o){o.preventDefault();var a=0,n=e("#metform_form_modal"),r=e(this).parents(".column-title"),m=e("body").attr("data-metform-template-key");n.addClass("loading"),n.modal("show");if(r.length>0){a=e(this).attr("data-metform-form-id"),"undefined"!==m&&(a=m),a=a!==undefined?a:r.find(".hidden").attr("id").split("_")[1];var l=e("#metform-form-modalinput-settings").attr("data-nonce");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get/"+a,type:"get",headers:{"X-WP-Nonce":l},dataType:"json",success:function(t){t,g(t),n.removeClass("loading"),function(t,i,s){e(".mf-helpscout").length&&e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+t,type:"get",headers:{"X-WP-Nonce":i},dataType:"json",success:function(t){var i=t,o="";Object.keys(i).map((function(e){return[i[e]]})).map((e=>{o+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));var a='<div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Subject*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_subject" name="mf_helpscout_conversation_subject">'+o+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Customer Email*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_customer_email" name="mf_helpscout_conversation_customer_email">'+o+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Customer First Name*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_customer_first_name" name="mf_helpscout_conversation_customer_first_name">'+o+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Customer Last Name*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_customer_last_name" name="mf_helpscout_conversation_customer_last_name">'+o+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Message*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_customer_message" name="mf_helpscout_conversation_customer_message">'+o+"</select></div>")+"</div>";e("#mf-helpscout-fileds").html(a),s.mf_helpscout_conversation_subject&&(e('#mf_helpscout_conversation_subject option[value="'+s.mf_helpscout_conversation_subject+'"]').prop("selected",!0),e('#mf_helpscout_conversation_customer_email option[value="'+s.mf_helpscout_conversation_customer_email+'"]').prop("selected",!0),e('#mf_helpscout_conversation_customer_first_name option[value="'+s.mf_helpscout_conversation_customer_first_name+'"]').prop("selected",!0),e('#mf_helpscout_conversation_customer_last_name option[value="'+s.mf_helpscout_conversation_customer_last_name+'"]').prop("selected",!0),e('#mf_helpscout_conversation_customer_message option[value="'+s.mf_helpscout_conversation_customer_message+'"]').prop("selected",!0))},error:function(e){}})}(a,l,t)}})}else{g({form_title:e(".mf-form-modalinput-title").attr("data-default-value"),admin_email_body:"",admin_email_from:"",admin_email_reply_to:"",admin_email_subject:"",capture_user_browser_data:"",enable_admin_notification:"",limit_total_entries_status:"",limit_total_entries:"0",redirect_to:"",success_url:"",failed_cancel_url:"",require_login:"",store_entries:"1",entry_title:"",success_message:e(".mf-form-modalinput-success_message").attr("data-default-value"),user_email_body:"",user_email_from:"",user_email_reply_to:"",user_email_subject:"",input_names:"Example: [mf-inputname]"}),n.removeClass("loading")}function c(e,t=""){let i="";return Array.isArray(e)&&e.map((e=>{const s=t===e[0].mf_input_name?" selected":"";i+="<option value="+e[0].mf_input_name+s+">"+e[0].mf_input_label+"</option>"})),i}e(".mf-register").length&&e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+a,type:"get",headers:{"X-WP-Nonce":l},dataType:"json",success:function(t){var i=t,s="";e.ajax({url:window.metform_api.resturl+"xs/register/settings/"+a,type:"get",headers:{"X-WP-Nonce":l},dataType:"json",success:function(t){Object.keys(i).map((function(e){return[i[e]]})).map((e=>{s+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));var o='<div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">User Name</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_reg_user_name" name="mf_auth_reg_user_name">'+s+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">User Email</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_reg_user_email" name="mf_auth_reg_user_email">'+s+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline"><label class="attr-input-label">Role</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_reg_role" name="mf_auth_reg_role"><option value="administrator">Administrator</option><option value="editor">Editor</option><option value="author">Author</option><option value="contributor">Contributor</option><option selected="selected" value="subscriber">Subscriber</option></select></div></div>';e(".mf_register_form_fields").html(o),0!=t&&(e('#mf_auth_reg_user_name option[value="'+t.mf_auth_reg_user_name+'"]').prop("selected",!0),e('#mf_auth_reg_user_email option[value="'+t.mf_auth_reg_user_email+'"]').prop("selected",!0),e('#mf_auth_reg_role option[value="'+t.mf_auth_reg_role+'"]').prop("selected",!0))},error:function(e){}})},error:function(e){}}),e(".mf-login").length&&e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+a,type:"get",headers:{"X-WP-Nonce":l},dataType:"json",success:function(t){var i=t,s="";e.ajax({url:window.metform_api.resturl+"xs/login/settings/"+a,type:"get",headers:{"X-WP-Nonce":l},dataType:"json",success:function(t){Object.keys(i).map((function(e){return[i[e]]})).map((e=>{s+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));var o='<div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">User Name</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_login_user_name" name="mf_auth_login_user_name">'+s+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">User Password</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_login_user_password" name="mf_auth_login_user_password">'+s+"</select></div>")+"</div>";e(".mf_login_form_fields").html(o),0!=t&&(e('#mf_auth_login_user_name option[value="'+t.mf_auth_login_user_name+'"]').prop("selected",!0),e('#mf_auth_login_user_password option[value="'+t.mf_auth_login_user_password+'"]').prop("selected",!0))},error:function(e){}})},error:function(e){}}),e(".mf-form-to-post").length&&e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+a,type:"get",headers:{"X-WP-Nonce":l},dataType:"json",success:function(t){var o=t,n="";e.ajax({url:window.metform_api.resturl+"xs/post/settings/"+a,type:"get",headers:{"X-WP-Nonce":l},dataType:"json",success:function(t){var a=Object.keys(o).map((function(e){return[o[e]]}));a.map((e=>{n+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));var r='<label class="attr-input-label">Title</label><div class="mf-inputs"><select class="attr-form-control mf_post_submission_title" id="mf_post_submission_title" name="mf_post_submission_title">'+n+"</select></div>",m='<label class="attr-input-label">Content</label><div class="mf-inputs"><select class="attr-form-control mf_post_submission_content" id="mf_post_submission_content" name="mf_post_submission_content">'+n+"</select></div>",l='<label class="attr-input-label">Featured Image</label><div class="mf-inputs"><select class="attr-form-control mf_post_submission_featured_image" id="mf_post_submission_featured_image" name="mf_post_submission_featured_image">'+n+"</select></div>",f=s(n);if(0!=t.custom_fields_settings){f="";var d=Object.entries(t.custom_fields_settings);for(const[e,t]of d)f+=s(c(a,t),e,t)}var p='<div class="mf-input-group mf-input-group-inline">'+r+'</div><div class="mf-input-group mf-input-group-inline">'+m+'</div></div><div class="mf-input-group mf-input-group-inline">'+l+'</div><div class="mf-input-group mf-input-group-inline">'+function(e,t){return'<label class="attr-input-label">Custom Fields</label>\n <div class="mf-inputs mf-cf-fields">\n <div style="display:none">\n <div id="mf-cf-single-field" class="mf-cf-single-field"">\n <div class="mf-cf-single-field-input">\n <label>Name</label>\n <input type="text" name="mf_post_submission_custom_fields_name[]" class="attr-form-control" >\n </div>\n <div class="mf-cf-single-field-input">\n <label>Select Field</label>\n <select name="mf_post_submission_mf_field_name[]" class="attr-form-control">'+t+'</select>\n </div>\n <a href="#" class="mf-btn-del-singl-field">Delete</a>\n </div>\n </div>\n <div class="repeaterResult">'+e+'</div>\n <button class="mf-add-cf" type="button"><span>+</span></button>\n </div>'}(f,n)+"</div>";e(".mf-post-submission-fields-section").html(p);var _=0;e(".mf-add-cf").click((function(){var t=e("#mf-cf-single-field").clone();_++,t.attr("id","mf-repeater-field-"+_),e(".mf-btn-del-singl-field",t).attr("data-id",_),t.appendTo(e(".repeaterResult")),i()})),i(),0!=t.fields_settings&&(e('.mf_post_submission_post_type option[value="'+t.fields_settings.mf_post_submission_post_type+'"]').prop("selected",!0),e('.mf_post_submission_title option[value="'+t.fields_settings.mf_post_submission_title+'"]').prop("selected",!0),e('.mf_post_submission_content option[value="'+t.fields_settings.mf_post_submission_content+'"]').prop("selected",!0),e('.mf_post_submission_featured_image option[value="'+t.fields_settings.mf_post_submission_featured_image+'"]').prop("selected",!0),e('.mf_post_submission_author option[value="'+t.fields_settings.mf_post_submission_author+'"]').prop("selected",!0))},error:function(e){}})},error:function(e){}}),function(t){var i=e("#metform-form-modalinput-settings").attr("data-nonce"),s=e(".get-response-campaign-list");e.ajax({url:window.metform_api.resturl+"metform/v1/entries/get_response_list/"+t,type:"get",headers:{"X-WP-Nonce":i},dataType:"json",success:function(e){s.empty(),e.length&&e.forEach((e=>{s.append("<option value="+e.campaignId+">"+e.description+"</option>")}))},error:function(e){}})}(a),function(t){var i=e(".metfrom-btn-refresh-hubsopt-list");i.addClass("mf-setting-spin");var s=e("#metform-form-modalinput-settings").attr("data-nonce"),o=e(".hubspot_forms"),a=t;e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_hubspot_forms/"+a,type:"get",headers:{"X-WP-Nonce":s},dataType:"json",success:function(e){try{o.empty(),o.append('<option value="select">Select a form</option>'),e.forEach((e=>{o.append("<option value="+e.portalId+" guid="+e.guid+">"+e.name+"</option>")}))}catch(t){}i.removeClass("mf-setting-spin")},error:function(e){i.removeClass("mf-setting-spin")}})}(a),function(i){e("#metform_form_modal");var s,o=e("#metform-form-modalinput-settings").attr("data-nonce"),a=e(".mailchimp_list");s=i,e.ajax({url:window.metform_api.resturl+"metform/v1/entries/get_mailchimp_list/"+s,type:"get",headers:{"X-WP-Nonce":o},dataType:"json",success:function(i){try{a.empty(),i.lists.forEach((e=>{a.append("<option value="+e.id+">"+e.name+"</option>")})),1===i.lists.length?e(".mf-mailchimp-list-id").attr("value",i.lists[0].id):(t(),e(".mailchimp_list").on("change",(t=>{e(".mf-mailchimp-list-id").attr("value",t.target.value)})))}catch(s){}},error:function(e){}})}(a),n.find("form").attr("data-mf-id",a),n.find(".get-response-campaign-list").attr("get-response-list-id",a)})),e(".metform-form-save-btn-editor").on("click",(function(){e(".metform-form-save-btn-editor").attr("disabled",!0);var t=e("#metform-form-modalinput-settings");t.attr("data-open-editor","1"),t.trigger("submit")})),e("#metform-form-modalinput-settings").on("submit",(function(t){t.preventDefault();var i=e("#metform-form-modal"),s=e(this);i.addClass("loading"),e(".metform-form-save-btn-editor").attr("disabled",!0),e(".metform-form-save-btn").attr("disabled",!0);var o=e(this).serialize(),a=e(this).attr("data-mf-id"),n=e(this).attr("data-open-editor"),r=e(this).attr("data-editor-url"),m=e(this).attr("data-nonce");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/update/"+a,type:"post",data:o,headers:{"X-WP-Nonce":m},dataType:"json",success:function(t){e("#message").css("display","block"),1==t.saved?(e("#post-"+t.data.id).find(".row-title").html(t.data.title),e("#message").removeClass("attr-alert-warning").addClass("attr-alert-success").html(t.status)):e("#message").removeClass("attr-alert-success").addClass("attr-alert-warning").html(t.status),setTimeout((function(){e("#message").css("display","none"),s.find(".attr-close").trigger("click")}),1e3),i.removeClass("loading"),"1"==n&&1==t.saved?setTimeout((function(){window.location.href=r+"?post="+t.data.id+"&action=elementor"}),1e3):"0"!=a?(e(".metform-form-save-btn-editor").removeAttr("disabled"),e(".metform-form-save-btn").removeAttr("disabled")):"0"==a&&setTimeout((function(){location.reload()}),1e3)}})}));var o=e(".mf-entry-title"),a=e(".mf-form-user-confirmation"),n=e(".mf-form-admin-notification"),r=e(".mf-input-rest-api-group"),m=e(".mf-mailchimp"),l=e(".mf-get_response"),c=e(".mf-zapier"),f=e(".mf-slack"),d=e(".mf-paypal"),p=e(".mf-stripe"),_=e(".mf-ckit"),u=e(".mf-aweber"),h=e(".mf-mail-poet");function v(t,i=null){var s=e("#metform-form-modalinput-settings").attr("data-nonce");e('.mf-mailster-list-id option[value="'+t+'"]').prop("selected",!0),e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+i,type:"get",headers:{"X-WP-Nonce":s},dataType:"json",success:function(s){var o=s,a="";Object.keys(o).map((function(e){return[o[e]]})).map((e=>{a+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"})),function(t,i,s){var o=e("#metform-form-modalinput-settings").attr("data-nonce");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_mailster_form/"+t,type:"get",headers:{"X-WP-Nonce":o},dataType:"json",success:function(t){var o="";for(const[e,s]of Object.entries(t))if("fields"==e)for(const[e,t]of Object.entries(s))o+='<div class="mf-input-group mf-input-group-inline"><label class="attr-input-label">'+t.name+'</label><div class="mf-inputs"><select class="attr-form-control" id="mailster_field_'+e+'" name="mailster_field_'+e+'">'+i+"</select></div></div>";e(".mf-mailster-settings-section").html(o),function(t,i){var s=window.mf_mailster_list_id;if(e(".mf-mailster-list-id").val()==s){var o=e("#metform-form-modalinput-settings").attr("data-nonce");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_mailster_form_data/"+i,type:"get",headers:{"X-WP-Nonce":o},dataType:"json",success:function(t){for(const[i,s]of Object.entries(t))for(const[t,i]of Object.entries(s))e("#"+t+' option[value="'+i+'"]').prop("selected",!0)},error:function(e){}})}}(0,s)},error:function(e){}})}(t,a,i)},error:function(e){}})}function g(i){if(o.hide(),a.hide(),n.hide(),r.hide(),m.hide(),c.hide(),f.hide(),d.hide(),p.hide(),_.hide(),u.hide(),h.hide(),""!=i.form_title){e(".mf-form-modalinput-title").val(i.form_title),e(".mf-form-modalinput-success_message").val(i.success_message),e(".mf-entry-title-input").val("undefined"!=typeof i.entry_title&&""!=i.entry_title?i.entry_title:"undefined"==typeof i.entry_title||""==i.entry_title?"Entry # [mf_id]":""),e(".mf-form-modalinput-redirect_to").val(i.redirect_to),e(".mf-form-modalinput-success_url").val(i.success_url),e(".mf-form-modalinput-failed_cancel_url").val(i.failed_cancel_url),e(".mf-form-modalinput-limit_total_entries").val(i.limit_total_entries);var s=e(".mf-form-modalinput-store_entries");"1"==i.store_entries?(s.attr("checked",!0),o.show()):(s.removeAttr("checked"),o.hide());var l=e(".mf-form-modalinput-hide_form_after_submission");"1"==i.hide_form_after_submission?l.attr("checked",!0):l.removeAttr("checked");var g=e(".mf-form-modalinput-require_login");"1"==i.require_login?g.attr("checked",!0):g.removeAttr("checked");var b=e(".mf-form-modalinput-limit_status");"1"==i.limit_total_entries_status?b.attr("checked",!0):b.removeAttr("checked");var k=e(".mf-form-modalinput-count_views");"1"==i.count_views?k.attr("checked",!0):k.removeAttr("checked");var w=e(".mf-form-modalinput-stop_vertical_scrolling");"1"==i.mf_stop_vertical_scrolling?w.attr("checked",!0):w.removeAttr("checked");var y=e(".mf-form-modalinput-multiple_submission");"1"==i.multiple_submission?y.attr("checked",!0):y.removeAttr("checked");var j=e(".mf-form-modalinput-enable_recaptcha");"1"==i.enable_recaptcha?j.attr("checked",!0):j.removeAttr("checked");var x=e(".mf-form-modalinput-capture_user_browser_data");"1"==i.capture_user_browser_data?(x.attr("checked",!0),e("#multiple_submission").removeClass("hide_input"),e("#multiple_submission").addClass("show_input")):x.removeAttr("checked"),e(".mf-form-user-email-subject").val(i.user_email_subject),e(".mf-form-user-email-from").val(i.user_email_from),e(".mf-form-user-reply-to").val(i.user_email_reply_to),e(".mf-form-user-email-body").val(i.user_email_body);var A=e(".mf-form-user-enable");"1"==i.enable_user_notification?(A.attr("checked",!0),a.show()):(A.removeAttr("checked"),a.hide());var C=e(".mf-form-user-submission-copy");"1"==i.user_email_attach_submission_copy?C.attr("checked",!0):C.removeAttr("checked"),e(".mf-form-admin-email-subject").val(i.admin_email_subject),e(".mf-form-admin-email-from").val(i.admin_email_from),e(".mf-form-admin-email-to").val(i.admin_email_to),e(".mf-form-admin-reply-to").val(i.admin_email_reply_to),e(".mf-form-admin-email-body").val(i.admin_email_body);var T=e(".mf-form-admin-enable");"1"==i.enable_admin_notification?(T.attr("checked",!0),n.show()):(T.removeAttr("checked"),n.hide());var P=e(".mf-form-admin-submission-copy");"1"==i.admin_email_attach_submission_copy?P.attr("checked",!0):P.removeAttr("checked");var N=e(".mf-form-modalinput-rest_api");"1"==i.mf_rest_api?(N.attr("checked",!0),e(".mf-rest-api").show()):(N.removeAttr("checked"),e(".mf-rest-api").hide());var W=e(".mf-form-modalinput-mail_chimp");"1"==i.mf_mail_chimp?(W.attr("checked",!0),m.show()):(W.removeAttr("checked"),m.hide());var z=e(".mf-form-modal_input-google_sheet");"1"==i.mf_google_sheet?z.attr("checked",!0):z.removeAttr("checked");let r=e(".mf-form-modalinput-ckit"),v=e(".mf-form-modalinput-mail_aweber"),Z=e(".mf-form-modalinput-mail_poet");if("1"==i.mf_convert_kit?(r.attr("checked",!0),_.show()):(r.removeAttr("checked"),_.hide()),"1"==i.mf_mail_aweber?(v.attr("checked",!0),u.show()):(v.removeAttr("checked"),u.hide()),"1"==i.mf_mail_poet?(Z.attr("checked",!0),h.show()):(Z.removeAttr("checked"),h.hide()),i.ckit_opt){let t=e("select.mf-ckit-list-id").first(),s=i.mf_ckit_list_id||"";t.html(),i.ckit_opt.forEach((function(e){t.append('<option value="'+e.id+'">'+e.name+"</option>")})),t.val(s)}if(i.aweber_opt){let t=e("select.mf-aweber-list-id").first(),s=i.mf_aweber_list_id||"";t.html();for(let e in i.aweber_opt)t.append('<option value="'+i.aweber_opt[e].id+'">'+i.aweber_opt[e].name+"</option>");t.val(s)}if(i.mp_opt){let t=e("select.mf-mail-poet-list-id").first(),s=i.mf_mail_poet_list_id||"";t.html();for(let e in i.mp_opt)t.append('<option value="'+i.mp_opt[e].id+'">'+i.mp_opt[e].name+"</option>");t.val(s)}var X=e(".mf-form-modalinput-active_campaign");"1"==i.mf_active_campaign?X.attr("checked",!0):X.removeAttr("checked");var S=e(".mf-form-modalinput-get_response");"1"==i.mf_get_response?(S.attr("checked",!0),e(".mf-get_response").show()):(S.removeAttr("checked"),e(".mf-get_response").hide());var O=e(".mf-hubsopt");"1"==i.mf_hubspot?O.attr("checked",!0):O.removeAttr("checked");var E=e(".mf-hubspot-forms"),D=e(".hubspot_forms_section");"1"==i.mf_hubspot_forms?(E.attr("checked",!0),D.show()):(E.removeAttr("checked"),D.hide()),e(".mf_hubspot_form_portalId").val(i.mf_hubspot_form_portalId),e(".mf_hubspot_form_guid").val(i.mf_hubspot_form_guid);var I=e(".mf-zoho");"1"==i.mf_zoho?I.attr("checked",!0):I.removeAttr("checked");var U=e(".mf-helpscout");"1"==i.mf_helpscout?(U.attr("checked",!0),e(".helpscout_forms_section").show()):(U.removeAttr("chekced"),e(".helpscout_forms_section").hide()),i.mf_helpscout_mailbox&&e('#mf_helpscout_mailbox option[value="'+i.mf_helpscout_mailbox+'"]').prop("selected",!0);var q=e(".mf-form-modalinput-mailster"),F=e(".mf-mailster-settings-section");"1"==i.mf_mailster?(q.attr("checked",!0),F.show(),e(".mf-mailster-forms").show()):(q.removeAttr("checked"),F.hide(),e(".mf-mailster-forms").hide());var R=e(".mf-register");1==i.mf_registration?(R.attr("checked",!0),e(".mf_register_form_fields").show()):(R.removeAttr("checked"),e(".mf_register_form_fields").hide());var L=e(".mf-login");1==i.mf_login?(L.attr("checked",!0),e(".mf_login_form_fields").show()):(e(".mf_login_form_fields").hide(),L.removeAttr("checked"));var Q=e(".mf-form-to-post"),G=e(".mf-form-to-post-fields");1==i.mf_form_to_post?(Q.attr("checked",!0),G.show()):(Q.removeAttr("checked"),G.hide());var K=e(".mf-form-modalinput-zapier");"1"==i.mf_zapier?(K.attr("checked",!0),c.show()):(K.removeAttr("checked",!0),c.hide());var M=e(".mf-form-modalinput-slack");"1"==i.mf_slack?(M.attr("checked",!0),f.show()):(M.removeAttr("checked",!0),f.hide());var B=e(".mf-form-modalinput-paypal");"1"==i.mf_paypal?(B.attr("checked",!0),d.show()):(B.removeAttr("checked",!0),d.hide());var H=e(".mf-form-modalinput-stripe");"1"==i.mf_stripe?(H.attr("checked",!0),p.show()):(H.removeAttr("checked",!0),p.hide());H=e(".mf-form-modalinput-stripe");"1"==i.mf_stripe?(H.attr("checked",!0),p.show()):(H.removeAttr("checked",!0),p.hide());var J=e(".mf-form-modalinput-paypal_sandbox");"1"==i.mf_paypal_sandbox?J.attr("checked",!0):J.removeAttr("checked",!0);var V=e(".mf-form-modalinput-stripe_sandbox");"1"==i.mf_stripe_sandbox?V.attr("checked",!0):V.removeAttr("checked",!0);var Y=i.mf_rest_api_method&&i.mf_rest_api_method.length?i.mf_rest_api_method:"POST";e('.mf-rest-api-method option[value="'+Y+'"]').prop("selected",!0),e(".mf-rest-api-url").val(i.mf_rest_api_url),e(".mf-mailchimp-api-key").val(i.mf_mailchimp_api_key),e(".mf-mailchimp-list-id").val(i.mf_mailchimp_list_id),""==i.mf_mailchimp_list_id&&e(".mf-mailchimp-list-id").val(e(".mailchimp_list").find(":selected").val()),0!=i.mf_mailchimp_list_id&&e('.mailchimp_list option[value="'+i.mf_get_response_list_id+'"]').prop("selected",!0),t(),e(".mf-get_response-list-id").val(i.mf_get_response_list_id),0!=i.mf_get_response_list_id&&e('.get-response-campaign-list option[value="'+i.mf_get_response_list_id+'"]').prop("selected",!0),e(".mf-zapier-web-hook").val(i.mf_zapier_webhook),e(".mf-slack-web-hook").val(i.mf_slack_webhook),e(".mf-paypal-email").val(i.mf_paypal_email),e(".mf-paypal-token").val(i.mf_paypal_token),e(".mf-stripe-image-url").val(i.mf_stripe_image_url),e(".mf-stripe-live-publishiable-key").val(i.mf_stripe_live_publishiable_key),e(".mf-stripe-live-secret-key").val(i.mf_stripe_live_secret_key),e(".mf-stripe-test-publishiable-key").val(i.mf_stripe_test_publishiable_key),e(".mf-stripe-test-secret-key").val(i.mf_stripe_test_secret_key),e(".mf-recaptcha-site-key").val(i.mf_recaptcha_site_key),e(".mf-recaptcha-secret-key").val(i.mf_recaptcha_secret_key),e("input.mf-form-modalinput-limit_status, .mf-form-modalinput-rest_api").trigger("change")}(window.mf_mailster_list_id=i.mf_mailster_list_id,e('.mf-mailster-list-id option[value="'+i.mf_mailster_list_id+'"]').prop("selected",!0),e(".mf-form-modalinput-mailster").length)&&v(e(".mf-mailster-list-id").find(":selected").val(),e("#metform_form_modal").find("form").attr("data-mf-id"))}e("input.mf-form-modalinput-store_entries").on("change",(function(){e(this).is(":checked")?o.show():e(this).is(":not(:checked)")&&o.hide()})),e("input.mf-form-modalinput-limit_status").on("change",(function(){e(this).is(":checked")?e("#limit_status").find("input").removeAttr("disabled"):e(this).is(":not(:checked)")&&e("#limit_status").find("input").attr("disabled","disabled")})),e("input.mf-form-user-enable").on("change",(function(){e(this).is(":checked")?a.show():e(this).is(":not(:checked)")&&a.hide()})),e("input.mf-form-admin-enable").on("change",(function(){e(this).is(":checked")?n.show():e(this).is(":not(:checked)")&&n.hide()})),e("input.mf-form-modalinput-rest_api").on("change",(function(){e(this).is(":checked")?r.show():e(this).is(":not(:checked)")&&r.hide()})),e("input.mf-form-modalinput-mail_chimp").on("change",(function(){e(this).is(":checked")?m.show():e(this).is(":not(:checked)")&&m.hide()})),e(".mf-form-modalinput-get_response").on("change",(function(){e(this).is(":checked")?l.show():l.hide()})),e("input.mf-form-modalinput-mail_aweber").on("change",(function(){e(this).is(":checked")?u.show():e(this).is(":not(:checked)")&&u.hide()})),e("input.mf-form-modalinput-mail_poet").on("change",(function(){e(this).is(":checked")?h.show():e(this).is(":not(:checked)")&&h.hide()})),e("input.mf-form-modalinput-ckit").on("change",(function(){e(this).is(":checked")?_.show():e(this).is(":not(:checked)")&&_.hide()})),e("input.mf-form-modalinput-zapier").on("change",(function(){e(this).is(":checked")?c.show():e(this).is(":not(:checked)")&&c.hide()})),e("input.mf-form-modalinput-slack").on("change",(function(){e(this).is(":checked")?f.show():e(this).is(":not(:checked)")&&f.hide()})),e("input.mf-form-modalinput-paypal").on("change",(function(){e(this).is(":checked")?d.show():e(this).is(":not(:checked)")&&d.hide()})),e("input.mf-form-modalinput-stripe").on("change",(function(){e(this).is(":checked")?stripe.show():e(this).is(":not(:checked)")&&stripe.hide()})),e("input.mf-form-modalinput-stripe_sandbox").on("change",(function(){e(this).is(":checked")?e(".mf_stripe_sandbox").show():e(this).is(":not(:checked)")&&e(".mf_stripe_sandbox").hide()})),e(".mf-hubspot-forms").on("change",(function(){e(this).is(":checked")?e(".hubspot_forms_section").show():e(".hubspot_forms_section").hide()})),e(".mf-register").on("change",(function(){e(this).is(":checked")?e(".mf_register_form_fields").show():e(".mf_register_form_fields").hide()})),e(".mf-login").on("change",(function(){e(this).is(":checked")?e(".mf_login_form_fields").show():e(".mf_login_form_fields").hide()})),e(".mf-form-to-post").on("change",(function(){e(this).is(":checked")?e(".mf-form-to-post-fields").show():e(".mf-form-to-post-fields").hide()})),e(".mf-helpscout").on("change",(function(){e(this).is(":checked")?e(".helpscout_forms_section").show():e(".helpscout_forms_section").hide()})),e(".mf-form-modalinput-mailster").on("change",(function(){e(this).is(":checked")?(e(".mf-mailster-settings-section").show(),e(".mf-mailster-forms").show()):(e(".mf-mailster-settings-section").hide(),e(".mf-mailster-forms").hide())})),e(".mf-mailster-list-id").on("change",(function(){e(this).val(),e("#metform-form-modalinput-settings").attr("data-mf-id")})),e(".get-response-campaign-list").on("change",(function(){e(".mf-get_response-list-id ").val(e(this).val())})),e("input.mf-form-modalinput-capture_user_browser_data").click((function(){e(this).is(":checked")?(e("#multiple_submission").removeClass("hide_input"),e("#multiple_submission").addClass("show_input")):e(this).is(":not(:checked)")&&(e("#multiple_submission").removeClass("show_input"),e("#multiple_submission").addClass("hide_input"))})),e(".mf-settings-tab .mf-setting-nav-link").on("click",(function(t){if(!e(this).hasClass("mf-setting-nav-hidden")){t.preventDefault();var i=e(this).attr("href");window.location.hash=i,e(this).parent().addClass("nav-tab-active").siblings().removeClass("nav-tab-active"),e(i).addClass("active").siblings().removeClass("active")}})),e(".mf-setting-nav-link").on("click",(function(t){e(this).hasClass("mf-setting-nav-hidden")?t.preventDefault():(e(this).parents(".nav-tab-wrapper").find("a").removeClass("top").removeClass("bottom"),e(this).parents("li").prev().find("a").addClass("top"),e(this).parents("li").next().find("a").addClass("bottom"))}));var b=e(".mf-settings-tab .mf-setting-nav-link").eq(1).attr("href");if(window.location.hash&&(b=window.location.hash),e('.mf-settings-tab .mf-setting-nav-link[href="'+b+'"]').trigger("click"),e(window).on("resize.mfSettings",(function(){e(".mf-setting-sidebar").css("width",e(".mf-setting-sidebar-column").width())})).trigger("resize.mfSettings"),e(".mf-setting-header").length>0){var k=e(".mf-setting-header").offset().top;e(window).scroll((function(){var t=e(".mf-setting-header");e(window).scrollTop()>=k?t.addClass("fixed").css({width:jQuery(".metform-admin-container").width()}):t.removeClass("fixed").css({width:"auto"})}))}e(".mf-admin-single-accordion").on("click",".mf-admin-single-accordion--heading",(function(){e(this).next().slideToggle().parent().toggleClass("active").siblings().removeClass("active").find(".mf-admin-single-accordion--body").slideUp()})),e(".mf-admin-single-accordion:first-child .mf-admin-single-accordion--heading").trigger("click"),e(".mf-recaptcha-version").on("change",(function(){var t=e(this).val();e("#mf-"+t).fadeIn().siblings().hide()})),e(".mf-recaptcha-version").trigger("change"),e(".mf-form-modalinput-stripe_sandbox").on("change",(function(){var t=e(this).parents(".attr-form-group").eq(0).next(".mf-form-modalinput-stripe_sandbox_keys");e(this).is(":checked")?t.fadeIn():t.fadeOut()})),e(".mf-form-modalinput-stripe_sandbox").trigger("change"),e(document).on("click","#met_pro_aweber_authorize",(function(t){t.preventDefault();let i=e(this).closest("p.description");i.html("<span>Wait....</span>");var s=metform_api.admin_url+"admin-ajax.php",o={action:"get_aweber_authorization_url",api_key:e("#mf_aweber_dev_api_key").val(),api_sec:e("#mf_aweber_dev_api_sec").val()};e.ajax({url:s,method:"POST",data:o,dataType:"json",success:function(e){if(!0===e.success){let t='<a class=" button mf-setting-btn-link" href="'+e.data.url+'">Authorize The App </a>';i.html(t)}else if(e.data){let t=e.data;i.html('<span style="background-color: red; padding: 1px 5px;">'+t.msg+"</span>")}},error:function(e){i.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(document).on("click","#met_pro_aweber_propmpt_re_auth",(function(t){t.preventDefault(),e("#mf_aweber_dev_api_key").val("").prop("disabled",!1),e("#mf_aweber_dev_api_sec").val("").prop("disabled",!1),e(this).closest("p.description").html('<a class="button mf-setting-btn-link" id="met_pro_aweber_re_authorize"> Get Re - Authorization URL </a>')})),e(document).on("click","#met_pro_aweber_re_authorize",(function(t){t.preventDefault();let i=e(this).closest("p.description");i.html("<span>Wait....</span>");let s=e("#mf_aweber_dev_api_key").val();if(!s||s.length<1)return i.html('<span style="color: red">API Key can not be empty..</span>'),!1;var o=metform_api.admin_url+"admin-ajax.php",a={action:"get_aweber_re_authorization_url",api_key:s,api_sec:e("#mf_aweber_dev_api_sec").val()};e.ajax({url:o,method:"POST",data:a,dataType:"json",success:function(e){if(!0===e.success){let t=e.data;if("ok"==t.result){let e='<a class="mf-setting-btn-link" href="'+t.url+'">Authorize The App </a>';i.html(e)}else i.html("<span>"+t.msg+"</span>")}else if(e.data){let t=e.data;i.html('<span style="background-color: red; padding: 1px 5px;">'+t.msg+"</span>")}},error:function(e){i.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(document).on("click","#met_form_aweber_get_list",(function(t){t.preventDefault();let i=e(this),s=e("#mf_aweber_info"),o=metform_api.admin_url+"admin-ajax.php";e.ajax({url:o,method:"POST",data:{action:"get_list_lists"},dataType:"json",success:function(e){if(!0===e.success){let t=e.data,o=i.closest("div.mf-aweber").find("select");if(o.html(""),t.lists)for(let e in t.lists)o.append('<option value="'+t.lists[e].id+'">'+t.lists[e].name+"</option>");s.html("")}else if(e.data){let t=e.data;s.html('<span style="background-color: red; padding: 1px 5px;">'+t.msg+"</span>")}},error:function(e){s.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(document).on("click","#met_form_mail_poet_get_list",(function(t){t.preventDefault();let i=e(this),s=e("#mf_mail_poet_info"),o=metform_api.admin_url+"admin-ajax.php";e.ajax({url:o,method:"POST",data:{action:"mail_poet_get_email_list_lists"},dataType:"json",success:function(e){if(!0===e.success){let t=e.data,o=i.closest("div.mf-mail-poet").find("select");if(o.html(""),t.lists)for(let e in t.lists)o.append('<option value="'+t.lists[e].id+'">'+t.lists[e].name+"</option>");s.html("")}else if(e.data){let t=e.data;s.html('<span style="background-color: red; padding: 1px 5px;">'+t.msg+"</span>")}},error:function(e){s.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(document).on("click","#met_form_ckit_get_list",(function(t){t.preventDefault();var i=metform_api.admin_url+"admin-ajax.php";let s=e(this);e.ajax({url:i,method:"POST",data:{action:"get_form_lists"},dataType:"json",success:function(e){if(!0===e.success){let t=e.data,i=s.closest("div.mf-ckit").find("select");i.html(""),t.forms&&t.forms.forEach((function(e){i.append('<option value="'+e.id+'">'+e.name+"</option>")}))}else alert("Error occurred when trying to check for aweber authorization.")},error:function(e){},complete:function(){}})})),e("#mf-helpscout-btn-token").click((function(){let t=window.metform_api.resturl+"metform/v1/forms/get_helpscout_access_token/123";e.ajax({url:t,type:"get",success:function(e){200==e.status&&location.reload()},error:function(e){alert("Something went wrong")}})}))}));
public/assets/js/app.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(){var e={521:function(e,t){"use strict";function n(e){var t=undefined;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var n=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof n.value&&Object.defineProperty(e.prototype,t,r(e,t,n))}})),e}function r(e,t,n){var r=n.value;if("function"!=typeof r)throw new Error("@autobind decorator can only be applied to methods not: "+typeof r);var o=!1;return{configurable:!0,get:function(){if(o||this===e.prototype||this.hasOwnProperty(t))return r;var n=r.bind(this);return o=!0,Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0}),o=!1,n}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return 1===t.length?n.apply(undefined,t):r.apply(undefined,t)},e.exports=t["default"]},527:function(e,t,n){"use strict";n.r(t),n.d(t,{"default":function(){return P}});const r=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],o={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:e=>"undefined"!=typeof console&&console.warn(e),getWeek:e=>{const t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:undefined,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,"static":!1,time_24hr:!1,weekNumbers:!1,wrap:!1},a={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:e=>{const t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1};var i=a;const s=(e,t=2)=>`000${e}`.slice(-1*t),u=e=>!0===e?1:0;function c(e,t){let n;return function(){clearTimeout(n),n=setTimeout((()=>e.apply(this,arguments)),t)}}const l=e=>e instanceof Array?e:[e];function f(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function d(e,t,n){const r=window.document.createElement(e);return t=t||"",n=n||"",r.className=t,n!==undefined&&(r.textContent=n),r}function p(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function h(e,t){return t(e)?e:e.parentNode?h(e.parentNode,t):undefined}function m(e,t){const n=d("div","numInputWrapper"),r=d("input","numInput "+e),o=d("span","arrowUp"),a=d("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),t!==undefined)for(const e in t)r.setAttribute(e,t[e]);return n.appendChild(r),n.appendChild(o),n.appendChild(a),n}function g(e){try{if("function"==typeof e.composedPath){return e.composedPath()[0]}return e.target}catch(t){return e.target}}const v=()=>undefined,b=(e,t,n)=>n.months[t?"shorthand":"longhand"][e],y={D:v,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:(e,t)=>{e.setHours(parseFloat(t))},H:(e,t)=>{e.setHours(parseFloat(t))},J:(e,t)=>{e.setDate(parseFloat(t))},K:(e,t,n)=>{e.setHours(e.getHours()%12+12*u(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:(e,t)=>{e.setSeconds(parseFloat(t))},U:(e,t)=>new Date(1e3*parseFloat(t)),W:function(e,t,n){const r=parseInt(t),o=new Date(e.getFullYear(),0,2+7*(r-1),0,0,0,0);return o.setDate(o.getDate()-o.getDay()+n.firstDayOfWeek),o},Y:(e,t)=>{e.setFullYear(parseFloat(t))},Z:(e,t)=>new Date(t),d:(e,t)=>{e.setDate(parseFloat(t))},h:(e,t)=>{e.setHours(parseFloat(t))},i:(e,t)=>{e.setMinutes(parseFloat(t))},j:(e,t)=>{e.setDate(parseFloat(t))},l:v,m:(e,t)=>{e.setMonth(parseFloat(t)-1)},n:(e,t)=>{e.setMonth(parseFloat(t)-1)},s:(e,t)=>{e.setSeconds(parseFloat(t))},u:(e,t)=>new Date(parseFloat(t)),w:v,y:(e,t)=>{e.setFullYear(2e3+parseFloat(t))}},w={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},C={Z:e=>e.toISOString(),D:function(e,t,n){return t.weekdays.shorthand[C.w(e,t,n)]},F:function(e,t,n){return b(C.n(e,t,n)-1,!1,t)},G:function(e,t,n){return s(C.h(e,t,n))},H:e=>s(e.getHours()),J:function(e,t){return t.ordinal!==undefined?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:(e,t)=>t.amPM[u(e.getHours()>11)],M:function(e,t){return b(e.getMonth(),!0,t)},S:e=>s(e.getSeconds()),U:e=>e.getTime()/1e3,W:function(e,t,n){return n.getWeek(e)},Y:e=>s(e.getFullYear(),4),d:e=>s(e.getDate()),h:e=>e.getHours()%12?e.getHours()%12:12,i:e=>s(e.getMinutes()),j:e=>e.getDate(),l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:e=>s(e.getMonth()+1),n:e=>e.getMonth()+1,s:e=>e.getSeconds(),u:e=>e.getTime(),w:e=>e.getDay(),y:e=>String(e.getFullYear()).substring(2)},O=({config:e=o,l10n:t=a,isMobile:n=!1})=>(r,o,a)=>{const i=a||t;return e.formatDate===undefined||n?o.split("").map(((t,n,o)=>C[t]&&"\\"!==o[n-1]?C[t](r,i,e):"\\"!==t?t:"")).join(""):e.formatDate(r,o,i)},x=({config:e=o,l10n:t=a})=>(n,r,a,i)=>{if(0!==n&&!n)return undefined;const s=i||t;let u;const c=n;if(n instanceof Date)u=new Date(n.getTime());else if("string"!=typeof n&&n.toFixed!==undefined)u=new Date(n);else if("string"==typeof n){const t=r||(e||o).dateFormat,i=String(n).trim();if("today"===i)u=new Date,a=!0;else if(/Z$/.test(i)||/GMT$/.test(i))u=new Date(n);else if(e&&e.parseDate)u=e.parseDate(n,t);else{u=e&&e.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);let r,o=[];for(let e=0,a=0,i="";e<t.length;e++){const c=t[e],l="\\"===c,f="\\"===t[e-1]||l;if(w[c]&&!f){i+=w[c];const e=new RegExp(i).exec(n);e&&(r=!0)&&o["Y"!==c?"push":"unshift"]({fn:y[c],val:e[++a]})}else l||(i+=".");o.forEach((({fn:e,val:t})=>u=e(u,t,s)||u))}u=r?u:undefined}}return u instanceof Date&&!isNaN(u.getTime())?(!0===a&&u.setHours(0,0,0,0),u):(e.errorHandler(new Error(`Invalid date provided: ${c}`)),undefined)};function D(e,t,n=!0){return!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}const k=864e5;function S(e){let t=e.defaultHour,n=e.defaultMinute,r=e.defaultSeconds;if(e.minDate!==undefined){const o=e.minDate.getHours(),a=e.minDate.getMinutes(),i=e.minDate.getSeconds();t<o&&(t=o),t===o&&n<a&&(n=a),t===o&&n===a&&r<i&&(r=e.minDate.getSeconds())}if(e.maxDate!==undefined){const o=e.maxDate.getHours(),a=e.maxDate.getMinutes();t=Math.min(t,o),t===o&&(n=Math.min(a,n)),t===o&&n===a&&(r=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:r}}n(895);function E(e,t){const n={config:Object.assign(Object.assign({},o),_.defaultConfig),l10n:i};function a(e){return e.bind(n)}function v(){const e=n.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(n.calendarContainer!==undefined&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),n.daysContainer!==undefined){const t=(n.days.offsetWidth+1)*e.showMonths;n.daysContainer.style.width=t+"px",n.calendarContainer.style.width=t+(n.weekWrapper!==undefined?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}}))}function y(e){if(0===n.selectedDates.length){const e=n.config.minDate===undefined||D(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),t=S(n.config);e.setHours(t.hours,t.minutes,t.seconds,e.getMilliseconds()),n.selectedDates=[e],n.latestSelectedDateObj=e}e!==undefined&&"blur"!==e.type&&function(e){e.preventDefault();const t="keydown"===e.type,r=g(e),o=r;n.amPM!==undefined&&r===n.amPM&&(n.amPM.textContent=n.l10n.amPM[u(n.amPM.textContent===n.l10n.amPM[0])]);const a=parseFloat(o.getAttribute("min")),i=parseFloat(o.getAttribute("max")),c=parseFloat(o.getAttribute("step")),l=parseInt(o.value,10),f=e.delta||(t?38===e.which?1:-1:0);let d=l+c*f;if("undefined"!=typeof o.value&&2===o.value.length){const e=o===n.hourElement,t=o===n.minuteElement;d<a?(d=i+d+u(!e)+(u(e)&&u(!n.amPM)),t&&N(undefined,-1,n.hourElement)):d>i&&(d=o===n.hourElement?d-i-u(!n.amPM):a,t&&N(undefined,1,n.hourElement)),n.amPM&&e&&(1===c?d+l===23:Math.abs(d-l)>c)&&(n.amPM.textContent=n.l10n.amPM[u(n.amPM.textContent===n.l10n.amPM[0])]),o.value=s(d)}}(e);const t=n._input.value;C(),be(),n._input.value!==t&&n._debouncedChange()}function C(){if(n.hourElement===undefined||n.minuteElement===undefined)return;let e=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,t=(parseInt(n.minuteElement.value,10)||0)%60,r=n.secondElement!==undefined?(parseInt(n.secondElement.value,10)||0)%60:0;var o,a;n.amPM!==undefined&&(o=e,a=n.amPM.textContent,e=o%12+12*u(a===n.l10n.amPM[1]));const i=n.config.minTime!==undefined||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===D(n.latestSelectedDateObj,n.config.minDate,!0);if(n.config.maxTime!==undefined||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===D(n.latestSelectedDateObj,n.config.maxDate,!0)){const o=n.config.maxTime!==undefined?n.config.maxTime:n.config.maxDate;e=Math.min(e,o.getHours()),e===o.getHours()&&(t=Math.min(t,o.getMinutes())),t===o.getMinutes()&&(r=Math.min(r,o.getSeconds()))}if(i){const o=n.config.minTime!==undefined?n.config.minTime:n.config.minDate;e=Math.max(e,o.getHours()),e===o.getHours()&&t<o.getMinutes()&&(t=o.getMinutes()),t===o.getMinutes()&&(r=Math.max(r,o.getSeconds()))}M(e,t,r)}function E(e){const t=e||n.latestSelectedDateObj;t&&M(t.getHours(),t.getMinutes(),t.getSeconds())}function M(e,t,r){n.latestSelectedDateObj!==undefined&&n.latestSelectedDateObj.setHours(e%24,t,r||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=s(n.config.time_24hr?e:(12+e)%12+12*u(e%12==0)),n.minuteElement.value=s(t),n.amPM!==undefined&&(n.amPM.textContent=n.l10n.amPM[u(e>=12)]),n.secondElement!==undefined&&(n.secondElement.value=s(r)))}function P(e){const t=g(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&J(n)}function j(e,t,r,o){return t instanceof Array?t.forEach((t=>j(e,t,r,o))):e instanceof Array?e.forEach((e=>j(e,t,r,o))):(e.addEventListener(t,r,o),void n._handlers.push({remove:()=>e.removeEventListener(t,r)}))}function T(){pe("onChange")}function A(e,t){const r=e!==undefined?n.parseDate(e):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),o=n.currentYear,a=n.currentMonth;try{r!==undefined&&(n.currentYear=r.getFullYear(),n.currentMonth=r.getMonth())}catch(i){i.message="Invalid date supplied: "+r,n.config.errorHandler(i)}t&&n.currentYear!==o&&(pe("onYearChange"),W()),!t||n.currentYear===o&&n.currentMonth===a||pe("onMonthChange"),n.redraw()}function I(e){const t=g(e);~t.className.indexOf("arrow")&&N(e,t.classList.contains("arrowUp")?1:-1)}function N(e,t,n){const r=e&&g(e),o=n||r&&r.parentNode&&r.parentNode.firstChild,a=he("increment");a.delta=t,o&&o.dispatchEvent(a)}function R(e,t,r,o){const a=Q(t,!0),i=d("span","flatpickr-day "+e,t.getDate().toString());return i.dateObj=t,i.$i=o,i.setAttribute("aria-label",n.formatDate(t,n.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===D(t,n.now)&&(n.todayDateElem=i,i.classList.add("today"),i.setAttribute("aria-current","date")),a?(i.tabIndex=-1,me(t)&&(i.classList.add("selected"),n.selectedDateElem=i,"range"===n.config.mode&&(f(i,"startRange",n.selectedDates[0]&&0===D(t,n.selectedDates[0],!0)),f(i,"endRange",n.selectedDates[1]&&0===D(t,n.selectedDates[1],!0)),"nextMonthDay"===e&&i.classList.add("inRange")))):i.classList.add("flatpickr-disabled"),"range"===n.config.mode&&function(e){return!("range"!==n.config.mode||n.selectedDates.length<2)&&(D(e,n.selectedDates[0])>=0&&D(e,n.selectedDates[1])<=0)}(t)&&!me(t)&&i.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==e&&r%7==1&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(t)+"</span>"),pe("onDayCreate",i),i}function L(e){e.focus(),"range"===n.config.mode&&te(e)}function V(e){const t=e>0?0:n.config.showMonths-1,r=e>0?n.config.showMonths:-1;for(let o=t;o!=r;o+=e){const t=n.daysContainer.children[o],r=e>0?0:t.children.length-1,a=e>0?t.children.length:-1;for(let n=r;n!=a;n+=e){const e=t.children[n];if(-1===e.className.indexOf("hidden")&&Q(e.dateObj))return e}}return undefined}function F(e,t){const r=X(document.activeElement||document.body),o=e!==undefined?e:r?document.activeElement:n.selectedDateElem!==undefined&&X(n.selectedDateElem)?n.selectedDateElem:n.todayDateElem!==undefined&&X(n.todayDateElem)?n.todayDateElem:V(t>0?1:-1);o===undefined?n._input.focus():r?function(e,t){const r=-1===e.className.indexOf("Month")?e.dateObj.getMonth():n.currentMonth,o=t>0?n.config.showMonths:-1,a=t>0?1:-1;for(let i=r-n.currentMonth;i!=o;i+=a){const o=n.daysContainer.children[i],s=r-n.currentMonth===i?e.$i+t:t<0?o.children.length-1:0,u=o.children.length;for(let n=s;n>=0&&n<u&&n!=(t>0?u:-1);n+=a){const r=o.children[n];if(-1===r.className.indexOf("hidden")&&Q(r.dateObj)&&Math.abs(e.$i-n)>=Math.abs(t))return L(r)}}n.changeMonth(a),F(V(a),0),undefined}(o,t):L(o)}function H(e,t){const r=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,o=n.utils.getDaysInMonth((t-1+12)%12,e),a=n.utils.getDaysInMonth(t,e),i=window.document.createDocumentFragment(),s=n.config.showMonths>1,u=s?"prevMonthDay hidden":"prevMonthDay",c=s?"nextMonthDay hidden":"nextMonthDay";let l=o+1-r,f=0;for(;l<=o;l++,f++)i.appendChild(R(u,new Date(e,t-1,l),l,f));for(l=1;l<=a;l++,f++)i.appendChild(R("",new Date(e,t,l),l,f));for(let o=a+1;o<=42-r&&(1===n.config.showMonths||f%7!=0);o++,f++)i.appendChild(R(c,new Date(e,t+1,o%a),o,f));const p=d("div","dayContainer");return p.appendChild(i),p}function U(){if(n.daysContainer===undefined)return;p(n.daysContainer),n.weekNumbers&&p(n.weekNumbers);const e=document.createDocumentFragment();for(let t=0;t<n.config.showMonths;t++){const r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+t),e.appendChild(H(r.getFullYear(),r.getMonth()))}n.daysContainer.appendChild(e),n.days=n.daysContainer.firstChild,"range"===n.config.mode&&1===n.selectedDates.length&&te()}function W(){if(n.config.showMonths>1||"dropdown"!==n.config.monthSelectorType)return;const e=function(e){return!(n.config.minDate!==undefined&&n.currentYear===n.config.minDate.getFullYear()&&e<n.config.minDate.getMonth())&&!(n.config.maxDate!==undefined&&n.currentYear===n.config.maxDate.getFullYear()&&e>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(let t=0;t<12;t++){if(!e(t))continue;const r=d("option","flatpickr-monthDropdown-month");r.value=new Date(n.currentYear,t).getMonth().toString(),r.textContent=b(t,n.config.shorthandCurrentMonth,n.l10n),r.tabIndex=-1,n.currentMonth===t&&(r.selected=!0),n.monthsDropdownContainer.appendChild(r)}}function z(){const e=d("div","flatpickr-month"),t=window.document.createDocumentFragment();let r;n.config.showMonths>1||"static"===n.config.monthSelectorType?r=d("span","cur-month"):(n.monthsDropdownContainer=d("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),j(n.monthsDropdownContainer,"change",(e=>{const t=g(e),r=parseInt(t.value,10);n.changeMonth(r-n.currentMonth),pe("onMonthChange")})),W(),r=n.monthsDropdownContainer);const o=m("cur-year",{tabindex:"-1"}),a=o.getElementsByTagName("input")[0];a.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&a.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(a.setAttribute("max",n.config.maxDate.getFullYear().toString()),a.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());const i=d("div","flatpickr-current-month");return i.appendChild(r),i.appendChild(o),t.appendChild(i),e.appendChild(t),{container:e,yearElement:a,monthElement:r}}function B(){p(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(let e=n.config.showMonths;e--;){const e=z();n.yearElements.push(e.yearElement),n.monthElements.push(e.monthElement),n.monthNav.appendChild(e.container)}n.monthNav.appendChild(n.nextMonthNav)}function Y(){n.weekdayContainer?p(n.weekdayContainer):n.weekdayContainer=d("div","flatpickr-weekdays");for(let e=n.config.showMonths;e--;){const e=d("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(e)}return q(),n.weekdayContainer}function q(){if(!n.weekdayContainer)return;const e=n.l10n.firstDayOfWeek;let t=[...n.l10n.weekdays.shorthand];e>0&&e<t.length&&(t=[...t.splice(e,t.length),...t.splice(0,e)]);for(let e=n.config.showMonths;e--;)n.weekdayContainer.children[e].innerHTML=`\n <span class='flatpickr-weekday'>\n ${t.join("</span><span class='flatpickr-weekday'>")}\n </span>\n `}function K(e,t=!0){const r=t?e:e-n.currentMonth;r<0&&!0===n._hidePrevMonthArrow||r>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=r,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,pe("onYearChange"),W()),U(),pe("onMonthChange"),ge())}function $(e){return!(!n.config.appendTo||!n.config.appendTo.contains(e))||n.calendarContainer.contains(e)}function G(e){if(n.isOpen&&!n.config.inline){const t=g(e),r=$(t),o=t===n.input||t===n.altInput||n.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(n.input)||~e.path.indexOf(n.altInput)),a="blur"===e.type?o&&e.relatedTarget&&!$(e.relatedTarget):!o&&!r&&!$(e.relatedTarget),i=!n.config.ignoredFocusElements.some((e=>e.contains(t)));a&&i&&(n.timeContainer!==undefined&&n.minuteElement!==undefined&&n.hourElement!==undefined&&""!==n.input.value&&n.input.value!==undefined&&y(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&(n.clear(!1),n.redraw()))}}function J(e){if(!e||n.config.minDate&&e<n.config.minDate.getFullYear()||n.config.maxDate&&e>n.config.maxDate.getFullYear())return;const t=e,r=n.currentYear!==t;n.currentYear=t||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),r&&(n.redraw(),pe("onYearChange"),W())}function Q(e,t=!0){var r;const o=n.parseDate(e,undefined,t);if(n.config.minDate&&o&&D(o,n.config.minDate,t!==undefined?t:!n.minDateHasTime)<0||n.config.maxDate&&o&&D(o,n.config.maxDate,t!==undefined?t:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(o===undefined)return!1;const a=!!n.config.enable,i=null!==(r=n.config.enable)&&void 0!==r?r:n.config.disable;for(let e,t=0;t<i.length;t++){if(e=i[t],"function"==typeof e&&e(o))return a;if(e instanceof Date&&o!==undefined&&e.getTime()===o.getTime())return a;if("string"==typeof e){const t=n.parseDate(e,undefined,!0);return t&&t.getTime()===o.getTime()?a:!a}if("object"==typeof e&&o!==undefined&&e.from&&e.to&&o.getTime()>=e.from.getTime()&&o.getTime()<=e.to.getTime())return a}return!a}function X(e){return n.daysContainer!==undefined&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(e))}function Z(e){!(e.target===n._input)||!(n.selectedDates.length>0||n._input.value.length>0)||e.relatedTarget&&$(e.relatedTarget)||n.setDate(n._input.value,!0,e.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function ee(t){const r=g(t),o=n.config.wrap?e.contains(r):r===n._input,a=n.config.allowInput,i=n.isOpen&&(!a||!o),s=n.config.inline&&o&&!a;if(13===t.keyCode&&o){if(a)return n.setDate(n._input.value,!0,r===n.altInput?n.config.altFormat:n.config.dateFormat),r.blur();n.open()}else if($(r)||i||s){const e=!!n.timeContainer&&n.timeContainer.contains(r);switch(t.keyCode){case 13:e?(t.preventDefault(),y(),ue()):ce(t);break;case 27:t.preventDefault(),ue();break;case 8:case 46:o&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(e||o)n.hourElement&&n.hourElement.focus();else if(t.preventDefault(),n.daysContainer!==undefined&&(!1===a||document.activeElement&&X(document.activeElement))){const e=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),K(e),F(V(1),0)):F(undefined,e)}break;case 38:case 40:t.preventDefault();const i=40===t.keyCode?1:-1;n.daysContainer&&r.$i!==undefined||r===n.input||r===n.altInput?t.ctrlKey?(t.stopPropagation(),J(n.currentYear-i),F(V(1),0)):e||F(undefined,7*i):r===n.currentYearElement?J(n.currentYear-i):n.config.enableTime&&(!e&&n.hourElement&&n.hourElement.focus(),y(t),n._debouncedChange());break;case 9:if(e){const e=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter((e=>e)),o=e.indexOf(r);if(-1!==o){const r=e[o+(t.shiftKey?-1:1)];t.preventDefault(),(r||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(r)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(n.amPM!==undefined&&r===n.amPM)switch(t.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],C(),be();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],C(),be()}(o||$(r))&&pe("onKeyDown",t)}function te(e){if(1!==n.selectedDates.length||e&&(!e.classList.contains("flatpickr-day")||e.classList.contains("flatpickr-disabled")))return;const t=e?e.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),r=n.parseDate(n.selectedDates[0],undefined,!0).getTime(),o=Math.min(t,n.selectedDates[0].getTime()),a=Math.max(t,n.selectedDates[0].getTime());let i=!1,s=0,u=0;for(let e=o;e<a;e+=k)Q(new Date(e),!0)||(i=i||e>o&&e<a,e<r&&(!s||e>s)?s=e:e>r&&(!u||e<u)&&(u=e));for(let o=0;o<n.config.showMonths;o++){const a=n.daysContainer.children[o];for(let o=0,d=a.children.length;o<d;o++){const d=a.children[o],p=d.dateObj.getTime(),h=s>0&&p<s||u>0&&p>u;h?(d.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((e=>{d.classList.remove(e)}))):i&&!h||(["startRange","inRange","endRange","notAllowed"].forEach((e=>{d.classList.remove(e)})),e!==undefined&&(e.classList.add(t<=n.selectedDates[0].getTime()?"startRange":"endRange"),r<t&&p===r?d.classList.add("startRange"):r>t&&p===r&&d.classList.add("endRange"),p>=s&&(0===u||p<=u)&&(l=r,f=t,(c=p)>Math.min(l,f)&&c<Math.max(l,f))&&d.classList.add("inRange")))}}var c,l,f}function ne(){!n.isOpen||n.config["static"]||n.config.inline||ie()}function re(e){return t=>{const r=n.config[`_${e}Date`]=n.parseDate(t,n.config.dateFormat),o=n.config[`_${"min"===e?"max":"min"}Date`];r!==undefined&&(n["min"===e?"minDateHasTime":"maxDateHasTime"]=r.getHours()>0||r.getMinutes()>0||r.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter((e=>Q(e))),n.selectedDates.length||"min"!==e||E(r),be()),n.daysContainer&&(se(),r!==undefined?n.currentYearElement[e]=r.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!o&&r!==undefined&&o.getFullYear()===r.getFullYear())}}function oe(){return n.config.wrap?e.querySelector("[data-input]"):e}function ae(){"object"!=typeof n.config.locale&&"undefined"==typeof _.l10ns[n.config.locale]&&n.config.errorHandler(new Error(`flatpickr: invalid locale ${n.config.locale}`)),n.l10n=Object.assign(Object.assign({},_.l10ns["default"]),"object"==typeof n.config.locale?n.config.locale:"default"!==n.config.locale?_.l10ns[n.config.locale]:undefined),w.K=`(${n.l10n.amPM[0]}|${n.l10n.amPM[1]}|${n.l10n.amPM[0].toLowerCase()}|${n.l10n.amPM[1].toLowerCase()})`;Object.assign(Object.assign({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr===undefined&&_.defaultConfig.time_24hr===undefined&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=O(n),n.parseDate=x({config:n.config,l10n:n.l10n})}function ie(e){if("function"==typeof n.config.position)return void n.config.position(n,e);if(n.calendarContainer===undefined)return;pe("onPreCalendarPosition");const t=e||n._positionElement,r=Array.prototype.reduce.call(n.calendarContainer.children,((e,t)=>e+t.offsetHeight),0),o=n.calendarContainer.offsetWidth,a=n.config.position.split(" "),i=a[0],s=a.length>1?a[1]:null,u=t.getBoundingClientRect(),c=window.innerHeight-u.bottom,l="above"===i||"below"!==i&&c<r&&u.top>r,d=window.pageYOffset+u.top+(l?-r-2:t.offsetHeight+2);if(f(n.calendarContainer,"arrowTop",!l),f(n.calendarContainer,"arrowBottom",l),n.config.inline)return;let p=window.pageXOffset+u.left,h=!1,m=!1;"center"===s?(p-=(o-u.width)/2,h=!0):"right"===s&&(p-=o-u.width,m=!0),f(n.calendarContainer,"arrowLeft",!h&&!m),f(n.calendarContainer,"arrowCenter",h),f(n.calendarContainer,"arrowRight",m);const g=window.document.body.offsetWidth-(window.pageXOffset+u.right),v=p+o>window.document.body.offsetWidth,b=g+o>window.document.body.offsetWidth;if(f(n.calendarContainer,"rightMost",v),!n.config["static"])if(n.calendarContainer.style.top=`${d}px`,v)if(b){const e=function(){let e=null;for(let n=0;n<document.styleSheets.length;n++){const r=document.styleSheets[n];try{r.cssRules}catch(t){continue}e=r;break}return null!=e?e:function(){const e=document.createElement("style");return document.head.appendChild(e),e.sheet}()}();if(e===undefined)return;const t=window.document.body.offsetWidth,r=Math.max(0,t/2-o/2),a=".flatpickr-calendar.centerMost:before",i=".flatpickr-calendar.centerMost:after",s=e.cssRules.length,c=`{left:${u.left}px;right:auto;}`;f(n.calendarContainer,"rightMost",!1),f(n.calendarContainer,"centerMost",!0),e.insertRule(`${a},${i}${c}`,s),n.calendarContainer.style.left=`${r}px`,n.calendarContainer.style.right="auto"}else n.calendarContainer.style.left="auto",n.calendarContainer.style.right=`${g}px`;else n.calendarContainer.style.left=`${p}px`,n.calendarContainer.style.right="auto"}function se(){n.config.noCalendar||n.isMobile||(W(),ge(),U())}function ue(){n._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||navigator.msMaxTouchPoints!==undefined?setTimeout(n.close,0):n.close()}function ce(e){e.preventDefault(),e.stopPropagation();const t=h(g(e),(e=>e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")));if(t===undefined)return;const r=t,o=n.latestSelectedDateObj=new Date(r.dateObj.getTime()),a=(o.getMonth()<n.currentMonth||o.getMonth()>n.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=r,"single"===n.config.mode)n.selectedDates=[o];else if("multiple"===n.config.mode){const e=me(o);e?n.selectedDates.splice(parseInt(e),1):n.selectedDates.push(o)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=o,n.selectedDates.push(o),0!==D(o,n.selectedDates[0],!0)&&n.selectedDates.sort(((e,t)=>e.getTime()-t.getTime())));if(C(),a){const e=n.currentYear!==o.getFullYear();n.currentYear=o.getFullYear(),n.currentMonth=o.getMonth(),e&&(pe("onYearChange"),W()),pe("onMonthChange")}if(ge(),U(),be(),a||"range"===n.config.mode||1!==n.config.showMonths?n.selectedDateElem!==undefined&&n.hourElement===undefined&&n.selectedDateElem&&n.selectedDateElem.focus():L(r),n.hourElement!==undefined&&n.hourElement!==undefined&&n.hourElement.focus(),n.config.closeOnSelect){const e="single"===n.config.mode&&!n.config.enableTime,t="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(e||t)&&ue()}T()}n.parseDate=x({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=j,n._setHoursFromDate=E,n._positionCalendar=ie,n.changeMonth=K,n.changeYear=J,n.clear=function(e=!0,t=!0){n.input.value="",n.altInput!==undefined&&(n.altInput.value="");n.mobileInput!==undefined&&(n.mobileInput.value="");n.selectedDates=[],n.latestSelectedDateObj=undefined,!0===t&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){const{hours:e,minutes:t,seconds:r}=S(n.config);M(e,t,r)}n.redraw(),e&&pe("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(n.calendarContainer!==undefined&&n.calendarContainer.classList.remove("open"),n._input!==undefined&&n._input.classList.remove("active"));pe("onClose")},n._createElement=d,n.destroy=function(){n.config!==undefined&&pe("onDestroy");for(let e=n._handlers.length;e--;)n._handlers[e].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=undefined;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config["static"]&&n.calendarContainer.parentNode){const e=n.calendarContainer.parentNode;if(e.lastChild&&e.removeChild(e.lastChild),e.parentNode){for(;e.firstChild;)e.parentNode.insertBefore(e.firstChild,e);e.parentNode.removeChild(e)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((e=>{try{delete n[e]}catch(t){}}))},n.isEnabled=Q,n.jumpToDate=A,n.open=function(e,t=n._positionElement){if(!0===n.isMobile){if(e){e.preventDefault();const t=g(e);t&&t.blur()}return n.mobileInput!==undefined&&(n.mobileInput.focus(),n.mobileInput.click()),void pe("onOpen")}if(n._input.disabled||n.config.inline)return;const r=n.isOpen;n.isOpen=!0,r||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),pe("onOpen"),ie(t));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||e!==undefined&&n.timeContainer.contains(e.relatedTarget)||setTimeout((()=>n.hourElement.select()),50))},n.redraw=se,n.set=function(e,t){if(null!==e&&"object"==typeof e){Object.assign(n.config,e);for(const t in e)le[t]!==undefined&&le[t].forEach((e=>e()))}else n.config[e]=t,le[e]!==undefined?le[e].forEach((e=>e())):r.indexOf(e)>-1&&(n.config[e]=l(t));n.redraw(),be(!0)},n.setDate=function(e,t=!1,r=n.config.dateFormat){if(0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);fe(e,r),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),A(undefined,t),E(),0===n.selectedDates.length&&n.clear(!1);be(t),t&&pe("onChange")},n.toggle=function(e){if(!0===n.isOpen)return n.close();n.open(e)};const le={locale:[ae,q],showMonths:[B,v,Y],minDate:[A],maxDate:[A],clickOpens:[()=>{!0===n.config.clickOpens?(j(n._input,"focus",n.open),j(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function fe(e,t){let r=[];if(e instanceof Array)r=e.map((e=>n.parseDate(e,t)));else if(e instanceof Date||"number"==typeof e)r=[n.parseDate(e,t)];else if("string"==typeof e)switch(n.config.mode){case"single":case"time":r=[n.parseDate(e,t)];break;case"multiple":r=e.split(n.config.conjunction).map((e=>n.parseDate(e,t)));break;case"range":r=e.split(n.l10n.rangeSeparator).map((e=>n.parseDate(e,t)))}else n.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(e)}`));n.selectedDates=n.config.allowInvalidPreload?r:r.filter((e=>e instanceof Date&&Q(e,!1))),"range"===n.config.mode&&n.selectedDates.sort(((e,t)=>e.getTime()-t.getTime()))}function de(e){return e.slice().map((e=>"string"==typeof e||"number"==typeof e||e instanceof Date?n.parseDate(e,undefined,!0):e&&"object"==typeof e&&e.from&&e.to?{from:n.parseDate(e.from,undefined),to:n.parseDate(e.to,undefined)}:e)).filter((e=>e))}function pe(e,t){if(n.config===undefined)return;const r=n.config[e];if(r!==undefined&&r.length>0)for(let e=0;r[e]&&e<r.length;e++)r[e](n.selectedDates,n.input.value,n,t);"onChange"===e&&(n.input.dispatchEvent(he("change")),n.input.dispatchEvent(he("input")))}function he(e){const t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function me(e){for(let t=0;t<n.selectedDates.length;t++)if(0===D(n.selectedDates[t],e))return""+t;return!1}function ge(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach(((e,t)=>{const r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+t),n.config.showMonths>1||"static"===n.config.monthSelectorType?n.monthElements[t].textContent=b(r.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=r.getMonth().toString(),e.value=r.getFullYear().toString()})),n._hidePrevMonthArrow=n.config.minDate!==undefined&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=n.config.maxDate!==undefined&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function ve(e){return n.selectedDates.map((t=>n.formatDate(t,e))).filter(((e,t,r)=>"range"!==n.config.mode||n.config.enableTime||r.indexOf(e)===t)).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function be(e=!0){n.mobileInput!==undefined&&n.mobileFormatStr&&(n.mobileInput.value=n.latestSelectedDateObj!==undefined?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=ve(n.config.dateFormat),n.altInput!==undefined&&(n.altInput.value=ve(n.config.altFormat)),!1!==e&&pe("onValueUpdate")}function ye(e){const t=g(e),r=n.prevMonthNav.contains(t),o=n.nextMonthNav.contains(t);r||o?K(r?-1:1):n.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):t.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=e,n.isOpen=!1,function(){const i=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],s=Object.assign(Object.assign({},JSON.parse(JSON.stringify(e.dataset||{}))),t),u={};n.config.parseDate=s.parseDate,n.config.formatDate=s.formatDate,Object.defineProperty(n.config,"enable",{get:()=>n.config._enable,set:e=>{n.config._enable=de(e)}}),Object.defineProperty(n.config,"disable",{get:()=>n.config._disable,set:e=>{n.config._disable=de(e)}});const c="time"===s.mode;if(!s.dateFormat&&(s.enableTime||c)){const e=_.defaultConfig.dateFormat||o.dateFormat;u.dateFormat=s.noCalendar||c?"H:i"+(s.enableSeconds?":S":""):e+" H:i"+(s.enableSeconds?":S":"")}if(s.altInput&&(s.enableTime||c)&&!s.altFormat){const e=_.defaultConfig.altFormat||o.altFormat;u.altFormat=s.noCalendar||c?"h:i"+(s.enableSeconds?":S K":" K"):e+` h:i${s.enableSeconds?":S":""} K`}Object.defineProperty(n.config,"minDate",{get:()=>n.config._minDate,set:re("min")}),Object.defineProperty(n.config,"maxDate",{get:()=>n.config._maxDate,set:re("max")});const f=e=>t=>{n.config["min"===e?"_minTime":"_maxTime"]=n.parseDate(t,"H:i:S")};Object.defineProperty(n.config,"minTime",{get:()=>n.config._minTime,set:f("min")}),Object.defineProperty(n.config,"maxTime",{get:()=>n.config._maxTime,set:f("max")}),"time"===s.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0);Object.assign(n.config,u,s);for(let e=0;e<i.length;e++)n.config[i[e]]=!0===n.config[i[e]]||"true"===n.config[i[e]];r.filter((e=>n.config[e]!==undefined)).forEach((e=>{n.config[e]=l(n.config[e]||[]).map(a)})),n.isMobile=!n.config.disableMobile&&!n.config.inline&&"single"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(let e=0;e<n.config.plugins.length;e++){const t=n.config.plugins[e](n)||{};for(const e in t)r.indexOf(e)>-1?n.config[e]=l(t[e]).map(a).concat(n.config[e]):"undefined"==typeof s[e]&&(n.config[e]=t[e])}s.altInputClass||(n.config.altInputClass=oe().className+" "+n.config.altInputClass);pe("onParseConfig")}(),ae(),function(){if(n.input=oe(),!n.input)return void n.config.errorHandler(new Error("Invalid input element specified"));n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=d(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config["static"]&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling));n.config.allowInput||n._input.setAttribute("readonly","readonly");n._positionElement=n.config.positionElement||n._input}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;const e=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);e&&fe(e,n.config.dateFormat);n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]);n.config.minTime!==undefined&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i"));n.config.maxTime!==undefined&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i"));n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:(e=n.currentMonth,t=n.currentYear)=>1===e&&(t%4==0&&t%100!=0||t%400==0)?29:n.l10n.daysInMonth[e]},n.isMobile||function(){const e=window.document.createDocumentFragment();if(n.calendarContainer=d("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(e.appendChild((n.monthNav=d("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=d("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=d("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,B(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:()=>n.__hidePrevMonthArrow,set(e){n.__hidePrevMonthArrow!==e&&(f(n.prevMonthNav,"flatpickr-disabled",e),n.__hidePrevMonthArrow=e)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:()=>n.__hideNextMonthArrow,set(e){n.__hideNextMonthArrow!==e&&(f(n.nextMonthNav,"flatpickr-disabled",e),n.__hideNextMonthArrow=e)}}),n.currentYearElement=n.yearElements[0],ge(),n.monthNav)),n.innerContainer=d("div","flatpickr-innerContainer"),n.config.weekNumbers){const{weekWrapper:e,weekNumbers:t}=function(){n.calendarContainer.classList.add("hasWeeks");const e=d("div","flatpickr-weekwrapper");e.appendChild(d("span","flatpickr-weekday",n.l10n.weekAbbreviation));const t=d("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}();n.innerContainer.appendChild(e),n.weekNumbers=t,n.weekWrapper=e}n.rContainer=d("div","flatpickr-rContainer"),n.rContainer.appendChild(Y()),n.daysContainer||(n.daysContainer=d("div","flatpickr-days"),n.daysContainer.tabIndex=-1),U(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),e.appendChild(n.innerContainer)}n.config.enableTime&&e.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");const e=S(n.config);n.timeContainer=d("div","flatpickr-time"),n.timeContainer.tabIndex=-1;const t=d("span","flatpickr-time-separator",":"),r=m("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=r.getElementsByTagName("input")[0];const o=m("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});n.minuteElement=o.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=s(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),n.minuteElement.value=s(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():e.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(r),n.timeContainer.appendChild(t),n.timeContainer.appendChild(o),n.config.time_24hr&&n.timeContainer.classList.add("time24hr");if(n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");const t=m("flatpickr-second");n.secondElement=t.getElementsByTagName("input")[0],n.secondElement.value=s(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():e.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(d("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(t)}n.config.time_24hr||(n.amPM=d("span","flatpickr-am-pm",n.l10n.amPM[u((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM));return n.timeContainer}());f(n.calendarContainer,"rangeMode","range"===n.config.mode),f(n.calendarContainer,"animate",!0===n.config.animate),f(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(e);const t=n.config.appendTo!==undefined&&n.config.appendTo.nodeType!==undefined;if((n.config.inline||n.config["static"])&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!t&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):n.config.appendTo!==undefined&&n.config.appendTo.appendChild(n.calendarContainer)),n.config["static"])){const e=d("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(e,n.element),e.appendChild(n.element),n.altInput&&e.appendChild(n.altInput),e.appendChild(n.calendarContainer)}n.config["static"]||n.config.inline||(n.config.appendTo!==undefined?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){n.config.wrap&&["open","close","toggle","clear"].forEach((e=>{Array.prototype.forEach.call(n.element.querySelectorAll(`[data-${e}]`),(t=>j(t,"click",n[e])))}));if(n.isMobile)return void function(){const e=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=d("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=e,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr));n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d"));n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d"));n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step")));n.input.type="hidden",n.altInput!==undefined&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(t){}j(n.mobileInput,"change",(e=>{n.setDate(g(e).value,!1,n.mobileFormatStr),pe("onChange"),pe("onClose")}))}();const e=c(ne,50);n._debouncedChange=c(T,300),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&j(n.daysContainer,"mouseover",(e=>{"range"===n.config.mode&&te(g(e))}));j(window.document.body,"keydown",ee),n.config.inline||n.config["static"]||j(window,"resize",e);window.ontouchstart!==undefined?j(window.document,"touchstart",G):j(window.document,"mousedown",G);j(window.document,"focus",G,{capture:!0}),!0===n.config.clickOpens&&(j(n._input,"focus",n.open),j(n._input,"click",n.open));n.daysContainer!==undefined&&(j(n.monthNav,"click",ye),j(n.monthNav,["keyup","increment"],P),j(n.daysContainer,"click",ce));if(n.timeContainer!==undefined&&n.minuteElement!==undefined&&n.hourElement!==undefined){const e=e=>g(e).select();j(n.timeContainer,["increment"],y),j(n.timeContainer,"blur",y,{capture:!0}),j(n.timeContainer,"click",I),j([n.hourElement,n.minuteElement],["focus","click"],e),n.secondElement!==undefined&&j(n.secondElement,"focus",(()=>n.secondElement&&n.secondElement.select())),n.amPM!==undefined&&j(n.amPM,"click",(e=>{y(e),T()}))}n.config.allowInput&&j(n._input,"blur",Z)}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&E(n.config.noCalendar?n.latestSelectedDateObj:undefined),be(!1)),v();const i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&i&&ie(),pe("onReady")}(),n}function M(e,t){const n=Array.prototype.slice.call(e).filter((e=>e instanceof HTMLElement)),r=[];for(let e=0;e<n.length;e++){const a=n[e];try{if(null!==a.getAttribute("data-fp-omit"))continue;a._flatpickr!==undefined&&(a._flatpickr.destroy(),a._flatpickr=undefined),a._flatpickr=E(a,t||{}),r.push(a._flatpickr)}catch(o){console.error(o)}}return 1===r.length?r[0]:r}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return M(this,e)},HTMLElement.prototype.flatpickr=function(e){return M([this],e)});var _=function(e,t){return"string"==typeof e?M(window.document.querySelectorAll(e),t):e instanceof Node?M([e],t):M(e,t)};_.defaultConfig={},_.l10ns={en:Object.assign({},i),"default":Object.assign({},i)},_.localize=e=>{_.l10ns["default"]=Object.assign(Object.assign({},_.l10ns["default"]),e)},_.setDefaults=e=>{_.defaultConfig=Object.assign(Object.assign({},_.defaultConfig),e)},_.parseDate=x({}),_.formatDate=O({}),_.compareDates=D,"undefined"!=typeof jQuery&&"undefined"!=typeof jQuery.fn&&(jQuery.fn.flatpickr=function(e){return M(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=_);var P=_},895:function(){"use strict";"function"!=typeof Object.assign&&(Object.assign=function(e,...t){if(!e)throw TypeError("Cannot convert undefined or null to object");for(const n of t)n&&Object.keys(n).forEach((t=>e[t]=n[t]));return e})},705:function(e,t,n){var r=n(638).Symbol;e.exports=r},239:function(e,t,n){var r=n(705),o=n(607),a=n(333),i=r?r.toStringTag:undefined;e.exports=function(e){return null==e?e===undefined?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},607:function(e,t,n){var r=n(705),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:undefined;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=undefined;var r=!0}catch(u){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},638:function(e,t,n){var r=n(957),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},469:function(e){var t=Array.isArray;e.exports=t},654:function(e,t,n){var r=n(763);e.exports=function(e){return r(e)&&e!=+e}},763:function(e,t,n){var r=n(239),o=n(5);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},5:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},37:function(e,t,n){var r=n(239),o=n(469),a=n(5);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},353:function(e){e.exports=function(e){return e===undefined}},251:function(e){"use strict";
2
  /*!
3
  * MoveTo - A lightweight scroll animation javascript library without any dependency.
4
  * Version 1.8.2 (28-06-2019 14:30)
@@ -9,7 +9,7 @@
9
  Copyright (c) 2017 Jed Watson.
10
  Licensed under the MIT License (MIT), see
11
  http://jedwatson.github.io/classnames
12
- */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o["default"]=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,i=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,c=s||u||Function("return this")(),l=Object.prototype.toString,f=c.Symbol,d=f?f.prototype:void 0,p=d?d.toString:void 0;function h(e){if("string"==typeof e)return e;if(g(e))return p?p.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}function v(e){return e?(e=function(e){if("number"==typeof e)return e;if(g(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=o.test(e);return s||a.test(e)?i(e.slice(2),s?2:8):r.test(e)?NaN:+e}(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}e.exports=function(e,t,n){var r,o,a;return e=null==(r=e)?"":h(r),o=function(e){var t=v(e),n=t%1;return t==t?n?t-n:t:0}(n),0,a=e.length,o==o&&(void 0!==a&&(o=o<=a?o:a),o=o>=0?o:0),n=o,t=h(t),e.slice(n,n+t.length)==t}}).call(this,n(3))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){var n,r=/^\[object .+?Constructor\]$/,o="object"==typeof t&&t&&t.Object===Object&&t,a="object"==typeof self&&self&&self.Object===Object&&self,i=o||a||Function("return this")(),s=Array.prototype,u=Function.prototype,c=Object.prototype,l=i["__core-js_shared__"],f=(n=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",d=u.toString,p=c.hasOwnProperty,h=c.toString,m=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),g=s.splice,v=k(i,"Map"),b=k(Object,"create");function y(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function w(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function O(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function x(e){return!(!E(e)||(t=e,f&&f in t))&&(function(e){var t=E(e)?h.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?m:r).test(function(e){if(null!=e){try{return d.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function D(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function k(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return x(n)?n:void 0}function S(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(S.Cache||C),n}function E(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}y.prototype.clear=function(){this.__data__=b?b(null):{}},y.prototype["delete"]=function(e){return this.has(e)&&delete this.__data__[e]},y.prototype.get=function(e){var t=this.__data__;if(b){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return p.call(t,e)?t[e]:void 0},y.prototype.has=function(e){var t=this.__data__;return b?void 0!==t[e]:p.call(t,e)},y.prototype.set=function(e,t){return this.__data__[e]=b&&void 0===t?"__lodash_hash_undefined__":t,this},w.prototype.clear=function(){this.__data__=[]},w.prototype["delete"]=function(e){var t=this.__data__,n=O(t,e);return!(n<0||(n==t.length-1?t.pop():g.call(t,n,1),0))},w.prototype.get=function(e){var t=this.__data__,n=O(t,e);return n<0?void 0:t[n][1]},w.prototype.has=function(e){return O(this.__data__,e)>-1},w.prototype.set=function(e,t){var n=this.__data__,r=O(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new y,map:new(v||w),string:new y}},C.prototype["delete"]=function(e){return D(this,e)["delete"](e)},C.prototype.get=function(e){return D(this,e).get(e)},C.prototype.has=function(e){return D(this,e).has(e)},C.prototype.set=function(e,t){return D(this,e).set(e,t),this},S.Cache=C,e.exports=S}).call(this,n(3))},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,i=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,c=s||u||Function("return this")(),l=Object.prototype.toString,f=Math.max,d=Math.min,p=function(){return c.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=o.test(e);return s||a.test(e)?i(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,a,i,s,u,c=0,l=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=r,a=o;return r=o=void 0,c=t,i=e.apply(a,n)}function y(e){return c=e,s=setTimeout(C,t),l?b(e):i}function w(e){var n=e-u;return void 0===u||n>=t||n<0||g&&e-c>=a}function C(){var e=p();if(w(e))return O(e);s=setTimeout(C,function(e){var n=t-(e-u);return g?d(n,a-(e-c)):n}(e))}function O(e){return s=void 0,v&&r?b(e):(r=o=void 0,i)}function x(){var e=p(),n=w(e);if(r=arguments,o=this,u=e,n){if(void 0===s)return y(u);if(g)return s=setTimeout(C,t),b(u)}return void 0===s&&(s=setTimeout(C,t)),i}return t=m(t)||0,h(n)&&(l=!!n.leading,a=(g="maxWait"in n)?f(m(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=o=s=void 0},x.flush=function(){return void 0===s?i:O(p())},x}}).call(this,n(3))},function(e,t,n){(function(e,n){var r="[object Arguments]",o="[object Map]",a="[object Object]",i="[object Set]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,c=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[r]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h["[object Function]"]=h[o]=h["[object Number]"]=h[a]=h["[object RegExp]"]=h[i]=h["[object String]"]=h["[object WeakMap]"]=!1;var m="object"==typeof e&&e&&e.Object===Object&&e,g="object"==typeof self&&self&&self.Object===Object&&self,v=m||g||Function("return this")(),b=t&&!t.nodeType&&t,y=b&&"object"==typeof n&&n&&!n.nodeType&&n,w=y&&y.exports===b&&m.process,C=function(){try{return w&&w.binding("util")}catch(e){}}(),O=C&&C.isTypedArray;function x(e,t,n,r){var o=-1,a=e?e.length:0;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function D(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function k(e,t,n,r,o){return o(e,(function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)})),n}function S(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function E(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function M(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var _,P,j,T=Array.prototype,A=Function.prototype,I=Object.prototype,N=v["__core-js_shared__"],R=(_=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"",L=A.toString,V=I.hasOwnProperty,F=I.toString,H=RegExp("^"+L.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U=v.Symbol,W=v.Uint8Array,z=I.propertyIsEnumerable,B=T.splice,Y=(P=Object.keys,j=Object,function(e){return P(j(e))}),q=Oe(v,"DataView"),K=Oe(v,"Map"),$=Oe(v,"Promise"),G=Oe(v,"Set"),J=Oe(v,"WeakMap"),Q=Oe(Object,"create"),X=Pe(q),Z=Pe(K),ee=Pe($),te=Pe(G),ne=Pe(J),re=U?U.prototype:void 0,oe=re?re.valueOf:void 0,ae=re?re.toString:void 0;function ie(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ue(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ce(e){var t=-1,n=e?e.length:0;for(this.__data__=new ue;++t<n;)this.add(e[t])}function le(e){this.__data__=new se(e)}function fe(e,t){for(var n=e.length;n--;)if(Te(e[n][0],t))return n;return-1}ie.prototype.clear=function(){this.__data__=Q?Q(null):{}},ie.prototype["delete"]=function(e){return this.has(e)&&delete this.__data__[e]},ie.prototype.get=function(e){var t=this.__data__;if(Q){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return V.call(t,e)?t[e]:void 0},ie.prototype.has=function(e){var t=this.__data__;return Q?void 0!==t[e]:V.call(t,e)},ie.prototype.set=function(e,t){return this.__data__[e]=Q&&void 0===t?"__lodash_hash_undefined__":t,this},se.prototype.clear=function(){this.__data__=[]},se.prototype["delete"]=function(e){var t=this.__data__,n=fe(t,e);return!(n<0||(n==t.length-1?t.pop():B.call(t,n,1),0))},se.prototype.get=function(e){var t=this.__data__,n=fe(t,e);return n<0?void 0:t[n][1]},se.prototype.has=function(e){return fe(this.__data__,e)>-1},se.prototype.set=function(e,t){var n=this.__data__,r=fe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ue.prototype.clear=function(){this.__data__={hash:new ie,map:new(K||se),string:new ie}},ue.prototype["delete"]=function(e){return Ce(this,e)["delete"](e)},ue.prototype.get=function(e){return Ce(this,e).get(e)},ue.prototype.has=function(e){return Ce(this,e).has(e)},ue.prototype.set=function(e,t){return Ce(this,e).set(e,t),this},ce.prototype.add=ce.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ce.prototype.has=function(e){return this.__data__.has(e)},le.prototype.clear=function(){this.__data__=new se},le.prototype["delete"]=function(e){return this.__data__["delete"](e)},le.prototype.get=function(e){return this.__data__.get(e)},le.prototype.has=function(e){return this.__data__.has(e)},le.prototype.set=function(e,t){var n=this.__data__;if(n instanceof se){var r=n.__data__;if(!K||r.length<199)return r.push([e,t]),this;n=this.__data__=new ue(r)}return n.set(e,t),this};var de,pe=(de=function(e,t){return e&&he(e,t,We)},function(e,t){if(null==e)return e;if(!Ne(e))return de(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),he=function(e,t,n){for(var r=-1,o=Object(e),a=n(e),i=a.length;i--;){var s=a[++r];if(!1===t(o[s],s,o))break}return e};function me(e,t){for(var n=0,r=(t=ke(t,e)?[t]:ye(t)).length;null!=e&&n<r;)e=e[_e(t[n++])];return n&&n==r?e:void 0}function ge(e,t){return null!=e&&t in Object(e)}function ve(e,t,n,s,u){return e===t||(null==e||null==t||!Ve(e)&&!Fe(t)?e!=e&&t!=t:function(e,t,n,s,u,c){var l=Ie(e),f=Ie(t),d="[object Array]",p="[object Array]";l||(d=(d=xe(e))==r?a:d),f||(p=(p=xe(t))==r?a:p);var h=d==a&&!S(e),m=p==a&&!S(t),g=d==p;if(g&&!h)return c||(c=new le),l||Ue(e)?we(e,t,n,s,u,c):function(e,t,n,r,a,s,u){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new W(e),new W(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Te(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case o:var c=E;case i:var l=2&s;if(c||(c=M),e.size!=t.size&&!l)return!1;var f=u.get(e);if(f)return f==t;s|=1,u.set(e,t);var d=we(c(e),c(t),r,a,s,u);return u["delete"](e),d;case"[object Symbol]":if(oe)return oe.call(e)==oe.call(t)}return!1}(e,t,d,n,s,u,c);if(!(2&u)){var v=h&&V.call(e,"__wrapped__"),b=m&&V.call(t,"__wrapped__");if(v||b){var y=v?e.value():e,w=b?t.value():t;return c||(c=new le),n(y,w,s,u,c)}}return!!g&&(c||(c=new le),function(e,t,n,r,o,a){var i=2&o,s=We(e),u=s.length;if(u!=We(t).length&&!i)return!1;for(var c=u;c--;){var l=s[c];if(!(i?l in t:V.call(t,l)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var d=!0;a.set(e,t),a.set(t,e);for(var p=i;++c<u;){var h=e[l=s[c]],m=t[l];if(r)var g=i?r(m,h,l,t,e,a):r(h,m,l,e,t,a);if(!(void 0===g?h===m||n(h,m,r,o,a):g)){d=!1;break}p||(p="constructor"==l)}if(d&&!p){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(d=!1)}return a["delete"](e),a["delete"](t),d}(e,t,n,s,u,c))}(e,t,ve,n,s,u))}function be(e){return"function"==typeof e?e:null==e?ze:"object"==typeof e?Ie(e)?function(e,t){return ke(e)&&Se(t)?Ee(_e(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:me(e,t);return void 0===r?void 0:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){for(var r,o=-1,a=(t=ke(t,e)?[t]:ye(t)).length;++o<a;){var i=_e(t[o]);if(!(r=null!=e&&n(e,i)))break;e=e[i]}return r||!!(a=e?e.length:0)&&Le(a)&&De(i,a)&&(Ie(e)||Ae(e))}(e,t,ge)}(n,e):ve(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=We(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Se(o)]}return t}(e);return 1==t.length&&t[0][2]?Ee(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var o=n.length,a=o;if(null==e)return!a;for(e=Object(e);o--;){var i=n[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){var s=(i=n[o])[0],u=e[s],c=i[1];if(i[2]){if(void 0===u&&!(s in e))return!1}else{var l,f=new le;if(!(void 0===l?ve(c,u,r,3,f):l))return!1}}return!0}(n,0,t)}}(e):ke(t=e)?(n=_e(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return me(t,e)}}(t);var t,n}function ye(e){return Ie(e)?e:Me(e)}function we(e,t,n,r,o,a){var i=2&o,s=e.length,u=t.length;if(s!=u&&!(i&&u>s))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var l=-1,f=!0,d=1&o?new ce:void 0;for(a.set(e,t),a.set(t,e);++l<s;){var p=e[l],h=t[l];if(r)var m=i?r(h,p,l,t,e,a):r(p,h,l,e,t,a);if(void 0!==m){if(m)continue;f=!1;break}if(d){if(!D(t,(function(e,t){if(!d.has(t)&&(p===e||n(p,e,r,o,a)))return d.add(t)}))){f=!1;break}}else if(p!==h&&!n(p,h,r,o,a)){f=!1;break}}return a["delete"](e),a["delete"](t),f}function Ce(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Oe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ve(e)||function(e){return!!R&&R in e}(e))&&(Re(e)||S(e)?H:d).test(Pe(e))}(n)?n:void 0}var xe=function(e){return F.call(e)};function De(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||p.test(e))&&e>-1&&e%1==0&&e<t}function ke(e,t){if(Ie(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!He(e))||u.test(e)||!s.test(e)||null!=t&&e in Object(t)}function Se(e){return e==e&&!Ve(e)}function Ee(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(q&&"[object DataView]"!=xe(new q(new ArrayBuffer(1)))||K&&xe(new K)!=o||$&&"[object Promise]"!=xe($.resolve())||G&&xe(new G)!=i||J&&"[object WeakMap]"!=xe(new J))&&(xe=function(e){var t=F.call(e),n=t==a?e.constructor:void 0,r=n?Pe(n):void 0;if(r)switch(r){case X:return"[object DataView]";case Z:return o;case ee:return"[object Promise]";case te:return i;case ne:return"[object WeakMap]"}return t});var Me=je((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(He(e))return ae?ae.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return c.test(e)&&n.push(""),e.replace(l,(function(e,t,r,o){n.push(r?o.replace(f,"$1"):t||e)})),n}));function _e(e){if("string"==typeof e||He(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Pe(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function je(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(je.Cache||ue),n}function Te(e,t){return e===t||e!=e&&t!=t}function Ae(e){return function(e){return Fe(e)&&Ne(e)}(e)&&V.call(e,"callee")&&(!z.call(e,"callee")||F.call(e)==r)}je.Cache=ue;var Ie=Array.isArray;function Ne(e){return null!=e&&Le(e.length)&&!Re(e)}function Re(e){var t=Ve(e)?F.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Le(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ve(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Fe(e){return!!e&&"object"==typeof e}function He(e){return"symbol"==typeof e||Fe(e)&&"[object Symbol]"==F.call(e)}var Ue=O?function(e){return function(t){return e(t)}}(O):function(e){return Fe(e)&&Le(e.length)&&!!h[F.call(e)]};function We(e){return Ne(e)?function(e,t){var n=Ie(e)||Ae(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!V.call(e,a)||o&&("length"==a||De(a,r))||n.push(a);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||I))return Y(e);var t,n,r=[];for(var o in Object(e))V.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function ze(e){return e}n.exports=function(e,t,n){var r=Ie(e)?x:k,o=arguments.length<3;return r(e,be(t),n,o,pe)}}).call(this,n(3),n(7)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),String(this)+t.slice(0,e))})},function(e,t,n){"use strict";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}function o(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(e){if(Array.isArray(e))return e}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e){return(f="function"==typeof Symbol&&"symbol"===l(Symbol.iterator)?function(e){return l(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":l(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t);var m=n(0),g=n.n(m),v=n(5),b=n.n(v),y=n(4),w=n.n(y),C=n(6),O=n.n(C),x=n(2),D=n.n(x),k=n(1),S=n.n(k);function E(e,t){return i(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s["return"]||s["return"]()}finally{if(o)throw a}}return n}(e,t)||s()}n(8);var M=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420"],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996"],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371"],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998"],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],_=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barthélemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function P(e,t,n,r,o){return!n||o?e+"".padEnd(t.length,".")+" "+r:e+"".padEnd(t.length,".")+" "+n}function j(e,t,n,o,i){var s,u,c=[];return u=!0===t,[(s=[]).concat.apply(s,a(e.map((function(e){var a={name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],dialCode:e[3],format:P(n,e[3],e[4],o,i),priority:e[5]||0},s=[];return e[6]&&e[6].map((function(t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},a);n.dialCode=e[3]+t,n.isAreaCode=!0,n.areaCodeLength=t.length,s.push(n)})),s.length>0?(a.mainCode=!0,u||"Array"===t.constructor.name&&t.includes(e[2])?(a.hasAreaCodes=!0,[a].concat(s)):(c=c.concat(s),[a])):[a]})))),c]}function T(e,t,n,r){if(null!==n){var o=Object.keys(n),a=Object.values(n);o.forEach((function(n,o){if(r)return e.push([n,a[o]]);var i=e.findIndex((function(e){return e[0]===n}));if(-1===i){var s=[n];s[t]=a[o],e.push(s)}else e[i][t]=a[o]}))}}function A(e,t){return 0===t.length?e:e.map((function(e){var n=t.findIndex((function(t){return t[0]===e[2]}));if(-1===n)return e;var r=t[n];return r[1]&&(e[4]=r[1]),r[3]&&(e[5]=r[3]),r[2]&&(e[6]=r[2]),e}))}var I=function R(e,t,n,r,o,i,s,c,l,f,d,p,h,m){u(this,R),this.filterRegions=function(e,t){if("string"==typeof e){var n=e;return t.filter((function(e){return e.regions.some((function(e){return e===n}))}))}return t.filter((function(t){return e.map((function(e){return t.regions.some((function(t){return t===e}))})).some((function(e){return e}))}))},this.sortTerritories=function(e,t){var n=[].concat(a(e),a(t));return n.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})),n},this.getFilteredCountryList=function(e,t,n){return 0===e.length?t:n?e.map((function(e){var n=t.find((function(t){return t.iso2===e}));if(n)return n})).filter((function(e){return e})):t.filter((function(t){return e.some((function(e){return e===t.iso2}))}))},this.localizeCountries=function(e,t,n){for(var r=0;r<e.length;r++)void 0!==t[e[r].iso2]?e[r].localName=t[e[r].iso2]:void 0!==t[e[r].name]&&(e[r].localName=t[e[r].name]);return n||e.sort((function(e,t){return e.localName<t.localName?-1:e.localName>t.localName?1:0})),e},this.getCustomAreas=function(e,t){for(var n=[],r=0;r<t.length;r++){var o=JSON.parse(JSON.stringify(e));o.dialCode+=t[r],n.push(o)}return n},this.excludeCountries=function(e,t){return 0===t.length?e:e.filter((function(e){return!t.includes(e.iso2)}))};var g=function(e,t,n){var r=[];return T(r,1,e,!0),T(r,3,t),T(r,2,n),r}(c,l,f),v=A(JSON.parse(JSON.stringify(M)),g),b=A(JSON.parse(JSON.stringify(_)),g),y=E(j(v,e,p,h,m),2),w=y[0],C=y[1];if(t){var O=E(j(b,e,p,h,m),2),x=O[0];O[1],w=this.sortTerritories(x,w)}n&&(w=this.filterRegions(n,w)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(r,w,s.includes("onlyCountries")),i),d,s.includes("onlyCountries")),this.preferredCountries=0===o.length?[]:this.localizeCountries(this.getFilteredCountryList(o,w,s.includes("preferredCountries")),d,s.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(r,C),i)},N=function(e){function t(e){var n;u(this,t),(n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?d(e):t}(this,p(t).call(this,e))).getProbableCandidate=w()((function(e){return e&&0!==e.length?n.state.onlyCountries.filter((function(t){return D()(t.name.toLowerCase(),e.toLowerCase())}),d(d(n)))[0]:null})),n.guessSelectedCountry=w()((function(e,t,r,o){var a;if(!1===n.props.enableAreaCodes&&(o.some((function(t){if(D()(e,t.dialCode))return r.some((function(e){if(t.iso2===e.iso2&&e.mainCode)return a=e,!0})),!0})),a))return a;var i=r.find((function(e){return e.iso2==t}));if(""===e.trim())return i;var s=r.reduce((function(t,n){if(D()(e,n.dialCode)){if(n.dialCode.length>t.dialCode.length)return n;if(n.dialCode.length===t.dialCode.length&&n.priority<t.priority)return n}return t}),{dialCode:"",priority:10001},d(d(n)));return s.name?s:i})),n.updateCountry=function(e){var t,r=n.state.onlyCountries;(t=e.indexOf(0)>="0"&&e.indexOf(0)<="9"?r.find((function(t){return t.dialCode==+e})):r.find((function(t){return t.iso2==e})))&&t.dialCode&&n.setState({selectedCountry:t,formattedNumber:n.props.disableCountryCode?"":n.formatNumber(t.dialCode,t)})},n.scrollTo=function(e,t){if(e){var r=n.dropdownRef;if(r&&document.body){var o=r.offsetHeight,a=r.getBoundingClientRect().top+document.body.scrollTop,i=a+o,s=e,u=s.getBoundingClientRect(),c=s.offsetHeight,l=u.top+document.body.scrollTop,f=l+c,d=l-a+r.scrollTop,p=o/2-c/2;if(n.props.enableSearch?l<a+32:l<a)t&&(d-=p),r.scrollTop=d;else if(f>i){t&&(d+=p);var h=o-c;r.scrollTop=d-h}}}},n.scrollToTop=function(){var e=n.dropdownRef;e&&document.body&&(e.scrollTop=0)},n.formatNumber=function(e,t){if(!t)return e;var r,a=t.format,u=n.props,c=u.disableCountryCode,l=u.enableAreaCodeStretch,f=u.enableLongNumbers,d=u.autoFormat;if(c?((r=a.split(" ")).shift(),r=r.join(" ")):l&&t.isAreaCode?((r=a.split(" "))[1]=r[1].replace(/\.+/,"".padEnd(t.areaCodeLength,".")),r=r.join(" ")):r=a,!e||0===e.length)return c?"":n.props.prefix;if(e&&e.length<2||!r||!d)return c?e:n.props.prefix+e;var p,h=O()(r,(function(e,t){if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};var n,r=i(n=e.remainingText)||o(n)||s(),a=r[0],u=r.slice(1);return{formattedText:e.formattedText+a,remainingText:u}}),{formattedText:"",remainingText:e.split("")});return(p=f?h.formattedText+h.remainingText.join(""):h.formattedText).includes("(")&&!p.includes(")")&&(p+=")"),p},n.cursorToEnd=function(){var e=n.numberInputRef;e.focus();var t=e.value.length;")"===e.value.charAt(t-1)&&(t-=1),e.setSelectionRange(t,t)},n.getElement=function(e){return n["flag_no_".concat(e)]},n.getCountryData=function(){return n.state.selectedCountry?{name:n.state.selectedCountry.name||"",dialCode:n.state.selectedCountry.dialCode||"",countryCode:n.state.selectedCountry.iso2||"",format:n.state.selectedCountry.format||""}:{}},n.handleFlagDropdownClick=function(e){if(e.preventDefault(),n.state.showDropdown||!n.props.disabled){var t=n.state,r=t.preferredCountries,o=t.selectedCountry,a=r.concat(n.state.onlyCountries).findIndex((function(e){return e.dialCode===o.dialCode&&e.iso2===o.iso2}));n.setState({showDropdown:!n.state.showDropdown,highlightCountryIndex:a},(function(){n.state.showDropdown&&n.scrollTo(n.getElement(n.state.highlightCountryIndex))}))}},n.handleInput=function(e){var t=e.target.value,r=n.props,o=r.prefix,a=r.onChange,i=n.props.disableCountryCode?"":o,s=n.state.selectedCountry,u=n.state.freezeSelection;if(!n.props.countryCodeEditable){var c=o+(s.hasAreaCodes?n.state.onlyCountries.find((function(e){return e.iso2===s.iso2&&e.mainCode})).dialCode:s.dialCode);if(t.slice(0,c.length)!==c)return}if(t===o)return a&&a("",n.getCountryData(),e,""),n.setState({formattedNumber:""});if(t.replace(/\D/g,"").length>15){if(!1===n.props.enableLongNumbers)return;if("number"==typeof n.props.enableLongNumbers&&t.replace(/\D/g,"").length>n.props.enableLongNumbers)return}if(t!==n.state.formattedNumber){e.preventDefault?e.preventDefault():e.returnValue=!1;var l=n.props.country,f=n.state,d=f.onlyCountries,p=f.selectedCountry,h=f.hiddenAreaCodes;if(a&&e.persist(),t.length>0){var m=t.replace(/\D/g,"");(!n.state.freezeSelection||p.dialCode.length>m.length)&&(s=n.props.disableCountryGuess?p:n.guessSelectedCountry(m.substring(0,6),l,d,h)||p,u=!1),i=n.formatNumber(m,s),s=s.dialCode?s:p}var g=e.target.selectionStart,v=n.state.formattedNumber,b=i.length-v.length;n.setState({formattedNumber:i,freezeSelection:u,selectedCountry:s},(function(){b>0&&(g-=b),")"==i.charAt(i.length-1)?n.numberInputRef.setSelectionRange(i.length-1,i.length-1):g>0&&v.length>=i.length&&n.numberInputRef.setSelectionRange(g,g),a&&a(i.replace(/[^0-9]+/g,""),n.getCountryData(),e,i)}))}},n.handleInputClick=function(e){n.setState({showDropdown:!1}),n.props.onClick&&n.props.onClick(e,n.getCountryData())},n.handleDoubleClick=function(e){var t=e.target.value.length;e.target.setSelectionRange(0,t)},n.handleFlagItemClick=function(e,t){var r=n.state.selectedCountry,o=n.state.onlyCountries.find((function(t){return t==e}));if(o){var a=n.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),i=a.length>1?a.replace(r.dialCode,o.dialCode):o.dialCode,s=n.formatNumber(i.replace(/\D/g,""),o);n.setState({showDropdown:!1,selectedCountry:o,freezeSelection:!0,formattedNumber:s},(function(){n.cursorToEnd(),n.props.onChange&&n.props.onChange(s.replace(/[^0-9]+/g,""),n.getCountryData(),t,s)}))}},n.handleInputFocus=function(e){n.numberInputRef&&n.numberInputRef.value===n.props.prefix&&n.state.selectedCountry&&!n.props.disableCountryCode&&n.setState({formattedNumber:n.props.prefix+n.state.selectedCountry.dialCode},(function(){n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)})),n.setState({placeholder:""}),n.props.onFocus&&n.props.onFocus(e,n.getCountryData()),n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)},n.handleInputBlur=function(e){e.target.value||n.setState({placeholder:n.props.placeholder}),n.props.onBlur&&n.props.onBlur(e,n.getCountryData())},n.handleInputCopy=function(e){if(n.props.copyNumbersOnly){var t=window.getSelection().toString().replace(/[^0-9]+/g,"");e.clipboardData.setData("text/plain",t),e.preventDefault()}},n.getHighlightCountryIndex=function(e){var t=n.state.highlightCountryIndex+e;return t<0||t>=n.state.onlyCountries.length+n.state.preferredCountries.length?t-e:n.props.enableSearch&&t>n.getSearchFilteredCountries().length?0:t},n.searchCountry=function(){var e=n.getProbableCandidate(n.state.queryString)||n.state.onlyCountries[0],t=n.state.onlyCountries.findIndex((function(t){return t==e}))+n.state.preferredCountries.length;n.scrollTo(n.getElement(t),!0),n.setState({queryString:"",highlightCountryIndex:t})},n.handleKeydown=function(e){var t=n.props.keys,r=e.target.className;if(r.includes("selected-flag")&&e.which===t.ENTER&&!n.state.showDropdown)return n.handleFlagDropdownClick(e);if(r.includes("form-control")&&(e.which===t.ENTER||e.which===t.ESC))return e.target.blur();if(n.state.showDropdown&&!n.props.disabled&&(!r.includes("search-box")||e.which===t.UP||e.which===t.DOWN||e.which===t.ENTER||e.which===t.ESC&&""===e.target.value)){e.preventDefault?e.preventDefault():e.returnValue=!1;var o=function(e){n.setState({highlightCountryIndex:n.getHighlightCountryIndex(e)},(function(){n.scrollTo(n.getElement(n.state.highlightCountryIndex),!0)}))};switch(e.which){case t.DOWN:o(1);break;case t.UP:o(-1);break;case t.ENTER:n.props.enableSearch?n.handleFlagItemClick(n.getSearchFilteredCountries()[n.state.highlightCountryIndex]||n.getSearchFilteredCountries()[0],e):n.handleFlagItemClick([].concat(a(n.state.preferredCountries),a(n.state.onlyCountries))[n.state.highlightCountryIndex],e);break;case t.ESC:case t.TAB:n.setState({showDropdown:!1},n.cursorToEnd);break;default:(e.which>=t.A&&e.which<=t.Z||e.which===t.SPACE)&&n.setState({queryString:n.state.queryString+String.fromCharCode(e.which)},n.state.debouncedQueryStingSearcher)}}},n.handleInputKeyDown=function(e){var t=n.props,r=t.keys,o=t.onEnterKeyPress,a=t.onKeyDown;e.which===r.ENTER&&o&&o(e),a&&a(e)},n.handleClickOutside=function(e){n.dropdownRef&&!n.dropdownContainerRef.contains(e.target)&&n.state.showDropdown&&n.setState({showDropdown:!1})},n.handleSearchChange=function(e){var t=e.currentTarget.value,r=n.state,o=r.preferredCountries,a=r.selectedCountry,i=0;if(""===t&&a){var s=n.state.onlyCountries;i=o.concat(s).findIndex((function(e){return e==a})),setTimeout((function(){return n.scrollTo(n.getElement(i))}),100)}n.setState({searchValue:t,highlightCountryIndex:i})},n.getDropdownCountryName=function(e){return e.localName||e.name},n.getSearchFilteredCountries=function(){var e=n.state,t=e.preferredCountries,r=e.onlyCountries,o=e.searchValue,i=n.props.enableSearch,s=t.concat(r),u=o.trim().toLowerCase();if(i&&u){if(/^\d+$/.test(u))return s.filter((function(e){var t=e.dialCode;return["".concat(t)].some((function(e){return e.toLowerCase().includes(u)}))}));var c=s.filter((function(e){var t=e.iso2;return["".concat(t)].some((function(e){return e.toLowerCase().includes(u)}))})),l=s.filter((function(e){var t=e.name,n=e.localName;return e.iso2,["".concat(t),"".concat(n||"")].some((function(e){return e.toLowerCase().includes(u)}))}));return n.scrollToTop(),a(new Set([].concat(c,l)))}return s},n.getCountryDropdownList=function(){var e,t=n.state,o=t.preferredCountries,a=t.highlightCountryIndex,i=t.showDropdown,s=t.searchValue,u=n.props,c=u.disableDropdown,l=u.prefix,f=n.props,d=f.enableSearch,p=f.searchNotFound,h=f.disableSearchIcon,m=f.searchClass,v=f.searchStyle,b=f.searchPlaceholder,y=f.autocompleteSearch,w=n.getSearchFilteredCountries().map((function(e,t){var r=a===t,o=S()({country:!0,preferred:"us"===e.iso2||"gb"===e.iso2,active:"us"===e.iso2,highlight:r}),i="flag ".concat(e.iso2);return g.a.createElement("li",Object.assign({ref:function(e){return n["flag_no_".concat(t)]=e},key:"flag_no_".concat(t),"data-flag-key":"flag_no_".concat(t),className:o,"data-dial-code":"1",tabIndex:c?"-1":"0","data-country-code":e.iso2,onClick:function(t){return n.handleFlagItemClick(e,t)},role:"option"},r?{"aria-selected":!0}:{}),g.a.createElement("div",{className:i}),g.a.createElement("span",{className:"country-name"},n.getDropdownCountryName(e)),g.a.createElement("span",{className:"dial-code"},e.format?n.formatNumber(e.dialCode,e):l+e.dialCode))})),C=g.a.createElement("li",{key:"dashes",className:"divider"});o.length>0&&(!d||d&&!s.trim())&&w.splice(o.length,0,C);var O=S()((r(e={},n.props.dropdownClass,!0),r(e,"country-list",!0),r(e,"hide",!i),e));return g.a.createElement("ul",{ref:function(e){return!d&&e&&e.focus(),n.dropdownRef=e},className:O,style:n.props.dropdownStyle,role:"listbox",tabIndex:"0"},d&&g.a.createElement("li",{className:S()(r({search:!0},m,m))},!h&&g.a.createElement("span",{className:S()(r({"search-emoji":!0},"".concat(m,"-emoji"),m)),role:"img","aria-label":"Magnifying glass"},"🔎"),g.a.createElement("input",{className:S()(r({"search-box":!0},"".concat(m,"-box"),m)),style:v,type:"search",placeholder:b,autoFocus:!0,autoComplete:y?"on":"off",value:s,onChange:n.handleSearchChange})),w.length>0?w:g.a.createElement("li",{className:"no-entries-message"},g.a.createElement("span",null,p)))};var c,l=new I(e.enableAreaCodes,e.enableTerritories,e.regions,e.onlyCountries,e.preferredCountries,e.excludeCountries,e.preserveOrder,e.masks,e.priority,e.areaCodes,e.localization,e.prefix,e.defaultMask,e.alwaysDefaultMask),h=l.onlyCountries,m=l.preferredCountries,v=l.hiddenAreaCodes,y=e.value?e.value.replace(/\D/g,""):"";c=e.disableInitialCountryGuess?0:y.length>1?n.guessSelectedCountry(y.substring(0,6),e.country,h,v)||0:e.country&&h.find((function(t){return t.iso2==e.country}))||0;var C,x=y.length<2&&c&&!D()(y,c.dialCode)?c.dialCode:"";C=""===y&&0===c?"":n.formatNumber((e.disableCountryCode?"":x)+y,c.name?c:void 0);var k=h.findIndex((function(e){return e==c}));return n.state={showDropdown:e.showDropdown,formattedNumber:C,onlyCountries:h,preferredCountries:m,hiddenAreaCodes:v,selectedCountry:c,highlightCountryIndex:k,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:b()(n.searchCountry,250),searchValue:""},n}var n,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(l=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(e,t,n){e.country!==this.props.country?this.updateCountry(this.props.country):e.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(e){if(null===e)return this.setState({selectedCountry:0,formattedNumber:""});var t=this.state,n=t.onlyCountries,r=t.selectedCountry,o=t.hiddenAreaCodes,a=this.props,i=a.country,s=a.prefix;if(""===e)return this.setState({selectedCountry:r,formattedNumber:""});var u,c,l=e.replace(/\D/g,"");if(r&&D()(e,s+r.dialCode))c=this.formatNumber(l,r),this.setState({formattedNumber:c});else{var f=(u=this.props.disableCountryGuess?r:this.guessSelectedCountry(l.substring(0,6),i,n,o)||r)&&D()(l,s+u.dialCode)?u.dialCode:"";c=this.formatNumber((this.props.disableCountryCode?"":f)+l,u||void 0),this.setState({selectedCountry:u,formattedNumber:c})}}},{key:"render",value:function(){var e,t,n,o,a,i=this,s=this.state,u=s.onlyCountries,c=s.selectedCountry,l=s.showDropdown,f=s.formattedNumber,d=s.hiddenAreaCodes,p=this.props,h=p.disableDropdown,m=p.renderStringAsFlag,v=p.isValid,b=p.defaultErrorMessage,y=p.specialLabel;if("boolean"==typeof v)o=v;else{var w=v(f.replace(/\D/g,""),c,u,d);"boolean"==typeof w?!1===(o=w)&&(a=b):(o=!1,a=w)}var C=S()((r(e={},this.props.containerClass,!0),r(e,"react-tel-input",!0),e)),O=S()({arrow:!0,up:l}),x=S()((r(t={},this.props.inputClass,!0),r(t,"form-control",!0),r(t,"invalid-number",!o),r(t,"open",l),t)),D=S()({"selected-flag":!0,open:l}),k=S()((r(n={},this.props.buttonClass,!0),r(n,"flag-dropdown",!0),r(n,"invalid-number",!o),r(n,"open",l),n)),E="flag ".concat(c&&c.iso2);return g.a.createElement("div",{className:C,style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},y&&g.a.createElement("div",{className:"special-label"},y),a&&g.a.createElement("div",{className:"invalid-number-message"},a),g.a.createElement("input",Object.assign({className:x,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:f,ref:function(e){return i.numberInputRef=e},onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps)),g.a.createElement("div",{className:k,style:this.props.buttonStyle,ref:function(e){return i.dropdownContainerRef=e}},m?g.a.createElement("div",{className:D},m):g.a.createElement("div",{onClick:h?void 0:this.handleFlagDropdownClick,className:D,title:c?"".concat(c.name,": + ").concat(c.dialCode):"",tabIndex:h?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!l||void 0},g.a.createElement("div",{className:E},!h&&g.a.createElement("div",{className:O}))),l&&this.getCountryDropdownList()))}}])&&c(n.prototype,l),t}(g.a.Component);N.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},t["default"]=N}])},73:function(e,t,n){var r;e.exports=(r=n(804),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(2)},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,r,o,a){n(this,e),this.startPoint=t,this.control1=r,this.control2=o,this.endPoint=a}return r(e,[{key:"length",value:function(){var e,t,n,r,o,a,i,s,u=10,c=0;for(e=0;u>=e;e++)t=e/u,n=this._point(t,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),r=this._point(t,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y),e>0&&(i=n-o,s=r-a,c+=Math.sqrt(i*i+s*s)),o=n,a=r;return c}},{key:"_point",value:function(e,t,n,r,o){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+o*e*e*e}}]),e}();t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(i)}var c=Object.getPrototypeOf(o);if(null===c)return;e=c,t=a,n=i,r=!0}},u=r(n(4)),c=r(n(1)),l=r(n(3)),f=function(e){function t(e){o(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.velocityFilterWeight=this.props.velocityFilterWeight||.7,this.minWidth=this.props.minWidth||.5,this.maxWidth=this.props.maxWidth||2.5,this.dotSize=this.props.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=this.props.penColor||"black",this.backgroundColor=this.props.backgroundColor||"rgba(0,0,0,0)",this.onEnd=this.props.onEnd,this.onBegin=this.props.onBegin}return a(t,e),i(t,[{key:"componentDidMount",value:function(){this._canvas=this.refs.cv,this._ctx=this._canvas.getContext("2d"),this.clear(),this._handleMouseEvents(),this._handleTouchEvents(),this._resizeCanvas()}},{key:"componentWillUnmount",value:function(){this.off()}},{key:"clear",value:function(e){e&&e.preventDefault();var t=this._ctx,n=this._canvas;t.fillStyle=this.backgroundColor,t.clearRect(0,0,n.width,n.height),t.fillRect(0,0,n.width,n.height),this._reset()}},{key:"toDataURL",value:function(e,t){var n=this._canvas;return n.toDataURL.apply(n,arguments)}},{key:"fromDataURL",value:function(e){var t=this,n=new Image,r=window.devicePixelRatio||1,o=this._canvas.width/r,a=this._canvas.height/r;this._reset(),n.src=e,n.onload=function(){t._ctx.drawImage(n,0,0,o,a)},this._isEmpty=!1}},{key:"isEmpty",value:function(){return this._isEmpty}},{key:"_resizeCanvas",value:function(){var e=this._ctx,t=this._canvas,n=Math.max(window.devicePixelRatio||1,1);t.width=t.offsetWidth*n,t.height=t.offsetHeight*n,e.scale(n,n),this._isEmpty=!0}},{key:"_reset",value:function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._isEmpty=!0,this._ctx.fillStyle=this.penColor}},{key:"_handleMouseEvents",value:function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown.bind(this)),this._canvas.addEventListener("mousemove",this._handleMouseMove.bind(this)),document.addEventListener("mouseup",this._handleMouseUp.bind(this)),window.addEventListener("resize",this._resizeCanvas.bind(this))}},{key:"_handleTouchEvents",value:function(){this._canvas.style.msTouchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart.bind(this)),this._canvas.addEventListener("touchmove",this._handleTouchMove.bind(this)),document.addEventListener("touchend",this._handleTouchEnd.bind(this))}},{key:"off",value:function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),document.removeEventListener("touchend",this._handleTouchEnd),window.removeEventListener("resize",this._resizeCanvas)}},{key:"_handleMouseDown",value:function(e){1===e.which&&(this._mouseButtonDown=!0,this._strokeBegin(e))}},{key:"_handleMouseMove",value:function(e){this._mouseButtonDown&&this._strokeUpdate(e)}},{key:"_handleMouseUp",value:function(e){1===e.which&&this._mouseButtonDown&&(this._mouseButtonDown=!1,this._strokeEnd(e))}},{key:"_handleTouchStart",value:function(e){var t=e.changedTouches[0];this._strokeBegin(t)}},{key:"_handleTouchMove",value:function(e){e.preventDefault();var t=e.changedTouches[0];this._strokeUpdate(t)}},{key:"_handleTouchEnd",value:function(e){e.target===this._canvas&&this._strokeEnd(e)}},{key:"_strokeUpdate",value:function(e){var t=this._createPoint(e);this._addPoint(t)}},{key:"_strokeBegin",value:function(e){this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)}},{key:"_strokeDraw",value:function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()}},{key:"_strokeEnd",value:function(e){var t=this.points.length>2,n=this.points[0];!t&&n&&this._strokeDraw(n),"function"==typeof this.onEnd&&this.onEnd(e)}},{key:"_createPoint",value:function(e){var t=this._canvas.getBoundingClientRect();return new l["default"](e.clientX-t.left,e.clientY-t.top)}},{key:"_addPoint",value:function(e){var t,n,r,o=this.points;o.push(e),o.length>2&&(3===o.length&&o.unshift(o[0]),t=this._calculateCurveControlPoints(o[0],o[1],o[2]).c2,n=this._calculateCurveControlPoints(o[1],o[2],o[3]).c1,r=new c["default"](o[1],t,n,o[2]),this._addCurve(r),o.shift())}},{key:"_calculateCurveControlPoints",value:function(e,t,n){var r=e.x-t.x,o=e.y-t.y,a=t.x-n.x,i=t.y-n.y,s={x:(e.x+t.x)/2,y:(e.y+t.y)/2},u={x:(t.x+n.x)/2,y:(t.y+n.y)/2},c=Math.sqrt(r*r+o*o),f=Math.sqrt(a*a+i*i),d=s.x-u.x,p=s.y-u.y,h=f/(c+f),m={x:u.x+d*h,y:u.y+p*h},g=t.x-m.x,v=t.y-m.y;return{c1:new l["default"](s.x+g,s.y+v),c2:new l["default"](u.x+g,u.y+v)}}},{key:"_addCurve",value:function(e){var t,n,r=e.startPoint;t=e.endPoint.velocityFrom(r),t=this.velocityFilterWeight*t+(1-this.velocityFilterWeight)*this._lastVelocity,n=this._strokeWidth(t),this._drawCurve(e,this._lastWidth,n),this._lastVelocity=t,this._lastWidth=n}},{key:"_drawPoint",value:function(e,t,n){var r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}},{key:"_drawCurve",value:function(e,t,n){var r,o,a,i,s,u,c,l,f,d,p,h=this._ctx,m=n-t;for(r=Math.floor(e.length()),h.beginPath(),a=0;r>a;a++)u=(s=(i=a/r)*i)*i,d=(f=(l=(c=1-i)*c)*c)*e.startPoint.x,d+=3*l*i*e.control1.x,d+=3*c*s*e.control2.x,d+=u*e.endPoint.x,p=f*e.startPoint.y,p+=3*l*i*e.control1.y,p+=3*c*s*e.control2.y,p+=u*e.endPoint.y,o=t+u*m,this._drawPoint(d,p,o);h.closePath(),h.fill()}},{key:"_strokeWidth",value:function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)}},{key:"render",value:function(){return u["default"].createElement("div",{id:"signature-pad",className:"m-signature-pad"},u["default"].createElement("div",{className:"m-signature-pad--body"},u["default"].createElement("canvas",{ref:"cv"})),this.props.clearButton&&u["default"].createElement("div",{className:"m-signature-pad--footer"},u["default"].createElement("button",{className:"btn btn-default button clear",onClick:this.clear.bind(this)},"Clear")))}}]),t}(u["default"].Component);t["default"]=f,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,r,o){n(this,e),this.x=t,this.y=r,this.time=o||(new Date).getTime()}return r(e,[{key:"velocityFrom",value:function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1}},{key:"distanceTo",value:function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}}]),e}();t["default"]=o,e.exports=t["default"]},function(e,t){e.exports=r}]))},804:function(e){"use strict";e.exports=React}},t={};function n(r){var o=t[r];if(o!==undefined)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=n(804),t=n.n(e),r=e=>e instanceof HTMLElement;const o="blur",a="change",i="input",s="onBlur",u="onChange",c="onSubmit",l="onTouched",f="all",d="undefined",p="max",h="min",m="maxLength",g="minLength",v="pattern",b="required",y="validate";var w=e=>null==e;const C=e=>"object"==typeof e;var O=e=>!w(e)&&!Array.isArray(e)&&C(e)&&!(e instanceof Date),x=e=>/^\w*$/.test(e),D=e=>e.filter(Boolean),k=e=>D(e.replace(/["|']/g,"").replace(/\[/g,".").replace(/\]/g,"").split("."));function S(e,t,n){let r=-1;const o=x(t)?[t]:k(t),a=o.length,i=a-1;for(;++r<a;){const t=o[r];let a=n;if(r!==i){const n=e[t];a=O(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=a,e=e[t]}return e}var E=(e,t={})=>{for(const n in e)x(n)?t[n]=e[n]:S(t,n,e[n]);return t},M=e=>e===undefined,_=(e={},t,n)=>{const r=D(t.split(/[,[\].]+?/)).reduce(((e,t)=>w(e)?e:e[t]),e);return M(r)||r===e?M(e[t])?n:e[t]:r},P=(e,t)=>{r(e)&&e.removeEventListener&&(e.removeEventListener(i,t),e.removeEventListener(a,t),e.removeEventListener(o,t))};const j={isValid:!1,value:null};var T=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.ref.checked?{isValid:!0,value:t.ref.value}:e),j):j,A=e=>"radio"===e.type,I=e=>"file"===e.type,N=e=>"checkbox"===e.type,R=e=>"select-multiple"===e.type;const L={value:!1,isValid:!1},V={value:!0,isValid:!0};var F=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.ref.checked)).map((({ref:{value:e}})=>e));return{value:t,isValid:!!t.length}}const{checked:t,value:n,attributes:r}=e[0].ref;return t?r&&!M(r.value)?M(n)||""===n?V:{value:n,isValid:!0}:V:L}return L};function H(e,t,n,r,o){const a=e.current[t];if(a){const{ref:{value:e,disabled:t},ref:n,valueAsNumber:s,valueAsDate:u,setValueAs:c}=a;if(t&&r)return;return I(n)?n.files:A(n)?T(a.options).value:R(n)?(i=n.options,[...i].filter((({selected:e})=>e)).map((({value:e})=>e))):N(n)?F(a.options).value:o?e:s?""===e?NaN:+e:u?n.valueAsDate:c?c(e):e}var i;if(n)return _(n.current,t)}function U(e){return!e||e instanceof HTMLElement&&e.nodeType!==Node.DOCUMENT_NODE&&U(e.parentNode)}var W=e=>O(e)&&!Object.keys(e).length,z=e=>"boolean"==typeof e;function B(e,t){const n=x(t)?[t]:k(t),r=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=M(e)?r++:e[t[r++]];return e}(e,n),o=n[n.length-1];let a;r&&delete r[o];for(let t=0;t<n.slice(0,-1).length;t++){let r,o=-1;const i=n.slice(0,-(t+1)),s=i.length-1;for(t>0&&(a=e);++o<i.length;){const t=i[o];r=r?r[t]:e[t],s===o&&(O(r)&&W(r)||Array.isArray(r)&&!r.filter((e=>O(e)&&!W(e)||z(e))).length)&&(a?delete a[t]:delete e[t]),a=r}}return e}const Y=(e,t)=>e&&e.ref===t;var q=e=>w(e)||!C(e);function K(e,t){if(q(e)||q(t))return t;for(const r in t){const o=e[r],a=t[r];try{e[r]=O(o)&&O(a)||Array.isArray(o)&&Array.isArray(a)?K(o,a):a}catch(n){}}return e}function $(t,n,r){if(q(t)||q(n)||t instanceof Date||n instanceof Date)return t===n;if(!(0,e.isValidElement)(t)){const e=Object.keys(t),o=Object.keys(n);if(e.length!==o.length)return!1;for(const o of e){const e=t[o];if(!r||"ref"!==o){const t=n[o];if((O(e)||Array.isArray(e))&&(O(t)||Array.isArray(t))?!$(e,t,r):e!==t)return!1}}}return!0}function G(e,t,n,r,o){let a=-1;for(;++a<e.length;){for(const r in e[a])Array.isArray(e[a][r])?(!n[a]&&(n[a]={}),n[a][r]=[],G(e[a][r],_(t[a]||{},r,[]),n[a][r],n[a],r)):$(_(t[a]||{},r),e[a][r])?S(n[a]||{},r):n[a]=Object.assign(Object.assign({},n[a]),{[r]:!0});r&&!n.length&&delete r[o]}return n}var J=(e,t,n)=>K(G(e,t,n.slice(0,e.length)),G(t,e,n.slice(0,e.length))),Q=e=>"string"==typeof e,X=(e,t,n,r,o)=>{const a={};for(const t in e.current)(M(o)||(Q(o)?t.startsWith(o):Array.isArray(o)&&o.find((e=>t.startsWith(e)))))&&(a[t]=H(e,t,undefined,r));return n?E(a):K(t,E(a))},Z=e=>e instanceof RegExp,ee=e=>O(e)&&!Z(e)?e:{value:e,message:""},te=e=>"function"==typeof e,ne=t=>Q(t)||(0,e.isValidElement)(t);function re(e,t,n="validate"){if(ne(e)||z(e)&&!e)return{type:n,message:ne(e)?e:"",ref:t}}var oe=(e,t,n,r,o)=>t?Object.assign(Object.assign({},n[e]),{types:Object.assign(Object.assign({},n[e]&&n[e].types?n[e].types:{}),{[r]:o||!0})}):{},ae=async(e,t,{ref:n,ref:{value:r},options:o,required:a,maxLength:i,minLength:s,min:u,max:c,pattern:l,validate:f},d)=>{const C=n.name,x={},D=A(n),k=N(n),S=D||k,E=""===r,M=oe.bind(null,C,t,x),_=(e,t,r,o=m,a=g)=>{const i=e?t:r;x[C]=Object.assign({type:e?o:a,message:i,ref:n},M(e?o:a,i))};if(a&&(!D&&!k&&(E||w(r))||z(r)&&!r||k&&!F(o).isValid||D&&!T(o).isValid)){const{value:r,message:o}=ne(a)?{value:!!a,message:a}:ee(a);if(r&&(x[C]=Object.assign({type:b,message:o,ref:S?((e.current[C].options||[])[0]||{}).ref:n},M(b,o)),!t))return x}if(!(w(u)&&w(c)||""===r)){let e,o;const a=ee(c),i=ee(u);if(isNaN(r)){const t=n.valueAsDate||new Date(r);Q(a.value)&&(e=t>new Date(a.value)),Q(i.value)&&(o=t<new Date(i.value))}else{const t=n.valueAsNumber||parseFloat(r);w(a.value)||(e=t>a.value),w(i.value)||(o=t<i.value)}if((e||o)&&(_(!!e,a.message,i.message,p,h),!t))return x}if(Q(r)&&!E&&(i||s)){const e=ee(i),n=ee(s),o=!w(e.value)&&r.length>e.value,a=!w(n.value)&&r.length<n.value;if((o||a)&&(_(o,e.message,n.message),!t))return x}if(Q(r)&&l&&!E){const{value:e,message:o}=ee(l);if(Z(e)&&!e.test(r)&&(x[C]=Object.assign({type:v,message:o,ref:n},M(v,o)),!t))return x}if(f){const r=H(e,C,d,!1,!0),a=S&&o?o[0].ref:n;if(te(f)){const e=re(await f(r),a);if(e&&(x[C]=Object.assign(Object.assign({},e),M(y,e.message)),!t))return x}else if(O(f)){let e={};for(const[n,o]of Object.entries(f)){if(!W(e)&&!t)break;const i=re(await o(r),a,n);i&&(e=Object.assign(Object.assign({},i),M(n,i.message)),t&&(x[C]=e))}if(!W(e)&&(x[C]=Object.assign({ref:a},e),!t))return x}}return x};const ie=(e,t,n=[])=>{for(const r in t){const o=e+(O(t)?`.${r}`:`[${r}]`);q(t[r])?n.push(o):ie(o,t[r],n)}return n};var se=(e,t,n,r,o)=>{let a=undefined;return n.add(t),W(e)||(a=_(e,t),(O(a)||Array.isArray(a))&&ie(t,a).forEach((e=>n.add(e)))),M(a)?o?r:_(r,t):a},ue=({isOnBlur:e,isOnChange:t,isOnTouch:n,isTouched:r,isReValidateOnBlur:o,isReValidateOnChange:a,isBlurEvent:i,isSubmitted:s,isOnAll:u})=>!u&&(!s&&n?!(r||i):(s?o:e)?!i:!(s?a:t)||i),ce=e=>e.substring(0,e.indexOf("["));const le=(e,t)=>RegExp(`^${t}([|.)\\d+`.replace(/\[/g,"\\[").replace(/\]/g,"\\]")).test(e);var fe=(e,t)=>[...e].some((e=>le(t,e)));var de=typeof window!==d&&typeof document!==d;function pe(e){var t;let n;if(q(e)||de&&(e instanceof File||r(e)))return e;if(!["Set","Map","Object","Date","Array"].includes(null===(t=e.constructor)||void 0===t?void 0:t.name))return e;if(e instanceof Date)return n=new Date(e.getTime()),n;if(e instanceof Set){n=new Set;for(const t of e)n.add(t);return n}if(e instanceof Map){n=new Map;for(const t of e.keys())n.set(t,pe(e.get(t)));return n}n=Array.isArray(e)?[]:{};for(const t in e)n[t]=pe(e[t]);return n}var he=e=>({isOnSubmit:!e||e===c,isOnBlur:e===s,isOnChange:e===u,isOnAll:e===f,isOnTouch:e===l}),me=e=>A(e)||N(e);const ge=typeof window===d,ve=de?"Proxy"in window:typeof Proxy!==d;function be({mode:t=c,reValidateMode:n=u,resolver:s,context:l,defaultValues:d={},shouldFocusError:p=!0,shouldUnregister:h=!0,criteriaMode:m}={}){const g=(0,e.useRef)({}),v=(0,e.useRef)({}),b=(0,e.useRef)({}),y=(0,e.useRef)(new Set),C=(0,e.useRef)({}),k=(0,e.useRef)({}),j=(0,e.useRef)({}),T=(0,e.useRef)({}),L=(0,e.useRef)(d),V=(0,e.useRef)(!1),F=(0,e.useRef)(!1),z=(0,e.useRef)(),K=(0,e.useRef)({}),G=(0,e.useRef)({}),Z=(0,e.useRef)(l),ee=(0,e.useRef)(s),ne=(0,e.useRef)(new Set),re=(0,e.useRef)(he(t)),{isOnSubmit:oe,isOnTouch:le}=re.current,be=m===f,[ye,we]=(0,e.useState)({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touched:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!oe,errors:{}}),Ce=(0,e.useRef)({isDirty:!ve,dirtyFields:!ve,touched:!ve||le,isValidating:!ve,isSubmitting:!ve,isValid:!ve}),Oe=(0,e.useRef)(ye),xe=(0,e.useRef)(),{isOnBlur:De,isOnChange:ke}=(0,e.useRef)(he(n)).current;Z.current=l,ee.current=s,Oe.current=ye,K.current=h?{}:W(K.current)?pe(d):K.current;const Se=(0,e.useCallback)(((e={})=>{V.current||(Oe.current=Object.assign(Object.assign({},Oe.current),e),we(Oe.current))}),[]),Ee=()=>Ce.current.isValidating&&Se({isValidating:!0}),Me=(0,e.useCallback)(((e,t,n=!1,r={},o)=>{let a=n||(({errors:e,name:t,error:n,validFields:r,fieldsWithValidation:o})=>{const a=M(n),i=_(e,t);return a&&!!i||!a&&!$(i,n,!0)||a&&_(o,t)&&!_(r,t)})({errors:Oe.current.errors,error:t,name:e,validFields:T.current,fieldsWithValidation:j.current});const i=_(Oe.current.errors,e);t?(B(T.current,e),a=a||!i||!$(i,t,!0),S(Oe.current.errors,e,t)):((_(j.current,e)||ee.current)&&(S(T.current,e,!0),a=a||i),B(Oe.current.errors,e)),(a&&!w(n)||!W(r)||Ce.current.isValidating)&&Se(Object.assign(Object.assign(Object.assign({},r),ee.current?{isValid:!!o}:{}),{isValidating:!1}))}),[]),_e=(0,e.useCallback)(((e,t)=>{const{ref:n,options:o}=g.current[e],a=de&&r(n)&&w(t)?"":t;A(n)?(o||[]).forEach((({ref:e})=>e.checked=e.value===a)):I(n)&&!Q(a)?n.files=a:R(n)?[...n.options].forEach((e=>e.selected=a.includes(e.value))):N(n)&&o?o.length>1?o.forEach((({ref:e})=>e.checked=Array.isArray(a)?!!a.find((t=>t===e.value)):a===e.value)):o[0].ref.checked=!!a:n.value=a}),[]),Pe=(0,e.useCallback)(((e,t)=>{if(Ce.current.isDirty){const n=He();return e&&t&&S(n,e,t),!$(n,L.current)}return!1}),[]),je=(0,e.useCallback)(((e,t=!0)=>{if(Ce.current.isDirty||Ce.current.dirtyFields){const n=!$(_(L.current,e),H(g,e,K)),r=_(Oe.current.dirtyFields,e),o=Oe.current.isDirty;n?S(Oe.current.dirtyFields,e,!0):B(Oe.current.dirtyFields,e);const a={isDirty:Pe(),dirtyFields:Oe.current.dirtyFields},i=Ce.current.isDirty&&o!==a.isDirty||Ce.current.dirtyFields&&r!==_(Oe.current.dirtyFields,e);return i&&t&&Se(a),i?a:{}}return{}}),[]),Te=(0,e.useCallback)((async(e,t)=>{const n=(await ae(g,be,g.current[e],K))[e];return Me(e,n,t),M(n)}),[Me,be]),Ae=(0,e.useCallback)((async e=>{const{errors:t}=await ee.current(He(),Z.current,be),n=Oe.current.isValid;if(Array.isArray(e)){const n=e.map((e=>{const n=_(t,e);return n?S(Oe.current.errors,e,n):B(Oe.current.errors,e),!n})).every(Boolean);return Se({isValid:W(t),isValidating:!1}),n}{const r=_(t,e);return Me(e,r,n!==W(t),{},W(t)),!r}}),[Me,be]),Ie=(0,e.useCallback)((async e=>{const t=e||Object.keys(g.current);if(Ee(),ee.current)return Ae(t);if(Array.isArray(t)){!e&&(Oe.current.errors={});const n=await Promise.all(t.map((async e=>await Te(e,null))));return Se({isValidating:!1}),n.every(Boolean)}return await Te(t)}),[Ae,Te]),Ne=(0,e.useCallback)(((e,t,{shouldDirty:n,shouldValidate:r})=>{const o={};S(o,e,t);for(const a of ie(e,t))g.current[a]&&(_e(a,_(o,a)),n&&je(a),r&&Ie(a))}),[Ie,_e,je]),Re=(0,e.useCallback)(((e,t,n)=>{if(!h&&!q(t)&&S(K.current,e,Array.isArray(t)?[...t]:Object.assign({},t)),g.current[e])_e(e,t),n.shouldDirty&&je(e),n.shouldValidate&&Ie(e);else if(!q(t)&&(Ne(e,t,n),ne.current.has(e))){const r=ce(e)||e;S(v.current,e,t),G.current[r]({[r]:_(v.current,r)}),(Ce.current.isDirty||Ce.current.dirtyFields)&&n.shouldDirty&&(S(Oe.current.dirtyFields,e,J(t,_(L.current,e,[]),_(Oe.current.dirtyFields,e,[]))),Se({isDirty:!$(Object.assign(Object.assign({},He()),{[e]:t}),L.current)}))}!h&&S(K.current,e,t)}),[je,_e,Ne]),Le=e=>F.current||y.current.has(e)||y.current.has((e.match(/\w+/)||[])[0]),Ve=e=>{let t=!0;if(!W(C.current))for(const n in C.current)e&&C.current[n].size&&!C.current[n].has(e)&&!C.current[n].has(ce(e))||(k.current[n](),t=!1);return t};function Fe(e){if(!h){let t=pe(e);for(const e of ne.current)x(e)&&!t[e]&&(t=Object.assign(Object.assign({},t),{[e]:[]}));return t}return e}function He(e){if(Q(e))return H(g,e,K);if(Array.isArray(e)){const t={};for(const n of e)S(t,n,H(g,n,K));return t}return Fe(X(g,pe(K.current),h))}z.current=z.current?z.current:async({type:e,target:t})=>{let n=t.name;const r=g.current[n];let a,i;if(r){const s=e===o,u=ue(Object.assign({isBlurEvent:s,isReValidateOnChange:ke,isReValidateOnBlur:De,isTouched:!!_(Oe.current.touched,n),isSubmitted:Oe.current.isSubmitted},re.current));let c=je(n,!1),l=!W(c)||!s&&Le(n);if(s&&!_(Oe.current.touched,n)&&Ce.current.touched&&(S(Oe.current.touched,n,!0),c=Object.assign(Object.assign({},c),{touched:Oe.current.touched})),!h&&N(t)&&S(K.current,n,H(g,n)),u)return!s&&Ve(n),(!W(c)||l&&W(c))&&Se(c);if(Ee(),ee.current){const{errors:e}=await ee.current(He(),Z.current,be),r=Oe.current.isValid;if(a=_(e,n),N(t)&&!a&&ee.current){const t=ce(n),r=_(e,t,{});r.type&&r.message&&(a=r),t&&(r||_(Oe.current.errors,t))&&(n=t)}i=W(e),r!==i&&(l=!0)}else a=(await ae(g,be,r,K))[n];!s&&Ve(n),Me(n,a,l,c,i)}};const Ue=(0,e.useCallback)((async(e={})=>{const t=W(g.current)?L.current:{},{errors:n}=await ee.current(Object.assign(Object.assign(Object.assign({},t),He()),e),Z.current,be)||{},r=W(n);Oe.current.isValid!==r&&Se({isValid:r})}),[be]),We=(0,e.useCallback)(((e,t)=>{!function(e,t,n,r,o,a){const{ref:i,ref:{name:s}}=n,u=e.current[s];if(!o){const t=H(e,s,r);!M(t)&&S(r.current,s,t)}i.type&&u?A(i)||N(i)?Array.isArray(u.options)&&u.options.length?(D(u.options).forEach(((e={},n)=>{(U(e.ref)&&Y(e,e.ref)||a)&&(P(e.ref,t),B(u.options,`[${n}]`))})),u.options&&!D(u.options).length&&delete e.current[s]):delete e.current[s]:(U(i)&&Y(u,i)||a)&&(P(i,t),delete e.current[s]):delete e.current[s]}(g,z.current,e,K,h,t),h&&(B(T.current,e.ref.name),B(j.current,e.ref.name))}),[h]),ze=(0,e.useCallback)((e=>{if(F.current)Se();else{for(const t of y.current)if(t.startsWith(e)){Se();break}Ve(e)}}),[]),Be=(0,e.useCallback)(((e,t)=>{e&&(We(e,t),h&&!D(e.options||[]).length&&(B(Oe.current.errors,e.ref.name),S(Oe.current.dirtyFields,e.ref.name,!0),Se({isDirty:Pe()}),Ce.current.isValid&&ee.current&&Ue(),ze(e.ref.name)))}),[Ue,We]);const Ye=(0,e.useCallback)(((e,t,n)=>{const r=n?C.current[n]:y.current;let o=X(g,pe(K.current),h,!1,e);if(Q(e)){const n=ce(e)||e;return ne.current.has(n)&&(o=Object.assign(Object.assign({},b.current),o)),se(o,e,r,M(_(L.current,e))?t:_(L.current,e),!0)}const a=M(t)?L.current:t;return Array.isArray(e)?e.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:se(o,t,r,a)})),{}):(F.current=M(n),E(!W(o)&&o||a))}),[]);function qe(e,t={}){const{name:n,type:s,value:u}=e,c=Object.assign({ref:e},t),l=g.current,f=me(e),d=fe(ne.current,n),p=t=>de&&(!r(e)||t===e);let m,v=l[n],b=!0;if(v&&(f?Array.isArray(v.options)&&D(v.options).find((e=>u===e.ref.value&&p(e.ref))):p(v.ref)))return void(l[n]=Object.assign(Object.assign({},v),t));v=s?f?Object.assign({options:[...D(v&&v.options||[]),{ref:e}],ref:{type:s,name:n}},t):Object.assign({},c):c,l[n]=v;const y=M(_(K.current,n));W(L.current)&&y||(m=_(y?L.current:K.current,n),b=M(m),b||d||_e(n,m)),W(t)||(S(j.current,n,!0),!oe&&Ce.current.isValid&&ae(g,be,v,K).then((e=>{const t=Oe.current.isValid;W(e)?S(T.current,n,!0):B(T.current,n),t!==W(e)&&Se()}))),!h||d&&b||!d&&B(Oe.current.dirtyFields,n),s&&function({ref:e},t,n){r(e)&&n&&(e.addEventListener(t?a:i,n),e.addEventListener(o,n))}(f&&v.options?v.options[v.options.length-1]:v,f||"select-one"===e.type,z.current)}const Ke=(0,e.useCallback)(((e,t)=>async n=>{n&&n.preventDefault&&(n.preventDefault(),n.persist());let r={},o=Fe(X(g,pe(K.current),h,!0));Ce.current.isSubmitting&&Se({isSubmitting:!0});try{if(ee.current){const{errors:e,values:t}=await ee.current(o,Z.current,be);Oe.current.errors=r=e,o=t}else for(const e of Object.values(g.current))if(e){const{name:t}=e.ref,n=await ae(g,be,e,K);n[t]?(S(r,t,n[t]),B(T.current,t)):_(j.current,t)&&(B(Oe.current.errors,t),S(T.current,t,!0))}W(r)&&Object.keys(Oe.current.errors).every((e=>e in g.current))?(Se({errors:{},isSubmitting:!0}),await e(o,n)):(Oe.current.errors=Object.assign(Object.assign({},Oe.current.errors),r),t&&await t(Oe.current.errors,n),p&&((e,t)=>{for(const n in e)if(_(t,n)){const t=e[n];if(t){if(t.ref.focus&&M(t.ref.focus()))break;if(t.options){t.options[0].ref.focus();break}}}})(g.current,Oe.current.errors))}finally{Oe.current.isSubmitting=!1,Se({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:W(Oe.current.errors),submitCount:Oe.current.submitCount+1})}}),[p,be]);(0,e.useEffect)((()=>{s&&Ce.current.isValid&&Ue(),xe.current=xe.current||!de?xe.current:function(e,t){const n=new MutationObserver((()=>{for(const n of Object.values(e.current))if(n&&n.options)for(const e of n.options)e&&e.ref&&U(e.ref)&&t(n);else n&&U(n.ref)&&t(n)}));return n.observe(window.document,{childList:!0,subtree:!0}),n}(g,Be)}),[Be,L.current]),(0,e.useEffect)((()=>()=>{xe.current&&xe.current.disconnect(),V.current=!0,Object.values(g.current).forEach((e=>Be(e,!0)))}),[]),!s&&Ce.current.isValid&&(ye.isValid=$(T.current,j.current)&&W(Oe.current.errors));const $e={trigger:Ie,setValue:(0,e.useCallback)((function(e,t,n){Re(e,t,n||{}),Le(e)&&Se(),Ve(e)}),[Re,Ie]),getValues:(0,e.useCallback)(He,[]),register:(0,e.useCallback)((function(e,t){if(!ge)if(Q(e))qe({name:e},t);else{if(!O(e)||!("name"in e))return t=>t&&qe(t,e);qe(e,t)}}),[L.current]),unregister:(0,e.useCallback)((function(e){for(const t of Array.isArray(e)?e:[e])Be(g.current[t],!0)}),[]),formState:ve?new Proxy(ye,{get:(e,t)=>t in e?(Ce.current[t]=!0,e[t]):undefined}):ye},Ge=(0,e.useMemo)((()=>Object.assign({isFormDirty:Pe,updateWatchedValue:ze,shouldUnregister:h,updateFormState:Se,removeFieldEventListener:We,watchInternal:Ye,mode:re.current,reValidateMode:{isReValidateOnBlur:De,isReValidateOnChange:ke},validateResolver:s?Ue:undefined,fieldsRef:g,resetFieldArrayFunctionRef:G,useWatchFieldsRef:C,useWatchRenderFunctionsRef:k,fieldArrayDefaultValuesRef:v,validFieldsRef:T,fieldsWithValidationRef:j,fieldArrayNamesRef:ne,readFormStateRef:Ce,formStateRef:Oe,defaultValuesRef:L,shallowFieldsStateRef:K,fieldArrayValuesRef:b},$e)),[L.current,ze,h,We,Ye]);return Object.assign({watch:function(e,t){return Ye(e,t)},control:Ge,handleSubmit:Ke,reset:(0,e.useCallback)(((e,t={})=>{if(de)for(const e of Object.values(g.current))if(e){const{ref:t,options:o}=e,a=me(t)&&Array.isArray(o)?o[0].ref:t;if(r(a))try{a.closest("form").reset();break}catch(n){}}g.current={},L.current=Object.assign({},e||L.current),e&&Ve(""),Object.values(G.current).forEach((e=>te(e)&&e())),K.current=h?{}:pe(e||L.current),(({errors:e,isDirty:t,isSubmitted:n,touched:r,isValid:o,submitCount:a,dirtyFields:i})=>{o||(T.current={},j.current={}),v.current={},y.current=new Set,F.current=!1,Se({submitCount:a?Oe.current.submitCount:0,isDirty:!!t&&Oe.current.isDirty,isSubmitted:!!n&&Oe.current.isSubmitted,isValid:!!o&&Oe.current.isValid,dirtyFields:i?Oe.current.dirtyFields:{},touched:r?Oe.current.touched:{},errors:e?Oe.current.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})})(t)}),[]),clearErrors:(0,e.useCallback)((function(e){e&&(Array.isArray(e)?e:[e]).forEach((e=>g.current[e]&&x(e)?delete Oe.current.errors[e]:B(Oe.current.errors,e))),Se({errors:e?Oe.current.errors:{}})}),[]),setError:(0,e.useCallback)((function(e,t){const n=(g.current[e]||{}).ref;S(Oe.current.errors,e,Object.assign(Object.assign({},t),{ref:n})),Se({isValid:!1}),t.shouldFocus&&n&&n.focus&&n.focus()}),[]),errors:ye.errors},$e)}
13
  /*! *****************************************************************************
14
  Copyright (c) Microsoft Corporation.
15
 
@@ -23,7 +23,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
23
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
24
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
25
  PERFORMANCE OF THIS SOFTWARE.
26
- ***************************************************************************** */const ye=(0,e.createContext)(null);ye.displayName="RHFContext";const we=()=>(0,e.useContext)(ye);var Ce=function(t){var n=t.as,r=t.errors,o=t.name,a=t.message,i=t.render,s=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(t,["as","errors","name","message","render"]),u=we(),c=_(r||u.errors,o);if(!c)return null;var l=c.message,f=c.types,d=Object.assign({},s,{children:l||a});return(0,e.isValidElement)(n)?(0,e.cloneElement)(n,d):i?i({message:l||a,messages:f}):(0,e.createElement)(n||e.Fragment,d)};function Oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(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 De(e,t,n){return t&&xe(e.prototype,t),n&&xe(e,n),e}function ke(e,t){return(ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Se(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ke(e,t)}function Ee(e){return(Ee="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})(e)}function Me(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _e(e,t){return!t||"object"!==Ee(t)&&"function"!=typeof t?Me(e):t}function Pe(e){return(Pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var je=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Te(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||je(r)&&je(o)))return!1;var r,o;return!0}var Ae=function(e,t){var n;void 0===t&&(t=Te);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}};var Ie=function(){function e(e){this.isSpeedy=e.speedy===undefined||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==undefined&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,a?0:o.cssRules.length)}catch(i){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Ne=function(e){function t(e,r,u,c,d){for(var p,h,m,g,w,O=0,x=0,D=0,k=0,S=0,T=0,I=m=p=0,R=0,L=0,V=0,F=0,H=u.length,U=H-1,W="",z="",B="",Y="";R<H;){if(h=u.charCodeAt(R),R===U&&0!==x+k+D+O&&(0!==x&&(h=47===x?10:47),k=D=O=0,H++,U++),0===x+k+D+O){if(R===U&&(0<L&&(W=W.replace(f,"")),0<W.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:W+=u.charAt(R)}h=59}switch(h){case 123:for(p=(W=W.trim()).charCodeAt(0),m=1,F=++R;R<H;){switch(h=u.charCodeAt(R)){case 123:m++;break;case 125:m--;break;case 47:switch(h=u.charCodeAt(R+1)){case 42:case 47:e:{for(I=R+1;I<U;++I)switch(u.charCodeAt(I)){case 47:if(42===h&&42===u.charCodeAt(I-1)&&R+2!==I){R=I+1;break e}break;case 10:if(47===h){R=I+1;break e}}R=I}}break;case 91:h++;case 40:h++;case 34:case 39:for(;R++<U&&u.charCodeAt(R)!==h;);}if(0===m)break;R++}switch(m=u.substring(F,R),0===p&&(p=(W=W.replace(l,"").trim()).charCodeAt(0)),p){case 64:switch(0<L&&(W=W.replace(f,"")),h=W.charCodeAt(1)){case 100:case 109:case 115:case 45:L=r;break;default:L=j}if(F=(m=t(r,L,m,h,d+1)).length,0<A&&(w=s(3,m,L=n(j,W,V),r,M,E,F,h,d,c),W=L.join(""),void 0!==w&&0===(F=(m=w.trim()).length)&&(h=0,m="")),0<F)switch(h){case 115:W=W.replace(C,i);case 100:case 109:case 45:m=W+"{"+m+"}";break;case 107:m=(W=W.replace(v,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&a("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=W+m,112===c&&(z+=m,m="")}else m="";break;default:m=t(r,n(r,W,V),m,c,d+1)}B+=m,m=V=L=I=p=0,W="",h=u.charCodeAt(++R);break;case 125:case 59:if(1<(F=(W=(0<L?W.replace(f,""):W).trim()).length))switch(0===I&&(p=W.charCodeAt(0),45===p||96<p&&123>p)&&(F=(W=W.replace(" ",":")).length),0<A&&void 0!==(w=s(1,W,r,e,M,E,z.length,c,d,c))&&0===(F=(W=w.trim()).length)&&(W="\0\0"),p=W.charCodeAt(0),h=W.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){Y+=W+u.charAt(R);break}default:58!==W.charCodeAt(F-1)&&(z+=o(W,p,h,W.charCodeAt(2)))}V=L=I=p=0,W="",h=u.charCodeAt(++R)}}switch(h){case 13:case 10:47===x?x=0:0===1+p&&107!==c&&0<W.length&&(L=1,W+="\0"),0<A*N&&s(0,W,r,e,M,E,z.length,c,d,c),E=1,M++;break;case 59:case 125:if(0===x+k+D+O){E++;break}default:switch(E++,g=u.charAt(R),h){case 9:case 32:if(0===k+O+x)switch(S){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===k+x+O&&(L=V=1,g="\f"+g);break;case 108:if(0===k+x+O+_&&0<I)switch(R-I){case 2:112===S&&58===u.charCodeAt(R-3)&&(_=S);case 8:111===T&&(_=T)}break;case 58:0===k+x+O&&(I=R);break;case 44:0===x+D+k+O&&(L=1,g+="\r");break;case 34:case 39:0===x&&(k=k===h?0:0===k?h:k);break;case 91:0===k+x+D&&O++;break;case 93:0===k+x+D&&O--;break;case 41:0===k+x+O&&D--;break;case 40:if(0===k+x+O){if(0===p)switch(2*S+3*T){case 533:break;default:p=1}D++}break;case 64:0===x+D+k+O+I+m&&(m=1);break;case 42:case 47:if(!(0<k+O+D))switch(x){case 0:switch(2*h+3*u.charCodeAt(R+1)){case 235:x=47;break;case 220:F=R,x=42}break;case 42:47===h&&42===S&&F+2!==R&&(33===u.charCodeAt(F+2)&&(z+=u.substring(F,R+1)),g="",x=0)}}0===x&&(W+=g)}T=S,S=h,R++}if(0<(F=z.length)){if(L=r,0<A&&(void 0!==(w=s(2,z,L,e,M,E,F,c,d,c))&&0===(z=w).length))return Y+z+B;if(z=L.join(",")+"{"+z+"}",0!=P*_){switch(2!==P||a(z,2)||(_=0),_){case 111:z=z.replace(y,":-moz-$1")+z;break;case 112:z=z.replace(b,"::-webkit-input-$1")+z.replace(b,"::-moz-$1")+z.replace(b,":-ms-input-$1")+z}_=0}}return Y+z+B}function n(e,t,n){var o=t.trim().split(m);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<a;++s)t[s]=r(e,t[s],n).trim();break;default:var u=s=0;for(t=[];s<a;++s)for(var c=0;c<i;++c)t[u++]=r(e[c]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var i=e+";",s=2*t+3*n+4*r;if(944===s){e=i.indexOf(":",9)+1;var u=i.substring(e,i.length-1).trim();return u=i.substring(0,e).trim()+u+";",1===P||2===P&&a(u,1)?"-webkit-"+u+u:u}if(0===P||2===P&&!a(i,1))return i;switch(s){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(S,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(u=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+u+i;case 1005:return p.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(t=(u=i.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=i.replace(w,"tb");break;case 232:u=i.replace(w,"tb-rl");break;case 220:u=i.replace(w,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+u+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(u=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:i=i.replace(u,"-webkit-"+u)+";"+i;break;case 207:case 102:i=i.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(u,"-webkit-"+u)+";"+i.replace(u,"-ms-"+u+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return u=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+u+"-ms-flex-"+u+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(x,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(x,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):i.replace(u,"-webkit-"+u)+i.replace(u,"-moz-"+u.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+r&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+i}return i}function a(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?r:r.replace(D,"$1"),n,t)}function i(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,a,i,s,u,l){for(var f,d=0,p=t;d<A;++d)switch(f=T[d].call(c,e,p,n,r,o,a,i,s,u,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function u(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?P=1:(P=2,I=e):P=0),u}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<A){var o=s(-1,n,r,r,M,E,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var a=t(j,r,n,0,0);return 0<A&&(void 0!==(o=s(-2,a,r,r,M,E,a.length,0,0,0))&&(a=o)),"",_=0,E=M=1,a}var l=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,C=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,x=/-self|flex-/g,D=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,E=1,M=1,_=0,P=1,j=[],T=[],A=0,I=null,N=0;return c.use=function R(e){switch(e){case void 0:case null:A=T.length=0;break;default:if("function"==typeof e)T[A++]=e;else if("object"==typeof e)for(var t=0,n=e.length;t<n;++t)R(e[t]);else N=0|!!e}return R},c.set=u,void 0!==e&&u(e),c},Re="/*|*/";function Le(e){e&&Ve.current.insert(e+"}")}var Ve={current:null},Fe=function(e,t,n,r,o,a,i,s,u,c){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Ve.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+Re;break;case 3:switch(s){case 102:case 112:return Ve.current.insert(n[0]+t),"";default:return t+(0===c?Re:"")}case-2:t.split("/*|*/}").forEach(Le)}},He=function(e){e===undefined&&(e={});var t,n=e.key||"css";e.prefix!==undefined&&(t={prefix:e.prefix});var r=new Ne(t);var o,a={};o=e.container||document.head;var i,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){a[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(Fe),i=function(e,t,n,o){var a=t.name;Ve.current=n,r(e,t.styles),o&&(u.inserted[a]=!0)};var u={key:n,sheet:new Ie({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:i};return u};function Ue(e,t,n){var r="";return n.split(" ").forEach((function(n){e[n]!==undefined?t.push(e[n]):r+=n+" "})),r}var We=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&e.registered[r]===undefined&&(e.registered[r]=t.styles),e.inserted[t.name]===undefined){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(o!==undefined)}};var ze=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Be={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Ye=/[A-Z]|^ms/g,qe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ke=function(e){return 45===e.charCodeAt(1)},$e=function(e){return null!=e&&"boolean"!=typeof e},Ge=function(e){var t={};return function(n){return t[n]===undefined&&(t[n]=e(n)),t[n]}}((function(e){return Ke(e)?e:e.replace(Ye,"-$&").toLowerCase()})),Je=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(qe,(function(e,t,n){return Xe={name:t,styles:n,next:Xe},t}))}return 1===Be[e]||Ke(e)||"number"!=typeof t||0===t?t:t+"px"};function Qe(e,t,n,r){if(null==n)return"";if(n.__emotion_styles!==undefined)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Xe={name:n.name,styles:n.styles,next:Xe},n.name;if(n.styles!==undefined){var o=n.next;if(o!==undefined)for(;o!==undefined;)Xe={name:o.name,styles:o.styles,next:Xe},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Qe(e,t,n[o],!1);else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&t[i]!==undefined?r+=a+"{"+t[i]+"}":$e(i)&&(r+=Ge(a)+":"+Je(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&t[i[0]]!==undefined){var s=Qe(e,t,i,!1);switch(a){case"animation":case"animationName":r+=Ge(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var u=0;u<i.length;u++)$e(i[u])&&(r+=Ge(a)+":"+Je(a,i[u])+";")}return r}(e,t,n);case"function":if(e!==undefined){var a=Xe,i=n(e);return Xe=a,Qe(e,t,i,r)}break;case"string":}if(null==t)return n;var s=t[n];return s===undefined||r?n:s}var Xe,Ze=/label:\s*([^\s;\n{]+)\s*;/g;var et=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&e[0].styles!==undefined)return e[0];var r=!0,o="";Xe=undefined;var a=e[0];null==a||a.raw===undefined?(r=!1,o+=Qe(n,t,a,!1)):o+=a[0];for(var i=1;i<e.length;i++)o+=Qe(n,t,e[i],46===o.charCodeAt(o.length-1)),r&&(o+=a[i]);Ze.lastIndex=0;for(var s,u="";null!==(s=Ze.exec(o));)u+="-"+s[1];return{name:ze(o)+u,styles:o,next:Xe}},tt=Object.prototype.hasOwnProperty,nt=(0,e.createContext)("undefined"!=typeof HTMLElement?He():null),rt=(0,e.createContext)({}),ot=nt.Provider,at=function(t){var n=function(n,r){return(0,e.createElement)(nt.Consumer,null,(function(e){return t(n,e,r)}))};return(0,e.forwardRef)(n)},it="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",st=function(e,t){var n={};for(var r in t)tt.call(t,r)&&(n[r]=t[r]);return n[it]=e,n},ut=function(t,n,r,o){var a=null===r?n.css:n.css(r);"string"==typeof a&&t.registered[a]!==undefined&&(a=t.registered[a]);var i=n[it],s=[a],u="";"string"==typeof n.className?u=Ue(t.registered,s,n.className):null!=n.className&&(u=n.className+" ");var c=et(s);We(t,c,"string"==typeof i);u+=t.key+"-"+c.name;var l={};for(var f in n)tt.call(n,f)&&"css"!==f&&f!==it&&(l[f]=n[f]);return l.ref=o,l.className=u,(0,e.createElement)(i,l)},ct=at((function(t,n,r){return"function"==typeof t.css?(0,e.createElement)(rt.Consumer,null,(function(e){return ut(n,t,e,r)})):ut(n,t,null,r)}));var lt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return et(t)},ft=function(t,n){var r=arguments;if(null==n||!tt.call(n,"css"))return e.createElement.apply(undefined,r);var o=r.length,a=new Array(o);a[0]=ct,a[1]=st(t,n);for(var i=2;i<o;i++)a[i]=r[i];return e.createElement.apply(null,a)},dt=at((function(t,n){var r=t.styles;if("function"==typeof r)return(0,e.createElement)(rt.Consumer,null,(function(t){var o=et([r(t)]);return(0,e.createElement)(pt,{serialized:o,cache:n})}));var o=et([r]);return(0,e.createElement)(pt,{serialized:o,cache:n})})),pt=function(e){var t,n;function r(t,n,r){return e.call(this,t,n,r)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,ke(t,n);var o=r.prototype;return o.componentDidMount=function(){this.sheet=new Ie({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var e=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==e&&this.sheet.tags.push(e),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},o.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},o.insertStyles=function(){if(this.props.serialized.next!==undefined&&We(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var e=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=e,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},o.componentWillUnmount=function(){this.sheet.flush()},o.render=function(){return null},r}(e.Component),ht=function Ja(e){for(var t=e.length,n=0,r="";n<t;n++){var o=e[n];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=Ja(o);else for(var i in a="",o)o[i]&&i&&(a&&(a+=" "),a+=i);break;default:a=o}a&&(r&&(r+=" "),r+=a)}}return r};function mt(e,t,n){var r=[],o=Ue(e,r,n);return r.length<2?n:o+t(r)}var gt=at((function(t,n){return(0,e.createElement)(rt.Consumer,null,(function(e){var r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=et(t,n.registered);return We(n,o,!1),n.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return mt(n.registered,r,ht(t))},theme:e},a=t.children(o);return!0,a}))})),vt=ReactDOM;function bt(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function yt(e,t){if(null==e)return{};var n,r,o=bt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function wt(){return(wt=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}).apply(this,arguments)}function Ct(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 Ot(e,t){if(e){if("string"==typeof e)return Ct(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)?Ct(e,t):void 0}}function xt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(u){s=!0,o=u}finally{try{i||null==n["return"]||n["return"]()}finally{if(s)throw o}}return a}}(e,t)||Ot(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 Dt(e){return function(e){if(Array.isArray(e))return Ct(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ot(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,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var St=n(639),Et=function(){};function Mt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function _t(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(Mt(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Pt=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Ee(e)&&null!==e?[e]:[]};function jt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Tt(e){return jt(e)?window.pageYOffset:e.scrollTop}function At(e,t){jt(e)?window.scrollTo(0,t):e.scrollTop=t}function It(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Nt(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:200,r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:Et,o=Tt(e),a=t-o,i=10,s=0;function u(){var t=It(s+=i,o,a,n);At(e,t),s<n?window.requestAnimationFrame(u):r(e)}u()}function Rt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function Lt(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 Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ft(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}function Ht(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.theme.spacing,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return o}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var l=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),d=f.bottom,p=f.height,h=f.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,v=Tt(u),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=m-y,C=g-h,O=w+v,x=l-v-h,D=d-g+v+b,k=v+h-y,S=160;switch(o){case"auto":case"bottom":if(C>=p)return{placement:"bottom",maxHeight:t};if(x>=p&&!i)return a&&Nt(u,D,S),{placement:"bottom",maxHeight:t};if(!i&&x>=r||i&&C>=r)return a&&Nt(u,D,S),{placement:"bottom",maxHeight:i?C-b:x-b};if("auto"===o||i){var E=t,M=i?w:O;return M>=r&&(E=Math.min(M-b-s.controlHeight,t)),{placement:"top",maxHeight:E}}if("bottom"===o)return At(u,D),{placement:"bottom",maxHeight:t};break;case"top":if(w>=p)return{placement:"top",maxHeight:t};if(O>=p&&!i)return a&&Nt(u,k,S),{placement:"top",maxHeight:t};if(!i&&O>=r||i&&w>=r){var _=t;return(!i&&O>=r||i&&w>=r)&&(_=i?w-y:O-y),a&&Nt(u,k,S),{placement:"top",maxHeight:_}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var Ut=function(e){return"auto"===e?"bottom":e},Wt=(0,e.createContext)({getPortalPlacement:null}),zt=function(e){Se(n,e);var t=Ft(n);function n(){var e;Oe(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,a=n.menuPlacement,i=n.menuPosition,s=n.menuShouldScrollIntoView,u=n.theme;if(t){var c="fixed"===i,l=Ht({maxHeight:o,menuEl:t,minHeight:r,placement:a,shouldScroll:s&&!c,isFixedPosition:c,theme:u}),f=e.context.getPortalPlacement;f&&f(l),e.setState(l)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||Ut(t);return Vt(Vt({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return De(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(e.Component);zt.contextType=Wt;var Bt=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},Yt=Bt,qt=Bt,Kt=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return ft("div",wt({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};Kt.defaultProps={children:"No options"};var $t=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return ft("div",wt({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};$t.defaultProps={children:"Loading..."};var Gt=function(e){Se(n,e);var t=Ft(n);function n(){var e;Oe(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==Ut(e.props.menuPlacement)&&e.setState({placement:n})},e}return De(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,a=e.menuPosition,i=e.getStyles,s="fixed"===a;if(!t&&!s||!r)return null;var u=this.state.placement||Ut(o),c=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),l=s?0:window.pageYOffset,f=c[u]+l,d=ft("div",{css:i("menuPortal",{offset:f,position:a,rect:c})},n);return ft(Wt.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,vt.createPortal)(d,t):d)}}]),n}(e.Component),Jt=Array.isArray,Qt=Object.keys,Xt=Object.prototype.hasOwnProperty;function Zt(e,t){if(e===t)return!0;if(e&&t&&"object"==Ee(e)&&"object"==Ee(t)){var n,r,o,a=Jt(e),i=Jt(t);if(a&&i){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!Zt(e[n],t[n]))return!1;return!0}if(a!=i)return!1;var s=e instanceof Date,u=t instanceof Date;if(s!=u)return!1;if(s&&u)return e.getTime()==t.getTime();var c=e instanceof RegExp,l=t instanceof RegExp;if(c!=l)return!1;if(c&&l)return e.toString()==t.toString();var f=Qt(e);if((r=f.length)!==Qt(t).length)return!1;for(n=r;0!=n--;)if(!Xt.call(t,f[n]))return!1;for(n=r;0!=n--;)if(!("_owner"===(o=f[n])&&e.$$typeof||Zt(e[o],t[o])))return!1;return!0}return e!=e&&t!=t}function en(e,t){try{return Zt(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}function tn(){var e,t,n=(e=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return tn=function(){return n},n}var nn={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},rn=function(e){var t=e.size,n=yt(e,["size"]);return ft("svg",wt({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:nn},n))},on=function(e){return ft(rn,wt({size:20},e),ft("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},an=function(e){return ft(rn,wt({size:20},e),ft("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},sn=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},un=sn,cn=sn,ln=function(){var e=lt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(tn()),fn=function(e){var t=e.delay,n=e.offset;return ft("span",{css:lt({animation:"".concat(ln," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},dn=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,a=e.isRtl;return ft("div",wt({},o,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),ft(fn,{delay:0,offset:a}),ft(fn,{delay:160,offset:!0}),ft(fn,{delay:320,offset:!a}))};dn.defaultProps={size:4};function pn(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 hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mn(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 gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vn=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function bn(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 yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wn=function(e){var t=e.children,n=e.innerProps;return ft("div",n,t)},Cn=wn,On=wn;var xn=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,a=e.data,i=e.getStyles,s=e.innerProps,u=e.isDisabled,c=e.removeProps,l=e.selectProps,f=r.Container,d=r.Label,p=r.Remove;return ft(gt,null,(function(r){var h=r.css,m=r.cx;return ft(f,{data:a,innerProps:yn(yn({},s),{},{className:m(h(i("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":u},n))}),selectProps:l},ft(d,{data:a,innerProps:{className:m(h(i("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:l},t),ft(p,{data:a,innerProps:yn({className:m(h(i("multiValueRemove",e)),o({"multi-value__remove":!0},n))},c),selectProps:l}))}))};xn.defaultProps={cropWithEllipsis:!0};function Dn(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 kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dn(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}for(var Sn={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return ft("div",wt({},a,{css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||ft(on,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,a=e.isDisabled,i=e.isFocused,s=e.innerRef,u=e.innerProps,c=e.menuIsOpen;return ft("div",wt({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":a,"control--is-focused":i,"control--menu-is-open":c},o)},u),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return ft("div",wt({},a,{css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||ft(an,null))},DownChevron:an,CrossIcon:on,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.Heading,i=e.headingProps,s=e.label,u=e.theme,c=e.selectProps;return ft("div",{css:o("group",e),className:r({group:!0},n)},ft(a,wt({},i,{selectProps:c,theme:u,getStyles:o,cx:r}),s),ft("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,a=(e.selectProps,yt(e,["className","cx","getStyles","theme","selectProps"]));return ft("div",wt({css:r("groupHeading",hn({theme:o},a)),className:n({"group-heading":!0},t)},a))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return ft("div",{css:o("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return ft("span",wt({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,a=e.isHidden,i=e.isDisabled,s=e.theme,u=(e.selectProps,yt(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return ft("div",{css:r("input",gn({theme:s},u))},ft(St.Z,wt({className:n({input:!0},t),inputRef:o,inputStyle:vn(a),disabled:i},u)))},LoadingIndicator:dn,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerRef,i=e.innerProps;return ft("div",wt({css:o("menu",e),className:r({menu:!0},n)},i,{ref:a}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isMulti,i=e.innerRef,s=e.innerProps;return ft("div",wt({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":a},n),ref:i},s),t)},MenuPortal:Gt,LoadingMessage:$t,NoOptionsMessage:Kt,MultiValue:xn,MultiValueContainer:Cn,MultiValueLabel:On,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ft("div",n,t||ft(on,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.isFocused,s=e.isSelected,u=e.innerRef,c=e.innerProps;return ft("div",wt({css:o("option",e),className:r({option:!0,"option--is-disabled":a,"option--is-focused":i,"option--is-selected":s},n),ref:u},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return ft("div",wt({css:o("placeholder",e),className:r({placeholder:!0},n)},a),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,i=e.isDisabled,s=e.isRtl;return ft("div",wt({css:o("container",e),className:r({"--is-disabled":i,"--is-rtl":s},n)},a),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.innerProps;return ft("div",wt({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":a},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.isMulti,a=e.getStyles,i=e.hasValue;return ft("div",{css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i},n)},t)}},En=function(e){return kn(kn({},Sn),e.components)},Mn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],_n=new RegExp("["+Mn.map((function(e){return e.letters})).join("")+"]","g"),Pn={},jn=0;jn<Mn.length;jn++)for(var Tn=Mn[jn],An=0;An<Tn.letters.length;An++)Pn[Tn.letters[An]]=Tn.base;var In=function(e){return e.replace(_n,(function(e){return Pn[e]}))};function Nn(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}var Rn=function(e){return e.replace(/^\s+|\s+$/g,"")},Ln=function(e){return"".concat(e.label," ").concat(e.value)};var Vn={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},Fn=function(e){return ft("span",wt({css:Vn},e))};function Hn(e){e["in"],e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,yt(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return ft("input",wt({ref:t},n,{css:lt({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}function Un(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}var Wn=function(e){Se(n,e);var t=Un(n);function n(){return Oe(this,n),t.apply(this,arguments)}return De(n,[{key:"componentDidMount",value:function(){this.props.innerRef((0,vt.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),n}(e.Component),zn=["boxSizing","height","overflow","paddingRight","position"],Bn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Yn(e){e.preventDefault()}function qn(e){e.stopPropagation()}function Kn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function $n(){return"ontouchstart"in window||navigator.maxTouchPoints}function Gn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}var Jn=!(!window.document||!window.document.createElement),Qn=0,Xn=function(e){Se(n,e);var t=Gn(n);function n(){var e;Oe(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).originalStyles={},e.listenerOptions={capture:!1,passive:!1},e}return De(n,[{key:"componentDidMount",value:function(){var e=this;if(Jn){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;if(n&&zn.forEach((function(t){var n=a&&a[t];e.originalStyles[t]=n})),n&&Qn<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,u=window.innerWidth-s+i||0;Object.keys(Bn).forEach((function(e){var t=Bn[e];a&&(a[e]=t)})),a&&(a.paddingRight="".concat(u,"px"))}o&&$n()&&(o.addEventListener("touchmove",Yn,this.listenerOptions),r&&(r.addEventListener("touchstart",Kn,this.listenerOptions),r.addEventListener("touchmove",qn,this.listenerOptions))),Qn+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(Jn){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;Qn=Math.max(Qn-1,0),n&&Qn<1&&zn.forEach((function(t){var n=e.originalStyles[t];a&&(a[t]=n)})),o&&$n()&&(o.removeEventListener("touchmove",Yn,this.listenerOptions),r&&(r.removeEventListener("touchstart",Kn,this.listenerOptions),r.removeEventListener("touchmove",qn,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),n}(e.Component);function Zn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}Xn.defaultProps={accountForScrollbars:!0};var er={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},tr=function(e){Se(n,e);var t=Zn(n);function n(){var e;Oe(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={touchScrollTarget:null},e.getScrollTarget=function(t){t!==e.state.touchScrollTarget&&e.setState({touchScrollTarget:t})},e.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},e}return De(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?ft("div",null,ft("div",{onClick:this.blurSelectInput,css:er}),ft(Wn,{innerRef:this.getScrollTarget},t),r?ft(Xn,{touchScrollTarget:r}):null):t}}]),n}(e.PureComponent);function nr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}var rr=function(e){Se(r,e);var n=nr(r);function r(){var e;Oe(this,r);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).isBottom=!1,e.isTop=!1,e.scrollTarget=void 0,e.touchStart=void 0,e.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},e.handleEventDelta=function(t,n){var r=e.props,o=r.onBottomArrive,a=r.onBottomLeave,i=r.onTopArrive,s=r.onTopLeave,u=e.scrollTarget,c=u.scrollTop,l=u.scrollHeight,f=u.clientHeight,d=e.scrollTarget,p=n>0,h=l-f-c,m=!1;h>n&&e.isBottom&&(a&&a(t),e.isBottom=!1),p&&e.isTop&&(s&&s(t),e.isTop=!1),p&&n>h?(o&&!e.isBottom&&o(t),d.scrollTop=l,m=!0,e.isBottom=!0):!p&&-n>c&&(i&&!e.isTop&&i(t),d.scrollTop=0,m=!0,e.isTop=!0),m&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return De(r,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return t().createElement(Wn,{innerRef:this.getScrollTarget},this.props.children)}}]),r}(e.Component);function or(e){var n=e.isEnabled,r=void 0===n||n,o=yt(e,["isEnabled"]);return r?t().createElement(rr,o):o.children}var ar=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,a=t.isDisabled,i=t.tabSelectsValue;switch(e){case"menu":return"Use Up and Down to choose options".concat(a?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},ir=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},sr=function(e){return!!e.isDisabled};var ur={clearIndicator:cn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:un,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:qt,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return kt(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),kt(t,"backgroundColor",i.neutral0),kt(t,"borderRadius",o),kt(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),kt(t,"marginBottom",a.menuGutter),kt(t,"marginTop",a.menuGutter),kt(t,"position","absolute"),kt(t,"width","100%"),kt(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:Yt,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var cr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function lr(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 fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}var pr,hr={backspaceRemovesValue:!0,blurInputOnSelect:Rt(),captureMenuScroll:!Rt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ignoreCase:!0,ignoreAccents:!0,stringify:Ln,trim:!0,matchFrom:"any"},pr),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,s=n.matchFrom,u=i?Rn(t):t,c=i?Rn(a(e)):a(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),o&&(u=In(u),c=In(c)),"start"===s?c.substr(0,u.length)===u:c.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:sr,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},mr=1,gr=function(e){Se(r,e);var n=dr(r);function r(e){var t;Oe(this,r),(t=n.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},t.blockOptionHover=!1,t.isComposing=!1,t.clearFocusValueOnUpdate=!1,t.commonProps=void 0,t.components=void 0,t.hasGroups=!1,t.initialTouchX=0,t.initialTouchY=0,t.inputIsHiddenAfterUpdate=void 0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.cacheComponents=function(e){t.components=En({components:e})},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;o(e,fr(fr({},n),{},{name:a}))},t.setValue=function(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:undefined,o=t.props,a=o.closeMenuOnSelect,i=o.isMulti;t.onInputChange("",{action:"set-value"}),a&&(t.inputIsHiddenAfterUpdate=!i,t.onMenuClose()),t.clearFocusValueOnUpdate=!0,t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=t.state.selectValue;if(o)if(t.isOptionSelected(e,a)){var i=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==i})),"deselect-option",e),t.announceAriaLiveSelection({event:"deselect-option",context:{value:t.getOptionLabel(e)}})}else t.isOptionDisabled(e,a)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue([].concat(Dt(a),[e]),"select-option",e),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));else t.isOptionDisabled(e,a)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue(e,"select-option"),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));r&&t.blurInput()},t.removeValue=function(e){var n=t.state.selectValue,r=t.getOptionValue(e),o=n.filter((function(e){return t.getOptionValue(e)!==r}));t.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),t.announceAriaLiveSelection({event:"remove-value",context:{value:e?t.getOptionLabel(e):""}}),t.focusInput()},t.clearValue=function(){t.onChange(null,{action:"clear"})},t.popValue=function(){var e=t.state.selectValue,n=e[e.length-1],r=e.slice(0,e.length-1);t.announceAriaLiveSelection({event:"pop-value",context:{value:n?t.getOptionLabel(n):""}}),t.onChange(r.length?r:null,{action:"pop-value",removedValue:n})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return _t.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return t.props.getOptionLabel(e)},t.getOptionValue=function(e){return t.props.getOptionValue(e)},t.getStyles=function(e,n){var r=ur[e](n);r.boxSizing="border-box";var o=t.props.styles[e];return o?o(r,n):r},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getActiveDescendentId=function(){var e=t.props.menuIsOpen,n=t.state,r=n.menuOptions,o=n.focusedOption;if(!o||!e)return undefined;var a=r.focusable.indexOf(o),i=r.render[a];return i&&i.key},t.announceAriaLiveSelection=function(e){var n=e.event,r=e.context;t.setState({ariaLiveSelection:ir(n,r)})},t.announceAriaLiveContext=function(e){var n=e.event,r=e.context;t.setState({ariaLiveContext:ar(n,fr(fr({},r),{},{label:t.props["aria-label"]}))})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.inputIsHiddenAfterUpdate=!r,t.onMenuClose()):t.openMenu("first"),e.preventDefault(),e.stopPropagation()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.stopPropagation(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&jt(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=e.currentTarget.value;t.inputIsHiddenAfterUpdate=!1,t.onInputChange(n,{action:"input-change"}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){var n=t.props,r=n.isSearchable,o=n.isMulti;t.props.onFocus&&t.props.onFocus(e),t.inputIsHiddenAfterUpdate=!1,t.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),t.setState({isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur"}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){var e=t.props,n=e.hideSelectedOptions,r=e.isMulti;return n===undefined?r:n},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,s=n.isClearable,u=n.isDisabled,c=n.menuIsOpen,l=n.onKeyDown,f=n.tabSelectsValue,d=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(u||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!f||!h||d&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":c?(t.inputIsHiddenAfterUpdate=!1,t.onInputChange("",{action:"menu-close"}),t.onMenuClose()):s&&a&&t.clearValue();break;case" ":if(i)return;if(!c){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.buildMenuOptions=function(e,n){var r=e.inputValue,o=void 0===r?"":r,a=e.options,i=function(e,r){var a=t.isOptionDisabled(e,n),i=t.isOptionSelected(e,n),s=t.getOptionLabel(e),u=t.getOptionValue(e);if(!(t.shouldHideSelectedOptions()&&i||!t.filterOption({label:s,value:u,data:e},o))){var c=a?undefined:function(){return t.onOptionHover(e)},l=a?undefined:function(){return t.selectOption(e)},f="".concat(t.getElementId("option"),"-").concat(r);return{innerProps:{id:f,onClick:l,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:a,isSelected:i,key:f,label:s,type:"option",value:u}}};return a.reduce((function(e,n,r){if(n.options){t.hasGroups||(t.hasGroups=!0);var o=n.options.map((function(t,n){var o=i(t,"".concat(r,"-").concat(n));return o&&e.focusable.push(t),o})).filter(Boolean);if(o.length){var a="".concat(t.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:a,data:n,options:o})}}else{var s=i(n,"".concat(r));s&&(e.render.push(s),e.focusable.push(n))}return e}),{render:[],focusable:[]})};var o=e.value;t.cacheComponents=Ae(t.cacheComponents,en).bind(Me(t)),t.cacheComponents(e.components),t.instancePrefix="react-select-"+(t.props.instanceId||++mr);var a=Pt(o);t.buildMenuOptions=Ae(t.buildMenuOptions,(function(e,t){var n=xt(e,2),r=n[0],o=n[1],a=xt(t,2),i=a[0];return o===a[1]&&r.inputValue===i.inputValue&&r.options===i.options})).bind(Me(t));var i=e.menuIsOpen?t.buildMenuOptions(e,a):{render:[],focusable:[]};return t.state.menuOptions=i,t.state.selectValue=a,t}return De(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,a=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==a){var i=Pt(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,i):{render:[],focusable:[]},u=this.getNextFocusedValue(i),c=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:i,focusedOption:c,focusedValue:u})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,a,i=this.props,s=i.isDisabled,u=i.menuIsOpen,c=this.state.isFocused;(c&&!s&&e.isDisabled||c&&u&&!e.menuIsOpen)&&this.focusInput(),c&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=n.offsetHeight/3,o.bottom+a>r.bottom?At(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+a,t.scrollHeight)):o.top-a<r.top&&At(t,Math.max(n.offsetTop-a,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildMenuOptions(this.props,r),i=this.props,s=i.isMulti,u=i.tabSelectsValue,c="first"===e?0:a.focusable.length-1;if(!s){var l=a.focusable.indexOf(r[0]);l>-1&&(c=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:a,focusedValue:null,focusedOption:a.focusable[c]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:u}})}))}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,a=o.selectValue,i=o.focusedValue;if(n){this.setState({focusedOption:null});var s=a.indexOf(i);i||(s=-1,this.announceAriaLiveContext({event:"value"}));var u=a.length-1,c=-1;if(a.length){switch(e){case"previous":c=0===s?0:-1===s?u:s-1;break;case"next":s>-1&&s<u&&(c=s+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"first",t=this.props,n=t.pageSize,r=t.tabSelectsValue,o=this.state,a=o.focusedOption,i=o.menuOptions,s=i.focusable;if(s.length){var u=0,c=s.indexOf(a);a||(c=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:r}})),"up"===e?u=c>0?c-1:s.length-1:"down"===e?u=(c+1)%s.length:"pageup"===e?(u=c-n)<0&&(u=0):"pagedown"===e?(u=c+n)>s.length-1&&(u=s.length-1):"last"===e&&(u=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[u],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:sr(s[u]),tabSelectsValue:r}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(cr):fr(fr({},cr),this.props.theme):cr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.setValue,a=this.selectOption,i=this.props,s=i.isMulti,u=i.isRtl,c=i.options;return{cx:t,clearValue:e,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:c,selectOption:a,setValue:o,selectProps:i,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return t===undefined?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,a=this.props,i=a.options,s=a.menuIsOpen,u=a.inputValue,c=a.screenReaderStatus,l=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",f=o&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:i}):"",d=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:u,screenReaderMessage:c({count:this.countOptions()})});return"".concat(l," ").concat(f," ").concat(d," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,n=e.isDisabled,r=e.isSearchable,o=e.inputId,a=e.inputValue,i=e.tabIndex,s=e.form,u=this.components.Input,c=this.state.inputIsHidden,l=o||this.getElementId("input"),f={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!r)return t().createElement(Hn,wt({id:l,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Et,onFocus:this.onInputFocus,readOnly:!0,disabled:n,tabIndex:i,form:s,value:""},f));var d=this.commonProps,p=d.cx,h=d.theme,m=d.selectProps;return t().createElement(u,wt({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:l,innerRef:this.getInputRef,isDisabled:n,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:m,spellCheck:"false",tabIndex:i,form:s,theme:h,type:"text",value:a},f))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,n=this.components,r=n.MultiValue,o=n.MultiValueContainer,a=n.MultiValueLabel,i=n.MultiValueRemove,s=n.SingleValue,u=n.Placeholder,c=this.commonProps,l=this.props,f=l.controlShouldRenderValue,d=l.isDisabled,p=l.isMulti,h=l.inputValue,m=l.placeholder,g=this.state,v=g.selectValue,b=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!f)return h?null:t().createElement(u,wt({},c,{key:"placeholder",isDisabled:d,isFocused:y}),m);if(p)return v.map((function(n,s){var u=n===b;return t().createElement(r,wt({},c,{components:{Container:o,Label:a,Remove:i},isFocused:u,isDisabled:d,key:"".concat(e.getOptionValue(n)).concat(s),index:s,removeProps:{onClick:function(){return e.removeValue(n)},onTouchEnd:function(){return e.removeValue(n)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:n}),e.formatOptionLabel(n,"value"))}));if(h)return null;var w=v[0];return t().createElement(s,wt({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,a=r.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||a)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return t().createElement(e,wt({},n,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,a=r.isLoading,i=this.state.isFocused;if(!e||!a)return null;return t().createElement(e,wt({},n,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,n=e.DropdownIndicator,r=e.IndicatorSeparator;if(!n||!r)return null;var o=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return t().createElement(r,wt({},o,{isDisabled:a,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var n=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return t().createElement(e,wt({},n,{innerProps:a,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,n=this.components,r=n.Group,o=n.GroupHeading,a=n.Menu,i=n.MenuList,s=n.MenuPortal,u=n.LoadingMessage,c=n.NoOptionsMessage,l=n.Option,f=this.commonProps,d=this.state,p=d.focusedOption,h=d.menuOptions,m=this.props,g=m.captureMenuScroll,v=m.inputValue,b=m.isLoading,y=m.loadingMessage,w=m.minMenuHeight,C=m.maxMenuHeight,O=m.menuIsOpen,x=m.menuPlacement,D=m.menuPosition,k=m.menuPortalTarget,S=m.menuShouldBlockScroll,E=m.menuShouldScrollIntoView,M=m.noOptionsMessage,_=m.onMenuScrollToTop,P=m.onMenuScrollToBottom;if(!O)return null;var j,T=function(n){var r=p===n.data;return n.innerRef=r?e.getFocusedOptionRef:undefined,t().createElement(l,wt({},f,n,{isFocused:r}),e.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())j=h.render.map((function(n){if("group"===n.type){n.type;var a=yt(n,["type"]),i="".concat(n.key,"-heading");return t().createElement(r,wt({},f,a,{Heading:o,headingProps:{id:i,data:n.data},label:e.formatGroupLabel(n.data)}),n.options.map((function(e){return T(e)})))}if("option"===n.type)return T(n)}));else if(b){var A=y({inputValue:v});if(null===A)return null;j=t().createElement(u,f,A)}else{var I=M({inputValue:v});if(null===I)return null;j=t().createElement(c,f,I)}var N={minMenuHeight:w,maxMenuHeight:C,menuPlacement:x,menuPosition:D,menuShouldScrollIntoView:E},R=t().createElement(zt,wt({},f,N),(function(n){var r=n.ref,o=n.placerProps,s=o.placement,u=o.maxHeight;return t().createElement(a,wt({},f,N,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:s}),t().createElement(or,{isEnabled:g,onTopArrive:_,onBottomArrive:P},t().createElement(tr,{isEnabled:S},t().createElement(i,wt({},f,{innerRef:e.getMenuListRef,isLoading:b,maxHeight:u}),j))))}));return k||"fixed"===D?t().createElement(s,wt({},f,{appendTo:k,controlElement:this.controlRef,menuPlacement:x,menuPosition:D}),R):R}},{key:"renderFormField",value:function(){var e=this,n=this.props,r=n.delimiter,o=n.isDisabled,a=n.isMulti,i=n.name,s=this.state.selectValue;if(i&&!o){if(a){if(r){var u=s.map((function(t){return e.getOptionValue(t)})).join(r);return t().createElement("input",{name:i,type:"hidden",value:u})}var c=s.length>0?s.map((function(n,r){return t().createElement("input",{key:"i-".concat(r),name:i,type:"hidden",value:e.getOptionValue(n)})})):t().createElement("input",{name:i,type:"hidden"});return t().createElement("div",null,c)}var l=s[0]?this.getOptionValue(s[0]):"";return t().createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?t().createElement(Fn,{"aria-live":"polite"},t().createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),t().createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,n=e.Control,r=e.IndicatorsContainer,o=e.SelectContainer,a=e.ValueContainer,i=this.props,s=i.className,u=i.id,c=i.isDisabled,l=i.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return t().createElement(o,wt({},d,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:f}),this.renderLiveRegion(),t().createElement(n,wt({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:f,menuIsOpen:l}),t().createElement(a,wt({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),t().createElement(r,wt({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),r}(e.Component);function vr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}gr.defaultProps=hr;var br={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};function yr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return _e(this,n)}}e.Component;var wr,Cr,Or,xr=(wr=gr,Or=Cr=function(e){Se(r,e);var n=vr(r);function r(){var e;Oe(this,r);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).select=void 0,e.state={inputValue:e.props.inputValue!==undefined?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:e.props.menuIsOpen!==undefined?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:e.props.value!==undefined?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:r!==undefined?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return De(r,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return this.props[e]!==undefined?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,n=this.props,r=(n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue,yt(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return t().createElement(wr,wt({},r,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),r}(e.Component),Cr.defaultProps=br,Or),Dr=n(322),kr=n.n(Dr),Sr=n(555),Er=n.n(Sr),Mr=["mousedown","touchstart"];
27
  /**!
28
  * @fileOverview Kickass library to create and place poppers near their reference elements.
29
  * @version 1.16.1
@@ -48,4 +48,4 @@ PERFORMANCE OF THIS SOFTWARE.
48
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
49
  * SOFTWARE.
50
  */
51
- var _r="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Pr=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(_r&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var jr=_r&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Pr))}};function Tr(e){return e&&"[object Function]"==={}.toString.call(e)}function Ar(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Ir(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Nr(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ar(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:Nr(Ir(e))}function Rr(e){return e&&e.referenceNode?e.referenceNode:e}var Lr=_r&&!(!window.MSInputMethodContext||!document.documentMode),Vr=_r&&/MSIE 10/.test(navigator.userAgent);function Fr(e){return 11===e?Lr:10===e?Vr:Lr||Vr}function Hr(e){if(!e)return document.documentElement;for(var t=Fr(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Ar(n,"position")?Hr(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ur(e){return null!==e.parentNode?Ur(e.parentNode):e}function Wr(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(o,0);var i,s,u=a.commonAncestorContainer;if(e!==u&&t!==u||r.contains(o))return"BODY"===(s=(i=u).nodeName)||"HTML"!==s&&Hr(i.firstElementChild)!==i?Hr(u):u;var c=Ur(e);return c.host?Wr(c.host,t):Wr(e,Ur(t).host)}function zr(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||o;return a[n]}return e[n]}function Br(e,t){var n=arguments.length>2&&arguments[2]!==undefined&&arguments[2],r=zr(t,"top"),o=zr(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=o*a,e.right+=o*a,e}function Yr(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function qr(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Fr(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function Kr(e){var t=e.body,n=e.documentElement,r=Fr(10)&&getComputedStyle(n);return{height:qr("Height",t,n,r),width:qr("Width",t,n,r)}}var $r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Gr=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Jr=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Qr=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};function Xr(e){return Qr({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Zr(e){var t={};try{if(Fr(10)){t=e.getBoundingClientRect();var n=zr(e,"top"),r=zr(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(f){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?Kr(e.ownerDocument):{},i=a.width||e.clientWidth||o.width,s=a.height||e.clientHeight||o.height,u=e.offsetWidth-i,c=e.offsetHeight-s;if(u||c){var l=Ar(e);u-=Yr(l,"x"),c-=Yr(l,"y"),o.width-=u,o.height-=c}return Xr(o)}function eo(e,t){var n=arguments.length>2&&arguments[2]!==undefined&&arguments[2],r=Fr(10),o="HTML"===t.nodeName,a=Zr(e),i=Zr(t),s=Nr(e),u=Ar(t),c=parseFloat(u.borderTopWidth),l=parseFloat(u.borderLeftWidth);n&&o&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var f=Xr({top:a.top-i.top-c,left:a.left-i.left-l,width:a.width,height:a.height});if(f.marginTop=0,f.marginLeft=0,!r&&o){var d=parseFloat(u.marginTop),p=parseFloat(u.marginLeft);f.top-=c-d,f.bottom-=c-d,f.left-=l-p,f.right-=l-p,f.marginTop=d,f.marginLeft=p}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(f=Br(f,t)),f}function to(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],n=e.ownerDocument.documentElement,r=eo(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:zr(n),s=t?0:zr(n,"left"),u={top:i-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:a};return Xr(u)}function no(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Ar(e,"position"))return!0;var n=Ir(e);return!!n&&no(n)}function ro(e){if(!e||!e.parentElement||Fr())return document.documentElement;for(var t=e.parentElement;t&&"none"===Ar(t,"transform");)t=t.parentElement;return t||document.documentElement}function oo(e,t,n,r){var o=arguments.length>4&&arguments[4]!==undefined&&arguments[4],a={top:0,left:0},i=o?ro(e):Wr(e,Rr(t));if("viewport"===r)a=to(i,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=Nr(Ir(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var u=eo(s,i,o);if("HTML"!==s.nodeName||no(i))a=u;else{var c=Kr(e.ownerDocument),l=c.height,f=c.width;a.top+=u.top-u.marginTop,a.bottom=l+u.top,a.left+=u.left-u.marginLeft,a.right=f+u.left}}var d="number"==typeof(n=n||0);return a.left+=d?n:n.left||0,a.top+=d?n:n.top||0,a.right-=d?n:n.right||0,a.bottom-=d?n:n.bottom||0,a}function ao(e){return e.width*e.height}function io(e,t,n,r,o){var a=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=oo(n,r,a,o),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},u=Object.keys(s).map((function(e){return Qr({key:e},s[e],{area:ao(s[e])})})).sort((function(e,t){return t.area-e.area})),c=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=c.length>0?c[0].key:u[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function so(e,t,n){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null,o=r?ro(t):Wr(t,Rr(n));return eo(n,o,r)}function uo(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function co(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function lo(e,t,n){n=n.split("-")[0];var r=uo(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",s=a?"left":"top",u=a?"height":"width",c=a?"width":"height";return o[i]=t[i]+t[u]/2-r[u]/2,o[s]=n===s?t[s]-r[c]:t[co(s)],o}function fo(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function po(e,t,n){return(n===undefined?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=fo(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e["function"]||e.fn;e.enabled&&Tr(n)&&(t.offsets.popper=Xr(t.offsets.popper),t.offsets.reference=Xr(t.offsets.reference),t=n(t,e))})),t}function ho(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=so(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=io(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=lo(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=po(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function mo(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function go(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],a=o?""+o+n:e;if("undefined"!=typeof document.body.style[a])return a}return null}function vo(){return this.state.isDestroyed=!0,mo(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[go("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function bo(e){var t=e.ownerDocument;return t?t.defaultView:window}function yo(e,t,n,r){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),o||yo(Nr(a.parentNode),t,n,r),r.push(a)}function wo(e,t,n,r){n.updateBound=r,bo(e).addEventListener("resize",n.updateBound,{passive:!0});var o=Nr(e);return yo(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Co(){this.state.eventsEnabled||(this.state=wo(this.reference,this.options,this.state,this.scheduleUpdate))}function Oo(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,bo(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function xo(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Do(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&xo(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var ko=_r&&/Firefox/i.test(navigator.userAgent);function So(e,t,n){var r=fo(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var a="`"+t+"`",i="`"+n+"`";console.warn(i+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return o}var Eo=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Mo=Eo.slice(3);function _o(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],n=Mo.indexOf(e),r=Mo.slice(n+1).concat(Mo.slice(0,n));return t?r.reverse():r}var Po="flip",jo="clockwise",To="counterclockwise";function Ao(e,t,n,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=i.indexOf(fo(i,(function(e){return-1!==e.search(/,|\s/)})));i[s]&&-1===i[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,c=-1!==s?[i.slice(0,s).concat([i[s].split(u)[0]]),[i[s].split(u)[1]].concat(i.slice(s+1))]:[i];return(c=c.map((function(e,r){var o=(1===r?!a:a)?"height":"width",i=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],i=o[2];if(!a)return e;if(0===i.indexOf("%")){var s=void 0;switch(i){case"%p":s=n;break;case"%":case"%r":default:s=r}return Xr(s)[t]/100*a}if("vh"===i||"vw"===i)return("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){xo(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var Io={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,a=o.reference,i=o.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",c=s?"width":"height",l={start:Jr({},u,a[u]),end:Jr({},u,a[u]+a[c]-i[c])};e.offsets.popper=Qr({},i,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,a=o.popper,i=o.reference,s=r.split("-")[0],u=void 0;return u=xo(+n)?[+n,0]:Ao(n,a,i,s),"left"===s?(a.top+=u[0],a.left-=u[1]):"right"===s?(a.top+=u[0],a.left+=u[1]):"top"===s?(a.left+=u[0],a.top-=u[1]):"bottom"===s&&(a.left+=u[0],a.top+=u[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Hr(e.instance.popper);e.instance.reference===n&&(n=Hr(n));var r=go("transform"),o=e.instance.popper.style,a=o.top,i=o.left,s=o[r];o.top="",o.left="",o[r]="";var u=oo(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=i,o[r]=s,t.boundaries=u;var c=t.priority,l=e.offsets.popper,f={primary:function(e){var n=l[e];return l[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(l[e],u[e])),Jr({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(l[n],u[e]-("right"===e?l.width:l.height))),Jr({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=Qr({},l,f[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],a=Math.floor,i=-1!==["top","bottom"].indexOf(o),s=i?"right":"bottom",u=i?"left":"top",c=i?"width":"height";return n[s]<a(r[u])&&(e.offsets.popper[u]=a(r[u])-n[c]),n[u]>a(r[s])&&(e.offsets.popper[u]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!So(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],a=e.offsets,i=a.popper,s=a.reference,u=-1!==["left","right"].indexOf(o),c=u?"height":"width",l=u?"Top":"Left",f=l.toLowerCase(),d=u?"left":"top",p=u?"bottom":"right",h=uo(r)[c];s[p]-h<i[f]&&(e.offsets.popper[f]-=i[f]-(s[p]-h)),s[f]+h>i[p]&&(e.offsets.popper[f]+=s[f]+h-i[p]),e.offsets.popper=Xr(e.offsets.popper);var m=s[f]+s[c]/2-h/2,g=Ar(e.instance.popper),v=parseFloat(g["margin"+l]),b=parseFloat(g["border"+l+"Width"]),y=m-e.offsets.popper[f]-v-b;return y=Math.max(Math.min(i[c]-h,y),0),e.arrowElement=r,e.offsets.arrow=(Jr(n={},f,Math.round(y)),Jr(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(mo(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=oo(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=co(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case Po:i=[r,o];break;case jo:i=_o(r);break;case To:i=_o(r,!0);break;default:i=t.behavior}return i.forEach((function(s,u){if(r!==s||i.length===u+1)return e;r=e.placement.split("-")[0],o=co(r);var c=e.offsets.popper,l=e.offsets.reference,f=Math.floor,d="left"===r&&f(c.right)>f(l.left)||"right"===r&&f(c.left)<f(l.right)||"top"===r&&f(c.bottom)>f(l.top)||"bottom"===r&&f(c.top)<f(l.bottom),p=f(c.left)<f(n.left),h=f(c.right)>f(n.right),m=f(c.top)<f(n.top),g=f(c.bottom)>f(n.bottom),v="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===a&&p||b&&"end"===a&&h||!b&&"start"===a&&m||!b&&"end"===a&&g),w=!!t.flipVariationsByContent&&(b&&"start"===a&&h||b&&"end"===a&&p||!b&&"start"===a&&g||!b&&"end"===a&&m),C=y||w;(d||v||C)&&(e.flipped=!0,(d||v)&&(r=i[u+1]),C&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=Qr({},e.offsets.popper,lo(e.instance.popper,e.offsets.reference,e.placement)),e=po(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,a=r.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[i?"left":"top"]=a[n]-(s?o[i?"width":"height"]:0),e.placement=co(t),e.offsets.popper=Xr(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!So(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=fo(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,a=fo(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;a!==undefined&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var i=a!==undefined?a:t.gpuAcceleration,s=Hr(e.instance.popper),u=Zr(s),c={position:o.position},l=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,a=Math.round,i=Math.floor,s=function(e){return e},u=a(o.width),c=a(r.width),l=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?l||f||u%2==c%2?a:i:s,p=t?a:s;return{left:d(u%2==1&&c%2==1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!ko),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",p=go("transform"),h=void 0,m=void 0;if(m="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+l.bottom:-u.height+l.bottom:l.top,h="right"===d?"HTML"===s.nodeName?-s.clientWidth+l.right:-u.width+l.right:l.left,i&&p)c[p]="translate3d("+h+"px, "+m+"px, 0)",c[f]=0,c[d]=0,c.willChange="transform";else{var g="bottom"===f?-1:1,v="right"===d?-1:1;c[f]=m*g,c[d]=h*v,c.willChange=f+", "+d}var b={"x-placement":e.placement};return e.attributes=Qr({},b,e.attributes),e.styles=Qr({},c,e.styles),e.arrowStyles=Qr({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Do(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Do(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var a=so(o,t,e,n.positionFixed),i=io(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),Do(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:undefined}}},No=function(){function e(t,n){var r=this,o=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};$r(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=jr(this.update.bind(this)),this.options=Qr({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Qr({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=Qr({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Qr({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Tr(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return Gr(e,[{key:"update",value:function(){return ho.call(this)}},{key:"destroy",value:function(){return vo.call(this)}},{key:"enableEventListeners",value:function(){return Co.call(this)}},{key:"disableEventListeners",value:function(){return Oo.call(this)}}]),e}();No.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,No.placements=Eo,No.Defaults=Io;var Ro=No,Lo=(n(353),function(e){do{e+=~~(1e6*Math.random())}while("undefined"!=typeof document&&document.getElementById(e));return e}),Vo=("undefined"!=typeof window&&"undefined"!=typeof window.document&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,{name:"kpm0v2",styles:"position:absolute;display:block;width:16px;height:8px;margin:0 5px;&:before,&:after{position:absolute;display:block;content:'';border-color:transparent;border-style:solid;}"}),Fo=function(t){t.placement;var n=bt(t,["placement"]);return ft(e.Fragment,null,ft(dt,{styles:Ho}),ft("div",wt({},n,{"data-arrow":"true",css:Vo})))},Ho={name:"rvo98s",styles:"[x-placement^='top']{margin-bottom:8px;[data-arrow]{bottom:-9px;}[data-arrow]:before{bottom:0;border-width:8px 8px 0;border-top-color:rgba(0,0,0,0.25);}[data-arrow]:after{bottom:1px;border-width:8px 8px 0;border-top-color:#fff;}}[x-placement^='right']{margin-left:8px;[data-arrow]{left:-9px;width:8px;height:16px;margin:5px 0;}[data-arrow]:before{left:0;border-width:8px 8px 8px 0;border-right-color:rgba(0,0,0,0.25);}[data-arrow]:after{left:1px;border-width:8px 8px 8px 0;border-right-color:#fff;}}[x-placement^='bottom']{margin-top:8px;[data-arrow]{top:-9px;}[data-arrow]:before{top:0;border-width:0 8px 8px 8px;border-bottom-color:rgba(0,0,0,0.25);}[data-arrow]:after{top:1px;border-width:0 8px 8px 8px;border-bottom-color:#fff;}}[x-placement^='left']{margin-right:8px;[data-arrow]{right:-9px;width:8px;height:16px;margin:5px 0;}[data-arrow]:before{right:0;border-width:8px 0 8px 8px;border-left-color:rgba(0,0,0,0.25);}[data-arrow]:after{right:1px;border-width:8px 0 8px 8px;border-left-color:#fff;}}"},Uo=function(n){var r,o,a,i=n.header,s=n.body,u=n.children,c=n.placement,l=n.trigger,f=n.styles,d=bt(n,["header","body","children","placement","trigger","styles"]),p=t().Children.only(u),h=(0,e.useRef)(null),m=(0,e.useState)(!1),g=m[0],v=m[1],b=(0,e.useState)(!1),y=b[0],w=b[1],C=(0,e.useState)({popoverId:null,referenceId:null,arrowId:null}),O=C[0],x=C[1],D=O.popoverId,k=O.referenceId,S=O.arrowId;r=h,o=function(e){e.target.id===k||document.getElementById(k).contains(e.target)||v(!1)},a=(0,e.useRef)(),(0,e.useEffect)((function(){a.current=o}),[o]),(0,e.useEffect)((function(){var e=function(e){r.current&&!r.current.contains(e.target)&&a.current(event)};return Mr.forEach((function(t){document.addEventListener(t,e,{passive:!0})})),function(){Mr.forEach((function(t){document.removeEventListener(t,e,{passive:!0})}))}}),[r,o]),(0,e.useEffect)((function(){if(!D)return x({popoverId:Lo("popover"),referenceId:Lo("reference"),arrowId:Lo("arrow")});var e=document.getElementById(D),t=document.getElementById(k),n=document.getElementById(S);e&&t&&n&&(new Ro(t,e,{placement:c,modifiers:{arrow:{element:n}}}),w(g))}),[g]);var E={content:[Wo.content,f.content],header:[Wo.header,f.header],body:[Wo.body,f.body]};return ft(e.Fragment,null,D?ft("div",wt({},d,{id:D,ref:h,css:E.content,style:y?{display:"block"}:{}}),ft(Fo,{id:S}),i?ft("div",{css:E.header},i):null,ft("div",{css:E.body},s)):null,t().cloneElement(p,wt({},p.props,{id:k,onClick:function(){"click"===l&&v(!g)}})))};Uo.defaultProps={placement:"right",trigger:"click",styles:{}};var Wo={content:{name:"106ha8s",styles:"display:none;max-width:300px;background-color:#fff;border-radius:4px;border:1px solid rgba(0,0,0,0.2);z-index:1060;"},header:{name:"12koz1z",styles:"padding:8px 12px;background-color:#f7f7f7;font-size:16px;font-weight:bold;border-top-left-radius:4px;border-top-right-radius:4px;"},body:{name:"k7kym8",styles:"padding:8px 12px;font-size:14px;border-bottom-left-radius:4px;border-bottom-right-radius:4px;"}},zo=Uo;function Bo(e){var t=e.touches;if(t&&t.length){var n=t[0];return{x:n.clientX,y:n.clientY}}return{x:e.clientX,y:e.clientY}}var Yo={position:"relative",display:"inline-block",backgroundColor:"#ddd",borderRadius:5,userSelect:"none",boxSizing:"border-box"},qo={position:"absolute",backgroundColor:"#5e72e4",borderRadius:5,userSelect:"none",boxSizing:"border-box"},Ko={position:"relative",display:"block",content:'""',width:18,height:18,backgroundColor:"#fff",borderRadius:"50%",boxShadow:"0 1px 1px rgba(0,0,0,.5)",userSelect:"none",cursor:"pointer",boxSizing:"border-box"},$o={x:{track:wt({},Yo,{width:200,height:10}),active:wt({},qo,{top:0,height:"100%"}),thumb:wt({},Ko)},y:{track:wt({},Yo,{width:10,height:200}),active:wt({},qo,{left:0,width:"100%"}),thumb:wt({},Ko)},xy:{track:{position:"relative",overflow:"hidden",width:200,height:200,backgroundColor:"#5e72e4",borderRadius:0},active:{},thumb:wt({},Ko)},disabled:{opacity:.5}},Go=function(t){var n=t.disabled,r=t.axis,o=t.x,a=t.y,i=t.xmin,s=t.xmax,u=t.ymin,c=t.ymax,l=t.xstep,f=t.ystep,d=t.onChange,p=t.onDragStart,h=t.onDragEnd,m=t.onClick,g=t.xreverse,v=t.yreverse,b=t.styles,y=bt(t,["disabled","axis","x","y","xmin","xmax","ymin","ymax","xstep","ystep","onChange","onDragStart","onDragEnd","onClick","xreverse","yreverse","styles"]),w=(0,e.useRef)(null),C=(0,e.useRef)(null),O=(0,e.useRef)({}),x=(0,e.useRef)({});function D(e){var t=e.top,n=e.left;if(d){var o=w.current.getBoundingClientRect(),a=o.width,p=o.height,h=0,m=0;n<0&&(n=0),n>a&&(n=a),t<0&&(t=0),t>p&&(t=p),"x"!==r&&"xy"!==r||(h=n/a*(s-i)),"y"!==r&&"xy"!==r||(m=t/p*(c-u));var b=(0!==h?parseInt(h/l,10)*l:0)+i,y=(0!==m?parseInt(m/f,10)*f:0)+u;d({x:g?s-b+i:b,y:v?c-y+u:y})}}function k(e){if(!n){e.preventDefault();var t=C.current,r=Bo(e);O.current={x:t.offsetLeft,y:t.offsetTop},x.current={x:r.x,y:r.y},document.addEventListener("mousemove",S),document.addEventListener("mouseup",E),document.addEventListener("touchmove",S,{passive:!1}),document.addEventListener("touchend",E),document.addEventListener("touchcancel",E),p&&p(e)}}function S(e){n||(e.preventDefault(),D(function(e){var t=Bo(e);return{left:t.x+O.current.x-x.current.x,top:t.y+O.current.y-x.current.y}}(e)))}function E(e){n||(e.preventDefault(),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",S,{passive:!1}),document.removeEventListener("touchend",E),document.removeEventListener("touchcancel",E),h&&h(e))}var M,_,P=((M=(a-u)/(c-u)*100)>100&&(M=100),M<0&&(M=0),"x"===r&&(M=0),(_=(o-i)/(s-i)*100)>100&&(_=100),_<0&&(_=0),"y"===r&&(_=0),{top:M,left:_}),j={};"x"===r&&(j.width=P.left+"%"),"y"===r&&(j.height=P.top+"%"),g&&(j.left=100-P.left+"%"),v&&(j.top=100-P.top+"%");var T={position:"absolute",transform:"translate(-50%, -50%)",left:g?100-P.left+"%":P.left+"%",top:v?100-P.top+"%":P.top+"%"};"x"===r?T.top="50%":"y"===r&&(T.left="50%");var A={track:wt({},$o[r].track,{},b.track),active:wt({},$o[r].active,{},b.active),thumb:wt({},$o[r].thumb,{},b.thumb),disabled:wt({},$o.disabled,{},b.disabled)};return ft("div",wt({},y,{ref:w,css:lt([A.track,n&&A.disabled],";label:Slider;"),onClick:function(e){if(!n){var t=Bo(e),r=w.current.getBoundingClientRect();D({left:t.x-r.left,top:t.y-r.top}),m&&m(e)}}}),ft("div",{css:A.active,style:j}),ft("div",{ref:C,style:T,onTouchStart:k,onMouseDown:k,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},ft("div",{css:A.thumb})))};Go.defaultProps={disabled:!1,axis:"x",x:50,xmin:0,xmax:100,y:50,ymin:0,ymax:100,xstep:1,ystep:1,xreverse:!1,yreverse:!1,styles:{}};var Jo=Go,Qo=n(654),Xo=n.n(Qo),Zo=n(763),ea=n.n(Zo),ta=n(37),na=n.n(ta),ra="undefined"!=typeof navigator&&navigator.userAgent.match(/iPhone|iPad|iPod/i),oa=function(t){var n=t.step,r=t.min,o=t.max,a=t.value,i=t.onChange,s=t.onKeyDown,u=t.enableMobileNumericKeyboard,c=t.component,l=bt(t,["step","min","max","value","onChange","onKeyDown","enableMobileNumericKeyboard","component"]),f=(0,e.useState)(a),d=f[0],p=f[1];(0,e.useEffect)((function(){p(a)}),[a]);var h={value:d,onChange:function(e){var t=function(e){if(ea()(e))return e;if(na()(e)){if(!(e=e.trim()))return"";var t=parseFloat(e);if(!Xo()(t))return t}return""}(e);p(e),i&&i(t)},onKeyDown:function(e){38===e.keyCode?i&&i(ia("+",a,o,r,n)):40===e.keyCode&&i&&i(ia("-",a,o,r,n)),s&&s(e)},onWheel:function(e){e.target.blur()}};return ft(c,wt({},l,h,u?{css:aa,type:"number",inputMode:"numeric",pattern:ra?"[0-9]*":"",step:n,min:r,max:o}:{css:aa,type:"text"}))};oa.defaultProps={autoComplete:"off",enableMobileNumericKeyboard:!1,value:"",component:function(e){var t=e.onChange,n=bt(e,["onChange"]);return ft("input",wt({},n,{onChange:function(e){t&&t(e.target.value)}}))},step:1};var aa={MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}};function ia(e,t,n,r,o){if(""===t)return ea()(r)?r:"";if(t="+"===e?t+o:t-o,ea()(n)&&t>n)return n;if(ea()(r)&&t<r)return r;var a=(o.toString().split(".")[1]||[]).length;return a?parseFloat(t.toFixed(a)):t}var sa=oa;function ua(e){return"#"===e[0]&&(e=e.substr(1)),3===e.length?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16)}}function ca(e,t,n){var r=[],o=(n/=100)*(t/=100),a=e/60,i=o*(1-Math.abs(a%2-1)),s=n-o;return r=a>=0&&a<1?[o,i,0]:a>=1&&a<2?[i,o,0]:a>=2&&a<3?[0,o,i]:e>=3&&a<4?[0,i,o]:e>=4&&a<5?[i,0,o]:e>=5&&a<=6?[o,0,i]:[0,0,0],{r:Math.round(255*(r[0]+s)),g:Math.round(255*(r[1]+s)),b:Math.round(255*(r[2]+s))}}function la(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function fa(e,t,n){return"#"+[la(e),la(t),la(n)].join("")}function da(e,t,n){var r,o=Math.max(e,t,n),a=o-Math.min(e,t,n);return r=0===a?0:e===o?(t-n)/a%6:t===o?(n-e)/a+2:(e-t)/a+4,(r=Math.round(60*r))<0&&(r+=360),{h:r,s:Math.round(100*(0===o?0:a/o)),v:Math.round(o/255*100)}}function pa(e,t,n,r){return"rgba("+[e,t,n,r/100].join(",")+")"}var ha={name:"bzk4lp",styles:"width:100%;margin-top:10px;margin-bottom:10px;display:flex;"},ma={name:"lwa3hx",styles:"flex:1;margin-right:10px;"},ga=function(e){var t=e.color,n=e.onChange,r=t.r,o=t.g,a=t.b,i=t.a,s=t.h,u=t.s,c=t.v;function l(e){n&&n(wt({},e,{rgba:pa(e.r,e.g,e.b,e.a)}))}function f(e,n,r){var o=ca(e,n,r),a=o.r,i=o.g,s=o.b,u=fa(a,i,s);l(wt({},t,{h:e,s:n,v:r,r:a,g:i,b:s,hex:u}))}function d(e,n,r){var o=fa(e,n,r),a=da(e,n,r),i=a.h,s=a.s,u=a.v;l(wt({},t,{r:e,g:n,b:r,h:i,s:s,v:u,hex:o}))}function p(e){l(wt({},t,{a:e}))}var h=pa(r,o,a,i),m="linear-gradient(to right, "+pa(r,o,a,0)+", "+pa(r,o,a,100)+")",g=function(e,t,n){var r=ca(e,t,n);return fa(r.r,r.g,r.b)}(s,100,100);return ft("div",{css:va.picker,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},ft("div",{css:va.selector,style:{backgroundColor:g}},ft("div",{css:va.gradientWhite}),ft("div",{css:va.gradientDark}),ft(Jo,{axis:"xy",x:u,xmax:100,y:100-c,ymax:100,onChange:function(e){var t=e.x,n=e.y;return f(s,t,100-n)},styles:{track:{width:"100%",height:"100%",background:"none"},thumb:{width:12,height:12,backgroundColor:"rgba(0,0,0,0)",border:"2px solid #fff",borderRadius:"50%"}}})),ft("div",{css:ha},ft("div",{css:ma},ft(Jo,{axis:"x",x:s,xmax:359,onChange:function(e){return f(e.x,u,c)},styles:{track:{width:"100%",height:12,borderRadius:0,background:"linear-gradient(to left, #FF0000 0%, #FF0099 10%, #CD00FF 20%, #3200FF 30%, #0066FF 40%, #00FFFD 50%, #00FF66 60%, #35FF00 70%, #CDFF00 80%, #FF9900 90%, #FF0000 100%)"},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}}}),ft(Jo,{axis:"x",x:i,xmax:100,styles:{track:{width:"100%",height:12,borderRadius:0,background:m},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}},onChange:function(e){return p(e.x)}})),ft("div",{style:{backgroundColor:h,width:30,height:30}})),ft("div",{css:va.inputs},ft("div",{css:va.input},ft("input",{style:{width:70,textAlign:"left"},type:"text",value:t.hex,onChange:function(e){return function(e){var n=ua(e),r=n.r,o=n.g,a=n.b,i=da(r,o,a),s=i.h,u=i.s,c=i.v;l(wt({},t,{r:r,g:o,b:a,h:s,s:u,v:c,hex:e}))}(e.target.value)},onKeyUp:function(e){if(13===e.keyCode){var n=e.target.value.trim(),r=ua(n),o=r.r,a=r.g,s=r.b;l(wt({},t,{r:o,g:a,b:s,a:i,hex:n}))}}}),ft("div",null,"Hex")),ft("div",{css:va.input},ft(sa,{min:0,max:255,value:r,onChange:function(e){return d(e,o,a)}}),ft("div",null,"R")),ft("div",{css:va.input},ft(sa,{min:0,max:255,value:o,onChange:function(e){return d(r,e,a)}}),ft("div",null,"G")),ft("div",{css:va.input},ft(sa,{min:0,max:255,value:a,onChange:function(e){return d(r,o,e)}}),ft("div",null,"B")),ft("div",{css:va.input},ft(sa,{min:0,max:100,value:i,onChange:function(e){return p(e)}}),ft("div",null,"A"))))};ga.defaultProps={initialValue:"#5e72e4"};var va={picker:{fontFamily:"'Helvetica Neue',Helvetica,Arial,sans-serif",width:230,"*":{userSelect:"none"}},selector:{position:"relative",width:230,height:230},gradientWhite:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%)"},gradientDark:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to bottom, transparent 0%, #000000 100%)"},inputs:{display:"flex",justifyContent:"space-between",width:"100%"},input:{textAlign:"center",fontSize:13,fontWeight:"normal",color:"#000",input:{width:30,textAlign:"center"},div:{marginTop:4}}};function ba(e){var t,n=(e=e.toLowerCase()).substr(0,7),r=ua(n),o=r.r,a=r.g,i=r.b,s=da(o,a,i),u=e.length>7?(t=e.substr(7),Math.round(parseInt("0x"+t,16)/255*100)):100;return wt({},s,{r:o,g:a,b:i,a:u,hex:n,rgba:pa(o,a,i,u)})}var ya={name:"j4ndc3",styles:"position:relative;display:inline-block;box-sizing:border-box;width:49px;height:24px;padding:4px;background-color:#ffffff;border:1px solid #bebebe;border-radius:3px;user-select:none;"},wa={name:"trkpwz",styles:"display:block;width:100%;height:100%;cursor:pointer;"},Ca=function(t){var n=t.initialValue,r=t.onChange,o=t.placement,a=bt(t,["initialValue","onChange","placement"]),i=(0,e.useState)(ba(n)),s=i[0],u=i[1];function c(e){r&&(u(e),r(e))}return(0,e.useEffect)((function(){c(ba(n))}),[n]),ft(zo,{placement:o,body:ft(ga,{color:s,onChange:c})},ft("span",wt({},a,{css:ya}),ft("span",{css:wa,style:{backgroundColor:s.rgba}})))};Ca.defaultProps={placement:"bottom"};var Oa=Ca,xa=n(953),Da=n(73),ka=n.n(Da),Sa=n(251),Ea=n.n(Sa);function Ma(e){return(Ma="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})(e)}var _a,Pa=function(e){var t=function(){this.parser=new i},n=t.prototype;function r(e,t){for(var n=[],r=t,o=e.length;r<o;r++)n.push(e[r]);return n}var o=function(){var e=function n(e,t,r){this.prefix=(e||"")+":",this.level=t||n.NONE,this.out=r||window.console&&window.console.log.bind(window.console),this.warn=this.log.bind(this,n.WARN),this.info=this.log.bind(this,n.INFO),this.debug=this.log.bind(this,n.DEBUG)},t=e.prototype;return e.DEBUG=1,e.INFO=2,e.WARN=3,e.NONE=4,t.log=function(e,t){if(e>=this.level&&"function"==typeof this.out){var n=r(arguments,2);n=[this.prefix+t].concat(n),this.out.apply(this,n)}},e}(),a=function(){var e=function(e){this.obj=e||{}},t=e.prototype;return t.get=function(e){var t=this.obj[e];return t===undefined&&this.parent&&(t=this.parent.get(e)),t},t.set=function(e,t){return this.obj[e]=t,this.get(e)},e}(),i=function(){var e=new o("PARSER",o.NONE),t=new o("EMIT",o.NONE),n=function(){};function i(e){var t={};return e.forEach((function(e,n){t[e]=n})),t}function s(e,t,n){if(1===n.length&&"object"===Ma(n[0])){var r=n[0];t.forEach((function(t){e[t]=r[t]}))}else for(var o=0,i=t.length,s=n.length;o<i&&o<s;o++)e[t[o]]=n[o];delete e.runtimeError;var u=new a(e);return u.parent=l,u}function u(n){if(n!==undefined)switch(n.id){case"Expr":case"Tuple":return u(n.expr);case"OpenTuple":return n.expr?f(n.expr):f(n.left,n.right);case"Assign":return n.expr?u(n.expr):(s=n.left,l=u(l=n.right),function(e){return e.set(s.value,l.apply(null,arguments))});case"Sums":case"Prod":case"Power":return n.expr?u(n.expr):function(t,n,o){n=u(n),o=u(o);var a=undefined;function i(e){var t=r(arguments,1);return e(n.apply(this,t),o.apply(this,t))}switch(t.id){case"Plus":return i.bind(a,(function(e,t){return+e+t}));case"Minus":return i.bind(a,(function(e,t){return e-t}));case"Mul":return i.bind(a,(function(e,t){return e*t}));case"Div":return i.bind(a,(function(e,t){return e/t}));case"Mod":return i.bind(a,(function(e,t){return e%t}));case"Pow":return i.bind(a,(function(e,t){return Math.pow(e,t)}))}return e.warn("No emitter for %o",t),function(){}}(n.op,n.left,n.right);case"Unary":return n.expr?u(n.expr):function(t,n){switch(n=u(n),t.id){case"Plus":return function(){return n.apply(this,arguments)};case"Minus":return function(){return-n.apply(this,arguments)}}return e.warn("No emitter for %o",t),function(){}}(n.op,n.right);case"Call":return o=n.token,a=n.args,i=c(a),a=u(a),function(e){var t=e.get(o.value);if("function"==typeof t){var n=a.apply(null,arguments);return i||(n=[n]),t.apply(null,n)}e.set("runtimeError",{text:'Call to undefined "'+o.value+'"'})};case"Parens":return u(n.expr);case"Value":return u(n.token);case"Number":return function(){return n.value};case"Var":return function(e){return e.get(n.value)};default:t.warn("No emitter for %o",n)}var o,a,i,s,l;return function(){}}function c(e){if(e!==undefined)switch(e.id){case"Expr":case"Tuple":return c(e.expr);case"OpenTuple":return!0}return!1}function f(e,t){if(e===undefined)return function(){return[]};var n="OpenTuple"===e.id;return e=u(e),t===undefined?function(){return[e.apply(null,arguments)]}:(t=u(t),n?function(){var n=e.apply(null,arguments);return n.push(t.apply(null,arguments)),n}:function(){return[e.apply(null,arguments),t.apply(null,arguments)]})}n.prototype.parse=function(n){this.error=undefined;var r=function(e){var t,n,r=[],o=0;for(;(t=k(e,o))!==undefined;)t.error?n=t.error:"Space"!==t.id&&r.push(t),o=t.end;return{tokens:r,error:n}}(n),o=function(t){for(var n={tokens:t,pos:0,stack:[],scope:{}},r=0,o=t.length,a=!1;!a&&r<=o;){var i=t[r],s=n.stack[n.stack.length-1],u=(s?s.id:"(empty)")+":"+(i?i.id:"(eof)");switch(d[u]){case 1:e.debug("shift %s %o",u,h(n.stack)),n=m(n,i),r++;break;case 2:e.debug("reduce %s %o",u,h(n.stack)),n=v(n,i);break;case 0:e.debug("done %s %o",u,h(n.stack)),a=!0;break;default:if(i!==undefined){var c={pos:i.pos,text:'Unexpected token "'+i.string+'"'};n.error=c,e.warn("%s at %d (%s)",c.text,c.pos,u)}else{c={text:"Unexpected EOF",pos:n.pos+1};n.error=c,e.warn("%s (%s)",c.text,u)}a=!0}}if(!n.error&&n.stack.length>1){var l=b(n,1);c={pos:l.pos||0,text:"LParen"===l.id?"Open paren":"Invalid expression"};n.error=c,e.warn("%s at %d (eof)",c.text,c.pos)}return{root:n.stack.pop(),vars:Object.keys(n.scope),error:n.error}}(r.tokens);t.debug("AST: %o",o);var a,c,l=(a=u(o.root),function(e){try{return a.apply(null,arguments)}catch(t){e.set("runtimeError",{text:""+t})}});return c={},{error:r.error||o.error,args:i(o.vars),eval:function(){return l(s(c,o.vars,arguments))},set scope(e){c=e||{}},get scope(){return c}}};var d={};function p(e,t,n){for(var r=0,o=t.length;r<o;r++)for(var a=0,i=n.length;a<i;a++){var s=t[r]+":"+n[a];d[s]=e}}function h(t){return e.level>=o.DEBUG?t.map((function(e){return e.id})):""}function m(e,t){return g(e,0,t)}function g(e,t,n){var r=e.stack.slice(0,e.stack.length-t),o=e.pos;return n&&(r.push(n),n.pos!==undefined&&(o=n.pos)),{tokens:e.tokens,pos:o,stack:r,scope:e.scope,error:e.error}}function v(t,n){switch(b(t,0).id){case"Tuple":return function(e){var t=b(e,0);return g(e,1,{id:"Expr",expr:t})}(t);case"OpenTuple":case"Comma":return y(t,n);case"Assign":case"Sums":return function(e,t){var n=b(e,1),r=b(e,0);if(r!==undefined&&"Sums"===r.id)return w(e,["Eq"],"Assign");if(n!==undefined&&"Eq"===n.id)return w(e,["Eq"],"Assign");return y(e,t)}(t,n);case"Prod":return function(e){return w(e,["Plus","Minus"],"Sums")}(t);case"Power":case"Unary":return function(e){var t=b(e,1),n=b(e,0);if(n!==undefined&&"Unary"===n.id){var r=O(e,!1);return r||g(e,1,{id:"Power",expr:n})}if(n!==undefined&&"Power"===n.id&&t!==undefined&&"Pow"===t.id)return w(e,["Pow"],"Power");return function(e){return w(e,["Mul","Div","Mod"],"Prod")}(e)}(t);case"Call":case"Parens":return O(t);case"Value":case"RParen":return function(t){var n=b(t,3),r=b(t,2),o=b(t,1),a=b(t,0),i={id:"Parens"};if("RParen"===a.id){if(o!==undefined&&"LParen"===o.id)return r!==undefined&&"Var"===r.id?g(t,3,i={id:"Call",token:r}):g(t,2,i={id:"OpenTuple"});if(r===undefined||"LParen"!==r.id){var s={pos:a.pos,text:"Unmatched paren"};return t.error=s,e.warn("%s at %d",s.text,s.pos),g(t,1)}return n!==undefined&&"Var"===n.id?g(t,4,i={id:"Call",token:n,args:o}):(i.expr=o,g(t,3,i))}return i.expr=a,g(t,1,i)}(t);case"Number":case"Var":return function(e){var t=b(e,0);e=g(e,1,{id:"Value",token:t}),"Var"===t.id&&(e.scope[t.value]=t);return e}(t)}return t}function b(e,t){return t===undefined&&(t=0),e.stack[e.stack.length-(t+1)]}function y(e,t){var n=b(e,2),r=b(e,1),o=b(e,0),a={id:"OpenTuple"};return"Comma"===o.id?g(e,2,r):r!==undefined&&"Comma"===r.id?(a.op=r,a.left=n,a.right=o,g(e,3,a)):t!==undefined&&"Comma"===t.id?(a.expr=o,g(e,1,a)):g(e,1,a={id:"Tuple",expr:o})}function w(e,t,n){var r=b(e,2),o=b(e,1),a=b(e,0),i={id:n};return o!==undefined&&-1!==t.indexOf(o.id)?(i.op=o,i.left=r,i.right=a,g(e,3,i)):(i.expr=a,g(e,1,i))}p(1,["(empty)","Plus","Minus","Mul","Div","Mod","Pow","LParen","Eq","Comma"],["Plus","Minus","LParen","Number","Var"]),p(1,["Var"],["LParen","Eq"]),p(1,["Sums"],["Plus","Minus"]),p(1,["Prod"],["Mul","Div","Mod"]),p(1,["Unary"],["Pow"]),p(1,["OpenTuple","Tuple"],["Comma"]),p(1,["LParen","Expr"],["RParen"]),p(2,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod","Sums","Assign"],["Comma"]),p(2,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod"],["Plus","Minus"]),p(2,["Number","Var","Value","RParen","Parens","Call","Unary","Power"],["Mul","Div","Mod"]),p(2,["Number","Var","Value","RParen","Parens","Call"],["Pow"]),p(2,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod","Sums","Assign","Comma","OpenTuple","Tuple"],["RParen","(eof)"]),p(0,["(empty)","Expr"],["(eof)"]);var C=["Pow","Mul","Div","Mod","Plus","Minus","Eq","Comma","LParen"];function O(e,t){var n=b(e,2),r=b(e,1),o=b(e,0),a={id:"Unary"};return r===undefined||"Minus"!==r.id&&"Plus"!==r.id||n!==undefined&&-1===C.indexOf(n.id)?!1!==t?(a.expr=o,g(e,1,a)):void 0:(a.op=r,a.right=o,g(e,2,a))}var x=/^(?:(\s+)|((?:\d+e[-+]?\d+|\d+(?:\.\d*)?|\d*\.\d+))|(\+)|(\-)|(\*)|(\/)|(%)|(\^)|(\()|(\))|(=)|(,)|([a-zA-Z]\w*))/i,D=["Space","Number","Plus","Minus","Mul","Div","Mod","Pow","LParen","RParen","Eq","Comma","Var"];function k(t,n){var r=t.slice(n);if(0!==r.length){var o=x.exec(r);if(null===o){var a=function(e,t){for(var n=e.length;t<n;t++){var r=e.slice(t);if(0===r.length)break;if(null!==x.exec(r))break}return t}(t,n),i={pos:n,text:'Unexpected symbol "'+t.slice(n,a)+'"'};return e.warn("%s at %d",i.text,i.pos),{error:i,end:a}}for(var s=0,u=D.length;s<u;s++){var c=o[s+1];if(c!==undefined)return{id:D[s],string:c,pos:n,end:n+c.length,value:E(D[s],c)}}}}var S=Number.parseFloat||parseFloat;function E(e,t){switch(e){case"Number":return S(t);default:return t}}return n}(),s=function(e,t){return Array.isArray(e)?function(e,t){return e.length?e.reduce((function(e,n){return"decrease_first_value"===t?Number(n)-Number(e):Number(e)+Number(n)})):NaN}(e,t):Number(e)};var u,c,l=((c=new a).set("pi",Math.PI),c.set("e",Math.E),c.set("inf",Number.POSITIVE_INFINITY),u=Math,Object.getOwnPropertyNames(Math).forEach((function(e){c.set(e,u[e])})),c);return n.parse=function(e,t,n){e=(e=e.replace(/\[|\]|-/g,"__")).replace(/\s+(__|–)\s+/g," - "),t=void 0===t?{}:t;var r=/\[|\]|-/g,o={};for(var a in t)o[a.replace(r,"__")]=s(t[a],n);var i=this.parser.parse(e);return i.scope.numberFormat=function(e){if(!Number.isNaN(e))return(new Intl.NumberFormat).format(e)},i.scope.floor=function(e){return Math.floor(e)},i.scope.round=function(e){return Math.round(e)},i.scope.float=function(e,t){return t=void 0===t?0:t,e.toFixed(t)},i.scope.ceil=function(e){return Math.ceil(e)},i.eval(o)},t}(),ja="";_a=jQuery,Element.prototype.getElSettings=function(e){if("settings"in this.dataset)return JSON.parse(this.dataset.settings.replace(/(&quot\;)/g,'"'))[e]||""},ja=function(e,t){var n=e.find(".mf-multistep-container");if(n.length){var r=[];n.find(".elementor-top-section").each((function(e){var t=this.getElSettings("metform_multistep_settings_title")||"Step-"+_a(this).data("id"),o=this.getElSettings("metform_multistep_settings_icon"),a="",i="";o&&(a="svg"===o.library?'<img class="metform-step-svg-icon" src="'+o.value.url+'" alt="SVG Icon" />':o.value.length?'<i class="metform-step-icon '+o.value+'"></i>':""),0===e?(i="active",n.hasClass("mf_slide_direction_vertical")&&_a(this).parents(".elementor-section-wrap").css("height",_a(this).height())):1===e&&(i="next"),t&&r.push("<li class='metform-step-item "+i+"' id='metform-step-item-"+_a(this).attr("data-id")+"' data-value='"+_a(this).attr("data-id")+"'>"+a+'<span class="metform-step-title">'+t+"</span></li>")})),r&&(n.find(".metform-form-content > .elementor").before("<ul class='metform-steps'>"+r.join("")+"</ul>"),n.find(".elementor-top-section:first-of-type").addClass("active"),n.find(".mf-progress-step-bar span").attr("data-portion",100/r.length).css("width",100/r.length+"%"))}n.find(".elementor-top-section .metform-btn").attr("type","button"),n.find(".mf-input").on("keypress",(function(e){13!==e.which||_a(this).hasClass("mf-textarea")||n.find(".metform-step-item.next").trigger("click")})),n.find(".elementor-top-section").on("keydown",(function(e){var t=_a(this),n=_a(":focus");if(9==e.which)if(t.hasClass("active")){var r=t.find(":focusable"),o=r.index(n),a=r.eq(o),i=r.eq(r.length-1);a.is(i)&&(a.focus(),e.preventDefault())}else n.focus(),e.preventDefault()})),n.find(".metform-steps").on("click",".metform-step-item",(function(){var e,r=this,o=_a(this).parents(".mf-form-wrapper").eq(0),a=o.find(".elementor-top-section.active .mf-input"),i=(_a("body").hasClass("rtl")?100:-100)*_a(this).index()+"%",s=(o.find(".mf-progress-step-bar").attr("data-total"),_a(this.nextElementSibling).hasClass("active")),u=[];a.each((function(){var e=_a(this),t=this.name;(e.hasClass("mf-input-select")||e.hasClass("mf-input-multiselect"))&&(t=e.find('input[type="hidden"]')[0].name),e.parents(".mf-input-repeater").length&&(t=""),t&&u.push(t)})),e=function(e){e&&(o.find(".elementor-top-section.active .metform-btn").attr("type","button"),(_a(r).hasClass("prev")||_a(r).hasClass("next"))&&(_a(r).addClass("active").removeClass("next prev").prev().addClass("prev").siblings().removeClass("prev").end().end().next().addClass("next").siblings().removeClass("next").end().end().siblings().removeClass("active"),o.find('.elementor-top-section[data-id="'+_a(r).data("value")+'"]').addClass("active").siblings().removeClass("active"),n.hasClass("mf_slide_direction_vertical")?(o.find(".elementor-section-wrap .elementor-top-section").css({transform:"translateY("+i+")"}),o.find(".elementor-section-wrap").css("height","calc("+o.find('.elementor-top-section[data-id="'+_a(r).data("value")+'"]').height()+"px)")):o.find(".elementor-section-wrap").css({transform:"translateX("+i+")"})),o.find(".mf-progress-step-bar span").css("width",(_a(r).index()+1)*o.find(".mf-progress-step-bar span").attr("data-portion")+"%"),o.find(".elementor-top-section.active").find(".metform-submit-btn").length&&setTimeout((function(){o.find(".elementor-top-section.active").find(".metform-submit-btn").attr("type","submit")}),0))},s?e(!0):t.doValidate(u).then(e)}))};var Ta=function(){document.querySelectorAll(".mf-input-map-location").forEach((function(e){if("undefined"!=typeof google){var t=new google.maps.places.Autocomplete(e,{types:["geocode"]});google.maps.event.addListener(t,"place_changed",(function(){e.dispatchEvent(new Event("input",{bubbles:!0}))}))}}))};function Aa(e){return(Aa="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})(e)}function Ia(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(u){s=!0,o=u}finally{try{i||null==n["return"]||n["return"]()}finally{if(s)throw o}}return a}(e,t)||Ra(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 Na(e){return function(e){if(Array.isArray(e))return La(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ra(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 Ra(e,t){if(e){if("string"==typeof e)return La(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)?La(e,t):void 0}}function La(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 Va(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 Fa(e,t){return(Fa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ha(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=za(e);if(t){var o=za(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ua(this,n)}}function Ua(e,t){return!t||"object"!==Aa(t)&&"function"!=typeof t?Wa(e):t}function Wa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function za(e){return(za=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ba(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 Ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(n),!0).forEach((function(t){qa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}window.mfMapLocation=Ta;var Ka=new(Ea())({tolerance:200}),$a=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}}),t&&Fa(e,t)}(a,React.Component);var t,n,r,o=Ha(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),qa(Wa(t=o.call(this,e)),"handleFormSubmit",(function(e,n){var r;n.preventDefault();var o=t.state,a=o.formData,i=o.defaultData,s=t.props,u=s.action,c=s.wpNonce,l=s.validation,f=l.reset,d=new FormData,p=Ya(Ya({},i),a);for(var h in jQuery(t.mfRefs.mainForm.parentElement).trigger("metform/before_submit",p),jQuery(t.mfRefs.mainForm).find(".metform-submit-btn").attr("disabled",!0),p)d.append(h,p[h]);r="mf_success_duration"in t.props.widgetSettings?t.props.widgetSettings.mf_success_duration:2,r*=1e3,fetch(u,{method:"POST",headers:{"X-WP-Nonce":c},body:d}).then((function(e){return e.json()})).then((function(e){if(e.status?t.setState({success:e.data.message?e.data.message:"",form_res:1},(function(){t.resetReCAPTCHA(),l.clearErrors("g-recaptcha-response")})):t.setState({errors:Na(e.error),form_res:1},(function(){t.resetReCAPTCHA(),t.setValue("mf-captcha-challenge","",!0),l.clearErrors("g-recaptcha-response")})),e.data.store&&"stripe"===e.data.store["mf-payment-method"]&&t.stripePayment(e),jQuery(t.mfRefs.mainForm.parentElement).trigger("metform/after_submit",{data:p,response:e}),e.status&&e.data.redirect_to){var n=e.data.entry_id,o=e.data.redirect_to;n&&""!==n&&(o+=(o.includes("?")?"&":"?")+"mf_entry_id="+n),setTimeout((function(){window.location.href=o}),1500)}setTimeout((function(){t.setState({success:"",errors:[],form_res:0}),e.status&&e.data.hide_form&&t.setState({formHide:!0})}),r)}))["catch"]((function(e){t.setState({errors:["Something went wrong"],form_res:1},(function(){t.resetReCAPTCHA(),t.setValue("mf-captcha-challenge","",!0),l.clearErrors("g-recaptcha-response")})),console.error(e.message),setTimeout((function(){t.setState({errors:[],form_res:0})}),r)}))["finally"]((function(){if(jQuery(t.mfRefs.mainForm).find(".metform-submit-btn").attr("disabled",!1),!t.props.stopVerticalEffect){var e=t.mfRefs.mainForm.querySelector(".mf-main-response-wrap");Ka.move(e)}setTimeout((function(){t.setState({formData:{}})}),350),f()}))})),qa(Wa(t),"dummy_markup",(function(e,t){return React.createElement("div",{className:"mf-main-response-wrap ".concat(t," mf-response-msg-wrap"),"data-show":"1"},React.createElement("div",{className:"mf-response-msg"},React.createElement("i",{className:"mf-success-icon ".concat(e)}),React.createElement("p",null,"This is a dummy success message!!.")))})),qa(Wa(t),"handleCalculations",(function(e,n){var r=e.target.calc_behavior,o=ReactDOM.findDOMNode(Wa(t)),a=o.length?o.querySelectorAll(".mf-input-calculation"):[],i=Ya({},n);for(var s in i)if(Array.isArray(i[s])){var u=i[s].map((function(e){return isNaN(e)?e:Number(e)}));i[s]=u}a.forEach((function(e){var o=parseInt(e.dataset.fraction);o=o<0||o>99?2:o;var a=t.MfMathCalc.parse(e.dataset.equation,i,r)||0;n[e.name]=a.toFixed(o)}))})),qa(Wa(t),"handleConditionals",(function(e){var n=t.state,r=n.formData,o=n.defaultData,a=t.props,i=a.widgets,s=a.conditionalRefs,u=a.validation,c=u.getValues,l=u.setValue;s.forEach((function(e){(e=i[e]).list=e.settings.mf_conditional_logic_form_list,e.operator=e.settings.mf_conditional_logic_form_and_or_operators,e.action=e.settings.mf_conditional_logic_form_action,e.validatedValues=[],e.isValidated=!1,e.list.forEach((function(n){n.name=n.mf_conditional_logic_form_if,n.value=r[n.name]||o[n.name]||"",n.match=n.mf_conditional_logic_form_value,n.operator=t.decodeEntities(n.mf_conditional_logic_form_comparison_operators),Array.isArray(n.value)&&-1!==n.value.indexOf(n.match)&&(n.value=n.value[n.value.indexOf(n.match)]),e.validatedValues.push(function(e,t,n){switch(n){case"+":return e+t;case"-":return e-t;case"*":return e*t;case"/":return e/t;case"<":return e<t;case"<=":return e<=t;case">":return e>t;case">=":return e>=t;case"==":return e==t;case"!=":return e!=t;case"not-empty":return void 0!==e&&String(e).length>0;case"empty":return void 0!==e&&0==String(e).length;default:return!1}}(n.value,n.match,n.operator))})),e.isValidated=e.validatedValues.some((function(e){return!0===e})),"and"===e.operator&&(e.isValidated=e.validatedValues.every((function(e){return!0===e})));var n=e.settings.mf_input_name;e.isValidated&&"show"===e.action?(e.el.setAttribute("mf-condition-hidden",!1),e.el.classList.remove("mf-condition--hidden"),"noval"===c(n)&&l(n,undefined)):(e.el.setAttribute("mf-condition-hidden",!0),e.el.classList.add("mf-condition--hidden"),Object.values(e.el.classList).indexOf("elementor-widget-mf-select")>-1&&l(n,"noval"))}))})),qa(Wa(t),"getValue",(function(e){return e in t.state.formData?t.state.formData[e]:""})),qa(Wa(t),"getFileLabel",(function(e,n){var r=t.state.formData[e];return r?r.name:t.decodeEntities(n)})),qa(Wa(t),"getInputLabel",(function(e,n){var r=ReactDOM.findDOMNode(Wa(t)).querySelector('[name="'+e+'"]'),o=r?r.closest(".mf-input-wrapper").querySelector("label"):null;return o?o.innerText.replace(/\*/g,"").trim():n})),qa(Wa(t),"decodeEntities",(function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value})),qa(Wa(t),"setDefault",(function(e){if(null!==e){var n=e.name,r=e.value,o=t.state.defaultData;o[n]=r,t.setState({defaultData:o})}})),qa(Wa(t),"isNumeric",(function(e){return!isNaN(parseFloat(e))&&isFinite(e)})),qa(Wa(t),"setStateValue",(function(e,n){t.setState({name:e,value:n})})),qa(Wa(t),"handleCardNumber",(function(e){var n=e.target,r=n.name,o=n.value,a=t.state.formData,i=a[r+"--type"],s=o.replace(/\s+/g,"").replace(/[^0-9]/gi,""),u=a[r],c="amex"===i?5:4,l="amex"===i?15:16;if(new RegExp("^[0-9]*$").test(s)&&s.length<=l){for(var f=s.match(/\d{4,16}/g),d=f&&f[0]||"",p=[],h=0,m=d.length;h<m;h+=c)p.push(d.substring(h,h+c));p.length&&(s=p.join(" ").trim()),u=s}t.setValue(r,u,!0),t.handleChange(e),e.target.value=u,t.handleCardType(s,e.target.name)})),qa(Wa(t),"handleCardType",(function(e,n){var r="blank",o=n+"--type";r=e.startsWith("34")||e.startsWith("37")?"amex":e.startsWith("4")?"visa":e.startsWith("5")?"master":e.startsWith("6")?"discover":"custom";var a=t.state.formData;a[o]=r,t.setState({formData:a})})),qa(Wa(t),"handleCardMonth",(function(e){var n=e.target,r=n.name,o=n.value,a=parseInt(o.replace(/-/g,""))||"",i=parseInt(a.toString().substring(0,1))||"";1<i&&i<10?t.setValue(r,i,!0):t.setValue(r,a>12?12:a,!0),t.handleChange(e)})),qa(Wa(t),"handleSubVal",(function(e,n){var r=e.target,o=r.name,a=r.value,i=parseInt(a.replace(/-/g,"").substring(0,n))||"";t.setValue(o,i,!0),e.target.value=i,t.handleChange(e)})),qa(Wa(t),"handleChange",(function(e){var n=e.target,r=n.name,o=n.value,a=n.type,i=t.state.formData;i[r]="number"===a&&"mobile"!==a?Number(o):o,t.handleCalculations(e,i),t.setState({formData:i});var s=e.target;s.className!==undefined&&-1!==s.className.indexOf("mf-repeater-type-simple")||t.trigger(r)})),qa(Wa(t),"handleDateTime",(function(e){var n=e.target,r=n.name,o=n.value;t.setValue(r,o,!0),t.handleChange(e)})),qa(Wa(t),"handleSelect",(function(e,n){var r=n.name,o=e.value;e.target={name:n.name,value:o},t.setValue(r,o,!0),t.handleChange(e)})),qa(Wa(t),"handleRadioDefault",(function(e){var n=t.state.formData;if(e&&e.dataset.checked){var r=e.name;e.setAttribute("checked",!0),r in n||setTimeout((function(){t.handleChange({target:{name:r,value:e.value}})}),300)}})),qa(Wa(t),"handleCheckbox",(function(e,n){var r,o="defaultvalue"!==e?e.target:n,a=t.state.formData[o.name];Array.isArray(a)||(a=[]),r=a.indexOf(o.value),o.checked&&-1===r?a.push(o.value):a.splice(r,1),t.handleChange({target:{name:o.name,value:a}})})),qa(Wa(t),"handleSwitch",(function(e){e.target.value=e.target.nextElementSibling.getAttribute("data-disable"),e.target.checked&&(e.target.value=e.target.nextElementSibling.getAttribute("data-enable")),t.handleChange(e)})),qa(Wa(t),"handleOptin",(function(e){e.target.checked||(e.target.value=""),t.handleChange(e)})),qa(Wa(t),"handleFileUpload",(function(e){t.handleChange({target:{name:e.target.name,value:e.target.files[0]}})})),qa(Wa(t),"handleMultiStepBtns",(function(e){var n=jQuery(e.currentTarget).parents(".elementor-top-section.active"),r=e.currentTarget.dataset.direction,o=n.prev()[0]?n.prev()[0].dataset:"",a=n.next()[0]?n.next()[0].dataset:"",i=("next"===r?a:o).id;if(!i)return!1;var s=jQuery(e.currentTarget).parents(".metform-form-content").find('.metform-step-item[data-value="'+i+'"]'),u=[];n.find(".mf-input").each((function(){var e=jQuery(this),t=this.name;(e.hasClass("mf-input-select")||e.hasClass("mf-input-multiselect"))&&(t=e.find('input[type="hidden"]')[0].name),e.parents(".mf-input-repeater").length&&(t=""),t&&u.push(t)})),jQuery(e.currentTarget).parents(".mf-scroll-top-yes").length&&Ka.move(t.mfRefs.mainForm),"next"===r?t.trigger(u).then((function(e){e&&s.trigger("click")})):s.trigger("click")})),qa(Wa(t),"handleImagePreview",(function(e){var t=e.target,n=e.clientX,r=e.clientY,o=e.type,a=t.nextElementSibling;if(a){if("mouseleave"===o)return a.style.opacity="",void(a.style.visibility="hidden");a.style.opacity||(a.style.opacity="1",a.style.visibility="visible"),a.offsetHeight+r>window.innerHeight?(a.className="mf-select-hover-image mf-preview-top",r-=45):a.className="mf-select-hover-image",a.style.top=r+30+"px",a.style.left=n-28+"px"}})),qa(Wa(t),"handleSignature",(function(e){e.target={name:e.props.name,value:e.toDataURL()},t.handleChange(e),t.setValue(e.target.name,e.target.value,!0)})),qa(Wa(t),"refreshCaptcha",(function(e){t.setState({captcha_img:t.state.captcha_path+Date.now()})})),qa(Wa(t),"resetReCAPTCHA",(function(){t.getValue("mf-captcha-challenge")&&t.refreshCaptcha(),t.getValue("g-recaptcha-response")&&t.handleReCAPTCHA("reset")})),qa(Wa(t),"handleReCAPTCHA",(function(e){"reset"===e&&(e="",grecaptcha.reset());var n={target:{name:"g-recaptcha-response",value:(e=e||"")||""}};t.handleChange(n)})),qa(Wa(t),"activateValidation",(function(e,n,r){var o,a,i=t.state.formData,s=t.props.validation.register,u=e.type,c=e.required,l=e.message,f=e.minLength,d=e.maxLength,p=e.expression,h={};if(n&&c&&n.closest(".elementor-element")&&"true"===n.closest(".elementor-element").getAttribute("mf-condition-hidden"))h.required=!1;else{if((u&&"none"!==u||c)&&(h.required=!!c&&l),n&&n.classList.contains("mf-credit-card-number")&&(i[n.name]&&"amex"===i[n.name+"--type"]?h.minLength=h.maxLength={value:17,message:l}:h.minLength=h.maxLength={value:19,message:l}),e.inputType&&"credit_card_date"===e.inputType&&(f&&(h.min={value:f,message:l}),d&&(h.max={value:d,message:l})),n&&"file"===n.type&&n.files.length>0){var m=e.file_types,g=e.size_limit,v=n.files[0].name.slice((Math.max(0,n.files[0].name.lastIndexOf(".")-1)||Infinity)+1);h.validate={fileType:function(){return!(m!==[]&&!e.file_types.includes(v))||e.type_message},fileSize:function(){return!(-1!==g&&n.files[0].size>1024*parseInt(g))||e.limit_message}}}n&&"email"===n.type?h.pattern={value:/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,message:e.emailMessage}:n&&"url"===n.type&&(h.pattern={value:/^(http[s]?:\/\/(www\.)?|ftp:\/\/(www\.)?|www\.){1}([0-9A-Za-z-\.@:%_\+~#=]+)+((\.[a-zA-Z]{2,3})+)(\/(.)*)?(\?(.)*)?/g,message:e.urlMessage}),"by_character_length"===u?(o=n&&"number"===n.type?"min":"minLength",a=n&&"number"===n.type?"max":"maxLength",f&&(h[o]={value:f,message:l}),d&&(h[a]={value:d,message:l})):"by_word_length"===u?h.validate={wordLength:function(e){return t.handleWordValidate(e,f,d,l)}}:"by_expresssion_based"===u&&(h.validate={expression:function(e){return t.handleExpressionValidate(e,p,l)}})}return"function"==typeof r&&r(),n?s(n,h):h})),qa(Wa(t),"handleWordValidate",(function(e,t,n,r){var o=e.trim().split(/\s+/).length;return!!(n?o>=t&&o<=n:o>=t)||r})),qa(Wa(t),"handleExpressionValidate",(function(e,t,n){if(t)return!!new RegExp(t).test(e)||n})),qa(Wa(t),"colorChange",(function(e,n){t.handleChange({target:{name:n,value:e.hex}})})),qa(Wa(t),"colorChangeInput",(function(e){t.handleChange({target:{name:e.target.name,value:e.target.value}})})),qa(Wa(t),"multiSelectChange",(function(e,n){var r=[];null!==e&&e.filter((function(e){return r.push(e.value)})),t.handleChange({target:{name:n,value:r}})})),qa(Wa(t),"handleRangeChange",(function(e,n){t.handleChange({target:{name:n,value:e.toFixed(2)}}),t.props.validation.setValue(n,e.toFixed(2))})),qa(Wa(t),"handleMultipileRangeChange",(function(e,n){t.handleChange({target:{name:n,value:[e.min,e.max],calc_behavior:"decrease_first_value"}})})),qa(Wa(t),"handleOnChangePhoneInput",(function(e,n){t.handleChange({target:{name:n,value:e,type:"mobile"}})})),qa(Wa(t),"toggleResponseMsg",(function(e){e.removeAttribute("data-show"),e.style.height=e.clientHeight+"px",e.setAttribute("data-show",0)})),t.state={formData:{},defaultData:{form_nonce:e.formNonce},recaptcha_uid:e.formId+"_"+Math.random().toString(36).substring(5,10),result_not_foud:"",total_result:0,formHide:!1,form_res:0,errors:[],success:"",config:{}},t.MfMathCalc=new Pa,t.setValue=e.validation.setValue,t.trigger=e.validation.trigger,t.mfRefs={},t.checkboxArr=[],t.checkboxReceive=!0,window["handleReCAPTCHA_"+t.state.recaptcha_uid]=t.handleReCAPTCHA;var n=e.templateEl.innerHTML;return t.jsx=new Function("parent","props","state","validation","register","setValue","html",n),e.templateEl.remove(),t}return t=a,(n=[{key:"stripePayment",value:function(e){var t,n=e.data.payment_data,r=this;n.keys&&""!==n.keys?((t=StripeCheckout.configure({key:n.keys,image:n.image_url,locale:"auto",token:function(t){var o;t.id?(n.stripe_token=t.id,o={sandbox:n.sandbox},fetch(e.data.ajax_stripe+"&token="+t.id,{headers:{"X-WP-Nonce":r.props.wpNonce},data:o}).then((function(e){return e.json()})).then((function(e){e.status?window.location.href=e.redirect_url:alert(e)}))):alert("Sorry!! Payment token invalid")}})).open({name:String(n.name_post),description:" Form No.: "+String(n.description),amount:100*Number(n.amount),currency:n.currency_code}),window.addEventListener("popstate",(function(){t.close()}))):alert("Please set your Stripe Keys in form settings.")}},{key:"submit_response_message",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];[].concat(t)[1];var r=[].concat(t)[2],o=[].concat(t)[3],a=[].concat(t)[4],i=[].concat(t)[5],s=r.errors,u=r.success,c=r.form_res,l=function(){return s.length>0?React.createElement(React.Fragment,null,React.createElement("i",{className:"mf-alert-icon ".concat(a)}),React.createElement("p",null,s.map((function(e){return e+" "}))," ")):""},f=function(){return u.length>0?React.createElement(React.Fragment,null,React.createElement("i",{className:"mf-success-icon ".concat(o)}),React.createElement("p",null,u)):""};return React.createElement("div",{className:"mf-main-response-wrap ".concat(i," mf-response-msg-wrap").concat(s.length>0?" mf-error-res":""),"data-show":c},React.createElement("div",{className:"mf-response-msg"},l(),f()))}},{key:"handleCheckboxDefault",value:function(e){var t=this;e&&e.dataset.checked&&this.checkboxReceive&&-1===this.checkboxArr.indexOf(e.value)&&(this.checkboxReceive=!1,e.setAttribute("checked",!0),this.checkboxArr.push(e.value),setTimeout((function(){t.handleCheckbox("defaultvalue",e)}),500))}},{key:"renderReCaptcha",value:function(e,t){var n=window.grecaptcha,r=document.querySelectorAll(".g-recaptcha");r.length&&n.render("g-recaptcha",{sitekey:r[0].dataset.sitekey})}},{key:"componentDidUpdate",value:function(){var e,t=this.props.validation.formState.isValid;this.handleConditionals(),t||this.props.stopVerticalEffect||(e=this.mfRefs.mainForm.querySelector(".mf-error-message"))&&Ka.move(e.parentElement.parentElement)}},{key:"componentDidMount",value:function(e){var t=this,n=ReactDOM.findDOMNode(this),r=n.length?n.querySelectorAll(".elementor-element"):[];this.mfRefs.mainForm=n;var o=n.getElementsByTagName("input");for(var a in o)"email"===o[a].type&&""!==o[a].value&&this.setDefault(o[a]);r.forEach((function(e){var n=e.getAttribute("data-element_type"),r=e.getAttribute("data-widget_type"),o=null===r?n:r;if(jQuery(window).on("elementor/frontend/init",(function(){window.elementorFrontend.hooks.doAction("frontend/element_ready/"+o,jQuery(e))})),e.className.search("elementor-widget-mf-")>0&&e.dataset.settings){var a=JSON.parse(e.dataset.settings.replace(/&quot;/g,'"')),i=a.mf_input_name+"-"+e.getAttribute("data-id");t.props.widgets[i]={el:e,settings:a},a.mf_conditional_logic_form_enable&&t.props.conditionalRefs.push(i)}})),window.onload=function(e){t.renderReCaptcha(n,e)},this.handleConditionals(),this.props.formId&&fetch(mf.restURI+this.props.formId,{method:"POST",headers:{"X-WP-Nonce":this.props.wpNonce}}),Ta(),ja(jQuery(n).parents(".mf-multistep-container").parent(),{doValidate:this.trigger}),jQuery(n).on("change",".mf-repeater-field, .mf-repater-range-input, .mf-repeater-checkbox",this.handleChange);var i=this.state.formData;for(var s in jQuery(n).trigger("metform/after_form_load",i),i)this.setValue(s,i[s])}},{key:"render",value:function(){var e=this,t=e.props,n=e.state,r=t.validation,o=r.register,a=r.setValue,i=htm.bind(React.createElement);return React.createElement(React.Fragment,null,this.jsx(e,t,n,r,o,a,i))}}])&&Va(t.prototype,n),r&&Va(t,r),a}(),Ga=function(e){var t=Ia(e.find(".mf-form-wrapper"),1)[0];if(t){var n,r=t.dataset,o=r.action,a=r.wpNonce,i=r.formNonce,s=r.formId,u=r.stopVerticalEffect,c=Ia(e.find(".mf-template"),1)[0];if(c)ReactDOM.render(React.createElement((n=$a,function(e){var t=Ya(Ya({},be()),{},{ErrorMessage:Ce});return React.createElement(n,Ya({validation:t},e))}),{formId:s,templateEl:c,action:o,wpNonce:a,formNonce:i,widgets:{},conditionalRefs:[],stopVerticalEffect:u,widgetSettings:e.data("settings")||{},Select:xr,InputColor:Oa,Flatpickr:xa.Z,InputRange:kr(),ReactPhoneInput:Er(),SignaturePad:ka(),moveTo:Ka}),t)}};jQuery(window).on("elementor/frontend/init",(function(){var e=["metform","shortcode","text-editor"];"metform-form"!==mf.postType||elementorFrontend.isEditMode()?("metform-form"===mf.postType&&elementorFrontend.isEditMode()&&(e=["mf-date","mf-time","mf-select","mf-multi-select","mf-range","mf-file-upload","mf-mobile","mf-image-select","mf-map-location","mf-color-picker","mf-signature"]),e.forEach((function(e){elementorFrontend.hooks.addAction("frontend/element_ready/"+e+".default",Ga)}))):Ga(elementorFrontend.elements.$body)})).on("load",(function(){document.querySelectorAll(".mf-form-shortcode").forEach((function(e){Ga(jQuery(e))}))}))}()}();
1
+ !function(){var e={521:function(e,t){"use strict";function n(e){var t=undefined;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var n=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof n.value&&Object.defineProperty(e.prototype,t,r(e,t,n))}})),e}function r(e,t,n){var r=n.value;if("function"!=typeof r)throw new Error("@autobind decorator can only be applied to methods not: "+typeof r);var o=!1;return{configurable:!0,get:function(){if(o||this===e.prototype||this.hasOwnProperty(t))return r;var n=r.bind(this);return o=!0,Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0}),o=!1,n}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return 1===t.length?n.apply(undefined,t):r.apply(undefined,t)},e.exports=t["default"]},527:function(e,t,n){"use strict";n.r(t),n.d(t,{"default":function(){return P}});const r=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],o={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:e=>"undefined"!=typeof console&&console.warn(e),getWeek:e=>{const t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:undefined,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,"static":!1,time_24hr:!1,weekNumbers:!1,wrap:!1},a={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:e=>{const t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1};var i=a;const s=(e,t=2)=>`000${e}`.slice(-1*t),u=e=>!0===e?1:0;function c(e,t){let n;return function(){clearTimeout(n),n=setTimeout((()=>e.apply(this,arguments)),t)}}const l=e=>e instanceof Array?e:[e];function f(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function d(e,t,n){const r=window.document.createElement(e);return t=t||"",n=n||"",r.className=t,n!==undefined&&(r.textContent=n),r}function p(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function h(e,t){return t(e)?e:e.parentNode?h(e.parentNode,t):undefined}function m(e,t){const n=d("div","numInputWrapper"),r=d("input","numInput "+e),o=d("span","arrowUp"),a=d("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),t!==undefined)for(const e in t)r.setAttribute(e,t[e]);return n.appendChild(r),n.appendChild(o),n.appendChild(a),n}function g(e){try{if("function"==typeof e.composedPath){return e.composedPath()[0]}return e.target}catch(t){return e.target}}const v=()=>undefined,b=(e,t,n)=>n.months[t?"shorthand":"longhand"][e],y={D:v,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:(e,t)=>{e.setHours(parseFloat(t))},H:(e,t)=>{e.setHours(parseFloat(t))},J:(e,t)=>{e.setDate(parseFloat(t))},K:(e,t,n)=>{e.setHours(e.getHours()%12+12*u(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:(e,t)=>{e.setSeconds(parseFloat(t))},U:(e,t)=>new Date(1e3*parseFloat(t)),W:function(e,t,n){const r=parseInt(t),o=new Date(e.getFullYear(),0,2+7*(r-1),0,0,0,0);return o.setDate(o.getDate()-o.getDay()+n.firstDayOfWeek),o},Y:(e,t)=>{e.setFullYear(parseFloat(t))},Z:(e,t)=>new Date(t),d:(e,t)=>{e.setDate(parseFloat(t))},h:(e,t)=>{e.setHours(parseFloat(t))},i:(e,t)=>{e.setMinutes(parseFloat(t))},j:(e,t)=>{e.setDate(parseFloat(t))},l:v,m:(e,t)=>{e.setMonth(parseFloat(t)-1)},n:(e,t)=>{e.setMonth(parseFloat(t)-1)},s:(e,t)=>{e.setSeconds(parseFloat(t))},u:(e,t)=>new Date(parseFloat(t)),w:v,y:(e,t)=>{e.setFullYear(2e3+parseFloat(t))}},w={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},C={Z:e=>e.toISOString(),D:function(e,t,n){return t.weekdays.shorthand[C.w(e,t,n)]},F:function(e,t,n){return b(C.n(e,t,n)-1,!1,t)},G:function(e,t,n){return s(C.h(e,t,n))},H:e=>s(e.getHours()),J:function(e,t){return t.ordinal!==undefined?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:(e,t)=>t.amPM[u(e.getHours()>11)],M:function(e,t){return b(e.getMonth(),!0,t)},S:e=>s(e.getSeconds()),U:e=>e.getTime()/1e3,W:function(e,t,n){return n.getWeek(e)},Y:e=>s(e.getFullYear(),4),d:e=>s(e.getDate()),h:e=>e.getHours()%12?e.getHours()%12:12,i:e=>s(e.getMinutes()),j:e=>e.getDate(),l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:e=>s(e.getMonth()+1),n:e=>e.getMonth()+1,s:e=>e.getSeconds(),u:e=>e.getTime(),w:e=>e.getDay(),y:e=>String(e.getFullYear()).substring(2)},O=({config:e=o,l10n:t=a,isMobile:n=!1})=>(r,o,a)=>{const i=a||t;return e.formatDate===undefined||n?o.split("").map(((t,n,o)=>C[t]&&"\\"!==o[n-1]?C[t](r,i,e):"\\"!==t?t:"")).join(""):e.formatDate(r,o,i)},x=({config:e=o,l10n:t=a})=>(n,r,a,i)=>{if(0!==n&&!n)return undefined;const s=i||t;let u;const c=n;if(n instanceof Date)u=new Date(n.getTime());else if("string"!=typeof n&&n.toFixed!==undefined)u=new Date(n);else if("string"==typeof n){const t=r||(e||o).dateFormat,i=String(n).trim();if("today"===i)u=new Date,a=!0;else if(/Z$/.test(i)||/GMT$/.test(i))u=new Date(n);else if(e&&e.parseDate)u=e.parseDate(n,t);else{u=e&&e.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);let r,o=[];for(let e=0,a=0,i="";e<t.length;e++){const c=t[e],l="\\"===c,f="\\"===t[e-1]||l;if(w[c]&&!f){i+=w[c];const e=new RegExp(i).exec(n);e&&(r=!0)&&o["Y"!==c?"push":"unshift"]({fn:y[c],val:e[++a]})}else l||(i+=".");o.forEach((({fn:e,val:t})=>u=e(u,t,s)||u))}u=r?u:undefined}}return u instanceof Date&&!isNaN(u.getTime())?(!0===a&&u.setHours(0,0,0,0),u):(e.errorHandler(new Error(`Invalid date provided: ${c}`)),undefined)};function D(e,t,n=!0){return!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}const k=864e5;function S(e){let t=e.defaultHour,n=e.defaultMinute,r=e.defaultSeconds;if(e.minDate!==undefined){const o=e.minDate.getHours(),a=e.minDate.getMinutes(),i=e.minDate.getSeconds();t<o&&(t=o),t===o&&n<a&&(n=a),t===o&&n===a&&r<i&&(r=e.minDate.getSeconds())}if(e.maxDate!==undefined){const o=e.maxDate.getHours(),a=e.maxDate.getMinutes();t=Math.min(t,o),t===o&&(n=Math.min(a,n)),t===o&&n===a&&(r=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:r}}n(895);function E(e,t){const n={config:Object.assign(Object.assign({},o),_.defaultConfig),l10n:i};function a(e){return e.bind(n)}function v(){const e=n.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(n.calendarContainer!==undefined&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),n.daysContainer!==undefined){const t=(n.days.offsetWidth+1)*e.showMonths;n.daysContainer.style.width=t+"px",n.calendarContainer.style.width=t+(n.weekWrapper!==undefined?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}}))}function y(e){if(0===n.selectedDates.length){const e=n.config.minDate===undefined||D(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),t=S(n.config);e.setHours(t.hours,t.minutes,t.seconds,e.getMilliseconds()),n.selectedDates=[e],n.latestSelectedDateObj=e}e!==undefined&&"blur"!==e.type&&function(e){e.preventDefault();const t="keydown"===e.type,r=g(e),o=r;n.amPM!==undefined&&r===n.amPM&&(n.amPM.textContent=n.l10n.amPM[u(n.amPM.textContent===n.l10n.amPM[0])]);const a=parseFloat(o.getAttribute("min")),i=parseFloat(o.getAttribute("max")),c=parseFloat(o.getAttribute("step")),l=parseInt(o.value,10),f=e.delta||(t?38===e.which?1:-1:0);let d=l+c*f;if("undefined"!=typeof o.value&&2===o.value.length){const e=o===n.hourElement,t=o===n.minuteElement;d<a?(d=i+d+u(!e)+(u(e)&&u(!n.amPM)),t&&R(undefined,-1,n.hourElement)):d>i&&(d=o===n.hourElement?d-i-u(!n.amPM):a,t&&R(undefined,1,n.hourElement)),n.amPM&&e&&(1===c?d+l===23:Math.abs(d-l)>c)&&(n.amPM.textContent=n.l10n.amPM[u(n.amPM.textContent===n.l10n.amPM[0])]),o.value=s(d)}}(e);const t=n._input.value;C(),be(),n._input.value!==t&&n._debouncedChange()}function C(){if(n.hourElement===undefined||n.minuteElement===undefined)return;let e=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,t=(parseInt(n.minuteElement.value,10)||0)%60,r=n.secondElement!==undefined?(parseInt(n.secondElement.value,10)||0)%60:0;var o,a;n.amPM!==undefined&&(o=e,a=n.amPM.textContent,e=o%12+12*u(a===n.l10n.amPM[1]));const i=n.config.minTime!==undefined||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===D(n.latestSelectedDateObj,n.config.minDate,!0);if(n.config.maxTime!==undefined||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===D(n.latestSelectedDateObj,n.config.maxDate,!0)){const o=n.config.maxTime!==undefined?n.config.maxTime:n.config.maxDate;e=Math.min(e,o.getHours()),e===o.getHours()&&(t=Math.min(t,o.getMinutes())),t===o.getMinutes()&&(r=Math.min(r,o.getSeconds()))}if(i){const o=n.config.minTime!==undefined?n.config.minTime:n.config.minDate;e=Math.max(e,o.getHours()),e===o.getHours()&&t<o.getMinutes()&&(t=o.getMinutes()),t===o.getMinutes()&&(r=Math.max(r,o.getSeconds()))}M(e,t,r)}function E(e){const t=e||n.latestSelectedDateObj;t&&M(t.getHours(),t.getMinutes(),t.getSeconds())}function M(e,t,r){n.latestSelectedDateObj!==undefined&&n.latestSelectedDateObj.setHours(e%24,t,r||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=s(n.config.time_24hr?e:(12+e)%12+12*u(e%12==0)),n.minuteElement.value=s(t),n.amPM!==undefined&&(n.amPM.textContent=n.l10n.amPM[u(e>=12)]),n.secondElement!==undefined&&(n.secondElement.value=s(r)))}function P(e){const t=g(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&J(n)}function j(e,t,r,o){return t instanceof Array?t.forEach((t=>j(e,t,r,o))):e instanceof Array?e.forEach((e=>j(e,t,r,o))):(e.addEventListener(t,r,o),void n._handlers.push({remove:()=>e.removeEventListener(t,r)}))}function T(){pe("onChange")}function A(e,t){const r=e!==undefined?n.parseDate(e):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),o=n.currentYear,a=n.currentMonth;try{r!==undefined&&(n.currentYear=r.getFullYear(),n.currentMonth=r.getMonth())}catch(i){i.message="Invalid date supplied: "+r,n.config.errorHandler(i)}t&&n.currentYear!==o&&(pe("onYearChange"),W()),!t||n.currentYear===o&&n.currentMonth===a||pe("onMonthChange"),n.redraw()}function I(e){const t=g(e);~t.className.indexOf("arrow")&&R(e,t.classList.contains("arrowUp")?1:-1)}function R(e,t,n){const r=e&&g(e),o=n||r&&r.parentNode&&r.parentNode.firstChild,a=he("increment");a.delta=t,o&&o.dispatchEvent(a)}function N(e,t,r,o){const a=Q(t,!0),i=d("span","flatpickr-day "+e,t.getDate().toString());return i.dateObj=t,i.$i=o,i.setAttribute("aria-label",n.formatDate(t,n.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===D(t,n.now)&&(n.todayDateElem=i,i.classList.add("today"),i.setAttribute("aria-current","date")),a?(i.tabIndex=-1,me(t)&&(i.classList.add("selected"),n.selectedDateElem=i,"range"===n.config.mode&&(f(i,"startRange",n.selectedDates[0]&&0===D(t,n.selectedDates[0],!0)),f(i,"endRange",n.selectedDates[1]&&0===D(t,n.selectedDates[1],!0)),"nextMonthDay"===e&&i.classList.add("inRange")))):i.classList.add("flatpickr-disabled"),"range"===n.config.mode&&function(e){return!("range"!==n.config.mode||n.selectedDates.length<2)&&(D(e,n.selectedDates[0])>=0&&D(e,n.selectedDates[1])<=0)}(t)&&!me(t)&&i.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==e&&r%7==1&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(t)+"</span>"),pe("onDayCreate",i),i}function L(e){e.focus(),"range"===n.config.mode&&te(e)}function V(e){const t=e>0?0:n.config.showMonths-1,r=e>0?n.config.showMonths:-1;for(let o=t;o!=r;o+=e){const t=n.daysContainer.children[o],r=e>0?0:t.children.length-1,a=e>0?t.children.length:-1;for(let n=r;n!=a;n+=e){const e=t.children[n];if(-1===e.className.indexOf("hidden")&&Q(e.dateObj))return e}}return undefined}function F(e,t){const r=X(document.activeElement||document.body),o=e!==undefined?e:r?document.activeElement:n.selectedDateElem!==undefined&&X(n.selectedDateElem)?n.selectedDateElem:n.todayDateElem!==undefined&&X(n.todayDateElem)?n.todayDateElem:V(t>0?1:-1);o===undefined?n._input.focus():r?function(e,t){const r=-1===e.className.indexOf("Month")?e.dateObj.getMonth():n.currentMonth,o=t>0?n.config.showMonths:-1,a=t>0?1:-1;for(let i=r-n.currentMonth;i!=o;i+=a){const o=n.daysContainer.children[i],s=r-n.currentMonth===i?e.$i+t:t<0?o.children.length-1:0,u=o.children.length;for(let n=s;n>=0&&n<u&&n!=(t>0?u:-1);n+=a){const r=o.children[n];if(-1===r.className.indexOf("hidden")&&Q(r.dateObj)&&Math.abs(e.$i-n)>=Math.abs(t))return L(r)}}n.changeMonth(a),F(V(a),0),undefined}(o,t):L(o)}function H(e,t){const r=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,o=n.utils.getDaysInMonth((t-1+12)%12,e),a=n.utils.getDaysInMonth(t,e),i=window.document.createDocumentFragment(),s=n.config.showMonths>1,u=s?"prevMonthDay hidden":"prevMonthDay",c=s?"nextMonthDay hidden":"nextMonthDay";let l=o+1-r,f=0;for(;l<=o;l++,f++)i.appendChild(N(u,new Date(e,t-1,l),l,f));for(l=1;l<=a;l++,f++)i.appendChild(N("",new Date(e,t,l),l,f));for(let o=a+1;o<=42-r&&(1===n.config.showMonths||f%7!=0);o++,f++)i.appendChild(N(c,new Date(e,t+1,o%a),o,f));const p=d("div","dayContainer");return p.appendChild(i),p}function U(){if(n.daysContainer===undefined)return;p(n.daysContainer),n.weekNumbers&&p(n.weekNumbers);const e=document.createDocumentFragment();for(let t=0;t<n.config.showMonths;t++){const r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+t),e.appendChild(H(r.getFullYear(),r.getMonth()))}n.daysContainer.appendChild(e),n.days=n.daysContainer.firstChild,"range"===n.config.mode&&1===n.selectedDates.length&&te()}function W(){if(n.config.showMonths>1||"dropdown"!==n.config.monthSelectorType)return;const e=function(e){return!(n.config.minDate!==undefined&&n.currentYear===n.config.minDate.getFullYear()&&e<n.config.minDate.getMonth())&&!(n.config.maxDate!==undefined&&n.currentYear===n.config.maxDate.getFullYear()&&e>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(let t=0;t<12;t++){if(!e(t))continue;const r=d("option","flatpickr-monthDropdown-month");r.value=new Date(n.currentYear,t).getMonth().toString(),r.textContent=b(t,n.config.shorthandCurrentMonth,n.l10n),r.tabIndex=-1,n.currentMonth===t&&(r.selected=!0),n.monthsDropdownContainer.appendChild(r)}}function z(){const e=d("div","flatpickr-month"),t=window.document.createDocumentFragment();let r;n.config.showMonths>1||"static"===n.config.monthSelectorType?r=d("span","cur-month"):(n.monthsDropdownContainer=d("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),j(n.monthsDropdownContainer,"change",(e=>{const t=g(e),r=parseInt(t.value,10);n.changeMonth(r-n.currentMonth),pe("onMonthChange")})),W(),r=n.monthsDropdownContainer);const o=m("cur-year",{tabindex:"-1"}),a=o.getElementsByTagName("input")[0];a.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&a.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(a.setAttribute("max",n.config.maxDate.getFullYear().toString()),a.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());const i=d("div","flatpickr-current-month");return i.appendChild(r),i.appendChild(o),t.appendChild(i),e.appendChild(t),{container:e,yearElement:a,monthElement:r}}function B(){p(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(let e=n.config.showMonths;e--;){const e=z();n.yearElements.push(e.yearElement),n.monthElements.push(e.monthElement),n.monthNav.appendChild(e.container)}n.monthNav.appendChild(n.nextMonthNav)}function Y(){n.weekdayContainer?p(n.weekdayContainer):n.weekdayContainer=d("div","flatpickr-weekdays");for(let e=n.config.showMonths;e--;){const e=d("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(e)}return q(),n.weekdayContainer}function q(){if(!n.weekdayContainer)return;const e=n.l10n.firstDayOfWeek;let t=[...n.l10n.weekdays.shorthand];e>0&&e<t.length&&(t=[...t.splice(e,t.length),...t.splice(0,e)]);for(let e=n.config.showMonths;e--;)n.weekdayContainer.children[e].innerHTML=`\n <span class='flatpickr-weekday'>\n ${t.join("</span><span class='flatpickr-weekday'>")}\n </span>\n `}function K(e,t=!0){const r=t?e:e-n.currentMonth;r<0&&!0===n._hidePrevMonthArrow||r>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=r,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,pe("onYearChange"),W()),U(),pe("onMonthChange"),ge())}function $(e){return!(!n.config.appendTo||!n.config.appendTo.contains(e))||n.calendarContainer.contains(e)}function G(e){if(n.isOpen&&!n.config.inline){const t=g(e),r=$(t),o=t===n.input||t===n.altInput||n.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(n.input)||~e.path.indexOf(n.altInput)),a="blur"===e.type?o&&e.relatedTarget&&!$(e.relatedTarget):!o&&!r&&!$(e.relatedTarget),i=!n.config.ignoredFocusElements.some((e=>e.contains(t)));a&&i&&(n.timeContainer!==undefined&&n.minuteElement!==undefined&&n.hourElement!==undefined&&""!==n.input.value&&n.input.value!==undefined&&y(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&(n.clear(!1),n.redraw()))}}function J(e){if(!e||n.config.minDate&&e<n.config.minDate.getFullYear()||n.config.maxDate&&e>n.config.maxDate.getFullYear())return;const t=e,r=n.currentYear!==t;n.currentYear=t||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),r&&(n.redraw(),pe("onYearChange"),W())}function Q(e,t=!0){var r;const o=n.parseDate(e,undefined,t);if(n.config.minDate&&o&&D(o,n.config.minDate,t!==undefined?t:!n.minDateHasTime)<0||n.config.maxDate&&o&&D(o,n.config.maxDate,t!==undefined?t:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(o===undefined)return!1;const a=!!n.config.enable,i=null!==(r=n.config.enable)&&void 0!==r?r:n.config.disable;for(let e,t=0;t<i.length;t++){if(e=i[t],"function"==typeof e&&e(o))return a;if(e instanceof Date&&o!==undefined&&e.getTime()===o.getTime())return a;if("string"==typeof e){const t=n.parseDate(e,undefined,!0);return t&&t.getTime()===o.getTime()?a:!a}if("object"==typeof e&&o!==undefined&&e.from&&e.to&&o.getTime()>=e.from.getTime()&&o.getTime()<=e.to.getTime())return a}return!a}function X(e){return n.daysContainer!==undefined&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(e))}function Z(e){!(e.target===n._input)||!(n.selectedDates.length>0||n._input.value.length>0)||e.relatedTarget&&$(e.relatedTarget)||n.setDate(n._input.value,!0,e.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function ee(t){const r=g(t),o=n.config.wrap?e.contains(r):r===n._input,a=n.config.allowInput,i=n.isOpen&&(!a||!o),s=n.config.inline&&o&&!a;if(13===t.keyCode&&o){if(a)return n.setDate(n._input.value,!0,r===n.altInput?n.config.altFormat:n.config.dateFormat),r.blur();n.open()}else if($(r)||i||s){const e=!!n.timeContainer&&n.timeContainer.contains(r);switch(t.keyCode){case 13:e?(t.preventDefault(),y(),ue()):ce(t);break;case 27:t.preventDefault(),ue();break;case 8:case 46:o&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(e||o)n.hourElement&&n.hourElement.focus();else if(t.preventDefault(),n.daysContainer!==undefined&&(!1===a||document.activeElement&&X(document.activeElement))){const e=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),K(e),F(V(1),0)):F(undefined,e)}break;case 38:case 40:t.preventDefault();const i=40===t.keyCode?1:-1;n.daysContainer&&r.$i!==undefined||r===n.input||r===n.altInput?t.ctrlKey?(t.stopPropagation(),J(n.currentYear-i),F(V(1),0)):e||F(undefined,7*i):r===n.currentYearElement?J(n.currentYear-i):n.config.enableTime&&(!e&&n.hourElement&&n.hourElement.focus(),y(t),n._debouncedChange());break;case 9:if(e){const e=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter((e=>e)),o=e.indexOf(r);if(-1!==o){const r=e[o+(t.shiftKey?-1:1)];t.preventDefault(),(r||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(r)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(n.amPM!==undefined&&r===n.amPM)switch(t.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],C(),be();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],C(),be()}(o||$(r))&&pe("onKeyDown",t)}function te(e){if(1!==n.selectedDates.length||e&&(!e.classList.contains("flatpickr-day")||e.classList.contains("flatpickr-disabled")))return;const t=e?e.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),r=n.parseDate(n.selectedDates[0],undefined,!0).getTime(),o=Math.min(t,n.selectedDates[0].getTime()),a=Math.max(t,n.selectedDates[0].getTime());let i=!1,s=0,u=0;for(let e=o;e<a;e+=k)Q(new Date(e),!0)||(i=i||e>o&&e<a,e<r&&(!s||e>s)?s=e:e>r&&(!u||e<u)&&(u=e));for(let o=0;o<n.config.showMonths;o++){const a=n.daysContainer.children[o];for(let o=0,d=a.children.length;o<d;o++){const d=a.children[o],p=d.dateObj.getTime(),h=s>0&&p<s||u>0&&p>u;h?(d.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((e=>{d.classList.remove(e)}))):i&&!h||(["startRange","inRange","endRange","notAllowed"].forEach((e=>{d.classList.remove(e)})),e!==undefined&&(e.classList.add(t<=n.selectedDates[0].getTime()?"startRange":"endRange"),r<t&&p===r?d.classList.add("startRange"):r>t&&p===r&&d.classList.add("endRange"),p>=s&&(0===u||p<=u)&&(l=r,f=t,(c=p)>Math.min(l,f)&&c<Math.max(l,f))&&d.classList.add("inRange")))}}var c,l,f}function ne(){!n.isOpen||n.config["static"]||n.config.inline||ie()}function re(e){return t=>{const r=n.config[`_${e}Date`]=n.parseDate(t,n.config.dateFormat),o=n.config[`_${"min"===e?"max":"min"}Date`];r!==undefined&&(n["min"===e?"minDateHasTime":"maxDateHasTime"]=r.getHours()>0||r.getMinutes()>0||r.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter((e=>Q(e))),n.selectedDates.length||"min"!==e||E(r),be()),n.daysContainer&&(se(),r!==undefined?n.currentYearElement[e]=r.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!o&&r!==undefined&&o.getFullYear()===r.getFullYear())}}function oe(){return n.config.wrap?e.querySelector("[data-input]"):e}function ae(){"object"!=typeof n.config.locale&&"undefined"==typeof _.l10ns[n.config.locale]&&n.config.errorHandler(new Error(`flatpickr: invalid locale ${n.config.locale}`)),n.l10n=Object.assign(Object.assign({},_.l10ns["default"]),"object"==typeof n.config.locale?n.config.locale:"default"!==n.config.locale?_.l10ns[n.config.locale]:undefined),w.K=`(${n.l10n.amPM[0]}|${n.l10n.amPM[1]}|${n.l10n.amPM[0].toLowerCase()}|${n.l10n.amPM[1].toLowerCase()})`;Object.assign(Object.assign({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr===undefined&&_.defaultConfig.time_24hr===undefined&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=O(n),n.parseDate=x({config:n.config,l10n:n.l10n})}function ie(e){if("function"==typeof n.config.position)return void n.config.position(n,e);if(n.calendarContainer===undefined)return;pe("onPreCalendarPosition");const t=e||n._positionElement,r=Array.prototype.reduce.call(n.calendarContainer.children,((e,t)=>e+t.offsetHeight),0),o=n.calendarContainer.offsetWidth,a=n.config.position.split(" "),i=a[0],s=a.length>1?a[1]:null,u=t.getBoundingClientRect(),c=window.innerHeight-u.bottom,l="above"===i||"below"!==i&&c<r&&u.top>r,d=window.pageYOffset+u.top+(l?-r-2:t.offsetHeight+2);if(f(n.calendarContainer,"arrowTop",!l),f(n.calendarContainer,"arrowBottom",l),n.config.inline)return;let p=window.pageXOffset+u.left,h=!1,m=!1;"center"===s?(p-=(o-u.width)/2,h=!0):"right"===s&&(p-=o-u.width,m=!0),f(n.calendarContainer,"arrowLeft",!h&&!m),f(n.calendarContainer,"arrowCenter",h),f(n.calendarContainer,"arrowRight",m);const g=window.document.body.offsetWidth-(window.pageXOffset+u.right),v=p+o>window.document.body.offsetWidth,b=g+o>window.document.body.offsetWidth;if(f(n.calendarContainer,"rightMost",v),!n.config["static"])if(n.calendarContainer.style.top=`${d}px`,v)if(b){const e=function(){let e=null;for(let n=0;n<document.styleSheets.length;n++){const r=document.styleSheets[n];try{r.cssRules}catch(t){continue}e=r;break}return null!=e?e:function(){const e=document.createElement("style");return document.head.appendChild(e),e.sheet}()}();if(e===undefined)return;const t=window.document.body.offsetWidth,r=Math.max(0,t/2-o/2),a=".flatpickr-calendar.centerMost:before",i=".flatpickr-calendar.centerMost:after",s=e.cssRules.length,c=`{left:${u.left}px;right:auto;}`;f(n.calendarContainer,"rightMost",!1),f(n.calendarContainer,"centerMost",!0),e.insertRule(`${a},${i}${c}`,s),n.calendarContainer.style.left=`${r}px`,n.calendarContainer.style.right="auto"}else n.calendarContainer.style.left="auto",n.calendarContainer.style.right=`${g}px`;else n.calendarContainer.style.left=`${p}px`,n.calendarContainer.style.right="auto"}function se(){n.config.noCalendar||n.isMobile||(W(),ge(),U())}function ue(){n._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||navigator.msMaxTouchPoints!==undefined?setTimeout(n.close,0):n.close()}function ce(e){e.preventDefault(),e.stopPropagation();const t=h(g(e),(e=>e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")));if(t===undefined)return;const r=t,o=n.latestSelectedDateObj=new Date(r.dateObj.getTime()),a=(o.getMonth()<n.currentMonth||o.getMonth()>n.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=r,"single"===n.config.mode)n.selectedDates=[o];else if("multiple"===n.config.mode){const e=me(o);e?n.selectedDates.splice(parseInt(e),1):n.selectedDates.push(o)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=o,n.selectedDates.push(o),0!==D(o,n.selectedDates[0],!0)&&n.selectedDates.sort(((e,t)=>e.getTime()-t.getTime())));if(C(),a){const e=n.currentYear!==o.getFullYear();n.currentYear=o.getFullYear(),n.currentMonth=o.getMonth(),e&&(pe("onYearChange"),W()),pe("onMonthChange")}if(ge(),U(),be(),a||"range"===n.config.mode||1!==n.config.showMonths?n.selectedDateElem!==undefined&&n.hourElement===undefined&&n.selectedDateElem&&n.selectedDateElem.focus():L(r),n.hourElement!==undefined&&n.hourElement!==undefined&&n.hourElement.focus(),n.config.closeOnSelect){const e="single"===n.config.mode&&!n.config.enableTime,t="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(e||t)&&ue()}T()}n.parseDate=x({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=j,n._setHoursFromDate=E,n._positionCalendar=ie,n.changeMonth=K,n.changeYear=J,n.clear=function(e=!0,t=!0){n.input.value="",n.altInput!==undefined&&(n.altInput.value="");n.mobileInput!==undefined&&(n.mobileInput.value="");n.selectedDates=[],n.latestSelectedDateObj=undefined,!0===t&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){const{hours:e,minutes:t,seconds:r}=S(n.config);M(e,t,r)}n.redraw(),e&&pe("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(n.calendarContainer!==undefined&&n.calendarContainer.classList.remove("open"),n._input!==undefined&&n._input.classList.remove("active"));pe("onClose")},n._createElement=d,n.destroy=function(){n.config!==undefined&&pe("onDestroy");for(let e=n._handlers.length;e--;)n._handlers[e].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=undefined;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config["static"]&&n.calendarContainer.parentNode){const e=n.calendarContainer.parentNode;if(e.lastChild&&e.removeChild(e.lastChild),e.parentNode){for(;e.firstChild;)e.parentNode.insertBefore(e.firstChild,e);e.parentNode.removeChild(e)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((e=>{try{delete n[e]}catch(t){}}))},n.isEnabled=Q,n.jumpToDate=A,n.open=function(e,t=n._positionElement){if(!0===n.isMobile){if(e){e.preventDefault();const t=g(e);t&&t.blur()}return n.mobileInput!==undefined&&(n.mobileInput.focus(),n.mobileInput.click()),void pe("onOpen")}if(n._input.disabled||n.config.inline)return;const r=n.isOpen;n.isOpen=!0,r||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),pe("onOpen"),ie(t));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||e!==undefined&&n.timeContainer.contains(e.relatedTarget)||setTimeout((()=>n.hourElement.select()),50))},n.redraw=se,n.set=function(e,t){if(null!==e&&"object"==typeof e){Object.assign(n.config,e);for(const t in e)le[t]!==undefined&&le[t].forEach((e=>e()))}else n.config[e]=t,le[e]!==undefined?le[e].forEach((e=>e())):r.indexOf(e)>-1&&(n.config[e]=l(t));n.redraw(),be(!0)},n.setDate=function(e,t=!1,r=n.config.dateFormat){if(0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);fe(e,r),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),A(undefined,t),E(),0===n.selectedDates.length&&n.clear(!1);be(t),t&&pe("onChange")},n.toggle=function(e){if(!0===n.isOpen)return n.close();n.open(e)};const le={locale:[ae,q],showMonths:[B,v,Y],minDate:[A],maxDate:[A],clickOpens:[()=>{!0===n.config.clickOpens?(j(n._input,"focus",n.open),j(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function fe(e,t){let r=[];if(e instanceof Array)r=e.map((e=>n.parseDate(e,t)));else if(e instanceof Date||"number"==typeof e)r=[n.parseDate(e,t)];else if("string"==typeof e)switch(n.config.mode){case"single":case"time":r=[n.parseDate(e,t)];break;case"multiple":r=e.split(n.config.conjunction).map((e=>n.parseDate(e,t)));break;case"range":r=e.split(n.l10n.rangeSeparator).map((e=>n.parseDate(e,t)))}else n.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(e)}`));n.selectedDates=n.config.allowInvalidPreload?r:r.filter((e=>e instanceof Date&&Q(e,!1))),"range"===n.config.mode&&n.selectedDates.sort(((e,t)=>e.getTime()-t.getTime()))}function de(e){return e.slice().map((e=>"string"==typeof e||"number"==typeof e||e instanceof Date?n.parseDate(e,undefined,!0):e&&"object"==typeof e&&e.from&&e.to?{from:n.parseDate(e.from,undefined),to:n.parseDate(e.to,undefined)}:e)).filter((e=>e))}function pe(e,t){if(n.config===undefined)return;const r=n.config[e];if(r!==undefined&&r.length>0)for(let e=0;r[e]&&e<r.length;e++)r[e](n.selectedDates,n.input.value,n,t);"onChange"===e&&(n.input.dispatchEvent(he("change")),n.input.dispatchEvent(he("input")))}function he(e){const t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function me(e){for(let t=0;t<n.selectedDates.length;t++)if(0===D(n.selectedDates[t],e))return""+t;return!1}function ge(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach(((e,t)=>{const r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+t),n.config.showMonths>1||"static"===n.config.monthSelectorType?n.monthElements[t].textContent=b(r.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=r.getMonth().toString(),e.value=r.getFullYear().toString()})),n._hidePrevMonthArrow=n.config.minDate!==undefined&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=n.config.maxDate!==undefined&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function ve(e){return n.selectedDates.map((t=>n.formatDate(t,e))).filter(((e,t,r)=>"range"!==n.config.mode||n.config.enableTime||r.indexOf(e)===t)).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function be(e=!0){n.mobileInput!==undefined&&n.mobileFormatStr&&(n.mobileInput.value=n.latestSelectedDateObj!==undefined?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=ve(n.config.dateFormat),n.altInput!==undefined&&(n.altInput.value=ve(n.config.altFormat)),!1!==e&&pe("onValueUpdate")}function ye(e){const t=g(e),r=n.prevMonthNav.contains(t),o=n.nextMonthNav.contains(t);r||o?K(r?-1:1):n.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):t.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=e,n.isOpen=!1,function(){const i=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],s=Object.assign(Object.assign({},JSON.parse(JSON.stringify(e.dataset||{}))),t),u={};n.config.parseDate=s.parseDate,n.config.formatDate=s.formatDate,Object.defineProperty(n.config,"enable",{get:()=>n.config._enable,set:e=>{n.config._enable=de(e)}}),Object.defineProperty(n.config,"disable",{get:()=>n.config._disable,set:e=>{n.config._disable=de(e)}});const c="time"===s.mode;if(!s.dateFormat&&(s.enableTime||c)){const e=_.defaultConfig.dateFormat||o.dateFormat;u.dateFormat=s.noCalendar||c?"H:i"+(s.enableSeconds?":S":""):e+" H:i"+(s.enableSeconds?":S":"")}if(s.altInput&&(s.enableTime||c)&&!s.altFormat){const e=_.defaultConfig.altFormat||o.altFormat;u.altFormat=s.noCalendar||c?"h:i"+(s.enableSeconds?":S K":" K"):e+` h:i${s.enableSeconds?":S":""} K`}Object.defineProperty(n.config,"minDate",{get:()=>n.config._minDate,set:re("min")}),Object.defineProperty(n.config,"maxDate",{get:()=>n.config._maxDate,set:re("max")});const f=e=>t=>{n.config["min"===e?"_minTime":"_maxTime"]=n.parseDate(t,"H:i:S")};Object.defineProperty(n.config,"minTime",{get:()=>n.config._minTime,set:f("min")}),Object.defineProperty(n.config,"maxTime",{get:()=>n.config._maxTime,set:f("max")}),"time"===s.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0);Object.assign(n.config,u,s);for(let e=0;e<i.length;e++)n.config[i[e]]=!0===n.config[i[e]]||"true"===n.config[i[e]];r.filter((e=>n.config[e]!==undefined)).forEach((e=>{n.config[e]=l(n.config[e]||[]).map(a)})),n.isMobile=!n.config.disableMobile&&!n.config.inline&&"single"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(let e=0;e<n.config.plugins.length;e++){const t=n.config.plugins[e](n)||{};for(const e in t)r.indexOf(e)>-1?n.config[e]=l(t[e]).map(a).concat(n.config[e]):"undefined"==typeof s[e]&&(n.config[e]=t[e])}s.altInputClass||(n.config.altInputClass=oe().className+" "+n.config.altInputClass);pe("onParseConfig")}(),ae(),function(){if(n.input=oe(),!n.input)return void n.config.errorHandler(new Error("Invalid input element specified"));n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=d(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config["static"]&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling));n.config.allowInput||n._input.setAttribute("readonly","readonly");n._positionElement=n.config.positionElement||n._input}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;const e=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);e&&fe(e,n.config.dateFormat);n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]);n.config.minTime!==undefined&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i"));n.config.maxTime!==undefined&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i"));n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:(e=n.currentMonth,t=n.currentYear)=>1===e&&(t%4==0&&t%100!=0||t%400==0)?29:n.l10n.daysInMonth[e]},n.isMobile||function(){const e=window.document.createDocumentFragment();if(n.calendarContainer=d("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(e.appendChild((n.monthNav=d("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=d("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=d("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,B(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:()=>n.__hidePrevMonthArrow,set(e){n.__hidePrevMonthArrow!==e&&(f(n.prevMonthNav,"flatpickr-disabled",e),n.__hidePrevMonthArrow=e)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:()=>n.__hideNextMonthArrow,set(e){n.__hideNextMonthArrow!==e&&(f(n.nextMonthNav,"flatpickr-disabled",e),n.__hideNextMonthArrow=e)}}),n.currentYearElement=n.yearElements[0],ge(),n.monthNav)),n.innerContainer=d("div","flatpickr-innerContainer"),n.config.weekNumbers){const{weekWrapper:e,weekNumbers:t}=function(){n.calendarContainer.classList.add("hasWeeks");const e=d("div","flatpickr-weekwrapper");e.appendChild(d("span","flatpickr-weekday",n.l10n.weekAbbreviation));const t=d("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}();n.innerContainer.appendChild(e),n.weekNumbers=t,n.weekWrapper=e}n.rContainer=d("div","flatpickr-rContainer"),n.rContainer.appendChild(Y()),n.daysContainer||(n.daysContainer=d("div","flatpickr-days"),n.daysContainer.tabIndex=-1),U(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),e.appendChild(n.innerContainer)}n.config.enableTime&&e.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");const e=S(n.config);n.timeContainer=d("div","flatpickr-time"),n.timeContainer.tabIndex=-1;const t=d("span","flatpickr-time-separator",":"),r=m("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=r.getElementsByTagName("input")[0];const o=m("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});n.minuteElement=o.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=s(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),n.minuteElement.value=s(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():e.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(r),n.timeContainer.appendChild(t),n.timeContainer.appendChild(o),n.config.time_24hr&&n.timeContainer.classList.add("time24hr");if(n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");const t=m("flatpickr-second");n.secondElement=t.getElementsByTagName("input")[0],n.secondElement.value=s(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():e.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(d("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(t)}n.config.time_24hr||(n.amPM=d("span","flatpickr-am-pm",n.l10n.amPM[u((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM));return n.timeContainer}());f(n.calendarContainer,"rangeMode","range"===n.config.mode),f(n.calendarContainer,"animate",!0===n.config.animate),f(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(e);const t=n.config.appendTo!==undefined&&n.config.appendTo.nodeType!==undefined;if((n.config.inline||n.config["static"])&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!t&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):n.config.appendTo!==undefined&&n.config.appendTo.appendChild(n.calendarContainer)),n.config["static"])){const e=d("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(e,n.element),e.appendChild(n.element),n.altInput&&e.appendChild(n.altInput),e.appendChild(n.calendarContainer)}n.config["static"]||n.config.inline||(n.config.appendTo!==undefined?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){n.config.wrap&&["open","close","toggle","clear"].forEach((e=>{Array.prototype.forEach.call(n.element.querySelectorAll(`[data-${e}]`),(t=>j(t,"click",n[e])))}));if(n.isMobile)return void function(){const e=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=d("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=e,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr));n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d"));n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d"));n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step")));n.input.type="hidden",n.altInput!==undefined&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(t){}j(n.mobileInput,"change",(e=>{n.setDate(g(e).value,!1,n.mobileFormatStr),pe("onChange"),pe("onClose")}))}();const e=c(ne,50);n._debouncedChange=c(T,300),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&j(n.daysContainer,"mouseover",(e=>{"range"===n.config.mode&&te(g(e))}));j(window.document.body,"keydown",ee),n.config.inline||n.config["static"]||j(window,"resize",e);window.ontouchstart!==undefined?j(window.document,"touchstart",G):j(window.document,"mousedown",G);j(window.document,"focus",G,{capture:!0}),!0===n.config.clickOpens&&(j(n._input,"focus",n.open),j(n._input,"click",n.open));n.daysContainer!==undefined&&(j(n.monthNav,"click",ye),j(n.monthNav,["keyup","increment"],P),j(n.daysContainer,"click",ce));if(n.timeContainer!==undefined&&n.minuteElement!==undefined&&n.hourElement!==undefined){const e=e=>g(e).select();j(n.timeContainer,["increment"],y),j(n.timeContainer,"blur",y,{capture:!0}),j(n.timeContainer,"click",I),j([n.hourElement,n.minuteElement],["focus","click"],e),n.secondElement!==undefined&&j(n.secondElement,"focus",(()=>n.secondElement&&n.secondElement.select())),n.amPM!==undefined&&j(n.amPM,"click",(e=>{y(e),T()}))}n.config.allowInput&&j(n._input,"blur",Z)}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&E(n.config.noCalendar?n.latestSelectedDateObj:undefined),be(!1)),v();const i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&i&&ie(),pe("onReady")}(),n}function M(e,t){const n=Array.prototype.slice.call(e).filter((e=>e instanceof HTMLElement)),r=[];for(let e=0;e<n.length;e++){const a=n[e];try{if(null!==a.getAttribute("data-fp-omit"))continue;a._flatpickr!==undefined&&(a._flatpickr.destroy(),a._flatpickr=undefined),a._flatpickr=E(a,t||{}),r.push(a._flatpickr)}catch(o){console.error(o)}}return 1===r.length?r[0]:r}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return M(this,e)},HTMLElement.prototype.flatpickr=function(e){return M([this],e)});var _=function(e,t){return"string"==typeof e?M(window.document.querySelectorAll(e),t):e instanceof Node?M([e],t):M(e,t)};_.defaultConfig={},_.l10ns={en:Object.assign({},i),"default":Object.assign({},i)},_.localize=e=>{_.l10ns["default"]=Object.assign(Object.assign({},_.l10ns["default"]),e)},_.setDefaults=e=>{_.defaultConfig=Object.assign(Object.assign({},_.defaultConfig),e)},_.parseDate=x({}),_.formatDate=O({}),_.compareDates=D,"undefined"!=typeof jQuery&&"undefined"!=typeof jQuery.fn&&(jQuery.fn.flatpickr=function(e){return M(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=_);var P=_},895:function(){"use strict";"function"!=typeof Object.assign&&(Object.assign=function(e,...t){if(!e)throw TypeError("Cannot convert undefined or null to object");for(const n of t)n&&Object.keys(n).forEach((t=>e[t]=n[t]));return e})},705:function(e,t,n){var r=n(638).Symbol;e.exports=r},239:function(e,t,n){var r=n(705),o=n(607),a=n(333),i=r?r.toStringTag:undefined;e.exports=function(e){return null==e?e===undefined?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},607:function(e,t,n){var r=n(705),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:undefined;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=undefined;var r=!0}catch(u){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},638:function(e,t,n){var r=n(957),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},469:function(e){var t=Array.isArray;e.exports=t},654:function(e,t,n){var r=n(763);e.exports=function(e){return r(e)&&e!=+e}},763:function(e,t,n){var r=n(239),o=n(5);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},5:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},37:function(e,t,n){var r=n(239),o=n(469),a=n(5);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},353:function(e){e.exports=function(e){return e===undefined}},251:function(e){"use strict";
2
  /*!
3
  * MoveTo - A lightweight scroll animation javascript library without any dependency.
4
  * Version 1.8.2 (28-06-2019 14:30)
9
  Copyright (c) 2017 Jed Watson.
10
  Licensed under the MIT License (MIT), see
11
  http://jedwatson.github.io/classnames
12
+ */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o["default"]=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,i=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,c=s||u||Function("return this")(),l=Object.prototype.toString,f=c.Symbol,d=f?f.prototype:void 0,p=d?d.toString:void 0;function h(e){if("string"==typeof e)return e;if(g(e))return p?p.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}function v(e){return e?(e=function(e){if("number"==typeof e)return e;if(g(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=o.test(e);return s||a.test(e)?i(e.slice(2),s?2:8):r.test(e)?NaN:+e}(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}e.exports=function(e,t,n){var r,o,a;return e=null==(r=e)?"":h(r),o=function(e){var t=v(e),n=t%1;return t==t?n?t-n:t:0}(n),0,a=e.length,o==o&&(void 0!==a&&(o=o<=a?o:a),o=o>=0?o:0),n=o,t=h(t),e.slice(n,n+t.length)==t}}).call(this,n(3))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){var n,r=/^\[object .+?Constructor\]$/,o="object"==typeof t&&t&&t.Object===Object&&t,a="object"==typeof self&&self&&self.Object===Object&&self,i=o||a||Function("return this")(),s=Array.prototype,u=Function.prototype,c=Object.prototype,l=i["__core-js_shared__"],f=(n=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",d=u.toString,p=c.hasOwnProperty,h=c.toString,m=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),g=s.splice,v=k(i,"Map"),b=k(Object,"create");function y(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function w(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function O(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function x(e){return!(!E(e)||(t=e,f&&f in t))&&(function(e){var t=E(e)?h.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?m:r).test(function(e){if(null!=e){try{return d.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function D(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function k(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return x(n)?n:void 0}function S(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(S.Cache||C),n}function E(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}y.prototype.clear=function(){this.__data__=b?b(null):{}},y.prototype["delete"]=function(e){return this.has(e)&&delete this.__data__[e]},y.prototype.get=function(e){var t=this.__data__;if(b){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return p.call(t,e)?t[e]:void 0},y.prototype.has=function(e){var t=this.__data__;return b?void 0!==t[e]:p.call(t,e)},y.prototype.set=function(e,t){return this.__data__[e]=b&&void 0===t?"__lodash_hash_undefined__":t,this},w.prototype.clear=function(){this.__data__=[]},w.prototype["delete"]=function(e){var t=this.__data__,n=O(t,e);return!(n<0||(n==t.length-1?t.pop():g.call(t,n,1),0))},w.prototype.get=function(e){var t=this.__data__,n=O(t,e);return n<0?void 0:t[n][1]},w.prototype.has=function(e){return O(this.__data__,e)>-1},w.prototype.set=function(e,t){var n=this.__data__,r=O(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new y,map:new(v||w),string:new y}},C.prototype["delete"]=function(e){return D(this,e)["delete"](e)},C.prototype.get=function(e){return D(this,e).get(e)},C.prototype.has=function(e){return D(this,e).has(e)},C.prototype.set=function(e,t){return D(this,e).set(e,t),this},S.Cache=C,e.exports=S}).call(this,n(3))},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,i=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,c=s||u||Function("return this")(),l=Object.prototype.toString,f=Math.max,d=Math.min,p=function(){return c.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=o.test(e);return s||a.test(e)?i(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,a,i,s,u,c=0,l=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=r,a=o;return r=o=void 0,c=t,i=e.apply(a,n)}function y(e){return c=e,s=setTimeout(C,t),l?b(e):i}function w(e){var n=e-u;return void 0===u||n>=t||n<0||g&&e-c>=a}function C(){var e=p();if(w(e))return O(e);s=setTimeout(C,function(e){var n=t-(e-u);return g?d(n,a-(e-c)):n}(e))}function O(e){return s=void 0,v&&r?b(e):(r=o=void 0,i)}function x(){var e=p(),n=w(e);if(r=arguments,o=this,u=e,n){if(void 0===s)return y(u);if(g)return s=setTimeout(C,t),b(u)}return void 0===s&&(s=setTimeout(C,t)),i}return t=m(t)||0,h(n)&&(l=!!n.leading,a=(g="maxWait"in n)?f(m(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=o=s=void 0},x.flush=function(){return void 0===s?i:O(p())},x}}).call(this,n(3))},function(e,t,n){(function(e,n){var r="[object Arguments]",o="[object Map]",a="[object Object]",i="[object Set]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,c=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[r]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h["[object Function]"]=h[o]=h["[object Number]"]=h[a]=h["[object RegExp]"]=h[i]=h["[object String]"]=h["[object WeakMap]"]=!1;var m="object"==typeof e&&e&&e.Object===Object&&e,g="object"==typeof self&&self&&self.Object===Object&&self,v=m||g||Function("return this")(),b=t&&!t.nodeType&&t,y=b&&"object"==typeof n&&n&&!n.nodeType&&n,w=y&&y.exports===b&&m.process,C=function(){try{return w&&w.binding("util")}catch(e){}}(),O=C&&C.isTypedArray;function x(e,t,n,r){var o=-1,a=e?e.length:0;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function D(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function k(e,t,n,r,o){return o(e,(function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)})),n}function S(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function E(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function M(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var _,P,j,T=Array.prototype,A=Function.prototype,I=Object.prototype,R=v["__core-js_shared__"],N=(_=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"",L=A.toString,V=I.hasOwnProperty,F=I.toString,H=RegExp("^"+L.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U=v.Symbol,W=v.Uint8Array,z=I.propertyIsEnumerable,B=T.splice,Y=(P=Object.keys,j=Object,function(e){return P(j(e))}),q=Oe(v,"DataView"),K=Oe(v,"Map"),$=Oe(v,"Promise"),G=Oe(v,"Set"),J=Oe(v,"WeakMap"),Q=Oe(Object,"create"),X=Pe(q),Z=Pe(K),ee=Pe($),te=Pe(G),ne=Pe(J),re=U?U.prototype:void 0,oe=re?re.valueOf:void 0,ae=re?re.toString:void 0;function ie(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ue(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ce(e){var t=-1,n=e?e.length:0;for(this.__data__=new ue;++t<n;)this.add(e[t])}function le(e){this.__data__=new se(e)}function fe(e,t){for(var n=e.length;n--;)if(Te(e[n][0],t))return n;return-1}ie.prototype.clear=function(){this.__data__=Q?Q(null):{}},ie.prototype["delete"]=function(e){return this.has(e)&&delete this.__data__[e]},ie.prototype.get=function(e){var t=this.__data__;if(Q){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return V.call(t,e)?t[e]:void 0},ie.prototype.has=function(e){var t=this.__data__;return Q?void 0!==t[e]:V.call(t,e)},ie.prototype.set=function(e,t){return this.__data__[e]=Q&&void 0===t?"__lodash_hash_undefined__":t,this},se.prototype.clear=function(){this.__data__=[]},se.prototype["delete"]=function(e){var t=this.__data__,n=fe(t,e);return!(n<0||(n==t.length-1?t.pop():B.call(t,n,1),0))},se.prototype.get=function(e){var t=this.__data__,n=fe(t,e);return n<0?void 0:t[n][1]},se.prototype.has=function(e){return fe(this.__data__,e)>-1},se.prototype.set=function(e,t){var n=this.__data__,r=fe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ue.prototype.clear=function(){this.__data__={hash:new ie,map:new(K||se),string:new ie}},ue.prototype["delete"]=function(e){return Ce(this,e)["delete"](e)},ue.prototype.get=function(e){return Ce(this,e).get(e)},ue.prototype.has=function(e){return Ce(this,e).has(e)},ue.prototype.set=function(e,t){return Ce(this,e).set(e,t),this},ce.prototype.add=ce.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ce.prototype.has=function(e){return this.__data__.has(e)},le.prototype.clear=function(){this.__data__=new se},le.prototype["delete"]=function(e){return this.__data__["delete"](e)},le.prototype.get=function(e){return this.__data__.get(e)},le.prototype.has=function(e){return this.__data__.has(e)},le.prototype.set=function(e,t){var n=this.__data__;if(n instanceof se){var r=n.__data__;if(!K||r.length<199)return r.push([e,t]),this;n=this.__data__=new ue(r)}return n.set(e,t),this};var de,pe=(de=function(e,t){return e&&he(e,t,We)},function(e,t){if(null==e)return e;if(!Re(e))return de(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),he=function(e,t,n){for(var r=-1,o=Object(e),a=n(e),i=a.length;i--;){var s=a[++r];if(!1===t(o[s],s,o))break}return e};function me(e,t){for(var n=0,r=(t=ke(t,e)?[t]:ye(t)).length;null!=e&&n<r;)e=e[_e(t[n++])];return n&&n==r?e:void 0}function ge(e,t){return null!=e&&t in Object(e)}function ve(e,t,n,s,u){return e===t||(null==e||null==t||!Ve(e)&&!Fe(t)?e!=e&&t!=t:function(e,t,n,s,u,c){var l=Ie(e),f=Ie(t),d="[object Array]",p="[object Array]";l||(d=(d=xe(e))==r?a:d),f||(p=(p=xe(t))==r?a:p);var h=d==a&&!S(e),m=p==a&&!S(t),g=d==p;if(g&&!h)return c||(c=new le),l||Ue(e)?we(e,t,n,s,u,c):function(e,t,n,r,a,s,u){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new W(e),new W(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Te(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case o:var c=E;case i:var l=2&s;if(c||(c=M),e.size!=t.size&&!l)return!1;var f=u.get(e);if(f)return f==t;s|=1,u.set(e,t);var d=we(c(e),c(t),r,a,s,u);return u["delete"](e),d;case"[object Symbol]":if(oe)return oe.call(e)==oe.call(t)}return!1}(e,t,d,n,s,u,c);if(!(2&u)){var v=h&&V.call(e,"__wrapped__"),b=m&&V.call(t,"__wrapped__");if(v||b){var y=v?e.value():e,w=b?t.value():t;return c||(c=new le),n(y,w,s,u,c)}}return!!g&&(c||(c=new le),function(e,t,n,r,o,a){var i=2&o,s=We(e),u=s.length;if(u!=We(t).length&&!i)return!1;for(var c=u;c--;){var l=s[c];if(!(i?l in t:V.call(t,l)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var d=!0;a.set(e,t),a.set(t,e);for(var p=i;++c<u;){var h=e[l=s[c]],m=t[l];if(r)var g=i?r(m,h,l,t,e,a):r(h,m,l,e,t,a);if(!(void 0===g?h===m||n(h,m,r,o,a):g)){d=!1;break}p||(p="constructor"==l)}if(d&&!p){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(d=!1)}return a["delete"](e),a["delete"](t),d}(e,t,n,s,u,c))}(e,t,ve,n,s,u))}function be(e){return"function"==typeof e?e:null==e?ze:"object"==typeof e?Ie(e)?function(e,t){return ke(e)&&Se(t)?Ee(_e(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:me(e,t);return void 0===r?void 0:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){for(var r,o=-1,a=(t=ke(t,e)?[t]:ye(t)).length;++o<a;){var i=_e(t[o]);if(!(r=null!=e&&n(e,i)))break;e=e[i]}return r||!!(a=e?e.length:0)&&Le(a)&&De(i,a)&&(Ie(e)||Ae(e))}(e,t,ge)}(n,e):ve(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=We(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Se(o)]}return t}(e);return 1==t.length&&t[0][2]?Ee(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var o=n.length,a=o;if(null==e)return!a;for(e=Object(e);o--;){var i=n[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){var s=(i=n[o])[0],u=e[s],c=i[1];if(i[2]){if(void 0===u&&!(s in e))return!1}else{var l,f=new le;if(!(void 0===l?ve(c,u,r,3,f):l))return!1}}return!0}(n,0,t)}}(e):ke(t=e)?(n=_e(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return me(t,e)}}(t);var t,n}function ye(e){return Ie(e)?e:Me(e)}function we(e,t,n,r,o,a){var i=2&o,s=e.length,u=t.length;if(s!=u&&!(i&&u>s))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var l=-1,f=!0,d=1&o?new ce:void 0;for(a.set(e,t),a.set(t,e);++l<s;){var p=e[l],h=t[l];if(r)var m=i?r(h,p,l,t,e,a):r(p,h,l,e,t,a);if(void 0!==m){if(m)continue;f=!1;break}if(d){if(!D(t,(function(e,t){if(!d.has(t)&&(p===e||n(p,e,r,o,a)))return d.add(t)}))){f=!1;break}}else if(p!==h&&!n(p,h,r,o,a)){f=!1;break}}return a["delete"](e),a["delete"](t),f}function Ce(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Oe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ve(e)||function(e){return!!N&&N in e}(e))&&(Ne(e)||S(e)?H:d).test(Pe(e))}(n)?n:void 0}var xe=function(e){return F.call(e)};function De(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||p.test(e))&&e>-1&&e%1==0&&e<t}function ke(e,t){if(Ie(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!He(e))||u.test(e)||!s.test(e)||null!=t&&e in Object(t)}function Se(e){return e==e&&!Ve(e)}function Ee(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(q&&"[object DataView]"!=xe(new q(new ArrayBuffer(1)))||K&&xe(new K)!=o||$&&"[object Promise]"!=xe($.resolve())||G&&xe(new G)!=i||J&&"[object WeakMap]"!=xe(new J))&&(xe=function(e){var t=F.call(e),n=t==a?e.constructor:void 0,r=n?Pe(n):void 0;if(r)switch(r){case X:return"[object DataView]";case Z:return o;case ee:return"[object Promise]";case te:return i;case ne:return"[object WeakMap]"}return t});var Me=je((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(He(e))return ae?ae.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return c.test(e)&&n.push(""),e.replace(l,(function(e,t,r,o){n.push(r?o.replace(f,"$1"):t||e)})),n}));function _e(e){if("string"==typeof e||He(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Pe(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function je(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(je.Cache||ue),n}function Te(e,t){return e===t||e!=e&&t!=t}function Ae(e){return function(e){return Fe(e)&&Re(e)}(e)&&V.call(e,"callee")&&(!z.call(e,"callee")||F.call(e)==r)}je.Cache=ue;var Ie=Array.isArray;function Re(e){return null!=e&&Le(e.length)&&!Ne(e)}function Ne(e){var t=Ve(e)?F.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Le(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ve(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Fe(e){return!!e&&"object"==typeof e}function He(e){return"symbol"==typeof e||Fe(e)&&"[object Symbol]"==F.call(e)}var Ue=O?function(e){return function(t){return e(t)}}(O):function(e){return Fe(e)&&Le(e.length)&&!!h[F.call(e)]};function We(e){return Re(e)?function(e,t){var n=Ie(e)||Ae(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!V.call(e,a)||o&&("length"==a||De(a,r))||n.push(a);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||I))return Y(e);var t,n,r=[];for(var o in Object(e))V.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function ze(e){return e}n.exports=function(e,t,n){var r=Ie(e)?x:k,o=arguments.length<3;return r(e,be(t),n,o,pe)}}).call(this,n(3),n(7)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),String(this)+t.slice(0,e))})},function(e,t,n){"use strict";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}function o(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(e){if(Array.isArray(e))return e}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e){return(f="function"==typeof Symbol&&"symbol"===l(Symbol.iterator)?function(e){return l(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":l(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t);var m=n(0),g=n.n(m),v=n(5),b=n.n(v),y=n(4),w=n.n(y),C=n(6),O=n.n(C),x=n(2),D=n.n(x),k=n(1),S=n.n(k);function E(e,t){return i(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s["return"]||s["return"]()}finally{if(o)throw a}}return n}(e,t)||s()}n(8);var M=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420"],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996"],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371"],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998"],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],_=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barthélemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function P(e,t,n,r,o){return!n||o?e+"".padEnd(t.length,".")+" "+r:e+"".padEnd(t.length,".")+" "+n}function j(e,t,n,o,i){var s,u,c=[];return u=!0===t,[(s=[]).concat.apply(s,a(e.map((function(e){var a={name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],dialCode:e[3],format:P(n,e[3],e[4],o,i),priority:e[5]||0},s=[];return e[6]&&e[6].map((function(t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},a);n.dialCode=e[3]+t,n.isAreaCode=!0,n.areaCodeLength=t.length,s.push(n)})),s.length>0?(a.mainCode=!0,u||"Array"===t.constructor.name&&t.includes(e[2])?(a.hasAreaCodes=!0,[a].concat(s)):(c=c.concat(s),[a])):[a]})))),c]}function T(e,t,n,r){if(null!==n){var o=Object.keys(n),a=Object.values(n);o.forEach((function(n,o){if(r)return e.push([n,a[o]]);var i=e.findIndex((function(e){return e[0]===n}));if(-1===i){var s=[n];s[t]=a[o],e.push(s)}else e[i][t]=a[o]}))}}function A(e,t){return 0===t.length?e:e.map((function(e){var n=t.findIndex((function(t){return t[0]===e[2]}));if(-1===n)return e;var r=t[n];return r[1]&&(e[4]=r[1]),r[3]&&(e[5]=r[3]),r[2]&&(e[6]=r[2]),e}))}var I=function N(e,t,n,r,o,i,s,c,l,f,d,p,h,m){u(this,N),this.filterRegions=function(e,t){if("string"==typeof e){var n=e;return t.filter((function(e){return e.regions.some((function(e){return e===n}))}))}return t.filter((function(t){return e.map((function(e){return t.regions.some((function(t){return t===e}))})).some((function(e){return e}))}))},this.sortTerritories=function(e,t){var n=[].concat(a(e),a(t));return n.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})),n},this.getFilteredCountryList=function(e,t,n){return 0===e.length?t:n?e.map((function(e){var n=t.find((function(t){return t.iso2===e}));if(n)return n})).filter((function(e){return e})):t.filter((function(t){return e.some((function(e){return e===t.iso2}))}))},this.localizeCountries=function(e,t,n){for(var r=0;r<e.length;r++)void 0!==t[e[r].iso2]?e[r].localName=t[e[r].iso2]:void 0!==t[e[r].name]&&(e[r].localName=t[e[r].name]);return n||e.sort((function(e,t){return e.localName<t.localName?-1:e.localName>t.localName?1:0})),e},this.getCustomAreas=function(e,t){for(var n=[],r=0;r<t.length;r++){var o=JSON.parse(JSON.stringify(e));o.dialCode+=t[r],n.push(o)}return n},this.excludeCountries=function(e,t){return 0===t.length?e:e.filter((function(e){return!t.includes(e.iso2)}))};var g=function(e,t,n){var r=[];return T(r,1,e,!0),T(r,3,t),T(r,2,n),r}(c,l,f),v=A(JSON.parse(JSON.stringify(M)),g),b=A(JSON.parse(JSON.stringify(_)),g),y=E(j(v,e,p,h,m),2),w=y[0],C=y[1];if(t){var O=E(j(b,e,p,h,m),2),x=O[0];O[1],w=this.sortTerritories(x,w)}n&&(w=this.filterRegions(n,w)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(r,w,s.includes("onlyCountries")),i),d,s.includes("onlyCountries")),this.preferredCountries=0===o.length?[]:this.localizeCountries(this.getFilteredCountryList(o,w,s.includes("preferredCountries")),d,s.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(r,C),i)},R=function(e){function t(e){var n;u(this,t),(n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?d(e):t}(this,p(t).call(this,e))).getProbableCandidate=w()((function(e){return e&&0!==e.length?n.state.onlyCountries.filter((function(t){return D()(t.name.toLowerCase(),e.toLowerCase())}),d(d(n)))[0]:null})),n.guessSelectedCountry=w()((function(e,t,r,o){var a;if(!1===n.props.enableAreaCodes&&(o.some((function(t){if(D()(e,t.dialCode))return r.some((function(e){if(t.iso2===e.iso2&&e.mainCode)return a=e,!0})),!0})),a))return a;var i=r.find((function(e){return e.iso2==t}));if(""===e.trim())return i;var s=r.reduce((function(t,n){if(D()(e,n.dialCode)){if(n.dialCode.length>t.dialCode.length)return n;if(n.dialCode.length===t.dialCode.length&&n.priority<t.priority)return n}return t}),{dialCode:"",priority:10001},d(d(n)));return s.name?s:i})),n.updateCountry=function(e){var t,r=n.state.onlyCountries;(t=e.indexOf(0)>="0"&&e.indexOf(0)<="9"?r.find((function(t){return t.dialCode==+e})):r.find((function(t){return t.iso2==e})))&&t.dialCode&&n.setState({selectedCountry:t,formattedNumber:n.props.disableCountryCode?"":n.formatNumber(t.dialCode,t)})},n.scrollTo=function(e,t){if(e){var r=n.dropdownRef;if(r&&document.body){var o=r.offsetHeight,a=r.getBoundingClientRect().top+document.body.scrollTop,i=a+o,s=e,u=s.getBoundingClientRect(),c=s.offsetHeight,l=u.top+document.body.scrollTop,f=l+c,d=l-a+r.scrollTop,p=o/2-c/2;if(n.props.enableSearch?l<a+32:l<a)t&&(d-=p),r.scrollTop=d;else if(f>i){t&&(d+=p);var h=o-c;r.scrollTop=d-h}}}},n.scrollToTop=function(){var e=n.dropdownRef;e&&document.body&&(e.scrollTop=0)},n.formatNumber=function(e,t){if(!t)return e;var r,a=t.format,u=n.props,c=u.disableCountryCode,l=u.enableAreaCodeStretch,f=u.enableLongNumbers,d=u.autoFormat;if(c?((r=a.split(" ")).shift(),r=r.join(" ")):l&&t.isAreaCode?((r=a.split(" "))[1]=r[1].replace(/\.+/,"".padEnd(t.areaCodeLength,".")),r=r.join(" ")):r=a,!e||0===e.length)return c?"":n.props.prefix;if(e&&e.length<2||!r||!d)return c?e:n.props.prefix+e;var p,h=O()(r,(function(e,t){if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};var n,r=i(n=e.remainingText)||o(n)||s(),a=r[0],u=r.slice(1);return{formattedText:e.formattedText+a,remainingText:u}}),{formattedText:"",remainingText:e.split("")});return(p=f?h.formattedText+h.remainingText.join(""):h.formattedText).includes("(")&&!p.includes(")")&&(p+=")"),p},n.cursorToEnd=function(){var e=n.numberInputRef;e.focus();var t=e.value.length;")"===e.value.charAt(t-1)&&(t-=1),e.setSelectionRange(t,t)},n.getElement=function(e){return n["flag_no_".concat(e)]},n.getCountryData=function(){return n.state.selectedCountry?{name:n.state.selectedCountry.name||"",dialCode:n.state.selectedCountry.dialCode||"",countryCode:n.state.selectedCountry.iso2||"",format:n.state.selectedCountry.format||""}:{}},n.handleFlagDropdownClick=function(e){if(e.preventDefault(),n.state.showDropdown||!n.props.disabled){var t=n.state,r=t.preferredCountries,o=t.selectedCountry,a=r.concat(n.state.onlyCountries).findIndex((function(e){return e.dialCode===o.dialCode&&e.iso2===o.iso2}));n.setState({showDropdown:!n.state.showDropdown,highlightCountryIndex:a},(function(){n.state.showDropdown&&n.scrollTo(n.getElement(n.state.highlightCountryIndex))}))}},n.handleInput=function(e){var t=e.target.value,r=n.props,o=r.prefix,a=r.onChange,i=n.props.disableCountryCode?"":o,s=n.state.selectedCountry,u=n.state.freezeSelection;if(!n.props.countryCodeEditable){var c=o+(s.hasAreaCodes?n.state.onlyCountries.find((function(e){return e.iso2===s.iso2&&e.mainCode})).dialCode:s.dialCode);if(t.slice(0,c.length)!==c)return}if(t===o)return a&&a("",n.getCountryData(),e,""),n.setState({formattedNumber:""});if(t.replace(/\D/g,"").length>15){if(!1===n.props.enableLongNumbers)return;if("number"==typeof n.props.enableLongNumbers&&t.replace(/\D/g,"").length>n.props.enableLongNumbers)return}if(t!==n.state.formattedNumber){e.preventDefault?e.preventDefault():e.returnValue=!1;var l=n.props.country,f=n.state,d=f.onlyCountries,p=f.selectedCountry,h=f.hiddenAreaCodes;if(a&&e.persist(),t.length>0){var m=t.replace(/\D/g,"");(!n.state.freezeSelection||p.dialCode.length>m.length)&&(s=n.props.disableCountryGuess?p:n.guessSelectedCountry(m.substring(0,6),l,d,h)||p,u=!1),i=n.formatNumber(m,s),s=s.dialCode?s:p}var g=e.target.selectionStart,v=n.state.formattedNumber,b=i.length-v.length;n.setState({formattedNumber:i,freezeSelection:u,selectedCountry:s},(function(){b>0&&(g-=b),")"==i.charAt(i.length-1)?n.numberInputRef.setSelectionRange(i.length-1,i.length-1):g>0&&v.length>=i.length&&n.numberInputRef.setSelectionRange(g,g),a&&a(i.replace(/[^0-9]+/g,""),n.getCountryData(),e,i)}))}},n.handleInputClick=function(e){n.setState({showDropdown:!1}),n.props.onClick&&n.props.onClick(e,n.getCountryData())},n.handleDoubleClick=function(e){var t=e.target.value.length;e.target.setSelectionRange(0,t)},n.handleFlagItemClick=function(e,t){var r=n.state.selectedCountry,o=n.state.onlyCountries.find((function(t){return t==e}));if(o){var a=n.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),i=a.length>1?a.replace(r.dialCode,o.dialCode):o.dialCode,s=n.formatNumber(i.replace(/\D/g,""),o);n.setState({showDropdown:!1,selectedCountry:o,freezeSelection:!0,formattedNumber:s},(function(){n.cursorToEnd(),n.props.onChange&&n.props.onChange(s.replace(/[^0-9]+/g,""),n.getCountryData(),t,s)}))}},n.handleInputFocus=function(e){n.numberInputRef&&n.numberInputRef.value===n.props.prefix&&n.state.selectedCountry&&!n.props.disableCountryCode&&n.setState({formattedNumber:n.props.prefix+n.state.selectedCountry.dialCode},(function(){n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)})),n.setState({placeholder:""}),n.props.onFocus&&n.props.onFocus(e,n.getCountryData()),n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)},n.handleInputBlur=function(e){e.target.value||n.setState({placeholder:n.props.placeholder}),n.props.onBlur&&n.props.onBlur(e,n.getCountryData())},n.handleInputCopy=function(e){if(n.props.copyNumbersOnly){var t=window.getSelection().toString().replace(/[^0-9]+/g,"");e.clipboardData.setData("text/plain",t),e.preventDefault()}},n.getHighlightCountryIndex=function(e){var t=n.state.highlightCountryIndex+e;return t<0||t>=n.state.onlyCountries.length+n.state.preferredCountries.length?t-e:n.props.enableSearch&&t>n.getSearchFilteredCountries().length?0:t},n.searchCountry=function(){var e=n.getProbableCandidate(n.state.queryString)||n.state.onlyCountries[0],t=n.state.onlyCountries.findIndex((function(t){return t==e}))+n.state.preferredCountries.length;n.scrollTo(n.getElement(t),!0),n.setState({queryString:"",highlightCountryIndex:t})},n.handleKeydown=function(e){var t=n.props.keys,r=e.target.className;if(r.includes("selected-flag")&&e.which===t.ENTER&&!n.state.showDropdown)return n.handleFlagDropdownClick(e);if(r.includes("form-control")&&(e.which===t.ENTER||e.which===t.ESC))return e.target.blur();if(n.state.showDropdown&&!n.props.disabled&&(!r.includes("search-box")||e.which===t.UP||e.which===t.DOWN||e.which===t.ENTER||e.which===t.ESC&&""===e.target.value)){e.preventDefault?e.preventDefault():e.returnValue=!1;var o=function(e){n.setState({highlightCountryIndex:n.getHighlightCountryIndex(e)},(function(){n.scrollTo(n.getElement(n.state.highlightCountryIndex),!0)}))};switch(e.which){case t.DOWN:o(1);break;case t.UP:o(-1);break;case t.ENTER:n.props.enableSearch?n.handleFlagItemClick(n.getSearchFilteredCountries()[n.state.highlightCountryIndex]||n.getSearchFilteredCountries()[0],e):n.handleFlagItemClick([].concat(a(n.state.preferredCountries),a(n.state.onlyCountries))[n.state.highlightCountryIndex],e);break;case t.ESC:case t.TAB:n.setState({showDropdown:!1},n.cursorToEnd);break;default:(e.which>=t.A&&e.which<=t.Z||e.which===t.SPACE)&&n.setState({queryString:n.state.queryString+String.fromCharCode(e.which)},n.state.debouncedQueryStingSearcher)}}},n.handleInputKeyDown=function(e){var t=n.props,r=t.keys,o=t.onEnterKeyPress,a=t.onKeyDown;e.which===r.ENTER&&o&&o(e),a&&a(e)},n.handleClickOutside=function(e){n.dropdownRef&&!n.dropdownContainerRef.contains(e.target)&&n.state.showDropdown&&n.setState({showDropdown:!1})},n.handleSearchChange=function(e){var t=e.currentTarget.value,r=n.state,o=r.preferredCountries,a=r.selectedCountry,i=0;if(""===t&&a){var s=n.state.onlyCountries;i=o.concat(s).findIndex((function(e){return e==a})),setTimeout((function(){return n.scrollTo(n.getElement(i))}),100)}n.setState({searchValue:t,highlightCountryIndex:i})},n.getDropdownCountryName=function(e){return e.localName||e.name},n.getSearchFilteredCountries=function(){var e=n.state,t=e.preferredCountries,r=e.onlyCountries,o=e.searchValue,i=n.props.enableSearch,s=t.concat(r),u=o.trim().toLowerCase();if(i&&u){if(/^\d+$/.test(u))return s.filter((function(e){var t=e.dialCode;return["".concat(t)].some((function(e){return e.toLowerCase().includes(u)}))}));var c=s.filter((function(e){var t=e.iso2;return["".concat(t)].some((function(e){return e.toLowerCase().includes(u)}))})),l=s.filter((function(e){var t=e.name,n=e.localName;return e.iso2,["".concat(t),"".concat(n||"")].some((function(e){return e.toLowerCase().includes(u)}))}));return n.scrollToTop(),a(new Set([].concat(c,l)))}return s},n.getCountryDropdownList=function(){var e,t=n.state,o=t.preferredCountries,a=t.highlightCountryIndex,i=t.showDropdown,s=t.searchValue,u=n.props,c=u.disableDropdown,l=u.prefix,f=n.props,d=f.enableSearch,p=f.searchNotFound,h=f.disableSearchIcon,m=f.searchClass,v=f.searchStyle,b=f.searchPlaceholder,y=f.autocompleteSearch,w=n.getSearchFilteredCountries().map((function(e,t){var r=a===t,o=S()({country:!0,preferred:"us"===e.iso2||"gb"===e.iso2,active:"us"===e.iso2,highlight:r}),i="flag ".concat(e.iso2);return g.a.createElement("li",Object.assign({ref:function(e){return n["flag_no_".concat(t)]=e},key:"flag_no_".concat(t),"data-flag-key":"flag_no_".concat(t),className:o,"data-dial-code":"1",tabIndex:c?"-1":"0","data-country-code":e.iso2,onClick:function(t){return n.handleFlagItemClick(e,t)},role:"option"},r?{"aria-selected":!0}:{}),g.a.createElement("div",{className:i}),g.a.createElement("span",{className:"country-name"},n.getDropdownCountryName(e)),g.a.createElement("span",{className:"dial-code"},e.format?n.formatNumber(e.dialCode,e):l+e.dialCode))})),C=g.a.createElement("li",{key:"dashes",className:"divider"});o.length>0&&(!d||d&&!s.trim())&&w.splice(o.length,0,C);var O=S()((r(e={},n.props.dropdownClass,!0),r(e,"country-list",!0),r(e,"hide",!i),e));return g.a.createElement("ul",{ref:function(e){return!d&&e&&e.focus(),n.dropdownRef=e},className:O,style:n.props.dropdownStyle,role:"listbox",tabIndex:"0"},d&&g.a.createElement("li",{className:S()(r({search:!0},m,m))},!h&&g.a.createElement("span",{className:S()(r({"search-emoji":!0},"".concat(m,"-emoji"),m)),role:"img","aria-label":"Magnifying glass"},"🔎"),g.a.createElement("input",{className:S()(r({"search-box":!0},"".concat(m,"-box"),m)),style:v,type:"search",placeholder:b,autoFocus:!0,autoComplete:y?"on":"off",value:s,onChange:n.handleSearchChange})),w.length>0?w:g.a.createElement("li",{className:"no-entries-message"},g.a.createElement("span",null,p)))};var c,l=new I(e.enableAreaCodes,e.enableTerritories,e.regions,e.onlyCountries,e.preferredCountries,e.excludeCountries,e.preserveOrder,e.masks,e.priority,e.areaCodes,e.localization,e.prefix,e.defaultMask,e.alwaysDefaultMask),h=l.onlyCountries,m=l.preferredCountries,v=l.hiddenAreaCodes,y=e.value?e.value.replace(/\D/g,""):"";c=e.disableInitialCountryGuess?0:y.length>1?n.guessSelectedCountry(y.substring(0,6),e.country,h,v)||0:e.country&&h.find((function(t){return t.iso2==e.country}))||0;var C,x=y.length<2&&c&&!D()(y,c.dialCode)?c.dialCode:"";C=""===y&&0===c?"":n.formatNumber((e.disableCountryCode?"":x)+y,c.name?c:void 0);var k=h.findIndex((function(e){return e==c}));return n.state={showDropdown:e.showDropdown,formattedNumber:C,onlyCountries:h,preferredCountries:m,hiddenAreaCodes:v,selectedCountry:c,highlightCountryIndex:k,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:b()(n.searchCountry,250),searchValue:""},n}var n,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(l=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(e,t,n){e.country!==this.props.country?this.updateCountry(this.props.country):e.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(e){if(null===e)return this.setState({selectedCountry:0,formattedNumber:""});var t=this.state,n=t.onlyCountries,r=t.selectedCountry,o=t.hiddenAreaCodes,a=this.props,i=a.country,s=a.prefix;if(""===e)return this.setState({selectedCountry:r,formattedNumber:""});var u,c,l=e.replace(/\D/g,"");if(r&&D()(e,s+r.dialCode))c=this.formatNumber(l,r),this.setState({formattedNumber:c});else{var f=(u=this.props.disableCountryGuess?r:this.guessSelectedCountry(l.substring(0,6),i,n,o)||r)&&D()(l,s+u.dialCode)?u.dialCode:"";c=this.formatNumber((this.props.disableCountryCode?"":f)+l,u||void 0),this.setState({selectedCountry:u,formattedNumber:c})}}},{key:"render",value:function(){var e,t,n,o,a,i=this,s=this.state,u=s.onlyCountries,c=s.selectedCountry,l=s.showDropdown,f=s.formattedNumber,d=s.hiddenAreaCodes,p=this.props,h=p.disableDropdown,m=p.renderStringAsFlag,v=p.isValid,b=p.defaultErrorMessage,y=p.specialLabel;if("boolean"==typeof v)o=v;else{var w=v(f.replace(/\D/g,""),c,u,d);"boolean"==typeof w?!1===(o=w)&&(a=b):(o=!1,a=w)}var C=S()((r(e={},this.props.containerClass,!0),r(e,"react-tel-input",!0),e)),O=S()({arrow:!0,up:l}),x=S()((r(t={},this.props.inputClass,!0),r(t,"form-control",!0),r(t,"invalid-number",!o),r(t,"open",l),t)),D=S()({"selected-flag":!0,open:l}),k=S()((r(n={},this.props.buttonClass,!0),r(n,"flag-dropdown",!0),r(n,"invalid-number",!o),r(n,"open",l),n)),E="flag ".concat(c&&c.iso2);return g.a.createElement("div",{className:C,style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},y&&g.a.createElement("div",{className:"special-label"},y),a&&g.a.createElement("div",{className:"invalid-number-message"},a),g.a.createElement("input",Object.assign({className:x,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:f,ref:function(e){return i.numberInputRef=e},onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps)),g.a.createElement("div",{className:k,style:this.props.buttonStyle,ref:function(e){return i.dropdownContainerRef=e}},m?g.a.createElement("div",{className:D},m):g.a.createElement("div",{onClick:h?void 0:this.handleFlagDropdownClick,className:D,title:c?"".concat(c.name,": + ").concat(c.dialCode):"",tabIndex:h?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!l||void 0},g.a.createElement("div",{className:E},!h&&g.a.createElement("div",{className:O}))),l&&this.getCountryDropdownList()))}}])&&c(n.prototype,l),t}(g.a.Component);R.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},t["default"]=R}])},73:function(e,t,n){var r;e.exports=(r=n(804),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(2)},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,r,o,a){n(this,e),this.startPoint=t,this.control1=r,this.control2=o,this.endPoint=a}return r(e,[{key:"length",value:function(){var e,t,n,r,o,a,i,s,u=10,c=0;for(e=0;u>=e;e++)t=e/u,n=this._point(t,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),r=this._point(t,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y),e>0&&(i=n-o,s=r-a,c+=Math.sqrt(i*i+s*s)),o=n,a=r;return c}},{key:"_point",value:function(e,t,n,r,o){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+o*e*e*e}}]),e}();t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(i)}var c=Object.getPrototypeOf(o);if(null===c)return;e=c,t=a,n=i,r=!0}},u=r(n(4)),c=r(n(1)),l=r(n(3)),f=function(e){function t(e){o(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.velocityFilterWeight=this.props.velocityFilterWeight||.7,this.minWidth=this.props.minWidth||.5,this.maxWidth=this.props.maxWidth||2.5,this.dotSize=this.props.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=this.props.penColor||"black",this.backgroundColor=this.props.backgroundColor||"rgba(0,0,0,0)",this.onEnd=this.props.onEnd,this.onBegin=this.props.onBegin}return a(t,e),i(t,[{key:"componentDidMount",value:function(){this._canvas=this.refs.cv,this._ctx=this._canvas.getContext("2d"),this.clear(),this._handleMouseEvents(),this._handleTouchEvents(),this._resizeCanvas()}},{key:"componentWillUnmount",value:function(){this.off()}},{key:"clear",value:function(e){e&&e.preventDefault();var t=this._ctx,n=this._canvas;t.fillStyle=this.backgroundColor,t.clearRect(0,0,n.width,n.height),t.fillRect(0,0,n.width,n.height),this._reset()}},{key:"toDataURL",value:function(e,t){var n=this._canvas;return n.toDataURL.apply(n,arguments)}},{key:"fromDataURL",value:function(e){var t=this,n=new Image,r=window.devicePixelRatio||1,o=this._canvas.width/r,a=this._canvas.height/r;this._reset(),n.src=e,n.onload=function(){t._ctx.drawImage(n,0,0,o,a)},this._isEmpty=!1}},{key:"isEmpty",value:function(){return this._isEmpty}},{key:"_resizeCanvas",value:function(){var e=this._ctx,t=this._canvas,n=Math.max(window.devicePixelRatio||1,1);t.width=t.offsetWidth*n,t.height=t.offsetHeight*n,e.scale(n,n),this._isEmpty=!0}},{key:"_reset",value:function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._isEmpty=!0,this._ctx.fillStyle=this.penColor}},{key:"_handleMouseEvents",value:function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown.bind(this)),this._canvas.addEventListener("mousemove",this._handleMouseMove.bind(this)),document.addEventListener("mouseup",this._handleMouseUp.bind(this)),window.addEventListener("resize",this._resizeCanvas.bind(this))}},{key:"_handleTouchEvents",value:function(){this._canvas.style.msTouchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart.bind(this)),this._canvas.addEventListener("touchmove",this._handleTouchMove.bind(this)),document.addEventListener("touchend",this._handleTouchEnd.bind(this))}},{key:"off",value:function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),document.removeEventListener("touchend",this._handleTouchEnd),window.removeEventListener("resize",this._resizeCanvas)}},{key:"_handleMouseDown",value:function(e){1===e.which&&(this._mouseButtonDown=!0,this._strokeBegin(e))}},{key:"_handleMouseMove",value:function(e){this._mouseButtonDown&&this._strokeUpdate(e)}},{key:"_handleMouseUp",value:function(e){1===e.which&&this._mouseButtonDown&&(this._mouseButtonDown=!1,this._strokeEnd(e))}},{key:"_handleTouchStart",value:function(e){var t=e.changedTouches[0];this._strokeBegin(t)}},{key:"_handleTouchMove",value:function(e){e.preventDefault();var t=e.changedTouches[0];this._strokeUpdate(t)}},{key:"_handleTouchEnd",value:function(e){e.target===this._canvas&&this._strokeEnd(e)}},{key:"_strokeUpdate",value:function(e){var t=this._createPoint(e);this._addPoint(t)}},{key:"_strokeBegin",value:function(e){this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)}},{key:"_strokeDraw",value:function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()}},{key:"_strokeEnd",value:function(e){var t=this.points.length>2,n=this.points[0];!t&&n&&this._strokeDraw(n),"function"==typeof this.onEnd&&this.onEnd(e)}},{key:"_createPoint",value:function(e){var t=this._canvas.getBoundingClientRect();return new l["default"](e.clientX-t.left,e.clientY-t.top)}},{key:"_addPoint",value:function(e){var t,n,r,o=this.points;o.push(e),o.length>2&&(3===o.length&&o.unshift(o[0]),t=this._calculateCurveControlPoints(o[0],o[1],o[2]).c2,n=this._calculateCurveControlPoints(o[1],o[2],o[3]).c1,r=new c["default"](o[1],t,n,o[2]),this._addCurve(r),o.shift())}},{key:"_calculateCurveControlPoints",value:function(e,t,n){var r=e.x-t.x,o=e.y-t.y,a=t.x-n.x,i=t.y-n.y,s={x:(e.x+t.x)/2,y:(e.y+t.y)/2},u={x:(t.x+n.x)/2,y:(t.y+n.y)/2},c=Math.sqrt(r*r+o*o),f=Math.sqrt(a*a+i*i),d=s.x-u.x,p=s.y-u.y,h=f/(c+f),m={x:u.x+d*h,y:u.y+p*h},g=t.x-m.x,v=t.y-m.y;return{c1:new l["default"](s.x+g,s.y+v),c2:new l["default"](u.x+g,u.y+v)}}},{key:"_addCurve",value:function(e){var t,n,r=e.startPoint;t=e.endPoint.velocityFrom(r),t=this.velocityFilterWeight*t+(1-this.velocityFilterWeight)*this._lastVelocity,n=this._strokeWidth(t),this._drawCurve(e,this._lastWidth,n),this._lastVelocity=t,this._lastWidth=n}},{key:"_drawPoint",value:function(e,t,n){var r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}},{key:"_drawCurve",value:function(e,t,n){var r,o,a,i,s,u,c,l,f,d,p,h=this._ctx,m=n-t;for(r=Math.floor(e.length()),h.beginPath(),a=0;r>a;a++)u=(s=(i=a/r)*i)*i,d=(f=(l=(c=1-i)*c)*c)*e.startPoint.x,d+=3*l*i*e.control1.x,d+=3*c*s*e.control2.x,d+=u*e.endPoint.x,p=f*e.startPoint.y,p+=3*l*i*e.control1.y,p+=3*c*s*e.control2.y,p+=u*e.endPoint.y,o=t+u*m,this._drawPoint(d,p,o);h.closePath(),h.fill()}},{key:"_strokeWidth",value:function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)}},{key:"render",value:function(){return u["default"].createElement("div",{id:"signature-pad",className:"m-signature-pad"},u["default"].createElement("div",{className:"m-signature-pad--body"},u["default"].createElement("canvas",{ref:"cv"})),this.props.clearButton&&u["default"].createElement("div",{className:"m-signature-pad--footer"},u["default"].createElement("button",{className:"btn btn-default button clear",onClick:this.clear.bind(this)},"Clear")))}}]),t}(u["default"].Component);t["default"]=f,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,r,o){n(this,e),this.x=t,this.y=r,this.time=o||(new Date).getTime()}return r(e,[{key:"velocityFrom",value:function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1}},{key:"distanceTo",value:function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}}]),e}();t["default"]=o,e.exports=t["default"]},function(e,t){e.exports=r}]))},804:function(e){"use strict";e.exports=React}},t={};function n(r){var o=t[r];if(o!==undefined)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=n(804),t=n.n(e),r=e=>e instanceof HTMLElement;const o="blur",a="change",i="input",s="onBlur",u="onChange",c="onSubmit",l="onTouched",f="all",d="undefined",p="max",h="min",m="maxLength",g="minLength",v="pattern",b="required",y="validate";var w=e=>null==e;const C=e=>"object"==typeof e;var O=e=>!w(e)&&!Array.isArray(e)&&C(e)&&!(e instanceof Date),x=e=>/^\w*$/.test(e),D=e=>e.filter(Boolean),k=e=>D(e.replace(/["|']/g,"").replace(/\[/g,".").replace(/\]/g,"").split("."));function S(e,t,n){let r=-1;const o=x(t)?[t]:k(t),a=o.length,i=a-1;for(;++r<a;){const t=o[r];let a=n;if(r!==i){const n=e[t];a=O(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=a,e=e[t]}return e}var E=(e,t={})=>{for(const n in e)x(n)?t[n]=e[n]:S(t,n,e[n]);return t},M=e=>e===undefined,_=(e={},t,n)=>{const r=D(t.split(/[,[\].]+?/)).reduce(((e,t)=>w(e)?e:e[t]),e);return M(r)||r===e?M(e[t])?n:e[t]:r},P=(e,t)=>{r(e)&&e.removeEventListener&&(e.removeEventListener(i,t),e.removeEventListener(a,t),e.removeEventListener(o,t))};const j={isValid:!1,value:""};var T=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.ref.checked?{isValid:!0,value:t.ref.value}:e),j):j,A=e=>"radio"===e.type,I=e=>"file"===e.type,R=e=>"checkbox"===e.type,N=e=>"select-multiple"===e.type;const L={value:!1,isValid:!1},V={value:!0,isValid:!0};var F=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.ref.checked)).map((({ref:{value:e}})=>e));return{value:t,isValid:!!t.length}}const{checked:t,value:n,attributes:r}=e[0].ref;return t?r&&!M(r.value)?M(n)||""===n?V:{value:n,isValid:!0}:V:L}return L};function H(e,t,n,r){const o=e.current[t];if(o){const{ref:{value:e,disabled:t},ref:n,valueAsNumber:i,valueAsDate:s,setValueAs:u}=o;if(t&&r)return;return I(n)?n.files:A(n)?T(o.options).value:N(n)?(a=n.options,[...a].filter((({selected:e})=>e)).map((({value:e})=>e))):R(n)?F(o.options).value:i?+e:s?n.valueAsDate:u?u(e):e}var a;if(n)return _(n.current,t)}function U(e){return!e||e instanceof HTMLElement&&e.nodeType!==Node.DOCUMENT_NODE&&U(e.parentNode)}var W=e=>O(e)&&!Object.keys(e).length,z=e=>"boolean"==typeof e;function B(e,t){const n=x(t)?[t]:k(t),r=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=M(e)?r++:e[t[r++]];return e}(e,n),o=n[n.length-1];let a;r&&delete r[o];for(let t=0;t<n.slice(0,-1).length;t++){let r,o=-1;const i=n.slice(0,-(t+1)),s=i.length-1;for(t>0&&(a=e);++o<i.length;){const t=i[o];r=r?r[t]:e[t],s===o&&(O(r)&&W(r)||Array.isArray(r)&&!r.filter((e=>O(e)&&!W(e)||z(e))).length)&&(a?delete a[t]:delete e[t]),a=r}}return e}const Y=(e,t)=>e&&e.ref===t;var q=e=>w(e)||!C(e);function K(e,t){if(q(e)||q(t))return t;for(const r in t){const o=e[r],a=t[r];try{e[r]=O(o)&&O(a)||Array.isArray(o)&&Array.isArray(a)?K(o,a):a}catch(n){}}return e}function $(e,t,n,r,o){let a=-1;for(;++a<e.length;){for(const r in e[a])Array.isArray(e[a][r])?(!n[a]&&(n[a]={}),n[a][r]=[],$(e[a][r],_(t[a]||{},r,[]),n[a][r],n[a],r)):_(t[a]||{},r)===e[a][r]?S(n[a]||{},r):n[a]=Object.assign(Object.assign({},n[a]),{[r]:!0});r&&!n.length&&delete r[o]}return n}var G=(e,t,n)=>K($(e,t,n),$(t,e,n)),J=e=>"string"==typeof e,Q=(e,t,n,r,o)=>{const a={};for(const t in e.current)(M(o)||(J(o)?t.startsWith(o):Array.isArray(o)&&o.find((e=>t.startsWith(e)))))&&(a[t]=H(e,t,undefined,r));return n?E(a):K(t,E(a))};function X(t,n,r){if(q(t)||q(n)||t instanceof Date||n instanceof Date)return t===n;if(!(0,e.isValidElement)(t)){const e=Object.keys(t),o=Object.keys(n);if(e.length!==o.length)return!1;for(const o of e){const e=t[o];if(!r||"ref"!==o){const t=n[o];if((O(e)||Array.isArray(e))&&(O(t)||Array.isArray(t))?!X(e,t,r):e!==t)return!1}}}return!0}var Z=e=>e instanceof RegExp,ee=e=>O(e)&&!Z(e)?e:{value:e,message:""},te=e=>"function"==typeof e,ne=t=>J(t)||(0,e.isValidElement)(t);function re(e,t,n="validate"){if(ne(e)||z(e)&&!e)return{type:n,message:ne(e)?e:"",ref:t}}var oe=(e,t,n,r,o)=>t?Object.assign(Object.assign({},n[e]),{types:Object.assign(Object.assign({},n[e]&&n[e].types?n[e].types:{}),{[r]:o||!0})}):{},ae=async(e,t,{ref:n,ref:{value:r},options:o,required:a,maxLength:i,minLength:s,min:u,max:c,pattern:l,validate:f},d)=>{const C=n.name,x={},D=A(n),k=R(n),S=D||k,E=""===r,M=oe.bind(null,C,t,x),_=(e,t,r,o=m,a=g)=>{const i=e?t:r;x[C]=Object.assign({type:e?o:a,message:i,ref:n},M(e?o:a,i))};if(a&&(!D&&!k&&(E||w(r))||z(r)&&!r||k&&!F(o).isValid||D&&!T(o).isValid)){const{value:r,message:o}=ne(a)?{value:!!a,message:a}:ee(a);if(r&&(x[C]=Object.assign({type:b,message:o,ref:S?((e.current[C].options||[])[0]||{}).ref:n},M(b,o)),!t))return x}if(!(w(u)&&w(c)||""===r)){let e,o;const a=ee(c),i=ee(u);if(isNaN(r)){const t=n.valueAsDate||new Date(r);J(a.value)&&(e=t>new Date(a.value)),J(i.value)&&(o=t<new Date(i.value))}else{const t=n.valueAsNumber||parseFloat(r);w(a.value)||(e=t>a.value),w(i.value)||(o=t<i.value)}if((e||o)&&(_(!!e,a.message,i.message,p,h),!t))return x}if(J(r)&&!E&&(i||s)){const e=ee(i),n=ee(s),o=!w(e.value)&&r.length>e.value,a=!w(n.value)&&r.length<n.value;if((o||a)&&(_(o,e.message,n.message),!t))return x}if(l&&!E){const{value:e,message:o}=ee(l);if(Z(e)&&!e.test(r)&&(x[C]=Object.assign({type:v,message:o,ref:n},M(v,o)),!t))return x}if(f){const r=H(e,C,d),a=S&&o?o[0].ref:n;if(te(f)){const e=re(await f(r),a);if(e&&(x[C]=Object.assign(Object.assign({},e),M(y,e.message)),!t))return x}else if(O(f)){let e={};for(const[n,o]of Object.entries(f)){if(!W(e)&&!t)break;const i=re(await o(r),a,n);i&&(e=Object.assign(Object.assign({},i),M(n,i.message)),t&&(x[C]=e))}if(!W(e)&&(x[C]=Object.assign({ref:a},e),!t))return x}}return x};const ie=(e,t,n=[])=>{for(const r in t){const o=e+(O(t)?`.${r}`:`[${r}]`);q(t[r])?n.push(o):ie(o,t[r],n)}return n};var se=(e,t,n,r,o)=>{let a=undefined;return n.add(t),W(e)||(a=_(e,t),(O(a)||Array.isArray(a))&&ie(t,a).forEach((e=>n.add(e)))),M(a)?o?r:_(r,t):a},ue=({isOnBlur:e,isOnChange:t,isOnTouch:n,isTouched:r,isReValidateOnBlur:o,isReValidateOnChange:a,isBlurEvent:i,isSubmitted:s,isOnAll:u})=>!u&&(!s&&n?!(r||i):(s?o:e)?!i:!(s?a:t)||i),ce=e=>e.substring(0,e.indexOf("["));const le=(e,t)=>RegExp(`^${t}([|.)\\d+`.replace(/\[/g,"\\[").replace(/\]/g,"\\]")).test(e);var fe=(e,t)=>[...e].some((e=>le(t,e)));var de=typeof window!==d&&typeof document!==d;function pe(e){let t;if(q(e)||de&&e instanceof File)return e;if(e instanceof Date)return t=new Date(e.getTime()),t;if(e instanceof Set){t=new Set;for(const n of e)t.add(n);return t}if(e instanceof Map){t=new Map;for(const n of e.keys())t.set(n,pe(e.get(n)));return t}t=Array.isArray(e)?[]:{};for(const n in e)t[n]=pe(e[n]);return t}var he=e=>({isOnSubmit:!e||e===c,isOnBlur:e===s,isOnChange:e===u,isOnAll:e===f,isOnTouch:e===l}),me=e=>A(e)||R(e);const ge=typeof window===d,ve=de?"Proxy"in window:typeof Proxy!==d;function be({mode:t=c,reValidateMode:n=u,resolver:s,context:l,defaultValues:d={},shouldFocusError:p=!0,shouldUnregister:h=!0,criteriaMode:m}={}){const g=(0,e.useRef)({}),v=(0,e.useRef)({}),b=(0,e.useRef)({}),y=(0,e.useRef)(new Set),C=(0,e.useRef)({}),k=(0,e.useRef)({}),j=(0,e.useRef)({}),T=(0,e.useRef)({}),L=(0,e.useRef)(d),V=(0,e.useRef)({}),F=(0,e.useRef)(!1),z=(0,e.useRef)(!1),K=(0,e.useRef)(),$=(0,e.useRef)({}),Z=(0,e.useRef)({}),ee=(0,e.useRef)(l),ne=(0,e.useRef)(s),re=(0,e.useRef)(new Set),oe=(0,e.useRef)(he(t)),{isOnSubmit:le,isOnTouch:be}=oe.current,ye=m===f,[we,Ce]=(0,e.useState)({isDirty:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touched:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!le,errors:{}}),Oe=(0,e.useRef)({isDirty:!ve,dirtyFields:!ve,touched:!ve||be,isSubmitting:!ve,isValid:!ve}),xe=(0,e.useRef)(we),De=(0,e.useRef)(),{isOnBlur:ke,isOnChange:Se}=(0,e.useRef)(he(n)).current;ee.current=l,ne.current=s,xe.current=we,$.current=h?{}:W($.current)?pe(d):$.current;const Ee=(0,e.useCallback)(((e={})=>{F.current||(xe.current=Object.assign(Object.assign({},xe.current),e),Ce(xe.current))}),[]),Me=(0,e.useCallback)(((e,t,n=!1,r={},o)=>{let a=n||(({errors:e,name:t,error:n,validFields:r,fieldsWithValidation:o})=>{const a=M(n),i=_(e,t);return a&&!!i||!a&&!X(i,n,!0)||a&&_(o,t)&&!_(r,t)})({errors:xe.current.errors,error:t,name:e,validFields:T.current,fieldsWithValidation:j.current});const i=_(xe.current.errors,e);t?(B(T.current,e),a=a||!i||!X(i,t,!0),S(xe.current.errors,e,t)):((_(j.current,e)||ne.current)&&(S(T.current,e,!0),a=a||i),B(xe.current.errors,e)),(a&&!w(n)||!W(r))&&Ee(Object.assign(Object.assign({},r),ne.current?{isValid:!!o}:{}))}),[]),_e=(0,e.useCallback)(((e,t)=>{const{ref:n,options:o}=g.current[e],a=de&&r(n)&&w(t)?"":t;A(n)?(o||[]).forEach((({ref:e})=>e.checked=e.value===a)):I(n)&&!J(a)?n.files=a:N(n)?[...n.options].forEach((e=>e.selected=a.includes(e.value))):R(n)&&o?o.length>1?o.forEach((({ref:e})=>e.checked=Array.isArray(a)?!!a.find((t=>t===e.value)):a===e.value)):o[0].ref.checked=!!a:n.value=a}),[]),Pe=(0,e.useCallback)(((e,t)=>{if(Oe.current.isDirty){const n=He();return e&&t&&S(n,e,t),!X(n,W(L.current)?V.current:L.current)}return!1}),[]),je=(0,e.useCallback)(((e,t=!0)=>{if(Oe.current.isDirty||Oe.current.dirtyFields){const n=!X(_(V.current,e),H(g,e,$)),r=_(xe.current.dirtyFields,e),o=xe.current.isDirty;n?S(xe.current.dirtyFields,e,!0):B(xe.current.dirtyFields,e);const a={isDirty:Pe(),dirtyFields:xe.current.dirtyFields},i=Oe.current.isDirty&&o!==a.isDirty||Oe.current.dirtyFields&&r!==_(xe.current.dirtyFields,e);return i&&t&&Ee(a),i?a:{}}return{}}),[]),Te=(0,e.useCallback)((async(e,t)=>{const n=(await ae(g,ye,g.current[e],$))[e];return Me(e,n,t),M(n)}),[Me,ye]),Ae=(0,e.useCallback)((async e=>{const{errors:t}=await ne.current(He(),ee.current,ye),n=xe.current.isValid;if(Array.isArray(e)){const n=e.map((e=>{const n=_(t,e);return n?S(xe.current.errors,e,n):B(xe.current.errors,e),!n})).every(Boolean);return Ee({isValid:W(t)}),n}{const r=_(t,e);return Me(e,r,n!==W(t),{},W(t)),!r}}),[Me,ye]),Ie=(0,e.useCallback)((async e=>{const t=e||Object.keys(g.current);if(ne.current)return Ae(t);if(Array.isArray(t)){!e&&(xe.current.errors={});const n=await Promise.all(t.map((async e=>await Te(e,null))));return Ee(),n.every(Boolean)}return await Te(t)}),[Ae,Te]),Re=(0,e.useCallback)(((e,t,{shouldDirty:n,shouldValidate:r})=>{const o={};S(o,e,t);for(const a of ie(e,t))g.current[a]&&(_e(a,_(o,a)),n&&je(a),r&&Ie(a))}),[Ie,_e,je]),Ne=(0,e.useCallback)(((e,t,n)=>{!q(t)&&S($.current,e,pe(t)),g.current[e]?(_e(e,t),n.shouldDirty&&je(e),n.shouldValidate&&Ie(e)):q(t)||(Re(e,t,n),re.current.has(e)&&(v.current[e]=t,Z.current[e]({[e]:t}),(Oe.current.isDirty||Oe.current.dirtyFields)&&n.shouldDirty&&(S(xe.current.dirtyFields,e,G(t,_(L.current,e,[]),_(xe.current.dirtyFields,e,[]))),Ee({isDirty:!X(Object.assign(Object.assign({},He()),{[e]:t}),L.current)})))),!h&&S($.current,e,t)}),[je,_e,Re]),Le=e=>z.current||y.current.has(e)||y.current.has((e.match(/\w+/)||[])[0]),Ve=(e,t=!0)=>{if(!W(C.current))for(const n in C.current)e&&C.current[n].size&&!C.current[n].has(e)&&!C.current[n].has(ce(e))||(k.current[n](),t=!1);return t};function Fe(e){if(!h){let t=pe(e);for(const e of re.current)x(e)&&!t[e]&&(t=Object.assign(Object.assign({},t),{[e]:[]}));return t}return e}function He(e){if(J(e))return H(g,e,$);if(Array.isArray(e)){const t={};for(const n of e)S(t,n,H(g,n,$));return t}return Fe(Q(g,pe($.current),h))}K.current=K.current?K.current:async({type:e,target:t})=>{let n=t.name;const r=g.current[n];let a,i;if(r){const s=e===o,u=ue(Object.assign({isBlurEvent:s,isReValidateOnChange:Se,isReValidateOnBlur:ke,isTouched:!!_(xe.current.touched,n),isSubmitted:xe.current.isSubmitted},oe.current));let c=je(n,!1),l=!W(c)||Le(n);if(s&&!_(xe.current.touched,n)&&Oe.current.touched&&(S(xe.current.touched,n,!0),c=Object.assign(Object.assign({},c),{touched:xe.current.touched})),!h&&R(t)&&S($.current,n,H(g,n)),u)return Ve(n),(!W(c)||l&&W(c))&&Ee(c);if(ne.current){const{errors:e}=await ne.current(He(),ee.current,ye),r=xe.current.isValid;if(a=_(e,n),R(t)&&!a&&ne.current){const t=ce(n),r=_(e,t,{});r.type&&r.message&&(a=r),t&&(r||_(xe.current.errors,t))&&(n=t)}i=W(e),r!==i&&(l=!0)}else a=(await ae(g,ye,r,$))[n];Ve(n),Me(n,a,l,c,i)}};const Ue=(0,e.useCallback)((async(e={})=>{const{errors:t}=await ne.current(Object.assign(Object.assign({},He()),e),ee.current,ye),n=W(t);xe.current.isValid!==n&&Ee({isValid:n})}),[ye]),We=(0,e.useCallback)(((e,t)=>function(e,t,n,r,o,a){const{ref:i,ref:{name:s}}=n,u=e.current[s];if(!o){const t=H(e,s,r);!M(t)&&S(r.current,s,t)}i.type&&u?A(i)||R(i)?Array.isArray(u.options)&&u.options.length?(D(u.options).forEach(((e={},n)=>{(U(e.ref)&&Y(e,e.ref)||a)&&(P(e.ref,t),B(u.options,`[${n}]`))})),u.options&&!D(u.options).length&&delete e.current[s]):delete e.current[s]:(U(i)&&Y(u,i)||a)&&(P(i,t),delete e.current[s]):delete e.current[s]}(g,K.current,e,$,h,t)),[h]),ze=(0,e.useCallback)((e=>{if(z.current)Ee();else{for(const t of y.current)if(t.startsWith(e)){Ee();break}Ve(e)}}),[]),Be=(0,e.useCallback)(((e,t)=>{e&&(We(e,t),h&&!D(e.options||[]).length&&(B(V.current,e.ref.name),B(T.current,e.ref.name),B(j.current,e.ref.name),B(xe.current.errors,e.ref.name),S(xe.current.dirtyFields,e.ref.name,!0),Ee({isDirty:Pe()}),Oe.current.isValid&&ne.current&&Ue(),ze(e.ref.name)))}),[Ue,We]);const Ye=(0,e.useCallback)(((e,t,n)=>{const r=n?C.current[n]:y.current;let o=Q(g,pe($.current),h,!1,e);if(J(e)){if(re.current.has(e)){const t=_(b.current,e,[]);o=t.length&&t.length===D(_(o,e,[])).length?o:b.current}return se(o,e,r,M(_(L.current,e))?t:_(L.current,e),!0)}const a=M(t)?L.current:t;return Array.isArray(e)?e.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:se(o,t,r,a)})),{}):(z.current=M(n),E(!W(o)&&o||a))}),[]);function qe(e,t={}){const{name:n,type:s,value:u}=e,c=Object.assign({ref:e},t),l=g.current,f=me(e),d=fe(re.current,n),p=t=>de&&(!r(e)||t===e);let h,m=l[n],v=!0;if(m&&(f?Array.isArray(m.options)&&D(m.options).find((e=>u===e.ref.value&&p(e.ref))):p(m.ref)))return void(l[n]=Object.assign(Object.assign({},m),t));m=s?f?Object.assign({options:[...D(m&&m.options||[]),{ref:e}],ref:{type:s,name:n}},t):Object.assign({},c):c,l[n]=m;const b=M(_($.current,n));if(W(L.current)&&b||(h=_(b?L.current:$.current,n),v=M(h),v||d||_e(n,h)),W(t)||(S(j.current,n,!0),!le&&Oe.current.isValid&&ae(g,ye,m,$).then((e=>{const t=xe.current.isValid;W(e)?S(T.current,n,!0):B(T.current,n),t!==W(e)&&Ee()}))),!(V.current[n]||d&&v)){const e=H(g,n,$);S(V.current,n,v?O(e)?Object.assign({},e):e:h),!d&&B(xe.current.dirtyFields,n)}s&&function({ref:e},t,n){r(e)&&n&&(e.addEventListener(t?a:i,n),e.addEventListener(o,n))}(f&&m.options?m.options[m.options.length-1]:m,f||"select-one"===e.type,K.current)}const Ke=(0,e.useCallback)(((e,t)=>async n=>{n&&n.preventDefault&&(n.preventDefault(),n.persist());let r={},o=Fe(Q(g,pe($.current),h,!0));Oe.current.isSubmitting&&Ee({isSubmitting:!0});try{if(ne.current){const{errors:e,values:t}=await ne.current(o,ee.current,ye);xe.current.errors=r=e,o=t}else for(const e of Object.values(g.current))if(e){const{name:t}=e.ref,n=await ae(g,ye,e,$);n[t]?(S(r,t,n[t]),B(T.current,t)):_(j.current,t)&&(B(xe.current.errors,t),S(T.current,t,!0))}W(r)&&Object.keys(xe.current.errors).every((e=>e in g.current))?(Ee({errors:{},isSubmitting:!0}),await e(o,n)):(xe.current.errors=Object.assign(Object.assign({},xe.current.errors),r),t&&await t(xe.current.errors,n),p&&((e,t)=>{for(const n in e)if(_(t,n)){const t=e[n];if(t){if(t.ref.focus&&M(t.ref.focus()))break;if(t.options){t.options[0].ref.focus();break}}}})(g.current,xe.current.errors))}finally{xe.current.isSubmitting=!1,Ee({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:W(xe.current.errors),submitCount:xe.current.submitCount+1})}}),[p,ye]);(0,e.useEffect)((()=>{s&&Oe.current.isValid&&Ue(),De.current=De.current||!de?De.current:function(e,t){const n=new MutationObserver((()=>{for(const n of Object.values(e.current))if(n&&n.options)for(const e of n.options)e&&e.ref&&U(e.ref)&&t(n);else n&&U(n.ref)&&t(n)}));return n.observe(window.document,{childList:!0,subtree:!0}),n}(g,Be)}),[Be,L.current]),(0,e.useEffect)((()=>()=>{De.current&&De.current.disconnect(),F.current=!0,Object.values(g.current).forEach((e=>Be(e,!0)))}),[]),!s&&Oe.current.isValid&&(we.isValid=X(T.current,j.current)&&W(xe.current.errors));const $e={trigger:Ie,setValue:(0,e.useCallback)((function(e,t,n){Ne(e,t,n||{}),Le(e)&&Ee(),Ve(e)}),[Ne,Ie]),getValues:(0,e.useCallback)(He,[]),register:(0,e.useCallback)((function(e,t){if(!ge)if(J(e))qe({name:e},t);else{if(!O(e)||!("name"in e))return t=>t&&qe(t,e);qe(e,t)}}),[L.current]),unregister:(0,e.useCallback)((function(e){for(const t of Array.isArray(e)?e:[e])Be(g.current[t],!0)}),[]),formState:ve?new Proxy(we,{get:(e,t)=>t in e?(Oe.current[t]=!0,e[t]):undefined}):we},Ge=(0,e.useMemo)((()=>Object.assign({isFormDirty:Pe,updateWatchedValue:ze,shouldUnregister:h,updateFormState:Ee,removeFieldEventListener:We,watchInternal:Ye,mode:oe.current,reValidateMode:{isReValidateOnBlur:ke,isReValidateOnChange:Se},validateResolver:s?Ue:undefined,fieldsRef:g,resetFieldArrayFunctionRef:Z,useWatchFieldsRef:C,useWatchRenderFunctionsRef:k,fieldArrayDefaultValuesRef:v,validFieldsRef:T,fieldsWithValidationRef:j,fieldArrayNamesRef:re,readFormStateRef:Oe,formStateRef:xe,defaultValuesRef:L,shallowFieldsStateRef:$,fieldArrayValuesRef:b},$e)),[L.current,ze,h,We,Ye]);return Object.assign({watch:function(e,t){return Ye(e,t)},control:Ge,handleSubmit:Ke,reset:(0,e.useCallback)(((e,t={})=>{if(de)for(const e of Object.values(g.current))if(e){const{ref:t,options:o}=e,a=me(t)&&Array.isArray(o)?o[0].ref:t;if(r(a))try{a.closest("form").reset();break}catch(n){}}g.current={},L.current=Object.assign({},e||L.current),e&&Ve(""),Object.values(Z.current).forEach((e=>te(e)&&e())),$.current=h?{}:pe(e||L.current),(({errors:e,isDirty:t,isSubmitted:n,touched:r,isValid:o,submitCount:a,dirtyFields:i})=>{o||(T.current={},j.current={}),V.current={},v.current={},y.current=new Set,z.current=!1,Ee({submitCount:a?xe.current.submitCount:0,isDirty:!!t&&xe.current.isDirty,isSubmitted:!!n&&xe.current.isSubmitted,isValid:!!o&&xe.current.isValid,dirtyFields:i?xe.current.dirtyFields:{},touched:r?xe.current.touched:{},errors:e?xe.current.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})})(t)}),[]),clearErrors:(0,e.useCallback)((function(e){e&&(Array.isArray(e)?e:[e]).forEach((e=>g.current[e]&&x(e)?delete xe.current.errors[e]:B(xe.current.errors,e))),Ee({errors:e?xe.current.errors:{}})}),[]),setError:(0,e.useCallback)((function(e,t){const n=(g.current[e]||{}).ref;S(xe.current.errors,e,Object.assign(Object.assign({},t),{ref:n})),Ee({isValid:!1}),t.shouldFocus&&n&&n.focus&&n.focus()}),[]),errors:we.errors},$e)}
13
  /*! *****************************************************************************
14
  Copyright (c) Microsoft Corporation.
15
 
23
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
24
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
25
  PERFORMANCE OF THIS SOFTWARE.
26
+ ***************************************************************************** */const ye=(0,e.createContext)(null);ye.displayName="RHFContext";const we=()=>(0,e.useContext)(ye);var Ce=function(t){var n=t.as,r=t.errors,o=t.name,a=t.message,i=t.render,s=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(t,["as","errors","name","message","render"]),u=we(),c=_(r||u.errors,o);if(!c)return null;var l=c.message,f=c.types,d=Object.assign({},s,{children:l||a});return(0,e.isValidElement)(n)?(0,e.cloneElement)(n,d):i?i({message:l||a,messages:f}):(0,e.createElement)(n||e.Fragment,d)};function Oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(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 De(e,t,n){return t&&xe(e.prototype,t),n&&xe(e,n),e}function ke(e,t){return(ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Se(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ke(e,t)}function Ee(e){return(Ee="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})(e)}function Me(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _e(e,t){return!t||"object"!==Ee(t)&&"function"!=typeof t?Me(e):t}function Pe(e){return(Pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var je=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Te(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||je(r)&&je(o)))return!1;var r,o;return!0}var Ae=function(e,t){var n;void 0===t&&(t=Te);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}};var Ie=function(){function e(e){this.isSpeedy=e.speedy===undefined||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==undefined&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,a?0:o.cssRules.length)}catch(i){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Re=function(e){function t(e,r,u,c,d){for(var p,h,m,g,w,O=0,x=0,D=0,k=0,S=0,T=0,I=m=p=0,N=0,L=0,V=0,F=0,H=u.length,U=H-1,W="",z="",B="",Y="";N<H;){if(h=u.charCodeAt(N),N===U&&0!==x+k+D+O&&(0!==x&&(h=47===x?10:47),k=D=O=0,H++,U++),0===x+k+D+O){if(N===U&&(0<L&&(W=W.replace(f,"")),0<W.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:W+=u.charAt(N)}h=59}switch(h){case 123:for(p=(W=W.trim()).charCodeAt(0),m=1,F=++N;N<H;){switch(h=u.charCodeAt(N)){case 123:m++;break;case 125:m--;break;case 47:switch(h=u.charCodeAt(N+1)){case 42:case 47:e:{for(I=N+1;I<U;++I)switch(u.charCodeAt(I)){case 47:if(42===h&&42===u.charCodeAt(I-1)&&N+2!==I){N=I+1;break e}break;case 10:if(47===h){N=I+1;break e}}N=I}}break;case 91:h++;case 40:h++;case 34:case 39:for(;N++<U&&u.charCodeAt(N)!==h;);}if(0===m)break;N++}switch(m=u.substring(F,N),0===p&&(p=(W=W.replace(l,"").trim()).charCodeAt(0)),p){case 64:switch(0<L&&(W=W.replace(f,"")),h=W.charCodeAt(1)){case 100:case 109:case 115:case 45:L=r;break;default:L=j}if(F=(m=t(r,L,m,h,d+1)).length,0<A&&(w=s(3,m,L=n(j,W,V),r,M,E,F,h,d,c),W=L.join(""),void 0!==w&&0===(F=(m=w.trim()).length)&&(h=0,m="")),0<F)switch(h){case 115:W=W.replace(C,i);case 100:case 109:case 45:m=W+"{"+m+"}";break;case 107:m=(W=W.replace(v,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&a("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=W+m,112===c&&(z+=m,m="")}else m="";break;default:m=t(r,n(r,W,V),m,c,d+1)}B+=m,m=V=L=I=p=0,W="",h=u.charCodeAt(++N);break;case 125:case 59:if(1<(F=(W=(0<L?W.replace(f,""):W).trim()).length))switch(0===I&&(p=W.charCodeAt(0),45===p||96<p&&123>p)&&(F=(W=W.replace(" ",":")).length),0<A&&void 0!==(w=s(1,W,r,e,M,E,z.length,c,d,c))&&0===(F=(W=w.trim()).length)&&(W="\0\0"),p=W.charCodeAt(0),h=W.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){Y+=W+u.charAt(N);break}default:58!==W.charCodeAt(F-1)&&(z+=o(W,p,h,W.charCodeAt(2)))}V=L=I=p=0,W="",h=u.charCodeAt(++N)}}switch(h){case 13:case 10:47===x?x=0:0===1+p&&107!==c&&0<W.length&&(L=1,W+="\0"),0<A*R&&s(0,W,r,e,M,E,z.length,c,d,c),E=1,M++;break;case 59:case 125:if(0===x+k+D+O){E++;break}default:switch(E++,g=u.charAt(N),h){case 9:case 32:if(0===k+O+x)switch(S){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===k+x+O&&(L=V=1,g="\f"+g);break;case 108:if(0===k+x+O+_&&0<I)switch(N-I){case 2:112===S&&58===u.charCodeAt(N-3)&&(_=S);case 8:111===T&&(_=T)}break;case 58:0===k+x+O&&(I=N);break;case 44:0===x+D+k+O&&(L=1,g+="\r");break;case 34:case 39:0===x&&(k=k===h?0:0===k?h:k);break;case 91:0===k+x+D&&O++;break;case 93:0===k+x+D&&O--;break;case 41:0===k+x+O&&D--;break;case 40:if(0===k+x+O){if(0===p)switch(2*S+3*T){case 533:break;default:p=1}D++}break;case 64:0===x+D+k+O+I+m&&(m=1);break;case 42:case 47:if(!(0<k+O+D))switch(x){case 0:switch(2*h+3*u.charCodeAt(N+1)){case 235:x=47;break;case 220:F=N,x=42}break;case 42:47===h&&42===S&&F+2!==N&&(33===u.charCodeAt(F+2)&&(z+=u.substring(F,N+1)),g="",x=0)}}0===x&&(W+=g)}T=S,S=h,N++}if(0<(F=z.length)){if(L=r,0<A&&(void 0!==(w=s(2,z,L,e,M,E,F,c,d,c))&&0===(z=w).length))return Y+z+B;if(z=L.join(",")+"{"+z+"}",0!=P*_){switch(2!==P||a(z,2)||(_=0),_){case 111:z=z.replace(y,":-moz-$1")+z;break;case 112:z=z.replace(b,"::-webkit-input-$1")+z.replace(b,"::-moz-$1")+z.replace(b,":-ms-input-$1")+z}_=0}}return Y+z+B}function n(e,t,n){var o=t.trim().split(m);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<a;++s)t[s]=r(e,t[s],n).trim();break;default:var u=s=0;for(t=[];s<a;++s)for(var c=0;c<i;++c)t[u++]=r(e[c]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var i=e+";",s=2*t+3*n+4*r;if(944===s){e=i.indexOf(":",9)+1;var u=i.substring(e,i.length-1).trim();return u=i.substring(0,e).trim()+u+";",1===P||2===P&&a(u,1)?"-webkit-"+u+u:u}if(0===P||2===P&&!a(i,1))return i;switch(s){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(S,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(u=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+u+i;case 1005:return p.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(t=(u=i.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=i.replace(w,"tb");break;case 232:u=i.replace(w,"tb-rl");break;case 220:u=i.replace(w,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+u+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(u=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:i=i.replace(u,"-webkit-"+u)+";"+i;break;case 207:case 102:i=i.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(u,"-webkit-"+u)+";"+i.replace(u,"-ms-"+u+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return u=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+u+"-ms-flex-"+u+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(x,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(x,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):i.replace(u,"-webkit-"+u)+i.replace(u,"-moz-"+u.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+r&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+i}return i}function a(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?r:r.replace(D,"$1"),n,t)}function i(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,a,i,s,u,l){for(var f,d=0,p=t;d<A;++d)switch(f=T[d].call(c,e,p,n,r,o,a,i,s,u,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function u(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?P=1:(P=2,I=e):P=0),u}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<A){var o=s(-1,n,r,r,M,E,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var a=t(j,r,n,0,0);return 0<A&&(void 0!==(o=s(-2,a,r,r,M,E,a.length,0,0,0))&&(a=o)),"",_=0,E=M=1,a}var l=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,C=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,x=/-self|flex-/g,D=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,E=1,M=1,_=0,P=1,j=[],T=[],A=0,I=null,R=0;return c.use=function N(e){switch(e){case void 0:case null:A=T.length=0;break;default:if("function"==typeof e)T[A++]=e;else if("object"==typeof e)for(var t=0,n=e.length;t<n;++t)N(e[t]);else R=0|!!e}return N},c.set=u,void 0!==e&&u(e),c},Ne="/*|*/";function Le(e){e&&Ve.current.insert(e+"}")}var Ve={current:null},Fe=function(e,t,n,r,o,a,i,s,u,c){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Ve.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+Ne;break;case 3:switch(s){case 102:case 112:return Ve.current.insert(n[0]+t),"";default:return t+(0===c?Ne:"")}case-2:t.split("/*|*/}").forEach(Le)}},He=function(e){e===undefined&&(e={});var t,n=e.key||"css";e.prefix!==undefined&&(t={prefix:e.prefix});var r=new Re(t);var o,a={};o=e.container||document.head;var i,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){a[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(Fe),i=function(e,t,n,o){var a=t.name;Ve.current=n,r(e,t.styles),o&&(u.inserted[a]=!0)};var u={key:n,sheet:new Ie({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:i};return u};function Ue(e,t,n){var r="";return n.split(" ").forEach((function(n){e[n]!==undefined?t.push(e[n]):r+=n+" "})),r}var We=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&e.registered[r]===undefined&&(e.registered[r]=t.styles),e.inserted[t.name]===undefined){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(o!==undefined)}};var ze=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Be={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Ye=/[A-Z]|^ms/g,qe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ke=function(e){return 45===e.charCodeAt(1)},$e=function(e){return null!=e&&"boolean"!=typeof e},Ge=function(e){var t={};return function(n){return t[n]===undefined&&(t[n]=e(n)),t[n]}}((function(e){return Ke(e)?e:e.replace(Ye,"-$&").toLowerCase()})),Je=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(qe,(function(e,t,n){return Xe={name:t,styles:n,next:Xe},t}))}return 1===Be[e]||Ke(e)||"number"!=typeof t||0===t?t:t+"px"};function Qe(e,t,n,r){if(null==n)return"";if(n.__emotion_styles!==undefined)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Xe={name:n.name,styles:n.styles,next:Xe},n.name;if(n.styles!==undefined){var o=n.next;if(o!==undefined)for(;o!==undefined;)Xe={name:o.name,styles:o.styles,next:Xe},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Qe(e,t,n[o],!1);else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&t[i]!==undefined?r+=a+"{"+t[i]+"}":$e(i)&&(r+=Ge(a)+":"+Je(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&t[i[0]]!==undefined){var s=Qe(e,t,i,!1);switch(a){case"animation":case"animationName":r+=Ge(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var u=0;u<i.length;u++)$e(i[u])&&(r+=Ge(a)+":"+Je(a,i[u])+";")}return r}(e,t,n);case"function":if(e!==undefined){var a=Xe,i=n(e);return Xe=a,Qe(e,t,i,r)}break;case"string":}if(null==t)return n;var s=t[n];return s===undefined||r?n:s}var Xe,Ze=/label:\s*([^\s;\n{]+)\s*;/g;var et=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&e[0].styles!==undefined)return e[0];var r=!0,o="";Xe=undefined;var a=e[0];null==a||a.raw===undefined?(r=!1,o+=Qe(n,t,a,!1)):o+=a[0];for(var i=1;i<e.length;i++)o+=Qe(n,t,e[i],46===o.charCodeAt(o.length-1)),r&&(o+=a[i]);Ze.lastIndex=0;for(var s,u="";null!==(s=Ze.exec(o));)u+="-"+s[1];return{name:ze(o)+u,styles:o,next:Xe}},tt=Object.prototype.hasOwnProperty,nt=(0,e.createContext)("undefined"!=typeof HTMLElement?He():null),rt=(0,e.createContext)({}),ot=nt.Provider,at=function(t){var n=function(n,r){return(0,e.createElement)(nt.Consumer,null,(function(e){return t(n,e,r)}))};return(0,e.forwardRef)(n)},it="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",st=function(e,t){var n={};for(var r in t)tt.call(t,r)&&(n[r]=t[r]);return n[it]=e,n},ut=function(t,n,r,o){var a=null===r?n.css:n.css(r);"string"==typeof a&&t.registered[a]!==undefined&&(a=t.registered[a]);var i=n[it],s=[a],u="";"string"==typeof n.className?u=Ue(t.registered,s,n.className):null!=n.className&&(u=n.className+" ");var c=et(s);We(t,c,"string"==typeof i);u+=t.key+"-"+c.name;var l={};for(var f in n)tt.call(n,f)&&"css"!==f&&f!==it&&(l[f]=n[f]);return l.ref=o,l.className=u,(0,e.createElement)(i,l)},ct=at((function(t,n,r){return"function"==typeof t.css?(0,e.createElement)(rt.Consumer,null,(function(e){return ut(n,t,e,r)})):ut(n,t,null,r)}));var lt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return et(t)},ft=function(t,n){var r=arguments;if(null==n||!tt.call(n,"css"))return e.createElement.apply(undefined,r);var o=r.length,a=new Array(o);a[0]=ct,a[1]=st(t,n);for(var i=2;i<o;i++)a[i]=r[i];return e.createElement.apply(null,a)},dt=at((function(t,n){var r=t.styles;if("function"==typeof r)return(0,e.createElement)(rt.Consumer,null,(function(t){var o=et([r(t)]);return(0,e.createElement)(pt,{serialized:o,cache:n})}));var o=et([r]);return(0,e.createElement)(pt,{serialized:o,cache:n})})),pt=function(e){var t,n;function r(t,n,r){return e.call(this,t,n,r)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,ke(t,n);var o=r.prototype;return o.componentDidMount=function(){this.sheet=new Ie({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var e=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==e&&this.sheet.tags.push(e),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},o.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},o.insertStyles=function(){if(this.props.serialized.next!==undefined&&We(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var e=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=e,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},o.componentWillUnmount=function(){this.sheet.flush()},o.render=function(){return null},r}(e.Component),ht=function Xa(e){for(var t=e.length,n=0,r="";n<t;n++){var o=e[n];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=Xa(o);else for(var i in a="",o)o[i]&&i&&(a&&(a+=" "),a+=i);break;default:a=o}a&&(r&&(r+=" "),r+=a)}}return r};function mt(e,t,n){var r=[],o=Ue(e,r,n);return r.length<2?n:o+t(r)}var gt=at((function(t,n){return(0,e.createElement)(rt.Consumer,null,(function(e){var r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=et(t,n.registered);return We(n,o,!1),n.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return mt(n.registered,r,ht(t))},theme:e},a=t.children(o);return!0,a}))})),vt=ReactDOM;function bt(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function yt(e,t){if(null==e)return{};var n,r,o=bt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function wt(){return(wt=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}).apply(this,arguments)}function Ct(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 Ot(e,t){if(e){if("string"==typeof e)return Ct(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)?Ct(e,t):void 0}}function xt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(u){s=!0,o=u}finally{try{i||null==n["return"]||n["return"]()}finally{if(s)throw o}}return a}}(e,t)||Ot(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 Dt(e){return function(e){if(Array.isArray(e))return Ct(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ot(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,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var St=n(639),Et=function(){};function Mt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function _t(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(Mt(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Pt=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Ee(e)&&null!==e?[e]:[]};function jt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Tt(e){return jt(e)?window.pageYOffset:e.scrollTop}function At(e,t){jt(e)?window.scrollTo(0,t):e.scrollTop=t}function It(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Rt(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:200,r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:Et,o=Tt(e),a=t-o,i=10,s=0;function u(){var t=It(s+=i,o,a,n);At(e,t),s<n?window.requestAnimationFrame(u):r(e)}u()}function Nt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function Lt(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 Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ft(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}function Ht(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.theme.spacing,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return o}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var l=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),d=f.bottom,p=f.height,h=f.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,v=Tt(u),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=m-y,C=g-h,O=w+v,x=l-v-h,D=d-g+v+b,k=v+h-y,S=160;switch(o){case"auto":case"bottom":if(C>=p)return{placement:"bottom",maxHeight:t};if(x>=p&&!i)return a&&Rt(u,D,S),{placement:"bottom",maxHeight:t};if(!i&&x>=r||i&&C>=r)return a&&Rt(u,D,S),{placement:"bottom",maxHeight:i?C-b:x-b};if("auto"===o||i){var E=t,M=i?w:O;return M>=r&&(E=Math.min(M-b-s.controlHeight,t)),{placement:"top",maxHeight:E}}if("bottom"===o)return At(u,D),{placement:"bottom",maxHeight:t};break;case"top":if(w>=p)return{placement:"top",maxHeight:t};if(O>=p&&!i)return a&&Rt(u,k,S),{placement:"top",maxHeight:t};if(!i&&O>=r||i&&w>=r){var _=t;return(!i&&O>=r||i&&w>=r)&&(_=i?w-y:O-y),a&&Rt(u,k,S),{placement:"top",maxHeight:_}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var Ut=function(e){return"auto"===e?"bottom":e},Wt=(0,e.createContext)({getPortalPlacement:null}),zt=function(e){Se(n,e);var t=Ft(n);function n(){var e;Oe(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,a=n.menuPlacement,i=n.menuPosition,s=n.menuShouldScrollIntoView,u=n.theme;if(t){var c="fixed"===i,l=Ht({maxHeight:o,menuEl:t,minHeight:r,placement:a,shouldScroll:s&&!c,isFixedPosition:c,theme:u}),f=e.context.getPortalPlacement;f&&f(l),e.setState(l)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||Ut(t);return Vt(Vt({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return De(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(e.Component);zt.contextType=Wt;var Bt=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},Yt=Bt,qt=Bt,Kt=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return ft("div",wt({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};Kt.defaultProps={children:"No options"};var $t=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return ft("div",wt({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};$t.defaultProps={children:"Loading..."};var Gt=function(e){Se(n,e);var t=Ft(n);function n(){var e;Oe(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==Ut(e.props.menuPlacement)&&e.setState({placement:n})},e}return De(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,a=e.menuPosition,i=e.getStyles,s="fixed"===a;if(!t&&!s||!r)return null;var u=this.state.placement||Ut(o),c=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),l=s?0:window.pageYOffset,f=c[u]+l,d=ft("div",{css:i("menuPortal",{offset:f,position:a,rect:c})},n);return ft(Wt.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,vt.createPortal)(d,t):d)}}]),n}(e.Component),Jt=Array.isArray,Qt=Object.keys,Xt=Object.prototype.hasOwnProperty;function Zt(e,t){if(e===t)return!0;if(e&&t&&"object"==Ee(e)&&"object"==Ee(t)){var n,r,o,a=Jt(e),i=Jt(t);if(a&&i){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!Zt(e[n],t[n]))return!1;return!0}if(a!=i)return!1;var s=e instanceof Date,u=t instanceof Date;if(s!=u)return!1;if(s&&u)return e.getTime()==t.getTime();var c=e instanceof RegExp,l=t instanceof RegExp;if(c!=l)return!1;if(c&&l)return e.toString()==t.toString();var f=Qt(e);if((r=f.length)!==Qt(t).length)return!1;for(n=r;0!=n--;)if(!Xt.call(t,f[n]))return!1;for(n=r;0!=n--;)if(!("_owner"===(o=f[n])&&e.$$typeof||Zt(e[o],t[o])))return!1;return!0}return e!=e&&t!=t}function en(e,t){try{return Zt(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}function tn(){var e,t,n=(e=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return tn=function(){return n},n}var nn={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},rn=function(e){var t=e.size,n=yt(e,["size"]);return ft("svg",wt({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:nn},n))},on=function(e){return ft(rn,wt({size:20},e),ft("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},an=function(e){return ft(rn,wt({size:20},e),ft("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},sn=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},un=sn,cn=sn,ln=function(){var e=lt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(tn()),fn=function(e){var t=e.delay,n=e.offset;return ft("span",{css:lt({animation:"".concat(ln," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},dn=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,a=e.isRtl;return ft("div",wt({},o,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),ft(fn,{delay:0,offset:a}),ft(fn,{delay:160,offset:!0}),ft(fn,{delay:320,offset:!a}))};dn.defaultProps={size:4};function pn(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 hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mn(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 gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vn=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function bn(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 yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wn=function(e){var t=e.children,n=e.innerProps;return ft("div",n,t)},Cn=wn,On=wn;var xn=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,a=e.data,i=e.getStyles,s=e.innerProps,u=e.isDisabled,c=e.removeProps,l=e.selectProps,f=r.Container,d=r.Label,p=r.Remove;return ft(gt,null,(function(r){var h=r.css,m=r.cx;return ft(f,{data:a,innerProps:yn(yn({},s),{},{className:m(h(i("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":u},n))}),selectProps:l},ft(d,{data:a,innerProps:{className:m(h(i("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:l},t),ft(p,{data:a,innerProps:yn({className:m(h(i("multiValueRemove",e)),o({"multi-value__remove":!0},n))},c),selectProps:l}))}))};xn.defaultProps={cropWithEllipsis:!0};function Dn(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 kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dn(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}for(var Sn={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return ft("div",wt({},a,{css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||ft(on,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,a=e.isDisabled,i=e.isFocused,s=e.innerRef,u=e.innerProps,c=e.menuIsOpen;return ft("div",wt({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":a,"control--is-focused":i,"control--menu-is-open":c},o)},u),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return ft("div",wt({},a,{css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||ft(an,null))},DownChevron:an,CrossIcon:on,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.Heading,i=e.headingProps,s=e.label,u=e.theme,c=e.selectProps;return ft("div",{css:o("group",e),className:r({group:!0},n)},ft(a,wt({},i,{selectProps:c,theme:u,getStyles:o,cx:r}),s),ft("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,a=(e.selectProps,yt(e,["className","cx","getStyles","theme","selectProps"]));return ft("div",wt({css:r("groupHeading",hn({theme:o},a)),className:n({"group-heading":!0},t)},a))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return ft("div",{css:o("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return ft("span",wt({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,a=e.isHidden,i=e.isDisabled,s=e.theme,u=(e.selectProps,yt(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return ft("div",{css:r("input",gn({theme:s},u))},ft(St.Z,wt({className:n({input:!0},t),inputRef:o,inputStyle:vn(a),disabled:i},u)))},LoadingIndicator:dn,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerRef,i=e.innerProps;return ft("div",wt({css:o("menu",e),className:r({menu:!0},n)},i,{ref:a}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isMulti,i=e.innerRef,s=e.innerProps;return ft("div",wt({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":a},n),ref:i},s),t)},MenuPortal:Gt,LoadingMessage:$t,NoOptionsMessage:Kt,MultiValue:xn,MultiValueContainer:Cn,MultiValueLabel:On,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ft("div",n,t||ft(on,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.isFocused,s=e.isSelected,u=e.innerRef,c=e.innerProps;return ft("div",wt({css:o("option",e),className:r({option:!0,"option--is-disabled":a,"option--is-focused":i,"option--is-selected":s},n),ref:u},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return ft("div",wt({css:o("placeholder",e),className:r({placeholder:!0},n)},a),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,i=e.isDisabled,s=e.isRtl;return ft("div",wt({css:o("container",e),className:r({"--is-disabled":i,"--is-rtl":s},n)},a),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.innerProps;return ft("div",wt({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":a},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.isMulti,a=e.getStyles,i=e.hasValue;return ft("div",{css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i},n)},t)}},En=function(e){return kn(kn({},Sn),e.components)},Mn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],_n=new RegExp("["+Mn.map((function(e){return e.letters})).join("")+"]","g"),Pn={},jn=0;jn<Mn.length;jn++)for(var Tn=Mn[jn],An=0;An<Tn.letters.length;An++)Pn[Tn.letters[An]]=Tn.base;var In=function(e){return e.replace(_n,(function(e){return Pn[e]}))};function Rn(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}var Nn=function(e){return e.replace(/^\s+|\s+$/g,"")},Ln=function(e){return"".concat(e.label," ").concat(e.value)};var Vn={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},Fn=function(e){return ft("span",wt({css:Vn},e))};function Hn(e){e["in"],e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,yt(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return ft("input",wt({ref:t},n,{css:lt({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}function Un(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}var Wn=function(e){Se(n,e);var t=Un(n);function n(){return Oe(this,n),t.apply(this,arguments)}return De(n,[{key:"componentDidMount",value:function(){this.props.innerRef((0,vt.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),n}(e.Component),zn=["boxSizing","height","overflow","paddingRight","position"],Bn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Yn(e){e.preventDefault()}function qn(e){e.stopPropagation()}function Kn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function $n(){return"ontouchstart"in window||navigator.maxTouchPoints}function Gn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}var Jn=!(!window.document||!window.document.createElement),Qn=0,Xn=function(e){Se(n,e);var t=Gn(n);function n(){var e;Oe(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).originalStyles={},e.listenerOptions={capture:!1,passive:!1},e}return De(n,[{key:"componentDidMount",value:function(){var e=this;if(Jn){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;if(n&&zn.forEach((function(t){var n=a&&a[t];e.originalStyles[t]=n})),n&&Qn<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,u=window.innerWidth-s+i||0;Object.keys(Bn).forEach((function(e){var t=Bn[e];a&&(a[e]=t)})),a&&(a.paddingRight="".concat(u,"px"))}o&&$n()&&(o.addEventListener("touchmove",Yn,this.listenerOptions),r&&(r.addEventListener("touchstart",Kn,this.listenerOptions),r.addEventListener("touchmove",qn,this.listenerOptions))),Qn+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(Jn){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;Qn=Math.max(Qn-1,0),n&&Qn<1&&zn.forEach((function(t){var n=e.originalStyles[t];a&&(a[t]=n)})),o&&$n()&&(o.removeEventListener("touchmove",Yn,this.listenerOptions),r&&(r.removeEventListener("touchstart",Kn,this.listenerOptions),r.removeEventListener("touchmove",qn,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),n}(e.Component);function Zn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}Xn.defaultProps={accountForScrollbars:!0};var er={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},tr=function(e){Se(n,e);var t=Zn(n);function n(){var e;Oe(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={touchScrollTarget:null},e.getScrollTarget=function(t){t!==e.state.touchScrollTarget&&e.setState({touchScrollTarget:t})},e.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},e}return De(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?ft("div",null,ft("div",{onClick:this.blurSelectInput,css:er}),ft(Wn,{innerRef:this.getScrollTarget},t),r?ft(Xn,{touchScrollTarget:r}):null):t}}]),n}(e.PureComponent);function nr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}var rr=function(e){Se(r,e);var n=nr(r);function r(){var e;Oe(this,r);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).isBottom=!1,e.isTop=!1,e.scrollTarget=void 0,e.touchStart=void 0,e.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},e.handleEventDelta=function(t,n){var r=e.props,o=r.onBottomArrive,a=r.onBottomLeave,i=r.onTopArrive,s=r.onTopLeave,u=e.scrollTarget,c=u.scrollTop,l=u.scrollHeight,f=u.clientHeight,d=e.scrollTarget,p=n>0,h=l-f-c,m=!1;h>n&&e.isBottom&&(a&&a(t),e.isBottom=!1),p&&e.isTop&&(s&&s(t),e.isTop=!1),p&&n>h?(o&&!e.isBottom&&o(t),d.scrollTop=l,m=!0,e.isBottom=!0):!p&&-n>c&&(i&&!e.isTop&&i(t),d.scrollTop=0,m=!0,e.isTop=!0),m&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return De(r,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return t().createElement(Wn,{innerRef:this.getScrollTarget},this.props.children)}}]),r}(e.Component);function or(e){var n=e.isEnabled,r=void 0===n||n,o=yt(e,["isEnabled"]);return r?t().createElement(rr,o):o.children}var ar=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,a=t.isDisabled,i=t.tabSelectsValue;switch(e){case"menu":return"Use Up and Down to choose options".concat(a?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},ir=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},sr=function(e){return!!e.isDisabled};var ur={clearIndicator:cn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:un,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:qt,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return kt(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),kt(t,"backgroundColor",i.neutral0),kt(t,"borderRadius",o),kt(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),kt(t,"marginBottom",a.menuGutter),kt(t,"marginTop",a.menuGutter),kt(t,"position","absolute"),kt(t,"width","100%"),kt(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:Yt,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var cr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function lr(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 fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}var pr,hr={backspaceRemovesValue:!0,blurInputOnSelect:Nt(),captureMenuScroll:!Nt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rn(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ignoreCase:!0,ignoreAccents:!0,stringify:Ln,trim:!0,matchFrom:"any"},pr),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,s=n.matchFrom,u=i?Nn(t):t,c=i?Nn(a(e)):a(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),o&&(u=In(u),c=In(c)),"start"===s?c.substr(0,u.length)===u:c.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:sr,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},mr=1,gr=function(e){Se(r,e);var n=dr(r);function r(e){var t;Oe(this,r),(t=n.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},t.blockOptionHover=!1,t.isComposing=!1,t.clearFocusValueOnUpdate=!1,t.commonProps=void 0,t.components=void 0,t.hasGroups=!1,t.initialTouchX=0,t.initialTouchY=0,t.inputIsHiddenAfterUpdate=void 0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.cacheComponents=function(e){t.components=En({components:e})},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;o(e,fr(fr({},n),{},{name:a}))},t.setValue=function(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:undefined,o=t.props,a=o.closeMenuOnSelect,i=o.isMulti;t.onInputChange("",{action:"set-value"}),a&&(t.inputIsHiddenAfterUpdate=!i,t.onMenuClose()),t.clearFocusValueOnUpdate=!0,t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=t.state.selectValue;if(o)if(t.isOptionSelected(e,a)){var i=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==i})),"deselect-option",e),t.announceAriaLiveSelection({event:"deselect-option",context:{value:t.getOptionLabel(e)}})}else t.isOptionDisabled(e,a)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue([].concat(Dt(a),[e]),"select-option",e),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));else t.isOptionDisabled(e,a)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue(e,"select-option"),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));r&&t.blurInput()},t.removeValue=function(e){var n=t.state.selectValue,r=t.getOptionValue(e),o=n.filter((function(e){return t.getOptionValue(e)!==r}));t.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),t.announceAriaLiveSelection({event:"remove-value",context:{value:e?t.getOptionLabel(e):""}}),t.focusInput()},t.clearValue=function(){t.onChange(null,{action:"clear"})},t.popValue=function(){var e=t.state.selectValue,n=e[e.length-1],r=e.slice(0,e.length-1);t.announceAriaLiveSelection({event:"pop-value",context:{value:n?t.getOptionLabel(n):""}}),t.onChange(r.length?r:null,{action:"pop-value",removedValue:n})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return _t.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return t.props.getOptionLabel(e)},t.getOptionValue=function(e){return t.props.getOptionValue(e)},t.getStyles=function(e,n){var r=ur[e](n);r.boxSizing="border-box";var o=t.props.styles[e];return o?o(r,n):r},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getActiveDescendentId=function(){var e=t.props.menuIsOpen,n=t.state,r=n.menuOptions,o=n.focusedOption;if(!o||!e)return undefined;var a=r.focusable.indexOf(o),i=r.render[a];return i&&i.key},t.announceAriaLiveSelection=function(e){var n=e.event,r=e.context;t.setState({ariaLiveSelection:ir(n,r)})},t.announceAriaLiveContext=function(e){var n=e.event,r=e.context;t.setState({ariaLiveContext:ar(n,fr(fr({},r),{},{label:t.props["aria-label"]}))})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.inputIsHiddenAfterUpdate=!r,t.onMenuClose()):t.openMenu("first"),e.preventDefault(),e.stopPropagation()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.stopPropagation(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&jt(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=e.currentTarget.value;t.inputIsHiddenAfterUpdate=!1,t.onInputChange(n,{action:"input-change"}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){var n=t.props,r=n.isSearchable,o=n.isMulti;t.props.onFocus&&t.props.onFocus(e),t.inputIsHiddenAfterUpdate=!1,t.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),t.setState({isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur"}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){var e=t.props,n=e.hideSelectedOptions,r=e.isMulti;return n===undefined?r:n},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,s=n.isClearable,u=n.isDisabled,c=n.menuIsOpen,l=n.onKeyDown,f=n.tabSelectsValue,d=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(u||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!f||!h||d&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":c?(t.inputIsHiddenAfterUpdate=!1,t.onInputChange("",{action:"menu-close"}),t.onMenuClose()):s&&a&&t.clearValue();break;case" ":if(i)return;if(!c){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.buildMenuOptions=function(e,n){var r=e.inputValue,o=void 0===r?"":r,a=e.options,i=function(e,r){var a=t.isOptionDisabled(e,n),i=t.isOptionSelected(e,n),s=t.getOptionLabel(e),u=t.getOptionValue(e);if(!(t.shouldHideSelectedOptions()&&i||!t.filterOption({label:s,value:u,data:e},o))){var c=a?undefined:function(){return t.onOptionHover(e)},l=a?undefined:function(){return t.selectOption(e)},f="".concat(t.getElementId("option"),"-").concat(r);return{innerProps:{id:f,onClick:l,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:a,isSelected:i,key:f,label:s,type:"option",value:u}}};return a.reduce((function(e,n,r){if(n.options){t.hasGroups||(t.hasGroups=!0);var o=n.options.map((function(t,n){var o=i(t,"".concat(r,"-").concat(n));return o&&e.focusable.push(t),o})).filter(Boolean);if(o.length){var a="".concat(t.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:a,data:n,options:o})}}else{var s=i(n,"".concat(r));s&&(e.render.push(s),e.focusable.push(n))}return e}),{render:[],focusable:[]})};var o=e.value;t.cacheComponents=Ae(t.cacheComponents,en).bind(Me(t)),t.cacheComponents(e.components),t.instancePrefix="react-select-"+(t.props.instanceId||++mr);var a=Pt(o);t.buildMenuOptions=Ae(t.buildMenuOptions,(function(e,t){var n=xt(e,2),r=n[0],o=n[1],a=xt(t,2),i=a[0];return o===a[1]&&r.inputValue===i.inputValue&&r.options===i.options})).bind(Me(t));var i=e.menuIsOpen?t.buildMenuOptions(e,a):{render:[],focusable:[]};return t.state.menuOptions=i,t.state.selectValue=a,t}return De(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,a=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==a){var i=Pt(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,i):{render:[],focusable:[]},u=this.getNextFocusedValue(i),c=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:i,focusedOption:c,focusedValue:u})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,a,i=this.props,s=i.isDisabled,u=i.menuIsOpen,c=this.state.isFocused;(c&&!s&&e.isDisabled||c&&u&&!e.menuIsOpen)&&this.focusInput(),c&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=n.offsetHeight/3,o.bottom+a>r.bottom?At(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+a,t.scrollHeight)):o.top-a<r.top&&At(t,Math.max(n.offsetTop-a,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildMenuOptions(this.props,r),i=this.props,s=i.isMulti,u=i.tabSelectsValue,c="first"===e?0:a.focusable.length-1;if(!s){var l=a.focusable.indexOf(r[0]);l>-1&&(c=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:a,focusedValue:null,focusedOption:a.focusable[c]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:u}})}))}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,a=o.selectValue,i=o.focusedValue;if(n){this.setState({focusedOption:null});var s=a.indexOf(i);i||(s=-1,this.announceAriaLiveContext({event:"value"}));var u=a.length-1,c=-1;if(a.length){switch(e){case"previous":c=0===s?0:-1===s?u:s-1;break;case"next":s>-1&&s<u&&(c=s+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"first",t=this.props,n=t.pageSize,r=t.tabSelectsValue,o=this.state,a=o.focusedOption,i=o.menuOptions,s=i.focusable;if(s.length){var u=0,c=s.indexOf(a);a||(c=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:r}})),"up"===e?u=c>0?c-1:s.length-1:"down"===e?u=(c+1)%s.length:"pageup"===e?(u=c-n)<0&&(u=0):"pagedown"===e?(u=c+n)>s.length-1&&(u=s.length-1):"last"===e&&(u=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[u],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:sr(s[u]),tabSelectsValue:r}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(cr):fr(fr({},cr),this.props.theme):cr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.setValue,a=this.selectOption,i=this.props,s=i.isMulti,u=i.isRtl,c=i.options;return{cx:t,clearValue:e,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:c,selectOption:a,setValue:o,selectProps:i,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return t===undefined?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,a=this.props,i=a.options,s=a.menuIsOpen,u=a.inputValue,c=a.screenReaderStatus,l=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",f=o&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:i}):"",d=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:u,screenReaderMessage:c({count:this.countOptions()})});return"".concat(l," ").concat(f," ").concat(d," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,n=e.isDisabled,r=e.isSearchable,o=e.inputId,a=e.inputValue,i=e.tabIndex,s=e.form,u=this.components.Input,c=this.state.inputIsHidden,l=o||this.getElementId("input"),f={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!r)return t().createElement(Hn,wt({id:l,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Et,onFocus:this.onInputFocus,readOnly:!0,disabled:n,tabIndex:i,form:s,value:""},f));var d=this.commonProps,p=d.cx,h=d.theme,m=d.selectProps;return t().createElement(u,wt({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:l,innerRef:this.getInputRef,isDisabled:n,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:m,spellCheck:"false",tabIndex:i,form:s,theme:h,type:"text",value:a},f))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,n=this.components,r=n.MultiValue,o=n.MultiValueContainer,a=n.MultiValueLabel,i=n.MultiValueRemove,s=n.SingleValue,u=n.Placeholder,c=this.commonProps,l=this.props,f=l.controlShouldRenderValue,d=l.isDisabled,p=l.isMulti,h=l.inputValue,m=l.placeholder,g=this.state,v=g.selectValue,b=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!f)return h?null:t().createElement(u,wt({},c,{key:"placeholder",isDisabled:d,isFocused:y}),m);if(p)return v.map((function(n,s){var u=n===b;return t().createElement(r,wt({},c,{components:{Container:o,Label:a,Remove:i},isFocused:u,isDisabled:d,key:"".concat(e.getOptionValue(n)).concat(s),index:s,removeProps:{onClick:function(){return e.removeValue(n)},onTouchEnd:function(){return e.removeValue(n)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:n}),e.formatOptionLabel(n,"value"))}));if(h)return null;var w=v[0];return t().createElement(s,wt({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,a=r.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||a)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return t().createElement(e,wt({},n,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,a=r.isLoading,i=this.state.isFocused;if(!e||!a)return null;return t().createElement(e,wt({},n,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,n=e.DropdownIndicator,r=e.IndicatorSeparator;if(!n||!r)return null;var o=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return t().createElement(r,wt({},o,{isDisabled:a,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var n=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return t().createElement(e,wt({},n,{innerProps:a,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,n=this.components,r=n.Group,o=n.GroupHeading,a=n.Menu,i=n.MenuList,s=n.MenuPortal,u=n.LoadingMessage,c=n.NoOptionsMessage,l=n.Option,f=this.commonProps,d=this.state,p=d.focusedOption,h=d.menuOptions,m=this.props,g=m.captureMenuScroll,v=m.inputValue,b=m.isLoading,y=m.loadingMessage,w=m.minMenuHeight,C=m.maxMenuHeight,O=m.menuIsOpen,x=m.menuPlacement,D=m.menuPosition,k=m.menuPortalTarget,S=m.menuShouldBlockScroll,E=m.menuShouldScrollIntoView,M=m.noOptionsMessage,_=m.onMenuScrollToTop,P=m.onMenuScrollToBottom;if(!O)return null;var j,T=function(n){var r=p===n.data;return n.innerRef=r?e.getFocusedOptionRef:undefined,t().createElement(l,wt({},f,n,{isFocused:r}),e.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())j=h.render.map((function(n){if("group"===n.type){n.type;var a=yt(n,["type"]),i="".concat(n.key,"-heading");return t().createElement(r,wt({},f,a,{Heading:o,headingProps:{id:i,data:n.data},label:e.formatGroupLabel(n.data)}),n.options.map((function(e){return T(e)})))}if("option"===n.type)return T(n)}));else if(b){var A=y({inputValue:v});if(null===A)return null;j=t().createElement(u,f,A)}else{var I=M({inputValue:v});if(null===I)return null;j=t().createElement(c,f,I)}var R={minMenuHeight:w,maxMenuHeight:C,menuPlacement:x,menuPosition:D,menuShouldScrollIntoView:E},N=t().createElement(zt,wt({},f,R),(function(n){var r=n.ref,o=n.placerProps,s=o.placement,u=o.maxHeight;return t().createElement(a,wt({},f,R,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:s}),t().createElement(or,{isEnabled:g,onTopArrive:_,onBottomArrive:P},t().createElement(tr,{isEnabled:S},t().createElement(i,wt({},f,{innerRef:e.getMenuListRef,isLoading:b,maxHeight:u}),j))))}));return k||"fixed"===D?t().createElement(s,wt({},f,{appendTo:k,controlElement:this.controlRef,menuPlacement:x,menuPosition:D}),N):N}},{key:"renderFormField",value:function(){var e=this,n=this.props,r=n.delimiter,o=n.isDisabled,a=n.isMulti,i=n.name,s=this.state.selectValue;if(i&&!o){if(a){if(r){var u=s.map((function(t){return e.getOptionValue(t)})).join(r);return t().createElement("input",{name:i,type:"hidden",value:u})}var c=s.length>0?s.map((function(n,r){return t().createElement("input",{key:"i-".concat(r),name:i,type:"hidden",value:e.getOptionValue(n)})})):t().createElement("input",{name:i,type:"hidden"});return t().createElement("div",null,c)}var l=s[0]?this.getOptionValue(s[0]):"";return t().createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?t().createElement(Fn,{"aria-live":"polite"},t().createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),t().createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,n=e.Control,r=e.IndicatorsContainer,o=e.SelectContainer,a=e.ValueContainer,i=this.props,s=i.className,u=i.id,c=i.isDisabled,l=i.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return t().createElement(o,wt({},d,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:f}),this.renderLiveRegion(),t().createElement(n,wt({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:f,menuIsOpen:l}),t().createElement(a,wt({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),t().createElement(r,wt({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),r}(e.Component);function vr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}gr.defaultProps=hr;var br={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};function yr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return _e(this,n)}}e.Component;var wr,Cr,Or,xr=(wr=gr,Or=Cr=function(e){Se(r,e);var n=vr(r);function r(){var e;Oe(this,r);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).select=void 0,e.state={inputValue:e.props.inputValue!==undefined?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:e.props.menuIsOpen!==undefined?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:e.props.value!==undefined?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:r!==undefined?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return De(r,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return this.props[e]!==undefined?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,n=this.props,r=(n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue,yt(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return t().createElement(wr,wt({},r,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),r}(e.Component),Cr.defaultProps=br,Or),Dr=n(322),kr=n.n(Dr),Sr=n(555),Er=n.n(Sr),Mr=["mousedown","touchstart"];
27
  /**!
28
  * @fileOverview Kickass library to create and place poppers near their reference elements.
29
  * @version 1.16.1
48
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
49
  * SOFTWARE.
50
  */
51
+ var _r="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Pr=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(_r&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var jr=_r&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Pr))}};function Tr(e){return e&&"[object Function]"==={}.toString.call(e)}function Ar(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Ir(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Rr(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ar(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:Rr(Ir(e))}function Nr(e){return e&&e.referenceNode?e.referenceNode:e}var Lr=_r&&!(!window.MSInputMethodContext||!document.documentMode),Vr=_r&&/MSIE 10/.test(navigator.userAgent);function Fr(e){return 11===e?Lr:10===e?Vr:Lr||Vr}function Hr(e){if(!e)return document.documentElement;for(var t=Fr(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Ar(n,"position")?Hr(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ur(e){return null!==e.parentNode?Ur(e.parentNode):e}function Wr(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(o,0);var i,s,u=a.commonAncestorContainer;if(e!==u&&t!==u||r.contains(o))return"BODY"===(s=(i=u).nodeName)||"HTML"!==s&&Hr(i.firstElementChild)!==i?Hr(u):u;var c=Ur(e);return c.host?Wr(c.host,t):Wr(e,Ur(t).host)}function zr(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||o;return a[n]}return e[n]}function Br(e,t){var n=arguments.length>2&&arguments[2]!==undefined&&arguments[2],r=zr(t,"top"),o=zr(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=o*a,e.right+=o*a,e}function Yr(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function qr(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Fr(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function Kr(e){var t=e.body,n=e.documentElement,r=Fr(10)&&getComputedStyle(n);return{height:qr("Height",t,n,r),width:qr("Width",t,n,r)}}var $r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Gr=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Jr=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Qr=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};function Xr(e){return Qr({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Zr(e){var t={};try{if(Fr(10)){t=e.getBoundingClientRect();var n=zr(e,"top"),r=zr(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(f){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?Kr(e.ownerDocument):{},i=a.width||e.clientWidth||o.width,s=a.height||e.clientHeight||o.height,u=e.offsetWidth-i,c=e.offsetHeight-s;if(u||c){var l=Ar(e);u-=Yr(l,"x"),c-=Yr(l,"y"),o.width-=u,o.height-=c}return Xr(o)}function eo(e,t){var n=arguments.length>2&&arguments[2]!==undefined&&arguments[2],r=Fr(10),o="HTML"===t.nodeName,a=Zr(e),i=Zr(t),s=Rr(e),u=Ar(t),c=parseFloat(u.borderTopWidth),l=parseFloat(u.borderLeftWidth);n&&o&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var f=Xr({top:a.top-i.top-c,left:a.left-i.left-l,width:a.width,height:a.height});if(f.marginTop=0,f.marginLeft=0,!r&&o){var d=parseFloat(u.marginTop),p=parseFloat(u.marginLeft);f.top-=c-d,f.bottom-=c-d,f.left-=l-p,f.right-=l-p,f.marginTop=d,f.marginLeft=p}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(f=Br(f,t)),f}function to(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],n=e.ownerDocument.documentElement,r=eo(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:zr(n),s=t?0:zr(n,"left"),u={top:i-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:a};return Xr(u)}function no(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Ar(e,"position"))return!0;var n=Ir(e);return!!n&&no(n)}function ro(e){if(!e||!e.parentElement||Fr())return document.documentElement;for(var t=e.parentElement;t&&"none"===Ar(t,"transform");)t=t.parentElement;return t||document.documentElement}function oo(e,t,n,r){var o=arguments.length>4&&arguments[4]!==undefined&&arguments[4],a={top:0,left:0},i=o?ro(e):Wr(e,Nr(t));if("viewport"===r)a=to(i,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=Rr(Ir(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var u=eo(s,i,o);if("HTML"!==s.nodeName||no(i))a=u;else{var c=Kr(e.ownerDocument),l=c.height,f=c.width;a.top+=u.top-u.marginTop,a.bottom=l+u.top,a.left+=u.left-u.marginLeft,a.right=f+u.left}}var d="number"==typeof(n=n||0);return a.left+=d?n:n.left||0,a.top+=d?n:n.top||0,a.right-=d?n:n.right||0,a.bottom-=d?n:n.bottom||0,a}function ao(e){return e.width*e.height}function io(e,t,n,r,o){var a=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=oo(n,r,a,o),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},u=Object.keys(s).map((function(e){return Qr({key:e},s[e],{area:ao(s[e])})})).sort((function(e,t){return t.area-e.area})),c=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=c.length>0?c[0].key:u[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function so(e,t,n){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null,o=r?ro(t):Wr(t,Nr(n));return eo(n,o,r)}function uo(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function co(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function lo(e,t,n){n=n.split("-")[0];var r=uo(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",s=a?"left":"top",u=a?"height":"width",c=a?"width":"height";return o[i]=t[i]+t[u]/2-r[u]/2,o[s]=n===s?t[s]-r[c]:t[co(s)],o}function fo(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function po(e,t,n){return(n===undefined?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=fo(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e["function"]||e.fn;e.enabled&&Tr(n)&&(t.offsets.popper=Xr(t.offsets.popper),t.offsets.reference=Xr(t.offsets.reference),t=n(t,e))})),t}function ho(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=so(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=io(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=lo(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=po(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function mo(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function go(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],a=o?""+o+n:e;if("undefined"!=typeof document.body.style[a])return a}return null}function vo(){return this.state.isDestroyed=!0,mo(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[go("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function bo(e){var t=e.ownerDocument;return t?t.defaultView:window}function yo(e,t,n,r){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),o||yo(Rr(a.parentNode),t,n,r),r.push(a)}function wo(e,t,n,r){n.updateBound=r,bo(e).addEventListener("resize",n.updateBound,{passive:!0});var o=Rr(e);return yo(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Co(){this.state.eventsEnabled||(this.state=wo(this.reference,this.options,this.state,this.scheduleUpdate))}function Oo(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,bo(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function xo(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Do(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&xo(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var ko=_r&&/Firefox/i.test(navigator.userAgent);function So(e,t,n){var r=fo(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var a="`"+t+"`",i="`"+n+"`";console.warn(i+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return o}var Eo=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Mo=Eo.slice(3);function _o(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],n=Mo.indexOf(e),r=Mo.slice(n+1).concat(Mo.slice(0,n));return t?r.reverse():r}var Po="flip",jo="clockwise",To="counterclockwise";function Ao(e,t,n,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=i.indexOf(fo(i,(function(e){return-1!==e.search(/,|\s/)})));i[s]&&-1===i[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,c=-1!==s?[i.slice(0,s).concat([i[s].split(u)[0]]),[i[s].split(u)[1]].concat(i.slice(s+1))]:[i];return(c=c.map((function(e,r){var o=(1===r?!a:a)?"height":"width",i=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],i=o[2];if(!a)return e;if(0===i.indexOf("%")){var s=void 0;switch(i){case"%p":s=n;break;case"%":case"%r":default:s=r}return Xr(s)[t]/100*a}if("vh"===i||"vw"===i)return("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){xo(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var Io={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,a=o.reference,i=o.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",c=s?"width":"height",l={start:Jr({},u,a[u]),end:Jr({},u,a[u]+a[c]-i[c])};e.offsets.popper=Qr({},i,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,a=o.popper,i=o.reference,s=r.split("-")[0],u=void 0;return u=xo(+n)?[+n,0]:Ao(n,a,i,s),"left"===s?(a.top+=u[0],a.left-=u[1]):"right"===s?(a.top+=u[0],a.left+=u[1]):"top"===s?(a.left+=u[0],a.top-=u[1]):"bottom"===s&&(a.left+=u[0],a.top+=u[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Hr(e.instance.popper);e.instance.reference===n&&(n=Hr(n));var r=go("transform"),o=e.instance.popper.style,a=o.top,i=o.left,s=o[r];o.top="",o.left="",o[r]="";var u=oo(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=i,o[r]=s,t.boundaries=u;var c=t.priority,l=e.offsets.popper,f={primary:function(e){var n=l[e];return l[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(l[e],u[e])),Jr({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(l[n],u[e]-("right"===e?l.width:l.height))),Jr({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=Qr({},l,f[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],a=Math.floor,i=-1!==["top","bottom"].indexOf(o),s=i?"right":"bottom",u=i?"left":"top",c=i?"width":"height";return n[s]<a(r[u])&&(e.offsets.popper[u]=a(r[u])-n[c]),n[u]>a(r[s])&&(e.offsets.popper[u]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!So(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],a=e.offsets,i=a.popper,s=a.reference,u=-1!==["left","right"].indexOf(o),c=u?"height":"width",l=u?"Top":"Left",f=l.toLowerCase(),d=u?"left":"top",p=u?"bottom":"right",h=uo(r)[c];s[p]-h<i[f]&&(e.offsets.popper[f]-=i[f]-(s[p]-h)),s[f]+h>i[p]&&(e.offsets.popper[f]+=s[f]+h-i[p]),e.offsets.popper=Xr(e.offsets.popper);var m=s[f]+s[c]/2-h/2,g=Ar(e.instance.popper),v=parseFloat(g["margin"+l]),b=parseFloat(g["border"+l+"Width"]),y=m-e.offsets.popper[f]-v-b;return y=Math.max(Math.min(i[c]-h,y),0),e.arrowElement=r,e.offsets.arrow=(Jr(n={},f,Math.round(y)),Jr(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(mo(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=oo(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=co(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case Po:i=[r,o];break;case jo:i=_o(r);break;case To:i=_o(r,!0);break;default:i=t.behavior}return i.forEach((function(s,u){if(r!==s||i.length===u+1)return e;r=e.placement.split("-")[0],o=co(r);var c=e.offsets.popper,l=e.offsets.reference,f=Math.floor,d="left"===r&&f(c.right)>f(l.left)||"right"===r&&f(c.left)<f(l.right)||"top"===r&&f(c.bottom)>f(l.top)||"bottom"===r&&f(c.top)<f(l.bottom),p=f(c.left)<f(n.left),h=f(c.right)>f(n.right),m=f(c.top)<f(n.top),g=f(c.bottom)>f(n.bottom),v="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===a&&p||b&&"end"===a&&h||!b&&"start"===a&&m||!b&&"end"===a&&g),w=!!t.flipVariationsByContent&&(b&&"start"===a&&h||b&&"end"===a&&p||!b&&"start"===a&&g||!b&&"end"===a&&m),C=y||w;(d||v||C)&&(e.flipped=!0,(d||v)&&(r=i[u+1]),C&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=Qr({},e.offsets.popper,lo(e.instance.popper,e.offsets.reference,e.placement)),e=po(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,a=r.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[i?"left":"top"]=a[n]-(s?o[i?"width":"height"]:0),e.placement=co(t),e.offsets.popper=Xr(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!So(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=fo(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,a=fo(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;a!==undefined&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var i=a!==undefined?a:t.gpuAcceleration,s=Hr(e.instance.popper),u=Zr(s),c={position:o.position},l=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,a=Math.round,i=Math.floor,s=function(e){return e},u=a(o.width),c=a(r.width),l=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?l||f||u%2==c%2?a:i:s,p=t?a:s;return{left:d(u%2==1&&c%2==1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!ko),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",p=go("transform"),h=void 0,m=void 0;if(m="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+l.bottom:-u.height+l.bottom:l.top,h="right"===d?"HTML"===s.nodeName?-s.clientWidth+l.right:-u.width+l.right:l.left,i&&p)c[p]="translate3d("+h+"px, "+m+"px, 0)",c[f]=0,c[d]=0,c.willChange="transform";else{var g="bottom"===f?-1:1,v="right"===d?-1:1;c[f]=m*g,c[d]=h*v,c.willChange=f+", "+d}var b={"x-placement":e.placement};return e.attributes=Qr({},b,e.attributes),e.styles=Qr({},c,e.styles),e.arrowStyles=Qr({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Do(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Do(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var a=so(o,t,e,n.positionFixed),i=io(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),Do(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:undefined}}},Ro=function(){function e(t,n){var r=this,o=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};$r(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=jr(this.update.bind(this)),this.options=Qr({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Qr({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=Qr({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Qr({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Tr(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return Gr(e,[{key:"update",value:function(){return ho.call(this)}},{key:"destroy",value:function(){return vo.call(this)}},{key:"enableEventListeners",value:function(){return Co.call(this)}},{key:"disableEventListeners",value:function(){return Oo.call(this)}}]),e}();Ro.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,Ro.placements=Eo,Ro.Defaults=Io;var No=Ro,Lo=(n(353),function(e){do{e+=~~(1e6*Math.random())}while("undefined"!=typeof document&&document.getElementById(e));return e}),Vo=("undefined"!=typeof window&&"undefined"!=typeof window.document&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,{name:"kpm0v2",styles:"position:absolute;display:block;width:16px;height:8px;margin:0 5px;&:before,&:after{position:absolute;display:block;content:'';border-color:transparent;border-style:solid;}"}),Fo=function(t){t.placement;var n=bt(t,["placement"]);return ft(e.Fragment,null,ft(dt,{styles:Ho}),ft("div",wt({},n,{"data-arrow":"true",css:Vo})))},Ho={name:"rvo98s",styles:"[x-placement^='top']{margin-bottom:8px;[data-arrow]{bottom:-9px;}[data-arrow]:before{bottom:0;border-width:8px 8px 0;border-top-color:rgba(0,0,0,0.25);}[data-arrow]:after{bottom:1px;border-width:8px 8px 0;border-top-color:#fff;}}[x-placement^='right']{margin-left:8px;[data-arrow]{left:-9px;width:8px;height:16px;margin:5px 0;}[data-arrow]:before{left:0;border-width:8px 8px 8px 0;border-right-color:rgba(0,0,0,0.25);}[data-arrow]:after{left:1px;border-width:8px 8px 8px 0;border-right-color:#fff;}}[x-placement^='bottom']{margin-top:8px;[data-arrow]{top:-9px;}[data-arrow]:before{top:0;border-width:0 8px 8px 8px;border-bottom-color:rgba(0,0,0,0.25);}[data-arrow]:after{top:1px;border-width:0 8px 8px 8px;border-bottom-color:#fff;}}[x-placement^='left']{margin-right:8px;[data-arrow]{right:-9px;width:8px;height:16px;margin:5px 0;}[data-arrow]:before{right:0;border-width:8px 0 8px 8px;border-left-color:rgba(0,0,0,0.25);}[data-arrow]:after{right:1px;border-width:8px 0 8px 8px;border-left-color:#fff;}}"},Uo=function(n){var r,o,a,i=n.header,s=n.body,u=n.children,c=n.placement,l=n.trigger,f=n.styles,d=bt(n,["header","body","children","placement","trigger","styles"]),p=t().Children.only(u),h=(0,e.useRef)(null),m=(0,e.useState)(!1),g=m[0],v=m[1],b=(0,e.useState)(!1),y=b[0],w=b[1],C=(0,e.useState)({popoverId:null,referenceId:null,arrowId:null}),O=C[0],x=C[1],D=O.popoverId,k=O.referenceId,S=O.arrowId;r=h,o=function(e){e.target.id===k||document.getElementById(k).contains(e.target)||v(!1)},a=(0,e.useRef)(),(0,e.useEffect)((function(){a.current=o}),[o]),(0,e.useEffect)((function(){var e=function(e){r.current&&!r.current.contains(e.target)&&a.current(event)};return Mr.forEach((function(t){document.addEventListener(t,e,{passive:!0})})),function(){Mr.forEach((function(t){document.removeEventListener(t,e,{passive:!0})}))}}),[r,o]),(0,e.useEffect)((function(){if(!D)return x({popoverId:Lo("popover"),referenceId:Lo("reference"),arrowId:Lo("arrow")});var e=document.getElementById(D),t=document.getElementById(k),n=document.getElementById(S);e&&t&&n&&(new No(t,e,{placement:c,modifiers:{arrow:{element:n}}}),w(g))}),[g]);var E={content:[Wo.content,f.content],header:[Wo.header,f.header],body:[Wo.body,f.body]};return ft(e.Fragment,null,D?ft("div",wt({},d,{id:D,ref:h,css:E.content,style:y?{display:"block"}:{}}),ft(Fo,{id:S}),i?ft("div",{css:E.header},i):null,ft("div",{css:E.body},s)):null,t().cloneElement(p,wt({},p.props,{id:k,onClick:function(){"click"===l&&v(!g)}})))};Uo.defaultProps={placement:"right",trigger:"click",styles:{}};var Wo={content:{name:"106ha8s",styles:"display:none;max-width:300px;background-color:#fff;border-radius:4px;border:1px solid rgba(0,0,0,0.2);z-index:1060;"},header:{name:"12koz1z",styles:"padding:8px 12px;background-color:#f7f7f7;font-size:16px;font-weight:bold;border-top-left-radius:4px;border-top-right-radius:4px;"},body:{name:"k7kym8",styles:"padding:8px 12px;font-size:14px;border-bottom-left-radius:4px;border-bottom-right-radius:4px;"}},zo=Uo;function Bo(e){var t=e.touches;if(t&&t.length){var n=t[0];return{x:n.clientX,y:n.clientY}}return{x:e.clientX,y:e.clientY}}var Yo={position:"relative",display:"inline-block",backgroundColor:"#ddd",borderRadius:5,userSelect:"none",boxSizing:"border-box"},qo={position:"absolute",backgroundColor:"#5e72e4",borderRadius:5,userSelect:"none",boxSizing:"border-box"},Ko={position:"relative",display:"block",content:'""',width:18,height:18,backgroundColor:"#fff",borderRadius:"50%",boxShadow:"0 1px 1px rgba(0,0,0,.5)",userSelect:"none",cursor:"pointer",boxSizing:"border-box"},$o={x:{track:wt({},Yo,{width:200,height:10}),active:wt({},qo,{top:0,height:"100%"}),thumb:wt({},Ko)},y:{track:wt({},Yo,{width:10,height:200}),active:wt({},qo,{left:0,width:"100%"}),thumb:wt({},Ko)},xy:{track:{position:"relative",overflow:"hidden",width:200,height:200,backgroundColor:"#5e72e4",borderRadius:0},active:{},thumb:wt({},Ko)},disabled:{opacity:.5}},Go=function(t){var n=t.disabled,r=t.axis,o=t.x,a=t.y,i=t.xmin,s=t.xmax,u=t.ymin,c=t.ymax,l=t.xstep,f=t.ystep,d=t.onChange,p=t.onDragStart,h=t.onDragEnd,m=t.onClick,g=t.xreverse,v=t.yreverse,b=t.styles,y=bt(t,["disabled","axis","x","y","xmin","xmax","ymin","ymax","xstep","ystep","onChange","onDragStart","onDragEnd","onClick","xreverse","yreverse","styles"]),w=(0,e.useRef)(null),C=(0,e.useRef)(null),O=(0,e.useRef)({}),x=(0,e.useRef)({});function D(e){var t=e.top,n=e.left;if(d){var o=w.current.getBoundingClientRect(),a=o.width,p=o.height,h=0,m=0;n<0&&(n=0),n>a&&(n=a),t<0&&(t=0),t>p&&(t=p),"x"!==r&&"xy"!==r||(h=n/a*(s-i)),"y"!==r&&"xy"!==r||(m=t/p*(c-u));var b=(0!==h?parseInt(h/l,10)*l:0)+i,y=(0!==m?parseInt(m/f,10)*f:0)+u;d({x:g?s-b+i:b,y:v?c-y+u:y})}}function k(e){if(!n){e.preventDefault();var t=C.current,r=Bo(e);O.current={x:t.offsetLeft,y:t.offsetTop},x.current={x:r.x,y:r.y},document.addEventListener("mousemove",S),document.addEventListener("mouseup",E),document.addEventListener("touchmove",S,{passive:!1}),document.addEventListener("touchend",E),document.addEventListener("touchcancel",E),p&&p(e)}}function S(e){n||(e.preventDefault(),D(function(e){var t=Bo(e);return{left:t.x+O.current.x-x.current.x,top:t.y+O.current.y-x.current.y}}(e)))}function E(e){n||(e.preventDefault(),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",S,{passive:!1}),document.removeEventListener("touchend",E),document.removeEventListener("touchcancel",E),h&&h(e))}var M,_,P=((M=(a-u)/(c-u)*100)>100&&(M=100),M<0&&(M=0),"x"===r&&(M=0),(_=(o-i)/(s-i)*100)>100&&(_=100),_<0&&(_=0),"y"===r&&(_=0),{top:M,left:_}),j={};"x"===r&&(j.width=P.left+"%"),"y"===r&&(j.height=P.top+"%"),g&&(j.left=100-P.left+"%"),v&&(j.top=100-P.top+"%");var T={position:"absolute",transform:"translate(-50%, -50%)",left:g?100-P.left+"%":P.left+"%",top:v?100-P.top+"%":P.top+"%"};"x"===r?T.top="50%":"y"===r&&(T.left="50%");var A={track:wt({},$o[r].track,{},b.track),active:wt({},$o[r].active,{},b.active),thumb:wt({},$o[r].thumb,{},b.thumb),disabled:wt({},$o.disabled,{},b.disabled)};return ft("div",wt({},y,{ref:w,css:lt([A.track,n&&A.disabled],";label:Slider;"),onClick:function(e){if(!n){var t=Bo(e),r=w.current.getBoundingClientRect();D({left:t.x-r.left,top:t.y-r.top}),m&&m(e)}}}),ft("div",{css:A.active,style:j}),ft("div",{ref:C,style:T,onTouchStart:k,onMouseDown:k,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},ft("div",{css:A.thumb})))};Go.defaultProps={disabled:!1,axis:"x",x:50,xmin:0,xmax:100,y:50,ymin:0,ymax:100,xstep:1,ystep:1,xreverse:!1,yreverse:!1,styles:{}};var Jo=Go,Qo=n(654),Xo=n.n(Qo),Zo=n(763),ea=n.n(Zo),ta=n(37),na=n.n(ta),ra="undefined"!=typeof navigator&&navigator.userAgent.match(/iPhone|iPad|iPod/i),oa=function(t){var n=t.step,r=t.min,o=t.max,a=t.value,i=t.onChange,s=t.onKeyDown,u=t.enableMobileNumericKeyboard,c=t.component,l=bt(t,["step","min","max","value","onChange","onKeyDown","enableMobileNumericKeyboard","component"]),f=(0,e.useState)(a),d=f[0],p=f[1];(0,e.useEffect)((function(){p(a)}),[a]);var h={value:d,onChange:function(e){var t=function(e){if(ea()(e))return e;if(na()(e)){if(!(e=e.trim()))return"";var t=parseFloat(e);if(!Xo()(t))return t}return""}(e);p(e),i&&i(t)},onKeyDown:function(e){38===e.keyCode?i&&i(ia("+",a,o,r,n)):40===e.keyCode&&i&&i(ia("-",a,o,r,n)),s&&s(e)},onWheel:function(e){e.target.blur()}};return ft(c,wt({},l,h,u?{css:aa,type:"number",inputMode:"numeric",pattern:ra?"[0-9]*":"",step:n,min:r,max:o}:{css:aa,type:"text"}))};oa.defaultProps={autoComplete:"off",enableMobileNumericKeyboard:!1,value:"",component:function(e){var t=e.onChange,n=bt(e,["onChange"]);return ft("input",wt({},n,{onChange:function(e){t&&t(e.target.value)}}))},step:1};var aa={MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}};function ia(e,t,n,r,o){if(""===t)return ea()(r)?r:"";if(t="+"===e?t+o:t-o,ea()(n)&&t>n)return n;if(ea()(r)&&t<r)return r;var a=(o.toString().split(".")[1]||[]).length;return a?parseFloat(t.toFixed(a)):t}var sa=oa;function ua(e){return"#"===e[0]&&(e=e.substr(1)),3===e.length?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16)}}function ca(e,t,n){var r=[],o=(n/=100)*(t/=100),a=e/60,i=o*(1-Math.abs(a%2-1)),s=n-o;return r=a>=0&&a<1?[o,i,0]:a>=1&&a<2?[i,o,0]:a>=2&&a<3?[0,o,i]:e>=3&&a<4?[0,i,o]:e>=4&&a<5?[i,0,o]:e>=5&&a<=6?[o,0,i]:[0,0,0],{r:Math.round(255*(r[0]+s)),g:Math.round(255*(r[1]+s)),b:Math.round(255*(r[2]+s))}}function la(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function fa(e,t,n){return"#"+[la(e),la(t),la(n)].join("")}function da(e,t,n){var r,o=Math.max(e,t,n),a=o-Math.min(e,t,n);return r=0===a?0:e===o?(t-n)/a%6:t===o?(n-e)/a+2:(e-t)/a+4,(r=Math.round(60*r))<0&&(r+=360),{h:r,s:Math.round(100*(0===o?0:a/o)),v:Math.round(o/255*100)}}function pa(e,t,n,r){return"rgba("+[e,t,n,r/100].join(",")+")"}var ha={name:"bzk4lp",styles:"width:100%;margin-top:10px;margin-bottom:10px;display:flex;"},ma={name:"lwa3hx",styles:"flex:1;margin-right:10px;"},ga=function(e){var t=e.color,n=e.onChange,r=t.r,o=t.g,a=t.b,i=t.a,s=t.h,u=t.s,c=t.v;function l(e){n&&n(wt({},e,{rgba:pa(e.r,e.g,e.b,e.a)}))}function f(e,n,r){var o=ca(e,n,r),a=o.r,i=o.g,s=o.b,u=fa(a,i,s);l(wt({},t,{h:e,s:n,v:r,r:a,g:i,b:s,hex:u}))}function d(e,n,r){var o=fa(e,n,r),a=da(e,n,r),i=a.h,s=a.s,u=a.v;l(wt({},t,{r:e,g:n,b:r,h:i,s:s,v:u,hex:o}))}function p(e){l(wt({},t,{a:e}))}var h=pa(r,o,a,i),m="linear-gradient(to right, "+pa(r,o,a,0)+", "+pa(r,o,a,100)+")",g=function(e,t,n){var r=ca(e,t,n);return fa(r.r,r.g,r.b)}(s,100,100);return ft("div",{css:va.picker,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},ft("div",{css:va.selector,style:{backgroundColor:g}},ft("div",{css:va.gradientWhite}),ft("div",{css:va.gradientDark}),ft(Jo,{axis:"xy",x:u,xmax:100,y:100-c,ymax:100,onChange:function(e){var t=e.x,n=e.y;return f(s,t,100-n)},styles:{track:{width:"100%",height:"100%",background:"none"},thumb:{width:12,height:12,backgroundColor:"rgba(0,0,0,0)",border:"2px solid #fff",borderRadius:"50%"}}})),ft("div",{css:ha},ft("div",{css:ma},ft(Jo,{axis:"x",x:s,xmax:359,onChange:function(e){return f(e.x,u,c)},styles:{track:{width:"100%",height:12,borderRadius:0,background:"linear-gradient(to left, #FF0000 0%, #FF0099 10%, #CD00FF 20%, #3200FF 30%, #0066FF 40%, #00FFFD 50%, #00FF66 60%, #35FF00 70%, #CDFF00 80%, #FF9900 90%, #FF0000 100%)"},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}}}),ft(Jo,{axis:"x",x:i,xmax:100,styles:{track:{width:"100%",height:12,borderRadius:0,background:m},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}},onChange:function(e){return p(e.x)}})),ft("div",{style:{backgroundColor:h,width:30,height:30}})),ft("div",{css:va.inputs},ft("div",{css:va.input},ft("input",{style:{width:70,textAlign:"left"},type:"text",value:t.hex,onChange:function(e){return function(e){var n=ua(e),r=n.r,o=n.g,a=n.b,i=da(r,o,a),s=i.h,u=i.s,c=i.v;l(wt({},t,{r:r,g:o,b:a,h:s,s:u,v:c,hex:e}))}(e.target.value)},onKeyUp:function(e){if(13===e.keyCode){var n=e.target.value.trim(),r=ua(n),o=r.r,a=r.g,s=r.b;l(wt({},t,{r:o,g:a,b:s,a:i,hex:n}))}}}),ft("div",null,"Hex")),ft("div",{css:va.input},ft(sa,{min:0,max:255,value:r,onChange:function(e){return d(e,o,a)}}),ft("div",null,"R")),ft("div",{css:va.input},ft(sa,{min:0,max:255,value:o,onChange:function(e){return d(r,e,a)}}),ft("div",null,"G")),ft("div",{css:va.input},ft(sa,{min:0,max:255,value:a,onChange:function(e){return d(r,o,e)}}),ft("div",null,"B")),ft("div",{css:va.input},ft(sa,{min:0,max:100,value:i,onChange:function(e){return p(e)}}),ft("div",null,"A"))))};ga.defaultProps={initialValue:"#5e72e4"};var va={picker:{fontFamily:"'Helvetica Neue',Helvetica,Arial,sans-serif",width:230,"*":{userSelect:"none"}},selector:{position:"relative",width:230,height:230},gradientWhite:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%)"},gradientDark:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to bottom, transparent 0%, #000000 100%)"},inputs:{display:"flex",justifyContent:"space-between",width:"100%"},input:{textAlign:"center",fontSize:13,fontWeight:"normal",color:"#000",input:{width:30,textAlign:"center"},div:{marginTop:4}}};function ba(e){var t,n=(e=e.toLowerCase()).substr(0,7),r=ua(n),o=r.r,a=r.g,i=r.b,s=da(o,a,i),u=e.length>7?(t=e.substr(7),Math.round(parseInt("0x"+t,16)/255*100)):100;return wt({},s,{r:o,g:a,b:i,a:u,hex:n,rgba:pa(o,a,i,u)})}var ya={name:"j4ndc3",styles:"position:relative;display:inline-block;box-sizing:border-box;width:49px;height:24px;padding:4px;background-color:#ffffff;border:1px solid #bebebe;border-radius:3px;user-select:none;"},wa={name:"trkpwz",styles:"display:block;width:100%;height:100%;cursor:pointer;"},Ca=function(t){var n=t.initialValue,r=t.onChange,o=t.placement,a=bt(t,["initialValue","onChange","placement"]),i=(0,e.useState)(ba(n)),s=i[0],u=i[1];function c(e){r&&(u(e),r(e))}return(0,e.useEffect)((function(){c(ba(n))}),[n]),ft(zo,{placement:o,body:ft(ga,{color:s,onChange:c})},ft("span",wt({},a,{css:ya}),ft("span",{css:wa,style:{backgroundColor:s.rgba}})))};Ca.defaultProps={placement:"bottom"};var Oa=Ca,xa=n(953),Da=n(73),ka=n.n(Da),Sa=n(251),Ea=n.n(Sa);function Ma(e){return(Ma="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})(e)}var _a,Pa=function(e){var t=function(){this.parser=new i},n=t.prototype;function r(e,t){for(var n=[],r=t,o=e.length;r<o;r++)n.push(e[r]);return n}var o=function(){var e=function n(e,t,r){this.prefix=(e||"")+":",this.level=t||n.NONE,this.out=r||window.console&&window.console.log.bind(window.console),this.warn=this.log.bind(this,n.WARN),this.info=this.log.bind(this,n.INFO),this.debug=this.log.bind(this,n.DEBUG)},t=e.prototype;return e.DEBUG=1,e.INFO=2,e.WARN=3,e.NONE=4,t.log=function(e,t){if(e>=this.level&&"function"==typeof this.out){var n=r(arguments,2);n=[this.prefix+t].concat(n),this.out.apply(this,n)}},e}(),a=function(){var e=function(e){this.obj=e||{}},t=e.prototype;return t.get=function(e){var t=this.obj[e];return t===undefined&&this.parent&&(t=this.parent.get(e)),t},t.set=function(e,t){return this.obj[e]=t,this.get(e)},e}(),i=function(){var e=new o("PARSER",o.NONE),t=new o("EMIT",o.NONE),n=function(){};function i(e){var t={};return e.forEach((function(e,n){t[e]=n})),t}function s(e,t,n){if(1===n.length&&"object"===Ma(n[0])){var r=n[0];t.forEach((function(t){e[t]=r[t]}))}else for(var o=0,i=t.length,s=n.length;o<i&&o<s;o++)e[t[o]]=n[o];delete e.runtimeError;var u=new a(e);return u.parent=l,u}function u(n){if(n!==undefined)switch(n.id){case"Expr":case"Tuple":return u(n.expr);case"OpenTuple":return n.expr?f(n.expr):f(n.left,n.right);case"Assign":return n.expr?u(n.expr):(s=n.left,l=u(l=n.right),function(e){return e.set(s.value,l.apply(null,arguments))});case"Sums":case"Prod":case"Power":return n.expr?u(n.expr):function(t,n,o){n=u(n),o=u(o);var a=undefined;function i(e){var t=r(arguments,1);return e(n.apply(this,t),o.apply(this,t))}switch(t.id){case"Plus":return i.bind(a,(function(e,t){return+e+t}));case"Minus":return i.bind(a,(function(e,t){return e-t}));case"Mul":return i.bind(a,(function(e,t){return e*t}));case"Div":return i.bind(a,(function(e,t){return e/t}));case"Mod":return i.bind(a,(function(e,t){return e%t}));case"Pow":return i.bind(a,(function(e,t){return Math.pow(e,t)}))}return e.warn("No emitter for %o",t),function(){}}(n.op,n.left,n.right);case"Unary":return n.expr?u(n.expr):function(t,n){switch(n=u(n),t.id){case"Plus":return function(){return n.apply(this,arguments)};case"Minus":return function(){return-n.apply(this,arguments)}}return e.warn("No emitter for %o",t),function(){}}(n.op,n.right);case"Call":return o=n.token,a=n.args,i=c(a),a=u(a),function(e){var t=e.get(o.value);if("function"==typeof t){var n=a.apply(null,arguments);return i||(n=[n]),t.apply(null,n)}e.set("runtimeError",{text:'Call to undefined "'+o.value+'"'})};case"Parens":return u(n.expr);case"Value":return u(n.token);case"Number":return function(){return n.value};case"Var":return function(e){return e.get(n.value)};default:t.warn("No emitter for %o",n)}var o,a,i,s,l;return function(){}}function c(e){if(e!==undefined)switch(e.id){case"Expr":case"Tuple":return c(e.expr);case"OpenTuple":return!0}return!1}function f(e,t){if(e===undefined)return function(){return[]};var n="OpenTuple"===e.id;return e=u(e),t===undefined?function(){return[e.apply(null,arguments)]}:(t=u(t),n?function(){var n=e.apply(null,arguments);return n.push(t.apply(null,arguments)),n}:function(){return[e.apply(null,arguments),t.apply(null,arguments)]})}n.prototype.parse=function(n){this.error=undefined;var r=function(e){var t,n,r=[],o=0;for(;(t=k(e,o))!==undefined;)t.error?n=t.error:"Space"!==t.id&&r.push(t),o=t.end;return{tokens:r,error:n}}(n),o=function(t){for(var n={tokens:t,pos:0,stack:[],scope:{}},r=0,o=t.length,a=!1;!a&&r<=o;){var i=t[r],s=n.stack[n.stack.length-1],u=(s?s.id:"(empty)")+":"+(i?i.id:"(eof)");switch(d[u]){case 1:e.debug("shift %s %o",u,h(n.stack)),n=m(n,i),r++;break;case 2:e.debug("reduce %s %o",u,h(n.stack)),n=v(n,i);break;case 0:e.debug("done %s %o",u,h(n.stack)),a=!0;break;default:if(i!==undefined){var c={pos:i.pos,text:'Unexpected token "'+i.string+'"'};n.error=c,e.warn("%s at %d (%s)",c.text,c.pos,u)}else{c={text:"Unexpected EOF",pos:n.pos+1};n.error=c,e.warn("%s (%s)",c.text,u)}a=!0}}if(!n.error&&n.stack.length>1){var l=b(n,1);c={pos:l.pos||0,text:"LParen"===l.id?"Open paren":"Invalid expression"};n.error=c,e.warn("%s at %d (eof)",c.text,c.pos)}return{root:n.stack.pop(),vars:Object.keys(n.scope),error:n.error}}(r.tokens);t.debug("AST: %o",o);var a,c,l=(a=u(o.root),function(e){try{return a.apply(null,arguments)}catch(t){e.set("runtimeError",{text:""+t})}});return c={},{error:r.error||o.error,args:i(o.vars),eval:function(){return l(s(c,o.vars,arguments))},set scope(e){c=e||{}},get scope(){return c}}};var d={};function p(e,t,n){for(var r=0,o=t.length;r<o;r++)for(var a=0,i=n.length;a<i;a++){var s=t[r]+":"+n[a];d[s]=e}}function h(t){return e.level>=o.DEBUG?t.map((function(e){return e.id})):""}function m(e,t){return g(e,0,t)}function g(e,t,n){var r=e.stack.slice(0,e.stack.length-t),o=e.pos;return n&&(r.push(n),n.pos!==undefined&&(o=n.pos)),{tokens:e.tokens,pos:o,stack:r,scope:e.scope,error:e.error}}function v(t,n){switch(b(t,0).id){case"Tuple":return function(e){var t=b(e,0);return g(e,1,{id:"Expr",expr:t})}(t);case"OpenTuple":case"Comma":return y(t,n);case"Assign":case"Sums":return function(e,t){var n=b(e,1),r=b(e,0);if(r!==undefined&&"Sums"===r.id)return w(e,["Eq"],"Assign");if(n!==undefined&&"Eq"===n.id)return w(e,["Eq"],"Assign");return y(e,t)}(t,n);case"Prod":return function(e){return w(e,["Plus","Minus"],"Sums")}(t);case"Power":case"Unary":return function(e){var t=b(e,1),n=b(e,0);if(n!==undefined&&"Unary"===n.id){var r=O(e,!1);return r||g(e,1,{id:"Power",expr:n})}if(n!==undefined&&"Power"===n.id&&t!==undefined&&"Pow"===t.id)return w(e,["Pow"],"Power");return function(e){return w(e,["Mul","Div","Mod"],"Prod")}(e)}(t);case"Call":case"Parens":return O(t);case"Value":case"RParen":return function(t){var n=b(t,3),r=b(t,2),o=b(t,1),a=b(t,0),i={id:"Parens"};if("RParen"===a.id){if(o!==undefined&&"LParen"===o.id)return r!==undefined&&"Var"===r.id?g(t,3,i={id:"Call",token:r}):g(t,2,i={id:"OpenTuple"});if(r===undefined||"LParen"!==r.id){var s={pos:a.pos,text:"Unmatched paren"};return t.error=s,e.warn("%s at %d",s.text,s.pos),g(t,1)}return n!==undefined&&"Var"===n.id?g(t,4,i={id:"Call",token:n,args:o}):(i.expr=o,g(t,3,i))}return i.expr=a,g(t,1,i)}(t);case"Number":case"Var":return function(e){var t=b(e,0);e=g(e,1,{id:"Value",token:t}),"Var"===t.id&&(e.scope[t.value]=t);return e}(t)}return t}function b(e,t){return t===undefined&&(t=0),e.stack[e.stack.length-(t+1)]}function y(e,t){var n=b(e,2),r=b(e,1),o=b(e,0),a={id:"OpenTuple"};return"Comma"===o.id?g(e,2,r):r!==undefined&&"Comma"===r.id?(a.op=r,a.left=n,a.right=o,g(e,3,a)):t!==undefined&&"Comma"===t.id?(a.expr=o,g(e,1,a)):g(e,1,a={id:"Tuple",expr:o})}function w(e,t,n){var r=b(e,2),o=b(e,1),a=b(e,0),i={id:n};return o!==undefined&&-1!==t.indexOf(o.id)?(i.op=o,i.left=r,i.right=a,g(e,3,i)):(i.expr=a,g(e,1,i))}p(1,["(empty)","Plus","Minus","Mul","Div","Mod","Pow","LParen","Eq","Comma"],["Plus","Minus","LParen","Number","Var"]),p(1,["Var"],["LParen","Eq"]),p(1,["Sums"],["Plus","Minus"]),p(1,["Prod"],["Mul","Div","Mod"]),p(1,["Unary"],["Pow"]),p(1,["OpenTuple","Tuple"],["Comma"]),p(1,["LParen","Expr"],["RParen"]),p(2,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod","Sums","Assign"],["Comma"]),p(2,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod"],["Plus","Minus"]),p(2,["Number","Var","Value","RParen","Parens","Call","Unary","Power"],["Mul","Div","Mod"]),p(2,["Number","Var","Value","RParen","Parens","Call"],["Pow"]),p(2,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod","Sums","Assign","Comma","OpenTuple","Tuple"],["RParen","(eof)"]),p(0,["(empty)","Expr"],["(eof)"]);var C=["Pow","Mul","Div","Mod","Plus","Minus","Eq","Comma","LParen"];function O(e,t){var n=b(e,2),r=b(e,1),o=b(e,0),a={id:"Unary"};return r===undefined||"Minus"!==r.id&&"Plus"!==r.id||n!==undefined&&-1===C.indexOf(n.id)?!1!==t?(a.expr=o,g(e,1,a)):void 0:(a.op=r,a.right=o,g(e,2,a))}var x=/^(?:(\s+)|((?:\d+e[-+]?\d+|\d+(?:\.\d*)?|\d*\.\d+))|(\+)|(\-)|(\*)|(\/)|(%)|(\^)|(\()|(\))|(=)|(,)|([a-zA-Z]\w*))/i,D=["Space","Number","Plus","Minus","Mul","Div","Mod","Pow","LParen","RParen","Eq","Comma","Var"];function k(t,n){var r=t.slice(n);if(0!==r.length){var o=x.exec(r);if(null===o){var a=function(e,t){for(var n=e.length;t<n;t++){var r=e.slice(t);if(0===r.length)break;if(null!==x.exec(r))break}return t}(t,n),i={pos:n,text:'Unexpected symbol "'+t.slice(n,a)+'"'};return e.warn("%s at %d",i.text,i.pos),{error:i,end:a}}for(var s=0,u=D.length;s<u;s++){var c=o[s+1];if(c!==undefined)return{id:D[s],string:c,pos:n,end:n+c.length,value:E(D[s],c)}}}}var S=Number.parseFloat||parseFloat;function E(e,t){switch(e){case"Number":return S(t);default:return t}}return n}(),s=function(e,t){return Array.isArray(e)?function(e,t){return e.length?e.reduce((function(e,n){return"decrease_first_value"===t?Number(n)-Number(e):Number(e)+Number(n)})):NaN}(e,t):Number(e)};var u,c,l=((c=new a).set("pi",Math.PI),c.set("e",Math.E),c.set("inf",Number.POSITIVE_INFINITY),u=Math,Object.getOwnPropertyNames(Math).forEach((function(e){c.set(e,u[e])})),c);return n.parse=function(e,t,n){e=(e=e.replace(/\[|\]|-/g,"__")).replace(/\s+(__|–)\s+/g," - "),t=void 0===t?{}:t;var r=/\[|\]|-/g,o={};for(var a in t)o[a.replace(r,"__")]=s(t[a],n);var i=this.parser.parse(e);return i.scope.numberFormat=function(e){if(!Number.isNaN(e))return(new Intl.NumberFormat).format(e)},i.scope.floor=function(e){return Math.floor(e)},i.scope.round=function(e){return Math.round(e)},i.scope.float=function(e,t){return t=void 0===t?0:t,e.toFixed(t)},i.scope.ceil=function(e){return Math.ceil(e)},i.eval(o)},t}(),ja="";_a=jQuery,Element.prototype.getElSettings=function(e){if("settings"in this.dataset)return JSON.parse(this.dataset.settings.replace(/(&quot\;)/g,'"'))[e]||""},ja=function(e,t){var n=e.find(".mf-multistep-container");if(n.length){var r=[];n.find(".elementor-top-section").each((function(e){var t=this.getElSettings("metform_multistep_settings_title")||"Step-"+_a(this).data("id"),o=this.getElSettings("metform_multistep_settings_icon"),a="",i="";o&&(a="svg"===o.library?'<img class="metform-step-svg-icon" src="'+o.value.url+'" alt="SVG Icon" />':o.value.length?'<i class="metform-step-icon '+o.value+'"></i>':""),0===e?(i="active",n.hasClass("mf_slide_direction_vertical")&&_a(this).parents(".elementor-section-wrap").css("height",_a(this).height())):1===e&&(i="next"),t&&r.push("<li class='metform-step-item "+i+"' id='metform-step-item-"+_a(this).attr("data-id")+"' data-value='"+_a(this).attr("data-id")+"'>"+a+'<span class="metform-step-title">'+t+"</span></li>")})),r&&(n.find(".metform-form-content > .elementor").before("<ul class='metform-steps'>"+r.join("")+"</ul>"),n.find(".elementor-top-section:first-of-type").addClass("active"),n.find(".mf-progress-step-bar span").attr("data-portion",100/r.length).css("width",100/r.length+"%"))}n.find(".elementor-top-section .metform-btn").attr("type","button"),n.find(".mf-input").on("keypress",(function(e){13!==e.which||_a(this).hasClass("mf-textarea")||n.find(".metform-step-item.next").trigger("click")})),n.find(".elementor-top-section").on("keydown",(function(e){var t=_a(this),n=_a(":focus");if(9==e.which)if(t.hasClass("active")){var r=t.find(":focusable"),o=r.index(n),a=r.eq(o),i=r.eq(r.length-1);a.is(i)&&(a.focus(),e.preventDefault())}else n.focus(),e.preventDefault()})),n.find(".metform-steps").on("click",".metform-step-item",(function(){var e,r=this,o=_a(this).parents(".mf-form-wrapper").eq(0),a=o.find(".elementor-top-section.active .mf-input"),i=(_a("body").hasClass("rtl")?100:-100)*_a(this).index()+"%",s=(o.find(".mf-progress-step-bar").attr("data-total"),_a(this.nextElementSibling).hasClass("active")),u=[];a.each((function(){var e=_a(this),t=this.name;(e.hasClass("mf-input-select")||e.hasClass("mf-input-multiselect"))&&(t=e.find('input[type="hidden"]')[0].name),e.parents(".mf-input-repeater").length&&(t=""),t&&u.push(t)})),e=function(e){e&&(o.find(".elementor-top-section.active .metform-btn").attr("type","button"),(_a(r).hasClass("prev")||_a(r).hasClass("next"))&&(_a(r).addClass("active").removeClass("next prev").prev().addClass("prev").siblings().removeClass("prev").end().end().next().addClass("next").siblings().removeClass("next").end().end().siblings().removeClass("active"),o.find('.elementor-top-section[data-id="'+_a(r).data("value")+'"]').addClass("active").siblings().removeClass("active"),n.hasClass("mf_slide_direction_vertical")?(o.find(".elementor-section-wrap .elementor-top-section").css({transform:"translateY("+i+")"}),o.find(".elementor-section-wrap").css("height","calc("+o.find('.elementor-top-section[data-id="'+_a(r).data("value")+'"]').height()+"px)")):o.find(".elementor-section-wrap").css({transform:"translateX("+i+")"})),o.find(".mf-progress-step-bar span").css("width",(_a(r).index()+1)*o.find(".mf-progress-step-bar span").attr("data-portion")+"%"),o.find(".elementor-top-section.active").find(".metform-submit-btn").length&&setTimeout((function(){o.find(".elementor-top-section.active").find(".metform-submit-btn").attr("type","submit")}),0))},s?e(!0):t.doValidate(u).then(e)}))};var Ta=function(){document.querySelectorAll(".mf-input-map-location").forEach((function(e){if("undefined"!=typeof google){var t=new google.maps.places.Autocomplete(e,{types:["geocode"]});google.maps.event.addListener(t,"place_changed",(function(){e.dispatchEvent(new Event("input",{bubbles:!0}))}))}}))};window.mfMapLocation=Ta;var Aa=function(e,t){return React.createElement("div",{className:"mf-main-response-wrap ".concat(t," mf-response-msg-wrap"),"data-show":"1"},React.createElement("div",{className:"mf-response-msg"},React.createElement("i",{className:"mf-success-icon ".concat(e)}),React.createElement("p",null,"This is a dummy success message!!.")))},Ia=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t)[2],o=[].concat(t)[3],a=[].concat(t)[4],i=[].concat(t)[5],s=r.errors,u=r.success,c=r.form_res,l=function(){return s.length>0?React.createElement(React.Fragment,null,React.createElement("i",{className:"mf-alert-icon ".concat(a)}),React.createElement("p",null,s.map((function(e){return e+" "}))," ")):""},f=function(){return u.length>0?React.createElement(React.Fragment,null,React.createElement("i",{className:"mf-success-icon ".concat(o)}),React.createElement("p",null,u)):""};return React.createElement("div",{className:"mf-main-response-wrap ".concat(i," mf-response-msg-wrap").concat(s.length>0?" mf-error-res":""),"data-show":c},React.createElement("div",{className:"mf-response-msg"},l(),f()))};function Ra(e){return(Ra="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})(e)}function Na(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,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(u){s=!0,o=u}finally{try{i||null==n["return"]||n["return"]()}finally{if(s)throw o}}return a}(e,t)||Va(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 La(e){return function(e){if(Array.isArray(e))return Fa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Va(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 Va(e,t){if(e){if("string"==typeof e)return Fa(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)?Fa(e,t):void 0}}function Fa(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 Ha(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 Ua(e,t){return(Ua=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wa(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=Ya(e);if(t){var o=Ya(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return za(this,n)}}function za(e,t){return!t||"object"!==Ra(t)&&"function"!=typeof t?Ba(e):t}function Ba(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ya(e){return(Ya=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qa(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 Ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qa(Object(n),!0).forEach((function(t){$a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ga=new(Ea())({tolerance:200}),Ja=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}}),t&&Ua(e,t)}(a,React.Component);var t,n,r,o=Wa(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),$a(Ba(t=o.call(this,e)),"handleFormSubmit",(function(e,n){var r;n.preventDefault();var o=t.state,a=o.formData,i=o.defaultData,s=t.props,u=s.action,c=s.wpNonce,l=s.validation,f=l.reset,d=new FormData,p=Ka(Ka({},i),a);for(var h in jQuery(t.mfRefs.mainForm.parentElement).trigger("metform/before_submit",p),jQuery(t.mfRefs.mainForm).find(".metform-submit-btn").attr("disabled",!0),p)d.append(h,p[h]);r="mf_success_duration"in t.props.widgetSettings?t.props.widgetSettings.mf_success_duration:5,r*=1e3,fetch(u,{method:"POST",headers:{"X-WP-Nonce":c},body:d}).then((function(e){return e.json()})).then((function(e){if(e.status?(t.setState({success:e.data.message?e.data.message:"",form_res:1},(function(){t.resetReCAPTCHA(),l.clearErrors("g-recaptcha-response")})),setTimeout((function(){e.status&&e.data.hide_form&&t.formRef.current.setAttribute("class","mf-close-this-form")}),r-600),setTimeout((function(){e.status&&e.data.hide_form&&(t.formRef.current.innerHTML='<h2 style="text-align:center">Thank You.</h2>')}),r)):t.setState({errors:La(e.error),form_res:1},(function(){t.resetReCAPTCHA(),t.setValue("mf-captcha-challenge","",!0),l.clearErrors("g-recaptcha-response")})),e.data.store&&"stripe"===e.data.store["mf-payment-method"]&&t.stripePayment(e),jQuery(t.mfRefs.mainForm.parentElement).trigger("metform/after_submit",{data:p,response:e}),e.status&&e.data.redirect_to){var n=e.data.entry_id,o=e.data.redirect_to;n&&""!==n&&(o+=(o.includes("?")?"&":"?")+"mf_entry_id="+n),setTimeout((function(){window.location.href=o}),1500)}setTimeout((function(){t.setState({success:"",errors:[],form_res:0})}),r)}))["catch"]((function(e){t.setState({errors:["Something went wrong"],form_res:1},(function(){t.resetReCAPTCHA(),t.setValue("mf-captcha-challenge","",!0),l.clearErrors("g-recaptcha-response")})),console.error(e.message),setTimeout((function(){t.setState({errors:[],form_res:0})}),r)}))["finally"]((function(){if(jQuery(t.mfRefs.mainForm).find(".metform-submit-btn").attr("disabled",!1),!t.props.stopVerticalEffect){var e=t.mfRefs.mainForm.querySelector(".mf-main-response-wrap");Ga.move(e)}setTimeout((function(){t.setState({formData:{}})}),350),f()}))})),$a(Ba(t),"handleCalculations",(function(e,n){var r=e.target.calc_behavior,o=ReactDOM.findDOMNode(Ba(t)),a=o.length?o.querySelectorAll(".mf-input-calculation"):[],i=Ka({},n);for(var s in i)if(Array.isArray(i[s])){var u=i[s].map((function(e){return isNaN(e)?e:Number(e)}));i[s]=u}a.forEach((function(e){var o=parseInt(e.dataset.fraction);o=o<0||o>99?2:o;var a=t.MfMathCalc.parse(e.dataset.equation,i,r)||0;n[e.name]=a.toFixed(o)}))})),$a(Ba(t),"handleConditionals",(function(e){var n=t.state,r=n.formData,o=n.defaultData,a=t.props,i=a.widgets,s=a.conditionalRefs,u=a.validation,c=u.getValues,l=u.setValue;s.forEach((function(e){(e=i[e]).list=e.settings.mf_conditional_logic_form_list,e.operator=e.settings.mf_conditional_logic_form_and_or_operators,e.action=e.settings.mf_conditional_logic_form_action,e.validatedValues=[],e.isValidated=!1,e.list.forEach((function(n){n.name=n.mf_conditional_logic_form_if,n.value=r[n.name]||o[n.name]||"",n.match=n.mf_conditional_logic_form_value,n.operator=t.decodeEntities(n.mf_conditional_logic_form_comparison_operators),Array.isArray(n.value)&&-1!==n.value.indexOf(n.match)&&(n.value=n.value[n.value.indexOf(n.match)]),e.validatedValues.push(function(e,t,n){switch(n){case"+":return e+t;case"-":return e-t;case"*":return e*t;case"/":return e/t;case"<":return e<t;case"<=":return e<=t;case">":return e>t;case">=":return e>=t;case"==":return e==t;case"!=":return e!=t;case"not-empty":return void 0!==e&&String(e).length>0;case"empty":return void 0!==e&&0==String(e).length;default:return!1}}(n.value,n.match,n.operator))})),e.isValidated=e.validatedValues.some((function(e){return!0===e})),"and"===e.operator&&(e.isValidated=e.validatedValues.every((function(e){return!0===e})));var n=e.settings.mf_input_name;e.isValidated&&"show"===e.action?(e.el.setAttribute("mf-condition-hidden",!1),e.el.classList.remove("mf-condition--hidden"),"noval"===c(n)&&l(n,undefined)):(e.el.setAttribute("mf-condition-hidden",!0),e.el.classList.add("mf-condition--hidden"),Object.values(e.el.classList).indexOf("elementor-widget-mf-select")>-1&&l(n,"noval"))}))})),$a(Ba(t),"getValue",(function(e){return e in t.state.formData?t.state.formData[e]:""})),$a(Ba(t),"getFileLabel",(function(e,n){var r=t.state.formData[e];return r?r.name:t.decodeEntities(n)})),$a(Ba(t),"getInputLabel",(function(e,n){var r=ReactDOM.findDOMNode(Ba(t)).querySelector('[name="'+e+'"]'),o=r?r.closest(".mf-input-wrapper").querySelector("label"):null;return o?o.innerText.replace(/\*/g,"").trim():n})),$a(Ba(t),"decodeEntities",(function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value})),$a(Ba(t),"setDefault",(function(e){if(null!==e){var n=e.name,r=e.value,o=t.state.defaultData;o[n]=r,t.setState({defaultData:o})}})),$a(Ba(t),"isNumeric",(function(e){return!isNaN(parseFloat(e))&&isFinite(e)})),$a(Ba(t),"setStateValue",(function(e,n){t.setState({name:e,value:n})})),$a(Ba(t),"handleCardNumber",(function(e){var n=e.target,r=n.name,o=n.value,a=t.state.formData,i=a[r+"--type"],s=o.replace(/\s+/g,"").replace(/[^0-9]/gi,""),u=a[r],c="amex"===i?5:4,l="amex"===i?15:16;if(new RegExp("^[0-9]*$").test(s)&&s.length<=l){for(var f=s.match(/\d{4,16}/g),d=f&&f[0]||"",p=[],h=0,m=d.length;h<m;h+=c)p.push(d.substring(h,h+c));p.length&&(s=p.join(" ").trim()),u=s}t.setValue(r,u,!0),t.handleChange(e),e.target.value=u,t.handleCardType(s,e.target.name)})),$a(Ba(t),"handleCardType",(function(e,n){var r="blank",o=n+"--type";r=e.startsWith("34")||e.startsWith("37")?"amex":e.startsWith("4")?"visa":e.startsWith("5")?"master":e.startsWith("6")?"discover":"custom";var a=t.state.formData;a[o]=r,t.setState({formData:a})})),$a(Ba(t),"handleCardMonth",(function(e){var n=e.target,r=n.name,o=n.value,a=parseInt(o.replace(/-/g,""))||"",i=parseInt(a.toString().substring(0,1))||"";1<i&&i<10?t.setValue(r,i,!0):t.setValue(r,a>12?12:a,!0),t.handleChange(e)})),$a(Ba(t),"handleSubVal",(function(e,n){var r=e.target,o=r.name,a=r.value,i=parseInt(a.replace(/-/g,"").substring(0,n))||"";t.setValue(o,i,!0),e.target.value=i,t.handleChange(e)})),$a(Ba(t),"handleChange",(function(e){var n=e.target,r=n.name,o=n.value,a=n.type,i=t.state.formData;i[r]="number"===a&&"mobile"!==a?Number(o):o,t.handleCalculations(e,i),t.setState({formData:i});var s=e.target;s.className!==undefined&&-1!==s.className.indexOf("mf-repeater-type-simple")||t.trigger(r)})),$a(Ba(t),"handleDateTime",(function(e){var n=e.target,r=n.name,o=n.value;t.setValue(r,o,!0),t.handleChange(e)})),$a(Ba(t),"handleSelect",(function(e,n){var r=n.name,o=e.value;e.target={name:n.name,value:o},t.setValue(r,o,!0),t.handleChange(e)})),$a(Ba(t),"handleRadioDefault",(function(e){var n=t.state.formData;if(e&&e.dataset.checked){var r=e.name;e.setAttribute("checked",!0),r in n||setTimeout((function(){t.handleChange({target:{name:r,value:e.value}})}),300)}})),$a(Ba(t),"handleCheckbox",(function(e,n){var r,o="defaultvalue"!==e?e.target:n,a=t.state.formData[o.name];Array.isArray(a)||(a=[]),r=a.indexOf(o.value),o.checked&&-1===r?a.push(o.value):a.splice(r,1),t.handleChange({target:{name:o.name,value:a}})})),$a(Ba(t),"handleSwitch",(function(e){e.target.value=e.target.nextElementSibling.getAttribute("data-disable"),e.target.checked&&(e.target.value=e.target.nextElementSibling.getAttribute("data-enable")),t.handleChange(e)})),$a(Ba(t),"handleOptin",(function(e){e.target.checked||(e.target.value=""),t.handleChange(e)})),$a(Ba(t),"handleFileUpload",(function(e){t.handleChange({target:{name:e.target.name,value:e.target.files[0]}})})),$a(Ba(t),"handleMultiStepBtns",(function(e){var n=jQuery(e.currentTarget).parents(".elementor-top-section.active"),r=e.currentTarget.dataset.direction,o=n.prev()[0]?n.prev()[0].dataset:"",a=n.next()[0]?n.next()[0].dataset:"",i=("next"===r?a:o).id;if(!i)return!1;var s=jQuery(e.currentTarget).parents(".metform-form-content").find('.metform-step-item[data-value="'+i+'"]'),u=[];n.find(".mf-input").each((function(){var e=jQuery(this),t=this.name;(e.hasClass("mf-input-select")||e.hasClass("mf-input-multiselect"))&&(t=e.find('input[type="hidden"]')[0].name),e.parents(".mf-input-repeater").length&&(t=""),t&&u.push(t)})),jQuery(e.currentTarget).parents(".mf-scroll-top-yes").length&&Ga.move(t.mfRefs.mainForm),"next"===r?t.trigger(u).then((function(e){e&&s.trigger("click")})):s.trigger("click")})),$a(Ba(t),"handleImagePreview",(function(e){var t=e.target,n=e.clientX,r=e.clientY,o=e.type,a=t.nextElementSibling;if(a){if("mouseleave"===o)return a.style.opacity="",void(a.style.visibility="hidden");a.style.opacity||(a.style.opacity="1",a.style.visibility="visible"),a.offsetHeight+r>window.innerHeight?(a.className="mf-select-hover-image mf-preview-top",r-=45):a.className="mf-select-hover-image",a.style.top=r+30+"px",a.style.left=n-28+"px"}})),$a(Ba(t),"handleSignature",(function(e){e.target={name:e.props.name,value:e.toDataURL()},t.handleChange(e),t.setValue(e.target.name,e.target.value,!0)})),$a(Ba(t),"refreshCaptcha",(function(e){t.setState({captcha_img:t.state.captcha_path+Date.now()})})),$a(Ba(t),"resetReCAPTCHA",(function(){t.getValue("mf-captcha-challenge")&&t.refreshCaptcha(),t.getValue("g-recaptcha-response")&&t.handleReCAPTCHA("reset")})),$a(Ba(t),"handleReCAPTCHA",(function(e){"reset"===e&&(e="",grecaptcha.reset());var n={target:{name:"g-recaptcha-response",value:(e=e||"")||""}};t.handleChange(n)})),$a(Ba(t),"activateValidation",(function(e,n,r){var o,a,i=t.state.formData,s=t.props.validation.register,u=e.type,c=e.required,l=e.message,f=e.minLength,d=e.maxLength,p=e.expression,h={};if(n&&c&&n.closest(".elementor-element")&&"true"===n.closest(".elementor-element").getAttribute("mf-condition-hidden"))h.required=!1;else{if((u&&"none"!==u||c)&&(h.required=!!c&&l),n&&n.classList.contains("mf-credit-card-number")&&(i[n.name]&&"amex"===i[n.name+"--type"]?h.minLength=h.maxLength={value:17,message:l}:h.minLength=h.maxLength={value:19,message:l}),e.inputType&&"credit_card_date"===e.inputType&&(f&&(h.min={value:f,message:l}),d&&(h.max={value:d,message:l})),n&&"file"===n.type&&n.files.length>0){var m=e.file_types,g=e.size_limit,v=n.files[0].name.slice((Math.max(0,n.files[0].name.lastIndexOf(".")-1)||Infinity)+1);h.validate={fileType:function(){return!(m!==[]&&!e.file_types.includes(v))||e.type_message},fileSize:function(){return!(-1!==g&&n.files[0].size>1024*parseInt(g))||e.limit_message}}}n&&"email"===n.type?h.pattern={value:/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,message:e.emailMessage}:n&&"url"===n.type&&(h.pattern={value:/^(http[s]?:\/\/(www\.)?|ftp:\/\/(www\.)?|www\.){1}([0-9A-Za-z-\.@:%_\+~#=]+)+((\.[a-zA-Z]{2,3})+)(\/(.)*)?(\?(.)*)?/g,message:e.urlMessage}),"by_character_length"===u?(o=n&&"number"===n.type?"min":"minLength",a=n&&"number"===n.type?"max":"maxLength",f&&(h[o]={value:f,message:l}),d&&(h[a]={value:d,message:l})):"by_word_length"===u?h.validate={wordLength:function(e){return t.handleWordValidate(e,f,d,l)}}:"by_expresssion_based"===u&&(h.validate={expression:function(e){return t.handleExpressionValidate(e,p,l)}})}return"function"==typeof r&&r(),n?s(n,h):h})),$a(Ba(t),"handleWordValidate",(function(e,t,n,r){var o=e.trim().split(/\s+/).length;return!!(n?o>=t&&o<=n:o>=t)||r})),$a(Ba(t),"handleExpressionValidate",(function(e,t,n){if(t)return!!new RegExp(t).test(e)||n})),$a(Ba(t),"colorChange",(function(e,n){t.handleChange({target:{name:n,value:e.hex}})})),$a(Ba(t),"colorChangeInput",(function(e){t.handleChange({target:{name:e.target.name,value:e.target.value}})})),$a(Ba(t),"multiSelectChange",(function(e,n){var r=[];null!==e&&e.filter((function(e){return r.push(e.value)})),t.handleChange({target:{name:n,value:r}})})),$a(Ba(t),"handleRangeChange",(function(e,n){t.handleChange({target:{name:n,value:e.toFixed(2)}}),t.props.validation.setValue(n,e.toFixed(2))})),$a(Ba(t),"handleMultipileRangeChange",(function(e,n){t.handleChange({target:{name:n,value:[e.min,e.max],calc_behavior:"decrease_first_value"}})})),$a(Ba(t),"handleOnChangePhoneInput",(function(e,n){t.handleChange({target:{name:n,value:e,type:"mobile"}})})),t.state={formData:{},defaultData:{form_nonce:e.formNonce},recaptcha_uid:e.formId+"_"+Math.random().toString(36).substring(5,10),result_not_foud:"",total_result:0,form_res:0,errors:[],success:"",config:{}},t.MfMathCalc=new Pa,t.setValue=e.validation.setValue,t.trigger=e.validation.trigger,t.formRef=React.createRef(),t.mfRefs={},t.checkboxArr=[],t.checkboxReceive=!0,window["handleReCAPTCHA_"+t.state.recaptcha_uid]=t.handleReCAPTCHA;var n=e.templateEl.innerHTML;return t.jsx=new Function("parent","props","state","validation","register","setValue","html",n),e.templateEl.remove(),t}return t=a,(n=[{key:"stripePayment",value:function(e){var t,n=e.data.payment_data,r=this;n.keys&&""!==n.keys?((t=StripeCheckout.configure({key:n.keys,image:n.image_url,locale:"auto",token:function(t){var o;t.id?(n.stripe_token=t.id,o={sandbox:n.sandbox},fetch(e.data.ajax_stripe+"&token="+t.id,{headers:{"X-WP-Nonce":r.props.wpNonce},data:o}).then((function(e){return e.json()})).then((function(e){e.status?window.location.href=e.redirect_url:alert(e)}))):alert("Sorry!! Payment token invalid")}})).open({name:String(n.name_post),description:" Form No.: "+String(n.description),amount:100*Number(n.amount),currency:n.currency_code}),window.addEventListener("popstate",(function(){t.close()}))):alert("Please set your Stripe Keys in form settings.")}},{key:"handleCheckboxDefault",value:function(e){var t=this;e&&e.dataset.checked&&this.checkboxReceive&&-1===this.checkboxArr.indexOf(e.value)&&(this.checkboxReceive=!1,e.setAttribute("checked",!0),this.checkboxArr.push(e.value),setTimeout((function(){t.handleCheckbox("defaultvalue",e)}),500))}},{key:"renderReCaptcha",value:function(e,t){var n=window.grecaptcha,r=document.querySelectorAll(".g-recaptcha");r.length&&n.render("g-recaptcha",{sitekey:r[0].dataset.sitekey})}},{key:"componentDidUpdate",value:function(){var e,t=this.props.validation.formState.isValid;this.handleConditionals(),t||this.props.stopVerticalEffect||(e=this.mfRefs.mainForm.querySelector(".mf-error-message"))&&Ga.move(e.parentElement.parentElement)}},{key:"componentDidMount",value:function(e){var t=this,n=ReactDOM.findDOMNode(this),r=n.length?n.querySelectorAll(".elementor-element"):[];this.mfRefs.mainForm=n;var o=n.getElementsByTagName("input");for(var a in o)"email"===o[a].type&&""!==o[a].value&&this.setDefault(o[a]);r.forEach((function(e){var n=e.getAttribute("data-element_type"),r=e.getAttribute("data-widget_type"),o=null===r?n:r;if(jQuery(window).on("elementor/frontend/init",(function(){window.elementorFrontend.hooks.doAction("frontend/element_ready/"+o,jQuery(e))})),e.className.search("elementor-widget-mf-")>0&&e.dataset.settings){var a=JSON.parse(e.dataset.settings.replace(/&quot;/g,'"')),i=a.mf_input_name+"-"+e.getAttribute("data-id");t.props.widgets[i]={el:e,settings:a},a.mf_conditional_logic_form_enable&&t.props.conditionalRefs.push(i)}})),window.onload=function(e){t.renderReCaptcha(n,e)},this.handleConditionals(),this.props.formId&&fetch(mf.restURI+this.props.formId,{method:"POST",headers:{"X-WP-Nonce":this.props.wpNonce}}),Ta(),ja(jQuery(n).parents(".mf-multistep-container").parent(),{doValidate:this.trigger}),jQuery(n).on("change",".mf-repeater-field, .mf-repater-range-input, .mf-repeater-checkbox",this.handleChange);var i=this.state.formData;for(var s in jQuery(n).trigger("metform/after_form_load",i),i)this.setValue(s,i[s])}},{key:"render",value:function(){var e=this,t=e.props,n=e.state,r=t.validation,o=r.register,a=r.setValue,i=htm.bind(React.createElement);return React.createElement(React.Fragment,null,this.jsx(e,t,n,r,o,a,i))}}])&&Ha(t.prototype,n),r&&Ha(t,r),a}(),Qa=function(e){var t=Na(e.find(".mf-form-wrapper"),1)[0];if(t){var n,r=t.dataset,o=r.action,a=r.wpNonce,i=r.formNonce,s=r.formId,u=r.stopVerticalEffect,c=Na(e.find(".mf-template"),1)[0];if(c)ReactDOM.render(React.createElement((n=Ja,function(e){var t=Ka(Ka({},be()),{},{ErrorMessage:Ce});return React.createElement(n,Ka({validation:t},e))}),{formId:s,templateEl:c,action:o,wpNonce:a,formNonce:i,widgets:{},conditionalRefs:[],stopVerticalEffect:u,widgetSettings:e.data("settings")||{},Select:xr,InputColor:Oa,Flatpickr:xa.Z,InputRange:kr(),ReactPhoneInput:Er(),SignaturePad:ka(),moveTo:Ga,ResponseDummyMarkup:Aa,SubmitResponseMarkup:Ia}),t)}};jQuery(window).on("elementor/frontend/init",(function(){var e=["metform","shortcode","text-editor"];"metform-form"!==mf.postType||elementorFrontend.isEditMode()?("metform-form"===mf.postType&&elementorFrontend.isEditMode()&&(e=["mf-date","mf-time","mf-select","mf-multi-select","mf-range","mf-file-upload","mf-mobile","mf-image-select","mf-map-location","mf-color-picker","mf-signature"]),e.forEach((function(e){elementorFrontend.hooks.addAction("frontend/element_ready/"+e+".default",Qa)}))):Qa(elementorFrontend.elements.$body)})).on("load",(function(){document.querySelectorAll(".mf-form-shortcode").forEach((function(e){Qa(jQuery(e))}))}))}()}();
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: ataurr, wpmet, emranio, atiqsu, easin55474, enamulhoquemohon, ashr
3
  Tags: Form builder, Elementor form builder, contact form, custom form, forms, drag & drop form builder
4
  Requires at least: 4.8
5
  Tested up to: 5.7
6
- Stable tag: 1.4.10
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -25,7 +25,7 @@ Metform built with elementor. Every field is an elementor widget.
25
 
26
 
27
  ###USEFUL LINKS###
28
- > **[Landing Page + Form Demo](https://products.wpmet.com/metform/)** | **[Need Support?](http://wpmet.com/support-help/)** | **[Documentation](https://help.wpmet.com/docs-cat/metform/)** | **[Video Tutorials](https://www.youtube.com/watch?v=zg1QIouKO_Q&list=PL3t2OjZ6gY8NoB_48DwWKUDRtBEuBOxSc&ab_channel=Wpmet)** | [ **Buy Pro** ](https://products.wpmet.com/metform/pricing/)
29
 
30
 
31
  Metform allows you to create any beautiful contact forms, feedback form, subscription forms, and other types of forms for your site in minutes, not hours! Full flexibility on your own hand.
@@ -227,6 +227,15 @@ Connect with Gmail, Slack, Mailchimp, and many more.
227
 
228
 
229
  == Changelog ==
 
 
 
 
 
 
 
 
 
230
  Version 1.4.10
231
  Fixed: File Upload widget file Size Limit and File Type validation
232
 
3
  Tags: Form builder, Elementor form builder, contact form, custom form, forms, drag & drop form builder
4
  Requires at least: 4.8
5
  Tested up to: 5.7
6
+ Stable tag: 1.5.0
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
25
 
26
 
27
  ###USEFUL LINKS###
28
+ > **[Landing Page + Form Demo](https://products.wpmet.com/metform/)** | **[Need Support?](http://wpmet.com/support-help/)** | **[Documentation](https://help.wpmet.com/docs-cat/metform/)** | **[Video Tutorials](https://www.youtube.com/watch?v=zg1QIouKO_Q&list=PL3t2OjZ6gY8NoB_48DwWKUDRtBEuBOxSc&ab_channel=Wpmet)** | [ **Buy Pro** ](https://products.wpmet.com/metform/pricing/) | **[Request a Feature](https://wpmet.com/plugin/metform/roadmaps#ideas)**
29
 
30
 
31
  Metform allows you to create any beautiful contact forms, feedback form, subscription forms, and other types of forms for your site in minutes, not hours! Full flexibility on your own hand.
227
 
228
 
229
  == Changelog ==
230
+ Version 1.5.0
231
+ Improved: responsive message default time 5 seconds
232
+ Fixed: Custom script tag issue
233
+ Fixed: Form and Response message opening & closing animation
234
+ Fixed: Widget style controls conflicts with conditional feature on editor mode.
235
+ Fixed: Conditionally hidden field doesn't show in Elementor editor
236
+ Fixed: Simple Captcha and reCaptcha values are removed from Summary Widget.
237
+ Fixed: multistep scroll and spacing issue
238
+
239
  Version 1.4.10
240
  Fixed: File Upload widget file Size Limit and File Type validation
241
 
traits/conditional-controls.php CHANGED
@@ -143,7 +143,7 @@ trait Conditional_Controls{
143
  'mf_conditional_logic_form_list',
144
  array(
145
  'type' => Controls_Manager::REPEATER,
146
- 'fields' => array_values( $repeater->get_controls() ),
147
  'frontend_available' => true,
148
  'condition' => [
149
  'mf_conditional_logic_form_enable' => 'yes',
143
  'mf_conditional_logic_form_list',
144
  array(
145
  'type' => Controls_Manager::REPEATER,
146
+ 'fields' => $repeater->get_controls(),
147
  'frontend_available' => true,
148
  'condition' => [
149
  'mf_conditional_logic_form_enable' => 'yes',
utils/banner/banner.php CHANGED
@@ -1,264 +1,252 @@
1
  <?php
2
-
3
  namespace Wpmet\Libs;
4
 
5
- defined('ABSPATH') || exit;
6
-
7
- if (!class_exists('\Wpmet\Libs\Banner')) :
8
-
9
- class Banner
10
- {
11
-
12
- protected $script_version = '1.1.0';
13
-
14
- protected $key = 'wpmet_banner';
15
- protected $data;
16
- protected $last_check;
17
- protected $check_interval = (3600 * 6);
18
 
19
- protected $plugin_screens;
20
 
21
- protected $text_domain;
22
- protected $filter_string;
23
- protected $filter_array = [];
24
- protected $api_url;
25
 
 
26
 
27
- public function get_version()
28
- {
29
- return $this->script_version;
30
- }
31
-
32
- public function get_script_location()
33
- {
34
- return __FILE__;
35
- }
36
-
37
- public function call()
38
- {
39
- add_action('admin_head', [$this, 'show_banner']);
40
- }
41
-
42
 
 
 
 
 
 
 
43
 
44
- public function show_banner()
45
- {
46
- $this->get_banner();
47
-
48
- if (!empty($this->data->error)) {
49
- return;
50
- }
51
-
52
-
53
- if (empty($this->data)) {
54
- return;
55
- }
56
-
57
- foreach ($this->data as $banner) {
58
 
59
- if ($banner->type != 'banner') {
60
- continue;
61
- }
62
 
63
- if (!empty($this->filter_array) && $this->in_blacklist($banner, $this->filter_array)) {
64
- continue;
65
- }
66
-
67
- if (date('d/m/y',$banner->start) <= date('d/m/y',time()) && date('d/m/y',time()) <= date('d/m/y',$banner->end)) {
68
 
69
- $screen = get_current_screen();
70
- if ($this->is_correct_screen_to_show($banner->screen, $screen->id) && class_exists('\Oxaim\Libs\Notice')) {
 
 
 
 
71
 
72
- $inline_css = '';
73
- $banner_unique_id = ((isset($banner->data->unique_key) && $banner->data->unique_key != '') ? $banner->data->unique_key : $banner->id);
 
74
 
75
- if (!empty($banner->data->style_css)) {
76
- $inline_css = ' style="' . $banner->data->style_css . '"';
77
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
 
79
- $contents = '<a target="_blank" ' . $inline_css . ' class="wpmet-jhanda-href" href="' . $banner->data->banner_link . '"><img style="display: block;margin: 0 auto;" src="' . $banner->data->banner_image . '" /></a>';
 
 
 
 
 
80
 
81
- \Oxaim\Libs\Notice::instance('wpmet-jhanda', $banner_unique_id)
82
- ->set_dismiss('global', (3600 * 24 * 15))
83
- ->set_gutter(false)
84
- ->set_html($contents)
85
- ->call();
86
  }
87
  }
88
  }
89
- }
 
90
 
 
 
 
 
91
 
92
- private function in_whitelist($conf, $list)
93
- {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
 
95
- $match = $conf->data->whitelist;
96
 
97
- if (empty($match)) {
98
- return true;
99
- };
100
 
101
- $match_arr = explode(',', $match);
 
 
102
 
103
- foreach ($list as $word) {
104
- if (in_array($word, $match_arr)) {
105
- return true;
106
- }
107
- }
108
 
109
- return false;
110
- }
 
 
 
111
 
 
 
112
 
113
- private function in_blacklist($conf, $list)
114
- {
115
 
116
- $match = $conf->data->blacklist;
117
 
118
- if (empty($match)) {
119
- return false;
120
- };
121
 
122
- $match_arr = explode(',', $match);
 
 
123
 
124
- foreach ($match_arr as $idx => $item) {
125
 
126
- $match_arr[$idx] = trim($item);
127
- }
128
 
129
- foreach ($list as $word) {
130
- if (in_array($word, $match_arr)) {
131
- return true;
132
- }
133
- }
134
 
135
- return false;
136
- }
 
 
 
137
 
 
 
138
 
139
- public function is_test($is_test = false)
140
- {
141
- if ($is_test === true) {
142
- $this->check_interval = 1;
143
- }
144
 
145
- return $this;
 
 
146
  }
147
 
148
-
149
- public function set_text_domain($text_domain)
150
- {
151
- $this->text_domain = $text_domain;
152
-
153
- return $this;
154
- }
155
 
156
 
157
- public function set_filter($filter_string)
158
- {
159
- $this->filter_string = $filter_string;
160
- if (!empty($filter_string)) {
161
 
162
- $filter = explode(',', $this->filter_string);
 
163
 
164
- foreach ($filter as $id => $item) {
165
- $this->filter_array[$id] = trim($item);
166
- }
167
- }
168
 
169
- return $this;
170
- }
 
171
 
 
172
 
173
- public function set_api_url($url)
174
- {
175
- $this->api_url = $url;
 
176
 
177
- return $this;
178
- }
179
 
180
- public function set_plugin_screens($screen)
181
- {
182
- $this->plugin_screens[] = $screen;
183
 
184
- return $this;
185
- }
 
 
 
186
 
 
 
187
 
188
- private function get_banner()
189
- {
190
- $this->data = get_option($this->text_domain . '__banner_data');
191
- $this->data = $this->data == '' ? [] : $this->data;
192
 
193
- $this->last_check = get_option($this->text_domain . '__banner_last_check');
194
- $this->last_check = $this->last_check == '' ? 0 : $this->last_check;
195
 
196
- if (($this->check_interval + $this->last_check) < time()) {
197
- $response = wp_remote_get(
198
- $this->api_url . '/cache/' . $this->text_domain . '.json?nocache=' . time(),
199
- [
200
- 'timeout' => 10,
201
- 'httpversion' => '1.1',
202
- ]
203
- );
204
 
205
- if (!is_wp_error($response) && isset($response['body']) && $response['body'] != '') {
 
206
 
207
- $response = json_decode($response['body']);
 
 
 
 
 
 
 
 
208
 
209
- if (!empty($response)) {
210
- $this->data = $response;
211
- update_option($this->text_domain . '__banner_last_check', time());
212
- update_option($this->text_domain . '__banner_data', $this->data);
213
- }
214
 
215
- return;
 
 
 
216
  }
 
 
217
  }
218
  }
 
219
 
220
 
221
- /**
222
- * --------------------------------------------------------------------
223
- * Check if current admin dashboard screens is allowed to show banner
224
- *
225
- *
226
- * $b_screen is screen name that came form API
227
- * $screen_id is current screen id
228
- * --------------------------------------------------------------------
229
- */
230
- public function is_correct_screen_to_show($b_screen, $screen_id)
231
- {
232
- switch ($b_screen)
233
- {
234
- case 'all_page':
235
- return true;
236
- break;
237
- case 'dashboard':
238
- return $b_screen == $screen_id;
239
- break;
240
- case 'plugin_page':
241
- return in_array($screen_id, $this->plugin_screens);
242
- break;
243
- case 'plugin_install_page':
244
- return $screen_id == 'plugins';
245
- break;
246
- }
247
 
248
- return false;
 
249
  }
250
 
251
- private static $instance;
252
 
253
- public static function instance($text_domain = '')
254
- {
 
255
 
256
- if (!self::$instance) {
257
- self::$instance = new static();
258
- }
259
 
260
- return self::$instance->set_text_domain($text_domain);
261
- }
 
 
 
 
262
  }
 
263
 
264
  endif;
1
  <?php
 
2
  namespace Wpmet\Libs;
3
 
4
+ defined( 'ABSPATH' ) || exit;
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
+ if(!class_exists('\Wpmet\Libs\Banner')):
7
 
8
+ class Banner {
 
 
 
9
 
10
+ protected $script_version = '2.1.0';
11
 
12
+ protected $key = 'wpmet_banner';
13
+ protected $data;
14
+ protected $last_check;
15
+ protected $check_interval = (3600 * 6);
 
 
 
 
 
 
 
 
 
 
 
16
 
17
+ protected $plugin_screens;
18
+
19
+ protected $text_domain;
20
+ protected $filter_string;
21
+ protected $filter_array = [];
22
+ protected $api_url;
23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
+ public function get_version(){
26
+ return $this->script_version;
27
+ }
28
 
29
+ public function get_script_location(){
30
+ return __FILE__;
31
+ }
 
 
32
 
33
+ public function call(){
34
+ add_action( 'admin_head', [$this, 'display_content'] );
35
+ }
36
+
37
+ public function display_content(){
38
+ $this->get_data();
39
 
40
+ if(!empty($this->data->error)) {
41
+ return;
42
+ }
43
 
44
+ if(empty($this->data)) {
45
+ return;
46
+ }
47
+
48
+ foreach($this->data as $content) {
49
+
50
+ if(!empty($this->filter_array) && $this->in_blacklist($content, $this->filter_array)) {
51
+ continue;
52
+ }
53
+
54
+ if($content->start <= time() && time() <= $content->end) {
55
+ $screen = get_current_screen();
56
+ if($this->is_correct_screen_to_show($content->screen, $screen->id) && class_exists('\Oxaim\Libs\Notice')) {
57
+
58
+ $inline_css = '';
59
+ $banner_unique_id = ((isset($content->data->unique_key) && $content->data->unique_key != '') ? $content->data->unique_key : $content->id );
60
+
61
+ if(!empty($content->data->style_css)) {
62
+ $inline_css =' style="'.$content->data->style_css.'"';
63
+ }
64
 
65
+ $instance = \Oxaim\Libs\Notice::instance('wpmet-jhanda', $banner_unique_id)
66
+ ->set_dismiss('global', (3600 * 24 * 15));
67
+
68
+ if($content->type == 'banner'){
69
+ $this->init_banner($content, $instance, $inline_css);
70
+ }
71
 
72
+ if($content->type == 'notice'){
73
+ $this->init_notice($content, $instance, $inline_css);
 
 
 
74
  }
75
  }
76
  }
77
+ }
78
+ }
79
 
80
+
81
+ private function init_notice($content, $instance, $inline_css){
82
+
83
+ $instance->set_message($content->data->notice_body);
84
 
85
+ if($content->data->notice_image != ''){
86
+ $instance->set_logo($content->data->notice_image);
87
+ }
88
+ if($content->data->button_text != ''){
89
+ $instance->set_button([
90
+ 'default_class' => 'button',
91
+ 'class' => 'button-secondary button-small', // button-primary button-secondary button-small button-large button-link
92
+ 'text' => $content->data->button_text,
93
+ 'url' => $content->data->button_link,
94
+ ]);
95
+ }
96
+ $instance->call();
97
+ }
98
+
99
+ private function init_banner($content, $instance, $inline_css){
100
+
101
+ $html = '<a target="_blank" '.$inline_css.' class="wpmet-jhanda-href" href="'.$content->data->banner_link.'"><img style="display: block;margin: 0 auto;" src="'.$content->data->banner_image.'" /></a>';
102
+
103
+ $instance->set_gutter(false)
104
+ ->set_html($html)
105
+ ->call();
106
+ }
107
+
108
 
109
+ private function in_whitelist($conf, $list) {
110
 
111
+ $match = $conf->data->whitelist;
 
 
112
 
113
+ if(empty($match)) {
114
+ return true;
115
+ };
116
 
117
+ $match_arr = explode(',', $match);
 
 
 
 
118
 
119
+ foreach($list as $word) {
120
+ if(in_array($word, $match_arr)) {
121
+ return true;
122
+ }
123
+ }
124
 
125
+ return false;
126
+ }
127
 
 
 
128
 
129
+ private function in_blacklist($conf, $list) {
130
 
131
+ $match = $conf->data->blacklist;
 
 
132
 
133
+ if(empty($match)) {
134
+ return false;
135
+ };
136
 
137
+ $match_arr = explode(',', $match);
138
 
139
+ foreach($match_arr as $idx => $item) {
 
140
 
141
+ $match_arr[$idx] = trim($item);
142
+ }
 
 
 
143
 
144
+ foreach($list as $word) {
145
+ if(in_array($word, $match_arr)) {
146
+ return true;
147
+ }
148
+ }
149
 
150
+ return false;
151
+ }
152
 
 
 
 
 
 
153
 
154
+ public function is_test($is_test = false) {
155
+ if($is_test === true){
156
+ $this->check_interval = 1;
157
  }
158
 
159
+ return $this;
160
+ }
 
 
 
 
 
161
 
162
 
163
+ public function set_text_domain($text_domain) {
164
+ $this->text_domain = $text_domain;
 
 
165
 
166
+ return $this;
167
+ }
168
 
 
 
 
 
169
 
170
+ public function set_filter($filter_string) {
171
+ $this->filter_string = $filter_string;
172
+ if(!empty($filter_string)) {
173
 
174
+ $filter = explode(',', $this->filter_string);
175
 
176
+ foreach ($filter as $id => $item) {
177
+ $this->filter_array[$id] = trim($item);
178
+ }
179
+ }
180
 
181
+ return $this;
182
+ }
183
 
 
 
 
184
 
185
+ public function set_api_url($url) {
186
+ $this->api_url = $url;
187
+
188
+ return $this;
189
+ }
190
 
191
+ public function set_plugin_screens($screen) {
192
+ $this->plugin_screens[] = $screen;
193
 
194
+ return $this;
195
+ }
 
 
196
 
 
 
197
 
198
+ private function get_data() {
199
+ $this->data = get_option($this->text_domain . '__banner_data');
200
+ $this->data = $this->data == '' ? [] : $this->data;
 
 
 
 
 
201
 
202
+ $this->last_check = get_option($this->text_domain . '__banner_last_check');
203
+ $this->last_check = $this->last_check == '' ? 0 : $this->last_check;
204
 
205
+ if(($this->check_interval + $this->last_check) < time()){
206
+ $response = wp_remote_get( $this->api_url . '/cache/'.$this->text_domain.'.json?nocache='.time(),
207
+ [
208
+ 'timeout' => 10,
209
+ 'httpversion' => '1.1',
210
+ ]
211
+ );
212
+
213
+ if(!is_wp_error($response) && isset($response['body']) && $response['body'] != ''){
214
 
215
+ $response = json_decode($response['body']);
 
 
 
 
216
 
217
+ if(!empty($response)) {
218
+ $this->data = $response;
219
+ update_option($this->text_domain . '__banner_last_check', time());
220
+ update_option($this->text_domain . '__banner_data', $this->data);
221
  }
222
+
223
+ return;
224
  }
225
  }
226
+ }
227
 
228
 
229
+ public function is_correct_screen_to_show($b_screen, $screen_id) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
 
231
+ if(in_array($b_screen, [$screen_id, 'all_page'])) {
232
+ return true;
233
  }
234
 
 
235
 
236
+ if($b_screen == 'plugin_page') {
237
+ return in_array($screen_id, $this->plugin_screens);
238
+ }
239
 
240
+ return false;
241
+ }
 
242
 
243
+ private static $instance;
244
+
245
+ public static function instance($text_domain = '') {
246
+
247
+ self::$instance = new static();
248
+ return self::$instance->set_text_domain($text_domain);
249
  }
250
+ }
251
 
252
  endif;
utils/notice/notice.php CHANGED
@@ -12,7 +12,7 @@ class Notice{
12
  *
13
  * @var string
14
  */
15
- protected $script_version = '2.0.5';
16
 
17
  /**
18
  * Unique ID to identify each notice
@@ -285,7 +285,6 @@ class Notice{
285
  }else{
286
  $expired = '';
287
  }
288
- // echo $expired; exit;
289
 
290
  global $oxaim_lib_notice_list;
291
 
@@ -317,23 +316,22 @@ class Notice{
317
  dismissible="<?php echo ($this->dismissible); ?>"
318
  >
319
  <?php if(!empty($this->logo)):?>
320
- <div class="notice-left-container alignleft">
321
- <p><img style="margin-right:15px; <?php echo esc_attr($this->logo_style); ?>" src="<?php echo esc_url($this->logo);?>" /></p>
322
- </div>
323
  <?php endif; ?>
324
 
325
  <div class="notice-right-container">
326
 
327
  <?php if(empty($this->html)): ?>
328
- <div class="main-message">
329
- <?php echo (empty($this->title) ? '' : sprintf('<h3>%s</h3>', $this->title)); ?>
 
330
  <?php echo ( $this->message );?>
331
  </div>
332
 
333
  <?php if(!empty($this->buttons)): ?>
334
- <div class="submit">
335
  <?php foreach($this->buttons as $button): ?>
336
- <a id="<?php echo (!isset($button['id']) ? '' : $button['id']); ?>" href="<?php echo esc_url($button['url']); ?>" class="wpmet-notice-buttons <?php echo esc_attr($button['class']); ?>">
337
  <?php if(!empty($button['icon'])) :?>
338
  <i class="notice-icon <?php echo esc_attr($button['icon']); ?>"></i>
339
  <?php endif; ?>
@@ -348,14 +346,14 @@ class Notice{
348
  <?php echo $this->html; ?>
349
  <?php endif;?>
350
 
351
- <?php if(false !== $this->dismissible): ?>
352
- <button type="button" class="notice-dismiss">
353
- <span class="screen-reader-text">x</span>
354
- </button>
355
- <?php endif;?>
356
-
357
  </div>
358
 
 
 
 
 
 
 
359
  <div style="clear:both"></div>
360
 
361
  </div>
@@ -371,7 +369,6 @@ class Notice{
371
  $notice_id = ( isset( $_POST['notice_id'] ) ) ? $_POST['notice_id'] : '';
372
  $dismissible = ( isset( $_POST['dismissible'] ) ) ? $_POST['dismissible'] : '';
373
  $expired_time = ( isset( $_POST['expired_time'] ) ) ? $_POST['expired_time'] : '';
374
- // print_r([$notice_id, $dismissible, $expired_time]);
375
 
376
  if ( ! empty( $notice_id ) ) {
377
  if ( 'user' === $dismissible ) {
@@ -419,50 +416,59 @@ class Notice{
419
  });
420
  </script>
421
  <style>
422
- .wpmet-notice .notice-icon{
423
- display:inline-block;
 
 
 
 
 
424
  }
425
 
426
- .wpmet-notice .notice-icon:before{
427
- vertical-align: middle!important;
428
- margin-top: -1px;
429
  }
430
-
431
- .wpmet-notice .main-message {
432
- margin: 10px 0;
 
433
  }
434
 
435
- .wpmet-notice-buttons {
436
- text-decoration:none;
437
  }
438
 
439
- .wpmet-notice-buttons > i{
440
- margin-right: 3px;
 
441
  }
442
 
443
- .wpmet-notice .notice-right-container{
444
- /* padding-top: 10px; */
 
 
 
 
 
 
445
  }
446
- .wpmet-notice .notice-right-container .submit {
447
- padding-top: 0;
448
- margin-top: 0;
449
- margin-bottom: 15px;
450
- padding-bottom: 0;
451
  }
452
-
453
- .wpmet-notice img{
454
- max-width: 100%!important;
455
- max-height: 100%!important;
456
  }
457
 
458
- .wpmet-notice.no-gutter{
459
- padding: 0!important;
460
- border: 0!important;
461
  }
462
 
463
- .wpmet-notice.no-gutter .notice-right-container{
464
- padding: 0!important;
465
- margin: 0!important;
466
  }
467
 
468
  </style>
12
  *
13
  * @var string
14
  */
15
+ protected $script_version = '2.1.0';
16
 
17
  /**
18
  * Unique ID to identify each notice
285
  }else{
286
  $expired = '';
287
  }
 
288
 
289
  global $oxaim_lib_notice_list;
290
 
316
  dismissible="<?php echo ($this->dismissible); ?>"
317
  >
318
  <?php if(!empty($this->logo)):?>
319
+ <img class="notice-logo" style="<?php echo esc_attr($this->logo_style); ?>" src="<?php echo esc_url($this->logo);?>" />
 
 
320
  <?php endif; ?>
321
 
322
  <div class="notice-right-container">
323
 
324
  <?php if(empty($this->html)): ?>
325
+ <?php echo (empty($this->title) ? '' : sprintf('<div class="notice-main-title notice-vert-space">%s</div>', $this->title)); ?>
326
+
327
+ <div class="notice-message notice-vert-space">
328
  <?php echo ( $this->message );?>
329
  </div>
330
 
331
  <?php if(!empty($this->buttons)): ?>
332
+ <div class="button-container notice-vert-space">
333
  <?php foreach($this->buttons as $button): ?>
334
+ <a id="<?php echo (!isset($button['id']) ? '' : $button['id']); ?>" href="<?php echo esc_url($button['url']); ?>" class="wpmet-notice-button <?php echo esc_attr($button['class']); ?>">
335
  <?php if(!empty($button['icon'])) :?>
336
  <i class="notice-icon <?php echo esc_attr($button['icon']); ?>"></i>
337
  <?php endif; ?>
346
  <?php echo $this->html; ?>
347
  <?php endif;?>
348
 
 
 
 
 
 
 
349
  </div>
350
 
351
+ <?php if(false !== $this->dismissible): ?>
352
+ <button type="button" class="notice-dismiss">
353
+ <span class="screen-reader-text">x</span>
354
+ </button>
355
+ <?php endif;?>
356
+
357
  <div style="clear:both"></div>
358
 
359
  </div>
369
  $notice_id = ( isset( $_POST['notice_id'] ) ) ? $_POST['notice_id'] : '';
370
  $dismissible = ( isset( $_POST['dismissible'] ) ) ? $_POST['dismissible'] : '';
371
  $expired_time = ( isset( $_POST['expired_time'] ) ) ? $_POST['expired_time'] : '';
 
372
 
373
  if ( ! empty( $notice_id ) ) {
374
  if ( 'user' === $dismissible ) {
416
  });
417
  </script>
418
  <style>
419
+ .wpmet-notice{
420
+ margin: 5px 0 15px;
421
+ padding: 0!important;
422
+ display: flex;
423
+ flex-direction: row;
424
+ justify-content: flex-start;
425
+ align-items: center;
426
  }
427
 
428
+ .wpmet-notice .notice-right-container{
429
+ margin: .7rem .8rem .8rem;
 
430
  }
431
+
432
+ .wpmet-notice.no-gutter, .wpmet-notice.no-gutter .notice-right-container{
433
+ padding: 0!important;
434
+ margin: 0!important;
435
  }
436
 
437
+ .notice-right-container .notice-vert-space{
438
+ margin-bottom: .8rem;
439
  }
440
 
441
+ .notice-right-container .notice-vert-space:last-child,
442
+ .notice-right-container .notice-vert-space:only-child{
443
+ margin-bottom: 0;
444
  }
445
 
446
+ .wpmet-notice .notice-logo{
447
+ padding: .8rem;
448
+ max-width: 110px;
449
+ max-height: 110px;
450
+ }
451
+
452
+ .wpmet-notice-button {
453
+ text-decoration:none;
454
  }
455
+
456
+ .wpmet-notice-button > i{
457
+ margin-right: 3px;
 
 
458
  }
459
+
460
+ .wpmet-notice-button .notice-icon{
461
+ display:inline-block;
 
462
  }
463
 
464
+ .wpmet-notice-button .notice-icon:before{
465
+ vertical-align: middle!important;
466
+ margin-top: -1px;
467
  }
468
 
469
+ .wpmet-notice .notice-main-title{
470
+ color: #1d2327;
471
+ font-size: 1.2rem;
472
  }
473
 
474
  </style>
utils/util.php CHANGED
@@ -279,7 +279,7 @@ class Util{
279
 
280
  <!-----------------------------
281
  * controls_data : find the the props passed indie of data attribute
282
- * parent.submit_response_message : contains the markup of error or success message
283
  * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
284
  --------------------------- -->
285
 
@@ -312,11 +312,12 @@ class Util{
312
  onSubmit=${ validation.handleSubmit( parent.handleFormSubmit ) }
313
 
314
  >
315
-
316
- ${ is_dummy_markup ? message_position === 'top' ? parent.dummy_markup(message_successIcon, message_proClass) : '' : ''}
317
- ${is_dummy_markup ? ' ' : message_position === 'top' ? parent.submit_response_message`${parent}${state}${message_successIcon}${message_errorIcon}${message_proClass}` : ''}
318
-
319
- ${!state.formHide ? html`
 
320
  <?php
321
  $replaceStrings = array(
322
  'from' => array(
@@ -338,8 +339,8 @@ class Util{
338
  'cellPadding=',
339
  'srcSet',
340
  'colSpan',
341
- '{new Function(`', // Script Start Tag
342
- '`)()}', // Script End Tag
343
  '<br/>',
344
  '<br/>'
345
  ),
@@ -351,9 +352,11 @@ class Util{
351
  $form_content = preg_replace( '/<!--(.|\s)*?-->/', '', $form_content ); // Removes HTML Comments
352
  echo $form_content;
353
  ?>
354
- ` : ''}
355
- ${is_dummy_markup ? message_position === 'bottom' ? parent.dummy_markup(message_successIcon, message_proClass) : '' : ''}
356
- ${is_dummy_markup ? ' ' : message_position === 'bottom' ? parent.submit_response_message`${parent}${state}${message_successIcon}${message_errorIcon}${message_proClass}` : ''}
 
 
357
 
358
  </form>
359
  `
279
 
280
  <!-----------------------------
281
  * controls_data : find the the props passed indie of data attribute
282
+ * props.SubmitResponseMarkup : contains the markup of error or success message
283
  * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
284
  --------------------------- -->
285
 
312
  onSubmit=${ validation.handleSubmit( parent.handleFormSubmit ) }
313
 
314
  >
315
+
316
+
317
+ ${is_dummy_markup ? message_position === 'top' ? props.ResponseDummyMarkup(message_successIcon, message_proClass) : '' : ''}
318
+ ${is_dummy_markup ? ' ' : message_position === 'top' ? props.SubmitResponseMarkup`${parent}${state}${message_successIcon}${message_errorIcon}${message_proClass}` : ''}
319
+ <div key=${'hide-form-after-submit'} ref=${parent.formRef}>
320
+ ${html`
321
  <?php
322
  $replaceStrings = array(
323
  'from' => array(
339
  'cellPadding=',
340
  'srcSet',
341
  'colSpan',
342
+ '${(function(){', // Script Start Tag
343
+ '})()}', // Script End Tag
344
  '<br/>',
345
  '<br/>'
346
  ),
352
  $form_content = preg_replace( '/<!--(.|\s)*?-->/', '', $form_content ); // Removes HTML Comments
353
  echo $form_content;
354
  ?>
355
+ `}
356
+ </div>
357
+
358
+ ${is_dummy_markup ? message_position === 'bottom' ? props.ResponseDummyMarkup(message_successIcon, message_proClass) : '' : ''}
359
+ ${is_dummy_markup ? ' ' : message_position === 'bottom' ? props.SubmitResponseMarkup`${parent}${state}${message_successIcon}${message_errorIcon}${message_proClass}` : ''}
360
 
361
  </form>
362
  `
widgets/summary/summary.php CHANGED
@@ -130,6 +130,8 @@ Class MetForm_Input_Summary extends Widget_Base{
130
  <div class="mf-input mf-input-summary metform-entry-data container">
131
  <ul class="mf-entry-data">
132
  ${Object.keys( parent.state.formData ).map((name, key) => {
 
 
133
  let value = parent.getValue( name );
134
  if ( Array.isArray( value ) ) value = value.join(', ');
135
  if ( typeof value === 'object' && value.name ) value = value.name;
130
  <div class="mf-input mf-input-summary metform-entry-data container">
131
  <ul class="mf-entry-data">
132
  ${Object.keys( parent.state.formData ).map((name, key) => {
133
+ if ( ('mf-captcha-challenge' === name) || ('g-recaptcha-response' === name) ) return;
134
+
135
  let value = parent.getValue( name );
136
  if ( Array.isArray( value ) ) value = value.join(', ');
137
  if ( typeof value === 'object' && value.name ) value = value.name;